@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/multi-select.d.ts
CHANGED
|
@@ -3,461 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @see https://mantle.ngrok.com/components/forms/multi-select
|
|
5
5
|
*/
|
|
6
|
-
import
|
|
7
|
-
import { t as WithDataSlot } from "./data-slot-BW8KQ9Xo.js";
|
|
8
|
-
import { o as WithValidation } from "./field-BshcNVe_.js";
|
|
9
|
-
import { n as Separator } from "./separator-Ck4sPrdN.js";
|
|
10
|
-
import { ComponentProps, ReactNode } from "react";
|
|
11
|
-
import { ComboboxGroupLabelProps, ComboboxGroupProps, ComboboxItemProps, ComboboxPopoverProps, ComboboxProps, ComboboxProviderProps } from "@ariakit/react/combobox";
|
|
12
|
-
type MultiSelectProps = ComboboxProviderProps<string[]>;
|
|
13
|
-
/**
|
|
14
|
-
* Root component for a multi-select combobox. Owns the selected values and the
|
|
15
|
-
* typeahead query.
|
|
16
|
-
*
|
|
17
|
-
* Use MultiSelect when the user can choose multiple values from a list, with selected
|
|
18
|
-
* items rendered as removable tags/chips. For single selection, use Combobox (with search)
|
|
19
|
-
* or Select (without).
|
|
20
|
-
*
|
|
21
|
-
* When composing with `Field.Item`, wrap `MultiSelect.Root` in `Field.Control`.
|
|
22
|
-
* `Field.Control` flows the generated `id`, `aria-describedby`,
|
|
23
|
-
* `aria-errormessage`, and `aria-invalid` through to the focusable
|
|
24
|
-
* `MultiSelect.Input` via `FieldControlContext`. The field `name` flows through
|
|
25
|
-
* too, but lands on one hidden input per selected value rather than on the
|
|
26
|
-
* combobox input, so a native form submit sends the selected values, not the
|
|
27
|
-
* typeahead filter text.
|
|
28
|
-
*
|
|
29
|
-
* `MultiSelect.Content` renders at Tailwind `z-50` and portals into the closest
|
|
30
|
-
* `data-mantle-modal-content` element (an enclosing overlay's content), else
|
|
31
|
-
* the nearest overlay's positioner, else `document.body`. Inside an overlay it
|
|
32
|
-
* paints above the content that contains it. Outside one, an open overlay
|
|
33
|
-
* (`z-60`) covers it.
|
|
34
|
-
*
|
|
35
|
-
* @see https://mantle.ngrok.com/components/forms/multi-select#multiselectroot
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* ```tsx
|
|
39
|
-
* <MultiSelect.Root>
|
|
40
|
-
* <MultiSelect.Trigger>
|
|
41
|
-
* <MultiSelect.TagValues />
|
|
42
|
-
* <MultiSelect.Input placeholder="Select items..." />
|
|
43
|
-
* </MultiSelect.Trigger>
|
|
44
|
-
* <MultiSelect.Content>
|
|
45
|
-
* <MultiSelect.Item value="apple">Apple</MultiSelect.Item>
|
|
46
|
-
* <MultiSelect.Item value="banana">Banana</MultiSelect.Item>
|
|
47
|
-
* </MultiSelect.Content>
|
|
48
|
-
* </MultiSelect.Root>
|
|
49
|
-
* ```
|
|
50
|
-
*/
|
|
51
|
-
declare const Root: ({ children, defaultSelectedValue, ...props }: MultiSelectProps) => import("react").JSX.Element;
|
|
52
|
-
type MultiSelectTriggerProps = ComponentProps<"div"> & WithValidation & WithDataSlot;
|
|
53
|
-
/**
|
|
54
|
-
* The trigger container for the multi-select. Wraps the input and selected
|
|
55
|
-
* value tags in a styled container that looks like a form input. It is
|
|
56
|
-
* `role="presentation"`: the `MultiSelect.Input` combobox and the
|
|
57
|
-
* `MultiSelect.TagValues` list carry the semantics, and the input's label
|
|
58
|
-
* (`Field.Label` or `aria-label`) names the whole control.
|
|
59
|
-
*
|
|
60
|
-
* @see https://mantle.ngrok.com/components/forms/multi-select#multiselecttrigger
|
|
61
|
-
*
|
|
62
|
-
* @example
|
|
63
|
-
* ```tsx
|
|
64
|
-
* <MultiSelect.Root>
|
|
65
|
-
* <MultiSelect.Trigger>
|
|
66
|
-
* <MultiSelect.TagValues />
|
|
67
|
-
* <MultiSelect.Input placeholder="Select items..." />
|
|
68
|
-
* </MultiSelect.Trigger>
|
|
69
|
-
* <MultiSelect.Content>
|
|
70
|
-
* <MultiSelect.Item value="apple">Apple</MultiSelect.Item>
|
|
71
|
-
* </MultiSelect.Content>
|
|
72
|
-
* </MultiSelect.Root>
|
|
73
|
-
* ```
|
|
74
|
-
*/
|
|
75
|
-
declare const Trigger: ({ "data-slot": dataSlot, "aria-invalid": _ariaInvalid, className, children, onKeyDown, onMouseDown, ref, validation: _validation, ...props }: MultiSelectTriggerProps) => import("react").JSX.Element;
|
|
76
|
-
type TagProps = Omit<ComponentProps<"span">, "children"> & {
|
|
77
|
-
/**
|
|
78
|
-
* The value to display in the tag label.
|
|
79
|
-
*/
|
|
80
|
-
value: string;
|
|
81
|
-
/**
|
|
82
|
-
* Called when the remove button is clicked. `MultiSelect.TagValues` passes
|
|
83
|
-
* one through its render props that removes the value from the selection.
|
|
84
|
-
*/
|
|
85
|
-
onRemove?: () => void;
|
|
86
|
-
/**
|
|
87
|
-
* When true, the tag cannot be removed. The remove button is disabled and
|
|
88
|
-
* Delete/Backspace key presses are ignored while the tag is focused.
|
|
89
|
-
*/
|
|
90
|
-
locked?: boolean;
|
|
91
|
-
} & WithDataSlot;
|
|
92
|
-
/**
|
|
93
|
-
* The default tag rendered inside `MultiSelect.TagValues` for each selected value.
|
|
94
|
-
* Displays the value label with a remove button. Renders a `role="listitem"`
|
|
95
|
-
* inside the `role="list"` that `MultiSelect.TagValues` renders, and marks
|
|
96
|
-
* itself `data-active` while it has focus.
|
|
97
|
-
*
|
|
98
|
-
* Arrow-key navigation and Backspace/Delete removal come from the
|
|
99
|
-
* `MultiSelect.TagValues` render props; spread them onto the tag to get them.
|
|
100
|
-
* On its own, `Tag` only blocks Backspace and Delete on a locked tag.
|
|
101
|
-
*
|
|
102
|
-
* Use this when building a custom `TagValues`-like component and you want the
|
|
103
|
-
* default tag chrome with consistent styling.
|
|
104
|
-
*
|
|
105
|
-
* | Data Attribute | Value | Description |
|
|
106
|
-
* | --- | --- | --- |
|
|
107
|
-
* | `data-active` | present while focused | The tag that keyboard navigation is on. |
|
|
108
|
-
* | `data-locked` | present when `locked` | The tag cannot be removed. |
|
|
109
|
-
*
|
|
110
|
-
* @see https://mantle.ngrok.com/components/forms/multi-select#multiselecttag
|
|
111
|
-
*
|
|
112
|
-
* @example
|
|
113
|
-
* ```tsx
|
|
114
|
-
* <MultiSelect.Root>
|
|
115
|
-
* <MultiSelect.Trigger>
|
|
116
|
-
* <MultiSelect.TagValues>
|
|
117
|
-
* {(props) => <MultiSelect.Tag key={props.value} {...props} />}
|
|
118
|
-
* </MultiSelect.TagValues>
|
|
119
|
-
* <MultiSelect.Input placeholder="Select items..." />
|
|
120
|
-
* </MultiSelect.Trigger>
|
|
121
|
-
* <MultiSelect.Content>
|
|
122
|
-
* <MultiSelect.Item value="apple">Apple</MultiSelect.Item>
|
|
123
|
-
* </MultiSelect.Content>
|
|
124
|
-
* </MultiSelect.Root>
|
|
125
|
-
* ```
|
|
126
|
-
*/
|
|
127
|
-
declare const Tag: ({ "data-slot": dataSlot, className, value, onRemove, locked, onBlur, onFocus, onKeyDown, ref, ...props }: TagProps) => import("react").JSX.Element;
|
|
128
|
-
/**
|
|
129
|
-
* Props passed to the children render function of `MultiSelect.TagValues`.
|
|
130
|
-
* Spread these onto `MultiSelect.Tag` (or your own tag component) to
|
|
131
|
-
* get the value, remove handler, locked state, and ref-based keyboard-nav
|
|
132
|
-
* registration all wired up automatically.
|
|
133
|
-
*
|
|
134
|
-
* Pre-wired handlers included:
|
|
135
|
-
* - `onKeyDown`: arrow-key nav between tags, Backspace/Delete to remove
|
|
136
|
-
* - `onClick`: focuses the tag and opens the popover, or keeps it open
|
|
137
|
-
*/
|
|
138
|
-
type TagRenderProps = TagProps & {
|
|
139
|
-
/** Ref callback. Forward it to the tag element to register it for keyboard navigation between tags. */
|
|
140
|
-
ref: (node: HTMLSpanElement | null) => void;
|
|
141
|
-
};
|
|
142
|
-
type MultiSelectTagValuesProps = {
|
|
143
|
-
/**
|
|
144
|
-
* The accessible name of the tag list.
|
|
145
|
-
*
|
|
146
|
-
* @default "Selected values"
|
|
147
|
-
*/
|
|
148
|
-
"aria-label"?: string;
|
|
149
|
-
/**
|
|
150
|
-
* Values that cannot be removed. Locked tags have their remove button disabled,
|
|
151
|
-
* respond to Backspace/Delete key presses with a shake animation, and shake when
|
|
152
|
-
* Backspace is pressed on an empty input.
|
|
153
|
-
*
|
|
154
|
-
* The `locked` state is also forwarded to the render function via `props.locked`
|
|
155
|
-
* so custom tag components receive it automatically.
|
|
156
|
-
*/
|
|
157
|
-
lockedValues?: string[];
|
|
158
|
-
/**
|
|
159
|
-
* Optional render function for each tag. Receives `{ value, onRemove, locked, ref, onKeyDown, onClick }`.
|
|
160
|
-
* Spread these onto `MultiSelect.Tag` (or your own element) for full keyboard-nav support.
|
|
161
|
-
* When omitted, the default `MultiSelect.Tag` is rendered for each selected value.
|
|
162
|
-
* A custom tag must be a `role="listitem"`: the tags render inside a `role="list"`.
|
|
163
|
-
*
|
|
164
|
-
* @example
|
|
165
|
-
* ```tsx
|
|
166
|
-
* <MultiSelect.TagValues lockedValues={["global"]}>
|
|
167
|
-
* {(props) => (
|
|
168
|
-
* <MultiSelect.Tag key={props.value} {...props} />
|
|
169
|
-
* )}
|
|
170
|
-
* </MultiSelect.TagValues>
|
|
171
|
-
* ```
|
|
172
|
-
*/
|
|
173
|
-
children?: (props: TagRenderProps) => ReactNode;
|
|
174
|
-
};
|
|
175
|
-
/**
|
|
176
|
-
* Renders the selected values as removable tags. Place this inside
|
|
177
|
-
* `MultiSelect.Trigger`, followed by `MultiSelect.Input`.
|
|
178
|
-
*
|
|
179
|
-
* The tags render inside a `role="list"` named "Selected values" (override it
|
|
180
|
-
* with `aria-label`), and each default tag is a `role="listitem"`. The list
|
|
181
|
-
* uses `display: contents`, so the tags keep the trigger's flex layout.
|
|
182
|
-
*
|
|
183
|
-
* @see https://mantle.ngrok.com/components/forms/multi-select#multiselecttagvalues
|
|
184
|
-
*
|
|
185
|
-
* @example
|
|
186
|
-
* ```tsx
|
|
187
|
-
* <MultiSelect.Root>
|
|
188
|
-
* <MultiSelect.Trigger>
|
|
189
|
-
* <MultiSelect.TagValues />
|
|
190
|
-
* <MultiSelect.Input placeholder="Select items..." />
|
|
191
|
-
* </MultiSelect.Trigger>
|
|
192
|
-
* <MultiSelect.Content>
|
|
193
|
-
* <MultiSelect.Item value="apple">Apple</MultiSelect.Item>
|
|
194
|
-
* </MultiSelect.Content>
|
|
195
|
-
* </MultiSelect.Root>
|
|
196
|
-
* ```
|
|
197
|
-
*/
|
|
198
|
-
declare const TagValues: ({ "aria-label": ariaLabel, children, lockedValues }: MultiSelectTagValuesProps) => import("react").JSX.Element | null;
|
|
199
|
-
type MultiSelectInputProps = Omit<ComboboxProps, "render"> & {
|
|
200
|
-
/**
|
|
201
|
-
* Called with the raw string value whenever the input text changes.
|
|
202
|
-
* Use this to drive external filtering (e.g. with matchSorter) without
|
|
203
|
-
* having to unwrap the DOM event. A convenience alternative to `onChange`.
|
|
204
|
-
*/
|
|
205
|
-
onValueChange?: (value: string) => void;
|
|
206
|
-
} & WithDataSlot;
|
|
207
|
-
/**
|
|
208
|
-
* The combobox input for filtering items. Place this inside `MultiSelect.Trigger`,
|
|
209
|
-
* after `MultiSelect.TagValues`.
|
|
210
|
-
*
|
|
211
|
-
* `MultiSelect.Input` is the focusable element of the multi-select. When the
|
|
212
|
-
* surrounding `MultiSelect.Root` is wrapped in `Field.Control`, the generated
|
|
213
|
-
* `id`, `aria-invalid`, `aria-describedby`, and `aria-errormessage` flow onto
|
|
214
|
-
* the input here via `FieldControlContext`.
|
|
215
|
-
*
|
|
216
|
-
* A `name` (passed directly or flowed from `Field.Control`) is not set on this
|
|
217
|
-
* input. Its value is the typeahead filter text, so naming it would submit what
|
|
218
|
-
* the user typed. The name is applied to one hidden input per selected value
|
|
219
|
-
* instead, which is what a native form submit sends.
|
|
220
|
-
*
|
|
221
|
-
* @see https://mantle.ngrok.com/components/forms/multi-select#multiselectinput
|
|
222
|
-
*
|
|
223
|
-
* @example
|
|
224
|
-
* ```tsx
|
|
225
|
-
* <MultiSelect.Root>
|
|
226
|
-
* <MultiSelect.Trigger>
|
|
227
|
-
* <MultiSelect.TagValues />
|
|
228
|
-
* <MultiSelect.Input placeholder="Select items..." />
|
|
229
|
-
* </MultiSelect.Trigger>
|
|
230
|
-
* <MultiSelect.Content>
|
|
231
|
-
* <MultiSelect.Item value="apple">Apple</MultiSelect.Item>
|
|
232
|
-
* </MultiSelect.Content>
|
|
233
|
-
* </MultiSelect.Root>
|
|
234
|
-
* ```
|
|
235
|
-
*/
|
|
236
|
-
declare const Input: ({ "data-slot": dataSlot, className, onBlur, onChange, onFocus, onKeyDown, onValueChange, placeholder, ref, ...props }: MultiSelectInputProps) => import("react").JSX.Element;
|
|
237
|
-
type MultiSelectContentProps = Omit<ComboboxPopoverProps, "render"> & WithAsChild & WithDataSlot;
|
|
238
|
-
/**
|
|
239
|
-
* Renders a popover that contains multi-select content, such as items, groups,
|
|
240
|
-
* and separators. Opens below the trigger.
|
|
241
|
-
*
|
|
242
|
-
* `MultiSelect.Content` renders at Tailwind `z-50` and portals into the closest
|
|
243
|
-
* `data-mantle-modal-content` element (an enclosing overlay's content), else
|
|
244
|
-
* the nearest overlay's positioner, else `document.body`. Inside an overlay it
|
|
245
|
-
* paints above the content that contains it. Outside one, an open overlay
|
|
246
|
-
* (`z-60`) covers it.
|
|
247
|
-
*
|
|
248
|
-
* By default, mantle disables Ariakit's body scroll lock when the trigger is
|
|
249
|
-
* inside a mantle modal (`Dialog`, `Sheet`, `AlertDialog`), and enables it
|
|
250
|
-
* otherwise. The modal already locks body scroll. Pass `preventBodyScroll` to
|
|
251
|
-
* override.
|
|
252
|
-
*
|
|
253
|
-
* @see https://mantle.ngrok.com/components/forms/multi-select#multiselectcontent
|
|
254
|
-
*
|
|
255
|
-
* @example
|
|
256
|
-
* ```tsx
|
|
257
|
-
* <MultiSelect.Root>
|
|
258
|
-
* <MultiSelect.Trigger>
|
|
259
|
-
* <MultiSelect.TagValues />
|
|
260
|
-
* <MultiSelect.Input placeholder="Select items..." />
|
|
261
|
-
* </MultiSelect.Trigger>
|
|
262
|
-
* <MultiSelect.Content>
|
|
263
|
-
* <MultiSelect.Item value="apple">Apple</MultiSelect.Item>
|
|
264
|
-
* <MultiSelect.Item value="banana">Banana</MultiSelect.Item>
|
|
265
|
-
* </MultiSelect.Content>
|
|
266
|
-
* </MultiSelect.Root>
|
|
267
|
-
* ```
|
|
268
|
-
*/
|
|
269
|
-
declare const Content: ({ "data-slot": dataSlot, asChild, backdrop, children, className, modal, portalElement, preventBodyScroll, ref, sameWidth, unmountOnHide, ...props }: MultiSelectContentProps) => import("react").JSX.Element;
|
|
270
|
-
/**
|
|
271
|
-
* Props for `MultiSelect.Item`.
|
|
272
|
-
*/
|
|
273
|
-
type MultiSelectItemProps = Omit<ComboboxItemProps, "render"> & WithAsChild & WithDataSlot;
|
|
274
|
-
/**
|
|
275
|
-
* Renders a selectable item inside a `MultiSelect.Content` component.
|
|
276
|
-
* Items display a checkbox indicator when selected.
|
|
277
|
-
*
|
|
278
|
-
* **Structure.** `children` render inside a
|
|
279
|
-
* `<div data-slot="multi-select-item-label">`. The selected-state check is a
|
|
280
|
-
* permanent element sibling, so without the wrapper a bare text label is never a
|
|
281
|
-
* lone child: a browser translation engine reparents that text node, and the
|
|
282
|
-
* removal React runs when the label changes shape or goes away throws. The
|
|
283
|
-
* wrapper is a `<div>` because a custom option layout is often a `MediaObject`,
|
|
284
|
-
* whose root is a `<div>` that a `<span>` may not contain. It is
|
|
285
|
-
* `display: contents`, so a child of your own stays a flex item of the option
|
|
286
|
-
* and any `flex-1` on it still resolves.
|
|
287
|
-
*
|
|
288
|
-
* **`asChild`.** Your single child becomes the option element. The label div
|
|
289
|
-
* and the check move inside it, so the guarantee above holds on both paths.
|
|
290
|
-
*
|
|
291
|
-
* **Data attributes:**
|
|
292
|
-
*
|
|
293
|
-
* | Data Attribute | Value | Description |
|
|
294
|
-
* | --- | --- | --- |
|
|
295
|
-
* | `data-slot` | `"multi-select-item"` | On the option element. |
|
|
296
|
-
* | `data-slot` | `"multi-select-item-label"` | On the `<div>` wrapping `children`. |
|
|
297
|
-
*
|
|
298
|
-
* @see https://mantle.ngrok.com/components/forms/multi-select#multiselectitem
|
|
299
|
-
*
|
|
300
|
-
* @example
|
|
301
|
-
* ```tsx
|
|
302
|
-
* <MultiSelect.Root>
|
|
303
|
-
* <MultiSelect.Trigger>
|
|
304
|
-
* <MultiSelect.TagValues />
|
|
305
|
-
* <MultiSelect.Input placeholder="Select items..." />
|
|
306
|
-
* </MultiSelect.Trigger>
|
|
307
|
-
* <MultiSelect.Content>
|
|
308
|
-
* <MultiSelect.Item value="apple">Apple</MultiSelect.Item>
|
|
309
|
-
* <MultiSelect.Item value="banana">Banana</MultiSelect.Item>
|
|
310
|
-
* </MultiSelect.Content>
|
|
311
|
-
* </MultiSelect.Root>
|
|
312
|
-
* ```
|
|
313
|
-
*/
|
|
314
|
-
declare const Item: ({ "data-slot": dataSlot, asChild, children, className, focusOnHover, value, onClick, ref, ...props }: MultiSelectItemProps) => import("react").JSX.Element;
|
|
315
|
-
type MultiSelectGroupProps = Omit<ComboboxGroupProps, "render"> & WithAsChild & WithDataSlot;
|
|
316
|
-
/**
|
|
317
|
-
* Renders a group for MultiSelect.Item elements.
|
|
318
|
-
*
|
|
319
|
-
* @see https://mantle.ngrok.com/components/forms/multi-select#multiselectgroup
|
|
320
|
-
*
|
|
321
|
-
* @example
|
|
322
|
-
* ```tsx
|
|
323
|
-
* <MultiSelect.Root>
|
|
324
|
-
* <MultiSelect.Trigger>
|
|
325
|
-
* <MultiSelect.TagValues />
|
|
326
|
-
* <MultiSelect.Input placeholder="Select items..." />
|
|
327
|
-
* </MultiSelect.Trigger>
|
|
328
|
-
* <MultiSelect.Content>
|
|
329
|
-
* <MultiSelect.Group>
|
|
330
|
-
* <MultiSelect.GroupLabel>Fruits</MultiSelect.GroupLabel>
|
|
331
|
-
* <MultiSelect.Item value="apple">Apple</MultiSelect.Item>
|
|
332
|
-
* <MultiSelect.Item value="banana">Banana</MultiSelect.Item>
|
|
333
|
-
* </MultiSelect.Group>
|
|
334
|
-
* </MultiSelect.Content>
|
|
335
|
-
* </MultiSelect.Root>
|
|
336
|
-
* ```
|
|
337
|
-
*/
|
|
338
|
-
declare const Group: ({ "data-slot": dataSlot, asChild, children, className, ref, ...props }: MultiSelectGroupProps) => import("react").JSX.Element;
|
|
339
|
-
type MultiSelectGroupLabelProps = Omit<ComboboxGroupLabelProps, "render"> & WithAsChild & WithDataSlot;
|
|
340
|
-
/**
|
|
341
|
-
* Renders a label in a multi-select group.
|
|
342
|
-
*
|
|
343
|
-
* @see https://mantle.ngrok.com/components/forms/multi-select#multiselectgrouplabel
|
|
344
|
-
*
|
|
345
|
-
* @example
|
|
346
|
-
* ```tsx
|
|
347
|
-
* <MultiSelect.Root>
|
|
348
|
-
* <MultiSelect.Trigger>
|
|
349
|
-
* <MultiSelect.TagValues />
|
|
350
|
-
* <MultiSelect.Input placeholder="Select items..." />
|
|
351
|
-
* </MultiSelect.Trigger>
|
|
352
|
-
* <MultiSelect.Content>
|
|
353
|
-
* <MultiSelect.Group>
|
|
354
|
-
* <MultiSelect.GroupLabel>Fruits</MultiSelect.GroupLabel>
|
|
355
|
-
* <MultiSelect.Item value="apple">Apple</MultiSelect.Item>
|
|
356
|
-
* </MultiSelect.Group>
|
|
357
|
-
* </MultiSelect.Content>
|
|
358
|
-
* </MultiSelect.Root>
|
|
359
|
-
* ```
|
|
360
|
-
*/
|
|
361
|
-
declare const GroupLabel: ({ "data-slot": dataSlot, asChild, children, className, ref, ...props }: MultiSelectGroupLabelProps) => import("react").JSX.Element;
|
|
362
|
-
type MultiSelectGroupDescriptionProps = ComponentProps<"p"> & WithDataSlot;
|
|
363
|
-
/**
|
|
364
|
-
* Renders a description below a `MultiSelect.GroupLabel` inside a `MultiSelect.Group`.
|
|
365
|
-
* States the group's purpose or constraints.
|
|
366
|
-
*
|
|
367
|
-
* @see https://mantle.ngrok.com/components/forms/multi-select#multiselectgroupdescription
|
|
368
|
-
*
|
|
369
|
-
* @example
|
|
370
|
-
* ```tsx
|
|
371
|
-
* <MultiSelect.Root>
|
|
372
|
-
* <MultiSelect.Trigger>
|
|
373
|
-
* <MultiSelect.TagValues />
|
|
374
|
-
* <MultiSelect.Input placeholder="Select regions..." />
|
|
375
|
-
* </MultiSelect.Trigger>
|
|
376
|
-
* <MultiSelect.Content>
|
|
377
|
-
* <MultiSelect.Group>
|
|
378
|
-
* <MultiSelect.GroupLabel>Regional Aliases</MultiSelect.GroupLabel>
|
|
379
|
-
* <MultiSelect.GroupDescription>
|
|
380
|
-
* Include all points of presence that are geographically within the region.
|
|
381
|
-
* </MultiSelect.GroupDescription>
|
|
382
|
-
* <MultiSelect.Item value="global">global</MultiSelect.Item>
|
|
383
|
-
* </MultiSelect.Group>
|
|
384
|
-
* </MultiSelect.Content>
|
|
385
|
-
* </MultiSelect.Root>
|
|
386
|
-
* ```
|
|
387
|
-
*/
|
|
388
|
-
declare const GroupDescription: ({ "data-slot": dataSlot, className, children, ref, ...props }: MultiSelectGroupDescriptionProps) => import("react").JSX.Element;
|
|
389
|
-
/**
|
|
390
|
-
* Renders a separator between MultiSelect.Items or MultiSelect.Groups.
|
|
391
|
-
*
|
|
392
|
-
* @see https://mantle.ngrok.com/components/forms/multi-select#multiselectseparator
|
|
393
|
-
*
|
|
394
|
-
* @example
|
|
395
|
-
* ```tsx
|
|
396
|
-
* <MultiSelect.Root>
|
|
397
|
-
* <MultiSelect.Trigger>
|
|
398
|
-
* <MultiSelect.TagValues />
|
|
399
|
-
* <MultiSelect.Input placeholder="Select items..." />
|
|
400
|
-
* </MultiSelect.Trigger>
|
|
401
|
-
* <MultiSelect.Content>
|
|
402
|
-
* <MultiSelect.Group>
|
|
403
|
-
* <MultiSelect.Item value="apple">Apple</MultiSelect.Item>
|
|
404
|
-
* </MultiSelect.Group>
|
|
405
|
-
* <MultiSelect.Separator />
|
|
406
|
-
* <MultiSelect.Group>
|
|
407
|
-
* <MultiSelect.Item value="carrot">Carrot</MultiSelect.Item>
|
|
408
|
-
* </MultiSelect.Group>
|
|
409
|
-
* </MultiSelect.Content>
|
|
410
|
-
* </MultiSelect.Root>
|
|
411
|
-
* ```
|
|
412
|
-
*/
|
|
413
|
-
declare const MultiSelectSeparatorComponent: ({ "data-slot": dataSlot, className, ref, ...props }: ComponentProps<typeof Separator> & WithDataSlot) => import("react").JSX.Element;
|
|
414
|
-
type MultiSelectEmptyProps = ComponentProps<"div"> & WithDataSlot;
|
|
415
|
-
/**
|
|
416
|
-
* Renders a message when no items match the current filter.
|
|
417
|
-
*
|
|
418
|
-
* @see https://mantle.ngrok.com/components/forms/multi-select#multiselectempty
|
|
419
|
-
*
|
|
420
|
-
* @example
|
|
421
|
-
* ```tsx
|
|
422
|
-
* <MultiSelect.Root>
|
|
423
|
-
* <MultiSelect.Trigger>
|
|
424
|
-
* <MultiSelect.TagValues />
|
|
425
|
-
* <MultiSelect.Input placeholder="Select items..." />
|
|
426
|
-
* </MultiSelect.Trigger>
|
|
427
|
-
* <MultiSelect.Content>
|
|
428
|
-
* {matches.length === 0 && (
|
|
429
|
-
* <MultiSelect.Empty>No results found</MultiSelect.Empty>
|
|
430
|
-
* )}
|
|
431
|
-
* </MultiSelect.Content>
|
|
432
|
-
* </MultiSelect.Root>
|
|
433
|
-
* ```
|
|
434
|
-
*/
|
|
435
|
-
declare const Empty: ({ "data-slot": dataSlot, className, children, ref, ...props }: MultiSelectEmptyProps) => import("react").JSX.Element;
|
|
436
|
-
type MultiSelectContentFooterProps = ComponentProps<"div"> & WithDataSlot;
|
|
437
|
-
/**
|
|
438
|
-
* Renders a sticky footer pinned to the bottom inside `MultiSelect.Content`,
|
|
439
|
-
* with a separator border at the top.
|
|
440
|
-
*
|
|
441
|
-
* @see https://mantle.ngrok.com/components/forms/multi-select#multiselectcontentfooter
|
|
442
|
-
*
|
|
443
|
-
* @example
|
|
444
|
-
* ```tsx
|
|
445
|
-
* <MultiSelect.Root>
|
|
446
|
-
* <MultiSelect.Trigger>
|
|
447
|
-
* <MultiSelect.TagValues />
|
|
448
|
-
* <MultiSelect.Input placeholder="Select items..." />
|
|
449
|
-
* </MultiSelect.Trigger>
|
|
450
|
-
* <MultiSelect.Content>
|
|
451
|
-
* <MultiSelect.Item value="apple">Apple</MultiSelect.Item>
|
|
452
|
-
* <MultiSelect.ContentFooter>
|
|
453
|
-
* <p>Upgrade to unlock more options.</p>
|
|
454
|
-
* <Button appearance="filled" intent="accent">Upgrade</Button>
|
|
455
|
-
* </MultiSelect.ContentFooter>
|
|
456
|
-
* </MultiSelect.Content>
|
|
457
|
-
* </MultiSelect.Root>
|
|
458
|
-
* ```
|
|
459
|
-
*/
|
|
460
|
-
declare const ContentFooter: ({ "data-slot": dataSlot, className, children, ref, ...props }: MultiSelectContentFooterProps) => import("react").JSX.Element;
|
|
6
|
+
import * as MultiSelectParts from "./multi-select-parts.js";
|
|
461
7
|
/**
|
|
462
8
|
* A multi-select combobox that allows users to select multiple values with
|
|
463
9
|
* typeahead filtering. Selected values are displayed as removable tags.
|
|
@@ -469,11 +15,10 @@ declare const ContentFooter: ({ "data-slot": dataSlot, className, children, ref,
|
|
|
469
15
|
* items rendered as removable tags/chips. For single selection, use Combobox (with search)
|
|
470
16
|
* or Select (without).
|
|
471
17
|
*
|
|
472
|
-
* `MultiSelect.Content` renders at Tailwind `z-50
|
|
473
|
-
* `
|
|
474
|
-
* the
|
|
475
|
-
*
|
|
476
|
-
* (`z-60`) covers it.
|
|
18
|
+
* `MultiSelect.Content` renders at Tailwind `z-50`. Inside an open `Dialog`,
|
|
19
|
+
* `AlertDialog`, or `Sheet`, it portals into that overlay's positioner and
|
|
20
|
+
* paints above the overlay that owns it. Outside every overlay, it portals to
|
|
21
|
+
* `document.body`, below the overlay tier (`z-60`).
|
|
477
22
|
*
|
|
478
23
|
* @useWhen Pick several values from a list with a typeahead filter, and show the picks as removable
|
|
479
24
|
* tags.
|
|
@@ -519,347 +64,5 @@ declare const ContentFooter: ({ "data-slot": dataSlot, className, children, ref,
|
|
|
519
64
|
* </MultiSelect.Root>
|
|
520
65
|
* ```
|
|
521
66
|
*/
|
|
522
|
-
declare const MultiSelect:
|
|
523
|
-
/**
|
|
524
|
-
* Root component for a multi-select combobox. Owns the selected values and
|
|
525
|
-
* the typeahead query.
|
|
526
|
-
*
|
|
527
|
-
* Use MultiSelect when the user can choose multiple values from a list, with selected
|
|
528
|
-
* items rendered as removable tags/chips. For single selection, use Combobox (with search)
|
|
529
|
-
* or Select (without).
|
|
530
|
-
*
|
|
531
|
-
* `MultiSelect.Content` renders at Tailwind `z-50` and portals into the
|
|
532
|
-
* closest `data-mantle-modal-content` element (an enclosing overlay's
|
|
533
|
-
* content), else the nearest overlay's positioner, else `document.body`.
|
|
534
|
-
* Inside an overlay it paints above the content that contains it. Outside
|
|
535
|
-
* one, an open overlay (`z-60`) covers it.
|
|
536
|
-
*
|
|
537
|
-
* @see https://mantle.ngrok.com/components/forms/multi-select#multiselectroot
|
|
538
|
-
*
|
|
539
|
-
* @example
|
|
540
|
-
* ```tsx
|
|
541
|
-
* <MultiSelect.Root>
|
|
542
|
-
* <MultiSelect.Trigger>
|
|
543
|
-
* <MultiSelect.TagValues />
|
|
544
|
-
* <MultiSelect.Input placeholder="Select items..." />
|
|
545
|
-
* </MultiSelect.Trigger>
|
|
546
|
-
* <MultiSelect.Content>
|
|
547
|
-
* <MultiSelect.Item value="apple">Apple</MultiSelect.Item>
|
|
548
|
-
* </MultiSelect.Content>
|
|
549
|
-
* </MultiSelect.Root>
|
|
550
|
-
* ```
|
|
551
|
-
*/
|
|
552
|
-
readonly Root: typeof Root;
|
|
553
|
-
/**
|
|
554
|
-
* The trigger container for the multi-select. Wraps the input and selected
|
|
555
|
-
* value tags in a styled container that looks like a form input. It is
|
|
556
|
-
* `role="presentation"`: the `MultiSelect.Input` combobox and the
|
|
557
|
-
* `MultiSelect.TagValues` list carry the semantics, and the input's label
|
|
558
|
-
* (`Field.Label` or `aria-label`) names the whole control.
|
|
559
|
-
*
|
|
560
|
-
* @see https://mantle.ngrok.com/components/forms/multi-select#multiselecttrigger
|
|
561
|
-
*
|
|
562
|
-
* @example
|
|
563
|
-
* ```tsx
|
|
564
|
-
* <MultiSelect.Root>
|
|
565
|
-
* <MultiSelect.Trigger>
|
|
566
|
-
* <MultiSelect.TagValues />
|
|
567
|
-
* <MultiSelect.Input placeholder="Select items..." />
|
|
568
|
-
* </MultiSelect.Trigger>
|
|
569
|
-
* <MultiSelect.Content>
|
|
570
|
-
* <MultiSelect.Item value="apple">Apple</MultiSelect.Item>
|
|
571
|
-
* </MultiSelect.Content>
|
|
572
|
-
* </MultiSelect.Root>
|
|
573
|
-
* ```
|
|
574
|
-
*/
|
|
575
|
-
readonly Trigger: typeof Trigger;
|
|
576
|
-
/**
|
|
577
|
-
* Renders the selected values as removable tags. Place this inside
|
|
578
|
-
* `MultiSelect.Trigger`, followed by `MultiSelect.Input`.
|
|
579
|
-
*
|
|
580
|
-
* The tags render inside a `role="list"` named "Selected values" (override it
|
|
581
|
-
* with `aria-label`), and each default tag is a `role="listitem"`. The list
|
|
582
|
-
* uses `display: contents`, so the tags keep the trigger's flex layout.
|
|
583
|
-
*
|
|
584
|
-
* @see https://mantle.ngrok.com/components/forms/multi-select#multiselecttagvalues
|
|
585
|
-
*
|
|
586
|
-
* @example
|
|
587
|
-
* ```tsx
|
|
588
|
-
* <MultiSelect.Root>
|
|
589
|
-
* <MultiSelect.Trigger>
|
|
590
|
-
* <MultiSelect.TagValues lockedValues={["global"]} />
|
|
591
|
-
* <MultiSelect.Input placeholder="Select items..." />
|
|
592
|
-
* </MultiSelect.Trigger>
|
|
593
|
-
* <MultiSelect.Content>
|
|
594
|
-
* <MultiSelect.Item value="apple">Apple</MultiSelect.Item>
|
|
595
|
-
* </MultiSelect.Content>
|
|
596
|
-
* </MultiSelect.Root>
|
|
597
|
-
* ```
|
|
598
|
-
*
|
|
599
|
-
* @example
|
|
600
|
-
* Custom tags via the children render function. The render props forward `locked`.
|
|
601
|
-
* ```tsx
|
|
602
|
-
* <MultiSelect.Root>
|
|
603
|
-
* <MultiSelect.Trigger>
|
|
604
|
-
* <MultiSelect.TagValues lockedValues={["global"]}>
|
|
605
|
-
* {(props) => <MultiSelect.Tag key={props.value} {...props} />}
|
|
606
|
-
* </MultiSelect.TagValues>
|
|
607
|
-
* <MultiSelect.Input placeholder="Select items..." />
|
|
608
|
-
* </MultiSelect.Trigger>
|
|
609
|
-
* <MultiSelect.Content>
|
|
610
|
-
* <MultiSelect.Item value="apple">Apple</MultiSelect.Item>
|
|
611
|
-
* </MultiSelect.Content>
|
|
612
|
-
* </MultiSelect.Root>
|
|
613
|
-
* ```
|
|
614
|
-
*/
|
|
615
|
-
readonly TagValues: typeof TagValues;
|
|
616
|
-
/**
|
|
617
|
-
* The combobox input for filtering items. Place this inside
|
|
618
|
-
* `MultiSelect.Trigger`, after `MultiSelect.TagValues`.
|
|
619
|
-
*
|
|
620
|
-
* @see https://mantle.ngrok.com/components/forms/multi-select#multiselectinput
|
|
621
|
-
*
|
|
622
|
-
* @example
|
|
623
|
-
* ```tsx
|
|
624
|
-
* <MultiSelect.Root>
|
|
625
|
-
* <MultiSelect.Trigger>
|
|
626
|
-
* <MultiSelect.TagValues />
|
|
627
|
-
* <MultiSelect.Input placeholder="Select items..." />
|
|
628
|
-
* </MultiSelect.Trigger>
|
|
629
|
-
* <MultiSelect.Content>
|
|
630
|
-
* <MultiSelect.Item value="apple">Apple</MultiSelect.Item>
|
|
631
|
-
* </MultiSelect.Content>
|
|
632
|
-
* </MultiSelect.Root>
|
|
633
|
-
* ```
|
|
634
|
-
*/
|
|
635
|
-
readonly Input: typeof Input;
|
|
636
|
-
/**
|
|
637
|
-
* The default tag rendered inside `MultiSelect.TagValues` for each selected value.
|
|
638
|
-
* Displays the value label with a remove button. Renders a `role="listitem"`
|
|
639
|
-
* inside the `role="list"` that `MultiSelect.TagValues` renders, and marks
|
|
640
|
-
* itself `data-active` while it has focus.
|
|
641
|
-
*
|
|
642
|
-
* @see https://mantle.ngrok.com/components/forms/multi-select#multiselecttag
|
|
643
|
-
*
|
|
644
|
-
* @example
|
|
645
|
-
* ```tsx
|
|
646
|
-
* <MultiSelect.Root>
|
|
647
|
-
* <MultiSelect.Trigger>
|
|
648
|
-
* <MultiSelect.TagValues>
|
|
649
|
-
* {(props) => <MultiSelect.Tag key={props.value} {...props} />}
|
|
650
|
-
* </MultiSelect.TagValues>
|
|
651
|
-
* <MultiSelect.Input placeholder="Select items..." />
|
|
652
|
-
* </MultiSelect.Trigger>
|
|
653
|
-
* <MultiSelect.Content>
|
|
654
|
-
* <MultiSelect.Item value="apple">Apple</MultiSelect.Item>
|
|
655
|
-
* </MultiSelect.Content>
|
|
656
|
-
* </MultiSelect.Root>
|
|
657
|
-
* ```
|
|
658
|
-
*/
|
|
659
|
-
readonly Tag: typeof Tag;
|
|
660
|
-
/**
|
|
661
|
-
* Renders a popover that contains multi-select content.
|
|
662
|
-
*
|
|
663
|
-
* `MultiSelect.Content` renders at Tailwind `z-50` and portals into the
|
|
664
|
-
* closest `data-mantle-modal-content` element (an enclosing overlay's
|
|
665
|
-
* content), else the nearest overlay's positioner, else `document.body`.
|
|
666
|
-
* Inside an overlay it paints above the content that contains it. Outside
|
|
667
|
-
* one, an open overlay (`z-60`) covers it.
|
|
668
|
-
*
|
|
669
|
-
* @see https://mantle.ngrok.com/components/forms/multi-select#multiselectcontent
|
|
670
|
-
*
|
|
671
|
-
* @example
|
|
672
|
-
* ```tsx
|
|
673
|
-
* <MultiSelect.Root>
|
|
674
|
-
* <MultiSelect.Trigger>
|
|
675
|
-
* <MultiSelect.TagValues />
|
|
676
|
-
* <MultiSelect.Input placeholder="Select items..." />
|
|
677
|
-
* </MultiSelect.Trigger>
|
|
678
|
-
* <MultiSelect.Content>
|
|
679
|
-
* <MultiSelect.Item value="apple">Apple</MultiSelect.Item>
|
|
680
|
-
* <MultiSelect.Item value="banana">Banana</MultiSelect.Item>
|
|
681
|
-
* </MultiSelect.Content>
|
|
682
|
-
* </MultiSelect.Root>
|
|
683
|
-
* ```
|
|
684
|
-
*/
|
|
685
|
-
readonly Content: typeof Content;
|
|
686
|
-
/**
|
|
687
|
-
* Renders a sticky footer pinned to the bottom inside `MultiSelect.Content`,
|
|
688
|
-
* with a separator border at the top.
|
|
689
|
-
*
|
|
690
|
-
* @see https://mantle.ngrok.com/components/forms/multi-select#multiselectcontentfooter
|
|
691
|
-
*
|
|
692
|
-
* @example
|
|
693
|
-
* ```tsx
|
|
694
|
-
* <MultiSelect.Root>
|
|
695
|
-
* <MultiSelect.Trigger>
|
|
696
|
-
* <MultiSelect.TagValues />
|
|
697
|
-
* <MultiSelect.Input placeholder="Select items..." />
|
|
698
|
-
* </MultiSelect.Trigger>
|
|
699
|
-
* <MultiSelect.Content>
|
|
700
|
-
* <MultiSelect.Item value="apple">Apple</MultiSelect.Item>
|
|
701
|
-
* <MultiSelect.ContentFooter>
|
|
702
|
-
* <p>Upgrade to unlock more options.</p>
|
|
703
|
-
* </MultiSelect.ContentFooter>
|
|
704
|
-
* </MultiSelect.Content>
|
|
705
|
-
* </MultiSelect.Root>
|
|
706
|
-
* ```
|
|
707
|
-
*/
|
|
708
|
-
readonly ContentFooter: typeof ContentFooter;
|
|
709
|
-
/**
|
|
710
|
-
* Renders a selectable item with a checkbox indicator inside a `MultiSelect.Content`.
|
|
711
|
-
*
|
|
712
|
-
* **Structure.** `children` render inside a
|
|
713
|
-
* `<div data-slot="multi-select-item-label">`. The selected-state check is a
|
|
714
|
-
* permanent element sibling, so without the wrapper a bare text label is never a
|
|
715
|
-
* lone child: a browser translation engine reparents that text node, and the
|
|
716
|
-
* removal React runs when the label changes shape or goes away throws. The
|
|
717
|
-
* wrapper is a `<div>` because a custom option layout is often a `MediaObject`,
|
|
718
|
-
* whose root is a `<div>` that a `<span>` may not contain. It is
|
|
719
|
-
* `display: contents`, so a child of your own stays a flex item of the option
|
|
720
|
-
* and any `flex-1` on it still resolves.
|
|
721
|
-
*
|
|
722
|
-
* **`asChild`.** Your single child becomes the option element. The label div
|
|
723
|
-
* and the check move inside it, so the guarantee above holds on both paths.
|
|
724
|
-
*
|
|
725
|
-
* **Data attributes:**
|
|
726
|
-
*
|
|
727
|
-
* | Data Attribute | Value | Description |
|
|
728
|
-
* | --- | --- | --- |
|
|
729
|
-
* | `data-slot` | `"multi-select-item"` | On the option element. |
|
|
730
|
-
* | `data-slot` | `"multi-select-item-label"` | On the `<div>` wrapping `children`. |
|
|
731
|
-
*
|
|
732
|
-
* @see https://mantle.ngrok.com/components/forms/multi-select#multiselectitem
|
|
733
|
-
*
|
|
734
|
-
* @example
|
|
735
|
-
* ```tsx
|
|
736
|
-
* <MultiSelect.Root>
|
|
737
|
-
* <MultiSelect.Trigger>
|
|
738
|
-
* <MultiSelect.TagValues />
|
|
739
|
-
* <MultiSelect.Input placeholder="Select items..." />
|
|
740
|
-
* </MultiSelect.Trigger>
|
|
741
|
-
* <MultiSelect.Content>
|
|
742
|
-
* <MultiSelect.Item value="apple">Apple</MultiSelect.Item>
|
|
743
|
-
* <MultiSelect.Item value="banana">Banana</MultiSelect.Item>
|
|
744
|
-
* </MultiSelect.Content>
|
|
745
|
-
* </MultiSelect.Root>
|
|
746
|
-
* ```
|
|
747
|
-
*/
|
|
748
|
-
readonly Item: typeof Item;
|
|
749
|
-
/**
|
|
750
|
-
* Renders a group for MultiSelect.Item elements.
|
|
751
|
-
*
|
|
752
|
-
* @see https://mantle.ngrok.com/components/forms/multi-select#multiselectgroup
|
|
753
|
-
*
|
|
754
|
-
* @example
|
|
755
|
-
* ```tsx
|
|
756
|
-
* <MultiSelect.Root>
|
|
757
|
-
* <MultiSelect.Trigger>
|
|
758
|
-
* <MultiSelect.TagValues />
|
|
759
|
-
* <MultiSelect.Input placeholder="Select items..." />
|
|
760
|
-
* </MultiSelect.Trigger>
|
|
761
|
-
* <MultiSelect.Content>
|
|
762
|
-
* <MultiSelect.Group>
|
|
763
|
-
* <MultiSelect.GroupLabel>Fruits</MultiSelect.GroupLabel>
|
|
764
|
-
* <MultiSelect.Item value="apple">Apple</MultiSelect.Item>
|
|
765
|
-
* </MultiSelect.Group>
|
|
766
|
-
* </MultiSelect.Content>
|
|
767
|
-
* </MultiSelect.Root>
|
|
768
|
-
* ```
|
|
769
|
-
*/
|
|
770
|
-
readonly Group: typeof Group;
|
|
771
|
-
/**
|
|
772
|
-
* Renders a label in a multi-select group.
|
|
773
|
-
*
|
|
774
|
-
* @see https://mantle.ngrok.com/components/forms/multi-select#multiselectgrouplabel
|
|
775
|
-
*
|
|
776
|
-
* @example
|
|
777
|
-
* ```tsx
|
|
778
|
-
* <MultiSelect.Root>
|
|
779
|
-
* <MultiSelect.Trigger>
|
|
780
|
-
* <MultiSelect.TagValues />
|
|
781
|
-
* <MultiSelect.Input placeholder="Select items..." />
|
|
782
|
-
* </MultiSelect.Trigger>
|
|
783
|
-
* <MultiSelect.Content>
|
|
784
|
-
* <MultiSelect.Group>
|
|
785
|
-
* <MultiSelect.GroupLabel>Fruits</MultiSelect.GroupLabel>
|
|
786
|
-
* <MultiSelect.Item value="apple">Apple</MultiSelect.Item>
|
|
787
|
-
* </MultiSelect.Group>
|
|
788
|
-
* </MultiSelect.Content>
|
|
789
|
-
* </MultiSelect.Root>
|
|
790
|
-
* ```
|
|
791
|
-
*/
|
|
792
|
-
readonly GroupLabel: typeof GroupLabel;
|
|
793
|
-
/**
|
|
794
|
-
* Renders a description below a `MultiSelect.GroupLabel` inside a `MultiSelect.Group`.
|
|
795
|
-
*
|
|
796
|
-
* @see https://mantle.ngrok.com/components/forms/multi-select#multiselectgroupdescription
|
|
797
|
-
*
|
|
798
|
-
* @example
|
|
799
|
-
* ```tsx
|
|
800
|
-
* <MultiSelect.Root>
|
|
801
|
-
* <MultiSelect.Trigger>
|
|
802
|
-
* <MultiSelect.TagValues />
|
|
803
|
-
* <MultiSelect.Input placeholder="Select regions..." />
|
|
804
|
-
* </MultiSelect.Trigger>
|
|
805
|
-
* <MultiSelect.Content>
|
|
806
|
-
* <MultiSelect.Group>
|
|
807
|
-
* <MultiSelect.GroupLabel>Regional Aliases</MultiSelect.GroupLabel>
|
|
808
|
-
* <MultiSelect.GroupDescription>
|
|
809
|
-
* Include all points of presence within the region.
|
|
810
|
-
* </MultiSelect.GroupDescription>
|
|
811
|
-
* <MultiSelect.Item value="global">global</MultiSelect.Item>
|
|
812
|
-
* </MultiSelect.Group>
|
|
813
|
-
* </MultiSelect.Content>
|
|
814
|
-
* </MultiSelect.Root>
|
|
815
|
-
* ```
|
|
816
|
-
*/
|
|
817
|
-
readonly GroupDescription: typeof GroupDescription;
|
|
818
|
-
/**
|
|
819
|
-
* Renders a separator between items or groups.
|
|
820
|
-
*
|
|
821
|
-
* @see https://mantle.ngrok.com/components/forms/multi-select#multiselectseparator
|
|
822
|
-
*
|
|
823
|
-
* @example
|
|
824
|
-
* ```tsx
|
|
825
|
-
* <MultiSelect.Root>
|
|
826
|
-
* <MultiSelect.Trigger>
|
|
827
|
-
* <MultiSelect.TagValues />
|
|
828
|
-
* <MultiSelect.Input placeholder="Select items..." />
|
|
829
|
-
* </MultiSelect.Trigger>
|
|
830
|
-
* <MultiSelect.Content>
|
|
831
|
-
* <MultiSelect.Group>
|
|
832
|
-
* <MultiSelect.Item value="apple">Apple</MultiSelect.Item>
|
|
833
|
-
* </MultiSelect.Group>
|
|
834
|
-
* <MultiSelect.Separator />
|
|
835
|
-
* <MultiSelect.Group>
|
|
836
|
-
* <MultiSelect.Item value="carrot">Carrot</MultiSelect.Item>
|
|
837
|
-
* </MultiSelect.Group>
|
|
838
|
-
* </MultiSelect.Content>
|
|
839
|
-
* </MultiSelect.Root>
|
|
840
|
-
* ```
|
|
841
|
-
*/
|
|
842
|
-
readonly Separator: typeof MultiSelectSeparatorComponent;
|
|
843
|
-
/**
|
|
844
|
-
* Renders a message when no items match the current filter.
|
|
845
|
-
*
|
|
846
|
-
* @see https://mantle.ngrok.com/components/forms/multi-select#multiselectempty
|
|
847
|
-
*
|
|
848
|
-
* @example
|
|
849
|
-
* ```tsx
|
|
850
|
-
* <MultiSelect.Root>
|
|
851
|
-
* <MultiSelect.Trigger>
|
|
852
|
-
* <MultiSelect.TagValues />
|
|
853
|
-
* <MultiSelect.Input placeholder="Select items..." />
|
|
854
|
-
* </MultiSelect.Trigger>
|
|
855
|
-
* <MultiSelect.Content>
|
|
856
|
-
* {matches.length === 0 && (
|
|
857
|
-
* <MultiSelect.Empty>No results found</MultiSelect.Empty>
|
|
858
|
-
* )}
|
|
859
|
-
* </MultiSelect.Content>
|
|
860
|
-
* </MultiSelect.Root>
|
|
861
|
-
* ```
|
|
862
|
-
*/
|
|
863
|
-
readonly Empty: typeof Empty;
|
|
864
|
-
};
|
|
67
|
+
declare const MultiSelect: typeof MultiSelectParts;
|
|
865
68
|
export { MultiSelect };
|