@commercetools/nimbus 0.0.0-canary-20250903194502 → 0.0.0-canary-20250904053156

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 (253) hide show
  1. package/dist/chunks/{DatePicker-BthC1bZ_.es.js → DatePicker-B1Unwe6C.es.js} +2 -2
  2. package/dist/chunks/{DatePicker-BthC1bZ_.es.js.map → DatePicker-B1Unwe6C.es.js.map} +1 -1
  3. package/dist/chunks/{DatePicker-BdV6ICAm.cjs.js → DatePicker-_aG-c1ms.cjs.js} +2 -2
  4. package/dist/chunks/{DatePicker-BdV6ICAm.cjs.js.map → DatePicker-_aG-c1ms.cjs.js.map} +1 -1
  5. package/dist/chunks/{Dialog-BeQ6Z6l2.es.js → Dialog-C9HXv1rP.es.js} +68 -67
  6. package/dist/chunks/{Dialog-BeQ6Z6l2.es.js.map → Dialog-C9HXv1rP.es.js.map} +1 -1
  7. package/dist/chunks/Dialog-DZm5Sj40.cjs.js +2 -0
  8. package/dist/chunks/{Dialog-CYa26HlL.cjs.js.map → Dialog-DZm5Sj40.cjs.js.map} +1 -1
  9. package/dist/chunks/Header-CZkkXWBA.es.js +58 -0
  10. package/dist/chunks/Header-CZkkXWBA.es.js.map +1 -0
  11. package/dist/chunks/Header-D24AtheW.cjs.js +2 -0
  12. package/dist/chunks/Header-D24AtheW.cjs.js.map +1 -0
  13. package/dist/chunks/{ListBox-DF3NHeEX.es.js → ListBox-DWMnhpDd.es.js} +46 -45
  14. package/dist/chunks/{ListBox-DF3NHeEX.es.js.map → ListBox-DWMnhpDd.es.js.map} +1 -1
  15. package/dist/chunks/ListBox-Dnuz2Daa.cjs.js +2 -0
  16. package/dist/chunks/{ListBox-CikEmFBx.cjs.js.map → ListBox-Dnuz2Daa.cjs.js.map} +1 -1
  17. package/dist/chunks/SelectionManager-CtwcAiw4.es.js +1267 -0
  18. package/dist/chunks/SelectionManager-CtwcAiw4.es.js.map +1 -0
  19. package/dist/chunks/SelectionManager-x0j8UpyW.cjs.js +2 -0
  20. package/dist/chunks/SelectionManager-x0j8UpyW.cjs.js.map +1 -0
  21. package/dist/chunks/Separator-BCuq0iz5.es.js +734 -0
  22. package/dist/chunks/Separator-BCuq0iz5.es.js.map +1 -0
  23. package/dist/chunks/Separator-CcMEmnGS.cjs.js +18 -0
  24. package/dist/chunks/Separator-CcMEmnGS.cjs.js.map +1 -0
  25. package/dist/chunks/{alert-BhoRNIWA.cjs.js → alert-Ce4-sHmy.cjs.js} +2 -2
  26. package/dist/chunks/{alert-BhoRNIWA.cjs.js.map → alert-Ce4-sHmy.cjs.js.map} +1 -1
  27. package/dist/chunks/{alert-D-ddqYG4.es.js → alert-fGOiy9nj.es.js} +2 -2
  28. package/dist/chunks/{alert-D-ddqYG4.es.js.map → alert-fGOiy9nj.es.js.map} +1 -1
  29. package/dist/chunks/{button-CRUdodZm.es.js → button-DEgBQobR.es.js} +2 -2
  30. package/dist/chunks/{button-CRUdodZm.es.js.map → button-DEgBQobR.es.js.map} +1 -1
  31. package/dist/chunks/{button-CU8FW_Pl.cjs.js → button-DJYITnqc.cjs.js} +2 -2
  32. package/dist/chunks/{button-CU8FW_Pl.cjs.js.map → button-DJYITnqc.cjs.js.map} +1 -1
  33. package/dist/chunks/{calendar-DJKWldpV.cjs.js → calendar-BdL5nJXs.cjs.js} +2 -2
  34. package/dist/chunks/{calendar-DJKWldpV.cjs.js.map → calendar-BdL5nJXs.cjs.js.map} +1 -1
  35. package/dist/chunks/{calendar-DzwFtg1t.es.js → calendar-Csq6ml4F.es.js} +4 -4
  36. package/dist/chunks/{calendar-DzwFtg1t.es.js.map → calendar-Csq6ml4F.es.js.map} +1 -1
  37. package/dist/chunks/{checkbox-GmYxVrZx.es.js → checkbox-BFQXCWuz.es.js} +2 -2
  38. package/dist/chunks/{checkbox-GmYxVrZx.es.js.map → checkbox-BFQXCWuz.es.js.map} +1 -1
  39. package/dist/chunks/{checkbox-6nLo9Jy2.cjs.js → checkbox-D-x7pyAC.cjs.js} +2 -2
  40. package/dist/chunks/{checkbox-6nLo9Jy2.cjs.js.map → checkbox-D-x7pyAC.cjs.js.map} +1 -1
  41. package/dist/chunks/{combobox-gIwba2QG.es.js → combobox-DXzhNwE_.es.js} +128 -127
  42. package/dist/chunks/{combobox-gIwba2QG.es.js.map → combobox-DXzhNwE_.es.js.map} +1 -1
  43. package/dist/chunks/combobox-Zdlr1WyV.cjs.js +2 -0
  44. package/dist/chunks/{combobox-DtPDxCo3.cjs.js.map → combobox-Zdlr1WyV.cjs.js.map} +1 -1
  45. package/dist/chunks/data-table-DjXI7oCC.cjs.js +2 -0
  46. package/dist/chunks/{data-table-Cpk3q34E.cjs.js.map → data-table-DjXI7oCC.cjs.js.map} +1 -1
  47. package/dist/chunks/{data-table-mXLxUWQz.es.js → data-table-M8ZE7bUF.es.js} +38 -37
  48. package/dist/chunks/{data-table-mXLxUWQz.es.js.map → data-table-M8ZE7bUF.es.js.map} +1 -1
  49. package/dist/chunks/{date-input-D5unoyMt.es.js → date-input-BGa-cgj-.es.js} +3 -3
  50. package/dist/chunks/{date-input-D5unoyMt.es.js.map → date-input-BGa-cgj-.es.js.map} +1 -1
  51. package/dist/chunks/{date-input-DJ_aFB9i.cjs.js → date-input-C4NM5AFC.cjs.js} +2 -2
  52. package/dist/chunks/{date-input-DJ_aFB9i.cjs.js.map → date-input-C4NM5AFC.cjs.js.map} +1 -1
  53. package/dist/chunks/{date-picker-f3TylaP5.cjs.js → date-picker-ChoImuv_.cjs.js} +2 -2
  54. package/dist/chunks/{date-picker-f3TylaP5.cjs.js.map → date-picker-ChoImuv_.cjs.js.map} +1 -1
  55. package/dist/chunks/{date-picker-CMqAI1lp.es.js → date-picker-S6C2mWMs.es.js} +9 -9
  56. package/dist/chunks/{date-picker-CMqAI1lp.es.js.map → date-picker-S6C2mWMs.es.js.map} +1 -1
  57. package/dist/chunks/{date-range-picker-Dtji64Q9.es.js → date-range-picker-DL00UKjF.es.js} +9 -9
  58. package/dist/chunks/{date-range-picker-Dtji64Q9.es.js.map → date-range-picker-DL00UKjF.es.js.map} +1 -1
  59. package/dist/chunks/{date-range-picker-CxsPpWyX.cjs.js → date-range-picker-DLEQGtgO.cjs.js} +2 -2
  60. package/dist/chunks/{date-range-picker-CxsPpWyX.cjs.js.map → date-range-picker-DLEQGtgO.cjs.js.map} +1 -1
  61. package/dist/chunks/divider-BdtT_f-U.es.js +50 -0
  62. package/dist/chunks/divider-BdtT_f-U.es.js.map +1 -0
  63. package/dist/chunks/divider-o2LVtQJm.cjs.js +2 -0
  64. package/dist/chunks/divider-o2LVtQJm.cjs.js.map +1 -0
  65. package/dist/chunks/{extractStyleProps-vA4cNUoc.es.js → extractStyleProps-CFQKiz8b.es.js} +2 -2
  66. package/dist/chunks/{extractStyleProps-vA4cNUoc.es.js.map → extractStyleProps-CFQKiz8b.es.js.map} +1 -1
  67. package/dist/chunks/{extractStyleProps-CZpHKp1I.cjs.js → extractStyleProps-bWKBkEco.cjs.js} +2 -2
  68. package/dist/chunks/{extractStyleProps-CZpHKp1I.cjs.js.map → extractStyleProps-bWKBkEco.cjs.js.map} +1 -1
  69. package/dist/chunks/{form-field-DxcGAb23.cjs.js → form-field-D1lcT5f5.cjs.js} +2 -2
  70. package/dist/chunks/{form-field-DxcGAb23.cjs.js.map → form-field-D1lcT5f5.cjs.js.map} +1 -1
  71. package/dist/chunks/{form-field-Dtcfgzyo.es.js → form-field-DDTIZj9s.es.js} +3 -3
  72. package/dist/chunks/{form-field-Dtcfgzyo.es.js.map → form-field-DDTIZj9s.es.js.map} +1 -1
  73. package/dist/chunks/{icon-button-Cc0MkBbk.cjs.js → icon-button-CPXhdrQY.cjs.js} +2 -2
  74. package/dist/chunks/{icon-button-Cc0MkBbk.cjs.js.map → icon-button-CPXhdrQY.cjs.js.map} +1 -1
  75. package/dist/chunks/{icon-button-C20Gw8gQ.es.js → icon-button-DPtCLr1A.es.js} +2 -2
  76. package/dist/chunks/{icon-button-C20Gw8gQ.es.js.map → icon-button-DPtCLr1A.es.js.map} +1 -1
  77. package/dist/chunks/{icon-toggle-button-D-C99Q0s.cjs.js → icon-toggle-button-BG-F1KE7.cjs.js} +2 -2
  78. package/dist/chunks/{icon-toggle-button-D-C99Q0s.cjs.js.map → icon-toggle-button-BG-F1KE7.cjs.js.map} +1 -1
  79. package/dist/chunks/{icon-toggle-button-CgHQMDs3.es.js → icon-toggle-button-BItuQ_Lh.es.js} +2 -2
  80. package/dist/chunks/{icon-toggle-button-CgHQMDs3.es.js.map → icon-toggle-button-BItuQ_Lh.es.js.map} +1 -1
  81. package/dist/chunks/{index-C8Yrk__l.cjs.js → index-B3DGNvyC.cjs.js} +3 -3
  82. package/dist/chunks/{index-C8Yrk__l.cjs.js.map → index-B3DGNvyC.cjs.js.map} +1 -1
  83. package/dist/chunks/{index-jAeaCpRm.es.js → index-BDXHumM1.es.js} +8 -9
  84. package/dist/chunks/{index-jAeaCpRm.es.js.map → index-BDXHumM1.es.js.map} +1 -1
  85. package/dist/chunks/menu-DxXsyeUG.cjs.js +2 -0
  86. package/dist/chunks/menu-DxXsyeUG.cjs.js.map +1 -0
  87. package/dist/chunks/menu-aLEA43vB.es.js +150 -0
  88. package/dist/chunks/menu-aLEA43vB.es.js.map +1 -0
  89. package/dist/chunks/{multiline-text-input-BGnvpB1r.es.js → multiline-text-input-sr-8f5JV.es.js} +2 -2
  90. package/dist/chunks/{multiline-text-input-BGnvpB1r.es.js.map → multiline-text-input-sr-8f5JV.es.js.map} +1 -1
  91. package/dist/chunks/{multiline-text-input-sXIlwrvT.cjs.js → multiline-text-input-z1pACPVX.cjs.js} +2 -2
  92. package/dist/chunks/{multiline-text-input-sXIlwrvT.cjs.js.map → multiline-text-input-z1pACPVX.cjs.js.map} +1 -1
  93. package/dist/chunks/{nimbus-provider-D3DvYEDv.cjs.js → nimbus-provider-ClSAgdoD.cjs.js} +2 -2
  94. package/dist/chunks/{nimbus-provider-D3DvYEDv.cjs.js.map → nimbus-provider-ClSAgdoD.cjs.js.map} +1 -1
  95. package/dist/chunks/{nimbus-provider-CybdU89B.es.js → nimbus-provider-DaWtjnp-.es.js} +2 -2
  96. package/dist/chunks/{nimbus-provider-CybdU89B.es.js.map → nimbus-provider-DaWtjnp-.es.js.map} +1 -1
  97. package/dist/chunks/{number-input-CPnA0dO-.cjs.js → number-input-BszmEIip.cjs.js} +2 -2
  98. package/dist/chunks/{number-input-CPnA0dO-.cjs.js.map → number-input-BszmEIip.cjs.js.map} +1 -1
  99. package/dist/chunks/{number-input-CzObpfFa.es.js → number-input-D4DKdybl.es.js} +3 -3
  100. package/dist/chunks/{number-input-CzObpfFa.es.js.map → number-input-D4DKdybl.es.js.map} +1 -1
  101. package/dist/chunks/{password-input-C_rdTND7.es.js → password-input-7AyAmLgJ.es.js} +3 -3
  102. package/dist/chunks/{password-input-C_rdTND7.es.js.map → password-input-7AyAmLgJ.es.js.map} +1 -1
  103. package/dist/chunks/{password-input-BqhrDjyW.cjs.js → password-input-BtvFF-4B.cjs.js} +2 -2
  104. package/dist/chunks/{password-input-BqhrDjyW.cjs.js.map → password-input-BtvFF-4B.cjs.js.map} +1 -1
  105. package/dist/chunks/{progress-bar-CrS1rODC.cjs.js → progress-bar-Dz8r8vuu.cjs.js} +2 -2
  106. package/dist/chunks/{progress-bar-CrS1rODC.cjs.js.map → progress-bar-Dz8r8vuu.cjs.js.map} +1 -1
  107. package/dist/chunks/{progress-bar-pPWJ1Sn8.es.js → progress-bar-Wka_eryr.es.js} +2 -2
  108. package/dist/chunks/{progress-bar-pPWJ1Sn8.es.js.map → progress-bar-Wka_eryr.es.js.map} +1 -1
  109. package/dist/chunks/{radio-input-OpbQD2zP.es.js → radio-input-B0qTg-Fb.es.js} +3 -3
  110. package/dist/chunks/{radio-input-OpbQD2zP.es.js.map → radio-input-B0qTg-Fb.es.js.map} +1 -1
  111. package/dist/chunks/{radio-input-BTEXrXaF.cjs.js → radio-input-D_pe6uBJ.cjs.js} +2 -2
  112. package/dist/chunks/{radio-input-BTEXrXaF.cjs.js.map → radio-input-D_pe6uBJ.cjs.js.map} +1 -1
  113. package/dist/chunks/{range-calendar-BOP_J_5a.es.js → range-calendar-CoAszOTq.es.js} +4 -4
  114. package/dist/chunks/{range-calendar-BOP_J_5a.es.js.map → range-calendar-CoAszOTq.es.js.map} +1 -1
  115. package/dist/chunks/{range-calendar-CFotnBzs.cjs.js → range-calendar-T1Wlvm-Z.cjs.js} +2 -2
  116. package/dist/chunks/{range-calendar-CFotnBzs.cjs.js.map → range-calendar-T1Wlvm-Z.cjs.js.map} +1 -1
  117. package/dist/chunks/{rich-text-input-CYlc7Ozc.es.js → rich-text-input-9MdutxJr.es.js} +7 -7
  118. package/dist/chunks/{rich-text-input-CYlc7Ozc.es.js.map → rich-text-input-9MdutxJr.es.js.map} +1 -1
  119. package/dist/chunks/{rich-text-input-C5lp1D-D.cjs.js → rich-text-input-D36fnIHb.cjs.js} +2 -2
  120. package/dist/chunks/{rich-text-input-C5lp1D-D.cjs.js.map → rich-text-input-D36fnIHb.cjs.js.map} +1 -1
  121. package/dist/chunks/select-DFNyky2d.cjs.js +2 -0
  122. package/dist/chunks/{select-Coyt1pJN.cjs.js.map → select-DFNyky2d.cjs.js.map} +1 -1
  123. package/dist/chunks/{select-CAeD_ZuZ.es.js → select-Dz2O_cFR.es.js} +36 -35
  124. package/dist/chunks/{select-CAeD_ZuZ.es.js.map → select-Dz2O_cFR.es.js.map} +1 -1
  125. package/dist/chunks/{split-button-BYrr5vRr.cjs.js → split-button-BIMKDmUe.cjs.js} +2 -2
  126. package/dist/chunks/split-button-BIMKDmUe.cjs.js.map +1 -0
  127. package/dist/chunks/{split-button-j2bgcP59.es.js → split-button-C5Op1s7Z.es.js} +5 -5
  128. package/dist/chunks/split-button-C5Op1s7Z.es.js.map +1 -0
  129. package/dist/chunks/{switch-BgNpbn2e.cjs.js → switch-BToNhl42.cjs.js} +2 -2
  130. package/dist/chunks/{switch-BgNpbn2e.cjs.js.map → switch-BToNhl42.cjs.js.map} +1 -1
  131. package/dist/chunks/{switch-Cid4U3m8.es.js → switch-Poa2k7a5.es.js} +3 -3
  132. package/dist/chunks/{switch-Cid4U3m8.es.js.map → switch-Poa2k7a5.es.js.map} +1 -1
  133. package/dist/chunks/{tag-group-CeNHz5QQ.es.js → tag-group-BCNooINR.es.js} +44 -43
  134. package/dist/chunks/{tag-group-CeNHz5QQ.es.js.map → tag-group-BCNooINR.es.js.map} +1 -1
  135. package/dist/chunks/tag-group-DzXa9m7w.cjs.js +2 -0
  136. package/dist/chunks/{tag-group-B3YSTBpb.cjs.js.map → tag-group-DzXa9m7w.cjs.js.map} +1 -1
  137. package/dist/chunks/{text-input-C2y4O13I.cjs.js → text-input-5jfm2V1Y.cjs.js} +2 -2
  138. package/dist/chunks/{text-input-C2y4O13I.cjs.js.map → text-input-5jfm2V1Y.cjs.js.map} +1 -1
  139. package/dist/chunks/{text-input-TZXg0lEQ.es.js → text-input-Dqx8GVHm.es.js} +3 -3
  140. package/dist/chunks/{text-input-TZXg0lEQ.es.js.map → text-input-Dqx8GVHm.es.js.map} +1 -1
  141. package/dist/chunks/{time-input-cHUvGWDc.cjs.js → time-input-B_PIpe-Z.cjs.js} +2 -2
  142. package/dist/chunks/{time-input-cHUvGWDc.cjs.js.map → time-input-B_PIpe-Z.cjs.js.map} +1 -1
  143. package/dist/chunks/{time-input-CI_HoOGU.es.js → time-input-DxKFrUee.es.js} +2 -2
  144. package/dist/chunks/{time-input-CI_HoOGU.es.js.map → time-input-DxKFrUee.es.js.map} +1 -1
  145. package/dist/chunks/{toggle-button-a0gCembi.es.js → toggle-button-C1bAVGF3.es.js} +3 -3
  146. package/dist/chunks/{toggle-button-a0gCembi.es.js.map → toggle-button-C1bAVGF3.es.js.map} +1 -1
  147. package/dist/chunks/{toggle-button-C9ezVsSp.cjs.js → toggle-button-Cg00z4JT.cjs.js} +2 -2
  148. package/dist/chunks/{toggle-button-C9ezVsSp.cjs.js.map → toggle-button-Cg00z4JT.cjs.js.map} +1 -1
  149. package/dist/chunks/{toolbar-CLGq6IO7.cjs.js → toolbar-ClUkHnY4.cjs.js} +2 -2
  150. package/dist/chunks/{toolbar-CLGq6IO7.cjs.js.map → toolbar-ClUkHnY4.cjs.js.map} +1 -1
  151. package/dist/chunks/{toolbar-hpBfKrTl.es.js → toolbar-Oxkd8pfI.es.js} +3 -3
  152. package/dist/chunks/{toolbar-hpBfKrTl.es.js.map → toolbar-Oxkd8pfI.es.js.map} +1 -1
  153. package/dist/chunks/{useSingleSelectListState-F2WkLZRg.cjs.js → useSingleSelectListState-C_48GoKf.cjs.js} +2 -2
  154. package/dist/chunks/{useSingleSelectListState-F2WkLZRg.cjs.js.map → useSingleSelectListState-C_48GoKf.cjs.js.map} +1 -1
  155. package/dist/chunks/{useSingleSelectListState-D1rjgMv_.es.js → useSingleSelectListState-DZavH1SN.es.js} +2 -2
  156. package/dist/chunks/{useSingleSelectListState-D1rjgMv_.es.js.map → useSingleSelectListState-DZavH1SN.es.js.map} +1 -1
  157. package/dist/components/alert.cjs +1 -1
  158. package/dist/components/alert.es.js +1 -1
  159. package/dist/components/button.cjs +1 -1
  160. package/dist/components/button.es.js +1 -1
  161. package/dist/components/calendar.cjs +1 -1
  162. package/dist/components/calendar.es.js +1 -1
  163. package/dist/components/checkbox.cjs +1 -1
  164. package/dist/components/checkbox.es.js +1 -1
  165. package/dist/components/combobox.cjs +1 -1
  166. package/dist/components/combobox.es.js +1 -1
  167. package/dist/components/components.cjs +1 -1
  168. package/dist/components/components.es.js +46 -47
  169. package/dist/components/data-table.cjs +1 -1
  170. package/dist/components/data-table.es.js +1 -1
  171. package/dist/components/date-input.cjs +1 -1
  172. package/dist/components/date-input.es.js +1 -1
  173. package/dist/components/date-picker.cjs +1 -1
  174. package/dist/components/date-picker.es.js +1 -1
  175. package/dist/components/date-range-picker.cjs +1 -1
  176. package/dist/components/date-range-picker.es.js +1 -1
  177. package/dist/components/divider.cjs +1 -1
  178. package/dist/components/divider.es.js +1 -1
  179. package/dist/components/form-field.cjs +1 -1
  180. package/dist/components/form-field.es.js +1 -1
  181. package/dist/components/icon-button.cjs +1 -1
  182. package/dist/components/icon-button.es.js +1 -1
  183. package/dist/components/icon-toggle-button.cjs +1 -1
  184. package/dist/components/icon-toggle-button.es.js +1 -1
  185. package/dist/components/multiline-text-input.cjs +1 -1
  186. package/dist/components/multiline-text-input.es.js +1 -1
  187. package/dist/components/nimbus-provider.cjs +1 -1
  188. package/dist/components/nimbus-provider.es.js +1 -1
  189. package/dist/components/number-input.cjs +1 -1
  190. package/dist/components/number-input.es.js +1 -1
  191. package/dist/components/password-input.cjs +1 -1
  192. package/dist/components/password-input.es.js +1 -1
  193. package/dist/components/popover.cjs +1 -1
  194. package/dist/components/popover.es.js +1 -1
  195. package/dist/components/progress-bar.cjs +1 -1
  196. package/dist/components/progress-bar.es.js +1 -1
  197. package/dist/components/radio-input.cjs +1 -1
  198. package/dist/components/radio-input.es.js +1 -1
  199. package/dist/components/range-calendar.cjs +1 -1
  200. package/dist/components/range-calendar.es.js +1 -1
  201. package/dist/components/rich-text-input.cjs +1 -1
  202. package/dist/components/rich-text-input.es.js +1 -1
  203. package/dist/components/select.cjs +1 -1
  204. package/dist/components/select.es.js +1 -1
  205. package/dist/components/split-button.cjs +1 -1
  206. package/dist/components/split-button.es.js +1 -1
  207. package/dist/components/switch.cjs +1 -1
  208. package/dist/components/switch.es.js +1 -1
  209. package/dist/components/tag-group.cjs +1 -1
  210. package/dist/components/tag-group.es.js +1 -1
  211. package/dist/components/text-input.cjs +1 -1
  212. package/dist/components/text-input.es.js +1 -1
  213. package/dist/components/time-input.cjs +1 -1
  214. package/dist/components/time-input.es.js +1 -1
  215. package/dist/components/toggle-button.cjs +1 -1
  216. package/dist/components/toggle-button.es.js +1 -1
  217. package/dist/components/toolbar.cjs +1 -1
  218. package/dist/components/toolbar.es.js +1 -1
  219. package/dist/components.d.ts +5 -20
  220. package/dist/divider.d.ts +2 -2
  221. package/dist/index.cjs +1 -1
  222. package/dist/index.d.ts +5 -20
  223. package/dist/index.es.js +99 -100
  224. package/dist/split-button.d.ts +2 -2
  225. package/package.json +5 -5
  226. package/dist/chunks/Dialog-CYa26HlL.cjs.js +0 -2
  227. package/dist/chunks/ListBox-CikEmFBx.cjs.js +0 -2
  228. package/dist/chunks/SelectionManager-CLyu96pU.es.js +0 -1946
  229. package/dist/chunks/SelectionManager-CLyu96pU.es.js.map +0 -1
  230. package/dist/chunks/SelectionManager-Mrwf4SFv.cjs.js +0 -18
  231. package/dist/chunks/SelectionManager-Mrwf4SFv.cjs.js.map +0 -1
  232. package/dist/chunks/Separator-3-E2tRbk.es.js +0 -92
  233. package/dist/chunks/Separator-3-E2tRbk.es.js.map +0 -1
  234. package/dist/chunks/Separator-CAOg-vqY.cjs.js +0 -2
  235. package/dist/chunks/Separator-CAOg-vqY.cjs.js.map +0 -1
  236. package/dist/chunks/combobox-DtPDxCo3.cjs.js +0 -2
  237. package/dist/chunks/data-table-Cpk3q34E.cjs.js +0 -2
  238. package/dist/chunks/divider--BAm3ca4.es.js +0 -53
  239. package/dist/chunks/divider--BAm3ca4.es.js.map +0 -1
  240. package/dist/chunks/divider-BuizjeAj.cjs.js +0 -2
  241. package/dist/chunks/divider-BuizjeAj.cjs.js.map +0 -1
  242. package/dist/chunks/menu-8g9Hn1nm.es.js +0 -157
  243. package/dist/chunks/menu-8g9Hn1nm.es.js.map +0 -1
  244. package/dist/chunks/menu-Bm1u-R6o.cjs.js +0 -2
  245. package/dist/chunks/menu-Bm1u-R6o.cjs.js.map +0 -1
  246. package/dist/chunks/select-Coyt1pJN.cjs.js +0 -2
  247. package/dist/chunks/split-button-BYrr5vRr.cjs.js.map +0 -1
  248. package/dist/chunks/split-button-j2bgcP59.es.js.map +0 -1
  249. package/dist/chunks/tag-group-B3YSTBpb.cjs.js +0 -2
  250. package/dist/chunks/useSeparator-B-OtWwE7.cjs.js +0 -2
  251. package/dist/chunks/useSeparator-B-OtWwE7.cjs.js.map +0 -1
  252. package/dist/chunks/useSeparator-Dg70ACBm.es.js +0 -19
  253. package/dist/chunks/useSeparator-Dg70ACBm.es.js.map +0 -1
@@ -1,53 +0,0 @@
1
- import { jsx as c } from "react/jsx-runtime";
2
- import { useRef as d } from "react";
3
- import { mergeRefs as l } from "@chakra-ui/react";
4
- import { defineRecipe as m, createRecipeContext as p } from "@chakra-ui/react/styled-system";
5
- import { $ as h } from "./useObjectRef-CaJ5pgjX.es.js";
6
- import { $ } from "./mergeProps-B_9syxhT.es.js";
7
- import { $ as b } from "./useSeparator-Dg70ACBm.es.js";
8
- const v = /* @__PURE__ */ m({
9
- className: "nimbus-divider",
10
- // Base styles applied to all instances of the component
11
- base: {
12
- border: "0",
13
- flexShrink: "0",
14
- colorPalette: "neutral",
15
- backgroundColor: "colorPalette.6"
16
- },
17
- // Available variants for customizing the component's appearance
18
- variants: {
19
- orientation: {
20
- horizontal: {
21
- width: "100%",
22
- height: "25"
23
- },
24
- vertical: {
25
- width: "25",
26
- height: "100%"
27
- }
28
- }
29
- },
30
- // Default variant values when not explicitly specified
31
- defaultVariants: {
32
- orientation: "horizontal"
33
- }
34
- }), { withContext: x } = /* @__PURE__ */ p({ recipe: v }), R = /* @__PURE__ */ x("div"), u = (r) => {
35
- const { ref: t, as: i, orientation: e = "horizontal", ...o } = r, a = d(null), n = h(l(a, t)), f = i || e === "vertical" ? "div" : "hr", { separatorProps: s } = b({
36
- orientation: e,
37
- ...o
38
- });
39
- return /* @__PURE__ */ c(
40
- R,
41
- {
42
- as: f,
43
- ...$(o, { ref: n, orientation: e }, s, {
44
- "aria-orientation": e
45
- })
46
- }
47
- );
48
- };
49
- u.displayName = "Divider";
50
- export {
51
- u as D
52
- };
53
- //# sourceMappingURL=divider--BAm3ca4.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"divider--BAm3ca4.es.js","sources":["../../src/components/divider/divider.recipe.ts","../../src/components/divider/divider.slots.tsx","../../src/components/divider/divider.tsx"],"sourcesContent":["import { defineRecipe } from \"@chakra-ui/react/styled-system\";\n\n/**\n * Recipe configuration for the Divider component.\n * Defines the styling variants and base styles using Chakra UI's recipe system.\n */\nexport const dividerRecipe = defineRecipe({\n className: \"nimbus-divider\",\n\n // Base styles applied to all instances of the component\n base: {\n border: \"0\",\n flexShrink: \"0\",\n colorPalette: \"neutral\",\n backgroundColor: \"colorPalette.6\",\n },\n\n // Available variants for customizing the component's appearance\n variants: {\n orientation: {\n horizontal: {\n width: \"100%\",\n height: \"25\",\n },\n vertical: {\n width: \"25\",\n height: \"100%\",\n },\n },\n },\n\n // Default variant values when not explicitly specified\n defaultVariants: {\n orientation: \"horizontal\",\n },\n});\n","import { createRecipeContext } from \"@chakra-ui/react/styled-system\";\n\nimport { dividerRecipe } from \"./divider.recipe\";\nimport type { DividerRootProps } from \"./divider.types\";\n\nconst { withContext } = createRecipeContext({ recipe: dividerRecipe });\n\nexport const DividerRoot = withContext<HTMLDivElement, DividerRootProps>(\"div\");\n","import { useRef } from \"react\";\nimport { useSeparator, useObjectRef, mergeProps } from \"react-aria\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { DividerRoot } from \"./divider.slots\";\nimport type { DividerProps } from \"./divider.types\";\n\n/**\n * Divider\n * ============================================================\n * A visual separator that divides content sections\n *\n * Features:\n *\n * - allows forwarding refs to the underlying DOM element\n * - accepts all native html 'HTMLDivElement' attributes (including aria- & data-attributes)\n * - supports 'variants', 'orientation', etc. configured in the recipe\n * - allows overriding styles by using style-props\n * - supports 'asChild' and 'as' to modify the underlying html-element (polymorphic)\n * - built with React Aria for accessibility\n */\n\nexport const Divider = (props: DividerProps) => {\n const { ref: forwardedRef, as, orientation = \"horizontal\", ...rest } = props;\n\n const localRef = useRef<HTMLDivElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n const elementType = as || orientation === \"vertical\" ? \"div\" : \"hr\";\n\n // Use React Aria's useSeparator hook for accessibility\n const { separatorProps } = useSeparator({\n orientation,\n ...rest,\n });\n\n return (\n <DividerRoot\n as={elementType}\n {...mergeProps(rest, { ref, orientation }, separatorProps, {\n \"aria-orientation\": orientation,\n })}\n />\n );\n};\n\nDivider.displayName = \"Divider\";\n"],"names":["dividerRecipe","defineRecipe","withContext","createRecipeContext","DividerRoot","Divider","props","forwardedRef","as","orientation","rest","localRef","useRef","ref","useObjectRef","mergeRefs","elementType","separatorProps","useSeparator","jsx","mergeProps"],"mappings":";;;;;;;AAMO,MAAMA,IAAgB,gBAAAC,EAAa;AAAA,EACxC,WAAW;AAAA;AAAA,EAGX,MAAM;AAAA,IACJ,QAAQ;AAAA,IACR,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,iBAAiB;AAAA,EAAA;AAAA;AAAA,EAInB,UAAU;AAAA,IACR,aAAa;AAAA,MACX,YAAY;AAAA,QACV,OAAO;AAAA,QACP,QAAQ;AAAA,MAAA;AAAA,MAEV,UAAU;AAAA,QACR,OAAO;AAAA,QACP,QAAQ;AAAA,MAAA;AAAA,IACV;AAAA,EACF;AAAA;AAAA,EAIF,iBAAiB;AAAA,IACf,aAAa;AAAA,EAAA;AAEjB,CAAC,GC9BK,EAAE,aAAAC,EAAA,IAAgB,gBAAAC,EAAoB,EAAE,QAAQH,GAAe,GAExDI,IAAc,gBAAAF,EAA8C,KAAK,GCcjEG,IAAU,CAACC,MAAwB;AAC9C,QAAM,EAAE,KAAKC,GAAc,IAAAC,GAAI,aAAAC,IAAc,cAAc,GAAGC,MAASJ,GAEjEK,IAAWC,EAAuB,IAAI,GACtCC,IAAMC,EAAaC,EAAUJ,GAAUJ,CAAY,CAAC,GAEpDS,IAAcR,KAAMC,MAAgB,aAAa,QAAQ,MAGzD,EAAE,gBAAAQ,EAAA,IAAmBC,EAAa;AAAA,IACtC,aAAAT;AAAA,IACA,GAAGC;AAAA,EAAA,CACJ;AAED,SACE,gBAAAS;AAAA,IAACf;AAAA,IAAA;AAAA,MACC,IAAIY;AAAA,MACH,GAAGI,EAAWV,GAAM,EAAE,KAAAG,GAAK,aAAAJ,EAAA,GAAeQ,GAAgB;AAAA,QACzD,oBAAoBR;AAAA,MAAA,CACrB;AAAA,IAAA;AAAA,EAAA;AAGP;AAEAJ,EAAQ,cAAc;"}
@@ -1,2 +0,0 @@
1
- "use strict";const l=require("react/jsx-runtime"),u=require("react"),p=require("@chakra-ui/react"),r=require("@chakra-ui/react/styled-system"),h=require("./useObjectRef-dXOJdONs.cjs.js"),b=require("./mergeProps-BA5Cwf5w.cjs.js"),v=require("./useSeparator-B-OtWwE7.cjs.js"),R=r.defineRecipe({className:"nimbus-divider",base:{border:"0",flexShrink:"0",colorPalette:"neutral",backgroundColor:"colorPalette.6"},variants:{orientation:{horizontal:{width:"100%",height:"25"},vertical:{width:"25",height:"100%"}}},defaultVariants:{orientation:"horizontal"}}),{withContext:$}=r.createRecipeContext({recipe:R}),m=$("div"),i=o=>{const{ref:n,as:a,orientation:e="horizontal",...t}=o,s=u.useRef(null),c=h.$df56164dff5785e2$export$4338b53315abf666(p.mergeRefs(s,n)),d=a||e==="vertical"?"div":"hr",{separatorProps:f}=v.$f4b273590fab9f93$export$52210f68a14655d0({orientation:e,...t});return l.jsx(m,{as:d,...b.$3ef42575df84b30b$export$9d1611c77c2fe928(t,{ref:c,orientation:e},f,{"aria-orientation":e})})};i.displayName="Divider";exports.Divider=i;
2
- //# sourceMappingURL=divider-BuizjeAj.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"divider-BuizjeAj.cjs.js","sources":["../../src/components/divider/divider.recipe.ts","../../src/components/divider/divider.slots.tsx","../../src/components/divider/divider.tsx"],"sourcesContent":["import { defineRecipe } from \"@chakra-ui/react/styled-system\";\n\n/**\n * Recipe configuration for the Divider component.\n * Defines the styling variants and base styles using Chakra UI's recipe system.\n */\nexport const dividerRecipe = defineRecipe({\n className: \"nimbus-divider\",\n\n // Base styles applied to all instances of the component\n base: {\n border: \"0\",\n flexShrink: \"0\",\n colorPalette: \"neutral\",\n backgroundColor: \"colorPalette.6\",\n },\n\n // Available variants for customizing the component's appearance\n variants: {\n orientation: {\n horizontal: {\n width: \"100%\",\n height: \"25\",\n },\n vertical: {\n width: \"25\",\n height: \"100%\",\n },\n },\n },\n\n // Default variant values when not explicitly specified\n defaultVariants: {\n orientation: \"horizontal\",\n },\n});\n","import { createRecipeContext } from \"@chakra-ui/react/styled-system\";\n\nimport { dividerRecipe } from \"./divider.recipe\";\nimport type { DividerRootProps } from \"./divider.types\";\n\nconst { withContext } = createRecipeContext({ recipe: dividerRecipe });\n\nexport const DividerRoot = withContext<HTMLDivElement, DividerRootProps>(\"div\");\n","import { useRef } from \"react\";\nimport { useSeparator, useObjectRef, mergeProps } from \"react-aria\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { DividerRoot } from \"./divider.slots\";\nimport type { DividerProps } from \"./divider.types\";\n\n/**\n * Divider\n * ============================================================\n * A visual separator that divides content sections\n *\n * Features:\n *\n * - allows forwarding refs to the underlying DOM element\n * - accepts all native html 'HTMLDivElement' attributes (including aria- & data-attributes)\n * - supports 'variants', 'orientation', etc. configured in the recipe\n * - allows overriding styles by using style-props\n * - supports 'asChild' and 'as' to modify the underlying html-element (polymorphic)\n * - built with React Aria for accessibility\n */\n\nexport const Divider = (props: DividerProps) => {\n const { ref: forwardedRef, as, orientation = \"horizontal\", ...rest } = props;\n\n const localRef = useRef<HTMLDivElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n const elementType = as || orientation === \"vertical\" ? \"div\" : \"hr\";\n\n // Use React Aria's useSeparator hook for accessibility\n const { separatorProps } = useSeparator({\n orientation,\n ...rest,\n });\n\n return (\n <DividerRoot\n as={elementType}\n {...mergeProps(rest, { ref, orientation }, separatorProps, {\n \"aria-orientation\": orientation,\n })}\n />\n );\n};\n\nDivider.displayName = \"Divider\";\n"],"names":["dividerRecipe","defineRecipe","withContext","createRecipeContext","DividerRoot","Divider","props","forwardedRef","as","orientation","rest","localRef","useRef","ref","useObjectRef","mergeRefs","elementType","separatorProps","useSeparator","jsx","mergeProps"],"mappings":"iRAMaA,EAAgBC,EAAAA,aAAa,CACxC,UAAW,iBAGX,KAAM,CACJ,OAAQ,IACR,WAAY,IACZ,aAAc,UACd,gBAAiB,gBAAA,EAInB,SAAU,CACR,YAAa,CACX,WAAY,CACV,MAAO,OACP,OAAQ,IAAA,EAEV,SAAU,CACR,MAAO,KACP,OAAQ,MAAA,CACV,CACF,EAIF,gBAAiB,CACf,YAAa,YAAA,CAEjB,CAAC,EC9BK,CAAE,YAAAC,CAAA,EAAgBC,EAAAA,oBAAoB,CAAE,OAAQH,EAAe,EAExDI,EAAcF,EAA8C,KAAK,ECcjEG,EAAWC,GAAwB,CAC9C,KAAM,CAAE,IAAKC,EAAc,GAAAC,EAAI,YAAAC,EAAc,aAAc,GAAGC,GAASJ,EAEjEK,EAAWC,EAAAA,OAAuB,IAAI,EACtCC,EAAMC,EAAAA,0CAAaC,EAAAA,UAAUJ,EAAUJ,CAAY,CAAC,EAEpDS,EAAcR,GAAMC,IAAgB,WAAa,MAAQ,KAGzD,CAAE,eAAAQ,CAAA,EAAmBC,4CAAa,CACtC,YAAAT,EACA,GAAGC,CAAA,CACJ,EAED,OACES,EAAAA,IAACf,EAAA,CACC,GAAIY,EACH,GAAGI,EAAAA,0CAAWV,EAAM,CAAE,IAAAG,EAAK,YAAAJ,CAAA,EAAeQ,EAAgB,CACzD,mBAAoBR,CAAA,CACrB,CAAA,CAAA,CAGP,EAEAJ,EAAQ,YAAc"}
@@ -1,157 +0,0 @@
1
- import { jsx as e, jsxs as M, Fragment as K } from "react/jsx-runtime";
2
- import { createSlotRecipeContext as L, useSlotRecipe as j } from "@chakra-ui/react/styled-system";
3
- import { h as E, $ as O, i as k, j as V, k as W, l as q } from "./Dialog-BeQ6Z6l2.es.js";
4
- import { m as z } from "./index-jAeaCpRm.es.js";
5
- import { createContext as f, useContext as A } from "react";
6
- import { a as B } from "./Button-CNBS3n5a.es.js";
7
- import { e as u } from "./extractStyleProps-vA4cNUoc.es.js";
8
- import { ChevronRight as D } from "@commercetools/nimbus-icons";
9
- import { I as G } from "./icon-BoRbJStV.es.js";
10
- import { e as H, d as J } from "./Separator-3-E2tRbk.es.js";
11
- import { n as Q } from "./SelectionManager-CLyu96pU.es.js";
12
- const { withProvider: U, withContext: a } = /* @__PURE__ */ L({
13
- recipe: z
14
- }), X = /* @__PURE__ */ U(
15
- "div",
16
- "root"
17
- ), h = /* @__PURE__ */ a("button", "trigger"), Y = /* @__PURE__ */ a("div", "popover"), Z = /* @__PURE__ */ a("div", "content"), _ = /* @__PURE__ */ a(
18
- "div",
19
- "item"
20
- ), ee = /* @__PURE__ */ a("div", "separator"), te = /* @__PURE__ */ a("div", "section"), oe = /* @__PURE__ */ a("div", "sectionLabel"), S = /* @__PURE__ */ f(void 0), ne = S.Provider, $ = () => A(S), g = (t) => {
21
- const o = j({ key: "menu" }), [r, n] = o.splitVariantProps(t), {
22
- children: s,
23
- trigger: c,
24
- isOpen: i,
25
- defaultOpen: l,
26
- onOpenChange: d,
27
- ...p
28
- } = n;
29
- return /* @__PURE__ */ e(X, { ...r, asChild: !0, children: /* @__PURE__ */ e(E, { ...{
30
- trigger: c,
31
- isOpen: i,
32
- defaultOpen: l,
33
- onOpenChange: d
34
- }, children: /* @__PURE__ */ e(ne, { value: p, children: s }) }) });
35
- };
36
- g.displayName = "Menu.Root";
37
- const P = ({
38
- children: t,
39
- asChild: o,
40
- ref: r,
41
- ...n
42
- }) => {
43
- const [s, c] = u(n);
44
- return o ? /* @__PURE__ */ e(h, { ref: r, asChild: !0, ...s, children: t }) : /* @__PURE__ */ e(h, { asChild: !0, ...s, children: /* @__PURE__ */ e(B, { ref: r, ...c, children: t }) });
45
- };
46
- P.displayName = "Menu.Trigger";
47
- const re = /* @__PURE__ */ f(
48
- void 0
49
- ), x = re.Provider, m = ({
50
- children: t,
51
- placement: o,
52
- ref: r
53
- }) => {
54
- const n = $();
55
- if (!n)
56
- throw new Error("Menu.Content must be used within Menu.Root");
57
- const { placement: s, ...c } = n, i = o || s || "bottom start";
58
- return /* @__PURE__ */ e(x, { value: { selectionMode: c.selectionMode }, children: /* @__PURE__ */ e(Y, { asChild: !0, children: /* @__PURE__ */ e(O, { placement: i, offset: 4, shouldFlip: !0, children: /* @__PURE__ */ e(Z, { asChild: !0, children: /* @__PURE__ */ e(k, { ref: r, shouldFocusWrap: !0, autoFocus: "first", ...c, children: t }) }) }) }) });
59
- };
60
- m.displayName = "Menu.Content";
61
- const C = ({
62
- children: t,
63
- isCritical: o,
64
- ref: r,
65
- ...n
66
- }) => {
67
- const [s, c] = u(n);
68
- return /* @__PURE__ */ e(
69
- _,
70
- {
71
- asChild: !0,
72
- ...s,
73
- "data-critical": o ? "" : void 0,
74
- children: /* @__PURE__ */ e(V, { ref: r, ...c, children: ({ hasSubmenu: i }) => /* @__PURE__ */ M(K, { children: [
75
- t,
76
- i && /* @__PURE__ */ e(G, { slot: "caretIcon", children: /* @__PURE__ */ e(D, {}) })
77
- ] }) })
78
- }
79
- );
80
- };
81
- C.displayName = "Menu.Item";
82
- const v = ({ ref: t, ...o }) => {
83
- const [r, n] = u(o);
84
- return /* @__PURE__ */ e(ee, { asChild: !0, ...r, children: /* @__PURE__ */ e(H, { ref: t, ...n }) });
85
- };
86
- v.displayName = "Menu.Separator";
87
- const y = ({
88
- children: t,
89
- ref: o,
90
- ...r
91
- }) => {
92
- const [n, s] = u(r);
93
- return /* @__PURE__ */ e(oe, { asChild: !0, ...n, children: /* @__PURE__ */ e(J, { ref: o, ...s, children: t }) });
94
- };
95
- y.displayName = "Menu.SectionLabel";
96
- const N = ({
97
- children: t,
98
- ref: o,
99
- label: r,
100
- items: n,
101
- ...s
102
- }) => {
103
- const c = $(), {
104
- selectionMode: i = c?.selectionMode,
105
- selectedKeys: l = c?.selectedKeys,
106
- defaultSelectedKeys: d = c?.defaultSelectedKeys,
107
- onSelectionChange: p = c?.onSelectionChange,
108
- disallowEmptySelection: b = c?.disallowEmptySelection,
109
- ...w
110
- } = s, [I, F] = u(w);
111
- return /* @__PURE__ */ e(x, { value: { selectionMode: i }, children: /* @__PURE__ */ e(te, { asChild: !0, ...I, children: /* @__PURE__ */ M(
112
- W,
113
- {
114
- ref: o,
115
- selectionMode: i,
116
- selectedKeys: l,
117
- defaultSelectedKeys: d,
118
- onSelectionChange: p,
119
- disallowEmptySelection: b,
120
- ...F,
121
- children: [
122
- /* @__PURE__ */ e(y, { children: r }),
123
- n ? /* @__PURE__ */ e(Q, { items: n, children: t }) : t
124
- ]
125
- }
126
- ) }) });
127
- };
128
- N.displayName = "Menu.Section";
129
- const R = ({
130
- children: t,
131
- ...o
132
- }) => /* @__PURE__ */ e(q, { ...o, children: t });
133
- R.displayName = "Menu.SubmenuTrigger";
134
- const T = ({ children: t, ...o }) => /* @__PURE__ */ e(m, { ...o, placement: "end", children: t });
135
- T.displayName = "Menu.Submenu";
136
- const Me = {
137
- Root: g,
138
- Trigger: P,
139
- Content: m,
140
- Item: C,
141
- Separator: v,
142
- Section: N,
143
- Submenu: T,
144
- SubmenuTrigger: R
145
- };
146
- export {
147
- Me as M,
148
- g as a,
149
- P as b,
150
- m as c,
151
- C as d,
152
- v as e,
153
- N as f,
154
- R as g,
155
- T as h
156
- };
157
- //# sourceMappingURL=menu-8g9Hn1nm.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"menu-8g9Hn1nm.es.js","sources":["../../src/components/menu/menu.slots.tsx","../../src/components/menu/components/menu.context.tsx","../../src/components/menu/components/menu.root.tsx","../../src/components/menu/components/menu.trigger.tsx","../../src/components/menu/components/menu.section-context.tsx","../../src/components/menu/components/menu.content.tsx","../../src/components/menu/components/menu.item.tsx","../../src/components/menu/components/menu.separator.tsx","../../src/components/menu/components/menu.section-label.tsx","../../src/components/menu/components/menu.section.tsx","../../src/components/menu/components/menu.submenu-trigger.tsx","../../src/components/menu/components/menu.submenu.tsx","../../src/components/menu/menu.tsx"],"sourcesContent":["import {\n createSlotRecipeContext,\n type HTMLChakraProps,\n} from \"@chakra-ui/react/styled-system\";\nimport { menuSlotRecipe } from \"./menu.recipe\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: menuSlotRecipe,\n});\n\n// Menu Root\nexport type MenuRootSlotProps = HTMLChakraProps<\"div\">;\nexport const MenuRootSlot = withProvider<HTMLDivElement, MenuRootSlotProps>(\n \"div\",\n \"root\"\n);\n\n// Menu Trigger\nexport type MenuTriggerSlotProps = HTMLChakraProps<\"button\">;\nexport const MenuTriggerSlot = withContext<\n HTMLButtonElement,\n MenuTriggerSlotProps\n>(\"button\", \"trigger\");\n\n// Menu Popover\nexport type MenuPopoverSlotProps = HTMLChakraProps<\"div\">;\nexport const MenuPopoverSlot = withContext<\n HTMLDivElement,\n MenuPopoverSlotProps\n>(\"div\", \"popover\");\n\n// Menu Content\nexport type MenuContentSlotProps = HTMLChakraProps<\"div\">;\nexport const MenuContentSlot = withContext<\n HTMLDivElement,\n MenuContentSlotProps\n>(\"div\", \"content\");\n\n// Menu Item\nexport type MenuItemSlotProps = HTMLChakraProps<\"div\">;\nexport const MenuItemSlot = withContext<HTMLDivElement, MenuItemSlotProps>(\n \"div\",\n \"item\"\n);\n\n// Menu Separator\nexport type MenuSeparatorSlotProps = HTMLChakraProps<\"div\">;\nexport const MenuSeparatorSlot = withContext<\n HTMLDivElement,\n MenuSeparatorSlotProps\n>(\"div\", \"separator\");\n\n// Menu Section\nexport type MenuSectionSlotProps = HTMLChakraProps<\"div\">;\nexport const MenuSectionSlot = withContext<\n HTMLDivElement,\n MenuSectionSlotProps\n>(\"div\", \"section\");\n\n// Menu Section Label\nexport type MenuSectionLabelSlotProps = HTMLChakraProps<\"div\">;\nexport const MenuSectionLabelSlot = withContext<\n HTMLDivElement,\n MenuSectionLabelSlotProps\n>(\"div\", \"sectionLabel\");\n\n// Menu Group Label\nexport type MenuSubmenuSlotProps = HTMLChakraProps<\"div\">;\nexport const MenuSubmenuSlot = withContext<\n HTMLDivElement,\n MenuSubmenuSlotProps\n>(\"div\", \"submenu\");\n","import { createContext, useContext } from \"react\";\nimport type { MenuRootProps } from \"./../menu.types\";\nimport type { MenuTriggerProps as RaMenuTriggerProps } from \"react-aria-components\";\n\n// Context should contain all Menu props (excluding MenuTrigger-specific props)\nexport type MenuContextValue = Omit<\n MenuRootProps,\n keyof RaMenuTriggerProps | \"children\" | \"trigger\"\n>;\n\nconst MenuContext = createContext<MenuContextValue | undefined>(undefined);\n\nexport const MenuProvider = MenuContext.Provider;\n\nexport const useMenuContext = () => {\n const context = useContext(MenuContext);\n return context;\n};\n","import { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { MenuTrigger as RaMenuTrigger } from \"react-aria-components\";\nimport type { MenuRootProps } from \"../menu.types\";\nimport { MenuRootSlot } from \"../menu.slots\";\nimport { MenuProvider } from \"./menu.context\";\n\nexport const MenuRoot = (props: MenuRootProps) => {\n const recipe = useSlotRecipe({ key: \"menu\" });\n const [recipeProps, functionalProps] = recipe.splitVariantProps(props);\n\n // Separate MenuTrigger props from Menu props\n const {\n children,\n trigger,\n isOpen,\n defaultOpen,\n onOpenChange,\n ...menuContextProps\n } = functionalProps;\n\n const menuTriggerProps = {\n trigger,\n isOpen,\n defaultOpen,\n onOpenChange,\n };\n\n return (\n <MenuRootSlot {...recipeProps} asChild>\n <RaMenuTrigger {...menuTriggerProps}>\n <MenuProvider value={menuContextProps}>{children}</MenuProvider>\n </RaMenuTrigger>\n </MenuRootSlot>\n );\n};\n\nMenuRoot.displayName = \"Menu.Root\";\n","import { Button } from \"react-aria-components\";\nimport { MenuTriggerSlot } from \"../menu.slots\";\nimport type { MenuTriggerProps } from \"../menu.types\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport type { ReactNode } from \"react\";\n\nexport const MenuTrigger = ({\n children,\n asChild,\n ref,\n ...props\n}: MenuTriggerProps) => {\n const [styleProps, restProps] = extractStyleProps(props);\n\n /**\n * The user supplied a Button as the trigger\n */\n if (asChild) {\n // When asChild is true, apply styles to the child element\n return (\n <MenuTriggerSlot ref={ref} asChild {...styleProps}>\n {children as ReactNode}\n </MenuTriggerSlot>\n );\n }\n\n /**\n * The user did not supply a Button as trigger, use an unstyled button\n * to wrap which ever element the user supplied and make it a trigger\n */\n return (\n <MenuTriggerSlot asChild {...styleProps}>\n <Button ref={ref} {...restProps}>\n {children}\n </Button>\n </MenuTriggerSlot>\n );\n};\n\nMenuTrigger.displayName = \"Menu.Trigger\";\n","import { createContext, useContext } from \"react\";\n\nexport interface MenuSectionContextValue {\n selectionMode?: \"single\" | \"multiple\" | \"none\";\n}\n/**\n * Why is a second context (MenuSectionContext) needed?\n *\n * MenuSectionContext enables section-level config for menu items, such as\n * selection mode, which may differ from the global menu context. This allows\n * advanced menus where each section can have its own selection behavior\n * (e.g., one section is single-select, another is multi-select).\n * By scoping context to a section, menu items inherit settings from their\n * nearest section, falling back to the global menu context if not present.\n * This pattern improves flexibility and composability for complex menus,\n * and avoids prop drilling or awkward prop merging.\n */\n\nconst MenuSectionContext = createContext<MenuSectionContextValue | undefined>(\n undefined\n);\n\nexport const MenuSectionProvider = MenuSectionContext.Provider;\n\nexport const useMenuSectionContext = () => {\n return useContext(MenuSectionContext);\n};\n","import { Menu, Popover } from \"react-aria-components\";\nimport { MenuContentSlot, MenuPopoverSlot } from \"../menu.slots\";\nimport type { MenuContentProps } from \"../menu.types\";\nimport { useMenuContext } from \"./menu.context\";\nimport { MenuSectionProvider } from \"./menu.section-context\";\n\nexport const MenuContent = ({\n children,\n placement: placementOverride,\n ref,\n}: MenuContentProps) => {\n const contextProps = useMenuContext();\n\n if (!contextProps) {\n throw new Error(\"Menu.Content must be used within Menu.Root\");\n }\n\n // Separate placement from other props since it's handled by Popover\n const { placement, ...menuProps } = contextProps;\n const finalPlacement = placementOverride || placement || \"bottom start\";\n\n return (\n <MenuSectionProvider value={{ selectionMode: menuProps.selectionMode }}>\n <MenuPopoverSlot asChild>\n <Popover placement={finalPlacement} offset={4} shouldFlip>\n <MenuContentSlot asChild>\n <Menu ref={ref} shouldFocusWrap autoFocus=\"first\" {...menuProps}>\n {children}\n </Menu>\n </MenuContentSlot>\n </Popover>\n </MenuPopoverSlot>\n </MenuSectionProvider>\n );\n};\n\nMenuContent.displayName = \"Menu.Content\";\n","import { MenuItem as RaMenuItem } from \"react-aria-components\";\nimport { MenuItemSlot } from \"../menu.slots\";\nimport type { MenuItemProps } from \"../menu.types\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport { ChevronRight } from \"@commercetools/nimbus-icons\";\nimport { Icon } from \"@/components/icon\";\n\nexport const MenuItem = ({\n children,\n isCritical,\n ref,\n ...props\n}: MenuItemProps) => {\n const [styleProps, restProps] = extractStyleProps(props);\n\n return (\n <MenuItemSlot\n asChild\n {...styleProps}\n data-critical={isCritical ? \"\" : undefined}\n >\n <RaMenuItem ref={ref} {...restProps}>\n {({ hasSubmenu }) => (\n <>\n {children}\n {hasSubmenu && (\n <Icon slot=\"caretIcon\">\n <ChevronRight />\n </Icon>\n )}\n </>\n )}\n </RaMenuItem>\n </MenuItemSlot>\n );\n};\n\nMenuItem.displayName = \"Menu.Item\";\n","import { Separator } from \"react-aria-components\";\nimport { MenuSeparatorSlot } from \"../menu.slots\";\nimport type { MenuSeparatorProps } from \"../menu.types\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\n\nexport const MenuSeparator = ({ ref, ...props }: MenuSeparatorProps) => {\n const [styleProps, restProps] = extractStyleProps(props);\n\n return (\n <MenuSeparatorSlot asChild {...styleProps}>\n <Separator ref={ref} {...restProps} />\n </MenuSeparatorSlot>\n );\n};\n\nMenuSeparator.displayName = \"Menu.Separator\";\n","import { Header } from \"react-aria-components\";\nimport { MenuSectionLabelSlot } from \"../menu.slots\";\nimport type { MenuSectionLabelProps } from \"../menu.types\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\n\n/**\n * Used in MenuSection for rendering the `label` property.\n */\nexport const MenuSectionLabel = ({\n children,\n ref,\n ...props\n}: MenuSectionLabelProps) => {\n const [styleProps, restProps] = extractStyleProps(props);\n\n return (\n <MenuSectionLabelSlot asChild {...styleProps}>\n <Header ref={ref} {...restProps}>\n {children}\n </Header>\n </MenuSectionLabelSlot>\n );\n};\n\nMenuSectionLabel.displayName = \"Menu.SectionLabel\";\n","import {\n MenuSection as RaMenuSection,\n Collection,\n} from \"react-aria-components\";\nimport { MenuSectionSlot } from \"../menu.slots\";\nimport type { MenuSectionProps } from \"../menu.types\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport { useMenuContext } from \"./menu.context\";\nimport { MenuSectionProvider } from \"./menu.section-context\";\nimport { MenuSectionLabel } from \"./menu.section-label\";\nimport type { ReactNode } from \"react\";\n\nexport const MenuSection = <T extends object = object>({\n children,\n ref,\n label,\n items,\n ...props\n}: MenuSectionProps<T>) => {\n const contextProps = useMenuContext();\n\n // Extract selection-related props before extracting style props\n const {\n selectionMode = contextProps?.selectionMode,\n selectedKeys = contextProps?.selectedKeys,\n defaultSelectedKeys = contextProps?.defaultSelectedKeys,\n onSelectionChange = contextProps?.onSelectionChange,\n disallowEmptySelection = contextProps?.disallowEmptySelection,\n ...restProps\n } = props;\n\n const [styleProps, otherProps] = extractStyleProps(restProps);\n\n return (\n <MenuSectionProvider value={{ selectionMode }}>\n <MenuSectionSlot asChild {...styleProps}>\n <RaMenuSection\n ref={ref}\n selectionMode={selectionMode}\n selectedKeys={selectedKeys}\n defaultSelectedKeys={defaultSelectedKeys}\n onSelectionChange={onSelectionChange}\n disallowEmptySelection={disallowEmptySelection}\n {...otherProps}\n >\n <MenuSectionLabel>{label}</MenuSectionLabel>\n {items ? (\n <Collection items={items}>{children}</Collection>\n ) : (\n (children as ReactNode)\n )}\n </RaMenuSection>\n </MenuSectionSlot>\n </MenuSectionProvider>\n );\n};\n\nMenuSection.displayName = \"Menu.Section\";\n","import { SubmenuTrigger as RaSubmenuTrigger } from \"react-aria-components\";\nimport type { MenuSubmenuTriggerProps } from \"../menu.types\";\n\nexport const MenuSubmenuTrigger = ({\n children,\n ...props\n}: MenuSubmenuTriggerProps) => {\n return <RaSubmenuTrigger {...props}>{children}</RaSubmenuTrigger>;\n};\n\nMenuSubmenuTrigger.displayName = \"Menu.SubmenuTrigger\";\n","import type { MenuSubmenuProps } from \"../menu.types\";\nimport { MenuContent } from \"./menu.content\";\n\nexport const MenuSubmenu = ({ children, ...props }: MenuSubmenuProps) => {\n return (\n <MenuContent {...props} placement=\"end\">\n {children}\n </MenuContent>\n );\n};\n\nMenuSubmenu.displayName = \"Menu.Submenu\";\n","import { MenuRoot } from \"./components/menu.root\";\nimport { MenuTrigger } from \"./components/menu.trigger\";\nimport { MenuContent } from \"./components/menu.content\";\nimport { MenuItem } from \"./components/menu.item\";\nimport { MenuSeparator } from \"./components/menu.separator\";\nimport { MenuSection } from \"./components/menu.section\";\nimport { MenuSubmenuTrigger } from \"./components/menu.submenu-trigger\";\nimport { MenuSubmenu } from \"./components/menu.submenu\";\n\n// Re-export types\nexport type * from \"./menu.types\";\n\nexport const Menu = {\n Root: MenuRoot,\n Trigger: MenuTrigger,\n Content: MenuContent,\n Item: MenuItem,\n Separator: MenuSeparator,\n Section: MenuSection,\n Submenu: MenuSubmenu,\n SubmenuTrigger: MenuSubmenuTrigger,\n};\n\n// Exports for internal use by react-docgen\nexport {\n MenuRoot as _MenuRoot,\n MenuTrigger as _MenuTrigger,\n MenuContent as _MenuContent,\n MenuItem as _MenuItem,\n MenuSeparator as _MenuSeparator,\n MenuSection as _MenuSection,\n MenuSubmenuTrigger as _MenuSubmenuTrigger,\n MenuSubmenu as _MenuSubmenu,\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","menuSlotRecipe","MenuRootSlot","MenuTriggerSlot","MenuPopoverSlot","MenuContentSlot","MenuItemSlot","MenuSeparatorSlot","MenuSectionSlot","MenuSectionLabelSlot","MenuContext","createContext","MenuProvider","useMenuContext","useContext","MenuRoot","props","recipe","useSlotRecipe","recipeProps","functionalProps","children","trigger","isOpen","defaultOpen","onOpenChange","menuContextProps","jsx","RaMenuTrigger","MenuTrigger","asChild","ref","styleProps","restProps","extractStyleProps","Button","MenuSectionContext","MenuSectionProvider","MenuContent","placementOverride","contextProps","placement","menuProps","finalPlacement","Popover","Menu","MenuItem","isCritical","RaMenuItem","hasSubmenu","jsxs","Fragment","Icon","ChevronRight","MenuSeparator","Separator","MenuSectionLabel","Header","MenuSection","label","items","selectionMode","selectedKeys","defaultSelectedKeys","onSelectionChange","disallowEmptySelection","otherProps","RaMenuSection","Collection","MenuSubmenuTrigger","RaSubmenuTrigger","MenuSubmenu"],"mappings":";;;;;;;;;;;AAMA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,QAAQC;AACV,CAAC,GAIYC,IAAe,gBAAAJ;AAAA,EAC1B;AAAA,EACA;AACF,GAIaK,IAAkB,gBAAAJ,EAG7B,UAAU,SAAS,GAIRK,IAAkB,gBAAAL,EAG7B,OAAO,SAAS,GAILM,IAAkB,gBAAAN,EAG7B,OAAO,SAAS,GAILO,IAAe,gBAAAP;AAAA,EAC1B;AAAA,EACA;AACF,GAIaQ,KAAoB,gBAAAR,EAG/B,OAAO,WAAW,GAIPS,KAAkB,gBAAAT,EAG7B,OAAO,SAAS,GAILU,KAAuB,gBAAAV,EAGlC,OAAO,cAAc,GCtDjBW,IAAc,gBAAAC,EAA4C,MAAS,GAE5DC,KAAeF,EAAY,UAE3BG,IAAiB,MACZC,EAAWJ,CAAW,GCT3BK,IAAW,CAACC,MAAyB;AAChD,QAAMC,IAASC,EAAc,EAAE,KAAK,QAAQ,GACtC,CAACC,GAAaC,CAAe,IAAIH,EAAO,kBAAkBD,CAAK,GAG/D;AAAA,IACJ,UAAAK;AAAA,IACA,SAAAC;AAAA,IACA,QAAAC;AAAA,IACA,aAAAC;AAAA,IACA,cAAAC;AAAA,IACA,GAAGC;AAAA,EAAA,IACDN;AASJ,2BACGlB,GAAA,EAAc,GAAGiB,GAAa,SAAO,IACpC,UAAA,gBAAAQ,EA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,UAAAK,EAAA,CAAS;AAGhDgD,EAAmB,cAAc;ACP1B,MAAME,IAAc,CAAC,EAAE,UAAAlD,GAAU,GAAGL,0BAEtCsB,GAAA,EAAa,GAAGtB,GAAO,WAAU,OAC/B,UAAAK,GACH;AAIJkD,EAAY,cAAc;ACCnB,MAAM1B,KAAO;AAAA,EAClB,MAAM9B;AAAA,EACN,SAASc;AAAA,EACT,SAASS;AAAA,EACT,MAAMQ;AAAA,EACN,WAAWQ;AAAA,EACX,SAASI;AAAA,EACT,SAASa;AAAA,EACT,gBAAgBF;AAClB;"}
@@ -1,2 +0,0 @@
1
- "use strict";const e=require("react/jsx-runtime"),f=require("@chakra-ui/react/styled-system"),l=require("./Dialog-CYa26HlL.cjs.js"),K=require("./index-C8Yrk__l.cjs.js"),b=require("react"),L=require("./Button-BtJHe9xY.cjs.js"),a=require("./extractStyleProps-CZpHKp1I.cjs.js"),E=require("@commercetools/nimbus-icons"),O=require("./icon-Cny8ZtnX.cjs.js"),v=require("./Separator-CAOg-vqY.cjs.js"),k=require("./SelectionManager-Mrwf4SFv.cjs.js"),{withProvider:B,withContext:u}=f.createSlotRecipeContext({recipe:K.menuSlotRecipe}),D=B("div","root"),C=u("button","trigger"),V=u("div","popover"),W=u("div","content"),z=u("div","item"),A=u("div","separator"),G=u("div","section"),H=u("div","sectionLabel"),R=b.createContext(void 0),J=R.Provider,q=()=>b.useContext(R),m=t=>{const n=f.useSlotRecipe({key:"menu"}),[r,o]=n.splitVariantProps(t),{children:c,trigger:s,isOpen:i,defaultOpen:p,onOpenChange:x,...S}=o,M={trigger:s,isOpen:i,defaultOpen:p,onOpenChange:x};return e.jsx(D,{...r,asChild:!0,children:e.jsx(l.$3674c52c6b3c5bce$export$27d2ad3c5815583e,{...M,children:e.jsx(J,{value:S,children:c})})})};m.displayName="Menu.Root";const h=({children:t,asChild:n,ref:r,...o})=>{const[c,s]=a.extractStyleProps(o);return n?e.jsx(C,{ref:r,asChild:!0,...c,children:t}):e.jsx(C,{asChild:!0,...c,children:e.jsx(L.$d2b4bc8c273e7be6$export$353f5b6fc5456de1,{ref:r,...s,children:t})})};h.displayName="Menu.Trigger";const Q=b.createContext(void 0),T=Q.Provider,d=({children:t,placement:n,ref:r})=>{const o=q();if(!o)throw new Error("Menu.Content must be used within Menu.Root");const{placement:c,...s}=o,i=n||c||"bottom start";return e.jsx(T,{value:{selectionMode:s.selectionMode},children:e.jsx(V,{asChild:!0,children:e.jsx(l.$07b14b47974efb58$export$5b6b19405a83ff9d,{placement:i,offset:4,shouldFlip:!0,children:e.jsx(W,{asChild:!0,children:e.jsx(l.$3674c52c6b3c5bce$export$d9b273488cd8ce6f,{ref:r,shouldFocusWrap:!0,autoFocus:"first",...s,children:t})})})})})};d.displayName="Menu.Content";const P=({children:t,isCritical:n,ref:r,...o})=>{const[c,s]=a.extractStyleProps(o);return e.jsx(z,{asChild:!0,...c,"data-critical":n?"":void 0,children:e.jsx(l.$3674c52c6b3c5bce$export$2ce376c2cc3355c8,{ref:r,...s,children:({hasSubmenu:i})=>e.jsxs(e.Fragment,{children:[t,i&&e.jsx(O.Icon,{slot:"caretIcon",children:e.jsx(E.ChevronRight,{})})]})})})};P.displayName="Menu.Item";const g=({ref:t,...n})=>{const[r,o]=a.extractStyleProps(n);return e.jsx(A,{asChild:!0,...r,children:e.jsx(v.$431f98aba6844401$export$1ff3c3f08ae963c0,{ref:t,...o})})};g.displayName="Menu.Separator";const N=({children:t,ref:n,...r})=>{const[o,c]=a.extractStyleProps(r);return e.jsx(H,{asChild:!0,...o,children:e.jsx(v.$72a5793c14baf454$export$8b251419efc915eb,{ref:n,...c,children:t})})};N.displayName="Menu.SectionLabel";const $=({children:t,ref:n,label:r,items:o,...c})=>{const s=q(),{selectionMode:i=s?.selectionMode,selectedKeys:p=s?.selectedKeys,defaultSelectedKeys:x=s?.defaultSelectedKeys,onSelectionChange:S=s?.onSelectionChange,disallowEmptySelection:M=s?.disallowEmptySelection,...I}=c,[w,F]=a.extractStyleProps(I);return e.jsx(T,{value:{selectionMode:i},children:e.jsx(G,{asChild:!0,...w,children:e.jsxs(l.$3674c52c6b3c5bce$export$4b1545b4f2016d26,{ref:n,selectionMode:i,selectedKeys:p,defaultSelectedKeys:x,onSelectionChange:S,disallowEmptySelection:M,...F,children:[e.jsx(N,{children:r}),o?e.jsx(k.$e1995378a142960e$export$fb8073518f34e6ec,{items:o,children:t}):t]})})})};$.displayName="Menu.Section";const y=({children:t,...n})=>e.jsx(l.$3674c52c6b3c5bce$export$ecabc99eeffab7ca,{...n,children:t});y.displayName="Menu.SubmenuTrigger";const j=({children:t,...n})=>e.jsx(d,{...n,placement:"end",children:t});j.displayName="Menu.Submenu";const U={Root:m,Trigger:h,Content:d,Item:P,Separator:g,Section:$,Submenu:j,SubmenuTrigger:y};exports.Menu=U;exports.MenuContent=d;exports.MenuItem=P;exports.MenuRoot=m;exports.MenuSection=$;exports.MenuSeparator=g;exports.MenuSubmenu=j;exports.MenuSubmenuTrigger=y;exports.MenuTrigger=h;
2
- //# sourceMappingURL=menu-Bm1u-R6o.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"menu-Bm1u-R6o.cjs.js","sources":["../../src/components/menu/menu.slots.tsx","../../src/components/menu/components/menu.context.tsx","../../src/components/menu/components/menu.root.tsx","../../src/components/menu/components/menu.trigger.tsx","../../src/components/menu/components/menu.section-context.tsx","../../src/components/menu/components/menu.content.tsx","../../src/components/menu/components/menu.item.tsx","../../src/components/menu/components/menu.separator.tsx","../../src/components/menu/components/menu.section-label.tsx","../../src/components/menu/components/menu.section.tsx","../../src/components/menu/components/menu.submenu-trigger.tsx","../../src/components/menu/components/menu.submenu.tsx","../../src/components/menu/menu.tsx"],"sourcesContent":["import {\n createSlotRecipeContext,\n type HTMLChakraProps,\n} from \"@chakra-ui/react/styled-system\";\nimport { menuSlotRecipe } from \"./menu.recipe\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: menuSlotRecipe,\n});\n\n// Menu Root\nexport type MenuRootSlotProps = HTMLChakraProps<\"div\">;\nexport const MenuRootSlot = withProvider<HTMLDivElement, MenuRootSlotProps>(\n \"div\",\n \"root\"\n);\n\n// Menu Trigger\nexport type MenuTriggerSlotProps = HTMLChakraProps<\"button\">;\nexport const MenuTriggerSlot = withContext<\n HTMLButtonElement,\n MenuTriggerSlotProps\n>(\"button\", \"trigger\");\n\n// Menu Popover\nexport type MenuPopoverSlotProps = HTMLChakraProps<\"div\">;\nexport const MenuPopoverSlot = withContext<\n HTMLDivElement,\n MenuPopoverSlotProps\n>(\"div\", \"popover\");\n\n// Menu Content\nexport type MenuContentSlotProps = HTMLChakraProps<\"div\">;\nexport const MenuContentSlot = withContext<\n HTMLDivElement,\n MenuContentSlotProps\n>(\"div\", \"content\");\n\n// Menu Item\nexport type MenuItemSlotProps = HTMLChakraProps<\"div\">;\nexport const MenuItemSlot = withContext<HTMLDivElement, MenuItemSlotProps>(\n \"div\",\n \"item\"\n);\n\n// Menu Separator\nexport type MenuSeparatorSlotProps = HTMLChakraProps<\"div\">;\nexport const MenuSeparatorSlot = withContext<\n HTMLDivElement,\n MenuSeparatorSlotProps\n>(\"div\", \"separator\");\n\n// Menu Section\nexport type MenuSectionSlotProps = HTMLChakraProps<\"div\">;\nexport const MenuSectionSlot = withContext<\n HTMLDivElement,\n MenuSectionSlotProps\n>(\"div\", \"section\");\n\n// Menu Section Label\nexport type MenuSectionLabelSlotProps = HTMLChakraProps<\"div\">;\nexport const MenuSectionLabelSlot = withContext<\n HTMLDivElement,\n MenuSectionLabelSlotProps\n>(\"div\", \"sectionLabel\");\n\n// Menu Group Label\nexport type MenuSubmenuSlotProps = HTMLChakraProps<\"div\">;\nexport const MenuSubmenuSlot = withContext<\n HTMLDivElement,\n MenuSubmenuSlotProps\n>(\"div\", \"submenu\");\n","import { createContext, useContext } from \"react\";\nimport type { MenuRootProps } from \"./../menu.types\";\nimport type { MenuTriggerProps as RaMenuTriggerProps } from \"react-aria-components\";\n\n// Context should contain all Menu props (excluding MenuTrigger-specific props)\nexport type MenuContextValue = Omit<\n MenuRootProps,\n keyof RaMenuTriggerProps | \"children\" | \"trigger\"\n>;\n\nconst MenuContext = createContext<MenuContextValue | undefined>(undefined);\n\nexport const MenuProvider = MenuContext.Provider;\n\nexport const useMenuContext = () => {\n const context = useContext(MenuContext);\n return context;\n};\n","import { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { MenuTrigger as RaMenuTrigger } from \"react-aria-components\";\nimport type { MenuRootProps } from \"../menu.types\";\nimport { MenuRootSlot } from \"../menu.slots\";\nimport { MenuProvider } from \"./menu.context\";\n\nexport const MenuRoot = (props: MenuRootProps) => {\n const recipe = useSlotRecipe({ key: \"menu\" });\n const [recipeProps, functionalProps] = recipe.splitVariantProps(props);\n\n // Separate MenuTrigger props from Menu props\n const {\n children,\n trigger,\n isOpen,\n defaultOpen,\n onOpenChange,\n ...menuContextProps\n } = functionalProps;\n\n const menuTriggerProps = {\n trigger,\n isOpen,\n defaultOpen,\n onOpenChange,\n };\n\n return (\n <MenuRootSlot {...recipeProps} asChild>\n <RaMenuTrigger {...menuTriggerProps}>\n <MenuProvider value={menuContextProps}>{children}</MenuProvider>\n </RaMenuTrigger>\n </MenuRootSlot>\n );\n};\n\nMenuRoot.displayName = \"Menu.Root\";\n","import { Button } from \"react-aria-components\";\nimport { MenuTriggerSlot } from \"../menu.slots\";\nimport type { MenuTriggerProps } from \"../menu.types\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport type { ReactNode } from \"react\";\n\nexport const MenuTrigger = ({\n children,\n asChild,\n ref,\n ...props\n}: MenuTriggerProps) => {\n const [styleProps, restProps] = extractStyleProps(props);\n\n /**\n * The user supplied a Button as the trigger\n */\n if (asChild) {\n // When asChild is true, apply styles to the child element\n return (\n <MenuTriggerSlot ref={ref} asChild {...styleProps}>\n {children as ReactNode}\n </MenuTriggerSlot>\n );\n }\n\n /**\n * The user did not supply a Button as trigger, use an unstyled button\n * to wrap which ever element the user supplied and make it a trigger\n */\n return (\n <MenuTriggerSlot asChild {...styleProps}>\n <Button ref={ref} {...restProps}>\n {children}\n </Button>\n </MenuTriggerSlot>\n );\n};\n\nMenuTrigger.displayName = \"Menu.Trigger\";\n","import { createContext, useContext } from \"react\";\n\nexport interface MenuSectionContextValue {\n selectionMode?: \"single\" | \"multiple\" | \"none\";\n}\n/**\n * Why is a second context (MenuSectionContext) needed?\n *\n * MenuSectionContext enables section-level config for menu items, such as\n * selection mode, which may differ from the global menu context. This allows\n * advanced menus where each section can have its own selection behavior\n * (e.g., one section is single-select, another is multi-select).\n * By scoping context to a section, menu items inherit settings from their\n * nearest section, falling back to the global menu context if not present.\n * This pattern improves flexibility and composability for complex menus,\n * and avoids prop drilling or awkward prop merging.\n */\n\nconst MenuSectionContext = createContext<MenuSectionContextValue | undefined>(\n undefined\n);\n\nexport const MenuSectionProvider = MenuSectionContext.Provider;\n\nexport const useMenuSectionContext = () => {\n return useContext(MenuSectionContext);\n};\n","import { Menu, Popover } from \"react-aria-components\";\nimport { MenuContentSlot, MenuPopoverSlot } from \"../menu.slots\";\nimport type { MenuContentProps } from \"../menu.types\";\nimport { useMenuContext } from \"./menu.context\";\nimport { MenuSectionProvider } from \"./menu.section-context\";\n\nexport const MenuContent = ({\n children,\n placement: placementOverride,\n ref,\n}: MenuContentProps) => {\n const contextProps = useMenuContext();\n\n if (!contextProps) {\n throw new Error(\"Menu.Content must be used within Menu.Root\");\n }\n\n // Separate placement from other props since it's handled by Popover\n const { placement, ...menuProps } = contextProps;\n const finalPlacement = placementOverride || placement || \"bottom start\";\n\n return (\n <MenuSectionProvider value={{ selectionMode: menuProps.selectionMode }}>\n <MenuPopoverSlot asChild>\n <Popover placement={finalPlacement} offset={4} shouldFlip>\n <MenuContentSlot asChild>\n <Menu ref={ref} shouldFocusWrap autoFocus=\"first\" {...menuProps}>\n {children}\n </Menu>\n </MenuContentSlot>\n </Popover>\n </MenuPopoverSlot>\n </MenuSectionProvider>\n );\n};\n\nMenuContent.displayName = \"Menu.Content\";\n","import { MenuItem as RaMenuItem } from \"react-aria-components\";\nimport { MenuItemSlot } from \"../menu.slots\";\nimport type { MenuItemProps } from \"../menu.types\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport { ChevronRight } from \"@commercetools/nimbus-icons\";\nimport { Icon } from \"@/components/icon\";\n\nexport const MenuItem = ({\n children,\n isCritical,\n ref,\n ...props\n}: MenuItemProps) => {\n const [styleProps, restProps] = extractStyleProps(props);\n\n return (\n <MenuItemSlot\n asChild\n {...styleProps}\n data-critical={isCritical ? \"\" : undefined}\n >\n <RaMenuItem ref={ref} {...restProps}>\n {({ hasSubmenu }) => (\n <>\n {children}\n {hasSubmenu && (\n <Icon slot=\"caretIcon\">\n <ChevronRight />\n </Icon>\n )}\n </>\n )}\n </RaMenuItem>\n </MenuItemSlot>\n );\n};\n\nMenuItem.displayName = \"Menu.Item\";\n","import { Separator } from \"react-aria-components\";\nimport { MenuSeparatorSlot } from \"../menu.slots\";\nimport type { MenuSeparatorProps } from \"../menu.types\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\n\nexport const MenuSeparator = ({ ref, ...props }: MenuSeparatorProps) => {\n const [styleProps, restProps] = extractStyleProps(props);\n\n return (\n <MenuSeparatorSlot asChild {...styleProps}>\n <Separator ref={ref} {...restProps} />\n </MenuSeparatorSlot>\n );\n};\n\nMenuSeparator.displayName = \"Menu.Separator\";\n","import { Header } from \"react-aria-components\";\nimport { MenuSectionLabelSlot } from \"../menu.slots\";\nimport type { MenuSectionLabelProps } from \"../menu.types\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\n\n/**\n * Used in MenuSection for rendering the `label` property.\n */\nexport const MenuSectionLabel = ({\n children,\n ref,\n ...props\n}: MenuSectionLabelProps) => {\n const [styleProps, restProps] = extractStyleProps(props);\n\n return (\n <MenuSectionLabelSlot asChild {...styleProps}>\n <Header ref={ref} {...restProps}>\n {children}\n </Header>\n </MenuSectionLabelSlot>\n );\n};\n\nMenuSectionLabel.displayName = \"Menu.SectionLabel\";\n","import {\n MenuSection as RaMenuSection,\n Collection,\n} from \"react-aria-components\";\nimport { MenuSectionSlot } from \"../menu.slots\";\nimport type { MenuSectionProps } from \"../menu.types\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport { useMenuContext } from \"./menu.context\";\nimport { MenuSectionProvider } from \"./menu.section-context\";\nimport { MenuSectionLabel } from \"./menu.section-label\";\nimport type { ReactNode } from \"react\";\n\nexport const MenuSection = <T extends object = object>({\n children,\n ref,\n label,\n items,\n ...props\n}: MenuSectionProps<T>) => {\n const contextProps = useMenuContext();\n\n // Extract selection-related props before extracting style props\n const {\n selectionMode = contextProps?.selectionMode,\n selectedKeys = contextProps?.selectedKeys,\n defaultSelectedKeys = contextProps?.defaultSelectedKeys,\n onSelectionChange = contextProps?.onSelectionChange,\n disallowEmptySelection = contextProps?.disallowEmptySelection,\n ...restProps\n } = props;\n\n const [styleProps, otherProps] = extractStyleProps(restProps);\n\n return (\n <MenuSectionProvider value={{ selectionMode }}>\n <MenuSectionSlot asChild {...styleProps}>\n <RaMenuSection\n ref={ref}\n selectionMode={selectionMode}\n selectedKeys={selectedKeys}\n defaultSelectedKeys={defaultSelectedKeys}\n onSelectionChange={onSelectionChange}\n disallowEmptySelection={disallowEmptySelection}\n {...otherProps}\n >\n <MenuSectionLabel>{label}</MenuSectionLabel>\n {items ? (\n <Collection items={items}>{children}</Collection>\n ) : (\n (children as ReactNode)\n )}\n </RaMenuSection>\n </MenuSectionSlot>\n </MenuSectionProvider>\n );\n};\n\nMenuSection.displayName = \"Menu.Section\";\n","import { SubmenuTrigger as RaSubmenuTrigger } from \"react-aria-components\";\nimport type { MenuSubmenuTriggerProps } from \"../menu.types\";\n\nexport const MenuSubmenuTrigger = ({\n children,\n ...props\n}: MenuSubmenuTriggerProps) => {\n return <RaSubmenuTrigger {...props}>{children}</RaSubmenuTrigger>;\n};\n\nMenuSubmenuTrigger.displayName = \"Menu.SubmenuTrigger\";\n","import type { MenuSubmenuProps } from \"../menu.types\";\nimport { MenuContent } from \"./menu.content\";\n\nexport const MenuSubmenu = ({ children, ...props }: MenuSubmenuProps) => {\n return (\n <MenuContent {...props} placement=\"end\">\n {children}\n </MenuContent>\n );\n};\n\nMenuSubmenu.displayName = \"Menu.Submenu\";\n","import { MenuRoot } from \"./components/menu.root\";\nimport { MenuTrigger } from \"./components/menu.trigger\";\nimport { MenuContent } from \"./components/menu.content\";\nimport { MenuItem } from \"./components/menu.item\";\nimport { MenuSeparator } from \"./components/menu.separator\";\nimport { MenuSection } from \"./components/menu.section\";\nimport { MenuSubmenuTrigger } from \"./components/menu.submenu-trigger\";\nimport { MenuSubmenu } from \"./components/menu.submenu\";\n\n// Re-export types\nexport type * from \"./menu.types\";\n\nexport const Menu = {\n Root: MenuRoot,\n Trigger: MenuTrigger,\n Content: MenuContent,\n Item: MenuItem,\n Separator: MenuSeparator,\n Section: MenuSection,\n Submenu: MenuSubmenu,\n SubmenuTrigger: MenuSubmenuTrigger,\n};\n\n// Exports for internal use by react-docgen\nexport {\n MenuRoot as _MenuRoot,\n MenuTrigger as _MenuTrigger,\n MenuContent as _MenuContent,\n MenuItem as _MenuItem,\n MenuSeparator as _MenuSeparator,\n MenuSection as _MenuSection,\n MenuSubmenuTrigger as _MenuSubmenuTrigger,\n MenuSubmenu as _MenuSubmenu,\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","menuSlotRecipe","MenuRootSlot","MenuTriggerSlot","MenuPopoverSlot","MenuContentSlot","MenuItemSlot","MenuSeparatorSlot","MenuSectionSlot","MenuSectionLabelSlot","MenuContext","createContext","MenuProvider","useMenuContext","useContext","MenuRoot","props","recipe","useSlotRecipe","recipeProps","functionalProps","children","trigger","isOpen","defaultOpen","onOpenChange","menuContextProps","menuTriggerProps","jsx","RaMenuTrigger","MenuTrigger","asChild","ref","styleProps","restProps","extractStyleProps","Button","MenuSectionContext","MenuSectionProvider","MenuContent","placementOverride","contextProps","placement","menuProps","finalPlacement","Popover","Menu","MenuItem","isCritical","RaMenuItem","hasSubmenu","jsxs","Fragment","Icon","ChevronRight","MenuSeparator","Separator","MenuSectionLabel","Header","MenuSection","label","items","selectionMode","selectedKeys","defaultSelectedKeys","onSelectionChange","disallowEmptySelection","otherProps","RaMenuSection","Collection","MenuSubmenuTrigger","RaSubmenuTrigger","MenuSubmenu"],"mappings":"ybAMM,CAAE,aAAAA,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,OAAQC,EAAAA,cACV,CAAC,EAIYC,EAAeJ,EAC1B,MACA,MACF,EAIaK,EAAkBJ,EAG7B,SAAU,SAAS,EAIRK,EAAkBL,EAG7B,MAAO,SAAS,EAILM,EAAkBN,EAG7B,MAAO,SAAS,EAILO,EAAeP,EAC1B,MACA,MACF,EAIaQ,EAAoBR,EAG/B,MAAO,WAAW,EAIPS,EAAkBT,EAG7B,MAAO,SAAS,EAILU,EAAuBV,EAGlC,MAAO,cAAc,ECtDjBW,EAAcC,EAAAA,cAA4C,MAAS,EAE5DC,EAAeF,EAAY,SAE3BG,EAAiB,IACZC,EAAAA,WAAWJ,CAAW,ECT3BK,EAAYC,GAAyB,CAChD,MAAMC,EAASC,EAAAA,cAAc,CAAE,IAAK,OAAQ,EACtC,CAACC,EAAaC,CAAe,EAAIH,EAAO,kBAAkBD,CAAK,EAG/D,CACJ,SAAAK,EACA,QAAAC,EACA,OAAAC,EACA,YAAAC,EACA,aAAAC,EACA,GAAGC,CAAA,EACDN,EAEEO,EAAmB,CACvB,QAAAL,EACA,OAAAC,EACA,YAAAC,EACA,aAAAC,CAAA,EAGF,aACGvB,EAAA,CAAc,GAAGiB,EAAa,QAAO,GACpC,SAAAS,EAAAA,IAACC,4CAAA,CAAe,GAAGF,EACjB,eAACf,EAAA,CAAa,MAAOc,EAAmB,SAAAL,CAAA,CAAS,EACnD,EACF,CAEJ,EAEAN,EAAS,YAAc,YC9BhB,MAAMe,EAAc,CAAC,CAC1B,SAAAT,EACA,QA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Ac,aAC7B,oBAAAuB,EAAsBvB,GAAc,oBACpC,kBAAAwB,EAAoBxB,GAAc,kBAClC,uBAAAyB,EAAyBzB,GAAc,uBACvC,GAAGP,CAAA,EACDlB,EAEE,CAACiB,EAAYkC,CAAU,EAAIhC,EAAAA,kBAAkBD,CAAS,EAE5D,OACEN,EAAAA,IAACU,EAAA,CAAoB,MAAO,CAAE,cAAAwB,CAAA,EAC5B,SAAAlC,EAAAA,IAACpB,EAAA,CAAgB,QAAO,GAAE,GAAGyB,EAC3B,SAAAkB,EAAAA,KAACiB,EAAAA,0CAAA,CACC,IAAApC,EACA,cAAA8B,EACA,aAAAC,EACA,oBAAAC,EACA,kBAAAC,EACA,uBAAAC,EACC,GAAGC,EAEJ,SAAA,CAAAvC,EAAAA,IAAC6B,GAAkB,SAAAG,CAAA,CAAM,EACxBC,EACCjC,EAAAA,IAACyC,EAAAA,0CAAA,CAAW,MAAAR,EAAe,SAAAxC,EAAS,EAEnCA,CAAA,CAAA,CAAA,EAGP,CAAA,CACF,CAEJ,EAEAsC,EAAY,YAAc,eCtDnB,MAAMW,EAAqB,CAAC,CACjC,SAAAjD,EACA,GAAGL,CACL,IACSY,EAAAA,IAAC2C,EAAAA,0CAAA,CAAkB,GAAGvD,EAAQ,SAAAK,CAAA,CAAS,EAGhDiD,EAAmB,YAAc,sBCP1B,MAAME,EAAc,CAAC,CAAE,SAAAnD,EAAU,GAAGL,WAEtCuB,EAAA,CAAa,GAAGvB,EAAO,UAAU,MAC/B,SAAAK,EACH,EAIJmD,EAAY,YAAc,eCCnB,MAAM1B,EAAO,CAClB,KAAM/B,EACN,QAASe,EACT,QAASS,EACT,KAAMQ,EACN,UAAWQ,EACX,QAASI,EACT,QAASa,EACT,eAAgBF,CAClB"}
@@ -1,2 +0,0 @@
1
- "use strict";const s=require("react/jsx-runtime"),i=require("react"),z=require("@chakra-ui/react/styled-system"),L=require("@commercetools/nimbus-icons"),Z=require("./box-CWni3A32.cjs.js"),N=require("./Button-BtJHe9xY.cjs.js"),F=require("./Dialog-CYa26HlL.cjs.js"),h=require("./utils-BHdR5Nww.cjs.js"),re=require("./FieldError-DyGFfqST.cjs.js"),ae=require("./Form-BuOomA4T.cjs.js"),ne=require("./intlStrings-ClBuC6xN.cjs.js"),_=require("./Label-BgrYyYXn.cjs.js"),B=require("./ListBox-CikEmFBx.cjs.js"),G=require("./Text-BWSfeB9p.cjs.js"),O=require("./SelectionManager-Mrwf4SFv.cjs.js"),D=require("./mergeProps-BA5Cwf5w.cjs.js"),H=require("./filterDOMProps-WUskt27c.cjs.js"),ee=require("./OverlayArrow-CYjyBtg8.cjs.js"),se=require("./useLocalizedStringFormatter-sB0mFYtL.cjs.js"),te=require("./useFormValidation-BEaCuNx1.cjs.js"),de=require("./useSingleSelectListState-F2WkLZRg.cjs.js"),ce=require("./useFocusRing-CzFer4bD.cjs.js"),ue=require("./useFocusVisible-Co0C61s7.cjs.js"),fe=require("./useCollator-YVJAe1GI.cjs.js"),be=require("./useField-DmqO9k7a.cjs.js"),$e=require("./useFormReset--wPlnEOl.cjs.js"),pe=require("./VisuallyHidden-Bv_AJXZ7.cjs.js"),ve=require("./icon-button-Cc0MkBbk.cjs.js"),xe=require("./index-C8Yrk__l.cjs.js"),le=require("./extractStyleProps-CZpHKp1I.cjs.js"),T=require("@chakra-ui/react/flex"),me=require("./Separator-CAOg-vqY.cjs.js"),W=new WeakMap;function he(e,t,n){let{keyboardDelegate:r,isDisabled:l,isRequired:d,name:u,form:a,validationBehavior:c="aria"}=e,$=fe.$325a3faab7a68acd$export$a16aca283550c30d({usage:"search",sensitivity:"base"}),o=i.useMemo(()=>r||new O.$2a25aae57d74318e$export$a05409b8bb224a5a(t.collection,t.disabledKeys,n,$),[r,t.collection,t.disabledKeys,$,n]),{menuTriggerProps:v,menuProps:p}=F.$168583247155ddda$export$dc9c12ed27dd1b49({isDisabled:l,type:"listbox"},t,n),f=b=>{switch(b.key){case"ArrowLeft":{var S,g;b.preventDefault();let q=t.selectedKey!=null?(S=o.getKeyAbove)===null||S===void 0?void 0:S.call(o,t.selectedKey):(g=o.getFirstKey)===null||g===void 0?void 0:g.call(o);q&&t.setSelectedKey(q);break}case"ArrowRight":{var k,V;b.preventDefault();let q=t.selectedKey!=null?(k=o.getKeyBelow)===null||k===void 0?void 0:k.call(o,t.selectedKey):(V=o.getFirstKey)===null||V===void 0?void 0:V.call(o);q&&t.setSelectedKey(q);break}}},{typeSelectProps:x}=O.$fb3050f43d946246$export$e32c88dfddc6e1d8({keyboardDelegate:o,selectionManager:t.selectionManager,onTypeSelect(b){t.setSelectedKey(b)}}),{isInvalid:P,validationErrors:R,validationDetails:I}=t.displayValidation,{labelProps:w,fieldProps:C,descriptionProps:y,errorMessageProps:E}=be.$2baaea4c71418dea$export$294aa081a6c6f55d({...e,labelElementType:"span",isInvalid:P,errorMessage:e.errorMessage||R});x.onKeyDown=x.onKeyDownCapture,delete x.onKeyDownCapture;let M=H.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{labelable:!0}),m=D.$3ef42575df84b30b$export$9d1611c77c2fe928(x,v,C),j=D.$bdb11010cef70236$export$f680877a34711e37();return W.set(t,{isDisabled:l,isRequired:d,name:u,form:a,validationBehavior:c}),{labelProps:{...w,onClick:()=>{if(!e.isDisabled){var b;(b=n.current)===null||b===void 0||b.focus(),ue.$507fabe10e71c6fb$export$8397ddfc504fdb9a("keyboard")}}},triggerProps:D.$3ef42575df84b30b$export$9d1611c77c2fe928(M,{...m,isDisabled:l,onKeyDown:D.$ff5963eb1fccf552$export$e08e3b67e392101e(m.onKeyDown,f,e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[j,m["aria-labelledby"],m["aria-label"]&&!m["aria-labelledby"]?m.id:null].filter(Boolean).join(" "),onFocus(b){t.isFocused||(e.onFocus&&e.onFocus(b),e.onFocusChange&&e.onFocusChange(!0),t.setFocused(!0))},onBlur(b){t.isOpen||(e.onBlur&&e.onBlur(b),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))}}),valueProps:{id:j},menuProps:{...p,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:b=>{b.currentTarget.contains(b.relatedTarget)||(e.onBlur&&e.onBlur(b),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))},"aria-labelledby":[C["aria-labelledby"],m["aria-label"]&&!C["aria-labelledby"]?m.id:null].filter(Boolean).join(" ")},descriptionProps:y,errorMessageProps:E,isInvalid:P,validationErrors:R,validationDetails:I,hiddenSelectProps:{isDisabled:l,name:u,label:e.label,state:t,triggerRef:n,form:a}}}function ye(e,t,n){let r=W.get(t)||{},{autoComplete:l,name:d=r.name,form:u=r.form,isDisabled:a=r.isDisabled}=e,{validationBehavior:c,isRequired:$}=r,{visuallyHiddenProps:o}=pe.$5c3e21d68f1c4674$export$a966af930f325cab({style:{position:"fixed",top:0,left:0}});$e.$99facab73266f662$export$5add1d006293d136(e.selectRef,t.defaultSelectedKey,t.setSelectedKey),te.$e93e671b31057976$export$b8473d3665f3a75a({validationBehavior:c,focus:()=>{var f;return(f=n.current)===null||f===void 0?void 0:f.focus()}},t,e.selectRef);let v=i.useCallback(f=>t.setSelectedKey(f.currentTarget.value),[t.setSelectedKey]);var p;return{containerProps:{...o,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{tabIndex:-1,autoComplete:l,disabled:a,required:c==="native"&&$,name:d,form:u,value:(p=t.selectedKey)!==null&&p!==void 0?p:"",onChange:v,onInput:v}}}function Se(e){let{state:t,triggerRef:n,label:r,name:l,form:d,isDisabled:u}=e,a=i.useRef(null),c=i.useRef(null),{containerProps:$,selectProps:o}=ye({...e,selectRef:t.collection.size<=300?a:c},t,n);if(t.collection.size<=300)return i.createElement("div",{...$,"data-testid":"hidden-select-container"},i.createElement("label",null,r,i.createElement("select",{...o,ref:a},i.createElement("option",null),[...t.collection.getKeys()].map(p=>{let f=t.collection.getItem(p);if(f&&f.type==="item")return i.createElement("option",{key:f.key,value:f.key},f.textValue)}))));if(l){let p=W.get(t)||{},{validationBehavior:f}=p;var v;let x={type:"hidden",autoComplete:o.autoComplete,name:l,form:d,disabled:u,value:(v=t.selectedKey)!==null&&v!==void 0?v:""};return f==="native"?i.createElement("input",{...x,ref:c,style:{display:"none"},type:"text",required:o.required,onChange:()=>{}}):i.createElement("input",{...x,ref:c})}return null}function ge(e){let t=ee.$fc909762b330b746$export$61c6a8c84e605fb6(e),[n,r]=i.useState(null),l=de.$a0d645289fe9b86b$export$e7f05e985daf4b5f({...e,onSelectionChange:o=>{e.onSelectionChange!=null&&e.onSelectionChange(o),t.close(),d.commitValidation()}}),d=te.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:l.selectedKey}),[u,a]=i.useState(!1),[c]=i.useState(l.selectedKey);var $;return{...d,...l,...t,defaultSelectedKey:($=e.defaultSelectedKey)!==null&&$!==void 0?$:c,focusStrategy:n,open(o=null){l.collection.size!==0&&(r(o),t.open())},toggle(o=null){l.collection.size!==0&&(r(o),t.toggle())},isFocused:u,setFocused:a}}function Pe(e){return e&&e.__esModule?e.default:e}const A=i.createContext(null),U=i.createContext(null),Re=i.forwardRef(function(t,n){[t,n]=h.$64fa3d84918910a7$export$29f1550f4b0d4415(t,n,A);let{children:r,isDisabled:l=!1,isInvalid:d=!1,isRequired:u=!1}=t,a=i.useMemo(()=>typeof r=="function"?r({isOpen:!1,isDisabled:l,isInvalid:d,isRequired:u,isFocused:!1,isFocusVisible:!1,defaultChildren:null}):r,[r,l,d,u]);return i.createElement(O.$e1995378a142960e$export$bf788dd355e3a401,{content:a},c=>i.createElement(qe,{props:t,collection:c,selectRef:n}))}),Ce=[_.$01b77f81d0f07f68$export$75b6ee27786ba447,N.$d2b4bc8c273e7be6$export$24d547caef80ccd1,G.$514c0188e459b4c0$export$9afb8bc826b033ea];function qe({props:e,selectRef:t,collection:n}){let{validationBehavior:r}=h.$64fa3d84918910a7$export$fabf2dc03a41866e(ae.$d3e0e05bdfcf66bd$export$c24727297075ec6a)||{};var l,d;let u=(d=(l=e.validationBehavior)!==null&&l!==void 0?l:r)!==null&&d!==void 0?d:"native",a=ge({...e,collection:n,children:void 0,validationBehavior:u}),{isFocusVisible:c,focusProps:$}=ce.$f7dceffc5ad7768b$export$4e328f61c538687f({within:!0}),o=i.useRef(null),[v,p]=h.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!e["aria-label"]&&!e["aria-labelledby"]),{labelProps:f,triggerProps:x,valueProps:P,menuProps:R,descriptionProps:I,errorMessageProps:w,hiddenSelectProps:C,...y}=he({...h.$64fa3d84918910a7$export$ef03459518577ad4(e),label:p,validationBehavior:u},a,o),[E,M]=i.useState(null),m=i.useCallback(()=>{o.current&&M(o.current.offsetWidth+"px")},[o]);ee.$9daab02d461809db$export$683480f191c0e3ea({ref:o,onResize:m});let j=i.useMemo(()=>({isOpen:a.isOpen,isFocused:a.isFocused,isFocusVisible:c,isDisabled:e.isDisabled||!1,isInvalid:y.isInvalid||!1,isRequired:e.isRequired||!1}),[a.isOpen,a.isFocused,c,e.isDisabled,y.isInvalid,e.isRequired]),b=h.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,values:j,defaultClassName:"react-aria-Select"}),S=H.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});delete S.id;let g=i.useRef(null);return i.createElement(h.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[A,e],[U,a],[oe,P],[_.$01b77f81d0f07f68$export$75b6ee27786ba447,{...f,ref:v,elementType:"span"}],[N.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{...x,ref:o,isPressed:a.isOpen,autoFocus:e.autoFocus}],[F.$de32f1b87079253c$export$d2f961adcb0afbe,a],[F.$07b14b47974efb58$export$9b9a0cd73afb7ca4,{trigger:"Select",triggerRef:o,scrollRef:g,placement:"bottom start",style:{"--trigger-width":E},"aria-labelledby":R["aria-labelledby"],clearContexts:Ce}],[B.$eed445e0843c11d0$export$7ff8f37d2d81a48d,{...R,ref:g}],[B.$eed445e0843c11d0$export$7c5906fe4f1f2af2,a],[G.$514c0188e459b4c0$export$9afb8bc826b033ea,{slots:{description:I,errorMessage:w}}],[re.$ee014567cb39d3f0$export$ff05c3ac10437e03,y]]},i.createElement("div",{...D.$3ef42575df84b30b$export$9d1611c77c2fe928(S,b,$),ref:t,slot:e.slot||void 0,"data-focused":a.isFocused||void 0,"data-focus-visible":c||void 0,"data-open":a.isOpen||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":y.isInvalid||void 0,"data-required":e.isRequired||void 0},b.children,i.createElement(Se,{...C,autoComplete:e.autoComplete})))}const oe=i.createContext(null),De=i.forwardRef(function(t,n){var r,l;[t,n]=h.$64fa3d84918910a7$export$29f1550f4b0d4415(t,n,oe);let d=i.useContext(U),{placeholder:u}=h.$64fa3d84918910a7$export$fabf2dc03a41866e(A),a=d.selectedKey!=null?d.collection.getItem(d.selectedKey):null,c=a?.props.children;typeof c=="function"&&(c=c({isHovered:!1,isPressed:!1,isSelected:!1,isFocused:!1,isFocusVisible:!1,isDisabled:!1,selectionMode:"single",selectionBehavior:"toggle"}));let $=se.$fca6afa0e843324b$export$f12b703ca79dfbb1(Pe(ne.$df39c1238ae2b5f3$exports),"react-aria-components");var o,v,p;let f=h.$64fa3d84918910a7$export$4d86445c2cf5e3({...t,defaultChildren:(o=c??u)!==null&&o!==void 0?o:$.format("selectPlaceholder"),defaultClassName:"react-aria-SelectValue",values:{selectedItem:(v=(r=d.selectedItem)===null||r===void 0?void 0:r.value)!==null&&v!==void 0?v:null,selectedText:(p=(l=d.selectedItem)===null||l===void 0?void 0:l.textValue)!==null&&p!==void 0?p:null,isPlaceholder:!a}}),x=H.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{global:!0});return i.createElement("span",{ref:n,...x,...f,"data-placeholder":!a||void 0},i.createElement(G.$514c0188e459b4c0$export$9afb8bc826b033ea.Provider,{value:void 0},f.children))}),{withProvider:Fe,withContext:K}=z.createSlotRecipeContext({key:"select"}),Be=Fe("div","root"),Ke=K("button","trigger"),je=K("span","triggerLabel"),Oe=K("div","options"),Ie=K("div","option"),we=K("div","optionGroup"),ie=()=>{const e=i.useContext(U);if(!e?.selectedKey)return null;const t=()=>{e?.setSelectedKey(null)};return s.jsx(F.$f1ab8c75478c6f73$export$cf75428e0b9ed1ea,{children:s.jsx(ve.IconButton,{pointerEvents:"all",size:"2xs",variant:"ghost",tone:"primary","aria-label":"Clear Selection",onPress:t,children:s.jsx(L.Close,{})})})};ie.displayName="Select.ClearButton";const X=i.forwardRef(({children:e,isLoading:t,isDisabled:n,...r},l)=>{const d=z.useSlotRecipe({recipe:xe.selectSlotRecipe}),[u,a]=d.splitVariantProps(r),[c,$]=le.extractStyleProps(a),o={...$,isDisabled:t||n};return s.jsx(Be,{asChild:!0,ref:l,...u,...c,children:s.jsxs(Re,{...o,children:[s.jsxs(z.chakra.div,{position:"relative",children:[s.jsx(Ke,{zIndex:0,asChild:!0,children:s.jsx(N.$d2b4bc8c273e7be6$export$353f5b6fc5456de1,{children:s.jsx(je,{asChild:!0,children:s.jsx(De,{})})})}),s.jsxs(T.Flex,{position:"absolute",top:"0",bottom:"0",zIndex:1,right:"400",pointerEvents:"none",children:[s.jsx(T.Flex,{width:"600",my:"auto",children:s.jsx(ie,{})}),s.jsx(T.Flex,{my:"auto",w:"600",h:"600",pointerEvents:"none",children:s.jsx(Z.Box,{color:"neutral.9",asChild:!0,m:"auto",w:"400",h:"400",children:t?s.jsx(Z.Box,{asChild:!0,animation:"spin",animationDuration:"slowest",children:s.jsx(L.Loop,{})}):s.jsx(L.KeyboardArrowDown,{})})})]})]}),s.jsx(F.$07b14b47974efb58$export$5b6b19405a83ff9d,{children:e})]})})});X.displayName="Select.Root";const J=e=>{const{ref:t,...n}=e,[r,l]=le.extractStyleProps(n);return s.jsx(Oe,{asChild:!0,...r,children:s.jsx(B.$eed445e0843c11d0$export$41f133550aa26f48,{ref:t,...l})})};J.displayName="Select.Options";const Q=({ref:e,...t})=>s.jsx(Ie,{asChild:!0,ref:e,children:s.jsx(B.$eed445e0843c11d0$export$a11e76429ed99b4,{...t})});Q.displayName="Select.Option";const Y=e=>{const{ref:t,label:n,items:r,children:l,...d}=e;if(r&&typeof l!="function")throw new Error('SelectOptionGroup: When "items" is provided, "children" must be a function');return s.jsxs(B.$eed445e0843c11d0$export$dca12b0bb56e4fc,{ref:t,...d,children:[s.jsx(we,{asChild:!0,children:s.jsx(me.$72a5793c14baf454$export$8b251419efc915eb,{children:n})}),r?s.jsx(O.$e1995378a142960e$export$fb8073518f34e6ec,{items:r,children:u=>typeof l=="function"?l(u):null}):l]})};Y.displayName="Select.OptionGroup";const Ee={Root:X,Options:J,Option:Q,OptionGroup:Y};exports.Select=Ee;exports.SelectOption=Q;exports.SelectOptionGroup=Y;exports.SelectOptions=J;exports.SelectRoot=X;
2
- //# sourceMappingURL=select-Coyt1pJN.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"split-button-BYrr5vRr.cjs.js","sources":["../../src/components/split-button/split-button.slots.tsx","../../src/components/split-button/split-button.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-object-type */\nimport {\n createSlotRecipeContext,\n type HTMLChakraProps,\n type RecipeVariantProps,\n} from \"@chakra-ui/react\";\nimport { splitButtonSlotRecipe } from \"./split-button.recipe\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: splitButtonSlotRecipe,\n});\n\n// Root Container\nexport interface SplitButtonRootSlotProps\n extends HTMLChakraProps<\n \"div\",\n RecipeVariantProps<typeof splitButtonSlotRecipe>\n > {}\nexport const SplitButtonRootSlot = withProvider<\n HTMLDivElement,\n SplitButtonRootSlotProps\n>(\"div\", \"root\");\n\n// Button Group Container\nexport interface SplitButtonButtonGroupSlotProps\n extends HTMLChakraProps<\"div\"> {}\nexport const SplitButtonButtonGroupSlot = withContext<\n HTMLDivElement,\n SplitButtonButtonGroupSlotProps\n>(\"div\", \"buttonGroup\");\n\n// Primary Action Button\nexport interface SplitButtonPrimaryButtonSlotProps\n extends HTMLChakraProps<\"button\"> {}\nexport const SplitButtonPrimaryButtonSlot = withContext<\n HTMLButtonElement,\n SplitButtonPrimaryButtonSlotProps\n>(\"button\", \"primaryButton\");\n\n// Dropdown Trigger Button\nexport interface SplitButtonTriggerSlotProps\n extends HTMLChakraProps<\"button\"> {}\nexport const SplitButtonTriggerSlot = withContext<\n HTMLButtonElement,\n SplitButtonTriggerSlotProps\n>(\"button\", \"dropdownTrigger\");\n","import React from \"react\";\nimport { Button } from \"@/components/button\";\nimport { IconButton } from \"@/components/icon-button\";\nimport { Menu } from \"@/components/menu\";\nimport type { SplitButtonProps } from \"./split-button.types\";\nimport {\n SplitButtonRootSlot,\n SplitButtonButtonGroupSlot,\n SplitButtonPrimaryButtonSlot,\n SplitButtonTriggerSlot,\n} from \"./split-button.slots\";\nimport { KeyboardArrowDown } from \"@commercetools/nimbus-icons\";\n\n// Re-export types\nexport type * from \"./split-button.types\";\n\n/**\n * # SplitButton\n *\n * A split-button component that combines a primary action button with a dropdown menu.\n *\n * Shows a primary action button + dropdown trigger. The primary button automatically\n * executes the first enabled Menu.Item action, while the dropdown trigger opens a menu\n * with all available options.\n *\n * Use with Menu.Item, Menu.Section, and Menu.Separator components for content.\n */\nexport const SplitButton = (props: SplitButtonProps) => {\n const {\n size = \"md\",\n variant = \"solid\",\n tone,\n isDisabled = false,\n \"aria-label\": ariaLabel,\n onAction,\n isOpen,\n defaultOpen,\n onOpenChange,\n } = props;\n\n const buttonProps = { size, variant, tone };\n\n /**\n * CORE CONCEPT: In split button mode, we need to populate the primary button\n * with content from a Menu.Item (specified by defaultAction prop).\n *\n * Why this complexity exists:\n * - Users define actions as <Menu.Item id=\"save\">Save Document</Menu.Item>\n * - We need to extract \"Save Document\" text to show on the primary button\n * - Menu.Items can be nested inside Menu.Section components\n * - We need to handle disabled states and fallbacks\n */\n\n // Type guards for safe prop access\n interface MenuItemProps {\n id: string;\n children: React.ReactNode;\n isDisabled?: boolean;\n isCritical?: boolean;\n }\n\n interface ComponentWithChildren {\n children: React.ReactNode;\n }\n\n // Check if element is a Menu.Item with required props\n const isMenuItemWithId = (\n element: React.ReactNode\n ): element is React.ReactElement<MenuItemProps> => {\n if (!React.isValidElement(element) || !element.props) return false;\n const props = element.props as Record<string, unknown>;\n return \"id\" in props && typeof props.id === \"string\";\n };\n\n // Check if element has children prop\n const hasChildren = (\n element: React.ReactNode\n ): element is React.ReactElement<ComponentWithChildren> => {\n if (!React.isValidElement(element) || !element.props) return false;\n const props = element.props as Record<string, unknown>;\n return \"children\" in props;\n };\n\n // Separate Icon slots from Menu items\n const childArray = React.Children.toArray(props.children);\n const iconElement = childArray.find(\n (child): child is React.ReactElement =>\n React.isValidElement(child) &&\n (child.props as { slot?: string })?.slot === \"icon\"\n );\n const menuItems = childArray.filter(\n (child) =>\n !React.isValidElement(child) ||\n (child.props as { slot?: string })?.slot !== \"icon\"\n );\n\n /**\n * Check if there are any actionable (enabled) Menu.Items in the children.\n * This is used to determine if the dropdown trigger should be disabled.\n */\n const hasActionableMenuItems = (children: React.ReactNode): boolean => {\n let hasActionable = false;\n\n React.Children.forEach(children, (child) => {\n if (hasActionable) return;\n\n // Check if this is an enabled Menu.Item\n if (isMenuItemWithId(child) && !child.props.isDisabled) {\n hasActionable = true;\n return;\n }\n\n // Recurse into Menu.Section or any component with children\n if (hasChildren(child)) {\n hasActionable = hasActionableMenuItems(child.props.children);\n }\n });\n\n return hasActionable;\n };\n\n /**\n * Find the primary Menu.Item using the same logic as the original PrimaryActionDropdown.\n * Selects the first enabled Menu.Item, or falls back to the first Menu.Item if all are disabled.\n */\n const findPrimaryMenuItem = () => {\n const allMenuItems: Array<{\n content: React.ReactNode;\n isDisabled: boolean;\n actionId: string | null;\n }> = [];\n\n // Recursively collect all Menu.Items from children (including nested ones)\n const collectMenuItems = (children: React.ReactNode): void => {\n React.Children.forEach(children, (child) => {\n if (isMenuItemWithId(child)) {\n allMenuItems.push({\n content: child.props.children,\n isDisabled: child.props.isDisabled || false,\n actionId: child.props.id,\n });\n }\n\n // Recurse into Menu.Section or any component with children\n if (hasChildren(child)) {\n collectMenuItems(child.props.children);\n }\n });\n };\n\n collectMenuItems(menuItems);\n\n // Find first enabled Menu.Item, or fallback to first Menu.Item\n const primaryMenuItem =\n allMenuItems.find((item) => !item.isDisabled) || allMenuItems[0];\n\n return (\n primaryMenuItem || {\n // TODO: Localize this\n content: \"No actions available\",\n isDisabled: true,\n actionId: null,\n }\n );\n };\n\n // Check if there are any actionable menu items for dropdown functionality\n const hasActionableItems = hasActionableMenuItems(menuItems);\n\n // Get the primary button content using smart selection\n const buttonContent = findPrimaryMenuItem();\n\n const executePrimaryAction = () => {\n if (!buttonContent.isDisabled && buttonContent.actionId && onAction) {\n onAction(buttonContent.actionId);\n }\n };\n\n const isPrimaryDisabled = isDisabled || buttonContent.isDisabled;\n const isDropdownTriggerDisabled = isDisabled || !hasActionableItems;\n\n return (\n <SplitButtonRootSlot variant={variant} data-mode=\"split\">\n <SplitButtonButtonGroupSlot>\n {/* Primary Action Button */}\n <SplitButtonPrimaryButtonSlot asChild>\n <Button\n {...buttonProps}\n isDisabled={isPrimaryDisabled}\n onPress={executePrimaryAction}\n >\n {iconElement}\n {buttonContent.content}\n </Button>\n </SplitButtonPrimaryButtonSlot>\n\n {/* Menu Trigger and Dropdown */}\n <Menu.Root\n trigger=\"press\"\n isOpen={isOpen}\n defaultOpen={defaultOpen}\n onOpenChange={onOpenChange}\n placement=\"bottom end\"\n selectionMode=\"none\"\n onAction={onAction ? (key) => onAction(String(key)) : undefined}\n >\n <Menu.Trigger asChild>\n <SplitButtonTriggerSlot asChild>\n <IconButton\n {...buttonProps}\n aria-label={ariaLabel}\n isDisabled={isDropdownTriggerDisabled}\n >\n <KeyboardArrowDown />\n </IconButton>\n </SplitButtonTriggerSlot>\n </Menu.Trigger>\n\n <Menu.Content>{menuItems}</Menu.Content>\n </Menu.Root>\n </SplitButtonButtonGroupSlot>\n </SplitButtonRootSlot>\n );\n};\n\nSplitButton.displayName = \"SplitButton\";\n\n// Export for internal use by react-docgen\nexport { SplitButton as _SplitButton };\n"],"names":["withProvider","withContext","createSlotRecipeContext","splitButtonSlotRecipe","SplitButtonRootSlot","SplitButtonButtonGroupSlot","SplitButtonPrimaryButtonSlot","SplitButtonTriggerSlot","SplitButton","props","size","variant","tone","isDisabled","ariaLabel","onAction","isOpen","defaultOpen","onOpenChange","buttonProps","isMenuItemWithId","element","React","hasChildren","childArray","iconElement","child","menuItems","hasActionableMenuItems","children","hasActionable","findPrimaryMenuItem","allMenuItems","collectMenuItems","item","hasActionableItems","buttonContent","executePrimaryAction","isPrimaryDisabled","isDropdownTriggerDisabled","jsx","jsxs","Button","Menu","key","IconButton","KeyboardArrowDown"],"mappings":"sSAQM,CAAE,aAAAA,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,OAAQC,EAAAA,qBACV,CAAC,EAQYC,EAAsBJ,EAGjC,MAAO,MAAM,EAKFK,EAA6BJ,EAGxC,MAAO,aAAa,EAKTK,EAA+BL,EAG1C,SAAU,eAAe,EAKdM,EAAyBN,EAGpC,SAAU,iBAAiB,EClBhBO,EAAeC,GAA4B,CACtD,KAAM,CACJ,KAAAC,EAAO,KACP,QAAAC,EAAU,QACV,KAAAC,EACA,WAAAC,EAAa,GACb,aAAcC,EACd,SAAAC,EACA,OAAAC,EACA,YAAAC,EACA,aAAAC,CAAA,EACET,EAEEU,EAAc,CAAE,KAAAT,EAAM,QAAAC,EAAS,KAAAC,CAAA,EA0B/BQ,EACJC,GACiD,CACjD,GAAI,CAACC,EAAM,eAAeD,CAAO,GAAK,CAACA,EAAQ,MAAO,MAAO,GAC7D,MAAMZ,EAAQY,EAAQ,MACtB,MAAO,OAAQZ,GAAS,OAAOA,EAAM,IAAO,QAC9C,EAGMc,EACJF,GAEI,CAACC,EAAM,eAA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B,GAAc,CAACsB,EAEjD,aACG/B,EAAA,CAAoB,QAAAO,EAAkB,YAAU,QAC/C,gBAACN,EAAA,CAEC,SAAA,CAAAmC,EAAAA,IAAClC,EAAA,CAA6B,QAAO,GACnC,SAAAmC,EAAAA,KAACC,EAAAA,OAAA,CACE,GAAGvB,EACJ,WAAYmB,EACZ,QAASD,EAER,SAAA,CAAAZ,EACAW,EAAc,OAAA,CAAA,CAAA,EAEnB,EAGAK,EAAAA,KAACE,EAAAA,KAAK,KAAL,CACC,QAAQ,QACR,OAAA3B,EACA,YAAAC,EACA,aAAAC,EACA,UAAU,aACV,cAAc,OACd,SAAUH,EAAY6B,GAAQ7B,EAAS,OAAO6B,CAAG,CAAC,EAAI,OAEtD,SAAA,CAAAJ,EAAAA,IAACG,EAAAA,KAAK,QAAL,CAAa,QAAO,GACnB,SAAAH,EAAAA,IAACjC,EAAA,CAAuB,QAAO,GAC7B,SAAAiC,EAAAA,IAACK,EAAAA,WAAA,CACE,GAAG1B,EACJ,aAAYL,EACZ,WAAYyB,EAEZ,eAACO,EAAAA,kBAAA,CAAA,CAAkB,CAAA,CAAA,EAEvB,CAAA,CACF,EAEAN,EAAAA,IAACG,EAAAA,KAAK,QAAL,CAAc,SAAAhB,CAAA,CAAU,CAAA,CAAA,CAAA,CAC3B,CAAA,CACF,CAAA,CACF,CAEJ,EAEAnB,EAAY,YAAc"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"split-button-j2bgcP59.es.js","sources":["../../src/components/split-button/split-button.slots.tsx","../../src/components/split-button/split-button.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-object-type */\nimport {\n createSlotRecipeContext,\n type HTMLChakraProps,\n type RecipeVariantProps,\n} from \"@chakra-ui/react\";\nimport { splitButtonSlotRecipe } from \"./split-button.recipe\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: splitButtonSlotRecipe,\n});\n\n// Root Container\nexport interface SplitButtonRootSlotProps\n extends HTMLChakraProps<\n \"div\",\n RecipeVariantProps<typeof splitButtonSlotRecipe>\n > {}\nexport const SplitButtonRootSlot = withProvider<\n HTMLDivElement,\n SplitButtonRootSlotProps\n>(\"div\", \"root\");\n\n// Button Group Container\nexport interface SplitButtonButtonGroupSlotProps\n extends HTMLChakraProps<\"div\"> {}\nexport const SplitButtonButtonGroupSlot = withContext<\n HTMLDivElement,\n SplitButtonButtonGroupSlotProps\n>(\"div\", \"buttonGroup\");\n\n// Primary Action Button\nexport interface SplitButtonPrimaryButtonSlotProps\n extends HTMLChakraProps<\"button\"> {}\nexport const SplitButtonPrimaryButtonSlot = withContext<\n HTMLButtonElement,\n SplitButtonPrimaryButtonSlotProps\n>(\"button\", \"primaryButton\");\n\n// Dropdown Trigger Button\nexport interface SplitButtonTriggerSlotProps\n extends HTMLChakraProps<\"button\"> {}\nexport const SplitButtonTriggerSlot = withContext<\n HTMLButtonElement,\n SplitButtonTriggerSlotProps\n>(\"button\", \"dropdownTrigger\");\n","import React from \"react\";\nimport { Button } from \"@/components/button\";\nimport { IconButton } from \"@/components/icon-button\";\nimport { Menu } from \"@/components/menu\";\nimport type { SplitButtonProps } from \"./split-button.types\";\nimport {\n SplitButtonRootSlot,\n SplitButtonButtonGroupSlot,\n SplitButtonPrimaryButtonSlot,\n SplitButtonTriggerSlot,\n} from \"./split-button.slots\";\nimport { KeyboardArrowDown } from \"@commercetools/nimbus-icons\";\n\n// Re-export types\nexport type * from \"./split-button.types\";\n\n/**\n * # SplitButton\n *\n * A split-button component that combines a primary action button with a dropdown menu.\n *\n * Shows a primary action button + dropdown trigger. The primary button automatically\n * executes the first enabled Menu.Item action, while the dropdown trigger opens a menu\n * with all available options.\n *\n * Use with Menu.Item, Menu.Section, and Menu.Separator components for content.\n */\nexport const SplitButton = (props: SplitButtonProps) => {\n const {\n size = \"md\",\n variant = \"solid\",\n tone,\n isDisabled = false,\n \"aria-label\": ariaLabel,\n onAction,\n isOpen,\n defaultOpen,\n onOpenChange,\n } = props;\n\n const buttonProps = { size, variant, tone };\n\n /**\n * CORE CONCEPT: In split button mode, we need to populate the primary button\n * with content from a Menu.Item (specified by defaultAction prop).\n *\n * Why this complexity exists:\n * - Users define actions as <Menu.Item id=\"save\">Save Document</Menu.Item>\n * - We need to extract \"Save Document\" text to show on the primary button\n * - Menu.Items can be nested inside Menu.Section components\n * - We need to handle disabled states and fallbacks\n */\n\n // Type guards for safe prop access\n interface MenuItemProps {\n id: string;\n children: React.ReactNode;\n isDisabled?: boolean;\n isCritical?: boolean;\n }\n\n interface ComponentWithChildren {\n children: React.ReactNode;\n }\n\n // Check if element is a Menu.Item with required props\n const isMenuItemWithId = (\n element: React.ReactNode\n ): element is React.ReactElement<MenuItemProps> => {\n if (!React.isValidElement(element) || !element.props) return false;\n const props = element.props as Record<string, unknown>;\n return \"id\" in props && typeof props.id === \"string\";\n };\n\n // Check if element has children prop\n const hasChildren = (\n element: React.ReactNode\n ): element is React.ReactElement<ComponentWithChildren> => {\n if (!React.isValidElement(element) || !element.props) return false;\n const props = element.props as Record<string, unknown>;\n return \"children\" in props;\n };\n\n // Separate Icon slots from Menu items\n const childArray = React.Children.toArray(props.children);\n const iconElement = childArray.find(\n (child): child is React.ReactElement =>\n React.isValidElement(child) &&\n (child.props as { slot?: string })?.slot === \"icon\"\n );\n const menuItems = childArray.filter(\n (child) =>\n !React.isValidElement(child) ||\n (child.props as { slot?: string })?.slot !== \"icon\"\n );\n\n /**\n * Check if there are any actionable (enabled) Menu.Items in the children.\n * This is used to determine if the dropdown trigger should be disabled.\n */\n const hasActionableMenuItems = (children: React.ReactNode): boolean => {\n let hasActionable = false;\n\n React.Children.forEach(children, (child) => {\n if (hasActionable) return;\n\n // Check if this is an enabled Menu.Item\n if (isMenuItemWithId(child) && !child.props.isDisabled) {\n hasActionable = true;\n return;\n }\n\n // Recurse into Menu.Section or any component with children\n if (hasChildren(child)) {\n hasActionable = hasActionableMenuItems(child.props.children);\n }\n });\n\n return hasActionable;\n };\n\n /**\n * Find the primary Menu.Item using the same logic as the original PrimaryActionDropdown.\n * Selects the first enabled Menu.Item, or falls back to the first Menu.Item if all are disabled.\n */\n const findPrimaryMenuItem = () => {\n const allMenuItems: Array<{\n content: React.ReactNode;\n isDisabled: boolean;\n actionId: string | null;\n }> = [];\n\n // Recursively collect all Menu.Items from children (including nested ones)\n const collectMenuItems = (children: React.ReactNode): void => {\n React.Children.forEach(children, (child) => {\n if (isMenuItemWithId(child)) {\n allMenuItems.push({\n content: child.props.children,\n isDisabled: child.props.isDisabled || false,\n actionId: child.props.id,\n });\n }\n\n // Recurse into Menu.Section or any component with children\n if (hasChildren(child)) {\n collectMenuItems(child.props.children);\n }\n });\n };\n\n collectMenuItems(menuItems);\n\n // Find first enabled Menu.Item, or fallback to first Menu.Item\n const primaryMenuItem =\n allMenuItems.find((item) => !item.isDisabled) || allMenuItems[0];\n\n return (\n primaryMenuItem || {\n // TODO: Localize this\n content: \"No actions available\",\n isDisabled: true,\n actionId: null,\n }\n );\n };\n\n // Check if there are any actionable menu items for dropdown functionality\n const hasActionableItems = hasActionableMenuItems(menuItems);\n\n // Get the primary button content using smart selection\n const buttonContent = findPrimaryMenuItem();\n\n const executePrimaryAction = () => {\n if (!buttonContent.isDisabled && buttonContent.actionId && onAction) {\n onAction(buttonContent.actionId);\n }\n };\n\n const isPrimaryDisabled = isDisabled || buttonContent.isDisabled;\n const isDropdownTriggerDisabled = isDisabled || !hasActionableItems;\n\n return (\n <SplitButtonRootSlot variant={variant} data-mode=\"split\">\n <SplitButtonButtonGroupSlot>\n {/* Primary Action Button */}\n <SplitButtonPrimaryButtonSlot asChild>\n <Button\n {...buttonProps}\n isDisabled={isPrimaryDisabled}\n onPress={executePrimaryAction}\n >\n {iconElement}\n {buttonContent.content}\n </Button>\n </SplitButtonPrimaryButtonSlot>\n\n {/* Menu Trigger and Dropdown */}\n <Menu.Root\n trigger=\"press\"\n isOpen={isOpen}\n defaultOpen={defaultOpen}\n onOpenChange={onOpenChange}\n placement=\"bottom end\"\n selectionMode=\"none\"\n onAction={onAction ? (key) => onAction(String(key)) : undefined}\n >\n <Menu.Trigger asChild>\n <SplitButtonTriggerSlot asChild>\n <IconButton\n {...buttonProps}\n aria-label={ariaLabel}\n isDisabled={isDropdownTriggerDisabled}\n >\n <KeyboardArrowDown />\n </IconButton>\n </SplitButtonTriggerSlot>\n </Menu.Trigger>\n\n <Menu.Content>{menuItems}</Menu.Content>\n </Menu.Root>\n </SplitButtonButtonGroupSlot>\n </SplitButtonRootSlot>\n );\n};\n\nSplitButton.displayName = \"SplitButton\";\n\n// Export for internal use by react-docgen\nexport { SplitButton as _SplitButton };\n"],"names":["withProvider","withContext","createSlotRecipeContext","splitButtonSlotRecipe","SplitButtonRootSlot","SplitButtonButtonGroupSlot","SplitButtonPrimaryButtonSlot","SplitButtonTriggerSlot","SplitButton","props","size","variant","tone","isDisabled","ariaLabel","onAction","isOpen","defaultOpen","onOpenChange","buttonProps","isMenuItemWithId","element","React","hasChildren","childArray","iconElement","child","menuItems","hasActionableMenuItems","children","hasActionable","findPrimaryMenuItem","allMenuItems","collectMenuItems","item","hasActionableItems","buttonContent","executePrimaryAction","isPrimaryDisabled","isDropdownTriggerDisabled","jsx","jsxs","Button","Menu","key","IconButton","KeyboardArrowDown"],"mappings":";;;;;;;;AAQA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,QAAQC;AACV,CAAC,GAQYC,IAAsB,gBAAAJ,EAGjC,OAAO,MAAM,GAKFK,IAA6B,gBAAAJ,EAGxC,OAAO,aAAa,GAKTK,IAA+B,gBAAAL,EAG1C,UAAU,eAAe,GAKdM,IAAyB,gBAAAN,EAGpC,UAAU,iBAAiB,GClBhBO,IAAc,CAACC,MAA4B;AACtD,QAAM;AAAA,IACJ,MAAAC,IAAO;AAAA,IACP,SAAAC,IAAU;AAAA,IACV,MAAAC;AAAA,IACA,YAAAC,IAAa;AAAA,IACb,cAAcC;AAAA,IACd,UAAAC;AAAA,I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AAuB,SAAO,IAC7B,UAAA,gBAAAiC;AAAA,YAACK;AAAA,YAAA;AAAA,cACE,GAAG1B;AAAA,cACJ,cAAYL;AAAA,cACZ,YAAYyB;AAAA,cAEZ,4BAACO,GAAA,CAAA,CAAkB;AAAA,YAAA;AAAA,UAAA,GAEvB,EAAA,CACF;AAAA,UAEA,gBAAAN,EAACG,EAAK,SAAL,EAAc,UAAAhB,EAAA,CAAU;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAC3B,EAAA,CACF,EAAA,CACF;AAEJ;AAEAnB,EAAY,cAAc;"}
@@ -1,2 +0,0 @@
1
- "use strict";const w=require("react/jsx-runtime"),Ie=require("@chakra-ui/react/styled-system"),Ge=require("./Button-BtJHe9xY.cjs.js"),P=require("./SelectionManager-Mrwf4SFv.cjs.js"),L=require("./utils-BHdR5Nww.cjs.js"),Ue=require("./Label-BgrYyYXn.cjs.js"),R=require("./ListBox-CikEmFBx.cjs.js"),We=require("./Text-BWSfeB9p.cjs.js"),B=require("./mergeProps-BA5Cwf5w.cjs.js"),K=require("./filterDOMProps-WUskt27c.cjs.js"),He=require("./useObjectRef-dXOJdONs.cjs.js"),l=require("react"),U=require("./useFocusRing-CzFer4bD.cjs.js"),Je=require("./useHover-CiP9jMFy.cjs.js"),z=require("./useHighlightSelectionDescription-CpDw-Mgj.cjs.js"),Qe=require("./Separator-CAOg-vqY.cjs.js"),Xe=require("./useField-DmqO9k7a.cjs.js"),Ye=require("./useFocusWithin-BDSWp3rw.cjs.js"),W=require("./context-OoV8SSWX.cjs.js"),H=require("./openLink-DkCJYbzq.cjs.js"),y=require("./scrollIntoView-BzIqpHLO.cjs.js"),J=require("./useFocusVisible-Co0C61s7.cjs.js"),Ze=require("./useFocusable-DCgmQxS1.cjs.js"),j=require("./FocusScope-DPn5XtSy.cjs.js"),S=require("./focusSafely-jDMW9aEx.cjs.js"),_e=require("./useLocalizedStringFormatter-sB0mFYtL.cjs.js"),eo=require("@commercetools/nimbus-icons"),oo=require("./icon-button-Cc0MkBbk.cjs.js"),q=new WeakMap;function O(t,e){var o;let{id:a}=(o=q.get(t))!==null&&o!==void 0?o:{};if(!a)throw new Error("Unknown list");return`${a}-${to(e)}`}function to(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}function ro(t,e,o){let{isVirtualized:a,keyboardDelegate:c,layoutDelegate:r,onAction:n,disallowTypeAhead:d,linkBehavior:s="action",keyboardNavigationBehavior:x="arrow",escapeKeyBehavior:u="clearSelection",shouldSelectOnPressUp:g}=t;!t["aria-label"]&&!t["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let{listProps:f}=Qe.$982254629710d113$export$b95089534ab7c1fd({selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,ref:o,keyboardDelegate:c,layoutDelegate:r,isVirtualized:a,selectOnFocus:e.selectionManager.selectionBehavior==="replace",shouldFocusWrap:t.shouldFocusWrap,linkBehavior:s,disallowTypeAhead:d,autoFocus:t.autoFocus,escapeKeyBehavior:u}),v=B.$bdb11010cef70236$export$f680877a34711e37(t.id);q.set(e,{id:v,onAction:n,linkBehavior:s,keyboardNavigationBehavior:x,shouldSelectOnPressUp:g});let b=z.$5b9b5b5723db6ae1$export$be42ebdab07ae4c2({selectionManager:e.selectionManager,hasItemActions:!!n}),E=z.$83013635b024ae3d$export$eac1895992b9f3d6(o,{isDisabled:e.collection.size!==0}),D=K.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{labelable:!0}),h=B.$3ef42575df84b30b$export$9d1611c77c2fe928(D,{role:"grid",id:v,"aria-multiselectable":e.selectionManager.selectionMode==="multiple"?"true":void 0},e.collection.size===0?{tabIndex:E?-1:0}:f,b);return a&&(h["aria-rowcount"]=e.collection.size,h["aria-colcount"]=1),z.$92599c3fd427b763$export$137e594ef3218a10({},e),{gridProps:h}}const I={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function ao(t,e,o){var a,c;let{node:r,isVirtualized:n}=t,{direction:d}=W.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{onAction:s,linkBehavior:x,keyboardNavigationBehavior:u,shouldSelectOnPressUp:g}=q.get(e),f=B.$bdb11010cef70236$export$b4cc09c592e8fdb8(),v=l.useRef(null),b=()=>{var i;o.current!==null&&(v.current!=null&&r.key!==v.current||!(!((i=o.current)===null||i===void 0)&&i.contains(document.activeElement)))&&S.$3ad3f6e1647bc98d$export$80f3e147d781571c(o.current)},E={},D=t.hasChildItems,h=e.selectionManager.isLink(r.key);if(r!=null&&"expandedKeys"in e){var A,T;let i=(A=(T=e.collection).getChildren)===null||A===void 0?void 0:A.call(T,r.key);D=D||[...i??[]].length>1,s==null&&!h&&e.selectionManager.selectionMode==="none"&&D&&(s=()=>e.toggleKey(r.key));let p=D?e.expandedKeys.has(r.key):void 0,m=1;if(r.level>0&&r?.parentKey!=null){let $=e.collection.getItem(r.parentKey);if($){var k,F;m=[...(k=(F=e.collection).getChildren)===null||k===void 0?void 0:k.call(F,$.key)].filter(Oe=>Oe.type==="item").length}}else m=[...e.collection].filter($=>$.level===0&&$.type==="item").length;E={"aria-expanded":p,"aria-level":r.level+1,"aria-posinset":r?.index+1,"aria-setsize":m}}let{itemProps:N,...M}=P.$880e95eb8b93ba9a$export$ecf600387e221c37({selectionManager:e.selectionManager,key:r.key,ref:o,isVirtualized:n,shouldSelectOnPressUp:t.shouldSelectOnPressUp||g,onAction:s||!((a=r.props)===null||a===void 0)&&a.onAction?B.$ff5963eb1fccf552$export$e08e3b67e392101e((c=r.props)===null||c===void 0?void 0:c.onAction,s?()=>s(r.key):void 0):void 0,focus:b,linkBehavior:x}),Ke=i=>{if(!i.currentTarget.contains(i.target)||!o.current||!document.activeElement)return;let p=j.$9bf71ea28793e738$export$2d6ec8fc375ceafa(o.current);if(p.currentNode=document.activeElement,"expandedKeys"in e&&document.activeElement===o.current){if(i.key===I.expand[d]&&e.selectionManager.focusedKey===r.key&&D&&!e.expandedKeys.has(r.key)){e.toggleKey(r.key),i.stopPropagation();return}else if(i.key===I.collapse[d]&&e.selectionManager.focusedKey===r.key&&D&&e.expandedKeys.has(r.key)){e.toggleKey(r.key),i.stopPropagation();return}}switch(i.key){case"ArrowLeft":if(u==="arrow"){let $=d==="rtl"?p.nextNode():p.previousNode();if($)i.preventDefault(),i.stopPropagation(),S.$3ad3f6e1647bc98d$export$80f3e147d781571c($),y.$2f04cbc44ee30ce0$export$c826860796309d1b($,{containingElement:y.$62d8ded9296f3872$export$cfa2225e87938781(o.current)});else if(i.preventDefault(),i.stopPropagation(),d==="rtl")S.$3ad3f6e1647bc98d$export$80f3e147d781571c(o.current),y.$2f04cbc44ee30ce0$export$c826860796309d1b(o.current,{containingElement:y.$62d8ded9296f3872$export$cfa2225e87938781(o.current)});else{p.currentNode=o.current;let C=G(p);C&&(S.$3ad3f6e1647bc98d$export$80f3e147d781571c(C),y.$2f04cbc44ee30ce0$export$c826860796309d1b(C,{containingElement:y.$62d8ded9296f3872$export$cfa2225e87938781(o.current)}))}}break;case"ArrowRight":if(u==="arrow"){let $=d==="rtl"?p.previousNode():p.nextNode();if($)i.preventDefault(),i.stopPropagation(),S.$3ad3f6e1647bc98d$export$80f3e147d781571c($),y.$2f04cbc44ee30ce0$export$c826860796309d1b($,{containingElement:y.$62d8ded9296f3872$export$cfa2225e87938781(o.current)});else if(i.preventDefault(),i.stopPropagation(),d==="ltr")S.$3ad3f6e1647bc98d$export$80f3e147d781571c(o.current),y.$2f04cbc44ee30ce0$export$c826860796309d1b(o.current,{containingElement:y.$62d8ded9296f3872$export$cfa2225e87938781(o.current)});else{p.currentNode=o.current;let C=G(p);C&&(S.$3ad3f6e1647bc98d$export$80f3e147d781571c(C),y.$2f04cbc44ee30ce0$export$c826860796309d1b(C,{containingElement:y.$62d8ded9296f3872$export$cfa2225e87938781(o.current)}))}}break;case"ArrowUp":case"ArrowDown":if(!i.altKey&&o.current.contains(i.target)){var m;i.stopPropagation(),i.preventDefault(),(m=o.current.parentElement)===null||m===void 0||m.dispatchEvent(new KeyboardEvent(i.nativeEvent.type,i.nativeEvent))}break}},Ne=i=>{if(v.current=r.key,i.target!==o.current){J.$507fabe10e71c6fb$export$b9b3dfddab17db27()||e.selectionManager.setFocusedKey(r.key);return}},ze=i=>{if(!(!i.currentTarget.contains(i.target)||!o.current||!document.activeElement))switch(i.key){case"Tab":if(u==="tab"){let p=j.$9bf71ea28793e738$export$2d6ec8fc375ceafa(o.current,{tabbable:!0});p.currentNode=document.activeElement,(i.shiftKey?p.previousNode():p.nextNode())&&i.stopPropagation()}}},qe=H.$ea8dcbcb9ea1b556$export$bdc77b0c0a3a85d6(r.props),Ve=M.hasAction?qe:{},V=B.$3ef42575df84b30b$export$9d1611c77c2fe928(N,Ve,{role:"row",onKeyDownCapture:Ke,onKeyDown:ze,onFocus:Ne,"aria-label":r.textValue||void 0,"aria-selected":e.selectionManager.canSelectItem(r.key)?e.selectionManager.isSelected(r.key):void 0,"aria-disabled":e.selectionManager.isDisabled(r.key)||void 0,"aria-labelledby":f&&r.textValue?`${O(e,r.key)} ${f}`:void 0,id:O(e,r.key)});if(n){let{collection:i}=e,p=[...i];V["aria-rowindex"]=p.find(m=>m.type==="section")?[...i.getKeys()].filter(m=>{var $;return(($=i.getItem(m))===null||$===void 0?void 0:$.type)!=="section"}).findIndex(m=>m===r.key)+1:r.index+1}let je={role:"gridcell","aria-colindex":1};return{rowProps:{...B.$3ef42575df84b30b$export$9d1611c77c2fe928(V,E)},gridCellProps:je,descriptionProps:{id:f},...M}}function G(t){let e=null,o=null;do o=t.lastChild(),o&&(e=o);while(o);return e}const Q=new WeakMap;function io(t,e,o){let{direction:a}=W.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),c=t.keyboardDelegate||new P.$2a25aae57d74318e$export$a05409b8bb224a5a({collection:e.collection,ref:o,orientation:"horizontal",direction:a,disabledKeys:e.disabledKeys,disabledBehavior:e.selectionManager.disabledBehavior}),{labelProps:r,fieldProps:n,descriptionProps:d,errorMessageProps:s}=Xe.$2baaea4c71418dea$export$294aa081a6c6f55d({...t,labelElementType:"span"}),{gridProps:x}=ro({...t,...n,keyboardDelegate:c,shouldFocusWrap:!0,linkBehavior:"override",keyboardNavigationBehavior:"tab"},e,o),[u,g]=l.useState(!1),{focusWithinProps:f}=Ye.$9ab94262bd0047c7$export$420e68273165f4ec({onFocusWithinChange:g}),v=K.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t),b=l.useRef(e.collection.size);return l.useEffect(()=>{o.current&&b.current>0&&e.collection.size===0&&u&&o.current.focus(),b.current=e.collection.size},[e.collection.size,u,o]),Q.set(e,{onRemove:t.onRemove}),{gridProps:B.$3ef42575df84b30b$export$9d1611c77c2fe928(x,v,{role:e.collection.size?"grid":"group","aria-atomic":!1,"aria-relevant":"additions","aria-live":u?"polite":"off",...f,...n}),labelProps:r,descriptionProps:d,errorMessageProps:s}}var X={};X={removeButtonLabel:"إزالة",removeDescription:"اضغط على مفتاح DELETE لإزالة علامة."};var Y={};Y={removeButtonLabel:"Премахване",removeDescription:"Натиснете Delete, за да премахнете маркера."};var Z={};Z={removeButtonLabel:"Odebrat",removeDescription:"Stisknutím klávesy Delete odeberete značku."};var _={};_={removeButtonLabel:"Fjern",removeDescription:"Tryk på Slet for at fjerne tag."};var ee={};ee={removeButtonLabel:"Entfernen",removeDescription:"Auf „Löschen“ drücken, um das Tag zu entfernen."};var oe={};oe={removeButtonLabel:"Κατάργηση",removeDescription:"Πατήστε Διαγραφή για να καταργήσετε την ετικέτα."};var te={};te={removeDescription:"Press Delete to remove tag.",removeButtonLabel:"Remove"};var re={};re={removeButtonLabel:"Quitar",removeDescription:"Pulse Eliminar para quitar la etiqueta."};var ae={};ae={removeButtonLabel:"Eemalda",removeDescription:"Sildi eemaldamiseks vajutage kustutusklahvi Delete."};var ie={};ie={removeButtonLabel:"Poista",removeDescription:"Poista tunniste painamalla Poista-painiketta."};var ne={};ne={removeButtonLabel:"Supprimer",removeDescription:"Appuyez sur Supprimer pour supprimer l’étiquette."};var le={};le={removeButtonLabel:"הסר",removeDescription:"לחץ על מחק כדי להסיר תג."};var ue={};ue={removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Delete za uklanjanje oznake."};var ce={};ce={removeButtonLabel:"Eltávolítás",removeDescription:"Nyomja meg a Delete billentyűt a címke eltávolításához."};var de={};de={removeButtonLabel:"Rimuovi",removeDescription:"Premi Elimina per rimuovere il tag."};var se={};se={removeButtonLabel:"削除",removeDescription:"タグを削除するには、Delete キーを押します。"};var fe={};fe={removeButtonLabel:"제거",removeDescription:"태그를 제거하려면 Delete 키를 누르십시오."};var be={};be={removeButtonLabel:"Pašalinti",removeDescription:"Norėdami pašalinti žymą, paspauskite „Delete“ klavišą."};var pe={};pe={removeButtonLabel:"Noņemt",removeDescription:"Nospiediet Delete [Dzēst], lai noņemtu tagu."};var $e={};$e={removeButtonLabel:"Fjern",removeDescription:"Trykk på Slett for å fjerne taggen."};var ve={};ve={removeButtonLabel:"Verwijderen",removeDescription:"Druk op Verwijderen om de tag te verwijderen."};var xe={};xe={removeButtonLabel:"Usuń",removeDescription:"Naciśnij Usuń, aby usunąć znacznik."};var me={};me={removeButtonLabel:"Remover",removeDescription:"Pressione Delete para remover a tag."};var ge={};ge={removeButtonLabel:"Eliminar",removeDescription:"Prima Delete para eliminar a tag."};var ye={};ye={removeButtonLabel:"Îndepărtaţi",removeDescription:"Apăsați pe Delete (Ștergere) pentru a elimina eticheta."};var De={};De={removeButtonLabel:"Удалить",removeDescription:"Нажмите DELETE, чтобы удалить тег."};var Be={};Be={removeButtonLabel:"Odstrániť",removeDescription:"Ak chcete odstrániť značku, stlačte kláves Delete."};var Pe={};Pe={removeButtonLabel:"Odstrani",removeDescription:"Pritisnite Delete, da odstranite oznako."};var he={};he={removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Obriši da biste uklonili oznaku."};var ke={};ke={removeButtonLabel:"Ta bort",removeDescription:"Tryck på Radera för att ta bort taggen."};var Ee={};Ee={removeButtonLabel:"Kaldır",removeDescription:"Etiketi kaldırmak için Sil tuşuna basın."};var Ce={};Ce={removeButtonLabel:"Вилучити",removeDescription:"Натисніть Delete, щоб вилучити тег."};var we={};we={removeButtonLabel:"删除",removeDescription:"按下“删除”以删除标记。"};var Le={};Le={removeButtonLabel:"移除",removeDescription:"按 Delete 鍵以移除標記。"};var Ae={};Ae={"ar-AE":X,"bg-BG":Y,"cs-CZ":Z,"da-DK":_,"de-DE":ee,"el-GR":oe,"en-US":te,"es-ES":re,"et-EE":ae,"fi-FI":ie,"fr-FR":ne,"he-IL":le,"hr-HR":ue,"hu-HU":ce,"it-IT":de,"ja-JP":se,"ko-KR":fe,"lt-LT":be,"lv-LV":pe,"nb-NO":$e,"nl-NL":ve,"pl-PL":xe,"pt-BR":me,"pt-PT":ge,"ro-RO":ye,"ru-RU":De,"sk-SK":Be,"sl-SI":Pe,"sr-SP":he,"sv-SE":ke,"tr-TR":Ee,"uk-UA":Ce,"zh-CN":we,"zh-TW":Le};function no(t){return t&&t.__esModule?t.default:t}function lo(t,e,o){let{item:a}=t,c=_e.$fca6afa0e843324b$export$f12b703ca79dfbb1(no(Ae),"@react-aria/tag"),r=B.$bdb11010cef70236$export$f680877a34711e37(),{onRemove:n}=Q.get(e)||{},{rowProps:d,gridCellProps:s,...x}=ao({node:a},e,o),{descriptionProps:u,...g}=x,f=e.disabledKeys.has(a.key)||a.props.isDisabled,v=M=>{if(M.key==="Delete"||M.key==="Backspace"){if(f)return;M.preventDefault(),e.selectionManager.isSelected(a.key)?n?.(new Set(e.selectionManager.selectedKeys)):n?.(new Set([a.key]))}},b=J.$507fabe10e71c6fb$export$98e20ec92f614cfe();b==="virtual"&&typeof window<"u"&&"ontouchstart"in window&&(b="pointer");let E=n&&(b==="keyboard"||b==="virtual")?c.format("removeDescription"):"",D=y.$ef06256079686ba0$export$f8aeda7b10753fa1(E),h=a.key===e.selectionManager.focusedKey,A=e.selectionManager.focusedKey!=null,T=-1;!f&&(h||!A)&&(T=0);let k=K.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(a.props),F=H.$ea8dcbcb9ea1b556$export$bdc77b0c0a3a85d6(a.props),{focusableProps:N}=Ze.$f645667febf57a63$export$4c014de7c8940b4c({isDisabled:f},o);return{removeButtonProps:{"aria-label":c.format("removeButtonLabel"),"aria-labelledby":`${r} ${d.id}`,isDisabled:f,id:r,onPress:()=>n?n(new Set([a.key])):null},rowProps:B.$3ef42575df84b30b$export$9d1611c77c2fe928(N,d,k,F,{tabIndex:T,onKeyDown:n?v:void 0,"aria-describedby":D["aria-describedby"]}),gridCellProps:B.$3ef42575df84b30b$export$9d1611c77c2fe928(s,{"aria-errormessage":t["aria-errormessage"],"aria-label":t["aria-label"]}),...g,allowsRemoving:!!n}}const uo=l.createContext(null),Te=l.createContext(null),co=l.forwardRef(function(e,o){return[e,o]=L.$64fa3d84918910a7$export$29f1550f4b0d4415(e,o,uo),l.createElement(P.$e1995378a142960e$export$bf788dd355e3a401,{content:e.children},a=>l.createElement(so,{props:e,forwardedRef:o,collection:a}))});function so({props:t,forwardedRef:e,collection:o}){let a;[a]=L.$64fa3d84918910a7$export$29f1550f4b0d4415({},null,P.$8e6cc465cc68f603$export$b0d3ecf7112093a7);let{filter:c,...r}=a,{shouldUseVirtualFocus:n,disallowTypeAhead:d,...s}=r||{},x=l.useRef(null),[u,g]=L.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!t["aria-label"]&&!t["aria-labelledby"]),f=R.$e72dd72e1c76a225$export$2f645645f7bca764({...t,children:void 0,collection:o}),v=R.$e72dd72e1c76a225$export$ba9d38c0f1bf2b36(f,c),b=K.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{global:!0}),E=Object.fromEntries(Object.entries(b).map(([F])=>[F,void 0])),{gridProps:D,labelProps:h,descriptionProps:A,errorMessageProps:T}=io({...t,...E,...s,label:g},v,x);var k;return l.createElement("div",{...b,ref:e,slot:t.slot||void 0,className:(k=t.className)!==null&&k!==void 0?k:"react-aria-TagGroup",style:t.style},l.createElement(L.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[Ue.$01b77f81d0f07f68$export$75b6ee27786ba447,{...h,elementType:"span",ref:u}],[Te,{...D,ref:x}],[R.$eed445e0843c11d0$export$7c5906fe4f1f2af2,v],[We.$514c0188e459b4c0$export$9afb8bc826b033ea,{slots:{description:A,errorMessage:T}}]]},t.children))}const fo=l.forwardRef(function(e,o){return l.useContext(R.$eed445e0843c11d0$export$7c5906fe4f1f2af2)?l.createElement(bo,{props:e,forwardedRef:o}):l.createElement(P.$e1995378a142960e$export$fb8073518f34e6ec,e)});function bo({props:t,forwardedRef:e}){let o=l.useContext(R.$eed445e0843c11d0$export$7c5906fe4f1f2af2),{CollectionRoot:a}=l.useContext(P.$7135fc7d473fd974$export$4feb769f8ddf26c5),[c,r]=L.$64fa3d84918910a7$export$29f1550f4b0d4415({},e,Te),{focusProps:n,isFocused:d,isFocusVisible:s}=U.$f7dceffc5ad7768b$export$4e328f61c538687f(),x={isEmpty:o.collection.size===0,isFocused:d,isFocusVisible:s,state:o},u=L.$64fa3d84918910a7$export$4d86445c2cf5e3({className:t.className,style:t.style,defaultClassName:"react-aria-TagList",values:x}),g=P.$7135fc7d473fd974$export$90e00781bc59d8f9(o.selectionManager.focusedKey),f=K.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{global:!0});return l.createElement("div",{...B.$3ef42575df84b30b$export$9d1611c77c2fe928(f,u,c,n),ref:r,"data-empty":o.collection.size===0||void 0,"data-focused":d||void 0,"data-focus-visible":s||void 0},o.collection.size===0&&t.renderEmptyState?t.renderEmptyState(x):l.createElement(a,{collection:o.collection,persistedKeys:g}))}const po=P.$e1995378a142960e$export$18af5c7a9e9b3664(P.$23b9f4fcf0fe224b$export$fd11f34e1d07f134,(t,e,o)=>{let a=l.useContext(R.$eed445e0843c11d0$export$7c5906fe4f1f2af2),c=He.$df56164dff5785e2$export$4338b53315abf666(e),{focusProps:r,isFocusVisible:n}=U.$f7dceffc5ad7768b$export$4e328f61c538687f({within:!1}),{rowProps:d,gridCellProps:s,removeButtonProps:x,...u}=lo({item:o},a,c),{hoverProps:g,isHovered:f}=Je.$6179b936705e76d3$export$ae780daf29e6d456({isDisabled:!u.allowsSelection,onHoverStart:o.props.onHoverStart,onHoverChange:o.props.onHoverChange,onHoverEnd:o.props.onHoverEnd}),v=L.$64fa3d84918910a7$export$4d86445c2cf5e3({...t,id:void 0,children:o.rendered,defaultClassName:"react-aria-Tag",values:{...u,isFocusVisible:n,isHovered:f,selectionMode:a.selectionManager.selectionMode,selectionBehavior:a.selectionManager.selectionBehavior}});l.useEffect(()=>{!o.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <Tag> elements with non-plain text children for accessibility.")},[o.textValue]);let b=K.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{global:!0});return delete b.id,delete b.onClick,l.createElement("div",{ref:c,...B.$3ef42575df84b30b$export$9d1611c77c2fe928(b,v,d,r,g),"data-selected":u.isSelected||void 0,"data-disabled":u.isDisabled||void 0,"data-hovered":f||void 0,"data-focused":u.isFocused||void 0,"data-focus-visible":n||void 0,"data-pressed":u.isPressed||void 0,"data-allows-removing":u.allowsRemoving||void 0,"data-selection-mode":a.selectionManager.selectionMode==="none"?void 0:a.selectionManager.selectionMode},l.createElement("div",{...s,style:{display:"contents"}},l.createElement(L.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[Ge.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{slots:{remove:x}}],[P.$7135fc7d473fd974$export$4feb769f8ddf26c5,P.$7135fc7d473fd974$export$a164736487e3f0ae]]},v.children)))}),{withProvider:$o,withContext:Se}=Ie.createSlotRecipeContext({key:"taggroup"}),vo=$o(co,"root"),xo=t=>{const{ref:e,...o}=t,a=Se(fo,"tagList");return w.jsx(a,{...o,ref:e})},mo=Se(po,"tag"),Fe=({children:t,onRemove:e,selectionMode:o,ref:a,...c})=>(e&&(o==="multiple"||o==="single")&&console.warn('Nimbus TagGroup: when "selectionMode" is "single" or "mutiple", Tags cannot be removed'),w.jsx(vo,{ref:a,onRemove:e,selectionMode:o,...c,children:t}));Fe.displayName="TagGroup.Root";const Me=({children:t,ref:e,...o})=>w.jsx(xo,{ref:e,...o,children:t});Me.displayName="TagGroup.TagList";const Re=({children:t,ref:e,...o})=>{const a=typeof t=="string"?t:void 0;return w.jsx(mo,{ref:e,textValue:a,...o,children:({allowsRemoving:c,isSelected:r,selectionMode:n})=>w.jsxs(w.Fragment,{children:[t,c&&n!=="multiple"&&n!=="single"&&w.jsx(oo.IconButton,{size:"2xs",variant:r?"solid":"ghost",slot:"remove",tone:r?void 0:"neutral",children:w.jsx(eo.Close,{})})]})})};Re.displayName="TagGroup.Tag";const go={Root:Fe,TagList:Me,Tag:Re};exports.TagGroup=go;
2
- //# sourceMappingURL=tag-group-B3YSTBpb.cjs.js.map
@@ -1,2 +0,0 @@
1
- "use strict";const a=require("./filterDOMProps-WUskt27c.cjs.js");function o(e){let r=a.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{labelable:!0}),t;return e.orientation==="vertical"&&(t="vertical"),e.elementType!=="hr"?{separatorProps:{...r,role:"separator","aria-orientation":t}}:{separatorProps:r}}exports.$f4b273590fab9f93$export$52210f68a14655d0=o;
2
- //# sourceMappingURL=useSeparator-B-OtWwE7.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useSeparator-B-OtWwE7.cjs.js","sources":["../../../../node_modules/.pnpm/@react-aria+separator@3.4.12_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/@react-aria/separator/dist/useSeparator.mjs"],"sourcesContent":["import {filterDOMProps as $1vbRD$filterDOMProps} from \"@react-aria/utils\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nfunction $f4b273590fab9f93$export$52210f68a14655d0(props) {\n let domProps = (0, $1vbRD$filterDOMProps)(props, {\n labelable: true\n });\n let ariaOrientation;\n // if orientation is horizontal, aria-orientation default is horizontal, so we leave it undefined\n // if it's vertical, we need to specify it\n if (props.orientation === 'vertical') ariaOrientation = 'vertical';\n // hr elements implicitly have role = separator and a horizontal orientation\n if (props.elementType !== 'hr') return {\n separatorProps: {\n ...domProps,\n role: 'separator',\n 'aria-orientation': ariaOrientation\n }\n };\n return {\n separatorProps: domProps\n };\n}\n\n\nexport {$f4b273590fab9f93$export$52210f68a14655d0 as useSeparator};\n//# sourceMappingURL=useSeparator.module.js.map\n"],"names":["$f4b273590fab9f93$export$52210f68a14655d0","props","domProps","$1vbRD$filterDOMProps","ariaOrientation"],"mappings":"iEAaA,SAASA,EAA0CC,EAAO,CACtD,IAAIC,EAAeC,EAAAA,0CAAuBF,EAAO,CAC7C,UAAW,EACnB,CAAK,EACGG,EAKJ,OAFIH,EAAM,cAAgB,aAAYG,EAAkB,YAEpDH,EAAM,cAAgB,KAAa,CACnC,eAAgB,CACZ,GAAGC,EACH,KAAM,YACN,mBAAoBE,CAChC,CACA,EACW,CACH,eAAgBF,CACxB,CACA","x_google_ignoreList":[0]}
@@ -1,19 +0,0 @@
1
- import { $ as a } from "./filterDOMProps-BSVCO5jK.es.js";
2
- function i(r) {
3
- let e = a(r, {
4
- labelable: !0
5
- }), t;
6
- return r.orientation === "vertical" && (t = "vertical"), r.elementType !== "hr" ? {
7
- separatorProps: {
8
- ...e,
9
- role: "separator",
10
- "aria-orientation": t
11
- }
12
- } : {
13
- separatorProps: e
14
- };
15
- }
16
- export {
17
- i as $
18
- };
19
- //# sourceMappingURL=useSeparator-Dg70ACBm.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useSeparator-Dg70ACBm.es.js","sources":["../../../../node_modules/.pnpm/@react-aria+separator@3.4.12_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/@react-aria/separator/dist/useSeparator.mjs"],"sourcesContent":["import {filterDOMProps as $1vbRD$filterDOMProps} from \"@react-aria/utils\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nfunction $f4b273590fab9f93$export$52210f68a14655d0(props) {\n let domProps = (0, $1vbRD$filterDOMProps)(props, {\n labelable: true\n });\n let ariaOrientation;\n // if orientation is horizontal, aria-orientation default is horizontal, so we leave it undefined\n // if it's vertical, we need to specify it\n if (props.orientation === 'vertical') ariaOrientation = 'vertical';\n // hr elements implicitly have role = separator and a horizontal orientation\n if (props.elementType !== 'hr') return {\n separatorProps: {\n ...domProps,\n role: 'separator',\n 'aria-orientation': ariaOrientation\n }\n };\n return {\n separatorProps: domProps\n };\n}\n\n\nexport {$f4b273590fab9f93$export$52210f68a14655d0 as useSeparator};\n//# sourceMappingURL=useSeparator.module.js.map\n"],"names":["$f4b273590fab9f93$export$52210f68a14655d0","props","domProps","$1vbRD$filterDOMProps","ariaOrientation"],"mappings":";AAaA,SAASA,EAA0CC,GAAO;AACtD,MAAIC,IAAeC,EAAuBF,GAAO;AAAA,IAC7C,WAAW;AAAA,EACnB,CAAK,GACGG;AAKJ,SAFIH,EAAM,gBAAgB,eAAYG,IAAkB,aAEpDH,EAAM,gBAAgB,OAAa;AAAA,IACnC,gBAAgB;AAAA,MACZ,GAAGC;AAAA,MACH,MAAM;AAAA,MACN,oBAAoBE;AAAA,IAChC;AAAA,EACA,IACW;AAAA,IACH,gBAAgBF;AAAA,EACxB;AACA;","x_google_ignoreList":[0]}