@midas-ds/components 10.3.0 → 10.4.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-BcsoC78F.cjs +1 -0
- package/{AccordionItem-ChHpW8EW.js → AccordionItem-BqsgiVWV.js} +38 -36
- package/Breadcrumbs-CfW5IuyE.cjs +1 -0
- package/{Breadcrumbs-CwDUNIqF.js → Breadcrumbs-D7eoibWk.js} +77 -65
- package/{Button-BoJl6JGM.cjs → Button-BXY5ZhqI.cjs} +1 -1
- package/{Button-Csih3v23.js → Button-BZUo7vsZ.js} +1 -1
- package/{Button-DjBChs7s.js → Button-CFYdzG0H.js} +24 -23
- package/Button-DExMoP5f.cjs +1 -0
- package/CHANGELOG.md +28 -0
- package/{Card-yrtGzt70.js → Card-BaWSgtSF.js} +3 -3
- package/{Card-0G0mj9q5.cjs → Card-Cc1TNPcQ.cjs} +1 -1
- package/{CharacterCounter-CHcTDHO-.cjs → CharacterCounter-DSFBv3Rw.cjs} +1 -1
- package/{CharacterCounter-BL_nZHya.js → CharacterCounter-cLhqPZlk.js} +4 -4
- package/Checkbox-Co3h0hur.cjs +1 -0
- package/{Checkbox-5HINZdGu.js → Checkbox-LuUwTZ3W.js} +69 -68
- package/CheckboxGroup-CUA8_xSx.js +160 -0
- package/CheckboxGroup-DmUOM0xl.cjs +1 -0
- package/{Collection-Brgjpkne.js → Collection--62xKPm9.js} +17 -16
- package/Collection-BtBX5IMY.cjs +1 -0
- package/{ColorSchemeSwitch-BpzQ7g0b.js → ColorSchemeSwitch-Cwono7Ap.js} +51 -35
- package/ColorSchemeSwitch-DDXdSzqg.cjs +16 -0
- package/ComboBox-BBC7jhnm.cjs +1 -0
- package/{ComboBox-CVDyp2a-.js → ComboBox-HLIAbb2q.js} +309 -298
- package/{DateField-DeDhiYnW.cjs → DateField-B3VjOSde.cjs} +1 -1
- package/{DateField-DhU3q-rG.js → DateField-CnLEi7uX.js} +4 -4
- package/DateInputDivider-3BvwXXa9.cjs +1 -0
- package/{DateInputDivider-CF4xWsMT.js → DateInputDivider-Bi5N-C0c.js} +90 -86
- package/DateRangePicker-BPlZ12r8.cjs +6 -0
- package/{DateRangePicker-ziD1_k1W.js → DateRangePicker-CFOoGvut.js} +86 -83
- package/Dialog-CSnN6baf.cjs +1 -0
- package/{Dialog-D14MbJ7o.js → Dialog-CtVrVuMr.js} +101 -98
- package/Dialog-SqciohRY.js +221 -0
- package/Dialog-pSSy1zwf.cjs +1 -0
- package/DragAndDrop-BoEd260f.cjs +1 -0
- package/{DragAndDrop-o3ruz_SR.js → DragAndDrop-DkSTL28C.js} +2 -2
- package/{Dropdown-Df58j43I.js → Dropdown-CkBp70BH.js} +2 -2
- package/{Dropdown-CJ6My6EI.cjs → Dropdown-DAsVShlt.cjs} +1 -1
- package/FieldError-B3YFj-an.js +23 -0
- package/FieldError-BbR-29BM.js +28 -0
- package/FieldError-MVsU-Mgw.cjs +1 -0
- package/FieldError-bRTpchvr.cjs +1 -0
- package/{FileUpload-D6qoEAjn.js → FileUpload-B4rv-wke.js} +496 -475
- package/{FileUpload-CxCOtyB9.cjs → FileUpload-BwMhyLjG.cjs} +2 -2
- package/{FocusScope-CxkURfoc.js → FocusScope-D_hwN_TJ.js} +25 -24
- package/FocusScope-vcXLOQiu.cjs +1 -0
- package/Group-CpkUzEAs.js +45 -0
- package/Group-DOpbdoAi.cjs +1 -0
- package/{Heading-mHhCbGjY.cjs → Heading-CKTR4sOz.cjs} +1 -1
- package/{Heading-BFtiin0g.js → Heading-NxtGri2i.js} +1 -1
- package/{InfoBanner-BLM-TJJ6.js → InfoBanner-CBUoad7A.js} +47 -39
- package/InfoBanner-CVry6Y8i.cjs +1 -0
- package/{Input-BTzwcf72.js → Input-LnjmFI1x.js} +13 -12
- package/Input-MJji5hhq.cjs +1 -0
- package/Label-CNmTN1YY.cjs +1 -0
- package/Label-TVxwGZ-O.js +78 -0
- package/Layout-Dw-oCqxd.cjs +16 -0
- package/Layout-amz9BESl.js +498 -0
- package/{Link-yNO2-sqx.js → Link-Bn8V3ZI0.js} +8 -7
- package/Link-CidjjqHb.cjs +1 -0
- package/{Link-B88l_oaE.cjs → Link-D92ftFi2.cjs} +1 -1
- package/{Link-DX5BbBnn.js → Link-DegonJfl.js} +1 -1
- package/{LinkButton-o6uS1XsR.js → LinkButton-CckYzfJ8.js} +1 -1
- package/{LinkButton-CBpGLETx.cjs → LinkButton-DKZ4z6zu.cjs} +1 -1
- package/ListBox-BCz5-23H.cjs +1 -0
- package/{ListBox-GnVK_Pdq.js → ListBox-C-isJIHL.js} +101 -99
- package/{ListBoxButton-D_J3jlP0.js → ListBoxButton-C_krklY0.js} +1 -1
- package/{ListBoxButton-DPBrtXyv.cjs → ListBoxButton-DNm3gvcT.cjs} +1 -1
- package/{ListBoxSection-C0BGnpB4.js → ListBoxSection-BVR2xtOH.js} +9 -9
- package/ListBoxSection-CfQZoURJ.cjs +1 -0
- package/{ListKeyboardDelegate-DTg9h4v6.cjs → ListKeyboardDelegate-CPsZ7D83.cjs} +1 -1
- package/{ListKeyboardDelegate-DNI8GQtX.js → ListKeyboardDelegate-CY6t6y1t.js} +3 -3
- package/LocalizedStringFormatter-C0C54hjf.cjs +1 -0
- package/LocalizedStringFormatter-D-4Qyql0.js +77 -0
- package/Logo-BpH0HC91.cjs +1 -0
- package/{Logo-BIrOEINM.js → Logo-ME4ffCue.js} +34 -26
- package/{OverlayArrow-CDLXPTew.js → OverlayArrow-CfhSYL46.js} +57 -56
- package/OverlayArrow-DpZ1FqOd.cjs +1 -0
- package/{Popover-BGGXeD54.js → Popover-C8VY1YKi.js} +2 -2
- package/{Popover-CqNWzPf-.cjs → Popover-CnAsw3wI.cjs} +1 -1
- package/{ProgressBar-DMSg-Prr.js → ProgressBar-BNCjpcv8.js} +2 -2
- package/{ProgressBar-Jbg28j2a.cjs → ProgressBar-CcbxcWdT.cjs} +1 -1
- package/Radio-B2zfEFdq.cjs +1 -0
- package/{Radio-Cz29wPXd.js → Radio-CZYibh9r.js} +50 -47
- package/{RangeCalendar-RAlAHlNL.js → RangeCalendar-B16b6tJD.js} +304 -293
- package/RangeCalendar-C1LFeOVk.cjs +11 -0
- package/SSRProvider-40TXmsUG.js +50 -0
- package/SSRProvider-Bc-sMhsT.cjs +1 -0
- package/SearchField-CML0kjtn.cjs +6 -0
- package/{SearchField-IlvZ3Kh6.js → SearchField-giwECmXS.js} +175 -166
- package/Select-DKey6CeS.cjs +1 -0
- package/Select-mwaAv20X.js +665 -0
- package/SelectionManager-D0jYUYcy.cjs +1 -0
- package/{SelectionManager-B4ORduja.js → SelectionManager-zsWy3vsd.js} +91 -90
- package/{Separator-DECIYLtZ.cjs → Separator-CxF-3jhR.cjs} +1 -1
- package/{Separator-Cu9fYKUM.js → Separator-Dn5LYN5I.js} +4 -4
- package/Spinner-CbJ6YAz-.js +53 -0
- package/Spinner-yHcy8YHC.cjs +6 -0
- package/TabList-7VtCiXxX.cjs +1 -0
- package/TabList-CthsM5h6.js +435 -0
- package/{Table-F4oYBtUM.js → Table-BcQPvJT3.js} +46 -44
- package/Table-DkvNp6xm.cjs +16 -0
- package/{Tag-Du7GvSv2.js → Tag-Bs8T2Ei7.js} +131 -129
- package/Tag-CFWZ2LQW.cjs +1 -0
- package/Text-92cPh38G.js +15 -0
- package/{Text-B2K-BJKQ.cjs → Text-CfcjRtke.cjs} +1 -1
- package/{Text-3MNwRMpI.cjs → Text-DBHWi5gA.cjs} +1 -1
- package/{Text-jWWg0B20.js → Text-DlKqpvSa.js} +1 -1
- package/TextArea-DBNAVWqL.js +119 -0
- package/TextArea-XJDfeXRs.cjs +1 -0
- package/TextField-BdK9KEQ5.cjs +1 -0
- package/{TextField-C-hTPukq.js → TextField-ByDJkig9.js} +23 -22
- package/{Toast-Btg21Xge.js → Toast-DPPvPhrF.js} +75 -68
- package/Toast-l1bKo2oA.cjs +1 -0
- package/ToggleButtonGroup-DH8IgR4G.cjs +1 -0
- package/{ToggleButtonGroup-B5yz1tm2.js → ToggleButtonGroup-HOWNWtQZ.js} +46 -45
- package/{Tooltip-CMLs7WMw.js → Tooltip-5mLWn_wO.js} +29 -27
- package/Tooltip-pN5W3IK6.cjs +1 -0
- package/{VisuallyHidden-ZCYf65q4.js → VisuallyHidden-CYfmTSCD.js} +2 -2
- package/VisuallyHidden-Doyzl0F7.cjs +1 -0
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +1 -1
- package/assets/Checkbox.css +1 -1
- package/assets/FileUpload.css +1 -1
- package/assets/RangeCalendar.css +1 -1
- package/assets/SearchField.css +1 -1
- package/assets/Spinner.css +1 -1
- package/assets/TabList.css +1 -0
- package/breadcrumbs/Breadcrumbs.d.ts +11 -7
- package/breadcrumbs/index.cjs +1 -1
- package/breadcrumbs/index.d.ts +1 -1
- package/breadcrumbs/index.js +1 -1
- package/button/index.cjs +1 -1
- package/button/index.js +1 -1
- package/calendar/CalendarGrid.d.ts +1 -0
- package/calendar/index.cjs +1 -1
- package/calendar/index.js +1 -1
- package/card/index.cjs +1 -1
- package/card/index.js +1 -1
- package/character-counter/index.cjs +1 -1
- package/character-counter/index.js +1 -1
- package/checkbox/Checkbox.d.ts +3 -1
- package/checkbox/index.cjs +1 -1
- package/checkbox/index.js +2 -2
- package/checkbox/intl/translations.json.d.ts +2 -30
- package/checkbox/types.d.ts +3 -1
- package/color-scheme-switch/ColorSchemeSwitch.d.ts +1 -0
- package/color-scheme-switch/index.cjs +1 -1
- package/color-scheme-switch/index.js +1 -1
- package/color-scheme-switch/intl/translations.json.d.ts +15 -0
- package/combobox/index.cjs +1 -1
- package/combobox/index.js +1 -1
- package/combobox/intl/translations.json.d.ts +11 -0
- package/{context-C81gPYvC.js → context-CGNJ3grH.js} +1 -1
- package/context-Df3XbgBG.cjs +1 -0
- package/date-field/index.cjs +1 -1
- package/date-field/index.js +2 -2
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +1 -1
- package/dropdown/index.cjs +1 -1
- package/dropdown/index.js +1 -1
- package/field-error/index.cjs +1 -1
- package/field-error/index.js +1 -1
- package/file-upload/FileUpload.d.ts +1 -0
- package/file-upload/index.cjs +1 -1
- package/file-upload/index.js +1 -1
- package/file-upload/intl/translations.json.d.ts +17 -0
- package/{getScrollParent-BhFcYrwL.js → getScrollParent-CT_L9LUr.js} +1 -1
- package/{getScrollParent-DDJu9WHU.cjs → getScrollParent-CsZ9ciml.cjs} +1 -1
- package/heading/index.cjs +1 -1
- package/heading/index.js +1 -1
- package/index.cjs +1 -1
- package/index.js +100 -97
- package/info-banner/index.cjs +1 -1
- package/info-banner/index.js +1 -1
- package/info-banner/intl/translations.json.d.ts +11 -0
- package/label/index.cjs +1 -1
- package/label/index.js +1 -1
- package/label/intl/translations.json.d.ts +11 -0
- package/layout/Layout.d.ts +1 -0
- package/layout/context/LayoutContext.d.ts +1 -0
- package/layout/index.cjs +1 -1
- package/layout/index.js +1 -1
- package/layout/intl/translations.json.d.ts +23 -0
- package/link/index.cjs +1 -1
- package/link/index.js +2 -2
- package/link-button/index.cjs +1 -1
- package/link-button/index.js +2 -2
- package/list-box/index.cjs +1 -1
- package/list-box/index.js +2 -2
- package/logo/index.cjs +1 -1
- package/logo/index.js +1 -1
- package/logo/intl/translations.json.d.ts +11 -0
- package/mergeProps-B5KXZAI3.cjs +1 -0
- package/mergeProps-C1U1OIeJ.js +115 -0
- package/modal/index.cjs +1 -1
- package/modal/index.js +2 -2
- package/modal/intl/translations.json.d.ts +11 -0
- package/package.json +1 -1
- package/popover/index.cjs +1 -1
- package/popover/index.js +1 -1
- package/progress-bar/index.cjs +1 -1
- package/progress-bar/index.js +1 -1
- package/radio/Radio.d.ts +1 -4
- package/radio/index.cjs +1 -1
- package/radio/index.js +1 -1
- package/{scrollIntoView-Hwb_aaNf.js → scrollIntoView-BLnsPvFA.js} +1 -1
- package/scrollIntoView-joIyo-Jt.cjs +1 -0
- package/search-field/index.cjs +1 -1
- package/search-field/index.js +1 -1
- package/search-field/intl/translations.json.d.ts +11 -0
- package/select/index.cjs +1 -1
- package/select/index.js +1 -1
- package/select/intl/translations.json.d.ts +17 -0
- package/spinner/Spinner.d.ts +1 -0
- package/spinner/index.cjs +1 -1
- package/spinner/index.js +1 -1
- package/spinner/intl/translations.json.d.ts +11 -0
- package/table/index.cjs +1 -1
- package/table/index.js +1 -1
- package/tabs/Tab.d.ts +4 -0
- package/tabs/TabList.d.ts +3 -0
- package/tabs/TabPanel.d.ts +4 -0
- package/tabs/Tabs.d.ts +11 -5
- package/tabs/index.cjs +1 -1
- package/tabs/index.d.ts +3 -0
- package/tabs/index.js +5 -2
- package/tag/index.cjs +1 -1
- package/tag/index.js +1 -1
- package/text/index.cjs +1 -1
- package/text/index.js +1 -1
- package/textfield/index.cjs +1 -1
- package/textfield/index.js +1 -1
- package/textfield/intl/translations.json.d.ts +0 -72
- package/theme/index.cjs +1 -1
- package/theme/index.d.ts +5 -0
- package/theme/index.js +2 -2
- package/theme/tokens.d.ts +5 -0
- package/toast/Toast.d.ts +5 -2
- 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/{tokens-p6pg1Cea.cjs → tokens-BghDnMdO.cjs} +1 -1
- package/{tokens-xp-7KMK7.js → tokens-fEwCQXDv.js} +16 -11
- package/tooltip/index.cjs +1 -1
- package/tooltip/index.js +1 -1
- package/{useButton-B8dB9sot.js → useButton-1-Jf-oHj.js} +3 -3
- package/useButton-D60q0SQw.cjs +1 -0
- package/{useDateFormatter-CnxoJ4jF.cjs → useDateFormatter-BJBt0jk_.cjs} +1 -1
- package/{useDateFormatter-EHm4auIg.js → useDateFormatter-BVCkxVdw.js} +2 -2
- package/{useEvent-IsD2Awnh.js → useEvent-CigwyJOw.js} +3 -3
- package/useEvent-DPxMu-X9.cjs +1 -0
- package/{useField-DvpGZkw_.js → useField-BEBXv5Mh.js} +4 -4
- package/useField-D1UkzeaI.cjs +1 -0
- package/{useFilter-CUq74PQ2.js → useFilter-CousKe2K.js} +1 -1
- package/{useFilter-BTgDWHVx.cjs → useFilter-e2oIVF_O.cjs} +1 -1
- package/useFocusRing-B-A1OLhU.cjs +1 -0
- package/useFocusRing-DOfBqnUN.js +33 -0
- package/useFocusWithin-CG8mAt2D.cjs +1 -0
- package/useFocusWithin-T1ifEM_s.js +54 -0
- package/{useFocusable-C8uh8K4g.js → useFocusable-ChPA2Jc7.js} +20 -18
- package/useFocusable-D7I1ujkW.cjs +1 -0
- package/useFormValidation-BlFGdPZB.cjs +1 -0
- package/{useFormValidation-BIGzfO9h.js → useFormValidation-BzzruZKm.js} +2 -2
- package/{useHasTabbableChild-C-1mZUQe.js → useHasTabbableChild-BE81d_ab.js} +2 -2
- package/useHasTabbableChild-CoQRpNbC.cjs +1 -0
- package/useHighlightSelectionDescription-BfR_vGOe.cjs +1 -0
- package/{useHighlightSelectionDescription-CnBDT86u.js → useHighlightSelectionDescription-D73hrkmn.js} +5 -5
- package/useHover-BE_XKZKe.cjs +1 -0
- package/useHover-DQvJ3Y-W.js +262 -0
- package/useLabels-CSU0kbtJ.cjs +1 -0
- package/{useLabels-BDwkBYbE.js → useLabels-LrKQiY11.js} +1 -1
- package/{useListState-CrZFZffI.js → useListState-CebsX_1d.js} +1 -1
- package/{useListState-Bx8u4IFG.cjs → useListState-DymkJGDF.cjs} +1 -1
- package/useLocalizedStringFormatter-BO2iZEL0.cjs +1 -0
- package/useLocalizedStringFormatter-BiX5BTlb.cjs +1 -0
- package/useLocalizedStringFormatter-CL9MUZ8A.js +22 -0
- package/useLocalizedStringFormatter-N0AyjzbM.js +25 -0
- package/usePress-BooY_CAy.cjs +7 -0
- package/{usePress-CNjmDzap.js → usePress-DuR4pVsE.js} +129 -128
- package/{useSingleSelectListState-0AGHxvy3.js → useSingleSelectListState-BLXvGjLI.js} +1 -1
- package/{useSingleSelectListState-Cl3KV5E1.cjs → useSingleSelectListState-BPhlCU26.cjs} +1 -1
- package/{useTextField-Cw-33OP_.js → useTextField-C-sUypsx.js} +8 -8
- package/useTextField-DnRrCg5o.cjs +1 -0
- package/utils/intl/useLocalizedStringFormatter.d.ts +2 -0
- package/utils-CoCR_Fce.js +234 -0
- package/utils-DHNZrQmj.cjs +1 -0
- package/utils-DJhAJHk_.js +152 -0
- package/utils-Dvdohqm9.cjs +1 -0
- package/AccordionItem-BGWiWjxA.cjs +0 -1
- package/Breadcrumbs-DtjJ1UmU.cjs +0 -1
- package/Button-htW9qIsS.cjs +0 -1
- package/Checkbox-DqcPg5hz.cjs +0 -1
- package/CheckboxGroup-BBrSMuDY.cjs +0 -1
- package/CheckboxGroup-CLgixk2p.js +0 -243
- package/Collection-BIDsXNhi.cjs +0 -1
- package/ColorSchemeSwitch-C-qWuqkU.cjs +0 -16
- package/ComboBox-CWJUg9Xx.cjs +0 -1
- package/DateInputDivider-ADvOavHw.cjs +0 -1
- package/DateRangePicker-BsAHhy99.cjs +0 -6
- package/Dialog-B8GTYbvu.cjs +0 -1
- package/Dialog-BOrYdX50.cjs +0 -1
- package/Dialog-CXNu48AC.js +0 -208
- package/DragAndDrop-DNth776R.cjs +0 -1
- package/FieldError-CAcjosk_.js +0 -46
- package/FieldError-CKBb2-mp.cjs +0 -1
- package/FocusScope-5c9SVBcR.cjs +0 -1
- package/Group-B6EslsHZ.js +0 -44
- package/Group-CgiqQHH1.cjs +0 -1
- package/InfoBanner-C2kTIsrB.cjs +0 -1
- package/Input-DKSAYvsw.cjs +0 -1
- package/Label-7Ybb99CE.cjs +0 -1
- package/Label-BwJrdqEE.js +0 -70
- package/Layout-1g6bMH62.cjs +0 -16
- package/Layout-Ey8flY7E.js +0 -468
- package/Link-BQhauBuw.cjs +0 -1
- package/ListBox-DP9M4H6R.cjs +0 -1
- package/ListBoxSection-BGaigBnG.cjs +0 -1
- package/Logo-DT2_2O43.cjs +0 -1
- package/OverlayArrow-D75k-EMl.cjs +0 -1
- package/Radio-BwqrdhQE.cjs +0 -1
- package/RangeCalendar-BehUaydF.cjs +0 -11
- package/SearchField-CxMwDeUM.cjs +0 -6
- package/Select-2q1iSzAX.cjs +0 -1
- package/Select-BVQZtoi9.js +0 -646
- package/SelectionManager-CwYux2h3.cjs +0 -1
- package/Spinner-D31SXm-U.js +0 -41
- package/Spinner-P35rvvsl.cjs +0 -6
- package/Table-B40CGLT-.cjs +0 -16
- package/Tabs-B4oZJkZG.js +0 -404
- package/Tabs-DA2qXhzb.cjs +0 -1
- package/Tag-DPAGmcMK.cjs +0 -1
- package/Text-BoXuUVVH.js +0 -15
- package/TextArea-C7JZ_pQd.cjs +0 -1
- package/TextArea-XeBCSyzl.js +0 -191
- package/TextField-BgNdhZi_.cjs +0 -1
- package/Toast-AbDA1BOs.cjs +0 -1
- package/ToggleButtonGroup-BFDoj0P6.cjs +0 -1
- package/Tooltip-DeBuBKhS.cjs +0 -1
- package/VisuallyHidden-CLWHbz2n.cjs +0 -1
- package/assets/Tabs.css +0 -1
- package/context-DjwhtgxQ.cjs +0 -1
- package/scrollIntoView-C8doLzDd.cjs +0 -1
- package/useButton-cpNi-fY4.cjs +0 -1
- package/useEvent-DxBxMX2V.cjs +0 -1
- package/useField-CXKYU74k.cjs +0 -1
- package/useFocusRing-CbImDrwF.cjs +0 -1
- package/useFocusRing-XnR3cZjO.js +0 -82
- package/useFocusable-NUVSFcRC.cjs +0 -1
- package/useFormValidation-ClximP89.cjs +0 -1
- package/useHasTabbableChild-DCBTulUQ.cjs +0 -1
- package/useHighlightSelectionDescription-CzYucm61.cjs +0 -1
- package/useHover-DjIHtjGN.js +0 -490
- package/useHover-_mv5J4_q.cjs +0 -1
- package/useLabels-BLOfc6Y-.cjs +0 -1
- package/useLocalizedStringFormatter-BKoxGZf1.js +0 -96
- package/useLocalizedStringFormatter-BsxLt89S.cjs +0 -1
- package/useLocalizedStringFormatter-D3JQyjb4.js +0 -21
- package/useLocalizedStringFormatter-ioacM-Yt.cjs +0 -1
- package/usePress-0AjDbW9R.cjs +0 -7
- package/useTextField--czJtyNd.cjs +0 -1
- package/utils-BNtZbAib.cjs +0 -1
- package/utils-DIMfEPAt.js +0 -308
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { d as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
1
|
+
import { m as oe, b as O, $ as Ee, f as me, g as Ke, e as p, d, n as q, h as V } from "./utils-CoCR_Fce.js";
|
|
2
|
+
import { d as Se, e as xe } from "./useFocusable-ChPA2Jc7.js";
|
|
3
|
+
import { j as we, i as ke, h as G, k as _e, l as le, m as Oe, n as J } from "./useHover-DQvJ3Y-W.js";
|
|
4
|
+
import fe, { useMemo as ce, createContext as Me, useContext as ue, useState as Ce, useRef as Ie, useEffect as Q } from "react";
|
|
5
|
+
import { d as k, a as de, e as Ae } from "./mergeProps-C1U1OIeJ.js";
|
|
5
6
|
import { flushSync as Le } from "react-dom";
|
|
6
7
|
const pe = /* @__PURE__ */ Me({
|
|
7
8
|
isNative: !0,
|
|
8
9
|
open: De,
|
|
9
10
|
useHref: (t) => t
|
|
10
11
|
});
|
|
11
|
-
function
|
|
12
|
-
let { children: n, navigate:
|
|
12
|
+
function tt(t) {
|
|
13
|
+
let { children: n, navigate: i, useHref: o } = t, c = ce(() => ({
|
|
13
14
|
isNative: !1,
|
|
14
15
|
open: (g, y, $, P) => {
|
|
15
16
|
ge(g, (b) => {
|
|
16
|
-
Ue(b, y) ?
|
|
17
|
+
Ue(b, y) ? i($, P) : M(b, y);
|
|
17
18
|
});
|
|
18
19
|
},
|
|
19
20
|
useHref: o || ((g) => g)
|
|
20
21
|
}), [
|
|
21
|
-
|
|
22
|
+
i,
|
|
22
23
|
o
|
|
23
24
|
]);
|
|
24
25
|
return /* @__PURE__ */ fe.createElement(pe.Provider, {
|
|
@@ -29,17 +30,17 @@ function ve() {
|
|
|
29
30
|
return ue(pe);
|
|
30
31
|
}
|
|
31
32
|
function Ue(t, n) {
|
|
32
|
-
let
|
|
33
|
-
return (!
|
|
33
|
+
let i = t.getAttribute("target");
|
|
34
|
+
return (!i || i === "_self") && t.origin === location.origin && !t.hasAttribute("download") && !n.metaKey && // open in new tab (mac)
|
|
34
35
|
!n.ctrlKey && // open in new tab (windows)
|
|
35
36
|
!n.altKey && // download
|
|
36
37
|
!n.shiftKey;
|
|
37
38
|
}
|
|
38
|
-
function M(t, n,
|
|
39
|
+
function M(t, n, i = !0) {
|
|
39
40
|
var o, c;
|
|
40
41
|
let { metaKey: g, ctrlKey: y, altKey: $, shiftKey: P } = n;
|
|
41
|
-
|
|
42
|
-
let b =
|
|
42
|
+
we() && (!((c = window.event) === null || c === void 0 || (o = c.type) === null || o === void 0) && o.startsWith("key")) && t.target === "_blank" && (G() ? g = !0 : y = !0);
|
|
43
|
+
let b = ke() && G() && !_e() && process.env.NODE_ENV !== "test" ? new KeyboardEvent("keydown", {
|
|
43
44
|
keyIdentifier: "Enter",
|
|
44
45
|
metaKey: g,
|
|
45
46
|
ctrlKey: y,
|
|
@@ -53,23 +54,23 @@ function M(t, n, a = !0) {
|
|
|
53
54
|
bubbles: !0,
|
|
54
55
|
cancelable: !0
|
|
55
56
|
});
|
|
56
|
-
M.isOpening =
|
|
57
|
+
M.isOpening = i, oe(t), t.dispatchEvent(b), M.isOpening = !1;
|
|
57
58
|
}
|
|
58
59
|
M.isOpening = !1;
|
|
59
60
|
function ge(t, n) {
|
|
60
61
|
if (t instanceof HTMLAnchorElement) n(t);
|
|
61
62
|
else if (t.hasAttribute("data-href")) {
|
|
62
|
-
let
|
|
63
|
-
|
|
63
|
+
let i = document.createElement("a");
|
|
64
|
+
i.href = t.getAttribute("data-href"), t.hasAttribute("data-target") && (i.target = t.getAttribute("data-target")), t.hasAttribute("data-rel") && (i.rel = t.getAttribute("data-rel")), t.hasAttribute("data-download") && (i.download = t.getAttribute("data-download")), t.hasAttribute("data-ping") && (i.ping = t.getAttribute("data-ping")), t.hasAttribute("data-referrer-policy") && (i.referrerPolicy = t.getAttribute("data-referrer-policy")), t.appendChild(i), n(i), t.removeChild(i);
|
|
64
65
|
}
|
|
65
66
|
}
|
|
66
67
|
function De(t, n) {
|
|
67
|
-
ge(t, (
|
|
68
|
+
ge(t, (i) => M(i, n));
|
|
68
69
|
}
|
|
69
|
-
function
|
|
70
|
+
function rt(t) {
|
|
70
71
|
let n = ve();
|
|
71
|
-
var
|
|
72
|
-
const o = n.useHref((
|
|
72
|
+
var i;
|
|
73
|
+
const o = n.useHref((i = t.href) !== null && i !== void 0 ? i : "");
|
|
73
74
|
return {
|
|
74
75
|
"data-href": t.href ? o : void 0,
|
|
75
76
|
"data-target": t.target,
|
|
@@ -79,10 +80,10 @@ function tt(t) {
|
|
|
79
80
|
"data-referrer-policy": t.referrerPolicy
|
|
80
81
|
};
|
|
81
82
|
}
|
|
82
|
-
function
|
|
83
|
+
function nt(t) {
|
|
83
84
|
let n = ve();
|
|
84
|
-
var
|
|
85
|
-
const o = n.useHref((
|
|
85
|
+
var i;
|
|
86
|
+
const o = n.useHref((i = t == null ? void 0 : t.href) !== null && i !== void 0 ? i : "");
|
|
86
87
|
return {
|
|
87
88
|
href: t != null && t.href ? o : void 0,
|
|
88
89
|
target: t == null ? void 0 : t.target,
|
|
@@ -92,14 +93,14 @@ function rt(t) {
|
|
|
92
93
|
referrerPolicy: t == null ? void 0 : t.referrerPolicy
|
|
93
94
|
};
|
|
94
95
|
}
|
|
95
|
-
let
|
|
96
|
+
let I = "default", j = "", Y = /* @__PURE__ */ new WeakMap();
|
|
96
97
|
function Z(t) {
|
|
97
98
|
if (le()) {
|
|
98
|
-
if (
|
|
99
|
+
if (I === "default") {
|
|
99
100
|
const n = O(t);
|
|
100
|
-
|
|
101
|
+
j = n.documentElement.style.webkitUserSelect, n.documentElement.style.webkitUserSelect = "none";
|
|
101
102
|
}
|
|
102
|
-
|
|
103
|
+
I = "disabled";
|
|
103
104
|
} else if (t instanceof HTMLElement || t instanceof SVGElement) {
|
|
104
105
|
let n = "userSelect" in t.style ? "userSelect" : "webkitUserSelect";
|
|
105
106
|
Y.set(t, t.style[n]), t.style[n] = "none";
|
|
@@ -107,18 +108,18 @@ function Z(t) {
|
|
|
107
108
|
}
|
|
108
109
|
function F(t) {
|
|
109
110
|
if (le()) {
|
|
110
|
-
if (
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
if (
|
|
111
|
+
if (I !== "disabled") return;
|
|
112
|
+
I = "restoring", setTimeout(() => {
|
|
113
|
+
Se(() => {
|
|
114
|
+
if (I === "restoring") {
|
|
114
115
|
const n = O(t);
|
|
115
|
-
n.documentElement.style.webkitUserSelect === "none" && (n.documentElement.style.webkitUserSelect =
|
|
116
|
+
n.documentElement.style.webkitUserSelect === "none" && (n.documentElement.style.webkitUserSelect = j || ""), j = "", I = "default";
|
|
116
117
|
}
|
|
117
118
|
});
|
|
118
119
|
}, 300);
|
|
119
120
|
} else if ((t instanceof HTMLElement || t instanceof SVGElement) && t && Y.has(t)) {
|
|
120
|
-
let n = Y.get(t),
|
|
121
|
-
t.style[
|
|
121
|
+
let n = Y.get(t), i = "userSelect" in t.style ? "userSelect" : "webkitUserSelect";
|
|
122
|
+
t.style[i] === "none" && (t.style[i] = n), t.getAttribute("style") === "" && t.removeAttribute("style"), Y.delete(t);
|
|
122
123
|
}
|
|
123
124
|
}
|
|
124
125
|
const ye = fe.createContext({
|
|
@@ -129,40 +130,40 @@ ye.displayName = "PressResponderContext";
|
|
|
129
130
|
function He(t, n) {
|
|
130
131
|
return n.get ? n.get.call(t) : n.value;
|
|
131
132
|
}
|
|
132
|
-
function $e(t, n,
|
|
133
|
-
if (!n.has(t)) throw new TypeError("attempted to " +
|
|
133
|
+
function $e(t, n, i) {
|
|
134
|
+
if (!n.has(t)) throw new TypeError("attempted to " + i + " private field on non-instance");
|
|
134
135
|
return n.get(t);
|
|
135
136
|
}
|
|
136
137
|
function Ye(t, n) {
|
|
137
|
-
var
|
|
138
|
-
return He(t,
|
|
138
|
+
var i = $e(t, n, "get");
|
|
139
|
+
return He(t, i);
|
|
139
140
|
}
|
|
140
141
|
function Xe(t, n) {
|
|
141
142
|
if (n.has(t))
|
|
142
143
|
throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
143
144
|
}
|
|
144
|
-
function Re(t, n,
|
|
145
|
-
Xe(t, n), n.set(t,
|
|
145
|
+
function Re(t, n, i) {
|
|
146
|
+
Xe(t, n), n.set(t, i);
|
|
146
147
|
}
|
|
147
|
-
function Ne(t, n,
|
|
148
|
-
if (n.set) n.set.call(t,
|
|
148
|
+
function Ne(t, n, i) {
|
|
149
|
+
if (n.set) n.set.call(t, i);
|
|
149
150
|
else {
|
|
150
151
|
if (!n.writable)
|
|
151
152
|
throw new TypeError("attempted to set read only private field");
|
|
152
|
-
n.value =
|
|
153
|
+
n.value = i;
|
|
153
154
|
}
|
|
154
155
|
}
|
|
155
|
-
function ee(t, n,
|
|
156
|
+
function ee(t, n, i) {
|
|
156
157
|
var o = $e(t, n, "set");
|
|
157
|
-
return Ne(t, o,
|
|
158
|
+
return Ne(t, o, i), i;
|
|
158
159
|
}
|
|
159
160
|
function Fe(t) {
|
|
160
161
|
let n = ue(ye);
|
|
161
162
|
if (n) {
|
|
162
|
-
let { register:
|
|
163
|
-
t = de(o, t),
|
|
163
|
+
let { register: i, ...o } = n;
|
|
164
|
+
t = de(o, t), i();
|
|
164
165
|
}
|
|
165
|
-
return
|
|
166
|
+
return xe(n, t.ref), t;
|
|
166
167
|
}
|
|
167
168
|
var D = /* @__PURE__ */ new WeakMap();
|
|
168
169
|
class H {
|
|
@@ -172,7 +173,7 @@ class H {
|
|
|
172
173
|
get shouldStopPropagation() {
|
|
173
174
|
return Ye(this, D);
|
|
174
175
|
}
|
|
175
|
-
constructor(n,
|
|
176
|
+
constructor(n, i, o, c) {
|
|
176
177
|
Re(this, D, {
|
|
177
178
|
writable: !0,
|
|
178
179
|
value: void 0
|
|
@@ -180,13 +181,13 @@ class H {
|
|
|
180
181
|
var g;
|
|
181
182
|
let y = (g = c == null ? void 0 : c.target) !== null && g !== void 0 ? g : o.currentTarget;
|
|
182
183
|
const $ = y == null ? void 0 : y.getBoundingClientRect();
|
|
183
|
-
let P, b = 0,
|
|
184
|
-
o.clientX != null && o.clientY != null && (
|
|
184
|
+
let P, b = 0, A, T = null;
|
|
185
|
+
o.clientX != null && o.clientY != null && (A = o.clientX, T = o.clientY), $ && (A != null && T != null ? (P = A - $.left, b = T - $.top) : (P = $.width / 2, b = $.height / 2)), this.type = n, this.pointerType = i, this.target = o.currentTarget, this.shiftKey = o.shiftKey, this.metaKey = o.metaKey, this.ctrlKey = o.ctrlKey, this.altKey = o.altKey, this.x = P, this.y = b;
|
|
185
186
|
}
|
|
186
187
|
}
|
|
187
188
|
const te = Symbol("linkClicked"), re = "react-aria-pressable-style", ne = "data-react-aria-pressable";
|
|
188
|
-
function
|
|
189
|
-
let { onPress: n, onPressChange:
|
|
189
|
+
function it(t) {
|
|
190
|
+
let { onPress: n, onPressChange: i, onPressStart: o, onPressEnd: c, onPressUp: g, onClick: y, isDisabled: $, isPressed: P, preventFocusOnPress: b, shouldCancelOnPointerExit: A, allowTextSelectionOnPress: T, ref: X, ...Te } = Fe(t), [he, W] = Ce(!1), C = Ie({
|
|
190
191
|
isPressed: !1,
|
|
191
192
|
ignoreEmulatedMouseEvents: !1,
|
|
192
193
|
didFirePressStart: !1,
|
|
@@ -196,36 +197,36 @@ function nt(t) {
|
|
|
196
197
|
isOverTarget: !1,
|
|
197
198
|
pointerType: null,
|
|
198
199
|
disposables: []
|
|
199
|
-
}), { addGlobalListener: x, removeAllGlobalListeners: L } =
|
|
200
|
+
}), { addGlobalListener: x, removeAllGlobalListeners: L } = Ee(), m = k((e, s) => {
|
|
200
201
|
let v = C.current;
|
|
201
202
|
if ($ || v.didFirePressStart) return !1;
|
|
202
|
-
let
|
|
203
|
+
let a = !0;
|
|
203
204
|
if (v.isTriggeringEvent = !0, o) {
|
|
204
205
|
let u = new H("pressstart", s, e);
|
|
205
|
-
o(u),
|
|
206
|
+
o(u), a = u.shouldStopPropagation;
|
|
206
207
|
}
|
|
207
|
-
return
|
|
208
|
+
return i && i(!0), v.isTriggeringEvent = !1, v.didFirePressStart = !0, W(!0), a;
|
|
208
209
|
}), E = k((e, s, v = !0) => {
|
|
209
|
-
let
|
|
210
|
-
if (!
|
|
211
|
-
|
|
210
|
+
let a = C.current;
|
|
211
|
+
if (!a.didFirePressStart) return !1;
|
|
212
|
+
a.didFirePressStart = !1, a.isTriggeringEvent = !0;
|
|
212
213
|
let u = !0;
|
|
213
214
|
if (c) {
|
|
214
215
|
let r = new H("pressend", s, e);
|
|
215
216
|
c(r), u = r.shouldStopPropagation;
|
|
216
217
|
}
|
|
217
|
-
if (
|
|
218
|
+
if (i && i(!1), W(!1), n && v && !$) {
|
|
218
219
|
let r = new H("press", s, e);
|
|
219
220
|
n(r), u && (u = r.shouldStopPropagation);
|
|
220
221
|
}
|
|
221
|
-
return
|
|
222
|
+
return a.isTriggeringEvent = !1, u;
|
|
222
223
|
}), w = k((e, s) => {
|
|
223
224
|
let v = C.current;
|
|
224
225
|
if ($) return !1;
|
|
225
226
|
if (g) {
|
|
226
227
|
v.isTriggeringEvent = !0;
|
|
227
|
-
let
|
|
228
|
-
return g(
|
|
228
|
+
let a = new H("pressup", s, e);
|
|
229
|
+
return g(a), v.isTriggeringEvent = !1, a.shouldStopPropagation;
|
|
229
230
|
}
|
|
230
231
|
return !0;
|
|
231
232
|
}), h = k((e) => {
|
|
@@ -236,52 +237,52 @@ function nt(t) {
|
|
|
236
237
|
s.disposables = [];
|
|
237
238
|
}
|
|
238
239
|
}), U = k((e) => {
|
|
239
|
-
|
|
240
|
+
A && h(e);
|
|
240
241
|
}), R = k((e) => {
|
|
241
242
|
y == null || y(e);
|
|
242
243
|
}), N = k((e, s) => {
|
|
243
244
|
if (y) {
|
|
244
245
|
let v = new MouseEvent("click", e);
|
|
245
|
-
|
|
246
|
+
me(v, s), y(Ke(v));
|
|
246
247
|
}
|
|
247
248
|
}), Pe = ce(() => {
|
|
248
249
|
let e = C.current, s = {
|
|
249
|
-
onKeyDown(
|
|
250
|
-
if (B(
|
|
250
|
+
onKeyDown(a) {
|
|
251
|
+
if (B(a.nativeEvent, a.currentTarget) && p(a.currentTarget, d(a.nativeEvent))) {
|
|
251
252
|
var u;
|
|
252
|
-
se(d(
|
|
253
|
+
se(d(a.nativeEvent), a.key) && a.preventDefault();
|
|
253
254
|
let r = !0;
|
|
254
|
-
if (!e.isPressed && !
|
|
255
|
-
e.target =
|
|
256
|
-
let l =
|
|
255
|
+
if (!e.isPressed && !a.repeat) {
|
|
256
|
+
e.target = a.currentTarget, e.isPressed = !0, e.pointerType = "keyboard", r = m(a, "keyboard");
|
|
257
|
+
let l = a.currentTarget, f = (K) => {
|
|
257
258
|
B(K, l) && !K.repeat && p(l, d(K)) && e.target && w(_(e.target, K), "keyboard");
|
|
258
259
|
};
|
|
259
|
-
x(O(
|
|
260
|
+
x(O(a.currentTarget), "keyup", Ae(f, v), !0);
|
|
260
261
|
}
|
|
261
|
-
r &&
|
|
262
|
-
} else
|
|
262
|
+
r && a.stopPropagation(), a.metaKey && G() && ((u = e.metaKeyEvents) === null || u === void 0 || u.set(a.key, a.nativeEvent));
|
|
263
|
+
} else a.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());
|
|
263
264
|
},
|
|
264
|
-
onClick(
|
|
265
|
-
if (!(
|
|
265
|
+
onClick(a) {
|
|
266
|
+
if (!(a && !p(a.currentTarget, d(a.nativeEvent))) && a && a.button === 0 && !e.isTriggeringEvent && !M.isOpening) {
|
|
266
267
|
let u = !0;
|
|
267
|
-
if ($ &&
|
|
268
|
-
let r = m(
|
|
269
|
-
R(
|
|
268
|
+
if ($ && a.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || J(a.nativeEvent))) {
|
|
269
|
+
let r = m(a, "virtual"), l = w(a, "virtual"), f = E(a, "virtual");
|
|
270
|
+
R(a), u = r && l && f;
|
|
270
271
|
} else if (e.isPressed && e.pointerType !== "keyboard") {
|
|
271
|
-
let r = e.pointerType ||
|
|
272
|
-
u = l && f, e.isOverTarget = !1, R(
|
|
272
|
+
let r = e.pointerType || a.nativeEvent.pointerType || "virtual", l = w(_(a.currentTarget, a), r), f = E(_(a.currentTarget, a), r, !0);
|
|
273
|
+
u = l && f, e.isOverTarget = !1, R(a), h(a);
|
|
273
274
|
}
|
|
274
|
-
e.ignoreEmulatedMouseEvents = !1, u &&
|
|
275
|
+
e.ignoreEmulatedMouseEvents = !1, u && a.stopPropagation();
|
|
275
276
|
}
|
|
276
277
|
}
|
|
277
|
-
}, v = (
|
|
278
|
+
}, v = (a) => {
|
|
278
279
|
var u;
|
|
279
|
-
if (e.isPressed && e.target && B(
|
|
280
|
+
if (e.isPressed && e.target && B(a, e.target)) {
|
|
280
281
|
var r;
|
|
281
|
-
se(d(
|
|
282
|
-
let f = d(
|
|
283
|
-
E(_(e.target,
|
|
284
|
-
} else if (
|
|
282
|
+
se(d(a), a.key) && a.preventDefault();
|
|
283
|
+
let f = d(a), K = p(e.target, d(a));
|
|
284
|
+
E(_(e.target, a), "keyboard", K), K && N(a, e.target), L(), a.key !== "Enter" && z(e.target) && p(e.target, f) && !a[te] && (a[te] = !0, M(e.target, a, !1)), e.isPressed = !1, (r = e.metaKeyEvents) === null || r === void 0 || r.delete(a.key);
|
|
285
|
+
} else if (a.key === "Meta" && (!((u = e.metaKeyEvents) === null || u === void 0) && u.size)) {
|
|
285
286
|
var l;
|
|
286
287
|
let f = e.metaKeyEvents;
|
|
287
288
|
e.metaKeyEvents = void 0;
|
|
@@ -291,7 +292,7 @@ function nt(t) {
|
|
|
291
292
|
if (typeof PointerEvent < "u") {
|
|
292
293
|
s.onPointerDown = (r) => {
|
|
293
294
|
if (r.button !== 0 || !p(r.currentTarget, d(r.nativeEvent))) return;
|
|
294
|
-
if (
|
|
295
|
+
if (Oe(r.nativeEvent)) {
|
|
295
296
|
e.pointerType = "virtual";
|
|
296
297
|
return;
|
|
297
298
|
}
|
|
@@ -300,7 +301,7 @@ function nt(t) {
|
|
|
300
301
|
if (!e.isPressed) {
|
|
301
302
|
e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = r.pointerId, e.target = r.currentTarget, T || Z(e.target), l = m(r, e.pointerType);
|
|
302
303
|
let f = d(r.nativeEvent);
|
|
303
|
-
"releasePointerCapture" in f && f.releasePointerCapture(r.pointerId), x(O(r.currentTarget), "pointerup",
|
|
304
|
+
"releasePointerCapture" in f && f.releasePointerCapture(r.pointerId), x(O(r.currentTarget), "pointerup", a, !1), x(O(r.currentTarget), "pointercancel", u, !1);
|
|
304
305
|
}
|
|
305
306
|
l && r.stopPropagation();
|
|
306
307
|
}, s.onMouseDown = (r) => {
|
|
@@ -318,7 +319,7 @@ function nt(t) {
|
|
|
318
319
|
}, s.onPointerLeave = (r) => {
|
|
319
320
|
r.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, E(_(e.target, r), e.pointerType, !1), U(r));
|
|
320
321
|
};
|
|
321
|
-
let
|
|
322
|
+
let a = (r) => {
|
|
322
323
|
if (r.pointerId === e.activePointerId && e.isPressed && r.button === 0 && e.target) {
|
|
323
324
|
if (p(e.target, d(r)) && e.pointerType != null) {
|
|
324
325
|
let l = !1, f = setTimeout(() => {
|
|
@@ -345,7 +346,7 @@ function nt(t) {
|
|
|
345
346
|
let f = q(r.target);
|
|
346
347
|
f && e.disposables.push(f);
|
|
347
348
|
}
|
|
348
|
-
x(O(r.currentTarget), "mouseup",
|
|
349
|
+
x(O(r.currentTarget), "mouseup", a, !1);
|
|
349
350
|
}, s.onMouseEnter = (r) => {
|
|
350
351
|
if (!p(r.currentTarget, d(r.nativeEvent))) return;
|
|
351
352
|
let l = !0;
|
|
@@ -357,7 +358,7 @@ function nt(t) {
|
|
|
357
358
|
}, s.onMouseUp = (r) => {
|
|
358
359
|
p(r.currentTarget, d(r.nativeEvent)) && !e.ignoreEmulatedMouseEvents && r.button === 0 && !e.isPressed && w(r, e.pointerType || "mouse");
|
|
359
360
|
};
|
|
360
|
-
let
|
|
361
|
+
let a = (r) => {
|
|
361
362
|
if (r.button === 0) {
|
|
362
363
|
if (e.ignoreEmulatedMouseEvents) {
|
|
363
364
|
e.ignoreEmulatedMouseEvents = !1;
|
|
@@ -370,23 +371,23 @@ function nt(t) {
|
|
|
370
371
|
if (!p(r.currentTarget, d(r.nativeEvent))) return;
|
|
371
372
|
let l = Be(r.nativeEvent);
|
|
372
373
|
if (!l) return;
|
|
373
|
-
e.activePointerId = l.identifier, e.ignoreEmulatedMouseEvents = !0, e.isOverTarget = !0, e.isPressed = !0, e.target = r.currentTarget, e.pointerType = "touch", T || Z(e.target), m(S(e.target, r), e.pointerType) && r.stopPropagation(), x(
|
|
374
|
+
e.activePointerId = l.identifier, e.ignoreEmulatedMouseEvents = !0, e.isOverTarget = !0, e.isPressed = !0, e.target = r.currentTarget, e.pointerType = "touch", T || Z(e.target), m(S(e.target, r), e.pointerType) && r.stopPropagation(), x(V(r.currentTarget), "scroll", u, !0);
|
|
374
375
|
}, s.onTouchMove = (r) => {
|
|
375
376
|
if (!p(r.currentTarget, d(r.nativeEvent))) return;
|
|
376
377
|
if (!e.isPressed) {
|
|
377
378
|
r.stopPropagation();
|
|
378
379
|
return;
|
|
379
380
|
}
|
|
380
|
-
let l =
|
|
381
|
-
l &&
|
|
381
|
+
let l = ie(r.nativeEvent, e.activePointerId), f = !0;
|
|
382
|
+
l && ae(l, r.currentTarget) ? !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, f = m(S(e.target, r), e.pointerType)) : e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, f = E(S(e.target, r), e.pointerType, !1), U(S(e.target, r))), f && r.stopPropagation();
|
|
382
383
|
}, s.onTouchEnd = (r) => {
|
|
383
384
|
if (!p(r.currentTarget, d(r.nativeEvent))) return;
|
|
384
385
|
if (!e.isPressed) {
|
|
385
386
|
r.stopPropagation();
|
|
386
387
|
return;
|
|
387
388
|
}
|
|
388
|
-
let l =
|
|
389
|
-
l &&
|
|
389
|
+
let l = ie(r.nativeEvent, e.activePointerId), f = !0;
|
|
390
|
+
l && ae(l, r.currentTarget) && e.pointerType != null ? (w(S(e.target, r), e.pointerType), f = E(S(e.target, r), e.pointerType), N(r.nativeEvent, e.target)) : e.isOverTarget && e.pointerType != null && (f = E(S(e.target, r), e.pointerType, !1)), f && r.stopPropagation(), e.isPressed = !1, e.activePointerId = null, e.isOverTarget = !1, e.ignoreEmulatedMouseEvents = !0, e.target && !T && F(e.target), L();
|
|
390
391
|
}, s.onTouchCancel = (r) => {
|
|
391
392
|
p(r.currentTarget, d(r.nativeEvent)) && (r.stopPropagation(), e.isPressed && h(S(e.target, r)));
|
|
392
393
|
};
|
|
@@ -449,73 +450,73 @@ function nt(t) {
|
|
|
449
450
|
})
|
|
450
451
|
};
|
|
451
452
|
}
|
|
452
|
-
function
|
|
453
|
+
function z(t) {
|
|
453
454
|
return t.tagName === "A" && t.hasAttribute("href");
|
|
454
455
|
}
|
|
455
456
|
function B(t, n) {
|
|
456
|
-
const { key:
|
|
457
|
-
return (
|
|
458
|
-
!((g === "link" || !g &&
|
|
457
|
+
const { key: i, code: o } = t, c = n, g = c.getAttribute("role");
|
|
458
|
+
return (i === "Enter" || i === " " || i === "Spacebar" || o === "Space") && !(c instanceof V(c).HTMLInputElement && !be(c, i) || c instanceof V(c).HTMLTextAreaElement || c.isContentEditable) && // Links should only trigger with Enter key
|
|
459
|
+
!((g === "link" || !g && z(c)) && i !== "Enter");
|
|
459
460
|
}
|
|
460
461
|
function Be(t) {
|
|
461
462
|
const { targetTouches: n } = t;
|
|
462
463
|
return n.length > 0 ? n[0] : null;
|
|
463
464
|
}
|
|
464
|
-
function
|
|
465
|
-
const
|
|
466
|
-
for (let o = 0; o <
|
|
467
|
-
const c =
|
|
465
|
+
function ie(t, n) {
|
|
466
|
+
const i = t.changedTouches;
|
|
467
|
+
for (let o = 0; o < i.length; o++) {
|
|
468
|
+
const c = i[o];
|
|
468
469
|
if (c.identifier === n) return c;
|
|
469
470
|
}
|
|
470
471
|
return null;
|
|
471
472
|
}
|
|
472
473
|
function S(t, n) {
|
|
473
|
-
let
|
|
474
|
-
return n.targetTouches && n.targetTouches.length === 1 && (
|
|
474
|
+
let i = 0, o = 0;
|
|
475
|
+
return n.targetTouches && n.targetTouches.length === 1 && (i = n.targetTouches[0].clientX, o = n.targetTouches[0].clientY), {
|
|
475
476
|
currentTarget: t,
|
|
476
477
|
shiftKey: n.shiftKey,
|
|
477
478
|
ctrlKey: n.ctrlKey,
|
|
478
479
|
metaKey: n.metaKey,
|
|
479
480
|
altKey: n.altKey,
|
|
480
|
-
clientX:
|
|
481
|
+
clientX: i,
|
|
481
482
|
clientY: o
|
|
482
483
|
};
|
|
483
484
|
}
|
|
484
485
|
function _(t, n) {
|
|
485
|
-
let
|
|
486
|
+
let i = n.clientX, o = n.clientY;
|
|
486
487
|
return {
|
|
487
488
|
currentTarget: t,
|
|
488
489
|
shiftKey: n.shiftKey,
|
|
489
490
|
ctrlKey: n.ctrlKey,
|
|
490
491
|
metaKey: n.metaKey,
|
|
491
492
|
altKey: n.altKey,
|
|
492
|
-
clientX:
|
|
493
|
+
clientX: i,
|
|
493
494
|
clientY: o
|
|
494
495
|
};
|
|
495
496
|
}
|
|
496
497
|
function Ve(t) {
|
|
497
|
-
let n = 0,
|
|
498
|
-
return t.width !== void 0 ? n = t.width / 2 : t.radiusX !== void 0 && (n = t.radiusX), t.height !== void 0 ?
|
|
499
|
-
top: t.clientY -
|
|
498
|
+
let n = 0, i = 0;
|
|
499
|
+
return t.width !== void 0 ? n = t.width / 2 : t.radiusX !== void 0 && (n = t.radiusX), t.height !== void 0 ? i = t.height / 2 : t.radiusY !== void 0 && (i = t.radiusY), {
|
|
500
|
+
top: t.clientY - i,
|
|
500
501
|
right: t.clientX + n,
|
|
501
|
-
bottom: t.clientY +
|
|
502
|
+
bottom: t.clientY + i,
|
|
502
503
|
left: t.clientX - n
|
|
503
504
|
};
|
|
504
505
|
}
|
|
505
506
|
function Ge(t, n) {
|
|
506
507
|
return !(t.left > n.right || n.left > t.right || t.top > n.bottom || n.top > t.bottom);
|
|
507
508
|
}
|
|
508
|
-
function
|
|
509
|
-
let
|
|
510
|
-
return Ge(
|
|
509
|
+
function ae(t, n) {
|
|
510
|
+
let i = n.getBoundingClientRect(), o = Ve(t);
|
|
511
|
+
return Ge(i, o);
|
|
511
512
|
}
|
|
512
|
-
function
|
|
513
|
-
return t instanceof HTMLInputElement ? !1 : t instanceof HTMLButtonElement ? t.type !== "submit" && t.type !== "reset" : !
|
|
513
|
+
function je(t) {
|
|
514
|
+
return t instanceof HTMLInputElement ? !1 : t instanceof HTMLButtonElement ? t.type !== "submit" && t.type !== "reset" : !z(t);
|
|
514
515
|
}
|
|
515
516
|
function se(t, n) {
|
|
516
|
-
return t instanceof HTMLInputElement ? !be(t, n) :
|
|
517
|
+
return t instanceof HTMLInputElement ? !be(t, n) : je(t);
|
|
517
518
|
}
|
|
518
|
-
const
|
|
519
|
+
const ze = /* @__PURE__ */ new Set([
|
|
519
520
|
"checkbox",
|
|
520
521
|
"radio",
|
|
521
522
|
"range",
|
|
@@ -527,16 +528,16 @@ const We = /* @__PURE__ */ new Set([
|
|
|
527
528
|
"reset"
|
|
528
529
|
]);
|
|
529
530
|
function be(t, n) {
|
|
530
|
-
return t.type === "checkbox" || t.type === "radio" ? n === " " :
|
|
531
|
+
return t.type === "checkbox" || t.type === "radio" ? n === " " : ze.has(t.type);
|
|
531
532
|
}
|
|
532
533
|
export {
|
|
533
|
-
|
|
534
|
+
tt as $,
|
|
534
535
|
Re as _,
|
|
535
|
-
|
|
536
|
+
it as a,
|
|
536
537
|
ve as b,
|
|
537
|
-
|
|
538
|
+
nt as c,
|
|
538
539
|
Ue as d,
|
|
539
540
|
M as e,
|
|
540
|
-
|
|
541
|
+
rt as f,
|
|
541
542
|
ye as g
|
|
542
543
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const f=require("./useListState-
|
|
1
|
+
"use strict";const f=require("./useListState-DymkJGDF.cjs"),y=require("./useControlledState-D0L6S_5r.cjs"),b=require("react");function K(l){var t;let[e,a]=y.$458b0a5536c1a7cf$export$40bfa8c7b0832715(l.selectedKey,(t=l.defaultSelectedKey)!==null&&t!==void 0?t:null,l.onSelectionChange),d=b.useMemo(()=>e!=null?[e]:[],[e]),{collection:o,disabledKeys:i,selectionManager:u}=f.$e72dd72e1c76a225$export$2f645645f7bca764({...l,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:d,onSelectionChange:s=>{if(s==="all")return;var n;let c=(n=s.values().next().value)!==null&&n!==void 0?n:null;c===e&&l.onSelectionChange&&l.onSelectionChange(c),a(c)}}),r=e!=null?o.getItem(e):null;return{collection:o,disabledKeys:i,selectionManager:u,selectedKey:e,setSelectedKey:a,selectedItem:r}}exports.$a0d645289fe9b86b$export$e7f05e985daf4b5f=K;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { h as y } from "./utils-CoCR_Fce.js";
|
|
2
|
+
import { a as x } from "./mergeProps-C1U1OIeJ.js";
|
|
3
3
|
import { $ as E } from "./filterDOMProps-D6KHYVBX.js";
|
|
4
|
-
import { $ as I, a as M, b as D } from "./useFormValidation-
|
|
4
|
+
import { $ as I, a as M, b as D } from "./useFormValidation-BzzruZKm.js";
|
|
5
5
|
import { $ as L } from "./useControlledState-u436Wbp1.js";
|
|
6
6
|
import O, { useEffect as R } from "react";
|
|
7
|
-
import { $ as S } from "./useField-
|
|
8
|
-
import { $ as q } from "./useFocusable-
|
|
7
|
+
import { $ as S } from "./useField-BEBXv5Mh.js";
|
|
8
|
+
import { $ as q } from "./useFocusable-ChPA2Jc7.js";
|
|
9
9
|
function _(e, a) {
|
|
10
10
|
let { inputElementType: u = "input", isDisabled: c = !1, isRequired: o = !1, isReadOnly: f = !1, type: m = "text", validationBehavior: r = "aria" } = e, [i, l] = L(e.value, e.defaultValue || "", e.onChange), { focusableProps: $ } = q(e, a), d = I({
|
|
11
11
|
...e,
|
|
@@ -17,12 +17,12 @@ function _(e, a) {
|
|
|
17
17
|
}), g = E(e, {
|
|
18
18
|
labelable: !0
|
|
19
19
|
});
|
|
20
|
-
const
|
|
20
|
+
const h = {
|
|
21
21
|
type: m,
|
|
22
22
|
pattern: e.pattern
|
|
23
23
|
};
|
|
24
24
|
return M(a, i, l), D(e, d, a), R(() => {
|
|
25
|
-
if (a.current instanceof
|
|
25
|
+
if (a.current instanceof y(a.current).HTMLTextAreaElement) {
|
|
26
26
|
let t = a.current;
|
|
27
27
|
Object.defineProperty(t, "defaultValue", {
|
|
28
28
|
get: () => t.value,
|
|
@@ -35,7 +35,7 @@ function _(e, a) {
|
|
|
35
35
|
a
|
|
36
36
|
]), {
|
|
37
37
|
labelProps: v,
|
|
38
|
-
inputProps: x(g, u === "input" ?
|
|
38
|
+
inputProps: x(g, u === "input" ? h : void 0, {
|
|
39
39
|
disabled: c,
|
|
40
40
|
readOnly: f,
|
|
41
41
|
required: o && r === "native",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const q=require("./utils-Dvdohqm9.cjs"),E=require("./mergeProps-B5KXZAI3.cjs"),I=require("./filterDOMProps-BS2lrgFA.cjs"),o=require("./useFormValidation-BlFGdPZB.cjs"),M=require("./useControlledState-D0L6S_5r.cjs"),c=require("react"),D=require("./useField-D1UkzeaI.cjs"),O=require("./useFocusable-D7I1ujkW.cjs");function S(e,a){let{inputElementType:f="input",isDisabled:$=!1,isRequired:r=!1,isReadOnly:b=!1,type:v="text",validationBehavior:l="aria"}=e,[i,d]=M.$458b0a5536c1a7cf$export$40bfa8c7b0832715(e.value,e.defaultValue||"",e.onChange),{focusableProps:m}=O.$f645667febf57a63$export$4c014de7c8940b4c(e,a),u=o.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:i}),{isInvalid:n,validationErrors:s,validationDetails:C}=u.displayValidation,{labelProps:P,fieldProps:g,descriptionProps:y,errorMessageProps:h}=D.$2baaea4c71418dea$export$294aa081a6c6f55d({...e,isInvalid:n,errorMessage:e.errorMessage||s}),x=I.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{labelable:!0});const p={type:v,pattern:e.pattern};return o.$99facab73266f662$export$5add1d006293d136(a,i,d),o.$e93e671b31057976$export$b8473d3665f3a75a(e,u,a),c.useEffect(()=>{if(a.current instanceof q.$431fbd86ca7dc216$export$f21a1ffae260145a(a.current).HTMLTextAreaElement){let t=a.current;Object.defineProperty(t,"defaultValue",{get:()=>t.value,set:()=>{},configurable:!0})}},[a]),{labelProps:P,inputProps:E.$3ef42575df84b30b$export$9d1611c77c2fe928(x,f==="input"?p:void 0,{disabled:$,readOnly:b,required:r&&l==="native","aria-required":r&&l==="aria"||void 0,"aria-invalid":n||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:i,onChange:t=>d(t.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(c.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...m,...g}),descriptionProps:y,errorMessageProps:h,isInvalid:n,validationErrors:s,validationDetails:C}}exports.$2d73ec29415bd339$export$712718f7aec83d5=S;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LocalizedString, LocalizedStringDictionary, LocalizedStringFormatter, LocalizedStrings } from '@internationalized/string';
|
|
2
|
+
import { I18nProvider } from 'react-aria-components';
|
|
2
3
|
/**
|
|
3
4
|
* Returns a cached LocalizedStringDictionary for the given strings.
|
|
4
5
|
*/
|
|
@@ -9,3 +10,4 @@ export declare function useLocalizedStringDictionary<K extends string = string,
|
|
|
9
10
|
* @param strings - A mapping of languages to localized strings by key.
|
|
10
11
|
*/
|
|
11
12
|
export declare function useLocalizedStringFormatter<K extends string = string, T extends LocalizedString = string>(strings: LocalizedStrings<K, T>, packageName?: string): LocalizedStringFormatter<K, T>;
|
|
13
|
+
export { I18nProvider };
|