@commercetools/nimbus 0.0.10 → 0.0.11
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-Whc4raea.cjs.js → Button-BjOgrRmH.cjs.js} +2 -2
- package/dist/chunks/{Button-Whc4raea.cjs.js.map → Button-BjOgrRmH.cjs.js.map} +1 -1
- package/dist/chunks/{Button-BOMjcccZ.es.js → Button-BsN1D5Hi.es.js} +10 -10
- package/dist/chunks/{Button-BOMjcccZ.es.js.map → Button-BsN1D5Hi.es.js.map} +1 -1
- package/dist/chunks/{DateField-DbAaUSAR.es.js → DateField-BozrMa9v.es.js} +645 -621
- package/dist/chunks/{DateField-DbAaUSAR.es.js.map → DateField-BozrMa9v.es.js.map} +1 -1
- package/dist/chunks/DateField-G0i9Cflc.cjs.js +2 -0
- package/dist/chunks/{DateField-BjIjR7y5.cjs.js.map → DateField-G0i9Cflc.cjs.js.map} +1 -1
- package/dist/chunks/DatePicker-3TZ8oKaR.es.js +762 -0
- package/dist/chunks/DatePicker-3TZ8oKaR.es.js.map +1 -0
- package/dist/chunks/DatePicker-BD8RjPSL.cjs.js +2 -0
- package/dist/chunks/DatePicker-BD8RjPSL.cjs.js.map +1 -0
- package/dist/chunks/Dialog-Btds5x4W.cjs.js +2 -0
- package/dist/chunks/Dialog-Btds5x4W.cjs.js.map +1 -0
- package/dist/chunks/Dialog-CFERgD91.es.js +1888 -0
- package/dist/chunks/Dialog-CFERgD91.es.js.map +1 -0
- package/dist/chunks/{FocusScope-BacYMT5s.es.js → FocusScope-8pBtcv8k.es.js} +196 -153
- package/dist/chunks/FocusScope-8pBtcv8k.es.js.map +1 -0
- package/dist/chunks/FocusScope-BEOPrcCH.cjs.js +2 -0
- package/dist/chunks/FocusScope-BEOPrcCH.cjs.js.map +1 -0
- package/dist/chunks/{Group-CTSushH_.es.js → Group-Brffs0pl.es.js} +7 -7
- package/dist/chunks/{Group-CTSushH_.es.js.map → Group-Brffs0pl.es.js.map} +1 -1
- package/dist/chunks/{Group-DCFj0iWW.cjs.js → Group-apcpZquv.cjs.js} +2 -2
- package/dist/chunks/{Group-DCFj0iWW.cjs.js.map → Group-apcpZquv.cjs.js.map} +1 -1
- package/dist/chunks/{calendar-4vA2Wjuk.es.js → Heading-D143Kg6E.es.js} +658 -630
- package/dist/chunks/Heading-D143Kg6E.es.js.map +1 -0
- package/dist/chunks/Heading-DiqU5dbv.cjs.js +2 -0
- package/dist/chunks/Heading-DiqU5dbv.cjs.js.map +1 -0
- package/dist/chunks/{Hidden-CeBYiBUb.es.js → Hidden-X9vuhkMZ.es.js} +3 -3
- package/dist/chunks/{Hidden-CeBYiBUb.es.js.map → Hidden-X9vuhkMZ.es.js.map} +1 -1
- package/dist/chunks/{Input-CiHYWjLE.cjs.js → Input-BEgGe6bw.cjs.js} +2 -2
- package/dist/chunks/{Input-CiHYWjLE.cjs.js.map → Input-BEgGe6bw.cjs.js.map} +1 -1
- package/dist/chunks/{Input-DN0K3GJf.es.js → Input-Bxs2A5S-.es.js} +6 -6
- package/dist/chunks/{Input-DN0K3GJf.es.js.map → Input-Bxs2A5S-.es.js.map} +1 -1
- package/dist/chunks/Keyboard-Clnp4zAC.es.js +6 -0
- package/dist/chunks/Keyboard-Clnp4zAC.es.js.map +1 -0
- package/dist/chunks/Keyboard-rYf2KxZN.cjs.js +2 -0
- package/dist/chunks/Keyboard-rYf2KxZN.cjs.js.map +1 -0
- package/dist/chunks/{Label-CNMvF_U4.cjs.js → Label-DFXyfxZM.cjs.js} +2 -2
- package/dist/chunks/{Label-CNMvF_U4.cjs.js.map → Label-DFXyfxZM.cjs.js.map} +1 -1
- package/dist/chunks/{Label-DBDcs-md.es.js → Label-p7LXqne0.es.js} +3 -3
- package/dist/chunks/{Label-DBDcs-md.es.js.map → Label-p7LXqne0.es.js.map} +1 -1
- package/dist/chunks/ListBox-BEZfjFMq.cjs.js +2 -0
- package/dist/chunks/ListBox-BEZfjFMq.cjs.js.map +1 -0
- package/dist/chunks/ListBox-CiN7qgxV.es.js +645 -0
- package/dist/chunks/ListBox-CiN7qgxV.es.js.map +1 -0
- package/dist/chunks/LiveAnnouncer-BkrEjKY8.cjs.js +2 -0
- package/dist/chunks/{LiveAnnouncer-CwEWPU8b.cjs.js.map → LiveAnnouncer-BkrEjKY8.cjs.js.map} +1 -1
- package/dist/chunks/{LiveAnnouncer-B6177m92.es.js → LiveAnnouncer-CsPyaceH.es.js} +2 -2
- package/dist/chunks/{LiveAnnouncer-B6177m92.es.js.map → LiveAnnouncer-CsPyaceH.es.js.map} +1 -1
- package/dist/chunks/NumberFormatter-DewVDY5w.cjs.js.map +1 -1
- package/dist/chunks/NumberFormatter-DgOUVrge.es.js.map +1 -1
- package/dist/chunks/{OverlayArrow-BpI9oaqU.es.js → OverlayArrow-BEiPDprB.es.js} +22 -22
- package/dist/chunks/{OverlayArrow-BpI9oaqU.es.js.map → OverlayArrow-BEiPDprB.es.js.map} +1 -1
- package/dist/chunks/OverlayArrow-BcRQfR_V.cjs.js +2 -0
- package/dist/chunks/{OverlayArrow-HjwHXXDg.cjs.js.map → OverlayArrow-BcRQfR_V.cjs.js.map} +1 -1
- package/dist/chunks/{ProgressBar-DpsMzb_5.cjs.js → ProgressBar-Cot0VLjE.cjs.js} +2 -2
- package/dist/chunks/{ProgressBar-DpsMzb_5.cjs.js.map → ProgressBar-Cot0VLjE.cjs.js.map} +1 -1
- package/dist/chunks/{ProgressBar-CjzD-Z5i.es.js → ProgressBar-M-wNKpE5.es.js} +4 -4
- package/dist/chunks/{ProgressBar-CjzD-Z5i.es.js.map → ProgressBar-M-wNKpE5.es.js.map} +1 -1
- package/dist/chunks/SSRProvider-DZRLwxPS.cjs.js.map +1 -1
- package/dist/chunks/SSRProvider-eIEwc-2s.es.js.map +1 -1
- package/dist/chunks/Separator-BFKzWOOv.cjs.js +18 -0
- package/dist/chunks/Separator-BFKzWOOv.cjs.js.map +1 -0
- package/dist/chunks/Separator-CBgksjWN.es.js +2435 -0
- package/dist/chunks/Separator-CBgksjWN.es.js.map +1 -0
- package/dist/chunks/{TextArea-BeSyeRBk.es.js → TextArea-DcFJx08j.es.js} +5 -5
- package/dist/chunks/{TextArea-BeSyeRBk.es.js.map → TextArea-DcFJx08j.es.js.map} +1 -1
- package/dist/chunks/{TextArea-C0Ozz1GB.cjs.js → TextArea-ciW_61Jv.cjs.js} +2 -2
- package/dist/chunks/{TextArea-C0Ozz1GB.cjs.js.map → TextArea-ciW_61Jv.cjs.js.map} +1 -1
- package/dist/chunks/{VisuallyHidden-D5E2DfM-.es.js → VisuallyHidden-CE-SZFGa.es.js} +3 -3
- package/dist/chunks/{VisuallyHidden-D5E2DfM-.es.js.map → VisuallyHidden-CE-SZFGa.es.js.map} +1 -1
- package/dist/chunks/{VisuallyHidden-BeFoHnz-.cjs.js → VisuallyHidden-Cqkg4RzT.cjs.js} +2 -2
- package/dist/chunks/{VisuallyHidden-BeFoHnz-.cjs.js.map → VisuallyHidden-Cqkg4RzT.cjs.js.map} +1 -1
- package/dist/chunks/{accordion-Dc0-jhj-.es.js → accordion-AFXp_v9r.es.js} +65 -65
- package/dist/chunks/{accordion-Dc0-jhj-.es.js.map → accordion-AFXp_v9r.es.js.map} +1 -1
- package/dist/chunks/accordion-CnNWyGUM.cjs.js +2 -0
- package/dist/chunks/{accordion-BqC_0cQF.cjs.js.map → accordion-CnNWyGUM.cjs.js.map} +1 -1
- package/dist/chunks/{alert-0lZycfTS.cjs.js → alert-CTdQVQEX.cjs.js} +2 -2
- package/dist/chunks/{alert-0lZycfTS.cjs.js.map → alert-CTdQVQEX.cjs.js.map} +1 -1
- package/dist/chunks/{alert-CLgnvjGx.es.js → alert-DObB3_Vi.es.js} +2 -2
- package/dist/chunks/{alert-CLgnvjGx.es.js.map → alert-DObB3_Vi.es.js.map} +1 -1
- package/dist/chunks/avatar-BLun8TXk.cjs.js.map +1 -1
- package/dist/chunks/avatar-DgvfEdwK.es.js.map +1 -1
- package/dist/chunks/{badge-BFL2bErq.cjs.js → badge-CFwI3HLf.cjs.js} +2 -2
- package/dist/chunks/{badge-BFL2bErq.cjs.js.map → badge-CFwI3HLf.cjs.js.map} +1 -1
- package/dist/chunks/{badge-C_FXV6xO.es.js → badge-DVDR3-fy.es.js} +2 -2
- package/dist/chunks/{badge-C_FXV6xO.es.js.map → badge-DVDR3-fy.es.js.map} +1 -1
- package/dist/chunks/{button-HUhEhOaq.es.js → button-DPZ4gynI.es.js} +19 -19
- package/dist/chunks/{button-HUhEhOaq.es.js.map → button-DPZ4gynI.es.js.map} +1 -1
- package/dist/chunks/{button-ByoXAf0f.cjs.js → button-DhrBalPi.cjs.js} +2 -2
- package/dist/chunks/{button-ByoXAf0f.cjs.js.map → button-DhrBalPi.cjs.js.map} +1 -1
- package/dist/chunks/calendar-BCsFBFkk.es.js +185 -0
- package/dist/chunks/calendar-BCsFBFkk.es.js.map +1 -0
- package/dist/chunks/calendar-BeUwpJo3.cjs.js +2 -0
- package/dist/chunks/calendar-BeUwpJo3.cjs.js.map +1 -0
- package/dist/chunks/{card-BlrFTWUO.es.js → card-CS_daMhq.es.js} +3 -3
- package/dist/chunks/{card-BlrFTWUO.es.js.map → card-CS_daMhq.es.js.map} +1 -1
- package/dist/chunks/{card-B9Ei2Ifh.cjs.js → card-svWLl_kS.cjs.js} +2 -2
- package/dist/chunks/{card-B9Ei2Ifh.cjs.js.map → card-svWLl_kS.cjs.js.map} +1 -1
- package/dist/chunks/{checkbox-BjNxOrz3.es.js → checkbox-BFb4vHab.es.js} +7 -7
- package/dist/chunks/{checkbox-BjNxOrz3.es.js.map → checkbox-BFb4vHab.es.js.map} +1 -1
- package/dist/chunks/{checkbox-DwrmmRar.cjs.js → checkbox-D0evM4Sv.cjs.js} +2 -2
- package/dist/chunks/{checkbox-DwrmmRar.cjs.js.map → checkbox-D0evM4Sv.cjs.js.map} +1 -1
- package/dist/chunks/combobox-D30xydJw.cjs.js +2 -0
- package/dist/chunks/combobox-D30xydJw.cjs.js.map +1 -0
- package/dist/chunks/combobox-wZEZ8t94.es.js +1916 -0
- package/dist/chunks/combobox-wZEZ8t94.es.js.map +1 -0
- package/dist/chunks/combobox.recipe-BKOsv-Im.cjs.js +2 -0
- package/dist/chunks/{combobox.recipe-BtnFn38v.cjs.js.map → combobox.recipe-BKOsv-Im.cjs.js.map} +1 -1
- package/dist/chunks/{combobox.recipe-aeARdYiV.es.js → combobox.recipe-BQy3LgVG.es.js} +17 -44
- package/dist/chunks/{combobox.recipe-aeARdYiV.es.js.map → combobox.recipe-BQy3LgVG.es.js.map} +1 -1
- package/dist/chunks/context-D3RF-nTI.es.js.map +1 -1
- package/dist/chunks/context-DURpz5en.cjs.js.map +1 -1
- package/dist/chunks/{date-input-BC-7OWJ7.cjs.js → date-input-B3VEJdpa.cjs.js} +2 -2
- package/dist/chunks/{date-input-BC-7OWJ7.cjs.js.map → date-input-B3VEJdpa.cjs.js.map} +1 -1
- package/dist/chunks/{date-input-CB3KDtkI.es.js → date-input-TeYMF5Hb.es.js} +3 -3
- package/dist/chunks/{date-input-CB3KDtkI.es.js.map → date-input-TeYMF5Hb.es.js.map} +1 -1
- package/dist/chunks/{date-input.recipe-BtWEmJGK.es.js → date-input.recipe-BTsUgaUQ.es.js} +10 -3
- package/dist/chunks/{date-input.recipe-BtWEmJGK.es.js.map → date-input.recipe-BTsUgaUQ.es.js.map} +1 -1
- package/dist/chunks/{date-input.recipe-Cf9e8VAr.cjs.js → date-input.recipe-Onzf22sP.cjs.js} +2 -2
- package/dist/chunks/{date-input.recipe-Cf9e8VAr.cjs.js.map → date-input.recipe-Onzf22sP.cjs.js.map} +1 -1
- package/dist/chunks/date-picker-BrkP7f-J.cjs.js +2 -0
- package/dist/chunks/date-picker-BrkP7f-J.cjs.js.map +1 -0
- package/dist/chunks/date-picker-CTGHoJdV.es.js +183 -0
- package/dist/chunks/date-picker-CTGHoJdV.es.js.map +1 -0
- package/dist/chunks/date-range-picker-BZ7e2THh.cjs.js +2 -0
- package/dist/chunks/date-range-picker-BZ7e2THh.cjs.js.map +1 -0
- package/dist/chunks/date-range-picker-DYAE8hY-.es.js +273 -0
- package/dist/chunks/date-range-picker-DYAE8hY-.es.js.map +1 -0
- package/dist/chunks/date-range-picker.recipe-BARriKKl.cjs.js +2 -0
- package/dist/chunks/date-range-picker.recipe-BARriKKl.cjs.js.map +1 -0
- package/dist/chunks/date-range-picker.recipe-CuI7inaU.es.js +124 -0
- package/dist/chunks/date-range-picker.recipe-CuI7inaU.es.js.map +1 -0
- package/dist/chunks/divider-CifCuFCu.cjs.js +2 -0
- package/dist/chunks/divider-CifCuFCu.cjs.js.map +1 -0
- package/dist/chunks/divider-Js2LpOHh.es.js +58 -0
- package/dist/chunks/divider-Js2LpOHh.es.js.map +1 -0
- package/dist/chunks/domHelpers-InH3T0qs.es.js +16 -0
- package/dist/chunks/domHelpers-InH3T0qs.es.js.map +1 -0
- package/dist/chunks/domHelpers-YAYZ9fE9.cjs.js +2 -0
- package/dist/chunks/domHelpers-YAYZ9fE9.cjs.js.map +1 -0
- package/dist/chunks/extractStyleProps-CxgBrz3O.es.js.map +1 -1
- package/dist/chunks/extractStyleProps-lyk7D-zN.cjs.js.map +1 -1
- package/dist/chunks/{filterDOMProps-D6KHYVBX.es.js → filterDOMProps-HzsCnE3d.es.js} +2 -2
- package/dist/chunks/{filterDOMProps-D6KHYVBX.es.js.map → filterDOMProps-HzsCnE3d.es.js.map} +1 -1
- package/dist/chunks/{filterDOMProps-BS2lrgFA.cjs.js → filterDOMProps-_f3L9QML.cjs.js} +2 -2
- package/dist/chunks/{filterDOMProps-BS2lrgFA.cjs.js.map → filterDOMProps-_f3L9QML.cjs.js.map} +1 -1
- package/dist/chunks/focusSafely-BEP7qH8R.cjs.js +2 -0
- package/dist/chunks/focusSafely-BEP7qH8R.cjs.js.map +1 -0
- package/dist/chunks/focusSafely-Cpgkt6WC.es.js +69 -0
- package/dist/chunks/focusSafely-Cpgkt6WC.es.js.map +1 -0
- 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-DwxzvTA8.es.js → form-field-CmiwMrRv.es.js} +4 -4
- package/dist/chunks/{form-field-DwxzvTA8.es.js.map → form-field-CmiwMrRv.es.js.map} +1 -1
- package/dist/chunks/{form-field-DmlJuq9F.cjs.js → form-field-kTuQQx9G.cjs.js} +2 -2
- package/dist/chunks/{form-field-DmlJuq9F.cjs.js.map → form-field-kTuQQx9G.cjs.js.map} +1 -1
- package/dist/chunks/{icon-button-Bj1MnoDm.es.js → icon-button-CPBzhg2C.es.js} +2 -2
- package/dist/chunks/{icon-button-Bj1MnoDm.es.js.map → icon-button-CPBzhg2C.es.js.map} +1 -1
- package/dist/chunks/{icon-button-Vf2txEnP.cjs.js → icon-button-QwpNTUZ8.cjs.js} +2 -2
- package/dist/chunks/{icon-button-Vf2txEnP.cjs.js.map → icon-button-QwpNTUZ8.cjs.js.map} +1 -1
- package/dist/chunks/kbd-Bkhw9E6L.cjs.js +2 -0
- package/dist/chunks/kbd-Bkhw9E6L.cjs.js.map +1 -0
- package/dist/chunks/kbd-Gxvodc1U.es.js +15 -0
- package/dist/chunks/kbd-Gxvodc1U.es.js.map +1 -0
- package/dist/chunks/kbd.recipe-BONVaPQN.es.js +26 -0
- package/dist/chunks/kbd.recipe-BONVaPQN.es.js.map +1 -0
- package/dist/chunks/kbd.recipe-UlkJJrC8.cjs.js +2 -0
- package/dist/chunks/kbd.recipe-UlkJJrC8.cjs.js.map +1 -0
- package/dist/chunks/{link-C89khrQp.cjs.js → link-DJmmcif9.cjs.js} +2 -2
- package/dist/chunks/{link-C89khrQp.cjs.js.map → link-DJmmcif9.cjs.js.map} +1 -1
- package/dist/chunks/{link-D3Rr2RQl.es.js → link-I24WQHS6.es.js} +7 -7
- package/dist/chunks/{link-D3Rr2RQl.es.js.map → link-I24WQHS6.es.js.map} +1 -1
- package/dist/chunks/{loading-spinner-CnJDA2s5.cjs.js → loading-spinner-BQd4UVQs.cjs.js} +2 -2
- package/dist/chunks/{loading-spinner-CnJDA2s5.cjs.js.map → loading-spinner-BQd4UVQs.cjs.js.map} +1 -1
- package/dist/chunks/{loading-spinner-DBsMwy3U.es.js → loading-spinner-DwN-yshK.es.js} +3 -3
- package/dist/chunks/{loading-spinner-DBsMwy3U.es.js.map → loading-spinner-DwN-yshK.es.js.map} +1 -1
- package/dist/chunks/{make-element-focusable-diGDWsyp.es.js → make-element-focusable-BRVwOKkK.es.js} +3 -3
- package/dist/chunks/{make-element-focusable-diGDWsyp.es.js.map → make-element-focusable-BRVwOKkK.es.js.map} +1 -1
- package/dist/chunks/{make-element-focusable-zhwaMi8v.cjs.js → make-element-focusable-DDGKtWBN.cjs.js} +2 -2
- package/dist/chunks/{make-element-focusable-zhwaMi8v.cjs.js.map → make-element-focusable-DDGKtWBN.cjs.js.map} +1 -1
- package/dist/chunks/menu-BnUXBlRL.cjs.js +2 -0
- package/dist/chunks/menu-BnUXBlRL.cjs.js.map +1 -0
- package/dist/chunks/menu-DcEXCIN3.es.js +167 -0
- package/dist/chunks/menu-DcEXCIN3.es.js.map +1 -0
- package/dist/chunks/{mergeProps-BUo0BHVY.es.js → mergeProps-Bn6EInU5.es.js} +4 -3
- package/dist/chunks/{mergeProps-BUo0BHVY.es.js.map → mergeProps-Bn6EInU5.es.js.map} +1 -1
- package/dist/chunks/mergeProps-VvQrkhSh.cjs.js +2 -0
- package/dist/chunks/{mergeProps--cTsQeLh.cjs.js.map → mergeProps-VvQrkhSh.cjs.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-CIHvD3Oz.es.js → multiline-text-input-Be3sGtOK.es.js} +3 -3
- package/dist/chunks/{multiline-text-input-CIHvD3Oz.es.js.map → multiline-text-input-Be3sGtOK.es.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-AjqfDDxC.cjs.js → multiline-text-input-CzoQb5Ms.cjs.js} +2 -2
- package/dist/chunks/{multiline-text-input-AjqfDDxC.cjs.js.map → multiline-text-input-CzoQb5Ms.cjs.js.map} +1 -1
- package/dist/chunks/{nimbus-provider-BjnzjFmv.es.js → nimbus-provider-CDXyYH9f.es.js} +377 -217
- package/dist/chunks/nimbus-provider-CDXyYH9f.es.js.map +1 -0
- package/dist/chunks/nimbus-provider-zUukT3WE.cjs.js +4 -0
- package/dist/chunks/nimbus-provider-zUukT3WE.cjs.js.map +1 -0
- package/dist/chunks/number-5qMXmHyn.es.js.map +1 -1
- package/dist/chunks/number-CnrRPi4_.cjs.js.map +1 -1
- package/dist/chunks/{number-input-Da1tzQlg.es.js → number-input-B1gQD11A.es.js} +230 -214
- package/dist/chunks/number-input-B1gQD11A.es.js.map +1 -0
- package/dist/chunks/number-input-Cvy4MbJv.cjs.js +2 -0
- package/dist/chunks/number-input-Cvy4MbJv.cjs.js.map +1 -0
- package/dist/chunks/{openLink-Bb-6Z-d5.es.js → openLink-BRnXRj9w.es.js} +11 -11
- package/dist/chunks/{openLink-Bb-6Z-d5.es.js.map → openLink-BRnXRj9w.es.js.map} +1 -1
- package/dist/chunks/{openLink-COo3k75n.cjs.js → openLink-BjodHrGD.cjs.js} +2 -2
- package/dist/chunks/{openLink-COo3k75n.cjs.js.map → openLink-BjodHrGD.cjs.js.map} +1 -1
- package/dist/chunks/{password-input-CS1tN_Tr.es.js → password-input-B1oZ6y7E.es.js} +4 -4
- package/dist/chunks/{password-input-CS1tN_Tr.es.js.map → password-input-B1oZ6y7E.es.js.map} +1 -1
- package/dist/chunks/{password-input-BBUAEOxl.cjs.js → password-input-D3wUJdjZ.cjs.js} +2 -2
- package/dist/chunks/{password-input-BBUAEOxl.cjs.js.map → password-input-D3wUJdjZ.cjs.js.map} +1 -1
- package/dist/chunks/{platform-Bc175Jt1.es.js → platform-D-bXaP3n.es.js} +3 -3
- package/dist/chunks/{platform-Bc175Jt1.es.js.map → platform-D-bXaP3n.es.js.map} +1 -1
- package/dist/chunks/{progress-bar-oKaz0uqw.cjs.js → progress-bar-CbZY1dE1.cjs.js} +2 -2
- package/dist/chunks/{progress-bar-oKaz0uqw.cjs.js.map → progress-bar-CbZY1dE1.cjs.js.map} +1 -1
- package/dist/chunks/{progress-bar-QwctSqZZ.es.js → progress-bar-VipTWl4r.es.js} +3 -3
- package/dist/chunks/{progress-bar-QwctSqZZ.es.js.map → progress-bar-VipTWl4r.es.js.map} +1 -1
- package/dist/chunks/{radio-input-BexkdvxD.es.js → radio-input-BSrrYcqs.es.js} +15 -15
- package/dist/chunks/{radio-input-BexkdvxD.es.js.map → radio-input-BSrrYcqs.es.js.map} +1 -1
- package/dist/chunks/{radio-input-C7QoAolu.cjs.js → radio-input-vHNjGqLS.cjs.js} +2 -2
- package/dist/chunks/{radio-input-C7QoAolu.cjs.js.map → radio-input-vHNjGqLS.cjs.js.map} +1 -1
- package/dist/chunks/range-calendar-CsS-i222.cjs.js +2 -0
- package/dist/chunks/range-calendar-CsS-i222.cjs.js.map +1 -0
- package/dist/chunks/range-calendar-DEpcpGLw.es.js +185 -0
- package/dist/chunks/range-calendar-DEpcpGLw.es.js.map +1 -0
- package/dist/chunks/range-calendar.recipe-D7Qn7AJr.es.js +129 -0
- package/dist/chunks/range-calendar.recipe-D7Qn7AJr.es.js.map +1 -0
- package/dist/chunks/range-calendar.recipe-H7PsZQwO.cjs.js +2 -0
- package/dist/chunks/range-calendar.recipe-H7PsZQwO.cjs.js.map +1 -0
- package/dist/chunks/scrollIntoView-B2eLOBfw.cjs.js +2 -0
- package/dist/chunks/scrollIntoView-B2eLOBfw.cjs.js.map +1 -0
- package/dist/chunks/scrollIntoView-C5qp-va8.es.js +64 -0
- package/dist/chunks/scrollIntoView-C5qp-va8.es.js.map +1 -0
- package/dist/chunks/select-CMIJ0YjS.cjs.js +2 -0
- package/dist/chunks/{select-CwzhqF_g.cjs.js.map → select-CMIJ0YjS.cjs.js.map} +1 -1
- package/dist/chunks/{select-CU2u2b6U.es.js → select-wZ584ENo.es.js} +154 -153
- package/dist/chunks/{select-CU2u2b6U.es.js.map → select-wZ584ENo.es.js.map} +1 -1
- package/dist/chunks/select.recipe-BIox51h1.cjs.js +2 -0
- package/dist/chunks/select.recipe-BIox51h1.cjs.js.map +1 -0
- package/dist/chunks/{select.recipe-CXWsUldF.es.js → select.recipe-CNH8aWdo.es.js} +3 -3
- package/dist/chunks/select.recipe-CNH8aWdo.es.js.map +1 -0
- package/dist/chunks/{switch-CUwyaYts.cjs.js → switch-BM-A9yVv.cjs.js} +2 -2
- package/dist/chunks/{switch-CUwyaYts.cjs.js.map → switch-BM-A9yVv.cjs.js.map} +1 -1
- package/dist/chunks/{switch-DgbFw1kA.es.js → switch-Bxeo0Ktw.es.js} +5 -5
- package/dist/chunks/{switch-DgbFw1kA.es.js.map → switch-Bxeo0Ktw.es.js.map} +1 -1
- package/dist/chunks/{tag-group-Cc6S9cbR.es.js → tag-group-CWIMWAG_.es.js} +56 -55
- package/dist/chunks/{tag-group-Cc6S9cbR.es.js.map → tag-group-CWIMWAG_.es.js.map} +1 -1
- package/dist/chunks/tag-group-IJIXPuLT.cjs.js +2 -0
- package/dist/chunks/{tag-group-DCgEBbmh.cjs.js.map → tag-group-IJIXPuLT.cjs.js.map} +1 -1
- package/dist/chunks/{text-CEFwlX3E.cjs.js → text--fhvW47o.cjs.js} +2 -2
- package/dist/chunks/{text-CEFwlX3E.cjs.js.map → text--fhvW47o.cjs.js.map} +1 -1
- package/dist/chunks/{text-CYoFrI2I.es.js → text-CFsPSPPs.es.js} +2 -2
- package/dist/chunks/{text-CYoFrI2I.es.js.map → text-CFsPSPPs.es.js.map} +1 -1
- package/dist/chunks/{text-input-uhPCsxsK.es.js → text-input--62r8jAx.es.js} +3 -3
- package/dist/chunks/{text-input-uhPCsxsK.es.js.map → text-input--62r8jAx.es.js.map} +1 -1
- package/dist/chunks/{text-input-fAoATAAX.cjs.js → text-input-FGkoWybY.cjs.js} +2 -2
- package/dist/chunks/{text-input-fAoATAAX.cjs.js.map → text-input-FGkoWybY.cjs.js.map} +1 -1
- package/dist/chunks/{time-input-BwtzFUWN.cjs.js → time-input-BH0G5PFd.cjs.js} +2 -2
- package/dist/chunks/{time-input-BwtzFUWN.cjs.js.map → time-input-BH0G5PFd.cjs.js.map} +1 -1
- package/dist/chunks/{time-input-ClF6Qx1T.es.js → time-input-DeYvqDoa.es.js} +2 -2
- package/dist/chunks/{time-input-ClF6Qx1T.es.js.map → time-input-DeYvqDoa.es.js.map} +1 -1
- package/dist/chunks/{toggle-button-group-BDzXfqxK.es.js → toggle-button-group-B5xBRXo1.es.js} +12 -24
- package/dist/chunks/{toggle-button-group-BDzXfqxK.es.js.map → toggle-button-group-B5xBRXo1.es.js.map} +1 -1
- package/dist/chunks/{toggle-button-group-BOdTMLPd.cjs.js → toggle-button-group-Cvhe_K50.cjs.js} +2 -2
- package/dist/chunks/{toggle-button-group-BOdTMLPd.cjs.js.map → toggle-button-group-Cvhe_K50.cjs.js.map} +1 -1
- package/dist/chunks/tooltip-B6mXEaGu.cjs.js +2 -0
- package/dist/chunks/{tooltip-p-s9eZWV.cjs.js.map → tooltip-B6mXEaGu.cjs.js.map} +1 -1
- package/dist/chunks/{tooltip-MQm4h_hA.es.js → tooltip-CsfjIITA.es.js} +33 -33
- package/dist/chunks/{tooltip-MQm4h_hA.es.js.map → tooltip-CsfjIITA.es.js.map} +1 -1
- package/dist/chunks/{useButton-DdY6ixlh.es.js → useButton-BGeoUZHr.es.js} +5 -5
- package/dist/chunks/{useButton-DdY6ixlh.es.js.map → useButton-BGeoUZHr.es.js.map} +1 -1
- package/dist/chunks/{useButton-Cw2i6_TH.cjs.js → useButton-Bnd1IfAy.cjs.js} +2 -2
- package/dist/chunks/{useButton-Cw2i6_TH.cjs.js.map → useButton-Bnd1IfAy.cjs.js.map} +1 -1
- package/dist/chunks/useControlledState-D0L6S_5r.cjs.js.map +1 -1
- package/dist/chunks/useControlledState-u436Wbp1.es.js.map +1 -1
- package/dist/chunks/useDateFormatter-Byp_7yyY.cjs.js +2 -0
- package/dist/chunks/{useDateFormatter-CeTPxW8a.cjs.js.map → useDateFormatter-Byp_7yyY.cjs.js.map} +1 -1
- package/dist/chunks/{useDateFormatter-DvdguFVS.es.js → useDateFormatter-CioL-RTi.es.js} +37 -37
- package/dist/chunks/{useDateFormatter-DvdguFVS.es.js.map → useDateFormatter-CioL-RTi.es.js.map} +1 -1
- package/dist/chunks/useDescription-BQV7vQ1v.es.js +33 -0
- package/dist/chunks/useDescription-BQV7vQ1v.es.js.map +1 -0
- package/dist/chunks/useDescription-Bb-vj5q6.cjs.js +2 -0
- package/dist/chunks/useDescription-Bb-vj5q6.cjs.js.map +1 -0
- package/dist/chunks/{useEvent-BFbCMsMG.cjs.js → useEvent-ZeHBdflg.cjs.js} +2 -2
- package/dist/chunks/{useEvent-BFbCMsMG.cjs.js.map → useEvent-ZeHBdflg.cjs.js.map} +1 -1
- package/dist/chunks/{useEvent-CzfHWUdv.es.js → useEvent-xlhjqVYi.es.js} +2 -2
- package/dist/chunks/{useEvent-CzfHWUdv.es.js.map → useEvent-xlhjqVYi.es.js.map} +1 -1
- package/dist/chunks/{useField-Caqfdud_.es.js → useField-BGOhsACE.es.js} +3 -3
- package/dist/chunks/{useField-Caqfdud_.es.js.map → useField-BGOhsACE.es.js.map} +1 -1
- package/dist/chunks/{useField-CNr5aECk.cjs.js → useField-Doh1_zqa.cjs.js} +2 -2
- package/dist/chunks/{useField-CNr5aECk.cjs.js.map → useField-Doh1_zqa.cjs.js.map} +1 -1
- package/dist/chunks/useFocus-CRjxQc9J.cjs.js +2 -0
- package/dist/chunks/useFocus-CRjxQc9J.cjs.js.map +1 -0
- package/dist/chunks/useFocus-DyrL604F.es.js +189 -0
- package/dist/chunks/useFocus-DyrL604F.es.js.map +1 -0
- package/dist/chunks/{useFocusRing-Bij4qXCm.es.js → useFocusRing-BOPRvfsD.es.js} +3 -3
- package/dist/chunks/{useFocusRing-Bij4qXCm.es.js.map → useFocusRing-BOPRvfsD.es.js.map} +1 -1
- package/dist/chunks/{useFocusRing-DE3LmlBK.cjs.js → useFocusRing-wD8IMPEh.cjs.js} +2 -2
- package/dist/chunks/{useFocusRing-DE3LmlBK.cjs.js.map → useFocusRing-wD8IMPEh.cjs.js.map} +1 -1
- package/dist/chunks/{useFocusWithin-CWaYFSji.cjs.js → useFocusWithin-B5GNsbfr.cjs.js} +2 -2
- package/dist/chunks/{useFocusWithin-CWaYFSji.cjs.js.map → useFocusWithin-B5GNsbfr.cjs.js.map} +1 -1
- package/dist/chunks/{useFocusWithin-BxAgY02U.es.js → useFocusWithin-DH1ei7eA.es.js} +2 -2
- package/dist/chunks/{useFocusWithin-BxAgY02U.es.js.map → useFocusWithin-DH1ei7eA.es.js.map} +1 -1
- package/dist/chunks/useFocusable-Bbz310Qf.cjs.js +2 -0
- package/dist/chunks/useFocusable-Bbz310Qf.cjs.js.map +1 -0
- package/dist/chunks/useFocusable-C_1ABg2H.es.js +100 -0
- package/dist/chunks/useFocusable-C_1ABg2H.es.js.map +1 -0
- package/dist/chunks/useFormReset-C6y6YYJp.cjs.js +2 -0
- package/dist/chunks/{useFormReset-B7JIQEba.cjs.js.map → useFormReset-C6y6YYJp.cjs.js.map} +1 -1
- package/dist/chunks/{useFormReset-j9laz3Zh.es.js → useFormReset-CC4XkaS0.es.js} +4 -4
- package/dist/chunks/{useFormReset-j9laz3Zh.es.js.map → useFormReset-CC4XkaS0.es.js.map} +1 -1
- package/dist/chunks/useFormValidation-D4duh8Fb.es.js +200 -0
- package/dist/chunks/{useFormValidation-BbPFbrIk.es.js.map → useFormValidation-D4duh8Fb.es.js.map} +1 -1
- package/dist/chunks/useFormValidation-D5EJ50gR.cjs.js +2 -0
- package/dist/chunks/{useFormValidation-WxEl8dbL.cjs.js.map → useFormValidation-D5EJ50gR.cjs.js.map} +1 -1
- package/dist/chunks/useHover-B4ryD1zd.cjs.js +2 -0
- package/dist/chunks/useHover-B4ryD1zd.cjs.js.map +1 -0
- package/dist/chunks/{useHover-DmJo2yqg.es.js → useHover-EutQBS3I.es.js} +19 -19
- package/dist/chunks/useHover-EutQBS3I.es.js.map +1 -0
- package/dist/chunks/{useLabel-CekSAnqJ.es.js → useLabel-BuEJIpWS.es.js} +2 -2
- package/dist/chunks/{useLabel-CekSAnqJ.es.js.map → useLabel-BuEJIpWS.es.js.map} +1 -1
- package/dist/chunks/{useLabel-C1BLl-NU.cjs.js → useLabel-f5x32F8v.cjs.js} +2 -2
- package/dist/chunks/{useLabel-C1BLl-NU.cjs.js.map → useLabel-f5x32F8v.cjs.js.map} +1 -1
- package/dist/chunks/{useLocalizedStringFormatter-BfWBwLjq.es.js → useLocalizedStringFormatter-B_O_C-A0.es.js} +2 -2
- package/dist/chunks/{useLocalizedStringFormatter-BfWBwLjq.es.js.map → useLocalizedStringFormatter-B_O_C-A0.es.js.map} +1 -1
- package/dist/chunks/useLocalizedStringFormatter-ZUZDzNOP.cjs.js +2 -0
- package/dist/chunks/{useLocalizedStringFormatter-CdsqKKUv.cjs.js.map → useLocalizedStringFormatter-ZUZDzNOP.cjs.js.map} +1 -1
- package/dist/chunks/useObjectRef-4v2MxSjQ.cjs.js.map +1 -1
- package/dist/chunks/useObjectRef-CaJ5pgjX.es.js.map +1 -1
- package/dist/chunks/{usePress-Cjh8V0gi.es.js → usePress-Bf0oV30S.es.js} +182 -165
- package/dist/chunks/usePress-Bf0oV30S.es.js.map +1 -0
- package/dist/chunks/usePress-Cqy1fzvV.cjs.js +8 -0
- package/dist/chunks/usePress-Cqy1fzvV.cjs.js.map +1 -0
- package/dist/chunks/{useProgressBar-C2d-2Fkp.cjs.js → useProgressBar-3tBtQD6p.cjs.js} +2 -2
- package/dist/chunks/{useProgressBar-C2d-2Fkp.cjs.js.map → useProgressBar-3tBtQD6p.cjs.js.map} +1 -1
- package/dist/chunks/{useProgressBar-DZT7aMNM.es.js → useProgressBar-C8j_OVKt.es.js} +4 -4
- package/dist/chunks/{useProgressBar-DZT7aMNM.es.js.map → useProgressBar-C8j_OVKt.es.js.map} +1 -1
- package/dist/chunks/useSeparator-CZKjqF0N.cjs.js +2 -0
- package/dist/chunks/useSeparator-CZKjqF0N.cjs.js.map +1 -0
- package/dist/chunks/useSeparator-g1ilWvTX.es.js +19 -0
- package/dist/chunks/useSeparator-g1ilWvTX.es.js.map +1 -0
- package/dist/chunks/useSingleSelectListState-BLYvCKPf.cjs.js +2 -0
- package/dist/chunks/useSingleSelectListState-BLYvCKPf.cjs.js.map +1 -0
- package/dist/chunks/useSingleSelectListState-Dtne-c12.es.js +35 -0
- package/dist/chunks/useSingleSelectListState-Dtne-c12.es.js.map +1 -0
- package/dist/chunks/{useSpinButton-D2j8iVmv.es.js → useSpinButton-DEhwpuEM.es.js} +187 -158
- package/dist/chunks/useSpinButton-DEhwpuEM.es.js.map +1 -0
- package/dist/chunks/useSpinButton-DkqZHy9E.cjs.js +2 -0
- package/dist/chunks/useSpinButton-DkqZHy9E.cjs.js.map +1 -0
- package/dist/chunks/{useTextField-CtQSL6tL.es.js → useTextField-DewF7uv9.es.js} +8 -8
- package/dist/chunks/{useTextField-CtQSL6tL.es.js.map → useTextField-DewF7uv9.es.js.map} +1 -1
- package/dist/chunks/useTextField-J5W2QB4G.cjs.js +2 -0
- package/dist/chunks/{useTextField-BMUp5FfB.cjs.js.map → useTextField-J5W2QB4G.cjs.js.map} +1 -1
- package/dist/chunks/{useToggle-CTRf6MHr.es.js → useToggle-BXsvw8Q3.es.js} +6 -6
- package/dist/chunks/{useToggle-CTRf6MHr.es.js.map → useToggle-BXsvw8Q3.es.js.map} +1 -1
- package/dist/chunks/{useToggle-CdzYIaIp.cjs.js → useToggle-VMBvyMfl.cjs.js} +2 -2
- package/dist/chunks/{useToggle-CdzYIaIp.cjs.js.map → useToggle-VMBvyMfl.cjs.js.map} +1 -1
- package/dist/chunks/useToggleState-bO90kfqG.cjs.js.map +1 -1
- package/dist/chunks/useToggleState-mKFEFD2Q.es.js.map +1 -1
- package/dist/chunks/useUpdateEffect-CCDx8D4X.es.js.map +1 -1
- package/dist/chunks/useUpdateEffect-sk3kiVGz.cjs.js.map +1 -1
- package/dist/chunks/utils-BR34o1UE.es.js +269 -0
- package/dist/chunks/utils-BR34o1UE.es.js.map +1 -0
- package/dist/chunks/{utils-DB75DiMj.es.js → utils-CEdpnSRC.es.js} +4 -4
- package/dist/chunks/{utils-DB75DiMj.es.js.map → utils-CEdpnSRC.es.js.map} +1 -1
- package/dist/chunks/utils-CThuzDqT.cjs.js +2 -0
- package/dist/chunks/utils-CThuzDqT.cjs.js.map +1 -0
- package/dist/chunks/{utils-BQD5cAKH.cjs.js → utils-sWqo2nmW.cjs.js} +2 -2
- package/dist/chunks/{utils-BQD5cAKH.cjs.js.map → utils-sWqo2nmW.cjs.js.map} +1 -1
- package/dist/chunks/{visually-hidden-DJxzCHM4.es.js → visually-hidden-CQabqCJt.es.js} +2 -2
- package/dist/chunks/{visually-hidden-DJxzCHM4.es.js.map → visually-hidden-CQabqCJt.es.js.map} +1 -1
- package/dist/chunks/{visually-hidden-XscDHjYa.cjs.js → visually-hidden-YFEW-yS7.cjs.js} +2 -2
- package/dist/chunks/{visually-hidden-XscDHjYa.cjs.js.map → visually-hidden-YFEW-yS7.cjs.js.map} +1 -1
- package/dist/components/accordion.cjs +1 -1
- package/dist/components/accordion.es.js +1 -1
- package/dist/components/alert.cjs +1 -1
- package/dist/components/alert.es.js +1 -1
- package/dist/components/badge.cjs +1 -1
- package/dist/components/badge.es.js +1 -1
- package/dist/components/button.cjs +1 -1
- package/dist/components/button.es.js +1 -1
- package/dist/components/calendar.cjs +1 -1
- package/dist/components/calendar.es.js +1 -1
- package/dist/components/card.cjs +1 -1
- package/dist/components/card.es.js +1 -1
- package/dist/components/checkbox.cjs +1 -1
- package/dist/components/checkbox.es.js +1 -1
- package/dist/components/combobox.cjs +1 -1
- package/dist/components/combobox.es.js +1 -1
- package/dist/components/components.cjs +1 -1
- package/dist/components/components.es.js +96 -82
- package/dist/components/components.es.js.map +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 +2 -0
- package/dist/components/date-range-picker.cjs.map +1 -0
- package/dist/components/date-range-picker.es.js +5 -0
- package/dist/components/date-range-picker.es.js.map +1 -0
- 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/icon-button.cjs +1 -1
- package/dist/components/icon-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.cjs +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/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 +2 -0
- package/dist/components/range-calendar.cjs.map +1 -0
- package/dist/components/range-calendar.es.js +5 -0
- package/dist/components/range-calendar.es.js.map +1 -0
- package/dist/components/select.cjs +1 -1
- package/dist/components/select.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/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/components.d.ts +325 -4
- package/dist/date-input.d.ts +7 -0
- package/dist/date-picker.d.ts +21 -1
- package/dist/date-range-picker.d.ts +111 -0
- package/dist/icon.d.ts +5 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +325 -4
- package/dist/index.es.js +116 -102
- package/dist/index.es.js.map +1 -1
- package/dist/kbd.d.ts +13 -5
- package/dist/range-calendar.d.ts +33 -0
- package/dist/setup-jsdom-polyfills.cjs.map +1 -1
- package/dist/setup-jsdom-polyfills.es.js.map +1 -1
- package/package.json +14 -13
- package/dist/chunks/DateField-BjIjR7y5.cjs.js +0 -2
- package/dist/chunks/Dialog-B6tbMgyU.cjs.js +0 -2
- package/dist/chunks/Dialog-B6tbMgyU.cjs.js.map +0 -1
- package/dist/chunks/Dialog-Ct6jqZ14.es.js +0 -870
- package/dist/chunks/Dialog-Ct6jqZ14.es.js.map +0 -1
- package/dist/chunks/FocusScope-BUeBbhRq.cjs.js +0 -2
- package/dist/chunks/FocusScope-BUeBbhRq.cjs.js.map +0 -1
- package/dist/chunks/FocusScope-BacYMT5s.es.js.map +0 -1
- package/dist/chunks/ListBox-ABeVGjvU.es.js +0 -3007
- package/dist/chunks/ListBox-ABeVGjvU.es.js.map +0 -1
- package/dist/chunks/ListBox-DCA-jDGn.cjs.js +0 -18
- package/dist/chunks/ListBox-DCA-jDGn.cjs.js.map +0 -1
- package/dist/chunks/LiveAnnouncer-CwEWPU8b.cjs.js +0 -2
- package/dist/chunks/OverlayArrow-HjwHXXDg.cjs.js +0 -2
- package/dist/chunks/accordion-BqC_0cQF.cjs.js +0 -2
- package/dist/chunks/calendar-4vA2Wjuk.es.js.map +0 -1
- package/dist/chunks/calendar-fDyD76bv.cjs.js +0 -2
- package/dist/chunks/calendar-fDyD76bv.cjs.js.map +0 -1
- package/dist/chunks/combobox-e2_LtIV2.cjs.js +0 -2
- package/dist/chunks/combobox-e2_LtIV2.cjs.js.map +0 -1
- package/dist/chunks/combobox-yROd_YZT.es.js +0 -1898
- package/dist/chunks/combobox-yROd_YZT.es.js.map +0 -1
- package/dist/chunks/combobox.recipe-BtnFn38v.cjs.js +0 -2
- package/dist/chunks/date-picker-BO7p5VmS.cjs.js +0 -2
- package/dist/chunks/date-picker-BO7p5VmS.cjs.js.map +0 -1
- package/dist/chunks/date-picker-DJVAYEAw.es.js +0 -484
- package/dist/chunks/date-picker-DJVAYEAw.es.js.map +0 -1
- package/dist/chunks/divider-Bo7fu52f.es.js +0 -72
- package/dist/chunks/divider-Bo7fu52f.es.js.map +0 -1
- package/dist/chunks/divider-jlSUrmo7.cjs.js +0 -2
- package/dist/chunks/divider-jlSUrmo7.cjs.js.map +0 -1
- package/dist/chunks/focusSafely-BsLdCW-M.cjs.js +0 -2
- package/dist/chunks/focusSafely-BsLdCW-M.cjs.js.map +0 -1
- package/dist/chunks/focusSafely-CahaQIyI.es.js +0 -37
- package/dist/chunks/focusSafely-CahaQIyI.es.js.map +0 -1
- package/dist/chunks/getScrollParent-DE66eQI-.es.js +0 -15
- package/dist/chunks/getScrollParent-DE66eQI-.es.js.map +0 -1
- package/dist/chunks/getScrollParent-Dc1cnLDE.cjs.js +0 -2
- package/dist/chunks/getScrollParent-Dc1cnLDE.cjs.js.map +0 -1
- package/dist/chunks/kbd-BKH_SGCC.es.js +0 -6
- package/dist/chunks/kbd-BKH_SGCC.es.js.map +0 -1
- package/dist/chunks/kbd-Bhv8ae1I.cjs.js +0 -2
- package/dist/chunks/kbd-Bhv8ae1I.cjs.js.map +0 -1
- package/dist/chunks/mergeProps--cTsQeLh.cjs.js +0 -2
- package/dist/chunks/nimbus-provider-BjnzjFmv.es.js.map +0 -1
- package/dist/chunks/nimbus-provider-Cfpse_6n.cjs.js +0 -2
- package/dist/chunks/nimbus-provider-Cfpse_6n.cjs.js.map +0 -1
- package/dist/chunks/number-input-Da1tzQlg.es.js.map +0 -1
- package/dist/chunks/number-input-oxPP81Et.cjs.js +0 -2
- package/dist/chunks/number-input-oxPP81Et.cjs.js.map +0 -1
- package/dist/chunks/scrollIntoView-CqkKWFb6.es.js +0 -83
- package/dist/chunks/scrollIntoView-CqkKWFb6.es.js.map +0 -1
- package/dist/chunks/scrollIntoView-DJjtWQTK.cjs.js +0 -2
- package/dist/chunks/scrollIntoView-DJjtWQTK.cjs.js.map +0 -1
- package/dist/chunks/select-CwzhqF_g.cjs.js +0 -2
- package/dist/chunks/select.recipe-CXWsUldF.es.js.map +0 -1
- package/dist/chunks/select.recipe-DUHFWlQt.cjs.js +0 -2
- package/dist/chunks/select.recipe-DUHFWlQt.cjs.js.map +0 -1
- package/dist/chunks/tag-group-DCgEBbmh.cjs.js +0 -2
- package/dist/chunks/tooltip-p-s9eZWV.cjs.js +0 -2
- package/dist/chunks/useDateFormatter-CeTPxW8a.cjs.js +0 -2
- package/dist/chunks/useFocus-3ktZKnFP.es.js +0 -135
- package/dist/chunks/useFocus-3ktZKnFP.es.js.map +0 -1
- package/dist/chunks/useFocus-D9bTLwXz.cjs.js +0 -2
- package/dist/chunks/useFocus-D9bTLwXz.cjs.js.map +0 -1
- package/dist/chunks/useFocusable-41-WL-k6.cjs.js +0 -2
- package/dist/chunks/useFocusable-41-WL-k6.cjs.js.map +0 -1
- package/dist/chunks/useFocusable-B4YfgYbi.es.js +0 -75
- package/dist/chunks/useFocusable-B4YfgYbi.es.js.map +0 -1
- package/dist/chunks/useFormReset-B7JIQEba.cjs.js +0 -2
- package/dist/chunks/useFormValidation-BbPFbrIk.es.js +0 -179
- package/dist/chunks/useFormValidation-WxEl8dbL.cjs.js +0 -2
- package/dist/chunks/useHover-ClWWazLU.cjs.js +0 -2
- package/dist/chunks/useHover-ClWWazLU.cjs.js.map +0 -1
- package/dist/chunks/useHover-DmJo2yqg.es.js.map +0 -1
- package/dist/chunks/useLocalizedStringFormatter-CdsqKKUv.cjs.js +0 -2
- package/dist/chunks/usePress-CHjHe0z6.cjs.js +0 -8
- package/dist/chunks/usePress-CHjHe0z6.cjs.js.map +0 -1
- package/dist/chunks/usePress-Cjh8V0gi.es.js.map +0 -1
- package/dist/chunks/useSingleSelectListState-C2uPq6eE.cjs.js +0 -2
- package/dist/chunks/useSingleSelectListState-C2uPq6eE.cjs.js.map +0 -1
- package/dist/chunks/useSingleSelectListState-NfI_d4ak.es.js +0 -269
- package/dist/chunks/useSingleSelectListState-NfI_d4ak.es.js.map +0 -1
- package/dist/chunks/useSpinButton-C2O01UxL.cjs.js +0 -2
- package/dist/chunks/useSpinButton-C2O01UxL.cjs.js.map +0 -1
- package/dist/chunks/useSpinButton-D2j8iVmv.es.js.map +0 -1
- package/dist/chunks/useTextField-BMUp5FfB.cjs.js +0 -2
- package/dist/chunks/utils-4CMfmbln.es.js +0 -187
- package/dist/chunks/utils-4CMfmbln.es.js.map +0 -1
- package/dist/chunks/utils-DDsBrWAK.cjs.js +0 -2
- package/dist/chunks/utils-DDsBrWAK.cjs.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"focusSafely-Cpgkt6WC.es.js","sources":["../../../../node_modules/.pnpm/@react-aria+utils@3.30.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/utils/dist/useId.mjs","../../../../node_modules/.pnpm/@react-aria+utils@3.30.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/utils/dist/chain.mjs","../../../../node_modules/.pnpm/@react-aria+utils@3.30.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/utils/dist/mergeProps.mjs","../../../../node_modules/.pnpm/@react-aria+utils@3.30.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/utils/dist/runAfterTransition.mjs","../../../../node_modules/.pnpm/@react-aria+utils@3.30.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/utils/dist/useSyncRef.mjs","../../../../node_modules/.pnpm/@react-aria+interactions@3.25.4_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/interactions/dist/focusSafely.mjs"],"sourcesContent":["import {useLayoutEffect as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c} from \"./useLayoutEffect.mjs\";\nimport {useValueEffect as $1dbecbe27a04f9af$export$14d238f342723f25} from \"./useValueEffect.mjs\";\nimport {useState as $eKkEp$useState, useRef as $eKkEp$useRef, useEffect as $eKkEp$useEffect, useCallback as $eKkEp$useCallback} from \"react\";\nimport {useSSRSafeId as $eKkEp$useSSRSafeId} from \"@react-aria/ssr\";\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\n\n\n// copied from SSRProvider.tsx to reduce exports, if needed again, consider sharing\nlet $bdb11010cef70236$var$canUseDOM = Boolean(typeof window !== 'undefined' && window.document && window.document.createElement);\nlet $bdb11010cef70236$export$d41a04c74483c6ef = new Map();\n// This allows us to clean up the idsUpdaterMap when the id is no longer used.\n// Map is a strong reference, so unused ids wouldn't be cleaned up otherwise.\n// This can happen in suspended components where mount/unmount is not called.\nlet $bdb11010cef70236$var$registry;\nif (typeof FinalizationRegistry !== 'undefined') $bdb11010cef70236$var$registry = new FinalizationRegistry((heldValue)=>{\n $bdb11010cef70236$export$d41a04c74483c6ef.delete(heldValue);\n});\nfunction $bdb11010cef70236$export$f680877a34711e37(defaultId) {\n let [value, setValue] = (0, $eKkEp$useState)(defaultId);\n let nextId = (0, $eKkEp$useRef)(null);\n let res = (0, $eKkEp$useSSRSafeId)(value);\n let cleanupRef = (0, $eKkEp$useRef)(null);\n if ($bdb11010cef70236$var$registry) $bdb11010cef70236$var$registry.register(cleanupRef, res);\n if ($bdb11010cef70236$var$canUseDOM) {\n const cacheIdRef = $bdb11010cef70236$export$d41a04c74483c6ef.get(res);\n if (cacheIdRef && !cacheIdRef.includes(nextId)) cacheIdRef.push(nextId);\n else $bdb11010cef70236$export$d41a04c74483c6ef.set(res, [\n nextId\n ]);\n }\n (0, $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(()=>{\n let r = res;\n return ()=>{\n // In Suspense, the cleanup function may be not called\n // when it is though, also remove it from the finalization registry.\n if ($bdb11010cef70236$var$registry) $bdb11010cef70236$var$registry.unregister(cleanupRef);\n $bdb11010cef70236$export$d41a04c74483c6ef.delete(r);\n };\n }, [\n res\n ]);\n // This cannot cause an infinite loop because the ref is always cleaned up.\n // eslint-disable-next-line\n (0, $eKkEp$useEffect)(()=>{\n let newId = nextId.current;\n if (newId) setValue(newId);\n return ()=>{\n if (newId) nextId.current = null;\n };\n });\n return res;\n}\nfunction $bdb11010cef70236$export$cd8c9cb68f842629(idA, idB) {\n if (idA === idB) return idA;\n let setIdsA = $bdb11010cef70236$export$d41a04c74483c6ef.get(idA);\n if (setIdsA) {\n setIdsA.forEach((ref)=>ref.current = idB);\n return idB;\n }\n let setIdsB = $bdb11010cef70236$export$d41a04c74483c6ef.get(idB);\n if (setIdsB) {\n setIdsB.forEach((ref)=>ref.current = idA);\n return idA;\n }\n return idB;\n}\nfunction $bdb11010cef70236$export$b4cc09c592e8fdb8(depArray = []) {\n let id = $bdb11010cef70236$export$f680877a34711e37();\n let [resolvedId, setResolvedId] = (0, $1dbecbe27a04f9af$export$14d238f342723f25)(id);\n let updateId = (0, $eKkEp$useCallback)(()=>{\n setResolvedId(function*() {\n yield id;\n yield document.getElementById(id) ? id : undefined;\n });\n }, [\n id,\n setResolvedId\n ]);\n (0, $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(updateId, [\n id,\n updateId,\n ...depArray\n ]);\n return resolvedId;\n}\n\n\nexport {$bdb11010cef70236$export$d41a04c74483c6ef as idsUpdaterMap, $bdb11010cef70236$export$f680877a34711e37 as useId, $bdb11010cef70236$export$cd8c9cb68f842629 as mergeIds, $bdb11010cef70236$export$b4cc09c592e8fdb8 as useSlotId};\n//# sourceMappingURL=useId.module.js.map\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 * Calls all functions in the order they were chained with the same arguments.\n */ function $ff5963eb1fccf552$export$e08e3b67e392101e(...callbacks) {\n return (...args)=>{\n for (let callback of callbacks)if (typeof callback === 'function') callback(...args);\n };\n}\n\n\nexport {$ff5963eb1fccf552$export$e08e3b67e392101e as chain};\n//# sourceMappingURL=chain.module.js.map\n","import {chain as $ff5963eb1fccf552$export$e08e3b67e392101e} from \"./chain.mjs\";\nimport {mergeIds as $bdb11010cef70236$export$cd8c9cb68f842629} from \"./useId.mjs\";\nimport $7jXr9$clsx from \"clsx\";\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\n\nfunction $3ef42575df84b30b$export$9d1611c77c2fe928(...args) {\n // Start with a base clone of the first argument. This is a lot faster than starting\n // with an empty object and adding properties as we go.\n let result = {\n ...args[0]\n };\n for(let i = 1; i < args.length; i++){\n let props = args[i];\n for(let key in props){\n let a = result[key];\n let b = props[key];\n // Chain events\n if (typeof a === 'function' && typeof b === 'function' && // This is a lot faster than a regex.\n key[0] === 'o' && key[1] === 'n' && key.charCodeAt(2) >= /* 'A' */ 65 && key.charCodeAt(2) <= /* 'Z' */ 90) result[key] = (0, $ff5963eb1fccf552$export$e08e3b67e392101e)(a, b);\n else if ((key === 'className' || key === 'UNSAFE_className') && typeof a === 'string' && typeof b === 'string') result[key] = (0, $7jXr9$clsx)(a, b);\n else if (key === 'id' && a && b) result.id = (0, $bdb11010cef70236$export$cd8c9cb68f842629)(a, b);\n else result[key] = b !== undefined ? b : a;\n }\n }\n return result;\n}\n\n\nexport {$3ef42575df84b30b$export$9d1611c77c2fe928 as mergeProps};\n//# sourceMappingURL=mergeProps.module.js.map\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 */ // We store a global list of elements that are currently transitioning,\n// mapped to a set of CSS properties that are transitioning for that element.\n// This is necessary rather than a simple count of transitions because of browser\n// bugs, e.g. Chrome sometimes fires both transitionend and transitioncancel rather\n// than one or the other. So we need to track what's actually transitioning so that\n// we can ignore these duplicate events.\nlet $bbed8b41f857bcc0$var$transitionsByElement = new Map();\n// A list of callbacks to call once there are no transitioning elements.\nlet $bbed8b41f857bcc0$var$transitionCallbacks = new Set();\nfunction $bbed8b41f857bcc0$var$setupGlobalEvents() {\n if (typeof window === 'undefined') return;\n function isTransitionEvent(event) {\n return 'propertyName' in event;\n }\n let onTransitionStart = (e)=>{\n if (!isTransitionEvent(e) || !e.target) return;\n // Add the transitioning property to the list for this element.\n let transitions = $bbed8b41f857bcc0$var$transitionsByElement.get(e.target);\n if (!transitions) {\n transitions = new Set();\n $bbed8b41f857bcc0$var$transitionsByElement.set(e.target, transitions);\n // The transitioncancel event must be registered on the element itself, rather than as a global\n // event. This enables us to handle when the node is deleted from the document while it is transitioning.\n // In that case, the cancel event would have nowhere to bubble to so we need to handle it directly.\n e.target.addEventListener('transitioncancel', onTransitionEnd, {\n once: true\n });\n }\n transitions.add(e.propertyName);\n };\n let onTransitionEnd = (e)=>{\n if (!isTransitionEvent(e) || !e.target) return;\n // Remove property from list of transitioning properties.\n let properties = $bbed8b41f857bcc0$var$transitionsByElement.get(e.target);\n if (!properties) return;\n properties.delete(e.propertyName);\n // If empty, remove transitioncancel event, and remove the element from the list of transitioning elements.\n if (properties.size === 0) {\n e.target.removeEventListener('transitioncancel', onTransitionEnd);\n $bbed8b41f857bcc0$var$transitionsByElement.delete(e.target);\n }\n // If no transitioning elements, call all of the queued callbacks.\n if ($bbed8b41f857bcc0$var$transitionsByElement.size === 0) {\n for (let cb of $bbed8b41f857bcc0$var$transitionCallbacks)cb();\n $bbed8b41f857bcc0$var$transitionCallbacks.clear();\n }\n };\n document.body.addEventListener('transitionrun', onTransitionStart);\n document.body.addEventListener('transitionend', onTransitionEnd);\n}\nif (typeof document !== 'undefined') {\n if (document.readyState !== 'loading') $bbed8b41f857bcc0$var$setupGlobalEvents();\n else document.addEventListener('DOMContentLoaded', $bbed8b41f857bcc0$var$setupGlobalEvents);\n}\n/**\n * Cleans up any elements that are no longer in the document.\n * This is necessary because we can't rely on transitionend events to fire\n * for elements that are removed from the document while transitioning.\n */ function $bbed8b41f857bcc0$var$cleanupDetachedElements() {\n for (const [eventTarget] of $bbed8b41f857bcc0$var$transitionsByElement)// Similar to `eventTarget instanceof Element && !eventTarget.isConnected`, but avoids\n // the explicit instanceof check, since it may be different in different contexts.\n if ('isConnected' in eventTarget && !eventTarget.isConnected) $bbed8b41f857bcc0$var$transitionsByElement.delete(eventTarget);\n}\nfunction $bbed8b41f857bcc0$export$24490316f764c430(fn) {\n // Wait one frame to see if an animation starts, e.g. a transition on mount.\n requestAnimationFrame(()=>{\n $bbed8b41f857bcc0$var$cleanupDetachedElements();\n // If no transitions are running, call the function immediately.\n // Otherwise, add it to a list of callbacks to run at the end of the animation.\n if ($bbed8b41f857bcc0$var$transitionsByElement.size === 0) fn();\n else $bbed8b41f857bcc0$var$transitionCallbacks.add(fn);\n });\n}\n\n\nexport {$bbed8b41f857bcc0$export$24490316f764c430 as runAfterTransition};\n//# sourceMappingURL=runAfterTransition.module.js.map\n","import {useLayoutEffect as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c} from \"./useLayoutEffect.mjs\";\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 */ \nfunction $e7801be82b4b2a53$export$4debdb1a3f0fa79e(context, ref) {\n (0, $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(()=>{\n if (context && context.ref && ref) {\n context.ref.current = ref.current;\n return ()=>{\n if (context.ref) context.ref.current = null;\n };\n }\n });\n}\n\n\nexport {$e7801be82b4b2a53$export$4debdb1a3f0fa79e as useSyncRef};\n//# sourceMappingURL=useSyncRef.module.js.map\n","import {getInteractionModality as $507fabe10e71c6fb$export$630ff653c5ada6a9} from \"./useFocusVisible.mjs\";\nimport {getOwnerDocument as $k50bp$getOwnerDocument, getActiveElement as $k50bp$getActiveElement, runAfterTransition as $k50bp$runAfterTransition, focusWithoutScrolling as $k50bp$focusWithoutScrolling} from \"@react-aria/utils\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the 'License');\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\nfunction $3ad3f6e1647bc98d$export$80f3e147d781571c(element) {\n // If the user is interacting with a virtual cursor, e.g. screen reader, then\n // wait until after any animated transitions that are currently occurring on\n // the page before shifting focus. This avoids issues with VoiceOver on iOS\n // causing the page to scroll when moving focus if the element is transitioning\n // from off the screen.\n const ownerDocument = (0, $k50bp$getOwnerDocument)(element);\n const activeElement = (0, $k50bp$getActiveElement)(ownerDocument);\n if ((0, $507fabe10e71c6fb$export$630ff653c5ada6a9)() === 'virtual') {\n let lastFocusedElement = activeElement;\n (0, $k50bp$runAfterTransition)(()=>{\n // If focus did not move and the element is still in the document, focus it.\n if ((0, $k50bp$getActiveElement)(ownerDocument) === lastFocusedElement && element.isConnected) (0, $k50bp$focusWithoutScrolling)(element);\n });\n } else (0, $k50bp$focusWithoutScrolling)(element);\n}\n\n\nexport {$3ad3f6e1647bc98d$export$80f3e147d781571c as focusSafely};\n//# sourceMappingURL=focusSafely.module.js.map\n"],"names":["$bdb11010cef70236$export$d41a04c74483c6ef","$bdb11010cef70236$export$cd8c9cb68f842629","idA","idB","setIdsA","ref","setIdsB","$ff5963eb1fccf552$export$e08e3b67e392101e","callbacks","args","callback","$3ef42575df84b30b$export$9d1611c77c2fe928","result","i","props","key","a","b","$7jXr9$clsx","$bbed8b41f857bcc0$var$transitionsByElement","$bbed8b41f857bcc0$var$transitionCallbacks","$bbed8b41f857bcc0$var$cleanupDetachedElements","eventTarget","$bbed8b41f857bcc0$export$24490316f764c430","fn","$e7801be82b4b2a53$export$4debdb1a3f0fa79e","context","$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c","$3ad3f6e1647bc98d$export$80f3e147d781571c","element","ownerDocument","$k50bp$getOwnerDocument","activeElement","$k50bp$getActiveElement","$507fabe10e71c6fb$export$630ff653c5ada6a9","lastFocusedElement","$k50bp$runAfterTransition","$k50bp$focusWithoutScrolling"],"mappings":";;;;AAqBA,IAAIA,IAA4C,oBAAI,IAAG;AA2CvD,SAASC,EAA0CC,GAAKC,GAAK;AACzD,MAAID,MAAQC,EAAK,QAAOD;AACxB,MAAIE,IAAUJ,EAA0C,IAAIE,CAAG;AAC/D,MAAIE;AACA,WAAAA,EAAQ,QAAQ,CAACC,MAAMA,EAAI,UAAUF,CAAG,GACjCA;AAEX,MAAIG,IAAUN,EAA0C,IAAIG,CAAG;AAC/D,SAAIG,KACAA,EAAQ,QAAQ,CAACD,MAAMA,EAAI,UAAUH,CAAG,GACjCA,KAEJC;AACX;ACjEI,SAASI,KAA6CC,GAAW;AACjE,SAAO,IAAIC,MAAO;AACd,aAASC,KAAYF,EAAU,CAAI,OAAOE,KAAa,cAAYA,EAAS,GAAGD,CAAI;AAAA,EACvF;AACJ;ACCA,SAASE,KAA6CF,GAAM;AAGxD,MAAIG,IAAS;AAAA,IACT,GAAGH,EAAK,CAAC;AAAA,EACjB;AACI,WAAQI,IAAI,GAAGA,IAAIJ,EAAK,QAAQI,KAAI;AAChC,QAAIC,IAAQL,EAAKI,CAAC;AAClB,aAAQE,KAAOD,GAAM;AACjB,UAAIE,IAAIJ,EAAOG,CAAG,GACdE,IAAIH,EAAMC,CAAG;AAEjB,MAAI,OAAOC,KAAM,cAAc,OAAOC,KAAM;AAAA,MAC5CF,EAAI,CAAC,MAAM,OAAOA,EAAI,CAAC,MAAM,OAAOA,EAAI,WAAW,CAAC;AAAA,MAAe,MAAMA,EAAI,WAAW,CAAC;AAAA,MAAe,KAAIH,E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":[0,1,2,3,4,5]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"focusWithoutScrolling-BlyUcXdY.cjs.js","sources":["../../../../node_modules/.pnpm/@react-aria+utils@3.29.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/utils/dist/focusWithoutScrolling.mjs"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ function $7215afc6de606d6b$export$de79e2c695e052f3(element) {\n if ($7215afc6de606d6b$var$supportsPreventScroll()) element.focus({\n preventScroll: true\n });\n else {\n let scrollableElements = $7215afc6de606d6b$var$getScrollableElements(element);\n element.focus();\n $7215afc6de606d6b$var$restoreScrollPosition(scrollableElements);\n }\n}\nlet $7215afc6de606d6b$var$supportsPreventScrollCached = null;\nfunction $7215afc6de606d6b$var$supportsPreventScroll() {\n if ($7215afc6de606d6b$var$supportsPreventScrollCached == null) {\n $7215afc6de606d6b$var$supportsPreventScrollCached = false;\n try {\n let focusElem = document.createElement('div');\n focusElem.focus({\n get preventScroll () {\n $7215afc6de606d6b$var$supportsPreventScrollCached = true;\n return true;\n }\n });\n } catch {\n // Ignore\n }\n }\n return $7215afc6de606d6b$var$supportsPreventScrollCached;\n}\nfunction $7215afc6de606d6b$var$getScrollableElements(element) {\n let parent = element.parentNode;\n let scrollableElements = [];\n let rootScrollingElement = document.scrollingElement || document.documentElement;\n while(parent instanceof HTMLElement && parent !== rootScrollingElement){\n if (parent.offsetHeight < parent.scrollHeight || parent.offsetWidth < parent.scrollWidth) scrollableElements.push({\n element: parent,\n scrollTop: parent.scrollTop,\n scrollLeft: parent.scrollLeft\n });\n parent = parent.parentNode;\n }\n if (rootScrollingElement instanceof HTMLElement) scrollableElements.push({\n element: rootScrollingElement,\n scrollTop: rootScrollingElement.scrollTop,\n scrollLeft: rootScrollingElement.scrollLeft\n });\n return scrollableElements;\n}\nfunction $7215afc6de606d6b$var$restoreScrollPosition(scrollableElements) {\n for (let { element: element, scrollTop: scrollTop, scrollLeft: scrollLeft } of scrollableElements){\n element.scrollTop = scrollTop;\n element.scrollLeft = scrollLeft;\n }\n}\n\n\nexport {$7215afc6de606d6b$export$de79e2c695e052f3 as focusWithoutScrolling};\n//# sourceMappingURL=focusWithoutScrolling.module.js.map\n"],"names":["$7215afc6de606d6b$export$de79e2c695e052f3","element","$7215afc6de606d6b$var$supportsPreventScroll","scrollableElements","$7215afc6de606d6b$var$getScrollableElements","$7215afc6de606d6b$var$restoreScrollPosition","$7215afc6de606d6b$var$supportsPreventScrollCached","parent","rootScrollingElement","scrollTop","scrollLeft"],"mappings":"aAUI,SAASA,EAA0CC,EAAS,CAC5D,GAAIC,EAA2C,EAAID,EAAQ,MAAM,CAC7D,cAAe,EACvB,CAAK,MACI,CACD,IAAIE,EAAqBC,EAA4CH,CAAO,EAC5EA,EAAQ,MAAK,EACbI,EAA4CF,CAAkB,
|
|
1
|
+
{"version":3,"file":"focusWithoutScrolling-BlyUcXdY.cjs.js","sources":["../../../../node_modules/.pnpm/@react-aria+utils@3.29.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/utils/dist/focusWithoutScrolling.mjs"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ function $7215afc6de606d6b$export$de79e2c695e052f3(element) {\n if ($7215afc6de606d6b$var$supportsPreventScroll()) element.focus({\n preventScroll: true\n });\n else {\n let scrollableElements = $7215afc6de606d6b$var$getScrollableElements(element);\n element.focus();\n $7215afc6de606d6b$var$restoreScrollPosition(scrollableElements);\n }\n}\nlet $7215afc6de606d6b$var$supportsPreventScrollCached = null;\nfunction $7215afc6de606d6b$var$supportsPreventScroll() {\n if ($7215afc6de606d6b$var$supportsPreventScrollCached == null) {\n $7215afc6de606d6b$var$supportsPreventScrollCached = false;\n try {\n let focusElem = document.createElement('div');\n focusElem.focus({\n get preventScroll () {\n $7215afc6de606d6b$var$supportsPreventScrollCached = true;\n return true;\n }\n });\n } catch {\n // Ignore\n }\n }\n return $7215afc6de606d6b$var$supportsPreventScrollCached;\n}\nfunction $7215afc6de606d6b$var$getScrollableElements(element) {\n let parent = element.parentNode;\n let scrollableElements = [];\n let rootScrollingElement = document.scrollingElement || document.documentElement;\n while(parent instanceof HTMLElement && parent !== rootScrollingElement){\n if (parent.offsetHeight < parent.scrollHeight || parent.offsetWidth < parent.scrollWidth) scrollableElements.push({\n element: parent,\n scrollTop: parent.scrollTop,\n scrollLeft: parent.scrollLeft\n });\n parent = parent.parentNode;\n }\n if (rootScrollingElement instanceof HTMLElement) scrollableElements.push({\n element: rootScrollingElement,\n scrollTop: rootScrollingElement.scrollTop,\n scrollLeft: rootScrollingElement.scrollLeft\n });\n return scrollableElements;\n}\nfunction $7215afc6de606d6b$var$restoreScrollPosition(scrollableElements) {\n for (let { element: element, scrollTop: scrollTop, scrollLeft: scrollLeft } of scrollableElements){\n element.scrollTop = scrollTop;\n element.scrollLeft = scrollLeft;\n }\n}\n\n\nexport {$7215afc6de606d6b$export$de79e2c695e052f3 as focusWithoutScrolling};\n//# sourceMappingURL=focusWithoutScrolling.module.js.map\n"],"names":["$7215afc6de606d6b$export$de79e2c695e052f3","element","$7215afc6de606d6b$var$supportsPreventScroll","scrollableElements","$7215afc6de606d6b$var$getScrollableElements","$7215afc6de606d6b$var$restoreScrollPosition","$7215afc6de606d6b$var$supportsPreventScrollCached","parent","rootScrollingElement","scrollTop","scrollLeft"],"mappings":"aAUI,SAASA,EAA0CC,EAAS,CAC5D,GAAIC,EAA2C,EAAID,EAAQ,MAAM,CAC7D,cAAe,EACvB,CAAK,MACI,CACD,IAAIE,EAAqBC,EAA4CH,CAAO,EAC5EA,EAAQ,MAAK,EACbI,EAA4CF,CAAkB,CAClE,CACJ,CACA,IAAIG,EAAoD,KACxD,SAASJ,GAA8C,CACnD,GAAII,GAAqD,KAAM,CAC3DA,EAAoD,GACpD,GAAI,CACgB,SAAS,cAAc,KAAK,EAClC,MAAM,CACZ,IAAI,eAAiB,CACjB,OAAAA,EAAoD,GAC7C,EACX,CAChB,CAAa,CACL,MAAS,CAET,CACJ,CACA,OAAOA,CACX,CACA,SAASF,EAA4CH,EAAS,CAC1D,IAAIM,EAASN,EAAQ,WACjBE,EAAqB,CAAA,EACrBK,EAAuB,SAAS,kBAAoB,SAAS,gBACjE,KAAMD,aAAkB,aAAeA,IAAWC,IAC1CD,EAAO,aAAeA,EAAO,cAAgBA,EAAO,YAAcA,EAAO,cAAaJ,EAAmB,KAAK,CAC9G,QAASI,EACT,UAAWA,EAAO,UAClB,WAAYA,EAAO,UAC/B,CAAS,EACDA,EAASA,EAAO,WAEpB,OAAIC,aAAgC,aAAaL,EAAmB,KAAK,CACrE,QAASK,EACT,UAAWA,EAAqB,UAChC,WAAYA,EAAqB,UACzC,CAAK,EACML,CACX,CACA,SAASE,EAA4CF,EAAoB,CACrE,OAAS,CAAE,QAASF,EAAS,UAAWQ,EAAW,WAAYC,CAAU,IAAMP,EAC3EF,EAAQ,UAAYQ,EACpBR,EAAQ,WAAaS,CAE7B","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"focusWithoutScrolling-CDw3JYiq.es.js","sources":["../../../../node_modules/.pnpm/@react-aria+utils@3.29.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/utils/dist/focusWithoutScrolling.mjs"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ function $7215afc6de606d6b$export$de79e2c695e052f3(element) {\n if ($7215afc6de606d6b$var$supportsPreventScroll()) element.focus({\n preventScroll: true\n });\n else {\n let scrollableElements = $7215afc6de606d6b$var$getScrollableElements(element);\n element.focus();\n $7215afc6de606d6b$var$restoreScrollPosition(scrollableElements);\n }\n}\nlet $7215afc6de606d6b$var$supportsPreventScrollCached = null;\nfunction $7215afc6de606d6b$var$supportsPreventScroll() {\n if ($7215afc6de606d6b$var$supportsPreventScrollCached == null) {\n $7215afc6de606d6b$var$supportsPreventScrollCached = false;\n try {\n let focusElem = document.createElement('div');\n focusElem.focus({\n get preventScroll () {\n $7215afc6de606d6b$var$supportsPreventScrollCached = true;\n return true;\n }\n });\n } catch {\n // Ignore\n }\n }\n return $7215afc6de606d6b$var$supportsPreventScrollCached;\n}\nfunction $7215afc6de606d6b$var$getScrollableElements(element) {\n let parent = element.parentNode;\n let scrollableElements = [];\n let rootScrollingElement = document.scrollingElement || document.documentElement;\n while(parent instanceof HTMLElement && parent !== rootScrollingElement){\n if (parent.offsetHeight < parent.scrollHeight || parent.offsetWidth < parent.scrollWidth) scrollableElements.push({\n element: parent,\n scrollTop: parent.scrollTop,\n scrollLeft: parent.scrollLeft\n });\n parent = parent.parentNode;\n }\n if (rootScrollingElement instanceof HTMLElement) scrollableElements.push({\n element: rootScrollingElement,\n scrollTop: rootScrollingElement.scrollTop,\n scrollLeft: rootScrollingElement.scrollLeft\n });\n return scrollableElements;\n}\nfunction $7215afc6de606d6b$var$restoreScrollPosition(scrollableElements) {\n for (let { element: element, scrollTop: scrollTop, scrollLeft: scrollLeft } of scrollableElements){\n element.scrollTop = scrollTop;\n element.scrollLeft = scrollLeft;\n }\n}\n\n\nexport {$7215afc6de606d6b$export$de79e2c695e052f3 as focusWithoutScrolling};\n//# sourceMappingURL=focusWithoutScrolling.module.js.map\n"],"names":["$7215afc6de606d6b$export$de79e2c695e052f3","element","$7215afc6de606d6b$var$supportsPreventScroll","scrollableElements","$7215afc6de606d6b$var$getScrollableElements","$7215afc6de606d6b$var$restoreScrollPosition","$7215afc6de606d6b$var$supportsPreventScrollCached","parent","rootScrollingElement","scrollTop","scrollLeft"],"mappings":"AAUI,SAASA,EAA0CC,GAAS;AAC5D,MAAIC,EAA2C,EAAI,CAAAD,EAAQ,MAAM;AAAA,IAC7D,eAAe;AAAA,EACvB,CAAK;AAAA,OACI;AACD,QAAIE,IAAqBC,EAA4CH,CAAO;AAC5E,IAAAA,EAAQ,MAAK,GACbI,EAA4CF,CAAkB;AAAA,
|
|
1
|
+
{"version":3,"file":"focusWithoutScrolling-CDw3JYiq.es.js","sources":["../../../../node_modules/.pnpm/@react-aria+utils@3.29.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/utils/dist/focusWithoutScrolling.mjs"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ function $7215afc6de606d6b$export$de79e2c695e052f3(element) {\n if ($7215afc6de606d6b$var$supportsPreventScroll()) element.focus({\n preventScroll: true\n });\n else {\n let scrollableElements = $7215afc6de606d6b$var$getScrollableElements(element);\n element.focus();\n $7215afc6de606d6b$var$restoreScrollPosition(scrollableElements);\n }\n}\nlet $7215afc6de606d6b$var$supportsPreventScrollCached = null;\nfunction $7215afc6de606d6b$var$supportsPreventScroll() {\n if ($7215afc6de606d6b$var$supportsPreventScrollCached == null) {\n $7215afc6de606d6b$var$supportsPreventScrollCached = false;\n try {\n let focusElem = document.createElement('div');\n focusElem.focus({\n get preventScroll () {\n $7215afc6de606d6b$var$supportsPreventScrollCached = true;\n return true;\n }\n });\n } catch {\n // Ignore\n }\n }\n return $7215afc6de606d6b$var$supportsPreventScrollCached;\n}\nfunction $7215afc6de606d6b$var$getScrollableElements(element) {\n let parent = element.parentNode;\n let scrollableElements = [];\n let rootScrollingElement = document.scrollingElement || document.documentElement;\n while(parent instanceof HTMLElement && parent !== rootScrollingElement){\n if (parent.offsetHeight < parent.scrollHeight || parent.offsetWidth < parent.scrollWidth) scrollableElements.push({\n element: parent,\n scrollTop: parent.scrollTop,\n scrollLeft: parent.scrollLeft\n });\n parent = parent.parentNode;\n }\n if (rootScrollingElement instanceof HTMLElement) scrollableElements.push({\n element: rootScrollingElement,\n scrollTop: rootScrollingElement.scrollTop,\n scrollLeft: rootScrollingElement.scrollLeft\n });\n return scrollableElements;\n}\nfunction $7215afc6de606d6b$var$restoreScrollPosition(scrollableElements) {\n for (let { element: element, scrollTop: scrollTop, scrollLeft: scrollLeft } of scrollableElements){\n element.scrollTop = scrollTop;\n element.scrollLeft = scrollLeft;\n }\n}\n\n\nexport {$7215afc6de606d6b$export$de79e2c695e052f3 as focusWithoutScrolling};\n//# sourceMappingURL=focusWithoutScrolling.module.js.map\n"],"names":["$7215afc6de606d6b$export$de79e2c695e052f3","element","$7215afc6de606d6b$var$supportsPreventScroll","scrollableElements","$7215afc6de606d6b$var$getScrollableElements","$7215afc6de606d6b$var$restoreScrollPosition","$7215afc6de606d6b$var$supportsPreventScrollCached","parent","rootScrollingElement","scrollTop","scrollLeft"],"mappings":"AAUI,SAASA,EAA0CC,GAAS;AAC5D,MAAIC,EAA2C,EAAI,CAAAD,EAAQ,MAAM;AAAA,IAC7D,eAAe;AAAA,EACvB,CAAK;AAAA,OACI;AACD,QAAIE,IAAqBC,EAA4CH,CAAO;AAC5E,IAAAA,EAAQ,MAAK,GACbI,EAA4CF,CAAkB;AAAA,EAClE;AACJ;AACA,IAAIG,IAAoD;AACxD,SAASJ,IAA8C;AACnD,MAAII,KAAqD,MAAM;AAC3D,IAAAA,IAAoD;AACpD,QAAI;AAEA,MADgB,SAAS,cAAc,KAAK,EAClC,MAAM;AAAA,QACZ,IAAI,gBAAiB;AACjB,iBAAAA,IAAoD,IAC7C;AAAA,QACX;AAAA,MAChB,CAAa;AAAA,IACL,QAAS;AAAA,IAET;AAAA,EACJ;AACA,SAAOA;AACX;AACA,SAASF,EAA4CH,GAAS;AAC1D,MAAIM,IAASN,EAAQ,YACjBE,IAAqB,CAAA,GACrBK,IAAuB,SAAS,oBAAoB,SAAS;AACjE,SAAMD,aAAkB,eAAeA,MAAWC;AAC9C,KAAID,EAAO,eAAeA,EAAO,gBAAgBA,EAAO,cAAcA,EAAO,gBAAaJ,EAAmB,KAAK;AAAA,MAC9G,SAASI;AAAA,MACT,WAAWA,EAAO;AAAA,MAClB,YAAYA,EAAO;AAAA,IAC/B,CAAS,GACDA,IAASA,EAAO;AAEpB,SAAIC,aAAgC,eAAaL,EAAmB,KAAK;AAAA,IACrE,SAASK;AAAA,IACT,WAAWA,EAAqB;AAAA,IAChC,YAAYA,EAAqB;AAAA,EACzC,CAAK,GACML;AACX;AACA,SAASE,EAA4CF,GAAoB;AACrE,WAAS,EAAE,SAASF,GAAS,WAAWQ,GAAW,YAAYC,EAAU,KAAMP;AAC3E,IAAAF,EAAQ,YAAYQ,GACpBR,EAAQ,aAAaS;AAE7B;","x_google_ignoreList":[0]}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as l, 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 { defineSlotRecipe as H, createSlotRecipeContext as y } from "@chakra-ui/react";
|
|
4
|
-
import { e as B,
|
|
4
|
+
import { e as B, $ as L, a as I } from "./Dialog-CFERgD91.es.js";
|
|
5
5
|
import { B as m } from "./box-DD4jYgS7.es.js";
|
|
6
|
-
import { I as M } from "./icon-button-
|
|
6
|
+
import { I as M } from "./icon-button-CPBzhg2C.es.js";
|
|
7
7
|
import { HelpOutline as R, ErrorOutline as T } from "@commercetools/nimbus-icons";
|
|
8
|
-
import { $ as W } from "./useField-
|
|
8
|
+
import { $ as W } from "./useField-BGOhsACE.es.js";
|
|
9
9
|
const a = /* @__PURE__ */ z({
|
|
10
10
|
context: {
|
|
11
11
|
label: null,
|
|
@@ -306,4 +306,4 @@ export {
|
|
|
306
306
|
Z as e,
|
|
307
307
|
q as f
|
|
308
308
|
};
|
|
309
|
-
//# sourceMappingURL=form-field-
|
|
309
|
+
//# sourceMappingURL=form-field-CmiwMrRv.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-field-DwxzvTA8.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\";\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\";\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 inputs in a FormField context\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,EAAA;AACpB,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,IAAA;AAAA,IAEd,OAAO;AAAA,MACL,UAAU;AAAA,IAAA;AAAA,IAEZ,aAAa;AAAA,MACX,UAAU;AAAA,MACV,OAAO;AAAA,MACP,UAAU;AAAA,MACV,YAAY;AAAA,IAAA;AAAA,IAEd,OAAO;AAAA,MACL,UAAU;AAAA,MACV,OAAO;AAAA,MACP,UAAU;AAAA,MACV,YAAY;AAAA,IAAA;AAAA,IAEd,SAAS;AAAA,MACP,q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AAiB;AAAA,MAC3B,GAAGA;AAAA,MACH,OAAOb;AAAA,MACP,gBAAAgC;AAAA,IAAA,EACA;AAAA,EAAA,GACD,CAAChC,GAAUI,CAAU,CAAC,GAElB;AACT,GCfa6B,IAAuB,CAAC;AAAA,EACnC,UAAAjC;AAAA,EACA,GAAGkC;AACL,MAAqC;AACnC,QAAM,EAAE,YAAA9B,EAAA,IAAe0B,EAAWnD,CAAgB;AAElD,SAAAiC,EAAU,MAAM;AACd,IAAAR,EAAW,CAACS,OAAiB;AAAA,MAC3B,GAAGA;AAAA,MACH,aAAab;AAAA,MACb,sBAAAkC;AAAA,IAAA,EACA;AAAA,EAAA,GACD,CAAClC,GAAUI,CAAU,CAAC,GAElB;AACT,GCfa+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,EAAA,GACD,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,EAAA,GACD,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-CmiwMrRv.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\";\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\";\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 inputs in a FormField context\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,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AsC;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,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),i=require("react"),x=require("@chakra-ui/react"),p=require("./Dialog-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),i=require("react"),x=require("@chakra-ui/react"),p=require("./Dialog-Btds5x4W.cjs.js"),u=require("./box-FU6tRPFs.cjs.js"),A=require("./icon-button-QwpNTUZ8.cjs.js"),m=require("@commercetools/nimbus-icons"),H=require("./useField-Doh1_zqa.cjs.js"),s=i.createContext({context:{label:null,description:null,error:null,info:null,input:null},setContext:()=>{}}),y=`
|
|
2
2
|
"label"
|
|
3
3
|
"input"
|
|
4
4
|
"description"
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
"label description"
|
|
9
9
|
"label error"
|
|
10
10
|
`,L=x.defineSlotRecipe({slots:["root","label","input","description","error","popover"],className:"nimbus-ui-form-field",base:{root:{"--grid-gap":"spacing.100",display:"grid",width:"auto"},label:{gridArea:"label",fontWeight:"500",color:"neutral.11",fontSize:"var(--form-field-font-size)",lineHeight:"var(--form-field-line-height)"},input:{gridArea:"input"},description:{gridArea:"description",color:"neutral.11",fontSize:"var(--form-field-font-size)",lineHeight:"var(--form-field-line-height)"},error:{gridArea:"error",color:"critical.11",fontSize:"var(--form-field-font-size)",lineHeight:"var(--form-field-line-height)"},popover:{"--scrollbar-color":"colors.neutral.8","--scrollbar-bg":"colors.neutral.3",bg:"neutral.1",maxWidth:"xl",borderRadius:"200",boxShadow:"6",border:"solid-25",borderColor:"neutral.8",maxHeight:"40svh",overflow:"auto",scrollbarWidth:"thin",scrollbarColor:"var(--scrollbar-color) var(--scrollbar-bg)",focusRing:"outside"}},variants:{size:{md:{root:{"--form-field-font-size":"fontSizes.350","--form-field-line-height":"lineHeights.500"}},sm:{root:{"--form-field-font-size":"fontSizes.300","--form-field-line-height":"lineHeights.450"}}},direction:{column:{root:{gridTemplateAreas:y},input:{mt:"var(--grid-gap)"},description:{mt:"var(--grid-gap)"},error:{mt:"var(--grid-gap)"}},row:{root:{gridTemplateAreas:I,gridTemplateColumns:"auto 1fr",gridColumnGap:"200"},description:{mt:"var(--grid-gap)"},error:{mt:"var(--grid-gap)"}}}},defaultVariants:{direction:"column",size:"md"}}),{withProvider:R,withContext:c}=x.createSlotRecipeContext({recipe:L}),q=R("div","root"),M=c("div","label"),T=c("div","input"),W=c("div","description"),k=c("div","error"),D=c("div","popover"),b=i.forwardRef(({isInvalid:e,isRequired:l,isDisabled:o,isReadOnly:n,children:S,...j},z)=>{const[r,f]=i.useState({label:null,description:null,error:null,info:null,input:null,isInvalid:e,isRequired:l,isDisabled:o,isReadOnly:n}),d={description:r.description,errorMessage:r.error};r.label?d.label=r.label:(d["aria-label"]="empty-label",d["aria-labelledby"]="empty-label");const{labelProps:E,fieldProps:$,descriptionProps:P,errorMessageProps:w}=H.$2baaea4c71418dea$export$294aa081a6c6f55d(d);i.useEffect(()=>{f(a=>({...a,isInvalid:e,isRequired:l,isDisabled:o,isReadOnly:n}))},[e,l,o,n]);const B={...$,isInvalid:e,isRequired:l,isDisabled:o,isReadOnly:n};return t.jsx(s.Provider,{value:{context:r,setContext:f},children:t.jsxs(q,{ref:z,...j,children:[r.label&&t.jsxs(M,{...r.labelSlotProps,children:[t.jsxs("label",{...E,children:[r.label,l&&t.jsx("sup",{"aria-hidden":"true",children:"*"})]}),r.info&&t.jsxs(p.$de32f1b87079253c$export$2e1e1122cf0cba88,{children:[t.jsx(u.Box,{as:"span",display:"inline-block",position:"relative",width:"1ch",height:"1ch",ml:"200",children:t.jsx(u.Box,{as:"span",display:"inline-flex",position:"absolute",top:"50%",right:"50%",transform:"translate(50%, -50%)",children:t.jsx(A.IconButton,{"aria-label":"__MORE INFO",size:"2xs",tone:"info",variant:"link",children:t.jsx(m.HelpOutline,{})})})}),t.jsx(p.$07b14b47974efb58$export$5b6b19405a83ff9d,{children:t.jsx(D,{asChild:!0,children:t.jsx(p.$de32f1b87079253c$export$3ddf2d174ce01153,{children:t.jsx(u.Box,{p:"300",children:r.info})})})})]})]}),r.input&&t.jsx(T,{...r.inputSlotProps,children:i.Children.map(r.input,a=>i.isValidElement(a)?i.cloneElement(a,B):a)}),r.description&&t.jsx(W,{...P,...r.descriptionSlotProps,children:r.description}),e&&r.error&&t.jsxs(k,{...w,...r.errorSlotProps,children:[t.jsx(u.Box,{as:m.ErrorOutline,display:"inline-flex",boxSize:"400",verticalAlign:"text-bottom",mr:"100"}),r.error]}),S]})})}),F=({children:e,...l})=>{const{setContext:o}=i.useContext(s);return i.useEffect(()=>{o(n=>({...n,label:e,labelSlotProps:l}))},[e,o]),null},g=({children:e,...l})=>{const{setContext:o}=i.useContext(s);return i.useEffect(()=>{o(n=>({...n,input:e,inputSlotProps:l}))},[e,o]),null},h=({children:e,...l})=>{const{setContext:o}=i.useContext(s);return i.useEffect(()=>{o(n=>({...n,description:e,descriptionSlotProps:l}))},[e,o]),null},v=({children:e,...l})=>{const{setContext:o}=i.useContext(s);return i.useEffect(()=>{o(n=>({...n,error:e,errorSlotProps:l}))},[e,o]),null},C=({children:e})=>{const{setContext:l}=i.useContext(s);return i.useEffect(()=>{l(o=>({...o,info:e}))},[e,l]),null},N={Root:b,Label:F,Input:g,Description:h,Error:v,InfoBox:C};exports.FormField=N;exports.FormFieldDescription=h;exports.FormFieldError=v;exports.FormFieldInfoBox=C;exports.FormFieldInput=g;exports.FormFieldLabel=F;exports.FormFieldRoot=b;
|
|
11
|
-
//# sourceMappingURL=form-field-
|
|
11
|
+
//# sourceMappingURL=form-field-kTuQQx9G.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-field-DmlJuq9F.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\";\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\";\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 inputs in a FormField context\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":"wSA6BaA,EAAmBC,EAAAA,cAAoC,CAClE,QAAS,CACP,MAAO,KACP,YAAa,KACb,MAAO,KACP,KAAM,KACN,MAAO,IAAA,EAET,WAAY,IAAM,CAAA,CACpB,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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KAAM,CAAE,WAAAI,CAAA,EAAe0B,EAAAA,WAAWnD,CAAgB,EAElDiC,OAAAA,EAAAA,UAAU,IAAM,CACdR,EAAYS,IAAiB,CAC3B,GAAGA,EACH,KAAMb,CAAA,EACN,CAAA,EACD,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-kTuQQx9G.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\";\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\";\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 inputs in a FormField context\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":"wSA6BaA,EAAmBC,EAAAA,cAAoC,CAClE,QAAS,CACP,MAAO,KACP,YAAa,KACb,MAAO,KACP,KAAM,KACN,MAAO,IAAA,EAET,WAAY,IAAM,CAAC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AAA,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,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-DPZ4gynI.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-CPBzhg2C.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-button-
|
|
1
|
+
{"version":3,"file":"icon-button-CPBzhg2C.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 only an icon as child. It is based\n * on the regular `Button` component, but with a few adjustments.\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":";;;;;AAYO,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,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-DhrBalPi.cjs.js"),d=require("./useObjectRef-4v2MxSjQ.cjs.js"),e=t=>{const{children:r,ref:n,...o}=t,s=f.useRef(null),c=d.$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-QwpNTUZ8.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-button-
|
|
1
|
+
{"version":3,"file":"icon-button-QwpNTUZ8.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 only an icon as child. It is based\n * on the regular `Button` component, but with a few adjustments.\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":"qLAYaA,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"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),d=require("./utils-sWqo2nmW.cjs.js"),f=require("./Keyboard-rYf2KxZN.cjs.js"),t=require("@chakra-ui/react"),u=require("react"),a=require("./kbd.recipe-UlkJJrC8.cjs.js"),b=require("./useObjectRef-4v2MxSjQ.cjs.js"),{withContext:$}=t.createRecipeContext({recipe:a.kbdRecipe}),R=$("kbd"),l=({ref:r,slot:o,...c})=>{const s=u.useRef(null),e=b.$df56164dff5785e2$export$4338b53315abf666(t.mergeRefs(s,r)),[n]=d.$64fa3d84918910a7$export$29f1550f4b0d4415(c,e,f.$63df2425e2108aa8$export$744d98a3b8a94e1c);return i.jsx(R,{ref:e,slot:o||void 0,...n})};exports.Kbd=l;
|
|
2
|
+
//# sourceMappingURL=kbd-Bkhw9E6L.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kbd-Bkhw9E6L.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\";\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 */\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, type KbdProps as ChakraKbdProps } from \"@chakra-ui/react\";\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 component\n *\n * Renders a keyboard shortcut or key combination, styled for visual clarity.\n * Typically used to visually represent keyboard keys\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":"sQAuBM,CAAE,YAAAA,CAAA,EAAgBC,EAAAA,oBAAoB,CAAE,OAAQC,EAAAA,UAAW,EAMpDC,EAAcH,EAA2C,KAAK,ECX9DI,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"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { $ as a } from "./utils-CEdpnSRC.es.js";
|
|
3
|
+
import { $ as p } from "./Keyboard-Clnp4zAC.es.js";
|
|
4
|
+
import { createRecipeContext as c, mergeRefs as i } from "@chakra-ui/react";
|
|
5
|
+
import { useRef as $ } from "react";
|
|
6
|
+
import { k as d } from "./kbd.recipe-BONVaPQN.es.js";
|
|
7
|
+
import { $ as n } from "./useObjectRef-CaJ5pgjX.es.js";
|
|
8
|
+
const { withContext: b } = /* @__PURE__ */ c({ recipe: d }), x = /* @__PURE__ */ b("kbd"), h = ({ ref: t, slot: e, ...r }) => {
|
|
9
|
+
const f = $(null), o = n(i(f, t)), [s] = a(r, o, p);
|
|
10
|
+
return /* @__PURE__ */ m(x, { ref: o, slot: e || void 0, ...s });
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
h as K
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=kbd-Gxvodc1U.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kbd-Gxvodc1U.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\";\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 */\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, type KbdProps as ChakraKbdProps } from \"@chakra-ui/react\";\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 component\n *\n * Renders a keyboard shortcut or key combination, styled for visual clarity.\n * Typically used to visually represent keyboard keys\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":";;;;;;;AAuBA,MAAM,EAAE,aAAAA,EAAA,IAAgB,gBAAAC,EAAoB,EAAE,QAAQC,GAAW,GAMpDC,IAAc,gBAAAH,EAA2C,KAAK,GCX9DI,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;"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { defineRecipe as e } from "@chakra-ui/react";
|
|
2
|
+
const i = /* @__PURE__ */ e({
|
|
3
|
+
className: "nimbus-kbd",
|
|
4
|
+
base: {
|
|
5
|
+
display: "inline-flex",
|
|
6
|
+
color: "inherit",
|
|
7
|
+
fontSize: ".875em",
|
|
8
|
+
lineHeight: "1",
|
|
9
|
+
alignItems: "center",
|
|
10
|
+
fontWeight: "500",
|
|
11
|
+
fontFamily: "mono",
|
|
12
|
+
flexShrink: "0",
|
|
13
|
+
whiteSpace: "nowrap",
|
|
14
|
+
userSelect: "none",
|
|
15
|
+
px: "150",
|
|
16
|
+
py: "100",
|
|
17
|
+
borderRadius: "100",
|
|
18
|
+
border: "solid-25",
|
|
19
|
+
borderBottom: "solid-50",
|
|
20
|
+
borderColor: "currentColor"
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
export {
|
|
24
|
+
i as k
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=kbd.recipe-BONVaPQN.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kbd.recipe-BONVaPQN.es.js","sources":["../../src/components/kbd/kbd.recipe.ts"],"sourcesContent":["import { defineRecipe } from \"@chakra-ui/react\";\n\nexport const kbdRecipe = defineRecipe({\n className: \"nimbus-kbd\",\n base: {\n display: \"inline-flex\",\n color: \"inherit\",\n fontSize: \".875em\",\n lineHeight: \"1\",\n alignItems: \"center\",\n fontWeight: \"500\",\n fontFamily: \"mono\",\n flexShrink: \"0\",\n whiteSpace: \"nowrap\",\n userSelect: \"none\",\n px: \"150\",\n py: \"100\",\n borderRadius: \"100\",\n border: \"solid-25\",\n borderBottom: \"solid-50\",\n borderColor: \"currentColor\",\n },\n});\n"],"names":["kbdRecipe","defineRecipe"],"mappings":";AAEO,MAAMA,IAAY,gBAAAC,EAAa;AAAA,EACpC,WAAW;AAAA,EACX,MAAM;AAAA,IACJ,SAAS;AAAA,IACT,OAAO;AAAA,IACP,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,cAAc;AAAA,IACd,QAAQ;AAAA,IACR,cAAc;AAAA,IACd,aAAa;AAAA,EAAA;AAEjB,CAAC;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const e=require("@chakra-ui/react"),i=e.defineRecipe({className:"nimbus-kbd",base:{display:"inline-flex",color:"inherit",fontSize:".875em",lineHeight:"1",alignItems:"center",fontWeight:"500",fontFamily:"mono",flexShrink:"0",whiteSpace:"nowrap",userSelect:"none",px:"150",py:"100",borderRadius:"100",border:"solid-25",borderBottom:"solid-50",borderColor:"currentColor"}});exports.kbdRecipe=i;
|
|
2
|
+
//# sourceMappingURL=kbd.recipe-UlkJJrC8.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kbd.recipe-UlkJJrC8.cjs.js","sources":["../../src/components/kbd/kbd.recipe.ts"],"sourcesContent":["import { defineRecipe } from \"@chakra-ui/react\";\n\nexport const kbdRecipe = defineRecipe({\n className: \"nimbus-kbd\",\n base: {\n display: \"inline-flex\",\n color: \"inherit\",\n fontSize: \".875em\",\n lineHeight: \"1\",\n alignItems: \"center\",\n fontWeight: \"500\",\n fontFamily: \"mono\",\n flexShrink: \"0\",\n whiteSpace: \"nowrap\",\n userSelect: \"none\",\n px: \"150\",\n py: \"100\",\n borderRadius: \"100\",\n border: \"solid-25\",\n borderBottom: \"solid-50\",\n borderColor: \"currentColor\",\n },\n});\n"],"names":["kbdRecipe","defineRecipe"],"mappings":"iDAEaA,EAAYC,EAAAA,aAAa,CACpC,UAAW,aACX,KAAM,CACJ,QAAS,cACT,MAAO,UACP,SAAU,SACV,WAAY,IACZ,WAAY,SACZ,WAAY,MACZ,WAAY,OACZ,WAAY,IACZ,WAAY,SACZ,WAAY,OACZ,GAAI,MACJ,GAAI,MACJ,aAAc,MACd,OAAQ,WACR,aAAc,WACd,YAAa,cAAA,CAEjB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const h=require("react/jsx-runtime"),T=require("react"),P=require("@chakra-ui/react"),L=require("./link.recipe-CG3leGAx.cjs.js"),g=require("./useObjectRef-4v2MxSjQ.cjs.js"),$=require("./mergeProps
|
|
2
|
-
//# sourceMappingURL=link-
|
|
1
|
+
"use strict";const h=require("react/jsx-runtime"),T=require("react"),P=require("@chakra-ui/react"),L=require("./link.recipe-CG3leGAx.cjs.js"),g=require("./useObjectRef-4v2MxSjQ.cjs.js"),$=require("./mergeProps-VvQrkhSh.cjs.js"),v=require("./filterDOMProps-_f3L9QML.cjs.js"),b=require("./openLink-BjodHrGD.cjs.js"),D=require("./usePress-Cqy1fzvV.cjs.js"),y=require("./useFocusable-Bbz310Qf.cjs.js");function E(e,s){let{elementType:n="a",onPress:i,onPressStart:a,onPressEnd:o,onClick:d,isDisabled:t,...l}=e,c={};n!=="a"&&(c={role:"link",tabIndex:t?void 0:0});let{focusableProps:x}=y.$f645667febf57a63$export$4c014de7c8940b4c(e,s),{pressProps:f,isPressed:q}=D.$f6c31cce2adf654f$export$45712eceda6fad21({onPress:i,onPressStart:a,onPressEnd:o,onClick:d,isDisabled:t,ref:s}),R=v.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(l,{labelable:!0}),m=$.$3ef42575df84b30b$export$9d1611c77c2fe928(x,f),p=b.$ea8dcbcb9ea1b556$export$9a302a45f65d0572(),C=b.$ea8dcbcb9ea1b556$export$7e924b3091a3bd18(e);return{isPressed:q,linkProps:$.$3ef42575df84b30b$export$9d1611c77c2fe928(R,C,{...m,...c,"aria-disabled":t||void 0,"aria-current":e["aria-current"],onClick:r=>{var u;(u=f.onClick)===null||u===void 0||u.call(f,r),!p.isNative&&r.currentTarget instanceof HTMLAnchorElement&&r.currentTarget.href&&!r.isDefaultPrevented()&&b.$ea8dcbcb9ea1b556$export$efa8c9099e530235(r.currentTarget,r)&&e.href&&(r.preventDefault(),p.open(r.currentTarget,r,e.href,e.routerOptions))}})}}const{withContext:S}=P.createRecipeContext({recipe:L.linkRecipe}),j=S("a"),k=e=>{const{as:s,asChild:n,children:i,ref:a,...o}=e,d=T.useRef(null),t=g.$df56164dff5785e2$export$4338b53315abf666(P.mergeRefs(d,a)),l=s||(n?"span":"a"),{linkProps:c}=E({...o,elementType:l},t);return h.jsx(j,{...$.$3ef42575df84b30b$export$9d1611c77c2fe928(o,c,{as:s,asChild:n,ref:t}),children:i})};k.displayName="Link";exports.Link=k;
|
|
2
|
+
//# sourceMappingURL=link-DJmmcif9.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link-
|
|
1
|
+
{"version":3,"file":"link-DJmmcif9.cjs.js","sources":["../../../../node_modules/.pnpm/@react-aria+link@3.8.3_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, shouldClientNavigate as $5Ot33$shouldClientNavigate} 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 // If a custom router is provided, prevent default and forward if this link should client navigate.\n if (!router.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && // If props are applied to a router Link component, it may have already prevented default.\n !e.isDefaultPrevented() && (0, $5Ot33$shouldClientNavigate)(e.currentTarget, e) && props.href) {\n e.preventDefault();\n router.open(e.currentTarget, e, props.href, props.routerOptions);\n }\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\";\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 * Features:\n *\n * - allows forwarding refs to the underlying DOM element\n * - accepts all native html 'HTMLAnchorElement' attributes (including aria- & data-attributes)\n * - supports 'variants', 'sizes', etc. configured in the recipe\n * - allows overriding styles by using style-props\n * - supports 'asChild' and 'as' to modify the underlying html-element (polymorphic)\n */\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$shouldClientNavigate","withContext","createRecipeContext","linkRecipe","LinkRoot","Link","as","asChild","children","forwardedRef","rest","localRef","useRef","useObjectRef","mergeRefs","useLink","jsx","mergeProps"],"mappings":"8YAeA,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,WAAY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