@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/hover-card.d.ts
CHANGED
|
@@ -3,142 +3,7 @@
|
|
|
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";
|
|
9
|
-
/**
|
|
10
|
-
* 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
|
-
*
|
|
13
|
-
* `HoverCard.Content` renders at Tailwind `z-50`, Mantle's float tier. When
|
|
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, onEscapeKeyDown, 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;
|
|
6
|
+
import * as HoverCardParts from "./hover-card-parts.js";
|
|
142
7
|
/**
|
|
143
8
|
* A floating card that appears when a user hovers over a trigger element.
|
|
144
9
|
*
|
|
@@ -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";
|
|
@@ -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 { ReactNode } from "react";
|
|
1
2
|
import { t as WithDataSlot } from "./data-slot-BW8KQ9Xo.js";
|
|
2
3
|
import { t as SvgAttributes } from "./icon--purqHRo.js";
|
|
3
|
-
import { ReactNode } from "react";
|
|
4
4
|
type SvgOnlyProps = Omit<SvgAttributes, "children"> & {
|
|
5
5
|
/**
|
|
6
6
|
* A single SVG icon element.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
1
2
|
import { t as WithDataSlot } from "./data-slot-BW8KQ9Xo.js";
|
|
2
3
|
import { t as SvgAttributes } from "./icon--purqHRo.js";
|
|
3
|
-
import { ReactNode } from "react";
|
|
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-
|
|
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
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.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
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};
|
|
@@ -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 { ComponentProps, PropsWithChildren } from "react";
|
|
1
2
|
import { t as WithDataSlot } from "./data-slot-BW8KQ9Xo.js";
|
|
2
3
|
import { o as WithValidation } from "./field-BshcNVe_.js";
|
|
3
|
-
import { ComponentProps, PropsWithChildren } from "react";
|
|
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-
|
|
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";
|
|
8
|
+
import { ComponentProps } from "react";
|
|
8
9
|
import { o as WithValidation, r as Validation } from "./field-BshcNVe_.js";
|
|
9
10
|
import { t as WithDataSlot } from "./data-slot-BW8KQ9Xo.js";
|
|
10
|
-
import { ComponentProps } from "react";
|
|
11
11
|
/**
|
|
12
12
|
* The props for the `PasswordInput` component.
|
|
13
13
|
*/
|
package/dist/input.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
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,8 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @see https://mantle.ngrok.com/components/data-display/kbd
|
|
5
5
|
*/
|
|
6
|
-
import { t as WithDataSlot } from "./data-slot-BW8KQ9Xo.js";
|
|
7
6
|
import { ComponentProps } from "react";
|
|
7
|
+
import { t as WithDataSlot } from "./data-slot-BW8KQ9Xo.js";
|
|
8
8
|
/**
|
|
9
9
|
* A square, centered keyboard "key" chip for rendering shortcut hints:
|
|
10
10
|
* "K", "⌘", "⌃", "Enter". Renders a native `<kbd>` element so screen
|
package/dist/kbd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{t as Kbd}from"./kbd-
|
|
1
|
+
export{t as Kbd}from"./kbd-Bz_Rbpv8.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./types-BfvnW6vy.js";import{n as t}from"./cx-CfAFHj5_.js";import{t as n}from"./utils-EM6s2WEU.js";import{jsx as r}from"react/jsx-runtime";const i=({"data-slot":i,"aria-disabled":a,children:o,className:s,disabled:c,onMouseDown:l,ref:u,...d})=>/* @__PURE__ */ r(`label`,{"data-disabled":e(c??a)?``:void 0,"data-slot":n(i,`label`),className:t(`text-strong cursor-pointer text-sm peer-disabled:cursor-default has-disabled:cursor-default data-disabled:cursor-default font-sans [:where(&:not(:has(input,textarea,select,button,[contenteditable])))]:font-medium`,s),onMouseDown:e=>{e.target instanceof Element&&e.target.closest(`button, input, select, textarea`)||(l?.(e),!e.defaultPrevented&&e.detail>1&&e.preventDefault())},ref:u,...d,children:o});export{i as t};
|
package/dist/label.d.ts
CHANGED
package/dist/label.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{t as Label}from"./label-
|
|
1
|
+
export{t as Label}from"./label-DmkAp9xI.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{createContext as e,useContext as t,useLayoutEffect as n,useState as r,useSyncExternalStore as i}from"react";import{t as a}from"./compose-refs-Ce1vWUz0.js";import{jsx as o}from"react/jsx-runtime";const s=e(null),c=e(!1);function l(){return n(T,[]),t(s)}function u(){return t(c)}function d({active:e=!0,children:n,modal:i=!0,ref:l,...d}){let[f,p]=r(null),m=a(l,p),h=u(),g=t(s);return/* @__PURE__ */ o(`div`,{ref:m,...d,children:/* @__PURE__ */ o(c.Provider,{value:h||e&&i,children:/* @__PURE__ */ o(s.Provider,{value:e?f:g,children:n})})})}const f=[],p=/* @__PURE__ */ new Set;function m(e){return p.add(e),()=>{p.delete(e)}}function h(e){f.push(e);for(let e of p)e();return()=>{f.splice(f.indexOf(e),1);for(let e of p)e()}}function g(e,t){return i(m,()=>{let n=f.at(-1);return n!=null&&_(n,e)&&t.current?.contains(n.container)!==!0},()=>!1)}function _(e,t){return t==null||!e.container.contains(t)}function v(){let e=f.at(-1);if(e==null)return null;let{ownerDocument:t}=e.content;if(typeof t.elementFromPoint!=`function`)return null;let{clientHeight:n,clientWidth:r}=t.documentElement,i=t.elementFromPoint(r/2,n/2),a=i?.closest(`body > *`);return!(i instanceof HTMLIFrameElement)||a==null||i.closest(`[data-mantle-modal-content], .overlay-prompt`)!=null||f.some(e=>a.contains(e.container))?null:y(a)>=y(e.container)?i:null}function y(e){let{position:t,zIndex:n}=getComputedStyle(e);return t===`static`?NaN:Number.parseInt(n,10)}function b(e){return e instanceof Node&&f.at(-1)?.container.contains(e)?null:v()?.closest(`body > *`)??null}function x(e){let t=e.type===`focusin`?e.target:e.relatedTarget,n=b(t);n!=null&&(n.removeAttribute(`aria-hidden`),t instanceof Node&&n.contains(t)&&e.stopImmediatePropagation())}const S=/* @__PURE__ */ new WeakSet;function C(e){let t=b(e.target);e.target instanceof Node&&t?.contains(e.target)&&S.add(e)}function w(e){S.has(e)&&e.stopImmediatePropagation()}function T(){document.addEventListener(`focusin`,x),document.addEventListener(`focusout`,x),document.addEventListener(`pointerdown`,C,!0),document.addEventListener(`pointerdown`,w)}export{g as a,h as i,s as n,l as o,v as r,d as t};
|
|
@@ -51,7 +51,15 @@ declare function useLayerContainer(): Element | DocumentFragment | null;
|
|
|
51
51
|
* </Portal>
|
|
52
52
|
* ```
|
|
53
53
|
*/
|
|
54
|
-
declare function LayerContainer({ children, modal, ref, ...props }: ComponentProps<"div"> & {
|
|
54
|
+
declare function LayerContainer({ active, children, modal, ref, ...props }: ComponentProps<"div"> & {
|
|
55
|
+
/**
|
|
56
|
+
* Whether floats inside portal into this layer. Pass `false` while the
|
|
57
|
+
* layer is not in the top layer, such as a closed `<dialog>` that CSS shows
|
|
58
|
+
* in the page. Its floats then portal as if the layer were not there, and
|
|
59
|
+
* the subtree does not remount when the value changes.
|
|
60
|
+
* @default true
|
|
61
|
+
*/
|
|
62
|
+
active?: boolean;
|
|
55
63
|
/**
|
|
56
64
|
* Whether the layer belongs to a modal overlay that locks body scroll.
|
|
57
65
|
* A non-modal layer inside a modal one stays modal.
|
package/dist/layer-container.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{t as LayerContainer,n as LayerContainerContext,
|
|
1
|
+
export{t as LayerContainer,n as LayerContainerContext,o as useLayerContainer}from"./layer-container-DDOZJ0fn.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{t as e}from"./chart-CBQJUTIX.js";import{a as t,c as n,i as r,l as i,n as a,o,s,t as c,u as l}from"./chart-B0n2xyYi.js";import{t as u}from"./chart-BPsMxs1f.js";import{jsx as d}from"react/jsx-runtime";const f=e=>/* @__PURE__ */ d(c,{kind:`line`,componentName:`LineChart`,slotName:`line-chart`,paintBackend:u,...e}),p=e=>o(`LineChart.Line`,`line`,e),m=e=>r(`LineChart.Grid`,e),h=e=>s(`LineChart.XAxis`,e),g=e=>n(`LineChart.YAxis`,e),_=e=>t(`LineChart.ReferenceLine`,e),v=e=>a(`LineChart.Tooltip`,e),y=e=>/* @__PURE__ */ d(l,{partName:`LineChart.Legend`,slotName:`line-chart`,...e}),b=t=>/* @__PURE__ */ d(e,{partName:`LineChart.CopyButton`,slotName:`line-chart`,...t}),x=e=>/* @__PURE__ */ d(i,{slotName:`line-chart-list`,...e});export{x as a,v as c,p as i,h as l,m as n,_ as o,y as r,f as s,b as t,g as u};
|