@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,22 +1,22 @@
|
|
|
1
|
-
import { jsxs as N, jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { jsxs as N, jsx as b } from "react/jsx-runtime";
|
|
2
|
+
import { f as g, $ as ye, n as Te, a as ze, l as uu, d as Se, b as Pe, j as Ke, c as H } from "./utils-DIMfEPAt.js";
|
|
3
|
+
import { $ as Ie } from "./Text-BoXuUVVH.js";
|
|
4
4
|
import { $ as eu } from "./filterDOMProps-D6KHYVBX.js";
|
|
5
|
-
import { $ as je } from "./useLabels-
|
|
6
|
-
import { D as Ve,
|
|
5
|
+
import { $ as je } from "./useLabels-BDwkBYbE.js";
|
|
6
|
+
import { D as Ve, t as we, x as Le, l as Re, $ as Oe, q as Ne } from "./useHover-DjIHtjGN.js";
|
|
7
7
|
import * as Ze from "react";
|
|
8
8
|
import A, { useState as tu, useEffect as ru, useRef as U, forwardRef as au, createContext as Ue } from "react";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { $ as He } from "./useButton-
|
|
12
|
-
import { $ as Me } from "./useFocusRing-
|
|
13
|
-
import { $ as Ge } from "./VisuallyHidden-
|
|
14
|
-
import { a as _e } from "./Input-
|
|
15
|
-
import {
|
|
16
|
-
import { B as ou } from "./Button-
|
|
17
|
-
import {
|
|
18
|
-
import { T as M } from "./Text-
|
|
19
|
-
import { X as
|
|
9
|
+
import { a as qe } from "./scrollIntoView-Hwb_aaNf.js";
|
|
10
|
+
import { b as nu } from "./useLocalizedStringFormatter-BKoxGZf1.js";
|
|
11
|
+
import { $ as He } from "./useButton-B8dB9sot.js";
|
|
12
|
+
import { $ as Me } from "./useFocusRing-XnR3cZjO.js";
|
|
13
|
+
import { $ as Ge } from "./VisuallyHidden-ZCYf65q4.js";
|
|
14
|
+
import { a as _e } from "./Input-BTzwcf72.js";
|
|
15
|
+
import { q as Xe } from "./Dialog-D14MbJ7o.js";
|
|
16
|
+
import { B as ou } from "./Button-Csih3v23.js";
|
|
17
|
+
import { a as Ye, L as We } from "./Label-BwJrdqEE.js";
|
|
18
|
+
import { T as M } from "./Text-jWWg0B20.js";
|
|
19
|
+
import { X as Je } from "./x-JK7i-TQC.js";
|
|
20
20
|
import './assets/FileUpload.css';var C = /* @__PURE__ */ function(u) {
|
|
21
21
|
return u[u.none = 0] = "none", u[u.cancel = 0] = "cancel", u[u.move = 1] = "move", u[u.copy = 2] = "copy", u[u.link = 4] = "link", u[u.all = 7] = "all", u;
|
|
22
22
|
}({});
|
|
@@ -27,8 +27,8 @@ const iu = {
|
|
|
27
27
|
linkMove: 5,
|
|
28
28
|
all: 7,
|
|
29
29
|
uninitialized: 7
|
|
30
|
-
},
|
|
31
|
-
|
|
30
|
+
}, Qe = q(iu);
|
|
31
|
+
Qe[7] = "all";
|
|
32
32
|
q(C);
|
|
33
33
|
const lu = {
|
|
34
34
|
none: "cancel",
|
|
@@ -41,35 +41,35 @@ function q(u) {
|
|
|
41
41
|
for (let a in u) e[u[a]] = a;
|
|
42
42
|
return e;
|
|
43
43
|
}
|
|
44
|
-
const
|
|
44
|
+
const u4 = /* @__PURE__ */ new Set([
|
|
45
45
|
"text/plain",
|
|
46
46
|
"text/uri-list",
|
|
47
47
|
"text/html"
|
|
48
|
-
]), j = "application/vnd.react-aria.items+json", V = "application/octet-stream",
|
|
49
|
-
function
|
|
48
|
+
]), j = "application/vnd.react-aria.items+json", V = "application/octet-stream", e4 = Symbol();
|
|
49
|
+
function t4(u) {
|
|
50
50
|
return u || (u = "virtual"), u === "pointer" && (u = "virtual"), u === "virtual" && typeof window < "u" && "ontouchstart" in window && (u = "touch"), u;
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
return
|
|
52
|
+
function r4() {
|
|
53
|
+
return t4(Ve());
|
|
54
54
|
}
|
|
55
55
|
function G(u, e) {
|
|
56
56
|
let a = /* @__PURE__ */ new Map(), n = !1, o = [];
|
|
57
57
|
for (let t of e) {
|
|
58
58
|
let d = Object.keys(t);
|
|
59
59
|
d.length > 1 && (n = !0);
|
|
60
|
-
let
|
|
61
|
-
for (let
|
|
62
|
-
let
|
|
63
|
-
|
|
64
|
-
let i = t[
|
|
65
|
-
D
|
|
60
|
+
let c = {};
|
|
61
|
+
for (let D of d) {
|
|
62
|
+
let B = a.get(D);
|
|
63
|
+
B ? n = !0 : (B = [], a.set(D, B));
|
|
64
|
+
let i = t[D];
|
|
65
|
+
c[D] = i, B.push(i);
|
|
66
66
|
}
|
|
67
|
-
o.push(
|
|
67
|
+
o.push(c);
|
|
68
68
|
}
|
|
69
|
-
for (let [t, d] of a) if (
|
|
70
|
-
let
|
|
69
|
+
for (let [t, d] of a) if (u4.has(t)) {
|
|
70
|
+
let c = d.join(`
|
|
71
71
|
`);
|
|
72
|
-
u.items.add(
|
|
72
|
+
u.items.add(c, t);
|
|
73
73
|
} else
|
|
74
74
|
u.items.add(d[0], t);
|
|
75
75
|
if (n) {
|
|
@@ -79,7 +79,7 @@ function G(u, e) {
|
|
|
79
79
|
}
|
|
80
80
|
class K {
|
|
81
81
|
has(e) {
|
|
82
|
-
return this.includesUnknownTypes || e ===
|
|
82
|
+
return this.includesUnknownTypes || e === e4 && this.types.has(V) ? !0 : typeof e == "string" && this.types.has(e);
|
|
83
83
|
}
|
|
84
84
|
constructor(e) {
|
|
85
85
|
this.types = /* @__PURE__ */ new Set();
|
|
@@ -122,7 +122,7 @@ function du(u) {
|
|
|
122
122
|
}
|
|
123
123
|
return e;
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function a4(u) {
|
|
126
126
|
return typeof u.text == "function" ? u.text() : new Promise((e, a) => {
|
|
127
127
|
let n = new FileReader();
|
|
128
128
|
n.onload = () => {
|
|
@@ -136,7 +136,7 @@ function Z(u) {
|
|
|
136
136
|
kind: "file",
|
|
137
137
|
type: u.type || V,
|
|
138
138
|
name: u.name,
|
|
139
|
-
getText: () =>
|
|
139
|
+
getText: () => a4(u),
|
|
140
140
|
getFile: () => Promise.resolve(u)
|
|
141
141
|
};
|
|
142
142
|
}
|
|
@@ -144,10 +144,10 @@ function cu(u) {
|
|
|
144
144
|
return {
|
|
145
145
|
kind: "directory",
|
|
146
146
|
name: u.name,
|
|
147
|
-
getEntries: () =>
|
|
147
|
+
getEntries: () => n4(u)
|
|
148
148
|
};
|
|
149
149
|
}
|
|
150
|
-
async function*
|
|
150
|
+
async function* n4(u) {
|
|
151
151
|
let e = u.createReader(), a;
|
|
152
152
|
do {
|
|
153
153
|
a = await new Promise((n, o) => {
|
|
@@ -155,27 +155,27 @@ async function* a4(u) {
|
|
|
155
155
|
});
|
|
156
156
|
for (let n of a)
|
|
157
157
|
if (n.isFile) {
|
|
158
|
-
let o = await
|
|
158
|
+
let o = await o4(n);
|
|
159
159
|
yield Z(o);
|
|
160
160
|
} else n.isDirectory && (yield cu(n));
|
|
161
161
|
} while (a.length > 0);
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function o4(u) {
|
|
164
164
|
return new Promise((e, a) => u.file(e, a));
|
|
165
165
|
}
|
|
166
166
|
let pu = {
|
|
167
167
|
draggingKeys: /* @__PURE__ */ new Set()
|
|
168
168
|
};
|
|
169
|
-
function
|
|
169
|
+
function i4(u) {
|
|
170
170
|
pu = u;
|
|
171
171
|
}
|
|
172
172
|
let _ = C.none, X = /* @__PURE__ */ new Map(), Y = null, W = /* @__PURE__ */ new Set();
|
|
173
|
-
function
|
|
173
|
+
function l4(u) {
|
|
174
174
|
return X.set(u.element, u), () => {
|
|
175
175
|
X.delete(u.element);
|
|
176
176
|
};
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function d4() {
|
|
179
179
|
let [u, e] = tu(Y);
|
|
180
180
|
return ru(() => {
|
|
181
181
|
let a = () => e(Y);
|
|
@@ -1650,19 +1650,19 @@ Mu = {
|
|
|
1650
1650
|
"zh-CN": qu,
|
|
1651
1651
|
"zh-TW": Hu
|
|
1652
1652
|
};
|
|
1653
|
-
function
|
|
1653
|
+
function c4(u) {
|
|
1654
1654
|
return u && u.__esModule ? u.default : u;
|
|
1655
1655
|
}
|
|
1656
|
-
const
|
|
1656
|
+
const p4 = {
|
|
1657
1657
|
keyboard: "dropDescriptionKeyboard",
|
|
1658
1658
|
touch: "dropDescriptionTouch",
|
|
1659
1659
|
virtual: "dropDescriptionVirtual"
|
|
1660
1660
|
};
|
|
1661
|
-
function
|
|
1662
|
-
let u = nu(
|
|
1661
|
+
function s4() {
|
|
1662
|
+
let u = nu(c4(Mu), "@react-aria/dnd"), e = r4(), a = d4();
|
|
1663
1663
|
return {
|
|
1664
1664
|
dropProps: {
|
|
1665
|
-
...qe(a ? u.format(
|
|
1665
|
+
...qe(a ? u.format(p4[e]) : ""),
|
|
1666
1666
|
// Mobile Safari does not properly bubble click events on elements except links or inputs
|
|
1667
1667
|
// unless there is an onclick handler bound directly to the element itself. By adding this
|
|
1668
1668
|
// handler, React will take care of adding that for us, and we are able to handle document
|
|
@@ -1673,8 +1673,8 @@ function p4() {
|
|
|
1673
1673
|
}
|
|
1674
1674
|
};
|
|
1675
1675
|
}
|
|
1676
|
-
const
|
|
1677
|
-
function
|
|
1676
|
+
const D4 = 800;
|
|
1677
|
+
function B4(u) {
|
|
1678
1678
|
let { hasDropButton: e, isDisabled: a } = u, [n, o] = tu(!1), t = U({
|
|
1679
1679
|
x: 0,
|
|
1680
1680
|
y: 0,
|
|
@@ -1691,7 +1691,7 @@ function D4(u) {
|
|
|
1691
1691
|
y: r.clientY - l.y
|
|
1692
1692
|
});
|
|
1693
1693
|
}
|
|
1694
|
-
},
|
|
1694
|
+
}, c = (r) => {
|
|
1695
1695
|
if (o(!1), typeof u.onDropExit == "function") {
|
|
1696
1696
|
let l = r.currentTarget.getBoundingClientRect();
|
|
1697
1697
|
u.onDropExit({
|
|
@@ -1700,7 +1700,7 @@ function D4(u) {
|
|
|
1700
1700
|
y: r.clientY - l.y
|
|
1701
1701
|
});
|
|
1702
1702
|
}
|
|
1703
|
-
},
|
|
1703
|
+
}, D = (r) => {
|
|
1704
1704
|
r.preventDefault(), r.stopPropagation();
|
|
1705
1705
|
let l = J(r);
|
|
1706
1706
|
if (r.clientX === t.x && r.clientY === t.y && l === t.allowedOperations) {
|
|
@@ -1708,20 +1708,20 @@ function D4(u) {
|
|
|
1708
1708
|
return;
|
|
1709
1709
|
}
|
|
1710
1710
|
t.x = r.clientX, t.y = r.clientY;
|
|
1711
|
-
let
|
|
1711
|
+
let k = t.dropEffect;
|
|
1712
1712
|
if (l !== t.allowedOperations) {
|
|
1713
1713
|
let p = R(l), s = p[0];
|
|
1714
1714
|
if (typeof u.getDropOperation == "function") {
|
|
1715
|
-
let
|
|
1716
|
-
s = I(l, u.getDropOperation(
|
|
1715
|
+
let $ = new K(r.dataTransfer);
|
|
1716
|
+
s = I(l, u.getDropOperation($, p));
|
|
1717
1717
|
}
|
|
1718
1718
|
t.dropEffect = L[s] || "none";
|
|
1719
1719
|
}
|
|
1720
1720
|
if (typeof u.getDropOperationForPoint == "function") {
|
|
1721
|
-
let p = new K(r.dataTransfer), s = r.currentTarget.getBoundingClientRect(),
|
|
1722
|
-
t.dropEffect = L[
|
|
1721
|
+
let p = new K(r.dataTransfer), s = r.currentTarget.getBoundingClientRect(), $ = I(l, u.getDropOperationForPoint(p, R(l), t.x - s.x, t.y - s.y));
|
|
1722
|
+
t.dropEffect = L[$] || "none";
|
|
1723
1723
|
}
|
|
1724
|
-
if (t.allowedOperations = l, r.dataTransfer.dropEffect = t.dropEffect, t.dropEffect === "none" &&
|
|
1724
|
+
if (t.allowedOperations = l, r.dataTransfer.dropEffect = t.dropEffect, t.dropEffect === "none" && k !== "none" ? c(r) : t.dropEffect !== "none" && k === "none" && d(r), typeof u.onDropMove == "function" && t.dropEffect !== "none") {
|
|
1725
1725
|
let p = r.currentTarget.getBoundingClientRect();
|
|
1726
1726
|
u.onDropMove({
|
|
1727
1727
|
type: "dropmove",
|
|
@@ -1737,58 +1737,58 @@ function D4(u) {
|
|
|
1737
1737
|
x: t.x - s.x,
|
|
1738
1738
|
y: t.y - s.y
|
|
1739
1739
|
});
|
|
1740
|
-
},
|
|
1740
|
+
}, D4);
|
|
1741
1741
|
}
|
|
1742
|
-
},
|
|
1742
|
+
}, B = (r) => {
|
|
1743
1743
|
if (r.preventDefault(), r.stopPropagation(), t.dragOverElements.add(r.target), t.dragOverElements.size > 1) return;
|
|
1744
|
-
let l = J(r),
|
|
1744
|
+
let l = J(r), k = R(l), p = k[0];
|
|
1745
1745
|
if (typeof u.getDropOperation == "function") {
|
|
1746
1746
|
let s = new K(r.dataTransfer);
|
|
1747
|
-
p = I(l, u.getDropOperation(s,
|
|
1747
|
+
p = I(l, u.getDropOperation(s, k));
|
|
1748
1748
|
}
|
|
1749
1749
|
if (typeof u.getDropOperationForPoint == "function") {
|
|
1750
|
-
let s = new K(r.dataTransfer),
|
|
1751
|
-
p = I(l, u.getDropOperationForPoint(s,
|
|
1750
|
+
let s = new K(r.dataTransfer), $ = r.currentTarget.getBoundingClientRect();
|
|
1751
|
+
p = I(l, u.getDropOperationForPoint(s, k, r.clientX - $.x, r.clientY - $.y));
|
|
1752
1752
|
}
|
|
1753
1753
|
t.x = r.clientX, t.y = r.clientY, t.allowedOperations = l, t.dropEffect = L[p] || "none", r.dataTransfer.dropEffect = t.dropEffect, p !== "cancel" && d(r);
|
|
1754
1754
|
}, i = (r) => {
|
|
1755
1755
|
r.preventDefault(), r.stopPropagation(), t.dragOverElements.delete(r.target);
|
|
1756
1756
|
for (let l of t.dragOverElements) r.currentTarget.contains(l) || t.dragOverElements.delete(l);
|
|
1757
|
-
t.dragOverElements.size > 0 || (t.dropEffect !== "none" &&
|
|
1757
|
+
t.dragOverElements.size > 0 || (t.dropEffect !== "none" && c(r), clearTimeout(t.dropActivateTimer));
|
|
1758
1758
|
}, E = (r) => {
|
|
1759
1759
|
if (r.preventDefault(), r.stopPropagation(), t.dropEffect, typeof u.onDrop == "function") {
|
|
1760
|
-
let
|
|
1760
|
+
let k = lu[t.dropEffect], p = du(r.dataTransfer), s = r.currentTarget.getBoundingClientRect(), $ = {
|
|
1761
1761
|
type: "drop",
|
|
1762
1762
|
x: r.clientX - s.x,
|
|
1763
1763
|
y: r.clientY - s.y,
|
|
1764
1764
|
items: p,
|
|
1765
|
-
dropOperation:
|
|
1765
|
+
dropOperation: k
|
|
1766
1766
|
};
|
|
1767
|
-
u.onDrop(
|
|
1767
|
+
u.onDrop($);
|
|
1768
1768
|
}
|
|
1769
1769
|
let l = {
|
|
1770
1770
|
...pu
|
|
1771
1771
|
};
|
|
1772
|
-
t.dragOverElements.clear(),
|
|
1773
|
-
},
|
|
1772
|
+
t.dragOverElements.clear(), c(r), clearTimeout(t.dropActivateTimer), l.draggingCollectionRef == null || i4(l);
|
|
1773
|
+
}, m = g((r) => {
|
|
1774
1774
|
typeof u.onDropEnter == "function" && u.onDropEnter(r);
|
|
1775
|
-
}),
|
|
1775
|
+
}), x = g((r) => {
|
|
1776
1776
|
typeof u.onDropExit == "function" && u.onDropExit(r);
|
|
1777
|
-
}), y =
|
|
1777
|
+
}), y = g((r) => {
|
|
1778
1778
|
typeof u.onDropActivate == "function" && u.onDropActivate(r);
|
|
1779
|
-
}), S =
|
|
1779
|
+
}), S = g((r) => {
|
|
1780
1780
|
typeof u.onDrop == "function" && u.onDrop(r);
|
|
1781
|
-
}), T =
|
|
1781
|
+
}), T = g((r, l) => u.getDropOperation ? u.getDropOperation(r, l) : l[0]), { ref: z } = u;
|
|
1782
1782
|
ye(() => {
|
|
1783
1783
|
if (!(a || !z.current))
|
|
1784
|
-
return
|
|
1784
|
+
return l4({
|
|
1785
1785
|
element: z.current,
|
|
1786
1786
|
getDropOperation: T,
|
|
1787
1787
|
onDropEnter(r) {
|
|
1788
|
-
o(!0),
|
|
1788
|
+
o(!0), m(r);
|
|
1789
1789
|
},
|
|
1790
1790
|
onDropExit(r) {
|
|
1791
|
-
o(!1),
|
|
1791
|
+
o(!1), x(r);
|
|
1792
1792
|
},
|
|
1793
1793
|
onDrop: S,
|
|
1794
1794
|
onDropActivate: y
|
|
@@ -1797,12 +1797,12 @@ function D4(u) {
|
|
|
1797
1797
|
a,
|
|
1798
1798
|
z,
|
|
1799
1799
|
T,
|
|
1800
|
+
m,
|
|
1800
1801
|
x,
|
|
1801
|
-
k,
|
|
1802
1802
|
S,
|
|
1803
1803
|
y
|
|
1804
1804
|
]);
|
|
1805
|
-
let { dropProps: P } =
|
|
1805
|
+
let { dropProps: P } = s4();
|
|
1806
1806
|
return a ? {
|
|
1807
1807
|
dropProps: {},
|
|
1808
1808
|
dropButtonProps: {
|
|
@@ -1812,8 +1812,8 @@ function D4(u) {
|
|
|
1812
1812
|
} : {
|
|
1813
1813
|
dropProps: {
|
|
1814
1814
|
...!e && P,
|
|
1815
|
-
onDragEnter:
|
|
1816
|
-
onDragOver:
|
|
1815
|
+
onDragEnter: B,
|
|
1816
|
+
onDragOver: D,
|
|
1817
1817
|
onDragLeave: i,
|
|
1818
1818
|
onDrop: E
|
|
1819
1819
|
},
|
|
@@ -1853,29 +1853,29 @@ function F(u, e) {
|
|
|
1853
1853
|
a.handlers.delete(e), a.handlers.size === 0 && (document.removeEventListener(u, a.listener), O.delete(u));
|
|
1854
1854
|
};
|
|
1855
1855
|
}
|
|
1856
|
-
function
|
|
1856
|
+
function C4(u) {
|
|
1857
1857
|
let { isDisabled: e } = u, a = U(!1), { focusProps: n } = Re({
|
|
1858
1858
|
onFocusChange: (i) => {
|
|
1859
1859
|
a.current = i;
|
|
1860
1860
|
}
|
|
1861
|
-
}), o =
|
|
1861
|
+
}), o = g((i) => {
|
|
1862
1862
|
a.current && u.getItems && i.preventDefault();
|
|
1863
|
-
}), t =
|
|
1863
|
+
}), t = g((i) => {
|
|
1864
1864
|
if (!(!a.current || !u.getItems) && (i.preventDefault(), i.clipboardData)) {
|
|
1865
1865
|
var E;
|
|
1866
1866
|
G(i.clipboardData, u.getItems({
|
|
1867
1867
|
action: "copy"
|
|
1868
1868
|
})), (E = u.onCopy) === null || E === void 0 || E.call(u);
|
|
1869
1869
|
}
|
|
1870
|
-
}), d =
|
|
1870
|
+
}), d = g((i) => {
|
|
1871
1871
|
a.current && u.onCut && u.getItems && i.preventDefault();
|
|
1872
|
-
}),
|
|
1872
|
+
}), c = g((i) => {
|
|
1873
1873
|
!a.current || !u.onCut || !u.getItems || (i.preventDefault(), i.clipboardData && (G(i.clipboardData, u.getItems({
|
|
1874
1874
|
action: "cut"
|
|
1875
1875
|
})), u.onCut()));
|
|
1876
|
-
}),
|
|
1876
|
+
}), D = g((i) => {
|
|
1877
1877
|
a.current && u.onPaste && i.preventDefault();
|
|
1878
|
-
}),
|
|
1878
|
+
}), B = g((i) => {
|
|
1879
1879
|
if (!(!a.current || !u.onPaste) && (i.preventDefault(), i.clipboardData)) {
|
|
1880
1880
|
let E = du(i.clipboardData);
|
|
1881
1881
|
u.onPaste(E);
|
|
@@ -1883,15 +1883,15 @@ function B4(u) {
|
|
|
1883
1883
|
});
|
|
1884
1884
|
return ru(() => {
|
|
1885
1885
|
if (!e)
|
|
1886
|
-
return Te(F("beforecopy", o), F("copy", t), F("beforecut", d), F("cut",
|
|
1886
|
+
return Te(F("beforecopy", o), F("copy", t), F("beforecut", d), F("cut", c), F("beforepaste", D), F("paste", B));
|
|
1887
1887
|
}, [
|
|
1888
1888
|
e,
|
|
1889
1889
|
o,
|
|
1890
1890
|
t,
|
|
1891
1891
|
d,
|
|
1892
|
+
c,
|
|
1892
1893
|
D,
|
|
1893
|
-
B
|
|
1894
|
-
c
|
|
1894
|
+
B
|
|
1895
1895
|
]), {
|
|
1896
1896
|
clipboardProps: n
|
|
1897
1897
|
};
|
|
@@ -2171,29 +2171,29 @@ ve = {
|
|
|
2171
2171
|
"zh-CN": he,
|
|
2172
2172
|
"zh-TW": Fe
|
|
2173
2173
|
};
|
|
2174
|
-
function
|
|
2174
|
+
function E4(u) {
|
|
2175
2175
|
return u && u.__esModule ? u.default : u;
|
|
2176
2176
|
}
|
|
2177
|
-
const
|
|
2177
|
+
const x4 = /* @__PURE__ */ Ue(null), b4 = /* @__PURE__ */ au(function(e, a) {
|
|
2178
2178
|
let { isDisabled: n = !1 } = e;
|
|
2179
|
-
[e, a] = ze(e, a,
|
|
2180
|
-
let o = uu(a), t = U(null), { dropProps: d, dropButtonProps:
|
|
2179
|
+
[e, a] = ze(e, a, x4);
|
|
2180
|
+
let o = uu(a), t = U(null), { dropProps: d, dropButtonProps: c, isDropTarget: D } = B4({
|
|
2181
2181
|
...e,
|
|
2182
2182
|
ref: t,
|
|
2183
2183
|
hasDropButton: !0
|
|
2184
|
-
}), { buttonProps:
|
|
2184
|
+
}), { buttonProps: B } = He(c || {}, t), { hoverProps: i, isHovered: E } = Oe(e), { focusProps: m, isFocused: x, isFocusVisible: y } = Me(), S = nu(E4(ve), "react-aria-components"), T = Se(), z = e["aria-label"] || S.format("dropzoneLabel"), P = e["aria-labelledby"], r = [
|
|
2185
2185
|
T,
|
|
2186
2186
|
P
|
|
2187
2187
|
].filter(Boolean).join(" "), l = je({
|
|
2188
2188
|
"aria-label": z,
|
|
2189
2189
|
"aria-labelledby": r
|
|
2190
|
-
}), { clipboardProps:
|
|
2190
|
+
}), { clipboardProps: k } = C4({
|
|
2191
2191
|
isDisabled: n,
|
|
2192
|
-
onPaste: (
|
|
2192
|
+
onPaste: ($) => {
|
|
2193
2193
|
var f;
|
|
2194
2194
|
return (f = e.onDrop) === null || f === void 0 ? void 0 : f.call(e, {
|
|
2195
2195
|
type: "drop",
|
|
2196
|
-
items:
|
|
2196
|
+
items: $,
|
|
2197
2197
|
x: 0,
|
|
2198
2198
|
y: 0,
|
|
2199
2199
|
dropOperation: "copy"
|
|
@@ -2203,9 +2203,9 @@ const E4 = /* @__PURE__ */ Ue(null), x4 = /* @__PURE__ */ au(function(e, a) {
|
|
|
2203
2203
|
...e,
|
|
2204
2204
|
values: {
|
|
2205
2205
|
isHovered: E,
|
|
2206
|
-
isFocused:
|
|
2206
|
+
isFocused: x,
|
|
2207
2207
|
isFocusVisible: y,
|
|
2208
|
-
isDropTarget:
|
|
2208
|
+
isDropTarget: D,
|
|
2209
2209
|
isDisabled: n
|
|
2210
2210
|
},
|
|
2211
2211
|
defaultClassName: "react-aria-DropZone"
|
|
@@ -2225,9 +2225,9 @@ const E4 = /* @__PURE__ */ Ue(null), x4 = /* @__PURE__ */ au(function(e, a) {
|
|
|
2225
2225
|
...p,
|
|
2226
2226
|
slot: e.slot || void 0,
|
|
2227
2227
|
ref: o,
|
|
2228
|
-
onClick: (
|
|
2228
|
+
onClick: ($) => {
|
|
2229
2229
|
var f;
|
|
2230
|
-
let h =
|
|
2230
|
+
let h = $.target;
|
|
2231
2231
|
for (; h && (!((f = o.current) === null || f === void 0) && f.contains(h)) && !Ne(h); ) {
|
|
2232
2232
|
if (h === o.current) {
|
|
2233
2233
|
var w;
|
|
@@ -2238,22 +2238,22 @@ const E4 = /* @__PURE__ */ Ue(null), x4 = /* @__PURE__ */ au(function(e, a) {
|
|
|
2238
2238
|
}
|
|
2239
2239
|
},
|
|
2240
2240
|
"data-hovered": E || void 0,
|
|
2241
|
-
"data-focused":
|
|
2241
|
+
"data-focused": x || void 0,
|
|
2242
2242
|
"data-focus-visible": y || void 0,
|
|
2243
|
-
"data-drop-target":
|
|
2243
|
+
"data-drop-target": D || void 0,
|
|
2244
2244
|
"data-disabled": n || void 0
|
|
2245
2245
|
}, /* @__PURE__ */ A.createElement(Ge, null, /* @__PURE__ */ A.createElement("button", {
|
|
2246
|
-
...H(
|
|
2246
|
+
...H(B, m, k, l),
|
|
2247
2247
|
ref: t
|
|
2248
2248
|
})), p.children));
|
|
2249
|
-
}),
|
|
2250
|
-
let { onSelect: n, acceptedFileTypes: o, allowsMultiple: t, defaultCamera: d, children:
|
|
2249
|
+
}), m4 = /* @__PURE__ */ au(function(e, a) {
|
|
2250
|
+
let { onSelect: n, acceptedFileTypes: o, allowsMultiple: t, defaultCamera: d, children: c, acceptDirectory: D, ...B } = e, i = uu(a), E = eu(B);
|
|
2251
2251
|
return /* @__PURE__ */ A.createElement(A.Fragment, null, /* @__PURE__ */ A.createElement(Xe, {
|
|
2252
2252
|
onPress: () => {
|
|
2253
|
-
var
|
|
2254
|
-
!((
|
|
2253
|
+
var m, x;
|
|
2254
|
+
!((m = i.current) === null || m === void 0) && m.value && (i.current.value = ""), (x = i.current) === null || x === void 0 || x.click();
|
|
2255
2255
|
}
|
|
2256
|
-
},
|
|
2256
|
+
}, c), /* @__PURE__ */ A.createElement(_e, {
|
|
2257
2257
|
...E,
|
|
2258
2258
|
type: "file",
|
|
2259
2259
|
ref: i,
|
|
@@ -2261,38 +2261,39 @@ const E4 = /* @__PURE__ */ Ue(null), x4 = /* @__PURE__ */ au(function(e, a) {
|
|
|
2261
2261
|
display: "none"
|
|
2262
2262
|
},
|
|
2263
2263
|
accept: o == null ? void 0 : o.toString(),
|
|
2264
|
-
onChange: (
|
|
2264
|
+
onChange: (m) => n == null ? void 0 : n(m.target.files),
|
|
2265
2265
|
capture: d,
|
|
2266
2266
|
multiple: t,
|
|
2267
2267
|
// @ts-expect-error
|
|
2268
|
-
webkitdirectory:
|
|
2268
|
+
webkitdirectory: D ? "" : void 0
|
|
2269
2269
|
}));
|
|
2270
|
-
}),
|
|
2271
|
-
box:
|
|
2272
|
-
list:
|
|
2273
|
-
container:
|
|
2274
|
-
dropzone:
|
|
2275
|
-
input:
|
|
2276
|
-
},
|
|
2270
|
+
}), $4 = "_box_sqne2_4", g4 = "_list_sqne2_28", k4 = "_container_sqne2_38", A4 = "_dropzone_sqne2_61", f4 = "_input_sqne2_75", v = {
|
|
2271
|
+
box: $4,
|
|
2272
|
+
list: g4,
|
|
2273
|
+
container: k4,
|
|
2274
|
+
dropzone: A4,
|
|
2275
|
+
input: f4
|
|
2276
|
+
}, U4 = ({
|
|
2277
2277
|
allowsMultiple: u,
|
|
2278
2278
|
label: e,
|
|
2279
2279
|
description: a,
|
|
2280
2280
|
dropzone: n,
|
|
2281
|
-
|
|
2281
|
+
popover: o,
|
|
2282
|
+
...t
|
|
2282
2283
|
}) => {
|
|
2283
|
-
const [
|
|
2284
|
-
|
|
2285
|
-
}, B = async (
|
|
2286
|
-
const
|
|
2287
|
-
|
|
2284
|
+
const [d, c] = Ze.useState(null), D = (i) => {
|
|
2285
|
+
c(i !== null ? Array.from(i) : []);
|
|
2286
|
+
}, B = async (i) => {
|
|
2287
|
+
const E = i.items.filter((x) => x.kind === "file").map((x) => x.getFile()), m = await Promise.all(E);
|
|
2288
|
+
c(m);
|
|
2288
2289
|
};
|
|
2289
2290
|
return n ? /* @__PURE__ */ N("div", { className: v.container, children: [
|
|
2290
|
-
/* @__PURE__ */
|
|
2291
|
-
|
|
2291
|
+
/* @__PURE__ */ b(
|
|
2292
|
+
b4,
|
|
2292
2293
|
{
|
|
2293
2294
|
onDrop: B,
|
|
2294
2295
|
className: v.dropzone,
|
|
2295
|
-
children: /* @__PURE__ */
|
|
2296
|
+
children: /* @__PURE__ */ b(
|
|
2296
2297
|
M,
|
|
2297
2298
|
{
|
|
2298
2299
|
slot: "description",
|
|
@@ -2302,23 +2303,23 @@ const E4 = /* @__PURE__ */ Ue(null), x4 = /* @__PURE__ */ au(function(e, a) {
|
|
|
2302
2303
|
)
|
|
2303
2304
|
}
|
|
2304
2305
|
),
|
|
2305
|
-
|
|
2306
|
+
d && /* @__PURE__ */ b(
|
|
2306
2307
|
Q,
|
|
2307
2308
|
{
|
|
2308
|
-
files:
|
|
2309
|
-
setFiles:
|
|
2309
|
+
files: d,
|
|
2310
|
+
setFiles: c
|
|
2310
2311
|
}
|
|
2311
2312
|
)
|
|
2312
2313
|
] }) : /* @__PURE__ */ N("div", { className: v.container, children: [
|
|
2313
|
-
e && /* @__PURE__ */
|
|
2314
|
-
a && /* @__PURE__ */
|
|
2315
|
-
/* @__PURE__ */
|
|
2316
|
-
|
|
2314
|
+
/* @__PURE__ */ b(Ye, { popover: o, children: e && /* @__PURE__ */ b(We, { children: e }) }),
|
|
2315
|
+
a && /* @__PURE__ */ b(M, { slot: "description", children: a }),
|
|
2316
|
+
/* @__PURE__ */ b(
|
|
2317
|
+
m4,
|
|
2317
2318
|
{
|
|
2318
2319
|
allowsMultiple: u,
|
|
2319
|
-
onSelect: (
|
|
2320
|
-
...
|
|
2321
|
-
children: /* @__PURE__ */
|
|
2320
|
+
onSelect: (i) => D(i),
|
|
2321
|
+
...t,
|
|
2322
|
+
children: /* @__PURE__ */ b(
|
|
2322
2323
|
ou,
|
|
2323
2324
|
{
|
|
2324
2325
|
variant: "secondary",
|
|
@@ -2329,11 +2330,11 @@ const E4 = /* @__PURE__ */ Ue(null), x4 = /* @__PURE__ */ au(function(e, a) {
|
|
|
2329
2330
|
)
|
|
2330
2331
|
}
|
|
2331
2332
|
),
|
|
2332
|
-
|
|
2333
|
+
d && /* @__PURE__ */ b(
|
|
2333
2334
|
Q,
|
|
2334
2335
|
{
|
|
2335
|
-
files:
|
|
2336
|
-
setFiles:
|
|
2336
|
+
files: d,
|
|
2337
|
+
setFiles: c
|
|
2337
2338
|
}
|
|
2338
2339
|
)
|
|
2339
2340
|
] });
|
|
@@ -2341,20 +2342,20 @@ const E4 = /* @__PURE__ */ Ue(null), x4 = /* @__PURE__ */ au(function(e, a) {
|
|
|
2341
2342
|
const a = (n) => {
|
|
2342
2343
|
e(u == null ? void 0 : u.filter((o, t) => t !== n));
|
|
2343
2344
|
};
|
|
2344
|
-
return /* @__PURE__ */
|
|
2345
|
+
return /* @__PURE__ */ b("ul", { className: v.list, children: u.map((n, o) => /* @__PURE__ */ N(
|
|
2345
2346
|
"li",
|
|
2346
2347
|
{
|
|
2347
2348
|
className: v.box,
|
|
2348
2349
|
children: [
|
|
2349
|
-
/* @__PURE__ */
|
|
2350
|
-
/* @__PURE__ */
|
|
2350
|
+
/* @__PURE__ */ b("span", { children: n.name }),
|
|
2351
|
+
/* @__PURE__ */ b(
|
|
2351
2352
|
ou,
|
|
2352
2353
|
{
|
|
2353
2354
|
variant: "icon",
|
|
2354
2355
|
size: "medium",
|
|
2355
2356
|
onPress: () => a(o),
|
|
2356
|
-
children: /* @__PURE__ */
|
|
2357
|
-
|
|
2357
|
+
children: /* @__PURE__ */ b(
|
|
2358
|
+
Je,
|
|
2358
2359
|
{
|
|
2359
2360
|
size: 20,
|
|
2360
2361
|
"aria-hidden": !0
|
|
@@ -2368,5 +2369,5 @@ const E4 = /* @__PURE__ */ Ue(null), x4 = /* @__PURE__ */ au(function(e, a) {
|
|
|
2368
2369
|
)) });
|
|
2369
2370
|
};
|
|
2370
2371
|
export {
|
|
2371
|
-
|
|
2372
|
+
U4 as F
|
|
2372
2373
|
};
|