@ngrok/mantle 0.94.1 → 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 +2 -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 +4 -395
- package/dist/accordion.js +1 -1
- package/dist/agent.json +409 -42
- package/dist/alert-DCGSrVTa.js +1 -0
- package/dist/{alert-D0zRRUHV.d.ts → alert-Dz541Ve9.d.ts} +7 -193
- 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 +6 -587
- 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 +2 -1065
- 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 +1 -1
- 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 +4 -579
- 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 +3 -275
- package/dist/avatar.js +1 -1
- package/dist/badge.d.ts +3 -2
- 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 +53 -543
- package/dist/breadcrumb.js +1 -1
- package/dist/browser-only-CokCtIvB.js +1 -0
- package/dist/browser-only.js +1 -1
- package/dist/button-Bqm7U0OC.js +1 -0
- package/dist/{button-5Pc7Mby_.d.ts → button-C6-6TecO.d.ts} +4 -4
- package/dist/{button-DnYv7IOT.d.ts → button-CL17Dxza.d.ts} +7 -5
- package/dist/button-CRCiBPEF.js +1 -0
- package/dist/{button-Ddj6yr10.d.ts → button-CRMoQyum.d.ts} +2 -3
- 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 +2 -299
- 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-Dl8gFo_D.d.ts → chart-XvStK-oM.d.ts} +3 -79
- 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 +59 -8
- package/dist/checkbox.js +1 -1
- package/dist/{choice-CNiOSzqV.d.ts → choice-BekuLm-b.d.ts} +16 -204
- 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-CKzsAMzj.js → code-block-B-xD4_RW.js} +3 -3
- 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-BDw6MEwH.d.ts → code-block-Cs1Lcmdr.d.ts} +81 -252
- 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 -691
- 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 +1 -1
- 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 +2 -465
- 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 +71 -1115
- package/dist/command.js +1 -1
- 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 +20 -14
- package/dist/cx.js +1 -1
- 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 +12 -1208
- 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 +1 -1
- 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-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 +96 -7
- 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 +8 -280
- package/dist/hover-card.js +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-QCm1ui29.d.ts → icon-Dqn_LLrR.d.ts} +1 -1
- package/dist/{icon-DuIYoyft.d.ts → icon-KTcDR4--.d.ts} +1 -1
- package/dist/icon.d.ts +2 -2
- 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.js +1 -1
- 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-DC4nW0Sr.d.ts → input-Bvpu3ruQ.d.ts} +1 -1
- package/dist/input.d.ts +2 -2
- package/dist/input.js +1 -1
- package/dist/kbd-Bz_Rbpv8.js +1 -0
- package/dist/kbd.d.ts +1 -1
- package/dist/kbd.js +1 -1
- package/dist/{label-epgtywRz.d.ts → label-DZpKu3Pu.d.ts} +1 -1
- 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 +9 -1
- 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 +4 -568
- 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 +3 -400
- package/dist/list.js +1 -1
- package/dist/live-region-78gbKwlB.js +1 -0
- package/dist/live-region.d.ts +1 -1
- package/dist/live-region.js +1 -1
- package/dist/llms.txt +33 -10
- package/dist/main-9d96oUPG.js +1 -0
- package/dist/main.d.ts +1 -1
- package/dist/main.js +1 -1
- package/dist/mantle.css +1287 -893
- package/dist/media-object-parts.d.ts +65 -0
- package/dist/media-object-parts.js +1 -0
- package/dist/media-object.d.ts +2 -118
- 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 +38 -303
- 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.js +1 -1
- package/dist/query-parts.d.ts +6 -0
- package/dist/query-parts.js +1 -0
- package/dist/query.d.ts +3 -637
- package/dist/query.js +1 -1
- package/dist/radio-group-B9jtIbV1.d.ts +39 -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 +3 -438
- 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 +4 -573
- 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 +3 -643
- package/dist/selectable-list.js +1 -1
- package/dist/separator-BB1ohsjn.js +1 -0
- package/dist/{separator-Ck4sPrdN.d.ts → separator-BzHNVyyv.d.ts} +1 -1
- 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 -1224
- package/dist/sheet.js +1 -1
- package/dist/sidebar-CsC9fyPL.js +1 -0
- package/dist/sidebar-HDVxTNPi.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 +1 -1
- 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 +149 -15
- 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-BEMQMbk3.d.ts → slot-tuk2J6bY.d.ts} +6 -23
- package/dist/slot.d.ts +1 -1
- package/dist/slot.js +1 -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 +4 -493
- package/dist/strata.js +1 -1
- package/dist/switch-DajWYrq3.js +1 -0
- package/dist/switch.d.ts +36 -4
- package/dist/switch.js +1 -1
- package/dist/{table-Ii9hHUWN.d.ts → table-C2KnE83u.d.ts} +5 -444
- 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 +1 -1
- 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 +23 -19
- package/dist/theme-switcher.js +1 -1
- package/dist/theme-xoFnLba6.js +1 -0
- package/dist/theme.d.ts +70 -65
- 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 +31 -266
- package/dist/tokens.json +139 -205
- 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 +3 -5
- 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/utils.js +1 -1
- package/dist/visually-hidden.d.ts +1 -1
- 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 +15 -18
- package/dist/alert-BkJHDx9X.js +0 -1
- package/dist/anchor-Dc6IgvXV.js +0 -1
- package/dist/browser-only-CZfkNw5A.js +0 -1
- package/dist/button-B9bChDgl.js +0 -1
- package/dist/button-BQZ6eoD3.js +0 -1
- package/dist/button-D8jixIbH.js +0 -1
- package/dist/button-DNLTJ32M.js +0 -1
- package/dist/chart-BLCqzt56.js +0 -1
- package/dist/chart-CChZiCrt.js +0 -1
- package/dist/chart-CUmSu9d7.js +0 -1
- package/dist/chart-DtgZBAas.js +0 -2
- package/dist/checkbox-Cu5cgZmk.js +0 -1
- package/dist/choice-CCVG2hb9.js +0 -1
- package/dist/clsx-DUGZgXfJ.js +0 -1
- package/dist/clsx-Dj3RWZ2l.js +0 -1
- package/dist/code-BPKNY1_w.js +0 -1
- package/dist/cx-CK7o_rVv.js +0 -1
- package/dist/dialog-CIEuwNys.d.ts +0 -958
- package/dist/dialog-CbEEA0fl.d.ts +0 -32
- package/dist/dialog-DmzoDfY3.js +0 -1
- package/dist/dropdown-menu-CeY498yk.d.ts +0 -775
- package/dist/dropdown-menu-uheL0prz.js +0 -1
- package/dist/field-Bpvn4tQp.js +0 -1
- package/dist/field-Cai_4c1l.js +0 -1
- package/dist/icon-BudQMD2S.js +0 -1
- package/dist/icon-xb7d9M7X.js +0 -1
- package/dist/icons-DEDCLZ8B.js +0 -1
- package/dist/icons-DXadFwpo.js +0 -1
- package/dist/icons-DcesO4Ng.js +0 -1
- package/dist/input-DQyN6gN0.js +0 -1
- package/dist/input-fW8QSZEO.js +0 -1
- package/dist/interactive-target-BXScNeOr.js +0 -1
- package/dist/kbd-P1nQshWo.js +0 -1
- package/dist/label-DO1RlMKl.js +0 -1
- package/dist/layer-container-DL4yclOu.js +0 -1
- package/dist/list-cQZPSjfz.js +0 -1
- package/dist/live-region-Dhapu8a5.js +0 -1
- package/dist/main-CHyWYDak.js +0 -1
- package/dist/popover-Bei0jyfH.d.ts +0 -357
- package/dist/popover-DhgunktK.js +0 -1
- package/dist/popover-T2EyaqGK.d.ts +0 -1
- package/dist/primitive-D8CzV_Ft.js +0 -1
- package/dist/radio-group-BJQ6EOqh.d.ts +0 -27
- package/dist/radio-group-ggEkCi0V.js +0 -1
- package/dist/sandboxed-on-click-D4PL5_GR.js +0 -1
- package/dist/select-1xuUx_os.js +0 -1
- package/dist/select-BpaXHxJm.d.ts +0 -890
- package/dist/separator-DnvhwY2J.js +0 -1
- package/dist/shake-CAUpKBHe.js +0 -1
- package/dist/sheet-DHy_vlme.js +0 -1
- package/dist/skeleton-DHfyjuQi.js +0 -1
- package/dist/slot-B7rwscwd.js +0 -1
- package/dist/table-BnLdXUai.js +0 -1
- package/dist/theme-BNdZl352.js +0 -1
- package/dist/tooltip-CstGDKwy.d.ts +0 -283
- package/dist/tooltip-DQO40Mrq.js +0 -1
- package/dist/use-breakpoint-B4Kh0xE6.js +0 -1
- package/dist/use-callback-ref-DiOXFQzM.js +0 -1
- package/dist/use-composed-refs-DPYmLDSe.js +0 -1
- package/dist/use-copy-to-clipboard-hBL6_65i.js +0 -1
- package/dist/use-inert-siblings-C4RHXrZc.js +0 -1
- package/dist/use-is-apple-platform-Bq6_KbVX.js +0 -1
- package/dist/use-is-hydrated-after-paint-CrHt3OHw.js +0 -1
- package/dist/use-isomorphic-layout-effect-CL6iq0Bj.js +0 -1
- package/dist/use-matches-media-query-FfvtNKQe.js +0 -1
- package/dist/use-prefers-reduced-motion-Ck6dnOM9.js +0 -1
- package/dist/use-swipe-to-dismiss-BYdlca8r.js +0 -1
- /package/dist/{use-is-hydrated-BeLOGKwE.js → hooks-BeLOGKwE.js} +0 -0
- /package/dist/{suggestions-Ciz2vaJO.js → query-filter-Ciz2vaJO.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/{copy-to-clipboard-Dd83caRw.js → utils-Dd83caRw.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/agent.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ngrok/mantle",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.95.0",
|
|
4
4
|
"origin": "https://mantle.ngrok.com",
|
|
5
5
|
"endpoints": {
|
|
6
6
|
"docs": "https://mantle.ngrok.com/",
|
|
@@ -63,6 +63,7 @@
|
|
|
63
63
|
"@ngrok/mantle/media-object",
|
|
64
64
|
"@ngrok/mantle/multi-select",
|
|
65
65
|
"@ngrok/mantle/otp-input",
|
|
66
|
+
"@ngrok/mantle/overlay-prompt",
|
|
66
67
|
"@ngrok/mantle/pagination",
|
|
67
68
|
"@ngrok/mantle/popover",
|
|
68
69
|
"@ngrok/mantle/progress",
|
|
@@ -91,13 +92,16 @@
|
|
|
91
92
|
"@ngrok/mantle/text-area",
|
|
92
93
|
"@ngrok/mantle/theme",
|
|
93
94
|
"@ngrok/mantle/theme-switcher",
|
|
95
|
+
"@ngrok/mantle/time-zone",
|
|
94
96
|
"@ngrok/mantle/toast",
|
|
95
97
|
"@ngrok/mantle/tooltip",
|
|
96
98
|
"@ngrok/mantle/truncated-text",
|
|
97
99
|
"@ngrok/mantle/types",
|
|
100
|
+
"@ngrok/mantle/typography",
|
|
98
101
|
"@ngrok/mantle/utils",
|
|
99
102
|
"@ngrok/mantle/visually-hidden",
|
|
100
|
-
"@ngrok/mantle/well"
|
|
103
|
+
"@ngrok/mantle/well",
|
|
104
|
+
"@ngrok/mantle/world-map"
|
|
101
105
|
],
|
|
102
106
|
"components": [
|
|
103
107
|
{
|
|
@@ -125,7 +129,7 @@
|
|
|
125
129
|
"boundary": "every section stays open, with its title and explanation beside its content."
|
|
126
130
|
}
|
|
127
131
|
],
|
|
128
|
-
"useWhen": "Stack titled sections that each expand and collapse in place, such as questions and answers or a group of advanced settings.",
|
|
132
|
+
"useWhen": "Stack titled sections that each expand and collapse in place to show and hide their content, such as questions and answers or a group of advanced settings.",
|
|
129
133
|
"aliases": [
|
|
130
134
|
"collapsible",
|
|
131
135
|
"collapse",
|
|
@@ -166,11 +170,13 @@
|
|
|
166
170
|
"boundary": "a region has no data, no results, or no access to show."
|
|
167
171
|
}
|
|
168
172
|
],
|
|
169
|
-
"useWhen": "Show a persistent message in the page, such as a warning, an error, or a success note, beside the content it describes.",
|
|
173
|
+
"useWhen": "Show a persistent message in the page, such as a warning about degraded data, an error, or a success note, beside the content it describes.",
|
|
170
174
|
"aliases": [
|
|
171
175
|
"callout",
|
|
172
176
|
"notice",
|
|
173
|
-
"admonition"
|
|
177
|
+
"admonition",
|
|
178
|
+
"inline alert",
|
|
179
|
+
"page banner"
|
|
174
180
|
]
|
|
175
181
|
},
|
|
176
182
|
{
|
|
@@ -185,7 +191,7 @@
|
|
|
185
191
|
"summary": "A single top-level bar that surfaces one-to-many account alerts and their upgrade CTAs, expanding additional alerts inline.",
|
|
186
192
|
"jsdoc": "A single, top-level entry point for one-to-many account alerts and their upgrade CTAs: the aggregation layer that replaces a stack of independent window banners.",
|
|
187
193
|
"examples": [
|
|
188
|
-
"Composition (items render no DOM in place; their children
|
|
194
|
+
"Composition (after hydration, items render no DOM in place; their children\nportal into a stable host the bar or a row adopts):\n```\nAlertCenter.Root\n├── AlertCenter.Bar ← the top-ranked item's children, in Alert chrome\n├── AlertCenter.Content ← every other item's children, as ranked rows\n└── AlertCenter.Item (0..n, renderless after hydration)\n └── Alert.Icon / Alert.Content / Alert.Title / Alert.Description /\n AlertCenter.DismissIconButton\n```",
|
|
189
195
|
"```tsx\n<AppLayout.Root className=\"fixed inset-0\">\n <AppLayout.Notice>\n {showPreviewNotice && <PreviewNotice />}\n <AlertCenter.Root>\n <AlertCenter.Bar />\n <AlertCenter.Content />\n <AlertCenter.Item id=\"payment-failed\" intent=\"danger\">\n <Alert.Icon />\n <Alert.Content>\n <Alert.Title>\n Payment failed: we couldn't charge your card.{\" \"}\n <a href=\"/billing\">Update payment method</a>\n </Alert.Title>\n <Alert.Description>\n Update your payment method to avoid a service interruption.\n </Alert.Description>\n </Alert.Content>\n </AlertCenter.Item>\n {!dismissed.has(\"transfer-limit\") && (\n <AlertCenter.Item id=\"transfer-limit\" intent=\"warning\">\n <Alert.Icon />\n <Alert.Content>\n <Alert.Title>\n You've used 92% of your monthly transfer.{\" \"}\n <a href=\"/billing/choose-a-plan\">Upgrade</a>\n </Alert.Title>\n <AlertCenter.DismissIconButton onClick={() => dismiss(\"transfer-limit\")} />\n </Alert.Content>\n </AlertCenter.Item>\n )}\n </AlertCenter.Root>\n </AppLayout.Notice>\n <AppLayout.Workspace>…</AppLayout.Workspace>\n</AppLayout.Root>\n```"
|
|
190
196
|
],
|
|
191
197
|
"siblings": [
|
|
@@ -291,7 +297,7 @@
|
|
|
291
297
|
"boundary": "the page is one focused flow with no sidebar, such as sign-in, onboarding, or a 404 page."
|
|
292
298
|
}
|
|
293
299
|
],
|
|
294
|
-
"useWhen": "Frame a signed-in app with navigation that persists across routes: a sidebar, a header
|
|
300
|
+
"useWhen": "Frame a signed-in app with navigation that persists across routes: a sidebar, a header that holds the page heading and its actions, and one scrolling content card.",
|
|
295
301
|
"aliases": [
|
|
296
302
|
"app shell",
|
|
297
303
|
"application shell",
|
|
@@ -388,7 +394,7 @@
|
|
|
388
394
|
"boundary": "the tags are values that the user picks and removes."
|
|
389
395
|
}
|
|
390
396
|
],
|
|
391
|
-
"useWhen": "Label an item with a short status, a category tag, or a count.",
|
|
397
|
+
"useWhen": "Label an item with a short status or state (such as active, paused, or unknown), a category tag, or a count, shown as one or two words on a colored background.",
|
|
392
398
|
"aliases": [
|
|
393
399
|
"tag",
|
|
394
400
|
"chip",
|
|
@@ -612,8 +618,8 @@
|
|
|
612
618
|
"importPath": "@ngrok/mantle/checkbox",
|
|
613
619
|
"docsUrl": "https://mantle.ngrok.com/components/forms/checkbox",
|
|
614
620
|
"markdownUrl": "https://mantle.ngrok.com/components/forms/checkbox.md",
|
|
615
|
-
"summary": "A form control that toggles between checked and not checked, with an indeterminate state.",
|
|
616
|
-
"jsdoc": "A form control that allows the user to toggle between checked and not checked.",
|
|
621
|
+
"summary": "A form control that toggles between checked and not checked, with an indeterminate state, alone or in a group of selectable cards.",
|
|
622
|
+
"jsdoc": "A form control that allows the user to toggle between checked and not checked, alone or in a group of cards.",
|
|
617
623
|
"examples": [
|
|
618
624
|
"```tsx\n<form>\n <Label htmlFor=\"terms\" className=\"flex items-center gap-2\">\n <Checkbox name=\"terms\" id=\"terms\" />\n Accept terms and conditions\n </Label>\n</form>\n```"
|
|
619
625
|
],
|
|
@@ -631,10 +637,14 @@
|
|
|
631
637
|
"boundary": "the checkbox needs a title and a description beside it."
|
|
632
638
|
}
|
|
633
639
|
],
|
|
634
|
-
"useWhen": "Turn one or more independent options on or off in a form, with an indeterminate state for a partial selection.",
|
|
640
|
+
"useWhen": "Turn one or more independent options on or off in a form, with an indeterminate state for a partial selection. `CheckboxGroup` shows the options as selectable cards where the user picks several, for a \"select all that apply\" question.",
|
|
635
641
|
"aliases": [
|
|
636
642
|
"check box",
|
|
637
|
-
"tickbox"
|
|
643
|
+
"tickbox",
|
|
644
|
+
"checkbox group",
|
|
645
|
+
"checkbox cards",
|
|
646
|
+
"selectable cards",
|
|
647
|
+
"multi-select cards"
|
|
638
648
|
]
|
|
639
649
|
},
|
|
640
650
|
{
|
|
@@ -662,11 +672,12 @@
|
|
|
662
672
|
"boundary": "the thing beside the text is an image or an icon, not a control."
|
|
663
673
|
}
|
|
664
674
|
],
|
|
665
|
-
"useWhen": "Put a checkbox, a radio, or a switch beside a title and an optional description.",
|
|
675
|
+
"useWhen": "Put a checkbox, a radio, or a toggle switch beside a title and an optional description, such as an explanation of one or more lines.",
|
|
666
676
|
"aliases": [
|
|
667
677
|
"checkbox with description",
|
|
668
678
|
"radio with description",
|
|
669
|
-
"switch with description"
|
|
679
|
+
"switch with description",
|
|
680
|
+
"checkbox on the left label on the right"
|
|
670
681
|
]
|
|
671
682
|
},
|
|
672
683
|
{
|
|
@@ -785,7 +796,7 @@
|
|
|
785
796
|
"importPath": "@ngrok/mantle/command",
|
|
786
797
|
"docsUrl": "https://mantle.ngrok.com/components/navigation/command",
|
|
787
798
|
"markdownUrl": "https://mantle.ngrok.com/components/navigation/command.md",
|
|
788
|
-
"summary": "A command palette that allows users to search and execute commands
|
|
799
|
+
"summary": "A command palette that allows users to search and execute commands.",
|
|
789
800
|
"jsdoc": "A command palette: a modal search field over a filtered, keyboard-navigable list of items. `Command.SearchTrigger` is the field-shaped button that opens it, `Command.DialogRoot` owns the open state, the query, and the `⌘K` shortcut, and `Command.DialogTrigger` is the escape hatch for a trigger of your own.",
|
|
790
801
|
"examples": [
|
|
791
802
|
"Composition:\n```\nCommand.DialogRoot\n├── Command.SearchTrigger\n├── Command.DialogTrigger\n└── Command.DialogContent\n ├── Command.Input\n └── Command.List\n ├── Command.Empty\n ├── Command.Group\n │ └── Command.Item\n │ └── Command.Shortcut\n └── Command.Separator\n```",
|
|
@@ -818,8 +829,8 @@
|
|
|
818
829
|
"importPath": "@ngrok/mantle/data-table",
|
|
819
830
|
"docsUrl": "https://mantle.ngrok.com/components/data-display/data-table",
|
|
820
831
|
"markdownUrl": "https://mantle.ngrok.com/components/data-display/data-table.md",
|
|
821
|
-
"summary": "Tables purposefully designed for dynamic, application data with features like sorting, filtering, and
|
|
822
|
-
"jsdoc": "Use `DataTable` for INTERACTIVE tabular data: sorting, filtering, pagination, row selection, and server-side or client-side data.",
|
|
832
|
+
"summary": "Tables purposefully designed for dynamic, application data with features like sorting, filtering, pagination, and expandable rows.",
|
|
833
|
+
"jsdoc": "Use `DataTable` for INTERACTIVE tabular data: sorting, filtering, pagination, row selection, expandable rows (a detail panel or sub-rows), and server-side or client-side data.",
|
|
823
834
|
"examples": [
|
|
824
835
|
"Composition:\n```\nDataTable.Root\n├── DataTable.Head\n│ └── DataTable.Row\n│ ├── DataTable.ExpandHeader\n│ ├── DataTable.Header\n│ │ └── DataTable.HeaderSortButton\n│ └── DataTable.ActionHeader\n└── DataTable.Body\n ├── DataTable.Row\n │ ├── DataTable.ControlCell\n │ │ └── DataTable.RowExpandButton\n │ ├── DataTable.Cell\n │ └── DataTable.ActionCell\n ├── DataTable.ExpandedRow\n └── DataTable.EmptyRow\n```",
|
|
825
836
|
"A minimal, read-only table with a single sortable column:\n```tsx\nimport {\n DataTable,\n createColumnHelper,\n createSortedRowModel,\n rowSortingFeature,\n sortFn_alphanumeric,\n sortFn_datetime,\n sortFn_text,\n tableFeatures,\n useTable,\n} from \"@ngrok/mantle/data-table\";\n\ntype Row = { id: string; name: string };\n\n// Register only the features the table uses. Auto-sort resolves the\n// `alphanumeric`, `text`, and `datetime` comparators by name, so register those three.\nconst features = tableFeatures({\n rowSortingFeature,\n sortedRowModel: createSortedRowModel(),\n sortFns: {\n alphanumeric: sortFn_alphanumeric,\n datetime: sortFn_datetime,\n text: sortFn_text,\n },\n});\n\nconst columnHelper = createColumnHelper<typeof features, Row>();\nconst columns = columnHelper.columns([\n columnHelper.accessor(\"name\", {\n id: \"name\",\n header: (props) => (\n <DataTable.Header column={props.column}>\n <DataTable.HeaderSortButton column={props.column} sortingMode=\"alphanumeric\">\n Name\n </DataTable.HeaderSortButton>\n </DataTable.Header>\n ),\n cell: (props) => <DataTable.Cell>{props.getValue()}</DataTable.Cell>,\n }),\n]);\n\nfunction MyTable({ data }: { data: Row[] }) {\n const table = useTable({ features, data, columns });\n const rows = table.getRowModel().rows;\n\n return (\n <DataTable.Root table={table}>\n <DataTable.Head />\n <DataTable.Body>\n {rows.length > 0\n ? rows.map((row) => <DataTable.Row key={row.id} row={row} />)\n : <DataTable.EmptyRow>No results.</DataTable.EmptyRow>}\n </DataTable.Body>\n </DataTable.Root>\n );\n}\n```",
|
|
@@ -830,19 +841,22 @@
|
|
|
830
841
|
"siblings": [
|
|
831
842
|
{
|
|
832
843
|
"name": "Table",
|
|
833
|
-
"boundary": "the data is static, with no sorting, filtering, pagination, or
|
|
844
|
+
"boundary": "the data is static, with no sorting, filtering, pagination, selection, or row expansion."
|
|
834
845
|
},
|
|
835
846
|
{
|
|
836
847
|
"name": "DescriptionList",
|
|
837
848
|
"boundary": "one record shows as label and value pairs."
|
|
838
849
|
}
|
|
839
850
|
],
|
|
840
|
-
"useWhen": "Show rows of application data that the user sorts, filters, pages through, or
|
|
851
|
+
"useWhen": "Show rows of application data that the user sorts, filters, pages through, selects, or expands with a row button into a detail panel or sub-rows.",
|
|
841
852
|
"aliases": [
|
|
842
853
|
"data grid",
|
|
843
854
|
"datagrid",
|
|
844
855
|
"grid",
|
|
845
|
-
"sortable table"
|
|
856
|
+
"sortable table",
|
|
857
|
+
"expandable rows",
|
|
858
|
+
"row expansion",
|
|
859
|
+
"sub-rows"
|
|
846
860
|
]
|
|
847
861
|
},
|
|
848
862
|
{
|
|
@@ -1417,7 +1431,10 @@
|
|
|
1417
1431
|
],
|
|
1418
1432
|
"useWhen": "Put an image, an avatar, or an icon beside a title and a description, such as in a comment or a list row.",
|
|
1419
1433
|
"aliases": [
|
|
1420
|
-
"media block"
|
|
1434
|
+
"media block",
|
|
1435
|
+
"icon on the left text on the right",
|
|
1436
|
+
"image beside text",
|
|
1437
|
+
"avatar beside text"
|
|
1421
1438
|
]
|
|
1422
1439
|
},
|
|
1423
1440
|
{
|
|
@@ -1490,6 +1507,42 @@
|
|
|
1490
1507
|
"2fa"
|
|
1491
1508
|
]
|
|
1492
1509
|
},
|
|
1510
|
+
{
|
|
1511
|
+
"name": "Overlay Prompt",
|
|
1512
|
+
"slug": "components/primitives/overlay-prompt",
|
|
1513
|
+
"kind": "component",
|
|
1514
|
+
"category": "Primitives",
|
|
1515
|
+
"status": "stable",
|
|
1516
|
+
"importPath": "@ngrok/mantle/overlay-prompt",
|
|
1517
|
+
"docsUrl": "https://mantle.ngrok.com/components/primitives/overlay-prompt",
|
|
1518
|
+
"markdownUrl": "https://mantle.ngrok.com/components/primitives/overlay-prompt.md",
|
|
1519
|
+
"summary": "Keeps a banner, a bar, or another floating element usable above an open dialog or sheet.",
|
|
1520
|
+
"jsdoc": "Keeps its content usable above an open `Dialog`, `AlertDialog`, or `Sheet`.",
|
|
1521
|
+
"examples": [
|
|
1522
|
+
"```tsx\n<OverlayPrompt>\n <div className=\"pointer-events-none fixed inset-x-0 bottom-4 z-max flex justify-center\">\n <div role=\"group\" aria-label=\"Cookie preferences\" className=\"pointer-events-auto\">\n <Button type=\"button\" appearance=\"filled\" intent=\"neutral\" onClick={acceptAll}>\n Accept all\n </Button>\n </div>\n </div>\n</OverlayPrompt>\n```"
|
|
1523
|
+
],
|
|
1524
|
+
"siblings": [
|
|
1525
|
+
{
|
|
1526
|
+
"name": "Toast",
|
|
1527
|
+
"boundary": "show short notifications; its `Toaster` already stays above dialogs."
|
|
1528
|
+
},
|
|
1529
|
+
{
|
|
1530
|
+
"name": "Sandbar",
|
|
1531
|
+
"boundary": "show a save bar for unsaved changes; it already stays above dialogs."
|
|
1532
|
+
},
|
|
1533
|
+
{
|
|
1534
|
+
"name": "Dialog",
|
|
1535
|
+
"boundary": "put a control that belongs to the task inside the dialog content instead."
|
|
1536
|
+
}
|
|
1537
|
+
],
|
|
1538
|
+
"useWhen": "Keep a banner, a bar, or another floating element that is not part of a dialog usable above an open dialog or sheet, such as a cookie banner.",
|
|
1539
|
+
"aliases": [
|
|
1540
|
+
"above dialog",
|
|
1541
|
+
"top layer",
|
|
1542
|
+
"cookie banner",
|
|
1543
|
+
"inert"
|
|
1544
|
+
]
|
|
1545
|
+
},
|
|
1493
1546
|
{
|
|
1494
1547
|
"name": "Pagination",
|
|
1495
1548
|
"slug": "components/navigation/pagination",
|
|
@@ -1703,11 +1756,11 @@
|
|
|
1703
1756
|
"importPath": "@ngrok/mantle/radio-group",
|
|
1704
1757
|
"docsUrl": "https://mantle.ngrok.com/components/forms/radio-group",
|
|
1705
1758
|
"markdownUrl": "https://mantle.ngrok.com/components/forms/radio-group.md",
|
|
1706
|
-
"summary": "A set of
|
|
1707
|
-
"jsdoc": "A group of radio items.",
|
|
1759
|
+
"summary": "A set of radio buttons, shown as radios, a list, or selectable cards, where no more than one can be checked at a time.",
|
|
1760
|
+
"jsdoc": "A group of radio items, shown as radios, a list, or cards.",
|
|
1708
1761
|
"examples": [
|
|
1709
1762
|
"Composition:\n```\n# Default radios\nRadioGroup.Root\n└── RadioGroup.Item\n ├── RadioGroup.Indicator\n └── RadioGroup.ItemContent\n\n# List layout with descriptions\nRadioGroup.List\n└── RadioGroup.ListItem\n ├── RadioGroup.Indicator\n └── RadioGroup.ItemContent\n\n# Card-style radios\nRadioGroup.Root\n└── RadioGroup.Card\n └── RadioGroup.Indicator\n\n# Rich option layout (Choice)\nRadioGroup.Root\n└── RadioGroup.Item\n └── Choice.Root\n ├── Choice.Indicator\n │ └── RadioGroup.Indicator\n └── Choice.Content\n ├── Choice.Title\n └── Choice.Description\n```",
|
|
1710
|
-
"```tsx\n<RadioGroup.Root value={value}
|
|
1763
|
+
"```tsx\n<RadioGroup.Root value={value} onValueChange={setValue}>\n <RadioGroup.Item value=\"option1\">\n <RadioGroup.Indicator />\n <span>Option 1</span>\n </RadioGroup.Item>\n <RadioGroup.Item value=\"option2\">\n <RadioGroup.Indicator />\n <span>Option 2</span>\n </RadioGroup.Item>\n</RadioGroup.Root>\n```"
|
|
1711
1764
|
],
|
|
1712
1765
|
"siblings": [
|
|
1713
1766
|
{
|
|
@@ -1727,10 +1780,12 @@
|
|
|
1727
1780
|
"boundary": "a few short options switch a view or a mode in one row."
|
|
1728
1781
|
}
|
|
1729
1782
|
],
|
|
1730
|
-
"useWhen": "Pick exactly one value from a few fixed options, with every option visible at once.",
|
|
1783
|
+
"useWhen": "Pick exactly one value from a few fixed options, with every option visible at once, such as a single choice between selectable cards.",
|
|
1731
1784
|
"aliases": [
|
|
1732
1785
|
"radio button",
|
|
1733
|
-
"radio"
|
|
1786
|
+
"radio",
|
|
1787
|
+
"radio cards",
|
|
1788
|
+
"radio card grid"
|
|
1734
1789
|
]
|
|
1735
1790
|
},
|
|
1736
1791
|
{
|
|
@@ -1848,7 +1903,7 @@
|
|
|
1848
1903
|
"boundary": "the set is long, or the row has little space."
|
|
1849
1904
|
}
|
|
1850
1905
|
],
|
|
1851
|
-
"useWhen": "Switch between a few short options,
|
|
1906
|
+
"useWhen": "Switch between a few short options in one compact, inline row, such as a view, an environment, or a filter.",
|
|
1852
1907
|
"aliases": [
|
|
1853
1908
|
"segmented button",
|
|
1854
1909
|
"view switcher",
|
|
@@ -1889,7 +1944,7 @@
|
|
|
1889
1944
|
"boundary": "the list runs actions and sets no value."
|
|
1890
1945
|
}
|
|
1891
1946
|
],
|
|
1892
|
-
"useWhen": "Pick one value from a short, fixed list of options that needs no filter.",
|
|
1947
|
+
"useWhen": "Pick one value from a short, fixed list of options that needs no filter, such as a region or an expiry duration.",
|
|
1893
1948
|
"aliases": [
|
|
1894
1949
|
"dropdown",
|
|
1895
1950
|
"select box"
|
|
@@ -2009,7 +2064,7 @@
|
|
|
2009
2064
|
"docsUrl": "https://mantle.ngrok.com/components/navigation/sidebar",
|
|
2010
2065
|
"markdownUrl": "https://mantle.ngrok.com/components/navigation/sidebar.md",
|
|
2011
2066
|
"summary": "A composable, collapsible app-navigation sidebar with a mobile sheet presentation and a trigger that mounts anywhere in your app shell.",
|
|
2012
|
-
"jsdoc": "A composable, collapsible app-navigation sidebar. `Sidebar.Root` owns the state (no DOM). `Sidebar.Nav` renders the panel: inline on desktop, collapsing to
|
|
2067
|
+
"jsdoc": "A composable, collapsible app-navigation sidebar. `Sidebar.Root` owns the state (no DOM). `Sidebar.Nav` renders the panel: inline on desktop, collapsing to its icons, and a left-side `Sheet` below the root's `mobileBreakpoint`. `Sidebar.Trigger` toggles it from anywhere under the root (typically an `AppLayout.Header`).",
|
|
2013
2068
|
"examples": [
|
|
2014
2069
|
"Composition:\n```\nSidebar.Root\n├── Sidebar.Nav\n│ ├── Sidebar.Header\n│ │ └── Sidebar.SwitcherTrigger\n│ ├── Sidebar.Body\n│ │ ├── Sidebar.SearchTrigger\n│ │ └── Sidebar.Group\n│ │ ├── Sidebar.GroupLabel\n│ │ └── Sidebar.List\n│ │ └── Sidebar.Item\n│ │ └── Sidebar.Tooltip\n│ │ └── Sidebar.ItemButton\n│ └── Sidebar.Footer\n│ ├── Sidebar.ItemButton\n│ ├── Sidebar.Separator\n│ └── Sidebar.SwitcherTrigger\n└── Sidebar.Trigger\n```",
|
|
2015
2070
|
"```tsx\n<Sidebar.Root>\n <Sidebar.Nav aria-label=\"Main\">\n <Sidebar.Header>\n <DropdownMenu.Root>\n <DropdownMenu.Trigger asChild>\n <Sidebar.SwitcherTrigger>\n <GlobeIcon />\n <span className=\"text-strong min-w-0 flex-1 truncate text-base\">Universal Gateway</span>\n <CaretDownIcon className=\"text-muted size-4 shrink-0\" />\n </Sidebar.SwitcherTrigger>\n </DropdownMenu.Trigger>\n <DropdownMenu.Content width=\"trigger\" className=\"min-w-(--sidebar-row-width)\">…</DropdownMenu.Content>\n </DropdownMenu.Root>\n </Sidebar.Header>\n <Sidebar.Body>\n <Sidebar.Group>\n <Sidebar.GroupLabel>Traffic</Sidebar.GroupLabel>\n <Sidebar.List>\n <Sidebar.Item>\n <Sidebar.ItemButton asChild current>\n <a href=\"/endpoints\">\n <GraphIcon />\n Endpoints\n </a>\n </Sidebar.ItemButton>\n </Sidebar.Item>\n </Sidebar.List>\n </Sidebar.Group>\n </Sidebar.Body>\n <Sidebar.Footer>\n <Sidebar.Separator />\n <DropdownMenu.Root>\n <DropdownMenu.Trigger asChild>\n <Sidebar.SwitcherTrigger>\n <Avatar.Root appearance=\"square\" colorSeed=\"acc_123\">\n <Avatar.Fallback name=\"Acme Corp\" />\n </Avatar.Root>\n <span className=\"text-strong min-w-0 flex-1 truncate text-sm font-medium\">Acme Corp</span>\n </Sidebar.SwitcherTrigger>\n </DropdownMenu.Trigger>\n <DropdownMenu.Content width=\"trigger\" className=\"min-w-(--sidebar-row-width)\">…</DropdownMenu.Content>\n </DropdownMenu.Root>\n </Sidebar.Footer>\n </Sidebar.Nav>\n <Sidebar.Trigger />\n</Sidebar.Root>\n```"
|
|
@@ -2028,7 +2083,7 @@
|
|
|
2028
2083
|
"boundary": "the page shows where it sits in a hierarchy."
|
|
2029
2084
|
}
|
|
2030
2085
|
],
|
|
2031
|
-
"useWhen": "Show the main navigation of an app, with its app and account switchers, in a column that collapses to
|
|
2086
|
+
"useWhen": "Show the main navigation of an app, with its app and account switchers, in a column that collapses to its icons, and to a sheet on small screens.",
|
|
2032
2087
|
"aliases": [
|
|
2033
2088
|
"side nav",
|
|
2034
2089
|
"side navigation",
|
|
@@ -2205,10 +2260,16 @@
|
|
|
2205
2260
|
"boundary": "the pairs are read-only label and value data, not headed sections."
|
|
2206
2261
|
}
|
|
2207
2262
|
],
|
|
2208
|
-
"useWhen": "Lay out a settings page
|
|
2263
|
+
"useWhen": "Lay out a settings page, a configuration editor, or a long form as titled sections, each one explained beside its controls: the title and description on the left, the form fields on the right.",
|
|
2209
2264
|
"aliases": [
|
|
2210
2265
|
"settings page",
|
|
2211
|
-
"settings layout"
|
|
2266
|
+
"settings layout",
|
|
2267
|
+
"form section",
|
|
2268
|
+
"two-column form",
|
|
2269
|
+
"two-column layout",
|
|
2270
|
+
"description left controls right",
|
|
2271
|
+
"label and description on the left",
|
|
2272
|
+
"group of info on the left form fields on the right"
|
|
2212
2273
|
]
|
|
2213
2274
|
},
|
|
2214
2275
|
{
|
|
@@ -2263,7 +2324,7 @@
|
|
|
2263
2324
|
"siblings": [
|
|
2264
2325
|
{
|
|
2265
2326
|
"name": "DataTable",
|
|
2266
|
-
"boundary": "the user sorts, filters, pages through, or
|
|
2327
|
+
"boundary": "the user sorts, filters, pages through, selects, or expands rows (a detail panel or sub-rows)."
|
|
2267
2328
|
},
|
|
2268
2329
|
{
|
|
2269
2330
|
"name": "DescriptionList",
|
|
@@ -2301,7 +2362,7 @@
|
|
|
2301
2362
|
"boundary": "the user picks a form value, not a view."
|
|
2302
2363
|
}
|
|
2303
2364
|
],
|
|
2304
|
-
"useWhen": "Switch between peer views of related content in one place, with one view visible at a time.",
|
|
2365
|
+
"useWhen": "Switch between peer views of related content in one place, with one view visible at a time. Use `HeadlessTabs` to keep the tab state and behavior under your own custom markup and styling.",
|
|
2305
2366
|
"aliases": [
|
|
2306
2367
|
"tab bar",
|
|
2307
2368
|
"tab list",
|
|
@@ -2367,7 +2428,7 @@
|
|
|
2367
2428
|
"docsUrl": "https://mantle.ngrok.com/components/forms/theme-switcher",
|
|
2368
2429
|
"markdownUrl": "https://mantle.ngrok.com/components/forms/theme-switcher.md",
|
|
2369
2430
|
"summary": "The canonical light/dark toggle for headers and toolbars, plus the same toggle as one item for account menus.",
|
|
2370
|
-
"jsdoc": "The canonical theme control for headers and toolbars: an
|
|
2431
|
+
"jsdoc": "The canonical theme control for headers and toolbars: an icon button (ghost by default) that shows the applied theme and flips between light and dark on each click.",
|
|
2371
2432
|
"examples": [
|
|
2372
2433
|
"```tsx\n<ThemeProvider>\n <header>\n <ThemeSwitcher />\n </header>\n</ThemeProvider>\n```",
|
|
2373
2434
|
"```tsx\n<ThemeSwitcher appearance=\"outlined\" label=\"Cambiar tema\" />\n```"
|
|
@@ -2385,6 +2446,36 @@
|
|
|
2385
2446
|
"color mode toggle"
|
|
2386
2447
|
]
|
|
2387
2448
|
},
|
|
2449
|
+
{
|
|
2450
|
+
"name": "Time Zone",
|
|
2451
|
+
"slug": "components/preview/time-zone",
|
|
2452
|
+
"kind": "component",
|
|
2453
|
+
"category": "Primitives",
|
|
2454
|
+
"status": "preview",
|
|
2455
|
+
"importPath": "@ngrok/mantle/time-zone",
|
|
2456
|
+
"docsUrl": "https://mantle.ngrok.com/components/preview/time-zone",
|
|
2457
|
+
"markdownUrl": "https://mantle.ngrok.com/components/preview/time-zone.md",
|
|
2458
|
+
"summary": "Server-rendered dates in the visitor's time zone, with no hydration mismatch.",
|
|
2459
|
+
"jsdoc": "Re-exports for Time Zone: server-rendered dates in the visitor's time zone.",
|
|
2460
|
+
"siblings": [
|
|
2461
|
+
{
|
|
2462
|
+
"name": "BrowserOnly",
|
|
2463
|
+
"boundary": "the text depends on other browser state, such as the clock for a \"5m ago\" label."
|
|
2464
|
+
},
|
|
2465
|
+
{
|
|
2466
|
+
"name": "Calendar",
|
|
2467
|
+
"boundary": "the user picks a date from a month grid."
|
|
2468
|
+
}
|
|
2469
|
+
],
|
|
2470
|
+
"useWhen": "Show a timestamp in the visitor's time zone on a server-rendered page, with no hydration mismatch and no text that pops in after hydration.",
|
|
2471
|
+
"aliases": [
|
|
2472
|
+
"timezone",
|
|
2473
|
+
"tz",
|
|
2474
|
+
"local time",
|
|
2475
|
+
"date format",
|
|
2476
|
+
"time element"
|
|
2477
|
+
]
|
|
2478
|
+
},
|
|
2388
2479
|
{
|
|
2389
2480
|
"name": "Toast",
|
|
2390
2481
|
"slug": "components/feedback/toast",
|
|
@@ -2394,8 +2485,8 @@
|
|
|
2394
2485
|
"importPath": "@ngrok/mantle/toast",
|
|
2395
2486
|
"docsUrl": "https://mantle.ngrok.com/components/feedback/toast",
|
|
2396
2487
|
"markdownUrl": "https://mantle.ngrok.com/components/feedback/toast.md",
|
|
2397
|
-
"summary": "A
|
|
2398
|
-
"jsdoc": "A
|
|
2488
|
+
"summary": "A brief message that shows the result of an action, such as a save or a failed request, then goes away on its own.",
|
|
2489
|
+
"jsdoc": "A brief message that shows the result of an action, such as a save or a failed request, then goes away on its own.",
|
|
2399
2490
|
"examples": [
|
|
2400
2491
|
"Composition:\n```\nToast.Root\n├── Toast.Icon\n├── Toast.Message\n└── Toast.Action\n```",
|
|
2401
2492
|
"```tsx\nmakeToast(\n <Toast.Root intent=\"success\">\n <Toast.Icon />\n <Toast.Message>Operation completed successfully!</Toast.Message>\n <Toast.Action>Dismiss</Toast.Action>\n </Toast.Root>\n);\n```"
|
|
@@ -2414,7 +2505,7 @@
|
|
|
2414
2505
|
"boundary": "the message waits for the user to save or discard pending changes."
|
|
2415
2506
|
}
|
|
2416
2507
|
],
|
|
2417
|
-
"useWhen": "
|
|
2508
|
+
"useWhen": "Show the result of an action in a brief message that goes away on its own, such as a saved change, a copied value, or an error when a delete failed.",
|
|
2418
2509
|
"aliases": [
|
|
2419
2510
|
"notification",
|
|
2420
2511
|
"snackbar",
|
|
@@ -2483,6 +2574,44 @@
|
|
|
2483
2574
|
"truncate"
|
|
2484
2575
|
]
|
|
2485
2576
|
},
|
|
2577
|
+
{
|
|
2578
|
+
"name": "Typography",
|
|
2579
|
+
"slug": "components/data-display/typography",
|
|
2580
|
+
"kind": "component",
|
|
2581
|
+
"category": "Data Display",
|
|
2582
|
+
"status": "stable",
|
|
2583
|
+
"importPath": "@ngrok/mantle/typography",
|
|
2584
|
+
"docsUrl": "https://mantle.ngrok.com/components/data-display/typography",
|
|
2585
|
+
"markdownUrl": "https://mantle.ngrok.com/components/data-display/typography.md",
|
|
2586
|
+
"summary": "Headings and paragraphs in the site's type scale, for JSX and for MDX.",
|
|
2587
|
+
"jsdoc": "Headings and paragraphs in mantle's type roles.",
|
|
2588
|
+
"examples": [
|
|
2589
|
+
"Composition:\n```\nTypography\n├── Typography.H1\n├── Typography.H2\n├── Typography.H3\n├── Typography.H4\n├── Typography.H5\n├── Typography.H6\n└── Typography.P\n```",
|
|
2590
|
+
"```tsx\n<Typography.H1>Endpoints</Typography.H1>\n<Typography.P className=\"text-paragraph-lg\">Each endpoint gets a public URL.</Typography.P>\n<Typography.H2>Traffic policy</Typography.H2>\n<Typography.P>Attach a traffic policy to filter, route, or rewrite requests.</Typography.P>\n\n// MDX: map each element to its part.\n<MDXProvider components={{ h1: Typography.H1, h2: Typography.H2, p: Typography.P }}>\n <Content />\n</MDXProvider>\n```"
|
|
2591
|
+
],
|
|
2592
|
+
"siblings": [
|
|
2593
|
+
{
|
|
2594
|
+
"name": "Card",
|
|
2595
|
+
"boundary": "the heading is the title of a card; use `Card.Title`."
|
|
2596
|
+
},
|
|
2597
|
+
{
|
|
2598
|
+
"name": "Dialog",
|
|
2599
|
+
"boundary": "the heading is the title of a dialog; use `Dialog.Title`."
|
|
2600
|
+
},
|
|
2601
|
+
{
|
|
2602
|
+
"name": "Code",
|
|
2603
|
+
"boundary": "the text is a fragment of code."
|
|
2604
|
+
}
|
|
2605
|
+
],
|
|
2606
|
+
"useWhen": "Show a heading or a paragraph of copy in the site's type scale, in JSX or as the MDX `h1` to `h6` and `p` elements.",
|
|
2607
|
+
"aliases": [
|
|
2608
|
+
"heading",
|
|
2609
|
+
"paragraph",
|
|
2610
|
+
"prose",
|
|
2611
|
+
"h1",
|
|
2612
|
+
"text"
|
|
2613
|
+
]
|
|
2614
|
+
},
|
|
2486
2615
|
{
|
|
2487
2616
|
"name": "Visually Hidden",
|
|
2488
2617
|
"slug": "components/primitives/visually-hidden",
|
|
@@ -2550,6 +2679,33 @@
|
|
|
2550
2679
|
"aliases": [
|
|
2551
2680
|
"inset"
|
|
2552
2681
|
]
|
|
2682
|
+
},
|
|
2683
|
+
{
|
|
2684
|
+
"name": "World Map",
|
|
2685
|
+
"slug": "components/preview/world-map",
|
|
2686
|
+
"kind": "component",
|
|
2687
|
+
"category": "Charts",
|
|
2688
|
+
"status": "preview",
|
|
2689
|
+
"importPath": "@ngrok/mantle/world-map",
|
|
2690
|
+
"docsUrl": "https://mantle.ngrok.com/components/preview/world-map",
|
|
2691
|
+
"markdownUrl": "https://mantle.ngrok.com/components/preview/world-map.md",
|
|
2692
|
+
"summary": "A canvas-rendered world map that plots points by longitude and latitude on the Robinson projection.",
|
|
2693
|
+
"jsdoc": "A canvas-rendered world map that plots points by longitude and latitude on the Robinson projection, such as ngrok agents placed by their IP address.",
|
|
2694
|
+
"examples": [
|
|
2695
|
+
"Composition:\n```\nWorldMap.Root\n├── WorldMap.Graticule\n├── WorldMap.Point (one per series)\n├── WorldMap.Connector\n├── WorldMap.Callout\n├── WorldMap.Tooltip\n└── WorldMap.Legend\n```",
|
|
2696
|
+
"```tsx\nconst agents = [\n { name: \"sfo-edge-1\", longitude: -122.42, latitude: 37.77, sessions: 12 },\n { name: \"fra-edge-1\", longitude: 8.68, latitude: 50.11, sessions: 30 },\n { name: \"syd-edge-1\", longitude: 151.21, latitude: -33.87, sessions: 4 },\n];\n\n<WorldMap.Root\n data={agents}\n longitudeKey=\"longitude\"\n labelKey=\"name\"\n sizeKey=\"sessions\"\n aria-label=\"Agents by location\"\n>\n <WorldMap.Graticule />\n <WorldMap.Point latitudeKey=\"latitude\" label=\"Agents\" color=\"blue\" />\n <WorldMap.Tooltip />\n <WorldMap.Legend />\n</WorldMap.Root>\n```"
|
|
2697
|
+
],
|
|
2698
|
+
"siblings": [
|
|
2699
|
+
{
|
|
2700
|
+
"name": "ScatterPlot",
|
|
2701
|
+
"boundary": "the two values are measures, not a place on Earth."
|
|
2702
|
+
},
|
|
2703
|
+
{
|
|
2704
|
+
"name": "DataTable",
|
|
2705
|
+
"boundary": "a reader needs to sort, filter, or act on each place more than see where it is."
|
|
2706
|
+
}
|
|
2707
|
+
],
|
|
2708
|
+
"useWhen": "Show where things are in the world: agents, endpoints, or edge locations placed by longitude and latitude, or one request's client and the ngrok edge that received it."
|
|
2553
2709
|
}
|
|
2554
2710
|
],
|
|
2555
2711
|
"hooks": [
|
|
@@ -2682,7 +2838,7 @@
|
|
|
2682
2838
|
"markdownUrl": "https://mantle.ngrok.com/hooks.md",
|
|
2683
2839
|
"summary": "Returns `false` on the server, in the hydration render, and in the mount commit, then `true` from the next animation frame.",
|
|
2684
2840
|
"examples": [
|
|
2685
|
-
"```tsx\nfunction Panel({ open }: { open: boolean }) {\n const isHydrated = useIsHydratedAfterPaint();\n // A persisted-collapsed `open` snaps on load and animates on every later toggle.\n return (\n <div\n data-
|
|
2841
|
+
"```tsx\nfunction Panel({ open }: { open: boolean }) {\n const isHydrated = useIsHydratedAfterPaint();\n // A persisted-collapsed `open` snaps on load and animates on every later toggle.\n return (\n <div\n data-expanded={open ? \"\" : undefined}\n data-hydrated={isHydrated ? \"\" : undefined}\n className=\"w-52 transition-[width] not-data-expanded:w-13 not-data-hydrated:transition-none\"\n />\n );\n}\n```"
|
|
2686
2842
|
]
|
|
2687
2843
|
},
|
|
2688
2844
|
{
|
|
@@ -2712,7 +2868,7 @@
|
|
|
2712
2868
|
"markdownUrl": "https://mantle.ngrok.com/hooks.md",
|
|
2713
2869
|
"summary": "React hook that subscribes to a CSS media query and returns whether it currently matches, re-rendering whenever the result changes.",
|
|
2714
2870
|
"examples": [
|
|
2715
|
-
"// Detect if the user prefers a dark color scheme\nconst prefersDark = useMatchesMediaQuery(\"(prefers-color-scheme: dark)\");\n\nreturn <div className={prefersDark ? \"dark\" : \"light\"}>Hello</div>;",
|
|
2871
|
+
"// Detect if the user prefers a dark color scheme\nconst prefersDark = useMatchesMediaQuery(\"(prefers-color-scheme: dark)\");\n\nreturn <div className={cx(prefersDark ? \"dark\" : \"light\")}>Hello</div>;",
|
|
2716
2872
|
"// Show a different layout on portrait orientation\nconst isPortrait = useMatchesMediaQuery(\"(orientation: portrait)\");\n\nreturn isPortrait ? <PortraitLayout /> : <LandscapeLayout />;"
|
|
2717
2873
|
]
|
|
2718
2874
|
},
|
|
@@ -2727,6 +2883,16 @@
|
|
|
2727
2883
|
"// Disable an autoplaying carousel when motion is reduced\nconst prefersReducedMotion = usePrefersReducedMotion();\n\nreturn <Carousel autoplay={!prefersReducedMotion} />;"
|
|
2728
2884
|
]
|
|
2729
2885
|
},
|
|
2886
|
+
{
|
|
2887
|
+
"name": "useScrollAnchor",
|
|
2888
|
+
"importPath": "@ngrok/mantle/hooks",
|
|
2889
|
+
"docsUrl": "https://mantle.ngrok.com/hooks",
|
|
2890
|
+
"markdownUrl": "https://mantle.ngrok.com/hooks.md",
|
|
2891
|
+
"summary": "Keeps the reader's place in some content across a remount, at the same width or another.",
|
|
2892
|
+
"examples": [
|
|
2893
|
+
"```tsx\nfunction Transcript() {\n const { messages, scrollAnchorRef } = useConversation();\n const anchorContent = useScrollAnchor({ anchorRef: scrollAnchorRef, key: messages.at(-1)?.id });\n\n return (\n <ol ref={anchorContent}>\n {messages.map((message) => (\n <li key={message.id}>{message.text}</li>\n ))}\n </ol>\n );\n}\n```"
|
|
2894
|
+
]
|
|
2895
|
+
},
|
|
2730
2896
|
{
|
|
2731
2897
|
"name": "useScrollBehavior",
|
|
2732
2898
|
"importPath": "@ngrok/mantle/hooks",
|
|
@@ -2755,7 +2921,7 @@
|
|
|
2755
2921
|
"markdownUrl": "https://mantle.ngrok.com/hooks.md",
|
|
2756
2922
|
"summary": "Makes the element `handle` points at a swipe handle that drags `target` toward one edge and calls `onDismiss` when the drag crosses `threshold` of the target's size or ends in a flick.",
|
|
2757
2923
|
"examples": [
|
|
2758
|
-
"```tsx\nfunction FloatingPanel({ open, setOpen, children }: FloatingPanelProps) {\n const panelRef = useRef<HTMLElement>(null);\n const headerRef = useRef<HTMLDivElement>(null);\n useSwipeToDismiss(headerRef, {\n target: panelRef,\n onDismiss: () => setOpen(false),\n });\n\n return (\n <aside\n ref={panelRef}\n aria-label=\"Assistant\"\n data-
|
|
2924
|
+
"```tsx\nfunction FloatingPanel({ open, setOpen, children }: FloatingPanelProps) {\n const panelRef = useRef<HTMLElement>(null);\n const headerRef = useRef<HTMLDivElement>(null);\n useSwipeToDismiss(headerRef, {\n target: panelRef,\n onDismiss: () => setOpen(false),\n });\n\n return (\n <aside\n ref={panelRef}\n aria-label=\"Assistant\"\n data-open={open ? \"\" : undefined}\n className=\"transition-[translate] duration-200 ease-out-strong motion-reduce:transition-none not-data-open:translate-x-full\"\n >\n <div ref={headerRef} className=\"touch-pan-y\">\n Assistant\n </div>\n {children}\n </aside>\n );\n}\n```"
|
|
2759
2925
|
]
|
|
2760
2926
|
},
|
|
2761
2927
|
{
|
|
@@ -2832,5 +2998,206 @@
|
|
|
2832
2998
|
"markdownUrl": "https://mantle.ngrok.com/utils/sorting.md",
|
|
2833
2999
|
"summary": "Compare dates in newest-to-oldest (descending) order."
|
|
2834
3000
|
}
|
|
2835
|
-
]
|
|
3001
|
+
],
|
|
3002
|
+
"recipes": [
|
|
3003
|
+
{
|
|
3004
|
+
"name": "Assistant Across Routes",
|
|
3005
|
+
"slug": "recipes/assistant-across-routes",
|
|
3006
|
+
"docsUrl": "https://mantle.ngrok.com/recipes/assistant-across-routes",
|
|
3007
|
+
"markdownUrl": "https://mantle.ngrok.com/recipes/assistant-across-routes.md",
|
|
3008
|
+
"summary": "Render an assistant in main on its own route and in the AppLayout side panel on every other route, with one conversation above both, a 300ms View Transition that morphs the page into the panel, and the reader's place kept across the switch.",
|
|
3009
|
+
"useWhen": "Show an assistant as its own page on one route and in the side panel on every other route, with one conversation for both.",
|
|
3010
|
+
"aliases": [
|
|
3011
|
+
"assistant side panel",
|
|
3012
|
+
"chat side panel"
|
|
3013
|
+
],
|
|
3014
|
+
"parts": [
|
|
3015
|
+
"AppLayout",
|
|
3016
|
+
"Sidebar",
|
|
3017
|
+
"TextArea",
|
|
3018
|
+
"LiveRegion"
|
|
3019
|
+
]
|
|
3020
|
+
},
|
|
3021
|
+
{
|
|
3022
|
+
"name": "Breadcrumbs from Routes",
|
|
3023
|
+
"slug": "recipes/breadcrumbs-from-routes",
|
|
3024
|
+
"docsUrl": "https://mantle.ngrok.com/recipes/breadcrumbs-from-routes",
|
|
3025
|
+
"markdownUrl": "https://mantle.ngrok.com/recipes/breadcrumbs-from-routes.md",
|
|
3026
|
+
"summary": "Derive a breadcrumb trail from the matched route chain with React Router's route handles (no context, no effects, correct on the server and on first paint).",
|
|
3027
|
+
"useWhen": "Build the header breadcrumb trail from the matched routes, so it renders on the server and on the first paint.",
|
|
3028
|
+
"aliases": [
|
|
3029
|
+
"route breadcrumbs",
|
|
3030
|
+
"breadcrumb trail from routes"
|
|
3031
|
+
],
|
|
3032
|
+
"parts": [
|
|
3033
|
+
"Breadcrumb",
|
|
3034
|
+
"AppLayout"
|
|
3035
|
+
]
|
|
3036
|
+
},
|
|
3037
|
+
{
|
|
3038
|
+
"name": "Cancel and Submit Actions",
|
|
3039
|
+
"slug": "recipes/cancel-and-submit",
|
|
3040
|
+
"docsUrl": "https://mantle.ngrok.com/recipes/cancel-and-submit",
|
|
3041
|
+
"markdownUrl": "https://mantle.ngrok.com/recipes/cancel-and-submit.md",
|
|
3042
|
+
"summary": "Put a form's Cancel and submit buttons in one actions row, and switch to a Sandbar when the form edits saved settings.",
|
|
3043
|
+
"useWhen": "Place a form's Cancel and submit buttons, or pick between an actions row and a save bar.",
|
|
3044
|
+
"aliases": [
|
|
3045
|
+
"form actions",
|
|
3046
|
+
"form footer",
|
|
3047
|
+
"form buttons",
|
|
3048
|
+
"save and cancel buttons"
|
|
3049
|
+
],
|
|
3050
|
+
"parts": [
|
|
3051
|
+
"Strata",
|
|
3052
|
+
"Field",
|
|
3053
|
+
"Button",
|
|
3054
|
+
"Sandbar"
|
|
3055
|
+
]
|
|
3056
|
+
},
|
|
3057
|
+
{
|
|
3058
|
+
"name": "Filter from a Value",
|
|
3059
|
+
"slug": "recipes/filter-from-a-value",
|
|
3060
|
+
"docsUrl": "https://mantle.ngrok.com/recipes/filter-from-a-value",
|
|
3061
|
+
"markdownUrl": "https://mantle.ngrok.com/recipes/filter-from-a-value.md",
|
|
3062
|
+
"summary": "Turn a value in a table row into a Query filter with one click, and take it out with a second click, with toggleFacet.",
|
|
3063
|
+
"useWhen": "Let a click on a value in a table row add that value to the list's Query filter, and a second click take it out.",
|
|
3064
|
+
"aliases": [
|
|
3065
|
+
"click to filter",
|
|
3066
|
+
"filter by cell value"
|
|
3067
|
+
],
|
|
3068
|
+
"parts": [
|
|
3069
|
+
"DataTable",
|
|
3070
|
+
"Query",
|
|
3071
|
+
"query-filter"
|
|
3072
|
+
]
|
|
3073
|
+
},
|
|
3074
|
+
{
|
|
3075
|
+
"name": "Header Actions from Routes",
|
|
3076
|
+
"slug": "recipes/header-actions-from-routes",
|
|
3077
|
+
"docsUrl": "https://mantle.ngrok.com/recipes/header-actions-from-routes",
|
|
3078
|
+
"markdownUrl": "https://mantle.ngrok.com/recipes/header-actions-from-routes.md",
|
|
3079
|
+
"summary": "The documented deviation from the canonical route-owned header. A shell-owned header takes its actions from React Router route handles (derived state, so the server renders them and no page pushes anything up).",
|
|
3080
|
+
"useWhen": "Put the page's actions in a header that the app shell owns. Use it only when no route needs page state in its actions; else each route renders its own AppLayout.Header.",
|
|
3081
|
+
"aliases": [
|
|
3082
|
+
"shell header actions"
|
|
3083
|
+
],
|
|
3084
|
+
"parts": [
|
|
3085
|
+
"AppLayout",
|
|
3086
|
+
"Breadcrumb",
|
|
3087
|
+
"DropdownMenu"
|
|
3088
|
+
]
|
|
3089
|
+
},
|
|
3090
|
+
{
|
|
3091
|
+
"name": "List Page Loading States",
|
|
3092
|
+
"slug": "recipes/list-page-loading-states",
|
|
3093
|
+
"docsUrl": "https://mantle.ngrok.com/recipes/list-page-loading-states",
|
|
3094
|
+
"markdownUrl": "https://mantle.ngrok.com/recipes/list-page-loading-states.md",
|
|
3095
|
+
"summary": "Render a list page's header, filters, and column headers on the first frame, then fill the table with skeleton rows that match the loaded rows, so nothing shifts when the data lands.",
|
|
3096
|
+
"useWhen": "Build a list page whose heading, filters, and column headers paint on the first frame, while skeleton rows wait for the data.",
|
|
3097
|
+
"aliases": [
|
|
3098
|
+
"list page",
|
|
3099
|
+
"table page",
|
|
3100
|
+
"index page",
|
|
3101
|
+
"table loading skeleton"
|
|
3102
|
+
],
|
|
3103
|
+
"parts": [
|
|
3104
|
+
"AppLayout",
|
|
3105
|
+
"DataTable",
|
|
3106
|
+
"Skeleton",
|
|
3107
|
+
"Empty",
|
|
3108
|
+
"LiveRegion"
|
|
3109
|
+
]
|
|
3110
|
+
},
|
|
3111
|
+
{
|
|
3112
|
+
"name": "Natural Language Query",
|
|
3113
|
+
"slug": "recipes/natural-language-query",
|
|
3114
|
+
"docsUrl": "https://mantle.ngrok.com/recipes/natural-language-query",
|
|
3115
|
+
"markdownUrl": "https://mantle.ngrok.com/recipes/natural-language-query.md",
|
|
3116
|
+
"summary": "Let people describe a filter in plain words, and turn the words into a Query filter on Enter, through ngrok.ai gateway inference.",
|
|
3117
|
+
"useWhen": "Let people type a filter in plain words, and turn the words into a Query filter with model inference.",
|
|
3118
|
+
"aliases": [
|
|
3119
|
+
"ai search",
|
|
3120
|
+
"natural language filter",
|
|
3121
|
+
"plain language search",
|
|
3122
|
+
"type a question to filter"
|
|
3123
|
+
],
|
|
3124
|
+
"parts": [
|
|
3125
|
+
"Query",
|
|
3126
|
+
"query-filter",
|
|
3127
|
+
"DataTable",
|
|
3128
|
+
"LiveRegion"
|
|
3129
|
+
]
|
|
3130
|
+
},
|
|
3131
|
+
{
|
|
3132
|
+
"name": "Overlays + Async Data (React Query)",
|
|
3133
|
+
"slug": "recipes/overlay-async",
|
|
3134
|
+
"docsUrl": "https://mantle.ngrok.com/recipes/overlay-async",
|
|
3135
|
+
"markdownUrl": "https://mantle.ngrok.com/recipes/overlay-async.md",
|
|
3136
|
+
"summary": "Render a Sheet, Dialog, or Alert Dialog immediately, then swap its body between pending, success, 404, and 500 states with TanStack Query.",
|
|
3137
|
+
"useWhen": "Open a Sheet, Dialog, or Alert Dialog at once, then show its pending, loaded, not found, and error states as the data loads.",
|
|
3138
|
+
"aliases": [
|
|
3139
|
+
"dialog loading state",
|
|
3140
|
+
"modal with async data",
|
|
3141
|
+
"sheet with async data"
|
|
3142
|
+
],
|
|
3143
|
+
"parts": [
|
|
3144
|
+
"Dialog",
|
|
3145
|
+
"Sheet",
|
|
3146
|
+
"AlertDialog",
|
|
3147
|
+
"Skeleton",
|
|
3148
|
+
"Empty"
|
|
3149
|
+
]
|
|
3150
|
+
},
|
|
3151
|
+
{
|
|
3152
|
+
"name": "Query from the URL",
|
|
3153
|
+
"slug": "recipes/query-from-the-url",
|
|
3154
|
+
"docsUrl": "https://mantle.ngrok.com/recipes/query-from-the-url",
|
|
3155
|
+
"markdownUrl": "https://mantle.ngrok.com/recipes/query-from-the-url.md",
|
|
3156
|
+
"summary": "Keep the text of a Query field in the ?q= URL param, so a filtered list is shareable by its URL, with React Router or nuqs.",
|
|
3157
|
+
"useWhen": "Keep the text of a list's Query filter in the URL, so a filtered list is shareable by its link.",
|
|
3158
|
+
"aliases": [
|
|
3159
|
+
"filter in the url",
|
|
3160
|
+
"search params filter",
|
|
3161
|
+
"shareable filter link"
|
|
3162
|
+
],
|
|
3163
|
+
"parts": [
|
|
3164
|
+
"Query",
|
|
3165
|
+
"query-filter",
|
|
3166
|
+
"DataTable"
|
|
3167
|
+
]
|
|
3168
|
+
},
|
|
3169
|
+
{
|
|
3170
|
+
"name": "Route Announcer",
|
|
3171
|
+
"slug": "recipes/route-announcer",
|
|
3172
|
+
"docsUrl": "https://mantle.ngrok.com/recipes/route-announcer",
|
|
3173
|
+
"markdownUrl": "https://mantle.ngrok.com/recipes/route-announcer.md",
|
|
3174
|
+
"summary": "Announce completed client-side navigations to screen readers by pairing a persistent LiveRegion with React Router's location, with page-name fallbacks and repeat-message handling.",
|
|
3175
|
+
"useWhen": "Announce each client-side navigation to screen readers.",
|
|
3176
|
+
"aliases": [
|
|
3177
|
+
"announce page change",
|
|
3178
|
+
"screen reader navigation announcement"
|
|
3179
|
+
],
|
|
3180
|
+
"parts": [
|
|
3181
|
+
"LiveRegion"
|
|
3182
|
+
]
|
|
3183
|
+
},
|
|
3184
|
+
{
|
|
3185
|
+
"name": "Sparklines in a List",
|
|
3186
|
+
"slug": "recipes/sparklines-in-a-list",
|
|
3187
|
+
"docsUrl": "https://mantle.ngrok.com/recipes/sparklines-in-a-list",
|
|
3188
|
+
"markdownUrl": "https://mantle.ngrok.com/recipes/sparklines-in-a-list.md",
|
|
3189
|
+
"summary": "Put two BarChart sparklines in every row of a DataTable, sized for a row, named for the row, with a compact total beside each one, and dormant until the reader scrolls near it.",
|
|
3190
|
+
"useWhen": "Show a small trend chart in each row of a data table.",
|
|
3191
|
+
"aliases": [
|
|
3192
|
+
"sparkline",
|
|
3193
|
+
"row trend chart",
|
|
3194
|
+
"mini chart in a table"
|
|
3195
|
+
],
|
|
3196
|
+
"parts": [
|
|
3197
|
+
"DataTable",
|
|
3198
|
+
"BarChart"
|
|
3199
|
+
]
|
|
3200
|
+
}
|
|
3201
|
+
],
|
|
3202
|
+
"sourceHash": "0f2b255d17f2d439fc45a694bc63013ccd7e9b0de03065e6d1b74d5b29feca01"
|
|
2836
3203
|
}
|