@commercetools/nimbus 0.0.9-rc6 → 0.0.9-rc8
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/dist/accordion.d.ts +157 -0
- package/dist/alert.d.ts +173 -0
- package/dist/avatar.d.ts +70 -0
- package/dist/badge.d.ts +102 -0
- package/dist/box.d.ts +14 -0
- package/dist/button.d.ts +38 -0
- package/dist/calendar.d.ts +26 -0
- package/dist/card.d.ts +134 -0
- package/dist/checkbox.d.ts +73 -0
- package/dist/chunks/Button-BxcMDv2N.js +79 -0
- package/dist/chunks/Button-BxcMDv2N.js.map +1 -0
- package/dist/chunks/Button-tPOlfQRd.js +2 -0
- package/dist/chunks/Button-tPOlfQRd.js.map +1 -0
- package/dist/chunks/DateField-CaR3Qeda.js +2564 -0
- package/dist/chunks/DateField-CaR3Qeda.js.map +1 -0
- package/dist/chunks/DateField-D3h6vCMK.js +2 -0
- package/dist/chunks/DateField-D3h6vCMK.js.map +1 -0
- package/dist/chunks/Dialog-5VrXdl86.js +2 -0
- package/dist/chunks/Dialog-5VrXdl86.js.map +1 -0
- package/dist/chunks/Dialog-DJv-Zg_L.js +870 -0
- package/dist/chunks/Dialog-DJv-Zg_L.js.map +1 -0
- package/dist/chunks/FocusScope-CsXy0kJw.js +627 -0
- package/dist/chunks/FocusScope-CsXy0kJw.js.map +1 -0
- package/dist/chunks/FocusScope-Cysx7oI0.js +2 -0
- package/dist/chunks/FocusScope-Cysx7oI0.js.map +1 -0
- package/dist/chunks/Form-DdaqVtM4.js +8 -0
- package/dist/chunks/Form-DdaqVtM4.js.map +1 -0
- package/dist/chunks/Form-DqkTf3LZ.js +2 -0
- package/dist/chunks/Form-DqkTf3LZ.js.map +1 -0
- package/dist/chunks/Group-CTpcJZmt.js +2 -0
- package/dist/chunks/Group-CTpcJZmt.js.map +1 -0
- package/dist/chunks/Group-D3CaEDfr.js +78 -0
- package/dist/chunks/Group-D3CaEDfr.js.map +1 -0
- package/dist/chunks/Hidden-CNJIJ63M.js +2 -0
- package/dist/chunks/Hidden-CNJIJ63M.js.map +1 -0
- package/dist/chunks/Hidden-CeBYiBUb.js +28 -0
- package/dist/chunks/Hidden-CeBYiBUb.js.map +1 -0
- package/dist/chunks/Input-0vJb_5Js.js +43 -0
- package/dist/chunks/Input-0vJb_5Js.js.map +1 -0
- package/dist/chunks/Input-rMOtwpe-.js +2 -0
- package/dist/chunks/Input-rMOtwpe-.js.map +1 -0
- package/dist/chunks/ListBox-Dmkou3Hm.js +18 -0
- package/dist/chunks/ListBox-Dmkou3Hm.js.map +1 -0
- package/dist/chunks/ListBox-Dss9OMcn.js +3004 -0
- package/dist/chunks/ListBox-Dss9OMcn.js.map +1 -0
- package/dist/chunks/LiveAnnouncer-B6177m92.js +52 -0
- package/dist/chunks/LiveAnnouncer-B6177m92.js.map +1 -0
- package/dist/chunks/LiveAnnouncer-CwEWPU8b.js +2 -0
- package/dist/chunks/LiveAnnouncer-CwEWPU8b.js.map +1 -0
- package/dist/chunks/NumberFormatter-DewVDY5w.js +2 -0
- package/dist/chunks/NumberFormatter-DewVDY5w.js.map +1 -0
- package/dist/chunks/NumberFormatter-DgOUVrge.js +120 -0
- package/dist/chunks/NumberFormatter-DgOUVrge.js.map +1 -0
- package/dist/chunks/OverlayArrow-Bs2caVoG.js +2 -0
- package/dist/chunks/OverlayArrow-Bs2caVoG.js.map +1 -0
- package/dist/chunks/OverlayArrow-qjQZbu8u.js +479 -0
- package/dist/chunks/OverlayArrow-qjQZbu8u.js.map +1 -0
- package/dist/chunks/RSPContexts-AkhSBHGO.js +6 -0
- package/dist/chunks/RSPContexts-AkhSBHGO.js.map +1 -0
- package/dist/chunks/RSPContexts-CIAIlAKH.js +2 -0
- package/dist/chunks/RSPContexts-CIAIlAKH.js.map +1 -0
- package/dist/chunks/SSRProvider-DZRLwxPS.js +2 -0
- package/dist/chunks/SSRProvider-DZRLwxPS.js.map +1 -0
- package/dist/chunks/SSRProvider-eIEwc-2s.js +51 -0
- package/dist/chunks/SSRProvider-eIEwc-2s.js.map +1 -0
- package/dist/chunks/Text-BWSfeB9p.js +2 -0
- package/dist/chunks/Text-BWSfeB9p.js.map +1 -0
- package/dist/chunks/Text-DOcU1ycg.js +6 -0
- package/dist/chunks/Text-DOcU1ycg.js.map +1 -0
- package/dist/chunks/TextArea-BfVV0_3h.js +2 -0
- package/dist/chunks/TextArea-BfVV0_3h.js.map +1 -0
- package/dist/chunks/TextArea-Q-NI2yW5.js +42 -0
- package/dist/chunks/TextArea-Q-NI2yW5.js.map +1 -0
- package/dist/chunks/VisuallyHidden-2REhp9RT.js +41 -0
- package/dist/chunks/VisuallyHidden-2REhp9RT.js.map +1 -0
- package/dist/chunks/VisuallyHidden-Cg0LJ1Dh.js +2 -0
- package/dist/chunks/VisuallyHidden-Cg0LJ1Dh.js.map +1 -0
- package/dist/chunks/accordion-D4Qqg89m.js +221 -0
- package/dist/chunks/accordion-D4Qqg89m.js.map +1 -0
- package/dist/chunks/accordion-vrKLW-re.js +2 -0
- package/dist/chunks/accordion-vrKLW-re.js.map +1 -0
- package/dist/chunks/alert-B738R1TJ.js +2 -0
- package/dist/chunks/alert-B738R1TJ.js.map +1 -0
- package/dist/chunks/alert-BX5IPnc_.js +186 -0
- package/dist/chunks/alert-BX5IPnc_.js.map +1 -0
- package/dist/chunks/avatar-85FE_L0r.js +37 -0
- package/dist/chunks/avatar-85FE_L0r.js.map +1 -0
- package/dist/chunks/avatar-Aa0LrRpo.js +2 -0
- package/dist/chunks/avatar-Aa0LrRpo.js.map +1 -0
- package/dist/chunks/avatar.recipe-BSmmqvwQ.js +39 -0
- package/dist/chunks/avatar.recipe-BSmmqvwQ.js.map +1 -0
- package/dist/chunks/avatar.recipe-aGNBZhVF.js +2 -0
- package/dist/chunks/avatar.recipe-aGNBZhVF.js.map +1 -0
- package/dist/chunks/badge-BFbBB0US.js +2 -0
- package/dist/chunks/badge-BFbBB0US.js.map +1 -0
- package/dist/chunks/badge-C1bFH3CB.js +76 -0
- package/dist/chunks/badge-C1bFH3CB.js.map +1 -0
- package/dist/chunks/box-DD4jYgS7.js +11 -0
- package/dist/chunks/box-DD4jYgS7.js.map +1 -0
- package/dist/chunks/box-FU6tRPFs.js +2 -0
- package/dist/chunks/box-FU6tRPFs.js.map +1 -0
- package/dist/chunks/button-BLZONb0_.js +2 -0
- package/dist/chunks/button-BLZONb0_.js.map +1 -0
- package/dist/chunks/button-zSDA7FRw.js +66 -0
- package/dist/chunks/button-zSDA7FRw.js.map +1 -0
- package/dist/chunks/button.recipe-DHk13lGU.js +2 -0
- package/dist/chunks/button.recipe-DHk13lGU.js.map +1 -0
- package/dist/chunks/button.recipe-DzOS_Bqm.js +191 -0
- package/dist/chunks/button.recipe-DzOS_Bqm.js.map +1 -0
- package/dist/chunks/calendar-BIB7Bqqn.js +1577 -0
- package/dist/chunks/calendar-BIB7Bqqn.js.map +1 -0
- package/dist/chunks/calendar-DRE_oZOp.js +2 -0
- package/dist/chunks/calendar-DRE_oZOp.js.map +1 -0
- package/dist/chunks/calendar.recipe-B2sMokBn.js +101 -0
- package/dist/chunks/calendar.recipe-B2sMokBn.js.map +1 -0
- package/dist/chunks/calendar.recipe-gUaUNltl.js +2 -0
- package/dist/chunks/calendar.recipe-gUaUNltl.js.map +1 -0
- package/dist/chunks/card-DAC7L3R0.js +2 -0
- package/dist/chunks/card-DAC7L3R0.js.map +1 -0
- package/dist/chunks/card-DSC-PYAU.js +138 -0
- package/dist/chunks/card-DSC-PYAU.js.map +1 -0
- package/dist/chunks/checkbox-B1w8RLi0.js +2 -0
- package/dist/chunks/checkbox-B1w8RLi0.js.map +1 -0
- package/dist/chunks/checkbox-CJQ1O9W5.js +89 -0
- package/dist/chunks/checkbox-CJQ1O9W5.js.map +1 -0
- package/dist/chunks/code-CI8aUhmu.js +6 -0
- package/dist/chunks/code-CI8aUhmu.js.map +1 -0
- package/dist/chunks/code-Dg4Larbo.js +2 -0
- package/dist/chunks/code-Dg4Larbo.js.map +1 -0
- package/dist/chunks/combobox-DLABf790.js +2 -0
- package/dist/chunks/combobox-DLABf790.js.map +1 -0
- package/dist/chunks/combobox-ZcHPms3T.js +1896 -0
- package/dist/chunks/combobox-ZcHPms3T.js.map +1 -0
- package/dist/chunks/combobox.recipe-BIn4O0NT.js +407 -0
- package/dist/chunks/combobox.recipe-BIn4O0NT.js.map +1 -0
- package/dist/chunks/combobox.recipe-Da71Y6ye.js +2 -0
- package/dist/chunks/combobox.recipe-Da71Y6ye.js.map +1 -0
- package/dist/chunks/context-BmQ51HC8.js +2 -0
- package/dist/chunks/context-BmQ51HC8.js.map +1 -0
- package/dist/chunks/context-CI0Y3O6x.js +94 -0
- package/dist/chunks/context-CI0Y3O6x.js.map +1 -0
- package/dist/chunks/date-input-DnjW061n.js +2 -0
- package/dist/chunks/date-input-DnjW061n.js.map +1 -0
- package/dist/chunks/date-input-tzOJ2b9K.js +16 -0
- package/dist/chunks/date-input-tzOJ2b9K.js.map +1 -0
- package/dist/chunks/date-input.recipe-BtWEmJGK.js +119 -0
- package/dist/chunks/date-input.recipe-BtWEmJGK.js.map +1 -0
- package/dist/chunks/date-input.recipe-Cf9e8VAr.js +2 -0
- package/dist/chunks/date-input.recipe-Cf9e8VAr.js.map +1 -0
- package/dist/chunks/date-picker-BOJn_b_Y.js +2 -0
- package/dist/chunks/date-picker-BOJn_b_Y.js.map +1 -0
- package/dist/chunks/date-picker-npElUeVw.js +483 -0
- package/dist/chunks/date-picker-npElUeVw.js.map +1 -0
- package/dist/chunks/date-picker.recipe-5Avb06qp.js +2 -0
- package/dist/chunks/date-picker.recipe-5Avb06qp.js.map +1 -0
- package/dist/chunks/date-picker.recipe-Dy6NmKHA.js +82 -0
- package/dist/chunks/date-picker.recipe-Dy6NmKHA.js.map +1 -0
- package/dist/chunks/dialog-C1HRMUcF.js +33 -0
- package/dist/chunks/dialog-C1HRMUcF.js.map +1 -0
- package/dist/chunks/dialog-amEwvIoM.js +2 -0
- package/dist/chunks/dialog-amEwvIoM.js.map +1 -0
- package/dist/chunks/extractStyleProps-CxgBrz3O.js +11 -0
- package/dist/chunks/extractStyleProps-CxgBrz3O.js.map +1 -0
- package/dist/chunks/extractStyleProps-lyk7D-zN.js +2 -0
- package/dist/chunks/extractStyleProps-lyk7D-zN.js.map +1 -0
- package/dist/chunks/filterDOMProps-BS2lrgFA.js +2 -0
- package/dist/chunks/filterDOMProps-BS2lrgFA.js.map +1 -0
- package/dist/chunks/filterDOMProps-D6KHYVBX.js +25 -0
- package/dist/chunks/filterDOMProps-D6KHYVBX.js.map +1 -0
- package/dist/chunks/focusSafely-DKDcdc1Z.js +36 -0
- package/dist/chunks/focusSafely-DKDcdc1Z.js.map +1 -0
- package/dist/chunks/focusSafely-DTxIMq-P.js +2 -0
- package/dist/chunks/focusSafely-DTxIMq-P.js.map +1 -0
- package/dist/chunks/form-field-CblzjGEw.js +11 -0
- package/dist/chunks/form-field-CblzjGEw.js.map +1 -0
- package/dist/chunks/form-field-D_qT2LNU.js +309 -0
- package/dist/chunks/form-field-D_qT2LNU.js.map +1 -0
- package/dist/chunks/getScrollParent-DE66eQI-.js +15 -0
- package/dist/chunks/getScrollParent-DE66eQI-.js.map +1 -0
- package/dist/chunks/getScrollParent-Dc1cnLDE.js +2 -0
- package/dist/chunks/getScrollParent-Dc1cnLDE.js.map +1 -0
- package/dist/chunks/grid-CugcJxRP.js +14 -0
- package/dist/chunks/grid-CugcJxRP.js.map +1 -0
- package/dist/chunks/grid-xr2A-OqD.js +2 -0
- package/dist/chunks/grid-xr2A-OqD.js.map +1 -0
- package/dist/chunks/icon-BFNYuilh.js +31 -0
- package/dist/chunks/icon-BFNYuilh.js.map +1 -0
- package/dist/chunks/icon-D50i-dqv.js +2 -0
- package/dist/chunks/icon-D50i-dqv.js.map +1 -0
- package/dist/chunks/icon-button-DVBfoOHT.js +14 -0
- package/dist/chunks/icon-button-DVBfoOHT.js.map +1 -0
- package/dist/chunks/icon-button-Ds1Wzyc1.js +2 -0
- package/dist/chunks/icon-button-Ds1Wzyc1.js.map +1 -0
- package/dist/chunks/image-DCirAAnr.js +2 -0
- package/dist/chunks/image-DCirAAnr.js.map +1 -0
- package/dist/chunks/image-rXPA3shk.js +8 -0
- package/dist/chunks/image-rXPA3shk.js.map +1 -0
- package/dist/chunks/kbd-BKH_SGCC.js +6 -0
- package/dist/chunks/kbd-BKH_SGCC.js.map +1 -0
- package/dist/chunks/kbd-Bhv8ae1I.js +2 -0
- package/dist/chunks/kbd-Bhv8ae1I.js.map +1 -0
- package/dist/chunks/link-BfHXJGo9.js +2 -0
- package/dist/chunks/link-BfHXJGo9.js.map +1 -0
- package/dist/chunks/link-CE73eHS0.js +49 -0
- package/dist/chunks/link-CE73eHS0.js.map +1 -0
- package/dist/chunks/link.recipe-Ba2by0OG.js +51 -0
- package/dist/chunks/link.recipe-Ba2by0OG.js.map +1 -0
- package/dist/chunks/link.recipe-CG3leGAx.js +2 -0
- package/dist/chunks/link.recipe-CG3leGAx.js.map +1 -0
- package/dist/chunks/list-8yfreyzi.js +2 -0
- package/dist/chunks/list-8yfreyzi.js.map +1 -0
- package/dist/chunks/list-B21joBrq.js +13 -0
- package/dist/chunks/list-B21joBrq.js.map +1 -0
- package/dist/chunks/loading-spinner-AhRrVHKd.js +137 -0
- package/dist/chunks/loading-spinner-AhRrVHKd.js.map +1 -0
- package/dist/chunks/loading-spinner-B2I1CsuC.js +2 -0
- package/dist/chunks/loading-spinner-B2I1CsuC.js.map +1 -0
- package/dist/chunks/make-element-focusable-_kgqlXGc.js +22 -0
- package/dist/chunks/make-element-focusable-_kgqlXGc.js.map +1 -0
- package/dist/chunks/make-element-focusable-ijZC9F3C.js +2 -0
- package/dist/chunks/make-element-focusable-ijZC9F3C.js.map +1 -0
- package/dist/chunks/mergeProps-BeIu4MsM.js +2 -0
- package/dist/chunks/mergeProps-BeIu4MsM.js.map +1 -0
- package/dist/chunks/mergeProps-tCFA9wZ1.js +128 -0
- package/dist/chunks/mergeProps-tCFA9wZ1.js.map +1 -0
- package/dist/chunks/multiline-text-input-C8yclL-x.js +12 -0
- package/dist/chunks/multiline-text-input-C8yclL-x.js.map +1 -0
- package/dist/chunks/multiline-text-input-D6P_NVi6.js +116 -0
- package/dist/chunks/multiline-text-input-D6P_NVi6.js.map +1 -0
- package/dist/chunks/nimbus-provider-CTg-F7UD.js +2 -0
- package/dist/chunks/nimbus-provider-CTg-F7UD.js.map +1 -0
- package/dist/chunks/nimbus-provider-h_Fu03Zk.js +1530 -0
- package/dist/chunks/nimbus-provider-h_Fu03Zk.js.map +1 -0
- package/dist/chunks/number-5qMXmHyn.js +21 -0
- package/dist/chunks/number-5qMXmHyn.js.map +1 -0
- package/dist/chunks/number-CnrRPi4_.js +2 -0
- package/dist/chunks/number-CnrRPi4_.js.map +1 -0
- package/dist/chunks/number-input-BTbzj3aN.js +652 -0
- package/dist/chunks/number-input-BTbzj3aN.js.map +1 -0
- package/dist/chunks/number-input-D7D2ahNb.js +2 -0
- package/dist/chunks/number-input-D7D2ahNb.js.map +1 -0
- package/dist/chunks/number-input.recipe-2n6A2w0m.js +2 -0
- package/dist/chunks/number-input.recipe-2n6A2w0m.js.map +1 -0
- package/dist/chunks/number-input.recipe-8gbsGnLJ.js +209 -0
- package/dist/chunks/number-input.recipe-8gbsGnLJ.js.map +1 -0
- package/dist/chunks/password-input-BD5GZKX7.js +2 -0
- package/dist/chunks/password-input-BD5GZKX7.js.map +1 -0
- package/dist/chunks/password-input-fiypX-6w.js +50 -0
- package/dist/chunks/password-input-fiypX-6w.js.map +1 -0
- package/dist/chunks/radio-input-4v_6tT94.js +319 -0
- package/dist/chunks/radio-input-4v_6tT94.js.map +1 -0
- package/dist/chunks/radio-input-B2IVmel0.js +2 -0
- package/dist/chunks/radio-input-B2IVmel0.js.map +1 -0
- package/dist/chunks/radio-input.recipe-CM9R2ilP.js +75 -0
- package/dist/chunks/radio-input.recipe-CM9R2ilP.js.map +1 -0
- package/dist/chunks/radio-input.recipe-DdXB4lqs.js +2 -0
- package/dist/chunks/radio-input.recipe-DdXB4lqs.js.map +1 -0
- package/dist/chunks/scrollIntoView-B01y55fg.js +2 -0
- package/dist/chunks/scrollIntoView-B01y55fg.js.map +1 -0
- package/dist/chunks/scrollIntoView-CXOsfZIS.js +83 -0
- package/dist/chunks/scrollIntoView-CXOsfZIS.js.map +1 -0
- package/dist/chunks/select-7cuL-dmI.js +2 -0
- package/dist/chunks/select-7cuL-dmI.js.map +1 -0
- package/dist/chunks/select-DH4OUn_y.js +791 -0
- package/dist/chunks/select-DH4OUn_y.js.map +1 -0
- package/dist/chunks/select.recipe-CXWsUldF.js +203 -0
- package/dist/chunks/select.recipe-CXWsUldF.js.map +1 -0
- package/dist/chunks/select.recipe-DUHFWlQt.js +2 -0
- package/dist/chunks/select.recipe-DUHFWlQt.js.map +1 -0
- package/dist/chunks/simple-grid-CFOP9g2P.js +14 -0
- package/dist/chunks/simple-grid-CFOP9g2P.js.map +1 -0
- package/dist/chunks/simple-grid-CHgTayx6.js +2 -0
- package/dist/chunks/simple-grid-CHgTayx6.js.map +1 -0
- package/dist/chunks/stack-__ugxVHD.js +11 -0
- package/dist/chunks/stack-__ugxVHD.js.map +1 -0
- package/dist/chunks/stack-wFUhYQQb.js +2 -0
- package/dist/chunks/stack-wFUhYQQb.js.map +1 -0
- package/dist/chunks/switch-CnbvTSF9.js +2 -0
- package/dist/chunks/switch-CnbvTSF9.js.map +1 -0
- package/dist/chunks/switch-DdmbHa5R.js +78 -0
- package/dist/chunks/switch-DdmbHa5R.js.map +1 -0
- package/dist/chunks/switch.recipe-CWOjEnIy.js +100 -0
- package/dist/chunks/switch.recipe-CWOjEnIy.js.map +1 -0
- package/dist/chunks/switch.recipe-DHopLj_g.js +2 -0
- package/dist/chunks/switch.recipe-DHopLj_g.js.map +1 -0
- package/dist/chunks/tag-group-B6w2MEyf.js +2 -0
- package/dist/chunks/tag-group-B6w2MEyf.js.map +1 -0
- package/dist/chunks/tag-group-CdLfw2gL.js +1347 -0
- package/dist/chunks/tag-group-CdLfw2gL.js.map +1 -0
- package/dist/chunks/text-BjzNgHxv.js +2 -0
- package/dist/chunks/text-BjzNgHxv.js.map +1 -0
- package/dist/chunks/text-MzQiG_1j.js +24 -0
- package/dist/chunks/text-MzQiG_1j.js.map +1 -0
- package/dist/chunks/text-input-CtJ2FHJ3.js +2 -0
- package/dist/chunks/text-input-CtJ2FHJ3.js.map +1 -0
- package/dist/chunks/text-input-SYXEV4sT.js +17 -0
- package/dist/chunks/text-input-SYXEV4sT.js.map +1 -0
- package/dist/chunks/text-input.recipe-DxzvFMOB.js +2 -0
- package/dist/chunks/text-input.recipe-DxzvFMOB.js.map +1 -0
- package/dist/chunks/text-input.recipe-KNoUuq-g.js +64 -0
- package/dist/chunks/text-input.recipe-KNoUuq-g.js.map +1 -0
- package/dist/chunks/time-input-DCJYjKRY.js +129 -0
- package/dist/chunks/time-input-DCJYjKRY.js.map +1 -0
- package/dist/chunks/time-input-sjvN5iZ-.js +2 -0
- package/dist/chunks/time-input-sjvN5iZ-.js.map +1 -0
- package/dist/chunks/toggle-button-group-D-3UQLdL.js +2 -0
- package/dist/chunks/toggle-button-group-D-3UQLdL.js.map +1 -0
- package/dist/chunks/toggle-button-group-bjkXTCxu.js +275 -0
- package/dist/chunks/toggle-button-group-bjkXTCxu.js.map +1 -0
- package/dist/chunks/tooltip-C-K5iatf.js +2 -0
- package/dist/chunks/tooltip-C-K5iatf.js.map +1 -0
- package/dist/chunks/tooltip-DvoZxHgo.js +273 -0
- package/dist/chunks/tooltip-DvoZxHgo.js.map +1 -0
- package/dist/chunks/tooltip.recipe-B9-7OFCi.js +24 -0
- package/dist/chunks/tooltip.recipe-B9-7OFCi.js.map +1 -0
- package/dist/chunks/tooltip.recipe-CkNOA8Sg.js +2 -0
- package/dist/chunks/tooltip.recipe-CkNOA8Sg.js.map +1 -0
- package/dist/chunks/useButton-BZrUUsJ0.js +2 -0
- package/dist/chunks/useButton-BZrUUsJ0.js.map +1 -0
- package/dist/chunks/useButton-C5ATfvOf.js +48 -0
- package/dist/chunks/useButton-C5ATfvOf.js.map +1 -0
- package/dist/chunks/useCollator-BbJYfLGN.js +12 -0
- package/dist/chunks/useCollator-BbJYfLGN.js.map +1 -0
- package/dist/chunks/useCollator-ajK3YU47.js +2 -0
- package/dist/chunks/useCollator-ajK3YU47.js.map +1 -0
- package/dist/chunks/useControlledState-D0L6S_5r.js +2 -0
- package/dist/chunks/useControlledState-D0L6S_5r.js.map +1 -0
- package/dist/chunks/useControlledState-u436Wbp1.js +31 -0
- package/dist/chunks/useControlledState-u436Wbp1.js.map +1 -0
- package/dist/chunks/useDateFormatter-5Oe96jpR.js +1581 -0
- package/dist/chunks/useDateFormatter-5Oe96jpR.js.map +1 -0
- package/dist/chunks/useDateFormatter-6FAMsnNT.js +2 -0
- package/dist/chunks/useDateFormatter-6FAMsnNT.js.map +1 -0
- package/dist/chunks/useEvent-COOhq9E7.js +22 -0
- package/dist/chunks/useEvent-COOhq9E7.js.map +1 -0
- package/dist/chunks/useEvent-DCXRKhH2.js +2 -0
- package/dist/chunks/useEvent-DCXRKhH2.js.map +1 -0
- package/dist/chunks/useField-BY58-2Ft.js +36 -0
- package/dist/chunks/useField-BY58-2Ft.js.map +1 -0
- package/dist/chunks/useField-BeaT9Ud9.js +2 -0
- package/dist/chunks/useField-BeaT9Ud9.js.map +1 -0
- package/dist/chunks/useFocus-C1BtlMbo.js +2 -0
- package/dist/chunks/useFocus-C1BtlMbo.js.map +1 -0
- package/dist/chunks/useFocus-CuXxpIRa.js +176 -0
- package/dist/chunks/useFocus-CuXxpIRa.js.map +1 -0
- package/dist/chunks/useFocusRing-CYHdvund.js +2 -0
- package/dist/chunks/useFocusRing-CYHdvund.js.map +1 -0
- package/dist/chunks/useFocusRing-DNviWqC5.js +34 -0
- package/dist/chunks/useFocusRing-DNviWqC5.js.map +1 -0
- package/dist/chunks/useFocusWithin-AKRo9mz0.js +55 -0
- package/dist/chunks/useFocusWithin-AKRo9mz0.js.map +1 -0
- package/dist/chunks/useFocusWithin-hB6WzPnG.js +2 -0
- package/dist/chunks/useFocusWithin-hB6WzPnG.js.map +1 -0
- package/dist/chunks/useFocusable-DBEQCS1T.js +75 -0
- package/dist/chunks/useFocusable-DBEQCS1T.js.map +1 -0
- package/dist/chunks/useFocusable-DbCayKl8.js +2 -0
- package/dist/chunks/useFocusable-DbCayKl8.js.map +1 -0
- package/dist/chunks/useFormReset-BgCb2h6r.js +21 -0
- package/dist/chunks/useFormReset-BgCb2h6r.js.map +1 -0
- package/dist/chunks/useFormReset-Bt5-6Arg.js +2 -0
- package/dist/chunks/useFormReset-Bt5-6Arg.js.map +1 -0
- package/dist/chunks/useFormValidation-CbunG7dK.js +2 -0
- package/dist/chunks/useFormValidation-CbunG7dK.js.map +1 -0
- package/dist/chunks/useFormValidation-DoG8pVu2.js +179 -0
- package/dist/chunks/useFormValidation-DoG8pVu2.js.map +1 -0
- package/dist/chunks/useHover-3Zee5Ds5.js +85 -0
- package/dist/chunks/useHover-3Zee5Ds5.js.map +1 -0
- package/dist/chunks/useHover-BxTJz4Qm.js +2 -0
- package/dist/chunks/useHover-BxTJz4Qm.js.map +1 -0
- package/dist/chunks/useLabel-As7K6zBZ.js +2 -0
- package/dist/chunks/useLabel-As7K6zBZ.js.map +1 -0
- package/dist/chunks/useLabel-lLz9KH79.js +24 -0
- package/dist/chunks/useLabel-lLz9KH79.js.map +1 -0
- package/dist/chunks/useLabels-B-BeKbzR.js +2 -0
- package/dist/chunks/useLabels-B-BeKbzR.js.map +1 -0
- package/dist/chunks/useLabels-CrNu-inr.js +18 -0
- package/dist/chunks/useLabels-CrNu-inr.js.map +1 -0
- package/dist/chunks/useLocalizedStringFormatter-CDXOVKSV.js +2 -0
- package/dist/chunks/useLocalizedStringFormatter-CDXOVKSV.js.map +1 -0
- package/dist/chunks/useLocalizedStringFormatter-D1iIJE39.js +97 -0
- package/dist/chunks/useLocalizedStringFormatter-D1iIJE39.js.map +1 -0
- package/dist/chunks/useNumberFormatter-C8xwHQXb.js +14 -0
- package/dist/chunks/useNumberFormatter-C8xwHQXb.js.map +1 -0
- package/dist/chunks/useNumberFormatter-DS6s5teN.js +2 -0
- package/dist/chunks/useNumberFormatter-DS6s5teN.js.map +1 -0
- package/dist/chunks/useObjectRef-4v2MxSjQ.js +2 -0
- package/dist/chunks/useObjectRef-4v2MxSjQ.js.map +1 -0
- package/dist/chunks/useObjectRef-CaJ5pgjX.js +30 -0
- package/dist/chunks/useObjectRef-CaJ5pgjX.js.map +1 -0
- package/dist/chunks/usePress-CGAMyl6q.js +8 -0
- package/dist/chunks/usePress-CGAMyl6q.js.map +1 -0
- package/dist/chunks/usePress-Dk0M2Js8.js +526 -0
- package/dist/chunks/usePress-Dk0M2Js8.js.map +1 -0
- package/dist/chunks/useSingleSelectListState--jan8NiD.js +269 -0
- package/dist/chunks/useSingleSelectListState--jan8NiD.js.map +1 -0
- package/dist/chunks/useSingleSelectListState-DqtAmt8K.js +2 -0
- package/dist/chunks/useSingleSelectListState-DqtAmt8K.js.map +1 -0
- package/dist/chunks/useSpinButton-CQ8U5KZS.js +2 -0
- package/dist/chunks/useSpinButton-CQ8U5KZS.js.map +1 -0
- package/dist/chunks/useSpinButton-DQzgsW5H.js +432 -0
- package/dist/chunks/useSpinButton-DQzgsW5H.js.map +1 -0
- package/dist/chunks/useTextField-CNy4kFwI.js +88 -0
- package/dist/chunks/useTextField-CNy4kFwI.js.map +1 -0
- package/dist/chunks/useTextField-Dkkh1L-K.js +2 -0
- package/dist/chunks/useTextField-Dkkh1L-K.js.map +1 -0
- package/dist/chunks/useToggle-BEYjmALQ.js +2 -0
- package/dist/chunks/useToggle-BEYjmALQ.js.map +1 -0
- package/dist/chunks/useToggle-Cf0OB-T-.js +50 -0
- package/dist/chunks/useToggle-Cf0OB-T-.js.map +1 -0
- package/dist/chunks/useToggleState-B5pE_WmM.js +2 -0
- package/dist/chunks/useToggleState-B5pE_WmM.js.map +1 -0
- package/dist/chunks/useToggleState-Bz5rAf4C.js +19 -0
- package/dist/chunks/useToggleState-Bz5rAf4C.js.map +1 -0
- package/dist/chunks/useUpdateEffect-CCDx8D4X.js +14 -0
- package/dist/chunks/useUpdateEffect-CCDx8D4X.js.map +1 -0
- package/dist/chunks/useUpdateEffect-sk3kiVGz.js +2 -0
- package/dist/chunks/useUpdateEffect-sk3kiVGz.js.map +1 -0
- package/dist/chunks/utils-7n9JR4ke.js +128 -0
- package/dist/chunks/utils-7n9JR4ke.js.map +1 -0
- package/dist/chunks/utils-D6ZV0jyp.js +2 -0
- package/dist/chunks/utils-D6ZV0jyp.js.map +1 -0
- package/dist/chunks/utils-DSssdw4e.js +229 -0
- package/dist/chunks/utils-DSssdw4e.js.map +1 -0
- package/dist/chunks/utils-XbOVivul.js +2 -0
- package/dist/chunks/utils-XbOVivul.js.map +1 -0
- package/dist/chunks/visually-hidden-7U4LGJiI.js +11 -0
- package/dist/chunks/visually-hidden-7U4LGJiI.js.map +1 -0
- package/dist/chunks/visually-hidden-CRnniCks.js +2 -0
- package/dist/chunks/visually-hidden-CRnniCks.js.map +1 -0
- package/dist/code.d.ts +10 -0
- package/dist/combobox.d.ts +275 -0
- package/dist/components/accordion.cjs +2 -0
- package/dist/components/accordion.cjs.map +1 -0
- package/dist/components/accordion.es.js +10 -0
- package/dist/components/accordion.es.js.map +1 -0
- package/dist/components/alert.cjs +2 -0
- package/dist/components/alert.cjs.map +1 -0
- package/dist/components/alert.es.js +10 -0
- package/dist/components/alert.es.js.map +1 -0
- package/dist/components/avatar.cjs +2 -0
- package/dist/components/avatar.cjs.map +1 -0
- package/dist/components/avatar.es.js +5 -0
- package/dist/components/avatar.es.js.map +1 -0
- package/dist/components/badge.cjs +2 -0
- package/dist/components/badge.cjs.map +1 -0
- package/dist/components/badge.es.js +5 -0
- package/dist/components/badge.es.js.map +1 -0
- package/dist/components/box.cjs +2 -0
- package/dist/components/box.cjs.map +1 -0
- package/dist/components/box.es.js +5 -0
- package/dist/components/box.es.js.map +1 -0
- package/dist/components/button.cjs +2 -0
- package/dist/components/button.cjs.map +1 -0
- package/dist/components/button.es.js +5 -0
- package/dist/components/button.es.js.map +1 -0
- package/dist/components/calendar.cjs +2 -0
- package/dist/components/calendar.cjs.map +1 -0
- package/dist/components/calendar.es.js +5 -0
- package/dist/components/calendar.es.js.map +1 -0
- package/dist/components/card.cjs +2 -0
- package/dist/components/card.cjs.map +1 -0
- package/dist/components/card.es.js +8 -0
- package/dist/components/card.es.js.map +1 -0
- package/dist/components/checkbox.cjs +2 -0
- package/dist/components/checkbox.cjs.map +1 -0
- package/dist/components/checkbox.es.js +5 -0
- package/dist/components/checkbox.es.js.map +1 -0
- package/dist/components/code.cjs +2 -0
- package/dist/components/code.cjs.map +1 -0
- package/dist/components/code.es.js +5 -0
- package/dist/components/code.es.js.map +1 -0
- package/dist/components/combobox.cjs +2 -0
- package/dist/components/combobox.cjs.map +1 -0
- package/dist/components/combobox.es.js +8 -0
- package/dist/components/combobox.es.js.map +1 -0
- package/dist/components/components.cjs +2 -0
- package/dist/components/components.cjs.map +1 -0
- package/dist/components/components.es.js +125 -0
- package/dist/components/components.es.js.map +1 -0
- package/dist/components/date-input.cjs +2 -0
- package/dist/components/date-input.cjs.map +1 -0
- package/dist/components/date-input.es.js +5 -0
- package/dist/components/date-input.es.js.map +1 -0
- package/dist/components/date-picker.cjs +2 -0
- package/dist/components/date-picker.cjs.map +1 -0
- package/dist/components/date-picker.es.js +5 -0
- package/dist/components/date-picker.es.js.map +1 -0
- package/dist/components/dialog.cjs +2 -0
- package/dist/components/dialog.cjs.map +1 -0
- package/dist/components/dialog.es.js +5 -0
- package/dist/components/dialog.es.js.map +1 -0
- package/dist/components/flex.cjs +2 -0
- package/dist/components/flex.cjs.map +1 -0
- package/dist/components/flex.es.js +5 -0
- package/dist/components/flex.es.js.map +1 -0
- package/dist/components/form-field.cjs +2 -0
- package/dist/components/form-field.cjs.map +1 -0
- package/dist/components/form-field.es.js +11 -0
- package/dist/components/form-field.es.js.map +1 -0
- package/dist/components/grid.cjs +2 -0
- package/dist/components/grid.cjs.map +1 -0
- package/dist/components/grid.es.js +5 -0
- package/dist/components/grid.es.js.map +1 -0
- package/dist/components/heading.cjs +2 -0
- package/dist/components/heading.cjs.map +1 -0
- package/dist/components/heading.es.js +5 -0
- package/dist/components/heading.es.js.map +1 -0
- package/dist/components/icon-button.cjs +2 -0
- package/dist/components/icon-button.cjs.map +1 -0
- package/dist/components/icon-button.es.js +5 -0
- package/dist/components/icon-button.es.js.map +1 -0
- package/dist/components/icon.cjs +2 -0
- package/dist/components/icon.cjs.map +1 -0
- package/dist/components/icon.es.js +5 -0
- package/dist/components/icon.es.js.map +1 -0
- package/dist/components/image.cjs +2 -0
- package/dist/components/image.cjs.map +1 -0
- package/dist/components/image.es.js +5 -0
- package/dist/components/image.es.js.map +1 -0
- package/dist/components/kbd.cjs +2 -0
- package/dist/components/kbd.cjs.map +1 -0
- package/dist/components/kbd.es.js +5 -0
- package/dist/components/kbd.es.js.map +1 -0
- package/dist/components/link.cjs +2 -0
- package/dist/components/link.cjs.map +1 -0
- package/dist/components/link.es.js +5 -0
- package/dist/components/link.es.js.map +1 -0
- package/dist/components/list.cjs +2 -0
- package/dist/components/list.cjs.map +1 -0
- package/dist/components/list.es.js +8 -0
- package/dist/components/list.es.js.map +1 -0
- package/dist/components/loading-spinner.cjs +2 -0
- package/dist/components/loading-spinner.cjs.map +1 -0
- package/dist/components/loading-spinner.es.js +5 -0
- package/dist/components/loading-spinner.es.js.map +1 -0
- package/dist/components/multiline-text-input.cjs +2 -0
- package/dist/components/multiline-text-input.cjs.map +1 -0
- package/dist/components/multiline-text-input.es.js +5 -0
- package/dist/components/multiline-text-input.es.js.map +1 -0
- package/dist/components/nimbus-provider.cjs +2 -0
- package/dist/components/nimbus-provider.cjs.map +1 -0
- package/dist/components/nimbus-provider.es.js +8 -0
- package/dist/components/nimbus-provider.es.js.map +1 -0
- package/dist/components/number-input.cjs +2 -0
- package/dist/components/number-input.cjs.map +1 -0
- package/dist/components/number-input.es.js +5 -0
- package/dist/components/number-input.es.js.map +1 -0
- package/dist/components/password-input.cjs +2 -0
- package/dist/components/password-input.cjs.map +1 -0
- package/dist/components/password-input.es.js +5 -0
- package/dist/components/password-input.es.js.map +1 -0
- package/dist/components/radio-input.cjs +2 -0
- package/dist/components/radio-input.cjs.map +1 -0
- package/dist/components/radio-input.es.js +7 -0
- package/dist/components/radio-input.es.js.map +1 -0
- package/dist/components/select.cjs +2 -0
- package/dist/components/select.cjs.map +1 -0
- package/dist/components/select.es.js +9 -0
- package/dist/components/select.es.js.map +1 -0
- package/dist/components/simple-grid.cjs +2 -0
- package/dist/components/simple-grid.cjs.map +1 -0
- package/dist/components/simple-grid.es.js +5 -0
- package/dist/components/simple-grid.es.js.map +1 -0
- package/dist/components/stack.cjs +2 -0
- package/dist/components/stack.cjs.map +1 -0
- package/dist/components/stack.es.js +5 -0
- package/dist/components/stack.es.js.map +1 -0
- package/dist/components/switch.cjs +2 -0
- package/dist/components/switch.cjs.map +1 -0
- package/dist/components/switch.es.js +5 -0
- package/dist/components/switch.es.js.map +1 -0
- package/dist/components/table.cjs +2 -0
- package/dist/components/table.cjs.map +1 -0
- package/dist/components/table.es.js +5 -0
- package/dist/components/table.es.js.map +1 -0
- package/dist/components/tag-group.cjs +2 -0
- package/dist/components/tag-group.cjs.map +1 -0
- package/dist/components/tag-group.es.js +5 -0
- package/dist/components/tag-group.es.js.map +1 -0
- package/dist/components/text-input.cjs +2 -0
- package/dist/components/text-input.cjs.map +1 -0
- package/dist/components/text-input.es.js +5 -0
- package/dist/components/text-input.es.js.map +1 -0
- package/dist/components/text.cjs +2 -0
- package/dist/components/text.cjs.map +1 -0
- package/dist/components/text.es.js +5 -0
- package/dist/components/text.es.js.map +1 -0
- package/dist/components/time-input.cjs +2 -0
- package/dist/components/time-input.cjs.map +1 -0
- package/dist/components/time-input.es.js +5 -0
- package/dist/components/time-input.es.js.map +1 -0
- package/dist/components/toggle-button-group.cjs +2 -0
- package/dist/components/toggle-button-group.cjs.map +1 -0
- package/dist/components/toggle-button-group.es.js +7 -0
- package/dist/components/toggle-button-group.es.js.map +1 -0
- package/dist/components/tooltip.cjs +2 -0
- package/dist/components/tooltip.cjs.map +1 -0
- package/dist/components/tooltip.es.js +9 -0
- package/dist/components/tooltip.es.js.map +1 -0
- package/dist/components/visually-hidden.cjs +2 -0
- package/dist/components/visually-hidden.cjs.map +1 -0
- package/dist/components/visually-hidden.es.js +5 -0
- package/dist/components/visually-hidden.es.js.map +1 -0
- package/dist/components.d.ts +2668 -0
- package/dist/date-input.d.ts +94 -0
- package/dist/date-picker.d.ts +164 -0
- package/dist/dialog.d.ts +33 -0
- package/dist/flex.d.ts +5 -0
- package/dist/form-field.d.ts +131 -0
- package/dist/grid.d.ts +28 -0
- package/dist/heading.d.ts +5 -0
- package/dist/icon-button.d.ts +53 -0
- package/dist/icon.d.ts +99 -0
- package/dist/image.d.ts +18 -0
- package/dist/index.cjs +1 -42
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +934 -748
- package/dist/index.es.js +305 -22047
- package/dist/index.es.js.map +1 -1
- package/dist/kbd.d.ts +10 -0
- package/dist/link.d.ts +92 -0
- package/dist/list.d.ts +21 -0
- package/dist/loading-spinner.d.ts +88 -0
- package/dist/multiline-text-input.d.ts +76 -0
- package/dist/nimbus-provider.d.ts +23 -0
- package/dist/number-input.d.ts +143 -0
- package/dist/password-input.d.ts +74 -0
- package/dist/radio-input.d.ts +70 -0
- package/dist/select.d.ts +143 -0
- package/dist/setup-jsdom-polyfills.cjs +1 -1
- package/dist/setup-jsdom-polyfills.cjs.map +1 -1
- package/dist/setup-jsdom-polyfills.es.js +2 -22
- package/dist/setup-jsdom-polyfills.es.js.map +1 -1
- package/dist/simple-grid.d.ts +28 -0
- package/dist/stack.d.ts +14 -0
- package/dist/switch.d.ts +75 -0
- package/dist/table.d.ts +5 -0
- package/dist/tag-group.d.ts +99 -0
- package/dist/text-input.d.ts +68 -0
- package/dist/text.d.ts +20 -0
- package/dist/time-input.d.ts +102 -0
- package/dist/toggle-button-group.d.ts +107 -0
- package/dist/tooltip.d.ts +134 -0
- package/dist/visually-hidden.d.ts +15 -0
- package/package.json +6 -4
|
@@ -0,0 +1,1896 @@
|
|
|
1
|
+
import { jsx as i, jsxs as ce, Fragment as Be } from "react/jsx-runtime";
|
|
2
|
+
import { createSlotRecipeContext as ku, Flex as De, mergeRefs as Pu, useSlotRecipe as Ku } from "@chakra-ui/react";
|
|
3
|
+
import { c as Ou } from "./combobox.recipe-BIn4O0NT.js";
|
|
4
|
+
import H, { useEffect as se, useRef as L, useMemo as pe, useState as ee, useCallback as V, forwardRef as Iu, createContext as Se, useContext as Fe } from "react";
|
|
5
|
+
import { $ as ge } from "./Button-BxcMDv2N.js";
|
|
6
|
+
import { f as Gu, $ as Le, b as Mu, c as Vu, d as Ru, a as ju, e as zu } from "./utils-7n9JR4ke.js";
|
|
7
|
+
import { $ as Nu, a as we, b as Wu } from "./Form-DdaqVtM4.js";
|
|
8
|
+
import { b as ke, $ as Pe } from "./Group-D3CaEDfr.js";
|
|
9
|
+
import { a as me, $ as Ke } from "./Input-0vJb_5Js.js";
|
|
10
|
+
import { l as qu, b as Uu, m as Xu, n as Oe, o as Zu, p as Hu, q as Ju, r as Yu, e as Ie, d as Qu, f as _u, g as eo, s as uo, t as oo, i as no, j as to, k as lo, h as io } from "./ListBox-Dss9OMcn.js";
|
|
11
|
+
import { h as co, $ as ro, a as so, c as Ge, g as Me, e as po, d as ao } from "./Dialog-DJv-Zg_L.js";
|
|
12
|
+
import { $ as Ve } from "./Text-DOcU1ycg.js";
|
|
13
|
+
import { $ as $o } from "./filterDOMProps-D6KHYVBX.js";
|
|
14
|
+
import { $ as bo, a as Co } from "./OverlayArrow-qjQZbu8u.js";
|
|
15
|
+
import { b as xo, $ as fo } from "./useFormValidation-DoG8pVu2.js";
|
|
16
|
+
import { $ as ho, a as mo } from "./useSingleSelectListState--jan8NiD.js";
|
|
17
|
+
import { $ as vo } from "./useControlledState-u436Wbp1.js";
|
|
18
|
+
import { $ as $e } from "./LiveAnnouncer-B6177m92.js";
|
|
19
|
+
import { $ as fe, e as Ao } from "./mergeProps-tCFA9wZ1.js";
|
|
20
|
+
import { $ as yo, l as Bo, e as Eo, b as To } from "./utils-DSssdw4e.js";
|
|
21
|
+
import { $ as Do, a as So } from "./usePress-Dk0M2Js8.js";
|
|
22
|
+
import { $ as Ee } from "./useLabels-CrNu-inr.js";
|
|
23
|
+
import { $ as Fo } from "./useUpdateEffect-CCDx8D4X.js";
|
|
24
|
+
import { o as be } from "./useFocus-CuXxpIRa.js";
|
|
25
|
+
import { $ as go } from "./useLocalizedStringFormatter-D1iIJE39.js";
|
|
26
|
+
import { $ as Lo } from "./useTextField-CNy4kFwI.js";
|
|
27
|
+
import { e as ve } from "./extractStyleProps-CxgBrz3O.js";
|
|
28
|
+
import { Close as Re, Loop as je, KeyboardArrowDown as ze, Check as wo } from "@commercetools/nimbus-icons";
|
|
29
|
+
import { B as ae } from "./box-DD4jYgS7.js";
|
|
30
|
+
import { I as he } from "./icon-button-DVBfoOHT.js";
|
|
31
|
+
import { T as Ce } from "./tag-group-CdLfw2gL.js";
|
|
32
|
+
import { $ as ko } from "./useFocusable-DBEQCS1T.js";
|
|
33
|
+
import { $ as Po } from "./useObjectRef-CaJ5pgjX.js";
|
|
34
|
+
const Ko = /* @__PURE__ */ H.forwardRef(({ children: e, ...u }, o) => {
|
|
35
|
+
o = Po(o);
|
|
36
|
+
let { pressProps: l } = Do({
|
|
37
|
+
...u,
|
|
38
|
+
ref: o
|
|
39
|
+
}), { focusableProps: n } = ko(u, o), c = H.Children.only(e);
|
|
40
|
+
se(() => {
|
|
41
|
+
if (process.env.NODE_ENV === "production") return;
|
|
42
|
+
let s = o.current;
|
|
43
|
+
if (!s || !(s instanceof yo(s).Element)) {
|
|
44
|
+
console.error("<Pressable> child must forward its ref to a DOM element.");
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
if (!u.isDisabled && !Bo(s)) {
|
|
48
|
+
console.warn("<Pressable> child must be focusable. Please ensure the tabIndex prop is passed through.");
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
if (s.localName !== "button" && s.localName !== "input" && s.localName !== "select" && s.localName !== "textarea" && s.localName !== "a" && s.localName !== "area" && s.localName !== "summary") {
|
|
52
|
+
let t = s.getAttribute("role");
|
|
53
|
+
t ? (
|
|
54
|
+
// https://w3c.github.io/aria/#widget_roles
|
|
55
|
+
t !== "application" && t !== "button" && t !== "checkbox" && t !== "combobox" && t !== "gridcell" && t !== "link" && t !== "menuitem" && t !== "menuitemcheckbox" && t !== "menuitemradio" && t !== "option" && t !== "radio" && t !== "searchbox" && t !== "separator" && t !== "slider" && t !== "spinbutton" && t !== "switch" && t !== "tab" && t !== "textbox" && t !== "treeitem" && console.warn(`<Pressable> child must have an interactive ARIA role. Got "${t}".`)
|
|
56
|
+
) : console.warn("<Pressable> child must have an interactive ARIA role.");
|
|
57
|
+
}
|
|
58
|
+
}, [
|
|
59
|
+
o,
|
|
60
|
+
u.isDisabled
|
|
61
|
+
]);
|
|
62
|
+
let $ = parseInt(H.version, 10) < 19 ? c.ref : c.props.ref;
|
|
63
|
+
return /* @__PURE__ */ H.cloneElement(c, {
|
|
64
|
+
...fe(l, n, c.props),
|
|
65
|
+
// @ts-ignore
|
|
66
|
+
ref: Gu($, o)
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
var Ne = {};
|
|
70
|
+
Ne = {
|
|
71
|
+
buttonLabel: "عرض المقترحات",
|
|
72
|
+
countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
|
|
73
|
+
one: () => `${u.number(e.optionCount)} خيار`,
|
|
74
|
+
other: () => `${u.number(e.optionCount)} خيارات`
|
|
75
|
+
})} متاحة.`,
|
|
76
|
+
focusAnnouncement: (e, u) => `${u.select({
|
|
77
|
+
true: () => `المجموعة المدخلة ${e.groupTitle}, مع ${u.plural(e.groupCount, {
|
|
78
|
+
one: () => `${u.number(e.groupCount)} خيار`,
|
|
79
|
+
other: () => `${u.number(e.groupCount)} خيارات`
|
|
80
|
+
})}. `,
|
|
81
|
+
other: ""
|
|
82
|
+
}, e.isGroupChange)}${e.optionText}${u.select({
|
|
83
|
+
true: ", محدد",
|
|
84
|
+
other: ""
|
|
85
|
+
}, e.isSelected)}`,
|
|
86
|
+
listboxLabel: "مقترحات",
|
|
87
|
+
selectedAnnouncement: (e) => `${e.optionText}، محدد`
|
|
88
|
+
};
|
|
89
|
+
var We = {};
|
|
90
|
+
We = {
|
|
91
|
+
buttonLabel: "Покажи предложения",
|
|
92
|
+
countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
|
|
93
|
+
one: () => `${u.number(e.optionCount)} опция`,
|
|
94
|
+
other: () => `${u.number(e.optionCount)} опции`
|
|
95
|
+
})} на разположение.`,
|
|
96
|
+
focusAnnouncement: (e, u) => `${u.select({
|
|
97
|
+
true: () => `Въведена група ${e.groupTitle}, с ${u.plural(e.groupCount, {
|
|
98
|
+
one: () => `${u.number(e.groupCount)} опция`,
|
|
99
|
+
other: () => `${u.number(e.groupCount)} опции`
|
|
100
|
+
})}. `,
|
|
101
|
+
other: ""
|
|
102
|
+
}, e.isGroupChange)}${e.optionText}${u.select({
|
|
103
|
+
true: ", избрани",
|
|
104
|
+
other: ""
|
|
105
|
+
}, e.isSelected)}`,
|
|
106
|
+
listboxLabel: "Предложения",
|
|
107
|
+
selectedAnnouncement: (e) => `${e.optionText}, избрани`
|
|
108
|
+
};
|
|
109
|
+
var qe = {};
|
|
110
|
+
qe = {
|
|
111
|
+
buttonLabel: "Zobrazit doporučení",
|
|
112
|
+
countAnnouncement: (e, u) => `K dispozici ${u.plural(e.optionCount, {
|
|
113
|
+
one: () => `je ${u.number(e.optionCount)} možnost`,
|
|
114
|
+
other: () => `jsou/je ${u.number(e.optionCount)} možnosti/-í`
|
|
115
|
+
})}.`,
|
|
116
|
+
focusAnnouncement: (e, u) => `${u.select({
|
|
117
|
+
true: () => `Zadaná skupina „${e.groupTitle}“ ${u.plural(e.groupCount, {
|
|
118
|
+
one: () => `s ${u.number(e.groupCount)} možností`,
|
|
119
|
+
other: () => `se ${u.number(e.groupCount)} možnostmi`
|
|
120
|
+
})}. `,
|
|
121
|
+
other: ""
|
|
122
|
+
}, e.isGroupChange)}${e.optionText}${u.select({
|
|
123
|
+
true: " (vybráno)",
|
|
124
|
+
other: ""
|
|
125
|
+
}, e.isSelected)}`,
|
|
126
|
+
listboxLabel: "Návrhy",
|
|
127
|
+
selectedAnnouncement: (e) => `${e.optionText}, vybráno`
|
|
128
|
+
};
|
|
129
|
+
var Ue = {};
|
|
130
|
+
Ue = {
|
|
131
|
+
buttonLabel: "Vis forslag",
|
|
132
|
+
countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
|
|
133
|
+
one: () => `${u.number(e.optionCount)} mulighed tilgængelig`,
|
|
134
|
+
other: () => `${u.number(e.optionCount)} muligheder tilgængelige`
|
|
135
|
+
})}.`,
|
|
136
|
+
focusAnnouncement: (e, u) => `${u.select({
|
|
137
|
+
true: () => `Angivet gruppe ${e.groupTitle}, med ${u.plural(e.groupCount, {
|
|
138
|
+
one: () => `${u.number(e.groupCount)} mulighed`,
|
|
139
|
+
other: () => `${u.number(e.groupCount)} muligheder`
|
|
140
|
+
})}. `,
|
|
141
|
+
other: ""
|
|
142
|
+
}, e.isGroupChange)}${e.optionText}${u.select({
|
|
143
|
+
true: ", valgt",
|
|
144
|
+
other: ""
|
|
145
|
+
}, e.isSelected)}`,
|
|
146
|
+
listboxLabel: "Forslag",
|
|
147
|
+
selectedAnnouncement: (e) => `${e.optionText}, valgt`
|
|
148
|
+
};
|
|
149
|
+
var Xe = {};
|
|
150
|
+
Xe = {
|
|
151
|
+
buttonLabel: "Empfehlungen anzeigen",
|
|
152
|
+
countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
|
|
153
|
+
one: () => `${u.number(e.optionCount)} Option`,
|
|
154
|
+
other: () => `${u.number(e.optionCount)} Optionen`
|
|
155
|
+
})} verfügbar.`,
|
|
156
|
+
focusAnnouncement: (e, u) => `${u.select({
|
|
157
|
+
true: () => `Eingetretene Gruppe ${e.groupTitle}, mit ${u.plural(e.groupCount, {
|
|
158
|
+
one: () => `${u.number(e.groupCount)} Option`,
|
|
159
|
+
other: () => `${u.number(e.groupCount)} Optionen`
|
|
160
|
+
})}. `,
|
|
161
|
+
other: ""
|
|
162
|
+
}, e.isGroupChange)}${e.optionText}${u.select({
|
|
163
|
+
true: ", ausgewählt",
|
|
164
|
+
other: ""
|
|
165
|
+
}, e.isSelected)}`,
|
|
166
|
+
listboxLabel: "Empfehlungen",
|
|
167
|
+
selectedAnnouncement: (e) => `${e.optionText}, ausgewählt`
|
|
168
|
+
};
|
|
169
|
+
var Ze = {};
|
|
170
|
+
Ze = {
|
|
171
|
+
buttonLabel: "Προβολή προτάσεων",
|
|
172
|
+
countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
|
|
173
|
+
one: () => `${u.number(e.optionCount)} επιλογή`,
|
|
174
|
+
other: () => `${u.number(e.optionCount)} επιλογές `
|
|
175
|
+
})} διαθέσιμες.`,
|
|
176
|
+
focusAnnouncement: (e, u) => `${u.select({
|
|
177
|
+
true: () => `Εισαγμένη ομάδα ${e.groupTitle}, με ${u.plural(e.groupCount, {
|
|
178
|
+
one: () => `${u.number(e.groupCount)} επιλογή`,
|
|
179
|
+
other: () => `${u.number(e.groupCount)} επιλογές`
|
|
180
|
+
})}. `,
|
|
181
|
+
other: ""
|
|
182
|
+
}, e.isGroupChange)}${e.optionText}${u.select({
|
|
183
|
+
true: ", επιλεγμένο",
|
|
184
|
+
other: ""
|
|
185
|
+
}, e.isSelected)}`,
|
|
186
|
+
listboxLabel: "Προτάσεις",
|
|
187
|
+
selectedAnnouncement: (e) => `${e.optionText}, επιλέχθηκε`
|
|
188
|
+
};
|
|
189
|
+
var He = {};
|
|
190
|
+
He = {
|
|
191
|
+
focusAnnouncement: (e, u) => `${u.select({
|
|
192
|
+
true: () => `Entered group ${e.groupTitle}, with ${u.plural(e.groupCount, {
|
|
193
|
+
one: () => `${u.number(e.groupCount)} option`,
|
|
194
|
+
other: () => `${u.number(e.groupCount)} options`
|
|
195
|
+
})}. `,
|
|
196
|
+
other: ""
|
|
197
|
+
}, e.isGroupChange)}${e.optionText}${u.select({
|
|
198
|
+
true: ", selected",
|
|
199
|
+
other: ""
|
|
200
|
+
}, e.isSelected)}`,
|
|
201
|
+
countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
|
|
202
|
+
one: () => `${u.number(e.optionCount)} option`,
|
|
203
|
+
other: () => `${u.number(e.optionCount)} options`
|
|
204
|
+
})} available.`,
|
|
205
|
+
selectedAnnouncement: (e) => `${e.optionText}, selected`,
|
|
206
|
+
buttonLabel: "Show suggestions",
|
|
207
|
+
listboxLabel: "Suggestions"
|
|
208
|
+
};
|
|
209
|
+
var Je = {};
|
|
210
|
+
Je = {
|
|
211
|
+
buttonLabel: "Mostrar sugerencias",
|
|
212
|
+
countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
|
|
213
|
+
one: () => `${u.number(e.optionCount)} opción`,
|
|
214
|
+
other: () => `${u.number(e.optionCount)} opciones`
|
|
215
|
+
})} disponible(s).`,
|
|
216
|
+
focusAnnouncement: (e, u) => `${u.select({
|
|
217
|
+
true: () => `Se ha unido al grupo ${e.groupTitle}, con ${u.plural(e.groupCount, {
|
|
218
|
+
one: () => `${u.number(e.groupCount)} opción`,
|
|
219
|
+
other: () => `${u.number(e.groupCount)} opciones`
|
|
220
|
+
})}. `,
|
|
221
|
+
other: ""
|
|
222
|
+
}, e.isGroupChange)}${e.optionText}${u.select({
|
|
223
|
+
true: ", seleccionado",
|
|
224
|
+
other: ""
|
|
225
|
+
}, e.isSelected)}`,
|
|
226
|
+
listboxLabel: "Sugerencias",
|
|
227
|
+
selectedAnnouncement: (e) => `${e.optionText}, seleccionado`
|
|
228
|
+
};
|
|
229
|
+
var Ye = {};
|
|
230
|
+
Ye = {
|
|
231
|
+
buttonLabel: "Kuva soovitused",
|
|
232
|
+
countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
|
|
233
|
+
one: () => `${u.number(e.optionCount)} valik`,
|
|
234
|
+
other: () => `${u.number(e.optionCount)} valikud`
|
|
235
|
+
})} saadaval.`,
|
|
236
|
+
focusAnnouncement: (e, u) => `${u.select({
|
|
237
|
+
true: () => `Sisestatud rühm ${e.groupTitle}, valikuga ${u.plural(e.groupCount, {
|
|
238
|
+
one: () => `${u.number(e.groupCount)} valik`,
|
|
239
|
+
other: () => `${u.number(e.groupCount)} valikud`
|
|
240
|
+
})}. `,
|
|
241
|
+
other: ""
|
|
242
|
+
}, e.isGroupChange)}${e.optionText}${u.select({
|
|
243
|
+
true: ", valitud",
|
|
244
|
+
other: ""
|
|
245
|
+
}, e.isSelected)}`,
|
|
246
|
+
listboxLabel: "Soovitused",
|
|
247
|
+
selectedAnnouncement: (e) => `${e.optionText}, valitud`
|
|
248
|
+
};
|
|
249
|
+
var Qe = {};
|
|
250
|
+
Qe = {
|
|
251
|
+
buttonLabel: "Näytä ehdotukset",
|
|
252
|
+
countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
|
|
253
|
+
one: () => `${u.number(e.optionCount)} vaihtoehto`,
|
|
254
|
+
other: () => `${u.number(e.optionCount)} vaihtoehdot`
|
|
255
|
+
})} saatavilla.`,
|
|
256
|
+
focusAnnouncement: (e, u) => `${u.select({
|
|
257
|
+
true: () => `Mentiin ryhmään ${e.groupTitle}, ${u.plural(e.groupCount, {
|
|
258
|
+
one: () => `${u.number(e.groupCount)} vaihtoehdon`,
|
|
259
|
+
other: () => `${u.number(e.groupCount)} vaihtoehdon`
|
|
260
|
+
})} kanssa.`,
|
|
261
|
+
other: ""
|
|
262
|
+
}, e.isGroupChange)}${e.optionText}${u.select({
|
|
263
|
+
true: ", valittu",
|
|
264
|
+
other: ""
|
|
265
|
+
}, e.isSelected)}`,
|
|
266
|
+
listboxLabel: "Ehdotukset",
|
|
267
|
+
selectedAnnouncement: (e) => `${e.optionText}, valittu`
|
|
268
|
+
};
|
|
269
|
+
var _e = {};
|
|
270
|
+
_e = {
|
|
271
|
+
buttonLabel: "Afficher les suggestions",
|
|
272
|
+
countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
|
|
273
|
+
one: () => `${u.number(e.optionCount)} option`,
|
|
274
|
+
other: () => `${u.number(e.optionCount)} options`
|
|
275
|
+
})} disponible(s).`,
|
|
276
|
+
focusAnnouncement: (e, u) => `${u.select({
|
|
277
|
+
true: () => `Groupe ${e.groupTitle} rejoint, avec ${u.plural(e.groupCount, {
|
|
278
|
+
one: () => `${u.number(e.groupCount)} option`,
|
|
279
|
+
other: () => `${u.number(e.groupCount)} options`
|
|
280
|
+
})}. `,
|
|
281
|
+
other: ""
|
|
282
|
+
}, e.isGroupChange)}${e.optionText}${u.select({
|
|
283
|
+
true: ", sélectionné(s)",
|
|
284
|
+
other: ""
|
|
285
|
+
}, e.isSelected)}`,
|
|
286
|
+
listboxLabel: "Suggestions",
|
|
287
|
+
selectedAnnouncement: (e) => `${e.optionText}, sélectionné`
|
|
288
|
+
};
|
|
289
|
+
var eu = {};
|
|
290
|
+
eu = {
|
|
291
|
+
buttonLabel: "הצג הצעות",
|
|
292
|
+
countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
|
|
293
|
+
one: () => `אפשרות ${u.number(e.optionCount)}`,
|
|
294
|
+
other: () => `${u.number(e.optionCount)} אפשרויות`
|
|
295
|
+
})} במצב זמין.`,
|
|
296
|
+
focusAnnouncement: (e, u) => `${u.select({
|
|
297
|
+
true: () => `נכנס לקבוצה ${e.groupTitle}, עם ${u.plural(e.groupCount, {
|
|
298
|
+
one: () => `אפשרות ${u.number(e.groupCount)}`,
|
|
299
|
+
other: () => `${u.number(e.groupCount)} אפשרויות`
|
|
300
|
+
})}. `,
|
|
301
|
+
other: ""
|
|
302
|
+
}, e.isGroupChange)}${e.optionText}${u.select({
|
|
303
|
+
true: ", נבחר",
|
|
304
|
+
other: ""
|
|
305
|
+
}, e.isSelected)}`,
|
|
306
|
+
listboxLabel: "הצעות",
|
|
307
|
+
selectedAnnouncement: (e) => `${e.optionText}, נבחר`
|
|
308
|
+
};
|
|
309
|
+
var uu = {};
|
|
310
|
+
uu = {
|
|
311
|
+
buttonLabel: "Prikaži prijedloge",
|
|
312
|
+
countAnnouncement: (e, u) => `Dostupno još: ${u.plural(e.optionCount, {
|
|
313
|
+
one: () => `${u.number(e.optionCount)} opcija`,
|
|
314
|
+
other: () => `${u.number(e.optionCount)} opcije/a`
|
|
315
|
+
})}.`,
|
|
316
|
+
focusAnnouncement: (e, u) => `${u.select({
|
|
317
|
+
true: () => `Unesena skupina ${e.groupTitle}, s ${u.plural(e.groupCount, {
|
|
318
|
+
one: () => `${u.number(e.groupCount)} opcijom`,
|
|
319
|
+
other: () => `${u.number(e.groupCount)} opcije/a`
|
|
320
|
+
})}. `,
|
|
321
|
+
other: ""
|
|
322
|
+
}, e.isGroupChange)}${e.optionText}${u.select({
|
|
323
|
+
true: ", odabranih",
|
|
324
|
+
other: ""
|
|
325
|
+
}, e.isSelected)}`,
|
|
326
|
+
listboxLabel: "Prijedlozi",
|
|
327
|
+
selectedAnnouncement: (e) => `${e.optionText}, odabrano`
|
|
328
|
+
};
|
|
329
|
+
var ou = {};
|
|
330
|
+
ou = {
|
|
331
|
+
buttonLabel: "Javaslatok megjelenítése",
|
|
332
|
+
countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
|
|
333
|
+
one: () => `${u.number(e.optionCount)} lehetőség`,
|
|
334
|
+
other: () => `${u.number(e.optionCount)} lehetőség`
|
|
335
|
+
})} áll rendelkezésre.`,
|
|
336
|
+
focusAnnouncement: (e, u) => `${u.select({
|
|
337
|
+
true: () => `Belépett a(z) ${e.groupTitle} csoportba, amely ${u.plural(e.groupCount, {
|
|
338
|
+
one: () => `${u.number(e.groupCount)} lehetőséget`,
|
|
339
|
+
other: () => `${u.number(e.groupCount)} lehetőséget`
|
|
340
|
+
})} tartalmaz. `,
|
|
341
|
+
other: ""
|
|
342
|
+
}, e.isGroupChange)}${e.optionText}${u.select({
|
|
343
|
+
true: ", kijelölve",
|
|
344
|
+
other: ""
|
|
345
|
+
}, e.isSelected)}`,
|
|
346
|
+
listboxLabel: "Javaslatok",
|
|
347
|
+
selectedAnnouncement: (e) => `${e.optionText}, kijelölve`
|
|
348
|
+
};
|
|
349
|
+
var nu = {};
|
|
350
|
+
nu = {
|
|
351
|
+
buttonLabel: "Mostra suggerimenti",
|
|
352
|
+
countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
|
|
353
|
+
one: () => `${u.number(e.optionCount)} opzione disponibile`,
|
|
354
|
+
other: () => `${u.number(e.optionCount)} opzioni disponibili`
|
|
355
|
+
})}.`,
|
|
356
|
+
focusAnnouncement: (e, u) => `${u.select({
|
|
357
|
+
true: () => `Ingresso nel gruppo ${e.groupTitle}, con ${u.plural(e.groupCount, {
|
|
358
|
+
one: () => `${u.number(e.groupCount)} opzione`,
|
|
359
|
+
other: () => `${u.number(e.groupCount)} opzioni`
|
|
360
|
+
})}. `,
|
|
361
|
+
other: ""
|
|
362
|
+
}, e.isGroupChange)}${e.optionText}${u.select({
|
|
363
|
+
true: ", selezionato",
|
|
364
|
+
other: ""
|
|
365
|
+
}, e.isSelected)}`,
|
|
366
|
+
listboxLabel: "Suggerimenti",
|
|
367
|
+
selectedAnnouncement: (e) => `${e.optionText}, selezionato`
|
|
368
|
+
};
|
|
369
|
+
var tu = {};
|
|
370
|
+
tu = {
|
|
371
|
+
buttonLabel: "候補を表示",
|
|
372
|
+
countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
|
|
373
|
+
one: () => `${u.number(e.optionCount)} 個のオプション`,
|
|
374
|
+
other: () => `${u.number(e.optionCount)} 個のオプション`
|
|
375
|
+
})}を利用できます。`,
|
|
376
|
+
focusAnnouncement: (e, u) => `${u.select({
|
|
377
|
+
true: () => `入力されたグループ ${e.groupTitle}、${u.plural(e.groupCount, {
|
|
378
|
+
one: () => `${u.number(e.groupCount)} 個のオプション`,
|
|
379
|
+
other: () => `${u.number(e.groupCount)} 個のオプション`
|
|
380
|
+
})}を含む。`,
|
|
381
|
+
other: ""
|
|
382
|
+
}, e.isGroupChange)}${e.optionText}${u.select({
|
|
383
|
+
true: "、選択済み",
|
|
384
|
+
other: ""
|
|
385
|
+
}, e.isSelected)}`,
|
|
386
|
+
listboxLabel: "候補",
|
|
387
|
+
selectedAnnouncement: (e) => `${e.optionText}、選択済み`
|
|
388
|
+
};
|
|
389
|
+
var lu = {};
|
|
390
|
+
lu = {
|
|
391
|
+
buttonLabel: "제안 사항 표시",
|
|
392
|
+
countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
|
|
393
|
+
one: () => `${u.number(e.optionCount)}개 옵션`,
|
|
394
|
+
other: () => `${u.number(e.optionCount)}개 옵션`
|
|
395
|
+
})}을 사용할 수 있습니다.`,
|
|
396
|
+
focusAnnouncement: (e, u) => `${u.select({
|
|
397
|
+
true: () => `입력한 그룹 ${e.groupTitle}, ${u.plural(e.groupCount, {
|
|
398
|
+
one: () => `${u.number(e.groupCount)}개 옵션`,
|
|
399
|
+
other: () => `${u.number(e.groupCount)}개 옵션`
|
|
400
|
+
})}. `,
|
|
401
|
+
other: ""
|
|
402
|
+
}, e.isGroupChange)}${e.optionText}${u.select({
|
|
403
|
+
true: ", 선택됨",
|
|
404
|
+
other: ""
|
|
405
|
+
}, e.isSelected)}`,
|
|
406
|
+
listboxLabel: "제안",
|
|
407
|
+
selectedAnnouncement: (e) => `${e.optionText}, 선택됨`
|
|
408
|
+
};
|
|
409
|
+
var iu = {};
|
|
410
|
+
iu = {
|
|
411
|
+
buttonLabel: "Rodyti pasiūlymus",
|
|
412
|
+
countAnnouncement: (e, u) => `Yra ${u.plural(e.optionCount, {
|
|
413
|
+
one: () => `${u.number(e.optionCount)} parinktis`,
|
|
414
|
+
other: () => `${u.number(e.optionCount)} parinktys (-ių)`
|
|
415
|
+
})}.`,
|
|
416
|
+
focusAnnouncement: (e, u) => `${u.select({
|
|
417
|
+
true: () => `Įvesta grupė ${e.groupTitle}, su ${u.plural(e.groupCount, {
|
|
418
|
+
one: () => `${u.number(e.groupCount)} parinktimi`,
|
|
419
|
+
other: () => `${u.number(e.groupCount)} parinktimis (-ių)`
|
|
420
|
+
})}. `,
|
|
421
|
+
other: ""
|
|
422
|
+
}, e.isGroupChange)}${e.optionText}${u.select({
|
|
423
|
+
true: ", pasirinkta",
|
|
424
|
+
other: ""
|
|
425
|
+
}, e.isSelected)}`,
|
|
426
|
+
listboxLabel: "Pasiūlymai",
|
|
427
|
+
selectedAnnouncement: (e) => `${e.optionText}, pasirinkta`
|
|
428
|
+
};
|
|
429
|
+
var cu = {};
|
|
430
|
+
cu = {
|
|
431
|
+
buttonLabel: "Rādīt ieteikumus",
|
|
432
|
+
countAnnouncement: (e, u) => `Pieejamo opciju skaits: ${u.plural(e.optionCount, {
|
|
433
|
+
one: () => `${u.number(e.optionCount)} opcija`,
|
|
434
|
+
other: () => `${u.number(e.optionCount)} opcijas`
|
|
435
|
+
})}.`,
|
|
436
|
+
focusAnnouncement: (e, u) => `${u.select({
|
|
437
|
+
true: () => `Ievadīta grupa ${e.groupTitle}, ar ${u.plural(e.groupCount, {
|
|
438
|
+
one: () => `${u.number(e.groupCount)} opciju`,
|
|
439
|
+
other: () => `${u.number(e.groupCount)} opcijām`
|
|
440
|
+
})}. `,
|
|
441
|
+
other: ""
|
|
442
|
+
}, e.isGroupChange)}${e.optionText}${u.select({
|
|
443
|
+
true: ", atlasīta",
|
|
444
|
+
other: ""
|
|
445
|
+
}, e.isSelected)}`,
|
|
446
|
+
listboxLabel: "Ieteikumi",
|
|
447
|
+
selectedAnnouncement: (e) => `${e.optionText}, atlasīta`
|
|
448
|
+
};
|
|
449
|
+
var ru = {};
|
|
450
|
+
ru = {
|
|
451
|
+
buttonLabel: "Vis forslag",
|
|
452
|
+
countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
|
|
453
|
+
one: () => `${u.number(e.optionCount)} alternativ`,
|
|
454
|
+
other: () => `${u.number(e.optionCount)} alternativer`
|
|
455
|
+
})} finnes.`,
|
|
456
|
+
focusAnnouncement: (e, u) => `${u.select({
|
|
457
|
+
true: () => `Angitt gruppe ${e.groupTitle}, med ${u.plural(e.groupCount, {
|
|
458
|
+
one: () => `${u.number(e.groupCount)} alternativ`,
|
|
459
|
+
other: () => `${u.number(e.groupCount)} alternativer`
|
|
460
|
+
})}. `,
|
|
461
|
+
other: ""
|
|
462
|
+
}, e.isGroupChange)}${e.optionText}${u.select({
|
|
463
|
+
true: ", valgt",
|
|
464
|
+
other: ""
|
|
465
|
+
}, e.isSelected)}`,
|
|
466
|
+
listboxLabel: "Forslag",
|
|
467
|
+
selectedAnnouncement: (e) => `${e.optionText}, valgt`
|
|
468
|
+
};
|
|
469
|
+
var su = {};
|
|
470
|
+
su = {
|
|
471
|
+
buttonLabel: "Suggesties weergeven",
|
|
472
|
+
countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
|
|
473
|
+
one: () => `${u.number(e.optionCount)} optie`,
|
|
474
|
+
other: () => `${u.number(e.optionCount)} opties`
|
|
475
|
+
})} beschikbaar.`,
|
|
476
|
+
focusAnnouncement: (e, u) => `${u.select({
|
|
477
|
+
true: () => `Groep ${e.groupTitle} ingevoerd met ${u.plural(e.groupCount, {
|
|
478
|
+
one: () => `${u.number(e.groupCount)} optie`,
|
|
479
|
+
other: () => `${u.number(e.groupCount)} opties`
|
|
480
|
+
})}. `,
|
|
481
|
+
other: ""
|
|
482
|
+
}, e.isGroupChange)}${e.optionText}${u.select({
|
|
483
|
+
true: ", geselecteerd",
|
|
484
|
+
other: ""
|
|
485
|
+
}, e.isSelected)}`,
|
|
486
|
+
listboxLabel: "Suggesties",
|
|
487
|
+
selectedAnnouncement: (e) => `${e.optionText}, geselecteerd`
|
|
488
|
+
};
|
|
489
|
+
var pu = {};
|
|
490
|
+
pu = {
|
|
491
|
+
buttonLabel: "Wyświetlaj sugestie",
|
|
492
|
+
countAnnouncement: (e, u) => `dostępna/dostępne(-nych) ${u.plural(e.optionCount, {
|
|
493
|
+
one: () => `${u.number(e.optionCount)} opcja`,
|
|
494
|
+
other: () => `${u.number(e.optionCount)} opcje(-i)`
|
|
495
|
+
})}.`,
|
|
496
|
+
focusAnnouncement: (e, u) => `${u.select({
|
|
497
|
+
true: () => `Dołączono do grupy ${e.groupTitle}, z ${u.plural(e.groupCount, {
|
|
498
|
+
one: () => `${u.number(e.groupCount)} opcją`,
|
|
499
|
+
other: () => `${u.number(e.groupCount)} opcjami`
|
|
500
|
+
})}. `,
|
|
501
|
+
other: ""
|
|
502
|
+
}, e.isGroupChange)}${e.optionText}${u.select({
|
|
503
|
+
true: ", wybrano",
|
|
504
|
+
other: ""
|
|
505
|
+
}, e.isSelected)}`,
|
|
506
|
+
listboxLabel: "Sugestie",
|
|
507
|
+
selectedAnnouncement: (e) => `${e.optionText}, wybrano`
|
|
508
|
+
};
|
|
509
|
+
var du = {};
|
|
510
|
+
du = {
|
|
511
|
+
buttonLabel: "Mostrar sugestões",
|
|
512
|
+
countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
|
|
513
|
+
one: () => `${u.number(e.optionCount)} opção`,
|
|
514
|
+
other: () => `${u.number(e.optionCount)} opções`
|
|
515
|
+
})} disponível.`,
|
|
516
|
+
focusAnnouncement: (e, u) => `${u.select({
|
|
517
|
+
true: () => `Grupo inserido ${e.groupTitle}, com ${u.plural(e.groupCount, {
|
|
518
|
+
one: () => `${u.number(e.groupCount)} opção`,
|
|
519
|
+
other: () => `${u.number(e.groupCount)} opções`
|
|
520
|
+
})}. `,
|
|
521
|
+
other: ""
|
|
522
|
+
}, e.isGroupChange)}${e.optionText}${u.select({
|
|
523
|
+
true: ", selecionado",
|
|
524
|
+
other: ""
|
|
525
|
+
}, e.isSelected)}`,
|
|
526
|
+
listboxLabel: "Sugestões",
|
|
527
|
+
selectedAnnouncement: (e) => `${e.optionText}, selecionado`
|
|
528
|
+
};
|
|
529
|
+
var au = {};
|
|
530
|
+
au = {
|
|
531
|
+
buttonLabel: "Apresentar sugestões",
|
|
532
|
+
countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
|
|
533
|
+
one: () => `${u.number(e.optionCount)} opção`,
|
|
534
|
+
other: () => `${u.number(e.optionCount)} opções`
|
|
535
|
+
})} disponível.`,
|
|
536
|
+
focusAnnouncement: (e, u) => `${u.select({
|
|
537
|
+
true: () => `Grupo introduzido ${e.groupTitle}, com ${u.plural(e.groupCount, {
|
|
538
|
+
one: () => `${u.number(e.groupCount)} opção`,
|
|
539
|
+
other: () => `${u.number(e.groupCount)} opções`
|
|
540
|
+
})}. `,
|
|
541
|
+
other: ""
|
|
542
|
+
}, e.isGroupChange)}${e.optionText}${u.select({
|
|
543
|
+
true: ", selecionado",
|
|
544
|
+
other: ""
|
|
545
|
+
}, e.isSelected)}`,
|
|
546
|
+
listboxLabel: "Sugestões",
|
|
547
|
+
selectedAnnouncement: (e) => `${e.optionText}, selecionado`
|
|
548
|
+
};
|
|
549
|
+
var $u = {};
|
|
550
|
+
$u = {
|
|
551
|
+
buttonLabel: "Afișare sugestii",
|
|
552
|
+
countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
|
|
553
|
+
one: () => `${u.number(e.optionCount)} opțiune`,
|
|
554
|
+
other: () => `${u.number(e.optionCount)} opțiuni`
|
|
555
|
+
})} disponibile.`,
|
|
556
|
+
focusAnnouncement: (e, u) => `${u.select({
|
|
557
|
+
true: () => `Grup ${e.groupTitle} introdus, cu ${u.plural(e.groupCount, {
|
|
558
|
+
one: () => `${u.number(e.groupCount)} opțiune`,
|
|
559
|
+
other: () => `${u.number(e.groupCount)} opțiuni`
|
|
560
|
+
})}. `,
|
|
561
|
+
other: ""
|
|
562
|
+
}, e.isGroupChange)}${e.optionText}${u.select({
|
|
563
|
+
true: ", selectat",
|
|
564
|
+
other: ""
|
|
565
|
+
}, e.isSelected)}`,
|
|
566
|
+
listboxLabel: "Sugestii",
|
|
567
|
+
selectedAnnouncement: (e) => `${e.optionText}, selectat`
|
|
568
|
+
};
|
|
569
|
+
var bu = {};
|
|
570
|
+
bu = {
|
|
571
|
+
buttonLabel: "Показать предложения",
|
|
572
|
+
countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
|
|
573
|
+
one: () => `${u.number(e.optionCount)} параметр`,
|
|
574
|
+
other: () => `${u.number(e.optionCount)} параметров`
|
|
575
|
+
})} доступно.`,
|
|
576
|
+
focusAnnouncement: (e, u) => `${u.select({
|
|
577
|
+
true: () => `Введенная группа ${e.groupTitle}, с ${u.plural(e.groupCount, {
|
|
578
|
+
one: () => `${u.number(e.groupCount)} параметром`,
|
|
579
|
+
other: () => `${u.number(e.groupCount)} параметрами`
|
|
580
|
+
})}. `,
|
|
581
|
+
other: ""
|
|
582
|
+
}, e.isGroupChange)}${e.optionText}${u.select({
|
|
583
|
+
true: ", выбранными",
|
|
584
|
+
other: ""
|
|
585
|
+
}, e.isSelected)}`,
|
|
586
|
+
listboxLabel: "Предложения",
|
|
587
|
+
selectedAnnouncement: (e) => `${e.optionText}, выбрано`
|
|
588
|
+
};
|
|
589
|
+
var Cu = {};
|
|
590
|
+
Cu = {
|
|
591
|
+
buttonLabel: "Zobraziť návrhy",
|
|
592
|
+
countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
|
|
593
|
+
one: () => `${u.number(e.optionCount)} možnosť`,
|
|
594
|
+
other: () => `${u.number(e.optionCount)} možnosti/-í`
|
|
595
|
+
})} k dispozícii.`,
|
|
596
|
+
focusAnnouncement: (e, u) => `${u.select({
|
|
597
|
+
true: () => `Zadaná skupina ${e.groupTitle}, s ${u.plural(e.groupCount, {
|
|
598
|
+
one: () => `${u.number(e.groupCount)} možnosťou`,
|
|
599
|
+
other: () => `${u.number(e.groupCount)} možnosťami`
|
|
600
|
+
})}. `,
|
|
601
|
+
other: ""
|
|
602
|
+
}, e.isGroupChange)}${e.optionText}${u.select({
|
|
603
|
+
true: ", vybraté",
|
|
604
|
+
other: ""
|
|
605
|
+
}, e.isSelected)}`,
|
|
606
|
+
listboxLabel: "Návrhy",
|
|
607
|
+
selectedAnnouncement: (e) => `${e.optionText}, vybraté`
|
|
608
|
+
};
|
|
609
|
+
var xu = {};
|
|
610
|
+
xu = {
|
|
611
|
+
buttonLabel: "Prikaži predloge",
|
|
612
|
+
countAnnouncement: (e, u) => `Na voljo je ${u.plural(e.optionCount, {
|
|
613
|
+
one: () => `${u.number(e.optionCount)} opcija`,
|
|
614
|
+
other: () => `${u.number(e.optionCount)} opcije`
|
|
615
|
+
})}.`,
|
|
616
|
+
focusAnnouncement: (e, u) => `${u.select({
|
|
617
|
+
true: () => `Vnesena skupina ${e.groupTitle}, z ${u.plural(e.groupCount, {
|
|
618
|
+
one: () => `${u.number(e.groupCount)} opcija`,
|
|
619
|
+
other: () => `${u.number(e.groupCount)} opcije`
|
|
620
|
+
})}. `,
|
|
621
|
+
other: ""
|
|
622
|
+
}, e.isGroupChange)}${e.optionText}${u.select({
|
|
623
|
+
true: ", izbrano",
|
|
624
|
+
other: ""
|
|
625
|
+
}, e.isSelected)}`,
|
|
626
|
+
listboxLabel: "Predlogi",
|
|
627
|
+
selectedAnnouncement: (e) => `${e.optionText}, izbrano`
|
|
628
|
+
};
|
|
629
|
+
var fu = {};
|
|
630
|
+
fu = {
|
|
631
|
+
buttonLabel: "Prikaži predloge",
|
|
632
|
+
countAnnouncement: (e, u) => `Dostupno još: ${u.plural(e.optionCount, {
|
|
633
|
+
one: () => `${u.number(e.optionCount)} opcija`,
|
|
634
|
+
other: () => `${u.number(e.optionCount)} opcije/a`
|
|
635
|
+
})}.`,
|
|
636
|
+
focusAnnouncement: (e, u) => `${u.select({
|
|
637
|
+
true: () => `Unesena grupa ${e.groupTitle}, s ${u.plural(e.groupCount, {
|
|
638
|
+
one: () => `${u.number(e.groupCount)} opcijom`,
|
|
639
|
+
other: () => `${u.number(e.groupCount)} optione/a`
|
|
640
|
+
})}. `,
|
|
641
|
+
other: ""
|
|
642
|
+
}, e.isGroupChange)}${e.optionText}${u.select({
|
|
643
|
+
true: ", izabranih",
|
|
644
|
+
other: ""
|
|
645
|
+
}, e.isSelected)}`,
|
|
646
|
+
listboxLabel: "Predlozi",
|
|
647
|
+
selectedAnnouncement: (e) => `${e.optionText}, izabrano`
|
|
648
|
+
};
|
|
649
|
+
var hu = {};
|
|
650
|
+
hu = {
|
|
651
|
+
buttonLabel: "Visa förslag",
|
|
652
|
+
countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
|
|
653
|
+
one: () => `${u.number(e.optionCount)} alternativ`,
|
|
654
|
+
other: () => `${u.number(e.optionCount)} alternativ`
|
|
655
|
+
})} tillgängliga.`,
|
|
656
|
+
focusAnnouncement: (e, u) => `${u.select({
|
|
657
|
+
true: () => `Ingick i gruppen ${e.groupTitle} med ${u.plural(e.groupCount, {
|
|
658
|
+
one: () => `${u.number(e.groupCount)} alternativ`,
|
|
659
|
+
other: () => `${u.number(e.groupCount)} alternativ`
|
|
660
|
+
})}. `,
|
|
661
|
+
other: ""
|
|
662
|
+
}, e.isGroupChange)}${e.optionText}${u.select({
|
|
663
|
+
true: ", valda",
|
|
664
|
+
other: ""
|
|
665
|
+
}, e.isSelected)}`,
|
|
666
|
+
listboxLabel: "Förslag",
|
|
667
|
+
selectedAnnouncement: (e) => `${e.optionText}, valda`
|
|
668
|
+
};
|
|
669
|
+
var mu = {};
|
|
670
|
+
mu = {
|
|
671
|
+
buttonLabel: "Önerileri göster",
|
|
672
|
+
countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
|
|
673
|
+
one: () => `${u.number(e.optionCount)} seçenek`,
|
|
674
|
+
other: () => `${u.number(e.optionCount)} seçenekler`
|
|
675
|
+
})} kullanılabilir.`,
|
|
676
|
+
focusAnnouncement: (e, u) => `${u.select({
|
|
677
|
+
true: () => `Girilen grup ${e.groupTitle}, ile ${u.plural(e.groupCount, {
|
|
678
|
+
one: () => `${u.number(e.groupCount)} seçenek`,
|
|
679
|
+
other: () => `${u.number(e.groupCount)} seçenekler`
|
|
680
|
+
})}. `,
|
|
681
|
+
other: ""
|
|
682
|
+
}, e.isGroupChange)}${e.optionText}${u.select({
|
|
683
|
+
true: ", seçildi",
|
|
684
|
+
other: ""
|
|
685
|
+
}, e.isSelected)}`,
|
|
686
|
+
listboxLabel: "Öneriler",
|
|
687
|
+
selectedAnnouncement: (e) => `${e.optionText}, seçildi`
|
|
688
|
+
};
|
|
689
|
+
var vu = {};
|
|
690
|
+
vu = {
|
|
691
|
+
buttonLabel: "Показати пропозиції",
|
|
692
|
+
countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
|
|
693
|
+
one: () => `${u.number(e.optionCount)} параметр`,
|
|
694
|
+
other: () => `${u.number(e.optionCount)} параметри(-ів)`
|
|
695
|
+
})} доступно.`,
|
|
696
|
+
focusAnnouncement: (e, u) => `${u.select({
|
|
697
|
+
true: () => `Введена група ${e.groupTitle}, з ${u.plural(e.groupCount, {
|
|
698
|
+
one: () => `${u.number(e.groupCount)} параметр`,
|
|
699
|
+
other: () => `${u.number(e.groupCount)} параметри(-ів)`
|
|
700
|
+
})}. `,
|
|
701
|
+
other: ""
|
|
702
|
+
}, e.isGroupChange)}${e.optionText}${u.select({
|
|
703
|
+
true: ", вибрано",
|
|
704
|
+
other: ""
|
|
705
|
+
}, e.isSelected)}`,
|
|
706
|
+
listboxLabel: "Пропозиції",
|
|
707
|
+
selectedAnnouncement: (e) => `${e.optionText}, вибрано`
|
|
708
|
+
};
|
|
709
|
+
var Au = {};
|
|
710
|
+
Au = {
|
|
711
|
+
buttonLabel: "显示建议",
|
|
712
|
+
countAnnouncement: (e, u) => `有 ${u.plural(e.optionCount, {
|
|
713
|
+
one: () => `${u.number(e.optionCount)} 个选项`,
|
|
714
|
+
other: () => `${u.number(e.optionCount)} 个选项`
|
|
715
|
+
})}可用。`,
|
|
716
|
+
focusAnnouncement: (e, u) => `${u.select({
|
|
717
|
+
true: () => `进入了 ${e.groupTitle} 组,其中有 ${u.plural(e.groupCount, {
|
|
718
|
+
one: () => `${u.number(e.groupCount)} 个选项`,
|
|
719
|
+
other: () => `${u.number(e.groupCount)} 个选项`
|
|
720
|
+
})}. `,
|
|
721
|
+
other: ""
|
|
722
|
+
}, e.isGroupChange)}${e.optionText}${u.select({
|
|
723
|
+
true: ", 已选择",
|
|
724
|
+
other: ""
|
|
725
|
+
}, e.isSelected)}`,
|
|
726
|
+
listboxLabel: "建议",
|
|
727
|
+
selectedAnnouncement: (e) => `${e.optionText}, 已选择`
|
|
728
|
+
};
|
|
729
|
+
var yu = {};
|
|
730
|
+
yu = {
|
|
731
|
+
buttonLabel: "顯示建議",
|
|
732
|
+
countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
|
|
733
|
+
one: () => `${u.number(e.optionCount)} 選項`,
|
|
734
|
+
other: () => `${u.number(e.optionCount)} 選項`
|
|
735
|
+
})} 可用。`,
|
|
736
|
+
focusAnnouncement: (e, u) => `${u.select({
|
|
737
|
+
true: () => `輸入的群組 ${e.groupTitle}, 有 ${u.plural(e.groupCount, {
|
|
738
|
+
one: () => `${u.number(e.groupCount)} 選項`,
|
|
739
|
+
other: () => `${u.number(e.groupCount)} 選項`
|
|
740
|
+
})}. `,
|
|
741
|
+
other: ""
|
|
742
|
+
}, e.isGroupChange)}${e.optionText}${u.select({
|
|
743
|
+
true: ", 已選取",
|
|
744
|
+
other: ""
|
|
745
|
+
}, e.isSelected)}`,
|
|
746
|
+
listboxLabel: "建議",
|
|
747
|
+
selectedAnnouncement: (e) => `${e.optionText}, 已選取`
|
|
748
|
+
};
|
|
749
|
+
var Bu = {};
|
|
750
|
+
Bu = {
|
|
751
|
+
"ar-AE": Ne,
|
|
752
|
+
"bg-BG": We,
|
|
753
|
+
"cs-CZ": qe,
|
|
754
|
+
"da-DK": Ue,
|
|
755
|
+
"de-DE": Xe,
|
|
756
|
+
"el-GR": Ze,
|
|
757
|
+
"en-US": He,
|
|
758
|
+
"es-ES": Je,
|
|
759
|
+
"et-EE": Ye,
|
|
760
|
+
"fi-FI": Qe,
|
|
761
|
+
"fr-FR": _e,
|
|
762
|
+
"he-IL": eu,
|
|
763
|
+
"hr-HR": uu,
|
|
764
|
+
"hu-HU": ou,
|
|
765
|
+
"it-IT": nu,
|
|
766
|
+
"ja-JP": tu,
|
|
767
|
+
"ko-KR": lu,
|
|
768
|
+
"lt-LT": iu,
|
|
769
|
+
"lv-LV": cu,
|
|
770
|
+
"nb-NO": ru,
|
|
771
|
+
"nl-NL": su,
|
|
772
|
+
"pl-PL": pu,
|
|
773
|
+
"pt-BR": du,
|
|
774
|
+
"pt-PT": au,
|
|
775
|
+
"ro-RO": $u,
|
|
776
|
+
"ru-RU": bu,
|
|
777
|
+
"sk-SK": Cu,
|
|
778
|
+
"sl-SI": xu,
|
|
779
|
+
"sr-SP": fu,
|
|
780
|
+
"sv-SE": hu,
|
|
781
|
+
"tr-TR": mu,
|
|
782
|
+
"uk-UA": vu,
|
|
783
|
+
"zh-CN": Au,
|
|
784
|
+
"zh-TW": yu
|
|
785
|
+
};
|
|
786
|
+
function Oo(e) {
|
|
787
|
+
return e && e.__esModule ? e.default : e;
|
|
788
|
+
}
|
|
789
|
+
function Io(e, u) {
|
|
790
|
+
let { buttonRef: o, popoverRef: l, inputRef: n, listBoxRef: c, keyboardDelegate: $, layoutDelegate: s, shouldFocusWrap: t, isReadOnly: v, isDisabled: w } = e, b = L(null);
|
|
791
|
+
o = o ?? b;
|
|
792
|
+
let y = go(Oo(Bu), "@react-aria/combobox"), { menuTriggerProps: x, menuProps: B } = ho({
|
|
793
|
+
type: "listbox",
|
|
794
|
+
isDisabled: w || v
|
|
795
|
+
}, u, o);
|
|
796
|
+
qu.set(u, {
|
|
797
|
+
id: B.id
|
|
798
|
+
});
|
|
799
|
+
let { collection: a } = u, { disabledKeys: h } = u.selectionManager, p = pe(() => $ || new Uu({
|
|
800
|
+
collection: a,
|
|
801
|
+
disabledKeys: h,
|
|
802
|
+
ref: c,
|
|
803
|
+
layoutDelegate: s
|
|
804
|
+
}), [
|
|
805
|
+
$,
|
|
806
|
+
s,
|
|
807
|
+
a,
|
|
808
|
+
h,
|
|
809
|
+
c
|
|
810
|
+
]), { collectionProps: S } = Xu({
|
|
811
|
+
selectionManager: u.selectionManager,
|
|
812
|
+
keyboardDelegate: p,
|
|
813
|
+
disallowTypeAhead: !0,
|
|
814
|
+
disallowEmptySelection: !0,
|
|
815
|
+
shouldFocusWrap: t,
|
|
816
|
+
ref: n,
|
|
817
|
+
// Prevent item scroll behavior from being applied here, should be handled in the user's Popover + ListBox component
|
|
818
|
+
isVirtualized: !0
|
|
819
|
+
}), J = So(), oe = (d) => {
|
|
820
|
+
if (!d.nativeEvent.isComposing)
|
|
821
|
+
switch (d.key) {
|
|
822
|
+
case "Enter":
|
|
823
|
+
case "Tab":
|
|
824
|
+
if (u.isOpen && d.key === "Enter" && d.preventDefault(), u.isOpen && c.current && u.selectionManager.focusedKey != null && u.selectionManager.isLink(u.selectionManager.focusedKey)) {
|
|
825
|
+
let r = c.current.querySelector(`[data-key="${CSS.escape(u.selectionManager.focusedKey.toString())}"]`);
|
|
826
|
+
if (d.key === "Enter" && r instanceof HTMLAnchorElement) {
|
|
827
|
+
let m = u.collection.getItem(u.selectionManager.focusedKey);
|
|
828
|
+
m && J.open(r, d, m.props.href, m.props.routerOptions);
|
|
829
|
+
}
|
|
830
|
+
u.close();
|
|
831
|
+
} else u.commit();
|
|
832
|
+
break;
|
|
833
|
+
case "Escape":
|
|
834
|
+
(u.selectedKey !== null || u.inputValue === "" || e.allowsCustomValue) && d.continuePropagation(), u.revert();
|
|
835
|
+
break;
|
|
836
|
+
case "ArrowDown":
|
|
837
|
+
u.open("first", "manual");
|
|
838
|
+
break;
|
|
839
|
+
case "ArrowUp":
|
|
840
|
+
u.open("last", "manual");
|
|
841
|
+
break;
|
|
842
|
+
case "ArrowLeft":
|
|
843
|
+
case "ArrowRight":
|
|
844
|
+
u.selectionManager.setFocusedKey(null);
|
|
845
|
+
break;
|
|
846
|
+
}
|
|
847
|
+
}, W = (d) => {
|
|
848
|
+
var r;
|
|
849
|
+
let m = (o == null ? void 0 : o.current) && o.current === d.relatedTarget, P = (r = l.current) === null || r === void 0 ? void 0 : r.contains(d.relatedTarget);
|
|
850
|
+
m || P || (e.onBlur && e.onBlur(d), u.setFocused(!1));
|
|
851
|
+
}, q = (d) => {
|
|
852
|
+
u.isFocused || (e.onFocus && e.onFocus(d), u.setFocused(!0));
|
|
853
|
+
}, { isInvalid: R, validationErrors: A, validationDetails: Y } = u.displayValidation, { labelProps: K, inputProps: D, descriptionProps: Q, errorMessageProps: _ } = Lo({
|
|
854
|
+
...e,
|
|
855
|
+
onChange: u.setInputValue,
|
|
856
|
+
onKeyDown: v ? e.onKeyDown : Ao(u.isOpen && S.onKeyDown, oe, e.onKeyDown),
|
|
857
|
+
onBlur: W,
|
|
858
|
+
value: u.inputValue,
|
|
859
|
+
onFocus: q,
|
|
860
|
+
autoComplete: "off",
|
|
861
|
+
validate: void 0,
|
|
862
|
+
[xo]: u
|
|
863
|
+
}, n), U = (d) => {
|
|
864
|
+
if (d.pointerType === "touch") {
|
|
865
|
+
var r;
|
|
866
|
+
(r = n.current) === null || r === void 0 || r.focus(), u.toggle(null, "manual");
|
|
867
|
+
}
|
|
868
|
+
}, ne = (d) => {
|
|
869
|
+
if (d.pointerType !== "touch") {
|
|
870
|
+
var r;
|
|
871
|
+
(r = n.current) === null || r === void 0 || r.focus(), u.toggle(d.pointerType === "keyboard" || d.pointerType === "virtual" ? "first" : null, "manual");
|
|
872
|
+
}
|
|
873
|
+
}, C = Ee({
|
|
874
|
+
id: x.id,
|
|
875
|
+
"aria-label": y.format("buttonLabel"),
|
|
876
|
+
"aria-labelledby": e["aria-labelledby"] || K.id
|
|
877
|
+
}), g = Ee({
|
|
878
|
+
id: B.id,
|
|
879
|
+
"aria-label": y.format("listboxLabel"),
|
|
880
|
+
"aria-labelledby": e["aria-labelledby"] || K.id
|
|
881
|
+
}), z = L(0), X = (d) => {
|
|
882
|
+
if (w || v) return;
|
|
883
|
+
if (d.timeStamp - z.current < 500) {
|
|
884
|
+
var r;
|
|
885
|
+
d.preventDefault(), (r = n.current) === null || r === void 0 || r.focus();
|
|
886
|
+
return;
|
|
887
|
+
}
|
|
888
|
+
let m = d.target.getBoundingClientRect(), P = d.changedTouches[0], M = Math.ceil(m.left + 0.5 * m.width), ie = Math.ceil(m.top + 0.5 * m.height);
|
|
889
|
+
if (P.clientX === M && P.clientY === ie) {
|
|
890
|
+
var de;
|
|
891
|
+
d.preventDefault(), (de = n.current) === null || de === void 0 || de.focus(), u.toggle(null, "manual"), z.current = d.timeStamp;
|
|
892
|
+
}
|
|
893
|
+
}, T = u.selectionManager.focusedKey != null && u.isOpen ? u.collection.getItem(u.selectionManager.focusedKey) : void 0;
|
|
894
|
+
var k;
|
|
895
|
+
let O = (k = T == null ? void 0 : T.parentKey) !== null && k !== void 0 ? k : null;
|
|
896
|
+
var Z;
|
|
897
|
+
let N = (Z = u.selectionManager.focusedKey) !== null && Z !== void 0 ? Z : null, j = L(O), te = L(N);
|
|
898
|
+
se(() => {
|
|
899
|
+
if (be() && T != null && N != null && N !== te.current) {
|
|
900
|
+
let r = u.selectionManager.isSelected(N), m = O != null ? u.collection.getItem(O) : null, P = (m == null ? void 0 : m["aria-label"]) || (typeof (m == null ? void 0 : m.rendered) == "string" ? m.rendered : "") || "";
|
|
901
|
+
var d;
|
|
902
|
+
let M = y.format("focusAnnouncement", {
|
|
903
|
+
isGroupChange: (d = m && O !== j.current) !== null && d !== void 0 ? d : !1,
|
|
904
|
+
groupTitle: P,
|
|
905
|
+
groupCount: m ? [
|
|
906
|
+
...Oe(m, u.collection)
|
|
907
|
+
].length : 0,
|
|
908
|
+
optionText: T["aria-label"] || T.textValue || "",
|
|
909
|
+
isSelected: r
|
|
910
|
+
});
|
|
911
|
+
$e(M);
|
|
912
|
+
}
|
|
913
|
+
j.current = O, te.current = N;
|
|
914
|
+
});
|
|
915
|
+
let I = Zu(u.collection), le = L(I), re = L(u.isOpen);
|
|
916
|
+
se(() => {
|
|
917
|
+
let d = u.isOpen !== re.current && (u.selectionManager.focusedKey == null || be());
|
|
918
|
+
if (u.isOpen && (d || I !== le.current)) {
|
|
919
|
+
let r = y.format("countAnnouncement", {
|
|
920
|
+
optionCount: I
|
|
921
|
+
});
|
|
922
|
+
$e(r);
|
|
923
|
+
}
|
|
924
|
+
le.current = I, re.current = u.isOpen;
|
|
925
|
+
});
|
|
926
|
+
let G = L(u.selectedKey);
|
|
927
|
+
return se(() => {
|
|
928
|
+
if (be() && u.isFocused && u.selectedItem && u.selectedKey !== G.current) {
|
|
929
|
+
let d = u.selectedItem["aria-label"] || u.selectedItem.textValue || "", r = y.format("selectedAnnouncement", {
|
|
930
|
+
optionText: d
|
|
931
|
+
});
|
|
932
|
+
$e(r);
|
|
933
|
+
}
|
|
934
|
+
G.current = u.selectedKey;
|
|
935
|
+
}), se(() => {
|
|
936
|
+
if (u.isOpen) return co([
|
|
937
|
+
n.current,
|
|
938
|
+
l.current
|
|
939
|
+
].filter((d) => d != null));
|
|
940
|
+
}, [
|
|
941
|
+
u.isOpen,
|
|
942
|
+
n,
|
|
943
|
+
l
|
|
944
|
+
]), Fo(() => {
|
|
945
|
+
!T && n.current && Eo(To(n.current)) === n.current && Hu(n.current, null);
|
|
946
|
+
}, [
|
|
947
|
+
T
|
|
948
|
+
]), {
|
|
949
|
+
labelProps: K,
|
|
950
|
+
buttonProps: {
|
|
951
|
+
...x,
|
|
952
|
+
...C,
|
|
953
|
+
excludeFromTabOrder: !0,
|
|
954
|
+
preventFocusOnPress: !0,
|
|
955
|
+
onPress: U,
|
|
956
|
+
onPressStart: ne,
|
|
957
|
+
isDisabled: w || v
|
|
958
|
+
},
|
|
959
|
+
inputProps: fe(D, {
|
|
960
|
+
role: "combobox",
|
|
961
|
+
"aria-expanded": x["aria-expanded"],
|
|
962
|
+
"aria-controls": u.isOpen ? B.id : void 0,
|
|
963
|
+
// TODO: readd proper logic for completionMode = complete (aria-autocomplete: both)
|
|
964
|
+
"aria-autocomplete": "list",
|
|
965
|
+
"aria-activedescendant": T ? Ju(u, T.key) : void 0,
|
|
966
|
+
onTouchEnd: X,
|
|
967
|
+
// This disable's iOS's autocorrect suggestions, since the combo box provides its own suggestions.
|
|
968
|
+
autoCorrect: "off",
|
|
969
|
+
// This disable's the macOS Safari spell check auto corrections.
|
|
970
|
+
spellCheck: "false"
|
|
971
|
+
}),
|
|
972
|
+
listBoxProps: fe(B, g, {
|
|
973
|
+
autoFocus: u.focusStrategy || !0,
|
|
974
|
+
shouldUseVirtualFocus: !0,
|
|
975
|
+
shouldSelectOnPressUp: !0,
|
|
976
|
+
shouldFocusOnHover: !0,
|
|
977
|
+
linkBehavior: "selection"
|
|
978
|
+
}),
|
|
979
|
+
descriptionProps: Q,
|
|
980
|
+
errorMessageProps: _,
|
|
981
|
+
isInvalid: R,
|
|
982
|
+
validationErrors: A,
|
|
983
|
+
validationDetails: Y
|
|
984
|
+
};
|
|
985
|
+
}
|
|
986
|
+
function Go(e) {
|
|
987
|
+
var u;
|
|
988
|
+
let { defaultFilter: o, menuTrigger: l = "input", allowsEmptyCollection: n = !1, allowsCustomValue: c, shouldCloseOnBlur: $ = !0 } = e, [s, t] = ee(!1), [v, w] = ee(!1), [b, y] = ee(null), x = (f) => {
|
|
989
|
+
e.onSelectionChange && e.onSelectionChange(f), f === p && (N(), k());
|
|
990
|
+
};
|
|
991
|
+
var B;
|
|
992
|
+
let { collection: a, selectionManager: h, selectedKey: p, setSelectedKey: S, selectedItem: J, disabledKeys: oe } = mo({
|
|
993
|
+
...e,
|
|
994
|
+
onSelectionChange: x,
|
|
995
|
+
items: (B = e.items) !== null && B !== void 0 ? B : e.defaultItems
|
|
996
|
+
}), W = e.defaultInputValue;
|
|
997
|
+
if (W == null) {
|
|
998
|
+
var q, R;
|
|
999
|
+
p == null ? W = "" : W = (R = (q = a.getItem(p)) === null || q === void 0 ? void 0 : q.textValue) !== null && R !== void 0 ? R : "";
|
|
1000
|
+
}
|
|
1001
|
+
let [A, Y] = vo(e.inputValue, W, e.onInputChange), K = a, D = pe(() => (
|
|
1002
|
+
// No default filter if items are controlled.
|
|
1003
|
+
e.items != null || !o ? a : Mo(a, A, o)
|
|
1004
|
+
), [
|
|
1005
|
+
a,
|
|
1006
|
+
A,
|
|
1007
|
+
o,
|
|
1008
|
+
e.items
|
|
1009
|
+
]), [Q, _] = ee(D), U = L("focus"), C = bo({
|
|
1010
|
+
...e,
|
|
1011
|
+
onOpenChange: (f) => {
|
|
1012
|
+
e.onOpenChange && e.onOpenChange(f, f ? U.current : void 0), h.setFocused(f), f || h.setFocusedKey(null);
|
|
1013
|
+
},
|
|
1014
|
+
isOpen: void 0,
|
|
1015
|
+
defaultOpen: void 0
|
|
1016
|
+
}), g = (f = null, E) => {
|
|
1017
|
+
let F = E === "manual" || E === "focus" && l === "focus";
|
|
1018
|
+
(n || D.size > 0 || F && K.size > 0 || e.items) && (F && !C.isOpen && e.items === void 0 && t(!0), U.current = E, y(f), C.open());
|
|
1019
|
+
}, z = (f = null, E) => {
|
|
1020
|
+
let F = E === "manual" || E === "focus" && l === "focus";
|
|
1021
|
+
!(n || D.size > 0 || F && K.size > 0 || e.items) && !C.isOpen || (F && !C.isOpen && e.items === void 0 && t(!0), C.isOpen || (U.current = E), T(f));
|
|
1022
|
+
}, X = V(() => {
|
|
1023
|
+
_(s ? K : D);
|
|
1024
|
+
}, [
|
|
1025
|
+
s,
|
|
1026
|
+
K,
|
|
1027
|
+
D
|
|
1028
|
+
]), T = V((f = null) => {
|
|
1029
|
+
C.isOpen && X(), y(f), C.toggle();
|
|
1030
|
+
}, [
|
|
1031
|
+
C,
|
|
1032
|
+
X
|
|
1033
|
+
]), k = V(() => {
|
|
1034
|
+
C.isOpen && (X(), C.close());
|
|
1035
|
+
}, [
|
|
1036
|
+
C,
|
|
1037
|
+
X
|
|
1038
|
+
]), [O, Z] = ee(A), N = () => {
|
|
1039
|
+
var f, E;
|
|
1040
|
+
let F = p != null && (E = (f = a.getItem(p)) === null || f === void 0 ? void 0 : f.textValue) !== null && E !== void 0 ? E : "";
|
|
1041
|
+
Z(F), Y(F);
|
|
1042
|
+
};
|
|
1043
|
+
var j, te;
|
|
1044
|
+
let I = L((te = (j = e.selectedKey) !== null && j !== void 0 ? j : e.defaultSelectedKey) !== null && te !== void 0 ? te : null);
|
|
1045
|
+
var le;
|
|
1046
|
+
let re = L(p != null && (le = (u = a.getItem(p)) === null || u === void 0 ? void 0 : u.textValue) !== null && le !== void 0 ? le : "");
|
|
1047
|
+
se(() => {
|
|
1048
|
+
var f;
|
|
1049
|
+
v && (D.size > 0 || n) && !C.isOpen && A !== O && l !== "manual" && g(null, "input"), !s && !n && C.isOpen && D.size === 0 && k(), p != null && p !== I.current && k(), A !== O && (h.setFocusedKey(null), t(!1), A === "" && (e.inputValue === void 0 || e.selectedKey === void 0) && S(null)), p !== I.current && (e.inputValue === void 0 || e.selectedKey === void 0) ? N() : O !== A && Z(A);
|
|
1050
|
+
var E;
|
|
1051
|
+
let F = p != null && (E = (f = a.getItem(p)) === null || f === void 0 ? void 0 : f.textValue) !== null && E !== void 0 ? E : "";
|
|
1052
|
+
!v && p != null && e.inputValue === void 0 && p === I.current && re.current !== F && (Z(F), Y(F)), I.current = p, re.current = F;
|
|
1053
|
+
});
|
|
1054
|
+
let G = fo({
|
|
1055
|
+
...e,
|
|
1056
|
+
value: pe(() => ({
|
|
1057
|
+
inputValue: A,
|
|
1058
|
+
selectedKey: p
|
|
1059
|
+
}), [
|
|
1060
|
+
A,
|
|
1061
|
+
p
|
|
1062
|
+
])
|
|
1063
|
+
}), d = () => {
|
|
1064
|
+
c && p == null ? r() : m();
|
|
1065
|
+
}, r = () => {
|
|
1066
|
+
I.current = null, S(null), k();
|
|
1067
|
+
}, m = () => {
|
|
1068
|
+
if (e.selectedKey !== void 0 && e.inputValue !== void 0) {
|
|
1069
|
+
var f, E;
|
|
1070
|
+
(f = e.onSelectionChange) === null || f === void 0 || f.call(e, p);
|
|
1071
|
+
var F;
|
|
1072
|
+
let wu = p != null && (F = (E = a.getItem(p)) === null || E === void 0 ? void 0 : E.textValue) !== null && F !== void 0 ? F : "";
|
|
1073
|
+
Z(wu), k();
|
|
1074
|
+
} else
|
|
1075
|
+
N(), k();
|
|
1076
|
+
};
|
|
1077
|
+
const P = () => {
|
|
1078
|
+
if (c) {
|
|
1079
|
+
var f, E;
|
|
1080
|
+
const F = p != null && (E = (f = a.getItem(p)) === null || f === void 0 ? void 0 : f.textValue) !== null && E !== void 0 ? E : "";
|
|
1081
|
+
A === F ? m() : r();
|
|
1082
|
+
} else
|
|
1083
|
+
m();
|
|
1084
|
+
};
|
|
1085
|
+
let M = () => {
|
|
1086
|
+
C.isOpen && h.focusedKey != null ? p === h.focusedKey ? m() : S(h.focusedKey) : P();
|
|
1087
|
+
}, ie = L(A), de = (f) => {
|
|
1088
|
+
f ? (ie.current = A, l === "focus" && !e.isReadOnly && g(null, "focus")) : ($ && P(), A !== ie.current && G.commitValidation()), w(f);
|
|
1089
|
+
}, Lu = pe(() => C.isOpen ? s ? K : D : Q, [
|
|
1090
|
+
C.isOpen,
|
|
1091
|
+
K,
|
|
1092
|
+
D,
|
|
1093
|
+
s,
|
|
1094
|
+
Q
|
|
1095
|
+
]);
|
|
1096
|
+
return {
|
|
1097
|
+
...G,
|
|
1098
|
+
...C,
|
|
1099
|
+
focusStrategy: b,
|
|
1100
|
+
toggle: z,
|
|
1101
|
+
open: g,
|
|
1102
|
+
close: P,
|
|
1103
|
+
selectionManager: h,
|
|
1104
|
+
selectedKey: p,
|
|
1105
|
+
setSelectedKey: S,
|
|
1106
|
+
disabledKeys: oe,
|
|
1107
|
+
isFocused: v,
|
|
1108
|
+
setFocused: de,
|
|
1109
|
+
selectedItem: J,
|
|
1110
|
+
collection: Lu,
|
|
1111
|
+
inputValue: A,
|
|
1112
|
+
setInputValue: Y,
|
|
1113
|
+
commit: M,
|
|
1114
|
+
revert: d
|
|
1115
|
+
};
|
|
1116
|
+
}
|
|
1117
|
+
function Mo(e, u, o) {
|
|
1118
|
+
return new Yu(Eu(e, e, u, o));
|
|
1119
|
+
}
|
|
1120
|
+
function Eu(e, u, o, l) {
|
|
1121
|
+
let n = [];
|
|
1122
|
+
for (let c of u)
|
|
1123
|
+
if (c.type === "section" && c.hasChildNodes) {
|
|
1124
|
+
let $ = Eu(e, Oe(c, e), o, l);
|
|
1125
|
+
[
|
|
1126
|
+
...$
|
|
1127
|
+
].some((s) => s.type === "item") && n.push({
|
|
1128
|
+
...c,
|
|
1129
|
+
childNodes: $
|
|
1130
|
+
});
|
|
1131
|
+
} else c.type === "item" && l(c.textValue, o) ? n.push({
|
|
1132
|
+
...c
|
|
1133
|
+
}) : c.type !== "item" && n.push({
|
|
1134
|
+
...c
|
|
1135
|
+
});
|
|
1136
|
+
return n;
|
|
1137
|
+
}
|
|
1138
|
+
const Vo = /* @__PURE__ */ Se(null), Ae = /* @__PURE__ */ Se(null), Ro = /* @__PURE__ */ Iu(function(u, o) {
|
|
1139
|
+
[u, o] = Le(u, o, Vo);
|
|
1140
|
+
let { children: l, isDisabled: n = !1, isInvalid: c = !1, isRequired: $ = !1 } = u, s = pe(() => {
|
|
1141
|
+
var t;
|
|
1142
|
+
return /* @__PURE__ */ H.createElement(Ie.Provider, {
|
|
1143
|
+
value: {
|
|
1144
|
+
items: (t = u.items) !== null && t !== void 0 ? t : u.defaultItems
|
|
1145
|
+
}
|
|
1146
|
+
}, typeof l == "function" ? l({
|
|
1147
|
+
isOpen: !1,
|
|
1148
|
+
isDisabled: n,
|
|
1149
|
+
isInvalid: c,
|
|
1150
|
+
isRequired: $,
|
|
1151
|
+
defaultChildren: null
|
|
1152
|
+
}) : l);
|
|
1153
|
+
}, [
|
|
1154
|
+
l,
|
|
1155
|
+
n,
|
|
1156
|
+
c,
|
|
1157
|
+
$,
|
|
1158
|
+
u.items,
|
|
1159
|
+
u.defaultItems
|
|
1160
|
+
]);
|
|
1161
|
+
return /* @__PURE__ */ H.createElement(Qu, {
|
|
1162
|
+
content: s
|
|
1163
|
+
}, (t) => /* @__PURE__ */ H.createElement(zo, {
|
|
1164
|
+
props: u,
|
|
1165
|
+
collection: t,
|
|
1166
|
+
comboBoxRef: o
|
|
1167
|
+
}));
|
|
1168
|
+
}), jo = [
|
|
1169
|
+
we,
|
|
1170
|
+
ge,
|
|
1171
|
+
me,
|
|
1172
|
+
Pe,
|
|
1173
|
+
Ve
|
|
1174
|
+
];
|
|
1175
|
+
function zo({ props: e, collection: u, comboBoxRef: o }) {
|
|
1176
|
+
let { name: l, formValue: n = "key", allowsCustomValue: c } = e;
|
|
1177
|
+
c && (n = "text");
|
|
1178
|
+
let { validationBehavior: $ } = Mu(Nu) || {};
|
|
1179
|
+
var s, t;
|
|
1180
|
+
let v = (t = (s = e.validationBehavior) !== null && s !== void 0 ? s : $) !== null && t !== void 0 ? t : "native", { contains: w } = ke({
|
|
1181
|
+
sensitivity: "base"
|
|
1182
|
+
}), b = Go({
|
|
1183
|
+
defaultFilter: e.defaultFilter || w,
|
|
1184
|
+
...e,
|
|
1185
|
+
// If props.items isn't provided, rely on collection filtering (aka listbox.items is provided or defaultItems provided to Combobox)
|
|
1186
|
+
items: e.items,
|
|
1187
|
+
children: void 0,
|
|
1188
|
+
collection: u,
|
|
1189
|
+
validationBehavior: v
|
|
1190
|
+
}), y = L(null), x = L(null), B = L(null), a = L(null), [h, p] = Vu(!e["aria-label"] && !e["aria-labelledby"]), { buttonProps: S, inputProps: J, listBoxProps: oe, labelProps: W, descriptionProps: q, errorMessageProps: R, ...A } = Io({
|
|
1191
|
+
...Ru(e),
|
|
1192
|
+
label: p,
|
|
1193
|
+
inputRef: x,
|
|
1194
|
+
buttonRef: y,
|
|
1195
|
+
listBoxRef: B,
|
|
1196
|
+
popoverRef: a,
|
|
1197
|
+
name: n === "text" ? l : void 0,
|
|
1198
|
+
validationBehavior: v
|
|
1199
|
+
}, b), [Y, K] = ee(null), D = V(() => {
|
|
1200
|
+
if (x.current) {
|
|
1201
|
+
var C;
|
|
1202
|
+
let g = (C = y.current) === null || C === void 0 ? void 0 : C.getBoundingClientRect(), z = x.current.getBoundingClientRect(), X = g ? Math.min(g.left, z.left) : z.left, T = g ? Math.max(g.right, z.right) : z.right;
|
|
1203
|
+
K(T - X + "px");
|
|
1204
|
+
}
|
|
1205
|
+
}, [
|
|
1206
|
+
y,
|
|
1207
|
+
x,
|
|
1208
|
+
K
|
|
1209
|
+
]);
|
|
1210
|
+
Co({
|
|
1211
|
+
ref: x,
|
|
1212
|
+
onResize: D
|
|
1213
|
+
});
|
|
1214
|
+
let Q = pe(() => ({
|
|
1215
|
+
isOpen: b.isOpen,
|
|
1216
|
+
isDisabled: e.isDisabled || !1,
|
|
1217
|
+
isInvalid: A.isInvalid || !1,
|
|
1218
|
+
isRequired: e.isRequired || !1
|
|
1219
|
+
}), [
|
|
1220
|
+
b.isOpen,
|
|
1221
|
+
e.isDisabled,
|
|
1222
|
+
A.isInvalid,
|
|
1223
|
+
e.isRequired
|
|
1224
|
+
]), _ = ju({
|
|
1225
|
+
...e,
|
|
1226
|
+
values: Q,
|
|
1227
|
+
defaultClassName: "react-aria-ComboBox"
|
|
1228
|
+
}), U = $o(e);
|
|
1229
|
+
delete U.id;
|
|
1230
|
+
var ne;
|
|
1231
|
+
return /* @__PURE__ */ H.createElement(zu, {
|
|
1232
|
+
values: [
|
|
1233
|
+
[
|
|
1234
|
+
Ae,
|
|
1235
|
+
b
|
|
1236
|
+
],
|
|
1237
|
+
[
|
|
1238
|
+
we,
|
|
1239
|
+
{
|
|
1240
|
+
...W,
|
|
1241
|
+
ref: h
|
|
1242
|
+
}
|
|
1243
|
+
],
|
|
1244
|
+
[
|
|
1245
|
+
ge,
|
|
1246
|
+
{
|
|
1247
|
+
...S,
|
|
1248
|
+
ref: y,
|
|
1249
|
+
isPressed: b.isOpen
|
|
1250
|
+
}
|
|
1251
|
+
],
|
|
1252
|
+
[
|
|
1253
|
+
me,
|
|
1254
|
+
{
|
|
1255
|
+
...J,
|
|
1256
|
+
ref: x
|
|
1257
|
+
}
|
|
1258
|
+
],
|
|
1259
|
+
[
|
|
1260
|
+
ro,
|
|
1261
|
+
b
|
|
1262
|
+
],
|
|
1263
|
+
[
|
|
1264
|
+
so,
|
|
1265
|
+
{
|
|
1266
|
+
ref: a,
|
|
1267
|
+
triggerRef: x,
|
|
1268
|
+
scrollRef: B,
|
|
1269
|
+
placement: "bottom start",
|
|
1270
|
+
isNonModal: !0,
|
|
1271
|
+
trigger: "ComboBox",
|
|
1272
|
+
style: {
|
|
1273
|
+
"--trigger-width": Y
|
|
1274
|
+
},
|
|
1275
|
+
clearContexts: jo
|
|
1276
|
+
}
|
|
1277
|
+
],
|
|
1278
|
+
[
|
|
1279
|
+
Ie,
|
|
1280
|
+
{
|
|
1281
|
+
...oe,
|
|
1282
|
+
ref: B
|
|
1283
|
+
}
|
|
1284
|
+
],
|
|
1285
|
+
[
|
|
1286
|
+
_u,
|
|
1287
|
+
b
|
|
1288
|
+
],
|
|
1289
|
+
[
|
|
1290
|
+
Ve,
|
|
1291
|
+
{
|
|
1292
|
+
slots: {
|
|
1293
|
+
description: q,
|
|
1294
|
+
errorMessage: R
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
],
|
|
1298
|
+
[
|
|
1299
|
+
Pe,
|
|
1300
|
+
{
|
|
1301
|
+
isInvalid: A.isInvalid,
|
|
1302
|
+
isDisabled: e.isDisabled || !1
|
|
1303
|
+
}
|
|
1304
|
+
],
|
|
1305
|
+
[
|
|
1306
|
+
Wu,
|
|
1307
|
+
A
|
|
1308
|
+
]
|
|
1309
|
+
]
|
|
1310
|
+
}, /* @__PURE__ */ H.createElement("div", {
|
|
1311
|
+
...U,
|
|
1312
|
+
..._,
|
|
1313
|
+
ref: o,
|
|
1314
|
+
slot: e.slot || void 0,
|
|
1315
|
+
"data-focused": b.isFocused || void 0,
|
|
1316
|
+
"data-open": b.isOpen || void 0,
|
|
1317
|
+
"data-disabled": e.isDisabled || void 0,
|
|
1318
|
+
"data-invalid": A.isInvalid || void 0,
|
|
1319
|
+
"data-required": e.isRequired || void 0
|
|
1320
|
+
}), l && n === "key" && /* @__PURE__ */ H.createElement("input", {
|
|
1321
|
+
type: "hidden",
|
|
1322
|
+
name: l,
|
|
1323
|
+
value: (ne = b.selectedKey) !== null && ne !== void 0 ? ne : ""
|
|
1324
|
+
}));
|
|
1325
|
+
}
|
|
1326
|
+
const { withProvider: No, withContext: ue } = /* @__PURE__ */ ku({
|
|
1327
|
+
key: "combobox"
|
|
1328
|
+
}), Wo = /* @__PURE__ */ No("div", "root"), Tu = /* @__PURE__ */ ue("div", "value"), Du = /* @__PURE__ */ ue("div", "buttonGroup"), qo = /* @__PURE__ */ ue("div", "popover"), Uo = /* @__PURE__ */ ue("input", "multiSelectInput"), Xo = /* @__PURE__ */ ue("div", "options"), Zo = /* @__PURE__ */ ue("div", "optionGroup"), Ho = /* @__PURE__ */ ue("div", "option"), Jo = /* @__PURE__ */ ue("span", "optionIndicator"), Yo = /* @__PURE__ */ ue("span", "optionContent"), Qo = (e) => {
|
|
1329
|
+
const {
|
|
1330
|
+
placeholder: u,
|
|
1331
|
+
inputValue: o,
|
|
1332
|
+
allowsCustomValue: l,
|
|
1333
|
+
onSubmitCustomValue: n,
|
|
1334
|
+
onInputChange: c,
|
|
1335
|
+
ref: $
|
|
1336
|
+
} = e, [s, t] = Le({}, $ || null, me), v = Fe(Ae), w = V(
|
|
1337
|
+
// This method clears the input if the user has focused on a pre-populated combobox and starts typing
|
|
1338
|
+
(b) => {
|
|
1339
|
+
if (v != null && v.selectedKey && t.current && // cursor is at the beginning of input...
|
|
1340
|
+
t.current.selectionStart === 0 && t.current.selectionEnd === 0 && // ...and it has a value, which can only happen on focus
|
|
1341
|
+
t.current.value.length > 0 && b.key.length === 1 && // Single character key
|
|
1342
|
+
!b.ctrlKey && !b.metaKey && !b.altKey) {
|
|
1343
|
+
b.preventDefault(), b.stopPropagation(), v.setInputValue(b.key);
|
|
1344
|
+
return;
|
|
1345
|
+
}
|
|
1346
|
+
if (b.key === "Enter" && o && (o == null ? void 0 : o.trim()) !== "" && c && l && n && v)
|
|
1347
|
+
if (v.collection) {
|
|
1348
|
+
const x = Array.from(v.collection).find((B) => B.textValue.toLowerCase() === o.toLowerCase());
|
|
1349
|
+
x ? v.setSelectedKey(x.key) : n(o);
|
|
1350
|
+
} else
|
|
1351
|
+
n(o);
|
|
1352
|
+
},
|
|
1353
|
+
[o, c, l, n, v]
|
|
1354
|
+
);
|
|
1355
|
+
return /* @__PURE__ */ i(Tu, { asChild: !0, children: /* @__PURE__ */ i(
|
|
1356
|
+
Ke,
|
|
1357
|
+
{
|
|
1358
|
+
ref: t,
|
|
1359
|
+
...s,
|
|
1360
|
+
onKeyDown: w,
|
|
1361
|
+
placeholder: u
|
|
1362
|
+
}
|
|
1363
|
+
) });
|
|
1364
|
+
}, ye = ({
|
|
1365
|
+
children: e,
|
|
1366
|
+
ref: u,
|
|
1367
|
+
...o
|
|
1368
|
+
}) => {
|
|
1369
|
+
const [l, n] = ve(o);
|
|
1370
|
+
return /* @__PURE__ */ i(Xo, { ...l, asChild: !0, children: /* @__PURE__ */ i(eo, { ref: u, ...n, children: e }) });
|
|
1371
|
+
};
|
|
1372
|
+
ye.displayName = "ComboBox.Options";
|
|
1373
|
+
const _o = ({
|
|
1374
|
+
isDisabled: e,
|
|
1375
|
+
isReadOnly: u,
|
|
1376
|
+
isLoading: o
|
|
1377
|
+
}) => {
|
|
1378
|
+
const l = Fe(Ae);
|
|
1379
|
+
return /* @__PURE__ */ ce(Du, { children: [
|
|
1380
|
+
(l == null ? void 0 : l.selectedKey) && /* @__PURE__ */ i(
|
|
1381
|
+
he,
|
|
1382
|
+
{
|
|
1383
|
+
pointerEvents: "all",
|
|
1384
|
+
slot: null,
|
|
1385
|
+
size: "2xs",
|
|
1386
|
+
variant: "ghost",
|
|
1387
|
+
tone: "primary",
|
|
1388
|
+
"aria-label": "Clear Selection",
|
|
1389
|
+
isDisabled: e || u,
|
|
1390
|
+
_expanded: { bg: "transparent" },
|
|
1391
|
+
onPress: () => l == null ? void 0 : l.setSelectedKey(null),
|
|
1392
|
+
my: "auto",
|
|
1393
|
+
children: /* @__PURE__ */ i(Re, {})
|
|
1394
|
+
}
|
|
1395
|
+
),
|
|
1396
|
+
o ? /* @__PURE__ */ i(De, { my: "auto", w: "600", h: "600", children: /* @__PURE__ */ i(ae, { color: "neutral.11", asChild: !0, m: "auto", w: "400", h: "400", children: /* @__PURE__ */ i(
|
|
1397
|
+
ae,
|
|
1398
|
+
{
|
|
1399
|
+
asChild: !0,
|
|
1400
|
+
animation: "spin",
|
|
1401
|
+
animationDuration: "slowest",
|
|
1402
|
+
"data-testid": "nimbus-combobox-loading",
|
|
1403
|
+
children: /* @__PURE__ */ i(je, {})
|
|
1404
|
+
}
|
|
1405
|
+
) }) }) : /* @__PURE__ */ i(
|
|
1406
|
+
he,
|
|
1407
|
+
{
|
|
1408
|
+
size: "2xs",
|
|
1409
|
+
variant: "ghost",
|
|
1410
|
+
"aria-label": "toggle combobox",
|
|
1411
|
+
tone: "neutral",
|
|
1412
|
+
my: "auto",
|
|
1413
|
+
isDisabled: e || u,
|
|
1414
|
+
_expanded: { bg: "transparent" },
|
|
1415
|
+
children: /* @__PURE__ */ i(ze, {})
|
|
1416
|
+
}
|
|
1417
|
+
)
|
|
1418
|
+
] });
|
|
1419
|
+
}, en = ({
|
|
1420
|
+
children: e,
|
|
1421
|
+
inputValue: u,
|
|
1422
|
+
onInputChange: o,
|
|
1423
|
+
placeholder: l,
|
|
1424
|
+
allowsCustomValue: n,
|
|
1425
|
+
onSubmitCustomValue: c,
|
|
1426
|
+
renderEmptyState: $,
|
|
1427
|
+
shouldFocusWrap: s = !0,
|
|
1428
|
+
isLoading: t,
|
|
1429
|
+
ref: v,
|
|
1430
|
+
...w
|
|
1431
|
+
}) => {
|
|
1432
|
+
if (c && (u === void 0 || !o))
|
|
1433
|
+
throw new Error(
|
|
1434
|
+
'ComboBox: When "onSubmitCustomValue" is provided, "inputValue" must be controlled with "onInputChange"'
|
|
1435
|
+
);
|
|
1436
|
+
const b = L(null), y = V(() => {
|
|
1437
|
+
b.current && b.current.value && requestAnimationFrame(() => {
|
|
1438
|
+
var x;
|
|
1439
|
+
return (x = b.current) == null ? void 0 : x.setSelectionRange(0, 0);
|
|
1440
|
+
});
|
|
1441
|
+
}, [b]);
|
|
1442
|
+
return /* @__PURE__ */ ce(
|
|
1443
|
+
Ro,
|
|
1444
|
+
{
|
|
1445
|
+
inputValue: u,
|
|
1446
|
+
onInputChange: o,
|
|
1447
|
+
onFocus: y,
|
|
1448
|
+
allowsCustomValue: n,
|
|
1449
|
+
menuTrigger: "focus",
|
|
1450
|
+
shouldFocusWrap: s,
|
|
1451
|
+
...w,
|
|
1452
|
+
ref: v,
|
|
1453
|
+
children: [
|
|
1454
|
+
/* @__PURE__ */ i(
|
|
1455
|
+
Qo,
|
|
1456
|
+
{
|
|
1457
|
+
ref: b,
|
|
1458
|
+
placeholder: l,
|
|
1459
|
+
inputValue: u,
|
|
1460
|
+
allowsCustomValue: n,
|
|
1461
|
+
onSubmitCustomValue: c,
|
|
1462
|
+
onInputChange: o
|
|
1463
|
+
}
|
|
1464
|
+
),
|
|
1465
|
+
/* @__PURE__ */ i(
|
|
1466
|
+
_o,
|
|
1467
|
+
{
|
|
1468
|
+
isLoading: t,
|
|
1469
|
+
isDisabled: w.isDisabled,
|
|
1470
|
+
isReadOnly: w.isReadOnly
|
|
1471
|
+
}
|
|
1472
|
+
),
|
|
1473
|
+
/* @__PURE__ */ i(Ge, { children: /* @__PURE__ */ i(ye, { renderEmptyState: $, children: e }) })
|
|
1474
|
+
]
|
|
1475
|
+
}
|
|
1476
|
+
);
|
|
1477
|
+
};
|
|
1478
|
+
function Te(e) {
|
|
1479
|
+
return e != null && typeof e == "object" && "children" in e && Array.isArray(e.children);
|
|
1480
|
+
}
|
|
1481
|
+
function xe(e, u, o) {
|
|
1482
|
+
if (e) {
|
|
1483
|
+
if (!Object.prototype.hasOwnProperty.call(e, "id") && u === "id")
|
|
1484
|
+
throw new Error(
|
|
1485
|
+
"ComboBox: if items do not have an `id` key, you must specify which key uniquely identifies items using the `itemId` prop"
|
|
1486
|
+
);
|
|
1487
|
+
if (!Object.prototype.hasOwnProperty.call(e, "name") && o === "name")
|
|
1488
|
+
throw new Error(
|
|
1489
|
+
"ComboBox: if items do not have a `name` key, you must specify which key can be used as a text value using the `itemValue` prop"
|
|
1490
|
+
);
|
|
1491
|
+
}
|
|
1492
|
+
}
|
|
1493
|
+
const un = (
|
|
1494
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
1495
|
+
({
|
|
1496
|
+
selectedKeys: e = /* @__PURE__ */ new Set(),
|
|
1497
|
+
items: u,
|
|
1498
|
+
itemId: o = "id",
|
|
1499
|
+
itemValue: l = "name",
|
|
1500
|
+
placeholder: n,
|
|
1501
|
+
onSelectionChange: c,
|
|
1502
|
+
isDisabled: $,
|
|
1503
|
+
isReadOnly: s,
|
|
1504
|
+
size: t,
|
|
1505
|
+
containerRef: v,
|
|
1506
|
+
ref: w
|
|
1507
|
+
}) => {
|
|
1508
|
+
const b = pe(() => {
|
|
1509
|
+
if (!u) return [];
|
|
1510
|
+
const x = Array.from(e);
|
|
1511
|
+
if (Array.isArray(u)) {
|
|
1512
|
+
const a = u[0];
|
|
1513
|
+
if (a && Te(a)) {
|
|
1514
|
+
const p = [];
|
|
1515
|
+
return u.forEach((S) => {
|
|
1516
|
+
Te(S) && p.push(...S.children);
|
|
1517
|
+
}), xe(p == null ? void 0 : p[0], o, l), x.map((S) => p.find((J) => J[o] === S)).filter((S) => S !== void 0);
|
|
1518
|
+
}
|
|
1519
|
+
const h = u;
|
|
1520
|
+
return xe(h == null ? void 0 : h[0], o, l), x.map((p) => h.find((S) => S[o] === p)).filter((p) => p !== void 0);
|
|
1521
|
+
}
|
|
1522
|
+
const B = x.map((a) => Array.from(u).find((h) => h[o] === a)).filter((a) => a !== void 0);
|
|
1523
|
+
return xe(B == null ? void 0 : B[0], o, l), B;
|
|
1524
|
+
}, [u, e, o]), y = V(
|
|
1525
|
+
(x) => {
|
|
1526
|
+
if (!($ || s) && e instanceof Set) {
|
|
1527
|
+
const B = e, a = new Set(
|
|
1528
|
+
[...B].filter((h) => !x.has(h))
|
|
1529
|
+
);
|
|
1530
|
+
c == null || c(a), v != null && v.current && v.current.focus();
|
|
1531
|
+
}
|
|
1532
|
+
},
|
|
1533
|
+
[$, s, e, c]
|
|
1534
|
+
);
|
|
1535
|
+
return /* @__PURE__ */ i(Me, { children: /* @__PURE__ */ i(
|
|
1536
|
+
Tu,
|
|
1537
|
+
{
|
|
1538
|
+
asChild: !0,
|
|
1539
|
+
alignItems: "space-between",
|
|
1540
|
+
justifyContent: "center",
|
|
1541
|
+
ref: w,
|
|
1542
|
+
children: /* @__PURE__ */ i(
|
|
1543
|
+
Ce.Root,
|
|
1544
|
+
{
|
|
1545
|
+
size: t,
|
|
1546
|
+
onRemove: y,
|
|
1547
|
+
"aria-label": "Selected values",
|
|
1548
|
+
selectionMode: "none",
|
|
1549
|
+
disabledKeys: $ || s ? e : void 0,
|
|
1550
|
+
"data-disabled": $,
|
|
1551
|
+
children: /* @__PURE__ */ i(
|
|
1552
|
+
Ce.TagList,
|
|
1553
|
+
{
|
|
1554
|
+
items: b,
|
|
1555
|
+
dependencies: [o],
|
|
1556
|
+
maxW: "100%",
|
|
1557
|
+
tabIndex: b.length === 0 || $ || s ? -1 : void 0,
|
|
1558
|
+
renderEmptyState: () => n && /* @__PURE__ */ i(
|
|
1559
|
+
"div",
|
|
1560
|
+
{
|
|
1561
|
+
"data-placeholder": "true",
|
|
1562
|
+
style: {
|
|
1563
|
+
maxWidth: "100%",
|
|
1564
|
+
overflow: "hidden",
|
|
1565
|
+
textOverflow: "ellipsis"
|
|
1566
|
+
},
|
|
1567
|
+
children: n
|
|
1568
|
+
}
|
|
1569
|
+
),
|
|
1570
|
+
children: (x) => /* @__PURE__ */ i(Ce.Tag, { id: x[o], maxW: "100%", children: x[l] })
|
|
1571
|
+
}
|
|
1572
|
+
)
|
|
1573
|
+
}
|
|
1574
|
+
)
|
|
1575
|
+
}
|
|
1576
|
+
) });
|
|
1577
|
+
}
|
|
1578
|
+
), on = ({
|
|
1579
|
+
selectedKeys: e,
|
|
1580
|
+
onSelectionChange: u,
|
|
1581
|
+
onInputChange: o,
|
|
1582
|
+
containerRef: l,
|
|
1583
|
+
isDisabled: n,
|
|
1584
|
+
isReadOnly: c,
|
|
1585
|
+
isLoading: $
|
|
1586
|
+
}) => {
|
|
1587
|
+
const s = V(() => {
|
|
1588
|
+
u == null || u(/* @__PURE__ */ new Set()), o == null || o(""), l != null && l.current && l.current.focus();
|
|
1589
|
+
}, []);
|
|
1590
|
+
return /* @__PURE__ */ ce(Du, { children: [
|
|
1591
|
+
/* @__PURE__ */ i(Me, { children: e instanceof Set && e.size > 0 && /* @__PURE__ */ i(
|
|
1592
|
+
he,
|
|
1593
|
+
{
|
|
1594
|
+
pointerEvents: "all",
|
|
1595
|
+
slot: null,
|
|
1596
|
+
size: "2xs",
|
|
1597
|
+
variant: "ghost",
|
|
1598
|
+
tone: "primary",
|
|
1599
|
+
"aria-label": "Clear Selection",
|
|
1600
|
+
isDisabled: n || c,
|
|
1601
|
+
onPress: s,
|
|
1602
|
+
my: "auto",
|
|
1603
|
+
children: /* @__PURE__ */ i(Re, {})
|
|
1604
|
+
}
|
|
1605
|
+
) }),
|
|
1606
|
+
/* @__PURE__ */ i(
|
|
1607
|
+
De,
|
|
1608
|
+
{
|
|
1609
|
+
my: "auto",
|
|
1610
|
+
w: "600",
|
|
1611
|
+
h: "600",
|
|
1612
|
+
color: "neutral.11",
|
|
1613
|
+
opacity: c || n ? "0.5" : void 0,
|
|
1614
|
+
cursor: c || n ? "not-allowed" : void 0,
|
|
1615
|
+
children: /* @__PURE__ */ i(ae, { pointerEvents: "none", asChild: !0, m: "auto", w: "400", h: "400", children: $ ? /* @__PURE__ */ i(
|
|
1616
|
+
ae,
|
|
1617
|
+
{
|
|
1618
|
+
asChild: !0,
|
|
1619
|
+
animation: "spin",
|
|
1620
|
+
animationDuration: "slowest",
|
|
1621
|
+
"data-testid": "nimbus-combobox-loading",
|
|
1622
|
+
children: /* @__PURE__ */ i(je, {})
|
|
1623
|
+
}
|
|
1624
|
+
) : /* @__PURE__ */ i(ze, {}) })
|
|
1625
|
+
}
|
|
1626
|
+
)
|
|
1627
|
+
] });
|
|
1628
|
+
};
|
|
1629
|
+
function nn(e) {
|
|
1630
|
+
let u;
|
|
1631
|
+
for (u of e) ;
|
|
1632
|
+
return u;
|
|
1633
|
+
}
|
|
1634
|
+
const tn = ({
|
|
1635
|
+
children: e,
|
|
1636
|
+
defaultFilter: u,
|
|
1637
|
+
inputValue: o,
|
|
1638
|
+
defaultInputValue: l,
|
|
1639
|
+
onInputChange: n,
|
|
1640
|
+
defaultSelectedKeys: c = /* @__PURE__ */ new Set(),
|
|
1641
|
+
selectedKeys: $,
|
|
1642
|
+
onSelectionChange: s,
|
|
1643
|
+
onOpenChange: t,
|
|
1644
|
+
disabledKeys: v,
|
|
1645
|
+
items: w,
|
|
1646
|
+
defaultItems: b,
|
|
1647
|
+
itemId: y = "id",
|
|
1648
|
+
itemValue: x = "name",
|
|
1649
|
+
isLoading: B,
|
|
1650
|
+
isDisabled: a,
|
|
1651
|
+
isReadOnly: h,
|
|
1652
|
+
isRequired: p,
|
|
1653
|
+
isInvalid: S,
|
|
1654
|
+
className: J,
|
|
1655
|
+
placeholder: oe,
|
|
1656
|
+
size: W = "md",
|
|
1657
|
+
allowsCustomValue: q,
|
|
1658
|
+
onSubmitCustomValue: R,
|
|
1659
|
+
renderEmptyState: A,
|
|
1660
|
+
ref: Y,
|
|
1661
|
+
...K
|
|
1662
|
+
}) => {
|
|
1663
|
+
const [D, Q] = ee(!1), _ = L(!1), [U, ne] = ee(), C = $ ?? U ?? c, g = s ?? ne, [z, X] = ee(""), T = o ?? z ?? l, k = n ?? X, O = w ?? b, Z = ke({ sensitivity: "base" }), N = (...r) => Z.contains.apply(void 0, r), j = V(
|
|
1664
|
+
(r) => {
|
|
1665
|
+
if (a || h) {
|
|
1666
|
+
D && Q(!1);
|
|
1667
|
+
return;
|
|
1668
|
+
}
|
|
1669
|
+
t && (t == null || t(r)), Q(r), r || (_.current = !0, requestAnimationFrame(() => {
|
|
1670
|
+
setTimeout(() => {
|
|
1671
|
+
_.current = !1;
|
|
1672
|
+
}, 50);
|
|
1673
|
+
}));
|
|
1674
|
+
},
|
|
1675
|
+
[a, h, t, D]
|
|
1676
|
+
);
|
|
1677
|
+
se(() => {
|
|
1678
|
+
(a || h) && j(!1);
|
|
1679
|
+
}, [a, h]);
|
|
1680
|
+
const te = V(
|
|
1681
|
+
(r) => {
|
|
1682
|
+
a || h || r.target === r.currentTarget && !D && !_.current && j(!0);
|
|
1683
|
+
},
|
|
1684
|
+
[D]
|
|
1685
|
+
), I = V(() => {
|
|
1686
|
+
if (C !== "all" && C instanceof Set) {
|
|
1687
|
+
const r = nn(C);
|
|
1688
|
+
if (r != null) {
|
|
1689
|
+
const m = new Set(C);
|
|
1690
|
+
m.delete(r), g(m);
|
|
1691
|
+
}
|
|
1692
|
+
}
|
|
1693
|
+
}, [C, g]), le = V((r) => {
|
|
1694
|
+
(r.key === "ArrowDown" || r.key === "ArrowUp" || r.key === "Enter") && r.target === G.current && (r.preventDefault(), j(!0));
|
|
1695
|
+
}, []), re = V(
|
|
1696
|
+
(r) => {
|
|
1697
|
+
if (r.key === "Backspace" && T === "") {
|
|
1698
|
+
I();
|
|
1699
|
+
return;
|
|
1700
|
+
}
|
|
1701
|
+
if (r.key === "Escape") {
|
|
1702
|
+
j(!1), G.current && G.current.focus();
|
|
1703
|
+
return;
|
|
1704
|
+
}
|
|
1705
|
+
if (r.key === "Enter" && T.trim() !== "" && q && R)
|
|
1706
|
+
if (r.stopPropagation(), O) {
|
|
1707
|
+
const m = T.trim(), P = Array.from(O).find((M) => (typeof M == "object" && M !== null && x in M ? String(M[x]) : JSON.stringify(M)).toLowerCase() === m.toLowerCase());
|
|
1708
|
+
if (P) {
|
|
1709
|
+
const M = typeof P == "object" && P !== null && y in P ? P[y] : P, ie = new Set(C);
|
|
1710
|
+
ie.add(M), g(ie), k("");
|
|
1711
|
+
} else
|
|
1712
|
+
R(T), k("");
|
|
1713
|
+
} else
|
|
1714
|
+
R(T), k("");
|
|
1715
|
+
},
|
|
1716
|
+
[
|
|
1717
|
+
T,
|
|
1718
|
+
I,
|
|
1719
|
+
q,
|
|
1720
|
+
R,
|
|
1721
|
+
O,
|
|
1722
|
+
x,
|
|
1723
|
+
y,
|
|
1724
|
+
C,
|
|
1725
|
+
g,
|
|
1726
|
+
k
|
|
1727
|
+
]
|
|
1728
|
+
), G = L(null), d = Pu(Y, G);
|
|
1729
|
+
return /* @__PURE__ */ ce(po, { isOpen: D, onOpenChange: j, children: [
|
|
1730
|
+
/* @__PURE__ */ i(Ko, { allowTextSelectionOnPress: !0, children: /* @__PURE__ */ ce(
|
|
1731
|
+
"div",
|
|
1732
|
+
{
|
|
1733
|
+
className: J,
|
|
1734
|
+
tabIndex: a ? -1 : 0,
|
|
1735
|
+
ref: d,
|
|
1736
|
+
role: "combobox",
|
|
1737
|
+
onKeyDown: le,
|
|
1738
|
+
onFocus: te,
|
|
1739
|
+
"aria-expanded": D,
|
|
1740
|
+
"aria-haspopup": "dialog",
|
|
1741
|
+
"aria-disabled": a,
|
|
1742
|
+
"aria-readonly": h,
|
|
1743
|
+
"aria-required": p,
|
|
1744
|
+
"aria-invalid": S,
|
|
1745
|
+
"data-disabled": a,
|
|
1746
|
+
"data-invalid": S,
|
|
1747
|
+
"data-required": p,
|
|
1748
|
+
"data-open": D,
|
|
1749
|
+
...K,
|
|
1750
|
+
children: [
|
|
1751
|
+
/* @__PURE__ */ i(
|
|
1752
|
+
un,
|
|
1753
|
+
{
|
|
1754
|
+
items: O,
|
|
1755
|
+
selectedKeys: C,
|
|
1756
|
+
onSelectionChange: g,
|
|
1757
|
+
itemId: y,
|
|
1758
|
+
itemValue: x,
|
|
1759
|
+
placeholder: oe,
|
|
1760
|
+
size: W,
|
|
1761
|
+
containerRef: G,
|
|
1762
|
+
isDisabled: a,
|
|
1763
|
+
isReadOnly: h
|
|
1764
|
+
}
|
|
1765
|
+
),
|
|
1766
|
+
/* @__PURE__ */ i(
|
|
1767
|
+
on,
|
|
1768
|
+
{
|
|
1769
|
+
selectedKeys: C,
|
|
1770
|
+
onSelectionChange: g,
|
|
1771
|
+
onInputChange: k,
|
|
1772
|
+
containerRef: G,
|
|
1773
|
+
isDisabled: a,
|
|
1774
|
+
isReadOnly: h,
|
|
1775
|
+
isLoading: B
|
|
1776
|
+
}
|
|
1777
|
+
)
|
|
1778
|
+
]
|
|
1779
|
+
}
|
|
1780
|
+
) }),
|
|
1781
|
+
/* @__PURE__ */ i(qo, { asChild: !0, children: /* @__PURE__ */ i(Ge, { triggerRef: G, placement: "bottom start", children: /* @__PURE__ */ i(ao, { "aria-label": "combobox dialog", children: /* @__PURE__ */ ce(
|
|
1782
|
+
uo,
|
|
1783
|
+
{
|
|
1784
|
+
filter: u ?? N,
|
|
1785
|
+
inputValue: T,
|
|
1786
|
+
onInputChange: k,
|
|
1787
|
+
children: [
|
|
1788
|
+
/* @__PURE__ */ i(Uo, { asChild: !0, children: /* @__PURE__ */ i(
|
|
1789
|
+
oo,
|
|
1790
|
+
{
|
|
1791
|
+
autoFocus: !0,
|
|
1792
|
+
isDisabled: a,
|
|
1793
|
+
isReadOnly: h,
|
|
1794
|
+
isRequired: p,
|
|
1795
|
+
"aria-label": "filter combobox options",
|
|
1796
|
+
children: /* @__PURE__ */ i(
|
|
1797
|
+
Ke,
|
|
1798
|
+
{
|
|
1799
|
+
onKeyDownCapture: re,
|
|
1800
|
+
placeholder: oe
|
|
1801
|
+
}
|
|
1802
|
+
)
|
|
1803
|
+
}
|
|
1804
|
+
) }),
|
|
1805
|
+
/* @__PURE__ */ i(
|
|
1806
|
+
ye,
|
|
1807
|
+
{
|
|
1808
|
+
items: O,
|
|
1809
|
+
selectionMode: "multiple",
|
|
1810
|
+
onSelectionChange: g,
|
|
1811
|
+
selectedKeys: C,
|
|
1812
|
+
shouldFocusWrap: !0,
|
|
1813
|
+
disabledKeys: a ? "all" : v,
|
|
1814
|
+
escapeKeyBehavior: "none",
|
|
1815
|
+
"aria-label": "combobox options",
|
|
1816
|
+
renderEmptyState: A,
|
|
1817
|
+
children: e
|
|
1818
|
+
}
|
|
1819
|
+
)
|
|
1820
|
+
]
|
|
1821
|
+
}
|
|
1822
|
+
) }) }) })
|
|
1823
|
+
] });
|
|
1824
|
+
}, Su = ({
|
|
1825
|
+
children: e,
|
|
1826
|
+
ref: u,
|
|
1827
|
+
...o
|
|
1828
|
+
}) => {
|
|
1829
|
+
const l = Ku({ recipe: Ou }), [n, c] = l.splitVariantProps(o), [$, s] = ve(c), t = "selectionMode" in o && o.selectionMode === "multiple" ? tn : en;
|
|
1830
|
+
return /* @__PURE__ */ i(
|
|
1831
|
+
Wo,
|
|
1832
|
+
{
|
|
1833
|
+
asChild: !0,
|
|
1834
|
+
selectionMode: o.selectionMode,
|
|
1835
|
+
...n,
|
|
1836
|
+
...$,
|
|
1837
|
+
children: /* @__PURE__ */ i(t, { ref: u, size: n.size, ...s, children: e })
|
|
1838
|
+
}
|
|
1839
|
+
);
|
|
1840
|
+
};
|
|
1841
|
+
Su.displayName = "ComboBox.Root";
|
|
1842
|
+
const Fu = ({
|
|
1843
|
+
children: e,
|
|
1844
|
+
label: u,
|
|
1845
|
+
items: o,
|
|
1846
|
+
ref: l,
|
|
1847
|
+
...n
|
|
1848
|
+
}) => {
|
|
1849
|
+
if (o && typeof e != "function")
|
|
1850
|
+
throw new Error(
|
|
1851
|
+
'ComboBoxOptionGroup: When "items" is provided, "children" must be a function'
|
|
1852
|
+
);
|
|
1853
|
+
return /* @__PURE__ */ ce(no, { ref: l, ...n, children: [
|
|
1854
|
+
/* @__PURE__ */ i(Zo, { asChild: !0, children: /* @__PURE__ */ i(to, { children: u }) }),
|
|
1855
|
+
o ? /* @__PURE__ */ i(lo, { items: o, children: (c) => typeof e == "function" ? e(c) : null }) : e
|
|
1856
|
+
] });
|
|
1857
|
+
};
|
|
1858
|
+
Fu.displayName = "ComboBox.OptionGroup";
|
|
1859
|
+
const gu = ({
|
|
1860
|
+
children: e,
|
|
1861
|
+
ref: u,
|
|
1862
|
+
...o
|
|
1863
|
+
}) => {
|
|
1864
|
+
const [l, n] = ve(o), c = typeof e == "string" ? e : void 0;
|
|
1865
|
+
return /* @__PURE__ */ i(Ho, { ...l, asChild: !0, children: /* @__PURE__ */ i(
|
|
1866
|
+
io,
|
|
1867
|
+
{
|
|
1868
|
+
ref: u,
|
|
1869
|
+
textValue: o.textValue ?? c,
|
|
1870
|
+
"aria-label": o.textValue ?? c,
|
|
1871
|
+
...n,
|
|
1872
|
+
children: ($) => {
|
|
1873
|
+
const s = typeof e == "function" ? e({
|
|
1874
|
+
...$
|
|
1875
|
+
}) : e;
|
|
1876
|
+
return $.selectionMode === "multiple" ? /* @__PURE__ */ ce(Be, { children: [
|
|
1877
|
+
/* @__PURE__ */ i(Jo, { children: /* @__PURE__ */ i("span", { "data-selected": $.isSelected, children: $.isSelected && /* @__PURE__ */ i(wo, {}) }) }),
|
|
1878
|
+
/* @__PURE__ */ i(Yo, { children: s })
|
|
1879
|
+
] }) : /* @__PURE__ */ i(Be, { children: s });
|
|
1880
|
+
}
|
|
1881
|
+
}
|
|
1882
|
+
) });
|
|
1883
|
+
};
|
|
1884
|
+
gu.displayName = "ComboBox.Option";
|
|
1885
|
+
const Vn = {
|
|
1886
|
+
Root: Su,
|
|
1887
|
+
OptionGroup: Fu,
|
|
1888
|
+
Option: gu
|
|
1889
|
+
};
|
|
1890
|
+
export {
|
|
1891
|
+
Vn as C,
|
|
1892
|
+
Su as a,
|
|
1893
|
+
Fu as b,
|
|
1894
|
+
gu as c
|
|
1895
|
+
};
|
|
1896
|
+
//# sourceMappingURL=combobox-ZcHPms3T.js.map
|