@commercetools/nimbus 0.0.0-canary-20250825072120 → 0.0.0-canary-20250825072225

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 (367) hide show
  1. package/dist/accordion.d.ts +4 -4
  2. package/dist/alert.d.ts +1 -1
  3. package/dist/chunks/{accordion-B_MC1ZEv.es.js → accordion-B9jG9fOy.es.js} +3 -3
  4. package/dist/chunks/{accordion-B_MC1ZEv.es.js.map → accordion-B9jG9fOy.es.js.map} +1 -1
  5. package/dist/chunks/{accordion-C9-YyEB4.cjs.js → accordion-C52FRG2V.cjs.js} +2 -2
  6. package/dist/chunks/{accordion-C9-YyEB4.cjs.js.map → accordion-C52FRG2V.cjs.js.map} +1 -1
  7. package/dist/chunks/{alert-DwDLsZeH.cjs.js → alert-BhMfbMnN.cjs.js} +2 -2
  8. package/dist/chunks/{alert-DwDLsZeH.cjs.js.map → alert-BhMfbMnN.cjs.js.map} +1 -1
  9. package/dist/chunks/{alert-CgDrQdgE.es.js → alert-BvT6yjas.es.js} +5 -5
  10. package/dist/chunks/{alert-CgDrQdgE.es.js.map → alert-BvT6yjas.es.js.map} +1 -1
  11. package/dist/chunks/{avatar-Dg7JUfsz.es.js → avatar-B7CMxFNg.es.js} +3 -3
  12. package/dist/chunks/{avatar-Dg7JUfsz.es.js.map → avatar-B7CMxFNg.es.js.map} +1 -1
  13. package/dist/chunks/{avatar-vzHN72KS.cjs.js → avatar-mL-2hOve.cjs.js} +2 -2
  14. package/dist/chunks/{avatar-vzHN72KS.cjs.js.map → avatar-mL-2hOve.cjs.js.map} +1 -1
  15. package/dist/chunks/{badge-BeR8OqtD.es.js → badge-C2elCKPp.es.js} +2 -2
  16. package/dist/chunks/{badge-BeR8OqtD.es.js.map → badge-C2elCKPp.es.js.map} +1 -1
  17. package/dist/chunks/{badge-CJK91qKC.cjs.js → badge-HHzfG1BI.cjs.js} +2 -2
  18. package/dist/chunks/{badge-CJK91qKC.cjs.js.map → badge-HHzfG1BI.cjs.js.map} +1 -1
  19. package/dist/chunks/{box-DL4MWnyy.cjs.js → box-BPfqlznQ.cjs.js} +2 -2
  20. package/dist/chunks/box-BPfqlznQ.cjs.js.map +1 -0
  21. package/dist/chunks/{box-7pkPaNxe.es.js → box-C8731OYq.es.js} +2 -2
  22. package/dist/chunks/box-C8731OYq.es.js.map +1 -0
  23. package/dist/chunks/{button-BCYZ1Ki2.es.js → button-Bg73nQk3.es.js} +3 -3
  24. package/dist/chunks/{button-BCYZ1Ki2.es.js.map → button-Bg73nQk3.es.js.map} +1 -1
  25. package/dist/chunks/{button-IGP--12e.cjs.js → button-BiBXrCVh.cjs.js} +2 -2
  26. package/dist/chunks/{button-IGP--12e.cjs.js.map → button-BiBXrCVh.cjs.js.map} +1 -1
  27. package/dist/chunks/{calendar-B3NlJSCo.cjs.js → calendar-BydrcPp3.cjs.js} +2 -2
  28. package/dist/chunks/{calendar-B3NlJSCo.cjs.js.map → calendar-BydrcPp3.cjs.js.map} +1 -1
  29. package/dist/chunks/{calendar-D3A1ryrp.es.js → calendar-Co4TTkzj.es.js} +7 -7
  30. package/dist/chunks/{calendar-D3A1ryrp.es.js.map → calendar-Co4TTkzj.es.js.map} +1 -1
  31. package/dist/chunks/{card-4i9NTJKM.cjs.js → card-Bgg1CCU2.cjs.js} +2 -2
  32. package/dist/chunks/{card-4i9NTJKM.cjs.js.map → card-Bgg1CCU2.cjs.js.map} +1 -1
  33. package/dist/chunks/{card-D1BUuNzg.es.js → card-C7PIEqmV.es.js} +3 -3
  34. package/dist/chunks/{card-D1BUuNzg.es.js.map → card-C7PIEqmV.es.js.map} +1 -1
  35. package/dist/chunks/{checkbox-DVb0qX6x.cjs.js → checkbox-8eIhS2f6.cjs.js} +2 -2
  36. package/dist/chunks/{checkbox-DVb0qX6x.cjs.js.map → checkbox-8eIhS2f6.cjs.js.map} +1 -1
  37. package/dist/chunks/{checkbox-DlYjw56x.es.js → checkbox-B2yJgtOJ.es.js} +2 -2
  38. package/dist/chunks/{checkbox-DlYjw56x.es.js.map → checkbox-B2yJgtOJ.es.js.map} +1 -1
  39. package/dist/chunks/code-CTuEvrXA.cjs.js +2 -0
  40. package/dist/chunks/{code-DqjWYzPU.cjs.js.map → code-CTuEvrXA.cjs.js.map} +1 -1
  41. package/dist/chunks/{code-C245FocZ.es.js → code-CieYW1ER.es.js} +2 -2
  42. package/dist/chunks/{code-C245FocZ.es.js.map → code-CieYW1ER.es.js.map} +1 -1
  43. package/dist/chunks/{combobox-C3foptTP.cjs.js → combobox-BYyNTj5m.cjs.js} +2 -2
  44. package/dist/chunks/{combobox-C3foptTP.cjs.js.map → combobox-BYyNTj5m.cjs.js.map} +1 -1
  45. package/dist/chunks/{combobox-BWjVkgOn.es.js → combobox-qA8TjWPw.es.js} +6 -6
  46. package/dist/chunks/{combobox-BWjVkgOn.es.js.map → combobox-qA8TjWPw.es.js.map} +1 -1
  47. package/dist/chunks/config-Mt8_uyhI.cjs.js.map +1 -1
  48. package/dist/chunks/config-ufbQ08Vi.es.js.map +1 -1
  49. package/dist/chunks/{create-recipe-context-BEEJ70DA.cjs.js → create-recipe-context-D0_lCuqq.cjs.js} +2 -2
  50. package/dist/chunks/{create-recipe-context-BEEJ70DA.cjs.js.map → create-recipe-context-D0_lCuqq.cjs.js.map} +1 -1
  51. package/dist/chunks/{create-recipe-context-BuajKZ9o.es.js → create-recipe-context-i2odau3L.es.js} +2 -2
  52. package/dist/chunks/{create-recipe-context-BuajKZ9o.es.js.map → create-recipe-context-i2odau3L.es.js.map} +1 -1
  53. package/dist/chunks/{create-slot-recipe-context-DgamNbR-.es.js → create-slot-recipe-context-DBNItnlK.es.js} +30 -30
  54. package/dist/chunks/create-slot-recipe-context-DBNItnlK.es.js.map +1 -0
  55. package/dist/chunks/create-slot-recipe-context-HIF51Igr.cjs.js +2 -0
  56. package/dist/chunks/create-slot-recipe-context-HIF51Igr.cjs.js.map +1 -0
  57. package/dist/chunks/{data-table-DR210vqX.es.js → data-table-BqGT7Ov4.es.js} +787 -776
  58. package/dist/chunks/data-table-BqGT7Ov4.es.js.map +1 -0
  59. package/dist/chunks/data-table-CjXjfeLi.cjs.js +2 -0
  60. package/dist/chunks/data-table-CjXjfeLi.cjs.js.map +1 -0
  61. package/dist/chunks/{date-input-tNUDaNSO.es.js → date-input-BSacD65z.es.js} +2 -2
  62. package/dist/chunks/{date-input-tNUDaNSO.es.js.map → date-input-BSacD65z.es.js.map} +1 -1
  63. package/dist/chunks/{date-input-BFHLRnBr.cjs.js → date-input-DwxNrZ3r.cjs.js} +2 -2
  64. package/dist/chunks/{date-input-BFHLRnBr.cjs.js.map → date-input-DwxNrZ3r.cjs.js.map} +1 -1
  65. package/dist/chunks/{date-picker-J6nYu3zN.es.js → date-picker-COI-tlHx.es.js} +8 -8
  66. package/dist/chunks/{date-picker-J6nYu3zN.es.js.map → date-picker-COI-tlHx.es.js.map} +1 -1
  67. package/dist/chunks/{date-picker-GqOazmSZ.cjs.js → date-picker-RC0pSYZe.cjs.js} +2 -2
  68. package/dist/chunks/{date-picker-GqOazmSZ.cjs.js.map → date-picker-RC0pSYZe.cjs.js.map} +1 -1
  69. package/dist/chunks/{date-range-picker-D_gkG0on.cjs.js → date-range-picker-BMAaQ7cS.cjs.js} +2 -2
  70. package/dist/chunks/{date-range-picker-D_gkG0on.cjs.js.map → date-range-picker-BMAaQ7cS.cjs.js.map} +1 -1
  71. package/dist/chunks/{date-range-picker-DxIXHOC2.es.js → date-range-picker-BnI3m8z-.es.js} +8 -8
  72. package/dist/chunks/{date-range-picker-DxIXHOC2.es.js.map → date-range-picker-BnI3m8z-.es.js.map} +1 -1
  73. package/dist/chunks/{dialog-De8l1nzr.es.js → dialog-CG-cCFkg.es.js} +400 -385
  74. package/dist/chunks/dialog-CG-cCFkg.es.js.map +1 -0
  75. package/dist/chunks/dialog-CNZGNU5Q.cjs.js +2 -0
  76. package/dist/chunks/dialog-CNZGNU5Q.cjs.js.map +1 -0
  77. package/dist/chunks/{divider-BicBw1PK.cjs.js → divider-CTTExmLv.cjs.js} +2 -2
  78. package/dist/chunks/{divider-BicBw1PK.cjs.js.map → divider-CTTExmLv.cjs.js.map} +1 -1
  79. package/dist/chunks/{divider-DMH0p6Pr.es.js → divider-CpctZ_-U.es.js} +2 -2
  80. package/dist/chunks/{divider-DMH0p6Pr.es.js.map → divider-CpctZ_-U.es.js.map} +1 -1
  81. package/dist/chunks/empty-B5_AO6Pg.cjs.js.map +1 -1
  82. package/dist/chunks/empty-D7ZFmvo6.es.js.map +1 -1
  83. package/dist/chunks/factory-BpxiKxSs.es.js +269 -0
  84. package/dist/chunks/factory-BpxiKxSs.es.js.map +1 -0
  85. package/dist/chunks/factory-DlCuwIGL.cjs.js +3 -0
  86. package/dist/chunks/factory-DlCuwIGL.cjs.js.map +1 -0
  87. package/dist/chunks/{flex-9fkV4bsm.es.js → flex-B81RbgfK.es.js} +2 -2
  88. package/dist/chunks/{flex-9fkV4bsm.es.js.map → flex-B81RbgfK.es.js.map} +1 -1
  89. package/dist/chunks/{flex-CDVfeTs4.cjs.js → flex-BhVeeItQ.cjs.js} +2 -2
  90. package/dist/chunks/{flex-CDVfeTs4.cjs.js.map → flex-BhVeeItQ.cjs.js.map} +1 -1
  91. package/dist/chunks/{form-field-CM_uSyZr.cjs.js → form-field-B6lCvcf4.cjs.js} +2 -2
  92. package/dist/chunks/{form-field-CM_uSyZr.cjs.js.map → form-field-B6lCvcf4.cjs.js.map} +1 -1
  93. package/dist/chunks/{form-field-B1vOlQXH.es.js → form-field-BgKHtyTH.es.js} +4 -4
  94. package/dist/chunks/{form-field-B1vOlQXH.es.js.map → form-field-BgKHtyTH.es.js.map} +1 -1
  95. package/dist/chunks/{grid-Dm38IozR.cjs.js → grid-CWdLtU5p.cjs.js} +2 -2
  96. package/dist/chunks/{grid-Dm38IozR.cjs.js.map → grid-CWdLtU5p.cjs.js.map} +1 -1
  97. package/dist/chunks/{grid-DcLdIZYK.es.js → grid-Cdmh4YaF.es.js} +2 -2
  98. package/dist/chunks/{grid-DcLdIZYK.es.js.map → grid-Cdmh4YaF.es.js.map} +1 -1
  99. package/dist/chunks/grid-item-CJHf3veC.cjs.js +2 -0
  100. package/dist/chunks/grid-item-CJHf3veC.cjs.js.map +1 -0
  101. package/dist/chunks/grid-item-CpPkpUVF.es.js +78 -0
  102. package/dist/chunks/grid-item-CpPkpUVF.es.js.map +1 -0
  103. package/dist/chunks/{icon-DxRnsJFu.cjs.js → icon-C_BZeqkm.cjs.js} +2 -2
  104. package/dist/chunks/{icon-DxRnsJFu.cjs.js.map → icon-C_BZeqkm.cjs.js.map} +1 -1
  105. package/dist/chunks/{icon-Cgp53xQ2.es.js → icon-DTe62Nqz.es.js} +2 -2
  106. package/dist/chunks/{icon-Cgp53xQ2.es.js.map → icon-DTe62Nqz.es.js.map} +1 -1
  107. package/dist/chunks/{icon-button-KMr_sm5y.cjs.js → icon-button-BBkPfAM3.cjs.js} +2 -2
  108. package/dist/chunks/{icon-button-KMr_sm5y.cjs.js.map → icon-button-BBkPfAM3.cjs.js.map} +1 -1
  109. package/dist/chunks/{icon-button-DhmHHVhL.es.js → icon-button-D2qU4Eun.es.js} +2 -2
  110. package/dist/chunks/{icon-button-DhmHHVhL.es.js.map → icon-button-D2qU4Eun.es.js.map} +1 -1
  111. package/dist/chunks/{icon-toggle-button-p3GT9QUC.cjs.js → icon-toggle-button-L_kYjNhI.cjs.js} +2 -2
  112. package/dist/chunks/{icon-toggle-button-p3GT9QUC.cjs.js.map → icon-toggle-button-L_kYjNhI.cjs.js.map} +1 -1
  113. package/dist/chunks/{icon-toggle-button-Dfzrgtgw.es.js → icon-toggle-button-wjYSiFhl.es.js} +2 -2
  114. package/dist/chunks/{icon-toggle-button-Dfzrgtgw.es.js.map → icon-toggle-button-wjYSiFhl.es.js.map} +1 -1
  115. package/dist/chunks/{image-B_X4IZ54.es.js → image-B2WbQ5hi.es.js} +2 -2
  116. package/dist/chunks/{image-B_X4IZ54.es.js.map → image-B2WbQ5hi.es.js.map} +1 -1
  117. package/dist/chunks/image-BAqoLZQB.cjs.js +2 -0
  118. package/dist/chunks/{image-DCZ7u0Yz.cjs.js.map → image-BAqoLZQB.cjs.js.map} +1 -1
  119. package/dist/chunks/{image-CenZDDs1.cjs.js → image-BP9LcU28.cjs.js} +2 -2
  120. package/dist/chunks/{image-CenZDDs1.cjs.js.map → image-BP9LcU28.cjs.js.map} +1 -1
  121. package/dist/chunks/{image-Dk3v9f16.es.js → image-BycsRl2K.es.js} +2 -2
  122. package/dist/chunks/{image-Dk3v9f16.es.js.map → image-BycsRl2K.es.js.map} +1 -1
  123. package/dist/chunks/{heading-DYcfaS5T.es.js → index-0CyuQQet.es.js} +2 -2
  124. package/dist/chunks/index-0CyuQQet.es.js.map +1 -0
  125. package/dist/chunks/index-x9OhLGGf.cjs.js +2 -0
  126. package/dist/chunks/index-x9OhLGGf.cjs.js.map +1 -0
  127. package/dist/chunks/{kbd-CUSbYvfc.es.js → kbd-CDEXQyg2.es.js} +2 -2
  128. package/dist/chunks/{kbd-CUSbYvfc.es.js.map → kbd-CDEXQyg2.es.js.map} +1 -1
  129. package/dist/chunks/{kbd-CSMHvaH6.cjs.js → kbd-DP3lZ80W.cjs.js} +2 -2
  130. package/dist/chunks/{kbd-CSMHvaH6.cjs.js.map → kbd-DP3lZ80W.cjs.js.map} +1 -1
  131. package/dist/chunks/{link-B2cOAxZz.cjs.js → link-DMl9zyrR.cjs.js} +2 -2
  132. package/dist/chunks/{link-B2cOAxZz.cjs.js.map → link-DMl9zyrR.cjs.js.map} +1 -1
  133. package/dist/chunks/{link-DteZUB4U.es.js → link-Db9S7XvR.es.js} +2 -2
  134. package/dist/chunks/{link-DteZUB4U.es.js.map → link-Db9S7XvR.es.js.map} +1 -1
  135. package/dist/chunks/{list-Bm8bFcHO.cjs.js → list-r1G4iBXo.cjs.js} +2 -2
  136. package/dist/chunks/{list-Bm8bFcHO.cjs.js.map → list-r1G4iBXo.cjs.js.map} +1 -1
  137. package/dist/chunks/{list-De4DYOvu.es.js → list-x423RThD.es.js} +2 -2
  138. package/dist/chunks/{list-De4DYOvu.es.js.map → list-x423RThD.es.js.map} +1 -1
  139. package/dist/chunks/{loading-spinner-Czc9y_Gn.cjs.js → loading-spinner-BLDpwNFm.cjs.js} +2 -2
  140. package/dist/chunks/{loading-spinner-Czc9y_Gn.cjs.js.map → loading-spinner-BLDpwNFm.cjs.js.map} +1 -1
  141. package/dist/chunks/{loading-spinner-hZA3mTh7.es.js → loading-spinner-C7yZE-QF.es.js} +2 -2
  142. package/dist/chunks/{loading-spinner-hZA3mTh7.es.js.map → loading-spinner-C7yZE-QF.es.js.map} +1 -1
  143. package/dist/chunks/{multiline-text-input-ChVzVZob.cjs.js → multiline-text-input-BXpftZg5.cjs.js} +2 -2
  144. package/dist/chunks/{multiline-text-input-ChVzVZob.cjs.js.map → multiline-text-input-BXpftZg5.cjs.js.map} +1 -1
  145. package/dist/chunks/{multiline-text-input-BfG35UfF.es.js → multiline-text-input-MJPDSw2d.es.js} +2 -2
  146. package/dist/chunks/{multiline-text-input-BfG35UfF.es.js.map → multiline-text-input-MJPDSw2d.es.js.map} +1 -1
  147. package/dist/chunks/{namespace-E8aHFVxM.cjs.js → namespace-CYjqWfVn.cjs.js} +2 -2
  148. package/dist/chunks/{namespace-E8aHFVxM.cjs.js.map → namespace-CYjqWfVn.cjs.js.map} +1 -1
  149. package/dist/chunks/{namespace-BayyiBSr.es.js → namespace-HxAMZBwF.es.js} +5 -5
  150. package/dist/chunks/{namespace-BayyiBSr.es.js.map → namespace-HxAMZBwF.es.js.map} +1 -1
  151. package/dist/chunks/{number-input-Kj7uy8Kj.es.js → number-input-CFa5dE3r.es.js} +3 -3
  152. package/dist/chunks/{number-input-Kj7uy8Kj.es.js.map → number-input-CFa5dE3r.es.js.map} +1 -1
  153. package/dist/chunks/{number-input-9hCQtXai.cjs.js → number-input-DsQqe_99.cjs.js} +2 -2
  154. package/dist/chunks/{number-input-9hCQtXai.cjs.js.map → number-input-DsQqe_99.cjs.js.map} +1 -1
  155. package/dist/chunks/{password-input-Bw0E-ejz.cjs.js → password-input--fYkZAW3.cjs.js} +2 -2
  156. package/dist/chunks/{password-input-Bw0E-ejz.cjs.js.map → password-input--fYkZAW3.cjs.js.map} +1 -1
  157. package/dist/chunks/{password-input-B5jaUzRa.es.js → password-input-XSc2MhLG.es.js} +5 -5
  158. package/dist/chunks/{password-input-B5jaUzRa.es.js.map → password-input-XSc2MhLG.es.js.map} +1 -1
  159. package/dist/chunks/{progress-bar-BkJEnG2U.es.js → progress-bar-DM8YmshZ.es.js} +4 -4
  160. package/dist/chunks/{progress-bar-BkJEnG2U.es.js.map → progress-bar-DM8YmshZ.es.js.map} +1 -1
  161. package/dist/chunks/{progress-bar-BsWBRJc2.cjs.js → progress-bar-QjY92GQn.cjs.js} +2 -2
  162. package/dist/chunks/{progress-bar-BsWBRJc2.cjs.js.map → progress-bar-QjY92GQn.cjs.js.map} +1 -1
  163. package/dist/chunks/provider-BzZZw3fF.cjs.js.map +1 -1
  164. package/dist/chunks/provider-DxFdjgyb.es.js.map +1 -1
  165. package/dist/chunks/{radio-input-D3ePwO1n.cjs.js → radio-input-BOjuwflu.cjs.js} +2 -2
  166. package/dist/chunks/{radio-input-D3ePwO1n.cjs.js.map → radio-input-BOjuwflu.cjs.js.map} +1 -1
  167. package/dist/chunks/{radio-input-BX3XjxCZ.es.js → radio-input-DRDeKoG2.es.js} +2 -2
  168. package/dist/chunks/{radio-input-BX3XjxCZ.es.js.map → radio-input-DRDeKoG2.es.js.map} +1 -1
  169. package/dist/chunks/{range-calendar-Bk_im2QK.cjs.js → range-calendar-C_x3yqnL.cjs.js} +2 -2
  170. package/dist/chunks/{range-calendar-Bk_im2QK.cjs.js.map → range-calendar-C_x3yqnL.cjs.js.map} +1 -1
  171. package/dist/chunks/{range-calendar-BgJMo6pU.es.js → range-calendar-Cup7ahCy.es.js} +7 -7
  172. package/dist/chunks/{range-calendar-BgJMo6pU.es.js.map → range-calendar-Cup7ahCy.es.js.map} +1 -1
  173. package/dist/chunks/{select-ruNS6UXv.es.js → select-CMZAeYTf.es.js} +6 -6
  174. package/dist/chunks/{select-ruNS6UXv.es.js.map → select-CMZAeYTf.es.js.map} +1 -1
  175. package/dist/chunks/{select-oXXKo_nv.cjs.js → select-CxIiux8H.cjs.js} +2 -2
  176. package/dist/chunks/{select-oXXKo_nv.cjs.js.map → select-CxIiux8H.cjs.js.map} +1 -1
  177. package/dist/chunks/{simple-grid-1F5YBj03.es.js → simple-grid-Crtlocqj.es.js} +3 -3
  178. package/dist/chunks/simple-grid-Crtlocqj.es.js.map +1 -0
  179. package/dist/chunks/{simple-grid-BfDDcTNA.cjs.js → simple-grid-yOwvCBEN.cjs.js} +2 -2
  180. package/dist/chunks/simple-grid-yOwvCBEN.cjs.js.map +1 -0
  181. package/dist/chunks/{split-button-CyEM3H65.es.js → split-button-BZHi7r1E.es.js} +6 -6
  182. package/dist/chunks/{split-button-CyEM3H65.es.js.map → split-button-BZHi7r1E.es.js.map} +1 -1
  183. package/dist/chunks/{split-button-CIHXMvxD.cjs.js → split-button-hRYYvfbx.cjs.js} +2 -2
  184. package/dist/chunks/{split-button-CIHXMvxD.cjs.js.map → split-button-hRYYvfbx.cjs.js.map} +1 -1
  185. package/dist/chunks/stack-B6PqFPMh.cjs.js +2 -0
  186. package/dist/chunks/stack-B6PqFPMh.cjs.js.map +1 -0
  187. package/dist/chunks/stack-CBx-c8hI.es.js +89 -0
  188. package/dist/chunks/stack-CBx-c8hI.es.js.map +1 -0
  189. package/dist/chunks/{switch-B4gRcARZ.es.js → switch-BOvBbCnU.es.js} +2 -2
  190. package/dist/chunks/{switch-B4gRcARZ.es.js.map → switch-BOvBbCnU.es.js.map} +1 -1
  191. package/dist/chunks/{switch-C3AG1gUR.cjs.js → switch-DUiPm-aC.cjs.js} +2 -2
  192. package/dist/chunks/{switch-C3AG1gUR.cjs.js.map → switch-DUiPm-aC.cjs.js.map} +1 -1
  193. package/dist/chunks/{tag-group-BE8wfvqd.es.js → tag-group-C_oBSbrz.es.js} +3 -3
  194. package/dist/chunks/{tag-group-BE8wfvqd.es.js.map → tag-group-C_oBSbrz.es.js.map} +1 -1
  195. package/dist/chunks/{tag-group-BYQkpbiY.cjs.js → tag-group-wXtwUUis.cjs.js} +2 -2
  196. package/dist/chunks/{tag-group-BYQkpbiY.cjs.js.map → tag-group-wXtwUUis.cjs.js.map} +1 -1
  197. package/dist/chunks/{text-QANNJ4E4.es.js → text-B2wziCK6.es.js} +7 -7
  198. package/dist/chunks/text-B2wziCK6.es.js.map +1 -0
  199. package/dist/chunks/text-hUMahKuA.cjs.js +2 -0
  200. package/dist/chunks/text-hUMahKuA.cjs.js.map +1 -0
  201. package/dist/chunks/{text-input-ClB8DzCK.es.js → text-input-B7XCw3SS.es.js} +2 -2
  202. package/dist/chunks/{text-input-ClB8DzCK.es.js.map → text-input-B7XCw3SS.es.js.map} +1 -1
  203. package/dist/chunks/{text-input-DnS2RVDs.cjs.js → text-input-CCX8LUl1.cjs.js} +2 -2
  204. package/dist/chunks/{text-input-DnS2RVDs.cjs.js.map → text-input-CCX8LUl1.cjs.js.map} +1 -1
  205. package/dist/chunks/{time-input-BWkx15sb.cjs.js → time-input-DQaDOtuT.cjs.js} +2 -2
  206. package/dist/chunks/{time-input-BWkx15sb.cjs.js.map → time-input-DQaDOtuT.cjs.js.map} +1 -1
  207. package/dist/chunks/{time-input-DWx_NjPa.es.js → time-input-DiFCm9qO.es.js} +2 -2
  208. package/dist/chunks/{time-input-DWx_NjPa.es.js.map → time-input-DiFCm9qO.es.js.map} +1 -1
  209. package/dist/chunks/{toggle-button-CuDtxD_c.es.js → toggle-button-BpG_UgsK.es.js} +3 -3
  210. package/dist/chunks/{toggle-button-CuDtxD_c.es.js.map → toggle-button-BpG_UgsK.es.js.map} +1 -1
  211. package/dist/chunks/{toggle-button-PE5251Fm.cjs.js → toggle-button-C9XUBlNB.cjs.js} +2 -2
  212. package/dist/chunks/{toggle-button-PE5251Fm.cjs.js.map → toggle-button-C9XUBlNB.cjs.js.map} +1 -1
  213. package/dist/chunks/{toggle-button-group-CXrwjOF0.es.js → toggle-button-group-BjQefKya.es.js} +2 -2
  214. package/dist/chunks/{toggle-button-group-CXrwjOF0.es.js.map → toggle-button-group-BjQefKya.es.js.map} +1 -1
  215. package/dist/chunks/{toggle-button-group-B2G_b7h8.cjs.js → toggle-button-group-C-jzm7ev.cjs.js} +2 -2
  216. package/dist/chunks/{toggle-button-group-B2G_b7h8.cjs.js.map → toggle-button-group-C-jzm7ev.cjs.js.map} +1 -1
  217. package/dist/chunks/{tooltip-Ya7L6lQR.es.js → tooltip-BLyAAnK-.es.js} +2 -2
  218. package/dist/chunks/{tooltip-Ya7L6lQR.es.js.map → tooltip-BLyAAnK-.es.js.map} +1 -1
  219. package/dist/chunks/{tooltip-fOhxG4pp.cjs.js → tooltip-tZKuAv4E.cjs.js} +2 -2
  220. package/dist/chunks/{tooltip-fOhxG4pp.cjs.js.map → tooltip-tZKuAv4E.cjs.js.map} +1 -1
  221. package/dist/chunks/use-recipe-BZ_iqCkN.cjs.js.map +1 -1
  222. package/dist/chunks/use-recipe-CR4W7Dne.es.js.map +1 -1
  223. package/dist/chunks/{walk-object-vr3sAS3_.cjs.js → walk-object-Ad4Rz5Gh.cjs.js} +2 -2
  224. package/dist/chunks/{walk-object-vr3sAS3_.cjs.js.map → walk-object-Ad4Rz5Gh.cjs.js.map} +1 -1
  225. package/dist/chunks/{walk-object-CvcTxMj1.es.js → walk-object-Drjey5HY.es.js} +2 -2
  226. package/dist/chunks/{walk-object-CvcTxMj1.es.js.map → walk-object-Drjey5HY.es.js.map} +1 -1
  227. package/dist/components/accordion.cjs +1 -1
  228. package/dist/components/accordion.es.js +1 -1
  229. package/dist/components/alert.cjs +1 -1
  230. package/dist/components/alert.es.js +1 -1
  231. package/dist/components/avatar.cjs +1 -1
  232. package/dist/components/avatar.es.js +1 -1
  233. package/dist/components/badge.cjs +1 -1
  234. package/dist/components/badge.es.js +1 -1
  235. package/dist/components/box.cjs +1 -1
  236. package/dist/components/box.es.js +1 -1
  237. package/dist/components/button.cjs +1 -1
  238. package/dist/components/button.es.js +1 -1
  239. package/dist/components/calendar.cjs +1 -1
  240. package/dist/components/calendar.es.js +1 -1
  241. package/dist/components/card.cjs +1 -1
  242. package/dist/components/card.es.js +1 -1
  243. package/dist/components/checkbox.cjs +1 -1
  244. package/dist/components/checkbox.es.js +1 -1
  245. package/dist/components/code.cjs +1 -1
  246. package/dist/components/code.es.js +1 -1
  247. package/dist/components/combobox.cjs +1 -1
  248. package/dist/components/combobox.es.js +1 -1
  249. package/dist/components/components.cjs +1 -1
  250. package/dist/components/components.es.js +48 -48
  251. package/dist/components/data-table.cjs +1 -1
  252. package/dist/components/data-table.es.js +1 -1
  253. package/dist/components/date-input.cjs +1 -1
  254. package/dist/components/date-input.es.js +1 -1
  255. package/dist/components/date-picker.cjs +1 -1
  256. package/dist/components/date-picker.es.js +1 -1
  257. package/dist/components/date-range-picker.cjs +1 -1
  258. package/dist/components/date-range-picker.es.js +1 -1
  259. package/dist/components/dialog.cjs +1 -1
  260. package/dist/components/dialog.es.js +1 -1
  261. package/dist/components/divider.cjs +1 -1
  262. package/dist/components/divider.es.js +1 -1
  263. package/dist/components/flex.cjs +1 -1
  264. package/dist/components/flex.es.js +1 -1
  265. package/dist/components/form-field.cjs +1 -1
  266. package/dist/components/form-field.es.js +1 -1
  267. package/dist/components/grid.cjs +1 -1
  268. package/dist/components/grid.es.js +1 -1
  269. package/dist/components/heading.cjs +1 -1
  270. package/dist/components/heading.es.js +1 -1
  271. package/dist/components/icon-button.cjs +1 -1
  272. package/dist/components/icon-button.es.js +1 -1
  273. package/dist/components/icon-toggle-button.cjs +1 -1
  274. package/dist/components/icon-toggle-button.es.js +1 -1
  275. package/dist/components/icon.cjs +1 -1
  276. package/dist/components/icon.es.js +1 -1
  277. package/dist/components/image.cjs +1 -1
  278. package/dist/components/image.es.js +1 -1
  279. package/dist/components/kbd.cjs +1 -1
  280. package/dist/components/kbd.es.js +1 -1
  281. package/dist/components/link.cjs +1 -1
  282. package/dist/components/link.es.js +1 -1
  283. package/dist/components/list.cjs +1 -1
  284. package/dist/components/list.es.js +1 -1
  285. package/dist/components/loading-spinner.cjs +1 -1
  286. package/dist/components/loading-spinner.es.js +1 -1
  287. package/dist/components/multiline-text-input.cjs +1 -1
  288. package/dist/components/multiline-text-input.es.js +1 -1
  289. package/dist/components/number-input.cjs +1 -1
  290. package/dist/components/number-input.es.js +1 -1
  291. package/dist/components/password-input.cjs +1 -1
  292. package/dist/components/password-input.es.js +1 -1
  293. package/dist/components/progress-bar.cjs +1 -1
  294. package/dist/components/progress-bar.es.js +1 -1
  295. package/dist/components/radio-input.cjs +1 -1
  296. package/dist/components/radio-input.es.js +1 -1
  297. package/dist/components/range-calendar.cjs +1 -1
  298. package/dist/components/range-calendar.es.js +1 -1
  299. package/dist/components/select.cjs +1 -1
  300. package/dist/components/select.es.js +1 -1
  301. package/dist/components/simple-grid.cjs +1 -1
  302. package/dist/components/simple-grid.es.js +1 -1
  303. package/dist/components/split-button.cjs +1 -1
  304. package/dist/components/split-button.es.js +1 -1
  305. package/dist/components/stack.cjs +1 -1
  306. package/dist/components/stack.es.js +1 -1
  307. package/dist/components/switch.cjs +1 -1
  308. package/dist/components/switch.es.js +1 -1
  309. package/dist/components/table.cjs +1 -1
  310. package/dist/components/table.es.js +1 -1
  311. package/dist/components/tag-group.cjs +1 -1
  312. package/dist/components/tag-group.es.js +1 -1
  313. package/dist/components/text-input.cjs +1 -1
  314. package/dist/components/text-input.es.js +1 -1
  315. package/dist/components/text.cjs +1 -1
  316. package/dist/components/text.es.js +1 -1
  317. package/dist/components/time-input.cjs +1 -1
  318. package/dist/components/time-input.es.js +1 -1
  319. package/dist/components/toggle-button-group.cjs +1 -1
  320. package/dist/components/toggle-button-group.es.js +1 -1
  321. package/dist/components/toggle-button.cjs +1 -1
  322. package/dist/components/toggle-button.es.js +1 -1
  323. package/dist/components/tooltip.cjs +1 -1
  324. package/dist/components/tooltip.es.js +1 -1
  325. package/dist/components.d.ts +15 -15
  326. package/dist/data-table.d.ts +8 -8
  327. package/dist/heading.d.ts +1 -1
  328. package/dist/index.cjs +1 -1
  329. package/dist/index.cjs.map +1 -1
  330. package/dist/index.d.ts +15 -15
  331. package/dist/index.es.js +48 -48
  332. package/dist/simple-grid.d.ts +1 -1
  333. package/dist/text.d.ts +1 -1
  334. package/package.json +7 -7
  335. package/dist/chunks/box-7pkPaNxe.es.js.map +0 -1
  336. package/dist/chunks/box-DL4MWnyy.cjs.js.map +0 -1
  337. package/dist/chunks/code-DqjWYzPU.cjs.js +0 -2
  338. package/dist/chunks/create-slot-recipe-context-CHGQvGou.cjs.js +0 -2
  339. package/dist/chunks/create-slot-recipe-context-CHGQvGou.cjs.js.map +0 -1
  340. package/dist/chunks/create-slot-recipe-context-DgamNbR-.es.js.map +0 -1
  341. package/dist/chunks/data-table-BRjRsTel.cjs.js +0 -2
  342. package/dist/chunks/data-table-BRjRsTel.cjs.js.map +0 -1
  343. package/dist/chunks/data-table-DR210vqX.es.js.map +0 -1
  344. package/dist/chunks/dialog-B1XThG7_.cjs.js +0 -2
  345. package/dist/chunks/dialog-B1XThG7_.cjs.js.map +0 -1
  346. package/dist/chunks/dialog-De8l1nzr.es.js.map +0 -1
  347. package/dist/chunks/factory-DUzr3LTt.cjs.js +0 -3
  348. package/dist/chunks/factory-DUzr3LTt.cjs.js.map +0 -1
  349. package/dist/chunks/factory-Dwv06Ntb.es.js +0 -266
  350. package/dist/chunks/factory-Dwv06Ntb.es.js.map +0 -1
  351. package/dist/chunks/grid-item-B0PfRhfs.cjs.js +0 -2
  352. package/dist/chunks/grid-item-B0PfRhfs.cjs.js.map +0 -1
  353. package/dist/chunks/grid-item-BZOflk76.es.js +0 -75
  354. package/dist/chunks/grid-item-BZOflk76.es.js.map +0 -1
  355. package/dist/chunks/heading-CEFp09pV.cjs.js +0 -2
  356. package/dist/chunks/heading-CEFp09pV.cjs.js.map +0 -1
  357. package/dist/chunks/heading-DYcfaS5T.es.js.map +0 -1
  358. package/dist/chunks/image-DCZ7u0Yz.cjs.js +0 -2
  359. package/dist/chunks/simple-grid-1F5YBj03.es.js.map +0 -1
  360. package/dist/chunks/simple-grid-BfDDcTNA.cjs.js.map +0 -1
  361. package/dist/chunks/stack-B2xQMEdj.cjs.js +0 -2
  362. package/dist/chunks/stack-B2xQMEdj.cjs.js.map +0 -1
  363. package/dist/chunks/stack-DosdbBli.es.js +0 -89
  364. package/dist/chunks/stack-DosdbBli.es.js.map +0 -1
  365. package/dist/chunks/text-DNjTZCtR.cjs.js +0 -2
  366. package/dist/chunks/text-DNjTZCtR.cjs.js.map +0 -1
  367. package/dist/chunks/text-QANNJ4E4.es.js.map +0 -1
@@ -1,2 +0,0 @@
1
- "use strict";const C=require("react/jsx-runtime"),p=require("react"),de=require("react-dom"),Nt=require("./create-slot-recipe-context-CHGQvGou.cjs.js"),wt=require("./factory-DUzr3LTt.cjs.js");function Ot(e){return e==null?[]:Array.isArray(e)?e:[e]}var Pt=e=>e!=null&&typeof e=="object",ae=e=>typeof e=="string",X=e=>typeof e=="function",Ct=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),xt=e=>Object.prototype.toString.call(e),We=Function.prototype.toString,Tt=We.call(Object),Dt=e=>{if(!Pt(e)||xt(e)!="[object Object]"||Rt(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)==Tt},kt=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,Ft=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,Rt=e=>kt(e)||Ft(e),St=e=>e(),Ee=(...e)=>(...t)=>{e.forEach(function(r){r?.(...t)})};function Ue(e){if(!Dt(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]=Ue(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 At(e,t){if(e==null)throw new Error(t())}var Ke=()=>{},fe=e=>typeof e=="object"&&e!==null,It=1,Lt=9,Bt=11,D=e=>fe(e)&&e.nodeType===It&&typeof e.nodeName=="string",xe=e=>fe(e)&&e.nodeType===Lt,Mt=e=>fe(e)&&e===e.window,qe=e=>D(e)?e.localName||"":"#document";function $t(e){return["html","body","#document"].includes(qe(e))}var jt=e=>fe(e)&&e.nodeType!==void 0,Y=e=>jt(e)&&e.nodeType===Bt&&"host"in e,Gt=e=>D(e)&&e.localName==="input",_t=e=>D(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1,Vt=/(textarea|select)/;function Wt(e){if(e==null||!D(e))return!1;try{return Gt(e)&&e.selectionStart!=null||Vt.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch{return!1}}function ce(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 $(e){return xe(e)?e:Mt(e)?e.document:e?.ownerDocument??document}function Ut(e){return $(e).documentElement}function pe(e){return Y(e)?pe(e.host):xe(e)?e.defaultView??window:D(e)?e.ownerDocument?.defaultView??window:window}function He(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(qe(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Y(e)&&e.host||Ut(e);return Y(t)?t.host:t}var ge=new WeakMap;function ze(e){return ge.has(e)||ge.set(e,pe(e).getComputedStyle(e)),ge.get(e)}var Xe=()=>typeof document<"u";function qt(){return navigator.userAgentData?.platform??navigator.platform}var Te=e=>Xe()&&e.test(qt()),Se=()=>Xe()&&!!navigator.maxTouchPoints,Ht=()=>Te(/^iPhone/i),zt=()=>Te(/^iPad/i)||Ye()&&navigator.maxTouchPoints>1,Xt=()=>Ht()||zt(),Ye=()=>Te(/^Mac/i);function Yt(e){return e.composedPath?.()??e.nativeEvent?.composedPath?.()}function B(e){return Yt(e)?.[0]??e.target}var Zt=e=>e.button===2||Ye()&&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)}},Ze=e=>D(e)&&e.tagName==="IFRAME",Jt=e=>!Number.isNaN(parseInt(e.getAttribute("tabindex")||"0",10)),Qt=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",Je=(e,t=!1)=>{if(!e)return[];const r=Array.from(e.querySelectorAll(De));(t==!0||t=="if-empty"&&r.length===0)&&D(e)&&_(e)&&r.unshift(e);const o=r.filter(_);return o.forEach((s,i)=>{if(Ze(s)&&s.contentDocument){const a=s.contentDocument.body;o.splice(i,1,...Je(a))}}),o};function _(e){return!e||e.closest("[inert]")?!1:e.matches(De)&&_t(e)}function Qe(e,t){if(!e)return[];const n=Array.from(e.querySelectorAll(De)).filter(U);return n.forEach((o,s)=>{if(Ze(o)&&o.contentDocument){const i=o.contentDocument.body,a=Qe(i);n.splice(s,1,...a)}}),n.length,n}function U(e){return e!=null&&e.tabIndex>0?!0:_(e)&&!Qt(e)}function J(e){return e.tabIndex<0&&(/^(audio|video|details)$/.test(e.localName)||Wt(e))&&!Jt(e)?0:e.tabIndex}function en(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 M(e){let t;const r=globalThis.requestAnimationFrame(()=>{t=e()});return()=>{globalThis.cancelAnimationFrame(r),t?.()}}function we(e){const t=Kt(e);return $t(t)?$(t).body:D(t)&&rn(t)?t:we(t)}var tn=/auto|scroll|overlay|hidden|clip/,nn=new Set(["inline","contents"]);function rn(e){const t=pe(e),{overflow:r,overflowX:n,overflowY:o,display:s}=t.getComputedStyle(e);return tn.test(r+o+n)&&!nn.has(s)}function ue(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 on(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")}}var sn=1e3/60;function an(e,t){const r=e();if(D(r)&&r.isConnected)return t(r),()=>{};{const n=setInterval(()=>{const o=e();D(o)&&o.isConnected&&(t(o),clearInterval(n))},sn);return()=>clearInterval(n)}}function cn(e,t){const r=[];return e?.forEach(n=>{const o=an(n,t);r.push(o)}),()=>{r.forEach(n=>n())}}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(ae(e)){if(ae(t))return`${e};${t}`;e=Ae(e)}else ae(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=()=>$(t()),n=()=>r().defaultView??window,o=()=>He(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 et=typeof globalThis.document<"u"?p.useLayoutEffect:p.useEffect;function le(e){const t=e().value??e().defaultValue,r=e().isEqual??Object.is,[n]=p.useState(t),[o,s]=p.useState(n),i=e().value!==void 0,a=p.useRef(o);a.current=i?e().value:o;const u=p.useRef(a.current);et(()=>{u.current=a.current},[o,e().value]);const c=g=>{const l=u.current,d=X(g)?g(l):g;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:d,prev:l}),i||s(d),r(d,l)||e().onChange?.(d,l)};function f(){return i?e().value:o}return{initial:n,ref:a,get:f,set(g){(e().sync?de.flushSync:St)(()=>c(g))},invoke(g,l){e().onChange?.(g,l)},hash(g){return e().hash?.(g)??String(g)}}}le.cleanup=e=>{p.useEffect(()=>e,[])};le.ref=e=>{const t=p.useRef(e);return{get:()=>t.current,set:r=>{t.current=r}}};function hn(e){const t=p.useRef(e);return{get(r){return t.current[r]},set(r,n){t.current[r]=n}}}var gn=(e,t)=>{const r=p.useRef(!1),n=p.useRef(!1);p.useEffect(()=>{if(r.current&&n.current)return t();n.current=!0},[...(e??[]).map(o=>typeof o=="function"?o():o)]),p.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])};function tt(e,t={}){const r=p.useMemo(()=>{const{id:h,ids:m,getRootNode:P}=t;return fn({id:h,ids:m,getRootNode:P})},[t]),n=(...h)=>{e.debug&&console.log(...h)},o=e.props?.({props:Ue(t),scope:r})??t,s=mn(o),i=e.context?.({prop:s,bindable:le,scope:r,flush:Ie,getContext(){return u},getComputed(){return S},getRefs(){return b},getEvent(){return d()}}),a=nt(i),u={get(h){return a.current?.[h].ref.current},set(h,m){a.current?.[h].set(m)},initial(h){return a.current?.[h].initial},hash(h){const m=a.current?.[h].get();return a.current?.[h].hash(m)}},c=p.useRef(new Map),f=p.useRef(null),g=p.useRef(null),l=p.useRef({type:""}),d=()=>({...l.current,current(){return l.current},previous(){return g.current}}),v=()=>({...O,matches(...h){return h.includes(O.ref.current)},hasTag(h){return!!e.states[O.ref.current]?.tags?.includes(h)}}),b=hn(e.refs?.({prop:s,context:u})??{}),x=()=>({state:v(),context:u,event:d(),prop:s,send:Re,action:E,guard:w,track:gn,refs:b,computed:S,flush:Ie,scope:r,choose:T}),E=h=>{const m=X(h)?h(x()):h;if(!m)return;const P=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 P)N?.(x())},w=h=>X(h)?h(x()):e.implementations?.guards?.[h](x()),k=h=>{const m=X(h)?h(x()):h;if(!m)return;const P=m.map(F=>{const G=e.implementations?.effects?.[F];return G||Ne(`[zag-js] No implementation found for effect "${JSON.stringify(F)}"`),G}),N=[];for(const F of P){const G=F?.(x());G&&N.push(G)}return()=>N.forEach(F=>F?.())},T=h=>Ot(h).find(m=>{let P=!m.guard;return ae(m.guard)?P=!!w(m.guard):X(m.guard)&&(P=m.guard(x())),P}),S=h=>{At(e.computed,()=>"[zag-js] No computed object found on machine");const m=e.computed[h];return m({context:u,event:d(),prop:s,refs:b,scope:r,computed:S})},O=le(()=>({defaultValue:e.initialState({prop:s}),onChange(h,m){m&&(c.current.get(m)?.(),c.current.delete(m)),m&&E(e.states[m]?.exit),E(f.current?.actions);const P=k(e.states[h]?.effects);if(P&&c.current.set(h,P),m===me){E(e.entry);const N=k(e.effects);N&&c.current.set(me,N)}E(e.states[h]?.entry)}})),Z=p.useRef(void 0),A=p.useRef(z.NotStarted);et(()=>{queueMicrotask(()=>{const P=A.current===z.Started;A.current=z.Started,n(P?"rehydrating...":"initializing...");const N=Z.current??O.initial;O.invoke(N,P?O.get():me)});const h=c.current,m=O.ref.current;return()=>{n("unmounting..."),Z.current=m,A.current=z.Stopped,h.forEach(P=>P?.()),c.current=new Map,f.current=null,queueMicrotask(()=>{E(e.exit)})}},[]);const he=()=>"ref"in O?O.ref.current:O.get(),Re=h=>{queueMicrotask(()=>{if(A.current!==z.Started)return;g.current=l.current,l.current=h,n("send",h);let m=he();const P=e.states[m].on?.[h.type]??e.on?.[h.type],N=T(P);if(!N)return;f.current=N;const F=N.target??m;n("transition",N);const G=F!==m;G?de.flushSync(()=>O.set(F)):N.reenter&&!G?O.invoke(m,m):E(N.actions??[])})};return e.watch?.(x()),{state:v(),send:Re,context:u,prop:s,scope:r,refs:b,computed:S,event:d(),getStatus:()=>A.current}}function nt(e){const t=p.useRef(e);return t.current=e,t}function mn(e){const t=nt(e);return function(n){return t.current[n]}}function Ie(e){queueMicrotask(()=>{de.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 ne(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:s,defaultValue:i}=e,a=p.createContext(i);a.displayName=t;function u(){const c=p.useContext(a);if(!c&&r){const f=new Error(s??yn(n,o));throw f.name="ContextError",Error.captureStackTrace?.(f,u),f}return c}return[a.Provider,u,a]}const rt=()=>(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]=ne({name:"RenderStrategyContext",hookName:"useRenderStrategyContext",providerName:"<RenderStrategyPropsProvider />"}),Nn=e=>rt()(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=p.memo(p.forwardRef((r,n)=>{const{asChild:o,children:s,...i}=r;if(!o)return p.createElement(e,{...i,ref:n},s);const a=p.Children.only(s);if(!p.isValidElement(a))return null;const u=wn(a);return p.cloneElement(a,{...j(i,a.props),ref:n?ke(n,u):u})}));return t.displayName=e.displayName||e.name,t},On=()=>{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)}})},K=On();function Pn(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 Cn={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,action:t,prop:r}){e([()=>r("present")],()=>{t(["setInitial","syncPresence"])})},on:{"NODE.SET":{actions:["setNode","setStyles"]}},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)},cleanupNode:({refs:e})=>{e.set("node",null),e.set("styles",null)},invokeOnExitComplete:({prop:e})=>{e("onExitComplete")?.()},setNode:({refs:e,event:t})=>{e.set("node",t.node)},setStyles:({refs:e,event:t})=>{e.set("styles",ze(t.node))},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"});M(()=>{const i=re(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})=>{M(()=>{e.set("prevAnimationName",re(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",re(t.get("styles")))},s=a=>{const u=re(t.get("styles"));B(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=ue(n,{animationFillMode:"forwards"});return()=>{n.removeEventListener("animationstart",o),n.removeEventListener("animationcancel",s),n.removeEventListener("animationend",s),en(()=>i())}}}}};function re(e){return e?.animationName||"none"}function xn(e,t={}){const{sync:r=!1}=t,n=Tn(e);return p.useCallback((...o)=>r?queueMicrotask(()=>n.current?.(...o)):n.current?.(...o),[r,n])}function Tn(e){const t=p.useRef(e);return t.current=e,t}const ot=(e={})=>{const{lazyMount:t,unmountOnExit:r,present:n,skipAnimationOnMount:o=!1,...s}=e,i=p.useRef(!1),a={...s,present:n,onExitComplete:xn(e.onExitComplete)},u=tt(Cn,a),c=Pn(u);c.present&&(i.current=!0);const f=!c.present&&!i.current&&t||r&&!c.present&&i.current,g=()=>({"data-state":c.skip&&o?void 0:n?"open":"closed",hidden:!c.present});return{ref:c.setNode,getPresenceProps:g,present:c.present,unmounted:f}},[Dn,V]=ne({name:"DialogContext",hookName:"useDialogContext",providerName:"<DialogProvider />"}),st=p.forwardRef((e,t)=>{const r=V(),n=En(),o=ot({...n,present:r.open}),s=j(r.getBackdropProps(),o.getPresenceProps(),e);return o.unmounted?null:C.jsx(K.div,{...s,ref:ke(o.ref,t)})});st.displayName="DialogBackdrop";const it=p.forwardRef((e,t)=>{const r=V(),n=j(r.getCloseTriggerProps(),e);return C.jsx(K.button,{...n,ref:t})});it.displayName="DialogCloseTrigger";const[kn,Fe]=ne({name:"PresenceContext",hookName:"usePresenceContext",providerName:"<PresenceProvider />"}),at=p.forwardRef((e,t)=>{const r=V(),n=Fe(),o=j(r.getContentProps(),n.getPresenceProps(),e);return n.unmounted?null:C.jsx(K.div,{...o,ref:ke(n.ref,t)})});at.displayName="DialogContent";const ct=p.forwardRef((e,t)=>{const r=V(),n=j(r.getDescriptionProps(),e);return C.jsx(K.div,{...n,ref:t})});ct.displayName="DialogDescription";const ut=p.forwardRef((e,t)=>{const r=V(),n=j(r.getPositionerProps(),e);return Fe().unmounted?null:C.jsx(K.div,{...n,ref:t})});ut.displayName="DialogPositioner";const Fn=e=>rt()(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="${q(e)}"][data-part="${q(n)}"]`,`& [data-scope="${q(e)}"][data-part="${q(n)}"]`].join(", "),attrs:{"data-scope":q(e),"data-part":q(n)}}}),{})}),q=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,oe=new WeakMap,se={},ye=0,lt=e=>e&&(e.host||lt(e.parentNode)),Sn=(e,t)=>t.map(r=>{if(e.contains(r))return r;const n=lt(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]);se[n]||(se[n]=new WeakMap);const i=se[n],a=[],u=new Set,c=new Set(s),f=l=>{!l||u.has(l)||(u.add(l),f(l.parentNode))};s.forEach(f);const g=l=>{!l||c.has(l)||Array.prototype.forEach.call(l.children,d=>{if(u.has(d))g(d);else try{if(In(d))return;const b=d.getAttribute(o)==="true",x=(H.get(d)||0)+1,E=(i.get(d)||0)+1;H.set(d,x),i.set(d,E),a.push(d),x===1&&b&&oe.set(d,!0),E===1&&d.setAttribute(n,""),b||d.setAttribute(o,"true")}catch(v){console.error("[zag-js > ariaHidden] cannot operate on ",d,v)}})};return g(r),u.clear(),ye++,()=>{a.forEach(l=>{const d=H.get(l)-1,v=i.get(l)-1;H.set(l,d),i.set(l,v),d||(oe.has(l)||l.removeAttribute(o),oe.delete(l)),v||l.removeAttribute(n)}),ye--,ye||(H=new WeakMap,H=new WeakMap,oe=new WeakMap,se={})}},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 Gn(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 _n(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)&&_(t))return!0;return!1}var dt=e=>"clientY"in e;function Wn(e,t){if(!dt(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 Un(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||!dt(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 Un(i,a)?n||s:!1}function Kn(e,t){const{exclude:r,onFocusOutside:n,onPointerDownOutside:o,onInteractOutside:s,defer:i}=t;if(!e)return;const a=$(e),u=pe(e),c=Gn(u),f=_n(u);function g(w,k){if(!D(k)||!k.isConnected||ce(e,k)||Wn(e,w))return!1;const T=a.querySelector(`[aria-controls="${e.id}"]`);if(T){const O=we(T);if(Me(w,O))return!1}const S=we(e);return Me(w,S)?!1:!r?.(k)}const l=new Set,d=Y(e?.getRootNode());function v(w){function k(T){const S=i&&!Se()?M:A=>A(),O=T??w,Z=O?.composedPath?.()??[O?.target];S(()=>{const A=d?Z[0]:B(w);if(!(!e||!g(w,A))){if(o||s){const he=Ee(o,s);e.addEventListener(Le,he,{once:!0})}$e(e,Le,{bubbles:!1,cancelable:!0,detail:{originalEvent:O,contextmenu:Zt(O),focusable:Vn(Z),target:A}})}})}w.pointerType==="touch"?(l.forEach(T=>T()),l.add(I(a,"click",k,{once:!0})),l.add(f.addEventListener("click",k,{once:!0})),l.add(c.addEventListener("click",k,{once:!0}))):k()}const b=new Set,x=setTimeout(()=>{b.add(I(a,"pointerdown",v,!0)),b.add(f.addEventListener("pointerdown",v,!0)),b.add(c.addEventListener("pointerdown",v,!0))},0);function E(w){(i?M:T=>T())(()=>{const T=B(w);if(!(!e||!g(w,T))){if(n||s){const S=Ee(n,s);e.addEventListener(Be,S,{once:!0})}$e(e,Be,{bubbles:!1,cancelable:!0,detail:{originalEvent:w,contextmenu:!1,focusable:_(T),target:T}})}})}return Se()||(b.add(I(a,"focusin",E,!0)),b.add(f.addEventListener("focusin",E,!0)),b.add(c.addEventListener("focusin",E,!0))),()=>{clearTimeout(x),l.forEach(w=>w()),b.forEach(w=>w())}}function qn(e,t){const{defer:r}=t,n=r?M:s=>s(),o=[];return o.push(n(()=>{const s=typeof e=="function"?e():e;o.push(Kn(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($(e),"keydown",r,{capture:!0})}var 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=>ce(r.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>ce(t,e))},add(e){const t=this.layers.push(e);e.node.style.setProperty("--layer-index",`${t}`)},addBranch(e){this.branches.push(e)},remove(e){const t=this.indexOf(e);t<0||(t<this.count()-1&&this.getNestedLayers(e).forEach(n=>n.dismiss()),this.layers.splice(t,1),e.style.removeProperty("--layer-index"))},removeBranch(e){const t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e){this.layers[this.indexOf(e)]?.dismiss()},clear(){this.remove(this.layers[0].node)}},je;function Ge(){R.layers.forEach(({node:e})=>{e.style.pointerEvents=R.isBelowPointerBlockingLayer(e)?"none":"auto"})}function zn(e){e.style.pointerEvents=""}function Xn(e,t){const r=$(e),n=[];if(R.hasPointerBlockingLayer()&&!r.body.hasAttribute("data-inert")&&(je=document.body.style.pointerEvents,queueMicrotask(()=>{r.body.style.pointerEvents="none",r.body.setAttribute("data-inert","")})),t){const o=cn(t,s=>{n.push(ue(s,{pointerEvents:"auto"}))});n.push(o)}return()=>{R.hasPointerBlockingLayer()||(queueMicrotask(()=>{r.body.style.pointerEvents=je,r.body.removeAttribute("data-inert"),r.body.style.length===0&&r.body.removeAttribute("style")}),n.forEach(o=>o()))}}function Yn(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,pointerBlocking:o,exclude:s,debug:i}=t,a={dismiss:n,node:e,pointerBlocking:o};R.add(a),Ge();function u(d){const v=B(d.detail.originalEvent);R.isBelowPointerBlockingLayer(e)||R.isInBranch(v)||(t.onPointerDownOutside?.(d),t.onInteractOutside?.(d),!d.defaultPrevented&&(i&&console.log("onPointerDownOutside:",d.detail.originalEvent),n?.()))}function c(d){const v=B(d.detail.originalEvent);R.isInBranch(v)||(t.onFocusOutside?.(d),t.onInteractOutside?.(d),!d.defaultPrevented&&(i&&console.log("onFocusOutside:",d.detail.originalEvent),n?.()))}function f(d){R.isTopMost(e)&&(t.onEscapeKeyDown?.(d),!d.defaultPrevented&&n&&(d.preventDefault(),n()))}function g(d){if(!e)return!1;const v=typeof s=="function"?s():s,b=Array.isArray(v)?v:[v],x=t.persistentElements?.map(E=>E()).filter(D);return x&&b.push(...x),b.some(E=>ce(E,d))||R.isInNestedLayer(e,d)}const l=[o?Xn(e,t.persistentElements):void 0,Hn(e,f),qn(e,{exclude:g,onFocusOutside:c,onPointerDownOutside:u,defer:t.defer})];return()=>{R.remove(e),Ge(),zn(e),l.forEach(d=>d?.())}}function Zn(e,t){const{defer:r}=t,n=r?M:s=>s(),o=[];return o.push(n(()=>{const s=X(e)?e():e;o.push(Yn(s,t))})),()=>{o.forEach(s=>s?.())}}var Jn=Object.defineProperty,Qn=(e,t,r)=>t in e?Jn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,y=(e,t,r)=>Qn(e,typeof t!="symbol"?t+"":t,r),_e={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()}},er=[],tr=class{constructor(e,t){y(this,"trapStack"),y(this,"config"),y(this,"doc"),y(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),y(this,"listenerCleanups",[]),y(this,"handleFocus",n=>{const o=B(n),s=this.findContainerIndex(o,n)>=0;if(s||xe(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 f=c.findIndex(g=>g===this.state.mostRecentlyFocusedNode);f>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?f+1<c.length&&(i=c[f+1],a=!1):f-1>=0&&(i=c[f-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}),y(this,"handlePointerDown",n=>{const o=B(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()}}),y(this,"handleClick",n=>{const o=B(n);this.findContainerIndex(o,n)>=0||ee(this.config.clickOutsideDeactivates,n)||ee(this.config.allowOutsideClick,n)||(n.preventDefault(),n.stopImmediatePropagation())}),y(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)}}),y(this,"handleEscapeKey",n=>{nr(n)&&ee(this.config.escapeDeactivates,n)!==!1&&(n.preventDefault(),this.deactivate())}),y(this,"_mutationObserver"),y(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())})}),y(this,"updateObservedNodes",()=>{this._mutationObserver?.disconnect(),this.state.active&&!this.state.paused&&this.state.containers.map(n=>{this._mutationObserver?.observe(n,{subtree:!0,childList:!0})})}),y(this,"getInitialFocusNode",()=>{let n=this.getNodeForOption("initialFocus",{hasFallback:!0});if(n===!1)return!1;if(n===void 0||n&&!_(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}),y(this,"tryFocus",n=>{if(n!==!1&&n!==He(this.doc)){if(!n||!n.focus){this.tryFocus(this.getInitialFocusNode());return}n.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=n,rr(n)&&n.select()}}),y(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(),_e.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=()=>{Ve(()=>{if(u){const f=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(f)}i?.()})};if(u&&a){const f=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);return a(f).then(c,c),this}return c(),this}),y(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}),y(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}),y(this,"updateContainerElements",n=>(this.state.containers=Array.isArray(n)?n.filter(Boolean):[n].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),y(this,"getReturnFocusNode",n=>{const o=this.getNodeForOption("setReturnFocus",{params:[n]});return o||(o===!1?!1:n)}),y(this,"getOption",(n,o,s)=>n&&n[o]!==void 0?n[o]:this.config[s||o]),y(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}),y(this,"findNextNavNode",n=>{const{event:o,isBackward:s=!1}=n,i=n.target||B(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 f=this.state.tabbableGroups.findIndex(({firstTabbableNode:g})=>i===g);if(f<0&&(c?.container===i||_(i)&&!U(i)&&!c?.nextTabbableNode(i,!1))&&(f=u),f>=0){const g=f===0?this.state.tabbableGroups.length-1:f-1,l=this.state.tabbableGroups[g];a=J(i)>=0?l.lastTabbableNode:l.lastDomTabbableNode}else Q(o)||(a=c?.nextTabbableNode(i,!1))}else{let f=this.state.tabbableGroups.findIndex(({lastTabbableNode:g})=>i===g);if(f<0&&(c?.container===i||_(i)&&!U(i)&&!c?.nextTabbableNode(i))&&(f=u),f>=0){const g=f===this.state.tabbableGroups.length-1?0:f+1,l=this.state.tabbableGroups[g];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||er;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||$(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=Qe(e),r=Je(e),n=t.length>0?t[0]:void 0,o=t.length>0?t[t.length-1]:void 0,s=r.find(c=>U(c)),i=r.slice().reverse().find(c=>U(c)),a=!!t.find(c=>J(c)>0);function u(c,f=!0){const g=t.indexOf(c);return g<0?f?r.slice(r.indexOf(c)+1).find(l=>U(l)):r.slice(0,r.indexOf(c)).reverse().find(l=>U(l)):t[g+(f?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 _e.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?Ve(()=>{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,nr=e=>!e.isComposing&&e.key==="Escape",Ve=e=>setTimeout(e,0),rr=e=>e.localName==="input"&&"select"in e&&typeof e.select=="function";function or(e,t={}){let r;const n=M(()=>{const o=typeof e=="function"?e():e;if(o){r=new tr(o,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:o,...t,document:$(o)});try{r.activate()}catch{}}});return function(){r?.deactivate(),n()}}var be="data-scroll-lock";function sr(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function ir(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=()=>on(n,"--scrollbar-width",`${i}px`),u=sr(n),c=()=>ue(o,{overflow:"hidden",[u]:`${i}px`}),f=()=>{const{scrollX:l,scrollY:d,visualViewport:v}=r,b=v?.offsetLeft??0,x=v?.offsetTop??0,E=ue(o,{position:"fixed",overflow:"hidden",top:`${-(d-Math.floor(x))}px`,left:`${-(l-Math.floor(b))}px`,right:"0",[u]:`${i}px`});return()=>{E?.(),r.scrollTo({left:l,top:d,behavior:"instant"})}},g=[a(),Xt()?f():c()];return()=>{g.forEach(l=>l?.()),o.removeAttribute(be)}}var ar=te("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),W=ar.build(),ft=e=>e.ids?.positioner??`dialog:${e.id}:positioner`,pt=e=>e.ids?.backdrop??`dialog:${e.id}:backdrop`,Oe=e=>e.ids?.content??`dialog:${e.id}:content`,ht=e=>e.ids?.trigger??`dialog:${e.id}:trigger`,Pe=e=>e.ids?.title??`dialog:${e.id}:title`,Ce=e=>e.ids?.description??`dialog:${e.id}:description`,gt=e=>e.ids?.closeTrigger??`dialog:${e.id}:close`,ie=e=>e.getById(Oe(e)),cr=e=>e.getById(ft(e)),ur=e=>e.getById(pt(e)),lr=e=>e.getById(ht(e)),dr=e=>e.getById(Pe(e)),fr=e=>e.getById(Ce(e)),pr=e=>e.getById(gt(e));function hr(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({...W.trigger.attrs,dir:s("dir"),id:ht(i),"aria-haspopup":"dialog",type:"button","aria-expanded":u,"data-state":u?"open":"closed","aria-controls":Oe(i),onClick(c){c.defaultPrevented||n({type:"TOGGLE"})}})},getBackdropProps(){return t.element({...W.backdrop.attrs,dir:s("dir"),hidden:!u,id:pt(i),"data-state":u?"open":"closed"})},getPositionerProps(){return t.element({...W.positioner.attrs,dir:s("dir"),id:ft(i),style:{pointerEvents:u?void 0:"none"}})},getContentProps(){const c=o.get("rendered");return t.element({...W.content.attrs,dir:s("dir"),role:s("role"),hidden:!u,id:Oe(i),tabIndex:-1,"data-state":u?"open":"closed","aria-modal":!0,"aria-label":a||void 0,"aria-labelledby":a||!c.title?void 0:Pe(i),"aria-describedby":c.description?Ce(i):void 0})},getTitleProps(){return t.element({...W.title.attrs,dir:s("dir"),id:Pe(i)})},getDescriptionProps(){return t.element({...W.description.attrs,dir:s("dir"),id:Ce(i)})},getCloseTriggerProps(){return t.button({...W.closeTrigger.attrs,dir:s("dir"),id:gt(i),type:"button",onClick(c){c.defaultPrevented||(c.stopPropagation(),n({type:"CLOSE"}))}})}}}var gr={props({props:e,scope:t}){const r=e.role==="alertdialog";return{role:"dialog",modal:!0,trapFocus:!0,preventScroll:!0,closeOnInteractOutside:!r,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:r?()=>pr(t):void 0,...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 Zn(()=>ie(e),{defer:!0,pointerBlocking:r("modal"),exclude:[lr(e)],onInteractOutside(o){r("onInteractOutside")?.(o),r("closeOnInteractOutside")||o.preventDefault()},persistentElements:r("persistentElements"),onFocusOutside:r("onFocusOutside"),onPointerDownOutside:r("onPointerDownOutside"),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 ir(e.getDoc())},trapFocus({scope:e,prop:t}){return!t("trapFocus")||!t("modal")?void 0:or(()=>ie(e),{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:t("initialFocusEl"),setReturnFocus:n=>t("finalFocusEl")?.()??n})},hideContentBelow({scope:e,prop:t}){return t("modal")?jn(()=>[ie(e)],{defer:!0}):void 0}},actions:{checkRenderedElements({context:e,scope:t}){M(()=>{e.set("rendered",{title:!!dr(t),description:!!fr(t)})})},syncZIndex({scope:e}){M(()=>{const t=ie(e);if(!t)return;const r=ze(t);[cr(e),ur(e)].forEach(o=>{o?.style.setProperty("--z-index",r.zIndex)})})},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[Lr,mt]=ne({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}}),[Br,mr]=ne({name:"LocaleContext",hookName:"useLocaleContext",providerName:"<LocaleProvider />",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}}),vr=e=>{const t=p.useId(),{getRootNode:r}=mt(),{dir:n}=mr(),o={id:t,getRootNode:r,dir:n,...e},s=tt(gr,o);return hr(s,vn)},yr=e=>{const[t,{children:r,...n}]=Fn(e),[o]=Nn(t),s=vr(n),i=ot(j({present:s.open},t));return C.jsx(Dn,{value:s,children:C.jsx(bn,{value:o,children:C.jsx(kn,{value:i,children:r})})})};const vt=p.forwardRef((e,t)=>{const r=V(),n=j(r.getTitleProps(),e);return C.jsx(K.h2,{...n,ref:t})});vt.displayName="DialogTitle";const yt=p.forwardRef((e,t)=>{const r=V(),n=Fe(),o=j({...r.getTriggerProps(),"aria-controls":n.unmounted?void 0:r.getTriggerProps()["aria-controls"]},e);return C.jsx(K.button,{...o,ref:t})});yt.displayName="DialogTrigger";const{withRootProvider:br,withContext:L}=Nt.createSlotRecipeContext({key:"dialog"}),Er=br(yr,{defaultProps:{unmountOnExit:!0,lazyMount:!0}}),Nr=L(yt,"trigger",{forwardAsChild:!0}),bt=L(ut,"positioner",{forwardAsChild:!0}),wr=L(at,"content",{forwardAsChild:!0}),Or=L(ct,"description",{forwardAsChild:!0}),Pr=L(vt,"title",{forwardAsChild:!0}),Cr=L(it,"closeTrigger",{forwardAsChild:!0}),xr=p.forwardRef(function(t,r){const n=V();return C.jsx(wt.chakra.button,{...t,ref:r,onClick:()=>n.setOpen(!1)})}),Et=L(st,"backdrop",{forwardAsChild:!0}),Tr=L("div","body"),Dr=L("div","footer"),kr=L("div","header"),Fr=e=>{const{children:t,disabled:r}=e,[n,o]=p.useState(e.container?.current),s=p.useSyncExternalStore(Sr,()=>!1,()=>!0),{getRootNode:i}=mt();if(p.useEffect(()=>{o(()=>e.container?.current)},[e.container]),s||r)return C.jsx(C.Fragment,{children:t});const a=n??Rr(i);return C.jsx(C.Fragment,{children:p.Children.map(t,u=>de.createPortal(u,a))})},Rr=e=>{const t=e?.(),r=t.getRootNode();return Y(r)?r:$(t).body},Sr=()=>()=>{},Ar=function(t){const{children:r,portalled:n=!0,portalRef:o,backdrop:s=!0,ref:i,...a}=t;return C.jsxs(Fr,{disabled:!n,container:o,children:[s&&C.jsx(Et,{}),C.jsx(bt,{children:C.jsx(wr,{ref:i,...a,asChild:!1,children:r})})]})},Ir={Root:Er,Trigger:Nr,Content:Ar,Backdrop:Et,Positioner:bt,Title:Pr,Description:Or,Body:Tr,Footer:Dr,Header:kr,CloseTrigger:Cr,ActionTrigger:xr};exports.Dialog=Ir;
2
- //# sourceMappingURL=dialog-B1XThG7_.cjs.js.map