@commercetools/nimbus 0.0.0-canary-20250828113330 → 0.0.0-canary-20250828120149
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-DQ_WkLNH.cjs.js → Button-MmwT6xpw.cjs.js} +2 -2
- package/dist/chunks/{Button-DQ_WkLNH.cjs.js.map → Button-MmwT6xpw.cjs.js.map} +1 -1
- package/dist/chunks/{Button-C-yUWwZg.es.js → Button-wUEF0Zow.es.js} +7 -7
- package/dist/chunks/{Button-C-yUWwZg.es.js.map → Button-wUEF0Zow.es.js.map} +1 -1
- package/dist/chunks/{Collection-DFZhstai.es.js → Collection-CDJ_uFKV.es.js} +366 -337
- package/dist/chunks/Collection-CDJ_uFKV.es.js.map +1 -0
- package/dist/chunks/Collection-D_q1hY13.cjs.js +18 -0
- package/dist/chunks/Collection-D_q1hY13.cjs.js.map +1 -0
- package/dist/chunks/DateField-BRw4EOOA.cjs.js +2 -0
- package/dist/chunks/{DateField-D-KvZd-Q.cjs.js.map → DateField-BRw4EOOA.cjs.js.map} +1 -1
- package/dist/chunks/{DateField-m1BUGo8i.es.js → DateField-Cg2n5ili.es.js} +40 -39
- package/dist/chunks/{DateField-m1BUGo8i.es.js.map → DateField-Cg2n5ili.es.js.map} +1 -1
- package/dist/chunks/{DatePicker-5cKqpUC9.cjs.js → DatePicker-CqbnVxIC.cjs.js} +2 -2
- package/dist/chunks/{DatePicker-5cKqpUC9.cjs.js.map → DatePicker-CqbnVxIC.cjs.js.map} +1 -1
- package/dist/chunks/{DatePicker-8Z6Kf838.es.js → DatePicker-DVtAIdlj.es.js} +17 -17
- package/dist/chunks/{DatePicker-8Z6Kf838.es.js.map → DatePicker-DVtAIdlj.es.js.map} +1 -1
- package/dist/chunks/{Dialog-C7IjW1jR.es.js → Dialog-BTicQJXP.es.js} +431 -430
- package/dist/chunks/{Dialog-C7IjW1jR.es.js.map → Dialog-BTicQJXP.es.js.map} +1 -1
- package/dist/chunks/Dialog-ljK75Ezb.cjs.js +2 -0
- package/dist/chunks/{Dialog-Cbq66gyc.cjs.js.map → Dialog-ljK75Ezb.cjs.js.map} +1 -1
- package/dist/chunks/{DragAndDrop-cOfUfFj8.cjs.js → DragAndDrop-QpvgGL4C.cjs.js} +2 -2
- package/dist/chunks/{DragAndDrop-cOfUfFj8.cjs.js.map → DragAndDrop-QpvgGL4C.cjs.js.map} +1 -1
- package/dist/chunks/{DragAndDrop-ChYb3tCX.es.js → DragAndDrop-xhP_Ei7N.es.js} +3 -3
- package/dist/chunks/{DragAndDrop-ChYb3tCX.es.js.map → DragAndDrop-xhP_Ei7N.es.js.map} +1 -1
- package/dist/chunks/FocusScope-B5Aod9bV.es.js +696 -0
- package/dist/chunks/FocusScope-B5Aod9bV.es.js.map +1 -0
- package/dist/chunks/FocusScope-sU1ErK5w.cjs.js +2 -0
- package/dist/chunks/FocusScope-sU1ErK5w.cjs.js.map +1 -0
- package/dist/chunks/{Group-kT8-3NGT.es.js → Group-CU1nz0u2.es.js} +5 -5
- package/dist/chunks/{Group-kT8-3NGT.es.js.map → Group-CU1nz0u2.es.js.map} +1 -1
- package/dist/chunks/{Group-KVM7Xnxu.cjs.js → Group-DxD-SZdK.cjs.js} +2 -2
- package/dist/chunks/{Group-KVM7Xnxu.cjs.js.map → Group-DxD-SZdK.cjs.js.map} +1 -1
- package/dist/chunks/Heading-BorDTn_V.cjs.js +2 -0
- package/dist/chunks/{Heading-CQJ-3eon.cjs.js.map → Heading-BorDTn_V.cjs.js.map} +1 -1
- package/dist/chunks/{Heading-DMBCkz0y.es.js → Heading-CXKMd84h.es.js} +27 -26
- package/dist/chunks/{Heading-DMBCkz0y.es.js.map → Heading-CXKMd84h.es.js.map} +1 -1
- package/dist/chunks/{Input-C4REHQYD.es.js → Input-B7Cnwv00.es.js} +5 -5
- package/dist/chunks/{Input-C4REHQYD.es.js.map → Input-B7Cnwv00.es.js.map} +1 -1
- package/dist/chunks/{Input-93z9WR_a.cjs.js → Input-DK49tQti.cjs.js} +2 -2
- package/dist/chunks/{Input-93z9WR_a.cjs.js.map → Input-DK49tQti.cjs.js.map} +1 -1
- package/dist/chunks/{Label-B2YyCdLl.es.js → Label-CXgc_ps9.es.js} +2 -2
- package/dist/chunks/{Label-B2YyCdLl.es.js.map → Label-CXgc_ps9.es.js.map} +1 -1
- package/dist/chunks/{Label-BgrYyYXn.cjs.js → Label-DSG_MTc3.cjs.js} +2 -2
- package/dist/chunks/{Label-BgrYyYXn.cjs.js.map → Label-DSG_MTc3.cjs.js.map} +1 -1
- package/dist/chunks/{ListBox-B8Tz7EWS.es.js → ListBox-CGw4-iNr.es.js} +14 -14
- package/dist/chunks/{ListBox-B8Tz7EWS.es.js.map → ListBox-CGw4-iNr.es.js.map} +1 -1
- package/dist/chunks/{ListBox-CzZFXtHY.cjs.js → ListBox-DETV_5At.cjs.js} +2 -2
- package/dist/chunks/{ListBox-CzZFXtHY.cjs.js.map → ListBox-DETV_5At.cjs.js.map} +1 -1
- package/dist/chunks/{OverlayArrow-C5Ymp9MC.cjs.js → OverlayArrow-C_SkpQbf.cjs.js} +2 -2
- package/dist/chunks/{OverlayArrow-C5Ymp9MC.cjs.js.map → OverlayArrow-C_SkpQbf.cjs.js.map} +1 -1
- package/dist/chunks/{OverlayArrow-ERS8ZqL3.es.js → OverlayArrow-DbPNbnKm.es.js} +3 -3
- package/dist/chunks/{OverlayArrow-ERS8ZqL3.es.js.map → OverlayArrow-DbPNbnKm.es.js.map} +1 -1
- package/dist/chunks/{ProgressBar-BNPexoD9.cjs.js → ProgressBar-Bm7vfOk4.cjs.js} +2 -2
- package/dist/chunks/{ProgressBar-BNPexoD9.cjs.js.map → ProgressBar-Bm7vfOk4.cjs.js.map} +1 -1
- package/dist/chunks/{ProgressBar-BnGsEC_2.es.js → ProgressBar-DNmmtJsB.es.js} +5 -5
- package/dist/chunks/{ProgressBar-BnGsEC_2.es.js.map → ProgressBar-DNmmtJsB.es.js.map} +1 -1
- package/dist/chunks/{Separator-BUmWfQvi.es.js → Separator-Ahj2J22_.es.js} +26 -25
- package/dist/chunks/{Separator-BUmWfQvi.es.js.map → Separator-Ahj2J22_.es.js.map} +1 -1
- package/dist/chunks/Separator-CinA2hg4.cjs.js +2 -0
- package/dist/chunks/{Separator-DBLZ41YB.cjs.js.map → Separator-CinA2hg4.cjs.js.map} +1 -1
- package/dist/chunks/{TextArea-DIyosEKy.es.js → TextArea-DTir64d8.es.js} +5 -5
- package/dist/chunks/{TextArea-DIyosEKy.es.js.map → TextArea-DTir64d8.es.js.map} +1 -1
- package/dist/chunks/{TextArea-Cc0cDaeu.cjs.js → TextArea-p1OqtLgN.cjs.js} +2 -2
- package/dist/chunks/{TextArea-Cc0cDaeu.cjs.js.map → TextArea-p1OqtLgN.cjs.js.map} +1 -1
- package/dist/chunks/{ToggleButton-CgbTgCVi.es.js → ToggleButton-CmN8Ay9u.es.js} +7 -7
- package/dist/chunks/{ToggleButton-CgbTgCVi.es.js.map → ToggleButton-CmN8Ay9u.es.js.map} +1 -1
- package/dist/chunks/{ToggleButton-BbM5Zv6q.cjs.js → ToggleButton-DWTy3juF.cjs.js} +2 -2
- package/dist/chunks/{ToggleButton-BbM5Zv6q.cjs.js.map → ToggleButton-DWTy3juF.cjs.js.map} +1 -1
- package/dist/chunks/{VisuallyHidden-C38kRNm0.es.js → VisuallyHidden-BY2z9PpP.es.js} +3 -3
- package/dist/chunks/{VisuallyHidden-C38kRNm0.es.js.map → VisuallyHidden-BY2z9PpP.es.js.map} +1 -1
- package/dist/chunks/{VisuallyHidden-B4l0wZHw.cjs.js → VisuallyHidden-DFP8AIDZ.cjs.js} +2 -2
- package/dist/chunks/{VisuallyHidden-B4l0wZHw.cjs.js.map → VisuallyHidden-DFP8AIDZ.cjs.js.map} +1 -1
- package/dist/chunks/{accordion-B9jG9fOy.es.js → accordion-DF0by3UE.es.js} +5 -5
- package/dist/chunks/{accordion-B9jG9fOy.es.js.map → accordion-DF0by3UE.es.js.map} +1 -1
- package/dist/chunks/{accordion-C52FRG2V.cjs.js → accordion-Db0ZaAwE.cjs.js} +2 -2
- package/dist/chunks/{accordion-C52FRG2V.cjs.js.map → accordion-Db0ZaAwE.cjs.js.map} +1 -1
- package/dist/chunks/{alert-C88EdygK.cjs.js → alert-Ck60ax0h.cjs.js} +2 -2
- package/dist/chunks/{alert-C88EdygK.cjs.js.map → alert-Ck60ax0h.cjs.js.map} +1 -1
- package/dist/chunks/{alert-BSP6Q3el.es.js → alert-DfnvHvbA.es.js} +2 -2
- package/dist/chunks/{alert-BSP6Q3el.es.js.map → alert-DfnvHvbA.es.js.map} +1 -1
- package/dist/chunks/{badge-C2elCKPp.es.js → badge-B58WR_nK.es.js} +2 -2
- package/dist/chunks/{badge-C2elCKPp.es.js.map → badge-B58WR_nK.es.js.map} +1 -1
- package/dist/chunks/{badge-HHzfG1BI.cjs.js → badge-D3iqhdY4.cjs.js} +2 -2
- package/dist/chunks/{badge-HHzfG1BI.cjs.js.map → badge-D3iqhdY4.cjs.js.map} +1 -1
- package/dist/chunks/{button-BCrCWnMd.cjs.js → button-N0fUFhvD.cjs.js} +2 -2
- package/dist/chunks/{button-BCrCWnMd.cjs.js.map → button-N0fUFhvD.cjs.js.map} +1 -1
- package/dist/chunks/{button-B9biGn83.es.js → button-Nd45zL1x.es.js} +5 -5
- package/dist/chunks/{button-B9biGn83.es.js.map → button-Nd45zL1x.es.js.map} +1 -1
- package/dist/chunks/{calendar-BU_04xoY.cjs.js → calendar-Cj6tlZEj.cjs.js} +2 -2
- package/dist/chunks/{calendar-BU_04xoY.cjs.js.map → calendar-Cj6tlZEj.cjs.js.map} +1 -1
- package/dist/chunks/{calendar-B9IgFF4u.es.js → calendar-kDDTW9QY.es.js} +8 -8
- package/dist/chunks/{calendar-B9IgFF4u.es.js.map → calendar-kDDTW9QY.es.js.map} +1 -1
- package/dist/chunks/{card-C7PIEqmV.es.js → card-33QKPI9V.es.js} +3 -3
- package/dist/chunks/{card-C7PIEqmV.es.js.map → card-33QKPI9V.es.js.map} +1 -1
- package/dist/chunks/{card-Bgg1CCU2.cjs.js → card-DFkYZ6Cs.cjs.js} +2 -2
- package/dist/chunks/{card-Bgg1CCU2.cjs.js.map → card-DFkYZ6Cs.cjs.js.map} +1 -1
- package/dist/chunks/{checkbox-VN2y-Prn.es.js → checkbox-D2tsRAy1.es.js} +9 -9
- package/dist/chunks/{checkbox-VN2y-Prn.es.js.map → checkbox-D2tsRAy1.es.js.map} +1 -1
- package/dist/chunks/{checkbox-BN-_eQB9.cjs.js → checkbox-g5gMaiLJ.cjs.js} +2 -2
- package/dist/chunks/{checkbox-BN-_eQB9.cjs.js.map → checkbox-g5gMaiLJ.cjs.js.map} +1 -1
- package/dist/chunks/{combobox-ClhyR7hp.es.js → combobox-C1nOP0Qh.es.js} +423 -403
- package/dist/chunks/combobox-C1nOP0Qh.es.js.map +1 -0
- package/dist/chunks/combobox-D1AqzXjA.cjs.js +2 -0
- package/dist/chunks/combobox-D1AqzXjA.cjs.js.map +1 -0
- package/dist/chunks/data-table-CgICAQC9.cjs.js +2 -0
- package/dist/chunks/{data-table-BZdQfaxu.cjs.js.map → data-table-CgICAQC9.cjs.js.map} +1 -1
- package/dist/chunks/{data-table-WHEWdh5f.es.js → data-table-DlBw5XeS.es.js} +427 -426
- package/dist/chunks/{data-table-WHEWdh5f.es.js.map → data-table-DlBw5XeS.es.js.map} +1 -1
- package/dist/chunks/{date-input-C6zs_WLw.cjs.js → date-input-CHWJMf4Y.cjs.js} +2 -2
- package/dist/chunks/{date-input-C6zs_WLw.cjs.js.map → date-input-CHWJMf4Y.cjs.js.map} +1 -1
- package/dist/chunks/{date-input-BOKez7n5.es.js → date-input-DBd91qhQ.es.js} +2 -2
- package/dist/chunks/{date-input-BOKez7n5.es.js.map → date-input-DBd91qhQ.es.js.map} +1 -1
- package/dist/chunks/{date-picker--1p1znhu.es.js → date-picker-DkegHUiZ.es.js} +12 -12
- package/dist/chunks/{date-picker--1p1znhu.es.js.map → date-picker-DkegHUiZ.es.js.map} +1 -1
- package/dist/chunks/{date-picker-BAf5yyGT.cjs.js → date-picker-W70bKrmU.cjs.js} +2 -2
- package/dist/chunks/{date-picker-BAf5yyGT.cjs.js.map → date-picker-W70bKrmU.cjs.js.map} +1 -1
- package/dist/chunks/{date-range-picker-zxwhdmlC.cjs.js → date-range-picker-Cqdj51fV.cjs.js} +2 -2
- package/dist/chunks/{date-range-picker-zxwhdmlC.cjs.js.map → date-range-picker-Cqdj51fV.cjs.js.map} +1 -1
- package/dist/chunks/{date-range-picker-J-FqEMGo.es.js → date-range-picker-vzDrtZ94.es.js} +12 -12
- package/dist/chunks/{date-range-picker-J-FqEMGo.es.js.map → date-range-picker-vzDrtZ94.es.js.map} +1 -1
- package/dist/chunks/{divider-CTTExmLv.cjs.js → divider-BZkfiFj5.cjs.js} +2 -2
- package/dist/chunks/{divider-CTTExmLv.cjs.js.map → divider-BZkfiFj5.cjs.js.map} +1 -1
- package/dist/chunks/{divider-CpctZ_-U.es.js → divider-Vtnb6QbI.es.js} +2 -2
- package/dist/chunks/{divider-CpctZ_-U.es.js.map → divider-Vtnb6QbI.es.js.map} +1 -1
- package/dist/chunks/domHelpers-InH3T0qs.es.js +16 -0
- package/dist/chunks/domHelpers-InH3T0qs.es.js.map +1 -0
- package/dist/chunks/domHelpers-YAYZ9fE9.cjs.js +2 -0
- package/dist/chunks/domHelpers-YAYZ9fE9.cjs.js.map +1 -0
- package/dist/chunks/focusSafely-CgVjbH-x.cjs.js +2 -0
- package/dist/chunks/{focusSafely-CpzfaUTO.cjs.js.map → focusSafely-CgVjbH-x.cjs.js.map} +1 -1
- package/dist/chunks/{focusSafely-Di2ArC9L.es.js → focusSafely-D8bIeV7X.es.js} +5 -6
- package/dist/chunks/{focusSafely-Di2ArC9L.es.js.map → focusSafely-D8bIeV7X.es.js.map} +1 -1
- package/dist/chunks/{form-field-B9PncHWr.cjs.js → form-field-CS9GGlbl.cjs.js} +2 -2
- package/dist/chunks/{form-field-B9PncHWr.cjs.js.map → form-field-CS9GGlbl.cjs.js.map} +1 -1
- package/dist/chunks/{form-field-wK_anzOw.es.js → form-field-DcQW2A1i.es.js} +4 -4
- package/dist/chunks/{form-field-wK_anzOw.es.js.map → form-field-DcQW2A1i.es.js.map} +1 -1
- package/dist/chunks/{group-BQeamedA.es.js → group-CYRXn-NO.es.js} +2 -2
- package/dist/chunks/{group-BQeamedA.es.js.map → group-CYRXn-NO.es.js.map} +1 -1
- package/dist/chunks/{group-BwSwp_8B.cjs.js → group-DgCuvf_U.cjs.js} +2 -2
- package/dist/chunks/{group-BwSwp_8B.cjs.js.map → group-DgCuvf_U.cjs.js.map} +1 -1
- package/dist/chunks/{icon-button-a3WVC7IH.es.js → icon-button-BkjZ1Pq8.es.js} +2 -2
- package/dist/chunks/{icon-button-a3WVC7IH.es.js.map → icon-button-BkjZ1Pq8.es.js.map} +1 -1
- package/dist/chunks/{icon-button-BPQdpTPZ.cjs.js → icon-button-Cs41MKV5.cjs.js} +2 -2
- package/dist/chunks/{icon-button-BPQdpTPZ.cjs.js.map → icon-button-Cs41MKV5.cjs.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-D5Uji9qU.cjs.js → icon-toggle-button-BljNXaJy.cjs.js} +2 -2
- package/dist/chunks/{icon-toggle-button-D5Uji9qU.cjs.js.map → icon-toggle-button-BljNXaJy.cjs.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-sFqCJEvI.es.js → icon-toggle-button-CEGHh-JB.es.js} +2 -2
- package/dist/chunks/{icon-toggle-button-sFqCJEvI.es.js.map → icon-toggle-button-CEGHh-JB.es.js.map} +1 -1
- package/dist/chunks/{kbd-CDEXQyg2.es.js → kbd-BjfxBIWW.es.js} +2 -2
- package/dist/chunks/{kbd-CDEXQyg2.es.js.map → kbd-BjfxBIWW.es.js.map} +1 -1
- package/dist/chunks/{kbd-DP3lZ80W.cjs.js → kbd-DxwHwPaF.cjs.js} +2 -2
- package/dist/chunks/{kbd-DP3lZ80W.cjs.js.map → kbd-DxwHwPaF.cjs.js.map} +1 -1
- package/dist/chunks/{link-DMl9zyrR.cjs.js → link-CNe7kOhA.cjs.js} +2 -2
- package/dist/chunks/{link-DMl9zyrR.cjs.js.map → link-CNe7kOhA.cjs.js.map} +1 -1
- package/dist/chunks/{link-Db9S7XvR.es.js → link-D0XhkPu6.es.js} +5 -5
- package/dist/chunks/{link-Db9S7XvR.es.js.map → link-D0XhkPu6.es.js.map} +1 -1
- package/dist/chunks/{loading-spinner-C7yZE-QF.es.js → loading-spinner-COTpElt8.es.js} +3 -3
- package/dist/chunks/{loading-spinner-C7yZE-QF.es.js.map → loading-spinner-COTpElt8.es.js.map} +1 -1
- package/dist/chunks/{loading-spinner-BLDpwNFm.cjs.js → loading-spinner-C_1gCLzP.cjs.js} +2 -2
- package/dist/chunks/{loading-spinner-BLDpwNFm.cjs.js.map → loading-spinner-C_1gCLzP.cjs.js.map} +1 -1
- package/dist/chunks/{make-element-focusable-fn-8kTQK.cjs.js → make-element-focusable-Cj8VL4H4.cjs.js} +2 -2
- package/dist/chunks/{make-element-focusable-fn-8kTQK.cjs.js.map → make-element-focusable-Cj8VL4H4.cjs.js.map} +1 -1
- package/dist/chunks/{make-element-focusable-_FWEyVtG.es.js → make-element-focusable-DS5T93TG.es.js} +3 -3
- package/dist/chunks/{make-element-focusable-_FWEyVtG.es.js.map → make-element-focusable-DS5T93TG.es.js.map} +1 -1
- package/dist/chunks/{menu-BX993uzm.cjs.js → menu-BaTd4n0a.cjs.js} +2 -2
- package/dist/chunks/{menu-BX993uzm.cjs.js.map → menu-BaTd4n0a.cjs.js.map} +1 -1
- package/dist/chunks/{menu-DbKjf1RS.es.js → menu-DKTon-Vn.es.js} +5 -5
- package/dist/chunks/{menu-DbKjf1RS.es.js.map → menu-DKTon-Vn.es.js.map} +1 -1
- package/dist/chunks/{mergeProps-B_9syxhT.es.js → mergeProps-CtwSzqnr.es.js} +5 -4
- package/dist/chunks/{mergeProps-B_9syxhT.es.js.map → mergeProps-CtwSzqnr.es.js.map} +1 -1
- package/dist/chunks/{mergeProps-BA5Cwf5w.cjs.js → mergeProps-DRkWdaVg.cjs.js} +2 -2
- package/dist/chunks/{mergeProps-BA5Cwf5w.cjs.js.map → mergeProps-DRkWdaVg.cjs.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-BvJxZ-xz.es.js → multiline-text-input-Bsazfavw.es.js} +3 -3
- package/dist/chunks/{multiline-text-input-BvJxZ-xz.es.js.map → multiline-text-input-Bsazfavw.es.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-mIiDJ-o1.cjs.js → multiline-text-input-DufrCFhg.cjs.js} +2 -2
- package/dist/chunks/{multiline-text-input-mIiDJ-o1.cjs.js.map → multiline-text-input-DufrCFhg.cjs.js.map} +1 -1
- package/dist/chunks/{nimbus-provider-C68IpiXi.es.js → nimbus-provider-BinjIRf7.es.js} +2 -2
- package/dist/chunks/{nimbus-provider-C68IpiXi.es.js.map → nimbus-provider-BinjIRf7.es.js.map} +1 -1
- package/dist/chunks/number-input-2C9g1Xgr.cjs.js +2 -0
- package/dist/chunks/number-input-2C9g1Xgr.cjs.js.map +1 -0
- package/dist/chunks/{number-input-DFmXNyz2.es.js → number-input-l32lWVbX.es.js} +208 -192
- package/dist/chunks/number-input-l32lWVbX.es.js.map +1 -0
- package/dist/chunks/{openLink-Ctl0AdAy.es.js → openLink-BwkmFekP.es.js} +2 -2
- package/dist/chunks/{openLink-Ctl0AdAy.es.js.map → openLink-BwkmFekP.es.js.map} +1 -1
- package/dist/chunks/{password-input-BWFYKcBT.es.js → password-input-B9Uv-ybv.es.js} +4 -4
- package/dist/chunks/{password-input-BWFYKcBT.es.js.map → password-input-B9Uv-ybv.es.js.map} +1 -1
- package/dist/chunks/{password-input-D8R9Y9Ro.cjs.js → password-input-q1cxpiOP.cjs.js} +2 -2
- package/dist/chunks/{password-input-D8R9Y9Ro.cjs.js.map → password-input-q1cxpiOP.cjs.js.map} +1 -1
- package/dist/chunks/{platform-Z5fvtFmM.es.js → platform-BOO1jCtB.es.js} +4 -4
- package/dist/chunks/{platform-Z5fvtFmM.es.js.map → platform-BOO1jCtB.es.js.map} +1 -1
- package/dist/chunks/{progress-bar-nQCcdv_4.cjs.js → progress-bar-BGTJgcWE.cjs.js} +2 -2
- package/dist/chunks/{progress-bar-nQCcdv_4.cjs.js.map → progress-bar-BGTJgcWE.cjs.js.map} +1 -1
- package/dist/chunks/{progress-bar-CDRI279T.es.js → progress-bar-C8onDqV2.es.js} +3 -3
- package/dist/chunks/{progress-bar-CDRI279T.es.js.map → progress-bar-C8onDqV2.es.js.map} +1 -1
- package/dist/chunks/radio-input-BlE9GNwl.cjs.js +2 -0
- package/dist/chunks/{radio-input-CWRnpcxm.cjs.js.map → radio-input-BlE9GNwl.cjs.js.map} +1 -1
- package/dist/chunks/{radio-input-CE_kist9.es.js → radio-input-uMVsYeTe.es.js} +15 -15
- package/dist/chunks/{radio-input-CE_kist9.es.js.map → radio-input-uMVsYeTe.es.js.map} +1 -1
- package/dist/chunks/{range-calendar-CswayeNh.cjs.js → range-calendar-CvTT4HY-.cjs.js} +2 -2
- package/dist/chunks/{range-calendar-CswayeNh.cjs.js.map → range-calendar-CvTT4HY-.cjs.js.map} +1 -1
- package/dist/chunks/{range-calendar-B7-Z0ksl.es.js → range-calendar-YuvY8LUd.es.js} +8 -8
- package/dist/chunks/{range-calendar-B7-Z0ksl.es.js.map → range-calendar-YuvY8LUd.es.js.map} +1 -1
- package/dist/chunks/{rich-text-input-Cvcywluc.cjs.js → rich-text-input-C7EK9LsN.cjs.js} +2 -2
- package/dist/chunks/{rich-text-input-Cvcywluc.cjs.js.map → rich-text-input-C7EK9LsN.cjs.js.map} +1 -1
- package/dist/chunks/{rich-text-input-Bty0WhBM.es.js → rich-text-input-CVqiVHV1.es.js} +11 -11
- package/dist/chunks/{rich-text-input-Bty0WhBM.es.js.map → rich-text-input-CVqiVHV1.es.js.map} +1 -1
- package/dist/chunks/scrollIntoView-B2eLOBfw.cjs.js +2 -0
- package/dist/chunks/scrollIntoView-B2eLOBfw.cjs.js.map +1 -0
- package/dist/chunks/scrollIntoView-CdmKMaOn.es.js +64 -0
- package/dist/chunks/scrollIntoView-CdmKMaOn.es.js.map +1 -0
- package/dist/chunks/{select-BwGMCDw8.es.js → select-CgapbY3S.es.js} +18 -18
- package/dist/chunks/{select-BwGMCDw8.es.js.map → select-CgapbY3S.es.js.map} +1 -1
- package/dist/chunks/{select-DnmavfXh.cjs.js → select-Dd2f6hd1.cjs.js} +2 -2
- package/dist/chunks/{select-DnmavfXh.cjs.js.map → select-Dd2f6hd1.cjs.js.map} +1 -1
- package/dist/chunks/{split-button-BMpznhkI.cjs.js → split-button-Blbr2czN.cjs.js} +2 -2
- package/dist/chunks/{split-button-BMpznhkI.cjs.js.map → split-button-Blbr2czN.cjs.js.map} +1 -1
- package/dist/chunks/{split-button-a7my5Dc8.es.js → split-button-DoRlks-p.es.js} +4 -4
- package/dist/chunks/{split-button-a7my5Dc8.es.js.map → split-button-DoRlks-p.es.js.map} +1 -1
- package/dist/chunks/{switch-DZBU6Cbk.es.js → switch-Cb0mCIEe.es.js} +5 -5
- package/dist/chunks/{switch-DZBU6Cbk.es.js.map → switch-Cb0mCIEe.es.js.map} +1 -1
- package/dist/chunks/{switch-D3w3xQ7Z.cjs.js → switch-Cha1HMzo.cjs.js} +2 -2
- package/dist/chunks/{switch-D3w3xQ7Z.cjs.js.map → switch-Cha1HMzo.cjs.js.map} +1 -1
- package/dist/chunks/tag-group-5uAuEquc.cjs.js +2 -0
- package/dist/chunks/{tag-group-3YoW3lJr.cjs.js.map → tag-group-5uAuEquc.cjs.js.map} +1 -1
- package/dist/chunks/{tag-group-BBldLRQt.es.js → tag-group-CvKA8ufC.es.js} +23 -22
- package/dist/chunks/{tag-group-BBldLRQt.es.js.map → tag-group-CvKA8ufC.es.js.map} +1 -1
- package/dist/chunks/{text-hUMahKuA.cjs.js → text-BOdnmoaN.cjs.js} +2 -2
- package/dist/chunks/{text-hUMahKuA.cjs.js.map → text-BOdnmoaN.cjs.js.map} +1 -1
- package/dist/chunks/{text-B2wziCK6.es.js → text-DkO9mfur.es.js} +2 -2
- package/dist/chunks/{text-B2wziCK6.es.js.map → text-DkO9mfur.es.js.map} +1 -1
- package/dist/chunks/{text-input-DlNFZk9-.es.js → text-input-C3q-zUxw.es.js} +3 -3
- package/dist/chunks/{text-input-DlNFZk9-.es.js.map → text-input-C3q-zUxw.es.js.map} +1 -1
- package/dist/chunks/{text-input-i2bZeQZZ.cjs.js → text-input-eShRYnI3.cjs.js} +2 -2
- package/dist/chunks/{text-input-i2bZeQZZ.cjs.js.map → text-input-eShRYnI3.cjs.js.map} +1 -1
- package/dist/chunks/{time-input-Cc8RFGmz.cjs.js → time-input-CkNODZOE.cjs.js} +2 -2
- package/dist/chunks/{time-input-Cc8RFGmz.cjs.js.map → time-input-CkNODZOE.cjs.js.map} +1 -1
- package/dist/chunks/{time-input-BORpKwS7.es.js → time-input-ZZK92O_5.es.js} +2 -2
- package/dist/chunks/{time-input-BORpKwS7.es.js.map → time-input-ZZK92O_5.es.js.map} +1 -1
- package/dist/chunks/{toggle-button-DZpRqlmW.cjs.js → toggle-button-BEOCbO0O.cjs.js} +2 -2
- package/dist/chunks/{toggle-button-DZpRqlmW.cjs.js.map → toggle-button-BEOCbO0O.cjs.js.map} +1 -1
- package/dist/chunks/{toggle-button-C7BBLnfL.es.js → toggle-button-Bfo8opbK.es.js} +2 -2
- package/dist/chunks/{toggle-button-C7BBLnfL.es.js.map → toggle-button-Bfo8opbK.es.js.map} +1 -1
- package/dist/chunks/{toggle-button-group-C-jzm7ev.cjs.js → toggle-button-group-B_C5ly_4.cjs.js} +2 -2
- package/dist/chunks/{toggle-button-group-C-jzm7ev.cjs.js.map → toggle-button-group-B_C5ly_4.cjs.js.map} +1 -1
- package/dist/chunks/{toggle-button-group-BjQefKya.es.js → toggle-button-group-yB5nqdV3.es.js} +2 -2
- package/dist/chunks/{toggle-button-group-BjQefKya.es.js.map → toggle-button-group-yB5nqdV3.es.js.map} +1 -1
- package/dist/chunks/{toolbar-Dbq_EngE.cjs.js → toolbar-BZkvVoAw.cjs.js} +2 -2
- package/dist/chunks/{toolbar-Dbq_EngE.cjs.js.map → toolbar-BZkvVoAw.cjs.js.map} +1 -1
- package/dist/chunks/{toolbar-CD5Nrn7W.es.js → toolbar-DvkcbAsl.es.js} +4 -4
- package/dist/chunks/{toolbar-CD5Nrn7W.es.js.map → toolbar-DvkcbAsl.es.js.map} +1 -1
- package/dist/chunks/{tooltip-BOK0Uejw.es.js → tooltip-Bb_I4Owj.es.js} +7 -7
- package/dist/chunks/{tooltip-BOK0Uejw.es.js.map → tooltip-Bb_I4Owj.es.js.map} +1 -1
- package/dist/chunks/{tooltip-DjUjwciC.cjs.js → tooltip-D7QmPw5W.cjs.js} +2 -2
- package/dist/chunks/{tooltip-DjUjwciC.cjs.js.map → tooltip-D7QmPw5W.cjs.js.map} +1 -1
- package/dist/chunks/{useButton-D3BedLtL.cjs.js → useButton-6DDhTkQ5.cjs.js} +2 -2
- package/dist/chunks/{useButton-D3BedLtL.cjs.js.map → useButton-6DDhTkQ5.cjs.js.map} +1 -1
- package/dist/chunks/{useButton-Cgkz8UEs.es.js → useButton-CKkFEBt0.es.js} +4 -4
- package/dist/chunks/{useButton-Cgkz8UEs.es.js.map → useButton-CKkFEBt0.es.js.map} +1 -1
- package/dist/chunks/{useDateFormatter-G9oGkNG5.cjs.js → useDateFormatter-BIkv89ta.cjs.js} +2 -2
- package/dist/chunks/{useDateFormatter-G9oGkNG5.cjs.js.map → useDateFormatter-BIkv89ta.cjs.js.map} +1 -1
- package/dist/chunks/{useDateFormatter-D9HBAX1w.es.js → useDateFormatter-DGeAh0SC.es.js} +2 -2
- package/dist/chunks/{useDateFormatter-D9HBAX1w.es.js.map → useDateFormatter-DGeAh0SC.es.js.map} +1 -1
- package/dist/chunks/useDescription-CVIOL3si.es.js +33 -0
- package/dist/chunks/useDescription-CVIOL3si.es.js.map +1 -0
- package/dist/chunks/useDescription-Dwd7oLGP.cjs.js +2 -0
- package/dist/chunks/useDescription-Dwd7oLGP.cjs.js.map +1 -0
- package/dist/chunks/{useEvent-CuUOU5WV.cjs.js → useEvent-AOCWMUCu.cjs.js} +2 -2
- package/dist/chunks/{useEvent-CuUOU5WV.cjs.js.map → useEvent-AOCWMUCu.cjs.js.map} +1 -1
- package/dist/chunks/{useEvent-YHhqZvpU.es.js → useEvent-k0_MYJWL.es.js} +7 -7
- package/dist/chunks/{useEvent-YHhqZvpU.es.js.map → useEvent-k0_MYJWL.es.js.map} +1 -1
- package/dist/chunks/{useField-Ce9zQxmx.es.js → useField-9-dizG-T.es.js} +3 -3
- package/dist/chunks/{useField-Ce9zQxmx.es.js.map → useField-9-dizG-T.es.js.map} +1 -1
- package/dist/chunks/{useField-DmqO9k7a.cjs.js → useField-D5vZhNS3.cjs.js} +2 -2
- package/dist/chunks/{useField-DmqO9k7a.cjs.js.map → useField-D5vZhNS3.cjs.js.map} +1 -1
- package/dist/chunks/{useFocus-BcBbbuWU.cjs.js → useFocus-DpnjsJ3H.cjs.js} +2 -2
- package/dist/chunks/{useFocus-BcBbbuWU.cjs.js.map → useFocus-DpnjsJ3H.cjs.js.map} +1 -1
- package/dist/chunks/{useFocus-CeI1jbl8.es.js → useFocus-Lq2Mmyje.es.js} +6 -6
- package/dist/chunks/{useFocus-CeI1jbl8.es.js.map → useFocus-Lq2Mmyje.es.js.map} +1 -1
- package/dist/chunks/{useFocusRing-D8cwV0EM.es.js → useFocusRing-BFWuvq6P.es.js} +4 -4
- package/dist/chunks/{useFocusRing-D8cwV0EM.es.js.map → useFocusRing-BFWuvq6P.es.js.map} +1 -1
- package/dist/chunks/{useFocusRing-DRIoF592.cjs.js → useFocusRing-DjMwdeTr.cjs.js} +2 -2
- package/dist/chunks/{useFocusRing-DRIoF592.cjs.js.map → useFocusRing-DjMwdeTr.cjs.js.map} +1 -1
- package/dist/chunks/useFocusVisible-CCKx2EYu.cjs.js +2 -0
- package/dist/chunks/useFocusVisible-CCKx2EYu.cjs.js.map +1 -0
- package/dist/chunks/useFocusVisible-DGwGbqVH.es.js +148 -0
- package/dist/chunks/useFocusVisible-DGwGbqVH.es.js.map +1 -0
- package/dist/chunks/{useFocusWithin-i-cVKYQ8.cjs.js → useFocusWithin-BcxLc412.cjs.js} +2 -2
- package/dist/chunks/{useFocusWithin-i-cVKYQ8.cjs.js.map → useFocusWithin-BcxLc412.cjs.js.map} +1 -1
- package/dist/chunks/{useFocusWithin-yfiHuOEs.es.js → useFocusWithin-QIERmzTm.es.js} +6 -6
- package/dist/chunks/{useFocusWithin-yfiHuOEs.es.js.map → useFocusWithin-QIERmzTm.es.js.map} +1 -1
- package/dist/chunks/useFocusable-BKWax3sD.cjs.js +2 -0
- package/dist/chunks/useFocusable-BKWax3sD.cjs.js.map +1 -0
- package/dist/chunks/useFocusable-ZY85zm7p.es.js +101 -0
- package/dist/chunks/useFocusable-ZY85zm7p.es.js.map +1 -0
- package/dist/chunks/{useFormReset--wPlnEOl.cjs.js → useFormReset-7-vYPDFJ.cjs.js} +2 -2
- package/dist/chunks/{useFormReset--wPlnEOl.cjs.js.map → useFormReset-7-vYPDFJ.cjs.js.map} +1 -1
- package/dist/chunks/{useFormReset-DurgUJL-.es.js → useFormReset-C27nadG4.es.js} +2 -2
- package/dist/chunks/{useFormReset-DurgUJL-.es.js.map → useFormReset-C27nadG4.es.js.map} +1 -1
- package/dist/chunks/{useFormValidation-DJy_cdgv.cjs.js → useFormValidation-B5jwexNB.cjs.js} +2 -2
- package/dist/chunks/{useFormValidation-DJy_cdgv.cjs.js.map → useFormValidation-B5jwexNB.cjs.js.map} +1 -1
- package/dist/chunks/{useFormValidation-DJMNbIhx.es.js → useFormValidation-Chwu6llz.es.js} +3 -3
- package/dist/chunks/{useFormValidation-DJMNbIhx.es.js.map → useFormValidation-Chwu6llz.es.js.map} +1 -1
- package/dist/chunks/useGlobalListeners-BOOfV5Wh.es.js.map +1 -1
- package/dist/chunks/useGlobalListeners-DcmIlwrO.cjs.js.map +1 -1
- package/dist/chunks/{useHighlightSelectionDescription-DAR8wV79.es.js → useHighlightSelectionDescription-C7xYnRNQ.es.js} +5 -5
- package/dist/chunks/{useHighlightSelectionDescription-DAR8wV79.es.js.map → useHighlightSelectionDescription-C7xYnRNQ.es.js.map} +1 -1
- package/dist/chunks/{useHighlightSelectionDescription-DPwy1mkw.cjs.js → useHighlightSelectionDescription-DbT86zJE.cjs.js} +2 -2
- package/dist/chunks/{useHighlightSelectionDescription-DPwy1mkw.cjs.js.map → useHighlightSelectionDescription-DbT86zJE.cjs.js.map} +1 -1
- package/dist/chunks/{useHover-BlZx5CU2.cjs.js → useHover-BmNjdf-e.cjs.js} +2 -2
- package/dist/chunks/{useHover-BlZx5CU2.cjs.js.map → useHover-BmNjdf-e.cjs.js.map} +1 -1
- package/dist/chunks/{useHover-cJOf02TT.es.js → useHover-C5D2lV7p.es.js} +2 -2
- package/dist/chunks/{useHover-cJOf02TT.es.js.map → useHover-C5D2lV7p.es.js.map} +1 -1
- package/dist/chunks/{useLabel-Y8tWagLu.cjs.js → useLabel-BvIA-VYU.cjs.js} +2 -2
- package/dist/chunks/{useLabel-Y8tWagLu.cjs.js.map → useLabel-BvIA-VYU.cjs.js.map} +1 -1
- package/dist/chunks/{useLabel-BBmkkrPP.es.js → useLabel-DHa3lVYx.es.js} +2 -2
- package/dist/chunks/{useLabel-BBmkkrPP.es.js.map → useLabel-DHa3lVYx.es.js.map} +1 -1
- package/dist/chunks/usePress-CEcydhMs.es.js +473 -0
- package/dist/chunks/usePress-CEcydhMs.es.js.map +1 -0
- package/dist/chunks/usePress-_EFFCs1n.cjs.js +8 -0
- package/dist/chunks/usePress-_EFFCs1n.cjs.js.map +1 -0
- package/dist/chunks/{useProgressBar-8ZyM2_T3.cjs.js → useProgressBar-DPrqCXGF.cjs.js} +2 -2
- package/dist/chunks/{useProgressBar-8ZyM2_T3.cjs.js.map → useProgressBar-DPrqCXGF.cjs.js.map} +1 -1
- package/dist/chunks/{useProgressBar-BgURyN6q.es.js → useProgressBar-DjpcXNXW.es.js} +3 -3
- package/dist/chunks/{useProgressBar-BgURyN6q.es.js.map → useProgressBar-DjpcXNXW.es.js.map} +1 -1
- package/dist/chunks/{useSingleSelectListState-CiK-JkEX.es.js → useSingleSelectListState-C71okNUJ.es.js} +2 -2
- package/dist/chunks/{useSingleSelectListState-CiK-JkEX.es.js.map → useSingleSelectListState-C71okNUJ.es.js.map} +1 -1
- package/dist/chunks/{useSingleSelectListState-BpAVpRdZ.cjs.js → useSingleSelectListState-CVyCydEV.cjs.js} +2 -2
- package/dist/chunks/{useSingleSelectListState-BpAVpRdZ.cjs.js.map → useSingleSelectListState-CVyCydEV.cjs.js.map} +1 -1
- package/dist/chunks/{useSpinButton-C-tpK-T9.es.js → useSpinButton-BmgSsr4J.es.js} +210 -181
- package/dist/chunks/useSpinButton-BmgSsr4J.es.js.map +1 -0
- package/dist/chunks/useSpinButton-CjLHguQd.cjs.js +2 -0
- package/dist/chunks/useSpinButton-CjLHguQd.cjs.js.map +1 -0
- package/dist/chunks/useSyncRef-Cey7oI1w.cjs.js +2 -0
- package/dist/chunks/useSyncRef-Cey7oI1w.cjs.js.map +1 -0
- package/dist/chunks/useSyncRef-KqQTqZax.es.js +47 -0
- package/dist/chunks/useSyncRef-KqQTqZax.es.js.map +1 -0
- package/dist/chunks/{useTextField-Doh-sQHP.es.js → useTextField-D0VFuWqP.es.js} +7 -7
- package/dist/chunks/{useTextField-Doh-sQHP.es.js.map → useTextField-D0VFuWqP.es.js.map} +1 -1
- package/dist/chunks/useTextField-DvU8XT6q.cjs.js +2 -0
- package/dist/chunks/{useTextField-Cv1jQqUp.cjs.js.map → useTextField-DvU8XT6q.cjs.js.map} +1 -1
- package/dist/chunks/{useToggle-DcdigPKG.es.js → useToggle-C9HpNiZE.es.js} +5 -5
- package/dist/chunks/{useToggle-DcdigPKG.es.js.map → useToggle-C9HpNiZE.es.js.map} +1 -1
- package/dist/chunks/{useToggle-BK36AEko.cjs.js → useToggle-ChOojvWq.cjs.js} +2 -2
- package/dist/chunks/{useToggle-BK36AEko.cjs.js.map → useToggle-ChOojvWq.cjs.js.map} +1 -1
- package/dist/chunks/{useToolbar-D3B8DvbF.cjs.js → useToolbar-DfnAHPrS.cjs.js} +2 -2
- package/dist/chunks/{useToolbar-D3B8DvbF.cjs.js.map → useToolbar-DfnAHPrS.cjs.js.map} +1 -1
- package/dist/chunks/{useToolbar-CYJ2PbtO.es.js → useToolbar-Dzap6P-D.es.js} +3 -3
- package/dist/chunks/{useToolbar-CYJ2PbtO.es.js.map → useToolbar-Dzap6P-D.es.js.map} +1 -1
- package/dist/chunks/utils-3xKI25I1.cjs.js +2 -0
- package/dist/chunks/utils-3xKI25I1.cjs.js.map +1 -0
- package/dist/chunks/utils-4CfAFtL7.es.js +242 -0
- package/dist/chunks/utils-4CfAFtL7.es.js.map +1 -0
- package/dist/chunks/{utils-BHdR5Nww.cjs.js → utils-CB9xZl-T.cjs.js} +2 -2
- package/dist/chunks/{utils-BHdR5Nww.cjs.js.map → utils-CB9xZl-T.cjs.js.map} +1 -1
- package/dist/chunks/{utils-BkdW_cdL.es.js → utils-emYDjcZU.es.js} +2 -2
- package/dist/chunks/{utils-BkdW_cdL.es.js.map → utils-emYDjcZU.es.js.map} +1 -1
- package/dist/chunks/{visually-hidden-vh07nrZa.es.js → visually-hidden-Bw4WH-b1.es.js} +2 -2
- package/dist/chunks/{visually-hidden-vh07nrZa.es.js.map → visually-hidden-Bw4WH-b1.es.js.map} +1 -1
- package/dist/chunks/{visually-hidden-Uhh-2Y-q.cjs.js → visually-hidden-CQBnuJLY.cjs.js} +2 -2
- package/dist/chunks/{visually-hidden-Uhh-2Y-q.cjs.js.map → visually-hidden-CQBnuJLY.cjs.js.map} +1 -1
- package/dist/components/accordion.cjs +1 -1
- package/dist/components/accordion.es.js +1 -1
- package/dist/components/alert.cjs +1 -1
- package/dist/components/alert.es.js +1 -1
- package/dist/components/badge.cjs +1 -1
- package/dist/components/badge.es.js +1 -1
- 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/card.cjs +1 -1
- package/dist/components/card.es.js +1 -1
- package/dist/components/checkbox.cjs +1 -1
- package/dist/components/checkbox.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 +42 -42
- 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.cjs +1 -1
- package/dist/components/date-range-picker.es.js +1 -1
- package/dist/components/divider.cjs +1 -1
- package/dist/components/divider.es.js +1 -1
- package/dist/components/form-field.cjs +1 -1
- package/dist/components/form-field.es.js +1 -1
- package/dist/components/group.cjs +1 -1
- package/dist/components/group.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/kbd.cjs +1 -1
- package/dist/components/kbd.es.js +1 -1
- package/dist/components/link.cjs +1 -1
- package/dist/components/link.es.js +1 -1
- package/dist/components/loading-spinner.cjs +1 -1
- package/dist/components/loading-spinner.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.es.js +1 -1
- package/dist/components/number-input.cjs +1 -1
- package/dist/components/number-input.es.js +1 -1
- package/dist/components/password-input.cjs +1 -1
- package/dist/components/password-input.es.js +1 -1
- 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/rich-text-input.cjs +1 -1
- package/dist/components/rich-text-input.es.js +1 -1
- package/dist/components/select.cjs +1 -1
- package/dist/components/select.es.js +1 -1
- package/dist/components/split-button.cjs +1 -1
- package/dist/components/split-button.es.js +1 -1
- package/dist/components/switch.cjs +1 -1
- package/dist/components/switch.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.cjs +1 -1
- package/dist/components/text-input.es.js +1 -1
- package/dist/components/text.cjs +1 -1
- package/dist/components/text.es.js +1 -1
- package/dist/components/time-input.cjs +1 -1
- package/dist/components/time-input.es.js +1 -1
- package/dist/components/toggle-button-group.cjs +1 -1
- package/dist/components/toggle-button-group.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/tooltip.cjs +1 -1
- package/dist/components/tooltip.es.js +2 -2
- package/dist/components/visually-hidden.cjs +1 -1
- package/dist/components/visually-hidden.es.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.es.js +43 -43
- package/package.json +6 -6
- package/dist/chunks/Collection-BsItrctR.cjs.js +0 -18
- package/dist/chunks/Collection-BsItrctR.cjs.js.map +0 -1
- package/dist/chunks/Collection-DFZhstai.es.js.map +0 -1
- package/dist/chunks/DateField-D-KvZd-Q.cjs.js +0 -2
- package/dist/chunks/Dialog-Cbq66gyc.cjs.js +0 -2
- package/dist/chunks/FocusScope-B78iFLeF.cjs.js +0 -2
- package/dist/chunks/FocusScope-B78iFLeF.cjs.js.map +0 -1
- package/dist/chunks/FocusScope-C1Aw7j9H.es.js +0 -625
- package/dist/chunks/FocusScope-C1Aw7j9H.es.js.map +0 -1
- package/dist/chunks/Heading-CQJ-3eon.cjs.js +0 -2
- package/dist/chunks/Separator-DBLZ41YB.cjs.js +0 -2
- package/dist/chunks/combobox-BvfBQq9k.cjs.js +0 -2
- package/dist/chunks/combobox-BvfBQq9k.cjs.js.map +0 -1
- package/dist/chunks/combobox-ClhyR7hp.es.js.map +0 -1
- package/dist/chunks/data-table-BZdQfaxu.cjs.js +0 -2
- package/dist/chunks/focusSafely-CpzfaUTO.cjs.js +0 -2
- package/dist/chunks/number-input-BN6xiOXG.cjs.js +0 -2
- package/dist/chunks/number-input-BN6xiOXG.cjs.js.map +0 -1
- package/dist/chunks/number-input-DFmXNyz2.es.js.map +0 -1
- package/dist/chunks/radio-input-CWRnpcxm.cjs.js +0 -2
- package/dist/chunks/scrollIntoView-BYF_8_6g.es.js +0 -94
- package/dist/chunks/scrollIntoView-BYF_8_6g.es.js.map +0 -1
- package/dist/chunks/scrollIntoView-BzIqpHLO.cjs.js +0 -2
- package/dist/chunks/scrollIntoView-BzIqpHLO.cjs.js.map +0 -1
- package/dist/chunks/tag-group-3YoW3lJr.cjs.js +0 -2
- package/dist/chunks/useFocusVisible-C5ivHvqm.es.js +0 -111
- package/dist/chunks/useFocusVisible-C5ivHvqm.es.js.map +0 -1
- package/dist/chunks/useFocusVisible-bRnVksaU.cjs.js +0 -2
- package/dist/chunks/useFocusVisible-bRnVksaU.cjs.js.map +0 -1
- package/dist/chunks/useFocusable-BghVNiQU.es.js +0 -77
- package/dist/chunks/useFocusable-BghVNiQU.es.js.map +0 -1
- package/dist/chunks/useFocusable-avM9w6OE.cjs.js +0 -2
- package/dist/chunks/useFocusable-avM9w6OE.cjs.js.map +0 -1
- package/dist/chunks/usePress-BquTSwUd.es.js +0 -456
- package/dist/chunks/usePress-BquTSwUd.es.js.map +0 -1
- package/dist/chunks/usePress-D8F1U6qk.cjs.js +0 -8
- package/dist/chunks/usePress-D8F1U6qk.cjs.js.map +0 -1
- package/dist/chunks/useSpinButton-C-tpK-T9.es.js.map +0 -1
- package/dist/chunks/useSpinButton-Cw8QxU2l.cjs.js +0 -2
- package/dist/chunks/useSpinButton-Cw8QxU2l.cjs.js.map +0 -1
- package/dist/chunks/useSyncRef-DGRbdR4H.es.js +0 -13
- package/dist/chunks/useSyncRef-DGRbdR4H.es.js.map +0 -1
- package/dist/chunks/useSyncRef-bcjp9eId.cjs.js +0 -2
- package/dist/chunks/useSyncRef-bcjp9eId.cjs.js.map +0 -1
- package/dist/chunks/useTextField-Cv1jQqUp.cjs.js +0 -2
- package/dist/chunks/utils-BHVnNfaH.cjs.js +0 -2
- package/dist/chunks/utils-BHVnNfaH.cjs.js.map +0 -1
- package/dist/chunks/utils-Gg3iiYhl.es.js +0 -188
- package/dist/chunks/utils-Gg3iiYhl.es.js.map +0 -1
package/dist/chunks/{date-range-picker-J-FqEMGo.es.js.map → date-range-picker-vzDrtZ94.es.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-range-picker-J-FqEMGo.es.js","sources":["../../src/components/date-range-picker/date-range-picker.slots.tsx","../../src/components/date-range-picker/components/date-range-picker.time-input.tsx","../../src/components/date-range-picker/components/date-range-picker.custom-context.tsx","../../src/components/date-range-picker/date-range-picker.tsx"],"sourcesContent":["import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createSlotRecipeContext,\n} from \"@chakra-ui/react/styled-system\";\n\nimport { dateRangePickerSlotRecipe } from \"./date-range-picker.recipe\";\n\n/**\n * Base recipe props interface that combines Chakra UI's recipe props\n * with the unstyled prop option for the div element.\n */\ninterface DateRangePickerRecipeProps extends RecipeProps<\"div\">, UnstyledProp {}\n\n/**\n * Root props interface that extends Chakra's HTML props with our recipe props.\n * This creates a complete set of props for the root element, combining\n * HTML attributes, Chakra's styling system, and our custom recipe props.\n */\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface DateRangePickerRootProps\n extends HTMLChakraProps<\"div\", DateRangePickerRecipeProps> {}\n\n// Correctly destructure from createSlotRecipeContext based on project examples\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: dateRangePickerSlotRecipe,\n});\n\n/**\n * Root component that provides the styling context for the DateRangePicker component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const DateRangePickerRootSlot = withProvider<\n HTMLDivElement,\n DateRangePickerRootProps\n>(\"div\", \"root\");\n\n/**\n * Slot component for the input group containing the DateInput and trigger button.\n */\nexport const DateRangePickerGroupSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"group\");\n\n/**\n * Slot component for the trigger button that opens the calendar popover.\n */\nexport const DateRangePickerTriggerSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"trigger\");\n\n/**\n * Slot component for the popover container.\n */\nexport const DateRangePickerPopoverSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"popover\");\n\n/**\n * Slot component for the calendar container within the popover.\n */\nexport const DateRangePickerCalendarSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"calendar\");\n\n/**\n * Slot component for the calendar header.\n */\nexport const DateRangePickerCalendarHeaderSlot = withContext<\n HTMLElement,\n HTMLChakraProps<\"header\">\n>(\"header\", \"calendarHeader\");\n\n/**\n * Slot component for the calendar grid.\n */\nexport const DateRangePickerCalendarGridSlot = withContext<\n HTMLTableElement,\n HTMLChakraProps<\"table\">\n>(\"table\", \"calendarGrid\");\n\n/**\n * Slot component for individual calendar cells.\n */\nexport const DateRangePickerCalendarCellSlot = withContext<\n HTMLTableCellElement,\n HTMLChakraProps<\"td\">\n>(\"td\", \"calendarCell\");\n","import { Flex, Text, TimeInput } from \"@/components\";\nimport { useContext, useRef, useEffect } from \"react\";\nimport { useLocale } from \"react-aria\";\nimport { DateRangePickerStateContext } from \"react-aria-components\";\nimport type { DateRangePickerTimeInputProps } from \"../date-range-picker.types\";\n\nexport const DateRangePickerTimeInput = ({\n hideTimeZone,\n hourCycle,\n}: DateRangePickerTimeInputProps) => {\n const { locale } = useLocale();\n const dateRangePickerState = useContext(DateRangePickerStateContext);\n const { granularity, value } = dateRangePickerState!;\n const timeInputRef = useRef<HTMLDivElement>(null);\n const previousValueRef = useRef(value);\n\n // do not show up to the party if you're not invited\n if (granularity === \"day\") {\n return null;\n }\n\n // Focus the time input when date range changes (user selects dates from calendar)\n useEffect(() => {\n let timeoutId: ReturnType<typeof setTimeout> | undefined;\n\n // Check if date range changed by comparing start and end dates\n const hasValueChanged =\n (value?.start &&\n previousValueRef.current?.start?.compare(value.start) !== 0) ||\n (value?.end && previousValueRef.current?.end?.compare(value.end) !== 0);\n\n if (hasValueChanged) {\n // Only auto-focus if no time input segment currently has focus\n // This prevents stealing focus during user interaction with time segments\n const container = timeInputRef.current;\n const activeElement = document.activeElement;\n const hasTimeSegmentFocus =\n container?.contains(activeElement) &&\n activeElement?.getAttribute(\"role\") === \"spinbutton\";\n\n if (!hasTimeSegmentFocus) {\n // Small delay to ensure the DOM is ready\n timeoutId = setTimeout(() => {\n // Find the first focusable segment within the time input container\n if (container) {\n const firstSegment = container.querySelector(\n '[role=\"spinbutton\"]'\n ) as HTMLElement;\n\n if (firstSegment) {\n firstSegment.focus();\n }\n }\n }, 50);\n }\n }\n\n previousValueRef.current = value;\n\n // Cleanup timeout on effect re-run or unmount to prevent memory leaks\n return () => {\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n };\n }, [value]);\n\n return (\n <Flex\n ref={timeInputRef}\n borderTop=\"solid-25\"\n borderColor=\"neutral.3\"\n py=\"300\"\n px=\"400\"\n alignItems=\"center\"\n justifyContent=\"center\"\n gap=\"200\"\n >\n {/* Start DateInput with separate label */}\n <Flex alignItems=\"center\" gap=\"200\">\n {/* TODO: translate hardcoded string */}\n <Text\n textStyle=\"xs\"\n fontWeight=\"500\"\n color=\"neutral.12\"\n minWidth=\"fit-content\"\n >\n Start time\n </Text>\n <TimeInput\n slot=\"startTimeInput\"\n locale={locale}\n variant=\"ghost\"\n size=\"sm\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n </Flex>\n\n {/* End DateInput with separate label */}\n <Flex alignItems=\"center\" gap=\"200\">\n {/* TODO: translate hardcoded string */}\n <Text\n textStyle=\"xs\"\n fontWeight=\"500\"\n color=\"neutral.12\"\n minWidth=\"fit-content\"\n >\n End time\n </Text>\n <TimeInput\n slot=\"endTimeInput\"\n locale={locale}\n variant=\"ghost\"\n size=\"sm\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n </Flex>\n </Flex>\n );\n};\n","import { useContext, type ReactNode } from \"react\";\nimport {\n Provider,\n ButtonContext,\n DateRangePickerStateContext,\n TimeFieldContext,\n useSlottedContext,\n} from \"react-aria-components\";\nimport type { PressEvent, TimeValue } from \"react-aria\";\n\nexport const DateRangePickerCustomContext = ({\n children,\n}: {\n children: ReactNode;\n}) => {\n const buttonContext = useSlottedContext(ButtonContext) || {};\n const dateRangePickerState = useContext(DateRangePickerStateContext);\n\n // Check if all 6 segments (start: day, month, year; end: day, month, year) have values\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const hasCompleteRangeDate = (date: any) =>\n date?.day && date?.month && date?.year;\n\n const incompleteValue =\n !dateRangePickerState?.value ||\n !hasCompleteRangeDate(dateRangePickerState.value.start) ||\n !hasCompleteRangeDate(dateRangePickerState.value.end);\n\n const { granularity } = dateRangePickerState!;\n\n // Extract time values from start and end dates separately\n const startTimeValue =\n dateRangePickerState?.value?.start &&\n \"hour\" in dateRangePickerState.value.start\n ? dateRangePickerState.value.start\n : null;\n const endTimeValue =\n dateRangePickerState?.value?.end && \"hour\" in dateRangePickerState.value.end\n ? dateRangePickerState.value.end\n : null;\n\n // Try to get disabled state from the button context\n const isDateRangePickerDisabled = buttonContext?.isDisabled;\n\n // Generate default aria-label based on granularity if not provided\n const getDefaultTimeInputAriaLabel = (type: \"start\" | \"end\") => {\n const prefix = type === \"start\" ? \"Start\" : \"End\";\n switch (granularity) {\n case \"hour\":\n return `${prefix} time (hour)`;\n case \"minute\":\n return `${prefix} time (hour and minute)`;\n case \"second\":\n return `${prefix} time (hour, minute, and second)`;\n default:\n return `${prefix} time`;\n }\n };\n\n /**\n * Button slots\n * ================================\n */\n const buttonSlots = {\n /** toggles the calendar popover */\n calendarToggle: {\n ...buttonContext,\n onPress: (event: PressEvent) => {\n // Ensure any active input (e.g., date picker segment) loses focus\n // because blurring the input will close the popover if it's open (or was just opened)\n const activeElement = document?.activeElement as HTMLElement | null;\n\n if (activeElement) {\n activeElement.blur();\n }\n\n buttonContext.onPress?.(event);\n },\n },\n /** Clear button that displays when there's a value in each segment - hidden from both visual and screen readers when there's no value */\n clear: {\n // Clear both start and end values\n onPress: () => dateRangePickerState?.setValue(null),\n \"aria-label\": \"Clear input value\",\n isDisabled: isDateRangePickerDisabled,\n // Hide the button when there's no value\n style: incompleteValue ? { display: \"none\" } : undefined,\n \"aria-hidden\": incompleteValue ? true : undefined,\n },\n };\n\n /**\n * TimeInput slots\n * ================================\n */\n\n // Separate time input slots for start and end times\n const timeInputSlots = {\n startTimeInput: {\n value: startTimeValue,\n onChange: (value: TimeValue | null) => {\n if (value !== null && dateRangePickerState?.value?.start) {\n // Update the start date with the new time\n const currentValue = dateRangePickerState.value;\n const startDate = currentValue.start;\n const endDate = currentValue.end;\n if (startDate && endDate) {\n const newStartDate = startDate.set({\n hour: value.hour,\n minute: value.minute || 0,\n second: value.second || 0,\n millisecond: value.millisecond || 0,\n });\n\n dateRangePickerState.setValue({\n start: newStartDate,\n end: endDate,\n });\n }\n }\n },\n granularity: granularity === \"day\" ? undefined : granularity,\n \"aria-label\": getDefaultTimeInputAriaLabel(\"start\"),\n },\n endTimeInput: {\n value: endTimeValue,\n onChange: (value: TimeValue | null) => {\n if (value !== null && dateRangePickerState?.value?.end) {\n // Update the end date with the new time\n const currentValue = dateRangePickerState.value;\n const startDate = currentValue.start;\n const endDate = currentValue.end;\n if (startDate && endDate) {\n const newEndDate = endDate.set({\n hour: value.hour,\n minute: value.minute || 0,\n second: value.second || 0,\n millisecond: value.millisecond || 0,\n });\n\n dateRangePickerState.setValue({\n start: startDate,\n end: newEndDate,\n });\n }\n }\n },\n granularity: granularity === \"day\" ? undefined : granularity,\n \"aria-label\": getDefaultTimeInputAriaLabel(\"end\"),\n },\n };\n\n return (\n <Provider\n values={[\n [\n ButtonContext,\n {\n slots: buttonSlots,\n },\n ],\n [TimeFieldContext, { slots: timeInputSlots }],\n ]}\n >\n {children}\n </Provider>\n );\n};\n","import {\n DateRangePickerRootSlot,\n DateRangePickerGroupSlot,\n DateRangePickerTriggerSlot,\n DateRangePickerPopoverSlot,\n DateRangePickerCalendarSlot,\n} from \"./date-range-picker.slots\";\n\nimport { CalendarMonth, Close } from \"@commercetools/nimbus-icons\";\n\nimport {\n DateRangePicker as ReactAriaDateRangePicker,\n Group,\n Popover,\n Dialog,\n} from \"react-aria-components\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { dateRangePickerSlotRecipe } from \"./date-range-picker.recipe\";\nimport type { DateRangePickerProps } from \"./date-range-picker.types\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport { DateInput, RangeCalendar, IconButton, Text } from \"@/components\";\nimport { DateRangePickerTimeInput } from \"./components/date-range-picker.time-input\";\nimport { DateRangePickerCustomContext } from \"./components/date-range-picker.custom-context\";\n\n/**\n * DateRangePicker\n * ============================================================\n * Combines a DateInput with a RangeCalendar popover for date range selection.\n * Users can either type a date range directly or select from the calendar.\n */\nexport const DateRangePicker = (props: DateRangePickerProps) => {\n // Forward hideTimeZone and hourCycle to child components (footer time inputs)\n const { granularity = \"day\", hideTimeZone, hourCycle } = props;\n const recipe = useSlotRecipe({ recipe: dateRangePickerSlotRecipe });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(props);\n\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n\n // Extract size and variant from recipe props to pass to DateInputs\n const { size = \"md\" } = recipeProps;\n\n // the size of the buttons overlaying the input\n const overlayButtonSize = size === \"md\" ? \"xs\" : \"2xs\";\n\n // When granularity is \"day\", use the prop value (defaults to true if not provided)\n // For other granularities (time-based), force to false so users can set both date and time\n const shouldCloseOnSelect =\n granularity === \"day\" ? props.shouldCloseOnSelect : false;\n\n return (\n <DateRangePickerRootSlot {...recipeProps} {...styleProps} asChild>\n <ReactAriaDateRangePicker\n {...otherProps}\n shouldCloseOnSelect={shouldCloseOnSelect}\n >\n <DateRangePickerCustomContext>\n <DateRangePickerGroupSlot asChild>\n <Group>\n <DateInput\n slot=\"start\"\n size={size}\n variant=\"plain\"\n width=\"auto\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n <Text\n as=\"span\"\n px=\"150\"\n color=\"neutral.11\"\n userSelect=\"none\"\n aria-hidden=\"true\"\n slot={null}\n >\n –\n </Text>\n <DateInput\n slot=\"end\"\n size={size}\n variant=\"plain\"\n width=\"auto\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n <DateRangePickerTriggerSlot>\n {/* @ts-expect-error react aria is adding the aria-label prop */}\n <IconButton\n tone=\"primary\"\n variant=\"ghost\"\n size={overlayButtonSize}\n slot=\"clear\"\n >\n <Close />\n </IconButton>\n {/* @ts-expect-error react aria is adding the aria-label prop */}\n <IconButton\n tone=\"primary\"\n variant=\"ghost\"\n size={overlayButtonSize}\n slot=\"calendarToggle\"\n >\n <CalendarMonth />\n </IconButton>\n </DateRangePickerTriggerSlot>\n </Group>\n </DateRangePickerGroupSlot>\n <DateRangePickerPopoverSlot asChild>\n <Popover placement=\"bottom end\">\n <Dialog>\n <DateRangePickerCalendarSlot>\n <RangeCalendar />\n </DateRangePickerCalendarSlot>\n <DateRangePickerTimeInput\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n </Dialog>\n </Popover>\n </DateRangePickerPopoverSlot>\n </DateRangePickerCustomContext>\n </ReactAriaDateRangePicker>\n </DateRangePickerRootSlot>\n );\n};\n\nDateRangePicker.displayName = \"DateRangePicker\";\n"],"names":["withProvider","withContext","createSlotRecipeContext","dateRangePickerSlotRecipe","DateRangePickerRootSlot","DateRangePickerGroupSlot","DateRangePickerTriggerSlot","DateRangePickerPopoverSlot","DateRangePickerCalendarSlot","DateRangePickerTimeInput","hideTimeZone","hourCycle","locale","useLocale","dateRangePickerState","useContext","DateRangePickerStateContext","granularity","value","timeInputRef","useRef","previousValueRef","useEffect","timeoutId","container","activeElement","firstSegment","jsxs","Flex","jsx","Text","TimeInput","DateRangePickerCustomContext","children","buttonContext","useSlottedContext","ButtonContext","hasCompleteRangeDate","date","incompleteValue","startTimeValue","endTimeValue","isDateRangePickerDisabled","getDefaultTimeInputAriaLabel","type","prefix","buttonSlots","event","timeInputSlots","currentValue","startDate","endDate","newStartDate","newEndDate","Provider","TimeFieldContext","DateRangePicker","props","recipe","useSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","size","overlayButtonSize","shouldCloseOnSelect","ReactAriaDateRangePicker","Group","DateInput","IconButton","Close","CalendarMonth","Popover","Dialog","RangeCalendar"],"mappings":";;;;;;;;;;;;;;;;;;;AAyBA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,QAAQC;AACV,CAAC,GAMYC,IAA0B,gBAAAJ,EAGrC,OAAO,MAAM,GAKFK,IAA2B,gBAAAJ,EAGtC,OAAO,OAAO,GAKHK,IAA6B,gBAAAL,EAGxC,OAAO,SAAS,GAKLM,IAA6B,gBAAAN,EAGxC,OAAO,SAAS,GAKLO,IAA8B,gBAAAP,EAGzC,OAAO,UAAU,GC9DNQ,IAA2B,CAAC;AAAA,EACvC,cAAAC;AAAA,EACA,WAAAC;AACF,MAAqC;AACnC,QAAM,EAAE,QAAAC,EAAA,IAAWC,EAAA,GACbC,IAAuBC,EAAWC,CAA2B,GAC7D,EAAE,aAAAC,GAAa,OAAAC,EAAA,IAAUJ,GACzBK,IAAeC,EA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GAAA,EACC,UAAA;AAAA,UAAA,gBAAA9C,EAACrB,GAAA,EACC,UAAA,gBAAAqB,EAAC+C,GAAA,CAAA,CAAc,GACjB;AAAA,UACA,gBAAA/C;AAAA,YAACpB;AAAA,YAAA;AAAA,cACC,cAAAC;AAAA,cACA,WAAAC;AAAA,YAAA;AAAA,UAAA;AAAA,QACF,EAAA,CACF,GACF,EAAA,CACF;AAAA,MAAA,EAAA,CACF;AAAA,IAAA;AAAA,EAAA,GAEJ;AAEJ;AAEA6C,EAAgB,cAAc;"}
|
|
1
|
+
{"version":3,"file":"date-range-picker-vzDrtZ94.es.js","sources":["../../src/components/date-range-picker/date-range-picker.slots.tsx","../../src/components/date-range-picker/components/date-range-picker.time-input.tsx","../../src/components/date-range-picker/components/date-range-picker.custom-context.tsx","../../src/components/date-range-picker/date-range-picker.tsx"],"sourcesContent":["import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createSlotRecipeContext,\n} from \"@chakra-ui/react/styled-system\";\n\nimport { dateRangePickerSlotRecipe } from \"./date-range-picker.recipe\";\n\n/**\n * Base recipe props interface that combines Chakra UI's recipe props\n * with the unstyled prop option for the div element.\n */\ninterface DateRangePickerRecipeProps extends RecipeProps<\"div\">, UnstyledProp {}\n\n/**\n * Root props interface that extends Chakra's HTML props with our recipe props.\n * This creates a complete set of props for the root element, combining\n * HTML attributes, Chakra's styling system, and our custom recipe props.\n */\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface DateRangePickerRootProps\n extends HTMLChakraProps<\"div\", DateRangePickerRecipeProps> {}\n\n// Correctly destructure from createSlotRecipeContext based on project examples\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: dateRangePickerSlotRecipe,\n});\n\n/**\n * Root component that provides the styling context for the DateRangePicker component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const DateRangePickerRootSlot = withProvider<\n HTMLDivElement,\n DateRangePickerRootProps\n>(\"div\", \"root\");\n\n/**\n * Slot component for the input group containing the DateInput and trigger button.\n */\nexport const DateRangePickerGroupSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"group\");\n\n/**\n * Slot component for the trigger button that opens the calendar popover.\n */\nexport const DateRangePickerTriggerSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"trigger\");\n\n/**\n * Slot component for the popover container.\n */\nexport const DateRangePickerPopoverSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"popover\");\n\n/**\n * Slot component for the calendar container within the popover.\n */\nexport const DateRangePickerCalendarSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"calendar\");\n\n/**\n * Slot component for the calendar header.\n */\nexport const DateRangePickerCalendarHeaderSlot = withContext<\n HTMLElement,\n HTMLChakraProps<\"header\">\n>(\"header\", \"calendarHeader\");\n\n/**\n * Slot component for the calendar grid.\n */\nexport const DateRangePickerCalendarGridSlot = withContext<\n HTMLTableElement,\n HTMLChakraProps<\"table\">\n>(\"table\", \"calendarGrid\");\n\n/**\n * Slot component for individual calendar cells.\n */\nexport const DateRangePickerCalendarCellSlot = withContext<\n HTMLTableCellElement,\n HTMLChakraProps<\"td\">\n>(\"td\", \"calendarCell\");\n","import { Flex, Text, TimeInput } from \"@/components\";\nimport { useContext, useRef, useEffect } from \"react\";\nimport { useLocale } from \"react-aria\";\nimport { DateRangePickerStateContext } from \"react-aria-components\";\nimport type { DateRangePickerTimeInputProps } from \"../date-range-picker.types\";\n\nexport const DateRangePickerTimeInput = ({\n hideTimeZone,\n hourCycle,\n}: DateRangePickerTimeInputProps) => {\n const { locale } = useLocale();\n const dateRangePickerState = useContext(DateRangePickerStateContext);\n const { granularity, value } = dateRangePickerState!;\n const timeInputRef = useRef<HTMLDivElement>(null);\n const previousValueRef = useRef(value);\n\n // do not show up to the party if you're not invited\n if (granularity === \"day\") {\n return null;\n }\n\n // Focus the time input when date range changes (user selects dates from calendar)\n useEffect(() => {\n let timeoutId: ReturnType<typeof setTimeout> | undefined;\n\n // Check if date range changed by comparing start and end dates\n const hasValueChanged =\n (value?.start &&\n previousValueRef.current?.start?.compare(value.start) !== 0) ||\n (value?.end && previousValueRef.current?.end?.compare(value.end) !== 0);\n\n if (hasValueChanged) {\n // Only auto-focus if no time input segment currently has focus\n // This prevents stealing focus during user interaction with time segments\n const container = timeInputRef.current;\n const activeElement = document.activeElement;\n const hasTimeSegmentFocus =\n container?.contains(activeElement) &&\n activeElement?.getAttribute(\"role\") === \"spinbutton\";\n\n if (!hasTimeSegmentFocus) {\n // Small delay to ensure the DOM is ready\n timeoutId = setTimeout(() => {\n // Find the first focusable segment within the time input container\n if (container) {\n const firstSegment = container.querySelector(\n '[role=\"spinbutton\"]'\n ) as HTMLElement;\n\n if (firstSegment) {\n firstSegment.focus();\n }\n }\n }, 50);\n }\n }\n\n previousValueRef.current = value;\n\n // Cleanup timeout on effect re-run or unmount to prevent memory leaks\n return () => {\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n };\n }, [value]);\n\n return (\n <Flex\n ref={timeInputRef}\n borderTop=\"solid-25\"\n borderColor=\"neutral.3\"\n py=\"300\"\n px=\"400\"\n alignItems=\"center\"\n justifyContent=\"center\"\n gap=\"200\"\n >\n {/* Start DateInput with separate label */}\n <Flex alignItems=\"center\" gap=\"200\">\n {/* TODO: translate hardcoded string */}\n <Text\n textStyle=\"xs\"\n fontWeight=\"500\"\n color=\"neutral.12\"\n minWidth=\"fit-content\"\n >\n Start time\n </Text>\n <TimeInput\n slot=\"startTimeInput\"\n locale={locale}\n variant=\"ghost\"\n size=\"sm\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n </Flex>\n\n {/* End DateInput with separate label */}\n <Flex alignItems=\"center\" gap=\"200\">\n {/* TODO: translate hardcoded string */}\n <Text\n textStyle=\"xs\"\n fontWeight=\"500\"\n color=\"neutral.12\"\n minWidth=\"fit-content\"\n >\n End time\n </Text>\n <TimeInput\n slot=\"endTimeInput\"\n locale={locale}\n variant=\"ghost\"\n size=\"sm\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n </Flex>\n </Flex>\n );\n};\n","import { useContext, type ReactNode } from \"react\";\nimport {\n Provider,\n ButtonContext,\n DateRangePickerStateContext,\n TimeFieldContext,\n useSlottedContext,\n} from \"react-aria-components\";\nimport type { PressEvent, TimeValue } from \"react-aria\";\n\nexport const DateRangePickerCustomContext = ({\n children,\n}: {\n children: ReactNode;\n}) => {\n const buttonContext = useSlottedContext(ButtonContext) || {};\n const dateRangePickerState = useContext(DateRangePickerStateContext);\n\n // Check if all 6 segments (start: day, month, year; end: day, month, year) have values\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const hasCompleteRangeDate = (date: any) =>\n date?.day && date?.month && date?.year;\n\n const incompleteValue =\n !dateRangePickerState?.value ||\n !hasCompleteRangeDate(dateRangePickerState.value.start) ||\n !hasCompleteRangeDate(dateRangePickerState.value.end);\n\n const { granularity } = dateRangePickerState!;\n\n // Extract time values from start and end dates separately\n const startTimeValue =\n dateRangePickerState?.value?.start &&\n \"hour\" in dateRangePickerState.value.start\n ? dateRangePickerState.value.start\n : null;\n const endTimeValue =\n dateRangePickerState?.value?.end && \"hour\" in dateRangePickerState.value.end\n ? dateRangePickerState.value.end\n : null;\n\n // Try to get disabled state from the button context\n const isDateRangePickerDisabled = buttonContext?.isDisabled;\n\n // Generate default aria-label based on granularity if not provided\n const getDefaultTimeInputAriaLabel = (type: \"start\" | \"end\") => {\n const prefix = type === \"start\" ? \"Start\" : \"End\";\n switch (granularity) {\n case \"hour\":\n return `${prefix} time (hour)`;\n case \"minute\":\n return `${prefix} time (hour and minute)`;\n case \"second\":\n return `${prefix} time (hour, minute, and second)`;\n default:\n return `${prefix} time`;\n }\n };\n\n /**\n * Button slots\n * ================================\n */\n const buttonSlots = {\n /** toggles the calendar popover */\n calendarToggle: {\n ...buttonContext,\n onPress: (event: PressEvent) => {\n // Ensure any active input (e.g., date picker segment) loses focus\n // because blurring the input will close the popover if it's open (or was just opened)\n const activeElement = document?.activeElement as HTMLElement | null;\n\n if (activeElement) {\n activeElement.blur();\n }\n\n buttonContext.onPress?.(event);\n },\n },\n /** Clear button that displays when there's a value in each segment - hidden from both visual and screen readers when there's no value */\n clear: {\n // Clear both start and end values\n onPress: () => dateRangePickerState?.setValue(null),\n \"aria-label\": \"Clear input value\",\n isDisabled: isDateRangePickerDisabled,\n // Hide the button when there's no value\n style: incompleteValue ? { display: \"none\" } : undefined,\n \"aria-hidden\": incompleteValue ? true : undefined,\n },\n };\n\n /**\n * TimeInput slots\n * ================================\n */\n\n // Separate time input slots for start and end times\n const timeInputSlots = {\n startTimeInput: {\n value: startTimeValue,\n onChange: (value: TimeValue | null) => {\n if (value !== null && dateRangePickerState?.value?.start) {\n // Update the start date with the new time\n const currentValue = dateRangePickerState.value;\n const startDate = currentValue.start;\n const endDate = currentValue.end;\n if (startDate && endDate) {\n const newStartDate = startDate.set({\n hour: value.hour,\n minute: value.minute || 0,\n second: value.second || 0,\n millisecond: value.millisecond || 0,\n });\n\n dateRangePickerState.setValue({\n start: newStartDate,\n end: endDate,\n });\n }\n }\n },\n granularity: granularity === \"day\" ? undefined : granularity,\n \"aria-label\": getDefaultTimeInputAriaLabel(\"start\"),\n },\n endTimeInput: {\n value: endTimeValue,\n onChange: (value: TimeValue | null) => {\n if (value !== null && dateRangePickerState?.value?.end) {\n // Update the end date with the new time\n const currentValue = dateRangePickerState.value;\n const startDate = currentValue.start;\n const endDate = currentValue.end;\n if (startDate && endDate) {\n const newEndDate = endDate.set({\n hour: value.hour,\n minute: value.minute || 0,\n second: value.second || 0,\n millisecond: value.millisecond || 0,\n });\n\n dateRangePickerState.setValue({\n start: startDate,\n end: newEndDate,\n });\n }\n }\n },\n granularity: granularity === \"day\" ? undefined : granularity,\n \"aria-label\": getDefaultTimeInputAriaLabel(\"end\"),\n },\n };\n\n return (\n <Provider\n values={[\n [\n ButtonContext,\n {\n slots: buttonSlots,\n },\n ],\n [TimeFieldContext, { slots: timeInputSlots }],\n ]}\n >\n {children}\n </Provider>\n );\n};\n","import {\n DateRangePickerRootSlot,\n DateRangePickerGroupSlot,\n DateRangePickerTriggerSlot,\n DateRangePickerPopoverSlot,\n DateRangePickerCalendarSlot,\n} from \"./date-range-picker.slots\";\n\nimport { CalendarMonth, Close } from \"@commercetools/nimbus-icons\";\n\nimport {\n DateRangePicker as ReactAriaDateRangePicker,\n Group,\n Popover,\n Dialog,\n} from \"react-aria-components\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { dateRangePickerSlotRecipe } from \"./date-range-picker.recipe\";\nimport type { DateRangePickerProps } from \"./date-range-picker.types\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport { DateInput, RangeCalendar, IconButton, Text } from \"@/components\";\nimport { DateRangePickerTimeInput } from \"./components/date-range-picker.time-input\";\nimport { DateRangePickerCustomContext } from \"./components/date-range-picker.custom-context\";\n\n/**\n * DateRangePicker\n * ============================================================\n * Combines a DateInput with a RangeCalendar popover for date range selection.\n * Users can either type a date range directly or select from the calendar.\n */\nexport const DateRangePicker = (props: DateRangePickerProps) => {\n // Forward hideTimeZone and hourCycle to child components (footer time inputs)\n const { granularity = \"day\", hideTimeZone, hourCycle } = props;\n const recipe = useSlotRecipe({ recipe: dateRangePickerSlotRecipe });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(props);\n\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n\n // Extract size and variant from recipe props to pass to DateInputs\n const { size = \"md\" } = recipeProps;\n\n // the size of the buttons overlaying the input\n const overlayButtonSize = size === \"md\" ? \"xs\" : \"2xs\";\n\n // When granularity is \"day\", use the prop value (defaults to true if not provided)\n // For other granularities (time-based), force to false so users can set both date and time\n const shouldCloseOnSelect =\n granularity === \"day\" ? props.shouldCloseOnSelect : false;\n\n return (\n <DateRangePickerRootSlot {...recipeProps} {...styleProps} asChild>\n <ReactAriaDateRangePicker\n {...otherProps}\n shouldCloseOnSelect={shouldCloseOnSelect}\n >\n <DateRangePickerCustomContext>\n <DateRangePickerGroupSlot asChild>\n <Group>\n <DateInput\n slot=\"start\"\n size={size}\n variant=\"plain\"\n width=\"auto\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n <Text\n as=\"span\"\n px=\"150\"\n color=\"neutral.11\"\n userSelect=\"none\"\n aria-hidden=\"true\"\n slot={null}\n >\n –\n </Text>\n <DateInput\n slot=\"end\"\n size={size}\n variant=\"plain\"\n width=\"auto\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n <DateRangePickerTriggerSlot>\n {/* @ts-expect-error react aria is adding the aria-label prop */}\n <IconButton\n tone=\"primary\"\n variant=\"ghost\"\n size={overlayButtonSize}\n slot=\"clear\"\n >\n <Close />\n </IconButton>\n {/* @ts-expect-error react aria is adding the aria-label prop */}\n <IconButton\n tone=\"primary\"\n variant=\"ghost\"\n size={overlayButtonSize}\n slot=\"calendarToggle\"\n >\n <CalendarMonth />\n </IconButton>\n </DateRangePickerTriggerSlot>\n </Group>\n </DateRangePickerGroupSlot>\n <DateRangePickerPopoverSlot asChild>\n <Popover placement=\"bottom end\">\n <Dialog>\n <DateRangePickerCalendarSlot>\n <RangeCalendar />\n </DateRangePickerCalendarSlot>\n <DateRangePickerTimeInput\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n </Dialog>\n </Popover>\n </DateRangePickerPopoverSlot>\n </DateRangePickerCustomContext>\n </ReactAriaDateRangePicker>\n </DateRangePickerRootSlot>\n );\n};\n\nDateRangePicker.displayName = \"DateRangePicker\";\n"],"names":["withProvider","withContext","createSlotRecipeContext","dateRangePickerSlotRecipe","DateRangePickerRootSlot","DateRangePickerGroupSlot","DateRangePickerTriggerSlot","DateRangePickerPopoverSlot","DateRangePickerCalendarSlot","DateRangePickerTimeInput","hideTimeZone","hourCycle","locale","useLocale","dateRangePickerState","useContext","DateRangePickerStateContext","granularity","value","timeInputRef","useRef","previousValueRef","useEffect","timeoutId","container","activeElement","firstSegment","jsxs","Flex","jsx","Text","TimeInput","DateRangePickerCustomContext","children","buttonContext","useSlottedContext","ButtonContext","hasCompleteRangeDate","date","incompleteValue","startTimeValue","endTimeValue","isDateRangePickerDisabled","getDefaultTimeInputAriaLabel","type","prefix","buttonSlots","event","timeInputSlots","currentValue","startDate","endDate","newStartDate","newEndDate","Provider","TimeFieldContext","DateRangePicker","props","recipe","useSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","size","overlayButtonSize","shouldCloseOnSelect","ReactAriaDateRangePicker","Group","DateInput","IconButton","Close","CalendarMonth","Popover","Dialog","RangeCalendar"],"mappings":";;;;;;;;;;;;;;;;;;;AAyBA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,QAAQC;AACV,CAAC,GAMYC,IAA0B,gBAAAJ,EAGrC,OAAO,MAAM,GAKFK,IAA2B,gBAAAJ,EAGtC,OAAO,OAAO,GAKHK,IAA6B,gBAAAL,EAGxC,OAAO,SAAS,GAKLM,IAA6B,gBAAAN,EAGxC,OAAO,SAAS,GAKLO,IAA8B,gBAAAP,EAGzC,OAAO,UAAU,GC9DNQ,IAA2B,CAAC;AAAA,EACvC,cAAAC;AAAA,EACA,WAAAC;AACF,MAAqC;AACnC,QAAM,EAAE,QAAAC,EAAA,IAAWC,EAAA,GACbC,IAAuBC,EAAWC,CAA2B,GAC7D,EAAE,aAAAC,GAAa,OAAAC,EAAA,IAAUJ,GACzBK,IAAeC,EAAuB,IAAI,GAC1CC,IAAmBD,EAAOF,CAAK;AAGrC,SAAID,MAAgB,QACX,QAITK,EAAU,MAAM;AACd,QAAIC;AAQJ,QAJGL,GAAO,SACNG,EAAiB,SAAS,OAAO,QAAQH,EAAM,KAAK,MAAM,KAC3DA,GAAO,OAAOG,EAAiB,SAAS,KAAK,QAAQH,EAAM,GAAG,MAAM,GAElD;AAG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CACF;AAAA,MAAA,EAAA,CACF;AAAA,IAAA;AAAA,EAAA,GAEJ;AAEJ;AAEA6C,EAAgB,cAAc;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const f=require("react/jsx-runtime"),l=require("react"),u=require("@chakra-ui/react"),p=require("./config-Mt8_uyhI.cjs.js"),h=require("./create-recipe-context-D0_lCuqq.cjs.js"),R=require("./useObjectRef-dXOJdONs.cjs.js"),b=require("./mergeProps-
|
|
2
|
-
//# sourceMappingURL=divider-
|
|
1
|
+
"use strict";const f=require("react/jsx-runtime"),l=require("react"),u=require("@chakra-ui/react"),p=require("./config-Mt8_uyhI.cjs.js"),h=require("./create-recipe-context-D0_lCuqq.cjs.js"),R=require("./useObjectRef-dXOJdONs.cjs.js"),b=require("./mergeProps-DRkWdaVg.cjs.js"),v=require("./useSeparator-B-OtWwE7.cjs.js"),x=p.defineRecipe({className:"nimbus-divider",base:{border:"0",flexShrink:"0",colorPalette:"neutral",backgroundColor:"colorPalette.6"},variants:{orientation:{horizontal:{width:"100%",height:"25"},vertical:{width:"25",height:"100%"}}},defaultVariants:{orientation:"horizontal"}}),{withContext:$}=h.createRecipeContext({recipe:x}),q=$("div"),t=i=>{const{ref:o,as:n,orientation:e="horizontal",...r}=i,a=l.useRef(null),c=R.$df56164dff5785e2$export$4338b53315abf666(u.mergeRefs(a,o)),s=n||e==="vertical"?"div":"hr",{separatorProps:d}=v.$f4b273590fab9f93$export$52210f68a14655d0({orientation:e,...r});return f.jsx(q,{as:s,...b.$3ef42575df84b30b$export$9d1611c77c2fe928(r,{ref:c,orientation:e},d,{"aria-orientation":e})})};t.displayName="Divider";exports.Divider=t;
|
|
2
|
+
//# sourceMappingURL=divider-BZkfiFj5.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"divider-
|
|
1
|
+
{"version":3,"file":"divider-BZkfiFj5.cjs.js","sources":["../../src/components/divider/divider.recipe.ts","../../src/components/divider/divider.slots.tsx","../../src/components/divider/divider.tsx"],"sourcesContent":["import { defineRecipe } from \"@chakra-ui/react/styled-system\";\n\n/**\n * Recipe configuration for the Divider component.\n * Defines the styling variants and base styles using Chakra UI's recipe system.\n */\nexport const dividerRecipe = defineRecipe({\n className: \"nimbus-divider\",\n\n // Base styles applied to all instances of the component\n base: {\n border: \"0\",\n flexShrink: \"0\",\n colorPalette: \"neutral\",\n backgroundColor: \"colorPalette.6\",\n },\n\n // Available variants for customizing the component's appearance\n variants: {\n orientation: {\n horizontal: {\n width: \"100%\",\n height: \"25\",\n },\n vertical: {\n width: \"25\",\n height: \"100%\",\n },\n },\n },\n\n // Default variant values when not explicitly specified\n defaultVariants: {\n orientation: \"horizontal\",\n },\n});\n","import { createRecipeContext } from \"@chakra-ui/react/styled-system\";\n\nimport { dividerRecipe } from \"./divider.recipe\";\nimport type { DividerRootProps } from \"./divider.types\";\n\nconst { withContext } = createRecipeContext({ recipe: dividerRecipe });\n\nexport const DividerRoot = withContext<HTMLDivElement, DividerRootProps>(\"div\");\n","import { useRef } from \"react\";\nimport { useSeparator, useObjectRef, mergeProps } from \"react-aria\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { DividerRoot } from \"./divider.slots\";\nimport type { DividerProps } from \"./divider.types\";\n\n/**\n * Divider\n * ============================================================\n * A visual separator that divides content sections\n *\n * Features:\n *\n * - allows forwarding refs to the underlying DOM element\n * - accepts all native html 'HTMLDivElement' attributes (including aria- & data-attributes)\n * - supports 'variants', 'orientation', etc. configured in the recipe\n * - allows overriding styles by using style-props\n * - supports 'asChild' and 'as' to modify the underlying html-element (polymorphic)\n * - built with React Aria for accessibility\n */\n\nexport const Divider = (props: DividerProps) => {\n const { ref: forwardedRef, as, orientation = \"horizontal\", ...rest } = props;\n\n const localRef = useRef<HTMLDivElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n const elementType = as || orientation === \"vertical\" ? \"div\" : \"hr\";\n\n // Use React Aria's useSeparator hook for accessibility\n const { separatorProps } = useSeparator({\n orientation,\n ...rest,\n });\n\n return (\n <DividerRoot\n as={elementType}\n {...mergeProps(rest, { ref, orientation }, separatorProps, {\n \"aria-orientation\": orientation,\n })}\n />\n );\n};\n\nDivider.displayName = \"Divider\";\n"],"names":["dividerRecipe","defineRecipe","withContext","createRecipeContext","DividerRoot","Divider","props","forwardedRef","as","orientation","rest","localRef","useRef","ref","useObjectRef","mergeRefs","elementType","separatorProps","useSeparator","jsx","mergeProps"],"mappings":"gUAMaA,EAAgBC,EAAAA,aAAa,CACxC,UAAW,iBAGX,KAAM,CACJ,OAAQ,IACR,WAAY,IACZ,aAAc,UACd,gBAAiB,gBAAA,EAInB,SAAU,CACR,YAAa,CACX,WAAY,CACV,MAAO,OACP,OAAQ,IAAA,EAEV,SAAU,CACR,MAAO,KACP,OAAQ,MAAA,CACV,CACF,EAIF,gBAAiB,CACf,YAAa,YAAA,CAEjB,CAAC,EC9BK,CAAE,YAAAC,CAAA,EAAgBC,EAAAA,oBAAoB,CAAE,OAAQH,EAAe,EAExDI,EAAcF,EAA8C,KAAK,ECcjEG,EAAWC,GAAwB,CAC9C,KAAM,CAAE,IAAKC,EAAc,GAAAC,EAAI,YAAAC,EAAc,aAAc,GAAGC,GAASJ,EAEjEK,EAAWC,EAAAA,OAAuB,IAAI,EACtCC,EAAMC,EAAAA,0CAAaC,EAAAA,UAAUJ,EAAUJ,CAAY,CAAC,EAEpDS,EAAcR,GAAMC,IAAgB,WAAa,MAAQ,KAGzD,CAAE,eAAAQ,CAAA,EAAmBC,4CAAa,CACtC,YAAAT,EACA,GAAGC,CAAA,CACJ,EAED,OACES,EAAAA,IAACf,EAAA,CACC,GAAIY,EACH,GAAGI,EAAAA,0CAAWV,EAAM,CAAE,IAAAG,EAAK,YAAAJ,CAAA,EAAeQ,EAAgB,CACzD,mBAAoBR,CAAA,CACrB,CAAA,CAAA,CAGP,EAEAJ,EAAQ,YAAc"}
|
|
@@ -4,7 +4,7 @@ import { mergeRefs as m } from "@chakra-ui/react";
|
|
|
4
4
|
import { d as l } from "./config-ufbQ08Vi.es.js";
|
|
5
5
|
import { c as p } from "./create-recipe-context-i2odau3L.es.js";
|
|
6
6
|
import { $ as h } from "./useObjectRef-CaJ5pgjX.es.js";
|
|
7
|
-
import { $ } from "./mergeProps-
|
|
7
|
+
import { $ } from "./mergeProps-CtwSzqnr.es.js";
|
|
8
8
|
import { $ as b } from "./useSeparator-Dg70ACBm.es.js";
|
|
9
9
|
const v = /* @__PURE__ */ l({
|
|
10
10
|
className: "nimbus-divider",
|
|
@@ -51,4 +51,4 @@ u.displayName = "Divider";
|
|
|
51
51
|
export {
|
|
52
52
|
u as D
|
|
53
53
|
};
|
|
54
|
-
//# sourceMappingURL=divider-
|
|
54
|
+
//# sourceMappingURL=divider-Vtnb6QbI.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"divider-
|
|
1
|
+
{"version":3,"file":"divider-Vtnb6QbI.es.js","sources":["../../src/components/divider/divider.recipe.ts","../../src/components/divider/divider.slots.tsx","../../src/components/divider/divider.tsx"],"sourcesContent":["import { defineRecipe } from \"@chakra-ui/react/styled-system\";\n\n/**\n * Recipe configuration for the Divider component.\n * Defines the styling variants and base styles using Chakra UI's recipe system.\n */\nexport const dividerRecipe = defineRecipe({\n className: \"nimbus-divider\",\n\n // Base styles applied to all instances of the component\n base: {\n border: \"0\",\n flexShrink: \"0\",\n colorPalette: \"neutral\",\n backgroundColor: \"colorPalette.6\",\n },\n\n // Available variants for customizing the component's appearance\n variants: {\n orientation: {\n horizontal: {\n width: \"100%\",\n height: \"25\",\n },\n vertical: {\n width: \"25\",\n height: \"100%\",\n },\n },\n },\n\n // Default variant values when not explicitly specified\n defaultVariants: {\n orientation: \"horizontal\",\n },\n});\n","import { createRecipeContext } from \"@chakra-ui/react/styled-system\";\n\nimport { dividerRecipe } from \"./divider.recipe\";\nimport type { DividerRootProps } from \"./divider.types\";\n\nconst { withContext } = createRecipeContext({ recipe: dividerRecipe });\n\nexport const DividerRoot = withContext<HTMLDivElement, DividerRootProps>(\"div\");\n","import { useRef } from \"react\";\nimport { useSeparator, useObjectRef, mergeProps } from \"react-aria\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { DividerRoot } from \"./divider.slots\";\nimport type { DividerProps } from \"./divider.types\";\n\n/**\n * Divider\n * ============================================================\n * A visual separator that divides content sections\n *\n * Features:\n *\n * - allows forwarding refs to the underlying DOM element\n * - accepts all native html 'HTMLDivElement' attributes (including aria- & data-attributes)\n * - supports 'variants', 'orientation', etc. configured in the recipe\n * - allows overriding styles by using style-props\n * - supports 'asChild' and 'as' to modify the underlying html-element (polymorphic)\n * - built with React Aria for accessibility\n */\n\nexport const Divider = (props: DividerProps) => {\n const { ref: forwardedRef, as, orientation = \"horizontal\", ...rest } = props;\n\n const localRef = useRef<HTMLDivElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n const elementType = as || orientation === \"vertical\" ? \"div\" : \"hr\";\n\n // Use React Aria's useSeparator hook for accessibility\n const { separatorProps } = useSeparator({\n orientation,\n ...rest,\n });\n\n return (\n <DividerRoot\n as={elementType}\n {...mergeProps(rest, { ref, orientation }, separatorProps, {\n \"aria-orientation\": orientation,\n })}\n />\n );\n};\n\nDivider.displayName = \"Divider\";\n"],"names":["dividerRecipe","defineRecipe","withContext","createRecipeContext","DividerRoot","Divider","props","forwardedRef","as","orientation","rest","localRef","useRef","ref","useObjectRef","mergeRefs","elementType","separatorProps","useSeparator","jsx","mergeProps"],"mappings":";;;;;;;;AAMO,MAAMA,IAAgB,gBAAAC,EAAa;AAAA,EACxC,WAAW;AAAA;AAAA,EAGX,MAAM;AAAA,IACJ,QAAQ;AAAA,IACR,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,iBAAiB;AAAA,EAAA;AAAA;AAAA,EAInB,UAAU;AAAA,IACR,aAAa;AAAA,MACX,YAAY;AAAA,QACV,OAAO;AAAA,QACP,QAAQ;AAAA,MAAA;AAAA,MAEV,UAAU;AAAA,QACR,OAAO;AAAA,QACP,QAAQ;AAAA,MAAA;AAAA,IACV;AAAA,EACF;AAAA;AAAA,EAIF,iBAAiB;AAAA,IACf,aAAa;AAAA,EAAA;AAEjB,CAAC,GC9BK,EAAE,aAAAC,EAAA,IAAgB,gBAAAC,EAAoB,EAAE,QAAQH,GAAe,GAExDI,IAAc,gBAAAF,EAA8C,KAAK,GCcjEG,IAAU,CAACC,MAAwB;AAC9C,QAAM,EAAE,KAAKC,GAAc,IAAAC,GAAI,aAAAC,IAAc,cAAc,GAAGC,MAASJ,GAEjEK,IAAWC,EAAuB,IAAI,GACtCC,IAAMC,EAAaC,EAAUJ,GAAUJ,CAAY,CAAC,GAEpDS,IAAcR,KAAMC,MAAgB,aAAa,QAAQ,MAGzD,EAAE,gBAAAQ,EAAA,IAAmBC,EAAa;AAAA,IACtC,aAAAT;AAAA,IACA,GAAGC;AAAA,EAAA,CACJ;AAED,SACE,gBAAAS;AAAA,IAACf;AAAA,IAAA;AAAA,MACC,IAAIY;AAAA,MACH,GAAGI,EAAWV,GAAM,EAAE,KAAAG,GAAK,aAAAJ,EAAA,GAAeQ,GAAgB;AAAA,QACzD,oBAAoBR;AAAA,MAAA,CACrB;AAAA,IAAA;AAAA,EAAA;AAGP;AAEAJ,EAAQ,cAAc;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const t = (o) => {
|
|
2
|
+
var n;
|
|
3
|
+
return (n = o?.ownerDocument) !== null && n !== void 0 ? n : document;
|
|
4
|
+
}, d = (o) => o && "window" in o && o.window === o ? o : t(o).defaultView || window;
|
|
5
|
+
function c(o) {
|
|
6
|
+
return o !== null && typeof o == "object" && "nodeType" in o && typeof o.nodeType == "number";
|
|
7
|
+
}
|
|
8
|
+
function f(o) {
|
|
9
|
+
return c(o) && o.nodeType === Node.DOCUMENT_FRAGMENT_NODE && "host" in o;
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
d as $,
|
|
13
|
+
f as a,
|
|
14
|
+
t as b
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=domHelpers-InH3T0qs.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domHelpers-InH3T0qs.es.js","sources":["../../../../node_modules/.pnpm/@react-aria+utils@3.30.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/utils/dist/domHelpers.mjs"],"sourcesContent":["const $431fbd86ca7dc216$export$b204af158042fbac = (el)=>{\n var _el_ownerDocument;\n return (_el_ownerDocument = el === null || el === void 0 ? void 0 : el.ownerDocument) !== null && _el_ownerDocument !== void 0 ? _el_ownerDocument : document;\n};\nconst $431fbd86ca7dc216$export$f21a1ffae260145a = (el)=>{\n if (el && 'window' in el && el.window === el) return el;\n const doc = $431fbd86ca7dc216$export$b204af158042fbac(el);\n return doc.defaultView || window;\n};\n/**\n * Type guard that checks if a value is a Node. Verifies the presence and type of the nodeType property.\n */ function $431fbd86ca7dc216$var$isNode(value) {\n return value !== null && typeof value === 'object' && 'nodeType' in value && typeof value.nodeType === 'number';\n}\nfunction $431fbd86ca7dc216$export$af51f0f06c0f328a(node) {\n return $431fbd86ca7dc216$var$isNode(node) && node.nodeType === Node.DOCUMENT_FRAGMENT_NODE && 'host' in node;\n}\n\n\nexport {$431fbd86ca7dc216$export$b204af158042fbac as getOwnerDocument, $431fbd86ca7dc216$export$f21a1ffae260145a as getOwnerWindow, $431fbd86ca7dc216$export$af51f0f06c0f328a as isShadowRoot};\n//# sourceMappingURL=domHelpers.module.js.map\n"],"names":["$431fbd86ca7dc216$export$b204af158042fbac","el","_el_ownerDocument","$431fbd86ca7dc216$export$f21a1ffae260145a","$431fbd86ca7dc216$var$isNode","value","$431fbd86ca7dc216$export$af51f0f06c0f328a","node"],"mappings":"AAAK,MAACA,IAA4C,CAACC,MAAK;AACpD,MAAIC;AACJ,UAAQA,IAA4DD,GAAG,mBAAmB,QAAQC,MAAsB,SAASA,IAAoB;AACzJ,GACMC,IAA4C,CAACF,MAC3CA,KAAM,YAAYA,KAAMA,EAAG,WAAWA,IAAWA,IACzCD,EAA0CC,CAAE,EAC7C,eAAe;AAI1B,SAASG,EAA6BC,GAAO;AAC7C,SAAOA,MAAU,QAAQ,OAAOA,KAAU,YAAY,cAAcA,KAAS,OAAOA,EAAM,YAAa;AAC3G;AACA,SAASC,EAA0CC,GAAM;AACrD,SAAOH,EAA6BG,CAAI,KAAKA,EAAK,aAAa,KAAK,0BAA0B,UAAUA;AAC5G;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const c=f=>{var o;return(o=f?.ownerDocument)!==null&&o!==void 0?o:document},n=f=>f&&"window"in f&&f.window===f?f:c(f).defaultView||window;function d(f){return f!==null&&typeof f=="object"&&"nodeType"in f&&typeof f.nodeType=="number"}function t(f){return d(f)&&f.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in f}exports.$431fbd86ca7dc216$export$af51f0f06c0f328a=t;exports.$431fbd86ca7dc216$export$b204af158042fbac=c;exports.$431fbd86ca7dc216$export$f21a1ffae260145a=n;
|
|
2
|
+
//# sourceMappingURL=domHelpers-YAYZ9fE9.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domHelpers-YAYZ9fE9.cjs.js","sources":["../../../../node_modules/.pnpm/@react-aria+utils@3.30.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/utils/dist/domHelpers.mjs"],"sourcesContent":["const $431fbd86ca7dc216$export$b204af158042fbac = (el)=>{\n var _el_ownerDocument;\n return (_el_ownerDocument = el === null || el === void 0 ? void 0 : el.ownerDocument) !== null && _el_ownerDocument !== void 0 ? _el_ownerDocument : document;\n};\nconst $431fbd86ca7dc216$export$f21a1ffae260145a = (el)=>{\n if (el && 'window' in el && el.window === el) return el;\n const doc = $431fbd86ca7dc216$export$b204af158042fbac(el);\n return doc.defaultView || window;\n};\n/**\n * Type guard that checks if a value is a Node. Verifies the presence and type of the nodeType property.\n */ function $431fbd86ca7dc216$var$isNode(value) {\n return value !== null && typeof value === 'object' && 'nodeType' in value && typeof value.nodeType === 'number';\n}\nfunction $431fbd86ca7dc216$export$af51f0f06c0f328a(node) {\n return $431fbd86ca7dc216$var$isNode(node) && node.nodeType === Node.DOCUMENT_FRAGMENT_NODE && 'host' in node;\n}\n\n\nexport {$431fbd86ca7dc216$export$b204af158042fbac as getOwnerDocument, $431fbd86ca7dc216$export$f21a1ffae260145a as getOwnerWindow, $431fbd86ca7dc216$export$af51f0f06c0f328a as isShadowRoot};\n//# sourceMappingURL=domHelpers.module.js.map\n"],"names":["$431fbd86ca7dc216$export$b204af158042fbac","el","_el_ownerDocument","$431fbd86ca7dc216$export$f21a1ffae260145a","$431fbd86ca7dc216$var$isNode","value","$431fbd86ca7dc216$export$af51f0f06c0f328a","node"],"mappings":"aAAK,MAACA,EAA6CC,GAAK,CACpD,IAAIC,EACJ,OAAQA,EAA4DD,GAAG,iBAAmB,MAAQC,IAAsB,OAASA,EAAoB,QACzJ,EACMC,EAA6CF,GAC3CA,GAAM,WAAYA,GAAMA,EAAG,SAAWA,EAAWA,EACzCD,EAA0CC,CAAE,EAC7C,aAAe,OAI1B,SAASG,EAA6BC,EAAO,CAC7C,OAAOA,IAAU,MAAQ,OAAOA,GAAU,UAAY,aAAcA,GAAS,OAAOA,EAAM,UAAa,QAC3G,CACA,SAASC,EAA0CC,EAAM,CACrD,OAAOH,EAA6BG,CAAI,GAAKA,EAAK,WAAa,KAAK,wBAA0B,SAAUA,CAC5G","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const a=require("./useFocusVisible-CCKx2EYu.cjs.js"),t=require("./utils-3xKI25I1.cjs.js");let n=new Map,c=new Set;function f(){for(const[e]of n)"isConnected"in e&&!e.isConnected&&n.delete(e)}function i(e){requestAnimationFrame(()=>{f(),n.size===0?e():c.add(e)})}function s(e){const r=t.$431fbd86ca7dc216$export$b204af158042fbac(e),d=t.$d4ee10de306f2510$export$cd4e5573fbe2b576(r);if(a.$507fabe10e71c6fb$export$630ff653c5ada6a9()==="virtual"){let o=d;i(()=>{t.$d4ee10de306f2510$export$cd4e5573fbe2b576(r)===o&&e.isConnected&&t.$7215afc6de606d6b$export$de79e2c695e052f3(e)})}else t.$7215afc6de606d6b$export$de79e2c695e052f3(e)}exports.$3ad3f6e1647bc98d$export$80f3e147d781571c=s;exports.$bbed8b41f857bcc0$export$24490316f764c430=i;
|
|
2
|
+
//# sourceMappingURL=focusSafely-CgVjbH-x.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"focusSafely-
|
|
1
|
+
{"version":3,"file":"focusSafely-CgVjbH-x.cjs.js","sources":["../../../../node_modules/.pnpm/@react-aria+utils@3.30.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/utils/dist/runAfterTransition.mjs","../../../../node_modules/.pnpm/@react-aria+interactions@3.25.5_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/interactions/dist/focusSafely.mjs"],"sourcesContent":["/*\n * Copyright 2020 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 */ // We store a global list of elements that are currently transitioning,\n// mapped to a set of CSS properties that are transitioning for that element.\n// This is necessary rather than a simple count of transitions because of browser\n// bugs, e.g. Chrome sometimes fires both transitionend and transitioncancel rather\n// than one or the other. So we need to track what's actually transitioning so that\n// we can ignore these duplicate events.\nlet $bbed8b41f857bcc0$var$transitionsByElement = new Map();\n// A list of callbacks to call once there are no transitioning elements.\nlet $bbed8b41f857bcc0$var$transitionCallbacks = new Set();\nfunction $bbed8b41f857bcc0$var$setupGlobalEvents() {\n if (typeof window === 'undefined') return;\n function isTransitionEvent(event) {\n return 'propertyName' in event;\n }\n let onTransitionStart = (e)=>{\n if (!isTransitionEvent(e) || !e.target) return;\n // Add the transitioning property to the list for this element.\n let transitions = $bbed8b41f857bcc0$var$transitionsByElement.get(e.target);\n if (!transitions) {\n transitions = new Set();\n $bbed8b41f857bcc0$var$transitionsByElement.set(e.target, transitions);\n // The transitioncancel event must be registered on the element itself, rather than as a global\n // event. This enables us to handle when the node is deleted from the document while it is transitioning.\n // In that case, the cancel event would have nowhere to bubble to so we need to handle it directly.\n e.target.addEventListener('transitioncancel', onTransitionEnd, {\n once: true\n });\n }\n transitions.add(e.propertyName);\n };\n let onTransitionEnd = (e)=>{\n if (!isTransitionEvent(e) || !e.target) return;\n // Remove property from list of transitioning properties.\n let properties = $bbed8b41f857bcc0$var$transitionsByElement.get(e.target);\n if (!properties) return;\n properties.delete(e.propertyName);\n // If empty, remove transitioncancel event, and remove the element from the list of transitioning elements.\n if (properties.size === 0) {\n e.target.removeEventListener('transitioncancel', onTransitionEnd);\n $bbed8b41f857bcc0$var$transitionsByElement.delete(e.target);\n }\n // If no transitioning elements, call all of the queued callbacks.\n if ($bbed8b41f857bcc0$var$transitionsByElement.size === 0) {\n for (let cb of $bbed8b41f857bcc0$var$transitionCallbacks)cb();\n $bbed8b41f857bcc0$var$transitionCallbacks.clear();\n }\n };\n document.body.addEventListener('transitionrun', onTransitionStart);\n document.body.addEventListener('transitionend', onTransitionEnd);\n}\nif (typeof document !== 'undefined') {\n if (document.readyState !== 'loading') $bbed8b41f857bcc0$var$setupGlobalEvents();\n else document.addEventListener('DOMContentLoaded', $bbed8b41f857bcc0$var$setupGlobalEvents);\n}\n/**\n * Cleans up any elements that are no longer in the document.\n * This is necessary because we can't rely on transitionend events to fire\n * for elements that are removed from the document while transitioning.\n */ function $bbed8b41f857bcc0$var$cleanupDetachedElements() {\n for (const [eventTarget] of $bbed8b41f857bcc0$var$transitionsByElement)// Similar to `eventTarget instanceof Element && !eventTarget.isConnected`, but avoids\n // the explicit instanceof check, since it may be different in different contexts.\n if ('isConnected' in eventTarget && !eventTarget.isConnected) $bbed8b41f857bcc0$var$transitionsByElement.delete(eventTarget);\n}\nfunction $bbed8b41f857bcc0$export$24490316f764c430(fn) {\n // Wait one frame to see if an animation starts, e.g. a transition on mount.\n requestAnimationFrame(()=>{\n $bbed8b41f857bcc0$var$cleanupDetachedElements();\n // If no transitions are running, call the function immediately.\n // Otherwise, add it to a list of callbacks to run at the end of the animation.\n if ($bbed8b41f857bcc0$var$transitionsByElement.size === 0) fn();\n else $bbed8b41f857bcc0$var$transitionCallbacks.add(fn);\n });\n}\n\n\nexport {$bbed8b41f857bcc0$export$24490316f764c430 as runAfterTransition};\n//# sourceMappingURL=runAfterTransition.module.js.map\n","import {getInteractionModality as $507fabe10e71c6fb$export$630ff653c5ada6a9} from \"./useFocusVisible.mjs\";\nimport {getOwnerDocument as $k50bp$getOwnerDocument, getActiveElement as $k50bp$getActiveElement, runAfterTransition as $k50bp$runAfterTransition, focusWithoutScrolling as $k50bp$focusWithoutScrolling} from \"@react-aria/utils\";\n\n/*\n * Copyright 2020 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\nfunction $3ad3f6e1647bc98d$export$80f3e147d781571c(element) {\n // If the user is interacting with a virtual cursor, e.g. screen reader, then\n // wait until after any animated transitions that are currently occurring on\n // the page before shifting focus. This avoids issues with VoiceOver on iOS\n // causing the page to scroll when moving focus if the element is transitioning\n // from off the screen.\n const ownerDocument = (0, $k50bp$getOwnerDocument)(element);\n const activeElement = (0, $k50bp$getActiveElement)(ownerDocument);\n if ((0, $507fabe10e71c6fb$export$630ff653c5ada6a9)() === 'virtual') {\n let lastFocusedElement = activeElement;\n (0, $k50bp$runAfterTransition)(()=>{\n // If focus did not move and the element is still in the document, focus it.\n if ((0, $k50bp$getActiveElement)(ownerDocument) === lastFocusedElement && element.isConnected) (0, $k50bp$focusWithoutScrolling)(element);\n });\n } else (0, $k50bp$focusWithoutScrolling)(element);\n}\n\n\nexport {$3ad3f6e1647bc98d$export$80f3e147d781571c as focusSafely};\n//# sourceMappingURL=focusSafely.module.js.map\n"],"names":["$bbed8b41f857bcc0$var$transitionsByElement","$bbed8b41f857bcc0$var$transitionCallbacks","$bbed8b41f857bcc0$var$cleanupDetachedElements","eventTarget","$bbed8b41f857bcc0$export$24490316f764c430","fn","$3ad3f6e1647bc98d$export$80f3e147d781571c","element","ownerDocument","$k50bp$getOwnerDocument","activeElement","$k50bp$getActiveElement","$507fabe10e71c6fb$export$630ff653c5ada6a9","lastFocusedElement","$k50bp$runAfterTransition","$k50bp$focusWithoutScrolling"],"mappings":"uGAgBA,IAAIA,EAA6C,IAAI,IAEjDC,EAA4C,IAAI,IAkDhD,SAASC,GAAgD,CACzD,SAAW,CAACC,CAAW,IAAKH,EAExB,gBAAiBG,GAAe,CAACA,EAAY,aAAaH,EAA2C,OAAOG,CAAW,CAC/H,CACA,SAASC,EAA0CC,EAAI,CAEnD,sBAAsB,IAAI,CACtBH,EAA6C,EAGzCF,EAA2C,OAAS,EAAGK,EAAE,EACxDJ,EAA0C,IAAII,CAAE,CACzD,CAAC,CACL,CCnEA,SAASC,EAA0CC,EAAS,CAMxD,MAAMC,EAAoBC,EAAAA,0CAAyBF,CAAO,EACpDG,EAAoBC,EAAAA,0CAAyBH,CAAa,EAChE,GAAQI,EAAAA,0CAAyC,IAAQ,UAAW,CAChE,IAAIC,EAAqBH,EACrBI,EAA2B,IAAI,CAEvBH,EAAAA,0CAAyBH,CAAa,IAAMK,GAAsBN,EAAQ,aAAiBQ,EAAAA,0CAA8BR,CAAO,CAC5I,CAAC,CACL,MAAWQ,EAAAA,0CAA8BR,CAAO,CACpD","x_google_ignoreList":[0,1]}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { b as d } from "./useFocusVisible-
|
|
2
|
-
import {
|
|
3
|
-
import { $ as a } from "./focusWithoutScrolling-CDw3JYiq.es.js";
|
|
1
|
+
import { b as d } from "./useFocusVisible-DGwGbqVH.es.js";
|
|
2
|
+
import { $ as c, c as r, g as a } from "./utils-4CfAFtL7.es.js";
|
|
4
3
|
let t = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Set();
|
|
5
4
|
function s() {
|
|
6
5
|
for (const [e] of t)
|
|
@@ -11,7 +10,7 @@ function b(e) {
|
|
|
11
10
|
s(), t.size === 0 ? e() : f.add(e);
|
|
12
11
|
});
|
|
13
12
|
}
|
|
14
|
-
function
|
|
13
|
+
function u(e) {
|
|
15
14
|
const n = c(e), i = r(n);
|
|
16
15
|
if (d() === "virtual") {
|
|
17
16
|
let o = i;
|
|
@@ -21,7 +20,7 @@ function p(e) {
|
|
|
21
20
|
} else a(e);
|
|
22
21
|
}
|
|
23
22
|
export {
|
|
24
|
-
|
|
23
|
+
u as $,
|
|
25
24
|
b as a
|
|
26
25
|
};
|
|
27
|
-
//# sourceMappingURL=focusSafely-
|
|
26
|
+
//# sourceMappingURL=focusSafely-D8bIeV7X.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"focusSafely-
|
|
1
|
+
{"version":3,"file":"focusSafely-D8bIeV7X.es.js","sources":["../../../../node_modules/.pnpm/@react-aria+utils@3.30.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/utils/dist/runAfterTransition.mjs","../../../../node_modules/.pnpm/@react-aria+interactions@3.25.5_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/interactions/dist/focusSafely.mjs"],"sourcesContent":["/*\n * Copyright 2020 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 */ // We store a global list of elements that are currently transitioning,\n// mapped to a set of CSS properties that are transitioning for that element.\n// This is necessary rather than a simple count of transitions because of browser\n// bugs, e.g. Chrome sometimes fires both transitionend and transitioncancel rather\n// than one or the other. So we need to track what's actually transitioning so that\n// we can ignore these duplicate events.\nlet $bbed8b41f857bcc0$var$transitionsByElement = new Map();\n// A list of callbacks to call once there are no transitioning elements.\nlet $bbed8b41f857bcc0$var$transitionCallbacks = new Set();\nfunction $bbed8b41f857bcc0$var$setupGlobalEvents() {\n if (typeof window === 'undefined') return;\n function isTransitionEvent(event) {\n return 'propertyName' in event;\n }\n let onTransitionStart = (e)=>{\n if (!isTransitionEvent(e) || !e.target) return;\n // Add the transitioning property to the list for this element.\n let transitions = $bbed8b41f857bcc0$var$transitionsByElement.get(e.target);\n if (!transitions) {\n transitions = new Set();\n $bbed8b41f857bcc0$var$transitionsByElement.set(e.target, transitions);\n // The transitioncancel event must be registered on the element itself, rather than as a global\n // event. This enables us to handle when the node is deleted from the document while it is transitioning.\n // In that case, the cancel event would have nowhere to bubble to so we need to handle it directly.\n e.target.addEventListener('transitioncancel', onTransitionEnd, {\n once: true\n });\n }\n transitions.add(e.propertyName);\n };\n let onTransitionEnd = (e)=>{\n if (!isTransitionEvent(e) || !e.target) return;\n // Remove property from list of transitioning properties.\n let properties = $bbed8b41f857bcc0$var$transitionsByElement.get(e.target);\n if (!properties) return;\n properties.delete(e.propertyName);\n // If empty, remove transitioncancel event, and remove the element from the list of transitioning elements.\n if (properties.size === 0) {\n e.target.removeEventListener('transitioncancel', onTransitionEnd);\n $bbed8b41f857bcc0$var$transitionsByElement.delete(e.target);\n }\n // If no transitioning elements, call all of the queued callbacks.\n if ($bbed8b41f857bcc0$var$transitionsByElement.size === 0) {\n for (let cb of $bbed8b41f857bcc0$var$transitionCallbacks)cb();\n $bbed8b41f857bcc0$var$transitionCallbacks.clear();\n }\n };\n document.body.addEventListener('transitionrun', onTransitionStart);\n document.body.addEventListener('transitionend', onTransitionEnd);\n}\nif (typeof document !== 'undefined') {\n if (document.readyState !== 'loading') $bbed8b41f857bcc0$var$setupGlobalEvents();\n else document.addEventListener('DOMContentLoaded', $bbed8b41f857bcc0$var$setupGlobalEvents);\n}\n/**\n * Cleans up any elements that are no longer in the document.\n * This is necessary because we can't rely on transitionend events to fire\n * for elements that are removed from the document while transitioning.\n */ function $bbed8b41f857bcc0$var$cleanupDetachedElements() {\n for (const [eventTarget] of $bbed8b41f857bcc0$var$transitionsByElement)// Similar to `eventTarget instanceof Element && !eventTarget.isConnected`, but avoids\n // the explicit instanceof check, since it may be different in different contexts.\n if ('isConnected' in eventTarget && !eventTarget.isConnected) $bbed8b41f857bcc0$var$transitionsByElement.delete(eventTarget);\n}\nfunction $bbed8b41f857bcc0$export$24490316f764c430(fn) {\n // Wait one frame to see if an animation starts, e.g. a transition on mount.\n requestAnimationFrame(()=>{\n $bbed8b41f857bcc0$var$cleanupDetachedElements();\n // If no transitions are running, call the function immediately.\n // Otherwise, add it to a list of callbacks to run at the end of the animation.\n if ($bbed8b41f857bcc0$var$transitionsByElement.size === 0) fn();\n else $bbed8b41f857bcc0$var$transitionCallbacks.add(fn);\n });\n}\n\n\nexport {$bbed8b41f857bcc0$export$24490316f764c430 as runAfterTransition};\n//# sourceMappingURL=runAfterTransition.module.js.map\n","import {getInteractionModality as $507fabe10e71c6fb$export$630ff653c5ada6a9} from \"./useFocusVisible.mjs\";\nimport {getOwnerDocument as $k50bp$getOwnerDocument, getActiveElement as $k50bp$getActiveElement, runAfterTransition as $k50bp$runAfterTransition, focusWithoutScrolling as $k50bp$focusWithoutScrolling} from \"@react-aria/utils\";\n\n/*\n * Copyright 2020 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\nfunction $3ad3f6e1647bc98d$export$80f3e147d781571c(element) {\n // If the user is interacting with a virtual cursor, e.g. screen reader, then\n // wait until after any animated transitions that are currently occurring on\n // the page before shifting focus. This avoids issues with VoiceOver on iOS\n // causing the page to scroll when moving focus if the element is transitioning\n // from off the screen.\n const ownerDocument = (0, $k50bp$getOwnerDocument)(element);\n const activeElement = (0, $k50bp$getActiveElement)(ownerDocument);\n if ((0, $507fabe10e71c6fb$export$630ff653c5ada6a9)() === 'virtual') {\n let lastFocusedElement = activeElement;\n (0, $k50bp$runAfterTransition)(()=>{\n // If focus did not move and the element is still in the document, focus it.\n if ((0, $k50bp$getActiveElement)(ownerDocument) === lastFocusedElement && element.isConnected) (0, $k50bp$focusWithoutScrolling)(element);\n });\n } else (0, $k50bp$focusWithoutScrolling)(element);\n}\n\n\nexport {$3ad3f6e1647bc98d$export$80f3e147d781571c as focusSafely};\n//# sourceMappingURL=focusSafely.module.js.map\n"],"names":["$bbed8b41f857bcc0$var$transitionsByElement","$bbed8b41f857bcc0$var$transitionCallbacks","$bbed8b41f857bcc0$var$cleanupDetachedElements","eventTarget","$bbed8b41f857bcc0$export$24490316f764c430","fn","$3ad3f6e1647bc98d$export$80f3e147d781571c","element","ownerDocument","$k50bp$getOwnerDocument","activeElement","$k50bp$getActiveElement","$507fabe10e71c6fb$export$630ff653c5ada6a9","lastFocusedElement","$k50bp$runAfterTransition","$k50bp$focusWithoutScrolling"],"mappings":";;AAgBA,IAAIA,IAA6C,oBAAI,IAAG,GAEpDC,IAA4C,oBAAI,IAAG;AAkDnD,SAASC,IAAgD;AACzD,aAAW,CAACC,CAAW,KAAKH;AAE5B,IAAI,iBAAiBG,KAAe,CAACA,EAAY,eAAaH,EAA2C,OAAOG,CAAW;AAC/H;AACA,SAASC,EAA0CC,GAAI;AAEnD,wBAAsB,MAAI;AACtB,IAAAH,EAA6C,GAGzCF,EAA2C,SAAS,IAAGK,EAAE,IACxDJ,EAA0C,IAAII,CAAE;AAAA,EACzD,CAAC;AACL;ACnEA,SAASC,EAA0CC,GAAS;AAMxD,QAAMC,IAAoBC,EAAyBF,CAAO,GACpDG,IAAoBC,EAAyBH,CAAa;AAChE,MAAQI,EAAyC,MAAQ,WAAW;AAChE,QAAIC,IAAqBH;AACzB,IAAII,EAA2B,MAAI;AAE/B,MAAQH,EAAyBH,CAAa,MAAMK,KAAsBN,EAAQ,eAAiBQ,EAA8BR,CAAO;AAAA,IAC5I,CAAC;AAAA,EACL,MAAO,CAAIQ,EAA8BR,CAAO;AACpD;","x_google_ignoreList":[0,1]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),i=require("react"),B=require("./config-Mt8_uyhI.cjs.js"),A=require("./create-slot-recipe-context-HIF51Igr.cjs.js"),p=require("./Dialog-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),i=require("react"),B=require("./config-Mt8_uyhI.cjs.js"),A=require("./create-slot-recipe-context-HIF51Igr.cjs.js"),p=require("./Dialog-ljK75Ezb.cjs.js"),u=require("./box-BPfqlznQ.cjs.js"),H=require("./icon-button-Cs41MKV5.cjs.js"),m=require("@commercetools/nimbus-icons"),R=require("./useField-D5vZhNS3.cjs.js"),s=i.createContext({context:{label:null,description:null,error:null,info:null,input:null},setContext:()=>{}}),y=`
|
|
2
2
|
"label"
|
|
3
3
|
"input"
|
|
4
4
|
"description"
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
"label description"
|
|
9
9
|
"label error"
|
|
10
10
|
`,L=B.defineSlotRecipe({slots:["root","label","input","description","error","popover"],className:"nimbus-ui-form-field",base:{root:{"--grid-gap":"spacing.100",display:"grid",width:"auto"},label:{gridArea:"label",fontWeight:"500",color:"neutral.11",fontSize:"var(--form-field-font-size)",lineHeight:"var(--form-field-line-height)"},input:{gridArea:"input"},description:{gridArea:"description",color:"neutral.11",fontSize:"var(--form-field-font-size)",lineHeight:"var(--form-field-line-height)"},error:{gridArea:"error",color:"critical.11",fontSize:"var(--form-field-font-size)",lineHeight:"var(--form-field-line-height)"},popover:{"--scrollbar-color":"colors.neutral.8","--scrollbar-bg":"colors.neutral.3",bg:"neutral.1",maxWidth:"xl",borderRadius:"200",boxShadow:"6",border:"solid-25",borderColor:"neutral.8",maxHeight:"40svh",overflow:"auto",scrollbarWidth:"thin",scrollbarColor:"var(--scrollbar-color) var(--scrollbar-bg)",focusRing:"outside"}},variants:{size:{md:{root:{"--form-field-font-size":"fontSizes.350","--form-field-line-height":"lineHeights.500"}},sm:{root:{"--form-field-font-size":"fontSizes.300","--form-field-line-height":"lineHeights.450"}}},direction:{column:{root:{gridTemplateAreas:y},input:{mt:"var(--grid-gap)"},description:{mt:"var(--grid-gap)"},error:{mt:"var(--grid-gap)"}},row:{root:{gridTemplateAreas:I,gridTemplateColumns:"auto 1fr",gridColumnGap:"200"},description:{mt:"var(--grid-gap)"},error:{mt:"var(--grid-gap)"}}}},defaultVariants:{direction:"column",size:"md"}}),{withProvider:q,withContext:c}=A.createSlotRecipeContext({recipe:L}),M=q("div","root"),T=c("div","label"),W=c("div","input"),k=c("div","description"),D=c("div","error"),N=c("div","popover"),x=i.forwardRef(({isInvalid:e,isRequired:l,isDisabled:o,isReadOnly:n,children:C,...S},j)=>{const[r,f]=i.useState({label:null,description:null,error:null,info:null,input:null,isInvalid:e,isRequired:l,isDisabled:o,isReadOnly:n}),d={description:r.description,errorMessage:r.error};r.label?d.label=r.label:(d["aria-label"]="empty-label",d["aria-labelledby"]="empty-label");const{labelProps:z,fieldProps:E,descriptionProps:P,errorMessageProps:$}=R.$2baaea4c71418dea$export$294aa081a6c6f55d(d);i.useEffect(()=>{f(a=>({...a,isInvalid:e,isRequired:l,isDisabled:o,isReadOnly:n}))},[e,l,o,n]);const w={...E,isInvalid:e,isRequired:l,isDisabled:o,isReadOnly:n};return t.jsx(s.Provider,{value:{context:r,setContext:f},children:t.jsxs(M,{ref:j,...S,children:[r.label&&t.jsxs(T,{...r.labelSlotProps,children:[t.jsxs("label",{...z,children:[r.label,l&&t.jsx("sup",{"aria-hidden":"true",children:"*"})]}),r.info&&t.jsxs(p.$de32f1b87079253c$export$2e1e1122cf0cba88,{children:[t.jsx(u.Box,{as:"span",display:"inline-block",position:"relative",width:"1ch",height:"1ch",ml:"200",children:t.jsx(u.Box,{as:"span",display:"inline-flex",position:"absolute",top:"50%",right:"50%",transform:"translate(50%, -50%)",children:t.jsx(H.IconButton,{"aria-label":"__MORE INFO",size:"2xs",tone:"info",variant:"link",children:t.jsx(m.HelpOutline,{})})})}),t.jsx(p.$07b14b47974efb58$export$5b6b19405a83ff9d,{children:t.jsx(N,{asChild:!0,children:t.jsx(p.$de32f1b87079253c$export$3ddf2d174ce01153,{children:t.jsx(u.Box,{p:"300",children:r.info})})})})]})]}),r.input&&t.jsx(W,{...r.inputSlotProps,children:i.Children.map(r.input,a=>i.isValidElement(a)?i.cloneElement(a,w):a)}),r.description&&t.jsx(k,{...P,...r.descriptionSlotProps,children:r.description}),e&&r.error&&t.jsxs(D,{...$,...r.errorSlotProps,children:[t.jsx(u.Box,{as:m.ErrorOutline,display:"inline-flex",boxSize:"400",verticalAlign:"text-bottom",mr:"100"}),r.error]}),C]})})}),b=({children:e,...l})=>{const{setContext:o}=i.useContext(s);return i.useEffect(()=>{o(n=>({...n,label:e,labelSlotProps:l}))},[e,o]),null},g=({children:e,...l})=>{const{setContext:o}=i.useContext(s);return i.useEffect(()=>{o(n=>({...n,input:e,inputSlotProps:l}))},[e,o]),null},F=({children:e,...l})=>{const{setContext:o}=i.useContext(s);return i.useEffect(()=>{o(n=>({...n,description:e,descriptionSlotProps:l}))},[e,o]),null},h=({children:e,...l})=>{const{setContext:o}=i.useContext(s);return i.useEffect(()=>{o(n=>({...n,error:e,errorSlotProps:l}))},[e,o]),null},v=({children:e})=>{const{setContext:l}=i.useContext(s);return i.useEffect(()=>{l(o=>({...o,info:e}))},[e,l]),null},V={Root:x,Label:b,Input:g,Description:F,Error:h,InfoBox:v};exports.FormField=V;exports.FormFieldDescription=F;exports.FormFieldError=h;exports.FormFieldInfoBox=v;exports.FormFieldInput=g;exports.FormFieldLabel=b;exports.FormFieldRoot=x;
|
|
11
|
-
//# sourceMappingURL=form-field-
|
|
11
|
+
//# sourceMappingURL=form-field-CS9GGlbl.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-field-B9PncHWr.cjs.js","sources":["../../src/components/form-field/components/form-field.context.tsx","../../src/components/form-field/form-field.recipe.tsx","../../src/components/form-field/form-field.slots.tsx","../../src/components/form-field/components/form-field.root.tsx","../../src/components/form-field/components/form-field.label.tsx","../../src/components/form-field/components/form-field.input.tsx","../../src/components/form-field/components/form-field.description.tsx","../../src/components/form-field/components/form-field.error.tsx","../../src/components/form-field/components/form-field.info-box.tsx","../../src/components/form-field/form-field.tsx"],"sourcesContent":["import { createContext, type ReactNode } from \"react\";\nimport type {\n FormFieldDescriptionSlotProps,\n FormFieldErrorSlotProps,\n FormFieldInputSlotProps,\n FormFieldLabelSlotProps,\n} from \"../form-field.slots\";\n\nexport type FormFieldContextPayloadType = {\n label: ReactNode;\n labelSlotProps?: FormFieldLabelSlotProps;\n input: ReactNode;\n inputSlotProps?: FormFieldInputSlotProps;\n description: ReactNode;\n descriptionSlotProps?: FormFieldDescriptionSlotProps;\n error: ReactNode;\n errorSlotProps?: FormFieldErrorSlotProps;\n info: ReactNode;\n isInvalid?: boolean;\n isRequired?: boolean;\n isDisabled?: boolean;\n isReadOnly?: boolean;\n};\n\nexport type FormFieldContextType = {\n context: FormFieldContextPayloadType;\n setContext: React.Dispatch<React.SetStateAction<FormFieldContextPayloadType>>;\n};\n\nexport const FormFieldContext = createContext<FormFieldContextType>({\n context: {\n label: null,\n description: null,\n error: null,\n info: null,\n input: null,\n },\n setContext: () => {},\n});\n","import { defineSlotRecipe } from \"@chakra-ui/react/styled-system\";\n\nconst columnLayout = `\n\"label\"\n\"input\"\n\"description\"\n\"error\"\n`;\nconst rowLayout = `\n\"label input\"\n\"label description\"\n\"label error\"\n`;\n\n/**\n * Recipe configuration for the FormField component.\n * Defines the styling variants and base styles using Chakra UI's recipe system.\n */\nexport const formFieldRecipe = defineSlotRecipe({\n slots: [\"root\", \"label\", \"input\", \"description\", \"error\", \"popover\"],\n // Unique class name prefix for the component\n className: \"nimbus-ui-form-field\",\n\n base: {\n root: {\n \"--grid-gap\": \"spacing.100\",\n\n display: \"grid\",\n width: \"auto\",\n },\n label: {\n gridArea: \"label\",\n fontWeight: \"500\",\n color: \"neutral.11\",\n fontSize: \"var(--form-field-font-size)\",\n lineHeight: \"var(--form-field-line-height)\",\n },\n input: {\n gridArea: \"input\",\n },\n description: {\n gridArea: \"description\",\n color: \"neutral.11\",\n fontSize: \"var(--form-field-font-size)\",\n lineHeight: \"var(--form-field-line-height)\",\n },\n error: {\n gridArea: \"error\",\n color: \"critical.11\",\n fontSize: \"var(--form-field-font-size)\",\n lineHeight: \"var(--form-field-line-height)\",\n },\n popover: {\n \"--scrollbar-color\": \"colors.neutral.8\",\n \"--scrollbar-bg\": \"colors.neutral.3\",\n bg: \"neutral.1\",\n maxWidth: \"xl\",\n borderRadius: \"200\",\n boxShadow: \"6\",\n border: \"solid-25\",\n borderColor: \"neutral.8\",\n maxHeight: \"40svh\",\n overflow: \"auto\",\n scrollbarWidth: \"thin\",\n scrollbarColor: \"var(--scrollbar-color) var(--scrollbar-bg)\",\n focusRing: \"outside\",\n },\n },\n\n variants: {\n size: {\n md: {\n root: {\n \"--form-field-font-size\": \"fontSizes.350\",\n \"--form-field-line-height\": \"lineHeights.500\",\n },\n },\n sm: {\n root: {\n \"--form-field-font-size\": \"fontSizes.300\",\n \"--form-field-line-height\": \"lineHeights.450\",\n },\n },\n },\n direction: {\n column: {\n root: {\n gridTemplateAreas: columnLayout,\n },\n input: {\n mt: \"var(--grid-gap)\",\n },\n description: {\n mt: \"var(--grid-gap)\",\n },\n error: {\n mt: \"var(--grid-gap)\",\n },\n },\n row: {\n root: {\n gridTemplateAreas: rowLayout,\n gridTemplateColumns: \"auto 1fr\",\n gridColumnGap: \"200\",\n },\n description: {\n mt: \"var(--grid-gap)\",\n },\n error: {\n mt: \"var(--grid-gap)\",\n },\n },\n },\n },\n\n // Default variant values when not explicitly specified\n defaultVariants: {\n direction: \"column\",\n size: \"md\",\n },\n});\n","/* eslint-disable @typescript-eslint/no-empty-object-type */\nimport {\n type HTMLChakraProps,\n type RecipeVariantProps,\n type UnstyledProp,\n createSlotRecipeContext,\n} from \"@chakra-ui/react/styled-system\";\n\nimport { formFieldRecipe } from \"./form-field.recipe\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: formFieldRecipe,\n});\n\n// Root slot\nexport interface FormFieldRootSlotProps\n extends HTMLChakraProps<\n \"div\",\n RecipeVariantProps<typeof formFieldRecipe> & UnstyledProp\n > {}\n\nexport const FormFieldRootSlot = withProvider<\n HTMLDivElement,\n FormFieldRootSlotProps\n>(\"div\", \"root\");\n\n// Label Slot\nexport interface FormFieldLabelSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const FormFieldLabelSlot = withContext<\n HTMLDivElement,\n FormFieldLabelSlotProps\n>(\"div\", \"label\");\n\n// Input Slot\nexport interface FormFieldInputSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const FormFieldInputSlot = withContext<\n HTMLDivElement,\n FormFieldInputSlotProps\n>(\"div\", \"input\");\n\n// Description Slot\nexport interface FormFieldDescriptionSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const FormFieldDescriptionSlot = withContext<\n HTMLDivElement,\n FormFieldDescriptionSlotProps\n>(\"div\", \"description\");\n\n// Error Slot\nexport interface FormFieldErrorSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const FormFieldErrorSlot = withContext<\n HTMLDivElement,\n FormFieldErrorSlotProps\n>(\"div\", \"error\");\n\n// Error Slot\nexport interface FormFieldPopoverSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const FormFieldPopoverSlot = withContext<\n HTMLDivElement,\n FormFieldPopoverSlotProps\n>(\"div\", \"popover\");\n","import {\n Children,\n cloneElement,\n forwardRef,\n isValidElement,\n useEffect,\n useState,\n} from \"react\";\nimport type { FormFieldProps } from \"../form-field.types\";\nimport { useField } from \"react-aria\";\nimport {\n FormFieldContext,\n type FormFieldContextPayloadType,\n} from \"./form-field.context\";\nimport {\n FormFieldDescriptionSlot,\n FormFieldErrorSlot,\n FormFieldInputSlot,\n FormFieldLabelSlot,\n FormFieldPopoverSlot,\n FormFieldRootSlot,\n} from \"../form-field.slots\";\nimport { Dialog, DialogTrigger, Popover } from \"react-aria-components\";\nimport { Box, IconButton } from \"@/components\";\nimport { ErrorOutline, HelpOutline } from \"@commercetools/nimbus-icons\";\n\n/**\n * # FormField\n *\n * displays miscellaneous inputs in a FormField context\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/formfield}\n */\nexport const FormFieldRoot = forwardRef<HTMLDivElement, FormFieldProps>(\n (\n { isInvalid, isRequired, isDisabled, isReadOnly, children, ...props },\n ref\n ) => {\n const [context, setContext] = useState<FormFieldContextPayloadType>({\n label: null,\n description: null,\n error: null,\n info: null,\n input: null,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n });\n\n const useFieldArgs: Parameters<typeof useField>[0] = {\n description: context.description,\n errorMessage: context.error,\n };\n\n if (context.label) {\n useFieldArgs.label = context.label;\n } else {\n // Context will always start out null, so we need to stub out some aria attributes\n // FIXME: This is a hack to get the form field to work, but it's not the best solution\n // FIXME: We should find a better way to handle this by redesigning the FormField component's structure\n useFieldArgs[\"aria-label\"] = \"empty-label\";\n useFieldArgs[\"aria-labelledby\"] = \"empty-label\";\n }\n\n const { labelProps, fieldProps, descriptionProps, errorMessageProps } =\n useField(useFieldArgs);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n }));\n }, [isInvalid, isRequired, isDisabled, isReadOnly]);\n\n const inputProps = {\n ...fieldProps,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n };\n\n return (\n <FormFieldContext.Provider value={{ context, setContext }}>\n <FormFieldRootSlot ref={ref} {...props}>\n {context.label && (\n <FormFieldLabelSlot {...context.labelSlotProps}>\n <label {...labelProps}>\n {context.label}\n {isRequired && <sup aria-hidden=\"true\">*</sup>}\n </label>\n {context.info && (\n <DialogTrigger>\n <Box\n as=\"span\"\n display=\"inline-block\"\n position=\"relative\"\n width=\"1ch\"\n height=\"1ch\"\n ml=\"200\"\n >\n <Box\n as=\"span\"\n display=\"inline-flex\"\n position=\"absolute\"\n top=\"50%\"\n right=\"50%\"\n transform=\"translate(50%, -50%)\"\n >\n <IconButton\n aria-label=\"__MORE INFO\"\n size=\"2xs\"\n tone=\"info\"\n variant=\"link\"\n >\n <HelpOutline />\n </IconButton>\n </Box>\n </Box>\n <Popover>\n <FormFieldPopoverSlot asChild>\n <Dialog>\n <Box p=\"300\">{context.info}</Box>\n </Dialog>\n </FormFieldPopoverSlot>\n </Popover>\n </DialogTrigger>\n )}\n </FormFieldLabelSlot>\n )}\n {context.input && (\n <FormFieldInputSlot {...context.inputSlotProps}>\n {Children.map(context.input, (child) => {\n // Important: Check if the child is a valid React element before cloning.\n if (isValidElement(child)) {\n return cloneElement(child, inputProps);\n }\n // If it's not a valid element (e.g., text node, null, undefined), return it as is.\n return child;\n })}\n </FormFieldInputSlot>\n )}\n {context.description && (\n <FormFieldDescriptionSlot\n {...descriptionProps}\n {...context.descriptionSlotProps}\n >\n {context.description}\n </FormFieldDescriptionSlot>\n )}\n {isInvalid && context.error && (\n <FormFieldErrorSlot\n {...errorMessageProps}\n {...context.errorSlotProps}\n >\n <Box\n as={ErrorOutline}\n display=\"inline-flex\"\n boxSize=\"400\"\n verticalAlign=\"text-bottom\"\n mr=\"100\"\n />\n {context.error}\n </FormFieldErrorSlot>\n )}\n {children}\n </FormFieldRootSlot>\n </FormFieldContext.Provider>\n );\n }\n);\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldLabelSlotProps } from \"../form-field.slots\";\n\nexport const FormFieldLabel = ({\n children,\n ...labelSlotProps\n}: FormFieldLabelSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n label: children,\n labelSlotProps,\n }));\n }, [children, setContext]);\n\n return null;\n};\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldInputSlotProps } from \"../form-field.slots\";\n\nexport const FormFieldInput = ({\n children,\n ...inputSlotProps\n}: FormFieldInputSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n input: children,\n inputSlotProps,\n }));\n }, [children, setContext]);\n\n return null;\n};\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldDescriptionSlotProps } from \"../form-field.slots\";\n\nexport const FormFieldDescription = ({\n children,\n ...descriptionSlotProps\n}: FormFieldDescriptionSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n description: children,\n descriptionSlotProps,\n }));\n }, [children, setContext]);\n\n return null;\n};\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldErrorSlotProps } from \"../form-field.slots\";\n\nexport const FormFieldError = ({\n children,\n ...errorSlotProps\n}: FormFieldErrorSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n error: children,\n errorSlotProps,\n }));\n }, [children, setContext]);\n\n return null;\n};\n","import { useContext, useEffect, type ReactNode } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\n\ntype FormFieldInfoBoxProps = {\n /**\n * The content to display in the InfoBox\n */\n children: ReactNode;\n};\n\nexport const FormFieldInfoBox = ({ children }: FormFieldInfoBoxProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n info: children,\n }));\n }, [children, setContext]);\n\n return null;\n};\n","import { FormFieldRoot } from \"./components/form-field.root\";\nimport { FormFieldLabel } from \"./components/form-field.label\";\nimport { FormFieldInput } from \"./components/form-field.input\";\nimport { FormFieldDescription } from \"./components/form-field.description\";\nimport { FormFieldError } from \"./components/form-field.error\";\nimport { FormFieldInfoBox } from \"./components/form-field.info-box\";\n\nexport const FormField = {\n Root: FormFieldRoot,\n Label: FormFieldLabel,\n Input: FormFieldInput,\n Description: FormFieldDescription,\n Error: FormFieldError,\n InfoBox: FormFieldInfoBox,\n};\n\nexport {\n FormFieldRoot as _FormFieldRoot,\n FormFieldLabel as _FormFieldLabel,\n FormFieldInput as _FormFieldInput,\n FormFieldDescription as _FormFieldDescription,\n FormFieldError as _FormFieldError,\n FormFieldInfoBox as _FormFieldInfoBox,\n};\n"],"names":["FormFieldContext","createContext","columnLayout","rowLayout","formFieldRecipe","defineSlotRecipe","withProvider","withContext","createSlotRecipeContext","FormFieldRootSlot","FormFieldLabelSlot","FormFieldInputSlot","FormFieldDescriptionSlot","FormFieldErrorSlot","FormFieldPopoverSlot","FormFieldRoot","forwardRef","isInvalid","isRequired","isDisabled","isReadOnly","children","props","ref","context","setContext","useState","useFieldArgs","labelProps","fieldProps","descriptionProps","errorMessageProps","useField","useEffect","prevContext","inputProps","jsx","jsxs","DialogTrigger","Box","IconButton","HelpOutline","Popover","Dialog","Children","child","isValidElement","cloneElement","ErrorOutline","FormFieldLabel","labelSlotProps","useContext","FormFieldInput","inputSlotProps","FormFieldDescription","descriptionSlotProps","FormFieldError","errorSlotProps","FormFieldInfoBox","FormField"],"mappings":"0WA6BaA,EAAmBC,EAAAA,cAAoC,CAClE,QAAS,CACP,MAAO,KACP,YAAa,KACb,MAAO,KACP,KAAM,KACN,MAAO,IAAA,EAET,WAAY,IAAM,CAAC,CACrB,CAAC,ECpCKC,EAAe;AAAA;AAAA;AAAA;AAAA;AAAA,EAMfC,EAAY;AAAA;AAAA;AAAA;AAAA,EAULC,EAAkBC,EAAAA,iBAAiB,CAC9C,MAAO,CAAC,OAAQ,QAAS,QAAS,cAAe,QAAS,SAAS,EAEnE,UAAW,uBAEX,KAAM,CACJ,KAAM,CACJ,aAAc,cAEd,QAAS,OACT,MAAO,MAAA,EAET,MAAO,CACL,SAAU,QACV,WAAY,MACZ,MAAO,aACP,SAAU,8BACV,WAAY,+BAAA,EAEd,MAAO,CACL,SAAU,OAAA,EAEZ,YAAa,CACX,SAAU,cACV,MAAO,aACP,SAAU,8BACV,WAAY,+BAAA,EAEd,MAAO,CACL,SAAU,QACV,MAAO,cACP,SAAU,8BACV,WAAY,+BAAA,EAEd,QAAS,CACP,oBAAqB,mBACrB,iBAAkB,mBAClB,GAAI,YACJ,SAAU,KACV,aAAc,MACd,UAAW,IACX,OAAQ,WACR,YAAa,YACb,UAAW,QACX,SAAU,OACV,eAAgB,OAChB,eAAgB,6CAChB,UAAW,SAAA,CACb,EAGF,SAAU,CACR,KAAM,CACJ,GAAI,CACF,KAAM,CACJ,yBAA0B,gBAC1B,2BAA4B,iBAAA,CAC9B,EAEF,GAAI,CACF,KAAM,CACJ,yBAA0B,gBAC1B,2BAA4B,iBAAA,CAC9B,CACF,EAEF,UAAW,CACT,OAAQ,CACN,KAAM,CACJ,kBAAmBH,CAAA,EAErB,MAAO,CACL,G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B,EAAAA,WAAWnD,CAAgB,EAElDiC,OAAAA,EAAAA,UAAU,IAAM,CACdR,EAAYS,IAAiB,CAC3B,GAAGA,EACH,YAAab,EACb,qBAAAkC,CAAA,EACA,CACJ,EAAG,CAAClC,EAAUI,CAAU,CAAC,EAElB,IACT,ECfa+B,EAAiB,CAAC,CAC7B,SAAAnC,EACA,GAAGoC,CACL,IAA+B,CAC7B,KAAM,CAAE,WAAAhC,CAAA,EAAe0B,EAAAA,WAAWnD,CAAgB,EAElDiC,OAAAA,EAAAA,UAAU,IAAM,CACdR,EAAYS,IAAiB,CAC3B,GAAGA,EACH,MAAOb,EACP,eAAAoC,CAAA,EACA,CACJ,EAAG,CAACpC,EAAUI,CAAU,CAAC,EAElB,IACT,ECTaiC,EAAmB,CAAC,CAAE,SAAArC,KAAsC,CACvE,KAAM,CAAE,WAAAI,CAAA,EAAe0B,EAAAA,WAAWnD,CAAgB,EAElDiC,OAAAA,EAAAA,UAAU,IAAM,CACdR,EAAYS,IAAiB,CAC3B,GAAGA,EACH,KAAMb,CAAA,EACN,CACJ,EAAG,CAACA,EAAUI,CAAU,CAAC,EAElB,IACT,ECdakC,EAAY,CACvB,KAAM5C,EACN,MAAOkC,EACP,MAAOG,EACP,YAAaE,EACb,MAAOE,EACP,QAASE,CACX"}
|
|
1
|
+
{"version":3,"file":"form-field-CS9GGlbl.cjs.js","sources":["../../src/components/form-field/components/form-field.context.tsx","../../src/components/form-field/form-field.recipe.tsx","../../src/components/form-field/form-field.slots.tsx","../../src/components/form-field/components/form-field.root.tsx","../../src/components/form-field/components/form-field.label.tsx","../../src/components/form-field/components/form-field.input.tsx","../../src/components/form-field/components/form-field.description.tsx","../../src/components/form-field/components/form-field.error.tsx","../../src/components/form-field/components/form-field.info-box.tsx","../../src/components/form-field/form-field.tsx"],"sourcesContent":["import { createContext, type ReactNode } from \"react\";\nimport type {\n FormFieldDescriptionSlotProps,\n FormFieldErrorSlotProps,\n FormFieldInputSlotProps,\n FormFieldLabelSlotProps,\n} from \"../form-field.slots\";\n\nexport type FormFieldContextPayloadType = {\n label: ReactNode;\n labelSlotProps?: FormFieldLabelSlotProps;\n input: ReactNode;\n inputSlotProps?: FormFieldInputSlotProps;\n description: ReactNode;\n descriptionSlotProps?: FormFieldDescriptionSlotProps;\n error: ReactNode;\n errorSlotProps?: FormFieldErrorSlotProps;\n info: ReactNode;\n isInvalid?: boolean;\n isRequired?: boolean;\n isDisabled?: boolean;\n isReadOnly?: boolean;\n};\n\nexport type FormFieldContextType = {\n context: FormFieldContextPayloadType;\n setContext: React.Dispatch<React.SetStateAction<FormFieldContextPayloadType>>;\n};\n\nexport const FormFieldContext = createContext<FormFieldContextType>({\n context: {\n label: null,\n description: null,\n error: null,\n info: null,\n input: null,\n },\n setContext: () => {},\n});\n","import { defineSlotRecipe } from \"@chakra-ui/react/styled-system\";\n\nconst columnLayout = `\n\"label\"\n\"input\"\n\"description\"\n\"error\"\n`;\nconst rowLayout = `\n\"label input\"\n\"label description\"\n\"label error\"\n`;\n\n/**\n * Recipe configuration for the FormField component.\n * Defines the styling variants and base styles using Chakra UI's recipe system.\n */\nexport const formFieldRecipe = defineSlotRecipe({\n slots: [\"root\", \"label\", \"input\", \"description\", \"error\", \"popover\"],\n // Unique class name prefix for the component\n className: \"nimbus-ui-form-field\",\n\n base: {\n root: {\n \"--grid-gap\": \"spacing.100\",\n\n display: \"grid\",\n width: \"auto\",\n },\n label: {\n gridArea: \"label\",\n fontWeight: \"500\",\n color: \"neutral.11\",\n fontSize: \"var(--form-field-font-size)\",\n lineHeight: \"var(--form-field-line-height)\",\n },\n input: {\n gridArea: \"input\",\n },\n description: {\n gridArea: \"description\",\n color: \"neutral.11\",\n fontSize: \"var(--form-field-font-size)\",\n lineHeight: \"var(--form-field-line-height)\",\n },\n error: {\n gridArea: \"error\",\n color: \"critical.11\",\n fontSize: \"var(--form-field-font-size)\",\n lineHeight: \"var(--form-field-line-height)\",\n },\n popover: {\n \"--scrollbar-color\": \"colors.neutral.8\",\n \"--scrollbar-bg\": \"colors.neutral.3\",\n bg: \"neutral.1\",\n maxWidth: \"xl\",\n borderRadius: \"200\",\n boxShadow: \"6\",\n border: \"solid-25\",\n borderColor: \"neutral.8\",\n maxHeight: \"40svh\",\n overflow: \"auto\",\n scrollbarWidth: \"thin\",\n scrollbarColor: \"var(--scrollbar-color) var(--scrollbar-bg)\",\n focusRing: \"outside\",\n },\n },\n\n variants: {\n size: {\n md: {\n root: {\n \"--form-field-font-size\": \"fontSizes.350\",\n \"--form-field-line-height\": \"lineHeights.500\",\n },\n },\n sm: {\n root: {\n \"--form-field-font-size\": \"fontSizes.300\",\n \"--form-field-line-height\": \"lineHeights.450\",\n },\n },\n },\n direction: {\n column: {\n root: {\n gridTemplateAreas: columnLayout,\n },\n input: {\n mt: \"var(--grid-gap)\",\n },\n description: {\n mt: \"var(--grid-gap)\",\n },\n error: {\n mt: \"var(--grid-gap)\",\n },\n },\n row: {\n root: {\n gridTemplateAreas: rowLayout,\n gridTemplateColumns: \"auto 1fr\",\n gridColumnGap: \"200\",\n },\n description: {\n mt: \"var(--grid-gap)\",\n },\n error: {\n mt: \"var(--grid-gap)\",\n },\n },\n },\n },\n\n // Default variant values when not explicitly specified\n defaultVariants: {\n direction: \"column\",\n size: \"md\",\n },\n});\n","/* eslint-disable @typescript-eslint/no-empty-object-type */\nimport {\n type HTMLChakraProps,\n type RecipeVariantProps,\n type UnstyledProp,\n createSlotRecipeContext,\n} from \"@chakra-ui/react/styled-system\";\n\nimport { formFieldRecipe } from \"./form-field.recipe\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: formFieldRecipe,\n});\n\n// Root slot\nexport interface FormFieldRootSlotProps\n extends HTMLChakraProps<\n \"div\",\n RecipeVariantProps<typeof formFieldRecipe> & UnstyledProp\n > {}\n\nexport const FormFieldRootSlot = withProvider<\n HTMLDivElement,\n FormFieldRootSlotProps\n>(\"div\", \"root\");\n\n// Label Slot\nexport interface FormFieldLabelSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const FormFieldLabelSlot = withContext<\n HTMLDivElement,\n FormFieldLabelSlotProps\n>(\"div\", \"label\");\n\n// Input Slot\nexport interface FormFieldInputSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const FormFieldInputSlot = withContext<\n HTMLDivElement,\n FormFieldInputSlotProps\n>(\"div\", \"input\");\n\n// Description Slot\nexport interface FormFieldDescriptionSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const FormFieldDescriptionSlot = withContext<\n HTMLDivElement,\n FormFieldDescriptionSlotProps\n>(\"div\", \"description\");\n\n// Error Slot\nexport interface FormFieldErrorSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const FormFieldErrorSlot = withContext<\n HTMLDivElement,\n FormFieldErrorSlotProps\n>(\"div\", \"error\");\n\n// Error Slot\nexport interface FormFieldPopoverSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const FormFieldPopoverSlot = withContext<\n HTMLDivElement,\n FormFieldPopoverSlotProps\n>(\"div\", \"popover\");\n","import {\n Children,\n cloneElement,\n forwardRef,\n isValidElement,\n useEffect,\n useState,\n} from \"react\";\nimport type { FormFieldProps } from \"../form-field.types\";\nimport { useField } from \"react-aria\";\nimport {\n FormFieldContext,\n type FormFieldContextPayloadType,\n} from \"./form-field.context\";\nimport {\n FormFieldDescriptionSlot,\n FormFieldErrorSlot,\n FormFieldInputSlot,\n FormFieldLabelSlot,\n FormFieldPopoverSlot,\n FormFieldRootSlot,\n} from \"../form-field.slots\";\nimport { Dialog, DialogTrigger, Popover } from \"react-aria-components\";\nimport { Box, IconButton } from \"@/components\";\nimport { ErrorOutline, HelpOutline } from \"@commercetools/nimbus-icons\";\n\n/**\n * # FormField\n *\n * displays miscellaneous inputs in a FormField context\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/formfield}\n */\nexport const FormFieldRoot = forwardRef<HTMLDivElement, FormFieldProps>(\n (\n { isInvalid, isRequired, isDisabled, isReadOnly, children, ...props },\n ref\n ) => {\n const [context, setContext] = useState<FormFieldContextPayloadType>({\n label: null,\n description: null,\n error: null,\n info: null,\n input: null,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n });\n\n const useFieldArgs: Parameters<typeof useField>[0] = {\n description: context.description,\n errorMessage: context.error,\n };\n\n if (context.label) {\n useFieldArgs.label = context.label;\n } else {\n // Context will always start out null, so we need to stub out some aria attributes\n // FIXME: This is a hack to get the form field to work, but it's not the best solution\n // FIXME: We should find a better way to handle this by redesigning the FormField component's structure\n useFieldArgs[\"aria-label\"] = \"empty-label\";\n useFieldArgs[\"aria-labelledby\"] = \"empty-label\";\n }\n\n const { labelProps, fieldProps, descriptionProps, errorMessageProps } =\n useField(useFieldArgs);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n }));\n }, [isInvalid, isRequired, isDisabled, isReadOnly]);\n\n const inputProps = {\n ...fieldProps,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n };\n\n return (\n <FormFieldContext.Provider value={{ context, setContext }}>\n <FormFieldRootSlot ref={ref} {...props}>\n {context.label && (\n <FormFieldLabelSlot {...context.labelSlotProps}>\n <label {...labelProps}>\n {context.label}\n {isRequired && <sup aria-hidden=\"true\">*</sup>}\n </label>\n {context.info && (\n <DialogTrigger>\n <Box\n as=\"span\"\n display=\"inline-block\"\n position=\"relative\"\n width=\"1ch\"\n height=\"1ch\"\n ml=\"200\"\n >\n <Box\n as=\"span\"\n display=\"inline-flex\"\n position=\"absolute\"\n top=\"50%\"\n right=\"50%\"\n transform=\"translate(50%, -50%)\"\n >\n <IconButton\n aria-label=\"__MORE INFO\"\n size=\"2xs\"\n tone=\"info\"\n variant=\"link\"\n >\n <HelpOutline />\n </IconButton>\n </Box>\n </Box>\n <Popover>\n <FormFieldPopoverSlot asChild>\n <Dialog>\n <Box p=\"300\">{context.info}</Box>\n </Dialog>\n </FormFieldPopoverSlot>\n </Popover>\n </DialogTrigger>\n )}\n </FormFieldLabelSlot>\n )}\n {context.input && (\n <FormFieldInputSlot {...context.inputSlotProps}>\n {Children.map(context.input, (child) => {\n // Important: Check if the child is a valid React element before cloning.\n if (isValidElement(child)) {\n return cloneElement(child, inputProps);\n }\n // If it's not a valid element (e.g., text node, null, undefined), return it as is.\n return child;\n })}\n </FormFieldInputSlot>\n )}\n {context.description && (\n <FormFieldDescriptionSlot\n {...descriptionProps}\n {...context.descriptionSlotProps}\n >\n {context.description}\n </FormFieldDescriptionSlot>\n )}\n {isInvalid && context.error && (\n <FormFieldErrorSlot\n {...errorMessageProps}\n {...context.errorSlotProps}\n >\n <Box\n as={ErrorOutline}\n display=\"inline-flex\"\n boxSize=\"400\"\n verticalAlign=\"text-bottom\"\n mr=\"100\"\n />\n {context.error}\n </FormFieldErrorSlot>\n )}\n {children}\n </FormFieldRootSlot>\n </FormFieldContext.Provider>\n );\n }\n);\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldLabelSlotProps } from \"../form-field.slots\";\n\nexport const FormFieldLabel = ({\n children,\n ...labelSlotProps\n}: FormFieldLabelSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n label: children,\n labelSlotProps,\n }));\n }, [children, setContext]);\n\n return null;\n};\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldInputSlotProps } from \"../form-field.slots\";\n\nexport const FormFieldInput = ({\n children,\n ...inputSlotProps\n}: FormFieldInputSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n input: children,\n inputSlotProps,\n }));\n }, [children, setContext]);\n\n return null;\n};\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldDescriptionSlotProps } from \"../form-field.slots\";\n\nexport const FormFieldDescription = ({\n children,\n ...descriptionSlotProps\n}: FormFieldDescriptionSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n description: children,\n descriptionSlotProps,\n }));\n }, [children, setContext]);\n\n return null;\n};\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldErrorSlotProps } from \"../form-field.slots\";\n\nexport const FormFieldError = ({\n children,\n ...errorSlotProps\n}: FormFieldErrorSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n error: children,\n errorSlotProps,\n }));\n }, [children, setContext]);\n\n return null;\n};\n","import { useContext, useEffect, type ReactNode } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\n\ntype FormFieldInfoBoxProps = {\n /**\n * The content to display in the InfoBox\n */\n children: ReactNode;\n};\n\nexport const FormFieldInfoBox = ({ children }: FormFieldInfoBoxProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n info: children,\n }));\n }, [children, setContext]);\n\n return null;\n};\n","import { FormFieldRoot } from \"./components/form-field.root\";\nimport { FormFieldLabel } from \"./components/form-field.label\";\nimport { FormFieldInput } from \"./components/form-field.input\";\nimport { FormFieldDescription } from \"./components/form-field.description\";\nimport { FormFieldError } from \"./components/form-field.error\";\nimport { FormFieldInfoBox } from \"./components/form-field.info-box\";\n\nexport const FormField = {\n Root: FormFieldRoot,\n Label: FormFieldLabel,\n Input: FormFieldInput,\n Description: FormFieldDescription,\n Error: FormFieldError,\n InfoBox: FormFieldInfoBox,\n};\n\nexport {\n FormFieldRoot as _FormFieldRoot,\n FormFieldLabel as _FormFieldLabel,\n FormFieldInput as _FormFieldInput,\n FormFieldDescription as _FormFieldDescription,\n FormFieldError as _FormFieldError,\n FormFieldInfoBox as _FormFieldInfoBox,\n};\n"],"names":["FormFieldContext","createContext","columnLayout","rowLayout","formFieldRecipe","defineSlotRecipe","withProvider","withContext","createSlotRecipeContext","FormFieldRootSlot","FormFieldLabelSlot","FormFieldInputSlot","FormFieldDescriptionSlot","FormFieldErrorSlot","FormFieldPopoverSlot","FormFieldRoot","forwardRef","isInvalid","isRequired","isDisabled","isReadOnly","children","props","ref","context","setContext","useState","useFieldArgs","labelProps","fieldProps","descriptionProps","errorMessageProps","useField","useEffect","prevContext","inputProps","jsx","jsxs","DialogTrigger","Box","IconButton","HelpOutline","Popover","Dialog","Children","child","isValidElement","cloneElement","ErrorOutline","FormFieldLabel","labelSlotProps","useContext","FormFieldInput","inputSlotProps","FormFieldDescription","descriptionSlotProps","FormFieldError","errorSlotProps","FormFieldInfoBox","FormField"],"mappings":"0WA6BaA,EAAmBC,EAAAA,cAAoC,CAClE,QAAS,CACP,MAAO,KACP,YAAa,KACb,MAAO,KACP,KAAM,KACN,MAAO,IAAA,EAET,WAAY,IAAM,CAAC,CACrB,CAAC,ECpCKC,EAAe;AAAA;AAAA;AAAA;AAAA;AAAA,EAMfC,EAAY;AAAA;AAAA;AAAA;AAAA,EAULC,EAAkBC,EAAAA,iBAAiB,CAC9C,MAAO,CAAC,OAAQ,QAAS,QAAS,cAAe,QAAS,SAAS,EAEnE,UAAW,uBAEX,KAAM,CACJ,KAAM,CACJ,aAAc,cAEd,QAAS,OACT,MAAO,MAAA,EAET,MAAO,CACL,SAAU,QACV,WAAY,MACZ,MAAO,aACP,SAAU,8BACV,WAAY,+BAAA,EAEd,MAAO,CACL,SAAU,OAAA,EAEZ,YAAa,CACX,SAAU,cACV,MAAO,aACP,SAAU,8BACV,WAAY,+BAAA,EAEd,MAAO,CACL,SAAU,QACV,MAAO,cACP,SAAU,8BACV,WAAY,+BAAA,EAEd,QAAS,CACP,oBAAqB,mBACrB,iBAAkB,mBAClB,GAAI,YACJ,SAAU,KACV,aAAc,MACd,UAAW,IACX,OAAQ,WACR,YAAa,YACb,UAAW,QACX,SAAU,OACV,eAAgB,OAChB,eAAgB,6CAChB,U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EAElDiC,OAAAA,EAAAA,UAAU,IAAM,CACdR,EAAYS,IAAiB,CAC3B,GAAGA,EACH,MAAOb,EACP,eAAAgC,CAAA,EACA,CACJ,EAAG,CAAChC,EAAUI,CAAU,CAAC,EAElB,IACT,ECfa6B,EAAuB,CAAC,CACnC,SAAAjC,EACA,GAAGkC,CACL,IAAqC,CACnC,KAAM,CAAE,WAAA9B,CAAA,EAAe0B,EAAAA,WAAWnD,CAAgB,EAElDiC,OAAAA,EAAAA,UAAU,IAAM,CACdR,EAAYS,IAAiB,CAC3B,GAAGA,EACH,YAAab,EACb,qBAAAkC,CAAA,EACA,CACJ,EAAG,CAAClC,EAAUI,CAAU,CAAC,EAElB,IACT,ECfa+B,EAAiB,CAAC,CAC7B,SAAAnC,EACA,GAAGoC,CACL,IAA+B,CAC7B,KAAM,CAAE,WAAAhC,CAAA,EAAe0B,EAAAA,WAAWnD,CAAgB,EAElDiC,OAAAA,EAAAA,UAAU,IAAM,CACdR,EAAYS,IAAiB,CAC3B,GAAGA,EACH,MAAOb,EACP,eAAAoC,CAAA,EACA,CACJ,EAAG,CAACpC,EAAUI,CAAU,CAAC,EAElB,IACT,ECTaiC,EAAmB,CAAC,CAAE,SAAArC,KAAsC,CACvE,KAAM,CAAE,WAAAI,CAAA,EAAe0B,EAAAA,WAAWnD,CAAgB,EAElDiC,OAAAA,EAAAA,UAAU,IAAM,CACdR,EAAYS,IAAiB,CAC3B,GAAGA,EACH,KAAMb,CAAA,EACN,CACJ,EAAG,CAACA,EAAUI,CAAU,CAAC,EAElB,IACT,ECdakC,EAAY,CACvB,KAAM5C,EACN,MAAOkC,EACP,MAAOG,EACP,YAAaE,EACb,MAAOE,EACP,QAASE,CACX"}
|
|
@@ -2,11 +2,11 @@ import { jsx as i, jsxs as c } from "react/jsx-runtime";
|
|
|
2
2
|
import { createContext as z, forwardRef as $, useState as P, useEffect as n, Children as w, isValidElement as A, cloneElement as E, useContext as d } from "react";
|
|
3
3
|
import { a as H } from "./config-ufbQ08Vi.es.js";
|
|
4
4
|
import { c as y } from "./create-slot-recipe-context-DBNItnlK.es.js";
|
|
5
|
-
import { e as B, $ as L, a as I } from "./Dialog-
|
|
5
|
+
import { e as B, $ as L, a as I } from "./Dialog-BTicQJXP.es.js";
|
|
6
6
|
import { B as m } from "./box-C8731OYq.es.js";
|
|
7
|
-
import { I as M } from "./icon-button-
|
|
7
|
+
import { I as M } from "./icon-button-BkjZ1Pq8.es.js";
|
|
8
8
|
import { HelpOutline as R, ErrorOutline as T } from "@commercetools/nimbus-icons";
|
|
9
|
-
import { $ as W } from "./useField-
|
|
9
|
+
import { $ as W } from "./useField-9-dizG-T.es.js";
|
|
10
10
|
const a = /* @__PURE__ */ z({
|
|
11
11
|
context: {
|
|
12
12
|
label: null,
|
|
@@ -307,4 +307,4 @@ export {
|
|
|
307
307
|
Z as e,
|
|
308
308
|
q as f
|
|
309
309
|
};
|
|
310
|
-
//# sourceMappingURL=form-field-
|
|
310
|
+
//# sourceMappingURL=form-field-DcQW2A1i.es.js.map
|