@commercetools/nimbus 0.0.0-canary-20251209092151 → 0.0.0-canary-20251209140129

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.
Files changed (320) hide show
  1. package/dist/chunks/{accordion-BacJkt5n.es.js → accordion-C8ClkTfr.es.js} +2 -2
  2. package/dist/chunks/{accordion-BacJkt5n.es.js.map → accordion-C8ClkTfr.es.js.map} +1 -1
  3. package/dist/chunks/{accordion-qzbckNub.cjs.js → accordion-SaPg2S68.cjs.js} +2 -2
  4. package/dist/chunks/{accordion-qzbckNub.cjs.js.map → accordion-SaPg2S68.cjs.js.map} +1 -1
  5. package/dist/chunks/{accordion.content-SFS_lHjk.es.js → accordion.content-BiXxPthJ.es.js} +2 -2
  6. package/dist/chunks/{accordion.content-SFS_lHjk.es.js.map → accordion.content-BiXxPthJ.es.js.map} +1 -1
  7. package/dist/chunks/{accordion.content-Cslx-S6p.cjs.js → accordion.content-DHn9gcMc.cjs.js} +2 -2
  8. package/dist/chunks/{accordion.content-Cslx-S6p.cjs.js.map → accordion.content-DHn9gcMc.cjs.js.map} +1 -1
  9. package/dist/chunks/{alert-CoJ8asOZ.es.js → alert-D872sLYb.es.js} +2 -2
  10. package/dist/chunks/{alert-CoJ8asOZ.es.js.map → alert-D872sLYb.es.js.map} +1 -1
  11. package/dist/chunks/{alert-D6ENEy8f.cjs.js → alert-DkSjUrj4.cjs.js} +2 -2
  12. package/dist/chunks/{alert-D6ENEy8f.cjs.js.map → alert-DkSjUrj4.cjs.js.map} +1 -1
  13. package/dist/chunks/{button-CxL9YuuF.cjs.js → button-D8xDIHNa.cjs.js} +2 -2
  14. package/dist/chunks/{button-CxL9YuuF.cjs.js.map → button-D8xDIHNa.cjs.js.map} +1 -1
  15. package/dist/chunks/{button-DZew_Si4.es.js → button-DE5ekDXw.es.js} +2 -2
  16. package/dist/chunks/{button-DZew_Si4.es.js.map → button-DE5ekDXw.es.js.map} +1 -1
  17. package/dist/chunks/{calendar-CDVjB0zo.es.js → calendar-BFWWIKZX.es.js} +3 -3
  18. package/dist/chunks/{calendar-CDVjB0zo.es.js.map → calendar-BFWWIKZX.es.js.map} +1 -1
  19. package/dist/chunks/{calendar-Dx5LLOml.cjs.js → calendar-wsX-hhtX.cjs.js} +2 -2
  20. package/dist/chunks/{calendar-Dx5LLOml.cjs.js.map → calendar-wsX-hhtX.cjs.js.map} +1 -1
  21. package/dist/chunks/{card-DB6gUcAw.cjs.js → card-CZQe-c3c.cjs.js} +2 -2
  22. package/dist/chunks/{card-DB6gUcAw.cjs.js.map → card-CZQe-c3c.cjs.js.map} +1 -1
  23. package/dist/chunks/{card-ydiSozha.es.js → card-k5usYiV_.es.js} +2 -2
  24. package/dist/chunks/{card-ydiSozha.es.js.map → card-k5usYiV_.es.js.map} +1 -1
  25. package/dist/chunks/{checkbox-DuPKJsWQ.es.js → checkbox-L8PGh-5V.es.js} +2 -2
  26. package/dist/chunks/{checkbox-DuPKJsWQ.es.js.map → checkbox-L8PGh-5V.es.js.map} +1 -1
  27. package/dist/chunks/{checkbox-fwmjQ4Uk.cjs.js → checkbox-paMwliZW.cjs.js} +2 -2
  28. package/dist/chunks/{checkbox-fwmjQ4Uk.cjs.js.map → checkbox-paMwliZW.cjs.js.map} +1 -1
  29. package/dist/chunks/{collapsible-motion-BiF9lLAN.cjs.js → collapsible-motion-D_pxzM3U.cjs.js} +2 -2
  30. package/dist/chunks/{collapsible-motion-BiF9lLAN.cjs.js.map → collapsible-motion-D_pxzM3U.cjs.js.map} +1 -1
  31. package/dist/chunks/{collapsible-motion-B5YFRwO4.es.js → collapsible-motion-vV8hDuIK.es.js} +2 -2
  32. package/dist/chunks/{collapsible-motion-B5YFRwO4.es.js.map → collapsible-motion-vV8hDuIK.es.js.map} +1 -1
  33. package/dist/chunks/{combobox-BobLAXh8.es.js → combobox-CTuXsDSu.es.js} +5 -5
  34. package/dist/chunks/{combobox-BobLAXh8.es.js.map → combobox-CTuXsDSu.es.js.map} +1 -1
  35. package/dist/chunks/{combobox-CEyLEi9S.cjs.js → combobox-CregGHZR.cjs.js} +2 -2
  36. package/dist/chunks/{combobox-CEyLEi9S.cjs.js.map → combobox-CregGHZR.cjs.js.map} +1 -1
  37. package/dist/chunks/{data-table-uvxFiIVK.es.js → data-table-BiXf8O7t.es.js} +12 -12
  38. package/dist/chunks/{data-table-uvxFiIVK.es.js.map → data-table-BiXf8O7t.es.js.map} +1 -1
  39. package/dist/chunks/{data-table-DpRmr71N.cjs.js → data-table-CzdlXtz_.cjs.js} +2 -2
  40. package/dist/chunks/{data-table-DpRmr71N.cjs.js.map → data-table-CzdlXtz_.cjs.js.map} +1 -1
  41. package/dist/chunks/{date-input-C_dX1XXD.es.js → date-input-ByXeJzhN.es.js} +3 -3
  42. package/dist/chunks/{date-input-C_dX1XXD.es.js.map → date-input-ByXeJzhN.es.js.map} +1 -1
  43. package/dist/chunks/{date-input-BDkIVUEJ.cjs.js → date-input-CAiFbGPP.cjs.js} +2 -2
  44. package/dist/chunks/{date-input-BDkIVUEJ.cjs.js.map → date-input-CAiFbGPP.cjs.js.map} +1 -1
  45. package/dist/chunks/{date-picker-DODeu1jH.cjs.js → date-picker-B-3IqWz7.cjs.js} +2 -2
  46. package/dist/chunks/{date-picker-DODeu1jH.cjs.js.map → date-picker-B-3IqWz7.cjs.js.map} +1 -1
  47. package/dist/chunks/{date-picker-Cq8qD5Ff.es.js → date-picker-DKLcinkl.es.js} +7 -7
  48. package/dist/chunks/{date-picker-Cq8qD5Ff.es.js.map → date-picker-DKLcinkl.es.js.map} +1 -1
  49. package/dist/chunks/{date-range-picker-D1gUgq_6.cjs.js → date-range-picker-CmKOXt8b.cjs.js} +2 -2
  50. package/dist/chunks/{date-range-picker-D1gUgq_6.cjs.js.map → date-range-picker-CmKOXt8b.cjs.js.map} +1 -1
  51. package/dist/chunks/{date-range-picker-Bf14iS4A.es.js → date-range-picker-Dj_IrkoK.es.js} +7 -7
  52. package/dist/chunks/{date-range-picker-Bf14iS4A.es.js.map → date-range-picker-Dj_IrkoK.es.js.map} +1 -1
  53. package/dist/chunks/{date-range-picker-field-Bvvmu7oL.cjs.js → date-range-picker-field-BlM-ot7H.cjs.js} +2 -2
  54. package/dist/chunks/{date-range-picker-field-Bvvmu7oL.cjs.js.map → date-range-picker-field-BlM-ot7H.cjs.js.map} +1 -1
  55. package/dist/chunks/{date-range-picker-field-CqG7wwZc.es.js → date-range-picker-field-DfzhdGKg.es.js} +3 -3
  56. package/dist/chunks/{date-range-picker-field-CqG7wwZc.es.js.map → date-range-picker-field-DfzhdGKg.es.js.map} +1 -1
  57. package/dist/chunks/{dialog-CS8h46ov.cjs.js → dialog-BfQtvpoB.cjs.js} +2 -2
  58. package/dist/chunks/{dialog-CS8h46ov.cjs.js.map → dialog-BfQtvpoB.cjs.js.map} +1 -1
  59. package/dist/chunks/{dialog-DUZOjwNj.es.js → dialog-FnZFyOF5.es.js} +3 -3
  60. package/dist/chunks/{dialog-DUZOjwNj.es.js.map → dialog-FnZFyOF5.es.js.map} +1 -1
  61. package/dist/chunks/{draggable-list-CUcHb55R.cjs.js → draggable-list-CqG7B967.cjs.js} +2 -2
  62. package/dist/chunks/{draggable-list-CUcHb55R.cjs.js.map → draggable-list-CqG7B967.cjs.js.map} +1 -1
  63. package/dist/chunks/{draggable-list-LtLBvlhK.es.js → draggable-list-DPwmDxlM.es.js} +5 -5
  64. package/dist/chunks/{draggable-list-LtLBvlhK.es.js.map → draggable-list-DPwmDxlM.es.js.map} +1 -1
  65. package/dist/chunks/{drawer-YCoDb7TU.es.js → drawer-CYNSYHsq.es.js} +75 -67
  66. package/dist/chunks/drawer-CYNSYHsq.es.js.map +1 -0
  67. package/dist/chunks/drawer-DaMvaAF4.cjs.js +2 -0
  68. package/dist/chunks/drawer-DaMvaAF4.cjs.js.map +1 -0
  69. package/dist/chunks/{extract-style-props-CIoUvqFb.es.js → extract-style-props-C0cxza0i.es.js} +2 -2
  70. package/dist/chunks/{extract-style-props-CIoUvqFb.es.js.map → extract-style-props-C0cxza0i.es.js.map} +1 -1
  71. package/dist/chunks/{extract-style-props-DGdckd6P.cjs.js → extract-style-props-CJKpOe-K.cjs.js} +2 -2
  72. package/dist/chunks/{extract-style-props-DGdckd6P.cjs.js.map → extract-style-props-CJKpOe-K.cjs.js.map} +1 -1
  73. package/dist/chunks/{form-field-Df4_JmSU.es.js → form-field-BJNRTn2v.es.js} +2 -2
  74. package/dist/chunks/{form-field-Df4_JmSU.es.js.map → form-field-BJNRTn2v.es.js.map} +1 -1
  75. package/dist/chunks/{form-field-CozKmli4.cjs.js → form-field-BQpCkz-O.cjs.js} +2 -2
  76. package/dist/chunks/{form-field-CozKmli4.cjs.js.map → form-field-BQpCkz-O.cjs.js.map} +1 -1
  77. package/dist/chunks/{icon-button-hZxuTfRy.es.js → icon-button-Cxy00t-e.es.js} +2 -2
  78. package/dist/chunks/{icon-button-hZxuTfRy.es.js.map → icon-button-Cxy00t-e.es.js.map} +1 -1
  79. package/dist/chunks/{icon-button-BPzrehNJ.cjs.js → icon-button-NoJCQW4L.cjs.js} +2 -2
  80. package/dist/chunks/{icon-button-BPzrehNJ.cjs.js.map → icon-button-NoJCQW4L.cjs.js.map} +1 -1
  81. package/dist/chunks/{icon-toggle-button-BtyMh4Ys.es.js → icon-toggle-button-BI2e_BVn.es.js} +2 -2
  82. package/dist/chunks/{icon-toggle-button-BtyMh4Ys.es.js.map → icon-toggle-button-BI2e_BVn.es.js.map} +1 -1
  83. package/dist/chunks/{icon-toggle-button-DzoifEyi.cjs.js → icon-toggle-button-CGNUIj1n.cjs.js} +2 -2
  84. package/dist/chunks/{icon-toggle-button-DzoifEyi.cjs.js.map → icon-toggle-button-CGNUIj1n.cjs.js.map} +1 -1
  85. package/dist/chunks/{index-DdyUbTzB.cjs.js → index-CdkE_Pxe.cjs.js} +2 -2
  86. package/dist/chunks/index-CdkE_Pxe.cjs.js.map +1 -0
  87. package/dist/chunks/{index-CqOsUykV.es.js → index-CkpUPd7J.es.js} +2 -2
  88. package/dist/chunks/index-CkpUPd7J.es.js.map +1 -0
  89. package/dist/chunks/{localized-field-CKzOQS8a.cjs.js → localized-field-BvVr8VRm.cjs.js} +2 -2
  90. package/dist/chunks/{localized-field-CKzOQS8a.cjs.js.map → localized-field-BvVr8VRm.cjs.js.map} +1 -1
  91. package/dist/chunks/{localized-field-BTtMYX2e.es.js → localized-field-hHJcs4Wv.es.js} +8 -8
  92. package/dist/chunks/{localized-field-BTtMYX2e.es.js.map → localized-field-hHJcs4Wv.es.js.map} +1 -1
  93. package/dist/chunks/{menu-9gmr8hQj.es.js → menu-CTF4h3Vz.es.js} +2 -2
  94. package/dist/chunks/{menu-9gmr8hQj.es.js.map → menu-CTF4h3Vz.es.js.map} +1 -1
  95. package/dist/chunks/{menu-DbUVggzL.cjs.js → menu-DRoD3nh2.cjs.js} +2 -2
  96. package/dist/chunks/{menu-DbUVggzL.cjs.js.map → menu-DRoD3nh2.cjs.js.map} +1 -1
  97. package/dist/chunks/{money-input-DiuaCRAq.es.js → money-input-B3oIHFzl.es.js} +5 -5
  98. package/dist/chunks/{money-input-DiuaCRAq.es.js.map → money-input-B3oIHFzl.es.js.map} +1 -1
  99. package/dist/chunks/{money-input-BelTJgi2.cjs.js → money-input-Blt4qA8V.cjs.js} +2 -2
  100. package/dist/chunks/{money-input-BelTJgi2.cjs.js.map → money-input-Blt4qA8V.cjs.js.map} +1 -1
  101. package/dist/chunks/{money-input-field-B8gMfNW7.es.js → money-input-field-CYWSmEP5.es.js} +3 -3
  102. package/dist/chunks/{money-input-field-B8gMfNW7.es.js.map → money-input-field-CYWSmEP5.es.js.map} +1 -1
  103. package/dist/chunks/{money-input-field-tgZ_nN7r.cjs.js → money-input-field-CcGetkx6.cjs.js} +2 -2
  104. package/dist/chunks/{money-input-field-tgZ_nN7r.cjs.js.map → money-input-field-CcGetkx6.cjs.js.map} +1 -1
  105. package/dist/chunks/{multiline-text-input-DJeOCh8z.cjs.js → multiline-text-input-DVZBncNF.cjs.js} +2 -2
  106. package/dist/chunks/{multiline-text-input-DJeOCh8z.cjs.js.map → multiline-text-input-DVZBncNF.cjs.js.map} +1 -1
  107. package/dist/chunks/{multiline-text-input-fb-1IzTw.es.js → multiline-text-input-MRTBEmr7.es.js} +3 -3
  108. package/dist/chunks/{multiline-text-input-fb-1IzTw.es.js.map → multiline-text-input-MRTBEmr7.es.js.map} +1 -1
  109. package/dist/chunks/{multiline-text-input-field-EiZALVr9.cjs.js → multiline-text-input-field-DTcNs3HW.cjs.js} +2 -2
  110. package/dist/chunks/{multiline-text-input-field-EiZALVr9.cjs.js.map → multiline-text-input-field-DTcNs3HW.cjs.js.map} +1 -1
  111. package/dist/chunks/{multiline-text-input-field-DIjx7INz.es.js → multiline-text-input-field-LyItH2n1.es.js} +3 -3
  112. package/dist/chunks/{multiline-text-input-field-DIjx7INz.es.js.map → multiline-text-input-field-LyItH2n1.es.js.map} +1 -1
  113. package/dist/chunks/{nimbus-provider-XoinDagw.es.js → nimbus-provider-DhtFkhIq.es.js} +2 -2
  114. package/dist/chunks/{nimbus-provider-XoinDagw.es.js.map → nimbus-provider-DhtFkhIq.es.js.map} +1 -1
  115. package/dist/chunks/{nimbus-provider-BZ1AjgyS.cjs.js → nimbus-provider-LRBfaOfG.cjs.js} +2 -2
  116. package/dist/chunks/{nimbus-provider-BZ1AjgyS.cjs.js.map → nimbus-provider-LRBfaOfG.cjs.js.map} +1 -1
  117. package/dist/chunks/{number-input-DKGtPqlr.es.js → number-input-DEBuDBP9.es.js} +3 -3
  118. package/dist/chunks/{number-input-DKGtPqlr.es.js.map → number-input-DEBuDBP9.es.js.map} +1 -1
  119. package/dist/chunks/{number-input-field-DnIN5wjh.es.js → number-input-field-BZhFJiZ-.es.js} +3 -3
  120. package/dist/chunks/{number-input-field-DnIN5wjh.es.js.map → number-input-field-BZhFJiZ-.es.js.map} +1 -1
  121. package/dist/chunks/{number-input-field-l6_xjbpB.cjs.js → number-input-field-BdhS6fPQ.cjs.js} +2 -2
  122. package/dist/chunks/{number-input-field-l6_xjbpB.cjs.js.map → number-input-field-BdhS6fPQ.cjs.js.map} +1 -1
  123. package/dist/chunks/{number-input-BY8SeNuT.cjs.js → number-input-iDbAvELp.cjs.js} +2 -2
  124. package/dist/chunks/{number-input-BY8SeNuT.cjs.js.map → number-input-iDbAvELp.cjs.js.map} +1 -1
  125. package/dist/chunks/{pagination-DAPyY6Zk.es.js → pagination-Djt1QKYE.es.js} +4 -4
  126. package/dist/chunks/{pagination-DAPyY6Zk.es.js.map → pagination-Djt1QKYE.es.js.map} +1 -1
  127. package/dist/chunks/{pagination-Cks7-saP.cjs.js → pagination-POz81AGu.cjs.js} +2 -2
  128. package/dist/chunks/{pagination-Cks7-saP.cjs.js.map → pagination-POz81AGu.cjs.js.map} +1 -1
  129. package/dist/chunks/{password-input-BXrS2-3k.es.js → password-input-Df6Vlh0A.es.js} +3 -3
  130. package/dist/chunks/{password-input-BXrS2-3k.es.js.map → password-input-Df6Vlh0A.es.js.map} +1 -1
  131. package/dist/chunks/{password-input-DG0_r6H_.cjs.js → password-input-DtPb6jPc.cjs.js} +2 -2
  132. package/dist/chunks/{password-input-DG0_r6H_.cjs.js.map → password-input-DtPb6jPc.cjs.js.map} +1 -1
  133. package/dist/chunks/{password-input-field-DMQAWO16.cjs.js → password-input-field-QJvSgh19.cjs.js} +2 -2
  134. package/dist/chunks/{password-input-field-DMQAWO16.cjs.js.map → password-input-field-QJvSgh19.cjs.js.map} +1 -1
  135. package/dist/chunks/{password-input-field-BIH25kaL.es.js → password-input-field-sqj_M17_.es.js} +3 -3
  136. package/dist/chunks/{password-input-field-BIH25kaL.es.js.map → password-input-field-sqj_M17_.es.js.map} +1 -1
  137. package/dist/chunks/{progress-bar-DYbU-4Vi.es.js → progress-bar-BjfuHBqk.es.js} +2 -2
  138. package/dist/chunks/{progress-bar-DYbU-4Vi.es.js.map → progress-bar-BjfuHBqk.es.js.map} +1 -1
  139. package/dist/chunks/{progress-bar-DG9JB9bR.cjs.js → progress-bar-CdFlaKms.cjs.js} +2 -2
  140. package/dist/chunks/{progress-bar-DG9JB9bR.cjs.js.map → progress-bar-CdFlaKms.cjs.js.map} +1 -1
  141. package/dist/chunks/{radio-input-tsryyQ63.es.js → radio-input-bjBlfEAF.es.js} +3 -3
  142. package/dist/chunks/{radio-input-tsryyQ63.es.js.map → radio-input-bjBlfEAF.es.js.map} +1 -1
  143. package/dist/chunks/{radio-input-CA4Y8LF8.cjs.js → radio-input-hAXoO5md.cjs.js} +2 -2
  144. package/dist/chunks/{radio-input-CA4Y8LF8.cjs.js.map → radio-input-hAXoO5md.cjs.js.map} +1 -1
  145. package/dist/chunks/{range-calendar-CCKqVOdF.es.js → range-calendar-BV-625iN.es.js} +4 -4
  146. package/dist/chunks/{range-calendar-CCKqVOdF.es.js.map → range-calendar-BV-625iN.es.js.map} +1 -1
  147. package/dist/chunks/{range-calendar-CFfa_h1A.cjs.js → range-calendar-wVdkm8E6.cjs.js} +2 -2
  148. package/dist/chunks/{range-calendar-CFfa_h1A.cjs.js.map → range-calendar-wVdkm8E6.cjs.js.map} +1 -1
  149. package/dist/chunks/{rich-text-input-CoIBknUh.es.js → rich-text-input-BlKYGEED.es.js} +8 -8
  150. package/dist/chunks/{rich-text-input-CoIBknUh.es.js.map → rich-text-input-BlKYGEED.es.js.map} +1 -1
  151. package/dist/chunks/{rich-text-input-D7zyqfNG.cjs.js → rich-text-input-CUNdbO7C.cjs.js} +2 -2
  152. package/dist/chunks/{rich-text-input-D7zyqfNG.cjs.js.map → rich-text-input-CUNdbO7C.cjs.js.map} +1 -1
  153. package/dist/chunks/{scoped-search-input-B7lz2Odg.cjs.js → scoped-search-input-DoRNuT6_.cjs.js} +2 -2
  154. package/dist/chunks/{scoped-search-input-B7lz2Odg.cjs.js.map → scoped-search-input-DoRNuT6_.cjs.js.map} +1 -1
  155. package/dist/chunks/{scoped-search-input-DM_clkPu.es.js → scoped-search-input-gFAMz6iP.es.js} +5 -5
  156. package/dist/chunks/{scoped-search-input-DM_clkPu.es.js.map → scoped-search-input-gFAMz6iP.es.js.map} +1 -1
  157. package/dist/chunks/{search-input-CaJyfxW-.es.js → search-input-Brle6NM0.es.js} +4 -4
  158. package/dist/chunks/{search-input-CaJyfxW-.es.js.map → search-input-Brle6NM0.es.js.map} +1 -1
  159. package/dist/chunks/{search-input-Cq5nPtbF.cjs.js → search-input-DKRM53L9.cjs.js} +2 -2
  160. package/dist/chunks/{search-input-Cq5nPtbF.cjs.js.map → search-input-DKRM53L9.cjs.js.map} +1 -1
  161. package/dist/chunks/{search-input-field-4wVwDFiQ.cjs.js → search-input-field-BggDXzdr.cjs.js} +2 -2
  162. package/dist/chunks/{search-input-field-4wVwDFiQ.cjs.js.map → search-input-field-BggDXzdr.cjs.js.map} +1 -1
  163. package/dist/chunks/{search-input-field-zzVNsLn3.es.js → search-input-field-CzKauc6b.es.js} +3 -3
  164. package/dist/chunks/{search-input-field-zzVNsLn3.es.js.map → search-input-field-CzKauc6b.es.js.map} +1 -1
  165. package/dist/chunks/{select-C4gMn8gq.es.js → select-cznupji0.es.js} +4 -4
  166. package/dist/chunks/{select-C4gMn8gq.es.js.map → select-cznupji0.es.js.map} +1 -1
  167. package/dist/chunks/{select-AaF9VDYS.cjs.js → select-oP5nUwuh.cjs.js} +2 -2
  168. package/dist/chunks/{select-AaF9VDYS.cjs.js.map → select-oP5nUwuh.cjs.js.map} +1 -1
  169. package/dist/chunks/{separator-BadgCkrO.cjs.js → separator-Cgl_-ADA.cjs.js} +2 -2
  170. package/dist/chunks/{separator-BadgCkrO.cjs.js.map → separator-Cgl_-ADA.cjs.js.map} +1 -1
  171. package/dist/chunks/{separator-Bc2_grIr.es.js → separator-lCgkDAYf.es.js} +3 -3
  172. package/dist/chunks/{separator-Bc2_grIr.es.js.map → separator-lCgkDAYf.es.js.map} +1 -1
  173. package/dist/chunks/{split-button-DT1Anaq1.es.js → split-button-BYxBqJNh.es.js} +4 -4
  174. package/dist/chunks/{split-button-DT1Anaq1.es.js.map → split-button-BYxBqJNh.es.js.map} +1 -1
  175. package/dist/chunks/{split-button-CbGHEymu.cjs.js → split-button-DXz5Hr8K.cjs.js} +2 -2
  176. package/dist/chunks/{split-button-CbGHEymu.cjs.js.map → split-button-DXz5Hr8K.cjs.js.map} +1 -1
  177. package/dist/chunks/{switch-BxR5TD9Q.cjs.js → switch-BHAfehdQ.cjs.js} +2 -2
  178. package/dist/chunks/{switch-BxR5TD9Q.cjs.js.map → switch-BHAfehdQ.cjs.js.map} +1 -1
  179. package/dist/chunks/{switch-1tLtDt7M.es.js → switch-CgRmJQ4N.es.js} +3 -3
  180. package/dist/chunks/{switch-1tLtDt7M.es.js.map → switch-CgRmJQ4N.es.js.map} +1 -1
  181. package/dist/chunks/{tabs-C4EfvdVt.cjs.js → tabs-CeBBNEwf.cjs.js} +2 -2
  182. package/dist/chunks/{tabs-C4EfvdVt.cjs.js.map → tabs-CeBBNEwf.cjs.js.map} +1 -1
  183. package/dist/chunks/{tabs-CgoUJCIx.es.js → tabs-CiwSiH9D.es.js} +2 -2
  184. package/dist/chunks/{tabs-CgoUJCIx.es.js.map → tabs-CiwSiH9D.es.js.map} +1 -1
  185. package/dist/chunks/{tag-group-Bu4IPJY2.cjs.js → tag-group-CxMmlnCJ.cjs.js} +2 -2
  186. package/dist/chunks/{tag-group-Bu4IPJY2.cjs.js.map → tag-group-CxMmlnCJ.cjs.js.map} +1 -1
  187. package/dist/chunks/{tag-group-DauMcIZX.es.js → tag-group-DIExYHPG.es.js} +2 -2
  188. package/dist/chunks/{tag-group-DauMcIZX.es.js.map → tag-group-DIExYHPG.es.js.map} +1 -1
  189. package/dist/chunks/{text-input-YkL8bx31.cjs.js → text-input-CFI07MPQ.cjs.js} +2 -2
  190. package/dist/chunks/{text-input-YkL8bx31.cjs.js.map → text-input-CFI07MPQ.cjs.js.map} +1 -1
  191. package/dist/chunks/{text-input-BpdFm4J-.es.js → text-input-DCYNl2yf.es.js} +3 -3
  192. package/dist/chunks/{text-input-BpdFm4J-.es.js.map → text-input-DCYNl2yf.es.js.map} +1 -1
  193. package/dist/chunks/{text-input-field-CPLVnqlr.cjs.js → text-input-field-BNp4trMM.cjs.js} +2 -2
  194. package/dist/chunks/{text-input-field-CPLVnqlr.cjs.js.map → text-input-field-BNp4trMM.cjs.js.map} +1 -1
  195. package/dist/chunks/{text-input-field-B0WhjD0U.es.js → text-input-field-BV0HfQjS.es.js} +3 -3
  196. package/dist/chunks/{text-input-field-B0WhjD0U.es.js.map → text-input-field-BV0HfQjS.es.js.map} +1 -1
  197. package/dist/chunks/{time-input-m8zeR_8L.cjs.js → time-input-C-WrcClD.cjs.js} +2 -2
  198. package/dist/chunks/{time-input-m8zeR_8L.cjs.js.map → time-input-C-WrcClD.cjs.js.map} +1 -1
  199. package/dist/chunks/{time-input-DMyhDH5j.es.js → time-input-C0IeIw98.es.js} +3 -3
  200. package/dist/chunks/{time-input-DMyhDH5j.es.js.map → time-input-C0IeIw98.es.js.map} +1 -1
  201. package/dist/chunks/{toggle-button-B2uXtvzj.es.js → toggle-button-Dn2Xy2F_.es.js} +3 -3
  202. package/dist/chunks/{toggle-button-B2uXtvzj.es.js.map → toggle-button-Dn2Xy2F_.es.js.map} +1 -1
  203. package/dist/chunks/{toggle-button-CHZm868U.cjs.js → toggle-button-KhatG-jQ.cjs.js} +2 -2
  204. package/dist/chunks/{toggle-button-CHZm868U.cjs.js.map → toggle-button-KhatG-jQ.cjs.js.map} +1 -1
  205. package/dist/chunks/{toolbar-BAETJxml.cjs.js → toolbar-BUTAJJnD.cjs.js} +2 -2
  206. package/dist/chunks/{toolbar-BAETJxml.cjs.js.map → toolbar-BUTAJJnD.cjs.js.map} +1 -1
  207. package/dist/chunks/{toolbar-BnS73QeG.es.js → toolbar-DGR1LKI6.es.js} +3 -3
  208. package/dist/chunks/{toolbar-BnS73QeG.es.js.map → toolbar-DGR1LKI6.es.js.map} +1 -1
  209. package/dist/components/accordion.cjs +1 -1
  210. package/dist/components/accordion.es.js +2 -2
  211. package/dist/components/alert.cjs +1 -1
  212. package/dist/components/alert.es.js +1 -1
  213. package/dist/components/button.cjs +1 -1
  214. package/dist/components/button.es.js +1 -1
  215. package/dist/components/calendar.cjs +1 -1
  216. package/dist/components/calendar.es.js +1 -1
  217. package/dist/components/card.cjs +1 -1
  218. package/dist/components/card.es.js +1 -1
  219. package/dist/components/checkbox.cjs +1 -1
  220. package/dist/components/checkbox.es.js +1 -1
  221. package/dist/components/collapsible-motion.cjs +1 -1
  222. package/dist/components/collapsible-motion.es.js +1 -1
  223. package/dist/components/combobox.cjs +1 -1
  224. package/dist/components/combobox.es.js +1 -1
  225. package/dist/components/components.cjs +1 -1
  226. package/dist/components/components.es.js +1 -1
  227. package/dist/components/data-table.cjs +1 -1
  228. package/dist/components/data-table.es.js +1 -1
  229. package/dist/components/date-input.cjs +1 -1
  230. package/dist/components/date-input.es.js +1 -1
  231. package/dist/components/date-picker.cjs +1 -1
  232. package/dist/components/date-picker.es.js +1 -1
  233. package/dist/components/date-range-picker-field.cjs +1 -1
  234. package/dist/components/date-range-picker-field.es.js +1 -1
  235. package/dist/components/date-range-picker.cjs +1 -1
  236. package/dist/components/date-range-picker.es.js +1 -1
  237. package/dist/components/dialog.cjs +1 -1
  238. package/dist/components/dialog.es.js +1 -1
  239. package/dist/components/draggable-list.cjs +1 -1
  240. package/dist/components/draggable-list.es.js +1 -1
  241. package/dist/components/drawer/components/drawer.context.d.ts +8 -2
  242. package/dist/components/drawer/drawer.types.d.ts +1 -1
  243. package/dist/components/drawer.cjs +1 -1
  244. package/dist/components/drawer.es.js +1 -1
  245. package/dist/components/fields.cjs +1 -1
  246. package/dist/components/fields.es.js +7 -7
  247. package/dist/components/form-field.cjs +1 -1
  248. package/dist/components/form-field.es.js +1 -1
  249. package/dist/components/icon-button.cjs +1 -1
  250. package/dist/components/icon-button.es.js +1 -1
  251. package/dist/components/icon-toggle-button.cjs +1 -1
  252. package/dist/components/icon-toggle-button.es.js +1 -1
  253. package/dist/components/localized-field.cjs +1 -1
  254. package/dist/components/localized-field.es.js +1 -1
  255. package/dist/components/money-input-field.cjs +1 -1
  256. package/dist/components/money-input-field.es.js +1 -1
  257. package/dist/components/money-input.cjs +1 -1
  258. package/dist/components/money-input.es.js +1 -1
  259. package/dist/components/multiline-text-input-field.cjs +1 -1
  260. package/dist/components/multiline-text-input-field.es.js +1 -1
  261. package/dist/components/multiline-text-input.cjs +1 -1
  262. package/dist/components/multiline-text-input.es.js +1 -1
  263. package/dist/components/nimbus-provider.cjs +1 -1
  264. package/dist/components/nimbus-provider.es.js +1 -1
  265. package/dist/components/number-input-field.cjs +1 -1
  266. package/dist/components/number-input-field.es.js +1 -1
  267. package/dist/components/number-input.cjs +1 -1
  268. package/dist/components/number-input.es.js +1 -1
  269. package/dist/components/pagination.cjs +1 -1
  270. package/dist/components/pagination.es.js +1 -1
  271. package/dist/components/password-input-field.cjs +1 -1
  272. package/dist/components/password-input-field.es.js +1 -1
  273. package/dist/components/password-input.cjs +1 -1
  274. package/dist/components/password-input.es.js +1 -1
  275. package/dist/components/patterns.cjs +1 -1
  276. package/dist/components/patterns.es.js +7 -7
  277. package/dist/components/progress-bar.cjs +1 -1
  278. package/dist/components/progress-bar.es.js +1 -1
  279. package/dist/components/radio-input.cjs +1 -1
  280. package/dist/components/radio-input.es.js +1 -1
  281. package/dist/components/range-calendar.cjs +1 -1
  282. package/dist/components/range-calendar.es.js +1 -1
  283. package/dist/components/rich-text-input.cjs +1 -1
  284. package/dist/components/rich-text-input.es.js +1 -1
  285. package/dist/components/scoped-search-input.cjs +1 -1
  286. package/dist/components/scoped-search-input.es.js +1 -1
  287. package/dist/components/search-input-field.cjs +1 -1
  288. package/dist/components/search-input-field.es.js +1 -1
  289. package/dist/components/search-input.cjs +1 -1
  290. package/dist/components/search-input.es.js +1 -1
  291. package/dist/components/select.cjs +1 -1
  292. package/dist/components/select.es.js +1 -1
  293. package/dist/components/separator.cjs +1 -1
  294. package/dist/components/separator.es.js +1 -1
  295. package/dist/components/split-button.cjs +1 -1
  296. package/dist/components/split-button.es.js +1 -1
  297. package/dist/components/switch.cjs +1 -1
  298. package/dist/components/switch.es.js +1 -1
  299. package/dist/components/tabs.cjs +1 -1
  300. package/dist/components/tabs.es.js +1 -1
  301. package/dist/components/tag-group.cjs +1 -1
  302. package/dist/components/tag-group.es.js +1 -1
  303. package/dist/components/text-input-field.cjs +1 -1
  304. package/dist/components/text-input-field.es.js +1 -1
  305. package/dist/components/text-input.cjs +1 -1
  306. package/dist/components/text-input.es.js +1 -1
  307. package/dist/components/time-input.cjs +1 -1
  308. package/dist/components/time-input.es.js +1 -1
  309. package/dist/components/toggle-button.cjs +1 -1
  310. package/dist/components/toggle-button.es.js +1 -1
  311. package/dist/components/toolbar.cjs +1 -1
  312. package/dist/components/toolbar.es.js +1 -1
  313. package/dist/index.cjs +1 -1
  314. package/dist/index.es.js +53 -53
  315. package/package.json +5 -5
  316. package/dist/chunks/drawer-DZt4nA9C.cjs.js +0 -2
  317. package/dist/chunks/drawer-DZt4nA9C.cjs.js.map +0 -1
  318. package/dist/chunks/drawer-YCoDb7TU.es.js.map +0 -1
  319. package/dist/chunks/index-CqOsUykV.es.js.map +0 -1
  320. package/dist/chunks/index-DdyUbTzB.cjs.js.map +0 -1
@@ -1,2 +1,2 @@
1
- "use strict";const t=require("react"),l=require("react/jsx-runtime"),E=require("@chakra-ui/react"),x=require("./Dialog-flHBRP1h.cjs.js"),P=require("@commercetools/nimbus-icons"),k=require("./useObjectRef-4v2MxSjQ.cjs.js"),w=require("./useField-lK6K_h1G.cjs.js"),F=require("./box-CWni3A32.cjs.js"),z=require("./icon-button-BPzrehNJ.cjs.js"),u=t.createContext({context:{label:null,description:null,error:null,info:null,input:null},setContext:()=>{}}),{withProvider:A,withContext:p}=E.createSlotRecipeContext({key:"formField"}),D=A("div","root"),V=p("div","label"),_=p("div","input"),H=p("div","description"),O=p("div","error"),G=p("div","popover"),f=function({ref:i,id:o,isInvalid:r,isRequired:c,isDisabled:a,isReadOnly:d,children:v,...g}){const B=t.useRef(null),y=k.$df56164dff5785e2$export$4338b53315abf666(E.mergeRefs(B,i)),[e,S]=t.useState({label:null,description:null,error:null,info:null,input:null,isInvalid:r,isRequired:c,isDisabled:a,isReadOnly:d}),I=t.useMemo(()=>{const s={id:o,description:e.description,errorMessage:e.error};return e.label?s.label=e.label:(s["aria-label"]="empty-label",s["aria-labelledby"]="empty-label"),s},[o,e.description,e.error,e.label]),{labelProps:N,fieldProps:$,descriptionProps:M,errorMessageProps:L}=w.$2baaea4c71418dea$export$294aa081a6c6f55d(I);t.useEffect(()=>{S(s=>({...s,isInvalid:r,isRequired:c,isDisabled:a,isReadOnly:d}))},[r,c,a,d]);const R=t.useMemo(()=>({...$,isInvalid:r,isRequired:c,isDisabled:a,isReadOnly:d}),[$,r,c,a,d]),q=t.useMemo(()=>({context:e,setContext:S}),[e]);return l.jsx(u.Provider,{value:q,children:l.jsxs(D,{ref:y,...g,children:[e.label&&l.jsxs(V,{...e.labelSlotProps,children:[l.jsxs("label",{...N,children:[e.label,c&&l.jsx("sup",{"aria-hidden":"true",children:"*"})]}),e.info&&l.jsxs(x.$de32f1b87079253c$export$2e1e1122cf0cba88,{children:[l.jsx(F.Box,{as:"span",display:"inline-block",position:"relative",width:"1ch",height:"1ch",ml:"200",children:l.jsx(F.Box,{as:"span",display:"inline-flex",position:"absolute",top:"50%",right:"50%",transform:"translate(50%, -50%)",children:l.jsx(z.IconButton,{"aria-label":"__MORE INFO",size:"2xs",colorPalette:"info",variant:"link",children:l.jsx(P.HelpOutline,{})})})}),l.jsx(x.$07b14b47974efb58$export$5b6b19405a83ff9d,{children:l.jsx(G,{asChild:!0,children:l.jsx(x.$de32f1b87079253c$export$3ddf2d174ce01153,{children:l.jsx(F.Box,{p:"300",children:e.info})})})})]})]}),e.input&&l.jsx(_,{...e.inputSlotProps,children:t.Children.map(e.input,s=>t.isValidElement(s)?t.cloneElement(s,R):s)}),e.description&&l.jsx(H,{...M,...e.descriptionSlotProps,children:e.description}),r&&e.error&&l.jsxs(O,{...L,...e.errorSlotProps,children:[l.jsx(F.Box,{as:P.ErrorOutline,display:"inline-flex",boxSize:"400",verticalAlign:"text-bottom",mr:"100",alignSelf:"center"}),e.error]}),v]})})};f.displayName="FormField.Root";const m=({children:n,...i})=>{const{setContext:o}=t.useContext(u);return t.useEffect(()=>(o(r=>({...r,label:n,labelSlotProps:i})),()=>{o(r=>({...r,label:null,labelSlotProps:void 0}))}),[n,o]),null};m.displayName="FormField.Label";const b=({children:n,...i})=>{const{setContext:o}=t.useContext(u);return t.useEffect(()=>{o(r=>({...r,input:n,inputSlotProps:i}))},[n,o]),null};b.displayName="FormField.Input";const h=({children:n,...i})=>{const{setContext:o}=t.useContext(u);return t.useEffect(()=>(o(r=>({...r,description:n,descriptionSlotProps:i})),()=>{o(r=>({...r,description:null,descriptionSlotProps:void 0}))}),[n,o]),null};h.displayName="FormField.Description";const j=({children:n,...i})=>{const{setContext:o}=t.useContext(u);return t.useEffect(()=>(o(r=>({...r,error:n,errorSlotProps:i})),()=>{o(r=>({...r,error:null,errorSlotProps:void 0}))}),[n,o]),null};j.displayName="FormField.Error";const C=({children:n})=>{const{setContext:i}=t.useContext(u);return t.useEffect(()=>(i(o=>({...o,info:n})),()=>{i(o=>({...o,info:null}))}),[n,i]),null};C.displayName="FormField.InfoBox";const J={Root:f,Label:m,Input:b,Description:h,Error:j,InfoBox:C};exports.FormField=J;exports.FormFieldDescription=h;exports.FormFieldError=j;exports.FormFieldInfoBox=C;exports.FormFieldInput=b;exports.FormFieldLabel=m;exports.FormFieldRoot=f;
2
- //# sourceMappingURL=form-field-CozKmli4.cjs.js.map
1
+ "use strict";const t=require("react"),l=require("react/jsx-runtime"),E=require("@chakra-ui/react"),x=require("./Dialog-flHBRP1h.cjs.js"),P=require("@commercetools/nimbus-icons"),k=require("./useObjectRef-4v2MxSjQ.cjs.js"),w=require("./useField-lK6K_h1G.cjs.js"),F=require("./box-CWni3A32.cjs.js"),z=require("./icon-button-NoJCQW4L.cjs.js"),u=t.createContext({context:{label:null,description:null,error:null,info:null,input:null},setContext:()=>{}}),{withProvider:A,withContext:p}=E.createSlotRecipeContext({key:"formField"}),D=A("div","root"),V=p("div","label"),_=p("div","input"),H=p("div","description"),O=p("div","error"),G=p("div","popover"),f=function({ref:i,id:o,isInvalid:r,isRequired:c,isDisabled:a,isReadOnly:d,children:v,...g}){const B=t.useRef(null),y=k.$df56164dff5785e2$export$4338b53315abf666(E.mergeRefs(B,i)),[e,S]=t.useState({label:null,description:null,error:null,info:null,input:null,isInvalid:r,isRequired:c,isDisabled:a,isReadOnly:d}),I=t.useMemo(()=>{const s={id:o,description:e.description,errorMessage:e.error};return e.label?s.label=e.label:(s["aria-label"]="empty-label",s["aria-labelledby"]="empty-label"),s},[o,e.description,e.error,e.label]),{labelProps:N,fieldProps:$,descriptionProps:M,errorMessageProps:L}=w.$2baaea4c71418dea$export$294aa081a6c6f55d(I);t.useEffect(()=>{S(s=>({...s,isInvalid:r,isRequired:c,isDisabled:a,isReadOnly:d}))},[r,c,a,d]);const R=t.useMemo(()=>({...$,isInvalid:r,isRequired:c,isDisabled:a,isReadOnly:d}),[$,r,c,a,d]),q=t.useMemo(()=>({context:e,setContext:S}),[e]);return l.jsx(u.Provider,{value:q,children:l.jsxs(D,{ref:y,...g,children:[e.label&&l.jsxs(V,{...e.labelSlotProps,children:[l.jsxs("label",{...N,children:[e.label,c&&l.jsx("sup",{"aria-hidden":"true",children:"*"})]}),e.info&&l.jsxs(x.$de32f1b87079253c$export$2e1e1122cf0cba88,{children:[l.jsx(F.Box,{as:"span",display:"inline-block",position:"relative",width:"1ch",height:"1ch",ml:"200",children:l.jsx(F.Box,{as:"span",display:"inline-flex",position:"absolute",top:"50%",right:"50%",transform:"translate(50%, -50%)",children:l.jsx(z.IconButton,{"aria-label":"__MORE INFO",size:"2xs",colorPalette:"info",variant:"link",children:l.jsx(P.HelpOutline,{})})})}),l.jsx(x.$07b14b47974efb58$export$5b6b19405a83ff9d,{children:l.jsx(G,{asChild:!0,children:l.jsx(x.$de32f1b87079253c$export$3ddf2d174ce01153,{children:l.jsx(F.Box,{p:"300",children:e.info})})})})]})]}),e.input&&l.jsx(_,{...e.inputSlotProps,children:t.Children.map(e.input,s=>t.isValidElement(s)?t.cloneElement(s,R):s)}),e.description&&l.jsx(H,{...M,...e.descriptionSlotProps,children:e.description}),r&&e.error&&l.jsxs(O,{...L,...e.errorSlotProps,children:[l.jsx(F.Box,{as:P.ErrorOutline,display:"inline-flex",boxSize:"400",verticalAlign:"text-bottom",mr:"100",alignSelf:"center"}),e.error]}),v]})})};f.displayName="FormField.Root";const m=({children:n,...i})=>{const{setContext:o}=t.useContext(u);return t.useEffect(()=>(o(r=>({...r,label:n,labelSlotProps:i})),()=>{o(r=>({...r,label:null,labelSlotProps:void 0}))}),[n,o]),null};m.displayName="FormField.Label";const b=({children:n,...i})=>{const{setContext:o}=t.useContext(u);return t.useEffect(()=>{o(r=>({...r,input:n,inputSlotProps:i}))},[n,o]),null};b.displayName="FormField.Input";const h=({children:n,...i})=>{const{setContext:o}=t.useContext(u);return t.useEffect(()=>(o(r=>({...r,description:n,descriptionSlotProps:i})),()=>{o(r=>({...r,description:null,descriptionSlotProps:void 0}))}),[n,o]),null};h.displayName="FormField.Description";const j=({children:n,...i})=>{const{setContext:o}=t.useContext(u);return t.useEffect(()=>(o(r=>({...r,error:n,errorSlotProps:i})),()=>{o(r=>({...r,error:null,errorSlotProps:void 0}))}),[n,o]),null};j.displayName="FormField.Error";const C=({children:n})=>{const{setContext:i}=t.useContext(u);return t.useEffect(()=>(i(o=>({...o,info:n})),()=>{i(o=>({...o,info:null}))}),[n,i]),null};C.displayName="FormField.InfoBox";const J={Root:f,Label:m,Input:b,Description:h,Error:j,InfoBox:C};exports.FormField=J;exports.FormFieldDescription=h;exports.FormFieldError=j;exports.FormFieldInfoBox=C;exports.FormFieldInput=b;exports.FormFieldLabel=m;exports.FormFieldRoot=f;
2
+ //# sourceMappingURL=form-field-BQpCkz-O.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"form-field-CozKmli4.cjs.js","sources":["../../src/components/form-field/components/form-field.context.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.types\";\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 { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type {\n FormFieldRootSlotProps,\n FormFieldLabelSlotProps,\n FormFieldInputSlotProps,\n FormFieldDescriptionSlotProps,\n FormFieldErrorSlotProps,\n FormFieldPopoverSlotProps,\n} from \"./form-field.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"formField\",\n});\n\n// Root slot\nexport const FormFieldRootSlot = withProvider<\n HTMLDivElement,\n FormFieldRootSlotProps\n>(\"div\", \"root\");\n\n// Label Slot\nexport const FormFieldLabelSlot = withContext<\n HTMLDivElement,\n FormFieldLabelSlotProps\n>(\"div\", \"label\");\n\n// Input Slot\nexport const FormFieldInputSlot = withContext<\n HTMLDivElement,\n FormFieldInputSlotProps\n>(\"div\", \"input\");\n\n// Description Slot\nexport const FormFieldDescriptionSlot = withContext<\n HTMLDivElement,\n FormFieldDescriptionSlotProps\n>(\"div\", \"description\");\n\n// Error Slot\nexport const FormFieldErrorSlot = withContext<\n HTMLDivElement,\n FormFieldErrorSlotProps\n>(\"div\", \"error\");\n\n// Error Slot\nexport const FormFieldPopoverSlot = withContext<\n HTMLDivElement,\n FormFieldPopoverSlotProps\n>(\"div\", \"popover\");\n","import {\n Children,\n cloneElement,\n isValidElement,\n useEffect,\n useMemo,\n useState,\n useRef,\n} from \"react\";\nimport type { FormFieldProps } from \"../form-field.types\";\nimport { useField, useObjectRef } from \"react-aria\";\nimport { mergeRefs } from \"@chakra-ui/react\";\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.Root\n *\n * displays miscellaneous inputs in a FormField context\n *\n * @supportsStyleProps\n */\nexport const FormFieldRoot = function FormFieldRoot({\n ref: forwardedRef,\n id,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n children,\n ...props\n}: FormFieldProps) {\n const localRef = useRef<HTMLDivElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\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] = useMemo(() => {\n const args: Parameters<typeof useField>[0] = {\n id,\n description: context.description,\n errorMessage: context.error,\n };\n\n if (context.label) {\n args.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 args[\"aria-label\"] = \"empty-label\";\n args[\"aria-labelledby\"] = \"empty-label\";\n }\n\n return args;\n }, [id, context.description, context.error, context.label]);\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 = useMemo(\n () => ({\n ...fieldProps,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n }),\n [fieldProps, isInvalid, isRequired, isDisabled, isReadOnly]\n );\n\n const contextValue = useMemo(() => ({ context, setContext }), [context]);\n\n return (\n <FormFieldContext.Provider value={contextValue}>\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 colorPalette=\"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 alignSelf=\"center\"\n />\n {context.error}\n </FormFieldErrorSlot>\n )}\n {children}\n </FormFieldRootSlot>\n </FormFieldContext.Provider>\n );\n};\n\nFormFieldRoot.displayName = \"FormField.Root\";\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldLabelSlotProps } from \"../form-field.types\";\n\n/**\n * FormField.Label - The label element for the form field\n *\n * @supportsStyleProps\n */\n// TODO: should this be wrapped in react-aria's `LabelContext` provider?, e.g. https://react-spectrum.adobe.com/react-aria/TextField.html#custom-children\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\n // Cleanup: clear label when component unmounts\n return () => {\n setContext((prevContext) => ({\n ...prevContext,\n label: null,\n labelSlotProps: undefined,\n }));\n };\n }, [children, setContext]);\n\n return null;\n};\n\nFormFieldLabel.displayName = \"FormField.Label\";\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldInputSlotProps } from \"../form-field.types\";\n\n/**\n * FormField.Input - The input wrapper element for the form field\n *\n * @supportsStyleProps\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\nFormFieldInput.displayName = \"FormField.Input\";\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldDescriptionSlotProps } from \"../form-field.types\";\n\n/**\n * FormField.Description - The description element for the form field\n *\n * @supportsStyleProps\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\n // Cleanup: clear description when component unmounts\n return () => {\n setContext((prevContext) => ({\n ...prevContext,\n description: null,\n descriptionSlotProps: undefined,\n }));\n };\n }, [children, setContext]);\n\n return null;\n};\n\nFormFieldDescription.displayName = \"FormField.Description\";\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldErrorSlotProps } from \"../form-field.types\";\n\n/**\n * FormField.Error - The error message element for the form field\n *\n * @supportsStyleProps\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\n // Cleanup: clear error when component unmounts\n return () => {\n setContext((prevContext) => ({\n ...prevContext,\n error: null,\n errorSlotProps: undefined,\n }));\n };\n }, [children, setContext]);\n\n return null;\n};\n\nFormFieldError.displayName = \"FormField.Error\";\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\n/**\n * FormField.InfoBox - The info box popover content for the form field\n *\n * @supportsStyleProps\n */\nexport const FormFieldInfoBox = ({ children }: FormFieldInfoBoxProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n info: children,\n }));\n\n // Cleanup: clear info when component unmounts\n return () => {\n setContext((prevContext) => ({\n ...prevContext,\n info: null,\n }));\n };\n }, [children, setContext]);\n\n return null;\n};\n\nFormFieldInfoBox.displayName = \"FormField.InfoBox\";\n","import {\n FormFieldRoot,\n FormFieldLabel,\n FormFieldInput,\n FormFieldDescription,\n FormFieldError,\n FormFieldInfoBox,\n} from \"./components\";\n\nexport const FormField = {\n /**\n * # FormField.Root\n *\n * The root container for the form field that provides context and state management\n * for all child components. Handles React Aria integration for accessibility,\n * manages field state (required, invalid, disabled, readonly), and coordinates\n * rendering of label, input, description, and error elements.\n *\n * @example\n * ```tsx\n * <FormField.Root isRequired isInvalid>\n * <FormField.Label>Username</FormField.Label>\n * <FormField.Input>\n * <TextInput />\n * </FormField.Input>\n * <FormField.Description>Enter your username</FormField.Description>\n * <FormField.Error>Username is required</FormField.Error>\n * </FormField.Root>\n * ```\n */\n Root: FormFieldRoot,\n\n /**\n * # FormField.Label\n *\n * The label element for the form field. Automatically associates with the input\n * via React Aria and displays a required indicator when the field is required.\n * Supports an optional info box trigger for additional field information.\n *\n * @example\n * ```tsx\n * <FormField.Root>\n * <FormField.Label>Email Address</FormField.Label>\n * <FormField.InfoBox>\n * Your email will be used for account notifications\n * </FormField.InfoBox>\n * <FormField.Input>\n * <TextInput />\n * </FormField.Input>\n * </FormField.Root>\n * ```\n */\n Label: FormFieldLabel,\n\n /**\n * # FormField.Input\n *\n * The input wrapper element that receives and displays the actual input component.\n * Automatically clones children and passes accessibility props, validation state,\n * and field attributes from React Aria.\n *\n * @example\n * ```tsx\n * <FormField.Root>\n * <FormField.Label>Password</FormField.Label>\n * <FormField.Input>\n * <PasswordInput />\n * </FormField.Input>\n * </FormField.Root>\n * ```\n */\n Input: FormFieldInput,\n\n /**\n * # FormField.Description\n *\n * The description element that provides helpful information about the field.\n * Automatically associates with the input via `aria-describedby` for screen readers.\n *\n * @example\n * ```tsx\n * <FormField.Root>\n * <FormField.Label>Username</FormField.Label>\n * <FormField.Input>\n * <TextInput />\n * </FormField.Input>\n * <FormField.Description>\n * Must be 3-20 characters, letters and numbers only\n * </FormField.Description>\n * </FormField.Root>\n * ```\n */\n Description: FormFieldDescription,\n\n /**\n * # FormField.Error\n *\n * The error message element that displays validation errors. Only visible when\n * the field is invalid. Automatically associates with the input via\n * `aria-errormessage` and includes an error icon.\n *\n * @example\n * ```tsx\n * <FormField.Root isInvalid>\n * <FormField.Label>Email</FormField.Label>\n * <FormField.Input>\n * <TextInput />\n * </FormField.Input>\n * <FormField.Error>Please enter a valid email address</FormField.Error>\n * </FormField.Root>\n * ```\n */\n Error: FormFieldError,\n\n /**\n * # FormField.InfoBox\n *\n * The info box content that appears in a popover when the help icon next to\n * the label is clicked. Use for additional context or instructions that don't\n * need to be visible by default.\n *\n * @example\n * ```tsx\n * <FormField.Root>\n * <FormField.Label>API Key</FormField.Label>\n * <FormField.InfoBox>\n * Your API key can be found in your account settings.\n * Keep it secure and never share it publicly.\n * </FormField.InfoBox>\n * <FormField.Input>\n * <TextInput />\n * </FormField.Input>\n * </FormField.Root>\n * ```\n */\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","withProvider","withContext","createSlotRecipeContext","FormFieldRootSlot","FormFieldLabelSlot","FormFieldInputSlot","FormFieldDescriptionSlot","FormFieldErrorSlot","FormFieldPopoverSlot","FormFieldRoot","forwardedRef","id","isInvalid","isRequired","isDisabled","isReadOnly","children","props","localRef","useRef","ref","useObjectRef","mergeRefs","context","setContext","useState","useFieldArgs","useMemo","args","labelProps","fieldProps","descriptionProps","errorMessageProps","useField","useEffect","prevContext","inputProps","contextValue","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":"oVA6BaA,EAAmBC,EAAAA,cAAoC,CAClE,QAAS,CACP,MAAO,KACP,YAAa,KACb,MAAO,KACP,KAAM,KACN,MAAO,IAAA,EAET,WAAY,IAAM,CAAC,CACrB,CAAC,EC5BK,CAAE,aAAAC,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,IAAK,WACP,CAAC,EAGYC,EAAoBH,EAG/B,MAAO,MAAM,EAGFI,EAAqBH,EAGhC,MAAO,OAAO,EAGHI,EAAqBJ,EAGhC,MAAO,OAAO,EAGHK,EAA2BL,EAGtC,MAAO,aAAa,EAGTM,EAAqBN,EAGhC,MAAO,OAAO,EAGHO,EAAuBP,EAGlC,MAAO,SAAS,ECbLQ,EAAgB,SAAuB,CAClD,IAAKC,EACL,GAAAC,EACA,UAAAC,EACA,WAAAC,EACA,WAAAC,EACA,WAAAC,EACA,SAAAC,EACA,GAAGC,CACL,EAAmB,CACjB,MAAMC,EAAWC,EAAAA,OAAuB,IAAI,EACtCC,EAAMC,EAAAA,0CAAaC,EAAAA,UAAUJ,EAAUR,CAAY,CAAC,EACpD,CAACa,EAASC,CAAU,EAAIC,WAAsC,CAClE,MAAO,KACP,YAAa,KACb,MAAO,KACP,KAAM,KACN,MAAO,KACP,UAAAb,EACA,WAAAC,EACA,WAAAC,EACA,WAAAC,CAAA,CACD,EAEKW,EAA+CC,EAAAA,QAAQ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KACRV,EAAYW,IAAiB,CAC3B,GAAGA,EACH,MAAOnB,EACP,eAAA2C,CAAA,EACA,EAGK,IAAM,CACXnC,EAAYW,IAAiB,CAC3B,GAAGA,EACH,MAAO,KACP,eAAgB,MAAA,EAChB,CACJ,GACC,CAACnB,EAAUQ,CAAU,CAAC,EAElB,IACT,EAEAkC,EAAe,YAAc,kBCpBtB,MAAME,EAAmB,CAAC,CAAE,SAAA5C,KAAsC,CACvE,KAAM,CAAE,WAAAQ,CAAA,EAAe6B,EAAAA,WAAWvD,CAAgB,EAElDoC,OAAAA,EAAAA,UAAU,KACRV,EAAYW,IAAiB,CAC3B,GAAGA,EACH,KAAMnB,CAAA,EACN,EAGK,IAAM,CACXQ,EAAYW,IAAiB,CAC3B,GAAGA,EACH,KAAM,IAAA,EACN,CACJ,GACC,CAACnB,EAAUQ,CAAU,CAAC,EAElB,IACT,EAEAoC,EAAiB,YAAc,oBC3BxB,MAAMC,EAAY,CAqBvB,KAAMpD,EAsBN,MAAO0C,EAmBP,MAAOG,EAqBP,YAAaE,EAoBb,MAAOE,EAuBP,QAASE,CACX"}
1
+ {"version":3,"file":"form-field-BQpCkz-O.cjs.js","sources":["../../src/components/form-field/components/form-field.context.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.types\";\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 { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type {\n FormFieldRootSlotProps,\n FormFieldLabelSlotProps,\n FormFieldInputSlotProps,\n FormFieldDescriptionSlotProps,\n FormFieldErrorSlotProps,\n FormFieldPopoverSlotProps,\n} from \"./form-field.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"formField\",\n});\n\n// Root slot\nexport const FormFieldRootSlot = withProvider<\n HTMLDivElement,\n FormFieldRootSlotProps\n>(\"div\", \"root\");\n\n// Label Slot\nexport const FormFieldLabelSlot = withContext<\n HTMLDivElement,\n FormFieldLabelSlotProps\n>(\"div\", \"label\");\n\n// Input Slot\nexport const FormFieldInputSlot = withContext<\n HTMLDivElement,\n FormFieldInputSlotProps\n>(\"div\", \"input\");\n\n// Description Slot\nexport const FormFieldDescriptionSlot = withContext<\n HTMLDivElement,\n FormFieldDescriptionSlotProps\n>(\"div\", \"description\");\n\n// Error Slot\nexport const FormFieldErrorSlot = withContext<\n HTMLDivElement,\n FormFieldErrorSlotProps\n>(\"div\", \"error\");\n\n// Error Slot\nexport const FormFieldPopoverSlot = withContext<\n HTMLDivElement,\n FormFieldPopoverSlotProps\n>(\"div\", \"popover\");\n","import {\n Children,\n cloneElement,\n isValidElement,\n useEffect,\n useMemo,\n useState,\n useRef,\n} from \"react\";\nimport type { FormFieldProps } from \"../form-field.types\";\nimport { useField, useObjectRef } from \"react-aria\";\nimport { mergeRefs } from \"@chakra-ui/react\";\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.Root\n *\n * displays miscellaneous inputs in a FormField context\n *\n * @supportsStyleProps\n */\nexport const FormFieldRoot = function FormFieldRoot({\n ref: forwardedRef,\n id,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n children,\n ...props\n}: FormFieldProps) {\n const localRef = useRef<HTMLDivElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\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] = useMemo(() => {\n const args: Parameters<typeof useField>[0] = {\n id,\n description: context.description,\n errorMessage: context.error,\n };\n\n if (context.label) {\n args.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 args[\"aria-label\"] = \"empty-label\";\n args[\"aria-labelledby\"] = \"empty-label\";\n }\n\n return args;\n }, [id, context.description, context.error, context.label]);\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 = useMemo(\n () => ({\n ...fieldProps,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n }),\n [fieldProps, isInvalid, isRequired, isDisabled, isReadOnly]\n );\n\n const contextValue = useMemo(() => ({ context, setContext }), [context]);\n\n return (\n <FormFieldContext.Provider value={contextValue}>\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 colorPalette=\"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 alignSelf=\"center\"\n />\n {context.error}\n </FormFieldErrorSlot>\n )}\n {children}\n </FormFieldRootSlot>\n </FormFieldContext.Provider>\n );\n};\n\nFormFieldRoot.displayName = \"FormField.Root\";\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldLabelSlotProps } from \"../form-field.types\";\n\n/**\n * FormField.Label - The label element for the form field\n *\n * @supportsStyleProps\n */\n// TODO: should this be wrapped in react-aria's `LabelContext` provider?, e.g. https://react-spectrum.adobe.com/react-aria/TextField.html#custom-children\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\n // Cleanup: clear label when component unmounts\n return () => {\n setContext((prevContext) => ({\n ...prevContext,\n label: null,\n labelSlotProps: undefined,\n }));\n };\n }, [children, setContext]);\n\n return null;\n};\n\nFormFieldLabel.displayName = \"FormField.Label\";\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldInputSlotProps } from \"../form-field.types\";\n\n/**\n * FormField.Input - The input wrapper element for the form field\n *\n * @supportsStyleProps\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\nFormFieldInput.displayName = \"FormField.Input\";\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldDescriptionSlotProps } from \"../form-field.types\";\n\n/**\n * FormField.Description - The description element for the form field\n *\n * @supportsStyleProps\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\n // Cleanup: clear description when component unmounts\n return () => {\n setContext((prevContext) => ({\n ...prevContext,\n description: null,\n descriptionSlotProps: undefined,\n }));\n };\n }, [children, setContext]);\n\n return null;\n};\n\nFormFieldDescription.displayName = \"FormField.Description\";\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldErrorSlotProps } from \"../form-field.types\";\n\n/**\n * FormField.Error - The error message element for the form field\n *\n * @supportsStyleProps\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\n // Cleanup: clear error when component unmounts\n return () => {\n setContext((prevContext) => ({\n ...prevContext,\n error: null,\n errorSlotProps: undefined,\n }));\n };\n }, [children, setContext]);\n\n return null;\n};\n\nFormFieldError.displayName = \"FormField.Error\";\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\n/**\n * FormField.InfoBox - The info box popover content for the form field\n *\n * @supportsStyleProps\n */\nexport const FormFieldInfoBox = ({ children }: FormFieldInfoBoxProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n info: children,\n }));\n\n // Cleanup: clear info when component unmounts\n return () => {\n setContext((prevContext) => ({\n ...prevContext,\n info: null,\n }));\n };\n }, [children, setContext]);\n\n return null;\n};\n\nFormFieldInfoBox.displayName = \"FormField.InfoBox\";\n","import {\n FormFieldRoot,\n FormFieldLabel,\n FormFieldInput,\n FormFieldDescription,\n FormFieldError,\n FormFieldInfoBox,\n} from \"./components\";\n\nexport const FormField = {\n /**\n * # FormField.Root\n *\n * The root container for the form field that provides context and state management\n * for all child components. Handles React Aria integration for accessibility,\n * manages field state (required, invalid, disabled, readonly), and coordinates\n * rendering of label, input, description, and error elements.\n *\n * @example\n * ```tsx\n * <FormField.Root isRequired isInvalid>\n * <FormField.Label>Username</FormField.Label>\n * <FormField.Input>\n * <TextInput />\n * </FormField.Input>\n * <FormField.Description>Enter your username</FormField.Description>\n * <FormField.Error>Username is required</FormField.Error>\n * </FormField.Root>\n * ```\n */\n Root: FormFieldRoot,\n\n /**\n * # FormField.Label\n *\n * The label element for the form field. Automatically associates with the input\n * via React Aria and displays a required indicator when the field is required.\n * Supports an optional info box trigger for additional field information.\n *\n * @example\n * ```tsx\n * <FormField.Root>\n * <FormField.Label>Email Address</FormField.Label>\n * <FormField.InfoBox>\n * Your email will be used for account notifications\n * </FormField.InfoBox>\n * <FormField.Input>\n * <TextInput />\n * </FormField.Input>\n * </FormField.Root>\n * ```\n */\n Label: FormFieldLabel,\n\n /**\n * # FormField.Input\n *\n * The input wrapper element that receives and displays the actual input component.\n * Automatically clones children and passes accessibility props, validation state,\n * and field attributes from React Aria.\n *\n * @example\n * ```tsx\n * <FormField.Root>\n * <FormField.Label>Password</FormField.Label>\n * <FormField.Input>\n * <PasswordInput />\n * </FormField.Input>\n * </FormField.Root>\n * ```\n */\n Input: FormFieldInput,\n\n /**\n * # FormField.Description\n *\n * The description element that provides helpful information about the field.\n * Automatically associates with the input via `aria-describedby` for screen readers.\n *\n * @example\n * ```tsx\n * <FormField.Root>\n * <FormField.Label>Username</FormField.Label>\n * <FormField.Input>\n * <TextInput />\n * </FormField.Input>\n * <FormField.Description>\n * Must be 3-20 characters, letters and numbers only\n * </FormField.Description>\n * </FormField.Root>\n * ```\n */\n Description: FormFieldDescription,\n\n /**\n * # FormField.Error\n *\n * The error message element that displays validation errors. Only visible when\n * the field is invalid. Automatically associates with the input via\n * `aria-errormessage` and includes an error icon.\n *\n * @example\n * ```tsx\n * <FormField.Root isInvalid>\n * <FormField.Label>Email</FormField.Label>\n * <FormField.Input>\n * <TextInput />\n * </FormField.Input>\n * <FormField.Error>Please enter a valid email address</FormField.Error>\n * </FormField.Root>\n * ```\n */\n Error: FormFieldError,\n\n /**\n * # FormField.InfoBox\n *\n * The info box content that appears in a popover when the help icon next to\n * the label is clicked. Use for additional context or instructions that don't\n * need to be visible by default.\n *\n * @example\n * ```tsx\n * <FormField.Root>\n * <FormField.Label>API Key</FormField.Label>\n * <FormField.InfoBox>\n * Your API key can be found in your account settings.\n * Keep it secure and never share it publicly.\n * </FormField.InfoBox>\n * <FormField.Input>\n * <TextInput />\n * </FormField.Input>\n * </FormField.Root>\n * ```\n */\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","withProvider","withContext","createSlotRecipeContext","FormFieldRootSlot","FormFieldLabelSlot","FormFieldInputSlot","FormFieldDescriptionSlot","FormFieldErrorSlot","FormFieldPopoverSlot","FormFieldRoot","forwardedRef","id","isInvalid","isRequired","isDisabled","isReadOnly","children","props","localRef","useRef","ref","useObjectRef","mergeRefs","context","setContext","useState","useFieldArgs","useMemo","args","labelProps","fieldProps","descriptionProps","errorMessageProps","useField","useEffect","prevContext","inputProps","contextValue","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":"oVA6BaA,EAAmBC,EAAAA,cAAoC,CAClE,QAAS,CACP,MAAO,KACP,YAAa,KACb,MAAO,KACP,KAAM,KACN,MAAO,IAAA,EAET,WAAY,IAAM,CAAC,CACrB,CAAC,EC5BK,CAAE,aAAAC,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,C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AMC,EAAY,CAqBvB,KAAMpD,EAsBN,MAAO0C,EAmBP,MAAOG,EAqBP,YAAaE,EAoBb,MAAOE,EAuBP,QAASE,CACX"}
@@ -2,7 +2,7 @@ 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
4
  import { $ as a } from "./useObjectRef-CaJ5pgjX.es.js";
5
- import { B as c } from "./button-DZew_Si4.es.js";
5
+ import { B as c } from "./button-DE5ekDXw.es.js";
6
6
  const i = (o) => {
7
7
  const { children: r, ref: t, ...e } = o, f = n(null), s = a(p(f, t));
8
8
  return /* @__PURE__ */ m(c, { px: 0, py: 0, ...e, ref: s, children: r });
@@ -11,4 +11,4 @@ i.displayName = "IconButton";
11
11
  export {
12
12
  i as I
13
13
  };
14
- //# sourceMappingURL=icon-button-hZxuTfRy.es.js.map
14
+ //# sourceMappingURL=icon-button-Cxy00t-e.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon-button-hZxuTfRy.es.js","sources":["../../src/components/icon-button/icon-button.tsx"],"sourcesContent":["import { useRef } from \"react\";\nimport { useObjectRef } from \"react-aria\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport type { IconButtonProps } from \"./icon-button.types\";\nimport { Button } from \"@/components\";\n\n/**\n * # IconButton\n *\n * displays a button with an icon only as child\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/iconbutton}\n */\nexport const IconButton = (props: IconButtonProps) => {\n const { children, ref: forwardedRef, ...restProps } = props;\n\n // Create a local ref and merge with forwarded ref\n const localRef = useRef<HTMLButtonElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n return (\n <Button px={0} py={0} {...restProps} ref={ref}>\n {children}\n </Button>\n );\n};\n\nIconButton.displayName = \"IconButton\";\n"],"names":["IconButton","props","children","forwardedRef","restProps","localRef","useRef","ref","useObjectRef","mergeRefs","jsx","Button"],"mappings":";;;;;AAaO,MAAMA,IAAa,CAACC,MAA2B;AACpD,QAAM,EAAE,UAAAC,GAAU,KAAKC,GAAc,GAAGC,MAAcH,GAGhDI,IAAWC,EAA0B,IAAI,GACzCC,IAAMC,EAAaC,EAAUJ,GAAUF,CAAY,CAAC;AAE1D,SACE,gBAAAO,EAACC,KAAO,IAAI,GAAG,IAAI,GAAI,GAAGP,GAAW,KAAAG,GAClC,UAAAL,EAAA,CACH;AAEJ;AAEAF,EAAW,cAAc;"}
1
+ {"version":3,"file":"icon-button-Cxy00t-e.es.js","sources":["../../src/components/icon-button/icon-button.tsx"],"sourcesContent":["import { useRef } from \"react\";\nimport { useObjectRef } from \"react-aria\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport type { IconButtonProps } from \"./icon-button.types\";\nimport { Button } from \"@/components\";\n\n/**\n * # IconButton\n *\n * displays a button with an icon only as child\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/iconbutton}\n */\nexport const IconButton = (props: IconButtonProps) => {\n const { children, ref: forwardedRef, ...restProps } = props;\n\n // Create a local ref and merge with forwarded ref\n const localRef = useRef<HTMLButtonElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n return (\n <Button px={0} py={0} {...restProps} ref={ref}>\n {children}\n </Button>\n );\n};\n\nIconButton.displayName = \"IconButton\";\n"],"names":["IconButton","props","children","forwardedRef","restProps","localRef","useRef","ref","useObjectRef","mergeRefs","jsx","Button"],"mappings":";;;;;AAaO,MAAMA,IAAa,CAACC,MAA2B;AACpD,QAAM,EAAE,UAAAC,GAAU,KAAKC,GAAc,GAAGC,MAAcH,GAGhDI,IAAWC,EAA0B,IAAI,GACzCC,IAAMC,EAAaC,EAAUJ,GAAUF,CAAY,CAAC;AAE1D,SACE,gBAAAO,EAACC,KAAO,IAAI,GAAG,IAAI,GAAI,GAAGP,GAAW,KAAAG,GAClC,UAAAL,EAAA,CACH;AAEJ;AAEAF,EAAW,cAAc;"}
@@ -1,2 +1,2 @@
1
- "use strict";const u=require("react/jsx-runtime"),f=require("react"),i=require("@chakra-ui/react"),a=require("./useObjectRef-4v2MxSjQ.cjs.js"),d=require("./button-CxL9YuuF.cjs.js"),e=t=>{const{children:r,ref:n,...o}=t,s=f.useRef(null),c=a.$df56164dff5785e2$export$4338b53315abf666(i.mergeRefs(s,n));return u.jsx(d.Button,{px:0,py:0,...o,ref:c,children:r})};e.displayName="IconButton";exports.IconButton=e;
2
- //# sourceMappingURL=icon-button-BPzrehNJ.cjs.js.map
1
+ "use strict";const u=require("react/jsx-runtime"),f=require("react"),i=require("@chakra-ui/react"),a=require("./useObjectRef-4v2MxSjQ.cjs.js"),d=require("./button-D8xDIHNa.cjs.js"),e=t=>{const{children:r,ref:n,...o}=t,s=f.useRef(null),c=a.$df56164dff5785e2$export$4338b53315abf666(i.mergeRefs(s,n));return u.jsx(d.Button,{px:0,py:0,...o,ref:c,children:r})};e.displayName="IconButton";exports.IconButton=e;
2
+ //# sourceMappingURL=icon-button-NoJCQW4L.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon-button-BPzrehNJ.cjs.js","sources":["../../src/components/icon-button/icon-button.tsx"],"sourcesContent":["import { useRef } from \"react\";\nimport { useObjectRef } from \"react-aria\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport type { IconButtonProps } from \"./icon-button.types\";\nimport { Button } from \"@/components\";\n\n/**\n * # IconButton\n *\n * displays a button with an icon only as child\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/iconbutton}\n */\nexport const IconButton = (props: IconButtonProps) => {\n const { children, ref: forwardedRef, ...restProps } = props;\n\n // Create a local ref and merge with forwarded ref\n const localRef = useRef<HTMLButtonElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n return (\n <Button px={0} py={0} {...restProps} ref={ref}>\n {children}\n </Button>\n );\n};\n\nIconButton.displayName = \"IconButton\";\n"],"names":["IconButton","props","children","forwardedRef","restProps","localRef","useRef","ref","useObjectRef","mergeRefs","jsx","Button"],"mappings":"qLAaaA,EAAcC,GAA2B,CACpD,KAAM,CAAE,SAAAC,EAAU,IAAKC,EAAc,GAAGC,GAAcH,EAGhDI,EAAWC,EAAAA,OAA0B,IAAI,EACzCC,EAAMC,EAAAA,0CAAaC,EAAAA,UAAUJ,EAAUF,CAAY,CAAC,EAE1D,OACEO,MAACC,EAAAA,QAAO,GAAI,EAAG,GAAI,EAAI,GAAGP,EAAW,IAAAG,EAClC,SAAAL,CAAA,CACH,CAEJ,EAEAF,EAAW,YAAc"}
1
+ {"version":3,"file":"icon-button-NoJCQW4L.cjs.js","sources":["../../src/components/icon-button/icon-button.tsx"],"sourcesContent":["import { useRef } from \"react\";\nimport { useObjectRef } from \"react-aria\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport type { IconButtonProps } from \"./icon-button.types\";\nimport { Button } from \"@/components\";\n\n/**\n * # IconButton\n *\n * displays a button with an icon only as child\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/iconbutton}\n */\nexport const IconButton = (props: IconButtonProps) => {\n const { children, ref: forwardedRef, ...restProps } = props;\n\n // Create a local ref and merge with forwarded ref\n const localRef = useRef<HTMLButtonElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n return (\n <Button px={0} py={0} {...restProps} ref={ref}>\n {children}\n </Button>\n );\n};\n\nIconButton.displayName = \"IconButton\";\n"],"names":["IconButton","props","children","forwardedRef","restProps","localRef","useRef","ref","useObjectRef","mergeRefs","jsx","Button"],"mappings":"qLAaaA,EAAcC,GAA2B,CACpD,KAAM,CAAE,SAAAC,EAAU,IAAKC,EAAc,GAAGC,GAAcH,EAGhDI,EAAWC,EAAAA,OAA0B,IAAI,EACzCC,EAAMC,EAAAA,0CAAaC,EAAAA,UAAUJ,EAAUF,CAAY,CAAC,EAE1D,OACEO,MAACC,EAAAA,QAAO,GAAI,EAAG,GAAI,EAAI,GAAGP,EAAW,IAAAG,EAClC,SAAAL,CAAA,CACH,CAEJ,EAEAF,EAAW,YAAc"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { T as l } from "./toggle-button-B2uXtvzj.es.js";
2
+ import { T as l } from "./toggle-button-Dn2Xy2F_.es.js";
3
3
  const n = ({
4
4
  "aria-label": o,
5
5
  children: t,
@@ -10,4 +10,4 @@ n.displayName = "IconToggleButton";
10
10
  export {
11
11
  n as I
12
12
  };
13
- //# sourceMappingURL=icon-toggle-button-BtyMh4Ys.es.js.map
13
+ //# sourceMappingURL=icon-toggle-button-BI2e_BVn.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon-toggle-button-BtyMh4Ys.es.js","sources":["../../src/components/icon-toggle-button/icon-toggle-button.tsx"],"sourcesContent":["import { ToggleButton } from \"@/components/toggle-button/toggle-button\";\nimport type { IconToggleButtonProps } from \"./icon-toggle-button.types\";\n\n/**\n * # IconToggleButton\n * ============================================================\n * A toggle button with only an icon as child. It is based\n * on the regular `ToggleButton` component, but with a few adjustments.\n *\n */\nexport const IconToggleButton = ({\n \"aria-label\": ariaLabel,\n children,\n ref,\n ...props\n}: IconToggleButtonProps) => {\n return (\n <ToggleButton ref={ref} aria-label={ariaLabel} px={0} py={0} {...props}>\n {children}\n </ToggleButton>\n );\n};\n\nIconToggleButton.displayName = \"IconToggleButton\";\n"],"names":["IconToggleButton","ariaLabel","children","ref","props","jsx","ToggleButton"],"mappings":";;AAUO,MAAMA,IAAmB,CAAC;AAAA,EAC/B,cAAcC;AAAA,EACd,UAAAC;AAAA,EACA,KAAAC;AAAA,EACA,GAAGC;AACL,MAEI,gBAAAC,EAACC,GAAA,EAAa,KAAAH,GAAU,cAAYF,GAAW,IAAI,GAAG,IAAI,GAAI,GAAGG,GAC9D,UAAAF,EAAA,CACH;AAIJF,EAAiB,cAAc;"}
1
+ {"version":3,"file":"icon-toggle-button-BI2e_BVn.es.js","sources":["../../src/components/icon-toggle-button/icon-toggle-button.tsx"],"sourcesContent":["import { ToggleButton } from \"@/components/toggle-button/toggle-button\";\nimport type { IconToggleButtonProps } from \"./icon-toggle-button.types\";\n\n/**\n * # IconToggleButton\n * ============================================================\n * A toggle button with only an icon as child. It is based\n * on the regular `ToggleButton` component, but with a few adjustments.\n *\n */\nexport const IconToggleButton = ({\n \"aria-label\": ariaLabel,\n children,\n ref,\n ...props\n}: IconToggleButtonProps) => {\n return (\n <ToggleButton ref={ref} aria-label={ariaLabel} px={0} py={0} {...props}>\n {children}\n </ToggleButton>\n );\n};\n\nIconToggleButton.displayName = \"IconToggleButton\";\n"],"names":["IconToggleButton","ariaLabel","children","ref","props","jsx","ToggleButton"],"mappings":";;AAUO,MAAMA,IAAmB,CAAC;AAAA,EAC/B,cAAcC;AAAA,EACd,UAAAC;AAAA,EACA,KAAAC;AAAA,EACA,GAAGC;AACL,MAEI,gBAAAC,EAACC,GAAA,EAAa,KAAAH,GAAU,cAAYF,GAAW,IAAI,GAAG,IAAI,GAAI,GAAGG,GAC9D,UAAAF,EAAA,CACH;AAIJF,EAAiB,cAAc;"}
@@ -1,2 +1,2 @@
1
- "use strict";const l=require("react/jsx-runtime"),u=require("./toggle-button-CHZm868U.cjs.js"),t=({"aria-label":o,children:e,ref:n,...g})=>l.jsx(u.ToggleButton,{ref:n,"aria-label":o,px:0,py:0,...g,children:e});t.displayName="IconToggleButton";exports.IconToggleButton=t;
2
- //# sourceMappingURL=icon-toggle-button-DzoifEyi.cjs.js.map
1
+ "use strict";const l=require("react/jsx-runtime"),u=require("./toggle-button-KhatG-jQ.cjs.js"),t=({"aria-label":o,children:e,ref:n,...g})=>l.jsx(u.ToggleButton,{ref:n,"aria-label":o,px:0,py:0,...g,children:e});t.displayName="IconToggleButton";exports.IconToggleButton=t;
2
+ //# sourceMappingURL=icon-toggle-button-CGNUIj1n.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon-toggle-button-DzoifEyi.cjs.js","sources":["../../src/components/icon-toggle-button/icon-toggle-button.tsx"],"sourcesContent":["import { ToggleButton } from \"@/components/toggle-button/toggle-button\";\nimport type { IconToggleButtonProps } from \"./icon-toggle-button.types\";\n\n/**\n * # IconToggleButton\n * ============================================================\n * A toggle button with only an icon as child. It is based\n * on the regular `ToggleButton` component, but with a few adjustments.\n *\n */\nexport const IconToggleButton = ({\n \"aria-label\": ariaLabel,\n children,\n ref,\n ...props\n}: IconToggleButtonProps) => {\n return (\n <ToggleButton ref={ref} aria-label={ariaLabel} px={0} py={0} {...props}>\n {children}\n </ToggleButton>\n );\n};\n\nIconToggleButton.displayName = \"IconToggleButton\";\n"],"names":["IconToggleButton","ariaLabel","children","ref","props","jsx","ToggleButton"],"mappings":"+FAUaA,EAAmB,CAAC,CAC/B,aAAcC,EACd,SAAAC,EACA,IAAAC,EACA,GAAGC,CACL,IAEIC,EAAAA,IAACC,EAAAA,aAAA,CAAa,IAAAH,EAAU,aAAYF,EAAW,GAAI,EAAG,GAAI,EAAI,GAAGG,EAC9D,SAAAF,CAAA,CACH,EAIJF,EAAiB,YAAc"}
1
+ {"version":3,"file":"icon-toggle-button-CGNUIj1n.cjs.js","sources":["../../src/components/icon-toggle-button/icon-toggle-button.tsx"],"sourcesContent":["import { ToggleButton } from \"@/components/toggle-button/toggle-button\";\nimport type { IconToggleButtonProps } from \"./icon-toggle-button.types\";\n\n/**\n * # IconToggleButton\n * ============================================================\n * A toggle button with only an icon as child. It is based\n * on the regular `ToggleButton` component, but with a few adjustments.\n *\n */\nexport const IconToggleButton = ({\n \"aria-label\": ariaLabel,\n children,\n ref,\n ...props\n}: IconToggleButtonProps) => {\n return (\n <ToggleButton ref={ref} aria-label={ariaLabel} px={0} py={0} {...props}>\n {children}\n </ToggleButton>\n );\n};\n\nIconToggleButton.displayName = \"IconToggleButton\";\n"],"names":["IconToggleButton","ariaLabel","children","ref","props","jsx","ToggleButton"],"mappings":"+FAUaA,EAAmB,CAAC,CAC/B,aAAcC,EACd,SAAAC,EACA,IAAAC,EACA,GAAGC,CACL,IAEIC,EAAAA,IAACC,EAAAA,aAAA,CAAa,IAAAH,EAAU,aAAYF,EAAW,GAAI,EAAG,GAAI,EAAI,GAAGG,EAC9D,SAAAF,CAAA,CACH,EAIJF,EAAiB,YAAc"}