@midas-ds/components 14.0.0 → 14.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AccordionItem-CAi-XFOc.js +343 -0
- package/AccordionItem-tWS22wDv.cjs +1 -0
- package/{Breadcrumbs-DpUPChG9.cjs → Breadcrumbs-BBDGxc68.cjs} +1 -1
- package/{Breadcrumbs-CV3rVTjR.js → Breadcrumbs-BenPNv8Z.js} +4 -4
- package/Button-1sEX8jKn.cjs +1 -0
- package/{Button-xc8A29pm.cjs → Button-BEWKXjlP.cjs} +1 -1
- package/{Button-CRIYvCRM.js → Button-CF97piBl.js} +1 -1
- package/{Button-B6lxIKPk.js → Button-CGe3Nyos.js} +121 -115
- package/CHANGELOG.md +26 -0
- package/{Card-CfosvMF5.js → Card-DJ8E5Rzd.js} +3 -3
- package/{Card-D2E3gviQ.cjs → Card-Db9xdzJ0.cjs} +1 -1
- package/{CharacterCounter-C-PFKoGg.cjs → CharacterCounter-CTpQ12f7.cjs} +1 -1
- package/{CharacterCounter-DpFONstE.js → CharacterCounter-gbDGfize.js} +2 -2
- package/Checkbox-BgrLxY6P.cjs +1 -0
- package/{Checkbox-Cr3MmHPE.js → Checkbox-CdN1D5pD.js} +94 -90
- package/{CheckboxGroup-DEY3JDEL.js → CheckboxGroup-B1b-6bKq.js} +7 -7
- package/{CheckboxGroup-f9Oa1MhQ.cjs → CheckboxGroup-BfZyy5yU.cjs} +1 -1
- package/{Collection-j_iWeuZo.js → Collection-BkxwF21i.js} +205 -213
- package/Collection-vGO6v3_U.cjs +1 -0
- package/{ColorSchemeSwitch-Cur7zN5_.cjs → ColorSchemeSwitch-BOooU0iy.cjs} +1 -1
- package/{ColorSchemeSwitch-ChFSNntp.js → ColorSchemeSwitch-KjnsdbDr.js} +2 -2
- package/{ComboBox-D7eKe-M5.js → ComboBox-D1ZSZ6m-.js} +254 -246
- package/ComboBox-Dztk_jtC.cjs +1 -0
- package/{DateField-BszKZodr.cjs → DateField-BogEOseq.cjs} +1 -1
- package/{DateField-xyhyDy7u.js → DateField-lsr_1fw4.js} +4 -4
- package/{DateInputDivider-2Wf2hlXA.js → DateInputDivider-CRv3YuXd.js} +191 -188
- package/DateInputDivider-CYqm6PZP.cjs +1 -0
- package/{DateRangePicker-YwKi0ukr.js → DateRangePicker-5k1swaEt.js} +119 -115
- package/DateRangePicker-CgNXWOT6.cjs +6 -0
- package/Dialog-B1N4Ndyx.js +256 -0
- package/{Dialog-DOyFzvUa.js → Dialog-BUAp30Wc.js} +712 -694
- package/Dialog-BgSxz1JW.cjs +1 -0
- package/Dialog-PrnV8KTh.cjs +6 -0
- package/{DragAndDrop-DQ_6tl6K.cjs → DragAndDrop-Cs-V-9ak.cjs} +1 -1
- package/{DragAndDrop-DPRU3Y0Y.js → DragAndDrop-DF0VoPJw.js} +1 -1
- package/{Dropdown-5rmvcHD_.cjs → Dropdown-DBFLb8Tl.cjs} +1 -1
- package/{Dropdown-uC9wc8vd.js → Dropdown-DaARa89l.js} +2 -2
- package/{FieldError-C4WBoCRc.cjs → FieldError-Cimgm8qD.cjs} +1 -1
- package/{FieldError-C4kD4yJZ.js → FieldError-l3xULRa0.js} +3 -3
- package/{FileUpload-01wGpykv.js → FileUpload-CN0HNJ_Y.js} +9 -9
- package/{FileUpload-CTbh7Gic.cjs → FileUpload-DHmsupSe.cjs} +1 -1
- package/Group-B0Wj9pI8.cjs +1 -0
- package/Group-BAd7alBM.js +46 -0
- package/{Heading-CEx2LJyM.js → Heading-CCoGfKQ8.js} +9 -9
- package/{Heading-CUShN98j.cjs → Heading-x7y3xadc.cjs} +1 -1
- package/{InfoBanner-CRSz8DK2.js → InfoBanner-BW3vy9mc.js} +1 -1
- package/{InfoBanner-D_pNj1J2.cjs → InfoBanner-_M_rGQiu.cjs} +1 -1
- package/{Input-CCuE9Sc5.cjs → Input-Bda0PCu5.cjs} +1 -1
- package/{Input-CkTOajNJ.js → Input-CQzv-D9g.js} +3 -3
- package/{Label-CV9p0K2n.js → Label-BGMXsSFb.js} +4 -4
- package/{Label-CkIRTC0_.cjs → Label-CNTODOFg.cjs} +1 -1
- package/Layout-BrEuHajQ.cjs +16 -0
- package/{Layout-IeVrHpT0.js → Layout-JL9l-y7w.js} +62 -63
- package/{Link-BFvUN5Sq.js → Link-BudFjYrw.js} +1 -1
- package/{Link-D2K7bDd3.cjs → Link-BvUSTIip.cjs} +1 -1
- package/{Link-a3Ymcnoa.cjs → Link-DRU6Qzia.cjs} +1 -1
- package/{Link-B9CQXWzE.js → Link-l-nMP-Zd.js} +5 -5
- package/{LinkButton-BCn5gR10.cjs → LinkButton-DGdnbTgR.cjs} +1 -1
- package/{LinkButton-DN3J1Agu.js → LinkButton-DP9W-E32.js} +1 -1
- package/ListBox-TGCxrXIJ.cjs +1 -0
- package/{ListBox-2eEa1l0M.js → ListBox-mOCZvKD4.js} +187 -176
- package/{ListBoxLoadMoreItem-IcGb_XwN.js → ListBoxLoadMoreItem-CLdTe6-z.js} +3 -3
- package/{ListBoxLoadMoreItem-BBE3OF4J.cjs → ListBoxLoadMoreItem-UX0jFQN4.cjs} +1 -1
- package/ListBoxSection-BNBHosou.cjs +1 -0
- package/{ListBoxSection-dksiACMZ.js → ListBoxSection-D_kTkvgG.js} +139 -140
- package/{ListKeyboardDelegate-Dyu4eFtP.js → ListKeyboardDelegate-BHnZMUhW.js} +36 -40
- package/ListKeyboardDelegate-CLRlDto7.cjs +1 -0
- package/{OverlayArrow-Bh_G2tJ3.js → OverlayArrow-CjGslX2c.js} +2 -2
- package/{OverlayArrow-DJ4nNscD.cjs → OverlayArrow-bcrb_syE.cjs} +1 -1
- package/{Popover-D7_IfJ3o.js → Popover-CZFi2YGz.js} +2 -2
- package/{Popover-BI2Koco0.cjs → Popover-uYTWBGHa.cjs} +1 -1
- package/{PressResponder-DUhG97jJ.js → PressResponder-BMj6Zvbn.js} +3 -3
- package/{PressResponder-AXK2I_yx.cjs → PressResponder-ChvCuOue.cjs} +1 -1
- package/{ProgressBar-B-TOuoAC.cjs → ProgressBar-BGemuJIq.cjs} +1 -1
- package/{ProgressBar-B0WEQkyq.js → ProgressBar-DhRmckYM.js} +2 -2
- package/{RSPContexts-BW2SEIqe.js → RSPContexts-B0lEq7qq.js} +5 -3
- package/RSPContexts-XUvspq3j.cjs +1 -0
- package/Radio-Bp_31Z59.js +340 -0
- package/Radio-D3RGVrEd.cjs +1 -0
- package/{RangeCalendar-D5TMu8GI.js → RangeCalendar-9C96gMvy.js} +58 -58
- package/{RangeCalendar-B6zKSDju.cjs → RangeCalendar-ChfmP_ql.cjs} +2 -2
- package/{SearchField-wojUSY2S.js → SearchField-DrEdzWAy.js} +3 -3
- package/{SearchField-DnBBlPT7.cjs → SearchField-JaDXLq5W.cjs} +1 -1
- package/Select-BCUH-Z7q.cjs +1 -0
- package/Select-CpPE78Ke.js +676 -0
- package/SelectionIndicator-BiSN1toV.cjs +1 -0
- package/{FocusScope-8ILtcq9W.js → SelectionIndicator-ant6jeC1.js} +256 -165
- package/SelectionManager-C469yQeD.js +1063 -0
- package/SelectionManager-uFYC4wpu.cjs +1 -0
- package/{Separator--4b7vckr.js → Separator-B6l5qSpR.js} +2 -2
- package/{Separator-COlhRmJF.js → Separator-BWAnBMVN.js} +4 -4
- package/{Separator-DcbM84B8.cjs → Separator-DbhmtwDa.cjs} +1 -1
- package/{Separator-BQkxEZC9.cjs → Separator-J0pLW4BN.cjs} +1 -1
- package/Spinner-D6Fcu_Dp.js +54 -0
- package/Spinner-DIapnvIz.cjs +6 -0
- package/TabList-C0tRVI6Q.cjs +1 -0
- package/TabList-DmkxO7MM.js +394 -0
- package/Table-BLqjyYKk.cjs +16 -0
- package/{Table-cCSOrPkK.js → Table-CyWZO9uf.js} +707 -703
- package/Tag-DJqYiBLR.js +774 -0
- package/Tag-FDHGu_WP.cjs +1 -0
- package/{Text-CkhG15SU.cjs → Text-0wXj3J8E.cjs} +1 -1
- package/{Text-BQe1I4-r.js → Text-BBFWBNAH.js} +1 -1
- package/{Text-CkhZTTV5.cjs → Text-D5OSv6Uv.cjs} +1 -1
- package/{Text-BpERRete.js → Text-bqP9NeVg.js} +1 -1
- package/{TextArea-B5TsyJxa.cjs → TextArea-CZxwvBcS.cjs} +1 -1
- package/{TextArea-Cado2arG.js → TextArea-CrY7P18c.js} +8 -8
- package/{TextField-5AI6T1ol.js → TextField-BWea-IT-.js} +10 -10
- package/TextField-DsN-kBfh.cjs +1 -0
- package/{Toast-Cs-Uvf1p.cjs → Toast-DUZ5jfG1.cjs} +1 -1
- package/{Toast-CgXRE33Y.js → Toast-Di3h8A14.js} +12 -12
- package/{ToggleButtonGroup-SKGgfFs4.js → ToggleButtonGroup-Bh4hP6Lk.js} +82 -78
- package/ToggleButtonGroup-D7r34GCt.cjs +1 -0
- package/{Tooltip-txk48Qof.js → Tooltip-CUdmOznK.js} +4 -4
- package/{Tooltip-BrupFzaI.cjs → Tooltip-D-ATlbIM.cjs} +1 -1
- package/{VisuallyHidden-Awup6QxT.cjs → VisuallyHidden-BMelU6B0.cjs} +1 -1
- package/{VisuallyHidden-D2ZXHTJs.js → VisuallyHidden-DuW70K-5.js} +1 -1
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +1 -1
- package/assets/AccordionItem.css +1 -1
- package/assets/RangeCalendar.css +1 -1
- package/assets/Spinner.css +1 -1
- package/assets/TabList.css +1 -1
- package/assets/default.css +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/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/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-Ru2U2LlM.js → getScrollParent-DFCzfqHG.js} +1 -1
- package/{getScrollParent-DuKmPmUa.cjs → getScrollParent-DjULaF_q.cjs} +1 -1
- package/heading/index.cjs +1 -1
- package/heading/index.js +1 -1
- package/index.cjs +1 -1
- package/index.js +42 -42
- package/info-banner/index.cjs +1 -1
- package/info-banner/index.js +1 -1
- package/label/index.cjs +1 -1
- package/label/index.js +1 -1
- package/layout/index.cjs +1 -1
- package/layout/index.js +1 -1
- package/link/index.cjs +1 -1
- package/link/index.js +2 -2
- package/link-button/index.cjs +1 -1
- package/link-button/index.js +2 -2
- package/list-box/index.cjs +1 -1
- package/list-box/index.js +2 -2
- package/menu/index.cjs +1 -1
- package/menu/index.js +2 -2
- package/modal/index.cjs +1 -1
- package/modal/index.js +2 -2
- package/package.json +4 -4
- 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-BVI21Y4-.js +65 -0
- package/scrollIntoView-BueMOyGp.cjs +1 -0
- 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/select/types.d.ts +1 -1
- package/select/useMultiSelect.d.ts +2 -2
- package/spinner/Spinner.d.ts +5 -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/Tabs.d.ts +2 -9
- package/tabs/index.cjs +1 -1
- package/tabs/index.d.ts +0 -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/TextArea.d.ts +3 -2
- package/textfield/TextField.d.ts +3 -2
- package/textfield/index.cjs +1 -1
- package/textfield/index.js +1 -1
- package/toast/index.cjs +1 -1
- package/toast/index.js +1 -1
- package/toggle-button/index.cjs +1 -1
- package/toggle-button/index.js +1 -1
- package/tooltip/index.cjs +1 -1
- package/tooltip/index.js +1 -1
- package/{useButton-Bh3duhYL.cjs → useButton-C0r5nrqs.cjs} +1 -1
- package/{useButton-A-VOfwuT.js → useButton-CRgN6aZf.js} +2 -2
- package/useDateFormatter-BrrFo4nY.cjs +1 -0
- package/{useDateFormatter-CxlJTAki.js → useDateFormatter-Bs5A6Xtu.js} +353 -322
- package/{useField-sSWPm-He.js → useField-BhJ9dM2g.js} +1 -1
- package/{useField-CY4OYE5a.cjs → useField-DvszkIMx.cjs} +1 -1
- package/{useFilter-DHcouDzv.js → useFilter-BdUU-HQZ.js} +1 -1
- package/{useFilter-DlZLqsJD.cjs → useFilter-R2IPvbS8.cjs} +1 -1
- package/{useFocusRing-Cig5Y0l-.cjs → useFocusRing-C-XVcAE5.cjs} +1 -1
- package/{useFocusRing-Copf_tx8.js → useFocusRing-CcxI7nbg.js} +2 -2
- package/{useFocusWithin-BKopz9sr.js → useFocusWithin-DhXBuB2O.js} +1 -1
- package/{useFocusWithin-TryC2Kkw.cjs → useFocusWithin-GBjoTL5o.cjs} +1 -1
- package/{useFocusable-CCh54GIw.js → useFocusable-BJj-Bkig.js} +3 -3
- package/{useFocusable-DhdAtEw8.cjs → useFocusable-M4se1KJt.cjs} +1 -1
- package/{useFormValidation-DdIIVZ5j.js → useFormValidation-By7G-T7y.js} +1 -1
- package/{useFormValidation-BJNizNDf.cjs → useFormValidation-DV2Ioblb.cjs} +1 -1
- package/useHasTabbableChild-CIZGg_iG.cjs +1 -0
- package/{useHasTabbableChild-BbgOpdGQ.js → useHasTabbableChild-CnpSoDuJ.js} +1 -1
- package/{useHighlightSelectionDescription-D6F-YO6b.cjs → useHighlightSelectionDescription-CBZfyrhy.cjs} +1 -1
- package/{useHighlightSelectionDescription-BL_02EKv.js → useHighlightSelectionDescription-DPiqOr_Z.js} +2 -2
- package/{useHover-eU40luVI.cjs → useHover-DULSfLuK.cjs} +1 -1
- package/{useHover-zCCNtF6g.js → useHover-DkC5FyNd.js} +4 -4
- package/{useListState-BdC308Sq.cjs → useListState-DBawAMhF.cjs} +1 -1
- package/{useListState-D2yPZrFZ.js → useListState-PZF3ahpk.js} +1 -1
- package/{usePress-4yZ5a87p.js → usePress-BqQIhkNY.js} +43 -43
- package/usePress-DmU79HEg.cjs +7 -0
- package/{useSingleSelectListState-lyai-bC_.js → useSingleSelectListState-BLRBEJC7.js} +1 -1
- package/{useSingleSelectListState-b_SPhYG4.cjs → useSingleSelectListState-CNETmoj5.cjs} +1 -1
- package/{useTextField-DjxrmW7d.js → useTextField-B8pM0p6X.js} +4 -4
- package/{useTextField-DUEQl6sr.cjs → useTextField-CiWV3eeD.cjs} +1 -1
- package/utils/types.d.ts +5 -0
- package/utils-CtICjCYt.cjs +1 -0
- package/{utils-BMBoiyL7.js → utils-D2iKpxcZ.js} +43 -39
- package/utils-DRIRjPUS.cjs +1 -0
- package/{utils-CrT5PVBA.js → utils-Dxh86KaB.js} +19 -17
- package/AccordionItem-BJw5IKe0.js +0 -334
- package/AccordionItem-DhMimhYo.cjs +0 -1
- package/Button-BTX5G3le.cjs +0 -1
- package/Checkbox-D-CFY6QF.cjs +0 -1
- package/Collection-DaZzboRu.cjs +0 -1
- package/ComboBox-C4NybZ32.cjs +0 -1
- package/DateInputDivider-BgXKFwB0.cjs +0 -1
- package/DateRangePicker-DTPkr3hX.cjs +0 -6
- package/Dialog-DLnopN3Z.js +0 -237
- package/Dialog-DNu42oLH.cjs +0 -1
- package/Dialog-w6EBWT__.cjs +0 -1
- package/FocusScope-Dv0F-mG2.cjs +0 -1
- package/Group-C2hEIsGV.js +0 -45
- package/Group-cuyk9Hsy.cjs +0 -1
- package/Layout-CVnlO10z.cjs +0 -16
- package/ListBox-Bx9M5vqb.cjs +0 -1
- package/ListBoxSection-kujY2gUl.cjs +0 -1
- package/ListKeyboardDelegate-DJDPir-w.cjs +0 -1
- package/RSPContexts-D8hmBfGm.cjs +0 -1
- package/Radio-D6KNkSA2.js +0 -333
- package/Radio-DsVsutMH.cjs +0 -1
- package/Select-D9h_RQ2k.cjs +0 -1
- package/Select-Dc6y8gPR.js +0 -654
- package/SelectionManager-D-4ThfPZ.js +0 -1043
- package/SelectionManager-FYrDfe5v.cjs +0 -1
- package/Spinner-CTha503N.js +0 -47
- package/Spinner-DKQ9_SQB.cjs +0 -6
- package/TabList-BhC96APe.cjs +0 -1
- package/TabList-P5HnizZt.js +0 -393
- package/Table-BB8Ag5_3.cjs +0 -16
- package/Tag-D2vh0KRD.js +0 -765
- package/Tag-D32MGLjS.cjs +0 -1
- package/TextField-4xfAzdBI.cjs +0 -1
- package/ToggleButtonGroup-CiX2eXB8.cjs +0 -1
- package/scrollIntoView-ClEACHUk.js +0 -57
- package/scrollIntoView-DRSoJp89.cjs +0 -1
- package/useDateFormatter-D0bVjgIb.cjs +0 -1
- package/useHasTabbableChild-wH3RCjTd.cjs +0 -1
- package/useObserveElement-BdI4zgd7.js +0 -27
- package/useObserveElement-BzEr5D32.cjs +0 -1
- package/usePress-Dj3t18Pf.cjs +0 -7
- package/utils-I-LGXGYH.cjs +0 -1
- package/utils-cBvgilDa.cjs +0 -1
- package/variables-B3KEYyhW.cjs +0 -1
- package/variables-DzXcMW2k.js +0 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const a=require("react"),U=require("./utils-DRIRjPUS.cjs"),k=require("./mergeProps-Du5A8xi8.cjs"),j=require("./usePress-DmU79HEg.cjs"),Z=require("./useEvent-C125NAue.cjs"),oe=require("./scrollIntoView-BueMOyGp.cjs"),Ee=require("./SelectionIndicator-BiSN1toV.cjs"),Q=require("./useHover-DULSfLuK.cjs"),ue=require("./useFocusable-M4se1KJt.cjs"),Te=require("react-dom"),De=require("./context-UOrD6Zxk.cjs"),ke=require("./useDescription-6BYtQxe6.cjs"),Ae=require("./useControlledState-D0L6S_5r.cjs");function he(i,e){const t=a.useRef(!0),l=a.useRef(null);k.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>(t.current=!0,()=>{t.current=!1}),[]),k.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{t.current?t.current=!1:(!l.current||e.some((n,c)=>!Object.is(n,l[c])))&&i(),l.current=e},e)}function G(i){return Q.$c87311424ea30a05$export$9ac100e40613ea10()?i.metaKey:i.ctrlKey}const Ie=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Me(i){return i instanceof HTMLInputElement&&!Ie.has(i.type)||i instanceof HTMLTextAreaElement||i instanceof HTMLElement&&i.isContentEditable}const Ce="react-aria-clear-focus",Re="react-aria-focus",Be=500;function Ke(i){let{isDisabled:e,onLongPressStart:t,onLongPressEnd:l,onLongPress:n,threshold:c=Be,accessibilityDescription:o}=i;const p=a.useRef(void 0);let{addGlobalListener:f,removeGlobalListener:w}=U.$03deb23ff14920c4$export$4eaf04e54aa8eed6(),{pressProps:A}=j.$f6c31cce2adf654f$export$45712eceda6fad21({isDisabled:e,onPressStart(h){if(h.continuePropagation(),(h.pointerType==="mouse"||h.pointerType==="touch")&&(t&&t({...h,type:"longpressstart"}),p.current=setTimeout(()=>{h.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),U.$431fbd86ca7dc216$export$b204af158042fbac(h.target).activeElement!==h.target&&U.$7215afc6de606d6b$export$de79e2c695e052f3(h.target),n&&n({...h,type:"longpress"}),p.current=void 0},c),h.pointerType==="touch")){let m=v=>{v.preventDefault()};f(h.target,"contextmenu",m,{once:!0}),f(window,"pointerup",()=>{setTimeout(()=>{w(h.target,"contextmenu",m)},30)},{once:!0})}},onPressEnd(h){p.current&&clearTimeout(p.current),l&&(h.pointerType==="mouse"||h.pointerType==="touch")&&l({...h,type:"longpressend"})}}),K=ke.$ef06256079686ba0$export$f8aeda7b10753fa1(n&&!e?o:void 0);return{longPressProps:k.$3ef42575df84b30b$export$9d1611c77c2fe928(A,K)}}function me(i){let e=Oe(U.$431fbd86ca7dc216$export$b204af158042fbac(i));e!==i&&(e&&Le(e,i),i&&fe(i,e))}function Le(i,e){i.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}function fe(i,e){i.dispatchEvent(new FocusEvent("focus",{relatedTarget:e})),i.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:e}))}function Oe(i){let e=U.$d4ee10de306f2510$export$cd4e5573fbe2b576(i),t=e==null?void 0:e.getAttribute("aria-activedescendant");return t&&i.getElementById(t)||e}function ae(i){return Q.$c87311424ea30a05$export$e1865c3bedcd822b()?i.altKey:i.ctrlKey}function J(i,e){var t,l;let n=`[data-key="${CSS.escape(String(e))}"]`,c=(t=i.current)===null||t===void 0?void 0:t.dataset.collection;return c&&(n=`[data-collection="${CSS.escape(c)}"]${n}`),(l=i.current)===null||l===void 0?void 0:l.querySelector(n)}const Se=new WeakMap;function qe(i){let e=k.$bdb11010cef70236$export$f680877a34711e37();return Se.set(i,e),e}function Ue(i){return Se.get(i)}const ze=1e3;function xe(i){let{keyboardDelegate:e,selectionManager:t,onTypeSelect:l}=i,n=a.useRef({search:"",timeout:void 0}).current,c=o=>{let p=Ve(o.key);if(!(!p||o.ctrlKey||o.metaKey||!o.currentTarget.contains(o.target)||n.search.length===0&&p===" ")){if(p===" "&&n.search.trim().length>0&&(o.preventDefault(),"continuePropagation"in o||o.stopPropagation()),n.search+=p,e.getKeyForSearch!=null){let f=e.getKeyForSearch(n.search,t.focusedKey);f==null&&(f=e.getKeyForSearch(n.search)),f!=null&&(t.setFocusedKey(f),l&&l(f))}clearTimeout(n.timeout),n.timeout=setTimeout(()=>{n.search=""},ze)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?c:void 0}}}function Ve(i){return i.length===1||!/^[A-Z]/i.test(i)?i:""}function He(i){let{selectionManager:e,keyboardDelegate:t,ref:l,autoFocus:n=!1,shouldFocusWrap:c=!1,disallowEmptySelection:o=!1,disallowSelectAll:p=!1,escapeKeyBehavior:f="clearSelection",selectOnFocus:w=e.selectionBehavior==="replace",disallowTypeAhead:A=!1,shouldUseVirtualFocus:K,allowsTabNavigation:h=!1,isVirtualized:m,scrollRef:v=l,linkBehavior:I="action"}=i,{direction:y}=De.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),F=j.$ea8dcbcb9ea1b556$export$9a302a45f65d0572(),$=s=>{var d;if(s.altKey&&s.key==="Tab"&&s.preventDefault(),!(!((d=l.current)===null||d===void 0)&&d.contains(s.target)))return;const g=(u,V)=>{if(u!=null){if(e.isLink(u)&&I==="selection"&&w&&!ae(s)){Te.flushSync(()=>{e.setFocusedKey(u,V)});let H=J(l,u),pe=e.getItemProps(u);H&&F.open(H,s,pe.href,pe.routerOptions);return}if(e.setFocusedKey(u,V),e.isLink(u)&&I==="override")return;s.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(u):w&&!ae(s)&&e.replaceSelection(u)}};switch(s.key){case"ArrowDown":if(t.getKeyBelow){var r,x,T;let u=e.focusedKey!=null?(r=t.getKeyBelow)===null||r===void 0?void 0:r.call(t,e.focusedKey):(x=t.getFirstKey)===null||x===void 0?void 0:x.call(t);u==null&&c&&(u=(T=t.getFirstKey)===null||T===void 0?void 0:T.call(t,e.focusedKey)),u!=null&&(s.preventDefault(),g(u))}break;case"ArrowUp":if(t.getKeyAbove){var B,q,_;let u=e.focusedKey!=null?(B=t.getKeyAbove)===null||B===void 0?void 0:B.call(t,e.focusedKey):(q=t.getLastKey)===null||q===void 0?void 0:q.call(t);u==null&&c&&(u=(_=t.getLastKey)===null||_===void 0?void 0:_.call(t,e.focusedKey)),u!=null&&(s.preventDefault(),g(u))}break;case"ArrowLeft":if(t.getKeyLeftOf){var ee,te,le;let u=e.focusedKey!=null?(ee=t.getKeyLeftOf)===null||ee===void 0?void 0:ee.call(t,e.focusedKey):null;u==null&&c&&(u=y==="rtl"?(te=t.getFirstKey)===null||te===void 0?void 0:te.call(t,e.focusedKey):(le=t.getLastKey)===null||le===void 0?void 0:le.call(t,e.focusedKey)),u!=null&&(s.preventDefault(),g(u,y==="rtl"?"first":"last"))}break;case"ArrowRight":if(t.getKeyRightOf){var ie,ne,re;let u=e.focusedKey!=null?(ie=t.getKeyRightOf)===null||ie===void 0?void 0:ie.call(t,e.focusedKey):null;u==null&&c&&(u=y==="rtl"?(ne=t.getLastKey)===null||ne===void 0?void 0:ne.call(t,e.focusedKey):(re=t.getFirstKey)===null||re===void 0?void 0:re.call(t,e.focusedKey)),u!=null&&(s.preventDefault(),g(u,y==="rtl"?"last":"first"))}break;case"Home":if(t.getFirstKey){if(e.focusedKey===null&&s.shiftKey)return;s.preventDefault();let u=t.getFirstKey(e.focusedKey,G(s));e.setFocusedKey(u),u!=null&&(G(s)&&s.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(u):w&&e.replaceSelection(u))}break;case"End":if(t.getLastKey){if(e.focusedKey===null&&s.shiftKey)return;s.preventDefault();let u=t.getLastKey(e.focusedKey,G(s));e.setFocusedKey(u),u!=null&&(G(s)&&s.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(u):w&&e.replaceSelection(u))}break;case"PageDown":if(t.getKeyPageBelow&&e.focusedKey!=null){let u=t.getKeyPageBelow(e.focusedKey);u!=null&&(s.preventDefault(),g(u))}break;case"PageUp":if(t.getKeyPageAbove&&e.focusedKey!=null){let u=t.getKeyPageAbove(e.focusedKey);u!=null&&(s.preventDefault(),g(u))}break;case"a":G(s)&&e.selectionMode==="multiple"&&p!==!0&&(s.preventDefault(),e.selectAll());break;case"Escape":f==="clearSelection"&&!o&&e.selectedKeys.size!==0&&(s.stopPropagation(),s.preventDefault(),e.clearSelection());break;case"Tab":if(!h){if(s.shiftKey)l.current.focus();else{let u=Ee.$9bf71ea28793e738$export$2d6ec8fc375ceafa(l.current,{tabbable:!0}),V,H;do H=u.lastChild(),H&&(V=H);while(H);V&&!V.contains(document.activeElement)&&U.$7215afc6de606d6b$export$de79e2c695e052f3(V)}break}}},b=a.useRef({top:0,left:0});Z.$e9faafb641e167db$export$90fc3a17d93f704c(v,"scroll",m?void 0:()=>{var s,d,g,r;b.current={top:(g=(s=v.current)===null||s===void 0?void 0:s.scrollTop)!==null&&g!==void 0?g:0,left:(r=(d=v.current)===null||d===void 0?void 0:d.scrollLeft)!==null&&r!==void 0?r:0}});let S=s=>{if(e.isFocused){s.currentTarget.contains(s.target)||e.setFocused(!1);return}if(s.currentTarget.contains(s.target)){if(e.setFocused(!0),e.focusedKey==null){var d,g;let T=q=>{q!=null&&(e.setFocusedKey(q),w&&!e.isSelected(q)&&e.replaceSelection(q))},B=s.relatedTarget;var r,x;B&&s.currentTarget.compareDocumentPosition(B)&Node.DOCUMENT_POSITION_FOLLOWING?T((r=e.lastSelectedKey)!==null&&r!==void 0?r:(d=t.getLastKey)===null||d===void 0?void 0:d.call(t)):T((x=e.firstSelectedKey)!==null&&x!==void 0?x:(g=t.getFirstKey)===null||g===void 0?void 0:g.call(t))}else!m&&v.current&&(v.current.scrollTop=b.current.top,v.current.scrollLeft=b.current.left);if(e.focusedKey!=null&&v.current){let T=J(l,e.focusedKey);T instanceof HTMLElement&&(!T.contains(document.activeElement)&&!K&&U.$7215afc6de606d6b$export$de79e2c695e052f3(T),Q.$507fabe10e71c6fb$export$630ff653c5ada6a9()==="keyboard"&&oe.$2f04cbc44ee30ce0$export$c826860796309d1b(T,{containingElement:l.current}))}}},L=s=>{s.currentTarget.contains(s.relatedTarget)||e.setFocused(!1)},D=a.useRef(!1);Z.$e9faafb641e167db$export$90fc3a17d93f704c(l,Re,K?s=>{let{detail:d}=s;s.stopPropagation(),e.setFocused(!0),(d==null?void 0:d.focusStrategy)==="first"&&(D.current=!0)}:void 0);let C=k.$8ae05eaa5c114e9c$export$7f54fc3180508a52(()=>{var s,d;let g=(d=(s=t.getFirstKey)===null||s===void 0?void 0:s.call(t))!==null&&d!==void 0?d:null;if(g==null){let r=U.$d4ee10de306f2510$export$cd4e5573fbe2b576();me(l.current),fe(r,null),e.collection.size>0&&(D.current=!1)}else e.setFocusedKey(g),D.current=!1});he(()=>{D.current&&C()},[e.collection,C]);let E=k.$8ae05eaa5c114e9c$export$7f54fc3180508a52(()=>{e.collection.size>0&&(D.current=!1)});he(()=>{E()},[e.focusedKey,E]),Z.$e9faafb641e167db$export$90fc3a17d93f704c(l,Ce,K?s=>{var d;s.stopPropagation(),e.setFocused(!1),!((d=s.detail)===null||d===void 0)&&d.clearFocusKey&&e.setFocusedKey(null)}:void 0);const W=a.useRef(n),z=a.useRef(!1);a.useEffect(()=>{if(W.current){var s,d;let x=null;var g;n==="first"&&(x=(g=(s=t.getFirstKey)===null||s===void 0?void 0:s.call(t))!==null&&g!==void 0?g:null);var r;n==="last"&&(x=(r=(d=t.getLastKey)===null||d===void 0?void 0:d.call(t))!==null&&r!==void 0?r:null);let T=e.selectedKeys;if(T.size){for(let B of T)if(e.canSelectItem(B)){x=B;break}}e.setFocused(!0),e.setFocusedKey(x),x==null&&!K&&l.current&&ue.$3ad3f6e1647bc98d$export$80f3e147d781571c(l.current),e.collection.size>0&&(W.current=!1,z.current=!0)}});let O=a.useRef(e.focusedKey),R=a.useRef(null);a.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==O.current||z.current)&&v.current&&l.current){let s=Q.$507fabe10e71c6fb$export$630ff653c5ada6a9(),d=J(l,e.focusedKey);if(!(d instanceof HTMLElement))return;(s==="keyboard"||z.current)&&(R.current&&cancelAnimationFrame(R.current),R.current=requestAnimationFrame(()=>{v.current&&(oe.$2f04cbc44ee30ce0$export$53a0910f038337bd(v.current,d),s!=="virtual"&&oe.$2f04cbc44ee30ce0$export$c826860796309d1b(d,{containingElement:l.current}))}))}!K&&e.isFocused&&e.focusedKey==null&&O.current!=null&&l.current&&ue.$3ad3f6e1647bc98d$export$80f3e147d781571c(l.current),O.current=e.focusedKey,z.current=!1}),a.useEffect(()=>()=>{R.current&&cancelAnimationFrame(R.current)},[]),Z.$e9faafb641e167db$export$90fc3a17d93f704c(l,"react-aria-focus-scope-restore",s=>{s.preventDefault(),e.setFocused(!0)});let P={onKeyDown:$,onFocus:S,onBlur:L,onMouseDown(s){v.current===s.target&&s.preventDefault()}},{typeSelectProps:X}=xe({keyboardDelegate:t,selectionManager:e});A||(P=k.$3ef42575df84b30b$export$9d1611c77c2fe928(X,P));let Y;K||(Y=e.focusedKey==null?0:-1);let N=qe(e.collection);return{collectionProps:k.$3ef42575df84b30b$export$9d1611c77c2fe928(P,{tabIndex:Y,"data-collection":N})}}function We(i){let{id:e,selectionManager:t,key:l,ref:n,shouldSelectOnPressUp:c,shouldUseVirtualFocus:o,focus:p,isDisabled:f,onAction:w,allowsDifferentPressOrigin:A,linkBehavior:K="action"}=i,h=j.$ea8dcbcb9ea1b556$export$9a302a45f65d0572();e=k.$bdb11010cef70236$export$f680877a34711e37(e);let m=r=>{if(r.pointerType==="keyboard"&&ae(r))t.toggleSelection(l);else{if(t.selectionMode==="none")return;if(t.isLink(l)){if(K==="selection"&&n.current){let x=t.getItemProps(l);h.open(n.current,r,x.href,x.routerOptions),t.setSelectedKeys(t.selectedKeys);return}else if(K==="override"||K==="none")return}t.selectionMode==="single"?t.isSelected(l)&&!t.disallowEmptySelection?t.toggleSelection(l):t.replaceSelection(l):r&&r.shiftKey?t.extendSelection(l):t.selectionBehavior==="toggle"||r&&(G(r)||r.pointerType==="touch"||r.pointerType==="virtual")?t.toggleSelection(l):t.replaceSelection(l)}};a.useEffect(()=>{l===t.focusedKey&&t.isFocused&&(o?me(n.current):p?p():document.activeElement!==n.current&&n.current&&ue.$3ad3f6e1647bc98d$export$80f3e147d781571c(n.current))},[n,l,t.focusedKey,t.childFocusStrategy,t.isFocused,o]),f=f||t.isDisabled(l);let v={};!o&&!f?v={tabIndex:l===t.focusedKey?0:-1,onFocus(r){r.target===n.current&&t.setFocusedKey(l)}}:f&&(v.onMouseDown=r=>{r.preventDefault()});let I=t.isLink(l)&&K==="override",y=w&&i.UNSTABLE_itemBehavior==="action",F=t.isLink(l)&&K!=="selection"&&K!=="none",$=!f&&t.canSelectItem(l)&&!I&&!y,b=(w||F)&&!f,S=b&&(t.selectionBehavior==="replace"?!$:!$||t.isEmpty),L=b&&$&&t.selectionBehavior==="replace",D=S||L,C=a.useRef(null),E=D&&$,W=a.useRef(!1),z=a.useRef(!1),O=t.getItemProps(l),R=r=>{if(w){var x;w(),(x=n.current)===null||x===void 0||x.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}F&&n.current&&h.open(n.current,r,O.href,O.routerOptions)},P={ref:n};if(c?(P.onPressStart=r=>{C.current=r.pointerType,W.current=E,r.pointerType==="keyboard"&&(!D||$e())&&m(r)},A?(P.onPressUp=S?void 0:r=>{r.pointerType==="mouse"&&$&&m(r)},P.onPress=S?R:r=>{r.pointerType!=="keyboard"&&r.pointerType!=="mouse"&&$&&m(r)}):P.onPress=r=>{if(S||L&&r.pointerType!=="mouse"){if(r.pointerType==="keyboard"&&!ye())return;R(r)}else r.pointerType!=="keyboard"&&$&&m(r)}):(P.onPressStart=r=>{C.current=r.pointerType,W.current=E,z.current=S,$&&(r.pointerType==="mouse"&&!S||r.pointerType==="keyboard"&&(!b||$e()))&&m(r)},P.onPress=r=>{(r.pointerType==="touch"||r.pointerType==="pen"||r.pointerType==="virtual"||r.pointerType==="keyboard"&&D&&ye()||r.pointerType==="mouse"&&z.current)&&(D?R(r):$&&m(r))}),v["data-collection"]=Ue(t.collection),v["data-key"]=l,P.preventFocusOnPress=o,o&&(P=k.$3ef42575df84b30b$export$9d1611c77c2fe928(P,{onPressStart(r){r.pointerType!=="touch"&&(t.setFocused(!0),t.setFocusedKey(l))},onPress(r){r.pointerType==="touch"&&(t.setFocused(!0),t.setFocusedKey(l))}})),O)for(let r of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])O[r]&&(P[r]=k.$ff5963eb1fccf552$export$e08e3b67e392101e(P[r],O[r]));let{pressProps:X,isPressed:Y}=j.$f6c31cce2adf654f$export$45712eceda6fad21(P),N=L?r=>{C.current==="mouse"&&(r.stopPropagation(),r.preventDefault(),R(r))}:void 0,{longPressProps:s}=Ke({isDisabled:!E,onLongPress(r){r.pointerType==="touch"&&(m(r),t.setSelectionBehavior("toggle"))}}),d=r=>{C.current==="touch"&&W.current&&r.preventDefault()},g=K!=="none"&&t.isLink(l)?r=>{j.$ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening||r.preventDefault()}:void 0;return{itemProps:k.$3ef42575df84b30b$export$9d1611c77c2fe928(v,$||S||o&&!f?X:{},E?s:{},{onDoubleClick:N,onDragStartCapture:d,onClick:g,id:e},o?{onMouseDown:r=>r.preventDefault()}:void 0),isPressed:Y,isSelected:t.isSelected(l),isFocused:t.isFocused&&t.focusedKey===l,isDisabled:f,allowsSelection:$,hasAction:D}}function ye(){let i=window.event;return(i==null?void 0:i.key)==="Enter"}function $e(){let i=window.event;return(i==null?void 0:i.key)===" "||(i==null?void 0:i.code)==="Space"}class Ge{build(e,t){return this.context=t,ve(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:l}=e;if(a.isValidElement(t)&&t.type===a.Fragment)yield*this.iterateCollection({children:t.props.children,items:l});else if(typeof t=="function"){if(!l)throw new Error("props.children was a function but props.items is missing");let n=0;for(let c of l)yield*this.getFullNode({value:c,index:n},{renderer:t}),n++}else{let n=[];a.Children.forEach(t,o=>{o&&n.push(o)});let c=0;for(let o of n){let p=this.getFullNode({element:o,index:c},{});for(let f of p)c++,yield f}}}getKey(e,t,l,n){if(e.key!=null)return e.key;if(t.type==="cell"&&t.key!=null)return`${n}${t.key}`;let c=t.value;if(c!=null){var o;let p=(o=c.key)!==null&&o!==void 0?o:c.id;if(p==null)throw new Error("No key found for item");return p}return n?`${n}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,l,n){if(a.isValidElement(e.element)&&e.element.type===a.Fragment){let y=[];a.Children.forEach(e.element.props.children,$=>{y.push($)});var c;let F=(c=e.index)!==null&&c!==void 0?c:0;for(const $ of y)yield*this.getFullNode({element:$,index:F++},t,l,n);return}let o=e.element;if(!o&&e.value&&t&&t.renderer){let y=this.cache.get(e.value);if(y&&(!y.shouldInvalidate||!y.shouldInvalidate(this.context))){y.index=e.index,y.parentKey=n?n.key:null,yield y;return}o=t.renderer(e.value)}if(a.isValidElement(o)){let y=o.type;if(typeof y!="function"&&typeof y.getCollectionNode!="function"){let S=o.type;throw new Error(`Unknown element <${S}> in collection.`)}let F=y.getCollectionNode(o.props,this.context);var p;let $=(p=e.index)!==null&&p!==void 0?p:0,b=F.next();for(;!b.done&&b.value;){let S=b.value;e.index=$;var f;let L=(f=S.key)!==null&&f!==void 0?f:null;L==null&&(L=S.element?null:this.getKey(o,e,t,l));let C=[...this.getFullNode({...S,key:L,index:$,wrapper:je(e.wrapper,S.wrapper)},this.getChildState(t,S),l?`${l}${o.key}`:o.key,n)];for(let E of C){var w,A;E.value=(A=(w=S.value)!==null&&w!==void 0?w:e.value)!==null&&A!==void 0?A:null,E.value&&this.cache.set(E.value,E);var K;if(e.type&&E.type!==e.type)throw new Error(`Unsupported type <${se(E.type)}> in <${se((K=n==null?void 0:n.type)!==null&&K!==void 0?K:"unknown parent type")}>. Only <${se(e.type)}> is supported.`);$++,yield E}b=F.next(C)}return}if(e.key==null||e.type==null)return;let h=this;var m,v;let I={type:e.type,props:e.props,key:e.key,parentKey:n?n.key:null,value:(m=e.value)!==null&&m!==void 0?m:null,level:n?n.level+1:0,index:e.index,rendered:e.rendered,textValue:(v=e.textValue)!==null&&v!==void 0?v:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:ve(function*(){if(!e.hasChildNodes||!e.childNodes)return;let y=0;for(let F of e.childNodes()){F.key!=null&&(F.key=`${I.key}${F.key}`);let $=h.getFullNode({...F,index:y},h.getChildState(t,F),I.key,I);for(let b of $)y++,yield b}})};yield I}constructor(){this.cache=new WeakMap}}function ve(i){let e=[],t=null;return{*[Symbol.iterator](){for(let l of e)yield l;t||(t=i());for(let l of t)e.push(l),yield l}}}function je(i,e){if(i&&e)return t=>i(e(t));if(i)return i;if(e)return e}function se(i){return i[0].toUpperCase()+i.slice(1)}function Ye(i,e,t){let l=a.useMemo(()=>new Ge,[]),{children:n,items:c,collection:o}=i;return a.useMemo(()=>{if(o)return o;let f=l.build({children:n,items:c},t);return e(f)},[l,n,c,o,t,e])}function we(i,e){return typeof e.getChildren=="function"?e.getChildren(i.key):i.childNodes}function Fe(i){return Pe(i,0)}function Pe(i,e){if(e<0)return;let t=0;for(let l of i){if(t===e)return l;t++}}function Ze(i){let e;for(let t of i)e=t;return e}function ce(i,e,t){if(e.parentKey===t.parentKey)return e.index-t.index;let l=[...be(i,e),e],n=[...be(i,t),t],c=l.slice(0,n.length).findIndex((o,p)=>o!==n[p]);return c!==-1?(e=l[c],t=n[c],e.index-t.index):l.findIndex(o=>o===t)>=0?1:(n.findIndex(o=>o===e)>=0,-1)}function be(i,e){let t=[],l=e;for(;(l==null?void 0:l.parentKey)!=null;)l=i.getItem(l.parentKey),l&&t.unshift(l);return t}class M extends Set{constructor(e,t,l){super(e),e instanceof M?(this.anchorKey=t??e.anchorKey,this.currentKey=l??e.currentKey):(this.anchorKey=t??null,this.currentKey=l??null)}}function Je(i,e){if(i.size!==e.size)return!1;for(let t of i)if(!e.has(t))return!1;return!0}function Qe(i){let{selectionMode:e="none",disallowEmptySelection:t=!1,allowDuplicateSelectionEvents:l,selectionBehavior:n="toggle",disabledBehavior:c="all"}=i,o=a.useRef(!1),[,p]=a.useState(!1),f=a.useRef(null),w=a.useRef(null),[,A]=a.useState(null),K=a.useMemo(()=>ge(i.selectedKeys),[i.selectedKeys]),h=a.useMemo(()=>ge(i.defaultSelectedKeys,new M),[i.defaultSelectedKeys]),[m,v]=Ae.$458b0a5536c1a7cf$export$40bfa8c7b0832715(K,h,i.onSelectionChange),I=a.useMemo(()=>i.disabledKeys?new Set(i.disabledKeys):new Set,[i.disabledKeys]),[y,F]=a.useState(n);n==="replace"&&y==="toggle"&&typeof m=="object"&&m.size===0&&F("replace");let $=a.useRef(n);return a.useEffect(()=>{n!==$.current&&(F(n),$.current=n)},[n]),{selectionMode:e,disallowEmptySelection:t,selectionBehavior:y,setSelectionBehavior:F,get isFocused(){return o.current},setFocused(b){o.current=b,p(b)},get focusedKey(){return f.current},get childFocusStrategy(){return w.current},setFocusedKey(b,S="first"){f.current=b,w.current=S,A(b)},selectedKeys:m,setSelectedKeys(b){(l||!Je(b,m))&&v(b)},disabledKeys:I,disabledBehavior:c}}function ge(i,e){return i?i==="all"?"all":new M(i):e}class de{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode==="none")return!1;let t=this.getKey(e);return t==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(t):this.state.selectedKeys.has(t)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every(l=>t.has(l)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let l of this.state.selectedKeys){let n=this.collection.getItem(l);(!e||n&&ce(this.collection,n,e)<0)&&(e=n)}var t;return(t=e==null?void 0:e.key)!==null&&t!==void 0?t:null}get lastSelectedKey(){let e=null;for(let l of this.state.selectedKeys){let n=this.collection.getItem(l);(!e||n&&ce(this.collection,n,e)>0)&&(e=n)}var t;return(t=e==null?void 0:e.key)!==null&&t!==void 0?t:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let l;if(this.state.selectedKeys==="all")l=new M([t],t,t);else{let o=this.state.selectedKeys;var n;let p=(n=o.anchorKey)!==null&&n!==void 0?n:t;l=new M(o,p,t);var c;for(let f of this.getKeyRange(p,(c=o.currentKey)!==null&&c!==void 0?c:t))l.delete(f);for(let f of this.getKeyRange(t,p))this.canSelectItem(f)&&l.add(f)}this.state.setSelectedKeys(l)}getKeyRange(e,t){let l=this.collection.getItem(e),n=this.collection.getItem(t);return l&&n?ce(this.collection,l,n)<=0?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){var l;if(!((l=this.layoutDelegate)===null||l===void 0)&&l.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let n=[],c=e;for(;c!=null;){let o=this.collection.getItem(c);if(o&&(o.type==="item"||o.type==="cell"&&this.allowsCellSelection)&&n.push(c),c===t)return n;c=this.collection.getKeyAfter(c)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t||t.type==="cell"&&this.allowsCellSelection)return e;for(;t&&t.type!=="item"&&t.parentKey!=null;)t=this.collection.getItem(t.parentKey);return!t||t.type!=="item"?null:t.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let l=new M(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);l.has(t)?l.delete(t):this.canSelectItem(t)&&(l.add(t),l.anchorKey=t,l.currentKey=t),!(this.disallowEmptySelection&&l.size===0)&&this.state.setSelectedKeys(l)}replaceSelection(e){if(this.selectionMode==="none")return;let t=this.getKey(e);if(t==null)return;let l=this.canSelectItem(t)?new M([t],t,t):new M;this.state.setSelectedKeys(l)}setSelectedKeys(e){if(this.selectionMode==="none")return;let t=new M;for(let l of e){let n=this.getKey(l);if(n!=null&&(t.add(n),this.selectionMode==="single"))break}this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=l=>{for(;l!=null;){if(this.canSelectItem(l)){var n;let o=this.collection.getItem(l);(o==null?void 0:o.type)==="item"&&e.push(l);var c;o!=null&&o.hasChildNodes&&(this.allowsCellSelection||o.type!=="item")&&t((c=(n=Fe(we(o,this.collection)))===null||n===void 0?void 0:n.key)!==null&&c!==void 0?c:null)}l=this.collection.getKeyAfter(l)}};return t(this.collection.getFirstKey()),e}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new M)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||t&&(t.pointerType==="touch"||t.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let l of e)if(!t.has(l))return!1;for(let l of t)if(!e.has(l))return!1;return!0}canSelectItem(e){var t;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let l=this.collection.getItem(e);return!(!l||!(l==null||(t=l.props)===null||t===void 0)&&t.isDisabled||l.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var t,l;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!(!((l=this.collection.getItem(e))===null||l===void 0||(t=l.props)===null||t===void 0)&&t.isDisabled))}isLink(e){var t,l;return!!(!((l=this.collection.getItem(e))===null||l===void 0||(t=l.props)===null||t===void 0)&&t.href)}getItemProps(e){var t;return(t=this.collection.getItem(e))===null||t===void 0?void 0:t.props}withCollection(e){return new de(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,t,l){this.collection=e,this.state=t;var n;this.allowsCellSelection=(n=l==null?void 0:l.allowsCellSelection)!==null&&n!==void 0?n:!1,this._isSelectAll=null,this.layoutDelegate=(l==null?void 0:l.layoutDelegate)||null}}exports.$21f1aa98acb08317$export$c57958e35f31ed73=Me;exports.$55f9b1ae81f22853$export$2b35b76d2e30e129=fe;exports.$7613b1592d41b092$export$6cd28814d92fa9c9=Ye;exports.$7af3f5b51489e0b5$export$253fe78d46329472=Qe;exports.$880e95eb8b93ba9a$export$ecf600387e221c37=We;exports.$8a26561d2877236e$export$c24ed0104d07eab9=Ke;exports.$ae20dd8cbca75726$export$d6daf82dcd84e87c=He;exports.$c5a24bc478652b5f$export$1005530eda016c13=we;exports.$c5a24bc478652b5f$export$5f3398f8733f90e2=Pe;exports.$c5a24bc478652b5f$export$7475b2c64539e4cf=Ze;exports.$c5a24bc478652b5f$export$fbdeaa6a76694f71=Fe;exports.$d496c0a20b6e58ec$export$6c8a5aaad13c9852=de;exports.$fb3050f43d946246$export$e32c88dfddc6e1d8=xe;exports.$feb5ffebff200149$export$c3d8340acf92597f=J;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as n, jsxs as u, Fragment as i } from "react/jsx-runtime";
|
|
2
|
-
import { c as _, d, b as l, m as f } from "./Dialog-
|
|
2
|
+
import { c as _, d, b as l, m as f } from "./Dialog-BUAp30Wc.js";
|
|
3
3
|
import { c as a } from "./clsx-jbLnTBqA.js";
|
|
4
4
|
import { C as b } from "./check-B5h1DvDs.js";
|
|
5
5
|
import { C as k } from "./chevron-right-BYYHEJjK.js";
|
|
6
|
-
import { d as $ } from "./Separator-
|
|
6
|
+
import { d as $ } from "./Separator-BWAnBMVN.js";
|
|
7
7
|
import './assets/Separator.css';const h = "_menu_1ku97_1", p = "_menuSection_1ku97_17", x = "_medium_1ku97_29", M = "_menuItem_1ku97_35", v = "_mainContent_1ku97_105", S = "_checkMark_1ku97_116", C = "_separator_1ku97_126", N = "_menuPopover_1ku97_149", t = {
|
|
8
8
|
menu: h,
|
|
9
9
|
menuSection: p,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { e as g, f as h } from "./SelectionManager-
|
|
2
|
-
import { $ as v,
|
|
1
|
+
import { e as g, f as h } from "./SelectionManager-C469yQeD.js";
|
|
2
|
+
import { $ as v, a as P } from "./ListKeyboardDelegate-BHnZMUhW.js";
|
|
3
3
|
import $, { useMemo as D, createContext as b } from "react";
|
|
4
|
-
import { $ as p } from "./utils-
|
|
5
|
-
import { $ as m, i as M, j as k } from "./Collection-
|
|
4
|
+
import { $ as p } from "./utils-D2iKpxcZ.js";
|
|
5
|
+
import { $ as m, i as M, j as k } from "./Collection-BkxwF21i.js";
|
|
6
6
|
import { a as K } from "./mergeProps-Ct8m5-xW.js";
|
|
7
7
|
import { $ as u } from "./filterDOMProps-wsa9OcNI.js";
|
|
8
8
|
function w(t) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('./assets/Separator.css');const n=require("react/jsx-runtime"),u=require("./Dialog-
|
|
1
|
+
"use strict";require('./assets/Separator.css');const n=require("react/jsx-runtime"),u=require("./Dialog-PrnV8KTh.cjs"),o=require("./clsx-DKOfLqne.cjs"),i=require("./check-B0aKTFe5.cjs"),l=require("./chevron-right-0-sUFBiR.cjs"),_=require("./Separator-J0pLW4BN.cjs"),x="_menu_1ku97_1",d="_menuSection_1ku97_17",k="_medium_1ku97_29",h="_menuItem_1ku97_35",b="_mainContent_1ku97_105",$="_checkMark_1ku97_116",f="_separator_1ku97_126",M="_menuPopover_1ku97_149",t={menu:x,menuSection:d,medium:k,menuItem:h,mainContent:b,checkMark:$,separator:f,menuPopover:M},v=({className:e,size:c="large",...s})=>n.jsx(u.$3674c52c6b3c5bce$export$d9b273488cd8ce6f,{className:o.clsx(e,t.menu,c==="medium"&&t.medium),...s}),S=e=>n.jsx(u.$3674c52c6b3c5bce$export$2ce376c2cc3355c8,{...e,textValue:e.textValue||(typeof e.children=="string"?e.children:void 0),className:o.clsx(t.menuItem,e.className),children:c=>{const{children:s}=e,{selectionMode:a,isSelected:m,hasSubmenu:r}=c;return n.jsxs(n.Fragment,{children:[a!=="none"&&n.jsx(i.Check,{size:16,className:t.checkMark,"data-selected":m||void 0}),n.jsx("div",{className:t.mainContent,children:typeof s=="function"?s(c):s}),r&&n.jsx(l.ChevronRight,{size:20})]})}}),j=({className:e,...c})=>n.jsx(u.$07b14b47974efb58$export$5b6b19405a83ff9d,{className:o.clsx(e,t.menuPopover),offset:4,...c}),p=({className:e,...c})=>n.jsx(u.$3674c52c6b3c5bce$export$4b1545b4f2016d26,{className:o.clsx(e,t.menuSection),...c}),N=({className:e,...c})=>n.jsx(_.$431f98aba6844401$export$1ff3c3f08ae963c0,{className:o.clsx(e,t.separator),...c});exports.Menu=v;exports.MenuItem=S;exports.MenuPopover=j;exports.MenuSection=p;exports.Separator=N;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const u=require("./SelectionManager-
|
|
1
|
+
"use strict";const u=require("./SelectionManager-uFYC4wpu.cjs"),b=require("./ListKeyboardDelegate-CLRlDto7.cjs"),n=require("react"),x=require("./utils-CtICjCYt.cjs"),i=require("./Collection-vGO6v3_U.cjs"),P=require("./mergeProps-Du5A8xi8.cjs"),y=require("./filterDOMProps-RRlKPKX0.cjs");function D(a){let{selectionManager:e,collection:t,disabledKeys:r,ref:o,keyboardDelegate:c,layoutDelegate:l}=a,d=b.$325a3faab7a68acd$export$a16aca283550c30d({usage:"search",sensitivity:"base"}),f=e.disabledBehavior,$=n.useMemo(()=>c||new b.$2a25aae57d74318e$export$a05409b8bb224a5a({collection:t,disabledKeys:r,disabledBehavior:f,ref:o,collator:d,layoutDelegate:l}),[c,l,t,r,o,d,f]),{collectionProps:s}=u.$ae20dd8cbca75726$export$d6daf82dcd84e87c({...a,ref:o,selectionManager:e,keyboardDelegate:$});return{listProps:s}}const p=new WeakMap;function M(a){let e=p.get(a);if(e!=null)return e;let t=0,r=o=>{for(let c of o)c.type==="section"?r(u.$c5a24bc478652b5f$export$1005530eda016c13(c,a)):c.type==="item"&&t++};return r(a),p.set(a,t),t}function q(a){let e=y.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(a,{labelable:!0}),t;return a.orientation==="vertical"&&(t="vertical"),a.elementType!=="hr"?{separatorProps:{...e,role:"separator","aria-orientation":t}}:{separatorProps:e}}const m=n.createContext({}),K=i.$e1995378a142960e$export$18af5c7a9e9b3664(i.$23b9f4fcf0fe224b$export$5ae2504e948afce5,function(e,t){return[e,t]=x.$64fa3d84918910a7$export$29f1550f4b0d4415(e,t,m),n.createElement("header",{className:"react-aria-Header",...e,ref:t},e.children)}),g=n.createContext({});class h extends i.$23b9f4fcf0fe224b$export$d68d59712b04d9d1{filter(e,t){let r=t.getItem(this.prevKey);if(r&&r.type!=="separator"){let o=this.clone();return t.addDescendants(o,e),o}return null}}h.type="separator";const k=i.$e1995378a142960e$export$18af5c7a9e9b3664(h,function(e,t){[e,t]=x.$64fa3d84918910a7$export$29f1550f4b0d4415(e,t,g);let{elementType:r,orientation:o,style:c,className:l,slot:d,...f}=e,$=r||"hr";$==="hr"&&o==="vertical"&&($="div");let{separatorProps:s}=q({...f,elementType:r,orientation:o}),v=y.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});return n.createElement($,{...P.$3ef42575df84b30b$export$9d1611c77c2fe928(v,s),style:c,className:l??"react-aria-Separator",ref:t,slot:d||void 0})});exports.$431f98aba6844401$export$1ff3c3f08ae963c0=k;exports.$431f98aba6844401$export$6615d83f6de245ce=g;exports.$453cc9f0df89c0a5$export$77d5aafae4e095b2=M;exports.$72a5793c14baf454$export$8b251419efc915eb=K;exports.$72a5793c14baf454$export$e0e4026c12a8bdbb=m;exports.$982254629710d113$export$b95089534ab7c1fd=D;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { jsxs as i, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { c as s } from "./clsx-jbLnTBqA.js";
|
|
3
|
+
import { c as d } from "./createLucideIcon-XRdN60yz.js";
|
|
4
|
+
import { $ as l } from "./VisuallyHidden-DuW70K-5.js";
|
|
5
|
+
import { u as p } from "./useLocalizedStringFormatter-aOhh7wdl.js";
|
|
6
|
+
import './assets/Spinner.css';/**
|
|
7
|
+
* @license lucide-react v0.525.0 - ISC
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the ISC license.
|
|
10
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
|
12
|
+
const _ = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], m = d("loader-circle", _), f = "_container_vf3ec_1", g = "_spinner_vf3ec_5", v = "_large_vf3ec_18", k = "_dark_vf3ec_23", e = {
|
|
13
|
+
container: f,
|
|
14
|
+
spinner: g,
|
|
15
|
+
large: v,
|
|
16
|
+
dark: k
|
|
17
|
+
}, u = { loadingPleaseWait: "Loading, please wait..." }, h = { loadingPleaseWait: "Laddar, vänligen vänta..." }, x = {
|
|
18
|
+
en: u,
|
|
19
|
+
sv: h
|
|
20
|
+
}, N = ({
|
|
21
|
+
small: a,
|
|
22
|
+
isOnColor: n = !1,
|
|
23
|
+
color: t,
|
|
24
|
+
className: o
|
|
25
|
+
}) => {
|
|
26
|
+
const c = p(x);
|
|
27
|
+
return /* @__PURE__ */ i(
|
|
28
|
+
"div",
|
|
29
|
+
{
|
|
30
|
+
className: s(e.container, o),
|
|
31
|
+
role: "status",
|
|
32
|
+
children: [
|
|
33
|
+
/* @__PURE__ */ r(
|
|
34
|
+
m,
|
|
35
|
+
{
|
|
36
|
+
className: s(
|
|
37
|
+
e.spinner,
|
|
38
|
+
!a && e.large,
|
|
39
|
+
n && e.dark
|
|
40
|
+
),
|
|
41
|
+
size: a ? 20 : 96,
|
|
42
|
+
strokeWidth: a ? 2 : 8,
|
|
43
|
+
absoluteStrokeWidth: !0,
|
|
44
|
+
color: t
|
|
45
|
+
}
|
|
46
|
+
),
|
|
47
|
+
/* @__PURE__ */ r(l, { children: c.format("loadingPleaseWait") })
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
};
|
|
52
|
+
export {
|
|
53
|
+
N as S
|
|
54
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";require('./assets/Spinner.css');const s=require("react/jsx-runtime"),r=require("./clsx-DKOfLqne.cjs"),o=require("./createLucideIcon-CTVXwe6i.cjs"),d=require("./VisuallyHidden-BMelU6B0.cjs"),l=require("./useLocalizedStringFormatter-BSac43NO.cjs");/**
|
|
2
|
+
* @license lucide-react v0.525.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const u=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],_=o.createLucideIcon("loader-circle",u),g="_container_vf3ec_1",p="_spinner_vf3ec_5",v="_large_vf3ec_18",x="_dark_vf3ec_23",e={container:g,spinner:p,large:v,dark:x},f={loadingPleaseWait:"Loading, please wait..."},k={loadingPleaseWait:"Laddar, vänligen vänta..."},L={en:f,sv:k},h=({small:n,isOnColor:t=!1,color:a,className:c})=>{const i=l.useLocalizedStringFormatter(L);return s.jsxs("div",{className:r.clsx(e.container,c),role:"status",children:[s.jsx(_,{className:r.clsx(e.spinner,!n&&e.large,t&&e.dark),size:n?20:96,strokeWidth:n?2:8,absoluteStrokeWidth:!0,color:a}),s.jsx(d.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:i.format("loadingPleaseWait")})]})};exports.Spinner=h;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('./assets/TabList.css');const y=require("react/jsx-runtime"),F=require("./clsx-DKOfLqne.cjs"),u=require("./utils-CtICjCYt.cjs"),E=require("./SelectionIndicator-BiSN1toV.cjs"),p=require("./Collection-vGO6v3_U.cjs"),H=require("./Hidden-BxRZGdEW.cjs"),h=require("./mergeProps-Du5A8xi8.cjs"),D=require("./filterDOMProps-RRlKPKX0.cjs"),T=require("./inertValue-BWmZ1afe.cjs"),l=require("react"),O=require("./usePress-DmU79HEg.cjs"),V=require("./useFocusable-M4se1KJt.cjs"),M=require("./SelectionManager-uFYC4wpu.cjs"),I=require("./useLabels-B5pmat1S.cjs"),_=require("./useHasTabbableChild-CIZGg_iG.cjs"),j=require("./context-UOrD6Zxk.cjs"),L=require("./useFocusRing-C-XVcAE5.cjs"),A=require("./useHover-DULSfLuK.cjs"),z=require("./useSingleSelectListState-CNETmoj5.cjs"),N=new WeakMap;function S(a,e,t){if(!a)return"";typeof e=="string"&&(e=e.replace(/\s+/g,""));let i=N.get(a);return process.env.NODE_ENV!=="production"&&!i&&console.error("There is no tab id, please check if you have rendered the tab panel before the tab list."),`${i}-${t}-${e}`}function B(a,e,t){let{key:i,isDisabled:d,shouldSelectOnPressUp:n}=a,{selectionManager:r,selectedKey:c}=e,s=i===c,o=d||e.isDisabled||e.selectionManager.isDisabled(i),{itemProps:b,isPressed:f}=M.$880e95eb8b93ba9a$export$ecf600387e221c37({selectionManager:r,key:i,ref:t,isDisabled:o,shouldSelectOnPressUp:n,linkBehavior:"selection"}),$=S(e,i,"tab"),v=S(e,i,"tabpanel"),{tabIndex:P}=b,x=e.collection.getItem(i),g=D.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(x==null?void 0:x.props,{labelable:!0});delete g.id;let R=O.$ea8dcbcb9ea1b556$export$7e924b3091a3bd18(x==null?void 0:x.props),{focusableProps:k}=V.$f645667febf57a63$export$4c014de7c8940b4c({isDisabled:o},t);return{tabProps:h.$3ef42575df84b30b$export$9d1611c77c2fe928(g,k,R,b,{id:$,"aria-selected":s,"aria-disabled":o||void 0,"aria-controls":s?v:void 0,tabIndex:o?void 0:P,role:"tab"}),isSelected:s,isDisabled:o,isPressed:f}}function U(a,e,t){let i=_.$83013635b024ae3d$export$eac1895992b9f3d6(t)?void 0:0;var d;const n=S(e,(d=a.id)!==null&&d!==void 0?d:e==null?void 0:e.selectedKey,"tabpanel"),r=I.$313b98861ee5dd6c$export$d6875122194c7b44({...a,id:n,"aria-labelledby":S(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:h.$3ef42575df84b30b$export$9d1611c77c2fe928(r,{tabIndex:i,role:"tabpanel","aria-describedby":a["aria-describedby"],"aria-details":a["aria-details"]})}}class W{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){var t,i;return this.disabledKeys.has(e)||!!(!((i=this.collection.getItem(e))===null||i===void 0||(t=i.props)===null||t===void 0)&&t.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let t=e;do t=this.collection.getKeyAfter(t),t==null&&(t=this.collection.getFirstKey());while(t!=null&&this.isDisabled(t));return t}getPreviousKey(e){let t=e;do t=this.collection.getKeyBefore(t),t==null&&(t=this.collection.getLastKey());while(t!=null&&this.isDisabled(t));return t}constructor(e,t,i,d=new Set){this.collection=e,this.flipDirection=t==="rtl"&&i==="horizontal",this.disabledKeys=d,this.tabDirection=i==="horizontal"}}function G(a,e,t){let{orientation:i="horizontal",keyboardActivation:d="automatic"}=a,{collection:n,selectionManager:r,disabledKeys:c}=e,{direction:s}=j.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),o=l.useMemo(()=>new W(n,s,i,c),[n,c,i,s]),{collectionProps:b}=M.$ae20dd8cbca75726$export$d6daf82dcd84e87c({ref:t,selectionManager:r,keyboardDelegate:o,selectOnFocus:d==="automatic",disallowEmptySelection:!0,scrollRef:t,linkBehavior:"selection"}),f=h.$bdb11010cef70236$export$f680877a34711e37();N.set(e,f);let $=I.$313b98861ee5dd6c$export$d6875122194c7b44({...a,id:f});return{tabListProps:{...h.$3ef42575df84b30b$export$9d1611c77c2fe928(b,$),role:"tablist","aria-orientation":i,tabIndex:void 0}}}function J(a){var e,t;let i=z.$a0d645289fe9b86b$export$e7f05e985daf4b5f({...a,onSelectionChange:a.onSelectionChange?s=>{var o;s!=null&&((o=a.onSelectionChange)===null||o===void 0||o.call(a,s))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:(t=(e=a.defaultSelectedKey)!==null&&e!==void 0?e:q(a.collection,a.disabledKeys?new Set(a.disabledKeys):new Set))!==null&&t!==void 0?t:void 0}),{selectionManager:d,collection:n,selectedKey:r}=i,c=l.useRef(r);return l.useEffect(()=>{let s=r;a.selectedKey==null&&(d.isEmpty||s==null||!n.getItem(s))&&(s=q(n,i.disabledKeys),s!=null&&d.setSelectedKeys([s])),(s!=null&&d.focusedKey==null||!d.isFocused&&s!==c.current)&&d.setFocusedKey(s),c.current=s}),{...i,isDisabled:a.isDisabled||!1}}function q(a,e){let t=null;if(a){var i,d,n,r;for(t=a.getFirstKey();t!=null&&(e.has(t)||!((d=a.getItem(t))===null||d===void 0||(i=d.props)===null||i===void 0)&&i.isDisabled)&&t!==a.getLastKey();)t=a.getKeyAfter(t);t!=null&&(e.has(t)||!((r=a.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled)&&t===a.getLastKey()&&(t=a.getFirstKey())}return t}const C=l.createContext(null),K=l.createContext(null),Q=l.forwardRef(function(e,t){[e,t]=u.$64fa3d84918910a7$export$29f1550f4b0d4415(e,t,C);let{children:i,orientation:d="horizontal"}=e;return i=l.useMemo(()=>typeof i=="function"?i({orientation:d,defaultChildren:null}):i,[i,d]),l.createElement(p.$e1995378a142960e$export$bf788dd355e3a401,{content:i},n=>l.createElement(X,{props:e,collection:n,tabsRef:t}))});function X({props:a,tabsRef:e,collection:t}){let{orientation:i="horizontal"}=a,d=J({...a,collection:t,children:void 0}),{focusProps:n,isFocused:r,isFocusVisible:c}=L.$f7dceffc5ad7768b$export$4e328f61c538687f({within:!0}),s=l.useMemo(()=>({orientation:i,isFocusWithin:r,isFocusVisible:c}),[i,r,c]),o=u.$64fa3d84918910a7$export$4d86445c2cf5e3({...a,defaultClassName:"react-aria-Tabs",values:s}),b=D.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(a,{global:!0});return l.createElement("div",{...h.$3ef42575df84b30b$export$9d1611c77c2fe928(b,o,n),ref:e,slot:a.slot||void 0,"data-focused":r||void 0,"data-orientation":i,"data-focus-visible":c||void 0,"data-disabled":d.isDisabled||void 0},l.createElement(u.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[C,a],[K,d]]},o.children))}const Y=l.forwardRef(function(e,t){return l.useContext(K)?l.createElement(Z,{props:e,forwardedRef:t}):l.createElement(p.$e1995378a142960e$export$fb8073518f34e6ec,e)});function Z({props:a,forwardedRef:e}){let t=l.useContext(K),{CollectionRoot:i}=l.useContext(p.$7135fc7d473fd974$export$4feb769f8ddf26c5),{orientation:d="horizontal",keyboardActivation:n="automatic"}=u.$64fa3d84918910a7$export$fabf2dc03a41866e(C),r=u.$df56164dff5785e2$export$4338b53315abf666(e),{tabListProps:c}=G({...a,orientation:d,keyboardActivation:n},t,r),s=u.$64fa3d84918910a7$export$4d86445c2cf5e3({...a,children:null,defaultClassName:"react-aria-TabList",values:{orientation:d,state:t}}),o=D.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(a,{global:!0});return delete o.id,l.createElement("div",{...h.$3ef42575df84b30b$export$9d1611c77c2fe928(o,s,c),ref:r,"data-orientation":d||void 0},l.createElement(E.$c8a5a149f625efcf$export$758399f318e6385a,null,l.createElement(i,{collection:t.collection,persistedKeys:p.$7135fc7d473fd974$export$90e00781bc59d8f9(t.selectionManager.focusedKey)})))}class w extends p.$23b9f4fcf0fe224b$export$d68d59712b04d9d1{}w.type="item";const ee=p.$e1995378a142960e$export$18af5c7a9e9b3664(w,(a,e,t)=>{let i=l.useContext(K),d=u.$df56164dff5785e2$export$4338b53315abf666(e),{tabProps:n,isSelected:r,isDisabled:c,isPressed:s}=B({key:t.key,...a},i,d),{focusProps:o,isFocused:b,isFocusVisible:f}=L.$f7dceffc5ad7768b$export$4e328f61c538687f(),{hoverProps:$,isHovered:v}=A.$6179b936705e76d3$export$ae780daf29e6d456({isDisabled:c,onHoverStart:a.onHoverStart,onHoverEnd:a.onHoverEnd,onHoverChange:a.onHoverChange}),P=u.$64fa3d84918910a7$export$4d86445c2cf5e3({...a,id:void 0,children:t.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:r,isDisabled:c,isFocused:b,isFocusVisible:f,isPressed:s,isHovered:v}}),x=t.props.href?"a":"div",g=D.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(a,{global:!0});return delete g.id,delete g.onClick,l.createElement(x,{...h.$3ef42575df84b30b$export$9d1611c77c2fe928(g,P,n,o,$),ref:d,"data-selected":r||void 0,"data-disabled":c||void 0,"data-focused":b||void 0,"data-focus-visible":f||void 0,"data-pressed":s||void 0,"data-hovered":v||void 0},l.createElement(E.$1d5b8b8664671ef2$export$c9549807523555e0.Provider,{value:{isSelected:r}},P.children))}),te=H.$f39a9eba43920ace$export$86427a43e3e48ebb(function(e,t){const i=l.useContext(K);let d=u.$df56164dff5785e2$export$4338b53315abf666(t),{id:n,...r}=e,{tabPanelProps:c}=U(e,i,d),{focusProps:s,isFocused:o,isFocusVisible:b}=L.$f7dceffc5ad7768b$export$4e328f61c538687f(),f=i.selectedKey===e.id,$=u.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:o,isFocusVisible:b,isInert:T.$cdc5a6778b766db2$export$a9d04c5684123369(!f),state:i}});if(!f&&!e.shouldForceMount)return null;let v=D.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(r,{global:!0});delete v.id;let P=f?h.$3ef42575df84b30b$export$9d1611c77c2fe928(v,c,s,$):$;return l.createElement("div",{...P,ref:d,"data-focused":o||void 0,"data-focus-visible":b||void 0,inert:T.$cdc5a6778b766db2$export$a9d04c5684123369(!f||e.inert),"data-inert":f?void 0:"true"},l.createElement(u.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[C,null],[K,null]]},l.createElement(p.$7135fc7d473fd974$export$4feb769f8ddf26c5.Provider,{value:p.$7135fc7d473fd974$export$a164736487e3f0ae},$.children)))}),ae="_tabs_7if7s_1",ie="_tabList_7if7s_12",de="_selectionIndicator_7if7s_16",se="_tab_7if7s_1",le="_tabPanel_7if7s_88",m={tabs:ae,tabList:ie,selectionIndicator:de,tab:se,tabPanel:le},re=({children:a,className:e,...t})=>y.jsx(Q,{...t,className:F.clsx(m.tabs,e),children:a}),ne=({className:a,...e})=>y.jsx(ee,{...e,className:F.clsx(m.tab,a),children:u.$64fa3d84918910a7$export$c245e6201fed2f75(e.children,t=>y.jsxs(y.Fragment,{children:[t,y.jsx(E.$1d5b8b8664671ef2$export$17f80983afe4e444,{className:m.selectionIndicator})]}))}),oe=({className:a,...e})=>y.jsx(te,{className:F.clsx(m.tabPanel,a),...e}),ce=({className:a,...e})=>y.jsx(Y,{className:F.clsx(m.tabList,a),...e});exports.Tab=ne;exports.TabList=ce;exports.TabPanel=oe;exports.Tabs=re;
|
|
@@ -0,0 +1,394 @@
|
|
|
1
|
+
import { jsx as P, jsxs as z, Fragment as j } from "react/jsx-runtime";
|
|
2
|
+
import { c as F } from "./clsx-jbLnTBqA.js";
|
|
3
|
+
import { $ as B, b as L, a as S, f as k, c as U, i as W } from "./utils-D2iKpxcZ.js";
|
|
4
|
+
import { a as q, c as G, e as J } from "./SelectionIndicator-ant6jeC1.js";
|
|
5
|
+
import { $ as Q, b as X, g as M, k as Y, c as Z, j as ee, l as te } from "./Collection-BkxwF21i.js";
|
|
6
|
+
import { $ as ae } from "./Hidden-B5ir3Lei.js";
|
|
7
|
+
import { a as v, c as ie } from "./mergeProps-Ct8m5-xW.js";
|
|
8
|
+
import { $ as K } from "./filterDOMProps-wsa9OcNI.js";
|
|
9
|
+
import { $ as N } from "./inertValue-B7loUihk.js";
|
|
10
|
+
import c, { useMemo as T, useRef as se, useEffect as le, forwardRef as w, createContext as R, useContext as x } from "react";
|
|
11
|
+
import { d as oe } from "./usePress-BqQIhkNY.js";
|
|
12
|
+
import { a as re } from "./useFocusable-BJj-Bkig.js";
|
|
13
|
+
import { d as de, e as ne } from "./SelectionManager-C469yQeD.js";
|
|
14
|
+
import { $ as _ } from "./useLabels-D24on06F.js";
|
|
15
|
+
import { $ as ce } from "./useHasTabbableChild-CnpSoDuJ.js";
|
|
16
|
+
import { $ as fe } from "./context-Dl_saGB6.js";
|
|
17
|
+
import { $ as I } from "./useFocusRing-CcxI7nbg.js";
|
|
18
|
+
import { $ as be } from "./useHover-DkC5FyNd.js";
|
|
19
|
+
import { $ as ue } from "./useSingleSelectListState-BLRBEJC7.js";
|
|
20
|
+
import './assets/TabList.css';const O = /* @__PURE__ */ new WeakMap();
|
|
21
|
+
function D(a, e, t) {
|
|
22
|
+
if (!a)
|
|
23
|
+
return "";
|
|
24
|
+
typeof e == "string" && (e = e.replace(/\s+/g, ""));
|
|
25
|
+
let i = O.get(a);
|
|
26
|
+
return process.env.NODE_ENV !== "production" && !i && console.error("There is no tab id, please check if you have rendered the tab panel before the tab list."), `${i}-${t}-${e}`;
|
|
27
|
+
}
|
|
28
|
+
function $e(a, e, t) {
|
|
29
|
+
let { key: i, isDisabled: s, shouldSelectOnPressUp: r } = a, { selectionManager: o, selectedKey: n } = e, l = i === n, d = s || e.isDisabled || e.selectionManager.isDisabled(i), { itemProps: b, isPressed: f } = de({
|
|
30
|
+
selectionManager: o,
|
|
31
|
+
key: i,
|
|
32
|
+
ref: t,
|
|
33
|
+
isDisabled: d,
|
|
34
|
+
shouldSelectOnPressUp: r,
|
|
35
|
+
linkBehavior: "selection"
|
|
36
|
+
}), u = D(e, i, "tab"), h = D(e, i, "tabpanel"), { tabIndex: p } = b, $ = e.collection.getItem(i), m = K($ == null ? void 0 : $.props, {
|
|
37
|
+
labelable: !0
|
|
38
|
+
});
|
|
39
|
+
delete m.id;
|
|
40
|
+
let H = oe($ == null ? void 0 : $.props), { focusableProps: A } = re({
|
|
41
|
+
isDisabled: d
|
|
42
|
+
}, t);
|
|
43
|
+
return {
|
|
44
|
+
tabProps: v(m, A, H, b, {
|
|
45
|
+
id: u,
|
|
46
|
+
"aria-selected": l,
|
|
47
|
+
"aria-disabled": d || void 0,
|
|
48
|
+
"aria-controls": l ? h : void 0,
|
|
49
|
+
tabIndex: d ? void 0 : p,
|
|
50
|
+
role: "tab"
|
|
51
|
+
}),
|
|
52
|
+
isSelected: l,
|
|
53
|
+
isDisabled: d,
|
|
54
|
+
isPressed: f
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function he(a, e, t) {
|
|
58
|
+
let i = ce(t) ? void 0 : 0;
|
|
59
|
+
var s;
|
|
60
|
+
const r = D(e, (s = a.id) !== null && s !== void 0 ? s : e == null ? void 0 : e.selectedKey, "tabpanel"), o = _({
|
|
61
|
+
...a,
|
|
62
|
+
id: r,
|
|
63
|
+
"aria-labelledby": D(e, e == null ? void 0 : e.selectedKey, "tab")
|
|
64
|
+
});
|
|
65
|
+
return {
|
|
66
|
+
tabPanelProps: v(o, {
|
|
67
|
+
tabIndex: i,
|
|
68
|
+
role: "tabpanel",
|
|
69
|
+
"aria-describedby": a["aria-describedby"],
|
|
70
|
+
"aria-details": a["aria-details"]
|
|
71
|
+
})
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
class ve {
|
|
75
|
+
getKeyLeftOf(e) {
|
|
76
|
+
return this.flipDirection ? this.getNextKey(e) : this.getPreviousKey(e);
|
|
77
|
+
}
|
|
78
|
+
getKeyRightOf(e) {
|
|
79
|
+
return this.flipDirection ? this.getPreviousKey(e) : this.getNextKey(e);
|
|
80
|
+
}
|
|
81
|
+
isDisabled(e) {
|
|
82
|
+
var t, i;
|
|
83
|
+
return this.disabledKeys.has(e) || !!(!((i = this.collection.getItem(e)) === null || i === void 0 || (t = i.props) === null || t === void 0) && t.isDisabled);
|
|
84
|
+
}
|
|
85
|
+
getFirstKey() {
|
|
86
|
+
let e = this.collection.getFirstKey();
|
|
87
|
+
return e != null && this.isDisabled(e) && (e = this.getNextKey(e)), e;
|
|
88
|
+
}
|
|
89
|
+
getLastKey() {
|
|
90
|
+
let e = this.collection.getLastKey();
|
|
91
|
+
return e != null && this.isDisabled(e) && (e = this.getPreviousKey(e)), e;
|
|
92
|
+
}
|
|
93
|
+
getKeyAbove(e) {
|
|
94
|
+
return this.tabDirection ? null : this.getPreviousKey(e);
|
|
95
|
+
}
|
|
96
|
+
getKeyBelow(e) {
|
|
97
|
+
return this.tabDirection ? null : this.getNextKey(e);
|
|
98
|
+
}
|
|
99
|
+
getNextKey(e) {
|
|
100
|
+
let t = e;
|
|
101
|
+
do
|
|
102
|
+
t = this.collection.getKeyAfter(t), t == null && (t = this.collection.getFirstKey());
|
|
103
|
+
while (t != null && this.isDisabled(t));
|
|
104
|
+
return t;
|
|
105
|
+
}
|
|
106
|
+
getPreviousKey(e) {
|
|
107
|
+
let t = e;
|
|
108
|
+
do
|
|
109
|
+
t = this.collection.getKeyBefore(t), t == null && (t = this.collection.getLastKey());
|
|
110
|
+
while (t != null && this.isDisabled(t));
|
|
111
|
+
return t;
|
|
112
|
+
}
|
|
113
|
+
constructor(e, t, i, s = /* @__PURE__ */ new Set()) {
|
|
114
|
+
this.collection = e, this.flipDirection = t === "rtl" && i === "horizontal", this.disabledKeys = s, this.tabDirection = i === "horizontal";
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
function pe(a, e, t) {
|
|
118
|
+
let { orientation: i = "horizontal", keyboardActivation: s = "automatic" } = a, { collection: r, selectionManager: o, disabledKeys: n } = e, { direction: l } = fe(), d = T(() => new ve(r, l, i, n), [
|
|
119
|
+
r,
|
|
120
|
+
n,
|
|
121
|
+
i,
|
|
122
|
+
l
|
|
123
|
+
]), { collectionProps: b } = ne({
|
|
124
|
+
ref: t,
|
|
125
|
+
selectionManager: o,
|
|
126
|
+
keyboardDelegate: d,
|
|
127
|
+
selectOnFocus: s === "automatic",
|
|
128
|
+
disallowEmptySelection: !0,
|
|
129
|
+
scrollRef: t,
|
|
130
|
+
linkBehavior: "selection"
|
|
131
|
+
}), f = ie();
|
|
132
|
+
O.set(e, f);
|
|
133
|
+
let u = _({
|
|
134
|
+
...a,
|
|
135
|
+
id: f
|
|
136
|
+
});
|
|
137
|
+
return {
|
|
138
|
+
tabListProps: {
|
|
139
|
+
...v(b, u),
|
|
140
|
+
role: "tablist",
|
|
141
|
+
"aria-orientation": i,
|
|
142
|
+
tabIndex: void 0
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
function me(a) {
|
|
147
|
+
var e, t;
|
|
148
|
+
let i = ue({
|
|
149
|
+
...a,
|
|
150
|
+
onSelectionChange: a.onSelectionChange ? (l) => {
|
|
151
|
+
var d;
|
|
152
|
+
l != null && ((d = a.onSelectionChange) === null || d === void 0 || d.call(a, l));
|
|
153
|
+
} : void 0,
|
|
154
|
+
suppressTextValueWarning: !0,
|
|
155
|
+
defaultSelectedKey: (t = (e = a.defaultSelectedKey) !== null && e !== void 0 ? e : C(a.collection, a.disabledKeys ? new Set(a.disabledKeys) : /* @__PURE__ */ new Set())) !== null && t !== void 0 ? t : void 0
|
|
156
|
+
}), { selectionManager: s, collection: r, selectedKey: o } = i, n = se(o);
|
|
157
|
+
return le(() => {
|
|
158
|
+
let l = o;
|
|
159
|
+
a.selectedKey == null && (s.isEmpty || l == null || !r.getItem(l)) && (l = C(r, i.disabledKeys), l != null && s.setSelectedKeys([
|
|
160
|
+
l
|
|
161
|
+
])), (l != null && s.focusedKey == null || !s.isFocused && l !== n.current) && s.setFocusedKey(l), n.current = l;
|
|
162
|
+
}), {
|
|
163
|
+
...i,
|
|
164
|
+
isDisabled: a.isDisabled || !1
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
function C(a, e) {
|
|
168
|
+
let t = null;
|
|
169
|
+
if (a) {
|
|
170
|
+
var i, s, r, o;
|
|
171
|
+
for (t = a.getFirstKey(); t != null && (e.has(t) || !((s = a.getItem(t)) === null || s === void 0 || (i = s.props) === null || i === void 0) && i.isDisabled) && t !== a.getLastKey(); ) t = a.getKeyAfter(t);
|
|
172
|
+
t != null && (e.has(t) || !((o = a.getItem(t)) === null || o === void 0 || (r = o.props) === null || r === void 0) && r.isDisabled) && t === a.getLastKey() && (t = a.getFirstKey());
|
|
173
|
+
}
|
|
174
|
+
return t;
|
|
175
|
+
}
|
|
176
|
+
const E = /* @__PURE__ */ R(null), y = /* @__PURE__ */ R(null), ye = /* @__PURE__ */ w(function(e, t) {
|
|
177
|
+
[e, t] = B(e, t, E);
|
|
178
|
+
let { children: i, orientation: s = "horizontal" } = e;
|
|
179
|
+
return i = T(() => typeof i == "function" ? i({
|
|
180
|
+
orientation: s,
|
|
181
|
+
defaultChildren: null
|
|
182
|
+
}) : i, [
|
|
183
|
+
i,
|
|
184
|
+
s
|
|
185
|
+
]), /* @__PURE__ */ c.createElement(X, {
|
|
186
|
+
content: i
|
|
187
|
+
}, (r) => /* @__PURE__ */ c.createElement(Pe, {
|
|
188
|
+
props: e,
|
|
189
|
+
collection: r,
|
|
190
|
+
tabsRef: t
|
|
191
|
+
}));
|
|
192
|
+
});
|
|
193
|
+
function Pe({ props: a, tabsRef: e, collection: t }) {
|
|
194
|
+
let { orientation: i = "horizontal" } = a, s = me({
|
|
195
|
+
...a,
|
|
196
|
+
collection: t,
|
|
197
|
+
children: void 0
|
|
198
|
+
}), { focusProps: r, isFocused: o, isFocusVisible: n } = I({
|
|
199
|
+
within: !0
|
|
200
|
+
}), l = T(() => ({
|
|
201
|
+
orientation: i,
|
|
202
|
+
isFocusWithin: o,
|
|
203
|
+
isFocusVisible: n
|
|
204
|
+
}), [
|
|
205
|
+
i,
|
|
206
|
+
o,
|
|
207
|
+
n
|
|
208
|
+
]), d = S({
|
|
209
|
+
...a,
|
|
210
|
+
defaultClassName: "react-aria-Tabs",
|
|
211
|
+
values: l
|
|
212
|
+
}), b = K(a, {
|
|
213
|
+
global: !0
|
|
214
|
+
});
|
|
215
|
+
return /* @__PURE__ */ c.createElement("div", {
|
|
216
|
+
...v(b, d, r),
|
|
217
|
+
ref: e,
|
|
218
|
+
slot: a.slot || void 0,
|
|
219
|
+
"data-focused": o || void 0,
|
|
220
|
+
"data-orientation": i,
|
|
221
|
+
"data-focus-visible": n || void 0,
|
|
222
|
+
"data-disabled": s.isDisabled || void 0
|
|
223
|
+
}, /* @__PURE__ */ c.createElement(k, {
|
|
224
|
+
values: [
|
|
225
|
+
[
|
|
226
|
+
E,
|
|
227
|
+
a
|
|
228
|
+
],
|
|
229
|
+
[
|
|
230
|
+
y,
|
|
231
|
+
s
|
|
232
|
+
]
|
|
233
|
+
]
|
|
234
|
+
}, d.children));
|
|
235
|
+
}
|
|
236
|
+
const xe = /* @__PURE__ */ w(function(e, t) {
|
|
237
|
+
return x(y) ? /* @__PURE__ */ c.createElement(ge, {
|
|
238
|
+
props: e,
|
|
239
|
+
forwardedRef: t
|
|
240
|
+
}) : /* @__PURE__ */ c.createElement(Z, e);
|
|
241
|
+
});
|
|
242
|
+
function ge({ props: a, forwardedRef: e }) {
|
|
243
|
+
let t = x(y), { CollectionRoot: i } = x(M), { orientation: s = "horizontal", keyboardActivation: r = "automatic" } = U(E), o = L(e), { tabListProps: n } = pe({
|
|
244
|
+
...a,
|
|
245
|
+
orientation: s,
|
|
246
|
+
keyboardActivation: r
|
|
247
|
+
}, t, o), l = S({
|
|
248
|
+
...a,
|
|
249
|
+
children: null,
|
|
250
|
+
defaultClassName: "react-aria-TabList",
|
|
251
|
+
values: {
|
|
252
|
+
orientation: s,
|
|
253
|
+
state: t
|
|
254
|
+
}
|
|
255
|
+
}), d = K(a, {
|
|
256
|
+
global: !0
|
|
257
|
+
});
|
|
258
|
+
return delete d.id, /* @__PURE__ */ c.createElement("div", {
|
|
259
|
+
...v(d, l, n),
|
|
260
|
+
ref: o,
|
|
261
|
+
"data-orientation": s || void 0
|
|
262
|
+
}, /* @__PURE__ */ c.createElement(G, null, /* @__PURE__ */ c.createElement(i, {
|
|
263
|
+
collection: t.collection,
|
|
264
|
+
persistedKeys: te(t.selectionManager.focusedKey)
|
|
265
|
+
})));
|
|
266
|
+
}
|
|
267
|
+
class V extends ee {
|
|
268
|
+
}
|
|
269
|
+
V.type = "item";
|
|
270
|
+
const Ke = /* @__PURE__ */ Q(V, (a, e, t) => {
|
|
271
|
+
let i = x(y), s = L(e), { tabProps: r, isSelected: o, isDisabled: n, isPressed: l } = $e({
|
|
272
|
+
key: t.key,
|
|
273
|
+
...a
|
|
274
|
+
}, i, s), { focusProps: d, isFocused: b, isFocusVisible: f } = I(), { hoverProps: u, isHovered: h } = be({
|
|
275
|
+
isDisabled: n,
|
|
276
|
+
onHoverStart: a.onHoverStart,
|
|
277
|
+
onHoverEnd: a.onHoverEnd,
|
|
278
|
+
onHoverChange: a.onHoverChange
|
|
279
|
+
}), p = S({
|
|
280
|
+
...a,
|
|
281
|
+
id: void 0,
|
|
282
|
+
children: t.rendered,
|
|
283
|
+
defaultClassName: "react-aria-Tab",
|
|
284
|
+
values: {
|
|
285
|
+
isSelected: o,
|
|
286
|
+
isDisabled: n,
|
|
287
|
+
isFocused: b,
|
|
288
|
+
isFocusVisible: f,
|
|
289
|
+
isPressed: l,
|
|
290
|
+
isHovered: h
|
|
291
|
+
}
|
|
292
|
+
}), $ = t.props.href ? "a" : "div", m = K(a, {
|
|
293
|
+
global: !0
|
|
294
|
+
});
|
|
295
|
+
return delete m.id, delete m.onClick, /* @__PURE__ */ c.createElement($, {
|
|
296
|
+
...v(m, p, r, d, u),
|
|
297
|
+
ref: s,
|
|
298
|
+
"data-selected": o || void 0,
|
|
299
|
+
"data-disabled": n || void 0,
|
|
300
|
+
"data-focused": b || void 0,
|
|
301
|
+
"data-focus-visible": f || void 0,
|
|
302
|
+
"data-pressed": l || void 0,
|
|
303
|
+
"data-hovered": h || void 0
|
|
304
|
+
}, /* @__PURE__ */ c.createElement(q.Provider, {
|
|
305
|
+
value: {
|
|
306
|
+
isSelected: o
|
|
307
|
+
}
|
|
308
|
+
}, p.children));
|
|
309
|
+
}), De = /* @__PURE__ */ ae(function(e, t) {
|
|
310
|
+
const i = x(y);
|
|
311
|
+
let s = L(t), { id: r, ...o } = e, { tabPanelProps: n } = he(e, i, s), { focusProps: l, isFocused: d, isFocusVisible: b } = I(), f = i.selectedKey === e.id, u = S({
|
|
312
|
+
...e,
|
|
313
|
+
defaultClassName: "react-aria-TabPanel",
|
|
314
|
+
values: {
|
|
315
|
+
isFocused: d,
|
|
316
|
+
isFocusVisible: b,
|
|
317
|
+
// @ts-ignore - compatibility with React < 19
|
|
318
|
+
isInert: N(!f),
|
|
319
|
+
state: i
|
|
320
|
+
}
|
|
321
|
+
});
|
|
322
|
+
if (!f && !e.shouldForceMount) return null;
|
|
323
|
+
let h = K(o, {
|
|
324
|
+
global: !0
|
|
325
|
+
});
|
|
326
|
+
delete h.id;
|
|
327
|
+
let p = f ? v(h, n, l, u) : u;
|
|
328
|
+
return /* @__PURE__ */ c.createElement("div", {
|
|
329
|
+
...p,
|
|
330
|
+
ref: s,
|
|
331
|
+
"data-focused": d || void 0,
|
|
332
|
+
"data-focus-visible": b || void 0,
|
|
333
|
+
// @ts-ignore
|
|
334
|
+
inert: N(!f || e.inert),
|
|
335
|
+
"data-inert": f ? void 0 : "true"
|
|
336
|
+
}, /* @__PURE__ */ c.createElement(k, {
|
|
337
|
+
values: [
|
|
338
|
+
[
|
|
339
|
+
E,
|
|
340
|
+
null
|
|
341
|
+
],
|
|
342
|
+
[
|
|
343
|
+
y,
|
|
344
|
+
null
|
|
345
|
+
]
|
|
346
|
+
]
|
|
347
|
+
}, /* @__PURE__ */ c.createElement(M.Provider, {
|
|
348
|
+
value: Y
|
|
349
|
+
}, u.children)));
|
|
350
|
+
}), Fe = "_tabs_7if7s_1", Se = "_tabList_7if7s_12", Ee = "_selectionIndicator_7if7s_16", Le = "_tab_7if7s_1", Te = "_tabPanel_7if7s_88", g = {
|
|
351
|
+
tabs: Fe,
|
|
352
|
+
tabList: Se,
|
|
353
|
+
selectionIndicator: Ee,
|
|
354
|
+
tab: Le,
|
|
355
|
+
tabPanel: Te
|
|
356
|
+
}, Je = ({ children: a, className: e, ...t }) => /* @__PURE__ */ P(
|
|
357
|
+
ye,
|
|
358
|
+
{
|
|
359
|
+
...t,
|
|
360
|
+
className: F(g.tabs, e),
|
|
361
|
+
children: a
|
|
362
|
+
}
|
|
363
|
+
), Qe = ({ className: a, ...e }) => /* @__PURE__ */ P(
|
|
364
|
+
Ke,
|
|
365
|
+
{
|
|
366
|
+
...e,
|
|
367
|
+
className: F(g.tab, a),
|
|
368
|
+
children: W(e.children, (t) => /* @__PURE__ */ z(j, { children: [
|
|
369
|
+
t,
|
|
370
|
+
/* @__PURE__ */ P(J, { className: g.selectionIndicator })
|
|
371
|
+
] }))
|
|
372
|
+
}
|
|
373
|
+
), Xe = ({ className: a, ...e }) => /* @__PURE__ */ P(
|
|
374
|
+
De,
|
|
375
|
+
{
|
|
376
|
+
className: F(g.tabPanel, a),
|
|
377
|
+
...e
|
|
378
|
+
}
|
|
379
|
+
), Ye = ({
|
|
380
|
+
className: a,
|
|
381
|
+
...e
|
|
382
|
+
}) => /* @__PURE__ */ P(
|
|
383
|
+
xe,
|
|
384
|
+
{
|
|
385
|
+
className: F(g.tabList, a),
|
|
386
|
+
...e
|
|
387
|
+
}
|
|
388
|
+
);
|
|
389
|
+
export {
|
|
390
|
+
Je as T,
|
|
391
|
+
Qe as a,
|
|
392
|
+
Xe as b,
|
|
393
|
+
Ye as c
|
|
394
|
+
};
|