@commercetools/nimbus 0.0.12-rc2 → 0.0.12-rc4

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 (473) hide show
  1. package/dist/chunks/accordion-EDJoghXQ.cjs.js +2 -0
  2. package/dist/chunks/{accordion-Be--VNW6.cjs.js.map → accordion-EDJoghXQ.cjs.js.map} +1 -1
  3. package/dist/chunks/{accordion-Drl_Y6QC.es.js → accordion-UL4pfC2d.es.js} +24 -24
  4. package/dist/chunks/{accordion-Drl_Y6QC.es.js.map → accordion-UL4pfC2d.es.js.map} +1 -1
  5. package/dist/chunks/alert-BhoRNIWA.cjs.js +2 -0
  6. package/dist/chunks/{alert-DF3J6Yj7.cjs.js.map → alert-BhoRNIWA.cjs.js.map} +1 -1
  7. package/dist/chunks/{alert-9-Hp2KQ4.es.js → alert-D-ddqYG4.es.js} +25 -26
  8. package/dist/chunks/{alert-9-Hp2KQ4.es.js.map → alert-D-ddqYG4.es.js.map} +1 -1
  9. package/dist/chunks/{avatar-DXWmY247.es.js → avatar-Bu12OMzz.es.js} +6 -6
  10. package/dist/chunks/{avatar-DXWmY247.es.js.map → avatar-Bu12OMzz.es.js.map} +1 -1
  11. package/dist/chunks/avatar-C2KIWewd.cjs.js +2 -0
  12. package/dist/chunks/{avatar-DEAravTR.cjs.js.map → avatar-C2KIWewd.cjs.js.map} +1 -1
  13. package/dist/chunks/avatar.recipe-D3--Rkmb.cjs.js +2 -0
  14. package/dist/chunks/{avatar.recipe-CQivdbFs.cjs.js.map → avatar.recipe-D3--Rkmb.cjs.js.map} +1 -1
  15. package/dist/chunks/{avatar.recipe-CxXQlkH6.es.js → avatar.recipe-DfyPWbFZ.es.js} +2 -2
  16. package/dist/chunks/{avatar.recipe-CxXQlkH6.es.js.map → avatar.recipe-DfyPWbFZ.es.js.map} +1 -1
  17. package/dist/chunks/{badge-Cg7jASs5.es.js → badge-BJd-Q81M.es.js} +5 -6
  18. package/dist/chunks/{badge-Cg7jASs5.es.js.map → badge-BJd-Q81M.es.js.map} +1 -1
  19. package/dist/chunks/badge-CCrBksXu.cjs.js +2 -0
  20. package/dist/chunks/{badge-BjhZ-byo.cjs.js.map → badge-CCrBksXu.cjs.js.map} +1 -1
  21. package/dist/chunks/box-CWni3A32.cjs.js +2 -0
  22. package/dist/chunks/box-CWni3A32.cjs.js.map +1 -0
  23. package/dist/chunks/box-DuBoAZvq.es.js +12 -0
  24. package/dist/chunks/box-DuBoAZvq.es.js.map +1 -0
  25. package/dist/chunks/{button-DNPDogwN.es.js → button-CRUdodZm.es.js} +14 -14
  26. package/dist/chunks/{button-DNPDogwN.es.js.map → button-CRUdodZm.es.js.map} +1 -1
  27. package/dist/chunks/button-CU8FW_Pl.cjs.js +2 -0
  28. package/dist/chunks/{button-BfmWlfwH.cjs.js.map → button-CU8FW_Pl.cjs.js.map} +1 -1
  29. package/dist/chunks/button.recipe-Cqkj3VMo.cjs.js +2 -0
  30. package/dist/chunks/{button.recipe-ClPhJ93N.cjs.js.map → button.recipe-Cqkj3VMo.cjs.js.map} +1 -1
  31. package/dist/chunks/{button.recipe-D9e9Gh9L.es.js → button.recipe-NdTb5f8M.es.js} +2 -2
  32. package/dist/chunks/{button.recipe-D9e9Gh9L.es.js.map → button.recipe-NdTb5f8M.es.js.map} +1 -1
  33. package/dist/chunks/calendar-DJKWldpV.cjs.js +2 -0
  34. package/dist/chunks/{calendar-BgHBd6Dh.cjs.js.map → calendar-DJKWldpV.cjs.js.map} +1 -1
  35. package/dist/chunks/{calendar-DGKSCKht.es.js → calendar-DzwFtg1t.es.js} +19 -20
  36. package/dist/chunks/{calendar-DGKSCKht.es.js.map → calendar-DzwFtg1t.es.js.map} +1 -1
  37. package/dist/chunks/{card-DX8r4prk.es.js → card-BfUdf1Fy.es.js} +23 -24
  38. package/dist/chunks/{card-DX8r4prk.es.js.map → card-BfUdf1Fy.es.js.map} +1 -1
  39. package/dist/chunks/card-DeWTV05B.cjs.js +2 -0
  40. package/dist/chunks/{card-DgvP36g1.cjs.js.map → card-DeWTV05B.cjs.js.map} +1 -1
  41. package/dist/chunks/checkbox-6nLo9Jy2.cjs.js +2 -0
  42. package/dist/chunks/{checkbox-BbdENF1i.cjs.js.map → checkbox-6nLo9Jy2.cjs.js.map} +1 -1
  43. package/dist/chunks/{checkbox-BnfwQBT0.es.js → checkbox-GmYxVrZx.es.js} +32 -32
  44. package/dist/chunks/{checkbox-BnfwQBT0.es.js.map → checkbox-GmYxVrZx.es.js.map} +1 -1
  45. package/dist/chunks/code-Dl7u63Zn.es.js +6 -0
  46. package/dist/chunks/code-Dl7u63Zn.es.js.map +1 -0
  47. package/dist/chunks/code-q31e3vT2.cjs.js +2 -0
  48. package/dist/chunks/code-q31e3vT2.cjs.js.map +1 -0
  49. package/dist/chunks/combobox-DtPDxCo3.cjs.js +2 -0
  50. package/dist/chunks/{combobox-DIKvq4tw.cjs.js.map → combobox-DtPDxCo3.cjs.js.map} +1 -1
  51. package/dist/chunks/{combobox-BS6TWlhm.es.js → combobox-gIwba2QG.es.js} +68 -68
  52. package/dist/chunks/{combobox-BS6TWlhm.es.js.map → combobox-gIwba2QG.es.js.map} +1 -1
  53. package/dist/chunks/data-table-Cpk3q34E.cjs.js +2 -0
  54. package/dist/chunks/data-table-Cpk3q34E.cjs.js.map +1 -0
  55. package/dist/chunks/{data-table-CWSmm1Cq.es.js → data-table-mXLxUWQz.es.js} +1204 -1282
  56. package/dist/chunks/data-table-mXLxUWQz.es.js.map +1 -0
  57. package/dist/chunks/date-input-D5unoyMt.es.js +16 -0
  58. package/dist/chunks/{date-input-BR6daiWa.es.js.map → date-input-D5unoyMt.es.js.map} +1 -1
  59. package/dist/chunks/date-input-DJ_aFB9i.cjs.js +2 -0
  60. package/dist/chunks/{date-input-CKu2_a2x.cjs.js.map → date-input-DJ_aFB9i.cjs.js.map} +1 -1
  61. package/dist/chunks/{date-picker-DqvZ_FI0.es.js → date-picker-CMqAI1lp.es.js} +25 -25
  62. package/dist/chunks/{date-picker-DqvZ_FI0.es.js.map → date-picker-CMqAI1lp.es.js.map} +1 -1
  63. package/dist/chunks/date-picker-f3TylaP5.cjs.js +2 -0
  64. package/dist/chunks/{date-picker-DQ6_2mzc.cjs.js.map → date-picker-f3TylaP5.cjs.js.map} +1 -1
  65. package/dist/chunks/date-range-picker-CxsPpWyX.cjs.js +2 -0
  66. package/dist/chunks/{date-range-picker-i33UHqUE.cjs.js.map → date-range-picker-CxsPpWyX.cjs.js.map} +1 -1
  67. package/dist/chunks/{date-range-picker-Dh-F7d4e.es.js → date-range-picker-Dtji64Q9.es.js} +14 -14
  68. package/dist/chunks/{date-range-picker-Dh-F7d4e.es.js.map → date-range-picker-Dtji64Q9.es.js.map} +1 -1
  69. package/dist/chunks/dialog-CVa-E9-A.cjs.js +2 -0
  70. package/dist/chunks/dialog-CVa-E9-A.cjs.js.map +1 -0
  71. package/dist/chunks/dialog-DTSuKnyk.es.js +34 -0
  72. package/dist/chunks/dialog-DTSuKnyk.es.js.map +1 -0
  73. package/dist/chunks/{divider-Cjs3ESH7.es.js → divider--BAm3ca4.es.js} +7 -8
  74. package/dist/chunks/{divider-Cjs3ESH7.es.js.map → divider--BAm3ca4.es.js.map} +1 -1
  75. package/dist/chunks/divider-BuizjeAj.cjs.js +2 -0
  76. package/dist/chunks/{divider-DU351gdE.cjs.js.map → divider-BuizjeAj.cjs.js.map} +1 -1
  77. package/dist/chunks/emotion-is-prop-valid.esm-Bb7Ou5_X.cjs.js +2 -0
  78. package/dist/chunks/emotion-is-prop-valid.esm-Bb7Ou5_X.cjs.js.map +1 -0
  79. package/dist/chunks/emotion-is-prop-valid.esm-qvxbqhmq.es.js +16 -0
  80. package/dist/chunks/emotion-is-prop-valid.esm-qvxbqhmq.es.js.map +1 -0
  81. package/dist/chunks/{extractStyleProps-BFdEZDYW.cjs.js → extractStyleProps-CZpHKp1I.cjs.js} +2 -2
  82. package/dist/chunks/{extractStyleProps-BFdEZDYW.cjs.js.map → extractStyleProps-CZpHKp1I.cjs.js.map} +1 -1
  83. package/dist/chunks/{extractStyleProps-D6vCCKog.es.js → extractStyleProps-vA4cNUoc.es.js} +2 -2
  84. package/dist/chunks/{extractStyleProps-D6vCCKog.es.js.map → extractStyleProps-vA4cNUoc.es.js.map} +1 -1
  85. package/dist/chunks/{form-field-hq4IMj9f.es.js → form-field-Dtcfgzyo.es.js} +30 -31
  86. package/dist/chunks/{form-field-hq4IMj9f.es.js.map → form-field-Dtcfgzyo.es.js.map} +1 -1
  87. package/dist/chunks/{form-field-SFG0Jvp7.cjs.js → form-field-DxcGAb23.cjs.js} +3 -3
  88. package/dist/chunks/{form-field-SFG0Jvp7.cjs.js.map → form-field-DxcGAb23.cjs.js.map} +1 -1
  89. package/dist/chunks/grid-Chuw1xje.cjs.js +2 -0
  90. package/dist/chunks/{grid-CXpKN2OR.cjs.js.map → grid-Chuw1xje.cjs.js.map} +1 -1
  91. package/dist/chunks/grid-De8qjf98.es.js +14 -0
  92. package/dist/chunks/{grid-B3Ggy_FW.es.js.map → grid-De8qjf98.es.js.map} +1 -1
  93. package/dist/chunks/{icon-BDsjJ4Zi.es.js → icon-BoRbJStV.es.js} +9 -10
  94. package/dist/chunks/{icon-BDsjJ4Zi.es.js.map → icon-BoRbJStV.es.js.map} +1 -1
  95. package/dist/chunks/icon-Cny8ZtnX.cjs.js +2 -0
  96. package/dist/chunks/{icon-DHoLo7_S.cjs.js.map → icon-Cny8ZtnX.cjs.js.map} +1 -1
  97. package/dist/chunks/{icon-button-EonZGbth.es.js → icon-button-C20Gw8gQ.es.js} +2 -2
  98. package/dist/chunks/{icon-button-EonZGbth.es.js.map → icon-button-C20Gw8gQ.es.js.map} +1 -1
  99. package/dist/chunks/{icon-button-D0NyGafI.cjs.js → icon-button-Cc0MkBbk.cjs.js} +2 -2
  100. package/dist/chunks/{icon-button-D0NyGafI.cjs.js.map → icon-button-Cc0MkBbk.cjs.js.map} +1 -1
  101. package/dist/chunks/{icon-toggle-button-CcEARpnu.es.js → icon-toggle-button-CgHQMDs3.es.js} +2 -2
  102. package/dist/chunks/{icon-toggle-button-CcEARpnu.es.js.map → icon-toggle-button-CgHQMDs3.es.js.map} +1 -1
  103. package/dist/chunks/{icon-toggle-button-yeQuEUBY.cjs.js → icon-toggle-button-D-C99Q0s.cjs.js} +2 -2
  104. package/dist/chunks/{icon-toggle-button-yeQuEUBY.cjs.js.map → icon-toggle-button-D-C99Q0s.cjs.js.map} +1 -1
  105. package/dist/chunks/image-CGOYoc2s.cjs.js +2 -0
  106. package/dist/chunks/{image-bt28epM5.cjs.js.map → image-CGOYoc2s.cjs.js.map} +1 -1
  107. package/dist/chunks/image-DRigLU80.es.js +8 -0
  108. package/dist/chunks/{image-MeWmLoV0.es.js.map → image-DRigLU80.es.js.map} +1 -1
  109. package/dist/chunks/index-C8Yrk__l.cjs.js +4 -0
  110. package/dist/chunks/{index-sFOzzmTG.cjs.js.map → index-C8Yrk__l.cjs.js.map} +1 -1
  111. package/dist/chunks/{index-Dvel3Oj5.es.js → index-jAeaCpRm.es.js} +7 -7
  112. package/dist/chunks/index-jAeaCpRm.es.js.map +1 -0
  113. package/dist/chunks/kbd-BXN9aXRE.es.js +17 -0
  114. package/dist/chunks/{kbd-Bc97Bwq3.es.js.map → kbd-BXN9aXRE.es.js.map} +1 -1
  115. package/dist/chunks/kbd-DFeaXiKY.cjs.js +2 -0
  116. package/dist/chunks/{kbd-BlZ2RGfa.cjs.js.map → kbd-DFeaXiKY.cjs.js.map} +1 -1
  117. package/dist/chunks/{kbd.recipe-BTW0MQqx.es.js → kbd.recipe-DXiyvrAP.es.js} +2 -2
  118. package/dist/chunks/{kbd.recipe-BTW0MQqx.es.js.map → kbd.recipe-DXiyvrAP.es.js.map} +1 -1
  119. package/dist/chunks/kbd.recipe-DjQgeTG_.cjs.js +2 -0
  120. package/dist/chunks/{kbd.recipe-9kxAU5ro.cjs.js.map → kbd.recipe-DjQgeTG_.cjs.js.map} +1 -1
  121. package/dist/chunks/{link-DjzrPyx3.es.js → link-CFK97sc0.es.js} +4 -4
  122. package/dist/chunks/{link-DjzrPyx3.es.js.map → link-CFK97sc0.es.js.map} +1 -1
  123. package/dist/chunks/link-DWa1zIUJ.cjs.js +2 -0
  124. package/dist/chunks/{link-DzUonoQg.cjs.js.map → link-DWa1zIUJ.cjs.js.map} +1 -1
  125. package/dist/chunks/link.recipe-Co4-fl4U.cjs.js +2 -0
  126. package/dist/chunks/{link.recipe-BfCxtKjL.cjs.js.map → link.recipe-Co4-fl4U.cjs.js.map} +1 -1
  127. package/dist/chunks/{link.recipe-BRnFQ5bP.es.js → link.recipe-pXiGIJtI.es.js} +2 -2
  128. package/dist/chunks/{link.recipe-BRnFQ5bP.es.js.map → link.recipe-pXiGIJtI.es.js.map} +1 -1
  129. package/dist/chunks/list-DJC9BmoC.cjs.js +2 -0
  130. package/dist/chunks/list-DJC9BmoC.cjs.js.map +1 -0
  131. package/dist/chunks/list-Nz5KjWzs.es.js +13 -0
  132. package/dist/chunks/list-Nz5KjWzs.es.js.map +1 -0
  133. package/dist/chunks/{loading-spinner-DuBf2cIy.es.js → loading-spinner-CvggCl-H.es.js} +6 -7
  134. package/dist/chunks/{loading-spinner-DuBf2cIy.es.js.map → loading-spinner-CvggCl-H.es.js.map} +1 -1
  135. package/dist/chunks/loading-spinner-DdYXuYkg.cjs.js +2 -0
  136. package/dist/chunks/{loading-spinner-VVQyl725.cjs.js.map → loading-spinner-DdYXuYkg.cjs.js.map} +1 -1
  137. package/dist/chunks/{menu-CKJfYhIU.es.js → menu-8g9Hn1nm.es.js} +14 -14
  138. package/dist/chunks/{menu-CKJfYhIU.es.js.map → menu-8g9Hn1nm.es.js.map} +1 -1
  139. package/dist/chunks/menu-Bm1u-R6o.cjs.js +2 -0
  140. package/dist/chunks/{menu-CImIQ6uJ.cjs.js.map → menu-Bm1u-R6o.cjs.js.map} +1 -1
  141. package/dist/chunks/{multiline-text-input-DoHeA-kt.es.js → multiline-text-input-BGnvpB1r.es.js} +12 -14
  142. package/dist/chunks/{multiline-text-input-DoHeA-kt.es.js.map → multiline-text-input-BGnvpB1r.es.js.map} +1 -1
  143. package/dist/chunks/multiline-text-input-sXIlwrvT.cjs.js +12 -0
  144. package/dist/chunks/{multiline-text-input-jdvlKAq1.cjs.js.map → multiline-text-input-sXIlwrvT.cjs.js.map} +1 -1
  145. package/dist/chunks/{nimbus-provider-DKRUbH11.es.js → nimbus-provider-CybdU89B.es.js} +4 -4
  146. package/dist/chunks/{nimbus-provider-DKRUbH11.es.js.map → nimbus-provider-CybdU89B.es.js.map} +1 -1
  147. package/dist/chunks/nimbus-provider-D3DvYEDv.cjs.js +2 -0
  148. package/dist/chunks/{nimbus-provider-CBZCiFEH.cjs.js.map → nimbus-provider-D3DvYEDv.cjs.js.map} +1 -1
  149. package/dist/chunks/number-input-CPnA0dO-.cjs.js +2 -0
  150. package/dist/chunks/{number-input-CnOvkmap.cjs.js.map → number-input-CPnA0dO-.cjs.js.map} +1 -1
  151. package/dist/chunks/{number-input-BEn83Z9q.es.js → number-input-CzObpfFa.es.js} +11 -11
  152. package/dist/chunks/{number-input-BEn83Z9q.es.js.map → number-input-CzObpfFa.es.js.map} +1 -1
  153. package/dist/chunks/{password-input-DSeCpNT-.cjs.js → password-input-BqhrDjyW.cjs.js} +2 -2
  154. package/dist/chunks/{password-input-DSeCpNT-.cjs.js.map → password-input-BqhrDjyW.cjs.js.map} +1 -1
  155. package/dist/chunks/{password-input-BGPsQ2R9.es.js → password-input-C_rdTND7.es.js} +5 -5
  156. package/dist/chunks/{password-input-BGPsQ2R9.es.js.map → password-input-C_rdTND7.es.js.map} +1 -1
  157. package/dist/chunks/progress-bar-CrS1rODC.cjs.js +2 -0
  158. package/dist/chunks/{progress-bar-CByPgKbP.cjs.js.map → progress-bar-CrS1rODC.cjs.js.map} +1 -1
  159. package/dist/chunks/{progress-bar-BsuOolTl.es.js → progress-bar-pPWJ1Sn8.es.js} +19 -19
  160. package/dist/chunks/{progress-bar-BsuOolTl.es.js.map → progress-bar-pPWJ1Sn8.es.js.map} +1 -1
  161. package/dist/chunks/radio-input-BTEXrXaF.cjs.js +2 -0
  162. package/dist/chunks/{radio-input-VMfD6a_K.cjs.js.map → radio-input-BTEXrXaF.cjs.js.map} +1 -1
  163. package/dist/chunks/{radio-input-CDYvzPq7.es.js → radio-input-OpbQD2zP.es.js} +42 -42
  164. package/dist/chunks/{radio-input-CDYvzPq7.es.js.map → radio-input-OpbQD2zP.es.js.map} +1 -1
  165. package/dist/chunks/{range-calendar-DxPBRKpW.es.js → range-calendar-BOP_J_5a.es.js} +21 -22
  166. package/dist/chunks/{range-calendar-DxPBRKpW.es.js.map → range-calendar-BOP_J_5a.es.js.map} +1 -1
  167. package/dist/chunks/range-calendar-CFotnBzs.cjs.js +2 -0
  168. package/dist/chunks/{range-calendar-CnaQY0pH.cjs.js.map → range-calendar-CFotnBzs.cjs.js.map} +1 -1
  169. package/dist/chunks/{rich-text-input-DmwKaXzi.cjs.js → rich-text-input-CItP9BzJ.cjs.js} +2 -2
  170. package/dist/chunks/{rich-text-input-DmwKaXzi.cjs.js.map → rich-text-input-CItP9BzJ.cjs.js.map} +1 -1
  171. package/dist/chunks/{rich-text-input-B6OYMXXr.es.js → rich-text-input-CgrxAPHc.es.js} +11 -11
  172. package/dist/chunks/{rich-text-input-B6OYMXXr.es.js.map → rich-text-input-CgrxAPHc.es.js.map} +1 -1
  173. package/dist/chunks/{select-X7n0xTYd.es.js → select-CAeD_ZuZ.es.js} +67 -68
  174. package/dist/chunks/{select-X7n0xTYd.es.js.map → select-CAeD_ZuZ.es.js.map} +1 -1
  175. package/dist/chunks/select-Coyt1pJN.cjs.js +2 -0
  176. package/dist/chunks/{select-DT9EbJgb.cjs.js.map → select-Coyt1pJN.cjs.js.map} +1 -1
  177. package/dist/chunks/simple-grid-Cd2MJxSX.cjs.js +2 -0
  178. package/dist/chunks/simple-grid-Cd2MJxSX.cjs.js.map +1 -0
  179. package/dist/chunks/simple-grid-DU5v66TG.es.js +15 -0
  180. package/dist/chunks/simple-grid-DU5v66TG.es.js.map +1 -0
  181. package/dist/chunks/{split-button-i2Ezbf3P.cjs.js → split-button-BYrr5vRr.cjs.js} +2 -2
  182. package/dist/chunks/{split-button-i2Ezbf3P.cjs.js.map → split-button-BYrr5vRr.cjs.js.map} +1 -1
  183. package/dist/chunks/{split-button-BWXYRDuQ.es.js → split-button-j2bgcP59.es.js} +5 -5
  184. package/dist/chunks/{split-button-BWXYRDuQ.es.js.map → split-button-j2bgcP59.es.js.map} +1 -1
  185. package/dist/chunks/stack-CIN13EDn.cjs.js +2 -0
  186. package/dist/chunks/stack-CIN13EDn.cjs.js.map +1 -0
  187. package/dist/chunks/stack-CoNreM7B.es.js +11 -0
  188. package/dist/chunks/stack-CoNreM7B.es.js.map +1 -0
  189. package/dist/chunks/switch-BgNpbn2e.cjs.js +2 -0
  190. package/dist/chunks/{switch-kNksAQM3.cjs.js.map → switch-BgNpbn2e.cjs.js.map} +1 -1
  191. package/dist/chunks/{switch-rkewogOb.es.js → switch-Cid4U3m8.es.js} +8 -8
  192. package/dist/chunks/{switch-rkewogOb.es.js.map → switch-Cid4U3m8.es.js.map} +1 -1
  193. package/dist/chunks/tag-group-B3YSTBpb.cjs.js +2 -0
  194. package/dist/chunks/{tag-group-iRBYcxt6.cjs.js.map → tag-group-B3YSTBpb.cjs.js.map} +1 -1
  195. package/dist/chunks/{tag-group-DqTm8v26.es.js → tag-group-CeNHz5QQ.es.js} +50 -50
  196. package/dist/chunks/{tag-group-DqTm8v26.es.js.map → tag-group-CeNHz5QQ.es.js.map} +1 -1
  197. package/dist/chunks/text-CCW9kDT_.cjs.js +2 -0
  198. package/dist/chunks/text-CCW9kDT_.cjs.js.map +1 -0
  199. package/dist/chunks/text-DfQpupDi.es.js +24 -0
  200. package/dist/chunks/text-DfQpupDi.es.js.map +1 -0
  201. package/dist/chunks/text-input-C2y4O13I.cjs.js +2 -0
  202. package/dist/chunks/{text-input-D7SdSWpG.cjs.js.map → text-input-C2y4O13I.cjs.js.map} +1 -1
  203. package/dist/chunks/text-input-TZXg0lEQ.es.js +18 -0
  204. package/dist/chunks/{text-input-Dinn4J2V.es.js.map → text-input-TZXg0lEQ.es.js.map} +1 -1
  205. package/dist/chunks/{time-input-Us0JugnD.es.js → time-input-CI_HoOGU.es.js} +6 -8
  206. package/dist/chunks/{time-input-Us0JugnD.es.js.map → time-input-CI_HoOGU.es.js.map} +1 -1
  207. package/dist/chunks/time-input-cHUvGWDc.cjs.js +2 -0
  208. package/dist/chunks/{time-input-BqTsxXMD.cjs.js.map → time-input-cHUvGWDc.cjs.js.map} +1 -1
  209. package/dist/chunks/toggle-button-C9ezVsSp.cjs.js +2 -0
  210. package/dist/chunks/{toggle-button-CsVyAh8N.cjs.js.map → toggle-button-C9ezVsSp.cjs.js.map} +1 -1
  211. package/dist/chunks/toggle-button-a0gCembi.es.js +29 -0
  212. package/dist/chunks/{toggle-button-RS4Z6UNN.es.js.map → toggle-button-a0gCembi.es.js.map} +1 -1
  213. package/dist/chunks/toggle-button-group-DX134q7m.cjs.js +2 -0
  214. package/dist/chunks/{toggle-button-group-LddoXszz.cjs.js.map → toggle-button-group-DX134q7m.cjs.js.map} +1 -1
  215. package/dist/chunks/{toggle-button-group-DHMnBWSg.es.js → toggle-button-group-jRdpdYyd.es.js} +14 -15
  216. package/dist/chunks/{toggle-button-group-DHMnBWSg.es.js.map → toggle-button-group-jRdpdYyd.es.js.map} +1 -1
  217. package/dist/chunks/{toolbar-DcUEC_uE.cjs.js → toolbar-CLGq6IO7.cjs.js} +2 -2
  218. package/dist/chunks/{toolbar-DcUEC_uE.cjs.js.map → toolbar-CLGq6IO7.cjs.js.map} +1 -1
  219. package/dist/chunks/{toolbar-DI1eQG-1.es.js → toolbar-hpBfKrTl.es.js} +3 -3
  220. package/dist/chunks/{toolbar-DI1eQG-1.es.js.map → toolbar-hpBfKrTl.es.js.map} +1 -1
  221. package/dist/chunks/{tooltip-CTvNYvui.es.js → tooltip-B1YdruCE.es.js} +4 -4
  222. package/dist/chunks/{tooltip-CTvNYvui.es.js.map → tooltip-B1YdruCE.es.js.map} +1 -1
  223. package/dist/chunks/tooltip-g8-hEdZp.cjs.js +2 -0
  224. package/dist/chunks/{tooltip-CIAEV4_B.cjs.js.map → tooltip-g8-hEdZp.cjs.js.map} +1 -1
  225. package/dist/chunks/{tooltip.recipe-DsVUEki2.es.js → tooltip.recipe-Cqi_tgR5.es.js} +2 -2
  226. package/dist/chunks/{tooltip.recipe-DsVUEki2.es.js.map → tooltip.recipe-Cqi_tgR5.es.js.map} +1 -1
  227. package/dist/chunks/tooltip.recipe-dx7DAJbZ.cjs.js +2 -0
  228. package/dist/chunks/{tooltip.recipe-VqGdDqQD.cjs.js.map → tooltip.recipe-dx7DAJbZ.cjs.js.map} +1 -1
  229. package/dist/components/accordion.cjs +1 -1
  230. package/dist/components/accordion.es.js +1 -1
  231. package/dist/components/alert.cjs +1 -1
  232. package/dist/components/alert.es.js +1 -1
  233. package/dist/components/avatar.cjs +1 -1
  234. package/dist/components/avatar.es.js +1 -1
  235. package/dist/components/badge.cjs +1 -1
  236. package/dist/components/badge.es.js +1 -1
  237. package/dist/components/box.cjs +1 -1
  238. package/dist/components/box.es.js +1 -1
  239. package/dist/components/button.cjs +1 -1
  240. package/dist/components/button.es.js +1 -1
  241. package/dist/components/calendar.cjs +1 -1
  242. package/dist/components/calendar.es.js +1 -1
  243. package/dist/components/card.cjs +1 -1
  244. package/dist/components/card.es.js +1 -1
  245. package/dist/components/checkbox.cjs +1 -1
  246. package/dist/components/checkbox.es.js +1 -1
  247. package/dist/components/code.cjs +1 -1
  248. package/dist/components/code.es.js +1 -1
  249. package/dist/components/combobox.cjs +1 -1
  250. package/dist/components/combobox.es.js +1 -1
  251. package/dist/components/components.cjs +1 -1
  252. package/dist/components/components.es.js +60 -60
  253. package/dist/components/data-table.cjs +1 -1
  254. package/dist/components/data-table.es.js +1 -1
  255. package/dist/components/date-input.cjs +1 -1
  256. package/dist/components/date-input.es.js +1 -1
  257. package/dist/components/date-picker.cjs +1 -1
  258. package/dist/components/date-picker.es.js +1 -1
  259. package/dist/components/date-range-picker.cjs +1 -1
  260. package/dist/components/date-range-picker.es.js +1 -1
  261. package/dist/components/dialog.cjs +1 -1
  262. package/dist/components/dialog.es.js +1 -1
  263. package/dist/components/divider.cjs +1 -1
  264. package/dist/components/divider.es.js +1 -1
  265. package/dist/components/flex.cjs +1 -1
  266. package/dist/components/flex.es.js +1 -1
  267. package/dist/components/form-field.cjs +1 -1
  268. package/dist/components/form-field.es.js +1 -1
  269. package/dist/components/grid.cjs +1 -1
  270. package/dist/components/grid.es.js +1 -1
  271. package/dist/components/heading.cjs +1 -1
  272. package/dist/components/heading.es.js +2 -2
  273. package/dist/components/icon-button.cjs +1 -1
  274. package/dist/components/icon-button.es.js +1 -1
  275. package/dist/components/icon-toggle-button.cjs +1 -1
  276. package/dist/components/icon-toggle-button.es.js +1 -1
  277. package/dist/components/icon.cjs +1 -1
  278. package/dist/components/icon.es.js +1 -1
  279. package/dist/components/image.cjs +1 -1
  280. package/dist/components/image.es.js +1 -1
  281. package/dist/components/kbd.cjs +1 -1
  282. package/dist/components/kbd.es.js +1 -1
  283. package/dist/components/link.cjs +1 -1
  284. package/dist/components/link.es.js +1 -1
  285. package/dist/components/list.cjs +1 -1
  286. package/dist/components/list.es.js +1 -1
  287. package/dist/components/loading-spinner.cjs +1 -1
  288. package/dist/components/loading-spinner.es.js +1 -1
  289. package/dist/components/multiline-text-input.cjs +1 -1
  290. package/dist/components/multiline-text-input.es.js +1 -1
  291. package/dist/components/nimbus-provider.cjs +1 -1
  292. package/dist/components/nimbus-provider.es.js +1 -1
  293. package/dist/components/number-input.cjs +1 -1
  294. package/dist/components/number-input.es.js +1 -1
  295. package/dist/components/password-input.cjs +1 -1
  296. package/dist/components/password-input.es.js +1 -1
  297. package/dist/components/popover.cjs +1 -1
  298. package/dist/components/popover.cjs.map +1 -1
  299. package/dist/components/popover.es.js +11 -12
  300. package/dist/components/popover.es.js.map +1 -1
  301. package/dist/components/progress-bar.cjs +1 -1
  302. package/dist/components/progress-bar.es.js +1 -1
  303. package/dist/components/radio-input.cjs +1 -1
  304. package/dist/components/radio-input.es.js +1 -1
  305. package/dist/components/range-calendar.cjs +1 -1
  306. package/dist/components/range-calendar.es.js +1 -1
  307. package/dist/components/rich-text-input.cjs +1 -1
  308. package/dist/components/rich-text-input.es.js +1 -1
  309. package/dist/components/select.cjs +1 -1
  310. package/dist/components/select.es.js +1 -1
  311. package/dist/components/simple-grid.cjs +1 -1
  312. package/dist/components/simple-grid.es.js +1 -1
  313. package/dist/components/split-button.cjs +1 -1
  314. package/dist/components/split-button.es.js +1 -1
  315. package/dist/components/stack.cjs +1 -1
  316. package/dist/components/stack.es.js +1 -1
  317. package/dist/components/switch.cjs +1 -1
  318. package/dist/components/switch.es.js +1 -1
  319. package/dist/components/table.cjs +1 -1
  320. package/dist/components/table.es.js +2 -2
  321. package/dist/components/tag-group.cjs +1 -1
  322. package/dist/components/tag-group.es.js +1 -1
  323. package/dist/components/text-input.cjs +1 -1
  324. package/dist/components/text-input.es.js +1 -1
  325. package/dist/components/text.cjs +1 -1
  326. package/dist/components/text.es.js +1 -1
  327. package/dist/components/time-input.cjs +1 -1
  328. package/dist/components/time-input.es.js +1 -1
  329. package/dist/components/toggle-button-group.cjs +1 -1
  330. package/dist/components/toggle-button-group.es.js +1 -1
  331. package/dist/components/toggle-button.cjs +1 -1
  332. package/dist/components/toggle-button.es.js +1 -1
  333. package/dist/components/toolbar.cjs +1 -1
  334. package/dist/components/toolbar.es.js +1 -1
  335. package/dist/components/tooltip.cjs +1 -1
  336. package/dist/components/tooltip.es.js +1 -1
  337. package/dist/components.d.ts +35 -35
  338. package/dist/data-table.d.ts +35 -35
  339. package/dist/index.cjs +1 -1
  340. package/dist/index.cjs.map +1 -1
  341. package/dist/index.d.ts +35 -35
  342. package/dist/index.es.js +54 -54
  343. package/package.json +1 -1
  344. package/dist/chunks/accordion-Be--VNW6.cjs.js +0 -2
  345. package/dist/chunks/alert-DF3J6Yj7.cjs.js +0 -2
  346. package/dist/chunks/avatar-DEAravTR.cjs.js +0 -2
  347. package/dist/chunks/avatar.recipe-CQivdbFs.cjs.js +0 -2
  348. package/dist/chunks/badge-BjhZ-byo.cjs.js +0 -2
  349. package/dist/chunks/box-BK_2R49p.es.js +0 -13
  350. package/dist/chunks/box-BK_2R49p.es.js.map +0 -1
  351. package/dist/chunks/box-BwCVnAwb.cjs.js +0 -2
  352. package/dist/chunks/box-BwCVnAwb.cjs.js.map +0 -1
  353. package/dist/chunks/button-BfmWlfwH.cjs.js +0 -2
  354. package/dist/chunks/button.recipe-ClPhJ93N.cjs.js +0 -2
  355. package/dist/chunks/calendar-BgHBd6Dh.cjs.js +0 -2
  356. package/dist/chunks/card-DgvP36g1.cjs.js +0 -2
  357. package/dist/chunks/checkbox-BbdENF1i.cjs.js +0 -2
  358. package/dist/chunks/code-C3WbF6Qh.cjs.js +0 -2
  359. package/dist/chunks/code-C3WbF6Qh.cjs.js.map +0 -1
  360. package/dist/chunks/code-DM_AtVy-.es.js +0 -8
  361. package/dist/chunks/code-DM_AtVy-.es.js.map +0 -1
  362. package/dist/chunks/combobox-DIKvq4tw.cjs.js +0 -2
  363. package/dist/chunks/config-Mt8_uyhI.cjs.js +0 -2
  364. package/dist/chunks/config-Mt8_uyhI.cjs.js.map +0 -1
  365. package/dist/chunks/config-ufbQ08Vi.es.js +0 -6
  366. package/dist/chunks/config-ufbQ08Vi.es.js.map +0 -1
  367. package/dist/chunks/create-recipe-context-CrNaylZN.es.js +0 -62
  368. package/dist/chunks/create-recipe-context-CrNaylZN.es.js.map +0 -1
  369. package/dist/chunks/create-recipe-context-bXYFTZLs.cjs.js +0 -2
  370. package/dist/chunks/create-recipe-context-bXYFTZLs.cjs.js.map +0 -1
  371. package/dist/chunks/create-slot-recipe-context--T0CaFjW.es.js +0 -104
  372. package/dist/chunks/create-slot-recipe-context--T0CaFjW.es.js.map +0 -1
  373. package/dist/chunks/create-slot-recipe-context-CimocFDH.cjs.js +0 -2
  374. package/dist/chunks/create-slot-recipe-context-CimocFDH.cjs.js.map +0 -1
  375. package/dist/chunks/data-table-CWSmm1Cq.es.js.map +0 -1
  376. package/dist/chunks/data-table-Cenvhz5D.cjs.js +0 -2
  377. package/dist/chunks/data-table-Cenvhz5D.cjs.js.map +0 -1
  378. package/dist/chunks/date-input-BR6daiWa.es.js +0 -17
  379. package/dist/chunks/date-input-CKu2_a2x.cjs.js +0 -2
  380. package/dist/chunks/date-picker-DQ6_2mzc.cjs.js +0 -2
  381. package/dist/chunks/date-range-picker-i33UHqUE.cjs.js +0 -2
  382. package/dist/chunks/dialog-BQa_NWSr.cjs.js +0 -2
  383. package/dist/chunks/dialog-BQa_NWSr.cjs.js.map +0 -1
  384. package/dist/chunks/dialog-D4u5so0e.es.js +0 -1912
  385. package/dist/chunks/dialog-D4u5so0e.es.js.map +0 -1
  386. package/dist/chunks/divider-DU351gdE.cjs.js +0 -2
  387. package/dist/chunks/empty-B5_AO6Pg.cjs.js +0 -2
  388. package/dist/chunks/empty-B5_AO6Pg.cjs.js.map +0 -1
  389. package/dist/chunks/empty-D7ZFmvo6.es.js +0 -8
  390. package/dist/chunks/empty-D7ZFmvo6.es.js.map +0 -1
  391. package/dist/chunks/factory-CVGqU9CD.cjs.js +0 -3
  392. package/dist/chunks/factory-CVGqU9CD.cjs.js.map +0 -1
  393. package/dist/chunks/factory-DmIX2puY.es.js +0 -269
  394. package/dist/chunks/factory-DmIX2puY.es.js.map +0 -1
  395. package/dist/chunks/flex-BFC_f5BH.es.js +0 -40
  396. package/dist/chunks/flex-BFC_f5BH.es.js.map +0 -1
  397. package/dist/chunks/flex-yqydM5z_.cjs.js +0 -2
  398. package/dist/chunks/flex-yqydM5z_.cjs.js.map +0 -1
  399. package/dist/chunks/grid-B3Ggy_FW.es.js +0 -14
  400. package/dist/chunks/grid-CXpKN2OR.cjs.js +0 -2
  401. package/dist/chunks/grid-item-CGwfSnm7.cjs.js +0 -2
  402. package/dist/chunks/grid-item-CGwfSnm7.cjs.js.map +0 -1
  403. package/dist/chunks/grid-item-DuAynDd1.es.js +0 -78
  404. package/dist/chunks/grid-item-DuAynDd1.es.js.map +0 -1
  405. package/dist/chunks/icon-DHoLo7_S.cjs.js +0 -2
  406. package/dist/chunks/image-B3ISQSVL.cjs.js +0 -2
  407. package/dist/chunks/image-B3ISQSVL.cjs.js.map +0 -1
  408. package/dist/chunks/image-CwcCZREa.es.js +0 -22
  409. package/dist/chunks/image-CwcCZREa.es.js.map +0 -1
  410. package/dist/chunks/image-MeWmLoV0.es.js +0 -8
  411. package/dist/chunks/image-bt28epM5.cjs.js +0 -2
  412. package/dist/chunks/index-46Tt2Ww4.es.js +0 -8
  413. package/dist/chunks/index-46Tt2Ww4.es.js.map +0 -1
  414. package/dist/chunks/index-BYEAMD8A.cjs.js +0 -2
  415. package/dist/chunks/index-BYEAMD8A.cjs.js.map +0 -1
  416. package/dist/chunks/index-Dvel3Oj5.es.js.map +0 -1
  417. package/dist/chunks/index-sFOzzmTG.cjs.js +0 -4
  418. package/dist/chunks/kbd-Bc97Bwq3.es.js +0 -16
  419. package/dist/chunks/kbd-BlZ2RGfa.cjs.js +0 -2
  420. package/dist/chunks/kbd.recipe-9kxAU5ro.cjs.js +0 -2
  421. package/dist/chunks/link-DzUonoQg.cjs.js +0 -2
  422. package/dist/chunks/link.recipe-BfCxtKjL.cjs.js +0 -2
  423. package/dist/chunks/list-BTkkDy6B.es.js +0 -23
  424. package/dist/chunks/list-BTkkDy6B.es.js.map +0 -1
  425. package/dist/chunks/list-DokC0Ks-.cjs.js +0 -2
  426. package/dist/chunks/list-DokC0Ks-.cjs.js.map +0 -1
  427. package/dist/chunks/loading-spinner-VVQyl725.cjs.js +0 -2
  428. package/dist/chunks/menu-CImIQ6uJ.cjs.js +0 -2
  429. package/dist/chunks/multiline-text-input-jdvlKAq1.cjs.js +0 -12
  430. package/dist/chunks/namespace---Td8pR2.es.js +0 -74
  431. package/dist/chunks/namespace---Td8pR2.es.js.map +0 -1
  432. package/dist/chunks/namespace-CpLmDcCq.cjs.js +0 -2
  433. package/dist/chunks/namespace-CpLmDcCq.cjs.js.map +0 -1
  434. package/dist/chunks/nimbus-provider-CBZCiFEH.cjs.js +0 -2
  435. package/dist/chunks/number-input-CnOvkmap.cjs.js +0 -2
  436. package/dist/chunks/progress-bar-CByPgKbP.cjs.js +0 -2
  437. package/dist/chunks/provider-CHFgwvsP.es.js +0 -989
  438. package/dist/chunks/provider-CHFgwvsP.es.js.map +0 -1
  439. package/dist/chunks/provider-DFlBEH6q.cjs.js +0 -16
  440. package/dist/chunks/provider-DFlBEH6q.cjs.js.map +0 -1
  441. package/dist/chunks/radio-input-VMfD6a_K.cjs.js +0 -2
  442. package/dist/chunks/range-calendar-CnaQY0pH.cjs.js +0 -2
  443. package/dist/chunks/select-DT9EbJgb.cjs.js +0 -2
  444. package/dist/chunks/simple-grid-B7BgfVAS.cjs.js +0 -2
  445. package/dist/chunks/simple-grid-B7BgfVAS.cjs.js.map +0 -1
  446. package/dist/chunks/simple-grid-C6GRMtip.es.js +0 -38
  447. package/dist/chunks/simple-grid-C6GRMtip.es.js.map +0 -1
  448. package/dist/chunks/stack-BG0j9HvT.cjs.js +0 -2
  449. package/dist/chunks/stack-BG0j9HvT.cjs.js.map +0 -1
  450. package/dist/chunks/stack-QzuqKTKb.es.js +0 -89
  451. package/dist/chunks/stack-QzuqKTKb.es.js.map +0 -1
  452. package/dist/chunks/switch-kNksAQM3.cjs.js +0 -2
  453. package/dist/chunks/tag-group-iRBYcxt6.cjs.js +0 -2
  454. package/dist/chunks/text-DSjt3Sqv.es.js +0 -26
  455. package/dist/chunks/text-DSjt3Sqv.es.js.map +0 -1
  456. package/dist/chunks/text-Dg1sFCuC.cjs.js +0 -2
  457. package/dist/chunks/text-Dg1sFCuC.cjs.js.map +0 -1
  458. package/dist/chunks/text-input-D7SdSWpG.cjs.js +0 -2
  459. package/dist/chunks/text-input-Dinn4J2V.es.js +0 -19
  460. package/dist/chunks/time-input-BqTsxXMD.cjs.js +0 -2
  461. package/dist/chunks/toggle-button-CsVyAh8N.cjs.js +0 -2
  462. package/dist/chunks/toggle-button-RS4Z6UNN.es.js +0 -30
  463. package/dist/chunks/toggle-button-group-LddoXszz.cjs.js +0 -2
  464. package/dist/chunks/tooltip-CIAEV4_B.cjs.js +0 -2
  465. package/dist/chunks/tooltip.recipe-VqGdDqQD.cjs.js +0 -2
  466. package/dist/chunks/use-recipe-DuU8En0C.es.js +0 -13
  467. package/dist/chunks/use-recipe-DuU8En0C.es.js.map +0 -1
  468. package/dist/chunks/use-recipe-pbWWLWIq.cjs.js +0 -2
  469. package/dist/chunks/use-recipe-pbWWLWIq.cjs.js.map +0 -1
  470. package/dist/chunks/walk-object-CPVtf-bb.cjs.js +0 -2
  471. package/dist/chunks/walk-object-CPVtf-bb.cjs.js.map +0 -1
  472. package/dist/chunks/walk-object-Dpb8i9wi.es.js +0 -27
  473. package/dist/chunks/walk-object-Dpb8i9wi.es.js.map +0 -1
@@ -1,17 +0,0 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { d as t } from "./index-Dvel3Oj5.es.js";
3
- import { c as d } from "./create-slot-recipe-context--T0CaFjW.es.js";
4
- import { $ as l, a as m, b as u } from "./DateField-Dm2Qlhbk.es.js";
5
- import { e as f } from "./extractStyleProps-D6vCCKog.es.js";
6
- import { u as h } from "./use-recipe-DuU8En0C.es.js";
7
- const { withProvider: $, withContext: r } = /* @__PURE__ */ d({
8
- recipe: t
9
- }), x = /* @__PURE__ */ $("div", "root"), S = /* @__PURE__ */ r("div", "segmentGroup"), b = /* @__PURE__ */ r("div", "segment"), P = (o) => {
10
- const p = h({ recipe: t }), [c, i] = p.splitVariantProps(o), [s, n] = f(i);
11
- return /* @__PURE__ */ e(x, { ...c, ...s, asChild: !0, children: /* @__PURE__ */ e(l, { ...n, children: /* @__PURE__ */ e(S, { asChild: !0, children: /* @__PURE__ */ e(m, { children: (a) => /* @__PURE__ */ e(b, { asChild: !0, children: /* @__PURE__ */ e(u, { segment: a }) }) }) }) }) });
12
- };
13
- P.displayName = "DateInput";
14
- export {
15
- P as D
16
- };
17
- //# sourceMappingURL=date-input-BR6daiWa.es.js.map
@@ -1,2 +0,0 @@
1
- "use strict";const e=require("react/jsx-runtime"),r=require("./index-sFOzzmTG.cjs.js"),l=require("./create-slot-recipe-context-CimocFDH.cjs.js"),t=require("./DateField-rweHHCKR.cjs.js"),x=require("./extractStyleProps-BFdEZDYW.cjs.js"),S=require("./use-recipe-pbWWLWIq.cjs.js"),{withProvider:h,withContext:c}=l.createSlotRecipeContext({recipe:r.dateInputSlotRecipe}),$=h("div","root"),f=c("div","segmentGroup"),I=c("div","segment"),o=n=>{const s=S.useRecipe({recipe:r.dateInputSlotRecipe}),[i,p]=s.splitVariantProps(n),[u,a]=x.extractStyleProps(p);return e.jsx($,{...i,...u,asChild:!0,children:e.jsx(t.$40825cdb76e74f70$export$d9781c7894a82487,{...a,children:e.jsx(f,{asChild:!0,children:e.jsx(t.$40825cdb76e74f70$export$7edc06cf1783b30f,{children:d=>e.jsx(I,{asChild:!0,children:e.jsx(t.$40825cdb76e74f70$export$336ab7fa954c4b5f,{segment:d})})})})})})};o.displayName="DateInput";exports.DateInput=o;
2
- //# sourceMappingURL=date-input-CKu2_a2x.cjs.js.map
@@ -1,2 +0,0 @@
1
- "use strict";const e=require("react/jsx-runtime"),j=require("./index-sFOzzmTG.cjs.js"),v=require("./create-slot-recipe-context-CimocFDH.cjs.js"),h=require("@commercetools/nimbus-icons"),b=require("./DatePicker-BdV6ICAm.cjs.js"),$=require("./Dialog-CYa26HlL.cjs.js"),y=require("./Group-MdeByg6t.cjs.js"),q=require("./extractStyleProps-BFdEZDYW.cjs.js"),g=require("./icon-button-D0NyGafI.cjs.js"),D=require("./date-input-CKu2_a2x.cjs.js"),k=require("./calendar-BgHBd6Dh.cjs.js"),I=require("./text-Dg1sFCuC.cjs.js"),T=require("./time-input-BqTsxXMD.cjs.js"),f=require("react"),R=require("./context-OoV8SSWX.cjs.js"),E=require("./flex-yqydM5z_.cjs.js"),P=require("./Button-BtJHe9xY.cjs.js"),S=require("./utils-BHdR5Nww.cjs.js"),V=require("./DateField-rweHHCKR.cjs.js"),{withProvider:z,withContext:m}=v.createSlotRecipeContext({recipe:j.datePickerSlotRecipe}),B=z("div","root"),w=m("div","group"),F=m("div","trigger"),G=m("div","popover"),A=m("div","calendar"),O=({hideTimeZone:c,hourCycle:r})=>{const{locale:i}=R.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),l=f.useContext(b.$06d5b8ec9ee5d538$export$50a10c048fdcdee9),{granularity:u,dateValue:t}=l,n=f.useRef(null),d=f.useRef(t);return u==="day"?null:(f.useEffect(()=>{let s;if(t&&d.current?.compare(t)!==0){const a=n.current,p=document.activeElement;a?.contains(p)&&p?.getAttribute("role")==="spinbutton"||(s=setTimeout(()=>{a&&a.querySelector('[role="spinbutton"]')?.focus()},50))}return d.current=t,()=>{s&&clearTimeout(s)}},[t]),e.jsxs(E.Flex,{ref:n,borderTop:"solid-25",borderColor:"neutral.3",py:"300",px:"400",alignItems:"center",justifyContent:"center",gap:"200",children:[e.jsx(I.Text,{textStyle:"xs",fontWeight:"500",color:"neutral.12",children:"Start time"}),e.jsx(T.TimeInput,{slot:"timeInput",locale:i,variant:"ghost",size:"sm",hideTimeZone:c,hourCycle:r})]}))},H=({children:c})=>{const r=S.$64fa3d84918910a7$export$fabf2dc03a41866e(P.$d2b4bc8c273e7be6$export$24d547caef80ccd1)||{},i=f.useContext(b.$06d5b8ec9ee5d538$export$50a10c048fdcdee9),l=i?.dateValue===null,{timeValue:u,setTimeValue:t,granularity:n}=i,d=r?.isDisabled,s=()=>{switch(n){case"hour":return"Enter time (hour)";case"minute":return"Enter time (hour and minute)";case"second":return"Enter time (hour, minute, and second)";default:return"Enter time"}},a={calendarToggle:{...r,onPress:o=>{const x=document?.activeElement;x&&x.blur(),r.onPress?.(o)}},clear:{onPress:()=>i?.setValue(null),"aria-label":"Clear input value",isDisabled:d,style:l?{display:"none"}:void 0,"aria-hidden":l?!0:void 0}},p={timeInput:{value:u,onChange:o=>{o!==null&&t(o)},granularity:n==="day"?void 0:n,"aria-label":s()}};return e.jsx(S.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[P.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{slots:a}],[V.$40825cdb76e74f70$export$8e17ddc448e87c1e,{slots:p}]],children:c})},C=c=>{const{size:r="md",variant:i,granularity:l="day",hideTimeZone:u,hourCycle:t}=c,n=v.useSlotRecipe({recipe:j.datePickerSlotRecipe}),[d,s]=n.splitVariantProps(c),[a,p]=q.extractStyleProps(s),o=r==="md"?"xs":"2xs",x=l==="day"?c.shouldCloseOnSelect:!1;return e.jsx(B,{...d,...a,asChild:!0,children:e.jsx(b.$06d5b8ec9ee5d538$export$5109c6dd95d8fb00,{...p,shouldCloseOnSelect:x,children:e.jsxs(H,{children:[e.jsx(w,{asChild:!0,children:e.jsxs(y.$a049562f99e7db0e$export$eb2fcfdbd7ba97d4,{children:[e.jsx(D.DateInput,{size:r,variant:i,width:"full",hideTimeZone:u,hourCycle:t}),e.jsxs(F,{children:[e.jsx(g.IconButton,{tone:"primary",variant:"ghost",size:o,slot:"clear",children:e.jsx(h.Close,{})}),e.jsx(g.IconButton,{tone:"primary",variant:"ghost",size:o,slot:"calendarToggle",children:e.jsx(h.CalendarMonth,{})})]})]})}),e.jsx(G,{asChild:!0,children:e.jsx($.$07b14b47974efb58$export$5b6b19405a83ff9d,{placement:"bottom end",children:e.jsxs($.$de32f1b87079253c$export$3ddf2d174ce01153,{children:[e.jsx(A,{children:e.jsx(k.Calendar,{})}),e.jsx(O,{hideTimeZone:u,hourCycle:t})]})})})]})})})};C.displayName="DatePicker";exports.DatePicker=C;
2
- //# sourceMappingURL=date-picker-DQ6_2mzc.cjs.js.map
@@ -1,2 +0,0 @@
1
- "use strict";const e=require("react/jsx-runtime"),q=require("./index-sFOzzmTG.cjs.js"),k=require("./create-slot-recipe-context-CimocFDH.cjs.js"),S=require("@commercetools/nimbus-icons"),R=require("./DatePicker-BdV6ICAm.cjs.js"),P=require("./Dialog-CYa26HlL.cjs.js"),E=require("./Group-MdeByg6t.cjs.js"),w=require("./extractStyleProps-BFdEZDYW.cjs.js"),C=require("./icon-button-D0NyGafI.cjs.js"),j=require("./text-Dg1sFCuC.cjs.js"),D=require("./date-input-CKu2_a2x.cjs.js"),z=require("./range-calendar-CnaQY0pH.cjs.js"),y=require("./time-input-BqTsxXMD.cjs.js"),f=require("react"),F=require("./context-OoV8SSWX.cjs.js"),v=require("./flex-yqydM5z_.cjs.js"),I=require("./Button-BtJHe9xY.cjs.js"),T=require("./utils-BHdR5Nww.cjs.js"),B=require("./DateField-rweHHCKR.cjs.js"),{withProvider:W,withContext:b}=k.createSlotRecipeContext({recipe:q.dateRangePickerSlotRecipe}),G=W("div","root"),A=b("div","group"),O=b("div","trigger"),H=b("div","popover"),L=b("div","calendar"),M=({hideTimeZone:s,hourCycle:o})=>{const{locale:t}=F.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),i=f.useContext(R.$06d5b8ec9ee5d538$export$80d7ae1f804790be),{granularity:p,value:r}=i,x=f.useRef(null),l=f.useRef(r);return p==="day"?null:(f.useEffect(()=>{let u;if(r?.start&&l.current?.start?.compare(r.start)!==0||r?.end&&l.current?.end?.compare(r.end)!==0){const c=x.current,m=document.activeElement;c?.contains(m)&&m?.getAttribute("role")==="spinbutton"||(u=setTimeout(()=>{if(c){const a=c.querySelector('[role="spinbutton"]');a&&a.focus()}},50))}return l.current=r,()=>{u&&clearTimeout(u)}},[r]),e.jsxs(v.Flex,{ref:x,borderTop:"solid-25",borderColor:"neutral.3",py:"300",px:"400",alignItems:"center",justifyContent:"center",gap:"200",children:[e.jsxs(v.Flex,{alignItems:"center",gap:"200",children:[e.jsx(j.Text,{textStyle:"xs",fontWeight:"500",color:"neutral.12",minWidth:"fit-content",children:"Start time"}),e.jsx(y.TimeInput,{slot:"startTimeInput",locale:t,variant:"ghost",size:"sm",hideTimeZone:s,hourCycle:o})]}),e.jsxs(v.Flex,{alignItems:"center",gap:"200",children:[e.jsx(j.Text,{textStyle:"xs",fontWeight:"500",color:"neutral.12",minWidth:"fit-content",children:"End time"}),e.jsx(y.TimeInput,{slot:"endTimeInput",locale:t,variant:"ghost",size:"sm",hideTimeZone:s,hourCycle:o})]})]}))},N=({children:s})=>{const o=T.$64fa3d84918910a7$export$fabf2dc03a41866e(I.$d2b4bc8c273e7be6$export$24d547caef80ccd1)||{},t=f.useContext(R.$06d5b8ec9ee5d538$export$80d7ae1f804790be),i=n=>n?.day&&n?.month&&n?.year,p=!t?.value||!i(t.value.start)||!i(t.value.end),{granularity:r}=t,x=t?.value?.start&&"hour"in t.value.start?t.value.start:null,l=t?.value?.end&&"hour"in t.value.end?t.value.end:null,u=o?.isDisabled,d=n=>{const a=n==="start"?"Start":"End";switch(r){case"hour":return`${a} time (hour)`;case"minute":return`${a} time (hour and minute)`;case"second":return`${a} time (hour, minute, and second)`;default:return`${a} time`}},c={calendarToggle:{...o,onPress:n=>{const a=document?.activeElement;a&&a.blur(),o.onPress?.(n)}},clear:{onPress:()=>t?.setValue(null),"aria-label":"Clear input value",isDisabled:u,style:p?{display:"none"}:void 0,"aria-hidden":p?!0:void 0}},m={startTimeInput:{value:x,onChange:n=>{if(n!==null&&t?.value?.start){const a=t.value,h=a.start,g=a.end;if(h&&g){const $=h.set({hour:n.hour,minute:n.minute||0,second:n.second||0,millisecond:n.millisecond||0});t.setValue({start:$,end:g})}}},granularity:r==="day"?void 0:r,"aria-label":d("start")},endTimeInput:{value:l,onChange:n=>{if(n!==null&&t?.value?.end){const a=t.value,h=a.start,g=a.end;if(h&&g){const $=g.set({hour:n.hour,minute:n.minute||0,second:n.second||0,millisecond:n.millisecond||0});t.setValue({start:h,end:$})}}},granularity:r==="day"?void 0:r,"aria-label":d("end")}};return e.jsx(T.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[I.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{slots:c}],[B.$40825cdb76e74f70$export$8e17ddc448e87c1e,{slots:m}]],children:s})},V=s=>{const{granularity:o="day",hideTimeZone:t,hourCycle:i}=s,p=k.useSlotRecipe({recipe:q.dateRangePickerSlotRecipe}),[r,x]=p.splitVariantProps(s),[l,u]=w.extractStyleProps(x),{size:d="md"}=r,c=d==="md"?"xs":"2xs",m=o==="day"?s.shouldCloseOnSelect:!1;return e.jsx(G,{...r,...l,asChild:!0,children:e.jsx(R.$06d5b8ec9ee5d538$export$17334619f3ac2224,{...u,shouldCloseOnSelect:m,children:e.jsxs(N,{children:[e.jsx(A,{asChild:!0,children:e.jsxs(E.$a049562f99e7db0e$export$eb2fcfdbd7ba97d4,{children:[e.jsx(D.DateInput,{slot:"start",size:d,variant:"plain",width:"auto",hideTimeZone:t,hourCycle:i}),e.jsx(j.Text,{as:"span",px:"150",color:"neutral.11",userSelect:"none","aria-hidden":"true",slot:null,children:"–"}),e.jsx(D.DateInput,{slot:"end",size:d,variant:"plain",width:"auto",hideTimeZone:t,hourCycle:i}),e.jsxs(O,{children:[e.jsx(C.IconButton,{tone:"primary",variant:"ghost",size:c,slot:"clear",children:e.jsx(S.Close,{})}),e.jsx(C.IconButton,{tone:"primary",variant:"ghost",size:c,slot:"calendarToggle",children:e.jsx(S.CalendarMonth,{})})]})]})}),e.jsx(H,{asChild:!0,children:e.jsx(P.$07b14b47974efb58$export$5b6b19405a83ff9d,{placement:"bottom end",children:e.jsxs(P.$de32f1b87079253c$export$3ddf2d174ce01153,{children:[e.jsx(L,{children:e.jsx(z.RangeCalendar,{})}),e.jsx(M,{hideTimeZone:t,hourCycle:i})]})})})]})})})};V.displayName="DateRangePicker";exports.DateRangePicker=V;
2
- //# sourceMappingURL=date-range-picker-i33UHqUE.cjs.js.map
@@ -1,2 +0,0 @@
1
- "use strict";const x=require("react/jsx-runtime"),f=require("react"),fe=require("react-dom"),wt=require("./create-slot-recipe-context-CimocFDH.cjs.js"),Pt=require("./factory-CVGqU9CD.cjs.js");function Ot(e){return e==null?[]:Array.isArray(e)?e:[e]}var xt=e=>e!=null&&typeof e=="object",ce=e=>typeof e=="string",X=e=>typeof e=="function",Ct=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Tt=e=>Object.prototype.toString.call(e),We=Function.prototype.toString,Dt=We.call(Object),kt=e=>{if(!xt(e)||Tt(e)!="[object Object]"||St(e))return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;const r=Ct(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&We.call(r)==Dt},Ft=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,Rt=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,St=e=>Ft(e)||Rt(e),At=e=>e(),Ee=(...e)=>(...t)=>{e.forEach(function(r){r?.(...t)})};function qe(e){if(!kt(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(n=>typeof n=="string"),r={};for(const n of t){const o=e[n];o!==void 0&&(r[n]=qe(o))}return r}function Ne(...e){const t=e.length===1?e[0]:e[1];(e.length===2?e[0]:!0)&&process.env.NODE_ENV!=="production"&&console.warn(t)}function It(e,t){if(e==null)throw new Error(t())}var Ke=()=>{},pe=e=>typeof e=="object"&&e!==null,Lt=1,Bt=9,Mt=11,D=e=>pe(e)&&e.nodeType===Lt&&typeof e.nodeName=="string",Ce=e=>pe(e)&&e.nodeType===Bt,$t=e=>pe(e)&&e===e.window,He=e=>D(e)?e.localName||"":"#document";function jt(e){return["html","body","#document"].includes(He(e))}var _t=e=>pe(e)&&e.nodeType!==void 0,Y=e=>_t(e)&&e.nodeType===Mt&&"host"in e,Gt=e=>D(e)&&e.localName==="input",Vt=e=>D(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1,Ut=/(textarea|select)/;function Wt(e){if(e==null||!D(e))return!1;try{return Gt(e)&&e.selectionStart!=null||Ut.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch{return!1}}function ue(e,t){if(!e||!t||!D(e)||!D(t))return!1;const r=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(r&&Y(r)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function L(e){return Ce(e)?e:$t(e)?e.document:e?.ownerDocument??document}function qt(e){return L(e).documentElement}function ne(e){return Y(e)?ne(e.host):Ce(e)?e.defaultView??window:D(e)?e.ownerDocument?.defaultView??window:window}function ze(e){let t=e.activeElement;for(;t?.shadowRoot;){const r=t.shadowRoot.activeElement;if(r===t)break;t=r}return t}function Kt(e){if(He(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Y(e)&&e.host||qt(e);return Y(t)?t.host:t}var ge=new WeakMap;function Xe(e){return ge.has(e)||ge.set(e,ne(e).getComputedStyle(e)),ge.get(e)}var Ye=()=>typeof document<"u";function Ht(){return navigator.userAgentData?.platform??navigator.platform}var Te=e=>Ye()&&e.test(Ht()),Se=()=>Ye()&&!!navigator.maxTouchPoints,zt=()=>Te(/^iPhone/i),Xt=()=>Te(/^iPad/i)||Ze()&&navigator.maxTouchPoints>1,Yt=()=>zt()||Xt(),Ze=()=>Te(/^Mac/i);function Zt(e){return e.composedPath?.()??e.nativeEvent?.composedPath?.()}function M(e){return Zt(e)?.[0]??e.target}var Jt=e=>e.button===2||Ze()&&e.ctrlKey&&e.button===0,I=(e,t,r,n)=>{const o=typeof e=="function"?e():e;return o?.addEventListener(t,r,n),()=>{o?.removeEventListener(t,r,n)}},Je=e=>D(e)&&e.tagName==="IFRAME",Qt=e=>!Number.isNaN(parseInt(e.getAttribute("tabindex")||"0",10)),en=e=>parseInt(e.getAttribute("tabindex")||"0",10)<0,De="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type",Qe=(e,t=!1)=>{if(!e)return[];const r=Array.from(e.querySelectorAll(De));(t==!0||t=="if-empty"&&r.length===0)&&D(e)&&G(e)&&r.unshift(e);const o=r.filter(G);return o.forEach((s,i)=>{if(Je(s)&&s.contentDocument){const a=s.contentDocument.body;o.splice(i,1,...Qe(a))}}),o};function G(e){return!e||e.closest("[inert]")?!1:e.matches(De)&&Vt(e)}function et(e,t){if(!e)return[];const n=Array.from(e.querySelectorAll(De)).filter(W);return n.forEach((o,s)=>{if(Je(o)&&o.contentDocument){const i=o.contentDocument.body,a=et(i);n.splice(s,1,...a)}}),n.length,n}function W(e){return e!=null&&e.tabIndex>0?!0:G(e)&&!en(e)}function J(e){return e.tabIndex<0&&(/^(audio|video|details)$/.test(e.localName)||Wt(e))&&!Qt(e)?0:e.tabIndex}function tn(e){const t=new Set;function r(n){const o=globalThis.requestAnimationFrame(n);t.add(()=>globalThis.cancelAnimationFrame(o))}return r(()=>r(e)),function(){t.forEach(o=>o())}}function $(e){let t;const r=globalThis.requestAnimationFrame(()=>{t=e()});return()=>{globalThis.cancelAnimationFrame(r),t?.()}}function we(e){const t=Kt(e);return jt(t)?L(t).body:D(t)&&on(t)?t:we(t)}var nn=/auto|scroll|overlay|hidden|clip/,rn=new Set(["inline","contents"]);function on(e){const t=ne(e),{overflow:r,overflowX:n,overflowY:o,display:s}=t.getComputedStyle(e);return nn.test(r+o+n)&&!rn.has(s)}function le(e,t){if(!e)return Ke;const r=Object.keys(t).reduce((n,o)=>(n[o]=e.style.getPropertyValue(o),n),{});return Object.assign(e.style,t),()=>{Object.assign(e.style,r),e.style.length===0&&e.removeAttribute("style")}}function sn(e,t,r){if(!e)return Ke;const n=e.style.getPropertyValue(t);return e.style.setProperty(t,r),()=>{e.style.setProperty(t,n),e.style.length===0&&e.removeAttribute("style")}}function an(e,t,r){const{signal:n}=t;return[new Promise((i,a)=>{const u=setTimeout(()=>{a(new Error(`Timeout of ${r}ms exceeded`))},r);n.addEventListener("abort",()=>{clearTimeout(u),a(new Error("Promise aborted"))}),e.then(c=>{n.aborted||(clearTimeout(u),i(c))}).catch(c=>{n.aborted||(clearTimeout(u),a(c))})}),()=>t.abort()]}function cn(e,t){const{timeout:r,rootNode:n}=t,o=ne(n),s=L(n),i=new o.AbortController;return an(new Promise(a=>{const u=e();if(u){a(u);return}const c=new o.MutationObserver(()=>{const d=e();d&&d.isConnected&&(c.disconnect(),a(d))});c.observe(s.body,{childList:!0,subtree:!0})}),i,r)}var un=(...e)=>e.map(t=>t?.trim?.()).filter(Boolean).join(" "),ln=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,Ae=e=>{const t={};let r;for(;r=ln.exec(e);)t[r[1]]=r[2];return t},dn=(e,t)=>{if(ce(e)){if(ce(t))return`${e};${t}`;e=Ae(e)}else ce(t)&&(t=Ae(t));return Object.assign({},e??{},t??{})};function j(...e){let t={};for(let r of e){for(let n in t){if(n.startsWith("on")&&typeof t[n]=="function"&&typeof r[n]=="function"){t[n]=Ee(r[n],t[n]);continue}if(n==="className"||n==="class"){t[n]=un(t[n],r[n]);continue}if(n==="style"){t[n]=dn(t[n],r[n]);continue}t[n]=r[n]!==void 0?r[n]:t[n]}for(let n in r)t[n]===void 0&&(t[n]=r[n])}return t}var z=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(z||{}),me="__init__";function fn(e){const t=()=>e.getRootNode?.()??document,r=()=>L(t()),n=()=>r().defaultView??window,o=()=>ze(t());return{...e,getRootNode:t,getDoc:r,getWin:n,getActiveElement:o,isActiveElement:a=>a===o(),getById:a=>t().getElementById(a)}}function pn(e){return new Proxy({},{get(t,r){return r==="style"?n=>e({style:n}).style:e}})}var tt=typeof globalThis.document<"u"?f.useLayoutEffect:f.useEffect;function de(e){const t=e().value??e().defaultValue,r=e().isEqual??Object.is,[n]=f.useState(t),[o,s]=f.useState(n),i=e().value!==void 0,a=f.useRef(o);a.current=i?e().value:o;const u=f.useRef(a.current);tt(()=>{u.current=a.current},[o,e().value]);const c=h=>{const l=u.current,v=X(h)?h(l):h;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:v,prev:l}),i||s(v),r(v,l)||e().onChange?.(v,l)};function d(){return i?e().value:o}return{initial:n,ref:a,get:d,set(h){(e().sync?fe.flushSync:At)(()=>c(h))},invoke(h,l){e().onChange?.(h,l)},hash(h){return e().hash?.(h)??String(h)}}}de.cleanup=e=>{f.useEffect(()=>e,[])};de.ref=e=>{const t=f.useRef(e);return{get:()=>t.current,set:r=>{t.current=r}}};function hn(e){const t=f.useRef(e);return{get(r){return t.current[r]},set(r,n){t.current[r]=n}}}var gn=(e,t)=>{const r=f.useRef(!1),n=f.useRef(!1);f.useEffect(()=>{if(r.current&&n.current)return t();n.current=!0},[...(e??[]).map(o=>typeof o=="function"?o():o)]),f.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])};function nt(e,t={}){const r=f.useMemo(()=>{const{id:p,ids:m,getRootNode:O}=t;return fn({id:p,ids:m,getRootNode:O})},[t]),n=(...p)=>{e.debug&&console.log(...p)},o=e.props?.({props:qe(t),scope:r})??t,s=mn(o),i=e.context?.({prop:s,bindable:de,scope:r,flush:Ie,getContext(){return u},getComputed(){return S},getRefs(){return y},getEvent(){return v()}}),a=rt(i),u={get(p){return a.current?.[p].ref.current},set(p,m){a.current?.[p].set(m)},initial(p){return a.current?.[p].initial},hash(p){const m=a.current?.[p].get();return a.current?.[p].hash(m)}},c=f.useRef(new Map),d=f.useRef(null),h=f.useRef(null),l=f.useRef({type:""}),v=()=>({...l.current,current(){return l.current},previous(){return h.current}}),g=()=>({...P,matches(...p){return p.includes(P.ref.current)},hasTag(p){return!!e.states[P.ref.current]?.tags?.includes(p)}}),y=hn(e.refs?.({prop:s,context:u})??{}),C=()=>({state:g(),context:u,event:v(),prop:s,send:Re,action:w,guard:b,track:gn,refs:y,computed:S,flush:Ie,scope:r,choose:T}),w=p=>{const m=X(p)?p(C()):p;if(!m)return;const O=m.map(N=>{const F=e.implementations?.actions?.[N];return F||Ne(`[zag-js] No implementation found for action "${JSON.stringify(N)}"`),F});for(const N of O)N?.(C())},b=p=>X(p)?p(C()):e.implementations?.guards?.[p](C()),k=p=>{const m=X(p)?p(C()):p;if(!m)return;const O=m.map(F=>{const _=e.implementations?.effects?.[F];return _||Ne(`[zag-js] No implementation found for effect "${JSON.stringify(F)}"`),_}),N=[];for(const F of O){const _=F?.(C());_&&N.push(_)}return()=>N.forEach(F=>F?.())},T=p=>Ot(p).find(m=>{let O=!m.guard;return ce(m.guard)?O=!!b(m.guard):X(m.guard)&&(O=m.guard(C())),O}),S=p=>{It(e.computed,()=>"[zag-js] No computed object found on machine");const m=e.computed[p];return m({context:u,event:v(),prop:s,refs:y,scope:r,computed:S})},P=de(()=>({defaultValue:e.initialState({prop:s}),onChange(p,m){m&&(c.current.get(m)?.(),c.current.delete(m)),m&&w(e.states[m]?.exit),w(d.current?.actions);const O=k(e.states[p]?.effects);if(O&&c.current.set(p,O),m===me){w(e.entry);const N=k(e.effects);N&&c.current.set(me,N)}w(e.states[p]?.entry)}})),Z=f.useRef(void 0),A=f.useRef(z.NotStarted);tt(()=>{queueMicrotask(()=>{const O=A.current===z.Started;A.current=z.Started,n(O?"rehydrating...":"initializing...");const N=Z.current??P.initial;P.invoke(N,O?P.get():me)});const p=c.current,m=P.ref.current;return()=>{n("unmounting..."),Z.current=m,A.current=z.Stopped,p.forEach(O=>O?.()),c.current=new Map,d.current=null,queueMicrotask(()=>{w(e.exit)})}},[]);const he=()=>"ref"in P?P.ref.current:P.get(),Re=p=>{queueMicrotask(()=>{if(A.current!==z.Started)return;h.current=l.current,l.current=p;let m=he();const O=e.states[m].on?.[p.type]??e.on?.[p.type],N=T(O);if(!N)return;d.current=N;const F=N.target??m;n("transition",p.type,N.target||m,`(${N.actions})`);const _=F!==m;_?fe.flushSync(()=>P.set(F)):N.reenter&&!_?P.invoke(m,m):w(N.actions??[])})};return e.watch?.(C()),{state:g(),send:Re,context:u,prop:s,scope:r,refs:y,computed:S,event:v(),getStatus:()=>A.current}}function rt(e){const t=f.useRef(e);return t.current=e,t}function mn(e){const t=rt(e);return function(n){return t.current[n]}}function Ie(e){queueMicrotask(()=>{fe.flushSync(()=>e())})}var vn=pn(e=>e);function ke(...e){return t=>{const r=[];for(const n of e)if(typeof n=="function"){const o=n(t);typeof o=="function"&&r.push(o)}else n&&(n.current=t);if(r.length)return()=>{for(const n of r)n()}}}function yn(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function re(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:s,defaultValue:i}=e,a=f.createContext(i);a.displayName=t;function u(){const c=f.useContext(a);if(!c&&r){const d=new Error(s??yn(n,o));throw d.name="ContextError",Error.captureStackTrace?.(d,u),d}return c}return[a.Provider,u,a]}const ot=()=>(e,t)=>t.reduce((r,n)=>{const[o,s]=r,i=n;return s[i]!==void 0&&(o[i]=s[i]),delete s[i],[o,s]},[{},{...e}]),[bn,En]=re({name:"RenderStrategyContext",hookName:"useRenderStrategyContext",providerName:"<RenderStrategyPropsProvider />"}),Nn=e=>ot()(e,["lazyMount","unmountOnExit"]);function wn(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const ve=e=>{const t=f.memo(f.forwardRef((r,n)=>{const{asChild:o,children:s,...i}=r;if(!o)return f.createElement(e,{...i,ref:n},s);if(!f.isValidElement(s))return null;const a=f.Children.only(s),u=wn(a);return f.cloneElement(a,{...j(i,a.props),ref:n?ke(n,u):u})}));return t.displayName=e.displayName||e.name,t},Pn=()=>{const e=new Map;return new Proxy(ve,{apply(t,r,n){return ve(n[0])},get(t,r){const n=r;return e.has(n)||e.set(n,ve(n)),e.get(n)}})},q=Pn();function On(e,t){const{state:r,send:n,context:o}=e,s=r.matches("mounted","unmountSuspended");return{skip:!o.get("initial"),present:s,setNode(i){i&&n({type:"NODE.SET",node:i})},unmount(){n({type:"UNMOUNT"})}}}var xn={props({props:e}){return{...e,present:!!e.present}},initialState({prop:e}){return e("present")?"mounted":"unmounted"},refs(){return{node:null,styles:null}},context({bindable:e}){return{unmountAnimationName:e(()=>({defaultValue:null})),prevAnimationName:e(()=>({defaultValue:null})),present:e(()=>({defaultValue:!1})),initial:e(()=>({sync:!0,defaultValue:!1}))}},exit:["clearInitial","cleanupNode"],watch({track:e,prop:t,send:r}){e([()=>t("present")],()=>{r({type:"PRESENCE.CHANGED"})})},on:{"NODE.SET":{actions:["setupNode"]},"PRESENCE.CHANGED":{actions:["setInitial","syncPresence"]}},states:{mounted:{on:{UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]},"UNMOUNT.SUSPEND":{target:"unmountSuspended"}}},unmountSuspended:{effects:["trackAnimationEvents"],on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]},UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]}}},unmounted:{on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]}}}},implementations:{actions:{setInitial:({context:e})=>{e.get("initial")||queueMicrotask(()=>{e.set("initial",!0)})},clearInitial:({context:e})=>{e.set("initial",!1)},invokeOnExitComplete:({prop:e})=>{e("onExitComplete")?.()},setupNode:({refs:e,event:t})=>{e.get("node")!==t.node&&(e.set("node",t.node),e.set("styles",Xe(t.node)))},cleanupNode:({refs:e})=>{e.set("node",null),e.set("styles",null)},syncPresence:({context:e,refs:t,send:r,prop:n})=>{const o=n("present");if(o)return r({type:"MOUNT",src:"presence.changed"});const s=t.get("node");if(!o&&s?.ownerDocument.visibilityState==="hidden")return r({type:"UNMOUNT",src:"visibilitychange"});$(()=>{const i=oe(t.get("styles"));e.set("unmountAnimationName",i),i==="none"||i===e.get("prevAnimationName")||t.get("styles")?.display==="none"||t.get("styles")?.animationDuration==="0s"?r({type:"UNMOUNT",src:"presence.changed"}):r({type:"UNMOUNT.SUSPEND"})})},setPrevAnimationName:({context:e,refs:t})=>{$(()=>{e.set("prevAnimationName",oe(t.get("styles")))})},clearPrevAnimationName:({context:e})=>{e.set("prevAnimationName",null)}},effects:{trackAnimationEvents:({context:e,refs:t,send:r})=>{const n=t.get("node");if(!n)return;const o=a=>{(a.composedPath?.()?.[0]??a.target)===n&&e.set("prevAnimationName",oe(t.get("styles")))},s=a=>{const u=oe(t.get("styles"));M(a)===n&&u===e.get("unmountAnimationName")&&r({type:"UNMOUNT",src:"animationend"})};n.addEventListener("animationstart",o),n.addEventListener("animationcancel",s),n.addEventListener("animationend",s);const i=le(n,{animationFillMode:"forwards"});return()=>{n.removeEventListener("animationstart",o),n.removeEventListener("animationcancel",s),n.removeEventListener("animationend",s),tn(()=>i())}}}}};function oe(e){return e?.animationName||"none"}function Cn(e,t={}){const{sync:r=!1}=t,n=Tn(e);return f.useCallback((...o)=>r?queueMicrotask(()=>n.current?.(...o)):n.current?.(...o),[r,n])}function Tn(e){const t=f.useRef(e);return t.current=e,t}const st=(e={})=>{const{lazyMount:t,unmountOnExit:r,present:n,skipAnimationOnMount:o=!1,...s}=e,i=f.useRef(!1),a={...s,present:n,onExitComplete:Cn(e.onExitComplete)},u=nt(xn,a),c=On(u);c.present&&(i.current=!0);const d=!c.present&&!i.current&&t||r&&!c.present&&i.current,h=()=>({"data-state":c.skip&&o?void 0:n?"open":"closed",hidden:!c.present});return{ref:c.setNode,getPresenceProps:h,present:c.present,unmounted:d}},[Dn,V]=re({name:"DialogContext",hookName:"useDialogContext",providerName:"<DialogProvider />"}),it=f.forwardRef((e,t)=>{const r=V(),n=En(),o=st({...n,present:r.open}),s=j(r.getBackdropProps(),o.getPresenceProps(),e);return o.unmounted?null:x.jsx(q.div,{...s,ref:ke(o.ref,t)})});it.displayName="DialogBackdrop";const at=f.forwardRef((e,t)=>{const r=V(),n=j(r.getCloseTriggerProps(),e);return x.jsx(q.button,{...n,ref:t})});at.displayName="DialogCloseTrigger";const[kn,Fe]=re({name:"PresenceContext",hookName:"usePresenceContext",providerName:"<PresenceProvider />"}),ct=f.forwardRef((e,t)=>{const r=V(),n=Fe(),o=j(r.getContentProps(),n.getPresenceProps(),e);return n.unmounted?null:x.jsx(q.div,{...o,ref:ke(n.ref,t)})});ct.displayName="DialogContent";const ut=f.forwardRef((e,t)=>{const r=V(),n=j(r.getDescriptionProps(),e);return x.jsx(q.div,{...n,ref:t})});ut.displayName="DialogDescription";const lt=f.forwardRef((e,t)=>{const r=V(),n=j(r.getPositionerProps(),e);return Fe().unmounted?null:x.jsx(q.div,{...n,ref:t})});lt.displayName="DialogPositioner";const Fn=e=>ot()(e,["immediate","lazyMount","onExitComplete","present","skipAnimationOnMount","unmountOnExit"]);var te=(e,t=[])=>({parts:(...r)=>{if(Rn(t))return te(e,r);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...r)=>te(e,[...t,...r]),omit:(...r)=>te(e,t.filter(n=>!r.includes(n))),rename:r=>te(r,t),keys:()=>t,build:()=>[...new Set(t)].reduce((r,n)=>Object.assign(r,{[n]:{selector:[`&[data-scope="${K(e)}"][data-part="${K(n)}"]`,`& [data-scope="${K(e)}"][data-part="${K(n)}"]`].join(", "),attrs:{"data-scope":K(e),"data-part":K(n)}}}),{})}),K=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),Rn=e=>e.length===0,H=new WeakMap,se=new WeakMap,ie={},ye=0,dt=e=>e&&(e.host||dt(e.parentNode)),Sn=(e,t)=>t.map(r=>{if(e.contains(r))return r;const n=dt(r);return n&&e.contains(n)?n:(console.error("[zag-js > ariaHidden] target",r,"in not contained inside",e,". Doing nothing"),null)}).filter(r=>!!r),An=new Set(["script","output","status","next-route-announcer"]),In=e=>An.has(e.localName)||e.role==="status"||e.hasAttribute("aria-live")?!0:e.matches("[data-live-announcer]"),Ln=(e,t)=>{const{parentNode:r,markerName:n,controlAttribute:o}=t,s=Sn(r,Array.isArray(e)?e:[e]);ie[n]||(ie[n]=new WeakMap);const i=ie[n],a=[],u=new Set,c=new Set(s),d=l=>{!l||u.has(l)||(u.add(l),d(l.parentNode))};s.forEach(d);const h=l=>{!l||c.has(l)||Array.prototype.forEach.call(l.children,v=>{if(u.has(v))h(v);else try{if(In(v))return;const y=v.getAttribute(o)==="true",C=(H.get(v)||0)+1,w=(i.get(v)||0)+1;H.set(v,C),i.set(v,w),a.push(v),C===1&&y&&se.set(v,!0),w===1&&v.setAttribute(n,""),y||v.setAttribute(o,"true")}catch(g){console.error("[zag-js > ariaHidden] cannot operate on ",v,g)}})};return h(r),u.clear(),ye++,()=>{a.forEach(l=>{const v=H.get(l)-1,g=i.get(l)-1;H.set(l,v),i.set(l,g),v||(se.has(l)||l.removeAttribute(o),se.delete(l)),g||l.removeAttribute(n)}),ye--,ye||(H=new WeakMap,H=new WeakMap,se=new WeakMap,ie={})}},Bn=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,Mn=(e,t=Bn(e),r="data-aria-hidden")=>{if(t)return Ln(e,{parentNode:t,markerName:r,controlAttribute:"aria-hidden"})},$n=e=>{const t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};function jn(e,t={}){const{defer:r=!0}=t,n=r?$n:s=>s(),o=[];return o.push(n(()=>{const i=(typeof e=="function"?e():e).filter(Boolean);i.length!==0&&o.push(Mn(i))})),()=>{o.forEach(s=>s?.())}}function _n(e){const t={each(r){for(let n=0;n<e.frames?.length;n+=1){const o=e.frames[n];o&&r(o)}},addEventListener(r,n,o){return t.each(s=>{try{s.document.addEventListener(r,n,o)}catch{}}),()=>{try{t.removeEventListener(r,n,o)}catch{}}},removeEventListener(r,n,o){t.each(s=>{try{s.document.removeEventListener(r,n,o)}catch{}})}};return t}function Gn(e){const t=e.frameElement!=null?e.parent:null;return{addEventListener:(r,n,o)=>{try{t?.addEventListener(r,n,o)}catch{}return()=>{try{t?.removeEventListener(r,n,o)}catch{}}},removeEventListener:(r,n,o)=>{try{t?.removeEventListener(r,n,o)}catch{}}}}var Le="pointerdown.outside",Be="focus.outside";function Vn(e){for(const t of e)if(D(t)&&G(t))return!0;return!1}var ft=e=>"clientY"in e;function Un(e,t){if(!ft(t)||!e)return!1;const r=e.getBoundingClientRect();return r.width===0||r.height===0?!1:r.top<=t.clientY&&t.clientY<=r.top+r.height&&r.left<=t.clientX&&t.clientX<=r.left+r.width}function Wn(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function Me(e,t){if(!t||!ft(e))return!1;const r=t.scrollHeight>t.clientHeight,n=r&&e.clientX>t.offsetLeft+t.clientWidth,o=t.scrollWidth>t.clientWidth,s=o&&e.clientY>t.offsetTop+t.clientHeight,i={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(r?16:0),height:t.clientHeight+(o?16:0)},a={x:e.clientX,y:e.clientY};return Wn(i,a)?n||s:!1}function qn(e,t){const{exclude:r,onFocusOutside:n,onPointerDownOutside:o,onInteractOutside:s,defer:i}=t;if(!e)return;const a=L(e),u=ne(e),c=_n(u),d=Gn(u);function h(b,k){if(!D(k)||!k.isConnected||ue(e,k)||Un(e,b))return!1;const T=a.querySelector(`[aria-controls="${e.id}"]`);if(T){const P=we(T);if(Me(b,P))return!1}const S=we(e);return Me(b,S)?!1:!r?.(k)}const l=new Set,v=Y(e?.getRootNode());function g(b){function k(T){const S=i&&!Se()?$:A=>A(),P=T??b,Z=P?.composedPath?.()??[P?.target];S(()=>{const A=v?Z[0]:M(b);if(!(!e||!h(b,A))){if(o||s){const he=Ee(o,s);e.addEventListener(Le,he,{once:!0})}$e(e,Le,{bubbles:!1,cancelable:!0,detail:{originalEvent:P,contextmenu:Jt(P),focusable:Vn(Z),target:A}})}})}b.pointerType==="touch"?(l.forEach(T=>T()),l.add(I(a,"click",k,{once:!0})),l.add(d.addEventListener("click",k,{once:!0})),l.add(c.addEventListener("click",k,{once:!0}))):k()}const y=new Set,C=setTimeout(()=>{y.add(I(a,"pointerdown",g,!0)),y.add(d.addEventListener("pointerdown",g,!0)),y.add(c.addEventListener("pointerdown",g,!0))},0);function w(b){(i?$:T=>T())(()=>{const T=M(b);if(!(!e||!h(b,T))){if(n||s){const S=Ee(n,s);e.addEventListener(Be,S,{once:!0})}$e(e,Be,{bubbles:!1,cancelable:!0,detail:{originalEvent:b,contextmenu:!1,focusable:G(T),target:T}})}})}return Se()||(y.add(I(a,"focusin",w,!0)),y.add(d.addEventListener("focusin",w,!0)),y.add(c.addEventListener("focusin",w,!0))),()=>{clearTimeout(C),l.forEach(b=>b()),y.forEach(b=>b())}}function Kn(e,t){const{defer:r}=t,n=r?$:s=>s(),o=[];return o.push(n(()=>{const s=typeof e=="function"?e():e;o.push(qn(s,t))})),()=>{o.forEach(s=>s?.())}}function $e(e,t,r){const n=e.ownerDocument.defaultView||window,o=new n.CustomEvent(t,r);return e.dispatchEvent(o)}function Hn(e,t){const r=n=>{n.key==="Escape"&&(n.isComposing||t?.(n))};return I(L(e),"keydown",r,{capture:!0})}var je="layer:request-dismiss",R={layers:[],branches:[],count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){const t=this.indexOf(e),r=this.topMostPointerBlockingLayer()?this.indexOf(this.topMostPointerBlockingLayer()?.node):-1;return t<r},isTopMost(e){return this.layers[this.count()-1]?.node===e},getNestedLayers(e){return Array.from(this.layers).slice(this.indexOf(e)+1)},isInNestedLayer(e,t){return this.getNestedLayers(e).some(r=>ue(r.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>ue(t,e))},add(e){this.layers.push(e),this.syncLayerIndex()},addBranch(e){this.branches.push(e)},remove(e){const t=this.indexOf(e);t<0||(t<this.count()-1&&this.getNestedLayers(e).forEach(n=>R.dismiss(n.node,e)),this.layers.splice(t,1),this.syncLayerIndex())},removeBranch(e){const t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},syncLayerIndex(){this.layers.forEach((e,t)=>{e.node.style.setProperty("--layer-index",`${t}`)})},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e,t){const r=this.indexOf(e);if(r===-1)return;const n=this.layers[r];Xn(e,je,o=>{n.requestDismiss?.(o),o.defaultPrevented||n?.dismiss()}),zn(e,je,{originalLayer:e,targetLayer:t,originalIndex:r,targetIndex:t?this.indexOf(t):-1}),this.syncLayerIndex()},clear(){this.remove(this.layers[0].node)}};function zn(e,t,r){const n=e.ownerDocument.defaultView||window,o=new n.CustomEvent(t,{cancelable:!0,bubbles:!0,detail:r});return e.dispatchEvent(o)}function Xn(e,t,r){e.addEventListener(t,r,{once:!0})}var _e;function Ge(){R.layers.forEach(({node:e})=>{e.style.pointerEvents=R.isBelowPointerBlockingLayer(e)?"none":"auto"})}function Yn(e){e.style.pointerEvents=""}function Zn(e,t){const r=L(e),n=[];return R.hasPointerBlockingLayer()&&!r.body.hasAttribute("data-inert")&&(_e=document.body.style.pointerEvents,queueMicrotask(()=>{r.body.style.pointerEvents="none",r.body.setAttribute("data-inert","")})),t?.forEach(o=>{const[s,i]=cn(()=>{const a=o();return D(a)?a:null},{timeout:1e3});s.then(a=>n.push(le(a,{pointerEvents:"auto"}))),n.push(i)}),()=>{R.hasPointerBlockingLayer()||(queueMicrotask(()=>{r.body.style.pointerEvents=_e,r.body.removeAttribute("data-inert"),r.body.style.length===0&&r.body.removeAttribute("style")}),n.forEach(o=>o()))}}function Jn(e,t){const{warnOnMissingNode:r=!0}=t;if(r&&!e){Ne("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;const{onDismiss:n,onRequestDismiss:o,pointerBlocking:s,exclude:i,debug:a}=t,u={dismiss:n,node:e,pointerBlocking:s,requestDismiss:o};R.add(u),Ge();function c(g){const y=M(g.detail.originalEvent);R.isBelowPointerBlockingLayer(e)||R.isInBranch(y)||(t.onPointerDownOutside?.(g),t.onInteractOutside?.(g),!g.defaultPrevented&&(a&&console.log("onPointerDownOutside:",g.detail.originalEvent),n?.()))}function d(g){const y=M(g.detail.originalEvent);R.isInBranch(y)||(t.onFocusOutside?.(g),t.onInteractOutside?.(g),!g.defaultPrevented&&(a&&console.log("onFocusOutside:",g.detail.originalEvent),n?.()))}function h(g){R.isTopMost(e)&&(t.onEscapeKeyDown?.(g),!g.defaultPrevented&&n&&(g.preventDefault(),n()))}function l(g){if(!e)return!1;const y=typeof i=="function"?i():i,C=Array.isArray(y)?y:[y],w=t.persistentElements?.map(b=>b()).filter(D);return w&&C.push(...w),C.some(b=>ue(b,g))||R.isInNestedLayer(e,g)}const v=[s?Zn(e,t.persistentElements):void 0,Hn(e,h),Kn(e,{exclude:l,onFocusOutside:d,onPointerDownOutside:c,defer:t.defer})];return()=>{R.remove(e),Ge(),Yn(e),v.forEach(g=>g?.())}}function Qn(e,t){const{defer:r}=t,n=r?$:s=>s(),o=[];return o.push(n(()=>{const s=X(e)?e():e;o.push(Jn(s,t))})),()=>{o.forEach(s=>s?.())}}var er=Object.defineProperty,tr=(e,t,r)=>t in e?er(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,E=(e,t,r)=>tr(e,typeof t!="symbol"?t+"":t,r),Ve={activateTrap(e,t){if(e.length>0){const n=e[e.length-1];n!==t&&n.pause()}const r=e.indexOf(t);r===-1||e.splice(r,1),e.push(t)},deactivateTrap(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1),e.length>0&&e[e.length-1].unpause()}},nr=[],rr=class{constructor(e,t){E(this,"trapStack"),E(this,"config"),E(this,"doc"),E(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),E(this,"listenerCleanups",[]),E(this,"handleFocus",n=>{const o=M(n),s=this.findContainerIndex(o,n)>=0;if(s||Ce(o))s&&(this.state.mostRecentlyFocusedNode=o);else{n.stopImmediatePropagation();let i,a=!0;if(this.state.mostRecentlyFocusedNode)if(J(this.state.mostRecentlyFocusedNode)>0){const u=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:c}=this.state.containerGroups[u];if(c.length>0){const d=c.findIndex(h=>h===this.state.mostRecentlyFocusedNode);d>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?d+1<c.length&&(i=c[d+1],a=!1):d-1>=0&&(i=c[d-1],a=!1))}}else this.state.containerGroups.some(u=>u.tabbableNodes.some(c=>J(c)>0))||(a=!1);else a=!1;a&&(i=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),i?this.tryFocus(i):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0}),E(this,"handlePointerDown",n=>{const o=M(n);if(!(this.findContainerIndex(o,n)>=0)){if(ee(this.config.clickOutsideDeactivates,n)){this.deactivate({returnFocus:this.config.returnFocusOnDeactivate});return}ee(this.config.allowOutsideClick,n)||n.preventDefault()}}),E(this,"handleClick",n=>{const o=M(n);this.findContainerIndex(o,n)>=0||ee(this.config.clickOutsideDeactivates,n)||ee(this.config.allowOutsideClick,n)||(n.preventDefault(),n.stopImmediatePropagation())}),E(this,"handleTabKey",n=>{if(this.config.isKeyForward(n)||this.config.isKeyBackward(n)){this.state.recentNavEvent=n;const o=this.config.isKeyBackward(n),s=this.findNextNavNode({event:n,isBackward:o});if(!s)return;Q(n)&&n.preventDefault(),this.tryFocus(s)}}),E(this,"handleEscapeKey",n=>{or(n)&&ee(this.config.escapeDeactivates,n)!==!1&&(n.preventDefault(),this.deactivate())}),E(this,"_mutationObserver"),E(this,"setupMutationObserver",()=>{const n=this.doc.defaultView||window;this._mutationObserver=new n.MutationObserver(o=>{o.some(i=>Array.from(i.removedNodes).some(u=>u===this.state.mostRecentlyFocusedNode))&&this.tryFocus(this.getInitialFocusNode())})}),E(this,"updateObservedNodes",()=>{this._mutationObserver?.disconnect(),this.state.active&&!this.state.paused&&this.state.containers.map(n=>{this._mutationObserver?.observe(n,{subtree:!0,childList:!0})})}),E(this,"getInitialFocusNode",()=>{let n=this.getNodeForOption("initialFocus",{hasFallback:!0});if(n===!1)return!1;if(n===void 0||n&&!G(n))if(this.findContainerIndex(this.doc.activeElement)>=0)n=this.doc.activeElement;else{const o=this.state.tabbableGroups[0];n=o&&o.firstTabbableNode||this.getNodeForOption("fallbackFocus")}else n===null&&(n=this.getNodeForOption("fallbackFocus"));if(!n)throw new Error("Your focus-trap needs to have at least one focusable element");return n.isConnected||(n=this.getNodeForOption("fallbackFocus")),n}),E(this,"tryFocus",n=>{if(n!==!1&&n!==ze(this.doc)){if(!n||!n.focus){this.tryFocus(this.getInitialFocusNode());return}n.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=n,sr(n)&&n.select()}}),E(this,"deactivate",n=>{if(!this.state.active)return this;const o={onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus,...n};clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),Ve.deactivateTrap(this.trapStack,this);const s=this.getOption(o,"onDeactivate"),i=this.getOption(o,"onPostDeactivate"),a=this.getOption(o,"checkCanReturnFocus"),u=this.getOption(o,"returnFocus","returnFocusOnDeactivate");s?.();const c=()=>{Ue(()=>{if(u){const d=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(d)}i?.()})};if(u&&a){const d=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);return a(d).then(c,c),this}return c(),this}),E(this,"pause",n=>{if(this.state.paused||!this.state.active)return this;const o=this.getOption(n,"onPause"),s=this.getOption(n,"onPostPause");return this.state.paused=!0,o?.(),this.removeListeners(),this.updateObservedNodes(),s?.(),this}),E(this,"unpause",n=>{if(!this.state.paused||!this.state.active)return this;const o=this.getOption(n,"onUnpause"),s=this.getOption(n,"onPostUnpause");return this.state.paused=!1,o?.(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),s?.(),this}),E(this,"updateContainerElements",n=>(this.state.containers=Array.isArray(n)?n.filter(Boolean):[n].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),E(this,"getReturnFocusNode",n=>{const o=this.getNodeForOption("setReturnFocus",{params:[n]});return o||(o===!1?!1:n)}),E(this,"getOption",(n,o,s)=>n&&n[o]!==void 0?n[o]:this.config[s||o]),E(this,"getNodeForOption",(n,{hasFallback:o=!1,params:s=[]}={})=>{let i=this.config[n];if(typeof i=="function"&&(i=i(...s)),i===!0&&(i=void 0),!i){if(i===void 0||i===!1)return i;throw new Error(`\`${n}\` was specified but was not a node, or did not return a node`)}let a=i;if(typeof i=="string"){try{a=this.doc.querySelector(i)}catch(u){throw new Error(`\`${n}\` appears to be an invalid selector; error="${u.message}"`)}if(!a&&!o)throw new Error(`\`${n}\` as selector refers to no known node`)}return a}),E(this,"findNextNavNode",n=>{const{event:o,isBackward:s=!1}=n,i=n.target||M(o);this.updateTabbableNodes();let a=null;if(this.state.tabbableGroups.length>0){const u=this.findContainerIndex(i,o),c=u>=0?this.state.containerGroups[u]:void 0;if(u<0)s?a=this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:a=this.state.tabbableGroups[0].firstTabbableNode;else if(s){let d=this.state.tabbableGroups.findIndex(({firstTabbableNode:h})=>i===h);if(d<0&&(c?.container===i||G(i)&&!W(i)&&!c?.nextTabbableNode(i,!1))&&(d=u),d>=0){const h=d===0?this.state.tabbableGroups.length-1:d-1,l=this.state.tabbableGroups[h];a=J(i)>=0?l.lastTabbableNode:l.lastDomTabbableNode}else Q(o)||(a=c?.nextTabbableNode(i,!1))}else{let d=this.state.tabbableGroups.findIndex(({lastTabbableNode:h})=>i===h);if(d<0&&(c?.container===i||G(i)&&!W(i)&&!c?.nextTabbableNode(i))&&(d=u),d>=0){const h=d===this.state.tabbableGroups.length-1?0:d+1,l=this.state.tabbableGroups[h];a=J(i)>=0?l.firstTabbableNode:l.firstDomTabbableNode}else Q(o)||(a=c?.nextTabbableNode(i))}}else a=this.getNodeForOption("fallbackFocus");return a}),this.trapStack=t.trapStack||nr;const r={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward(n){return Q(n)&&!n.shiftKey},isKeyBackward(n){return Q(n)&&n.shiftKey},...t};this.doc=r.document||L(Array.isArray(e)?e[0]:e),this.config=r,this.updateContainerElements(e),this.setupMutationObserver()}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){const r=typeof t?.composedPath=="function"?t.composedPath():void 0;return this.state.containerGroups.findIndex(({container:n,tabbableNodes:o})=>n.contains(e)||r?.includes(n)||o.find(s=>s===e))}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{const t=et(e),r=Qe(e),n=t.length>0?t[0]:void 0,o=t.length>0?t[t.length-1]:void 0,s=r.find(c=>W(c)),i=r.slice().reverse().find(c=>W(c)),a=!!t.find(c=>J(c)>0);function u(c,d=!0){const h=t.indexOf(c);return h<0?d?r.slice(r.indexOf(c)+1).find(l=>W(l)):r.slice(0,r.indexOf(c)).reverse().find(l=>W(l)):t[h+(d?1:-1)]}return{container:e,tabbableNodes:t,focusableNodes:r,posTabIndexesFound:a,firstTabbableNode:n,lastTabbableNode:o,firstDomTabbableNode:s,lastDomTabbableNode:i,nextTabbableNode:u}}),this.state.tabbableGroups=this.state.containerGroups.filter(e=>e.tabbableNodes.length>0),this.state.tabbableGroups.length<=0&&!this.getNodeForOption("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(this.state.containerGroups.find(e=>e.posTabIndexesFound)&&this.state.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}addListeners(){if(this.state.active)return Ve.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?Ue(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(I(this.doc,"focusin",this.handleFocus,!0),I(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),I(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),I(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),I(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),I(this.doc,"keydown",this.handleEscapeKey)),this}removeListeners(){if(this.state.active)return this.listenerCleanups.forEach(e=>e()),this.listenerCleanups=[],this}activate(e){if(this.state.active)return this;const t=this.getOption(e,"onActivate"),r=this.getOption(e,"onPostActivate"),n=this.getOption(e,"checkCanFocusTrap");n||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=this.doc.activeElement||null,t?.();const o=()=>{n&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),r?.()};return n?(n(this.state.containers.concat()).then(o,o),this):(o(),this)}},Q=e=>e.key==="Tab",ee=(e,...t)=>typeof e=="function"?e(...t):e,or=e=>!e.isComposing&&e.key==="Escape",Ue=e=>setTimeout(e,0),sr=e=>e.localName==="input"&&"select"in e&&typeof e.select=="function";function ir(e,t={}){let r;const n=$(()=>{const o=typeof e=="function"?e():e;if(o){r=new rr(o,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:o,...t,document:L(o)});try{r.activate()}catch{}}});return function(){r?.deactivate(),n()}}var be="data-scroll-lock";function ar(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function cr(e){const t=e??document,r=t.defaultView??window,{documentElement:n,body:o}=t;if(o.hasAttribute(be))return;const i=r.innerWidth-n.clientWidth;o.setAttribute(be,"");const a=()=>sn(n,"--scrollbar-width",`${i}px`),u=ar(n),c=()=>le(o,{overflow:"hidden",[u]:`${i}px`}),d=()=>{const{scrollX:l,scrollY:v,visualViewport:g}=r,y=g?.offsetLeft??0,C=g?.offsetTop??0,w=le(o,{position:"fixed",overflow:"hidden",top:`${-(v-Math.floor(C))}px`,left:`${-(l-Math.floor(y))}px`,right:"0",[u]:`${i}px`});return()=>{w?.(),r.scrollTo({left:l,top:v,behavior:"instant"})}},h=[a(),Yt()?d():c()];return()=>{h.forEach(l=>l?.()),o.removeAttribute(be)}}var ur=te("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),U=ur.build(),pt=e=>e.ids?.positioner??`dialog:${e.id}:positioner`,ht=e=>e.ids?.backdrop??`dialog:${e.id}:backdrop`,Pe=e=>e.ids?.content??`dialog:${e.id}:content`,gt=e=>e.ids?.trigger??`dialog:${e.id}:trigger`,Oe=e=>e.ids?.title??`dialog:${e.id}:title`,xe=e=>e.ids?.description??`dialog:${e.id}:description`,mt=e=>e.ids?.closeTrigger??`dialog:${e.id}:close`,ae=e=>e.getById(Pe(e)),lr=e=>e.getById(pt(e)),dr=e=>e.getById(ht(e)),fr=e=>e.getById(gt(e)),pr=e=>e.getById(Oe(e)),hr=e=>e.getById(xe(e)),gr=e=>e.getById(mt(e));function mr(e,t){const{state:r,send:n,context:o,prop:s,scope:i}=e,a=s("aria-label"),u=r.matches("open");return{open:u,setOpen(c){r.matches("open")!==c&&n({type:c?"OPEN":"CLOSE"})},getTriggerProps(){return t.button({...U.trigger.attrs,dir:s("dir"),id:gt(i),"aria-haspopup":"dialog",type:"button","aria-expanded":u,"data-state":u?"open":"closed","aria-controls":Pe(i),onClick(c){c.defaultPrevented||n({type:"TOGGLE"})}})},getBackdropProps(){return t.element({...U.backdrop.attrs,dir:s("dir"),hidden:!u,id:ht(i),"data-state":u?"open":"closed"})},getPositionerProps(){return t.element({...U.positioner.attrs,dir:s("dir"),id:pt(i),style:{pointerEvents:u?void 0:"none"}})},getContentProps(){const c=o.get("rendered");return t.element({...U.content.attrs,dir:s("dir"),role:s("role"),hidden:!u,id:Pe(i),tabIndex:-1,"data-state":u?"open":"closed","aria-modal":!0,"aria-label":a||void 0,"aria-labelledby":a||!c.title?void 0:Oe(i),"aria-describedby":c.description?xe(i):void 0})},getTitleProps(){return t.element({...U.title.attrs,dir:s("dir"),id:Oe(i)})},getDescriptionProps(){return t.element({...U.description.attrs,dir:s("dir"),id:xe(i)})},getCloseTriggerProps(){return t.button({...U.closeTrigger.attrs,dir:s("dir"),id:mt(i),type:"button",onClick(c){c.defaultPrevented||(c.stopPropagation(),n({type:"CLOSE"}))}})}}}var vr={props({props:e,scope:t}){const r=e.role==="alertdialog",n=r?()=>gr(t):void 0,o=typeof e.modal=="boolean"?e.modal:!0;return{role:"dialog",modal:o,trapFocus:o,preventScroll:o,closeOnInteractOutside:!r,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:n,...e}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e}){return{rendered:e(()=>({defaultValue:{title:!0,description:!0}}))}},watch({track:e,action:t,prop:r}){e([()=>r("open")],()=>{t(["toggleVisibility"])})},states:{open:{entry:["checkRenderedElements","syncZIndex"],effects:["trackDismissableElement","trapFocus","preventScroll","hideContentBelow"],on:{"CONTROLLED.CLOSE":{target:"closed"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}]}},closed:{on:{"CONTROLLED.OPEN":{target:"open"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackDismissableElement({scope:e,send:t,prop:r}){return Qn(()=>ae(e),{defer:!0,pointerBlocking:r("modal"),exclude:[fr(e)],onInteractOutside(o){r("onInteractOutside")?.(o),r("closeOnInteractOutside")||o.preventDefault()},persistentElements:r("persistentElements"),onFocusOutside:r("onFocusOutside"),onPointerDownOutside:r("onPointerDownOutside"),onRequestDismiss:r("onRequestDismiss"),onEscapeKeyDown(o){r("onEscapeKeyDown")?.(o),r("closeOnEscape")||o.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}})},preventScroll({scope:e,prop:t}){if(t("preventScroll"))return cr(e.getDoc())},trapFocus({scope:e,prop:t}){return t("trapFocus")?ir(()=>ae(e),{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:t("initialFocusEl"),setReturnFocus:n=>t("finalFocusEl")?.()??n}):void 0},hideContentBelow({scope:e,prop:t}){return t("modal")?jn(()=>[ae(e)],{defer:!0}):void 0}},actions:{checkRenderedElements({context:e,scope:t}){$(()=>{e.set("rendered",{title:!!pr(t),description:!!hr(t)})})},syncZIndex({scope:e}){$(()=>{const t=ae(e);if(!t)return;const r=Xe(t);[lr(e),dr(e)].forEach(o=>{o?.style.setProperty("--z-index",r.zIndex),o?.style.setProperty("--layer-index",r.getPropertyValue("--layer-index"))})})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},toggleVisibility({prop:e,send:t,event:r}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:r})}}}};const[Mr,vt]=re({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}}),[$r,yr]=re({name:"LocaleContext",hookName:"useLocaleContext",providerName:"<LocaleProvider />",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}}),br=e=>{const t=f.useId(),{getRootNode:r}=vt(),{dir:n}=yr(),o={id:t,getRootNode:r,dir:n,...e},s=nt(vr,o);return mr(s,vn)},Er=e=>{const[t,{children:r,...n}]=Fn(e),[o]=Nn(t),s=br(n),i=st(j({present:s.open},t));return x.jsx(Dn,{value:s,children:x.jsx(bn,{value:o,children:x.jsx(kn,{value:i,children:r})})})};const yt=f.forwardRef((e,t)=>{const r=V(),n=j(r.getTitleProps(),e);return x.jsx(q.h2,{...n,ref:t})});yt.displayName="DialogTitle";const bt=f.forwardRef((e,t)=>{const r=V(),n=Fe(),o=j({...r.getTriggerProps(),"aria-controls":n.unmounted?void 0:r.getTriggerProps()["aria-controls"]},e);return x.jsx(q.button,{...o,ref:t})});bt.displayName="DialogTrigger";const{withRootProvider:Nr,withContext:B}=wt.createSlotRecipeContext({key:"dialog"}),wr=Nr(Er,{defaultProps:{unmountOnExit:!0,lazyMount:!0}}),Pr=B(bt,"trigger",{forwardAsChild:!0}),Et=B(lt,"positioner",{forwardAsChild:!0}),Or=B(ct,"content",{forwardAsChild:!0}),xr=B(ut,"description",{forwardAsChild:!0}),Cr=B(yt,"title",{forwardAsChild:!0}),Tr=B(at,"closeTrigger",{forwardAsChild:!0}),Dr=f.forwardRef(function(t,r){const n=V();return x.jsx(Pt.chakra.button,{...t,ref:r,onClick:()=>n.setOpen(!1)})}),Nt=B(it,"backdrop",{forwardAsChild:!0}),kr=B("div","body"),Fr=B("div","footer"),Rr=B("div","header"),Sr=e=>{const{children:t,disabled:r}=e,[n,o]=f.useState(e.container?.current),s=f.useSyncExternalStore(Ir,()=>!1,()=>!0),{getRootNode:i}=vt();if(f.useEffect(()=>{o(()=>e.container?.current)},[e.container]),s||r)return x.jsx(x.Fragment,{children:t});const a=n??Ar(i);return x.jsx(x.Fragment,{children:f.Children.map(t,u=>fe.createPortal(u,a))})},Ar=e=>{const t=e?.(),r=t.getRootNode();return Y(r)?r:L(t).body},Ir=()=>()=>{},Lr=function(t){const{children:r,portalled:n=!0,portalRef:o,backdrop:s=!0,ref:i,...a}=t;return x.jsxs(Sr,{disabled:!n,container:o,children:[s&&x.jsx(Nt,{}),x.jsx(Et,{children:x.jsx(Or,{ref:i,...a,asChild:!1,children:r})})]})},Br={Root:wr,Trigger:Pr,Content:Lr,Backdrop:Nt,Positioner:Et,Title:Cr,Description:xr,Body:kr,Footer:Fr,Header:Rr,CloseTrigger:Tr,ActionTrigger:Dr};exports.Dialog=Br;
2
- //# sourceMappingURL=dialog-BQa_NWSr.cjs.js.map