@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/hover-card.d.ts
CHANGED
|
@@ -3,146 +3,11 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @see https://mantle.ngrok.com/components/overlays/hover-card
|
|
5
5
|
*/
|
|
6
|
-
import
|
|
7
|
-
import { ComponentProps } from "react";
|
|
8
|
-
import { Arrow as Arrow$1, Content as Content$1, Portal as Portal$1, Root as Root$1, Trigger as Trigger$1 } from "@radix-ui/react-hover-card";
|
|
6
|
+
import * as HoverCardParts from "./hover-card-parts.js";
|
|
9
7
|
/**
|
|
10
8
|
* A floating card that appears when a user hovers over a trigger element.
|
|
11
|
-
* This is the root, stateful component that manages the open/closed state of the hover card.
|
|
12
9
|
*
|
|
13
|
-
* `HoverCard
|
|
14
|
-
* composed inside an open `Dialog`, `AlertDialog`, or `Sheet`, it portals into
|
|
15
|
-
* that overlay's positioner and paints above the overlay that owns it. Outside
|
|
16
|
-
* every overlay, it portals to `document.body`, below the overlay tier
|
|
17
|
-
* (`z-60`). When sibling floats share a container, the most recently mounted
|
|
18
|
-
* float paints on top.
|
|
19
|
-
*
|
|
20
|
-
* @see https://mantle.ngrok.com/components/overlays/hover-card#hovercardroot
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* ```tsx
|
|
24
|
-
* <HoverCard.Root>
|
|
25
|
-
* <HoverCard.Trigger asChild>
|
|
26
|
-
* <Button type="button" appearance="outlined" intent="neutral">
|
|
27
|
-
* Hover me
|
|
28
|
-
* </Button>
|
|
29
|
-
* </HoverCard.Trigger>
|
|
30
|
-
* <HoverCard.Content>
|
|
31
|
-
* <p>This is the hover card content.</p>
|
|
32
|
-
* </HoverCard.Content>
|
|
33
|
-
* </HoverCard.Root>
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
|
-
declare const Root: ({ closeDelay, openDelay, ...props }: ComponentProps<typeof Root$1>) => import("react").JSX.Element;
|
|
37
|
-
/**
|
|
38
|
-
* The trigger element that opens the hover card when hovered.
|
|
39
|
-
*
|
|
40
|
-
* @see https://mantle.ngrok.com/components/overlays/hover-card#hovercardtrigger
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* ```tsx
|
|
44
|
-
* <HoverCard.Root>
|
|
45
|
-
* <HoverCard.Trigger asChild>
|
|
46
|
-
* <Button type="button" appearance="outlined" intent="neutral">
|
|
47
|
-
* Hover me
|
|
48
|
-
* </Button>
|
|
49
|
-
* </HoverCard.Trigger>
|
|
50
|
-
* <HoverCard.Content>
|
|
51
|
-
* <p>This is the hover card content.</p>
|
|
52
|
-
* </HoverCard.Content>
|
|
53
|
-
* </HoverCard.Root>
|
|
54
|
-
* ```
|
|
55
|
-
*/
|
|
56
|
-
declare const Trigger: ({ "data-slot": dataSlot, ...props }: ComponentProps<typeof Trigger$1> & WithDataSlot) => import("react").JSX.Element;
|
|
57
|
-
/**
|
|
58
|
-
* The portal container for rendering hover card content outside the normal DOM tree.
|
|
59
|
-
* `HoverCard.Content` already renders inside this portal internally, so you typically
|
|
60
|
-
* do not need to use `HoverCard.Portal` directly. Use it only when you need to
|
|
61
|
-
* customize portal placement (e.g., pass a `container` prop) or wrap multiple
|
|
62
|
-
* `HoverCard.Content` instances in a shared portal.
|
|
63
|
-
*
|
|
64
|
-
* When `container` is omitted, content mounts into the nearest layer container:
|
|
65
|
-
* an enclosing overlay's positioner when one is open, else `document.body`.
|
|
66
|
-
*
|
|
67
|
-
* @see https://mantle.ngrok.com/components/overlays/hover-card#hovercardportal
|
|
68
|
-
*
|
|
69
|
-
* @example
|
|
70
|
-
* ```tsx
|
|
71
|
-
* <HoverCard.Root>
|
|
72
|
-
* <HoverCard.Trigger asChild>
|
|
73
|
-
* <Button type="button" appearance="outlined" intent="neutral">
|
|
74
|
-
* Hover me
|
|
75
|
-
* </Button>
|
|
76
|
-
* </HoverCard.Trigger>
|
|
77
|
-
* <HoverCard.Portal>
|
|
78
|
-
* <HoverCard.Content>
|
|
79
|
-
* <p>This is the hover card content.</p>
|
|
80
|
-
* </HoverCard.Content>
|
|
81
|
-
* </HoverCard.Portal>
|
|
82
|
-
* </HoverCard.Root>
|
|
83
|
-
* ```
|
|
84
|
-
*/
|
|
85
|
-
declare const Portal: ({ container, ...props }: ComponentProps<typeof Portal$1>) => import("react").JSX.Element;
|
|
86
|
-
/**
|
|
87
|
-
* The content to render inside the hover card.
|
|
88
|
-
*
|
|
89
|
-
* `HoverCard.Content` renders at Tailwind `z-50`, Mantle's float tier. When
|
|
90
|
-
* composed inside an open `Dialog`, `AlertDialog`, or `Sheet`, it portals into
|
|
91
|
-
* that overlay's positioner and paints above the overlay that owns it. Outside
|
|
92
|
-
* every overlay, it portals to `document.body`, below the overlay tier
|
|
93
|
-
* (`z-60`). When sibling floats share a container, the most recently mounted
|
|
94
|
-
* float paints on top.
|
|
95
|
-
*
|
|
96
|
-
* It sets `position: relative`, so `HoverCard.Arrow`'s absolutely-positioned
|
|
97
|
-
* wrapper keeps one containing block through the open animation. An
|
|
98
|
-
* absolutely-positioned child of the content therefore anchors to the content.
|
|
99
|
-
*
|
|
100
|
-
* @see https://mantle.ngrok.com/components/overlays/hover-card#hovercardcontent
|
|
101
|
-
*
|
|
102
|
-
* @example
|
|
103
|
-
* ```tsx
|
|
104
|
-
* <HoverCard.Root>
|
|
105
|
-
* <HoverCard.Trigger asChild>
|
|
106
|
-
* <Button type="button" appearance="outlined" intent="neutral">
|
|
107
|
-
* Hover me
|
|
108
|
-
* </Button>
|
|
109
|
-
* </HoverCard.Trigger>
|
|
110
|
-
* <HoverCard.Content>
|
|
111
|
-
* <p>This is the hover card content.</p>
|
|
112
|
-
* </HoverCard.Content>
|
|
113
|
-
* </HoverCard.Root>
|
|
114
|
-
* ```
|
|
115
|
-
*/
|
|
116
|
-
declare const Content: ({ "data-slot": dataSlot, className, onClick, align, sideOffset, ...props }: ComponentProps<typeof Content$1> & WithDataSlot) => import("react").JSX.Element;
|
|
117
|
-
type HoverCardArrowProps = Omit<ComponentProps<typeof Arrow$1>, "asChild" | "children"> & WithDataSlot;
|
|
118
|
-
/**
|
|
119
|
-
* An optional tip that points from `HoverCard.Content` at its trigger. Render it
|
|
120
|
-
* as a child of `HoverCard.Content`. Radix positions it with floating-ui's arrow
|
|
121
|
-
* middleware, so it stays centered on the trigger when collision detection shifts
|
|
122
|
-
* or flips the content. It also repaints `HoverCard.Content`'s fill and border
|
|
123
|
-
* across its base, so the two edges read as one line, and carries its own shadow,
|
|
124
|
-
* clipped at that base so it never darkens the content's interior.
|
|
125
|
-
*
|
|
126
|
-
* @see https://mantle.ngrok.com/components/overlays/hover-card#hovercardarrow
|
|
127
|
-
*
|
|
128
|
-
* @example
|
|
129
|
-
* ```tsx
|
|
130
|
-
* <HoverCard.Root>
|
|
131
|
-
* <HoverCard.Trigger asChild>
|
|
132
|
-
* <Button type="button" appearance="link" intent="accent">@username</Button>
|
|
133
|
-
* </HoverCard.Trigger>
|
|
134
|
-
* <HoverCard.Content>
|
|
135
|
-
* <HoverCard.Arrow />
|
|
136
|
-
* <p>This is the hover card content.</p>
|
|
137
|
-
* </HoverCard.Content>
|
|
138
|
-
* </HoverCard.Root>
|
|
139
|
-
* ```
|
|
140
|
-
*/
|
|
141
|
-
declare const Arrow: ({ "data-slot": dataSlot, className, height, width, ...props }: HoverCardArrowProps) => import("react").JSX.Element;
|
|
142
|
-
/**
|
|
143
|
-
* A floating card that appears when a user hovers over a trigger element.
|
|
144
|
-
*
|
|
145
|
-
* Use `HoverCard` for non-essential preview content shown on HOVER — user
|
|
10
|
+
* Use `HoverCard` for non-essential preview content shown on HOVER: user
|
|
146
11
|
* cards, repo previews, rich link previews. Because hover is not reachable
|
|
147
12
|
* via keyboard, all content inside a `HoverCard` must be supplemental,
|
|
148
13
|
* never the only path to information; the trigger is typically a link that
|
|
@@ -150,12 +15,12 @@ declare const Arrow: ({ "data-slot": dataSlot, className, height, width, ...prop
|
|
|
150
15
|
* For short, non-interactive labels or hints, use `Tooltip`. For
|
|
151
16
|
* interactive overlays the user opens deliberately, use `Popover`.
|
|
152
17
|
*
|
|
153
|
-
* `HoverCard.Content`
|
|
154
|
-
*
|
|
155
|
-
*
|
|
156
|
-
*
|
|
157
|
-
*
|
|
158
|
-
*
|
|
18
|
+
* `HoverCard.Content` is a native `popover` in the browser's top layer, so it paints
|
|
19
|
+
* above the page with no `z-index`. It portals into the content of the open
|
|
20
|
+
* `Dialog`, `AlertDialog`, `Sheet`, or `Popover` that holds it, else into
|
|
21
|
+
* `document.body`. It does not show while an overlay that does not hold it
|
|
22
|
+
* is open. A script places it next to its trigger. Where the browser has no
|
|
23
|
+
* popover API, it is a fixed box at `z-50`.
|
|
159
24
|
*
|
|
160
25
|
* @useWhen Preview the content behind a link on hover, such as a user card or a repository preview.
|
|
161
26
|
*
|
|
@@ -188,142 +53,5 @@ declare const Arrow: ({ "data-slot": dataSlot, className, height, width, ...prop
|
|
|
188
53
|
* </HoverCard.Root>
|
|
189
54
|
* ```
|
|
190
55
|
*/
|
|
191
|
-
declare const HoverCard:
|
|
192
|
-
/**
|
|
193
|
-
* The root, stateful component that manages the open/closed state of the hover card.
|
|
194
|
-
*
|
|
195
|
-
* `HoverCard.Content` renders at Tailwind `z-50`, Mantle's float tier. When
|
|
196
|
-
* composed inside an open `Dialog`, `AlertDialog`, or `Sheet`, it portals into
|
|
197
|
-
* that overlay's positioner and paints above the overlay that owns it. Outside
|
|
198
|
-
* every overlay, it portals to `document.body`, below the overlay tier
|
|
199
|
-
* (`z-60`). When sibling floats share a container, the most recently mounted
|
|
200
|
-
* float paints on top.
|
|
201
|
-
*
|
|
202
|
-
* @see https://mantle.ngrok.com/components/overlays/hover-card#hovercardroot
|
|
203
|
-
*
|
|
204
|
-
* @example
|
|
205
|
-
* ```tsx
|
|
206
|
-
* <HoverCard.Root>
|
|
207
|
-
* <HoverCard.Trigger asChild>
|
|
208
|
-
* <Button type="button" appearance="outlined" intent="neutral">
|
|
209
|
-
* Hover me
|
|
210
|
-
* </Button>
|
|
211
|
-
* </HoverCard.Trigger>
|
|
212
|
-
* <HoverCard.Content>
|
|
213
|
-
* <p>This is the hover card content.</p>
|
|
214
|
-
* </HoverCard.Content>
|
|
215
|
-
* </HoverCard.Root>
|
|
216
|
-
* ```
|
|
217
|
-
*/
|
|
218
|
-
readonly Root: typeof Root;
|
|
219
|
-
/**
|
|
220
|
-
* An optional tip that points from `HoverCard.Content` at its trigger. It stays
|
|
221
|
-
* centered on the trigger when collision detection shifts or flips the content,
|
|
222
|
-
* and its border continues `HoverCard.Content`'s own edge.
|
|
223
|
-
*
|
|
224
|
-
* @see https://mantle.ngrok.com/components/overlays/hover-card#hovercardarrow
|
|
225
|
-
*
|
|
226
|
-
* @example
|
|
227
|
-
* ```tsx
|
|
228
|
-
* <HoverCard.Root>
|
|
229
|
-
* <HoverCard.Trigger asChild>
|
|
230
|
-
* <Button type="button" appearance="link" intent="accent">@username</Button>
|
|
231
|
-
* </HoverCard.Trigger>
|
|
232
|
-
* <HoverCard.Content side="top">
|
|
233
|
-
* <HoverCard.Arrow />
|
|
234
|
-
* <div className="space-y-2">
|
|
235
|
-
* <Text weight="strong">User Profile</Text>
|
|
236
|
-
* <Text>Additional information about the user.</Text>
|
|
237
|
-
* </div>
|
|
238
|
-
* </HoverCard.Content>
|
|
239
|
-
* </HoverCard.Root>
|
|
240
|
-
* ```
|
|
241
|
-
*/
|
|
242
|
-
readonly Arrow: typeof Arrow;
|
|
243
|
-
/**
|
|
244
|
-
* The content to render inside the hover card.
|
|
245
|
-
*
|
|
246
|
-
* `HoverCard.Content` renders at Tailwind `z-50`, Mantle's float tier. When
|
|
247
|
-
* composed inside an open `Dialog`, `AlertDialog`, or `Sheet`, it portals into
|
|
248
|
-
* that overlay's positioner and paints above the overlay that owns it. Outside
|
|
249
|
-
* every overlay, it portals to `document.body`, below the overlay tier
|
|
250
|
-
* (`z-60`). When sibling floats share a container, the most recently mounted
|
|
251
|
-
* float paints on top.
|
|
252
|
-
*
|
|
253
|
-
* It sets `position: relative`, so `HoverCard.Arrow`'s absolutely-positioned
|
|
254
|
-
* wrapper keeps one containing block through the open animation. An
|
|
255
|
-
* absolutely-positioned child of the content therefore anchors to the content.
|
|
256
|
-
*
|
|
257
|
-
* @see https://mantle.ngrok.com/components/overlays/hover-card#hovercardcontent
|
|
258
|
-
*
|
|
259
|
-
* @example
|
|
260
|
-
* ```tsx
|
|
261
|
-
* <HoverCard.Root>
|
|
262
|
-
* <HoverCard.Trigger asChild>
|
|
263
|
-
* <Button type="button" appearance="link" intent="accent">@username</Button>
|
|
264
|
-
* </HoverCard.Trigger>
|
|
265
|
-
* <HoverCard.Content side="top">
|
|
266
|
-
* <div className="space-y-2">
|
|
267
|
-
* <Text weight="strong">User Profile</Text>
|
|
268
|
-
* <Text>Additional information about the user.</Text>
|
|
269
|
-
* <Button type="button" appearance="filled" intent="neutral" size="sm">Follow</Button>
|
|
270
|
-
* </div>
|
|
271
|
-
* </HoverCard.Content>
|
|
272
|
-
* </HoverCard.Root>
|
|
273
|
-
* ```
|
|
274
|
-
*/
|
|
275
|
-
readonly Content: typeof Content;
|
|
276
|
-
/**
|
|
277
|
-
* The portal container for rendering hover card content outside the normal DOM tree.
|
|
278
|
-
* `HoverCard.Content` already renders inside this portal internally, so you typically
|
|
279
|
-
* do not need to use `HoverCard.Portal` directly. Use it only when you need to
|
|
280
|
-
* customize portal placement (e.g., pass a `container` prop) or wrap multiple
|
|
281
|
-
* `HoverCard.Content` instances in a shared portal.
|
|
282
|
-
*
|
|
283
|
-
* When `container` is omitted, content mounts into the nearest layer container:
|
|
284
|
-
* an enclosing overlay's positioner when one is open, else `document.body`.
|
|
285
|
-
*
|
|
286
|
-
* @see https://mantle.ngrok.com/components/overlays/hover-card#hovercardportal
|
|
287
|
-
*
|
|
288
|
-
* @example
|
|
289
|
-
* ```tsx
|
|
290
|
-
* <HoverCard.Root>
|
|
291
|
-
* <HoverCard.Trigger asChild>
|
|
292
|
-
* <Button type="button" appearance="outlined" intent="neutral">
|
|
293
|
-
* Hover me
|
|
294
|
-
* </Button>
|
|
295
|
-
* </HoverCard.Trigger>
|
|
296
|
-
* <HoverCard.Portal>
|
|
297
|
-
* <HoverCard.Content>
|
|
298
|
-
* <p>This is the hover card content.</p>
|
|
299
|
-
* </HoverCard.Content>
|
|
300
|
-
* </HoverCard.Portal>
|
|
301
|
-
* </HoverCard.Root>
|
|
302
|
-
* ```
|
|
303
|
-
*/
|
|
304
|
-
readonly Portal: typeof Portal;
|
|
305
|
-
/**
|
|
306
|
-
* The trigger element that opens the hover card when hovered.
|
|
307
|
-
*
|
|
308
|
-
* @see https://mantle.ngrok.com/components/overlays/hover-card#hovercardtrigger
|
|
309
|
-
*
|
|
310
|
-
* @example
|
|
311
|
-
* ```tsx
|
|
312
|
-
* <HoverCard.Root>
|
|
313
|
-
* <HoverCard.Trigger asChild>
|
|
314
|
-
* <Button type="button" appearance="ghost" intent="neutral">
|
|
315
|
-
* Hover for details
|
|
316
|
-
* </Button>
|
|
317
|
-
* </HoverCard.Trigger>
|
|
318
|
-
* <HoverCard.Content>
|
|
319
|
-
* <div className="space-y-1">
|
|
320
|
-
* <Text weight="strong">Quick Info</Text>
|
|
321
|
-
* <Text>This appears when you hover over the trigger.</Text>
|
|
322
|
-
* </div>
|
|
323
|
-
* </HoverCard.Content>
|
|
324
|
-
* </HoverCard.Root>
|
|
325
|
-
* ```
|
|
326
|
-
*/
|
|
327
|
-
readonly Trigger: typeof Trigger;
|
|
328
|
-
};
|
|
56
|
+
declare const HoverCard: typeof HoverCardParts;
|
|
329
57
|
export { HoverCard };
|
package/dist/hover-card.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export*as HoverCard from"./hover-card-parts.js";
|
|
@@ -13,7 +13,7 @@ import { ComponentProps } from "react";
|
|
|
13
13
|
type SvgAttributes = ComponentProps<"svg"> & {
|
|
14
14
|
/**
|
|
15
15
|
* Whether the SVG can receive keyboard focus. Use the string form
|
|
16
|
-
* (`"true"` / `"false"`)
|
|
16
|
+
* (`"true"` / `"false"`): the SVG attribute is serialized as a string and
|
|
17
17
|
* React's boolean form can produce inconsistent output.
|
|
18
18
|
*/
|
|
19
19
|
focusable?: "true" | "false";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./cx-CfAFHj5_.js";import{t}from"./utils-EM6s2WEU.js";import{t as n}from"./icon-BSGMvJ0W.js";import{jsx as r}from"react/jsx-runtime";const i=({"data-slot":i,active:a,className:o,icons:s,...c})=>/* @__PURE__ */ r(`span`,{"data-slot":t(i,`icon-swap`),className:e(`inline-grid shrink-0 place-items-center`,o),...c,children:Object.entries(s).map(([e,t])=>/* @__PURE__ */ r(`span`,{"data-slot":`icon-swap-item`,"aria-hidden":e!==a||void 0,className:`col-start-1 row-start-1 grid place-items-center motion-safe:transition-[opacity,scale,filter,visibility] motion-safe:duration-200 motion-safe:ease-out-strong aria-hidden:opacity-0 motion-safe:aria-hidden:scale-50 motion-safe:aria-hidden:blur-[2px] motion-safe:aria-hidden:duration-150 aria-hidden:invisible aria-hidden:[&>*]:paused`,children:/* @__PURE__ */ r(n,{svg:t})},e))});export{i as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./cx-CfAFHj5_.js";import{t}from"./utils-EM6s2WEU.js";import{t as n}from"./icon-DIiKxRTh.js";import{jsx as r}from"react/jsx-runtime";const i=({"data-slot":i,className:a,style:o,svg:s,ref:c,...l})=>/* @__PURE__ */ r(n,{ref:c,"data-slot":t(i,`icon`),className:e(`size-5`,a),style:o,svg:s,...l});export{i as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Children as e,cloneElement as t,isValidElement as n}from"react";import r from"tiny-invariant";import{t as i}from"./cx-CfAFHj5_.js";import{t as a}from"./utils-EM6s2WEU.js";const o=t=>t!=null&&e.toArray(t).some(e=>n(e)&&e.type===`title`),s=e=>e[`aria-label`]!=null||e[`aria-labelledby`]!=null||e[`aria-hidden`]!=null||e.role!=null||e.alt!=null||o(e.children),c=({"data-slot":o,className:c,style:l,svg:u,ref:d,...f})=>{r(n(u)&&e.only(u),`SvgOnly must be passed a single SVG icon as a JSX tag.`);let p=!s(f)&&!s(u.props);return t(u,{"data-slot":a(o,`svg-only`),...p&&{"aria-hidden":!0},...f,className:i(`shrink-0`,c,u.props.className),style:{...l,...u.props.style},ref:d})};export{c as t};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
|
|
2
|
-
import { t as SvgAttributes } from "./icon-CgNqu-fl.js";
|
|
3
1
|
import { ReactNode } from "react";
|
|
2
|
+
import { t as WithDataSlot } from "./data-slot-BW8KQ9Xo.js";
|
|
3
|
+
import { t as SvgAttributes } from "./icon--purqHRo.js";
|
|
4
4
|
type SvgOnlyProps = Omit<SvgAttributes, "children"> & {
|
|
5
5
|
/**
|
|
6
6
|
* A single SVG icon element.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
|
|
2
|
-
import { t as SvgAttributes } from "./icon-CgNqu-fl.js";
|
|
3
1
|
import { ReactNode } from "react";
|
|
2
|
+
import { t as WithDataSlot } from "./data-slot-BW8KQ9Xo.js";
|
|
3
|
+
import { t as SvgAttributes } from "./icon--purqHRo.js";
|
|
4
4
|
type IconProps = Omit<SvgAttributes, "children"> & {
|
|
5
5
|
/**
|
|
6
6
|
* A single SVG icon element.
|
package/dist/icon.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @see https://mantle.ngrok.com/components/data-display/icon
|
|
5
5
|
*/
|
|
6
|
-
import { n as IconProps, t as Icon } from "./icon-
|
|
7
|
-
import { n as SvgOnlyProps, t as SvgOnly } from "./icon-
|
|
8
|
-
import { t as SvgAttributes } from "./icon
|
|
6
|
+
import { n as IconProps, t as Icon } from "./icon-KTcDR4--.js";
|
|
7
|
+
import { n as SvgOnlyProps, t as SvgOnly } from "./icon-Dqn_LLrR.js";
|
|
8
|
+
import { t as SvgAttributes } from "./icon--purqHRo.js";
|
|
9
9
|
export { Icon, type IconProps, type SvgAttributes, SvgOnly, type SvgOnlyProps };
|
package/dist/icon.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./icon-
|
|
1
|
+
import{t as e}from"./icon-BSGMvJ0W.js";import{t}from"./icon-DIiKxRTh.js";export{e as Icon,t as SvgOnly};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e,jsxs as t}from"react/jsx-runtime";function n(n){return/* @__PURE__ */ t(`svg`,{fill:`currentColor`,height:`1em`,viewBox:`0 0 256 256`,width:`1em`,...n,children:[/* @__PURE__ */ e(`path`,{fill:`none`,d:`M0 0h256v256H0z`}),/* @__PURE__ */ e(`path`,{d:`m213.7 82.3-56-56c-1.5-1.5-3.5-2.3-5.7-2.3H56c-8.8 0-16 7.2-16 16v88c0 4.4 3.6 8 8 8s8-3.6 8-8V40h88v48c0 4.4 3.6 8 8 8h48v120h-40c-4.4 0-8 3.6-8 8s3.6 8 8 8h40c8.8 0 16-7.2 16-16V88c0-2.1-.8-4.2-2.3-5.7zm-53.7-31L188.7 80H160V51.3z`}),/* @__PURE__ */ e(`path`,{d:`M124.6 194.5h-6.8v-27.3h6.8c1.9 0 3.4-1.5 3.4-3.4s-1.5-3.4-3.4-3.4h-6.8v-10.2c0-3.8-3.1-6.8-6.8-6.8H63.3c-3.8 0-6.8 3.1-6.8 6.8v10.2h-6.8c-1.9 0-3.4 1.5-3.4 3.4s1.5 3.4 3.4 3.4h6.8v27.3h-6.8c-1.9 0-3.4 1.5-3.4 3.4s1.5 3.4 3.4 3.4h6.8v23.9c0 3.8 3.1 6.8 6.8 6.8H111c3.8 0 6.8-3.1 6.8-6.8v-23.9h6.8c1.9 0 3.4-1.5 3.4-3.4s-1.5-3.4-3.4-3.4zm-37.5-11.9c-6.6 0-11.9-5.3-11.9-11.9s5.3-11.9 11.9-11.9S99 164.1 99 170.7s-5.3 11.9-11.9 11.9zm0 10.2c6.6 0 11.9 5.3 11.9 11.9s-5.3 11.9-11.9 11.9-11.9-5.3-11.9-11.9 5.3-11.9 11.9-11.9z`})]})}export{n as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{t as e}from"./SortAscending-CEk4rgu_.js";import{t}from"./SortDescending-C0cE7hpU.js";import{i as n}from"./sorting-CvDpql3O.js";import{jsx as r}from"react/jsx-runtime";const i=({mode:i,direction:a,...o})=>{switch(i){case`alphanumeric`:switch(a){case`asc`:return/* @__PURE__ */ r(e,{...o,weight:`regular`});case`desc`:return/* @__PURE__ */ r(t,{...o,weight:`regular`});default:throw Error(`Invalid alphanumeric sorting direction given: "${String(a)}"`)}case`time`:switch(n(a)){case`oldest-to-newest`:return/* @__PURE__ */ r(t,{...o,weight:`regular`});case`newest-to-oldest`:return/* @__PURE__ */ r(e,{...o,weight:`regular`});default:throw Error(`Invalid time sorting direction given: "${a}"`)}}};export{i as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{t as e}from"./Desktop-BaSlSeg2.js";import{t}from"./Moon-hn_oivM6.js";import{t as n}from"./Sun-C3SaXdLl.js";import{i as r}from"./theme-D6rP5Fy8.js";import{jsx as i}from"react/jsx-runtime";function a(e){let t=r();return/* @__PURE__ */ i(o,{theme:t,...e})}function o({theme:r,...a}){switch(r){case`system`:return/* @__PURE__ */ i(e,{...a,weight:`regular`});case`light`:return/* @__PURE__ */ i(n,{...a,weight:`regular`});case`dark`:return/* @__PURE__ */ i(t,{...a,weight:`regular`})}}export{o as n,a as t};
|
package/dist/icons.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Re-exports for the Icons component
|
|
2
|
+
* Re-exports for the Icons component: the ngrok-specific icons that
|
|
3
3
|
* `@phosphor-icons/react` does not ship.
|
|
4
4
|
*
|
|
5
5
|
* @useWhen Show an ngrok glyph that `@phosphor-icons/react` does not ship, such as the ngrok
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* @see https://mantle.ngrok.com/components/data-display/icons
|
|
12
12
|
*/
|
|
13
13
|
import { a as AlphanumericSortingDirection, c as TimeSortingDirection, o as SortingDirection, s as SortingMode } from "./direction-CpRzTtZh.js";
|
|
14
|
-
import { t as SvgAttributes } from "./icon
|
|
14
|
+
import { t as SvgAttributes } from "./icon--purqHRo.js";
|
|
15
15
|
import { i as Theme } from "./theme-w1CrMM-x.js";
|
|
16
16
|
import { ComponentProps } from "react";
|
|
17
17
|
type Props = SvgAttributes & ({
|
package/dist/icons.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./icons-
|
|
1
|
+
import{t as e}from"./icons-D_4cZaL1.js";import{t}from"./icons-CVgj9Whd.js";import{n,t as r}from"./icons-DucrvIOa.js";import{jsx as i}from"react/jsx-runtime";function a(e){return/* @__PURE__ */ i(`svg`,{fill:`currentColor`,height:`1em`,viewBox:`0 0 94 36`,width:`2.61em`,...e,children:/* @__PURE__ */ i(`path`,{d:`M32.272 12.011c-1.298-1.466-2.904-2.205-4.812-2.205-1.176 0-2.26.233-3.255.7a7.995 7.995 0 0 0-2.581 1.906 9.205 9.205 0 0 0-1.715 2.853 9.773 9.773 0 0 0-.628 3.546c0 1.25.194 2.39.58 3.419.362.98.918 1.877 1.635 2.636A7.543 7.543 0 0 0 24 26.584c.965.41 2.025.617 3.176.617.522 0 1.005-.041 1.445-.116.439-.075.858-.2 1.26-.37.4-.175.79-.398 1.18-.664.385-.27.792-.612 1.21-1.018v4.353h-.005v.421h-5.33l-4.005 4.64v.798h15.037v-24.98h-5.697v1.746Zm-.014 7.979a4.25 4.25 0 0 1-.786 1.215 3.555 3.555 0 0 1-2.592 1.1 3.627 3.627 0 0 1-1.464-.292 3.508 3.508 0 0 1-1.166-.808 3.93 3.93 0 0 1-1.054-2.72c0-.519.097-1.006.298-1.457a3.77 3.77 0 0 1 .804-1.181 4.114 4.114 0 0 1 1.162-.808 3.484 3.484 0 0 1 2.817-.016c.448.19.844.463 1.181.81.336.347.6.743.804 1.194.202.452.298.95.298 1.493 0 .505-.104 1.005-.302 1.47m-16.261-7.708a6.173 6.173 0 0 0-2.06-1.602 4.875 4.875 0 0 0-.57-.22 6.383 6.383 0 0 0-.923-.216H8.383L5.697 13.39v-3.082H.002v16.61h5.695V15.712h5.35l.444-.01v11.214h5.697V16.528c0-.885-.084-1.674-.25-2.366a4.655 4.655 0 0 0-.941-1.877zm38.367-2.018h-6.213l-2.47 2.863v-2.864h-5.7v16.61h5.71l.004-11.117h4.144l4.526-5.26zm31.051 7.672 7.79-7.392v-.281H85.7l-5.975 5.991V0h-5.696v26.87h5.696v-6.766l6.262 6.763h7.663v-.316l-8.233-8.617zm-16.11-5.78a9.436 9.436 0 0 0-3.085-1.842 10.953 10.953 0 0 0-3.855-.664c-1.407 0-2.705.226-3.884.678a9.611 9.611 0 0 0-3.072 1.858 8.488 8.488 0 0 0-2.016 2.788 8.281 8.281 0 0 0-.722 3.449c0 1.362.24 2.596.722 3.707a8.52 8.52 0 0 0 2.002 2.862c.85.798 1.86 1.415 3.036 1.847 1.177.432 2.455.647 3.842.647 1.406 0 2.707-.215 3.919-.647 1.204-.431 2.24-1.04 3.098-1.833a8.583 8.583 0 0 0 2.031-2.816c.493-1.09.742-2.29.742-3.611 0-1.316-.244-2.52-.722-3.612a8.424 8.424 0 0 0-2.035-2.81Zm-3.558 7.864c-.2.461-.463.869-.786 1.215a3.573 3.573 0 0 1-2.592 1.1c-.502 0-.981-.096-1.434-.291a3.44 3.44 0 0 1-1.16-.809 4.155 4.155 0 0 1-.788-1.215 3.825 3.825 0 0 1-.297-1.537c0-.517.098-1.004.297-1.456.201-.451.46-.849.787-1.194a3.579 3.579 0 0 1 2.597-1.1c.502 0 .98.096 1.43.29.448.19.839.461 1.16.81.328.345.586.752.786 1.214.2.461.297.954.297 1.471 0 .538-.096 1.04-.297 1.502`})})}function o(e){return/* @__PURE__ */ i(`svg`,{fill:`currentColor`,height:`1em`,viewBox:`0 0 32 32`,width:`1em`,...e,children:/* @__PURE__ */ i(`path`,{d:`M27.2 6.18a9.47 9.47 0 0 0-3.12-2.5A9.42 9.42 0 0 0 21.82 3h-6.14l-4.06 4.9V3.1H3V29h8.62V11.53h8.09l.67-.02v17.48H29V12.8c0-1.37-.13-2.6-.38-3.68a7.35 7.35 0 0 0-1.42-2.93Z`})})}export{r as AutoThemeIcon,o as NgrokLettermarkIcon,a as NgrokWordmarkIcon,e as SortIcon,n as ThemeIcon,t as TrafficPolicyFileIcon};
|
|
@@ -5,9 +5,10 @@ import { Ref, RefCallback } from "react";
|
|
|
5
5
|
* browsers.
|
|
6
6
|
*
|
|
7
7
|
* Throws when called outside a DOM environment, or when both the Clipboard
|
|
8
|
-
* API and the polyfill fail
|
|
8
|
+
* API and the polyfill fail. `await` the call to observe success.
|
|
9
9
|
*/
|
|
10
10
|
declare function copyToClipboard(value: string): Promise<void>;
|
|
11
|
+
/** A ref that a part may receive: a callback ref, a ref object, or none. */
|
|
11
12
|
type PossibleRef<T> = Ref<T> | undefined;
|
|
12
13
|
/**
|
|
13
14
|
* A utility that composes multiple refs into a single callback ref. Accepts
|
|
@@ -20,7 +21,7 @@ type PossibleRef<T> = Ref<T> | undefined;
|
|
|
20
21
|
* If no inner ref returns a cleanup, the composed ref returns `undefined`
|
|
21
22
|
* and React calls it again with `null` on unmount (legacy behavior).
|
|
22
23
|
*
|
|
23
|
-
* Prefer {@link useComposedRefs} inside components
|
|
24
|
+
* Prefer {@link useComposedRefs} inside components: it keeps a stable
|
|
24
25
|
* function identity across renders.
|
|
25
26
|
*
|
|
26
27
|
* @example
|
|
@@ -28,26 +29,6 @@ type PossibleRef<T> = Ref<T> | undefined;
|
|
|
28
29
|
* return <input ref={setRefs} />;
|
|
29
30
|
*/
|
|
30
31
|
declare function composeRefs<T>(...refs: PossibleRef<T>[]): RefCallback<T>;
|
|
31
|
-
/**
|
|
32
|
-
* A custom hook that composes up to three refs into a single callback ref.
|
|
33
|
-
* Accepts callback refs and RefObject(s). The callback keeps one identity
|
|
34
|
-
* while the refs it composes keep theirs, so React attaches it once per
|
|
35
|
-
* mount. If you pass a new ref on a later render, React detaches the old
|
|
36
|
-
* callback and attaches the new one, so the new ref receives the node at
|
|
37
|
-
* once. A consumer callback ref fires once per mount when the consumer
|
|
38
|
-
* passes the same function each render, and on every render when the
|
|
39
|
-
* consumer passes a new function, as it does on a plain element. Any
|
|
40
|
-
* cleanup the composed ref returns targets the refs it composed (see
|
|
41
|
-
* {@link composeRefs} for the cleanup propagation contract).
|
|
42
|
-
*
|
|
43
|
-
* @example
|
|
44
|
-
* function MyInput({ ref, ...props }: ComponentProps<"input">) {
|
|
45
|
-
* const internalRef = useRef<HTMLInputElement>(null);
|
|
46
|
-
* const composedRef = useComposedRefs(internalRef, ref);
|
|
47
|
-
* return <input ref={composedRef} {...props} />;
|
|
48
|
-
* }
|
|
49
|
-
*/
|
|
50
|
-
declare function useComposedRefs<T>(firstRef: PossibleRef<T>, secondRef: PossibleRef<T>, thirdRef?: PossibleRef<T>): RefCallback<T>;
|
|
51
32
|
type MarginValue = `${number}${"px" | "%"}`;
|
|
52
33
|
/**
|
|
53
34
|
* Margin string used to expand or contract the intersection root's bounding box.
|
|
@@ -110,4 +91,4 @@ type ViewChangeHandler = (entry: IntersectionObserverEntry) => void;
|
|
|
110
91
|
* stop();
|
|
111
92
|
*/
|
|
112
93
|
declare function inView(element: Element, onStart: (element: Element, entry: IntersectionObserverEntry) => void | ViewChangeHandler, { root, margin: rootMargin, amount }?: InViewOptions): VoidFunction;
|
|
113
|
-
export {
|
|
94
|
+
export { PossibleRef as a, inView as i, MarginType as n, composeRefs as o, ViewChangeHandler as r, copyToClipboard as s, InViewOptions as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./as-child-DFxX3U2i.js";
|
|
2
2
|
import "./with-style-props-CuT30s0W.js";
|
|
3
|
-
import { CSSProperties } from "react";
|
|
4
3
|
import { VariantProps as VariantProps$1 } from "class-variance-authority";
|
|
4
|
+
import { CSSProperties } from "react";
|
|
5
5
|
type Booleanish = boolean | "true" | "false";
|
|
6
6
|
/**
|
|
7
7
|
* Parse/coerce a booleanish value (boolean | "true" | "false") into a boolean.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{t as e}from"./CheckCircle-Bi4tSau6.js";import{t}from"./Warning-DTwF27_O.js";import{t as n}from"./WarningDiamond-BwpdVJ34.js";import{createContext as r,useContext as i,useMemo as a,useRef as o}from"react";import{t as s}from"./types-BfvnW6vy.js";import{t as c}from"./compose-refs-Ce1vWUz0.js";import{t as l}from"./cx-DhYnQ07J.js";import{n as u}from"./cx-CfAFHj5_.js";import{t as d}from"./utils-EM6s2WEU.js";import{n as f}from"./field-BRYypbjO.js";import{n as p}from"./field-CYAaNexp.js";import{t as m}from"./icon-BSGMvJ0W.js";import{jsx as h,jsxs as g}from"react/jsx-runtime";const _=({children:e,className:t,ref:n,...r})=>{let i=!!e,a=o(null);return i?/* @__PURE__ */ h(b,{className:t,forwardedRef:n,innerRef:a,...r,children:e}):/* @__PURE__ */ h(b,{...r,className:t,forwardedRef:n,innerRef:a,children:/* @__PURE__ */ h(v,{...r})})},v=({"aria-invalid":e,"data-slot":t,className:n,ref:r,validation:a,...o})=>{let{"aria-invalid":s,forwardedRef:l,innerRef:m,validation:g,..._}=i(y),v=p(),{ariaInvalid:b,validation:x}=f({"aria-invalid":s??e,validation:g??a??v}),S={..._,...o,type:o.type??_.type??`text`},C=c(r,l,m);return/* @__PURE__ */ h(`input`,{"aria-invalid":b,"data-slot":d(t,`input-capture`),"data-validation":x,className:u(`placeholder:text-placeholder min-w-0 flex-1 bg-transparent text-left autofill:shadow-[inset_0_0_0px_1000px_var(--color-blue-50)] focus:outline-hidden`,n),ref:C,...S})},y=r({validation:void 0,innerRef:{current:null}}),b=({"aria-invalid":e,"aria-disabled":t,"data-slot":n,children:r,className:i,disabled:o,forwardedRef:c,innerRef:l,style:m,type:_,validation:v,...b})=>{let S=p(),{validation:C}=f({"aria-invalid":e,validation:v??S}),w=a(()=>({"aria-invalid":e,"aria-disabled":t,disabled:o,type:_,validation:v,...b,forwardedRef:c,innerRef:l}),[e,t,o,_,v,b,c,l]);return/* @__PURE__ */ h(y.Provider,{value:w,children:/* @__PURE__ */ g(`div`,{role:`none`,"data-slot":d(n,`input`),"data-disabled":s(o??t)?``:void 0,"data-validation":C||void 0,className:u(`pointer-coarse:text-base h-9 text-sm bg-form relative flex w-full items-center gap-1.5 rounded-md border px-3 py-2 file:border-0 file:bg-transparent file:text-sm file:font-medium data-disabled:opacity-50 has-[input:not(:first-child)]:ps-2.5 has-[input:not(:last-child)]:pe-2.5 [&>:not(input)]:shrink-0 [&_svg]:size-5 border-form text-strong focus-within:border-accent-600 focus-within:focus-ring data-[validation=success]:border-success-600 focus-within:data-[validation=success]:border-success-600 focus-within:data-[validation=success]:ring-focus-success data-[validation=warning]:border-warning-600 focus-within:data-[validation=warning]:border-warning-600 focus-within:data-[validation=warning]:ring-focus-warning data-[validation=error]:border-danger-600 focus-within:data-[validation=error]:border-danger-600 focus-within:data-[validation=error]:ring-focus-danger motion-safe:data-[validation=error]:animate-shake has-[>[data-validation=error]]:border-danger-600 focus-within:has-[>[data-validation=error]]:border-danger-600 focus-within:has-[>[data-validation=error]]:ring-focus-danger motion-safe:has-[>[data-validation=error]]:animate-shake autofill:shadow-[inset_0_0_0px_1000px_var(--color-blue-50)] has-autofill:bg-blue-50 has-autofill:[-webkit-text-fill-color:var(--text-color-strong)]`,i),onMouseDown:e=>{e.target!==l?.current&&e.preventDefault()},onClick:e=>{let t=l.current;t!=null&&e.detail!==0&&t.focus()},style:m,children:[r,/* @__PURE__ */ h(x,{name:b.name,validation:C})]})})},x=({name:r,validation:i})=>{switch(i){case`error`:return/* @__PURE__ */ g(`div`,{className:`text-danger-600 order-last select-none`,children:[/* @__PURE__ */ h(`span`,{className:`sr-only`,children:l(`The value entered for the`,r,`input has failed validation.`)}),/* @__PURE__ */ h(m,{svg:/* @__PURE__ */ h(t,{"aria-hidden":!0,weight:`fill`})})]});case`success`:return/* @__PURE__ */ h(`div`,{className:`text-success-600 order-last select-none`,children:/* @__PURE__ */ h(m,{svg:/* @__PURE__ */ h(e,{weight:`fill`})})});case`warning`:return/* @__PURE__ */ h(`div`,{className:`text-warning-600 order-last select-none`,children:/* @__PURE__ */ h(m,{svg:/* @__PURE__ */ h(n,{weight:`fill`})})});default:return null}};export{v as n,_ as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{t as e}from"./Eye-C38LQkZ_.js";import{t}from"./EyeClosed-BvOq-W8o.js";import{useId as n,useRef as r,useState as i}from"react";import{t as a}from"./hooks-DejuqCNF.js";import{t as o}from"./hooks-CMmpICCH.js";import{t as s}from"./icon-BSGMvJ0W.js";import{n as c,t as l}from"./input-83xaPZWK.js";import{t as u}from"./utils-EM6s2WEU.js";import{jsx as d,jsxs as f}from"react/jsx-runtime";const p=({"data-slot":p,disabled:m,id:h,onValueVisibilityChange:g,ref:_,showValue:v,...y})=>{let b=n(),x=h??b,S=v!=null,[C,w]=i(!1),T=S?v:C,E=T?`text`:`password`,D=T?e:t,O=r(null),k=r(T);return a(()=>{if(k.current===T)return;k.current=T;let e=O.current;e==null||o()||e.animate([{scale:`1 0.5`},{scale:`1`}],{duration:200,easing:`cubic-bezier(0.23, 1, 0.32, 1)`})},[T]),/* @__PURE__ */ f(l,{"data-slot":u(p,`password-input`),disabled:m,id:x,type:E,ref:_,...y,children:[/* @__PURE__ */ d(c,{}),/* @__PURE__ */ d(`button`,{type:`button`,disabled:m,"data-slot":`password-input-toggle`,"aria-label":`Show value`,"aria-pressed":T,"aria-controls":x,className:`text-body hover:text-strong focus-visible:focus-ring ml-1 cursor-pointer rounded-xs bg-inherit p-0 focus-visible:ring-2`,onClick:()=>{let e=!T;S||w(e),g?.(e)},children:/* @__PURE__ */ d(s,{ref:O,svg:/* @__PURE__ */ d(D,{"aria-hidden":!0})})})]})};export{p as t};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
|
|
2
|
-
import { o as WithValidation } from "./field-BshcNVe_.js";
|
|
3
1
|
import { ComponentProps, PropsWithChildren } from "react";
|
|
2
|
+
import { t as WithDataSlot } from "./data-slot-BW8KQ9Xo.js";
|
|
3
|
+
import { o as WithValidation } from "./field-BshcNVe_.js";
|
|
4
4
|
/**
|
|
5
5
|
* (Not a Boolean attribute!) The autocomplete attribute takes as its value a space-separated string that describes what,
|
|
6
6
|
* if any, type of autocomplete functionality the input should provide. A typical implementation of autocomplete recalls
|
package/dist/input.d.ts
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* @see https://mantle.ngrok.com/components/forms/input
|
|
5
5
|
* @see https://mantle.ngrok.com/components/forms/password-input
|
|
6
6
|
*/
|
|
7
|
-
import { a as AutoComplete, c as WithInputType, i as InputProps, n as InputCapture, o as InputType, r as InputCaptureProps, s as WithAutoComplete, t as Input } from "./input-
|
|
8
|
-
import { o as WithValidation, r as Validation } from "./field-BshcNVe_.js";
|
|
9
|
-
import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
|
|
7
|
+
import { a as AutoComplete, c as WithInputType, i as InputProps, n as InputCapture, o as InputType, r as InputCaptureProps, s as WithAutoComplete, t as Input } from "./input-Bvpu3ruQ.js";
|
|
10
8
|
import { ComponentProps } from "react";
|
|
9
|
+
import { o as WithValidation, r as Validation } from "./field-BshcNVe_.js";
|
|
10
|
+
import { t as WithDataSlot } from "./data-slot-BW8KQ9Xo.js";
|
|
11
11
|
/**
|
|
12
12
|
* The props for the `PasswordInput` component.
|
|
13
13
|
*/
|
|
@@ -81,7 +81,7 @@ type PasswordInputProps = Omit<ComponentProps<"input">, "autoComplete" | "type">
|
|
|
81
81
|
* import { Label } from "@ngrok/mantle/label";
|
|
82
82
|
* import { useState } from "react";
|
|
83
83
|
*
|
|
84
|
-
* // Basic
|
|
84
|
+
* // Basic: uncontrolled visibility.
|
|
85
85
|
* <Label className="grid gap-1">
|
|
86
86
|
* <span>Password</span>
|
|
87
87
|
* <PasswordInput name="password" autoComplete="current-password" />
|
|
@@ -90,7 +90,7 @@ type PasswordInputProps = Omit<ComponentProps<"input">, "autoComplete" | "type">
|
|
|
90
90
|
* // Validation state.
|
|
91
91
|
* <PasswordInput validation="error" />
|
|
92
92
|
*
|
|
93
|
-
* // Controlled visibility
|
|
93
|
+
* // Controlled visibility: one toggle reveals multiple fields.
|
|
94
94
|
* function PasswordPair() {
|
|
95
95
|
* const [show, setShow] = useState(false);
|
|
96
96
|
* return (
|
package/dist/input.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,t}from"./input-
|
|
1
|
+
import{n as e,t}from"./input-83xaPZWK.js";import{t as n}from"./input-B78ah4AB.js";import{t as r}from"./input-BjCDSOPA.js";function i(e){return typeof HTMLInputElement<`u`&&e instanceof HTMLInputElement}export{t as Input,e as InputCapture,n as PasswordInput,i as isInput,r as passwordManagerIgnoreProps};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./cx-CfAFHj5_.js";import{t}from"./utils-EM6s2WEU.js";import{jsx as n}from"react/jsx-runtime";function r({"data-slot":r,children:i,className:a,...o}){return/* @__PURE__ */ n(`kbd`,{"data-slot":t(r,`kbd`),className:e(`[font-kerning:normal] [font-variant-ligatures:common-ligatures_contextual] appearance-none tabular-nums inline-grid place-items-center size-5 bg-neutral-500/15 px-1 rounded text-mono leading-none font-mono`,a),...o,translate:`no`,children:i})}export{r as t};
|
package/dist/kbd.d.ts
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @see https://mantle.ngrok.com/components/data-display/kbd
|
|
5
5
|
*/
|
|
6
|
-
import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
|
|
7
6
|
import { ComponentProps } from "react";
|
|
7
|
+
import { t as WithDataSlot } from "./data-slot-BW8KQ9Xo.js";
|
|
8
8
|
/**
|
|
9
|
-
* A square, centered keyboard "key" chip for rendering shortcut hints
|
|
9
|
+
* A square, centered keyboard "key" chip for rendering shortcut hints:
|
|
10
10
|
* "K", "⌘", "⌃", "Enter". Renders a native `<kbd>` element so screen
|
|
11
11
|
* readers announce it as keyboard input. Sized so letters and modifier
|
|
12
12
|
* symbols share a consistent visual height, width, and baseline.
|
|
@@ -17,8 +17,8 @@ import { ComponentProps } from "react";
|
|
|
17
17
|
* - Inline with prose: "Press `Kbd K` to open search."
|
|
18
18
|
*
|
|
19
19
|
* **When not to use**
|
|
20
|
-
* - For arbitrary monospace text
|
|
21
|
-
* - For chord-style multi-key shortcuts as a single chip
|
|
20
|
+
* - For arbitrary monospace text, use {@link https://mantle.ngrok.com/components/data-display/code Code}.
|
|
21
|
+
* - For chord-style multi-key shortcuts as a single chip, render multiple
|
|
22
22
|
* `<Kbd>` elements separated by `+` text instead.
|
|
23
23
|
*
|
|
24
24
|
* **Accessibility.** Symbol-only glyphs (`⌘`, `⌃`, `↵`) are not announced
|
|
@@ -55,7 +55,7 @@ import { ComponentProps } from "react";
|
|
|
55
55
|
* <span aria-hidden>↵</span>
|
|
56
56
|
* </Kbd>
|
|
57
57
|
*
|
|
58
|
-
* // Chord
|
|
58
|
+
* // Chord: render each key separately.
|
|
59
59
|
* <span className="inline-flex items-center gap-1">
|
|
60
60
|
* <Kbd>
|
|
61
61
|
* <span className="sr-only">Command</span>
|
package/dist/kbd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{t as Kbd}from"./kbd-
|
|
1
|
+
export{t as Kbd}from"./kbd-Bz_Rbpv8.js";
|