@ngrok/mantle 0.94.0 → 0.95.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -2
- package/dist/CaretDown-MgTrjdYK.js +1 -0
- package/dist/CaretLeft-CZIqCyEF.js +1 -0
- package/dist/CaretRight-BKz4JHCI.js +1 -0
- package/dist/Check-C5a1hX4x.js +1 -0
- package/dist/CheckCircle-Bi4tSau6.js +1 -0
- package/dist/CircleNotch-BKE0NAIr.js +1 -0
- package/dist/Copy-BYWMO6PW.js +1 -0
- package/dist/Desktop-BaSlSeg2.js +1 -0
- package/dist/Eye-C38LQkZ_.js +1 -0
- package/dist/EyeClosed-BvOq-W8o.js +1 -0
- package/dist/FileText-CqAezJDn.js +1 -0
- package/dist/Info-weHV1B4q.js +1 -0
- package/dist/MagnifyingGlass-DCAoDH5_.js +1 -0
- package/dist/Megaphone-Cir2KHXa.js +1 -0
- package/dist/Minus-KBzmC4_K.js +1 -0
- package/dist/Moon-hn_oivM6.js +1 -0
- package/dist/Plus-D90-H9Ei.js +1 -0
- package/dist/Question-BhvEyO0K.js +1 -0
- package/dist/SidebarSimple-BXKgNz4l.js +1 -0
- package/dist/SortAscending-CEk4rgu_.js +1 -0
- package/dist/SortDescending-C0cE7hpU.js +1 -0
- package/dist/Sun-C3SaXdLl.js +1 -0
- package/dist/Terminal-aKZ6Y9Lk.js +1 -0
- package/dist/Warning-DTwF27_O.js +1 -0
- package/dist/WarningDiamond-BwpdVJ34.js +1 -0
- package/dist/X-BPGjP4b6.js +1 -0
- package/dist/accordion-BmDXs1-q.js +1 -0
- package/dist/accordion-NpJz3Uer.js +1 -0
- package/dist/accordion-parts.d.ts +268 -0
- package/dist/accordion-parts.js +1 -0
- package/dist/accordion.d.ts +8 -359
- package/dist/accordion.js +1 -1
- package/dist/agent.json +464 -92
- package/dist/alert-DCGSrVTa.js +1 -0
- package/dist/{alert-HffaioZM.d.ts → alert-Dz541Ve9.d.ts} +10 -196
- package/dist/alert-center-Bb39SBqJ.js +1 -0
- package/dist/alert-center-CGBbqO-y.d.ts +391 -0
- package/dist/alert-center-parts.d.ts +6 -0
- package/dist/alert-center-parts.js +1 -0
- package/dist/alert-center.d.ts +9 -590
- package/dist/alert-center.js +1 -1
- package/dist/alert-dialog-CtKnvX5N.js +1 -0
- package/dist/alert-dialog-parts.d.ts +569 -0
- package/dist/alert-dialog-parts.js +1 -0
- package/dist/alert-dialog.d.ts +3 -1054
- package/dist/alert-dialog.js +1 -1
- package/dist/alert-parts.d.ts +6 -0
- package/dist/alert-parts.js +1 -0
- package/dist/alert.d.ts +43 -1
- package/dist/alert.js +1 -1
- package/dist/anchor-DW5_Gb-1.js +1 -0
- package/dist/anchor.d.ts +6 -6
- package/dist/anchor.js +1 -1
- package/dist/app-layout-D7kwv9su.js +1 -0
- package/dist/app-layout-k6UjK30v.d.ts +1167 -0
- package/dist/app-layout-parts.d.ts +6 -0
- package/dist/app-layout-parts.js +1 -0
- package/dist/app-layout.d.ts +98 -1883
- package/dist/app-layout.js +1 -1
- package/dist/area-chart-C6lKu7Un.d.ts +390 -0
- package/dist/area-chart-SAaGaZFD.js +1 -0
- package/dist/area-chart-parts.d.ts +6 -0
- package/dist/area-chart-parts.js +1 -0
- package/dist/area-chart.d.ts +6 -581
- package/dist/area-chart.js +1 -1
- package/dist/avatar-BMZ81f_5.js +1 -0
- package/dist/avatar-Ti8GKSnS.d.ts +201 -0
- package/dist/avatar-parts.d.ts +6 -0
- package/dist/avatar-parts.js +1 -0
- package/dist/avatar.d.ts +5 -277
- package/dist/avatar.js +1 -1
- package/dist/badge.d.ts +10 -9
- package/dist/badge.js +1 -1
- package/dist/bar-chart-C0Ra1ZpG.js +1 -0
- package/dist/bar-chart-Cb5fA8V7.d.ts +386 -0
- package/dist/bar-chart-parts.d.ts +6 -0
- package/dist/bar-chart-parts.js +1 -0
- package/dist/bar-chart.d.ts +4 -583
- package/dist/bar-chart.js +1 -1
- package/dist/behaviors-BW8RjkkS.js +1 -0
- package/dist/behaviors-BbOq5SFv.js +1 -0
- package/dist/behaviors-C7R7ZIoN.js +1 -0
- package/dist/behaviors-CHF5PT3C.js +1 -0
- package/dist/behaviors-CSZQSSfL.js +1 -0
- package/dist/behaviors-CcjvGa0d.js +1 -0
- package/dist/behaviors-CnarRd47.js +1 -0
- package/dist/behaviors-CoNi6Rd-.js +1 -0
- package/dist/behaviors-D9VIyDk1.js +1 -0
- package/dist/behaviors-DHVC34f9.js +1 -0
- package/dist/behaviors-DkCIgQ8w.js +1 -0
- package/dist/behaviors-Mkc_HjTB.js +1 -0
- package/dist/breadcrumb-CAzq3SlR.js +1 -0
- package/dist/breadcrumb-parts.d.ts +287 -0
- package/dist/breadcrumb-parts.js +1 -0
- package/dist/breadcrumb.d.ts +65 -555
- package/dist/breadcrumb.js +1 -1
- package/dist/browser-only-CokCtIvB.js +1 -0
- package/dist/browser-only-ymFoM3Ya.js +1 -0
- package/dist/browser-only.js +1 -1
- package/dist/button-Bqm7U0OC.js +1 -0
- package/dist/{button-K0pKc3GN.d.ts → button-C6-6TecO.d.ts} +5 -5
- package/dist/{button-BGwOPjGV.d.ts → button-CL17Dxza.d.ts} +28 -25
- package/dist/button-CRCiBPEF.js +1 -0
- package/dist/{button-Cgf2IcEC.d.ts → button-CRMoQyum.d.ts} +27 -28
- package/dist/button-Cr2iY2cI.js +1 -0
- package/dist/button-DhoE-BbZ.js +1 -0
- package/dist/button.d.ts +3 -3
- package/dist/button.js +1 -1
- package/dist/calendar-DQtapcSC.js +1 -0
- package/dist/calendar.d.ts +1 -1
- package/dist/calendar.js +1 -1
- package/dist/card-DbtGVKyo.d.ts +129 -0
- package/dist/card-parts.d.ts +6 -0
- package/dist/card-parts.js +1 -0
- package/dist/card.d.ts +3 -228
- package/dist/card.js +1 -1
- package/dist/centered-layout-parts.d.ts +169 -0
- package/dist/centered-layout-parts.js +1 -0
- package/dist/centered-layout.d.ts +3 -300
- package/dist/centered-layout.js +1 -1
- package/dist/chart-B0n2xyYi.js +1 -0
- package/dist/chart-BPsMxs1f.js +1 -0
- package/dist/chart-BmZoTjRu.js +1 -0
- package/dist/chart-Bybyh2Dc.js +1 -0
- package/dist/chart-CACfdGlp.d.ts +86 -0
- package/dist/chart-CBQJUTIX.js +1 -0
- package/dist/chart-Cb0MBaZx.js +1 -0
- package/dist/chart-CmMcfDmv.js +1 -0
- package/dist/chart-Dlp9FidW.js +2 -0
- package/dist/{chart-jitNqimS.d.ts → chart-XvStK-oM.d.ts} +23 -99
- package/dist/chart-wTwYzUMJ.js +1 -0
- package/dist/checkbox-DH7WFfuR.js +1 -0
- package/dist/checkbox-DsVXD96X.js +1 -0
- package/dist/checkbox-TX74-Iep.js +1 -0
- package/dist/checkbox-group-parts.d.ts +197 -0
- package/dist/checkbox-group-parts.js +1 -0
- package/dist/checkbox.d.ts +60 -9
- package/dist/checkbox.js +1 -1
- package/dist/choice-BekuLm-b.d.ts +217 -0
- package/dist/choice-DGI8VNR9.d.ts +1 -0
- package/dist/choice-PDT386cc.js +1 -0
- package/dist/choice-parts.d.ts +7 -0
- package/dist/choice-parts.js +1 -0
- package/dist/choice.d.ts +63 -1
- package/dist/choice.js +1 -1
- package/dist/code-UKPv6LVP.js +1 -0
- package/dist/{code-block-W3kWPxCJ.js → code-block-B-xD4_RW.js} +1 -1
- package/dist/code-block-B7XPzZnp.js +1 -0
- package/dist/code-block-BXXceNVo.js +1 -0
- package/dist/code-block-C7uzLs8t.js +1 -0
- package/dist/{code-block-BGdV4Yty.d.ts → code-block-Cs1Lcmdr.d.ts} +82 -253
- package/dist/code-block-Erv7wuWW.d.ts +173 -0
- package/dist/code-block-parts.d.ts +380 -0
- package/dist/code-block-parts.js +1 -0
- package/dist/code-block.d.ts +66 -693
- package/dist/code-block.js +6 -6
- package/dist/code-block_highlight-utils.d.ts +2 -1
- package/dist/code-block_highlight-utils.js +1 -1
- package/dist/code.d.ts +4 -4
- package/dist/code.js +1 -1
- package/dist/combobox-6LXe1cLx.js +1 -0
- package/dist/combobox-parts.d.ts +303 -0
- package/dist/combobox-parts.js +1 -0
- package/dist/combobox.d.ts +5 -468
- package/dist/combobox.js +1 -1
- package/dist/command-B8L-zjGt.js +1 -0
- package/dist/command-CCMWCjAK.js +1 -0
- package/dist/command-VKj84zAX.d.ts +859 -0
- package/dist/command-cbgO9CiG.js +1 -0
- package/dist/command-parts.d.ts +6 -0
- package/dist/command-parts.js +1 -0
- package/dist/command.d.ts +91 -1135
- package/dist/command.js +1 -1
- package/dist/compose-refs-BdRUneoc.js +1 -0
- package/dist/compose-refs-Ce1vWUz0.js +1 -0
- package/dist/cx-CfAFHj5_.js +73 -0
- package/dist/cx-DhYnQ07J.js +1 -0
- package/dist/cx.d.ts +23 -17
- package/dist/cx.js +1 -1
- package/dist/{data-slot-B-LqAcBB.d.ts → data-slot-BW8KQ9Xo.d.ts} +2 -2
- package/dist/data-table-C-FgaN3_.js +1 -0
- package/dist/data-table-Cw9dUo1w.js +1 -0
- package/dist/data-table-CwqrMtp0.js +1 -0
- package/dist/data-table-GUbt8mzo.d.ts +38 -0
- package/dist/data-table-parts.d.ts +763 -0
- package/dist/data-table-parts.js +1 -0
- package/dist/data-table.d.ts +21 -1217
- package/dist/data-table.js +1 -1
- package/dist/description-list-CjcKOOnr.d.ts +110 -0
- package/dist/description-list-parts.d.ts +6 -0
- package/dist/description-list-parts.js +1 -0
- package/dist/description-list.d.ts +3 -183
- package/dist/description-list.js +1 -1
- package/dist/dialog-4Ed3U7hz.js +1 -0
- package/dist/dialog-BDb_obii.d.ts +166 -0
- package/dist/dialog-BaR9D58J.js +1 -0
- package/dist/dialog-BkNxAcol.d.ts +467 -0
- package/dist/dialog-DSYuhFD5.js +1 -0
- package/dist/dialog-fXMCxM9W.js +1 -0
- package/dist/dialog-parts.d.ts +6 -0
- package/dist/dialog-parts.js +1 -0
- package/dist/dialog.d.ts +88 -2
- package/dist/dialog.js +1 -1
- package/dist/dropdown-menu-BuluRn0Z.js +1 -0
- package/dist/dropdown-menu-CDXlp0QT.d.ts +507 -0
- package/dist/dropdown-menu-parts.d.ts +6 -0
- package/dist/dropdown-menu-parts.js +1 -0
- package/dist/dropdown-menu.d.ts +57 -1
- package/dist/dropdown-menu.js +1 -1
- package/dist/empty-parts.d.ts +120 -0
- package/dist/empty-parts.js +1 -0
- package/dist/empty.d.ts +2 -216
- package/dist/empty.js +1 -1
- package/dist/field-BRYypbjO.js +1 -0
- package/dist/field-BVMx7HoG.js +1 -0
- package/dist/field-BwCq1b9R.js +1 -0
- package/dist/field-CYAaNexp.js +1 -0
- package/dist/field-DRHAcM1s.js +1 -0
- package/dist/field-parts.d.ts +767 -0
- package/dist/field-parts.js +1 -0
- package/dist/field.d.ts +21 -1201
- package/dist/field.js +1 -1
- package/dist/flag.d.ts +3 -3
- package/dist/flag.js +1 -1
- package/dist/float-C_vwTtzU.js +1 -0
- package/dist/float-JmSzKDHd.js +1 -0
- package/dist/float-OhVY3cf4.js +1 -0
- package/dist/hooks-B-Cd15iL.js +1 -0
- package/dist/hooks-BP_uqBsI.js +1 -0
- package/dist/hooks-BeLOGKwE.js +1 -0
- package/dist/hooks-BsOjpTgs.js +1 -0
- package/dist/hooks-BybaGF7O.js +1 -0
- package/dist/hooks-C9b-2wGy.js +1 -0
- package/dist/hooks-CMmpICCH.js +1 -0
- package/dist/hooks-CUYIUcp6.js +1 -0
- package/dist/hooks-DKbOd_pQ.js +1 -0
- package/dist/hooks-DejuqCNF.js +1 -0
- package/dist/hooks-GsDfo7Zl.js +1 -0
- package/dist/hooks-PsYFJkz2.js +1 -0
- package/dist/hooks-lDz_S9UG.js +1 -0
- package/dist/hooks.d.ts +126 -17
- package/dist/hooks.js +1 -1
- package/dist/hover-card-BEC5EQiH.js +1 -0
- package/dist/hover-card-parts.d.ts +160 -0
- package/dist/hover-card-parts.js +1 -0
- package/dist/hover-card.d.ts +9 -281
- package/dist/hover-card.js +1 -1
- package/dist/{icon-CgNqu-fl.d.ts → icon--purqHRo.d.ts} +1 -1
- package/dist/icon-0RoVrpGj.js +1 -0
- package/dist/icon-BSGMvJ0W.js +1 -0
- package/dist/icon-DIiKxRTh.js +1 -0
- package/dist/{icon-DXDyhy2N.d.ts → icon-Dqn_LLrR.d.ts} +2 -2
- package/dist/{icon-NYvyyRMG.d.ts → icon-KTcDR4--.d.ts} +2 -2
- package/dist/icon.d.ts +3 -3
- package/dist/icon.js +1 -1
- package/dist/icons-CVgj9Whd.js +1 -0
- package/dist/icons-D_4cZaL1.js +1 -0
- package/dist/icons-DucrvIOa.js +1 -0
- package/dist/icons.d.ts +2 -2
- package/dist/icons.js +1 -1
- package/dist/{in-view-B3nMAzfE.d.ts → in-view-C_daNafg.d.ts} +4 -23
- package/dist/{index-KJ06KK6t.d.ts → index-CCkilmv8.d.ts} +1 -1
- package/dist/input-83xaPZWK.js +1 -0
- package/dist/input-B78ah4AB.js +1 -0
- package/dist/{input-q8o5uMhW.d.ts → input-Bvpu3ruQ.d.ts} +2 -2
- package/dist/input.d.ts +5 -5
- package/dist/input.js +1 -1
- package/dist/kbd-Bz_Rbpv8.js +1 -0
- package/dist/kbd.d.ts +5 -5
- package/dist/kbd.js +1 -1
- package/dist/{label-r2sJcSQ4.d.ts → label-DZpKu3Pu.d.ts} +8 -8
- package/dist/label-DmkAp9xI.js +1 -0
- package/dist/label.d.ts +1 -1
- package/dist/label.js +1 -1
- package/dist/layer-container-DDOZJ0fn.js +1 -0
- package/dist/layer-container.d.ts +11 -3
- package/dist/layer-container.js +1 -1
- package/dist/line-chart-CBL7eCqF.js +1 -0
- package/dist/line-chart-CIDFDkyb.d.ts +380 -0
- package/dist/line-chart-parts.d.ts +6 -0
- package/dist/line-chart-parts.js +1 -0
- package/dist/line-chart.d.ts +5 -569
- package/dist/line-chart.js +1 -1
- package/dist/list-CC3Pi__V.js +1 -0
- package/dist/list-Cx4KNfgC.d.ts +286 -0
- package/dist/list-FiFQJ0BU.js +1 -0
- package/dist/list-parts.d.ts +6 -0
- package/dist/list-parts.js +1 -0
- package/dist/list.d.ts +9 -406
- package/dist/list.js +1 -1
- package/dist/live-region-78gbKwlB.js +1 -0
- package/dist/live-region.d.ts +2 -2
- package/dist/live-region.js +1 -1
- package/dist/llms.txt +50 -26
- package/dist/main-9d96oUPG.js +1 -0
- package/dist/main.d.ts +1 -1
- package/dist/main.js +1 -1
- package/dist/mantle.css +1304 -910
- package/dist/media-object-parts.d.ts +65 -0
- package/dist/media-object-parts.js +1 -0
- package/dist/media-object.d.ts +5 -121
- package/dist/media-object.js +1 -1
- package/dist/migrations/0017-select-owned-behavior.yml +117 -0
- package/dist/migrations/0018-combobox-owned-behavior.yml +1661 -0
- package/dist/migrations/0019-multi-select-owned-behavior.yml +1414 -0
- package/dist/migrations/0020-native-floats.yml +823 -0
- package/dist/migrations/0021-native-radio-group.yml +397 -0
- package/dist/migrations/0024-command-owned-behavior.yml +66 -0
- package/dist/migrations/0026-native-dropdown-menu.yml +351 -0
- package/dist/migrations/0029-data-attribute-contract.yml +1707 -0
- package/dist/migrations/0030-between-variant.yml +1954 -0
- package/dist/multi-select-parts.d.ts +487 -0
- package/dist/multi-select-parts.js +1 -0
- package/dist/multi-select-qC0BuYKD.js +1 -0
- package/dist/multi-select.d.ts +6 -803
- package/dist/multi-select.js +1 -1
- package/dist/otp-input-LPdkb_Fg.js +1 -0
- package/dist/otp-input-parts.d.ts +211 -0
- package/dist/otp-input-parts.js +1 -0
- package/dist/otp-input-zl6MVio6.js +1 -0
- package/dist/otp-input.d.ts +11 -252
- package/dist/otp-input.js +1 -1
- package/dist/overlay-prompt-BIzMQvx7.js +1 -0
- package/dist/overlay-prompt-CDnhSoPJ.js +1 -0
- package/dist/overlay-prompt.d.ts +57 -0
- package/dist/overlay-prompt.js +1 -0
- package/dist/pagination-B2ESEbMI.d.ts +171 -0
- package/dist/pagination-CxaLKZcE.js +1 -0
- package/dist/pagination-Df1gTCN-.js +1 -0
- package/dist/pagination-cursor-pagination-parts.d.ts +6 -0
- package/dist/pagination-cursor-pagination-parts.js +1 -0
- package/dist/pagination.d.ts +39 -304
- package/dist/pagination.js +1 -1
- package/dist/popover-DOd6zLvE.d.ts +226 -0
- package/dist/popover-DWvHbepV.js +1 -0
- package/dist/popover-parts.d.ts +6 -0
- package/dist/popover-parts.js +1 -0
- package/dist/popover.d.ts +60 -2
- package/dist/popover.js +1 -1
- package/dist/position-Cv3XpSur.d.ts +5 -0
- package/dist/progress-BE0c8GW8.js +1 -0
- package/dist/progress-ZhFJhv9u.js +1 -0
- package/dist/progress-bar-parts.d.ts +86 -0
- package/dist/progress-bar-parts.js +1 -0
- package/dist/progress-donut-parts.d.ts +94 -0
- package/dist/progress-donut-parts.js +1 -0
- package/dist/progress-mJQMhxMX.js +1 -0
- package/dist/progress-zDpT3TY4.d.ts +2 -0
- package/dist/progress.d.ts +4 -268
- package/dist/progress.js +1 -1
- package/dist/qr-code-0zh10iIE.d.ts +148 -0
- package/dist/qr-code-BOOubA9x.js +1 -0
- package/dist/qr-code-D8tBKtjP.js +1 -0
- package/dist/qr-code-DzJjumoc.d.ts +46 -0
- package/dist/qr-code-encoder.browser.d.ts +15 -0
- package/dist/qr-code-encoder.browser.js +1 -0
- package/dist/qr-code-encoder.d.ts +15 -0
- package/dist/qr-code-encoder.js +1 -0
- package/dist/qr-code-parts.d.ts +6 -0
- package/dist/qr-code-parts.js +1 -0
- package/dist/qr-code.d.ts +4 -227
- package/dist/qr-code.js +1 -1
- package/dist/query-C0e5VYNp.d.ts +440 -0
- package/dist/query-V5NifJGs.js +1 -0
- package/dist/query-filter.d.ts +6 -6
- package/dist/query-filter.js +1 -1
- package/dist/query-parts.d.ts +6 -0
- package/dist/query-parts.js +1 -0
- package/dist/query.d.ts +5 -634
- package/dist/query.js +1 -1
- package/dist/radio-group-B9jtIbV1.d.ts +39 -0
- package/dist/radio-group-BliblUqe.js +1 -0
- package/dist/radio-group-f3ThXQCx.js +1 -0
- package/dist/radio-group-parts.d.ts +249 -0
- package/dist/radio-group-parts.js +1 -0
- package/dist/radio-group-zA5DjlLg.js +1 -0
- package/dist/radio-group.d.ts +7 -399
- package/dist/radio-group.js +1 -1
- package/dist/sandbar-Cm2yMjEZ.js +1 -0
- package/dist/sandbar-DU4wpKRc.d.ts +345 -0
- package/dist/sandbar-parts.d.ts +6 -0
- package/dist/sandbar-parts.js +1 -0
- package/dist/sandbar.d.ts +6 -441
- package/dist/sandbar.js +1 -1
- package/dist/sandboxed-on-click-Cg3lewoG.js +1 -0
- package/dist/sandboxed-on-click-DOw_Jkhk.js +1 -0
- package/dist/sandboxed-on-click.d.ts +1 -1
- package/dist/sandboxed-on-click.js +1 -1
- package/dist/scatter-plot-1vFxkpjT.js +1 -0
- package/dist/scatter-plot-D25jLIVw.d.ts +388 -0
- package/dist/scatter-plot-parts.d.ts +6 -0
- package/dist/scatter-plot-parts.js +1 -0
- package/dist/scatter-plot.d.ts +5 -575
- package/dist/scatter-plot.js +1 -1
- package/dist/segmented-control-DuiDPKDZ.js +1 -0
- package/dist/segmented-control-parts.d.ts +72 -0
- package/dist/segmented-control-parts.js +1 -0
- package/dist/segmented-control.d.ts +4 -100
- package/dist/segmented-control.js +1 -1
- package/dist/select-08IEtypH.js +1 -0
- package/dist/select-DM2wWfOO.d.ts +478 -0
- package/dist/select-parts.d.ts +6 -0
- package/dist/select-parts.js +1 -0
- package/dist/select.d.ts +63 -1
- package/dist/select.js +1 -1
- package/dist/selectable-list-Ax5F2Gz1.js +1 -0
- package/dist/selectable-list-CyLc3EEt.d.ts +407 -0
- package/dist/selectable-list-GcpbbRM1.js +1 -0
- package/dist/selectable-list-parts.d.ts +6 -0
- package/dist/selectable-list-parts.js +1 -0
- package/dist/selectable-list.d.ts +7 -647
- package/dist/selectable-list.js +1 -1
- package/dist/separator-BB1ohsjn.js +1 -0
- package/dist/{separator-QfH0ot5K.d.ts → separator-BzHNVyyv.d.ts} +2 -2
- package/dist/separator.d.ts +1 -1
- package/dist/separator.js +1 -1
- package/dist/sheet-5JgxVaWC.js +1 -0
- package/dist/sheet-parts.d.ts +732 -0
- package/dist/sheet-parts.js +1 -0
- package/dist/sheet-qYPi5MP8.js +1 -0
- package/dist/sheet.d.ts +11 -1208
- package/dist/sheet.js +1 -1
- package/dist/sidebar-CsC9fyPL.js +1 -0
- package/dist/sidebar-OBA7L42d.d.ts +1480 -0
- package/dist/sidebar-parts.d.ts +6 -0
- package/dist/sidebar-parts.js +1 -0
- package/dist/sidebar.d.ts +108 -2518
- package/dist/sidebar.js +1 -1
- package/dist/skeleton-DB0oQyAx.js +1 -0
- package/dist/skeleton.d.ts +5 -5
- package/dist/skeleton.js +1 -1
- package/dist/skip-to-main-link-BGhAWSqB.js +1 -0
- package/dist/skip-to-main-link.d.ts +1 -1
- package/dist/skip-to-main-link.js +1 -1
- package/dist/slider-YlBozcPQ.js +1 -0
- package/dist/slider.d.ts +150 -16
- package/dist/slider.js +1 -1
- package/dist/slot-5ZSmrISx.d.ts +19 -0
- package/dist/slot-BxngGBJ2.js +1 -0
- package/dist/slot-CBcGhRdV.js +1 -0
- package/dist/slot-tuk2J6bY.d.ts +50 -0
- package/dist/slot.d.ts +1 -1
- package/dist/slot.js +1 -1
- package/dist/source-all.css +5 -1
- package/dist/split-button-DvJHD7cZ.js +1 -0
- package/dist/split-button-parts.d.ts +178 -0
- package/dist/split-button-parts.js +1 -0
- package/dist/split-button.d.ts +2 -314
- package/dist/split-button.js +1 -1
- package/dist/strata-parts.d.ts +256 -0
- package/dist/strata-parts.js +1 -0
- package/dist/strata.d.ts +6 -495
- package/dist/strata.js +1 -1
- package/dist/{suggestions-NkqYTT49.d.ts → suggestions-BJeGvwDa.d.ts} +7 -7
- package/dist/switch-DajWYrq3.js +1 -0
- package/dist/switch.d.ts +37 -5
- package/dist/switch.js +1 -1
- package/dist/{table-rWiVWEgB.d.ts → table-C2KnE83u.d.ts} +6 -445
- package/dist/table-DJHK48-8.js +1 -0
- package/dist/table-parts.d.ts +6 -0
- package/dist/table-parts.js +1 -0
- package/dist/table.d.ts +81 -1
- package/dist/table.js +1 -1
- package/dist/tabs-36-4SlRo.js +1 -0
- package/dist/tabs-CC_HAqr4.d.ts +193 -0
- package/dist/tabs-DayeszXP.js +1 -0
- package/dist/tabs-headless-tabs-parts.d.ts +6 -0
- package/dist/tabs-headless-tabs-parts.js +1 -0
- package/dist/tabs-parts.d.ts +237 -0
- package/dist/tabs-parts.js +1 -0
- package/dist/tabs.d.ts +43 -420
- package/dist/tabs.js +1 -1
- package/dist/text-area-D29JTaZg.js +1 -0
- package/dist/text-area.d.ts +2 -2
- package/dist/text-area.js +1 -1
- package/dist/theme-D6rP5Fy8.js +1 -0
- package/dist/theme-switcher-PKMCyJxT.js +1 -0
- package/dist/theme-switcher.d.ts +26 -22
- package/dist/theme-switcher.js +1 -1
- package/dist/theme-xoFnLba6.js +1 -0
- package/dist/theme.d.ts +84 -77
- package/dist/theme.js +1 -1
- package/dist/time-zone-CpWYKHdp.js +1 -0
- package/dist/time-zone-DZ4hUJ8K.js +1 -0
- package/dist/time-zone.d.ts +190 -0
- package/dist/time-zone.js +1 -0
- package/dist/toast-BJZ__22c.js +1 -0
- package/dist/toast-Cb9IN-6e.d.ts +185 -0
- package/dist/toast-DM_oq-3E.js +1 -0
- package/dist/toast-parts.d.ts +6 -0
- package/dist/toast-parts.js +1 -0
- package/dist/toast.d.ts +7 -256
- package/dist/toast.js +1 -1
- package/dist/tokens.dark.json +3026 -0
- package/dist/tokens.json +4867 -0
- package/dist/tokens.resolver.json +37 -0
- package/dist/tooltip-D4HZn19B.js +1 -0
- package/dist/tooltip-DP6Lz6jv.d.ts +180 -0
- package/dist/tooltip-Uy-kz0rK.d.ts +1 -0
- package/dist/tooltip-parts.d.ts +7 -0
- package/dist/tooltip-parts.js +1 -0
- package/dist/tooltip.d.ts +57 -1
- package/dist/tooltip.js +1 -1
- package/dist/truncated-text-B5u2AlNg.js +1 -0
- package/dist/truncated-text-BoXHP-cD.js +1 -0
- package/dist/truncated-text.d.ts +4 -6
- package/dist/truncated-text.js +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.js +1 -1
- package/dist/typography-C2BmSH12.d.ts +148 -0
- package/dist/typography-parts.d.ts +6 -0
- package/dist/typography-parts.js +1 -0
- package/dist/typography.d.ts +52 -0
- package/dist/typography.js +1 -0
- package/dist/use-combobox-OhIEVioc.d.ts +23 -0
- package/dist/use-float-WEqqhXBE.d.ts +18 -0
- package/dist/use-listbox-D4uIonSN.d.ts +1 -0
- package/dist/utils-BN3rwHzz.js +1 -0
- package/dist/utils-BlLYcYik.js +1 -0
- package/dist/utils-C4astHJG.js +1 -0
- package/dist/utils-CPSttKPD.js +1 -0
- package/dist/{copy-to-clipboard-DInu78k_.js → utils-Dd83caRw.js} +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -1
- package/dist/visually-hidden.d.ts +2 -2
- package/dist/visually-hidden.js +1 -1
- package/dist/well.d.ts +2 -2
- package/dist/well.js +1 -1
- package/dist/world-map-BDd3N_Ap.d.ts +424 -0
- package/dist/world-map-D3c8Pq-h.js +1 -0
- package/dist/world-map-parts.d.ts +6 -0
- package/dist/world-map-parts.js +1 -0
- package/dist/world-map-t9U-IMKS.js +1 -0
- package/dist/world-map.d.ts +80 -0
- package/dist/world-map.js +1 -0
- package/package.json +30 -19
- package/dist/alert-CH99Rw-R.js +0 -1
- package/dist/anchor-CgcbWEUs.js +0 -1
- package/dist/browser-only-BTSrYWLj.js +0 -1
- package/dist/button-69InNC_m.js +0 -1
- package/dist/button-BQZ6eoD3.js +0 -1
- package/dist/button-BWGUuWnu.js +0 -1
- package/dist/button-Cu9e3SM7.js +0 -1
- package/dist/chart-BO9EwQ60.js +0 -1
- package/dist/chart-CE5Uaqz9.js +0 -1
- package/dist/chart-DCTGGlWL.js +0 -1
- package/dist/chart-DudCw24t.js +0 -2
- package/dist/checkbox-CS504fKk.js +0 -1
- package/dist/choice-BwfmbepO.d.ts +0 -405
- package/dist/choice-uyYccm0A.js +0 -1
- package/dist/clsx-DUGZgXfJ.js +0 -1
- package/dist/clsx-Dj3RWZ2l.js +0 -1
- package/dist/code-DUJzSl4K.js +0 -1
- package/dist/compose-refs-sFdxsL7k.js +0 -1
- package/dist/cx-CK7o_rVv.js +0 -1
- package/dist/dialog-B9JAGy_x.d.ts +0 -28
- package/dist/dialog-CsugEt2A.js +0 -1
- package/dist/dialog-DD5H3EH1.d.ts +0 -942
- package/dist/dropdown-menu-DHdgaw4P.js +0 -1
- package/dist/dropdown-menu-DmDxYPde.d.ts +0 -775
- package/dist/field-Bihblt8U.js +0 -1
- package/dist/field-CPvjazWN.js +0 -1
- package/dist/icon-BudQMD2S.js +0 -1
- package/dist/icon-kK0c-POG.js +0 -1
- package/dist/icons-4JA-SGfv.js +0 -1
- package/dist/icons-CDLz5lpI.js +0 -1
- package/dist/icons-CSwTVV2m.js +0 -1
- package/dist/input-DHovzBjS.js +0 -1
- package/dist/input-DQyN6gN0.js +0 -1
- package/dist/interactive-target-BXScNeOr.js +0 -1
- package/dist/kbd-CLHsJ99p.js +0 -1
- package/dist/label-DmDwzPD8.js +0 -1
- package/dist/layer-container-kEQiE4zV.js +0 -1
- package/dist/list-CO_yLdln.js +0 -1
- package/dist/live-region-DQ1QLv3L.js +0 -1
- package/dist/main-CC1L9IsH.js +0 -1
- package/dist/popover-BhTFutCz.d.ts +0 -1
- package/dist/popover-DxOqLKxy.js +0 -1
- package/dist/popover-lwkwWcRW.d.ts +0 -291
- package/dist/primitive-Dz9Al-us.js +0 -1
- package/dist/radio-group-jj2abc0t.js +0 -1
- package/dist/radio-group-sLz5AA9I.d.ts +0 -27
- package/dist/sandboxed-on-click-C7pPu-2M.js +0 -1
- package/dist/select-BqmpVJJT.d.ts +0 -890
- package/dist/select-C6Su0dU0.js +0 -1
- package/dist/separator-DfzxVutO.js +0 -1
- package/dist/shake-DL6WhMXM.js +0 -1
- package/dist/sheet-Bd2LIhzF.js +0 -1
- package/dist/skeleton-DBpI-ko5.js +0 -1
- package/dist/slot-D12N_fZJ.d.ts +0 -67
- package/dist/slot-DdYN1L1C.js +0 -1
- package/dist/table-CFHiDBW8.js +0 -1
- package/dist/theme-DdZgLvKH.js +0 -1
- package/dist/tooltip-CpK3XTor.d.ts +0 -283
- package/dist/tooltip-b6oiTaWq.js +0 -1
- package/dist/use-breakpoint--mo7kr9d.js +0 -1
- package/dist/use-callback-ref-BvVyI5K1.js +0 -1
- package/dist/use-copy-to-clipboard-Dy_0Qzb7.js +0 -1
- package/dist/use-inert-siblings-CNmNuS2h.js +0 -1
- package/dist/use-is-apple-platform-D4nifHMx.js +0 -1
- package/dist/use-is-hydrated-after-paint-r9Cl2mGp.js +0 -1
- package/dist/use-isomorphic-layout-effect-CLSmHzo4.js +0 -1
- package/dist/use-matches-media-query-m860lols.js +0 -1
- package/dist/use-prefers-reduced-motion-CU6mWmOe.js +0 -1
- package/dist/use-swipe-to-dismiss-i__cTF2v.js +0 -1
- /package/dist/{suggestions-Ciz2vaJO.js → query-filter-Ciz2vaJO.js} +0 -0
- /package/dist/{radio-group-HDVxTNPi.js → sidebar-HDVxTNPi.js} +0 -0
- /package/dist/{direction-CvDpql3O.js → sorting-CvDpql3O.js} +0 -0
- /package/dist/{booleanish-BfvnW6vy.js → types-BfvnW6vy.js} +0 -0
- /package/dist/{css-properties-D85fCNV3.js → types-D85fCNV3.js} +0 -0
- /package/dist/{alternate-announcement-BkH4bOKp.js → utils-BkH4bOKp.js} +0 -0
- /package/dist/{in-view-Dxv_GrUU.js → utils-Dxv_GrUU.js} +0 -0
- /package/dist/{data-slot-EM6s2WEU.js → utils-EM6s2WEU.js} +0 -0
- /package/dist/{cookie-ca4g5CKp.js → utils-ca4g5CKp.js} +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import "react";
|
|
2
|
+
import "./use-listbox-D4uIonSN.js";
|
|
3
|
+
type UseComboboxProps = {
|
|
4
|
+
/** The controlled text of the input. Pair with `onInputValueChange`. */
|
|
5
|
+
inputValue?: string;
|
|
6
|
+
/** The text of the input on first render. Use for uncontrolled text. */
|
|
7
|
+
defaultInputValue?: string;
|
|
8
|
+
/** Called when the text of the input changes. */
|
|
9
|
+
onInputValueChange?: (inputValue: string) => void;
|
|
10
|
+
/** The controlled value of the picked option. Pair with `onValueChange`. */
|
|
11
|
+
value?: string;
|
|
12
|
+
/** The value of the picked option on first render. */
|
|
13
|
+
defaultValue?: string;
|
|
14
|
+
/** Called when the user picks an option. */
|
|
15
|
+
onValueChange?: (value: string) => void;
|
|
16
|
+
/** The controlled open state. Pair with `onOpenChange`. */
|
|
17
|
+
open?: boolean;
|
|
18
|
+
/** Whether the list is open on first render. */
|
|
19
|
+
defaultOpen?: boolean;
|
|
20
|
+
/** Called when the open state changes. */
|
|
21
|
+
onOpenChange?: (open: boolean) => void;
|
|
22
|
+
};
|
|
23
|
+
export { UseComboboxProps as t };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import "react";
|
|
2
|
+
/** A pointer press or a focus move outside a float, which closes it unless a handler prevents that. */
|
|
3
|
+
type PointerDownOutsideEvent = CustomEvent<{
|
|
4
|
+
originalEvent: PointerEvent;
|
|
5
|
+
}>;
|
|
6
|
+
type FocusOutsideEvent = CustomEvent<{
|
|
7
|
+
originalEvent: FocusEvent;
|
|
8
|
+
}>;
|
|
9
|
+
/** The handlers a float that closes on an outside press or focus move takes. */
|
|
10
|
+
type OutsideHandlers = {
|
|
11
|
+
/** Runs when a pointer press starts outside the float. Call `event.preventDefault()` to keep it open. */
|
|
12
|
+
onPointerDownOutside?: (event: PointerDownOutsideEvent) => void;
|
|
13
|
+
/** Runs when focus moves outside the float. Call `event.preventDefault()` to keep it open. */
|
|
14
|
+
onFocusOutside?: (event: FocusOutsideEvent) => void;
|
|
15
|
+
/** Runs for both an outside press and an outside focus move. Call `event.preventDefault()` to keep it open. */
|
|
16
|
+
onInteractOutside?: (event: PointerDownOutsideEvent | FocusOutsideEvent) => void;
|
|
17
|
+
};
|
|
18
|
+
export { OutsideHandlers as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "react";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=`data-overflow-top`,t=`data-overflow-bottom`,n=n=>{if(n==null||typeof IntersectionObserver>`u`||typeof ResizeObserver>`u`)return;let r,i,a=!1,o=new IntersectionObserver(o=>{for(let{target:s,boundingClientRect:c,rootBounds:l}of o)l==null||l.height===0?a=!0:(s===r&&n.toggleAttribute(e,c.top<l.top),s===i&&n.toggleAttribute(t,c.bottom>l.bottom))},{root:n,rootMargin:`1px 100000px`,threshold:1}),s=()=>{let a=[...n.querySelectorAll(`[role="option"],[role^="menuitem"],[data-slot~="select-label"],[data-slot~="combobox-group-label"],[data-slot~="multi-select-group-label"],[data-slot~="dropdown-menu-label"],[data-slot~="command-group-heading"],[data-slot~="query-group-label"]`)],s=e=>{let t=e.closest(`[hidden]`);return t==null||t.contains(n)},c=a.find(s),l=a.findLast(s);(c!==r||l!==i)&&(r=c,i=l,o.disconnect(),r==null||i==null?(n.removeAttribute(e),n.removeAttribute(t)):(o.observe(r),i!==r&&o.observe(i)))},c=new MutationObserver(s);c.observe(n,{childList:!0,subtree:!0,attributeFilter:[`hidden`]});let l=new ResizeObserver(()=>{a&&(a=!1,r=void 0,i=void 0,s())});return l.observe(n),s(),()=>{c.disconnect(),o.disconnect(),l.disconnect()}};export{n as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./browser-only-ymFoM3Ya.js";function t(e){return`userAgentData`in e}function n(){if(!e())return!1;let n=``;return t(navigator)&&(n=navigator.userAgentData.platform??``),n||=navigator.platform||navigator.userAgent||``,/mac|iphone|ipad|ipod/i.test(n)}export{n as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./hooks-CMmpICCH.js";function t(t){if(e()||typeof t.getAnimations!=`function`)return;let r=n(t);if(r!=null){r.currentTime=0;return}t.setAttribute(`data-shake`,``);let i=n(t),a=()=>t.removeAttribute(`data-shake`);i==null?a():i.finished.then(a,a)}function n(e){return e.getAnimations().find(e=>e instanceof CSSAnimation&&e.animationName===`shake`)}export{t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=`a[href], button, details, input, select, textarea, label, [role="button"], [role="link"], [role="menuitem"], [tabindex]:not([tabindex="-1"]), [contenteditable="true"]`;function t(e,t){if(!(e instanceof Element))return!1;let n=e.closest(`a[href], button, details, input, select, textarea, label, [role="button"], [role="link"], [role="menuitem"], [contenteditable="true"]`);return n!=null&&t.contains(n)}export{t as n,e as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{t as e}from"./browser-only-ymFoM3Ya.js";async function t(t){if(!e())throw Error(`copyToClipboard requires a DOM environment`);try{if(typeof navigator.clipboard?.writeText==`function`)await navigator.clipboard.writeText(t);else throw Error(`writeText not supported`)}catch(e){try{n(t)}catch{throw e}}}function n(e){let t=document.createElement(`textarea`);t.value=e,document.body.appendChild(t);try{if(t.select(),!document.execCommand(`copy`))throw Error(`document.execCommand("copy") failed`)}finally{document.body.removeChild(t)}}export{t};
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as inView, n as MarginType, o as composeRefs, r as ViewChangeHandler, s as copyToClipboard, t as InViewOptions } from "./in-view-C_daNafg.js";
|
|
2
2
|
import { _ as timeSortingDirections, a as AlphanumericSortingDirection, c as TimeSortingDirection, d as isSortingDirection, f as isSortingMode, g as timeSortingByDirection, h as sortingModes, i as $timeSortingDirection, l as alphanumericSortingDirections, m as sortingDirections, n as $sortingDirection, o as SortingDirection, p as isTimeSortingDirection, r as $sortingMode, s as SortingMode, t as $alphanumericSortingDirection, u as isAlphanumericSortingDirection } from "./direction-CpRzTtZh.js";
|
|
3
3
|
/**
|
|
4
4
|
* Compare dates in newest-to-oldest (descending) order.
|
package/dist/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./
|
|
1
|
+
import{t as e}from"./utils-Dd83caRw.js";import{t}from"./utils-Dxv_GrUU.js";import{t as n}from"./compose-refs-BdRUneoc.js";import{a as r,c as i,d as a,f as o,i as s,l as c,n as l,o as u,p as d,r as f,s as p,t as m,u as h}from"./sorting-CvDpql3O.js";function g(e,t){return Math.sign(t.getTime()-e.getTime())}function _(e,t){return Math.sign(e.getTime()-t.getTime())}export{m as $alphanumericSortingDirection,l as $sortingDirection,f as $sortingMode,s as $timeSortingDirection,r as alphanumericSortingDirections,g as compareDatesNewestToOldest,_ as compareDatesOldestToNewest,n as composeRefs,e as copyToClipboard,t as inView,u as isAlphanumericSortingDirection,p as isSortingDirection,i as isSortingMode,c as isTimeSortingDirection,h as sortingDirections,a as sortingModes,o as timeSortingByDirection,d as timeSortingDirections};
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @see https://mantle.ngrok.com/components/primitives/visually-hidden
|
|
5
5
|
*/
|
|
6
|
-
import { n as WithAsChild } from "./as-child-DFxX3U2i.js";
|
|
7
|
-
import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
|
|
8
6
|
import { ComponentProps } from "react";
|
|
7
|
+
import { n as WithAsChild } from "./as-child-DFxX3U2i.js";
|
|
8
|
+
import { t as WithDataSlot } from "./data-slot-BW8KQ9Xo.js";
|
|
9
9
|
/**
|
|
10
10
|
* Content for assistive technology only. Renders a native `<span>` clipped to
|
|
11
11
|
* a one-pixel box (the `sr-only` technique, never `display: none`). Screen
|
package/dist/visually-hidden.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{n as e}from"./cx-CfAFHj5_.js";import{t}from"./utils-EM6s2WEU.js";import{t as n}from"./slot-CBcGhRdV.js";import{jsx as r}from"react/jsx-runtime";const i=({"data-slot":i,asChild:a,className:o,ref:s,...c})=>/* @__PURE__ */ r(a?n:`span`,{ref:s,"data-slot":t(i,`visually-hidden`),className:e(`sr-only`,o),...c});export{i as VisuallyHidden};
|
package/dist/well.d.ts
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* @see https://mantle.ngrok.com/components/structure/well
|
|
5
5
|
*/
|
|
6
6
|
import { n as WithAsChild } from "./as-child-DFxX3U2i.js";
|
|
7
|
-
import "./index-KJ06KK6t.js";
|
|
8
|
-
import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
|
|
9
7
|
import { ComponentProps } from "react";
|
|
8
|
+
import "./index-CCkilmv8.js";
|
|
9
|
+
import { t as WithDataSlot } from "./data-slot-BW8KQ9Xo.js";
|
|
10
10
|
type WellProps = ComponentProps<"div"> & WithAsChild & WithDataSlot;
|
|
11
11
|
/**
|
|
12
12
|
* A recessed, inset container used to visually group and de-emphasize content
|
package/dist/well.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{n as e}from"./cx-CfAFHj5_.js";import{t}from"./utils-EM6s2WEU.js";import{t as n}from"./slot-CBcGhRdV.js";import{jsx as r}from"react/jsx-runtime";const i=({"data-slot":i,asChild:a=!1,className:o,ref:s,...c})=>/* @__PURE__ */ r(a?n:`div`,{ref:s,"data-slot":t(i,`well`),className:e(`border-card-muted bg-base relative rounded-md border shadow-inner`,o),...c});export{i as Well};
|
|
@@ -0,0 +1,424 @@
|
|
|
1
|
+
import { ComponentProps, ReactNode } from "react";
|
|
2
|
+
import { n as WithAsChild } from "./as-child-DFxX3U2i.js";
|
|
3
|
+
import { t as WithDataSlot } from "./data-slot-BW8KQ9Xo.js";
|
|
4
|
+
import { a as ChartMode, h as SeriesColor, i as ChartAccessibilityProps, l as ChartDatum, m as PointShape, n as ChartRootBaseProps, r as LegendPrimitiveProps, t as TooltipPrimitiveProps } from "./chart-XvStK-oM.js";
|
|
5
|
+
/**
|
|
6
|
+
* A region of the world, in degrees: the west and east longitudes and the
|
|
7
|
+
* south and north latitudes of its edges. `west` is less than `east`.
|
|
8
|
+
*/
|
|
9
|
+
type GeoBounds = {
|
|
10
|
+
west: number;
|
|
11
|
+
south: number;
|
|
12
|
+
east: number;
|
|
13
|
+
north: number;
|
|
14
|
+
};
|
|
15
|
+
/** A place on Earth, in degrees. */
|
|
16
|
+
type GeoPlace = {
|
|
17
|
+
longitude: number;
|
|
18
|
+
latitude: number;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Props for {@link WorldMap.Root}. Each row is one place: a longitude on the
|
|
22
|
+
* Root, and a latitude per composed `WorldMap.Point` series. Rows without a
|
|
23
|
+
* finite longitude are not plotted.
|
|
24
|
+
*/
|
|
25
|
+
type WorldMapRootProps<TDatum extends ChartDatum = ChartDatum, TMode extends ChartMode = "interactive"> = Omit<ChartRootBaseProps, "stacked" | "yDomain"> & ChartAccessibilityProps<TMode> & {
|
|
26
|
+
/** Rows of data; each row is one point per composed `WorldMap.Point` series. */
|
|
27
|
+
data: readonly TDatum[];
|
|
28
|
+
/**
|
|
29
|
+
* The key of each row's longitude, in degrees east (−180 to 180). If no
|
|
30
|
+
* row has the key, the Root throws.
|
|
31
|
+
*/
|
|
32
|
+
longitudeKey: Extract<keyof TDatum, string>;
|
|
33
|
+
/**
|
|
34
|
+
* The key of each row's name, such as an agent's hostname. The tooltip,
|
|
35
|
+
* the keyboard announcement, and the data table read it. A row without a
|
|
36
|
+
* name reads as its coordinates. When omitted, every point reads as its
|
|
37
|
+
* coordinates.
|
|
38
|
+
*/
|
|
39
|
+
labelKey?: Extract<keyof TDatum, string>;
|
|
40
|
+
/**
|
|
41
|
+
* The key of each row's size value, such as how many agents share the
|
|
42
|
+
* place. A point's area follows the value: the largest value gets a 16px
|
|
43
|
+
* radius, and no point shrinks below 4px, so the smallest stays a target.
|
|
44
|
+
* Rows without a positive value take 4px. Larger points paint first, so
|
|
45
|
+
* a small point on top of a large one stays visible. Past 5,000 points
|
|
46
|
+
* the points lose their 2px surface ring, so a small point shows on a
|
|
47
|
+
* large one only when their colors differ. If no row has the key, the
|
|
48
|
+
* Root throws.
|
|
49
|
+
*/
|
|
50
|
+
sizeKey?: Extract<keyof TDatum, string>;
|
|
51
|
+
/**
|
|
52
|
+
* The region the map shows, in degrees, such as the area around one
|
|
53
|
+
* client. The region fills the plot and keeps its shape, so the plot
|
|
54
|
+
* shows more of the map on its loose side. Points, connectors, and
|
|
55
|
+
* callouts outside the plot do not show, and the keyboard cursor skips
|
|
56
|
+
* those points. The data table still lists them. The map ends at the
|
|
57
|
+
* antimeridian, so a region that reaches past ±180° stops there. `west`
|
|
58
|
+
* must be less than `east`. When omitted, the map shows the whole world.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```tsx
|
|
62
|
+
* <WorldMap.Root bounds={{ west: -15, south: 35, east: 35, north: 62 }} … />
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
bounds?: GeoBounds;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* Props for {@link WorldMap.Point}.
|
|
69
|
+
*/
|
|
70
|
+
type WorldMapPointProps = {
|
|
71
|
+
/**
|
|
72
|
+
* The row key this series reads its latitudes from, in degrees north (−90
|
|
73
|
+
* to 90). If no row has the key, the map throws, so put the key in every
|
|
74
|
+
* row, with `null` for a row that is not in this series.
|
|
75
|
+
*/
|
|
76
|
+
latitudeKey: string;
|
|
77
|
+
/** Display name for the legend, tooltip, and data table. Defaults to `latitudeKey`. */
|
|
78
|
+
label?: string;
|
|
79
|
+
/**
|
|
80
|
+
* The color the series paints: a mantle color name, the same `Color` that
|
|
81
|
+
* `Badge` takes, or any CSS color. Required: name every series' color on
|
|
82
|
+
* purpose. A series that means good or bad, such as a blocklisted agent,
|
|
83
|
+
* takes a functional color such as `"danger"`.
|
|
84
|
+
*/
|
|
85
|
+
color: SeriesColor;
|
|
86
|
+
/**
|
|
87
|
+
* The glyph this series' points wear, mirrored by the legend key and the
|
|
88
|
+
* hover dot. Shape keeps series apart without color vision.
|
|
89
|
+
*
|
|
90
|
+
* @default "circle"
|
|
91
|
+
*/
|
|
92
|
+
shape?: PointShape;
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* Props for {@link WorldMap.Connector}.
|
|
96
|
+
*/
|
|
97
|
+
type WorldMapConnectorProps = {
|
|
98
|
+
/** The place the line starts, in degrees. */
|
|
99
|
+
from: GeoPlace;
|
|
100
|
+
/** The place the line ends, in degrees. */
|
|
101
|
+
to: GeoPlace;
|
|
102
|
+
/**
|
|
103
|
+
* The line color: a mantle color name or any CSS color.
|
|
104
|
+
*
|
|
105
|
+
* @default "neutral"
|
|
106
|
+
*/
|
|
107
|
+
color?: SeriesColor;
|
|
108
|
+
/**
|
|
109
|
+
* Whether the line is dashed or solid.
|
|
110
|
+
*
|
|
111
|
+
* @default "dashed"
|
|
112
|
+
*/
|
|
113
|
+
lineStyle?: "dashed" | "solid";
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* Props for {@link WorldMap.Callout}.
|
|
117
|
+
*/
|
|
118
|
+
type WorldMapCalloutProps = Omit<ComponentProps<"div">, "children"> & WithAsChild & WithDataSlot & GeoPlace & {
|
|
119
|
+
/**
|
|
120
|
+
* Which side of the place the callout sits on. When that side has no
|
|
121
|
+
* room, the callout flips to the other side; near the plot's edge it
|
|
122
|
+
* moves to stay inside the plot.
|
|
123
|
+
*
|
|
124
|
+
* @default "top"
|
|
125
|
+
*/
|
|
126
|
+
side?: "top" | "bottom";
|
|
127
|
+
children: ReactNode;
|
|
128
|
+
};
|
|
129
|
+
/**
|
|
130
|
+
* Props for {@link WorldMap.Tooltip}.
|
|
131
|
+
*/
|
|
132
|
+
type WorldMapTooltipProps = Omit<TooltipPrimitiveProps, "labelFormat" | "valueFormat" | "indicator"> & {
|
|
133
|
+
/**
|
|
134
|
+
* The series color key beside each series name: a dot (default) or nothing.
|
|
135
|
+
*
|
|
136
|
+
* @default "dot"
|
|
137
|
+
*/
|
|
138
|
+
indicator?: "dot" | "none";
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* Props for {@link WorldMap.Legend}.
|
|
142
|
+
*/
|
|
143
|
+
type WorldMapLegendProps = LegendPrimitiveProps;
|
|
144
|
+
/**
|
|
145
|
+
* The root of a world map: owns the data, the Robinson projection, the canvas
|
|
146
|
+
* renderer, and the whole interaction contract (the tooltip, keyboard
|
|
147
|
+
* stepping from west to east with polite announcements, an sr-only
|
|
148
|
+
* description, an sr-only data table, Enter/Space + click activation).
|
|
149
|
+
* Hovering hits the nearest point within 24px. With `sizeKey`, a pointer over
|
|
150
|
+
* a point hits the top point there, not a neighbor with a nearer center. The
|
|
151
|
+
* keyboard cursor skips a row that has no point in the plot. Such a row has
|
|
152
|
+
* no latitude in any series, or, with `bounds`, its point is outside the plot.
|
|
153
|
+
*
|
|
154
|
+
* A Root mounts dormant: a shell of the plot, the named overlay, and its
|
|
155
|
+
* sr-only description. It builds its canvas once it comes within one viewport
|
|
156
|
+
* of the visible area, takes focus, or prints, and it mounts the sr-only data
|
|
157
|
+
* table once focus lands inside it.
|
|
158
|
+
*
|
|
159
|
+
* **Live data.** Pass new rows whenever they arrive. A point at a place its
|
|
160
|
+
* series did not have gets one ring that starts at the point's edge, grows,
|
|
161
|
+
* and fades in 900ms. A moved point is a new place. A point that changes
|
|
162
|
+
* series at one place, such as an agent that goes offline, gets a ring too.
|
|
163
|
+
* The map plays no ring:
|
|
164
|
+
*
|
|
165
|
+
* - under reduced motion, or with `animate={false}`
|
|
166
|
+
* - while it is off screen
|
|
167
|
+
* - for its first rows
|
|
168
|
+
* - for an update that adds more than 48 places
|
|
169
|
+
* - when it has more than 5,000 rows
|
|
170
|
+
*
|
|
171
|
+
* At most 48 rings run at one time.
|
|
172
|
+
*
|
|
173
|
+
* The Root's own subtree is addressable by slot: `world-map` on the wrapper,
|
|
174
|
+
* then `world-map-plot`, `world-map-canvas`, `world-map-crosshair`,
|
|
175
|
+
* `world-map-hover-band`, `world-map-markers`, `world-map-tooltip`,
|
|
176
|
+
* `world-map-description`, and, once focus lands inside the map,
|
|
177
|
+
* `world-map-data-table`. A world map shows one marker dot on the hit point,
|
|
178
|
+
* and never the crosshair or the band. That dot carries `chart-active-point`
|
|
179
|
+
* plus a `data-shape` of `"circle"`, `"square"`, `"triangle"`, `"diamond"`,
|
|
180
|
+
* `"triangle-down"`, `"plus"`, `"cross"`, or `"star"`, naming the glyph its
|
|
181
|
+
* series wears. The canvas and the three hover layers are engine-owned:
|
|
182
|
+
* absent from server HTML and from a dormant map. The canvas arrives at
|
|
183
|
+
* activation, and the layers arrive on the first hover or keyboard step.
|
|
184
|
+
*
|
|
185
|
+
* **Data attributes:**
|
|
186
|
+
*
|
|
187
|
+
* | Data Attribute | Value | Description |
|
|
188
|
+
* | --- | --- | --- |
|
|
189
|
+
* | `data-slot` | `"world-map-description"` | The `sr-only` description the overlay's `aria-describedby` points at: the point count, the series labels, and, on an interactive map, the keyboard instructions. Omitted when `mode="decorative"`. |
|
|
190
|
+
* | `data-slot` | `"world-map-data-table"` | The `sr-only` data table: one row for each of the first 150 points from west to east, with its name, series, latitude, longitude, and, with `sizeKey`, its size value. Mounts once focus lands inside the map (`data-engaged` appears) and stays. Interactive maps only. |
|
|
191
|
+
* | `data-engaged` | present once engaged | On the Root. Appears once focus lands inside the map, and never goes away. Interactive maps only. |
|
|
192
|
+
*
|
|
193
|
+
* **CSS variables (public API):**
|
|
194
|
+
*
|
|
195
|
+
* | CSS Variable | Default | Description |
|
|
196
|
+
* | --- | --- | --- |
|
|
197
|
+
* | `--world-map-land-color` | `var(--color-neutral-200)` | The land fill. |
|
|
198
|
+
* | `--world-map-ocean-color` | `var(--color-neutral-50)` | The fill inside the world's outline. |
|
|
199
|
+
*
|
|
200
|
+
* @see https://mantle.ngrok.com/components/preview/world-map#worldmaproot
|
|
201
|
+
*
|
|
202
|
+
* @example
|
|
203
|
+
* ```tsx
|
|
204
|
+
* const agents = [
|
|
205
|
+
* { name: "sfo-edge-1", longitude: -122.42, latitude: 37.77, sessions: 12 },
|
|
206
|
+
* { name: "fra-edge-1", longitude: 8.68, latitude: 50.11, sessions: 30 },
|
|
207
|
+
* { name: "syd-edge-1", longitude: 151.21, latitude: -33.87, sessions: 4 },
|
|
208
|
+
* ];
|
|
209
|
+
*
|
|
210
|
+
* <WorldMap.Root
|
|
211
|
+
* data={agents}
|
|
212
|
+
* longitudeKey="longitude"
|
|
213
|
+
* labelKey="name"
|
|
214
|
+
* sizeKey="sessions"
|
|
215
|
+
* aria-label="Agents by location"
|
|
216
|
+
* >
|
|
217
|
+
* <WorldMap.Graticule />
|
|
218
|
+
* <WorldMap.Point latitudeKey="latitude" label="Agents" color="blue" />
|
|
219
|
+
* <WorldMap.Tooltip />
|
|
220
|
+
* <WorldMap.Legend />
|
|
221
|
+
* </WorldMap.Root>
|
|
222
|
+
* ```
|
|
223
|
+
*/
|
|
224
|
+
declare const Root: <TDatum extends ChartDatum = ChartDatum, TMode extends ChartMode = "interactive">(props: WorldMapRootProps<TDatum, TMode>) => import("react").JSX.Element;
|
|
225
|
+
/**
|
|
226
|
+
* One point series. Renders nothing itself: it registers the series with the
|
|
227
|
+
* map, which paints its points on canvas over the land.
|
|
228
|
+
*
|
|
229
|
+
* @see https://mantle.ngrok.com/components/preview/world-map#worldmappoint
|
|
230
|
+
*
|
|
231
|
+
* @example
|
|
232
|
+
* ```tsx
|
|
233
|
+
* <WorldMap.Root
|
|
234
|
+
* data={agents}
|
|
235
|
+
* longitudeKey="longitude"
|
|
236
|
+
* labelKey="name"
|
|
237
|
+
* sizeKey="sessions"
|
|
238
|
+
* aria-label="Agents by location"
|
|
239
|
+
* >
|
|
240
|
+
* <WorldMap.Graticule />
|
|
241
|
+
* <WorldMap.Point latitudeKey="latitude" label="Agents" color="blue" />
|
|
242
|
+
* <WorldMap.Tooltip />
|
|
243
|
+
* <WorldMap.Legend />
|
|
244
|
+
* </WorldMap.Root>
|
|
245
|
+
* ```
|
|
246
|
+
*/
|
|
247
|
+
declare const Point: ({ latitudeKey, ...props }: WorldMapPointProps) => null;
|
|
248
|
+
/**
|
|
249
|
+
* Meridians and parallels every 30°, painted on canvas under the land
|
|
250
|
+
* (renderless). Omit the part to omit the graticule.
|
|
251
|
+
*
|
|
252
|
+
* @see https://mantle.ngrok.com/components/preview/world-map#worldmapgraticule
|
|
253
|
+
*
|
|
254
|
+
* @example
|
|
255
|
+
* ```tsx
|
|
256
|
+
* <WorldMap.Root
|
|
257
|
+
* data={agents}
|
|
258
|
+
* longitudeKey="longitude"
|
|
259
|
+
* labelKey="name"
|
|
260
|
+
* sizeKey="sessions"
|
|
261
|
+
* aria-label="Agents by location"
|
|
262
|
+
* >
|
|
263
|
+
* <WorldMap.Graticule />
|
|
264
|
+
* <WorldMap.Point latitudeKey="latitude" label="Agents" color="blue" />
|
|
265
|
+
* <WorldMap.Tooltip />
|
|
266
|
+
* <WorldMap.Legend />
|
|
267
|
+
* </WorldMap.Root>
|
|
268
|
+
* ```
|
|
269
|
+
*/
|
|
270
|
+
declare const Graticule: () => null;
|
|
271
|
+
/**
|
|
272
|
+
* Customizes the hover/keyboard tooltip readout. The tooltip itself is part
|
|
273
|
+
* of `WorldMap.Root`'s interaction contract and renders even when this part
|
|
274
|
+
* is absent. The default readout names the point (its `labelKey` value, else
|
|
275
|
+
* its coordinates), then its coordinates, its size value when the map has a
|
|
276
|
+
* `sizeKey`, and its series. Compose this part to append a footer, or replace
|
|
277
|
+
* the readout through the render-prop `children`, which receives the hovered
|
|
278
|
+
* row as `datum`.
|
|
279
|
+
*
|
|
280
|
+
* **Structure.** A `children` readout renders inside a
|
|
281
|
+
* `<div data-slot="world-map-tooltip-label">`. When it goes away, React
|
|
282
|
+
* removes that div instead of your own text nodes: a browser translation
|
|
283
|
+
* engine reparents a text node, and a removal aimed at one throws. The div is
|
|
284
|
+
* `display: contents`, so it lays out nothing of its own.
|
|
285
|
+
*
|
|
286
|
+
* **Data attributes:**
|
|
287
|
+
*
|
|
288
|
+
* | Data Attribute | Value | Description |
|
|
289
|
+
* | --- | --- | --- |
|
|
290
|
+
* | `data-slot` | `"world-map-tooltip-label"` | On the `<div>` wrapping a `children` readout. The default readout has none. |
|
|
291
|
+
*
|
|
292
|
+
* @see https://mantle.ngrok.com/components/preview/world-map#worldmaptooltip
|
|
293
|
+
*
|
|
294
|
+
* @example
|
|
295
|
+
* ```tsx
|
|
296
|
+
* <WorldMap.Root
|
|
297
|
+
* data={agents}
|
|
298
|
+
* longitudeKey="longitude"
|
|
299
|
+
* labelKey="name"
|
|
300
|
+
* sizeKey="sessions"
|
|
301
|
+
* aria-label="Agents by location"
|
|
302
|
+
* >
|
|
303
|
+
* <WorldMap.Graticule />
|
|
304
|
+
* <WorldMap.Point latitudeKey="latitude" label="Agents" color="blue" />
|
|
305
|
+
* <WorldMap.Tooltip footer="Select a point to open the agent" />
|
|
306
|
+
* <WorldMap.Legend />
|
|
307
|
+
* </WorldMap.Root>
|
|
308
|
+
* ```
|
|
309
|
+
*/
|
|
310
|
+
declare const Tooltip: ({ indicator, ...props }: WorldMapTooltipProps) => null;
|
|
311
|
+
/**
|
|
312
|
+
* The legend: series names keyed by their point glyphs, rendered as real DOM
|
|
313
|
+
* in flow below the map. Compose it on every map with more than one series,
|
|
314
|
+
* so identity never relies on color alone. It renders nothing for a single
|
|
315
|
+
* series.
|
|
316
|
+
*
|
|
317
|
+
* **Structure.** A `children` render prop renders inside a
|
|
318
|
+
* `<div data-slot="world-map-legend-label">`, which is `display: contents`.
|
|
319
|
+
*
|
|
320
|
+
* **Data attributes:**
|
|
321
|
+
*
|
|
322
|
+
* | Data Attribute | Value | Description |
|
|
323
|
+
* | --- | --- | --- |
|
|
324
|
+
* | `data-slot` | `"world-map-legend"` | The legend list. |
|
|
325
|
+
* | `data-slot` | `"world-map-legend-label"` | On the `<div>` wrapping a `children` render prop. The default legend has none. |
|
|
326
|
+
* | `data-shape` | `"circle"` \| `"square"` \| `"triangle"` \| `"diamond"` \| `"triangle-down"` \| `"plus"` \| `"cross"` \| `"star"` | On each series' swatch, naming the glyph its `WorldMap.Point` wears. |
|
|
327
|
+
*
|
|
328
|
+
* @see https://mantle.ngrok.com/components/preview/world-map#worldmaplegend
|
|
329
|
+
*
|
|
330
|
+
* @example
|
|
331
|
+
* ```tsx
|
|
332
|
+
* <WorldMap.Root
|
|
333
|
+
* data={agents}
|
|
334
|
+
* longitudeKey="longitude"
|
|
335
|
+
* labelKey="name"
|
|
336
|
+
* aria-label="Agents by status"
|
|
337
|
+
* >
|
|
338
|
+
* <WorldMap.Graticule />
|
|
339
|
+
* <WorldMap.Point latitudeKey="online" label="Online" color="success" />
|
|
340
|
+
* <WorldMap.Point latitudeKey="offline" label="Offline" color="neutral" shape="square" />
|
|
341
|
+
* <WorldMap.Tooltip />
|
|
342
|
+
* <WorldMap.Legend />
|
|
343
|
+
* </WorldMap.Root>
|
|
344
|
+
* ```
|
|
345
|
+
*/
|
|
346
|
+
declare const Legend: (props: WorldMapLegendProps) => import("react").JSX.Element;
|
|
347
|
+
/**
|
|
348
|
+
* A line between two places, such as from a client to the ngrok edge that
|
|
349
|
+
* received its request. It follows the great circle, the shortest route on
|
|
350
|
+
* the globe, and paints on canvas under the points (renderless). Where the
|
|
351
|
+
* line crosses the antimeridian, it runs to the edge of the map and starts
|
|
352
|
+
* again at the opposite edge. The line is decoration: name both places with
|
|
353
|
+
* points or a callout, so a reader who cannot see the line gets the same
|
|
354
|
+
* facts.
|
|
355
|
+
*
|
|
356
|
+
* @see https://mantle.ngrok.com/components/preview/world-map#worldmapconnector
|
|
357
|
+
*
|
|
358
|
+
* @example
|
|
359
|
+
* ```tsx
|
|
360
|
+
* const client = { longitude: -87.63, latitude: 41.88 };
|
|
361
|
+
* const pop = { longitude: -82.99, latitude: 39.96 };
|
|
362
|
+
*
|
|
363
|
+
* <WorldMap.Root
|
|
364
|
+
* data={[
|
|
365
|
+
* { name: "Chicago, Illinois", ...client, client: client.latitude, pop: null },
|
|
366
|
+
* { name: "ngrok Ohio", ...pop, client: null, pop: pop.latitude },
|
|
367
|
+
* ]}
|
|
368
|
+
* longitudeKey="longitude"
|
|
369
|
+
* labelKey="name"
|
|
370
|
+
* bounds={{ west: -105, south: 30, east: -65, north: 50 }}
|
|
371
|
+
* aria-label="Client location"
|
|
372
|
+
* >
|
|
373
|
+
* <WorldMap.Point latitudeKey="client" label="Client" color="success" />
|
|
374
|
+
* <WorldMap.Point latitudeKey="pop" label="ngrok edge" color="accent" shape="diamond" />
|
|
375
|
+
* <WorldMap.Connector from={client} to={pop} color="accent" />
|
|
376
|
+
* <WorldMap.Callout {...client}>Chicago, Illinois, United States</WorldMap.Callout>
|
|
377
|
+
* </WorldMap.Root>
|
|
378
|
+
* ```
|
|
379
|
+
*/
|
|
380
|
+
declare const Connector: ({ from, to, color, lineStyle }: WorldMapConnectorProps) => null;
|
|
381
|
+
/**
|
|
382
|
+
* A card that stays over one place, such as the location of the client on a
|
|
383
|
+
* request's detail page. Unlike the tooltip, it shows without a hover. It is
|
|
384
|
+
* real DOM after the plot, so a screen reader reads it as page content. It
|
|
385
|
+
* shows once the map has painted, and hides while its place is outside the
|
|
386
|
+
* plot. When its content changes size, the map places it again. It takes no
|
|
387
|
+
* pointer events, so the points under it still hover; add
|
|
388
|
+
* `pointer-events-auto` to `className` for a callout with a link. Pass
|
|
389
|
+
* `asChild` to render your own element, such as a `Card`, in place of the
|
|
390
|
+
* `<div>`.
|
|
391
|
+
*
|
|
392
|
+
* **Data attributes:**
|
|
393
|
+
*
|
|
394
|
+
* | Data Attribute | Value | Description |
|
|
395
|
+
* | --- | --- | --- |
|
|
396
|
+
* | `data-slot` | `"world-map-callout"` | The callout. |
|
|
397
|
+
* | `data-side` | `"top"` \| `"bottom"` | The side of the place the callout sits on after placement: `side`, or the other side after a flip. |
|
|
398
|
+
*
|
|
399
|
+
* @see https://mantle.ngrok.com/components/preview/world-map#worldmapcallout
|
|
400
|
+
*
|
|
401
|
+
* @example
|
|
402
|
+
* ```tsx
|
|
403
|
+
* const client = { longitude: -87.63, latitude: 41.88 };
|
|
404
|
+
* const pop = { longitude: -82.99, latitude: 39.96 };
|
|
405
|
+
*
|
|
406
|
+
* <WorldMap.Root
|
|
407
|
+
* data={[
|
|
408
|
+
* { name: "Chicago, Illinois", ...client, client: client.latitude, pop: null },
|
|
409
|
+
* { name: "ngrok Ohio", ...pop, client: null, pop: pop.latitude },
|
|
410
|
+
* ]}
|
|
411
|
+
* longitudeKey="longitude"
|
|
412
|
+
* labelKey="name"
|
|
413
|
+
* bounds={{ west: -105, south: 30, east: -65, north: 50 }}
|
|
414
|
+
* aria-label="Client location"
|
|
415
|
+
* >
|
|
416
|
+
* <WorldMap.Point latitudeKey="client" label="Client" color="success" />
|
|
417
|
+
* <WorldMap.Point latitudeKey="pop" label="ngrok edge" color="accent" shape="diamond" />
|
|
418
|
+
* <WorldMap.Connector from={client} to={pop} color="accent" />
|
|
419
|
+
* <WorldMap.Callout {...client}>Chicago, Illinois, United States</WorldMap.Callout>
|
|
420
|
+
* </WorldMap.Root>
|
|
421
|
+
* ```
|
|
422
|
+
*/
|
|
423
|
+
declare const Callout: ({ longitude, latitude, side, asChild, className, children, ref, "data-slot": dataSlot, ...props }: WorldMapCalloutProps) => import("react").JSX.Element;
|
|
424
|
+
export { Point as a, WorldMapCalloutProps as c, WorldMapPointProps as d, WorldMapRootProps as f, Legend as i, WorldMapConnectorProps as l, GeoBounds as m, Connector as n, Root as o, WorldMapTooltipProps as p, Graticule as r, Tooltip as s, Callout as t, WorldMapLegendProps as u };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={precision:10,rings:/* @__PURE__ */ "fd@~p@DHDHh@Aj@?VE?AJCm@?i@@OGIG.nbBtp@d@@XEJG@?JEKGe@BSDMD.f[vo@YHGJAFAH^D^Dd@Bh@Bn@?XGCGi@EQEKGIGKEKII?]C.vjA|l@YBWCJDPDZARECG.nmA|l@_@FJAXAZCME.z|@|k@UBUAKHNAV@VAZ@RCHGKCYB.xi@jk@CFBFDFV@TBX?IGV@TBNE?GUGMAU?EIAG?OIIQAKFCDGHGF.noB|s@A?OKc@FCACAGAEAA?C?A?[FYGC?y@CSBI@]Fw@Bm@DkADy@EuABo@Ds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@D`@Nf@BLBz@@[@LBOHPD^DHFZDCBa@??Bt@Jr@Ex@B\\Ad@A@Ic@CHMMAs@HXM`@COGc@CEEZGFKu@@O@_@Gl@AdA@b@GNGVEBE]CW?e@C]GW@UDOKYAc@A{@AK@y@Ai@?.|Oes@}BNd@FjA?jB@IBeAA}@De@EOFTHs@E_BG{@BKFpALHD~@@m@@VLNJ?VWJ\\@`@De@HCPT?YPj@@WFFDZBZ?YL?Ff@GHD[BYJEN`@BNGVIEJVJu@?[@t@Nt@Nz@FT?RFZRj@LJ@ZBZBPL?LHJ^NGNHNHRZ@\\Qf@?PILS`@WHMBQZQGMLGSW]EGGCOTDJBP@VE@MGIS?g@B`@KPER@NEUQJGNMVSXG?Gt@Kh@At@@n@?VE`@Ks@Eg@ArACl@GAGkAIiAIGGt@EQGcAM]AFIm@C}@C}@?UDs@Io@D[@i@Dn@IAGcAKeA?YEeAA".split(`.`)};export{e as t};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The parts of the `WorldMap` namespace. `index.ts` imports them as one module
|
|
3
|
+
* namespace, so a bundler keeps only the parts a consumer reads.
|
|
4
|
+
*/
|
|
5
|
+
import { a as Point, i as Legend, n as Connector, o as Root, r as Graticule, s as Tooltip, t as Callout } from "./world-map-BDd3N_Ap.js";
|
|
6
|
+
export { Callout, Connector, Graticule, Legend, Point, Root, Tooltip };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{t as Callout,n as Connector,r as Graticule,i as Legend,a as Point,o as Root,s as Tooltip}from"./world-map-t9U-IMKS.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{createContext as e,use as t,useCallback as n,useId as r,useLayoutEffect as i,useMemo as a,useRef as o,useState as s}from"react";import c from"tiny-invariant";import{t as l}from"./compose-refs-Ce1vWUz0.js";import{n as u}from"./cx-CfAFHj5_.js";import{t as d}from"./utils-EM6s2WEU.js";import{f,i as p,n as m,o as h,r as g,t as _,u as v}from"./chart-B0n2xyYi.js";import{i as y}from"./chart-Bybyh2Dc.js";import{T as b,b as x,v as S}from"./chart-BmZoTjRu.js";import{n as C,t as w}from"./chart-wTwYzUMJ.js";import{t as T}from"./slot-CBcGhRdV.js";import{t as E}from"./world-map-D3c8Pq-h.js";import{Fragment as D,jsx as O,jsxs as k}from"react/jsx-runtime";const A=e=>{let{longitudeKey:t,labelKey:n,sizeKey:r,bounds:o,children:l}=e,{west:d,south:f,east:p,north:m}=o??{};c(d==null||p==null||d<p,`WorldMap.Root bounds.west must be less than bounds.east.`);let[h]=s(()=>new w(E,o??null)),g=a(()=>U(n,r),[n,r]);return i(()=>{h.setBounds(d==null||f==null||p==null||m==null?null:{west:d,south:f,east:p,north:m})},[h,d,f,p,m]),/* @__PURE__ */ O(_,{...e,kind:`scatter`,componentName:`WorldMap`,slotName:`world-map`,paintBackend:y,scatterView:h.createView,readout:g,xKey:t,xScale:`linear`,className:u(`aspect-2/1`,e.className),children:/* @__PURE__ */ O(F,{value:h,children:l})})},j=({latitudeKey:e,...t})=>h(`WorldMap.Point`,`scatter`,{...t,dataKey:e}),M=()=>p(`WorldMap.Graticule`,{}),N=({indicator:e,...t})=>m(`WorldMap.Tooltip`,{...t,indicator:e===`none`?`none`:`line`}),P=e=>/* @__PURE__ */ O(v,{partName:`WorldMap.Legend`,slotName:`world-map`,...e}),F=e(null),I=e=>{let n=t(F);return c(n!=null,`${e} must be composed inside WorldMap.Root.`),n},L=({from:e,to:t,color:n=`neutral`,lineStyle:a=`dashed`})=>{let o=I(`WorldMap.Connector`),s=r(),{longitude:c,latitude:l}=e,{longitude:u,latitude:d}=t;return i(()=>{o.connectors.set(s,{from:{longitude:c,latitude:l},to:{longitude:u,latitude:d},color:n,lineStyle:a}),o.changed()},[o,s,c,l,u,d,n,a]),i(()=>()=>{o.connectors.delete(s),o.changed()},[o,s]),null},R=({longitude:e,latitude:t,side:i=`top`,asChild:a=!1,className:s,children:c,ref:f,"data-slot":p,...m})=>{let h=I(`WorldMap.Callout`),g=r(),_=o(null),v=n(n=>{let r={longitude:e,latitude:t},a=_.current?.element===n?_.current:null,o=a==null?null:{width:a.width,height:a.height};h.callouts.set(g,{element:n,place:r,side:i,size:o}),o!=null&&h.calloutsChanged();let s=x(n,()=>{let e=n.offsetWidth,t=n.offsetHeight,a=_.current;(a?.element!==n||a.width!==e||a.height!==t)&&(_.current={element:n,width:e,height:t},h.callouts.set(g,{element:n,place:r,side:i,size:{width:e,height:t}}),h.calloutsChanged())},{box:`border-box`});return()=>{s(),h.callouts.delete(g)}},[h,g,e,t,i]),y=l(v,f);return/* @__PURE__ */ O(a?T:`div`,{"data-slot":d(p,`world-map-callout`),"data-side":i,ref:y,className:u(`bg-popover border-popover text-strong pointer-events-none invisible absolute left-0 top-0 rounded-md border px-2.5 py-1.5 text-xs shadow-md`,s),...m,children:c})},z={x:`longitudeKey`,series:`latitudeKey`},B=(e,t,n)=>{let r=t==null?void 0:b(e,t);return typeof r==`string`&&r!==``||typeof r==`number`?String(r):C(n.longitude,n.latitude)},V=(e,t)=>{let n=t==null?void 0:b(e,t);return typeof n==`number`&&Number.isFinite(n)?`${t}: ${S(n)}`:null},H=e=>({longitude:typeof e.xValue==`number`?e.xValue:NaN,latitude:e.points[0]?.value??NaN}),U=(e,t)=>({keyNames:z,Tooltip:({hover:n,config:r})=>{if(n.points.length===0)return null;let i=H(n),a=C(i.longitude,i.latitude),o=B(n.datum,e,i),s=V(n.datum,t),c=r?.footer;return/* @__PURE__ */ k(D,{children:[/* @__PURE__ */ O(`div`,{className:`text-strong font-medium`,children:o}),o!==a&&/* @__PURE__ */ O(`div`,{className:`text-muted tabular-nums`,children:a}),s!=null&&/* @__PURE__ */ O(`div`,{className:`text-muted tabular-nums`,children:s}),/* @__PURE__ */ O(`div`,{className:`mt-1 grid gap-1`,children:n.points.map(e=>/* @__PURE__ */ k(`div`,{className:`flex items-center gap-1.5`,children:[r?.indicator!==`none`&&/* @__PURE__ */ O(`span`,{"aria-hidden":!0,className:`forced-color-adjust-none size-2 shrink-0 rounded-full`,style:{backgroundColor:e.color}}),/* @__PURE__ */ O(`span`,{className:`text-muted`,children:e.label})]},e.dataKey))}),c!=null&&/* @__PURE__ */ O(`div`,{className:`text-muted mt-1`,children:typeof c==`function`?c(n):c})]})},announce:n=>{if(n.points.length===0)return``;let r=H(n),i=C(r.longitude,r.latitude),a=B(n.datum,e,r),o=a===i?a:`${a}, ${i}`,s=V(n.datum,t);return`${o}. ${n.points.map(e=>e.label).join(`, `)}${s==null?``:`, ${s}`}`},describe:(e,t)=>{let n=t?S(e.count):String(e.count);return{sentence:e.count===0?`World map with no points.`:`World map with ${n} ${e.count===1?`point`:`points`}.`,instructions:` Use the left and right arrow keys to move between points from west to east, Page Up and Page Down to jump by a tenth of the points, Home and End to jump to the westernmost and easternmost, Enter or Space to activate the current point, and Escape to dismiss the readout.`}},DataTable:n=>/* @__PURE__ */ O(W,{...n,labelKey:e,sizeKey:t})}),W=({data:e,label:t,labelledBy:n,slotName:r,store:i,xKey:a,labelKey:o,sizeKey:s})=>{let c=f(i),l=g(t,n),u=e.flatMap((e,t)=>{let n=b(e,a);return typeof n!=`number`||!Number.isFinite(n)?[]:c.flatMap(({dataKey:r,label:i})=>{let a=b(e,r);return typeof a==`number`&&Number.isFinite(a)?[{datum:e,rowIndex:t,dataKey:r,seriesLabel:i,longitude:n,latitude:a}]:[]})}).toSorted((e,t)=>e.longitude-t.longitude||e.rowIndex-t.rowIndex);if(u.length===0)return null;let d=`${l==null?`Map data`:`${l}: map data`}${u.length>150?`. Showing the first 150 of ${u.length} points, from west to east.`:`.`}`;return/* @__PURE__ */ O(`div`,{className:`sr-only`,"data-slot":`${r}-data-table`,children:/* @__PURE__ */ k(`table`,{children:[/* @__PURE__ */ O(`caption`,{children:d}),/* @__PURE__ */ O(`thead`,{children:/* @__PURE__ */ k(`tr`,{children:[/* @__PURE__ */ O(`th`,{scope:`col`,children:`Point`}),/* @__PURE__ */ O(`th`,{scope:`col`,children:`Series`}),/* @__PURE__ */ O(`th`,{scope:`col`,children:`Latitude`}),/* @__PURE__ */ O(`th`,{scope:`col`,children:`Longitude`}),s!=null&&/* @__PURE__ */ O(`th`,{scope:`col`,children:s})]})}),/* @__PURE__ */ O(`tbody`,{children:u.slice(0,150).map(e=>/* @__PURE__ */ k(`tr`,{children:[/* @__PURE__ */ O(`th`,{scope:`row`,children:B(e.datum,o,e)}),/* @__PURE__ */ O(`td`,{children:e.seriesLabel}),/* @__PURE__ */ O(`td`,{"data-value":e.latitude,children:S(e.latitude)}),/* @__PURE__ */ O(`td`,{"data-value":e.longitude,children:S(e.longitude)}),s!=null&&/* @__PURE__ */ O(G,{datum:e.datum,sizeKey:s})]},`${e.dataKey}:${e.rowIndex}`))})]})})},G=({datum:e,sizeKey:t})=>{let n=b(e,t);return typeof n==`number`&&Number.isFinite(n)?/* @__PURE__ */ O(`td`,{"data-value":n,children:S(n)}):/* @__PURE__ */ O(`td`,{})};export{j as a,P as i,L as n,A as o,M as r,N as s,R as t};
|