@midas-ds/components 15.2.16 → 15.2.17
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-BC1ogvtn.cjs → AccordionItem-BNRyRwQ6.cjs} +1 -1
- package/{AccordionItem-DDqHaLf6.js → AccordionItem-DojgZmLR.js} +8 -8
- package/{BadgeContainer-BZl6mSeb.cjs → BadgeContainer-CumdQ7zn.cjs} +1 -1
- package/{BadgeContainer-DilMiV6u.js → BadgeContainer-R5NxVbk3.js} +8 -8
- package/{Breadcrumbs-CbsyTxGT.cjs → Breadcrumbs-B9TILEP2.cjs} +1 -1
- package/{Breadcrumbs-DTlCghjv.js → Breadcrumbs-C9ZQZqbb.js} +14 -14
- package/{Button-CPtsYcdR.cjs → Button-CU5CMW5J.cjs} +1 -1
- package/{Button-DQKRTkoz.js → Button-DPzexc8J.js} +8 -8
- package/{Button-BuelSBWx.cjs → Button-V-NwloHK.cjs} +1 -1
- package/{Button-aWvg3R6-.js → Button-XUO3qx30.js} +2 -2
- package/CHANGELOG.md +10 -0
- package/Card-BLA8mg9h.cjs +1 -0
- package/{Card-BIx_JcUG.js → Card-RTsgP4bD.js} +5 -5
- package/{CharacterCounter-mifF3s5f.js → CharacterCounter-CgFTT3Zm.js} +8 -8
- package/{CharacterCounter-C8PalBAH.cjs → CharacterCounter-DLNqoZBq.cjs} +1 -1
- package/{Checkbox-CsITchPQ.js → Checkbox-BBAfwI1J.js} +16 -16
- package/{Checkbox-LGIr8OfT.cjs → Checkbox-DYushCuC.cjs} +1 -1
- package/{CheckboxGroup-DDlcBok0.js → CheckboxGroup-LDeB3_o_.js} +28 -28
- package/{CheckboxGroup-CWd56Chi.cjs → CheckboxGroup-rz-HXM-r.cjs} +1 -1
- package/{Collection-D1Z3WPJl.js → Collection-CekMPzl5.js} +4 -4
- package/{Collection-BSbwKliU.cjs → Collection-DrQ_ESeV.cjs} +1 -1
- package/{ColorSchemeSwitch-DK2w93PC.js → ColorSchemeSwitch-D9f8DZsT.js} +10 -10
- package/{ColorSchemeSwitch-AM8Xon5u.cjs → ColorSchemeSwitch-DxlcOHsj.cjs} +1 -1
- package/{ComboBox-1tegUEU9.cjs → ComboBox-V4T2-9Mw.cjs} +1 -1
- package/{ComboBox-fZkf6iu-.js → ComboBox-c5xYN3zf.js} +30 -30
- package/{DateField-DECtAInU.cjs → DateField-BnIcfig_.cjs} +1 -1
- package/{DateField-CR5ijf3n.js → DateField-CjHO2861.js} +4 -4
- package/{DateInputDivider-DCOj8K0x.js → DateInputDivider-CV6FTyPC.js} +25 -25
- package/{DateInputDivider-DJN5KyLX.cjs → DateInputDivider-DZtU3D2_.cjs} +1 -1
- package/{DateRangePicker-DWmTqKPq.cjs → DateRangePicker-BTeCZDUQ.cjs} +1 -1
- package/{DateRangePicker-CrJDxUZj.js → DateRangePicker-CrXVxAxN.js} +21 -21
- package/{Dialog-BTPcQpo0.cjs → Dialog-BB93NpJv.cjs} +1 -1
- package/{Dialog-CaTfGjcg.cjs → Dialog-BT_ScYmN.cjs} +1 -1
- package/{Dialog-D3T0xD_f.js → Dialog-BuVUeIcW.js} +58 -58
- package/{Dialog-TzVU-s_8.js → Dialog-D1jMDNFB.js} +34 -34
- package/{DragAndDrop-37cBrgqG.js → DragAndDrop-B94opnY0.js} +2 -2
- package/{DragAndDrop-pskCjm3i.cjs → DragAndDrop-CQ-kaSTB.cjs} +1 -1
- package/{Dropdown-DH4yxU4i.js → Dropdown-B9hTiV7E.js} +2 -2
- package/{Dropdown-6EdInTPA.cjs → Dropdown-CiPioclP.cjs} +1 -1
- package/{FieldError-DwYQXCwP.cjs → FieldError-CKv6khcH.cjs} +1 -1
- package/FieldError-yPJ1LnNe.js +48 -0
- package/{FileUpload-AW94AMj4.cjs → FileUpload-CHt_ZPHH.cjs} +1 -1
- package/{FileUpload-BP7myomD.js → FileUpload-CX0VALvB.js} +13 -13
- package/{Group-BGDzFZ4R.cjs → Group-C4SHEwYa.cjs} +1 -1
- package/{Group-C-bh9aEE.js → Group-yRJMENe9.js} +6 -6
- package/Heading-BltB0sR2.cjs +1 -0
- package/{Heading-BRErvUe8.js → Heading-D3uz-ZGT.js} +14 -14
- package/{Hidden-B5ir3Lei.js → Hidden-C9KWUR7b.js} +2 -2
- package/InfoBanner-DLidXEIJ.cjs +1 -0
- package/{InfoBanner-CgSm9bjk.js → InfoBanner-NnTo60iD.js} +20 -20
- package/{Input-B6G4aU36.js → Input-D96X8c5u.js} +9 -9
- package/{Input-CpMWCSE3.cjs → Input-T_vwx812.cjs} +1 -1
- package/Label-BR5JXGOU.cjs +1 -0
- package/{Label-xTQ2XGqY.js → Label-DBHKiX9x.js} +11 -11
- package/{Layout-3vZ97J1E.cjs → Layout-CcLUSsFq.cjs} +1 -1
- package/{Layout-CSujs98x.js → Layout-XNVILg6E.js} +7 -7
- package/{Link-BPg_SBiF.cjs → Link-BMzDJfwb.cjs} +1 -1
- package/{Link-bblcx0a9.js → Link-DYfsCodh.js} +10 -10
- package/{Link-BEXS7vVU.js → Link-KjDGW0W7.js} +1 -1
- package/{Link-MUiihlbG.cjs → Link-yaPWLaxX.cjs} +1 -1
- package/{LinkButton-zk257klG.cjs → LinkButton-CcTcgPfZ.cjs} +1 -1
- package/{LinkButton-Dr3wO2Gq.js → LinkButton-Dcij7EgN.js} +1 -1
- package/{ListBox-CWEqZ218.cjs → ListBox-B6CxF6d1.cjs} +1 -1
- package/{ListBox-BADQOOws.cjs → ListBox-D2PxR1uD.cjs} +1 -1
- package/{ListBox-C_GeXABu.js → ListBox-DH74Rs1l.js} +16 -16
- package/{ListBox-BD1aTOHB.js → ListBox-DJLO33c1.js} +7 -7
- package/{ListBoxLoadMoreItem-CXmWy9ne.cjs → ListBoxLoadMoreItem-BbXE50c3.cjs} +1 -1
- package/{ListBoxLoadMoreItem-CPUXQbY-.js → ListBoxLoadMoreItem-CTC9dTKI.js} +4 -4
- package/{ListBoxSection-NmxG2Q87.cjs → ListBoxSection-CjO-E9-2.cjs} +1 -1
- package/{ListBoxSection-CzJCL9XA.js → ListBoxSection-DwK6r3P1.js} +4 -4
- package/{ListKeyboardDelegate-RT2g6YNq.js → ListKeyboardDelegate-BP9HiObq.js} +3 -3
- package/{ListKeyboardDelegate-6U5oNrPf.cjs → ListKeyboardDelegate-BchDDJ1l.cjs} +1 -1
- package/{Logo-YY9hQ8G3.cjs → Logo-CE31Mobw.cjs} +1 -1
- package/{Logo-DJIcUslN.js → Logo-CxRoCHCJ.js} +1 -1
- package/{OverlayArrow-C2rMXHUL.cjs → OverlayArrow-BxbxesPA.cjs} +1 -1
- package/{OverlayArrow--IqDwz6a.js → OverlayArrow-DbP3KJ3e.js} +4 -4
- package/{Popover-BPDHYdyp.cjs → Popover-CzRe8oME.cjs} +1 -1
- package/{Popover-DMbH3ZtW.js → Popover-jipaNdg1.js} +2 -2
- package/{PressResponder-zxT2DkkQ.js → PressResponder-B8QS6rPH.js} +9 -9
- package/PressResponder-BASquPoE.cjs +1 -0
- package/{ProgressBar-BvUEuwej.cjs → ProgressBar-CVROdxrr.cjs} +1 -1
- package/{ProgressBar-DpW83aW8.js → ProgressBar-sAc-CTDa.js} +2 -2
- package/{Radio-CrGDD9gd.cjs → Radio-BAIVg7DK.cjs} +1 -1
- package/{Radio-BrEsru2F.js → Radio-U5Q_wuvl.js} +29 -29
- package/RangeCalendar-ZpFjRmGW.cjs +1 -0
- package/{RangeCalendar-KRDfh41H.js → RangeCalendar-sta-ATTE.js} +417 -424
- package/{SSRProvider-D8lZ0o6A.js → SSRProvider-40TXmsUG.js} +5 -5
- package/{SSRProvider-DZRLwxPS.cjs → SSRProvider-Bc-sMhsT.cjs} +1 -1
- package/{SearchField-DV2ul88x.cjs → SearchField-D5BbJ77B.cjs} +1 -1
- package/{SearchField-CNR3stL5.js → SearchField-jBQi87i2.js} +6 -6
- package/{Select-CdYT4kpX.cjs → Select-BO3gAY30.cjs} +1 -1
- package/{Select-CuT3WEGZ.cjs → Select-CBM79TIA.cjs} +1 -1
- package/{Select-C5I2ETSv.js → Select-Cvf0aNOE.js} +87 -87
- package/{Select-DdkmSzvp.js → Select-DnkSPYHw.js} +28 -28
- package/{SelectionIndicator-CD2Lb431.cjs → SelectionIndicator-CMe7Gwdc.cjs} +1 -1
- package/{SelectionIndicator-B5J-eND9.js → SelectionIndicator-OwhRl98A.js} +5 -5
- package/{SelectionManager-C4hvFZl0.cjs → SelectionManager-CzZrRNIe.cjs} +1 -1
- package/{SelectionManager-bnxBDhgb.js → SelectionManager-hTlTNJoc.js} +10 -10
- package/{Separator-wX0D6lz6.js → Separator-6oe0Omo4.js} +5 -5
- package/{Separator-BBG70twJ.js → Separator-B5O-ZdO-.js} +2 -2
- package/{Separator-1F9qEsVw.cjs → Separator-BAxldD13.cjs} +1 -1
- package/{Separator-B-5qmzIF.cjs → Separator-BQdeWwPF.cjs} +1 -1
- package/{Spinner-6nei2CMj.cjs → Spinner-ClrJl6T1.cjs} +1 -1
- package/{Spinner-C29Pyxlj.js → Spinner-P_tlg0BC.js} +2 -2
- package/{TabList-BxH4TJ7e.js → TabList-UAMkDM4u.js} +14 -14
- package/{TabList-CZc7EztN.cjs → TabList-WqHdKQY9.cjs} +1 -1
- package/{Table-CLvuc1Tg.js → Table-Bi1Yh3if.js} +22 -22
- package/{Table-DjPfb1nc.cjs → Table-DM-yp4kW.cjs} +1 -1
- package/{Tag-o_2RkHKz.js → Tag-C0SQSoBS.js} +47 -47
- package/{Tag-DGr61ePE.cjs → Tag-CpIiPlmz.cjs} +1 -1
- package/{Text-6Fdknq88.js → Text-BV2IV9cT.js} +1 -1
- package/{Text-D29KP4_q.cjs → Text-DRzd1SY7.cjs} +1 -1
- package/{Text-B30xuDOt.js → Text-DZzw-XzG.js} +3 -3
- package/{Text-BiDSbNaP.cjs → Text-gyLWHlGg.cjs} +1 -1
- package/TextArea-B2fLaPjb.cjs +1 -0
- package/TextArea-DoKWGzKO.js +127 -0
- package/{TextField-1_-3gKYa.js → TextField-Cl3vyG0o.js} +25 -25
- package/{TextField-6v1u8c__.cjs → TextField-DZrpW2LM.cjs} +1 -1
- package/{Toast-B46a1EZE.js → Toast-BKGbJIit.js} +16 -16
- package/{Toast-DRBZ_2hx.cjs → Toast-Cm3XIR1Q.cjs} +1 -1
- package/{ToggleButtonGroup-H5EyZXFC.js → ToggleButtonGroup-CAXtCb2Z.js} +7 -7
- package/{ToggleButtonGroup-DWqPFJWL.cjs → ToggleButtonGroup-QLhBIE7_.cjs} +1 -1
- package/{Tooltip-CPn8DVh8.cjs → Tooltip--GMAv7cM.cjs} +1 -1
- package/{Tooltip-CTF8e-pm.js → Tooltip-CR5_QO1U.js} +6 -6
- package/{VisuallyHidden-CrRi8fmq.cjs → VisuallyHidden-D1o4ugWh.cjs} +1 -1
- package/{VisuallyHidden-BCa6ThRH.js → VisuallyHidden-DsmiKXve.js} +8 -8
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +1 -1
- package/assets/RangeCalendar.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 +1 -1
- package/calendar/CalendarGrid.d.ts +0 -1
- 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/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-Dl_saGB6.js → context-CGNJ3grH.js} +11 -11
- package/{context-UOrD6Zxk.cjs → context-Df3XbgBG.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/{getScrollParent-DL0OH1RF.cjs → getScrollParent-DFEQoVP1.cjs} +1 -1
- package/{getScrollParent-DcNANHTB.js → getScrollParent-W_3mSk76.js} +1 -1
- package/heading/index.cjs +1 -1
- package/heading/index.js +1 -1
- package/{index-7BVQKWjP.js → index-DUrDdRht.js} +19 -19
- package/{index-BifZiB8e.cjs → index-aWpd9TiP.cjs} +1 -1
- package/index.cjs +1 -1
- package/index.js +46 -46
- package/inertValue-B3AFhVG4.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/legacy-select/index.cjs +1 -1
- package/legacy-select/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 +3 -3
- 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-oYrDoKjU.js → mergeProps-CdO3Q0hv.js} +1 -1
- package/{mergeProps-D9EPHb19.cjs → mergeProps-DkKMzSB1.cjs} +1 -1
- package/modal/index.cjs +1 -1
- package/modal/index.js +2 -2
- package/package.json +1 -1
- 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/{scrollIntoView-CogxjvPU.cjs → scrollIntoView-BuDouLxy.cjs} +1 -1
- package/{scrollIntoView-LRRMWgN9.js → scrollIntoView-CsMRNIXg.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/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/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-BuHg3SHI.cjs → useButton-DeY9T2HW.cjs} +1 -1
- package/{useButton-aiD_OMdm.js → useButton-I_nWYat3.js} +3 -3
- package/{useDateFormatter-BjUtrG4h.js → useDateFormatter-CFc48go7.js} +5 -5
- package/{useDateFormatter-DsPmipft.cjs → useDateFormatter-CKwtEDMP.cjs} +1 -1
- package/{useDescription-D-EGF3RO.cjs → useDescription-BhWkiNqp.cjs} +1 -1
- package/{useDescription-6jSV4EKe.js → useDescription-DUuw8t75.js} +1 -1
- package/{useEvent-ChPThFqF.js → useEvent-BB5JW--J.js} +1 -1
- package/useEvent-CzE2_ce_.cjs +1 -0
- package/{useField-yjDSH-M4.cjs → useField-CLnlAiTx.cjs} +1 -1
- package/{useField-Bf6sH2Px.js → useField-CuqjH99D.js} +2 -2
- package/{useFilter-DMfUE0Pr.js → useFilter-CV6Y6s1Y.js} +1 -1
- package/{useFilter-Dg_Msy0o.cjs → useFilter-ChCxw0cP.cjs} +1 -1
- package/{useFocusRing-BV6zA8CX.cjs → useFocusRing-CMej8-eL.cjs} +1 -1
- package/{useFocusRing-DAZgolYd.js → useFocusRing-D9txYLox.js} +2 -2
- package/{useFocusWithin-Bfslfw41.js → useFocusWithin-DAdltjwX.js} +1 -1
- package/{useFocusWithin-CrScjOpV.cjs → useFocusWithin-DTieJstr.cjs} +1 -1
- package/{useFocusable--wi5KJXc.js → useFocusable-BCvZRQpU.js} +14 -14
- package/{useFocusable-Sz45n7Ye.cjs → useFocusable-XNvXY0IY.cjs} +1 -1
- package/{useFormValidation-BgOffXI-.js → useFormValidation-Ccwuq1Xc.js} +2 -2
- package/{useFormValidation-pVNhWoaN.cjs → useFormValidation-CtcsyZTC.cjs} +1 -1
- package/{useHasTabbableChild-CqUFT0lE.js → useHasTabbableChild--WqN-wjd.js} +2 -2
- package/{useHasTabbableChild-CdkTG0q5.cjs → useHasTabbableChild-BPIkv0CH.cjs} +1 -1
- package/{useHighlightSelectionDescription-Cb6lF44_.js → useHighlightSelectionDescription-BftWPY0o.js} +5 -5
- package/{useHighlightSelectionDescription-P3sZZm15.cjs → useHighlightSelectionDescription-D0HozcRN.cjs} +1 -1
- package/{useHover-DIDiFsU7.cjs → useHover-GqlPs4gX.cjs} +1 -1
- package/{useHover-BkQu__4t.js → useHover-HEE64RY1.js} +2 -2
- package/{useLabels-Cu5Jf9jq.js → useLabels-C19Y6OsI.js} +1 -1
- package/{useLabels-CU8PN8IQ.cjs → useLabels-DTNJ-eDV.cjs} +1 -1
- package/{useListState-DeBExb3v.js → useListState-2kcEzGOD.js} +1 -1
- package/{useListState-BCVYtjD-.cjs → useListState-C3K6nOoP.cjs} +1 -1
- package/{useLocalizedStringFormatter-m7LExKN3.js → useLocalizedStringFormatter-3gSCwH4b.js} +1 -1
- package/{useLocalizedStringFormatter-Dfow0G-0.cjs → useLocalizedStringFormatter-BYyiOWPo.cjs} +1 -1
- package/useLocalizedStringFormatter-BoQQ3og7.cjs +1 -0
- package/{useLocalizedStringFormatter-D1ErlkJ8.js → useLocalizedStringFormatter-rriWtum4.js} +1 -1
- package/{usePress-DPxp2Cij.js → usePress-DgZWZTrq.js} +15 -15
- package/{usePress-BQdBua-S.cjs → usePress-HGQyU13u.cjs} +2 -2
- package/{useSingleSelectListState-HaZMDvFf.js → useSingleSelectListState-BGYovRKl.js} +1 -1
- package/{useSingleSelectListState-CdlkYnNt.cjs → useSingleSelectListState-CP56TMfm.cjs} +1 -1
- package/{useTextField-CMt3kP3D.cjs → useTextField-CYqmq5ny.cjs} +1 -1
- package/{useTextField-BwMgd3fF.js → useTextField-DPZIYLoT.js} +7 -7
- package/useToggleState-SqDyNfRi.cjs +1 -0
- package/{useUpdateEffect-sk3kiVGz.cjs → useUpdateEffect-C5YQs_1w.cjs} +1 -1
- package/{utils-ZN3Na38z.cjs → utils-ByR8yLzr.cjs} +1 -1
- package/{utils-DdKRtUsl.js → utils-DH_ZoHeL.js} +1 -1
- package/{utils-BJ6_Ry69.js → utils-DU-Pvaj9.js} +6 -6
- package/{utils-CByogC0r.cjs → utils-Do__sWed.cjs} +1 -1
- package/Card-Du2Tzg4R.cjs +0 -1
- package/FieldError-DQ61agyq.js +0 -48
- package/Heading-DWSQCI4U.cjs +0 -1
- package/InfoBanner-Dc5gf1JR.cjs +0 -1
- package/Label-B3LMMM2v.cjs +0 -1
- package/PressResponder-DNelELQh.cjs +0 -1
- package/RangeCalendar-Cq-PcfFg.cjs +0 -1
- package/TextArea-B0OyuNe6.cjs +0 -1
- package/TextArea-Fvhjs-NI.js +0 -127
- package/inertValue-BWmZ1afe.cjs +0 -1
- package/useEvent-DnWDW9C-.cjs +0 -1
- package/useLocalizedStringFormatter-MAvCRfhy.cjs +0 -1
- package/useToggleState-DaxmInOW.cjs +0 -1
|
@@ -2,16 +2,16 @@ import { jsxs as p, jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import * as f from "react";
|
|
3
3
|
import t from "react";
|
|
4
4
|
import { c as b } from "./clsx-jbLnTBqA.js";
|
|
5
|
-
import { d } from "./Button-
|
|
6
|
-
import { P as v } from "./Popover-
|
|
7
|
-
import { B as u } from "./Button-
|
|
8
|
-
import { $ as P } from "./Dialog-
|
|
5
|
+
import { d } from "./Button-DPzexc8J.js";
|
|
6
|
+
import { P as v } from "./Popover-jipaNdg1.js";
|
|
7
|
+
import { B as u } from "./Button-XUO3qx30.js";
|
|
8
|
+
import { $ as P } from "./Dialog-BuVUeIcW.js";
|
|
9
9
|
import { I as g } from "./info-kdfED7Wh.js";
|
|
10
|
-
import { u as x } from "./useLocalizedStringFormatter-
|
|
11
|
-
import './assets/Label.css';const _ = "_labelBase_f5wtf_1",
|
|
10
|
+
import { u as x } from "./useLocalizedStringFormatter-3gSCwH4b.js";
|
|
11
|
+
import './assets/Label.css';const _ = "_labelBase_f5wtf_1", I = {
|
|
12
12
|
labelBase: _
|
|
13
|
-
},
|
|
14
|
-
labelPopover:
|
|
13
|
+
}, $ = "_labelPopover_1iatl_1", L = "_labelPopoverTrigger_1iatl_7", m = {
|
|
14
|
+
labelPopover: $,
|
|
15
15
|
labelPopoverTrigger: L
|
|
16
16
|
}, T = { moreInfo: "More info" }, B = { moreInfo: "Mer information" }, C = {
|
|
17
17
|
en: T,
|
|
@@ -42,7 +42,7 @@ import './assets/Label.css';const _ = "_labelBase_f5wtf_1", $ = {
|
|
|
42
42
|
]
|
|
43
43
|
}
|
|
44
44
|
);
|
|
45
|
-
}, i = t.createContext(void 0),
|
|
45
|
+
}, i = t.createContext(void 0), S = ({ children: e, popover: o }) => {
|
|
46
46
|
const a = t.useId();
|
|
47
47
|
return o ? /* @__PURE__ */ r(i.Provider, { value: { popoverId: a }, children: /* @__PURE__ */ p("div", { className: m.labelPopover, children: [
|
|
48
48
|
e,
|
|
@@ -55,7 +55,7 @@ import './assets/Label.css';const _ = "_labelBase_f5wtf_1", $ = {
|
|
|
55
55
|
...s
|
|
56
56
|
}) => {
|
|
57
57
|
const l = {
|
|
58
|
-
className: b(
|
|
58
|
+
className: b(I.labelBase, o),
|
|
59
59
|
elementType: a || c,
|
|
60
60
|
...s
|
|
61
61
|
}, n = f.useContext(i);
|
|
@@ -70,5 +70,5 @@ import './assets/Label.css';const _ = "_labelBase_f5wtf_1", $ = {
|
|
|
70
70
|
};
|
|
71
71
|
export {
|
|
72
72
|
W as L,
|
|
73
|
-
|
|
73
|
+
S as a
|
|
74
74
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('./assets/Layout.css');const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";require('./assets/Layout.css');const e=require("react/jsx-runtime"),S=require("./GridItem-BZ8eOXMB.cjs"),w=require("react"),x=require("./clsx-DKOfLqne.cjs"),L=require("./Button-CU5CMW5J.cjs"),C=require("./Link-yaPWLaxX.cjs"),E=require("./Tooltip--GMAv7cM.cjs"),j=require("./BadgeContainer-CumdQ7zn.cjs"),y=require("./createLucideIcon-H_Gy5FIB.cjs"),T=require("./usePress-HGQyU13u.cjs"),N=require("./useLocalizedStringFormatter-BYyiOWPo.cjs"),H=require("./variables-CVumCR9l.cjs"),k=require("./Logo-CE31Mobw.cjs"),G=require("./x-DRkCcaDU.cjs");function D(a){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const r in a)if(r!=="default"){const t=Object.getOwnPropertyDescriptor(a,r);Object.defineProperty(n,r,t.get?t:{enumerable:!0,get:()=>a[r]})}}return n.default=a,Object.freeze(n)}const b=D(w);const F=[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]],W=y.createLucideIcon("menu",F);const R=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],A=y.createLucideIcon("panel-left-close",R);const X=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],J=y.createLucideIcon("panel-left-open",X),K="_baseLayout_7ccl4_1",Q="_mainContent_7ccl4_10",U="_header_7ccl4_15",V="_headerExternal_7ccl4_26",Y="_headerContent_7ccl4_41",Z="_logo_7ccl4_60",ee="_headerItems_7ccl4_69",se="_toggleButton_7ccl4_75",ae="_sidebar_7ccl4_83",te="_main_7ccl4_10",ne="_app_7ccl4_116",re="_sidebarOpened_7ccl4_124",ie="_sidebarHeader_7ccl4_128",ce="_appName_7ccl4_140",oe="_collapseButton_7ccl4_147",le="_sidebarCollapsed_7ccl4_156",de="_userName_7ccl4_166",me="_userTitle_7ccl4_184",pe="_title_7ccl4_196",ue="_sidebarNav_7ccl4_207",xe="_list_7ccl4_213",_e="_listGroupTitle_7ccl4_219",he="_listItem_7ccl4_226",be="_listItemCollapsed_7ccl4_231",je="_listLink_7ccl4_235",ve="_listLinkCollapsed_7ccl4_298",fe="_active_7ccl4_303",Ne="_backdrop_7ccl4_330",ge="_backdropOpened_7ccl4_340",ke="_skipToContent_7ccl4_358",Ce="_navbar_7ccl4_372",Le="_navbarList_7ccl4_384",ye="_navbarItem_7ccl4_406",Ie="_headerContentExternal_7ccl4_457",Me="_logoExternalContainer_7ccl4_465",Se="_logoExternal_7ccl4_465",Ee="_logoExternalDesktop_7ccl4_477",Be="_navbarWrapper_7ccl4_486",s={baseLayout:K,mainContent:Q,header:U,headerExternal:V,headerContent:Y,logo:Z,headerItems:ee,toggleButton:se,sidebar:ae,main:te,app:ne,sidebarOpened:re,sidebarHeader:ie,appName:ce,collapseButton:oe,sidebarCollapsed:le,userName:de,userTitle:me,title:pe,sidebarNav:ue,list:xe,listGroupTitle:_e,listItem:he,listItemCollapsed:be,listLink:je,listLinkCollapsed:ve,active:fe,backdrop:Ne,backdropOpened:ge,skipToContent:ke,navbar:Ce,navbarList:Le,navbarItem:ye,headerContentExternal:Ie,logoExternalContainer:Me,logoExternal:Se,logoExternalDesktop:Ee,navbarWrapper:Be},O=b.createContext(void 0),ze=({items:a,title:n,user:r,app:t,children:i,clientSideRouter:l,clientSideHref:o,headerChildren:u,isCollapsed:p,setIsCollapsed:d,isOpened:_,setIsOpened:m,variant:h,id:v})=>e.jsx(O.Provider,{value:{items:a,title:n,user:r,app:t,headerChildren:u,isCollapsed:p,setIsCollapsed:d,isOpened:_,setIsOpened:m,clientSideRouter:l,clientSideHref:o,variant:h,id:v},children:i}),f=()=>{const a=b.useContext(O);if(!a)throw new Error("useLayoutContext must be used within a LayoutProvider");return a},I=({title:a,href:n,icon:r,active:t,hasBadge:i})=>{const{isCollapsed:l,setIsOpened:o,clientSideHref:u}=f(),p=u?u(n):n,[d,_]=b.useState(!1);return b.useEffect(()=>{typeof window<"u"&&_(t??window.location.pathname===p)},[t,p]),l?e.jsxs(E.TooltipTrigger,{children:[e.jsx(C.$4f118338184dc1d9$export$a6c7ac8248d6e38a,{href:n,"aria-label":a,className:x.clsx(s.listLink,s.listLinkCollapsed,d&&s.active),onPress:()=>o?.(!1),children:e.jsxs(j.BadgeContainer,{children:[e.jsx(r,{size:20,"aria-label":a}),i&&e.jsx(j.Badge,{})]})}),e.jsx(E.Tooltip,{placement:"right",children:a})]}):e.jsxs(C.$4f118338184dc1d9$export$a6c7ac8248d6e38a,{href:n,"aria-label":a,className:x.clsx(s.listLink,d&&s.active),onPress:()=>o?.(!1),children:[e.jsxs(j.BadgeContainer,{children:[e.jsx(r,{size:20}),i&&e.jsx(j.Badge,{})]}),a]})},Te={closeMenu:"Close menu",openMenu:"Open menu",maximizeMenu:"Maximize menu",minimizeMenu:"Minimize menu",sidebarMenu:"Sidebar menu",bottomMenu:"Bottom menu",skipToContent:"Skip to main content"},Oe={closeMenu:"Stäng meny",openMenu:"Öppna meny",maximizeMenu:"Maximera meny",minimizeMenu:"Minimera meny",sidebarMenu:"Sidomeny",bottomMenu:"Bottenmeny",skipToContent:"Hoppa till huvudinnehåll"},g={en:Te,sv:Oe},P=()=>{const{items:a,app:n,isOpened:r,isCollapsed:t,setIsCollapsed:i,setIsOpened:l,clientSideRouter:o,clientSideHref:u,id:p}=f(),d=N.useLocalizedStringFormatter(g),_=({group:m})=>e.jsx("ul",{className:s.list,children:m.items.map((h,v)=>e.jsx("li",{className:x.clsx(s.listItem,t&&s.listItemCollapsed),children:e.jsx(I,{...h})},"link_"+v))});return b.useEffect(()=>{const m=h=>{h.key==="Escape"&&l!==void 0&&l(!1)};return window.addEventListener("keydown",m),()=>{window.removeEventListener("keydown",m)}},[l]),e.jsxs("aside",{id:p,className:x.clsx(s.sidebar,t&&s.sidebarCollapsed,r&&s.sidebarOpened),children:[e.jsxs("div",{className:s.sidebarHeader,children:[!t&&e.jsx("p",{className:s.appName,children:n.name}),e.jsx(L.Button,{variant:"icon","aria-label":t?d.format("maximizeMenu"):d.format("minimizeMenu"),onPress:()=>i(!t),className:s.collapseButton,children:t?e.jsx(J,{size:20}):e.jsx(A,{size:20})})]}),e.jsx("nav",{className:s.sidebarNav,"aria-label":d.format("sidebarMenu"),children:e.jsx("ul",{className:s.list,children:a.map((m,h)=>e.jsxs("li",{children:[m.title&&!t&&e.jsx("p",{className:s.listGroupTitle,children:m.title}),o?e.jsx(T.$ea8dcbcb9ea1b556$export$323e4fc2fa4753fb,{navigate:o,useHref:u,children:e.jsx(_,{group:m})}):e.jsx(_,{group:m})]},"list_"+h))})})]})},$=()=>{const{title:a,user:n,app:r,isOpened:t,setIsOpened:i,setIsCollapsed:l,headerChildren:o,variant:u,id:p}=f(),d=N.useLocalizedStringFormatter(g);return u==="external"?e.jsx("header",{className:x.clsx(s.header,s.headerExternal),children:e.jsxs("div",{className:s.headerContentExternal,children:[e.jsxs("div",{className:s.logoExternalContainer,children:[e.jsx(k.Logo,{size:"x-small",padding:!1,className:s.logoExternal}),e.jsx(k.Logo,{size:"small",padding:!1,className:s.logoExternalDesktop}),e.jsxs("div",{children:[e.jsx("p",{className:s.userName,children:n.name}),e.jsx("p",{className:s.userTitle,children:n.title})]})]}),e.jsx("div",{className:s.headerItems,children:o})]})}):e.jsxs("header",{className:s.header,style:{borderTop:`solid 4px ${r.color?r.color:H.brandPrimary}`},children:[e.jsxs("div",{className:s.headerContent,children:[e.jsx("div",{className:s.logo,children:e.jsx(k.Logo,{size:"small",padding:!1})}),t!==void 0&&e.jsx(L.Button,{variant:"icon",className:s.toggleButton,"aria-label":t?d.format("closeMenu"):d.format("openMenu"),"aria-controls":p,onPressStart:()=>{l(!1),i?.(!0)},children:t?e.jsx(G.X,{size:20,"aria-hidden":"true"}):e.jsx(W,{size:20,"aria-hidden":"true"})}),e.jsxs("div",{children:[e.jsx("p",{className:s.userName,children:n.name}),e.jsx("p",{className:s.userTitle,children:n.title}),e.jsx("p",{className:s.title,children:a})]})]}),e.jsx("div",{className:s.headerItems,children:o})]})},B=({id:a="main:first-of-type"})=>{const n=()=>{const t=document.querySelector(a);t&&(t.tabIndex=-1,t.focus(),setTimeout(()=>t.removeAttribute("tabindex"),1e3))},r=N.useLocalizedStringFormatter(g);return e.jsx(L.Button,{onPress:n,className:s.skipToContent,children:r.format("skipToContent")})},Pe=()=>{const{isOpened:a,setIsOpened:n}=f();return a?e.jsx("div",{className:x.clsx(s.backdrop,s.backdropOpened),onClick:()=>{n?.(!1)},"aria-hidden":!0}):null},q=()=>{const{items:a,clientSideRouter:n,clientSideHref:r}=f(),t=N.useLocalizedStringFormatter(g),i=a.at(0)?.items;return e.jsx("nav",{className:s.navbar,"aria-label":t.format("bottomMenu"),children:i&&e.jsx("ul",{className:x.clsx(s.navbarList),children:n?e.jsx(T.$ea8dcbcb9ea1b556$export$323e4fc2fa4753fb,{navigate:n,useHref:r,children:e.jsx(z,{items:i})}):e.jsx(z,{items:i})})})},z=({items:a})=>e.jsx(e.Fragment,{children:a.map(({href:n,active:r,icon:t,title:i,hasBadge:l},o)=>e.jsx("li",{children:e.jsxs(C.$4f118338184dc1d9$export$a6c7ac8248d6e38a,{href:n,className:x.clsx(s.navbarItem),"data-active":r,"aria-current":r&&"page",children:[e.jsxs(j.BadgeContainer,{children:[e.jsx(t,{size:20}),l&&e.jsx(j.Badge,{})]}),i]})},o))}),c=({items:a,title:n,user:r,app:t,children:i,headerChildren:l,clientSideRouter:o,clientSideHref:u,variant:p,className:d})=>{const[_,m]=b.useState(!1),[h,v]=b.useState(!1),M=b.useId();return p==="external"?e.jsx(c.Provider,{items:a,title:n,user:r,app:t,clientSideRouter:o,clientSideHref:u,headerChildren:l,isCollapsed:_,setIsCollapsed:m,variant:p,id:M,children:e.jsxs("div",{className:x.clsx(s.baseLayout,d),children:[e.jsx(B,{}),e.jsx(c.Header,{}),e.jsxs("div",{className:s.mainContent,children:[e.jsx(c.Sidebar,{}),e.jsx(S.GridItem,{children:e.jsx("main",{className:s.main,children:e.jsx("div",{className:s.app,children:i})})}),e.jsx(c.Backdrop,{})]}),e.jsx("div",{className:s.navbarWrapper,children:e.jsx(c.Navbar,{})})]})}):e.jsx(c.Provider,{items:a,title:n,user:r,app:t,clientSideRouter:o,clientSideHref:u,headerChildren:l,isCollapsed:_,setIsCollapsed:m,isOpened:h,setIsOpened:v,variant:p,id:M,children:e.jsxs("div",{className:x.clsx(s.baseLayout,d),children:[e.jsx(B,{}),e.jsx(c.Header,{}),e.jsxs("div",{className:s.mainContent,children:[e.jsx(c.Sidebar,{}),e.jsx(S.GridItem,{children:e.jsx("main",{className:s.main,children:e.jsx("div",{className:s.app,children:i})})}),e.jsx(c.Backdrop,{})]})]})})};c.Provider=ze;c.Header=$;c.Sidebar=P;c.SidebarLink=I;c.Navbar=q;c.Backdrop=Pe;exports.Header=$;exports.Layout=c;exports.Navbar=q;exports.Sidebar=P;exports.SidebarLink=I;
|
|
@@ -2,15 +2,15 @@ import { jsx as e, jsxs as r, Fragment as H } from "react/jsx-runtime";
|
|
|
2
2
|
import { G as S } from "./GridItem-YtIpL5V2.js";
|
|
3
3
|
import * as f from "react";
|
|
4
4
|
import { c as h } from "./clsx-jbLnTBqA.js";
|
|
5
|
-
import { B as M } from "./Button-
|
|
6
|
-
import { $ as y } from "./Link-
|
|
7
|
-
import { a as $, T as G } from "./Tooltip-
|
|
8
|
-
import { a as L, B as I } from "./BadgeContainer-
|
|
5
|
+
import { B as M } from "./Button-XUO3qx30.js";
|
|
6
|
+
import { $ as y } from "./Link-DYfsCodh.js";
|
|
7
|
+
import { a as $, T as G } from "./Tooltip-CR5_QO1U.js";
|
|
8
|
+
import { a as L, B as I } from "./BadgeContainer-R5NxVbk3.js";
|
|
9
9
|
import { c as E } from "./createLucideIcon-D4r5Phnh.js";
|
|
10
|
-
import { $ as O } from "./usePress-
|
|
11
|
-
import { u as C } from "./useLocalizedStringFormatter-
|
|
10
|
+
import { $ as O } from "./usePress-DgZWZTrq.js";
|
|
11
|
+
import { u as C } from "./useLocalizedStringFormatter-3gSCwH4b.js";
|
|
12
12
|
import { b as W } from "./variables-BkqZ2WGF.js";
|
|
13
|
-
import { L as g } from "./Logo-
|
|
13
|
+
import { L as g } from "./Logo-CxRoCHCJ.js";
|
|
14
14
|
import { X as j } from "./x-BXShoIAM.js";
|
|
15
15
|
import './assets/Layout.css';const D = [
|
|
16
16
|
["path", { d: "M4 12h16", key: "1lakjw" }],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('./assets/Link.css');const n=require("react/jsx-runtime"),x=require("./Link-
|
|
1
|
+
"use strict";require('./assets/Link.css');const n=require("react/jsx-runtime"),x=require("./Link-yaPWLaxX.cjs"),k=require("./clsx-DKOfLqne.cjs"),j=require("./createLucideIcon-H_Gy5FIB.cjs"),w=require("./square-arrow-out-up-right-BRD_p9sV.cjs"),f=require("./arrow-right-CG_-Xh3g.cjs");const g=[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]],q=j.createLucideIcon("arrow-down-to-line",g),p="_link_u43gv_1",L="_icon_u43gv_51",m="_standalone_u43gv_55",R="_stretched_u43gv_72",t={link:p,icon:L,standalone:m,stretched:R},v=({children:o,standalone:r,target:c,stretched:i,download:u,icon:s,className:a,as:d,...l})=>{const _=d||x.$4f118338184dc1d9$export$a6c7ac8248d6e38a,h=({...e})=>s?n.jsx(s,{...e}):u?n.jsx(q,{...e}):c==="_blank"?n.jsx(w.SquareArrowOutUpRight,{...e}):r?n.jsx(f.ArrowRight,{...e}):null;return n.jsx(_,{className:k.clsx(t.link,r&&t.standalone,i&&t.stretched,a),...l,target:c,children:n.jsxs(n.Fragment,{children:[o,n.jsx(h,{size:16,className:t.icon})]})})};exports.Link=v;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { $ as C, a as D } from "./utils-
|
|
2
|
-
import { a as u } from "./mergeProps-
|
|
1
|
+
import { $ as C, a as D } from "./utils-DU-Pvaj9.js";
|
|
2
|
+
import { a as u } from "./mergeProps-CdO3Q0hv.js";
|
|
3
3
|
import { $ as m } from "./filterDOMProps-BSVCO5jK.js";
|
|
4
4
|
import h, { forwardRef as F, createContext as E } from "react";
|
|
5
|
-
import { b as y, c as H, d as
|
|
6
|
-
import { a as
|
|
7
|
-
import { $ as
|
|
8
|
-
import { $ as V } from "./useFocusRing-
|
|
5
|
+
import { b as y, c as H, d as T, e as _ } from "./usePress-DgZWZTrq.js";
|
|
6
|
+
import { a as L } from "./useFocusable-BCvZRQpU.js";
|
|
7
|
+
import { $ as S } from "./useHover-HEE64RY1.js";
|
|
8
|
+
import { $ as V } from "./useFocusRing-D9txYLox.js";
|
|
9
9
|
function O(s, e) {
|
|
10
10
|
let { elementType: a = "a", onPress: t, onPressStart: c, onPressEnd: o, onClick: f, isDisabled: r, ...$ } = s, i = {};
|
|
11
11
|
a !== "a" && (i = {
|
|
12
12
|
role: "link",
|
|
13
13
|
tabIndex: r ? void 0 : 0
|
|
14
14
|
});
|
|
15
|
-
let { focusableProps: n } =
|
|
15
|
+
let { focusableProps: n } = L(s, e), { pressProps: d, isPressed: l } = y({
|
|
16
16
|
onPress: t,
|
|
17
17
|
onPressStart: c,
|
|
18
18
|
onPressEnd: o,
|
|
@@ -21,7 +21,7 @@ function O(s, e) {
|
|
|
21
21
|
ref: e
|
|
22
22
|
}), p = m($, {
|
|
23
23
|
labelable: !0
|
|
24
|
-
}), x = u(n, d), k = H(), v =
|
|
24
|
+
}), x = u(n, d), k = H(), v = T(s);
|
|
25
25
|
return {
|
|
26
26
|
isPressed: l,
|
|
27
27
|
linkProps: u(p, v, {
|
|
@@ -31,7 +31,7 @@ function O(s, e) {
|
|
|
31
31
|
"aria-current": s["aria-current"],
|
|
32
32
|
onClick: (P) => {
|
|
33
33
|
var b;
|
|
34
|
-
(b = d.onClick) === null || b === void 0 || b.call(d, P),
|
|
34
|
+
(b = d.onClick) === null || b === void 0 || b.call(d, P), _(P, k, s.href, s.routerOptions);
|
|
35
35
|
}
|
|
36
36
|
})
|
|
37
37
|
};
|
|
@@ -41,7 +41,7 @@ const R = /* @__PURE__ */ E(null), A = /* @__PURE__ */ F(function(e, a) {
|
|
|
41
41
|
let t = e.href && !e.isDisabled ? "a" : "span", { linkProps: c, isPressed: o } = O({
|
|
42
42
|
...e,
|
|
43
43
|
elementType: t
|
|
44
|
-
}, a), { hoverProps: f, isHovered: r } =
|
|
44
|
+
}, a), { hoverProps: f, isHovered: r } = S(e), { focusProps: $, isFocused: i, isFocusVisible: n } = V(), d = D({
|
|
45
45
|
...e,
|
|
46
46
|
defaultClassName: "react-aria-Link",
|
|
47
47
|
values: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o, jsxs as u, Fragment as p } from "react/jsx-runtime";
|
|
2
|
-
import { $ as h } from "./Link-
|
|
2
|
+
import { $ as h } from "./Link-DYfsCodh.js";
|
|
3
3
|
import { c as k } from "./clsx-jbLnTBqA.js";
|
|
4
4
|
import { c as w } from "./createLucideIcon-D4r5Phnh.js";
|
|
5
5
|
import { S as g } from "./square-arrow-out-up-right-XMqOAsOL.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const p=require("./utils-
|
|
1
|
+
"use strict";const p=require("./utils-ByR8yLzr.cjs"),P=require("./mergeProps-DkKMzSB1.cjs"),v=require("./filterDOMProps-WUskt27c.cjs"),x=require("react"),l=require("./usePress-HGQyU13u.cjs"),h=require("./useFocusable-XNvXY0IY.cjs"),E=require("./useHover-GqlPs4gX.cjs"),H=require("./useFocusRing-CMej8-eL.cjs");function y(s,e){let{elementType:r="a",onPress:a,onPressStart:f,onPressEnd:c,onClick:$,isDisabled:d,...u}=s,i={};r!=="a"&&(i={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:a,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,...i,"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),T=x.forwardRef(function(e,r){[e,r]=p.$64fa3d84918910a7$export$29f1550f4b0d4415(e,r,C);let a=e.href&&!e.isDisabled?"a":"span",{linkProps:f,isPressed:c}=y({...e,elementType:a},r),{hoverProps:$,isHovered:d}=E.$6179b936705e76d3$export$ae780daf29e6d456(e),{focusProps:u,isFocused:i,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:i,isFocusVisible:o}}),n=v.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});return delete n.onClick,x.createElement(a,{ref:r,slot:e.slot||void 0,...P.$3ef42575df84b30b$export$9d1611c77c2fe928(n,t,f,$,u),"data-focused":i||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=T;exports.$4f118338184dc1d9$export$e2509388b49734e7=C;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('./assets/LinkButton.css');const n=require("react/jsx-runtime"),f=require("./Link-
|
|
1
|
+
"use strict";require('./assets/LinkButton.css');const n=require("react/jsx-runtime"),f=require("./Link-yaPWLaxX.cjs"),m=require("./clsx-DKOfLqne.cjs"),y=require("./square-arrow-out-up-right-BRD_p9sV.cjs"),x=require("./createLucideIcon-H_Gy5FIB.cjs"),g=require("./arrow-right-CG_-Xh3g.cjs");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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as u, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { $ as j } from "./Link-
|
|
2
|
+
import { $ as j } from "./Link-DYfsCodh.js";
|
|
3
3
|
import { c as y } from "./clsx-jbLnTBqA.js";
|
|
4
4
|
import { S as p } from "./square-arrow-out-up-right-XMqOAsOL.js";
|
|
5
5
|
import { c as g } from "./createLucideIcon-D4r5Phnh.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const x=require("./Collection-BSbwKliU.cjs"),v=require("./utils-ZN3Na38z.cjs"),E=require("./DragAndDrop-pskCjm3i.cjs"),N=require("./Separator-1F9qEsVw.cjs"),te=require("./RSPContexts-XUvspq3j.cjs"),K=require("./SelectionIndicator-CD2Lb431.cjs"),re=require("./Text-BiDSbNaP.cjs"),g=require("./mergeProps-D9EPHb19.cjs"),I=require("./filterDOMProps-WUskt27c.cjs"),ae=require("./inertValue-BWmZ1afe.cjs"),r=require("react"),de=require("./usePress-BQdBua-S.cjs"),H=require("./useHover-DIDiFsU7.cjs"),ie=require("./SelectionManager-C4hvFZl0.cjs"),le=require("./useFocusWithin-CrScjOpV.cjs"),ne=require("./Button-BuelSBWx.cjs"),Q=require("./useListState-BCVYtjD-.cjs"),ce=require("./context-UOrD6Zxk.cjs"),J=require("./ListKeyboardDelegate-6U5oNrPf.cjs"),se=require("./useFocusRing-BV6zA8CX.cjs"),U=new WeakMap;function $e(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}function X(t,e){let d=U.get(t);if(!d)throw new Error("Unknown list");return`${d.id}-option-${$e(e)}`}function ue(t,e,d){let o=I.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{labelable:!0}),i=t.selectionBehavior||"toggle",l=t.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&l==="action"&&(l="override");let{listProps:a}=N.$982254629710d113$export$b95089534ab7c1fd({...t,ref:d,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,linkBehavior:l}),{focusWithinProps:n}=le.$9ab94262bd0047c7$export$420e68273165f4ec({onFocusWithin:t.onFocus,onBlurWithin:t.onBlur,onFocusWithinChange:t.onFocusChange}),c=g.$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:l,UNSTABLE_itemBehavior:t.UNSTABLE_itemBehavior});let{labelProps:u,fieldProps:$}=ne.$d191a55c9702f145$export$8467354a121f1b9f({...t,id:c,labelElementType:"span"});return{labelProps:u,listBoxProps:g.$3ef42575df84b30b$export$9d1611c77c2fe928(o,n,e.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...g.$3ef42575df84b30b$export$9d1611c77c2fe928($,a)})}}function fe(t,e,d){var o,i;let{key:l}=t,a=U.get(e);var n;let c=(n=t.isDisabled)!==null&&n!==void 0?n:e.selectionManager.isDisabled(l);var u;let $=(u=t.isSelected)!==null&&u!==void 0?u:e.selectionManager.isSelected(l);var b;let s=(b=t.shouldSelectOnPressUp)!==null&&b!==void 0?b:a?.shouldSelectOnPressUp;var D;let h=(D=t.shouldFocusOnHover)!==null&&D!==void 0?D:a?.shouldFocusOnHover;var P;let p=(P=t.shouldUseVirtualFocus)!==null&&P!==void 0?P:a?.shouldUseVirtualFocus;var y;let M=(y=t.isVirtualized)!==null&&y!==void 0?y:a?.isVirtualized,F=g.$bdb11010cef70236$export$b4cc09c592e8fdb8(),S=g.$bdb11010cef70236$export$b4cc09c592e8fdb8(),B={role:"option","aria-disabled":c||void 0,"aria-selected":e.selectionManager.selectionMode!=="none"?$:void 0};H.$c87311424ea30a05$export$9ac100e40613ea10()&&H.$c87311424ea30a05$export$78551043582a6a98()||(B["aria-label"]=t["aria-label"],B["aria-labelledby"]=F,B["aria-describedby"]=S);let f=e.collection.getItem(l);if(M){let m=Number(f?.index);B["aria-posinset"]=Number.isNaN(m)?void 0:m+1,B["aria-setsize"]=N.$453cc9f0df89c0a5$export$77d5aafae4e095b2(e.collection)}let T=a?.onAction?()=>{var m;return a==null||(m=a.onAction)===null||m===void 0?void 0:m.call(a,l)}:void 0,C=X(e,l),{itemProps:k,isPressed:L,isFocused:w,hasAction:_,allowsSelection:O}=ie.$880e95eb8b93ba9a$export$ecf600387e221c37({selectionManager:e.selectionManager,key:l,ref:d,shouldSelectOnPressUp:s,allowsDifferentPressOrigin:s&&h,isVirtualized:M,shouldUseVirtualFocus:p,isDisabled:c,onAction:T||!(f==null||(o=f.props)===null||o===void 0)&&o.onAction?g.$ff5963eb1fccf552$export$e08e3b67e392101e(f==null||(i=f.props)===null||i===void 0?void 0:i.onAction,T):void 0,linkBehavior:a?.linkBehavior,UNSTABLE_itemBehavior:a?.UNSTABLE_itemBehavior,id:C}),{hoverProps:z}=H.$6179b936705e76d3$export$ae780daf29e6d456({isDisabled:c||!h,onHoverStart(){H.$507fabe10e71c6fb$export$b9b3dfddab17db27()||(e.selectionManager.setFocused(!0),e.selectionManager.setFocusedKey(l))}}),A=I.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(f?.props);delete A.id;let q=de.$ea8dcbcb9ea1b556$export$7e924b3091a3bd18(f?.props);return{optionProps:{...B,...g.$3ef42575df84b30b$export$9d1611c77c2fe928(A,k,z,q),id:C},labelProps:{id:F},descriptionProps:{id:S},isFocused:w,isFocusVisible:w&&e.selectionManager.isFocused&&H.$507fabe10e71c6fb$export$b9b3dfddab17db27(),isSelected:$,isDisabled:c,isPressed:L,allowsSelection:O,hasAction:_}}function be(t){let{heading:e,"aria-label":d}=t,o=g.$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),V=r.createContext(null),pe=r.forwardRef(function(e,d){[e,d]=v.$64fa3d84918910a7$export$29f1550f4b0d4415(e,d,W);let o=r.useContext(V);return o?r.createElement(Y,{state:o,props:e,listBoxRef:d}):r.createElement(x.$e1995378a142960e$export$bf788dd355e3a401,{content:r.createElement(x.$e1995378a142960e$export$fb8073518f34e6ec,e)},i=>r.createElement(ve,{props:e,listBoxRef:d,collection:i}))});function ve({props:t,listBoxRef:e,collection:d}){t={...t,collection:d,children:null,items:null};let{layoutDelegate:o}=r.useContext(x.$7135fc7d473fd974$export$4feb769f8ddf26c5),i=Q.$e72dd72e1c76a225$export$2f645645f7bca764({...t,layoutDelegate:o});return r.createElement(Y,{state:i,props:t,listBoxRef:e})}function Y({state:t,props:e,listBoxRef:d}){[e,d]=v.$64fa3d84918910a7$export$29f1550f4b0d4415(e,d,te.$4e85f108e88277b8$export$b0d3ecf7112093a7);let{dragAndDropHooks:o,layout:i="stack",orientation:l="vertical",filter:a}=e,n=Q.$e72dd72e1c76a225$export$ba9d38c0f1bf2b36(t,a),{collection:c,selectionManager:u}=n,$=!!o?.useDraggableCollectionState,b=!!o?.useDroppableCollectionState,{direction:s}=ce.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{disabledBehavior:D,disabledKeys:h}=u,P=J.$325a3faab7a68acd$export$a16aca283550c30d({usage:"search",sensitivity:"base"}),{isVirtualized:p,layoutDelegate:y,dropTargetDelegate:M,CollectionRoot:F}=r.useContext(x.$7135fc7d473fd974$export$4feb769f8ddf26c5),S=r.useMemo(()=>e.keyboardDelegate||new J.$2a25aae57d74318e$export$a05409b8bb224a5a({collection:c,collator:P,ref:d,disabledKeys:h,disabledBehavior:D,layout:i,orientation:l,direction:s,layoutDelegate:y}),[c,P,d,D,h,l,s,e.keyboardDelegate,i,y]),{listBoxProps:B}=ue({...e,shouldSelectOnPressUp:$||e.shouldSelectOnPressUp,keyboardDelegate:S,isVirtualized:p},n,d),f=r.useRef($),T=r.useRef(b);r.useEffect(()=>{process.env.NODE_ENV!=="production"&&(f.current!==$&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),T.current!==b&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."))},[$,b]);let C,k,L,w=!1,_=null,O=r.useRef(null);if($&&o){C=o.useDraggableCollectionState({collection:c,selectionManager:u,preview:o.renderDragPreview?O:void 0}),o.useDraggableCollection({},C,d);let R=o.DragPreview;_=o.renderDragPreview?r.createElement(R,{ref:O},o.renderDragPreview):null}if(b&&o){k=o.useDroppableCollectionState({collection:c,selectionManager:u});let R=o.dropTargetDelegate||M||new o.ListDropTargetDelegate(c,d,{orientation:l,layout:i,direction:s});L=o.useDroppableCollection({keyboardDelegate:S,dropTargetDelegate:R},k,d),w=k.isDropTarget({type:"root"})}let{focusProps:z,isFocused:A,isFocusVisible:q}=se.$f7dceffc5ad7768b$export$4e328f61c538687f(),m=n.collection.size===0,j={isDropTarget:w,isEmpty:m,isFocused:A,isFocusVisible:q,layout:e.layout||"stack",state:n},ee=v.$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 oe=I.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});return r.createElement(K.$9bf71ea28793e738$export$20e40289641fbbb6,null,r.createElement("div",{...g.$3ef42575df84b30b$export$9d1611c77c2fe928(oe,ee,B,z,L?.collectionProps),ref:d,slot:e.slot||void 0,onScroll:e.onScroll,"data-drop-target":w||void 0,"data-empty":m||void 0,"data-focused":A||void 0,"data-focus-visible":q||void 0,"data-layout":e.layout||"stack","data-orientation":e.orientation||"vertical"},r.createElement(v.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[W,e],[V,n],[E.$612b8eb6cb90e02d$export$d188a835a7bc5783,{dragAndDropHooks:o,dragState:C,dropState:k}],[N.$431f98aba6844401$export$6615d83f6de245ce,{elementType:"div"}],[E.$612b8eb6cb90e02d$export$f55761759794cf55,{render:he}],[x.$7135fc7d473fd974$export$d40e14dec8b060a8,{name:"ListBoxSection",render:Z}]]},r.createElement(K.$c8a5a149f625efcf$export$758399f318e6385a,null,r.createElement(F,{collection:c,scrollRef:d,persistedKeys:E.$612b8eb6cb90e02d$export$d1e8e3fbb7461f6(u,o,k),renderDropIndicator:E.$612b8eb6cb90e02d$export$971707d8a129a1f7(o,k)}))),G,_))}function Z(t,e,d,o="react-aria-ListBoxSection"){let i=r.useContext(V),{dragAndDropHooks:l,dropState:a}=r.useContext(E.$612b8eb6cb90e02d$export$d188a835a7bc5783),{CollectionBranch:n}=r.useContext(x.$7135fc7d473fd974$export$4feb769f8ddf26c5),[c,u]=v.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8();var $;let{headingProps:b,groupProps:s}=be({heading:u,"aria-label":($=t["aria-label"])!==null&&$!==void 0?$:void 0}),D=v.$64fa3d84918910a7$export$4d86445c2cf5e3({defaultClassName:o,className:t.className,style:t.style,values:{}}),h=I.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{global:!0});return delete h.id,r.createElement("section",{...g.$3ef42575df84b30b$export$9d1611c77c2fe928(h,D,s),ref:e},r.createElement(N.$72a5793c14baf454$export$e0e4026c12a8bdbb.Provider,{value:{...b,ref:c}},r.createElement(n,{collection:i.collection,parent:d,renderDropIndicator:E.$612b8eb6cb90e02d$export$971707d8a129a1f7(l,a)})))}const ge=x.$e1995378a142960e$export$e953bb1cd0f19726(x.$23b9f4fcf0fe224b$export$437f11dc9b403b78,Z),xe=x.$e1995378a142960e$export$18af5c7a9e9b3664(x.$23b9f4fcf0fe224b$export$fd11f34e1d07f134,function(e,d,o){let i=v.$df56164dff5785e2$export$4338b53315abf666(d),l=r.useContext(V),{dragAndDropHooks:a,dragState:n,dropState:c}=r.useContext(E.$612b8eb6cb90e02d$export$d188a835a7bc5783),{optionProps:u,labelProps:$,descriptionProps:b,...s}=fe({key:o.key,"aria-label":e?.["aria-label"]},l,i),{hoverProps:D,isHovered:h}=H.$6179b936705e76d3$export$ae780daf29e6d456({isDisabled:!s.allowsSelection&&!s.hasAction,onHoverStart:o.props.onHoverStart,onHoverChange:o.props.onHoverChange,onHoverEnd:o.props.onHoverEnd}),P=null;n&&a&&(P=a.useDraggableItem({key:o.key},n));let p=null;c&&a&&(p=a.useDroppableItem({target:{type:"item",key:o.key,dropPosition:"on"}},c,i));let y=n&&n.isDragging(o.key),M=v.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...s,isHovered:h,selectionMode:l.selectionManager.selectionMode,selectionBehavior:l.selectionManager.selectionBehavior,allowsDragging:!!n,isDragging:y,isDropTarget: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 F=e.href?"a":"div",S=I.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});return delete S.id,delete S.onClick,r.createElement(F,{...g.$3ef42575df84b30b$export$9d1611c77c2fe928(S,M,u,D,P?.dragProps,p?.dropProps),ref:i,"data-allows-dragging":!!n||void 0,"data-selected":s.isSelected||void 0,"data-disabled":s.isDisabled||void 0,"data-hovered":h||void 0,"data-focused":s.isFocused||void 0,"data-focus-visible":s.isFocusVisible||void 0,"data-pressed":s.isPressed||void 0,"data-dragging":y||void 0,"data-drop-target":p?.isDropTarget||void 0,"data-selection-mode":l.selectionManager.selectionMode==="none"?void 0:l.selectionManager.selectionMode},r.createElement(v.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[re.$514c0188e459b4c0$export$9afb8bc826b033ea,{slots:{[v.$64fa3d84918910a7$export$c62b8e45d58ddad9]:$,label:$,description:b}}],[K.$1d5b8b8664671ef2$export$c9549807523555e0,{isSelected:s.isSelected}]]},M.children))});function he(t,e){e=v.$df56164dff5785e2$export$4338b53315abf666(e);let{dragAndDropHooks:d,dropState:o}=r.useContext(E.$612b8eb6cb90e02d$export$d188a835a7bc5783),{dropIndicatorProps:i,isHidden:l,isDropTarget:a}=d.useDropIndicator(t,o,e);return l?null:r.createElement(De,{...t,dropIndicatorProps:i,isDropTarget:a,ref:e})}function Pe(t,e){let{dropIndicatorProps:d,isDropTarget:o,...i}=t,l=v.$64fa3d84918910a7$export$4d86445c2cf5e3({...i,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:o}});return r.createElement("div",{...d,...l,role:"option",ref:e,"data-drop-target":o||void 0})}const De=r.forwardRef(Pe),me=x.$e1995378a142960e$export$18af5c7a9e9b3664(x.$23b9f4fcf0fe224b$export$8258a0665a675899,function(e,d,o){let i=r.useContext(V),{isLoading:l,onLoadMore:a,scrollOffset:n,...c}=e,u=r.useRef(null),$=r.useMemo(()=>({onLoadMore:a,collection:i?.collection,sentinelRef:u,scrollOffset:n}),[a,n,i?.collection]);E.$a5fa973c1850dd36$export$ccaea96c28e8b9e7($,u);let b=v.$64fa3d84918910a7$export$4d86445c2cf5e3({...c,id:void 0,children:o.rendered,defaultClassName:"react-aria-ListBoxLoadingIndicator",values:null}),s={tabIndex:-1};return r.createElement(r.Fragment,null,r.createElement("div",{style:{position:"relative",width:0,height:0},inert:ae.$cdc5a6778b766db2$export$a9d04c5684123369(!0)},r.createElement("div",{"data-testid":"loadMoreSentinel",ref:u,style:{position:"absolute",height:1,width:1}})),l&&b.children&&r.createElement("div",{...g.$3ef42575df84b30b$export$9d1611c77c2fe928(I.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0}),s),...b,role:"option",ref:d},b.children))});exports.$b1f0cad8af73213b$export$3585ede4d035bf14=U;exports.$b1f0cad8af73213b$export$9145995848b05025=X;exports.$eed445e0843c11d0$export$41f133550aa26f48=pe;exports.$eed445e0843c11d0$export$7c5906fe4f1f2af2=V;exports.$eed445e0843c11d0$export$7ff8f37d2d81a48d=W;exports.$eed445e0843c11d0$export$8e6d031a08cf56a1=me;exports.$eed445e0843c11d0$export$a11e76429ed99b4=xe;exports.$eed445e0843c11d0$export$dca12b0bb56e4fc=ge;
|
|
1
|
+
"use strict";const x=require("./Collection-DrQ_ESeV.cjs"),v=require("./utils-ByR8yLzr.cjs"),E=require("./DragAndDrop-CQ-kaSTB.cjs"),N=require("./Separator-BAxldD13.cjs"),te=require("./RSPContexts-XUvspq3j.cjs"),K=require("./SelectionIndicator-CMe7Gwdc.cjs"),re=require("./Text-gyLWHlGg.cjs"),g=require("./mergeProps-DkKMzSB1.cjs"),I=require("./filterDOMProps-WUskt27c.cjs"),ae=require("./inertValue-B3AFhVG4.cjs"),r=require("react"),de=require("./usePress-HGQyU13u.cjs"),H=require("./useHover-GqlPs4gX.cjs"),ie=require("./SelectionManager-CzZrRNIe.cjs"),le=require("./useFocusWithin-DTieJstr.cjs"),ne=require("./Button-V-NwloHK.cjs"),Q=require("./useListState-C3K6nOoP.cjs"),ce=require("./context-Df3XbgBG.cjs"),J=require("./ListKeyboardDelegate-BchDDJ1l.cjs"),se=require("./useFocusRing-CMej8-eL.cjs"),U=new WeakMap;function ue(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}function X(t,e){let d=U.get(t);if(!d)throw new Error("Unknown list");return`${d.id}-option-${ue(e)}`}function $e(t,e,d){let o=I.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{labelable:!0}),i=t.selectionBehavior||"toggle",l=t.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&l==="action"&&(l="override");let{listProps:a}=N.$982254629710d113$export$b95089534ab7c1fd({...t,ref:d,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,linkBehavior:l}),{focusWithinProps:n}=le.$9ab94262bd0047c7$export$420e68273165f4ec({onFocusWithin:t.onFocus,onBlurWithin:t.onBlur,onFocusWithinChange:t.onFocusChange}),c=g.$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:l,UNSTABLE_itemBehavior:t.UNSTABLE_itemBehavior});let{labelProps:$,fieldProps:u}=ne.$d191a55c9702f145$export$8467354a121f1b9f({...t,id:c,labelElementType:"span"});return{labelProps:$,listBoxProps:g.$3ef42575df84b30b$export$9d1611c77c2fe928(o,n,e.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...g.$3ef42575df84b30b$export$9d1611c77c2fe928(u,a)})}}function fe(t,e,d){var o,i;let{key:l}=t,a=U.get(e);var n;let c=(n=t.isDisabled)!==null&&n!==void 0?n:e.selectionManager.isDisabled(l);var $;let u=($=t.isSelected)!==null&&$!==void 0?$:e.selectionManager.isSelected(l);var b;let s=(b=t.shouldSelectOnPressUp)!==null&&b!==void 0?b:a?.shouldSelectOnPressUp;var D;let h=(D=t.shouldFocusOnHover)!==null&&D!==void 0?D:a?.shouldFocusOnHover;var P;let p=(P=t.shouldUseVirtualFocus)!==null&&P!==void 0?P:a?.shouldUseVirtualFocus;var y;let M=(y=t.isVirtualized)!==null&&y!==void 0?y:a?.isVirtualized,F=g.$bdb11010cef70236$export$b4cc09c592e8fdb8(),S=g.$bdb11010cef70236$export$b4cc09c592e8fdb8(),B={role:"option","aria-disabled":c||void 0,"aria-selected":e.selectionManager.selectionMode!=="none"?u:void 0};H.$c87311424ea30a05$export$9ac100e40613ea10()&&H.$c87311424ea30a05$export$78551043582a6a98()||(B["aria-label"]=t["aria-label"],B["aria-labelledby"]=F,B["aria-describedby"]=S);let f=e.collection.getItem(l);if(M){let m=Number(f?.index);B["aria-posinset"]=Number.isNaN(m)?void 0:m+1,B["aria-setsize"]=N.$453cc9f0df89c0a5$export$77d5aafae4e095b2(e.collection)}let T=a?.onAction?()=>{var m;return a==null||(m=a.onAction)===null||m===void 0?void 0:m.call(a,l)}:void 0,C=X(e,l),{itemProps:k,isPressed:L,isFocused:w,hasAction:_,allowsSelection:O}=ie.$880e95eb8b93ba9a$export$ecf600387e221c37({selectionManager:e.selectionManager,key:l,ref:d,shouldSelectOnPressUp:s,allowsDifferentPressOrigin:s&&h,isVirtualized:M,shouldUseVirtualFocus:p,isDisabled:c,onAction:T||!(f==null||(o=f.props)===null||o===void 0)&&o.onAction?g.$ff5963eb1fccf552$export$e08e3b67e392101e(f==null||(i=f.props)===null||i===void 0?void 0:i.onAction,T):void 0,linkBehavior:a?.linkBehavior,UNSTABLE_itemBehavior:a?.UNSTABLE_itemBehavior,id:C}),{hoverProps:z}=H.$6179b936705e76d3$export$ae780daf29e6d456({isDisabled:c||!h,onHoverStart(){H.$507fabe10e71c6fb$export$b9b3dfddab17db27()||(e.selectionManager.setFocused(!0),e.selectionManager.setFocusedKey(l))}}),A=I.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(f?.props);delete A.id;let q=de.$ea8dcbcb9ea1b556$export$7e924b3091a3bd18(f?.props);return{optionProps:{...B,...g.$3ef42575df84b30b$export$9d1611c77c2fe928(A,k,z,q),id:C},labelProps:{id:F},descriptionProps:{id:S},isFocused:w,isFocusVisible:w&&e.selectionManager.isFocused&&H.$507fabe10e71c6fb$export$b9b3dfddab17db27(),isSelected:u,isDisabled:c,isPressed:L,allowsSelection:O,hasAction:_}}function be(t){let{heading:e,"aria-label":d}=t,o=g.$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),V=r.createContext(null),pe=r.forwardRef(function(e,d){[e,d]=v.$64fa3d84918910a7$export$29f1550f4b0d4415(e,d,W);let o=r.useContext(V);return o?r.createElement(Y,{state:o,props:e,listBoxRef:d}):r.createElement(x.$e1995378a142960e$export$bf788dd355e3a401,{content:r.createElement(x.$e1995378a142960e$export$fb8073518f34e6ec,e)},i=>r.createElement(ve,{props:e,listBoxRef:d,collection:i}))});function ve({props:t,listBoxRef:e,collection:d}){t={...t,collection:d,children:null,items:null};let{layoutDelegate:o}=r.useContext(x.$7135fc7d473fd974$export$4feb769f8ddf26c5),i=Q.$e72dd72e1c76a225$export$2f645645f7bca764({...t,layoutDelegate:o});return r.createElement(Y,{state:i,props:t,listBoxRef:e})}function Y({state:t,props:e,listBoxRef:d}){[e,d]=v.$64fa3d84918910a7$export$29f1550f4b0d4415(e,d,te.$4e85f108e88277b8$export$b0d3ecf7112093a7);let{dragAndDropHooks:o,layout:i="stack",orientation:l="vertical",filter:a}=e,n=Q.$e72dd72e1c76a225$export$ba9d38c0f1bf2b36(t,a),{collection:c,selectionManager:$}=n,u=!!o?.useDraggableCollectionState,b=!!o?.useDroppableCollectionState,{direction:s}=ce.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{disabledBehavior:D,disabledKeys:h}=$,P=J.$325a3faab7a68acd$export$a16aca283550c30d({usage:"search",sensitivity:"base"}),{isVirtualized:p,layoutDelegate:y,dropTargetDelegate:M,CollectionRoot:F}=r.useContext(x.$7135fc7d473fd974$export$4feb769f8ddf26c5),S=r.useMemo(()=>e.keyboardDelegate||new J.$2a25aae57d74318e$export$a05409b8bb224a5a({collection:c,collator:P,ref:d,disabledKeys:h,disabledBehavior:D,layout:i,orientation:l,direction:s,layoutDelegate:y}),[c,P,d,D,h,l,s,e.keyboardDelegate,i,y]),{listBoxProps:B}=$e({...e,shouldSelectOnPressUp:u||e.shouldSelectOnPressUp,keyboardDelegate:S,isVirtualized:p},n,d),f=r.useRef(u),T=r.useRef(b);r.useEffect(()=>{process.env.NODE_ENV!=="production"&&(f.current!==u&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),T.current!==b&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."))},[u,b]);let C,k,L,w=!1,_=null,O=r.useRef(null);if(u&&o){C=o.useDraggableCollectionState({collection:c,selectionManager:$,preview:o.renderDragPreview?O:void 0}),o.useDraggableCollection({},C,d);let R=o.DragPreview;_=o.renderDragPreview?r.createElement(R,{ref:O},o.renderDragPreview):null}if(b&&o){k=o.useDroppableCollectionState({collection:c,selectionManager:$});let R=o.dropTargetDelegate||M||new o.ListDropTargetDelegate(c,d,{orientation:l,layout:i,direction:s});L=o.useDroppableCollection({keyboardDelegate:S,dropTargetDelegate:R},k,d),w=k.isDropTarget({type:"root"})}let{focusProps:z,isFocused:A,isFocusVisible:q}=se.$f7dceffc5ad7768b$export$4e328f61c538687f(),m=n.collection.size===0,j={isDropTarget:w,isEmpty:m,isFocused:A,isFocusVisible:q,layout:e.layout||"stack",state:n},ee=v.$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 oe=I.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});return r.createElement(K.$9bf71ea28793e738$export$20e40289641fbbb6,null,r.createElement("div",{...g.$3ef42575df84b30b$export$9d1611c77c2fe928(oe,ee,B,z,L?.collectionProps),ref:d,slot:e.slot||void 0,onScroll:e.onScroll,"data-drop-target":w||void 0,"data-empty":m||void 0,"data-focused":A||void 0,"data-focus-visible":q||void 0,"data-layout":e.layout||"stack","data-orientation":e.orientation||"vertical"},r.createElement(v.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[W,e],[V,n],[E.$612b8eb6cb90e02d$export$d188a835a7bc5783,{dragAndDropHooks:o,dragState:C,dropState:k}],[N.$431f98aba6844401$export$6615d83f6de245ce,{elementType:"div"}],[E.$612b8eb6cb90e02d$export$f55761759794cf55,{render:he}],[x.$7135fc7d473fd974$export$d40e14dec8b060a8,{name:"ListBoxSection",render:Z}]]},r.createElement(K.$c8a5a149f625efcf$export$758399f318e6385a,null,r.createElement(F,{collection:c,scrollRef:d,persistedKeys:E.$612b8eb6cb90e02d$export$d1e8e3fbb7461f6($,o,k),renderDropIndicator:E.$612b8eb6cb90e02d$export$971707d8a129a1f7(o,k)}))),G,_))}function Z(t,e,d,o="react-aria-ListBoxSection"){let i=r.useContext(V),{dragAndDropHooks:l,dropState:a}=r.useContext(E.$612b8eb6cb90e02d$export$d188a835a7bc5783),{CollectionBranch:n}=r.useContext(x.$7135fc7d473fd974$export$4feb769f8ddf26c5),[c,$]=v.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8();var u;let{headingProps:b,groupProps:s}=be({heading:$,"aria-label":(u=t["aria-label"])!==null&&u!==void 0?u:void 0}),D=v.$64fa3d84918910a7$export$4d86445c2cf5e3({defaultClassName:o,className:t.className,style:t.style,values:{}}),h=I.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{global:!0});return delete h.id,r.createElement("section",{...g.$3ef42575df84b30b$export$9d1611c77c2fe928(h,D,s),ref:e},r.createElement(N.$72a5793c14baf454$export$e0e4026c12a8bdbb.Provider,{value:{...b,ref:c}},r.createElement(n,{collection:i.collection,parent:d,renderDropIndicator:E.$612b8eb6cb90e02d$export$971707d8a129a1f7(l,a)})))}const ge=x.$e1995378a142960e$export$e953bb1cd0f19726(x.$23b9f4fcf0fe224b$export$437f11dc9b403b78,Z),xe=x.$e1995378a142960e$export$18af5c7a9e9b3664(x.$23b9f4fcf0fe224b$export$fd11f34e1d07f134,function(e,d,o){let i=v.$df56164dff5785e2$export$4338b53315abf666(d),l=r.useContext(V),{dragAndDropHooks:a,dragState:n,dropState:c}=r.useContext(E.$612b8eb6cb90e02d$export$d188a835a7bc5783),{optionProps:$,labelProps:u,descriptionProps:b,...s}=fe({key:o.key,"aria-label":e?.["aria-label"]},l,i),{hoverProps:D,isHovered:h}=H.$6179b936705e76d3$export$ae780daf29e6d456({isDisabled:!s.allowsSelection&&!s.hasAction,onHoverStart:o.props.onHoverStart,onHoverChange:o.props.onHoverChange,onHoverEnd:o.props.onHoverEnd}),P=null;n&&a&&(P=a.useDraggableItem({key:o.key},n));let p=null;c&&a&&(p=a.useDroppableItem({target:{type:"item",key:o.key,dropPosition:"on"}},c,i));let y=n&&n.isDragging(o.key),M=v.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...s,isHovered:h,selectionMode:l.selectionManager.selectionMode,selectionBehavior:l.selectionManager.selectionBehavior,allowsDragging:!!n,isDragging:y,isDropTarget: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 F=e.href?"a":"div",S=I.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});return delete S.id,delete S.onClick,r.createElement(F,{...g.$3ef42575df84b30b$export$9d1611c77c2fe928(S,M,$,D,P?.dragProps,p?.dropProps),ref:i,"data-allows-dragging":!!n||void 0,"data-selected":s.isSelected||void 0,"data-disabled":s.isDisabled||void 0,"data-hovered":h||void 0,"data-focused":s.isFocused||void 0,"data-focus-visible":s.isFocusVisible||void 0,"data-pressed":s.isPressed||void 0,"data-dragging":y||void 0,"data-drop-target":p?.isDropTarget||void 0,"data-selection-mode":l.selectionManager.selectionMode==="none"?void 0:l.selectionManager.selectionMode},r.createElement(v.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[re.$514c0188e459b4c0$export$9afb8bc826b033ea,{slots:{[v.$64fa3d84918910a7$export$c62b8e45d58ddad9]:u,label:u,description:b}}],[K.$1d5b8b8664671ef2$export$c9549807523555e0,{isSelected:s.isSelected}]]},M.children))});function he(t,e){e=v.$df56164dff5785e2$export$4338b53315abf666(e);let{dragAndDropHooks:d,dropState:o}=r.useContext(E.$612b8eb6cb90e02d$export$d188a835a7bc5783),{dropIndicatorProps:i,isHidden:l,isDropTarget:a}=d.useDropIndicator(t,o,e);return l?null:r.createElement(De,{...t,dropIndicatorProps:i,isDropTarget:a,ref:e})}function Pe(t,e){let{dropIndicatorProps:d,isDropTarget:o,...i}=t,l=v.$64fa3d84918910a7$export$4d86445c2cf5e3({...i,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:o}});return r.createElement("div",{...d,...l,role:"option",ref:e,"data-drop-target":o||void 0})}const De=r.forwardRef(Pe),me=x.$e1995378a142960e$export$18af5c7a9e9b3664(x.$23b9f4fcf0fe224b$export$8258a0665a675899,function(e,d,o){let i=r.useContext(V),{isLoading:l,onLoadMore:a,scrollOffset:n,...c}=e,$=r.useRef(null),u=r.useMemo(()=>({onLoadMore:a,collection:i?.collection,sentinelRef:$,scrollOffset:n}),[a,n,i?.collection]);E.$a5fa973c1850dd36$export$ccaea96c28e8b9e7(u,$);let b=v.$64fa3d84918910a7$export$4d86445c2cf5e3({...c,id:void 0,children:o.rendered,defaultClassName:"react-aria-ListBoxLoadingIndicator",values:null}),s={tabIndex:-1};return r.createElement(r.Fragment,null,r.createElement("div",{style:{position:"relative",width:0,height:0},inert:ae.$cdc5a6778b766db2$export$a9d04c5684123369(!0)},r.createElement("div",{"data-testid":"loadMoreSentinel",ref:$,style:{position:"absolute",height:1,width:1}})),l&&b.children&&r.createElement("div",{...g.$3ef42575df84b30b$export$9d1611c77c2fe928(I.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0}),s),...b,role:"option",ref:d},b.children))});exports.$b1f0cad8af73213b$export$3585ede4d035bf14=U;exports.$b1f0cad8af73213b$export$9145995848b05025=X;exports.$eed445e0843c11d0$export$41f133550aa26f48=pe;exports.$eed445e0843c11d0$export$7c5906fe4f1f2af2=V;exports.$eed445e0843c11d0$export$7ff8f37d2d81a48d=W;exports.$eed445e0843c11d0$export$8e6d031a08cf56a1=me;exports.$eed445e0843c11d0$export$a11e76429ed99b4=xe;exports.$eed445e0843c11d0$export$dca12b0bb56e4fc=ge;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('./assets/ListBox.css');const M=require("react/jsx-runtime"),J=require("./ListBox-CWEqZ218.cjs"),q=require("./Collection-BSbwKliU.cjs"),c=require("react"),k=require("./mergeProps-D9EPHb19.cjs"),K=require("./context-UOrD6Zxk.cjs"),E=require("react-dom"),Q=require("./OverlayArrow-C2rMXHUL.cjs"),Z=require("./useEvent-DnWDW9C-.cjs"),ee=require("./clsx-DKOfLqne.cjs"),V=require("./SelectionManager-C4hvFZl0.cjs");class te{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 y{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,n=Math.max(this.maxY,e.maxY)-i;return new y(t,i,l,n)}intersection(e){if(!this.intersects(e))return new y(0,0,0,0);let t=Math.max(this.x,e.x),i=Math.max(this.y,e.y);return new y(t,i,Math.min(this.maxX,e.maxX)-t,Math.min(this.maxY,e.maxY)-i)}copy(){return new y(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 ${copy(){return new $(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 ie=0;class B{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 ne(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=++ie,this.viewType=t,this.children=new Set,this.reusableViews=new Map,this.layoutInfo=null,this.content=null,this.rendered=null}}class le extends B{constructor(e){super(e,"root")}}class ne extends B{constructor(e,t,i){super(e,i),this.parent=t}}function oe(s,e){if(s===e)return!0;if(s.size!==e.size)return!1;for(let t of s)if(!e.has(t))return!1;return!0}class se{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 y}}class re{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 y(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 n=new y(i,l,t.width,t.height);this.delegate.setVisibleRect(n)}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 y(0,0,this.contentSize.width,this.contentSize.height):l=this._overscanManager.getOverscannedRect();let n=this.layout.getVisibleLayoutInfos(l),o=new Map;for(let a of n)o.set(a.key,a);return o}updateSubviews(){let e=this.getVisibleLayoutInfos(),t=new Set;for(let[i,l]of this._visibleViews){let n=e.get(i);(!n||l.parent!==this.getParentView(n))&&(this._visibleViews.delete(i),l.parent.reuseChild(l),t.add(l))}for(let[i,l]of e){let n=this._visibleViews.get(i);if(!n)n=this.getReusableView(l),n.parent.children.add(n),this._visibleViews.set(i,n),t.delete(n);else{n.layoutInfo=l;let o=this.collection.getItem(l.key);n.content!==o&&(n.content!=null&&this._renderedContent.delete(n.content),this._renderView(n))}}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,n=!1,o=!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&&!oe(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),n=!e.visibleRect.sizeEquals(this.visibleRect),i=!0):h=!0,t.visibleRect=e.visibleRect),e.invalidationContext!==this._invalidationContext&&(e.invalidationContext&&(n||(n=e.invalidationContext.sizeChanged||!1),l||(l=e.invalidationContext.offsetChanged||!1),o||(o=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=o||n||l||a)),this._invalidationContext=e.invalidationContext),e.isScrolling!==this._isScrolling&&(this._isScrolling=e.isScrolling,e.isScrolling||(h=!0)),i?this.relayout({offsetChanged:l,sizeChanged:n,itemSizeChanged:o,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 $,this.visibleRect=new y,this.persistedKeys=new Set,this._visibleViews=new Map,this._renderedContent=new WeakMap,this._rootView=new le(this),this._isScrolling=!1,this._invalidationContext={},this._overscanManager=new se}}const ae=typeof document<"u"?c.useLayoutEffect:()=>{};function he(s){let[e,t]=c.useState(new y(0,0,0,0)),[i,l]=c.useState(!1),[n,o]=c.useState({}),a=c.useRef(!1),[h]=c.useState(()=>new re({collection:s.collection,layout:s.layout,delegate:{setVisibleRect(p){t(p),a.current=!0},renderView:s.renderView,invalidate:o}}));ae(()=>{a.current&&(a.current=!1,s.onVisibleRectChange(e))});let r=c.useMemo(()=>s.layoutOptions!=null?{...n,layoutOptions:s.layoutOptions}:n,[n,s.layoutOptions]),d=h.render({layout:s.layout,collection:s.collection,persistedKeys:s.persistedKeys,layoutOptions:s.layoutOptions,visibleRect:e,invalidationContext:r,isScrolling:i}),u=h.contentSize,f=c.useCallback(()=>{l(!0)},[]),v=c.useCallback(()=>{l(!1)},[]);return c.useMemo(()=>({virtualizer:h,visibleViews:d,setVisibleRect:t,contentSize:u,isScrolling:i,startScrolling:f,endScrolling:v}),[h,d,t,u,i,f,v])}const R=48;class de extends te{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 o=((i=(t=this.rowHeight)!==null&&t!==void 0?t:this.estimatedRowHeight)!==null&&i!==void 0?i:R)+this.gap;e.y=Math.floor(e.y/o)*o,e.height=Math.ceil(e.height/o)*o}this.layoutIfNeeded(e);let l=[],n=o=>{for(let a of o)this.isVisible(a,e)&&(l.push(a.layoutInfo),a.children&&n(a.children))};return n(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 y(0,0,1/0,1/0),this.rootNodes=this.buildCollection(),this.requestedRect=new y(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,n,o,a;return e.sizeChanged||this.rowHeight!==((i=t?.rowHeight)!==null&&i!==void 0?i:this.rowHeight)||this.headingHeight!==((l=t?.headingHeight)!==null&&l!==void 0?l:this.headingHeight)||this.loaderHeight!==((n=t?.loaderHeight)!==null&&n!==void 0?n:this.loaderHeight)||this.gap!==((o=t?.gap)!==null&&o!==void 0?o:this.gap)||this.padding!==((a=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?.rowHeight)!==null&&l!==void 0?l:this.rowHeight;var n;this.estimatedRowHeight=(n=i?.estimatedRowHeight)!==null&&n!==void 0?n:this.estimatedRowHeight;var o;this.headingHeight=(o=i?.headingHeight)!==null&&o!==void 0?o:this.headingHeight;var a;this.estimatedHeadingHeight=(a=i?.estimatedHeadingHeight)!==null&&a!==void 0?a:this.estimatedHeadingHeight;var h;this.loaderHeight=(h=i?.loaderHeight)!==null&&h!==void 0?h:this.loaderHeight;var r;this.dropIndicatorThickness=(r=i?.dropIndicatorThickness)!==null&&r!==void 0?r:this.dropIndicatorThickness;var d;this.gap=(d=i?.gap)!==null&&d!==void 0?d:this.gap;var u;if(this.padding=(u=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"),n=[],o=t?.size===0;o&&(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:R)+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,n.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 v of l){let g=i.indexOf(v);e+=(g-f-1)*d;let p=this.buildChild(v,this.padding,e,null);n.push(p),e=p.layoutInfo.rect.maxY,f=g}e+=(i.length-f-1)*d;break}}return e-=this.gap,e+=o?0:this.padding,this.contentSize=new $(this.virtualizer.visibleRect.width,e),n}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 n=this.buildNode(e,t,i);return n.layoutInfo.parentKey=l??null,n.layoutInfo.allowOverflow=!0,this.layoutNodes.set(e.key,n),n}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 y(t,i,this.padding,0),n=new b("loader",e.key,l);l.width=this.virtualizer.contentSize.width-this.padding-t;var o,a,h;return l.height=e.props.isLoading?(h=(a=(o=this.loaderHeight)!==null&&o!==void 0?o:this.rowHeight)!==null&&a!==void 0?a:this.estimatedRowHeight)!==null&&h!==void 0?h:R:0,{layoutInfo:n,validRect:l.intersection(this.requestedRect)}}buildSection(e,t,i){let l=this.virtualizer.collection,n=this.virtualizer.visibleRect.width-this.padding,o=new y(t,i,n-t,0),a=new b(e.type,e.key,o),h=i,r=0,d=[];for(let v of V.$c5a24bc478652b5f$export$1005530eda016c13(e,l)){var u,f;let g=((f=(u=this.rowHeight)!==null&&u!==void 0?u:this.estimatedRowHeight)!==null&&f!==void 0?f:R)+this.gap;if(i+g<this.requestedRect.y&&!this.isValid(e,i)){i+=g,r++;continue}let p=this.buildChild(v,t,i,a.key);if(i=p.layoutInfo.rect.maxY+this.gap,d.push(p),i>this.requestedRect.maxY){i+=([...V.$c5a24bc478652b5f$export$1005530eda016c13(e,l)].length-(d.length+r))*g;break}}return i-=this.gap,o.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,n=this.headingHeight,o=!1;if(n==null){let r=this.layoutNodes.get(e.key),d=r?.layoutInfo;if(d){let u=this.virtualizer.collection.getItem(e.key),f=this.lastCollection?this.lastCollection.getItem(e.key):null;n=d.rect.height,o=l!==d.rect.width||u!==f||d.estimatedSize}else n=e.rendered?this.estimatedHeadingHeight:0,o=!0}n==null&&(n=R);let a=new y(t,i,l-t,n),h=new b("header",e.key,a);return h.estimatedSize=o,{layoutInfo:h,children:[],validRect:h.rect.intersection(this.requestedRect),node:e}}buildItem(e,t,i){let l=this.virtualizer.visibleRect.width-this.padding-t,n=this.rowHeight,o=!1;if(n==null){let r=this.layoutNodes.get(e.key);r?(n=r.layoutInfo.rect.height,o=l!==r.layoutInfo.rect.width||e!==r.node||r.layoutInfo.estimatedSize):(n=this.estimatedRowHeight,o=!0)}n==null&&(n=R);let a=new y(t,i,l,n),h=new b(e.type,e.key,a);return h.estimatedSize=o,{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,n=i.layoutInfo;if(n.estimatedSize=!1,n.rect.height!==t.height){let o=n.copy();o.rect.height=t.height,i.layoutInfo=o,this.validRect.height=Math.min(this.validRect.height,n.rect.y-this.validRect.y),this.requestedRect.height+=o.rect.height-n.rect.height,this.updateLayoutNode(e,n,o);let a=n.parentKey!=null?l.getItem(n.parentKey):null;for(;a;)this.updateLayoutNode(a.key,n,o),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 y(e,Math.max(0,t-this.gap),1,Math.max(1,this.gap*2)),n=this.getVisibleLayoutInfos(l),o=null,a=1/0;for(let u of n){if(!u.rect.intersects(l))continue;let f=Math.abs(u.rect.y-t),v=Math.abs(u.rect.maxY-t),g=Math.min(f,v);g<a&&(a=g,o=u.key)}if(o==null||this.virtualizer.collection.size===0)return{type:"root"};let h=this.getLayoutInfo(o);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 y(t.rect.x,Math.max(0,t.rect.y-this.dropIndicatorThickness/2),t.rect.width,this.dropIndicatorThickness);else if(e.dropPosition==="after"){let n=this.collection.getItem(e.key);if(n){var l;let o=(l=n.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<=o)break;t=this.getLayoutInfo(a)||t,a=this.collection.getKeyAfter(a)}}i=new y(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 n;this.estimatedHeadingHeight=(n=e.estimatedHeadingHeight)!==null&&n!==void 0?n:null;var o;this.loaderHeight=(o=e.loaderHeight)!==null&&o!==void 0?o: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 y,this.requestedRect=new y,this.contentSize=new $}}let S=null;function ce(s=!1){if(S===null||s){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 ue(s,e){let{scrollLeft:t}=s;if(e==="rtl"){let{scrollWidth:i,clientWidth:l}=s;switch(ce()){case"negative":t=-t;break;case"positive-descending":t=i-l-t;break}}return t}function fe(s,e){let{contentSize:t,onVisibleRectChange:i,innerStyle:l,onScrollStart:n,onScrollEnd:o,scrollDirection:a="both",...h}=s,r=c.useRef({scrollTop:0,scrollLeft:0,scrollEndTime:0,scrollTimeout:null,width:0,height:0,isScrolling:!1}).current,{direction:d}=K.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),[u,f]=c.useState(!1),v=c.useCallback(w=>{w.target===w.currentTarget&&(s.onScroll&&s.onScroll(w),E.flushSync(()=>{let m=w.currentTarget.scrollTop,z=ue(w.currentTarget,d);r.scrollTop=Math.max(0,Math.min(m,t.height-r.height)),r.scrollLeft=Math.max(0,Math.min(z,t.width-r.width)),i(new y(r.scrollLeft,r.scrollTop,r.width,r.height)),r.isScrolling||(r.isScrolling=!0,f(!0),window.dispatchEvent(new Event("tk.disconnect-observer")),n&&n());let C=Date.now();r.scrollEndTime<=C+50&&(r.scrollEndTime=C+300,r.scrollTimeout!=null&&clearTimeout(r.scrollTimeout),r.scrollTimeout=setTimeout(()=>{r.isScrolling=!1,f(!1),r.scrollTimeout=null,window.dispatchEvent(new Event("tk.connect-observer")),o&&o()},300))}))},[s,d,r,t,i,n,o]);Z.$e9faafb641e167db$export$90fc3a17d93f704c(e,"scroll",v),c.useEffect(()=>()=>{r.scrollTimeout!=null&&clearTimeout(r.scrollTimeout),r.isScrolling&&window.dispatchEvent(new Event("tk.connect-observer"))},[]);let g=c.useRef(!1),p=k.$8ae05eaa5c114e9c$export$7f54fc3180508a52(w=>{let m=e.current;if(!m||g.current)return;g.current=!0;let z=process.env.NODE_ENV==="test"&&!process.env.VIRT_ON,C=Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientWidth"),G=Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientHeight"),N=m.clientWidth,T=m.clientHeight,_=z&&!C?1/0:N,L=z&&!G?1/0:T;(r.width!==_||r.height!==L)&&(r.width=_,r.height=L,w(()=>{i(new y(r.scrollLeft,r.scrollTop,_,L))}),(!z&&N!==m.clientWidth||T!==m.clientHeight)&&(r.width=m.clientWidth,r.height=m.clientHeight,w(()=>{i(new y(r.scrollLeft,r.scrollTop,r.width,r.height))}))),g.current=!1}),H=c.useRef(null),[A,F]=c.useState({});k.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(!g.current&&(H.current==null||!t.equals(H.current)))if(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u"){F({}),H.current=t;return}else queueMicrotask(()=>p(E.flushSync));H.current=t}),k.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{p(w=>w())},[A]);let U=c.useCallback(()=>{p(E.flushSync)},[p]);Q.$9daab02d461809db$export$683480f191c0e3ea({ref:e,box:"border-box",onResize:U});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 ye(s){let{layoutInfo:e,virtualizer:t,ref:i}=s,l=e?.key,n=c.useCallback(()=>{if(l!=null&&i.current){let o=ge(i.current);t.updateItemSize(l,o)}},[t,l,i]);return k.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{e?.estimatedSize&&n()}),{updateSize:n}}function ge(s){let e=s.style.height;s.style.height="";let t=new $(s.scrollWidth,s.scrollHeight);return s.style.height=e,t}function Y(s){let{style:e,className:t,layoutInfo:i,virtualizer:l,parent:n,children:o}=s,{direction:a}=K.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),h=c.useRef(null);return ye({layoutInfo:i,virtualizer:l,ref:h}),c.createElement("div",{role:"presentation",ref:h,className:t,style:{...ve(i,a,n),...e}},o)}let O=new WeakMap;function ve(s,e,t){let i=e==="rtl"?"right":"left",l=O.get(s);if(l&&l[i]!=null){if(!t)return l;let h=s.rect.y-t.rect.y,r=s.rect.x-t.rect.x;if(l.top===h&&l[i]===r)return l}let n={top:s.rect.y-(t&&!(t.allowOverflow&&s.isSticky)?t.rect.y:0),[i]:s.rect.x-(t&&!(t.allowOverflow&&s.isSticky)?t.rect.x:0),width:s.rect.width,height:s.rect.height};Object.entries(n).forEach(([h,r])=>{Number.isFinite(r)||(n[h]=void 0)});var o;let a={position:s.isSticky?"sticky":"absolute",display:s.isSticky?"inline-block":void 0,overflow:s.allowOverflow?"visible":"hidden",opacity:s.opacity,zIndex:s.zIndex,transform:(o=s.transform)!==null&&o!==void 0?o:void 0,contain:"size layout style",...n};return O.set(s,a),a}const W=c.createContext(null),j=c.createContext(null);function pe(s){let{children:e,layout:t,layoutOptions:i}=s,l=c.useMemo(()=>typeof t=="function"?new t:t,[t]),n=c.useMemo(()=>({isVirtualized:!0,layoutDelegate:l,dropTargetDelegate:l.getDropTargetFromPoint?l:void 0,CollectionRoot:we,CollectionBranch:me}),[l]);return c.createElement(q.$7135fc7d473fd974$export$4feb769f8ddf26c5.Provider,{value:n},c.createElement(j.Provider,{value:{layout:l,layoutOptions:i}},e))}function we({collection:s,persistedKeys:e,scrollRef:t,renderDropIndicator:i}){var l;let{layout:n,layoutOptions:o}=c.useContext(j),a=(l=n.useLayoutOptions)===null||l===void 0?void 0:l.call(n),h=he({layout:n,collection:s,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?.current;u&&(u.scrollLeft=d.x,u.scrollTop=d.y)},persistedKeys:e,layoutOptions:c.useMemo(()=>o&&a?{...o,...a}:o||a,[o,a])}),{contentProps:r}=fe({onVisibleRectChange:h.setVisibleRect,contentSize:h.contentSize,onScrollStart:h.startScrolling,onScrollEnd:h.endScrolling},t);return c.createElement("div",r,c.createElement(W.Provider,{value:h},D(null,h.visibleViews,i)))}function me({parent:s,renderDropIndicator:e}){let i=c.useContext(W).virtualizer.getVisibleView(s.key);return D(i,Array.from(i.children),e)}function D(s,e,t){return e.map(i=>be(s,i,t))}function be(s,e,t){let i=c.createElement(Y,{key:e.key,layoutInfo:e.layoutInfo,virtualizer:e.virtualizer,parent:s?.layoutInfo},e.rendered),{collection:l,layout:n}=e.virtualizer,o=e.content;return o?.type==="item"&&t&&n.getDropTargetLayoutInfo&&(i=c.createElement(c.Fragment,{key:e.key},P(s,e,{type:"item",key:e.content.key,dropPosition:"before"},t),i,q.$7135fc7d473fd974$export$2dbbd341daed716d(l,o,a=>P(s,e,a,t)))),i}function P(s,e,t,i){let l=i(t);if(l){let n=e.virtualizer.layout.getDropTargetLayoutInfo(t);l=c.createElement(Y,{layoutInfo:n,virtualizer:e.virtualizer,parent:s?.layoutInfo},l)}return l}class xe extends de{getContentSize(){const e=this?.virtualizer?.collection.getKeys();return Array.from(e||[]).forEach(t=>{this.getLayoutInfo(t)}),this.contentSize}}const Ie="_listBox_1kyjv_4",Re="_listBoxPopover_1kyjv_16",Se="_listBoxSectionHeading_1kyjv_31",$e="_listBoxButton_1kyjv_43",ze="_listBoxItem_1kyjv_55",He="_textContent_1kyjv_69",Ce="_listBoxLoadMoreItem_1kyjv_175",X={listBox:Ie,listBoxPopover:Re,listBoxSectionHeading:Se,listBoxButton:$e,listBoxItem:ze,textContent:He,listBoxLoadMoreItem:Ce},ke=({className:s,children:e,...t})=>M.jsx(pe,{layout:xe,layoutOptions:{headingHeight:38},children:M.jsx(J.$eed445e0843c11d0$export$41f133550aa26f48,{className:ee.clsx(X.listBox,s),...t,children:e})});exports.ListBox=ke;exports.styles=X;
|
|
1
|
+
"use strict";require('./assets/ListBox.css');const M=require("react/jsx-runtime"),J=require("./ListBox-B6CxF6d1.cjs"),q=require("./Collection-DrQ_ESeV.cjs"),c=require("react"),k=require("./mergeProps-DkKMzSB1.cjs"),K=require("./context-Df3XbgBG.cjs"),E=require("react-dom"),Q=require("./OverlayArrow-BxbxesPA.cjs"),Z=require("./useEvent-CzE2_ce_.cjs"),ee=require("./clsx-DKOfLqne.cjs"),V=require("./SelectionManager-CzZrRNIe.cjs");class te{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 y{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,n=Math.max(this.maxY,e.maxY)-i;return new y(t,i,l,n)}intersection(e){if(!this.intersects(e))return new y(0,0,0,0);let t=Math.max(this.x,e.x),i=Math.max(this.y,e.y);return new y(t,i,Math.min(this.maxX,e.maxX)-t,Math.min(this.maxY,e.maxY)-i)}copy(){return new y(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 ${copy(){return new $(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 ie=0;class B{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 ne(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=++ie,this.viewType=t,this.children=new Set,this.reusableViews=new Map,this.layoutInfo=null,this.content=null,this.rendered=null}}class le extends B{constructor(e){super(e,"root")}}class ne extends B{constructor(e,t,i){super(e,i),this.parent=t}}function oe(s,e){if(s===e)return!0;if(s.size!==e.size)return!1;for(let t of s)if(!e.has(t))return!1;return!0}class se{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 y}}class re{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 y(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 n=new y(i,l,t.width,t.height);this.delegate.setVisibleRect(n)}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 y(0,0,this.contentSize.width,this.contentSize.height):l=this._overscanManager.getOverscannedRect();let n=this.layout.getVisibleLayoutInfos(l),o=new Map;for(let a of n)o.set(a.key,a);return o}updateSubviews(){let e=this.getVisibleLayoutInfos(),t=new Set;for(let[i,l]of this._visibleViews){let n=e.get(i);(!n||l.parent!==this.getParentView(n))&&(this._visibleViews.delete(i),l.parent.reuseChild(l),t.add(l))}for(let[i,l]of e){let n=this._visibleViews.get(i);if(!n)n=this.getReusableView(l),n.parent.children.add(n),this._visibleViews.set(i,n),t.delete(n);else{n.layoutInfo=l;let o=this.collection.getItem(l.key);n.content!==o&&(n.content!=null&&this._renderedContent.delete(n.content),this._renderView(n))}}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,n=!1,o=!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&&!oe(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),n=!e.visibleRect.sizeEquals(this.visibleRect),i=!0):h=!0,t.visibleRect=e.visibleRect),e.invalidationContext!==this._invalidationContext&&(e.invalidationContext&&(n||(n=e.invalidationContext.sizeChanged||!1),l||(l=e.invalidationContext.offsetChanged||!1),o||(o=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=o||n||l||a)),this._invalidationContext=e.invalidationContext),e.isScrolling!==this._isScrolling&&(this._isScrolling=e.isScrolling,e.isScrolling||(h=!0)),i?this.relayout({offsetChanged:l,sizeChanged:n,itemSizeChanged:o,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 $,this.visibleRect=new y,this.persistedKeys=new Set,this._visibleViews=new Map,this._renderedContent=new WeakMap,this._rootView=new le(this),this._isScrolling=!1,this._invalidationContext={},this._overscanManager=new se}}const ae=typeof document<"u"?c.useLayoutEffect:()=>{};function he(s){let[e,t]=c.useState(new y(0,0,0,0)),[i,l]=c.useState(!1),[n,o]=c.useState({}),a=c.useRef(!1),[h]=c.useState(()=>new re({collection:s.collection,layout:s.layout,delegate:{setVisibleRect(p){t(p),a.current=!0},renderView:s.renderView,invalidate:o}}));ae(()=>{a.current&&(a.current=!1,s.onVisibleRectChange(e))});let r=c.useMemo(()=>s.layoutOptions!=null?{...n,layoutOptions:s.layoutOptions}:n,[n,s.layoutOptions]),d=h.render({layout:s.layout,collection:s.collection,persistedKeys:s.persistedKeys,layoutOptions:s.layoutOptions,visibleRect:e,invalidationContext:r,isScrolling:i}),u=h.contentSize,f=c.useCallback(()=>{l(!0)},[]),v=c.useCallback(()=>{l(!1)},[]);return c.useMemo(()=>({virtualizer:h,visibleViews:d,setVisibleRect:t,contentSize:u,isScrolling:i,startScrolling:f,endScrolling:v}),[h,d,t,u,i,f,v])}const R=48;class de extends te{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 o=((i=(t=this.rowHeight)!==null&&t!==void 0?t:this.estimatedRowHeight)!==null&&i!==void 0?i:R)+this.gap;e.y=Math.floor(e.y/o)*o,e.height=Math.ceil(e.height/o)*o}this.layoutIfNeeded(e);let l=[],n=o=>{for(let a of o)this.isVisible(a,e)&&(l.push(a.layoutInfo),a.children&&n(a.children))};return n(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 y(0,0,1/0,1/0),this.rootNodes=this.buildCollection(),this.requestedRect=new y(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,n,o,a;return e.sizeChanged||this.rowHeight!==((i=t?.rowHeight)!==null&&i!==void 0?i:this.rowHeight)||this.headingHeight!==((l=t?.headingHeight)!==null&&l!==void 0?l:this.headingHeight)||this.loaderHeight!==((n=t?.loaderHeight)!==null&&n!==void 0?n:this.loaderHeight)||this.gap!==((o=t?.gap)!==null&&o!==void 0?o:this.gap)||this.padding!==((a=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?.rowHeight)!==null&&l!==void 0?l:this.rowHeight;var n;this.estimatedRowHeight=(n=i?.estimatedRowHeight)!==null&&n!==void 0?n:this.estimatedRowHeight;var o;this.headingHeight=(o=i?.headingHeight)!==null&&o!==void 0?o:this.headingHeight;var a;this.estimatedHeadingHeight=(a=i?.estimatedHeadingHeight)!==null&&a!==void 0?a:this.estimatedHeadingHeight;var h;this.loaderHeight=(h=i?.loaderHeight)!==null&&h!==void 0?h:this.loaderHeight;var r;this.dropIndicatorThickness=(r=i?.dropIndicatorThickness)!==null&&r!==void 0?r:this.dropIndicatorThickness;var d;this.gap=(d=i?.gap)!==null&&d!==void 0?d:this.gap;var u;if(this.padding=(u=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"),n=[],o=t?.size===0;o&&(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:R)+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,n.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 v of l){let g=i.indexOf(v);e+=(g-f-1)*d;let p=this.buildChild(v,this.padding,e,null);n.push(p),e=p.layoutInfo.rect.maxY,f=g}e+=(i.length-f-1)*d;break}}return e-=this.gap,e+=o?0:this.padding,this.contentSize=new $(this.virtualizer.visibleRect.width,e),n}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 n=this.buildNode(e,t,i);return n.layoutInfo.parentKey=l??null,n.layoutInfo.allowOverflow=!0,this.layoutNodes.set(e.key,n),n}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 y(t,i,this.padding,0),n=new b("loader",e.key,l);l.width=this.virtualizer.contentSize.width-this.padding-t;var o,a,h;return l.height=e.props.isLoading?(h=(a=(o=this.loaderHeight)!==null&&o!==void 0?o:this.rowHeight)!==null&&a!==void 0?a:this.estimatedRowHeight)!==null&&h!==void 0?h:R:0,{layoutInfo:n,validRect:l.intersection(this.requestedRect)}}buildSection(e,t,i){let l=this.virtualizer.collection,n=this.virtualizer.visibleRect.width-this.padding,o=new y(t,i,n-t,0),a=new b(e.type,e.key,o),h=i,r=0,d=[];for(let v of V.$c5a24bc478652b5f$export$1005530eda016c13(e,l)){var u,f;let g=((f=(u=this.rowHeight)!==null&&u!==void 0?u:this.estimatedRowHeight)!==null&&f!==void 0?f:R)+this.gap;if(i+g<this.requestedRect.y&&!this.isValid(e,i)){i+=g,r++;continue}let p=this.buildChild(v,t,i,a.key);if(i=p.layoutInfo.rect.maxY+this.gap,d.push(p),i>this.requestedRect.maxY){i+=([...V.$c5a24bc478652b5f$export$1005530eda016c13(e,l)].length-(d.length+r))*g;break}}return i-=this.gap,o.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,n=this.headingHeight,o=!1;if(n==null){let r=this.layoutNodes.get(e.key),d=r?.layoutInfo;if(d){let u=this.virtualizer.collection.getItem(e.key),f=this.lastCollection?this.lastCollection.getItem(e.key):null;n=d.rect.height,o=l!==d.rect.width||u!==f||d.estimatedSize}else n=e.rendered?this.estimatedHeadingHeight:0,o=!0}n==null&&(n=R);let a=new y(t,i,l-t,n),h=new b("header",e.key,a);return h.estimatedSize=o,{layoutInfo:h,children:[],validRect:h.rect.intersection(this.requestedRect),node:e}}buildItem(e,t,i){let l=this.virtualizer.visibleRect.width-this.padding-t,n=this.rowHeight,o=!1;if(n==null){let r=this.layoutNodes.get(e.key);r?(n=r.layoutInfo.rect.height,o=l!==r.layoutInfo.rect.width||e!==r.node||r.layoutInfo.estimatedSize):(n=this.estimatedRowHeight,o=!0)}n==null&&(n=R);let a=new y(t,i,l,n),h=new b(e.type,e.key,a);return h.estimatedSize=o,{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,n=i.layoutInfo;if(n.estimatedSize=!1,n.rect.height!==t.height){let o=n.copy();o.rect.height=t.height,i.layoutInfo=o,this.validRect.height=Math.min(this.validRect.height,n.rect.y-this.validRect.y),this.requestedRect.height+=o.rect.height-n.rect.height,this.updateLayoutNode(e,n,o);let a=n.parentKey!=null?l.getItem(n.parentKey):null;for(;a;)this.updateLayoutNode(a.key,n,o),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 y(e,Math.max(0,t-this.gap),1,Math.max(1,this.gap*2)),n=this.getVisibleLayoutInfos(l),o=null,a=1/0;for(let u of n){if(!u.rect.intersects(l))continue;let f=Math.abs(u.rect.y-t),v=Math.abs(u.rect.maxY-t),g=Math.min(f,v);g<a&&(a=g,o=u.key)}if(o==null||this.virtualizer.collection.size===0)return{type:"root"};let h=this.getLayoutInfo(o);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 y(t.rect.x,Math.max(0,t.rect.y-this.dropIndicatorThickness/2),t.rect.width,this.dropIndicatorThickness);else if(e.dropPosition==="after"){let n=this.collection.getItem(e.key);if(n){var l;let o=(l=n.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<=o)break;t=this.getLayoutInfo(a)||t,a=this.collection.getKeyAfter(a)}}i=new y(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 n;this.estimatedHeadingHeight=(n=e.estimatedHeadingHeight)!==null&&n!==void 0?n:null;var o;this.loaderHeight=(o=e.loaderHeight)!==null&&o!==void 0?o: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 y,this.requestedRect=new y,this.contentSize=new $}}let S=null;function ce(s=!1){if(S===null||s){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 ue(s,e){let{scrollLeft:t}=s;if(e==="rtl"){let{scrollWidth:i,clientWidth:l}=s;switch(ce()){case"negative":t=-t;break;case"positive-descending":t=i-l-t;break}}return t}function fe(s,e){let{contentSize:t,onVisibleRectChange:i,innerStyle:l,onScrollStart:n,onScrollEnd:o,scrollDirection:a="both",...h}=s,r=c.useRef({scrollTop:0,scrollLeft:0,scrollEndTime:0,scrollTimeout:null,width:0,height:0,isScrolling:!1}).current,{direction:d}=K.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),[u,f]=c.useState(!1),v=c.useCallback(w=>{w.target===w.currentTarget&&(s.onScroll&&s.onScroll(w),E.flushSync(()=>{let m=w.currentTarget.scrollTop,z=ue(w.currentTarget,d);r.scrollTop=Math.max(0,Math.min(m,t.height-r.height)),r.scrollLeft=Math.max(0,Math.min(z,t.width-r.width)),i(new y(r.scrollLeft,r.scrollTop,r.width,r.height)),r.isScrolling||(r.isScrolling=!0,f(!0),window.dispatchEvent(new Event("tk.disconnect-observer")),n&&n());let C=Date.now();r.scrollEndTime<=C+50&&(r.scrollEndTime=C+300,r.scrollTimeout!=null&&clearTimeout(r.scrollTimeout),r.scrollTimeout=setTimeout(()=>{r.isScrolling=!1,f(!1),r.scrollTimeout=null,window.dispatchEvent(new Event("tk.connect-observer")),o&&o()},300))}))},[s,d,r,t,i,n,o]);Z.$e9faafb641e167db$export$90fc3a17d93f704c(e,"scroll",v),c.useEffect(()=>()=>{r.scrollTimeout!=null&&clearTimeout(r.scrollTimeout),r.isScrolling&&window.dispatchEvent(new Event("tk.connect-observer"))},[]);let g=c.useRef(!1),p=k.$8ae05eaa5c114e9c$export$7f54fc3180508a52(w=>{let m=e.current;if(!m||g.current)return;g.current=!0;let z=process.env.NODE_ENV==="test"&&!process.env.VIRT_ON,C=Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientWidth"),G=Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientHeight"),N=m.clientWidth,T=m.clientHeight,_=z&&!C?1/0:N,L=z&&!G?1/0:T;(r.width!==_||r.height!==L)&&(r.width=_,r.height=L,w(()=>{i(new y(r.scrollLeft,r.scrollTop,_,L))}),(!z&&N!==m.clientWidth||T!==m.clientHeight)&&(r.width=m.clientWidth,r.height=m.clientHeight,w(()=>{i(new y(r.scrollLeft,r.scrollTop,r.width,r.height))}))),g.current=!1}),H=c.useRef(null),[A,F]=c.useState({});k.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(!g.current&&(H.current==null||!t.equals(H.current)))if(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u"){F({}),H.current=t;return}else queueMicrotask(()=>p(E.flushSync));H.current=t}),k.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{p(w=>w())},[A]);let U=c.useCallback(()=>{p(E.flushSync)},[p]);Q.$9daab02d461809db$export$683480f191c0e3ea({ref:e,box:"border-box",onResize:U});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 ye(s){let{layoutInfo:e,virtualizer:t,ref:i}=s,l=e?.key,n=c.useCallback(()=>{if(l!=null&&i.current){let o=ge(i.current);t.updateItemSize(l,o)}},[t,l,i]);return k.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{e?.estimatedSize&&n()}),{updateSize:n}}function ge(s){let e=s.style.height;s.style.height="";let t=new $(s.scrollWidth,s.scrollHeight);return s.style.height=e,t}function Y(s){let{style:e,className:t,layoutInfo:i,virtualizer:l,parent:n,children:o}=s,{direction:a}=K.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),h=c.useRef(null);return ye({layoutInfo:i,virtualizer:l,ref:h}),c.createElement("div",{role:"presentation",ref:h,className:t,style:{...ve(i,a,n),...e}},o)}let O=new WeakMap;function ve(s,e,t){let i=e==="rtl"?"right":"left",l=O.get(s);if(l&&l[i]!=null){if(!t)return l;let h=s.rect.y-t.rect.y,r=s.rect.x-t.rect.x;if(l.top===h&&l[i]===r)return l}let n={top:s.rect.y-(t&&!(t.allowOverflow&&s.isSticky)?t.rect.y:0),[i]:s.rect.x-(t&&!(t.allowOverflow&&s.isSticky)?t.rect.x:0),width:s.rect.width,height:s.rect.height};Object.entries(n).forEach(([h,r])=>{Number.isFinite(r)||(n[h]=void 0)});var o;let a={position:s.isSticky?"sticky":"absolute",display:s.isSticky?"inline-block":void 0,overflow:s.allowOverflow?"visible":"hidden",opacity:s.opacity,zIndex:s.zIndex,transform:(o=s.transform)!==null&&o!==void 0?o:void 0,contain:"size layout style",...n};return O.set(s,a),a}const W=c.createContext(null),j=c.createContext(null);function pe(s){let{children:e,layout:t,layoutOptions:i}=s,l=c.useMemo(()=>typeof t=="function"?new t:t,[t]),n=c.useMemo(()=>({isVirtualized:!0,layoutDelegate:l,dropTargetDelegate:l.getDropTargetFromPoint?l:void 0,CollectionRoot:we,CollectionBranch:me}),[l]);return c.createElement(q.$7135fc7d473fd974$export$4feb769f8ddf26c5.Provider,{value:n},c.createElement(j.Provider,{value:{layout:l,layoutOptions:i}},e))}function we({collection:s,persistedKeys:e,scrollRef:t,renderDropIndicator:i}){var l;let{layout:n,layoutOptions:o}=c.useContext(j),a=(l=n.useLayoutOptions)===null||l===void 0?void 0:l.call(n),h=he({layout:n,collection:s,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?.current;u&&(u.scrollLeft=d.x,u.scrollTop=d.y)},persistedKeys:e,layoutOptions:c.useMemo(()=>o&&a?{...o,...a}:o||a,[o,a])}),{contentProps:r}=fe({onVisibleRectChange:h.setVisibleRect,contentSize:h.contentSize,onScrollStart:h.startScrolling,onScrollEnd:h.endScrolling},t);return c.createElement("div",r,c.createElement(W.Provider,{value:h},D(null,h.visibleViews,i)))}function me({parent:s,renderDropIndicator:e}){let i=c.useContext(W).virtualizer.getVisibleView(s.key);return D(i,Array.from(i.children),e)}function D(s,e,t){return e.map(i=>be(s,i,t))}function be(s,e,t){let i=c.createElement(Y,{key:e.key,layoutInfo:e.layoutInfo,virtualizer:e.virtualizer,parent:s?.layoutInfo},e.rendered),{collection:l,layout:n}=e.virtualizer,o=e.content;return o?.type==="item"&&t&&n.getDropTargetLayoutInfo&&(i=c.createElement(c.Fragment,{key:e.key},P(s,e,{type:"item",key:e.content.key,dropPosition:"before"},t),i,q.$7135fc7d473fd974$export$2dbbd341daed716d(l,o,a=>P(s,e,a,t)))),i}function P(s,e,t,i){let l=i(t);if(l){let n=e.virtualizer.layout.getDropTargetLayoutInfo(t);l=c.createElement(Y,{layoutInfo:n,virtualizer:e.virtualizer,parent:s?.layoutInfo},l)}return l}class xe extends de{getContentSize(){const e=this?.virtualizer?.collection.getKeys();return Array.from(e||[]).forEach(t=>{this.getLayoutInfo(t)}),this.contentSize}}const Ie="_listBox_1kyjv_4",Re="_listBoxPopover_1kyjv_16",Se="_listBoxSectionHeading_1kyjv_31",$e="_listBoxButton_1kyjv_43",ze="_listBoxItem_1kyjv_55",He="_textContent_1kyjv_69",Ce="_listBoxLoadMoreItem_1kyjv_175",X={listBox:Ie,listBoxPopover:Re,listBoxSectionHeading:Se,listBoxButton:$e,listBoxItem:ze,textContent:He,listBoxLoadMoreItem:Ce},ke=({className:s,children:e,...t})=>M.jsx(pe,{layout:xe,layoutOptions:{headingHeight:38},children:M.jsx(J.$eed445e0843c11d0$export$41f133550aa26f48,{className:ee.clsx(X.listBox,s),...t,children:e})});exports.ListBox=ke;exports.styles=X;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { $ as J, a as ue, b as fe, c as $e, d as be, e as pe, f as ve, g as K, h as ge } from "./Collection-
|
|
2
|
-
import { $ as Q, b as X, a as I, 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 { a as ye, b as Se, c as Ee, d as ke } from "./Separator-
|
|
1
|
+
import { $ as J, a as ue, b as fe, c as $e, d as be, e as pe, f as ve, g as K, h as ge } from "./Collection-CekMPzl5.js";
|
|
2
|
+
import { $ as Q, b as X, a as I, f as Y, g as me, d as he } from "./utils-DU-Pvaj9.js";
|
|
3
|
+
import { $ as N, a as xe, b as Pe, c as Z, d as De } from "./DragAndDrop-B94opnY0.js";
|
|
4
|
+
import { a as ye, b as Se, c as Ee, d as ke } from "./Separator-6oe0Omo4.js";
|
|
5
5
|
import { b as Be } from "./RSPContexts-B0lEq7qq.js";
|
|
6
|
-
import { a as Me, b as Fe, c as we } from "./SelectionIndicator-
|
|
7
|
-
import { $ as Le } from "./Text-
|
|
8
|
-
import { c as ee, a as k, b as j, e as He } from "./mergeProps-
|
|
6
|
+
import { a as Me, b as Fe, c as we } from "./SelectionIndicator-OwhRl98A.js";
|
|
7
|
+
import { $ as Le } from "./Text-DZzw-XzG.js";
|
|
8
|
+
import { c as ee, a as k, b as j, e as He } from "./mergeProps-CdO3Q0hv.js";
|
|
9
9
|
import { $ as L } from "./filterDOMProps-BSVCO5jK.js";
|
|
10
10
|
import { $ as Ie } from "./inertValue-B7loUihk.js";
|
|
11
11
|
import d, { forwardRef as oe, createContext as te, useContext as x, useEffect as ae, useRef as C, useMemo as re } from "react";
|
|
12
|
-
import { d as Ve } from "./usePress-
|
|
13
|
-
import { h as _e, i as Ae, $ as le, a as G } from "./useHover-
|
|
14
|
-
import { d as Te } from "./SelectionManager-
|
|
15
|
-
import { $ as Oe } from "./useFocusWithin-
|
|
16
|
-
import { a as Ce } from "./Button-
|
|
17
|
-
import { a as Ne, $ as Ue } from "./useListState-
|
|
18
|
-
import { $ as ze } from "./context-
|
|
19
|
-
import { $ as Ke, a as Re } from "./ListKeyboardDelegate-
|
|
20
|
-
import { $ as We } from "./useFocusRing-
|
|
12
|
+
import { d as Ve } from "./usePress-DgZWZTrq.js";
|
|
13
|
+
import { h as _e, i as Ae, $ as le, a as G } from "./useHover-HEE64RY1.js";
|
|
14
|
+
import { d as Te } from "./SelectionManager-hTlTNJoc.js";
|
|
15
|
+
import { $ as Oe } from "./useFocusWithin-DAdltjwX.js";
|
|
16
|
+
import { a as Ce } from "./Button-DPzexc8J.js";
|
|
17
|
+
import { a as Ne, $ as Ue } from "./useListState-2kcEzGOD.js";
|
|
18
|
+
import { $ as ze } from "./context-CGNJ3grH.js";
|
|
19
|
+
import { $ as Ke, a as Re } from "./ListKeyboardDelegate-BP9HiObq.js";
|
|
20
|
+
import { $ as We } from "./useFocusRing-D9txYLox.js";
|
|
21
21
|
const R = /* @__PURE__ */ new WeakMap();
|
|
22
22
|
function qe(t) {
|
|
23
23
|
return typeof t == "string" ? t.replace(/\s*/g, "") : "" + t;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as K } from "react/jsx-runtime";
|
|
2
|
-
import { e as te } from "./ListBox-
|
|
3
|
-
import { g as ie, m as le } from "./Collection-
|
|
2
|
+
import { e as te } from "./ListBox-DH74Rs1l.js";
|
|
3
|
+
import { g as ie, m as le } from "./Collection-CekMPzl5.js";
|
|
4
4
|
import m, { useState as z, useRef as _, useMemo as k, useCallback as C, useEffect as oe, createContext as W, useContext as D } from "react";
|
|
5
|
-
import { d as ne, $ as M } from "./mergeProps-
|
|
6
|
-
import { $ as j } from "./context-
|
|
5
|
+
import { d as ne, $ as M } from "./mergeProps-CdO3Q0hv.js";
|
|
6
|
+
import { $ as j } from "./context-CGNJ3grH.js";
|
|
7
7
|
import { flushSync as V } from "react-dom";
|
|
8
|
-
import { g as se } from "./OverlayArrow
|
|
9
|
-
import { $ as re } from "./useEvent-
|
|
8
|
+
import { g as se } from "./OverlayArrow-DbP3KJ3e.js";
|
|
9
|
+
import { $ as re } from "./useEvent-BB5JW--J.js";
|
|
10
10
|
import { c as ae } from "./clsx-jbLnTBqA.js";
|
|
11
|
-
import { f as q } from "./SelectionManager-
|
|
11
|
+
import { f as q } from "./SelectionManager-hTlTNJoc.js";
|
|
12
12
|
import './assets/ListBox.css';class he {
|
|
13
13
|
/**
|
|
14
14
|
* Returns whether the layout should invalidate in response to
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),r=require("./clsx-DKOfLqne.cjs"),n=require("./ListBox-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),r=require("./clsx-DKOfLqne.cjs"),n=require("./ListBox-D2PxR1uD.cjs"),c=require("./ListBox-B6CxF6d1.cjs"),l=require("./Spinner-ClrJl6T1.cjs"),d=require("./useLocalizedStringFormatter-BYyiOWPo.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
2
|
import { c as e } from "./clsx-jbLnTBqA.js";
|
|
3
|
-
import { s as a } from "./ListBox-
|
|
4
|
-
import { $ as c } from "./ListBox-
|
|
5
|
-
import { S as l } from "./Spinner-
|
|
6
|
-
import { u as p } from "./useLocalizedStringFormatter-
|
|
3
|
+
import { s as a } from "./ListBox-DJLO33c1.js";
|
|
4
|
+
import { $ as c } from "./ListBox-DH74Rs1l.js";
|
|
5
|
+
import { S as l } from "./Spinner-P_tlg0BC.js";
|
|
6
|
+
import { u as p } from "./useLocalizedStringFormatter-3gSCwH4b.js";
|
|
7
7
|
const S = ({ className: o, children: s, ...r }) => /* @__PURE__ */ t(
|
|
8
8
|
"button",
|
|
9
9
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),c=require("./ListBox-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),c=require("./ListBox-B6CxF6d1.cjs"),x=require("./clsx-DKOfLqne.cjs"),i=require("./ListBox-D2PxR1uD.cjs"),l=require("./Dialog-BB93NpJv.cjs"),B=require("./Separator-BAxldD13.cjs"),$=({children:e,className:s,textValue:o,...n})=>t.jsx(c.$eed445e0843c11d0$export$a11e76429ed99b4,{className:x.clsx(i.styles.listBoxItem,s),textValue:o||(typeof e=="string"?e:void 0),...n,children:a=>t.jsx("div",{className:i.styles.textContent,children:typeof e=="function"?e(a):e})}),b=({className:e,children:s,...o})=>t.jsx(l.$07b14b47974efb58$export$5b6b19405a83ff9d,{className:x.clsx(e,i.styles.listBoxPopover),offset:0,...o,children:s}),r=({className:e,...s})=>t.jsx(B.$72a5793c14baf454$export$8b251419efc915eb,{className:x.clsx(i.styles.listBoxSectionHeading,e),...s}),d=({children:e,name:s,...o})=>t.jsxs(c.$eed445e0843c11d0$export$dca12b0bb56e4fc,{...o,children:[s&&t.jsx(r,{children:s}),e]});exports.ListBoxHeader=r;exports.ListBoxItem=$;exports.ListBoxPopover=b;exports.ListBoxSection=d;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as s, jsxs as f } from "react/jsx-runtime";
|
|
2
|
-
import { a as m, b as x } from "./ListBox-
|
|
2
|
+
import { a as m, b as x } from "./ListBox-DH74Rs1l.js";
|
|
3
3
|
import { c as r } from "./clsx-jbLnTBqA.js";
|
|
4
|
-
import { s as a } from "./ListBox-
|
|
5
|
-
import { b } from "./Dialog-
|
|
6
|
-
import { $ as p } from "./Separator-
|
|
4
|
+
import { s as a } from "./ListBox-DJLO33c1.js";
|
|
5
|
+
import { b } from "./Dialog-BuVUeIcW.js";
|
|
6
|
+
import { $ as p } from "./Separator-6oe0Omo4.js";
|
|
7
7
|
const N = ({
|
|
8
8
|
children: o,
|
|
9
9
|
className: t,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $ as u } from "./context-
|
|
2
|
-
import { c } from "./SelectionManager-
|
|
3
|
-
import { $ as a } from "./scrollIntoView-
|
|
1
|
+
import { $ as u } from "./context-CGNJ3grH.js";
|
|
2
|
+
import { c } from "./SelectionManager-hTlTNJoc.js";
|
|
3
|
+
import { $ as a } from "./scrollIntoView-CsMRNIXg.js";
|
|
4
4
|
let s = /* @__PURE__ */ new Map();
|
|
5
5
|
function y(o) {
|
|
6
6
|
let { locale: t } = u(), e = t + (o ? Object.entries(o).sort((l, n) => l[0] < n[0] ? -1 : 1).join() : "");
|