@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/bar-chart.d.ts
CHANGED
|
@@ -3,390 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @see https://mantle.ngrok.com/components/charts/bar-chart
|
|
5
5
|
*/
|
|
6
|
-
import { a as
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
*/
|
|
10
|
-
type BarChartListProps = ChartListPrimitiveProps;
|
|
11
|
-
/**
|
|
12
|
-
* Props for {@link BarChart.Root}. Bars encode value by length from a shared
|
|
13
|
-
* zero baseline, so the y domain minimum is fixed at `0`. A truncated-bar
|
|
14
|
-
* axis is unrepresentable.
|
|
15
|
-
*/
|
|
16
|
-
type BarChartRootProps<TDatum extends ChartDatum = ChartDatum, TMode extends ChartMode = "interactive"> = Omit<ChartRootBaseProps, "yDomain"> & ChartAccessibilityProps<TMode> & {
|
|
17
|
-
/** Rows of data; each `BarChart.Bar` reads one numeric key per row. */
|
|
18
|
-
data: readonly TDatum[];
|
|
19
|
-
/**
|
|
20
|
-
* The key of each row's category (x) value. If no row has the key, the Root throws.
|
|
21
|
-
*/
|
|
22
|
-
xKey: Extract<keyof TDatum, string>;
|
|
23
|
-
/** Override the automatic y maximum. The minimum is always the zero baseline. */
|
|
24
|
-
yDomain?: [0, number | "auto"];
|
|
25
|
-
/**
|
|
26
|
-
* The direction the bars point. This names the bars, not an axis.
|
|
27
|
-
* `"vertical"` (default) bars stand up from a bottom baseline with
|
|
28
|
-
* categories along the x axis; `"horizontal"` bars run rightward from a
|
|
29
|
-
* left baseline with categories down the y axis, better for long category
|
|
30
|
-
* labels or many categories. The value axis, baseline, reference lines, and
|
|
31
|
-
* the two rung textures (`"perpendicular"` and `"parallel"`) all flip to
|
|
32
|
-
* match.
|
|
33
|
-
*/
|
|
34
|
-
orientation?: BarOrientation;
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* Props for {@link BarChart.Bar}.
|
|
38
|
-
*/
|
|
39
|
-
type BarChartBarProps = {
|
|
40
|
-
/**
|
|
41
|
-
* The row key this series reads its numeric values from.
|
|
42
|
-
* If no row has the key, the chart throws, so put the key in every row, with
|
|
43
|
-
* `null` for no value. A row with no value renders a gap.
|
|
44
|
-
*/
|
|
45
|
-
dataKey: string;
|
|
46
|
-
/** Display name for the legend, tooltip, and data table. Defaults to `dataKey`. */
|
|
47
|
-
label?: string;
|
|
48
|
-
/**
|
|
49
|
-
* The color the series paints: a mantle color name, the same `Color` that
|
|
50
|
-
* `Badge` takes, or any CSS color. Required: name every series' color on
|
|
51
|
-
* purpose. Give an "Other" series `"neutral"`, and a series that means good
|
|
52
|
-
* or bad a functional color such as `"danger"`.
|
|
53
|
-
*
|
|
54
|
-
* A static CSS color (raw hex) cannot follow the two themes, so prefer a
|
|
55
|
-
* `var(--your-token)` declared per theme.
|
|
56
|
-
*
|
|
57
|
-
* @example
|
|
58
|
-
* ```tsx
|
|
59
|
-
* <BarChart.Bar dataKey="errors" label="Errors" color="danger" />
|
|
60
|
-
* ```
|
|
61
|
-
*/
|
|
62
|
-
color: SeriesColor;
|
|
63
|
-
/**
|
|
64
|
-
* The fill texture the series wears, on the bars and on its legend key:
|
|
65
|
-
* `"solid"` (default), diagonal hatch lines at 45° (`"hatch"`), the 135°
|
|
66
|
-
* mirror (`"hatch-reverse"`), both (`"crosshatch"`), rungs perpendicular
|
|
67
|
-
* to the bar's length (`"perpendicular"`: horizontal lines on vertical
|
|
68
|
-
* bars), rungs parallel to it (`"parallel"`: vertical lines on vertical
|
|
69
|
-
* bars), the orthogonal lattice of both rung directions (`"grid"`), or an
|
|
70
|
-
* offset dot field (`"dots"`).
|
|
71
|
-
*
|
|
72
|
-
* The two rung textures flip with the Root's `orientation`, in opposite
|
|
73
|
-
* senses. Every other value is direction-free, `"grid"` included: it is the
|
|
74
|
-
* orthogonal lattice against `"crosshatch"`'s diagonal one.
|
|
75
|
-
*
|
|
76
|
-
* A textured series paints its marks in the full series color over a light
|
|
77
|
-
* tint of it, so it reads as the light member of its color's pair. Texture
|
|
78
|
-
* is a redundant identity encoding alongside color: grouped and stacked
|
|
79
|
-
* series stay distinguishable without color vision, in grayscale print, and
|
|
80
|
-
* under forced colors. Keep it purposeful: two series of one color told
|
|
81
|
-
* apart by texture, such as In and Out traffic, or the series in a pair that
|
|
82
|
-
* color alone cannot separate.
|
|
83
|
-
*/
|
|
84
|
-
texture?: BarTexture;
|
|
85
|
-
};
|
|
86
|
-
/**
|
|
87
|
-
* Props for {@link BarChart.Grid}.
|
|
88
|
-
*/
|
|
89
|
-
type BarChartGridProps = GridPrimitiveProps;
|
|
90
|
-
/**
|
|
91
|
-
* Props for {@link BarChart.XAxis}. The tick formatter receives the row's
|
|
92
|
-
* category value.
|
|
93
|
-
*/
|
|
94
|
-
type BarChartXAxisProps = XAxisPrimitiveProps;
|
|
95
|
-
/**
|
|
96
|
-
* Props for {@link BarChart.YAxis}.
|
|
97
|
-
*/
|
|
98
|
-
type BarChartYAxisProps = YAxisPrimitiveProps;
|
|
99
|
-
/**
|
|
100
|
-
* Props for {@link BarChart.ReferenceLine}.
|
|
101
|
-
*/
|
|
102
|
-
type BarChartReferenceLineProps = ReferenceLinePrimitiveProps;
|
|
103
|
-
/**
|
|
104
|
-
* Props for {@link BarChart.Tooltip}.
|
|
105
|
-
*/
|
|
106
|
-
type BarChartTooltipProps = TooltipPrimitiveProps;
|
|
107
|
-
/**
|
|
108
|
-
* Props for {@link BarChart.Legend}.
|
|
109
|
-
*/
|
|
110
|
-
type BarChartLegendProps = LegendPrimitiveProps;
|
|
111
|
-
/**
|
|
112
|
-
* Props for {@link BarChart.CopyButton}.
|
|
113
|
-
*/
|
|
114
|
-
type BarChartCopyButtonProps = CopyButtonPrimitiveProps;
|
|
115
|
-
/**
|
|
116
|
-
* The root of a bar chart: owns the data, the scales, the renderer,
|
|
117
|
-
* and the entire interaction contract (per-category hover with a lifted band
|
|
118
|
-
* and tooltip, keyboard stepping with polite announcements, an sr-only
|
|
119
|
-
* description, an sr-only data table, Enter/Space + click activation).
|
|
120
|
-
* Compose the chrome and series parts as children.
|
|
121
|
-
*
|
|
122
|
-
* A Root mounts dormant: a shell of the plot, the named overlay, and its
|
|
123
|
-
* sr-only description. It builds its paint surface and its engine
|
|
124
|
-
* once it comes within one viewport of the visible area, takes focus, or
|
|
125
|
-
* prints (on-screen charts first, a few milliseconds at a time), and it mounts
|
|
126
|
-
* the sr-only data table once focus lands inside it. A list of charts pays
|
|
127
|
-
* for the ones a reader can see, and a page of sparklines holds no hidden
|
|
128
|
-
* tables until a reader asks for one.
|
|
129
|
-
*
|
|
130
|
-
* The Root's own subtree is addressable by slot: `bar-chart` on the wrapper,
|
|
131
|
-
* then `bar-chart-plot`, `bar-chart-svg`,
|
|
132
|
-
* `bar-chart-crosshair`,
|
|
133
|
-
* `bar-chart-hover-band`, `bar-chart-markers`, `bar-chart-tooltip`,
|
|
134
|
-
* `bar-chart-description`, and, once focus lands inside the chart,
|
|
135
|
-
* `bar-chart-data-table`. A bar chart shows the band and never the crosshair
|
|
136
|
-
* or the markers. The surface and the three layers are engine-owned: absent
|
|
137
|
-
* from server HTML and from a dormant chart. The surface arrives at activation (near the viewport, on
|
|
138
|
-
* focus, or before print), and the layers arrive on the first hover or
|
|
139
|
-
* keyboard step. A static or decorative chart
|
|
140
|
-
* inserts the surface alone. The tooltip surface mounts on the
|
|
141
|
-
* first hover or keyboard step and stays.
|
|
142
|
-
*
|
|
143
|
-
* **Data attributes:**
|
|
144
|
-
*
|
|
145
|
-
* | Data Attribute | Value | Description |
|
|
146
|
-
* | --- | --- | --- |
|
|
147
|
-
* | `data-slot` | `"bar-chart-description"` | The `sr-only` description the overlay's `aria-describedby` points at: the chart kind, the category count, the first and last category, the series labels, and, on an interactive chart, the keyboard instructions. Omitted when `mode="decorative"`. |
|
|
148
|
-
* | `data-slot` | `"bar-chart-data-table"` | The `sr-only` data table. Mounts once focus lands inside the chart (`data-state` flips to `"engaged"`) and stays. Interactive charts only. |
|
|
149
|
-
* | `data-state` | `"dormant"` \| `"engaged"` | On the Root. Flips to `"engaged"` once focus lands inside the chart, and never flips back. The data table mounts with it. Visibility paints the chart but never flips it. Interactive charts only. |
|
|
150
|
-
*
|
|
151
|
-
* @see https://mantle.ngrok.com/components/charts/bar-chart#barchartroot
|
|
152
|
-
*
|
|
153
|
-
* @example
|
|
154
|
-
* ```tsx
|
|
155
|
-
* const data = [
|
|
156
|
-
* { month: "January", desktop: 186, mobile: 80 },
|
|
157
|
-
* { month: "February", desktop: 305, mobile: 200 },
|
|
158
|
-
* { month: "March", desktop: 237, mobile: 120 },
|
|
159
|
-
* ];
|
|
160
|
-
*
|
|
161
|
-
* <BarChart.Root data={data} xKey="month" aria-label="Visitors by month">
|
|
162
|
-
* <BarChart.Grid />
|
|
163
|
-
* <BarChart.XAxis />
|
|
164
|
-
* <BarChart.YAxis />
|
|
165
|
-
* <BarChart.Bar dataKey="desktop" label="Desktop" color="blue" />
|
|
166
|
-
* <BarChart.Bar dataKey="mobile" label="Mobile" color="emerald" />
|
|
167
|
-
* <BarChart.Legend />
|
|
168
|
-
* </BarChart.Root>
|
|
169
|
-
* ```
|
|
170
|
-
*/
|
|
171
|
-
declare const Root: <TDatum extends ChartDatum = ChartDatum, TMode extends ChartMode = "interactive">(props: BarChartRootProps<TDatum, TMode>) => import("react").JSX.Element;
|
|
172
|
-
/**
|
|
173
|
-
* One bar series. Renders nothing itself: it registers the series with the
|
|
174
|
-
* chart, which paints it. Compose one `Bar` per series; with
|
|
175
|
-
* `stacked` on the Root, bars stack from the baseline up in registration
|
|
176
|
-
* order, so a `Bar` that mounts later stacks on top whatever its position in
|
|
177
|
-
* the JSX. `texture` adds a pattern fill as a redundant identity encoding
|
|
178
|
-
* alongside color, worn by the bars and the series' legend key alike.
|
|
179
|
-
*
|
|
180
|
-
* @see https://mantle.ngrok.com/components/charts/bar-chart#barchartbar
|
|
181
|
-
*
|
|
182
|
-
* @example
|
|
183
|
-
* ```tsx
|
|
184
|
-
* <BarChart.Root data={data} xKey="month" aria-label="Visitors by month">
|
|
185
|
-
* <BarChart.Grid />
|
|
186
|
-
* <BarChart.XAxis />
|
|
187
|
-
* <BarChart.YAxis />
|
|
188
|
-
* <BarChart.Bar dataKey="desktop" label="Desktop" color="blue" />
|
|
189
|
-
* <BarChart.Bar dataKey="mobile" label="Mobile" color="emerald" />
|
|
190
|
-
* <BarChart.Legend />
|
|
191
|
-
* </BarChart.Root>
|
|
192
|
-
* ```
|
|
193
|
-
*/
|
|
194
|
-
declare const Bar: (props: BarChartBarProps) => null;
|
|
195
|
-
/**
|
|
196
|
-
* Hairline value gridlines behind the bars (renderless; the chart paints it).
|
|
197
|
-
* The default runs perpendicular to the bars: horizontal lines for vertical
|
|
198
|
-
* bars, vertical lines for horizontal bars. Pass `lines` to force a direction.
|
|
199
|
-
* Omit the part to omit the grid.
|
|
200
|
-
*
|
|
201
|
-
* @see https://mantle.ngrok.com/components/charts/bar-chart#barchartgrid
|
|
202
|
-
*
|
|
203
|
-
* @example
|
|
204
|
-
* ```tsx
|
|
205
|
-
* <BarChart.Root data={data} xKey="month" aria-label="Visitors by month">
|
|
206
|
-
* <BarChart.Grid />
|
|
207
|
-
* <BarChart.XAxis />
|
|
208
|
-
* <BarChart.YAxis />
|
|
209
|
-
* <BarChart.Bar dataKey="desktop" label="Desktop" color="blue" />
|
|
210
|
-
* <BarChart.Legend />
|
|
211
|
-
* </BarChart.Root>
|
|
212
|
-
* ```
|
|
213
|
-
*/
|
|
214
|
-
declare const Grid: (props: BarChartGridProps) => null;
|
|
215
|
-
/**
|
|
216
|
-
* Category labels for the bars (renderless; the chart paints it): along the
|
|
217
|
-
* bottom for vertical bars, down the left gutter for horizontal bars. Labels
|
|
218
|
-
* that would collide are skipped, never rotated.
|
|
219
|
-
*
|
|
220
|
-
* @see https://mantle.ngrok.com/components/charts/bar-chart#barchartxaxis
|
|
221
|
-
*
|
|
222
|
-
* @example
|
|
223
|
-
* ```tsx
|
|
224
|
-
* <BarChart.Root data={data} xKey="month" aria-label="Visitors by month">
|
|
225
|
-
* <BarChart.Grid />
|
|
226
|
-
* <BarChart.XAxis tickFormat={(month) => String(month).slice(0, 3)} />
|
|
227
|
-
* <BarChart.YAxis />
|
|
228
|
-
* <BarChart.Bar dataKey="desktop" label="Desktop" color="blue" />
|
|
229
|
-
* <BarChart.Legend />
|
|
230
|
-
* </BarChart.Root>
|
|
231
|
-
* ```
|
|
232
|
-
*/
|
|
233
|
-
declare const XAxis: (props: BarChartXAxisProps) => null;
|
|
234
|
-
/**
|
|
235
|
-
* Value tick labels (renderless; the chart paints it): along the left for
|
|
236
|
-
* vertical bars, across the bottom for horizontal bars. Ticks land on clean
|
|
237
|
-
* thousands-separated numbers.
|
|
238
|
-
*
|
|
239
|
-
* @see https://mantle.ngrok.com/components/charts/bar-chart#barchartyaxis
|
|
240
|
-
*
|
|
241
|
-
* @example
|
|
242
|
-
* ```tsx
|
|
243
|
-
* <BarChart.Root data={data} xKey="month" aria-label="Visitors by month">
|
|
244
|
-
* <BarChart.Grid />
|
|
245
|
-
* <BarChart.XAxis />
|
|
246
|
-
* <BarChart.YAxis tickFormat={(value) => `${value / 1000}k`} />
|
|
247
|
-
* <BarChart.Bar dataKey="desktop" label="Desktop" color="blue" />
|
|
248
|
-
* <BarChart.Legend />
|
|
249
|
-
* </BarChart.Root>
|
|
250
|
-
* ```
|
|
251
|
-
*/
|
|
252
|
-
declare const YAxis: (props: BarChartYAxisProps) => null;
|
|
253
|
-
/**
|
|
254
|
-
* A dashed marker at the value `y`, such as an SLO threshold, a budget, or a
|
|
255
|
-
* limit (renderless; the chart paints it). It crosses the value axis: a horizontal
|
|
256
|
-
* line for vertical bars, a vertical line for horizontal bars.
|
|
257
|
-
*
|
|
258
|
-
* @see https://mantle.ngrok.com/components/charts/bar-chart#barchartreferenceline
|
|
259
|
-
*
|
|
260
|
-
* @example
|
|
261
|
-
* ```tsx
|
|
262
|
-
* <BarChart.Root data={data} xKey="month" aria-label="Visitors by month">
|
|
263
|
-
* <BarChart.Grid />
|
|
264
|
-
* <BarChart.XAxis />
|
|
265
|
-
* <BarChart.YAxis />
|
|
266
|
-
* <BarChart.Bar dataKey="desktop" label="Desktop" color="blue" />
|
|
267
|
-
* <BarChart.ReferenceLine y={250} label="Capacity" />
|
|
268
|
-
* <BarChart.Legend />
|
|
269
|
-
* </BarChart.Root>
|
|
270
|
-
* ```
|
|
271
|
-
*/
|
|
272
|
-
declare const ReferenceLine: (props: BarChartReferenceLineProps) => null;
|
|
273
|
-
/**
|
|
274
|
-
* Customizes the hover/keyboard tooltip readout. The tooltip itself is part
|
|
275
|
-
* of `BarChart.Root`'s interaction contract and renders even when this part is
|
|
276
|
-
* absent. Compose it to format the label or values, append a footer, or
|
|
277
|
-
* replace the content entirely via the render-prop `children`.
|
|
278
|
-
*
|
|
279
|
-
* **Structure.** A `children` readout renders inside a
|
|
280
|
-
* `<div data-slot="bar-chart-tooltip-label">`. When it goes away, React removes
|
|
281
|
-
* that div instead of your own text nodes: a browser translation engine
|
|
282
|
-
* reparents a text node, and a removal aimed at one throws. The div is
|
|
283
|
-
* `display: contents`, so it lays out nothing of its own. To style it as a box,
|
|
284
|
-
* set a display of your own on it first.
|
|
285
|
-
*
|
|
286
|
-
* **Data attributes:**
|
|
287
|
-
*
|
|
288
|
-
* | Data Attribute | Value | Description |
|
|
289
|
-
* | --- | --- | --- |
|
|
290
|
-
* | `data-slot` | `"bar-chart-tooltip-label"` | On the `<div>` wrapping a `children` readout. The default readout has none. |
|
|
291
|
-
*
|
|
292
|
-
* @see https://mantle.ngrok.com/components/charts/bar-chart#barcharttooltip
|
|
293
|
-
*
|
|
294
|
-
* @example
|
|
295
|
-
* ```tsx
|
|
296
|
-
* <BarChart.Root data={data} xKey="month" aria-label="Visitors by month">
|
|
297
|
-
* <BarChart.Grid />
|
|
298
|
-
* <BarChart.XAxis />
|
|
299
|
-
* <BarChart.YAxis />
|
|
300
|
-
* <BarChart.Bar dataKey="desktop" label="Desktop" color="blue" />
|
|
301
|
-
* <BarChart.Tooltip valueFormat={(value) => `${value} visits`} footer="Click to view logs" />
|
|
302
|
-
* <BarChart.Legend />
|
|
303
|
-
* </BarChart.Root>
|
|
304
|
-
* ```
|
|
305
|
-
*/
|
|
306
|
-
declare const Tooltip: (props: BarChartTooltipProps) => null;
|
|
307
|
-
/**
|
|
308
|
-
* The legend: series names keyed by color swatches, rendered as real DOM in
|
|
309
|
-
* flow below the plot. Always compose it on multi-series charts: identity
|
|
310
|
-
* must never rely on color-matching alone. It renders nothing for a single
|
|
311
|
-
* series (the chart's title already names it).
|
|
312
|
-
*
|
|
313
|
-
* **Structure.** A `children` render prop renders inside a
|
|
314
|
-
* `<div data-slot="bar-chart-legend-label">`. When it goes away, React removes
|
|
315
|
-
* that div instead of your own text nodes: a browser translation engine
|
|
316
|
-
* reparents a text node, and a removal aimed at one throws. The div is
|
|
317
|
-
* `display: contents`, so it lays out nothing of its own. To style it as a box,
|
|
318
|
-
* set a display of your own on it first.
|
|
319
|
-
*
|
|
320
|
-
* **Data attributes:**
|
|
321
|
-
*
|
|
322
|
-
* | Data Attribute | Value | Description |
|
|
323
|
-
* | --- | --- | --- |
|
|
324
|
-
* | `data-slot` | `"bar-chart-legend"` | The legend list. `BarChart.Legend` renders it in flow below the plot. |
|
|
325
|
-
* | `data-slot` | `"bar-chart-legend-label"` | On the `<div>` wrapping a `children` render prop. The default legend has none. |
|
|
326
|
-
* | `data-texture` | `"solid"` \| `"hatch"` \| `"hatch-reverse"` \| `"crosshatch"` \| `"perpendicular"` \| `"parallel"` \| `"grid"` \| `"dots"` | On each series' swatch, naming the `texture` its `BarChart.Bar` registered. The swatch paints the pattern itself, so target this only to restyle a key. |
|
|
327
|
-
*
|
|
328
|
-
* @see https://mantle.ngrok.com/components/charts/bar-chart#barchartlegend
|
|
329
|
-
*
|
|
330
|
-
* @example
|
|
331
|
-
* ```tsx
|
|
332
|
-
* <BarChart.Root data={data} xKey="month" aria-label="Visitors by month">
|
|
333
|
-
* <BarChart.Grid />
|
|
334
|
-
* <BarChart.XAxis />
|
|
335
|
-
* <BarChart.YAxis />
|
|
336
|
-
* <BarChart.Bar dataKey="desktop" label="Desktop" color="blue" />
|
|
337
|
-
* <BarChart.Bar dataKey="mobile" label="Mobile" color="emerald" />
|
|
338
|
-
* <BarChart.Legend />
|
|
339
|
-
* </BarChart.Root>
|
|
340
|
-
* ```
|
|
341
|
-
*/
|
|
342
|
-
declare const Legend: (props: BarChartLegendProps) => import("react").JSX.Element;
|
|
343
|
-
/**
|
|
344
|
-
* A button that copies the chart's current data to the clipboard as a
|
|
345
|
-
* markdown table (ISO dates, plain numbers, one column per series). The table
|
|
346
|
-
* pastes into Slack, issues, docs, spreadsheets, and LLM chats. Renders
|
|
347
|
-
* in flow where composed (alongside `Legend`, below the plot); `Root` is
|
|
348
|
-
* relatively positioned, so `className` can dock it over a corner instead
|
|
349
|
-
* (e.g. `absolute right-0 top-0`).
|
|
350
|
-
*
|
|
351
|
-
* @see https://mantle.ngrok.com/components/charts/bar-chart#barchartcopybutton
|
|
352
|
-
*
|
|
353
|
-
* @example
|
|
354
|
-
* ```tsx
|
|
355
|
-
* <BarChart.Root data={data} xKey="month" aria-label="Visitors by month">
|
|
356
|
-
* <BarChart.Bar dataKey="desktop" label="Desktop" color="blue" />
|
|
357
|
-
* <BarChart.Bar dataKey="mobile" label="Mobile" color="emerald" />
|
|
358
|
-
* <BarChart.Legend />
|
|
359
|
-
* <BarChart.CopyButton />
|
|
360
|
-
* </BarChart.Root>
|
|
361
|
-
* ```
|
|
362
|
-
*/
|
|
363
|
-
declare const CopyButton: (props: BarChartCopyButtonProps) => import("react").JSX.Element;
|
|
364
|
-
/**
|
|
365
|
-
* Groups a list of charts, such as one chart per card, so they share one
|
|
366
|
-
* `role="status"` live region. A page of 100 charts mounts one region instead
|
|
367
|
-
* of one per chart, plus one for each `BarChart.CopyButton`. Each chart keeps
|
|
368
|
-
* its own tooltip, description, and data table.
|
|
369
|
-
*
|
|
370
|
-
* Renders a `div` (`bar-chart-list`) that holds the charts in a `display: contents`
|
|
371
|
-
* wrapper (`bar-chart-list-items`), so a grid or flex layout on the List reaches
|
|
372
|
-
* the cards, and the live region as its last child. No `asChild`: a list
|
|
373
|
-
* element such as `ul` cannot hold the live region as a child.
|
|
374
|
-
*
|
|
375
|
-
* @see https://mantle.ngrok.com/components/charts/bar-chart#barchartlist
|
|
376
|
-
*
|
|
377
|
-
* @example
|
|
378
|
-
* ```tsx
|
|
379
|
-
* <BarChart.List>
|
|
380
|
-
* {agents.map((agent) => (
|
|
381
|
-
* <BarChart.Root key={agent.id} data={agent.rows} xKey="month" aria-label={agent.name}>
|
|
382
|
-
* <BarChart.Bar dataKey="desktop" label="Desktop" color="blue" />
|
|
383
|
-
* <BarChart.Tooltip />
|
|
384
|
-
* </BarChart.Root>
|
|
385
|
-
* ))}
|
|
386
|
-
* </BarChart.List>
|
|
387
|
-
* ```
|
|
388
|
-
*/
|
|
389
|
-
declare const List: (props: BarChartListProps) => import("react").JSX.Element;
|
|
6
|
+
import { a as ChartMode, u as ChartDatumEvent } from "./chart-XvStK-oM.js";
|
|
7
|
+
import * as BarChartParts from "./bar-chart-parts.js";
|
|
8
|
+
import { a as BarChartLegendProps, c as BarChartRootProps, d as BarChartYAxisProps, i as BarChartGridProps, l as BarChartTooltipProps, n as BarChartBarProps, o as BarChartListProps, r as BarChartCopyButtonProps, s as BarChartReferenceLineProps, u as BarChartXAxisProps } from "./bar-chart-Cb5fA8V7.js";
|
|
390
9
|
/**
|
|
391
10
|
* A bar chart for comparing values across categories, with
|
|
392
11
|
* grouped and stacked variants. Each series names its own `color`. Interaction ships
|
|
@@ -456,203 +75,5 @@ declare const List: (props: BarChartListProps) => import("react").JSX.Element;
|
|
|
456
75
|
* </BarChart.Root>
|
|
457
76
|
* ```
|
|
458
77
|
*/
|
|
459
|
-
declare const BarChart:
|
|
460
|
-
/**
|
|
461
|
-
* The root of a bar chart: owns the data, the scales, the renderer,
|
|
462
|
-
* and the entire interaction contract.
|
|
463
|
-
*
|
|
464
|
-
* @see https://mantle.ngrok.com/components/charts/bar-chart#barchartroot
|
|
465
|
-
*
|
|
466
|
-
* @example
|
|
467
|
-
* ```tsx
|
|
468
|
-
* <BarChart.Root data={data} xKey="month" aria-label="Visitors by month">
|
|
469
|
-
* <BarChart.Grid />
|
|
470
|
-
* <BarChart.XAxis />
|
|
471
|
-
* <BarChart.YAxis />
|
|
472
|
-
* <BarChart.Bar dataKey="desktop" label="Desktop" color="blue" />
|
|
473
|
-
* <BarChart.Bar dataKey="mobile" label="Mobile" color="emerald" />
|
|
474
|
-
* <BarChart.Tooltip />
|
|
475
|
-
* <BarChart.Legend />
|
|
476
|
-
* </BarChart.Root>
|
|
477
|
-
* ```
|
|
478
|
-
*/
|
|
479
|
-
readonly Root: typeof Root;
|
|
480
|
-
/**
|
|
481
|
-
* One bar series; registers with the chart, which paints it.
|
|
482
|
-
*
|
|
483
|
-
* @see https://mantle.ngrok.com/components/charts/bar-chart#barchartbar
|
|
484
|
-
*
|
|
485
|
-
* @example
|
|
486
|
-
* ```tsx
|
|
487
|
-
* <BarChart.Root data={data} xKey="month" aria-label="Visitors by month">
|
|
488
|
-
* <BarChart.Grid />
|
|
489
|
-
* <BarChart.XAxis />
|
|
490
|
-
* <BarChart.YAxis />
|
|
491
|
-
* <BarChart.Bar dataKey="desktop" label="Desktop" color="blue" />
|
|
492
|
-
* <BarChart.Bar dataKey="mobile" label="Mobile" color="emerald" />
|
|
493
|
-
* <BarChart.Tooltip />
|
|
494
|
-
* <BarChart.Legend />
|
|
495
|
-
* </BarChart.Root>
|
|
496
|
-
* ```
|
|
497
|
-
*/
|
|
498
|
-
readonly Bar: typeof Bar;
|
|
499
|
-
/**
|
|
500
|
-
* Hairline value gridlines behind the bars (renderless; the chart paints it).
|
|
501
|
-
* The default runs perpendicular to the bars: horizontal lines for vertical
|
|
502
|
-
* bars, vertical lines for horizontal bars. Pass `lines` to force a direction.
|
|
503
|
-
* Omit the part to omit the grid.
|
|
504
|
-
*
|
|
505
|
-
* @see https://mantle.ngrok.com/components/charts/bar-chart#barchartgrid
|
|
506
|
-
*
|
|
507
|
-
* @example
|
|
508
|
-
* ```tsx
|
|
509
|
-
* <BarChart.Root data={data} xKey="month" aria-label="Visitors by month">
|
|
510
|
-
* <BarChart.Grid />
|
|
511
|
-
* <BarChart.XAxis />
|
|
512
|
-
* <BarChart.YAxis />
|
|
513
|
-
* <BarChart.Bar dataKey="desktop" label="Desktop" color="blue" />
|
|
514
|
-
* <BarChart.Bar dataKey="mobile" label="Mobile" color="emerald" />
|
|
515
|
-
* <BarChart.Tooltip />
|
|
516
|
-
* <BarChart.Legend />
|
|
517
|
-
* </BarChart.Root>
|
|
518
|
-
* ```
|
|
519
|
-
*/
|
|
520
|
-
readonly Grid: typeof Grid;
|
|
521
|
-
/**
|
|
522
|
-
* Category labels for the bars (renderless; the chart paints it): along the
|
|
523
|
-
* bottom for vertical bars, down the left gutter for horizontal bars. Labels
|
|
524
|
-
* that would collide are skipped, never rotated.
|
|
525
|
-
*
|
|
526
|
-
* @see https://mantle.ngrok.com/components/charts/bar-chart#barchartxaxis
|
|
527
|
-
*
|
|
528
|
-
* @example
|
|
529
|
-
* ```tsx
|
|
530
|
-
* <BarChart.Root data={data} xKey="month" aria-label="Visitors by month">
|
|
531
|
-
* <BarChart.Grid />
|
|
532
|
-
* <BarChart.XAxis tickFormat={(month) => String(month).slice(0, 3)} />
|
|
533
|
-
* <BarChart.YAxis />
|
|
534
|
-
* <BarChart.Bar dataKey="desktop" label="Desktop" color="blue" />
|
|
535
|
-
* <BarChart.Bar dataKey="mobile" label="Mobile" color="emerald" />
|
|
536
|
-
* <BarChart.Tooltip />
|
|
537
|
-
* <BarChart.Legend />
|
|
538
|
-
* </BarChart.Root>
|
|
539
|
-
* ```
|
|
540
|
-
*/
|
|
541
|
-
readonly XAxis: typeof XAxis;
|
|
542
|
-
/**
|
|
543
|
-
* Value tick labels (renderless; the chart paints it): along the left for
|
|
544
|
-
* vertical bars, across the bottom for horizontal bars. Ticks land on clean
|
|
545
|
-
* thousands-separated numbers.
|
|
546
|
-
*
|
|
547
|
-
* @see https://mantle.ngrok.com/components/charts/bar-chart#barchartyaxis
|
|
548
|
-
*
|
|
549
|
-
* @example
|
|
550
|
-
* ```tsx
|
|
551
|
-
* <BarChart.Root data={data} xKey="month" aria-label="Visitors by month">
|
|
552
|
-
* <BarChart.Grid />
|
|
553
|
-
* <BarChart.XAxis />
|
|
554
|
-
* <BarChart.YAxis tickFormat={(value) => `${value / 1000}k`} />
|
|
555
|
-
* <BarChart.Bar dataKey="desktop" label="Desktop" color="blue" />
|
|
556
|
-
* <BarChart.Bar dataKey="mobile" label="Mobile" color="emerald" />
|
|
557
|
-
* <BarChart.Tooltip />
|
|
558
|
-
* <BarChart.Legend />
|
|
559
|
-
* </BarChart.Root>
|
|
560
|
-
* ```
|
|
561
|
-
*/
|
|
562
|
-
readonly YAxis: typeof YAxis;
|
|
563
|
-
/**
|
|
564
|
-
* A dashed marker at the value `y`, such as an SLO threshold, a budget, or a
|
|
565
|
-
* limit (renderless; the chart paints it). It crosses the value axis: a horizontal
|
|
566
|
-
* line for vertical bars, a vertical line for horizontal bars.
|
|
567
|
-
*
|
|
568
|
-
* @see https://mantle.ngrok.com/components/charts/bar-chart#barchartreferenceline
|
|
569
|
-
*
|
|
570
|
-
* @example
|
|
571
|
-
* ```tsx
|
|
572
|
-
* <BarChart.Root data={data} xKey="month" aria-label="Visitors by month">
|
|
573
|
-
* <BarChart.Grid />
|
|
574
|
-
* <BarChart.XAxis />
|
|
575
|
-
* <BarChart.YAxis />
|
|
576
|
-
* <BarChart.Bar dataKey="desktop" label="Desktop" color="blue" />
|
|
577
|
-
* <BarChart.ReferenceLine y={250} label="Capacity" />
|
|
578
|
-
* <BarChart.Tooltip />
|
|
579
|
-
* <BarChart.Legend />
|
|
580
|
-
* </BarChart.Root>
|
|
581
|
-
* ```
|
|
582
|
-
*/
|
|
583
|
-
readonly ReferenceLine: typeof ReferenceLine;
|
|
584
|
-
/**
|
|
585
|
-
* Customizes the always-on hover/keyboard tooltip readout.
|
|
586
|
-
*
|
|
587
|
-
* @see https://mantle.ngrok.com/components/charts/bar-chart#barcharttooltip
|
|
588
|
-
*
|
|
589
|
-
* @example
|
|
590
|
-
* ```tsx
|
|
591
|
-
* <BarChart.Root data={data} xKey="month" aria-label="Visitors by month">
|
|
592
|
-
* <BarChart.Grid />
|
|
593
|
-
* <BarChart.XAxis />
|
|
594
|
-
* <BarChart.YAxis />
|
|
595
|
-
* <BarChart.Bar dataKey="desktop" label="Desktop" color="blue" />
|
|
596
|
-
* <BarChart.Bar dataKey="mobile" label="Mobile" color="emerald" />
|
|
597
|
-
* <BarChart.Tooltip valueFormat={(value) => `${value} visits`} />
|
|
598
|
-
* <BarChart.Legend />
|
|
599
|
-
* </BarChart.Root>
|
|
600
|
-
* ```
|
|
601
|
-
*/
|
|
602
|
-
readonly Tooltip: typeof Tooltip;
|
|
603
|
-
/**
|
|
604
|
-
* The legend; always compose it on multi-series charts. Renders nothing for
|
|
605
|
-
* a single series.
|
|
606
|
-
*
|
|
607
|
-
* @see https://mantle.ngrok.com/components/charts/bar-chart#barchartlegend
|
|
608
|
-
*
|
|
609
|
-
* @example
|
|
610
|
-
* ```tsx
|
|
611
|
-
* <BarChart.Root data={data} xKey="month" aria-label="Visitors by month">
|
|
612
|
-
* <BarChart.Grid />
|
|
613
|
-
* <BarChart.XAxis />
|
|
614
|
-
* <BarChart.YAxis />
|
|
615
|
-
* <BarChart.Bar dataKey="desktop" label="Desktop" color="blue" />
|
|
616
|
-
* <BarChart.Bar dataKey="mobile" label="Mobile" color="emerald" />
|
|
617
|
-
* <BarChart.Tooltip />
|
|
618
|
-
* <BarChart.Legend />
|
|
619
|
-
* </BarChart.Root>
|
|
620
|
-
* ```
|
|
621
|
-
*/
|
|
622
|
-
readonly Legend: typeof Legend;
|
|
623
|
-
/**
|
|
624
|
-
* Copies the chart's current data to the clipboard as a markdown table.
|
|
625
|
-
*
|
|
626
|
-
* @see https://mantle.ngrok.com/components/charts/bar-chart#barchartcopybutton
|
|
627
|
-
*
|
|
628
|
-
* @example
|
|
629
|
-
* ```tsx
|
|
630
|
-
* <BarChart.Root data={data} xKey="month" aria-label="Visitors by month">
|
|
631
|
-
* <BarChart.Bar dataKey="desktop" label="Desktop" color="blue" />
|
|
632
|
-
* <BarChart.Bar dataKey="mobile" label="Mobile" color="emerald" />
|
|
633
|
-
* <BarChart.Legend />
|
|
634
|
-
* <BarChart.CopyButton />
|
|
635
|
-
* </BarChart.Root>
|
|
636
|
-
* ```
|
|
637
|
-
*/
|
|
638
|
-
readonly CopyButton: typeof CopyButton;
|
|
639
|
-
/**
|
|
640
|
-
* Groups a list of charts so they share one live region.
|
|
641
|
-
*
|
|
642
|
-
* @see https://mantle.ngrok.com/components/charts/bar-chart#barchartlist
|
|
643
|
-
*
|
|
644
|
-
* @example
|
|
645
|
-
* ```tsx
|
|
646
|
-
* <BarChart.List>
|
|
647
|
-
* {agents.map((agent) => (
|
|
648
|
-
* <BarChart.Root key={agent.id} data={agent.rows} xKey="month" aria-label={agent.name}>
|
|
649
|
-
* <BarChart.Bar dataKey="desktop" label="Desktop" color="blue" />
|
|
650
|
-
* <BarChart.Tooltip />
|
|
651
|
-
* </BarChart.Root>
|
|
652
|
-
* ))}
|
|
653
|
-
* </BarChart.List>
|
|
654
|
-
* ```
|
|
655
|
-
*/
|
|
656
|
-
readonly List: typeof List;
|
|
657
|
-
};
|
|
78
|
+
declare const BarChart: typeof BarChartParts;
|
|
658
79
|
export { BarChart, type BarChartBarProps, type BarChartCopyButtonProps, type BarChartGridProps, type BarChartLegendProps, type BarChartListProps, type BarChartReferenceLineProps, type BarChartRootProps, type BarChartTooltipProps, type BarChartXAxisProps, type BarChartYAxisProps, type ChartDatumEvent, type ChartMode };
|
package/dist/bar-chart.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export*as BarChart from"./bar-chart-parts.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=[];let t=()=>{};const n=(e,t,n)=>{let r=e.style.getPropertyValue(t),i=e.style.getPropertyPriority(t);return e.style.setProperty(t,n),()=>{r===``?e.style.removeProperty(t):e.style.setProperty(t,r,i)}},r=e=>`${e.getAttribute(`aria-labelledby`)??``} ${e.getAttribute(`aria-describedby`)??``}`.split(/\s+/).map(e=>e===``?null:document.getElementById(e)).filter(e=>e!=null),i=e=>{let t=[e,...e.querySelectorAll(`[id], [aria-labelledby], [aria-describedby]`)],n=[];for(let e of t)`labels`in e&&e.labels instanceof NodeList&&n.push(...Array.from(e.labels,e=>e).filter(e=>e instanceof Element)),n.push(...r(e));return n},a=e=>{let t=document.documentElement,a=[],o=window.innerWidth-t.clientWidth;a.push(n(t,`overflow`,`hidden`)),o>0&&a.push(n(t,`padding-right`,`${o}px`));let s=t=>!e.some(e=>e.contains(t)),c=/* @__PURE__ */ new Set,l=e=>{for(let t=e;t!=null&&t!==document.body;)c.add(t),t=t.parentElement};for(let t of[...e,...e.flatMap(i).filter(s)])l(t);for(let e of c)for(let t of r(e))l(t);let u=e=>{!(e instanceof HTMLElement)||c.has(e)||e.inert||(e.inert=!0,a.push(()=>{e.inert=!1}))},d=/* @__PURE__ */ new Set;for(let e of c)e.parentElement!=null&&d.add(e.parentElement);for(let e of d)for(let t of e.children)u(t);let f=new MutationObserver(e=>{for(let t of e)for(let e of t.addedNodes)u(e)});for(let e of d)f.observe(e,{childList:!0});return a.push(()=>f.disconnect()),()=>{for(let e of a.toReversed())e()}},o=()=>{t();let n=e.at(-1);t=n==null?()=>{}:a(n.keep)},s=t=>{let n={keep:t};return e.push(n),o(),Object.assign(()=>{let t=e.indexOf(n);t!==-1&&(e.splice(t,1),t===e.length&&o())},{update:t=>{n.keep=t,e.at(-1)===n&&o()}})};export{s as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{useId as e,useLayoutEffect as t,useRef as n,useState as r}from"react";import{flushSync as i}from"react-dom";import{t as a}from"./behaviors-DHVC34f9.js";const o=({value:i,defaultValue:o,onValueChange:s,orientation:c=`horizontal`,activationMode:l=`automatic`})=>{let[u,d]=a({value:i,defaultValue:o,onChange:e=>{e!=null&&s?.(e)}}),[f,p]=r(null),m=n(u);return t(()=>{m.current=u}),{baseId:e(),value:u,currentValue:()=>m.current,select:d,stop:f!=null&&(f.inside||f.under===u)?f.value:u,focusTab:e=>{p({value:e,under:u,inside:!0})},leaveList:()=>{p(e=>e&&{...e,inside:!1})},orientation:c,activationMode:l}},s=(e,t)=>`${e.baseId}-trigger-${t}`,c=(e,t)=>`${e.baseId}-content-${t}`,l=e=>e==null?[]:Array.from(e.querySelectorAll(`[role="tab"]:not(:disabled)`)),u=(e,t)=>{for(let n of t){n.focus();let t=e.ownerDocument.activeElement;if(t===n||t!==e)return}},d=/* @__PURE__ */ new WeakSet,f=e=>{let t=e?.closest(`[role="tablist"]`);t!=null&&!t.hasAttribute(`tabindex`)&&(t.tabIndex=0)},p=e=>{e.target===e.currentTarget&&e.preventDefault()},m=e=>{let t=e.currentTarget;if(e.target!==t)return;let n=l(t);u(t,[...n.filter(e=>e.getAttribute(`aria-selected`)===`true`),...n.filter(e=>e.tabIndex===0),...n])},h=e=>({role:`tablist`,"aria-orientation":e.orientation,onFocus:m,onMouseDown:p}),g={ArrowLeft:`previous`,ArrowUp:`previous`,ArrowRight:`next`,ArrowDown:`next`,Home:`first`,PageUp:`first`,End:`last`,PageDown:`last`},_={ArrowLeft:`ArrowRight`,ArrowRight:`ArrowLeft`},v=(e,{tab:t,eventKey:n,loop:r})=>{let a=t.closest(`[role="tablist"]`),o=_[n],s=o!=null&&a!=null&&getComputedStyle(a).direction===`rtl`?o:n,c=e.orientation===`horizontal`?/^Arrow(Up|Down)$/:/^Arrow(Left|Right)$/,d=g[s];if(d==null||c.test(s))return!1;let f=l(a),p=f.indexOf(t),m;m=d===`first`?f:d===`last`?f.toReversed():d===`next`?[...f.slice(p+1),...r?f.slice(0,p):[]]:[...f.slice(0,Math.max(p,0)).toReversed(),...r?f.slice(p+1).toReversed():[]];let h=e.activationMode===`automatic`?m.find(e=>typeof e.checkVisibility!=`function`||e.checkVisibility({visibilityProperty:!0})):null,v=`${e.baseId}-trigger-`;if(h==null||!h.id.startsWith(v))return u(t,m),!0;i(()=>{e.select(h.id.slice(v.length))});let b=y;y=h;try{u(t,m)}finally{y=b}return!0};let y=null;const b=(e,t,n)=>{let r=y;y=t;try{t.focus({focusVisible:!1})}finally{y=r}e.select(n)},x=(e,{value:t,disabled:n=!1,loop:r=!0})=>{let i=e.value===t;return{role:`tab`,id:s(e,t),"aria-selected":i,"aria-controls":c(e,t),tabIndex:e.stop===t?0:-1,disabled:n,ref:n?void 0:f,onMouseDown:r=>{let i=r.currentTarget;n||r.button!==0||r.ctrlKey||i.matches(`a[href]`)?r.preventDefault():b(e,i,t)},onClick:r=>{let i=r.currentTarget;n||!i.matches(`a[href]`)||r.button!==0||r.altKey||r.ctrlKey||r.metaKey||r.shiftKey||b(e,i,t)},onKeyDown:i=>{let a=i.currentTarget;if(i.key===`Tab`&&i.shiftKey){let e=a.closest(`[role="tablist"]`);e?.getAttribute(`tabindex`)===`0`&&(e.tabIndex=-1,d.add(e));return}if(n||i.target!==a)return;if(!i.altKey&&!i.ctrlKey&&!i.metaKey&&!i.shiftKey&&v(e,{tab:a,eventKey:i.key,loop:r})){i.preventDefault();return}let o=a.matches(`a[href]`);(i.key===` `||i.key===`Enter`&&!o)&&(o&&i.preventDefault(),e.select(t))},onFocus:r=>{if(n)return;let a=r.currentTarget;e.focusTab(t),a!==y&&!i&&e.activationMode===`automatic`&&e.select(t)},onBlur:t=>{let n=t.currentTarget.closest(`[role="tablist"]`),r=t.relatedTarget;n!=null&&!(r instanceof Node&&n.contains(r))&&(d.delete(n)&&(n.tabIndex=0),e.leaveList())}}},S=(e,{value:t,forceMount:n=!1,hiddenUntilFound:r=!1,hydrated:a=!1})=>{let o=e.value===t;return{shown:o||n||r,panelProps:{role:`tabpanel`,id:c(e,t),"aria-labelledby":s(e,t),tabIndex:r&&!o?-1:0,hidden:!o&&!r||void 0,suppressHydrationWarning:r||void 0,...r&&!o?{HIDDEN:`until-found`}:{},"aria-hidden":r&&a&&!o||void 0},revealRef:r?n=>{if(n==null)return;let r=()=>{e.currentValue()===t||n.hasAttribute(`hidden`)||(i(()=>{e.select(t)}),e.currentValue()!==t&&n.setAttribute(`hidden`,`until-found`))},a=new MutationObserver(r);return a.observe(n,{attributeFilter:[`hidden`]}),queueMicrotask(r),()=>{a.disconnect()}}:void 0}};export{o as i,S as n,x as r,h as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{useCallback as e,useRef as t}from"react";import{t as n}from"./hooks-C9b-2wGy.js";import{t as r}from"./hooks-BeLOGKwE.js";import{a as i,o as a}from"./layer-container-DDOZJ0fn.js";import{t as o}from"./behaviors-CHF5PT3C.js";import{t as s}from"./float-C_vwTtzU.js";import{n as c,r as l}from"./float-OhVY3cf4.js";const u=({anchorRef:u,ownerRef:d,onOutsidePress:f})=>{let p=a(),m=n(f),h=f!=null,g=r(),_=t(null),v=i(p,_),y=e(e=>{if(_.current=e,e==null)return;c&&e.showPopover();let t,n=!1,r=()=>{let r=u.current;if(n||!(r instanceof HTMLElement))return;let i=s({anchor:r,floating:e,side:`bottom`,align:`start`,sideOffset:8}),a=e.ownerDocument,c=t=>{let{target:n}=t;t.button!==0||n instanceof Node&&(e.contains(n)||r.contains(n))||(o(),m(t))};h&&a.addEventListener(`pointerdown`,c,{capture:!0}),t=()=>{a.removeEventListener(`pointerdown`,c,{capture:!0}),i()};let l=d?.current;l!=null&&!r.contains(a.activeElement)&&l.focus({preventScroll:!0})};return u.current==null?queueMicrotask(r):r(),()=>{n=!0,t?.(),e.contains(document.activeElement)&&d?.current?.focus({preventScroll:!0})}},[u,d,h,m]);return{portalTarget:g&&!v?l(p):null,popupRef:y}};export{u as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e){let t=t=>{t.detail!==0&&(n(),e?.()!==!1&&(t.preventDefault(),t.stopPropagation()))},n=()=>{window.removeEventListener(`click`,t,{capture:!0}),window.removeEventListener(`pointercancel`,n,{capture:!0}),window.removeEventListener(`pointerdown`,n,{capture:!0})};window.addEventListener(`click`,t,{capture:!0}),window.addEventListener(`pointercancel`,n,{capture:!0}),window.addEventListener(`pointerdown`,n,{capture:!0})}export{e as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{useRef as e}from"react";import{flushSync as t}from"react-dom";import{t as n}from"./behaviors-DHVC34f9.js";import{i as r}from"./behaviors-Mkc_HjTB.js";const i=({value:t,defaultValue:i,onValueChange:a,open:o,defaultOpen:s=!1,onOpenChange:c,disabled:l=!1})=>{let[u,d]=n({value:t,defaultValue:i,onChange:e=>{e!=null&&a?.(e)}}),[f,p]=n({value:o,defaultValue:s,onChange:c}),m=e(null);return{open:f,setOpen:p,value:u,disabled:l,listbox:r({selected:u==null?[]:[u],onSelect:e=>{d(e),p(!1)},ownerRef:m}),triggerRef:m}},a={ArrowDown:`selected`,ArrowUp:`selected`,Enter:`selected`," ":`selected`,Home:`first`,End:`last`},o={ArrowDown:`next`,ArrowUp:`previous`,Home:`first`,End:`last`},s=e=>{let{open:n,setOpen:r,listbox:i,disabled:s}=e,c=e=>{i.moveOnOpen(e),r(!0)},l=()=>{let{activeId:e}=i.getStore().get(),t=e==null?null:document.getElementById(e);t?.dataset.value!=null&&t.getAttribute(`aria-disabled`)!==`true`?t.click():r(!1)};return{ref:e.triggerRef,type:`button`,role:`combobox`,disabled:s,"aria-haspopup":`listbox`,"aria-expanded":n,"aria-controls":n?i.id:void 0,"aria-activedescendant":void 0,onClick:()=>{n?r(!1):(e.triggerRef.current?.focus(),c(`selected`))},onBlur:()=>{r(!1)},onKeyDown:e=>{let{key:s}=e;if(!n){let n=a[s];if(n!=null){e.preventDefault(),c(n);return}e.altKey||e.ctrlKey||e.metaKey||s.length!==1||(t(()=>{r(!0)}),i.typeahead(s));return}if(e.altKey&&s===`ArrowUp`){e.preventDefault(),l();return}let u=o[s];if(u!=null)e.preventDefault(),i.move(u);else switch(s){case`Enter`:e.preventDefault(),l();return;case` `:e.preventDefault(),i.typeahead(s)||l();return;case`Escape`:e.preventDefault(),r(!1);return;case`Tab`:e.preventDefault();return;default:e.altKey||e.ctrlKey||e.metaKey||s.length!==1||(e.preventDefault(),i.typeahead(s))}}}};export{s as n,i as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=`--_value`,t=`--_start`,n=`--_end`;function r({controlled:e,min:t,max:n,step:r,minStepsBetweenThumbs:i,preserveThumbOrder:a,orientation:c,inverted:d,dir:w,onValueChange:T,onValueCommit:E,formatValue:D}){let O=e=>c===`vertical`?d?`top`:`bottom`:(w??getComputedStyle(e).direction)===`rtl`===d?`left`:`right`,k=({root:o,next:c,index:l,commit:u,keyboard:d})=>{let f=_(o),p=f.values,m=x({values:p,next:c,index:l,min:t,max:n,step:r,minStepsBetweenThumbs:i,preserveThumbOrder:a});return m==null?l:(o.removeAttribute(s),f.inputs[m.index]?.focus({preventScroll:!0,focusVisible:d}),e||v(f,m.values,{min:t,formatValue:D}),y({inputs:f.inputs,before:p,after:m.values,grid:{min:t,step:r}}),T?.(m.values),u&&E?.(m.values),m.index)};return{rootProps:{onPointerDown:e=>{let r=e.currentTarget,i=e.target,{inputs:a,values:c}=_(r);if(m.has(r)||e.button!==0||!(i instanceof Element)||!(`setPointerCapture`in i)||a[0]?.matches(`:disabled`)!==!1)return;i.setPointerCapture(e.pointerId),e.preventDefault();let u=O(r),d=r.getBoundingClientRect(),f=b({event:e,rect:d,edge:u,min:t,max:n}),p=a.findIndex(e=>e===i||e.parentElement===i),h=c[p];if(h!=null){a[p]?.focus({preventScroll:!0,focusVisible:!1}),r.setAttribute(o,``),m.set(r,{pointerId:e.pointerId,index:p,rect:d,before:c,edge:u,offset:r.hasAttribute(s)?0:f-h});return}let g=k({root:r,next:f,index:C(c,f),commit:!1,keyboard:!1});l(r),r.setAttribute(o,``),m.set(r,{pointerId:e.pointerId,index:g,rect:d,before:c,edge:u,offset:0})},onPointerMove:e=>{let r=e.currentTarget,i=m.get(r),a=e.target;if(i?.pointerId!==e.pointerId||!(a instanceof Element)||!a.hasPointerCapture(e.pointerId))return;let o=b({event:e,rect:i.rect,edge:i.edge,min:t,max:n})-i.offset;i.index=k({root:r,next:o,index:i.index,commit:!1,keyboard:!1})},onLostPointerCapture:e=>{let t=e.currentTarget,n=m.get(t);if(n?.pointerId!==e.pointerId)return;m.delete(t),t.removeAttribute(o);let{values:r}=_(t);String(r)!==String(n.before)&&E?.(r)},onKeyDown:e=>{let a=e.currentTarget,{inputs:o,values:s}=_(a),c=o.findIndex(t=>t===e.target),l=s[c];if(l==null)return;let u=i*r,d;if(e.key===`Home`)d=Math.max(t,(s[c-1]??-1/0)+u);else if(e.key===`End`)d=Math.min(n,(s[c+1]??1/0)-u);else if(p.has(e.key)){let n=f[O(a)].some(t=>t===e.key),i=e.key.startsWith(`Page`)||e.shiftKey;d=S(l,{min:t,step:r,direction:n?-1:1,multiplier:i?10:1})}else return;e.preventDefault(),k({root:a,next:d,index:c,commit:!0,keyboard:!0})}},inputProps:{onChange:n=>{let i=n.currentTarget,a=i.parentElement?.parentElement;if(h||a==null)return;let{inputs:o,values:c}=_(a);if(g){let e=o.map(e=>e.valueAsNumber);a.removeAttribute(s);for(let[n,i]of o.entries())i.step=u(e[n]??t,{min:t,step:r})?String(r):`any`;String(e)!==String(c)&&(v(_(a),e,{min:t,formatValue:D}),T?.(e));return}let l=o.indexOf(i);k({root:a,next:i.valueAsNumber,index:l,commit:!0,keyboard:!0}),!e&&String(_(a).values)===String(c)&&(i.value=String(c[l]))}}}}function i(e){if(e==null)return;e.addEventListener(`touchstart`,a,{passive:!1});let t=e.querySelector(`input`)?.form,n=()=>{for(let t of _(e).inputs)t.step=`any`;setTimeout(()=>{g=!0;try{for(let t of _(e).inputs)t.dispatchEvent(new Event(`input`,{bubbles:!0}))}finally{g=!1}})};return t?.addEventListener(`reset`,n),()=>{e.removeEventListener(`touchstart`,a),t?.removeEventListener(`reset`,n)}}function a(e){e.target instanceof HTMLInputElement&&e.preventDefault()}const o=`data-dragging`,s=`data-track-press`,c=/* @__PURE__ */ new WeakMap;function l(e){e.setAttribute(s,``),clearTimeout(c.get(e)),c.set(e,setTimeout(()=>e.removeAttribute(s),250))}function u(e,{min:t,step:n}){let r=(e-t)/n;return Math.abs(r-Math.round(r))<1e-9}function d(r,i){return{range:{[t]:r.length>1?Math.min(...r):i,[n]:Math.max(...r)},thumbs:r.map(t=>({[e]:t}))}}const f={left:[`PageDown`,`ArrowDown`,`ArrowLeft`],right:[`PageDown`,`ArrowDown`,`ArrowRight`],bottom:[`PageDown`,`ArrowDown`,`ArrowLeft`],top:[`PageDown`,`ArrowUp`,`ArrowLeft`]},p=/* @__PURE__ */ new Set([`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`PageUp`,`PageDown`]),m=/* @__PURE__ */ new WeakMap;let h=!1,g=!1;function _(t){let n=[...t.children].filter(e=>e instanceof HTMLElement&&e.dataset.slot===`slider-thumb`),r=n.flatMap(e=>e.firstElementChild instanceof HTMLInputElement?[e.firstElementChild]:[]);return{range:t.querySelector(`[data-slot='slider-range']`),thumbs:n,inputs:r,values:n.map(t=>Number(t.style.getPropertyValue(e)))}}function v({range:r,thumbs:i,inputs:a},o,{min:s,formatValue:c}){let l=d(o,s);for(let[t,n]of i.entries()){let r=o[t]??s;n.style.setProperty(e,String(r)),c==null?a[t]?.removeAttribute(`aria-valuetext`):a[t]?.setAttribute(`aria-valuetext`,c(r))}r?.style.setProperty(t,String(l.range[t])),r?.style.setProperty(n,String(l.range[n]))}function y({inputs:e,before:t,after:n,grid:r}){h=!0;try{for(let[i,a]of e.entries()){let e=n[i];e!=null&&e!==t[i]&&(a.step=u(e,r)?String(r.step):`any`,Reflect.set(HTMLInputElement.prototype,`value`,String(e),a),a.dispatchEvent(new Event(`input`,{bubbles:!0})))}}finally{h=!1}}function b({event:e,rect:t,edge:n,min:r,max:i}){let a=n===`top`||n===`bottom`,o=a?e.clientY-t.top:e.clientX-t.left,s=a?t.height:t.width;if(s===0)return r;let c=o/s;return r+(i-r)*(n===`left`||n===`top`?c:1-c)}function x({values:e,next:t,index:n,min:r,max:i,step:a,minStepsBetweenThumbs:o,preserveThumbOrder:s}){let c=Math.max(E(a),E(r)),l=w(T(Math.round((t-r)/a)*a+r,c),r,i),u=o*a,d=s?w(l,(e[n-1]??r-u)+u,(e[n+1]??i+u)-u):l,f=e.with(n,d).toSorted((e,t)=>e-t);return f.some((e,t)=>t>0&&e-(f[t-1]??e)<u)||String(f)===String(e)?null:{values:f,index:f[n]===d?n:f.indexOf(d)}}function S(e,{min:t,step:n,direction:r,multiplier:i}){let a=Math.max(E(n),E(t)),o=(e-t)/n,s=Math.round(o),c=T(s*n+t,a)===T(e,a),l=r>0?Math.ceil(o):Math.floor(o);return c&&(l=s+i*r),T(l*n+t,a)}function C(e,t){let n=e.map(e=>Math.abs(e-t));return n.indexOf(Math.min(...n))}function w(e,t,n){return Math.min(Math.max(e,t),n)}function T(e,t){let n=10**t;return Math.round(e*n)/n}function E(e){if(!Number.isFinite(e))return 0;let[t=``,n=`0`]=e.toString().split(`e`);return Math.max(0,(t.split(`.`)[1]??``).length-Number(n))}export{d as i,r as n,i as r,u as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=(e,t)=>n=>{let r=n.defaultPrevented&&n.key===`Escape`;e?.(n),(r||!n.defaultPrevented)&&t(n)};export{e as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{useRef as e}from"react";import{flushSync as t}from"react-dom";import{t as n}from"./behaviors-DHVC34f9.js";import{i as r}from"./behaviors-Mkc_HjTB.js";const i=({inputValue:t,defaultInputValue:i=``,onInputValueChange:a,value:o,defaultValue:s,onValueChange:c,open:l,defaultOpen:u=!1,onOpenChange:d})=>{let[f,p]=n({value:t,defaultValue:i,onChange:a}),[m,h]=n({value:o,defaultValue:s,onChange:e=>{e!=null&&c?.(e)}}),[g,_]=n({value:l,defaultValue:u,onChange:d}),v=e(null);return{value:m,setValue:h,reset:()=>{h(s??``),p(i)},open:g,setOpen:_,inputValue:f,setInputValue:p,listbox:r({selected:m==null?[]:[m],onSelect:e=>{h(e),p(e),_(!1)},ownerRef:v,selectionFollowsHighlight:!0}),inputRef:v}},a=(e,{autoSelect:n=`always`}={})=>{let{open:r,setOpen:i,listbox:a,inputValue:o,setInputValue:s}=e,c=e=>{e==null?a.activate(null):a.moveOnOpen(e),i(!0)};return{ref:e.inputRef,role:`combobox`,autoComplete:`off`,"aria-autocomplete":`list`,"aria-expanded":r,"aria-controls":r?a.id:void 0,"aria-activedescendant":void 0,value:o,onChange:e=>{let r=e.target.value;n===!1?(s(r),c(null)):(t(()=>{s(r),i(!0)}),a.move(`first`))},onClick:()=>{r||c(n===`always`?`first`:null)},onBlur:()=>{i(!1)},onKeyDown:e=>{if(!e.nativeEvent.isComposing&&(e.key!==`ArrowDown`&&e.key!==`ArrowUp`||!e.shiftKey&&!e.ctrlKey&&!e.metaKey))switch(e.key){case`ArrowDown`:if(e.preventDefault(),!r){c(e.altKey?null:`first`);return}a.move(`next`);return;case`ArrowUp`:if(e.preventDefault(),!r){c(`last`);return}a.move(`previous`);return;case`Enter`:{if(!r)return;e.preventDefault();let{activeId:t}=a.getStore().get(),n=t==null?null:document.getElementById(t);n?.dataset.value!=null&&n.getAttribute(`aria-disabled`)!==`true`&&n.click();return}case`Escape`:r&&(e.preventDefault(),i(!1));return}}}};export{a as n,i as t};
|