@commercetools/nimbus 3.3.0 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{Button-FcraQeen.esm.js → Button-B5g2BgY8.esm.js} +2 -2
- package/dist/chunks/{Button-FcraQeen.esm.js.map → Button-B5g2BgY8.esm.js.map} +1 -1
- package/dist/chunks/{Button-z5JjDtpy.cjs → Button-CZDjIKB1.cjs} +2 -2
- package/dist/chunks/{Button-z5JjDtpy.cjs.map → Button-CZDjIKB1.cjs.map} +1 -1
- package/dist/chunks/{Calendar-1qYv3Pn9.cjs → Calendar-B-gzTAl8.cjs} +2 -2
- package/dist/chunks/{Calendar-1qYv3Pn9.cjs.map → Calendar-B-gzTAl8.cjs.map} +1 -1
- package/dist/chunks/{Calendar-oiqHeWzY.esm.js → Calendar-B6F41FfL.esm.js} +2 -2
- package/dist/chunks/{Calendar-oiqHeWzY.esm.js.map → Calendar-B6F41FfL.esm.js.map} +1 -1
- package/dist/chunks/Collection-CgMG1nwQ.esm.js +53 -0
- package/dist/chunks/Collection-CgMG1nwQ.esm.js.map +1 -0
- package/dist/chunks/Collection-yMt_pwdK.cjs +2 -0
- package/dist/chunks/Collection-yMt_pwdK.cjs.map +1 -0
- package/dist/chunks/DateField-CHfV6zH4.cjs +2 -0
- package/dist/chunks/{DateField-DI1RhZqo.cjs.map → DateField-CHfV6zH4.cjs.map} +1 -1
- package/dist/chunks/{DateField-DUetJOyf.esm.js → DateField-C_r7fpt5.esm.js} +49 -48
- package/dist/chunks/{DateField-DUetJOyf.esm.js.map → DateField-C_r7fpt5.esm.js.map} +1 -1
- package/dist/chunks/{DatePicker-DRwvjTID.cjs → DatePicker--pX-2Qq-.cjs} +2 -2
- package/dist/chunks/{DatePicker-DRwvjTID.cjs.map → DatePicker--pX-2Qq-.cjs.map} +1 -1
- package/dist/chunks/{DatePicker-DeVufONT.esm.js → DatePicker-xQCOjOZ5.esm.js} +6 -6
- package/dist/chunks/{DatePicker-DeVufONT.esm.js.map → DatePicker-xQCOjOZ5.esm.js.map} +1 -1
- package/dist/chunks/{Dialog-tQOfG_On.esm.js → Dialog-Dy3vyR1i.esm.js} +488 -487
- package/dist/chunks/{Dialog-tQOfG_On.esm.js.map → Dialog-Dy3vyR1i.esm.js.map} +1 -1
- package/dist/chunks/Dialog-UjK50qiN.cjs +6 -0
- package/dist/chunks/{Dialog-s5tFTj72.cjs.map → Dialog-UjK50qiN.cjs.map} +1 -1
- package/dist/chunks/{Header-Cmmm6XZs.cjs → Header-Bp89-vFq.cjs} +2 -2
- package/dist/chunks/{Header-Cmmm6XZs.cjs.map → Header-Bp89-vFq.cjs.map} +1 -1
- package/dist/chunks/{Header-CdFIlJp5.esm.js → Header-CwBpRO8i.esm.js} +2 -2
- package/dist/chunks/{Header-CdFIlJp5.esm.js.map → Header-CwBpRO8i.esm.js.map} +1 -1
- package/dist/chunks/Link-BmoXcCA3.cjs +2 -0
- package/dist/chunks/Link-BmoXcCA3.cjs.map +1 -0
- package/dist/chunks/Link-D_CNmmCC.esm.js +41 -0
- package/dist/chunks/Link-D_CNmmCC.esm.js.map +1 -0
- package/dist/chunks/{ListBox-DlI6zwM7.esm.js → ListBox-B8JwiURT.esm.js} +62 -61
- package/dist/chunks/{ListBox-DlI6zwM7.esm.js.map → ListBox-B8JwiURT.esm.js.map} +1 -1
- package/dist/chunks/ListBox-Ccgvv13w.cjs +2 -0
- package/dist/chunks/{ListBox-CXgfDQSn.cjs.map → ListBox-Ccgvv13w.cjs.map} +1 -1
- package/dist/chunks/{Modal-BG58sEN8.esm.js → Modal-B0a1NTkk.esm.js} +3 -3
- package/dist/chunks/{Modal-BG58sEN8.esm.js.map → Modal-B0a1NTkk.esm.js.map} +1 -1
- package/dist/chunks/{Modal-B5d_4wBp.cjs → Modal-BhGqV2ga.cjs} +2 -2
- package/dist/chunks/{Modal-B5d_4wBp.cjs.map → Modal-BhGqV2ga.cjs.map} +1 -1
- package/dist/chunks/{ProgressBar-BleovkZ3.esm.js → ProgressBar-6_KRPPYN.esm.js} +2 -2
- package/dist/chunks/{ProgressBar-BleovkZ3.esm.js.map → ProgressBar-6_KRPPYN.esm.js.map} +1 -1
- package/dist/chunks/{ProgressBar-DAbyWfVX.cjs → ProgressBar-nd1ahEJC.cjs} +2 -2
- package/dist/chunks/{ProgressBar-DAbyWfVX.cjs.map → ProgressBar-nd1ahEJC.cjs.map} +1 -1
- package/dist/chunks/{accordion-BYfM5qEG.cjs → accordion-BJQKQHIG.cjs} +2 -2
- package/dist/chunks/{accordion-BYfM5qEG.cjs.map → accordion-BJQKQHIG.cjs.map} +1 -1
- package/dist/chunks/{accordion-BqlBCwmN.esm.js → accordion-DPnhySdl.esm.js} +2 -2
- package/dist/chunks/{accordion-BqlBCwmN.esm.js.map → accordion-DPnhySdl.esm.js.map} +1 -1
- package/dist/chunks/{alert-C4J2fv__.esm.js → alert-Coz95VgD.esm.js} +2 -2
- package/dist/chunks/{alert-C4J2fv__.esm.js.map → alert-Coz95VgD.esm.js.map} +1 -1
- package/dist/chunks/{alert-BeQzAjMf.cjs → alert-GP75E0QV.cjs} +2 -2
- package/dist/chunks/{alert-BeQzAjMf.cjs.map → alert-GP75E0QV.cjs.map} +1 -1
- package/dist/chunks/breadcrumbs-1MAxlCTS.esm.js +322 -0
- package/dist/chunks/breadcrumbs-1MAxlCTS.esm.js.map +1 -0
- package/dist/chunks/breadcrumbs-TP5PrTuN.cjs +2 -0
- package/dist/chunks/breadcrumbs-TP5PrTuN.cjs.map +1 -0
- package/dist/chunks/{button-Dc_J_PNN.cjs → button-D6f5OX0h.cjs} +2 -2
- package/dist/chunks/{button-Dc_J_PNN.cjs.map → button-D6f5OX0h.cjs.map} +1 -1
- package/dist/chunks/{button-BhvlZrT2.esm.js → button-DyM-iqBq.esm.js} +3 -3
- package/dist/chunks/{button-BhvlZrT2.esm.js.map → button-DyM-iqBq.esm.js.map} +1 -1
- package/dist/chunks/{calendar-DS0rNrhj.cjs → calendar-YtVTt0Tm.cjs} +2 -2
- package/dist/chunks/{calendar-DS0rNrhj.cjs.map → calendar-YtVTt0Tm.cjs.map} +1 -1
- package/dist/chunks/{calendar-C5GZoGge.esm.js → calendar-bydCjK4Q.esm.js} +5 -5
- package/dist/chunks/{calendar-C5GZoGge.esm.js.map → calendar-bydCjK4Q.esm.js.map} +1 -1
- package/dist/chunks/{chat-message-DW8IO5YJ.cjs → chat-message-BcuYfXqe.cjs} +2 -2
- package/dist/chunks/{chat-message-DW8IO5YJ.cjs.map → chat-message-BcuYfXqe.cjs.map} +1 -1
- package/dist/chunks/{chat-message-CDLvkgaw.esm.js → chat-message-D9947sio.esm.js} +2 -2
- package/dist/chunks/{chat-message-CDLvkgaw.esm.js.map → chat-message-D9947sio.esm.js.map} +1 -1
- package/dist/chunks/chat-message-list-BEQEQzhV.cjs +2 -0
- package/dist/chunks/chat-message-list-BEQEQzhV.cjs.map +1 -0
- package/dist/chunks/{chat-message-list-BhWZEg4l.esm.js → chat-message-list-D_4ZLopT.esm.js} +10 -10
- package/dist/chunks/chat-message-list-D_4ZLopT.esm.js.map +1 -0
- package/dist/chunks/{checkbox-CZCLSrFV.cjs → checkbox-DCVW3K9i.cjs} +2 -2
- package/dist/chunks/{checkbox-CZCLSrFV.cjs.map → checkbox-DCVW3K9i.cjs.map} +1 -1
- package/dist/chunks/{checkbox-Bto3lCdU.esm.js → checkbox-dSuozQvl.esm.js} +4 -4
- package/dist/chunks/{checkbox-Bto3lCdU.esm.js.map → checkbox-dSuozQvl.esm.js.map} +1 -1
- package/dist/chunks/{collapsible-motion-C5-B_qO-.cjs → collapsible-motion-BW3mF74f.cjs} +2 -2
- package/dist/chunks/{collapsible-motion-C5-B_qO-.cjs.map → collapsible-motion-BW3mF74f.cjs.map} +1 -1
- package/dist/chunks/{collapsible-motion-5Y-srpM4.esm.js → collapsible-motion-CKrXIpgY.esm.js} +3 -3
- package/dist/chunks/{collapsible-motion-5Y-srpM4.esm.js.map → collapsible-motion-CKrXIpgY.esm.js.map} +1 -1
- package/dist/chunks/{combobox-ot7fVTI7.cjs → combobox-3_YvuwlN.cjs} +2 -2
- package/dist/chunks/{combobox-ot7fVTI7.cjs.map → combobox-3_YvuwlN.cjs.map} +1 -1
- package/dist/chunks/{combobox-BW_VrIHV.esm.js → combobox-C9gMnokj.esm.js} +11 -11
- package/dist/chunks/{combobox-BW_VrIHV.esm.js.map → combobox-C9gMnokj.esm.js.map} +1 -1
- package/dist/chunks/{components-BaZ6iHgw.esm.js → components-DJj34Iqi.esm.js} +3 -3
- package/dist/chunks/{components-BaZ6iHgw.esm.js.map → components-DJj34Iqi.esm.js.map} +1 -1
- package/dist/chunks/{components-DHYEVZM_.cjs → components-tMYnGsnG.cjs} +2 -2
- package/dist/chunks/{components-DHYEVZM_.cjs.map → components-tMYnGsnG.cjs.map} +1 -1
- package/dist/chunks/{confirmation-dialog-JqWYM_7U.cjs → confirmation-dialog-DGV0mgM8.cjs} +2 -2
- package/dist/chunks/{confirmation-dialog-JqWYM_7U.cjs.map → confirmation-dialog-DGV0mgM8.cjs.map} +1 -1
- package/dist/chunks/{confirmation-dialog-CHUQLqNJ.esm.js → confirmation-dialog-EiNUlhQA.esm.js} +4 -4
- package/dist/chunks/{confirmation-dialog-CHUQLqNJ.esm.js.map → confirmation-dialog-EiNUlhQA.esm.js.map} +1 -1
- package/dist/chunks/{data-table-LoaR2VL5.esm.js → data-table-BjU1lBAt.esm.js} +715 -714
- package/dist/chunks/{data-table-LoaR2VL5.esm.js.map → data-table-BjU1lBAt.esm.js.map} +1 -1
- package/dist/chunks/data-table-DnlEkUhO.cjs +2 -0
- package/dist/chunks/{data-table-CHpJecej.cjs.map → data-table-DnlEkUhO.cjs.map} +1 -1
- package/dist/chunks/{date-input-BfCEzDBX.esm.js → date-input-BIMZk2u6.esm.js} +4 -4
- package/dist/chunks/{date-input-BfCEzDBX.esm.js.map → date-input-BIMZk2u6.esm.js.map} +1 -1
- package/dist/chunks/{date-input-B5yBTSm8.cjs → date-input-DbikA3Az.cjs} +2 -2
- package/dist/chunks/{date-input-B5yBTSm8.cjs.map → date-input-DbikA3Az.cjs.map} +1 -1
- package/dist/chunks/{date-picker-CcmAJYux.esm.js → date-picker--voC39id.esm.js} +11 -11
- package/dist/chunks/{date-picker-CcmAJYux.esm.js.map → date-picker--voC39id.esm.js.map} +1 -1
- package/dist/chunks/{date-picker-BYUOjbCN.cjs → date-picker-Dhb3cRFN.cjs} +2 -2
- package/dist/chunks/{date-picker-BYUOjbCN.cjs.map → date-picker-Dhb3cRFN.cjs.map} +1 -1
- package/dist/chunks/{date-range-picker-CD6CmAlq.esm.js → date-range-picker-B02yjYC_.esm.js} +11 -11
- package/dist/chunks/{date-range-picker-CD6CmAlq.esm.js.map → date-range-picker-B02yjYC_.esm.js.map} +1 -1
- package/dist/chunks/{date-range-picker-BladYzh3.cjs → date-range-picker-oFS0SF97.cjs} +2 -2
- package/dist/chunks/{date-range-picker-BladYzh3.cjs.map → date-range-picker-oFS0SF97.cjs.map} +1 -1
- package/dist/chunks/{default-page-B5bFn9gJ.cjs → default-page-BW66R099.cjs} +2 -2
- package/dist/chunks/{default-page-B5bFn9gJ.cjs.map → default-page-BW66R099.cjs.map} +1 -1
- package/dist/chunks/{default-page-De3ZyX7n.esm.js → default-page-oB4oiflC.esm.js} +2 -2
- package/dist/chunks/{default-page-De3ZyX7n.esm.js.map → default-page-oB4oiflC.esm.js.map} +1 -1
- package/dist/chunks/{dialog-Y4HKBxUr.cjs → dialog-CwCG4NKh.cjs} +2 -2
- package/dist/chunks/{dialog-Y4HKBxUr.cjs.map → dialog-CwCG4NKh.cjs.map} +1 -1
- package/dist/chunks/{dialog-XeM4qOa_.esm.js → dialog-lxgomHvu.esm.js} +6 -6
- package/dist/chunks/{dialog-XeM4qOa_.esm.js.map → dialog-lxgomHvu.esm.js.map} +1 -1
- package/dist/chunks/draggable-list-CAGO6acz.cjs +2 -0
- package/dist/chunks/{draggable-list-CKKl6A_a.cjs.map → draggable-list-CAGO6acz.cjs.map} +1 -1
- package/dist/chunks/{draggable-list-C5aulsay.esm.js → draggable-list-DKGfS4ob.esm.js} +243 -243
- package/dist/chunks/{draggable-list-C5aulsay.esm.js.map → draggable-list-DKGfS4ob.esm.js.map} +1 -1
- package/dist/chunks/{drawer-BKPP4f5K.cjs → drawer-Cj7eGaLQ.cjs} +2 -2
- package/dist/chunks/{drawer-BKPP4f5K.cjs.map → drawer-Cj7eGaLQ.cjs.map} +1 -1
- package/dist/chunks/{drawer-I6J9g1l4.esm.js → drawer-Dsnrsu2k.esm.js} +7 -7
- package/dist/chunks/{drawer-I6J9g1l4.esm.js.map → drawer-Dsnrsu2k.esm.js.map} +1 -1
- package/dist/chunks/{drop-zone-vRl7IFzc.esm.js → drop-zone-BKJQrFGG.esm.js} +6 -6
- package/dist/chunks/{drop-zone-vRl7IFzc.esm.js.map → drop-zone-BKJQrFGG.esm.js.map} +1 -1
- package/dist/chunks/{drop-zone-Dr4VzY5B.cjs → drop-zone-N7k0XExn.cjs} +2 -2
- package/dist/chunks/{drop-zone-Dr4VzY5B.cjs.map → drop-zone-N7k0XExn.cjs.map} +1 -1
- package/dist/chunks/{extract-style-props-BPnHKmWR.esm.js → extract-style-props-D519tVOc.esm.js} +2 -2
- package/dist/chunks/{extract-style-props-BPnHKmWR.esm.js.map → extract-style-props-D519tVOc.esm.js.map} +1 -1
- package/dist/chunks/{extract-style-props-CA1O0IF2.cjs → extract-style-props-WNdpT-ME.cjs} +2 -2
- package/dist/chunks/{extract-style-props-CA1O0IF2.cjs.map → extract-style-props-WNdpT-ME.cjs.map} +1 -1
- package/dist/chunks/{form-action-bar-C8wkuLiF.esm.js → form-action-bar-CfJjVyeS.esm.js} +3 -3
- package/dist/chunks/{form-action-bar-C8wkuLiF.esm.js.map → form-action-bar-CfJjVyeS.esm.js.map} +1 -1
- package/dist/chunks/{form-action-bar-C_pQubyB.cjs → form-action-bar-DhmjijBw.cjs} +2 -2
- package/dist/chunks/{form-action-bar-C_pQubyB.cjs.map → form-action-bar-DhmjijBw.cjs.map} +1 -1
- package/dist/chunks/{form-dialog-D14UuUnS.cjs → form-dialog-CLrL718p.cjs} +2 -2
- package/dist/chunks/{form-dialog-D14UuUnS.cjs.map → form-dialog-CLrL718p.cjs.map} +1 -1
- package/dist/chunks/{form-dialog-BaD03TZo.esm.js → form-dialog-D86jNeIZ.esm.js} +4 -4
- package/dist/chunks/{form-dialog-BaD03TZo.esm.js.map → form-dialog-D86jNeIZ.esm.js.map} +1 -1
- package/dist/chunks/{form-field-DRhB7O5k.esm.js → form-field-B5H98u7s.esm.js} +3 -3
- package/dist/chunks/{form-field-DRhB7O5k.esm.js.map → form-field-B5H98u7s.esm.js.map} +1 -1
- package/dist/chunks/{form-field-CrSE8x3q.cjs → form-field-CaTJgt57.cjs} +2 -2
- package/dist/chunks/{form-field-CrSE8x3q.cjs.map → form-field-CaTJgt57.cjs.map} +1 -1
- package/dist/chunks/{icon-button-CSlFdpjB.cjs → icon-button-BG5cQycc.cjs} +2 -2
- package/dist/chunks/{icon-button-CSlFdpjB.cjs.map → icon-button-BG5cQycc.cjs.map} +1 -1
- package/dist/chunks/{icon-button-6dtfz6Yf.esm.js → icon-button-CyhrlrIv.esm.js} +2 -2
- package/dist/chunks/{icon-button-6dtfz6Yf.esm.js.map → icon-button-CyhrlrIv.esm.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-DJbu9dBg.cjs → icon-toggle-button-CH90F1eK.cjs} +2 -2
- package/dist/chunks/{icon-toggle-button-DJbu9dBg.cjs.map → icon-toggle-button-CH90F1eK.cjs.map} +1 -1
- package/dist/chunks/{icon-toggle-button-Cesx6J1H.esm.js → icon-toggle-button-DzYb5JyL.esm.js} +2 -2
- package/dist/chunks/{icon-toggle-button-Cesx6J1H.esm.js.map → icon-toggle-button-DzYb5JyL.esm.js.map} +1 -1
- package/dist/chunks/item-DW8Z2EjT.cjs +2 -0
- package/dist/chunks/item-DW8Z2EjT.cjs.map +1 -0
- package/dist/chunks/item-YJDIjMGY.esm.js +132 -0
- package/dist/chunks/item-YJDIjMGY.esm.js.map +1 -0
- package/dist/chunks/item-group-BA2CvxjT.cjs +2 -0
- package/dist/chunks/item-group-BA2CvxjT.cjs.map +1 -0
- package/dist/chunks/item-group-Bu78JFep.esm.js +35 -0
- package/dist/chunks/item-group-Bu78JFep.esm.js.map +1 -0
- package/dist/chunks/{list-DpS1s3Ww.cjs → list-ClGk4Q7n.cjs} +2 -2
- package/dist/chunks/{list-DpS1s3Ww.cjs.map → list-ClGk4Q7n.cjs.map} +1 -1
- package/dist/chunks/{list-CuA_gr8m.esm.js → list-CvVw2FgQ.esm.js} +2 -2
- package/dist/chunks/{list-CuA_gr8m.esm.js.map → list-CvVw2FgQ.esm.js.map} +1 -1
- package/dist/chunks/{loading-spinner-CTPm1sYC.esm.js → loading-spinner-DZoySVDH.esm.js} +2 -2
- package/dist/chunks/{loading-spinner-CTPm1sYC.esm.js.map → loading-spinner-DZoySVDH.esm.js.map} +1 -1
- package/dist/chunks/{loading-spinner-DAZGwhe6.cjs → loading-spinner-p_cYuGNg.cjs} +2 -2
- package/dist/chunks/{loading-spinner-DAZGwhe6.cjs.map → loading-spinner-p_cYuGNg.cjs.map} +1 -1
- package/dist/chunks/{localized-field-tpT6376o.cjs → localized-field-CQ8GkZKo.cjs} +2 -2
- package/dist/chunks/{localized-field-tpT6376o.cjs.map → localized-field-CQ8GkZKo.cjs.map} +1 -1
- package/dist/chunks/{localized-field-rPZczTNY.esm.js → localized-field-edbtofV6.esm.js} +10 -10
- package/dist/chunks/{localized-field-rPZczTNY.esm.js.map → localized-field-edbtofV6.esm.js.map} +1 -1
- package/dist/chunks/{markdown-CxE72YNo.esm.js → markdown-C1aT-ZDT.esm.js} +34 -34
- package/dist/chunks/{markdown-CxE72YNo.esm.js.map → markdown-C1aT-ZDT.esm.js.map} +1 -1
- package/dist/chunks/{markdown-Dvf4iLu2.cjs → markdown-RayGWo-B.cjs} +2 -2
- package/dist/chunks/{markdown-Dvf4iLu2.cjs.map → markdown-RayGWo-B.cjs.map} +1 -1
- package/dist/chunks/{menu-tAepHyH2.esm.js → menu-C2ZLfnJM.esm.js} +5 -5
- package/dist/chunks/{menu-tAepHyH2.esm.js.map → menu-C2ZLfnJM.esm.js.map} +1 -1
- package/dist/chunks/{menu-WFLbN6in.cjs → menu-sokBButj.cjs} +2 -2
- package/dist/chunks/{menu-WFLbN6in.cjs.map → menu-sokBButj.cjs.map} +1 -1
- package/dist/chunks/{modal-page-BRDY8JIO.cjs → modal-page-BGs7DHvn.cjs} +2 -2
- package/dist/chunks/{modal-page-BRDY8JIO.cjs.map → modal-page-BGs7DHvn.cjs.map} +1 -1
- package/dist/chunks/{modal-page-CH6Dlz-D.esm.js → modal-page-BZGoeMPR.esm.js} +3 -3
- package/dist/chunks/{modal-page-CH6Dlz-D.esm.js.map → modal-page-BZGoeMPR.esm.js.map} +1 -1
- package/dist/chunks/{money-input-D-h6tlpV.cjs → money-input-3_CQxVa3.cjs} +2 -2
- package/dist/chunks/{money-input-D-h6tlpV.cjs.map → money-input-3_CQxVa3.cjs.map} +1 -1
- package/dist/chunks/{money-input-field-Dy6VCxeQ.esm.js → money-input-field-DMZMbP9B.esm.js} +3 -3
- package/dist/chunks/{money-input-field-Dy6VCxeQ.esm.js.map → money-input-field-DMZMbP9B.esm.js.map} +1 -1
- package/dist/chunks/{money-input-field-DeajMPme.cjs → money-input-field-Deavtpts.cjs} +2 -2
- package/dist/chunks/{money-input-field-DeajMPme.cjs.map → money-input-field-Deavtpts.cjs.map} +1 -1
- package/dist/chunks/{money-input-CKNrFSKT.esm.js → money-input-hdeI43mM.esm.js} +5 -5
- package/dist/chunks/{money-input-CKNrFSKT.esm.js.map → money-input-hdeI43mM.esm.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-BZU8t53J.esm.js → multiline-text-input-BlQChE3E.esm.js} +4 -4
- package/dist/chunks/{multiline-text-input-BZU8t53J.esm.js.map → multiline-text-input-BlQChE3E.esm.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-ipy-1vwz.cjs → multiline-text-input-BnbYMYjn.cjs} +2 -2
- package/dist/chunks/{multiline-text-input-ipy-1vwz.cjs.map → multiline-text-input-BnbYMYjn.cjs.map} +1 -1
- package/dist/chunks/{multiline-text-input-field-DDzHc9t0.cjs → multiline-text-input-field-Dmrep7c1.cjs} +2 -2
- package/dist/chunks/{multiline-text-input-field-DDzHc9t0.cjs.map → multiline-text-input-field-Dmrep7c1.cjs.map} +1 -1
- package/dist/chunks/{multiline-text-input-field-Dj3yuO2D.esm.js → multiline-text-input-field-DtKT6KA3.esm.js} +3 -3
- package/dist/chunks/{multiline-text-input-field-Dj3yuO2D.esm.js.map → multiline-text-input-field-DtKT6KA3.esm.js.map} +1 -1
- package/dist/chunks/{nimbus-provider-DcYjdMwh.cjs → nimbus-provider-DyiUPBgB.cjs} +2 -2
- package/dist/chunks/{nimbus-provider-DcYjdMwh.cjs.map → nimbus-provider-DyiUPBgB.cjs.map} +1 -1
- package/dist/chunks/{nimbus-provider-qYnfenns.esm.js → nimbus-provider-TxuMyLri.esm.js} +3 -3
- package/dist/chunks/{nimbus-provider-qYnfenns.esm.js.map → nimbus-provider-TxuMyLri.esm.js.map} +1 -1
- package/dist/chunks/number-input-DTS_KQVk.cjs +2 -0
- package/dist/chunks/{number-input-DU3522fK.cjs.map → number-input-DTS_KQVk.cjs.map} +1 -1
- package/dist/chunks/{number-input-D5jL0iW-.esm.js → number-input-Gpg_2UbB.esm.js} +23 -22
- package/dist/chunks/{number-input-D5jL0iW-.esm.js.map → number-input-Gpg_2UbB.esm.js.map} +1 -1
- package/dist/chunks/{number-input-field-C5DhaRwc.cjs → number-input-field-C0XJ94dJ.cjs} +2 -2
- package/dist/chunks/{number-input-field-C5DhaRwc.cjs.map → number-input-field-C0XJ94dJ.cjs.map} +1 -1
- package/dist/chunks/{number-input-field-BKAb5VQ2.esm.js → number-input-field-Da0Hux_Q.esm.js} +3 -3
- package/dist/chunks/{number-input-field-BKAb5VQ2.esm.js.map → number-input-field-Da0Hux_Q.esm.js.map} +1 -1
- package/dist/chunks/{pagination-ZSf9r9bz.esm.js → pagination-FtHeZ5vD.esm.js} +4 -4
- package/dist/chunks/{pagination-ZSf9r9bz.esm.js.map → pagination-FtHeZ5vD.esm.js.map} +1 -1
- package/dist/chunks/{pagination-CmXQNDbp.cjs → pagination-Teyq3Fc-.cjs} +2 -2
- package/dist/chunks/{pagination-CmXQNDbp.cjs.map → pagination-Teyq3Fc-.cjs.map} +1 -1
- package/dist/chunks/{password-input-DMJGpUt6.cjs → password-input-B6xQTVt3.cjs} +2 -2
- package/dist/chunks/{password-input-DMJGpUt6.cjs.map → password-input-B6xQTVt3.cjs.map} +1 -1
- package/dist/chunks/{password-input-B2OHc-gn.esm.js → password-input-ZHMvWFue.esm.js} +3 -3
- package/dist/chunks/{password-input-B2OHc-gn.esm.js.map → password-input-ZHMvWFue.esm.js.map} +1 -1
- package/dist/chunks/{password-input-field-BFj95JMU.esm.js → password-input-field-B6I17gLd.esm.js} +3 -3
- package/dist/chunks/{password-input-field-BFj95JMU.esm.js.map → password-input-field-B6I17gLd.esm.js.map} +1 -1
- package/dist/chunks/{password-input-field-Cf-zBu2O.cjs → password-input-field-Bh-LmgfF.cjs} +2 -2
- package/dist/chunks/{password-input-field-Cf-zBu2O.cjs.map → password-input-field-Bh-LmgfF.cjs.map} +1 -1
- package/dist/chunks/{popover-eUvkAe8L.cjs → popover-B4aHN9qY.cjs} +2 -2
- package/dist/chunks/{popover-eUvkAe8L.cjs.map → popover-B4aHN9qY.cjs.map} +1 -1
- package/dist/chunks/{popover-CwdOyGHr.esm.js → popover-biPpujsV.esm.js} +2 -2
- package/dist/chunks/{popover-CwdOyGHr.esm.js.map → popover-biPpujsV.esm.js.map} +1 -1
- package/dist/chunks/{progress-bar-DhZVJqY_.cjs → progress-bar-D_PAUwhj.cjs} +2 -2
- package/dist/chunks/{progress-bar-DhZVJqY_.cjs.map → progress-bar-D_PAUwhj.cjs.map} +1 -1
- package/dist/chunks/{progress-bar-Be7o97DL.esm.js → progress-bar-PjyuiZvS.esm.js} +3 -3
- package/dist/chunks/{progress-bar-Be7o97DL.esm.js.map → progress-bar-PjyuiZvS.esm.js.map} +1 -1
- package/dist/chunks/{radio-input-Cj03oX72.esm.js → radio-input-CZNQh41n.esm.js} +10 -9
- package/dist/chunks/{radio-input-Cj03oX72.esm.js.map → radio-input-CZNQh41n.esm.js.map} +1 -1
- package/dist/chunks/radio-input-FRyDwoTk.cjs +2 -0
- package/dist/chunks/{radio-input-_eEv0K2W.cjs.map → radio-input-FRyDwoTk.cjs.map} +1 -1
- package/dist/chunks/{range-calendar-B0U51wMd.cjs → range-calendar-D1yls6jq.cjs} +2 -2
- package/dist/chunks/{range-calendar-B0U51wMd.cjs.map → range-calendar-D1yls6jq.cjs.map} +1 -1
- package/dist/chunks/{range-calendar-DA5hJpYL.esm.js → range-calendar-DhgT-Y8T.esm.js} +6 -6
- package/dist/chunks/{range-calendar-DA5hJpYL.esm.js.map → range-calendar-DhgT-Y8T.esm.js.map} +1 -1
- package/dist/chunks/range-slider-Ch4kXVc3.cjs +2 -0
- package/dist/chunks/range-slider-Ch4kXVc3.cjs.map +1 -0
- package/dist/chunks/range-slider-CiNJCiKg.esm.js +600 -0
- package/dist/chunks/range-slider-CiNJCiKg.esm.js.map +1 -0
- package/dist/chunks/{rich-text-input-PYMjw5DQ.esm.js → rich-text-input-CLwl2b63.esm.js} +8 -8
- package/dist/chunks/{rich-text-input-PYMjw5DQ.esm.js.map → rich-text-input-CLwl2b63.esm.js.map} +1 -1
- package/dist/chunks/{rich-text-input-C0UU1Uoq.cjs → rich-text-input-D9MMIdJJ.cjs} +3 -3
- package/dist/chunks/{rich-text-input-C0UU1Uoq.cjs.map → rich-text-input-D9MMIdJJ.cjs.map} +1 -1
- package/dist/chunks/{scoped-search-input-D80PFOdN.esm.js → scoped-search-input-BzTmH7Ms.esm.js} +5 -5
- package/dist/chunks/{scoped-search-input-D80PFOdN.esm.js.map → scoped-search-input-BzTmH7Ms.esm.js.map} +1 -1
- package/dist/chunks/{scoped-search-input-Kj-JJpvo.cjs → scoped-search-input-C9PJWoSh.cjs} +2 -2
- package/dist/chunks/{scoped-search-input-Kj-JJpvo.cjs.map → scoped-search-input-C9PJWoSh.cjs.map} +1 -1
- package/dist/chunks/{search-input-yUmma36U.cjs → search-input-Cocic3Im.cjs} +2 -2
- package/dist/chunks/{search-input-yUmma36U.cjs.map → search-input-Cocic3Im.cjs.map} +1 -1
- package/dist/chunks/{search-input-BMq6pRov.esm.js → search-input-DLixG2wL.esm.js} +6 -6
- package/dist/chunks/{search-input-BMq6pRov.esm.js.map → search-input-DLixG2wL.esm.js.map} +1 -1
- package/dist/chunks/{select-D39rm0xA.esm.js → select-CZzyQOhP.esm.js} +17 -16
- package/dist/chunks/{select-D39rm0xA.esm.js.map → select-CZzyQOhP.esm.js.map} +1 -1
- package/dist/chunks/select-g5OICT61.cjs +2 -0
- package/dist/chunks/{select-DdeLYdJ3.cjs.map → select-g5OICT61.cjs.map} +1 -1
- package/dist/chunks/{separator-CRFMcKYe.cjs → separator-DW1Lj5oz.cjs} +2 -2
- package/dist/chunks/{separator-CRFMcKYe.cjs.map → separator-DW1Lj5oz.cjs.map} +1 -1
- package/dist/chunks/{separator-AUEVwjXs.esm.js → separator-DYgOOvtr.esm.js} +3 -3
- package/dist/chunks/{separator-AUEVwjXs.esm.js.map → separator-DYgOOvtr.esm.js.map} +1 -1
- package/dist/chunks/skeleton-C-MXf-Vh.esm.js +16 -0
- package/dist/chunks/skeleton-C-MXf-Vh.esm.js.map +1 -0
- package/dist/chunks/skeleton-SWjnk1LM.cjs +2 -0
- package/dist/chunks/skeleton-SWjnk1LM.cjs.map +1 -0
- package/dist/chunks/skeleton-circle-C5RFsv29.esm.js +18 -0
- package/dist/chunks/skeleton-circle-C5RFsv29.esm.js.map +1 -0
- package/dist/chunks/skeleton-circle-CbqEiVJ8.cjs +2 -0
- package/dist/chunks/skeleton-circle-CbqEiVJ8.cjs.map +1 -0
- package/dist/chunks/skeleton-text-B-r_Iovw.esm.js +33 -0
- package/dist/chunks/skeleton-text-B-r_Iovw.esm.js.map +1 -0
- package/dist/chunks/skeleton-text-CEr3QStr.cjs +2 -0
- package/dist/chunks/skeleton-text-CEr3QStr.cjs.map +1 -0
- package/dist/chunks/slider-CE2eEViT.esm.js +9 -0
- package/dist/chunks/slider-CE2eEViT.esm.js.map +1 -0
- package/dist/chunks/slider-CxvxZzOB.cjs +2 -0
- package/dist/chunks/slider-CxvxZzOB.cjs.map +1 -0
- package/dist/chunks/{split-button-DelUgBth.cjs → split-button-Dr_RsxyR.cjs} +2 -2
- package/dist/chunks/{split-button-DelUgBth.cjs.map → split-button-Dr_RsxyR.cjs.map} +1 -1
- package/dist/chunks/{split-button-C9MIlSe4.esm.js → split-button-lLEz3Ddi.esm.js} +4 -4
- package/dist/chunks/{split-button-C9MIlSe4.esm.js.map → split-button-lLEz3Ddi.esm.js.map} +1 -1
- package/dist/chunks/{steps-BLrpE2PL.cjs → steps-BvqxvDfJ.cjs} +2 -2
- package/dist/chunks/{steps-BLrpE2PL.cjs.map → steps-BvqxvDfJ.cjs.map} +1 -1
- package/dist/chunks/{steps-OnZi-T9x.esm.js → steps-DIRtxFO6.esm.js} +2 -2
- package/dist/chunks/{steps-OnZi-T9x.esm.js.map → steps-DIRtxFO6.esm.js.map} +1 -1
- package/dist/chunks/{switch-D1rdYruG.esm.js → switch-B351GNnT.esm.js} +4 -4
- package/dist/chunks/{switch-D1rdYruG.esm.js.map → switch-B351GNnT.esm.js.map} +1 -1
- package/dist/chunks/{switch-BPk30JYZ.cjs → switch-BSws2Bn9.cjs} +2 -2
- package/dist/chunks/{switch-BPk30JYZ.cjs.map → switch-BSws2Bn9.cjs.map} +1 -1
- package/dist/chunks/tab-nav-BMNdumQw.esm.js +66 -0
- package/dist/chunks/tab-nav-BMNdumQw.esm.js.map +1 -0
- package/dist/chunks/tab-nav-Dy6pg3Cf.cjs +2 -0
- package/dist/chunks/tab-nav-Dy6pg3Cf.cjs.map +1 -0
- package/dist/chunks/{table-DEKXq5nE.cjs → table-BF5v-4YU.cjs} +2 -2
- package/dist/chunks/{table-DEKXq5nE.cjs.map → table-BF5v-4YU.cjs.map} +1 -1
- package/dist/chunks/{table-O8T8871k.esm.js → table-OZDDVGWu.esm.js} +2 -2
- package/dist/chunks/{table-O8T8871k.esm.js.map → table-OZDDVGWu.esm.js.map} +1 -1
- package/dist/chunks/{tabs-IjuTjmW5.esm.js → tabs-C7zLoP1D.esm.js} +101 -100
- package/dist/chunks/{tabs-IjuTjmW5.esm.js.map → tabs-C7zLoP1D.esm.js.map} +1 -1
- package/dist/chunks/tabs-DLr47HN_.cjs +2 -0
- package/dist/chunks/{tabs-BbC8to5L.cjs.map → tabs-DLr47HN_.cjs.map} +1 -1
- package/dist/chunks/{tag-group-DJ2Eyzr6.esm.js → tag-group-DKiwZtum.esm.js} +160 -160
- package/dist/chunks/{tag-group-DJ2Eyzr6.esm.js.map → tag-group-DKiwZtum.esm.js.map} +1 -1
- package/dist/chunks/tag-group-JEE8r8Jl.cjs +2 -0
- package/dist/chunks/{tag-group-t9CCZs9w.cjs.map → tag-group-JEE8r8Jl.cjs.map} +1 -1
- package/dist/chunks/{text-input-DzHnlufM.esm.js → text-input-4YjslLxr.esm.js} +4 -4
- package/dist/chunks/{text-input-DzHnlufM.esm.js.map → text-input-4YjslLxr.esm.js.map} +1 -1
- package/dist/chunks/{text-input-Bc2XftOM.cjs → text-input-BttCyWCt.cjs} +2 -2
- package/dist/chunks/{text-input-Bc2XftOM.cjs.map → text-input-BttCyWCt.cjs.map} +1 -1
- package/dist/chunks/{theme-BR3bc6tH.esm.js → theme-CFqa_6UM.esm.js} +710 -195
- package/dist/chunks/theme-CFqa_6UM.esm.js.map +1 -0
- package/dist/chunks/theme-DA63MDZQ.cjs +34 -0
- package/dist/chunks/theme-DA63MDZQ.cjs.map +1 -0
- package/dist/chunks/{time-input--A7teyZm.esm.js → time-input-CJcXuGHH.esm.js} +4 -4
- package/dist/chunks/{time-input--A7teyZm.esm.js.map → time-input-CJcXuGHH.esm.js.map} +1 -1
- package/dist/chunks/{time-input-CnqA54LG.cjs → time-input-Cv-8dl-n.cjs} +2 -2
- package/dist/chunks/{time-input-CnqA54LG.cjs.map → time-input-Cv-8dl-n.cjs.map} +1 -1
- package/dist/chunks/{toast.outlet-CiElRAMb.cjs → toast.outlet-BGy4NZoL.cjs} +2 -2
- package/dist/chunks/{toast.outlet-CiElRAMb.cjs.map → toast.outlet-BGy4NZoL.cjs.map} +1 -1
- package/dist/chunks/{toast.outlet-DfFHdsij.esm.js → toast.outlet-DQ7Z1sG7.esm.js} +4 -4
- package/dist/chunks/{toast.outlet-DfFHdsij.esm.js.map → toast.outlet-DQ7Z1sG7.esm.js.map} +1 -1
- package/dist/chunks/{toggle-button-szYkDbB4.cjs → toggle-button-B9m2DON6.cjs} +2 -2
- package/dist/chunks/{toggle-button-szYkDbB4.cjs.map → toggle-button-B9m2DON6.cjs.map} +1 -1
- package/dist/chunks/{toggle-button-DnjpkkaG.esm.js → toggle-button-D3UZNm_4.esm.js} +3 -3
- package/dist/chunks/{toggle-button-DnjpkkaG.esm.js.map → toggle-button-D3UZNm_4.esm.js.map} +1 -1
- package/dist/chunks/{toolbar-BTl4PMN6.esm.js → toolbar-BUb2xcXt.esm.js} +3 -3
- package/dist/chunks/{toolbar-BTl4PMN6.esm.js.map → toolbar-BUb2xcXt.esm.js.map} +1 -1
- package/dist/chunks/{toolbar-CDuqJw86.cjs → toolbar-CxYGox-m.cjs} +2 -2
- package/dist/chunks/{toolbar-CDuqJw86.cjs.map → toolbar-CxYGox-m.cjs.map} +1 -1
- package/dist/chunks/{use-responsive-splitter-sizes-CO-POrVJ.esm.js → use-responsive-splitter-sizes-BgEYraHy.esm.js} +2 -2
- package/dist/chunks/{use-responsive-splitter-sizes-CO-POrVJ.esm.js.map → use-responsive-splitter-sizes-BgEYraHy.esm.js.map} +1 -1
- package/dist/chunks/{use-responsive-splitter-sizes-DApY1vey.cjs → use-responsive-splitter-sizes-CzfdjEjf.cjs} +2 -2
- package/dist/chunks/{use-responsive-splitter-sizes-DApY1vey.cjs.map → use-responsive-splitter-sizes-CzfdjEjf.cjs.map} +1 -1
- package/dist/chunks/{use-tree-wsHR3c7J.esm.js → use-tree-BFKFaiiu.esm.js} +147 -147
- package/dist/chunks/{use-tree-wsHR3c7J.esm.js.map → use-tree-BFKFaiiu.esm.js.map} +1 -1
- package/dist/chunks/use-tree-NiiqPu0M.cjs +2 -0
- package/dist/chunks/{use-tree-CrwSJhB8.cjs.map → use-tree-NiiqPu0M.cjs.map} +1 -1
- package/dist/chunks/{useCollection-CGf4ZguH.esm.js → useCollection-BCbt2V3u.esm.js} +258 -307
- package/dist/chunks/useCollection-BCbt2V3u.esm.js.map +1 -0
- package/dist/chunks/useCollection-BjHtDvt-.cjs +2 -0
- package/dist/chunks/useCollection-BjHtDvt-.cjs.map +1 -0
- package/dist/chunks/{useDragAndDrop-CoNOA7E9.cjs → useDragAndDrop-B8UfdCMX.cjs} +2 -2
- package/dist/chunks/{useDragAndDrop-CoNOA7E9.cjs.map → useDragAndDrop-B8UfdCMX.cjs.map} +1 -1
- package/dist/chunks/{useDragAndDrop-D_i3CWeg.esm.js → useDragAndDrop-BAyAtCYg.esm.js} +2 -2
- package/dist/chunks/{useDragAndDrop-D_i3CWeg.esm.js.map → useDragAndDrop-BAyAtCYg.esm.js.map} +1 -1
- package/dist/chunks/useFormReset-C6H3spHM.cjs +2 -0
- package/dist/chunks/useFormReset-C6H3spHM.cjs.map +1 -0
- package/dist/chunks/useFormReset-CAZratNG.esm.js +18 -0
- package/dist/chunks/useFormReset-CAZratNG.esm.js.map +1 -0
- package/dist/chunks/useFormValidationState-CMK07tQk.cjs +2 -0
- package/dist/chunks/useFormValidationState-CMK07tQk.cjs.map +1 -0
- package/dist/chunks/{useFormValidationState-rjMRhdnd.esm.js → useFormValidationState-hfa069v5.esm.js} +40 -53
- package/dist/chunks/useFormValidationState-hfa069v5.esm.js.map +1 -0
- package/dist/chunks/{useGridListItem-DVNb2d76.esm.js → useGridListItem-C6LMK1Mv.esm.js} +3 -3
- package/dist/chunks/{useGridListItem-DVNb2d76.esm.js.map → useGridListItem-C6LMK1Mv.esm.js.map} +1 -1
- package/dist/chunks/{useGridListItem-d-i-pqAt.cjs → useGridListItem-CmLWoZGe.cjs} +2 -2
- package/dist/chunks/{useGridListItem-d-i-pqAt.cjs.map → useGridListItem-CmLWoZGe.cjs.map} +1 -1
- package/dist/chunks/{useListState-6F4go-kc.cjs → useListState-BBQE4IFG.cjs} +2 -2
- package/dist/chunks/{useListState-6F4go-kc.cjs.map → useListState-BBQE4IFG.cjs.map} +1 -1
- package/dist/chunks/{useListState-BiT-W669.esm.js → useListState-TSrPXjzi.esm.js} +2 -2
- package/dist/chunks/{useListState-BiT-W669.esm.js.map → useListState-TSrPXjzi.esm.js.map} +1 -1
- package/dist/chunks/useNumberFormatter-Drsf_lwe.cjs +2 -0
- package/dist/chunks/useNumberFormatter-Drsf_lwe.cjs.map +1 -0
- package/dist/chunks/useNumberFormatter-L64UBjdR.esm.js +12 -0
- package/dist/chunks/useNumberFormatter-L64UBjdR.esm.js.map +1 -0
- package/dist/chunks/useProgressBar-C-UZQWBC.cjs +2 -0
- package/dist/chunks/useProgressBar-C-UZQWBC.cjs.map +1 -0
- package/dist/chunks/useProgressBar-DVPx9_dg.esm.js +33 -0
- package/dist/chunks/useProgressBar-DVPx9_dg.esm.js.map +1 -0
- package/dist/chunks/{useSelectableList-DDytBtRR.cjs → useSelectableList-Bgv2nxTX.cjs} +2 -2
- package/dist/chunks/{useSelectableList-DDytBtRR.cjs.map → useSelectableList-Bgv2nxTX.cjs.map} +1 -1
- package/dist/chunks/{useSelectableList-umEtkxYN.esm.js → useSelectableList-gohzq7dg.esm.js} +2 -2
- package/dist/chunks/{useSelectableList-umEtkxYN.esm.js.map → useSelectableList-gohzq7dg.esm.js.map} +1 -1
- package/dist/chunks/useTextField-ABtLd27L.cjs +2 -0
- package/dist/chunks/{useTextField-CzF6gZ6-.cjs.map → useTextField-ABtLd27L.cjs.map} +1 -1
- package/dist/chunks/{useTextField-CdCrgSsV.esm.js → useTextField-FAMJ18ah.esm.js} +5 -4
- package/dist/chunks/{useTextField-CdCrgSsV.esm.js.map → useTextField-FAMJ18ah.esm.js.map} +1 -1
- package/dist/chunks/{useToggle-oUUHIEEp.esm.js → useToggle-B9oH7p52.esm.js} +7 -6
- package/dist/chunks/{useToggle-oUUHIEEp.esm.js.map → useToggle-B9oH7p52.esm.js.map} +1 -1
- package/dist/chunks/useToggle-WawJgKE5.cjs +2 -0
- package/dist/chunks/{useToggle-DOG2OJN_.cjs.map → useToggle-WawJgKE5.cjs.map} +1 -1
- package/dist/chunks/{useTreeState-Bi7rvUKr.cjs → useTreeState-C5z4FPeF.cjs} +2 -2
- package/dist/chunks/{useTreeState-Bi7rvUKr.cjs.map → useTreeState-C5z4FPeF.cjs.map} +1 -1
- package/dist/chunks/{useTreeState-BlJtuLmC.esm.js → useTreeState-DuW0JMo8.esm.js} +2 -2
- package/dist/chunks/{useTreeState-BlJtuLmC.esm.js.map → useTreeState-DuW0JMo8.esm.js.map} +1 -1
- package/dist/components/accordion.cjs +1 -1
- package/dist/components/accordion.es.js +2 -2
- package/dist/components/actions.cjs +1 -1
- package/dist/components/actions.es.js +1 -1
- package/dist/components/alert.cjs +1 -1
- package/dist/components/alert.es.js +1 -1
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +71 -0
- package/dist/components/breadcrumbs/breadcrumbs.recipe.d.ts +31 -0
- package/dist/components/breadcrumbs/breadcrumbs.slots.d.ts +27 -0
- package/dist/components/breadcrumbs/breadcrumbs.types.d.ts +142 -0
- package/dist/components/breadcrumbs/components/breadcrumbs.context.d.ts +13 -0
- package/dist/components/breadcrumbs/components/breadcrumbs.item.d.ts +20 -0
- package/dist/components/breadcrumbs/components/breadcrumbs.root.d.ts +19 -0
- package/dist/components/breadcrumbs/components/index.d.ts +2 -0
- package/dist/components/breadcrumbs/index.d.ts +2 -0
- package/dist/components/breadcrumbs.cjs +1 -0
- package/dist/components/breadcrumbs.es.js +2 -0
- package/dist/components/button.cjs +1 -1
- package/dist/components/button.es.js +1 -1
- package/dist/components/calendar.cjs +1 -1
- package/dist/components/calendar.es.js +1 -1
- package/dist/components/chat-message-list.cjs +1 -1
- package/dist/components/chat-message-list.es.js +1 -1
- package/dist/components/chat-message.cjs +1 -1
- package/dist/components/chat-message.es.js +1 -1
- package/dist/components/checkbox.cjs +1 -1
- package/dist/components/checkbox.es.js +1 -1
- package/dist/components/collapsible-motion.cjs +1 -1
- package/dist/components/collapsible-motion.es.js +1 -1
- package/dist/components/combobox.cjs +1 -1
- package/dist/components/combobox.es.js +1 -1
- package/dist/components/components.cjs +1 -1
- package/dist/components/components.es.js +1 -1
- package/dist/components/confirmation-dialog.cjs +1 -1
- package/dist/components/confirmation-dialog.es.js +1 -1
- package/dist/components/data-table.cjs +1 -1
- package/dist/components/data-table.es.js +1 -1
- package/dist/components/date-input.cjs +1 -1
- package/dist/components/date-input.es.js +1 -1
- package/dist/components/date-picker.cjs +1 -1
- package/dist/components/date-picker.es.js +1 -1
- package/dist/components/date-range-picker-field.cjs +1 -1
- package/dist/components/date-range-picker-field.es.js +2 -2
- package/dist/components/date-range-picker.cjs +1 -1
- package/dist/components/date-range-picker.es.js +1 -1
- package/dist/components/default-page.cjs +1 -1
- package/dist/components/default-page.es.js +1 -1
- package/dist/components/dialog.cjs +1 -1
- package/dist/components/dialog.es.js +1 -1
- package/dist/components/dialogs.cjs +1 -1
- package/dist/components/dialogs.es.js +2 -2
- package/dist/components/draggable-list.cjs +1 -1
- package/dist/components/draggable-list.es.js +1 -1
- package/dist/components/drawer.cjs +1 -1
- package/dist/components/drawer.es.js +1 -1
- package/dist/components/drop-zone.cjs +1 -1
- package/dist/components/drop-zone.es.js +1 -1
- package/dist/components/fields.cjs +1 -1
- package/dist/components/fields.es.js +4 -4
- package/dist/components/floating-action-button.cjs +1 -1
- package/dist/components/floating-action-button.es.js +1 -1
- package/dist/components/form-action-bar.cjs +1 -1
- package/dist/components/form-action-bar.es.js +1 -1
- package/dist/components/form-dialog.cjs +1 -1
- package/dist/components/form-dialog.es.js +1 -1
- package/dist/components/form-field.cjs +1 -1
- package/dist/components/form-field.es.js +1 -1
- package/dist/components/icon-button.cjs +1 -1
- package/dist/components/icon-button.es.js +1 -1
- package/dist/components/icon-toggle-button.cjs +1 -1
- package/dist/components/icon-toggle-button.es.js +1 -1
- package/dist/components/index.d.ts +5 -0
- package/dist/components/info-dialog.cjs +1 -1
- package/dist/components/info-dialog.es.js +1 -1
- package/dist/components/item/components/index.d.ts +8 -0
- package/dist/components/item/components/item.actions.d.ts +14 -0
- package/dist/components/item/components/item.content.d.ts +11 -0
- package/dist/components/item/components/item.description.d.ts +10 -0
- package/dist/components/item/components/item.footer.d.ts +10 -0
- package/dist/components/item/components/item.header.d.ts +10 -0
- package/dist/components/item/components/item.media.d.ts +18 -0
- package/dist/components/item/components/item.root.d.ts +16 -0
- package/dist/components/item/components/item.title.d.ts +10 -0
- package/dist/components/item/index.d.ts +2 -0
- package/dist/components/item/item.d.ts +177 -0
- package/dist/components/item/item.recipe.d.ts +52 -0
- package/dist/components/item/item.slots.d.ts +15 -0
- package/dist/components/item/item.types.d.ts +81 -0
- package/dist/components/item-group/components/index.d.ts +2 -0
- package/dist/components/item-group/components/item-group.root.d.ts +22 -0
- package/dist/components/item-group/components/item-group.separator.d.ts +11 -0
- package/dist/components/item-group/index.d.ts +2 -0
- package/dist/components/item-group/item-group.d.ts +62 -0
- package/dist/components/item-group/item-group.recipe.d.ts +11 -0
- package/dist/components/item-group/item-group.slots.d.ts +11 -0
- package/dist/components/item-group/item-group.types.d.ts +14 -0
- package/dist/components/item-group.cjs +1 -0
- package/dist/components/item-group.es.js +2 -0
- package/dist/components/item.cjs +1 -0
- package/dist/components/item.es.js +2 -0
- package/dist/components/list.cjs +1 -1
- package/dist/components/list.es.js +1 -1
- package/dist/components/loading-spinner.cjs +1 -1
- package/dist/components/loading-spinner.es.js +1 -1
- package/dist/components/localized-field.cjs +1 -1
- package/dist/components/localized-field.es.js +1 -1
- package/dist/components/markdown.cjs +1 -1
- package/dist/components/markdown.es.js +1 -1
- package/dist/components/modal-page.cjs +1 -1
- package/dist/components/modal-page.es.js +1 -1
- package/dist/components/money-input-field.cjs +1 -1
- package/dist/components/money-input-field.es.js +1 -1
- package/dist/components/money-input.cjs +1 -1
- package/dist/components/money-input.es.js +1 -1
- package/dist/components/multiline-text-input-field.cjs +1 -1
- package/dist/components/multiline-text-input-field.es.js +1 -1
- package/dist/components/multiline-text-input.cjs +1 -1
- package/dist/components/multiline-text-input.es.js +1 -1
- package/dist/components/nimbus-provider.cjs +1 -1
- package/dist/components/nimbus-provider.es.js +1 -1
- package/dist/components/number-input-field.cjs +1 -1
- package/dist/components/number-input-field.es.js +1 -1
- package/dist/components/number-input.cjs +1 -1
- package/dist/components/number-input.es.js +1 -1
- package/dist/components/pagination.cjs +1 -1
- package/dist/components/pagination.es.js +1 -1
- package/dist/components/password-input-field.cjs +1 -1
- package/dist/components/password-input-field.es.js +1 -1
- package/dist/components/password-input.cjs +1 -1
- package/dist/components/password-input.es.js +1 -1
- package/dist/components/patterns.cjs +1 -1
- package/dist/components/patterns.es.js +7 -7
- package/dist/components/popover.cjs +1 -1
- package/dist/components/popover.es.js +1 -1
- package/dist/components/progress-bar.cjs +1 -1
- package/dist/components/progress-bar.es.js +1 -1
- package/dist/components/radio-input.cjs +1 -1
- package/dist/components/radio-input.es.js +1 -1
- package/dist/components/range-calendar.cjs +1 -1
- package/dist/components/range-calendar.es.js +1 -1
- package/dist/components/range-slider.cjs +1 -0
- package/dist/components/range-slider.es.js +2 -0
- package/dist/components/rich-text-input.cjs +1 -1
- package/dist/components/rich-text-input.es.js +1 -1
- package/dist/components/scoped-search-input.cjs +1 -1
- package/dist/components/scoped-search-input.es.js +1 -1
- package/dist/components/search-input-field.cjs +1 -1
- package/dist/components/search-input-field.es.js +2 -2
- package/dist/components/search-input.cjs +1 -1
- package/dist/components/search-input.es.js +1 -1
- package/dist/components/select.cjs +1 -1
- package/dist/components/select.es.js +1 -1
- package/dist/components/separator.cjs +1 -1
- package/dist/components/separator.es.js +1 -1
- package/dist/components/skeleton/derivatives/skeleton-circle/index.d.ts +2 -0
- package/dist/components/skeleton/derivatives/skeleton-circle/skeleton-circle.d.ts +17 -0
- package/dist/components/skeleton/derivatives/skeleton-circle/skeleton-circle.types.d.ts +21 -0
- package/dist/components/skeleton/derivatives/skeleton-text/index.d.ts +2 -0
- package/dist/components/skeleton/derivatives/skeleton-text/skeleton-text.d.ts +16 -0
- package/dist/components/skeleton/derivatives/skeleton-text/skeleton-text.types.d.ts +45 -0
- package/dist/components/skeleton/index.d.ts +6 -0
- package/dist/components/skeleton/skeleton.d.ts +20 -0
- package/dist/components/skeleton/skeleton.recipe.d.ts +59 -0
- package/dist/components/skeleton/skeleton.slots.d.ts +7 -0
- package/dist/components/skeleton/skeleton.types.d.ts +50 -0
- package/dist/components/skeleton-circle.cjs +1 -0
- package/dist/components/skeleton-circle.es.js +2 -0
- package/dist/components/skeleton-text.cjs +1 -0
- package/dist/components/skeleton-text.es.js +2 -0
- package/dist/components/skeleton.cjs +1 -0
- package/dist/components/skeleton.es.js +6 -0
- package/dist/components/slider/derivatives/range-slider/index.d.ts +2 -0
- package/dist/components/slider/derivatives/range-slider/range-slider.d.ts +20 -0
- package/dist/components/slider/derivatives/range-slider/range-slider.types.d.ts +13 -0
- package/dist/components/slider/index.d.ts +4 -0
- package/dist/components/slider/intl/de.d.ts +10 -0
- package/dist/components/slider/intl/en.d.ts +10 -0
- package/dist/components/slider/intl/es.d.ts +10 -0
- package/dist/components/slider/intl/fr-FR.d.ts +10 -0
- package/dist/components/slider/intl/pt-BR.d.ts +10 -0
- package/dist/components/slider/slider-base.d.ts +10 -0
- package/dist/components/slider/slider.d.ts +13 -0
- package/dist/components/slider/slider.i18n.d.ts +12 -0
- package/dist/components/slider/slider.messages.d.ts +6 -0
- package/dist/components/slider/slider.recipe.d.ts +138 -0
- package/dist/components/slider/slider.slots.d.ts +9 -0
- package/dist/components/slider/slider.types.d.ts +57 -0
- package/dist/components/slider.cjs +1 -0
- package/dist/components/slider.es.js +4 -0
- package/dist/components/split-button.cjs +1 -1
- package/dist/components/split-button.es.js +1 -1
- package/dist/components/splitter.cjs +1 -1
- package/dist/components/splitter.es.js +1 -1
- package/dist/components/steps.cjs +1 -1
- package/dist/components/steps.es.js +1 -1
- package/dist/components/switch.cjs +1 -1
- package/dist/components/switch.es.js +1 -1
- package/dist/components/tab-nav.cjs +1 -1
- package/dist/components/tab-nav.es.js +1 -1
- package/dist/components/table.cjs +1 -1
- package/dist/components/table.es.js +1 -1
- package/dist/components/tabs.cjs +1 -1
- package/dist/components/tabs.es.js +1 -1
- package/dist/components/tag-group.cjs +1 -1
- package/dist/components/tag-group.es.js +1 -1
- package/dist/components/text-input-field.cjs +1 -1
- package/dist/components/text-input-field.es.js +2 -2
- package/dist/components/text-input.cjs +1 -1
- package/dist/components/text-input.es.js +1 -1
- package/dist/components/time-input.cjs +1 -1
- package/dist/components/time-input.es.js +1 -1
- package/dist/components/toast.cjs +1 -1
- package/dist/components/toast.es.js +1 -1
- package/dist/components/toggle-button.cjs +1 -1
- package/dist/components/toggle-button.es.js +1 -1
- package/dist/components/toolbar.cjs +1 -1
- package/dist/components/toolbar.es.js +1 -1
- package/dist/components/tree.cjs +1 -1
- package/dist/components/tree.es.js +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +170 -162
- package/dist/index.es.js.map +1 -1
- package/dist/theme/keyframes.d.ts +11 -0
- package/dist/theme/recipes/index.d.ts +46 -0
- package/dist/theme/slot-recipes/index.d.ts +193 -0
- package/package.json +6 -6
- package/dist/chunks/DateField-DI1RhZqo.cjs +0 -2
- package/dist/chunks/Dialog-s5tFTj72.cjs +0 -6
- package/dist/chunks/ListBox-CXgfDQSn.cjs +0 -2
- package/dist/chunks/chat-message-list-BhWZEg4l.esm.js.map +0 -1
- package/dist/chunks/chat-message-list-BvzHnJHs.cjs +0 -2
- package/dist/chunks/chat-message-list-BvzHnJHs.cjs.map +0 -1
- package/dist/chunks/data-table-CHpJecej.cjs +0 -2
- package/dist/chunks/draggable-list-CKKl6A_a.cjs +0 -2
- package/dist/chunks/number-input-DU3522fK.cjs +0 -2
- package/dist/chunks/radio-input-_eEv0K2W.cjs +0 -2
- package/dist/chunks/select-DdeLYdJ3.cjs +0 -2
- package/dist/chunks/tab-nav-CunrpVeV.cjs +0 -2
- package/dist/chunks/tab-nav-CunrpVeV.cjs.map +0 -1
- package/dist/chunks/tab-nav-EHnsfeUM.esm.js +0 -99
- package/dist/chunks/tab-nav-EHnsfeUM.esm.js.map +0 -1
- package/dist/chunks/tabs-BbC8to5L.cjs +0 -2
- package/dist/chunks/tag-group-t9CCZs9w.cjs +0 -2
- package/dist/chunks/theme-BR3bc6tH.esm.js.map +0 -1
- package/dist/chunks/theme-tOoHVZZ6.cjs +0 -34
- package/dist/chunks/theme-tOoHVZZ6.cjs.map +0 -1
- package/dist/chunks/use-tree-CrwSJhB8.cjs +0 -2
- package/dist/chunks/useCollection-C04LezXC.cjs +0 -2
- package/dist/chunks/useCollection-C04LezXC.cjs.map +0 -1
- package/dist/chunks/useCollection-CGf4ZguH.esm.js.map +0 -1
- package/dist/chunks/useFormValidationState-B5e8EeJ8.cjs +0 -2
- package/dist/chunks/useFormValidationState-B5e8EeJ8.cjs.map +0 -1
- package/dist/chunks/useFormValidationState-rjMRhdnd.esm.js.map +0 -1
- package/dist/chunks/useProgressBar-DDrlZQv4.cjs +0 -2
- package/dist/chunks/useProgressBar-DDrlZQv4.cjs.map +0 -1
- package/dist/chunks/useProgressBar-DmcvqOjq.esm.js +0 -41
- package/dist/chunks/useProgressBar-DmcvqOjq.esm.js.map +0 -1
- package/dist/chunks/useTextField-CzF6gZ6-.cjs +0 -2
- package/dist/chunks/useToggle-DOG2OJN_.cjs +0 -2
package/dist/chunks/{draggable-list-C5aulsay.esm.js.map → draggable-list-DKGfS4ob.esm.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draggable-list-C5aulsay.esm.js","names":["$6XsrP$createContext","$6XsrP$forwardRef","$6XsrP$react","$6XsrP$CollectionBuilder","$6XsrP$Collection","$6XsrP$useContext","$6XsrP$UNSTABLE_useFilteredListState","$6XsrP$useListState","$6XsrP$useCollator","$6XsrP$useLocale","$6XsrP$useMemo","$6XsrP$ListKeyboardDelegate","$6XsrP$useGridList","$6XsrP$useRef","$6XsrP$useEffect","$6XsrP$useFocusRing","$6XsrP$filterDOMProps","$6XsrP$FocusScope","$6XsrP$mergeProps","$6XsrP$createLeafComponent","$6XsrP$ItemNode","$6XsrP$useObjectRef","$6XsrP$useGridListItem","$6XsrP$useHover","$6XsrP$useGridListSelectionCheckbox","$6XsrP$useVisuallyHidden","$6XsrP$LoaderNode","$6XsrP$useLoadMoreSentinel","$6XsrP$inertValue"],"sources":["../../../../node_modules/.pnpm/react-aria-components@1.19.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/dist/private/GridList.mjs","../../src/hooks/use-drag-and-drop/process-drop-items.ts","../../src/hooks/use-drag-and-drop/use-drag-and-drop.ts","../../src/hooks/use-drag-and-drop/state-handlers.ts","../../../../node_modules/.pnpm/dequal@2.0.3/node_modules/dequal/dist/index.mjs","../../src/components/draggable-list/intl/en.ts","../../src/components/draggable-list/intl/de.ts","../../src/components/draggable-list/intl/es.ts","../../src/components/draggable-list/intl/fr-FR.ts","../../src/components/draggable-list/intl/pt-BR.ts","../../src/components/draggable-list/draggable-list.messages.ts","../../src/components/draggable-list/draggable-list.slots.tsx","../../src/components/draggable-list/components/draggable-list.item.tsx","../../src/components/draggable-list/components/draggable-list.root.tsx","../../src/components/draggable-list/components/draggable-list.field.tsx","../../src/components/draggable-list/draggable-list.tsx"],"sourcesContent":["import {ButtonContext as $7705c033048f6da7$export$24d547caef80ccd1} from \"./Button.mjs\";\nimport {CheckboxContext as $ed8ccb2e23e76301$export$b085522c77523c51, CheckboxFieldContext as $ed8ccb2e23e76301$export$c32003b803b6c22e} from \"./Checkbox.mjs\";\nimport {DEFAULT_SLOT as $7230ffa83bc0c2cf$export$c62b8e45d58ddad9, dom as $7230ffa83bc0c2cf$export$df3a06d6289f983e, Provider as $7230ffa83bc0c2cf$export$2881499e37b75b9a, useContextProps as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, useRenderProps as $7230ffa83bc0c2cf$export$4d86445c2cf5e3} from \"./utils.mjs\";\nimport {CollectionRendererContext as $263ab7fc0f95ccdb$export$4feb769f8ddf26c5, DefaultCollectionRenderer as $263ab7fc0f95ccdb$export$a164736487e3f0ae} from \"./Collection.mjs\";\nimport {DragAndDropContext as $f9554a667e4f0374$export$d188a835a7bc5783, DropIndicatorContext as $f9554a667e4f0374$export$f55761759794cf55, useDndPersistedKeys as $f9554a667e4f0374$export$d1e8e3fbb7461f6, useRenderDropIndicator as $f9554a667e4f0374$export$971707d8a129a1f7} from \"./DragAndDrop.mjs\";\nimport {FieldInputContext as $4b38b5b75ecc6208$export$698f465ec27e93df, SelectableCollectionContext as $4b38b5b75ecc6208$export$b0d3ecf7112093a7} from \"./Autocomplete.mjs\";\nimport {ListStateContext as $928221da08ecbc62$export$7c5906fe4f1f2af2} from \"./ListBox.mjs\";\nimport {SelectionIndicatorContext as $91fe5e721c7f36c1$export$c9549807523555e0} from \"./SelectionIndicator.mjs\";\nimport {SharedElementTransition as $792f28e438b9ad5f$export$758399f318e6385a} from \"./SharedElementTransition.mjs\";\nimport {TextContext as $efe09c6d1c304b50$export$9afb8bc826b033ea} from \"./Text.mjs\";\nimport {useGridList as $6XsrP$useGridList, useGridListItem as $6XsrP$useGridListItem, useGridListSelectionCheckbox as $6XsrP$useGridListSelectionCheckbox, useGridListSection as $6XsrP$useGridListSection} from \"react-aria/useGridList\";\nimport {Collection as $6XsrP$Collection} from \"react-aria/Collection\";\nimport {CollectionBuilder as $6XsrP$CollectionBuilder, createLeafComponent as $6XsrP$createLeafComponent, createBranchComponent as $6XsrP$createBranchComponent} from \"react-aria/CollectionBuilder\";\nimport {filterDOMProps as $6XsrP$filterDOMProps} from \"react-aria/filterDOMProps\";\nimport {FocusScope as $6XsrP$FocusScope} from \"react-aria/FocusScope\";\nimport {ItemNode as $6XsrP$ItemNode, LoaderNode as $6XsrP$LoaderNode, SectionNode as $6XsrP$SectionNode, HeaderNode as $6XsrP$HeaderNode} from \"react-aria/private/collections/BaseCollection\";\nimport {inertValue as $6XsrP$inertValue} from \"react-aria/private/utils/inertValue\";\nimport {ListKeyboardDelegate as $6XsrP$ListKeyboardDelegate} from \"react-aria/ListKeyboardDelegate\";\nimport {useListState as $6XsrP$useListState, UNSTABLE_useFilteredListState as $6XsrP$UNSTABLE_useFilteredListState} from \"react-stately/useListState\";\nimport {useLoadMoreSentinel as $6XsrP$useLoadMoreSentinel} from \"react-aria/private/utils/useLoadMoreSentinel\";\nimport {mergeProps as $6XsrP$mergeProps} from \"react-aria/mergeProps\";\nimport $6XsrP$react, {createContext as $6XsrP$createContext, forwardRef as $6XsrP$forwardRef, useContext as $6XsrP$useContext, useMemo as $6XsrP$useMemo, useRef as $6XsrP$useRef, useEffect as $6XsrP$useEffect} from \"react\";\nimport {useCollator as $6XsrP$useCollator} from \"react-aria/useCollator\";\nimport {useFocusRing as $6XsrP$useFocusRing} from \"react-aria/useFocusRing\";\nimport {useHover as $6XsrP$useHover} from \"react-aria/useHover\";\nimport {useLocale as $6XsrP$useLocale} from \"react-aria/I18nProvider\";\nimport {useObjectRef as $6XsrP$useObjectRef} from \"react-aria/useObjectRef\";\nimport {useVisuallyHidden as $6XsrP$useVisuallyHidden} from \"react-aria/VisuallyHidden\";\n\n/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nconst $1f7649abe3ae3599$export$54fe942636b6416d = /*#__PURE__*/ (0, $6XsrP$createContext)(null);\nconst $1f7649abe3ae3599$export$a7bfbda1311ca015 = /*#__PURE__*/ (0, $6XsrP$forwardRef)(function GridList(props, ref) {\n // Render the portal first so that we have the collection by the time we render the DOM in SSR.\n [props, ref] = (0, $7230ffa83bc0c2cf$export$29f1550f4b0d4415)(props, ref, $1f7649abe3ae3599$export$54fe942636b6416d);\n return /*#__PURE__*/ (0, $6XsrP$react).createElement((0, $6XsrP$CollectionBuilder), {\n content: /*#__PURE__*/ (0, $6XsrP$react).createElement((0, $6XsrP$Collection), props)\n }, (collection)=>/*#__PURE__*/ (0, $6XsrP$react).createElement($1f7649abe3ae3599$var$GridListInner, {\n props: props,\n collection: collection,\n gridListRef: ref\n }));\n});\nfunction $1f7649abe3ae3599$var$GridListInner({ props: props, collection: collection, gridListRef: ref }) {\n [props, ref] = (0, $7230ffa83bc0c2cf$export$29f1550f4b0d4415)(props, ref, (0, $4b38b5b75ecc6208$export$b0d3ecf7112093a7));\n let { shouldUseVirtualFocus: // eslint-disable-next-line @typescript-eslint/no-unused-vars\n shouldUseVirtualFocus, filter: filter, disallowTypeAhead: disallowTypeAhead, UNSTABLE_focusOnEntry: UNSTABLE_focusOnEntry, ...DOMCollectionProps } = props;\n let { dragAndDropHooks: dragAndDropHooks, keyboardNavigationBehavior: keyboardNavigationBehavior = 'arrow', layout: layout = 'stack', orientation: orientation = 'vertical' } = props;\n let { CollectionRoot: CollectionRoot, isVirtualized: isVirtualized, layoutDelegate: layoutDelegate, dropTargetDelegate: ctxDropTargetDelegate } = (0, $6XsrP$useContext)((0, $263ab7fc0f95ccdb$export$4feb769f8ddf26c5));\n let gridlistState = (0, $6XsrP$useListState)({\n ...DOMCollectionProps,\n collection: collection,\n children: undefined,\n layoutDelegate: layoutDelegate\n });\n let filteredState = (0, $6XsrP$UNSTABLE_useFilteredListState)(gridlistState, filter);\n let collator = (0, $6XsrP$useCollator)({\n usage: 'search',\n sensitivity: 'base'\n });\n let { disabledBehavior: disabledBehavior, disabledKeys: disabledKeys } = filteredState.selectionManager;\n let { direction: direction } = (0, $6XsrP$useLocale)();\n let keyboardDelegate = (0, $6XsrP$useMemo)(()=>new (0, $6XsrP$ListKeyboardDelegate)({\n collection: filteredState.collection,\n collator: collator,\n ref: ref,\n disabledKeys: disabledKeys,\n disabledBehavior: disabledBehavior,\n layoutDelegate: layoutDelegate,\n layout: layout,\n orientation: orientation,\n direction: direction\n }), [\n filteredState.collection,\n ref,\n layout,\n orientation,\n disabledKeys,\n disabledBehavior,\n layoutDelegate,\n collator,\n direction\n ]);\n let { gridProps: gridProps } = (0, $6XsrP$useGridList)({\n ...DOMCollectionProps,\n keyboardDelegate: keyboardDelegate,\n // Only tab navigation is supported in grid layout.\n keyboardNavigationBehavior: layout === 'grid' ? 'tab' : keyboardNavigationBehavior,\n isVirtualized: isVirtualized,\n shouldSelectOnPressUp: props.shouldSelectOnPressUp,\n disallowTypeAhead: disallowTypeAhead,\n UNSTABLE_focusOnEntry: UNSTABLE_focusOnEntry\n }, filteredState, ref);\n let selectionManager = filteredState.selectionManager;\n let isListDraggable = !!dragAndDropHooks?.useDraggableCollectionState;\n let isListDroppable = !!dragAndDropHooks?.useDroppableCollectionState;\n let dragHooksProvided = (0, $6XsrP$useRef)(isListDraggable);\n let dropHooksProvided = (0, $6XsrP$useRef)(isListDroppable);\n (0, $6XsrP$useEffect)(()=>{\n if (process.env.NODE_ENV === 'production') return;\n if (dragHooksProvided.current !== isListDraggable) console.warn('Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.');\n if (dropHooksProvided.current !== isListDroppable) console.warn('Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.');\n }, [\n isListDraggable,\n isListDroppable\n ]);\n let dragState = undefined;\n let dropState = undefined;\n let droppableCollection = undefined;\n let isRootDropTarget = false;\n let dragPreview = null;\n let preview = (0, $6XsrP$useRef)(null);\n if (isListDraggable && dragAndDropHooks) {\n dragState = dragAndDropHooks.useDraggableCollectionState({\n collection: filteredState.collection,\n selectionManager: selectionManager,\n preview: dragAndDropHooks.renderDragPreview ? preview : undefined\n });\n dragAndDropHooks.useDraggableCollection({}, dragState, ref);\n let DragPreview = dragAndDropHooks.DragPreview;\n dragPreview = dragAndDropHooks.renderDragPreview ? /*#__PURE__*/ (0, $6XsrP$react).createElement(DragPreview, {\n ref: preview\n }, dragAndDropHooks.renderDragPreview) : null;\n }\n if (isListDroppable && dragAndDropHooks) {\n dropState = dragAndDropHooks.useDroppableCollectionState({\n collection: filteredState.collection,\n selectionManager: selectionManager\n });\n let dropTargetDelegate = dragAndDropHooks.dropTargetDelegate || ctxDropTargetDelegate || new dragAndDropHooks.ListDropTargetDelegate(collection, ref, {\n layout: layout,\n direction: direction,\n orientation: orientation\n });\n droppableCollection = dragAndDropHooks.useDroppableCollection({\n keyboardDelegate: keyboardDelegate,\n dropTargetDelegate: dropTargetDelegate\n }, dropState, ref);\n isRootDropTarget = dropState.isDropTarget({\n type: 'root'\n });\n }\n let { focusProps: focusProps, isFocused: isFocused, isFocusVisible: isFocusVisible } = (0, $6XsrP$useFocusRing)();\n let isEmpty = filteredState.collection.size === 0;\n let renderValues = {\n isDropTarget: isRootDropTarget,\n orientation: orientation,\n isEmpty: isEmpty,\n isFocused: isFocused,\n isFocusVisible: isFocusVisible,\n layout: layout,\n state: filteredState\n };\n let renderProps = (0, $7230ffa83bc0c2cf$export$4d86445c2cf5e3)({\n ...props,\n children: undefined,\n defaultClassName: 'react-aria-GridList',\n values: renderValues\n });\n let emptyState = null;\n let emptyStatePropOverrides = null;\n if (isEmpty && props.renderEmptyState) {\n let content = props.renderEmptyState(renderValues);\n emptyState = /*#__PURE__*/ (0, $6XsrP$react).createElement(\"div\", {\n role: \"row\",\n \"aria-rowindex\": 1,\n style: {\n display: 'contents'\n }\n }, /*#__PURE__*/ (0, $6XsrP$react).createElement(\"div\", {\n role: \"gridcell\",\n style: {\n display: 'contents'\n }\n }, content));\n }\n let DOMProps = (0, $6XsrP$filterDOMProps)(props, {\n global: true\n });\n return /*#__PURE__*/ (0, $6XsrP$react).createElement((0, $6XsrP$FocusScope), null, /*#__PURE__*/ (0, $6XsrP$react).createElement((0, $7230ffa83bc0c2cf$export$df3a06d6289f983e).div, {\n ...(0, $6XsrP$mergeProps)(DOMProps, renderProps, gridProps, focusProps, droppableCollection?.collectionProps, emptyStatePropOverrides),\n ref: ref,\n slot: props.slot || undefined,\n onScroll: props.onScroll,\n \"data-drop-target\": isRootDropTarget || undefined,\n \"data-empty\": isEmpty || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-layout\": layout,\n \"data-orientation\": orientation\n }, /*#__PURE__*/ (0, $6XsrP$react).createElement((0, $7230ffa83bc0c2cf$export$2881499e37b75b9a), {\n values: [\n [\n (0, $928221da08ecbc62$export$7c5906fe4f1f2af2),\n filteredState\n ],\n [\n (0, $f9554a667e4f0374$export$d188a835a7bc5783),\n {\n dragAndDropHooks: dragAndDropHooks,\n dragState: dragState,\n dropState: dropState\n }\n ],\n [\n (0, $f9554a667e4f0374$export$f55761759794cf55),\n {\n render: $1f7649abe3ae3599$var$GridListDropIndicatorWrapper\n }\n ]\n ]\n }, isListDroppable && /*#__PURE__*/ (0, $6XsrP$react).createElement($1f7649abe3ae3599$var$RootDropIndicator, null), /*#__PURE__*/ (0, $6XsrP$react).createElement((0, $792f28e438b9ad5f$export$758399f318e6385a), null, /*#__PURE__*/ (0, $6XsrP$react).createElement(CollectionRoot, {\n collection: filteredState.collection,\n scrollRef: ref,\n persistedKeys: (0, $f9554a667e4f0374$export$d1e8e3fbb7461f6)(selectionManager, dragAndDropHooks, dropState),\n renderDropIndicator: (0, $f9554a667e4f0374$export$971707d8a129a1f7)(dragAndDropHooks, dropState)\n }))), emptyState, dragPreview));\n}\nconst $1f7649abe3ae3599$export$e96fc9a8407faa6b = /*#__PURE__*/ (0, $6XsrP$createLeafComponent)((0, $6XsrP$ItemNode), function GridListItem(props, forwardedRef, item) {\n let state = (0, $6XsrP$useContext)((0, $928221da08ecbc62$export$7c5906fe4f1f2af2));\n let { dragAndDropHooks: dragAndDropHooks, dragState: dragState, dropState: dropState } = (0, $6XsrP$useContext)((0, $f9554a667e4f0374$export$d188a835a7bc5783));\n let ref = (0, $6XsrP$useObjectRef)(forwardedRef);\n let { isVirtualized: isVirtualized } = (0, $6XsrP$useContext)((0, $263ab7fc0f95ccdb$export$4feb769f8ddf26c5));\n let isDraggable = dragState && !(dragState.isDisabled || dragState.selectionManager.isDisabled(item.key));\n let { rowProps: rowProps, gridCellProps: gridCellProps, descriptionProps: descriptionProps, ...states } = (0, $6XsrP$useGridListItem)({\n node: item,\n shouldSelectOnPressUp: !!dragState,\n isVirtualized: isVirtualized\n }, state, ref);\n let { hoverProps: hoverProps, isHovered: isHovered } = (0, $6XsrP$useHover)({\n // because of https://bugs.webkit.org/show_bug.cgi?id=214609, supporting hover styles when a item is ONLY isDraggable\n // results in hover styles sticking around after a reorder/drop operation...\n isDisabled: !states.allowsSelection && !states.hasAction && !isDraggable,\n onHoverStart: item.props.onHoverStart,\n onHoverChange: item.props.onHoverChange,\n onHoverEnd: item.props.onHoverEnd\n });\n let { isFocusVisible: isFocusVisible, focusProps: focusProps } = (0, $6XsrP$useFocusRing)();\n let { isFocusVisible: isFocusVisibleWithin, focusProps: focusWithinProps } = (0, $6XsrP$useFocusRing)({\n within: true\n });\n let { checkboxProps: checkboxProps } = (0, $6XsrP$useGridListSelectionCheckbox)({\n key: item.key\n }, state);\n let buttonProps = state.selectionManager.disabledBehavior === 'all' && states.isDisabled ? {\n isDisabled: true\n } : {};\n let draggableItem = null;\n if (dragState && dragAndDropHooks) draggableItem = dragAndDropHooks.useDraggableItem({\n key: item.key,\n hasDragButton: true\n }, dragState);\n let dropIndicator = null;\n let dropIndicatorRef = (0, $6XsrP$useRef)(null);\n let { visuallyHiddenProps: visuallyHiddenProps } = (0, $6XsrP$useVisuallyHidden)();\n if (dropState && dragAndDropHooks) dropIndicator = dragAndDropHooks.useDropIndicator({\n target: {\n type: 'item',\n key: item.key,\n dropPosition: 'on'\n }\n }, dropState, dropIndicatorRef);\n let isDragging = dragState && dragState.isDragging(item.key);\n let renderProps = (0, $7230ffa83bc0c2cf$export$4d86445c2cf5e3)({\n ...props,\n id: undefined,\n children: item.rendered,\n defaultClassName: 'react-aria-GridListItem',\n values: {\n ...states,\n isHovered: isHovered,\n isFocusVisible: isFocusVisible,\n isFocusVisibleWithin: isFocusVisibleWithin,\n selectionMode: state.selectionManager.selectionMode,\n selectionBehavior: state.selectionManager.selectionBehavior,\n allowsDragging: !!dragState,\n isDragging: isDragging,\n isDropTarget: dropIndicator?.isDropTarget,\n id: item.key,\n state: state\n }\n });\n let dragButtonRef = (0, $6XsrP$useRef)(null);\n (0, $6XsrP$useEffect)(()=>{\n if (dragState && !dragButtonRef.current) console.warn('Draggable items in a GridList must contain a <Button slot=\"drag\"> element so that keyboard and screen reader users can drag them.');\n // eslint-disable-next-line\n }, []);\n (0, $6XsrP$useEffect)(()=>{\n if (!item.textValue && process.env.NODE_ENV !== 'production') console.warn('A `textValue` prop is required for <GridListItem> elements with non-plain text children in order to support accessibility features such as type to select.');\n }, [\n item.textValue\n ]);\n let DOMProps = (0, $6XsrP$filterDOMProps)(props, {\n global: true\n });\n delete DOMProps.id;\n delete DOMProps.onClick;\n return /*#__PURE__*/ (0, $6XsrP$react).createElement((0, $6XsrP$react).Fragment, null, dropIndicator && !dropIndicator.isHidden && /*#__PURE__*/ (0, $6XsrP$react).createElement(\"div\", {\n role: \"row\",\n style: {\n position: 'absolute'\n }\n }, /*#__PURE__*/ (0, $6XsrP$react).createElement(\"div\", {\n role: \"gridcell\"\n }, /*#__PURE__*/ (0, $6XsrP$react).createElement(\"div\", {\n role: \"button\",\n ...visuallyHiddenProps,\n ...dropIndicator?.dropIndicatorProps,\n ref: dropIndicatorRef\n }))), /*#__PURE__*/ (0, $6XsrP$react).createElement((0, $7230ffa83bc0c2cf$export$df3a06d6289f983e).div, {\n ...(0, $6XsrP$mergeProps)(DOMProps, renderProps, rowProps, focusProps, focusWithinProps, hoverProps, draggableItem?.dragProps),\n ref: ref,\n \"data-selected\": states.isSelected || undefined,\n \"data-disabled\": states.isDisabled || undefined,\n \"data-hovered\": isHovered || undefined,\n \"data-focused\": states.isFocused || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-focus-visible-within\": isFocusVisibleWithin || undefined,\n \"data-pressed\": states.isPressed || undefined,\n \"data-allows-dragging\": !!dragState || undefined,\n \"data-dragging\": isDragging || undefined,\n \"data-drop-target\": dropIndicator?.isDropTarget || undefined,\n \"data-selection-mode\": state.selectionManager.selectionMode === 'none' ? undefined : state.selectionManager.selectionMode\n }, /*#__PURE__*/ (0, $6XsrP$react).createElement(\"div\", {\n ...gridCellProps,\n style: {\n display: 'contents'\n }\n }, /*#__PURE__*/ (0, $6XsrP$react).createElement((0, $7230ffa83bc0c2cf$export$2881499e37b75b9a), {\n values: [\n [\n (0, $ed8ccb2e23e76301$export$b085522c77523c51),\n {\n slots: {\n [(0, $7230ffa83bc0c2cf$export$c62b8e45d58ddad9)]: {},\n selection: checkboxProps\n }\n }\n ],\n [\n (0, $ed8ccb2e23e76301$export$c32003b803b6c22e),\n {\n slots: {\n [(0, $7230ffa83bc0c2cf$export$c62b8e45d58ddad9)]: {},\n selection: checkboxProps\n }\n }\n ],\n [\n (0, $7705c033048f6da7$export$24d547caef80ccd1),\n {\n slots: {\n [(0, $7230ffa83bc0c2cf$export$c62b8e45d58ddad9)]: buttonProps,\n drag: {\n ...draggableItem?.dragButtonProps,\n ref: dragButtonRef,\n style: {\n pointerEvents: 'none'\n }\n }\n }\n }\n ],\n [\n (0, $efe09c6d1c304b50$export$9afb8bc826b033ea),\n {\n slots: {\n [(0, $7230ffa83bc0c2cf$export$c62b8e45d58ddad9)]: {},\n description: descriptionProps\n }\n }\n ],\n [\n (0, $263ab7fc0f95ccdb$export$4feb769f8ddf26c5),\n (0, $263ab7fc0f95ccdb$export$a164736487e3f0ae)\n ],\n [\n (0, $928221da08ecbc62$export$7c5906fe4f1f2af2),\n null\n ],\n [\n (0, $4b38b5b75ecc6208$export$b0d3ecf7112093a7),\n null\n ],\n [\n (0, $4b38b5b75ecc6208$export$698f465ec27e93df),\n null\n ],\n [\n (0, $91fe5e721c7f36c1$export$c9549807523555e0),\n {\n isSelected: states.isSelected\n }\n ]\n ]\n }, renderProps.children))));\n});\nfunction $1f7649abe3ae3599$var$GridListDropIndicatorWrapper(props, ref) {\n ref = (0, $6XsrP$useObjectRef)(ref);\n let { dragAndDropHooks: dragAndDropHooks, dropState: dropState } = (0, $6XsrP$useContext)((0, $f9554a667e4f0374$export$d188a835a7bc5783));\n let buttonRef = (0, $6XsrP$useRef)(null);\n let { dropIndicatorProps: dropIndicatorProps, isHidden: isHidden, isDropTarget: isDropTarget } = dragAndDropHooks.useDropIndicator(props, dropState, buttonRef);\n if (isHidden) return null;\n return /*#__PURE__*/ (0, $6XsrP$react).createElement($1f7649abe3ae3599$var$GridListDropIndicatorForwardRef, {\n ...props,\n dropIndicatorProps: dropIndicatorProps,\n isDropTarget: isDropTarget,\n buttonRef: buttonRef,\n ref: ref\n });\n}\nfunction $1f7649abe3ae3599$var$GridListDropIndicator(props, ref) {\n let { dropIndicatorProps: dropIndicatorProps, isDropTarget: isDropTarget, buttonRef: buttonRef, ...otherProps } = props;\n let { visuallyHiddenProps: visuallyHiddenProps } = (0, $6XsrP$useVisuallyHidden)();\n let renderProps = (0, $7230ffa83bc0c2cf$export$4d86445c2cf5e3)({\n ...otherProps,\n defaultClassName: 'react-aria-DropIndicator',\n values: {\n isDropTarget: isDropTarget\n }\n });\n return /*#__PURE__*/ (0, $6XsrP$react).createElement((0, $7230ffa83bc0c2cf$export$df3a06d6289f983e).div, {\n ...renderProps,\n role: \"row\",\n ref: ref,\n \"data-drop-target\": isDropTarget || undefined\n }, /*#__PURE__*/ (0, $6XsrP$react).createElement(\"div\", {\n role: \"gridcell\"\n }, /*#__PURE__*/ (0, $6XsrP$react).createElement(\"div\", {\n ...visuallyHiddenProps,\n role: \"button\",\n ...dropIndicatorProps,\n ref: buttonRef\n }), renderProps.children));\n}\nconst $1f7649abe3ae3599$var$GridListDropIndicatorForwardRef = /*#__PURE__*/ (0, $6XsrP$forwardRef)($1f7649abe3ae3599$var$GridListDropIndicator);\nfunction $1f7649abe3ae3599$var$RootDropIndicator() {\n let { dragAndDropHooks: dragAndDropHooks, dropState: dropState } = (0, $6XsrP$useContext)((0, $f9554a667e4f0374$export$d188a835a7bc5783));\n let ref = (0, $6XsrP$useRef)(null);\n let { dropIndicatorProps: dropIndicatorProps } = dragAndDropHooks.useDropIndicator({\n target: {\n type: 'root'\n }\n }, dropState, ref);\n let isDropTarget = dropState.isDropTarget({\n type: 'root'\n });\n let { visuallyHiddenProps: visuallyHiddenProps } = (0, $6XsrP$useVisuallyHidden)();\n if (!isDropTarget && dropIndicatorProps['aria-hidden']) return null;\n return /*#__PURE__*/ (0, $6XsrP$react).createElement(\"div\", {\n role: \"row\",\n \"aria-hidden\": dropIndicatorProps['aria-hidden'],\n style: {\n position: 'absolute'\n }\n }, /*#__PURE__*/ (0, $6XsrP$react).createElement(\"div\", {\n role: \"gridcell\"\n }, /*#__PURE__*/ (0, $6XsrP$react).createElement(\"div\", {\n role: \"button\",\n ...visuallyHiddenProps,\n ...dropIndicatorProps,\n ref: ref\n })));\n}\nconst $1f7649abe3ae3599$export$392b9a0bbc7c7e43 = (0, $6XsrP$createLeafComponent)((0, $6XsrP$LoaderNode), function GridListLoadingIndicator(props, ref, item) {\n let state = (0, $6XsrP$useContext)((0, $928221da08ecbc62$export$7c5906fe4f1f2af2));\n let { isVirtualized: isVirtualized } = (0, $6XsrP$useContext)((0, $263ab7fc0f95ccdb$export$4feb769f8ddf26c5));\n let { isLoading: isLoading, onLoadMore: onLoadMore, scrollOffset: scrollOffset, ...otherProps } = props;\n let sentinelRef = (0, $6XsrP$useRef)(null);\n let memoedLoadMoreProps = (0, $6XsrP$useMemo)(()=>({\n onLoadMore: onLoadMore,\n collection: state?.collection,\n sentinelRef: sentinelRef,\n scrollOffset: scrollOffset\n }), [\n onLoadMore,\n scrollOffset,\n state?.collection\n ]);\n (0, $6XsrP$useLoadMoreSentinel)(memoedLoadMoreProps, sentinelRef);\n let renderProps = (0, $7230ffa83bc0c2cf$export$4d86445c2cf5e3)({\n ...otherProps,\n id: undefined,\n children: item.rendered,\n defaultClassName: 'react-aria-GridListLoadingIndicator',\n values: undefined\n });\n // For now don't include aria-posinset and aria-setsize on loader since they aren't keyboard focusable\n // Arguably shouldn't include them ever since it might be confusing to the user to include the loaders as part of the\n // item count\n return /*#__PURE__*/ (0, $6XsrP$react).createElement((0, $6XsrP$react).Fragment, null, /*#__PURE__*/ (0, $6XsrP$react).createElement(\"div\", {\n style: {\n position: 'relative',\n width: 0,\n height: 0\n },\n inert: (0, $6XsrP$inertValue)(true)\n }, /*#__PURE__*/ (0, $6XsrP$react).createElement(\"div\", {\n \"data-testid\": \"loadMoreSentinel\",\n ref: sentinelRef,\n style: {\n position: 'absolute',\n height: 1,\n width: 1\n }\n })), isLoading && renderProps.children && /*#__PURE__*/ (0, $6XsrP$react).createElement((0, $7230ffa83bc0c2cf$export$df3a06d6289f983e).div, {\n ...renderProps,\n ...(0, $6XsrP$filterDOMProps)(props, {\n global: true\n }),\n role: \"row\",\n ref: ref\n }, /*#__PURE__*/ (0, $6XsrP$react).createElement(\"div\", {\n \"aria-colindex\": isVirtualized ? 1 : undefined,\n role: \"gridcell\"\n }, renderProps.children)));\n});\nconst $1f7649abe3ae3599$export$f696877219115b14 = /*#__PURE__*/ (0, $6XsrP$createBranchComponent)((0, $6XsrP$SectionNode), (props, ref, item)=>{\n let state = (0, $6XsrP$useContext)((0, $928221da08ecbc62$export$7c5906fe4f1f2af2));\n let { CollectionBranch: CollectionBranch } = (0, $6XsrP$useContext)((0, $263ab7fc0f95ccdb$export$4feb769f8ddf26c5));\n let headingRef = (0, $6XsrP$useRef)(null);\n ref = (0, $6XsrP$useObjectRef)(ref);\n let { rowHeaderProps: rowHeaderProps, rowProps: rowProps, rowGroupProps: rowGroupProps } = (0, $6XsrP$useGridListSection)({\n 'aria-label': props['aria-label'] ?? undefined\n }, state, ref);\n let renderProps = (0, $7230ffa83bc0c2cf$export$4d86445c2cf5e3)({\n ...props,\n id: undefined,\n children: undefined,\n defaultClassName: 'react-aria-GridListSection',\n values: undefined\n });\n let DOMProps = (0, $6XsrP$filterDOMProps)(props, {\n global: true\n });\n delete DOMProps.id;\n return /*#__PURE__*/ (0, $6XsrP$react).createElement((0, $7230ffa83bc0c2cf$export$df3a06d6289f983e).div, {\n ...(0, $6XsrP$mergeProps)(DOMProps, renderProps, rowGroupProps),\n ref: ref\n }, /*#__PURE__*/ (0, $6XsrP$react).createElement((0, $7230ffa83bc0c2cf$export$2881499e37b75b9a), {\n values: [\n [\n $1f7649abe3ae3599$export$87f5843bfb30d205,\n {\n ...rowProps,\n ref: headingRef\n }\n ],\n [\n $1f7649abe3ae3599$export$bc7e8a4031ec2a33,\n {\n ...rowHeaderProps\n }\n ]\n ]\n }, /*#__PURE__*/ (0, $6XsrP$react).createElement(CollectionBranch, {\n collection: state.collection,\n parent: item\n })));\n});\nconst $1f7649abe3ae3599$export$87f5843bfb30d205 = /*#__PURE__*/ (0, $6XsrP$createContext)({});\nconst $1f7649abe3ae3599$export$bc7e8a4031ec2a33 = /*#__PURE__*/ (0, $6XsrP$createContext)(null);\nconst $1f7649abe3ae3599$export$1b574dbdb0075ff6 = /*#__PURE__*/ (0, $6XsrP$createLeafComponent)((0, $6XsrP$HeaderNode), function Header(props, ref) {\n [props, ref] = (0, $7230ffa83bc0c2cf$export$29f1550f4b0d4415)(props, ref, $1f7649abe3ae3599$export$87f5843bfb30d205);\n let rowHeaderProps = (0, $6XsrP$useContext)($1f7649abe3ae3599$export$bc7e8a4031ec2a33);\n return /*#__PURE__*/ (0, $6XsrP$react).createElement((0, $7230ffa83bc0c2cf$export$df3a06d6289f983e).div, {\n render: props.render,\n className: \"react-aria-GridListHeader\",\n ref: ref,\n ...props\n }, /*#__PURE__*/ (0, $6XsrP$react).createElement(\"div\", {\n ...rowHeaderProps,\n style: {\n display: 'contents'\n }\n }, props.children));\n});\n\n\nexport {$1f7649abe3ae3599$export$54fe942636b6416d as GridListContext, $1f7649abe3ae3599$export$a7bfbda1311ca015 as GridList, $1f7649abe3ae3599$export$e96fc9a8407faa6b as GridListItem, $1f7649abe3ae3599$export$392b9a0bbc7c7e43 as GridListLoadMoreItem, $1f7649abe3ae3599$export$f696877219115b14 as GridListSection, $1f7649abe3ae3599$export$87f5843bfb30d205 as GridListHeaderContext, $1f7649abe3ae3599$export$bc7e8a4031ec2a33 as GridListHeaderInnerContext, $1f7649abe3ae3599$export$1b574dbdb0075ff6 as GridListHeader};\n//# sourceMappingURL=GridList.mjs.map\n","import { isTextDropItem, type DropItem } from \"react-aria-components\";\n\n/**\n * Splits drop items into internal (Nimbus-serialized) and external,\n * processes externals via the consumer callback, and auto-keys any\n * items missing both `key` and `id`.\n */\nexport async function processDropItems<T extends Record<string, unknown>>(\n rawItems: DropItem[],\n dataFormat: string,\n onExternalDrop?: (items: DropItem[]) => T[] | Promise<T[]>\n): Promise<T[]> {\n const internalItems: T[] = [];\n const externalItems: DropItem[] = [];\n\n for (const item of rawItems) {\n if (isTextDropItem(item) && item.types.has(dataFormat)) {\n try {\n internalItems.push(JSON.parse(await item.getText(dataFormat)));\n } catch {\n // Skip items with invalid JSON (corrupted drag data)\n }\n } else {\n externalItems.push(item);\n }\n }\n\n const converted =\n externalItems.length > 0 && onExternalDrop\n ? await onExternalDrop(externalItems)\n : [];\n\n return [...internalItems, ...converted].map((item) =>\n item.key == null && item.id == null\n ? { ...item, key: crypto.randomUUID() }\n : item\n );\n}\n","import type { DropOperation } from \"react-aria-components\";\nimport { useDragAndDrop as useRaDragAndDrop } from \"react-aria-components\";\nimport { processDropItems } from \"./process-drop-items\";\nimport type { UseDragAndDropOptions } from \"./use-drag-and-drop.types\";\n\nconst DRAG_FORMAT_BASE = \"nimbus-collection-item\";\n\nexport function resolveDropOperation(\n types: { has(type: string | symbol): boolean },\n allowedOperations: DropOperation[],\n dataFormat: string,\n opts: {\n onExternalDrop?: unknown;\n acceptExternalTypes?: Array<string | symbol>;\n externalDropOperation: Exclude<DropOperation, \"cancel\">;\n }\n): DropOperation {\n if (types.has(dataFormat)) {\n return allowedOperations.includes(\"move\") ? \"move\" : \"cancel\";\n }\n if (opts.onExternalDrop) {\n const accepted = opts.acceptExternalTypes ?? [];\n const hasAcceptedType = accepted.some((t) => types.has(t));\n if (!hasAcceptedType) return \"cancel\";\n return allowedOperations.includes(opts.externalDropOperation)\n ? opts.externalDropOperation\n : \"cancel\";\n }\n return \"cancel\";\n}\n\n/**\n * Shared drag-and-drop hook for Nimbus collection components.\n *\n * Wraps React Aria's `useDragAndDrop` with namespace isolation, external drop\n * support, outgoing format serialization, and auto-keying. Returns\n * `{ dragAndDropHooks }` to pass to any React Aria collection component.\n */\nexport function useDragAndDrop<T extends Record<string, unknown>>(\n options: UseDragAndDropOptions<T>\n) {\n const {\n dataFormatBase = DRAG_FORMAT_BASE,\n dragNamespace,\n onExternalDrop,\n acceptExternalTypes,\n externalDropOperation = \"copy\",\n serializeDragItem,\n onInsertItems,\n onAppendItems,\n onReorder,\n onRemoveItems,\n } = options;\n\n const dataFormat = dragNamespace\n ? `${dataFormatBase}:${dragNamespace}`\n : dataFormatBase;\n\n const { dragAndDropHooks } = useRaDragAndDrop<T>({\n getItems(_keys, items) {\n return items.map((item) => ({\n [dataFormat]: JSON.stringify(item),\n ...(serializeDragItem?.(item) ?? {}),\n }));\n },\n\n acceptedDragTypes: onExternalDrop\n ? [dataFormat, ...(acceptExternalTypes ?? [])]\n : [dataFormat],\n\n getDropOperation: (_target, types, allowedOperations) =>\n resolveDropOperation(types, allowedOperations, dataFormat, {\n onExternalDrop,\n acceptExternalTypes,\n externalDropOperation,\n }),\n\n async onInsert(e) {\n if (!onInsertItems) return;\n const items = await processDropItems(e.items, dataFormat, onExternalDrop);\n if (items.length > 0) onInsertItems(items, e.target);\n },\n\n async onRootDrop(e) {\n if (!onAppendItems) return;\n const items = await processDropItems(e.items, dataFormat, onExternalDrop);\n if (items.length > 0) onAppendItems(items);\n },\n\n onReorder(e) {\n onReorder?.(e.keys, e.target);\n },\n\n async onDragEnd(e) {\n if (e.dropOperation === \"move\" && !e.isInternal) {\n onRemoveItems?.(e.keys);\n }\n },\n });\n\n return { dragAndDropHooks };\n}\n","import type { Dispatch, SetStateAction } from \"react\";\nimport type { Key, ItemDropTarget } from \"react-aria-components\";\n\ndeclare const process: { env: Record<string, string | undefined> } | undefined;\n\ntype ListData<T> = {\n insertBefore: (key: Key, ...items: T[]) => void;\n insertAfter: (key: Key, ...items: T[]) => void;\n append: (...items: T[]) => void;\n moveBefore: (key: Key, keys: Set<Key>) => void;\n moveAfter: (key: Key, keys: Set<Key>) => void;\n remove: (...keys: Key[]) => void;\n};\n\ntype StateHandlers<T> = {\n onInsertItems: (items: T[], target: ItemDropTarget) => void;\n onAppendItems: (items: T[]) => void;\n onReorder: (keys: Set<Key>, target: ItemDropTarget) => void;\n onRemoveItems: (keys: Set<Key>) => void;\n};\n\n/**\n * Creates state mutation callbacks for use with React Aria's `useListData`.\n * Spread the result into `useDragAndDrop` options.\n *\n * @example\n * ```tsx\n * const list = useListData({ initialItems, getKey });\n * const { dragAndDropHooks } = useDragAndDrop({\n * ...createListDataHandlers(list),\n * });\n * ```\n */\nexport function createListDataHandlers<T>(list: ListData<T>): StateHandlers<T> {\n return {\n onInsertItems(items, target) {\n if (target.dropPosition === \"before\") {\n list.insertBefore(target.key, ...items);\n } else if (target.dropPosition === \"after\") {\n list.insertAfter(target.key, ...items);\n }\n },\n onAppendItems(items) {\n list.append(...items);\n },\n onReorder(keys, target) {\n if (target.dropPosition === \"before\") {\n list.moveBefore(target.key, keys);\n } else if (target.dropPosition === \"after\") {\n list.moveAfter(target.key, keys);\n }\n },\n onRemoveItems(keys) {\n list.remove(...keys);\n },\n };\n}\n\n/**\n * Creates state mutation callbacks for use with plain `useState` arrays.\n * Spread the result into `useDragAndDrop` options.\n *\n * @param setItems - The state setter from `useState`\n * @param getKey - Function to extract a unique key from an item.\n * Defaults to `(item) => item.key ?? item.id`.\n *\n * @example\n * ```tsx\n * const [items, setItems] = useState(initialItems);\n * const { dragAndDropHooks } = useDragAndDrop({\n * ...createArrayHandlers(setItems, (item) => item.key),\n * });\n * ```\n */\nexport function createArrayHandlers<T extends Record<string, unknown>>(\n setItems: Dispatch<SetStateAction<T[]>>,\n getKey: (item: T) => Key = (item) => {\n const key = (item.key as Key) ?? (item.id as Key);\n if (key == null) {\n throw new Error(\n \"createArrayHandlers: item has no `key` or `id` field. Provide a custom `getKey` function.\"\n );\n }\n return key;\n }\n): StateHandlers<T> {\n return {\n onInsertItems(items, target) {\n setItems((prev) => {\n const idx = prev.findIndex((i) => getKey(i) === target.key);\n if (idx === -1) return [...prev, ...items];\n const pos = target.dropPosition === \"before\" ? idx : idx + 1;\n return [...prev.slice(0, pos), ...items, ...prev.slice(pos)];\n });\n },\n onAppendItems(items) {\n setItems((prev) => [...prev, ...items]);\n },\n onReorder(keys, target) {\n setItems((prev) => {\n const movedItems = prev.filter((i) => keys.has(getKey(i)));\n const remaining = prev.filter((i) => !keys.has(getKey(i)));\n const idx = remaining.findIndex((i) => getKey(i) === target.key);\n if (idx === -1) {\n if (\n typeof process !== \"undefined\" &&\n process.env.NODE_ENV !== \"production\"\n ) {\n console.warn(\n \"createArrayHandlers: target key not found in remaining items — appending to end.\"\n );\n }\n return [...remaining, ...movedItems];\n }\n const pos = target.dropPosition === \"before\" ? idx : idx + 1;\n return [\n ...remaining.slice(0, pos),\n ...movedItems,\n ...remaining.slice(pos),\n ];\n });\n },\n onRemoveItems(keys) {\n setItems((prev) => prev.filter((i) => !keys.has(getKey(i))));\n },\n };\n}\n","var has = Object.prototype.hasOwnProperty;\n\nfunction find(iter, tar, key) {\n\tfor (key of iter.keys()) {\n\t\tif (dequal(key, tar)) return key;\n\t}\n}\n\nexport function dequal(foo, bar) {\n\tvar ctor, len, tmp;\n\tif (foo === bar) return true;\n\n\tif (foo && bar && (ctor=foo.constructor) === bar.constructor) {\n\t\tif (ctor === Date) return foo.getTime() === bar.getTime();\n\t\tif (ctor === RegExp) return foo.toString() === bar.toString();\n\n\t\tif (ctor === Array) {\n\t\t\tif ((len=foo.length) === bar.length) {\n\t\t\t\twhile (len-- && dequal(foo[len], bar[len]));\n\t\t\t}\n\t\t\treturn len === -1;\n\t\t}\n\n\t\tif (ctor === Set) {\n\t\t\tif (foo.size !== bar.size) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tfor (len of foo) {\n\t\t\t\ttmp = len;\n\t\t\t\tif (tmp && typeof tmp === 'object') {\n\t\t\t\t\ttmp = find(bar, tmp);\n\t\t\t\t\tif (!tmp) return false;\n\t\t\t\t}\n\t\t\t\tif (!bar.has(tmp)) return false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\n\t\tif (ctor === Map) {\n\t\t\tif (foo.size !== bar.size) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tfor (len of foo) {\n\t\t\t\ttmp = len[0];\n\t\t\t\tif (tmp && typeof tmp === 'object') {\n\t\t\t\t\ttmp = find(bar, tmp);\n\t\t\t\t\tif (!tmp) return false;\n\t\t\t\t}\n\t\t\t\tif (!dequal(len[1], bar.get(tmp))) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\n\t\tif (ctor === ArrayBuffer) {\n\t\t\tfoo = new Uint8Array(foo);\n\t\t\tbar = new Uint8Array(bar);\n\t\t} else if (ctor === DataView) {\n\t\t\tif ((len=foo.byteLength) === bar.byteLength) {\n\t\t\t\twhile (len-- && foo.getInt8(len) === bar.getInt8(len));\n\t\t\t}\n\t\t\treturn len === -1;\n\t\t}\n\n\t\tif (ArrayBuffer.isView(foo)) {\n\t\t\tif ((len=foo.byteLength) === bar.byteLength) {\n\t\t\t\twhile (len-- && foo[len] === bar[len]);\n\t\t\t}\n\t\t\treturn len === -1;\n\t\t}\n\n\t\tif (!ctor || typeof foo === 'object') {\n\t\t\tlen = 0;\n\t\t\tfor (ctor in foo) {\n\t\t\t\tif (has.call(foo, ctor) && ++len && !has.call(bar, ctor)) return false;\n\t\t\t\tif (!(ctor in bar) || !dequal(foo[ctor], bar[ctor])) return false;\n\t\t\t}\n\t\t\treturn Object.keys(bar).length === len;\n\t\t}\n\t}\n\n\treturn foo !== foo && bar !== bar;\n}\n","/**\n * Pre-compiled en messages for DraggableList\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n emptyMessage: `drop items here`,\n removeButtonLabel: `remove item`,\n};\n","/**\n * Pre-compiled de messages for DraggableList\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n emptyMessage: `Artikel hier ablegen`,\n removeButtonLabel: `Artikel entfernen`,\n};\n","/**\n * Pre-compiled es messages for DraggableList\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n emptyMessage: `Soltar artículos aquí`,\n removeButtonLabel: `Eliminar artículo`,\n};\n","/**\n * Pre-compiled fr-FR messages for DraggableList\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n emptyMessage: `Déposer les articles ici`,\n removeButtonLabel: `Supprimer l'article`,\n};\n","/**\n * Pre-compiled pt-BR messages for DraggableList\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n emptyMessage: `arrastar itens aqui`,\n removeButtonLabel: `remover item`,\n};\n","/**\n * Pre-compiled localized messages for DraggableList component\n *\n * Generated by scripts/generate-dictionaries.ts\n * DO NOT EDIT MANUALLY\n *\n * @see https://react-spectrum.adobe.com/react-aria/internationalization.html\n */\n\nimport {\n type LocalizedString,\n type LocalizedStrings,\n} from \"@internationalized/string\";\nimport { normalizeMessages } from \"../../utils/normalize-messages\";\n\n// Pre-compiled message functions\nimport draggableListMessages_en from \"./intl/en\";\nimport draggableListMessages_de from \"./intl/de\";\nimport draggableListMessages_es from \"./intl/es\";\nimport draggableListMessages_fr from \"./intl/fr-FR\";\nimport draggableListMessages_pt from \"./intl/pt-BR\";\n\n// Raw LocalizedStrings object for use with useLocalizedStringFormatter hook\nexport const draggableListMessagesStrings: LocalizedStrings<\n string,\n LocalizedString\n> = {\n en: normalizeMessages(draggableListMessages_en),\n de: normalizeMessages(draggableListMessages_de),\n es: normalizeMessages(draggableListMessages_es),\n \"fr-FR\": normalizeMessages(draggableListMessages_fr),\n \"pt-BR\": normalizeMessages(draggableListMessages_pt),\n} as LocalizedStrings<string, LocalizedString>;\n\n/**\n * Available message keys for DraggableList component\n */\nexport type DraggableListMessageKey = \"emptyMessage\" | \"removeButtonLabel\";\n","import { createSlotRecipeContext } from \"@chakra-ui/react/styled-system\";\nimport type {\n DraggableListRootSlotProps,\n DraggableListItemSlotProps,\n} from \"./draggable-list.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"nimbusDraggableList\",\n});\n\n// Root slot - provides recipe context + config to all child components\nexport const DraggableListRootSlot = withProvider<\n HTMLDivElement,\n DraggableListRootSlotProps\n>(\"div\", \"root\");\n\n// Item slot - draggable item displayed in the list\nexport const DraggableListItemSlot = withContext<\n HTMLDivElement,\n DraggableListItemSlotProps\n>(\"div\", \"item\");\n\n// Item content slot - content displayed in draggable item\nexport const DraggableListItemContentSlot = withContext<\n HTMLDivElement,\n DraggableListItemSlotProps\n>(\"div\", \"itemContent\");\n\n// Empty list slot - when there are no items in list\nexport const DraggableListEmptySlot = withContext<\n HTMLDivElement,\n DraggableListItemSlotProps\n>(\"div\", \"empty\");\n","import { GridListItem } from \"react-aria-components\";\nimport { Close, DragIndicator } from \"@commercetools/nimbus-icons\";\nimport { Checkbox, IconButton } from \"@/components\";\nimport { extractStyleProps } from \"@/utils\";\nimport { useLocalizedStringFormatter } from \"@/hooks\";\nimport { draggableListMessagesStrings } from \"../draggable-list.messages\";\nimport {\n DraggableListItemSlot,\n DraggableListItemContentSlot,\n} from \"../draggable-list.slots\";\nimport type {\n DraggableListItemData,\n DraggableListItemProps,\n} from \"../draggable-list.types\";\n\n/**\n * DraggableList.Item - An individual draggable item within the list\n *\n * Handles drag interactions and provides visual feedback during dragging.\n * Supports optional removal with remove button.\n *\n * @supportsStyleProps\n */\nexport const DraggableListItem = <T extends DraggableListItemData>({\n children,\n id,\n onRemoveItem,\n textValue: textValueFromProps,\n ...restProps\n}: DraggableListItemProps<T>) => {\n const msg = useLocalizedStringFormatter(draggableListMessagesStrings);\n const defaultTextValue = typeof children === \"string\" ? children : undefined;\n const [styleProps, functionalProps] = extractStyleProps(restProps);\n return (\n <DraggableListItemSlot {...styleProps} asChild>\n <GridListItem\n id={id}\n textValue={textValueFromProps ?? defaultTextValue}\n {...functionalProps}\n >\n {({ allowsDragging, selectionBehavior, selectionMode }) => (\n <>\n {allowsDragging && (\n <IconButton\n slot=\"drag\"\n size=\"2xs\"\n variant=\"ghost\"\n flex=\"0 0 auto\"\n colorPalette=\"neutral\"\n >\n <DragIndicator />\n </IconButton>\n )}\n {selectionMode === \"multiple\" && selectionBehavior === \"toggle\" && (\n <Checkbox flex=\"0 0 auto\" slot=\"selection\" />\n )}\n <DraggableListItemContentSlot>\n {children}\n </DraggableListItemContentSlot>\n {onRemoveItem && (\n <IconButton\n aria-label={msg.format(\"removeButtonLabel\")}\n size=\"2xs\"\n variant=\"ghost\"\n onPress={id ? () => onRemoveItem(id) : undefined}\n flex=\"0 0 auto\"\n colorPalette=\"neutral\"\n >\n <Close />\n </IconButton>\n )}\n </>\n )}\n </GridListItem>\n </DraggableListItemSlot>\n );\n};\n\nDraggableListItem.displayName = \"DraggableList.Item\";\n","import { useEffect, useCallback, useRef } from \"react\";\nimport { GridList, type Key } from \"react-aria-components\";\nimport { useListData } from \"react-stately\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { dequal } from \"dequal\";\nimport { extractStyleProps } from \"@/utils\";\nimport { useLocalizedStringFormatter } from \"@/hooks\";\nimport {\n useDragAndDrop,\n createListDataHandlers,\n} from \"@/hooks/use-drag-and-drop\";\nimport { draggableListMessagesStrings } from \"../draggable-list.messages\";\nimport {\n DraggableListRootSlot,\n DraggableListEmptySlot,\n} from \"../draggable-list.slots\";\nimport type {\n DraggableListItemData,\n DraggableListRootProps,\n} from \"../draggable-list.types\";\nimport { DraggableListItem } from \"./draggable-list.item\";\n\nconst DRAGGABLE_LIST_DATA_FORMAT = \"nimbus-draggable-list-item\";\n\nconst defaultGetKey = <T extends DraggableListItemData>(item: T): Key =>\n (item.key as Key) ?? item.id;\n\n/**\n * DraggableList.Root - The root component that provides drag-and-drop functionality\n *\n * Manages the state of draggable items and handles reordering logic using React Aria's\n * GridList and drag-and-drop hooks.\n *\n * @supportsStyleProps\n */\nexport const DraggableListRoot = <T extends DraggableListItemData>({\n children,\n ref,\n items = [],\n getKey = defaultGetKey,\n onUpdateItems,\n removableItems,\n renderEmptyState: renderEmptyStateFromProps,\n dragNamespace,\n onExternalDrop,\n acceptExternalTypes,\n externalDropOperation,\n serializeDragItem,\n ...restProps\n}: DraggableListRootProps<T>) => {\n const msg = useLocalizedStringFormatter(draggableListMessagesStrings);\n const renderEmptyState =\n renderEmptyStateFromProps ?? msg.format(\"emptyMessage\");\n\n const list = useListData({\n initialItems: items,\n getKey,\n });\n\n // Track if we're currently syncing from external changes\n const isSyncingFromPropsRef = useRef(false);\n // Track the last items we sent to parent to avoid syncing them back\n const lastNotifiedItemsRef = useRef<T[]>(items ?? []);\n\n // Sync external items prop changes with internal list state\n useEffect(() => {\n // Performance: Skip sync if shallow equality check passes (same array reference)\n if (items === lastNotifiedItemsRef.current) {\n return;\n }\n // Skip sync if these are the exact items we just sent to parent (deep equality)\n if (dequal(items, lastNotifiedItemsRef.current)) {\n return;\n }\n // If items from props and list.items are not deeply equal,\n // remove all current items from list.items and replace them with items from props\n if (!dequal(items, list.items)) {\n isSyncingFromPropsRef.current = true;\n\n // Performance Note: Full list replacement (remove all + append all) is O(n) for both\n // operations. For large lists with frequent updates, a diffing algorithm could optimize\n // this to only update changed items. However, for typical use cases, the simplicity and\n // correctness of full replacement outweighs the performance cost.\n const keysToRemove = list.items.map((item) => getKey(item));\n // Remove all current list items\n list.remove(...keysToRemove);\n // Add all items from props\n list.append(...items);\n\n // Preserve selected keys for items that still exist in the updated items\n if (list.selectedKeys !== \"all\" && list.selectedKeys.size > 0) {\n const newItemKeys = new Set(items.map((item) => getKey(item)));\n const updatedSelectedKeys = new Set(\n [...list.selectedKeys].filter((key) => newItemKeys.has(key))\n );\n list.setSelectedKeys(updatedSelectedKeys);\n }\n\n // Update lastNotifiedItemsRef to prevent notification effect from reverting parent state\n lastNotifiedItemsRef.current = items;\n\n // Timing Note: queueMicrotask schedules the callback after the current synchronous\n // execution completes but before the next event loop tick. This ensures the flag is\n // reset after React processes all state updates from this effect. A cleanup function\n // prevents the microtask from executing if the effect re-runs or component unmounts.\n let cancelled = false;\n queueMicrotask(() => {\n if (!cancelled) {\n isSyncingFromPropsRef.current = false;\n }\n });\n\n return () => {\n cancelled = true;\n };\n }\n // Dependency Explanation: Only `items` is included as a dependency.\n //\n // Excluded dependencies:\n // - list methods (list.remove, list.append, list.setSelectedKeys) and list.items:\n // Intentionally excluded to prevent infinite loops. Including these would cause this\n // effect to run on every internal list update, creating an infinite sync loop.\n //\n // - getKey: Intentionally excluded because it should be stable (either the default\n // function or a memoized callback). If getKey changes on every render due to not\n // being memoized, including it would cause unnecessary re-syncs. This effect should\n // primarily respond to changes in the `items` prop, not the key extraction function.\n // If getKey does need to change mid-lifecycle, it indicates a parent component bug.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [items]);\n\n // Notify parent of internal list changes (but not during external sync)\n useEffect(() => {\n if (!isSyncingFromPropsRef.current) {\n lastNotifiedItemsRef.current = list.items;\n onUpdateItems?.(list.items);\n }\n }, [list.items, onUpdateItems]);\n\n const { dragAndDropHooks } = useDragAndDrop<T>({\n dataFormatBase: DRAGGABLE_LIST_DATA_FORMAT,\n dragNamespace,\n onExternalDrop,\n acceptExternalTypes,\n externalDropOperation,\n serializeDragItem,\n ...createListDataHandlers(list),\n });\n\n const handleRemoveItem = useCallback(\n (key: Key) => {\n list.remove(key);\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [list.remove]\n );\n\n if (\n !children &&\n items?.length > 0 &&\n (!items?.[0]?.key || !items?.[0]?.label)\n ) {\n throw new Error(\n 'Nimbus DraggableList: when \"children\" is not provided, items must have both \"key\" and \"label\" properties'\n );\n }\n\n const recipe = useSlotRecipe({ key: \"nimbusDraggableList\" });\n // Extract recipe props\n const [recipeProps] = recipe.splitVariantProps(restProps);\n const [styleProps, functionalProps] = extractStyleProps(restProps);\n return (\n <DraggableListRootSlot {...styleProps} {...recipeProps} asChild>\n <GridList\n ref={ref}\n {...functionalProps}\n renderEmptyState={() => (\n <DraggableListEmptySlot>{renderEmptyState}</DraggableListEmptySlot>\n )}\n dragAndDropHooks={dragAndDropHooks}\n items={list.items}\n dependencies={[handleRemoveItem]}\n >\n {(item) => {\n return children ? (\n typeof children === \"function\" ? (\n children({\n ...item,\n onRemoveItem: removableItems ? handleRemoveItem : undefined,\n })\n ) : (\n children\n )\n ) : (\n <DraggableListItem\n {...item}\n key={item.key}\n onRemoveItem={removableItems ? handleRemoveItem : undefined}\n >\n {item.label}\n </DraggableListItem>\n );\n }}\n </GridList>\n </DraggableListRootSlot>\n );\n};\n\nDraggableListRoot.displayName = \"DraggableList.Root\";\n","import { FormField } from \"@/components/form-field/form-field\";\nimport type {\n DraggableListFieldProps,\n DraggableListFieldItemData,\n} from \"../draggable-list.types\";\nimport { DraggableListRoot } from \"./draggable-list.root\";\n\n/**\n * DraggableList.Field - A form field wrapper for DraggableList\n *\n * Combines draggable list functionality with form field labeling,\n * description, and error handling for form integration.\n *\n * @supportsStyleProps\n */\nexport const DraggableListField = <T extends DraggableListFieldItemData>({\n label,\n description,\n error,\n infoBox,\n isRequired,\n isInvalid,\n isDisabled,\n isReadOnly,\n id,\n items,\n ...restProps\n}: DraggableListFieldProps<T>) => {\n return (\n <FormField.Root\n id={id}\n isRequired={isRequired}\n isInvalid={isInvalid}\n isDisabled={isDisabled}\n isReadOnly={isReadOnly}\n >\n <FormField.Label>{label}</FormField.Label>\n <FormField.Input>\n <DraggableListRoot\n disabledKeys={isDisabled ? items?.map((item) => item.key) : undefined}\n items={items}\n {...restProps}\n />\n </FormField.Input>\n {description && (\n <FormField.Description>{description}</FormField.Description>\n )}\n {error && <FormField.Error>{error}</FormField.Error>}\n {infoBox && <FormField.InfoBox>{infoBox}</FormField.InfoBox>}\n </FormField.Root>\n );\n};\n\nDraggableListField.displayName = \"DraggableList.Field\";\n","import {\n DraggableListRoot,\n DraggableListItem,\n DraggableListField,\n} from \"./components\";\n\n/**\n * DraggableList\n * ============================================================\n * A drag-and-drop list component for reordering items.\n * Built with React Aria Components for accessibility and keyboard navigation.\n *\n * Features:\n * - Drag-and-drop reordering with visual feedback\n * - Keyboard navigation support\n * - Controlled and uncontrolled modes\n * - Accessible drag-and-drop interactions\n * - Customizable item rendering\n *\n * **Important:** You must provide either an `aria-label` or `aria-labelledby`\n * prop for accessibility. The drag-and-drop functionality will not work properly\n * without an accessible label.\n *\n * @example\n * ```tsx\n * <DraggableList.Root items={items} aria-label=\"Task list\">\n * {(item) => (\n * <DraggableList.Item key={item.id} id={item.id}>\n * {item.content}\n * </DraggableList.Item>\n * )}\n * </DraggableList.Root>\n * ```\n *\n * @see https://react-spectrum.adobe.com/react-aria/dnd.html\n */\nexport const DraggableList = {\n /**\n * # DraggableList.Root\n *\n * The root component that provides context and drag-and-drop functionality.\n * Manages the state of draggable items and handles reordering logic.\n *\n * This component must wrap all DraggableList.Item components and provides\n * the drag-and-drop context and reordering callbacks.\n *\n * Note: If your items have `key` and `label` properties, you can omit the children\n * prop and the component will render the items automatically.\n *\n * @example\n * ```tsx\n * // With custom children\n * <DraggableList.Root items={items} aria-label=\"Tasks list\">\n * {(item) => (\n * <DraggableList.Item key={item.id} id={item.id}>\n * {item.content}\n * </DraggableList.Item>\n * )}\n * </DraggableList.Root>\n *\n * // Without children (items must have key and label)\n * <DraggableList.Root items={itemsWithKeyAndLabel} aria-label=\"Priority list\" />\n * ```\n */\n Root: DraggableListRoot,\n /**\n * # DraggableList.Item\n *\n * An individual draggable item within the list.\n * Handles drag interactions and provides visual feedback during dragging.\n *\n * This component represents a single item in the draggable list and supports\n * drag handles, drag previews, and reordering interactions.\n *\n * @example\n * ```tsx\n * <DraggableList.Root items={items} aria-label=\"Task list\">\n * {(item) => (\n * <DraggableList.Item key={item.id} id={item.id}>\n * <div>{item.title}</div>\n * <div>{item.description}</div>\n * </DraggableList.Item>\n * )}\n * </DraggableList.Root>\n * ```\n */\n Item: DraggableListItem,\n /**\n * # DraggableList.Field\n *\n * A standalone form field component for DraggableList that integrates with form libraries.\n * Provides label, error handling, and hint text support for draggable lists.\n *\n * This component is configured entirely through props and does not accept children.\n * All draggable list configuration is passed via the `items` prop and related properties.\n *\n * @example\n * ```tsx\n * <DraggableList.Field\n * label=\"Priority Order\"\n * description=\"Drag items to reorder\"\n * error={errors.priorities}\n * items={items}\n * aria-label=\"Priority list\"\n * />\n * ```\n */\n Field: DraggableListField,\n};\n\n// Internal exports for react-docgen\nexport {\n DraggableListRoot as _DraggableListRoot,\n DraggableListItem as _DraggableListItem,\n DraggableListField as _DraggableListField,\n};\n"],"x_google_ignoreList":[0,4],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmEA,IAAM,KAA8DA,gBAAsB,IAAI,GACxF,KAA8DC,gBAAmB,SAAkB,GAAO,GAAK;CAGjH,OADA,CAAC,GAAO,KAAW,EAA2C,GAAO,GAAK,EAAyC,GAC1FC,gBAAc,cAAkBC,GAA2B,EAChF,SAA2BD,gBAAc,cAAkBE,GAAoB,CAAK,EACxF,IAAI,MAA+BF,gBAAc,cAAc,IAAqC;EACrF;EACK;EACZ,aAAa;CACjB,CAAC,CAAC;AACV,CAAC;AACD,SAAS,GAAoC,EAAS,UAAmB,eAAY,aAAa,KAAO;CACrG,CAAC,GAAO,KAAW,EAA2C,GAAO,GAAS,EAA0C;CACxH,IAAI,EACJ,0BAA+B,WAA2B,sBAA0C,0BAAuB,GAAG,MAAuB,GACjJ,EAAoB,qBAA8C,gCAA6B,SAAiB,YAAS,SAAsB,iBAAc,eAAe,GAC5K,EAAkB,mBAA+B,kBAA+B,mBAAgB,oBAAoB,OAA8BG,EAAuB,CAA0C,GAOnN,IAAoBC,GANAC,GAAqB;EACzC,GAAG;EACS;EACZ,UAAU,KAAA;EACM;CACpB,CAC0E,GAAG,CAAM,GAC/E,IAAeC,GAAoB;EACnC,OAAO;EACP,aAAa;CACjB,CAAC,GACG,EAAoB,qBAAgC,qBAAiB,EAAc,kBACnF,EAAa,iBAAkBC,EAAkB,GACjD,KAAuBC,SAAoB,IAAQC,EAA6B;EAC5E,YAAY,EAAc;EAChB;EACL;EACS;EACI;EACF;EACR;EACK;EACF;CACf,CAAC,GAAG;EACJ,EAAc;EACd;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACJ,CAAC,GACG,EAAa,kBAAkBC,GAAoB;EACnD,GAAG;EACe;EAElB,4BAA4B,MAAW,SAAS,QAAQ;EACzC;EACf,uBAAuB,EAAM;E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AqBN,OAAO;AACT"}
|
|
1
|
+
{"version":3,"file":"draggable-list-DKGfS4ob.esm.js","names":["$6XsrP$createContext","$6XsrP$forwardRef","$6XsrP$react","$6XsrP$CollectionBuilder","$6XsrP$Collection","$6XsrP$useContext","$6XsrP$UNSTABLE_useFilteredListState","$6XsrP$useListState","$6XsrP$useCollator","$6XsrP$useLocale","$6XsrP$useMemo","$6XsrP$ListKeyboardDelegate","$6XsrP$useGridList","$6XsrP$useRef","$6XsrP$useEffect","$6XsrP$useFocusRing","$6XsrP$filterDOMProps","$6XsrP$FocusScope","$6XsrP$mergeProps","$6XsrP$createLeafComponent","$6XsrP$ItemNode","$6XsrP$useObjectRef","$6XsrP$useGridListItem","$6XsrP$useHover","$6XsrP$useGridListSelectionCheckbox","$6XsrP$useVisuallyHidden","$6XsrP$LoaderNode","$6XsrP$useLoadMoreSentinel","$6XsrP$inertValue"],"sources":["../../../../node_modules/.pnpm/react-aria-components@1.19.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/dist/private/GridList.mjs","../../src/hooks/use-drag-and-drop/process-drop-items.ts","../../src/hooks/use-drag-and-drop/use-drag-and-drop.ts","../../src/hooks/use-drag-and-drop/state-handlers.ts","../../../../node_modules/.pnpm/dequal@2.0.3/node_modules/dequal/dist/index.mjs","../../src/components/draggable-list/intl/en.ts","../../src/components/draggable-list/intl/de.ts","../../src/components/draggable-list/intl/es.ts","../../src/components/draggable-list/intl/fr-FR.ts","../../src/components/draggable-list/intl/pt-BR.ts","../../src/components/draggable-list/draggable-list.messages.ts","../../src/components/draggable-list/draggable-list.slots.tsx","../../src/components/draggable-list/components/draggable-list.item.tsx","../../src/components/draggable-list/components/draggable-list.root.tsx","../../src/components/draggable-list/components/draggable-list.field.tsx","../../src/components/draggable-list/draggable-list.tsx"],"sourcesContent":["import {ButtonContext as $7705c033048f6da7$export$24d547caef80ccd1} from \"./Button.mjs\";\nimport {CheckboxContext as $ed8ccb2e23e76301$export$b085522c77523c51, CheckboxFieldContext as $ed8ccb2e23e76301$export$c32003b803b6c22e} from \"./Checkbox.mjs\";\nimport {DEFAULT_SLOT as $7230ffa83bc0c2cf$export$c62b8e45d58ddad9, dom as $7230ffa83bc0c2cf$export$df3a06d6289f983e, Provider as $7230ffa83bc0c2cf$export$2881499e37b75b9a, useContextProps as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, useRenderProps as $7230ffa83bc0c2cf$export$4d86445c2cf5e3} from \"./utils.mjs\";\nimport {CollectionRendererContext as $263ab7fc0f95ccdb$export$4feb769f8ddf26c5, DefaultCollectionRenderer as $263ab7fc0f95ccdb$export$a164736487e3f0ae} from \"./Collection.mjs\";\nimport {DragAndDropContext as $f9554a667e4f0374$export$d188a835a7bc5783, DropIndicatorContext as $f9554a667e4f0374$export$f55761759794cf55, useDndPersistedKeys as $f9554a667e4f0374$export$d1e8e3fbb7461f6, useRenderDropIndicator as $f9554a667e4f0374$export$971707d8a129a1f7} from \"./DragAndDrop.mjs\";\nimport {FieldInputContext as $4b38b5b75ecc6208$export$698f465ec27e93df, SelectableCollectionContext as $4b38b5b75ecc6208$export$b0d3ecf7112093a7} from \"./Autocomplete.mjs\";\nimport {ListStateContext as $928221da08ecbc62$export$7c5906fe4f1f2af2} from \"./ListBox.mjs\";\nimport {SelectionIndicatorContext as $91fe5e721c7f36c1$export$c9549807523555e0} from \"./SelectionIndicator.mjs\";\nimport {SharedElementTransition as $792f28e438b9ad5f$export$758399f318e6385a} from \"./SharedElementTransition.mjs\";\nimport {TextContext as $efe09c6d1c304b50$export$9afb8bc826b033ea} from \"./Text.mjs\";\nimport {useGridList as $6XsrP$useGridList, useGridListItem as $6XsrP$useGridListItem, useGridListSelectionCheckbox as $6XsrP$useGridListSelectionCheckbox, useGridListSection as $6XsrP$useGridListSection} from \"react-aria/useGridList\";\nimport {Collection as $6XsrP$Collection} from \"react-aria/Collection\";\nimport {CollectionBuilder as $6XsrP$CollectionBuilder, createLeafComponent as $6XsrP$createLeafComponent, createBranchComponent as $6XsrP$createBranchComponent} from \"react-aria/CollectionBuilder\";\nimport {filterDOMProps as $6XsrP$filterDOMProps} from \"react-aria/filterDOMProps\";\nimport {FocusScope as $6XsrP$FocusScope} from \"react-aria/FocusScope\";\nimport {ItemNode as $6XsrP$ItemNode, LoaderNode as $6XsrP$LoaderNode, SectionNode as $6XsrP$SectionNode, HeaderNode as $6XsrP$HeaderNode} from \"react-aria/private/collections/BaseCollection\";\nimport {inertValue as $6XsrP$inertValue} from \"react-aria/private/utils/inertValue\";\nimport {ListKeyboardDelegate as $6XsrP$ListKeyboardDelegate} from \"react-aria/ListKeyboardDelegate\";\nimport {useListState as $6XsrP$useListState, UNSTABLE_useFilteredListState as $6XsrP$UNSTABLE_useFilteredListState} from \"react-stately/useListState\";\nimport {useLoadMoreSentinel as $6XsrP$useLoadMoreSentinel} from \"react-aria/private/utils/useLoadMoreSentinel\";\nimport {mergeProps as $6XsrP$mergeProps} from \"react-aria/mergeProps\";\nimport $6XsrP$react, {createContext as $6XsrP$createContext, forwardRef as $6XsrP$forwardRef, useContext as $6XsrP$useContext, useMemo as $6XsrP$useMemo, useRef as $6XsrP$useRef, useEffect as $6XsrP$useEffect} from \"react\";\nimport {useCollator as $6XsrP$useCollator} from \"react-aria/useCollator\";\nimport {useFocusRing as $6XsrP$useFocusRing} from \"react-aria/useFocusRing\";\nimport {useHover as $6XsrP$useHover} from \"react-aria/useHover\";\nimport {useLocale as $6XsrP$useLocale} from \"react-aria/I18nProvider\";\nimport {useObjectRef as $6XsrP$useObjectRef} from \"react-aria/useObjectRef\";\nimport {useVisuallyHidden as $6XsrP$useVisuallyHidden} from \"react-aria/VisuallyHidden\";\n\n/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nconst $1f7649abe3ae3599$export$54fe942636b6416d = /*#__PURE__*/ (0, $6XsrP$createContext)(null);\nconst $1f7649abe3ae3599$export$a7bfbda1311ca015 = /*#__PURE__*/ (0, $6XsrP$forwardRef)(function GridList(props, ref) {\n // Render the portal first so that we have the collection by the time we render the DOM in SSR.\n [props, ref] = (0, $7230ffa83bc0c2cf$export$29f1550f4b0d4415)(props, ref, $1f7649abe3ae3599$export$54fe942636b6416d);\n return /*#__PURE__*/ (0, $6XsrP$react).createElement((0, $6XsrP$CollectionBuilder), {\n content: /*#__PURE__*/ (0, $6XsrP$react).createElement((0, $6XsrP$Collection), props)\n }, (collection)=>/*#__PURE__*/ (0, $6XsrP$react).createElement($1f7649abe3ae3599$var$GridListInner, {\n props: props,\n collection: collection,\n gridListRef: ref\n }));\n});\nfunction $1f7649abe3ae3599$var$GridListInner({ props: props, collection: collection, gridListRef: ref }) {\n [props, ref] = (0, $7230ffa83bc0c2cf$export$29f1550f4b0d4415)(props, ref, (0, $4b38b5b75ecc6208$export$b0d3ecf7112093a7));\n let { shouldUseVirtualFocus: // eslint-disable-next-line @typescript-eslint/no-unused-vars\n shouldUseVirtualFocus, filter: filter, disallowTypeAhead: disallowTypeAhead, UNSTABLE_focusOnEntry: UNSTABLE_focusOnEntry, ...DOMCollectionProps } = props;\n let { dragAndDropHooks: dragAndDropHooks, keyboardNavigationBehavior: keyboardNavigationBehavior = 'arrow', layout: layout = 'stack', orientation: orientation = 'vertical' } = props;\n let { CollectionRoot: CollectionRoot, isVirtualized: isVirtualized, layoutDelegate: layoutDelegate, dropTargetDelegate: ctxDropTargetDelegate } = (0, $6XsrP$useContext)((0, $263ab7fc0f95ccdb$export$4feb769f8ddf26c5));\n let gridlistState = (0, $6XsrP$useListState)({\n ...DOMCollectionProps,\n collection: collection,\n children: undefined,\n layoutDelegate: layoutDelegate\n });\n let filteredState = (0, $6XsrP$UNSTABLE_useFilteredListState)(gridlistState, filter);\n let collator = (0, $6XsrP$useCollator)({\n usage: 'search',\n sensitivity: 'base'\n });\n let { disabledBehavior: disabledBehavior, disabledKeys: disabledKeys } = filteredState.selectionManager;\n let { direction: direction } = (0, $6XsrP$useLocale)();\n let keyboardDelegate = (0, $6XsrP$useMemo)(()=>new (0, $6XsrP$ListKeyboardDelegate)({\n collection: filteredState.collection,\n collator: collator,\n ref: ref,\n disabledKeys: disabledKeys,\n disabledBehavior: disabledBehavior,\n layoutDelegate: layoutDelegate,\n layout: layout,\n orientation: orientation,\n direction: direction\n }), [\n filteredState.collection,\n ref,\n layout,\n orientation,\n disabledKeys,\n disabledBehavior,\n layoutDelegate,\n collator,\n direction\n ]);\n let { gridProps: gridProps } = (0, $6XsrP$useGridList)({\n ...DOMCollectionProps,\n keyboardDelegate: keyboardDelegate,\n // Only tab navigation is supported in grid layout.\n keyboardNavigationBehavior: layout === 'grid' ? 'tab' : keyboardNavigationBehavior,\n isVirtualized: isVirtualized,\n shouldSelectOnPressUp: props.shouldSelectOnPressUp,\n disallowTypeAhead: disallowTypeAhead,\n UNSTABLE_focusOnEntry: UNSTABLE_focusOnEntry\n }, filteredState, ref);\n let selectionManager = filteredState.selectionManager;\n let isListDraggable = !!dragAndDropHooks?.useDraggableCollectionState;\n let isListDroppable = !!dragAndDropHooks?.useDroppableCollectionState;\n let dragHooksProvided = (0, $6XsrP$useRef)(isListDraggable);\n let dropHooksProvided = (0, $6XsrP$useRef)(isListDroppable);\n (0, $6XsrP$useEffect)(()=>{\n if (process.env.NODE_ENV === 'production') return;\n if (dragHooksProvided.current !== isListDraggable) console.warn('Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.');\n if (dropHooksProvided.current !== isListDroppable) console.warn('Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.');\n }, [\n isListDraggable,\n isListDroppable\n ]);\n let dragState = undefined;\n let dropState = undefined;\n let droppableCollection = undefined;\n let isRootDropTarget = false;\n let dragPreview = null;\n let preview = (0, $6XsrP$useRef)(null);\n if (isListDraggable && dragAndDropHooks) {\n dragState = dragAndDropHooks.useDraggableCollectionState({\n collection: filteredState.collection,\n selectionManager: selectionManager,\n preview: dragAndDropHooks.renderDragPreview ? preview : undefined\n });\n dragAndDropHooks.useDraggableCollection({}, dragState, ref);\n let DragPreview = dragAndDropHooks.DragPreview;\n dragPreview = dragAndDropHooks.renderDragPreview ? /*#__PURE__*/ (0, $6XsrP$react).createElement(DragPreview, {\n ref: preview\n }, dragAndDropHooks.renderDragPreview) : null;\n }\n if (isListDroppable && dragAndDropHooks) {\n dropState = dragAndDropHooks.useDroppableCollectionState({\n collection: filteredState.collection,\n selectionManager: selectionManager\n });\n let dropTargetDelegate = dragAndDropHooks.dropTargetDelegate || ctxDropTargetDelegate || new dragAndDropHooks.ListDropTargetDelegate(collection, ref, {\n layout: layout,\n direction: direction,\n orientation: orientation\n });\n droppableCollection = dragAndDropHooks.useDroppableCollection({\n keyboardDelegate: keyboardDelegate,\n dropTargetDelegate: dropTargetDelegate\n }, dropState, ref);\n isRootDropTarget = dropState.isDropTarget({\n type: 'root'\n });\n }\n let { focusProps: focusProps, isFocused: isFocused, isFocusVisible: isFocusVisible } = (0, $6XsrP$useFocusRing)();\n let isEmpty = filteredState.collection.size === 0;\n let renderValues = {\n isDropTarget: isRootDropTarget,\n orientation: orientation,\n isEmpty: isEmpty,\n isFocused: isFocused,\n isFocusVisible: isFocusVisible,\n layout: layout,\n state: filteredState\n };\n let renderProps = (0, $7230ffa83bc0c2cf$export$4d86445c2cf5e3)({\n ...props,\n children: undefined,\n defaultClassName: 'react-aria-GridList',\n values: renderValues\n });\n let emptyState = null;\n let emptyStatePropOverrides = null;\n if (isEmpty && props.renderEmptyState) {\n let content = props.renderEmptyState(renderValues);\n emptyState = /*#__PURE__*/ (0, $6XsrP$react).createElement(\"div\", {\n role: \"row\",\n \"aria-rowindex\": 1,\n style: {\n display: 'contents'\n }\n }, /*#__PURE__*/ (0, $6XsrP$react).createElement(\"div\", {\n role: \"gridcell\",\n style: {\n display: 'contents'\n }\n }, content));\n }\n let DOMProps = (0, $6XsrP$filterDOMProps)(props, {\n global: true\n });\n return /*#__PURE__*/ (0, $6XsrP$react).createElement((0, $6XsrP$FocusScope), null, /*#__PURE__*/ (0, $6XsrP$react).createElement((0, $7230ffa83bc0c2cf$export$df3a06d6289f983e).div, {\n ...(0, $6XsrP$mergeProps)(DOMProps, renderProps, gridProps, focusProps, droppableCollection?.collectionProps, emptyStatePropOverrides),\n ref: ref,\n slot: props.slot || undefined,\n onScroll: props.onScroll,\n \"data-drop-target\": isRootDropTarget || undefined,\n \"data-empty\": isEmpty || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-layout\": layout,\n \"data-orientation\": orientation\n }, /*#__PURE__*/ (0, $6XsrP$react).createElement((0, $7230ffa83bc0c2cf$export$2881499e37b75b9a), {\n values: [\n [\n (0, $928221da08ecbc62$export$7c5906fe4f1f2af2),\n filteredState\n ],\n [\n (0, $f9554a667e4f0374$export$d188a835a7bc5783),\n {\n dragAndDropHooks: dragAndDropHooks,\n dragState: dragState,\n dropState: dropState\n }\n ],\n [\n (0, $f9554a667e4f0374$export$f55761759794cf55),\n {\n render: $1f7649abe3ae3599$var$GridListDropIndicatorWrapper\n }\n ]\n ]\n }, isListDroppable && /*#__PURE__*/ (0, $6XsrP$react).createElement($1f7649abe3ae3599$var$RootDropIndicator, null), /*#__PURE__*/ (0, $6XsrP$react).createElement((0, $792f28e438b9ad5f$export$758399f318e6385a), null, /*#__PURE__*/ (0, $6XsrP$react).createElement(CollectionRoot, {\n collection: filteredState.collection,\n scrollRef: ref,\n persistedKeys: (0, $f9554a667e4f0374$export$d1e8e3fbb7461f6)(selectionManager, dragAndDropHooks, dropState),\n renderDropIndicator: (0, $f9554a667e4f0374$export$971707d8a129a1f7)(dragAndDropHooks, dropState)\n }))), emptyState, dragPreview));\n}\nconst $1f7649abe3ae3599$export$e96fc9a8407faa6b = /*#__PURE__*/ (0, $6XsrP$createLeafComponent)((0, $6XsrP$ItemNode), function GridListItem(props, forwardedRef, item) {\n let state = (0, $6XsrP$useContext)((0, $928221da08ecbc62$export$7c5906fe4f1f2af2));\n let { dragAndDropHooks: dragAndDropHooks, dragState: dragState, dropState: dropState } = (0, $6XsrP$useContext)((0, $f9554a667e4f0374$export$d188a835a7bc5783));\n let ref = (0, $6XsrP$useObjectRef)(forwardedRef);\n let { isVirtualized: isVirtualized } = (0, $6XsrP$useContext)((0, $263ab7fc0f95ccdb$export$4feb769f8ddf26c5));\n let isDraggable = dragState && !(dragState.isDisabled || dragState.selectionManager.isDisabled(item.key));\n let { rowProps: rowProps, gridCellProps: gridCellProps, descriptionProps: descriptionProps, ...states } = (0, $6XsrP$useGridListItem)({\n node: item,\n shouldSelectOnPressUp: !!dragState,\n isVirtualized: isVirtualized\n }, state, ref);\n let { hoverProps: hoverProps, isHovered: isHovered } = (0, $6XsrP$useHover)({\n // because of https://bugs.webkit.org/show_bug.cgi?id=214609, supporting hover styles when a item is ONLY isDraggable\n // results in hover styles sticking around after a reorder/drop operation...\n isDisabled: !states.allowsSelection && !states.hasAction && !isDraggable,\n onHoverStart: item.props.onHoverStart,\n onHoverChange: item.props.onHoverChange,\n onHoverEnd: item.props.onHoverEnd\n });\n let { isFocusVisible: isFocusVisible, focusProps: focusProps } = (0, $6XsrP$useFocusRing)();\n let { isFocusVisible: isFocusVisibleWithin, focusProps: focusWithinProps } = (0, $6XsrP$useFocusRing)({\n within: true\n });\n let { checkboxProps: checkboxProps } = (0, $6XsrP$useGridListSelectionCheckbox)({\n key: item.key\n }, state);\n let buttonProps = state.selectionManager.disabledBehavior === 'all' && states.isDisabled ? {\n isDisabled: true\n } : {};\n let draggableItem = null;\n if (dragState && dragAndDropHooks) draggableItem = dragAndDropHooks.useDraggableItem({\n key: item.key,\n hasDragButton: true\n }, dragState);\n let dropIndicator = null;\n let dropIndicatorRef = (0, $6XsrP$useRef)(null);\n let { visuallyHiddenProps: visuallyHiddenProps } = (0, $6XsrP$useVisuallyHidden)();\n if (dropState && dragAndDropHooks) dropIndicator = dragAndDropHooks.useDropIndicator({\n target: {\n type: 'item',\n key: item.key,\n dropPosition: 'on'\n }\n }, dropState, dropIndicatorRef);\n let isDragging = dragState && dragState.isDragging(item.key);\n let renderProps = (0, $7230ffa83bc0c2cf$export$4d86445c2cf5e3)({\n ...props,\n id: undefined,\n children: item.rendered,\n defaultClassName: 'react-aria-GridListItem',\n values: {\n ...states,\n isHovered: isHovered,\n isFocusVisible: isFocusVisible,\n isFocusVisibleWithin: isFocusVisibleWithin,\n selectionMode: state.selectionManager.selectionMode,\n selectionBehavior: state.selectionManager.selectionBehavior,\n allowsDragging: !!dragState,\n isDragging: isDragging,\n isDropTarget: dropIndicator?.isDropTarget,\n id: item.key,\n state: state\n }\n });\n let dragButtonRef = (0, $6XsrP$useRef)(null);\n (0, $6XsrP$useEffect)(()=>{\n if (dragState && !dragButtonRef.current) console.warn('Draggable items in a GridList must contain a <Button slot=\"drag\"> element so that keyboard and screen reader users can drag them.');\n // eslint-disable-next-line\n }, []);\n (0, $6XsrP$useEffect)(()=>{\n if (!item.textValue && process.env.NODE_ENV !== 'production') console.warn('A `textValue` prop is required for <GridListItem> elements with non-plain text children in order to support accessibility features such as type to select.');\n }, [\n item.textValue\n ]);\n let DOMProps = (0, $6XsrP$filterDOMProps)(props, {\n global: true\n });\n delete DOMProps.id;\n delete DOMProps.onClick;\n return /*#__PURE__*/ (0, $6XsrP$react).createElement((0, $6XsrP$react).Fragment, null, dropIndicator && !dropIndicator.isHidden && /*#__PURE__*/ (0, $6XsrP$react).createElement(\"div\", {\n role: \"row\",\n style: {\n position: 'absolute'\n }\n }, /*#__PURE__*/ (0, $6XsrP$react).createElement(\"div\", {\n role: \"gridcell\"\n }, /*#__PURE__*/ (0, $6XsrP$react).createElement(\"div\", {\n role: \"button\",\n ...visuallyHiddenProps,\n ...dropIndicator?.dropIndicatorProps,\n ref: dropIndicatorRef\n }))), /*#__PURE__*/ (0, $6XsrP$react).createElement((0, $7230ffa83bc0c2cf$export$df3a06d6289f983e).div, {\n ...(0, $6XsrP$mergeProps)(DOMProps, renderProps, rowProps, focusProps, focusWithinProps, hoverProps, draggableItem?.dragProps),\n ref: ref,\n \"data-selected\": states.isSelected || undefined,\n \"data-disabled\": states.isDisabled || undefined,\n \"data-hovered\": isHovered || undefined,\n \"data-focused\": states.isFocused || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-focus-visible-within\": isFocusVisibleWithin || undefined,\n \"data-pressed\": states.isPressed || undefined,\n \"data-allows-dragging\": !!dragState || undefined,\n \"data-dragging\": isDragging || undefined,\n \"data-drop-target\": dropIndicator?.isDropTarget || undefined,\n \"data-selection-mode\": state.selectionManager.selectionMode === 'none' ? undefined : state.selectionManager.selectionMode\n }, /*#__PURE__*/ (0, $6XsrP$react).createElement(\"div\", {\n ...gridCellProps,\n style: {\n display: 'contents'\n }\n }, /*#__PURE__*/ (0, $6XsrP$react).createElement((0, $7230ffa83bc0c2cf$export$2881499e37b75b9a), {\n values: [\n [\n (0, $ed8ccb2e23e76301$export$b085522c77523c51),\n {\n slots: {\n [(0, $7230ffa83bc0c2cf$export$c62b8e45d58ddad9)]: {},\n selection: checkboxProps\n }\n }\n ],\n [\n (0, $ed8ccb2e23e76301$export$c32003b803b6c22e),\n {\n slots: {\n [(0, $7230ffa83bc0c2cf$export$c62b8e45d58ddad9)]: {},\n selection: checkboxProps\n }\n }\n ],\n [\n (0, $7705c033048f6da7$export$24d547caef80ccd1),\n {\n slots: {\n [(0, $7230ffa83bc0c2cf$export$c62b8e45d58ddad9)]: buttonProps,\n drag: {\n ...draggableItem?.dragButtonProps,\n ref: dragButtonRef,\n style: {\n pointerEvents: 'none'\n }\n }\n }\n }\n ],\n [\n (0, $efe09c6d1c304b50$export$9afb8bc826b033ea),\n {\n slots: {\n [(0, $7230ffa83bc0c2cf$export$c62b8e45d58ddad9)]: {},\n description: descriptionProps\n }\n }\n ],\n [\n (0, $263ab7fc0f95ccdb$export$4feb769f8ddf26c5),\n (0, $263ab7fc0f95ccdb$export$a164736487e3f0ae)\n ],\n [\n (0, $928221da08ecbc62$export$7c5906fe4f1f2af2),\n null\n ],\n [\n (0, $4b38b5b75ecc6208$export$b0d3ecf7112093a7),\n null\n ],\n [\n (0, $4b38b5b75ecc6208$export$698f465ec27e93df),\n null\n ],\n [\n (0, $91fe5e721c7f36c1$export$c9549807523555e0),\n {\n isSelected: states.isSelected\n }\n ]\n ]\n }, renderProps.children))));\n});\nfunction $1f7649abe3ae3599$var$GridListDropIndicatorWrapper(props, ref) {\n ref = (0, $6XsrP$useObjectRef)(ref);\n let { dragAndDropHooks: dragAndDropHooks, dropState: dropState } = (0, $6XsrP$useContext)((0, $f9554a667e4f0374$export$d188a835a7bc5783));\n let buttonRef = (0, $6XsrP$useRef)(null);\n let { dropIndicatorProps: dropIndicatorProps, isHidden: isHidden, isDropTarget: isDropTarget } = dragAndDropHooks.useDropIndicator(props, dropState, buttonRef);\n if (isHidden) return null;\n return /*#__PURE__*/ (0, $6XsrP$react).createElement($1f7649abe3ae3599$var$GridListDropIndicatorForwardRef, {\n ...props,\n dropIndicatorProps: dropIndicatorProps,\n isDropTarget: isDropTarget,\n buttonRef: buttonRef,\n ref: ref\n });\n}\nfunction $1f7649abe3ae3599$var$GridListDropIndicator(props, ref) {\n let { dropIndicatorProps: dropIndicatorProps, isDropTarget: isDropTarget, buttonRef: buttonRef, ...otherProps } = props;\n let { visuallyHiddenProps: visuallyHiddenProps } = (0, $6XsrP$useVisuallyHidden)();\n let renderProps = (0, $7230ffa83bc0c2cf$export$4d86445c2cf5e3)({\n ...otherProps,\n defaultClassName: 'react-aria-DropIndicator',\n values: {\n isDropTarget: isDropTarget\n }\n });\n return /*#__PURE__*/ (0, $6XsrP$react).createElement((0, $7230ffa83bc0c2cf$export$df3a06d6289f983e).div, {\n ...renderProps,\n role: \"row\",\n ref: ref,\n \"data-drop-target\": isDropTarget || undefined\n }, /*#__PURE__*/ (0, $6XsrP$react).createElement(\"div\", {\n role: \"gridcell\"\n }, /*#__PURE__*/ (0, $6XsrP$react).createElement(\"div\", {\n ...visuallyHiddenProps,\n role: \"button\",\n ...dropIndicatorProps,\n ref: buttonRef\n }), renderProps.children));\n}\nconst $1f7649abe3ae3599$var$GridListDropIndicatorForwardRef = /*#__PURE__*/ (0, $6XsrP$forwardRef)($1f7649abe3ae3599$var$GridListDropIndicator);\nfunction $1f7649abe3ae3599$var$RootDropIndicator() {\n let { dragAndDropHooks: dragAndDropHooks, dropState: dropState } = (0, $6XsrP$useContext)((0, $f9554a667e4f0374$export$d188a835a7bc5783));\n let ref = (0, $6XsrP$useRef)(null);\n let { dropIndicatorProps: dropIndicatorProps } = dragAndDropHooks.useDropIndicator({\n target: {\n type: 'root'\n }\n }, dropState, ref);\n let isDropTarget = dropState.isDropTarget({\n type: 'root'\n });\n let { visuallyHiddenProps: visuallyHiddenProps } = (0, $6XsrP$useVisuallyHidden)();\n if (!isDropTarget && dropIndicatorProps['aria-hidden']) return null;\n return /*#__PURE__*/ (0, $6XsrP$react).createElement(\"div\", {\n role: \"row\",\n \"aria-hidden\": dropIndicatorProps['aria-hidden'],\n style: {\n position: 'absolute'\n }\n }, /*#__PURE__*/ (0, $6XsrP$react).createElement(\"div\", {\n role: \"gridcell\"\n }, /*#__PURE__*/ (0, $6XsrP$react).createElement(\"div\", {\n role: \"button\",\n ...visuallyHiddenProps,\n ...dropIndicatorProps,\n ref: ref\n })));\n}\nconst $1f7649abe3ae3599$export$392b9a0bbc7c7e43 = (0, $6XsrP$createLeafComponent)((0, $6XsrP$LoaderNode), function GridListLoadingIndicator(props, ref, item) {\n let state = (0, $6XsrP$useContext)((0, $928221da08ecbc62$export$7c5906fe4f1f2af2));\n let { isVirtualized: isVirtualized } = (0, $6XsrP$useContext)((0, $263ab7fc0f95ccdb$export$4feb769f8ddf26c5));\n let { isLoading: isLoading, onLoadMore: onLoadMore, scrollOffset: scrollOffset, ...otherProps } = props;\n let sentinelRef = (0, $6XsrP$useRef)(null);\n let memoedLoadMoreProps = (0, $6XsrP$useMemo)(()=>({\n onLoadMore: onLoadMore,\n collection: state?.collection,\n sentinelRef: sentinelRef,\n scrollOffset: scrollOffset\n }), [\n onLoadMore,\n scrollOffset,\n state?.collection\n ]);\n (0, $6XsrP$useLoadMoreSentinel)(memoedLoadMoreProps, sentinelRef);\n let renderProps = (0, $7230ffa83bc0c2cf$export$4d86445c2cf5e3)({\n ...otherProps,\n id: undefined,\n children: item.rendered,\n defaultClassName: 'react-aria-GridListLoadingIndicator',\n values: undefined\n });\n // For now don't include aria-posinset and aria-setsize on loader since they aren't keyboard focusable\n // Arguably shouldn't include them ever since it might be confusing to the user to include the loaders as part of the\n // item count\n return /*#__PURE__*/ (0, $6XsrP$react).createElement((0, $6XsrP$react).Fragment, null, /*#__PURE__*/ (0, $6XsrP$react).createElement(\"div\", {\n style: {\n position: 'relative',\n width: 0,\n height: 0\n },\n inert: (0, $6XsrP$inertValue)(true)\n }, /*#__PURE__*/ (0, $6XsrP$react).createElement(\"div\", {\n \"data-testid\": \"loadMoreSentinel\",\n ref: sentinelRef,\n style: {\n position: 'absolute',\n height: 1,\n width: 1\n }\n })), isLoading && renderProps.children && /*#__PURE__*/ (0, $6XsrP$react).createElement((0, $7230ffa83bc0c2cf$export$df3a06d6289f983e).div, {\n ...renderProps,\n ...(0, $6XsrP$filterDOMProps)(props, {\n global: true\n }),\n role: \"row\",\n ref: ref\n }, /*#__PURE__*/ (0, $6XsrP$react).createElement(\"div\", {\n \"aria-colindex\": isVirtualized ? 1 : undefined,\n role: \"gridcell\"\n }, renderProps.children)));\n});\nconst $1f7649abe3ae3599$export$f696877219115b14 = /*#__PURE__*/ (0, $6XsrP$createBranchComponent)((0, $6XsrP$SectionNode), (props, ref, item)=>{\n let state = (0, $6XsrP$useContext)((0, $928221da08ecbc62$export$7c5906fe4f1f2af2));\n let { CollectionBranch: CollectionBranch } = (0, $6XsrP$useContext)((0, $263ab7fc0f95ccdb$export$4feb769f8ddf26c5));\n let headingRef = (0, $6XsrP$useRef)(null);\n ref = (0, $6XsrP$useObjectRef)(ref);\n let { rowHeaderProps: rowHeaderProps, rowProps: rowProps, rowGroupProps: rowGroupProps } = (0, $6XsrP$useGridListSection)({\n 'aria-label': props['aria-label'] ?? undefined\n }, state, ref);\n let renderProps = (0, $7230ffa83bc0c2cf$export$4d86445c2cf5e3)({\n ...props,\n id: undefined,\n children: undefined,\n defaultClassName: 'react-aria-GridListSection',\n values: undefined\n });\n let DOMProps = (0, $6XsrP$filterDOMProps)(props, {\n global: true\n });\n delete DOMProps.id;\n return /*#__PURE__*/ (0, $6XsrP$react).createElement((0, $7230ffa83bc0c2cf$export$df3a06d6289f983e).div, {\n ...(0, $6XsrP$mergeProps)(DOMProps, renderProps, rowGroupProps),\n ref: ref\n }, /*#__PURE__*/ (0, $6XsrP$react).createElement((0, $7230ffa83bc0c2cf$export$2881499e37b75b9a), {\n values: [\n [\n $1f7649abe3ae3599$export$87f5843bfb30d205,\n {\n ...rowProps,\n ref: headingRef\n }\n ],\n [\n $1f7649abe3ae3599$export$bc7e8a4031ec2a33,\n {\n ...rowHeaderProps\n }\n ]\n ]\n }, /*#__PURE__*/ (0, $6XsrP$react).createElement(CollectionBranch, {\n collection: state.collection,\n parent: item\n })));\n});\nconst $1f7649abe3ae3599$export$87f5843bfb30d205 = /*#__PURE__*/ (0, $6XsrP$createContext)({});\nconst $1f7649abe3ae3599$export$bc7e8a4031ec2a33 = /*#__PURE__*/ (0, $6XsrP$createContext)(null);\nconst $1f7649abe3ae3599$export$1b574dbdb0075ff6 = /*#__PURE__*/ (0, $6XsrP$createLeafComponent)((0, $6XsrP$HeaderNode), function Header(props, ref) {\n [props, ref] = (0, $7230ffa83bc0c2cf$export$29f1550f4b0d4415)(props, ref, $1f7649abe3ae3599$export$87f5843bfb30d205);\n let rowHeaderProps = (0, $6XsrP$useContext)($1f7649abe3ae3599$export$bc7e8a4031ec2a33);\n return /*#__PURE__*/ (0, $6XsrP$react).createElement((0, $7230ffa83bc0c2cf$export$df3a06d6289f983e).div, {\n render: props.render,\n className: \"react-aria-GridListHeader\",\n ref: ref,\n ...props\n }, /*#__PURE__*/ (0, $6XsrP$react).createElement(\"div\", {\n ...rowHeaderProps,\n style: {\n display: 'contents'\n }\n }, props.children));\n});\n\n\nexport {$1f7649abe3ae3599$export$54fe942636b6416d as GridListContext, $1f7649abe3ae3599$export$a7bfbda1311ca015 as GridList, $1f7649abe3ae3599$export$e96fc9a8407faa6b as GridListItem, $1f7649abe3ae3599$export$392b9a0bbc7c7e43 as GridListLoadMoreItem, $1f7649abe3ae3599$export$f696877219115b14 as GridListSection, $1f7649abe3ae3599$export$87f5843bfb30d205 as GridListHeaderContext, $1f7649abe3ae3599$export$bc7e8a4031ec2a33 as GridListHeaderInnerContext, $1f7649abe3ae3599$export$1b574dbdb0075ff6 as GridListHeader};\n//# sourceMappingURL=GridList.mjs.map\n","import { isTextDropItem, type DropItem } from \"react-aria-components\";\n\n/**\n * Splits drop items into internal (Nimbus-serialized) and external,\n * processes externals via the consumer callback, and auto-keys any\n * items missing both `key` and `id`.\n */\nexport async function processDropItems<T extends Record<string, unknown>>(\n rawItems: DropItem[],\n dataFormat: string,\n onExternalDrop?: (items: DropItem[]) => T[] | Promise<T[]>\n): Promise<T[]> {\n const internalItems: T[] = [];\n const externalItems: DropItem[] = [];\n\n for (const item of rawItems) {\n if (isTextDropItem(item) && item.types.has(dataFormat)) {\n try {\n internalItems.push(JSON.parse(await item.getText(dataFormat)));\n } catch {\n // Skip items with invalid JSON (corrupted drag data)\n }\n } else {\n externalItems.push(item);\n }\n }\n\n const converted =\n externalItems.length > 0 && onExternalDrop\n ? await onExternalDrop(externalItems)\n : [];\n\n return [...internalItems, ...converted].map((item) =>\n item.key == null && item.id == null\n ? { ...item, key: crypto.randomUUID() }\n : item\n );\n}\n","import type { DropOperation } from \"react-aria-components\";\nimport { useDragAndDrop as useRaDragAndDrop } from \"react-aria-components\";\nimport { processDropItems } from \"./process-drop-items\";\nimport type { UseDragAndDropOptions } from \"./use-drag-and-drop.types\";\n\nconst DRAG_FORMAT_BASE = \"nimbus-collection-item\";\n\nexport function resolveDropOperation(\n types: { has(type: string | symbol): boolean },\n allowedOperations: DropOperation[],\n dataFormat: string,\n opts: {\n onExternalDrop?: unknown;\n acceptExternalTypes?: Array<string | symbol>;\n externalDropOperation: Exclude<DropOperation, \"cancel\">;\n }\n): DropOperation {\n if (types.has(dataFormat)) {\n return allowedOperations.includes(\"move\") ? \"move\" : \"cancel\";\n }\n if (opts.onExternalDrop) {\n const accepted = opts.acceptExternalTypes ?? [];\n const hasAcceptedType = accepted.some((t) => types.has(t));\n if (!hasAcceptedType) return \"cancel\";\n return allowedOperations.includes(opts.externalDropOperation)\n ? opts.externalDropOperation\n : \"cancel\";\n }\n return \"cancel\";\n}\n\n/**\n * Shared drag-and-drop hook for Nimbus collection components.\n *\n * Wraps React Aria's `useDragAndDrop` with namespace isolation, external drop\n * support, outgoing format serialization, and auto-keying. Returns\n * `{ dragAndDropHooks }` to pass to any React Aria collection component.\n */\nexport function useDragAndDrop<T extends Record<string, unknown>>(\n options: UseDragAndDropOptions<T>\n) {\n const {\n dataFormatBase = DRAG_FORMAT_BASE,\n dragNamespace,\n onExternalDrop,\n acceptExternalTypes,\n externalDropOperation = \"copy\",\n serializeDragItem,\n onInsertItems,\n onAppendItems,\n onReorder,\n onRemoveItems,\n } = options;\n\n const dataFormat = dragNamespace\n ? `${dataFormatBase}:${dragNamespace}`\n : dataFormatBase;\n\n const { dragAndDropHooks } = useRaDragAndDrop<T>({\n getItems(_keys, items) {\n return items.map((item) => ({\n [dataFormat]: JSON.stringify(item),\n ...(serializeDragItem?.(item) ?? {}),\n }));\n },\n\n acceptedDragTypes: onExternalDrop\n ? [dataFormat, ...(acceptExternalTypes ?? [])]\n : [dataFormat],\n\n getDropOperation: (_target, types, allowedOperations) =>\n resolveDropOperation(types, allowedOperations, dataFormat, {\n onExternalDrop,\n acceptExternalTypes,\n externalDropOperation,\n }),\n\n async onInsert(e) {\n if (!onInsertItems) return;\n const items = await processDropItems(e.items, dataFormat, onExternalDrop);\n if (items.length > 0) onInsertItems(items, e.target);\n },\n\n async onRootDrop(e) {\n if (!onAppendItems) return;\n const items = await processDropItems(e.items, dataFormat, onExternalDrop);\n if (items.length > 0) onAppendItems(items);\n },\n\n onReorder(e) {\n onReorder?.(e.keys, e.target);\n },\n\n async onDragEnd(e) {\n if (e.dropOperation === \"move\" && !e.isInternal) {\n onRemoveItems?.(e.keys);\n }\n },\n });\n\n return { dragAndDropHooks };\n}\n","import type { Dispatch, SetStateAction } from \"react\";\nimport type { Key, ItemDropTarget } from \"react-aria-components\";\n\ndeclare const process: { env: Record<string, string | undefined> } | undefined;\n\ntype ListData<T> = {\n insertBefore: (key: Key, ...items: T[]) => void;\n insertAfter: (key: Key, ...items: T[]) => void;\n append: (...items: T[]) => void;\n moveBefore: (key: Key, keys: Set<Key>) => void;\n moveAfter: (key: Key, keys: Set<Key>) => void;\n remove: (...keys: Key[]) => void;\n};\n\ntype StateHandlers<T> = {\n onInsertItems: (items: T[], target: ItemDropTarget) => void;\n onAppendItems: (items: T[]) => void;\n onReorder: (keys: Set<Key>, target: ItemDropTarget) => void;\n onRemoveItems: (keys: Set<Key>) => void;\n};\n\n/**\n * Creates state mutation callbacks for use with React Aria's `useListData`.\n * Spread the result into `useDragAndDrop` options.\n *\n * @example\n * ```tsx\n * const list = useListData({ initialItems, getKey });\n * const { dragAndDropHooks } = useDragAndDrop({\n * ...createListDataHandlers(list),\n * });\n * ```\n */\nexport function createListDataHandlers<T>(list: ListData<T>): StateHandlers<T> {\n return {\n onInsertItems(items, target) {\n if (target.dropPosition === \"before\") {\n list.insertBefore(target.key, ...items);\n } else if (target.dropPosition === \"after\") {\n list.insertAfter(target.key, ...items);\n }\n },\n onAppendItems(items) {\n list.append(...items);\n },\n onReorder(keys, target) {\n if (target.dropPosition === \"before\") {\n list.moveBefore(target.key, keys);\n } else if (target.dropPosition === \"after\") {\n list.moveAfter(target.key, keys);\n }\n },\n onRemoveItems(keys) {\n list.remove(...keys);\n },\n };\n}\n\n/**\n * Creates state mutation callbacks for use with plain `useState` arrays.\n * Spread the result into `useDragAndDrop` options.\n *\n * @param setItems - The state setter from `useState`\n * @param getKey - Function to extract a unique key from an item.\n * Defaults to `(item) => item.key ?? item.id`.\n *\n * @example\n * ```tsx\n * const [items, setItems] = useState(initialItems);\n * const { dragAndDropHooks } = useDragAndDrop({\n * ...createArrayHandlers(setItems, (item) => item.key),\n * });\n * ```\n */\nexport function createArrayHandlers<T extends Record<string, unknown>>(\n setItems: Dispatch<SetStateAction<T[]>>,\n getKey: (item: T) => Key = (item) => {\n const key = (item.key as Key) ?? (item.id as Key);\n if (key == null) {\n throw new Error(\n \"createArrayHandlers: item has no `key` or `id` field. Provide a custom `getKey` function.\"\n );\n }\n return key;\n }\n): StateHandlers<T> {\n return {\n onInsertItems(items, target) {\n setItems((prev) => {\n const idx = prev.findIndex((i) => getKey(i) === target.key);\n if (idx === -1) return [...prev, ...items];\n const pos = target.dropPosition === \"before\" ? idx : idx + 1;\n return [...prev.slice(0, pos), ...items, ...prev.slice(pos)];\n });\n },\n onAppendItems(items) {\n setItems((prev) => [...prev, ...items]);\n },\n onReorder(keys, target) {\n setItems((prev) => {\n const movedItems = prev.filter((i) => keys.has(getKey(i)));\n const remaining = prev.filter((i) => !keys.has(getKey(i)));\n const idx = remaining.findIndex((i) => getKey(i) === target.key);\n if (idx === -1) {\n if (\n typeof process !== \"undefined\" &&\n process.env.NODE_ENV !== \"production\"\n ) {\n console.warn(\n \"createArrayHandlers: target key not found in remaining items — appending to end.\"\n );\n }\n return [...remaining, ...movedItems];\n }\n const pos = target.dropPosition === \"before\" ? idx : idx + 1;\n return [\n ...remaining.slice(0, pos),\n ...movedItems,\n ...remaining.slice(pos),\n ];\n });\n },\n onRemoveItems(keys) {\n setItems((prev) => prev.filter((i) => !keys.has(getKey(i))));\n },\n };\n}\n","var has = Object.prototype.hasOwnProperty;\n\nfunction find(iter, tar, key) {\n\tfor (key of iter.keys()) {\n\t\tif (dequal(key, tar)) return key;\n\t}\n}\n\nexport function dequal(foo, bar) {\n\tvar ctor, len, tmp;\n\tif (foo === bar) return true;\n\n\tif (foo && bar && (ctor=foo.constructor) === bar.constructor) {\n\t\tif (ctor === Date) return foo.getTime() === bar.getTime();\n\t\tif (ctor === RegExp) return foo.toString() === bar.toString();\n\n\t\tif (ctor === Array) {\n\t\t\tif ((len=foo.length) === bar.length) {\n\t\t\t\twhile (len-- && dequal(foo[len], bar[len]));\n\t\t\t}\n\t\t\treturn len === -1;\n\t\t}\n\n\t\tif (ctor === Set) {\n\t\t\tif (foo.size !== bar.size) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tfor (len of foo) {\n\t\t\t\ttmp = len;\n\t\t\t\tif (tmp && typeof tmp === 'object') {\n\t\t\t\t\ttmp = find(bar, tmp);\n\t\t\t\t\tif (!tmp) return false;\n\t\t\t\t}\n\t\t\t\tif (!bar.has(tmp)) return false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\n\t\tif (ctor === Map) {\n\t\t\tif (foo.size !== bar.size) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tfor (len of foo) {\n\t\t\t\ttmp = len[0];\n\t\t\t\tif (tmp && typeof tmp === 'object') {\n\t\t\t\t\ttmp = find(bar, tmp);\n\t\t\t\t\tif (!tmp) return false;\n\t\t\t\t}\n\t\t\t\tif (!dequal(len[1], bar.get(tmp))) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\n\t\tif (ctor === ArrayBuffer) {\n\t\t\tfoo = new Uint8Array(foo);\n\t\t\tbar = new Uint8Array(bar);\n\t\t} else if (ctor === DataView) {\n\t\t\tif ((len=foo.byteLength) === bar.byteLength) {\n\t\t\t\twhile (len-- && foo.getInt8(len) === bar.getInt8(len));\n\t\t\t}\n\t\t\treturn len === -1;\n\t\t}\n\n\t\tif (ArrayBuffer.isView(foo)) {\n\t\t\tif ((len=foo.byteLength) === bar.byteLength) {\n\t\t\t\twhile (len-- && foo[len] === bar[len]);\n\t\t\t}\n\t\t\treturn len === -1;\n\t\t}\n\n\t\tif (!ctor || typeof foo === 'object') {\n\t\t\tlen = 0;\n\t\t\tfor (ctor in foo) {\n\t\t\t\tif (has.call(foo, ctor) && ++len && !has.call(bar, ctor)) return false;\n\t\t\t\tif (!(ctor in bar) || !dequal(foo[ctor], bar[ctor])) return false;\n\t\t\t}\n\t\t\treturn Object.keys(bar).length === len;\n\t\t}\n\t}\n\n\treturn foo !== foo && bar !== bar;\n}\n","/**\n * Pre-compiled en messages for DraggableList\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n emptyMessage: `drop items here`,\n removeButtonLabel: `remove item`,\n};\n","/**\n * Pre-compiled de messages for DraggableList\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n emptyMessage: `Artikel hier ablegen`,\n removeButtonLabel: `Artikel entfernen`,\n};\n","/**\n * Pre-compiled es messages for DraggableList\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n emptyMessage: `Soltar artículos aquí`,\n removeButtonLabel: `Eliminar artículo`,\n};\n","/**\n * Pre-compiled fr-FR messages for DraggableList\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n emptyMessage: `Déposer les articles ici`,\n removeButtonLabel: `Supprimer l'article`,\n};\n","/**\n * Pre-compiled pt-BR messages for DraggableList\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n emptyMessage: `arrastar itens aqui`,\n removeButtonLabel: `remover item`,\n};\n","/**\n * Pre-compiled localized messages for DraggableList component\n *\n * Generated by scripts/generate-dictionaries.ts\n * DO NOT EDIT MANUALLY\n *\n * @see https://react-spectrum.adobe.com/react-aria/internationalization.html\n */\n\nimport {\n type LocalizedString,\n type LocalizedStrings,\n} from \"@internationalized/string\";\nimport { normalizeMessages } from \"../../utils/normalize-messages\";\n\n// Pre-compiled message functions\nimport draggableListMessages_en from \"./intl/en\";\nimport draggableListMessages_de from \"./intl/de\";\nimport draggableListMessages_es from \"./intl/es\";\nimport draggableListMessages_fr from \"./intl/fr-FR\";\nimport draggableListMessages_pt from \"./intl/pt-BR\";\n\n// Raw LocalizedStrings object for use with useLocalizedStringFormatter hook\nexport const draggableListMessagesStrings: LocalizedStrings<\n string,\n LocalizedString\n> = {\n en: normalizeMessages(draggableListMessages_en),\n de: normalizeMessages(draggableListMessages_de),\n es: normalizeMessages(draggableListMessages_es),\n \"fr-FR\": normalizeMessages(draggableListMessages_fr),\n \"pt-BR\": normalizeMessages(draggableListMessages_pt),\n} as LocalizedStrings<string, LocalizedString>;\n\n/**\n * Available message keys for DraggableList component\n */\nexport type DraggableListMessageKey = \"emptyMessage\" | \"removeButtonLabel\";\n","import { createSlotRecipeContext } from \"@chakra-ui/react/styled-system\";\nimport type {\n DraggableListRootSlotProps,\n DraggableListItemSlotProps,\n} from \"./draggable-list.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"nimbusDraggableList\",\n});\n\n// Root slot - provides recipe context + config to all child components\nexport const DraggableListRootSlot = withProvider<\n HTMLDivElement,\n DraggableListRootSlotProps\n>(\"div\", \"root\");\n\n// Item slot - draggable item displayed in the list\nexport const DraggableListItemSlot = withContext<\n HTMLDivElement,\n DraggableListItemSlotProps\n>(\"div\", \"item\");\n\n// Item content slot - content displayed in draggable item\nexport const DraggableListItemContentSlot = withContext<\n HTMLDivElement,\n DraggableListItemSlotProps\n>(\"div\", \"itemContent\");\n\n// Empty list slot - when there are no items in list\nexport const DraggableListEmptySlot = withContext<\n HTMLDivElement,\n DraggableListItemSlotProps\n>(\"div\", \"empty\");\n","import { GridListItem } from \"react-aria-components\";\nimport { Close, DragIndicator } from \"@commercetools/nimbus-icons\";\nimport { Checkbox, IconButton } from \"@/components\";\nimport { extractStyleProps } from \"@/utils\";\nimport { useLocalizedStringFormatter } from \"@/hooks\";\nimport { draggableListMessagesStrings } from \"../draggable-list.messages\";\nimport {\n DraggableListItemSlot,\n DraggableListItemContentSlot,\n} from \"../draggable-list.slots\";\nimport type {\n DraggableListItemData,\n DraggableListItemProps,\n} from \"../draggable-list.types\";\n\n/**\n * DraggableList.Item - An individual draggable item within the list\n *\n * Handles drag interactions and provides visual feedback during dragging.\n * Supports optional removal with remove button.\n *\n * @supportsStyleProps\n */\nexport const DraggableListItem = <T extends DraggableListItemData>({\n children,\n id,\n onRemoveItem,\n textValue: textValueFromProps,\n ...restProps\n}: DraggableListItemProps<T>) => {\n const msg = useLocalizedStringFormatter(draggableListMessagesStrings);\n const defaultTextValue = typeof children === \"string\" ? children : undefined;\n const [styleProps, functionalProps] = extractStyleProps(restProps);\n return (\n <DraggableListItemSlot {...styleProps} asChild>\n <GridListItem\n id={id}\n textValue={textValueFromProps ?? defaultTextValue}\n {...functionalProps}\n >\n {({ allowsDragging, selectionBehavior, selectionMode }) => (\n <>\n {allowsDragging && (\n <IconButton\n slot=\"drag\"\n size=\"2xs\"\n variant=\"ghost\"\n flex=\"0 0 auto\"\n colorPalette=\"neutral\"\n >\n <DragIndicator />\n </IconButton>\n )}\n {selectionMode === \"multiple\" && selectionBehavior === \"toggle\" && (\n <Checkbox flex=\"0 0 auto\" slot=\"selection\" />\n )}\n <DraggableListItemContentSlot>\n {children}\n </DraggableListItemContentSlot>\n {onRemoveItem && (\n <IconButton\n aria-label={msg.format(\"removeButtonLabel\")}\n size=\"2xs\"\n variant=\"ghost\"\n onPress={id ? () => onRemoveItem(id) : undefined}\n flex=\"0 0 auto\"\n colorPalette=\"neutral\"\n >\n <Close />\n </IconButton>\n )}\n </>\n )}\n </GridListItem>\n </DraggableListItemSlot>\n );\n};\n\nDraggableListItem.displayName = \"DraggableList.Item\";\n","import { useEffect, useCallback, useRef } from \"react\";\nimport { GridList, type Key } from \"react-aria-components\";\nimport { useListData } from \"react-stately\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { dequal } from \"dequal\";\nimport { extractStyleProps } from \"@/utils\";\nimport { useLocalizedStringFormatter } from \"@/hooks\";\nimport {\n useDragAndDrop,\n createListDataHandlers,\n} from \"@/hooks/use-drag-and-drop\";\nimport { draggableListMessagesStrings } from \"../draggable-list.messages\";\nimport {\n DraggableListRootSlot,\n DraggableListEmptySlot,\n} from \"../draggable-list.slots\";\nimport type {\n DraggableListItemData,\n DraggableListRootProps,\n} from \"../draggable-list.types\";\nimport { DraggableListItem } from \"./draggable-list.item\";\n\nconst DRAGGABLE_LIST_DATA_FORMAT = \"nimbus-draggable-list-item\";\n\nconst defaultGetKey = <T extends DraggableListItemData>(item: T): Key =>\n (item.key as Key) ?? item.id;\n\n/**\n * DraggableList.Root - The root component that provides drag-and-drop functionality\n *\n * Manages the state of draggable items and handles reordering logic using React Aria's\n * GridList and drag-and-drop hooks.\n *\n * @supportsStyleProps\n */\nexport const DraggableListRoot = <T extends DraggableListItemData>({\n children,\n ref,\n items = [],\n getKey = defaultGetKey,\n onUpdateItems,\n removableItems,\n renderEmptyState: renderEmptyStateFromProps,\n dragNamespace,\n onExternalDrop,\n acceptExternalTypes,\n externalDropOperation,\n serializeDragItem,\n ...restProps\n}: DraggableListRootProps<T>) => {\n const msg = useLocalizedStringFormatter(draggableListMessagesStrings);\n const renderEmptyState =\n renderEmptyStateFromProps ?? msg.format(\"emptyMessage\");\n\n const list = useListData({\n initialItems: items,\n getKey,\n });\n\n // Track if we're currently syncing from external changes\n const isSyncingFromPropsRef = useRef(false);\n // Track the last items we sent to parent to avoid syncing them back\n const lastNotifiedItemsRef = useRef<T[]>(items ?? []);\n\n // Sync external items prop changes with internal list state\n useEffect(() => {\n // Performance: Skip sync if shallow equality check passes (same array reference)\n if (items === lastNotifiedItemsRef.current) {\n return;\n }\n // Skip sync if these are the exact items we just sent to parent (deep equality)\n if (dequal(items, lastNotifiedItemsRef.current)) {\n return;\n }\n // If items from props and list.items are not deeply equal,\n // remove all current items from list.items and replace them with items from props\n if (!dequal(items, list.items)) {\n isSyncingFromPropsRef.current = true;\n\n // Performance Note: Full list replacement (remove all + append all) is O(n) for both\n // operations. For large lists with frequent updates, a diffing algorithm could optimize\n // this to only update changed items. However, for typical use cases, the simplicity and\n // correctness of full replacement outweighs the performance cost.\n const keysToRemove = list.items.map((item) => getKey(item));\n // Remove all current list items\n list.remove(...keysToRemove);\n // Add all items from props\n list.append(...items);\n\n // Preserve selected keys for items that still exist in the updated items\n if (list.selectedKeys !== \"all\" && list.selectedKeys.size > 0) {\n const newItemKeys = new Set(items.map((item) => getKey(item)));\n const updatedSelectedKeys = new Set(\n [...list.selectedKeys].filter((key) => newItemKeys.has(key))\n );\n list.setSelectedKeys(updatedSelectedKeys);\n }\n\n // Update lastNotifiedItemsRef to prevent notification effect from reverting parent state\n lastNotifiedItemsRef.current = items;\n\n // Timing Note: queueMicrotask schedules the callback after the current synchronous\n // execution completes but before the next event loop tick. This ensures the flag is\n // reset after React processes all state updates from this effect. A cleanup function\n // prevents the microtask from executing if the effect re-runs or component unmounts.\n let cancelled = false;\n queueMicrotask(() => {\n if (!cancelled) {\n isSyncingFromPropsRef.current = false;\n }\n });\n\n return () => {\n cancelled = true;\n };\n }\n // Dependency Explanation: Only `items` is included as a dependency.\n //\n // Excluded dependencies:\n // - list methods (list.remove, list.append, list.setSelectedKeys) and list.items:\n // Intentionally excluded to prevent infinite loops. Including these would cause this\n // effect to run on every internal list update, creating an infinite sync loop.\n //\n // - getKey: Intentionally excluded because it should be stable (either the default\n // function or a memoized callback). If getKey changes on every render due to not\n // being memoized, including it would cause unnecessary re-syncs. This effect should\n // primarily respond to changes in the `items` prop, not the key extraction function.\n // If getKey does need to change mid-lifecycle, it indicates a parent component bug.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [items]);\n\n // Notify parent of internal list changes (but not during external sync)\n useEffect(() => {\n if (!isSyncingFromPropsRef.current) {\n lastNotifiedItemsRef.current = list.items;\n onUpdateItems?.(list.items);\n }\n }, [list.items, onUpdateItems]);\n\n const { dragAndDropHooks } = useDragAndDrop<T>({\n dataFormatBase: DRAGGABLE_LIST_DATA_FORMAT,\n dragNamespace,\n onExternalDrop,\n acceptExternalTypes,\n externalDropOperation,\n serializeDragItem,\n ...createListDataHandlers(list),\n });\n\n const handleRemoveItem = useCallback(\n (key: Key) => {\n list.remove(key);\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [list.remove]\n );\n\n if (\n !children &&\n items?.length > 0 &&\n (!items?.[0]?.key || !items?.[0]?.label)\n ) {\n throw new Error(\n 'Nimbus DraggableList: when \"children\" is not provided, items must have both \"key\" and \"label\" properties'\n );\n }\n\n const recipe = useSlotRecipe({ key: \"nimbusDraggableList\" });\n // Extract recipe props\n const [recipeProps] = recipe.splitVariantProps(restProps);\n const [styleProps, functionalProps] = extractStyleProps(restProps);\n return (\n <DraggableListRootSlot {...styleProps} {...recipeProps} asChild>\n <GridList\n ref={ref}\n {...functionalProps}\n renderEmptyState={() => (\n <DraggableListEmptySlot>{renderEmptyState}</DraggableListEmptySlot>\n )}\n dragAndDropHooks={dragAndDropHooks}\n items={list.items}\n dependencies={[handleRemoveItem]}\n >\n {(item) => {\n return children ? (\n typeof children === \"function\" ? (\n children({\n ...item,\n onRemoveItem: removableItems ? handleRemoveItem : undefined,\n })\n ) : (\n children\n )\n ) : (\n <DraggableListItem\n {...item}\n key={item.key}\n onRemoveItem={removableItems ? handleRemoveItem : undefined}\n >\n {item.label}\n </DraggableListItem>\n );\n }}\n </GridList>\n </DraggableListRootSlot>\n );\n};\n\nDraggableListRoot.displayName = \"DraggableList.Root\";\n","import { FormField } from \"@/components/form-field/form-field\";\nimport type {\n DraggableListFieldProps,\n DraggableListFieldItemData,\n} from \"../draggable-list.types\";\nimport { DraggableListRoot } from \"./draggable-list.root\";\n\n/**\n * DraggableList.Field - A form field wrapper for DraggableList\n *\n * Combines draggable list functionality with form field labeling,\n * description, and error handling for form integration.\n *\n * @supportsStyleProps\n */\nexport const DraggableListField = <T extends DraggableListFieldItemData>({\n label,\n description,\n error,\n infoBox,\n isRequired,\n isInvalid,\n isDisabled,\n isReadOnly,\n id,\n items,\n ...restProps\n}: DraggableListFieldProps<T>) => {\n return (\n <FormField.Root\n id={id}\n isRequired={isRequired}\n isInvalid={isInvalid}\n isDisabled={isDisabled}\n isReadOnly={isReadOnly}\n >\n <FormField.Label>{label}</FormField.Label>\n <FormField.Input>\n <DraggableListRoot\n disabledKeys={isDisabled ? items?.map((item) => item.key) : undefined}\n items={items}\n {...restProps}\n />\n </FormField.Input>\n {description && (\n <FormField.Description>{description}</FormField.Description>\n )}\n {error && <FormField.Error>{error}</FormField.Error>}\n {infoBox && <FormField.InfoBox>{infoBox}</FormField.InfoBox>}\n </FormField.Root>\n );\n};\n\nDraggableListField.displayName = \"DraggableList.Field\";\n","import {\n DraggableListRoot,\n DraggableListItem,\n DraggableListField,\n} from \"./components\";\n\n/**\n * DraggableList\n * ============================================================\n * A drag-and-drop list component for reordering items.\n * Built with React Aria Components for accessibility and keyboard navigation.\n *\n * Features:\n * - Drag-and-drop reordering with visual feedback\n * - Keyboard navigation support\n * - Controlled and uncontrolled modes\n * - Accessible drag-and-drop interactions\n * - Customizable item rendering\n *\n * **Important:** You must provide either an `aria-label` or `aria-labelledby`\n * prop for accessibility. The drag-and-drop functionality will not work properly\n * without an accessible label.\n *\n * @example\n * ```tsx\n * <DraggableList.Root items={items} aria-label=\"Task list\">\n * {(item) => (\n * <DraggableList.Item key={item.id} id={item.id}>\n * {item.content}\n * </DraggableList.Item>\n * )}\n * </DraggableList.Root>\n * ```\n *\n * @see https://react-spectrum.adobe.com/react-aria/dnd.html\n */\nexport const DraggableList = {\n /**\n * # DraggableList.Root\n *\n * The root component that provides context and drag-and-drop functionality.\n * Manages the state of draggable items and handles reordering logic.\n *\n * This component must wrap all DraggableList.Item components and provides\n * the drag-and-drop context and reordering callbacks.\n *\n * Note: If your items have `key` and `label` properties, you can omit the children\n * prop and the component will render the items automatically.\n *\n * @example\n * ```tsx\n * // With custom children\n * <DraggableList.Root items={items} aria-label=\"Tasks list\">\n * {(item) => (\n * <DraggableList.Item key={item.id} id={item.id}>\n * {item.content}\n * </DraggableList.Item>\n * )}\n * </DraggableList.Root>\n *\n * // Without children (items must have key and label)\n * <DraggableList.Root items={itemsWithKeyAndLabel} aria-label=\"Priority list\" />\n * ```\n */\n Root: DraggableListRoot,\n /**\n * # DraggableList.Item\n *\n * An individual draggable item within the list.\n * Handles drag interactions and provides visual feedback during dragging.\n *\n * This component represents a single item in the draggable list and supports\n * drag handles, drag previews, and reordering interactions.\n *\n * @example\n * ```tsx\n * <DraggableList.Root items={items} aria-label=\"Task list\">\n * {(item) => (\n * <DraggableList.Item key={item.id} id={item.id}>\n * <div>{item.title}</div>\n * <div>{item.description}</div>\n * </DraggableList.Item>\n * )}\n * </DraggableList.Root>\n * ```\n */\n Item: DraggableListItem,\n /**\n * # DraggableList.Field\n *\n * A standalone form field component for DraggableList that integrates with form libraries.\n * Provides label, error handling, and hint text support for draggable lists.\n *\n * This component is configured entirely through props and does not accept children.\n * All draggable list configuration is passed via the `items` prop and related properties.\n *\n * @example\n * ```tsx\n * <DraggableList.Field\n * label=\"Priority Order\"\n * description=\"Drag items to reorder\"\n * error={errors.priorities}\n * items={items}\n * aria-label=\"Priority list\"\n * />\n * ```\n */\n Field: DraggableListField,\n};\n\n// Internal exports for react-docgen\nexport {\n DraggableListRoot as _DraggableListRoot,\n DraggableListItem as _DraggableListItem,\n DraggableListField as _DraggableListField,\n};\n"],"x_google_ignoreList":[0,4],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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awer-
|
|
1
|
+
const e=require("./SSRProvider-CM04-CXZ.cjs.js"),t=require("./Dialog-UjK50qiN.cjs.js"),n=require("./Modal-BhGqV2ga.cjs.js"),r=require("./Button-CZDjIKB1.cjs.js"),i=require("./icon-button-BG5cQycc.cjs.js"),a=require("./normalize-messages-BMq9y_ae.cjs.js"),o=require("./heading-COgniVU1.cjs.js"),s=require("./theme-DA63MDZQ.cjs.js"),c=require("./extract-style-props-WNdpT-ME.cjs.js");let l=require("react");l=e.a(l,1);let u=require("react/jsx-runtime"),d=require("@commercetools/nimbus-icons"),f=require("@chakra-ui/react/styled-system");var{withProvider:p,withContext:m}=(0,f.createSlotRecipeContext)({key:`nimbusDrawer`}),h=p(`div`,`root`),g=m(`button`,`trigger`),_=m(`div`,`modalOverlay`),v=m(`div`,`modal`),y=m(`div`,`content`),b=m(`header`,`header`),x=m(`div`,`body`),S=m(`footer`,`footer`),C=m(`h2`,`title`),w=m(`div`,`closeTrigger`),T=(0,l.createContext)(void 0),E=()=>{let e=(0,l.useContext)(T);if(!e)throw Error(`useDrawerContext must be used within Drawer.Root`);return e},D=({children:e,value:t})=>(0,u.jsx)(T,{value:t,children:e}),O=e=>{let[n]=(0,f.useSlotRecipe)({recipe:s.m}).splitVariantProps(e),{children:r,isOpen:i,onOpenChange:a,defaultOpen:o=!1}=e,c=(0,u.jsx)(h,{...n,children:r}),d=l.default.Children.toArray(r).some(e=>{if(l.default.isValidElement(e)&&typeof e.type==`function`){let t=e.type?.displayName;return t===`DrawerTrigger`||t===`Drawer.Trigger`}return!1});return(0,u.jsx)(D,{value:{...e,hasDrawerTrigger:d},children:d?(0,u.jsx)(t.t,{isOpen:i,onOpenChange:a,defaultOpen:o,children:c}):c})};O.displayName=`Drawer.Root`;var k=({ref:e,children:t,asChild:n,...i})=>{if(n)return(0,u.jsx)(f.chakra.button,{ref:e,asChild:!0,...i,children:t});let[a,o]=c.t(i);return(0,u.jsx)(g,{...a,asChild:!0,children:(0,u.jsx)(r.n,{ref:e,...o,children:t})})};k.displayName=`Drawer.Trigger`;var A=e=>{let{ref:r,children:i,...a}=e,{hasDrawerTrigger:o,isDismissable:s=!0,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:d,isOpen:f,onOpenChange:p,defaultOpen:m}=E(),h=o?{isDismissable:s,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:d}:{isDismissable:s,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:d,isOpen:f,onOpenChange:p,defaultOpen:m},[g,b]=c.t(a);return(0,u.jsx)(_,{asChild:!0,children:(0,u.jsx)(n.n,{...h,children:(0,u.jsx)(v,{asChild:!0,children:(0,u.jsx)(n.t,{children:(0,u.jsx)(y,{asChild:!0,...g,children:(0,u.jsx)(t.n,{ref:r,...b,children:i})})})})})})};A.displayName=`Drawer.Content`;var j=e=>{let{ref:t,children:n,...r}=e;return(0,u.jsx)(b,{ref:t,...r,children:n})};j.displayName=`Drawer.Header`;var M=e=>{let{ref:t,children:n,...r}=e;return(0,u.jsx)(x,{ref:t,tabIndex:0,...r,children:n})};M.displayName=`Drawer.Body`;var N=e=>{let{ref:t,children:n,...r}=e;return(0,u.jsx)(S,{ref:t,...r,children:n})};N.displayName=`Drawer.Footer`;var P=e=>{let{ref:t,children:n,...r}=e;return(0,u.jsx)(C,{asChild:!0,...r,children:(0,u.jsx)(o.t,{ref:t,slot:`title`,as:`h2`,textStyle:`lg`,children:n})})};P.displayName=`Drawer.Title`;var F={en:a.t({closeTrigger:`Close drawer`}),de:a.t({closeTrigger:`Schublade schließen`}),es:a.t({closeTrigger:`Cerrar bandeja`}),"fr-FR":a.t({closeTrigger:`Fermer le volet`}),"pt-BR":a.t({closeTrigger:`Fechar gaveta`})},I=e=>{let t=a.n(F),{ref:n,"aria-label":r,...o}=e;return(0,u.jsx)(w,{children:(0,u.jsx)(i.t,{ref:n,slot:`close`,size:`xs`,variant:`ghost`,"aria-label":r||t.format(`closeTrigger`),...o,children:(0,u.jsx)(d.Close,{})})})};I.displayName=`Drawer.CloseTrigger`;var L={Root:O,Trigger:k,Content:A,Header:j,Body:M,Footer:N,Title:P,CloseTrigger:I};Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return M}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return N}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return I}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return P}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return A}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return L}});
|
|
2
|
+
//# sourceMappingURL=drawer-Cj7eGaLQ.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer-BKPP4f5K.cjs.js","names":[],"sources":["../../src/components/drawer/drawer.slots.tsx","../../src/components/drawer/components/drawer.context.tsx","../../src/components/drawer/components/drawer.root.tsx","../../src/components/drawer/components/drawer.trigger.tsx","../../src/components/drawer/components/drawer.content.tsx","../../src/components/drawer/components/drawer.header.tsx","../../src/components/drawer/components/drawer.body.tsx","../../src/components/drawer/components/drawer.footer.tsx","../../src/components/drawer/components/drawer.title.tsx","../../src/components/drawer/intl/en.ts","../../src/components/drawer/intl/de.ts","../../src/components/drawer/intl/es.ts","../../src/components/drawer/intl/fr-FR.ts","../../src/components/drawer/intl/pt-BR.ts","../../src/components/drawer/drawer.messages.ts","../../src/components/drawer/components/drawer.close-trigger.tsx","../../src/components/drawer/drawer.tsx"],"sourcesContent":["import {\n createSlotRecipeContext,\n type HTMLChakraProps,\n} from \"@chakra-ui/react/styled-system\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"nimbusDrawer\",\n});\n\n// Root slot - provides recipe context + config to all child components\nexport type DrawerRootSlotProps = HTMLChakraProps<\"div\">;\nexport const DrawerRootSlot = withProvider<HTMLDivElement, DrawerRootSlotProps>(\n \"div\",\n \"root\"\n);\n\n// Trigger slot - button that opens the drawer\nexport type DrawerTriggerSlotProps = HTMLChakraProps<\"button\">;\nexport const DrawerTriggerSlot = withContext<\n HTMLButtonElement,\n DrawerTriggerSlotProps\n>(\"button\", \"trigger\");\n\n// Backdrop slot - overlay displayed behind the drawer\nexport type DrawerModalOverlaySlotProps = HTMLChakraProps<\"div\">;\nexport const DrawerModalOverlaySlot = withContext<\n HTMLDivElement,\n DrawerModalOverlaySlotProps\n>(\"div\", \"modalOverlay\");\n\n// modal slot - positions the drawer content\nexport type DrawerModalSlotProps = HTMLChakraProps<\"div\">;\nexport const DrawerModalSlot = withContext<\n HTMLDivElement,\n DrawerModalSlotProps\n>(\"div\", \"modal\");\n\n// Content slot - main drawer container\nexport type DrawerContentSlotProps = HTMLChakraProps<\"div\">;\nexport const DrawerContentSlot = withContext<\n HTMLDivElement,\n DrawerContentSlotProps\n>(\"div\", \"content\");\n\n// Header slot - drawer header section\nexport type DrawerHeaderSlotProps = HTMLChakraProps<\"header\">;\nexport const DrawerHeaderSlot = withContext<HTMLElement, DrawerHeaderSlotProps>(\n \"header\",\n \"header\"\n);\n\n// Body slot - drawer body content\nexport type DrawerBodySlotProps = HTMLChakraProps<\"div\">;\nexport const DrawerBodySlot = withContext<HTMLDivElement, DrawerBodySlotProps>(\n \"div\",\n \"body\"\n);\n\n// Footer slot - drawer footer section with actions\nexport type DrawerFooterSlotProps = HTMLChakraProps<\"footer\">;\nexport const DrawerFooterSlot = withContext<HTMLElement, DrawerFooterSlotProps>(\n \"footer\",\n \"footer\"\n);\n\n// Title slot - accessible drawer title\nexport type DrawerTitleSlotProps = HTMLChakraProps<\"h2\">;\nexport const DrawerTitleSlot = withContext<\n HTMLHeadingElement,\n DrawerTitleSlotProps\n>(\"h2\", \"title\");\n\n// Close trigger slot - div container for positioning close button\nexport type DrawerCloseTriggerSlotProps = HTMLChakraProps<\"div\">;\nexport const DrawerCloseTriggerSlot = withContext<\n HTMLDivElement,\n DrawerCloseTriggerSlotProps\n>(\"div\", \"closeTrigger\");\n","import { createContext, useContext } from \"react\";\nimport type { DrawerRootProps } from \"../drawer.types\";\n\n/**\n * Context value containing drawer configuration passed from Root to child components\n */\nexport type DrawerContextValue = DrawerRootProps & {\n /**\n * Internal flag indicating whether the drawer has a Drawer.Trigger component.\n * Used by DrawerContent to determine whether DialogTrigger is managing state.\n */\n hasDrawerTrigger?: boolean;\n};\n\nexport const DrawerContext = createContext<DrawerContextValue | undefined>(\n undefined\n);\n\n/**\n * Hook to access drawer configuration from DrawerContext\n * @returns Drawer configuration from context\n * @throws Error if used outside of Drawer.Root\n */\nexport const useDrawerRootContext = (): DrawerContextValue => {\n const context = useContext(DrawerContext);\n if (!context) {\n throw new Error(\"useDrawerContext must be used within Drawer.Root\");\n }\n return context;\n};\n\n/**\n * Provider component that passes drawer configuration down to child components\n */\nexport const DrawerProvider = ({\n children,\n value,\n}: {\n children: React.ReactNode;\n value: DrawerContextValue;\n}) => {\n return <DrawerContext value={value}>{children}</DrawerContext>;\n};\n","import React from \"react\";\nimport { DialogTrigger as RaDialogTrigger } from \"react-aria-components\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { DrawerRootSlot } from \"../drawer.slots\";\nimport type { DrawerRootProps } from \"../drawer.types\";\nimport { DrawerProvider } from \"./drawer.context\";\nimport { drawerSlotRecipe } from \"../drawer.recipe\";\n\nexport const DrawerRoot = (props: DrawerRootProps) => {\n const recipe = useSlotRecipe({ recipe: drawerSlotRecipe });\n // Extract recipe props\n const [recipeProps] = recipe.splitVariantProps(props);\n // Extract props that are usable on RaDialogTrigger\n const { children, isOpen, onOpenChange, defaultOpen = false } = props;\n\n const content = <DrawerRootSlot {...recipeProps}>{children}</DrawerRootSlot>;\n\n // Check if any child is a Drawer.Trigger component\n // React Aria's DialogTrigger needs a pressable child, so we only use it when there's a trigger\n const hasDrawerTrigger = React.Children.toArray(children).some((child) => {\n if (React.isValidElement(child) && typeof child.type === \"function\") {\n const displayName = (\n child.type as React.ComponentType & { displayName?: string }\n )?.displayName;\n return (\n displayName === \"DrawerTrigger\" || displayName === \"Drawer.Trigger\"\n );\n }\n return false;\n });\n\n // Share all props (config + variant props) with the Drawer subcomponents\n // Also pass hasDrawerTrigger so DrawerContent knows whether to manage its own state\n return (\n <DrawerProvider value={{ ...props, hasDrawerTrigger }}>\n {hasDrawerTrigger ? (\n // When there's a Drawer.Trigger, use DialogTrigger for React Aria integration\n <RaDialogTrigger\n isOpen={isOpen}\n onOpenChange={onOpenChange}\n defaultOpen={defaultOpen}\n >\n {content}\n </RaDialogTrigger>\n ) : (\n // When no Drawer.Trigger, skip DialogTrigger to avoid the warning\n content\n )}\n </DrawerProvider>\n );\n};\n\nDrawerRoot.displayName = \"Drawer.Root\";\n","import { Button as RaButton } from \"react-aria-components\";\nimport { DrawerTriggerSlot } from \"../drawer.slots\";\nimport type { DrawerTriggerProps } from \"../drawer.types\";\nimport { extractStyleProps } from \"@/utils\";\nimport { chakra } from \"@chakra-ui/react/styled-system\";\n\n/**\n * Drawer.Trigger - The trigger element that opens the drawer when activated\n *\n * @supportsStyleProps\n */\nexport const DrawerTrigger = ({\n ref: forwardedRef,\n children,\n asChild,\n ...props\n}: DrawerTriggerProps) => {\n // If asChild is true, wrap children directly in RaButton with asChild\n if (asChild) {\n return (\n <chakra.button ref={forwardedRef} asChild {...props}>\n {children}\n </chakra.button>\n );\n }\n\n const [styleProps, restProps] = extractStyleProps(props);\n\n // Otherwise, wrap with both DrawerTriggerSlot and RaButton\n // Only pass React Aria compatible props to avoid type conflicts\n return (\n <DrawerTriggerSlot {...styleProps} asChild>\n <RaButton ref={forwardedRef} {...restProps}>\n {children}\n </RaButton>\n </DrawerTriggerSlot>\n );\n};\n\nDrawerTrigger.displayName = \"Drawer.Trigger\";\n","import {\n Modal as RaModal,\n ModalOverlay as RaModalOverlay,\n Dialog as RaDialog,\n} from \"react-aria-components\";\nimport {\n DrawerModalOverlaySlot,\n DrawerModalSlot,\n DrawerContentSlot,\n} from \"../drawer.slots\";\nimport type { DrawerContentProps } from \"../drawer.types\";\nimport { extractStyleProps } from \"@/utils\";\nimport { useDrawerRootContext } from \"./drawer.context\";\n\n/**\n * Drawer.Content - The main drawer content container\n *\n * @supportsStyleProps\n */\nexport const DrawerContent = (props: DrawerContentProps) => {\n const { ref: forwardedRef, children, ...restProps } = props;\n\n // Get configuration from context\n const {\n hasDrawerTrigger,\n isDismissable = true, // Default to true so clicking outside closes the drawer\n isKeyboardDismissDisabled,\n shouldCloseOnInteractOutside,\n isOpen,\n onOpenChange,\n defaultOpen,\n } = useDrawerRootContext();\n\n // When there's a Drawer.Trigger, DialogTrigger manages state via React Context\n // When there's NO Drawer.Trigger, ModalOverlay must manage its own state\n const modalProps = hasDrawerTrigger\n ? {\n // With trigger: Only pass dismissal props, state is managed by DialogTrigger\n isDismissable,\n isKeyboardDismissDisabled,\n shouldCloseOnInteractOutside,\n }\n : {\n // Without trigger: Pass state management props to ModalOverlay\n isDismissable,\n isKeyboardDismissDisabled,\n shouldCloseOnInteractOutside,\n isOpen,\n onOpenChange,\n defaultOpen,\n };\n\n const [styleProps, functionalProps] = extractStyleProps(restProps);\n\n return (\n <DrawerModalOverlaySlot asChild>\n <RaModalOverlay {...modalProps}>\n <DrawerModalSlot asChild>\n <RaModal>\n <DrawerContentSlot asChild {...styleProps}>\n <RaDialog ref={forwardedRef} {...functionalProps}>\n {children}\n </RaDialog>\n </DrawerContentSlot>\n </RaModal>\n </DrawerModalSlot>\n </RaModalOverlay>\n </DrawerModalOverlaySlot>\n );\n};\n\nDrawerContent.displayName = \"Drawer.Content\";\n","import { DrawerHeaderSlot } from \"../drawer.slots\";\nimport type { DrawerHeaderProps } from \"../drawer.types\";\n\n/**\n * Drawer.Header - The header section of the drawer\n *\n * @supportsStyleProps\n */\nexport const DrawerHeader = (props: DrawerHeaderProps) => {\n const { ref: forwardedRef, children, ...restProps } = props;\n\n return (\n <DrawerHeaderSlot ref={forwardedRef} {...restProps}>\n {children}\n </DrawerHeaderSlot>\n );\n};\n\nDrawerHeader.displayName = \"Drawer.Header\";\n","import { DrawerBodySlot } from \"../drawer.slots\";\nimport type { DrawerBodyProps } from \"../drawer.types\";\n\n/**\n * Drawer.Body - The main body content section of the drawer\n *\n * @supportsStyleProps\n */\nexport const DrawerBody = (props: DrawerBodyProps) => {\n const { ref: forwardedRef, children, ...restProps } = props;\n\n const defaultProps = {\n /**\n * Set tabIndex to 0 to allow the body to receive focus,\n * effectively enabling scrolling via keyboard arrow keys.\n */\n tabIndex: 0,\n };\n\n return (\n <DrawerBodySlot ref={forwardedRef} {...defaultProps} {...restProps}>\n {children}\n </DrawerBodySlot>\n );\n};\n\nDrawerBody.displayName = \"Drawer.Body\";\n","import { DrawerFooterSlot } from \"../drawer.slots\";\nimport type { DrawerFooterProps } from \"../drawer.types\";\n\n/**\n * Drawer.Footer - The footer section of the drawer\n *\n * @supportsStyleProps\n */\nexport const DrawerFooter = (props: DrawerFooterProps) => {\n const { ref: forwardedRef, children, ...restProps } = props;\n\n return (\n <DrawerFooterSlot ref={forwardedRef} {...restProps}>\n {children}\n </DrawerFooterSlot>\n );\n};\n\nDrawerFooter.displayName = \"Drawer.Footer\";\n","import { DrawerTitleSlot } from \"../drawer.slots\";\nimport type { DrawerTitleProps } from \"../drawer.types\";\nimport { Heading } from \"@/components\";\n\n/**\n * Drawer.Title - The accessible title element for the drawer\n *\n * @supportsStyleProps\n */\nexport const DrawerTitle = (props: DrawerTitleProps) => {\n const { ref: forwardedRef, children, ...restProps } = props;\n\n return (\n <DrawerTitleSlot asChild {...restProps}>\n <Heading ref={forwardedRef} slot=\"title\" as=\"h2\" textStyle=\"lg\">\n {children}\n </Heading>\n </DrawerTitleSlot>\n );\n};\n\nDrawerTitle.displayName = \"Drawer.Title\";\n","/**\n * Pre-compiled en messages for Drawer\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default { closeTrigger: `Close drawer` };\n","/**\n * Pre-compiled de messages for Drawer\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default { closeTrigger: `Schublade schließen` };\n","/**\n * Pre-compiled es messages for Drawer\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default { closeTrigger: `Cerrar bandeja` };\n","/**\n * Pre-compiled fr-FR messages for Drawer\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default { closeTrigger: `Fermer le volet` };\n","/**\n * Pre-compiled pt-BR messages for Drawer\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default { closeTrigger: `Fechar gaveta` };\n","/**\n * Pre-compiled localized messages for Drawer component\n *\n * Generated by scripts/generate-dictionaries.ts\n * DO NOT EDIT MANUALLY\n *\n * @see https://react-spectrum.adobe.com/react-aria/internationalization.html\n */\n\nimport {\n type LocalizedString,\n type LocalizedStrings,\n} from \"@internationalized/string\";\nimport { normalizeMessages } from \"../../utils/normalize-messages\";\n\n// Pre-compiled message functions\nimport drawerMessages_en from \"./intl/en\";\nimport drawerMessages_de from \"./intl/de\";\nimport drawerMessages_es from \"./intl/es\";\nimport drawerMessages_fr from \"./intl/fr-FR\";\nimport drawerMessages_pt from \"./intl/pt-BR\";\n\n// Raw LocalizedStrings object for use with useLocalizedStringFormatter hook\nexport const drawerMessagesStrings: LocalizedStrings<string, LocalizedString> =\n {\n en: normalizeMessages(drawerMessages_en),\n de: normalizeMessages(drawerMessages_de),\n es: normalizeMessages(drawerMessages_es),\n \"fr-FR\": normalizeMessages(drawerMessages_fr),\n \"pt-BR\": normalizeMessages(drawerMessages_pt),\n } as LocalizedStrings<string, LocalizedString>;\n\n/**\n * Available message keys for Drawer component\n */\nexport type DrawerMessageKey = \"closeTrigger\";\n","import { Close } from \"@commercetools/nimbus-icons\";\nimport { DrawerCloseTriggerSlot } from \"../drawer.slots\";\nimport type { DrawerCloseTriggerProps } from \"../drawer.types\";\nimport { IconButton } from \"@/components\";\nimport { useLocalizedStringFormatter } from \"@/hooks\";\nimport { drawerMessagesStrings } from \"../drawer.messages\";\n\n/**\n * Drawer.CloseTrigger - A button that closes the drawer when activated\n *\n * @supportsStyleProps\n */\nexport const DrawerCloseTrigger = (props: DrawerCloseTriggerProps) => {\n const msg = useLocalizedStringFormatter(drawerMessagesStrings);\n const { ref: forwardedRef, \"aria-label\": ariaLabel, ...restProps } = props;\n\n return (\n <DrawerCloseTriggerSlot>\n <IconButton\n ref={forwardedRef}\n slot=\"close\"\n size=\"xs\"\n variant=\"ghost\"\n aria-label={ariaLabel || msg.format(\"closeTrigger\")}\n {...restProps}\n >\n <Close />\n </IconButton>\n </DrawerCloseTriggerSlot>\n );\n};\n\nDrawerCloseTrigger.displayName = \"Drawer.CloseTrigger\";\n","import { DrawerRoot } from \"./components/drawer.root\";\nimport { DrawerTrigger } from \"./components/drawer.trigger\";\nimport { DrawerContent } from \"./components/drawer.content\";\nimport { DrawerHeader } from \"./components/drawer.header\";\nimport { DrawerBody } from \"./components/drawer.body\";\nimport { DrawerFooter } from \"./components/drawer.footer\";\nimport { DrawerTitle } from \"./components/drawer.title\";\nimport { DrawerCloseTrigger } from \"./components/drawer.close-trigger\";\n\n/**\n * Drawer\n * ============================================================\n * A foundational drawer component for overlays that require user attention.\n * Built for accessibility and WCAG 2.1 AA compliance.\n *\n * Features:\n * - Controlled and uncontrolled modes\n * - Customizable placement, size, and animations\n * - Focus management and keyboard navigation\n * - Click-outside and Escape key dismissal\n * - Portal rendering support\n * - Backdrop overlay with animations\n *\n * @example\n * ```tsx\n * <Drawer.Root>\n * <Drawer.Trigger>Open Drawer</Drawer.Trigger>\n * <Drawer.Content size=\"md\" placement=\"center\">\n * <Drawer.Header>\n * <Drawer.Title>Drawer Title</Drawer.Title>\n * <Drawer.CloseTrigger>×</Drawer.CloseTrigger>\n * </Drawer.Header>\n * <Drawer.Body>\n * Drawer content goes here\n * </Drawer.Body>\n * <Drawer.Footer>\n * <button>Cancel</button>\n * <button>Save</button>\n * </Drawer.Footer>\n * </Drawer.Content>\n * </Drawer.Root>\n * ```\n * @see https://nimbus-documentation.vercel.app/components/feedback/drawer\n */\nexport const Drawer = {\n /**\n * # Drawer.Root\n *\n * The root component that provides context and state management for the drawer.\n * Handles accessibility and keyboard interaction.\n *\n * This component must wrap all drawer parts (Trigger, Content, etc.) and provides\n * the drawer open/close state and variant styling context.\n *\n * @example\n * ```tsx\n * <Drawer.Root>\n * <Drawer.Trigger>Open Drawer</Drawer.Trigger>\n * <Drawer.Content>\n * <Drawer.Header>\n * <Drawer.Title>Drawer Title</Drawer.Title>\n * </Drawer.Header>\n * <Drawer.Body>Drawer content</Drawer.Body>\n * </Drawer.Content>\n * </Drawer.Root>\n * ```\n */\n Root: DrawerRoot,\n /**\n * # Drawer.Trigger\n *\n * The trigger element that opens the drawer when activated.\n * Provides accessibility and keyboard support.\n *\n * @example\n * ```tsx\n * <Drawer.Root>\n * <Drawer.Trigger>Open Drawer</Drawer.Trigger>\n * <Drawer.Content>...</Drawer.Content>\n * </Drawer.Root>\n * ```\n */\n Trigger: DrawerTrigger,\n /**\n * # Drawer.Content\n *\n * The main drawer content container that handles portalling, backdrop,\n * positioning, and content styling.\n *\n * This component creates the drawer overlay, positions the content, and provides\n * accessibility features like focus management and keyboard dismissal.\n *\n * @example\n * ```tsx\n * <Drawer.Root>\n * <Drawer.Trigger>Open Drawer</Drawer.Trigger>\n * <Drawer.Content size=\"md\" placement=\"center\">\n * <Drawer.Header>\n * <Drawer.Title>Title</Drawer.Title>\n * </Drawer.Header>\n * <Drawer.Body>Content</Drawer.Body>\n * <Drawer.Footer>Actions</Drawer.Footer>\n * </Drawer.Content>\n * </Drawer.Root>\n * ```\n */\n Content: DrawerContent,\n /**\n * # Drawer.Header\n *\n * The header section of the drawer content.\n * Typically contains the title and close button.\n *\n * @example\n * ```tsx\n * <Drawer.Content>\n * <Drawer.Header>\n * <Drawer.Title>Drawer Title</Drawer.Title>\n * <Drawer.CloseTrigger />\n * </Drawer.Header>\n * <Drawer.Body>...</Drawer.Body>\n * </Drawer.Content>\n * ```\n */\n Header: DrawerHeader,\n /**\n * # Drawer.Body\n *\n * The main body content section of the drawer.\n * Contains the primary drawer content and handles overflow/scrolling.\n *\n * @example\n * ```tsx\n * <Drawer.Content>\n * <Drawer.Header>...</Drawer.Header>\n * <Drawer.Body>\n * <p>This is the main content of the drawer.</p>\n * </Drawer.Body>\n * <Drawer.Footer>...</Drawer.Footer>\n * </Drawer.Content>\n * ```\n */\n Body: DrawerBody,\n /**\n * # Drawer.Footer\n *\n * The footer section of the drawer, typically containing action buttons.\n * Provides consistent spacing and alignment for drawer actions.\n *\n * @example\n * ```tsx\n * <Drawer.Content>\n * <Drawer.Header>...</Drawer.Header>\n * <Drawer.Body>...</Drawer.Body>\n * <Drawer.Footer>\n * <Button variant=\"outline\">Cancel</Button>\n * <Button>Confirm</Button>\n * </Drawer.Footer>\n * </Drawer.Content>\n * ```\n */\n Footer: DrawerFooter,\n /**\n * # Drawer.Title\n *\n * The accessible title element for the drawer.\n * Provides proper accessibility and screen reader support.\n *\n * @example\n * ```tsx\n * <Drawer.Content>\n * <Drawer.Header>\n * <Drawer.Title>Confirm Action</Drawer.Title>\n * </Drawer.Header>\n * <Drawer.Body>...</Drawer.Body>\n * </Drawer.Content>\n * ```\n */\n Title: DrawerTitle,\n /**\n * # Drawer.CloseTrigger\n *\n * A button that closes the drawer when activated.\n * Displays an IconButton with a close (X) icon by default.\n *\n * The component automatically handles the close behavior,\n * so no additional onPress handler is needed.\n *\n * @example\n * ```tsx\n * <Drawer.Root>\n * <Drawer.Trigger>Open Drawer</Drawer.Trigger>\n * <Drawer.Content>\n * <Drawer.Header>\n * <Drawer.Title>Title</Drawer.Title>\n * <Drawer.CloseTrigger aria-label=\"Close drawer\" />\n * </Drawer.Header>\n * <Drawer.Body>Content</Drawer.Body>\n * </Drawer.Content>\n * </Drawer.Root>\n * ```\n */\n CloseTrigger: DrawerCloseTrigger,\n};\n\n// Internal exports for react-docgen\nexport {\n DrawerRoot as _DrawerRoot,\n DrawerTrigger as _DrawerTrigger,\n DrawerContent as _DrawerContent,\n DrawerHeader as _DrawerHeader,\n DrawerBody as _DrawerBody,\n DrawerFooter as _DrawerFooter,\n DrawerTitle as _DrawerTitle,\n DrawerCloseTrigger as _DrawerCloseTrigger,\n};\n"],"mappings":"whBAKA,GAAM,CAAE,eAAc,gBAAA,EAAA,EAAA,wBAAA,CAAwC,CAC5D,IAAK,cACP,CAAC,EAIY,EAAiB,EAC5B,MACA,MACF,EAIa,EAAoB,EAG/B,SAAU,SAAS,EAIR,EAAyB,EAGpC,MAAO,cAAc,EAIV,EAAkB,EAG7B,MAAO,OAAO,EAIH,EAAoB,EAG/B,MAAO,SAAS,EAIL,EAAmB,EAC9B,SACA,QACF,EAIa,EAAiB,EAC5B,MACA,MACF,EAIa,EAAmB,EAC9B,SACA,QACF,EAIa,EAAkB,EAG7B,KAAM,OAAO,EAIF,EAAyB,EAGpC,MAAO,cAAc,EC/DV,GAAA,EAAA,EAAA,cAAA,CACX,IAAA,EACF,EAOa,MAAiD,CAC5D,IAAM,GAAA,EAAA,EAAA,WAAA,CAAqB,CAAa,EACxC,GAAI,CAAC,EACH,MAAU,MAAM,kDAAkD,EAEpE,OAAO,CACT,EAKa,GAAkB,CAC7B,WACA,YAKO,EAAA,EAAA,IAAA,CAAC,EAAD,CAAsB,QAAQ,UAAwB,CAAA,ECjClD,EAAc,GAA2B,CAGpD,GAAM,CAAC,IAAA,EAAA,EAAA,cAAA,CAFsB,CAAE,OAAQ,EAAA,CAAiB,CAElC,CAAA,CAAO,kBAAkB,CAAK,EAE9C,CAAE,WAAU,SAAQ,eAAc,cAAc,IAAU,EAE1D,GAAU,EAAA,EAAA,IAAA,CAAC,EAAD,CAAgB,GAAI,EAAc,UAAyB,CAAA,EAIrE,EAAmB,EAAA,QAAM,SAAS,QAAQ,CAAQ,CAAC,CAAC,K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aAAc,qBIoBL,CAAiB,EACvC,GAAI,EAAA,EAAkB,CHrBT,aAAc,gBGqBL,CAAiB,EACvC,QAAS,EAAA,EAAkB,CFtBd,aAAc,iBEsBA,CAAiB,EAC5C,QAAS,EAAA,EAAkB,CDvBd,aAAc,eCuBA,CAAiB,CAC9C,EClBW,EAAsB,GAAmC,CACpE,IAAM,EAAM,EAAA,EAA4B,CAAqB,EACvD,CAAE,IAAK,EAAc,aAAc,EAAW,GAAG,GAAc,EAErE,OACE,EAAA,EAAA,IAAA,CAAC,EAAD,CAAA,UACE,EAAA,EAAA,IAAA,CAAC,EAAA,EAAD,CACE,IAAK,EACL,KAAK,QACL,KAAK,KACL,QAAQ,QACR,aAAY,GAAa,EAAI,OAAO,cAAc,EAClD,GAAI,YAEJ,EAAA,EAAA,IAAA,CAAC,EAAA,MAAD,CAAQ,CAAA,CACE,CAAA,CACU,CAAA,CAE5B,EAEA,EAAmB,YAAc,sBCYjC,IAAa,EAAS,CAuBpB,KAAM,EAeN,QAAS,EAwBT,QAAS,EAkBT,OAAQ,EAkBR,KAAM,EAmBN,OAAQ,EAiBR,MAAO,EAwBP,aAAc,CAChB"}
|
|
1
|
+
{"version":3,"file":"drawer-Cj7eGaLQ.cjs.js","names":[],"sources":["../../src/components/drawer/drawer.slots.tsx","../../src/components/drawer/components/drawer.context.tsx","../../src/components/drawer/components/drawer.root.tsx","../../src/components/drawer/components/drawer.trigger.tsx","../../src/components/drawer/components/drawer.content.tsx","../../src/components/drawer/components/drawer.header.tsx","../../src/components/drawer/components/drawer.body.tsx","../../src/components/drawer/components/drawer.footer.tsx","../../src/components/drawer/components/drawer.title.tsx","../../src/components/drawer/intl/en.ts","../../src/components/drawer/intl/de.ts","../../src/components/drawer/intl/es.ts","../../src/components/drawer/intl/fr-FR.ts","../../src/components/drawer/intl/pt-BR.ts","../../src/components/drawer/drawer.messages.ts","../../src/components/drawer/components/drawer.close-trigger.tsx","../../src/components/drawer/drawer.tsx"],"sourcesContent":["import {\n createSlotRecipeContext,\n type HTMLChakraProps,\n} from \"@chakra-ui/react/styled-system\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"nimbusDrawer\",\n});\n\n// Root slot - provides recipe context + config to all child components\nexport type DrawerRootSlotProps = HTMLChakraProps<\"div\">;\nexport const DrawerRootSlot = withProvider<HTMLDivElement, DrawerRootSlotProps>(\n \"div\",\n \"root\"\n);\n\n// Trigger slot - button that opens the drawer\nexport type DrawerTriggerSlotProps = HTMLChakraProps<\"button\">;\nexport const DrawerTriggerSlot = withContext<\n HTMLButtonElement,\n DrawerTriggerSlotProps\n>(\"button\", \"trigger\");\n\n// Backdrop slot - overlay displayed behind the drawer\nexport type DrawerModalOverlaySlotProps = HTMLChakraProps<\"div\">;\nexport const DrawerModalOverlaySlot = withContext<\n HTMLDivElement,\n DrawerModalOverlaySlotProps\n>(\"div\", \"modalOverlay\");\n\n// modal slot - positions the drawer content\nexport type DrawerModalSlotProps = HTMLChakraProps<\"div\">;\nexport const DrawerModalSlot = withContext<\n HTMLDivElement,\n DrawerModalSlotProps\n>(\"div\", \"modal\");\n\n// Content slot - main drawer container\nexport type DrawerContentSlotProps = HTMLChakraProps<\"div\">;\nexport const DrawerContentSlot = withContext<\n HTMLDivElement,\n DrawerContentSlotProps\n>(\"div\", \"content\");\n\n// Header slot - drawer header section\nexport type DrawerHeaderSlotProps = HTMLChakraProps<\"header\">;\nexport const DrawerHeaderSlot = withContext<HTMLElement, DrawerHeaderSlotProps>(\n \"header\",\n \"header\"\n);\n\n// Body slot - drawer body content\nexport type DrawerBodySlotProps = HTMLChakraProps<\"div\">;\nexport const DrawerBodySlot = withContext<HTMLDivElement, DrawerBodySlotProps>(\n \"div\",\n \"body\"\n);\n\n// Footer slot - drawer footer section with actions\nexport type DrawerFooterSlotProps = HTMLChakraProps<\"footer\">;\nexport const DrawerFooterSlot = withContext<HTMLElement, DrawerFooterSlotProps>(\n \"footer\",\n \"footer\"\n);\n\n// Title slot - accessible drawer title\nexport type DrawerTitleSlotProps = HTMLChakraProps<\"h2\">;\nexport const DrawerTitleSlot = withContext<\n HTMLHeadingElement,\n DrawerTitleSlotProps\n>(\"h2\", \"title\");\n\n// Close trigger slot - div container for positioning close button\nexport type DrawerCloseTriggerSlotProps = HTMLChakraProps<\"div\">;\nexport const DrawerCloseTriggerSlot = withContext<\n HTMLDivElement,\n DrawerCloseTriggerSlotProps\n>(\"div\", \"closeTrigger\");\n","import { createContext, useContext } from \"react\";\nimport type { DrawerRootProps } from \"../drawer.types\";\n\n/**\n * Context value containing drawer configuration passed from Root to child components\n */\nexport type DrawerContextValue = DrawerRootProps & {\n /**\n * Internal flag indicating whether the drawer has a Drawer.Trigger component.\n * Used by DrawerContent to determine whether DialogTrigger is managing state.\n */\n hasDrawerTrigger?: boolean;\n};\n\nexport const DrawerContext = createContext<DrawerContextValue | undefined>(\n undefined\n);\n\n/**\n * Hook to access drawer configuration from DrawerContext\n * @returns Drawer configuration from context\n * @throws Error if used outside of Drawer.Root\n */\nexport const useDrawerRootContext = (): DrawerContextValue => {\n const context = useContext(DrawerContext);\n if (!context) {\n throw new Error(\"useDrawerContext must be used within Drawer.Root\");\n }\n return context;\n};\n\n/**\n * Provider component that passes drawer configuration down to child components\n */\nexport const DrawerProvider = ({\n children,\n value,\n}: {\n children: React.ReactNode;\n value: DrawerContextValue;\n}) => {\n return <DrawerContext value={value}>{children}</DrawerContext>;\n};\n","import React from \"react\";\nimport { DialogTrigger as RaDialogTrigger } from \"react-aria-components\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { DrawerRootSlot } from \"../drawer.slots\";\nimport type { DrawerRootProps } from \"../drawer.types\";\nimport { DrawerProvider } from \"./drawer.context\";\nimport { drawerSlotRecipe } from \"../drawer.recipe\";\n\nexport const DrawerRoot = (props: DrawerRootProps) => {\n const recipe = useSlotRecipe({ recipe: drawerSlotRecipe });\n // Extract recipe props\n const [recipeProps] = recipe.splitVariantProps(props);\n // Extract props that are usable on RaDialogTrigger\n const { children, isOpen, onOpenChange, defaultOpen = false } = props;\n\n const content = <DrawerRootSlot {...recipeProps}>{children}</DrawerRootSlot>;\n\n // Check if any child is a Drawer.Trigger component\n // React Aria's DialogTrigger needs a pressable child, so we only use it when there's a trigger\n const hasDrawerTrigger = React.Children.toArray(children).some((child) => {\n if (React.isValidElement(child) && typeof child.type === \"function\") {\n const displayName = (\n child.type as React.ComponentType & { displayName?: string }\n )?.displayName;\n return (\n displayName === \"DrawerTrigger\" || displayName === \"Drawer.Trigger\"\n );\n }\n return false;\n });\n\n // Share all props (config + variant props) with the Drawer subcomponents\n // Also pass hasDrawerTrigger so DrawerContent knows whether to manage its own state\n return (\n <DrawerProvider value={{ ...props, hasDrawerTrigger }}>\n {hasDrawerTrigger ? (\n // When there's a Drawer.Trigger, use DialogTrigger for React Aria integration\n <RaDialogTrigger\n isOpen={isOpen}\n onOpenChange={onOpenChange}\n defaultOpen={defaultOpen}\n >\n {content}\n </RaDialogTrigger>\n ) : (\n // When no Drawer.Trigger, skip DialogTrigger to avoid the warning\n content\n )}\n </DrawerProvider>\n );\n};\n\nDrawerRoot.displayName = \"Drawer.Root\";\n","import { Button as RaButton } from \"react-aria-components\";\nimport { DrawerTriggerSlot } from \"../drawer.slots\";\nimport type { DrawerTriggerProps } from \"../drawer.types\";\nimport { extractStyleProps } from \"@/utils\";\nimport { chakra } from \"@chakra-ui/react/styled-system\";\n\n/**\n * Drawer.Trigger - The trigger element that opens the drawer when activated\n *\n * @supportsStyleProps\n */\nexport const DrawerTrigger = ({\n ref: forwardedRef,\n children,\n asChild,\n ...props\n}: DrawerTriggerProps) => {\n // If asChild is true, wrap children directly in RaButton with asChild\n if (asChild) {\n return (\n <chakra.button ref={forwardedRef} asChild {...props}>\n {children}\n </chakra.button>\n );\n }\n\n const [styleProps, restProps] = extractStyleProps(props);\n\n // Otherwise, wrap with both DrawerTriggerSlot and RaButton\n // Only pass React Aria compatible props to avoid type conflicts\n return (\n <DrawerTriggerSlot {...styleProps} asChild>\n <RaButton ref={forwardedRef} {...restProps}>\n {children}\n </RaButton>\n </DrawerTriggerSlot>\n );\n};\n\nDrawerTrigger.displayName = \"Drawer.Trigger\";\n","import {\n Modal as RaModal,\n ModalOverlay as RaModalOverlay,\n Dialog as RaDialog,\n} from \"react-aria-components\";\nimport {\n DrawerModalOverlaySlot,\n DrawerModalSlot,\n DrawerContentSlot,\n} from \"../drawer.slots\";\nimport type { DrawerContentProps } from \"../drawer.types\";\nimport { extractStyleProps } from \"@/utils\";\nimport { useDrawerRootContext } from \"./drawer.context\";\n\n/**\n * Drawer.Content - The main drawer content container\n *\n * @supportsStyleProps\n */\nexport const DrawerContent = (props: DrawerContentProps) => {\n const { ref: forwardedRef, children, ...restProps } = props;\n\n // Get configuration from context\n const {\n hasDrawerTrigger,\n isDismissable = true, // Default to true so clicking outside closes the drawer\n isKeyboardDismissDisabled,\n shouldCloseOnInteractOutside,\n isOpen,\n onOpenChange,\n defaultOpen,\n } = useDrawerRootContext();\n\n // When there's a Drawer.Trigger, DialogTrigger manages state via React Context\n // When there's NO Drawer.Trigger, ModalOverlay must manage its own state\n const modalProps = hasDrawerTrigger\n ? {\n // With trigger: Only pass dismissal props, state is managed by DialogTrigger\n isDismissable,\n isKeyboardDismissDisabled,\n shouldCloseOnInteractOutside,\n }\n : {\n // Without trigger: Pass state management props to ModalOverlay\n isDismissable,\n isKeyboardDismissDisabled,\n shouldCloseOnInteractOutside,\n isOpen,\n onOpenChange,\n defaultOpen,\n };\n\n const [styleProps, functionalProps] = extractStyleProps(restProps);\n\n return (\n <DrawerModalOverlaySlot asChild>\n <RaModalOverlay {...modalProps}>\n <DrawerModalSlot asChild>\n <RaModal>\n <DrawerContentSlot asChild {...styleProps}>\n <RaDialog ref={forwardedRef} {...functionalProps}>\n {children}\n </RaDialog>\n </DrawerContentSlot>\n </RaModal>\n </DrawerModalSlot>\n </RaModalOverlay>\n </DrawerModalOverlaySlot>\n );\n};\n\nDrawerContent.displayName = \"Drawer.Content\";\n","import { DrawerHeaderSlot } from \"../drawer.slots\";\nimport type { DrawerHeaderProps } from \"../drawer.types\";\n\n/**\n * Drawer.Header - The header section of the drawer\n *\n * @supportsStyleProps\n */\nexport const DrawerHeader = (props: DrawerHeaderProps) => {\n const { ref: forwardedRef, children, ...restProps } = props;\n\n return (\n <DrawerHeaderSlot ref={forwardedRef} {...restProps}>\n {children}\n </DrawerHeaderSlot>\n );\n};\n\nDrawerHeader.displayName = \"Drawer.Header\";\n","import { DrawerBodySlot } from \"../drawer.slots\";\nimport type { DrawerBodyProps } from \"../drawer.types\";\n\n/**\n * Drawer.Body - The main body content section of the drawer\n *\n * @supportsStyleProps\n */\nexport const DrawerBody = (props: DrawerBodyProps) => {\n const { ref: forwardedRef, children, ...restProps } = props;\n\n const defaultProps = {\n /**\n * Set tabIndex to 0 to allow the body to receive focus,\n * effectively enabling scrolling via keyboard arrow keys.\n */\n tabIndex: 0,\n };\n\n return (\n <DrawerBodySlot ref={forwardedRef} {...defaultProps} {...restProps}>\n {children}\n </DrawerBodySlot>\n );\n};\n\nDrawerBody.displayName = \"Drawer.Body\";\n","import { DrawerFooterSlot } from \"../drawer.slots\";\nimport type { DrawerFooterProps } from \"../drawer.types\";\n\n/**\n * Drawer.Footer - The footer section of the drawer\n *\n * @supportsStyleProps\n */\nexport const DrawerFooter = (props: DrawerFooterProps) => {\n const { ref: forwardedRef, children, ...restProps } = props;\n\n return (\n <DrawerFooterSlot ref={forwardedRef} {...restProps}>\n {children}\n </DrawerFooterSlot>\n );\n};\n\nDrawerFooter.displayName = \"Drawer.Footer\";\n","import { DrawerTitleSlot } from \"../drawer.slots\";\nimport type { DrawerTitleProps } from \"../drawer.types\";\nimport { Heading } from \"@/components\";\n\n/**\n * Drawer.Title - The accessible title element for the drawer\n *\n * @supportsStyleProps\n */\nexport const DrawerTitle = (props: DrawerTitleProps) => {\n const { ref: forwardedRef, children, ...restProps } = props;\n\n return (\n <DrawerTitleSlot asChild {...restProps}>\n <Heading ref={forwardedRef} slot=\"title\" as=\"h2\" textStyle=\"lg\">\n {children}\n </Heading>\n </DrawerTitleSlot>\n );\n};\n\nDrawerTitle.displayName = \"Drawer.Title\";\n","/**\n * Pre-compiled en messages for Drawer\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default { closeTrigger: `Close drawer` };\n","/**\n * Pre-compiled de messages for Drawer\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default { closeTrigger: `Schublade schließen` };\n","/**\n * Pre-compiled es messages for Drawer\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default { closeTrigger: `Cerrar bandeja` };\n","/**\n * Pre-compiled fr-FR messages for Drawer\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default { closeTrigger: `Fermer le volet` };\n","/**\n * Pre-compiled pt-BR messages for Drawer\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default { closeTrigger: `Fechar gaveta` };\n","/**\n * Pre-compiled localized messages for Drawer component\n *\n * Generated by scripts/generate-dictionaries.ts\n * DO NOT EDIT MANUALLY\n *\n * @see https://react-spectrum.adobe.com/react-aria/internationalization.html\n */\n\nimport {\n type LocalizedString,\n type LocalizedStrings,\n} from \"@internationalized/string\";\nimport { normalizeMessages } from \"../../utils/normalize-messages\";\n\n// Pre-compiled message functions\nimport drawerMessages_en from \"./intl/en\";\nimport drawerMessages_de from \"./intl/de\";\nimport drawerMessages_es from \"./intl/es\";\nimport drawerMessages_fr from \"./intl/fr-FR\";\nimport drawerMessages_pt from \"./intl/pt-BR\";\n\n// Raw LocalizedStrings object for use with useLocalizedStringFormatter hook\nexport const drawerMessagesStrings: LocalizedStrings<string, LocalizedString> =\n {\n en: normalizeMessages(drawerMessages_en),\n de: normalizeMessages(drawerMessages_de),\n es: normalizeMessages(drawerMessages_es),\n \"fr-FR\": normalizeMessages(drawerMessages_fr),\n \"pt-BR\": normalizeMessages(drawerMessages_pt),\n } as LocalizedStrings<string, LocalizedString>;\n\n/**\n * Available message keys for Drawer component\n */\nexport type DrawerMessageKey = \"closeTrigger\";\n","import { Close } from \"@commercetools/nimbus-icons\";\nimport { DrawerCloseTriggerSlot } from \"../drawer.slots\";\nimport type { DrawerCloseTriggerProps } from \"../drawer.types\";\nimport { IconButton } from \"@/components\";\nimport { useLocalizedStringFormatter } from \"@/hooks\";\nimport { drawerMessagesStrings } from \"../drawer.messages\";\n\n/**\n * Drawer.CloseTrigger - A button that closes the drawer when activated\n *\n * @supportsStyleProps\n */\nexport const DrawerCloseTrigger = (props: DrawerCloseTriggerProps) => {\n const msg = useLocalizedStringFormatter(drawerMessagesStrings);\n const { ref: forwardedRef, \"aria-label\": ariaLabel, ...restProps } = props;\n\n return (\n <DrawerCloseTriggerSlot>\n <IconButton\n ref={forwardedRef}\n slot=\"close\"\n size=\"xs\"\n variant=\"ghost\"\n aria-label={ariaLabel || msg.format(\"closeTrigger\")}\n {...restProps}\n >\n <Close />\n </IconButton>\n </DrawerCloseTriggerSlot>\n );\n};\n\nDrawerCloseTrigger.displayName = \"Drawer.CloseTrigger\";\n","import { DrawerRoot } from \"./components/drawer.root\";\nimport { DrawerTrigger } from \"./components/drawer.trigger\";\nimport { DrawerContent } from \"./components/drawer.content\";\nimport { DrawerHeader } from \"./components/drawer.header\";\nimport { DrawerBody } from \"./components/drawer.body\";\nimport { DrawerFooter } from \"./components/drawer.footer\";\nimport { DrawerTitle } from \"./components/drawer.title\";\nimport { DrawerCloseTrigger } from \"./components/drawer.close-trigger\";\n\n/**\n * Drawer\n * ============================================================\n * A foundational drawer component for overlays that require user attention.\n * Built for accessibility and WCAG 2.1 AA compliance.\n *\n * Features:\n * - Controlled and uncontrolled modes\n * - Customizable placement, size, and animations\n * - Focus management and keyboard navigation\n * - Click-outside and Escape key dismissal\n * - Portal rendering support\n * - Backdrop overlay with animations\n *\n * @example\n * ```tsx\n * <Drawer.Root>\n * <Drawer.Trigger>Open Drawer</Drawer.Trigger>\n * <Drawer.Content size=\"md\" placement=\"center\">\n * <Drawer.Header>\n * <Drawer.Title>Drawer Title</Drawer.Title>\n * <Drawer.CloseTrigger>×</Drawer.CloseTrigger>\n * </Drawer.Header>\n * <Drawer.Body>\n * Drawer content goes here\n * </Drawer.Body>\n * <Drawer.Footer>\n * <button>Cancel</button>\n * <button>Save</button>\n * </Drawer.Footer>\n * </Drawer.Content>\n * </Drawer.Root>\n * ```\n * @see https://nimbus-documentation.vercel.app/components/feedback/drawer\n */\nexport const Drawer = {\n /**\n * # Drawer.Root\n *\n * The root component that provides context and state management for the drawer.\n * Handles accessibility and keyboard interaction.\n *\n * This component must wrap all drawer parts (Trigger, Content, etc.) and provides\n * the drawer open/close state and variant styling context.\n *\n * @example\n * ```tsx\n * <Drawer.Root>\n * <Drawer.Trigger>Open Drawer</Drawer.Trigger>\n * <Drawer.Content>\n * <Drawer.Header>\n * <Drawer.Title>Drawer Title</Drawer.Title>\n * </Drawer.Header>\n * <Drawer.Body>Drawer content</Drawer.Body>\n * </Drawer.Content>\n * </Drawer.Root>\n * ```\n */\n Root: DrawerRoot,\n /**\n * # Drawer.Trigger\n *\n * The trigger element that opens the drawer when activated.\n * Provides accessibility and keyboard support.\n *\n * @example\n * ```tsx\n * <Drawer.Root>\n * <Drawer.Trigger>Open Drawer</Drawer.Trigger>\n * <Drawer.Content>...</Drawer.Content>\n * </Drawer.Root>\n * ```\n */\n Trigger: DrawerTrigger,\n /**\n * # Drawer.Content\n *\n * The main drawer content container that handles portalling, backdrop,\n * positioning, and content styling.\n *\n * This component creates the drawer overlay, positions the content, and provides\n * accessibility features like focus management and keyboard dismissal.\n *\n * @example\n * ```tsx\n * <Drawer.Root>\n * <Drawer.Trigger>Open Drawer</Drawer.Trigger>\n * <Drawer.Content size=\"md\" placement=\"center\">\n * <Drawer.Header>\n * <Drawer.Title>Title</Drawer.Title>\n * </Drawer.Header>\n * <Drawer.Body>Content</Drawer.Body>\n * <Drawer.Footer>Actions</Drawer.Footer>\n * </Drawer.Content>\n * </Drawer.Root>\n * ```\n */\n Content: DrawerContent,\n /**\n * # Drawer.Header\n *\n * The header section of the drawer content.\n * Typically contains the title and close button.\n *\n * @example\n * ```tsx\n * <Drawer.Content>\n * <Drawer.Header>\n * <Drawer.Title>Drawer Title</Drawer.Title>\n * <Drawer.CloseTrigger />\n * </Drawer.Header>\n * <Drawer.Body>...</Drawer.Body>\n * </Drawer.Content>\n * ```\n */\n Header: DrawerHeader,\n /**\n * # Drawer.Body\n *\n * The main body content section of the drawer.\n * Contains the primary drawer content and handles overflow/scrolling.\n *\n * @example\n * ```tsx\n * <Drawer.Content>\n * <Drawer.Header>...</Drawer.Header>\n * <Drawer.Body>\n * <p>This is the main content of the drawer.</p>\n * </Drawer.Body>\n * <Drawer.Footer>...</Drawer.Footer>\n * </Drawer.Content>\n * ```\n */\n Body: DrawerBody,\n /**\n * # Drawer.Footer\n *\n * The footer section of the drawer, typically containing action buttons.\n * Provides consistent spacing and alignment for drawer actions.\n *\n * @example\n * ```tsx\n * <Drawer.Content>\n * <Drawer.Header>...</Drawer.Header>\n * <Drawer.Body>...</Drawer.Body>\n * <Drawer.Footer>\n * <Button variant=\"outline\">Cancel</Button>\n * <Button>Confirm</Button>\n * </Drawer.Footer>\n * </Drawer.Content>\n * ```\n */\n Footer: DrawerFooter,\n /**\n * # Drawer.Title\n *\n * The accessible title element for the drawer.\n * Provides proper accessibility and screen reader support.\n *\n * @example\n * ```tsx\n * <Drawer.Content>\n * <Drawer.Header>\n * <Drawer.Title>Confirm Action</Drawer.Title>\n * </Drawer.Header>\n * <Drawer.Body>...</Drawer.Body>\n * </Drawer.Content>\n * ```\n */\n Title: DrawerTitle,\n /**\n * # Drawer.CloseTrigger\n *\n * A button that closes the drawer when activated.\n * Displays an IconButton with a close (X) icon by default.\n *\n * The component automatically handles the close behavior,\n * so no additional onPress handler is needed.\n *\n * @example\n * ```tsx\n * <Drawer.Root>\n * <Drawer.Trigger>Open Drawer</Drawer.Trigger>\n * <Drawer.Content>\n * <Drawer.Header>\n * <Drawer.Title>Title</Drawer.Title>\n * <Drawer.CloseTrigger aria-label=\"Close drawer\" />\n * </Drawer.Header>\n * <Drawer.Body>Content</Drawer.Body>\n * </Drawer.Content>\n * </Drawer.Root>\n * ```\n */\n CloseTrigger: DrawerCloseTrigger,\n};\n\n// Internal exports for react-docgen\nexport {\n DrawerRoot as _DrawerRoot,\n DrawerTrigger as _DrawerTrigger,\n DrawerContent as _DrawerContent,\n DrawerHeader as _DrawerHeader,\n DrawerBody as _DrawerBody,\n DrawerFooter as _DrawerFooter,\n DrawerTitle as _DrawerTitle,\n DrawerCloseTrigger as _DrawerCloseTrigger,\n};\n"],"mappings":"whBAKA,GAAM,CAAE,eAAc,gBAAA,EAAA,EAAA,wBAAA,CAAwC,CAC5D,IAAK,cACP,CAAC,EAIY,EAAiB,EAC5B,MACA,MACF,EAIa,EAAoB,EAG/B,SAAU,SAAS,EAIR,EAAyB,EAGpC,MAAO,cAAc,EAIV,EAAkB,EAG7B,MAAO,OAAO,EAIH,EAAoB,EAG/B,MAAO,SAAS,EAIL,EAAmB,EAC9B,SACA,QACF,EAIa,EAAiB,EAC5B,MACA,MACF,EAIa,EAAmB,EAC9B,SACA,QACF,EAIa,EAAkB,EAG7B,KAAM,OAAO,EAIF,EAAyB,EAGpC,MAAO,cAAc,EC/DV,GAAA,EAAA,EAAA,cAAA,CACX,IAAA,EACF,EAOa,MAAiD,CAC5D,IAAM,GAAA,EAAA,EAAA,WAAA,CAAqB,CAAa,EACxC,GAAI,CAAC,EACH,MAAU,MAAM,kDAAkD,EAEpE,OAAO,CACT,EAKa,GAAkB,CAC7B,WACA,YAKO,EAAA,EAAA,IAAA,CAAC,EAAD,CAAsB,QAAQ,UAAwB,CAAA,ECjClD,EAAc,GAA2B,CAGpD,GAAM,CAAC,IAAA,EAAA,EAAA,cAAA,CAFsB,CAAE,OAAQ,EAAA,CAAiB,CAElC,CAAA,CAAO,k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AK,EAAc,KAAK,QAAQ,GAAG,KAAK,UAAU,KACxD,UACM,CAAA,CACM,CAAA,CAErB,EAEA,EAAY,YAAc,eME1B,IAAa,EACX,CACE,GAAI,EAAA,EAAkB,CLnBT,aAAc,cKmBL,CAAiB,EACvC,GAAI,EAAA,EAAkB,CJpBT,aAAc,qBIoBL,CAAiB,EACvC,GAAI,EAAA,EAAkB,CHrBT,aAAc,gBGqBL,CAAiB,EACvC,QAAS,EAAA,EAAkB,CFtBd,aAAc,iBEsBA,CAAiB,EAC5C,QAAS,EAAA,EAAkB,CDvBd,aAAc,eCuBA,CAAiB,CAC9C,EClBW,EAAsB,GAAmC,CACpE,IAAM,EAAM,EAAA,EAA4B,CAAqB,EACvD,CAAE,IAAK,EAAc,aAAc,EAAW,GAAG,GAAc,EAErE,OACE,EAAA,EAAA,IAAA,CAAC,EAAD,CAAA,UACE,EAAA,EAAA,IAAA,CAAC,EAAA,EAAD,CACE,IAAK,EACL,KAAK,QACL,KAAK,KACL,QAAQ,QACR,aAAY,GAAa,EAAI,OAAO,cAAc,EAClD,GAAI,YAEJ,EAAA,EAAA,IAAA,CAAC,EAAA,MAAD,CAAQ,CAAA,CACE,CAAA,CACU,CAAA,CAE5B,EAEA,EAAmB,YAAc,sBCYjC,IAAa,EAAS,CAuBpB,KAAM,EAeN,QAAS,EAwBT,QAAS,EAkBT,OAAQ,EAkBR,KAAM,EAmBN,OAAQ,EAiBR,MAAO,EAwBP,aAAc,CAChB"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as e, t } from "./Dialog-
|
|
2
|
-
import { n, t as r } from "./Modal-
|
|
3
|
-
import { n as i } from "./Button-
|
|
4
|
-
import { t as a } from "./icon-button-
|
|
1
|
+
import { n as e, t } from "./Dialog-Dy3vyR1i.esm.js";
|
|
2
|
+
import { n, t as r } from "./Modal-B0a1NTkk.esm.js";
|
|
3
|
+
import { n as i } from "./Button-B5g2BgY8.esm.js";
|
|
4
|
+
import { t as a } from "./icon-button-CyhrlrIv.esm.js";
|
|
5
5
|
import { n as o, t as s } from "./normalize-messages-B_f-0I5n.esm.js";
|
|
6
6
|
import { t as c } from "./heading-DA_lAqus.esm.js";
|
|
7
|
-
import {
|
|
8
|
-
import { t as u } from "./extract-style-props-
|
|
7
|
+
import { m as l } from "./theme-CFqa_6UM.esm.js";
|
|
8
|
+
import { t as u } from "./extract-style-props-D519tVOc.esm.js";
|
|
9
9
|
import d, { createContext as f, useContext as p } from "react";
|
|
10
10
|
import { jsx as m } from "react/jsx-runtime";
|
|
11
11
|
import { Close as h } from "@commercetools/nimbus-icons";
|
|
@@ -186,4 +186,4 @@ var U = {
|
|
|
186
186
|
//#endregion
|
|
187
187
|
export { R as a, F as c, z as i, P as l, H as n, L as o, B as r, I as s, U as t };
|
|
188
188
|
|
|
189
|
-
//# sourceMappingURL=drawer-
|
|
189
|
+
//# sourceMappingURL=drawer-Dsnrsu2k.esm.js.map
|