@midas-ds/components 10.2.0 → 10.3.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-Z_c9MpAM.cjs → AccordionItem-BGWiWjxA.cjs} +1 -1
- package/{AccordionItem-DZT76sWu.js → AccordionItem-ChHpW8EW.js} +11 -11
- package/{BadgeContainer-D3RtqcPF.js → BadgeContainer-DM8TdyMT.js} +4 -4
- package/{BadgeContainer-DeUgqGqb.cjs → BadgeContainer-I1XA3OCl.cjs} +1 -1
- package/{Breadcrumbs-CmZXtTiS.js → Breadcrumbs-CwDUNIqF.js} +34 -34
- package/{Breadcrumbs-Cx09jwZZ.cjs → Breadcrumbs-DtjJ1UmU.cjs} +1 -1
- package/{Button-iSiWjocA.cjs → Button-BoJl6JGM.cjs} +1 -1
- package/{Button-CbFRzRrF.js → Button-Csih3v23.js} +2 -2
- package/Button-DjBChs7s.js +340 -0
- package/Button-htW9qIsS.cjs +1 -0
- package/Button.module-DEQtBYe5.cjs +1 -0
- package/Button.module-tti8HGxs.js +14 -0
- package/CHANGELOG.md +20 -0
- package/Card-0G0mj9q5.cjs +1 -0
- package/{Card-CaKKKv9k.js → Card-yrtGzt70.js} +5 -5
- package/CharacterCounter-BL_nZHya.js +22 -0
- package/{CharacterCounter-CrY8QRuY.cjs → CharacterCounter-CHcTDHO-.cjs} +1 -1
- package/Checkbox-5HINZdGu.js +263 -0
- package/Checkbox-DqcPg5hz.cjs +1 -0
- package/CheckboxGroup-BBrSMuDY.cjs +1 -0
- package/CheckboxGroup-CLgixk2p.js +243 -0
- package/{Collection-Csx3L9gh.cjs → Collection-BIDsXNhi.cjs} +1 -1
- package/{Collection-C5ONNBqd.js → Collection-Brgjpkne.js} +4 -4
- package/{ColorSchemeSwitch-CbAWIJCg.js → ColorSchemeSwitch-BpzQ7g0b.js} +9 -9
- package/{ColorSchemeSwitch-JRrCyYVv.cjs → ColorSchemeSwitch-C-qWuqkU.cjs} +2 -2
- package/{ComboBox-BCaqPEIH.js → ComboBox-CVDyp2a-.js} +331 -327
- package/ComboBox-CWJUg9Xx.cjs +1 -0
- package/DateField-DeDhiYnW.cjs +1 -0
- package/DateField-DhU3q-rG.js +47 -0
- package/DateInputDivider-ADvOavHw.cjs +1 -0
- package/{DateInputDivider-Dx8n1Lxp.js → DateInputDivider-CF4xWsMT.js} +71 -75
- package/DateRangePicker-BsAHhy99.cjs +6 -0
- package/{DateRangePicker-BmBvwqo6.js → DateRangePicker-ziD1_k1W.js} +194 -194
- package/Dialog-B8GTYbvu.cjs +1 -0
- package/{Dialog-CwTEAujZ.cjs → Dialog-BOrYdX50.cjs} +1 -1
- package/{Dialog-Bxx8cBEq.js → Dialog-CXNu48AC.js} +25 -25
- package/{Dialog-CYxThuMl.js → Dialog-D14MbJ7o.js} +564 -540
- package/{DragAndDrop-HvycSrKY.cjs → DragAndDrop-DNth776R.cjs} +1 -1
- package/{DragAndDrop-CSwmPhxC.js → DragAndDrop-o3ruz_SR.js} +8 -8
- package/{Dropdown-CaGon9OR.cjs → Dropdown-CJ6My6EI.cjs} +1 -1
- package/{Dropdown-nkjzsVYX.js → Dropdown-Df58j43I.js} +2 -2
- package/FieldError-CAcjosk_.js +46 -0
- package/FieldError-CKBb2-mp.cjs +1 -0
- package/{FileUpload-DYRZ0M9F.cjs → FileUpload-CxCOtyB9.cjs} +2 -2
- package/{FileUpload-ULwcYDxs.js → FileUpload-D6qoEAjn.js} +149 -148
- package/FocusScope-5c9SVBcR.cjs +1 -0
- package/{FocusScope-DwIqdYpQ.js → FocusScope-CxkURfoc.js} +16 -16
- package/{Group-CeSsSQVC.js → Group-B6EslsHZ.js} +5 -5
- package/{Heading-BY5-QN4S.js → Heading-BFtiin0g.js} +7 -7
- package/{Heading-DoJAtYZf.cjs → Heading-mHhCbGjY.cjs} +1 -1
- package/{Hidden-B5ir3Lei.js → Hidden-C9KWUR7b.js} +2 -2
- package/{InfoBanner-CVIBFSWx.js → InfoBanner-BLM-TJJ6.js} +15 -14
- package/InfoBanner-C2kTIsrB.cjs +1 -0
- package/{Input-D8Ku_FQz.js → Input-BTzwcf72.js} +10 -10
- package/Label-7Ybb99CE.cjs +1 -0
- package/Label-BwJrdqEE.js +70 -0
- package/{Layout-BWeHHnqU.cjs → Layout-1g6bMH62.cjs} +2 -2
- package/{Layout-CCt_2L1k.js → Layout-Ey8flY7E.js} +9 -9
- package/{Link-DsnCtNeI.cjs → Link-B88l_oaE.cjs} +1 -1
- package/{Link-SHMbeyIP.cjs → Link-BQhauBuw.cjs} +1 -1
- package/{Link-uFowN4qv.js → Link-DX5BbBnn.js} +1 -1
- package/{Link-B-nus-FT.js → Link-yNO2-sqx.js} +17 -17
- package/LinkButton-CBpGLETx.cjs +6 -0
- package/LinkButton-o6uS1XsR.js +69 -0
- package/ListBox-DP9M4H6R.cjs +1 -0
- package/{ListBox-DOi_y_Lt.js → ListBox-GnVK_Pdq.js} +72 -73
- package/{ListBoxButton-CFeNhJhr.cjs → ListBoxButton-DPBrtXyv.cjs} +1 -1
- package/{ListBoxButton-O6zN3P4W.js → ListBoxButton-D_J3jlP0.js} +1 -1
- package/{ListBoxSection-DGCP6xpf.cjs → ListBoxSection-BGaigBnG.cjs} +1 -1
- package/{ListBoxSection-C1aLKL9p.js → ListBoxSection-C0BGnpB4.js} +9 -9
- package/{ListKeyboardDelegate-DNOzQ8nc.js → ListKeyboardDelegate-DNI8GQtX.js} +24 -15
- package/ListKeyboardDelegate-DTg9h4v6.cjs +1 -0
- package/{OverlayArrow-DorA4Rbr.js → OverlayArrow-CDLXPTew.js} +44 -44
- package/Popover-BGGXeD54.js +38 -0
- package/Popover-CqNWzPf-.cjs +1 -0
- package/{ProgressBar-gmAzSsrz.js → ProgressBar-DMSg-Prr.js} +2 -2
- package/ProgressBar-Jbg28j2a.cjs +1 -0
- package/Radio-BwqrdhQE.cjs +1 -0
- package/{Radio-_ukSkxPT.js → Radio-Cz29wPXd.js} +71 -71
- package/RangeCalendar-BehUaydF.cjs +11 -0
- package/{RangeCalendar-uXwoBL-O.js → RangeCalendar-RAlAHlNL.js} +25 -27
- package/{SearchField-6yBGiojX.cjs → SearchField-CxMwDeUM.cjs} +2 -2
- package/{SearchField-DYl2uo7o.js → SearchField-IlvZ3Kh6.js} +11 -11
- package/Select-2q1iSzAX.cjs +1 -0
- package/{Select-PvCqY7Lp.js → Select-BVQZtoi9.js} +232 -232
- package/{SelectionManager-6H88Cv6B.js → SelectionManager-B4ORduja.js} +26 -27
- package/SelectionManager-CwYux2h3.cjs +1 -0
- package/{Separator-LYnFqh4L.js → Separator-Cu9fYKUM.js} +19 -20
- package/Separator-DECIYLtZ.cjs +1 -0
- package/{Spinner-DAJtfxqJ.cjs → Spinner-P35rvvsl.cjs} +1 -1
- package/Table-B40CGLT-.cjs +16 -0
- package/{Table-B_N7wUmA.js → Table-F4oYBtUM.js} +69 -73
- package/{Tabs-Ct6D83aR.js → Tabs-B4oZJkZG.js} +39 -39
- package/{Tabs-Dtcl2oK2.cjs → Tabs-DA2qXhzb.cjs} +1 -1
- package/Tag-DPAGmcMK.cjs +1 -0
- package/{Tag-g6HN-YCv.js → Tag-Du7GvSv2.js} +151 -154
- package/Text-BoXuUVVH.js +15 -0
- package/{Text-BN-g1iWi.js → Text-jWWg0B20.js} +1 -1
- package/TextArea-C7JZ_pQd.cjs +1 -0
- package/TextArea-XeBCSyzl.js +191 -0
- package/TextField-BgNdhZi_.cjs +1 -0
- package/{TextField-DBaRuNj7.js → TextField-C-hTPukq.js} +16 -16
- package/Toast-AbDA1BOs.cjs +1 -0
- package/{Toast-CjpldAI8.js → Toast-Btg21Xge.js} +32 -31
- package/{ToggleButtonGroup-Ceh9_yBM.js → ToggleButtonGroup-B5yz1tm2.js} +7 -7
- package/{ToggleButtonGroup-BuU_6dYe.cjs → ToggleButtonGroup-BFDoj0P6.cjs} +1 -1
- package/{Tooltip-BAIjaYax.js → Tooltip-CMLs7WMw.js} +33 -33
- package/{Tooltip-CiWg4zIC.cjs → Tooltip-DeBuBKhS.cjs} +1 -1
- package/{VisuallyHidden-CtXvK_Tw.cjs → VisuallyHidden-CLWHbz2n.cjs} +1 -1
- package/{VisuallyHidden-D-4z1VgU.js → VisuallyHidden-ZCYf65q4.js} +8 -8
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +1 -1
- package/{arrow-right-Cw48o2oW.cjs → arrow-right-QJ2gXPKQ.cjs} +1 -1
- package/assets/Button.css +1 -1
- package/assets/Label.css +1 -1
- package/assets/LinkButton.css +1 -1
- package/assets/Popover.css +1 -0
- 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/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/{check-Dw9c62O4.cjs → check-D_KoootC.cjs} +1 -1
- package/checkbox/Checkbox.d.ts +2 -2
- package/checkbox/CheckboxGroup.d.ts +8 -8
- package/checkbox/CheckboxGroupFieldError.d.ts +8 -0
- package/checkbox/CheckboxGroupItem.d.ts +3 -0
- package/checkbox/CheckboxInner.d.ts +2 -0
- package/checkbox/SingleCheckbox.d.ts +3 -0
- package/checkbox/context.d.ts +3 -0
- package/checkbox/index.cjs +1 -1
- package/checkbox/index.d.ts +2 -1
- package/checkbox/index.js +2 -2
- package/checkbox/intl/translations.json.d.ts +35 -0
- package/checkbox/types.d.ts +14 -0
- package/checkbox/useSelectAll.d.ts +7 -0
- package/{chevron-down-C2E7aZ3N.cjs → chevron-down-jl83cllc.cjs} +1 -1
- package/{info-DkzVqB8I.js → circle-check-B9HYcH7Z.js} +4 -16
- package/{info-DlzSeKbc.cjs → circle-check-BGo8gML8.cjs} +2 -7
- package/color-scheme-switch/index.cjs +1 -1
- package/color-scheme-switch/index.js +1 -1
- package/combobox/ComboBox.d.ts +3 -1
- package/combobox/index.cjs +1 -1
- package/combobox/index.js +1 -1
- package/{context-B8cn10po.js → context-C81gPYvC.js} +11 -11
- package/{createLucideIcon-DAY4oS-S.cjs → createLucideIcon-Cg_wkoIA.cjs} +1 -1
- package/date-field/DateField.d.ts +3 -0
- package/date-field/index.cjs +1 -1
- package/date-field/index.js +2 -2
- package/date-picker/DatePicker.d.ts +3 -0
- package/date-picker/DateRangePicker.d.ts +3 -0
- 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/FileUpload.d.ts +3 -0
- package/file-upload/index.cjs +1 -1
- package/file-upload/index.js +1 -1
- package/{getScrollParent-Ru2U2LlM.js → getScrollParent-BhFcYrwL.js} +1 -1
- package/{getScrollParent-DuKmPmUa.cjs → getScrollParent-DDJu9WHU.cjs} +1 -1
- package/heading/index.cjs +1 -1
- package/heading/index.js +1 -1
- package/{index-BSMrH_Du.js → index-CGRFP4CC.js} +7 -7
- package/{index-D97L3EBk.cjs → index-Dsz3aiWt.cjs} +2 -2
- package/index.cjs +1 -1
- package/index.d.ts +1 -0
- package/index.js +80 -78
- package/inertValue-B3AFhVG4.cjs +1 -0
- package/info-BZwphdye.js +15 -0
- package/info-CIEIENo6.cjs +6 -0
- package/info-banner/index.cjs +1 -1
- package/info-banner/index.js +1 -1
- package/label/InfoPopover.d.ts +9 -0
- package/label/LabelWrapper.d.ts +11 -0
- package/label/index.cjs +1 -1
- package/label/index.d.ts +1 -0
- 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/modal/index.cjs +1 -1
- package/modal/index.js +2 -2
- package/package.json +1 -1
- package/popover/Popover.d.ts +7 -0
- package/popover/index.cjs +1 -0
- package/popover/index.d.ts +1 -0
- package/popover/index.js +4 -0
- package/progress-bar/index.cjs +1 -1
- package/progress-bar/index.js +1 -1
- package/radio/Radio.d.ts +3 -0
- package/radio/index.cjs +1 -1
- package/radio/index.js +1 -1
- package/scrollIntoView-C8doLzDd.cjs +1 -0
- package/scrollIntoView-Hwb_aaNf.js +87 -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/spinner/index.cjs +1 -1
- package/{square-arrow-out-up-right-BCAO2eJs.cjs → square-arrow-out-up-right-V4Gd08uI.cjs} +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.js +1 -1
- package/textfield/TextFieldBase.d.ts +2 -0
- 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/{triangle-alert-C0lvfCYH.cjs → triangle-alert-DJW8U7jL.cjs} +1 -1
- package/{useButton-C-Lq7CNY.js → useButton-B8dB9sot.js} +6 -6
- package/{useButton-B1Fa-6qE.cjs → useButton-cpNi-fY4.cjs} +1 -1
- package/{useDateFormatter-g2maMTGH.cjs → useDateFormatter-CnxoJ4jF.cjs} +1 -1
- package/{useDateFormatter-C53Uxdli.js → useDateFormatter-EHm4auIg.js} +2 -2
- package/{useEvent-CjkbBniY.cjs → useEvent-DxBxMX2V.cjs} +1 -1
- package/{useEvent-Cyd2ZL0c.js → useEvent-IsD2Awnh.js} +1 -1
- package/useField-CXKYU74k.cjs +1 -0
- package/{useField-BPMAlIbU.js → useField-DvpGZkw_.js} +7 -7
- package/useFilter-BTgDWHVx.cjs +1 -0
- package/{useFilter-ChIbnALW.js → useFilter-CUq74PQ2.js} +1 -1
- package/{useFocusRing-BDGH3lpn.js → useFocusRing-XnR3cZjO.js} +1 -1
- package/useFocusable-C8uh8K4g.js +125 -0
- package/useFocusable-NUVSFcRC.cjs +1 -0
- package/{useFormValidation-R8hQIjWP.js → useFormValidation-BIGzfO9h.js} +5 -5
- package/{useHasTabbableChild-DsD9AJwE.js → useHasTabbableChild-C-1mZUQe.js} +2 -2
- package/useHasTabbableChild-DCBTulUQ.cjs +1 -0
- package/{useHighlightSelectionDescription-DFfcgbUj.js → useHighlightSelectionDescription-CnBDT86u.js} +14 -14
- package/useHighlightSelectionDescription-CzYucm61.cjs +1 -0
- package/{useHover-qRAon4nS.js → useHover-DjIHtjGN.js} +17 -17
- package/{useLabels-BZjoZA1Z.js → useLabels-BDwkBYbE.js} +1 -1
- package/{useListState-Ca2-uZMO.cjs → useListState-Bx8u4IFG.cjs} +1 -1
- package/{useListState-DFQ9d-uE.js → useListState-CrZFZffI.js} +7 -7
- package/useLocalizedStringFormatter-BKoxGZf1.js +96 -0
- package/useLocalizedStringFormatter-BsxLt89S.cjs +1 -0
- package/useLocalizedStringFormatter-D3JQyjb4.js +21 -0
- package/useLocalizedStringFormatter-ioacM-Yt.cjs +1 -0
- package/useObserveElement-MhzEsCkX.cjs +1 -0
- package/usePress-0AjDbW9R.cjs +7 -0
- package/{usePress-CUJ3pMOw.js → usePress-CNjmDzap.js} +48 -48
- package/{useSingleSelectListState-C-nB8cug.js → useSingleSelectListState-0AGHxvy3.js} +1 -1
- package/{useSingleSelectListState-MGNxUTum.cjs → useSingleSelectListState-Cl3KV5E1.cjs} +1 -1
- package/{useTextField-CtUDWsUl.cjs → useTextField--czJtyNd.cjs} +1 -1
- package/{useTextField-5OZQPyOW.js → useTextField-Cw-33OP_.js} +11 -11
- package/{useUpdateEffect-sk3kiVGz.cjs → useUpdateEffect-C5YQs_1w.cjs} +1 -1
- package/{utils-HNTsIwux.js → utils-DIMfEPAt.js} +10 -10
- package/{x-CvxiAZTW.cjs → x-H8Zrx8-x.cjs} +1 -1
- package/Button-DnhqHU01.cjs +0 -1
- package/Button-ZOQy9Ivu.js +0 -78
- package/Button.module-CMMhIrkn.js +0 -14
- package/Button.module-DO5s9hOk.cjs +0 -1
- package/Card-C0BFW3wJ.cjs +0 -1
- package/CharacterCounter-CPGdboVJ.js +0 -22
- package/Checkbox-CvFsn_FL.js +0 -380
- package/Checkbox-DSxGAJX2.cjs +0 -1
- package/CheckboxGroup-Bk9DPq4I.cjs +0 -1
- package/CheckboxGroup-Dij9zKlF.js +0 -54
- package/ComboBox-gveQKHU3.cjs +0 -1
- package/DateField-CAQlzuDD.js +0 -46
- package/DateField-deVVFwKA.cjs +0 -1
- package/DateInputDivider-DnUxETEC.cjs +0 -1
- package/DateRangePicker-BzfitoK0.cjs +0 -6
- package/Dialog-Bd5hK360.cjs +0 -1
- package/FieldError-BZw8UzBk.cjs +0 -1
- package/FieldError-CZikNDxX.js +0 -28
- package/FieldError-DqdfJ3fs.cjs +0 -1
- package/FieldError-Dv3bBEjh.js +0 -23
- package/FocusScope-NaPbvuuS.cjs +0 -1
- package/InfoBanner-BS-dAfzO.cjs +0 -1
- package/Label-C9ivwkAd.js +0 -21
- package/Label-CUV21CAv.cjs +0 -1
- package/Label-DkDOsmUF.js +0 -16
- package/Label-IMWAyoKb.cjs +0 -1
- package/LinkButton-CuBilDML.js +0 -69
- package/LinkButton-CymMrcGL.cjs +0 -6
- package/ListBox-CDOsQChA.cjs +0 -1
- package/ListKeyboardDelegate-BqMETvPv.cjs +0 -1
- package/LiveAnnouncer-B6177m92.js +0 -51
- package/LiveAnnouncer-CwEWPU8b.cjs +0 -1
- package/LocalizedStringFormatter-C0C54hjf.cjs +0 -1
- package/LocalizedStringFormatter-D-4Qyql0.js +0 -77
- package/NumberFormatter-DewVDY5w.cjs +0 -1
- package/NumberFormatter-DgOUVrge.js +0 -119
- package/PressResponder-C06O3Z5P.cjs +0 -1
- package/PressResponder-CVEg5kND.js +0 -33
- package/ProgressBar-Bkw9zavs.cjs +0 -1
- package/ProgressBar-CEX2WNoW.js +0 -77
- package/ProgressBar-Dqh3ftSP.cjs +0 -1
- package/Radio-CDKrvQe4.cjs +0 -1
- package/RangeCalendar-cbCKBPZv.cjs +0 -11
- package/Select-CpHjd1tp.cjs +0 -1
- package/SelectionManager-C5NGBzvz.cjs +0 -1
- package/Separator-nPra6kD-.cjs +0 -1
- package/Table-D9vNc_y-.cjs +0 -16
- package/Tag-CVFkzg3s.cjs +0 -1
- package/Text-B_H68Tvq.js +0 -15
- package/TextArea-DSiQ578a.js +0 -206
- package/TextArea-cVyGBRbL.cjs +0 -1
- package/TextField-B70CL2qz.cjs +0 -1
- package/Toast-DrkOGy4d.cjs +0 -1
- package/focusSafely-Bqfo_DH7.cjs +0 -1
- package/focusSafely-C48ucRUz.js +0 -56
- package/inertValue-BWmZ1afe.cjs +0 -1
- package/scrollIntoView-ClEACHUk.js +0 -57
- package/scrollIntoView-DRSoJp89.cjs +0 -1
- package/useCollator-C_ozeWLo.cjs +0 -1
- package/useCollator-CgZcHC8N.js +0 -11
- package/useDescription-CVKhFa3c.js +0 -32
- package/useDescription-DmQYSEES.cjs +0 -1
- package/useField-B1RU0GKs.cjs +0 -1
- package/useFilter-CtIwF2qW.cjs +0 -1
- package/useFocusable-CaedRTpB.js +0 -74
- package/useFocusable-CuPQ7Cm5.cjs +0 -1
- package/useHasTabbableChild-DgphNvnk.cjs +0 -1
- package/useHighlightSelectionDescription-BizKjvPU.cjs +0 -1
- package/useLabel-DDdAJ1JO.js +0 -23
- package/useLabel-m_S5xkHy.cjs +0 -1
- package/useLocalizedStringFormatter-D07YB2e1.js +0 -22
- package/useLocalizedStringFormatter-u9SJaOwk.cjs +0 -1
- package/useObserveElement-BzEr5D32.cjs +0 -1
- package/usePress-BFa6cT9o.cjs +0 -7
|
@@ -1,33 +1,29 @@
|
|
|
1
1
|
import { jsx as S, jsxs as pe, Fragment as zt } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { f as At, e as Kt, $ as Pt } from "./Button-DjBChs7s.js";
|
|
3
3
|
import { a as ze } from "./RSPContexts-BW2SEIqe.js";
|
|
4
|
-
import { a as he, $ as ge, d as F, c as X, b as
|
|
5
|
-
import {
|
|
6
|
-
import { $ as L, b as
|
|
7
|
-
import { f as E, i as T, j as H, k as _, e as
|
|
8
|
-
import $, { useMemo as M, useCallback as ve, useRef as N, useEffect as le, useState as
|
|
4
|
+
import { a as he, $ as ge, d as F, c as X, b as Nt, i as Ft, f as Ae, j as Mt, k as De } from "./Collection-Brgjpkne.js";
|
|
5
|
+
import { e as me, c as K, n as Rt, b as O, a as It, l as Q, j as te, o as we, m as Vt } from "./utils-DIMfEPAt.js";
|
|
6
|
+
import { $ as L, b as Ht, a as Tt, c as jt, d as Ot } from "./DragAndDrop-o3ruz_SR.js";
|
|
7
|
+
import { f as E, i as T, j as H, k as _, e as Ut, d as Ke, $ as Pe, b as Wt, a as Lt } from "./SelectionManager-B4ORduja.js";
|
|
8
|
+
import $, { useMemo as M, useCallback as ve, useRef as N, useEffect as le, useState as Gt, forwardRef as Ne, useContext as C, createContext as G } from "react";
|
|
9
9
|
import { $ as I } from "./filterDOMProps-D6KHYVBX.js";
|
|
10
|
-
import { $ as
|
|
10
|
+
import { $ as Yt } from "./inertValue-B7loUihk.js";
|
|
11
11
|
import "react-dom";
|
|
12
|
-
import { j as
|
|
13
|
-
import {
|
|
14
|
-
import { $ as ne } from "./context-
|
|
15
|
-
import { $ as J } from "./useFocusRing-
|
|
16
|
-
import { $ as ke, a as
|
|
17
|
-
import { $ as
|
|
18
|
-
import {
|
|
19
|
-
import { a as be } from "./VisuallyHidden-
|
|
20
|
-
import {
|
|
21
|
-
import { $ as
|
|
22
|
-
import {
|
|
23
|
-
import { $ as
|
|
24
|
-
import {
|
|
25
|
-
import { a as tl, $ as ll } from "./ListKeyboardDelegate-DNOzQ8nc.js";
|
|
26
|
-
import { $ as ol } from "./LiveAnnouncer-B6177m92.js";
|
|
27
|
-
import { $ as Me } from "./useCollator-CgZcHC8N.js";
|
|
28
|
-
import { $ as nl } from "./useHasTabbableChild-DsD9AJwE.js";
|
|
12
|
+
import { j as qt, E as ee, n as Ce, $ as oe } from "./useHover-DjIHtjGN.js";
|
|
13
|
+
import { a as Zt, f as Jt } from "./usePress-CNjmDzap.js";
|
|
14
|
+
import { $ as ne } from "./context-C81gPYvC.js";
|
|
15
|
+
import { $ as J } from "./useFocusRing-XnR3cZjO.js";
|
|
16
|
+
import { $ as ke, a as Xt } from "./FocusScope-CxkURfoc.js";
|
|
17
|
+
import { $ as Qt, a as _t, b as el } from "./useHighlightSelectionDescription-CnBDT86u.js";
|
|
18
|
+
import { b as re } from "./useLocalizedStringFormatter-BKoxGZf1.js";
|
|
19
|
+
import { a as be } from "./VisuallyHidden-ZCYf65q4.js";
|
|
20
|
+
import { c as U, a as Fe } from "./scrollIntoView-Hwb_aaNf.js";
|
|
21
|
+
import { a as V, $ as tl } from "./useFocusable-C8uh8K4g.js";
|
|
22
|
+
import { $ as W } from "./getScrollParent-BhFcYrwL.js";
|
|
23
|
+
import { b as ll, $ as Me, a as ol } from "./ListKeyboardDelegate-DNI8GQtX.js";
|
|
24
|
+
import { $ as nl } from "./useHasTabbableChild-C-1mZUQe.js";
|
|
29
25
|
import { $ as rl } from "./useUpdateEffect-CCDx8D4X.js";
|
|
30
|
-
import { C as Re } from "./Checkbox-
|
|
26
|
+
import { C as Re } from "./Checkbox-5HINZdGu.js";
|
|
31
27
|
import { c as Ie } from "./clsx-OuTLNxxd.js";
|
|
32
28
|
import { c as ye } from "./createLucideIcon-DeWljiyi.js";
|
|
33
29
|
import './assets/Table.css';class Ve {
|
|
@@ -244,7 +240,7 @@ import './assets/Table.css';class Ve {
|
|
|
244
240
|
}
|
|
245
241
|
constructor(t) {
|
|
246
242
|
if (this.collection = t.collection, this.disabledKeys = t.disabledKeys, this.disabledBehavior = t.disabledBehavior || "all", this.direction = t.direction, this.collator = t.collator, !t.layout && !t.ref) throw new Error("Either a layout or a ref must be specified.");
|
|
247
|
-
this.layoutDelegate = t.layoutDelegate || (t.layout ? new il(t.layout) : new
|
|
243
|
+
this.layoutDelegate = t.layoutDelegate || (t.layout ? new il(t.layout) : new ll(t.ref)), this.focusMode = t.focusMode || "row";
|
|
248
244
|
}
|
|
249
245
|
}
|
|
250
246
|
class il {
|
|
@@ -286,7 +282,7 @@ function ul(e, t, l) {
|
|
|
286
282
|
m,
|
|
287
283
|
h,
|
|
288
284
|
i
|
|
289
|
-
]), { collectionProps: D } =
|
|
285
|
+
]), { collectionProps: D } = Ut({
|
|
290
286
|
ref: l,
|
|
291
287
|
selectionManager: c,
|
|
292
288
|
keyboardDelegate: y,
|
|
@@ -303,7 +299,7 @@ function ul(e, t, l) {
|
|
|
303
299
|
},
|
|
304
300
|
shouldSelectOnPressUp: d
|
|
305
301
|
});
|
|
306
|
-
let x =
|
|
302
|
+
let x = Qt({
|
|
307
303
|
selectionManager: c,
|
|
308
304
|
hasItemActions: !!(f || a)
|
|
309
305
|
}), g = I(e, {
|
|
@@ -338,7 +334,7 @@ function ul(e, t, l) {
|
|
|
338
334
|
} || void 0,
|
|
339
335
|
x
|
|
340
336
|
);
|
|
341
|
-
return o && (A["aria-rowcount"] = t.collection.size, A["aria-colcount"] = t.collection.columnCount),
|
|
337
|
+
return o && (A["aria-rowcount"] = t.collection.size, A["aria-colcount"] = t.collection.columnCount), _t({
|
|
342
338
|
getRowText: s
|
|
343
339
|
}, t), {
|
|
344
340
|
gridProps: A
|
|
@@ -362,7 +358,7 @@ function sl(e, t, l) {
|
|
|
362
358
|
ref: l,
|
|
363
359
|
isVirtualized: i,
|
|
364
360
|
shouldSelectOnPressUp: a || p,
|
|
365
|
-
onAction: u || !(r == null || (o = r.props) === null || o === void 0) && o.onAction ?
|
|
361
|
+
onAction: u || !(r == null || (o = r.props) === null || o === void 0) && o.onAction ? Rt(r == null || (n = r.props) === null || n === void 0 ? void 0 : n.onAction, u) : void 0,
|
|
366
362
|
isDisabled: t.collection.size === 0
|
|
367
363
|
}), h = t.selectionManager.isSelected(r.key), m = {
|
|
368
364
|
role: "row",
|
|
@@ -405,8 +401,8 @@ function He(e, t, l) {
|
|
|
405
401
|
case "ArrowLeft": {
|
|
406
402
|
let w = s === "rtl" ? x.nextNode() : x.previousNode();
|
|
407
403
|
if (r === "child" && w === l.current && (w = null), b.preventDefault(), b.stopPropagation(), w)
|
|
408
|
-
V(w),
|
|
409
|
-
containingElement:
|
|
404
|
+
V(w), U(w, {
|
|
405
|
+
containingElement: W(l.current)
|
|
410
406
|
});
|
|
411
407
|
else {
|
|
412
408
|
var g;
|
|
@@ -415,10 +411,10 @@ function He(e, t, l) {
|
|
|
415
411
|
(k = l.current.parentElement) === null || k === void 0 || k.dispatchEvent(new KeyboardEvent(b.nativeEvent.type, b.nativeEvent));
|
|
416
412
|
break;
|
|
417
413
|
}
|
|
418
|
-
r === "cell" && s === "rtl" ? (V(l.current),
|
|
419
|
-
containingElement:
|
|
420
|
-
})) : (x.currentNode = l.current, w = s === "rtl" ? x.firstChild() : de(x), w && (V(w),
|
|
421
|
-
containingElement:
|
|
414
|
+
r === "cell" && s === "rtl" ? (V(l.current), U(l.current, {
|
|
415
|
+
containingElement: W(l.current)
|
|
416
|
+
})) : (x.currentNode = l.current, w = s === "rtl" ? x.firstChild() : de(x), w && (V(w), U(w, {
|
|
417
|
+
containingElement: W(l.current)
|
|
422
418
|
})));
|
|
423
419
|
}
|
|
424
420
|
break;
|
|
@@ -426,8 +422,8 @@ function He(e, t, l) {
|
|
|
426
422
|
case "ArrowRight": {
|
|
427
423
|
let w = s === "rtl" ? x.previousNode() : x.nextNode();
|
|
428
424
|
if (r === "child" && w === l.current && (w = null), b.preventDefault(), b.stopPropagation(), w)
|
|
429
|
-
V(w),
|
|
430
|
-
containingElement:
|
|
425
|
+
V(w), U(w, {
|
|
426
|
+
containingElement: W(l.current)
|
|
431
427
|
});
|
|
432
428
|
else {
|
|
433
429
|
var z;
|
|
@@ -436,10 +432,10 @@ function He(e, t, l) {
|
|
|
436
432
|
(P = l.current.parentElement) === null || P === void 0 || P.dispatchEvent(new KeyboardEvent(b.nativeEvent.type, b.nativeEvent));
|
|
437
433
|
break;
|
|
438
434
|
}
|
|
439
|
-
r === "cell" && s === "ltr" ? (V(l.current),
|
|
440
|
-
containingElement:
|
|
441
|
-
})) : (x.currentNode = l.current, w = s === "rtl" ? de(x) : x.firstChild(), w && (V(w),
|
|
442
|
-
containingElement:
|
|
435
|
+
r === "cell" && s === "ltr" ? (V(l.current), U(l.current, {
|
|
436
|
+
containingElement: W(l.current)
|
|
437
|
+
})) : (x.currentNode = l.current, w = s === "rtl" ? de(x) : x.firstChild(), w && (V(w), U(w, {
|
|
438
|
+
containingElement: W(l.current)
|
|
443
439
|
})));
|
|
444
440
|
}
|
|
445
441
|
break;
|
|
@@ -454,7 +450,7 @@ function He(e, t, l) {
|
|
|
454
450
|
}
|
|
455
451
|
}, v = (b) => {
|
|
456
452
|
if (u.current = o.key, b.target !== l.current) {
|
|
457
|
-
|
|
453
|
+
qt() || t.selectionManager.setFocusedKey(o.key);
|
|
458
454
|
return;
|
|
459
455
|
}
|
|
460
456
|
requestAnimationFrame(() => {
|
|
@@ -491,7 +487,7 @@ function dl(e) {
|
|
|
491
487
|
}
|
|
492
488
|
function cl(e, t) {
|
|
493
489
|
let { key: l } = e, o = t.selectionManager, n = me(), r = !t.selectionManager.canSelectItem(l), i = t.selectionManager.isSelected(l), p = () => o.toggleSelection(l);
|
|
494
|
-
const s = re(dl(
|
|
490
|
+
const s = re(dl(el), "@react-aria/grid");
|
|
495
491
|
return {
|
|
496
492
|
checkboxProps: {
|
|
497
493
|
id: n,
|
|
@@ -1095,7 +1091,7 @@ function gl(e, t, l) {
|
|
|
1095
1091
|
t.collection.columns
|
|
1096
1092
|
]), y = Fe(v);
|
|
1097
1093
|
return rl(() => {
|
|
1098
|
-
v &&
|
|
1094
|
+
v && At(v, "assertive", 500);
|
|
1099
1095
|
}, [
|
|
1100
1096
|
v
|
|
1101
1097
|
]), {
|
|
@@ -1116,13 +1112,13 @@ function vl(e, t, l) {
|
|
|
1116
1112
|
let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: p } = He({
|
|
1117
1113
|
...e,
|
|
1118
1114
|
focusMode: "child"
|
|
1119
|
-
}, t, l), s = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: f } =
|
|
1115
|
+
}, t, l), s = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: f } = Zt({
|
|
1120
1116
|
isDisabled: !i || s,
|
|
1121
1117
|
onPress() {
|
|
1122
1118
|
t.sort(r.key);
|
|
1123
1119
|
},
|
|
1124
1120
|
ref: l
|
|
1125
|
-
}), { focusableProps: a } =
|
|
1121
|
+
}), { focusableProps: a } = tl({}, l), u, d = ((o = t.sortDescriptor) === null || o === void 0 ? void 0 : o.column) === r.key, c = (n = t.sortDescriptor) === null || n === void 0 ? void 0 : n.direction;
|
|
1126
1122
|
r.props.allowsSorting && !Ce() && (u = d ? c : "none");
|
|
1127
1123
|
let h = re(ml(ie), "@react-aria/table"), m;
|
|
1128
1124
|
i && (m = `${h.format("sortable")}`, d && c && Ce() && (m = `${m}, ${h.format(c)}`));
|
|
@@ -1183,7 +1179,7 @@ function bl(e, t, l) {
|
|
|
1183
1179
|
};
|
|
1184
1180
|
}
|
|
1185
1181
|
}
|
|
1186
|
-
let b =
|
|
1182
|
+
let b = Jt(o.props), x = i.hasAction ? b : {};
|
|
1187
1183
|
return {
|
|
1188
1184
|
rowProps: {
|
|
1189
1185
|
...K(r, s, x),
|
|
@@ -1252,7 +1248,7 @@ function Cl(e) {
|
|
|
1252
1248
|
}
|
|
1253
1249
|
r(s, f);
|
|
1254
1250
|
};
|
|
1255
|
-
let i = M(() => new
|
|
1251
|
+
let i = M(() => new Wt(t, o), [
|
|
1256
1252
|
t,
|
|
1257
1253
|
o
|
|
1258
1254
|
]);
|
|
@@ -1619,7 +1615,7 @@ const Sl = {
|
|
|
1619
1615
|
descending: "ascending"
|
|
1620
1616
|
};
|
|
1621
1617
|
function Bl(e) {
|
|
1622
|
-
let [t, l] =
|
|
1618
|
+
let [t, l] = Gt(!1), { selectionMode: o = "none", showSelectionCheckboxes: n, showDragButtons: r } = e, i = M(() => ({
|
|
1623
1619
|
showSelectionCheckboxes: n && o !== "none",
|
|
1624
1620
|
showDragButtons: r,
|
|
1625
1621
|
selectionMode: o,
|
|
@@ -1629,7 +1625,7 @@ function Bl(e) {
|
|
|
1629
1625
|
n,
|
|
1630
1626
|
o,
|
|
1631
1627
|
r
|
|
1632
|
-
]), p =
|
|
1628
|
+
]), p = Lt(e, ve((u) => new El(u, null, i), [
|
|
1633
1629
|
i
|
|
1634
1630
|
]), i), { disabledKeys: s, selectionManager: f } = Cl({
|
|
1635
1631
|
...e,
|
|
@@ -1654,7 +1650,7 @@ function Bl(e) {
|
|
|
1654
1650
|
}
|
|
1655
1651
|
};
|
|
1656
1652
|
}
|
|
1657
|
-
class zl extends
|
|
1653
|
+
class zl extends Mt {
|
|
1658
1654
|
addNode(t) {
|
|
1659
1655
|
super.addNode(t), this.columnsDirty || (this.columnsDirty = t.type === "column"), t.type === "tableheader" && (this.head = t), t.type === "tablebody" && (this.body = t);
|
|
1660
1656
|
}
|
|
@@ -1742,7 +1738,7 @@ class zl extends Ft {
|
|
|
1742
1738
|
}
|
|
1743
1739
|
const Al = /* @__PURE__ */ G(null), Kl = /* @__PURE__ */ G(null), R = /* @__PURE__ */ G(null), kt = /* @__PURE__ */ G(null), Pl = /* @__PURE__ */ Ne(function(t, l) {
|
|
1744
1740
|
var o;
|
|
1745
|
-
[t, l] =
|
|
1741
|
+
[t, l] = It(t, l, Kl);
|
|
1746
1742
|
let n = Pe(t), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: p } = n, s = !!(!((o = t.dragAndDropHooks) === null || o === void 0) && o.useDraggableCollectionState), f = M(() => ({
|
|
1747
1743
|
selectionBehavior: i === "none" ? null : r,
|
|
1748
1744
|
selectionMode: i,
|
|
@@ -1756,7 +1752,7 @@ const Al = /* @__PURE__ */ G(null), Kl = /* @__PURE__ */ G(null), R = /* @__PURE
|
|
|
1756
1752
|
]), a = /* @__PURE__ */ $.createElement(Et.Provider, {
|
|
1757
1753
|
value: f
|
|
1758
1754
|
}, /* @__PURE__ */ $.createElement(X, t));
|
|
1759
|
-
return /* @__PURE__ */ $.createElement(
|
|
1755
|
+
return /* @__PURE__ */ $.createElement(Nt, {
|
|
1760
1756
|
content: a,
|
|
1761
1757
|
createCollection: () => new zl()
|
|
1762
1758
|
}, (u) => /* @__PURE__ */ $.createElement(Nl, {
|
|
@@ -1768,7 +1764,7 @@ const Al = /* @__PURE__ */ G(null), Kl = /* @__PURE__ */ G(null), R = /* @__PURE
|
|
|
1768
1764
|
});
|
|
1769
1765
|
function Nl({ props: e, forwardedRef: t, selectionState: l, collection: o }) {
|
|
1770
1766
|
let n = C(Al);
|
|
1771
|
-
t = Q(M(() =>
|
|
1767
|
+
t = Q(M(() => Vt(t, n == null ? void 0 : n.tableRef), [
|
|
1772
1768
|
t,
|
|
1773
1769
|
n == null ? void 0 : n.tableRef
|
|
1774
1770
|
]));
|
|
@@ -1805,7 +1801,7 @@ function Nl({ props: e, forwardedRef: t, selectionState: l, collection: o }) {
|
|
|
1805
1801
|
collection: o,
|
|
1806
1802
|
selectionManager: d
|
|
1807
1803
|
});
|
|
1808
|
-
let se = new
|
|
1804
|
+
let se = new ol({
|
|
1809
1805
|
collection: o,
|
|
1810
1806
|
disabledKeys: d.disabledKeys,
|
|
1811
1807
|
disabledBehavior: d.disabledBehavior,
|
|
@@ -1858,13 +1854,13 @@ function Nl({ props: e, forwardedRef: t, selectionState: l, collection: o }) {
|
|
|
1858
1854
|
}
|
|
1859
1855
|
],
|
|
1860
1856
|
[
|
|
1861
|
-
|
|
1857
|
+
Tt,
|
|
1862
1858
|
{
|
|
1863
1859
|
render: Tl
|
|
1864
1860
|
}
|
|
1865
1861
|
]
|
|
1866
1862
|
]
|
|
1867
|
-
}, /* @__PURE__ */ $.createElement(
|
|
1863
|
+
}, /* @__PURE__ */ $.createElement(Xt, null, /* @__PURE__ */ $.createElement(ue, {
|
|
1868
1864
|
...I(e),
|
|
1869
1865
|
...w,
|
|
1870
1866
|
...K(u, z, b == null ? void 0 : b.collectionProps),
|
|
@@ -1879,7 +1875,7 @@ function Nl({ props: e, forwardedRef: t, selectionState: l, collection: o }) {
|
|
|
1879
1875
|
}, /* @__PURE__ */ $.createElement(f, {
|
|
1880
1876
|
collection: o,
|
|
1881
1877
|
scrollRef: (ae = n == null ? void 0 : n.scrollRef) !== null && ae !== void 0 ? ae : t,
|
|
1882
|
-
persistedKeys:
|
|
1878
|
+
persistedKeys: jt(d, a, D)
|
|
1883
1879
|
}))), g);
|
|
1884
1880
|
}
|
|
1885
1881
|
function B(e) {
|
|
@@ -1891,7 +1887,7 @@ function St() {
|
|
|
1891
1887
|
return C(Et);
|
|
1892
1888
|
}
|
|
1893
1889
|
const Fl = /* @__PURE__ */ he("tableheader", (e, t) => {
|
|
1894
|
-
let l = C(R).collection, o =
|
|
1890
|
+
let l = C(R).collection, o = Ft({
|
|
1895
1891
|
items: l.headerRows,
|
|
1896
1892
|
children: ve((f) => {
|
|
1897
1893
|
switch (f.type) {
|
|
@@ -2018,7 +2014,7 @@ const Rl = /* @__PURE__ */ ge("column", (e, t, l) => {
|
|
|
2018
2014
|
]
|
|
2019
2015
|
]
|
|
2020
2016
|
}, v.children));
|
|
2021
|
-
}), Il = /* @__PURE__ */ G(null),
|
|
2017
|
+
}), Il = /* @__PURE__ */ G(null), Ao = /* @__PURE__ */ he("tablebody", (e, t) => {
|
|
2022
2018
|
let l = C(R), { isVirtualized: o } = C(F), n = l.collection, { CollectionBranch: r } = C(F), { dragAndDropHooks: i, dropState: p } = C(L), s = !!(i != null && i.useDroppableCollectionState) && !(p != null && p.isDisabled);
|
|
2023
2019
|
var f;
|
|
2024
2020
|
let a = s && !!p && ((f = p.isDropTarget({
|
|
@@ -2056,7 +2052,7 @@ const Rl = /* @__PURE__ */ ge("column", (e, t, l) => {
|
|
|
2056
2052
|
}, s && /* @__PURE__ */ $.createElement(Ul, null), /* @__PURE__ */ $.createElement(r, {
|
|
2057
2053
|
collection: n,
|
|
2058
2054
|
parent: n.body,
|
|
2059
|
-
renderDropIndicator:
|
|
2055
|
+
renderDropIndicator: Ht(i, p)
|
|
2060
2056
|
}), h);
|
|
2061
2057
|
}), Vl = /* @__PURE__ */ he("item", (e, t, l) => {
|
|
2062
2058
|
let o = Q(t), n = C(R), { dragAndDropHooks: r, dragState: i, dropState: p } = C(L), { isVirtualized: s, CollectionBranch: f } = C(F), { rowProps: a, ...u } = bl({
|
|
@@ -2148,7 +2144,7 @@ const Rl = /* @__PURE__ */ ge("column", (e, t, l) => {
|
|
|
2148
2144
|
}
|
|
2149
2145
|
],
|
|
2150
2146
|
[
|
|
2151
|
-
|
|
2147
|
+
Kt,
|
|
2152
2148
|
{
|
|
2153
2149
|
slots: {
|
|
2154
2150
|
[we]: {},
|
|
@@ -2284,7 +2280,7 @@ ge("loader", function(t, l, o) {
|
|
|
2284
2280
|
s,
|
|
2285
2281
|
n == null ? void 0 : n.collection
|
|
2286
2282
|
]);
|
|
2287
|
-
|
|
2283
|
+
Ot(d, u);
|
|
2288
2284
|
let c = O({
|
|
2289
2285
|
...f,
|
|
2290
2286
|
id: void 0,
|
|
@@ -2298,7 +2294,7 @@ ge("loader", function(t, l, o) {
|
|
|
2298
2294
|
style: {
|
|
2299
2295
|
height: 0
|
|
2300
2296
|
},
|
|
2301
|
-
inert:
|
|
2297
|
+
inert: Yt(!0)
|
|
2302
2298
|
}, /* @__PURE__ */ $.createElement(m, {
|
|
2303
2299
|
style: {
|
|
2304
2300
|
padding: 0,
|
|
@@ -2371,7 +2367,7 @@ const Gl = ye("GripVertical", [
|
|
|
2371
2367
|
narrow: Ql,
|
|
2372
2368
|
medium: _l,
|
|
2373
2369
|
striped: eo
|
|
2374
|
-
},
|
|
2370
|
+
}, Ko = ({
|
|
2375
2371
|
narrow: e = !1,
|
|
2376
2372
|
size: t = "large",
|
|
2377
2373
|
striped: l = !1,
|
|
@@ -2387,7 +2383,7 @@ const Gl = ye("GripVertical", [
|
|
|
2387
2383
|
}),
|
|
2388
2384
|
...n
|
|
2389
2385
|
}
|
|
2390
|
-
),
|
|
2386
|
+
), Po = ({
|
|
2391
2387
|
columns: e,
|
|
2392
2388
|
children: t
|
|
2393
2389
|
}) => {
|
|
@@ -2397,7 +2393,7 @@ const Gl = ye("GripVertical", [
|
|
|
2397
2393
|
l === "toggle" && /* @__PURE__ */ S(Se, { width: 50, children: o === "multiple" && /* @__PURE__ */ S(Re, { slot: "selection" }) }),
|
|
2398
2394
|
/* @__PURE__ */ S(X, { items: e, children: t })
|
|
2399
2395
|
] });
|
|
2400
|
-
},
|
|
2396
|
+
}, No = ({
|
|
2401
2397
|
id: e,
|
|
2402
2398
|
columns: t,
|
|
2403
2399
|
children: l,
|
|
@@ -2411,7 +2407,7 @@ const Gl = ye("GripVertical", [
|
|
|
2411
2407
|
className: Ie(j.row),
|
|
2412
2408
|
...o,
|
|
2413
2409
|
children: [
|
|
2414
|
-
r && /* @__PURE__ */ S(Be, { children: /* @__PURE__ */ S(
|
|
2410
|
+
r && /* @__PURE__ */ S(Be, { children: /* @__PURE__ */ S(Pt, { slot: "drag", children: /* @__PURE__ */ S(Gl, { size: 20 }) }) }),
|
|
2415
2411
|
n === "toggle" && /* @__PURE__ */ S(Be, { children: /* @__PURE__ */ S(Re, { slot: "selection" }) }),
|
|
2416
2412
|
/* @__PURE__ */ S(X, { items: t, children: l })
|
|
2417
2413
|
]
|
|
@@ -2442,10 +2438,10 @@ const Gl = ye("GripVertical", [
|
|
|
2442
2438
|
}
|
|
2443
2439
|
);
|
|
2444
2440
|
export {
|
|
2445
|
-
|
|
2441
|
+
Ao as $,
|
|
2446
2442
|
Se as C,
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2443
|
+
No as R,
|
|
2444
|
+
Ko as T,
|
|
2445
|
+
Po as a,
|
|
2450
2446
|
Be as b
|
|
2451
2447
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { jsxs as z, jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import u, { useMemo as E, useRef as _, useEffect as
|
|
4
|
-
import { $ as
|
|
5
|
-
import {
|
|
6
|
-
import { $ as Y } from "./Hidden-
|
|
1
|
+
import { jsxs as z, jsx as F } from "react/jsx-runtime";
|
|
2
|
+
import * as S from "react";
|
|
3
|
+
import u, { useMemo as E, useRef as _, useEffect as j, forwardRef as M, createContext as N, useContext as h } from "react";
|
|
4
|
+
import { $ as B, b as W, c as U, d as R, f as q, g as G } from "./Collection-Brgjpkne.js";
|
|
5
|
+
import { c as p, e as J, a as Q, l as w, b as g, j as k, g as X } from "./utils-DIMfEPAt.js";
|
|
6
|
+
import { $ as Y } from "./Hidden-C9KWUR7b.js";
|
|
7
7
|
import { $ as K } from "./filterDOMProps-D6KHYVBX.js";
|
|
8
8
|
import { $ as T } from "./inertValue-B7loUihk.js";
|
|
9
|
-
import {
|
|
10
|
-
import { $ as ee } from "./useFocusable-
|
|
11
|
-
import { d as te, e as ie } from "./SelectionManager-
|
|
12
|
-
import { $ as V } from "./useLabels-
|
|
13
|
-
import { $ as ae } from "./useHasTabbableChild-
|
|
14
|
-
import { $ as le } from "./context-
|
|
15
|
-
import { $ as C } from "./useFocusRing-
|
|
16
|
-
import { $ as se } from "./useHover-
|
|
17
|
-
import { $ as ne } from "./useSingleSelectListState-
|
|
9
|
+
import { c as Z } from "./usePress-CNjmDzap.js";
|
|
10
|
+
import { $ as ee } from "./useFocusable-C8uh8K4g.js";
|
|
11
|
+
import { d as te, e as ie } from "./SelectionManager-B4ORduja.js";
|
|
12
|
+
import { $ as V } from "./useLabels-BDwkBYbE.js";
|
|
13
|
+
import { $ as ae } from "./useHasTabbableChild-C-1mZUQe.js";
|
|
14
|
+
import { $ as le } from "./context-C81gPYvC.js";
|
|
15
|
+
import { $ as C } from "./useFocusRing-XnR3cZjO.js";
|
|
16
|
+
import { $ as se } from "./useHover-DjIHtjGN.js";
|
|
17
|
+
import { $ as ne } from "./useSingleSelectListState-0AGHxvy3.js";
|
|
18
18
|
import { c as oe } from "./clsx-OuTLNxxd.js";
|
|
19
19
|
import { u as de } from "./useObserveElement-BdI4zgd7.js";
|
|
20
20
|
import { w as re } from "./tokens-xp-7KMK7.js";
|
|
@@ -151,7 +151,7 @@ function $e(i) {
|
|
|
151
151
|
suppressTextValueWarning: !0,
|
|
152
152
|
defaultSelectedKey: (t = (e = i.defaultSelectedKey) !== null && e !== void 0 ? e : L(i.collection, i.disabledKeys ? new Set(i.disabledKeys) : /* @__PURE__ */ new Set())) !== null && t !== void 0 ? t : void 0
|
|
153
153
|
}), { selectionManager: l, collection: d, selectedKey: o } = a, r = _(o);
|
|
154
|
-
return
|
|
154
|
+
return j(() => {
|
|
155
155
|
let n = o;
|
|
156
156
|
i.selectedKey == null && (l.isEmpty || n == null || !d.getItem(n)) && (n = L(d, a.disabledKeys), n != null && l.setSelectedKeys([
|
|
157
157
|
n
|
|
@@ -170,7 +170,7 @@ function L(i, e) {
|
|
|
170
170
|
}
|
|
171
171
|
return t;
|
|
172
172
|
}
|
|
173
|
-
const D = /* @__PURE__ */
|
|
173
|
+
const D = /* @__PURE__ */ N(null), m = /* @__PURE__ */ N(null), me = /* @__PURE__ */ M(function(e, t) {
|
|
174
174
|
[e, t] = Q(e, t, D);
|
|
175
175
|
let { children: a, orientation: l = "horizontal" } = e;
|
|
176
176
|
return a = E(() => typeof a == "function" ? a({
|
|
@@ -179,15 +179,15 @@ const D = /* @__PURE__ */ k(null), h = /* @__PURE__ */ k(null), he = /* @__PURE_
|
|
|
179
179
|
}) : a, [
|
|
180
180
|
a,
|
|
181
181
|
l
|
|
182
|
-
]), /* @__PURE__ */ u.createElement(
|
|
182
|
+
]), /* @__PURE__ */ u.createElement(W, {
|
|
183
183
|
content: a
|
|
184
|
-
}, (d) => /* @__PURE__ */ u.createElement(
|
|
184
|
+
}, (d) => /* @__PURE__ */ u.createElement(he, {
|
|
185
185
|
props: e,
|
|
186
186
|
collection: d,
|
|
187
187
|
tabsRef: t
|
|
188
188
|
}));
|
|
189
189
|
});
|
|
190
|
-
function
|
|
190
|
+
function he({ props: i, tabsRef: e, collection: t }) {
|
|
191
191
|
let { orientation: a = "horizontal" } = i, l = $e({
|
|
192
192
|
...i,
|
|
193
193
|
collection: t,
|
|
@@ -217,27 +217,27 @@ function me({ props: i, tabsRef: e, collection: t }) {
|
|
|
217
217
|
"data-orientation": a,
|
|
218
218
|
"data-focus-visible": r || void 0,
|
|
219
219
|
"data-disabled": l.isDisabled || void 0
|
|
220
|
-
}, /* @__PURE__ */ u.createElement(
|
|
220
|
+
}, /* @__PURE__ */ u.createElement(k, {
|
|
221
221
|
values: [
|
|
222
222
|
[
|
|
223
223
|
D,
|
|
224
224
|
i
|
|
225
225
|
],
|
|
226
226
|
[
|
|
227
|
-
|
|
227
|
+
m,
|
|
228
228
|
l
|
|
229
229
|
]
|
|
230
230
|
]
|
|
231
231
|
}, s.children));
|
|
232
232
|
}
|
|
233
233
|
const pe = /* @__PURE__ */ M(function(e, t) {
|
|
234
|
-
return m
|
|
234
|
+
return h(m) ? /* @__PURE__ */ u.createElement(ve, {
|
|
235
235
|
props: e,
|
|
236
236
|
forwardedRef: t
|
|
237
237
|
}) : /* @__PURE__ */ u.createElement(U, e);
|
|
238
238
|
});
|
|
239
239
|
function ve({ props: i, forwardedRef: e }) {
|
|
240
|
-
let t = m
|
|
240
|
+
let t = h(m), { CollectionRoot: a } = h(R), { orientation: l = "horizontal", keyboardActivation: d = "automatic" } = X(D), o = w(e), { tabListProps: r } = be({
|
|
241
241
|
...i,
|
|
242
242
|
orientation: l,
|
|
243
243
|
keyboardActivation: d
|
|
@@ -261,8 +261,8 @@ function ve({ props: i, forwardedRef: e }) {
|
|
|
261
261
|
persistedKeys: G(t.selectionManager.focusedKey)
|
|
262
262
|
}));
|
|
263
263
|
}
|
|
264
|
-
const ye = /* @__PURE__ */
|
|
265
|
-
let a = m
|
|
264
|
+
const ye = /* @__PURE__ */ B("item", (i, e, t) => {
|
|
265
|
+
let a = h(m), l = w(e), { tabProps: d, isSelected: o, isDisabled: r, isPressed: n } = ce({
|
|
266
266
|
key: t.key,
|
|
267
267
|
...i
|
|
268
268
|
}, a, l), { focusProps: s, isFocused: c, isFocusVisible: f } = C(), { hoverProps: b, isHovered: v } = se({
|
|
@@ -295,7 +295,7 @@ const ye = /* @__PURE__ */ W("item", (i, e, t) => {
|
|
|
295
295
|
"data-hovered": v || void 0
|
|
296
296
|
}, y.children);
|
|
297
297
|
}), xe = /* @__PURE__ */ Y(function(e, t) {
|
|
298
|
-
const a = m
|
|
298
|
+
const a = h(m);
|
|
299
299
|
let l = w(t), { tabPanelProps: d } = fe(e, a, l), { focusProps: o, isFocused: r, isFocusVisible: n } = C(), s = a.selectedKey === e.id, c = g({
|
|
300
300
|
...e,
|
|
301
301
|
defaultClassName: "react-aria-TabPanel",
|
|
@@ -319,18 +319,18 @@ const ye = /* @__PURE__ */ W("item", (i, e, t) => {
|
|
|
319
319
|
// @ts-ignore
|
|
320
320
|
inert: T(!s),
|
|
321
321
|
"data-inert": s ? void 0 : "true"
|
|
322
|
-
}, /* @__PURE__ */ u.createElement(
|
|
322
|
+
}, /* @__PURE__ */ u.createElement(k, {
|
|
323
323
|
values: [
|
|
324
324
|
[
|
|
325
325
|
D,
|
|
326
326
|
null
|
|
327
327
|
],
|
|
328
328
|
[
|
|
329
|
-
|
|
329
|
+
m,
|
|
330
330
|
null
|
|
331
331
|
]
|
|
332
332
|
]
|
|
333
|
-
}, /* @__PURE__ */ u.createElement(
|
|
333
|
+
}, /* @__PURE__ */ u.createElement(R.Provider, {
|
|
334
334
|
value: q
|
|
335
335
|
}, c.children)));
|
|
336
336
|
}), Pe = "_container_7185a_4", ge = "_list_7185a_8", Ke = "_listItem_7185a_14", De = "_panel_7185a_43", x = {
|
|
@@ -338,7 +338,7 @@ const ye = /* @__PURE__ */ W("item", (i, e, t) => {
|
|
|
338
338
|
list: ge,
|
|
339
339
|
listItem: Ke,
|
|
340
340
|
panel: De
|
|
341
|
-
},
|
|
341
|
+
}, Be = ({
|
|
342
342
|
tabs: i,
|
|
343
343
|
label: e,
|
|
344
344
|
children: t,
|
|
@@ -348,34 +348,34 @@ const ye = /* @__PURE__ */ W("item", (i, e, t) => {
|
|
|
348
348
|
const { width: d } = de(
|
|
349
349
|
typeof document > "u" ? null : document.body,
|
|
350
350
|
{ includePadding: !0 }
|
|
351
|
-
), o = d >= re.md ? "horizontal" : "vertical", r =
|
|
351
|
+
), o = d >= re.md ? "horizontal" : "vertical", r = S.Children.toArray(t);
|
|
352
352
|
if (r.length !== i.length)
|
|
353
353
|
return console.error(
|
|
354
354
|
`The number of children must match the number of tabs. Children: ${r.length} Tabs: ${i.length}`
|
|
355
355
|
), null;
|
|
356
356
|
const n = r.reduce(
|
|
357
357
|
(s, c, f) => {
|
|
358
|
-
if (
|
|
358
|
+
if (S.isValidElement(c)) {
|
|
359
359
|
const b = i[f];
|
|
360
|
-
b && (s[b] =
|
|
360
|
+
b && (s[b] = S.cloneElement(c, { id: b }));
|
|
361
361
|
}
|
|
362
362
|
return s;
|
|
363
363
|
},
|
|
364
364
|
{}
|
|
365
365
|
);
|
|
366
366
|
return /* @__PURE__ */ z(
|
|
367
|
-
|
|
367
|
+
me,
|
|
368
368
|
{
|
|
369
369
|
orientation: o,
|
|
370
370
|
className: oe(x.container, a),
|
|
371
371
|
...l,
|
|
372
372
|
children: [
|
|
373
|
-
/* @__PURE__ */
|
|
373
|
+
/* @__PURE__ */ F(
|
|
374
374
|
pe,
|
|
375
375
|
{
|
|
376
376
|
"aria-label": e,
|
|
377
377
|
className: x.list,
|
|
378
|
-
children: i.map((s) => /* @__PURE__ */
|
|
378
|
+
children: i.map((s) => /* @__PURE__ */ F(
|
|
379
379
|
ye,
|
|
380
380
|
{
|
|
381
381
|
id: s,
|
|
@@ -386,7 +386,7 @@ const ye = /* @__PURE__ */ W("item", (i, e, t) => {
|
|
|
386
386
|
))
|
|
387
387
|
}
|
|
388
388
|
),
|
|
389
|
-
i.map((s) => /* @__PURE__ */
|
|
389
|
+
i.map((s) => /* @__PURE__ */ F(
|
|
390
390
|
xe,
|
|
391
391
|
{
|
|
392
392
|
id: s,
|
|
@@ -400,5 +400,5 @@ const ye = /* @__PURE__ */ W("item", (i, e, t) => {
|
|
|
400
400
|
);
|
|
401
401
|
};
|
|
402
402
|
export {
|
|
403
|
-
|
|
403
|
+
Be as T
|
|
404
404
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('./assets/Tabs.css');const g=require("react/jsx-runtime"),s=require("react"),p=require("./Collection-Csx3L9gh.cjs"),f=require("./utils-BNtZbAib.cjs"),O=require("./Hidden-BxRZGdEW.cjs"),K=require("./filterDOMProps-BS2lrgFA.cjs"),E=require("./inertValue-BWmZ1afe.cjs"),R=require("./usePress-BFa6cT9o.cjs"),k=require("./useFocusable-CuPQ7Cm5.cjs"),w=require("./SelectionManager-C5NGBzvz.cjs"),M=require("./useLabels-BLOfc6Y-.cjs"),N=require("./useHasTabbableChild-DgphNvnk.cjs"),H=require("./context-DjwhtgxQ.cjs"),F=require("./useFocusRing-CbImDrwF.cjs"),V=require("./useHover-_mv5J4_q.cjs"),j=require("./useSingleSelectListState-MGNxUTum.cjs"),A=require("./clsx-C11secjj.cjs"),z=require("./useObserveElement-BzEr5D32.cjs"),_=require("./tokens-p6pg1Cea.cjs");function B(i){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(i){for(const t in i)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(i,t);Object.defineProperty(e,t,a.get?a:{enumerable:!0,get:()=>i[t]})}}return e.default=i,Object.freeze(e)}const S=B(s),I=new WeakMap;function m(i,e,t){return i?(typeof e=="string"&&(e=e.replace(/\s+/g,"")),`${I.get(i)}-${t}-${e}`):""}function W(i,e,t){let{key:a,isDisabled:n,shouldSelectOnPressUp:o}=i,{selectionManager:r,selectedKey:c}=e,l=a===c,d=n||e.isDisabled||e.selectionManager.isDisabled(a),{itemProps:u,isPressed:b}=w.$880e95eb8b93ba9a$export$ecf600387e221c37({selectionManager:r,key:a,ref:t,isDisabled:d,shouldSelectOnPressUp:o,linkBehavior:"selection"}),$=m(e,a,"tab"),v=m(e,a,"tabpanel"),{tabIndex:y}=u,h=e.collection.getItem(a),C=K.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(h==null?void 0:h.props,{labelable:!0});delete C.id;let T=R.$ea8dcbcb9ea1b556$export$7e924b3091a3bd18(h==null?void 0:h.props),{focusableProps:L}=k.$f645667febf57a63$export$4c014de7c8940b4c({isDisabled:d},t);return{tabProps:f.$3ef42575df84b30b$export$9d1611c77c2fe928(C,L,T,u,{id:$,"aria-selected":l,"aria-disabled":d||void 0,"aria-controls":l?v:void 0,tabIndex:d?void 0:y,role:"tab"}),isSelected:l,isDisabled:d,isPressed:b}}function U(i,e,t){let a=N.$83013635b024ae3d$export$eac1895992b9f3d6(t)?void 0:0;var n;const o=m(e,(n=i.id)!==null&&n!==void 0?n:e==null?void 0:e.selectedKey,"tabpanel"),r=M.$313b98861ee5dd6c$export$d6875122194c7b44({...i,id:o,"aria-labelledby":m(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:f.$3ef42575df84b30b$export$9d1611c77c2fe928(r,{tabIndex:a,role:"tabpanel","aria-describedby":i["aria-describedby"],"aria-details":i["aria-details"]})}}class G{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,a;return this.disabledKeys.has(e)||!!(!((a=this.collection.getItem(e))===null||a===void 0||(t=a.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,a,n=new Set){this.collection=e,this.flipDirection=t==="rtl"&&a==="horizontal",this.disabledKeys=n,this.tabDirection=a==="horizontal"}}function J(i,e,t){let{orientation:a="horizontal",keyboardActivation:n="automatic"}=i,{collection:o,selectionManager:r,disabledKeys:c}=e,{direction:l}=H.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),d=s.useMemo(()=>new G(o,l,a,c),[o,c,a,l]),{collectionProps:u}=w.$ae20dd8cbca75726$export$d6daf82dcd84e87c({ref:t,selectionManager:r,keyboardDelegate:d,selectOnFocus:n==="automatic",disallowEmptySelection:!0,scrollRef:t,linkBehavior:"selection"}),b=f.$bdb11010cef70236$export$f680877a34711e37();I.set(e,b);let $=M.$313b98861ee5dd6c$export$d6875122194c7b44({...i,id:b});return{tabListProps:{...f.$3ef42575df84b30b$export$9d1611c77c2fe928(u,$),role:"tablist","aria-orientation":a,tabIndex:void 0}}}function Q(i){var e,t;let a=j.$a0d645289fe9b86b$export$e7f05e985daf4b5f({...i,onSelectionChange:i.onSelectionChange?l=>{var d;l!=null&&((d=i.onSelectionChange)===null||d===void 0||d.call(i,l))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:(t=(e=i.defaultSelectedKey)!==null&&e!==void 0?e:q(i.collection,i.disabledKeys?new Set(i.disabledKeys):new Set))!==null&&t!==void 0?t:void 0}),{selectionManager:n,collection:o,selectedKey:r}=a,c=s.useRef(r);return s.useEffect(()=>{let l=r;i.selectedKey==null&&(n.isEmpty||l==null||!o.getItem(l))&&(l=q(o,a.disabledKeys),l!=null&&n.setSelectedKeys([l])),(l!=null&&n.focusedKey==null||!n.isFocused&&l!==c.current)&&n.setFocusedKey(l),c.current=l}),{...a,isDisabled:i.isDisabled||!1}}function q(i,e){let t=null;if(i){var a,n,o,r;for(t=i.getFirstKey();t!=null&&(e.has(t)||!((n=i.getItem(t))===null||n===void 0||(a=n.props)===null||a===void 0)&&a.isDisabled)&&t!==i.getLastKey();)t=i.getKeyAfter(t);t!=null&&(e.has(t)||!((r=i.getItem(t))===null||r===void 0||(o=r.props)===null||o===void 0)&&o.isDisabled)&&t===i.getLastKey()&&(t=i.getFirstKey())}return t}const D=s.createContext(null),x=s.createContext(null),X=s.forwardRef(function(e,t){[e,t]=f.$64fa3d84918910a7$export$29f1550f4b0d4415(e,t,D);let{children:a,orientation:n="horizontal"}=e;return a=s.useMemo(()=>typeof a=="function"?a({orientation:n,defaultChildren:null}):a,[a,n]),s.createElement(p.$e1995378a142960e$export$bf788dd355e3a401,{content:a},o=>s.createElement(Y,{props:e,collection:o,tabsRef:t}))});function Y({props:i,tabsRef:e,collection:t}){let{orientation:a="horizontal"}=i,n=Q({...i,collection:t,children:void 0}),{focusProps:o,isFocused:r,isFocusVisible:c}=F.$f7dceffc5ad7768b$export$4e328f61c538687f({within:!0}),l=s.useMemo(()=>({orientation:a,isFocusWithin:r,isFocusVisible:c}),[a,r,c]),d=f.$64fa3d84918910a7$export$4d86445c2cf5e3({...i,defaultClassName:"react-aria-Tabs",values:l});return s.createElement("div",{...K.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(i),...o,...d,ref:e,slot:i.slot||void 0,"data-focused":r||void 0,"data-orientation":a,"data-focus-visible":c||void 0,"data-disabled":n.isDisabled||void 0},s.createElement(f.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[D,i],[x,n]]},d.children))}const Z=s.forwardRef(function(e,t){return s.useContext(x)?s.createElement(ee,{props:e,forwardedRef:t}):s.createElement(p.$e1995378a142960e$export$fb8073518f34e6ec,e)});function ee({props:i,forwardedRef:e}){let t=s.useContext(x),{CollectionRoot:a}=s.useContext(p.$7135fc7d473fd974$export$4feb769f8ddf26c5),{orientation:n="horizontal",keyboardActivation:o="automatic"}=f.$64fa3d84918910a7$export$fabf2dc03a41866e(D),r=f.$df56164dff5785e2$export$4338b53315abf666(e),{tabListProps:c}=J({...i,orientation:n,keyboardActivation:o},t,r),l=f.$64fa3d84918910a7$export$4d86445c2cf5e3({...i,children:null,defaultClassName:"react-aria-TabList",values:{orientation:n,state:t}}),d=K.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(i);return delete d.id,s.createElement("div",{...d,...c,ref:r,...l,"data-orientation":n||void 0},s.createElement(a,{collection:t.collection,persistedKeys:p.$7135fc7d473fd974$export$90e00781bc59d8f9(t.selectionManager.focusedKey)}))}const te=p.$e1995378a142960e$export$18af5c7a9e9b3664("item",(i,e,t)=>{let a=s.useContext(x),n=f.$df56164dff5785e2$export$4338b53315abf666(e),{tabProps:o,isSelected:r,isDisabled:c,isPressed:l}=W({key:t.key,...i},a,n),{focusProps:d,isFocused:u,isFocusVisible:b}=F.$f7dceffc5ad7768b$export$4e328f61c538687f(),{hoverProps:$,isHovered:v}=V.$6179b936705e76d3$export$ae780daf29e6d456({isDisabled:c,onHoverStart:i.onHoverStart,onHoverEnd:i.onHoverEnd,onHoverChange:i.onHoverChange}),y=f.$64fa3d84918910a7$export$4d86445c2cf5e3({...i,id:void 0,children:t.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:r,isDisabled:c,isFocused:u,isFocusVisible:b,isPressed:l,isHovered:v}}),h=t.props.href?"a":"div";return s.createElement(h,{...f.$3ef42575df84b30b$export$9d1611c77c2fe928(o,d,$,y),ref:n,"data-selected":r||void 0,"data-disabled":c||void 0,"data-focused":u||void 0,"data-focus-visible":b||void 0,"data-pressed":l||void 0,"data-hovered":v||void 0},y.children)}),ie=O.$f39a9eba43920ace$export$86427a43e3e48ebb(function(e,t){const a=s.useContext(x);let n=f.$df56164dff5785e2$export$4338b53315abf666(t),{tabPanelProps:o}=U(e,a,n),{focusProps:r,isFocused:c,isFocusVisible:l}=F.$f7dceffc5ad7768b$export$4e328f61c538687f(),d=a.selectedKey===e.id,u=f.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:c,isFocusVisible:l,isInert:E.$cdc5a6778b766db2$export$a9d04c5684123369(!d),state:a}});if(!d&&!e.shouldForceMount)return null;let b=K.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e);delete b.id;let $=d?f.$3ef42575df84b30b$export$9d1611c77c2fe928(b,o,r,u):u;return s.createElement("div",{...$,ref:n,"data-focused":c||void 0,"data-focus-visible":l||void 0,inert:E.$cdc5a6778b766db2$export$a9d04c5684123369(!d),"data-inert":d?void 0:"true"},s.createElement(f.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[D,null],[x,null]]},s.createElement(p.$7135fc7d473fd974$export$4feb769f8ddf26c5.Provider,{value:p.$7135fc7d473fd974$export$a164736487e3f0ae},u.children)))}),ae="_container_7185a_4",ne="_list_7185a_8",de="_listItem_7185a_14",le="_panel_7185a_43",P={container:ae,list:ne,listItem:de,panel:le},se=({tabs:i,label:e,children:t,className:a,...n})=>{const{width:o}=z.useObserveElement(typeof document>"u"?null:document.body,{includePadding:!0}),r=o>=_.windowSizes.md?"horizontal":"vertical",c=S.Children.toArray(t);if(c.length!==i.length)return console.error(`The number of children must match the number of tabs. Children: ${c.length} Tabs: ${i.length}`),null;const l=c.reduce((d,u,b)=>{if(S.isValidElement(u)){const $=i[b];$&&(d[$]=S.cloneElement(u,{id:$}))}return d},{});return g.jsxs(X,{orientation:r,className:A.clsx(P.container,a),...n,children:[g.jsx(Z,{"aria-label":e,className:P.list,children:i.map(d=>g.jsx(te,{id:d,className:P.listItem,children:d},d))}),i.map(d=>g.jsx(ie,{id:d,className:P.panel,children:l[d]},d))]})};exports.Tabs=se;
|
|
1
|
+
"use strict";require('./assets/Tabs.css');const g=require("react/jsx-runtime"),s=require("react"),p=require("./Collection-BIDsXNhi.cjs"),f=require("./utils-BNtZbAib.cjs"),O=require("./Hidden-BxRZGdEW.cjs"),K=require("./filterDOMProps-BS2lrgFA.cjs"),E=require("./inertValue-B3AFhVG4.cjs"),R=require("./usePress-0AjDbW9R.cjs"),k=require("./useFocusable-NUVSFcRC.cjs"),w=require("./SelectionManager-CwYux2h3.cjs"),M=require("./useLabels-BLOfc6Y-.cjs"),N=require("./useHasTabbableChild-DCBTulUQ.cjs"),H=require("./context-DjwhtgxQ.cjs"),F=require("./useFocusRing-CbImDrwF.cjs"),V=require("./useHover-_mv5J4_q.cjs"),j=require("./useSingleSelectListState-Cl3KV5E1.cjs"),A=require("./clsx-C11secjj.cjs"),z=require("./useObserveElement-MhzEsCkX.cjs"),_=require("./tokens-p6pg1Cea.cjs");function B(i){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(i){for(const t in i)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(i,t);Object.defineProperty(e,t,a.get?a:{enumerable:!0,get:()=>i[t]})}}return e.default=i,Object.freeze(e)}const S=B(s),I=new WeakMap;function m(i,e,t){return i?(typeof e=="string"&&(e=e.replace(/\s+/g,"")),`${I.get(i)}-${t}-${e}`):""}function W(i,e,t){let{key:a,isDisabled:n,shouldSelectOnPressUp:o}=i,{selectionManager:r,selectedKey:c}=e,l=a===c,d=n||e.isDisabled||e.selectionManager.isDisabled(a),{itemProps:u,isPressed:b}=w.$880e95eb8b93ba9a$export$ecf600387e221c37({selectionManager:r,key:a,ref:t,isDisabled:d,shouldSelectOnPressUp:o,linkBehavior:"selection"}),$=m(e,a,"tab"),v=m(e,a,"tabpanel"),{tabIndex:y}=u,h=e.collection.getItem(a),C=K.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(h==null?void 0:h.props,{labelable:!0});delete C.id;let T=R.$ea8dcbcb9ea1b556$export$7e924b3091a3bd18(h==null?void 0:h.props),{focusableProps:L}=k.$f645667febf57a63$export$4c014de7c8940b4c({isDisabled:d},t);return{tabProps:f.$3ef42575df84b30b$export$9d1611c77c2fe928(C,L,T,u,{id:$,"aria-selected":l,"aria-disabled":d||void 0,"aria-controls":l?v:void 0,tabIndex:d?void 0:y,role:"tab"}),isSelected:l,isDisabled:d,isPressed:b}}function U(i,e,t){let a=N.$83013635b024ae3d$export$eac1895992b9f3d6(t)?void 0:0;var n;const o=m(e,(n=i.id)!==null&&n!==void 0?n:e==null?void 0:e.selectedKey,"tabpanel"),r=M.$313b98861ee5dd6c$export$d6875122194c7b44({...i,id:o,"aria-labelledby":m(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:f.$3ef42575df84b30b$export$9d1611c77c2fe928(r,{tabIndex:a,role:"tabpanel","aria-describedby":i["aria-describedby"],"aria-details":i["aria-details"]})}}class G{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,a;return this.disabledKeys.has(e)||!!(!((a=this.collection.getItem(e))===null||a===void 0||(t=a.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,a,n=new Set){this.collection=e,this.flipDirection=t==="rtl"&&a==="horizontal",this.disabledKeys=n,this.tabDirection=a==="horizontal"}}function J(i,e,t){let{orientation:a="horizontal",keyboardActivation:n="automatic"}=i,{collection:o,selectionManager:r,disabledKeys:c}=e,{direction:l}=H.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),d=s.useMemo(()=>new G(o,l,a,c),[o,c,a,l]),{collectionProps:u}=w.$ae20dd8cbca75726$export$d6daf82dcd84e87c({ref:t,selectionManager:r,keyboardDelegate:d,selectOnFocus:n==="automatic",disallowEmptySelection:!0,scrollRef:t,linkBehavior:"selection"}),b=f.$bdb11010cef70236$export$f680877a34711e37();I.set(e,b);let $=M.$313b98861ee5dd6c$export$d6875122194c7b44({...i,id:b});return{tabListProps:{...f.$3ef42575df84b30b$export$9d1611c77c2fe928(u,$),role:"tablist","aria-orientation":a,tabIndex:void 0}}}function Q(i){var e,t;let a=j.$a0d645289fe9b86b$export$e7f05e985daf4b5f({...i,onSelectionChange:i.onSelectionChange?l=>{var d;l!=null&&((d=i.onSelectionChange)===null||d===void 0||d.call(i,l))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:(t=(e=i.defaultSelectedKey)!==null&&e!==void 0?e:q(i.collection,i.disabledKeys?new Set(i.disabledKeys):new Set))!==null&&t!==void 0?t:void 0}),{selectionManager:n,collection:o,selectedKey:r}=a,c=s.useRef(r);return s.useEffect(()=>{let l=r;i.selectedKey==null&&(n.isEmpty||l==null||!o.getItem(l))&&(l=q(o,a.disabledKeys),l!=null&&n.setSelectedKeys([l])),(l!=null&&n.focusedKey==null||!n.isFocused&&l!==c.current)&&n.setFocusedKey(l),c.current=l}),{...a,isDisabled:i.isDisabled||!1}}function q(i,e){let t=null;if(i){var a,n,o,r;for(t=i.getFirstKey();t!=null&&(e.has(t)||!((n=i.getItem(t))===null||n===void 0||(a=n.props)===null||a===void 0)&&a.isDisabled)&&t!==i.getLastKey();)t=i.getKeyAfter(t);t!=null&&(e.has(t)||!((r=i.getItem(t))===null||r===void 0||(o=r.props)===null||o===void 0)&&o.isDisabled)&&t===i.getLastKey()&&(t=i.getFirstKey())}return t}const D=s.createContext(null),x=s.createContext(null),X=s.forwardRef(function(e,t){[e,t]=f.$64fa3d84918910a7$export$29f1550f4b0d4415(e,t,D);let{children:a,orientation:n="horizontal"}=e;return a=s.useMemo(()=>typeof a=="function"?a({orientation:n,defaultChildren:null}):a,[a,n]),s.createElement(p.$e1995378a142960e$export$bf788dd355e3a401,{content:a},o=>s.createElement(Y,{props:e,collection:o,tabsRef:t}))});function Y({props:i,tabsRef:e,collection:t}){let{orientation:a="horizontal"}=i,n=Q({...i,collection:t,children:void 0}),{focusProps:o,isFocused:r,isFocusVisible:c}=F.$f7dceffc5ad7768b$export$4e328f61c538687f({within:!0}),l=s.useMemo(()=>({orientation:a,isFocusWithin:r,isFocusVisible:c}),[a,r,c]),d=f.$64fa3d84918910a7$export$4d86445c2cf5e3({...i,defaultClassName:"react-aria-Tabs",values:l});return s.createElement("div",{...K.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(i),...o,...d,ref:e,slot:i.slot||void 0,"data-focused":r||void 0,"data-orientation":a,"data-focus-visible":c||void 0,"data-disabled":n.isDisabled||void 0},s.createElement(f.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[D,i],[x,n]]},d.children))}const Z=s.forwardRef(function(e,t){return s.useContext(x)?s.createElement(ee,{props:e,forwardedRef:t}):s.createElement(p.$e1995378a142960e$export$fb8073518f34e6ec,e)});function ee({props:i,forwardedRef:e}){let t=s.useContext(x),{CollectionRoot:a}=s.useContext(p.$7135fc7d473fd974$export$4feb769f8ddf26c5),{orientation:n="horizontal",keyboardActivation:o="automatic"}=f.$64fa3d84918910a7$export$fabf2dc03a41866e(D),r=f.$df56164dff5785e2$export$4338b53315abf666(e),{tabListProps:c}=J({...i,orientation:n,keyboardActivation:o},t,r),l=f.$64fa3d84918910a7$export$4d86445c2cf5e3({...i,children:null,defaultClassName:"react-aria-TabList",values:{orientation:n,state:t}}),d=K.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(i);return delete d.id,s.createElement("div",{...d,...c,ref:r,...l,"data-orientation":n||void 0},s.createElement(a,{collection:t.collection,persistedKeys:p.$7135fc7d473fd974$export$90e00781bc59d8f9(t.selectionManager.focusedKey)}))}const te=p.$e1995378a142960e$export$18af5c7a9e9b3664("item",(i,e,t)=>{let a=s.useContext(x),n=f.$df56164dff5785e2$export$4338b53315abf666(e),{tabProps:o,isSelected:r,isDisabled:c,isPressed:l}=W({key:t.key,...i},a,n),{focusProps:d,isFocused:u,isFocusVisible:b}=F.$f7dceffc5ad7768b$export$4e328f61c538687f(),{hoverProps:$,isHovered:v}=V.$6179b936705e76d3$export$ae780daf29e6d456({isDisabled:c,onHoverStart:i.onHoverStart,onHoverEnd:i.onHoverEnd,onHoverChange:i.onHoverChange}),y=f.$64fa3d84918910a7$export$4d86445c2cf5e3({...i,id:void 0,children:t.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:r,isDisabled:c,isFocused:u,isFocusVisible:b,isPressed:l,isHovered:v}}),h=t.props.href?"a":"div";return s.createElement(h,{...f.$3ef42575df84b30b$export$9d1611c77c2fe928(o,d,$,y),ref:n,"data-selected":r||void 0,"data-disabled":c||void 0,"data-focused":u||void 0,"data-focus-visible":b||void 0,"data-pressed":l||void 0,"data-hovered":v||void 0},y.children)}),ie=O.$f39a9eba43920ace$export$86427a43e3e48ebb(function(e,t){const a=s.useContext(x);let n=f.$df56164dff5785e2$export$4338b53315abf666(t),{tabPanelProps:o}=U(e,a,n),{focusProps:r,isFocused:c,isFocusVisible:l}=F.$f7dceffc5ad7768b$export$4e328f61c538687f(),d=a.selectedKey===e.id,u=f.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:c,isFocusVisible:l,isInert:E.$cdc5a6778b766db2$export$a9d04c5684123369(!d),state:a}});if(!d&&!e.shouldForceMount)return null;let b=K.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e);delete b.id;let $=d?f.$3ef42575df84b30b$export$9d1611c77c2fe928(b,o,r,u):u;return s.createElement("div",{...$,ref:n,"data-focused":c||void 0,"data-focus-visible":l||void 0,inert:E.$cdc5a6778b766db2$export$a9d04c5684123369(!d),"data-inert":d?void 0:"true"},s.createElement(f.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[D,null],[x,null]]},s.createElement(p.$7135fc7d473fd974$export$4feb769f8ddf26c5.Provider,{value:p.$7135fc7d473fd974$export$a164736487e3f0ae},u.children)))}),ae="_container_7185a_4",ne="_list_7185a_8",de="_listItem_7185a_14",le="_panel_7185a_43",P={container:ae,list:ne,listItem:de,panel:le},se=({tabs:i,label:e,children:t,className:a,...n})=>{const{width:o}=z.useObserveElement(typeof document>"u"?null:document.body,{includePadding:!0}),r=o>=_.windowSizes.md?"horizontal":"vertical",c=S.Children.toArray(t);if(c.length!==i.length)return console.error(`The number of children must match the number of tabs. Children: ${c.length} Tabs: ${i.length}`),null;const l=c.reduce((d,u,b)=>{if(S.isValidElement(u)){const $=i[b];$&&(d[$]=S.cloneElement(u,{id:$}))}return d},{});return g.jsxs(X,{orientation:r,className:A.clsx(P.container,a),...n,children:[g.jsx(Z,{"aria-label":e,className:P.list,children:i.map(d=>g.jsx(te,{id:d,className:P.listItem,children:d},d))}),i.map(d=>g.jsx(ie,{id:d,className:P.panel,children:l[d]},d))]})};exports.Tabs=se;
|