@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
|
@@ -1,405 +0,0 @@
|
|
|
1
|
-
import { n as WithAsChild } from "./as-child-DFxX3U2i.js";
|
|
2
|
-
import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
|
|
3
|
-
import { t as Label } from "./label-r2sJcSQ4.js";
|
|
4
|
-
import { ComponentProps, ReactNode } from "react";
|
|
5
|
-
/**
|
|
6
|
-
* Props for `Choice.Root`. Extends `<div>` props (minus `id`, narrowed below)
|
|
7
|
-
* with the disabled / id / name controls. Inside a `Field.Control`, the field's
|
|
8
|
-
* `id` / `name` / `aria-*` take precedence over these.
|
|
9
|
-
*
|
|
10
|
-
* @see https://mantle.ngrok.com/components/forms/choice
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```tsx
|
|
14
|
-
* <Choice.Root name="notify">
|
|
15
|
-
* <Choice.Indicator>
|
|
16
|
-
* <Checkbox />
|
|
17
|
-
* </Choice.Indicator>
|
|
18
|
-
* <Choice.Content>
|
|
19
|
-
* <Choice.Label>Email</Choice.Label>
|
|
20
|
-
* <Choice.Description>Get notified by email.</Choice.Description>
|
|
21
|
-
* </Choice.Content>
|
|
22
|
-
* </Choice.Root>
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
type ChoiceRootProps = Omit<ComponentProps<"div">, "id"> & {
|
|
26
|
-
/** Marks the choice disabled — dims the text and is injected onto the control. */
|
|
27
|
-
disabled?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Explicit control id. Defaults to a generated id, or — when composed inside a
|
|
30
|
-
* `Field.Control` — the field's id, so `Field.Label` and `Choice.Label` resolve
|
|
31
|
-
* to the same control.
|
|
32
|
-
*/
|
|
33
|
-
id?: string;
|
|
34
|
-
/** Form value name for the control. Inherited from `Field` when composed within one. */
|
|
35
|
-
name?: string;
|
|
36
|
-
/** `Choice.Indicator`, a `Choice.Content` (with `Label` / `Title` + `Description`). */
|
|
37
|
-
children: ReactNode;
|
|
38
|
-
} & WithDataSlot;
|
|
39
|
-
/**
|
|
40
|
-
* Root of a `Choice`: the indicator-left / content-right layout for pairing a
|
|
41
|
-
* checkbox or radio with a titled, multi-line label. Owns the control's `id` and the
|
|
42
|
-
* description's `id`. When rendered inside a `Field.Control`, it reads the
|
|
43
|
-
* field's `id` / `name` / `aria-*` from `FieldControlContext` and merges them
|
|
44
|
-
* into the props `Indicator` injects onto the control (the field's
|
|
45
|
-
* `aria-describedby` is concatenated with this `Choice`'s own description id).
|
|
46
|
-
* Outside a `Field` it falls back to its own generated ids, so the two compose
|
|
47
|
-
* but neither requires the other.
|
|
48
|
-
*
|
|
49
|
-
* @see https://mantle.ngrok.com/components/forms/choice
|
|
50
|
-
*
|
|
51
|
-
* @example
|
|
52
|
-
* ```tsx
|
|
53
|
-
* <Choice.Root name="notify">
|
|
54
|
-
* <Choice.Indicator>
|
|
55
|
-
* <Checkbox />
|
|
56
|
-
* </Choice.Indicator>
|
|
57
|
-
* <Choice.Content>
|
|
58
|
-
* <Choice.Label>Email</Choice.Label>
|
|
59
|
-
* <Choice.Description>Get notified by email.</Choice.Description>
|
|
60
|
-
* </Choice.Content>
|
|
61
|
-
* </Choice.Root>
|
|
62
|
-
* ```
|
|
63
|
-
*/
|
|
64
|
-
declare const Root: ({ "data-slot": dataSlot, "aria-describedby": ariaDescribedBy, "aria-errormessage": ariaErrorMessage, "aria-invalid": ariaInvalid, children, className, disabled, id, name, ref, ...props }: ChoiceRootProps) => import("react").JSX.Element;
|
|
65
|
-
type ChoiceIndicatorProps = ComponentProps<"span"> & WithDataSlot;
|
|
66
|
-
/**
|
|
67
|
-
* The left control slot of a `Choice`: drop the control here (a `Checkbox`, a
|
|
68
|
-
* radio indicator, a `Switch`, …). Its single element child is cloned with the
|
|
69
|
-
* shared `id` / `name` / `aria-*` / `disabled` from `Root`, so a control placed
|
|
70
|
-
* here is wired to `Choice.Label` and the description without the caller
|
|
71
|
-
* threading ids. A non-element child (or none) is rendered untouched.
|
|
72
|
-
*
|
|
73
|
-
* The slot is one line tall (`h-lh`) using the same `text-sm` line box as the
|
|
74
|
-
* title, and centers its child — so the control sits centered on the title's
|
|
75
|
-
* first line and stays put when the title wraps.
|
|
76
|
-
*
|
|
77
|
-
* @see https://mantle.ngrok.com/components/forms/choice
|
|
78
|
-
*
|
|
79
|
-
* @example
|
|
80
|
-
* ```tsx
|
|
81
|
-
* <Choice.Root name="notify">
|
|
82
|
-
* <Choice.Indicator>
|
|
83
|
-
* <Checkbox />
|
|
84
|
-
* </Choice.Indicator>
|
|
85
|
-
* <Choice.Content>
|
|
86
|
-
* <Choice.Label>Email</Choice.Label>
|
|
87
|
-
* <Choice.Description>Get notified by email.</Choice.Description>
|
|
88
|
-
* </Choice.Content>
|
|
89
|
-
* </Choice.Root>
|
|
90
|
-
* ```
|
|
91
|
-
*/
|
|
92
|
-
declare const Indicator: ({ "data-slot": dataSlot, children, className, ref, ...props }: ChoiceIndicatorProps) => import("react").JSX.Element;
|
|
93
|
-
type ChoiceContentProps = ComponentProps<"div"> & WithAsChild & WithDataSlot;
|
|
94
|
-
/**
|
|
95
|
-
* The right column of a `Choice` — stacks a `Choice.Label` / `Choice.Title` over
|
|
96
|
-
* an optional `Choice.Description`. `min-w-0` so long titles truncate instead of
|
|
97
|
-
* pushing the row wide.
|
|
98
|
-
*
|
|
99
|
-
* @see https://mantle.ngrok.com/components/forms/choice
|
|
100
|
-
*
|
|
101
|
-
* @example
|
|
102
|
-
* ```tsx
|
|
103
|
-
* <Choice.Root name="notify">
|
|
104
|
-
* <Choice.Indicator>
|
|
105
|
-
* <Checkbox />
|
|
106
|
-
* </Choice.Indicator>
|
|
107
|
-
* <Choice.Content>
|
|
108
|
-
* <Choice.Label>Email</Choice.Label>
|
|
109
|
-
* <Choice.Description>Get notified by email.</Choice.Description>
|
|
110
|
-
* </Choice.Content>
|
|
111
|
-
* </Choice.Root>
|
|
112
|
-
* ```
|
|
113
|
-
*/
|
|
114
|
-
declare const Content: ({ "data-slot": dataSlot, asChild, className, ref, ...props }: ChoiceContentProps) => import("react").JSX.Element;
|
|
115
|
-
/**
|
|
116
|
-
* Props for `Choice.Label`. The mantle `Label` props, minus `htmlFor` and
|
|
117
|
-
* `disabled` — those are owned by `Choice.Root` (the control id and the choice's
|
|
118
|
-
* disabled state) and are not part of the public surface, so consumer props can
|
|
119
|
-
* never override the label-to-control wiring.
|
|
120
|
-
*/
|
|
121
|
-
type ChoiceLabelProps = Omit<ComponentProps<typeof Label>, "htmlFor" | "disabled"> & WithDataSlot;
|
|
122
|
-
/**
|
|
123
|
-
* The emphasized title of a `Choice`, rendered as a real `<label>` wired to the
|
|
124
|
-
* control by `htmlFor`, so clicking it toggles the control and it supplies the
|
|
125
|
-
* control's accessible name. Use this when the `Choice` owns the labeling (a
|
|
126
|
-
* standalone checkbox, a raw `<form>`, React-state-only).
|
|
127
|
-
*
|
|
128
|
-
* It is the mantle {@link Label} (not a re-implementation), so it keeps every
|
|
129
|
-
* base-label behavior — cursor, the double-click text-selection guard, and the
|
|
130
|
-
* auto `font-medium` — and mirrors how `Field.Label` reuses `Label`. When an
|
|
131
|
-
* ancestor already owns the labeling and click target (a fully-clickable list
|
|
132
|
-
* row or a Headless radio item), use `Choice.Title` instead — a label-less `<p>`
|
|
133
|
-
* (it accepts `asChild`) — so labels never nest or compete.
|
|
134
|
-
*
|
|
135
|
-
* @see https://mantle.ngrok.com/components/forms/choice
|
|
136
|
-
*
|
|
137
|
-
* @example
|
|
138
|
-
* ```tsx
|
|
139
|
-
* <Choice.Root name="notify">
|
|
140
|
-
* <Choice.Indicator>
|
|
141
|
-
* <Checkbox />
|
|
142
|
-
* </Choice.Indicator>
|
|
143
|
-
* <Choice.Content>
|
|
144
|
-
* <Choice.Label>Email</Choice.Label>
|
|
145
|
-
* <Choice.Description>Get notified by email.</Choice.Description>
|
|
146
|
-
* </Choice.Content>
|
|
147
|
-
* </Choice.Root>
|
|
148
|
-
* ```
|
|
149
|
-
*/
|
|
150
|
-
declare const ChoiceLabel: ({ "data-slot": dataSlot, className, ref, ...props }: ChoiceLabelProps) => import("react").JSX.Element;
|
|
151
|
-
/**
|
|
152
|
-
* The emphasized title of a `Choice`, label-styled but **not** a `<label>` —
|
|
153
|
-
* renders a `<p>`. Mirrors `Field.LabelText`. Use this when something else owns
|
|
154
|
-
* the control's labeling and click target: a fully-clickable list row or a
|
|
155
|
-
* Headless radio item. It avoids nesting two `<label>`s or splitting
|
|
156
|
-
* the click target. Pass `asChild` to supply your own element. For a standalone
|
|
157
|
-
* control — or inside a `Field` — where the title can be the label, use
|
|
158
|
-
* `Choice.Label`.
|
|
159
|
-
*
|
|
160
|
-
* Inside a `RadioGroup` item, the title registers its id with the radio, so the
|
|
161
|
-
* option's `aria-labelledby` names it by the title alone. The description stays
|
|
162
|
-
* out of the name. The `id` defaults to a generated one.
|
|
163
|
-
*
|
|
164
|
-
* @see https://mantle.ngrok.com/components/forms/choice
|
|
165
|
-
*
|
|
166
|
-
* @example
|
|
167
|
-
* ```tsx
|
|
168
|
-
* <Choice.Root id="onboarding-key">
|
|
169
|
-
* <Choice.Indicator>
|
|
170
|
-
* <Checkbox />
|
|
171
|
-
* </Choice.Indicator>
|
|
172
|
-
* <Choice.Content>
|
|
173
|
-
* <Choice.Title>Onboarding Key</Choice.Title>
|
|
174
|
-
* <Choice.Description>ng-3FaThZL***8xiA</Choice.Description>
|
|
175
|
-
* </Choice.Content>
|
|
176
|
-
* </Choice.Root>
|
|
177
|
-
* ```
|
|
178
|
-
*/
|
|
179
|
-
declare const Title: ({ "data-slot": dataSlot, asChild, className, id, ref, ...props }: ComponentProps<"p"> & WithAsChild & WithDataSlot) => import("react").JSX.Element;
|
|
180
|
-
/**
|
|
181
|
-
* The de-emphasized supplementary line of a `Choice`, in the muted body color
|
|
182
|
-
* and wired to the control via `aria-describedby` (never a second label).
|
|
183
|
-
* Renders a `<p>`; pass `asChild` to supply your own element. `Choice.Root`
|
|
184
|
-
* owns its `id`, so `id` is not a prop.
|
|
185
|
-
*
|
|
186
|
-
* A click on the description forwards to the sibling `Choice.Label`, so the
|
|
187
|
-
* whole content column toggles the control while the accessible name stays the
|
|
188
|
-
* label alone. The forward skips a click on a link or other interactive content
|
|
189
|
-
* inside the description. After it forwards, it marks the click handled with
|
|
190
|
-
* `preventDefault()`, so a click-to-activate ancestor (a `SelectableList` row)
|
|
191
|
-
* does not toggle the control a second time. When the choice uses
|
|
192
|
-
* `Choice.Title`, the description forwards nothing, because an ancestor owns
|
|
193
|
-
* that click.
|
|
194
|
-
*
|
|
195
|
-
* Inside a `RadioGroup` item, the description registers its id with the radio,
|
|
196
|
-
* so the option's `aria-describedby` points here.
|
|
197
|
-
*
|
|
198
|
-
* @see https://mantle.ngrok.com/components/forms/choice
|
|
199
|
-
*
|
|
200
|
-
* @example
|
|
201
|
-
* ```tsx
|
|
202
|
-
* <Choice.Root name="notify">
|
|
203
|
-
* <Choice.Indicator>
|
|
204
|
-
* <Checkbox />
|
|
205
|
-
* </Choice.Indicator>
|
|
206
|
-
* <Choice.Content>
|
|
207
|
-
* <Choice.Label>Email</Choice.Label>
|
|
208
|
-
* <Choice.Description>Get notified by email.</Choice.Description>
|
|
209
|
-
* </Choice.Content>
|
|
210
|
-
* </Choice.Root>
|
|
211
|
-
* ```
|
|
212
|
-
*/
|
|
213
|
-
declare const Description: ({ "data-slot": dataSlot, asChild, className, onClick, ref, ...props }: Omit<ComponentProps<"p">, "id"> & WithAsChild & WithDataSlot) => import("react").JSX.Element;
|
|
214
|
-
/**
|
|
215
|
-
* A reusable indicator-left / content-right layout for a single choice: a
|
|
216
|
-
* control (checkbox, radio, switch) beside an emphasized title and an optional
|
|
217
|
-
* de-emphasized description. Use it to pair a checkbox or radio with a rich,
|
|
218
|
-
* titled label, or reach for it directly to build your own choice-like rows.
|
|
219
|
-
*
|
|
220
|
-
* It is a pure layout + association primitive: it owns the control's `id` and
|
|
221
|
-
* the description's `id` and wires them together, but does **not** own the
|
|
222
|
-
* control's value — drop your own control into `Choice.Indicator`. Pick
|
|
223
|
-
* `Choice.Label` (a real `<label>`) when the `Choice` owns the labeling, or
|
|
224
|
-
* `Choice.Title` (label-less text) when an ancestor (a clickable row or a
|
|
225
|
-
* Headless radio item) already does.
|
|
226
|
-
*
|
|
227
|
-
* **Use it for choice-like layouts** — a checkbox or radio input that needs an
|
|
228
|
-
* associated label and an optional supplementary description. It is not a
|
|
229
|
-
* general-purpose layout primitive; for laying out non-control content, reach
|
|
230
|
-
* for a plain flex/grid or `MediaObject` instead.
|
|
231
|
-
*
|
|
232
|
-
* **Field interop.** Inside a `Field.Control`, `Choice.Root` reads the field's
|
|
233
|
-
* `id` / `name` / `aria-*` and merges its description into the control's
|
|
234
|
-
* `aria-describedby`. Outside a `Field` it uses its own generated ids — the two
|
|
235
|
-
* are aware of each other but neither is required.
|
|
236
|
-
*
|
|
237
|
-
* **Radio interop.** Inside a `RadioGroup` item, `Choice.Title` and
|
|
238
|
-
* `Choice.Description` register their ids with the radio, so the option's
|
|
239
|
-
* accessible name is the title alone and the description is its
|
|
240
|
-
* `aria-describedby`.
|
|
241
|
-
*
|
|
242
|
-
* @useWhen Put a checkbox, a radio, or a switch beside a title and an optional description.
|
|
243
|
-
*
|
|
244
|
-
* @siblings
|
|
245
|
-
* - `Label`: the control needs only a one-line caption.
|
|
246
|
-
* - `MediaObject`: the thing beside the text is an image or an icon, not a control.
|
|
247
|
-
*
|
|
248
|
-
* @see https://mantle.ngrok.com/components/forms/choice
|
|
249
|
-
*
|
|
250
|
-
* @example
|
|
251
|
-
* Composition:
|
|
252
|
-
* ```
|
|
253
|
-
* Choice.Root
|
|
254
|
-
* ├── Choice.Indicator
|
|
255
|
-
* └── Choice.Content
|
|
256
|
-
* ├── Choice.Label (or Choice.Title — pick one)
|
|
257
|
-
* └── Choice.Description
|
|
258
|
-
* ```
|
|
259
|
-
*
|
|
260
|
-
* @example
|
|
261
|
-
* ```tsx
|
|
262
|
-
* <Choice.Root name="notify">
|
|
263
|
-
* <Choice.Indicator>
|
|
264
|
-
* <Checkbox />
|
|
265
|
-
* </Choice.Indicator>
|
|
266
|
-
* <Choice.Content>
|
|
267
|
-
* <Choice.Label>Email</Choice.Label>
|
|
268
|
-
* <Choice.Description>Get notified by email.</Choice.Description>
|
|
269
|
-
* </Choice.Content>
|
|
270
|
-
* </Choice.Root>
|
|
271
|
-
* ```
|
|
272
|
-
*/
|
|
273
|
-
declare const Choice: {
|
|
274
|
-
/**
|
|
275
|
-
* Root of a `Choice`: the indicator-left / content-right layout for pairing a
|
|
276
|
-
* checkbox or radio with a titled, multi-line label. Owns the control's `id` and the
|
|
277
|
-
* description's `id`. When rendered inside a `Field.Control`, it reads the
|
|
278
|
-
* field's `id` / `name` / `aria-*` from `FieldControlContext` and merges them
|
|
279
|
-
* into the props `Indicator` injects onto the control (the field's
|
|
280
|
-
* `aria-describedby` is concatenated with this `Choice`'s own description id).
|
|
281
|
-
* Outside a `Field` it falls back to its own generated ids, so the two compose
|
|
282
|
-
* but neither requires the other.
|
|
283
|
-
*
|
|
284
|
-
* @see https://mantle.ngrok.com/components/forms/choice
|
|
285
|
-
*
|
|
286
|
-
* @example
|
|
287
|
-
* ```tsx
|
|
288
|
-
* <Choice.Root name="notify">
|
|
289
|
-
* <Choice.Indicator>
|
|
290
|
-
* <Checkbox />
|
|
291
|
-
* </Choice.Indicator>
|
|
292
|
-
* <Choice.Content>
|
|
293
|
-
* <Choice.Label>Email</Choice.Label>
|
|
294
|
-
* <Choice.Description>Get notified by email.</Choice.Description>
|
|
295
|
-
* </Choice.Content>
|
|
296
|
-
* </Choice.Root>
|
|
297
|
-
* ```
|
|
298
|
-
*/
|
|
299
|
-
readonly Root: typeof Root;
|
|
300
|
-
/**
|
|
301
|
-
* The left control slot of a `Choice`: drop the control here (a `Checkbox`, a
|
|
302
|
-
* radio indicator, a `Switch`, …). Its single element child is cloned with the
|
|
303
|
-
* shared `id` / `name` / `aria-*` / `disabled` from `Root`, so a control placed
|
|
304
|
-
* here is wired to `Choice.Label` and the description without the caller
|
|
305
|
-
* threading ids. A non-element child (or none) is rendered untouched.
|
|
306
|
-
*
|
|
307
|
-
* @see https://mantle.ngrok.com/components/forms/choice
|
|
308
|
-
*
|
|
309
|
-
* @example
|
|
310
|
-
* ```tsx
|
|
311
|
-
* <Choice.Root name="notify">
|
|
312
|
-
* <Choice.Indicator>
|
|
313
|
-
* <Checkbox />
|
|
314
|
-
* </Choice.Indicator>
|
|
315
|
-
* <Choice.Content>
|
|
316
|
-
* <Choice.Label>Email</Choice.Label>
|
|
317
|
-
* <Choice.Description>Get notified by email.</Choice.Description>
|
|
318
|
-
* </Choice.Content>
|
|
319
|
-
* </Choice.Root>
|
|
320
|
-
* ```
|
|
321
|
-
*/
|
|
322
|
-
readonly Indicator: typeof Indicator;
|
|
323
|
-
/**
|
|
324
|
-
* Content: the right column that stacks the title over the description.
|
|
325
|
-
*
|
|
326
|
-
* @see https://mantle.ngrok.com/components/forms/choice
|
|
327
|
-
*
|
|
328
|
-
* @example
|
|
329
|
-
* ```tsx
|
|
330
|
-
* <Choice.Root name="notify">
|
|
331
|
-
* <Choice.Indicator>
|
|
332
|
-
* <Checkbox />
|
|
333
|
-
* </Choice.Indicator>
|
|
334
|
-
* <Choice.Content>
|
|
335
|
-
* <Choice.Label>Email</Choice.Label>
|
|
336
|
-
* <Choice.Description>Get notified by email.</Choice.Description>
|
|
337
|
-
* </Choice.Content>
|
|
338
|
-
* </Choice.Root>
|
|
339
|
-
* ```
|
|
340
|
-
*/
|
|
341
|
-
readonly Content: typeof Content;
|
|
342
|
-
/**
|
|
343
|
-
* Label: the title as a real `<label htmlFor>`. Use when the `Choice` owns
|
|
344
|
-
* labeling (standalone control); otherwise use `Choice.Title`.
|
|
345
|
-
*
|
|
346
|
-
* @see https://mantle.ngrok.com/components/forms/choice
|
|
347
|
-
*
|
|
348
|
-
* @example
|
|
349
|
-
* ```tsx
|
|
350
|
-
* <Choice.Root name="notify">
|
|
351
|
-
* <Choice.Indicator>
|
|
352
|
-
* <Checkbox />
|
|
353
|
-
* </Choice.Indicator>
|
|
354
|
-
* <Choice.Content>
|
|
355
|
-
* <Choice.Label>Email</Choice.Label>
|
|
356
|
-
* <Choice.Description>Get notified by email.</Choice.Description>
|
|
357
|
-
* </Choice.Content>
|
|
358
|
-
* </Choice.Root>
|
|
359
|
-
* ```
|
|
360
|
-
*/
|
|
361
|
-
readonly Label: typeof ChoiceLabel;
|
|
362
|
-
/**
|
|
363
|
-
* Title: the title as label-less text (`<p>`). Use when an ancestor (a
|
|
364
|
-
* clickable row or a Headless radio item) owns labeling. Inside a
|
|
365
|
-
* `RadioGroup` item it names the radio through `aria-labelledby`.
|
|
366
|
-
*
|
|
367
|
-
* @see https://mantle.ngrok.com/components/forms/choice
|
|
368
|
-
*
|
|
369
|
-
* @example
|
|
370
|
-
* ```tsx
|
|
371
|
-
* <Choice.Root id="onboarding-key">
|
|
372
|
-
* <Choice.Indicator>
|
|
373
|
-
* <Checkbox />
|
|
374
|
-
* </Choice.Indicator>
|
|
375
|
-
* <Choice.Content>
|
|
376
|
-
* <Choice.Title>Onboarding Key</Choice.Title>
|
|
377
|
-
* <Choice.Description>ng-3FaThZL***8xiA</Choice.Description>
|
|
378
|
-
* </Choice.Content>
|
|
379
|
-
* </Choice.Root>
|
|
380
|
-
* ```
|
|
381
|
-
*/
|
|
382
|
-
readonly Title: typeof Title;
|
|
383
|
-
/**
|
|
384
|
-
* Description: the supplementary line, wired via `aria-describedby`. A click
|
|
385
|
-
* on it forwards to `Choice.Label`. Inside a `RadioGroup` item it describes
|
|
386
|
-
* the radio through `aria-describedby`.
|
|
387
|
-
*
|
|
388
|
-
* @see https://mantle.ngrok.com/components/forms/choice
|
|
389
|
-
*
|
|
390
|
-
* @example
|
|
391
|
-
* ```tsx
|
|
392
|
-
* <Choice.Root name="notify">
|
|
393
|
-
* <Choice.Indicator>
|
|
394
|
-
* <Checkbox />
|
|
395
|
-
* </Choice.Indicator>
|
|
396
|
-
* <Choice.Content>
|
|
397
|
-
* <Choice.Label>Email</Choice.Label>
|
|
398
|
-
* <Choice.Description>Get notified by email.</Choice.Description>
|
|
399
|
-
* </Choice.Content>
|
|
400
|
-
* </Choice.Root>
|
|
401
|
-
* ```
|
|
402
|
-
*/
|
|
403
|
-
readonly Description: typeof Description;
|
|
404
|
-
};
|
|
405
|
-
export { ChoiceRootProps as n, Choice as t };
|
package/dist/choice-uyYccm0A.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./use-isomorphic-layout-effect-CLSmHzo4.js";import{n as t}from"./compose-refs-sFdxsL7k.js";import{t as n}from"./cx-CK7o_rVv.js";import{t as r}from"./data-slot-EM6s2WEU.js";import{t as i}from"./interactive-target-BXScNeOr.js";import{t as a}from"./field-Bihblt8U.js";import{t as o}from"./label-DmDwzPD8.js";import{t as s}from"./radio-group-HDVxTNPi.js";import{t as c}from"./slot-DdYN1L1C.js";import{c as l}from"react/compiler-runtime";import{cloneElement as u,createContext as d,isValidElement as f,useContext as p,useId as m,useRef as h}from"react";import g from"tiny-invariant";import{jsx as _}from"react/jsx-runtime";const v=d(null);function y(e){let t=p(v);return g(t,`Choice.${e} must be rendered inside Choice.Root.`),t}const b=e=>{let t=l(40),i,o,s,c,u,d,f,g,y,b,x;t[0]===e?(i=t[1],o=t[2],s=t[3],c=t[4],u=t[5],d=t[6],f=t[7],g=t[8],y=t[9],b=t[10],x=t[11]):({"data-slot":d,"aria-describedby":i,"aria-errormessage":o,"aria-invalid":s,children:c,className:u,disabled:x,id:f,name:g,ref:b,...y}=e,t[0]=e,t[1]=i,t[2]=o,t[3]=s,t[4]=c,t[5]=u,t[6]=d,t[7]=f,t[8]=g,t[9]=y,t[10]=b,t[11]=x);let S=x!==void 0&&x,C=p(a),w=C?.id,T=C?.name,E=C?.[`aria-describedby`],D=C?.[`aria-invalid`],O=C?.[`aria-errormessage`],k=m(),A=m(),j=h(null),M=w??f??k,N=E??i,P;t[12]!==A||t[13]!==N?(P=[N,A].filter(Boolean).join(` `)||void 0,t[12]=A,t[13]=N,t[14]=P):P=t[14];let F=P,I=T??g,L=D??s,R=O??o,z;t[15]!==M||t[16]!==F||t[17]!==S||t[18]!==I||t[19]!==L||t[20]!==R?(z={id:M,name:I,disabled:S,"aria-describedby":F,"aria-invalid":L,"aria-errormessage":R},t[15]=M,t[16]=F,t[17]=S,t[18]=I,t[19]=L,t[20]=R,t[21]=z):z=t[21];let B;t[22]!==M||t[23]!==A||t[24]!==S||t[25]!==z?(B={controlId:M,descriptionId:A,disabled:S,labelRef:j,controlProps:z},t[22]=M,t[23]=A,t[24]=S,t[25]=z,t[26]=B):B=t[26];let V=B,H;t[27]===d?H=t[28]:(H=r(d,`choice`),t[27]=d,t[28]=H);let U;t[29]===u?U=t[30]:(U=n(`flex w-full items-start gap-2`,u),t[29]=u,t[30]=U);let W;t[31]!==c||t[32]!==y||t[33]!==b||t[34]!==H||t[35]!==U?(W=/* @__PURE__ */ _(`div`,{ref:b,"data-slot":H,className:U,...y,children:c}),t[31]=c,t[32]=y,t[33]=b,t[34]=H,t[35]=U,t[36]=W):W=t[36];let G;return t[37]!==V||t[38]!==W?(G=/* @__PURE__ */ _(v.Provider,{value:V,children:W}),t[37]=V,t[38]=W,t[39]=G):G=t[39],G},x=e=>{let t=l(19),i,a,o,s,c;t[0]===e?(i=t[1],a=t[2],o=t[3],s=t[4],c=t[5]):({"data-slot":o,children:i,className:a,ref:c,...s}=e,t[0]=e,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=c);let{controlProps:d}=y(`Indicator`),p;t[6]!==i||t[7]!==d?(p=f(i)?u(i,{...d,disabled:d.disabled||i.props.disabled===!0,name:d.name??i.props.name,"aria-invalid":d[`aria-invalid`]??i.props[`aria-invalid`],"aria-errormessage":d[`aria-errormessage`]??i.props[`aria-errormessage`]}):i,t[6]=i,t[7]=d,t[8]=p):p=t[8];let m=p,h;t[9]===o?h=t[10]:(h=r(o,`choice-indicator`),t[9]=o,t[10]=h);let g;t[11]===a?g=t[12]:(g=n(`flex h-lh shrink-0 items-center text-sm`,a),t[11]=a,t[12]=g);let v;return t[13]!==m||t[14]!==s||t[15]!==c||t[16]!==h||t[17]!==g?(v=/* @__PURE__ */ _(`span`,{ref:c,"data-slot":h,className:g,...s,children:m}),t[13]=m,t[14]=s,t[15]=c,t[16]=h,t[17]=g,t[18]=v):v=t[18],v},S=e=>{let t=l(16),i,a,o,s,u;t[0]===e?(i=t[1],a=t[2],o=t[3],s=t[4],u=t[5]):({"data-slot":o,asChild:i,className:a,ref:u,...s}=e,t[0]=e,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=u);let d=i?c:`div`,f;t[6]===o?f=t[7]:(f=r(o,`choice-content`),t[6]=o,t[7]=f);let p;t[8]===a?p=t[9]:(p=n(`flex min-w-0 flex-1 flex-col gap-0.5`,a),t[8]=a,t[9]=p);let m;return t[10]!==d||t[11]!==s||t[12]!==u||t[13]!==f||t[14]!==p?(m=/* @__PURE__ */ _(d,{ref:u,"data-slot":f,className:p,...s}),t[10]=d,t[11]=s,t[12]=u,t[13]=f,t[14]=p,t[15]=m):m=t[15],m},C=e=>{let i=l(17),a,s,c,u;i[0]===e?(a=i[1],s=i[2],c=i[3],u=i[4]):({"data-slot":s,className:a,ref:u,...c}=e,i[0]=e,i[1]=a,i[2]=s,i[3]=c,i[4]=u);let{controlId:d,disabled:f,labelRef:p}=y(`Label`),m=t(p,u),h;i[5]===s?h=i[6]:(h=r(s,`choice-label`),i[5]=s,i[6]=h);let g=f&&`opacity-50`,v;i[7]!==a||i[8]!==g?(v=n(g,a),i[7]=a,i[8]=g,i[9]=v):v=i[9];let b;return i[10]!==m||i[11]!==d||i[12]!==f||i[13]!==c||i[14]!==h||i[15]!==v?(b=/* @__PURE__ */ _(o,{ref:m,"data-slot":h,className:v,...c,htmlFor:d,disabled:f}),i[10]=m,i[11]=d,i[12]=f,i[13]=c,i[14]=h,i[15]=v,i[16]=b):b=i[16],b},w=t=>{let i=l(23),a,o,u,d,f,h;i[0]===t?(a=i[1],o=i[2],u=i[3],d=i[4],f=i[5],h=i[6]):({"data-slot":u,asChild:a,className:o,id:d,ref:h,...f}=t,i[0]=t,i[1]=a,i[2]=o,i[3]=u,i[4]=d,i[5]=f,i[6]=h);let{disabled:g}=y(`Title`),v=p(s),b=m(),x=d??b,S,C;i[7]!==v||i[8]!==x?(S=()=>v?.registerLabelId(x),C=[v,x],i[7]=v,i[8]=x,i[9]=S,i[10]=C):(S=i[9],C=i[10]),e(S,C);let w=a?c:`p`,T;i[11]===u?T=i[12]:(T=r(u,`choice-title`),i[11]=u,i[12]=T);let E=g&&`opacity-50`,D;i[13]!==o||i[14]!==E?(D=n(`text-strong text-sm font-medium font-sans`,E,o),i[13]=o,i[14]=E,i[15]=D):D=i[15];let O;return i[16]!==w||i[17]!==f||i[18]!==h||i[19]!==T||i[20]!==D||i[21]!==x?(O=/* @__PURE__ */ _(w,{ref:h,"data-slot":T,className:D,...f,id:x}),i[16]=w,i[17]=f,i[18]=h,i[19]=T,i[20]=D,i[21]=x,i[22]=O):O=i[22],O};function T(e){return e.defaultPrevented||i(e.target,e.currentTarget)?!1:e.currentTarget.closest(`label`)==null}const E={Root:b,Indicator:x,Content:S,Label:C,Title:w,Description:t=>{let i=l(28),a,o,u,d,f,m;i[0]===t?(a=i[1],o=i[2],u=i[3],d=i[4],f=i[5],m=i[6]):({"data-slot":u,asChild:a,className:o,onClick:d,ref:m,...f}=t,i[0]=t,i[1]=a,i[2]=o,i[3]=u,i[4]=d,i[5]=f,i[6]=m);let{descriptionId:h,disabled:g,labelRef:v}=y(`Description`),b=p(s),x,S;i[7]!==h||i[8]!==b?(x=()=>b?.registerDescriptionId(h),S=[b,h],i[7]=h,i[8]=b,i[9]=x,i[10]=S):(x=i[9],S=i[10]),e(x,S);let C=a?c:`p`,w;i[11]===u?w=i[12]:(w=r(u,`choice-description`),i[11]=u,i[12]=w);let E=!g&&`[[data-slot~=choice-label]~&]:cursor-pointer`,D=g&&`opacity-50`,O;i[13]!==o||i[14]!==E||i[15]!==D?(O=n(`text-body text-sm leading-4`,E,D,o),i[13]=o,i[14]=E,i[15]=D,i[16]=O):O=i[16];let k;i[17]!==v||i[18]!==d?(k=e=>{d?.(e),T(e)&&(v.current?.click(),e.preventDefault())},i[17]=v,i[18]=d,i[19]=k):k=i[19];let A;return i[20]!==C||i[21]!==h||i[22]!==f||i[23]!==m||i[24]!==w||i[25]!==O||i[26]!==k?(A=/* @__PURE__ */ _(C,{ref:m,"data-slot":w,className:O,onClick:k,...f,id:h}),i[20]=C,i[21]=h,i[22]=f,i[23]=m,i[24]=w,i[25]=O,i[26]=k,i[27]=A):A=i[27],A}};export{E as t};
|
package/dist/clsx-DUGZgXfJ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./clsx-Dj3RWZ2l.js";const t=e;export{t};
|
package/dist/clsx-Dj3RWZ2l.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=Array.isArray,t=n=>{if(!n)return``;if(typeof n==`string`)return n;if(typeof n==`number`)return``+n;let r=``;if(e(n)){let e=n.length;for(let i=0;i<e;i++){let e=n[i];if(!e)continue;let a=typeof e==`string`?e:t(e);a&&(r&&(r+=` `),r+=a)}return r}if(typeof n==`object`)for(let e in n)n[e]&&(r&&(r+=` `),r+=e);return r},n=(...e)=>t(e);export{t as n,n as t};
|
package/dist/code-DUJzSl4K.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./cx-CK7o_rVv.js";import{t}from"./data-slot-EM6s2WEU.js";import{t as n}from"./slot-DdYN1L1C.js";import{c as r}from"react/compiler-runtime";import{jsx as i}from"react/jsx-runtime";const a=a=>{let o=r(16),s,c,l,u,d;o[0]===a?(s=o[1],c=o[2],l=o[3],u=o[4],d=o[5]):({"data-slot":l,asChild:s,className:c,ref:d,...u}=a,o[0]=a,o[1]=s,o[2]=c,o[3]=l,o[4]=u,o[5]=d);let f=s?n:`code`,p;o[6]===l?p=o[7]:(p=t(l,`code`),o[6]=l,o[7]=p);let m;o[8]===c?m=o[9]:(m=e(`border-gray-500/15 rounded-md border bg-gray-500/5 px-1 font-mono text-[0.8em]`,c),o[8]=c,o[9]=m);let h;return o[10]!==f||o[11]!==u||o[12]!==d||o[13]!==p||o[14]!==m?(h=/* @__PURE__ */ i(f,{ref:d,"data-slot":p,className:m,translate:`no`,...u}),o[10]=f,o[11]=u,o[12]=d,o[13]=p,o[14]=m,o[15]=h):h=o[15],h};export{a as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as e}from"react/compiler-runtime";function t(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function n(...e){return n=>{let r=!1,i=e.map(e=>{let i=t(e,n);return typeof i==`function`&&(r=!0),i});if(r)return()=>{for(let n=0;n<i.length;n++){let r=i[n];typeof r==`function`?r():t(e[n],null)}}}}function r(t,r,i){let a=e(4),o;return a[0]!==t||a[1]!==r||a[2]!==i?(o=e=>n(t,r,i)(e),a[0]=t,a[1]=r,a[2]=i,a[3]=o):o=a[3],o}export{r as n,n as t};
|
package/dist/cx-CK7o_rVv.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./clsx-Dj3RWZ2l.js";const t=(e,t)=>{let n=e.length,r=t.length,i=Array(n+r);for(let t=0;t<n;t++)i[t]=e[t];for(let e=0;e<r;e++)i[n+e]=t[e];return i},n=(e,t)=>({classGroupId:e,validator:t}),r=(e=/* @__PURE__ */ new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),i=[],a=e=>{let n=c(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:e=>{if(e[0]===`[`&&e[e.length-1]===`]`)return s(e);let t=e.split(`-`),r=+(t[0]===``&&t.length>1);return o(t,r,n)},getConflictingClassGroupIds:(e,n)=>{if(n){let n=a[e],o=r[e];return n?o?t(o,n):n:o||i}return r[e]||i}}},o=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=o(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let s=t===0?e.join(`-`):e.slice(t).join(`-`),c=a.length;for(let e=0;e<c;e++){let t=a[e];if(t.validator(s))return t.classGroupId}},s=e=>{let t=e.slice(1,-1),n=t.indexOf(`:`);if(n===-1)return;let r=t.slice(0,n);return r?`arbitrary..`+r:void 0},c=e=>{let{theme:t,classGroups:n}=e;return l(n,t)},l=(e,t)=>{let n=r();for(let r in e){let i=e[r];u(i,n,r,t)}return n},u=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];d(i,t,n,r)}},d=(e,t,n,r)=>{typeof e==`string`?f(e,t,n):typeof e==`function`?p(e,t,n,r):m(e,t,n,r)},f=(e,t,n)=>{let r=e===``?t:h(t,e);r.classGroupId=n},p=(e,t,r,i)=>{g(e)?u(e(i),t,r,i):(t.validators===null&&(t.validators=[]),t.validators.push(n(r,e)))},m=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];u(o,h(t,a),n,r)}},h=(e,t)=>{let n=e,i=t.split(`-`),a=i.length;for(let e=0;e<a;e++){let t=i[e],a=n.nextPart.get(t);a||(a=r(),n.nextPart.set(t,a)),n=a}return n},g=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,ee=(e,t,n,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:void 0}),te=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e.charCodeAt(s);if(n===0&&r===0){if(o===58){t.push(e.slice(i,s)),i=s+1;continue}if(o===47){a=s;continue}}o===91?n++:o===93?n--:o===40?r++:o===41&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1,u=s.length-1;s.charCodeAt(u)===33?(c=s.slice(0,-1),l=!0):s.charCodeAt(0)===33&&(c=s.slice(1),l=!0);let d=a&&a>i?a-i:void 0;return ee(t,l,c,d)},ne=e=>{let t=new Set(e.orderSensitiveModifiers);return e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);if(o||s){if(r.length>0){r.sort();for(let e=0;e<r.length;e++)n.push(r[e]);r=[]}n.push(a)}else r.push(a)}if(r.length>0){r.sort();for(let e=0;e<r.length;e++)n.push(r[e])}return n}},_={isExternal:!0,classId:-1,conflictIds:[]},v=e=>{let t=ne(e),n=re(e),{getClassGroupId:r,getConflictingClassGroupIds:i}=a(e),o=Object.create(null),s=Object.create(null),c=0,l=/* @__PURE__ */ new Int32Array(256),u=0,d=/* @__PURE__ */ new Uint8Array(64),f=!1,p=e=>{let t=[],n=e.length,r=-1;f=!1;for(let i=0;i<n;i++){let n=e.charCodeAt(i);n===32?r!==-1&&(t.push(e.slice(r,i)),r=-1):n>=9&&n<=13?(f=!0,r!==-1&&(t.push(e.slice(r,i)),r=-1)):r===-1&&(r=i)}return r!==-1&&t.push(e.slice(r)),t},m=/* @__PURE__ */ new Map,h=0,g=e=>{let t=m.get(e);if(t===void 0&&(t=h++,m.set(e,t),t>=l.length)){let e=new Int32Array(l.length*2);e.set(l),l=e}return t},ee=e=>{let{isExternal:a,modifiers:o,hasImportantModifier:s,baseClassName:c,maybePostfixModifierPosition:l}=te(e);if(a)return _;let u=!!l,d;if(u){let e=c.substring(0,l);d=r(e);let t=d&&n[d]?r(c):void 0;t&&t!==d&&(d=t,u=!1)}else d=r(c);if(!d){if(!u||(d=r(c),!d))return _;u=!1}let f=o.length===0?``:o.length===1?o[0]:t(o).join(`:`),p=s?f+`!`:f,m=i(d,u),h=[];for(let e=0;e<m.length;e++)h.push(g(p+m[e]));return{isExternal:!1,classId:g(p+d),conflictIds:h}},v=e=>{let t=o[e];return t===void 0&&(t=s[e],t===void 0&&(t=ee(e)),o[e]=t,++c>4096&&(c=0,s=o,o=Object.create(null))),t};return{parseClassName:te,sortModifiers:t,postfixLookupClassGroupIds:n,getClassGroupId:r,getConflictingClassGroupIds:i,getClassDescriptor:v,mergeClassList:e=>{let t=p(e),n=t.length;if(n===1)return t[0];h>16384&&(m.clear(),h=0,o=Object.create(null),s=Object.create(null),c=0),u=u+1|0,u===0&&(u=1);let r=u;if(n>d.length){let e=d.length;for(;e<n;)e*=2;d=new Uint8Array(e)}let i=!1,a=0;for(let e=n-1;e>=0;--e){let n=t[e];a+=n.length;let o=v(n);if(o.isExternal){d[e]=1;continue}let s=o.classId;if(l[s]===r){d[e]=0,i=!0;continue}l[s]=r;let c=o.conflictIds;for(let e=0;e<c.length;e++)l[c[e]]=r;d[e]=1}if(!i&&!f&&e.length===a+n-1)return e;let g=``;for(let e=0;e<n;e++)d[e]===1&&(g&&(g+=` `),g+=t[e]);return g}}},re=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},ie=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=y(n))&&(i&&(i+=` `),i+=r);return i},y=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=y(e[r]))&&(n&&(n+=` `),n+=t);return n},b=e=>{let t,n,r=Object.create(null),i=Object.create(null),a=0,o=r=>(t=v(e()),n=t.mergeClassList,c.mergeString=s,s(r)),s=e=>{let t=r[e];return t===void 0&&(t=i[e],t===void 0&&(t=n(e)),r[e]=t,++a>500&&(a=0,i=r,r=Object.create(null))),t},c=(...e)=>c.mergeString(ie(...e));return c.mergeString=o,c},ae=[],x=e=>{let t=t=>t[e]||ae;return t.isThemeGetter=!0,t},S=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,C=/^\((?:(\w[\w-]*):)?(.+)\)$/i,oe=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,w=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,T=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,E=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,D=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,se=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,O=Number,k=Number.isNaN,ce=Number.isInteger,A=e=>oe.test(e),j=e=>!!e&&!k(O(e)),M=e=>!!e&&ce(O(e)),le=e=>e.endsWith(`%`)&&j(e.slice(0,-1)),N=e=>w.test(e),ue=()=>!0,de=e=>T.test(e)&&!E.test(e),P=()=>!1,F=e=>D.test(e),I=e=>se.test(e),fe=e=>!L(e)&&!B(e),pe=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),me=e=>U(e,q,P),L=e=>S.test(e),R=e=>U(e,J,de),he=e=>U(e,Y,j),ge=e=>U(e,Z,ue),_e=e=>U(e,X,P),ve=e=>U(e,G,P),ye=e=>U(e,K,I),z=e=>U(e,Te,F),B=e=>C.test(e),V=e=>W(e,J),be=e=>W(e,X),xe=e=>W(e,G),Se=e=>W(e,q),Ce=e=>W(e,K),H=e=>W(e,Te,!0),we=e=>W(e,Z,!0),U=(e,t,n)=>{let r=S.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},W=(e,t,n=!1)=>{let r=C.exec(e);return r?r[1]?t(r[1]):n:!1},G=e=>e===`position`||e===`percentage`,K=e=>e===`image`||e===`url`,q=e=>e===`length`||e===`size`||e===`bg-size`,J=e=>e===`length`,Y=e=>e===`number`,X=e=>e===`family-name`,Z=e=>e===`number`||e===`weight`,Te=e=>e===`shadow`,Q=b(()=>{let e=x(`color`),t=x(`font`),n=x(`text`),r=x(`font-weight`),i=x(`tracking`),a=x(`leading`),o=x(`breakpoint`),s=x(`container`),c=x(`spacing`),l=x(`radius`),u=x(`shadow`),d=x(`inset-shadow`),f=x(`text-shadow`),p=x(`drop-shadow`),m=x(`blur`),h=x(`perspective`),g=x(`aspect`),ee=x(`ease`),te=x(`animate`),ne=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],_=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],v=()=>[..._(),B,L],re=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],ie=()=>[`auto`,`contain`,`none`],y=()=>[B,L,c],b=()=>[A,`full`,`auto`,...y()],ae=()=>[M,`none`,`subgrid`,B,L],S=()=>[`auto`,{span:[`full`,M,B,L]},M,B,L],C=()=>[M,`auto`,B,L],oe=()=>[`auto`,`min`,`max`,`fr`,B,L],w=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],T=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],E=()=>[`auto`,...y()],D=()=>[A,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...y()],se=()=>[A,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...y()],O=()=>[A,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...y()],k=()=>[e,B,L],ce=()=>[..._(),xe,ve,{position:[B,L]}],de=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],P=()=>[`auto`,`cover`,`contain`,Se,me,{size:[B,L]}],F=()=>[le,V,R],I=()=>[``,`none`,`full`,l,B,L],U=()=>[``,j,V,R],W=()=>[`solid`,`dashed`,`dotted`,`double`],G=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],K=()=>[j,le,xe,ve],q=()=>[``,`none`,m,B,L],J=()=>[`none`,j,B,L],Y=()=>[`none`,j,B,L],X=()=>[j,B,L],Z=()=>[A,`full`,...y()];return{theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[N],breakpoint:[N],color:[ue],container:[N],"drop-shadow":[N],ease:[`in`,`out`,`in-out`,`out-strong`],font:[fe],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[N],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[N],shadow:[N],spacing:[`px`,j,`em`],text:[N],"text-shadow":[N],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,A,L,B,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,B,L]}],"container-named":[pe],columns:[{columns:[j,L,B,s]}],"break-after":[{"break-after":ne()}],"break-before":[{"break-before":ne()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:v()}],overflow:[{overflow:re()}],"overflow-x":[{"overflow-x":re()}],"overflow-y":[{"overflow-y":re()}],overscroll:[{overscroll:ie()}],"overscroll-x":[{"overscroll-x":ie()}],"overscroll-y":[{"overscroll-y":ie()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:b()}],"inset-x":[{"inset-x":b()}],"inset-y":[{"inset-y":b()}],start:[{"inset-s":b(),start:b()}],end:[{"inset-e":b(),end:b()}],"inset-bs":[{"inset-bs":b()}],"inset-be":[{"inset-be":b()}],top:[{top:b()}],right:[{right:b()}],bottom:[{bottom:b()}],left:[{left:b()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[M,`auto`,B,L]}],basis:[{basis:[A,`full`,`auto`,s,...y()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[j,A,`auto`,`initial`,`none`,L]}],grow:[{grow:[``,j,B,L]}],shrink:[{shrink:[``,j,B,L]}],order:[{order:[M,`first`,`last`,`none`,B,L]}],"grid-cols":[{"grid-cols":ae()}],"col-start-end":[{col:S()}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":ae()}],"row-start-end":[{row:S()}],"row-start":[{"row-start":C()}],"row-end":[{"row-end":C()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":oe()}],"auto-rows":[{"auto-rows":oe()}],gap:[{gap:y()}],"gap-x":[{"gap-x":y()}],"gap-y":[{"gap-y":y()}],"justify-content":[{justify:[...w(),`normal`]}],"justify-items":[{"justify-items":[...T(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...T()]}],"align-content":[{content:[`normal`,...w()]}],"align-items":[{items:[...T(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...T(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":w()}],"place-items":[{"place-items":[...T(),`baseline`]}],"place-self":[{"place-self":[`auto`,...T()]}],p:[{p:y()}],px:[{px:y()}],py:[{py:y()}],ps:[{ps:y()}],pe:[{pe:y()}],pbs:[{pbs:y()}],pbe:[{pbe:y()}],pt:[{pt:y()}],pr:[{pr:y()}],pb:[{pb:y()}],pl:[{pl:y()}],m:[{m:E()}],mx:[{mx:E()}],my:[{my:E()}],ms:[{ms:E()}],me:[{me:E()}],mbs:[{mbs:E()}],mbe:[{mbe:E()}],mt:[{mt:E()}],mr:[{mr:E()}],mb:[{mb:E()}],ml:[{ml:E()}],"space-x":[{"space-x":y()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":y()}],"space-y-reverse":[`space-y-reverse`],size:[{size:D()}],"inline-size":[{inline:[`auto`,...se()]}],"min-inline-size":[{"min-inline":[`auto`,...se()]}],"max-inline-size":[{"max-inline":[`none`,...se()]}],"block-size":[{block:[`auto`,...O()]}],"min-block-size":[{"min-block":[`auto`,...O()]}],"max-block-size":[{"max-block":[`none`,...O()]}],w:[{w:[s,`screen`,...D()]}],"min-w":[{"min-w":[s,`screen`,`none`,...D()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...D()]}],h:[{h:[`screen`,`lh`,...D()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...D()]}],"max-h":[{"max-h":[`screen`,`lh`,...D()]}],"font-size":[{text:[`base`,n,V,R]},`text-mono`,`text-size-inherit`],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,we,ge]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,le,L]}],"font-family":[{font:[be,_e,t]}],"font-features":[{"font-features":[L]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,B,L]}],"line-clamp":[{"line-clamp":[j,`none`,B,he]}],leading:[{leading:[a,...y()]}],"list-image":[{"list-image":[`none`,B,L]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,B,L]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...W(),`wavy`]}],"text-decoration-thickness":[{decoration:[j,`from-font`,`auto`,B,R]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[j,`auto`,B,L]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:y()}],"tab-size":[{tab:[M,B,L]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,B,L]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,B,L]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ce()}],"bg-repeat":[{bg:de()}],"bg-size":[{bg:P()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},M,B,L],radial:[``,B,L],conic:[M,B,L]},Ce,ye]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:F()}],"gradient-via-pos":[{via:F()}],"gradient-to-pos":[{to:F()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:I()}],"rounded-s":[{"rounded-s":I()}],"rounded-e":[{"rounded-e":I()}],"rounded-t":[{"rounded-t":I()}],"rounded-r":[{"rounded-r":I()}],"rounded-b":[{"rounded-b":I()}],"rounded-l":[{"rounded-l":I()}],"rounded-ss":[{"rounded-ss":I()}],"rounded-se":[{"rounded-se":I()}],"rounded-ee":[{"rounded-ee":I()}],"rounded-es":[{"rounded-es":I()}],"rounded-tl":[{"rounded-tl":I()}],"rounded-tr":[{"rounded-tr":I()}],"rounded-br":[{"rounded-br":I()}],"rounded-bl":[{"rounded-bl":I()}],"border-w":[{border:U()}],"border-w-x":[{"border-x":U()}],"border-w-y":[{"border-y":U()}],"border-w-s":[{"border-s":U()}],"border-w-e":[{"border-e":U()}],"border-w-bs":[{"border-bs":U()}],"border-w-be":[{"border-be":U()}],"border-w-t":[{"border-t":U()}],"border-w-r":[{"border-r":U()}],"border-w-b":[{"border-b":U()}],"border-w-l":[{"border-l":U()}],"divide-x":[{"divide-x":U()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":U()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...W(),`hidden`,`none`]}],"divide-style":[{divide:[...W(),`hidden`,`none`]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-bs":[{"border-bs":k()}],"border-color-be":[{"border-be":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...W(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[j,B,L]}],"outline-w":[{outline:[``,j,V,R]}],"outline-color":[{outline:k()}],shadow:[{shadow:[``,`none`,u,H,z]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":[`none`,d,H,z]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:U()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[j,R]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":U()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":[`none`,f,H,z]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[j,B,L]}],"mix-blend":[{"mix-blend":[...G(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":G()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[j]}],"mask-image-linear-from-pos":[{"mask-linear-from":K()}],"mask-image-linear-to-pos":[{"mask-linear-to":K()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":K()}],"mask-image-t-to-pos":[{"mask-t-to":K()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":K()}],"mask-image-r-to-pos":[{"mask-r-to":K()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":K()}],"mask-image-b-to-pos":[{"mask-b-to":K()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":K()}],"mask-image-l-to-pos":[{"mask-l-to":K()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":K()}],"mask-image-x-to-pos":[{"mask-x-to":K()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":K()}],"mask-image-y-to-pos":[{"mask-y-to":K()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[B,L]}],"mask-image-radial-from-pos":[{"mask-radial-from":K()}],"mask-image-radial-to-pos":[{"mask-radial-to":K()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":_()}],"mask-image-conic-pos":[{"mask-conic":[j]}],"mask-image-conic-from-pos":[{"mask-conic-from":K()}],"mask-image-conic-to-pos":[{"mask-conic-to":K()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ce()}],"mask-repeat":[{mask:de()}],"mask-size":[{mask:P()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,B,L]}],filter:[{filter:[``,`none`,B,L]}],blur:[{blur:q()}],brightness:[{brightness:[j,B,L]}],contrast:[{contrast:[j,B,L]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,H,z]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:[``,j,B,L]}],"hue-rotate":[{"hue-rotate":[j,B,L]}],invert:[{invert:[``,j,B,L]}],saturate:[{saturate:[j,B,L]}],sepia:[{sepia:[``,j,B,L]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,B,L]}],"backdrop-blur":[{"backdrop-blur":q()}],"backdrop-brightness":[{"backdrop-brightness":[j,B,L]}],"backdrop-contrast":[{"backdrop-contrast":[j,B,L]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,j,B,L]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[j,B,L]}],"backdrop-invert":[{"backdrop-invert":[``,j,B,L]}],"backdrop-opacity":[{"backdrop-opacity":[j,B,L]}],"backdrop-saturate":[{"backdrop-saturate":[j,B,L]}],"backdrop-sepia":[{"backdrop-sepia":[``,j,B,L]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":y()}],"border-spacing-x":[{"border-spacing-x":y()}],"border-spacing-y":[{"border-spacing-y":y()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,B,L]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[j,`initial`,B,L]}],ease:[{ease:[`linear`,`initial`,ee,B,L]}],delay:[{delay:[j,B,L]}],animate:[{animate:[`none`,te,B,L]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,B,L]}],"perspective-origin":[{"perspective-origin":v()}],rotate:[{rotate:J()}],"rotate-x":[{"rotate-x":J()}],"rotate-y":[{"rotate-y":J()}],"rotate-z":[{"rotate-z":J()}],scale:[{scale:Y()}],"scale-x":[{"scale-x":Y()}],"scale-y":[{"scale-y":Y()}],"scale-z":[{"scale-z":Y()}],"scale-3d":[`scale-3d`],skew:[{skew:X()}],"skew-x":[{"skew-x":X()}],"skew-y":[{"skew-y":X()}],transform:[{transform:[B,L,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:v()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:Z()}],"translate-x":[{"translate-x":Z()}],"translate-y":[{"translate-y":Z()}],"translate-z":[{"translate-z":Z()}],"translate-none":[`translate-none`],zoom:[{zoom:[M,B,L]}],accent:[{accent:k()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:k()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,B,L]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":k()}],"scrollbar-track-color":[{"scrollbar-track":k()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mbs":[{"scroll-mbs":y()}],"scroll-mbe":[{"scroll-mbe":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-p":[{"scroll-p":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-pbs":[{"scroll-pbs":y()}],"scroll-pbe":[{"scroll-pbe":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,B,L]}],fill:[{fill:[`none`,...k()]}],"stroke-w":[{stroke:[j,V,R,he]}],stroke:[{stroke:[`none`,...k()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}}),Ee=/* @__PURE__ */ new WeakMap,De=(t,n)=>{let r=n.length,i=!0;for(let e=0;e<r;e++){let t=n[e];if(t&&typeof t!=`string`){i=!1;break}}if(i){let e=Ee.get(t);if(e!==void 0)for(let t=0;t<e.length;t++){let i=e[t],a=i.values,o=!0;for(let e=0;e<r;e++)if(a[e]!==n[e]){o=!1;break}if(o)return i.result}}let a=t[0];for(let i=0;i<r;i++){let r=n[i];r&&(a+=typeof r==`string`?r:e(r)),a+=t[i+1]}let o=Q.mergeString(a);if(i){let e=Ee.get(t);e===void 0&&(e=[],Ee.set(t,e)),e.length>=8&&e.shift(),e.push({values:n,result:o})}return o},Oe=e=>Array.isArray(e)&&`raw`in e,ke=(()=>{let e=/* @__PURE__ */ Error();return!(`line`in e)&&!(`lineNumber`in e)})();let $=/* @__PURE__ */ new Map,Ae=/* @__PURE__ */ new Map,je=0;const Me=t=>{let n=``,r=!1,i=0,a=!0;for(let e of t)if(e){if(typeof e!=`string`){a=!1;break}r||=(n=e,!0),i+=1}if(!a)return Q.mergeString(e(t));if(!r)return``;if(i===1)return Q.mergeString(n);let o=$.get(n)??Ae.get(n);if(o!=null)for(let e of o){if(e.rest.length!==i-1)continue;let n=0,r=!1,a=!0;for(let i of t)if(i){if(!r)r=!0;else{if(i!==e.rest[n]){a=!1;break}n+=1}}if(a)return e.result}let s=n,c=!1,l=[];for(let e of t)e&&typeof e==`string`&&(c?(s+=` `+e,l.push(e)):c=!0);let u=Q.mergeString(s),d=$.get(n);return d??(d=[],$.set(n,d)),d.length>=64&&d.shift(),d.push({rest:l,result:u}),je+=1,je>500&&(je=0,Ae=$,$=/* @__PURE__ */ new Map),u},Ne=(t,...n)=>{if(Oe(t))return De(t,n);if(n.length===0)return Q.mergeString(e(t));let r=[t,...n];return ke?Me(r):Q.mergeString(e(r))};export{Ne as t};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ComponentProps, ComponentPropsWithoutRef, Ref } from "react";
|
|
2
|
-
import { Content as Content$1, Description as Description$1, Overlay as Overlay$1, Portal as Portal$1 } from "@radix-ui/react-dialog";
|
|
3
|
-
type DialogPrimitiveContentProps = ComponentProps<typeof Content$1>;
|
|
4
|
-
declare const Root: import("react").FC<import("@radix-ui/react-dialog").DialogProps>;
|
|
5
|
-
declare const Trigger: import("react").ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
6
|
-
/**
|
|
7
|
-
* Mounts dialog layers into the nearest layer container — an enclosing
|
|
8
|
-
* overlay's positioner when one is open, else `document.body`. An explicit
|
|
9
|
-
* `container` prop wins over both.
|
|
10
|
-
*/
|
|
11
|
-
declare const Portal: ({ container, ...props }: ComponentProps<typeof Portal$1>) => import("react").JSX.Element;
|
|
12
|
-
declare const Close: import("react").ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
13
|
-
declare const Overlay: (props: ComponentProps<typeof Overlay$1>) => import("react").JSX.Element;
|
|
14
|
-
declare const Content: ({ onEscapeKeyDown, onInteractOutside, onPointerDownOutside, ref, ...props }: DialogPrimitiveContentProps) => import("react").JSX.Element;
|
|
15
|
-
declare const Title: import("react").ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogTitleProps & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
16
|
-
/**
|
|
17
|
-
* An accessible description for the dialog primitive.
|
|
18
|
-
* This is a low-level primitive used by higher-level dialog components.
|
|
19
|
-
* Renders as a `div` by default, but can be changed to any other element using the `asChild` prop.
|
|
20
|
-
*/
|
|
21
|
-
declare const Description: ({ asChild, children, ref, ...props }: ComponentPropsWithoutRef<typeof Description$1> & {
|
|
22
|
-
ref?: Ref<HTMLDivElement>;
|
|
23
|
-
}) => import("react").JSX.Element;
|
|
24
|
-
/**
|
|
25
|
-
* Type guard to check if the event target is the overlay component
|
|
26
|
-
*/
|
|
27
|
-
declare function isDialogOverlayTarget(target: EventTarget | null): boolean;
|
|
28
|
-
export { Portal as a, Trigger as c, Overlay as i, isDialogOverlayTarget as l, Content as n, Root as o, Description as r, Title as s, Close as t };
|
package/dist/dialog-CsugEt2A.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./cx-CK7o_rVv.js";import{t}from"./data-slot-EM6s2WEU.js";import{t as n}from"./layer-container-kEQiE4zV.js";import{t as r}from"./button-BWGUuWnu.js";import{a as i,c as a,i as o,n as s,o as c,r as l,s as u,t as d}from"./primitive-Dz9Al-us.js";import{c as f}from"react/compiler-runtime";import{jsx as p,jsxs as m}from"react/jsx-runtime";import{XIcon as h}from"@phosphor-icons/react/X";const g=c,_=e=>{let n=f(8),r,i;n[0]===e?(r=n[1],i=n[2]):({"data-slot":r,...i}=e,n[0]=e,n[1]=r,n[2]=i);let o;n[3]===r?o=n[4]:(o=t(r,`dialog-trigger`),n[3]=r,n[4]=o);let s;return n[5]!==i||n[6]!==o?(s=/* @__PURE__ */ p(a,{"data-slot":o,...i}),n[5]=i,n[6]=o,n[7]=s):s=n[7],s},v=i,y=e=>{let n=f(8),r,i;n[0]===e?(r=n[1],i=n[2]):({"data-slot":r,...i}=e,n[0]=e,n[1]=r,n[2]=i);let a;n[3]===r?a=n[4]:(a=t(r,`dialog-close`),n[3]=r,n[4]=a);let o;return n[5]!==i||n[6]!==a?(o=/* @__PURE__ */ p(d,{"data-slot":a,...i}),n[5]=i,n[6]=a,n[7]=o):o=n[7],o},b=n=>{let r=f(14),i,a,s,c;r[0]===n?(i=r[1],a=r[2],s=r[3],c=r[4]):({"data-slot":a,className:i,ref:c,...s}=n,r[0]=n,r[1]=i,r[2]=a,r[3]=s,r[4]=c);let l;r[5]===a?l=r[6]:(l=t(a,`dialog-overlay`),r[5]=a,r[6]=l);let u;r[7]===i?u=r[8]:(u=e(`bg-overlay data-state-closed:animate-out data-state-closed:fade-out-0 data-state-open:animate-in data-state-open:fade-in-0 duration-200 ease-out-strong data-state-closed:duration-150 fixed inset-0 z-60 backdrop-blur-xs`,i),r[7]=i,r[8]=u);let d;return r[9]!==s||r[10]!==c||r[11]!==l||r[12]!==u?(d=/* @__PURE__ */ p(o,{ref:c,"data-slot":l,className:u,...s}),r[9]=s,r[10]=c,r[11]=l,r[12]=u,r[13]=d):d=r[13],d},x={centered:`inset-4`,"full-page":`inset-4`,"full-bleed":`inset-0`},S={centered:`border-dialog rounded-xl border`,"full-page":`border-dialog h-full max-w-none rounded-xl border`,"full-bleed":`h-full max-w-none`},C={Root:g,Body:n=>{let r=f(12),i,a,o;r[0]===n?(i=r[1],a=r[2],o=r[3]):({"data-slot":a,className:i,...o}=n,r[0]=n,r[1]=i,r[2]=a,r[3]=o);let s;r[4]===a?s=r[5]:(s=t(a,`dialog-body`),r[4]=a,r[5]=s);let c;r[6]===i?c=r[7]:(c=e(`scrollbar scrollbar-gutter-stable text-body flex-1 overflow-y-auto p-6`,i),r[6]=i,r[7]=c);let l;return r[8]!==o||r[9]!==s||r[10]!==c?(l=/* @__PURE__ */ p(`div`,{"data-slot":s,className:c,...o}),r[8]=o,r[9]=s,r[10]=c,r[11]=l):l=r[11],l},Close:y,CloseIconButton:e=>{let n=f(19),i,a,o,s,c,l,u;n[0]===e?(i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7]):({"data-slot":i,size:o,type:s,label:c,appearance:l,intent:u,...a}=e,n[0]=e,n[1]=i,n[2]=a,n[3]=o,n[4]=s,n[5]=c,n[6]=l,n[7]=u);let m=o===void 0?`md`:o,g=s===void 0?`button`:s,_=c===void 0?`Close Dialog`:c,v=l===void 0?`ghost`:l,y=u===void 0?`neutral`:u,b;n[8]===i?b=n[9]:(b=t(i,`dialog-close-icon-button`),n[8]=i,n[9]=b);let x;n[10]===Symbol.for(`react.memo_cache_sentinel`)?(x=/* @__PURE__ */ p(h,{}),n[10]=x):x=n[10];let S;return n[11]!==v||n[12]!==y||n[13]!==_||n[14]!==a||n[15]!==m||n[16]!==b||n[17]!==g?(S=/* @__PURE__ */ p(d,{asChild:!0,children:/* @__PURE__ */ p(r,{appearance:v,"data-slot":b,icon:x,intent:y,label:_,size:m,type:g,...a})}),n[11]=v,n[12]=y,n[13]=_,n[14]=a,n[15]=m,n[16]=b,n[17]=g,n[18]=S):S=n[18],S},Content:r=>{let i=f(27),a,o,c,l,u,d,h;i[0]===r?(a=i[1],o=i[2],c=i[3],l=i[4],u=i[5],d=i[6],h=i[7]):({"data-slot":c,appearance:h,children:a,className:o,preferredWidth:l,ref:d,...u}=r,i[0]=r,i[1]=a,i[2]=o,i[3]=c,i[4]=l,i[5]=u,i[6]=d,i[7]=h);let g=h===void 0?`centered`:h,_;i[8]===Symbol.for(`react.memo_cache_sentinel`)?(_=/* @__PURE__ */ p(b,{}),i[8]=_):_=i[8];let y=x[g],C;i[9]===y?C=i[10]:(C=e(`fixed z-60 flex items-center justify-center motion-safe:not-has-[>[data-mantle-modal-content][data-state=open]]:animate-exit-hold`,y),i[9]=y,i[10]=C);let w;i[11]===c?w=i[12]:(w=t(c,`dialog-content`),i[11]=c,i[12]=w);let T=S[g],E=g===`centered`&&(l??`max-w-lg`),D;i[13]!==o||i[14]!==T||i[15]!==E?(D=e(`flex max-h-full w-full flex-1 flex-col`,`outline-hidden focus-within:outline-hidden`,`bg-dialog shadow-lg duration-200 ease-out-strong data-state-closed:duration-150 motion-reduce:animate-none!`,`data-state-closed:animate-out data-state-closed:fade-out-0 data-state-closed:zoom-out-95 data-state-open:animate-in data-state-open:fade-in-0 data-state-open:zoom-in-95`,T,E,o),i[13]=o,i[14]=T,i[15]=E,i[16]=D):D=i[16];let O;i[17]!==g||i[18]!==a||i[19]!==u||i[20]!==d||i[21]!==w||i[22]!==D?(O=/* @__PURE__ */ p(s,{"data-appearance":g,"data-mantle-modal-content":!0,"data-slot":w,className:D,ref:d,...u,children:a}),i[17]=g,i[18]=a,i[19]=u,i[20]=d,i[21]=w,i[22]=D,i[23]=O):O=i[23];let k;return i[24]!==C||i[25]!==O?(k=/* @__PURE__ */ m(v,{children:[_,/* @__PURE__ */ p(n,{"data-slot":`dialog-positioner`,className:C,children:O})]}),i[24]=C,i[25]=O,i[26]=k):k=i[26],k},Description:n=>{let r=f(14),i,a,o,s;r[0]===n?(i=r[1],a=r[2],o=r[3],s=r[4]):({"data-slot":a,className:i,ref:s,...o}=n,r[0]=n,r[1]=i,r[2]=a,r[3]=o,r[4]=s);let c;r[5]===a?c=r[6]:(c=t(a,`dialog-description`),r[5]=a,r[6]=c);let u;r[7]===i?u=r[8]:(u=e(`text-muted`,i),r[7]=i,r[8]=u);let d;return r[9]!==o||r[10]!==s||r[11]!==c||r[12]!==u?(d=/* @__PURE__ */ p(l,{ref:s,"data-slot":c,className:u,...o}),r[9]=o,r[10]=s,r[11]=c,r[12]=u,r[13]=d):d=r[13],d},Footer:n=>{let r=f(12),i,a,o;r[0]===n?(i=r[1],a=r[2],o=r[3]):({"data-slot":a,className:i,...o}=n,r[0]=n,r[1]=i,r[2]=a,r[3]=o);let s;r[4]===a?s=r[5]:(s=t(a,`dialog-footer`),r[4]=a,r[5]=s);let c;r[6]===i?c=r[7]:(c=e(`border-dialog-muted flex shrink-0 justify-end gap-2 border-t px-6 py-4`,i),r[6]=i,r[7]=c);let l;return r[8]!==o||r[9]!==s||r[10]!==c?(l=/* @__PURE__ */ p(`div`,{"data-slot":s,className:c,...o}),r[8]=o,r[9]=s,r[10]=c,r[11]=l):l=r[11],l},Header:n=>{let r=f(14),i,a,o,s;r[0]===n?(i=r[1],a=r[2],o=r[3],s=r[4]):({"data-slot":o,className:a,children:i,...s}=n,r[0]=n,r[1]=i,r[2]=a,r[3]=o,r[4]=s);let c;r[5]===o?c=r[6]:(c=t(o,`dialog-header`),r[5]=o,r[6]=c);let l;r[7]===a?l=r[8]:(l=e(`border-dialog-muted text-strong relative flex shrink-0 flex-wrap items-center justify-between gap-2 border-b px-6 py-4`,`*:data-[slot~=dialog-title]:flex-1`,`*:data-[slot~=dialog-description]:order-last *:data-[slot~=dialog-description]:basis-full`,`has-[.icon-button]:pr-4`,a),r[7]=a,r[8]=l);let u;return r[9]!==i||r[10]!==s||r[11]!==c||r[12]!==l?(u=/* @__PURE__ */ p(`div`,{"data-slot":c,className:l,...s,children:i}),r[9]=i,r[10]=s,r[11]=c,r[12]=l,r[13]=u):u=r[13],u},Overlay:b,Portal:v,Title:n=>{let r=f(14),i,a,o,s;r[0]===n?(i=r[1],a=r[2],o=r[3],s=r[4]):({"data-slot":a,className:i,ref:s,...o}=n,r[0]=n,r[1]=i,r[2]=a,r[3]=o,r[4]=s);let c;r[5]===a?c=r[6]:(c=t(a,`dialog-title`),r[5]=a,r[6]=c);let l;r[7]===i?l=r[8]:(l=e(`text-strong truncate text-lg font-medium`,i),r[7]=i,r[8]=l);let d;return r[9]!==o||r[10]!==s||r[11]!==c||r[12]!==l?(d=/* @__PURE__ */ p(u,{ref:s,"data-slot":c,className:l,...o}),r[9]=o,r[10]=s,r[11]=c,r[12]=l,r[13]=d):d=r[13],d},Trigger:_};export{C as t};
|