@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/sheet.d.ts
CHANGED
|
@@ -3,715 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @see https://mantle.ngrok.com/components/overlays/sheet
|
|
5
5
|
*/
|
|
6
|
-
import
|
|
7
|
-
import { i as IconButtonIntent, n as IconButtonProps, r as IconButtonAppearance } from "./button-BGwOPjGV.js";
|
|
8
|
-
import { c as Trigger$1, n as Content$1, o as Root$1, r as Description$1, s as Title$1, t as Close$1 } from "./dialog-B9JAGy_x.js";
|
|
9
|
-
import { ComponentProps, HTMLAttributes } from "react";
|
|
10
|
-
import { VariantProps } from "class-variance-authority";
|
|
11
|
-
/**
|
|
12
|
-
* The root component for a `Sheet`. Should compose the `Sheet.Trigger` and `Sheet.Content`.
|
|
13
|
-
* Acts as a stateful provider for the Sheet's open/closed state.
|
|
14
|
-
*
|
|
15
|
-
* Every `Sheet` part reads a dialog scope of its own, so it binds to the
|
|
16
|
-
* nearest `Sheet.Root` and never to a `Dialog.Root`. The reverse holds too: a
|
|
17
|
-
* `Dialog.Trigger` or `Command.SearchTrigger` inside `Sheet.Content` reaches
|
|
18
|
-
* the `Dialog.Root` or `Command.DialogRoot` above the sheet, not the sheet. A
|
|
19
|
-
* `Dialog.Close` inside a sheet with no `Dialog.Root` above it throws Radix's
|
|
20
|
-
* "must be used within `Dialog`"; use `Sheet.Close` to close a sheet.
|
|
21
|
-
*
|
|
22
|
-
* `Sheet` renders its floating layer at Tailwind `z-60`, Mantle's overlay tier,
|
|
23
|
-
* above every float (`z-50`). Floats composed inside the content portal into
|
|
24
|
-
* the positioner (`data-slot="sheet-positioner"`) and paint above the content.
|
|
25
|
-
* When multiple overlays are open, the most recently mounted overlay renders on
|
|
26
|
-
* top.
|
|
27
|
-
*
|
|
28
|
-
* @see https://mantle.ngrok.com/components/overlays/sheet#sheetroot
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* ```tsx
|
|
32
|
-
* // Triggering a stateful sheet
|
|
33
|
-
* <Sheet.Root>
|
|
34
|
-
* <Sheet.Trigger asChild>
|
|
35
|
-
* <Button type="button" appearance="filled" intent="neutral">
|
|
36
|
-
* Open Sheet
|
|
37
|
-
* </Button>
|
|
38
|
-
* </Sheet.Trigger>
|
|
39
|
-
* <Sheet.Content>
|
|
40
|
-
* <Sheet.Header>
|
|
41
|
-
* <Sheet.TitleGroup>
|
|
42
|
-
* <Sheet.Title>Are you absolutely sure?</Sheet.Title>
|
|
43
|
-
* <Sheet.Actions>
|
|
44
|
-
* <IconButton
|
|
45
|
-
* appearance="ghost"
|
|
46
|
-
* intent="neutral"
|
|
47
|
-
* type="button"
|
|
48
|
-
* icon={<TrashSimple />}
|
|
49
|
-
* label="Delete"
|
|
50
|
-
* />
|
|
51
|
-
* <Separator orientation="vertical" className="h-[80%]" />
|
|
52
|
-
* <Sheet.CloseIconButton />
|
|
53
|
-
* </Sheet.Actions>
|
|
54
|
-
* </Sheet.TitleGroup>
|
|
55
|
-
* <Sheet.Description>
|
|
56
|
-
* This action cannot be undone. This will permanently delete your account and remove your data from our servers.
|
|
57
|
-
* </Sheet.Description>
|
|
58
|
-
* </Sheet.Header>
|
|
59
|
-
* <Sheet.Body>
|
|
60
|
-
* <p>
|
|
61
|
-
* Consequat do voluptate culpa fugiat consequat nostrud duis
|
|
62
|
-
* aliqua minim. Tempor voluptate cillum elit velit. Voluptate
|
|
63
|
-
* aliqua ipsum aliqua dolore in nisi ea fugiat aliqua velit
|
|
64
|
-
* proident amet.
|
|
65
|
-
* </p>
|
|
66
|
-
* </Sheet.Body>
|
|
67
|
-
* <Sheet.Footer>
|
|
68
|
-
* <Sheet.Close asChild>
|
|
69
|
-
* <Button type="button" appearance="outlined" intent="neutral">Close</Button>
|
|
70
|
-
* </Sheet.Close>
|
|
71
|
-
* <Button type="button" appearance="filled" intent="neutral">
|
|
72
|
-
* Save
|
|
73
|
-
* </Button>
|
|
74
|
-
* </Sheet.Footer>
|
|
75
|
-
* </Sheet.Content>
|
|
76
|
-
* </Sheet.Root>
|
|
77
|
-
* ```
|
|
78
|
-
*
|
|
79
|
-
* @example
|
|
80
|
-
* ```tsx
|
|
81
|
-
* // Sheet without a trigger (e.g. router controlled)
|
|
82
|
-
* <Sheet.Root open onOpenChange={() => onClose()}>
|
|
83
|
-
* <Sheet.Content>
|
|
84
|
-
* <Sheet.Header>
|
|
85
|
-
* <Sheet.TitleGroup>
|
|
86
|
-
* <Sheet.Title>Are you absolutely sure?</Sheet.Title>
|
|
87
|
-
* <Sheet.Actions>
|
|
88
|
-
* <IconButton
|
|
89
|
-
* appearance="ghost"
|
|
90
|
-
* intent="neutral"
|
|
91
|
-
* type="button"
|
|
92
|
-
* icon={<TrashSimple />}
|
|
93
|
-
* label="Delete"
|
|
94
|
-
* />
|
|
95
|
-
* <Separator orientation="vertical" className="h-[80%]" />
|
|
96
|
-
* <Sheet.CloseIconButton />
|
|
97
|
-
* </Sheet.Actions>
|
|
98
|
-
* </Sheet.TitleGroup>
|
|
99
|
-
* <Sheet.Description>
|
|
100
|
-
* This action cannot be undone. This will permanently delete your account and remove your data from our servers.
|
|
101
|
-
* </Sheet.Description>
|
|
102
|
-
* </Sheet.Header>
|
|
103
|
-
* <Sheet.Body>
|
|
104
|
-
* <p>
|
|
105
|
-
* Consequat do voluptate culpa fugiat consequat nostrud duis
|
|
106
|
-
* aliqua minim. Tempor voluptate cillum elit velit. Voluptate
|
|
107
|
-
* aliqua ipsum aliqua dolore in nisi ea fugiat aliqua velit
|
|
108
|
-
* proident amet.
|
|
109
|
-
* </p>
|
|
110
|
-
* </Sheet.Body>
|
|
111
|
-
* <Sheet.Footer>
|
|
112
|
-
* <Sheet.Close asChild>
|
|
113
|
-
* <Button type="button" appearance="outlined" intent="neutral">Close</Button>
|
|
114
|
-
* </Sheet.Close>
|
|
115
|
-
* <Button type="button" appearance="filled" intent="neutral">
|
|
116
|
-
* Save
|
|
117
|
-
* </Button>
|
|
118
|
-
* </Sheet.Footer>
|
|
119
|
-
* </Sheet.Content>
|
|
120
|
-
* </Sheet.Root>
|
|
121
|
-
* ```
|
|
122
|
-
*/
|
|
123
|
-
declare const Root: (props: ComponentProps<typeof Root$1>) => import("react").JSX.Element;
|
|
124
|
-
/**
|
|
125
|
-
* The button trigger for a `Sheet`. Should be rendered as a child of the `Sheet` component.
|
|
126
|
-
* Renders an unstyled button by default, but can be customized with the `asChild` prop.
|
|
127
|
-
*
|
|
128
|
-
* Opens the nearest `Sheet.Root`. It never opens a `Dialog.Root`, and a
|
|
129
|
-
* `Dialog.Trigger` inside the sheet never opens the sheet.
|
|
130
|
-
*
|
|
131
|
-
* @see https://mantle.ngrok.com/components/overlays/sheet#sheettrigger
|
|
132
|
-
*
|
|
133
|
-
* @example
|
|
134
|
-
* ```tsx
|
|
135
|
-
* <Sheet.Root>
|
|
136
|
-
* <Sheet.Trigger asChild>
|
|
137
|
-
* <Button type="button" appearance="filled" intent="neutral">Open Sheet</Button>
|
|
138
|
-
* </Sheet.Trigger>
|
|
139
|
-
* <Sheet.Content>
|
|
140
|
-
* <Sheet.Header>
|
|
141
|
-
* <Sheet.TitleGroup>
|
|
142
|
-
* <Sheet.Title>Are you absolutely sure?</Sheet.Title>
|
|
143
|
-
* <Sheet.Actions>
|
|
144
|
-
* <Sheet.CloseIconButton />
|
|
145
|
-
* </Sheet.Actions>
|
|
146
|
-
* </Sheet.TitleGroup>
|
|
147
|
-
* <Sheet.Description>
|
|
148
|
-
* This action cannot be undone.
|
|
149
|
-
* </Sheet.Description>
|
|
150
|
-
* </Sheet.Header>
|
|
151
|
-
* <Sheet.Body>
|
|
152
|
-
* <p>Sheet content.</p>
|
|
153
|
-
* </Sheet.Body>
|
|
154
|
-
* <Sheet.Footer>
|
|
155
|
-
* <Sheet.Close asChild>
|
|
156
|
-
* <Button type="button" appearance="outlined" intent="neutral">Close</Button>
|
|
157
|
-
* </Sheet.Close>
|
|
158
|
-
* <Button type="button" appearance="filled" intent="neutral">Save</Button>
|
|
159
|
-
* </Sheet.Footer>
|
|
160
|
-
* </Sheet.Content>
|
|
161
|
-
* </Sheet.Root>
|
|
162
|
-
* ```
|
|
163
|
-
*/
|
|
164
|
-
declare const Trigger: (props: ComponentProps<typeof Trigger$1>) => import("react").JSX.Element;
|
|
165
|
-
/**
|
|
166
|
-
* The close button for a `Sheet`. Should be rendered as a child of the `Sheet.Content` component.
|
|
167
|
-
* Usually contained within the `Sheet.Footer` component.
|
|
168
|
-
* Renders an unstyled button by default, but can be customized with the `asChild` prop.
|
|
169
|
-
*
|
|
170
|
-
* Closes the nearest `Sheet.Root`. It never closes a `Dialog.Root`, and a
|
|
171
|
-
* `Dialog.Close` inside the sheet never closes the sheet.
|
|
172
|
-
*
|
|
173
|
-
* @see https://mantle.ngrok.com/components/overlays/sheet#sheetclose
|
|
174
|
-
*
|
|
175
|
-
* @example
|
|
176
|
-
* ```tsx
|
|
177
|
-
* <Sheet.Root>
|
|
178
|
-
* <Sheet.Trigger asChild>
|
|
179
|
-
* <Button type="button" appearance="filled" intent="neutral">Open Sheet</Button>
|
|
180
|
-
* </Sheet.Trigger>
|
|
181
|
-
* <Sheet.Content>
|
|
182
|
-
* <Sheet.Header>
|
|
183
|
-
* <Sheet.TitleGroup>
|
|
184
|
-
* <Sheet.Title>Are you absolutely sure?</Sheet.Title>
|
|
185
|
-
* <Sheet.Actions>
|
|
186
|
-
* <Sheet.CloseIconButton />
|
|
187
|
-
* </Sheet.Actions>
|
|
188
|
-
* </Sheet.TitleGroup>
|
|
189
|
-
* <Sheet.Description>
|
|
190
|
-
* This action cannot be undone.
|
|
191
|
-
* </Sheet.Description>
|
|
192
|
-
* </Sheet.Header>
|
|
193
|
-
* <Sheet.Body>
|
|
194
|
-
* <p>Sheet content.</p>
|
|
195
|
-
* </Sheet.Body>
|
|
196
|
-
* <Sheet.Footer>
|
|
197
|
-
* <Sheet.Close asChild>
|
|
198
|
-
* <Button type="button" appearance="outlined" intent="neutral">Close</Button>
|
|
199
|
-
* </Sheet.Close>
|
|
200
|
-
* <Button type="button" appearance="filled" intent="neutral">Save</Button>
|
|
201
|
-
* </Sheet.Footer>
|
|
202
|
-
* </Sheet.Content>
|
|
203
|
-
* </Sheet.Root>
|
|
204
|
-
* ```
|
|
205
|
-
*/
|
|
206
|
-
declare const Close: (props: ComponentProps<typeof Close$1>) => import("react").JSX.Element;
|
|
207
|
-
declare const sheetVariants: (props?: ({
|
|
208
|
-
side?: "left" | "right" | null | undefined;
|
|
209
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
210
|
-
type SheetContentProps = ComponentProps<typeof Content$1> & VariantProps<typeof sheetVariants> & {
|
|
211
|
-
/**
|
|
212
|
-
* The preferred width of the `Sheet.Content` as a tailwind `max-w-` class.
|
|
213
|
-
*
|
|
214
|
-
* By default, a `Sheet`'s content width is responsive with a default
|
|
215
|
-
* preferred width: the maximum width of the `Sheet.Content` when the window
|
|
216
|
-
* viewport is larger than the mobile breakpoint (`sm`).
|
|
217
|
-
*
|
|
218
|
-
* @default `sm:max-w-120`
|
|
219
|
-
*/
|
|
220
|
-
preferredWidth?: `sm:max-w-${string}`;
|
|
221
|
-
} & WithDataSlot;
|
|
222
|
-
/**
|
|
223
|
-
* The main container for a `Sheet`. Should be rendered as a child of the `Sheet` component.
|
|
224
|
-
* Renders on top of the overlay backdrop.
|
|
225
|
-
* Should contain the `Sheet.Header`, `Sheet.Body`, and `Sheet.Footer`.
|
|
226
|
-
*
|
|
227
|
-
* `Sheet.Content` renders its floating layer at Tailwind `z-60`, Mantle's
|
|
228
|
-
* overlay tier, above every float (`z-50`). Floats composed inside the content
|
|
229
|
-
* portal into the positioner (`data-slot="sheet-positioner"`) and paint above
|
|
230
|
-
* the content. When multiple overlays are open, the most recently mounted
|
|
231
|
-
* overlay renders on top.
|
|
232
|
-
*
|
|
233
|
-
* UI that must take clicks above the open sheet, such as a consent banner,
|
|
234
|
-
* carries the `overlay-prompt` class: a click inside it does not count as an
|
|
235
|
-
* outside click. Add `pointer-events-auto` too, because the open sheet sets
|
|
236
|
-
* `pointer-events: none` on `<body>`. mantle's `Toaster` does both.
|
|
237
|
-
*
|
|
238
|
-
* The class reaches pointer input only. The open sheet traps keyboard
|
|
239
|
-
* focus and hides outside content from assistive technology. Put a control that
|
|
240
|
-
* every user must reach inside the content.
|
|
241
|
-
*
|
|
242
|
-
* @see https://mantle.ngrok.com/components/overlays/sheet#sheetcontent
|
|
243
|
-
*
|
|
244
|
-
* @example
|
|
245
|
-
* ```tsx
|
|
246
|
-
* // Sheet without a trigger (e.g. router controlled)
|
|
247
|
-
* <Sheet.Root open onOpenChange={() => onClose()}>
|
|
248
|
-
* <Sheet.Content>
|
|
249
|
-
* <Sheet.Header>
|
|
250
|
-
* <Sheet.TitleGroup>
|
|
251
|
-
* <Sheet.Title>Are you absolutely sure?</Sheet.Title>
|
|
252
|
-
* <Sheet.Actions>
|
|
253
|
-
* <IconButton
|
|
254
|
-
* appearance="ghost"
|
|
255
|
-
* intent="neutral"
|
|
256
|
-
* type="button"
|
|
257
|
-
* icon={<TrashSimple />}
|
|
258
|
-
* label="Delete"
|
|
259
|
-
* />
|
|
260
|
-
* <Separator orientation="vertical" className="h-[80%]" />
|
|
261
|
-
* <Sheet.CloseIconButton />
|
|
262
|
-
* </Sheet.Actions>
|
|
263
|
-
* </Sheet.TitleGroup>
|
|
264
|
-
* <Sheet.Description>
|
|
265
|
-
* This action cannot be undone. This will permanently delete your account and remove your data from our servers.
|
|
266
|
-
* </Sheet.Description>
|
|
267
|
-
* </Sheet.Header>
|
|
268
|
-
* <Sheet.Body>
|
|
269
|
-
* <p>
|
|
270
|
-
* Consequat do voluptate culpa fugiat consequat nostrud duis
|
|
271
|
-
* aliqua minim. Tempor voluptate cillum elit velit. Voluptate
|
|
272
|
-
* aliqua ipsum aliqua dolore in nisi ea fugiat aliqua velit
|
|
273
|
-
* proident amet.
|
|
274
|
-
* </p>
|
|
275
|
-
* </Sheet.Body>
|
|
276
|
-
* <Sheet.Footer>
|
|
277
|
-
* <Sheet.Close asChild>
|
|
278
|
-
* <Button type="button" appearance="outlined" intent="neutral">Close</Button>
|
|
279
|
-
* </Sheet.Close>
|
|
280
|
-
* <Button type="button" appearance="filled" intent="neutral">
|
|
281
|
-
* Save
|
|
282
|
-
* </Button>
|
|
283
|
-
* </Sheet.Footer>
|
|
284
|
-
* </Sheet.Content>
|
|
285
|
-
* </Sheet.Root>
|
|
286
|
-
* ```
|
|
287
|
-
*/
|
|
288
|
-
declare const Content: ({ "data-slot": dataSlot, children, className, preferredWidth, side, ref, ...props }: SheetContentProps) => import("react").JSX.Element;
|
|
289
|
-
type SheetCloseIconButtonProps = Partial<Omit<IconButtonProps, "icon" | "appearance" | "intent">> & {
|
|
290
|
-
/**
|
|
291
|
-
* The visual style of the close icon button. Optional here —
|
|
292
|
-
* `Sheet.CloseIconButton` defaults to `"ghost"` so it stays visually quiet
|
|
293
|
-
* in the `Sheet.Header` beside the title.
|
|
294
|
-
*
|
|
295
|
-
* @default "ghost"
|
|
296
|
-
*/
|
|
297
|
-
appearance?: IconButtonAppearance;
|
|
298
|
-
/**
|
|
299
|
-
* The tone of the close icon button. Optional here — `Sheet.CloseIconButton`
|
|
300
|
-
* defaults to `"neutral"`, the workhorse tone for routine dismissal, and the
|
|
301
|
-
* only tone `IconButton` draws.
|
|
302
|
-
*
|
|
303
|
-
* @default "neutral"
|
|
304
|
-
*/
|
|
305
|
-
intent?: IconButtonIntent;
|
|
306
|
-
} & WithDataSlot;
|
|
307
|
-
/**
|
|
308
|
-
* An icon button that closes the `Sheet` when clicked.
|
|
309
|
-
* Should be rendered within the `Sheet.Header` as a child of `Sheet.Actions`.
|
|
310
|
-
*
|
|
311
|
-
* Composes around the mantle `IconButton` and defaults to
|
|
312
|
-
* `appearance="ghost"` and `intent="neutral"`.
|
|
313
|
-
*
|
|
314
|
-
* @see https://mantle.ngrok.com/components/overlays/sheet#sheetcloseiconbutton
|
|
315
|
-
*
|
|
316
|
-
* @example
|
|
317
|
-
* ```tsx
|
|
318
|
-
* // Sheet without a trigger (e.g. router controlled)
|
|
319
|
-
* <Sheet.Root open onOpenChange={() => onClose()}>
|
|
320
|
-
* <Sheet.Content>
|
|
321
|
-
* <Sheet.Header>
|
|
322
|
-
* <Sheet.TitleGroup>
|
|
323
|
-
* <Sheet.Title>Are you absolutely sure?</Sheet.Title>
|
|
324
|
-
* <Sheet.Actions>
|
|
325
|
-
* <IconButton
|
|
326
|
-
* appearance="ghost"
|
|
327
|
-
* intent="neutral"
|
|
328
|
-
* type="button"
|
|
329
|
-
* icon={<TrashSimple />}
|
|
330
|
-
* label="Delete"
|
|
331
|
-
* />
|
|
332
|
-
* <Separator orientation="vertical" className="h-[80%]" />
|
|
333
|
-
* <Sheet.CloseIconButton />
|
|
334
|
-
* </Sheet.Actions>
|
|
335
|
-
* </Sheet.TitleGroup>
|
|
336
|
-
* <Sheet.Description>
|
|
337
|
-
* This action cannot be undone. This will permanently delete your account and remove your data from our servers.
|
|
338
|
-
* </Sheet.Description>
|
|
339
|
-
* </Sheet.Header>
|
|
340
|
-
* <Sheet.Body>
|
|
341
|
-
* <p>
|
|
342
|
-
* Consequat do voluptate culpa fugiat consequat nostrud duis
|
|
343
|
-
* aliqua minim. Tempor voluptate cillum elit velit. Voluptate
|
|
344
|
-
* aliqua ipsum aliqua dolore in nisi ea fugiat aliqua velit
|
|
345
|
-
* proident amet.
|
|
346
|
-
* </p>
|
|
347
|
-
* </Sheet.Body>
|
|
348
|
-
* <Sheet.Footer>
|
|
349
|
-
* <Sheet.Close asChild>
|
|
350
|
-
* <Button type="button" appearance="outlined" intent="neutral">Close</Button>
|
|
351
|
-
* </Sheet.Close>
|
|
352
|
-
* <Button type="button" appearance="filled" intent="neutral">
|
|
353
|
-
* Save
|
|
354
|
-
* </Button>
|
|
355
|
-
* </Sheet.Footer>
|
|
356
|
-
* </Sheet.Content>
|
|
357
|
-
* </Sheet.Root>
|
|
358
|
-
* ```
|
|
359
|
-
*/
|
|
360
|
-
declare const CloseIconButton: ({ "data-slot": dataSlot, size, type, label, appearance, intent, ...props }: SheetCloseIconButtonProps) => import("react").JSX.Element;
|
|
361
|
-
/**
|
|
362
|
-
* The body container for a `Sheet`. This is where you would typically place the main content of the sheet, such as forms or text.
|
|
363
|
-
* Should be rendered as a child of `Sheet.Content`.
|
|
364
|
-
*
|
|
365
|
-
* @see https://mantle.ngrok.com/components/overlays/sheet#sheetbody
|
|
366
|
-
*
|
|
367
|
-
* @example
|
|
368
|
-
* ```tsx
|
|
369
|
-
* // Sheet without a trigger (e.g. router controlled)
|
|
370
|
-
* <Sheet.Root open onOpenChange={() => onClose()}>
|
|
371
|
-
* <Sheet.Content>
|
|
372
|
-
* <Sheet.Header>
|
|
373
|
-
* <Sheet.TitleGroup>
|
|
374
|
-
* <Sheet.Title>Are you absolutely sure?</Sheet.Title>
|
|
375
|
-
* <Sheet.Actions>
|
|
376
|
-
* <IconButton
|
|
377
|
-
* appearance="ghost"
|
|
378
|
-
* intent="neutral"
|
|
379
|
-
* type="button"
|
|
380
|
-
* icon={<TrashSimple />}
|
|
381
|
-
* label="Delete"
|
|
382
|
-
* />
|
|
383
|
-
* <Separator orientation="vertical" className="h-[80%]" />
|
|
384
|
-
* <Sheet.CloseIconButton />
|
|
385
|
-
* </Sheet.Actions>
|
|
386
|
-
* </Sheet.TitleGroup>
|
|
387
|
-
* <Sheet.Description>
|
|
388
|
-
* This action cannot be undone. This will permanently delete your account and remove your data from our servers.
|
|
389
|
-
* </Sheet.Description>
|
|
390
|
-
* </Sheet.Header>
|
|
391
|
-
* <Sheet.Body>
|
|
392
|
-
* <p>
|
|
393
|
-
* Consequat do voluptate culpa fugiat consequat nostrud duis
|
|
394
|
-
* aliqua minim. Tempor voluptate cillum elit velit. Voluptate
|
|
395
|
-
* aliqua ipsum aliqua dolore in nisi ea fugiat aliqua velit
|
|
396
|
-
* proident amet.
|
|
397
|
-
* </p>
|
|
398
|
-
* </Sheet.Body>
|
|
399
|
-
* <Sheet.Footer>
|
|
400
|
-
* <Sheet.Close asChild>
|
|
401
|
-
* <Button type="button" appearance="outlined" intent="neutral">Close</Button>
|
|
402
|
-
* </Sheet.Close>
|
|
403
|
-
* <Button type="button" appearance="filled" intent="neutral">
|
|
404
|
-
* Save
|
|
405
|
-
* </Button>
|
|
406
|
-
* </Sheet.Footer>
|
|
407
|
-
* </Sheet.Content>
|
|
408
|
-
* </Sheet.Root>
|
|
409
|
-
* ```
|
|
410
|
-
*/
|
|
411
|
-
declare const Body: ({ "data-slot": dataSlot, className, ...props }: HTMLAttributes<HTMLDivElement> & WithDataSlot) => import("react").JSX.Element;
|
|
412
|
-
/**
|
|
413
|
-
* The header container for a `Sheet`. This is where you would typically place the title, description, and actions.
|
|
414
|
-
* Should be rendered as a child of `Sheet.Content`.
|
|
415
|
-
*
|
|
416
|
-
* @see https://mantle.ngrok.com/components/overlays/sheet#sheetheader
|
|
417
|
-
*
|
|
418
|
-
* @example
|
|
419
|
-
* ```tsx
|
|
420
|
-
* // Sheet without a trigger (e.g. router controlled)
|
|
421
|
-
* <Sheet.Root open onOpenChange={() => onClose()}>
|
|
422
|
-
* <Sheet.Content>
|
|
423
|
-
* <Sheet.Header>
|
|
424
|
-
* <Sheet.TitleGroup>
|
|
425
|
-
* <Sheet.Title>Are you absolutely sure?</Sheet.Title>
|
|
426
|
-
* <Sheet.Actions>
|
|
427
|
-
* <IconButton
|
|
428
|
-
* appearance="ghost"
|
|
429
|
-
* intent="neutral"
|
|
430
|
-
* type="button"
|
|
431
|
-
* icon={<TrashSimple />}
|
|
432
|
-
* label="Delete"
|
|
433
|
-
* />
|
|
434
|
-
* <Separator orientation="vertical" className="h-[80%]" />
|
|
435
|
-
* <Sheet.CloseIconButton />
|
|
436
|
-
* </Sheet.Actions>
|
|
437
|
-
* </Sheet.TitleGroup>
|
|
438
|
-
* <Sheet.Description>
|
|
439
|
-
* This action cannot be undone. This will permanently delete your account and remove your data from our servers.
|
|
440
|
-
* </Sheet.Description>
|
|
441
|
-
* </Sheet.Header>
|
|
442
|
-
* <Sheet.Body>
|
|
443
|
-
* <p>
|
|
444
|
-
* Consequat do voluptate culpa fugiat consequat nostrud duis
|
|
445
|
-
* aliqua minim. Tempor voluptate cillum elit velit. Voluptate
|
|
446
|
-
* aliqua ipsum aliqua dolore in nisi ea fugiat aliqua velit
|
|
447
|
-
* proident amet.
|
|
448
|
-
* </p>
|
|
449
|
-
* </Sheet.Body>
|
|
450
|
-
* <Sheet.Footer>
|
|
451
|
-
* <Sheet.Close asChild>
|
|
452
|
-
* <Button type="button" appearance="outlined" intent="neutral">Close</Button>
|
|
453
|
-
* </Sheet.Close>
|
|
454
|
-
* <Button type="button" appearance="filled" intent="neutral">
|
|
455
|
-
* Save
|
|
456
|
-
* </Button>
|
|
457
|
-
* </Sheet.Footer>
|
|
458
|
-
* </Sheet.Content>
|
|
459
|
-
* </Sheet.Root>
|
|
460
|
-
* ```
|
|
461
|
-
*/
|
|
462
|
-
declare const Header: ({ "data-slot": dataSlot, className, ...props }: HTMLAttributes<HTMLDivElement> & WithDataSlot) => import("react").JSX.Element;
|
|
463
|
-
/**
|
|
464
|
-
* The footer container for a `Sheet`. This is where you would typically place close and submit buttons.
|
|
465
|
-
* Should be rendered as a child of `Sheet.Content`.
|
|
466
|
-
*
|
|
467
|
-
* @see https://mantle.ngrok.com/components/overlays/sheet#sheetfooter
|
|
468
|
-
*
|
|
469
|
-
* @example
|
|
470
|
-
* ```tsx
|
|
471
|
-
* // Sheet without a trigger (e.g. router controlled)
|
|
472
|
-
* <Sheet.Root open onOpenChange={() => onClose()}>
|
|
473
|
-
* <Sheet.Content>
|
|
474
|
-
* <Sheet.Header>
|
|
475
|
-
* <Sheet.TitleGroup>
|
|
476
|
-
* <Sheet.Title>Are you absolutely sure?</Sheet.Title>
|
|
477
|
-
* <Sheet.Actions>
|
|
478
|
-
* <IconButton
|
|
479
|
-
* appearance="ghost"
|
|
480
|
-
* intent="neutral"
|
|
481
|
-
* type="button"
|
|
482
|
-
* icon={<TrashSimple />}
|
|
483
|
-
* label="Delete"
|
|
484
|
-
* />
|
|
485
|
-
* <Separator orientation="vertical" className="h-[80%]" />
|
|
486
|
-
* <Sheet.CloseIconButton />
|
|
487
|
-
* </Sheet.Actions>
|
|
488
|
-
* </Sheet.TitleGroup>
|
|
489
|
-
* <Sheet.Description>
|
|
490
|
-
* This action cannot be undone. This will permanently delete your account and remove your data from our servers.
|
|
491
|
-
* </Sheet.Description>
|
|
492
|
-
* </Sheet.Header>
|
|
493
|
-
* <Sheet.Body>
|
|
494
|
-
* <p>
|
|
495
|
-
* Consequat do voluptate culpa fugiat consequat nostrud duis
|
|
496
|
-
* aliqua minim. Tempor voluptate cillum elit velit. Voluptate
|
|
497
|
-
* aliqua ipsum aliqua dolore in nisi ea fugiat aliqua velit
|
|
498
|
-
* proident amet.
|
|
499
|
-
* </p>
|
|
500
|
-
* </Sheet.Body>
|
|
501
|
-
* <Sheet.Footer>
|
|
502
|
-
* <Sheet.Close asChild>
|
|
503
|
-
* <Button type="button" appearance="outlined" intent="neutral">Close</Button>
|
|
504
|
-
* </Sheet.Close>
|
|
505
|
-
* <Button type="button" appearance="filled" intent="neutral">
|
|
506
|
-
* Save
|
|
507
|
-
* </Button>
|
|
508
|
-
* </Sheet.Footer>
|
|
509
|
-
* </Sheet.Content>
|
|
510
|
-
* </Sheet.Root>
|
|
511
|
-
* ```
|
|
512
|
-
*/
|
|
513
|
-
declare const Footer: ({ "data-slot": dataSlot, className, ...props }: HTMLAttributes<HTMLDivElement> & WithDataSlot) => import("react").JSX.Element;
|
|
514
|
-
/**
|
|
515
|
-
* The title for a `Sheet`. Typically rendered as a child of `Sheet.TitleGroup`.
|
|
516
|
-
* Defaults to an `h2` element, but can be changed via the `asChild` prop.
|
|
517
|
-
*
|
|
518
|
-
* @see https://mantle.ngrok.com/components/overlays/sheet#sheettitle
|
|
519
|
-
*
|
|
520
|
-
* @example
|
|
521
|
-
* ```tsx
|
|
522
|
-
* // Sheet without a trigger (e.g. router controlled)
|
|
523
|
-
* <Sheet.Root open onOpenChange={() => onClose()}>
|
|
524
|
-
* <Sheet.Content>
|
|
525
|
-
* <Sheet.Header>
|
|
526
|
-
* <Sheet.TitleGroup>
|
|
527
|
-
* <Sheet.Title>Are you absolutely sure?</Sheet.Title>
|
|
528
|
-
* <Sheet.Actions>
|
|
529
|
-
* <IconButton
|
|
530
|
-
* appearance="ghost"
|
|
531
|
-
* intent="neutral"
|
|
532
|
-
* type="button"
|
|
533
|
-
* icon={<TrashSimple />}
|
|
534
|
-
* label="Delete"
|
|
535
|
-
* />
|
|
536
|
-
* <Separator orientation="vertical" className="h-[80%]" />
|
|
537
|
-
* <Sheet.CloseIconButton />
|
|
538
|
-
* </Sheet.Actions>
|
|
539
|
-
* </Sheet.TitleGroup>
|
|
540
|
-
* <Sheet.Description>
|
|
541
|
-
* This action cannot be undone. This will permanently delete your account and remove your data from our servers.
|
|
542
|
-
* </Sheet.Description>
|
|
543
|
-
* </Sheet.Header>
|
|
544
|
-
* <Sheet.Body>
|
|
545
|
-
* <p>
|
|
546
|
-
* Consequat do voluptate culpa fugiat consequat nostrud duis
|
|
547
|
-
* aliqua minim. Tempor voluptate cillum elit velit. Voluptate
|
|
548
|
-
* aliqua ipsum aliqua dolore in nisi ea fugiat aliqua velit
|
|
549
|
-
* proident amet.
|
|
550
|
-
* </p>
|
|
551
|
-
* </Sheet.Body>
|
|
552
|
-
* <Sheet.Footer>
|
|
553
|
-
* <Sheet.Close asChild>
|
|
554
|
-
* <Button type="button" appearance="outlined" intent="neutral">Close</Button>
|
|
555
|
-
* </Sheet.Close>
|
|
556
|
-
* <Button type="button" appearance="filled" intent="neutral">
|
|
557
|
-
* Save
|
|
558
|
-
* </Button>
|
|
559
|
-
* </Sheet.Footer>
|
|
560
|
-
* </Sheet.Content>
|
|
561
|
-
* </Sheet.Root>
|
|
562
|
-
* ```
|
|
563
|
-
*/
|
|
564
|
-
declare const Title: ({ "data-slot": dataSlot, className, ref, ...props }: ComponentProps<typeof Title$1> & WithDataSlot) => import("react").JSX.Element;
|
|
565
|
-
/**
|
|
566
|
-
* A group container for the title and actions of a sheet. Typically rendered as a child of `Sheet.Header`.
|
|
567
|
-
*
|
|
568
|
-
* @see https://mantle.ngrok.com/components/overlays/sheet#sheettitlegroup
|
|
569
|
-
*
|
|
570
|
-
* @example
|
|
571
|
-
* ```tsx
|
|
572
|
-
* // Sheet without a trigger (e.g. router controlled)
|
|
573
|
-
* <Sheet.Root open onOpenChange={() => onClose()}>
|
|
574
|
-
* <Sheet.Content>
|
|
575
|
-
* <Sheet.Header>
|
|
576
|
-
* <Sheet.TitleGroup>
|
|
577
|
-
* <Sheet.Title>Are you absolutely sure?</Sheet.Title>
|
|
578
|
-
* <Sheet.Actions>
|
|
579
|
-
* <IconButton
|
|
580
|
-
* appearance="ghost"
|
|
581
|
-
* intent="neutral"
|
|
582
|
-
* type="button"
|
|
583
|
-
* icon={<TrashSimple />}
|
|
584
|
-
* label="Delete"
|
|
585
|
-
* />
|
|
586
|
-
* <Separator orientation="vertical" className="h-[80%]" />
|
|
587
|
-
* <Sheet.CloseIconButton />
|
|
588
|
-
* </Sheet.Actions>
|
|
589
|
-
* </Sheet.TitleGroup>
|
|
590
|
-
* <Sheet.Description>
|
|
591
|
-
* This action cannot be undone. This will permanently delete your account and remove your data from our servers.
|
|
592
|
-
* </Sheet.Description>
|
|
593
|
-
* </Sheet.Header>
|
|
594
|
-
* <Sheet.Body>
|
|
595
|
-
* <p>
|
|
596
|
-
* Consequat do voluptate culpa fugiat consequat nostrud duis
|
|
597
|
-
* aliqua minim. Tempor voluptate cillum elit velit. Voluptate
|
|
598
|
-
* aliqua ipsum aliqua dolore in nisi ea fugiat aliqua velit
|
|
599
|
-
* proident amet.
|
|
600
|
-
* </p>
|
|
601
|
-
* </Sheet.Body>
|
|
602
|
-
* <Sheet.Footer>
|
|
603
|
-
* <Sheet.Close asChild>
|
|
604
|
-
* <Button type="button" appearance="outlined" intent="neutral">Close</Button>
|
|
605
|
-
* </Sheet.Close>
|
|
606
|
-
* <Button type="button" appearance="filled" intent="neutral">
|
|
607
|
-
* Save
|
|
608
|
-
* </Button>
|
|
609
|
-
* </Sheet.Footer>
|
|
610
|
-
* </Sheet.Content>
|
|
611
|
-
* </Sheet.Root>
|
|
612
|
-
* ```
|
|
613
|
-
*/
|
|
614
|
-
declare const TitleGroup: ({ "data-slot": dataSlot, children, className, ref, ...props }: ComponentProps<"div"> & WithDataSlot) => import("react").JSX.Element;
|
|
615
|
-
/**
|
|
616
|
-
* A description for a sheet. Typically rendered as a child of `Sheet.Header`.
|
|
617
|
-
*
|
|
618
|
-
* @see https://mantle.ngrok.com/components/overlays/sheet#sheetdescription
|
|
619
|
-
*
|
|
620
|
-
* @example
|
|
621
|
-
* ```tsx
|
|
622
|
-
* // Sheet without a trigger (e.g. router controlled)
|
|
623
|
-
* <Sheet.Root open onOpenChange={() => onClose()}>
|
|
624
|
-
* <Sheet.Content>
|
|
625
|
-
* <Sheet.Header>
|
|
626
|
-
* <Sheet.TitleGroup>
|
|
627
|
-
* <Sheet.Title>Are you absolutely sure?</Sheet.Title>
|
|
628
|
-
* <Sheet.Actions>
|
|
629
|
-
* <IconButton
|
|
630
|
-
* appearance="ghost"
|
|
631
|
-
* intent="neutral"
|
|
632
|
-
* type="button"
|
|
633
|
-
* icon={<TrashSimple />}
|
|
634
|
-
* label="Delete"
|
|
635
|
-
* />
|
|
636
|
-
* <Separator orientation="vertical" className="h-[80%]" />
|
|
637
|
-
* <Sheet.CloseIconButton />
|
|
638
|
-
* </Sheet.Actions>
|
|
639
|
-
* </Sheet.TitleGroup>
|
|
640
|
-
* <Sheet.Description>
|
|
641
|
-
* This action cannot be undone. This will permanently delete your account and remove your data from our servers.
|
|
642
|
-
* </Sheet.Description>
|
|
643
|
-
* </Sheet.Header>
|
|
644
|
-
* <Sheet.Body>
|
|
645
|
-
* <p>
|
|
646
|
-
* Consequat do voluptate culpa fugiat consequat nostrud duis
|
|
647
|
-
* aliqua minim. Tempor voluptate cillum elit velit. Voluptate
|
|
648
|
-
* aliqua ipsum aliqua dolore in nisi ea fugiat aliqua velit
|
|
649
|
-
* proident amet.
|
|
650
|
-
* </p>
|
|
651
|
-
* </Sheet.Body>
|
|
652
|
-
* <Sheet.Footer>
|
|
653
|
-
* <Sheet.Close asChild>
|
|
654
|
-
* <Button type="button" appearance="outlined" intent="neutral">Close</Button>
|
|
655
|
-
* </Sheet.Close>
|
|
656
|
-
* <Button type="button" appearance="filled" intent="neutral">
|
|
657
|
-
* Save
|
|
658
|
-
* </Button>
|
|
659
|
-
* </Sheet.Footer>
|
|
660
|
-
* </Sheet.Content>
|
|
661
|
-
* </Sheet.Root>
|
|
662
|
-
* ```
|
|
663
|
-
*/
|
|
664
|
-
declare const Description: ({ "data-slot": dataSlot, className, ref, ...props }: ComponentProps<typeof Description$1> & WithDataSlot) => import("react").JSX.Element;
|
|
665
|
-
/**
|
|
666
|
-
* A group container for the actions of a `Sheet`. Typically rendered as a child of `Sheet.TitleGroup`.
|
|
667
|
-
*
|
|
668
|
-
* @see https://mantle.ngrok.com/components/overlays/sheet#sheetactions
|
|
669
|
-
*
|
|
670
|
-
* @example
|
|
671
|
-
* ```tsx
|
|
672
|
-
* // Sheet without a trigger (e.g. router controlled)
|
|
673
|
-
* <Sheet.Root open onOpenChange={() => onClose()}>
|
|
674
|
-
* <Sheet.Content>
|
|
675
|
-
* <Sheet.Header>
|
|
676
|
-
* <Sheet.TitleGroup>
|
|
677
|
-
* <Sheet.Title>Are you absolutely sure?</Sheet.Title>
|
|
678
|
-
* <Sheet.Actions>
|
|
679
|
-
* <IconButton
|
|
680
|
-
* appearance="ghost"
|
|
681
|
-
* intent="neutral"
|
|
682
|
-
* type="button"
|
|
683
|
-
* icon={<TrashSimple />}
|
|
684
|
-
* label="Delete"
|
|
685
|
-
* />
|
|
686
|
-
* <Separator orientation="vertical" className="h-[80%]" />
|
|
687
|
-
* <Sheet.CloseIconButton />
|
|
688
|
-
* </Sheet.Actions>
|
|
689
|
-
* </Sheet.TitleGroup>
|
|
690
|
-
* <Sheet.Description>
|
|
691
|
-
* This action cannot be undone. This will permanently delete your account and remove your data from our servers.
|
|
692
|
-
* </Sheet.Description>
|
|
693
|
-
* </Sheet.Header>
|
|
694
|
-
* <Sheet.Body>
|
|
695
|
-
* <p>
|
|
696
|
-
* Consequat do voluptate culpa fugiat consequat nostrud duis
|
|
697
|
-
* aliqua minim. Tempor voluptate cillum elit velit. Voluptate
|
|
698
|
-
* aliqua ipsum aliqua dolore in nisi ea fugiat aliqua velit
|
|
699
|
-
* proident amet.
|
|
700
|
-
* </p>
|
|
701
|
-
* </Sheet.Body>
|
|
702
|
-
* <Sheet.Footer>
|
|
703
|
-
* <Sheet.Close asChild>
|
|
704
|
-
* <Button type="button" appearance="outlined" intent="neutral">Close</Button>
|
|
705
|
-
* </Sheet.Close>
|
|
706
|
-
* <Button type="button" appearance="filled" intent="neutral">
|
|
707
|
-
* Save
|
|
708
|
-
* </Button>
|
|
709
|
-
* </Sheet.Footer>
|
|
710
|
-
* </Sheet.Content>
|
|
711
|
-
* </Sheet.Root>
|
|
712
|
-
* ```
|
|
713
|
-
*/
|
|
714
|
-
declare const Actions: ({ "data-slot": dataSlot, children, className, ref, ...props }: ComponentProps<"div"> & WithDataSlot) => import("react").JSX.Element;
|
|
6
|
+
import * as SheetParts from "./sheet-parts.js";
|
|
715
7
|
/**
|
|
716
8
|
* A container that overlays the current view from the edge of the screen.
|
|
717
9
|
* It is a lightweight way of allowing users to complete a task without losing
|
|
@@ -721,11 +13,15 @@ declare const Actions: ({ "data-slot": dataSlot, children, className, ref, ...pr
|
|
|
721
13
|
* interrupts the user, use `Dialog` (or `AlertDialog` for destructive
|
|
722
14
|
* confirmations).
|
|
723
15
|
*
|
|
724
|
-
* `Sheet`
|
|
725
|
-
*
|
|
726
|
-
* the
|
|
727
|
-
*
|
|
728
|
-
*
|
|
16
|
+
* `Sheet` runs on the browser's modal `<dialog>`: the browser makes
|
|
17
|
+
* the page inert, closes it on Escape, paints it in the top layer, and
|
|
18
|
+
* returns focus to the trigger. Floats composed inside the content portal into
|
|
19
|
+
* the `<dialog>` (`data-slot="sheet-positioner"`) and paint above it. The
|
|
20
|
+
* content mounts when the sheet opens; `forceMount` keeps it mounted and
|
|
21
|
+
* server-rendered, so an uncontrolled tap opens it with no React render, such
|
|
22
|
+
* as for a mobile navigation menu. Set `modal={false}` on the root for a flow
|
|
23
|
+
* whose frame a third-party script puts on `<body>`, such as a 3-D Secure
|
|
24
|
+
* challenge.
|
|
729
25
|
*
|
|
730
26
|
* @useWhen Open a panel from the edge of the screen for a task beside the current view, such as a
|
|
731
27
|
* filter panel, a detail view, or a mobile menu.
|
|
@@ -846,498 +142,5 @@ declare const Actions: ({ "data-slot": dataSlot, children, className, ref, ...pr
|
|
|
846
142
|
* </Sheet.Root>
|
|
847
143
|
* ```
|
|
848
144
|
*/
|
|
849
|
-
declare const Sheet:
|
|
850
|
-
/**
|
|
851
|
-
* The root component for a `Sheet`. Should compose the `Sheet.Trigger` and `Sheet.Content`.
|
|
852
|
-
* Acts as a stateful provider for the Sheet's open/closed state.
|
|
853
|
-
*
|
|
854
|
-
* Every `Sheet` part reads a dialog scope of its own, so it binds to the
|
|
855
|
-
* nearest `Sheet.Root` and never to a `Dialog.Root`. The reverse holds too: a
|
|
856
|
-
* `Dialog.Trigger` or `Command.SearchTrigger` inside `Sheet.Content` reaches
|
|
857
|
-
* the `Dialog.Root` or `Command.DialogRoot` above the sheet, not the sheet. A
|
|
858
|
-
* `Dialog.Close` inside a sheet with no `Dialog.Root` above it throws Radix's
|
|
859
|
-
* "must be used within `Dialog`"; use `Sheet.Close` to close a sheet.
|
|
860
|
-
*
|
|
861
|
-
* `Sheet` renders its floating layer at Tailwind `z-60`, Mantle's overlay
|
|
862
|
-
* tier, above every float (`z-50`). Floats composed inside the content portal
|
|
863
|
-
* into the positioner (`data-slot="sheet-positioner"`) and paint above the
|
|
864
|
-
* content. When multiple overlays are open, the most recently mounted overlay
|
|
865
|
-
* renders on top.
|
|
866
|
-
*
|
|
867
|
-
* @see https://mantle.ngrok.com/components/overlays/sheet#sheetroot
|
|
868
|
-
*
|
|
869
|
-
* @example
|
|
870
|
-
* ```tsx
|
|
871
|
-
* <Sheet.Root>
|
|
872
|
-
* <Sheet.Trigger asChild>
|
|
873
|
-
* <Button type="button" appearance="filled" intent="neutral">Open Sheet</Button>
|
|
874
|
-
* </Sheet.Trigger>
|
|
875
|
-
* <Sheet.Content>
|
|
876
|
-
* <Sheet.Header>
|
|
877
|
-
* <Sheet.TitleGroup>
|
|
878
|
-
* <Sheet.Title>Are you absolutely sure?</Sheet.Title>
|
|
879
|
-
* <Sheet.Actions>
|
|
880
|
-
* <Sheet.CloseIconButton />
|
|
881
|
-
* </Sheet.Actions>
|
|
882
|
-
* </Sheet.TitleGroup>
|
|
883
|
-
* <Sheet.Description>
|
|
884
|
-
* This action cannot be undone.
|
|
885
|
-
* </Sheet.Description>
|
|
886
|
-
* </Sheet.Header>
|
|
887
|
-
* <Sheet.Body>
|
|
888
|
-
* <p>Sheet content.</p>
|
|
889
|
-
* </Sheet.Body>
|
|
890
|
-
* <Sheet.Footer>
|
|
891
|
-
* <Sheet.Close asChild>
|
|
892
|
-
* <Button type="button" appearance="outlined" intent="neutral">Close</Button>
|
|
893
|
-
* </Sheet.Close>
|
|
894
|
-
* <Button type="button" appearance="filled" intent="neutral">Save</Button>
|
|
895
|
-
* </Sheet.Footer>
|
|
896
|
-
* </Sheet.Content>
|
|
897
|
-
* </Sheet.Root>
|
|
898
|
-
* ```
|
|
899
|
-
*/
|
|
900
|
-
readonly Root: typeof Root;
|
|
901
|
-
/**
|
|
902
|
-
* A group container for the actions of a `Sheet`. Typically rendered as a child of `Sheet.TitleGroup`.
|
|
903
|
-
*
|
|
904
|
-
* @see https://mantle.ngrok.com/components/overlays/sheet#sheetactions
|
|
905
|
-
*
|
|
906
|
-
* @example
|
|
907
|
-
* ```tsx
|
|
908
|
-
* <Sheet.Root>
|
|
909
|
-
* <Sheet.Trigger asChild>
|
|
910
|
-
* <Button type="button" appearance="filled" intent="neutral">Open Sheet</Button>
|
|
911
|
-
* </Sheet.Trigger>
|
|
912
|
-
* <Sheet.Content>
|
|
913
|
-
* <Sheet.Header>
|
|
914
|
-
* <Sheet.TitleGroup>
|
|
915
|
-
* <Sheet.Title>Are you absolutely sure?</Sheet.Title>
|
|
916
|
-
* <Sheet.Actions>
|
|
917
|
-
* <Sheet.CloseIconButton />
|
|
918
|
-
* </Sheet.Actions>
|
|
919
|
-
* </Sheet.TitleGroup>
|
|
920
|
-
* <Sheet.Description>
|
|
921
|
-
* This action cannot be undone.
|
|
922
|
-
* </Sheet.Description>
|
|
923
|
-
* </Sheet.Header>
|
|
924
|
-
* <Sheet.Body>
|
|
925
|
-
* <p>Sheet content.</p>
|
|
926
|
-
* </Sheet.Body>
|
|
927
|
-
* <Sheet.Footer>
|
|
928
|
-
* <Sheet.Close asChild>
|
|
929
|
-
* <Button type="button" appearance="outlined" intent="neutral">Close</Button>
|
|
930
|
-
* </Sheet.Close>
|
|
931
|
-
* <Button type="button" appearance="filled" intent="neutral">Save</Button>
|
|
932
|
-
* </Sheet.Footer>
|
|
933
|
-
* </Sheet.Content>
|
|
934
|
-
* </Sheet.Root>
|
|
935
|
-
* ```
|
|
936
|
-
*/
|
|
937
|
-
readonly Actions: typeof Actions;
|
|
938
|
-
/**
|
|
939
|
-
* The body container for a `Sheet`. This is where you would typically place the main content of the sheet, such as forms or text.
|
|
940
|
-
* Should be rendered as a child of `Sheet.Content`.
|
|
941
|
-
*
|
|
942
|
-
* @see https://mantle.ngrok.com/components/overlays/sheet#sheetbody
|
|
943
|
-
*
|
|
944
|
-
* @example
|
|
945
|
-
* ```tsx
|
|
946
|
-
* <Sheet.Root>
|
|
947
|
-
* <Sheet.Trigger asChild>
|
|
948
|
-
* <Button type="button" appearance="filled" intent="neutral">Open Sheet</Button>
|
|
949
|
-
* </Sheet.Trigger>
|
|
950
|
-
* <Sheet.Content>
|
|
951
|
-
* <Sheet.Header>
|
|
952
|
-
* <Sheet.TitleGroup>
|
|
953
|
-
* <Sheet.Title>Are you absolutely sure?</Sheet.Title>
|
|
954
|
-
* <Sheet.Actions>
|
|
955
|
-
* <Sheet.CloseIconButton />
|
|
956
|
-
* </Sheet.Actions>
|
|
957
|
-
* </Sheet.TitleGroup>
|
|
958
|
-
* <Sheet.Description>
|
|
959
|
-
* This action cannot be undone.
|
|
960
|
-
* </Sheet.Description>
|
|
961
|
-
* </Sheet.Header>
|
|
962
|
-
* <Sheet.Body>
|
|
963
|
-
* <p>Sheet content.</p>
|
|
964
|
-
* </Sheet.Body>
|
|
965
|
-
* <Sheet.Footer>
|
|
966
|
-
* <Sheet.Close asChild>
|
|
967
|
-
* <Button type="button" appearance="outlined" intent="neutral">Close</Button>
|
|
968
|
-
* </Sheet.Close>
|
|
969
|
-
* <Button type="button" appearance="filled" intent="neutral">Save</Button>
|
|
970
|
-
* </Sheet.Footer>
|
|
971
|
-
* </Sheet.Content>
|
|
972
|
-
* </Sheet.Root>
|
|
973
|
-
* ```
|
|
974
|
-
*/
|
|
975
|
-
readonly Body: typeof Body;
|
|
976
|
-
/**
|
|
977
|
-
* The close button for a `Sheet`. Should be rendered as a child of the `Sheet.Content` component.
|
|
978
|
-
* Usually contained within the `Sheet.Footer` component.
|
|
979
|
-
* Renders an unstyled button by default, but can be customized with the `asChild` prop.
|
|
980
|
-
*
|
|
981
|
-
* Closes the nearest `Sheet.Root`. It never closes a `Dialog.Root`, and a
|
|
982
|
-
* `Dialog.Close` inside the sheet never closes the sheet.
|
|
983
|
-
*
|
|
984
|
-
* @see https://mantle.ngrok.com/components/overlays/sheet#sheetclose
|
|
985
|
-
*
|
|
986
|
-
* @example
|
|
987
|
-
* ```tsx
|
|
988
|
-
* <Sheet.Root>
|
|
989
|
-
* <Sheet.Trigger asChild>
|
|
990
|
-
* <Button type="button" appearance="filled" intent="neutral">Open Sheet</Button>
|
|
991
|
-
* </Sheet.Trigger>
|
|
992
|
-
* <Sheet.Content>
|
|
993
|
-
* <Sheet.Header>
|
|
994
|
-
* <Sheet.TitleGroup>
|
|
995
|
-
* <Sheet.Title>Are you absolutely sure?</Sheet.Title>
|
|
996
|
-
* <Sheet.Actions>
|
|
997
|
-
* <Sheet.CloseIconButton />
|
|
998
|
-
* </Sheet.Actions>
|
|
999
|
-
* </Sheet.TitleGroup>
|
|
1000
|
-
* <Sheet.Description>
|
|
1001
|
-
* This action cannot be undone.
|
|
1002
|
-
* </Sheet.Description>
|
|
1003
|
-
* </Sheet.Header>
|
|
1004
|
-
* <Sheet.Body>
|
|
1005
|
-
* <p>Sheet content.</p>
|
|
1006
|
-
* </Sheet.Body>
|
|
1007
|
-
* <Sheet.Footer>
|
|
1008
|
-
* <Sheet.Close asChild>
|
|
1009
|
-
* <Button type="button" appearance="outlined" intent="neutral">Close</Button>
|
|
1010
|
-
* </Sheet.Close>
|
|
1011
|
-
* <Button type="button" appearance="filled" intent="neutral">Save</Button>
|
|
1012
|
-
* </Sheet.Footer>
|
|
1013
|
-
* </Sheet.Content>
|
|
1014
|
-
* </Sheet.Root>
|
|
1015
|
-
* ```
|
|
1016
|
-
*/
|
|
1017
|
-
readonly Close: typeof Close;
|
|
1018
|
-
/**
|
|
1019
|
-
* An icon button that closes the `Sheet` when clicked.
|
|
1020
|
-
* Should be rendered within the `Sheet.Header` as a child of `Sheet.Actions`.
|
|
1021
|
-
*
|
|
1022
|
-
* Composes around the mantle `IconButton` and defaults to
|
|
1023
|
-
* `appearance="ghost"` and `intent="neutral"`.
|
|
1024
|
-
*
|
|
1025
|
-
* @see https://mantle.ngrok.com/components/overlays/sheet#sheetcloseiconbutton
|
|
1026
|
-
*
|
|
1027
|
-
* @example
|
|
1028
|
-
* ```tsx
|
|
1029
|
-
* <Sheet.Root>
|
|
1030
|
-
* <Sheet.Trigger asChild>
|
|
1031
|
-
* <Button type="button" appearance="filled" intent="neutral">Open Sheet</Button>
|
|
1032
|
-
* </Sheet.Trigger>
|
|
1033
|
-
* <Sheet.Content>
|
|
1034
|
-
* <Sheet.Header>
|
|
1035
|
-
* <Sheet.TitleGroup>
|
|
1036
|
-
* <Sheet.Title>Are you absolutely sure?</Sheet.Title>
|
|
1037
|
-
* <Sheet.Actions>
|
|
1038
|
-
* <Sheet.CloseIconButton />
|
|
1039
|
-
* </Sheet.Actions>
|
|
1040
|
-
* </Sheet.TitleGroup>
|
|
1041
|
-
* <Sheet.Description>
|
|
1042
|
-
* This action cannot be undone.
|
|
1043
|
-
* </Sheet.Description>
|
|
1044
|
-
* </Sheet.Header>
|
|
1045
|
-
* <Sheet.Body>
|
|
1046
|
-
* <p>Sheet content.</p>
|
|
1047
|
-
* </Sheet.Body>
|
|
1048
|
-
* <Sheet.Footer>
|
|
1049
|
-
* <Sheet.Close asChild>
|
|
1050
|
-
* <Button type="button" appearance="outlined" intent="neutral">Close</Button>
|
|
1051
|
-
* </Sheet.Close>
|
|
1052
|
-
* <Button type="button" appearance="filled" intent="neutral">Save</Button>
|
|
1053
|
-
* </Sheet.Footer>
|
|
1054
|
-
* </Sheet.Content>
|
|
1055
|
-
* </Sheet.Root>
|
|
1056
|
-
* ```
|
|
1057
|
-
*/
|
|
1058
|
-
readonly CloseIconButton: typeof CloseIconButton;
|
|
1059
|
-
/**
|
|
1060
|
-
* The main container for a `Sheet`. Should be rendered as a child of the `Sheet` component.
|
|
1061
|
-
* Renders on top of the overlay backdrop.
|
|
1062
|
-
* Should contain the `Sheet.Header`, `Sheet.Body`, and `Sheet.Footer`.
|
|
1063
|
-
*
|
|
1064
|
-
* `Sheet.Content` renders its floating layer at Tailwind `z-60`, Mantle's
|
|
1065
|
-
* overlay tier, above every float (`z-50`). Floats composed inside the content
|
|
1066
|
-
* portal into the positioner (`data-slot="sheet-positioner"`) and paint above
|
|
1067
|
-
* the content. When multiple overlays are open, the most recently mounted
|
|
1068
|
-
* overlay renders on top.
|
|
1069
|
-
*
|
|
1070
|
-
* UI that must take clicks above the open sheet, such as a consent banner,
|
|
1071
|
-
* carries the `overlay-prompt` class: a click inside it does not count as an
|
|
1072
|
-
* outside click. Add `pointer-events-auto` too, because the open sheet sets
|
|
1073
|
-
* `pointer-events: none` on `<body>`. mantle's `Toaster` does both.
|
|
1074
|
-
*
|
|
1075
|
-
* The class reaches pointer input only. The open sheet traps keyboard
|
|
1076
|
-
* focus and hides outside content from assistive technology. Put a control that
|
|
1077
|
-
* every user must reach inside the content.
|
|
1078
|
-
*
|
|
1079
|
-
* @see https://mantle.ngrok.com/components/overlays/sheet#sheetcontent
|
|
1080
|
-
*
|
|
1081
|
-
* @example
|
|
1082
|
-
* ```tsx
|
|
1083
|
-
* <Sheet.Root>
|
|
1084
|
-
* <Sheet.Trigger asChild>
|
|
1085
|
-
* <Button type="button" appearance="filled" intent="neutral">Open Sheet</Button>
|
|
1086
|
-
* </Sheet.Trigger>
|
|
1087
|
-
* <Sheet.Content>
|
|
1088
|
-
* <Sheet.Header>
|
|
1089
|
-
* <Sheet.TitleGroup>
|
|
1090
|
-
* <Sheet.Title>Are you absolutely sure?</Sheet.Title>
|
|
1091
|
-
* <Sheet.Actions>
|
|
1092
|
-
* <Sheet.CloseIconButton />
|
|
1093
|
-
* </Sheet.Actions>
|
|
1094
|
-
* </Sheet.TitleGroup>
|
|
1095
|
-
* <Sheet.Description>
|
|
1096
|
-
* This action cannot be undone.
|
|
1097
|
-
* </Sheet.Description>
|
|
1098
|
-
* </Sheet.Header>
|
|
1099
|
-
* <Sheet.Body>
|
|
1100
|
-
* <p>Sheet content.</p>
|
|
1101
|
-
* </Sheet.Body>
|
|
1102
|
-
* <Sheet.Footer>
|
|
1103
|
-
* <Sheet.Close asChild>
|
|
1104
|
-
* <Button type="button" appearance="outlined" intent="neutral">Close</Button>
|
|
1105
|
-
* </Sheet.Close>
|
|
1106
|
-
* <Button type="button" appearance="filled" intent="neutral">Save</Button>
|
|
1107
|
-
* </Sheet.Footer>
|
|
1108
|
-
* </Sheet.Content>
|
|
1109
|
-
* </Sheet.Root>
|
|
1110
|
-
* ```
|
|
1111
|
-
*/
|
|
1112
|
-
readonly Content: typeof Content;
|
|
1113
|
-
/**
|
|
1114
|
-
* A description for a sheet. Typically rendered as a child of `Sheet.Header`.
|
|
1115
|
-
*
|
|
1116
|
-
* @see https://mantle.ngrok.com/components/overlays/sheet#sheetdescription
|
|
1117
|
-
*
|
|
1118
|
-
* @example
|
|
1119
|
-
* ```tsx
|
|
1120
|
-
* <Sheet.Root>
|
|
1121
|
-
* <Sheet.Trigger asChild>
|
|
1122
|
-
* <Button type="button" appearance="filled" intent="neutral">Open Sheet</Button>
|
|
1123
|
-
* </Sheet.Trigger>
|
|
1124
|
-
* <Sheet.Content>
|
|
1125
|
-
* <Sheet.Header>
|
|
1126
|
-
* <Sheet.TitleGroup>
|
|
1127
|
-
* <Sheet.Title>Are you absolutely sure?</Sheet.Title>
|
|
1128
|
-
* <Sheet.Actions>
|
|
1129
|
-
* <Sheet.CloseIconButton />
|
|
1130
|
-
* </Sheet.Actions>
|
|
1131
|
-
* </Sheet.TitleGroup>
|
|
1132
|
-
* <Sheet.Description>
|
|
1133
|
-
* This action cannot be undone.
|
|
1134
|
-
* </Sheet.Description>
|
|
1135
|
-
* </Sheet.Header>
|
|
1136
|
-
* <Sheet.Body>
|
|
1137
|
-
* <p>Sheet content.</p>
|
|
1138
|
-
* </Sheet.Body>
|
|
1139
|
-
* <Sheet.Footer>
|
|
1140
|
-
* <Sheet.Close asChild>
|
|
1141
|
-
* <Button type="button" appearance="outlined" intent="neutral">Close</Button>
|
|
1142
|
-
* </Sheet.Close>
|
|
1143
|
-
* <Button type="button" appearance="filled" intent="neutral">Save</Button>
|
|
1144
|
-
* </Sheet.Footer>
|
|
1145
|
-
* </Sheet.Content>
|
|
1146
|
-
* </Sheet.Root>
|
|
1147
|
-
* ```
|
|
1148
|
-
*/
|
|
1149
|
-
readonly Description: typeof Description;
|
|
1150
|
-
/**
|
|
1151
|
-
* The footer container for a `Sheet`. This is where you would typically place close and submit buttons.
|
|
1152
|
-
* Should be rendered as a child of `Sheet.Content`.
|
|
1153
|
-
*
|
|
1154
|
-
* @see https://mantle.ngrok.com/components/overlays/sheet#sheetfooter
|
|
1155
|
-
*
|
|
1156
|
-
* @example
|
|
1157
|
-
* ```tsx
|
|
1158
|
-
* <Sheet.Root>
|
|
1159
|
-
* <Sheet.Trigger asChild>
|
|
1160
|
-
* <Button type="button" appearance="filled" intent="neutral">Open Sheet</Button>
|
|
1161
|
-
* </Sheet.Trigger>
|
|
1162
|
-
* <Sheet.Content>
|
|
1163
|
-
* <Sheet.Header>
|
|
1164
|
-
* <Sheet.TitleGroup>
|
|
1165
|
-
* <Sheet.Title>Are you absolutely sure?</Sheet.Title>
|
|
1166
|
-
* <Sheet.Actions>
|
|
1167
|
-
* <Sheet.CloseIconButton />
|
|
1168
|
-
* </Sheet.Actions>
|
|
1169
|
-
* </Sheet.TitleGroup>
|
|
1170
|
-
* <Sheet.Description>
|
|
1171
|
-
* This action cannot be undone.
|
|
1172
|
-
* </Sheet.Description>
|
|
1173
|
-
* </Sheet.Header>
|
|
1174
|
-
* <Sheet.Body>
|
|
1175
|
-
* <p>Sheet content.</p>
|
|
1176
|
-
* </Sheet.Body>
|
|
1177
|
-
* <Sheet.Footer>
|
|
1178
|
-
* <Sheet.Close asChild>
|
|
1179
|
-
* <Button type="button" appearance="outlined" intent="neutral">Close</Button>
|
|
1180
|
-
* </Sheet.Close>
|
|
1181
|
-
* <Button type="button" appearance="filled" intent="neutral">Save</Button>
|
|
1182
|
-
* </Sheet.Footer>
|
|
1183
|
-
* </Sheet.Content>
|
|
1184
|
-
* </Sheet.Root>
|
|
1185
|
-
* ```
|
|
1186
|
-
*/
|
|
1187
|
-
readonly Footer: typeof Footer;
|
|
1188
|
-
/**
|
|
1189
|
-
* The header container for a `Sheet`. This is where you would typically place the title, description, and actions.
|
|
1190
|
-
* Should be rendered as a child of `Sheet.Content`.
|
|
1191
|
-
*
|
|
1192
|
-
* @see https://mantle.ngrok.com/components/overlays/sheet#sheetheader
|
|
1193
|
-
*
|
|
1194
|
-
* @example
|
|
1195
|
-
* ```tsx
|
|
1196
|
-
* <Sheet.Root>
|
|
1197
|
-
* <Sheet.Trigger asChild>
|
|
1198
|
-
* <Button type="button" appearance="filled" intent="neutral">Open Sheet</Button>
|
|
1199
|
-
* </Sheet.Trigger>
|
|
1200
|
-
* <Sheet.Content>
|
|
1201
|
-
* <Sheet.Header>
|
|
1202
|
-
* <Sheet.TitleGroup>
|
|
1203
|
-
* <Sheet.Title>Are you absolutely sure?</Sheet.Title>
|
|
1204
|
-
* <Sheet.Actions>
|
|
1205
|
-
* <Sheet.CloseIconButton />
|
|
1206
|
-
* </Sheet.Actions>
|
|
1207
|
-
* </Sheet.TitleGroup>
|
|
1208
|
-
* <Sheet.Description>
|
|
1209
|
-
* This action cannot be undone.
|
|
1210
|
-
* </Sheet.Description>
|
|
1211
|
-
* </Sheet.Header>
|
|
1212
|
-
* <Sheet.Body>
|
|
1213
|
-
* <p>Sheet content.</p>
|
|
1214
|
-
* </Sheet.Body>
|
|
1215
|
-
* <Sheet.Footer>
|
|
1216
|
-
* <Sheet.Close asChild>
|
|
1217
|
-
* <Button type="button" appearance="outlined" intent="neutral">Close</Button>
|
|
1218
|
-
* </Sheet.Close>
|
|
1219
|
-
* <Button type="button" appearance="filled" intent="neutral">Save</Button>
|
|
1220
|
-
* </Sheet.Footer>
|
|
1221
|
-
* </Sheet.Content>
|
|
1222
|
-
* </Sheet.Root>
|
|
1223
|
-
* ```
|
|
1224
|
-
*/
|
|
1225
|
-
readonly Header: typeof Header;
|
|
1226
|
-
/**
|
|
1227
|
-
* The title for a `Sheet`. Typically rendered as a child of `Sheet.TitleGroup`.
|
|
1228
|
-
* Defaults to an `h2` element, but can be changed via the `asChild` prop.
|
|
1229
|
-
*
|
|
1230
|
-
* @see https://mantle.ngrok.com/components/overlays/sheet#sheettitle
|
|
1231
|
-
*
|
|
1232
|
-
* @example
|
|
1233
|
-
* ```tsx
|
|
1234
|
-
* <Sheet.Root>
|
|
1235
|
-
* <Sheet.Trigger asChild>
|
|
1236
|
-
* <Button type="button" appearance="filled" intent="neutral">Open Sheet</Button>
|
|
1237
|
-
* </Sheet.Trigger>
|
|
1238
|
-
* <Sheet.Content>
|
|
1239
|
-
* <Sheet.Header>
|
|
1240
|
-
* <Sheet.TitleGroup>
|
|
1241
|
-
* <Sheet.Title>Are you absolutely sure?</Sheet.Title>
|
|
1242
|
-
* <Sheet.Actions>
|
|
1243
|
-
* <Sheet.CloseIconButton />
|
|
1244
|
-
* </Sheet.Actions>
|
|
1245
|
-
* </Sheet.TitleGroup>
|
|
1246
|
-
* <Sheet.Description>
|
|
1247
|
-
* This action cannot be undone.
|
|
1248
|
-
* </Sheet.Description>
|
|
1249
|
-
* </Sheet.Header>
|
|
1250
|
-
* <Sheet.Body>
|
|
1251
|
-
* <p>Sheet content.</p>
|
|
1252
|
-
* </Sheet.Body>
|
|
1253
|
-
* <Sheet.Footer>
|
|
1254
|
-
* <Sheet.Close asChild>
|
|
1255
|
-
* <Button type="button" appearance="outlined" intent="neutral">Close</Button>
|
|
1256
|
-
* </Sheet.Close>
|
|
1257
|
-
* <Button type="button" appearance="filled" intent="neutral">Save</Button>
|
|
1258
|
-
* </Sheet.Footer>
|
|
1259
|
-
* </Sheet.Content>
|
|
1260
|
-
* </Sheet.Root>
|
|
1261
|
-
* ```
|
|
1262
|
-
*/
|
|
1263
|
-
readonly Title: typeof Title;
|
|
1264
|
-
/**
|
|
1265
|
-
* A group container for the title and actions of a sheet. Typically rendered as a child of `Sheet.Header`.
|
|
1266
|
-
*
|
|
1267
|
-
* @see https://mantle.ngrok.com/components/overlays/sheet#sheettitlegroup
|
|
1268
|
-
*
|
|
1269
|
-
* @example
|
|
1270
|
-
* ```tsx
|
|
1271
|
-
* <Sheet.Root>
|
|
1272
|
-
* <Sheet.Trigger asChild>
|
|
1273
|
-
* <Button type="button" appearance="filled" intent="neutral">Open Sheet</Button>
|
|
1274
|
-
* </Sheet.Trigger>
|
|
1275
|
-
* <Sheet.Content>
|
|
1276
|
-
* <Sheet.Header>
|
|
1277
|
-
* <Sheet.TitleGroup>
|
|
1278
|
-
* <Sheet.Title>Are you absolutely sure?</Sheet.Title>
|
|
1279
|
-
* <Sheet.Actions>
|
|
1280
|
-
* <Sheet.CloseIconButton />
|
|
1281
|
-
* </Sheet.Actions>
|
|
1282
|
-
* </Sheet.TitleGroup>
|
|
1283
|
-
* <Sheet.Description>
|
|
1284
|
-
* This action cannot be undone.
|
|
1285
|
-
* </Sheet.Description>
|
|
1286
|
-
* </Sheet.Header>
|
|
1287
|
-
* <Sheet.Body>
|
|
1288
|
-
* <p>Sheet content.</p>
|
|
1289
|
-
* </Sheet.Body>
|
|
1290
|
-
* <Sheet.Footer>
|
|
1291
|
-
* <Sheet.Close asChild>
|
|
1292
|
-
* <Button type="button" appearance="outlined" intent="neutral">Close</Button>
|
|
1293
|
-
* </Sheet.Close>
|
|
1294
|
-
* <Button type="button" appearance="filled" intent="neutral">Save</Button>
|
|
1295
|
-
* </Sheet.Footer>
|
|
1296
|
-
* </Sheet.Content>
|
|
1297
|
-
* </Sheet.Root>
|
|
1298
|
-
* ```
|
|
1299
|
-
*/
|
|
1300
|
-
readonly TitleGroup: typeof TitleGroup;
|
|
1301
|
-
/**
|
|
1302
|
-
* The button trigger for a `Sheet`. Should be rendered as a child of the `Sheet` component.
|
|
1303
|
-
* Renders an unstyled button by default, but can be customized with the `asChild` prop.
|
|
1304
|
-
*
|
|
1305
|
-
* Opens the nearest `Sheet.Root`. It never opens a `Dialog.Root`, and a
|
|
1306
|
-
* `Dialog.Trigger` inside the sheet never opens the sheet.
|
|
1307
|
-
*
|
|
1308
|
-
* @see https://mantle.ngrok.com/components/overlays/sheet#sheettrigger
|
|
1309
|
-
*
|
|
1310
|
-
* @example
|
|
1311
|
-
* ```tsx
|
|
1312
|
-
* <Sheet.Root>
|
|
1313
|
-
* <Sheet.Trigger asChild>
|
|
1314
|
-
* <Button type="button" appearance="filled" intent="neutral">Open Sheet</Button>
|
|
1315
|
-
* </Sheet.Trigger>
|
|
1316
|
-
* <Sheet.Content>
|
|
1317
|
-
* <Sheet.Header>
|
|
1318
|
-
* <Sheet.TitleGroup>
|
|
1319
|
-
* <Sheet.Title>Are you absolutely sure?</Sheet.Title>
|
|
1320
|
-
* <Sheet.Actions>
|
|
1321
|
-
* <Sheet.CloseIconButton />
|
|
1322
|
-
* </Sheet.Actions>
|
|
1323
|
-
* </Sheet.TitleGroup>
|
|
1324
|
-
* <Sheet.Description>
|
|
1325
|
-
* This action cannot be undone.
|
|
1326
|
-
* </Sheet.Description>
|
|
1327
|
-
* </Sheet.Header>
|
|
1328
|
-
* <Sheet.Body>
|
|
1329
|
-
* <p>Sheet content.</p>
|
|
1330
|
-
* </Sheet.Body>
|
|
1331
|
-
* <Sheet.Footer>
|
|
1332
|
-
* <Sheet.Close asChild>
|
|
1333
|
-
* <Button type="button" appearance="outlined" intent="neutral">Close</Button>
|
|
1334
|
-
* </Sheet.Close>
|
|
1335
|
-
* <Button type="button" appearance="filled" intent="neutral">Save</Button>
|
|
1336
|
-
* </Sheet.Footer>
|
|
1337
|
-
* </Sheet.Content>
|
|
1338
|
-
* </Sheet.Root>
|
|
1339
|
-
* ```
|
|
1340
|
-
*/
|
|
1341
|
-
readonly Trigger: typeof Trigger;
|
|
1342
|
-
};
|
|
145
|
+
declare const Sheet: typeof SheetParts;
|
|
1343
146
|
export { Sheet };
|