@commercetools/nimbus 3.3.0 → 3.4.0

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 (648) hide show
  1. package/dist/chunks/{Button-FcraQeen.esm.js → Button-B5g2BgY8.esm.js} +2 -2
  2. package/dist/chunks/{Button-FcraQeen.esm.js.map → Button-B5g2BgY8.esm.js.map} +1 -1
  3. package/dist/chunks/{Button-z5JjDtpy.cjs → Button-CZDjIKB1.cjs} +2 -2
  4. package/dist/chunks/{Button-z5JjDtpy.cjs.map → Button-CZDjIKB1.cjs.map} +1 -1
  5. package/dist/chunks/{Calendar-1qYv3Pn9.cjs → Calendar-B-gzTAl8.cjs} +2 -2
  6. package/dist/chunks/{Calendar-1qYv3Pn9.cjs.map → Calendar-B-gzTAl8.cjs.map} +1 -1
  7. package/dist/chunks/{Calendar-oiqHeWzY.esm.js → Calendar-B6F41FfL.esm.js} +2 -2
  8. package/dist/chunks/{Calendar-oiqHeWzY.esm.js.map → Calendar-B6F41FfL.esm.js.map} +1 -1
  9. package/dist/chunks/Collection-CgMG1nwQ.esm.js +53 -0
  10. package/dist/chunks/Collection-CgMG1nwQ.esm.js.map +1 -0
  11. package/dist/chunks/Collection-yMt_pwdK.cjs +2 -0
  12. package/dist/chunks/Collection-yMt_pwdK.cjs.map +1 -0
  13. package/dist/chunks/DateField-CHfV6zH4.cjs +2 -0
  14. package/dist/chunks/{DateField-DI1RhZqo.cjs.map → DateField-CHfV6zH4.cjs.map} +1 -1
  15. package/dist/chunks/{DateField-DUetJOyf.esm.js → DateField-C_r7fpt5.esm.js} +49 -48
  16. package/dist/chunks/{DateField-DUetJOyf.esm.js.map → DateField-C_r7fpt5.esm.js.map} +1 -1
  17. package/dist/chunks/{DatePicker-DRwvjTID.cjs → DatePicker--pX-2Qq-.cjs} +2 -2
  18. package/dist/chunks/{DatePicker-DRwvjTID.cjs.map → DatePicker--pX-2Qq-.cjs.map} +1 -1
  19. package/dist/chunks/{DatePicker-DeVufONT.esm.js → DatePicker-xQCOjOZ5.esm.js} +6 -6
  20. package/dist/chunks/{DatePicker-DeVufONT.esm.js.map → DatePicker-xQCOjOZ5.esm.js.map} +1 -1
  21. package/dist/chunks/{Dialog-tQOfG_On.esm.js → Dialog-Dy3vyR1i.esm.js} +488 -487
  22. package/dist/chunks/{Dialog-tQOfG_On.esm.js.map → Dialog-Dy3vyR1i.esm.js.map} +1 -1
  23. package/dist/chunks/Dialog-UjK50qiN.cjs +6 -0
  24. package/dist/chunks/{Dialog-s5tFTj72.cjs.map → Dialog-UjK50qiN.cjs.map} +1 -1
  25. package/dist/chunks/{Header-Cmmm6XZs.cjs → Header-Bp89-vFq.cjs} +2 -2
  26. package/dist/chunks/{Header-Cmmm6XZs.cjs.map → Header-Bp89-vFq.cjs.map} +1 -1
  27. package/dist/chunks/{Header-CdFIlJp5.esm.js → Header-CwBpRO8i.esm.js} +2 -2
  28. package/dist/chunks/{Header-CdFIlJp5.esm.js.map → Header-CwBpRO8i.esm.js.map} +1 -1
  29. package/dist/chunks/Link-BmoXcCA3.cjs +2 -0
  30. package/dist/chunks/Link-BmoXcCA3.cjs.map +1 -0
  31. package/dist/chunks/Link-D_CNmmCC.esm.js +41 -0
  32. package/dist/chunks/Link-D_CNmmCC.esm.js.map +1 -0
  33. package/dist/chunks/{ListBox-DlI6zwM7.esm.js → ListBox-B8JwiURT.esm.js} +62 -61
  34. package/dist/chunks/{ListBox-DlI6zwM7.esm.js.map → ListBox-B8JwiURT.esm.js.map} +1 -1
  35. package/dist/chunks/ListBox-Ccgvv13w.cjs +2 -0
  36. package/dist/chunks/{ListBox-CXgfDQSn.cjs.map → ListBox-Ccgvv13w.cjs.map} +1 -1
  37. package/dist/chunks/{Modal-BG58sEN8.esm.js → Modal-B0a1NTkk.esm.js} +3 -3
  38. package/dist/chunks/{Modal-BG58sEN8.esm.js.map → Modal-B0a1NTkk.esm.js.map} +1 -1
  39. package/dist/chunks/{Modal-B5d_4wBp.cjs → Modal-BhGqV2ga.cjs} +2 -2
  40. package/dist/chunks/{Modal-B5d_4wBp.cjs.map → Modal-BhGqV2ga.cjs.map} +1 -1
  41. package/dist/chunks/{ProgressBar-BleovkZ3.esm.js → ProgressBar-6_KRPPYN.esm.js} +2 -2
  42. package/dist/chunks/{ProgressBar-BleovkZ3.esm.js.map → ProgressBar-6_KRPPYN.esm.js.map} +1 -1
  43. package/dist/chunks/{ProgressBar-DAbyWfVX.cjs → ProgressBar-nd1ahEJC.cjs} +2 -2
  44. package/dist/chunks/{ProgressBar-DAbyWfVX.cjs.map → ProgressBar-nd1ahEJC.cjs.map} +1 -1
  45. package/dist/chunks/{accordion-BYfM5qEG.cjs → accordion-BJQKQHIG.cjs} +2 -2
  46. package/dist/chunks/{accordion-BYfM5qEG.cjs.map → accordion-BJQKQHIG.cjs.map} +1 -1
  47. package/dist/chunks/{accordion-BqlBCwmN.esm.js → accordion-DPnhySdl.esm.js} +2 -2
  48. package/dist/chunks/{accordion-BqlBCwmN.esm.js.map → accordion-DPnhySdl.esm.js.map} +1 -1
  49. package/dist/chunks/{alert-C4J2fv__.esm.js → alert-Coz95VgD.esm.js} +2 -2
  50. package/dist/chunks/{alert-C4J2fv__.esm.js.map → alert-Coz95VgD.esm.js.map} +1 -1
  51. package/dist/chunks/{alert-BeQzAjMf.cjs → alert-GP75E0QV.cjs} +2 -2
  52. package/dist/chunks/{alert-BeQzAjMf.cjs.map → alert-GP75E0QV.cjs.map} +1 -1
  53. package/dist/chunks/breadcrumbs-1MAxlCTS.esm.js +322 -0
  54. package/dist/chunks/breadcrumbs-1MAxlCTS.esm.js.map +1 -0
  55. package/dist/chunks/breadcrumbs-TP5PrTuN.cjs +2 -0
  56. package/dist/chunks/breadcrumbs-TP5PrTuN.cjs.map +1 -0
  57. package/dist/chunks/{button-Dc_J_PNN.cjs → button-D6f5OX0h.cjs} +2 -2
  58. package/dist/chunks/{button-Dc_J_PNN.cjs.map → button-D6f5OX0h.cjs.map} +1 -1
  59. package/dist/chunks/{button-BhvlZrT2.esm.js → button-DyM-iqBq.esm.js} +3 -3
  60. package/dist/chunks/{button-BhvlZrT2.esm.js.map → button-DyM-iqBq.esm.js.map} +1 -1
  61. package/dist/chunks/{calendar-DS0rNrhj.cjs → calendar-YtVTt0Tm.cjs} +2 -2
  62. package/dist/chunks/{calendar-DS0rNrhj.cjs.map → calendar-YtVTt0Tm.cjs.map} +1 -1
  63. package/dist/chunks/{calendar-C5GZoGge.esm.js → calendar-bydCjK4Q.esm.js} +5 -5
  64. package/dist/chunks/{calendar-C5GZoGge.esm.js.map → calendar-bydCjK4Q.esm.js.map} +1 -1
  65. package/dist/chunks/{chat-message-DW8IO5YJ.cjs → chat-message-BcuYfXqe.cjs} +2 -2
  66. package/dist/chunks/{chat-message-DW8IO5YJ.cjs.map → chat-message-BcuYfXqe.cjs.map} +1 -1
  67. package/dist/chunks/{chat-message-CDLvkgaw.esm.js → chat-message-D9947sio.esm.js} +2 -2
  68. package/dist/chunks/{chat-message-CDLvkgaw.esm.js.map → chat-message-D9947sio.esm.js.map} +1 -1
  69. package/dist/chunks/chat-message-list-BEQEQzhV.cjs +2 -0
  70. package/dist/chunks/chat-message-list-BEQEQzhV.cjs.map +1 -0
  71. package/dist/chunks/{chat-message-list-BhWZEg4l.esm.js → chat-message-list-D_4ZLopT.esm.js} +10 -10
  72. package/dist/chunks/chat-message-list-D_4ZLopT.esm.js.map +1 -0
  73. package/dist/chunks/{checkbox-CZCLSrFV.cjs → checkbox-DCVW3K9i.cjs} +2 -2
  74. package/dist/chunks/{checkbox-CZCLSrFV.cjs.map → checkbox-DCVW3K9i.cjs.map} +1 -1
  75. package/dist/chunks/{checkbox-Bto3lCdU.esm.js → checkbox-dSuozQvl.esm.js} +4 -4
  76. package/dist/chunks/{checkbox-Bto3lCdU.esm.js.map → checkbox-dSuozQvl.esm.js.map} +1 -1
  77. package/dist/chunks/{collapsible-motion-C5-B_qO-.cjs → collapsible-motion-BW3mF74f.cjs} +2 -2
  78. package/dist/chunks/{collapsible-motion-C5-B_qO-.cjs.map → collapsible-motion-BW3mF74f.cjs.map} +1 -1
  79. package/dist/chunks/{collapsible-motion-5Y-srpM4.esm.js → collapsible-motion-CKrXIpgY.esm.js} +3 -3
  80. package/dist/chunks/{collapsible-motion-5Y-srpM4.esm.js.map → collapsible-motion-CKrXIpgY.esm.js.map} +1 -1
  81. package/dist/chunks/{combobox-ot7fVTI7.cjs → combobox-3_YvuwlN.cjs} +2 -2
  82. package/dist/chunks/{combobox-ot7fVTI7.cjs.map → combobox-3_YvuwlN.cjs.map} +1 -1
  83. package/dist/chunks/{combobox-BW_VrIHV.esm.js → combobox-C9gMnokj.esm.js} +11 -11
  84. package/dist/chunks/{combobox-BW_VrIHV.esm.js.map → combobox-C9gMnokj.esm.js.map} +1 -1
  85. package/dist/chunks/{components-BaZ6iHgw.esm.js → components-DJj34Iqi.esm.js} +3 -3
  86. package/dist/chunks/{components-BaZ6iHgw.esm.js.map → components-DJj34Iqi.esm.js.map} +1 -1
  87. package/dist/chunks/{components-DHYEVZM_.cjs → components-tMYnGsnG.cjs} +2 -2
  88. package/dist/chunks/{components-DHYEVZM_.cjs.map → components-tMYnGsnG.cjs.map} +1 -1
  89. package/dist/chunks/{confirmation-dialog-JqWYM_7U.cjs → confirmation-dialog-DGV0mgM8.cjs} +2 -2
  90. package/dist/chunks/{confirmation-dialog-JqWYM_7U.cjs.map → confirmation-dialog-DGV0mgM8.cjs.map} +1 -1
  91. package/dist/chunks/{confirmation-dialog-CHUQLqNJ.esm.js → confirmation-dialog-EiNUlhQA.esm.js} +4 -4
  92. package/dist/chunks/{confirmation-dialog-CHUQLqNJ.esm.js.map → confirmation-dialog-EiNUlhQA.esm.js.map} +1 -1
  93. package/dist/chunks/{data-table-LoaR2VL5.esm.js → data-table-BjU1lBAt.esm.js} +715 -714
  94. package/dist/chunks/{data-table-LoaR2VL5.esm.js.map → data-table-BjU1lBAt.esm.js.map} +1 -1
  95. package/dist/chunks/data-table-DnlEkUhO.cjs +2 -0
  96. package/dist/chunks/{data-table-CHpJecej.cjs.map → data-table-DnlEkUhO.cjs.map} +1 -1
  97. package/dist/chunks/{date-input-BfCEzDBX.esm.js → date-input-BIMZk2u6.esm.js} +4 -4
  98. package/dist/chunks/{date-input-BfCEzDBX.esm.js.map → date-input-BIMZk2u6.esm.js.map} +1 -1
  99. package/dist/chunks/{date-input-B5yBTSm8.cjs → date-input-DbikA3Az.cjs} +2 -2
  100. package/dist/chunks/{date-input-B5yBTSm8.cjs.map → date-input-DbikA3Az.cjs.map} +1 -1
  101. package/dist/chunks/{date-picker-CcmAJYux.esm.js → date-picker--voC39id.esm.js} +11 -11
  102. package/dist/chunks/{date-picker-CcmAJYux.esm.js.map → date-picker--voC39id.esm.js.map} +1 -1
  103. package/dist/chunks/{date-picker-BYUOjbCN.cjs → date-picker-Dhb3cRFN.cjs} +2 -2
  104. package/dist/chunks/{date-picker-BYUOjbCN.cjs.map → date-picker-Dhb3cRFN.cjs.map} +1 -1
  105. package/dist/chunks/{date-range-picker-CD6CmAlq.esm.js → date-range-picker-B02yjYC_.esm.js} +11 -11
  106. package/dist/chunks/{date-range-picker-CD6CmAlq.esm.js.map → date-range-picker-B02yjYC_.esm.js.map} +1 -1
  107. package/dist/chunks/{date-range-picker-BladYzh3.cjs → date-range-picker-oFS0SF97.cjs} +2 -2
  108. package/dist/chunks/{date-range-picker-BladYzh3.cjs.map → date-range-picker-oFS0SF97.cjs.map} +1 -1
  109. package/dist/chunks/{default-page-B5bFn9gJ.cjs → default-page-BW66R099.cjs} +2 -2
  110. package/dist/chunks/{default-page-B5bFn9gJ.cjs.map → default-page-BW66R099.cjs.map} +1 -1
  111. package/dist/chunks/{default-page-De3ZyX7n.esm.js → default-page-oB4oiflC.esm.js} +2 -2
  112. package/dist/chunks/{default-page-De3ZyX7n.esm.js.map → default-page-oB4oiflC.esm.js.map} +1 -1
  113. package/dist/chunks/{dialog-Y4HKBxUr.cjs → dialog-CwCG4NKh.cjs} +2 -2
  114. package/dist/chunks/{dialog-Y4HKBxUr.cjs.map → dialog-CwCG4NKh.cjs.map} +1 -1
  115. package/dist/chunks/{dialog-XeM4qOa_.esm.js → dialog-lxgomHvu.esm.js} +6 -6
  116. package/dist/chunks/{dialog-XeM4qOa_.esm.js.map → dialog-lxgomHvu.esm.js.map} +1 -1
  117. package/dist/chunks/draggable-list-CAGO6acz.cjs +2 -0
  118. package/dist/chunks/{draggable-list-CKKl6A_a.cjs.map → draggable-list-CAGO6acz.cjs.map} +1 -1
  119. package/dist/chunks/{draggable-list-C5aulsay.esm.js → draggable-list-DKGfS4ob.esm.js} +243 -243
  120. package/dist/chunks/{draggable-list-C5aulsay.esm.js.map → draggable-list-DKGfS4ob.esm.js.map} +1 -1
  121. package/dist/chunks/{drawer-BKPP4f5K.cjs → drawer-Cj7eGaLQ.cjs} +2 -2
  122. package/dist/chunks/{drawer-BKPP4f5K.cjs.map → drawer-Cj7eGaLQ.cjs.map} +1 -1
  123. package/dist/chunks/{drawer-I6J9g1l4.esm.js → drawer-Dsnrsu2k.esm.js} +7 -7
  124. package/dist/chunks/{drawer-I6J9g1l4.esm.js.map → drawer-Dsnrsu2k.esm.js.map} +1 -1
  125. package/dist/chunks/{drop-zone-vRl7IFzc.esm.js → drop-zone-BKJQrFGG.esm.js} +6 -6
  126. package/dist/chunks/{drop-zone-vRl7IFzc.esm.js.map → drop-zone-BKJQrFGG.esm.js.map} +1 -1
  127. package/dist/chunks/{drop-zone-Dr4VzY5B.cjs → drop-zone-N7k0XExn.cjs} +2 -2
  128. package/dist/chunks/{drop-zone-Dr4VzY5B.cjs.map → drop-zone-N7k0XExn.cjs.map} +1 -1
  129. package/dist/chunks/{extract-style-props-BPnHKmWR.esm.js → extract-style-props-D519tVOc.esm.js} +2 -2
  130. package/dist/chunks/{extract-style-props-BPnHKmWR.esm.js.map → extract-style-props-D519tVOc.esm.js.map} +1 -1
  131. package/dist/chunks/{extract-style-props-CA1O0IF2.cjs → extract-style-props-WNdpT-ME.cjs} +2 -2
  132. package/dist/chunks/{extract-style-props-CA1O0IF2.cjs.map → extract-style-props-WNdpT-ME.cjs.map} +1 -1
  133. package/dist/chunks/{form-action-bar-C8wkuLiF.esm.js → form-action-bar-CfJjVyeS.esm.js} +3 -3
  134. package/dist/chunks/{form-action-bar-C8wkuLiF.esm.js.map → form-action-bar-CfJjVyeS.esm.js.map} +1 -1
  135. package/dist/chunks/{form-action-bar-C_pQubyB.cjs → form-action-bar-DhmjijBw.cjs} +2 -2
  136. package/dist/chunks/{form-action-bar-C_pQubyB.cjs.map → form-action-bar-DhmjijBw.cjs.map} +1 -1
  137. package/dist/chunks/{form-dialog-D14UuUnS.cjs → form-dialog-CLrL718p.cjs} +2 -2
  138. package/dist/chunks/{form-dialog-D14UuUnS.cjs.map → form-dialog-CLrL718p.cjs.map} +1 -1
  139. package/dist/chunks/{form-dialog-BaD03TZo.esm.js → form-dialog-D86jNeIZ.esm.js} +4 -4
  140. package/dist/chunks/{form-dialog-BaD03TZo.esm.js.map → form-dialog-D86jNeIZ.esm.js.map} +1 -1
  141. package/dist/chunks/{form-field-DRhB7O5k.esm.js → form-field-B5H98u7s.esm.js} +3 -3
  142. package/dist/chunks/{form-field-DRhB7O5k.esm.js.map → form-field-B5H98u7s.esm.js.map} +1 -1
  143. package/dist/chunks/{form-field-CrSE8x3q.cjs → form-field-CaTJgt57.cjs} +2 -2
  144. package/dist/chunks/{form-field-CrSE8x3q.cjs.map → form-field-CaTJgt57.cjs.map} +1 -1
  145. package/dist/chunks/{icon-button-CSlFdpjB.cjs → icon-button-BG5cQycc.cjs} +2 -2
  146. package/dist/chunks/{icon-button-CSlFdpjB.cjs.map → icon-button-BG5cQycc.cjs.map} +1 -1
  147. package/dist/chunks/{icon-button-6dtfz6Yf.esm.js → icon-button-CyhrlrIv.esm.js} +2 -2
  148. package/dist/chunks/{icon-button-6dtfz6Yf.esm.js.map → icon-button-CyhrlrIv.esm.js.map} +1 -1
  149. package/dist/chunks/{icon-toggle-button-DJbu9dBg.cjs → icon-toggle-button-CH90F1eK.cjs} +2 -2
  150. package/dist/chunks/{icon-toggle-button-DJbu9dBg.cjs.map → icon-toggle-button-CH90F1eK.cjs.map} +1 -1
  151. package/dist/chunks/{icon-toggle-button-Cesx6J1H.esm.js → icon-toggle-button-DzYb5JyL.esm.js} +2 -2
  152. package/dist/chunks/{icon-toggle-button-Cesx6J1H.esm.js.map → icon-toggle-button-DzYb5JyL.esm.js.map} +1 -1
  153. package/dist/chunks/item-DW8Z2EjT.cjs +2 -0
  154. package/dist/chunks/item-DW8Z2EjT.cjs.map +1 -0
  155. package/dist/chunks/item-YJDIjMGY.esm.js +132 -0
  156. package/dist/chunks/item-YJDIjMGY.esm.js.map +1 -0
  157. package/dist/chunks/item-group-BA2CvxjT.cjs +2 -0
  158. package/dist/chunks/item-group-BA2CvxjT.cjs.map +1 -0
  159. package/dist/chunks/item-group-Bu78JFep.esm.js +35 -0
  160. package/dist/chunks/item-group-Bu78JFep.esm.js.map +1 -0
  161. package/dist/chunks/{list-DpS1s3Ww.cjs → list-ClGk4Q7n.cjs} +2 -2
  162. package/dist/chunks/{list-DpS1s3Ww.cjs.map → list-ClGk4Q7n.cjs.map} +1 -1
  163. package/dist/chunks/{list-CuA_gr8m.esm.js → list-CvVw2FgQ.esm.js} +2 -2
  164. package/dist/chunks/{list-CuA_gr8m.esm.js.map → list-CvVw2FgQ.esm.js.map} +1 -1
  165. package/dist/chunks/{loading-spinner-CTPm1sYC.esm.js → loading-spinner-DZoySVDH.esm.js} +2 -2
  166. package/dist/chunks/{loading-spinner-CTPm1sYC.esm.js.map → loading-spinner-DZoySVDH.esm.js.map} +1 -1
  167. package/dist/chunks/{loading-spinner-DAZGwhe6.cjs → loading-spinner-p_cYuGNg.cjs} +2 -2
  168. package/dist/chunks/{loading-spinner-DAZGwhe6.cjs.map → loading-spinner-p_cYuGNg.cjs.map} +1 -1
  169. package/dist/chunks/{localized-field-tpT6376o.cjs → localized-field-CQ8GkZKo.cjs} +2 -2
  170. package/dist/chunks/{localized-field-tpT6376o.cjs.map → localized-field-CQ8GkZKo.cjs.map} +1 -1
  171. package/dist/chunks/{localized-field-rPZczTNY.esm.js → localized-field-edbtofV6.esm.js} +10 -10
  172. package/dist/chunks/{localized-field-rPZczTNY.esm.js.map → localized-field-edbtofV6.esm.js.map} +1 -1
  173. package/dist/chunks/{markdown-CxE72YNo.esm.js → markdown-C1aT-ZDT.esm.js} +34 -34
  174. package/dist/chunks/{markdown-CxE72YNo.esm.js.map → markdown-C1aT-ZDT.esm.js.map} +1 -1
  175. package/dist/chunks/{markdown-Dvf4iLu2.cjs → markdown-RayGWo-B.cjs} +2 -2
  176. package/dist/chunks/{markdown-Dvf4iLu2.cjs.map → markdown-RayGWo-B.cjs.map} +1 -1
  177. package/dist/chunks/{menu-tAepHyH2.esm.js → menu-C2ZLfnJM.esm.js} +5 -5
  178. package/dist/chunks/{menu-tAepHyH2.esm.js.map → menu-C2ZLfnJM.esm.js.map} +1 -1
  179. package/dist/chunks/{menu-WFLbN6in.cjs → menu-sokBButj.cjs} +2 -2
  180. package/dist/chunks/{menu-WFLbN6in.cjs.map → menu-sokBButj.cjs.map} +1 -1
  181. package/dist/chunks/{modal-page-BRDY8JIO.cjs → modal-page-BGs7DHvn.cjs} +2 -2
  182. package/dist/chunks/{modal-page-BRDY8JIO.cjs.map → modal-page-BGs7DHvn.cjs.map} +1 -1
  183. package/dist/chunks/{modal-page-CH6Dlz-D.esm.js → modal-page-BZGoeMPR.esm.js} +3 -3
  184. package/dist/chunks/{modal-page-CH6Dlz-D.esm.js.map → modal-page-BZGoeMPR.esm.js.map} +1 -1
  185. package/dist/chunks/{money-input-D-h6tlpV.cjs → money-input-3_CQxVa3.cjs} +2 -2
  186. package/dist/chunks/{money-input-D-h6tlpV.cjs.map → money-input-3_CQxVa3.cjs.map} +1 -1
  187. package/dist/chunks/{money-input-field-Dy6VCxeQ.esm.js → money-input-field-DMZMbP9B.esm.js} +3 -3
  188. package/dist/chunks/{money-input-field-Dy6VCxeQ.esm.js.map → money-input-field-DMZMbP9B.esm.js.map} +1 -1
  189. package/dist/chunks/{money-input-field-DeajMPme.cjs → money-input-field-Deavtpts.cjs} +2 -2
  190. package/dist/chunks/{money-input-field-DeajMPme.cjs.map → money-input-field-Deavtpts.cjs.map} +1 -1
  191. package/dist/chunks/{money-input-CKNrFSKT.esm.js → money-input-hdeI43mM.esm.js} +5 -5
  192. package/dist/chunks/{money-input-CKNrFSKT.esm.js.map → money-input-hdeI43mM.esm.js.map} +1 -1
  193. package/dist/chunks/{multiline-text-input-BZU8t53J.esm.js → multiline-text-input-BlQChE3E.esm.js} +4 -4
  194. package/dist/chunks/{multiline-text-input-BZU8t53J.esm.js.map → multiline-text-input-BlQChE3E.esm.js.map} +1 -1
  195. package/dist/chunks/{multiline-text-input-ipy-1vwz.cjs → multiline-text-input-BnbYMYjn.cjs} +2 -2
  196. package/dist/chunks/{multiline-text-input-ipy-1vwz.cjs.map → multiline-text-input-BnbYMYjn.cjs.map} +1 -1
  197. package/dist/chunks/{multiline-text-input-field-DDzHc9t0.cjs → multiline-text-input-field-Dmrep7c1.cjs} +2 -2
  198. package/dist/chunks/{multiline-text-input-field-DDzHc9t0.cjs.map → multiline-text-input-field-Dmrep7c1.cjs.map} +1 -1
  199. package/dist/chunks/{multiline-text-input-field-Dj3yuO2D.esm.js → multiline-text-input-field-DtKT6KA3.esm.js} +3 -3
  200. package/dist/chunks/{multiline-text-input-field-Dj3yuO2D.esm.js.map → multiline-text-input-field-DtKT6KA3.esm.js.map} +1 -1
  201. package/dist/chunks/{nimbus-provider-DcYjdMwh.cjs → nimbus-provider-DyiUPBgB.cjs} +2 -2
  202. package/dist/chunks/{nimbus-provider-DcYjdMwh.cjs.map → nimbus-provider-DyiUPBgB.cjs.map} +1 -1
  203. package/dist/chunks/{nimbus-provider-qYnfenns.esm.js → nimbus-provider-TxuMyLri.esm.js} +3 -3
  204. package/dist/chunks/{nimbus-provider-qYnfenns.esm.js.map → nimbus-provider-TxuMyLri.esm.js.map} +1 -1
  205. package/dist/chunks/number-input-DTS_KQVk.cjs +2 -0
  206. package/dist/chunks/{number-input-DU3522fK.cjs.map → number-input-DTS_KQVk.cjs.map} +1 -1
  207. package/dist/chunks/{number-input-D5jL0iW-.esm.js → number-input-Gpg_2UbB.esm.js} +23 -22
  208. package/dist/chunks/{number-input-D5jL0iW-.esm.js.map → number-input-Gpg_2UbB.esm.js.map} +1 -1
  209. package/dist/chunks/{number-input-field-C5DhaRwc.cjs → number-input-field-C0XJ94dJ.cjs} +2 -2
  210. package/dist/chunks/{number-input-field-C5DhaRwc.cjs.map → number-input-field-C0XJ94dJ.cjs.map} +1 -1
  211. package/dist/chunks/{number-input-field-BKAb5VQ2.esm.js → number-input-field-Da0Hux_Q.esm.js} +3 -3
  212. package/dist/chunks/{number-input-field-BKAb5VQ2.esm.js.map → number-input-field-Da0Hux_Q.esm.js.map} +1 -1
  213. package/dist/chunks/{pagination-ZSf9r9bz.esm.js → pagination-FtHeZ5vD.esm.js} +4 -4
  214. package/dist/chunks/{pagination-ZSf9r9bz.esm.js.map → pagination-FtHeZ5vD.esm.js.map} +1 -1
  215. package/dist/chunks/{pagination-CmXQNDbp.cjs → pagination-Teyq3Fc-.cjs} +2 -2
  216. package/dist/chunks/{pagination-CmXQNDbp.cjs.map → pagination-Teyq3Fc-.cjs.map} +1 -1
  217. package/dist/chunks/{password-input-DMJGpUt6.cjs → password-input-B6xQTVt3.cjs} +2 -2
  218. package/dist/chunks/{password-input-DMJGpUt6.cjs.map → password-input-B6xQTVt3.cjs.map} +1 -1
  219. package/dist/chunks/{password-input-B2OHc-gn.esm.js → password-input-ZHMvWFue.esm.js} +3 -3
  220. package/dist/chunks/{password-input-B2OHc-gn.esm.js.map → password-input-ZHMvWFue.esm.js.map} +1 -1
  221. package/dist/chunks/{password-input-field-BFj95JMU.esm.js → password-input-field-B6I17gLd.esm.js} +3 -3
  222. package/dist/chunks/{password-input-field-BFj95JMU.esm.js.map → password-input-field-B6I17gLd.esm.js.map} +1 -1
  223. package/dist/chunks/{password-input-field-Cf-zBu2O.cjs → password-input-field-Bh-LmgfF.cjs} +2 -2
  224. package/dist/chunks/{password-input-field-Cf-zBu2O.cjs.map → password-input-field-Bh-LmgfF.cjs.map} +1 -1
  225. package/dist/chunks/{popover-eUvkAe8L.cjs → popover-B4aHN9qY.cjs} +2 -2
  226. package/dist/chunks/{popover-eUvkAe8L.cjs.map → popover-B4aHN9qY.cjs.map} +1 -1
  227. package/dist/chunks/{popover-CwdOyGHr.esm.js → popover-biPpujsV.esm.js} +2 -2
  228. package/dist/chunks/{popover-CwdOyGHr.esm.js.map → popover-biPpujsV.esm.js.map} +1 -1
  229. package/dist/chunks/{progress-bar-DhZVJqY_.cjs → progress-bar-D_PAUwhj.cjs} +2 -2
  230. package/dist/chunks/{progress-bar-DhZVJqY_.cjs.map → progress-bar-D_PAUwhj.cjs.map} +1 -1
  231. package/dist/chunks/{progress-bar-Be7o97DL.esm.js → progress-bar-PjyuiZvS.esm.js} +3 -3
  232. package/dist/chunks/{progress-bar-Be7o97DL.esm.js.map → progress-bar-PjyuiZvS.esm.js.map} +1 -1
  233. package/dist/chunks/{radio-input-Cj03oX72.esm.js → radio-input-CZNQh41n.esm.js} +10 -9
  234. package/dist/chunks/{radio-input-Cj03oX72.esm.js.map → radio-input-CZNQh41n.esm.js.map} +1 -1
  235. package/dist/chunks/radio-input-FRyDwoTk.cjs +2 -0
  236. package/dist/chunks/{radio-input-_eEv0K2W.cjs.map → radio-input-FRyDwoTk.cjs.map} +1 -1
  237. package/dist/chunks/{range-calendar-B0U51wMd.cjs → range-calendar-D1yls6jq.cjs} +2 -2
  238. package/dist/chunks/{range-calendar-B0U51wMd.cjs.map → range-calendar-D1yls6jq.cjs.map} +1 -1
  239. package/dist/chunks/{range-calendar-DA5hJpYL.esm.js → range-calendar-DhgT-Y8T.esm.js} +6 -6
  240. package/dist/chunks/{range-calendar-DA5hJpYL.esm.js.map → range-calendar-DhgT-Y8T.esm.js.map} +1 -1
  241. package/dist/chunks/range-slider-Ch4kXVc3.cjs +2 -0
  242. package/dist/chunks/range-slider-Ch4kXVc3.cjs.map +1 -0
  243. package/dist/chunks/range-slider-CiNJCiKg.esm.js +600 -0
  244. package/dist/chunks/range-slider-CiNJCiKg.esm.js.map +1 -0
  245. package/dist/chunks/{rich-text-input-PYMjw5DQ.esm.js → rich-text-input-CLwl2b63.esm.js} +8 -8
  246. package/dist/chunks/{rich-text-input-PYMjw5DQ.esm.js.map → rich-text-input-CLwl2b63.esm.js.map} +1 -1
  247. package/dist/chunks/{rich-text-input-C0UU1Uoq.cjs → rich-text-input-D9MMIdJJ.cjs} +3 -3
  248. package/dist/chunks/{rich-text-input-C0UU1Uoq.cjs.map → rich-text-input-D9MMIdJJ.cjs.map} +1 -1
  249. package/dist/chunks/{scoped-search-input-D80PFOdN.esm.js → scoped-search-input-BzTmH7Ms.esm.js} +5 -5
  250. package/dist/chunks/{scoped-search-input-D80PFOdN.esm.js.map → scoped-search-input-BzTmH7Ms.esm.js.map} +1 -1
  251. package/dist/chunks/{scoped-search-input-Kj-JJpvo.cjs → scoped-search-input-C9PJWoSh.cjs} +2 -2
  252. package/dist/chunks/{scoped-search-input-Kj-JJpvo.cjs.map → scoped-search-input-C9PJWoSh.cjs.map} +1 -1
  253. package/dist/chunks/{search-input-yUmma36U.cjs → search-input-Cocic3Im.cjs} +2 -2
  254. package/dist/chunks/{search-input-yUmma36U.cjs.map → search-input-Cocic3Im.cjs.map} +1 -1
  255. package/dist/chunks/{search-input-BMq6pRov.esm.js → search-input-DLixG2wL.esm.js} +6 -6
  256. package/dist/chunks/{search-input-BMq6pRov.esm.js.map → search-input-DLixG2wL.esm.js.map} +1 -1
  257. package/dist/chunks/{select-D39rm0xA.esm.js → select-CZzyQOhP.esm.js} +17 -16
  258. package/dist/chunks/{select-D39rm0xA.esm.js.map → select-CZzyQOhP.esm.js.map} +1 -1
  259. package/dist/chunks/select-g5OICT61.cjs +2 -0
  260. package/dist/chunks/{select-DdeLYdJ3.cjs.map → select-g5OICT61.cjs.map} +1 -1
  261. package/dist/chunks/{separator-CRFMcKYe.cjs → separator-DW1Lj5oz.cjs} +2 -2
  262. package/dist/chunks/{separator-CRFMcKYe.cjs.map → separator-DW1Lj5oz.cjs.map} +1 -1
  263. package/dist/chunks/{separator-AUEVwjXs.esm.js → separator-DYgOOvtr.esm.js} +3 -3
  264. package/dist/chunks/{separator-AUEVwjXs.esm.js.map → separator-DYgOOvtr.esm.js.map} +1 -1
  265. package/dist/chunks/skeleton-C-MXf-Vh.esm.js +16 -0
  266. package/dist/chunks/skeleton-C-MXf-Vh.esm.js.map +1 -0
  267. package/dist/chunks/skeleton-SWjnk1LM.cjs +2 -0
  268. package/dist/chunks/skeleton-SWjnk1LM.cjs.map +1 -0
  269. package/dist/chunks/skeleton-circle-C5RFsv29.esm.js +18 -0
  270. package/dist/chunks/skeleton-circle-C5RFsv29.esm.js.map +1 -0
  271. package/dist/chunks/skeleton-circle-CbqEiVJ8.cjs +2 -0
  272. package/dist/chunks/skeleton-circle-CbqEiVJ8.cjs.map +1 -0
  273. package/dist/chunks/skeleton-text-B-r_Iovw.esm.js +33 -0
  274. package/dist/chunks/skeleton-text-B-r_Iovw.esm.js.map +1 -0
  275. package/dist/chunks/skeleton-text-CEr3QStr.cjs +2 -0
  276. package/dist/chunks/skeleton-text-CEr3QStr.cjs.map +1 -0
  277. package/dist/chunks/slider-CE2eEViT.esm.js +9 -0
  278. package/dist/chunks/slider-CE2eEViT.esm.js.map +1 -0
  279. package/dist/chunks/slider-CxvxZzOB.cjs +2 -0
  280. package/dist/chunks/slider-CxvxZzOB.cjs.map +1 -0
  281. package/dist/chunks/{split-button-DelUgBth.cjs → split-button-Dr_RsxyR.cjs} +2 -2
  282. package/dist/chunks/{split-button-DelUgBth.cjs.map → split-button-Dr_RsxyR.cjs.map} +1 -1
  283. package/dist/chunks/{split-button-C9MIlSe4.esm.js → split-button-lLEz3Ddi.esm.js} +4 -4
  284. package/dist/chunks/{split-button-C9MIlSe4.esm.js.map → split-button-lLEz3Ddi.esm.js.map} +1 -1
  285. package/dist/chunks/{steps-BLrpE2PL.cjs → steps-BvqxvDfJ.cjs} +2 -2
  286. package/dist/chunks/{steps-BLrpE2PL.cjs.map → steps-BvqxvDfJ.cjs.map} +1 -1
  287. package/dist/chunks/{steps-OnZi-T9x.esm.js → steps-DIRtxFO6.esm.js} +2 -2
  288. package/dist/chunks/{steps-OnZi-T9x.esm.js.map → steps-DIRtxFO6.esm.js.map} +1 -1
  289. package/dist/chunks/{switch-D1rdYruG.esm.js → switch-B351GNnT.esm.js} +4 -4
  290. package/dist/chunks/{switch-D1rdYruG.esm.js.map → switch-B351GNnT.esm.js.map} +1 -1
  291. package/dist/chunks/{switch-BPk30JYZ.cjs → switch-BSws2Bn9.cjs} +2 -2
  292. package/dist/chunks/{switch-BPk30JYZ.cjs.map → switch-BSws2Bn9.cjs.map} +1 -1
  293. package/dist/chunks/tab-nav-BMNdumQw.esm.js +66 -0
  294. package/dist/chunks/tab-nav-BMNdumQw.esm.js.map +1 -0
  295. package/dist/chunks/tab-nav-Dy6pg3Cf.cjs +2 -0
  296. package/dist/chunks/tab-nav-Dy6pg3Cf.cjs.map +1 -0
  297. package/dist/chunks/{table-DEKXq5nE.cjs → table-BF5v-4YU.cjs} +2 -2
  298. package/dist/chunks/{table-DEKXq5nE.cjs.map → table-BF5v-4YU.cjs.map} +1 -1
  299. package/dist/chunks/{table-O8T8871k.esm.js → table-OZDDVGWu.esm.js} +2 -2
  300. package/dist/chunks/{table-O8T8871k.esm.js.map → table-OZDDVGWu.esm.js.map} +1 -1
  301. package/dist/chunks/{tabs-IjuTjmW5.esm.js → tabs-C7zLoP1D.esm.js} +101 -100
  302. package/dist/chunks/{tabs-IjuTjmW5.esm.js.map → tabs-C7zLoP1D.esm.js.map} +1 -1
  303. package/dist/chunks/tabs-DLr47HN_.cjs +2 -0
  304. package/dist/chunks/{tabs-BbC8to5L.cjs.map → tabs-DLr47HN_.cjs.map} +1 -1
  305. package/dist/chunks/{tag-group-DJ2Eyzr6.esm.js → tag-group-DKiwZtum.esm.js} +160 -160
  306. package/dist/chunks/{tag-group-DJ2Eyzr6.esm.js.map → tag-group-DKiwZtum.esm.js.map} +1 -1
  307. package/dist/chunks/tag-group-JEE8r8Jl.cjs +2 -0
  308. package/dist/chunks/{tag-group-t9CCZs9w.cjs.map → tag-group-JEE8r8Jl.cjs.map} +1 -1
  309. package/dist/chunks/{text-input-DzHnlufM.esm.js → text-input-4YjslLxr.esm.js} +4 -4
  310. package/dist/chunks/{text-input-DzHnlufM.esm.js.map → text-input-4YjslLxr.esm.js.map} +1 -1
  311. package/dist/chunks/{text-input-Bc2XftOM.cjs → text-input-BttCyWCt.cjs} +2 -2
  312. package/dist/chunks/{text-input-Bc2XftOM.cjs.map → text-input-BttCyWCt.cjs.map} +1 -1
  313. package/dist/chunks/{theme-BR3bc6tH.esm.js → theme-CFqa_6UM.esm.js} +710 -195
  314. package/dist/chunks/theme-CFqa_6UM.esm.js.map +1 -0
  315. package/dist/chunks/theme-DA63MDZQ.cjs +34 -0
  316. package/dist/chunks/theme-DA63MDZQ.cjs.map +1 -0
  317. package/dist/chunks/{time-input--A7teyZm.esm.js → time-input-CJcXuGHH.esm.js} +4 -4
  318. package/dist/chunks/{time-input--A7teyZm.esm.js.map → time-input-CJcXuGHH.esm.js.map} +1 -1
  319. package/dist/chunks/{time-input-CnqA54LG.cjs → time-input-Cv-8dl-n.cjs} +2 -2
  320. package/dist/chunks/{time-input-CnqA54LG.cjs.map → time-input-Cv-8dl-n.cjs.map} +1 -1
  321. package/dist/chunks/{toast.outlet-CiElRAMb.cjs → toast.outlet-BGy4NZoL.cjs} +2 -2
  322. package/dist/chunks/{toast.outlet-CiElRAMb.cjs.map → toast.outlet-BGy4NZoL.cjs.map} +1 -1
  323. package/dist/chunks/{toast.outlet-DfFHdsij.esm.js → toast.outlet-DQ7Z1sG7.esm.js} +4 -4
  324. package/dist/chunks/{toast.outlet-DfFHdsij.esm.js.map → toast.outlet-DQ7Z1sG7.esm.js.map} +1 -1
  325. package/dist/chunks/{toggle-button-szYkDbB4.cjs → toggle-button-B9m2DON6.cjs} +2 -2
  326. package/dist/chunks/{toggle-button-szYkDbB4.cjs.map → toggle-button-B9m2DON6.cjs.map} +1 -1
  327. package/dist/chunks/{toggle-button-DnjpkkaG.esm.js → toggle-button-D3UZNm_4.esm.js} +3 -3
  328. package/dist/chunks/{toggle-button-DnjpkkaG.esm.js.map → toggle-button-D3UZNm_4.esm.js.map} +1 -1
  329. package/dist/chunks/{toolbar-BTl4PMN6.esm.js → toolbar-BUb2xcXt.esm.js} +3 -3
  330. package/dist/chunks/{toolbar-BTl4PMN6.esm.js.map → toolbar-BUb2xcXt.esm.js.map} +1 -1
  331. package/dist/chunks/{toolbar-CDuqJw86.cjs → toolbar-CxYGox-m.cjs} +2 -2
  332. package/dist/chunks/{toolbar-CDuqJw86.cjs.map → toolbar-CxYGox-m.cjs.map} +1 -1
  333. package/dist/chunks/{use-responsive-splitter-sizes-CO-POrVJ.esm.js → use-responsive-splitter-sizes-BgEYraHy.esm.js} +2 -2
  334. package/dist/chunks/{use-responsive-splitter-sizes-CO-POrVJ.esm.js.map → use-responsive-splitter-sizes-BgEYraHy.esm.js.map} +1 -1
  335. package/dist/chunks/{use-responsive-splitter-sizes-DApY1vey.cjs → use-responsive-splitter-sizes-CzfdjEjf.cjs} +2 -2
  336. package/dist/chunks/{use-responsive-splitter-sizes-DApY1vey.cjs.map → use-responsive-splitter-sizes-CzfdjEjf.cjs.map} +1 -1
  337. package/dist/chunks/{use-tree-wsHR3c7J.esm.js → use-tree-BFKFaiiu.esm.js} +147 -147
  338. package/dist/chunks/{use-tree-wsHR3c7J.esm.js.map → use-tree-BFKFaiiu.esm.js.map} +1 -1
  339. package/dist/chunks/use-tree-NiiqPu0M.cjs +2 -0
  340. package/dist/chunks/{use-tree-CrwSJhB8.cjs.map → use-tree-NiiqPu0M.cjs.map} +1 -1
  341. package/dist/chunks/{useCollection-CGf4ZguH.esm.js → useCollection-BCbt2V3u.esm.js} +258 -307
  342. package/dist/chunks/useCollection-BCbt2V3u.esm.js.map +1 -0
  343. package/dist/chunks/useCollection-BjHtDvt-.cjs +2 -0
  344. package/dist/chunks/useCollection-BjHtDvt-.cjs.map +1 -0
  345. package/dist/chunks/{useDragAndDrop-CoNOA7E9.cjs → useDragAndDrop-B8UfdCMX.cjs} +2 -2
  346. package/dist/chunks/{useDragAndDrop-CoNOA7E9.cjs.map → useDragAndDrop-B8UfdCMX.cjs.map} +1 -1
  347. package/dist/chunks/{useDragAndDrop-D_i3CWeg.esm.js → useDragAndDrop-BAyAtCYg.esm.js} +2 -2
  348. package/dist/chunks/{useDragAndDrop-D_i3CWeg.esm.js.map → useDragAndDrop-BAyAtCYg.esm.js.map} +1 -1
  349. package/dist/chunks/useFormReset-C6H3spHM.cjs +2 -0
  350. package/dist/chunks/useFormReset-C6H3spHM.cjs.map +1 -0
  351. package/dist/chunks/useFormReset-CAZratNG.esm.js +18 -0
  352. package/dist/chunks/useFormReset-CAZratNG.esm.js.map +1 -0
  353. package/dist/chunks/useFormValidationState-CMK07tQk.cjs +2 -0
  354. package/dist/chunks/useFormValidationState-CMK07tQk.cjs.map +1 -0
  355. package/dist/chunks/{useFormValidationState-rjMRhdnd.esm.js → useFormValidationState-hfa069v5.esm.js} +40 -53
  356. package/dist/chunks/useFormValidationState-hfa069v5.esm.js.map +1 -0
  357. package/dist/chunks/{useGridListItem-DVNb2d76.esm.js → useGridListItem-C6LMK1Mv.esm.js} +3 -3
  358. package/dist/chunks/{useGridListItem-DVNb2d76.esm.js.map → useGridListItem-C6LMK1Mv.esm.js.map} +1 -1
  359. package/dist/chunks/{useGridListItem-d-i-pqAt.cjs → useGridListItem-CmLWoZGe.cjs} +2 -2
  360. package/dist/chunks/{useGridListItem-d-i-pqAt.cjs.map → useGridListItem-CmLWoZGe.cjs.map} +1 -1
  361. package/dist/chunks/{useListState-6F4go-kc.cjs → useListState-BBQE4IFG.cjs} +2 -2
  362. package/dist/chunks/{useListState-6F4go-kc.cjs.map → useListState-BBQE4IFG.cjs.map} +1 -1
  363. package/dist/chunks/{useListState-BiT-W669.esm.js → useListState-TSrPXjzi.esm.js} +2 -2
  364. package/dist/chunks/{useListState-BiT-W669.esm.js.map → useListState-TSrPXjzi.esm.js.map} +1 -1
  365. package/dist/chunks/useNumberFormatter-Drsf_lwe.cjs +2 -0
  366. package/dist/chunks/useNumberFormatter-Drsf_lwe.cjs.map +1 -0
  367. package/dist/chunks/useNumberFormatter-L64UBjdR.esm.js +12 -0
  368. package/dist/chunks/useNumberFormatter-L64UBjdR.esm.js.map +1 -0
  369. package/dist/chunks/useProgressBar-C-UZQWBC.cjs +2 -0
  370. package/dist/chunks/useProgressBar-C-UZQWBC.cjs.map +1 -0
  371. package/dist/chunks/useProgressBar-DVPx9_dg.esm.js +33 -0
  372. package/dist/chunks/useProgressBar-DVPx9_dg.esm.js.map +1 -0
  373. package/dist/chunks/{useSelectableList-DDytBtRR.cjs → useSelectableList-Bgv2nxTX.cjs} +2 -2
  374. package/dist/chunks/{useSelectableList-DDytBtRR.cjs.map → useSelectableList-Bgv2nxTX.cjs.map} +1 -1
  375. package/dist/chunks/{useSelectableList-umEtkxYN.esm.js → useSelectableList-gohzq7dg.esm.js} +2 -2
  376. package/dist/chunks/{useSelectableList-umEtkxYN.esm.js.map → useSelectableList-gohzq7dg.esm.js.map} +1 -1
  377. package/dist/chunks/useTextField-ABtLd27L.cjs +2 -0
  378. package/dist/chunks/{useTextField-CzF6gZ6-.cjs.map → useTextField-ABtLd27L.cjs.map} +1 -1
  379. package/dist/chunks/{useTextField-CdCrgSsV.esm.js → useTextField-FAMJ18ah.esm.js} +5 -4
  380. package/dist/chunks/{useTextField-CdCrgSsV.esm.js.map → useTextField-FAMJ18ah.esm.js.map} +1 -1
  381. package/dist/chunks/{useToggle-oUUHIEEp.esm.js → useToggle-B9oH7p52.esm.js} +7 -6
  382. package/dist/chunks/{useToggle-oUUHIEEp.esm.js.map → useToggle-B9oH7p52.esm.js.map} +1 -1
  383. package/dist/chunks/useToggle-WawJgKE5.cjs +2 -0
  384. package/dist/chunks/{useToggle-DOG2OJN_.cjs.map → useToggle-WawJgKE5.cjs.map} +1 -1
  385. package/dist/chunks/{useTreeState-Bi7rvUKr.cjs → useTreeState-C5z4FPeF.cjs} +2 -2
  386. package/dist/chunks/{useTreeState-Bi7rvUKr.cjs.map → useTreeState-C5z4FPeF.cjs.map} +1 -1
  387. package/dist/chunks/{useTreeState-BlJtuLmC.esm.js → useTreeState-DuW0JMo8.esm.js} +2 -2
  388. package/dist/chunks/{useTreeState-BlJtuLmC.esm.js.map → useTreeState-DuW0JMo8.esm.js.map} +1 -1
  389. package/dist/components/accordion.cjs +1 -1
  390. package/dist/components/accordion.es.js +2 -2
  391. package/dist/components/actions.cjs +1 -1
  392. package/dist/components/actions.es.js +1 -1
  393. package/dist/components/alert.cjs +1 -1
  394. package/dist/components/alert.es.js +1 -1
  395. package/dist/components/breadcrumbs/breadcrumbs.d.ts +71 -0
  396. package/dist/components/breadcrumbs/breadcrumbs.recipe.d.ts +31 -0
  397. package/dist/components/breadcrumbs/breadcrumbs.slots.d.ts +27 -0
  398. package/dist/components/breadcrumbs/breadcrumbs.types.d.ts +142 -0
  399. package/dist/components/breadcrumbs/components/breadcrumbs.context.d.ts +13 -0
  400. package/dist/components/breadcrumbs/components/breadcrumbs.item.d.ts +20 -0
  401. package/dist/components/breadcrumbs/components/breadcrumbs.root.d.ts +19 -0
  402. package/dist/components/breadcrumbs/components/index.d.ts +2 -0
  403. package/dist/components/breadcrumbs/index.d.ts +2 -0
  404. package/dist/components/breadcrumbs.cjs +1 -0
  405. package/dist/components/breadcrumbs.es.js +2 -0
  406. package/dist/components/button.cjs +1 -1
  407. package/dist/components/button.es.js +1 -1
  408. package/dist/components/calendar.cjs +1 -1
  409. package/dist/components/calendar.es.js +1 -1
  410. package/dist/components/chat-message-list.cjs +1 -1
  411. package/dist/components/chat-message-list.es.js +1 -1
  412. package/dist/components/chat-message.cjs +1 -1
  413. package/dist/components/chat-message.es.js +1 -1
  414. package/dist/components/checkbox.cjs +1 -1
  415. package/dist/components/checkbox.es.js +1 -1
  416. package/dist/components/collapsible-motion.cjs +1 -1
  417. package/dist/components/collapsible-motion.es.js +1 -1
  418. package/dist/components/combobox.cjs +1 -1
  419. package/dist/components/combobox.es.js +1 -1
  420. package/dist/components/components.cjs +1 -1
  421. package/dist/components/components.es.js +1 -1
  422. package/dist/components/confirmation-dialog.cjs +1 -1
  423. package/dist/components/confirmation-dialog.es.js +1 -1
  424. package/dist/components/data-table.cjs +1 -1
  425. package/dist/components/data-table.es.js +1 -1
  426. package/dist/components/date-input.cjs +1 -1
  427. package/dist/components/date-input.es.js +1 -1
  428. package/dist/components/date-picker.cjs +1 -1
  429. package/dist/components/date-picker.es.js +1 -1
  430. package/dist/components/date-range-picker-field.cjs +1 -1
  431. package/dist/components/date-range-picker-field.es.js +2 -2
  432. package/dist/components/date-range-picker.cjs +1 -1
  433. package/dist/components/date-range-picker.es.js +1 -1
  434. package/dist/components/default-page.cjs +1 -1
  435. package/dist/components/default-page.es.js +1 -1
  436. package/dist/components/dialog.cjs +1 -1
  437. package/dist/components/dialog.es.js +1 -1
  438. package/dist/components/dialogs.cjs +1 -1
  439. package/dist/components/dialogs.es.js +2 -2
  440. package/dist/components/draggable-list.cjs +1 -1
  441. package/dist/components/draggable-list.es.js +1 -1
  442. package/dist/components/drawer.cjs +1 -1
  443. package/dist/components/drawer.es.js +1 -1
  444. package/dist/components/drop-zone.cjs +1 -1
  445. package/dist/components/drop-zone.es.js +1 -1
  446. package/dist/components/fields.cjs +1 -1
  447. package/dist/components/fields.es.js +4 -4
  448. package/dist/components/floating-action-button.cjs +1 -1
  449. package/dist/components/floating-action-button.es.js +1 -1
  450. package/dist/components/form-action-bar.cjs +1 -1
  451. package/dist/components/form-action-bar.es.js +1 -1
  452. package/dist/components/form-dialog.cjs +1 -1
  453. package/dist/components/form-dialog.es.js +1 -1
  454. package/dist/components/form-field.cjs +1 -1
  455. package/dist/components/form-field.es.js +1 -1
  456. package/dist/components/icon-button.cjs +1 -1
  457. package/dist/components/icon-button.es.js +1 -1
  458. package/dist/components/icon-toggle-button.cjs +1 -1
  459. package/dist/components/icon-toggle-button.es.js +1 -1
  460. package/dist/components/index.d.ts +5 -0
  461. package/dist/components/info-dialog.cjs +1 -1
  462. package/dist/components/info-dialog.es.js +1 -1
  463. package/dist/components/item/components/index.d.ts +8 -0
  464. package/dist/components/item/components/item.actions.d.ts +14 -0
  465. package/dist/components/item/components/item.content.d.ts +11 -0
  466. package/dist/components/item/components/item.description.d.ts +10 -0
  467. package/dist/components/item/components/item.footer.d.ts +10 -0
  468. package/dist/components/item/components/item.header.d.ts +10 -0
  469. package/dist/components/item/components/item.media.d.ts +18 -0
  470. package/dist/components/item/components/item.root.d.ts +16 -0
  471. package/dist/components/item/components/item.title.d.ts +10 -0
  472. package/dist/components/item/index.d.ts +2 -0
  473. package/dist/components/item/item.d.ts +177 -0
  474. package/dist/components/item/item.recipe.d.ts +52 -0
  475. package/dist/components/item/item.slots.d.ts +15 -0
  476. package/dist/components/item/item.types.d.ts +81 -0
  477. package/dist/components/item-group/components/index.d.ts +2 -0
  478. package/dist/components/item-group/components/item-group.root.d.ts +22 -0
  479. package/dist/components/item-group/components/item-group.separator.d.ts +11 -0
  480. package/dist/components/item-group/index.d.ts +2 -0
  481. package/dist/components/item-group/item-group.d.ts +62 -0
  482. package/dist/components/item-group/item-group.recipe.d.ts +11 -0
  483. package/dist/components/item-group/item-group.slots.d.ts +11 -0
  484. package/dist/components/item-group/item-group.types.d.ts +14 -0
  485. package/dist/components/item-group.cjs +1 -0
  486. package/dist/components/item-group.es.js +2 -0
  487. package/dist/components/item.cjs +1 -0
  488. package/dist/components/item.es.js +2 -0
  489. package/dist/components/list.cjs +1 -1
  490. package/dist/components/list.es.js +1 -1
  491. package/dist/components/loading-spinner.cjs +1 -1
  492. package/dist/components/loading-spinner.es.js +1 -1
  493. package/dist/components/localized-field.cjs +1 -1
  494. package/dist/components/localized-field.es.js +1 -1
  495. package/dist/components/markdown.cjs +1 -1
  496. package/dist/components/markdown.es.js +1 -1
  497. package/dist/components/modal-page.cjs +1 -1
  498. package/dist/components/modal-page.es.js +1 -1
  499. package/dist/components/money-input-field.cjs +1 -1
  500. package/dist/components/money-input-field.es.js +1 -1
  501. package/dist/components/money-input.cjs +1 -1
  502. package/dist/components/money-input.es.js +1 -1
  503. package/dist/components/multiline-text-input-field.cjs +1 -1
  504. package/dist/components/multiline-text-input-field.es.js +1 -1
  505. package/dist/components/multiline-text-input.cjs +1 -1
  506. package/dist/components/multiline-text-input.es.js +1 -1
  507. package/dist/components/nimbus-provider.cjs +1 -1
  508. package/dist/components/nimbus-provider.es.js +1 -1
  509. package/dist/components/number-input-field.cjs +1 -1
  510. package/dist/components/number-input-field.es.js +1 -1
  511. package/dist/components/number-input.cjs +1 -1
  512. package/dist/components/number-input.es.js +1 -1
  513. package/dist/components/pagination.cjs +1 -1
  514. package/dist/components/pagination.es.js +1 -1
  515. package/dist/components/password-input-field.cjs +1 -1
  516. package/dist/components/password-input-field.es.js +1 -1
  517. package/dist/components/password-input.cjs +1 -1
  518. package/dist/components/password-input.es.js +1 -1
  519. package/dist/components/patterns.cjs +1 -1
  520. package/dist/components/patterns.es.js +7 -7
  521. package/dist/components/popover.cjs +1 -1
  522. package/dist/components/popover.es.js +1 -1
  523. package/dist/components/progress-bar.cjs +1 -1
  524. package/dist/components/progress-bar.es.js +1 -1
  525. package/dist/components/radio-input.cjs +1 -1
  526. package/dist/components/radio-input.es.js +1 -1
  527. package/dist/components/range-calendar.cjs +1 -1
  528. package/dist/components/range-calendar.es.js +1 -1
  529. package/dist/components/range-slider.cjs +1 -0
  530. package/dist/components/range-slider.es.js +2 -0
  531. package/dist/components/rich-text-input.cjs +1 -1
  532. package/dist/components/rich-text-input.es.js +1 -1
  533. package/dist/components/scoped-search-input.cjs +1 -1
  534. package/dist/components/scoped-search-input.es.js +1 -1
  535. package/dist/components/search-input-field.cjs +1 -1
  536. package/dist/components/search-input-field.es.js +2 -2
  537. package/dist/components/search-input.cjs +1 -1
  538. package/dist/components/search-input.es.js +1 -1
  539. package/dist/components/select.cjs +1 -1
  540. package/dist/components/select.es.js +1 -1
  541. package/dist/components/separator.cjs +1 -1
  542. package/dist/components/separator.es.js +1 -1
  543. package/dist/components/skeleton/derivatives/skeleton-circle/index.d.ts +2 -0
  544. package/dist/components/skeleton/derivatives/skeleton-circle/skeleton-circle.d.ts +17 -0
  545. package/dist/components/skeleton/derivatives/skeleton-circle/skeleton-circle.types.d.ts +21 -0
  546. package/dist/components/skeleton/derivatives/skeleton-text/index.d.ts +2 -0
  547. package/dist/components/skeleton/derivatives/skeleton-text/skeleton-text.d.ts +16 -0
  548. package/dist/components/skeleton/derivatives/skeleton-text/skeleton-text.types.d.ts +45 -0
  549. package/dist/components/skeleton/index.d.ts +6 -0
  550. package/dist/components/skeleton/skeleton.d.ts +20 -0
  551. package/dist/components/skeleton/skeleton.recipe.d.ts +59 -0
  552. package/dist/components/skeleton/skeleton.slots.d.ts +7 -0
  553. package/dist/components/skeleton/skeleton.types.d.ts +50 -0
  554. package/dist/components/skeleton-circle.cjs +1 -0
  555. package/dist/components/skeleton-circle.es.js +2 -0
  556. package/dist/components/skeleton-text.cjs +1 -0
  557. package/dist/components/skeleton-text.es.js +2 -0
  558. package/dist/components/skeleton.cjs +1 -0
  559. package/dist/components/skeleton.es.js +6 -0
  560. package/dist/components/slider/derivatives/range-slider/index.d.ts +2 -0
  561. package/dist/components/slider/derivatives/range-slider/range-slider.d.ts +20 -0
  562. package/dist/components/slider/derivatives/range-slider/range-slider.types.d.ts +13 -0
  563. package/dist/components/slider/index.d.ts +4 -0
  564. package/dist/components/slider/intl/de.d.ts +10 -0
  565. package/dist/components/slider/intl/en.d.ts +10 -0
  566. package/dist/components/slider/intl/es.d.ts +10 -0
  567. package/dist/components/slider/intl/fr-FR.d.ts +10 -0
  568. package/dist/components/slider/intl/pt-BR.d.ts +10 -0
  569. package/dist/components/slider/slider-base.d.ts +10 -0
  570. package/dist/components/slider/slider.d.ts +13 -0
  571. package/dist/components/slider/slider.i18n.d.ts +12 -0
  572. package/dist/components/slider/slider.messages.d.ts +6 -0
  573. package/dist/components/slider/slider.recipe.d.ts +138 -0
  574. package/dist/components/slider/slider.slots.d.ts +9 -0
  575. package/dist/components/slider/slider.types.d.ts +57 -0
  576. package/dist/components/slider.cjs +1 -0
  577. package/dist/components/slider.es.js +4 -0
  578. package/dist/components/split-button.cjs +1 -1
  579. package/dist/components/split-button.es.js +1 -1
  580. package/dist/components/splitter.cjs +1 -1
  581. package/dist/components/splitter.es.js +1 -1
  582. package/dist/components/steps.cjs +1 -1
  583. package/dist/components/steps.es.js +1 -1
  584. package/dist/components/switch.cjs +1 -1
  585. package/dist/components/switch.es.js +1 -1
  586. package/dist/components/tab-nav.cjs +1 -1
  587. package/dist/components/tab-nav.es.js +1 -1
  588. package/dist/components/table.cjs +1 -1
  589. package/dist/components/table.es.js +1 -1
  590. package/dist/components/tabs.cjs +1 -1
  591. package/dist/components/tabs.es.js +1 -1
  592. package/dist/components/tag-group.cjs +1 -1
  593. package/dist/components/tag-group.es.js +1 -1
  594. package/dist/components/text-input-field.cjs +1 -1
  595. package/dist/components/text-input-field.es.js +2 -2
  596. package/dist/components/text-input.cjs +1 -1
  597. package/dist/components/text-input.es.js +1 -1
  598. package/dist/components/time-input.cjs +1 -1
  599. package/dist/components/time-input.es.js +1 -1
  600. package/dist/components/toast.cjs +1 -1
  601. package/dist/components/toast.es.js +1 -1
  602. package/dist/components/toggle-button.cjs +1 -1
  603. package/dist/components/toggle-button.es.js +1 -1
  604. package/dist/components/toolbar.cjs +1 -1
  605. package/dist/components/toolbar.es.js +1 -1
  606. package/dist/components/tree.cjs +1 -1
  607. package/dist/components/tree.es.js +1 -1
  608. package/dist/index.cjs +2 -2
  609. package/dist/index.cjs.map +1 -1
  610. package/dist/index.es.js +170 -162
  611. package/dist/index.es.js.map +1 -1
  612. package/dist/theme/keyframes.d.ts +11 -0
  613. package/dist/theme/recipes/index.d.ts +46 -0
  614. package/dist/theme/slot-recipes/index.d.ts +193 -0
  615. package/package.json +6 -6
  616. package/dist/chunks/DateField-DI1RhZqo.cjs +0 -2
  617. package/dist/chunks/Dialog-s5tFTj72.cjs +0 -6
  618. package/dist/chunks/ListBox-CXgfDQSn.cjs +0 -2
  619. package/dist/chunks/chat-message-list-BhWZEg4l.esm.js.map +0 -1
  620. package/dist/chunks/chat-message-list-BvzHnJHs.cjs +0 -2
  621. package/dist/chunks/chat-message-list-BvzHnJHs.cjs.map +0 -1
  622. package/dist/chunks/data-table-CHpJecej.cjs +0 -2
  623. package/dist/chunks/draggable-list-CKKl6A_a.cjs +0 -2
  624. package/dist/chunks/number-input-DU3522fK.cjs +0 -2
  625. package/dist/chunks/radio-input-_eEv0K2W.cjs +0 -2
  626. package/dist/chunks/select-DdeLYdJ3.cjs +0 -2
  627. package/dist/chunks/tab-nav-CunrpVeV.cjs +0 -2
  628. package/dist/chunks/tab-nav-CunrpVeV.cjs.map +0 -1
  629. package/dist/chunks/tab-nav-EHnsfeUM.esm.js +0 -99
  630. package/dist/chunks/tab-nav-EHnsfeUM.esm.js.map +0 -1
  631. package/dist/chunks/tabs-BbC8to5L.cjs +0 -2
  632. package/dist/chunks/tag-group-t9CCZs9w.cjs +0 -2
  633. package/dist/chunks/theme-BR3bc6tH.esm.js.map +0 -1
  634. package/dist/chunks/theme-tOoHVZZ6.cjs +0 -34
  635. package/dist/chunks/theme-tOoHVZZ6.cjs.map +0 -1
  636. package/dist/chunks/use-tree-CrwSJhB8.cjs +0 -2
  637. package/dist/chunks/useCollection-C04LezXC.cjs +0 -2
  638. package/dist/chunks/useCollection-C04LezXC.cjs.map +0 -1
  639. package/dist/chunks/useCollection-CGf4ZguH.esm.js.map +0 -1
  640. package/dist/chunks/useFormValidationState-B5e8EeJ8.cjs +0 -2
  641. package/dist/chunks/useFormValidationState-B5e8EeJ8.cjs.map +0 -1
  642. package/dist/chunks/useFormValidationState-rjMRhdnd.esm.js.map +0 -1
  643. package/dist/chunks/useProgressBar-DDrlZQv4.cjs +0 -2
  644. package/dist/chunks/useProgressBar-DDrlZQv4.cjs.map +0 -1
  645. package/dist/chunks/useProgressBar-DmcvqOjq.esm.js +0 -41
  646. package/dist/chunks/useProgressBar-DmcvqOjq.esm.js.map +0 -1
  647. package/dist/chunks/useTextField-CzF6gZ6-.cjs +0 -2
  648. package/dist/chunks/useToggle-DOG2OJN_.cjs +0 -2
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox-Bto3lCdU.esm.js","names":["$5eYZN$useEffect","$5eYZN$useMemo","$43eCz$useToggleState","$43eCz$useFormValidationState","$43eCz$useRef","$43eCz$DEFAULT_VALIDATION_RESULT","$43eCz$useEffect","$43eCz$privateValidationStateProp","$j1L6B$createContext","$j1L6B$useContext","$j1L6B$useObjectRef","$j1L6B$useMemo","$j1L6B$mergeRefs","$j1L6B$useCheckboxGroupItem","$j1L6B$useCheckbox","$j1L6B$useToggleState","$j1L6B$forwardRef","$j1L6B$react","$j1L6B$useFocusRing","$j1L6B$useHover","$j1L6B$filterDOMProps","$j1L6B$mergeProps","$j1L6B$VisuallyHidden"],"sources":["../../../../node_modules/.pnpm/react-aria@3.50.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria/dist/private/checkbox/useCheckbox.mjs","../../../../node_modules/.pnpm/react-aria@3.50.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria/dist/private/checkbox/utils.mjs","../../../../node_modules/.pnpm/react-aria@3.50.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria/dist/private/checkbox/useCheckboxGroupItem.mjs","../../../../node_modules/.pnpm/react-aria-components@1.19.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/dist/private/Checkbox.mjs","../../src/components/checkbox/checkbox.slots.tsx","../../src/components/checkbox/checkbox.tsx"],"sourcesContent":["import {useToggle as $876b6f32ca5a04c3$export$cbe85ee05b554577} from \"../toggle/useToggle.mjs\";\nimport {mergeProps as $bbaa08b3cd72f041$export$9d1611c77c2fe928} from \"../utils/mergeProps.mjs\";\nimport {useEffect as $5eYZN$useEffect, useMemo as $5eYZN$useMemo} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\nfunction $dde212bea465bd23$export$e375f10ce42261c5(props, state, inputRef) {\n let { labelProps: labelProps, inputProps: inputProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps, isSelected: isSelected, isPressed: isPressed, isDisabled: isDisabled, isReadOnly: isReadOnly, isInvalid: isInvalid, validationErrors: validationErrors, validationDetails: validationDetails } = (0, $876b6f32ca5a04c3$export$cbe85ee05b554577)(props, state, inputRef);\n let { isIndeterminate: isIndeterminate } = props;\n (0, $5eYZN$useEffect)(()=>{\n // indeterminate is a property, but it can only be set via javascript\n // https://css-tricks.com/indeterminate-checkboxes/\n if (inputRef.current) inputRef.current.indeterminate = !!isIndeterminate;\n });\n return {\n labelProps: (0, $bbaa08b3cd72f041$export$9d1611c77c2fe928)(labelProps, (0, $5eYZN$useMemo)(()=>({\n // Prevent label from being focused when mouse down on it.\n // Note, this does not prevent the input from being focused in the `click` event.\n onMouseDown: (e)=>e.preventDefault()\n }), [])),\n inputProps: inputProps,\n descriptionProps: descriptionProps,\n errorMessageProps: errorMessageProps,\n isSelected: isSelected,\n isPressed: isPressed,\n isDisabled: isDisabled,\n isReadOnly: isReadOnly,\n isInvalid: isInvalid,\n validationErrors: validationErrors,\n validationDetails: validationDetails\n };\n}\n\n\nexport {$dde212bea465bd23$export$e375f10ce42261c5 as useCheckbox};\n//# sourceMappingURL=useCheckbox.mjs.map\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ const $0fffd24394d22962$export$ec98120685d4f57d = new WeakMap();\n\n\nexport {$0fffd24394d22962$export$ec98120685d4f57d as checkboxGroupData};\n//# sourceMappingURL=utils.mjs.map\n","import {useCheckbox as $dde212bea465bd23$export$e375f10ce42261c5} from \"./useCheckbox.mjs\";\nimport {checkboxGroupData as $0fffd24394d22962$export$ec98120685d4f57d} from \"./utils.mjs\";\nimport {useFormValidationState as $43eCz$useFormValidationState, DEFAULT_VALIDATION_RESULT as $43eCz$DEFAULT_VALIDATION_RESULT, privateValidationStateProp as $43eCz$privateValidationStateProp} from \"react-stately/private/form/useFormValidationState\";\nimport {useRef as $43eCz$useRef, useEffect as $43eCz$useEffect} from \"react\";\nimport {useToggleState as $43eCz$useToggleState} from \"react-stately/useToggleState\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\nfunction $55cfc34eef47e1ca$export$353b32fc6898d37d(props, state, inputRef) {\n const toggleState = (0, $43eCz$useToggleState)({\n isReadOnly: props.isReadOnly || state.isReadOnly,\n isSelected: state.isSelected(props.value),\n defaultSelected: state.defaultValue.includes(props.value),\n onChange (isSelected) {\n if (isSelected) state.addValue(props.value);\n else state.removeValue(props.value);\n if (props.onChange) props.onChange(isSelected);\n }\n });\n let { name: name, form: form, descriptionId: descriptionId, errorMessageId: errorMessageId, validationBehavior: validationBehavior } = (0, $0fffd24394d22962$export$ec98120685d4f57d).get(state);\n validationBehavior = props.validationBehavior ?? validationBehavior;\n // Local validation for this checkbox.\n let { realtimeValidation: realtimeValidation } = (0, $43eCz$useFormValidationState)({\n ...props,\n value: toggleState.isSelected,\n // Server validation is handled at the group level.\n name: undefined,\n validationBehavior: 'aria'\n });\n // Update the checkbox group state when realtime validation changes.\n let nativeValidation = (0, $43eCz$useRef)((0, $43eCz$DEFAULT_VALIDATION_RESULT));\n let updateValidation = ()=>{\n state.setInvalid(props.value, realtimeValidation.isInvalid ? realtimeValidation : nativeValidation.current);\n };\n (0, $43eCz$useEffect)(updateValidation);\n // Combine group and checkbox level validation.\n let combinedRealtimeValidation = state.realtimeValidation.isInvalid ? state.realtimeValidation : realtimeValidation;\n let displayValidation = validationBehavior === 'native' ? state.displayValidation : combinedRealtimeValidation;\n let res = (0, $dde212bea465bd23$export$e375f10ce42261c5)({\n ...props,\n isReadOnly: props.isReadOnly || state.isReadOnly,\n isDisabled: props.isDisabled || state.isDisabled,\n name: props.name || name,\n form: props.form || form,\n isRequired: props.isRequired ?? state.isRequired,\n validationBehavior: validationBehavior,\n [(0, $43eCz$privateValidationStateProp)]: {\n realtimeValidation: combinedRealtimeValidation,\n displayValidation: displayValidation,\n resetValidation: state.resetValidation,\n commitValidation: state.commitValidation,\n updateValidation (v) {\n nativeValidation.current = v;\n updateValidation();\n }\n }\n }, toggleState, inputRef);\n return {\n ...res,\n inputProps: {\n ...res.inputProps,\n 'aria-describedby': [\n res.inputProps['aria-describedby'],\n state.isInvalid ? errorMessageId : null,\n descriptionId\n ].filter(Boolean).join(' ') || undefined\n }\n };\n}\n\n\nexport {$55cfc34eef47e1ca$export$353b32fc6898d37d as useCheckboxGroupItem};\n//# sourceMappingURL=useCheckboxGroupItem.mjs.map\n","import {dom as $7230ffa83bc0c2cf$export$df3a06d6289f983e, Provider as $7230ffa83bc0c2cf$export$2881499e37b75b9a, removeDataAttributes as $7230ffa83bc0c2cf$export$ef03459518577ad4, useContextProps as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, useRenderProps as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, useSlot as $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8, useSlottedContext as $7230ffa83bc0c2cf$export$fabf2dc03a41866e} from \"./utils.mjs\";\nimport {FieldErrorContext as $1f3c3b1a70cec653$export$ff05c3ac10437e03} from \"./FieldError.mjs\";\nimport {FormContext as $cdaed739b1139372$export$c24727297075ec6a} from \"./Form.mjs\";\nimport {LabelContext as $43a3b93638fe5db9$export$75b6ee27786ba447} from \"./Label.mjs\";\nimport {TextContext as $efe09c6d1c304b50$export$9afb8bc826b033ea} from \"./Text.mjs\";\nimport {useCheckboxGroup as $j1L6B$useCheckboxGroup, useCheckboxGroupItem as $j1L6B$useCheckboxGroupItem} from \"react-aria/useCheckboxGroup\";\nimport {useCheckbox as $j1L6B$useCheckbox} from \"react-aria/useCheckbox\";\nimport {useCheckboxGroupState as $j1L6B$useCheckboxGroupState} from \"react-stately/useCheckboxGroupState\";\nimport {filterDOMProps as $j1L6B$filterDOMProps} from \"react-aria/filterDOMProps\";\nimport {mergeProps as $j1L6B$mergeProps} from \"react-aria/mergeProps\";\nimport {mergeRefs as $j1L6B$mergeRefs} from \"react-aria/mergeRefs\";\nimport $j1L6B$react, {createContext as $j1L6B$createContext, forwardRef as $j1L6B$forwardRef, useContext as $j1L6B$useContext, useMemo as $j1L6B$useMemo} from \"react\";\nimport {useFocusRing as $j1L6B$useFocusRing} from \"react-aria/useFocusRing\";\nimport {useHover as $j1L6B$useHover} from \"react-aria/useHover\";\nimport {useObjectRef as $j1L6B$useObjectRef} from \"react-aria/useObjectRef\";\nimport {useToggleState as $j1L6B$useToggleState} from \"react-stately/useToggleState\";\nimport {VisuallyHidden as $j1L6B$VisuallyHidden} from \"react-aria/VisuallyHidden\";\n\n/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nconst $ed8ccb2e23e76301$export$b085522c77523c51 = /*#__PURE__*/ (0, $j1L6B$createContext)(null);\nconst $ed8ccb2e23e76301$export$c32003b803b6c22e = /*#__PURE__*/ (0, $j1L6B$createContext)(null);\nconst $ed8ccb2e23e76301$export$baf37c4be89255b8 = /*#__PURE__*/ (0, $j1L6B$createContext)(null);\nconst $ed8ccb2e23e76301$export$139c5b8563afc1fc = /*#__PURE__*/ (0, $j1L6B$createContext)(null);\nconst $ed8ccb2e23e76301$export$4aa08d5625cb8ead = /*#__PURE__*/ (0, $j1L6B$forwardRef)(function CheckboxGroup(props, ref) {\n [props, ref] = (0, $7230ffa83bc0c2cf$export$29f1550f4b0d4415)(props, ref, $ed8ccb2e23e76301$export$baf37c4be89255b8);\n let { validationBehavior: formValidationBehavior } = (0, $7230ffa83bc0c2cf$export$fabf2dc03a41866e)((0, $cdaed739b1139372$export$c24727297075ec6a)) || {};\n let validationBehavior = props.validationBehavior ?? formValidationBehavior ?? 'native';\n let state = (0, $j1L6B$useCheckboxGroupState)({\n ...props,\n validationBehavior: validationBehavior\n });\n let [labelRef, label] = (0, $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8)(!props['aria-label'] && !props['aria-labelledby']);\n let { groupProps: groupProps, labelProps: labelProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps, ...validation } = (0, $j1L6B$useCheckboxGroup)({\n ...props,\n label: label,\n validationBehavior: validationBehavior\n }, state);\n let renderProps = (0, $7230ffa83bc0c2cf$export$4d86445c2cf5e3)({\n ...props,\n values: {\n isDisabled: state.isDisabled,\n isReadOnly: state.isReadOnly,\n isRequired: props.isRequired || false,\n isInvalid: state.isInvalid,\n state: state\n },\n defaultClassName: 'react-aria-CheckboxGroup'\n });\n let DOMProps = (0, $j1L6B$filterDOMProps)(props, {\n global: true\n });\n return /*#__PURE__*/ (0, $j1L6B$react).createElement((0, $7230ffa83bc0c2cf$export$df3a06d6289f983e).div, {\n ...(0, $j1L6B$mergeProps)(DOMProps, renderProps, groupProps),\n ref: ref,\n slot: props.slot || undefined,\n \"data-readonly\": state.isReadOnly || undefined,\n \"data-required\": props.isRequired || undefined,\n \"data-invalid\": state.isInvalid || undefined,\n \"data-disabled\": props.isDisabled || undefined\n }, /*#__PURE__*/ (0, $j1L6B$react).createElement((0, $7230ffa83bc0c2cf$export$2881499e37b75b9a), {\n values: [\n [\n $ed8ccb2e23e76301$export$139c5b8563afc1fc,\n state\n ],\n [\n (0, $43a3b93638fe5db9$export$75b6ee27786ba447),\n {\n ...labelProps,\n ref: labelRef,\n elementType: 'span'\n }\n ],\n [\n (0, $efe09c6d1c304b50$export$9afb8bc826b033ea),\n {\n slots: {\n description: descriptionProps,\n errorMessage: errorMessageProps\n }\n }\n ],\n [\n (0, $1f3c3b1a70cec653$export$ff05c3ac10437e03),\n validation\n ]\n ]\n }, renderProps.children));\n});\nconst $ed8ccb2e23e76301$var$InternalCheckboxContext = /*#__PURE__*/ (0, $j1L6B$createContext)(null);\nconst $ed8ccb2e23e76301$export$94195a47b94ed396 = /*#__PURE__*/ (0, $j1L6B$forwardRef)(function Checkbox(props, ref) {\n let { inputRef: userProvidedInputRef = null, ...otherProps } = props;\n [props, ref] = (0, $7230ffa83bc0c2cf$export$29f1550f4b0d4415)(otherProps, ref, $ed8ccb2e23e76301$export$c32003b803b6c22e);\n let groupState = (0, $j1L6B$useContext)($ed8ccb2e23e76301$export$139c5b8563afc1fc);\n let [aria, inputRef] = $ed8ccb2e23e76301$var$useCheckboxAria(props, userProvidedInputRef);\n let { descriptionProps: descriptionProps, errorMessageProps: errorMessageProps, isSelected: isSelected, isDisabled: isDisabled, isReadOnly: isReadOnly, isInvalid: isInvalid, validationDetails: validationDetails, validationErrors: validationErrors } = aria;\n let renderProps = (0, $7230ffa83bc0c2cf$export$4d86445c2cf5e3)({\n ...props,\n defaultClassName: 'react-aria-CheckboxField',\n values: {\n isSelected: isSelected,\n isIndeterminate: props.isIndeterminate || false,\n isDisabled: isDisabled,\n isReadOnly: isReadOnly,\n isInvalid: isInvalid,\n isRequired: props.isRequired || false\n }\n });\n let DOMProps = (0, $j1L6B$filterDOMProps)(props, {\n global: true\n });\n delete DOMProps.id;\n delete DOMProps.onClick;\n return /*#__PURE__*/ (0, $j1L6B$react).createElement((0, $7230ffa83bc0c2cf$export$df3a06d6289f983e).div, {\n ...(0, $j1L6B$mergeProps)(DOMProps, renderProps),\n ref: ref,\n slot: props.slot || undefined,\n \"data-selected\": isSelected || undefined,\n \"data-indeterminate\": props.isIndeterminate || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-readonly\": isReadOnly || undefined,\n \"data-invalid\": isInvalid || undefined,\n \"data-required\": props.isRequired || undefined\n }, /*#__PURE__*/ (0, $j1L6B$react).createElement((0, $7230ffa83bc0c2cf$export$2881499e37b75b9a), {\n values: [\n [\n $ed8ccb2e23e76301$var$InternalCheckboxContext,\n {\n ...aria,\n inputRef: inputRef,\n defaultClassName: 'react-aria-CheckboxButton',\n isIndeterminate: props.isIndeterminate,\n isRequired: props.isRequired\n }\n ],\n [\n (0, $efe09c6d1c304b50$export$9afb8bc826b033ea),\n {\n slots: {\n description: descriptionProps,\n errorMessage: errorMessageProps\n }\n }\n ],\n // In a CheckboxGroup, validation is handled at the group level instead of repeated on each checkbox.\n [\n (0, $1f3c3b1a70cec653$export$ff05c3ac10437e03),\n groupState ? null : {\n isInvalid: isInvalid,\n validationDetails: validationDetails,\n validationErrors: validationErrors\n }\n ]\n ]\n }, renderProps.children));\n});\nfunction $ed8ccb2e23e76301$var$useCheckboxAria(props, userProvidedInputRef) {\n let { validationBehavior: formValidationBehavior } = (0, $7230ffa83bc0c2cf$export$fabf2dc03a41866e)((0, $cdaed739b1139372$export$c24727297075ec6a)) || {};\n let validationBehavior = props.validationBehavior ?? formValidationBehavior ?? 'native';\n let groupState = (0, $j1L6B$useContext)($ed8ccb2e23e76301$export$139c5b8563afc1fc);\n let inputRef = (0, $j1L6B$useObjectRef)((0, $j1L6B$useMemo)(()=>(0, $j1L6B$mergeRefs)(userProvidedInputRef, props.inputRef !== undefined ? props.inputRef : null), [\n userProvidedInputRef,\n props.inputRef\n ]));\n let checkboxProps = {\n ...(0, $7230ffa83bc0c2cf$export$ef03459518577ad4)(props),\n children: typeof props.children === 'function' ? true : props.children,\n value: props.value,\n validationBehavior: validationBehavior\n };\n let aria = groupState ? (0, $j1L6B$useCheckboxGroupItem)(checkboxProps, groupState, inputRef) : (0, $j1L6B$useCheckbox)(checkboxProps, (0, $j1L6B$useToggleState)(props), inputRef);\n return [\n aria,\n inputRef\n ];\n}\nconst $ed8ccb2e23e76301$export$48513f6b9f8ce62d = /*#__PURE__*/ (0, $j1L6B$forwardRef)(function Checkbox(props, ref) {\n let { inputRef: userProvidedInputRef = null, ...otherProps } = props;\n [props, ref] = (0, $7230ffa83bc0c2cf$export$29f1550f4b0d4415)(otherProps, ref, $ed8ccb2e23e76301$export$b085522c77523c51);\n let [aria, inputRef] = $ed8ccb2e23e76301$var$useCheckboxAria(props, userProvidedInputRef);\n return /*#__PURE__*/ (0, $j1L6B$react).createElement($ed8ccb2e23e76301$var$InternalCheckboxContext.Provider, {\n value: {\n ...aria,\n inputRef: inputRef,\n defaultClassName: 'react-aria-Checkbox',\n isIndeterminate: props.isIndeterminate,\n isRequired: props.isRequired\n }\n }, /*#__PURE__*/ (0, $j1L6B$react).createElement($ed8ccb2e23e76301$export$6e7a18c0548f3129, {\n ...props,\n ref: ref\n }));\n});\nconst $ed8ccb2e23e76301$export$6e7a18c0548f3129 = /*#__PURE__*/ (0, $j1L6B$forwardRef)(function CheckboxButton(props, ref) {\n let { labelProps: labelProps, inputProps: inputProps, isSelected: isSelected, isDisabled: isDisabled, isReadOnly: isReadOnly, isPressed: isPressed, isInvalid: isInvalid, inputRef: inputRef, defaultClassName: defaultClassName, isIndeterminate: isIndeterminate, isRequired: isRequired } = (0, $j1L6B$useContext)($ed8ccb2e23e76301$var$InternalCheckboxContext);\n let { isFocused: isFocused, isFocusVisible: isFocusVisible, focusProps: focusProps } = (0, $j1L6B$useFocusRing)();\n let isInteractionDisabled = isDisabled || isReadOnly;\n let { hoverProps: hoverProps, isHovered: isHovered } = (0, $j1L6B$useHover)({\n ...props,\n isDisabled: isInteractionDisabled\n });\n let renderProps = (0, $7230ffa83bc0c2cf$export$4d86445c2cf5e3)({\n ...props,\n defaultClassName: defaultClassName,\n values: {\n isSelected: isSelected,\n isIndeterminate: isIndeterminate || false,\n isPressed: isPressed,\n isHovered: isHovered,\n isFocused: isFocused,\n isFocusVisible: isFocusVisible,\n isDisabled: isDisabled,\n isReadOnly: isReadOnly,\n isInvalid: isInvalid,\n isRequired: isRequired || false\n }\n });\n let DOMProps = (0, $j1L6B$filterDOMProps)(props, {\n global: true\n });\n delete DOMProps.id;\n delete DOMProps.onClick;\n return /*#__PURE__*/ (0, $j1L6B$react).createElement((0, $7230ffa83bc0c2cf$export$df3a06d6289f983e).label, {\n ...(0, $j1L6B$mergeProps)(DOMProps, labelProps, hoverProps, renderProps),\n ref: ref,\n slot: props.slot || undefined,\n \"data-selected\": isSelected || undefined,\n \"data-indeterminate\": isIndeterminate || undefined,\n \"data-pressed\": isPressed || undefined,\n \"data-hovered\": isHovered || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-readonly\": isReadOnly || undefined,\n \"data-invalid\": isInvalid || undefined,\n \"data-required\": isRequired || undefined\n }, /*#__PURE__*/ (0, $j1L6B$react).createElement((0, $j1L6B$VisuallyHidden), {\n elementType: \"span\"\n }, /*#__PURE__*/ (0, $j1L6B$react).createElement(\"input\", {\n ...(0, $j1L6B$mergeProps)(inputProps, focusProps),\n ref: inputRef\n })), renderProps.children);\n});\n\n\nexport {$ed8ccb2e23e76301$export$b085522c77523c51 as CheckboxContext, $ed8ccb2e23e76301$export$c32003b803b6c22e as CheckboxFieldContext, $ed8ccb2e23e76301$export$baf37c4be89255b8 as CheckboxGroupContext, $ed8ccb2e23e76301$export$139c5b8563afc1fc as CheckboxGroupStateContext, $ed8ccb2e23e76301$export$4aa08d5625cb8ead as CheckboxGroup, $ed8ccb2e23e76301$export$94195a47b94ed396 as CheckboxField, $ed8ccb2e23e76301$export$48513f6b9f8ce62d as Checkbox, $ed8ccb2e23e76301$export$6e7a18c0548f3129 as CheckboxButton};\n//# sourceMappingURL=Checkbox.mjs.map\n","import { createSlotRecipeContext } from \"@chakra-ui/react/styled-system\";\nimport { Checkbox as RaCheckbox } from \"react-aria-components\";\nimport type { SlotComponent } from \"@/type-utils/slot-types\";\nimport type {\n CheckboxRootSlotProps,\n CheckboxIndicatorSlotProps,\n CheckboxLabelSlotProps,\n} from \"./checkbox.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"nimbusCheckbox\",\n});\n\nexport const CheckboxRoot: SlotComponent<\n HTMLLabelElement,\n CheckboxRootSlotProps\n> = withProvider<HTMLLabelElement, CheckboxRootSlotProps>(RaCheckbox, \"root\");\n\nexport const CheckboxLabel: SlotComponent<\n HTMLSpanElement,\n CheckboxLabelSlotProps\n> = withContext<HTMLSpanElement, CheckboxLabelSlotProps>(\"span\", \"label\");\n\nexport const CheckboxIndicator: SlotComponent<\n HTMLSpanElement,\n CheckboxIndicatorSlotProps\n> = withContext<HTMLSpanElement, CheckboxIndicatorSlotProps>(\n \"span\",\n \"indicator\"\n);\n","import { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { Check, Remove as Minus } from \"@commercetools/nimbus-icons\";\nimport { extractStyleProps } from \"@/utils\";\nimport type { CheckboxProps } from \"./checkbox.types\";\nimport type { CheckboxRenderProps } from \"react-aria-components\";\nimport {\n CheckboxIndicator,\n CheckboxRoot,\n CheckboxLabel,\n} from \"./checkbox.slots\";\n\n/**\n * # Checkbox\n *\n * Displays a checkbox.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/checkbox}\n */\nexport const Checkbox = (props: CheckboxProps) => {\n const { ref: forwardedRef, children, ...restProps } = props;\n\n const recipe = useSlotRecipe({ key: \"nimbusCheckbox\" });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(restProps);\n\n const [styleProps, functionalProps] = extractStyleProps(remainingProps);\n\n return (\n <CheckboxRoot\n ref={forwardedRef}\n data-slot=\"root\"\n {...functionalProps}\n {...recipeProps}\n {...styleProps}\n >\n {({\n isSelected,\n isIndeterminate,\n isInvalid,\n isDisabled,\n isFocused,\n }: CheckboxRenderProps) => {\n const stateProps = {\n \"data-selected\": isSelected,\n \"data-indeterminate\": isIndeterminate,\n \"data-invalid\": isInvalid,\n \"data-disabled\": isDisabled,\n \"data-focus\": isFocused || undefined,\n };\n\n return (\n <>\n <CheckboxIndicator data-slot=\"indicator\" {...stateProps}>\n {isSelected && <Check />}\n {isIndeterminate && <Minus />}\n </CheckboxIndicator>\n\n {children && (\n <CheckboxLabel data-slot=\"label\" {...stateProps}>\n {children}\n </CheckboxLabel>\n )}\n </>\n );\n }}\n </CheckboxRoot>\n );\n};\nCheckbox.displayName = \"Checkbox\";\n"],"x_google_ignoreList":[0,1,2,3],"mappings":";;;;;;;;;;;;;;;;;AAiBA,SAAS,EAA0C,GAAO,GAAO,GAAU;CACvE,IAAI,EAAc,eAAwB,eAA8B,qBAAqC,sBAA+B,eAAuB,cAAuB,eAAwB,eAAuB,cAA6B,qBAAqC,yBAA0B,EAA2C,GAAO,GAAO,CAAQ,GAClY,EAAmB,uBAAoB;CAM3C,OALA,QAA0B;EAGtB,AAAI,EAAS,YAAS,EAAS,QAAQ,gBAAgB,CAAC,CAAC;CAC7D,CAAC,GACM;EACH,YAAgB,EAA2C,GAAgBC,SAAqB,EAGxF,cAAc,MAAI,EAAE,eAAe,EACvC,IAAI,CAAC,CAAC,CAAC;EACC;EACM;EACC;EACP;EACD;EACC;EACA;EACD;EACO;EACC;CACvB;AACJ;;;AChCI,IAAM,oBAA4C,IAAI,QAAQ;;;ACWlE,SAAS,EAA0C,GAAO,GAAO,GAAU;CACvE,IAAM,IAAkBC,EAAuB;EAC3C,YAAY,EAAM,cAAc,EAAM;EACtC,YAAY,EAAM,WAAW,EAAM,KAAK;EACxC,iBAAiB,EAAM,aAAa,SAAS,EAAM,KAAK;EACxD,SAAU,GAAY;GAGlB,AAFI,IAAY,EAAM,SAAS,EAAM,KAAK,IACrC,EAAM,YAAY,EAAM,KAAK,GAC9B,EAAM,YAAU,EAAM,SAAS,CAAU;EACjD;CACJ,CAAC,GACG,EAAQ,SAAY,SAAqB,kBAA+B,mBAAoC,0BAA2B,EAA2C,IAAI,CAAK;CAC/L,IAAqB,EAAM,sBAAsB;CAEjD,IAAI,EAAsB,0BAA2BC,EAA+B;EAChF,GAAG;EACH,OAAO,EAAY;EAEnB,MAAM,KAAA;EACN,oBAAoB;CACxB,CAAC,GAEG,IAAuBC,EAAmBC,CAAiC,GAC3E,UAAuB;EACvB,EAAM,WAAW,EAAM,OAAO,EAAmB,YAAY,IAAqB,EAAiB,OAAO;CAC9G;CACA,EAAsB,CAAgB;CAEtC,IAAI,IAA6B,EAAM,mBAAmB,YAAY,EAAM,qBAAqB,GAC7F,IAAoB,MAAuB,WAAW,EAAM,oBAAoB,GAChF,IAAU,EAA2C;EACrD,GAAG;EACH,YAAY,EAAM,cAAc,EAAM;EACtC,YAAY,EAAM,cAAc,EAAM;EACtC,MAAM,EAAM,QAAQ;EACpB,MAAM,EAAM,QAAQ;EACpB,YAAY,EAAM,cAAc,EAAM;EAClB;GACfE,IAAqC;GACtC,oBAAoB;GACD;GACnB,iBAAiB,EAAM;GACvB,kBAAkB,EAAM;GACxB,iBAAkB,GAAG;IAEjB,AADA,EAAiB,UAAU,GAC3B,EAAiB;GACrB;EACJ;CACJ,GAAG,GAAa,CAAQ;CACxB,OAAO;EACH,GAAG;EACH,YAAY;GACR,GAAG,EAAI;GACP,oBAAoB;IAChB,EAAI,WAAW;IACf,EAAM,YAAY,IAAiB;IACnC;GACJ,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG,KAAK,KAAA;EACnC;CACJ;AACJ;;;ACpCA,IAAM,IAA8DC,gBAAsB,IAAI,GACxF,IAA8DA,gBAAsB,IAAI,GAExF,IAA8DA,gBAAsB,IAAI,GAmExF,IAAkEA,gBAAsB,IAAI;AAmElG,SAAS,EAAsC,GAAO,GAAsB;CACxE,IAAI,EAAE,oBAAoB,MAA+B,EAA+C,CAA0C,KAAK,CAAC,GACpJ,IAAqB,EAAM,sBAAsB,KAA0B,UAC3E,IAAiBC,EAAmB,CAAyC,GAC7E,IAAeC,EAAyBC,QAAwBC,EAAkB,GAAsB,EAAM,aAAa,KAAA,IAA6B,OAAjB,EAAM,QAAe,GAAG,CAC/J,GACA,EAAM,QACV,CAAC,CAAC,GACE,IAAgB;EAChB,GAAO,EAA2C,CAAK;EACvD,UAAU,OAAO,EAAM,YAAa,cAAoB,EAAM;EAC9D,OAAO,EAAM;EACO;CACxB;CAEA,OAAO,CADI,IAAiBC,EAA6B,GAAe,GAAY,CAAQ,IAAQC,EAAoB,GAAmBC,EAAuB,CAAK,GAAG,CAAQ,GAG9K,CACJ;AACJ;AACA,IAAM,IAA8DC,gBAAmB,SAAkB,GAAO,GAAK;CACjH,IAAI,EAAE,UAAU,IAAuB,MAAM,GAAG,MAAe;CAC/D,CAAC,GAAO,KAAW,EAA2C,GAAY,GAAK,CAAyC;CACxH,IAAI,CAAC,GAAM,KAAY,EAAsC,GAAO,CAAoB;CACxF,OAAyBC,gBAAc,cAAc,EAA8C,UAAU,EACzG,OAAO;EACH,GAAG;EACO;EACV,kBAAkB;EAClB,iBAAiB,EAAM;EACvB,YAAY,EAAM;CACtB,EACJ,GAAqBA,gBAAc,cAAc,GAA2C;EACxF,GAAG;EACE;CACT,CAAC,CAAC;AACN,CAAC,GACK,IAA8DD,gBAAmB,SAAwB,GAAO,GAAK;CACvH,IAAI,EAAc,eAAwB,eAAwB,eAAwB,eAAwB,eAAuB,cAAsB,cAAqB,aAA4B,qBAAmC,oBAA6B,kBAAmBP,EAAmB,CAA6C,GAC/V,EAAa,cAA2B,mBAA4B,kBAAmBS,EAAqB,GAC5G,IAAwB,KAAc,GACtC,EAAc,eAAuB,iBAAkBC,EAAiB;EACxE,GAAG;EACH,YAAY;CAChB,CAAC,GACG,IAAkB,EAAyC;EAC3D,GAAG;EACe;EAClB,QAAQ;GACQ;GACZ,iBAAiB,KAAmB;GACzB;GACA;GACA;GACK;GACJ;GACA;GACD;GACX,YAAY,KAAc;EAC9B;CACJ,CAAC,GACG,IAAeC,EAAuB,GAAO,EAC7C,QAAQ,GACZ,CAAC;CAGD,OAFA,OAAO,EAAS,IAChB,OAAO,EAAS,SACSH,gBAAc,cAAkB,EAA2C,OAAO;EACvG,GAAOI,EAAmB,GAAU,GAAY,GAAY,CAAW;EAClE;EACL,MAAM,EAAM,QAAQ,KAAA;EACpB,iBAAiB,KAAc,KAAA;EAC/B,sBAAsB,KAAmB,KAAA;EACzC,gBAAgB,KAAa,KAAA;EAC7B,gBAAgB,KAAa,KAAA;EAC7B,gBAAgB,KAAa,KAAA;EAC7B,sBAAsB,KAAkB,KAAA;EACxC,iBAAiB,KAAc,KAAA;EAC/B,iBAAiB,KAAc,KAAA;EAC/B,gBAAgB,KAAa,KAAA;EAC7B,iBAAiB,KAAc,KAAA;CACnC,GAAqBJ,gBAAc,cAAkBK,GAAwB,EACzE,aAAa,OACjB,GAAqBL,gBAAc,cAAc,SAAS;EACtD,GAAOI,EAAmB,GAAY,CAAU;EAChD,KAAK;CACT,CAAC,CAAC,GAAG,EAAY,QAAQ;AAC7B,CAAC,GCnQK,EAAE,iBAAc,mBAAgB,EAAwB,EAC5D,KAAK,iBACP,CAAC,GAEY,IAGT,EAAsD,GAAY,MAAM,GAE/D,IAGT,EAAqD,QAAQ,OAAO,GAE3D,IAGT,EACF,QACA,WACF,GCXa,KAAY,MAAyB;CAChD,IAAM,EAAE,KAAK,GAAc,aAAU,GAAG,MAAc,GAGhD,CAAC,GAAa,KADL,EAAc,EAAE,KAAK,iBAAiB,CACf,CAAA,CAAO,kBAAkB,CAAS,GAElE,CAAC,GAAY,KAAmB,EAAkB,CAAc;CAEtE,OACE,kBAAC,GAAD;EACE,KAAK;EACL,aAAU;EACV,GAAI;EACJ,GAAI;EACJ,GAAI;aAEF,EACA,eACA,oBACA,cACA,eACA,mBACyB;GACzB,IAAM,IAAa;IACjB,iBAAiB;IACjB,sBAAsB;IACtB,gBAAgB;IAChB,iBAAiB;IACjB,cAAc,KAAa,KAAA;GAC7B;GAEA,OACE,kBAAA,GAAA,EAAA,UAAA,CACE,kBAAC,GAAD;IAAmB,aAAU;IAAY,GAAI;cAA7C,CACG,KAAc,kBAAC,GAAD,CAAQ,CAAA,GACtB,KAAmB,kBAAC,GAAD,CAAQ,CAAA,CACX;OAElB,KACC,kBAAC,GAAD;IAAe,aAAU;IAAQ,GAAI;IAClC;GACY,CAAA,CAEjB,EAAA,CAAA;EAEN;CACY,CAAA;AAElB;AACA,EAAS,cAAc"}
1
+ {"version":3,"file":"checkbox-dSuozQvl.esm.js","names":["$5eYZN$useEffect","$5eYZN$useMemo","$43eCz$useToggleState","$43eCz$useFormValidationState","$43eCz$useRef","$43eCz$DEFAULT_VALIDATION_RESULT","$43eCz$useEffect","$43eCz$privateValidationStateProp","$j1L6B$createContext","$j1L6B$useContext","$j1L6B$useObjectRef","$j1L6B$useMemo","$j1L6B$mergeRefs","$j1L6B$useCheckboxGroupItem","$j1L6B$useCheckbox","$j1L6B$useToggleState","$j1L6B$forwardRef","$j1L6B$react","$j1L6B$useFocusRing","$j1L6B$useHover","$j1L6B$filterDOMProps","$j1L6B$mergeProps","$j1L6B$VisuallyHidden"],"sources":["../../../../node_modules/.pnpm/react-aria@3.50.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria/dist/private/checkbox/useCheckbox.mjs","../../../../node_modules/.pnpm/react-aria@3.50.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria/dist/private/checkbox/utils.mjs","../../../../node_modules/.pnpm/react-aria@3.50.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria/dist/private/checkbox/useCheckboxGroupItem.mjs","../../../../node_modules/.pnpm/react-aria-components@1.19.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/dist/private/Checkbox.mjs","../../src/components/checkbox/checkbox.slots.tsx","../../src/components/checkbox/checkbox.tsx"],"sourcesContent":["import {useToggle as $876b6f32ca5a04c3$export$cbe85ee05b554577} from \"../toggle/useToggle.mjs\";\nimport {mergeProps as $bbaa08b3cd72f041$export$9d1611c77c2fe928} from \"../utils/mergeProps.mjs\";\nimport {useEffect as $5eYZN$useEffect, useMemo as $5eYZN$useMemo} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\nfunction $dde212bea465bd23$export$e375f10ce42261c5(props, state, inputRef) {\n let { labelProps: labelProps, inputProps: inputProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps, isSelected: isSelected, isPressed: isPressed, isDisabled: isDisabled, isReadOnly: isReadOnly, isInvalid: isInvalid, validationErrors: validationErrors, validationDetails: validationDetails } = (0, $876b6f32ca5a04c3$export$cbe85ee05b554577)(props, state, inputRef);\n let { isIndeterminate: isIndeterminate } = props;\n (0, $5eYZN$useEffect)(()=>{\n // indeterminate is a property, but it can only be set via javascript\n // https://css-tricks.com/indeterminate-checkboxes/\n if (inputRef.current) inputRef.current.indeterminate = !!isIndeterminate;\n });\n return {\n labelProps: (0, $bbaa08b3cd72f041$export$9d1611c77c2fe928)(labelProps, (0, $5eYZN$useMemo)(()=>({\n // Prevent label from being focused when mouse down on it.\n // Note, this does not prevent the input from being focused in the `click` event.\n onMouseDown: (e)=>e.preventDefault()\n }), [])),\n inputProps: inputProps,\n descriptionProps: descriptionProps,\n errorMessageProps: errorMessageProps,\n isSelected: isSelected,\n isPressed: isPressed,\n isDisabled: isDisabled,\n isReadOnly: isReadOnly,\n isInvalid: isInvalid,\n validationErrors: validationErrors,\n validationDetails: validationDetails\n };\n}\n\n\nexport {$dde212bea465bd23$export$e375f10ce42261c5 as useCheckbox};\n//# sourceMappingURL=useCheckbox.mjs.map\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ const $0fffd24394d22962$export$ec98120685d4f57d = new WeakMap();\n\n\nexport {$0fffd24394d22962$export$ec98120685d4f57d as checkboxGroupData};\n//# sourceMappingURL=utils.mjs.map\n","import {useCheckbox as $dde212bea465bd23$export$e375f10ce42261c5} from \"./useCheckbox.mjs\";\nimport {checkboxGroupData as $0fffd24394d22962$export$ec98120685d4f57d} from \"./utils.mjs\";\nimport {useFormValidationState as $43eCz$useFormValidationState, DEFAULT_VALIDATION_RESULT as $43eCz$DEFAULT_VALIDATION_RESULT, privateValidationStateProp as $43eCz$privateValidationStateProp} from \"react-stately/private/form/useFormValidationState\";\nimport {useRef as $43eCz$useRef, useEffect as $43eCz$useEffect} from \"react\";\nimport {useToggleState as $43eCz$useToggleState} from \"react-stately/useToggleState\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\nfunction $55cfc34eef47e1ca$export$353b32fc6898d37d(props, state, inputRef) {\n const toggleState = (0, $43eCz$useToggleState)({\n isReadOnly: props.isReadOnly || state.isReadOnly,\n isSelected: state.isSelected(props.value),\n defaultSelected: state.defaultValue.includes(props.value),\n onChange (isSelected) {\n if (isSelected) state.addValue(props.value);\n else state.removeValue(props.value);\n if (props.onChange) props.onChange(isSelected);\n }\n });\n let { name: name, form: form, descriptionId: descriptionId, errorMessageId: errorMessageId, validationBehavior: validationBehavior } = (0, $0fffd24394d22962$export$ec98120685d4f57d).get(state);\n validationBehavior = props.validationBehavior ?? validationBehavior;\n // Local validation for this checkbox.\n let { realtimeValidation: realtimeValidation } = (0, $43eCz$useFormValidationState)({\n ...props,\n value: toggleState.isSelected,\n // Server validation is handled at the group level.\n name: undefined,\n validationBehavior: 'aria'\n });\n // Update the checkbox group state when realtime validation changes.\n let nativeValidation = (0, $43eCz$useRef)((0, $43eCz$DEFAULT_VALIDATION_RESULT));\n let updateValidation = ()=>{\n state.setInvalid(props.value, realtimeValidation.isInvalid ? realtimeValidation : nativeValidation.current);\n };\n (0, $43eCz$useEffect)(updateValidation);\n // Combine group and checkbox level validation.\n let combinedRealtimeValidation = state.realtimeValidation.isInvalid ? state.realtimeValidation : realtimeValidation;\n let displayValidation = validationBehavior === 'native' ? state.displayValidation : combinedRealtimeValidation;\n let res = (0, $dde212bea465bd23$export$e375f10ce42261c5)({\n ...props,\n isReadOnly: props.isReadOnly || state.isReadOnly,\n isDisabled: props.isDisabled || state.isDisabled,\n name: props.name || name,\n form: props.form || form,\n isRequired: props.isRequired ?? state.isRequired,\n validationBehavior: validationBehavior,\n [(0, $43eCz$privateValidationStateProp)]: {\n realtimeValidation: combinedRealtimeValidation,\n displayValidation: displayValidation,\n resetValidation: state.resetValidation,\n commitValidation: state.commitValidation,\n updateValidation (v) {\n nativeValidation.current = v;\n updateValidation();\n }\n }\n }, toggleState, inputRef);\n return {\n ...res,\n inputProps: {\n ...res.inputProps,\n 'aria-describedby': [\n res.inputProps['aria-describedby'],\n state.isInvalid ? errorMessageId : null,\n descriptionId\n ].filter(Boolean).join(' ') || undefined\n }\n };\n}\n\n\nexport {$55cfc34eef47e1ca$export$353b32fc6898d37d as useCheckboxGroupItem};\n//# sourceMappingURL=useCheckboxGroupItem.mjs.map\n","import {dom as $7230ffa83bc0c2cf$export$df3a06d6289f983e, Provider as $7230ffa83bc0c2cf$export$2881499e37b75b9a, removeDataAttributes as $7230ffa83bc0c2cf$export$ef03459518577ad4, useContextProps as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, useRenderProps as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, useSlot as $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8, useSlottedContext as $7230ffa83bc0c2cf$export$fabf2dc03a41866e} from \"./utils.mjs\";\nimport {FieldErrorContext as $1f3c3b1a70cec653$export$ff05c3ac10437e03} from \"./FieldError.mjs\";\nimport {FormContext as $cdaed739b1139372$export$c24727297075ec6a} from \"./Form.mjs\";\nimport {LabelContext as $43a3b93638fe5db9$export$75b6ee27786ba447} from \"./Label.mjs\";\nimport {TextContext as $efe09c6d1c304b50$export$9afb8bc826b033ea} from \"./Text.mjs\";\nimport {useCheckboxGroup as $j1L6B$useCheckboxGroup, useCheckboxGroupItem as $j1L6B$useCheckboxGroupItem} from \"react-aria/useCheckboxGroup\";\nimport {useCheckbox as $j1L6B$useCheckbox} from \"react-aria/useCheckbox\";\nimport {useCheckboxGroupState as $j1L6B$useCheckboxGroupState} from \"react-stately/useCheckboxGroupState\";\nimport {filterDOMProps as $j1L6B$filterDOMProps} from \"react-aria/filterDOMProps\";\nimport {mergeProps as $j1L6B$mergeProps} from \"react-aria/mergeProps\";\nimport {mergeRefs as $j1L6B$mergeRefs} from \"react-aria/mergeRefs\";\nimport $j1L6B$react, {createContext as $j1L6B$createContext, forwardRef as $j1L6B$forwardRef, useContext as $j1L6B$useContext, useMemo as $j1L6B$useMemo} from \"react\";\nimport {useFocusRing as $j1L6B$useFocusRing} from \"react-aria/useFocusRing\";\nimport {useHover as $j1L6B$useHover} from \"react-aria/useHover\";\nimport {useObjectRef as $j1L6B$useObjectRef} from \"react-aria/useObjectRef\";\nimport {useToggleState as $j1L6B$useToggleState} from \"react-stately/useToggleState\";\nimport {VisuallyHidden as $j1L6B$VisuallyHidden} from \"react-aria/VisuallyHidden\";\n\n/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nconst $ed8ccb2e23e76301$export$b085522c77523c51 = /*#__PURE__*/ (0, $j1L6B$createContext)(null);\nconst $ed8ccb2e23e76301$export$c32003b803b6c22e = /*#__PURE__*/ (0, $j1L6B$createContext)(null);\nconst $ed8ccb2e23e76301$export$baf37c4be89255b8 = /*#__PURE__*/ (0, $j1L6B$createContext)(null);\nconst $ed8ccb2e23e76301$export$139c5b8563afc1fc = /*#__PURE__*/ (0, $j1L6B$createContext)(null);\nconst $ed8ccb2e23e76301$export$4aa08d5625cb8ead = /*#__PURE__*/ (0, $j1L6B$forwardRef)(function CheckboxGroup(props, ref) {\n [props, ref] = (0, $7230ffa83bc0c2cf$export$29f1550f4b0d4415)(props, ref, $ed8ccb2e23e76301$export$baf37c4be89255b8);\n let { validationBehavior: formValidationBehavior } = (0, $7230ffa83bc0c2cf$export$fabf2dc03a41866e)((0, $cdaed739b1139372$export$c24727297075ec6a)) || {};\n let validationBehavior = props.validationBehavior ?? formValidationBehavior ?? 'native';\n let state = (0, $j1L6B$useCheckboxGroupState)({\n ...props,\n validationBehavior: validationBehavior\n });\n let [labelRef, label] = (0, $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8)(!props['aria-label'] && !props['aria-labelledby']);\n let { groupProps: groupProps, labelProps: labelProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps, ...validation } = (0, $j1L6B$useCheckboxGroup)({\n ...props,\n label: label,\n validationBehavior: validationBehavior\n }, state);\n let renderProps = (0, $7230ffa83bc0c2cf$export$4d86445c2cf5e3)({\n ...props,\n values: {\n isDisabled: state.isDisabled,\n isReadOnly: state.isReadOnly,\n isRequired: props.isRequired || false,\n isInvalid: state.isInvalid,\n state: state\n },\n defaultClassName: 'react-aria-CheckboxGroup'\n });\n let DOMProps = (0, $j1L6B$filterDOMProps)(props, {\n global: true\n });\n return /*#__PURE__*/ (0, $j1L6B$react).createElement((0, $7230ffa83bc0c2cf$export$df3a06d6289f983e).div, {\n ...(0, $j1L6B$mergeProps)(DOMProps, renderProps, groupProps),\n ref: ref,\n slot: props.slot || undefined,\n \"data-readonly\": state.isReadOnly || undefined,\n \"data-required\": props.isRequired || undefined,\n \"data-invalid\": state.isInvalid || undefined,\n \"data-disabled\": props.isDisabled || undefined\n }, /*#__PURE__*/ (0, $j1L6B$react).createElement((0, $7230ffa83bc0c2cf$export$2881499e37b75b9a), {\n values: [\n [\n $ed8ccb2e23e76301$export$139c5b8563afc1fc,\n state\n ],\n [\n (0, $43a3b93638fe5db9$export$75b6ee27786ba447),\n {\n ...labelProps,\n ref: labelRef,\n elementType: 'span'\n }\n ],\n [\n (0, $efe09c6d1c304b50$export$9afb8bc826b033ea),\n {\n slots: {\n description: descriptionProps,\n errorMessage: errorMessageProps\n }\n }\n ],\n [\n (0, $1f3c3b1a70cec653$export$ff05c3ac10437e03),\n validation\n ]\n ]\n }, renderProps.children));\n});\nconst $ed8ccb2e23e76301$var$InternalCheckboxContext = /*#__PURE__*/ (0, $j1L6B$createContext)(null);\nconst $ed8ccb2e23e76301$export$94195a47b94ed396 = /*#__PURE__*/ (0, $j1L6B$forwardRef)(function Checkbox(props, ref) {\n let { inputRef: userProvidedInputRef = null, ...otherProps } = props;\n [props, ref] = (0, $7230ffa83bc0c2cf$export$29f1550f4b0d4415)(otherProps, ref, $ed8ccb2e23e76301$export$c32003b803b6c22e);\n let groupState = (0, $j1L6B$useContext)($ed8ccb2e23e76301$export$139c5b8563afc1fc);\n let [aria, inputRef] = $ed8ccb2e23e76301$var$useCheckboxAria(props, userProvidedInputRef);\n let { descriptionProps: descriptionProps, errorMessageProps: errorMessageProps, isSelected: isSelected, isDisabled: isDisabled, isReadOnly: isReadOnly, isInvalid: isInvalid, validationDetails: validationDetails, validationErrors: validationErrors } = aria;\n let renderProps = (0, $7230ffa83bc0c2cf$export$4d86445c2cf5e3)({\n ...props,\n defaultClassName: 'react-aria-CheckboxField',\n values: {\n isSelected: isSelected,\n isIndeterminate: props.isIndeterminate || false,\n isDisabled: isDisabled,\n isReadOnly: isReadOnly,\n isInvalid: isInvalid,\n isRequired: props.isRequired || false\n }\n });\n let DOMProps = (0, $j1L6B$filterDOMProps)(props, {\n global: true\n });\n delete DOMProps.id;\n delete DOMProps.onClick;\n return /*#__PURE__*/ (0, $j1L6B$react).createElement((0, $7230ffa83bc0c2cf$export$df3a06d6289f983e).div, {\n ...(0, $j1L6B$mergeProps)(DOMProps, renderProps),\n ref: ref,\n slot: props.slot || undefined,\n \"data-selected\": isSelected || undefined,\n \"data-indeterminate\": props.isIndeterminate || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-readonly\": isReadOnly || undefined,\n \"data-invalid\": isInvalid || undefined,\n \"data-required\": props.isRequired || undefined\n }, /*#__PURE__*/ (0, $j1L6B$react).createElement((0, $7230ffa83bc0c2cf$export$2881499e37b75b9a), {\n values: [\n [\n $ed8ccb2e23e76301$var$InternalCheckboxContext,\n {\n ...aria,\n inputRef: inputRef,\n defaultClassName: 'react-aria-CheckboxButton',\n isIndeterminate: props.isIndeterminate,\n isRequired: props.isRequired\n }\n ],\n [\n (0, $efe09c6d1c304b50$export$9afb8bc826b033ea),\n {\n slots: {\n description: descriptionProps,\n errorMessage: errorMessageProps\n }\n }\n ],\n // In a CheckboxGroup, validation is handled at the group level instead of repeated on each checkbox.\n [\n (0, $1f3c3b1a70cec653$export$ff05c3ac10437e03),\n groupState ? null : {\n isInvalid: isInvalid,\n validationDetails: validationDetails,\n validationErrors: validationErrors\n }\n ]\n ]\n }, renderProps.children));\n});\nfunction $ed8ccb2e23e76301$var$useCheckboxAria(props, userProvidedInputRef) {\n let { validationBehavior: formValidationBehavior } = (0, $7230ffa83bc0c2cf$export$fabf2dc03a41866e)((0, $cdaed739b1139372$export$c24727297075ec6a)) || {};\n let validationBehavior = props.validationBehavior ?? formValidationBehavior ?? 'native';\n let groupState = (0, $j1L6B$useContext)($ed8ccb2e23e76301$export$139c5b8563afc1fc);\n let inputRef = (0, $j1L6B$useObjectRef)((0, $j1L6B$useMemo)(()=>(0, $j1L6B$mergeRefs)(userProvidedInputRef, props.inputRef !== undefined ? props.inputRef : null), [\n userProvidedInputRef,\n props.inputRef\n ]));\n let checkboxProps = {\n ...(0, $7230ffa83bc0c2cf$export$ef03459518577ad4)(props),\n children: typeof props.children === 'function' ? true : props.children,\n value: props.value,\n validationBehavior: validationBehavior\n };\n let aria = groupState ? (0, $j1L6B$useCheckboxGroupItem)(checkboxProps, groupState, inputRef) : (0, $j1L6B$useCheckbox)(checkboxProps, (0, $j1L6B$useToggleState)(props), inputRef);\n return [\n aria,\n inputRef\n ];\n}\nconst $ed8ccb2e23e76301$export$48513f6b9f8ce62d = /*#__PURE__*/ (0, $j1L6B$forwardRef)(function Checkbox(props, ref) {\n let { inputRef: userProvidedInputRef = null, ...otherProps } = props;\n [props, ref] = (0, $7230ffa83bc0c2cf$export$29f1550f4b0d4415)(otherProps, ref, $ed8ccb2e23e76301$export$b085522c77523c51);\n let [aria, inputRef] = $ed8ccb2e23e76301$var$useCheckboxAria(props, userProvidedInputRef);\n return /*#__PURE__*/ (0, $j1L6B$react).createElement($ed8ccb2e23e76301$var$InternalCheckboxContext.Provider, {\n value: {\n ...aria,\n inputRef: inputRef,\n defaultClassName: 'react-aria-Checkbox',\n isIndeterminate: props.isIndeterminate,\n isRequired: props.isRequired\n }\n }, /*#__PURE__*/ (0, $j1L6B$react).createElement($ed8ccb2e23e76301$export$6e7a18c0548f3129, {\n ...props,\n ref: ref\n }));\n});\nconst $ed8ccb2e23e76301$export$6e7a18c0548f3129 = /*#__PURE__*/ (0, $j1L6B$forwardRef)(function CheckboxButton(props, ref) {\n let { labelProps: labelProps, inputProps: inputProps, isSelected: isSelected, isDisabled: isDisabled, isReadOnly: isReadOnly, isPressed: isPressed, isInvalid: isInvalid, inputRef: inputRef, defaultClassName: defaultClassName, isIndeterminate: isIndeterminate, isRequired: isRequired } = (0, $j1L6B$useContext)($ed8ccb2e23e76301$var$InternalCheckboxContext);\n let { isFocused: isFocused, isFocusVisible: isFocusVisible, focusProps: focusProps } = (0, $j1L6B$useFocusRing)();\n let isInteractionDisabled = isDisabled || isReadOnly;\n let { hoverProps: hoverProps, isHovered: isHovered } = (0, $j1L6B$useHover)({\n ...props,\n isDisabled: isInteractionDisabled\n });\n let renderProps = (0, $7230ffa83bc0c2cf$export$4d86445c2cf5e3)({\n ...props,\n defaultClassName: defaultClassName,\n values: {\n isSelected: isSelected,\n isIndeterminate: isIndeterminate || false,\n isPressed: isPressed,\n isHovered: isHovered,\n isFocused: isFocused,\n isFocusVisible: isFocusVisible,\n isDisabled: isDisabled,\n isReadOnly: isReadOnly,\n isInvalid: isInvalid,\n isRequired: isRequired || false\n }\n });\n let DOMProps = (0, $j1L6B$filterDOMProps)(props, {\n global: true\n });\n delete DOMProps.id;\n delete DOMProps.onClick;\n return /*#__PURE__*/ (0, $j1L6B$react).createElement((0, $7230ffa83bc0c2cf$export$df3a06d6289f983e).label, {\n ...(0, $j1L6B$mergeProps)(DOMProps, labelProps, hoverProps, renderProps),\n ref: ref,\n slot: props.slot || undefined,\n \"data-selected\": isSelected || undefined,\n \"data-indeterminate\": isIndeterminate || undefined,\n \"data-pressed\": isPressed || undefined,\n \"data-hovered\": isHovered || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-readonly\": isReadOnly || undefined,\n \"data-invalid\": isInvalid || undefined,\n \"data-required\": isRequired || undefined\n }, /*#__PURE__*/ (0, $j1L6B$react).createElement((0, $j1L6B$VisuallyHidden), {\n elementType: \"span\"\n }, /*#__PURE__*/ (0, $j1L6B$react).createElement(\"input\", {\n ...(0, $j1L6B$mergeProps)(inputProps, focusProps),\n ref: inputRef\n })), renderProps.children);\n});\n\n\nexport {$ed8ccb2e23e76301$export$b085522c77523c51 as CheckboxContext, $ed8ccb2e23e76301$export$c32003b803b6c22e as CheckboxFieldContext, $ed8ccb2e23e76301$export$baf37c4be89255b8 as CheckboxGroupContext, $ed8ccb2e23e76301$export$139c5b8563afc1fc as CheckboxGroupStateContext, $ed8ccb2e23e76301$export$4aa08d5625cb8ead as CheckboxGroup, $ed8ccb2e23e76301$export$94195a47b94ed396 as CheckboxField, $ed8ccb2e23e76301$export$48513f6b9f8ce62d as Checkbox, $ed8ccb2e23e76301$export$6e7a18c0548f3129 as CheckboxButton};\n//# sourceMappingURL=Checkbox.mjs.map\n","import { createSlotRecipeContext } from \"@chakra-ui/react/styled-system\";\nimport { Checkbox as RaCheckbox } from \"react-aria-components\";\nimport type { SlotComponent } from \"@/type-utils/slot-types\";\nimport type {\n CheckboxRootSlotProps,\n CheckboxIndicatorSlotProps,\n CheckboxLabelSlotProps,\n} from \"./checkbox.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"nimbusCheckbox\",\n});\n\nexport const CheckboxRoot: SlotComponent<\n HTMLLabelElement,\n CheckboxRootSlotProps\n> = withProvider<HTMLLabelElement, CheckboxRootSlotProps>(RaCheckbox, \"root\");\n\nexport const CheckboxLabel: SlotComponent<\n HTMLSpanElement,\n CheckboxLabelSlotProps\n> = withContext<HTMLSpanElement, CheckboxLabelSlotProps>(\"span\", \"label\");\n\nexport const CheckboxIndicator: SlotComponent<\n HTMLSpanElement,\n CheckboxIndicatorSlotProps\n> = withContext<HTMLSpanElement, CheckboxIndicatorSlotProps>(\n \"span\",\n \"indicator\"\n);\n","import { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { Check, Remove as Minus } from \"@commercetools/nimbus-icons\";\nimport { extractStyleProps } from \"@/utils\";\nimport type { CheckboxProps } from \"./checkbox.types\";\nimport type { CheckboxRenderProps } from \"react-aria-components\";\nimport {\n CheckboxIndicator,\n CheckboxRoot,\n CheckboxLabel,\n} from \"./checkbox.slots\";\n\n/**\n * # Checkbox\n *\n * Displays a checkbox.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/checkbox}\n */\nexport const Checkbox = (props: CheckboxProps) => {\n const { ref: forwardedRef, children, ...restProps } = props;\n\n const recipe = useSlotRecipe({ key: \"nimbusCheckbox\" });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(restProps);\n\n const [styleProps, functionalProps] = extractStyleProps(remainingProps);\n\n return (\n <CheckboxRoot\n ref={forwardedRef}\n data-slot=\"root\"\n {...functionalProps}\n {...recipeProps}\n {...styleProps}\n >\n {({\n isSelected,\n isIndeterminate,\n isInvalid,\n isDisabled,\n isFocused,\n }: CheckboxRenderProps) => {\n const stateProps = {\n \"data-selected\": isSelected,\n \"data-indeterminate\": isIndeterminate,\n \"data-invalid\": isInvalid,\n \"data-disabled\": isDisabled,\n \"data-focus\": isFocused || undefined,\n };\n\n return (\n <>\n <CheckboxIndicator data-slot=\"indicator\" {...stateProps}>\n {isSelected && <Check />}\n {isIndeterminate && <Minus />}\n </CheckboxIndicator>\n\n {children && (\n <CheckboxLabel data-slot=\"label\" {...stateProps}>\n {children}\n </CheckboxLabel>\n )}\n </>\n );\n }}\n </CheckboxRoot>\n );\n};\nCheckbox.displayName = \"Checkbox\";\n"],"x_google_ignoreList":[0,1,2,3],"mappings":";;;;;;;;;;;;;;;;;AAiBA,SAAS,EAA0C,GAAO,GAAO,GAAU;CACvE,IAAI,EAAc,eAAwB,eAA8B,qBAAqC,sBAA+B,eAAuB,cAAuB,eAAwB,eAAuB,cAA6B,qBAAqC,yBAA0B,EAA2C,GAAO,GAAO,CAAQ,GAClY,EAAmB,uBAAoB;CAM3C,OALA,QAA0B;EAGtB,AAAI,EAAS,YAAS,EAAS,QAAQ,gBAAgB,CAAC,CAAC;CAC7D,CAAC,GACM;EACH,YAAgB,EAA2C,GAAgBC,SAAqB,EAGxF,cAAc,MAAI,EAAE,eAAe,EACvC,IAAI,CAAC,CAAC,CAAC;EACC;EACM;EACC;EACP;EACD;EACC;EACA;EACD;EACO;EACC;CACvB;AACJ;;;AChCI,IAAM,oBAA4C,IAAI,QAAQ;;;ACWlE,SAAS,EAA0C,GAAO,GAAO,GAAU;CACvE,IAAM,IAAkBC,EAAuB;EAC3C,YAAY,EAAM,cAAc,EAAM;EACtC,YAAY,EAAM,WAAW,EAAM,KAAK;EACxC,iBAAiB,EAAM,aAAa,SAAS,EAAM,KAAK;EACxD,SAAU,GAAY;GAGlB,AAFI,IAAY,EAAM,SAAS,EAAM,KAAK,IACrC,EAAM,YAAY,EAAM,KAAK,GAC9B,EAAM,YAAU,EAAM,SAAS,CAAU;EACjD;CACJ,CAAC,GACG,EAAQ,SAAY,SAAqB,kBAA+B,mBAAoC,0BAA2B,EAA2C,IAAI,CAAK;CAC/L,IAAqB,EAAM,sBAAsB;CAEjD,IAAI,EAAsB,0BAA2BC,EAA+B;EAChF,GAAG;EACH,OAAO,EAAY;EAEnB,MAAM,KAAA;EACN,oBAAoB;CACxB,CAAC,GAEG,IAAuBC,EAAmBC,CAAiC,GAC3E,UAAuB;EACvB,EAAM,WAAW,EAAM,OAAO,EAAmB,YAAY,IAAqB,EAAiB,OAAO;CAC9G;CACA,EAAsB,CAAgB;CAEtC,IAAI,IAA6B,EAAM,mBAAmB,YAAY,EAAM,qBAAqB,GAC7F,IAAoB,MAAuB,WAAW,EAAM,oBAAoB,GAChF,IAAU,EAA2C;EACrD,GAAG;EACH,YAAY,EAAM,cAAc,EAAM;EACtC,YAAY,EAAM,cAAc,EAAM;EACtC,MAAM,EAAM,QAAQ;EACpB,MAAM,EAAM,QAAQ;EACpB,YAAY,EAAM,cAAc,EAAM;EAClB;GACfE,IAAqC;GACtC,oBAAoB;GACD;GACnB,iBAAiB,EAAM;GACvB,kBAAkB,EAAM;GACxB,iBAAkB,GAAG;IAEjB,AADA,EAAiB,UAAU,GAC3B,EAAiB;GACrB;EACJ;CACJ,GAAG,GAAa,CAAQ;CACxB,OAAO;EACH,GAAG;EACH,YAAY;GACR,GAAG,EAAI;GACP,oBAAoB;IAChB,EAAI,WAAW;IACf,EAAM,YAAY,IAAiB;IACnC;GACJ,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG,KAAK,KAAA;EACnC;CACJ;AACJ;;;ACpCA,IAAM,IAA8DC,gBAAsB,IAAI,GACxF,IAA8DA,gBAAsB,IAAI,GAExF,IAA8DA,gBAAsB,IAAI,GAmExF,IAAkEA,gBAAsB,IAAI;AAmElG,SAAS,EAAsC,GAAO,GAAsB;CACxE,IAAI,EAAE,oBAAoB,MAA+B,EAA+C,CAA0C,KAAK,CAAC,GACpJ,IAAqB,EAAM,sBAAsB,KAA0B,UAC3E,IAAiBC,EAAmB,CAAyC,GAC7E,IAAeC,EAAyBC,QAAwBC,EAAkB,GAAsB,EAAM,aAAa,KAAA,IAA6B,OAAjB,EAAM,QAAe,GAAG,CAC/J,GACA,EAAM,QACV,CAAC,CAAC,GACE,IAAgB;EAChB,GAAO,EAA2C,CAAK;EACvD,UAAU,OAAO,EAAM,YAAa,cAAoB,EAAM;EAC9D,OAAO,EAAM;EACO;CACxB;CAEA,OAAO,CADI,IAAiBC,EAA6B,GAAe,GAAY,CAAQ,IAAQC,EAAoB,GAAmBC,EAAuB,CAAK,GAAG,CAAQ,GAG9K,CACJ;AACJ;AACA,IAAM,IAA8DC,gBAAmB,SAAkB,GAAO,GAAK;CACjH,IAAI,EAAE,UAAU,IAAuB,MAAM,GAAG,MAAe;CAC/D,CAAC,GAAO,KAAW,EAA2C,GAAY,GAAK,CAAyC;CACxH,IAAI,CAAC,GAAM,KAAY,EAAsC,GAAO,CAAoB;CACxF,OAAyBC,gBAAc,cAAc,EAA8C,UAAU,EACzG,OAAO;EACH,GAAG;EACO;EACV,kBAAkB;EAClB,iBAAiB,EAAM;EACvB,YAAY,EAAM;CACtB,EACJ,GAAqBA,gBAAc,cAAc,GAA2C;EACxF,GAAG;EACE;CACT,CAAC,CAAC;AACN,CAAC,GACK,IAA8DD,gBAAmB,SAAwB,GAAO,GAAK;CACvH,IAAI,EAAc,eAAwB,eAAwB,eAAwB,eAAwB,eAAuB,cAAsB,cAAqB,aAA4B,qBAAmC,oBAA6B,kBAAmBP,EAAmB,CAA6C,GAC/V,EAAa,cAA2B,mBAA4B,kBAAmBS,EAAqB,GAC5G,IAAwB,KAAc,GACtC,EAAc,eAAuB,iBAAkBC,EAAiB;EACxE,GAAG;EACH,YAAY;CAChB,CAAC,GACG,IAAkB,EAAyC;EAC3D,GAAG;EACe;EAClB,QAAQ;GACQ;GACZ,iBAAiB,KAAmB;GACzB;GACA;GACA;GACK;GACJ;GACA;GACD;GACX,YAAY,KAAc;EAC9B;CACJ,CAAC,GACG,IAAeC,EAAuB,GAAO,EAC7C,QAAQ,GACZ,CAAC;CAGD,OAFA,OAAO,EAAS,IAChB,OAAO,EAAS,SACSH,gBAAc,cAAkB,EAA2C,OAAO;EACvG,GAAOI,EAAmB,GAAU,GAAY,GAAY,CAAW;EAClE;EACL,MAAM,EAAM,QAAQ,KAAA;EACpB,iBAAiB,KAAc,KAAA;EAC/B,sBAAsB,KAAmB,KAAA;EACzC,gBAAgB,KAAa,KAAA;EAC7B,gBAAgB,KAAa,KAAA;EAC7B,gBAAgB,KAAa,KAAA;EAC7B,sBAAsB,KAAkB,KAAA;EACxC,iBAAiB,KAAc,KAAA;EAC/B,iBAAiB,KAAc,KAAA;EAC/B,gBAAgB,KAAa,KAAA;EAC7B,iBAAiB,KAAc,KAAA;CACnC,GAAqBJ,gBAAc,cAAkBK,GAAwB,EACzE,aAAa,OACjB,GAAqBL,gBAAc,cAAc,SAAS;EACtD,GAAOI,EAAmB,GAAY,CAAU;EAChD,KAAK;CACT,CAAC,CAAC,GAAG,EAAY,QAAQ;AAC7B,CAAC,GCnQK,EAAE,iBAAc,mBAAgB,EAAwB,EAC5D,KAAK,iBACP,CAAC,GAEY,IAGT,EAAsD,GAAY,MAAM,GAE/D,IAGT,EAAqD,QAAQ,OAAO,GAE3D,IAGT,EACF,QACA,WACF,GCXa,KAAY,MAAyB;CAChD,IAAM,EAAE,KAAK,GAAc,aAAU,GAAG,MAAc,GAGhD,CAAC,GAAa,KADL,EAAc,EAAE,KAAK,iBAAiB,CACf,CAAA,CAAO,kBAAkB,CAAS,GAElE,CAAC,GAAY,KAAmB,EAAkB,CAAc;CAEtE,OACE,kBAAC,GAAD;EACE,KAAK;EACL,aAAU;EACV,GAAI;EACJ,GAAI;EACJ,GAAI;aAEF,EACA,eACA,oBACA,cACA,eACA,mBACyB;GACzB,IAAM,IAAa;IACjB,iBAAiB;IACjB,sBAAsB;IACtB,gBAAgB;IAChB,iBAAiB;IACjB,cAAc,KAAa,KAAA;GAC7B;GAEA,OACE,kBAAA,GAAA,EAAA,UAAA,CACE,kBAAC,GAAD;IAAmB,aAAU;IAAY,GAAI;cAA7C,CACG,KAAc,kBAAC,GAAD,CAAQ,CAAA,GACtB,KAAmB,kBAAC,GAAD,CAAQ,CAAA,CACX;OAElB,KACC,kBAAC,GAAD;IAAe,aAAU;IAAQ,GAAI;IAClC;GACY,CAAA,CAEjB,EAAA,CAAA;EAEN;CACY,CAAA;AAElB;AACA,EAAS,cAAc"}
@@ -1,2 +1,2 @@
1
- const e=require("./mergeProps-B4zz6EqI.cjs.js"),t=require("./useObjectRef-B_VeQHvx.cjs.js"),n=require("./useDisclosureState-De70oqxM.cjs.js"),r=require("./Button-z5JjDtpy.cjs.js"),i=require("./extract-style-props-CA1O0IF2.cjs.js"),a=require("./merge-refs-DjTl2ATo.cjs.js");let o=require("react"),s=require("react/jsx-runtime"),c=require("@chakra-ui/react/styled-system"),l=require("@chakra-ui/react/presence");var u=(0,o.createContext)(void 0);function d(){let e=(0,o.useContext)(u);if(e===void 0)throw Error(`useCollapsibleMotionContext must be used within a CollapsibleMotion.Root component`);return e}var{withProvider:f,withContext:p}=(0,c.createSlotRecipeContext)({key:`nimbusCollapsibleMotion`}),m=f(`div`,`root`),h=p(`button`,`trigger`),g=p(`div`,`content`),_=(0,o.forwardRef)(({children:e,defaultExpanded:t=!1,isExpanded:r,onExpandedChange:i,isDisabled:a=!1,...c},l)=>{let d=n.t({defaultExpanded:t,isExpanded:r,onExpandedChange:i}),f=(0,o.useRef)(null),{buttonProps:p,panelProps:h}=n.n({isDisabled:a},d,f),g={isDisabled:a,isExpanded:d.isExpanded,buttonProps:p,panelProps:h,panelRef:f};return(0,s.jsx)(u.Provider,{value:g,children:(0,s.jsx)(m,{ref:l,...c,children:e})})});_.displayName=`CollapsibleMotion.Root`;var v=(0,o.forwardRef)(({children:t,asChild:n,...a},o)=>{let{buttonProps:l,isDisabled:u}=d(),f=e.t(a,l,{disabled:u});if(n)return(0,s.jsx)(r.t.Provider,{value:{isDisabled:u},children:(0,s.jsx)(c.chakra.button,{asChild:!0,...f,children:t})});let[p,m]=i.t(f);return(0,s.jsx)(h,{ref:o,...p,asChild:!0,children:(0,s.jsx)(r.n,{...m,children:t})})});v.displayName=`CollapsibleMotion.Trigger`;var y=(0,o.forwardRef)(({children:e,...n},r)=>{let{panelProps:i,isExpanded:c}=d();return(0,s.jsx)(g,{ref:t.t(a.t((0,o.useRef)(null),r)),...n,...i,asChild:!0,children:(0,s.jsx)(l.Presence,{present:c,animationName:{_open:`slide-from-top, fade-in`,_closed:`slide-to-top, fade-out`},animationDuration:`fast`,children:e})})});y.displayName=`CollapsibleMotion.Content`;var b={Root:_,Trigger:v,Content:y};Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return b}});
2
- //# sourceMappingURL=collapsible-motion-C5-B_qO-.cjs.js.map
1
+ const e=require("./mergeProps-B4zz6EqI.cjs.js"),t=require("./useObjectRef-B_VeQHvx.cjs.js"),n=require("./useDisclosureState-De70oqxM.cjs.js"),r=require("./Button-CZDjIKB1.cjs.js"),i=require("./extract-style-props-WNdpT-ME.cjs.js"),a=require("./merge-refs-DjTl2ATo.cjs.js");let o=require("react"),s=require("react/jsx-runtime"),c=require("@chakra-ui/react/styled-system"),l=require("@chakra-ui/react/presence");var u=(0,o.createContext)(void 0);function d(){let e=(0,o.useContext)(u);if(e===void 0)throw Error(`useCollapsibleMotionContext must be used within a CollapsibleMotion.Root component`);return e}var{withProvider:f,withContext:p}=(0,c.createSlotRecipeContext)({key:`nimbusCollapsibleMotion`}),m=f(`div`,`root`),h=p(`button`,`trigger`),g=p(`div`,`content`),_=(0,o.forwardRef)(({children:e,defaultExpanded:t=!1,isExpanded:r,onExpandedChange:i,isDisabled:a=!1,...c},l)=>{let d=n.t({defaultExpanded:t,isExpanded:r,onExpandedChange:i}),f=(0,o.useRef)(null),{buttonProps:p,panelProps:h}=n.n({isDisabled:a},d,f),g={isDisabled:a,isExpanded:d.isExpanded,buttonProps:p,panelProps:h,panelRef:f};return(0,s.jsx)(u.Provider,{value:g,children:(0,s.jsx)(m,{ref:l,...c,children:e})})});_.displayName=`CollapsibleMotion.Root`;var v=(0,o.forwardRef)(({children:t,asChild:n,...a},o)=>{let{buttonProps:l,isDisabled:u}=d(),f=e.t(a,l,{disabled:u});if(n)return(0,s.jsx)(r.t.Provider,{value:{isDisabled:u},children:(0,s.jsx)(c.chakra.button,{asChild:!0,...f,children:t})});let[p,m]=i.t(f);return(0,s.jsx)(h,{ref:o,...p,asChild:!0,children:(0,s.jsx)(r.n,{...m,children:t})})});v.displayName=`CollapsibleMotion.Trigger`;var y=(0,o.forwardRef)(({children:e,...n},r)=>{let{panelProps:i,isExpanded:c}=d();return(0,s.jsx)(g,{ref:t.t(a.t((0,o.useRef)(null),r)),...n,...i,asChild:!0,children:(0,s.jsx)(l.Presence,{present:c,animationName:{_open:`slide-from-top, fade-in`,_closed:`slide-to-top, fade-out`},animationDuration:`fast`,children:e})})});y.displayName=`CollapsibleMotion.Content`;var b={Root:_,Trigger:v,Content:y};Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return b}});
2
+ //# sourceMappingURL=collapsible-motion-BW3mF74f.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"collapsible-motion-C5-B_qO-.cjs.js","names":[],"sources":["../../src/components/collapsible-motion/components/collapsible-motion-context.tsx","../../src/components/collapsible-motion/collapsible-motion.slots.tsx","../../src/components/collapsible-motion/components/collapsible-motion-root.tsx","../../src/components/collapsible-motion/components/collapsible-motion-trigger.tsx","../../src/components/collapsible-motion/components/collapsible-motion-content.tsx","../../src/components/collapsible-motion/collapsible-motion.tsx"],"sourcesContent":["import { createContext, useContext } from \"react\";\nimport type { CollapsibleMotionContextValue } from \"../collapsible-motion.types\";\n\n/**\n * React Context for sharing CollapsibleMotion state between compound components\n */\nexport const CollapsibleMotionContext = createContext<\n CollapsibleMotionContextValue | undefined\n>(undefined);\n\n/**\n * Custom hook to consume CollapsibleMotion context\n */\nexport function useCollapsibleMotionContext(): CollapsibleMotionContextValue {\n const context = useContext(CollapsibleMotionContext);\n\n if (context === undefined) {\n throw new Error(\n \"useCollapsibleMotionContext must be used within a CollapsibleMotion.Root component\"\n );\n }\n\n return context;\n}\n","import {\n createSlotRecipeContext,\n type HTMLChakraProps,\n} from \"@chakra-ui/react/styled-system\";\nimport type { SlotComponent } from \"@/type-utils\";\nimport type { CollapsibleMotionRootSlotProps } from \"./collapsible-motion.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"nimbusCollapsibleMotion\",\n});\n\nexport const CollapsibleMotionRootSlot: SlotComponent<\n HTMLDivElement,\n CollapsibleMotionRootSlotProps\n> = withProvider<HTMLDivElement, CollapsibleMotionRootSlotProps>(\"div\", \"root\");\n\nexport const CollapsibleMotionTriggerSlot = withContext<\n HTMLButtonElement,\n HTMLChakraProps<\"button\">\n>(\"button\", \"trigger\");\n\nexport const CollapsibleMotionContentSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"content\");\n","import { useRef, forwardRef } from \"react\";\nimport { useDisclosure } from \"react-aria\";\nimport { useDisclosureState } from \"react-stately\";\nimport { CollapsibleMotionContext } from \"./collapsible-motion-context\";\nimport { CollapsibleMotionRootSlot } from \"../collapsible-motion.slots\";\nimport type { CollapsibleMotionRootProps } from \"../collapsible-motion.types\";\n\n/**\n * CollapsibleMotion.Root - The root container component that manages state and provides context\n *\n * This component contains all the state management logic and provides context to\n * CollapsibleMotion.Trigger and CollapsibleMotion.Content components.\n *\n * @supportsStyleProps\n */\nexport const CollapsibleMotionRoot: React.ForwardRefExoticComponent<\n CollapsibleMotionRootProps & React.RefAttributes<HTMLDivElement>\n> = forwardRef<HTMLDivElement, CollapsibleMotionRootProps>(\n (\n {\n children,\n defaultExpanded = false,\n isExpanded: controlledExpanded,\n onExpandedChange,\n isDisabled = false,\n ...props\n },\n forwardedRef\n ) => {\n // Use React Aria's disclosure state management\n const disclosureState = useDisclosureState({\n defaultExpanded,\n isExpanded: controlledExpanded,\n onExpandedChange,\n });\n\n const panelRef = useRef<HTMLDivElement>(null);\n\n // Use React Aria's disclosure hook for ARIA props\n const { buttonProps, panelProps } = useDisclosure(\n { isDisabled },\n disclosureState,\n panelRef\n );\n\n // Context value to provide to child components\n const contextValue = {\n isDisabled,\n isExpanded: disclosureState.isExpanded,\n buttonProps,\n panelProps,\n panelRef,\n };\n\n return (\n <CollapsibleMotionContext.Provider value={contextValue}>\n <CollapsibleMotionRootSlot ref={forwardedRef} {...props}>\n {children}\n </CollapsibleMotionRootSlot>\n </CollapsibleMotionContext.Provider>\n );\n }\n);\n\nCollapsibleMotionRoot.displayName = \"CollapsibleMotion.Root\";\n","import { forwardRef } from \"react\";\nimport { mergeProps } from \"react-aria\";\nimport { useCollapsibleMotionContext } from \"./collapsible-motion-context\";\nimport { CollapsibleMotionTriggerSlot } from \"../collapsible-motion.slots\";\nimport type { CollapsibleMotionTriggerProps } from \"../collapsible-motion.types\";\nimport { Button as RaButton, ButtonContext } from \"react-aria-components\";\nimport { chakra } from \"@chakra-ui/react/styled-system\";\nimport { extractStyleProps } from \"@/utils\";\n/**\n * CollapsibleMotion.Trigger - The trigger button that toggles the collapsible content\n *\n * This component renders a button with proper ARIA attributes for accessibility.\n * It automatically handles the toggle functionality when clicked.\n *\n * @supportsStyleProps\n */\nexport const CollapsibleMotionTrigger = forwardRef<\n HTMLButtonElement,\n CollapsibleMotionTriggerProps\n>(({ children, asChild, ...props }, forwardedRef) => {\n const { buttonProps, isDisabled } = useCollapsibleMotionContext();\n\n // Use mergeProps to properly compose event handlers like React Aria does\n const componentProps = mergeProps(props, buttonProps, {\n disabled: isDisabled,\n });\n\n // If asChild is true, wrap children directly in a button with asChild.\n // ButtonContext.Provider passes isDisabled through React Aria's context so\n // Nimbus Button's useButton receives it (the native `disabled` HTML attribute\n // alone is overwritten by useButton's output in the JSX spread).\n if (asChild) {\n return (\n <ButtonContext.Provider value={{ isDisabled }}>\n <chakra.button asChild {...componentProps}>\n {children}\n </chakra.button>\n </ButtonContext.Provider>\n );\n }\n\n const [styleProps, restProps] = extractStyleProps(componentProps);\n\n // Otherwise, wrap with both CollapsibleMotionTriggerSlot and RaButton\n // Only pass React Aria compatible props to avoid type conflicts\n return (\n <CollapsibleMotionTriggerSlot ref={forwardedRef} {...styleProps} asChild>\n <RaButton {...restProps}>{children}</RaButton>\n </CollapsibleMotionTriggerSlot>\n );\n});\n\nCollapsibleMotionTrigger.displayName = \"CollapsibleMotion.Trigger\";\n","import { forwardRef, useRef } from \"react\";\nimport { useObjectRef } from \"react-aria\";\nimport { Presence } from \"@chakra-ui/react/presence\";\nimport { mergeRefs } from \"@/utils\";\nimport { useCollapsibleMotionContext } from \"./collapsible-motion-context\";\nimport { CollapsibleMotionContentSlot } from \"../collapsible-motion.slots\";\nimport type { CollapsibleMotionContentProps } from \"../collapsible-motion.types\";\n\n/**\n * CollapsibleMotion.Content - The collapsible content container\n *\n * This component renders the content that will expand and collapse.\n * It handles accessibility attributes through React Aria.\n *\n * @supportsStyleProps\n */\nexport const CollapsibleMotionContent = forwardRef<\n HTMLDivElement,\n CollapsibleMotionContentProps\n>(({ children, ...props }, forwardedRef) => {\n const { panelProps, isExpanded } = useCollapsibleMotionContext();\n\n // Create a local ref and merge with forwardedRef (for user)\n const localRef = useRef<HTMLDivElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n return (\n <CollapsibleMotionContentSlot ref={ref} {...props} {...panelProps} asChild>\n <Presence\n present={isExpanded}\n animationName={{\n _open: \"slide-from-top, fade-in\",\n _closed: \"slide-to-top, fade-out\",\n }}\n animationDuration=\"fast\"\n >\n {children}\n </Presence>\n </CollapsibleMotionContentSlot>\n );\n});\n\nCollapsibleMotionContent.displayName = \"CollapsibleMotion.Content\";\n","import {\n CollapsibleMotionRoot,\n CollapsibleMotionTrigger,\n CollapsibleMotionContent,\n} from \"./components\";\n\n// Exports for internal use by react-docgen\nexport {\n CollapsibleMotionRoot as _CollapsibleMotionRoot,\n CollapsibleMotionTrigger as _CollapsibleMotionTrigger,\n CollapsibleMotionContent as _CollapsibleMotionContent,\n};\n\ntype CollapsibleMotionNamespace = {\n Root: typeof CollapsibleMotionRoot;\n Trigger: typeof CollapsibleMotionTrigger;\n Content: typeof CollapsibleMotionContent;\n};\n\nexport const CollapsibleMotion: CollapsibleMotionNamespace = {\n /**\n * # CollapsibleMotion.Root\n *\n * The root container component that manages state and provides context.\n * Handles both controlled and uncontrolled modes for expanded/collapsed state.\n *\n * @example\n * ```tsx\n * <CollapsibleMotion.Root defaultExpanded={false}>\n * <CollapsibleMotion.Trigger>Toggle</CollapsibleMotion.Trigger>\n * <CollapsibleMotion.Content>Content here</CollapsibleMotion.Content>\n * </CollapsibleMotion.Root>\n * ```\n */\n Root: CollapsibleMotionRoot,\n\n /**\n * # CollapsibleMotion.Trigger\n *\n * The trigger button that toggles the collapsible content.\n * Handles keyboard and mouse interactions with proper ARIA attributes.\n *\n * @example\n * ```tsx\n * <CollapsibleMotion.Trigger>\n * Click to expand\n * </CollapsibleMotion.Trigger>\n * ```\n */\n Trigger: CollapsibleMotionTrigger,\n\n /**\n * # CollapsibleMotion.Content\n *\n * The collapsible content container with smooth expand/collapse animations.\n * Automatically handles ARIA attributes for accessibility.\n *\n * @example\n * ```tsx\n * <CollapsibleMotion.Content>\n * <Text>Your collapsible content</Text>\n * </CollapsibleMotion.Content>\n * ```\n */\n Content: CollapsibleMotionContent,\n};\n"],"mappings":"0ZAMA,IAAa,GAAA,EAAA,EAAA,cAAA,CAEX,IAAA,EAAS,EAKX,SAAgB,GAA6D,CAC3E,IAAM,GAAA,EAAA,EAAA,WAAA,CAAqB,CAAwB,EAEnD,GAAI,IAAY,IAAA,GACd,MAAU,MACR,oFACF,EAGF,OAAO,CACT,CChBA,GAAM,CAAE,eAAc,gBAAA,EAAA,EAAA,wBAAA,CAAwC,CAC5D,IAAK,yBACP,CAAC,EAEY,EAGT,EAA6D,MAAO,MAAM,EAEjE,EAA+B,EAG1C,SAAU,SAAS,EAER,EAA+B,EAG1C,MAAO,SAAS,ECTL,GAAA,EAAA,EAAA,WAAA,EAIT,CACE,WACA,kBAAkB,GAClB,WAAY,EACZ,mBACA,aAAa,GACb,GAAG,GAEL,IACG,CAEH,IAAM,EAAkB,EAAA,EAAmB,CACzC,kBACA,WAAY,EACZ,kBACF,CAAC,EAEK,GAAA,EAAA,EAAA,OAAA,CAAkC,IAAI,EAGtC,CAAE,cAAa,cAAe,EAAA,EAClC,CAAE,YAAW,EACb,EACA,CACF,EAGM,EAAe,CACnB,aACA,WAAY,EAAgB,WAC5B,cACA,aACA,UACF,EAEA,OACE,EAAA,EAAA,IAAA,CAAC,EAAyB,SAA1B,CAAmC,MAAO,YACxC,EAAA,EAAA,IAAA,CAAC,EAAD,CAA2B,IAAK,EAAc,GAAI,EAC/C,UACwB,CAAA,CACM,CAAA,CAEvC,CACF,EAEA,EAAsB,YAAc,yBChDpC,IAAa,GAAA,EAAA,EAAA,WAAA,EAGV,CAAE,WAAU,UAAS,GAAG,GAAS,IAAiB,CACnD,GAAM,CAAE,cAAa,cAAe,EAA4B,EAG1D,EAAiB,EAAA,EAAW,EAAO,EAAa,CACpD,SAAU,CACZ,CAAC,EAMD,GAAI,EACF,OACE,EAAA,EAAA,IAAA,CAAC,EAAA,EAAc,SAAf,CAAwB,MAAO,CAAE,YAAW,YAC1C,EAAA,EAAA,IAAA,CAAC,EAAA,OAAO,OAAR,CAAe,QAAA,GAAQ,GAAI,EACxB,UACY,CAAA,CACO,CAAA,EAI5B,GAAM,CAAC,EAAY,GAAa,EAAA,EAAkB,CAAc,EAIhE,OACE,EAAA,EAAA,IAAA,CAAC,EAAD,CAA8B,IAAK,EAAc,GAAI,EAAY,QAAA,aAC/D,EAAA,EAAA,IAAA,CAAC,EAAA,EAAD,CAAU,GAAI,EAAY,UAAmB,CAAA,CACjB,CAAA,CAElC,CAAC,EAED,EAAyB,YAAc,4BCpCvC,IAAa,GAAA,EAAA,EAAA,WAAA,EAGV,CAAE,WAAU,GAAG,GAAS,IAAiB,CAC1C,GAAM,CAAE,aAAY,cAAe,EAA4B,EAM/D,OACE,EAAA,EAAA,IAAA,CAAC,EAAD,CAAmC,IAHzB,EAAA,EAAa,EAAA,GAAA,EAAA,EAAA,OAAA,CADe,IACL,EAAU,CAAY,CAGpB,EAAK,GAAI,EAAO,GAAI,EAAY,QAAA,aACjE,EAAA,EAAA,IAAA,CAAC,EAAA,SAAD,CACE,QAAS,EACT,cAAe,CACb,MAAO,0BACP,QAAS,wBACX,EACA,kBAAkB,OAEjB,UACO,CAAA,CACkB,CAAA,CAElC,CAAC,EAED,EAAyB,YAAc,4BCvBvC,IAAa,EAAgD,CAe3D,KAAM,EAeN,QAAS,EAeT,QAAS,CACX"}
1
+ {"version":3,"file":"collapsible-motion-BW3mF74f.cjs.js","names":[],"sources":["../../src/components/collapsible-motion/components/collapsible-motion-context.tsx","../../src/components/collapsible-motion/collapsible-motion.slots.tsx","../../src/components/collapsible-motion/components/collapsible-motion-root.tsx","../../src/components/collapsible-motion/components/collapsible-motion-trigger.tsx","../../src/components/collapsible-motion/components/collapsible-motion-content.tsx","../../src/components/collapsible-motion/collapsible-motion.tsx"],"sourcesContent":["import { createContext, useContext } from \"react\";\nimport type { CollapsibleMotionContextValue } from \"../collapsible-motion.types\";\n\n/**\n * React Context for sharing CollapsibleMotion state between compound components\n */\nexport const CollapsibleMotionContext = createContext<\n CollapsibleMotionContextValue | undefined\n>(undefined);\n\n/**\n * Custom hook to consume CollapsibleMotion context\n */\nexport function useCollapsibleMotionContext(): CollapsibleMotionContextValue {\n const context = useContext(CollapsibleMotionContext);\n\n if (context === undefined) {\n throw new Error(\n \"useCollapsibleMotionContext must be used within a CollapsibleMotion.Root component\"\n );\n }\n\n return context;\n}\n","import {\n createSlotRecipeContext,\n type HTMLChakraProps,\n} from \"@chakra-ui/react/styled-system\";\nimport type { SlotComponent } from \"@/type-utils\";\nimport type { CollapsibleMotionRootSlotProps } from \"./collapsible-motion.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"nimbusCollapsibleMotion\",\n});\n\nexport const CollapsibleMotionRootSlot: SlotComponent<\n HTMLDivElement,\n CollapsibleMotionRootSlotProps\n> = withProvider<HTMLDivElement, CollapsibleMotionRootSlotProps>(\"div\", \"root\");\n\nexport const CollapsibleMotionTriggerSlot = withContext<\n HTMLButtonElement,\n HTMLChakraProps<\"button\">\n>(\"button\", \"trigger\");\n\nexport const CollapsibleMotionContentSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"content\");\n","import { useRef, forwardRef } from \"react\";\nimport { useDisclosure } from \"react-aria\";\nimport { useDisclosureState } from \"react-stately\";\nimport { CollapsibleMotionContext } from \"./collapsible-motion-context\";\nimport { CollapsibleMotionRootSlot } from \"../collapsible-motion.slots\";\nimport type { CollapsibleMotionRootProps } from \"../collapsible-motion.types\";\n\n/**\n * CollapsibleMotion.Root - The root container component that manages state and provides context\n *\n * This component contains all the state management logic and provides context to\n * CollapsibleMotion.Trigger and CollapsibleMotion.Content components.\n *\n * @supportsStyleProps\n */\nexport const CollapsibleMotionRoot: React.ForwardRefExoticComponent<\n CollapsibleMotionRootProps & React.RefAttributes<HTMLDivElement>\n> = forwardRef<HTMLDivElement, CollapsibleMotionRootProps>(\n (\n {\n children,\n defaultExpanded = false,\n isExpanded: controlledExpanded,\n onExpandedChange,\n isDisabled = false,\n ...props\n },\n forwardedRef\n ) => {\n // Use React Aria's disclosure state management\n const disclosureState = useDisclosureState({\n defaultExpanded,\n isExpanded: controlledExpanded,\n onExpandedChange,\n });\n\n const panelRef = useRef<HTMLDivElement>(null);\n\n // Use React Aria's disclosure hook for ARIA props\n const { buttonProps, panelProps } = useDisclosure(\n { isDisabled },\n disclosureState,\n panelRef\n );\n\n // Context value to provide to child components\n const contextValue = {\n isDisabled,\n isExpanded: disclosureState.isExpanded,\n buttonProps,\n panelProps,\n panelRef,\n };\n\n return (\n <CollapsibleMotionContext.Provider value={contextValue}>\n <CollapsibleMotionRootSlot ref={forwardedRef} {...props}>\n {children}\n </CollapsibleMotionRootSlot>\n </CollapsibleMotionContext.Provider>\n );\n }\n);\n\nCollapsibleMotionRoot.displayName = \"CollapsibleMotion.Root\";\n","import { forwardRef } from \"react\";\nimport { mergeProps } from \"react-aria\";\nimport { useCollapsibleMotionContext } from \"./collapsible-motion-context\";\nimport { CollapsibleMotionTriggerSlot } from \"../collapsible-motion.slots\";\nimport type { CollapsibleMotionTriggerProps } from \"../collapsible-motion.types\";\nimport { Button as RaButton, ButtonContext } from \"react-aria-components\";\nimport { chakra } from \"@chakra-ui/react/styled-system\";\nimport { extractStyleProps } from \"@/utils\";\n/**\n * CollapsibleMotion.Trigger - The trigger button that toggles the collapsible content\n *\n * This component renders a button with proper ARIA attributes for accessibility.\n * It automatically handles the toggle functionality when clicked.\n *\n * @supportsStyleProps\n */\nexport const CollapsibleMotionTrigger = forwardRef<\n HTMLButtonElement,\n CollapsibleMotionTriggerProps\n>(({ children, asChild, ...props }, forwardedRef) => {\n const { buttonProps, isDisabled } = useCollapsibleMotionContext();\n\n // Use mergeProps to properly compose event handlers like React Aria does\n const componentProps = mergeProps(props, buttonProps, {\n disabled: isDisabled,\n });\n\n // If asChild is true, wrap children directly in a button with asChild.\n // ButtonContext.Provider passes isDisabled through React Aria's context so\n // Nimbus Button's useButton receives it (the native `disabled` HTML attribute\n // alone is overwritten by useButton's output in the JSX spread).\n if (asChild) {\n return (\n <ButtonContext.Provider value={{ isDisabled }}>\n <chakra.button asChild {...componentProps}>\n {children}\n </chakra.button>\n </ButtonContext.Provider>\n );\n }\n\n const [styleProps, restProps] = extractStyleProps(componentProps);\n\n // Otherwise, wrap with both CollapsibleMotionTriggerSlot and RaButton\n // Only pass React Aria compatible props to avoid type conflicts\n return (\n <CollapsibleMotionTriggerSlot ref={forwardedRef} {...styleProps} asChild>\n <RaButton {...restProps}>{children}</RaButton>\n </CollapsibleMotionTriggerSlot>\n );\n});\n\nCollapsibleMotionTrigger.displayName = \"CollapsibleMotion.Trigger\";\n","import { forwardRef, useRef } from \"react\";\nimport { useObjectRef } from \"react-aria\";\nimport { Presence } from \"@chakra-ui/react/presence\";\nimport { mergeRefs } from \"@/utils\";\nimport { useCollapsibleMotionContext } from \"./collapsible-motion-context\";\nimport { CollapsibleMotionContentSlot } from \"../collapsible-motion.slots\";\nimport type { CollapsibleMotionContentProps } from \"../collapsible-motion.types\";\n\n/**\n * CollapsibleMotion.Content - The collapsible content container\n *\n * This component renders the content that will expand and collapse.\n * It handles accessibility attributes through React Aria.\n *\n * @supportsStyleProps\n */\nexport const CollapsibleMotionContent = forwardRef<\n HTMLDivElement,\n CollapsibleMotionContentProps\n>(({ children, ...props }, forwardedRef) => {\n const { panelProps, isExpanded } = useCollapsibleMotionContext();\n\n // Create a local ref and merge with forwardedRef (for user)\n const localRef = useRef<HTMLDivElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n return (\n <CollapsibleMotionContentSlot ref={ref} {...props} {...panelProps} asChild>\n <Presence\n present={isExpanded}\n animationName={{\n _open: \"slide-from-top, fade-in\",\n _closed: \"slide-to-top, fade-out\",\n }}\n animationDuration=\"fast\"\n >\n {children}\n </Presence>\n </CollapsibleMotionContentSlot>\n );\n});\n\nCollapsibleMotionContent.displayName = \"CollapsibleMotion.Content\";\n","import {\n CollapsibleMotionRoot,\n CollapsibleMotionTrigger,\n CollapsibleMotionContent,\n} from \"./components\";\n\n// Exports for internal use by react-docgen\nexport {\n CollapsibleMotionRoot as _CollapsibleMotionRoot,\n CollapsibleMotionTrigger as _CollapsibleMotionTrigger,\n CollapsibleMotionContent as _CollapsibleMotionContent,\n};\n\ntype CollapsibleMotionNamespace = {\n Root: typeof CollapsibleMotionRoot;\n Trigger: typeof CollapsibleMotionTrigger;\n Content: typeof CollapsibleMotionContent;\n};\n\nexport const CollapsibleMotion: CollapsibleMotionNamespace = {\n /**\n * # CollapsibleMotion.Root\n *\n * The root container component that manages state and provides context.\n * Handles both controlled and uncontrolled modes for expanded/collapsed state.\n *\n * @example\n * ```tsx\n * <CollapsibleMotion.Root defaultExpanded={false}>\n * <CollapsibleMotion.Trigger>Toggle</CollapsibleMotion.Trigger>\n * <CollapsibleMotion.Content>Content here</CollapsibleMotion.Content>\n * </CollapsibleMotion.Root>\n * ```\n */\n Root: CollapsibleMotionRoot,\n\n /**\n * # CollapsibleMotion.Trigger\n *\n * The trigger button that toggles the collapsible content.\n * Handles keyboard and mouse interactions with proper ARIA attributes.\n *\n * @example\n * ```tsx\n * <CollapsibleMotion.Trigger>\n * Click to expand\n * </CollapsibleMotion.Trigger>\n * ```\n */\n Trigger: CollapsibleMotionTrigger,\n\n /**\n * # CollapsibleMotion.Content\n *\n * The collapsible content container with smooth expand/collapse animations.\n * Automatically handles ARIA attributes for accessibility.\n *\n * @example\n * ```tsx\n * <CollapsibleMotion.Content>\n * <Text>Your collapsible content</Text>\n * </CollapsibleMotion.Content>\n * ```\n */\n Content: CollapsibleMotionContent,\n};\n"],"mappings":"0ZAMA,IAAa,GAAA,EAAA,EAAA,cAAA,CAEX,IAAA,EAAS,EAKX,SAAgB,GAA6D,CAC3E,IAAM,GAAA,EAAA,EAAA,WAAA,CAAqB,CAAwB,EAEnD,GAAI,IAAY,IAAA,GACd,MAAU,MACR,oFACF,EAGF,OAAO,CACT,CChBA,GAAM,CAAE,eAAc,gBAAA,EAAA,EAAA,wBAAA,CAAwC,CAC5D,IAAK,yBACP,CAAC,EAEY,EAGT,EAA6D,MAAO,MAAM,EAEjE,EAA+B,EAG1C,SAAU,SAAS,EAER,EAA+B,EAG1C,MAAO,SAAS,ECTL,GAAA,EAAA,EAAA,WAAA,EAIT,CACE,WACA,kBAAkB,GAClB,WAAY,EACZ,mBACA,aAAa,GACb,GAAG,GAEL,IACG,CAEH,IAAM,EAAkB,EAAA,EAAmB,CACzC,kBACA,WAAY,EACZ,kBACF,CAAC,EAEK,GAAA,EAAA,EAAA,OAAA,CAAkC,IAAI,EAGtC,CAAE,cAAa,cAAe,EAAA,EAClC,CAAE,YAAW,EACb,EACA,CACF,EAGM,EAAe,CACnB,aACA,WAAY,EAAgB,WAC5B,cACA,aACA,UACF,EAEA,OACE,EAAA,EAAA,IAAA,CAAC,EAAyB,SAA1B,CAAmC,MAAO,YACxC,EAAA,EAAA,IAAA,CAAC,EAAD,CAA2B,IAAK,EAAc,GAAI,EAC/C,UACwB,CAAA,CACM,CAAA,CAEvC,CACF,EAEA,EAAsB,YAAc,yBChDpC,IAAa,GAAA,EAAA,EAAA,WAAA,EAGV,CAAE,WAAU,UAAS,GAAG,GAAS,IAAiB,CACnD,GAAM,CAAE,cAAa,cAAe,EAA4B,EAG1D,EAAiB,EAAA,EAAW,EAAO,EAAa,CACpD,SAAU,CACZ,CAAC,EAMD,GAAI,EACF,OACE,EAAA,EAAA,IAAA,CAAC,EAAA,EAAc,SAAf,CAAwB,MAAO,CAAE,YAAW,YAC1C,EAAA,EAAA,IAAA,CAAC,EAAA,OAAO,OAAR,CAAe,QAAA,GAAQ,GAAI,EACxB,UACY,CAAA,CACO,CAAA,EAI5B,GAAM,CAAC,EAAY,GAAa,EAAA,EAAkB,CAAc,EAIhE,OACE,EAAA,EAAA,IAAA,CAAC,EAAD,CAA8B,IAAK,EAAc,GAAI,EAAY,QAAA,aAC/D,EAAA,EAAA,IAAA,CAAC,EAAA,EAAD,CAAU,GAAI,EAAY,UAAmB,CAAA,CACjB,CAAA,CAElC,CAAC,EAED,EAAyB,YAAc,4BCpCvC,IAAa,GAAA,EAAA,EAAA,WAAA,EAGV,CAAE,WAAU,GAAG,GAAS,IAAiB,CAC1C,GAAM,CAAE,aAAY,cAAe,EAA4B,EAM/D,OACE,EAAA,EAAA,IAAA,CAAC,EAAD,CAAmC,IAHzB,EAAA,EAAa,EAAA,GAAA,EAAA,EAAA,OAAA,CADe,IACL,EAAU,CAAY,CAGpB,EAAK,GAAI,EAAO,GAAI,EAAY,QAAA,aACjE,EAAA,EAAA,IAAA,CAAC,EAAA,SAAD,CACE,QAAS,EACT,cAAe,CACb,MAAO,0BACP,QAAS,wBACX,EACA,kBAAkB,OAEjB,UACO,CAAA,CACkB,CAAA,CAElC,CAAC,EAED,EAAyB,YAAc,4BCvBvC,IAAa,EAAgD,CAe3D,KAAM,EAeN,QAAS,EAeT,QAAS,CACX"}
@@ -1,8 +1,8 @@
1
1
  import { t as e } from "./mergeProps-BJ6-Ao_L.esm.js";
2
2
  import { t } from "./useObjectRef-B_3vY5-Q.esm.js";
3
3
  import { n, t as r } from "./useDisclosureState-DbHrEpMo.esm.js";
4
- import { n as i, t as a } from "./Button-FcraQeen.esm.js";
5
- import { t as o } from "./extract-style-props-BPnHKmWR.esm.js";
4
+ import { n as i, t as a } from "./Button-B5g2BgY8.esm.js";
5
+ import { t as o } from "./extract-style-props-D519tVOc.esm.js";
6
6
  import { t as s } from "./merge-refs-C1GcH9iY.esm.js";
7
7
  import { createContext as c, forwardRef as l, useContext as u, useRef as d } from "react";
8
8
  import { jsx as f } from "react/jsx-runtime";
@@ -94,4 +94,4 @@ var E = {
94
94
  //#endregion
95
95
  export { C as i, T as n, w as r, E as t };
96
96
 
97
- //# sourceMappingURL=collapsible-motion-5Y-srpM4.esm.js.map
97
+ //# sourceMappingURL=collapsible-motion-CKrXIpgY.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"collapsible-motion-5Y-srpM4.esm.js","names":[],"sources":["../../src/components/collapsible-motion/components/collapsible-motion-context.tsx","../../src/components/collapsible-motion/collapsible-motion.slots.tsx","../../src/components/collapsible-motion/components/collapsible-motion-root.tsx","../../src/components/collapsible-motion/components/collapsible-motion-trigger.tsx","../../src/components/collapsible-motion/components/collapsible-motion-content.tsx","../../src/components/collapsible-motion/collapsible-motion.tsx"],"sourcesContent":["import { createContext, useContext } from \"react\";\nimport type { CollapsibleMotionContextValue } from \"../collapsible-motion.types\";\n\n/**\n * React Context for sharing CollapsibleMotion state between compound components\n */\nexport const CollapsibleMotionContext = createContext<\n CollapsibleMotionContextValue | undefined\n>(undefined);\n\n/**\n * Custom hook to consume CollapsibleMotion context\n */\nexport function useCollapsibleMotionContext(): CollapsibleMotionContextValue {\n const context = useContext(CollapsibleMotionContext);\n\n if (context === undefined) {\n throw new Error(\n \"useCollapsibleMotionContext must be used within a CollapsibleMotion.Root component\"\n );\n }\n\n return context;\n}\n","import {\n createSlotRecipeContext,\n type HTMLChakraProps,\n} from \"@chakra-ui/react/styled-system\";\nimport type { SlotComponent } from \"@/type-utils\";\nimport type { CollapsibleMotionRootSlotProps } from \"./collapsible-motion.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"nimbusCollapsibleMotion\",\n});\n\nexport const CollapsibleMotionRootSlot: SlotComponent<\n HTMLDivElement,\n CollapsibleMotionRootSlotProps\n> = withProvider<HTMLDivElement, CollapsibleMotionRootSlotProps>(\"div\", \"root\");\n\nexport const CollapsibleMotionTriggerSlot = withContext<\n HTMLButtonElement,\n HTMLChakraProps<\"button\">\n>(\"button\", \"trigger\");\n\nexport const CollapsibleMotionContentSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"content\");\n","import { useRef, forwardRef } from \"react\";\nimport { useDisclosure } from \"react-aria\";\nimport { useDisclosureState } from \"react-stately\";\nimport { CollapsibleMotionContext } from \"./collapsible-motion-context\";\nimport { CollapsibleMotionRootSlot } from \"../collapsible-motion.slots\";\nimport type { CollapsibleMotionRootProps } from \"../collapsible-motion.types\";\n\n/**\n * CollapsibleMotion.Root - The root container component that manages state and provides context\n *\n * This component contains all the state management logic and provides context to\n * CollapsibleMotion.Trigger and CollapsibleMotion.Content components.\n *\n * @supportsStyleProps\n */\nexport const CollapsibleMotionRoot: React.ForwardRefExoticComponent<\n CollapsibleMotionRootProps & React.RefAttributes<HTMLDivElement>\n> = forwardRef<HTMLDivElement, CollapsibleMotionRootProps>(\n (\n {\n children,\n defaultExpanded = false,\n isExpanded: controlledExpanded,\n onExpandedChange,\n isDisabled = false,\n ...props\n },\n forwardedRef\n ) => {\n // Use React Aria's disclosure state management\n const disclosureState = useDisclosureState({\n defaultExpanded,\n isExpanded: controlledExpanded,\n onExpandedChange,\n });\n\n const panelRef = useRef<HTMLDivElement>(null);\n\n // Use React Aria's disclosure hook for ARIA props\n const { buttonProps, panelProps } = useDisclosure(\n { isDisabled },\n disclosureState,\n panelRef\n );\n\n // Context value to provide to child components\n const contextValue = {\n isDisabled,\n isExpanded: disclosureState.isExpanded,\n buttonProps,\n panelProps,\n panelRef,\n };\n\n return (\n <CollapsibleMotionContext.Provider value={contextValue}>\n <CollapsibleMotionRootSlot ref={forwardedRef} {...props}>\n {children}\n </CollapsibleMotionRootSlot>\n </CollapsibleMotionContext.Provider>\n );\n }\n);\n\nCollapsibleMotionRoot.displayName = \"CollapsibleMotion.Root\";\n","import { forwardRef } from \"react\";\nimport { mergeProps } from \"react-aria\";\nimport { useCollapsibleMotionContext } from \"./collapsible-motion-context\";\nimport { CollapsibleMotionTriggerSlot } from \"../collapsible-motion.slots\";\nimport type { CollapsibleMotionTriggerProps } from \"../collapsible-motion.types\";\nimport { Button as RaButton, ButtonContext } from \"react-aria-components\";\nimport { chakra } from \"@chakra-ui/react/styled-system\";\nimport { extractStyleProps } from \"@/utils\";\n/**\n * CollapsibleMotion.Trigger - The trigger button that toggles the collapsible content\n *\n * This component renders a button with proper ARIA attributes for accessibility.\n * It automatically handles the toggle functionality when clicked.\n *\n * @supportsStyleProps\n */\nexport const CollapsibleMotionTrigger = forwardRef<\n HTMLButtonElement,\n CollapsibleMotionTriggerProps\n>(({ children, asChild, ...props }, forwardedRef) => {\n const { buttonProps, isDisabled } = useCollapsibleMotionContext();\n\n // Use mergeProps to properly compose event handlers like React Aria does\n const componentProps = mergeProps(props, buttonProps, {\n disabled: isDisabled,\n });\n\n // If asChild is true, wrap children directly in a button with asChild.\n // ButtonContext.Provider passes isDisabled through React Aria's context so\n // Nimbus Button's useButton receives it (the native `disabled` HTML attribute\n // alone is overwritten by useButton's output in the JSX spread).\n if (asChild) {\n return (\n <ButtonContext.Provider value={{ isDisabled }}>\n <chakra.button asChild {...componentProps}>\n {children}\n </chakra.button>\n </ButtonContext.Provider>\n );\n }\n\n const [styleProps, restProps] = extractStyleProps(componentProps);\n\n // Otherwise, wrap with both CollapsibleMotionTriggerSlot and RaButton\n // Only pass React Aria compatible props to avoid type conflicts\n return (\n <CollapsibleMotionTriggerSlot ref={forwardedRef} {...styleProps} asChild>\n <RaButton {...restProps}>{children}</RaButton>\n </CollapsibleMotionTriggerSlot>\n );\n});\n\nCollapsibleMotionTrigger.displayName = \"CollapsibleMotion.Trigger\";\n","import { forwardRef, useRef } from \"react\";\nimport { useObjectRef } from \"react-aria\";\nimport { Presence } from \"@chakra-ui/react/presence\";\nimport { mergeRefs } from \"@/utils\";\nimport { useCollapsibleMotionContext } from \"./collapsible-motion-context\";\nimport { CollapsibleMotionContentSlot } from \"../collapsible-motion.slots\";\nimport type { CollapsibleMotionContentProps } from \"../collapsible-motion.types\";\n\n/**\n * CollapsibleMotion.Content - The collapsible content container\n *\n * This component renders the content that will expand and collapse.\n * It handles accessibility attributes through React Aria.\n *\n * @supportsStyleProps\n */\nexport const CollapsibleMotionContent = forwardRef<\n HTMLDivElement,\n CollapsibleMotionContentProps\n>(({ children, ...props }, forwardedRef) => {\n const { panelProps, isExpanded } = useCollapsibleMotionContext();\n\n // Create a local ref and merge with forwardedRef (for user)\n const localRef = useRef<HTMLDivElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n return (\n <CollapsibleMotionContentSlot ref={ref} {...props} {...panelProps} asChild>\n <Presence\n present={isExpanded}\n animationName={{\n _open: \"slide-from-top, fade-in\",\n _closed: \"slide-to-top, fade-out\",\n }}\n animationDuration=\"fast\"\n >\n {children}\n </Presence>\n </CollapsibleMotionContentSlot>\n );\n});\n\nCollapsibleMotionContent.displayName = \"CollapsibleMotion.Content\";\n","import {\n CollapsibleMotionRoot,\n CollapsibleMotionTrigger,\n CollapsibleMotionContent,\n} from \"./components\";\n\n// Exports for internal use by react-docgen\nexport {\n CollapsibleMotionRoot as _CollapsibleMotionRoot,\n CollapsibleMotionTrigger as _CollapsibleMotionTrigger,\n CollapsibleMotionContent as _CollapsibleMotionContent,\n};\n\ntype CollapsibleMotionNamespace = {\n Root: typeof CollapsibleMotionRoot;\n Trigger: typeof CollapsibleMotionTrigger;\n Content: typeof CollapsibleMotionContent;\n};\n\nexport const CollapsibleMotion: CollapsibleMotionNamespace = {\n /**\n * # CollapsibleMotion.Root\n *\n * The root container component that manages state and provides context.\n * Handles both controlled and uncontrolled modes for expanded/collapsed state.\n *\n * @example\n * ```tsx\n * <CollapsibleMotion.Root defaultExpanded={false}>\n * <CollapsibleMotion.Trigger>Toggle</CollapsibleMotion.Trigger>\n * <CollapsibleMotion.Content>Content here</CollapsibleMotion.Content>\n * </CollapsibleMotion.Root>\n * ```\n */\n Root: CollapsibleMotionRoot,\n\n /**\n * # CollapsibleMotion.Trigger\n *\n * The trigger button that toggles the collapsible content.\n * Handles keyboard and mouse interactions with proper ARIA attributes.\n *\n * @example\n * ```tsx\n * <CollapsibleMotion.Trigger>\n * Click to expand\n * </CollapsibleMotion.Trigger>\n * ```\n */\n Trigger: CollapsibleMotionTrigger,\n\n /**\n * # CollapsibleMotion.Content\n *\n * The collapsible content container with smooth expand/collapse animations.\n * Automatically handles ARIA attributes for accessibility.\n *\n * @example\n * ```tsx\n * <CollapsibleMotion.Content>\n * <Text>Your collapsible content</Text>\n * </CollapsibleMotion.Content>\n * ```\n */\n Content: CollapsibleMotionContent,\n};\n"],"mappings":";;;;;;;;;;;AAMA,IAAa,IAA2B,EAEtC,KAAA,CAAS;AAKX,SAAgB,IAA6D;CAC3E,IAAM,IAAU,EAAW,CAAwB;CAEnD,IAAI,MAAY,KAAA,GACd,MAAU,MACR,oFACF;CAGF,OAAO;AACT;;;AChBA,IAAM,EAAE,iBAAc,mBAAgB,EAAwB,EAC5D,KAAK,0BACP,CAAC,GAEY,IAGT,EAA6D,OAAO,MAAM,GAEjE,IAA+B,EAG1C,UAAU,SAAS,GAER,IAA+B,EAG1C,OAAO,SAAS,GCTL,IAET,GAEA,EACE,aACA,qBAAkB,IAClB,YAAY,GACZ,qBACA,gBAAa,IACb,GAAG,KAEL,MACG;CAEH,IAAM,IAAkB,EAAmB;EACzC;EACA,YAAY;EACZ;CACF,CAAC,GAEK,IAAW,EAAuB,IAAI,GAGtC,EAAE,gBAAa,kBAAe,EAClC,EAAE,cAAW,GACb,GACA,CACF,GAGM,IAAe;EACnB;EACA,YAAY,EAAgB;EAC5B;EACA;EACA;CACF;CAEA,OACE,kBAAC,EAAyB,UAA1B;EAAmC,OAAO;YACxC,kBAAC,GAAD;GAA2B,KAAK;GAAc,GAAI;GAC/C;EACwB,CAAA;CACM,CAAA;AAEvC,CACF;AAEA,EAAsB,cAAc;;;AChDpC,IAAa,IAA2B,GAGrC,EAAE,aAAU,YAAS,GAAG,KAAS,MAAiB;CACnD,IAAM,EAAE,gBAAa,kBAAe,EAA4B,GAG1D,IAAiB,EAAW,GAAO,GAAa,EACpD,UAAU,EACZ,CAAC;CAMD,IAAI,GACF,OACE,kBAAC,EAAc,UAAf;EAAwB,OAAO,EAAE,cAAW;YAC1C,kBAAC,EAAO,QAAR;GAAe,SAAA;GAAQ,GAAI;GACxB;EACY,CAAA;CACO,CAAA;CAI5B,IAAM,CAAC,GAAY,KAAa,EAAkB,CAAc;CAIhE,OACE,kBAAC,GAAD;EAA8B,KAAK;EAAc,GAAI;EAAY,SAAA;YAC/D,kBAAC,GAAD;GAAU,GAAI;GAAY;EAAmB,CAAA;CACjB,CAAA;AAElC,CAAC;AAED,EAAyB,cAAc;;;ACpCvC,IAAa,IAA2B,GAGrC,EAAE,aAAU,GAAG,KAAS,MAAiB;CAC1C,IAAM,EAAE,eAAY,kBAAe,EAA4B;CAM/D,OACE,kBAAC,GAAD;EAAmC,KAHzB,EAAa,EADR,EAAuB,IACL,GAAU,CAAY,CAGpB;EAAK,GAAI;EAAO,GAAI;EAAY,SAAA;YACjE,kBAAC,GAAD;GACE,SAAS;GACT,eAAe;IACb,OAAO;IACP,SAAS;GACX;GACA,mBAAkB;GAEjB;EACO,CAAA;CACkB,CAAA;AAElC,CAAC;AAED,EAAyB,cAAc;;;ACvBvC,IAAa,IAAgD;CAe3D,MAAM;CAeN,SAAS;CAeT,SAAS;AACX"}
1
+ {"version":3,"file":"collapsible-motion-CKrXIpgY.esm.js","names":[],"sources":["../../src/components/collapsible-motion/components/collapsible-motion-context.tsx","../../src/components/collapsible-motion/collapsible-motion.slots.tsx","../../src/components/collapsible-motion/components/collapsible-motion-root.tsx","../../src/components/collapsible-motion/components/collapsible-motion-trigger.tsx","../../src/components/collapsible-motion/components/collapsible-motion-content.tsx","../../src/components/collapsible-motion/collapsible-motion.tsx"],"sourcesContent":["import { createContext, useContext } from \"react\";\nimport type { CollapsibleMotionContextValue } from \"../collapsible-motion.types\";\n\n/**\n * React Context for sharing CollapsibleMotion state between compound components\n */\nexport const CollapsibleMotionContext = createContext<\n CollapsibleMotionContextValue | undefined\n>(undefined);\n\n/**\n * Custom hook to consume CollapsibleMotion context\n */\nexport function useCollapsibleMotionContext(): CollapsibleMotionContextValue {\n const context = useContext(CollapsibleMotionContext);\n\n if (context === undefined) {\n throw new Error(\n \"useCollapsibleMotionContext must be used within a CollapsibleMotion.Root component\"\n );\n }\n\n return context;\n}\n","import {\n createSlotRecipeContext,\n type HTMLChakraProps,\n} from \"@chakra-ui/react/styled-system\";\nimport type { SlotComponent } from \"@/type-utils\";\nimport type { CollapsibleMotionRootSlotProps } from \"./collapsible-motion.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"nimbusCollapsibleMotion\",\n});\n\nexport const CollapsibleMotionRootSlot: SlotComponent<\n HTMLDivElement,\n CollapsibleMotionRootSlotProps\n> = withProvider<HTMLDivElement, CollapsibleMotionRootSlotProps>(\"div\", \"root\");\n\nexport const CollapsibleMotionTriggerSlot = withContext<\n HTMLButtonElement,\n HTMLChakraProps<\"button\">\n>(\"button\", \"trigger\");\n\nexport const CollapsibleMotionContentSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"content\");\n","import { useRef, forwardRef } from \"react\";\nimport { useDisclosure } from \"react-aria\";\nimport { useDisclosureState } from \"react-stately\";\nimport { CollapsibleMotionContext } from \"./collapsible-motion-context\";\nimport { CollapsibleMotionRootSlot } from \"../collapsible-motion.slots\";\nimport type { CollapsibleMotionRootProps } from \"../collapsible-motion.types\";\n\n/**\n * CollapsibleMotion.Root - The root container component that manages state and provides context\n *\n * This component contains all the state management logic and provides context to\n * CollapsibleMotion.Trigger and CollapsibleMotion.Content components.\n *\n * @supportsStyleProps\n */\nexport const CollapsibleMotionRoot: React.ForwardRefExoticComponent<\n CollapsibleMotionRootProps & React.RefAttributes<HTMLDivElement>\n> = forwardRef<HTMLDivElement, CollapsibleMotionRootProps>(\n (\n {\n children,\n defaultExpanded = false,\n isExpanded: controlledExpanded,\n onExpandedChange,\n isDisabled = false,\n ...props\n },\n forwardedRef\n ) => {\n // Use React Aria's disclosure state management\n const disclosureState = useDisclosureState({\n defaultExpanded,\n isExpanded: controlledExpanded,\n onExpandedChange,\n });\n\n const panelRef = useRef<HTMLDivElement>(null);\n\n // Use React Aria's disclosure hook for ARIA props\n const { buttonProps, panelProps } = useDisclosure(\n { isDisabled },\n disclosureState,\n panelRef\n );\n\n // Context value to provide to child components\n const contextValue = {\n isDisabled,\n isExpanded: disclosureState.isExpanded,\n buttonProps,\n panelProps,\n panelRef,\n };\n\n return (\n <CollapsibleMotionContext.Provider value={contextValue}>\n <CollapsibleMotionRootSlot ref={forwardedRef} {...props}>\n {children}\n </CollapsibleMotionRootSlot>\n </CollapsibleMotionContext.Provider>\n );\n }\n);\n\nCollapsibleMotionRoot.displayName = \"CollapsibleMotion.Root\";\n","import { forwardRef } from \"react\";\nimport { mergeProps } from \"react-aria\";\nimport { useCollapsibleMotionContext } from \"./collapsible-motion-context\";\nimport { CollapsibleMotionTriggerSlot } from \"../collapsible-motion.slots\";\nimport type { CollapsibleMotionTriggerProps } from \"../collapsible-motion.types\";\nimport { Button as RaButton, ButtonContext } from \"react-aria-components\";\nimport { chakra } from \"@chakra-ui/react/styled-system\";\nimport { extractStyleProps } from \"@/utils\";\n/**\n * CollapsibleMotion.Trigger - The trigger button that toggles the collapsible content\n *\n * This component renders a button with proper ARIA attributes for accessibility.\n * It automatically handles the toggle functionality when clicked.\n *\n * @supportsStyleProps\n */\nexport const CollapsibleMotionTrigger = forwardRef<\n HTMLButtonElement,\n CollapsibleMotionTriggerProps\n>(({ children, asChild, ...props }, forwardedRef) => {\n const { buttonProps, isDisabled } = useCollapsibleMotionContext();\n\n // Use mergeProps to properly compose event handlers like React Aria does\n const componentProps = mergeProps(props, buttonProps, {\n disabled: isDisabled,\n });\n\n // If asChild is true, wrap children directly in a button with asChild.\n // ButtonContext.Provider passes isDisabled through React Aria's context so\n // Nimbus Button's useButton receives it (the native `disabled` HTML attribute\n // alone is overwritten by useButton's output in the JSX spread).\n if (asChild) {\n return (\n <ButtonContext.Provider value={{ isDisabled }}>\n <chakra.button asChild {...componentProps}>\n {children}\n </chakra.button>\n </ButtonContext.Provider>\n );\n }\n\n const [styleProps, restProps] = extractStyleProps(componentProps);\n\n // Otherwise, wrap with both CollapsibleMotionTriggerSlot and RaButton\n // Only pass React Aria compatible props to avoid type conflicts\n return (\n <CollapsibleMotionTriggerSlot ref={forwardedRef} {...styleProps} asChild>\n <RaButton {...restProps}>{children}</RaButton>\n </CollapsibleMotionTriggerSlot>\n );\n});\n\nCollapsibleMotionTrigger.displayName = \"CollapsibleMotion.Trigger\";\n","import { forwardRef, useRef } from \"react\";\nimport { useObjectRef } from \"react-aria\";\nimport { Presence } from \"@chakra-ui/react/presence\";\nimport { mergeRefs } from \"@/utils\";\nimport { useCollapsibleMotionContext } from \"./collapsible-motion-context\";\nimport { CollapsibleMotionContentSlot } from \"../collapsible-motion.slots\";\nimport type { CollapsibleMotionContentProps } from \"../collapsible-motion.types\";\n\n/**\n * CollapsibleMotion.Content - The collapsible content container\n *\n * This component renders the content that will expand and collapse.\n * It handles accessibility attributes through React Aria.\n *\n * @supportsStyleProps\n */\nexport const CollapsibleMotionContent = forwardRef<\n HTMLDivElement,\n CollapsibleMotionContentProps\n>(({ children, ...props }, forwardedRef) => {\n const { panelProps, isExpanded } = useCollapsibleMotionContext();\n\n // Create a local ref and merge with forwardedRef (for user)\n const localRef = useRef<HTMLDivElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n return (\n <CollapsibleMotionContentSlot ref={ref} {...props} {...panelProps} asChild>\n <Presence\n present={isExpanded}\n animationName={{\n _open: \"slide-from-top, fade-in\",\n _closed: \"slide-to-top, fade-out\",\n }}\n animationDuration=\"fast\"\n >\n {children}\n </Presence>\n </CollapsibleMotionContentSlot>\n );\n});\n\nCollapsibleMotionContent.displayName = \"CollapsibleMotion.Content\";\n","import {\n CollapsibleMotionRoot,\n CollapsibleMotionTrigger,\n CollapsibleMotionContent,\n} from \"./components\";\n\n// Exports for internal use by react-docgen\nexport {\n CollapsibleMotionRoot as _CollapsibleMotionRoot,\n CollapsibleMotionTrigger as _CollapsibleMotionTrigger,\n CollapsibleMotionContent as _CollapsibleMotionContent,\n};\n\ntype CollapsibleMotionNamespace = {\n Root: typeof CollapsibleMotionRoot;\n Trigger: typeof CollapsibleMotionTrigger;\n Content: typeof CollapsibleMotionContent;\n};\n\nexport const CollapsibleMotion: CollapsibleMotionNamespace = {\n /**\n * # CollapsibleMotion.Root\n *\n * The root container component that manages state and provides context.\n * Handles both controlled and uncontrolled modes for expanded/collapsed state.\n *\n * @example\n * ```tsx\n * <CollapsibleMotion.Root defaultExpanded={false}>\n * <CollapsibleMotion.Trigger>Toggle</CollapsibleMotion.Trigger>\n * <CollapsibleMotion.Content>Content here</CollapsibleMotion.Content>\n * </CollapsibleMotion.Root>\n * ```\n */\n Root: CollapsibleMotionRoot,\n\n /**\n * # CollapsibleMotion.Trigger\n *\n * The trigger button that toggles the collapsible content.\n * Handles keyboard and mouse interactions with proper ARIA attributes.\n *\n * @example\n * ```tsx\n * <CollapsibleMotion.Trigger>\n * Click to expand\n * </CollapsibleMotion.Trigger>\n * ```\n */\n Trigger: CollapsibleMotionTrigger,\n\n /**\n * # CollapsibleMotion.Content\n *\n * The collapsible content container with smooth expand/collapse animations.\n * Automatically handles ARIA attributes for accessibility.\n *\n * @example\n * ```tsx\n * <CollapsibleMotion.Content>\n * <Text>Your collapsible content</Text>\n * </CollapsibleMotion.Content>\n * ```\n */\n Content: CollapsibleMotionContent,\n};\n"],"mappings":";;;;;;;;;;;AAMA,IAAa,IAA2B,EAEtC,KAAA,CAAS;AAKX,SAAgB,IAA6D;CAC3E,IAAM,IAAU,EAAW,CAAwB;CAEnD,IAAI,MAAY,KAAA,GACd,MAAU,MACR,oFACF;CAGF,OAAO;AACT;;;AChBA,IAAM,EAAE,iBAAc,mBAAgB,EAAwB,EAC5D,KAAK,0BACP,CAAC,GAEY,IAGT,EAA6D,OAAO,MAAM,GAEjE,IAA+B,EAG1C,UAAU,SAAS,GAER,IAA+B,EAG1C,OAAO,SAAS,GCTL,IAET,GAEA,EACE,aACA,qBAAkB,IAClB,YAAY,GACZ,qBACA,gBAAa,IACb,GAAG,KAEL,MACG;CAEH,IAAM,IAAkB,EAAmB;EACzC;EACA,YAAY;EACZ;CACF,CAAC,GAEK,IAAW,EAAuB,IAAI,GAGtC,EAAE,gBAAa,kBAAe,EAClC,EAAE,cAAW,GACb,GACA,CACF,GAGM,IAAe;EACnB;EACA,YAAY,EAAgB;EAC5B;EACA;EACA;CACF;CAEA,OACE,kBAAC,EAAyB,UAA1B;EAAmC,OAAO;YACxC,kBAAC,GAAD;GAA2B,KAAK;GAAc,GAAI;GAC/C;EACwB,CAAA;CACM,CAAA;AAEvC,CACF;AAEA,EAAsB,cAAc;;;AChDpC,IAAa,IAA2B,GAGrC,EAAE,aAAU,YAAS,GAAG,KAAS,MAAiB;CACnD,IAAM,EAAE,gBAAa,kBAAe,EAA4B,GAG1D,IAAiB,EAAW,GAAO,GAAa,EACpD,UAAU,EACZ,CAAC;CAMD,IAAI,GACF,OACE,kBAAC,EAAc,UAAf;EAAwB,OAAO,EAAE,cAAW;YAC1C,kBAAC,EAAO,QAAR;GAAe,SAAA;GAAQ,GAAI;GACxB;EACY,CAAA;CACO,CAAA;CAI5B,IAAM,CAAC,GAAY,KAAa,EAAkB,CAAc;CAIhE,OACE,kBAAC,GAAD;EAA8B,KAAK;EAAc,GAAI;EAAY,SAAA;YAC/D,kBAAC,GAAD;GAAU,GAAI;GAAY;EAAmB,CAAA;CACjB,CAAA;AAElC,CAAC;AAED,EAAyB,cAAc;;;ACpCvC,IAAa,IAA2B,GAGrC,EAAE,aAAU,GAAG,KAAS,MAAiB;CAC1C,IAAM,EAAE,eAAY,kBAAe,EAA4B;CAM/D,OACE,kBAAC,GAAD;EAAmC,KAHzB,EAAa,EADR,EAAuB,IACL,GAAU,CAAY,CAGpB;EAAK,GAAI;EAAO,GAAI;EAAY,SAAA;YACjE,kBAAC,GAAD;GACE,SAAS;GACT,eAAe;IACb,OAAO;IACP,SAAS;GACX;GACA,mBAAkB;GAEjB;EACO,CAAA;CACkB,CAAA;AAElC,CAAC;AAED,EAAyB,cAAc;;;ACvBvC,IAAa,IAAgD;CAe3D,MAAM;CAeN,SAAS;CAeT,SAAS;AACX"}
@@ -1,2 +1,2 @@
1
- const e=require("./SSRProvider-CM04-CXZ.cjs.js"),t=require("./CollectionBuilder-B70iQy5A.cjs.js"),n=require("./mergeProps-B4zz6EqI.cjs.js"),r=require("./ListBox-CXgfDQSn.cjs.js"),i=require("./Dialog-s5tFTj72.cjs.js"),a=require("./Header-Cmmm6XZs.cjs.js"),o=require("./tag-group-t9CCZs9w.cjs.js"),s=require("./utils-Clf3FzjT.cjs.js"),c=require("./Autocomplete-B2oKBPFp.cjs.js"),l=require("./Label-h-tVaoGm.cjs.js"),u=require("./Button-z5JjDtpy.cjs.js"),d=require("./Text-CJwD_Rm8.cjs.js"),ee=require("./Group-Bw1Y-fMh.cjs.js"),f=require("./Input-Co7TAEH7.cjs.js"),p=require("./useListState-6F4go-kc.cjs.js"),m=require("./useListData-Cz1rI8dv.cjs.js"),h=require("./icon-button-CSlFdpjB.cjs.js"),g=require("./loading-spinner-DAZGwhe6.cjs.js"),_=require("./normalize-messages-BMq9y_ae.cjs.js"),v=require("./popover-eUvkAe8L.cjs.js"),y=require("./extract-style-props-CA1O0IF2.cjs.js");let b=require("react");b=e.a(b,1);let x=require("react/jsx-runtime"),S=require("@commercetools/nimbus-icons"),te=require("@chakra-ui/react/styled-system");var C=(0,b.createContext)(null);function w(e,t){let n;switch(e.state){case`idle`:case`error`:switch(t.type){case`loading`:case`loadingMore`:case`sorting`:case`filtering`:return{...e,filterText:t.filterText??e.filterText,state:t.type,items:t.type===`loading`?[]:e.items,sortDescriptor:t.sortDescriptor??e.sortDescriptor,abortController:t.abortController};case`update`:return{...e,...t.updater?.(e)};case`success`:case`error`:return e;default:throw Error(`Invalid action "${t.type}" in state "${e.state}"`)}case`loading`:case`sorting`:case`filtering`:switch(t.type){case`success`:return t.abortController===e.abortController?(n=t.selectedKeys??e.selectedKeys,{...e,filterText:t.filterText??e.filterText,state:`idle`,items:[...t.items??[]],selectedKeys:n===`all`?`all`:new Set(n),sortDescriptor:t.sortDescriptor??e.sortDescriptor,abortController:void 0,cursor:t.cursor}):e;case`error`:return t.abortController===e.abortController?{...e,state:`error`,error:t.error,abortController:void 0}:e;case`loading`:case`loadingMore`:case`sorting`:case`filtering`:return e.abortController?.abort(`aborting current load and starting new one`),{...e,filterText:t.filterText??e.filterText,state:t.type,items:t.type===`loading`?[]:e.items,abortController:t.abortController};case`update`:return{...e,...t.updater?.(e)};default:throw Error(`Invalid action "${t.type}" in state "${e.state}"`)}case`loadingMore`:switch(t.type){case`success`:return n=e.selectedKeys===`all`||t.selectedKeys===`all`?`all`:new Set([...e.selectedKeys,...t.selectedKeys??[]]),{...e,state:`idle`,items:[...e.items,...t.items??[]],selectedKeys:n,sortDescriptor:t.sortDescriptor??e.sortDescriptor,abortController:void 0,cursor:t.cursor};case`error`:return t.abortController===e.abortController?{...e,state:`error`,error:t.error}:e;case`loading`:case`sorting`:case`filtering`:return e.abortController?.abort(),{...e,filterText:t.filterText??e.filterText,state:t.type,items:t.type===`loading`?[]:e.items,abortController:t.abortController};case`loadingMore`:return t.abortController?.abort(),e;case`update`:return{...e,...t.updater?.(e)};default:throw Error(`Invalid action "${t.type}" in state "${e.state}"`)}default:throw Error(`Invalid state "${e.state}"`)}}function ne(e){let{load:t,sort:n,initialSelectedKeys:r,initialSortDescriptor:i,getKey:a=e=>e.id||e.key,initialFilterText:o=``}=e,[s,c]=(0,b.useReducer)(w,{state:`idle`,error:void 0,items:[],selectedKeys:r===`all`?`all`:new Set(r),sortDescriptor:i,filterText:o}),l=async(e,n)=>{let r=new AbortController;try{c({...e,abortController:r});let i=e.filterText??s.filterText,a=await n({items:s.items.slice(),selectedKeys:s.selectedKeys,sortDescriptor:e.sortDescriptor??s.sortDescriptor,signal:r.signal,cursor:e.type===`loadingMore`?s.cursor:void 0,filterText:i,loadingState:s.state}),o=a.filterText??i;c({type:`success`,...a,abortController:r}),o&&o!==i&&!r.signal.aborted&&l({type:`filtering`,filterText:o},t)}catch(e){c({type:`error`,error:e,abortController:r})}},u=(0,b.useRef)(!1);return(0,b.useEffect)(()=>{u.current||=(l({type:`loading`},t),!0)},[]),{items:s.items,selectedKeys:s.selectedKeys,sortDescriptor:s.sortDescriptor,isLoading:s.state===`loading`||s.state===`loadingMore`||s.state===`sorting`||s.state===`filtering`,loadingState:s.state,error:s.error,filterText:s.filterText,getItem(e){return s.items.find(t=>a(t)===e)},reload(){l({type:`loading`},t)},loadMore(){s.state===`loading`||s.state===`loadingMore`||s.state===`filtering`||s.cursor==null||l({type:`loadingMore`},t)},sort(e){l({type:`sorting`,sortDescriptor:e},n||t)},...m.n({...e,getKey:a,cursor:s.cursor},e=>{c({type:`update`,updater:e})}),setFilterText(e){l({type:`filtering`,filterText:e},t)}}}function T(e,t,n,r){var i=this,a=(0,b.useRef)(null),o=(0,b.useRef)(0),s=(0,b.useRef)(0),c=(0,b.useRef)(null),l=(0,b.useRef)([]),u=(0,b.useRef)(),d=(0,b.useRef)(),ee=(0,b.useRef)(e),f=(0,b.useRef)(!0),p=(0,b.useRef)(),m=(0,b.useRef)();ee.current=e;var h=typeof window<`u`,g=!t&&t!==0&&h;if(typeof e!=`function`)throw TypeError(`Expected a function`);t=+t||0;var _=!!(n||={}).leading,v=!(`trailing`in n)||!!n.trailing,y=!!n.flushOnExit&&v,x=`maxWait`in n,S=`debounceOnServer`in n&&!!n.debounceOnServer,te=x?Math.max(+n.maxWait||0,t):null,C=(0,b.useMemo)(function(){var e=function(e){var t=l.current,n=u.current;return l.current=u.current=null,o.current=e,s.current=s.current||e,d.current=ee.current.apply(n,t)},n=function(e,t){g&&cancelAnimationFrame(c.current),c.current=g?requestAnimationFrame(e):setTimeout(e,t)},b=function(e){if(!f.current)return!1;var n=e-a.current;return!a.current||n>=t||n<0||x&&e-o.current>=te},C=function(t){return c.current=null,v&&l.current?e(t):(l.current=u.current=null,d.current)},w=function e(){var r=Date.now();if(_&&s.current===o.current&&ne(),b(r))return C(r);if(f.current){var i=t-(r-a.current);n(e,x?Math.min(i,te-(r-o.current)):i)}},ne=function(){r&&r({})},T=function(){if(h||S){var r,s=Date.now(),ee=b(s);if(l.current=[].slice.call(arguments),u.current=i,a.current=s,y&&!p.current&&(p.current=function(){globalThis.document?.visibilityState===`hidden`&&m.current.flush()},(r=globalThis.document)==null||r.addEventListener==null||r.addEventListener(`visibilitychange`,p.current)),ee){if(!c.current&&f.current)return o.current=a.current,n(w,t),_?e(a.current):d.current;if(x)return n(w,t),e(a.current)}return c.current||n(w,t),d.current}};return T.cancel=function(){var e=c.current;e&&(g?cancelAnimationFrame(c.current):clearTimeout(c.current)),o.current=0,l.current=a.current=u.current=c.current=null,e&&r&&r({})},T.isPending=function(){return!!c.current},T.flush=function(){return c.current?C(Date.now()):d.current},T},[_,x,t,te,v,y,g,h,S,r]);return m.current=C,(0,b.useEffect)(function(){return f.current=!0,function(){var e;y&&m.current.flush(),p.current&&=((e=globalThis.document)==null||e.removeEventListener==null||e.removeEventListener(`visibilitychange`,p.current),null),f.current=!1}},[y]),C}var{withProvider:E,withContext:D}=(0,te.createSlotRecipeContext)({key:`nimbusCombobox`}),re=E(`div`,`root`),O=D(`div`,`trigger`),k=D(`div`,`leadingElement`),A=D(`div`,`content`),ie=D(`div`,`tagGroup`),ae=D(`div`,`input`),j=D(`div`,`popover`),M=D(`div`,`listBox`),oe=D(`div`,`section`),se=D(`div`,`option`),ce=D(`div`,`optionIndicator`),N=D(`div`,`optionContent`),le={en:_.t({clearSelection:`Clear selection`,options:`Options menu`,selectedValues:`Selected values`,toggleOptions:`Toggle options`}),de:_.t({clearSelection:`Auswahl löschen`,options:`Optionsmenü`,selectedValues:`Ausgewählte Werte`,toggleOptions:`Optionen anzeigen/ verbergen`}),es:_.t({clearSelection:`Borrar selección`,options:`Menú de opciones`,selectedValues:`Valores seleccionados`,toggleOptions:`Opciones de conmutación`}),"fr-FR":_.t({clearSelection:`Effacer la sélection`,options:`Menu d'options`,selectedValues:`Valeurs sélectionnées`,toggleOptions:`Basculer les options`}),"pt-BR":_.t({clearSelection:`Limpar seleção`,options:`Menu de opções`,selectedValues:`Selecionar valores`,toggleOptions:`Alternar opções`})};function ue(e){if(typeof e==`string`||typeof e==`number`)return e;if(`id`in e)return e.id;throw Error(`ComboBox - Item must have an 'id' property or provide getKey function`)}function de(e){if(typeof e==`string`)return e;if(`name`in e)return String(e.name);if(`label`in e)return String(e.label);throw Error(`ComboBox - Item must have 'name' or 'label' property, or provide a getTextValue function`)}function fe(e){return{id:e,name:e}}var pe=e=>e?e instanceof Set?e:new Set(Array.isArray(e)?e:[e]):new Set,me=e=>Array.from(e),P=(0,b.createContext)(null),F=()=>{let e=(0,b.useContext)(P);if(!e)throw Error(`Nimbus - ComboBox components must be used within ComboBox.Root`);return e},he=e=>{let{name:t,form:n,selectedKeys:r,selectionMode:i,formValue:a,allowsCustomOptions:o,collection:s,inputValue:c}=e,l=(0,b.useMemo)(()=>{if(i===`single`){let e=Array.from(r)[0];return e?a===`text`||o?Array.from(s).find(t=>t.key===e)?.textValue||c||``:String(e):``}else{let e=Array.from(r);return a===`text`||o?e.map(e=>Array.from(s).find(t=>t.key===e)?.textValue||``).filter(Boolean).join(`,`):e.join(`,`)}},[i,r,a,o,s,c]);return t?(0,x.jsx)(`input`,{type:`hidden`,name:t,form:typeof n==`string`?n:void 0,value:l}):null};he.displayName=`ComboBoxHiddenInput`;function ge(e){let n;[e,n]=s.n(e,null,C);let{selectionMode:i=`single`,size:a=`md`,getKey:c=ue,getTextValue:l=de,children:d,leadingElement:ee,inputValue:p,onInputChange:m,isLoading:h,allowsEmptyMenu:g,renderEmptyState:_,async:v,filter:S,allowsCustomOptions:w=!1,isDisabled:E=!1,isInvalid:D=!1,isRequired:O=!1,isReadOnly:k=!1}=e,[A,ie]=(0,te.useSlotRecipe)({key:`nimbusCombobox`}).splitVariantProps(e),[ae,j]=y.t(ie),M=(0,b.useRef)(null),oe=(0,b.useRef)(null),[se,ce]=(0,b.useState)([]),N=ne({getKey:c,async load({signal:e,filterText:t}){if(!v)return{items:[]};let n=v.minSearchLength??0;if(!t||t.length<n)return{items:[]};try{return{items:await v.load(t,e)}}catch(e){if(e.name===`AbortError`)throw e;let t=e;return v.onError?.(t),{items:[]}}}}),[le,fe]=(0,b.useState)(p),[pe,me]=(0,b.useState)(!1),[F,he]=(0,b.useState)([]),ge=T(e=>{me(!1),N.setFilterText(e)},v?.debounce??300),I=(0,b.useCallback)(e=>{fe(e),me(!0),ge(e)},[ge]),L=v?le:p,ve=v?I:m,R=v?pe||N.loadingState===`loading`||N.loadingState===`loadingMore`||N.loadingState===`filtering`:h,ye=v||w?!0:g,be=(0,b.useCallback)(()=>R?L?.length?`loading results for "${L}"`:`loading results`:L?.length&&v?.minSearchLength&&L.length>=v.minSearchLength?`no results for "${L}"`:v?.minSearchLength?`enter at least ${v?.minSearchLength} characters`:`type to search`,[v?.minSearchLength,R,L]),z=(0,b.useCallback)(()=>R?L?.length?`loading results for "${L}"`:`loading results`:`hit "enter" to create an option`,[R,L]),xe=(w?z:v?be:void 0)??_,B=(0,b.useMemo)(()=>{let t=v?Array.from(N.items):e.items,n=t?Array.from(t):[],r=new Set(n.map(e=>c(e))),a=[...se.filter(e=>!r.has(c(e))),...n];if(v&&i===`multiple`&&F.length>0){let e=new Set(a.map(e=>c(e)));a=[...F.filter(t=>!e.has(c(t))),...a]}return a},[v,N.items,e.items,se,F,i,c]),V=(0,b.useMemo)(()=>({selectionMode:i,size:a,getKey:c,getTextValue:l,leadingElement:ee,triggerRef:M,inputRef:oe,isLoading:R,isDisabled:E,isRequired:O,isInvalid:D,isReadOnly:k}),[i,c,l,ee,M,oe,R,a,E,O,D,k]),Se=(0,b.useMemo)(()=>{if(B)return Array.from(B).map(e=>{let t=`id`in e,n=`textValue`in e;return t&&n?e:{...e,...t?{}:{id:c(e)},...n?{}:{textValue:l(e)}}})},[B,c,l]),Ce=(0,b.useMemo)(()=>(0,x.jsx)(P.Provider,{value:V,children:(0,x.jsx)(r.r.Provider,{value:{items:Se},children:typeof d==`function`?d({isOpen:!1,isDisabled:E,isInvalid:D,isRequired:O,isReadOnly:k,defaultChildren:null}):d})}),[d,E,D,k,O,Se,V]);return(0,x.jsx)(s.t,{values:[[u.t,{}],[f.t,{}],[o.n,{}]],children:(0,x.jsx)(P.Provider,{value:V,children:(0,x.jsx)(re,{ref:n,...A,...ae,size:a,"data-disabled":E,"data-invalid":D,"data-required":O,"data-readonly":k,"data-open":e.isOpen,role:`group`,children:(0,x.jsx)(t.n,{content:Ce,children:e=>(0,x.jsx)(_e,{...j,size:a,filter:S,selectionMode:i,inputValue:L,onInputChange:ve,getKey:c,getTextValue:l,allowsEmptyMenu:ye,renderEmptyState:xe,isDisabled:E,isRequired:O,isInvalid:D,isReadOnly:k,collection:e,allowsCustomOptions:w,asyncConfig:v,onAsyncSelectedItemsChange:v&&i===`multiple`?he:void 0,onAddCustomItem:ce,onAddAsyncSelectedItem:he})})})})})}ge.displayName=`ComboBox.Root`;var _e=e=>{let t=_.n(le),{selectionMode:a=`single`,items:m,collection:h,getKey:g=ue,children:v,selectedKeys:y=[],onSelectionChange:S,disabledKeys:te,inputValue:C=``,onInputChange:w,filter:ne,placeholder:T,menuTrigger:E=`input`,shouldCloseOnBlur:D=!0,shouldCloseOnSelect:re=!0,isOpen:O,defaultOpen:k=!1,onOpenChange:A,allowsEmptyMenu:ie=!1,renderEmptyState:ae,allowsCustomOptions:j=!1,isValidNewOption:M,getNewOptionData:oe=fe,onCreateOption:se,"aria-label":ce,"aria-labelledby":N,"aria-describedby":de,isDisabled:P=!1,isRequired:ge=!1,isInvalid:_e=!1,isReadOnly:I=!1,shouldFocusWrap:L=!0,autoFocus:ve=!1,name:R,formValue:ye,validationBehavior:be=`aria`,form:z,validate:xe,isLoading:B,asyncConfig:V,onAsyncSelectedItemsChange:Se,onAddCustomItem:Ce,onAddAsyncSelectedItem:we}=e,{triggerRef:H,inputRef:U}=F(),W=n.i(),Te=n.i(),Ee=(0,b.useRef)(null),De=(0,b.useRef)(null),Oe=(0,b.useMemo)(()=>pe(y),[Array.isArray(y)?y.join(`\0`):String(y??``)]),ke=!!S,[Ae,je]=(0,b.useState)(Oe),G=ke?Oe:Ae,K=w!==void 0,[Me,q]=(0,b.useState)(()=>{if(C)return C;if(K||a!==`single`)return``;let e=Array.from(G);if(e.length===0)return``;let t=e[0];return h.getItem(t)?.textValue??``}),J=K?C:Me,Y=(0,b.useRef)(J),[Ne,Pe]=(0,b.useState)(k),X=O??Ne,[Fe,Ie]=(0,b.useState)(null),Z=(0,b.useCallback)(e=>{O===void 0&&Pe(e),A?.(e)},[O,A]),Le=(0,b.useMemo)(()=>{if(a!==`single`)return;let e=Array.from(G);if(e.length!==0)return h.getItem(e[0])?.textValue},[a,G,h]),Re=(0,b.useMemo)(()=>{if(J.trim()===``||a===`single`&&Le===J)return h;if(ne){let e=Array.from(h),t=Array.from(ne(e,J)),n=new Set(t.map(e=>e.key));return h.filter?.((e,t)=>n.has(t.key))??h}let e=J.toLowerCase();return h.filter?.(t=>t.toLowerCase().includes(e))??h},[h,J,ne,a,Le]),ze=(0,b.useMemo)(()=>a===`multiple`?Array.from(G).map(e=>h.getItem(e)?.value).filter(e=>e!==void 0):[],[a,G,h]),[Be,Ve]=(0,b.useState)(null),He=(0,b.useCallback)(()=>{let e=O===void 0?!X:!O;O===void 0?Pe(e=>!e):A?.(!O),e&&(U.current?.focus(),Ie(`first`))},[O,X,A,U]),Ue=(0,b.useCallback)(e=>{K||q(e),w?.(e),E===`input`&&e!==Y.current&&Z(!0),Y.current=e},[K,w,E,Z]),We=(0,b.useCallback)(()=>{let e=H.current?.querySelector(`[class*="nimbus-combobox__content"]`);e&&requestAnimationFrame(()=>{e.scrollTop=e.scrollHeight})},[H]),Q=(0,b.useCallback)((e,t)=>{let n=e===`all`?new Set(Array.from(h).map(e=>e.key)):e,r=t??G,i=n.size>0&&Array.from(n).every(e=>r.has(e))&&n.size<r.size;if(a===`multiple`&&n.size===1&&!i){let e=Array.from(n)[0],t=r.has(e),i=new Set(r);t?i.delete(e):i.add(e),n=i}let o=me(n);if(S?S(o):je(n),V&&a===`multiple`&&Se){let e=Array.from(n).map(e=>h.getItem(e)?.value).filter(e=>e!==void 0);Se(e)}if(a===`multiple`&&n.size>r.size&&We(),a===`single`){let e=Array.from(n)[0];if(e!==null){let t=h.getItem(e)?.textValue??``;K||(q(t),Y.current=t),w?.(t)}re&&Z(!1)}},[h,a,G,S,w,re,Z,K,V,Se,We]),$=p.t({selectionMode:a,collection:Re,selectedKeys:G,onSelectionChange:Q,disabledKeys:te}),Ge=(0,b.useCallback)(()=>{Q(new Set),K||(q(``),Y.current=``),w?.(``),Z(!0),requestAnimationFrame(()=>{U.current?.focus()})},[Q,K,w,Z,U]),Ke=(0,b.useCallback)(e=>{Ce?.(t=>[...t,e]),V&&a===`multiple`&&we?.(t=>[...t,e]);let t=g(e),n=G;if(a===`single`)Q(new Set([t]),n);else{let e=new Set(n);e.add(t),Q(e,n)}},[Ce,V,a,we,g,G,Q]),qe=(0,b.useCallback)(()=>{if(!j)return!1;let e=J.trim();if(!e||Array.from(h).some(t=>t.textValue?.toLowerCase()===e.toLowerCase())||M&&!M(e))return!1;let t=oe(e);return Ke(t),a===`multiple`?(K||(q(``),Y.current=``),w?.(``)):(K||(q(e),Y.current=e),w?.(e)),se?.(t),!0},[j,oe,M,J,h,a,w,se,Ke,K,q,Y]),Je=(0,b.useCallback)(e=>{if(P||I)return;let t=G,n=new Set(t);e.forEach(e=>n.delete(e)),Q(n,t),n.size===0&&U.current?.focus()},[G,Q,P,I,U]),Ye=(0,b.useCallback)(e=>{switch(e.key){case`ArrowDown`:if(e.preventDefault(),!X)Z(!0),Ie(`first`);else{let e=$.selectionManager.focusedKey,t=e?$.collection.getKeyAfter(e):$.collection.getFirstKey();$.selectionManager.setFocusedKey(t??$.collection.getFirstKey())}break;case`ArrowUp`:if(e.preventDefault(),!X)Z(!0),Ie(`last`);else{let e=$.selectionManager.focusedKey,t=e?$.collection.getKeyBefore(e):$.collection.getLastKey();$.selectionManager.setFocusedKey(t??$.collection.getLastKey())}break;case`Enter`:if(X&&$.selectionManager.focusedKey){e.preventDefault();let t=$.selectionManager.focusedKey;if(a===`multiple`){let e=new Set(G);e.has(t)?e.delete(t):e.add(t),Q(e)}else Q(new Set([t])),$.selectionManager.setFocusedKey(null)}else X&&!$.selectionManager.focusedKey&&j&&qe()&&e.preventDefault();break;case`Escape`:X&&(e.preventDefault(),Z(!1),$.selectionManager.setFocusedKey(null));break;case`Home`:if(X){e.preventDefault();let t=$.collection.getFirstKey();$.selectionManager.setFocusedKey(t)}break;case`End`:if(X){e.preventDefault();let t=$.collection.getLastKey();$.selectionManager.setFocusedKey(t)}break;case`Backspace`:if(J===``){let t=Array.from(G);if(t.length>0)if(e.preventDefault(),a===`single`)Q(new Set);else{let e=new Set(t);e.delete(t[t.length-1]),Q(e)}}break;default:break}},[X,$.selectionManager,$.collection,Q,Z,Ie,a,J,G,j,qe]),Xe=(0,b.useCallback)(()=>{E===`focus`&&!P&&!I&&Z(!0),a===`single`&&J&&U.current&&U.current.select()},[E,P,I,Z,a,J,U]),Ze=(0,b.useCallback)(()=>{D&&setTimeout(()=>{let e=document.activeElement,t=H.current?.contains(e),n=De.current?.contains(e);!t&&!n&&Z(!1)},150)},[D,Z,H,De]),Qe=(0,b.useRef)(null),$e=(0,b.useRef)(!1);(0,b.useEffect)(()=>{ve&&U.current&&!P&&U.current.focus()},[ve,P,U]);let et=(0,b.useRef)(X);(0,b.useEffect)(()=>{O===void 0&&et.current!==X&&(et.current=X,A?.(X))},[X,O,A]),(0,b.useEffect)(()=>{if(a!==`single`)return;let e=Array.from($.selectionManager.selectedKeys),t=e.length>0?e[0]:null,n=t===null?null:$.collection.getItem(t),r=n!==null;if(t===Qe.current&&($e.current||t===null)||(Qe.current=t,$e.current=r,t!==null&&!n))return;let i=n?.textValue??``;K?w?.(i):(q(i),Y.current=i)},[a,$.selectionManager.selectedKeys,$.collection,K,w]),(0,b.useEffect)(()=>{if(X&&Fe){let e=Fe===`first`?$.collection.getFirstKey():$.collection.getLastKey();$.selectionManager.setFocusedKey(e??null),Ie(null)}},[X,Fe,$.collection,$.selectionManager]),(0,b.useEffect)(()=>{X?$.selectionManager.setFocused(!0):($.selectionManager.setFocused(!1),$.selectionManager.setFocusedKey(null))},[X,$.selectionManager]);let tt=(0,b.useRef)(!1);(0,b.useEffect)(()=>{$.collection.size>0&&(tt.current=!0)},[$.collection.size]),(0,b.useEffect)(()=>{!X||ie||B||tt.current&&($.collection.size>0||Z(!1))},[X,ie,B,$.collection.size,Z,J]),(0,b.useEffect)(()=>{let e=H.current;if(!e)return;let t=()=>{let t=e.offsetWidth;Ve(`${t}px`)};t();let n=new ResizeObserver(t);return n.observe(e),()=>{n.disconnect()}},[H]);let nt=(0,b.useMemo)(()=>({ref:U,role:`combobox`,"aria-autocomplete":`list`,"aria-controls":a===`multiple`?`${Te} ${W}`:W,"aria-expanded":X,"aria-activedescendant":$.selectionManager.focusedKey?`${W}-option-${$.selectionManager.focusedKey}`:void 0,"aria-describedby":a===`multiple`?`${Te} ${de??``}`:de,"aria-label":ce,"aria-labelledby":N,value:J,onChange:e=>Ue(e.target.value),onKeyDown:Ye,onFocus:Xe,onBlur:Ze,disabled:P,readOnly:I,required:ge,"aria-invalid":_e,placeholder:T,name:R,form:z,validationbehavior:be,validate:xe}),[U,a,Te,W,X,$.selectionManager.focusedKey,de,ce,N,J,Ue,Ye,Xe,Ze,P,I,ge,_e,T,R,z,be,xe]),rt=(0,b.useMemo)(()=>({id:Te,"aria-label":t.format(`selectedValues`),items:ze,onRemove:Je}),[Te,t,ze,Je]),it=G.size>0,at=(0,b.useMemo)(()=>({slots:{toggle:{onPress:He,"aria-label":t.format(`toggleOptions`),isDisabled:P||I,isPressed:X},clear:{onPress:Ge,"aria-label":t.format(`clearSelection`),style:it?void 0:{display:`none`},isDisabled:P||I||!it}}}),[He,t,P,I,X,Ge,it]),ot=(0,b.useCallback)(e=>{e||Z(!1)},[Z]),st=(0,b.useMemo)(()=>({"--nimbus-combobox-trigger-width":Be}),[Be]),ct=(0,b.useMemo)(()=>({isOpen:X,onOpenChange:ot,ref:De,triggerRef:H,scrollRef:Ee,isNonModal:!0,trigger:`ComboBox`,placement:`bottom start`,style:st,clearContexts:[l.t,u.t,f.t,ee.n,d.n]}),[X,ot,De,H,Ee,st]),lt=(0,b.useMemo)(()=>({shouldUseVirtualFocus:!0}),[]),ut=(0,b.useMemo)(()=>({items:m,id:W,ref:Ee,renderEmptyState:ae,shouldFocusWrap:L,"aria-label":t.format(`options`)}),[m,W,Ee,ae,L,t]);return(0,x.jsxs)(s.t,{values:[[f.t,nt],[o.n,rt],[u.t,at],[i.d,ct],[c.n,lt],[r.r,ut],[r.n,$]],children:[(0,x.jsx)(he,{name:R,form:z,selectedKeys:G,selectionMode:a,formValue:ye,allowsCustomOptions:j,collection:$.collection,inputValue:J}),v]})},I=e=>{let[t,n]=y.t(e),r=(0,b.useContext)(f.t),{inputRef:i}=F(),a=``,o=``;r&&typeof r==`object`&&`value`in r&&(a=r.value||``,o=r.placeholder||``);let s=Math.max(a.length||o.length||1,1);return(0,x.jsx)(ae,{asChild:!0,...t,children:(0,x.jsx)(f.n,{ref:i,...n,size:s,"data-empty":!(a.length||o.length)})})};I.displayName=`ComboBox.Input`;var L=({children:e})=>(0,x.jsx)(k,{children:e}),ve=e=>{let{selectionMode:t,size:n,getKey:r,getTextValue:i,isDisabled:a,isReadOnly:s}=F(),[c,l]=y.t(e),u=(0,b.useContext)(o.n),d=(u&&`items`in u?u.items:void 0)??[];return t===`multiple`?(0,x.jsx)(ie,{...c,...l,asChild:!0,children:(0,x.jsx)(o.t.Root,{size:n,children:(0,x.jsx)(o.t.TagList,{items:d,display:`contents`,children:e=>{let t=r(e),n=i(e);return(0,x.jsx)(o.t.Tag,{id:t,textValue:n,isDisabled:a||s,maxW:`100%`,children:n})}})})}):null};ve.displayName=`ComboBox.TagGroup`;var R=({children:e,...t})=>{let{triggerRef:n,leadingElement:r,inputRef:i,isLoading:a,isDisabled:o}=F();return(0,x.jsxs)(O,{ref:n,onClick:e=>{!o&&e.target instanceof HTMLElement&&!e.target.closest(`button`)&&i.current?.focus()},...t,children:[r&&(0,x.jsx)(L,{children:r}),(0,x.jsxs)(A,{children:[(0,x.jsx)(ve,{}),(0,x.jsx)(I,{})]}),(0,x.jsx)(h.t,{slot:`clear`,size:`2xs`,variant:`ghost`,colorPalette:`primary`,children:(0,x.jsx)(S.Close,{})}),(0,x.jsx)(h.t,{slot:`toggle`,size:`2xs`,variant:`ghost`,colorPalette:`neutral`,excludeFromTabOrder:!0,children:a?(0,x.jsx)(g.t,{size:`xs`,margin:`50`}):(0,x.jsx)(S.KeyboardArrowDown,{})}),e]})};R.displayName=`ComboBox.Trigger`;var ye=({children:e,ref:t,...n})=>{let[r,i]=y.t(n);return(0,x.jsx)(j,{asChild:!0,...r,children:(0,x.jsx)(v.t,{ref:t,isNonModal:!0,autoFocus:!1,...i,children:e})})};ye.displayName=`ComboBox.Popover`;function be({children:e,ref:t,...n}){let[i,a]=y.t(n),o=typeof e==`function`?t=>{let n=e(t),r=t;return(0,b.isValidElement)(n)&&(r.id||r.textValue)?(0,b.cloneElement)(n,{...n.props,...r.id?{id:r.id}:{},...r.textValue?{textValue:r.textValue}:{}}):n}:e;return(0,x.jsx)(M,{...i,ref:t,asChild:!0,children:(0,x.jsx)(r.t,{...a,children:o})})}be.displayName=`ComboBox.ListBox`;function z({children:e,ref:t,...n}){let{textValue:i,...a}=n,[o,s]=y.t(a),c=i??(typeof e==`string`?e:void 0);return(0,x.jsx)(se,{...o,asChild:!0,children:(0,x.jsx)(r.i,{ref:t,...s,textValue:c,children:t=>{let n=typeof e==`function`?e({...t}):e;return t.selectionMode===`multiple`?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(ce,{children:(0,x.jsx)(`span`,{"data-selected":t.isSelected,children:t.isSelected&&(0,x.jsx)(S.Check,{})})}),(0,x.jsx)(N,{children:n})]}):(0,x.jsx)(x.Fragment,{children:n})}})})}z.displayName=`ComboBox.Option`;function xe({children:e,label:n,items:i,ref:o,...s}){if(i&&typeof e!=`function`)throw Error(`ComboBox.Section: When "items" is provided, "children" must be a function`);return(0,x.jsxs)(r.a,{ref:o,...s,children:[n&&(0,x.jsx)(oe,{asChild:!0,children:(0,x.jsx)(a.t,{children:n})}),i?(0,x.jsx)(t.i,{items:i,children:t=>typeof e==`function`?e(t):null}):e]})}xe.displayName=`ComboBox.Section`;function B(e,t){if(!t.trim())return e;let n=t.toLowerCase(),r=[];for(let t of e)t.textValue.toLowerCase().includes(n)&&r.push(t);return r}function V(e,t){if(!t.trim())return e;let n=t.toLowerCase(),r=[];for(let t of e)t.textValue.toLowerCase().startsWith(n)&&r.push(t);return r}function Se(e,t){if(!t.trim())return e;let n=[];for(let r of e)r.textValue.includes(t)&&n.push(r);return n}function Ce(e,t){if(!t.trim())return e;let n=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),r=RegExp(`\\b${n}`,`i`),i=[];for(let t of e)r.test(t.textValue)&&i.push(t);return i}function we(e,t){if(!t.trim())return e;let n=t.toLowerCase(),r=[];for(let t of e){let e=t.textValue.toLowerCase(),i=0;for(let t=0;t<e.length&&i<n.length;t++)e[t]===n[i]&&i++;i===n.length&&r.push(t)}return r}function H(e){return(t,n)=>{if(!n.trim())return t;let r=n.toLowerCase(),i=[];for(let n of t){let t=n.value;t&&e.some(e=>{let n=e.split(`.`).reduce((e,t)=>e&&typeof e==`object`?e[t]:void 0,t);return n!=null&&String(n).toLowerCase().includes(r)})&&i.push(n)}return i}}function U(e){return(t,n)=>{if(!n.trim())return t;let r=[];for(let i of t){let t=e(i,n);t>0&&r.push({node:i,score:t})}return r.sort((e,t)=>t.score-e.score),r.map(e=>e.node)}}function W(e=B){return(t,n)=>{if(!n.trim())return t;let r=n.split(/\s+/).filter(e=>e.length>0);if(r.length===0)return t;let i=new Set;for(let n of r){let r=e(t,n);for(let e of r)i.add(e.key)}let a=[];for(let e of t)i.has(e.key)&&a.push(e);return a}}function Te(e){return(t,n)=>{if(!n.trim())return t;let r=[],i=null,a=[],o=()=>{i&&a.length>0&&(r.push(i),r.push(...a)),a.length=0};for(let r of t)if(r.type===`section`)o(),i=r;else{let t=Array.from(e([r],n));t.length>0&&a.push(...t)}return o(),r}}var Ee={Root:ge,Trigger:R,Popover:ye,ListBox:be,Option:z,Section:xe,filters:{filterByText:B,filterByStartsWith:V,filterByCaseSensitive:Se,filterByWordBoundary:Ce,filterByFuzzy:we,createMultiPropertyFilter:H,createRankedFilter:U,createMultiTermFilter:W,createSectionAwareFilter:Te}};Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return Ee}});
2
- //# sourceMappingURL=combobox-ot7fVTI7.cjs.js.map
1
+ const e=require("./SSRProvider-CM04-CXZ.cjs.js"),t=require("./CollectionBuilder-B70iQy5A.cjs.js"),n=require("./mergeProps-B4zz6EqI.cjs.js"),r=require("./ListBox-Ccgvv13w.cjs.js"),i=require("./Dialog-UjK50qiN.cjs.js"),a=require("./Header-Bp89-vFq.cjs.js"),o=require("./tag-group-JEE8r8Jl.cjs.js"),s=require("./utils-Clf3FzjT.cjs.js"),c=require("./Autocomplete-B2oKBPFp.cjs.js"),l=require("./Label-h-tVaoGm.cjs.js"),u=require("./Button-CZDjIKB1.cjs.js"),d=require("./Text-CJwD_Rm8.cjs.js"),ee=require("./Group-Bw1Y-fMh.cjs.js"),f=require("./Input-Co7TAEH7.cjs.js"),p=require("./useListState-BBQE4IFG.cjs.js"),m=require("./useListData-Cz1rI8dv.cjs.js"),h=require("./icon-button-BG5cQycc.cjs.js"),g=require("./loading-spinner-p_cYuGNg.cjs.js"),_=require("./normalize-messages-BMq9y_ae.cjs.js"),v=require("./popover-B4aHN9qY.cjs.js"),y=require("./extract-style-props-WNdpT-ME.cjs.js");let b=require("react");b=e.a(b,1);let x=require("react/jsx-runtime"),S=require("@commercetools/nimbus-icons"),te=require("@chakra-ui/react/styled-system");var C=(0,b.createContext)(null);function w(e,t){let n;switch(e.state){case`idle`:case`error`:switch(t.type){case`loading`:case`loadingMore`:case`sorting`:case`filtering`:return{...e,filterText:t.filterText??e.filterText,state:t.type,items:t.type===`loading`?[]:e.items,sortDescriptor:t.sortDescriptor??e.sortDescriptor,abortController:t.abortController};case`update`:return{...e,...t.updater?.(e)};case`success`:case`error`:return e;default:throw Error(`Invalid action "${t.type}" in state "${e.state}"`)}case`loading`:case`sorting`:case`filtering`:switch(t.type){case`success`:return t.abortController===e.abortController?(n=t.selectedKeys??e.selectedKeys,{...e,filterText:t.filterText??e.filterText,state:`idle`,items:[...t.items??[]],selectedKeys:n===`all`?`all`:new Set(n),sortDescriptor:t.sortDescriptor??e.sortDescriptor,abortController:void 0,cursor:t.cursor}):e;case`error`:return t.abortController===e.abortController?{...e,state:`error`,error:t.error,abortController:void 0}:e;case`loading`:case`loadingMore`:case`sorting`:case`filtering`:return e.abortController?.abort(`aborting current load and starting new one`),{...e,filterText:t.filterText??e.filterText,state:t.type,items:t.type===`loading`?[]:e.items,abortController:t.abortController};case`update`:return{...e,...t.updater?.(e)};default:throw Error(`Invalid action "${t.type}" in state "${e.state}"`)}case`loadingMore`:switch(t.type){case`success`:return n=e.selectedKeys===`all`||t.selectedKeys===`all`?`all`:new Set([...e.selectedKeys,...t.selectedKeys??[]]),{...e,state:`idle`,items:[...e.items,...t.items??[]],selectedKeys:n,sortDescriptor:t.sortDescriptor??e.sortDescriptor,abortController:void 0,cursor:t.cursor};case`error`:return t.abortController===e.abortController?{...e,state:`error`,error:t.error}:e;case`loading`:case`sorting`:case`filtering`:return e.abortController?.abort(),{...e,filterText:t.filterText??e.filterText,state:t.type,items:t.type===`loading`?[]:e.items,abortController:t.abortController};case`loadingMore`:return t.abortController?.abort(),e;case`update`:return{...e,...t.updater?.(e)};default:throw Error(`Invalid action "${t.type}" in state "${e.state}"`)}default:throw Error(`Invalid state "${e.state}"`)}}function ne(e){let{load:t,sort:n,initialSelectedKeys:r,initialSortDescriptor:i,getKey:a=e=>e.id||e.key,initialFilterText:o=``}=e,[s,c]=(0,b.useReducer)(w,{state:`idle`,error:void 0,items:[],selectedKeys:r===`all`?`all`:new Set(r),sortDescriptor:i,filterText:o}),l=async(e,n)=>{let r=new AbortController;try{c({...e,abortController:r});let i=e.filterText??s.filterText,a=await n({items:s.items.slice(),selectedKeys:s.selectedKeys,sortDescriptor:e.sortDescriptor??s.sortDescriptor,signal:r.signal,cursor:e.type===`loadingMore`?s.cursor:void 0,filterText:i,loadingState:s.state}),o=a.filterText??i;c({type:`success`,...a,abortController:r}),o&&o!==i&&!r.signal.aborted&&l({type:`filtering`,filterText:o},t)}catch(e){c({type:`error`,error:e,abortController:r})}},u=(0,b.useRef)(!1);return(0,b.useEffect)(()=>{u.current||=(l({type:`loading`},t),!0)},[]),{items:s.items,selectedKeys:s.selectedKeys,sortDescriptor:s.sortDescriptor,isLoading:s.state===`loading`||s.state===`loadingMore`||s.state===`sorting`||s.state===`filtering`,loadingState:s.state,error:s.error,filterText:s.filterText,getItem(e){return s.items.find(t=>a(t)===e)},reload(){l({type:`loading`},t)},loadMore(){s.state===`loading`||s.state===`loadingMore`||s.state===`filtering`||s.cursor==null||l({type:`loadingMore`},t)},sort(e){l({type:`sorting`,sortDescriptor:e},n||t)},...m.n({...e,getKey:a,cursor:s.cursor},e=>{c({type:`update`,updater:e})}),setFilterText(e){l({type:`filtering`,filterText:e},t)}}}function T(e,t,n,r){var i=this,a=(0,b.useRef)(null),o=(0,b.useRef)(0),s=(0,b.useRef)(0),c=(0,b.useRef)(null),l=(0,b.useRef)([]),u=(0,b.useRef)(),d=(0,b.useRef)(),ee=(0,b.useRef)(e),f=(0,b.useRef)(!0),p=(0,b.useRef)(),m=(0,b.useRef)();ee.current=e;var h=typeof window<`u`,g=!t&&t!==0&&h;if(typeof e!=`function`)throw TypeError(`Expected a function`);t=+t||0;var _=!!(n||={}).leading,v=!(`trailing`in n)||!!n.trailing,y=!!n.flushOnExit&&v,x=`maxWait`in n,S=`debounceOnServer`in n&&!!n.debounceOnServer,te=x?Math.max(+n.maxWait||0,t):null,C=(0,b.useMemo)(function(){var e=function(e){var t=l.current,n=u.current;return l.current=u.current=null,o.current=e,s.current=s.current||e,d.current=ee.current.apply(n,t)},n=function(e,t){g&&cancelAnimationFrame(c.current),c.current=g?requestAnimationFrame(e):setTimeout(e,t)},b=function(e){if(!f.current)return!1;var n=e-a.current;return!a.current||n>=t||n<0||x&&e-o.current>=te},C=function(t){return c.current=null,v&&l.current?e(t):(l.current=u.current=null,d.current)},w=function e(){var r=Date.now();if(_&&s.current===o.current&&ne(),b(r))return C(r);if(f.current){var i=t-(r-a.current);n(e,x?Math.min(i,te-(r-o.current)):i)}},ne=function(){r&&r({})},T=function(){if(h||S){var r,s=Date.now(),ee=b(s);if(l.current=[].slice.call(arguments),u.current=i,a.current=s,y&&!p.current&&(p.current=function(){globalThis.document?.visibilityState===`hidden`&&m.current.flush()},(r=globalThis.document)==null||r.addEventListener==null||r.addEventListener(`visibilitychange`,p.current)),ee){if(!c.current&&f.current)return o.current=a.current,n(w,t),_?e(a.current):d.current;if(x)return n(w,t),e(a.current)}return c.current||n(w,t),d.current}};return T.cancel=function(){var e=c.current;e&&(g?cancelAnimationFrame(c.current):clearTimeout(c.current)),o.current=0,l.current=a.current=u.current=c.current=null,e&&r&&r({})},T.isPending=function(){return!!c.current},T.flush=function(){return c.current?C(Date.now()):d.current},T},[_,x,t,te,v,y,g,h,S,r]);return m.current=C,(0,b.useEffect)(function(){return f.current=!0,function(){var e;y&&m.current.flush(),p.current&&=((e=globalThis.document)==null||e.removeEventListener==null||e.removeEventListener(`visibilitychange`,p.current),null),f.current=!1}},[y]),C}var{withProvider:E,withContext:D}=(0,te.createSlotRecipeContext)({key:`nimbusCombobox`}),re=E(`div`,`root`),O=D(`div`,`trigger`),k=D(`div`,`leadingElement`),A=D(`div`,`content`),ie=D(`div`,`tagGroup`),ae=D(`div`,`input`),j=D(`div`,`popover`),M=D(`div`,`listBox`),oe=D(`div`,`section`),se=D(`div`,`option`),ce=D(`div`,`optionIndicator`),N=D(`div`,`optionContent`),le={en:_.t({clearSelection:`Clear selection`,options:`Options menu`,selectedValues:`Selected values`,toggleOptions:`Toggle options`}),de:_.t({clearSelection:`Auswahl löschen`,options:`Optionsmenü`,selectedValues:`Ausgewählte Werte`,toggleOptions:`Optionen anzeigen/ verbergen`}),es:_.t({clearSelection:`Borrar selección`,options:`Menú de opciones`,selectedValues:`Valores seleccionados`,toggleOptions:`Opciones de conmutación`}),"fr-FR":_.t({clearSelection:`Effacer la sélection`,options:`Menu d'options`,selectedValues:`Valeurs sélectionnées`,toggleOptions:`Basculer les options`}),"pt-BR":_.t({clearSelection:`Limpar seleção`,options:`Menu de opções`,selectedValues:`Selecionar valores`,toggleOptions:`Alternar opções`})};function ue(e){if(typeof e==`string`||typeof e==`number`)return e;if(`id`in e)return e.id;throw Error(`ComboBox - Item must have an 'id' property or provide getKey function`)}function de(e){if(typeof e==`string`)return e;if(`name`in e)return String(e.name);if(`label`in e)return String(e.label);throw Error(`ComboBox - Item must have 'name' or 'label' property, or provide a getTextValue function`)}function fe(e){return{id:e,name:e}}var pe=e=>e?e instanceof Set?e:new Set(Array.isArray(e)?e:[e]):new Set,me=e=>Array.from(e),P=(0,b.createContext)(null),F=()=>{let e=(0,b.useContext)(P);if(!e)throw Error(`Nimbus - ComboBox components must be used within ComboBox.Root`);return e},he=e=>{let{name:t,form:n,selectedKeys:r,selectionMode:i,formValue:a,allowsCustomOptions:o,collection:s,inputValue:c}=e,l=(0,b.useMemo)(()=>{if(i===`single`){let e=Array.from(r)[0];return e?a===`text`||o?Array.from(s).find(t=>t.key===e)?.textValue||c||``:String(e):``}else{let e=Array.from(r);return a===`text`||o?e.map(e=>Array.from(s).find(t=>t.key===e)?.textValue||``).filter(Boolean).join(`,`):e.join(`,`)}},[i,r,a,o,s,c]);return t?(0,x.jsx)(`input`,{type:`hidden`,name:t,form:typeof n==`string`?n:void 0,value:l}):null};he.displayName=`ComboBoxHiddenInput`;function ge(e){let n;[e,n]=s.n(e,null,C);let{selectionMode:i=`single`,size:a=`md`,getKey:c=ue,getTextValue:l=de,children:d,leadingElement:ee,inputValue:p,onInputChange:m,isLoading:h,allowsEmptyMenu:g,renderEmptyState:_,async:v,filter:S,allowsCustomOptions:w=!1,isDisabled:E=!1,isInvalid:D=!1,isRequired:O=!1,isReadOnly:k=!1}=e,[A,ie]=(0,te.useSlotRecipe)({key:`nimbusCombobox`}).splitVariantProps(e),[ae,j]=y.t(ie),M=(0,b.useRef)(null),oe=(0,b.useRef)(null),[se,ce]=(0,b.useState)([]),N=ne({getKey:c,async load({signal:e,filterText:t}){if(!v)return{items:[]};let n=v.minSearchLength??0;if(!t||t.length<n)return{items:[]};try{return{items:await v.load(t,e)}}catch(e){if(e.name===`AbortError`)throw e;let t=e;return v.onError?.(t),{items:[]}}}}),[le,fe]=(0,b.useState)(p),[pe,me]=(0,b.useState)(!1),[F,he]=(0,b.useState)([]),ge=T(e=>{me(!1),N.setFilterText(e)},v?.debounce??300),I=(0,b.useCallback)(e=>{fe(e),me(!0),ge(e)},[ge]),L=v?le:p,ve=v?I:m,R=v?pe||N.loadingState===`loading`||N.loadingState===`loadingMore`||N.loadingState===`filtering`:h,ye=v||w?!0:g,be=(0,b.useCallback)(()=>R?L?.length?`loading results for "${L}"`:`loading results`:L?.length&&v?.minSearchLength&&L.length>=v.minSearchLength?`no results for "${L}"`:v?.minSearchLength?`enter at least ${v?.minSearchLength} characters`:`type to search`,[v?.minSearchLength,R,L]),z=(0,b.useCallback)(()=>R?L?.length?`loading results for "${L}"`:`loading results`:`hit "enter" to create an option`,[R,L]),xe=(w?z:v?be:void 0)??_,B=(0,b.useMemo)(()=>{let t=v?Array.from(N.items):e.items,n=t?Array.from(t):[],r=new Set(n.map(e=>c(e))),a=[...se.filter(e=>!r.has(c(e))),...n];if(v&&i===`multiple`&&F.length>0){let e=new Set(a.map(e=>c(e)));a=[...F.filter(t=>!e.has(c(t))),...a]}return a},[v,N.items,e.items,se,F,i,c]),V=(0,b.useMemo)(()=>({selectionMode:i,size:a,getKey:c,getTextValue:l,leadingElement:ee,triggerRef:M,inputRef:oe,isLoading:R,isDisabled:E,isRequired:O,isInvalid:D,isReadOnly:k}),[i,c,l,ee,M,oe,R,a,E,O,D,k]),Se=(0,b.useMemo)(()=>{if(B)return Array.from(B).map(e=>{let t=`id`in e,n=`textValue`in e;return t&&n?e:{...e,...t?{}:{id:c(e)},...n?{}:{textValue:l(e)}}})},[B,c,l]),Ce=(0,b.useMemo)(()=>(0,x.jsx)(P.Provider,{value:V,children:(0,x.jsx)(r.r.Provider,{value:{items:Se},children:typeof d==`function`?d({isOpen:!1,isDisabled:E,isInvalid:D,isRequired:O,isReadOnly:k,defaultChildren:null}):d})}),[d,E,D,k,O,Se,V]);return(0,x.jsx)(s.t,{values:[[u.t,{}],[f.t,{}],[o.n,{}]],children:(0,x.jsx)(P.Provider,{value:V,children:(0,x.jsx)(re,{ref:n,...A,...ae,size:a,"data-disabled":E,"data-invalid":D,"data-required":O,"data-readonly":k,"data-open":e.isOpen,role:`group`,children:(0,x.jsx)(t.n,{content:Ce,children:e=>(0,x.jsx)(_e,{...j,size:a,filter:S,selectionMode:i,inputValue:L,onInputChange:ve,getKey:c,getTextValue:l,allowsEmptyMenu:ye,renderEmptyState:xe,isDisabled:E,isRequired:O,isInvalid:D,isReadOnly:k,collection:e,allowsCustomOptions:w,asyncConfig:v,onAsyncSelectedItemsChange:v&&i===`multiple`?he:void 0,onAddCustomItem:ce,onAddAsyncSelectedItem:he})})})})})}ge.displayName=`ComboBox.Root`;var _e=e=>{let t=_.n(le),{selectionMode:a=`single`,items:m,collection:h,getKey:g=ue,children:v,selectedKeys:y=[],onSelectionChange:S,disabledKeys:te,inputValue:C=``,onInputChange:w,filter:ne,placeholder:T,menuTrigger:E=`input`,shouldCloseOnBlur:D=!0,shouldCloseOnSelect:re=!0,isOpen:O,defaultOpen:k=!1,onOpenChange:A,allowsEmptyMenu:ie=!1,renderEmptyState:ae,allowsCustomOptions:j=!1,isValidNewOption:M,getNewOptionData:oe=fe,onCreateOption:se,"aria-label":ce,"aria-labelledby":N,"aria-describedby":de,isDisabled:P=!1,isRequired:ge=!1,isInvalid:_e=!1,isReadOnly:I=!1,shouldFocusWrap:L=!0,autoFocus:ve=!1,name:R,formValue:ye,validationBehavior:be=`aria`,form:z,validate:xe,isLoading:B,asyncConfig:V,onAsyncSelectedItemsChange:Se,onAddCustomItem:Ce,onAddAsyncSelectedItem:we}=e,{triggerRef:H,inputRef:U}=F(),W=n.i(),Te=n.i(),Ee=(0,b.useRef)(null),De=(0,b.useRef)(null),Oe=(0,b.useMemo)(()=>pe(y),[Array.isArray(y)?y.join(`\0`):String(y??``)]),ke=!!S,[Ae,je]=(0,b.useState)(Oe),G=ke?Oe:Ae,K=w!==void 0,[Me,q]=(0,b.useState)(()=>{if(C)return C;if(K||a!==`single`)return``;let e=Array.from(G);if(e.length===0)return``;let t=e[0];return h.getItem(t)?.textValue??``}),J=K?C:Me,Y=(0,b.useRef)(J),[Ne,Pe]=(0,b.useState)(k),X=O??Ne,[Fe,Ie]=(0,b.useState)(null),Z=(0,b.useCallback)(e=>{O===void 0&&Pe(e),A?.(e)},[O,A]),Le=(0,b.useMemo)(()=>{if(a!==`single`)return;let e=Array.from(G);if(e.length!==0)return h.getItem(e[0])?.textValue},[a,G,h]),Re=(0,b.useMemo)(()=>{if(J.trim()===``||a===`single`&&Le===J)return h;if(ne){let e=Array.from(h),t=Array.from(ne(e,J)),n=new Set(t.map(e=>e.key));return h.filter?.((e,t)=>n.has(t.key))??h}let e=J.toLowerCase();return h.filter?.(t=>t.toLowerCase().includes(e))??h},[h,J,ne,a,Le]),ze=(0,b.useMemo)(()=>a===`multiple`?Array.from(G).map(e=>h.getItem(e)?.value).filter(e=>e!==void 0):[],[a,G,h]),[Be,Ve]=(0,b.useState)(null),He=(0,b.useCallback)(()=>{let e=O===void 0?!X:!O;O===void 0?Pe(e=>!e):A?.(!O),e&&(U.current?.focus(),Ie(`first`))},[O,X,A,U]),Ue=(0,b.useCallback)(e=>{K||q(e),w?.(e),E===`input`&&e!==Y.current&&Z(!0),Y.current=e},[K,w,E,Z]),We=(0,b.useCallback)(()=>{let e=H.current?.querySelector(`[class*="nimbus-combobox__content"]`);e&&requestAnimationFrame(()=>{e.scrollTop=e.scrollHeight})},[H]),Q=(0,b.useCallback)((e,t)=>{let n=e===`all`?new Set(Array.from(h).map(e=>e.key)):e,r=t??G,i=n.size>0&&Array.from(n).every(e=>r.has(e))&&n.size<r.size;if(a===`multiple`&&n.size===1&&!i){let e=Array.from(n)[0],t=r.has(e),i=new Set(r);t?i.delete(e):i.add(e),n=i}let o=me(n);if(S?S(o):je(n),V&&a===`multiple`&&Se){let e=Array.from(n).map(e=>h.getItem(e)?.value).filter(e=>e!==void 0);Se(e)}if(a===`multiple`&&n.size>r.size&&We(),a===`single`){let e=Array.from(n)[0];if(e!==null){let t=h.getItem(e)?.textValue??``;K||(q(t),Y.current=t),w?.(t)}re&&Z(!1)}},[h,a,G,S,w,re,Z,K,V,Se,We]),$=p.t({selectionMode:a,collection:Re,selectedKeys:G,onSelectionChange:Q,disabledKeys:te}),Ge=(0,b.useCallback)(()=>{Q(new Set),K||(q(``),Y.current=``),w?.(``),Z(!0),requestAnimationFrame(()=>{U.current?.focus()})},[Q,K,w,Z,U]),Ke=(0,b.useCallback)(e=>{Ce?.(t=>[...t,e]),V&&a===`multiple`&&we?.(t=>[...t,e]);let t=g(e),n=G;if(a===`single`)Q(new Set([t]),n);else{let e=new Set(n);e.add(t),Q(e,n)}},[Ce,V,a,we,g,G,Q]),qe=(0,b.useCallback)(()=>{if(!j)return!1;let e=J.trim();if(!e||Array.from(h).some(t=>t.textValue?.toLowerCase()===e.toLowerCase())||M&&!M(e))return!1;let t=oe(e);return Ke(t),a===`multiple`?(K||(q(``),Y.current=``),w?.(``)):(K||(q(e),Y.current=e),w?.(e)),se?.(t),!0},[j,oe,M,J,h,a,w,se,Ke,K,q,Y]),Je=(0,b.useCallback)(e=>{if(P||I)return;let t=G,n=new Set(t);e.forEach(e=>n.delete(e)),Q(n,t),n.size===0&&U.current?.focus()},[G,Q,P,I,U]),Ye=(0,b.useCallback)(e=>{switch(e.key){case`ArrowDown`:if(e.preventDefault(),!X)Z(!0),Ie(`first`);else{let e=$.selectionManager.focusedKey,t=e?$.collection.getKeyAfter(e):$.collection.getFirstKey();$.selectionManager.setFocusedKey(t??$.collection.getFirstKey())}break;case`ArrowUp`:if(e.preventDefault(),!X)Z(!0),Ie(`last`);else{let e=$.selectionManager.focusedKey,t=e?$.collection.getKeyBefore(e):$.collection.getLastKey();$.selectionManager.setFocusedKey(t??$.collection.getLastKey())}break;case`Enter`:if(X&&$.selectionManager.focusedKey){e.preventDefault();let t=$.selectionManager.focusedKey;if(a===`multiple`){let e=new Set(G);e.has(t)?e.delete(t):e.add(t),Q(e)}else Q(new Set([t])),$.selectionManager.setFocusedKey(null)}else X&&!$.selectionManager.focusedKey&&j&&qe()&&e.preventDefault();break;case`Escape`:X&&(e.preventDefault(),Z(!1),$.selectionManager.setFocusedKey(null));break;case`Home`:if(X){e.preventDefault();let t=$.collection.getFirstKey();$.selectionManager.setFocusedKey(t)}break;case`End`:if(X){e.preventDefault();let t=$.collection.getLastKey();$.selectionManager.setFocusedKey(t)}break;case`Backspace`:if(J===``){let t=Array.from(G);if(t.length>0)if(e.preventDefault(),a===`single`)Q(new Set);else{let e=new Set(t);e.delete(t[t.length-1]),Q(e)}}break;default:break}},[X,$.selectionManager,$.collection,Q,Z,Ie,a,J,G,j,qe]),Xe=(0,b.useCallback)(()=>{E===`focus`&&!P&&!I&&Z(!0),a===`single`&&J&&U.current&&U.current.select()},[E,P,I,Z,a,J,U]),Ze=(0,b.useCallback)(()=>{D&&setTimeout(()=>{let e=document.activeElement,t=H.current?.contains(e),n=De.current?.contains(e);!t&&!n&&Z(!1)},150)},[D,Z,H,De]),Qe=(0,b.useRef)(null),$e=(0,b.useRef)(!1);(0,b.useEffect)(()=>{ve&&U.current&&!P&&U.current.focus()},[ve,P,U]);let et=(0,b.useRef)(X);(0,b.useEffect)(()=>{O===void 0&&et.current!==X&&(et.current=X,A?.(X))},[X,O,A]),(0,b.useEffect)(()=>{if(a!==`single`)return;let e=Array.from($.selectionManager.selectedKeys),t=e.length>0?e[0]:null,n=t===null?null:$.collection.getItem(t),r=n!==null;if(t===Qe.current&&($e.current||t===null)||(Qe.current=t,$e.current=r,t!==null&&!n))return;let i=n?.textValue??``;K?w?.(i):(q(i),Y.current=i)},[a,$.selectionManager.selectedKeys,$.collection,K,w]),(0,b.useEffect)(()=>{if(X&&Fe){let e=Fe===`first`?$.collection.getFirstKey():$.collection.getLastKey();$.selectionManager.setFocusedKey(e??null),Ie(null)}},[X,Fe,$.collection,$.selectionManager]),(0,b.useEffect)(()=>{X?$.selectionManager.setFocused(!0):($.selectionManager.setFocused(!1),$.selectionManager.setFocusedKey(null))},[X,$.selectionManager]);let tt=(0,b.useRef)(!1);(0,b.useEffect)(()=>{$.collection.size>0&&(tt.current=!0)},[$.collection.size]),(0,b.useEffect)(()=>{!X||ie||B||tt.current&&($.collection.size>0||Z(!1))},[X,ie,B,$.collection.size,Z,J]),(0,b.useEffect)(()=>{let e=H.current;if(!e)return;let t=()=>{let t=e.offsetWidth;Ve(`${t}px`)};t();let n=new ResizeObserver(t);return n.observe(e),()=>{n.disconnect()}},[H]);let nt=(0,b.useMemo)(()=>({ref:U,role:`combobox`,"aria-autocomplete":`list`,"aria-controls":a===`multiple`?`${Te} ${W}`:W,"aria-expanded":X,"aria-activedescendant":$.selectionManager.focusedKey?`${W}-option-${$.selectionManager.focusedKey}`:void 0,"aria-describedby":a===`multiple`?`${Te} ${de??``}`:de,"aria-label":ce,"aria-labelledby":N,value:J,onChange:e=>Ue(e.target.value),onKeyDown:Ye,onFocus:Xe,onBlur:Ze,disabled:P,readOnly:I,required:ge,"aria-invalid":_e,placeholder:T,name:R,form:z,validationbehavior:be,validate:xe}),[U,a,Te,W,X,$.selectionManager.focusedKey,de,ce,N,J,Ue,Ye,Xe,Ze,P,I,ge,_e,T,R,z,be,xe]),rt=(0,b.useMemo)(()=>({id:Te,"aria-label":t.format(`selectedValues`),items:ze,onRemove:Je}),[Te,t,ze,Je]),it=G.size>0,at=(0,b.useMemo)(()=>({slots:{toggle:{onPress:He,"aria-label":t.format(`toggleOptions`),isDisabled:P||I,isPressed:X},clear:{onPress:Ge,"aria-label":t.format(`clearSelection`),style:it?void 0:{display:`none`},isDisabled:P||I||!it}}}),[He,t,P,I,X,Ge,it]),ot=(0,b.useCallback)(e=>{e||Z(!1)},[Z]),st=(0,b.useMemo)(()=>({"--nimbus-combobox-trigger-width":Be}),[Be]),ct=(0,b.useMemo)(()=>({isOpen:X,onOpenChange:ot,ref:De,triggerRef:H,scrollRef:Ee,isNonModal:!0,trigger:`ComboBox`,placement:`bottom start`,style:st,clearContexts:[l.t,u.t,f.t,ee.n,d.n]}),[X,ot,De,H,Ee,st]),lt=(0,b.useMemo)(()=>({shouldUseVirtualFocus:!0}),[]),ut=(0,b.useMemo)(()=>({items:m,id:W,ref:Ee,renderEmptyState:ae,shouldFocusWrap:L,"aria-label":t.format(`options`)}),[m,W,Ee,ae,L,t]);return(0,x.jsxs)(s.t,{values:[[f.t,nt],[o.n,rt],[u.t,at],[i.d,ct],[c.n,lt],[r.r,ut],[r.n,$]],children:[(0,x.jsx)(he,{name:R,form:z,selectedKeys:G,selectionMode:a,formValue:ye,allowsCustomOptions:j,collection:$.collection,inputValue:J}),v]})},I=e=>{let[t,n]=y.t(e),r=(0,b.useContext)(f.t),{inputRef:i}=F(),a=``,o=``;r&&typeof r==`object`&&`value`in r&&(a=r.value||``,o=r.placeholder||``);let s=Math.max(a.length||o.length||1,1);return(0,x.jsx)(ae,{asChild:!0,...t,children:(0,x.jsx)(f.n,{ref:i,...n,size:s,"data-empty":!(a.length||o.length)})})};I.displayName=`ComboBox.Input`;var L=({children:e})=>(0,x.jsx)(k,{children:e}),ve=e=>{let{selectionMode:t,size:n,getKey:r,getTextValue:i,isDisabled:a,isReadOnly:s}=F(),[c,l]=y.t(e),u=(0,b.useContext)(o.n),d=(u&&`items`in u?u.items:void 0)??[];return t===`multiple`?(0,x.jsx)(ie,{...c,...l,asChild:!0,children:(0,x.jsx)(o.t.Root,{size:n,children:(0,x.jsx)(o.t.TagList,{items:d,display:`contents`,children:e=>{let t=r(e),n=i(e);return(0,x.jsx)(o.t.Tag,{id:t,textValue:n,isDisabled:a||s,maxW:`100%`,children:n})}})})}):null};ve.displayName=`ComboBox.TagGroup`;var R=({children:e,...t})=>{let{triggerRef:n,leadingElement:r,inputRef:i,isLoading:a,isDisabled:o}=F();return(0,x.jsxs)(O,{ref:n,onClick:e=>{!o&&e.target instanceof HTMLElement&&!e.target.closest(`button`)&&i.current?.focus()},...t,children:[r&&(0,x.jsx)(L,{children:r}),(0,x.jsxs)(A,{children:[(0,x.jsx)(ve,{}),(0,x.jsx)(I,{})]}),(0,x.jsx)(h.t,{slot:`clear`,size:`2xs`,variant:`ghost`,colorPalette:`primary`,children:(0,x.jsx)(S.Close,{})}),(0,x.jsx)(h.t,{slot:`toggle`,size:`2xs`,variant:`ghost`,colorPalette:`neutral`,excludeFromTabOrder:!0,children:a?(0,x.jsx)(g.t,{size:`xs`,margin:`50`}):(0,x.jsx)(S.KeyboardArrowDown,{})}),e]})};R.displayName=`ComboBox.Trigger`;var ye=({children:e,ref:t,...n})=>{let[r,i]=y.t(n);return(0,x.jsx)(j,{asChild:!0,...r,children:(0,x.jsx)(v.t,{ref:t,isNonModal:!0,autoFocus:!1,...i,children:e})})};ye.displayName=`ComboBox.Popover`;function be({children:e,ref:t,...n}){let[i,a]=y.t(n),o=typeof e==`function`?t=>{let n=e(t),r=t;return(0,b.isValidElement)(n)&&(r.id||r.textValue)?(0,b.cloneElement)(n,{...n.props,...r.id?{id:r.id}:{},...r.textValue?{textValue:r.textValue}:{}}):n}:e;return(0,x.jsx)(M,{...i,ref:t,asChild:!0,children:(0,x.jsx)(r.t,{...a,children:o})})}be.displayName=`ComboBox.ListBox`;function z({children:e,ref:t,...n}){let{textValue:i,...a}=n,[o,s]=y.t(a),c=i??(typeof e==`string`?e:void 0);return(0,x.jsx)(se,{...o,asChild:!0,children:(0,x.jsx)(r.i,{ref:t,...s,textValue:c,children:t=>{let n=typeof e==`function`?e({...t}):e;return t.selectionMode===`multiple`?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(ce,{children:(0,x.jsx)(`span`,{"data-selected":t.isSelected,children:t.isSelected&&(0,x.jsx)(S.Check,{})})}),(0,x.jsx)(N,{children:n})]}):(0,x.jsx)(x.Fragment,{children:n})}})})}z.displayName=`ComboBox.Option`;function xe({children:e,label:n,items:i,ref:o,...s}){if(i&&typeof e!=`function`)throw Error(`ComboBox.Section: When "items" is provided, "children" must be a function`);return(0,x.jsxs)(r.a,{ref:o,...s,children:[n&&(0,x.jsx)(oe,{asChild:!0,children:(0,x.jsx)(a.t,{children:n})}),i?(0,x.jsx)(t.i,{items:i,children:t=>typeof e==`function`?e(t):null}):e]})}xe.displayName=`ComboBox.Section`;function B(e,t){if(!t.trim())return e;let n=t.toLowerCase(),r=[];for(let t of e)t.textValue.toLowerCase().includes(n)&&r.push(t);return r}function V(e,t){if(!t.trim())return e;let n=t.toLowerCase(),r=[];for(let t of e)t.textValue.toLowerCase().startsWith(n)&&r.push(t);return r}function Se(e,t){if(!t.trim())return e;let n=[];for(let r of e)r.textValue.includes(t)&&n.push(r);return n}function Ce(e,t){if(!t.trim())return e;let n=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),r=RegExp(`\\b${n}`,`i`),i=[];for(let t of e)r.test(t.textValue)&&i.push(t);return i}function we(e,t){if(!t.trim())return e;let n=t.toLowerCase(),r=[];for(let t of e){let e=t.textValue.toLowerCase(),i=0;for(let t=0;t<e.length&&i<n.length;t++)e[t]===n[i]&&i++;i===n.length&&r.push(t)}return r}function H(e){return(t,n)=>{if(!n.trim())return t;let r=n.toLowerCase(),i=[];for(let n of t){let t=n.value;t&&e.some(e=>{let n=e.split(`.`).reduce((e,t)=>e&&typeof e==`object`?e[t]:void 0,t);return n!=null&&String(n).toLowerCase().includes(r)})&&i.push(n)}return i}}function U(e){return(t,n)=>{if(!n.trim())return t;let r=[];for(let i of t){let t=e(i,n);t>0&&r.push({node:i,score:t})}return r.sort((e,t)=>t.score-e.score),r.map(e=>e.node)}}function W(e=B){return(t,n)=>{if(!n.trim())return t;let r=n.split(/\s+/).filter(e=>e.length>0);if(r.length===0)return t;let i=new Set;for(let n of r){let r=e(t,n);for(let e of r)i.add(e.key)}let a=[];for(let e of t)i.has(e.key)&&a.push(e);return a}}function Te(e){return(t,n)=>{if(!n.trim())return t;let r=[],i=null,a=[],o=()=>{i&&a.length>0&&(r.push(i),r.push(...a)),a.length=0};for(let r of t)if(r.type===`section`)o(),i=r;else{let t=Array.from(e([r],n));t.length>0&&a.push(...t)}return o(),r}}var Ee={Root:ge,Trigger:R,Popover:ye,ListBox:be,Option:z,Section:xe,filters:{filterByText:B,filterByStartsWith:V,filterByCaseSensitive:Se,filterByWordBoundary:Ce,filterByFuzzy:we,createMultiPropertyFilter:H,createRankedFilter:U,createMultiTermFilter:W,createSectionAwareFilter:Te}};Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return Ee}});
2
+ //# sourceMappingURL=combobox-3_YvuwlN.cjs.js.map