@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/sandbar.d.ts
CHANGED
|
@@ -3,352 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @see https://mantle.ngrok.com/components/feedback/sandbar
|
|
5
5
|
*/
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import { r as ButtonProps } from "./button-Ddj6yr10.js";
|
|
9
|
-
import { ComponentProps, ReactNode, Ref } from "react";
|
|
10
|
-
/**
|
|
11
|
-
* The imperative surface of a {@link Sandbar}, exposed via `Sandbar.Root`'s
|
|
12
|
-
* `handleRef` prop. `shake()` is a compound feedback action: it wiggles the
|
|
13
|
-
* panel (skipped under `prefers-reduced-motion`) and always pushes an
|
|
14
|
-
* assertive live-region announcement, so blocked navigation is perceivable
|
|
15
|
-
* with or without motion.
|
|
16
|
-
*
|
|
17
|
-
* @see https://mantle.ngrok.com/components/feedback/sandbar#sandbarhandle
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```tsx
|
|
21
|
-
* const sandbarHandle = useRef<SandbarHandle>(null);
|
|
22
|
-
*
|
|
23
|
-
* // hand this to your router's guard; it owns the blocking, and the bar reacts
|
|
24
|
-
* const onNavigationBlocked = () => sandbarHandle.current?.shake();
|
|
25
|
-
*
|
|
26
|
-
* <Sandbar.Root open={isDirty} handleRef={sandbarHandle}>
|
|
27
|
-
* <Sandbar.Message>You have unsaved changes</Sandbar.Message>
|
|
28
|
-
* <Sandbar.Actions>
|
|
29
|
-
* <Sandbar.DiscardButton onClick={reset}>Discard</Sandbar.DiscardButton>
|
|
30
|
-
* <Sandbar.SaveButton onClick={save} isLoading={isPending}>Save</Sandbar.SaveButton>
|
|
31
|
-
* </Sandbar.Actions>
|
|
32
|
-
* </Sandbar.Root>
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
type SandbarHandle = {
|
|
36
|
-
/**
|
|
37
|
-
* Signal that an action (usually navigation) was blocked because changes
|
|
38
|
-
* are still pending: wiggles the panel and announces assertively.
|
|
39
|
-
*
|
|
40
|
-
* The default announcement is save-flavored; pass `announcement` for other
|
|
41
|
-
* intents (e.g. "Publish or discard your pending items before leaving.").
|
|
42
|
-
*/
|
|
43
|
-
shake: (options?: {
|
|
44
|
-
announcement?: string;
|
|
45
|
-
}) => void;
|
|
46
|
-
};
|
|
47
|
-
/**
|
|
48
|
-
* Props for `Sandbar.Root`. Extends `<div>` props (which target the visible
|
|
49
|
-
* panel, not the fixed-position wrapper) with the controlled `open` flag and
|
|
50
|
-
* the imperative `handleRef`. Deliberately no `asChild`: Root renders four
|
|
51
|
-
* nodes, so single-child polymorphism has no coherent meaning.
|
|
52
|
-
*
|
|
53
|
-
* @see https://mantle.ngrok.com/components/feedback/sandbar#sandbarroot
|
|
54
|
-
*
|
|
55
|
-
* @example
|
|
56
|
-
* ```tsx
|
|
57
|
-
* <Sandbar.Root open={isDirty} handleRef={sandbarHandle}>
|
|
58
|
-
* <Sandbar.Message>You have unsaved changes</Sandbar.Message>
|
|
59
|
-
* <Sandbar.Actions>
|
|
60
|
-
* <Sandbar.DiscardButton onClick={reset}>Discard</Sandbar.DiscardButton>
|
|
61
|
-
* <Sandbar.SaveButton onClick={save} isLoading={isPending}>Save</Sandbar.SaveButton>
|
|
62
|
-
* </Sandbar.Actions>
|
|
63
|
-
* </Sandbar.Root>
|
|
64
|
-
* ```
|
|
65
|
-
*/
|
|
66
|
-
type SandbarRootProps = ComponentProps<"div"> & WithDataSlot & {
|
|
67
|
-
/**
|
|
68
|
-
* Whether the sandbar is showing. Controlled-only: the pending state
|
|
69
|
-
* (e.g. a form's dirty flag) lives in your app, not in the component.
|
|
70
|
-
*
|
|
71
|
-
* `Sandbar.Root` must stay mounted and be toggled with `open`, never
|
|
72
|
-
* conditionally mounted (`{isDirty && <Sandbar.Root …>}`). The
|
|
73
|
-
* screen-reader announcement only works when the internal live regions
|
|
74
|
-
* exist in the tree before the message appears. The exit animation needs
|
|
75
|
-
* the panel alive to play. A Root that mounts with `open` already true
|
|
76
|
-
* does not announce (mounting is not a live-region change).
|
|
77
|
-
*/
|
|
78
|
-
open: boolean;
|
|
79
|
-
/**
|
|
80
|
-
* Receives the imperative {@link SandbarHandle}. Kept separate from `ref`
|
|
81
|
-
* (which stays the panel's DOM element, like every other mantle part).
|
|
82
|
-
* Wire it to your navigation guard's blocked callback.
|
|
83
|
-
*/
|
|
84
|
-
handleRef?: Ref<SandbarHandle>;
|
|
85
|
-
};
|
|
86
|
-
/**
|
|
87
|
-
* The always-mounted shell of the sandbar. Renders a private viewport-fixed
|
|
88
|
-
* wrapper, two persistent visually-hidden live regions (a polite `status`
|
|
89
|
-
* announcer and an assertive `alert` announcer), and the visible panel: a
|
|
90
|
-
* floating island with `role="group"`, named by `Sandbar.Message` via
|
|
91
|
-
* `aria-labelledby` (a consumer `aria-label` wins when passed).
|
|
92
|
-
*
|
|
93
|
-
* The panel is an `invert-theme` island: it renders in the opposite theme of
|
|
94
|
-
* the page (light ⇄ dark), and so does everything composed inside it: the
|
|
95
|
-
* blessed buttons and any custom children.
|
|
96
|
-
*
|
|
97
|
-
* The bar renders at Tailwind `z-70`, above Mantle's overlay tier (`z-60`), so
|
|
98
|
-
* it stays visible above the scrim of an open dialog, alert dialog, or sheet.
|
|
99
|
-
* Like a toast, a click on the panel does not dismiss that overlay. Keyboard
|
|
100
|
-
* and screen-reader users reach the bar only after the overlay closes, so a
|
|
101
|
-
* form inside an overlay keeps its save actions in the overlay.
|
|
102
|
-
*
|
|
103
|
-
* `ref`, `className`, and all other props target the panel. Render it in
|
|
104
|
-
* place at the end of the form it saves. `position: fixed` changes paint
|
|
105
|
-
* position, not tab order, so Tab from the last field lands on the actions.
|
|
106
|
-
* Escape is intentionally inert (a one-keypress discard would destroy data).
|
|
107
|
-
*
|
|
108
|
-
* Data attributes stamped on the panel:
|
|
109
|
-
*
|
|
110
|
-
* | Data Attribute | Value | Description |
|
|
111
|
-
* | -------------- | ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
112
|
-
* | `data-slot` | `"sandbar"` | Stable styling hook for the panel. Survives `className` overrides. |
|
|
113
|
-
* | `data-state` | `"open"` \| `"closed"` | `"open"` only at the resting open pose. `"closed"` covers both the pre-enter frame and the exit transition, which is what drives the slide/fade. |
|
|
114
|
-
*
|
|
115
|
-
* @see https://mantle.ngrok.com/components/feedback/sandbar#sandbarroot
|
|
116
|
-
*
|
|
117
|
-
* @example
|
|
118
|
-
* ```tsx
|
|
119
|
-
* <Sandbar.Root open={isDirty} handleRef={sandbarHandle}>
|
|
120
|
-
* <Sandbar.Message>You have unsaved changes</Sandbar.Message>
|
|
121
|
-
* <Sandbar.Actions>
|
|
122
|
-
* <Sandbar.DiscardButton onClick={reset}>Discard</Sandbar.DiscardButton>
|
|
123
|
-
* <Sandbar.SaveButton onClick={save} isLoading={isPending}>Save</Sandbar.SaveButton>
|
|
124
|
-
* </Sandbar.Actions>
|
|
125
|
-
* </Sandbar.Root>
|
|
126
|
-
* ```
|
|
127
|
-
*/
|
|
128
|
-
declare const Root: ({ "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, children, className, "data-slot": dataSlot, handleRef, onTransitionEnd, open, ref, ...props }: SandbarRootProps) => import("react").JSX.Element;
|
|
129
|
-
/**
|
|
130
|
-
* Props for `Sandbar.Message`. Extends `<p>` props with `asChild`. An `id` is
|
|
131
|
-
* generated when none is passed. It is what `Sandbar.Root` points
|
|
132
|
-
* `aria-labelledby` at, so passing your own keeps that wiring intact.
|
|
133
|
-
*
|
|
134
|
-
* @see https://mantle.ngrok.com/components/feedback/sandbar#sandbarmessage
|
|
135
|
-
*
|
|
136
|
-
* @example
|
|
137
|
-
* ```tsx
|
|
138
|
-
* <Sandbar.Root open={isDirty} handleRef={sandbarHandle}>
|
|
139
|
-
* <Sandbar.Message>You have unsaved changes</Sandbar.Message>
|
|
140
|
-
* <Sandbar.Actions>
|
|
141
|
-
* <Sandbar.DiscardButton onClick={reset}>Discard</Sandbar.DiscardButton>
|
|
142
|
-
* <Sandbar.SaveButton onClick={save} isLoading={isPending}>Save</Sandbar.SaveButton>
|
|
143
|
-
* </Sandbar.Actions>
|
|
144
|
-
* </Sandbar.Root>
|
|
145
|
-
* ```
|
|
146
|
-
*/
|
|
147
|
-
type SandbarMessageProps = ComponentProps<"p"> & WithAsChild & WithDataSlot;
|
|
148
|
-
/**
|
|
149
|
-
* The visible pending-state text (e.g. "You have unsaved changes"). A plain
|
|
150
|
-
* paragraph: `Sandbar.Root`'s persistent announcer owns the live-region
|
|
151
|
-
* announcement, not this node. The panel's accessible name points here via
|
|
152
|
-
* `aria-labelledby`, so the group name always matches the visible text.
|
|
153
|
-
*
|
|
154
|
-
* Data attributes:
|
|
155
|
-
*
|
|
156
|
-
* | Data Attribute | Value | Description |
|
|
157
|
-
* | -------------- | -------------------- | ----------------------------------------------------------------- |
|
|
158
|
-
* | `data-slot` | `"sandbar-message"` | Stable styling hook. Survives `className` overrides and `asChild`. |
|
|
159
|
-
*
|
|
160
|
-
* @see https://mantle.ngrok.com/components/feedback/sandbar#sandbarmessage
|
|
161
|
-
*
|
|
162
|
-
* @example
|
|
163
|
-
* ```tsx
|
|
164
|
-
* <Sandbar.Root open={isDirty} handleRef={sandbarHandle}>
|
|
165
|
-
* <Sandbar.Message>You have unsaved changes</Sandbar.Message>
|
|
166
|
-
* <Sandbar.Actions>
|
|
167
|
-
* <Sandbar.DiscardButton onClick={reset}>Discard</Sandbar.DiscardButton>
|
|
168
|
-
* <Sandbar.SaveButton onClick={save} isLoading={isPending}>Save</Sandbar.SaveButton>
|
|
169
|
-
* </Sandbar.Actions>
|
|
170
|
-
* </Sandbar.Root>
|
|
171
|
-
* ```
|
|
172
|
-
*/
|
|
173
|
-
declare const Message: ({ asChild, className, "data-slot": dataSlot, id: propId, ref, ...props }: SandbarMessageProps) => import("react").JSX.Element;
|
|
174
|
-
/**
|
|
175
|
-
* Props for `Sandbar.Actions`. Extends `<div>` props with `asChild`.
|
|
176
|
-
*
|
|
177
|
-
* @see https://mantle.ngrok.com/components/feedback/sandbar#sandbaractions
|
|
178
|
-
*
|
|
179
|
-
* @example
|
|
180
|
-
* ```tsx
|
|
181
|
-
* <Sandbar.Root open={isDirty} handleRef={sandbarHandle}>
|
|
182
|
-
* <Sandbar.Message>You have unsaved changes</Sandbar.Message>
|
|
183
|
-
* <Sandbar.Actions>
|
|
184
|
-
* <Sandbar.DiscardButton onClick={reset}>Discard</Sandbar.DiscardButton>
|
|
185
|
-
* <Sandbar.SaveButton onClick={save} isLoading={isPending}>Save</Sandbar.SaveButton>
|
|
186
|
-
* </Sandbar.Actions>
|
|
187
|
-
* </Sandbar.Root>
|
|
188
|
-
* ```
|
|
189
|
-
*/
|
|
190
|
-
type SandbarActionsProps = ComponentProps<"div"> & WithAsChild & WithDataSlot;
|
|
191
|
-
/**
|
|
192
|
-
* The action-button row. A plain flex container, deliberately not
|
|
193
|
-
* `role="toolbar"`, which the ARIA APG reserves for 3+ controls with roving
|
|
194
|
-
* tab stops.
|
|
195
|
-
*
|
|
196
|
-
* Data attributes:
|
|
197
|
-
*
|
|
198
|
-
* | Data Attribute | Value | Description |
|
|
199
|
-
* | -------------- | -------------------- | ----------------------------------------------------------------- |
|
|
200
|
-
* | `data-slot` | `"sandbar-actions"` | Stable styling hook. Survives `className` overrides and `asChild`. |
|
|
201
|
-
*
|
|
202
|
-
* @see https://mantle.ngrok.com/components/feedback/sandbar#sandbaractions
|
|
203
|
-
*
|
|
204
|
-
* @example
|
|
205
|
-
* ```tsx
|
|
206
|
-
* <Sandbar.Root open={isDirty} handleRef={sandbarHandle}>
|
|
207
|
-
* <Sandbar.Message>You have unsaved changes</Sandbar.Message>
|
|
208
|
-
* <Sandbar.Actions>
|
|
209
|
-
* <Sandbar.DiscardButton onClick={reset}>Discard</Sandbar.DiscardButton>
|
|
210
|
-
* <Sandbar.SaveButton onClick={save} isLoading={isPending}>Save</Sandbar.SaveButton>
|
|
211
|
-
* </Sandbar.Actions>
|
|
212
|
-
* </Sandbar.Root>
|
|
213
|
-
* ```
|
|
214
|
-
*/
|
|
215
|
-
declare const Actions: ({ asChild, className, "data-slot": dataSlot, ...props }: SandbarActionsProps) => import("react").JSX.Element;
|
|
216
|
-
/**
|
|
217
|
-
* Props for `Sandbar.SaveButton`. Extends `Button`'s props (including
|
|
218
|
-
* `asChild` and `isLoading`) but makes `appearance` and `intent` optional
|
|
219
|
-
* with save-flavored defaults, and `children` required.
|
|
220
|
-
*
|
|
221
|
-
* @see https://mantle.ngrok.com/components/feedback/sandbar#sandbarsavebutton
|
|
222
|
-
*
|
|
223
|
-
* @example
|
|
224
|
-
* ```tsx
|
|
225
|
-
* <Sandbar.Root open={isDirty} handleRef={sandbarHandle}>
|
|
226
|
-
* <Sandbar.Message>You have unsaved changes</Sandbar.Message>
|
|
227
|
-
* <Sandbar.Actions>
|
|
228
|
-
* <Sandbar.DiscardButton onClick={reset}>Discard</Sandbar.DiscardButton>
|
|
229
|
-
* <Sandbar.SaveButton onClick={save} isLoading={isPending}>Save</Sandbar.SaveButton>
|
|
230
|
-
* </Sandbar.Actions>
|
|
231
|
-
* </Sandbar.Root>
|
|
232
|
-
* ```
|
|
233
|
-
*/
|
|
234
|
-
type SandbarSaveButtonProps = Omit<ButtonProps, "appearance" | "children" | "intent"> & WithDataSlot & {
|
|
235
|
-
/**
|
|
236
|
-
* The visual style of the button.
|
|
237
|
-
* @default "filled"
|
|
238
|
-
*/
|
|
239
|
-
appearance?: ButtonProps["appearance"];
|
|
240
|
-
/**
|
|
241
|
-
* The tone of the button.
|
|
242
|
-
* @default "neutral"
|
|
243
|
-
*/
|
|
244
|
-
intent?: ButtonProps["intent"];
|
|
245
|
-
/**
|
|
246
|
-
* The visible action label (e.g. "Save"). Required. Action labels are app
|
|
247
|
-
* voice and must be visible at the call site.
|
|
248
|
-
*/
|
|
249
|
-
children: ReactNode;
|
|
250
|
-
};
|
|
251
|
-
/**
|
|
252
|
-
* The primary (save) action. A mantle `Button` defaulting to the system
|
|
253
|
-
* primary style (`appearance="filled" intent="neutral"`), wired into
|
|
254
|
-
* `Sandbar.Root`: while `isLoading`, Root announces "Saving changes…" via the
|
|
255
|
-
* polite live region and catches the focus drop caused by the button going
|
|
256
|
-
* natively disabled while focused.
|
|
257
|
-
*
|
|
258
|
-
* Defaults to `type="button"`; pass `type="submit"` when rendered inside the
|
|
259
|
-
* form it saves. Announce the save's resolution yourself (e.g. a success
|
|
260
|
-
* Toast). The bar exits silently.
|
|
261
|
-
*
|
|
262
|
-
* Data attributes:
|
|
263
|
-
*
|
|
264
|
-
* | Data Attribute | Value | Description |
|
|
265
|
-
* | ----------------- | ------------------------- | -------------------------------------------------------------------------------------------------- |
|
|
266
|
-
* | `data-slot` | `"sandbar-save-button button"` | Stable styling hook, joined ahead of `Button`'s own `button`. |
|
|
267
|
-
* | `data-appearance` | the resolved `appearance` | Stamped by `Button`. |
|
|
268
|
-
* | `data-intent` | the resolved `intent` | Stamped by `Button`. |
|
|
269
|
-
* | `data-size` | the resolved `size` | Stamped by `Button`; absent for `appearance="link"`. |
|
|
270
|
-
* | `data-disabled` | present when disabled | Stamped by `Button`. Presence-only, never `"false"`. |
|
|
271
|
-
* | `data-loading` | present when `isLoading` | Stamped by `Button`. Presence-only, never `"false"`. |
|
|
272
|
-
*
|
|
273
|
-
* @see https://mantle.ngrok.com/components/feedback/sandbar#sandbarsavebutton
|
|
274
|
-
*
|
|
275
|
-
* @example
|
|
276
|
-
* ```tsx
|
|
277
|
-
* <Sandbar.Root open={isDirty} handleRef={sandbarHandle}>
|
|
278
|
-
* <Sandbar.Message>You have unsaved changes</Sandbar.Message>
|
|
279
|
-
* <Sandbar.Actions>
|
|
280
|
-
* <Sandbar.DiscardButton onClick={reset}>Discard</Sandbar.DiscardButton>
|
|
281
|
-
* <Sandbar.SaveButton onClick={save} isLoading={isPending}>Save</Sandbar.SaveButton>
|
|
282
|
-
* </Sandbar.Actions>
|
|
283
|
-
* </Sandbar.Root>
|
|
284
|
-
* ```
|
|
285
|
-
*/
|
|
286
|
-
declare const SaveButton: ({ appearance, children, "data-slot": dataSlot, intent, isLoading, ref, ...props }: SandbarSaveButtonProps) => import("react").JSX.Element;
|
|
287
|
-
/**
|
|
288
|
-
* Props for `Sandbar.DiscardButton`. Extends `Button`'s props (including
|
|
289
|
-
* `asChild`) but makes `appearance` and `intent` optional with
|
|
290
|
-
* secondary-action defaults, and `children` required.
|
|
291
|
-
*
|
|
292
|
-
* @see https://mantle.ngrok.com/components/feedback/sandbar#sandbardiscardbutton
|
|
293
|
-
*
|
|
294
|
-
* @example
|
|
295
|
-
* ```tsx
|
|
296
|
-
* <Sandbar.Root open={isDirty} handleRef={sandbarHandle}>
|
|
297
|
-
* <Sandbar.Message>You have unsaved changes</Sandbar.Message>
|
|
298
|
-
* <Sandbar.Actions>
|
|
299
|
-
* <Sandbar.DiscardButton onClick={reset}>Discard</Sandbar.DiscardButton>
|
|
300
|
-
* <Sandbar.SaveButton onClick={save} isLoading={isPending}>Save</Sandbar.SaveButton>
|
|
301
|
-
* </Sandbar.Actions>
|
|
302
|
-
* </Sandbar.Root>
|
|
303
|
-
* ```
|
|
304
|
-
*/
|
|
305
|
-
type SandbarDiscardButtonProps = Omit<ButtonProps, "appearance" | "children" | "intent"> & WithDataSlot & {
|
|
306
|
-
/**
|
|
307
|
-
* The visual style of the button.
|
|
308
|
-
* @default "outlined"
|
|
309
|
-
*/
|
|
310
|
-
appearance?: ButtonProps["appearance"];
|
|
311
|
-
/**
|
|
312
|
-
* The tone of the button.
|
|
313
|
-
* @default "neutral"
|
|
314
|
-
*/
|
|
315
|
-
intent?: ButtonProps["intent"];
|
|
316
|
-
/**
|
|
317
|
-
* The visible action label (e.g. "Discard"). Required. Action labels are
|
|
318
|
-
* app voice and must be visible at the call site.
|
|
319
|
-
*/
|
|
320
|
-
children: ReactNode;
|
|
321
|
-
};
|
|
322
|
-
/**
|
|
323
|
-
* The secondary (discard/reset) action. A mantle `Button` defaulting to
|
|
324
|
-
* `appearance="outlined" intent="neutral"`. Discard is destructive-ish: for
|
|
325
|
-
* large forms, consider confirming before discarding.
|
|
326
|
-
*
|
|
327
|
-
* Data attributes:
|
|
328
|
-
*
|
|
329
|
-
* | Data Attribute | Value | Description |
|
|
330
|
-
* | ----------------- | -------------------------- | -------------------------------------------------------------------------------------------------- |
|
|
331
|
-
* | `data-slot` | `"sandbar-discard-button button"` | Stable styling hook, joined ahead of `Button`'s own `button`. |
|
|
332
|
-
* | `data-appearance` | the resolved `appearance` | Stamped by `Button`. |
|
|
333
|
-
* | `data-intent` | the resolved `intent` | Stamped by `Button`. |
|
|
334
|
-
* | `data-size` | the resolved `size` | Stamped by `Button`; absent for `appearance="link"`. |
|
|
335
|
-
* | `data-disabled` | present when disabled | Stamped by `Button`. Presence-only, never `"false"`. |
|
|
336
|
-
* | `data-loading` | present when `isLoading` | Stamped by `Button`. Presence-only, never `"false"`. |
|
|
337
|
-
*
|
|
338
|
-
* @see https://mantle.ngrok.com/components/feedback/sandbar#sandbardiscardbutton
|
|
339
|
-
*
|
|
340
|
-
* @example
|
|
341
|
-
* ```tsx
|
|
342
|
-
* <Sandbar.Root open={isDirty} handleRef={sandbarHandle}>
|
|
343
|
-
* <Sandbar.Message>You have unsaved changes</Sandbar.Message>
|
|
344
|
-
* <Sandbar.Actions>
|
|
345
|
-
* <Sandbar.DiscardButton onClick={reset}>Discard</Sandbar.DiscardButton>
|
|
346
|
-
* <Sandbar.SaveButton onClick={save} isLoading={isPending}>Save</Sandbar.SaveButton>
|
|
347
|
-
* </Sandbar.Actions>
|
|
348
|
-
* </Sandbar.Root>
|
|
349
|
-
* ```
|
|
350
|
-
*/
|
|
351
|
-
declare const DiscardButton: ({ appearance, children, "data-slot": dataSlot, intent, ...props }: SandbarDiscardButtonProps) => import("react").JSX.Element;
|
|
6
|
+
import * as SandbarParts from "./sandbar-parts.js";
|
|
7
|
+
import { a as SandbarActionsProps, c as SandbarMessageProps, l as SandbarRootProps, o as SandbarDiscardButtonProps, s as SandbarHandle, u as SandbarSaveButtonProps } from "./sandbar-DU4wpKRc.js";
|
|
352
8
|
/**
|
|
353
9
|
* A persistent, decision-bearing bar that floats near the bottom edge of the
|
|
354
10
|
* viewport. It surfaces pending state (primarily a form's unsaved ("dirty")
|
|
@@ -392,96 +48,5 @@ declare const DiscardButton: ({ appearance, children, "data-slot": dataSlot, int
|
|
|
392
48
|
* </Sandbar.Root>
|
|
393
49
|
* ```
|
|
394
50
|
*/
|
|
395
|
-
declare const Sandbar:
|
|
396
|
-
/**
|
|
397
|
-
* The always-mounted shell: fixed positioning, persistent live-region
|
|
398
|
-
* announcers, presence-managed panel. Toggle with the controlled `open`
|
|
399
|
-
* prop; never conditionally mount it.
|
|
400
|
-
*
|
|
401
|
-
* @see https://mantle.ngrok.com/components/feedback/sandbar#sandbarroot
|
|
402
|
-
*
|
|
403
|
-
* @example
|
|
404
|
-
* ```tsx
|
|
405
|
-
* <Sandbar.Root open={isDirty} handleRef={sandbarHandle}>
|
|
406
|
-
* <Sandbar.Message>You have unsaved changes</Sandbar.Message>
|
|
407
|
-
* <Sandbar.Actions>
|
|
408
|
-
* <Sandbar.DiscardButton onClick={reset}>Discard</Sandbar.DiscardButton>
|
|
409
|
-
* <Sandbar.SaveButton onClick={save} isLoading={isPending}>Save</Sandbar.SaveButton>
|
|
410
|
-
* </Sandbar.Actions>
|
|
411
|
-
* </Sandbar.Root>
|
|
412
|
-
* ```
|
|
413
|
-
*/
|
|
414
|
-
readonly Root: typeof Root;
|
|
415
|
-
/**
|
|
416
|
-
* The visible pending-state text. Also names the panel (via
|
|
417
|
-
* `aria-labelledby`) and feeds the polite screen-reader announcement.
|
|
418
|
-
*
|
|
419
|
-
* @see https://mantle.ngrok.com/components/feedback/sandbar#sandbarmessage
|
|
420
|
-
*
|
|
421
|
-
* @example
|
|
422
|
-
* ```tsx
|
|
423
|
-
* <Sandbar.Root open={isDirty} handleRef={sandbarHandle}>
|
|
424
|
-
* <Sandbar.Message>You have unsaved changes</Sandbar.Message>
|
|
425
|
-
* <Sandbar.Actions>
|
|
426
|
-
* <Sandbar.DiscardButton onClick={reset}>Discard</Sandbar.DiscardButton>
|
|
427
|
-
* <Sandbar.SaveButton onClick={save} isLoading={isPending}>Save</Sandbar.SaveButton>
|
|
428
|
-
* </Sandbar.Actions>
|
|
429
|
-
* </Sandbar.Root>
|
|
430
|
-
* ```
|
|
431
|
-
*/
|
|
432
|
-
readonly Message: typeof Message;
|
|
433
|
-
/**
|
|
434
|
-
* The action-button row. Holds `Sandbar.DiscardButton` and
|
|
435
|
-
* `Sandbar.SaveButton`, or your own composed `Button`s.
|
|
436
|
-
*
|
|
437
|
-
* @see https://mantle.ngrok.com/components/feedback/sandbar#sandbaractions
|
|
438
|
-
*
|
|
439
|
-
* @example
|
|
440
|
-
* ```tsx
|
|
441
|
-
* <Sandbar.Root open={isDirty} handleRef={sandbarHandle}>
|
|
442
|
-
* <Sandbar.Message>You have unsaved changes</Sandbar.Message>
|
|
443
|
-
* <Sandbar.Actions>
|
|
444
|
-
* <Sandbar.DiscardButton onClick={reset}>Discard</Sandbar.DiscardButton>
|
|
445
|
-
* <Sandbar.SaveButton onClick={save} isLoading={isPending}>Save</Sandbar.SaveButton>
|
|
446
|
-
* </Sandbar.Actions>
|
|
447
|
-
* </Sandbar.Root>
|
|
448
|
-
* ```
|
|
449
|
-
*/
|
|
450
|
-
readonly Actions: typeof Actions;
|
|
451
|
-
/**
|
|
452
|
-
* The primary (save) action. It announces "Saving changes…" and keeps focus
|
|
453
|
-
* from being lost while the save is pending.
|
|
454
|
-
*
|
|
455
|
-
* @see https://mantle.ngrok.com/components/feedback/sandbar#sandbarsavebutton
|
|
456
|
-
*
|
|
457
|
-
* @example
|
|
458
|
-
* ```tsx
|
|
459
|
-
* <Sandbar.Root open={isDirty} handleRef={sandbarHandle}>
|
|
460
|
-
* <Sandbar.Message>You have unsaved changes</Sandbar.Message>
|
|
461
|
-
* <Sandbar.Actions>
|
|
462
|
-
* <Sandbar.DiscardButton onClick={reset}>Discard</Sandbar.DiscardButton>
|
|
463
|
-
* <Sandbar.SaveButton onClick={save} isLoading={isPending}>Save</Sandbar.SaveButton>
|
|
464
|
-
* </Sandbar.Actions>
|
|
465
|
-
* </Sandbar.Root>
|
|
466
|
-
* ```
|
|
467
|
-
*/
|
|
468
|
-
readonly SaveButton: typeof SaveButton;
|
|
469
|
-
/**
|
|
470
|
-
* The secondary (discard/reset) action.
|
|
471
|
-
*
|
|
472
|
-
* @see https://mantle.ngrok.com/components/feedback/sandbar#sandbardiscardbutton
|
|
473
|
-
*
|
|
474
|
-
* @example
|
|
475
|
-
* ```tsx
|
|
476
|
-
* <Sandbar.Root open={isDirty} handleRef={sandbarHandle}>
|
|
477
|
-
* <Sandbar.Message>You have unsaved changes</Sandbar.Message>
|
|
478
|
-
* <Sandbar.Actions>
|
|
479
|
-
* <Sandbar.DiscardButton onClick={reset}>Discard</Sandbar.DiscardButton>
|
|
480
|
-
* <Sandbar.SaveButton onClick={save} isLoading={isPending}>Save</Sandbar.SaveButton>
|
|
481
|
-
* </Sandbar.Actions>
|
|
482
|
-
* </Sandbar.Root>
|
|
483
|
-
* ```
|
|
484
|
-
*/
|
|
485
|
-
readonly DiscardButton: typeof DiscardButton;
|
|
486
|
-
};
|
|
51
|
+
declare const Sandbar: typeof SandbarParts;
|
|
487
52
|
export { Sandbar, type SandbarActionsProps, type SandbarDiscardButtonProps, type SandbarHandle, type SandbarMessageProps, type SandbarRootProps, type SandbarSaveButtonProps };
|
package/dist/sandbar.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export*as Sandbar from"./sandbar-parts.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{t as e}from"./slot-CBcGhRdV.js";import{t}from"./sandboxed-on-click-DOw_Jkhk.js";import{jsx as n}from"react/jsx-runtime";const r=({allowClickEventDefault:r=!1,asChild:i=!1,children:a,onClick:o,ref:s,...c})=>{let l=i?e:`div`,{role:u,...d}=t({allowClickEventDefault:r,onClick:o});return/* @__PURE__ */ n(l,{ref:s,...c,...d,...!i&&{role:u},children:a})};export{r as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=({allowClickEventDefault:e=!1,onClick:t}={})=>({role:`presentation`,onClick:n=>{n.stopPropagation(),e||n.preventDefault(),t?.(n)}});export{e as t};
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @see https://mantle.ngrok.com/components/primitives/sandboxed-on-click
|
|
5
5
|
*/
|
|
6
|
-
import { n as WithAsChild } from "./as-child-DFxX3U2i.js";
|
|
7
6
|
import { ComponentProps, MouseEventHandler } from "react";
|
|
7
|
+
import { n as WithAsChild } from "./as-child-DFxX3U2i.js";
|
|
8
8
|
type BaseProps = {
|
|
9
9
|
/**
|
|
10
10
|
* Whether the click keeps its default behavior. When `false`, the `onClick`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{t as e}from"./sandboxed-on-click-Cg3lewoG.js";import{t}from"./sandboxed-on-click-DOw_Jkhk.js";export{e as SandboxedOnClick,t as sandboxedOnClickProps};
|
|
@@ -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{i as u}from"./chart-Bybyh2Dc.js";import{n as d,r as f}from"./chart-CmMcfDmv.js";import{useEffect as p}from"react";import{jsx as m}from"react/jsx-runtime";const h=e=>{let t=e.zKey!=null;return p(()=>{t&&f().catch(()=>{})},[t]),/* @__PURE__ */ m(c,{kind:`scatter`,componentName:`ScatterPlot`,slotName:`scatter-plot`,paintBackend:u,scatterView:d,...e})},g=e=>o(`ScatterPlot.Point`,`scatter`,e),_=e=>r(`ScatterPlot.Grid`,e),v=e=>s(`ScatterPlot.XAxis`,e),y=e=>n(`ScatterPlot.YAxis`,e),b=e=>t(`ScatterPlot.ReferenceLine`,e),x=e=>a(`ScatterPlot.Tooltip`,e),S=e=>/* @__PURE__ */ m(l,{partName:`ScatterPlot.Legend`,slotName:`scatter-plot`,...e}),C=t=>/* @__PURE__ */ m(e,{partName:`ScatterPlot.CopyButton`,slotName:`scatter-plot`,...t}),w=e=>/* @__PURE__ */ m(i,{slotName:`scatter-plot-list`,...e});export{g as a,x as c,w as i,v as l,_ as n,b as o,S as r,h as s,C as t,y as u};
|