@commercetools/nimbus 0.0.0-canary-20251008065712 → 0.0.0-canary-20251009112243

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 (330) hide show
  1. package/dist/chunks/{Button-BvIjIGsV.es.js → Button-DbDspzBf.es.js} +3 -3
  2. package/dist/chunks/{Button-BvIjIGsV.es.js.map → Button-DbDspzBf.es.js.map} +1 -1
  3. package/dist/chunks/{DateField-5ys1kBci.es.js → DateField-BnqI8eDK.es.js} +5 -5
  4. package/dist/chunks/{DateField-5ys1kBci.es.js.map → DateField-BnqI8eDK.es.js.map} +1 -1
  5. package/dist/chunks/{DatePicker-YExF9ktq.es.js → DatePicker-Df88_VwG.es.js} +9 -9
  6. package/dist/chunks/{DatePicker-YExF9ktq.es.js.map → DatePicker-Df88_VwG.es.js.map} +1 -1
  7. package/dist/chunks/{Dialog-CWqCOpjC.es.js → Dialog-FtshtbuD.es.js} +27 -27
  8. package/dist/chunks/{Dialog-CWqCOpjC.es.js.map → Dialog-FtshtbuD.es.js.map} +1 -1
  9. package/dist/chunks/{Group-BpLIGg06.es.js → Group-BBaUrRF9.es.js} +2 -2
  10. package/dist/chunks/{Group-BpLIGg06.es.js.map → Group-BBaUrRF9.es.js.map} +1 -1
  11. package/dist/chunks/{Header-LnHmzVuk.es.js → Header-_Z7cZ9Ql.es.js} +10 -10
  12. package/dist/chunks/{Header-LnHmzVuk.es.js.map → Header-_Z7cZ9Ql.es.js.map} +1 -1
  13. package/dist/chunks/{Heading-D7ETzhN-.es.js → Heading-D_yp5JbO.es.js} +3 -3
  14. package/dist/chunks/{Heading-D7ETzhN-.es.js.map → Heading-D_yp5JbO.es.js.map} +1 -1
  15. package/dist/chunks/{Input-DFGgeFov.es.js → Input-Da2oLmEN.es.js} +2 -2
  16. package/dist/chunks/{Input-DFGgeFov.es.js.map → Input-Da2oLmEN.es.js.map} +1 -1
  17. package/dist/chunks/{Label-Bnr234yV.es.js → Label-qcXzazih.es.js} +2 -2
  18. package/dist/chunks/{Label-Bnr234yV.es.js.map → Label-qcXzazih.es.js.map} +1 -1
  19. package/dist/chunks/{ListBox-C_uejm2i.es.js → ListBox-CA_ARARw.es.js} +7 -7
  20. package/dist/chunks/{ListBox-C_uejm2i.es.js.map → ListBox-CA_ARARw.es.js.map} +1 -1
  21. package/dist/chunks/{ListKeyboardDelegate-4wjSpyhj.es.js → ListKeyboardDelegate-XLAitX9C.es.js} +2 -2
  22. package/dist/chunks/{ListKeyboardDelegate-4wjSpyhj.es.js.map → ListKeyboardDelegate-XLAitX9C.es.js.map} +1 -1
  23. package/dist/chunks/Modal-CVOcKPNx.cjs.js +2 -0
  24. package/dist/chunks/Modal-CVOcKPNx.cjs.js.map +1 -0
  25. package/dist/chunks/Modal-CVRxKbK2.es.js +197 -0
  26. package/dist/chunks/Modal-CVRxKbK2.es.js.map +1 -0
  27. package/dist/chunks/{OverlayArrow-CTv6jme7.es.js → OverlayArrow-CwYMJqgj.es.js} +6 -6
  28. package/dist/chunks/{OverlayArrow-CTv6jme7.es.js.map → OverlayArrow-CwYMJqgj.es.js.map} +1 -1
  29. package/dist/chunks/{ProgressBar-8CLctnNS.es.js → ProgressBar-dYIUhB6B.es.js} +3 -3
  30. package/dist/chunks/{ProgressBar-8CLctnNS.es.js.map → ProgressBar-dYIUhB6B.es.js.map} +1 -1
  31. package/dist/chunks/{SelectionManager-CRACdKnk.es.js → SelectionManager-C9i8k50b.es.js} +8 -8
  32. package/dist/chunks/{SelectionManager-CRACdKnk.es.js.map → SelectionManager-C9i8k50b.es.js.map} +1 -1
  33. package/dist/chunks/{Separator-C9c_wOg5.es.js → Separator-DyXjJGoH.es.js} +2 -2
  34. package/dist/chunks/{Separator-C9c_wOg5.es.js.map → Separator-DyXjJGoH.es.js.map} +1 -1
  35. package/dist/chunks/{TextArea-ynzwaXdc.es.js → TextArea-DItoG16s.es.js} +2 -2
  36. package/dist/chunks/{TextArea-ynzwaXdc.es.js.map → TextArea-DItoG16s.es.js.map} +1 -1
  37. package/dist/chunks/{ToggleButton-DmBKvuoG.es.js → ToggleButton-C5u-GV4F.es.js} +2 -2
  38. package/dist/chunks/{ToggleButton-DmBKvuoG.es.js.map → ToggleButton-C5u-GV4F.es.js.map} +1 -1
  39. package/dist/chunks/{accordion-DJmN_bJq.es.js → accordion-C4MjwWsC.es.js} +4 -4
  40. package/dist/chunks/{accordion-DJmN_bJq.es.js.map → accordion-C4MjwWsC.es.js.map} +1 -1
  41. package/dist/chunks/{accordion-C2cc3Wn5.cjs.js → accordion-CxA_B4rs.cjs.js} +2 -2
  42. package/dist/chunks/{accordion-C2cc3Wn5.cjs.js.map → accordion-CxA_B4rs.cjs.js.map} +1 -1
  43. package/dist/chunks/{alert-D2CGReLt.cjs.js → alert-CA04iXvr.cjs.js} +2 -2
  44. package/dist/chunks/{alert-D2CGReLt.cjs.js.map → alert-CA04iXvr.cjs.js.map} +1 -1
  45. package/dist/chunks/{alert-DkIw1imV.es.js → alert-C_eKOpkm.es.js} +2 -2
  46. package/dist/chunks/{alert-DkIw1imV.es.js.map → alert-C_eKOpkm.es.js.map} +1 -1
  47. package/dist/chunks/{button-CN72KuLp.es.js → button-Be0U44e7.es.js} +4 -4
  48. package/dist/chunks/{button-CN72KuLp.es.js.map → button-Be0U44e7.es.js.map} +1 -1
  49. package/dist/chunks/{button-DwowuU7n.cjs.js → button-DTE97NpD.cjs.js} +2 -2
  50. package/dist/chunks/{button-DwowuU7n.cjs.js.map → button-DTE97NpD.cjs.js.map} +1 -1
  51. package/dist/chunks/{calendar-BeLNlFT1.es.js → calendar-C33Q6JGN.es.js} +8 -8
  52. package/dist/chunks/{calendar-BeLNlFT1.es.js.map → calendar-C33Q6JGN.es.js.map} +1 -1
  53. package/dist/chunks/{calendar-CmRpEeaV.cjs.js → calendar-GA5ACIqm.cjs.js} +2 -2
  54. package/dist/chunks/{calendar-CmRpEeaV.cjs.js.map → calendar-GA5ACIqm.cjs.js.map} +1 -1
  55. package/dist/chunks/{checkbox-DPAM4M8p.es.js → checkbox-BKBd4kHr.es.js} +3 -3
  56. package/dist/chunks/{checkbox-DPAM4M8p.es.js.map → checkbox-BKBd4kHr.es.js.map} +1 -1
  57. package/dist/chunks/{checkbox-B_7h5MW8.cjs.js → checkbox-Bh5DxcKC.cjs.js} +2 -2
  58. package/dist/chunks/{checkbox-B_7h5MW8.cjs.js.map → checkbox-Bh5DxcKC.cjs.js.map} +1 -1
  59. package/dist/chunks/{collapsible-motion-DqQSB6-D.es.js → collapsible-motion-BSsz8na-.es.js} +3 -3
  60. package/dist/chunks/{collapsible-motion-DqQSB6-D.es.js.map → collapsible-motion-BSsz8na-.es.js.map} +1 -1
  61. package/dist/chunks/{collapsible-motion-CJQJsU4W.cjs.js → collapsible-motion-hU9KTv8o.cjs.js} +2 -2
  62. package/dist/chunks/{collapsible-motion-CJQJsU4W.cjs.js.map → collapsible-motion-hU9KTv8o.cjs.js.map} +1 -1
  63. package/dist/chunks/{combobox-DxZTQoKT.cjs.js → combobox-BghQKCQt.cjs.js} +2 -2
  64. package/dist/chunks/{combobox-DxZTQoKT.cjs.js.map → combobox-BghQKCQt.cjs.js.map} +1 -1
  65. package/dist/chunks/{combobox-Ds2AjwlE.es.js → combobox-D4M76aw1.es.js} +19 -19
  66. package/dist/chunks/{combobox-Ds2AjwlE.es.js.map → combobox-D4M76aw1.es.js.map} +1 -1
  67. package/dist/chunks/{data-table-CqRdiTa7.cjs.js → data-table-BBvjFAkE.cjs.js} +2 -2
  68. package/dist/chunks/{data-table-CqRdiTa7.cjs.js.map → data-table-BBvjFAkE.cjs.js.map} +1 -1
  69. package/dist/chunks/{data-table-CkB6mGKq.es.js → data-table-CJMHQ1O2.es.js} +12 -12
  70. package/dist/chunks/{data-table-CkB6mGKq.es.js.map → data-table-CJMHQ1O2.es.js.map} +1 -1
  71. package/dist/chunks/{date-input-C7BR3eTg.cjs.js → date-input-CUWc63rA.cjs.js} +2 -2
  72. package/dist/chunks/{date-input-C7BR3eTg.cjs.js.map → date-input-CUWc63rA.cjs.js.map} +1 -1
  73. package/dist/chunks/{date-input-DOiFNdVS.es.js → date-input-Dab_Fdrq.es.js} +4 -4
  74. package/dist/chunks/{date-input-DOiFNdVS.es.js.map → date-input-Dab_Fdrq.es.js.map} +1 -1
  75. package/dist/chunks/{date-picker-Cm9gyNP-.cjs.js → date-picker-C6A6CiIu.cjs.js} +2 -2
  76. package/dist/chunks/{date-picker-Cm9gyNP-.cjs.js.map → date-picker-C6A6CiIu.cjs.js.map} +1 -1
  77. package/dist/chunks/{date-picker-yZG8AJhH.es.js → date-picker-CT6jwApn.es.js} +18 -18
  78. package/dist/chunks/{date-picker-yZG8AJhH.es.js.map → date-picker-CT6jwApn.es.js.map} +1 -1
  79. package/dist/chunks/{date-range-picker-D-81vyFH.es.js → date-range-picker-BICRnCsn.es.js} +20 -20
  80. package/dist/chunks/{date-range-picker-D-81vyFH.es.js.map → date-range-picker-BICRnCsn.es.js.map} +1 -1
  81. package/dist/chunks/{date-range-picker-zS1_WvWT.cjs.js → date-range-picker-vER5F2HJ.cjs.js} +2 -2
  82. package/dist/chunks/{date-range-picker-zS1_WvWT.cjs.js.map → date-range-picker-vER5F2HJ.cjs.js.map} +1 -1
  83. package/dist/chunks/{dialog-DeZMe0yJ.es.js → dialog-4Rx0vFFN.es.js} +2 -2
  84. package/dist/chunks/dialog-4Rx0vFFN.es.js.map +1 -0
  85. package/dist/chunks/{dialog-BypIffa5.cjs.js → dialog-CDyF_zvK.cjs.js} +2 -2
  86. package/dist/chunks/dialog-CDyF_zvK.cjs.js.map +1 -0
  87. package/dist/chunks/dialog.title-5mHI--iF.es.js +152 -0
  88. package/dist/chunks/dialog.title-5mHI--iF.es.js.map +1 -0
  89. package/dist/chunks/dialog.title-CtQfDha4.cjs.js +2 -0
  90. package/dist/chunks/dialog.title-CtQfDha4.cjs.js.map +1 -0
  91. package/dist/chunks/drawer-DzYXHVbg.cjs.js +2 -0
  92. package/dist/chunks/drawer-DzYXHVbg.cjs.js.map +1 -0
  93. package/dist/chunks/drawer-wpiy6Y4h.es.js +304 -0
  94. package/dist/chunks/drawer-wpiy6Y4h.es.js.map +1 -0
  95. package/dist/chunks/{extractStyleProps-DikjPnnl.es.js → extractStyleProps-CNXOLneR.es.js} +2 -2
  96. package/dist/chunks/{extractStyleProps-DikjPnnl.es.js.map → extractStyleProps-CNXOLneR.es.js.map} +1 -1
  97. package/dist/chunks/{extractStyleProps-Dm0IZP1e.cjs.js → extractStyleProps-G58aSXl8.cjs.js} +2 -2
  98. package/dist/chunks/{extractStyleProps-Dm0IZP1e.cjs.js.map → extractStyleProps-G58aSXl8.cjs.js.map} +1 -1
  99. package/dist/chunks/{form-field-BDfFWeqm.cjs.js → form-field-2NMmaZgp.cjs.js} +2 -2
  100. package/dist/chunks/{form-field-BDfFWeqm.cjs.js.map → form-field-2NMmaZgp.cjs.js.map} +1 -1
  101. package/dist/chunks/{form-field-DWeU1qy1.es.js → form-field-BrU_qJq3.es.js} +10 -10
  102. package/dist/chunks/{form-field-DWeU1qy1.es.js.map → form-field-BrU_qJq3.es.js.map} +1 -1
  103. package/dist/chunks/{group-BOu3usq9.es.js → group-F6OwMVlM.es.js} +2 -2
  104. package/dist/chunks/{group-BOu3usq9.es.js.map → group-F6OwMVlM.es.js.map} +1 -1
  105. package/dist/chunks/{heading-DpAKPw0U.es.js → heading-BtazVUd5.es.js} +2 -2
  106. package/dist/chunks/{heading-DpAKPw0U.es.js.map → heading-BtazVUd5.es.js.map} +1 -1
  107. package/dist/chunks/{icon-button-Bwkgcdyv.cjs.js → icon-button-CkjZc6Br.cjs.js} +2 -2
  108. package/dist/chunks/{icon-button-Bwkgcdyv.cjs.js.map → icon-button-CkjZc6Br.cjs.js.map} +1 -1
  109. package/dist/chunks/{icon-button-CbjASJ_F.es.js → icon-button-D4w1XTVg.es.js} +2 -2
  110. package/dist/chunks/{icon-button-CbjASJ_F.es.js.map → icon-button-D4w1XTVg.es.js.map} +1 -1
  111. package/dist/chunks/{icon-toggle-button-DC2DD7q-.cjs.js → icon-toggle-button-Bsj4XLsI.cjs.js} +2 -2
  112. package/dist/chunks/{icon-toggle-button-DC2DD7q-.cjs.js.map → icon-toggle-button-Bsj4XLsI.cjs.js.map} +1 -1
  113. package/dist/chunks/{icon-toggle-button-1ZhwPLkv.es.js → icon-toggle-button-CqILSznm.es.js} +2 -2
  114. package/dist/chunks/{icon-toggle-button-1ZhwPLkv.es.js.map → icon-toggle-button-CqILSznm.es.js.map} +1 -1
  115. package/dist/chunks/{index-DhO4Z_an.cjs.js → index-Bx9ez6gh.cjs.js} +5 -5
  116. package/dist/chunks/index-Bx9ez6gh.cjs.js.map +1 -0
  117. package/dist/chunks/{index-D26EXIvZ.es.js → index-DthLdwMN.es.js} +289 -85
  118. package/dist/chunks/index-DthLdwMN.es.js.map +1 -0
  119. package/dist/chunks/{kbd-B-9k-UDU.es.js → kbd-B--GEgRt.es.js} +2 -2
  120. package/dist/chunks/{kbd-B-9k-UDU.es.js.map → kbd-B--GEgRt.es.js.map} +1 -1
  121. package/dist/chunks/{localized-field-BEQbGU6A.cjs.js → localized-field-BqUMaU2Z.cjs.js} +2 -2
  122. package/dist/chunks/{localized-field-BEQbGU6A.cjs.js.map → localized-field-BqUMaU2Z.cjs.js.map} +1 -1
  123. package/dist/chunks/{localized-field-9JF_RJHm.es.js → localized-field-CV69UdIU.es.js} +11 -11
  124. package/dist/chunks/{localized-field-9JF_RJHm.es.js.map → localized-field-CV69UdIU.es.js.map} +1 -1
  125. package/dist/chunks/{menu-Bmph9lXW.es.js → menu-BvZy65zm.es.js} +13 -13
  126. package/dist/chunks/{menu-Bmph9lXW.es.js.map → menu-BvZy65zm.es.js.map} +1 -1
  127. package/dist/chunks/{menu-BGmtow-5.cjs.js → menu-CW4QVk-m.cjs.js} +2 -2
  128. package/dist/chunks/{menu-BGmtow-5.cjs.js.map → menu-CW4QVk-m.cjs.js.map} +1 -1
  129. package/dist/chunks/{money-input-CUR36zLn.cjs.js → money-input-BklJuHw0.cjs.js} +2 -2
  130. package/dist/chunks/{money-input-CUR36zLn.cjs.js.map → money-input-BklJuHw0.cjs.js.map} +1 -1
  131. package/dist/chunks/{money-input-B7wnGMVu.es.js → money-input-CavdTx-o.es.js} +6 -6
  132. package/dist/chunks/{money-input-B7wnGMVu.es.js.map → money-input-CavdTx-o.es.js.map} +1 -1
  133. package/dist/chunks/{multiline-text-input-CkziMMuo.cjs.js → multiline-text-input-4kwHZ5HO.cjs.js} +2 -2
  134. package/dist/chunks/{multiline-text-input-CkziMMuo.cjs.js.map → multiline-text-input-4kwHZ5HO.cjs.js.map} +1 -1
  135. package/dist/chunks/{multiline-text-input-DtDQeO0Q.es.js → multiline-text-input-BrE5zqv5.es.js} +3 -3
  136. package/dist/chunks/{multiline-text-input-DtDQeO0Q.es.js.map → multiline-text-input-BrE5zqv5.es.js.map} +1 -1
  137. package/dist/chunks/{nimbus-provider-B8IUnP0U.cjs.js → nimbus-provider-ChOIcVt6.cjs.js} +2 -2
  138. package/dist/chunks/{nimbus-provider-B8IUnP0U.cjs.js.map → nimbus-provider-ChOIcVt6.cjs.js.map} +1 -1
  139. package/dist/chunks/{nimbus-provider-BOlU4kA1.es.js → nimbus-provider-YB6qmSSk.es.js} +2 -2
  140. package/dist/chunks/{nimbus-provider-BOlU4kA1.es.js.map → nimbus-provider-YB6qmSSk.es.js.map} +1 -1
  141. package/dist/chunks/{number-input-C3zjMkHS.es.js → number-input-Cq95vVse.es.js} +30 -30
  142. package/dist/chunks/{number-input-C3zjMkHS.es.js.map → number-input-Cq95vVse.es.js.map} +1 -1
  143. package/dist/chunks/{number-input-C40q3d4I.cjs.js → number-input-DA_yy5BZ.cjs.js} +2 -2
  144. package/dist/chunks/{number-input-C40q3d4I.cjs.js.map → number-input-DA_yy5BZ.cjs.js.map} +1 -1
  145. package/dist/chunks/{pagination-fMz7HL5l.es.js → pagination-CBrMi7gy.es.js} +5 -5
  146. package/dist/chunks/{pagination-fMz7HL5l.es.js.map → pagination-CBrMi7gy.es.js.map} +1 -1
  147. package/dist/chunks/{pagination-BDx3pJkE.cjs.js → pagination-DUCo0L7g.cjs.js} +2 -2
  148. package/dist/chunks/{pagination-BDx3pJkE.cjs.js.map → pagination-DUCo0L7g.cjs.js.map} +1 -1
  149. package/dist/chunks/{password-input-D94jZSI9.cjs.js → password-input-DMbxYno4.cjs.js} +2 -2
  150. package/dist/chunks/{password-input-D94jZSI9.cjs.js.map → password-input-DMbxYno4.cjs.js.map} +1 -1
  151. package/dist/chunks/{password-input-1KfvAXxj.es.js → password-input-De29PFv6.es.js} +4 -4
  152. package/dist/chunks/{password-input-1KfvAXxj.es.js.map → password-input-De29PFv6.es.js.map} +1 -1
  153. package/dist/chunks/{popover-CiLVE71i.es.js → popover-yeZXM_2G.es.js} +2 -2
  154. package/dist/chunks/{popover-CiLVE71i.es.js.map → popover-yeZXM_2G.es.js.map} +1 -1
  155. package/dist/chunks/{progress-bar-h-SZWJrX.es.js → progress-bar-1XrmZIIp.es.js} +4 -4
  156. package/dist/chunks/{progress-bar-h-SZWJrX.es.js.map → progress-bar-1XrmZIIp.es.js.map} +1 -1
  157. package/dist/chunks/{progress-bar-BHCSpjRr.cjs.js → progress-bar-BBy8IR_W.cjs.js} +2 -2
  158. package/dist/chunks/{progress-bar-BHCSpjRr.cjs.js.map → progress-bar-BBy8IR_W.cjs.js.map} +1 -1
  159. package/dist/chunks/{radio-input-DRHL2tKC.es.js → radio-input-8sawPicQ.es.js} +5 -5
  160. package/dist/chunks/{radio-input-DRHL2tKC.es.js.map → radio-input-8sawPicQ.es.js.map} +1 -1
  161. package/dist/chunks/{radio-input-B0dnF7hm.cjs.js → radio-input-DK5681L5.cjs.js} +2 -2
  162. package/dist/chunks/{radio-input-B0dnF7hm.cjs.js.map → radio-input-DK5681L5.cjs.js.map} +1 -1
  163. package/dist/chunks/{range-calendar-C6yPojX-.es.js → range-calendar-C0InkSSo.es.js} +8 -8
  164. package/dist/chunks/{range-calendar-C6yPojX-.es.js.map → range-calendar-C0InkSSo.es.js.map} +1 -1
  165. package/dist/chunks/{range-calendar-RB6cR7Zf.cjs.js → range-calendar-CrHUTeyY.cjs.js} +2 -2
  166. package/dist/chunks/{range-calendar-RB6cR7Zf.cjs.js.map → range-calendar-CrHUTeyY.cjs.js.map} +1 -1
  167. package/dist/chunks/{rich-text-input-CXNeJFfO.cjs.js → rich-text-input-BygekdK5.cjs.js} +2 -2
  168. package/dist/chunks/{rich-text-input-CXNeJFfO.cjs.js.map → rich-text-input-BygekdK5.cjs.js.map} +1 -1
  169. package/dist/chunks/{rich-text-input-BzOdpZJX.es.js → rich-text-input-CUAI0VeV.es.js} +11 -11
  170. package/dist/chunks/{rich-text-input-BzOdpZJX.es.js.map → rich-text-input-CUAI0VeV.es.js.map} +1 -1
  171. package/dist/chunks/{search-input-C9ne8p91.es.js → search-input-DkFkEdiE.es.js} +43 -43
  172. package/dist/chunks/{search-input-C9ne8p91.es.js.map → search-input-DkFkEdiE.es.js.map} +1 -1
  173. package/dist/chunks/{search-input-Dh6MuIpa.cjs.js → search-input-r6P-vAgp.cjs.js} +2 -2
  174. package/dist/chunks/{search-input-Dh6MuIpa.cjs.js.map → search-input-r6P-vAgp.cjs.js.map} +1 -1
  175. package/dist/chunks/{select-CUjrJRUT.es.js → select-CWttUH5b.es.js} +70 -70
  176. package/dist/chunks/{select-CUjrJRUT.es.js.map → select-CWttUH5b.es.js.map} +1 -1
  177. package/dist/chunks/{select-CwAyhevQ.cjs.js → select-D_HPNSo0.cjs.js} +2 -2
  178. package/dist/chunks/{select-CwAyhevQ.cjs.js.map → select-D_HPNSo0.cjs.js.map} +1 -1
  179. package/dist/chunks/{separator-BbfyHuLb.cjs.js → separator-BBuhLJdN.cjs.js} +2 -2
  180. package/dist/chunks/{separator-BbfyHuLb.cjs.js.map → separator-BBuhLJdN.cjs.js.map} +1 -1
  181. package/dist/chunks/{separator-BoqnKRYR.es.js → separator-D7elp8bN.es.js} +3 -3
  182. package/dist/chunks/{separator-BoqnKRYR.es.js.map → separator-D7elp8bN.es.js.map} +1 -1
  183. package/dist/chunks/{split-button-jG61RIMv.es.js → split-button-Bczcosj2.es.js} +5 -5
  184. package/dist/chunks/{split-button-jG61RIMv.es.js.map → split-button-Bczcosj2.es.js.map} +1 -1
  185. package/dist/chunks/{split-button-C0suLBEJ.cjs.js → split-button-EHp7Svv4.cjs.js} +2 -2
  186. package/dist/chunks/{split-button-C0suLBEJ.cjs.js.map → split-button-EHp7Svv4.cjs.js.map} +1 -1
  187. package/dist/chunks/{switch-C_hXU6lZ.cjs.js → switch-CwJ5OFLP.cjs.js} +2 -2
  188. package/dist/chunks/{switch-C_hXU6lZ.cjs.js.map → switch-CwJ5OFLP.cjs.js.map} +1 -1
  189. package/dist/chunks/{switch-DxdWKUjM.es.js → switch-D_NMKG3Q.es.js} +3 -3
  190. package/dist/chunks/{switch-DxdWKUjM.es.js.map → switch-D_NMKG3Q.es.js.map} +1 -1
  191. package/dist/chunks/{tabs-BIfLcZNC.cjs.js → tabs-Cklmbi45.cjs.js} +2 -2
  192. package/dist/chunks/{tabs-BIfLcZNC.cjs.js.map → tabs-Cklmbi45.cjs.js.map} +1 -1
  193. package/dist/chunks/{tabs-c_3pvA8t.es.js → tabs-UlU9sGFI.es.js} +6 -6
  194. package/dist/chunks/{tabs-c_3pvA8t.es.js.map → tabs-UlU9sGFI.es.js.map} +1 -1
  195. package/dist/chunks/{tag-group-Vypgj2V2.cjs.js → tag-group-Cgs8C7Xc.cjs.js} +2 -2
  196. package/dist/chunks/{tag-group-Vypgj2V2.cjs.js.map → tag-group-Cgs8C7Xc.cjs.js.map} +1 -1
  197. package/dist/chunks/{tag-group-DrHF4Hpe.es.js → tag-group-uIKmx4eU.es.js} +31 -31
  198. package/dist/chunks/{tag-group-DrHF4Hpe.es.js.map → tag-group-uIKmx4eU.es.js.map} +1 -1
  199. package/dist/chunks/{text-hbdb3OKq.es.js → text-BgiP8ZB6.es.js} +2 -2
  200. package/dist/chunks/{text-hbdb3OKq.es.js.map → text-BgiP8ZB6.es.js.map} +1 -1
  201. package/dist/chunks/{text-input-BYpxoT5T.cjs.js → text-input-DHyVy0pg.cjs.js} +2 -2
  202. package/dist/chunks/{text-input-BYpxoT5T.cjs.js.map → text-input-DHyVy0pg.cjs.js.map} +1 -1
  203. package/dist/chunks/{text-input-BIJx8kgm.es.js → text-input-DWJ-CPVR.es.js} +4 -4
  204. package/dist/chunks/{text-input-BIJx8kgm.es.js.map → text-input-DWJ-CPVR.es.js.map} +1 -1
  205. package/dist/chunks/{time-input-BbCVYXM4.es.js → time-input-CwfMLg_y.es.js} +3 -3
  206. package/dist/chunks/{time-input-BbCVYXM4.es.js.map → time-input-CwfMLg_y.es.js.map} +1 -1
  207. package/dist/chunks/{time-input-BCBvliVc.cjs.js → time-input-UNOO6gaq.cjs.js} +2 -2
  208. package/dist/chunks/{time-input-BCBvliVc.cjs.js.map → time-input-UNOO6gaq.cjs.js.map} +1 -1
  209. package/dist/chunks/{toggle-button-u8DA8u8k.cjs.js → toggle-button-BHOVooIy.cjs.js} +2 -2
  210. package/dist/chunks/{toggle-button-u8DA8u8k.cjs.js.map → toggle-button-BHOVooIy.cjs.js.map} +1 -1
  211. package/dist/chunks/{toggle-button-BlyysRNw.es.js → toggle-button-CdJftdD2.es.js} +4 -4
  212. package/dist/chunks/{toggle-button-BlyysRNw.es.js.map → toggle-button-CdJftdD2.es.js.map} +1 -1
  213. package/dist/chunks/{toggle-button-group-B5PFZHXJ.es.js → toggle-button-group-D2eN4VNE.es.js} +2 -2
  214. package/dist/chunks/{toggle-button-group-B5PFZHXJ.es.js.map → toggle-button-group-D2eN4VNE.es.js.map} +1 -1
  215. package/dist/chunks/{toolbar-BJlA8UZl.cjs.js → toolbar-0yDwxKuL.cjs.js} +2 -2
  216. package/dist/chunks/{toolbar-BJlA8UZl.cjs.js.map → toolbar-0yDwxKuL.cjs.js.map} +1 -1
  217. package/dist/chunks/{toolbar-BFUzjQC7.es.js → toolbar-DXDZ5G0Q.es.js} +4 -4
  218. package/dist/chunks/{toolbar-BFUzjQC7.es.js.map → toolbar-DXDZ5G0Q.es.js.map} +1 -1
  219. package/dist/chunks/{tooltip-D0dkVEDQ.es.js → tooltip-CgzrzHZy.es.js} +3 -3
  220. package/dist/chunks/{tooltip-D0dkVEDQ.es.js.map → tooltip-CgzrzHZy.es.js.map} +1 -1
  221. package/dist/chunks/{useListState-Bdz8ihfA.es.js → useListState-wotFHS2D.es.js} +2 -2
  222. package/dist/chunks/{useListState-Bdz8ihfA.es.js.map → useListState-wotFHS2D.es.js.map} +1 -1
  223. package/dist/chunks/{useSingleSelectListState-C0k_6pJ5.es.js → useSingleSelectListState-CYr_aJQU.es.js} +2 -2
  224. package/dist/chunks/{useSingleSelectListState-C0k_6pJ5.es.js.map → useSingleSelectListState-CYr_aJQU.es.js.map} +1 -1
  225. package/dist/chunks/{utils-D5g6AoR2.es.js → utils-Cyja2WdR.es.js} +5 -5
  226. package/dist/chunks/{utils-D5g6AoR2.es.js.map → utils-Cyja2WdR.es.js.map} +1 -1
  227. package/dist/components/accordion.cjs +1 -1
  228. package/dist/components/accordion.es.js +1 -1
  229. package/dist/components/alert.cjs +1 -1
  230. package/dist/components/alert.es.js +1 -1
  231. package/dist/components/button.cjs +1 -1
  232. package/dist/components/button.es.js +1 -1
  233. package/dist/components/calendar.cjs +1 -1
  234. package/dist/components/calendar.es.js +1 -1
  235. package/dist/components/checkbox.cjs +1 -1
  236. package/dist/components/checkbox.es.js +1 -1
  237. package/dist/components/collapsible-motion.cjs +1 -1
  238. package/dist/components/collapsible-motion.es.js +1 -1
  239. package/dist/components/combobox.cjs +1 -1
  240. package/dist/components/combobox.es.js +1 -1
  241. package/dist/components/components.cjs +1 -1
  242. package/dist/components/components.es.js +1 -1
  243. package/dist/components/data-table.cjs +1 -1
  244. package/dist/components/data-table.es.js +1 -1
  245. package/dist/components/date-input.cjs +1 -1
  246. package/dist/components/date-input.es.js +1 -1
  247. package/dist/components/date-picker.cjs +1 -1
  248. package/dist/components/date-picker.es.js +1 -1
  249. package/dist/components/date-range-picker.cjs +1 -1
  250. package/dist/components/date-range-picker.es.js +1 -1
  251. package/dist/components/dialog.cjs +1 -1
  252. package/dist/components/dialog.es.js +1 -1
  253. package/dist/components/drawer.cjs +2 -0
  254. package/dist/components/drawer.cjs.map +1 -0
  255. package/dist/components/drawer.es.js +5 -0
  256. package/dist/components/drawer.es.js.map +1 -0
  257. package/dist/components/form-field.cjs +1 -1
  258. package/dist/components/form-field.es.js +1 -1
  259. package/dist/components/group.es.js +1 -1
  260. package/dist/components/heading.es.js +1 -1
  261. package/dist/components/icon-button.cjs +1 -1
  262. package/dist/components/icon-button.es.js +1 -1
  263. package/dist/components/icon-toggle-button.cjs +1 -1
  264. package/dist/components/icon-toggle-button.es.js +1 -1
  265. package/dist/components/kbd.es.js +1 -1
  266. package/dist/components/localized-field.cjs +1 -1
  267. package/dist/components/localized-field.es.js +1 -1
  268. package/dist/components/money-input.cjs +1 -1
  269. package/dist/components/money-input.es.js +1 -1
  270. package/dist/components/multiline-text-input.cjs +1 -1
  271. package/dist/components/multiline-text-input.es.js +1 -1
  272. package/dist/components/nimbus-provider.cjs +1 -1
  273. package/dist/components/nimbus-provider.es.js +1 -1
  274. package/dist/components/number-input.cjs +1 -1
  275. package/dist/components/number-input.es.js +1 -1
  276. package/dist/components/pagination.cjs +1 -1
  277. package/dist/components/pagination.es.js +1 -1
  278. package/dist/components/password-input.cjs +1 -1
  279. package/dist/components/password-input.es.js +1 -1
  280. package/dist/components/popover.es.js +1 -1
  281. package/dist/components/progress-bar.cjs +1 -1
  282. package/dist/components/progress-bar.es.js +1 -1
  283. package/dist/components/radio-input.cjs +1 -1
  284. package/dist/components/radio-input.es.js +1 -1
  285. package/dist/components/range-calendar.cjs +1 -1
  286. package/dist/components/range-calendar.es.js +1 -1
  287. package/dist/components/rich-text-input.cjs +1 -1
  288. package/dist/components/rich-text-input.es.js +1 -1
  289. package/dist/components/scoped-search-input.cjs +1 -1
  290. package/dist/components/scoped-search-input.es.js +4 -4
  291. package/dist/components/search-input.cjs +1 -1
  292. package/dist/components/search-input.es.js +1 -1
  293. package/dist/components/select.cjs +1 -1
  294. package/dist/components/select.es.js +1 -1
  295. package/dist/components/separator.cjs +1 -1
  296. package/dist/components/separator.es.js +1 -1
  297. package/dist/components/split-button.cjs +1 -1
  298. package/dist/components/split-button.es.js +1 -1
  299. package/dist/components/switch.cjs +1 -1
  300. package/dist/components/switch.es.js +1 -1
  301. package/dist/components/tabs.cjs +1 -1
  302. package/dist/components/tabs.es.js +1 -1
  303. package/dist/components/tag-group.cjs +1 -1
  304. package/dist/components/tag-group.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/text.es.js +1 -1
  308. package/dist/components/time-input.cjs +1 -1
  309. package/dist/components/time-input.es.js +1 -1
  310. package/dist/components/toggle-button-group.es.js +1 -1
  311. package/dist/components/toggle-button.cjs +1 -1
  312. package/dist/components/toggle-button.es.js +1 -1
  313. package/dist/components/toolbar.cjs +1 -1
  314. package/dist/components/toolbar.es.js +1 -1
  315. package/dist/components/tooltip.es.js +1 -1
  316. package/dist/dialog.d.ts +1 -1
  317. package/dist/drawer.d.ts +577 -0
  318. package/dist/index.cjs +1 -1
  319. package/dist/index.cjs.map +1 -1
  320. package/dist/index.es.js +56 -54
  321. package/dist/index.es.js.map +1 -1
  322. package/package.json +5 -5
  323. package/dist/chunks/dialog-BypIffa5.cjs.js.map +0 -1
  324. package/dist/chunks/dialog-DeZMe0yJ.es.js.map +0 -1
  325. package/dist/chunks/dialog.title-BmS1MORJ.es.js +0 -341
  326. package/dist/chunks/dialog.title-BmS1MORJ.es.js.map +0 -1
  327. package/dist/chunks/dialog.title-CsuOBAm8.cjs.js +0 -2
  328. package/dist/chunks/dialog.title-CsuOBAm8.cjs.js.map +0 -1
  329. package/dist/chunks/index-D26EXIvZ.es.js.map +0 -1
  330. package/dist/chunks/index-DhO4Z_an.cjs.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dialog.title-CtQfDha4.cjs.js","sources":["../../src/components/dialog/dialog.slots.tsx","../../src/components/dialog/components/dialog.context.tsx","../../src/components/dialog/components/dialog.root.tsx","../../src/components/dialog/components/dialog.trigger.tsx","../../src/components/dialog/components/dialog.content.tsx","../../src/components/dialog/components/dialog.header.tsx","../../src/components/dialog/components/dialog.body.tsx","../../src/components/dialog/components/dialog.footer.tsx","../../src/components/dialog/dialog.i18n.ts","../../src/components/dialog/components/dialog.close-trigger.tsx","../../src/components/dialog/components/dialog.title.tsx"],"sourcesContent":["import {\n createSlotRecipeContext,\n type HTMLChakraProps,\n} from \"@chakra-ui/react/styled-system\";\nimport { dialogSlotRecipe } from \"./dialog.recipe\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: dialogSlotRecipe,\n});\n\n// Root slot - provides recipe context + config to all child components\nexport type DialogRootSlotProps = HTMLChakraProps<\"div\">;\nexport const DialogRootSlot = withProvider<HTMLDivElement, DialogRootSlotProps>(\n \"div\",\n \"root\"\n);\n\n// Trigger slot - button that opens the dialog\nexport type DialogTriggerSlotProps = HTMLChakraProps<\"button\">;\nexport const DialogTriggerSlot = withContext<\n HTMLButtonElement,\n DialogTriggerSlotProps\n>(\"button\", \"trigger\");\n\n// Backdrop slot - overlay displayed behind the dialog\nexport type DialogModalOverlaySlotProps = HTMLChakraProps<\"div\">;\nexport const DialogModalOverlaySlot = withContext<\n HTMLDivElement,\n DialogModalOverlaySlotProps\n>(\"div\", \"modalOverlay\");\n\n// modal slot - positions the dialog content\nexport type DialogModalSlotProps = HTMLChakraProps<\"div\">;\nexport const DialogModalSlot = withContext<\n HTMLDivElement,\n DialogModalSlotProps\n>(\"div\", \"modal\");\n\n// Content slot - main dialog container\nexport type DialogContentSlotProps = HTMLChakraProps<\"div\">;\nexport const DialogContentSlot = withContext<\n HTMLDivElement,\n DialogContentSlotProps\n>(\"div\", \"content\");\n\n// Header slot - dialog header section\nexport type DialogHeaderSlotProps = HTMLChakraProps<\"header\">;\nexport const DialogHeaderSlot = withContext<HTMLElement, DialogHeaderSlotProps>(\n \"header\",\n \"header\"\n);\n\n// Body slot - dialog body content\nexport type DialogBodySlotProps = HTMLChakraProps<\"div\">;\nexport const DialogBodySlot = withContext<HTMLDivElement, DialogBodySlotProps>(\n \"div\",\n \"body\"\n);\n\n// Footer slot - dialog footer section with actions\nexport type DialogFooterSlotProps = HTMLChakraProps<\"footer\">;\nexport const DialogFooterSlot = withContext<HTMLElement, DialogFooterSlotProps>(\n \"footer\",\n \"footer\"\n);\n\n// Title slot - accessible dialog title\nexport type DialogTitleSlotProps = HTMLChakraProps<\"h2\">;\nexport const DialogTitleSlot = withContext<\n HTMLHeadingElement,\n DialogTitleSlotProps\n>(\"h2\", \"title\");\n\n// Close trigger slot - div container for positioning close button\nexport type DialogCloseTriggerSlotProps = HTMLChakraProps<\"div\">;\nexport const DialogCloseTriggerSlot = withContext<\n HTMLDivElement,\n DialogCloseTriggerSlotProps\n>(\"div\", \"closeTrigger\");\n","import { createContext, useContext } from \"react\";\nimport type { DialogRootProps } from \"../dialog.types\";\n\n/**\n * Context value containing dialog configuration passed from Root to child components\n */\nexport type DialogContextValue = DialogRootProps;\n\nexport const DialogContext = createContext<DialogContextValue | undefined>(\n undefined\n);\n\n/**\n * Hook to access dialog configuration from DialogContext\n * @returns Dialog configuration from context\n * @throws Error if used outside of Dialog.Root\n */\nexport const useDialogRootContext = (): DialogContextValue => {\n const context = useContext(DialogContext);\n if (!context) {\n throw new Error(\"useDialogContext must be used within Dialog.Root\");\n }\n return context;\n};\n\n/**\n * Provider component that passes dialog configuration down to child components\n */\nexport const DialogProvider = ({\n children,\n value,\n}: {\n children: React.ReactNode;\n value: DialogContextValue;\n}) => {\n return <DialogContext value={value}>{children}</DialogContext>;\n};\n","import React from \"react\";\nimport { DialogTrigger as RaDialogTrigger } from \"react-aria-components\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { DialogRootSlot } from \"../dialog.slots\";\nimport type { DialogRootProps } from \"../dialog.types\";\nimport { DialogProvider } from \"./dialog.context\";\n\nexport const DialogRoot = (props: DialogRootProps) => {\n const recipe = useSlotRecipe({ key: \"dialog\" });\n // Extract recipe props\n const [recipeProps] = recipe.splitVariantProps(props);\n // Extract props that are usable on RaDialogTrigger\n const { children, isOpen, onOpenChange, defaultOpen = false } = props;\n\n const content = <DialogRootSlot {...recipeProps}>{children}</DialogRootSlot>;\n\n // Check if any direct child is a Dialog.Trigger component\n // React Aria's DialogTrigger needs a pressable child, so we only use it when there's a trigger\n const hasDialogTrigger = React.Children.toArray(children).some((child) => {\n if (React.isValidElement(child) && typeof child.type === \"function\") {\n const displayName = (\n child.type as React.ComponentType & { displayName?: string }\n )?.displayName;\n return (\n displayName === \"DialogTrigger\" || displayName === \"Dialog.Trigger\"\n );\n }\n return false;\n });\n\n // Share all props (config + variant props) with the Dialog subcomponents\n return (\n <DialogProvider value={props}>\n {hasDialogTrigger ? (\n // When there's a Dialog.Trigger, use DialogTrigger for React Aria integration\n <RaDialogTrigger\n isOpen={isOpen}\n onOpenChange={onOpenChange}\n defaultOpen={defaultOpen}\n >\n {content}\n </RaDialogTrigger>\n ) : (\n // When no Dialog.Trigger, skip using RaDialogTrigger to avoid console.warning's\n content\n )}\n </DialogProvider>\n );\n};\n\nDialogRoot.displayName = \"Dialog.Root\";\n","import { Button as RaButton } from \"react-aria-components\";\nimport { DialogTriggerSlot } from \"../dialog.slots\";\nimport type { DialogTriggerProps } from \"../dialog.types\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport { chakra } from \"@chakra-ui/react/styled-system\";\n\nexport const DialogTrigger = ({\n ref: forwardedRef,\n children,\n asChild,\n ...props\n}: DialogTriggerProps) => {\n // If asChild is true, wrap children directly in RaButton with asChild\n if (asChild) {\n return (\n <chakra.button ref={forwardedRef} asChild {...props}>\n {children}\n </chakra.button>\n );\n }\n\n const [styleProps, restProps] = extractStyleProps(props);\n\n // Otherwise, wrap with both DialogTriggerSlot and RaButton\n // Only pass React Aria compatible props to avoid type conflicts\n return (\n <DialogTriggerSlot {...styleProps} asChild>\n <RaButton ref={forwardedRef} {...restProps}>\n {children}\n </RaButton>\n </DialogTriggerSlot>\n );\n};\n\nDialogTrigger.displayName = \"Dialog.Trigger\";\n","import {\n Modal as RaModal,\n ModalOverlay as RaModalOverlay,\n Dialog as RaDialog,\n} from \"react-aria-components\";\nimport {\n DialogModalOverlaySlot,\n DialogModalSlot,\n DialogContentSlot,\n} from \"../dialog.slots\";\nimport type { DialogContentProps } from \"../dialog.types\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport { useDialogRootContext } from \"./dialog.context\";\n\nexport const DialogContent = (props: DialogContentProps) => {\n const { ref: forwardedRef, children, ...restProps } = props;\n\n // Get recipe configuration from context instead of props\n const {\n defaultOpen,\n isDismissable,\n isKeyboardDismissDisabled,\n shouldCloseOnInteractOutside,\n isOpen,\n onOpenChange,\n } = useDialogRootContext();\n\n const modalProps = {\n defaultOpen,\n isDismissable,\n isKeyboardDismissDisabled,\n shouldCloseOnInteractOutside,\n isOpen,\n onOpenChange,\n };\n\n const [styleProps] = extractStyleProps(restProps);\n\n return (\n <DialogModalOverlaySlot asChild>\n <RaModalOverlay {...modalProps}>\n <DialogModalSlot asChild>\n <RaModal>\n <DialogContentSlot asChild {...styleProps}>\n <RaDialog ref={forwardedRef}>{children}</RaDialog>\n </DialogContentSlot>\n </RaModal>\n </DialogModalSlot>\n </RaModalOverlay>\n </DialogModalOverlaySlot>\n );\n};\n\nDialogContent.displayName = \"Dialog.Content\";\n","import { DialogHeaderSlot } from \"../dialog.slots\";\nimport type { DialogHeaderProps } from \"../dialog.types\";\n\nexport const DialogHeader = (props: DialogHeaderProps) => {\n const { ref: forwardedRef, children, ...restProps } = props;\n\n return (\n <DialogHeaderSlot ref={forwardedRef} {...restProps}>\n {children}\n </DialogHeaderSlot>\n );\n};\n\nDialogHeader.displayName = \"Dialog.Header\";\n","import { DialogBodySlot } from \"../dialog.slots\";\nimport type { DialogBodyProps } from \"../dialog.types\";\nimport { useDialogRootContext } from \"./dialog.context\";\n\nexport const DialogBody = (props: DialogBodyProps) => {\n const { ref: forwardedRef, children, ...restProps } = props;\n const { scrollBehavior } = useDialogRootContext();\n\n const defaultProps = {\n /**\n * if scrollBehavior is set to \"inside\", set tabIndex to 0 to allow the body to\n * receive focus, effectively enabling scrolling via keyboard\n * arrow keys.\n */\n tabIndex: scrollBehavior === \"inside\" ? 0 : undefined,\n };\n\n return (\n <DialogBodySlot ref={forwardedRef} {...defaultProps} {...restProps}>\n {children}\n </DialogBodySlot>\n );\n};\n\nDialogBody.displayName = \"Dialog.Body\";\n","import { DialogFooterSlot } from \"../dialog.slots\";\nimport type { DialogFooterProps } from \"../dialog.types\";\n\nexport const DialogFooter = (props: DialogFooterProps) => {\n const { ref: forwardedRef, children, ...restProps } = props;\n\n return (\n <DialogFooterSlot ref={forwardedRef} {...restProps}>\n {children}\n </DialogFooterSlot>\n );\n};\n\nDialogFooter.displayName = \"Dialog.Footer\";\n","import { defineMessages } from \"react-intl\";\n\nexport const messages = defineMessages({\n closeTrigger: {\n id: \"Nimbus.Dialog.closeTrigger\",\n description: \"aria-label for the default close trigger button\",\n defaultMessage: \"Close dialog\",\n },\n});\n","import { Close } from \"@commercetools/nimbus-icons\";\nimport { DialogCloseTriggerSlot } from \"../dialog.slots\";\nimport type { DialogCloseTriggerProps } from \"../dialog.types\";\nimport { IconButton } from \"@/components\";\nimport { messages } from \"../dialog.i18n\";\nimport { useIntl } from \"react-intl\";\n\nexport const DialogCloseTrigger = (props: DialogCloseTriggerProps) => {\n const { ref: forwardedRef, \"aria-label\": ariaLabel, ...restProps } = props;\n const intl = useIntl();\n\n return (\n <DialogCloseTriggerSlot>\n <IconButton\n ref={forwardedRef}\n slot=\"close\"\n size=\"xs\"\n variant=\"ghost\"\n aria-label={ariaLabel || intl.formatMessage(messages.closeTrigger)}\n {...restProps}\n >\n <Close />\n </IconButton>\n </DialogCloseTriggerSlot>\n );\n};\n\nDialogCloseTrigger.displayName = \"Dialog.CloseTrigger\";\n","import { DialogTitleSlot } from \"../dialog.slots\";\nimport type { DialogTitleProps } from \"../dialog.types\";\nimport { Heading } from \"@/components\";\n\nexport const DialogTitle = (props: DialogTitleProps) => {\n const { ref: forwardedRef, children, ...restProps } = props;\n\n return (\n <DialogTitleSlot asChild {...restProps}>\n <Heading ref={forwardedRef} slot=\"title\" as=\"h2\" textStyle=\"lg\">\n {children}\n </Heading>\n </DialogTitleSlot>\n );\n};\n\nDialogTitle.displayName = \"Dialog.Title\";\n"],"names":["withProvider","withContext","createSlotRecipeContext","dialogSlotRecipe","DialogRootSlot","DialogTriggerSlot","DialogModalOverlaySlot","DialogModalSlot","DialogContentSlot","DialogHeaderSlot","DialogBodySlot","DialogFooterSlot","DialogTitleSlot","DialogCloseTriggerSlot","DialogContext","createContext","useDialogRootContext","context","useContext","DialogProvider","children","value","jsx","DialogRoot","props","recipe","useSlotRecipe","recipeProps","isOpen","onOpenChange","defaultOpen","content","hasDialogTrigger","React","child","displayName","RaDialogTrigger","DialogTrigger","forwardedRef","asChild","chakra","styleProps","restProps","extractStyleProps","RaButton","DialogContent","isDismissable","isKeyboardDismissDisabled","shouldCloseOnInteractOutside","modalProps","RaModalOverlay","RaModal","RaDialog","DialogHeader","DialogBody","scrollBehavior","defaultProps","DialogFooter","messages","defineMessages","DialogCloseTrigger","ariaLabel","intl","useIntl","IconButton","Close","DialogTitle","Heading"],"mappings":"2cAMM,CAAE,aAAAA,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,OAAQC,EAAAA,gBACV,CAAC,EAIYC,EAAiBJ,EAC5B,MACA,MACF,EAIaK,EAAoBJ,EAG/B,SAAU,SAAS,EAIRK,EAAyBL,EAGpC,MAAO,cAAc,EAIVM,EAAkBN,EAG7B,MAAO,OAAO,EAIHO,EAAoBP,EAG/B,MAAO,SAAS,EAILQ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AK,QAAQ,GAAG,KAAK,UAAU,KACxD,SAAAlB,EACH,EACF,CAEJ,EAEA8C,EAAY,YAAc"}
@@ -0,0 +1,2 @@
1
+ "use strict";const r=require("react/jsx-runtime"),u=require("react"),x=require("./Dialog-XGXh4NXU.cjs.js"),g=require("@chakra-ui/react/styled-system"),D=require("./index-Bx9ez6gh.cjs.js"),q=require("./Button-CFZnLKVR.cjs.js"),h=require("./extractStyleProps-G58aSXl8.cjs.js"),p=require("./Modal-CVOcKPNx.cjs.js"),N=require("./heading-BTacGwo9.cjs.js"),O=require("@commercetools/nimbus-icons"),y=require("react-intl"),B=require("./icon-button-CkjZc6Br.cjs.js"),{withProvider:I,withContext:a}=g.createSlotRecipeContext({recipe:D.drawerSlotRecipe}),M=I("div","root"),H=a("button","trigger"),F=a("div","modalOverlay"),E=a("div","modal"),V=a("div","content"),k=a("header","header"),z=a("div","body"),A=a("footer","footer"),K=a("h2","title"),L=a("div","closeTrigger"),C=u.createContext(void 0),G=()=>{const e=u.useContext(C);if(!e)throw new Error("useDrawerContext must be used within Drawer.Root");return e},J=({children:e,value:t})=>r.jsx(C,{value:t,children:e}),m=e=>{const t=g.useSlotRecipe({recipe:D.drawerSlotRecipe}),[s]=t.splitVariantProps(e),{children:o,isOpen:n,onOpenChange:i,defaultOpen:f=!1}=e,l=r.jsx(M,{...s,children:o}),w=u.Children.toArray(o).some(c=>{if(u.isValidElement(c)&&typeof c.type=="function"){const d=c.type?.displayName;return d==="DrawerTrigger"||d==="Drawer.Trigger"}return!1});return r.jsx(J,{value:e,children:w?r.jsx(x.$de32f1b87079253c$export$2e1e1122cf0cba88,{isOpen:n,onOpenChange:i,defaultOpen:f,children:l}):l})};m.displayName="Drawer.Root";const b=({ref:e,children:t,asChild:s,...o})=>{if(s)return r.jsx(g.chakra.button,{ref:e,asChild:!0,...o,children:t});const[n,i]=h.extractStyleProps(o);return r.jsx(H,{...n,asChild:!0,children:r.jsx(q.$d2b4bc8c273e7be6$export$353f5b6fc5456de1,{ref:e,...i,children:t})})};b.displayName="Drawer.Trigger";const j=e=>{const{ref:t,children:s,...o}=e,{defaultOpen:n,isDismissable:i,isKeyboardDismissDisabled:f,shouldCloseOnInteractOutside:l,isOpen:w,onOpenChange:c}=G(),d={defaultOpen:n,isDismissable:i,isKeyboardDismissDisabled:f,shouldCloseOnInteractOutside:l,isOpen:w,onOpenChange:c},[v]=h.extractStyleProps(o);return r.jsx(F,{asChild:!0,children:r.jsx(p.$f3f84453ead64de5$export$8948f78d83984c69,{...d,children:r.jsx(E,{asChild:!0,children:r.jsx(p.$f3f84453ead64de5$export$2b77a92f1a5ad772,{children:r.jsx(V,{asChild:!0,...v,children:r.jsx(x.$de32f1b87079253c$export$3ddf2d174ce01153,{ref:t,children:s})})})})})})};j.displayName="Drawer.Content";const S=e=>{const{ref:t,children:s,...o}=e;return r.jsx(k,{ref:t,...o,children:s})};S.displayName="Drawer.Header";const T=e=>{const{ref:t,children:s,...o}=e,n={tabIndex:0};return r.jsx(z,{ref:t,...n,...o,children:s})};T.displayName="Drawer.Body";const P=e=>{const{ref:t,children:s,...o}=e;return r.jsx(A,{ref:t,...o,children:s})};P.displayName="Drawer.Footer";const R=e=>{const{ref:t,children:s,...o}=e;return r.jsx(K,{asChild:!0,...o,children:r.jsx(N.Heading,{ref:t,slot:"title",as:"h2",textStyle:"lg",children:s})})};R.displayName="Drawer.Title";const Q=y.defineMessages({closeTrigger:{id:"Nimbus.Drawer.closeTrigger",description:"aria-label for the default close trigger button",defaultMessage:"Close drawer"}}),$=e=>{const{ref:t,"aria-label":s,...o}=e,n=y.useIntl();return r.jsx(L,{children:r.jsx(B.IconButton,{ref:t,slot:"close",size:"xs",variant:"ghost","aria-label":s||n.formatMessage(Q.closeTrigger),...o,children:r.jsx(O.Close,{})})})};$.displayName="Drawer.CloseTrigger";const U={Root:m,Trigger:b,Content:j,Header:S,Body:T,Footer:P,Title:R,CloseTrigger:$};exports.Drawer=U;
2
+ //# sourceMappingURL=drawer-DzYXHVbg.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drawer-DzYXHVbg.cjs.js","sources":["../../src/components/drawer/drawer.slots.tsx","../../src/components/drawer/components/drawer.context.tsx","../../src/components/drawer/components/drawer.root.tsx","../../src/components/drawer/components/drawer.trigger.tsx","../../src/components/drawer/components/drawer.content.tsx","../../src/components/drawer/components/drawer.header.tsx","../../src/components/drawer/components/drawer.body.tsx","../../src/components/drawer/components/drawer.footer.tsx","../../src/components/drawer/components/drawer.title.tsx","../../src/components/drawer/drawer.i18n.ts","../../src/components/drawer/components/drawer.close-trigger.tsx","../../src/components/drawer/drawer.tsx"],"sourcesContent":["import {\n createSlotRecipeContext,\n type HTMLChakraProps,\n} from \"@chakra-ui/react/styled-system\";\nimport { drawerSlotRecipe } from \"./drawer.recipe\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: drawerSlotRecipe,\n});\n\n// Root slot - provides recipe context + config to all child components\nexport type DrawerRootSlotProps = HTMLChakraProps<\"div\">;\nexport const DrawerRootSlot = withProvider<HTMLDivElement, DrawerRootSlotProps>(\n \"div\",\n \"root\"\n);\n\n// Trigger slot - button that opens the drawer\nexport type DrawerTriggerSlotProps = HTMLChakraProps<\"button\">;\nexport const DrawerTriggerSlot = withContext<\n HTMLButtonElement,\n DrawerTriggerSlotProps\n>(\"button\", \"trigger\");\n\n// Backdrop slot - overlay displayed behind the drawer\nexport type DrawerModalOverlaySlotProps = HTMLChakraProps<\"div\">;\nexport const DrawerModalOverlaySlot = withContext<\n HTMLDivElement,\n DrawerModalOverlaySlotProps\n>(\"div\", \"modalOverlay\");\n\n// modal slot - positions the drawer content\nexport type DrawerModalSlotProps = HTMLChakraProps<\"div\">;\nexport const DrawerModalSlot = withContext<\n HTMLDivElement,\n DrawerModalSlotProps\n>(\"div\", \"modal\");\n\n// Content slot - main drawer container\nexport type DrawerContentSlotProps = HTMLChakraProps<\"div\">;\nexport const DrawerContentSlot = withContext<\n HTMLDivElement,\n DrawerContentSlotProps\n>(\"div\", \"content\");\n\n// Header slot - drawer header section\nexport type DrawerHeaderSlotProps = HTMLChakraProps<\"header\">;\nexport const DrawerHeaderSlot = withContext<HTMLElement, DrawerHeaderSlotProps>(\n \"header\",\n \"header\"\n);\n\n// Body slot - drawer body content\nexport type DrawerBodySlotProps = HTMLChakraProps<\"div\">;\nexport const DrawerBodySlot = withContext<HTMLDivElement, DrawerBodySlotProps>(\n \"div\",\n \"body\"\n);\n\n// Footer slot - drawer footer section with actions\nexport type DrawerFooterSlotProps = HTMLChakraProps<\"footer\">;\nexport const DrawerFooterSlot = withContext<HTMLElement, DrawerFooterSlotProps>(\n \"footer\",\n \"footer\"\n);\n\n// Title slot - accessible drawer title\nexport type DrawerTitleSlotProps = HTMLChakraProps<\"h2\">;\nexport const DrawerTitleSlot = withContext<\n HTMLHeadingElement,\n DrawerTitleSlotProps\n>(\"h2\", \"title\");\n\n// Close trigger slot - div container for positioning close button\nexport type DrawerCloseTriggerSlotProps = HTMLChakraProps<\"div\">;\nexport const DrawerCloseTriggerSlot = withContext<\n HTMLDivElement,\n DrawerCloseTriggerSlotProps\n>(\"div\", \"closeTrigger\");\n","import { createContext, useContext } from \"react\";\nimport type { DrawerRootProps } from \"../drawer.types\";\n\n/**\n * Context value containing drawer configuration passed from Root to child components\n */\nexport type DrawerContextValue = DrawerRootProps;\n\nexport const DrawerContext = createContext<DrawerContextValue | undefined>(\n undefined\n);\n\n/**\n * Hook to access drawer configuration from DrawerContext\n * @returns Drawer configuration from context\n * @throws Error if used outside of Drawer.Root\n */\nexport const useDrawerRootContext = (): DrawerContextValue => {\n const context = useContext(DrawerContext);\n if (!context) {\n throw new Error(\"useDrawerContext must be used within Drawer.Root\");\n }\n return context;\n};\n\n/**\n * Provider component that passes drawer configuration down to child components\n */\nexport const DrawerProvider = ({\n children,\n value,\n}: {\n children: React.ReactNode;\n value: DrawerContextValue;\n}) => {\n return <DrawerContext value={value}>{children}</DrawerContext>;\n};\n","import React from \"react\";\nimport { DialogTrigger as RaDialogTrigger } from \"react-aria-components\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { DrawerRootSlot } from \"../drawer.slots\";\nimport type { DrawerRootProps } from \"../drawer.types\";\nimport { DrawerProvider } from \"./drawer.context\";\nimport { drawerSlotRecipe } from \"../drawer.recipe\";\n\nexport const DrawerRoot = (props: DrawerRootProps) => {\n const recipe = useSlotRecipe({ recipe: drawerSlotRecipe });\n // Extract recipe props\n const [recipeProps] = recipe.splitVariantProps(props);\n // Extract props that are usable on RaDialogTrigger\n const { children, isOpen, onOpenChange, defaultOpen = false } = props;\n\n const content = <DrawerRootSlot {...recipeProps}>{children}</DrawerRootSlot>;\n\n // Check if any child is a Drawer.Trigger component\n // React Aria's DialogTrigger needs a pressable child, so we only use it when there's a trigger\n const hasDrawerTrigger = React.Children.toArray(children).some((child) => {\n if (React.isValidElement(child) && typeof child.type === \"function\") {\n const displayName = (\n child.type as React.ComponentType & { displayName?: string }\n )?.displayName;\n return (\n displayName === \"DrawerTrigger\" || displayName === \"Drawer.Trigger\"\n );\n }\n return false;\n });\n\n // Share all props (config + variant props) with the Drawer subcomponents\n return (\n <DrawerProvider value={props}>\n {hasDrawerTrigger ? (\n // When there's a Drawer.Trigger, use DialogTrigger for React Aria integration\n <RaDialogTrigger\n isOpen={isOpen}\n onOpenChange={onOpenChange}\n defaultOpen={defaultOpen}\n >\n {content}\n </RaDialogTrigger>\n ) : (\n // When no Drawer.Trigger, skip DialogTrigger to avoid the warning\n content\n )}\n </DrawerProvider>\n );\n};\n\nDrawerRoot.displayName = \"Drawer.Root\";\n","import { Button as RaButton } from \"react-aria-components\";\nimport { DrawerTriggerSlot } from \"../drawer.slots\";\nimport type { DrawerTriggerProps } from \"../drawer.types\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport { chakra } from \"@chakra-ui/react/styled-system\";\n\nexport const DrawerTrigger = ({\n ref: forwardedRef,\n children,\n asChild,\n ...props\n}: DrawerTriggerProps) => {\n // If asChild is true, wrap children directly in RaButton with asChild\n if (asChild) {\n return (\n <chakra.button ref={forwardedRef} asChild {...props}>\n {children}\n </chakra.button>\n );\n }\n\n const [styleProps, restProps] = extractStyleProps(props);\n\n // Otherwise, wrap with both DrawerTriggerSlot and RaButton\n // Only pass React Aria compatible props to avoid type conflicts\n return (\n <DrawerTriggerSlot {...styleProps} asChild>\n <RaButton ref={forwardedRef} {...restProps}>\n {children}\n </RaButton>\n </DrawerTriggerSlot>\n );\n};\n\nDrawerTrigger.displayName = \"Drawer.Trigger\";\n","import {\n Modal as RaModal,\n ModalOverlay as RaModalOverlay,\n Dialog as RaDialog,\n} from \"react-aria-components\";\nimport {\n DrawerModalOverlaySlot,\n DrawerModalSlot,\n DrawerContentSlot,\n} from \"../drawer.slots\";\nimport type { DrawerContentProps } from \"../drawer.types\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport { useDrawerRootContext } from \"./drawer.context\";\n\nexport const DrawerContent = (props: DrawerContentProps) => {\n const { ref: forwardedRef, children, ...restProps } = props;\n\n // Get recipe configuration from context instead of props\n const {\n defaultOpen,\n isDismissable,\n isKeyboardDismissDisabled,\n shouldCloseOnInteractOutside,\n isOpen,\n onOpenChange,\n } = useDrawerRootContext();\n\n const modalProps = {\n defaultOpen,\n isDismissable,\n isKeyboardDismissDisabled,\n shouldCloseOnInteractOutside,\n isOpen,\n onOpenChange,\n };\n\n const [styleProps] = extractStyleProps(restProps);\n\n return (\n <DrawerModalOverlaySlot asChild>\n <RaModalOverlay {...modalProps}>\n <DrawerModalSlot asChild>\n <RaModal>\n <DrawerContentSlot asChild {...styleProps}>\n <RaDialog ref={forwardedRef}>{children}</RaDialog>\n </DrawerContentSlot>\n </RaModal>\n </DrawerModalSlot>\n </RaModalOverlay>\n </DrawerModalOverlaySlot>\n );\n};\n\nDrawerContent.displayName = \"Drawer.Content\";\n","import { DrawerHeaderSlot } from \"../drawer.slots\";\nimport type { DrawerHeaderProps } from \"../drawer.types\";\n\nexport const DrawerHeader = (props: DrawerHeaderProps) => {\n const { ref: forwardedRef, children, ...restProps } = props;\n\n return (\n <DrawerHeaderSlot ref={forwardedRef} {...restProps}>\n {children}\n </DrawerHeaderSlot>\n );\n};\n\nDrawerHeader.displayName = \"Drawer.Header\";\n","import { DrawerBodySlot } from \"../drawer.slots\";\nimport type { DrawerBodyProps } from \"../drawer.types\";\n\nexport const DrawerBody = (props: DrawerBodyProps) => {\n const { ref: forwardedRef, children, ...restProps } = props;\n\n const defaultProps = {\n /**\n * Set tabIndex to 0 to allow the body to receive focus,\n * effectively enabling scrolling via keyboard arrow keys.\n */\n tabIndex: 0,\n };\n\n return (\n <DrawerBodySlot ref={forwardedRef} {...defaultProps} {...restProps}>\n {children}\n </DrawerBodySlot>\n );\n};\n\nDrawerBody.displayName = \"Drawer.Body\";\n","import { DrawerFooterSlot } from \"../drawer.slots\";\nimport type { DrawerFooterProps } from \"../drawer.types\";\n\nexport const DrawerFooter = (props: DrawerFooterProps) => {\n const { ref: forwardedRef, children, ...restProps } = props;\n\n return (\n <DrawerFooterSlot ref={forwardedRef} {...restProps}>\n {children}\n </DrawerFooterSlot>\n );\n};\n\nDrawerFooter.displayName = \"Drawer.Footer\";\n","import { DrawerTitleSlot } from \"../drawer.slots\";\nimport type { DrawerTitleProps } from \"../drawer.types\";\nimport { Heading } from \"@/components\";\n\nexport const DrawerTitle = (props: DrawerTitleProps) => {\n const { ref: forwardedRef, children, ...restProps } = props;\n\n return (\n <DrawerTitleSlot asChild {...restProps}>\n <Heading ref={forwardedRef} slot=\"title\" as=\"h2\" textStyle=\"lg\">\n {children}\n </Heading>\n </DrawerTitleSlot>\n );\n};\n\nDrawerTitle.displayName = \"Drawer.Title\";\n","import { defineMessages } from \"react-intl\";\n\nexport const messages = defineMessages({\n closeTrigger: {\n id: \"Nimbus.Drawer.closeTrigger\",\n description: \"aria-label for the default close trigger button\",\n defaultMessage: \"Close drawer\",\n },\n});\n","import { Close } from \"@commercetools/nimbus-icons\";\nimport { DrawerCloseTriggerSlot } from \"../drawer.slots\";\nimport type { DrawerCloseTriggerProps } from \"../drawer.types\";\nimport { IconButton } from \"@/components\";\nimport { messages } from \"../drawer.i18n\";\nimport { useIntl } from \"react-intl\";\n\nexport const DrawerCloseTrigger = (props: DrawerCloseTriggerProps) => {\n const { ref: forwardedRef, \"aria-label\": ariaLabel, ...restProps } = props;\n const intl = useIntl();\n\n return (\n <DrawerCloseTriggerSlot>\n <IconButton\n ref={forwardedRef}\n slot=\"close\"\n size=\"xs\"\n variant=\"ghost\"\n aria-label={ariaLabel || intl.formatMessage(messages.closeTrigger)}\n {...restProps}\n >\n <Close />\n </IconButton>\n </DrawerCloseTriggerSlot>\n );\n};\n\nDrawerCloseTrigger.displayName = \"Drawer.CloseTrigger\";\n","import { DrawerRoot } from \"./components/drawer.root\";\nimport { DrawerTrigger } from \"./components/drawer.trigger\";\nimport { DrawerContent } from \"./components/drawer.content\";\nimport { DrawerHeader } from \"./components/drawer.header\";\nimport { DrawerBody } from \"./components/drawer.body\";\nimport { DrawerFooter } from \"./components/drawer.footer\";\nimport { DrawerTitle } from \"./components/drawer.title\";\nimport { DrawerCloseTrigger } from \"./components/drawer.close-trigger\";\n\n/**\n * Drawer\n * ============================================================\n * A foundational drawer component for overlays that require user attention.\n * Built for accessibility and WCAG 2.1 AA compliance.\n *\n * Features:\n * - Controlled and uncontrolled modes\n * - Customizable placement, size, and animations\n * - Focus management and keyboard navigation\n * - Click-outside and Escape key dismissal\n * - Portal rendering support\n * - Backdrop overlay with animations\n *\n * @example\n * ```tsx\n * <Drawer.Root>\n * <Drawer.Trigger>Open Drawer</Drawer.Trigger>\n * <Drawer.Content size=\"md\" placement=\"center\">\n * <Drawer.Header>\n * <Drawer.Title>Drawer Title</Drawer.Title>\n * <Drawer.CloseTrigger>×</Drawer.CloseTrigger>\n * </Drawer.Header>\n * <Drawer.Body>\n * Drawer content goes here\n * </Drawer.Body>\n * <Drawer.Footer>\n * <button>Cancel</button>\n * <button>Save</button>\n * </Drawer.Footer>\n * </Drawer.Content>\n * </Drawer.Root>\n * ```\n * @see https://nimbus-documentation.vercel.app/components/feedback/drawer\n */\nexport const Drawer = {\n /**\n * # Drawer.Root\n *\n * The root component that provides context and state management for the drawer.\n * Handles accessibility and keyboard interaction.\n *\n * This component must wrap all drawer parts (Trigger, Content, etc.) and provides\n * the drawer open/close state and variant styling context.\n *\n * @example\n * ```tsx\n * <Drawer.Root>\n * <Drawer.Trigger>Open Drawer</Drawer.Trigger>\n * <Drawer.Content>\n * <Drawer.Header>\n * <Drawer.Title>Drawer Title</Drawer.Title>\n * </Drawer.Header>\n * <Drawer.Body>Drawer content</Drawer.Body>\n * </Drawer.Content>\n * </Drawer.Root>\n * ```\n */\n Root: DrawerRoot,\n /**\n * # Drawer.Trigger\n *\n * The trigger element that opens the drawer when activated.\n * Provides accessibility and keyboard support.\n *\n * @example\n * ```tsx\n * <Drawer.Root>\n * <Drawer.Trigger>Open Drawer</Drawer.Trigger>\n * <Drawer.Content>...</Drawer.Content>\n * </Drawer.Root>\n * ```\n */\n Trigger: DrawerTrigger,\n /**\n * # Drawer.Content\n *\n * The main drawer content container that handles portalling, backdrop,\n * positioning, and content styling.\n *\n * This component creates the drawer overlay, positions the content, and provides\n * accessibility features like focus management and keyboard dismissal.\n *\n * @example\n * ```tsx\n * <Drawer.Root>\n * <Drawer.Trigger>Open Drawer</Drawer.Trigger>\n * <Drawer.Content size=\"md\" placement=\"center\">\n * <Drawer.Header>\n * <Drawer.Title>Title</Drawer.Title>\n * </Drawer.Header>\n * <Drawer.Body>Content</Drawer.Body>\n * <Drawer.Footer>Actions</Drawer.Footer>\n * </Drawer.Content>\n * </Drawer.Root>\n * ```\n */\n Content: DrawerContent,\n /**\n * # Drawer.Header\n *\n * The header section of the drawer content.\n * Typically contains the title and close button.\n *\n * @example\n * ```tsx\n * <Drawer.Content>\n * <Drawer.Header>\n * <Drawer.Title>Drawer Title</Drawer.Title>\n * <Drawer.CloseTrigger />\n * </Drawer.Header>\n * <Drawer.Body>...</Drawer.Body>\n * </Drawer.Content>\n * ```\n */\n Header: DrawerHeader,\n /**\n * # Drawer.Body\n *\n * The main body content section of the drawer.\n * Contains the primary drawer content and handles overflow/scrolling.\n *\n * @example\n * ```tsx\n * <Drawer.Content>\n * <Drawer.Header>...</Drawer.Header>\n * <Drawer.Body>\n * <p>This is the main content of the drawer.</p>\n * </Drawer.Body>\n * <Drawer.Footer>...</Drawer.Footer>\n * </Drawer.Content>\n * ```\n */\n Body: DrawerBody,\n /**\n * # Drawer.Footer\n *\n * The footer section of the drawer, typically containing action buttons.\n * Provides consistent spacing and alignment for drawer actions.\n *\n * @example\n * ```tsx\n * <Drawer.Content>\n * <Drawer.Header>...</Drawer.Header>\n * <Drawer.Body>...</Drawer.Body>\n * <Drawer.Footer>\n * <Button variant=\"outline\">Cancel</Button>\n * <Button>Confirm</Button>\n * </Drawer.Footer>\n * </Drawer.Content>\n * ```\n */\n Footer: DrawerFooter,\n /**\n * # Drawer.Title\n *\n * The accessible title element for the drawer.\n * Provides proper accessibility and screen reader support.\n *\n * @example\n * ```tsx\n * <Drawer.Content>\n * <Drawer.Header>\n * <Drawer.Title>Confirm Action</Drawer.Title>\n * </Drawer.Header>\n * <Drawer.Body>...</Drawer.Body>\n * </Drawer.Content>\n * ```\n */\n Title: DrawerTitle,\n /**\n * # Drawer.CloseTrigger\n *\n * A button that closes the drawer when activated.\n * Displays an IconButton with a close (X) icon by default.\n *\n * The component automatically handles the close behavior,\n * so no additional onPress handler is needed.\n *\n * @example\n * ```tsx\n * <Drawer.Root>\n * <Drawer.Trigger>Open Drawer</Drawer.Trigger>\n * <Drawer.Content>\n * <Drawer.Header>\n * <Drawer.Title>Title</Drawer.Title>\n * <Drawer.CloseTrigger aria-label=\"Close drawer\" />\n * </Drawer.Header>\n * <Drawer.Body>Content</Drawer.Body>\n * </Drawer.Content>\n * </Drawer.Root>\n * ```\n */\n CloseTrigger: DrawerCloseTrigger,\n};\n\n// Internal exports for react-docgen\nexport {\n DrawerRoot as _DrawerRoot,\n DrawerTrigger as _DrawerTrigger,\n DrawerContent as _DrawerContent,\n DrawerHeader as _DrawerHeader,\n DrawerBody as _DrawerBody,\n DrawerFooter as _DrawerFooter,\n DrawerTitle as _DrawerTitle,\n DrawerCloseTrigger as _DrawerCloseTrigger,\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","drawerSlotRecipe","DrawerRootSlot","DrawerTriggerSlot","DrawerModalOverlaySlot","DrawerModalSlot","DrawerContentSlot","DrawerHeaderSlot","DrawerBodySlot","DrawerFooterSlot","DrawerTitleSlot","DrawerCloseTriggerSlot","DrawerContext","createContext","useDrawerRootContext","context","useContext","DrawerProvider","children","value","jsx","DrawerRoot","props","recipe","useSlotRecipe","recipeProps","isOpen","onOpenChange","defaultOpen","content","hasDrawerTrigger","React","child","displayName","RaDialogTrigger","DrawerTrigger","forwardedRef","asChild","chakra","styleProps","restProps","extractStyleProps","RaButton","DrawerContent","isDismissable","isKeyboardDismissDisabled","shouldCloseOnInteractOutside","modalProps","RaModalOverlay","RaModal","RaDialog","DrawerHeader","DrawerBody","defaultProps","DrawerFooter","DrawerTitle","Heading","messages","defineMessages","DrawerCloseTrigger","ariaLabel","intl","useIntl","IconButton","Close","Drawer"],"mappings":"2cAMM,CAAE,aAAAA,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,OAAQC,EAAAA,gBACV,CAAC,EAIYC,EAAiBJ,EAC5B,MACA,MACF,EAIaK,EAAoBJ,EAG/B,SAAU,SAAS,EAIRK,EAAyBL,EAGpC,MAAO,cAAc,EAIVM,EAAkBN,EAG7B,MAAO,OAAO,EAIHO,EAAoBP,EAG/B,MAAO,SAAS,EAILQ,EAAmBR,EAC9B,SACA,QACF,EAIaS,EAAiBT,EAC5B,MACA,MACF,EAIaU,EAAmBV,EAC9B,SACA,QACF,EAIaW,EAAkBX,EAG7B,KAAM,OAAO,EAIFY,EAAyBZ,EAGpC,MAAO,cAAc,ECtE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ChB"}
@@ -0,0 +1,304 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import w, { useContext as R, createContext as S } from "react";
3
+ import { k as v, h as N } from "./Dialog-FtshtbuD.es.js";
4
+ import { createSlotRecipeContext as O, useSlotRecipe as H, chakra as B } from "@chakra-ui/react/styled-system";
5
+ import { n as m } from "./index-DthLdwMN.es.js";
6
+ import { a as I } from "./Button-DbDspzBf.es.js";
7
+ import { e as g } from "./extractStyleProps-CNXOLneR.es.js";
8
+ import { $ as M, a as F } from "./Modal-CVRxKbK2.es.js";
9
+ import { H as k } from "./heading-BtazVUd5.es.js";
10
+ import { Close as E } from "@commercetools/nimbus-icons";
11
+ import { defineMessages as V, useIntl as _ } from "react-intl";
12
+ import { I as j } from "./icon-button-D4w1XTVg.es.js";
13
+ const { withProvider: z, withContext: s } = /* @__PURE__ */ O({
14
+ recipe: m
15
+ }), A = /* @__PURE__ */ z(
16
+ "div",
17
+ "root"
18
+ ), K = /* @__PURE__ */ s("button", "trigger"), L = /* @__PURE__ */ s("div", "modalOverlay"), q = /* @__PURE__ */ s("div", "modal"), G = /* @__PURE__ */ s("div", "content"), J = /* @__PURE__ */ s(
19
+ "header",
20
+ "header"
21
+ ), Q = /* @__PURE__ */ s(
22
+ "div",
23
+ "body"
24
+ ), U = /* @__PURE__ */ s(
25
+ "footer",
26
+ "footer"
27
+ ), W = /* @__PURE__ */ s("h2", "title"), X = /* @__PURE__ */ s("div", "closeTrigger"), u = /* @__PURE__ */ S(
28
+ void 0
29
+ ), Y = () => {
30
+ const e = R(u);
31
+ if (!e)
32
+ throw new Error("useDrawerContext must be used within Drawer.Root");
33
+ return e;
34
+ }, Z = ({
35
+ children: e,
36
+ value: t
37
+ }) => /* @__PURE__ */ r(u, { value: t, children: e }), D = (e) => {
38
+ const t = H({ recipe: m }), [a] = t.splitVariantProps(e), { children: o, isOpen: n, onOpenChange: i, defaultOpen: f = !1 } = e, d = /* @__PURE__ */ r(A, { ...a, children: o }), p = w.Children.toArray(o).some((l) => {
39
+ if (w.isValidElement(l) && typeof l.type == "function") {
40
+ const c = l.type?.displayName;
41
+ return c === "DrawerTrigger" || c === "Drawer.Trigger";
42
+ }
43
+ return !1;
44
+ });
45
+ return /* @__PURE__ */ r(Z, { value: e, children: p ? (
46
+ // When there's a Drawer.Trigger, use DialogTrigger for React Aria integration
47
+ /* @__PURE__ */ r(
48
+ v,
49
+ {
50
+ isOpen: n,
51
+ onOpenChange: i,
52
+ defaultOpen: f,
53
+ children: d
54
+ }
55
+ )
56
+ ) : (
57
+ // When no Drawer.Trigger, skip DialogTrigger to avoid the warning
58
+ d
59
+ ) });
60
+ };
61
+ D.displayName = "Drawer.Root";
62
+ const h = ({
63
+ ref: e,
64
+ children: t,
65
+ asChild: a,
66
+ ...o
67
+ }) => {
68
+ if (a)
69
+ return /* @__PURE__ */ r(B.button, { ref: e, asChild: !0, ...o, children: t });
70
+ const [n, i] = g(o);
71
+ return /* @__PURE__ */ r(K, { ...n, asChild: !0, children: /* @__PURE__ */ r(I, { ref: e, ...i, children: t }) });
72
+ };
73
+ h.displayName = "Drawer.Trigger";
74
+ const C = (e) => {
75
+ const { ref: t, children: a, ...o } = e, {
76
+ defaultOpen: n,
77
+ isDismissable: i,
78
+ isKeyboardDismissDisabled: f,
79
+ shouldCloseOnInteractOutside: d,
80
+ isOpen: p,
81
+ onOpenChange: l
82
+ } = Y(), c = {
83
+ defaultOpen: n,
84
+ isDismissable: i,
85
+ isKeyboardDismissDisabled: f,
86
+ shouldCloseOnInteractOutside: d,
87
+ isOpen: p,
88
+ onOpenChange: l
89
+ }, [$] = g(o);
90
+ return /* @__PURE__ */ r(L, { asChild: !0, children: /* @__PURE__ */ r(M, { ...c, children: /* @__PURE__ */ r(q, { asChild: !0, children: /* @__PURE__ */ r(F, { children: /* @__PURE__ */ r(G, { asChild: !0, ...$, children: /* @__PURE__ */ r(N, { ref: t, children: a }) }) }) }) }) });
91
+ };
92
+ C.displayName = "Drawer.Content";
93
+ const y = (e) => {
94
+ const { ref: t, children: a, ...o } = e;
95
+ return /* @__PURE__ */ r(J, { ref: t, ...o, children: a });
96
+ };
97
+ y.displayName = "Drawer.Header";
98
+ const b = (e) => {
99
+ const { ref: t, children: a, ...o } = e;
100
+ return /* @__PURE__ */ r(Q, { ref: t, ...{
101
+ /**
102
+ * Set tabIndex to 0 to allow the body to receive focus,
103
+ * effectively enabling scrolling via keyboard arrow keys.
104
+ */
105
+ tabIndex: 0
106
+ }, ...o, children: a });
107
+ };
108
+ b.displayName = "Drawer.Body";
109
+ const x = (e) => {
110
+ const { ref: t, children: a, ...o } = e;
111
+ return /* @__PURE__ */ r(U, { ref: t, ...o, children: a });
112
+ };
113
+ x.displayName = "Drawer.Footer";
114
+ const T = (e) => {
115
+ const { ref: t, children: a, ...o } = e;
116
+ return /* @__PURE__ */ r(W, { asChild: !0, ...o, children: /* @__PURE__ */ r(k, { ref: t, slot: "title", as: "h2", textStyle: "lg", children: a }) });
117
+ };
118
+ T.displayName = "Drawer.Title";
119
+ const ee = /* @__PURE__ */ V({
120
+ closeTrigger: {
121
+ id: "Nimbus.Drawer.closeTrigger",
122
+ description: "aria-label for the default close trigger button",
123
+ defaultMessage: "Close drawer"
124
+ }
125
+ }), P = (e) => {
126
+ const { ref: t, "aria-label": a, ...o } = e, n = _();
127
+ return /* @__PURE__ */ r(X, { children: /* @__PURE__ */ r(
128
+ j,
129
+ {
130
+ ref: t,
131
+ slot: "close",
132
+ size: "xs",
133
+ variant: "ghost",
134
+ "aria-label": a || n.formatMessage(ee.closeTrigger),
135
+ ...o,
136
+ children: /* @__PURE__ */ r(E, {})
137
+ }
138
+ ) });
139
+ };
140
+ P.displayName = "Drawer.CloseTrigger";
141
+ const we = {
142
+ /**
143
+ * # Drawer.Root
144
+ *
145
+ * The root component that provides context and state management for the drawer.
146
+ * Handles accessibility and keyboard interaction.
147
+ *
148
+ * This component must wrap all drawer parts (Trigger, Content, etc.) and provides
149
+ * the drawer open/close state and variant styling context.
150
+ *
151
+ * @example
152
+ * ```tsx
153
+ * <Drawer.Root>
154
+ * <Drawer.Trigger>Open Drawer</Drawer.Trigger>
155
+ * <Drawer.Content>
156
+ * <Drawer.Header>
157
+ * <Drawer.Title>Drawer Title</Drawer.Title>
158
+ * </Drawer.Header>
159
+ * <Drawer.Body>Drawer content</Drawer.Body>
160
+ * </Drawer.Content>
161
+ * </Drawer.Root>
162
+ * ```
163
+ */
164
+ Root: D,
165
+ /**
166
+ * # Drawer.Trigger
167
+ *
168
+ * The trigger element that opens the drawer when activated.
169
+ * Provides accessibility and keyboard support.
170
+ *
171
+ * @example
172
+ * ```tsx
173
+ * <Drawer.Root>
174
+ * <Drawer.Trigger>Open Drawer</Drawer.Trigger>
175
+ * <Drawer.Content>...</Drawer.Content>
176
+ * </Drawer.Root>
177
+ * ```
178
+ */
179
+ Trigger: h,
180
+ /**
181
+ * # Drawer.Content
182
+ *
183
+ * The main drawer content container that handles portalling, backdrop,
184
+ * positioning, and content styling.
185
+ *
186
+ * This component creates the drawer overlay, positions the content, and provides
187
+ * accessibility features like focus management and keyboard dismissal.
188
+ *
189
+ * @example
190
+ * ```tsx
191
+ * <Drawer.Root>
192
+ * <Drawer.Trigger>Open Drawer</Drawer.Trigger>
193
+ * <Drawer.Content size="md" placement="center">
194
+ * <Drawer.Header>
195
+ * <Drawer.Title>Title</Drawer.Title>
196
+ * </Drawer.Header>
197
+ * <Drawer.Body>Content</Drawer.Body>
198
+ * <Drawer.Footer>Actions</Drawer.Footer>
199
+ * </Drawer.Content>
200
+ * </Drawer.Root>
201
+ * ```
202
+ */
203
+ Content: C,
204
+ /**
205
+ * # Drawer.Header
206
+ *
207
+ * The header section of the drawer content.
208
+ * Typically contains the title and close button.
209
+ *
210
+ * @example
211
+ * ```tsx
212
+ * <Drawer.Content>
213
+ * <Drawer.Header>
214
+ * <Drawer.Title>Drawer Title</Drawer.Title>
215
+ * <Drawer.CloseTrigger />
216
+ * </Drawer.Header>
217
+ * <Drawer.Body>...</Drawer.Body>
218
+ * </Drawer.Content>
219
+ * ```
220
+ */
221
+ Header: y,
222
+ /**
223
+ * # Drawer.Body
224
+ *
225
+ * The main body content section of the drawer.
226
+ * Contains the primary drawer content and handles overflow/scrolling.
227
+ *
228
+ * @example
229
+ * ```tsx
230
+ * <Drawer.Content>
231
+ * <Drawer.Header>...</Drawer.Header>
232
+ * <Drawer.Body>
233
+ * <p>This is the main content of the drawer.</p>
234
+ * </Drawer.Body>
235
+ * <Drawer.Footer>...</Drawer.Footer>
236
+ * </Drawer.Content>
237
+ * ```
238
+ */
239
+ Body: b,
240
+ /**
241
+ * # Drawer.Footer
242
+ *
243
+ * The footer section of the drawer, typically containing action buttons.
244
+ * Provides consistent spacing and alignment for drawer actions.
245
+ *
246
+ * @example
247
+ * ```tsx
248
+ * <Drawer.Content>
249
+ * <Drawer.Header>...</Drawer.Header>
250
+ * <Drawer.Body>...</Drawer.Body>
251
+ * <Drawer.Footer>
252
+ * <Button variant="outline">Cancel</Button>
253
+ * <Button>Confirm</Button>
254
+ * </Drawer.Footer>
255
+ * </Drawer.Content>
256
+ * ```
257
+ */
258
+ Footer: x,
259
+ /**
260
+ * # Drawer.Title
261
+ *
262
+ * The accessible title element for the drawer.
263
+ * Provides proper accessibility and screen reader support.
264
+ *
265
+ * @example
266
+ * ```tsx
267
+ * <Drawer.Content>
268
+ * <Drawer.Header>
269
+ * <Drawer.Title>Confirm Action</Drawer.Title>
270
+ * </Drawer.Header>
271
+ * <Drawer.Body>...</Drawer.Body>
272
+ * </Drawer.Content>
273
+ * ```
274
+ */
275
+ Title: T,
276
+ /**
277
+ * # Drawer.CloseTrigger
278
+ *
279
+ * A button that closes the drawer when activated.
280
+ * Displays an IconButton with a close (X) icon by default.
281
+ *
282
+ * The component automatically handles the close behavior,
283
+ * so no additional onPress handler is needed.
284
+ *
285
+ * @example
286
+ * ```tsx
287
+ * <Drawer.Root>
288
+ * <Drawer.Trigger>Open Drawer</Drawer.Trigger>
289
+ * <Drawer.Content>
290
+ * <Drawer.Header>
291
+ * <Drawer.Title>Title</Drawer.Title>
292
+ * <Drawer.CloseTrigger aria-label="Close drawer" />
293
+ * </Drawer.Header>
294
+ * <Drawer.Body>Content</Drawer.Body>
295
+ * </Drawer.Content>
296
+ * </Drawer.Root>
297
+ * ```
298
+ */
299
+ CloseTrigger: P
300
+ };
301
+ export {
302
+ we as D
303
+ };
304
+ //# sourceMappingURL=drawer-wpiy6Y4h.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drawer-wpiy6Y4h.es.js","sources":["../../src/components/drawer/drawer.slots.tsx","../../src/components/drawer/components/drawer.context.tsx","../../src/components/drawer/components/drawer.root.tsx","../../src/components/drawer/components/drawer.trigger.tsx","../../src/components/drawer/components/drawer.content.tsx","../../src/components/drawer/components/drawer.header.tsx","../../src/components/drawer/components/drawer.body.tsx","../../src/components/drawer/components/drawer.footer.tsx","../../src/components/drawer/components/drawer.title.tsx","../../src/components/drawer/drawer.i18n.ts","../../src/components/drawer/components/drawer.close-trigger.tsx","../../src/components/drawer/drawer.tsx"],"sourcesContent":["import {\n createSlotRecipeContext,\n type HTMLChakraProps,\n} from \"@chakra-ui/react/styled-system\";\nimport { drawerSlotRecipe } from \"./drawer.recipe\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: drawerSlotRecipe,\n});\n\n// Root slot - provides recipe context + config to all child components\nexport type DrawerRootSlotProps = HTMLChakraProps<\"div\">;\nexport const DrawerRootSlot = withProvider<HTMLDivElement, DrawerRootSlotProps>(\n \"div\",\n \"root\"\n);\n\n// Trigger slot - button that opens the drawer\nexport type DrawerTriggerSlotProps = HTMLChakraProps<\"button\">;\nexport const DrawerTriggerSlot = withContext<\n HTMLButtonElement,\n DrawerTriggerSlotProps\n>(\"button\", \"trigger\");\n\n// Backdrop slot - overlay displayed behind the drawer\nexport type DrawerModalOverlaySlotProps = HTMLChakraProps<\"div\">;\nexport const DrawerModalOverlaySlot = withContext<\n HTMLDivElement,\n DrawerModalOverlaySlotProps\n>(\"div\", \"modalOverlay\");\n\n// modal slot - positions the drawer content\nexport type DrawerModalSlotProps = HTMLChakraProps<\"div\">;\nexport const DrawerModalSlot = withContext<\n HTMLDivElement,\n DrawerModalSlotProps\n>(\"div\", \"modal\");\n\n// Content slot - main drawer container\nexport type DrawerContentSlotProps = HTMLChakraProps<\"div\">;\nexport const DrawerContentSlot = withContext<\n HTMLDivElement,\n DrawerContentSlotProps\n>(\"div\", \"content\");\n\n// Header slot - drawer header section\nexport type DrawerHeaderSlotProps = HTMLChakraProps<\"header\">;\nexport const DrawerHeaderSlot = withContext<HTMLElement, DrawerHeaderSlotProps>(\n \"header\",\n \"header\"\n);\n\n// Body slot - drawer body content\nexport type DrawerBodySlotProps = HTMLChakraProps<\"div\">;\nexport const DrawerBodySlot = withContext<HTMLDivElement, DrawerBodySlotProps>(\n \"div\",\n \"body\"\n);\n\n// Footer slot - drawer footer section with actions\nexport type DrawerFooterSlotProps = HTMLChakraProps<\"footer\">;\nexport const DrawerFooterSlot = withContext<HTMLElement, DrawerFooterSlotProps>(\n \"footer\",\n \"footer\"\n);\n\n// Title slot - accessible drawer title\nexport type DrawerTitleSlotProps = HTMLChakraProps<\"h2\">;\nexport const DrawerTitleSlot = withContext<\n HTMLHeadingElement,\n DrawerTitleSlotProps\n>(\"h2\", \"title\");\n\n// Close trigger slot - div container for positioning close button\nexport type DrawerCloseTriggerSlotProps = HTMLChakraProps<\"div\">;\nexport const DrawerCloseTriggerSlot = withContext<\n HTMLDivElement,\n DrawerCloseTriggerSlotProps\n>(\"div\", \"closeTrigger\");\n","import { createContext, useContext } from \"react\";\nimport type { DrawerRootProps } from \"../drawer.types\";\n\n/**\n * Context value containing drawer configuration passed from Root to child components\n */\nexport type DrawerContextValue = DrawerRootProps;\n\nexport const DrawerContext = createContext<DrawerContextValue | undefined>(\n undefined\n);\n\n/**\n * Hook to access drawer configuration from DrawerContext\n * @returns Drawer configuration from context\n * @throws Error if used outside of Drawer.Root\n */\nexport const useDrawerRootContext = (): DrawerContextValue => {\n const context = useContext(DrawerContext);\n if (!context) {\n throw new Error(\"useDrawerContext must be used within Drawer.Root\");\n }\n return context;\n};\n\n/**\n * Provider component that passes drawer configuration down to child components\n */\nexport const DrawerProvider = ({\n children,\n value,\n}: {\n children: React.ReactNode;\n value: DrawerContextValue;\n}) => {\n return <DrawerContext value={value}>{children}</DrawerContext>;\n};\n","import React from \"react\";\nimport { DialogTrigger as RaDialogTrigger } from \"react-aria-components\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { DrawerRootSlot } from \"../drawer.slots\";\nimport type { DrawerRootProps } from \"../drawer.types\";\nimport { DrawerProvider } from \"./drawer.context\";\nimport { drawerSlotRecipe } from \"../drawer.recipe\";\n\nexport const DrawerRoot = (props: DrawerRootProps) => {\n const recipe = useSlotRecipe({ recipe: drawerSlotRecipe });\n // Extract recipe props\n const [recipeProps] = recipe.splitVariantProps(props);\n // Extract props that are usable on RaDialogTrigger\n const { children, isOpen, onOpenChange, defaultOpen = false } = props;\n\n const content = <DrawerRootSlot {...recipeProps}>{children}</DrawerRootSlot>;\n\n // Check if any child is a Drawer.Trigger component\n // React Aria's DialogTrigger needs a pressable child, so we only use it when there's a trigger\n const hasDrawerTrigger = React.Children.toArray(children).some((child) => {\n if (React.isValidElement(child) && typeof child.type === \"function\") {\n const displayName = (\n child.type as React.ComponentType & { displayName?: string }\n )?.displayName;\n return (\n displayName === \"DrawerTrigger\" || displayName === \"Drawer.Trigger\"\n );\n }\n return false;\n });\n\n // Share all props (config + variant props) with the Drawer subcomponents\n return (\n <DrawerProvider value={props}>\n {hasDrawerTrigger ? (\n // When there's a Drawer.Trigger, use DialogTrigger for React Aria integration\n <RaDialogTrigger\n isOpen={isOpen}\n onOpenChange={onOpenChange}\n defaultOpen={defaultOpen}\n >\n {content}\n </RaDialogTrigger>\n ) : (\n // When no Drawer.Trigger, skip DialogTrigger to avoid the warning\n content\n )}\n </DrawerProvider>\n );\n};\n\nDrawerRoot.displayName = \"Drawer.Root\";\n","import { Button as RaButton } from \"react-aria-components\";\nimport { DrawerTriggerSlot } from \"../drawer.slots\";\nimport type { DrawerTriggerProps } from \"../drawer.types\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport { chakra } from \"@chakra-ui/react/styled-system\";\n\nexport const DrawerTrigger = ({\n ref: forwardedRef,\n children,\n asChild,\n ...props\n}: DrawerTriggerProps) => {\n // If asChild is true, wrap children directly in RaButton with asChild\n if (asChild) {\n return (\n <chakra.button ref={forwardedRef} asChild {...props}>\n {children}\n </chakra.button>\n );\n }\n\n const [styleProps, restProps] = extractStyleProps(props);\n\n // Otherwise, wrap with both DrawerTriggerSlot and RaButton\n // Only pass React Aria compatible props to avoid type conflicts\n return (\n <DrawerTriggerSlot {...styleProps} asChild>\n <RaButton ref={forwardedRef} {...restProps}>\n {children}\n </RaButton>\n </DrawerTriggerSlot>\n );\n};\n\nDrawerTrigger.displayName = \"Drawer.Trigger\";\n","import {\n Modal as RaModal,\n ModalOverlay as RaModalOverlay,\n Dialog as RaDialog,\n} from \"react-aria-components\";\nimport {\n DrawerModalOverlaySlot,\n DrawerModalSlot,\n DrawerContentSlot,\n} from \"../drawer.slots\";\nimport type { DrawerContentProps } from \"../drawer.types\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport { useDrawerRootContext } from \"./drawer.context\";\n\nexport const DrawerContent = (props: DrawerContentProps) => {\n const { ref: forwardedRef, children, ...restProps } = props;\n\n // Get recipe configuration from context instead of props\n const {\n defaultOpen,\n isDismissable,\n isKeyboardDismissDisabled,\n shouldCloseOnInteractOutside,\n isOpen,\n onOpenChange,\n } = useDrawerRootContext();\n\n const modalProps = {\n defaultOpen,\n isDismissable,\n isKeyboardDismissDisabled,\n shouldCloseOnInteractOutside,\n isOpen,\n onOpenChange,\n };\n\n const [styleProps] = extractStyleProps(restProps);\n\n return (\n <DrawerModalOverlaySlot asChild>\n <RaModalOverlay {...modalProps}>\n <DrawerModalSlot asChild>\n <RaModal>\n <DrawerContentSlot asChild {...styleProps}>\n <RaDialog ref={forwardedRef}>{children}</RaDialog>\n </DrawerContentSlot>\n </RaModal>\n </DrawerModalSlot>\n </RaModalOverlay>\n </DrawerModalOverlaySlot>\n );\n};\n\nDrawerContent.displayName = \"Drawer.Content\";\n","import { DrawerHeaderSlot } from \"../drawer.slots\";\nimport type { DrawerHeaderProps } from \"../drawer.types\";\n\nexport const DrawerHeader = (props: DrawerHeaderProps) => {\n const { ref: forwardedRef, children, ...restProps } = props;\n\n return (\n <DrawerHeaderSlot ref={forwardedRef} {...restProps}>\n {children}\n </DrawerHeaderSlot>\n );\n};\n\nDrawerHeader.displayName = \"Drawer.Header\";\n","import { DrawerBodySlot } from \"../drawer.slots\";\nimport type { DrawerBodyProps } from \"../drawer.types\";\n\nexport const DrawerBody = (props: DrawerBodyProps) => {\n const { ref: forwardedRef, children, ...restProps } = props;\n\n const defaultProps = {\n /**\n * Set tabIndex to 0 to allow the body to receive focus,\n * effectively enabling scrolling via keyboard arrow keys.\n */\n tabIndex: 0,\n };\n\n return (\n <DrawerBodySlot ref={forwardedRef} {...defaultProps} {...restProps}>\n {children}\n </DrawerBodySlot>\n );\n};\n\nDrawerBody.displayName = \"Drawer.Body\";\n","import { DrawerFooterSlot } from \"../drawer.slots\";\nimport type { DrawerFooterProps } from \"../drawer.types\";\n\nexport const DrawerFooter = (props: DrawerFooterProps) => {\n const { ref: forwardedRef, children, ...restProps } = props;\n\n return (\n <DrawerFooterSlot ref={forwardedRef} {...restProps}>\n {children}\n </DrawerFooterSlot>\n );\n};\n\nDrawerFooter.displayName = \"Drawer.Footer\";\n","import { DrawerTitleSlot } from \"../drawer.slots\";\nimport type { DrawerTitleProps } from \"../drawer.types\";\nimport { Heading } from \"@/components\";\n\nexport const DrawerTitle = (props: DrawerTitleProps) => {\n const { ref: forwardedRef, children, ...restProps } = props;\n\n return (\n <DrawerTitleSlot asChild {...restProps}>\n <Heading ref={forwardedRef} slot=\"title\" as=\"h2\" textStyle=\"lg\">\n {children}\n </Heading>\n </DrawerTitleSlot>\n );\n};\n\nDrawerTitle.displayName = \"Drawer.Title\";\n","import { defineMessages } from \"react-intl\";\n\nexport const messages = defineMessages({\n closeTrigger: {\n id: \"Nimbus.Drawer.closeTrigger\",\n description: \"aria-label for the default close trigger button\",\n defaultMessage: \"Close drawer\",\n },\n});\n","import { Close } from \"@commercetools/nimbus-icons\";\nimport { DrawerCloseTriggerSlot } from \"../drawer.slots\";\nimport type { DrawerCloseTriggerProps } from \"../drawer.types\";\nimport { IconButton } from \"@/components\";\nimport { messages } from \"../drawer.i18n\";\nimport { useIntl } from \"react-intl\";\n\nexport const DrawerCloseTrigger = (props: DrawerCloseTriggerProps) => {\n const { ref: forwardedRef, \"aria-label\": ariaLabel, ...restProps } = props;\n const intl = useIntl();\n\n return (\n <DrawerCloseTriggerSlot>\n <IconButton\n ref={forwardedRef}\n slot=\"close\"\n size=\"xs\"\n variant=\"ghost\"\n aria-label={ariaLabel || intl.formatMessage(messages.closeTrigger)}\n {...restProps}\n >\n <Close />\n </IconButton>\n </DrawerCloseTriggerSlot>\n );\n};\n\nDrawerCloseTrigger.displayName = \"Drawer.CloseTrigger\";\n","import { DrawerRoot } from \"./components/drawer.root\";\nimport { DrawerTrigger } from \"./components/drawer.trigger\";\nimport { DrawerContent } from \"./components/drawer.content\";\nimport { DrawerHeader } from \"./components/drawer.header\";\nimport { DrawerBody } from \"./components/drawer.body\";\nimport { DrawerFooter } from \"./components/drawer.footer\";\nimport { DrawerTitle } from \"./components/drawer.title\";\nimport { DrawerCloseTrigger } from \"./components/drawer.close-trigger\";\n\n/**\n * Drawer\n * ============================================================\n * A foundational drawer component for overlays that require user attention.\n * Built for accessibility and WCAG 2.1 AA compliance.\n *\n * Features:\n * - Controlled and uncontrolled modes\n * - Customizable placement, size, and animations\n * - Focus management and keyboard navigation\n * - Click-outside and Escape key dismissal\n * - Portal rendering support\n * - Backdrop overlay with animations\n *\n * @example\n * ```tsx\n * <Drawer.Root>\n * <Drawer.Trigger>Open Drawer</Drawer.Trigger>\n * <Drawer.Content size=\"md\" placement=\"center\">\n * <Drawer.Header>\n * <Drawer.Title>Drawer Title</Drawer.Title>\n * <Drawer.CloseTrigger>×</Drawer.CloseTrigger>\n * </Drawer.Header>\n * <Drawer.Body>\n * Drawer content goes here\n * </Drawer.Body>\n * <Drawer.Footer>\n * <button>Cancel</button>\n * <button>Save</button>\n * </Drawer.Footer>\n * </Drawer.Content>\n * </Drawer.Root>\n * ```\n * @see https://nimbus-documentation.vercel.app/components/feedback/drawer\n */\nexport const Drawer = {\n /**\n * # Drawer.Root\n *\n * The root component that provides context and state management for the drawer.\n * Handles accessibility and keyboard interaction.\n *\n * This component must wrap all drawer parts (Trigger, Content, etc.) and provides\n * the drawer open/close state and variant styling context.\n *\n * @example\n * ```tsx\n * <Drawer.Root>\n * <Drawer.Trigger>Open Drawer</Drawer.Trigger>\n * <Drawer.Content>\n * <Drawer.Header>\n * <Drawer.Title>Drawer Title</Drawer.Title>\n * </Drawer.Header>\n * <Drawer.Body>Drawer content</Drawer.Body>\n * </Drawer.Content>\n * </Drawer.Root>\n * ```\n */\n Root: DrawerRoot,\n /**\n * # Drawer.Trigger\n *\n * The trigger element that opens the drawer when activated.\n * Provides accessibility and keyboard support.\n *\n * @example\n * ```tsx\n * <Drawer.Root>\n * <Drawer.Trigger>Open Drawer</Drawer.Trigger>\n * <Drawer.Content>...</Drawer.Content>\n * </Drawer.Root>\n * ```\n */\n Trigger: DrawerTrigger,\n /**\n * # Drawer.Content\n *\n * The main drawer content container that handles portalling, backdrop,\n * positioning, and content styling.\n *\n * This component creates the drawer overlay, positions the content, and provides\n * accessibility features like focus management and keyboard dismissal.\n *\n * @example\n * ```tsx\n * <Drawer.Root>\n * <Drawer.Trigger>Open Drawer</Drawer.Trigger>\n * <Drawer.Content size=\"md\" placement=\"center\">\n * <Drawer.Header>\n * <Drawer.Title>Title</Drawer.Title>\n * </Drawer.Header>\n * <Drawer.Body>Content</Drawer.Body>\n * <Drawer.Footer>Actions</Drawer.Footer>\n * </Drawer.Content>\n * </Drawer.Root>\n * ```\n */\n Content: DrawerContent,\n /**\n * # Drawer.Header\n *\n * The header section of the drawer content.\n * Typically contains the title and close button.\n *\n * @example\n * ```tsx\n * <Drawer.Content>\n * <Drawer.Header>\n * <Drawer.Title>Drawer Title</Drawer.Title>\n * <Drawer.CloseTrigger />\n * </Drawer.Header>\n * <Drawer.Body>...</Drawer.Body>\n * </Drawer.Content>\n * ```\n */\n Header: DrawerHeader,\n /**\n * # Drawer.Body\n *\n * The main body content section of the drawer.\n * Contains the primary drawer content and handles overflow/scrolling.\n *\n * @example\n * ```tsx\n * <Drawer.Content>\n * <Drawer.Header>...</Drawer.Header>\n * <Drawer.Body>\n * <p>This is the main content of the drawer.</p>\n * </Drawer.Body>\n * <Drawer.Footer>...</Drawer.Footer>\n * </Drawer.Content>\n * ```\n */\n Body: DrawerBody,\n /**\n * # Drawer.Footer\n *\n * The footer section of the drawer, typically containing action buttons.\n * Provides consistent spacing and alignment for drawer actions.\n *\n * @example\n * ```tsx\n * <Drawer.Content>\n * <Drawer.Header>...</Drawer.Header>\n * <Drawer.Body>...</Drawer.Body>\n * <Drawer.Footer>\n * <Button variant=\"outline\">Cancel</Button>\n * <Button>Confirm</Button>\n * </Drawer.Footer>\n * </Drawer.Content>\n * ```\n */\n Footer: DrawerFooter,\n /**\n * # Drawer.Title\n *\n * The accessible title element for the drawer.\n * Provides proper accessibility and screen reader support.\n *\n * @example\n * ```tsx\n * <Drawer.Content>\n * <Drawer.Header>\n * <Drawer.Title>Confirm Action</Drawer.Title>\n * </Drawer.Header>\n * <Drawer.Body>...</Drawer.Body>\n * </Drawer.Content>\n * ```\n */\n Title: DrawerTitle,\n /**\n * # Drawer.CloseTrigger\n *\n * A button that closes the drawer when activated.\n * Displays an IconButton with a close (X) icon by default.\n *\n * The component automatically handles the close behavior,\n * so no additional onPress handler is needed.\n *\n * @example\n * ```tsx\n * <Drawer.Root>\n * <Drawer.Trigger>Open Drawer</Drawer.Trigger>\n * <Drawer.Content>\n * <Drawer.Header>\n * <Drawer.Title>Title</Drawer.Title>\n * <Drawer.CloseTrigger aria-label=\"Close drawer\" />\n * </Drawer.Header>\n * <Drawer.Body>Content</Drawer.Body>\n * </Drawer.Content>\n * </Drawer.Root>\n * ```\n */\n CloseTrigger: DrawerCloseTrigger,\n};\n\n// Internal exports for react-docgen\nexport {\n DrawerRoot as _DrawerRoot,\n DrawerTrigger as _DrawerTrigger,\n DrawerContent as _DrawerContent,\n DrawerHeader as _DrawerHeader,\n DrawerBody as _DrawerBody,\n DrawerFooter as _DrawerFooter,\n DrawerTitle as _DrawerTitle,\n DrawerCloseTrigger as _DrawerCloseTrigger,\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","drawerSlotRecipe","DrawerRootSlot","DrawerTriggerSlot","DrawerModalOverlaySlot","DrawerModalSlot","DrawerContentSlot","DrawerHeaderSlot","DrawerBodySlot","DrawerFooterSlot","DrawerTitleSlot","DrawerCloseTriggerSlot","DrawerContext","createContext","useDrawerRootContext","context","useContext","DrawerProvider","children","value","jsx","DrawerRoot","props","recipe","useSlotRecipe","recipeProps","isOpen","onOpenChange","defaultOpen","content","hasDrawerTrigger","React","child","displayName","RaDialogTrigger","DrawerTrigger","forwardedRef","asChild","chakra","styleProps","restProps","extractStyleProps","RaButton","DrawerContent","isDismissable","isKeyboardDismissDisabled","shouldCloseOnInteractOutside","modalProps","RaModalOverlay","RaModal","RaDialog","DrawerHeader","DrawerBody","DrawerFooter","DrawerTitle","Heading","messages","defineMessages","DrawerCloseTrigger","ariaLabel","intl","useIntl","IconButton","Close","Drawer"],"mappings":";;;;;;;;;;;;AAMA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,QAAQC;AACV,CAAC,GAIYC,IAAiB,gBAAAJ;AAAA,EAC5B;AAAA,EACA;AACF,GAIaK,IAAoB,gBAAAJ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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAmBN,QAAQC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAiBR,OAAOC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAwBP,cAAcI;AAChB;"}
@@ -1,4 +1,4 @@
1
- import { s } from "./index-D26EXIvZ.es.js";
1
+ import { s } from "./index-DthLdwMN.es.js";
2
2
  function a(e) {
3
3
  const r = {}, o = { ...e };
4
4
  return Object.keys(e).forEach((t) => {
@@ -8,4 +8,4 @@ function a(e) {
8
8
  export {
9
9
  a as e
10
10
  };
11
- //# sourceMappingURL=extractStyleProps-DikjPnnl.es.js.map
11
+ //# sourceMappingURL=extractStyleProps-CNXOLneR.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"extractStyleProps-DikjPnnl.es.js","sources":["../../src/utils/extractStyleProps.ts"],"sourcesContent":["import { system } from \"@/theme\";\n\n/**\n * Extracts chakra-ui style-props from an object, separating them from other props\n * @param props The props object to separate\n * @returns A tuple containing [styleProps, otherProps]\n */\nexport function extractStyleProps<T extends object>(\n props: T\n): [Record<string, unknown>, Omit<T, string>] {\n const styleProps: Record<string, unknown> = {};\n const otherProps = { ...props } as Record<string, unknown>;\n\n // Process only own properties\n Object.keys(props).forEach((key) => {\n if (\n Object.prototype.hasOwnProperty.call(props, key) &&\n system.isValidProperty(key)\n ) {\n styleProps[key] = props[key as keyof T];\n delete otherProps[key];\n }\n });\n\n return [styleProps, otherProps as Omit<T, string>];\n}\n"],"names":["extractStyleProps","props","styleProps","otherProps","key","system"],"mappings":";AAOO,SAASA,EACdC,GAC4C;AAC5C,QAAMC,IAAsC,CAAA,GACtCC,IAAa,EAAE,GAAGF,EAAA;AAGxB,gBAAO,KAAKA,CAAK,EAAE,QAAQ,CAACG,MAAQ;AAClC,IACE,OAAO,UAAU,eAAe,KAAKH,GAAOG,CAAG,KAC/CC,EAAO,gBAAgBD,CAAG,MAE1BF,EAAWE,CAAG,IAAIH,EAAMG,CAAc,GACtC,OAAOD,EAAWC,CAAG;AAAA,EAEzB,CAAC,GAEM,CAACF,GAAYC,CAA6B;AACnD;"}
1
+ {"version":3,"file":"extractStyleProps-CNXOLneR.es.js","sources":["../../src/utils/extractStyleProps.ts"],"sourcesContent":["import { system } from \"@/theme\";\n\n/**\n * Extracts chakra-ui style-props from an object, separating them from other props\n * @param props The props object to separate\n * @returns A tuple containing [styleProps, otherProps]\n */\nexport function extractStyleProps<T extends object>(\n props: T\n): [Record<string, unknown>, Omit<T, string>] {\n const styleProps: Record<string, unknown> = {};\n const otherProps = { ...props } as Record<string, unknown>;\n\n // Process only own properties\n Object.keys(props).forEach((key) => {\n if (\n Object.prototype.hasOwnProperty.call(props, key) &&\n system.isValidProperty(key)\n ) {\n styleProps[key] = props[key as keyof T];\n delete otherProps[key];\n }\n });\n\n return [styleProps, otherProps as Omit<T, string>];\n}\n"],"names":["extractStyleProps","props","styleProps","otherProps","key","system"],"mappings":";AAOO,SAASA,EACdC,GAC4C;AAC5C,QAAMC,IAAsC,CAAA,GACtCC,IAAa,EAAE,GAAGF,EAAA;AAGxB,gBAAO,KAAKA,CAAK,EAAE,QAAQ,CAACG,MAAQ;AAClC,IACE,OAAO,UAAU,eAAe,KAAKH,GAAOG,CAAG,KAC/CC,EAAO,gBAAgBD,CAAG,MAE1BF,EAAWE,CAAG,IAAIH,EAAMG,CAAc,GACtC,OAAOD,EAAWC,CAAG;AAAA,EAEzB,CAAC,GAEM,CAACF,GAAYC,CAA6B;AACnD;"}
@@ -1,2 +1,2 @@
1
- "use strict";const c=require("./index-DhO4Z_an.cjs.js");function o(e){const r={},s={...e};return Object.keys(e).forEach(t=>{Object.prototype.hasOwnProperty.call(e,t)&&c.system.isValidProperty(t)&&(r[t]=e[t],delete s[t])}),[r,s]}exports.extractStyleProps=o;
2
- //# sourceMappingURL=extractStyleProps-Dm0IZP1e.cjs.js.map
1
+ "use strict";const c=require("./index-Bx9ez6gh.cjs.js");function o(e){const r={},s={...e};return Object.keys(e).forEach(t=>{Object.prototype.hasOwnProperty.call(e,t)&&c.system.isValidProperty(t)&&(r[t]=e[t],delete s[t])}),[r,s]}exports.extractStyleProps=o;
2
+ //# sourceMappingURL=extractStyleProps-G58aSXl8.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"extractStyleProps-Dm0IZP1e.cjs.js","sources":["../../src/utils/extractStyleProps.ts"],"sourcesContent":["import { system } from \"@/theme\";\n\n/**\n * Extracts chakra-ui style-props from an object, separating them from other props\n * @param props The props object to separate\n * @returns A tuple containing [styleProps, otherProps]\n */\nexport function extractStyleProps<T extends object>(\n props: T\n): [Record<string, unknown>, Omit<T, string>] {\n const styleProps: Record<string, unknown> = {};\n const otherProps = { ...props } as Record<string, unknown>;\n\n // Process only own properties\n Object.keys(props).forEach((key) => {\n if (\n Object.prototype.hasOwnProperty.call(props, key) &&\n system.isValidProperty(key)\n ) {\n styleProps[key] = props[key as keyof T];\n delete otherProps[key];\n }\n });\n\n return [styleProps, otherProps as Omit<T, string>];\n}\n"],"names":["extractStyleProps","props","styleProps","otherProps","key","system"],"mappings":"wDAOO,SAASA,EACdC,EAC4C,CAC5C,MAAMC,EAAsC,CAAA,EACtCC,EAAa,CAAE,GAAGF,CAAA,EAGxB,cAAO,KAAKA,CAAK,EAAE,QAASG,GAAQ,CAEhC,OAAO,UAAU,eAAe,KAAKH,EAAOG,CAAG,GAC/CC,EAAAA,OAAO,gBAAgBD,CAAG,IAE1BF,EAAWE,CAAG,EAAIH,EAAMG,CAAc,EACtC,OAAOD,EAAWC,CAAG,EAEzB,CAAC,EAEM,CAACF,EAAYC,CAA6B,CACnD"}
1
+ {"version":3,"file":"extractStyleProps-G58aSXl8.cjs.js","sources":["../../src/utils/extractStyleProps.ts"],"sourcesContent":["import { system } from \"@/theme\";\n\n/**\n * Extracts chakra-ui style-props from an object, separating them from other props\n * @param props The props object to separate\n * @returns A tuple containing [styleProps, otherProps]\n */\nexport function extractStyleProps<T extends object>(\n props: T\n): [Record<string, unknown>, Omit<T, string>] {\n const styleProps: Record<string, unknown> = {};\n const otherProps = { ...props } as Record<string, unknown>;\n\n // Process only own properties\n Object.keys(props).forEach((key) => {\n if (\n Object.prototype.hasOwnProperty.call(props, key) &&\n system.isValidProperty(key)\n ) {\n styleProps[key] = props[key as keyof T];\n delete otherProps[key];\n }\n });\n\n return [styleProps, otherProps as Omit<T, string>];\n}\n"],"names":["extractStyleProps","props","styleProps","otherProps","key","system"],"mappings":"wDAOO,SAASA,EACdC,EAC4C,CAC5C,MAAMC,EAAsC,CAAA,EACtCC,EAAa,CAAE,GAAGF,CAAA,EAGxB,cAAO,KAAKA,CAAK,EAAE,QAASG,GAAQ,CAEhC,OAAO,UAAU,eAAe,KAAKH,EAAOG,CAAG,GAC/CC,EAAAA,OAAO,gBAAgBD,CAAG,IAE1BF,EAAWE,CAAG,EAAIH,EAAMG,CAAc,EACtC,OAAOD,EAAWC,CAAG,EAEzB,CAAC,EAEM,CAACF,EAAYC,CAA6B,CACnD"}
@@ -1,4 +1,4 @@
1
- "use strict";const l=require("react/jsx-runtime"),t=require("react"),M=require("@chakra-ui/react"),F=require("@chakra-ui/react/styled-system"),m=require("./Dialog-XGXh4NXU.cjs.js"),g=require("@commercetools/nimbus-icons"),q=require("./useObjectRef-dXOJdONs.cjs.js"),I=require("./useField-C_piDZ9g.cjs.js"),f=require("./box-CWni3A32.cjs.js"),T=require("./icon-button-Bwkgcdyv.cjs.js"),a=t.createContext({context:{label:null,description:null,error:null,info:null,input:null},setContext:()=>{}}),V=`
1
+ "use strict";const l=require("react/jsx-runtime"),t=require("react"),M=require("@chakra-ui/react"),F=require("@chakra-ui/react/styled-system"),m=require("./Dialog-XGXh4NXU.cjs.js"),g=require("@commercetools/nimbus-icons"),q=require("./useObjectRef-dXOJdONs.cjs.js"),I=require("./useField-C_piDZ9g.cjs.js"),f=require("./box-CWni3A32.cjs.js"),T=require("./icon-button-CkjZc6Br.cjs.js"),a=t.createContext({context:{label:null,description:null,error:null,info:null,input:null},setContext:()=>{}}),V=`
2
2
  "label"
3
3
  "input"
4
4
  "description"
@@ -8,4 +8,4 @@
8
8
  "label description"
9
9
  "label error"
10
10
  `,k=F.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)",display:"flex",gap:"100"},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:V},input:{mt:"var(--grid-gap)"},description:{mt:"var(--grid-gap)"},error:{mt:"var(--grid-gap)"}},row:{root:{gridTemplateAreas:W,gridTemplateColumns:"auto 1fr",gridColumnGap:"200"},description:{mt:"var(--grid-gap)"},error:{mt:"var(--grid-gap)"}}}},defaultVariants:{direction:"column",size:"md"}}),{withProvider:N,withContext:p}=F.createSlotRecipeContext({recipe:k}),_=N("div","root"),D=p("div","label"),G=p("div","input"),O=p("div","description"),J=p("div","error"),K=p("div","popover"),h=function({ref:n,id:r,isInvalid:o,isRequired:c,isDisabled:d,isReadOnly:u,children:$,...z}){const E=t.useRef(null),B=q.$df56164dff5785e2$export$4338b53315abf666(M.mergeRefs(E,n)),[e,b]=t.useState({label:null,description:null,error:null,info:null,input:null,isInvalid:o,isRequired:c,isDisabled:d,isReadOnly:u}),w=t.useMemo(()=>{const s={id:r,description:e.description,errorMessage:e.error};return e.label?s.label=e.label:(s["aria-label"]="empty-label",s["aria-labelledby"]="empty-label"),s},[r,e.description,e.error,e.label]),{labelProps:y,fieldProps:x,descriptionProps:A,errorMessageProps:R}=I.$2baaea4c71418dea$export$294aa081a6c6f55d(w);t.useEffect(()=>{b(s=>({...s,isInvalid:o,isRequired:c,isDisabled:d,isReadOnly:u}))},[o,c,d,u]);const H=t.useMemo(()=>({...x,isInvalid:o,isRequired:c,isDisabled:d,isReadOnly:u}),[x,o,c,d,u]),L=t.useMemo(()=>({context:e,setContext:b}),[e]);return l.jsx(a.Provider,{value:L,children:l.jsxs(_,{ref:B,...z,children:[e.label&&l.jsxs(D,{...e.labelSlotProps,children:[l.jsxs("label",{...y,children:[e.label,c&&l.jsx("sup",{"aria-hidden":"true",children:"*"})]}),e.info&&l.jsxs(m.$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(T.IconButton,{"aria-label":"__MORE INFO",size:"2xs",tone:"info",variant:"link",children:l.jsx(g.HelpOutline,{})})})}),l.jsx(m.$07b14b47974efb58$export$5b6b19405a83ff9d,{children:l.jsx(K,{asChild:!0,children:l.jsx(m.$de32f1b87079253c$export$3ddf2d174ce01153,{children:l.jsx(f.Box,{p:"300",children:e.info})})})})]})]}),e.input&&l.jsx(G,{...e.inputSlotProps,children:t.Children.map(e.input,s=>t.isValidElement(s)?t.cloneElement(s,H):s)}),e.description&&l.jsx(O,{...A,...e.descriptionSlotProps,children:e.description}),o&&e.error&&l.jsxs(J,{...R,...e.errorSlotProps,children:[l.jsx(f.Box,{as:g.ErrorOutline,display:"inline-flex",boxSize:"400",verticalAlign:"text-bottom",mr:"100",alignSelf:"center"}),e.error]}),$]})})},v=({children:i,...n})=>{const{setContext:r}=t.useContext(a);return t.useEffect(()=>(r(o=>({...o,label:i,labelSlotProps:n})),()=>{r(o=>({...o,label:null,labelSlotProps:void 0}))}),[i,r]),null},S=({children:i,...n})=>{const{setContext:r}=t.useContext(a);return t.useEffect(()=>{r(o=>({...o,input:i,inputSlotProps:n}))},[i,r]),null},C=({children:i,...n})=>{const{setContext:r}=t.useContext(a);return t.useEffect(()=>(r(o=>({...o,description:i,descriptionSlotProps:n})),()=>{r(o=>({...o,description:null,descriptionSlotProps:void 0}))}),[i,r]),null},j=({children:i,...n})=>{const{setContext:r}=t.useContext(a);return t.useEffect(()=>(r(o=>({...o,error:i,errorSlotProps:n})),()=>{r(o=>({...o,error:null,errorSlotProps:void 0}))}),[i,r]),null},P=({children:i})=>{const{setContext:n}=t.useContext(a);return t.useEffect(()=>(n(r=>({...r,info:i})),()=>{n(r=>({...r,info:null}))}),[i,n]),null},Q={Root:h,Label:v,Input:S,Description:C,Error:j,InfoBox:P};exports.FormField=Q;exports.FormFieldDescription=C;exports.FormFieldError=j;exports.FormFieldInfoBox=P;exports.FormFieldInput=S;exports.FormFieldLabel=v;exports.FormFieldRoot=h;
11
- //# sourceMappingURL=form-field-BDfFWeqm.cjs.js.map
11
+ //# sourceMappingURL=form-field-2NMmaZgp.cjs.js.map