@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
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The parts of the `AlertCenter` 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 Content, c as Root, i as Bar, o as DismissIconButton, s as Item } from "./alert-center-CGBbqO-y.js";
|
|
6
|
+
export { Bar, Content, DismissIconButton, Item, Root };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{t as Bar,n as Content,r as DismissIconButton,i as Item,a as Root}from"./alert-center-Bb39SBqJ.js";
|
package/dist/alert-center.d.ts
CHANGED
|
@@ -3,379 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @see https://mantle.ngrok.com/components/feedback/alert-center
|
|
5
5
|
*/
|
|
6
|
-
import
|
|
7
|
-
import { t as
|
|
8
|
-
import { ComponentProps, ReactNode } from "react";
|
|
9
|
-
/**
|
|
10
|
-
* The tone an alert's color communicates, identical to `Alert`'s intent axis,
|
|
11
|
-
* so an item's `intent` flows straight through to the `Alert` chrome that
|
|
12
|
-
* renders it. Also the severity ranking key: `danger` › `warning` ›
|
|
13
|
-
* `important` › `info` › `success` decides which item the bar shows.
|
|
14
|
-
*
|
|
15
|
-
* @see https://mantle.ngrok.com/components/feedback/alert-center
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```tsx
|
|
19
|
-
* <AlertCenter.Item id="payment-failed" intent="danger">…</AlertCenter.Item>
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
type AlertCenterIntent = "danger" | "important" | "info" | "success" | "warning";
|
|
23
|
-
/**
|
|
24
|
-
* Props for {@link AlertCenter.Root}: the expansion's open state. The alerts
|
|
25
|
-
* themselves are authored as `AlertCenter.Item` children.
|
|
26
|
-
*
|
|
27
|
-
* @see https://mantle.ngrok.com/components/feedback/alert-center#alertcenterroot
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* ```tsx
|
|
31
|
-
* <AlertCenter.Root open={expanded} onOpenChange={setExpanded}>
|
|
32
|
-
* <AlertCenter.Bar />
|
|
33
|
-
* <AlertCenter.Content />
|
|
34
|
-
* <AlertCenter.Item id="payment-failed" intent="danger">…</AlertCenter.Item>
|
|
35
|
-
* </AlertCenter.Root>
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
type AlertCenterRootProps = {
|
|
39
|
-
/** Controlled expanded state of the additional-alert list. Pair with `onOpenChange`. */
|
|
40
|
-
open?: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* Uncontrolled initial expanded state of the additional-alert list.
|
|
43
|
-
*
|
|
44
|
-
* @default false
|
|
45
|
-
*/
|
|
46
|
-
defaultOpen?: boolean;
|
|
47
|
-
/** Called when the additional-alert list expands or collapses. */
|
|
48
|
-
onOpenChange?: (open: boolean) => void;
|
|
49
|
-
/**
|
|
50
|
-
* The `AlertCenter.Bar`, `AlertCenter.Content`, and every `AlertCenter.Item`.
|
|
51
|
-
* Items may be authored anywhere under the root. Their children stay in this
|
|
52
|
-
* tree and are projected into the bar or an expansion row by rank.
|
|
53
|
-
*/
|
|
54
|
-
children?: ReactNode;
|
|
55
|
-
};
|
|
56
|
-
/**
|
|
57
|
-
* The renderless state owner. It creates the registration store the
|
|
58
|
-
* `AlertCenter.Item` children register into, owns the inline expansion's open
|
|
59
|
-
* state, and mounts the persistent live-region announcer. Compose its `Bar`
|
|
60
|
-
* (and `Content`) inside `AppLayout.Notice`, alongside any other window-level
|
|
61
|
-
* notice, so all top-of-viewport messaging shares one layout slot.
|
|
62
|
-
*
|
|
63
|
-
* Items register client-side (from layout effects), so server-rendered HTML
|
|
64
|
-
* contains no bar; it enters with its height animation after hydration, the
|
|
65
|
-
* same entrance every arriving alert gets by design.
|
|
66
|
-
*
|
|
67
|
-
* **Data attributes:**
|
|
68
|
-
*
|
|
69
|
-
* | Data Attribute | Value | Description |
|
|
70
|
-
* | --- | --- | --- |
|
|
71
|
-
* | `data-slot` | `alert-center-announcer` | On the persistent visually-hidden `role="status"` live region Root mounts. |
|
|
72
|
-
*
|
|
73
|
-
* @see https://mantle.ngrok.com/components/feedback/alert-center#alertcenterroot
|
|
74
|
-
*
|
|
75
|
-
* @example
|
|
76
|
-
* ```tsx
|
|
77
|
-
* <AlertCenter.Root>
|
|
78
|
-
* <AlertCenter.Bar />
|
|
79
|
-
* <AlertCenter.Content />
|
|
80
|
-
* {paymentFailed && (
|
|
81
|
-
* <AlertCenter.Item id="payment-failed" intent="danger">
|
|
82
|
-
* <Alert.Icon />
|
|
83
|
-
* <Alert.Content>
|
|
84
|
-
* <Alert.Title>
|
|
85
|
-
* Payment failed: <a href="/billing">update your card</a>
|
|
86
|
-
* </Alert.Title>
|
|
87
|
-
* </Alert.Content>
|
|
88
|
-
* </AlertCenter.Item>
|
|
89
|
-
* )}
|
|
90
|
-
* </AlertCenter.Root>
|
|
91
|
-
* ```
|
|
92
|
-
*/
|
|
93
|
-
declare const Root: ({ children, defaultOpen, onOpenChange, open }: AlertCenterRootProps) => import("react").JSX.Element;
|
|
94
|
-
/**
|
|
95
|
-
* Props for {@link AlertCenter.Item}: the coordination facts the center needs
|
|
96
|
-
* to rank, announce, and label an alert. Everything presentational is the
|
|
97
|
-
* authored `children`.
|
|
98
|
-
*
|
|
99
|
-
* @see https://mantle.ngrok.com/components/feedback/alert-center#alertcenteritem
|
|
100
|
-
*
|
|
101
|
-
* @example
|
|
102
|
-
* ```tsx
|
|
103
|
-
* <AlertCenter.Root>
|
|
104
|
-
* <AlertCenter.Bar />
|
|
105
|
-
* <AlertCenter.Content />
|
|
106
|
-
* <AlertCenter.Item id="transfer-limit" intent="warning">
|
|
107
|
-
* <Alert.Icon />
|
|
108
|
-
* <Alert.Content>
|
|
109
|
-
* <Alert.Title>Approaching your data transfer limit</Alert.Title>
|
|
110
|
-
* <AlertCenter.DismissIconButton onClick={() => dismiss("transfer-limit")} />
|
|
111
|
-
* </Alert.Content>
|
|
112
|
-
* </AlertCenter.Item>
|
|
113
|
-
* </AlertCenter.Root>
|
|
114
|
-
* ```
|
|
115
|
-
*/
|
|
116
|
-
type AlertCenterItemProps = {
|
|
117
|
-
/**
|
|
118
|
-
* Stable identity. It keys the item's stable host element (children keep
|
|
119
|
-
* their state as the host moves between the bar and a row), pins the
|
|
120
|
-
* item's arrival order (a returning id resumes its original position), and
|
|
121
|
-
* is stamped on the chrome as `data-alert-id` for styling. Must be unique
|
|
122
|
-
* among the items mounted under one `AlertCenter.Root`. A second mounted
|
|
123
|
-
* item claiming the same id throws, since both would project into that
|
|
124
|
-
* id's single host.
|
|
125
|
-
*/
|
|
126
|
-
id: string;
|
|
127
|
-
/**
|
|
128
|
-
* The tone the alert's color communicates. Drives both the severity ranking
|
|
129
|
-
* and the intent of the `Alert.Root` chrome the children render inside.
|
|
130
|
-
*/
|
|
131
|
-
intent: AlertCenterIntent;
|
|
132
|
-
/** Optional classes for this item's chrome `Alert.Root`, in both placements. */
|
|
133
|
-
className?: string;
|
|
134
|
-
/**
|
|
135
|
-
* The position among same-intent peers. Lower comes first. Items that share
|
|
136
|
-
* an order keep arrival order. An item with no order follows every item that
|
|
137
|
-
* declares one, `Infinity` included. Set it when two same-intent alerts come
|
|
138
|
-
* from independent sources, because arrival order then depends on which
|
|
139
|
-
* source answers first. `intent` still decides the tier: a `warning` with
|
|
140
|
-
* `order={0}` never outranks a `danger`.
|
|
141
|
-
*/
|
|
142
|
-
order?: number;
|
|
143
|
-
/**
|
|
144
|
-
* The banner content: compose `Alert.Icon`, `Alert.Content`, `Alert.Title`,
|
|
145
|
-
* `Alert.Description`, and `AlertCenter.DismissIconButton`. Do NOT include
|
|
146
|
-
* `Alert.Root`: the center renders the chrome (with this item's `intent`)
|
|
147
|
-
* at whichever placement the item ranks into.
|
|
148
|
-
*/
|
|
149
|
-
children: ReactNode;
|
|
150
|
-
};
|
|
151
|
-
/**
|
|
152
|
-
* One account alert, authored as JSX. It registers its coordination facts
|
|
153
|
-
* with the center and renders its children through a portal into a stable
|
|
154
|
-
* per-id host element that `AlertCenter.Bar` / `AlertCenter.Content`
|
|
155
|
-
* physically adopt into their chrome. Mount it to show the alert, unmount it
|
|
156
|
-
* to remove it. Dismissal is your state flipping the condition off.
|
|
157
|
-
*
|
|
158
|
-
* Because the children stay in YOUR React tree (only their DOM lands in the
|
|
159
|
-
* chrome), context providers and error boundaries around the item work, and
|
|
160
|
-
* router-aware links resolve at the authoring location. The host element is
|
|
161
|
-
* stable and moved (not remounted) between the bar and a row, so authored
|
|
162
|
-
* content keeps its state (and, in engines with `Element.moveBefore`, even
|
|
163
|
-
* focus) across re-ranks. While an item ranks nowhere visible (e.g. the
|
|
164
|
-
* expansion is not composed), its children stay mounted on a detached host:
|
|
165
|
-
* React renders them, and they add nothing to the document.
|
|
166
|
-
*
|
|
167
|
-
* Server rendering emits no alert DOM. The bar enters after hydration with
|
|
168
|
-
* its height animation, the same entrance every arriving alert gets.
|
|
169
|
-
*
|
|
170
|
-
* **Structure.** `children` render inside a
|
|
171
|
-
* `<div data-slot="alert-center-item-label">`, the only node the portal puts
|
|
172
|
-
* in the host. A portal owns no node of its own, so React removes each portal
|
|
173
|
-
* child from the host by itself. A browser translation engine reparents a bare
|
|
174
|
-
* text child. A removal aimed at one throws, so the wrapper keeps the removed
|
|
175
|
-
* node an element. The wrapper is `display: contents`, so the authored children
|
|
176
|
-
* stay direct flex items of the banner chrome and keep its `gap`.
|
|
177
|
-
*
|
|
178
|
-
* **Data attributes:**
|
|
179
|
-
*
|
|
180
|
-
* | Data Attribute | Value | Description |
|
|
181
|
-
* | --- | --- | --- |
|
|
182
|
-
* | `data-slot` | `alert-center-item-host` | On the stable per-id host element the item's children portal into. |
|
|
183
|
-
* | `data-slot` | `alert-center-item-label` | On the layout-transparent element inside the host that wraps the item's children. |
|
|
184
|
-
* | `data-alert-host` | the item's `id` | On that same host: which alert's projected children it holds. |
|
|
185
|
-
*
|
|
186
|
-
* @see https://mantle.ngrok.com/components/feedback/alert-center#alertcenteritem
|
|
187
|
-
*
|
|
188
|
-
* @example
|
|
189
|
-
* ```tsx
|
|
190
|
-
* <AlertCenter.Root>
|
|
191
|
-
* <AlertCenter.Bar />
|
|
192
|
-
* <AlertCenter.Content />
|
|
193
|
-
* <AlertCenter.Item id="transfer-limit" intent="warning">
|
|
194
|
-
* <Alert.Icon />
|
|
195
|
-
* <Alert.Content>
|
|
196
|
-
* <Alert.Title>
|
|
197
|
-
* You've used 92% of your monthly transfer. <a href="/billing">Upgrade</a>
|
|
198
|
-
* </Alert.Title>
|
|
199
|
-
* <Alert.Description>Free accounts include 5 GB of transfer per month.</Alert.Description>
|
|
200
|
-
* <AlertCenter.DismissIconButton onClick={() => dismiss("transfer-limit")} />
|
|
201
|
-
* </Alert.Content>
|
|
202
|
-
* </AlertCenter.Item>
|
|
203
|
-
* </AlertCenter.Root>
|
|
204
|
-
* ```
|
|
205
|
-
*/
|
|
206
|
-
declare const Item: ({ children, className, id, intent, order }: AlertCenterItemProps) => import("react").ReactPortal | null;
|
|
207
|
-
type AlertCenterDismissIconButtonProps = ComponentProps<typeof Alert.DismissIconButton> & WithDataSlot & {
|
|
208
|
-
/**
|
|
209
|
-
* Dismissal is consumer-owned: remove the alert by unmounting its
|
|
210
|
-
* `AlertCenter.Item` (and persist that however you like). Required because a
|
|
211
|
-
* dismiss affordance that does nothing is always an authoring error.
|
|
212
|
-
*/
|
|
213
|
-
onClick: NonNullable<ComponentProps<typeof Alert.DismissIconButton>["onClick"]>;
|
|
214
|
-
};
|
|
215
|
-
/**
|
|
216
|
-
* The dismiss affordance for the item it's composed inside. A thin wrapper over
|
|
217
|
-
* `Alert.DismissIconButton` whose label defaults to `Dismiss ${title}`. That
|
|
218
|
-
* label derives from the enclosing banner's RENDERED `Alert.Title` text and is
|
|
219
|
-
* re-read on every commit, so the accessible name stays in lockstep with the
|
|
220
|
-
* visible copy (pass `label` to override, e.g. when the title is long). Compose
|
|
221
|
-
* it (or leave it out) per alert; its presence IS the alert's dismissability.
|
|
222
|
-
*
|
|
223
|
-
* Where the control sits in each placement is the chrome's business, not this
|
|
224
|
-
* wrapper's: `Alert.Root` keeps it rightmost and seats the bar's expand
|
|
225
|
-
* control to its left, and {@link singleLineBarControls} re-centers it in a
|
|
226
|
-
* single-line bar.
|
|
227
|
-
*
|
|
228
|
-
* **Data attributes:**
|
|
229
|
-
*
|
|
230
|
-
* | Data Attribute | Value | Description |
|
|
231
|
-
* | --- | --- | --- |
|
|
232
|
-
* | `data-slot` | `alert-center-dismiss-icon-button alert-dismiss-icon-button icon-button` | On the rendered button, joined ahead of `Alert.DismissIconButton`'s own slot and `IconButton`'s. |
|
|
233
|
-
* | `data-alert-dismiss` | present | Read, not stamped. `Alert` emits it, and `AlertCenter`'s bar CSS positions the control with it. |
|
|
234
|
-
*
|
|
235
|
-
* @see https://mantle.ngrok.com/components/feedback/alert-center#alertcenterdismissiconbutton
|
|
236
|
-
*
|
|
237
|
-
* @example
|
|
238
|
-
* ```tsx
|
|
239
|
-
* <AlertCenter.Root>
|
|
240
|
-
* <AlertCenter.Bar />
|
|
241
|
-
* <AlertCenter.Content />
|
|
242
|
-
* <AlertCenter.Item id="transfer-limit" intent="warning">
|
|
243
|
-
* <Alert.Icon />
|
|
244
|
-
* <Alert.Content>
|
|
245
|
-
* <Alert.Title>Approaching your data transfer limit</Alert.Title>
|
|
246
|
-
* <AlertCenter.DismissIconButton onClick={() => dismiss("transfer-limit")} />
|
|
247
|
-
* </Alert.Content>
|
|
248
|
-
* </AlertCenter.Item>
|
|
249
|
-
* </AlertCenter.Root>
|
|
250
|
-
* ```
|
|
251
|
-
*/
|
|
252
|
-
declare const DismissIconButton: ({ "data-slot": dataSlot, label, ref, ...props }: AlertCenterDismissIconButtonProps) => import("react").JSX.Element;
|
|
253
|
-
type AlertCenterBarProps = Omit<ComponentProps<typeof Alert.Root>, "appearance" | "intent" | "children"> & WithDataSlot & {
|
|
254
|
-
/** Not accepted. The bar renders the top-ranked item's authored children. */
|
|
255
|
-
children?: never;
|
|
256
|
-
};
|
|
257
|
-
/**
|
|
258
|
-
* The always-visible, full-width strip. It renders the single highest-severity
|
|
259
|
-
* item's authored children INLINE (icon, title, description, and its
|
|
260
|
-
* call-to-action), so the top CTA is one glance (and zero extra clicks) away,
|
|
261
|
-
* then appends a count-and-caret control that expands the additional alerts
|
|
262
|
-
* below the bar. Collapses to nothing when there are no alerts (like
|
|
263
|
-
* `AppLayout.Notice`), so it can stay mounted and render unconditionally.
|
|
264
|
-
*
|
|
265
|
-
* The bar renders the top alert as authored, so it is exactly as tall as that
|
|
266
|
-
* content: single-line for a title alone, two lines once an `Alert.Description`
|
|
267
|
-
* is composed (matching how the same alert renders as an expansion row). Its
|
|
268
|
-
* chrome carries `data-placement="bar"` and `data-alert-id` as styling hooks for
|
|
269
|
-
* placement-aware authored content: `in-data-[placement=bar]:hidden` keeps a
|
|
270
|
-
* given element out of the bar and shows it only in the expansion.
|
|
271
|
-
*
|
|
272
|
-
* The bar itself claims NO ARIA landmark (deliberately, like `AppLayout.Notice`).
|
|
273
|
-
* The persistent visually-hidden `role="status"` region that `AlertCenter.Root`
|
|
274
|
-
* mounts announces arrivals and re-ranks.
|
|
275
|
-
*
|
|
276
|
-
* **Data attributes:**
|
|
277
|
-
*
|
|
278
|
-
* | Data Attribute | Value | Description |
|
|
279
|
-
* | --- | --- | --- |
|
|
280
|
-
* | `data-slot` | `alert-center-bar-wrapper` | On the presence wrapper that owns the enter/exit animation. |
|
|
281
|
-
* | `data-slot` | `alert-center-bar alert` | On the banner chrome the top item's children render inside, joined ahead of `Alert.Root`'s own slot. |
|
|
282
|
-
* | `data-slot` | `alert-center-bar-mount` | On the layout-transparent element the top item's host is adopted into. |
|
|
283
|
-
* | `data-state` | `"open"` \| `"closed"` | On the wrapper; drives the enter/exit transition, and stays `closed` while the exit plays. |
|
|
284
|
-
* | `data-placement` | `"bar"` | On the chrome: where the top item's children are currently rendering. |
|
|
285
|
-
* | `data-alert-id` | the top item's `id` | On the chrome; per-alert styling and testing hook. |
|
|
286
|
-
* | `data-alert-dismiss` | present on the dismiss control | Read, not stamped. `Alert` emits it; the bar's CSS centers and offsets the control with it. |
|
|
287
|
-
* | `data-alert-expand` | present on the expand control | Read, not stamped. `Alert` emits it; the bar's CSS centers the control with it. |
|
|
288
|
-
*
|
|
289
|
-
* @see https://mantle.ngrok.com/components/feedback/alert-center#alertcenterbar
|
|
290
|
-
*
|
|
291
|
-
* @example
|
|
292
|
-
* ```tsx
|
|
293
|
-
* <AlertCenter.Root>
|
|
294
|
-
* <AlertCenter.Bar />
|
|
295
|
-
* <AlertCenter.Content />
|
|
296
|
-
* <AlertCenter.Item id="payment-failed" intent="danger">
|
|
297
|
-
* <Alert.Icon />
|
|
298
|
-
* <Alert.Content>
|
|
299
|
-
* <Alert.Title>
|
|
300
|
-
* Payment failed: we couldn't charge your card.{" "}
|
|
301
|
-
* <a href="/billing">Update payment method</a>
|
|
302
|
-
* </Alert.Title>
|
|
303
|
-
* <Alert.Description>
|
|
304
|
-
* Update your payment method to avoid a service interruption.
|
|
305
|
-
* </Alert.Description>
|
|
306
|
-
* </Alert.Content>
|
|
307
|
-
* </AlertCenter.Item>
|
|
308
|
-
* {!dismissed.has("transfer-limit") && (
|
|
309
|
-
* <AlertCenter.Item id="transfer-limit" intent="warning">
|
|
310
|
-
* <Alert.Icon />
|
|
311
|
-
* <Alert.Content>
|
|
312
|
-
* <Alert.Title>
|
|
313
|
-
* You've used 92% of your monthly transfer.{" "}
|
|
314
|
-
* <a href="/billing/choose-a-plan">Upgrade</a>
|
|
315
|
-
* </Alert.Title>
|
|
316
|
-
* <AlertCenter.DismissIconButton onClick={() => dismiss("transfer-limit")} />
|
|
317
|
-
* </Alert.Content>
|
|
318
|
-
* </AlertCenter.Item>
|
|
319
|
-
* )}
|
|
320
|
-
* </AlertCenter.Root>
|
|
321
|
-
* ```
|
|
322
|
-
*/
|
|
323
|
-
declare const Bar: ({ className, "data-slot": dataSlot, ref, ...props }: AlertCenterBarProps) => import("react").JSX.Element | null;
|
|
324
|
-
type AlertCenterContentProps = Omit<ComponentProps<"div">, "children" | "id"> & WithDataSlot & {
|
|
325
|
-
/** Not accepted. The rows are the registered items' authored children. */
|
|
326
|
-
children?: never;
|
|
327
|
-
};
|
|
328
|
-
/**
|
|
329
|
-
* The inline expansion below `AlertCenter.Bar`. It renders the additional
|
|
330
|
-
* alerts (every registered item except the bar's top one), ranked
|
|
331
|
-
* highest-severity-first, as full-width banner rows that push the app shell
|
|
332
|
-
* down while expanded. Each row is the item's authored children inside an
|
|
333
|
-
* `Alert.Root` chrome stamped with `data-placement="list"` and
|
|
334
|
-
* `data-alert-id`.
|
|
335
|
-
*
|
|
336
|
-
* `aria-label` (default `"More alerts"`) and `aria-labelledby` name the row
|
|
337
|
-
* list itself. The outer wrapper is `role="generic"`, where ARIA prohibits
|
|
338
|
-
* accessible names, so a name passed here would otherwise be dropped.
|
|
339
|
-
*
|
|
340
|
-
* **Data attributes:**
|
|
341
|
-
*
|
|
342
|
-
* | Data Attribute | Value | Description |
|
|
343
|
-
* | --- | --- | --- |
|
|
344
|
-
* | `data-slot` | `alert-center-content` | On the expansion wrapper that owns the collapse animation. |
|
|
345
|
-
* | `data-slot` | `alert-center-item alert` | On each row's banner chrome, joined ahead of `Alert.Root`'s own slot. |
|
|
346
|
-
* | `data-state` | `"open"` \| `"closed"` | On the wrapper; drives the collapse transition. |
|
|
347
|
-
* | `data-placement` | `"list"` | On each row's chrome: where that item's children are currently rendering. |
|
|
348
|
-
* | `data-alert-id` | the row item's `id` | On each row's chrome; per-alert styling and testing hook. |
|
|
349
|
-
* | `data-alert-mount` | the row item's `id` | On the row's layout-transparent mount point: the element that item's host is adopted into. |
|
|
350
|
-
*
|
|
351
|
-
* @see https://mantle.ngrok.com/components/feedback/alert-center#alertcentercontent
|
|
352
|
-
*
|
|
353
|
-
* @example
|
|
354
|
-
* ```tsx
|
|
355
|
-
* <AlertCenter.Root>
|
|
356
|
-
* <AlertCenter.Bar />
|
|
357
|
-
* <AlertCenter.Content aria-label="Autres alertes" />
|
|
358
|
-
* <AlertCenter.Item id="payment-failed" intent="danger">
|
|
359
|
-
* <Alert.Icon />
|
|
360
|
-
* <Alert.Content>
|
|
361
|
-
* <Alert.Title>
|
|
362
|
-
* Payment failed: <a href="/billing">update your card</a>
|
|
363
|
-
* </Alert.Title>
|
|
364
|
-
* </Alert.Content>
|
|
365
|
-
* </AlertCenter.Item>
|
|
366
|
-
* {!dismissed.has("transfer-limit") && (
|
|
367
|
-
* <AlertCenter.Item id="transfer-limit" intent="warning">
|
|
368
|
-
* <Alert.Icon />
|
|
369
|
-
* <Alert.Content>
|
|
370
|
-
* <Alert.Title>Approaching your data transfer limit</Alert.Title>
|
|
371
|
-
* <AlertCenter.DismissIconButton onClick={() => dismiss("transfer-limit")} />
|
|
372
|
-
* </Alert.Content>
|
|
373
|
-
* </AlertCenter.Item>
|
|
374
|
-
* )}
|
|
375
|
-
* </AlertCenter.Root>
|
|
376
|
-
* ```
|
|
377
|
-
*/
|
|
378
|
-
declare const Content: ({ "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, className, "data-slot": dataSlot, ref, ...props }: AlertCenterContentProps) => import("react").JSX.Element | null;
|
|
6
|
+
import * as AlertCenterParts from "./alert-center-parts.js";
|
|
7
|
+
import { n as AlertCenterItemProps, r as AlertCenterRootProps, t as AlertCenterIntent } from "./alert-center-CGBbqO-y.js";
|
|
379
8
|
/**
|
|
380
9
|
* A single, top-level entry point for one-to-many account alerts and their
|
|
381
10
|
* upgrade CTAs: the aggregation layer that replaces a stack of independent
|
|
@@ -416,13 +45,13 @@ declare const Content: ({ "aria-label": ariaLabel, "aria-labelledby": ariaLabell
|
|
|
416
45
|
* @see https://mantle.ngrok.com/components/feedback/alert-center
|
|
417
46
|
*
|
|
418
47
|
* @example
|
|
419
|
-
* Composition (items render no DOM in place; their children
|
|
420
|
-
* stable host the bar or a row adopts):
|
|
48
|
+
* Composition (after hydration, items render no DOM in place; their children
|
|
49
|
+
* portal into a stable host the bar or a row adopts):
|
|
421
50
|
* ```
|
|
422
51
|
* AlertCenter.Root
|
|
423
52
|
* ├── AlertCenter.Bar ← the top-ranked item's children, in Alert chrome
|
|
424
53
|
* ├── AlertCenter.Content ← every other item's children, as ranked rows
|
|
425
|
-
* └── AlertCenter.Item (0..n, renderless)
|
|
54
|
+
* └── AlertCenter.Item (0..n, renderless after hydration)
|
|
426
55
|
* └── Alert.Icon / Alert.Content / Alert.Title / Alert.Description /
|
|
427
56
|
* AlertCenter.DismissIconButton
|
|
428
57
|
* ```
|
|
@@ -465,215 +94,5 @@ declare const Content: ({ "aria-label": ariaLabel, "aria-labelledby": ariaLabell
|
|
|
465
94
|
* </AppLayout.Root>
|
|
466
95
|
* ```
|
|
467
96
|
*/
|
|
468
|
-
declare const AlertCenter:
|
|
469
|
-
/**
|
|
470
|
-
* The renderless state owner: creates the registration store, owns the
|
|
471
|
-
* expansion's open state, and mounts the persistent live-region announcer.
|
|
472
|
-
*
|
|
473
|
-
* **Data attributes:**
|
|
474
|
-
*
|
|
475
|
-
* | Data Attribute | Value | Description |
|
|
476
|
-
* | --- | --- | --- |
|
|
477
|
-
* | `data-slot` | `alert-center-announcer` | On the persistent visually-hidden `role="status"` live region Root mounts. |
|
|
478
|
-
*
|
|
479
|
-
* @see https://mantle.ngrok.com/components/feedback/alert-center#alertcenterroot
|
|
480
|
-
*
|
|
481
|
-
* @example
|
|
482
|
-
* ```tsx
|
|
483
|
-
* <AlertCenter.Root>
|
|
484
|
-
* <AlertCenter.Bar />
|
|
485
|
-
* <AlertCenter.Content />
|
|
486
|
-
* <AlertCenter.Item id="payment-failed" intent="danger">
|
|
487
|
-
* <Alert.Icon />
|
|
488
|
-
* <Alert.Content>
|
|
489
|
-
* <Alert.Title>
|
|
490
|
-
* Payment failed: we couldn't charge your card.{" "}
|
|
491
|
-
* <a href="/billing">Update payment method</a>
|
|
492
|
-
* </Alert.Title>
|
|
493
|
-
* <Alert.Description>
|
|
494
|
-
* Update your payment method to avoid a service interruption.
|
|
495
|
-
* </Alert.Description>
|
|
496
|
-
* </Alert.Content>
|
|
497
|
-
* </AlertCenter.Item>
|
|
498
|
-
* {!dismissed.has("transfer-limit") && (
|
|
499
|
-
* <AlertCenter.Item id="transfer-limit" intent="warning">
|
|
500
|
-
* <Alert.Icon />
|
|
501
|
-
* <Alert.Content>
|
|
502
|
-
* <Alert.Title>
|
|
503
|
-
* You've used 92% of your monthly transfer.{" "}
|
|
504
|
-
* <a href="/billing/choose-a-plan">Upgrade</a>
|
|
505
|
-
* </Alert.Title>
|
|
506
|
-
* <AlertCenter.DismissIconButton onClick={() => dismiss("transfer-limit")} />
|
|
507
|
-
* </Alert.Content>
|
|
508
|
-
* </AlertCenter.Item>
|
|
509
|
-
* )}
|
|
510
|
-
* </AlertCenter.Root>
|
|
511
|
-
* ```
|
|
512
|
-
*/
|
|
513
|
-
readonly Root: typeof Root;
|
|
514
|
-
/**
|
|
515
|
-
* The always-visible strip: the highest-severity item's children inline
|
|
516
|
-
* (icon, title, description, CTA) plus the count-and-caret expansion control.
|
|
517
|
-
* Collapses to nothing when empty. Claims no ARIA landmark; arrivals are
|
|
518
|
-
* announced by Root's persistent live region.
|
|
519
|
-
*
|
|
520
|
-
* **Data attributes:**
|
|
521
|
-
*
|
|
522
|
-
* | Data Attribute | Value | Description |
|
|
523
|
-
* | --- | --- | --- |
|
|
524
|
-
* | `data-slot` | `alert-center-bar-wrapper` | On the presence wrapper that owns the enter/exit animation. |
|
|
525
|
-
* | `data-slot` | `alert-center-bar alert` | On the banner chrome the top item's children render inside, joined ahead of `Alert.Root`'s own slot. |
|
|
526
|
-
* | `data-slot` | `alert-center-bar-mount` | On the layout-transparent element the top item's host is adopted into. |
|
|
527
|
-
* | `data-state` | `"open"` \| `"closed"` | On the wrapper; drives the enter/exit transition, and stays `closed` while the exit plays. |
|
|
528
|
-
* | `data-placement` | `"bar"` | On the chrome: where the top item's children are currently rendering. |
|
|
529
|
-
* | `data-alert-id` | the top item's `id` | On the chrome; per-alert styling and testing hook. |
|
|
530
|
-
* | `data-alert-dismiss` | present on the dismiss control | Read, not stamped. `Alert` emits it; the bar's CSS centers and offsets the control with it. |
|
|
531
|
-
* | `data-alert-expand` | present on the expand control | Read, not stamped. `Alert` emits it; the bar's CSS centers the control with it. |
|
|
532
|
-
*
|
|
533
|
-
* @see https://mantle.ngrok.com/components/feedback/alert-center#alertcenterbar
|
|
534
|
-
*
|
|
535
|
-
* @example
|
|
536
|
-
* ```tsx
|
|
537
|
-
* <AlertCenter.Root>
|
|
538
|
-
* <AlertCenter.Bar />
|
|
539
|
-
* <AlertCenter.Content />
|
|
540
|
-
* <AlertCenter.Item id="payment-failed" intent="danger">
|
|
541
|
-
* <Alert.Icon />
|
|
542
|
-
* <Alert.Content>
|
|
543
|
-
* <Alert.Title>
|
|
544
|
-
* Payment failed: we couldn't charge your card.{" "}
|
|
545
|
-
* <a href="/billing">Update payment method</a>
|
|
546
|
-
* </Alert.Title>
|
|
547
|
-
* <Alert.Description>
|
|
548
|
-
* Update your payment method to avoid a service interruption.
|
|
549
|
-
* </Alert.Description>
|
|
550
|
-
* </Alert.Content>
|
|
551
|
-
* </AlertCenter.Item>
|
|
552
|
-
* {!dismissed.has("transfer-limit") && (
|
|
553
|
-
* <AlertCenter.Item id="transfer-limit" intent="warning">
|
|
554
|
-
* <Alert.Icon />
|
|
555
|
-
* <Alert.Content>
|
|
556
|
-
* <Alert.Title>
|
|
557
|
-
* You've used 92% of your monthly transfer.{" "}
|
|
558
|
-
* <a href="/billing/choose-a-plan">Upgrade</a>
|
|
559
|
-
* </Alert.Title>
|
|
560
|
-
* <AlertCenter.DismissIconButton onClick={() => dismiss("transfer-limit")} />
|
|
561
|
-
* </Alert.Content>
|
|
562
|
-
* </AlertCenter.Item>
|
|
563
|
-
* )}
|
|
564
|
-
* </AlertCenter.Root>
|
|
565
|
-
* ```
|
|
566
|
-
*/
|
|
567
|
-
readonly Bar: typeof Bar;
|
|
568
|
-
/**
|
|
569
|
-
* The inline expansion listing every alert hidden by the bar, ranked
|
|
570
|
-
* highest-severity-first as full-width banner rows of the items' authored
|
|
571
|
-
* children.
|
|
572
|
-
*
|
|
573
|
-
* **Data attributes:**
|
|
574
|
-
*
|
|
575
|
-
* | Data Attribute | Value | Description |
|
|
576
|
-
* | --- | --- | --- |
|
|
577
|
-
* | `data-slot` | `alert-center-content` | On the expansion wrapper that owns the collapse animation. |
|
|
578
|
-
* | `data-slot` | `alert-center-item alert` | On each row's banner chrome, joined ahead of `Alert.Root`'s own slot. |
|
|
579
|
-
* | `data-state` | `"open"` \| `"closed"` | On the wrapper; drives the collapse transition. |
|
|
580
|
-
* | `data-placement` | `"list"` | On each row's chrome: where that item's children are currently rendering. |
|
|
581
|
-
* | `data-alert-id` | the row item's `id` | On each row's chrome; per-alert styling and testing hook. |
|
|
582
|
-
* | `data-alert-mount` | the row item's `id` | On the row's layout-transparent mount point: the element that item's host is adopted into. |
|
|
583
|
-
*
|
|
584
|
-
* @see https://mantle.ngrok.com/components/feedback/alert-center#alertcentercontent
|
|
585
|
-
*
|
|
586
|
-
* @example
|
|
587
|
-
* ```tsx
|
|
588
|
-
* <AlertCenter.Root>
|
|
589
|
-
* <AlertCenter.Bar />
|
|
590
|
-
* <AlertCenter.Content />
|
|
591
|
-
* <AlertCenter.Item id="payment-failed" intent="danger">
|
|
592
|
-
* <Alert.Icon />
|
|
593
|
-
* <Alert.Content>
|
|
594
|
-
* <Alert.Title>
|
|
595
|
-
* Payment failed: <a href="/billing">update your card</a>
|
|
596
|
-
* </Alert.Title>
|
|
597
|
-
* </Alert.Content>
|
|
598
|
-
* </AlertCenter.Item>
|
|
599
|
-
* {!dismissed.has("transfer-limit") && (
|
|
600
|
-
* <AlertCenter.Item id="transfer-limit" intent="warning">
|
|
601
|
-
* <Alert.Icon />
|
|
602
|
-
* <Alert.Content>
|
|
603
|
-
* <Alert.Title>Approaching your data transfer limit</Alert.Title>
|
|
604
|
-
* <AlertCenter.DismissIconButton onClick={() => dismiss("transfer-limit")} />
|
|
605
|
-
* </Alert.Content>
|
|
606
|
-
* </AlertCenter.Item>
|
|
607
|
-
* )}
|
|
608
|
-
* </AlertCenter.Root>
|
|
609
|
-
* ```
|
|
610
|
-
*/
|
|
611
|
-
readonly Content: typeof Content;
|
|
612
|
-
/**
|
|
613
|
-
* One authored alert: registers its `{id, intent}` facts and renders its
|
|
614
|
-
* children through a portal into a stable per-id host that the bar or an
|
|
615
|
-
* expansion row adopts by rank. Children stay in the author's React tree
|
|
616
|
-
* and keep their state across re-ranks. Mount to show; unmount to dismiss.
|
|
617
|
-
*
|
|
618
|
-
* `children` render inside a `<div data-slot="alert-center-item-label">`, so
|
|
619
|
-
* the node React removes from the host is always an element.
|
|
620
|
-
*
|
|
621
|
-
* **Data attributes:**
|
|
622
|
-
*
|
|
623
|
-
* | Data Attribute | Value | Description |
|
|
624
|
-
* | --- | --- | --- |
|
|
625
|
-
* | `data-slot` | `alert-center-item-host` | On the stable per-id host element the item's children portal into. |
|
|
626
|
-
* | `data-slot` | `alert-center-item-label` | On the layout-transparent element inside the host that wraps the item's children. |
|
|
627
|
-
* | `data-alert-host` | the item's `id` | On that same host: which alert's projected children it holds. |
|
|
628
|
-
*
|
|
629
|
-
* @see https://mantle.ngrok.com/components/feedback/alert-center#alertcenteritem
|
|
630
|
-
*
|
|
631
|
-
* @example
|
|
632
|
-
* ```tsx
|
|
633
|
-
* <AlertCenter.Root>
|
|
634
|
-
* <AlertCenter.Bar />
|
|
635
|
-
* <AlertCenter.Content />
|
|
636
|
-
* <AlertCenter.Item id="payment-failed" intent="danger">
|
|
637
|
-
* <Alert.Icon />
|
|
638
|
-
* <Alert.Content>
|
|
639
|
-
* <Alert.Title>
|
|
640
|
-
* Payment failed: <a href="/billing">update your card</a>
|
|
641
|
-
* </Alert.Title>
|
|
642
|
-
* </Alert.Content>
|
|
643
|
-
* </AlertCenter.Item>
|
|
644
|
-
* </AlertCenter.Root>
|
|
645
|
-
* ```
|
|
646
|
-
*/
|
|
647
|
-
readonly Item: typeof Item;
|
|
648
|
-
/**
|
|
649
|
-
* The per-item dismiss affordance: `Alert.DismissIconButton` wired to the
|
|
650
|
-
* enclosing banner's rendered title and the bar's control centering. Its
|
|
651
|
-
* presence in an item's children is what makes that alert dismissable.
|
|
652
|
-
*
|
|
653
|
-
* **Data attributes:**
|
|
654
|
-
*
|
|
655
|
-
* | Data Attribute | Value | Description |
|
|
656
|
-
* | --- | --- | --- |
|
|
657
|
-
* | `data-slot` | `alert-center-dismiss-icon-button alert-dismiss-icon-button icon-button` | On the rendered button, joined ahead of `Alert.DismissIconButton`'s own slot and `IconButton`'s. |
|
|
658
|
-
* | `data-alert-dismiss` | present | Read, not stamped. `Alert` emits it, and `AlertCenter`'s bar CSS positions the control with it. |
|
|
659
|
-
*
|
|
660
|
-
* @see https://mantle.ngrok.com/components/feedback/alert-center#alertcenterdismissiconbutton
|
|
661
|
-
*
|
|
662
|
-
* @example
|
|
663
|
-
* ```tsx
|
|
664
|
-
* <AlertCenter.Root>
|
|
665
|
-
* <AlertCenter.Bar />
|
|
666
|
-
* <AlertCenter.Content />
|
|
667
|
-
* <AlertCenter.Item id="transfer-limit" intent="warning">
|
|
668
|
-
* <Alert.Icon />
|
|
669
|
-
* <Alert.Content>
|
|
670
|
-
* <Alert.Title>Approaching your data transfer limit</Alert.Title>
|
|
671
|
-
* <AlertCenter.DismissIconButton onClick={() => dismiss("transfer-limit")} />
|
|
672
|
-
* </Alert.Content>
|
|
673
|
-
* </AlertCenter.Item>
|
|
674
|
-
* </AlertCenter.Root>
|
|
675
|
-
* ```
|
|
676
|
-
*/
|
|
677
|
-
readonly DismissIconButton: typeof DismissIconButton;
|
|
678
|
-
};
|
|
97
|
+
declare const AlertCenter: typeof AlertCenterParts;
|
|
679
98
|
export { AlertCenter, type AlertCenterIntent, type AlertCenterItemProps, type AlertCenterRootProps };
|
package/dist/alert-center.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{t as e}from"./use-isomorphic-layout-effect-CL6iq0Bj.js";import{t}from"./use-composed-refs-DPYmLDSe.js";import{t as n}from"./cx-CK7o_rVv.js";import{t as r}from"./data-slot-EM6s2WEU.js";import{n as i,t as a}from"./alert-BkJHDx9X.js";import{c as o}from"react/compiler-runtime";import{createContext as s,useContext as c,useEffect as l,useId as u,useReducer as d,useRef as f,useState as p,useSyncExternalStore as m}from"react";import h from"tiny-invariant";import{jsx as g,jsxs as _}from"react/jsx-runtime";import{createPortal as v}from"react-dom";const y={danger:5,warning:4,important:3,info:2,success:1};function b(e,t){if(t.parentElement===e)return!1;if(typeof e.moveBefore==`function`&&t.isConnected&&e.isConnected)try{return e.moveBefore(t,null),!0}catch{}return e.appendChild(t),!0}function x(e){return e.replace(/\s+/g,` `).trim()}function S(e){let t=e.querySelector(`[data-slot~="alert-title"]`);if(t==null)return``;let n=t.cloneNode(!0);if(!(n instanceof Element))return x(t.textContent??``);for(let e of n.querySelectorAll(`button`))e.remove();let r=x(n.textContent??``);for(let e of n.querySelectorAll(`a`))e.remove();let i=x(n.textContent??``);return i===``?r:i}function C(e){return e.toSorted((e,t)=>y[t.intent]-y[e.intent]||w(e.order,t.order)||e.sequence-t.sequence)}function w(e,t){return e===t?0:e==null?1:t==null||e<t?-1:1}function T(e,t){if(t===0)return``;if(e===``)return`${t} alert${t===1?``:`s`}`;let n=t-1;return n===0?e:`${e}, and ${n} more alert${n===1?``:`s`}`}const E=[];var D=class{#e=/* @__PURE__ */ new Set;#t=/* @__PURE__ */ new Map;#n=/* @__PURE__ */ new Map;#r=/* @__PURE__ */ new Map;#i=0;#a=E;#o=``;#s=!1;getHost(e){let t=this.#r.get(e);if(t!=null)return t;let n=document.createElement(`div`);return n.style.display=`contents`,n.setAttribute(`data-slot`,`alert-center-item-host`),n.setAttribute(`data-alert-host`,e),this.#r.set(e,n),n}#c=null;captureHostSnapshot(e){if(e!==this.#a[0]?.id)return;let t=this.#r.get(e);t!=null&&t.firstElementChild?.hasChildNodes()===!0&&(this.#c={id:e,content:t.cloneNode(!0)})}getHostSnapshot=e=>this.#c?.id===e?this.#c.content:null;subscribe=e=>(this.#e.add(e),()=>{this.#e.delete(e)});getSnapshot=()=>this.#a;hasAlert=e=>this.#t.has(e);getTopLabel=()=>this.#o;setTopLabel(e){this.#o!==e&&(this.#o=e,this.#p())}#l=null;requestFocusRestore(e){this.#l=e}flushFocusRestore(){let e=this.#l;e!=null&&e.isConnected&&(this.#l=null,document.activeElement!==e&&e.focus({preventScroll:!0}))}#u=null;#d=0;getPlacementVersion=()=>this.#d;notifyPlacementChange(){this.#d++,this.#p()}setBarElement(e){this.#u=e}getBarElement=()=>this.#u;getContentMounted=()=>this.#s;setContentMounted(e){this.#s!==e&&(this.#s=e,this.#p())}register(e){h(!this.#t.has(e.id),`AlertCenter.Item id "${e.id}" is already registered by another mounted item. Ids must be unique under one <AlertCenter.Root>. Render one item per id, or give each alert its own id.`);let t=this.#n.get(e.id)??this.#i++;this.#n.set(e.id,t);let n={...e,sequence:t};return this.#t.set(e.id,n),this.#f(),()=>{this.#t.get(e.id)===n&&(this.#t.delete(e.id),this.#f())}}#f(){this.#a=C([...this.#t.values()]),this.#p()}#p(){for(let e of this.#e)e()}};const O=s(null),k=s(null);function A(e){let t=c(O);return h(t,`${e} must be rendered inside <AlertCenter.Root>.`),t}function ee(e){let t=c(k);return h(t,`${e} must be rendered inside <AlertCenter.Root>.`),t}const te=e=>m(e.subscribe,e.getSnapshot,e.getSnapshot),j=s(!1);function M(e){let t=o(5),{store:n}=e,r=te(n),i=m(n.subscribe,n.getTopLabel,n.getTopLabel),a;t[0]!==r.length||t[1]!==i?(a=T(i,r.length),t[0]=r.length,t[1]=i,t[2]=a):a=t[2];let s;return t[3]===a?s=t[4]:(s=/* @__PURE__ */ g(`div`,{"data-slot":`alert-center-announcer`,className:`sr-only`,role:`status`,"aria-live":`polite`,children:a}),t[3]=a,t[4]=s),s}const N=e=>{let t=o(18),{children:n,defaultOpen:r,onOpenChange:i,open:a}=e,[s]=p(U),c=u(),[l,d]=p(r??!1),f=a??l,m;t[0]!==i||t[1]!==a?(m=e=>{a??d(e),i?.(e)},t[0]=i,t[1]=a,t[2]=m):m=t[2];let h=m,v;t[3]!==c||t[4]!==s?(v={store:s,contentId:c},t[3]=c,t[4]=s,t[5]=v):v=t[5];let y=v,b;t[6]!==f||t[7]!==h?(b={isExpanded:f,setExpanded:h},t[6]=f,t[7]=h,t[8]=b):b=t[8];let x=b,S;t[9]!==n||t[10]!==x?(S=/* @__PURE__ */ g(k.Provider,{value:x,children:n}),t[9]=n,t[10]=x,t[11]=S):S=t[11];let C;t[12]===s?C=t[13]:(C=/* @__PURE__ */ g(M,{store:s}),t[12]=s,t[13]=C);let w;return t[14]!==y||t[15]!==S||t[16]!==C?(w=/* @__PURE__ */ _(O.Provider,{value:y,children:[S,C]}),t[14]=y,t[15]=S,t[16]=C,t[17]=w):w=t[17],w},P=t=>{let n=o(22),{children:r,className:a,id:s,intent:l,order:u}=t,{store:d}=A(`AlertCenter.Item`),f=c(j);h(!f,`AlertCenter.Item cannot be rendered inside another item's children.`);let[m,_]=p(null),y,b;n[0]!==s||n[1]!==d?(y=()=>{_(d.getHost(s))},b=[d,s],n[0]=s,n[1]=d,n[2]=y,n[3]=b):(y=n[2],b=n[3]),e(y,b);let x,S;n[4]!==a||n[5]!==s||n[6]!==l||n[7]!==u||n[8]!==d?(x=()=>d.register({id:s,intent:l,className:a,order:u}),S=[d,s,l,a,u],n[4]=a,n[5]=s,n[6]=l,n[7]=u,n[8]=d,n[9]=x,n[10]=S):(x=n[9],S=n[10]),e(x,S);let C;if(n[11]!==s||n[12]!==d?(C=()=>{d.captureHostSnapshot(s)},n[11]=s,n[12]=d,n[13]=C):C=n[13],e(C),m==null)return null;let w;n[14]===r?w=n[15]:(w=/* @__PURE__ */ g(j.Provider,{value:!0,children:/* @__PURE__ */ g(`div`,{className:`contents`,"data-slot":`alert-center-item-label`,children:r})}),n[14]=r,n[15]=w);let T;n[16]!==l||n[17]!==w?(T=/* @__PURE__ */ g(i,{intent:l,redirectDismissFocus:!1,children:w}),n[16]=l,n[17]=w,n[18]=T):T=n[18];let E;return n[19]!==m||n[20]!==T?(E=v(T,m),n[19]=m,n[20]=T,n[21]=E):E=n[21],E},F=n=>{let i=o(14),s,l,u,d;i[0]===n?(s=i[1],l=i[2],u=i[3],d=i[4]):({"data-slot":s,label:l,ref:d,...u}=n,i[0]=n,i[1]=s,i[2]=l,i[3]=u,i[4]=d);let _=c(j);h(_,`AlertCenter.DismissIconButton must be composed inside an <AlertCenter.Item>'s children.`);let{store:v}=A(`AlertCenter.DismissIconButton`);m(v.subscribe,v.getPlacementVersion,v.getPlacementVersion);let y=f(null),b=t(y,d),[x,C]=p(null),w;i[5]===l?w=i[6]:(w=()=>{if(l!=null)return;let e=y.current?.closest(`[data-alert-id]`),t=e==null?``:S(e);C(t===``?null:`Dismiss ${t}`)},i[5]=l,i[6]=w),e(w);let T=l??x??void 0,E;i[7]===s?E=i[8]:(E=r(s,`alert-center-dismiss-icon-button`),i[7]=s,i[8]=E);let D;return i[9]!==b||i[10]!==u||i[11]!==T||i[12]!==E?(D=/* @__PURE__ */ g(a.DismissIconButton,{ref:b,label:T,...u,"data-slot":E}),i[9]=b,i[10]=u,i[11]=T,i[12]=E,i[13]=D):D=i[13],D};function I(e,t){switch(t){case`show`:return`open`;case`hide`:return e===`closed`?`closed`:`closing`;case`exited`:return e===`closing`?`closed`:e}}function L(t){let n=o(10),{present:r}=t,[i,a]=d(I,r?`open`:`closed`),s,c;n[0]===r?(s=n[1],c=n[2]):(s=()=>{a(r?`show`:`hide`)},c=[r],n[0]=r,n[1]=s,n[2]=c),e(s,c);let u,f;n[3]===i?(u=n[4],f=n[5]):(u=()=>{if(i!==`closing`)return;let e=window.setTimeout(()=>a(`exited`),200);return()=>window.clearTimeout(e)},f=[i],n[3]=i,n[4]=u,n[5]=f),l(u,f);let p;n[6]===Symbol.for(`react.memo_cache_sentinel`)?(p=e=>{e.target===e.currentTarget&&e.propertyName===`height`&&a(`exited`)},n[6]=p):p=n[6];let m=p,h=i!==`closed`,g=i===`open`?`open`:`closed`,_;return n[7]!==h||n[8]!==g?(_={isMounted:h,dataState:g,onExitTransitionEnd:m},n[7]=h,n[8]=g,n[9]=_):_=n[9],_}function R(t){let n=o(5),{containerRef:r,isAttached:i}=t,a=f(null),s,c;n[0]!==r||n[1]!==i?(s=()=>{let e=r.current;if(!i||e==null)return;let t=e=>{e.target instanceof Element&&(a.current=e.target)},n=t=>{t.relatedTarget instanceof Node&&!e.contains(t.relatedTarget)&&(a.current=null)};return e.addEventListener(`focusin`,t),e.addEventListener(`focusout`,n),()=>{e.removeEventListener(`focusin`,t),e.removeEventListener(`focusout`,n)}},c=[r,i],n[0]=r,n[1]=i,n[2]=s,n[3]=c):(s=n[2],c=n[3]),e(s,c);let l;return n[4]===Symbol.for(`react.memo_cache_sentinel`)?(l={lastFocusedWithinRef:a},n[4]=l):l=n[4],l}function z(){let e=document.querySelector(`main, [role="main"]`);e!=null&&(e.hasAttribute(`tabindex`)||(e.tabIndex=-1),e.focus({preventScroll:!0}))}function B(t){let n=o(10),{isMounted:r,store:i,topId:a}=t,s=f(null),c;n[0]===r?c=n[1]:(c={containerRef:s,isAttached:r},n[0]=r,n[1]=c);let{lastFocusedWithinRef:l}=R(c),u=f(a),d;n[2]!==l||n[3]!==i||n[4]!==a?(d=()=>{let e=u.current;if(u.current=a,e==null||a===e)return;let t=l.current;if(i.hasAlert(e)){t instanceof HTMLElement&&document.activeElement!==t&&i.requestFocusRestore(t);return}if(t==null||t.isConnected)return;l.current=null;let n=s.current;a==null?z():n!=null&&(n.querySelector(`[data-alert-dismiss], [data-alert-expand]`)??n).focus()},n[2]=l,n[3]=i,n[4]=a,n[5]=d):d=n[5];let p;n[6]!==i||n[7]!==a?(p=[i,a],n[6]=i,n[7]=a,n[8]=p):p=n[8],e(d,p);let m;return n[9]===Symbol.for(`react.memo_cache_sentinel`)?(m={wrapperRef:s},n[9]=m):m=n[9],m}const V=`gap-2 py-2 pr-2 **:data-[slot~=alert-icon]:shrink-0`,H={Root:N,Bar:t=>{let i=o(62),s,c,l,u;i[0]===t?(s=i[1],c=i[2],l=i[3],u=i[4]):({className:s,"data-slot":c,ref:u,...l}=t,i[0]=t,i[1]=s,i[2]=c,i[3]=l,i[4]=u);let{store:d,contentId:h}=A(`AlertCenter.Bar`),{isExpanded:v,setExpanded:y}=ee(`AlertCenter.Bar`),x=te(d),C=m(d.subscribe,d.getContentMounted,d.getContentMounted),w=x[0]??null,T=w!=null,E;i[5]===T?E=i[6]:(E={present:T},i[5]=T,i[6]=E);let{isMounted:D,dataState:O,onExitTransitionEnd:k}=L(E),[j,M]=p(w);w!=null&&w!==j&&M(w);let N=w??j,P=f(null),F;i[7]!==N||i[8]!==d||i[9]!==w?(F=()=>{let e=P.current;if(e==null)return;if(w!=null){let t=d.getHost(w.id);t.parentElement!==e&&e.childNodes.length>0&&e.replaceChildren(),b(e,t)&&d.notifyPlacementChange(),d.flushFocusRestore();return}let t=N==null?null:d.getHostSnapshot(N.id);t!=null&&t.parentNode!==e&&e.replaceChildren(t)},i[7]=N,i[8]=d,i[9]=w,i[10]=F):F=i[10],e(F);let I=w?.id,R;i[11]!==D||i[12]!==d||i[13]!==I?(R={isMounted:D,store:d,topId:I},i[11]=D,i[12]=d,i[13]=I,i[14]=R):R=i[14];let{wrapperRef:z}=B(R),H;i[15]!==T||i[16]!==d||i[17]!==z?(H=()=>{let e=z.current;d.setTopLabel(T&&e!=null?S(e):``)},i[15]=T,i[16]=d,i[17]=z,i[18]=H):H=i[18],e(H);let U;i[19]!==T||i[20]!==d||i[21]!==z?(U=()=>{let e=z.current;if(e==null)return;let t=new MutationObserver(()=>{d.setTopLabel(T?S(e):``)});return t.observe(e,{subtree:!0,childList:!0,characterData:!0}),()=>{t.disconnect()}},i[19]=T,i[20]=d,i[21]=z,i[22]=U):U=i[22];let W;i[23]!==D||i[24]!==T||i[25]!==d?(W=[d,T,D],i[23]=D,i[24]=T,i[25]=d,i[26]=W):W=i[26],e(U,W);let G,K;i[27]===d?(G=i[28],K=i[29]):(G=()=>()=>{d.setTopLabel(``)},K=[d],i[27]=d,i[28]=G,i[29]=K),e(G,K);let q;i[30]!==d||i[31]!==z?(q=()=>{d.setBarElement(z.current)},i[30]=d,i[31]=z,i[32]=q):q=i[32],e(q);let J,Y;if(i[33]===d?(J=i[34],Y=i[35]):(J=()=>()=>{d.setBarElement(null)},Y=[d],i[33]=d,i[34]=J,i[35]=Y),e(J,Y),!D||N==null)return null;let ne=T?x.length-1:0,re=!T,ie=N.intent,X;i[36]!==N.className||i[37]!==s?(X=n(V,`not-has-data-[slot=alert-description]:[&_[data-alert-dismiss],&_[data-alert-expand]]:top-1/2 not-has-data-[slot=alert-description]:[&_[data-alert-dismiss],&_[data-alert-expand]]:-translate-y-1/2`,s,N.className),i[36]=N.className,i[37]=s,i[38]=X):X=i[38];let Z;i[39]===c?Z=i[40]:(Z=r(c,`alert-center-bar`),i[39]=c,i[40]=Z);let ae;i[41]===Symbol.for(`react.memo_cache_sentinel`)?(ae=/* @__PURE__ */ g(`div`,{ref:P,className:`contents`,"data-slot":`alert-center-bar-mount`}),i[41]=ae):ae=i[41];let Q;i[42]!==h||i[43]!==C||i[44]!==v||i[45]!==ne||i[46]!==y?(Q=ne>0&&C&&/* @__PURE__ */ g(a.ExpandButton,{count:ne,expanded:v,"aria-controls":h,onClick:()=>y(!v)}),i[42]=h,i[43]=C,i[44]=v,i[45]=ne,i[46]=y,i[47]=Q):Q=i[47];let $;i[48]!==N.id||i[49]!==N.intent||i[50]!==l||i[51]!==u||i[52]!==X||i[53]!==Z||i[54]!==Q?($=/* @__PURE__ */ _(a.Root,{ref:u,appearance:`banner`,intent:ie,className:X,...l,"data-slot":Z,"data-placement":`bar`,"data-alert-id":N.id,children:[ae,Q]}),i[48]=N.id,i[49]=N.intent,i[50]=l,i[51]=u,i[52]=X,i[53]=Z,i[54]=Q,i[55]=$):$=i[55];let oe;return i[56]!==O||i[57]!==k||i[58]!==re||i[59]!==$||i[60]!==z?(oe=/* @__PURE__ */ g(`div`,{ref:z,"data-slot":`alert-center-bar-wrapper`,tabIndex:-1,inert:re,className:`shrink-0 overflow-hidden transition-[height,opacity] duration-200 ease-out [interpolate-size:allow-keywords] starting:h-0 starting:opacity-0 data-state-closed:h-0 data-state-closed:opacity-0 data-state-closed:duration-150 motion-reduce:transition-none`,"data-state":O,onTransitionEnd:k,children:$}),i[56]=O,i[57]=k,i[58]=re,i[59]=$,i[60]=z,i[61]=oe):oe=i[61],oe},Content:i=>{let a=o(38),s,c,l,u,d,p;a[0]===i?(s=a[1],c=a[2],l=a[3],u=a[4],d=a[5],p=a[6]):({"aria-label":p,"aria-labelledby":s,className:c,"data-slot":l,ref:d,...u}=i,a[0]=i,a[1]=s,a[2]=c,a[3]=l,a[4]=u,a[5]=d,a[6]=p);let m=p===void 0?`More alerts`:p,{store:h,contentId:_}=A(`AlertCenter.Content`),{isExpanded:v,setExpanded:y}=ee(`AlertCenter.Content`),x=te(h).slice(1),S=x.length>0,C,w;a[7]===h?(C=a[8],w=a[9]):(C=()=>(h.setContentMounted(!0),()=>{h.setContentMounted(!1)}),w=[h],a[7]=h,a[8]=C,a[9]=w),e(C,w);let T=f(S),E,D;a[10]!==S||a[11]!==v||a[12]!==y?(E=()=>{let e=T.current&&!S;T.current=S,e&&v&&y(!1)},D=[S,v,y],a[10]=S,a[11]=v,a[12]=y,a[13]=E,a[14]=D):(E=a[13],D=a[14]),e(E,D);let O=f(null),k=t(O,d),j;a[15]===S?j=a[16]:(j={containerRef:O,isAttached:S},a[15]=S,a[16]=j);let{lastFocusedWithinRef:M}=R(j),N=x.map(W).join(` `),P;a[17]===h?P=a[18]:(P=()=>{let e=O.current;if(e==null)return;let t=!1;for(let n of e.querySelectorAll(`[data-alert-mount]`)){let e=n.getAttribute(`data-alert-mount`);e!=null&&b(n,h.getHost(e))&&(t=!0)}t&&h.notifyPlacementChange(),h.flushFocusRestore()},a[17]=h,a[18]=P),e(P,[h,N]);let F;if(a[19]!==M||a[20]!==h?(F=()=>{let e=M.current;if(e==null)return;if(e.isConnected){let t=O.current;e instanceof HTMLElement&&document.activeElement!==e&&(t==null||!t.contains(e))&&(M.current=null,e.focus({preventScroll:!0}));return}M.current=null;let t=O.current?.querySelector(`[data-alert-dismiss]`);if(t!=null){t.focus();return}let n=h.getBarElement()?.querySelector(`[data-alert-dismiss], [data-alert-expand]`);n==null?z():n.focus()},a[19]=M,a[20]=h,a[21]=F):F=a[21],e(F,[h,N]),x.length===0)return null;let I;a[22]===l?I=a[23]:(I=r(l,`alert-center-content`),a[22]=l,a[23]=I);let L=v?`open`:`closed`,B;a[24]===c?B=a[25]:(B=n(`h-0 overflow-hidden invisible [content-visibility:hidden] transition-[height,visibility,content-visibility] transition-discrete duration-200 ease-out [interpolate-size:allow-keywords] data-state-open:h-auto data-state-open:visible data-state-open:[content-visibility:visible] motion-reduce:transition-none`,c),a[24]=c,a[25]=B);let V=s==null?m:void 0,H=x.map(G),U;a[26]!==s||a[27]!==V||a[28]!==H?(U=/* @__PURE__ */ g(`ul`,{"aria-label":V,"aria-labelledby":s,className:`flex w-full flex-col`,children:H}),a[26]=s,a[27]=V,a[28]=H,a[29]=U):U=a[29];let K;return a[30]!==k||a[31]!==_||a[32]!==u||a[33]!==L||a[34]!==B||a[35]!==U||a[36]!==I?(K=/* @__PURE__ */ g(`div`,{...u,ref:k,"data-slot":I,id:_,"data-state":L,className:B,children:U}),a[30]=k,a[31]=_,a[32]=u,a[33]=L,a[34]=B,a[35]=U,a[36]=I,a[37]=K):K=a[37],K},Item:P,DismissIconButton:F};function U(){return new D}function W(e){return e.id}function G(e){return/* @__PURE__ */ g(`li`,{children:/* @__PURE__ */ g(a.Root,{appearance:`banner`,intent:e.intent,className:n(V,e.className),"data-slot":`alert-center-item`,"data-placement":`list`,"data-alert-id":e.id,children:/* @__PURE__ */ g(`div`,{className:`contents`,"data-alert-mount":e.id})})},e.id)}export{H as AlertCenter};
|
|
1
|
+
export*as AlertCenter from"./alert-center-parts.js";
|