@adyen/bento-vue3 1.69.0 → 1.70.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (300) hide show
  1. package/dist/@types/index.d.ts +250 -823
  2. package/dist/accordion.js +1 -1
  3. package/dist/action-bar.js +1 -1
  4. package/dist/alert.js +1 -1
  5. package/dist/assets/accordion-item.css +1 -1
  6. package/dist/assets/action-bar.css +1 -1
  7. package/dist/assets/alert.css +1 -1
  8. package/dist/assets/base-modal.css +1 -1
  9. package/dist/assets/button.css +1 -1
  10. package/dist/assets/calendar.css +1 -1
  11. package/dist/assets/card.css +1 -1
  12. package/dist/assets/checkbox-group.css +1 -1
  13. package/dist/assets/checkbox-input.css +1 -1
  14. package/dist/assets/checkbox.css +1 -1
  15. package/dist/assets/code-snippet.css +1 -1
  16. package/dist/assets/controls-group.css +1 -1
  17. package/dist/assets/data-grid.css +1 -1
  18. package/dist/assets/date-picker.css +1 -1
  19. package/dist/assets/date-range-picker.css +1 -1
  20. package/dist/assets/dialog-page.css +1 -1
  21. package/dist/assets/dropdown-tag.css +1 -1
  22. package/dist/assets/dropdown.css +1 -1
  23. package/dist/assets/error-message.css +1 -1
  24. package/dist/assets/file-uploader.css +1 -1
  25. package/dist/assets/filter-bar.css +1 -1
  26. package/dist/assets/header-with-views.css +1 -1
  27. package/dist/assets/info-icon.css +1 -1
  28. package/dist/assets/input-field-phone-number.css +1 -1
  29. package/dist/assets/inspector.css +1 -1
  30. package/dist/assets/loading-indicator.css +1 -1
  31. package/dist/assets/modal-fullscreen.css +1 -1
  32. package/dist/assets/pagination.css +1 -1
  33. package/dist/assets/popper-container.css +1 -1
  34. package/dist/assets/radio-group.css +1 -1
  35. package/dist/assets/radio-input.css +1 -1
  36. package/dist/assets/sidepanel.css +1 -1
  37. package/dist/assets/tab.css +1 -1
  38. package/dist/assets/tag.css +1 -1
  39. package/dist/assets/timeline-item.css +1 -1
  40. package/dist/assets/toggle-button.css +1 -1
  41. package/dist/assets/toggle.css +1 -1
  42. package/dist/assets/tooltip.css +1 -1
  43. package/dist/assets/typography.css +1 -1
  44. package/dist/assets/use-cached-selected-values.css +1 -1
  45. package/dist/avatar.js +1 -1
  46. package/dist/button.js +2 -2
  47. package/dist/card.js +1 -1
  48. package/dist/checkbox.js +2 -2
  49. package/dist/chip.js +1 -1
  50. package/dist/chunks/{accordion-item.H062lKz1.js → accordion-item.6etqAJV9.js} +2 -2
  51. package/dist/chunks/{accordion-item.H062lKz1.js.map → accordion-item.6etqAJV9.js.map} +1 -1
  52. package/dist/chunks/{action-bar.CbO7oNER.js → action-bar.CweA2FeY.js} +5 -5
  53. package/dist/chunks/{action-bar.CbO7oNER.js.map → action-bar.CweA2FeY.js.map} +1 -1
  54. package/dist/chunks/alert.Dzx5MzgE.js +171 -0
  55. package/dist/chunks/alert.Dzx5MzgE.js.map +1 -0
  56. package/dist/chunks/{avatar.BtxoYBvq.js → avatar.Dq59yj6m.js} +2 -2
  57. package/dist/chunks/{avatar.BtxoYBvq.js.map → avatar.Dq59yj6m.js.map} +1 -1
  58. package/dist/chunks/{base-button.Bcwm87OM.js → base-button.CjYb5Y8k.js} +2 -2
  59. package/dist/chunks/{base-button.Bcwm87OM.js.map → base-button.CjYb5Y8k.js.map} +1 -1
  60. package/dist/chunks/{base-modal.7vdoT8zp.js → base-modal.BrBcILSe.js} +6 -6
  61. package/dist/chunks/{base-modal.7vdoT8zp.js.map → base-modal.BrBcILSe.js.map} +1 -1
  62. package/dist/chunks/bin.DuHlEQBO.js +37 -0
  63. package/dist/chunks/bin.DuHlEQBO.js.map +1 -0
  64. package/dist/chunks/{button-actions-with-menu.zdsGh7un.js → button-actions-with-menu.CBuoSd3w.js} +2 -2
  65. package/dist/chunks/{button-actions-with-menu.zdsGh7un.js.map → button-actions-with-menu.CBuoSd3w.js.map} +1 -1
  66. package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
  67. package/dist/chunks/{button.wMNce6wZ.js → button.C-MAa6ut.js} +4 -4
  68. package/dist/chunks/{button.wMNce6wZ.js.map → button.C-MAa6ut.js.map} +1 -1
  69. package/dist/chunks/{calendar.CYrrR8wd.js → calendar.DFHiga9k.js} +32 -32
  70. package/dist/chunks/{calendar.CYrrR8wd.js.map → calendar.DFHiga9k.js.map} +1 -1
  71. package/dist/chunks/{card.CNYYIpQW.js → card.BspLDcas.js} +4 -4
  72. package/dist/chunks/{card.CNYYIpQW.js.map → card.BspLDcas.js.map} +1 -1
  73. package/dist/chunks/{checkbox-group.fX5_d3XZ.js → checkbox-group.DIXgr1WQ.js} +6 -6
  74. package/dist/chunks/{checkbox-group.fX5_d3XZ.js.map → checkbox-group.DIXgr1WQ.js.map} +1 -1
  75. package/dist/chunks/{checkbox-input.B1hV3DU-.js → checkbox-input.BXNGT9U0.js} +2 -2
  76. package/dist/chunks/{checkbox-input.B1hV3DU-.js.map → checkbox-input.BXNGT9U0.js.map} +1 -1
  77. package/dist/chunks/{checkbox.C62ek8A8.js → checkbox.M6lKj2hQ.js} +6 -6
  78. package/dist/chunks/{checkbox.C62ek8A8.js.map → checkbox.M6lKj2hQ.js.map} +1 -1
  79. package/dist/chunks/{chip.CoBGGkn7.js → chip.DcpP3zb6.js} +3 -3
  80. package/dist/chunks/{chip.CoBGGkn7.js.map → chip.DcpP3zb6.js.map} +1 -1
  81. package/dist/chunks/{code-snippet.CrKl93Wq.js → code-snippet.CKrxKjkQ.js} +7 -7
  82. package/dist/chunks/{code-snippet.CrKl93Wq.js.map → code-snippet.CKrxKjkQ.js.map} +1 -1
  83. package/dist/chunks/{controls-group.2xftPPd7.js → controls-group.CXVHTaYp.js} +32 -29
  84. package/dist/chunks/controls-group.CXVHTaYp.js.map +1 -0
  85. package/dist/chunks/{copy.-8xjj6Hr.js → copy.C4DAAiPw.js} +5 -5
  86. package/dist/chunks/{copy.-8xjj6Hr.js.map → copy.C4DAAiPw.js.map} +1 -1
  87. package/dist/chunks/{country.BdqTkF7A.js → country.RVvsGwuV.js} +3 -3
  88. package/dist/chunks/{country.BdqTkF7A.js.map → country.RVvsGwuV.js.map} +1 -1
  89. package/dist/chunks/{currency.XiEfa4LT.js → currency.CN4UnCx8.js} +2 -2
  90. package/dist/chunks/{currency.XiEfa4LT.js.map → currency.CN4UnCx8.js.map} +1 -1
  91. package/dist/chunks/{dashboard-section.Di16gWGI.js → dashboard-section.Cll3tn0q.js} +3 -3
  92. package/dist/chunks/{dashboard-section.Di16gWGI.js.map → dashboard-section.Cll3tn0q.js.map} +1 -1
  93. package/dist/chunks/{dashed-underline.CyZEW1LZ.js → dashed-underline.2OYxO-Rh.js} +4 -4
  94. package/dist/chunks/{dashed-underline.CyZEW1LZ.js.map → dashed-underline.2OYxO-Rh.js.map} +1 -1
  95. package/dist/chunks/{data-grid-template.CnYNEhPR.js → data-grid-template.CTRHofoW.js} +4 -4
  96. package/dist/chunks/{data-grid-template.CnYNEhPR.js.map → data-grid-template.CTRHofoW.js.map} +1 -1
  97. package/dist/chunks/{data-grid.aEQt05d9.js → data-grid.DMOTTywp.js} +185 -185
  98. package/dist/chunks/data-grid.DMOTTywp.js.map +1 -0
  99. package/dist/chunks/{date-picker.Bk0A3rha.js → date-picker.CBlQ0ql7.js} +18 -18
  100. package/dist/chunks/{date-picker.Bk0A3rha.js.map → date-picker.CBlQ0ql7.js.map} +1 -1
  101. package/dist/chunks/{date-range-picker.l-CSmXBk.js → date-range-picker.D-gGqpFB.js} +25 -25
  102. package/dist/chunks/{date-range-picker.l-CSmXBk.js.map → date-range-picker.D-gGqpFB.js.map} +1 -1
  103. package/dist/chunks/{date.BZENjOb6.js → date.4GAXrgy5.js} +2 -2
  104. package/dist/chunks/{date.BZENjOb6.js.map → date.4GAXrgy5.js.map} +1 -1
  105. package/dist/chunks/{dialog-page.BJaRwRhF.js → dialog-page.VSJgHY3C.js} +3 -3
  106. package/dist/chunks/{dialog-page.BJaRwRhF.js.map → dialog-page.VSJgHY3C.js.map} +1 -1
  107. package/dist/chunks/{dropdown-default-textbox.DWgL31p1.js → dropdown-default-textbox.CGsOngY1.js} +2 -2
  108. package/dist/chunks/{dropdown-default-textbox.DWgL31p1.js.map → dropdown-default-textbox.CGsOngY1.js.map} +1 -1
  109. package/dist/chunks/dropdown-tag.DlFpUeXa.js +296 -0
  110. package/dist/chunks/dropdown-tag.DlFpUeXa.js.map +1 -0
  111. package/dist/chunks/{dropdown.Co86azLK.js → dropdown.agfzvJZE.js} +22 -22
  112. package/dist/chunks/{dropdown.Co86azLK.js.map → dropdown.agfzvJZE.js.map} +1 -1
  113. package/dist/chunks/{empty-state.YNNEDsnK.js → empty-state.BTaeZdQu.js} +3 -3
  114. package/dist/chunks/{empty-state.YNNEDsnK.js.map → empty-state.BTaeZdQu.js.map} +1 -1
  115. package/dist/chunks/{error-message.Cu4cIfdg.js → error-message.B1P5ictH.js} +5 -5
  116. package/dist/chunks/{error-message.Cu4cIfdg.js.map → error-message.B1P5ictH.js.map} +1 -1
  117. package/dist/chunks/{file-uploader.09149Fx8.js → file-uploader.Vac1Cu0i.js} +21 -19
  118. package/dist/chunks/file-uploader.Vac1Cu0i.js.map +1 -0
  119. package/dist/chunks/{filter-bar.D6n7Srr5.js → filter-bar.uUpoP-XZ.js} +233 -236
  120. package/dist/chunks/filter-bar.uUpoP-XZ.js.map +1 -0
  121. package/dist/chunks/{fixed-scroller.QlDKOD7y.js → fixed-scroller.DSGxXiAH.js} +2 -2
  122. package/dist/chunks/{fixed-scroller.QlDKOD7y.js.map → fixed-scroller.DSGxXiAH.js.map} +1 -1
  123. package/dist/chunks/{footer-actions.0cBTJ1kw.js → footer-actions.gRKTKGts.js} +4 -4
  124. package/dist/chunks/{footer-actions.0cBTJ1kw.js.map → footer-actions.gRKTKGts.js.map} +1 -1
  125. package/dist/chunks/{form-layout-title.Cq_xVPUq.js → form-layout-title.DdRqnXXi.js} +3 -3
  126. package/dist/chunks/{form-layout-title.Cq_xVPUq.js.map → form-layout-title.DdRqnXXi.js.map} +1 -1
  127. package/dist/chunks/{header-meta.BJGF0E3r.js → header-meta.Ct79L1O8.js} +5 -5
  128. package/dist/chunks/{header-meta.BJGF0E3r.js.map → header-meta.Ct79L1O8.js.map} +1 -1
  129. package/dist/chunks/{header-with-views.Drzq84zs.js → header-with-views.BVHdSAKp.js} +211 -207
  130. package/dist/chunks/header-with-views.BVHdSAKp.js.map +1 -0
  131. package/dist/chunks/{header.B6DzOioR.js → header.Cd1P8lYK.js} +4 -4
  132. package/dist/chunks/{header.B6DzOioR.js.map → header.Cd1P8lYK.js.map} +1 -1
  133. package/dist/chunks/{info-icon.DKnzFXy1.js → info-icon.Bl0iKUfC.js} +7 -7
  134. package/dist/chunks/{info-icon.DKnzFXy1.js.map → info-icon.Bl0iKUfC.js.map} +1 -1
  135. package/dist/chunks/info.BKwey1HA.js +44 -0
  136. package/dist/chunks/info.BKwey1HA.js.map +1 -0
  137. package/dist/chunks/{input-field-password.DC8lJFsr.js → input-field-password.DkIWrrxy.js} +7 -7
  138. package/dist/chunks/{input-field-password.DC8lJFsr.js.map → input-field-password.DkIWrrxy.js.map} +1 -1
  139. package/dist/chunks/{input-field-phone-number.BbMEzDiR.js → input-field-phone-number.EXlRu8qq.js} +9 -9
  140. package/dist/chunks/{input-field-phone-number.BbMEzDiR.js.map → input-field-phone-number.EXlRu8qq.js.map} +1 -1
  141. package/dist/chunks/{input-field.6bH4yGb2.js → input-field.CgbiOju9.js} +4 -4
  142. package/dist/chunks/{input-field.6bH4yGb2.js.map → input-field.CgbiOju9.js.map} +1 -1
  143. package/dist/chunks/{inspector.Bsv68G-e.js → inspector.BGtTMtE0.js} +4 -4
  144. package/dist/chunks/{inspector.Bsv68G-e.js.map → inspector.BGtTMtE0.js.map} +1 -1
  145. package/dist/chunks/{layout-row.CIg1pwOd.js → layout-row.BPfOPn4x.js} +2 -2
  146. package/dist/chunks/{layout-row.CIg1pwOd.js.map → layout-row.BPfOPn4x.js.map} +1 -1
  147. package/dist/chunks/{link.Di0rtpOj.js → link.cwPmWlsk.js} +2 -2
  148. package/dist/chunks/{link.Di0rtpOj.js.map → link.cwPmWlsk.js.map} +1 -1
  149. package/dist/chunks/{listbox-option-tag.C6WHiASI.js → listbox-option-tag.CDIkX7nh.js} +3 -3
  150. package/dist/chunks/{listbox-option-tag.C6WHiASI.js.map → listbox-option-tag.CDIkX7nh.js.map} +1 -1
  151. package/dist/chunks/{loading-indicator.BmAQqPP2.js → loading-indicator.VHi5tbZa.js} +2 -2
  152. package/dist/chunks/{loading-indicator.BmAQqPP2.js.map → loading-indicator.VHi5tbZa.js.map} +1 -1
  153. package/dist/chunks/{modal-fullscreen.BHzyS4y7.js → modal-fullscreen.-Q-7GMyT.js} +5 -5
  154. package/dist/chunks/{modal-fullscreen.BHzyS4y7.js.map → modal-fullscreen.-Q-7GMyT.js.map} +1 -1
  155. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.CqDhzFJ9.js → modal.vue_vue_type_script_setup_true_lang.TFh7p51f.js} +6 -6
  156. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.CqDhzFJ9.js.map → modal.vue_vue_type_script_setup_true_lang.TFh7p51f.js.map} +1 -1
  157. package/dist/chunks/{pagination.BuYH2_62.js → pagination.DW_HPEIu.js} +4 -4
  158. package/dist/chunks/{pagination.BuYH2_62.js.map → pagination.DW_HPEIu.js.map} +1 -1
  159. package/dist/chunks/{payment-method.4cnK2M5b.js → payment-method.CDnn1bjo.js} +2 -2
  160. package/dist/chunks/{payment-method.4cnK2M5b.js.map → payment-method.CDnn1bjo.js.map} +1 -1
  161. package/dist/chunks/popover.types.COM6oQgq.js +6 -0
  162. package/dist/chunks/{popover.types.BQILgzhs.js.map → popover.types.COM6oQgq.js.map} +1 -1
  163. package/dist/chunks/{popper-container.idDrquM6.js → popper-container.CgJzEQ7N.js} +2 -2
  164. package/dist/chunks/{popper-container.idDrquM6.js.map → popper-container.CgJzEQ7N.js.map} +1 -1
  165. package/dist/chunks/{promo-banner.il4_mdEk.js → promo-banner.BbqIA4Ce.js} +3 -3
  166. package/dist/chunks/{promo-banner.il4_mdEk.js.map → promo-banner.BbqIA4Ce.js.map} +1 -1
  167. package/dist/chunks/{radio-group.BG8W9epW.js → radio-group.CbLIPi7h.js} +77 -69
  168. package/dist/chunks/radio-group.CbLIPi7h.js.map +1 -0
  169. package/dist/chunks/{radio-input.DvPjlvPm.js → radio-input.odN9FOyr.js} +2 -2
  170. package/dist/chunks/{radio-input.DvPjlvPm.js.map → radio-input.odN9FOyr.js.map} +1 -1
  171. package/dist/chunks/{rich-text-editor.vqti0Ls0.js → rich-text-editor.C0hJeV4H.js} +7 -7
  172. package/dist/chunks/{rich-text-editor.vqti0Ls0.js.map → rich-text-editor.C0hJeV4H.js.map} +1 -1
  173. package/dist/chunks/{search-bar.RGL70u_Y.js → search-bar.CvAi2t3-.js} +3 -3
  174. package/dist/chunks/{search-bar.RGL70u_Y.js.map → search-bar.CvAi2t3-.js.map} +1 -1
  175. package/dist/chunks/{secondary-nav.Dtw_Dm_X.js → secondary-nav.yntS8-u5.js} +3 -3
  176. package/dist/chunks/{secondary-nav.Dtw_Dm_X.js.map → secondary-nav.yntS8-u5.js.map} +1 -1
  177. package/dist/chunks/{segmented-control.C6QyN2jS.js → segmented-control.CRSdIvha.js} +3 -3
  178. package/dist/chunks/{segmented-control.C6QyN2jS.js.map → segmented-control.CRSdIvha.js.map} +1 -1
  179. package/dist/chunks/{selection-card-group.DpogJSo0.js → selection-card-group.Cu3V8h4R.js} +6 -6
  180. package/dist/chunks/{selection-card-group.DpogJSo0.js.map → selection-card-group.Cu3V8h4R.js.map} +1 -1
  181. package/dist/chunks/{sidepanel.BqRWoCd3.js → sidepanel.z18XSO3M.js} +6 -6
  182. package/dist/chunks/{sidepanel.BqRWoCd3.js.map → sidepanel.z18XSO3M.js.map} +1 -1
  183. package/dist/chunks/{status.types.B7vJ-_oJ.js → status.types.-l2qJxLn.js} +2 -2
  184. package/dist/chunks/{status.types.B7vJ-_oJ.js.map → status.types.-l2qJxLn.js.map} +1 -1
  185. package/dist/chunks/{step.BdZrreHU.js → step.BMSjltwl.js} +3 -3
  186. package/dist/chunks/{step.BdZrreHU.js.map → step.BMSjltwl.js.map} +1 -1
  187. package/dist/chunks/{structured-list-item.DIwkcIMT.js → structured-list-item.CD1nMqzH.js} +6 -6
  188. package/dist/chunks/{structured-list-item.DIwkcIMT.js.map → structured-list-item.CD1nMqzH.js.map} +1 -1
  189. package/dist/chunks/{summary-grid.types.DHUnTXI-.js → summary-grid.types.BHuDlPDw.js} +6 -6
  190. package/dist/chunks/{summary-grid.types.DHUnTXI-.js.map → summary-grid.types.BHuDlPDw.js.map} +1 -1
  191. package/dist/chunks/{tab.jIG8-7-Q.js → tab.C3R_VoJL.js} +3 -3
  192. package/dist/chunks/{tab.jIG8-7-Q.js.map → tab.C3R_VoJL.js.map} +1 -1
  193. package/dist/chunks/{tag.BP8fBCx-.js → tag.B6AmSws9.js} +7 -7
  194. package/dist/chunks/{tag.BP8fBCx-.js.map → tag.B6AmSws9.js.map} +1 -1
  195. package/dist/chunks/{textarea.CtfRoIUw.js → textarea.DfQLxj_w.js} +4 -4
  196. package/dist/chunks/{textarea.CtfRoIUw.js.map → textarea.DfQLxj_w.js.map} +1 -1
  197. package/dist/chunks/timeline-item.25y9USE-.js +568 -0
  198. package/dist/chunks/timeline-item.25y9USE-.js.map +1 -0
  199. package/dist/chunks/{toast.w_FD0zQA.js → toast.DIhABAW8.js} +4 -4
  200. package/dist/chunks/{toast.w_FD0zQA.js.map → toast.DIhABAW8.js.map} +1 -1
  201. package/dist/chunks/{toggle-button.ByyLw0Yf.js → toggle-button.CQl9HneO.js} +194 -188
  202. package/dist/chunks/toggle-button.CQl9HneO.js.map +1 -0
  203. package/dist/chunks/{toggle.CjEL1ko8.js → toggle.C8k7NQ7y.js} +2 -2
  204. package/dist/chunks/{toggle.CjEL1ko8.js.map → toggle.C8k7NQ7y.js.map} +1 -1
  205. package/dist/chunks/{tooltip.Dww8NiUR.js → tooltip.lBnko9QV.js} +4 -4
  206. package/dist/chunks/tooltip.lBnko9QV.js.map +1 -0
  207. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.rY33hqQQ.js → tutorial.vue_vue_type_script_setup_true_lang.BProZFmI.js} +5 -5
  208. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.rY33hqQQ.js.map → tutorial.vue_vue_type_script_setup_true_lang.BProZFmI.js.map} +1 -1
  209. package/dist/chunks/{typography.CFHvBR7L.js → typography.yBEME_Gu.js} +2 -2
  210. package/dist/chunks/{typography.CFHvBR7L.js.map → typography.yBEME_Gu.js.map} +1 -1
  211. package/dist/chunks/{use-bento-toast-controller.BzKbXZPO.js → use-bento-toast-controller.Kri_h7jS.js} +2 -2
  212. package/dist/chunks/{use-bento-toast-controller.BzKbXZPO.js.map → use-bento-toast-controller.Kri_h7jS.js.map} +1 -1
  213. package/dist/chunks/{use-cached-selected-values.BcNRo4mZ.js → use-cached-selected-values.CELe-MsT.js} +7 -7
  214. package/dist/chunks/use-cached-selected-values.CELe-MsT.js.map +1 -0
  215. package/dist/chunks/{use-country-items.Duh4bMqW.js → use-country-items.D_kamcYy.js} +2 -2
  216. package/dist/chunks/{use-country-items.Duh4bMqW.js.map → use-country-items.D_kamcYy.js.map} +1 -1
  217. package/dist/chunks/{use-country-phon-code.BOaJ9PDl.js → use-country-phon-code.Bui3zD6W.js} +5 -3
  218. package/dist/chunks/{use-country-phon-code.BOaJ9PDl.js.map → use-country-phon-code.Bui3zD6W.js.map} +1 -1
  219. package/dist/chunks/warning-filled.BMGD0G-_.js +29 -0
  220. package/dist/chunks/warning-filled.BMGD0G-_.js.map +1 -0
  221. package/dist/code-snippet.js +1 -1
  222. package/dist/country.js +2 -2
  223. package/dist/currency.js +1 -1
  224. package/dist/dashboard-template.js +1 -1
  225. package/dist/dashed-underline.js +1 -1
  226. package/dist/data-grid-template.js +1 -1
  227. package/dist/data-grid.js +1 -1
  228. package/dist/date-picker.js +2 -2
  229. package/dist/date-range-picker.js +2 -2
  230. package/dist/date.js +1 -1
  231. package/dist/dropdown.js +4 -4
  232. package/dist/empty-state.js +1 -1
  233. package/dist/file-uploader.js +1 -1
  234. package/dist/filter-bar.js +1 -1
  235. package/dist/form-layout.js +1 -1
  236. package/dist/header-with-views.js +1 -1
  237. package/dist/header.js +1 -1
  238. package/dist/index.js +136 -136
  239. package/dist/index.js.map +1 -1
  240. package/dist/info-icon.js +1 -1
  241. package/dist/input-field-password.js +1 -1
  242. package/dist/input-field-phone-number.js +1 -1
  243. package/dist/input-field.js +1 -1
  244. package/dist/inspector.js +1 -1
  245. package/dist/internal.js +12 -12
  246. package/dist/layout.js +1 -1
  247. package/dist/link.js +1 -1
  248. package/dist/loading-indicator.js +1 -1
  249. package/dist/menu.js +1 -1
  250. package/dist/modal-fullscreen.js +1 -1
  251. package/dist/modal.js +2 -2
  252. package/dist/pagination.js +1 -1
  253. package/dist/payment-method.js +1 -1
  254. package/dist/popover.js +2 -2
  255. package/dist/popper-container.js +1 -1
  256. package/dist/promo-banner.js +1 -1
  257. package/dist/radio-group.js +2 -2
  258. package/dist/rich-text-editor.js +1 -1
  259. package/dist/search-bar.js +2 -2
  260. package/dist/secondary-nav.js +1 -1
  261. package/dist/segmented-control.js +1 -1
  262. package/dist/selection-card.js +1 -1
  263. package/dist/sidepanel.js +1 -1
  264. package/dist/status.js +1 -1
  265. package/dist/stepper.js +1 -1
  266. package/dist/structured-list.js +1 -1
  267. package/dist/summary-grid.js +1 -1
  268. package/dist/tabs.js +1 -1
  269. package/dist/tag.js +1 -1
  270. package/dist/textarea.js +1 -1
  271. package/dist/timeline.js +1 -1
  272. package/dist/toast.js +1 -1
  273. package/dist/toggle.js +1 -1
  274. package/dist/tutorial.js +1 -1
  275. package/dist/typography.js +1 -1
  276. package/dist/web-types.json +1 -1
  277. package/package.json +5 -5
  278. package/dist/chunks/alert.DFSdD4jX.js +0 -169
  279. package/dist/chunks/alert.DFSdD4jX.js.map +0 -1
  280. package/dist/chunks/bin.CiGG2V4b.js +0 -37
  281. package/dist/chunks/bin.CiGG2V4b.js.map +0 -1
  282. package/dist/chunks/controls-group.2xftPPd7.js.map +0 -1
  283. package/dist/chunks/data-grid.aEQt05d9.js.map +0 -1
  284. package/dist/chunks/dropdown-tag.CnqIUH1X.js +0 -263
  285. package/dist/chunks/dropdown-tag.CnqIUH1X.js.map +0 -1
  286. package/dist/chunks/file-uploader.09149Fx8.js.map +0 -1
  287. package/dist/chunks/filter-bar.D6n7Srr5.js.map +0 -1
  288. package/dist/chunks/header-with-views.Drzq84zs.js.map +0 -1
  289. package/dist/chunks/info.DcTs-Bzp.js +0 -44
  290. package/dist/chunks/info.DcTs-Bzp.js.map +0 -1
  291. package/dist/chunks/popover.types.BQILgzhs.js +0 -6
  292. package/dist/chunks/radio-group.BG8W9epW.js.map +0 -1
  293. package/dist/chunks/timeline-item.DthjD14m.js +0 -566
  294. package/dist/chunks/timeline-item.DthjD14m.js.map +0 -1
  295. package/dist/chunks/toggle-button.ByyLw0Yf.js.map +0 -1
  296. package/dist/chunks/tooltip.Dww8NiUR.js.map +0 -1
  297. package/dist/chunks/use-cached-selected-values.BcNRo4mZ.js.map +0 -1
  298. package/dist/chunks/warning-filled.AiUbXzzg.js +0 -29
  299. package/dist/chunks/warning-filled.AiUbXzzg.js.map +0 -1
  300. package/dist/styles/legacy.css +0 -2239
package/dist/index.js CHANGED
@@ -1,127 +1,127 @@
1
1
  import { shallowRef as T, ref as d, inject as g } from "vue";
2
- import { t as y, c as h } from "./chunks/use-bento-toast-controller.BzKbXZPO.js";
3
- import { u as A } from "./chunks/use-bento-toast-controller.BzKbXZPO.js";
4
- import { p as b, d as l } from "./chunks/typography.CFHvBR7L.js";
5
- import { B as R, c as _, b as j, a as Y } from "./chunks/typography.CFHvBR7L.js";
6
- import { B as z } from "./chunks/action-bar.CbO7oNER.js";
7
- import { a as H, b as q } from "./chunks/accordion-item.H062lKz1.js";
8
- import { B as Z, c as J, b as Q, a as X } from "./chunks/alert.DFSdD4jX.js";
9
- import { B as ee } from "./chunks/avatar.BtxoYBvq.js";
10
- import { B as oe, b as ae, a as ne } from "./chunks/button.wMNce6wZ.js";
11
- import { c as se, B as Be, a as ie } from "./chunks/card.CNYYIpQW.js";
12
- import { B as pe } from "./chunks/dashed-underline.CyZEW1LZ.js";
13
- import { B as de, d as le, a as ce, b as fe, g as xe, f as Se, e as Te, c as ge } from "./chunks/data-grid.aEQt05d9.js";
14
- import { B as he, a as be } from "./chunks/date-picker.Bk0A3rha.js";
15
- import { B as Ce, a as De } from "./chunks/date-range-picker.l-CSmXBk.js";
16
- import { B as Ie, u as Le } from "./chunks/dropdown.Co86azLK.js";
17
- import { B as Fe } from "./chunks/dropdown-default-textbox.DWgL31p1.js";
18
- import { B as Oe } from "./chunks/divider.DnKNNyWB.js";
19
- import { B as we, a as Me } from "./chunks/checkbox.C62ek8A8.js";
20
- import { B as Ae } from "./chunks/chip.CoBGGkn7.js";
2
+ import { t as y, c as h } from "./chunks/use-bento-toast-controller.Kri_h7jS.js";
3
+ import { u as N } from "./chunks/use-bento-toast-controller.Kri_h7jS.js";
4
+ import { p as b, d as l } from "./chunks/typography.yBEME_Gu.js";
5
+ import { B as R, c as _, b as j, a as U } from "./chunks/typography.yBEME_Gu.js";
6
+ import { B as K } from "./chunks/action-bar.CweA2FeY.js";
7
+ import { a as H, b as q } from "./chunks/accordion-item.6etqAJV9.js";
8
+ import { B as Z, c as J, b as Q, a as X } from "./chunks/alert.Dzx5MzgE.js";
9
+ import { B as ee } from "./chunks/avatar.Dq59yj6m.js";
10
+ import { B as oe, b as ae, a as ne } from "./chunks/button.C-MAa6ut.js";
11
+ import { c as se, B as Be, a as ie } from "./chunks/card.BspLDcas.js";
12
+ import { B as pe } from "./chunks/dashed-underline.2OYxO-Rh.js";
13
+ import { B as de, d as le, a as ce, b as fe, g as xe, f as Se, e as Te, c as ge } from "./chunks/data-grid.DMOTTywp.js";
14
+ import { B as he, a as be } from "./chunks/date-picker.CBlQ0ql7.js";
15
+ import { B as Ce, a as De } from "./chunks/date-range-picker.D-gGqpFB.js";
16
+ import { B as Ie, u as Le } from "./chunks/dropdown.agfzvJZE.js";
17
+ import { B as Fe } from "./chunks/dropdown-default-textbox.CGsOngY1.js";
18
+ import { B as ke } from "./chunks/divider.DnKNNyWB.js";
19
+ import { B as we, a as Me } from "./chunks/checkbox.M6lKj2hQ.js";
20
+ import { B as Ne } from "./chunks/chip.DcpP3zb6.js";
21
21
  import { B as Re } from "./chunks/click-outside.C1Ud8AA2.js";
22
- import { c as je, b as Ye, a as Ue, B as ze } from "./chunks/code-snippet.CrKl93Wq.js";
23
- import { c as He } from "./chunks/country.BdqTkF7A.js";
22
+ import { c as je, b as Ue, a as ze, B as Ke } from "./chunks/code-snippet.CKrxKjkQ.js";
23
+ import { c as He } from "./chunks/country.RVvsGwuV.js";
24
24
  import { a as We, B as Ze, u as Je } from "./chunks/country.types.C0Q_hhgJ.js";
25
- import { c as Xe, B as $e } from "./chunks/currency.XiEfa4LT.js";
26
- import { B as tt, a as ot } from "./chunks/date.BZENjOb6.js";
27
- import { B as nt, b as rt, c as st, a as Bt } from "./chunks/empty-state.YNNEDsnK.js";
28
- import { f as mt } from "./chunks/file-uploader.09149Fx8.js";
29
- import { B as ut, b as dt, a as lt, c as ct } from "./chunks/filter-bar.D6n7Srr5.js";
30
- import { f as xt, a as St, c as Tt, b as gt } from "./chunks/form-layout-title.Cq_xVPUq.js";
31
- import { h as ht } from "./chunks/header-with-views.Drzq84zs.js";
25
+ import { c as Xe, B as $e } from "./chunks/currency.CN4UnCx8.js";
26
+ import { B as tt, a as ot } from "./chunks/date.4GAXrgy5.js";
27
+ import { B as nt, b as rt, c as st, a as Bt } from "./chunks/empty-state.BTaeZdQu.js";
28
+ import { f as mt } from "./chunks/file-uploader.Vac1Cu0i.js";
29
+ import { B as ut, b as dt, a as lt, c as ct } from "./chunks/filter-bar.uUpoP-XZ.js";
30
+ import { f as xt, a as St, c as Tt, b as gt } from "./chunks/form-layout-title.DdRqnXXi.js";
31
+ import { h as ht } from "./chunks/header-with-views.BVHdSAKp.js";
32
32
  import { _ as Et, B as Ct, a as Dt } from "./chunks/image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js";
33
- import { B as It } from "./chunks/info-icon.DKnzFXy1.js";
34
- import { B as Pt, b as Ft, e as Gt, c as Ot, d as kt, a as wt } from "./chunks/input-field.6bH4yGb2.js";
35
- import { i as Vt, m as At, r as Nt, b as Rt, c as _t, a as jt } from "./chunks/input-field-password.DC8lJFsr.js";
36
- import { i as Ut, B as zt } from "./chunks/input-field-phone-number.BbMEzDiR.js";
37
- import { B as Ht } from "./chunks/inspector.Bsv68G-e.js";
33
+ import { B as It } from "./chunks/info-icon.Bl0iKUfC.js";
34
+ import { B as Pt, b as Ft, e as Ot, c as kt, d as Gt, a as wt } from "./chunks/input-field.CgbiOju9.js";
35
+ import { i as Vt, m as Nt, r as At, b as Rt, c as _t, a as jt } from "./chunks/input-field-password.DkIWrrxy.js";
36
+ import { i as zt, B as Kt } from "./chunks/input-field-phone-number.EXlRu8qq.js";
37
+ import { B as Ht } from "./chunks/inspector.BGtTMtE0.js";
38
38
  import { B as Wt } from "./chunks/inspector.types.DyHwE18g.js";
39
- import { l as Jt, a as Qt } from "./chunks/layout-row.CIg1pwOd.js";
40
- import { B as $t, a as eo } from "./chunks/loading-indicator.BmAQqPP2.js";
41
- import { B as oo, a as ao } from "./chunks/link.Di0rtpOj.js";
42
- import { B as ro, a as so, b as Bo, f as io, g as mo, h as po, c as uo, u as lo } from "./chunks/toggle-button.ByyLw0Yf.js";
43
- import { _ as fo } from "./chunks/modal.vue_vue_type_script_setup_true_lang.CqDhzFJ9.js";
44
- import { c as So, e as To, f as go, g as yo, d as ho, b as bo, B as Eo, a as Co } from "./chunks/base-modal.7vdoT8zp.js";
45
- import { m as vo, B as Io } from "./chunks/modal-fullscreen.BHzyS4y7.js";
46
- import { B as Po } from "./chunks/header.B6DzOioR.js";
47
- import { B as Go } from "./chunks/pagination.BuYH2_62.js";
48
- import { B as ko } from "./chunks/payment-method.4cnK2M5b.js";
39
+ import { l as Jt, a as Qt } from "./chunks/layout-row.BPfOPn4x.js";
40
+ import { B as $t, a as eo } from "./chunks/loading-indicator.VHi5tbZa.js";
41
+ import { B as oo, a as ao } from "./chunks/link.cwPmWlsk.js";
42
+ import { B as ro, a as so, b as Bo, f as io, g as mo, h as po, c as uo, u as lo } from "./chunks/toggle-button.CQl9HneO.js";
43
+ import { _ as fo } from "./chunks/modal.vue_vue_type_script_setup_true_lang.TFh7p51f.js";
44
+ import { c as So, e as To, f as go, g as yo, d as ho, b as bo, B as Eo, a as Co } from "./chunks/base-modal.BrBcILSe.js";
45
+ import { m as vo, B as Io } from "./chunks/modal-fullscreen.-Q-7GMyT.js";
46
+ import { B as Po } from "./chunks/header.Cd1P8lYK.js";
47
+ import { B as Oo } from "./chunks/pagination.DW_HPEIu.js";
48
+ import { B as Go } from "./chunks/payment-method.CDnn1bjo.js";
49
49
  import { B as Mo } from "./chunks/payment-method.types.BqtH7RM2.js";
50
- import { B as Ao } from "./chunks/popover.types.BQILgzhs.js";
51
- import { p as Ro, B as _o, a as jo } from "./chunks/promo-banner.il4_mdEk.js";
52
- import { b as Uo, B as zo, a as Ko } from "./chunks/radio-group.BG8W9epW.js";
53
- import { r as qo } from "./chunks/rich-text-editor.vqti0Ls0.js";
54
- import { B as Zo, b as Jo, a as Qo } from "./chunks/search-bar.RGL70u_Y.js";
55
- import { s as $o } from "./chunks/secondary-nav.Dtw_Dm_X.js";
56
- import { B as ta } from "./chunks/segmented-control.C6QyN2jS.js";
50
+ import { B as No } from "./chunks/popover.types.COM6oQgq.js";
51
+ import { p as Ro, B as _o, a as jo } from "./chunks/promo-banner.BbqIA4Ce.js";
52
+ import { b as zo, B as Ko, a as Yo } from "./chunks/radio-group.CbLIPi7h.js";
53
+ import { r as qo } from "./chunks/rich-text-editor.C0hJeV4H.js";
54
+ import { B as Zo, b as Jo, a as Qo } from "./chunks/search-bar.CvAi2t3-.js";
55
+ import { s as $o } from "./chunks/secondary-nav.yntS8-u5.js";
56
+ import { B as ta } from "./chunks/segmented-control.CRSdIvha.js";
57
57
  import { B as aa } from "./chunks/segmented-control.types.BHRLV8KU.js";
58
- import { B as ra, s as sa, a as Ba } from "./chunks/selection-card-group.DpogJSo0.js";
59
- import { a as ma, B as pa, s as ua } from "./chunks/sidepanel.BqRWoCd3.js";
60
- import { s as la, B as ca } from "./chunks/status.types.B7vJ-_oJ.js";
61
- import { a as xa, s as Sa, B as Ta, b as ga } from "./chunks/step.BdZrreHU.js";
62
- import { B as ha, a as ba } from "./chunks/structured-list-item.DIwkcIMT.js";
63
- import { s as Ca, a as Da, d as va, _ as Ia, b as La, B as Pa, c as Fa, e as Ga } from "./chunks/summary-grid.types.DHUnTXI-.js";
64
- import { a as ka, B as wa } from "./chunks/tab.jIG8-7-Q.js";
65
- import { B as Va, a as Aa } from "./chunks/tag.BP8fBCx-.js";
66
- import { B as Ra } from "./chunks/textarea.CtfRoIUw.js";
67
- import { t as ja, b as Ya, a as Ua, c as za, B as Ka, d as Ha } from "./chunks/timeline-item.DthjD14m.js";
68
- import { t as Wa } from "./chunks/toast.w_FD0zQA.js";
69
- import { B as Ja, b as Qa, a as Xa } from "./chunks/toggle.CjEL1ko8.js";
70
- import { _ as en } from "./chunks/tutorial.vue_vue_type_script_setup_true_lang.rY33hqQQ.js";
71
- import * as s from "zod";
72
- import { a as on, d as an } from "./chunks/dashboard-section.Di16gWGI.js";
73
- import { d as rn } from "./chunks/data-grid-template.CnYNEhPR.js";
58
+ import { B as ra, s as sa, a as Ba } from "./chunks/selection-card-group.Cu3V8h4R.js";
59
+ import { a as ma, B as pa, s as ua } from "./chunks/sidepanel.z18XSO3M.js";
60
+ import { s as la, B as ca } from "./chunks/status.types.-l2qJxLn.js";
61
+ import { a as xa, s as Sa, B as Ta, b as ga } from "./chunks/step.BMSjltwl.js";
62
+ import { B as ha, a as ba } from "./chunks/structured-list-item.CD1nMqzH.js";
63
+ import { s as Ca, a as Da, d as va, _ as Ia, b as La, B as Pa, c as Fa, e as Oa } from "./chunks/summary-grid.types.BHuDlPDw.js";
64
+ import { a as Ga, B as wa } from "./chunks/tab.C3R_VoJL.js";
65
+ import { B as Va, a as Na } from "./chunks/tag.B6AmSws9.js";
66
+ import { B as Ra } from "./chunks/textarea.DfQLxj_w.js";
67
+ import { t as ja, b as Ua, a as za, c as Ka, B as Ya, d as Ha } from "./chunks/timeline-item.25y9USE-.js";
68
+ import { t as Wa } from "./chunks/toast.DIhABAW8.js";
69
+ import { B as Ja, b as Qa, a as Xa } from "./chunks/toggle.C8k7NQ7y.js";
70
+ import { _ as en } from "./chunks/tutorial.vue_vue_type_script_setup_true_lang.BProZFmI.js";
71
+ import * as r from "zod";
72
+ import { a as on, d as an } from "./chunks/dashboard-section.Cll3tn0q.js";
73
+ import { d as rn } from "./chunks/data-grid-template.CTRHofoW.js";
74
74
  import { D as Bn } from "./chunks/date-input.BqBdAO1E.js";
75
75
  import { a as pn, B as un } from "./chunks/keyboard-navigation.pB8weElW.js";
76
- import { a as ln, B as cn, a as fn, B as xn } from "./chunks/use-cached-selected-values.BcNRo4mZ.js";
76
+ import { a as ln, B as cn, a as fn, B as xn } from "./chunks/use-cached-selected-values.CELe-MsT.js";
77
77
  import { B as Tn } from "./chunks/directive.Cbdox5VL.js";
78
- import { b as yn, c as hn, d as bn } from "./chunks/tooltip.Dww8NiUR.js";
79
- import { _ as Cn, a as Dn, b as vn, c as In, d as Ln } from "./chunks/dropdown-tag.CnqIUH1X.js";
80
- import { B as Fn, a as Gn, b as On } from "./chunks/button-actions.types.BptAXjD8.js";
81
- import { C as wn, C as Mn } from "./chunks/calendar.CYrrR8wd.js";
82
- import { C as An } from "./chunks/minus-small.DYIyF5XW.js";
83
- import { c as Rn, B as _n } from "./chunks/checkbox-group.fX5_d3XZ.js";
84
- import { u as Yn, a as Un } from "./chunks/use-country-phon-code.BOaJ9PDl.js";
85
- import { R as Kn } from "./chunks/radio-input.DvPjlvPm.js";
86
- function G(e) {
78
+ import { b as yn, c as hn, d as bn } from "./chunks/tooltip.lBnko9QV.js";
79
+ import { _ as Cn, a as Dn, b as vn, c as In, d as Ln } from "./chunks/dropdown-tag.DlFpUeXa.js";
80
+ import { B as Fn, a as On, b as kn } from "./chunks/button-actions.types.BptAXjD8.js";
81
+ import { C as wn, C as Mn } from "./chunks/calendar.DFHiga9k.js";
82
+ import { C as Nn } from "./chunks/minus-small.DYIyF5XW.js";
83
+ import { c as Rn, B as _n } from "./chunks/checkbox-group.DIXgr1WQ.js";
84
+ import { u as Un, a as zn } from "./chunks/use-country-phon-code.Bui3zD6W.js";
85
+ import { R as Yn } from "./chunks/radio-input.odN9FOyr.js";
86
+ function O(e) {
87
87
  return e;
88
88
  }
89
89
  function p(e) {
90
- if (s && e instanceof s.ZodObject)
90
+ if (r && e instanceof r.ZodObject)
91
91
  return Object.fromEntries(
92
- Object.entries(e.shape).map(([t, a]) => s && a instanceof s.ZodDefault ? [t, a._def.defaultValue()] : s && a instanceof s.ZodObject ? [t, p(a)] : [t, void 0])
92
+ Object.entries(e.shape).map(([t, o]) => r && o instanceof r.ZodDefault ? [t, o._def.defaultValue()] : r && o instanceof r.ZodObject ? [t, p(o)] : [t, void 0])
93
93
  );
94
94
  }
95
95
  function E(e) {
96
96
  return e.path.join(".");
97
97
  }
98
- function O({
98
+ function k({
99
99
  validationSchema: e
100
100
  }) {
101
- const t = T({}), a = d({}), n = d(p(e)), i = () => {
102
- t.value = {}, a.value = {};
101
+ const t = T({}), o = d({}), a = d(p(e)), i = () => {
102
+ t.value = {}, o.value = {};
103
103
  }, x = () => {
104
- i(), n.value = p(e);
104
+ i(), a.value = p(e);
105
105
  };
106
106
  return {
107
107
  // Values
108
- errorBag: a,
108
+ errorBag: o,
109
109
  errors: t,
110
- values: n,
110
+ values: a,
111
111
  // Methods
112
112
  handleReset: () => x(),
113
113
  submitForm: (S) => () => {
114
114
  i();
115
- const u = e.safeParse(n.value);
116
- u.success ? S(n.value) : u.error.issues.forEach((m) => {
115
+ const u = e.safeParse(a.value);
116
+ u.success ? S(a.value) : u.error.issues.forEach((m) => {
117
117
  const B = E(m);
118
- t.value[B] || (t.value[B] = m.message), a.value[B] ? a.value[B].push(m.message) : a.value[B] = [m.message];
118
+ t.value[B] || (t.value[B] = m.message), o.value[B] ? o.value[B].push(m.message) : o.value[B] = [m.message];
119
119
  });
120
120
  }
121
121
  };
122
122
  }
123
123
  const c = Symbol("use-bento-theme");
124
- function k() {
124
+ function G() {
125
125
  const e = g(c, null);
126
126
  return e ? { ...e } : (b("useBentoTheme does not work without Vue.use(BentoPlugin)"), {
127
127
  getTheme: () => {
@@ -136,36 +136,36 @@ const C = (e) => {
136
136
  var e;
137
137
  return ((e = document.body.className.match(/b-\w+-theme/)) == null ? void 0 : e[0]) ?? "";
138
138
  }, D = () => window.matchMedia("(prefers-color-scheme: dark)").matches ? "b-dark-theme" : "b-light-theme";
139
- var o = /* @__PURE__ */ ((e) => (e.LEGACY = "b-legacy-theme", e.STYLEGUIDE = "b-styleguide-theme", e.BENTO = "", e.BENTO_LIGHT = "b-light-theme", e.BENTO_DARK = "b-dark-theme", e.BENTO_SYSTEM = "b-system", e))(o || {});
140
- const r = (e) => {
141
- const t = f(), a = D(), n = e === "b-system" ? a : e;
142
- n === "b-light-theme" || n === "" ? document.documentElement.style.colorScheme = "light" : n === "b-dark-theme" && (document.documentElement.style.colorScheme = "dark"), t.length && t !== n && document.body.classList.remove(t), n.length && document.body.classList.add(n);
139
+ var n = /* @__PURE__ */ ((e) => (e.LEGACY = "b-legacy-theme", e.STYLEGUIDE = "b-styleguide-theme", e.BENTO = "", e.BENTO_LIGHT = "b-light-theme", e.BENTO_DARK = "b-dark-theme", e.BENTO_SYSTEM = "b-system", e))(n || {});
140
+ const s = (e) => {
141
+ const t = f(), o = D(), a = e === "b-system" ? o : e;
142
+ a === "b-light-theme" || a === "" ? document.documentElement.style.colorScheme = "light" : a === "b-dark-theme" && (document.documentElement.style.colorScheme = "dark"), t.length && t !== a && document.body.classList.remove(t), a.length && document.body.classList.add(a);
143
143
  }, v = (e) => {
144
144
  const t = {
145
145
  getTheme: f,
146
- setTheme: r
146
+ setTheme: s
147
147
  };
148
148
  e.provide(c, t);
149
149
  }, w = {
150
150
  name: "BentoVue",
151
151
  install: async (e, {
152
- theme: t = o.BENTO_LIGHT,
153
- withToast: a = !1,
154
- withUtilityClasses: n = !1,
152
+ theme: t = n.BENTO_LIGHT,
153
+ withToast: o = !1,
154
+ withUtilityClasses: a = !1,
155
155
  withDesignTokensCSSInjection: i = !0
156
156
  }) => {
157
- v(e), a && C(e), i && (l(
157
+ v(e), o && C(e), i && (l(
158
158
  "Using default setting withDesignTokensCSSInjection set to true in BentoVue plugin",
159
159
  `Please disable CSS injection by setting withDesignTokensCSSInjection to false in BentoVue plugin options as highlighted here:
160
160
  https://adyen-bento.netlify.app/?path=/docs/welcome-getting-started--docs#import-css-variables`,
161
161
  "2.0.0"
162
- ), t === o.LEGACY ? await import("@adyen/bento-design-tokens/dist/css/bento/variables-legacy.css") : t === o.STYLEGUIDE ? await import("@adyen/bento-design-tokens/dist/css/bento/variables-styleguide.css") : await import("@adyen/bento-design-tokens/dist/css/bento/variables.css"), n && await import("@adyen/bento-design-tokens/dist/css/bento/utility.css")), t === o.LEGACY ? r(o.LEGACY) : t === o.STYLEGUIDE ? r(o.STYLEGUIDE) : t === o.BENTO_SYSTEM ? r(o.BENTO_SYSTEM) : t === o.BENTO_DARK ? r(o.BENTO_DARK) : (t === o.BENTO && l("Using `BentoTheme.BENTO`", "Please use `BentoTheme.BENTO_LIGHT` instead", "2.0.0"), r(o.BENTO_LIGHT));
162
+ ), t === n.STYLEGUIDE ? await import("@adyen/bento-design-tokens/dist/css/bento/variables-styleguide.css") : await import("@adyen/bento-design-tokens/dist/css/bento/variables.css"), a && await import("@adyen/bento-design-tokens/dist/css/bento/utility.css")), t === n.STYLEGUIDE ? s(n.STYLEGUIDE) : t === n.BENTO_SYSTEM ? s(n.BENTO_SYSTEM) : t === n.BENTO_DARK ? s(n.BENTO_DARK) : (t === n.BENTO && l("Using `BentoTheme.BENTO`", "Please use `BentoTheme.BENTO_LIGHT` instead", "2.0.0"), s(n.BENTO_LIGHT));
163
163
  }
164
164
  };
165
165
  export {
166
166
  H as BentoAccordion,
167
167
  q as BentoAccordionItem,
168
- z as BentoActionBar,
168
+ K as BentoActionBar,
169
169
  Z as BentoAlert,
170
170
  J as BentoAlertEvent,
171
171
  Q as BentoAlertTypeOption,
@@ -174,8 +174,8 @@ export {
174
174
  oe as BentoButton,
175
175
  ro as BentoButtonActions,
176
176
  Fn as BentoButtonActionsLayout,
177
- Gn as BentoButtonActionsLayoutBasic,
178
- On as BentoButtonActionsLayoutExtended,
177
+ On as BentoButtonActionsLayoutBasic,
178
+ kn as BentoButtonActionsLayoutExtended,
179
179
  ae as BentoButtonPropClass,
180
180
  ne as BentoButtonVariant,
181
181
  se as BentoCard,
@@ -185,14 +185,14 @@ export {
185
185
  Me as BentoCheckboxEvent,
186
186
  Rn as BentoCheckboxGroup,
187
187
  _n as BentoCheckboxGroupVariant,
188
- An as BentoCheckboxState,
189
- Ae as BentoChip,
188
+ Nn as BentoCheckboxState,
189
+ Ne as BentoChip,
190
190
  Re as BentoClickOutside,
191
191
  Tn as BentoClickOutsideDirective,
192
192
  je as BentoCodeSnippet,
193
- Ye as BentoCodeSnippetEvent,
194
- Ue as BentoCodeSnippetSupportedLanguage,
195
- ze as BentoCodeSnippetVariant,
193
+ Ue as BentoCodeSnippetEvent,
194
+ ze as BentoCodeSnippetSupportedLanguage,
195
+ Ke as BentoCodeSnippetVariant,
196
196
  de as BentoColumnOverflow,
197
197
  He as BentoCountry,
198
198
  We as BentoCountryCode,
@@ -218,7 +218,7 @@ export {
218
218
  Ce as BentoDateRangePicker,
219
219
  De as BentoDateRangePickerEvent,
220
220
  Mn as BentoDateRangePickerFirstDayOfWeek,
221
- Oe as BentoDivider,
221
+ ke as BentoDivider,
222
222
  Ie as BentoDropdown,
223
223
  Cn as BentoDropdownAvatar,
224
224
  Dn as BentoDropdownCountry,
@@ -249,12 +249,12 @@ export {
249
249
  It as BentoInfoIcon,
250
250
  Pt as BentoInputField,
251
251
  Ft as BentoInputFieldElementPosition,
252
- Gt as BentoInputFieldEvent,
252
+ Ot as BentoInputFieldEvent,
253
253
  Vt as BentoInputFieldPassword,
254
- Ut as BentoInputFieldPhoneNumber,
255
- zt as BentoInputFieldPhoneNumberCountries,
256
- Ot as BentoInputFieldStateClass,
257
- kt as BentoInputFieldType,
254
+ zt as BentoInputFieldPhoneNumber,
255
+ Kt as BentoInputFieldPhoneNumberCountries,
256
+ kt as BentoInputFieldStateClass,
257
+ Gt as BentoInputFieldType,
258
258
  wt as BentoInputFieldVariant,
259
259
  Ht as BentoInspector,
260
260
  Wt as BentoInspectorSizeOptions,
@@ -283,18 +283,18 @@ export {
283
283
  bo as BentoModalSize,
284
284
  Eo as BentoModalVariant,
285
285
  Co as BentoModalVariantMapping,
286
- Go as BentoPagination,
287
- ko as BentoPaymentMethod,
286
+ Oo as BentoPagination,
287
+ Go as BentoPaymentMethod,
288
288
  Mo as BentoPaymentMethodType,
289
289
  po as BentoPopover,
290
- Ao as BentoPopoverPositions,
290
+ No as BentoPopoverPositions,
291
291
  Ro as BentoPromoBanner,
292
292
  _o as BentoPromoBannerColor,
293
293
  jo as BentoPromoBannerLayout,
294
- Uo as BentoRadioButton,
295
- Kn as BentoRadioButtonStateClass,
296
- zo as BentoRadioGroup,
297
- Ko as BentoRadioGroupVariant,
294
+ zo as BentoRadioButton,
295
+ Yn as BentoRadioButtonStateClass,
296
+ Ko as BentoRadioGroup,
297
+ Yo as BentoRadioGroupVariant,
298
298
  qo as BentoRichTextEditor,
299
299
  Zo as BentoSearchBar,
300
300
  Jo as BentoSearchBarEvent,
@@ -323,18 +323,18 @@ export {
323
323
  La as BentoSummaryGridItemPercentage,
324
324
  Pa as BentoSummaryGridItemSize,
325
325
  Fa as BentoSummaryGridItemText,
326
- Ga as BentoSummaryGridItemTrendDirection,
327
- ka as BentoTab,
326
+ Oa as BentoSummaryGridItemTrendDirection,
327
+ Ga as BentoTab,
328
328
  wa as BentoTabs,
329
329
  Va as BentoTag,
330
- Aa as BentoTagVariant,
330
+ Na as BentoTagVariant,
331
331
  Ra as BentoTextarea,
332
- o as BentoTheme,
332
+ n as BentoTheme,
333
333
  ja as BentoTimeline,
334
- Ya as BentoTimelineGapUnit,
335
- Ua as BentoTimelineItem,
336
- za as BentoTimelineItemVariant,
337
- Ka as BentoTimelineShowMorePlacement,
334
+ Ua as BentoTimelineGapUnit,
335
+ za as BentoTimelineItem,
336
+ Ka as BentoTimelineItemVariant,
337
+ Ya as BentoTimelineShowMorePlacement,
338
338
  Ha as BentoTimelineStatus,
339
339
  Wa as BentoToast,
340
340
  Ja as BentoToggle,
@@ -348,23 +348,23 @@ export {
348
348
  R as BentoTypography,
349
349
  _ as BentoTypographyElement,
350
350
  j as BentoTypographyModifier,
351
- Y as BentoTypographyVariant,
351
+ U as BentoTypographyVariant,
352
352
  Bn as DateFormat,
353
353
  w as default,
354
- At as minLength,
355
- Nt as requireLowercase,
354
+ Nt as minLength,
355
+ At as requireLowercase,
356
356
  Rt as requireNumeric,
357
357
  _t as requireSpecialCharacter,
358
358
  jt as requireUppercase,
359
- G as toTypedSchema,
360
- k as useBentoTheme,
359
+ O as toTypedSchema,
360
+ G as useBentoTheme,
361
361
  c as useBentoThemeKey,
362
- A as useBentoToastController,
362
+ N as useBentoToastController,
363
363
  lo as useClickOutside,
364
364
  Je as useCountryCapital,
365
- Yn as useCountryName,
366
- Un as useCountryPhoneCode,
367
- O as useForm,
365
+ Un as useCountryName,
366
+ zn as useCountryPhoneCode,
367
+ k as useForm,
368
368
  Le as useSearchBarFilter
369
369
  };
370
370
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../vue2/src/composables/use-form-validate/use-form.ts","../../vue2/src/composables/use-bento-theme/use-bento-theme.types.ts","../../vue2/src/composables/use-bento-theme/use-bento-theme.ts","../../vue2/src/composables/use-bento-toast-controller/install.ts","../../vue2/src/composables/use-bento-theme/install.ts","../../vue2/src/install.ts"],"sourcesContent":["import { type Ref, ref, shallowRef } from 'vue';\nimport * as z from 'zod';\nimport type { ZodSchema } from 'zod';\nimport { type allKeys, type ErrorBag, type UseForm } from './use-form.types';\n\n/**\n * Composable that tansforms a Zod schema into a Typed Schema that can be used alongside with {@see useForm}.\n *\n * This is meant to simulate the behavior of {@link @vee-validate/zod} {@see https://vee-validate.logaretm.com/v4/integrations/zod-schema-validation}.\n * Function that transform Zod’s schemas into something that can be understood by vee-validate\n *\n * @deprecated For usage with Zod/v3. Migrate to Zod/v4 and use `@adyen/bento-vue2/use-form-v4' instead or migrate to Vue3 and use Vee-Validate instead.\n *\n * @param formSchema Zod schema to be transformed into a `vee-validate` schema\n * @returns Schema transformed\n */\nexport function toTypedSchema<T extends ZodSchema>(formSchema: T) {\n return formSchema;\n}\n\n/**\n * Finds and returns the initial values of each of the values defined in the schema so that they\n * can be transformed into a reactive element.\n * @param schema Zod validation schema containing the definitions of each value to be used in the form\n * @returns Object with the items defined in the schema and their (default) values\n *\n * @example\n * const validationSchema = toTypedSchema(\n * z.object({\n * name: z\n * .string()\n * .min(3, { message: 'Name is required' })\n * .startsWith('Jane')\n * .max(4, { message: 'Name cannot be longer than 4 characters' })\n * .default('Joe'),\n * })\n * );\n * getInitialFormValues(validationSchema)\n *\n * Will return:\n *\n * {\n * name: 'Joe'\n * }\n *\n */\nfunction getInitialFormValues<T extends ZodSchema>(schema: T): z.infer<typeof schema> {\n if (!!z && schema instanceof z.ZodObject) {\n return Object.fromEntries(\n Object.entries(schema.shape).map(([key, value]) => {\n if (!!z && value instanceof z.ZodDefault) {\n // eslint-disable-next-line no-underscore-dangle\n return [key, value._def.defaultValue()];\n }\n\n if (!!z && value instanceof z.ZodObject) {\n return [key, getInitialFormValues(value)];\n }\n\n return [key, undefined];\n })\n ) as z.infer<typeof schema>;\n }\n\n return undefined;\n}\n\n/**\n * Constructs a path with dot paths for arrays to use brackets to be compatible with vee-validate path syntax\n * @param issue List of nested path elements\n * @returns Path with dots\n */\nfunction normalizeFormPath(issue: z.ZodIssue) {\n return issue.path.join('.');\n}\n\n/**\n * Composable that facilitates validating form data for Vue2 & Vue3 implementations with FormLayout\n * to ease the migration to Vue3.\n *\n * For Vue3 implementations use Vee-Validate.\n *\n * This provides a simplified version of Vee-Validate v4 implemented with Zod to validate a form schema.\n * It returns reactive values that can be used directly in form input elements with 'v-model' alongside\n * with functions to \"reset\" the data (sets values to default value) and a function to execute the\n * successful form validation process (through a callback).\n *\n * @deprecated For usage with Zod/v3. Migrate to Zod/v4 and use `@adyen/bento-vue2/use-form-v4' instead or migrate to Vue3 and use Vee-Validate instead.\n *\n * @param props Form configuration object\n * @param extends ZodSchema} props.validationSchema Zod typed validation schema\n * @returns response - Composable with reactive form values and errors, and functions to handle the reactive data\n * @returns response.errorBag Object with all the form values and an array of each one of the errors (if any) per value\n * @returns response.errors Object with all the form values and the first error found for that field (if any)\n * @returns response.values Object with all the form values and their current value\n * @returns response.handleReset Resets the form values to default (initial values) when it gets called\n * @returns response.submitForm Validates the data set in {response.values} and sets errors (if found) inside {response.errors} and {response.errorBag}.\n * When the validation is successful it calls the callback so the submit process can continue\n *\n * @example\n * const validationSchema = toTypedSchema(\n * z.object({\n * name: z\n * .string()\n * .min(3, { message: 'Name is required' })\n * .startsWith('Jane')\n * .max(4, { message: 'Name cannot be longer than 4 characters' })\n * .default('Joe'),\n * })\n * );\n *\n * const { values, errors, errorBag, submitForm, handleReset } = useForm({\n * validationSchema\n * });\n * const handleSubmit = submitForm(() => {\n * // Send data to API here\n * })\n *\n */\nexport function useForm<T extends ZodSchema>({\n validationSchema,\n}: UseForm<T>): {\n errorBag: Ref<{\n [P in allKeys<(typeof validationSchema)['_type']>]?: string[];\n }>;\n errors: Ref<{\n [P in allKeys<(typeof validationSchema)['_type']>]?: string;\n }>;\n values: Ref<(typeof validationSchema)['_type']>;\n handleReset: () => void;\n submitForm: (submitted: any) => () => void;\n} {\n // Errors per field\n const errors = shallowRef<z.infer<typeof validationSchema>>({});\n // All errors per field\n const errorBag: Ref<ErrorBag<z.infer<typeof validationSchema>>> = ref({});\n const values: Ref<z.TypeOf<T>> = ref(getInitialFormValues<T>(validationSchema));\n\n const cleanErrors = () => {\n errors.value = {};\n errorBag.value = {};\n };\n\n const resetForm = () => {\n cleanErrors();\n values.value = getInitialFormValues<T>(validationSchema);\n };\n\n const submitForm = submitted => () => {\n cleanErrors();\n\n // Run validations on the form data through the schema\n const validSchema = validationSchema.safeParse(values.value);\n\n // Update errors\n if (!validSchema.success) {\n (validSchema as z.SafeParseError<T>).error.issues.forEach(error => {\n const path = normalizeFormPath(error);\n\n // Add the first ocurrance of a fild error to the \"errors\" object\n if (!errors.value[path]) {\n errors.value[path] = error.message;\n }\n\n // Add each error to the \"errorBag\" per field array\n if (!errorBag.value[path]) {\n errorBag.value[path] = [error.message];\n } else {\n errorBag.value[path].push(error.message);\n }\n });\n } else {\n submitted(values.value);\n }\n };\n\n return {\n // Values\n errorBag,\n errors,\n values,\n\n // Methods\n handleReset: () => resetForm(),\n submitForm,\n };\n}\n","import { type BentoTheme } from './install';\n\nexport const useBentoThemeKey = Symbol('use-bento-theme');\n\nexport interface UseBentoTheme {\n getTheme: () => string;\n setTheme: (theme: BentoTheme | `${BentoTheme}`) => void;\n}\n","import { printDevelopmentWarning } from '@/utils/ts/print-development-warning';\nimport { getCurrentInstance, inject } from 'vue';\nimport { isVue2 } from 'vue-demi';\nimport { type UseBentoTheme, useBentoThemeKey } from './use-bento-theme.types';\n\n/**\n * Composable that handles theming-related capabilities for the Bento component library.\n * Requires the use of `BentoPlugin`.\n *\n * @example\n * <script setup lang=\"ts\">\n * import { useBentoTheme, BentoTheme } from '@adyen/bento-vue2';\n *\n * const { setTheme } = useBentoTheme();\n *\n * setTheme(BentoTheme.BENTO_DARK)\n * </script>\n *\n * @returns {UseBentoTheme} An object with getter and setter method for the Bento theme.\n * @returns {Function} getTheme - Returns the current theme in the string form of BentoTheme enum.\n * @returns {Function} setTheme - Sets the theme of the Bento component library.\n *\n */\nexport function useBentoTheme(): UseBentoTheme {\n const bentoThemeController = isVue2\n ? getCurrentInstance()?.proxy[useBentoThemeKey]\n : inject(useBentoThemeKey, null);\n\n if (!bentoThemeController) {\n printDevelopmentWarning('useBentoTheme does not work without Vue.use(BentoPlugin)');\n\n // Return placeholder functions so client code won't break, but theme won't toggle\n return {\n getTheme: () => undefined,\n setTheme: () => undefined,\n };\n }\n\n // Return a new object so unintentional reassigning its properties won't override a global state\n return { ...bentoThemeController };\n}\n","import { type App, isVue2, type Vue2 } from 'vue-demi';\nimport { createToastStack, toastStackInjectionKey } from './toast-stack';\n\n/**\n * This function is used to create and register global reactive state necessary fro the Toasts to operate.\n * @param {Vue} Vue A context application to register global state with.\n */\nexport default Vue => {\n if (isVue2) {\n // Add toast stack as a global property as there is no \"app.provide\" functionality in Vue2\n // eslint-disable-next-line no-param-reassign -- this is an official way of setting up instance properties on Vue\n (Vue as typeof Vue2).prototype[toastStackInjectionKey] = createToastStack();\n } else {\n (Vue as App).provide(toastStackInjectionKey, createToastStack());\n }\n};\n","import { type App, isVue2, type Vue2 } from 'vue-demi';\nimport { useBentoThemeKey } from './use-bento-theme.types';\n\nconst getTheme = () => document.body.className.match(/b-\\w+-theme/)?.[0] ?? '';\nconst getThemeForSystemPreference = () => {\n const preferredDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches;\n\n if (preferredDarkMode) {\n return BentoTheme.BENTO_DARK;\n }\n\n return BentoTheme.BENTO_LIGHT;\n};\n\nexport enum BentoTheme {\n LEGACY = 'b-legacy-theme',\n STYLEGUIDE = 'b-styleguide-theme',\n\n /**\n * @deprecated in favor of {@link BENTO_LIGHT}. To be removed in v2.0.0.\n */\n BENTO = '',\n\n BENTO_LIGHT = 'b-light-theme',\n BENTO_DARK = 'b-dark-theme',\n BENTO_SYSTEM = 'b-system',\n}\n\nexport const setTheme = (theme: BentoTheme) => {\n const currentTheme = getTheme();\n const systemTheme = getThemeForSystemPreference();\n const themeToSet = theme === BentoTheme.BENTO_SYSTEM ? systemTheme : theme;\n\n if (themeToSet === BentoTheme.BENTO_LIGHT || themeToSet === BentoTheme.BENTO) {\n document.documentElement.style.colorScheme = 'light';\n } else if (themeToSet === BentoTheme.BENTO_DARK) {\n document.documentElement.style.colorScheme = 'dark';\n }\n\n // if theme is different from current and it is not `BentoTheme.BENTO`\n if (currentTheme.length && currentTheme !== themeToSet) {\n document.body.classList.remove(currentTheme);\n }\n\n // if theme is not `BentoTheme.BENTO`\n if (themeToSet.length) {\n document.body.classList.add(themeToSet);\n }\n};\n\n/**\n * This function is used to create and register global reactive state necessary for theme to operate.\n * @param {Vue} Vue A context application to register global state with.\n */\nexport default Vue => {\n const themeProvider = {\n getTheme,\n setTheme,\n };\n\n if (isVue2) {\n // Add theme as a global property as there is no \"app.provide\" functionality in Vue2\n // eslint-disable-next-line no-param-reassign -- this is an official way of setting up instance properties on Vue\n (Vue as typeof Vue2).prototype[useBentoThemeKey] = themeProvider;\n } else {\n (Vue as App).provide(useBentoThemeKey, themeProvider);\n }\n};\n","import type { PluginObject } from 'vue';\nimport installToast from './composables/use-bento-toast-controller/install';\nimport installTheme, { BentoTheme, setTheme } from './composables/use-bento-theme/install';\nimport { deprecate } from './utils/ts/deprecate';\n\ninterface BentoVuePlugin {\n theme?: BentoTheme;\n withToast?: boolean;\n withUtilityClasses?: boolean;\n withDesignTokensCSSInjection?: boolean;\n}\n\nconst plugin: PluginObject<BentoVuePlugin> = {\n name: 'BentoVue',\n install: async (\n Vue,\n {\n theme = BentoTheme.BENTO_LIGHT,\n withToast = false,\n withUtilityClasses = false,\n withDesignTokensCSSInjection = true,\n }: BentoVuePlugin\n ) => {\n installTheme(Vue);\n\n if (withToast) {\n installToast(Vue);\n }\n if (withDesignTokensCSSInjection) {\n deprecate(\n 'Using default setting withDesignTokensCSSInjection set to true in BentoVue plugin',\n 'Please disable CSS injection by setting withDesignTokensCSSInjection to false in BentoVue plugin options as highlighted here:\\nhttps://adyen-bento.netlify.app/?path=/docs/welcome-getting-started--docs#import-css-variables',\n '2.0.0'\n );\n // Make sure to put all awaited CSS imports below this point and not above!\n if (theme === BentoTheme.LEGACY) {\n await import('@adyen/bento-design-tokens/dist/css/bento/variables-legacy.css');\n } else if (theme === BentoTheme.STYLEGUIDE) {\n await import('@adyen/bento-design-tokens/dist/css/bento/variables-styleguide.css');\n } else {\n await import('@adyen/bento-design-tokens/dist/css/bento/variables.css');\n }\n\n if (withUtilityClasses) {\n await import('@adyen/bento-design-tokens/dist/css/bento/utility.css');\n }\n }\n\n if (theme === BentoTheme.LEGACY) {\n setTheme(BentoTheme.LEGACY);\n } else if (theme === BentoTheme.STYLEGUIDE) {\n setTheme(BentoTheme.STYLEGUIDE);\n } else if (theme === BentoTheme.BENTO_SYSTEM) {\n setTheme(BentoTheme.BENTO_SYSTEM);\n } else if (theme === BentoTheme.BENTO_DARK) {\n setTheme(BentoTheme.BENTO_DARK);\n } else if (theme === BentoTheme.BENTO) {\n deprecate('Using `BentoTheme.BENTO`', 'Please use `BentoTheme.BENTO_LIGHT` instead', '2.0.0');\n setTheme(BentoTheme.BENTO_LIGHT);\n } else {\n setTheme(BentoTheme.BENTO_LIGHT);\n }\n },\n};\n\nexport { BentoTheme };\nexport default plugin;\n"],"names":["toTypedSchema","formSchema","getInitialFormValues","schema","z","key","value","normalizeFormPath","issue","useForm","validationSchema","errors","shallowRef","errorBag","ref","values","cleanErrors","resetForm","validSchema","submitted","error","path","useBentoThemeKey","useBentoTheme","bentoThemeController","inject","printDevelopmentWarning","installToast","Vue","toastStackInjectionKey","createToastStack","getTheme","_a","getThemeForSystemPreference","BentoTheme","setTheme","theme","currentTheme","systemTheme","themeToSet","installTheme","themeProvider","plugin","withToast","withUtilityClasses","withDesignTokensCSSInjection","deprecate"],"mappings":"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"}
1
+ {"version":3,"file":"index.js","sources":["../../vue2/src/composables/use-form-validate/use-form.ts","../../vue2/src/composables/use-bento-theme/use-bento-theme.types.ts","../../vue2/src/composables/use-bento-theme/use-bento-theme.ts","../../vue2/src/composables/use-bento-toast-controller/install.ts","../../vue2/src/composables/use-bento-theme/install.ts","../../vue2/src/install.ts"],"sourcesContent":["import { type Ref, ref, shallowRef } from 'vue';\nimport * as z from 'zod';\nimport type { ZodSchema } from 'zod';\nimport { type allKeys, type ErrorBag, type UseForm } from './use-form.types';\n\n/**\n * Composable that tansforms a Zod schema into a Typed Schema that can be used alongside with {@see useForm}.\n *\n * This is meant to simulate the behavior of {@link @vee-validate/zod} {@see https://vee-validate.logaretm.com/v4/integrations/zod-schema-validation}.\n * Function that transform Zod’s schemas into something that can be understood by vee-validate\n *\n * @deprecated For usage with Zod/v3. Migrate to Zod/v4 and use `@adyen/bento-vue2/use-form-v4' instead or migrate to Vue3 and use Vee-Validate instead.\n *\n * @param formSchema Zod schema to be transformed into a `vee-validate` schema\n * @returns Schema transformed\n */\nexport function toTypedSchema<T extends ZodSchema>(formSchema: T) {\n return formSchema;\n}\n\n/**\n * Finds and returns the initial values of each of the values defined in the schema so that they\n * can be transformed into a reactive element.\n * @param schema Zod validation schema containing the definitions of each value to be used in the form\n * @returns Object with the items defined in the schema and their (default) values\n *\n * @example\n * const validationSchema = toTypedSchema(\n * z.object({\n * name: z\n * .string()\n * .min(3, { message: 'Name is required' })\n * .startsWith('Jane')\n * .max(4, { message: 'Name cannot be longer than 4 characters' })\n * .default('Joe'),\n * })\n * );\n * getInitialFormValues(validationSchema)\n *\n * Will return:\n *\n * {\n * name: 'Joe'\n * }\n *\n */\nfunction getInitialFormValues<T extends ZodSchema>(schema: T): z.infer<typeof schema> {\n if (!!z && schema instanceof z.ZodObject) {\n return Object.fromEntries(\n Object.entries(schema.shape).map(([key, value]) => {\n if (!!z && value instanceof z.ZodDefault) {\n // eslint-disable-next-line no-underscore-dangle\n return [key, value._def.defaultValue()];\n }\n\n if (!!z && value instanceof z.ZodObject) {\n return [key, getInitialFormValues(value)];\n }\n\n return [key, undefined];\n })\n ) as z.infer<typeof schema>;\n }\n\n return undefined;\n}\n\n/**\n * Constructs a path with dot paths for arrays to use brackets to be compatible with vee-validate path syntax\n * @param issue List of nested path elements\n * @returns Path with dots\n */\nfunction normalizeFormPath(issue: z.ZodIssue) {\n return issue.path.join('.');\n}\n\n/**\n * Composable that facilitates validating form data for Vue2 & Vue3 implementations with FormLayout\n * to ease the migration to Vue3.\n *\n * For Vue3 implementations use Vee-Validate.\n *\n * This provides a simplified version of Vee-Validate v4 implemented with Zod to validate a form schema.\n * It returns reactive values that can be used directly in form input elements with 'v-model' alongside\n * with functions to \"reset\" the data (sets values to default value) and a function to execute the\n * successful form validation process (through a callback).\n *\n * @deprecated For usage with Zod/v3. Migrate to Zod/v4 and use `@adyen/bento-vue2/use-form-v4' instead or migrate to Vue3 and use Vee-Validate instead.\n *\n * @param props Form configuration object\n * @param extends ZodSchema} props.validationSchema Zod typed validation schema\n * @returns response - Composable with reactive form values and errors, and functions to handle the reactive data\n * @returns response.errorBag Object with all the form values and an array of each one of the errors (if any) per value\n * @returns response.errors Object with all the form values and the first error found for that field (if any)\n * @returns response.values Object with all the form values and their current value\n * @returns response.handleReset Resets the form values to default (initial values) when it gets called\n * @returns response.submitForm Validates the data set in {response.values} and sets errors (if found) inside {response.errors} and {response.errorBag}.\n * When the validation is successful it calls the callback so the submit process can continue\n *\n * @example\n * const validationSchema = toTypedSchema(\n * z.object({\n * name: z\n * .string()\n * .min(3, { message: 'Name is required' })\n * .startsWith('Jane')\n * .max(4, { message: 'Name cannot be longer than 4 characters' })\n * .default('Joe'),\n * })\n * );\n *\n * const { values, errors, errorBag, submitForm, handleReset } = useForm({\n * validationSchema\n * });\n * const handleSubmit = submitForm(() => {\n * // Send data to API here\n * })\n *\n */\nexport function useForm<T extends ZodSchema>({\n validationSchema,\n}: UseForm<T>): {\n errorBag: Ref<{\n [P in allKeys<(typeof validationSchema)['_type']>]?: string[];\n }>;\n errors: Ref<{\n [P in allKeys<(typeof validationSchema)['_type']>]?: string;\n }>;\n values: Ref<(typeof validationSchema)['_type']>;\n handleReset: () => void;\n submitForm: (submitted: any) => () => void;\n} {\n // Errors per field\n const errors = shallowRef<z.infer<typeof validationSchema>>({});\n // All errors per field\n const errorBag: Ref<ErrorBag<z.infer<typeof validationSchema>>> = ref({});\n const values: Ref<z.TypeOf<T>> = ref(getInitialFormValues<T>(validationSchema));\n\n const cleanErrors = () => {\n errors.value = {};\n errorBag.value = {};\n };\n\n const resetForm = () => {\n cleanErrors();\n values.value = getInitialFormValues<T>(validationSchema);\n };\n\n const submitForm = submitted => () => {\n cleanErrors();\n\n // Run validations on the form data through the schema\n const validSchema = validationSchema.safeParse(values.value);\n\n // Update errors\n if (!validSchema.success) {\n (validSchema as z.SafeParseError<T>).error.issues.forEach(error => {\n const path = normalizeFormPath(error);\n\n // Add the first ocurrance of a fild error to the \"errors\" object\n if (!errors.value[path]) {\n errors.value[path] = error.message;\n }\n\n // Add each error to the \"errorBag\" per field array\n if (!errorBag.value[path]) {\n errorBag.value[path] = [error.message];\n } else {\n errorBag.value[path].push(error.message);\n }\n });\n } else {\n submitted(values.value);\n }\n };\n\n return {\n // Values\n errorBag,\n errors,\n values,\n\n // Methods\n handleReset: () => resetForm(),\n submitForm,\n };\n}\n","import { type BentoTheme } from './install';\n\nexport const useBentoThemeKey = Symbol('use-bento-theme');\n\nexport interface UseBentoTheme {\n getTheme: () => string;\n setTheme: (theme: BentoTheme | `${BentoTheme}`) => void;\n}\n","import { printDevelopmentWarning } from '@/utils/ts/print-development-warning';\nimport { getCurrentInstance, inject } from 'vue';\nimport { isVue2 } from 'vue-demi';\nimport { type UseBentoTheme, useBentoThemeKey } from './use-bento-theme.types';\n\n/**\n * Composable that handles theming-related capabilities for the Bento component library.\n * Requires the use of `BentoPlugin`.\n *\n * @example\n * <script setup lang=\"ts\">\n * import { useBentoTheme, BentoTheme } from '@adyen/bento-vue2';\n *\n * const { setTheme } = useBentoTheme();\n *\n * setTheme(BentoTheme.BENTO_DARK)\n * </script>\n *\n * @returns {UseBentoTheme} An object with getter and setter method for the Bento theme.\n * @returns {Function} getTheme - Returns the current theme in the string form of BentoTheme enum.\n * @returns {Function} setTheme - Sets the theme of the Bento component library.\n *\n */\nexport function useBentoTheme(): UseBentoTheme {\n const bentoThemeController = isVue2\n ? getCurrentInstance()?.proxy[useBentoThemeKey]\n : inject(useBentoThemeKey, null);\n\n if (!bentoThemeController) {\n printDevelopmentWarning('useBentoTheme does not work without Vue.use(BentoPlugin)');\n\n // Return placeholder functions so client code won't break, but theme won't toggle\n return {\n getTheme: () => undefined,\n setTheme: () => undefined,\n };\n }\n\n // Return a new object so unintentional reassigning its properties won't override a global state\n return { ...bentoThemeController };\n}\n","import { type App, isVue2, type Vue2 } from 'vue-demi';\nimport { createToastStack, toastStackInjectionKey } from './toast-stack';\n\n/**\n * This function is used to create and register global reactive state necessary fro the Toasts to operate.\n * @param {Vue} Vue A context application to register global state with.\n */\nexport default Vue => {\n if (isVue2) {\n // Add toast stack as a global property as there is no \"app.provide\" functionality in Vue2\n // eslint-disable-next-line no-param-reassign -- this is an official way of setting up instance properties on Vue\n (Vue as typeof Vue2).prototype[toastStackInjectionKey] = createToastStack();\n } else {\n (Vue as App).provide(toastStackInjectionKey, createToastStack());\n }\n};\n","import { type App, isVue2, type Vue2 } from 'vue-demi';\nimport { useBentoThemeKey } from './use-bento-theme.types';\n\nconst getTheme = () => document.body.className.match(/b-\\w+-theme/)?.[0] ?? '';\nconst getThemeForSystemPreference = () => {\n const preferredDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches;\n\n if (preferredDarkMode) {\n return BentoTheme.BENTO_DARK;\n }\n\n return BentoTheme.BENTO_LIGHT;\n};\n\nexport enum BentoTheme {\n /**\n * @deprecated in favor of {@link BENTO_LIGHT}. To be removed in v2.0.0.\n */\n LEGACY = 'b-legacy-theme',\n STYLEGUIDE = 'b-styleguide-theme',\n\n /**\n * @deprecated in favor of {@link BENTO_LIGHT}. To be removed in v2.0.0.\n */\n BENTO = '',\n\n BENTO_LIGHT = 'b-light-theme',\n BENTO_DARK = 'b-dark-theme',\n BENTO_SYSTEM = 'b-system',\n}\n\nexport const setTheme = (theme: BentoTheme) => {\n const currentTheme = getTheme();\n const systemTheme = getThemeForSystemPreference();\n const themeToSet = theme === BentoTheme.BENTO_SYSTEM ? systemTheme : theme;\n\n if (themeToSet === BentoTheme.BENTO_LIGHT || themeToSet === BentoTheme.BENTO) {\n document.documentElement.style.colorScheme = 'light';\n } else if (themeToSet === BentoTheme.BENTO_DARK) {\n document.documentElement.style.colorScheme = 'dark';\n }\n\n // if theme is different from current and it is not `BentoTheme.BENTO`\n if (currentTheme.length && currentTheme !== themeToSet) {\n document.body.classList.remove(currentTheme);\n }\n\n // if theme is not `BentoTheme.BENTO`\n if (themeToSet.length) {\n document.body.classList.add(themeToSet);\n }\n};\n\n/**\n * This function is used to create and register global reactive state necessary for theme to operate.\n * @param {Vue} Vue A context application to register global state with.\n */\nexport default Vue => {\n const themeProvider = {\n getTheme,\n setTheme,\n };\n\n if (isVue2) {\n // Add theme as a global property as there is no \"app.provide\" functionality in Vue2\n // eslint-disable-next-line no-param-reassign -- this is an official way of setting up instance properties on Vue\n (Vue as typeof Vue2).prototype[useBentoThemeKey] = themeProvider;\n } else {\n (Vue as App).provide(useBentoThemeKey, themeProvider);\n }\n};\n","import type { PluginObject } from 'vue';\nimport installToast from './composables/use-bento-toast-controller/install';\nimport installTheme, { BentoTheme, setTheme } from './composables/use-bento-theme/install';\nimport { deprecate } from './utils/ts/deprecate';\n\ninterface BentoVuePlugin {\n theme?: BentoTheme;\n withToast?: boolean;\n withUtilityClasses?: boolean;\n withDesignTokensCSSInjection?: boolean;\n}\n\nconst plugin: PluginObject<BentoVuePlugin> = {\n name: 'BentoVue',\n install: async (\n Vue,\n {\n theme = BentoTheme.BENTO_LIGHT,\n withToast = false,\n withUtilityClasses = false,\n withDesignTokensCSSInjection = true,\n }: BentoVuePlugin\n ) => {\n installTheme(Vue);\n\n if (withToast) {\n installToast(Vue);\n }\n if (withDesignTokensCSSInjection) {\n deprecate(\n 'Using default setting withDesignTokensCSSInjection set to true in BentoVue plugin',\n 'Please disable CSS injection by setting withDesignTokensCSSInjection to false in BentoVue plugin options as highlighted here:\\nhttps://adyen-bento.netlify.app/?path=/docs/welcome-getting-started--docs#import-css-variables',\n '2.0.0'\n );\n // Make sure to put all awaited CSS imports below this point and not above!\n if (theme === BentoTheme.STYLEGUIDE) {\n await import('@adyen/bento-design-tokens/dist/css/bento/variables-styleguide.css');\n } else {\n await import('@adyen/bento-design-tokens/dist/css/bento/variables.css');\n }\n\n if (withUtilityClasses) {\n await import('@adyen/bento-design-tokens/dist/css/bento/utility.css');\n }\n }\n\n if (theme === BentoTheme.STYLEGUIDE) {\n setTheme(BentoTheme.STYLEGUIDE);\n } else if (theme === BentoTheme.BENTO_SYSTEM) {\n setTheme(BentoTheme.BENTO_SYSTEM);\n } else if (theme === BentoTheme.BENTO_DARK) {\n setTheme(BentoTheme.BENTO_DARK);\n } else if (theme === BentoTheme.BENTO) {\n deprecate('Using `BentoTheme.BENTO`', 'Please use `BentoTheme.BENTO_LIGHT` instead', '2.0.0');\n setTheme(BentoTheme.BENTO_LIGHT);\n } else {\n setTheme(BentoTheme.BENTO_LIGHT);\n }\n },\n};\n\nexport { BentoTheme };\nexport default plugin;\n"],"names":["toTypedSchema","formSchema","getInitialFormValues","schema","z","key","value","normalizeFormPath","issue","useForm","validationSchema","errors","shallowRef","errorBag","ref","values","cleanErrors","resetForm","validSchema","submitted","error","path","useBentoThemeKey","useBentoTheme","bentoThemeController","inject","printDevelopmentWarning","installToast","Vue","toastStackInjectionKey","createToastStack","getTheme","_a","getThemeForSystemPreference","BentoTheme","setTheme","theme","currentTheme","systemTheme","themeToSet","installTheme","themeProvider","plugin","withToast","withUtilityClasses","withDesignTokensCSSInjection","deprecate"],"mappings":"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"}
package/dist/info-icon.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as e } from "./chunks/info-icon.DKnzFXy1.js";
1
+ import { B as e } from "./chunks/info-icon.Bl0iKUfC.js";
2
2
  export {
3
3
  e as BentoInfoIcon
4
4
  };
@@ -1,4 +1,4 @@
1
- import { i as a, m as s, r as i, b as c, c as u, a as o } from "./chunks/input-field-password.DC8lJFsr.js";
1
+ import { i as a, m as s, r as i, b as c, c as u, a as o } from "./chunks/input-field-password.DkIWrrxy.js";
2
2
  export {
3
3
  a as BentoInputFieldPassword,
4
4
  s as minLength,
@@ -1,4 +1,4 @@
1
- import { i as o, B as t } from "./chunks/input-field-phone-number.BbMEzDiR.js";
1
+ import { i as o, B as t } from "./chunks/input-field-phone-number.EXlRu8qq.js";
2
2
  export {
3
3
  o as BentoInputFieldPhoneNumber,
4
4
  t as BentoInputFieldPhoneNumberCountries
@@ -1,4 +1,4 @@
1
- import { B as n, b as a, e as o, c as i, d as s, a as l } from "./chunks/input-field.6bH4yGb2.js";
1
+ import { B as n, b as a, e as o, c as i, d as s, a as l } from "./chunks/input-field.CgbiOju9.js";
2
2
  export {
3
3
  n as BentoInputField,
4
4
  a as BentoInputFieldElementPosition,
package/dist/inspector.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as t } from "./chunks/inspector.Bsv68G-e.js";
1
+ import { B as t } from "./chunks/inspector.BGtTMtE0.js";
2
2
  import { B as n } from "./chunks/inspector.types.DyHwE18g.js";
3
3
  export {
4
4
  t as BentoInspector,
package/dist/internal.js CHANGED
@@ -1,16 +1,16 @@
1
- import { a as e, b as t, C as r, c as s, d as i } from "./chunks/calendar.CYrrR8wd.js";
2
- import { C as p, a as l } from "./chunks/copy.-8xjj6Hr.js";
3
- import { C as I } from "./chunks/controls-group.2xftPPd7.js";
4
- import { B as x, b as E, a as f, D as m } from "./chunks/dialog-page.BJaRwRhF.js";
5
- import { E as d, F as N } from "./chunks/error-message.Cu4cIfdg.js";
6
- import { F as O } from "./chunks/fixed-scroller.QlDKOD7y.js";
1
+ import { a as e, b as t, C as r, c as s, d as i } from "./chunks/calendar.DFHiga9k.js";
2
+ import { C as p, a as l } from "./chunks/copy.C4DAAiPw.js";
3
+ import { C as I } from "./chunks/controls-group.CXVHTaYp.js";
4
+ import { B as x, b as E, a as f, D as m } from "./chunks/dialog-page.VSJgHY3C.js";
5
+ import { E as d, F as N } from "./chunks/error-message.B1P5ictH.js";
6
+ import { F as O } from "./chunks/fixed-scroller.DSGxXiAH.js";
7
7
  import { G as B, a as A } from "./chunks/grid-layout.DDaRNz4-.js";
8
- import { H as P, I as c } from "./chunks/header-meta.BJGF0E3r.js";
9
- import { b as g, c as y, u as D } from "./chunks/use-cached-selected-values.BcNRo4mZ.js";
10
- import { L as S } from "./chunks/listbox-option-tag.C6WHiASI.js";
11
- import { e as W, d as h } from "./chunks/toggle-button.ByyLw0Yf.js";
12
- import { B as H, a as J, T as K } from "./chunks/tooltip.Dww8NiUR.js";
13
- import { B as Y } from "./chunks/button-actions-with-menu.zdsGh7un.js";
8
+ import { H as P, I as c } from "./chunks/header-meta.Ct79L1O8.js";
9
+ import { b as g, c as y, u as D } from "./chunks/use-cached-selected-values.CELe-MsT.js";
10
+ import { L as S } from "./chunks/listbox-option-tag.CDIkX7nh.js";
11
+ import { e as W, d as h } from "./chunks/toggle-button.CQl9HneO.js";
12
+ import { B as H, a as J, T as K } from "./chunks/tooltip.lBnko9QV.js";
13
+ import { B as Y } from "./chunks/button-actions-with-menu.CBuoSd3w.js";
14
14
  export {
15
15
  W as BUTTON_ACTIONS_WITH_MENU_CONTAINER_INJECTION_KEY,
16
16
  x as BentoDialogPageAnimation,
package/dist/layout.js CHANGED
@@ -1,4 +1,4 @@
1
- import { l as t, a as e } from "./chunks/layout-row.CIg1pwOd.js";
1
+ import { l as t, a as e } from "./chunks/layout-row.BPfOPn4x.js";
2
2
  export {
3
3
  t as BentoLayout,
4
4
  e as BentoLayoutRow
package/dist/link.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as o, a as t } from "./chunks/link.Di0rtpOj.js";
1
+ import { B as o, a as t } from "./chunks/link.cwPmWlsk.js";
2
2
  export {
3
3
  o as BentoLink,
4
4
  t as BentoLinkVariant
@@ -1,4 +1,4 @@
1
- import { B as n, a as t } from "./chunks/loading-indicator.BmAQqPP2.js";
1
+ import { B as n, a as t } from "./chunks/loading-indicator.VHi5tbZa.js";
2
2
  export {
3
3
  n as BentoLoadingIndicator,
4
4
  t as BentoLoadingIndicatorEvent
package/dist/menu.js CHANGED
@@ -1,4 +1,4 @@
1
- import { f as o, g as t } from "./chunks/toggle-button.ByyLw0Yf.js";
1
+ import { f as o, g as t } from "./chunks/toggle-button.CQl9HneO.js";
2
2
  export {
3
3
  o as BentoMenu,
4
4
  t as BentoMenuEvent
@@ -1,4 +1,4 @@
1
- import { m as o, B as a } from "./chunks/modal-fullscreen.BHzyS4y7.js";
1
+ import { m as o, B as a } from "./chunks/modal-fullscreen.-Q-7GMyT.js";
2
2
  export {
3
3
  o as BentoModalFullscreen,
4
4
  a as BentoModalFullscreenPage