@commercetools/nimbus 0.0.0-canary-20250901065956 → 0.0.0-canary-20250902075758
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-wUEF0Zow.es.js → Button--gemnXF8.es.js} +7 -7
- package/dist/chunks/{Button-wUEF0Zow.es.js.map → Button--gemnXF8.es.js.map} +1 -1
- package/dist/chunks/{Button-MmwT6xpw.cjs.js → Button-Bh-FLo_8.cjs.js} +2 -2
- package/dist/chunks/{Button-MmwT6xpw.cjs.js.map → Button-Bh-FLo_8.cjs.js.map} +1 -1
- package/dist/chunks/Collection-BYX373AD.cjs.js +18 -0
- package/dist/chunks/Collection-BYX373AD.cjs.js.map +1 -0
- package/dist/chunks/{Collection-CDJ_uFKV.es.js → Collection-Df3FPouy.es.js} +337 -366
- package/dist/chunks/Collection-Df3FPouy.es.js.map +1 -0
- package/dist/chunks/{DateField-Cg2n5ili.es.js → DateField-DVzmD_D6.es.js} +39 -40
- package/dist/chunks/{DateField-Cg2n5ili.es.js.map → DateField-DVzmD_D6.es.js.map} +1 -1
- package/dist/chunks/DateField-Dh2hoOBr.cjs.js +2 -0
- package/dist/chunks/{DateField-BRw4EOOA.cjs.js.map → DateField-Dh2hoOBr.cjs.js.map} +1 -1
- package/dist/chunks/{DatePicker-CqbnVxIC.cjs.js → DatePicker-C0NXSwOw.cjs.js} +2 -2
- package/dist/chunks/{DatePicker-CqbnVxIC.cjs.js.map → DatePicker-C0NXSwOw.cjs.js.map} +1 -1
- package/dist/chunks/{DatePicker-DVtAIdlj.es.js → DatePicker-_A7-hp_b.es.js} +17 -17
- package/dist/chunks/{DatePicker-DVtAIdlj.es.js.map → DatePicker-_A7-hp_b.es.js.map} +1 -1
- package/dist/chunks/Dialog-BnIvgMq1.cjs.js +2 -0
- package/dist/chunks/{Dialog-ljK75Ezb.cjs.js.map → Dialog-BnIvgMq1.cjs.js.map} +1 -1
- package/dist/chunks/{Dialog-BTicQJXP.es.js → Dialog-C3wKnoBH.es.js} +430 -431
- package/dist/chunks/{Dialog-BTicQJXP.es.js.map → Dialog-C3wKnoBH.es.js.map} +1 -1
- package/dist/chunks/{DragAndDrop-xhP_Ei7N.es.js → DragAndDrop-ChYb3tCX.es.js} +3 -3
- package/dist/chunks/{DragAndDrop-xhP_Ei7N.es.js.map → DragAndDrop-ChYb3tCX.es.js.map} +1 -1
- package/dist/chunks/{DragAndDrop-QpvgGL4C.cjs.js → DragAndDrop-cOfUfFj8.cjs.js} +2 -2
- package/dist/chunks/{DragAndDrop-QpvgGL4C.cjs.js.map → DragAndDrop-cOfUfFj8.cjs.js.map} +1 -1
- package/dist/chunks/FocusScope-CNO0fzPs.es.js +625 -0
- package/dist/chunks/FocusScope-CNO0fzPs.es.js.map +1 -0
- package/dist/chunks/FocusScope-DPn5XtSy.cjs.js +2 -0
- package/dist/chunks/FocusScope-DPn5XtSy.cjs.js.map +1 -0
- package/dist/chunks/{Group-CU1nz0u2.es.js → Group-Cfixd-fh.es.js} +5 -5
- package/dist/chunks/{Group-CU1nz0u2.es.js.map → Group-Cfixd-fh.es.js.map} +1 -1
- package/dist/chunks/{Group-DxD-SZdK.cjs.js → Group-MdeByg6t.cjs.js} +2 -2
- package/dist/chunks/{Group-DxD-SZdK.cjs.js.map → Group-MdeByg6t.cjs.js.map} +1 -1
- package/dist/chunks/Heading-BI5vqfiY.cjs.js +2 -0
- package/dist/chunks/{Heading-BorDTn_V.cjs.js.map → Heading-BI5vqfiY.cjs.js.map} +1 -1
- package/dist/chunks/{Heading-CXKMd84h.es.js → Heading-sepFdCCa.es.js} +26 -27
- package/dist/chunks/{Heading-CXKMd84h.es.js.map → Heading-sepFdCCa.es.js.map} +1 -1
- package/dist/chunks/{Input-B7Cnwv00.es.js → Input-BiHwUBo4.es.js} +5 -5
- package/dist/chunks/{Input-B7Cnwv00.es.js.map → Input-BiHwUBo4.es.js.map} +1 -1
- package/dist/chunks/{Input-DK49tQti.cjs.js → Input-HBDt7LmM.cjs.js} +2 -2
- package/dist/chunks/{Input-DK49tQti.cjs.js.map → Input-HBDt7LmM.cjs.js.map} +1 -1
- package/dist/chunks/{Label-CXgc_ps9.es.js → Label-B2YyCdLl.es.js} +2 -2
- package/dist/chunks/{Label-CXgc_ps9.es.js.map → Label-B2YyCdLl.es.js.map} +1 -1
- package/dist/chunks/{Label-DSG_MTc3.cjs.js → Label-BgrYyYXn.cjs.js} +2 -2
- package/dist/chunks/{Label-DSG_MTc3.cjs.js.map → Label-BgrYyYXn.cjs.js.map} +1 -1
- package/dist/chunks/{ListBox-DETV_5At.cjs.js → ListBox-B2Z13FyL.cjs.js} +2 -2
- package/dist/chunks/{ListBox-DETV_5At.cjs.js.map → ListBox-B2Z13FyL.cjs.js.map} +1 -1
- package/dist/chunks/{ListBox-CGw4-iNr.es.js → ListBox-BzuLanGT.es.js} +14 -14
- package/dist/chunks/{ListBox-CGw4-iNr.es.js.map → ListBox-BzuLanGT.es.js.map} +1 -1
- package/dist/chunks/{OverlayArrow-C_SkpQbf.cjs.js → OverlayArrow-C5Ymp9MC.cjs.js} +2 -2
- package/dist/chunks/{OverlayArrow-C_SkpQbf.cjs.js.map → OverlayArrow-C5Ymp9MC.cjs.js.map} +1 -1
- package/dist/chunks/{OverlayArrow-DbPNbnKm.es.js → OverlayArrow-ERS8ZqL3.es.js} +3 -3
- package/dist/chunks/{OverlayArrow-DbPNbnKm.es.js.map → OverlayArrow-ERS8ZqL3.es.js.map} +1 -1
- package/dist/chunks/{ProgressBar-Bm7vfOk4.cjs.js → ProgressBar-BNPexoD9.cjs.js} +2 -2
- package/dist/chunks/{ProgressBar-Bm7vfOk4.cjs.js.map → ProgressBar-BNPexoD9.cjs.js.map} +1 -1
- package/dist/chunks/{ProgressBar-DNmmtJsB.es.js → ProgressBar-BnGsEC_2.es.js} +5 -5
- package/dist/chunks/{ProgressBar-DNmmtJsB.es.js.map → ProgressBar-BnGsEC_2.es.js.map} +1 -1
- package/dist/chunks/Separator-QdyS03-E.cjs.js +2 -0
- package/dist/chunks/{Separator-CinA2hg4.cjs.js.map → Separator-QdyS03-E.cjs.js.map} +1 -1
- package/dist/chunks/{Separator-Ahj2J22_.es.js → Separator-T5Cc3sUj.es.js} +25 -26
- package/dist/chunks/{Separator-Ahj2J22_.es.js.map → Separator-T5Cc3sUj.es.js.map} +1 -1
- package/dist/chunks/{TextArea-DTir64d8.es.js → TextArea-BmpgvS0R.es.js} +5 -5
- package/dist/chunks/{TextArea-DTir64d8.es.js.map → TextArea-BmpgvS0R.es.js.map} +1 -1
- package/dist/chunks/{TextArea-p1OqtLgN.cjs.js → TextArea-D3FFXnUy.cjs.js} +2 -2
- package/dist/chunks/{TextArea-p1OqtLgN.cjs.js.map → TextArea-D3FFXnUy.cjs.js.map} +1 -1
- package/dist/chunks/{ToggleButton-CmN8Ay9u.es.js → ToggleButton-BoIyPi3U.es.js} +7 -7
- package/dist/chunks/{ToggleButton-CmN8Ay9u.es.js.map → ToggleButton-BoIyPi3U.es.js.map} +1 -1
- package/dist/chunks/{ToggleButton-DWTy3juF.cjs.js → ToggleButton-By3cqA7R.cjs.js} +2 -2
- package/dist/chunks/{ToggleButton-DWTy3juF.cjs.js.map → ToggleButton-By3cqA7R.cjs.js.map} +1 -1
- package/dist/chunks/{VisuallyHidden-DFP8AIDZ.cjs.js → VisuallyHidden-Bv_AJXZ7.cjs.js} +2 -2
- package/dist/chunks/{VisuallyHidden-DFP8AIDZ.cjs.js.map → VisuallyHidden-Bv_AJXZ7.cjs.js.map} +1 -1
- package/dist/chunks/{VisuallyHidden-BY2z9PpP.es.js → VisuallyHidden-VHEPK04F.es.js} +3 -3
- package/dist/chunks/{VisuallyHidden-BY2z9PpP.es.js.map → VisuallyHidden-VHEPK04F.es.js.map} +1 -1
- package/dist/chunks/{accordion-DF0by3UE.es.js → accordion-8XmJkF18.es.js} +5 -5
- package/dist/chunks/{accordion-DF0by3UE.es.js.map → accordion-8XmJkF18.es.js.map} +1 -1
- package/dist/chunks/{accordion-Db0ZaAwE.cjs.js → accordion-CAC36XIK.cjs.js} +2 -2
- package/dist/chunks/{accordion-Db0ZaAwE.cjs.js.map → accordion-CAC36XIK.cjs.js.map} +1 -1
- package/dist/chunks/{alert-DfnvHvbA.es.js → alert-CbAPX3xQ.es.js} +2 -2
- package/dist/chunks/{alert-DfnvHvbA.es.js.map → alert-CbAPX3xQ.es.js.map} +1 -1
- package/dist/chunks/{alert-Ck60ax0h.cjs.js → alert-STlW7NU8.cjs.js} +2 -2
- package/dist/chunks/{alert-Ck60ax0h.cjs.js.map → alert-STlW7NU8.cjs.js.map} +1 -1
- package/dist/chunks/{badge-B58WR_nK.es.js → badge-C2elCKPp.es.js} +2 -2
- package/dist/chunks/{badge-B58WR_nK.es.js.map → badge-C2elCKPp.es.js.map} +1 -1
- package/dist/chunks/{badge-D3iqhdY4.cjs.js → badge-HHzfG1BI.cjs.js} +2 -2
- package/dist/chunks/{badge-D3iqhdY4.cjs.js.map → badge-HHzfG1BI.cjs.js.map} +1 -1
- package/dist/chunks/{button-N0fUFhvD.cjs.js → button-CtWoT2k5.cjs.js} +2 -2
- package/dist/chunks/{button-N0fUFhvD.cjs.js.map → button-CtWoT2k5.cjs.js.map} +1 -1
- package/dist/chunks/{button-Nd45zL1x.es.js → button-_TqIjVy-.es.js} +5 -5
- package/dist/chunks/{button-Nd45zL1x.es.js.map → button-_TqIjVy-.es.js.map} +1 -1
- package/dist/chunks/{calendar-kDDTW9QY.es.js → calendar-Cgm2jctu.es.js} +8 -8
- package/dist/chunks/{calendar-kDDTW9QY.es.js.map → calendar-Cgm2jctu.es.js.map} +1 -1
- package/dist/chunks/{calendar-Cj6tlZEj.cjs.js → calendar-DFhIC3YS.cjs.js} +2 -2
- package/dist/chunks/{calendar-Cj6tlZEj.cjs.js.map → calendar-DFhIC3YS.cjs.js.map} +1 -1
- package/dist/chunks/{card-DFkYZ6Cs.cjs.js → card-CHfjhPF8.cjs.js} +2 -2
- package/dist/chunks/{card-DFkYZ6Cs.cjs.js.map → card-CHfjhPF8.cjs.js.map} +1 -1
- package/dist/chunks/{card-33QKPI9V.es.js → card-R8oaAKgo.es.js} +3 -3
- package/dist/chunks/{card-33QKPI9V.es.js.map → card-R8oaAKgo.es.js.map} +1 -1
- package/dist/chunks/{checkbox-D2tsRAy1.es.js → checkbox-Ce37pKIe.es.js} +9 -9
- package/dist/chunks/{checkbox-D2tsRAy1.es.js.map → checkbox-Ce37pKIe.es.js.map} +1 -1
- package/dist/chunks/{checkbox-g5gMaiLJ.cjs.js → checkbox-pYAJn7HX.cjs.js} +2 -2
- package/dist/chunks/{checkbox-g5gMaiLJ.cjs.js.map → checkbox-pYAJn7HX.cjs.js.map} +1 -1
- package/dist/chunks/{combobox-C1nOP0Qh.es.js → combobox-C3FEfver.es.js} +403 -423
- package/dist/chunks/combobox-C3FEfver.es.js.map +1 -0
- package/dist/chunks/combobox-CnUfDGC-.cjs.js +2 -0
- package/dist/chunks/combobox-CnUfDGC-.cjs.js.map +1 -0
- package/dist/chunks/data-table-BvTXYpZB.cjs.js +2 -0
- package/dist/chunks/{data-table-CgICAQC9.cjs.js.map → data-table-BvTXYpZB.cjs.js.map} +1 -1
- package/dist/chunks/{data-table-DlBw5XeS.es.js → data-table-BvYN1Stn.es.js} +426 -427
- package/dist/chunks/{data-table-DlBw5XeS.es.js.map → data-table-BvYN1Stn.es.js.map} +1 -1
- package/dist/chunks/{date-input-CHWJMf4Y.cjs.js → date-input-BmKSBIL2.cjs.js} +2 -2
- package/dist/chunks/{date-input-CHWJMf4Y.cjs.js.map → date-input-BmKSBIL2.cjs.js.map} +1 -1
- package/dist/chunks/{date-input-DBd91qhQ.es.js → date-input-DFx77xwE.es.js} +2 -2
- package/dist/chunks/{date-input-DBd91qhQ.es.js.map → date-input-DFx77xwE.es.js.map} +1 -1
- package/dist/chunks/{date-picker-DkegHUiZ.es.js → date-picker-BzkAJfXO.es.js} +12 -12
- package/dist/chunks/{date-picker-DkegHUiZ.es.js.map → date-picker-BzkAJfXO.es.js.map} +1 -1
- package/dist/chunks/{date-picker-W70bKrmU.cjs.js → date-picker-CsGYO3HW.cjs.js} +2 -2
- package/dist/chunks/{date-picker-W70bKrmU.cjs.js.map → date-picker-CsGYO3HW.cjs.js.map} +1 -1
- package/dist/chunks/{date-range-picker-vzDrtZ94.es.js → date-range-picker-B1Sxvj0C.es.js} +12 -12
- package/dist/chunks/{date-range-picker-vzDrtZ94.es.js.map → date-range-picker-B1Sxvj0C.es.js.map} +1 -1
- package/dist/chunks/{date-range-picker-Cqdj51fV.cjs.js → date-range-picker-uomzPtYK.cjs.js} +2 -2
- package/dist/chunks/{date-range-picker-Cqdj51fV.cjs.js.map → date-range-picker-uomzPtYK.cjs.js.map} +1 -1
- package/dist/chunks/{divider-BZkfiFj5.cjs.js → divider-CTTExmLv.cjs.js} +2 -2
- package/dist/chunks/{divider-BZkfiFj5.cjs.js.map → divider-CTTExmLv.cjs.js.map} +1 -1
- package/dist/chunks/{divider-Vtnb6QbI.es.js → divider-CpctZ_-U.es.js} +2 -2
- package/dist/chunks/{divider-Vtnb6QbI.es.js.map → divider-CpctZ_-U.es.js.map} +1 -1
- package/dist/chunks/filterDOMProps-BSVCO5jK.es.js.map +1 -1
- package/dist/chunks/filterDOMProps-WUskt27c.cjs.js.map +1 -1
- package/dist/chunks/{focusSafely-D8bIeV7X.es.js → focusSafely-DJpphVHF.es.js} +6 -5
- package/dist/chunks/{focusSafely-D8bIeV7X.es.js.map → focusSafely-DJpphVHF.es.js.map} +1 -1
- package/dist/chunks/focusSafely-jDMW9aEx.cjs.js +2 -0
- package/dist/chunks/{focusSafely-CgVjbH-x.cjs.js.map → focusSafely-jDMW9aEx.cjs.js.map} +1 -1
- package/dist/chunks/focusWithoutScrolling-BlyUcXdY.cjs.js.map +1 -1
- package/dist/chunks/focusWithoutScrolling-CDw3JYiq.es.js.map +1 -1
- package/dist/chunks/{form-field-CS9GGlbl.cjs.js → form-field-6_jyAhgo.cjs.js} +2 -2
- package/dist/chunks/{form-field-CS9GGlbl.cjs.js.map → form-field-6_jyAhgo.cjs.js.map} +1 -1
- package/dist/chunks/{form-field-DcQW2A1i.es.js → form-field-B1B4BtvO.es.js} +4 -4
- package/dist/chunks/{form-field-DcQW2A1i.es.js.map → form-field-B1B4BtvO.es.js.map} +1 -1
- package/dist/chunks/{group-DgCuvf_U.cjs.js → group-Buy-O6Mr.cjs.js} +2 -2
- package/dist/chunks/{group-DgCuvf_U.cjs.js.map → group-Buy-O6Mr.cjs.js.map} +1 -1
- package/dist/chunks/{group-CYRXn-NO.es.js → group-CqfSQXe7.es.js} +2 -2
- package/dist/chunks/{group-CYRXn-NO.es.js.map → group-CqfSQXe7.es.js.map} +1 -1
- package/dist/chunks/{icon-button-Cs41MKV5.cjs.js → icon-button-Dqhm4rBI.cjs.js} +2 -2
- package/dist/chunks/{icon-button-Cs41MKV5.cjs.js.map → icon-button-Dqhm4rBI.cjs.js.map} +1 -1
- package/dist/chunks/{icon-button-BkjZ1Pq8.es.js → icon-button-oIKucbza.es.js} +2 -2
- package/dist/chunks/{icon-button-BkjZ1Pq8.es.js.map → icon-button-oIKucbza.es.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-CEGHh-JB.es.js → icon-toggle-button-BYKHQRsq.es.js} +2 -2
- package/dist/chunks/{icon-toggle-button-CEGHh-JB.es.js.map → icon-toggle-button-BYKHQRsq.es.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-BljNXaJy.cjs.js → icon-toggle-button-DIfDVDd4.cjs.js} +2 -2
- package/dist/chunks/{icon-toggle-button-BljNXaJy.cjs.js.map → icon-toggle-button-DIfDVDd4.cjs.js.map} +1 -1
- package/dist/chunks/{kbd-BjfxBIWW.es.js → kbd-CDEXQyg2.es.js} +2 -2
- package/dist/chunks/{kbd-BjfxBIWW.es.js.map → kbd-CDEXQyg2.es.js.map} +1 -1
- package/dist/chunks/{kbd-DxwHwPaF.cjs.js → kbd-DP3lZ80W.cjs.js} +2 -2
- package/dist/chunks/{kbd-DxwHwPaF.cjs.js.map → kbd-DP3lZ80W.cjs.js.map} +1 -1
- package/dist/chunks/{link-D0XhkPu6.es.js → link-BoUhLeO-.es.js} +5 -5
- package/dist/chunks/{link-D0XhkPu6.es.js.map → link-BoUhLeO-.es.js.map} +1 -1
- package/dist/chunks/{link-CNe7kOhA.cjs.js → link-DTUiEXYJ.cjs.js} +2 -2
- package/dist/chunks/{link-CNe7kOhA.cjs.js.map → link-DTUiEXYJ.cjs.js.map} +1 -1
- package/dist/chunks/{loading-spinner-C_1gCLzP.cjs.js → loading-spinner-BLDpwNFm.cjs.js} +2 -2
- package/dist/chunks/{loading-spinner-C_1gCLzP.cjs.js.map → loading-spinner-BLDpwNFm.cjs.js.map} +1 -1
- package/dist/chunks/{loading-spinner-COTpElt8.es.js → loading-spinner-C7yZE-QF.es.js} +3 -3
- package/dist/chunks/{loading-spinner-COTpElt8.es.js.map → loading-spinner-C7yZE-QF.es.js.map} +1 -1
- package/dist/chunks/{make-element-focusable-DS5T93TG.es.js → make-element-focusable-C4ZHUSEU.es.js} +3 -3
- package/dist/chunks/{make-element-focusable-DS5T93TG.es.js.map → make-element-focusable-C4ZHUSEU.es.js.map} +1 -1
- package/dist/chunks/{make-element-focusable-Cj8VL4H4.cjs.js → make-element-focusable-bPAMXt4D.cjs.js} +2 -2
- package/dist/chunks/{make-element-focusable-Cj8VL4H4.cjs.js.map → make-element-focusable-bPAMXt4D.cjs.js.map} +1 -1
- package/dist/chunks/{menu-DKTon-Vn.es.js → menu-BZWMAG92.es.js} +5 -5
- package/dist/chunks/{menu-DKTon-Vn.es.js.map → menu-BZWMAG92.es.js.map} +1 -1
- package/dist/chunks/{menu-BaTd4n0a.cjs.js → menu-C41LRy4b.cjs.js} +2 -2
- package/dist/chunks/{menu-BaTd4n0a.cjs.js.map → menu-C41LRy4b.cjs.js.map} +1 -1
- package/dist/chunks/{mergeProps-DRkWdaVg.cjs.js → mergeProps-BA5Cwf5w.cjs.js} +2 -2
- package/dist/chunks/{mergeProps-DRkWdaVg.cjs.js.map → mergeProps-BA5Cwf5w.cjs.js.map} +1 -1
- package/dist/chunks/{mergeProps-CtwSzqnr.es.js → mergeProps-B_9syxhT.es.js} +4 -5
- package/dist/chunks/{mergeProps-CtwSzqnr.es.js.map → mergeProps-B_9syxhT.es.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-DufrCFhg.cjs.js → multiline-text-input-B5XtIAAO.cjs.js} +2 -2
- package/dist/chunks/{multiline-text-input-DufrCFhg.cjs.js.map → multiline-text-input-B5XtIAAO.cjs.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-Bsazfavw.es.js → multiline-text-input-Dy6gbL7T.es.js} +3 -3
- package/dist/chunks/{multiline-text-input-Bsazfavw.es.js.map → multiline-text-input-Dy6gbL7T.es.js.map} +1 -1
- package/dist/chunks/{nimbus-provider-BinjIRf7.es.js → nimbus-provider-C68IpiXi.es.js} +2 -2
- package/dist/chunks/{nimbus-provider-BinjIRf7.es.js.map → nimbus-provider-C68IpiXi.es.js.map} +1 -1
- package/dist/chunks/{number-input-l32lWVbX.es.js → number-input-BxLU6AgG.es.js} +192 -208
- package/dist/chunks/number-input-BxLU6AgG.es.js.map +1 -0
- package/dist/chunks/number-input-Dm2FFtQx.cjs.js +2 -0
- package/dist/chunks/number-input-Dm2FFtQx.cjs.js.map +1 -0
- package/dist/chunks/{openLink-BwkmFekP.es.js → openLink-Ctl0AdAy.es.js} +2 -2
- package/dist/chunks/{openLink-BwkmFekP.es.js.map → openLink-Ctl0AdAy.es.js.map} +1 -1
- package/dist/chunks/openLink-DkCJYbzq.cjs.js.map +1 -1
- package/dist/chunks/{password-input-q1cxpiOP.cjs.js → password-input-CwWWxcly.cjs.js} +2 -2
- package/dist/chunks/{password-input-q1cxpiOP.cjs.js.map → password-input-CwWWxcly.cjs.js.map} +1 -1
- package/dist/chunks/{password-input-B9Uv-ybv.es.js → password-input-DJjAz3TP.es.js} +4 -4
- package/dist/chunks/{password-input-B9Uv-ybv.es.js.map → password-input-DJjAz3TP.es.js.map} +1 -1
- package/dist/chunks/platform-BDLy2vDY.cjs.js.map +1 -1
- package/dist/chunks/{platform-BOO1jCtB.es.js → platform-Z5fvtFmM.es.js} +4 -4
- package/dist/chunks/{platform-BOO1jCtB.es.js.map → platform-Z5fvtFmM.es.js.map} +1 -1
- package/dist/chunks/{progress-bar-C8onDqV2.es.js → progress-bar-CDRI279T.es.js} +3 -3
- package/dist/chunks/{progress-bar-C8onDqV2.es.js.map → progress-bar-CDRI279T.es.js.map} +1 -1
- package/dist/chunks/{progress-bar-BGTJgcWE.cjs.js → progress-bar-nQCcdv_4.cjs.js} +2 -2
- package/dist/chunks/{progress-bar-BGTJgcWE.cjs.js.map → progress-bar-nQCcdv_4.cjs.js.map} +1 -1
- package/dist/chunks/radio-input-BXFY8CaT.cjs.js +2 -0
- package/dist/chunks/{radio-input-BlE9GNwl.cjs.js.map → radio-input-BXFY8CaT.cjs.js.map} +1 -1
- package/dist/chunks/{radio-input-uMVsYeTe.es.js → radio-input-CAogtJP7.es.js} +15 -15
- package/dist/chunks/{radio-input-uMVsYeTe.es.js.map → radio-input-CAogtJP7.es.js.map} +1 -1
- package/dist/chunks/{range-calendar-CvTT4HY-.cjs.js → range-calendar-BuzvPCc1.cjs.js} +2 -2
- package/dist/chunks/{range-calendar-CvTT4HY-.cjs.js.map → range-calendar-BuzvPCc1.cjs.js.map} +1 -1
- package/dist/chunks/{range-calendar-YuvY8LUd.es.js → range-calendar-D-CvB2-1.es.js} +8 -8
- package/dist/chunks/{range-calendar-YuvY8LUd.es.js.map → range-calendar-D-CvB2-1.es.js.map} +1 -1
- package/dist/chunks/{rich-text-input-C7EK9LsN.cjs.js → rich-text-input-Dmp5hx2t.cjs.js} +2 -2
- package/dist/chunks/{rich-text-input-C7EK9LsN.cjs.js.map → rich-text-input-Dmp5hx2t.cjs.js.map} +1 -1
- package/dist/chunks/{rich-text-input-CVqiVHV1.es.js → rich-text-input-Dv7OofX2.es.js} +11 -11
- package/dist/chunks/{rich-text-input-CVqiVHV1.es.js.map → rich-text-input-Dv7OofX2.es.js.map} +1 -1
- package/dist/chunks/scrollIntoView-BYF_8_6g.es.js +94 -0
- package/dist/chunks/scrollIntoView-BYF_8_6g.es.js.map +1 -0
- package/dist/chunks/scrollIntoView-BzIqpHLO.cjs.js +2 -0
- package/dist/chunks/scrollIntoView-BzIqpHLO.cjs.js.map +1 -0
- package/dist/chunks/{select-CgapbY3S.es.js → select-Dlg0m5Ww.es.js} +18 -18
- package/dist/chunks/{select-CgapbY3S.es.js.map → select-Dlg0m5Ww.es.js.map} +1 -1
- package/dist/chunks/{select-Dd2f6hd1.cjs.js → select-IUEop3i7.cjs.js} +2 -2
- package/dist/chunks/{select-Dd2f6hd1.cjs.js.map → select-IUEop3i7.cjs.js.map} +1 -1
- package/dist/chunks/{split-button-Blbr2czN.cjs.js → split-button-B4Wp7H3n.cjs.js} +2 -2
- package/dist/chunks/{split-button-Blbr2czN.cjs.js.map → split-button-B4Wp7H3n.cjs.js.map} +1 -1
- package/dist/chunks/{split-button-DoRlks-p.es.js → split-button-Dpj44F6g.es.js} +4 -4
- package/dist/chunks/{split-button-DoRlks-p.es.js.map → split-button-Dpj44F6g.es.js.map} +1 -1
- package/dist/chunks/{switch-Cb0mCIEe.es.js → switch-Ba9WXDDP.es.js} +5 -5
- package/dist/chunks/{switch-Cb0mCIEe.es.js.map → switch-Ba9WXDDP.es.js.map} +1 -1
- package/dist/chunks/{switch-Cha1HMzo.cjs.js → switch-CeNcr608.cjs.js} +2 -2
- package/dist/chunks/{switch-Cha1HMzo.cjs.js.map → switch-CeNcr608.cjs.js.map} +1 -1
- package/dist/chunks/{tag-group-CvKA8ufC.es.js → tag-group-BY7yGmmv.es.js} +22 -23
- package/dist/chunks/{tag-group-CvKA8ufC.es.js.map → tag-group-BY7yGmmv.es.js.map} +1 -1
- package/dist/chunks/tag-group-DXKC_JuG.cjs.js +2 -0
- package/dist/chunks/{tag-group-5uAuEquc.cjs.js.map → tag-group-DXKC_JuG.cjs.js.map} +1 -1
- package/dist/chunks/{text-DkO9mfur.es.js → text-B2wziCK6.es.js} +2 -2
- package/dist/chunks/{text-DkO9mfur.es.js.map → text-B2wziCK6.es.js.map} +1 -1
- package/dist/chunks/{text-BOdnmoaN.cjs.js → text-hUMahKuA.cjs.js} +2 -2
- package/dist/chunks/{text-BOdnmoaN.cjs.js.map → text-hUMahKuA.cjs.js.map} +1 -1
- package/dist/chunks/{text-input-C3q-zUxw.es.js → text-input-82882hyq.es.js} +3 -3
- package/dist/chunks/{text-input-C3q-zUxw.es.js.map → text-input-82882hyq.es.js.map} +1 -1
- package/dist/chunks/{text-input-eShRYnI3.cjs.js → text-input-CBcEG79G.cjs.js} +2 -2
- package/dist/chunks/{text-input-eShRYnI3.cjs.js.map → text-input-CBcEG79G.cjs.js.map} +1 -1
- package/dist/chunks/{time-input-CkNODZOE.cjs.js → time-input-CCnD_SWq.cjs.js} +2 -2
- package/dist/chunks/{time-input-CkNODZOE.cjs.js.map → time-input-CCnD_SWq.cjs.js.map} +1 -1
- package/dist/chunks/{time-input-ZZK92O_5.es.js → time-input-DAA-IK0I.es.js} +2 -2
- package/dist/chunks/{time-input-ZZK92O_5.es.js.map → time-input-DAA-IK0I.es.js.map} +1 -1
- package/dist/chunks/{toggle-button-Bfo8opbK.es.js → toggle-button-163ZMcpk.es.js} +2 -2
- package/dist/chunks/{toggle-button-Bfo8opbK.es.js.map → toggle-button-163ZMcpk.es.js.map} +1 -1
- package/dist/chunks/{toggle-button-BEOCbO0O.cjs.js → toggle-button-BTYd563-.cjs.js} +2 -2
- package/dist/chunks/{toggle-button-BEOCbO0O.cjs.js.map → toggle-button-BTYd563-.cjs.js.map} +1 -1
- package/dist/chunks/{toggle-button-group-yB5nqdV3.es.js → toggle-button-group-D-sGsuZ_.es.js} +2 -2
- package/dist/chunks/{toggle-button-group-yB5nqdV3.es.js.map → toggle-button-group-D-sGsuZ_.es.js.map} +1 -1
- package/dist/chunks/{toggle-button-group-B_C5ly_4.cjs.js → toggle-button-group-Dq51N27j.cjs.js} +2 -2
- package/dist/chunks/{toggle-button-group-B_C5ly_4.cjs.js.map → toggle-button-group-Dq51N27j.cjs.js.map} +1 -1
- package/dist/chunks/{toolbar-DvkcbAsl.es.js → toolbar-Ch-bOLkm.es.js} +4 -4
- package/dist/chunks/{toolbar-DvkcbAsl.es.js.map → toolbar-Ch-bOLkm.es.js.map} +1 -1
- package/dist/chunks/{toolbar-BZkvVoAw.cjs.js → toolbar-CzXpYEbP.cjs.js} +2 -2
- package/dist/chunks/{toolbar-BZkvVoAw.cjs.js.map → toolbar-CzXpYEbP.cjs.js.map} +1 -1
- package/dist/chunks/{tooltip-D7QmPw5W.cjs.js → tooltip-BFuuQNa4.cjs.js} +2 -2
- package/dist/chunks/{tooltip-D7QmPw5W.cjs.js.map → tooltip-BFuuQNa4.cjs.js.map} +1 -1
- package/dist/chunks/{tooltip-Bb_I4Owj.es.js → tooltip-BpUbO0NA.es.js} +7 -7
- package/dist/chunks/{tooltip-Bb_I4Owj.es.js.map → tooltip-BpUbO0NA.es.js.map} +1 -1
- package/dist/chunks/{useButton-6DDhTkQ5.cjs.js → useButton-C8n_NtBu.cjs.js} +2 -2
- package/dist/chunks/{useButton-6DDhTkQ5.cjs.js.map → useButton-C8n_NtBu.cjs.js.map} +1 -1
- package/dist/chunks/{useButton-CKkFEBt0.es.js → useButton-M3_syr-Y.es.js} +4 -4
- package/dist/chunks/{useButton-CKkFEBt0.es.js.map → useButton-M3_syr-Y.es.js.map} +1 -1
- package/dist/chunks/{useDateFormatter-DGeAh0SC.es.js → useDateFormatter-BqJA667a.es.js} +2 -2
- package/dist/chunks/{useDateFormatter-DGeAh0SC.es.js.map → useDateFormatter-BqJA667a.es.js.map} +1 -1
- package/dist/chunks/{useDateFormatter-BIkv89ta.cjs.js → useDateFormatter-Dq2Ly1Je.cjs.js} +2 -2
- package/dist/chunks/{useDateFormatter-BIkv89ta.cjs.js.map → useDateFormatter-Dq2Ly1Je.cjs.js.map} +1 -1
- package/dist/chunks/{useEvent-AOCWMUCu.cjs.js → useEvent-CuUOU5WV.cjs.js} +2 -2
- package/dist/chunks/{useEvent-AOCWMUCu.cjs.js.map → useEvent-CuUOU5WV.cjs.js.map} +1 -1
- package/dist/chunks/{useEvent-k0_MYJWL.es.js → useEvent-YHhqZvpU.es.js} +7 -7
- package/dist/chunks/{useEvent-k0_MYJWL.es.js.map → useEvent-YHhqZvpU.es.js.map} +1 -1
- package/dist/chunks/{useField-9-dizG-T.es.js → useField-Ce9zQxmx.es.js} +3 -3
- package/dist/chunks/{useField-9-dizG-T.es.js.map → useField-Ce9zQxmx.es.js.map} +1 -1
- package/dist/chunks/{useField-D5vZhNS3.cjs.js → useField-DmqO9k7a.cjs.js} +2 -2
- package/dist/chunks/{useField-D5vZhNS3.cjs.js.map → useField-DmqO9k7a.cjs.js.map} +1 -1
- package/dist/chunks/{useFocus-DpnjsJ3H.cjs.js → useFocus-BtJ38vev.cjs.js} +2 -2
- package/dist/chunks/{useFocus-DpnjsJ3H.cjs.js.map → useFocus-BtJ38vev.cjs.js.map} +1 -1
- package/dist/chunks/{useFocus-Lq2Mmyje.es.js → useFocus-DkWJ2TJC.es.js} +6 -6
- package/dist/chunks/{useFocus-Lq2Mmyje.es.js.map → useFocus-DkWJ2TJC.es.js.map} +1 -1
- package/dist/chunks/{useFocusRing-DjMwdeTr.cjs.js → useFocusRing-CzFer4bD.cjs.js} +2 -2
- package/dist/chunks/{useFocusRing-DjMwdeTr.cjs.js.map → useFocusRing-CzFer4bD.cjs.js.map} +1 -1
- package/dist/chunks/{useFocusRing-BFWuvq6P.es.js → useFocusRing-updnkDQg.es.js} +4 -4
- package/dist/chunks/{useFocusRing-BFWuvq6P.es.js.map → useFocusRing-updnkDQg.es.js.map} +1 -1
- package/dist/chunks/useFocusVisible-CWDaG0ze.es.js +111 -0
- package/dist/chunks/useFocusVisible-CWDaG0ze.es.js.map +1 -0
- package/dist/chunks/useFocusVisible-Co0C61s7.cjs.js +2 -0
- package/dist/chunks/useFocusVisible-Co0C61s7.cjs.js.map +1 -0
- package/dist/chunks/{useFocusWithin-BcxLc412.cjs.js → useFocusWithin-BDSWp3rw.cjs.js} +2 -2
- package/dist/chunks/{useFocusWithin-BcxLc412.cjs.js.map → useFocusWithin-BDSWp3rw.cjs.js.map} +1 -1
- package/dist/chunks/{useFocusWithin-QIERmzTm.es.js → useFocusWithin-ByYlHjju.es.js} +6 -6
- package/dist/chunks/{useFocusWithin-QIERmzTm.es.js.map → useFocusWithin-ByYlHjju.es.js.map} +1 -1
- package/dist/chunks/useFocusable-CrsD8ZcF.es.js +77 -0
- package/dist/chunks/useFocusable-CrsD8ZcF.es.js.map +1 -0
- package/dist/chunks/useFocusable-DCgmQxS1.cjs.js +2 -0
- package/dist/chunks/useFocusable-DCgmQxS1.cjs.js.map +1 -0
- package/dist/chunks/{useFormReset-7-vYPDFJ.cjs.js → useFormReset--wPlnEOl.cjs.js} +2 -2
- package/dist/chunks/{useFormReset-7-vYPDFJ.cjs.js.map → useFormReset--wPlnEOl.cjs.js.map} +1 -1
- package/dist/chunks/{useFormReset-C27nadG4.es.js → useFormReset-DurgUJL-.es.js} +2 -2
- package/dist/chunks/{useFormReset-C27nadG4.es.js.map → useFormReset-DurgUJL-.es.js.map} +1 -1
- package/dist/chunks/{useFormValidation-Chwu6llz.es.js → useFormValidation-4hZ1_a6w.es.js} +3 -3
- package/dist/chunks/{useFormValidation-Chwu6llz.es.js.map → useFormValidation-4hZ1_a6w.es.js.map} +1 -1
- package/dist/chunks/{useFormValidation-B5jwexNB.cjs.js → useFormValidation-BEaCuNx1.cjs.js} +2 -2
- package/dist/chunks/{useFormValidation-B5jwexNB.cjs.js.map → useFormValidation-BEaCuNx1.cjs.js.map} +1 -1
- package/dist/chunks/{useHighlightSelectionDescription-C7xYnRNQ.es.js → useHighlightSelectionDescription-CsL0QM95.es.js} +5 -5
- package/dist/chunks/{useHighlightSelectionDescription-C7xYnRNQ.es.js.map → useHighlightSelectionDescription-CsL0QM95.es.js.map} +1 -1
- package/dist/chunks/{useHighlightSelectionDescription-DbT86zJE.cjs.js → useHighlightSelectionDescription-DwBGGESb.cjs.js} +2 -2
- package/dist/chunks/{useHighlightSelectionDescription-DbT86zJE.cjs.js.map → useHighlightSelectionDescription-DwBGGESb.cjs.js.map} +1 -1
- package/dist/chunks/{useHover-BmNjdf-e.cjs.js → useHover-CiP9jMFy.cjs.js} +2 -2
- package/dist/chunks/{useHover-BmNjdf-e.cjs.js.map → useHover-CiP9jMFy.cjs.js.map} +1 -1
- package/dist/chunks/{useHover-C5D2lV7p.es.js → useHover-DhoE75lX.es.js} +2 -2
- package/dist/chunks/{useHover-C5D2lV7p.es.js.map → useHover-DhoE75lX.es.js.map} +1 -1
- package/dist/chunks/{useLabel-DHa3lVYx.es.js → useLabel-BBmkkrPP.es.js} +2 -2
- package/dist/chunks/{useLabel-DHa3lVYx.es.js.map → useLabel-BBmkkrPP.es.js.map} +1 -1
- package/dist/chunks/{useLabel-BvIA-VYU.cjs.js → useLabel-Y8tWagLu.cjs.js} +2 -2
- package/dist/chunks/{useLabel-BvIA-VYU.cjs.js.map → useLabel-Y8tWagLu.cjs.js.map} +1 -1
- package/dist/chunks/useObjectRef-CaJ5pgjX.es.js.map +1 -1
- package/dist/chunks/useObjectRef-dXOJdONs.cjs.js.map +1 -1
- package/dist/chunks/usePress-C8-hLXJw.cjs.js +8 -0
- package/dist/chunks/usePress-C8-hLXJw.cjs.js.map +1 -0
- package/dist/chunks/usePress-DHhWHfMz.es.js +456 -0
- package/dist/chunks/usePress-DHhWHfMz.es.js.map +1 -0
- package/dist/chunks/{useProgressBar-DPrqCXGF.cjs.js → useProgressBar-8ZyM2_T3.cjs.js} +2 -2
- package/dist/chunks/{useProgressBar-DPrqCXGF.cjs.js.map → useProgressBar-8ZyM2_T3.cjs.js.map} +1 -1
- package/dist/chunks/{useProgressBar-DjpcXNXW.es.js → useProgressBar-BgURyN6q.es.js} +3 -3
- package/dist/chunks/{useProgressBar-DjpcXNXW.es.js.map → useProgressBar-BgURyN6q.es.js.map} +1 -1
- package/dist/chunks/{useSingleSelectListState-CVyCydEV.cjs.js → useSingleSelectListState-8Jfm9Pr1.cjs.js} +2 -2
- package/dist/chunks/{useSingleSelectListState-CVyCydEV.cjs.js.map → useSingleSelectListState-8Jfm9Pr1.cjs.js.map} +1 -1
- package/dist/chunks/{useSingleSelectListState-C71okNUJ.es.js → useSingleSelectListState-CYqW_Fx5.es.js} +2 -2
- package/dist/chunks/{useSingleSelectListState-C71okNUJ.es.js.map → useSingleSelectListState-CYqW_Fx5.es.js.map} +1 -1
- package/dist/chunks/{useSpinButton-BmgSsr4J.es.js → useSpinButton-C-tpK-T9.es.js} +181 -210
- package/dist/chunks/useSpinButton-C-tpK-T9.es.js.map +1 -0
- package/dist/chunks/useSpinButton-Cw8QxU2l.cjs.js +2 -0
- package/dist/chunks/useSpinButton-Cw8QxU2l.cjs.js.map +1 -0
- package/dist/chunks/useSyncRef-DGRbdR4H.es.js +13 -0
- package/dist/chunks/useSyncRef-DGRbdR4H.es.js.map +1 -0
- package/dist/chunks/useSyncRef-bcjp9eId.cjs.js +2 -0
- package/dist/chunks/useSyncRef-bcjp9eId.cjs.js.map +1 -0
- package/dist/chunks/useTextField-BcthGRd8.cjs.js +2 -0
- package/dist/chunks/{useTextField-DvU8XT6q.cjs.js.map → useTextField-BcthGRd8.cjs.js.map} +1 -1
- package/dist/chunks/{useTextField-D0VFuWqP.es.js → useTextField-BnL6tOdd.es.js} +7 -7
- package/dist/chunks/{useTextField-D0VFuWqP.es.js.map → useTextField-BnL6tOdd.es.js.map} +1 -1
- package/dist/chunks/{useToggle-C9HpNiZE.es.js → useToggle-DqruaaTq.es.js} +5 -5
- package/dist/chunks/{useToggle-C9HpNiZE.es.js.map → useToggle-DqruaaTq.es.js.map} +1 -1
- package/dist/chunks/{useToggle-ChOojvWq.cjs.js → useToggle-VJWgbeCC.cjs.js} +2 -2
- package/dist/chunks/{useToggle-ChOojvWq.cjs.js.map → useToggle-VJWgbeCC.cjs.js.map} +1 -1
- package/dist/chunks/{useToolbar-Dzap6P-D.es.js → useToolbar-9B43whQM.es.js} +3 -3
- package/dist/chunks/{useToolbar-Dzap6P-D.es.js.map → useToolbar-9B43whQM.es.js.map} +1 -1
- package/dist/chunks/{useToolbar-DfnAHPrS.cjs.js → useToolbar-Coi7qK2U.cjs.js} +2 -2
- package/dist/chunks/{useToolbar-DfnAHPrS.cjs.js.map → useToolbar-Coi7qK2U.cjs.js.map} +1 -1
- package/dist/chunks/useUpdateEffect-C5YQs_1w.cjs.js.map +1 -1
- package/dist/chunks/useUpdateEffect-CCDx8D4X.es.js.map +1 -1
- package/dist/chunks/utils-BGHwK7fd.cjs.js +2 -0
- package/dist/chunks/utils-BGHwK7fd.cjs.js.map +1 -0
- package/dist/chunks/{utils-CB9xZl-T.cjs.js → utils-BHdR5Nww.cjs.js} +2 -2
- package/dist/chunks/{utils-CB9xZl-T.cjs.js.map → utils-BHdR5Nww.cjs.js.map} +1 -1
- package/dist/chunks/{utils-emYDjcZU.es.js → utils-BkdW_cdL.es.js} +2 -2
- package/dist/chunks/{utils-emYDjcZU.es.js.map → utils-BkdW_cdL.es.js.map} +1 -1
- package/dist/chunks/utils-jpfA6kxk.es.js +188 -0
- package/dist/chunks/utils-jpfA6kxk.es.js.map +1 -0
- package/dist/chunks/{visually-hidden-CQBnuJLY.cjs.js → visually-hidden-Bh-G5QHv.cjs.js} +2 -2
- package/dist/chunks/{visually-hidden-CQBnuJLY.cjs.js.map → visually-hidden-Bh-G5QHv.cjs.js.map} +1 -1
- package/dist/chunks/{visually-hidden-Bw4WH-b1.es.js → visually-hidden-BluyWhUI.es.js} +2 -2
- package/dist/chunks/{visually-hidden-Bw4WH-b1.es.js.map → visually-hidden-BluyWhUI.es.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 +11 -11
- package/dist/chunks/Collection-CDJ_uFKV.es.js.map +0 -1
- package/dist/chunks/Collection-D_q1hY13.cjs.js +0 -18
- package/dist/chunks/Collection-D_q1hY13.cjs.js.map +0 -1
- package/dist/chunks/DateField-BRw4EOOA.cjs.js +0 -2
- package/dist/chunks/Dialog-ljK75Ezb.cjs.js +0 -2
- package/dist/chunks/FocusScope-B5Aod9bV.es.js +0 -696
- package/dist/chunks/FocusScope-B5Aod9bV.es.js.map +0 -1
- package/dist/chunks/FocusScope-sU1ErK5w.cjs.js +0 -2
- package/dist/chunks/FocusScope-sU1ErK5w.cjs.js.map +0 -1
- package/dist/chunks/Heading-BorDTn_V.cjs.js +0 -2
- package/dist/chunks/Separator-CinA2hg4.cjs.js +0 -2
- package/dist/chunks/combobox-C1nOP0Qh.es.js.map +0 -1
- package/dist/chunks/combobox-D1AqzXjA.cjs.js +0 -2
- package/dist/chunks/combobox-D1AqzXjA.cjs.js.map +0 -1
- package/dist/chunks/data-table-CgICAQC9.cjs.js +0 -2
- package/dist/chunks/domHelpers-InH3T0qs.es.js +0 -16
- package/dist/chunks/domHelpers-InH3T0qs.es.js.map +0 -1
- package/dist/chunks/domHelpers-YAYZ9fE9.cjs.js +0 -2
- package/dist/chunks/domHelpers-YAYZ9fE9.cjs.js.map +0 -1
- package/dist/chunks/focusSafely-CgVjbH-x.cjs.js +0 -2
- package/dist/chunks/number-input-2C9g1Xgr.cjs.js +0 -2
- package/dist/chunks/number-input-2C9g1Xgr.cjs.js.map +0 -1
- package/dist/chunks/number-input-l32lWVbX.es.js.map +0 -1
- package/dist/chunks/radio-input-BlE9GNwl.cjs.js +0 -2
- package/dist/chunks/scrollIntoView-B2eLOBfw.cjs.js +0 -2
- package/dist/chunks/scrollIntoView-B2eLOBfw.cjs.js.map +0 -1
- package/dist/chunks/scrollIntoView-CdmKMaOn.es.js +0 -64
- package/dist/chunks/scrollIntoView-CdmKMaOn.es.js.map +0 -1
- package/dist/chunks/tag-group-5uAuEquc.cjs.js +0 -2
- package/dist/chunks/useDescription-CVIOL3si.es.js +0 -33
- package/dist/chunks/useDescription-CVIOL3si.es.js.map +0 -1
- package/dist/chunks/useDescription-Dwd7oLGP.cjs.js +0 -2
- package/dist/chunks/useDescription-Dwd7oLGP.cjs.js.map +0 -1
- package/dist/chunks/useFocusVisible-CCKx2EYu.cjs.js +0 -2
- package/dist/chunks/useFocusVisible-CCKx2EYu.cjs.js.map +0 -1
- package/dist/chunks/useFocusVisible-DGwGbqVH.es.js +0 -148
- package/dist/chunks/useFocusVisible-DGwGbqVH.es.js.map +0 -1
- package/dist/chunks/useFocusable-BKWax3sD.cjs.js +0 -2
- package/dist/chunks/useFocusable-BKWax3sD.cjs.js.map +0 -1
- package/dist/chunks/useFocusable-ZY85zm7p.es.js +0 -101
- package/dist/chunks/useFocusable-ZY85zm7p.es.js.map +0 -1
- package/dist/chunks/usePress-CEcydhMs.es.js +0 -473
- package/dist/chunks/usePress-CEcydhMs.es.js.map +0 -1
- package/dist/chunks/usePress-_EFFCs1n.cjs.js +0 -8
- package/dist/chunks/usePress-_EFFCs1n.cjs.js.map +0 -1
- package/dist/chunks/useSpinButton-BmgSsr4J.es.js.map +0 -1
- package/dist/chunks/useSpinButton-CjLHguQd.cjs.js +0 -2
- package/dist/chunks/useSpinButton-CjLHguQd.cjs.js.map +0 -1
- package/dist/chunks/useSyncRef-Cey7oI1w.cjs.js +0 -2
- package/dist/chunks/useSyncRef-Cey7oI1w.cjs.js.map +0 -1
- package/dist/chunks/useSyncRef-KqQTqZax.es.js +0 -47
- package/dist/chunks/useSyncRef-KqQTqZax.es.js.map +0 -1
- package/dist/chunks/useTextField-DvU8XT6q.cjs.js +0 -2
- package/dist/chunks/utils-3xKI25I1.cjs.js +0 -2
- package/dist/chunks/utils-3xKI25I1.cjs.js.map +0 -1
- package/dist/chunks/utils-4CfAFtL7.es.js +0 -242
- package/dist/chunks/utils-4CfAFtL7.es.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
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,WAC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AC7B,KAAM,CAAE,WAAA5B,CAAA,EAAe0B,EAAAA,WAAWnD,CAAgB,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"}
|
|
1
|
+
{"version":3,"file":"form-field-6_jyAhgo.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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N,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-C3wKnoBH.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-oIKucbza.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-Ce9zQxmx.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-B1B4BtvO.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-field-DcQW2A1i.es.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":";;;;;;;;;AA6BO,MAAMA,IAAmB,gBAAAC,EAAoC;AAAA,EAClE,SAAS;AAAA,IACP,OAAO;AAAA,IACP,aAAa;AAAA,IACb,OAAO;AAAA,IACP,MAAM;AAAA,IACN,OAAO;AAAA,EAAA;AAAA,EAET,YAAY,MAAM;AAAA,EAAC;AACrB,CAAC,GCpCKC,IAAe;AAAA;AAAA;AAAA;AAAA;AAAA,GAMfC,IAAY;AAAA;AAAA;AAAA;AAAA,GAULC,IAAkB,gBAAAC,EAAiB;AAAA,EAC9C,OAAO,CAAC,QAAQ,SAAS,SAAS,eAAe,SAAS,SAAS;AAAA;AAAA,EAEnE,WAAW;AAAA,EAEX,MAAM;AAAA,IACJ,MAAM;AAAA,MACJ,cAAc;AAAA,MAEd,SAAS;AAAA,MACT,OAAO;AAAA,IAAA;AAAA,IAET,OAAO;AAAA,MACL,UAAU;AAAA,MACV,YAAY;AAAA,MACZ,OAAO;AAAA,MACP,UAAU;AAAA,MACV,YAAY;AAAA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B,GAAGA;AAAA,MACH,MAAMb;AAAA,IAAA,EACN;AAAA,EACJ,GAAG,CAACA,GAAUI,CAAU,CAAC,GAElB;AACT,GCdakC,KAAY;AAAA,EACvB,MAAM5C;AAAA,EACN,OAAOkC;AAAA,EACP,OAAOG;AAAA,EACP,aAAaE;AAAA,EACb,OAAOE;AAAA,EACP,SAASE;AACX;"}
|
|
1
|
+
{"version":3,"file":"form-field-B1B4BtvO.es.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":";;;;;;;;;AA6BO,MAAMA,IAAmB,gBAAAC,EAAoC;AAAA,EAClE,SAAS;AAAA,IACP,OAAO;AAAA,IACP,aAAa;AAAA,IACb,OAAO;AAAA,IACP,MA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Cfa+B,IAAiB,CAAC;AAAA,EAC7B,UAAAnC;AAAA,EACA,GAAGoC;AACL,MAA+B;AAC7B,QAAM,EAAE,YAAAhC,EAAA,IAAe0B,EAAWnD,CAAgB;AAElD,SAAAiC,EAAU,MAAM;AACd,IAAAR,EAAW,CAACS,OAAiB;AAAA,MAC3B,GAAGA;AAAA,MACH,OAAOb;AAAA,MACP,gBAAAoC;AAAA,IAAA,EACA;AAAA,EACJ,GAAG,CAACpC,GAAUI,CAAU,CAAC,GAElB;AACT,GCTaiC,IAAmB,CAAC,EAAE,UAAArC,QAAsC;AACvE,QAAM,EAAE,YAAAI,EAAA,IAAe0B,EAAWnD,CAAgB;AAElD,SAAAiC,EAAU,MAAM;AACd,IAAAR,EAAW,CAACS,OAAiB;AAAA,MAC3B,GAAGA;AAAA,MACH,MAAMb;AAAA,IAAA,EACN;AAAA,EACJ,GAAG,CAACA,GAAUI,CAAU,CAAC,GAElB;AACT,GCdakC,KAAY;AAAA,EACvB,MAAM5C;AAAA,EACN,OAAOkC;AAAA,EACP,OAAOG;AAAA,EACP,aAAaE;AAAA,EACb,OAAOE;AAAA,EACP,SAASE;AACX;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const c=require("react/jsx-runtime"),n=require("@chakra-ui/react"),s=require("./Group-
|
|
2
|
-
//# sourceMappingURL=group-
|
|
1
|
+
"use strict";const c=require("react/jsx-runtime"),n=require("@chakra-ui/react"),s=require("./Group-MdeByg6t.cjs.js"),u=require("./group.recipe-BffrkcjL.cjs.js"),{withContext:i}=n.createRecipeContext({recipe:u.groupRecipe}),p=i(s.$a049562f99e7db0e$export$eb2fcfdbd7ba97d4),d=e=>{const{ref:r,children:t,...o}=e;return c.jsx(p,{ref:r,...o,children:t})};exports.Group=d;
|
|
2
|
+
//# sourceMappingURL=group-Buy-O6Mr.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group-
|
|
1
|
+
{"version":3,"file":"group-Buy-O6Mr.cjs.js","sources":["../../src/components/group/group.slots.tsx","../../src/components/group/group.tsx"],"sourcesContent":["import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createRecipeContext,\n} from \"@chakra-ui/react\";\nimport { Group as RaGroup } from \"react-aria-components\";\nimport { groupRecipe } from \"./group.recipe\";\n\nconst { withContext } = createRecipeContext({\n recipe: groupRecipe,\n});\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 GroupRecipeProps 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 GroupSlotProps\n extends HTMLChakraProps<\"div\", GroupRecipeProps> {}\n\n/**\n * Slot component that provides the styling context for the Group component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const GroupSlot = withContext<typeof RaGroup, GroupSlotProps>(RaGroup);\n","import { GroupSlot } from \"./group.slots\";\nimport type { GroupComponent } from \"./group.types\";\n\nexport const Group: GroupComponent = (props) => {\n const { ref, children, ...rest } = props;\n return (\n <GroupSlot ref={ref} {...rest}>\n {children}\n </GroupSlot>\n );\n};\n"],"names":["withContext","createRecipeContext","groupRecipe","GroupSlot","RaGroup","Group","props","ref","children","rest","jsx"],"mappings":"iKASM,CAAE,YAAAA,CAAA,EAAgBC,sBAAoB,CAC1C,OAAQC,EAAAA,WACV,CAAC,EAqBYC,EAAYH,EAA4CI,2CAAO,EC7B/DC,EAAyBC,GAAU,CAC9C,KAAM,CAAE,IAAAC,EAAK,SAAAC,EAAU,GAAGC,GAASH,EACnC,OACEI,EAAAA,IAACP,EAAA,CAAU,IAAAI,EAAW,GAAGE,EACtB,SAAAD,EACH,CAEJ"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as p } from "react/jsx-runtime";
|
|
2
2
|
import { createRecipeContext as c } from "@chakra-ui/react";
|
|
3
|
-
import { $ as i } from "./Group-
|
|
3
|
+
import { $ as i } from "./Group-Cfixd-fh.es.js";
|
|
4
4
|
import { g as s } from "./group.recipe-BQafmscW.es.js";
|
|
5
5
|
const { withContext: f } = /* @__PURE__ */ c({
|
|
6
6
|
recipe: s
|
|
@@ -11,4 +11,4 @@ const { withContext: f } = /* @__PURE__ */ c({
|
|
|
11
11
|
export {
|
|
12
12
|
b as G
|
|
13
13
|
};
|
|
14
|
-
//# sourceMappingURL=group-
|
|
14
|
+
//# sourceMappingURL=group-CqfSQXe7.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group-
|
|
1
|
+
{"version":3,"file":"group-CqfSQXe7.es.js","sources":["../../src/components/group/group.slots.tsx","../../src/components/group/group.tsx"],"sourcesContent":["import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createRecipeContext,\n} from \"@chakra-ui/react\";\nimport { Group as RaGroup } from \"react-aria-components\";\nimport { groupRecipe } from \"./group.recipe\";\n\nconst { withContext } = createRecipeContext({\n recipe: groupRecipe,\n});\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 GroupRecipeProps 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 GroupSlotProps\n extends HTMLChakraProps<\"div\", GroupRecipeProps> {}\n\n/**\n * Slot component that provides the styling context for the Group component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const GroupSlot = withContext<typeof RaGroup, GroupSlotProps>(RaGroup);\n","import { GroupSlot } from \"./group.slots\";\nimport type { GroupComponent } from \"./group.types\";\n\nexport const Group: GroupComponent = (props) => {\n const { ref, children, ...rest } = props;\n return (\n <GroupSlot ref={ref} {...rest}>\n {children}\n </GroupSlot>\n );\n};\n"],"names":["withContext","createRecipeContext","groupRecipe","GroupSlot","RaGroup","Group","props","ref","children","rest","jsx"],"mappings":";;;;AASA,MAAM,EAAE,aAAAA,EAAA,IAAgB,gBAAAC,EAAoB;AAAA,EAC1C,QAAQC;AACV,CAAC,GAqBYC,IAAY,gBAAAH,EAA4CI,CAAO,GC7B/DC,IAAwB,CAACC,MAAU;AAC9C,QAAM,EAAE,KAAAC,GAAK,UAAAC,GAAU,GAAGC,MAASH;AACnC,SACE,gBAAAI,EAACP,GAAA,EAAU,KAAAI,GAAW,GAAGE,GACtB,UAAAD,GACH;AAEJ;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const u=require("react/jsx-runtime"),f=require("react"),i=require("@chakra-ui/react"),a=require("./button-
|
|
2
|
-
//# sourceMappingURL=icon-button-
|
|
1
|
+
"use strict";const u=require("react/jsx-runtime"),f=require("react"),i=require("@chakra-ui/react"),a=require("./button-CtWoT2k5.cjs.js"),R=require("./useObjectRef-dXOJdONs.cjs.js"),e=t=>{const{children:r,ref:n,...o}=t,s=f.useRef(null),c=R.$df56164dff5785e2$export$4338b53315abf666(i.mergeRefs(s,n));return u.jsx(a.Button,{px:0,py:0,...o,ref:c,children:r})};e.displayName="IconButton";exports.IconButton=e;
|
|
2
|
+
//# sourceMappingURL=icon-button-Dqhm4rBI.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-button-
|
|
1
|
+
{"version":3,"file":"icon-button-Dqhm4rBI.cjs.js","sources":["../../src/components/icon-button/icon-button.tsx"],"sourcesContent":["import { useRef } from \"react\";\nimport { useObjectRef } from \"react-aria\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport type { IconButtonProps } from \"./icon-button.types\";\nimport { Button } from \"@/components\";\n\n/**\n * # IconButton\n *\n * displays a button with an icon only as child\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/iconbutton}\n */\nexport const IconButton = (props: IconButtonProps) => {\n const { children, ref: forwardedRef, ...restProps } = props;\n\n // Create a local ref and merge with forwarded ref\n const localRef = useRef<HTMLButtonElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n return (\n <Button px={0} py={0} {...restProps} ref={ref}>\n {children}\n </Button>\n );\n};\n\nIconButton.displayName = \"IconButton\";\n"],"names":["IconButton","props","children","forwardedRef","restProps","localRef","useRef","ref","useObjectRef","mergeRefs","jsx","Button"],"mappings":"qLAaaA,EAAcC,GAA2B,CACpD,KAAM,CAAE,SAAAC,EAAU,IAAKC,EAAc,GAAGC,GAAcH,EAGhDI,EAAWC,EAAAA,OAA0B,IAAI,EACzCC,EAAMC,EAAAA,0CAAaC,EAAAA,UAAUJ,EAAUF,CAAY,CAAC,EAE1D,OACEO,MAACC,EAAAA,QAAO,GAAI,EAAG,GAAI,EAAI,GAAGP,EAAW,IAAAG,EAClC,SAAAL,CAAA,CACH,CAEJ,EAEAF,EAAW,YAAc"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as n } from "react";
|
|
3
3
|
import { mergeRefs as p } from "@chakra-ui/react";
|
|
4
|
-
import { B as a } from "./button-
|
|
4
|
+
import { B as a } from "./button-_TqIjVy-.es.js";
|
|
5
5
|
import { $ as c } from "./useObjectRef-CaJ5pgjX.es.js";
|
|
6
6
|
const i = (o) => {
|
|
7
7
|
const { children: r, ref: t, ...e } = o, f = n(null), s = c(p(f, t));
|
|
@@ -11,4 +11,4 @@ i.displayName = "IconButton";
|
|
|
11
11
|
export {
|
|
12
12
|
i as I
|
|
13
13
|
};
|
|
14
|
-
//# sourceMappingURL=icon-button-
|
|
14
|
+
//# sourceMappingURL=icon-button-oIKucbza.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-button-
|
|
1
|
+
{"version":3,"file":"icon-button-oIKucbza.es.js","sources":["../../src/components/icon-button/icon-button.tsx"],"sourcesContent":["import { useRef } from \"react\";\nimport { useObjectRef } from \"react-aria\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport type { IconButtonProps } from \"./icon-button.types\";\nimport { Button } from \"@/components\";\n\n/**\n * # IconButton\n *\n * displays a button with an icon only as child\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/iconbutton}\n */\nexport const IconButton = (props: IconButtonProps) => {\n const { children, ref: forwardedRef, ...restProps } = props;\n\n // Create a local ref and merge with forwarded ref\n const localRef = useRef<HTMLButtonElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n return (\n <Button px={0} py={0} {...restProps} ref={ref}>\n {children}\n </Button>\n );\n};\n\nIconButton.displayName = \"IconButton\";\n"],"names":["IconButton","props","children","forwardedRef","restProps","localRef","useRef","ref","useObjectRef","mergeRefs","jsx","Button"],"mappings":";;;;;AAaO,MAAMA,IAAa,CAACC,MAA2B;AACpD,QAAM,EAAE,UAAAC,GAAU,KAAKC,GAAc,GAAGC,MAAcH,GAGhDI,IAAWC,EAA0B,IAAI,GACzCC,IAAMC,EAAaC,EAAUJ,GAAUF,CAAY,CAAC;AAE1D,SACE,gBAAAO,EAACC,KAAO,IAAI,GAAG,IAAI,GAAI,GAAGP,GAAW,KAAAG,GAClC,UAAAL,EAAA,CACH;AAEJ;AAEAF,EAAW,cAAc;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { T as l } from "./toggle-button-
|
|
2
|
+
import { T as l } from "./toggle-button-163ZMcpk.es.js";
|
|
3
3
|
const n = ({
|
|
4
4
|
"aria-label": o,
|
|
5
5
|
children: t,
|
|
@@ -10,4 +10,4 @@ n.displayName = "IconToggleButton";
|
|
|
10
10
|
export {
|
|
11
11
|
n as I
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=icon-toggle-button-
|
|
13
|
+
//# sourceMappingURL=icon-toggle-button-BYKHQRsq.es.js.map
|
package/dist/chunks/{icon-toggle-button-CEGHh-JB.es.js.map → icon-toggle-button-BYKHQRsq.es.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-toggle-button-
|
|
1
|
+
{"version":3,"file":"icon-toggle-button-BYKHQRsq.es.js","sources":["../../src/components/icon-toggle-button/icon-toggle-button.tsx"],"sourcesContent":["import { ToggleButton } from \"@/components/toggle-button\";\nimport type { IconToggleButtonProps } from \"./icon-toggle-button.types\";\n\n/**\n * # IconToggleButton\n * ============================================================\n * A toggle button with only an icon as child. It is based\n * on the regular `ToggleButton` component, but with a few adjustments.\n *\n */\nexport const IconToggleButton = ({\n \"aria-label\": ariaLabel,\n children,\n ref,\n ...props\n}: IconToggleButtonProps) => {\n return (\n <ToggleButton ref={ref} aria-label={ariaLabel} px={0} py={0} {...props}>\n {children}\n </ToggleButton>\n );\n};\n\nIconToggleButton.displayName = \"IconToggleButton\";\n"],"names":["IconToggleButton","ariaLabel","children","ref","props","jsx","ToggleButton"],"mappings":";;AAUO,MAAMA,IAAmB,CAAC;AAAA,EAC/B,cAAcC;AAAA,EACd,UAAAC;AAAA,EACA,KAAAC;AAAA,EACA,GAAGC;AACL,MAEI,gBAAAC,EAACC,GAAA,EAAa,KAAAH,GAAU,cAAYF,GAAW,IAAI,GAAG,IAAI,GAAI,GAAGG,GAC9D,UAAAF,EAAA,CACH;AAIJF,EAAiB,cAAc;"}
|
package/dist/chunks/{icon-toggle-button-BljNXaJy.cjs.js → icon-toggle-button-DIfDVDd4.cjs.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const l=require("react/jsx-runtime"),u=require("./toggle-button-
|
|
2
|
-
//# sourceMappingURL=icon-toggle-button-
|
|
1
|
+
"use strict";const l=require("react/jsx-runtime"),u=require("./toggle-button-BTYd563-.cjs.js"),t=({"aria-label":o,children:e,ref:n,...g})=>l.jsx(u.ToggleButton,{ref:n,"aria-label":o,px:0,py:0,...g,children:e});t.displayName="IconToggleButton";exports.IconToggleButton=t;
|
|
2
|
+
//# sourceMappingURL=icon-toggle-button-DIfDVDd4.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-toggle-button-
|
|
1
|
+
{"version":3,"file":"icon-toggle-button-DIfDVDd4.cjs.js","sources":["../../src/components/icon-toggle-button/icon-toggle-button.tsx"],"sourcesContent":["import { ToggleButton } from \"@/components/toggle-button\";\nimport type { IconToggleButtonProps } from \"./icon-toggle-button.types\";\n\n/**\n * # IconToggleButton\n * ============================================================\n * A toggle button with only an icon as child. It is based\n * on the regular `ToggleButton` component, but with a few adjustments.\n *\n */\nexport const IconToggleButton = ({\n \"aria-label\": ariaLabel,\n children,\n ref,\n ...props\n}: IconToggleButtonProps) => {\n return (\n <ToggleButton ref={ref} aria-label={ariaLabel} px={0} py={0} {...props}>\n {children}\n </ToggleButton>\n );\n};\n\nIconToggleButton.displayName = \"IconToggleButton\";\n"],"names":["IconToggleButton","ariaLabel","children","ref","props","jsx","ToggleButton"],"mappings":"+FAUaA,EAAmB,CAAC,CAC/B,aAAcC,EACd,SAAAC,EACA,IAAAC,EACA,GAAGC,CACL,IAEIC,EAAAA,IAACC,EAAAA,aAAA,CAAa,IAAAH,EAAU,aAAYF,EAAW,GAAI,EAAG,GAAI,EAAI,GAAGG,EAC9D,SAAAF,CAAA,CACH,EAIJF,EAAiB,YAAc"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { $ as a } from "./utils-
|
|
2
|
+
import { $ as a } from "./utils-BkdW_cdL.es.js";
|
|
3
3
|
import { $ as p } from "./Keyboard-Clnp4zAC.es.js";
|
|
4
4
|
import { mergeRefs as c } from "@chakra-ui/react";
|
|
5
5
|
import { useRef as i } from "react";
|
|
@@ -13,4 +13,4 @@ const { withContext: b } = /* @__PURE__ */ d({ recipe: $ }), x = /* @__PURE__ */
|
|
|
13
13
|
export {
|
|
14
14
|
j as K
|
|
15
15
|
};
|
|
16
|
-
//# sourceMappingURL=kbd-
|
|
16
|
+
//# sourceMappingURL=kbd-CDEXQyg2.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kbd-
|
|
1
|
+
{"version":3,"file":"kbd-CDEXQyg2.es.js","sources":["../../src/components/kbd/kbd.slots.ts","../../src/components/kbd/kbd.tsx"],"sourcesContent":["import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createRecipeContext,\n} from \"@chakra-ui/react/styled-system\";\n\nimport { kbdRecipe } from \"./kbd.recipe\";\n\n/**\n * Base recipe props interface that combines Chakra UI's recipe props\n * with the unstyled prop option for the svg element.\n */\ninterface KbdRecipeProps extends RecipeProps<\"kbd\">, 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 KbdRootSlotProps\n extends HTMLChakraProps<\"kbd\", KbdRecipeProps> {}\n\nconst { withContext } = createRecipeContext({ recipe: kbdRecipe });\n\n/**\n * Root component that provides the styling context for the Icon component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const KbdRootSlot = withContext<HTMLElement, KbdRootSlotProps>(\"kbd\");\n","import { KeyboardContext, useContextProps } from \"react-aria-components\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { type KbdProps as ChakraKbdProps } from \"@chakra-ui/react/kbd\";\nimport { useRef } from \"react\";\nimport type React from \"react\";\nimport { useObjectRef } from \"react-aria\";\nimport { KbdRootSlot } from \"./kbd.slots\";\n\nexport interface KbdProps extends Omit<ChakraKbdProps, \"slot\"> {\n ref?: React.Ref<HTMLElement>;\n slot?: string | null | undefined;\n}\n\n/**\n * # Kbd\n *\n * Renders a keyboard shortcut or key combination, styled for visual clarity.\n * Typically used to visually represent keyboard keys.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/typography/kbd}\n */\nexport const Kbd = ({ ref: forwardedRef, slot, ...props }: KbdProps) => {\n const localRef = useRef<HTMLElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n const [rest] = useContextProps(props, ref, KeyboardContext);\n\n return <KbdRootSlot ref={ref} slot={slot || undefined} {...rest} />;\n};\n"],"names":["withContext","createRecipeContext","kbdRecipe","KbdRootSlot","Kbd","forwardedRef","slot","props","localRef","useRef","ref","useObjectRef","mergeRefs","rest","useContextProps","KeyboardContext"],"mappings":";;;;;;;;AAwBA,MAAM,EAAE,aAAAA,EAAA,IAAgB,gBAAAC,EAAoB,EAAE,QAAQC,GAAW,GAMpDC,IAAc,gBAAAH,EAA2C,KAAK,GCT9DI,IAAM,CAAC,EAAE,KAAKC,GAAc,MAAAC,GAAM,GAAGC,QAAsB;AACtE,QAAMC,IAAWC,EAAoB,IAAI,GACnCC,IAAMC,EAAaC,EAAUJ,GAAUH,CAAY,CAAC,GACpD,CAACQ,CAAI,IAAIC,EAAgBP,GAAOG,GAAKK,CAAe;AAE1D,2BAAQZ,GAAA,EAAY,KAAAO,GAAU,MAAMJ,KAAQ,QAAY,GAAGO,GAAM;AACnE;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),i=require("./utils-
|
|
2
|
-
//# sourceMappingURL=kbd-
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),i=require("./utils-BHdR5Nww.cjs.js"),u=require("./Keyboard-rYf2KxZN.cjs.js"),d=require("@chakra-ui/react"),f=require("react"),a=require("./kbd.recipe-9kxAU5ro.cjs.js"),b=require("./create-recipe-context-D0_lCuqq.cjs.js"),R=require("./useObjectRef-dXOJdONs.cjs.js"),{withContext:$}=b.createRecipeContext({recipe:a.kbdRecipe}),p=$("kbd"),q=({ref:t,slot:r,...c})=>{const o=f.useRef(null),e=R.$df56164dff5785e2$export$4338b53315abf666(d.mergeRefs(o,t)),[s]=i.$64fa3d84918910a7$export$29f1550f4b0d4415(c,e,u.$63df2425e2108aa8$export$744d98a3b8a94e1c);return n.jsx(p,{ref:e,slot:r||void 0,...s})};exports.Kbd=q;
|
|
2
|
+
//# sourceMappingURL=kbd-DP3lZ80W.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kbd-
|
|
1
|
+
{"version":3,"file":"kbd-DP3lZ80W.cjs.js","sources":["../../src/components/kbd/kbd.slots.ts","../../src/components/kbd/kbd.tsx"],"sourcesContent":["import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createRecipeContext,\n} from \"@chakra-ui/react/styled-system\";\n\nimport { kbdRecipe } from \"./kbd.recipe\";\n\n/**\n * Base recipe props interface that combines Chakra UI's recipe props\n * with the unstyled prop option for the svg element.\n */\ninterface KbdRecipeProps extends RecipeProps<\"kbd\">, 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 KbdRootSlotProps\n extends HTMLChakraProps<\"kbd\", KbdRecipeProps> {}\n\nconst { withContext } = createRecipeContext({ recipe: kbdRecipe });\n\n/**\n * Root component that provides the styling context for the Icon component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const KbdRootSlot = withContext<HTMLElement, KbdRootSlotProps>(\"kbd\");\n","import { KeyboardContext, useContextProps } from \"react-aria-components\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { type KbdProps as ChakraKbdProps } from \"@chakra-ui/react/kbd\";\nimport { useRef } from \"react\";\nimport type React from \"react\";\nimport { useObjectRef } from \"react-aria\";\nimport { KbdRootSlot } from \"./kbd.slots\";\n\nexport interface KbdProps extends Omit<ChakraKbdProps, \"slot\"> {\n ref?: React.Ref<HTMLElement>;\n slot?: string | null | undefined;\n}\n\n/**\n * # Kbd\n *\n * Renders a keyboard shortcut or key combination, styled for visual clarity.\n * Typically used to visually represent keyboard keys.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/typography/kbd}\n */\nexport const Kbd = ({ ref: forwardedRef, slot, ...props }: KbdProps) => {\n const localRef = useRef<HTMLElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n const [rest] = useContextProps(props, ref, KeyboardContext);\n\n return <KbdRootSlot ref={ref} slot={slot || undefined} {...rest} />;\n};\n"],"names":["withContext","createRecipeContext","kbdRecipe","KbdRootSlot","Kbd","forwardedRef","slot","props","localRef","useRef","ref","useObjectRef","mergeRefs","rest","useContextProps","KeyboardContext"],"mappings":"2TAwBM,CAAE,YAAAA,CAAA,EAAgBC,EAAAA,oBAAoB,CAAE,OAAQC,EAAAA,UAAW,EAMpDC,EAAcH,EAA2C,KAAK,ECT9DI,EAAM,CAAC,CAAE,IAAKC,EAAc,KAAAC,EAAM,GAAGC,KAAsB,CACtE,MAAMC,EAAWC,EAAAA,OAAoB,IAAI,EACnCC,EAAMC,EAAAA,0CAAaC,EAAAA,UAAUJ,EAAUH,CAAY,CAAC,EACpD,CAACQ,CAAI,EAAIC,EAAAA,0CAAgBP,EAAOG,EAAKK,EAAAA,yCAAe,EAE1D,aAAQZ,EAAA,CAAY,IAAAO,EAAU,KAAMJ,GAAQ,OAAY,GAAGO,EAAM,CACnE"}
|
|
@@ -4,11 +4,11 @@ import { l as h } from "./link.recipe-BRnFQ5bP.es.js";
|
|
|
4
4
|
import { c as L } from "./create-recipe-context-i2odau3L.es.js";
|
|
5
5
|
import { mergeRefs as y } from "@chakra-ui/react";
|
|
6
6
|
import { $ as v } from "./useObjectRef-CaJ5pgjX.es.js";
|
|
7
|
-
import { $ as p } from "./mergeProps-
|
|
7
|
+
import { $ as p } from "./mergeProps-B_9syxhT.es.js";
|
|
8
8
|
import { $ as D } from "./filterDOMProps-BSVCO5jK.es.js";
|
|
9
|
-
import { $ as E, a as S, b as T } from "./openLink-
|
|
10
|
-
import { $ as w } from "./usePress-
|
|
11
|
-
import { $ as _ } from "./useFocusable-
|
|
9
|
+
import { $ as E, a as S, b as T } from "./openLink-Ctl0AdAy.es.js";
|
|
10
|
+
import { $ as w } from "./usePress-DHhWHfMz.es.js";
|
|
11
|
+
import { $ as _ } from "./useFocusable-CrsD8ZcF.es.js";
|
|
12
12
|
function g(e, o) {
|
|
13
13
|
let { elementType: s = "a", onPress: n, onPressStart: i, onPressEnd: t, onClick: c, isDisabled: r, ...d } = e, a = {};
|
|
14
14
|
s !== "a" && (a = {
|
|
@@ -47,4 +47,4 @@ I.displayName = "Link";
|
|
|
47
47
|
export {
|
|
48
48
|
I as L
|
|
49
49
|
};
|
|
50
|
-
//# sourceMappingURL=link-
|
|
50
|
+
//# sourceMappingURL=link-BoUhLeO-.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link-
|
|
1
|
+
{"version":3,"file":"link-BoUhLeO-.es.js","sources":["../../../../node_modules/.pnpm/@react-aria+link@3.8.4_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/link/dist/useLink.mjs","../../src/components/link/link.slots.tsx","../../src/components/link/link.tsx"],"sourcesContent":["import {filterDOMProps as $5Ot33$filterDOMProps, mergeProps as $5Ot33$mergeProps, useRouter as $5Ot33$useRouter, useLinkProps as $5Ot33$useLinkProps, handleLinkClick as $5Ot33$handleLinkClick} from \"@react-aria/utils\";\nimport {useFocusable as $5Ot33$useFocusable, usePress as $5Ot33$usePress} from \"@react-aria/interactions\";\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 $298d61e98472621b$export$dcf14c9974fe2767(props, ref) {\n let { elementType: elementType = 'a', onPress: onPress, onPressStart: onPressStart, onPressEnd: onPressEnd, onClick: onClick, isDisabled: isDisabled, ...otherProps } = props;\n let linkProps = {};\n if (elementType !== 'a') linkProps = {\n role: 'link',\n tabIndex: !isDisabled ? 0 : undefined\n };\n let { focusableProps: focusableProps } = (0, $5Ot33$useFocusable)(props, ref);\n let { pressProps: pressProps, isPressed: isPressed } = (0, $5Ot33$usePress)({\n onPress: onPress,\n onPressStart: onPressStart,\n onPressEnd: onPressEnd,\n onClick: onClick,\n isDisabled: isDisabled,\n ref: ref\n });\n let domProps = (0, $5Ot33$filterDOMProps)(otherProps, {\n labelable: true\n });\n let interactionHandlers = (0, $5Ot33$mergeProps)(focusableProps, pressProps);\n let router = (0, $5Ot33$useRouter)();\n let routerLinkProps = (0, $5Ot33$useLinkProps)(props);\n return {\n isPressed: isPressed,\n linkProps: (0, $5Ot33$mergeProps)(domProps, routerLinkProps, {\n ...interactionHandlers,\n ...linkProps,\n 'aria-disabled': isDisabled || undefined,\n 'aria-current': props['aria-current'],\n onClick: (e)=>{\n var _pressProps_onClick;\n (_pressProps_onClick = pressProps.onClick) === null || _pressProps_onClick === void 0 ? void 0 : _pressProps_onClick.call(pressProps, e);\n (0, $5Ot33$handleLinkClick)(e, router, props.href, props.routerOptions);\n }\n })\n };\n}\n\n\nexport {$298d61e98472621b$export$dcf14c9974fe2767 as useLink};\n//# sourceMappingURL=useLink.module.js.map\n","import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createRecipeContext,\n} from \"@chakra-ui/react/styled-system\";\n\nimport { linkRecipe } from \"./link.recipe\";\n\n/**\n * Base recipe props interface that combines Chakra UI's recipe props\n * with the unstyled prop option for the a element.\n */\ninterface LinkRecipeProps extends RecipeProps<\"a\">, 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 */\nexport type LinkRootProps = HTMLChakraProps<\"a\", LinkRecipeProps>;\n\nconst { withContext } = createRecipeContext({ recipe: linkRecipe });\n\n/**\n * Root component that provides the styling context for the Link component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const LinkRoot = withContext<HTMLAnchorElement, LinkRootProps>(\"a\");\n","import { useRef } from \"react\";\nimport { LinkRoot } from \"./link.slots\";\nimport type { LinkProps } from \"./link.types\";\nimport { useLink, useObjectRef, mergeProps } from \"react-aria\";\nimport { mergeRefs } from \"@chakra-ui/react\";\n\n/**\n * # Link\n *\n * To allow a user to navigate to a different page or resource\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/navigation/link}\n */\nexport const Link = (props: LinkProps) => {\n const { as, asChild, children, ref: forwardedRef, ...rest } = props;\n\n const localRef = useRef<HTMLAnchorElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n const elementType = (as as string) || (asChild ? \"span\" : \"a\") || \"a\";\n const { linkProps } = useLink({ ...rest, elementType }, ref);\n\n return (\n <LinkRoot {...mergeProps(rest, linkProps, { as, asChild, ref })}>\n {children}\n </LinkRoot>\n );\n};\n\nLink.displayName = \"Link\";\n"],"names":["$298d61e98472621b$export$dcf14c9974fe2767","props","ref","elementType","onPress","onPressStart","onPressEnd","onClick","isDisabled","otherProps","linkProps","focusableProps","$5Ot33$useFocusable","pressProps","isPressed","$5Ot33$usePress","domProps","$5Ot33$filterDOMProps","interactionHandlers","$5Ot33$mergeProps","router","$5Ot33$useRouter","routerLinkProps","$5Ot33$useLinkProps","e","_pressProps_onClick","$5Ot33$handleLinkClick","withContext","createRecipeContext","linkRecipe","LinkRoot","Link","as","asChild","children","forwardedRef","rest","localRef","useRef","useObjectRef","mergeRefs","useLink","jsx","mergeProps"],"mappings":";;;;;;;;;;;AAeA,SAASA,EAA0CC,GAAOC,GAAK;AAC3D,MAAI,EAAE,aA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GC,MAASnC,GAExDoC,IAAWC,EAA0B,IAAI,GACzCpC,IAAMqC,EAAaC,EAAUH,GAAUF,CAAY,CAAC,GAEpDhC,IAAe6B,MAAkBC,IAAU,SAAS,MACpD,EAAE,WAAAvB,MAAc+B,EAAQ,EAAE,GAAGL,GAAM,aAAAjC,EAAA,GAAeD,CAAG;AAE3D,SACE,gBAAAwC,EAACZ,GAAA,EAAU,GAAGa,EAAWP,GAAM1B,GAAW,EAAE,IAAAsB,GAAI,SAAAC,GAAS,KAAA/B,GAAK,GAC3D,UAAAgC,EAAA,CACH;AAEJ;AAEAH,EAAK,cAAc;","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const m=require("react/jsx-runtime"),L=require("react"),h=require("./link.recipe-BfCxtKjL.cjs.js"),y=require("./create-recipe-context-D0_lCuqq.cjs.js"),D=require("@chakra-ui/react"),j=require("./useObjectRef-dXOJdONs.cjs.js"),u=require("./mergeProps-
|
|
2
|
-
//# sourceMappingURL=link-
|
|
1
|
+
"use strict";const m=require("react/jsx-runtime"),L=require("react"),h=require("./link.recipe-BfCxtKjL.cjs.js"),y=require("./create-recipe-context-D0_lCuqq.cjs.js"),D=require("@chakra-ui/react"),j=require("./useObjectRef-dXOJdONs.cjs.js"),u=require("./mergeProps-BA5Cwf5w.cjs.js"),v=require("./filterDOMProps-WUskt27c.cjs.js"),b=require("./openLink-DkCJYbzq.cjs.js"),E=require("./usePress-C8-hLXJw.cjs.js"),O=require("./useFocusable-DCgmQxS1.cjs.js");function S(e,s){let{elementType:t="a",onPress:c,onPressStart:i,onPressEnd:n,onClick:a,isDisabled:r,...d}=e,o={};t!=="a"&&(o={role:"link",tabIndex:r?void 0:0});let{focusableProps:P}=O.$f645667febf57a63$export$4c014de7c8940b4c(e,s),{pressProps:l,isPressed:k}=E.$f6c31cce2adf654f$export$45712eceda6fad21({onPress:c,onPressStart:i,onPressEnd:n,onClick:a,isDisabled:r,ref:s}),x=v.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(d,{labelable:!0}),q=u.$3ef42575df84b30b$export$9d1611c77c2fe928(P,l),R=b.$ea8dcbcb9ea1b556$export$9a302a45f65d0572(),C=b.$ea8dcbcb9ea1b556$export$7e924b3091a3bd18(e);return{isPressed:k,linkProps:u.$3ef42575df84b30b$export$9d1611c77c2fe928(x,C,{...q,...o,"aria-disabled":r||void 0,"aria-current":e["aria-current"],onClick:$=>{var f;(f=l.onClick)===null||f===void 0||f.call(l,$),b.$ea8dcbcb9ea1b556$export$13aea1a3cb5e3f1f($,R,e.href,e.routerOptions)}})}}const{withContext:T}=y.createRecipeContext({recipe:h.linkRecipe}),_=T("a"),p=e=>{const{as:s,asChild:t,children:c,ref:i,...n}=e,a=L.useRef(null),r=j.$df56164dff5785e2$export$4338b53315abf666(D.mergeRefs(a,i)),d=s||(t?"span":"a"),{linkProps:o}=S({...n,elementType:d},r);return m.jsx(_,{...u.$3ef42575df84b30b$export$9d1611c77c2fe928(n,o,{as:s,asChild:t,ref:r}),children:c})};p.displayName="Link";exports.Link=p;
|
|
2
|
+
//# sourceMappingURL=link-DTUiEXYJ.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link-
|
|
1
|
+
{"version":3,"file":"link-DTUiEXYJ.cjs.js","sources":["../../../../node_modules/.pnpm/@react-aria+link@3.8.4_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/link/dist/useLink.mjs","../../src/components/link/link.slots.tsx","../../src/components/link/link.tsx"],"sourcesContent":["import {filterDOMProps as $5Ot33$filterDOMProps, mergeProps as $5Ot33$mergeProps, useRouter as $5Ot33$useRouter, useLinkProps as $5Ot33$useLinkProps, handleLinkClick as $5Ot33$handleLinkClick} from \"@react-aria/utils\";\nimport {useFocusable as $5Ot33$useFocusable, usePress as $5Ot33$usePress} from \"@react-aria/interactions\";\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 $298d61e98472621b$export$dcf14c9974fe2767(props, ref) {\n let { elementType: elementType = 'a', onPress: onPress, onPressStart: onPressStart, onPressEnd: onPressEnd, onClick: onClick, isDisabled: isDisabled, ...otherProps } = props;\n let linkProps = {};\n if (elementType !== 'a') linkProps = {\n role: 'link',\n tabIndex: !isDisabled ? 0 : undefined\n };\n let { focusableProps: focusableProps } = (0, $5Ot33$useFocusable)(props, ref);\n let { pressProps: pressProps, isPressed: isPressed } = (0, $5Ot33$usePress)({\n onPress: onPress,\n onPressStart: onPressStart,\n onPressEnd: onPressEnd,\n onClick: onClick,\n isDisabled: isDisabled,\n ref: ref\n });\n let domProps = (0, $5Ot33$filterDOMProps)(otherProps, {\n labelable: true\n });\n let interactionHandlers = (0, $5Ot33$mergeProps)(focusableProps, pressProps);\n let router = (0, $5Ot33$useRouter)();\n let routerLinkProps = (0, $5Ot33$useLinkProps)(props);\n return {\n isPressed: isPressed,\n linkProps: (0, $5Ot33$mergeProps)(domProps, routerLinkProps, {\n ...interactionHandlers,\n ...linkProps,\n 'aria-disabled': isDisabled || undefined,\n 'aria-current': props['aria-current'],\n onClick: (e)=>{\n var _pressProps_onClick;\n (_pressProps_onClick = pressProps.onClick) === null || _pressProps_onClick === void 0 ? void 0 : _pressProps_onClick.call(pressProps, e);\n (0, $5Ot33$handleLinkClick)(e, router, props.href, props.routerOptions);\n }\n })\n };\n}\n\n\nexport {$298d61e98472621b$export$dcf14c9974fe2767 as useLink};\n//# sourceMappingURL=useLink.module.js.map\n","import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createRecipeContext,\n} from \"@chakra-ui/react/styled-system\";\n\nimport { linkRecipe } from \"./link.recipe\";\n\n/**\n * Base recipe props interface that combines Chakra UI's recipe props\n * with the unstyled prop option for the a element.\n */\ninterface LinkRecipeProps extends RecipeProps<\"a\">, 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 */\nexport type LinkRootProps = HTMLChakraProps<\"a\", LinkRecipeProps>;\n\nconst { withContext } = createRecipeContext({ recipe: linkRecipe });\n\n/**\n * Root component that provides the styling context for the Link component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const LinkRoot = withContext<HTMLAnchorElement, LinkRootProps>(\"a\");\n","import { useRef } from \"react\";\nimport { LinkRoot } from \"./link.slots\";\nimport type { LinkProps } from \"./link.types\";\nimport { useLink, useObjectRef, mergeProps } from \"react-aria\";\nimport { mergeRefs } from \"@chakra-ui/react\";\n\n/**\n * # Link\n *\n * To allow a user to navigate to a different page or resource\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/navigation/link}\n */\nexport const Link = (props: LinkProps) => {\n const { as, asChild, children, ref: forwardedRef, ...rest } = props;\n\n const localRef = useRef<HTMLAnchorElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n const elementType = (as as string) || (asChild ? \"span\" : \"a\") || \"a\";\n const { linkProps } = useLink({ ...rest, elementType }, ref);\n\n return (\n <LinkRoot {...mergeProps(rest, linkProps, { as, asChild, ref })}>\n {children}\n </LinkRoot>\n );\n};\n\nLink.displayName = \"Link\";\n"],"names":["$298d61e98472621b$export$dcf14c9974fe2767","props","ref","elementType","onPress","onPressStart","onPressEnd","onClick","isDisabled","otherProps","linkProps","focusableProps","$5Ot33$useFocusable","pressProps","isPressed","$5Ot33$usePress","domProps","$5Ot33$filterDOMProps","interactionHandlers","$5Ot33$mergeProps","router","$5Ot33$useRouter","routerLinkProps","$5Ot33$useLinkProps","e","_pressProps_onClick","$5Ot33$handleLinkClick","withContext","createRecipeContext","linkRecipe","LinkRoot","Link","as","asChild","children","forwardedRef","rest","localRef","useRef","useObjectRef","mergeRefs","useLink","jsx","mergeProps"],"mappings":"mcAeA,SAASA,EAA0CC,EAAOC,EAAK,CAC3D,GAAI,CAAE,YAAaC,EAAc,IAAK,QAASC,EAAS,aAAcC,EAAc,WAAYC,EAAY,QAASC,EAAS,WAAYC,EAAY,GAAGC,CAAU,EAAKR,EACpKS,EAAY,CAAA,EACZP,IAAgB,MAAKO,EAAY,CACjC,KAAM,OACN,SAAWF,EAAiB,OAAJ,CAChC,GACI,GAAI,CAAE,eAAgBG,CAAc,EAASC,EAAAA,0CAAqBX,EAAOC,CAAG,EACxE,CAAE,WAAYW,EAAY,UAAWC,CAAS,EAASC,4CAAiB,CACxE,QAASX,EACT,aAAcC,EACd,WAAYC,EACZ,QAASC,EACT,WAAYC,EACZ,IAAKN,CACb,CAAK,EACGc,EAAeC,EAAAA,0CAAuBR,EAAY,CAClD,UAAW,EACnB,CAAK,EACGS,EAA0BC,4CAAmBR,EAAgBE,CAAU,EACvEO,EAAaC,4CAAgB,EAC7BC,EAAsBC,EAAAA,0CAAqBtB,CAAK,EACpD,MAAO,CACH,UAAWa,EACX,UAAeK,EAAAA,0CAAmBH,EAAUM,EAAiB,CACzD,GAAGJ,EACH,GAAGR,EACH,gBAAiBF,GAAc,OAC/B,eAAgBP,EAAM,cAAc,EACpC,QAAUuB,GAAI,CACV,IAAIC,GACHA,EAAsBZ,EAAW,WAAa,MAAQY,IAAwB,QAAkBA,EAAoB,KAAKZ,EAAYW,CAAC,EACnIE,EAAAA,0CAAwBF,EAAGJ,EAAQnB,EAAM,KAAMA,EAAM,aAAa,CAC1E,CACZ,CAAS,CACT,CACA,CC7BA,KAAM,CAAE,YAAA0B,CAAA,EAAgBC,EAAAA,oBAAoB,CAAE,OAAQC,EAAAA,WAAY,EAMrDC,EAAWH,EAA8C,GAAG,ECf5DI,EAAQ9B,GAAqB,CACxC,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