@midas-ds/components 13.0.1 → 14.0.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/{AccordionItem-D2Y0gJZB.js → AccordionItem-BJw5IKe0.js} +103 -104
- package/AccordionItem-DhMimhYo.cjs +1 -0
- package/BadgeContainer-BZl6mSeb.cjs +1 -0
- package/{BadgeContainer-iNNgJKD9.js → BadgeContainer-DilMiV6u.js} +9 -9
- package/{Breadcrumbs-C6B4fyk3.js → Breadcrumbs-CV3rVTjR.js} +15 -15
- package/{Breadcrumbs-BQLxFZVm.cjs → Breadcrumbs-DpUPChG9.cjs} +1 -1
- package/{Button-DD5_S-tD.js → Button-B6lxIKPk.js} +11 -11
- package/{Button-CMIbSc4-.cjs → Button-BTX5G3le.cjs} +1 -1
- package/{Button-CUMHt7MG.js → Button-CRIYvCRM.js} +10 -4
- package/{Button-D_tRdPW9.cjs → Button-xc8A29pm.cjs} +1 -1
- package/Button.module-COONZqNU.cjs +1 -0
- package/Button.module-Cm0H98vy.js +14 -0
- package/{ButtonGroup-zx-9mxbJ.cjs → ButtonGroup-BpvDDECt.cjs} +1 -1
- package/{ButtonGroup-DC8925jD.js → ButtonGroup-Swh2E6Es.js} +1 -1
- package/CHANGELOG.md +33 -0
- package/Card-CfosvMF5.js +131 -0
- package/Card-D2E3gviQ.cjs +1 -0
- package/{CharacterCounter-CnRv-iUP.cjs → CharacterCounter-C-PFKoGg.cjs} +1 -1
- package/{CharacterCounter-DT7A0wWP.js → CharacterCounter-DpFONstE.js} +8 -8
- package/{Checkbox-DTuryJdM.js → Checkbox-Cr3MmHPE.js} +35 -35
- package/Checkbox-D-CFY6QF.cjs +1 -0
- package/{CheckboxGroup-BmFdy-K6.js → CheckboxGroup-DEY3JDEL.js} +12 -12
- package/{CheckboxGroup-LrqCwPET.cjs → CheckboxGroup-f9Oa1MhQ.cjs} +1 -1
- package/{Collection-BvWp2xBd.cjs → Collection-DaZzboRu.cjs} +1 -1
- package/{Collection-B0_WAieZ.js → Collection-j_iWeuZo.js} +5 -5
- package/{ColorSchemeSwitch-CgZfgCG4.js → ColorSchemeSwitch-ChFSNntp.js} +10 -10
- package/{ColorSchemeSwitch-D5juAHPc.cjs → ColorSchemeSwitch-Cur7zN5_.cjs} +3 -3
- package/{ComboBox-uMsVrOYu.cjs → ComboBox-C4NybZ32.cjs} +1 -1
- package/{ComboBox-B2btGwWe.js → ComboBox-D7eKe-M5.js} +147 -147
- package/DateField-BszKZodr.cjs +1 -0
- package/DateField-xyhyDy7u.js +47 -0
- package/{DateInputDivider-LxS0Kw1H.js → DateInputDivider-2Wf2hlXA.js} +25 -25
- package/{DateInputDivider-BnSo_Aox.cjs → DateInputDivider-BgXKFwB0.cjs} +1 -1
- package/{DateRangePicker-It4M98bT.cjs → DateRangePicker-DTPkr3hX.cjs} +2 -2
- package/{DateRangePicker-BmPPDZIF.js → DateRangePicker-YwKi0ukr.js} +22 -22
- package/Dialog-DLnopN3Z.js +237 -0
- package/{Dialog-DR6nEqMT.cjs → Dialog-DNu42oLH.cjs} +1 -1
- package/{Dialog-COeUapMW.js → Dialog-DOyFzvUa.js} +58 -58
- package/Dialog-w6EBWT__.cjs +1 -0
- package/{DragAndDrop-PrUJv--B.js → DragAndDrop-DPRU3Y0Y.js} +1 -1
- package/{DragAndDrop-Dw8JZmrn.cjs → DragAndDrop-DQ_6tl6K.cjs} +1 -1
- package/{Dropdown-C_W6Sizy.cjs → Dropdown-5rmvcHD_.cjs} +2 -2
- package/{Dropdown-CGQbf7OT.js → Dropdown-uC9wc8vd.js} +8 -8
- package/FieldError-C4WBoCRc.cjs +1 -0
- package/FieldError-C4kD4yJZ.js +48 -0
- package/{FileUpload-D2gnQKdn.js → FileUpload-01wGpykv.js} +14 -14
- package/{FileUpload-D3RaARDV.cjs → FileUpload-CTbh7Gic.cjs} +1 -1
- package/{FocusScope-Bj40Ir-g.js → FocusScope-8ILtcq9W.js} +4 -4
- package/{FocusScope-Uy3DiY0-.cjs → FocusScope-Dv0F-mG2.cjs} +1 -1
- package/{Grid-BmX6arAO.js → Grid-0XOQPryP.js} +2 -2
- package/{Grid-Bn1bCTH8.cjs → Grid-B6G4PWn5.cjs} +1 -1
- package/{GridItem-luVsL9lu.cjs → GridItem-BZ8eOXMB.cjs} +1 -1
- package/{GridItem-BtO9kCX9.js → GridItem-YtIpL5V2.js} +1 -1
- package/{Group-C73mD_-i.js → Group-C2hEIsGV.js} +11 -11
- package/{Group-BKYGeOBr.cjs → Group-cuyk9Hsy.cjs} +1 -1
- package/Heading-CEx2LJyM.js +48 -0
- package/Heading-CUShN98j.cjs +1 -0
- package/{Hidden-C9KWUR7b.js → Hidden-B5ir3Lei.js} +2 -2
- package/InfoBanner-CRSz8DK2.js +72 -0
- package/InfoBanner-D_pNj1J2.cjs +1 -0
- package/{Input-CzMx2mfl.cjs → Input-CCuE9Sc5.cjs} +1 -1
- package/{Input-BLVRv0FK.js → Input-CkTOajNJ.js} +9 -9
- package/{Label-1N6ddn5w.js → Label-CV9p0K2n.js} +15 -15
- package/Label-CkIRTC0_.cjs +1 -0
- package/Layout-CVnlO10z.cjs +16 -0
- package/{Layout-B-A-s7B0.js → Layout-IeVrHpT0.js} +126 -126
- package/{Link-CbFSuEI1.js → Link-B9CQXWzE.js} +10 -10
- package/{Link-lO-Ke97K.js → Link-BFvUN5Sq.js} +22 -22
- package/Link-D2K7bDd3.cjs +6 -0
- package/{Link-wM7cVPlS.cjs → Link-a3Ymcnoa.cjs} +1 -1
- package/LinkButton-BCn5gR10.cjs +6 -0
- package/LinkButton-DN3J1Agu.js +69 -0
- package/{ListBox-LncMQt6I.js → ListBox-2eEa1l0M.js} +34 -34
- package/{ListBox-ICZKGluC.cjs → ListBox-Bx9M5vqb.cjs} +1 -1
- package/{ListBoxLoadMoreItem-3jGpi90m.cjs → ListBoxLoadMoreItem-BBE3OF4J.cjs} +1 -1
- package/{ListBoxLoadMoreItem-C4jnDcYH.js → ListBoxLoadMoreItem-IcGb_XwN.js} +5 -5
- package/{ListBoxSection-D7BcbjUt.js → ListBoxSection-dksiACMZ.js} +21 -21
- package/{ListBoxSection-BeDwnVZx.cjs → ListBoxSection-kujY2gUl.cjs} +1 -1
- package/{ListKeyboardDelegate-C_X1wLkh.cjs → ListKeyboardDelegate-DJDPir-w.cjs} +1 -1
- package/{ListKeyboardDelegate-CVxkAn5D.js → ListKeyboardDelegate-Dyu4eFtP.js} +2 -2
- package/{Logo-CFjZc5u2.cjs → Logo-4tRnV4Su.cjs} +1 -1
- package/{Logo-DkagDdKQ.js → Logo-DLlt576_.js} +17 -17
- package/{OverlayArrow-CvNuu3e3.js → OverlayArrow-Bh_G2tJ3.js} +4 -4
- package/{OverlayArrow-ByH6lM-H.cjs → OverlayArrow-DJ4nNscD.cjs} +1 -1
- package/Popover-BI2Koco0.cjs +1 -0
- package/{Popover-Bf5YH53o.js → Popover-D7_IfJ3o.js} +13 -13
- package/PressResponder-AXK2I_yx.cjs +1 -0
- package/{PressResponder-CxVtArtP.js → PressResponder-DUhG97jJ.js} +9 -9
- package/ProgressBar-B-TOuoAC.cjs +1 -0
- package/ProgressBar-B0WEQkyq.js +53 -0
- package/{Radio-D4wUZfW9.js → Radio-D6KNkSA2.js} +47 -47
- package/{Radio-BpQoJB8e.cjs → Radio-DsVsutMH.cjs} +1 -1
- package/RangeCalendar-B6zKSDju.cjs +6 -0
- package/{RangeCalendar-Bi9jc61A.js → RangeCalendar-D5TMu8GI.js} +115 -114
- package/{SSRProvider-40TXmsUG.js → SSRProvider-D8lZ0o6A.js} +5 -5
- package/{SSRProvider-Bc-sMhsT.cjs → SSRProvider-DZRLwxPS.cjs} +1 -1
- package/SearchField-DnBBlPT7.cjs +6 -0
- package/{SearchField-BevjTbcW.js → SearchField-wojUSY2S.js} +44 -44
- package/Select-D9h_RQ2k.cjs +1 -0
- package/{Select-CEwJo1BT.js → Select-Dc6y8gPR.js} +168 -168
- package/{SelectionManager-Bq-Gw1UT.js → SelectionManager-D-4ThfPZ.js} +9 -9
- package/{SelectionManager-BtbHoHpA.cjs → SelectionManager-FYrDfe5v.cjs} +1 -1
- package/{Separator-Bj24aGrT.js → Separator--4b7vckr.js} +28 -28
- package/{Separator-Dgin8BNW.cjs → Separator-BQkxEZC9.cjs} +1 -1
- package/{Separator-CM0KPvsX.js → Separator-COlhRmJF.js} +5 -5
- package/Separator-DcbM84B8.cjs +1 -0
- package/Skeleton-8onymGEG.cjs +1 -0
- package/Skeleton-BjTEGRpe.js +35 -0
- package/Spinner-CTha503N.js +47 -0
- package/{Spinner-DxWDMW6e.cjs → Spinner-DKQ9_SQB.cjs} +2 -2
- package/{TabList-3fErCDyP.cjs → TabList-BhC96APe.cjs} +1 -1
- package/{TabList-CXaxruLg.js → TabList-P5HnizZt.js} +106 -110
- package/{Table-Dyqa6_rE.cjs → Table-BB8Ag5_3.cjs} +1 -1
- package/{Table-BzJktg2G.js → Table-cCSOrPkK.js} +21 -21
- package/{Tag-BYUPXbhG.js → Tag-D2vh0KRD.js} +24 -24
- package/{Tag-BweDKw1v.cjs → Tag-D32MGLjS.cjs} +1 -1
- package/Text-BQe1I4-r.js +32 -0
- package/{Text-Be7WIOwv.js → Text-BpERRete.js} +3 -3
- package/{Text-BtPiT2P1.cjs → Text-CkhG15SU.cjs} +1 -1
- package/{Text-BAFsaON-.cjs → Text-CkhZTTV5.cjs} +1 -1
- package/TextArea-B5TsyJxa.cjs +1 -0
- package/TextArea-Cado2arG.js +125 -0
- package/{TextField-Bm5916AD.cjs → TextField-4xfAzdBI.cjs} +1 -1
- package/{TextField-_UY8CXtW.js → TextField-5AI6T1ol.js} +26 -26
- package/TextField.module-C03d0VY9.js +13 -0
- package/TextField.module-DmRrFHra.cjs +1 -0
- package/{Toast-B74PMVL9.js → Toast-CgXRE33Y.js} +97 -97
- package/{Toast-Cs0CEbRr.cjs → Toast-Cs-Uvf1p.cjs} +1 -1
- package/{ToggleButtonGroup-DY9S3USc.cjs → ToggleButtonGroup-CiX2eXB8.cjs} +1 -1
- package/{ToggleButtonGroup-CwHPu7w5.js → ToggleButtonGroup-SKGgfFs4.js} +9 -9
- package/{Tooltip-CZa9n5sT.cjs → Tooltip-BrupFzaI.cjs} +1 -1
- package/{Tooltip-BHAtsp9k.js → Tooltip-txk48Qof.js} +13 -13
- package/{VisuallyHidden-EjrqodVh.cjs → VisuallyHidden-Awup6QxT.cjs} +1 -1
- package/{VisuallyHidden-CGEtjAP7.js → VisuallyHidden-D2ZXHTJs.js} +8 -8
- package/accordion/Accordion.d.ts +0 -1
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +2 -3
- package/assets/AccordionItem.css +1 -1
- package/assets/Button.css +1 -1
- package/assets/Card.css +1 -1
- package/assets/Checkbox.css +1 -1
- package/assets/ComboBox.css +1 -1
- package/assets/DateField.css +1 -1
- package/assets/DateInputDivider.css +1 -1
- package/assets/DateRangePicker.css +1 -1
- package/assets/Dialog.css +1 -1
- package/assets/Dropdown.css +1 -1
- package/assets/FieldError.css +1 -1
- package/assets/Heading.css +1 -1
- package/assets/InfoBanner.css +1 -1
- package/assets/Label.css +1 -1
- package/assets/Layout.css +1 -1
- package/assets/Link.css +1 -1
- package/assets/LinkButton.css +1 -1
- package/assets/ListBoxSection.css +1 -1
- package/assets/Logo.css +1 -1
- package/assets/Popover.css +1 -1
- package/assets/ProgressBar.css +1 -1
- package/assets/Radio.css +1 -1
- package/assets/RangeCalendar.css +1 -1
- package/assets/SearchField.css +1 -1
- package/assets/Select.css +1 -1
- package/assets/Separator.css +1 -1
- package/assets/Skeleton.css +1 -1
- package/assets/Spinner.css +1 -1
- package/assets/TabList.css +1 -1
- package/assets/Text.css +1 -1
- package/assets/TextField.css +1 -1
- package/assets/Toast.css +1 -1
- package/assets/Tooltip.css +1 -1
- package/assets/default.css +1 -1
- package/badge/index.cjs +1 -1
- package/badge/index.js +1 -1
- package/breadcrumbs/index.cjs +1 -1
- package/breadcrumbs/index.js +1 -1
- package/button/index.cjs +1 -1
- package/button/index.js +2 -2
- package/calendar/index.cjs +1 -1
- package/calendar/index.js +1 -1
- package/card/index.cjs +1 -1
- package/card/index.js +1 -1
- package/character-counter/index.cjs +1 -1
- package/character-counter/index.js +1 -1
- package/checkbox/index.cjs +1 -1
- package/checkbox/index.js +2 -2
- package/clsx-DKOfLqne.cjs +1 -0
- package/clsx-jbLnTBqA.js +11 -0
- package/color-scheme-switch/index.cjs +1 -1
- package/color-scheme-switch/index.js +1 -1
- package/combobox/index.cjs +1 -1
- package/combobox/index.js +1 -1
- package/{context-CGNJ3grH.js → context-Dl_saGB6.js} +11 -11
- package/{context-Df3XbgBG.cjs → context-UOrD6Zxk.cjs} +1 -1
- package/date-field/index.cjs +1 -1
- package/date-field/index.js +2 -2
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +1 -1
- package/dropdown/index.cjs +1 -1
- package/dropdown/index.js +1 -1
- package/field-error/index.cjs +1 -1
- package/field-error/index.js +1 -1
- package/file-upload/index.cjs +1 -1
- package/file-upload/index.js +1 -1
- package/grid/index.cjs +1 -1
- package/grid/index.js +2 -2
- package/heading/Heading.d.ts +6 -0
- package/heading/index.cjs +1 -1
- package/heading/index.js +1 -1
- package/{index-BLPblar-.js → index-DEx4upZl.js} +19 -19
- package/{index-DSFSh2sC.cjs → index-hURPlN0u.cjs} +2 -2
- package/index.cjs +1 -1
- package/index.js +126 -127
- package/inertValue-BWmZ1afe.cjs +1 -0
- package/info-banner/index.cjs +1 -1
- package/info-banner/index.js +1 -1
- package/label/index.cjs +1 -1
- package/label/index.js +1 -1
- package/layout/index.cjs +1 -1
- package/layout/index.js +1 -1
- package/link/index.cjs +1 -1
- package/link/index.js +2 -2
- package/link-button/index.cjs +1 -1
- package/link-button/index.js +2 -2
- package/list-box/index.cjs +1 -1
- package/list-box/index.js +2 -2
- package/logo/index.cjs +1 -1
- package/logo/index.js +1 -1
- package/menu/index.cjs +1 -1
- package/menu/index.js +2 -2
- package/{mergeProps-BSsN7Bgk.js → mergeProps-Ct8m5-xW.js} +1 -1
- package/{mergeProps-JhcJ7uJL.cjs → mergeProps-Du5A8xi8.cjs} +1 -1
- package/modal/Dialog.d.ts +16 -3
- package/modal/index.cjs +1 -1
- package/modal/index.d.ts +1 -1
- package/modal/index.js +2 -2
- package/package.json +2 -2
- package/popover/index.cjs +1 -1
- package/popover/index.js +1 -1
- package/progress-bar/index.cjs +1 -1
- package/progress-bar/index.js +1 -1
- package/radio/index.cjs +1 -1
- package/radio/index.js +1 -1
- package/search-field/index.cjs +1 -1
- package/search-field/index.js +1 -1
- package/select/index.cjs +1 -1
- package/select/index.js +1 -1
- package/skeleton/index.cjs +1 -1
- package/skeleton/index.js +1 -1
- package/spinner/index.cjs +1 -1
- package/spinner/index.js +1 -1
- package/table/index.cjs +1 -1
- package/table/index.js +1 -1
- package/tabs/index.cjs +1 -1
- package/tabs/index.js +1 -1
- package/tag/index.cjs +1 -1
- package/tag/index.js +1 -1
- package/text/index.cjs +1 -1
- package/text/index.js +1 -1
- package/textfield/TextField.d.ts +2 -2
- package/textfield/index.cjs +1 -1
- package/textfield/index.js +1 -1
- package/toast/index.cjs +1 -1
- package/toast/index.js +1 -1
- package/toggle-button/index.cjs +1 -1
- package/toggle-button/index.js +1 -1
- package/tooltip/index.cjs +1 -1
- package/tooltip/index.js +1 -1
- package/{useButton-D6iUB8cN.js → useButton-A-VOfwuT.js} +3 -3
- package/{useButton-R8-i3HLC.cjs → useButton-Bh3duhYL.cjs} +1 -1
- package/{useDateFormatter-BJ1ZyaH1.js → useDateFormatter-CxlJTAki.js} +2 -2
- package/{useDateFormatter-2B0vgHc-.cjs → useDateFormatter-D0bVjgIb.cjs} +1 -1
- package/{useDescription-BMuiAqI5.cjs → useDescription-6BYtQxe6.cjs} +1 -1
- package/{useDescription-BLmIkYCq.js → useDescription-BFwQx7Rp.js} +1 -1
- package/useEvent-C125NAue.cjs +1 -0
- package/{useEvent-DpBHTuHJ.js → useEvent-smuTnX4G.js} +1 -1
- package/{useField-DyeD7MLj.cjs → useField-CY4OYE5a.cjs} +1 -1
- package/{useField-BMegM8fA.js → useField-sSWPm-He.js} +2 -2
- package/{useFilter-BFnSe_Eq.js → useFilter-DHcouDzv.js} +1 -1
- package/{useFilter-aoggM85n.cjs → useFilter-DlZLqsJD.cjs} +1 -1
- package/{useFocusRing-BcbYske2.cjs → useFocusRing-Cig5Y0l-.cjs} +1 -1
- package/{useFocusRing-DMo8ctYV.js → useFocusRing-Copf_tx8.js} +2 -2
- package/{useFocusWithin-ClMkhYcq.js → useFocusWithin-BKopz9sr.js} +1 -1
- package/{useFocusWithin-DTnk0e8a.cjs → useFocusWithin-TryC2Kkw.cjs} +1 -1
- package/{useFocusable-DXlMChFC.js → useFocusable-CCh54GIw.js} +14 -14
- package/{useFocusable-CsG-IPuC.cjs → useFocusable-DhdAtEw8.cjs} +1 -1
- package/{useFormValidation-BQIRxgbU.cjs → useFormValidation-BJNizNDf.cjs} +1 -1
- package/{useFormValidation-L0UHvOsP.js → useFormValidation-DdIIVZ5j.js} +2 -2
- package/{useHasTabbableChild-BDaxMsGu.js → useHasTabbableChild-BbgOpdGQ.js} +2 -2
- package/useHasTabbableChild-wH3RCjTd.cjs +1 -0
- package/{useHighlightSelectionDescription-BkEv9Jye.js → useHighlightSelectionDescription-BL_02EKv.js} +5 -5
- package/{useHighlightSelectionDescription-CQaG611l.cjs → useHighlightSelectionDescription-D6F-YO6b.cjs} +1 -1
- package/{useHover-DGAmG7jt.cjs → useHover-eU40luVI.cjs} +1 -1
- package/{useHover-D6bNIkU0.js → useHover-zCCNtF6g.js} +2 -2
- package/{useLabels-CvUk-yS3.cjs → useLabels-B5pmat1S.cjs} +1 -1
- package/{useLabels-Kmq5JCp_.js → useLabels-D24on06F.js} +1 -1
- package/{useListState-D2IEg6_e.cjs → useListState-BdC308Sq.cjs} +1 -1
- package/{useListState-pixYqSLl.js → useListState-D2yPZrFZ.js} +1 -1
- package/{useLocalizedStringFormatter-BO2iZEL0.cjs → useLocalizedStringFormatter-BSac43NO.cjs} +1 -1
- package/useLocalizedStringFormatter-CHAo1AyN.cjs +1 -0
- package/{useLocalizedStringFormatter-CL9MUZ8A.js → useLocalizedStringFormatter-CSEh15AZ.js} +1 -1
- package/{useLocalizedStringFormatter-N0AyjzbM.js → useLocalizedStringFormatter-aOhh7wdl.js} +1 -1
- package/useObserveElement-BzEr5D32.cjs +1 -0
- package/{usePress-DMUpU0GU.js → usePress-4yZ5a87p.js} +15 -15
- package/{usePress-CicXV7UO.cjs → usePress-Dj3t18Pf.cjs} +2 -2
- package/{useSingleSelectListState-CwWK_Dx2.cjs → useSingleSelectListState-b_SPhYG4.cjs} +1 -1
- package/{useSingleSelectListState-BlvpP8y-.js → useSingleSelectListState-lyai-bC_.js} +1 -1
- package/{useTextField-Cxpfu0U3.cjs → useTextField-DUEQl6sr.cjs} +1 -1
- package/{useTextField-BC5X_AO_.js → useTextField-DjxrmW7d.js} +7 -7
- package/useToggleState-DaxmInOW.cjs +1 -0
- package/{useUpdateEffect-C5YQs_1w.cjs → useUpdateEffect-sk3kiVGz.cjs} +1 -1
- package/utils/clsx.d.ts +8 -0
- package/{utils-Cpcjg55U.js → utils-BMBoiyL7.js} +10 -10
- package/{utils-DFIwp4PB.js → utils-CrT5PVBA.js} +1 -1
- package/{utils-__vrf9VZ.cjs → utils-I-LGXGYH.cjs} +1 -1
- package/{utils-CMHKYKlz.cjs → utils-cBvgilDa.cjs} +1 -1
- package/AccordionItem-Bq8nUKg4.cjs +0 -1
- package/BadgeContainer-su0iCJKy.cjs +0 -1
- package/Button.module-BT9wZenr.cjs +0 -1
- package/Button.module-CGIVvzVm.js +0 -14
- package/Card-D2UbrhDW.js +0 -131
- package/Card-UolcSL5O.cjs +0 -1
- package/Checkbox-dtZfsSfx.cjs +0 -1
- package/DateField-B5dlDwdH.cjs +0 -1
- package/DateField-CEpRn4wR.js +0 -47
- package/Dialog-B1HuzqOX.js +0 -240
- package/Dialog-doGnVsJJ.cjs +0 -1
- package/FieldError-Cornph2A.cjs +0 -1
- package/FieldError-DdvFyIf4.js +0 -48
- package/Heading-BQlmb5Tm.js +0 -46
- package/Heading-D3FR_KXb.cjs +0 -1
- package/InfoBanner-C82hcpzj.cjs +0 -1
- package/InfoBanner-Dz_0wVSa.js +0 -83
- package/Label-06gf6yKQ.cjs +0 -1
- package/Layout-DlE30BHE.cjs +0 -16
- package/Link-ePZ3nrAW.cjs +0 -6
- package/LinkButton-CJyZh3BS.js +0 -69
- package/LinkButton-Cw73pOM2.cjs +0 -6
- package/Popover-DIq3kp6B.cjs +0 -1
- package/PressResponder-DbnYqwGB.cjs +0 -1
- package/ProgressBar-DRhXkSE6.js +0 -53
- package/ProgressBar-i7almbvK.cjs +0 -1
- package/RangeCalendar-KcJooXYf.cjs +0 -6
- package/SearchField-BA-X9dzb.cjs +0 -6
- package/Select-1QuVY4f5.cjs +0 -1
- package/Separator-Cfv2pbWf.cjs +0 -1
- package/Skeleton-Iovq135_.js +0 -35
- package/Skeleton-MaBUPqhT.cjs +0 -1
- package/Spinner-BZ7i01Kt.js +0 -47
- package/Text-CmlsaWMA.js +0 -32
- package/TextArea-B4BZUoJp.cjs +0 -1
- package/TextArea-Df1fR5R4.js +0 -124
- package/TextField.module-CH39P8ZE.js +0 -13
- package/TextField.module-gJ-ruFra.cjs +0 -1
- package/inertValue-B3AFhVG4.cjs +0 -1
- package/useEvent-3ZO5TPSH.cjs +0 -1
- package/useHasTabbableChild-CJcLnolh.cjs +0 -1
- package/useLocalizedStringFormatter-BiX5BTlb.cjs +0 -1
- package/useObserveElement-MhzEsCkX.cjs +0 -1
- package/useToggleState-SqDyNfRi.cjs +0 -1
- package/utils/storybook.d.ts +0 -5
- package/utils/test.d.ts +0 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const p=require("./utils-
|
|
1
|
+
"use strict";const p=require("./utils-cBvgilDa.cjs"),P=require("./mergeProps-Du5A8xi8.cjs"),v=require("./filterDOMProps-RRlKPKX0.cjs"),x=require("react"),l=require("./usePress-Dj3t18Pf.cjs"),h=require("./useFocusable-DhdAtEw8.cjs"),E=require("./useHover-eU40luVI.cjs"),H=require("./useFocusRing-Cig5Y0l-.cjs");function y(s,e){let{elementType:r="a",onPress:i,onPressStart:f,onPressEnd:c,onClick:$,isDisabled:d,...u}=s,a={};r!=="a"&&(a={role:"link",tabIndex:d?void 0:0});let{focusableProps:o}=h.$f645667febf57a63$export$4c014de7c8940b4c(s,e),{pressProps:t,isPressed:n}=l.$f6c31cce2adf654f$export$45712eceda6fad21({onPress:i,onPressStart:f,onPressEnd:c,onClick:$,isDisabled:d,ref:e}),D=v.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(u,{labelable:!0}),m=P.$3ef42575df84b30b$export$9d1611c77c2fe928(o,t),q=l.$ea8dcbcb9ea1b556$export$9a302a45f65d0572(),F=l.$ea8dcbcb9ea1b556$export$7e924b3091a3bd18(s);return{isPressed:n,linkProps:P.$3ef42575df84b30b$export$9d1611c77c2fe928(D,F,{...m,...a,"aria-disabled":d||void 0,"aria-current":s["aria-current"],onClick:k=>{var b;(b=t.onClick)===null||b===void 0||b.call(t,k),l.$ea8dcbcb9ea1b556$export$13aea1a3cb5e3f1f(k,q,s.href,s.routerOptions)}})}}const C=x.createContext(null),S=x.forwardRef(function(e,r){[e,r]=p.$64fa3d84918910a7$export$29f1550f4b0d4415(e,r,C);let i=e.href&&!e.isDisabled?"a":"span",{linkProps:f,isPressed:c}=y({...e,elementType:i},r),{hoverProps:$,isHovered:d}=E.$6179b936705e76d3$export$ae780daf29e6d456(e),{focusProps:u,isFocused:a,isFocusVisible:o}=H.$f7dceffc5ad7768b$export$4e328f61c538687f(),t=p.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,defaultClassName:"react-aria-Link",values:{isCurrent:!!e["aria-current"],isDisabled:e.isDisabled||!1,isPressed:c,isHovered:d,isFocused:a,isFocusVisible:o}}),n=v.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});return delete n.onClick,x.createElement(i,{ref:r,slot:e.slot||void 0,...P.$3ef42575df84b30b$export$9d1611c77c2fe928(n,t,f,$,u),"data-focused":a||void 0,"data-hovered":d||void 0,"data-pressed":c||void 0,"data-focus-visible":o||void 0,"data-current":!!e["aria-current"]||void 0,"data-disabled":e.isDisabled||void 0},t.children)});exports.$4f118338184dc1d9$export$a6c7ac8248d6e38a=S;exports.$4f118338184dc1d9$export$e2509388b49734e7=C;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";require('./assets/LinkButton.css');const n=require("react/jsx-runtime"),f=require("./Link-a3Ymcnoa.cjs"),m=require("./clsx-DKOfLqne.cjs"),y=require("./square-arrow-out-up-right-xCFdJTzY.cjs"),x=require("./createLucideIcon-CTVXwe6i.cjs"),g=require("./arrow-right-BGd86zzR.cjs");/**
|
|
2
|
+
* @license lucide-react v0.525.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const h=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],k=x.createLucideIcon("arrow-left",h),w="_linkButton_138jj_1",B="_secondary_138jj_56",L="_icon_138jj_61",q="_tertiary_138jj_98",p="_danger_138jj_124",R="_iconBtn_138jj_141",A="_medium_138jj_163",N="_iconLeft_138jj_168",$="_fullwidth_138jj_172",t={linkButton:w,secondary:B,icon:L,tertiary:q,danger:p,iconBtn:R,medium:A,iconLeft:N,fullwidth:$},z=({children:i,variant:e,fullwidth:s,icon:o,iconPlacement:c,className:u,as:_,size:d="large",...a})=>{const j=_||f.$4f118338184dc1d9$export$a6c7ac8248d6e38a,l=({...r})=>o?n.jsx(o,{...r}):r.target==="_blank"?n.jsx(y.SquareArrowOutUpRight,{...r}):c==="left"?n.jsx(k,{...r}):n.jsx(g.ArrowRight,{...r});return n.jsxs(j,{className:m.clsx(t.linkButton,e==="primary"&&t.primary,e==="secondary"&&t.secondary,e==="tertiary"&&t.tertiary,e==="danger"&&t.danger,e==="icon"&&t.iconBtn,d==="medium"&&t.medium,s&&t.fullwidth,c==="left"&&t.iconLeft,u),...a,children:[i,n.jsx(l,{size:20,className:t.icon})]})};exports.LinkButton=z;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { jsxs as u, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { $ as j } from "./Link-B9CQXWzE.js";
|
|
3
|
+
import { c as y } from "./clsx-jbLnTBqA.js";
|
|
4
|
+
import { S as p } from "./square-arrow-out-up-right-ok0A3Ovo.js";
|
|
5
|
+
import { c as g } from "./createLucideIcon-XRdN60yz.js";
|
|
6
|
+
import { A as h } from "./arrow-right-uemUGIg8.js";
|
|
7
|
+
import './assets/LinkButton.css';/**
|
|
8
|
+
* @license lucide-react v0.525.0 - ISC
|
|
9
|
+
*
|
|
10
|
+
* This source code is licensed under the ISC license.
|
|
11
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
12
|
+
*/
|
|
13
|
+
const B = [
|
|
14
|
+
["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
|
|
15
|
+
["path", { d: "M19 12H5", key: "x3x0zl" }]
|
|
16
|
+
], k = g("arrow-left", B), w = "_linkButton_138jj_1", L = "_secondary_138jj_56", x = "_icon_138jj_61", A = "_tertiary_138jj_98", $ = "_danger_138jj_124", N = "_iconBtn_138jj_141", z = "_medium_138jj_163", R = "_iconLeft_138jj_168", S = "_fullwidth_138jj_172", t = {
|
|
17
|
+
linkButton: w,
|
|
18
|
+
secondary: L,
|
|
19
|
+
icon: x,
|
|
20
|
+
tertiary: A,
|
|
21
|
+
danger: $,
|
|
22
|
+
iconBtn: N,
|
|
23
|
+
medium: z,
|
|
24
|
+
iconLeft: R,
|
|
25
|
+
fullwidth: S
|
|
26
|
+
}, U = ({
|
|
27
|
+
children: e,
|
|
28
|
+
variant: o,
|
|
29
|
+
fullwidth: s,
|
|
30
|
+
icon: c,
|
|
31
|
+
iconPlacement: i,
|
|
32
|
+
className: _,
|
|
33
|
+
as: a,
|
|
34
|
+
size: d = "large",
|
|
35
|
+
...m
|
|
36
|
+
}) => {
|
|
37
|
+
const l = a || j, f = ({ ...n }) => c ? /* @__PURE__ */ r(c, { ...n }) : n.target === "_blank" ? /* @__PURE__ */ r(p, { ...n }) : i === "left" ? /* @__PURE__ */ r(k, { ...n }) : /* @__PURE__ */ r(h, { ...n });
|
|
38
|
+
return /* @__PURE__ */ u(
|
|
39
|
+
l,
|
|
40
|
+
{
|
|
41
|
+
className: y(
|
|
42
|
+
t.linkButton,
|
|
43
|
+
o === "primary" && t.primary,
|
|
44
|
+
o === "secondary" && t.secondary,
|
|
45
|
+
o === "tertiary" && t.tertiary,
|
|
46
|
+
o === "danger" && t.danger,
|
|
47
|
+
o === "icon" && t.iconBtn,
|
|
48
|
+
d === "medium" && t.medium,
|
|
49
|
+
s && t.fullwidth,
|
|
50
|
+
i === "left" && t.iconLeft,
|
|
51
|
+
_
|
|
52
|
+
),
|
|
53
|
+
...m,
|
|
54
|
+
children: [
|
|
55
|
+
e,
|
|
56
|
+
/* @__PURE__ */ r(
|
|
57
|
+
f,
|
|
58
|
+
{
|
|
59
|
+
size: 20,
|
|
60
|
+
className: t.icon
|
|
61
|
+
}
|
|
62
|
+
)
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
};
|
|
67
|
+
export {
|
|
68
|
+
U as L
|
|
69
|
+
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { $ as J, a as ue, b as fe, c as
|
|
2
|
-
import { $ as Q, b as X, a as V, f as Y, g as me, d as he } from "./utils-
|
|
3
|
-
import { $ as N, a as xe, b as Pe, c as Z, d as De } from "./DragAndDrop-
|
|
4
|
-
import { $ as ye, a as Se, b as ke, c as Ee } from "./Separator-
|
|
5
|
-
import { b as Me, $ as Fe, c as we } from "./ListKeyboardDelegate-
|
|
6
|
-
import { $ as Be } from "./Text-
|
|
7
|
-
import { c as ee, a as E, b as j, e as He } from "./mergeProps-
|
|
1
|
+
import { $ as J, a as ue, b as fe, c as $e, d as be, e as pe, f as ge, g as K, h as ve } from "./Collection-j_iWeuZo.js";
|
|
2
|
+
import { $ as Q, b as X, a as V, f as Y, g as me, d as he } from "./utils-BMBoiyL7.js";
|
|
3
|
+
import { $ as N, a as xe, b as Pe, c as Z, d as De } from "./DragAndDrop-DPRU3Y0Y.js";
|
|
4
|
+
import { $ as ye, a as Se, b as ke, c as Ee } from "./Separator-COlhRmJF.js";
|
|
5
|
+
import { b as Me, $ as Fe, c as we } from "./ListKeyboardDelegate-Dyu4eFtP.js";
|
|
6
|
+
import { $ as Be } from "./Text-BpERRete.js";
|
|
7
|
+
import { c as ee, a as E, b as j, e as He } from "./mergeProps-Ct8m5-xW.js";
|
|
8
8
|
import { $ as H } from "./filterDOMProps-wsa9OcNI.js";
|
|
9
9
|
import { $ as Ie } from "./inertValue-B7loUihk.js";
|
|
10
10
|
import n, { forwardRef as oe, createContext as te, useContext as x, useEffect as ae, useRef as T, useMemo as re } from "react";
|
|
11
|
-
import { d as Ve } from "./usePress-
|
|
12
|
-
import { h as Le, i as Oe, $ as le, a as G } from "./useHover-
|
|
13
|
-
import { d as _e } from "./SelectionManager-
|
|
14
|
-
import { $ as Ae } from "./useFocusWithin-
|
|
15
|
-
import { a as Ce } from "./Button-
|
|
16
|
-
import { a as Te, $ as Ne } from "./useListState-
|
|
17
|
-
import { $ as Ue } from "./context-
|
|
18
|
-
import { $ as ze } from "./useFocusRing-
|
|
19
|
-
import { a as Ke } from "./FocusScope-
|
|
11
|
+
import { d as Ve } from "./usePress-4yZ5a87p.js";
|
|
12
|
+
import { h as Le, i as Oe, $ as le, a as G } from "./useHover-zCCNtF6g.js";
|
|
13
|
+
import { d as _e } from "./SelectionManager-D-4ThfPZ.js";
|
|
14
|
+
import { $ as Ae } from "./useFocusWithin-BKopz9sr.js";
|
|
15
|
+
import { a as Ce } from "./Button-B6lxIKPk.js";
|
|
16
|
+
import { a as Te, $ as Ne } from "./useListState-D2yPZrFZ.js";
|
|
17
|
+
import { $ as Ue } from "./context-Dl_saGB6.js";
|
|
18
|
+
import { $ as ze } from "./useFocusRing-Copf_tx8.js";
|
|
19
|
+
import { a as Ke } from "./FocusScope-8ILtcq9W.js";
|
|
20
20
|
const R = /* @__PURE__ */ new WeakMap();
|
|
21
21
|
function Re(t) {
|
|
22
22
|
return typeof t == "string" ? t.replace(/\s*/g, "") : "" + t;
|
|
@@ -81,7 +81,7 @@ function je(t, e, r) {
|
|
|
81
81
|
var m;
|
|
82
82
|
let g = (m = t.shouldFocusOnHover) !== null && m !== void 0 ? m : a == null ? void 0 : a.shouldFocusOnHover;
|
|
83
83
|
var v;
|
|
84
|
-
let
|
|
84
|
+
let p = (v = t.shouldUseVirtualFocus) !== null && v !== void 0 ? v : a == null ? void 0 : a.shouldUseVirtualFocus;
|
|
85
85
|
var P;
|
|
86
86
|
let k = (P = t.isVirtualized) !== null && P !== void 0 ? P : a == null ? void 0 : a.isVirtualized, M = j(), D = j(), y = {
|
|
87
87
|
role: "option",
|
|
@@ -89,9 +89,9 @@ function je(t, e, r) {
|
|
|
89
89
|
"aria-selected": e.selectionManager.selectionMode !== "none" ? c : void 0
|
|
90
90
|
};
|
|
91
91
|
Le() && Oe() || (y["aria-label"] = t["aria-label"], y["aria-labelledby"] = M, y["aria-describedby"] = D);
|
|
92
|
-
let
|
|
92
|
+
let $ = e.collection.getItem(i);
|
|
93
93
|
if (k) {
|
|
94
|
-
let h = Number(
|
|
94
|
+
let h = Number($ == null ? void 0 : $.index);
|
|
95
95
|
y["aria-posinset"] = Number.isNaN(h) ? void 0 : h + 1, y["aria-setsize"] = Se(e.collection);
|
|
96
96
|
}
|
|
97
97
|
let O = a != null && a.onAction ? () => {
|
|
@@ -104,9 +104,9 @@ function je(t, e, r) {
|
|
|
104
104
|
shouldSelectOnPressUp: u,
|
|
105
105
|
allowsDifferentPressOrigin: u && g,
|
|
106
106
|
isVirtualized: k,
|
|
107
|
-
shouldUseVirtualFocus:
|
|
107
|
+
shouldUseVirtualFocus: p,
|
|
108
108
|
isDisabled: s,
|
|
109
|
-
onAction: O || !(
|
|
109
|
+
onAction: O || !($ == null || (o = $.props) === null || o === void 0) && o.onAction ? He($ == null || (l = $.props) === null || l === void 0 ? void 0 : l.onAction, O) : void 0,
|
|
110
110
|
linkBehavior: a == null ? void 0 : a.linkBehavior,
|
|
111
111
|
id: F
|
|
112
112
|
}), { hoverProps: U } = le({
|
|
@@ -114,9 +114,9 @@ function je(t, e, r) {
|
|
|
114
114
|
onHoverStart() {
|
|
115
115
|
G() || (e.selectionManager.setFocused(!0), e.selectionManager.setFocusedKey(i));
|
|
116
116
|
}
|
|
117
|
-
}), I = H(
|
|
117
|
+
}), I = H($ == null ? void 0 : $.props);
|
|
118
118
|
delete I.id;
|
|
119
|
-
let C = Ve(
|
|
119
|
+
let C = Ve($ == null ? void 0 : $.props);
|
|
120
120
|
return {
|
|
121
121
|
optionProps: {
|
|
122
122
|
...y,
|
|
@@ -166,7 +166,7 @@ const ie = /* @__PURE__ */ te(null), L = /* @__PURE__ */ te(null), ho = /* @__PU
|
|
|
166
166
|
props: e,
|
|
167
167
|
listBoxRef: r
|
|
168
168
|
}) : /* @__PURE__ */ n.createElement(fe, {
|
|
169
|
-
content: /* @__PURE__ */ n.createElement(
|
|
169
|
+
content: /* @__PURE__ */ n.createElement($e, e)
|
|
170
170
|
}, (l) => /* @__PURE__ */ n.createElement(Je, {
|
|
171
171
|
props: e,
|
|
172
172
|
listBoxRef: r,
|
|
@@ -195,7 +195,7 @@ function de({ state: t, props: e, listBoxRef: r }) {
|
|
|
195
195
|
let { dragAndDropHooks: o, layout: l = "stack", orientation: i = "vertical", filter: a } = e, d = Te(t, a), { collection: s, selectionManager: f } = d, c = !!(o != null && o.useDraggableCollectionState), b = !!(o != null && o.useDroppableCollectionState), { direction: u } = Ue(), { disabledBehavior: m, disabledKeys: g } = f, v = Fe({
|
|
196
196
|
usage: "search",
|
|
197
197
|
sensitivity: "base"
|
|
198
|
-
}), { isVirtualized:
|
|
198
|
+
}), { isVirtualized: p, layoutDelegate: P, dropTargetDelegate: k, CollectionRoot: M } = x(K), D = re(() => e.keyboardDelegate || new we({
|
|
199
199
|
collection: s,
|
|
200
200
|
collator: v,
|
|
201
201
|
ref: r,
|
|
@@ -220,10 +220,10 @@ function de({ state: t, props: e, listBoxRef: r }) {
|
|
|
220
220
|
...e,
|
|
221
221
|
shouldSelectOnPressUp: c || e.shouldSelectOnPressUp,
|
|
222
222
|
keyboardDelegate: D,
|
|
223
|
-
isVirtualized:
|
|
224
|
-
}, d, r),
|
|
223
|
+
isVirtualized: p
|
|
224
|
+
}, d, r), $ = T(c), O = T(b);
|
|
225
225
|
ae(() => {
|
|
226
|
-
process.env.NODE_ENV !== "production" && (
|
|
226
|
+
process.env.NODE_ENV !== "production" && ($.current !== c && console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."), O.current !== b && console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."));
|
|
227
227
|
}, [
|
|
228
228
|
c,
|
|
229
229
|
b
|
|
@@ -364,7 +364,7 @@ function ne(t, e, r, o = "react-aria-ListBoxSection") {
|
|
|
364
364
|
renderDropIndicator: Z(i, a)
|
|
365
365
|
})));
|
|
366
366
|
}
|
|
367
|
-
const xo = /* @__PURE__ */ ue(
|
|
367
|
+
const xo = /* @__PURE__ */ ue(pe, ne), Po = /* @__PURE__ */ J(be, function(e, r, o) {
|
|
368
368
|
let l = X(r), i = x(L), { dragAndDropHooks: a, dragState: d, dropState: s } = x(N), { optionProps: f, labelProps: c, descriptionProps: b, ...u } = je({
|
|
369
369
|
key: o.key,
|
|
370
370
|
"aria-label": e == null ? void 0 : e["aria-label"]
|
|
@@ -377,8 +377,8 @@ const xo = /* @__PURE__ */ ue($e, ne), Po = /* @__PURE__ */ J(be, function(e, r,
|
|
|
377
377
|
d && a && (v = a.useDraggableItem({
|
|
378
378
|
key: o.key
|
|
379
379
|
}, d));
|
|
380
|
-
let
|
|
381
|
-
s && a && (
|
|
380
|
+
let p = null;
|
|
381
|
+
s && a && (p = a.useDroppableItem({
|
|
382
382
|
target: {
|
|
383
383
|
type: "item",
|
|
384
384
|
key: o.key,
|
|
@@ -397,7 +397,7 @@ const xo = /* @__PURE__ */ ue($e, ne), Po = /* @__PURE__ */ J(be, function(e, r,
|
|
|
397
397
|
selectionBehavior: i.selectionManager.selectionBehavior,
|
|
398
398
|
allowsDragging: !!d,
|
|
399
399
|
isDragging: P,
|
|
400
|
-
isDropTarget:
|
|
400
|
+
isDropTarget: p == null ? void 0 : p.isDropTarget
|
|
401
401
|
}
|
|
402
402
|
});
|
|
403
403
|
ae(() => {
|
|
@@ -409,7 +409,7 @@ const xo = /* @__PURE__ */ ue($e, ne), Po = /* @__PURE__ */ J(be, function(e, r,
|
|
|
409
409
|
global: !0
|
|
410
410
|
});
|
|
411
411
|
return delete D.id, delete D.onClick, /* @__PURE__ */ n.createElement(M, {
|
|
412
|
-
...E(D, k, f, m, v == null ? void 0 : v.dragProps,
|
|
412
|
+
...E(D, k, f, m, v == null ? void 0 : v.dragProps, p == null ? void 0 : p.dropProps),
|
|
413
413
|
ref: l,
|
|
414
414
|
"data-allows-dragging": !!d || void 0,
|
|
415
415
|
"data-selected": u.isSelected || void 0,
|
|
@@ -419,7 +419,7 @@ const xo = /* @__PURE__ */ ue($e, ne), Po = /* @__PURE__ */ J(be, function(e, r,
|
|
|
419
419
|
"data-focus-visible": u.isFocusVisible || void 0,
|
|
420
420
|
"data-pressed": u.isPressed || void 0,
|
|
421
421
|
"data-dragging": P || void 0,
|
|
422
|
-
"data-drop-target": (
|
|
422
|
+
"data-drop-target": (p == null ? void 0 : p.isDropTarget) || void 0,
|
|
423
423
|
"data-selection-mode": i.selectionManager.selectionMode === "none" ? void 0 : i.selectionManager.selectionMode
|
|
424
424
|
}, /* @__PURE__ */ n.createElement(Y, {
|
|
425
425
|
values: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const x=require("./Collection-BvWp2xBd.cjs"),g=require("./utils-CMHKYKlz.cjs"),k=require("./DragAndDrop-Dw8JZmrn.cjs"),N=require("./Separator-Dgin8BNW.cjs"),K=require("./ListKeyboardDelegate-C_X1wLkh.cjs"),oe=require("./Text-BtPiT2P1.cjs"),v=require("./mergeProps-JhcJ7uJL.cjs"),V=require("./filterDOMProps-RRlKPKX0.cjs"),te=require("./inertValue-B3AFhVG4.cjs"),r=require("react"),re=require("./usePress-CicXV7UO.cjs"),L=require("./useHover-DGAmG7jt.cjs"),ae=require("./SelectionManager-BtbHoHpA.cjs"),de=require("./useFocusWithin-DTnk0e8a.cjs"),le=require("./Button-CMIbSc4-.cjs"),J=require("./useListState-D2IEg6_e.cjs"),ie=require("./context-Df3XbgBG.cjs"),ne=require("./useFocusRing-BcbYske2.cjs"),ce=require("./FocusScope-Uy3DiY0-.cjs"),U=new WeakMap;function se(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}function Q(t,e){let d=U.get(t);if(!d)throw new Error("Unknown list");return`${d.id}-option-${se(e)}`}function ue(t,e,d){let o=V.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{labelable:!0}),l=t.selectionBehavior||"toggle",i=t.linkBehavior||(l==="replace"?"action":"override");l==="toggle"&&i==="action"&&(i="override");let{listProps:a}=N.$982254629710d113$export$b95089534ab7c1fd({...t,ref:d,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,linkBehavior:i}),{focusWithinProps:n}=de.$9ab94262bd0047c7$export$420e68273165f4ec({onFocusWithin:t.onFocus,onBlurWithin:t.onBlur,onFocusWithinChange:t.onFocusChange}),c=v.$bdb11010cef70236$export$f680877a34711e37(t.id);U.set(e,{id:c,shouldUseVirtualFocus:t.shouldUseVirtualFocus,shouldSelectOnPressUp:t.shouldSelectOnPressUp,shouldFocusOnHover:t.shouldFocusOnHover,isVirtualized:t.isVirtualized,onAction:t.onAction,linkBehavior:i});let{labelProps:f,fieldProps:s}=le.$d191a55c9702f145$export$8467354a121f1b9f({...t,id:c,labelElementType:"span"});return{labelProps:f,listBoxProps:v.$3ef42575df84b30b$export$9d1611c77c2fe928(o,n,e.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...v.$3ef42575df84b30b$export$9d1611c77c2fe928(s,a)})}}function fe(t,e,d){var o,l;let{key:i}=t,a=U.get(e);var n;let c=(n=t.isDisabled)!==null&&n!==void 0?n:e.selectionManager.isDisabled(i);var f;let s=(f=t.isSelected)!==null&&f!==void 0?f:e.selectionManager.isSelected(i);var b;let u=(b=t.shouldSelectOnPressUp)!==null&&b!==void 0?b:a==null?void 0:a.shouldSelectOnPressUp;var P;let h=(P=t.shouldFocusOnHover)!==null&&P!==void 0?P:a==null?void 0:a.shouldFocusOnHover;var D;let p=(D=t.shouldUseVirtualFocus)!==null&&D!==void 0?D:a==null?void 0:a.shouldUseVirtualFocus;var y;let F=(y=t.isVirtualized)!==null&&y!==void 0?y:a==null?void 0:a.isVirtualized,C=v.$bdb11010cef70236$export$b4cc09c592e8fdb8(),S=v.$bdb11010cef70236$export$b4cc09c592e8fdb8(),M={role:"option","aria-disabled":c||void 0,"aria-selected":e.selectionManager.selectionMode!=="none"?s:void 0};L.$c87311424ea30a05$export$9ac100e40613ea10()&&L.$c87311424ea30a05$export$78551043582a6a98()||(M["aria-label"]=t["aria-label"],M["aria-labelledby"]=C,M["aria-describedby"]=S);let $=e.collection.getItem(i);if(F){let m=Number($==null?void 0:$.index);M["aria-posinset"]=Number.isNaN(m)?void 0:m+1,M["aria-setsize"]=N.$453cc9f0df89c0a5$export$77d5aafae4e095b2(e.collection)}let A=a!=null&&a.onAction?()=>{var m;return a==null||(m=a.onAction)===null||m===void 0?void 0:m.call(a,i)}:void 0,w=Q(e,i),{itemProps:E,isPressed:B,isFocused:H,hasAction:T,allowsSelection:_}=ae.$880e95eb8b93ba9a$export$ecf600387e221c37({selectionManager:e.selectionManager,key:i,ref:d,shouldSelectOnPressUp:u,allowsDifferentPressOrigin:u&&h,isVirtualized:F,shouldUseVirtualFocus:p,isDisabled:c,onAction:A||!($==null||(o=$.props)===null||o===void 0)&&o.onAction?v.$ff5963eb1fccf552$export$e08e3b67e392101e($==null||(l=$.props)===null||l===void 0?void 0:l.onAction,A):void 0,linkBehavior:a==null?void 0:a.linkBehavior,id:w}),{hoverProps:z}=L.$6179b936705e76d3$export$ae780daf29e6d456({isDisabled:c||!h,onHoverStart(){L.$507fabe10e71c6fb$export$b9b3dfddab17db27()||(e.selectionManager.setFocused(!0),e.selectionManager.setFocusedKey(i))}}),O=V.$65484d02dcb7eb3e$export$457c3d6518dd4c6f($==null?void 0:$.props);delete O.id;let q=re.$ea8dcbcb9ea1b556$export$7e924b3091a3bd18($==null?void 0:$.props);return{optionProps:{...M,...v.$3ef42575df84b30b$export$9d1611c77c2fe928(O,E,z,q),id:w},labelProps:{id:C},descriptionProps:{id:S},isFocused:H,isFocusVisible:H&&e.selectionManager.isFocused&&L.$507fabe10e71c6fb$export$b9b3dfddab17db27(),isSelected:s,isDisabled:c,isPressed:B,allowsSelection:_,hasAction:T}}function $e(t){let{heading:e,"aria-label":d}=t,o=v.$bdb11010cef70236$export$f680877a34711e37();return{itemProps:{role:"presentation"},headingProps:e?{id:o,role:"presentation"}:{},groupProps:{role:"group","aria-label":d,"aria-labelledby":e?o:void 0}}}const W=r.createContext(null),I=r.createContext(null),be=r.forwardRef(function(e,d){[e,d]=g.$64fa3d84918910a7$export$29f1550f4b0d4415(e,d,W);let o=r.useContext(I);return o?r.createElement(X,{state:o,props:e,listBoxRef:d}):r.createElement(x.$e1995378a142960e$export$bf788dd355e3a401,{content:r.createElement(x.$e1995378a142960e$export$fb8073518f34e6ec,e)},l=>r.createElement(pe,{props:e,listBoxRef:d,collection:l}))});function pe({props:t,listBoxRef:e,collection:d}){t={...t,collection:d,children:null,items:null};let{layoutDelegate:o}=r.useContext(x.$7135fc7d473fd974$export$4feb769f8ddf26c5),l=J.$e72dd72e1c76a225$export$2f645645f7bca764({...t,layoutDelegate:o});return r.createElement(X,{state:l,props:t,listBoxRef:e})}function X({state:t,props:e,listBoxRef:d}){[e,d]=g.$64fa3d84918910a7$export$29f1550f4b0d4415(e,d,K.$8e6cc465cc68f603$export$b0d3ecf7112093a7);let{dragAndDropHooks:o,layout:l="stack",orientation:i="vertical",filter:a}=e,n=J.$e72dd72e1c76a225$export$ba9d38c0f1bf2b36(t,a),{collection:c,selectionManager:f}=n,s=!!(o!=null&&o.useDraggableCollectionState),b=!!(o!=null&&o.useDroppableCollectionState),{direction:u}=ie.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{disabledBehavior:P,disabledKeys:h}=f,D=K.$325a3faab7a68acd$export$a16aca283550c30d({usage:"search",sensitivity:"base"}),{isVirtualized:p,layoutDelegate:y,dropTargetDelegate:F,CollectionRoot:C}=r.useContext(x.$7135fc7d473fd974$export$4feb769f8ddf26c5),S=r.useMemo(()=>e.keyboardDelegate||new K.$2a25aae57d74318e$export$a05409b8bb224a5a({collection:c,collator:D,ref:d,disabledKeys:h,disabledBehavior:P,layout:l,orientation:i,direction:u,layoutDelegate:y}),[c,D,d,P,h,i,u,e.keyboardDelegate,l,y]),{listBoxProps:M}=ue({...e,shouldSelectOnPressUp:s||e.shouldSelectOnPressUp,keyboardDelegate:S,isVirtualized:p},n,d),$=r.useRef(s),A=r.useRef(b);r.useEffect(()=>{process.env.NODE_ENV!=="production"&&($.current!==s&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),A.current!==b&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."))},[s,b]);let w,E,B,H=!1,T=null,_=r.useRef(null);if(s&&o){w=o.useDraggableCollectionState({collection:c,selectionManager:f,preview:o.renderDragPreview?_:void 0}),o.useDraggableCollection({},w,d);let R=o.DragPreview;T=o.renderDragPreview?r.createElement(R,{ref:_},o.renderDragPreview):null}if(b&&o){E=o.useDroppableCollectionState({collection:c,selectionManager:f});let R=o.dropTargetDelegate||F||new o.ListDropTargetDelegate(c,d,{orientation:i,layout:l,direction:u});B=o.useDroppableCollection({keyboardDelegate:S,dropTargetDelegate:R},E,d),H=E.isDropTarget({type:"root"})}let{focusProps:z,isFocused:O,isFocusVisible:q}=ne.$f7dceffc5ad7768b$export$4e328f61c538687f(),m=n.collection.size===0,j={isDropTarget:H,isEmpty:m,isFocused:O,isFocusVisible:q,layout:e.layout||"stack",state:n},Z=g.$64fa3d84918910a7$export$4d86445c2cf5e3({className:e.className,style:e.style,defaultClassName:"react-aria-ListBox",values:j}),G=null;m&&e.renderEmptyState&&(G=r.createElement("div",{role:"option",style:{display:"contents"}},e.renderEmptyState(j)));let ee=V.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});return r.createElement(ce.$9bf71ea28793e738$export$20e40289641fbbb6,null,r.createElement("div",{...v.$3ef42575df84b30b$export$9d1611c77c2fe928(ee,Z,M,z,B==null?void 0:B.collectionProps),ref:d,slot:e.slot||void 0,onScroll:e.onScroll,"data-drop-target":H||void 0,"data-empty":m||void 0,"data-focused":O||void 0,"data-focus-visible":q||void 0,"data-layout":e.layout||"stack","data-orientation":e.orientation||"vertical"},r.createElement(g.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[W,e],[I,n],[k.$612b8eb6cb90e02d$export$d188a835a7bc5783,{dragAndDropHooks:o,dragState:w,dropState:E}],[N.$431f98aba6844401$export$6615d83f6de245ce,{elementType:"div"}],[k.$612b8eb6cb90e02d$export$f55761759794cf55,{render:xe}],[x.$7135fc7d473fd974$export$d40e14dec8b060a8,{name:"ListBoxSection",render:Y}]]},r.createElement(C,{collection:c,scrollRef:d,persistedKeys:k.$612b8eb6cb90e02d$export$d1e8e3fbb7461f6(f,o,E),renderDropIndicator:k.$612b8eb6cb90e02d$export$971707d8a129a1f7(o,E)})),G,T))}function Y(t,e,d,o="react-aria-ListBoxSection"){let l=r.useContext(I),{dragAndDropHooks:i,dropState:a}=r.useContext(k.$612b8eb6cb90e02d$export$d188a835a7bc5783),{CollectionBranch:n}=r.useContext(x.$7135fc7d473fd974$export$4feb769f8ddf26c5),[c,f]=g.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8();var s;let{headingProps:b,groupProps:u}=$e({heading:f,"aria-label":(s=t["aria-label"])!==null&&s!==void 0?s:void 0}),P=g.$64fa3d84918910a7$export$4d86445c2cf5e3({defaultClassName:o,className:t.className,style:t.style,values:{}}),h=V.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{global:!0});return delete h.id,r.createElement("section",{...v.$3ef42575df84b30b$export$9d1611c77c2fe928(h,P,u),ref:e},r.createElement(N.$72a5793c14baf454$export$e0e4026c12a8bdbb.Provider,{value:{...b,ref:c}},r.createElement(n,{collection:l.collection,parent:d,renderDropIndicator:k.$612b8eb6cb90e02d$export$971707d8a129a1f7(i,a)})))}const ge=x.$e1995378a142960e$export$e953bb1cd0f19726(x.$23b9f4fcf0fe224b$export$437f11dc9b403b78,Y),ve=x.$e1995378a142960e$export$18af5c7a9e9b3664(x.$23b9f4fcf0fe224b$export$fd11f34e1d07f134,function(e,d,o){let l=g.$df56164dff5785e2$export$4338b53315abf666(d),i=r.useContext(I),{dragAndDropHooks:a,dragState:n,dropState:c}=r.useContext(k.$612b8eb6cb90e02d$export$d188a835a7bc5783),{optionProps:f,labelProps:s,descriptionProps:b,...u}=fe({key:o.key,"aria-label":e==null?void 0:e["aria-label"]},i,l),{hoverProps:P,isHovered:h}=L.$6179b936705e76d3$export$ae780daf29e6d456({isDisabled:!u.allowsSelection&&!u.hasAction,onHoverStart:o.props.onHoverStart,onHoverChange:o.props.onHoverChange,onHoverEnd:o.props.onHoverEnd}),D=null;n&&a&&(D=a.useDraggableItem({key:o.key},n));let p=null;c&&a&&(p=a.useDroppableItem({target:{type:"item",key:o.key,dropPosition:"on"}},c,l));let y=n&&n.isDragging(o.key),F=g.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...u,isHovered:h,selectionMode:i.selectionManager.selectionMode,selectionBehavior:i.selectionManager.selectionBehavior,allowsDragging:!!n,isDragging:y,isDropTarget:p==null?void 0:p.isDropTarget}});r.useEffect(()=>{!o.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.")},[o.textValue]);let C=e.href?"a":"div",S=V.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});return delete S.id,delete S.onClick,r.createElement(C,{...v.$3ef42575df84b30b$export$9d1611c77c2fe928(S,F,f,P,D==null?void 0:D.dragProps,p==null?void 0:p.dropProps),ref:l,"data-allows-dragging":!!n||void 0,"data-selected":u.isSelected||void 0,"data-disabled":u.isDisabled||void 0,"data-hovered":h||void 0,"data-focused":u.isFocused||void 0,"data-focus-visible":u.isFocusVisible||void 0,"data-pressed":u.isPressed||void 0,"data-dragging":y||void 0,"data-drop-target":(p==null?void 0:p.isDropTarget)||void 0,"data-selection-mode":i.selectionManager.selectionMode==="none"?void 0:i.selectionManager.selectionMode},r.createElement(g.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[oe.$514c0188e459b4c0$export$9afb8bc826b033ea,{slots:{[g.$64fa3d84918910a7$export$c62b8e45d58ddad9]:s,label:s,description:b}}]]},F.children))});function xe(t,e){e=g.$df56164dff5785e2$export$4338b53315abf666(e);let{dragAndDropHooks:d,dropState:o}=r.useContext(k.$612b8eb6cb90e02d$export$d188a835a7bc5783),{dropIndicatorProps:l,isHidden:i,isDropTarget:a}=d.useDropIndicator(t,o,e);return i?null:r.createElement(De,{...t,dropIndicatorProps:l,isDropTarget:a,ref:e})}function he(t,e){let{dropIndicatorProps:d,isDropTarget:o,...l}=t,i=g.$64fa3d84918910a7$export$4d86445c2cf5e3({...l,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:o}});return r.createElement("div",{...d,...i,role:"option",ref:e,"data-drop-target":o||void 0})}const De=r.forwardRef(he),Pe=x.$e1995378a142960e$export$18af5c7a9e9b3664(x.$23b9f4fcf0fe224b$export$8258a0665a675899,function(e,d,o){let l=r.useContext(I),{isLoading:i,onLoadMore:a,scrollOffset:n,...c}=e,f=r.useRef(null),s=r.useMemo(()=>({onLoadMore:a,collection:l==null?void 0:l.collection,sentinelRef:f,scrollOffset:n}),[a,n,l==null?void 0:l.collection]);k.$a5fa973c1850dd36$export$ccaea96c28e8b9e7(s,f);let b=g.$64fa3d84918910a7$export$4d86445c2cf5e3({...c,id:void 0,children:o.rendered,defaultClassName:"react-aria-ListBoxLoadingIndicator",values:null}),u={tabIndex:-1};return r.createElement(r.Fragment,null,r.createElement("div",{style:{position:"relative",width:0,height:0},inert:te.$cdc5a6778b766db2$export$a9d04c5684123369(!0)},r.createElement("div",{"data-testid":"loadMoreSentinel",ref:f,style:{position:"absolute",height:1,width:1}})),i&&b.children&&r.createElement("div",{...v.$3ef42575df84b30b$export$9d1611c77c2fe928(V.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0}),u),...b,role:"option",ref:d},b.children))});exports.$b1f0cad8af73213b$export$3585ede4d035bf14=U;exports.$b1f0cad8af73213b$export$9145995848b05025=Q;exports.$eed445e0843c11d0$export$41f133550aa26f48=be;exports.$eed445e0843c11d0$export$7c5906fe4f1f2af2=I;exports.$eed445e0843c11d0$export$7ff8f37d2d81a48d=W;exports.$eed445e0843c11d0$export$8e6d031a08cf56a1=Pe;exports.$eed445e0843c11d0$export$a11e76429ed99b4=ve;exports.$eed445e0843c11d0$export$dca12b0bb56e4fc=ge;
|
|
1
|
+
"use strict";const x=require("./Collection-DaZzboRu.cjs"),g=require("./utils-cBvgilDa.cjs"),k=require("./DragAndDrop-DQ_6tl6K.cjs"),N=require("./Separator-BQkxEZC9.cjs"),K=require("./ListKeyboardDelegate-DJDPir-w.cjs"),oe=require("./Text-CkhG15SU.cjs"),v=require("./mergeProps-Du5A8xi8.cjs"),V=require("./filterDOMProps-RRlKPKX0.cjs"),te=require("./inertValue-BWmZ1afe.cjs"),r=require("react"),re=require("./usePress-Dj3t18Pf.cjs"),L=require("./useHover-eU40luVI.cjs"),ae=require("./SelectionManager-FYrDfe5v.cjs"),de=require("./useFocusWithin-TryC2Kkw.cjs"),le=require("./Button-BTX5G3le.cjs"),J=require("./useListState-BdC308Sq.cjs"),ie=require("./context-UOrD6Zxk.cjs"),ne=require("./useFocusRing-Cig5Y0l-.cjs"),ce=require("./FocusScope-Dv0F-mG2.cjs"),U=new WeakMap;function se(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}function Q(t,e){let d=U.get(t);if(!d)throw new Error("Unknown list");return`${d.id}-option-${se(e)}`}function ue(t,e,d){let o=V.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{labelable:!0}),l=t.selectionBehavior||"toggle",i=t.linkBehavior||(l==="replace"?"action":"override");l==="toggle"&&i==="action"&&(i="override");let{listProps:a}=N.$982254629710d113$export$b95089534ab7c1fd({...t,ref:d,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,linkBehavior:i}),{focusWithinProps:n}=de.$9ab94262bd0047c7$export$420e68273165f4ec({onFocusWithin:t.onFocus,onBlurWithin:t.onBlur,onFocusWithinChange:t.onFocusChange}),c=v.$bdb11010cef70236$export$f680877a34711e37(t.id);U.set(e,{id:c,shouldUseVirtualFocus:t.shouldUseVirtualFocus,shouldSelectOnPressUp:t.shouldSelectOnPressUp,shouldFocusOnHover:t.shouldFocusOnHover,isVirtualized:t.isVirtualized,onAction:t.onAction,linkBehavior:i});let{labelProps:$,fieldProps:s}=le.$d191a55c9702f145$export$8467354a121f1b9f({...t,id:c,labelElementType:"span"});return{labelProps:$,listBoxProps:v.$3ef42575df84b30b$export$9d1611c77c2fe928(o,n,e.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...v.$3ef42575df84b30b$export$9d1611c77c2fe928(s,a)})}}function $e(t,e,d){var o,l;let{key:i}=t,a=U.get(e);var n;let c=(n=t.isDisabled)!==null&&n!==void 0?n:e.selectionManager.isDisabled(i);var $;let s=($=t.isSelected)!==null&&$!==void 0?$:e.selectionManager.isSelected(i);var b;let u=(b=t.shouldSelectOnPressUp)!==null&&b!==void 0?b:a==null?void 0:a.shouldSelectOnPressUp;var P;let h=(P=t.shouldFocusOnHover)!==null&&P!==void 0?P:a==null?void 0:a.shouldFocusOnHover;var D;let p=(D=t.shouldUseVirtualFocus)!==null&&D!==void 0?D:a==null?void 0:a.shouldUseVirtualFocus;var y;let F=(y=t.isVirtualized)!==null&&y!==void 0?y:a==null?void 0:a.isVirtualized,C=v.$bdb11010cef70236$export$b4cc09c592e8fdb8(),S=v.$bdb11010cef70236$export$b4cc09c592e8fdb8(),M={role:"option","aria-disabled":c||void 0,"aria-selected":e.selectionManager.selectionMode!=="none"?s:void 0};L.$c87311424ea30a05$export$9ac100e40613ea10()&&L.$c87311424ea30a05$export$78551043582a6a98()||(M["aria-label"]=t["aria-label"],M["aria-labelledby"]=C,M["aria-describedby"]=S);let f=e.collection.getItem(i);if(F){let m=Number(f==null?void 0:f.index);M["aria-posinset"]=Number.isNaN(m)?void 0:m+1,M["aria-setsize"]=N.$453cc9f0df89c0a5$export$77d5aafae4e095b2(e.collection)}let A=a!=null&&a.onAction?()=>{var m;return a==null||(m=a.onAction)===null||m===void 0?void 0:m.call(a,i)}:void 0,w=Q(e,i),{itemProps:E,isPressed:B,isFocused:H,hasAction:T,allowsSelection:_}=ae.$880e95eb8b93ba9a$export$ecf600387e221c37({selectionManager:e.selectionManager,key:i,ref:d,shouldSelectOnPressUp:u,allowsDifferentPressOrigin:u&&h,isVirtualized:F,shouldUseVirtualFocus:p,isDisabled:c,onAction:A||!(f==null||(o=f.props)===null||o===void 0)&&o.onAction?v.$ff5963eb1fccf552$export$e08e3b67e392101e(f==null||(l=f.props)===null||l===void 0?void 0:l.onAction,A):void 0,linkBehavior:a==null?void 0:a.linkBehavior,id:w}),{hoverProps:z}=L.$6179b936705e76d3$export$ae780daf29e6d456({isDisabled:c||!h,onHoverStart(){L.$507fabe10e71c6fb$export$b9b3dfddab17db27()||(e.selectionManager.setFocused(!0),e.selectionManager.setFocusedKey(i))}}),O=V.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(f==null?void 0:f.props);delete O.id;let q=re.$ea8dcbcb9ea1b556$export$7e924b3091a3bd18(f==null?void 0:f.props);return{optionProps:{...M,...v.$3ef42575df84b30b$export$9d1611c77c2fe928(O,E,z,q),id:w},labelProps:{id:C},descriptionProps:{id:S},isFocused:H,isFocusVisible:H&&e.selectionManager.isFocused&&L.$507fabe10e71c6fb$export$b9b3dfddab17db27(),isSelected:s,isDisabled:c,isPressed:B,allowsSelection:_,hasAction:T}}function fe(t){let{heading:e,"aria-label":d}=t,o=v.$bdb11010cef70236$export$f680877a34711e37();return{itemProps:{role:"presentation"},headingProps:e?{id:o,role:"presentation"}:{},groupProps:{role:"group","aria-label":d,"aria-labelledby":e?o:void 0}}}const W=r.createContext(null),I=r.createContext(null),be=r.forwardRef(function(e,d){[e,d]=g.$64fa3d84918910a7$export$29f1550f4b0d4415(e,d,W);let o=r.useContext(I);return o?r.createElement(X,{state:o,props:e,listBoxRef:d}):r.createElement(x.$e1995378a142960e$export$bf788dd355e3a401,{content:r.createElement(x.$e1995378a142960e$export$fb8073518f34e6ec,e)},l=>r.createElement(pe,{props:e,listBoxRef:d,collection:l}))});function pe({props:t,listBoxRef:e,collection:d}){t={...t,collection:d,children:null,items:null};let{layoutDelegate:o}=r.useContext(x.$7135fc7d473fd974$export$4feb769f8ddf26c5),l=J.$e72dd72e1c76a225$export$2f645645f7bca764({...t,layoutDelegate:o});return r.createElement(X,{state:l,props:t,listBoxRef:e})}function X({state:t,props:e,listBoxRef:d}){[e,d]=g.$64fa3d84918910a7$export$29f1550f4b0d4415(e,d,K.$8e6cc465cc68f603$export$b0d3ecf7112093a7);let{dragAndDropHooks:o,layout:l="stack",orientation:i="vertical",filter:a}=e,n=J.$e72dd72e1c76a225$export$ba9d38c0f1bf2b36(t,a),{collection:c,selectionManager:$}=n,s=!!(o!=null&&o.useDraggableCollectionState),b=!!(o!=null&&o.useDroppableCollectionState),{direction:u}=ie.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{disabledBehavior:P,disabledKeys:h}=$,D=K.$325a3faab7a68acd$export$a16aca283550c30d({usage:"search",sensitivity:"base"}),{isVirtualized:p,layoutDelegate:y,dropTargetDelegate:F,CollectionRoot:C}=r.useContext(x.$7135fc7d473fd974$export$4feb769f8ddf26c5),S=r.useMemo(()=>e.keyboardDelegate||new K.$2a25aae57d74318e$export$a05409b8bb224a5a({collection:c,collator:D,ref:d,disabledKeys:h,disabledBehavior:P,layout:l,orientation:i,direction:u,layoutDelegate:y}),[c,D,d,P,h,i,u,e.keyboardDelegate,l,y]),{listBoxProps:M}=ue({...e,shouldSelectOnPressUp:s||e.shouldSelectOnPressUp,keyboardDelegate:S,isVirtualized:p},n,d),f=r.useRef(s),A=r.useRef(b);r.useEffect(()=>{process.env.NODE_ENV!=="production"&&(f.current!==s&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),A.current!==b&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."))},[s,b]);let w,E,B,H=!1,T=null,_=r.useRef(null);if(s&&o){w=o.useDraggableCollectionState({collection:c,selectionManager:$,preview:o.renderDragPreview?_:void 0}),o.useDraggableCollection({},w,d);let R=o.DragPreview;T=o.renderDragPreview?r.createElement(R,{ref:_},o.renderDragPreview):null}if(b&&o){E=o.useDroppableCollectionState({collection:c,selectionManager:$});let R=o.dropTargetDelegate||F||new o.ListDropTargetDelegate(c,d,{orientation:i,layout:l,direction:u});B=o.useDroppableCollection({keyboardDelegate:S,dropTargetDelegate:R},E,d),H=E.isDropTarget({type:"root"})}let{focusProps:z,isFocused:O,isFocusVisible:q}=ne.$f7dceffc5ad7768b$export$4e328f61c538687f(),m=n.collection.size===0,j={isDropTarget:H,isEmpty:m,isFocused:O,isFocusVisible:q,layout:e.layout||"stack",state:n},Z=g.$64fa3d84918910a7$export$4d86445c2cf5e3({className:e.className,style:e.style,defaultClassName:"react-aria-ListBox",values:j}),G=null;m&&e.renderEmptyState&&(G=r.createElement("div",{role:"option",style:{display:"contents"}},e.renderEmptyState(j)));let ee=V.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});return r.createElement(ce.$9bf71ea28793e738$export$20e40289641fbbb6,null,r.createElement("div",{...v.$3ef42575df84b30b$export$9d1611c77c2fe928(ee,Z,M,z,B==null?void 0:B.collectionProps),ref:d,slot:e.slot||void 0,onScroll:e.onScroll,"data-drop-target":H||void 0,"data-empty":m||void 0,"data-focused":O||void 0,"data-focus-visible":q||void 0,"data-layout":e.layout||"stack","data-orientation":e.orientation||"vertical"},r.createElement(g.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[W,e],[I,n],[k.$612b8eb6cb90e02d$export$d188a835a7bc5783,{dragAndDropHooks:o,dragState:w,dropState:E}],[N.$431f98aba6844401$export$6615d83f6de245ce,{elementType:"div"}],[k.$612b8eb6cb90e02d$export$f55761759794cf55,{render:xe}],[x.$7135fc7d473fd974$export$d40e14dec8b060a8,{name:"ListBoxSection",render:Y}]]},r.createElement(C,{collection:c,scrollRef:d,persistedKeys:k.$612b8eb6cb90e02d$export$d1e8e3fbb7461f6($,o,E),renderDropIndicator:k.$612b8eb6cb90e02d$export$971707d8a129a1f7(o,E)})),G,T))}function Y(t,e,d,o="react-aria-ListBoxSection"){let l=r.useContext(I),{dragAndDropHooks:i,dropState:a}=r.useContext(k.$612b8eb6cb90e02d$export$d188a835a7bc5783),{CollectionBranch:n}=r.useContext(x.$7135fc7d473fd974$export$4feb769f8ddf26c5),[c,$]=g.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8();var s;let{headingProps:b,groupProps:u}=fe({heading:$,"aria-label":(s=t["aria-label"])!==null&&s!==void 0?s:void 0}),P=g.$64fa3d84918910a7$export$4d86445c2cf5e3({defaultClassName:o,className:t.className,style:t.style,values:{}}),h=V.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{global:!0});return delete h.id,r.createElement("section",{...v.$3ef42575df84b30b$export$9d1611c77c2fe928(h,P,u),ref:e},r.createElement(N.$72a5793c14baf454$export$e0e4026c12a8bdbb.Provider,{value:{...b,ref:c}},r.createElement(n,{collection:l.collection,parent:d,renderDropIndicator:k.$612b8eb6cb90e02d$export$971707d8a129a1f7(i,a)})))}const ge=x.$e1995378a142960e$export$e953bb1cd0f19726(x.$23b9f4fcf0fe224b$export$437f11dc9b403b78,Y),ve=x.$e1995378a142960e$export$18af5c7a9e9b3664(x.$23b9f4fcf0fe224b$export$fd11f34e1d07f134,function(e,d,o){let l=g.$df56164dff5785e2$export$4338b53315abf666(d),i=r.useContext(I),{dragAndDropHooks:a,dragState:n,dropState:c}=r.useContext(k.$612b8eb6cb90e02d$export$d188a835a7bc5783),{optionProps:$,labelProps:s,descriptionProps:b,...u}=$e({key:o.key,"aria-label":e==null?void 0:e["aria-label"]},i,l),{hoverProps:P,isHovered:h}=L.$6179b936705e76d3$export$ae780daf29e6d456({isDisabled:!u.allowsSelection&&!u.hasAction,onHoverStart:o.props.onHoverStart,onHoverChange:o.props.onHoverChange,onHoverEnd:o.props.onHoverEnd}),D=null;n&&a&&(D=a.useDraggableItem({key:o.key},n));let p=null;c&&a&&(p=a.useDroppableItem({target:{type:"item",key:o.key,dropPosition:"on"}},c,l));let y=n&&n.isDragging(o.key),F=g.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...u,isHovered:h,selectionMode:i.selectionManager.selectionMode,selectionBehavior:i.selectionManager.selectionBehavior,allowsDragging:!!n,isDragging:y,isDropTarget:p==null?void 0:p.isDropTarget}});r.useEffect(()=>{!o.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.")},[o.textValue]);let C=e.href?"a":"div",S=V.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});return delete S.id,delete S.onClick,r.createElement(C,{...v.$3ef42575df84b30b$export$9d1611c77c2fe928(S,F,$,P,D==null?void 0:D.dragProps,p==null?void 0:p.dropProps),ref:l,"data-allows-dragging":!!n||void 0,"data-selected":u.isSelected||void 0,"data-disabled":u.isDisabled||void 0,"data-hovered":h||void 0,"data-focused":u.isFocused||void 0,"data-focus-visible":u.isFocusVisible||void 0,"data-pressed":u.isPressed||void 0,"data-dragging":y||void 0,"data-drop-target":(p==null?void 0:p.isDropTarget)||void 0,"data-selection-mode":i.selectionManager.selectionMode==="none"?void 0:i.selectionManager.selectionMode},r.createElement(g.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[oe.$514c0188e459b4c0$export$9afb8bc826b033ea,{slots:{[g.$64fa3d84918910a7$export$c62b8e45d58ddad9]:s,label:s,description:b}}]]},F.children))});function xe(t,e){e=g.$df56164dff5785e2$export$4338b53315abf666(e);let{dragAndDropHooks:d,dropState:o}=r.useContext(k.$612b8eb6cb90e02d$export$d188a835a7bc5783),{dropIndicatorProps:l,isHidden:i,isDropTarget:a}=d.useDropIndicator(t,o,e);return i?null:r.createElement(De,{...t,dropIndicatorProps:l,isDropTarget:a,ref:e})}function he(t,e){let{dropIndicatorProps:d,isDropTarget:o,...l}=t,i=g.$64fa3d84918910a7$export$4d86445c2cf5e3({...l,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:o}});return r.createElement("div",{...d,...i,role:"option",ref:e,"data-drop-target":o||void 0})}const De=r.forwardRef(he),Pe=x.$e1995378a142960e$export$18af5c7a9e9b3664(x.$23b9f4fcf0fe224b$export$8258a0665a675899,function(e,d,o){let l=r.useContext(I),{isLoading:i,onLoadMore:a,scrollOffset:n,...c}=e,$=r.useRef(null),s=r.useMemo(()=>({onLoadMore:a,collection:l==null?void 0:l.collection,sentinelRef:$,scrollOffset:n}),[a,n,l==null?void 0:l.collection]);k.$a5fa973c1850dd36$export$ccaea96c28e8b9e7(s,$);let b=g.$64fa3d84918910a7$export$4d86445c2cf5e3({...c,id:void 0,children:o.rendered,defaultClassName:"react-aria-ListBoxLoadingIndicator",values:null}),u={tabIndex:-1};return r.createElement(r.Fragment,null,r.createElement("div",{style:{position:"relative",width:0,height:0},inert:te.$cdc5a6778b766db2$export$a9d04c5684123369(!0)},r.createElement("div",{"data-testid":"loadMoreSentinel",ref:$,style:{position:"absolute",height:1,width:1}})),i&&b.children&&r.createElement("div",{...v.$3ef42575df84b30b$export$9d1611c77c2fe928(V.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0}),u),...b,role:"option",ref:d},b.children))});exports.$b1f0cad8af73213b$export$3585ede4d035bf14=U;exports.$b1f0cad8af73213b$export$9145995848b05025=Q;exports.$eed445e0843c11d0$export$41f133550aa26f48=be;exports.$eed445e0843c11d0$export$7c5906fe4f1f2af2=I;exports.$eed445e0843c11d0$export$7ff8f37d2d81a48d=W;exports.$eed445e0843c11d0$export$8e6d031a08cf56a1=Pe;exports.$eed445e0843c11d0$export$a11e76429ed99b4=ve;exports.$eed445e0843c11d0$export$dca12b0bb56e4fc=ge;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),r=require("./clsx-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),r=require("./clsx-DKOfLqne.cjs"),n=require("./ListBoxSection-kujY2gUl.cjs"),c=require("./ListBox-Bx9M5vqb.cjs"),l=require("./Spinner-DKQ9_SQB.cjs"),d=require("./useLocalizedStringFormatter-BSac43NO.cjs"),x=({className:s,children:e,...o})=>t.jsx("button",{type:"button",className:r.clsx(n.styles.listBoxItem,n.styles.listBoxButton,s),...o,children:e}),u={"loading...":"Loading..."},m={"loading...":"Laddar..."},L={en:u,sv:m},B=({className:s,children:e,isLoading:o,...i})=>{const a=d.useLocalizedStringFormatter(L);return t.jsx(c.$eed445e0843c11d0$export$8e6d031a08cf56a1,{className:r.clsx(n.styles.listBoxLoadMoreItem,s),isLoading:o,...i,children:e||t.jsxs(t.Fragment,{children:[t.jsx(l.Spinner,{small:!0}),t.jsx("span",{"aria-hidden":!0,children:a.format("loading...")})]})})};exports.ListBoxButton=x;exports.ListBoxLoadMoreItem=B;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as t, jsxs as m, Fragment as d } from "react/jsx-runtime";
|
|
2
|
-
import { c as e } from "./clsx-
|
|
3
|
-
import { s as a } from "./ListBoxSection-
|
|
4
|
-
import { $ as c } from "./ListBox-
|
|
5
|
-
import { S as l } from "./Spinner-
|
|
6
|
-
import { u as p } from "./useLocalizedStringFormatter-
|
|
2
|
+
import { c as e } from "./clsx-jbLnTBqA.js";
|
|
3
|
+
import { s as a } from "./ListBoxSection-dksiACMZ.js";
|
|
4
|
+
import { $ as c } from "./ListBox-2eEa1l0M.js";
|
|
5
|
+
import { S as l } from "./Spinner-CTha503N.js";
|
|
6
|
+
import { u as p } from "./useLocalizedStringFormatter-aOhh7wdl.js";
|
|
7
7
|
const S = ({ className: o, children: s, ...r }) => /* @__PURE__ */ t(
|
|
8
8
|
"button",
|
|
9
9
|
{
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as k, jsxs as ne } from "react/jsx-runtime";
|
|
2
|
-
import { a as se, b as re, c as ae } from "./ListBox-
|
|
3
|
-
import { g as he, m as de } from "./Collection-
|
|
4
|
-
import w, { useState as $, useRef as C, useMemo as L, useCallback as z, useEffect as ce, createContext as
|
|
5
|
-
import { $ as V, d as ue } from "./mergeProps-
|
|
6
|
-
import { $ as U } from "./context-
|
|
2
|
+
import { a as se, b as re, c as ae } from "./ListBox-2eEa1l0M.js";
|
|
3
|
+
import { g as he, m as de } from "./Collection-j_iWeuZo.js";
|
|
4
|
+
import w, { useState as $, useRef as C, useMemo as L, useCallback as z, useEffect as ce, createContext as F, useContext as j } from "react";
|
|
5
|
+
import { $ as V, d as ue } from "./mergeProps-Ct8m5-xW.js";
|
|
6
|
+
import { $ as U } from "./context-Dl_saGB6.js";
|
|
7
7
|
import { flushSync as B } from "react-dom";
|
|
8
|
-
import { g as fe } from "./OverlayArrow-
|
|
9
|
-
import { $ as W } from "./useEvent-
|
|
10
|
-
import { c as K } from "./clsx-
|
|
11
|
-
import { f as D } from "./SelectionManager-
|
|
12
|
-
import { b as ge } from "./Dialog-
|
|
13
|
-
import { e as ye } from "./Separator-
|
|
8
|
+
import { g as fe } from "./OverlayArrow-Bh_G2tJ3.js";
|
|
9
|
+
import { $ as W } from "./useEvent-smuTnX4G.js";
|
|
10
|
+
import { c as K } from "./clsx-jbLnTBqA.js";
|
|
11
|
+
import { f as D } from "./SelectionManager-D-4ThfPZ.js";
|
|
12
|
+
import { b as ge } from "./Dialog-DOyFzvUa.js";
|
|
13
|
+
import { e as ye } from "./Separator-COlhRmJF.js";
|
|
14
14
|
import './assets/ListBoxSection.css';class ve {
|
|
15
15
|
/**
|
|
16
16
|
* Returns whether the layout should invalidate in response to
|
|
@@ -871,9 +871,9 @@ function J(n) {
|
|
|
871
871
|
}
|
|
872
872
|
}, s);
|
|
873
873
|
}
|
|
874
|
-
let
|
|
874
|
+
let X = /* @__PURE__ */ new WeakMap();
|
|
875
875
|
function ke(n, e, t) {
|
|
876
|
-
let i = e === "rtl" ? "right" : "left", l =
|
|
876
|
+
let i = e === "rtl" ? "right" : "left", l = X.get(n);
|
|
877
877
|
if (l && l[i] != null) {
|
|
878
878
|
if (!t) return l;
|
|
879
879
|
let h = n.rect.y - t.rect.y, r = n.rect.x - t.rect.x;
|
|
@@ -904,9 +904,9 @@ function ke(n, e, t) {
|
|
|
904
904
|
contain: "size layout style",
|
|
905
905
|
...o
|
|
906
906
|
};
|
|
907
|
-
return
|
|
907
|
+
return X.set(n, a), a;
|
|
908
908
|
}
|
|
909
|
-
const Q = /* @__PURE__ */
|
|
909
|
+
const Q = /* @__PURE__ */ F(null), Z = /* @__PURE__ */ F(null);
|
|
910
910
|
function Le(n) {
|
|
911
911
|
let { children: e, layout: t, layoutOptions: i } = n, l = L(() => typeof t == "function" ? new t() : t, [
|
|
912
912
|
t
|
|
@@ -930,7 +930,7 @@ function Le(n) {
|
|
|
930
930
|
}
|
|
931
931
|
function Ne({ collection: n, persistedKeys: e, scrollRef: t, renderDropIndicator: i }) {
|
|
932
932
|
var l;
|
|
933
|
-
let { layout: o, layoutOptions: s } =
|
|
933
|
+
let { layout: o, layoutOptions: s } = j(Z), a = (l = o.useLayoutOptions) === null || l === void 0 ? void 0 : l.call(o), h = Re({
|
|
934
934
|
layout: o,
|
|
935
935
|
collection: n,
|
|
936
936
|
renderView: (d, c) => {
|
|
@@ -960,7 +960,7 @@ function Ne({ collection: n, persistedKeys: e, scrollRef: t, renderDropIndicator
|
|
|
960
960
|
}, ee(null, h.visibleViews, i)));
|
|
961
961
|
}
|
|
962
962
|
function Te({ parent: n, renderDropIndicator: e }) {
|
|
963
|
-
let i =
|
|
963
|
+
let i = j(Q).virtualizer.getVisibleView(n.key);
|
|
964
964
|
return ee(i, Array.from(i.children), e);
|
|
965
965
|
}
|
|
966
966
|
function ee(n, e, t) {
|
|
@@ -975,13 +975,13 @@ function Ee(n, e, t) {
|
|
|
975
975
|
}, e.rendered), { collection: l, layout: o } = e.virtualizer, s = e.content;
|
|
976
976
|
return (s == null ? void 0 : s.type) === "item" && t && o.getDropTargetLayoutInfo && (i = /* @__PURE__ */ w.createElement(w.Fragment, {
|
|
977
977
|
key: e.key
|
|
978
|
-
},
|
|
978
|
+
}, A(n, e, {
|
|
979
979
|
type: "item",
|
|
980
980
|
key: e.content.key,
|
|
981
981
|
dropPosition: "before"
|
|
982
|
-
}, t), i, de(l, s, (a) =>
|
|
982
|
+
}, t), i, de(l, s, (a) => A(n, e, a, t)))), i;
|
|
983
983
|
}
|
|
984
|
-
function
|
|
984
|
+
function A(n, e, t, i) {
|
|
985
985
|
let l = i(t);
|
|
986
986
|
if (l) {
|
|
987
987
|
let o = e.virtualizer.layout.getDropTargetLayoutInfo(t);
|
|
@@ -1018,7 +1018,7 @@ class Ve extends Se {
|
|
|
1018
1018
|
}), this.contentSize;
|
|
1019
1019
|
}
|
|
1020
1020
|
}
|
|
1021
|
-
const Me = "
|
|
1021
|
+
const Me = "_listBox_ts7z5_4", Oe = "_listBoxPopover_ts7z5_16", Pe = "_listBoxSectionHeading_ts7z5_31", Be = "_listBoxButton_ts7z5_41", Ke = "_listBoxItem_ts7z5_53", qe = "_listBoxLoadMoreItem_ts7z5_99", M = {
|
|
1022
1022
|
listBox: Me,
|
|
1023
1023
|
listBoxPopover: Oe,
|
|
1024
1024
|
listBoxSectionHeading: Pe,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('./assets/ListBoxSection.css');const S=require("react/jsx-runtime"),V=require("./ListBox-ICZKGluC.cjs"),D=require("./Collection-BvWp2xBd.cjs"),c=require("react"),C=require("./mergeProps-JhcJ7uJL.cjs"),W=require("./context-Df3XbgBG.cjs"),M=require("react-dom"),te=require("./OverlayArrow-ByH6lM-H.cjs"),B=require("./useEvent-3ZO5TPSH.cjs"),O=require("./clsx-C11secjj.cjs"),K=require("./SelectionManager-BtbHoHpA.cjs"),ie=require("./Dialog-DR6nEqMT.cjs"),le=require("./Separator-Dgin8BNW.cjs");class oe{shouldInvalidate(e,t){return e.width!==t.width||e.height!==t.height}shouldInvalidateLayoutOptions(e,t){return e!==t}update(e){}getItemRect(e){var t,i;return(i=(t=this.getLayoutInfo(e))===null||t===void 0?void 0:t.rect)!==null&&i!==void 0?i:null}getVisibleRect(){return this.virtualizer.visibleRect}constructor(){this.virtualizer=null}}class b{copy(){let e=new b(this.type,this.key,this.rect.copy());return e.estimatedSize=this.estimatedSize,e.opacity=this.opacity,e.transform=this.transform,e.parentKey=this.parentKey,e.content=this.content,e.isSticky=this.isSticky,e.zIndex=this.zIndex,e.allowOverflow=this.allowOverflow,e}constructor(e,t,i){this.type=e,this.key=t,this.parentKey=null,this.content=null,this.rect=i,this.estimatedSize=!1,this.isSticky=!1,this.opacity=1,this.transform=null,this.zIndex=0,this.allowOverflow=!1}}class x{copy(){return new x(this.x,this.y)}equals(e){return this.x===e.x&&this.y===e.y}isOrigin(){return this.x===0&&this.y===0}constructor(e=0,t=0){this.x=e,this.y=t}}class g{get maxX(){return this.x+this.width}get maxY(){return this.y+this.height}get area(){return this.width*this.height}get topLeft(){return new x(this.x,this.y)}get topRight(){return new x(this.maxX,this.y)}get bottomLeft(){return new x(this.x,this.maxY)}get bottomRight(){return new x(this.maxX,this.maxY)}intersects(e){return(process.env.NODE_ENV==="test"&&!process.env.VIRT_ON||this.area>0&&e.area>0)&&this.x<=e.x+e.width&&e.x<=this.x+this.width&&this.y<=e.y+e.height&&e.y<=this.y+this.height}containsRect(e){return this.x<=e.x&&this.y<=e.y&&this.maxX>=e.maxX&&this.maxY>=e.maxY}containsPoint(e){return this.x<=e.x&&this.y<=e.y&&this.maxX>=e.x&&this.maxY>=e.y}getCornerInRect(e){for(let t of["topLeft","topRight","bottomLeft","bottomRight"])if(e.containsPoint(this[t]))return t;return null}equals(e){return e.x===this.x&&e.y===this.y&&e.width===this.width&&e.height===this.height}pointEquals(e){return this.x===e.x&&this.y===e.y}sizeEquals(e){return this.width===e.width&&this.height===e.height}union(e){let t=Math.min(this.x,e.x),i=Math.min(this.y,e.y),l=Math.max(this.maxX,e.maxX)-t,o=Math.max(this.maxY,e.maxY)-i;return new g(t,i,l,o)}intersection(e){if(!this.intersects(e))return new g(0,0,0,0);let t=Math.max(this.x,e.x),i=Math.max(this.y,e.y);return new g(t,i,Math.min(this.maxX,e.maxX)-t,Math.min(this.maxY,e.maxY)-i)}copy(){return new g(this.x,this.y,this.width,this.height)}constructor(e=0,t=0,i=0,l=0){this.x=e,this.y=t,this.width=i,this.height=l}}class z{copy(){return new z(this.width,this.height)}equals(e){return this.width===e.width&&this.height===e.height}get area(){return this.width*this.height}constructor(e=0,t=0){this.width=Math.max(e,0),this.height=Math.max(t,0)}}let ne=0;class X{prepareForReuse(){this.content=null,this.rendered=null,this.layoutInfo=null}getReusableView(e){let t=this.reusableViews.get(e);return t&&t.length>0?t.shift():new re(this.virtualizer,this,e)}reuseChild(e){e.prepareForReuse();let t=this.reusableViews.get(e.viewType);t||(t=[],this.reusableViews.set(e.viewType,t)),t.push(e)}constructor(e,t){this.virtualizer=e,this.key=++ne,this.viewType=t,this.children=new Set,this.reusableViews=new Map,this.layoutInfo=null,this.content=null,this.rendered=null}}class se extends X{constructor(e){super(e,"root")}}class re extends X{constructor(e,t,i){super(e,i),this.parent=t}}function ae(n,e){if(n===e)return!0;if(n.size!==e.size)return!1;for(let t of n)if(!e.has(t))return!1;return!0}class he{setVisibleRect(e){let t=performance.now()-this.startTime;t<500&&(e.x!==this.visibleRect.x&&t>0&&(this.velocity.x=(e.x-this.visibleRect.x)/t),e.y!==this.visibleRect.y&&t>0&&(this.velocity.y=(e.y-this.visibleRect.y)/t)),this.startTime=performance.now(),this.visibleRect=e}getOverscannedRect(){let e=this.visibleRect.copy(),t=this.visibleRect.height/3;if(e.height+=t,this.velocity.y<0&&(e.y-=t),this.velocity.x!==0){let i=this.visibleRect.width/3;e.width+=i,this.velocity.x<0&&(e.x-=i)}return e}constructor(){this.startTime=0,this.velocity=new x(0,0),this.visibleRect=new g}}class de{isPersistedKey(e){if(this.persistedKeys.has(e))return!0;for(let t of this.persistedKeys)for(;t!=null;){let i=this.layout.getLayoutInfo(t);if(!i||i.parentKey==null)break;if(t=i.parentKey,t===e)return!0}return!1}getParentView(e){return e.parentKey!=null?this._visibleViews.get(e.parentKey):this._rootView}getReusableView(e){let i=this.getParentView(e).getReusableView(e.type);return i.layoutInfo=e,this._renderView(i),i}_renderView(e){if(e.layoutInfo){let{type:t,key:i,content:l}=e.layoutInfo;e.content=l||this.collection.getItem(i),e.rendered=this._renderContent(t,e.content)}}_renderContent(e,t){let i=t!=null?this._renderedContent.get(t):null;if(i!=null)return i;let l=this.delegate.renderView(e,t);return t&&this._renderedContent.set(t,l),l}keyAtPoint(e){let t=new g(e.x,e.y,1,1),i=t.area===0?[]:this.layout.getVisibleLayoutInfos(t);for(let l of i)if(l.rect.intersects(t))return l.key;return null}relayout(e={}){this.layout.update(e),this.contentSize=this.layout.getContentSize();let t=this.visibleRect,i=e.contentChanged?0:t.x,l=e.contentChanged?0:t.y;if(i=Math.max(0,Math.min(this.contentSize.width-t.width,i)),l=Math.max(0,Math.min(this.contentSize.height-t.height,l)),i!==t.x||l!==t.y){let o=new g(i,l,t.width,t.height);this.delegate.setVisibleRect(o)}else this.updateSubviews()}getVisibleLayoutInfos(){let e=process.env.NODE_ENV==="test"&&!process.env.VIRT_ON,t=e&&typeof HTMLElement<"u"&&Object.getOwnPropertyNames(HTMLElement.prototype).includes("clientWidth"),i=e&&typeof HTMLElement<"u"&&Object.getOwnPropertyNames(HTMLElement.prototype).includes("clientHeight"),l;e&&!(t&&i)?l=new g(0,0,this.contentSize.width,this.contentSize.height):l=this._overscanManager.getOverscannedRect();let o=this.layout.getVisibleLayoutInfos(l),s=new Map;for(let a of o)s.set(a.key,a);return s}updateSubviews(){let e=this.getVisibleLayoutInfos(),t=new Set;for(let[i,l]of this._visibleViews){let o=e.get(i);(!o||l.parent!==this.getParentView(o))&&(this._visibleViews.delete(i),l.parent.reuseChild(l),t.add(l))}for(let[i,l]of e){let o=this._visibleViews.get(i);if(!o)o=this.getReusableView(l),o.parent.children.add(o),this._visibleViews.set(i,o),t.delete(o);else{o.layoutInfo=l;let s=this.collection.getItem(l.key);o.content!==s&&(o.content!=null&&this._renderedContent.delete(o.content),this._renderView(o))}}for(let i of t)i.parent.children.delete(i),i.parent.reusableViews.clear();if(!this._isScrolling)for(let i of e.keys()){let l=this._visibleViews.get(i);l.parent.children.delete(l),l.parent.children.add(l)}}render(e){let t=this,i=!1,l=!1,o=!1,s=!1,a=!1,h=!1;return e.collection!==this.collection&&(t.collection=e.collection,i=!0),(e.layout!==this.layout||this.layout.virtualizer!==this)&&(this.layout&&(this.layout.virtualizer=null),e.layout.virtualizer=this,t.layout=e.layout,i=!0),e.persistedKeys&&!ae(e.persistedKeys,this.persistedKeys)&&(t.persistedKeys=e.persistedKeys,h=!0),this.visibleRect.equals(e.visibleRect)||(this._overscanManager.setVisibleRect(e.visibleRect),this.layout.shouldInvalidate(e.visibleRect,this.visibleRect)?(l=!e.visibleRect.pointEquals(this.visibleRect),o=!e.visibleRect.sizeEquals(this.visibleRect),i=!0):h=!0,t.visibleRect=e.visibleRect),e.invalidationContext!==this._invalidationContext&&(e.invalidationContext&&(o||(o=e.invalidationContext.sizeChanged||!1),l||(l=e.invalidationContext.offsetChanged||!1),s||(s=e.invalidationContext.itemSizeChanged||!1),a||(a=e.invalidationContext.layoutOptions!=null&&this._invalidationContext.layoutOptions!=null&&e.invalidationContext.layoutOptions!==this._invalidationContext.layoutOptions&&this.layout.shouldInvalidateLayoutOptions(e.invalidationContext.layoutOptions,this._invalidationContext.layoutOptions)),i||(i=s||o||l||a)),this._invalidationContext=e.invalidationContext),e.isScrolling!==this._isScrolling&&(this._isScrolling=e.isScrolling,e.isScrolling||(h=!0)),i?this.relayout({offsetChanged:l,sizeChanged:o,itemSizeChanged:s,layoutOptionsChanged:a,layoutOptions:this._invalidationContext.layoutOptions}):h&&this.updateSubviews(),Array.from(this._rootView.children)}getVisibleView(e){return this._visibleViews.get(e)}invalidate(e){this.delegate.invalidate(e)}updateItemSize(e,t){if(!this.layout.updateItemSize)return;this.layout.updateItemSize(e,t)&&this.invalidate({itemSizeChanged:!0})}constructor(e){this.delegate=e.delegate,this.collection=e.collection,this.layout=e.layout,this.contentSize=new z,this.visibleRect=new g,this.persistedKeys=new Set,this._visibleViews=new Map,this._renderedContent=new WeakMap,this._rootView=new se(this),this._isScrolling=!1,this._invalidationContext={},this._overscanManager=new he}}function ce(n){let[e,t]=c.useState(new g(0,0,0,0)),[i,l]=c.useState(!1),[o,s]=c.useState({}),a=c.useRef(!1),[h]=c.useState(()=>new de({collection:n.collection,layout:n.layout,delegate:{setVisibleRect(p){t(p),a.current=!0},renderView:n.renderView,invalidate:s}}));C.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{a.current&&(a.current=!1,n.onVisibleRectChange(e))});let r=c.useMemo(()=>n.layoutOptions!=null?{...o,layoutOptions:n.layoutOptions}:o,[o,n.layoutOptions]),d=h.render({layout:n.layout,collection:n.collection,persistedKeys:n.persistedKeys,layoutOptions:n.layoutOptions,visibleRect:e,invalidationContext:r,isScrolling:i}),u=h.contentSize,f=c.useCallback(()=>{l(!0)},[]),y=c.useCallback(()=>{l(!1)},[]);return c.useMemo(()=>({virtualizer:h,visibleViews:d,setVisibleRect:t,contentSize:u,isScrolling:i,startScrolling:f,endScrolling:y}),[h,d,t,u,i,f,y])}const $=48;class ue extends oe{get collection(){return this.virtualizer.collection}getLayoutInfo(e){var t;return this.ensureLayoutInfo(e),((t=this.layoutNodes.get(e))===null||t===void 0?void 0:t.layoutInfo)||null}getVisibleLayoutInfos(e){if(e.height>1){var t,i;let s=((i=(t=this.rowHeight)!==null&&t!==void 0?t:this.estimatedRowHeight)!==null&&i!==void 0?i:$)+this.gap;e.y=Math.floor(e.y/s)*s,e.height=Math.ceil(e.height/s)*s}this.layoutIfNeeded(e);let l=[],o=s=>{for(let a of s)this.isVisible(a,e)&&(l.push(a.layoutInfo),a.children&&o(a.children))};return o(this.rootNodes),l}layoutIfNeeded(e){if(this.lastCollection){this.requestedRect.containsRect(e)||(this.requestedRect=this.requestedRect.union(e),this.rootNodes=this.buildCollection());for(let t of this.virtualizer.persistedKeys)if(this.ensureLayoutInfo(t))return}}ensureLayoutInfo(e){return!this.layoutNodes.has(e)&&this.requestedRect.area<this.contentSize.area&&this.lastCollection?(this.requestedRect=new g(0,0,1/0,1/0),this.rootNodes=this.buildCollection(),this.requestedRect=new g(0,0,this.contentSize.width,this.contentSize.height),!0):!1}isVisible(e,t){return e.layoutInfo.rect.intersects(t)||e.layoutInfo.isSticky||e.layoutInfo.type==="header"||e.layoutInfo.type==="loader"||this.virtualizer.isPersistedKey(e.layoutInfo.key)}shouldInvalidateEverything(e){let t=e.layoutOptions;var i,l,o,s,a;return e.sizeChanged||this.rowHeight!==((i=t==null?void 0:t.rowHeight)!==null&&i!==void 0?i:this.rowHeight)||this.headingHeight!==((l=t==null?void 0:t.headingHeight)!==null&&l!==void 0?l:this.headingHeight)||this.loaderHeight!==((o=t==null?void 0:t.loaderHeight)!==null&&o!==void 0?o:this.loaderHeight)||this.gap!==((s=t==null?void 0:t.gap)!==null&&s!==void 0?s:this.gap)||this.padding!==((a=t==null?void 0:t.padding)!==null&&a!==void 0?a:this.padding)}shouldInvalidateLayoutOptions(e,t){return e.rowHeight!==t.rowHeight||e.estimatedRowHeight!==t.estimatedRowHeight||e.headingHeight!==t.headingHeight||e.estimatedHeadingHeight!==t.estimatedHeadingHeight||e.loaderHeight!==t.loaderHeight||e.dropIndicatorThickness!==t.dropIndicatorThickness||e.gap!==t.gap||e.padding!==t.padding}update(e){let t=this.virtualizer.collection;this.invalidateEverything=this.shouldInvalidateEverything(e),this.invalidateEverything&&(this.requestedRect=this.virtualizer.visibleRect.copy(),this.layoutNodes.clear());let i=e.layoutOptions;var l;this.rowHeight=(l=i==null?void 0:i.rowHeight)!==null&&l!==void 0?l:this.rowHeight;var o;this.estimatedRowHeight=(o=i==null?void 0:i.estimatedRowHeight)!==null&&o!==void 0?o:this.estimatedRowHeight;var s;this.headingHeight=(s=i==null?void 0:i.headingHeight)!==null&&s!==void 0?s:this.headingHeight;var a;this.estimatedHeadingHeight=(a=i==null?void 0:i.estimatedHeadingHeight)!==null&&a!==void 0?a:this.estimatedHeadingHeight;var h;this.loaderHeight=(h=i==null?void 0:i.loaderHeight)!==null&&h!==void 0?h:this.loaderHeight;var r;this.dropIndicatorThickness=(r=i==null?void 0:i.dropIndicatorThickness)!==null&&r!==void 0?r:this.dropIndicatorThickness;var d;this.gap=(d=i==null?void 0:i.gap)!==null&&d!==void 0?d:this.gap;var u;if(this.padding=(u=i==null?void 0:i.padding)!==null&&u!==void 0?u:this.padding,this.rootNodes=this.buildCollection(),this.lastCollection&&t!==this.lastCollection)for(let f of this.lastCollection.getKeys())t.getItem(f)||this.layoutNodes.get(f)&&this.layoutNodes.delete(f);this.lastCollection=t,this.invalidateEverything=!1,this.validRect=this.requestedRect.copy()}buildCollection(e=this.padding){let t=this.virtualizer.collection,i=[...t],l=i.filter(r=>r.type==="loader"),o=[],s=(t==null?void 0:t.size)===0;s&&(e=0);for(let r of i){var a,h;let d=((h=(a=this.rowHeight)!==null&&a!==void 0?a:this.estimatedRowHeight)!==null&&h!==void 0?h:$)+this.gap;if(r.type==="item"&&e+d<this.requestedRect.y&&!this.isValid(r,e)){e+=d;continue}let u=this.buildChild(r,this.padding,e,null);if(e=u.layoutInfo.rect.maxY+this.gap,o.push(u),r.type==="loader"){let f=l.indexOf(r);l.splice(f,1)}if((r.type==="item"||r.type==="loader")&&e>this.requestedRect.maxY){let f=i.indexOf(r);for(let y of l){let v=i.indexOf(y);e+=(v-f-1)*d;let p=this.buildChild(y,this.padding,e,null);o.push(p),e=p.layoutInfo.rect.maxY,f=v}e+=(i.length-f-1)*d;break}}return e-=this.gap,e+=s?0:this.padding,this.contentSize=new z(this.virtualizer.visibleRect.width,e),o}isValid(e,t){let i=this.layoutNodes.get(e.key);return!this.invalidateEverything&&!!i&&i.node===e&&t===i.layoutInfo.rect.y&&i.layoutInfo.rect.intersects(this.validRect)&&i.validRect.containsRect(i.layoutInfo.rect.intersection(this.requestedRect))}buildChild(e,t,i,l){if(this.isValid(e,i))return this.layoutNodes.get(e.key);let o=this.buildNode(e,t,i);return o.layoutInfo.parentKey=l??null,o.layoutInfo.allowOverflow=!0,this.layoutNodes.set(e.key,o),o}buildNode(e,t,i){switch(e.type){case"section":return this.buildSection(e,t,i);case"item":return this.buildItem(e,t,i);case"header":return this.buildSectionHeader(e,t,i);case"loader":return this.buildLoader(e,t,i);case"separator":return this.buildItem(e,t,i);default:throw new Error("Unsupported node type: "+e.type)}}buildLoader(e,t,i){let l=new g(t,i,this.padding,0),o=new b("loader",e.key,l);l.width=this.virtualizer.contentSize.width-this.padding-t;var s,a,h;return l.height=e.props.isLoading?(h=(a=(s=this.loaderHeight)!==null&&s!==void 0?s:this.rowHeight)!==null&&a!==void 0?a:this.estimatedRowHeight)!==null&&h!==void 0?h:$:0,{layoutInfo:o,validRect:l.intersection(this.requestedRect)}}buildSection(e,t,i){let l=this.virtualizer.collection,o=this.virtualizer.visibleRect.width-this.padding,s=new g(t,i,o-t,0),a=new b(e.type,e.key,s),h=i,r=0,d=[];for(let y of K.$c5a24bc478652b5f$export$1005530eda016c13(e,l)){var u,f;let v=((f=(u=this.rowHeight)!==null&&u!==void 0?u:this.estimatedRowHeight)!==null&&f!==void 0?f:$)+this.gap;if(i+v<this.requestedRect.y&&!this.isValid(e,i)){i+=v,r++;continue}let p=this.buildChild(y,t,i,a.key);if(i=p.layoutInfo.rect.maxY+this.gap,d.push(p),i>this.requestedRect.maxY){i+=([...K.$c5a24bc478652b5f$export$1005530eda016c13(e,l)].length-(d.length+r))*v;break}}return i-=this.gap,s.height=i-h,{layoutInfo:a,children:d,validRect:a.rect.intersection(this.requestedRect),node:e}}buildSectionHeader(e,t,i){let l=this.virtualizer.visibleRect.width-this.padding,o=this.headingHeight,s=!1;if(o==null){let r=this.layoutNodes.get(e.key),d=r==null?void 0:r.layoutInfo;if(d){let u=this.virtualizer.collection.getItem(e.key),f=this.lastCollection?this.lastCollection.getItem(e.key):null;o=d.rect.height,s=l!==d.rect.width||u!==f||d.estimatedSize}else o=e.rendered?this.estimatedHeadingHeight:0,s=!0}o==null&&(o=$);let a=new g(t,i,l-t,o),h=new b("header",e.key,a);return h.estimatedSize=s,{layoutInfo:h,children:[],validRect:h.rect.intersection(this.requestedRect),node:e}}buildItem(e,t,i){let l=this.virtualizer.visibleRect.width-this.padding-t,o=this.rowHeight,s=!1;if(o==null){let r=this.layoutNodes.get(e.key);r?(o=r.layoutInfo.rect.height,s=l!==r.layoutInfo.rect.width||e!==r.node||r.layoutInfo.estimatedSize):(o=this.estimatedRowHeight,s=!0)}o==null&&(o=$);let a=new g(t,i,l,o),h=new b(e.type,e.key,a);return h.estimatedSize=s,{layoutInfo:h,children:[],validRect:h.rect,node:e}}updateItemSize(e,t){let i=this.layoutNodes.get(e);if(!i)return!1;let l=this.virtualizer.collection,o=i.layoutInfo;if(o.estimatedSize=!1,o.rect.height!==t.height){let s=o.copy();s.rect.height=t.height,i.layoutInfo=s,this.validRect.height=Math.min(this.validRect.height,o.rect.y-this.validRect.y),this.requestedRect.height+=s.rect.height-o.rect.height,this.updateLayoutNode(e,o,s);let a=o.parentKey!=null?l.getItem(o.parentKey):null;for(;a;)this.updateLayoutNode(a.key,o,s),a=a.parentKey!=null?l.getItem(a.parentKey):null;return!0}return!1}updateLayoutNode(e,t,i){let l=this.layoutNodes.get(e);l&&(l.validRect=l.validRect.intersection(this.validRect),l.layoutInfo===t&&(l.layoutInfo=i))}getContentSize(){return this.contentSize}getDropTargetFromPoint(e,t,i){e+=this.virtualizer.visibleRect.x,t+=this.virtualizer.visibleRect.y;let l=new g(e,Math.max(0,t-this.gap),1,Math.max(1,this.gap*2)),o=this.getVisibleLayoutInfos(l),s=null,a=1/0;for(let u of o){if(!u.rect.intersects(l))continue;let f=Math.abs(u.rect.y-t),y=Math.abs(u.rect.maxY-t),v=Math.min(f,y);v<a&&(a=v,s=u.key)}if(s==null||this.virtualizer.collection.size===0)return{type:"root"};let h=this.getLayoutInfo(s);if(!h)return null;let r=h.rect,d={type:"item",key:h.key,dropPosition:"on"};return i(d)?t<=r.y+10&&i({...d,dropPosition:"before"})?d.dropPosition="before":t>=r.maxY-10&&i({...d,dropPosition:"after"})&&(d.dropPosition="after"):t<=r.y+r.height/2&&i({...d,dropPosition:"before"})?d.dropPosition="before":i({...d,dropPosition:"after"})&&(d.dropPosition="after"),d}getDropTargetLayoutInfo(e){let t=this.getLayoutInfo(e.key),i;if(e.dropPosition==="before")i=new g(t.rect.x,Math.max(0,t.rect.y-this.dropIndicatorThickness/2),t.rect.width,this.dropIndicatorThickness);else if(e.dropPosition==="after"){let o=this.collection.getItem(e.key);if(o){var l;let s=(l=o.level)!==null&&l!==void 0?l:0,a=this.collection.getKeyAfter(e.key);for(;a!=null;){let h=this.collection.getItem(a);if(!h||h.level<=s)break;t=this.getLayoutInfo(a)||t,a=this.collection.getKeyAfter(a)}}i=new g(t.rect.x,t.rect.maxY-this.dropIndicatorThickness/2,t.rect.width,this.dropIndicatorThickness)}else i=t.rect;return new b("dropIndicator",e.key+":"+e.dropPosition,i)}constructor(e={}){super();var t;this.rowHeight=(t=e.rowHeight)!==null&&t!==void 0?t:null;var i;this.estimatedRowHeight=(i=e.estimatedRowHeight)!==null&&i!==void 0?i:null;var l;this.headingHeight=(l=e.headingHeight)!==null&&l!==void 0?l:null;var o;this.estimatedHeadingHeight=(o=e.estimatedHeadingHeight)!==null&&o!==void 0?o:null;var s;this.loaderHeight=(s=e.loaderHeight)!==null&&s!==void 0?s:null,this.dropIndicatorThickness=e.dropIndicatorThickness||2,this.gap=e.gap||0,this.padding=e.padding||0,this.layoutNodes=new Map,this.rootNodes=[],this.lastCollection=null,this.invalidateEverything=!1,this.validRect=new g,this.requestedRect=new g,this.contentSize=new z}}let R=null;function fe(n=!1){if(R===null||n){const e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";const i=document.createElement("div"),l=i.style;return l.width="100px",l.height="100px",e.appendChild(i),document.body.appendChild(e),e.scrollLeft>0?R="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?R="negative":R="positive-ascending"),document.body.removeChild(e),R}return R}function ge(n,e){let{scrollLeft:t}=n;if(e==="rtl"){let{scrollWidth:i,clientWidth:l}=n;switch(fe()){case"negative":t=-t;break;case"positive-descending":t=i-l-t;break}}return t}function ye(n,e){let{contentSize:t,onVisibleRectChange:i,innerStyle:l,onScrollStart:o,onScrollEnd:s,scrollDirection:a="both",...h}=n,r=c.useRef({scrollTop:0,scrollLeft:0,scrollEndTime:0,scrollTimeout:null,width:0,height:0,isScrolling:!1}).current,{direction:d}=W.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),[u,f]=c.useState(!1),y=c.useCallback(()=>{r.isScrolling=!1,f(!1),r.scrollTimeout=null,window.dispatchEvent(new Event("tk.connect-observer")),s==null||s()},[r,s]),v=c.useCallback(w=>{w.target===w.currentTarget&&(n.onScroll&&n.onScroll(w),M.flushSync(()=>{let m=w.currentTarget.scrollTop,H=ge(w.currentTarget,d);r.scrollTop=Math.max(0,Math.min(m,t.height-r.height)),r.scrollLeft=Math.max(0,Math.min(H,t.width-r.width)),i(new g(r.scrollLeft,r.scrollTop,r.width,r.height)),r.isScrolling||(r.isScrolling=!0,f(!0),window.dispatchEvent(new Event("tk.disconnect-observer")),o&&o());let N=Date.now();!("onscrollend"in window)&&r.scrollEndTime<=N+50&&(r.scrollEndTime=N+300,r.scrollTimeout!=null&&clearTimeout(r.scrollTimeout),r.scrollTimeout=setTimeout(y,300))}))},[n,d,r,t,i,o,y]);B.$e9faafb641e167db$export$90fc3a17d93f704c(e,"scroll",v),B.$e9faafb641e167db$export$90fc3a17d93f704c(e,"scrollend",y),c.useEffect(()=>()=>{r.scrollTimeout!=null&&clearTimeout(r.scrollTimeout),r.isScrolling&&window.dispatchEvent(new Event("tk.connect-observer"))},[]);let p=c.useRef(!1),_=C.$8ae05eaa5c114e9c$export$7f54fc3180508a52(w=>{let m=e.current;if(!m||p.current)return;p.current=!0;let H=process.env.NODE_ENV==="test"&&!process.env.VIRT_ON,N=Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientWidth"),ee=Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientHeight"),P=m.clientWidth,q=m.clientHeight,E=H&&!N?1/0:P,T=H&&!ee?1/0:q;(r.width!==E||r.height!==T)&&(r.width=E,r.height=T,w(()=>{i(new g(r.scrollLeft,r.scrollTop,E,T))}),(!H&&P!==m.clientWidth||q!==m.clientHeight)&&(r.width=m.clientWidth,r.height=m.clientHeight,w(()=>{i(new g(r.scrollLeft,r.scrollTop,r.width,r.height))}))),p.current=!1}),L=c.useRef(null),[J,Q]=c.useState({});C.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(!p.current&&(L.current==null||!t.equals(L.current)))if(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u"){Q({}),L.current=t;return}else queueMicrotask(()=>_(M.flushSync));L.current=t}),C.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{_(w=>w())},[J]);let Z=c.useCallback(()=>{_(M.flushSync)},[_]);te.$9daab02d461809db$export$683480f191c0e3ea({ref:e,box:"border-box",onResize:Z});let I={padding:0,...h.style};return a==="horizontal"?(I.overflowX="auto",I.overflowY="hidden"):a==="vertical"||t.width===r.width?(I.overflowY="auto",I.overflowX="hidden"):I.overflow="auto",l={width:Number.isFinite(t.width)?t.width:void 0,height:Number.isFinite(t.height)?t.height:void 0,pointerEvents:u?"none":"auto",position:"relative",...l},{isScrolling:u,scrollViewProps:{...h,style:I},contentProps:{role:"presentation",style:l}}}function ve(n){let{layoutInfo:e,virtualizer:t,ref:i}=n,l=e==null?void 0:e.key,o=c.useCallback(()=>{if(l!=null&&i.current){let s=pe(i.current);t.updateItemSize(l,s)}},[t,l,i]);return C.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{e!=null&&e.estimatedSize&&o()}),{updateSize:o}}function pe(n){let e=n.style.height;n.style.height="";let t=new z(n.scrollWidth,n.scrollHeight);return n.style.height=e,t}function A(n){let{style:e,className:t,layoutInfo:i,virtualizer:l,parent:o,children:s}=n,{direction:a}=W.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),h=c.useRef(null);return ve({layoutInfo:i,virtualizer:l,ref:h}),c.createElement("div",{role:"presentation",ref:h,className:t,style:{...we(i,a,o),...e}},s)}let Y=new WeakMap;function we(n,e,t){let i=e==="rtl"?"right":"left",l=Y.get(n);if(l&&l[i]!=null){if(!t)return l;let h=n.rect.y-t.rect.y,r=n.rect.x-t.rect.x;if(l.top===h&&l[i]===r)return l}let o={top:n.rect.y-(t&&!(t.allowOverflow&&n.isSticky)?t.rect.y:0),[i]:n.rect.x-(t&&!(t.allowOverflow&&n.isSticky)?t.rect.x:0),width:n.rect.width,height:n.rect.height};Object.entries(o).forEach(([h,r])=>{Number.isFinite(r)||(o[h]=void 0)});var s;let a={position:n.isSticky?"sticky":"absolute",display:n.isSticky?"inline-block":void 0,overflow:n.allowOverflow?"visible":"hidden",opacity:n.opacity,zIndex:n.zIndex,transform:(s=n.transform)!==null&&s!==void 0?s:void 0,contain:"size layout style",...o};return Y.set(n,a),a}const F=c.createContext(null),U=c.createContext(null);function me(n){let{children:e,layout:t,layoutOptions:i}=n,l=c.useMemo(()=>typeof t=="function"?new t:t,[t]),o=c.useMemo(()=>({isVirtualized:!0,layoutDelegate:l,dropTargetDelegate:l.getDropTargetFromPoint?l:void 0,CollectionRoot:be,CollectionBranch:xe}),[l]);return c.createElement(D.$7135fc7d473fd974$export$4feb769f8ddf26c5.Provider,{value:o},c.createElement(U.Provider,{value:{layout:l,layoutOptions:i}},e))}function be({collection:n,persistedKeys:e,scrollRef:t,renderDropIndicator:i}){var l;let{layout:o,layoutOptions:s}=c.useContext(U),a=(l=o.useLayoutOptions)===null||l===void 0?void 0:l.call(o),h=ce({layout:o,collection:n,renderView:(d,u)=>{var f;return u==null||(f=u.render)===null||f===void 0?void 0:f.call(u,u)},onVisibleRectChange(d){let u=t==null?void 0:t.current;u&&(u.scrollLeft=d.x,u.scrollTop=d.y)},persistedKeys:e,layoutOptions:c.useMemo(()=>s&&a?{...s,...a}:s||a,[s,a])}),{contentProps:r}=ye({onVisibleRectChange:h.setVisibleRect,contentSize:h.contentSize,onScrollStart:h.startScrolling,onScrollEnd:h.endScrolling},t);return c.createElement("div",r,c.createElement(F.Provider,{value:h},G(null,h.visibleViews,i)))}function xe({parent:n,renderDropIndicator:e}){let i=c.useContext(F).virtualizer.getVisibleView(n.key);return G(i,Array.from(i.children),e)}function G(n,e,t){return e.map(i=>Ie(n,i,t))}function Ie(n,e,t){let i=c.createElement(A,{key:e.key,layoutInfo:e.layoutInfo,virtualizer:e.virtualizer,parent:n==null?void 0:n.layoutInfo},e.rendered),{collection:l,layout:o}=e.virtualizer,s=e.content;return(s==null?void 0:s.type)==="item"&&t&&o.getDropTargetLayoutInfo&&(i=c.createElement(c.Fragment,{key:e.key},j(n,e,{type:"item",key:e.content.key,dropPosition:"before"},t),i,D.$7135fc7d473fd974$export$2dbbd341daed716d(l,s,a=>j(n,e,a,t)))),i}function j(n,e,t,i){let l=i(t);if(l){let o=e.virtualizer.layout.getDropTargetLayoutInfo(t);l=c.createElement(A,{layoutInfo:o,virtualizer:e.virtualizer,parent:n==null?void 0:n.layoutInfo},l)}return l}class $e extends ue{getContentSize(){var t;const e=(t=this==null?void 0:this.virtualizer)==null?void 0:t.collection.getKeys();return Array.from(e||[]).forEach(i=>{this.getLayoutInfo(i)}),this.contentSize}}const Re="_listBox_ep33j_4",Se="_listBoxPopover_ep33j_16",ze="_listBoxSectionHeading_ep33j_31",He="_listBoxButton_ep33j_41",Ce="_listBoxItem_ep33j_53",ke="_listBoxLoadMoreItem_ep33j_98",k={listBox:Re,listBoxPopover:Se,listBoxSectionHeading:ze,listBoxButton:He,listBoxItem:Ce,listBoxLoadMoreItem:ke},_e=({className:n,children:e,...t})=>S.jsx(me,{layout:$e,layoutOptions:{headingHeight:44},children:S.jsx(V.$eed445e0843c11d0$export$41f133550aa26f48,{className:O.clsx(k.listBox,n),...t,children:e})}),Le=({children:n,className:e,...t})=>S.jsx(V.$eed445e0843c11d0$export$a11e76429ed99b4,{className:O.clsx(k.listBoxItem,e),...t,children:n}),Ne=({className:n,children:e,...t})=>S.jsx(ie.$07b14b47974efb58$export$5b6b19405a83ff9d,{className:O.clsx(n,k.listBoxPopover),offset:0,...t,children:e}),Ee=({children:n,name:e,...t})=>S.jsxs(V.$eed445e0843c11d0$export$dca12b0bb56e4fc,{...t,children:[S.jsx(le.$72a5793c14baf454$export$8b251419efc915eb,{className:k.listBoxSectionHeading,children:e}),n]});exports.ListBox=_e;exports.ListBoxItem=Le;exports.ListBoxPopover=Ne;exports.ListBoxSection=Ee;exports.styles=k;
|
|
1
|
+
"use strict";require('./assets/ListBoxSection.css');const R=require("react/jsx-runtime"),V=require("./ListBox-Bx9M5vqb.cjs"),W=require("./Collection-DaZzboRu.cjs"),c=require("react"),C=require("./mergeProps-Du5A8xi8.cjs"),X=require("./context-UOrD6Zxk.cjs"),M=require("react-dom"),te=require("./OverlayArrow-DJ4nNscD.cjs"),B=require("./useEvent-C125NAue.cjs"),O=require("./clsx-DKOfLqne.cjs"),K=require("./SelectionManager-FYrDfe5v.cjs"),ie=require("./Dialog-DNu42oLH.cjs"),le=require("./Separator-BQkxEZC9.cjs");class oe{shouldInvalidate(e,t){return e.width!==t.width||e.height!==t.height}shouldInvalidateLayoutOptions(e,t){return e!==t}update(e){}getItemRect(e){var t,i;return(i=(t=this.getLayoutInfo(e))===null||t===void 0?void 0:t.rect)!==null&&i!==void 0?i:null}getVisibleRect(){return this.virtualizer.visibleRect}constructor(){this.virtualizer=null}}class b{copy(){let e=new b(this.type,this.key,this.rect.copy());return e.estimatedSize=this.estimatedSize,e.opacity=this.opacity,e.transform=this.transform,e.parentKey=this.parentKey,e.content=this.content,e.isSticky=this.isSticky,e.zIndex=this.zIndex,e.allowOverflow=this.allowOverflow,e}constructor(e,t,i){this.type=e,this.key=t,this.parentKey=null,this.content=null,this.rect=i,this.estimatedSize=!1,this.isSticky=!1,this.opacity=1,this.transform=null,this.zIndex=0,this.allowOverflow=!1}}class x{copy(){return new x(this.x,this.y)}equals(e){return this.x===e.x&&this.y===e.y}isOrigin(){return this.x===0&&this.y===0}constructor(e=0,t=0){this.x=e,this.y=t}}class g{get maxX(){return this.x+this.width}get maxY(){return this.y+this.height}get area(){return this.width*this.height}get topLeft(){return new x(this.x,this.y)}get topRight(){return new x(this.maxX,this.y)}get bottomLeft(){return new x(this.x,this.maxY)}get bottomRight(){return new x(this.maxX,this.maxY)}intersects(e){return(process.env.NODE_ENV==="test"&&!process.env.VIRT_ON||this.area>0&&e.area>0)&&this.x<=e.x+e.width&&e.x<=this.x+this.width&&this.y<=e.y+e.height&&e.y<=this.y+this.height}containsRect(e){return this.x<=e.x&&this.y<=e.y&&this.maxX>=e.maxX&&this.maxY>=e.maxY}containsPoint(e){return this.x<=e.x&&this.y<=e.y&&this.maxX>=e.x&&this.maxY>=e.y}getCornerInRect(e){for(let t of["topLeft","topRight","bottomLeft","bottomRight"])if(e.containsPoint(this[t]))return t;return null}equals(e){return e.x===this.x&&e.y===this.y&&e.width===this.width&&e.height===this.height}pointEquals(e){return this.x===e.x&&this.y===e.y}sizeEquals(e){return this.width===e.width&&this.height===e.height}union(e){let t=Math.min(this.x,e.x),i=Math.min(this.y,e.y),l=Math.max(this.maxX,e.maxX)-t,o=Math.max(this.maxY,e.maxY)-i;return new g(t,i,l,o)}intersection(e){if(!this.intersects(e))return new g(0,0,0,0);let t=Math.max(this.x,e.x),i=Math.max(this.y,e.y);return new g(t,i,Math.min(this.maxX,e.maxX)-t,Math.min(this.maxY,e.maxY)-i)}copy(){return new g(this.x,this.y,this.width,this.height)}constructor(e=0,t=0,i=0,l=0){this.x=e,this.y=t,this.width=i,this.height=l}}class z{copy(){return new z(this.width,this.height)}equals(e){return this.width===e.width&&this.height===e.height}get area(){return this.width*this.height}constructor(e=0,t=0){this.width=Math.max(e,0),this.height=Math.max(t,0)}}let ne=0;class j{prepareForReuse(){this.content=null,this.rendered=null,this.layoutInfo=null}getReusableView(e){let t=this.reusableViews.get(e);return t&&t.length>0?t.shift():new re(this.virtualizer,this,e)}reuseChild(e){e.prepareForReuse();let t=this.reusableViews.get(e.viewType);t||(t=[],this.reusableViews.set(e.viewType,t)),t.push(e)}constructor(e,t){this.virtualizer=e,this.key=++ne,this.viewType=t,this.children=new Set,this.reusableViews=new Map,this.layoutInfo=null,this.content=null,this.rendered=null}}class se extends j{constructor(e){super(e,"root")}}class re extends j{constructor(e,t,i){super(e,i),this.parent=t}}function ae(n,e){if(n===e)return!0;if(n.size!==e.size)return!1;for(let t of n)if(!e.has(t))return!1;return!0}class he{setVisibleRect(e){let t=performance.now()-this.startTime;t<500&&(e.x!==this.visibleRect.x&&t>0&&(this.velocity.x=(e.x-this.visibleRect.x)/t),e.y!==this.visibleRect.y&&t>0&&(this.velocity.y=(e.y-this.visibleRect.y)/t)),this.startTime=performance.now(),this.visibleRect=e}getOverscannedRect(){let e=this.visibleRect.copy(),t=this.visibleRect.height/3;if(e.height+=t,this.velocity.y<0&&(e.y-=t),this.velocity.x!==0){let i=this.visibleRect.width/3;e.width+=i,this.velocity.x<0&&(e.x-=i)}return e}constructor(){this.startTime=0,this.velocity=new x(0,0),this.visibleRect=new g}}class de{isPersistedKey(e){if(this.persistedKeys.has(e))return!0;for(let t of this.persistedKeys)for(;t!=null;){let i=this.layout.getLayoutInfo(t);if(!i||i.parentKey==null)break;if(t=i.parentKey,t===e)return!0}return!1}getParentView(e){return e.parentKey!=null?this._visibleViews.get(e.parentKey):this._rootView}getReusableView(e){let i=this.getParentView(e).getReusableView(e.type);return i.layoutInfo=e,this._renderView(i),i}_renderView(e){if(e.layoutInfo){let{type:t,key:i,content:l}=e.layoutInfo;e.content=l||this.collection.getItem(i),e.rendered=this._renderContent(t,e.content)}}_renderContent(e,t){let i=t!=null?this._renderedContent.get(t):null;if(i!=null)return i;let l=this.delegate.renderView(e,t);return t&&this._renderedContent.set(t,l),l}keyAtPoint(e){let t=new g(e.x,e.y,1,1),i=t.area===0?[]:this.layout.getVisibleLayoutInfos(t);for(let l of i)if(l.rect.intersects(t))return l.key;return null}relayout(e={}){this.layout.update(e),this.contentSize=this.layout.getContentSize();let t=this.visibleRect,i=e.contentChanged?0:t.x,l=e.contentChanged?0:t.y;if(i=Math.max(0,Math.min(this.contentSize.width-t.width,i)),l=Math.max(0,Math.min(this.contentSize.height-t.height,l)),i!==t.x||l!==t.y){let o=new g(i,l,t.width,t.height);this.delegate.setVisibleRect(o)}else this.updateSubviews()}getVisibleLayoutInfos(){let e=process.env.NODE_ENV==="test"&&!process.env.VIRT_ON,t=e&&typeof HTMLElement<"u"&&Object.getOwnPropertyNames(HTMLElement.prototype).includes("clientWidth"),i=e&&typeof HTMLElement<"u"&&Object.getOwnPropertyNames(HTMLElement.prototype).includes("clientHeight"),l;e&&!(t&&i)?l=new g(0,0,this.contentSize.width,this.contentSize.height):l=this._overscanManager.getOverscannedRect();let o=this.layout.getVisibleLayoutInfos(l),s=new Map;for(let a of o)s.set(a.key,a);return s}updateSubviews(){let e=this.getVisibleLayoutInfos(),t=new Set;for(let[i,l]of this._visibleViews){let o=e.get(i);(!o||l.parent!==this.getParentView(o))&&(this._visibleViews.delete(i),l.parent.reuseChild(l),t.add(l))}for(let[i,l]of e){let o=this._visibleViews.get(i);if(!o)o=this.getReusableView(l),o.parent.children.add(o),this._visibleViews.set(i,o),t.delete(o);else{o.layoutInfo=l;let s=this.collection.getItem(l.key);o.content!==s&&(o.content!=null&&this._renderedContent.delete(o.content),this._renderView(o))}}for(let i of t)i.parent.children.delete(i),i.parent.reusableViews.clear();if(!this._isScrolling)for(let i of e.keys()){let l=this._visibleViews.get(i);l.parent.children.delete(l),l.parent.children.add(l)}}render(e){let t=this,i=!1,l=!1,o=!1,s=!1,a=!1,h=!1;return e.collection!==this.collection&&(t.collection=e.collection,i=!0),(e.layout!==this.layout||this.layout.virtualizer!==this)&&(this.layout&&(this.layout.virtualizer=null),e.layout.virtualizer=this,t.layout=e.layout,i=!0),e.persistedKeys&&!ae(e.persistedKeys,this.persistedKeys)&&(t.persistedKeys=e.persistedKeys,h=!0),this.visibleRect.equals(e.visibleRect)||(this._overscanManager.setVisibleRect(e.visibleRect),this.layout.shouldInvalidate(e.visibleRect,this.visibleRect)?(l=!e.visibleRect.pointEquals(this.visibleRect),o=!e.visibleRect.sizeEquals(this.visibleRect),i=!0):h=!0,t.visibleRect=e.visibleRect),e.invalidationContext!==this._invalidationContext&&(e.invalidationContext&&(o||(o=e.invalidationContext.sizeChanged||!1),l||(l=e.invalidationContext.offsetChanged||!1),s||(s=e.invalidationContext.itemSizeChanged||!1),a||(a=e.invalidationContext.layoutOptions!=null&&this._invalidationContext.layoutOptions!=null&&e.invalidationContext.layoutOptions!==this._invalidationContext.layoutOptions&&this.layout.shouldInvalidateLayoutOptions(e.invalidationContext.layoutOptions,this._invalidationContext.layoutOptions)),i||(i=s||o||l||a)),this._invalidationContext=e.invalidationContext),e.isScrolling!==this._isScrolling&&(this._isScrolling=e.isScrolling,e.isScrolling||(h=!0)),i?this.relayout({offsetChanged:l,sizeChanged:o,itemSizeChanged:s,layoutOptionsChanged:a,layoutOptions:this._invalidationContext.layoutOptions}):h&&this.updateSubviews(),Array.from(this._rootView.children)}getVisibleView(e){return this._visibleViews.get(e)}invalidate(e){this.delegate.invalidate(e)}updateItemSize(e,t){if(!this.layout.updateItemSize)return;this.layout.updateItemSize(e,t)&&this.invalidate({itemSizeChanged:!0})}constructor(e){this.delegate=e.delegate,this.collection=e.collection,this.layout=e.layout,this.contentSize=new z,this.visibleRect=new g,this.persistedKeys=new Set,this._visibleViews=new Map,this._renderedContent=new WeakMap,this._rootView=new se(this),this._isScrolling=!1,this._invalidationContext={},this._overscanManager=new he}}function ce(n){let[e,t]=c.useState(new g(0,0,0,0)),[i,l]=c.useState(!1),[o,s]=c.useState({}),a=c.useRef(!1),[h]=c.useState(()=>new de({collection:n.collection,layout:n.layout,delegate:{setVisibleRect(p){t(p),a.current=!0},renderView:n.renderView,invalidate:s}}));C.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{a.current&&(a.current=!1,n.onVisibleRectChange(e))});let r=c.useMemo(()=>n.layoutOptions!=null?{...o,layoutOptions:n.layoutOptions}:o,[o,n.layoutOptions]),d=h.render({layout:n.layout,collection:n.collection,persistedKeys:n.persistedKeys,layoutOptions:n.layoutOptions,visibleRect:e,invalidationContext:r,isScrolling:i}),u=h.contentSize,f=c.useCallback(()=>{l(!0)},[]),y=c.useCallback(()=>{l(!1)},[]);return c.useMemo(()=>({virtualizer:h,visibleViews:d,setVisibleRect:t,contentSize:u,isScrolling:i,startScrolling:f,endScrolling:y}),[h,d,t,u,i,f,y])}const $=48;class ue extends oe{get collection(){return this.virtualizer.collection}getLayoutInfo(e){var t;return this.ensureLayoutInfo(e),((t=this.layoutNodes.get(e))===null||t===void 0?void 0:t.layoutInfo)||null}getVisibleLayoutInfos(e){if(e.height>1){var t,i;let s=((i=(t=this.rowHeight)!==null&&t!==void 0?t:this.estimatedRowHeight)!==null&&i!==void 0?i:$)+this.gap;e.y=Math.floor(e.y/s)*s,e.height=Math.ceil(e.height/s)*s}this.layoutIfNeeded(e);let l=[],o=s=>{for(let a of s)this.isVisible(a,e)&&(l.push(a.layoutInfo),a.children&&o(a.children))};return o(this.rootNodes),l}layoutIfNeeded(e){if(this.lastCollection){this.requestedRect.containsRect(e)||(this.requestedRect=this.requestedRect.union(e),this.rootNodes=this.buildCollection());for(let t of this.virtualizer.persistedKeys)if(this.ensureLayoutInfo(t))return}}ensureLayoutInfo(e){return!this.layoutNodes.has(e)&&this.requestedRect.area<this.contentSize.area&&this.lastCollection?(this.requestedRect=new g(0,0,1/0,1/0),this.rootNodes=this.buildCollection(),this.requestedRect=new g(0,0,this.contentSize.width,this.contentSize.height),!0):!1}isVisible(e,t){return e.layoutInfo.rect.intersects(t)||e.layoutInfo.isSticky||e.layoutInfo.type==="header"||e.layoutInfo.type==="loader"||this.virtualizer.isPersistedKey(e.layoutInfo.key)}shouldInvalidateEverything(e){let t=e.layoutOptions;var i,l,o,s,a;return e.sizeChanged||this.rowHeight!==((i=t==null?void 0:t.rowHeight)!==null&&i!==void 0?i:this.rowHeight)||this.headingHeight!==((l=t==null?void 0:t.headingHeight)!==null&&l!==void 0?l:this.headingHeight)||this.loaderHeight!==((o=t==null?void 0:t.loaderHeight)!==null&&o!==void 0?o:this.loaderHeight)||this.gap!==((s=t==null?void 0:t.gap)!==null&&s!==void 0?s:this.gap)||this.padding!==((a=t==null?void 0:t.padding)!==null&&a!==void 0?a:this.padding)}shouldInvalidateLayoutOptions(e,t){return e.rowHeight!==t.rowHeight||e.estimatedRowHeight!==t.estimatedRowHeight||e.headingHeight!==t.headingHeight||e.estimatedHeadingHeight!==t.estimatedHeadingHeight||e.loaderHeight!==t.loaderHeight||e.dropIndicatorThickness!==t.dropIndicatorThickness||e.gap!==t.gap||e.padding!==t.padding}update(e){let t=this.virtualizer.collection;this.invalidateEverything=this.shouldInvalidateEverything(e),this.invalidateEverything&&(this.requestedRect=this.virtualizer.visibleRect.copy(),this.layoutNodes.clear());let i=e.layoutOptions;var l;this.rowHeight=(l=i==null?void 0:i.rowHeight)!==null&&l!==void 0?l:this.rowHeight;var o;this.estimatedRowHeight=(o=i==null?void 0:i.estimatedRowHeight)!==null&&o!==void 0?o:this.estimatedRowHeight;var s;this.headingHeight=(s=i==null?void 0:i.headingHeight)!==null&&s!==void 0?s:this.headingHeight;var a;this.estimatedHeadingHeight=(a=i==null?void 0:i.estimatedHeadingHeight)!==null&&a!==void 0?a:this.estimatedHeadingHeight;var h;this.loaderHeight=(h=i==null?void 0:i.loaderHeight)!==null&&h!==void 0?h:this.loaderHeight;var r;this.dropIndicatorThickness=(r=i==null?void 0:i.dropIndicatorThickness)!==null&&r!==void 0?r:this.dropIndicatorThickness;var d;this.gap=(d=i==null?void 0:i.gap)!==null&&d!==void 0?d:this.gap;var u;if(this.padding=(u=i==null?void 0:i.padding)!==null&&u!==void 0?u:this.padding,this.rootNodes=this.buildCollection(),this.lastCollection&&t!==this.lastCollection)for(let f of this.lastCollection.getKeys())t.getItem(f)||this.layoutNodes.get(f)&&this.layoutNodes.delete(f);this.lastCollection=t,this.invalidateEverything=!1,this.validRect=this.requestedRect.copy()}buildCollection(e=this.padding){let t=this.virtualizer.collection,i=[...t],l=i.filter(r=>r.type==="loader"),o=[],s=(t==null?void 0:t.size)===0;s&&(e=0);for(let r of i){var a,h;let d=((h=(a=this.rowHeight)!==null&&a!==void 0?a:this.estimatedRowHeight)!==null&&h!==void 0?h:$)+this.gap;if(r.type==="item"&&e+d<this.requestedRect.y&&!this.isValid(r,e)){e+=d;continue}let u=this.buildChild(r,this.padding,e,null);if(e=u.layoutInfo.rect.maxY+this.gap,o.push(u),r.type==="loader"){let f=l.indexOf(r);l.splice(f,1)}if((r.type==="item"||r.type==="loader")&&e>this.requestedRect.maxY){let f=i.indexOf(r);for(let y of l){let v=i.indexOf(y);e+=(v-f-1)*d;let p=this.buildChild(y,this.padding,e,null);o.push(p),e=p.layoutInfo.rect.maxY,f=v}e+=(i.length-f-1)*d;break}}return e-=this.gap,e+=s?0:this.padding,this.contentSize=new z(this.virtualizer.visibleRect.width,e),o}isValid(e,t){let i=this.layoutNodes.get(e.key);return!this.invalidateEverything&&!!i&&i.node===e&&t===i.layoutInfo.rect.y&&i.layoutInfo.rect.intersects(this.validRect)&&i.validRect.containsRect(i.layoutInfo.rect.intersection(this.requestedRect))}buildChild(e,t,i,l){if(this.isValid(e,i))return this.layoutNodes.get(e.key);let o=this.buildNode(e,t,i);return o.layoutInfo.parentKey=l??null,o.layoutInfo.allowOverflow=!0,this.layoutNodes.set(e.key,o),o}buildNode(e,t,i){switch(e.type){case"section":return this.buildSection(e,t,i);case"item":return this.buildItem(e,t,i);case"header":return this.buildSectionHeader(e,t,i);case"loader":return this.buildLoader(e,t,i);case"separator":return this.buildItem(e,t,i);default:throw new Error("Unsupported node type: "+e.type)}}buildLoader(e,t,i){let l=new g(t,i,this.padding,0),o=new b("loader",e.key,l);l.width=this.virtualizer.contentSize.width-this.padding-t;var s,a,h;return l.height=e.props.isLoading?(h=(a=(s=this.loaderHeight)!==null&&s!==void 0?s:this.rowHeight)!==null&&a!==void 0?a:this.estimatedRowHeight)!==null&&h!==void 0?h:$:0,{layoutInfo:o,validRect:l.intersection(this.requestedRect)}}buildSection(e,t,i){let l=this.virtualizer.collection,o=this.virtualizer.visibleRect.width-this.padding,s=new g(t,i,o-t,0),a=new b(e.type,e.key,s),h=i,r=0,d=[];for(let y of K.$c5a24bc478652b5f$export$1005530eda016c13(e,l)){var u,f;let v=((f=(u=this.rowHeight)!==null&&u!==void 0?u:this.estimatedRowHeight)!==null&&f!==void 0?f:$)+this.gap;if(i+v<this.requestedRect.y&&!this.isValid(e,i)){i+=v,r++;continue}let p=this.buildChild(y,t,i,a.key);if(i=p.layoutInfo.rect.maxY+this.gap,d.push(p),i>this.requestedRect.maxY){i+=([...K.$c5a24bc478652b5f$export$1005530eda016c13(e,l)].length-(d.length+r))*v;break}}return i-=this.gap,s.height=i-h,{layoutInfo:a,children:d,validRect:a.rect.intersection(this.requestedRect),node:e}}buildSectionHeader(e,t,i){let l=this.virtualizer.visibleRect.width-this.padding,o=this.headingHeight,s=!1;if(o==null){let r=this.layoutNodes.get(e.key),d=r==null?void 0:r.layoutInfo;if(d){let u=this.virtualizer.collection.getItem(e.key),f=this.lastCollection?this.lastCollection.getItem(e.key):null;o=d.rect.height,s=l!==d.rect.width||u!==f||d.estimatedSize}else o=e.rendered?this.estimatedHeadingHeight:0,s=!0}o==null&&(o=$);let a=new g(t,i,l-t,o),h=new b("header",e.key,a);return h.estimatedSize=s,{layoutInfo:h,children:[],validRect:h.rect.intersection(this.requestedRect),node:e}}buildItem(e,t,i){let l=this.virtualizer.visibleRect.width-this.padding-t,o=this.rowHeight,s=!1;if(o==null){let r=this.layoutNodes.get(e.key);r?(o=r.layoutInfo.rect.height,s=l!==r.layoutInfo.rect.width||e!==r.node||r.layoutInfo.estimatedSize):(o=this.estimatedRowHeight,s=!0)}o==null&&(o=$);let a=new g(t,i,l,o),h=new b(e.type,e.key,a);return h.estimatedSize=s,{layoutInfo:h,children:[],validRect:h.rect,node:e}}updateItemSize(e,t){let i=this.layoutNodes.get(e);if(!i)return!1;let l=this.virtualizer.collection,o=i.layoutInfo;if(o.estimatedSize=!1,o.rect.height!==t.height){let s=o.copy();s.rect.height=t.height,i.layoutInfo=s,this.validRect.height=Math.min(this.validRect.height,o.rect.y-this.validRect.y),this.requestedRect.height+=s.rect.height-o.rect.height,this.updateLayoutNode(e,o,s);let a=o.parentKey!=null?l.getItem(o.parentKey):null;for(;a;)this.updateLayoutNode(a.key,o,s),a=a.parentKey!=null?l.getItem(a.parentKey):null;return!0}return!1}updateLayoutNode(e,t,i){let l=this.layoutNodes.get(e);l&&(l.validRect=l.validRect.intersection(this.validRect),l.layoutInfo===t&&(l.layoutInfo=i))}getContentSize(){return this.contentSize}getDropTargetFromPoint(e,t,i){e+=this.virtualizer.visibleRect.x,t+=this.virtualizer.visibleRect.y;let l=new g(e,Math.max(0,t-this.gap),1,Math.max(1,this.gap*2)),o=this.getVisibleLayoutInfos(l),s=null,a=1/0;for(let u of o){if(!u.rect.intersects(l))continue;let f=Math.abs(u.rect.y-t),y=Math.abs(u.rect.maxY-t),v=Math.min(f,y);v<a&&(a=v,s=u.key)}if(s==null||this.virtualizer.collection.size===0)return{type:"root"};let h=this.getLayoutInfo(s);if(!h)return null;let r=h.rect,d={type:"item",key:h.key,dropPosition:"on"};return i(d)?t<=r.y+10&&i({...d,dropPosition:"before"})?d.dropPosition="before":t>=r.maxY-10&&i({...d,dropPosition:"after"})&&(d.dropPosition="after"):t<=r.y+r.height/2&&i({...d,dropPosition:"before"})?d.dropPosition="before":i({...d,dropPosition:"after"})&&(d.dropPosition="after"),d}getDropTargetLayoutInfo(e){let t=this.getLayoutInfo(e.key),i;if(e.dropPosition==="before")i=new g(t.rect.x,Math.max(0,t.rect.y-this.dropIndicatorThickness/2),t.rect.width,this.dropIndicatorThickness);else if(e.dropPosition==="after"){let o=this.collection.getItem(e.key);if(o){var l;let s=(l=o.level)!==null&&l!==void 0?l:0,a=this.collection.getKeyAfter(e.key);for(;a!=null;){let h=this.collection.getItem(a);if(!h||h.level<=s)break;t=this.getLayoutInfo(a)||t,a=this.collection.getKeyAfter(a)}}i=new g(t.rect.x,t.rect.maxY-this.dropIndicatorThickness/2,t.rect.width,this.dropIndicatorThickness)}else i=t.rect;return new b("dropIndicator",e.key+":"+e.dropPosition,i)}constructor(e={}){super();var t;this.rowHeight=(t=e.rowHeight)!==null&&t!==void 0?t:null;var i;this.estimatedRowHeight=(i=e.estimatedRowHeight)!==null&&i!==void 0?i:null;var l;this.headingHeight=(l=e.headingHeight)!==null&&l!==void 0?l:null;var o;this.estimatedHeadingHeight=(o=e.estimatedHeadingHeight)!==null&&o!==void 0?o:null;var s;this.loaderHeight=(s=e.loaderHeight)!==null&&s!==void 0?s:null,this.dropIndicatorThickness=e.dropIndicatorThickness||2,this.gap=e.gap||0,this.padding=e.padding||0,this.layoutNodes=new Map,this.rootNodes=[],this.lastCollection=null,this.invalidateEverything=!1,this.validRect=new g,this.requestedRect=new g,this.contentSize=new z}}let S=null;function fe(n=!1){if(S===null||n){const e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";const i=document.createElement("div"),l=i.style;return l.width="100px",l.height="100px",e.appendChild(i),document.body.appendChild(e),e.scrollLeft>0?S="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?S="negative":S="positive-ascending"),document.body.removeChild(e),S}return S}function ge(n,e){let{scrollLeft:t}=n;if(e==="rtl"){let{scrollWidth:i,clientWidth:l}=n;switch(fe()){case"negative":t=-t;break;case"positive-descending":t=i-l-t;break}}return t}function ye(n,e){let{contentSize:t,onVisibleRectChange:i,innerStyle:l,onScrollStart:o,onScrollEnd:s,scrollDirection:a="both",...h}=n,r=c.useRef({scrollTop:0,scrollLeft:0,scrollEndTime:0,scrollTimeout:null,width:0,height:0,isScrolling:!1}).current,{direction:d}=X.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),[u,f]=c.useState(!1),y=c.useCallback(()=>{r.isScrolling=!1,f(!1),r.scrollTimeout=null,window.dispatchEvent(new Event("tk.connect-observer")),s==null||s()},[r,s]),v=c.useCallback(w=>{w.target===w.currentTarget&&(n.onScroll&&n.onScroll(w),M.flushSync(()=>{let m=w.currentTarget.scrollTop,H=ge(w.currentTarget,d);r.scrollTop=Math.max(0,Math.min(m,t.height-r.height)),r.scrollLeft=Math.max(0,Math.min(H,t.width-r.width)),i(new g(r.scrollLeft,r.scrollTop,r.width,r.height)),r.isScrolling||(r.isScrolling=!0,f(!0),window.dispatchEvent(new Event("tk.disconnect-observer")),o&&o());let N=Date.now();!("onscrollend"in window)&&r.scrollEndTime<=N+50&&(r.scrollEndTime=N+300,r.scrollTimeout!=null&&clearTimeout(r.scrollTimeout),r.scrollTimeout=setTimeout(y,300))}))},[n,d,r,t,i,o,y]);B.$e9faafb641e167db$export$90fc3a17d93f704c(e,"scroll",v),B.$e9faafb641e167db$export$90fc3a17d93f704c(e,"scrollend",y),c.useEffect(()=>()=>{r.scrollTimeout!=null&&clearTimeout(r.scrollTimeout),r.isScrolling&&window.dispatchEvent(new Event("tk.connect-observer"))},[]);let p=c.useRef(!1),_=C.$8ae05eaa5c114e9c$export$7f54fc3180508a52(w=>{let m=e.current;if(!m||p.current)return;p.current=!0;let H=process.env.NODE_ENV==="test"&&!process.env.VIRT_ON,N=Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientWidth"),ee=Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientHeight"),P=m.clientWidth,q=m.clientHeight,E=H&&!N?1/0:P,T=H&&!ee?1/0:q;(r.width!==E||r.height!==T)&&(r.width=E,r.height=T,w(()=>{i(new g(r.scrollLeft,r.scrollTop,E,T))}),(!H&&P!==m.clientWidth||q!==m.clientHeight)&&(r.width=m.clientWidth,r.height=m.clientHeight,w(()=>{i(new g(r.scrollLeft,r.scrollTop,r.width,r.height))}))),p.current=!1}),L=c.useRef(null),[J,Q]=c.useState({});C.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(!p.current&&(L.current==null||!t.equals(L.current)))if(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u"){Q({}),L.current=t;return}else queueMicrotask(()=>_(M.flushSync));L.current=t}),C.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{_(w=>w())},[J]);let Z=c.useCallback(()=>{_(M.flushSync)},[_]);te.$9daab02d461809db$export$683480f191c0e3ea({ref:e,box:"border-box",onResize:Z});let I={padding:0,...h.style};return a==="horizontal"?(I.overflowX="auto",I.overflowY="hidden"):a==="vertical"||t.width===r.width?(I.overflowY="auto",I.overflowX="hidden"):I.overflow="auto",l={width:Number.isFinite(t.width)?t.width:void 0,height:Number.isFinite(t.height)?t.height:void 0,pointerEvents:u?"none":"auto",position:"relative",...l},{isScrolling:u,scrollViewProps:{...h,style:I},contentProps:{role:"presentation",style:l}}}function ve(n){let{layoutInfo:e,virtualizer:t,ref:i}=n,l=e==null?void 0:e.key,o=c.useCallback(()=>{if(l!=null&&i.current){let s=pe(i.current);t.updateItemSize(l,s)}},[t,l,i]);return C.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{e!=null&&e.estimatedSize&&o()}),{updateSize:o}}function pe(n){let e=n.style.height;n.style.height="";let t=new z(n.scrollWidth,n.scrollHeight);return n.style.height=e,t}function A(n){let{style:e,className:t,layoutInfo:i,virtualizer:l,parent:o,children:s}=n,{direction:a}=X.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),h=c.useRef(null);return ve({layoutInfo:i,virtualizer:l,ref:h}),c.createElement("div",{role:"presentation",ref:h,className:t,style:{...we(i,a,o),...e}},s)}let Y=new WeakMap;function we(n,e,t){let i=e==="rtl"?"right":"left",l=Y.get(n);if(l&&l[i]!=null){if(!t)return l;let h=n.rect.y-t.rect.y,r=n.rect.x-t.rect.x;if(l.top===h&&l[i]===r)return l}let o={top:n.rect.y-(t&&!(t.allowOverflow&&n.isSticky)?t.rect.y:0),[i]:n.rect.x-(t&&!(t.allowOverflow&&n.isSticky)?t.rect.x:0),width:n.rect.width,height:n.rect.height};Object.entries(o).forEach(([h,r])=>{Number.isFinite(r)||(o[h]=void 0)});var s;let a={position:n.isSticky?"sticky":"absolute",display:n.isSticky?"inline-block":void 0,overflow:n.allowOverflow?"visible":"hidden",opacity:n.opacity,zIndex:n.zIndex,transform:(s=n.transform)!==null&&s!==void 0?s:void 0,contain:"size layout style",...o};return Y.set(n,a),a}const F=c.createContext(null),U=c.createContext(null);function me(n){let{children:e,layout:t,layoutOptions:i}=n,l=c.useMemo(()=>typeof t=="function"?new t:t,[t]),o=c.useMemo(()=>({isVirtualized:!0,layoutDelegate:l,dropTargetDelegate:l.getDropTargetFromPoint?l:void 0,CollectionRoot:be,CollectionBranch:xe}),[l]);return c.createElement(W.$7135fc7d473fd974$export$4feb769f8ddf26c5.Provider,{value:o},c.createElement(U.Provider,{value:{layout:l,layoutOptions:i}},e))}function be({collection:n,persistedKeys:e,scrollRef:t,renderDropIndicator:i}){var l;let{layout:o,layoutOptions:s}=c.useContext(U),a=(l=o.useLayoutOptions)===null||l===void 0?void 0:l.call(o),h=ce({layout:o,collection:n,renderView:(d,u)=>{var f;return u==null||(f=u.render)===null||f===void 0?void 0:f.call(u,u)},onVisibleRectChange(d){let u=t==null?void 0:t.current;u&&(u.scrollLeft=d.x,u.scrollTop=d.y)},persistedKeys:e,layoutOptions:c.useMemo(()=>s&&a?{...s,...a}:s||a,[s,a])}),{contentProps:r}=ye({onVisibleRectChange:h.setVisibleRect,contentSize:h.contentSize,onScrollStart:h.startScrolling,onScrollEnd:h.endScrolling},t);return c.createElement("div",r,c.createElement(F.Provider,{value:h},G(null,h.visibleViews,i)))}function xe({parent:n,renderDropIndicator:e}){let i=c.useContext(F).virtualizer.getVisibleView(n.key);return G(i,Array.from(i.children),e)}function G(n,e,t){return e.map(i=>Ie(n,i,t))}function Ie(n,e,t){let i=c.createElement(A,{key:e.key,layoutInfo:e.layoutInfo,virtualizer:e.virtualizer,parent:n==null?void 0:n.layoutInfo},e.rendered),{collection:l,layout:o}=e.virtualizer,s=e.content;return(s==null?void 0:s.type)==="item"&&t&&o.getDropTargetLayoutInfo&&(i=c.createElement(c.Fragment,{key:e.key},D(n,e,{type:"item",key:e.content.key,dropPosition:"before"},t),i,W.$7135fc7d473fd974$export$2dbbd341daed716d(l,s,a=>D(n,e,a,t)))),i}function D(n,e,t,i){let l=i(t);if(l){let o=e.virtualizer.layout.getDropTargetLayoutInfo(t);l=c.createElement(A,{layoutInfo:o,virtualizer:e.virtualizer,parent:n==null?void 0:n.layoutInfo},l)}return l}class $e extends ue{getContentSize(){var t;const e=(t=this==null?void 0:this.virtualizer)==null?void 0:t.collection.getKeys();return Array.from(e||[]).forEach(i=>{this.getLayoutInfo(i)}),this.contentSize}}const Se="_listBox_ts7z5_4",Re="_listBoxPopover_ts7z5_16",ze="_listBoxSectionHeading_ts7z5_31",He="_listBoxButton_ts7z5_41",Ce="_listBoxItem_ts7z5_53",ke="_listBoxLoadMoreItem_ts7z5_99",k={listBox:Se,listBoxPopover:Re,listBoxSectionHeading:ze,listBoxButton:He,listBoxItem:Ce,listBoxLoadMoreItem:ke},_e=({className:n,children:e,...t})=>R.jsx(me,{layout:$e,layoutOptions:{headingHeight:44},children:R.jsx(V.$eed445e0843c11d0$export$41f133550aa26f48,{className:O.clsx(k.listBox,n),...t,children:e})}),Le=({children:n,className:e,...t})=>R.jsx(V.$eed445e0843c11d0$export$a11e76429ed99b4,{className:O.clsx(k.listBoxItem,e),...t,children:n}),Ne=({className:n,children:e,...t})=>R.jsx(ie.$07b14b47974efb58$export$5b6b19405a83ff9d,{className:O.clsx(n,k.listBoxPopover),offset:0,...t,children:e}),Ee=({children:n,name:e,...t})=>R.jsxs(V.$eed445e0843c11d0$export$dca12b0bb56e4fc,{...t,children:[R.jsx(le.$72a5793c14baf454$export$8b251419efc915eb,{className:k.listBoxSectionHeading,children:e}),n]});exports.ListBox=_e;exports.ListBoxItem=Le;exports.ListBoxPopover=Ne;exports.ListBoxSection=Ee;exports.styles=k;
|