@adyen/bento-vue2 1.44.0 → 1.45.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 (275) hide show
  1. package/dist/@types/index.d.ts +17 -90
  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/base-button.css +1 -1
  8. package/dist/assets/base-modal.css +1 -1
  9. package/dist/assets/button.css +1 -1
  10. package/dist/assets/card.css +1 -1
  11. package/dist/assets/checkbox.css +1 -1
  12. package/dist/assets/data-grid.css +1 -1
  13. package/dist/assets/dialog-page.css +1 -1
  14. package/dist/assets/dropdown-default-textbox.css +1 -1
  15. package/dist/assets/file-uploader.css +1 -1
  16. package/dist/assets/focus-trap.css +1 -1
  17. package/dist/assets/header.css +1 -1
  18. package/dist/assets/info-icon-with-popover.css +1 -0
  19. package/dist/assets/input-field.css +1 -1
  20. package/dist/assets/inspector.css +1 -1
  21. package/dist/assets/layout-row.css +1 -1
  22. package/dist/assets/link.css +1 -1
  23. package/dist/assets/menu.css +1 -1
  24. package/dist/assets/modal-fullscreen.css +1 -1
  25. package/dist/assets/popover.css +1 -1
  26. package/dist/assets/popper-container.css +1 -1
  27. package/dist/assets/radio-input.css +1 -1
  28. package/dist/assets/sidepanel.css +1 -1
  29. package/dist/assets/tabs.css +1 -1
  30. package/dist/assets/use-cached-selected-values.css +1 -1
  31. package/dist/avatar.js +1 -1
  32. package/dist/button.js +3 -3
  33. package/dist/card.js +1 -1
  34. package/dist/checkbox.js +2 -2
  35. package/dist/chunks/{accordion-item.BjXzREaK.js → accordion-item.CzKttO4w.js} +5 -5
  36. package/dist/chunks/{accordion-item.BjXzREaK.js.map → accordion-item.CzKttO4w.js.map} +1 -1
  37. package/dist/chunks/{action-bar.Dx12xlEW.js → action-bar.BXemSuq4.js} +7 -7
  38. package/dist/chunks/{action-bar.Dx12xlEW.js.map → action-bar.BXemSuq4.js.map} +1 -1
  39. package/dist/chunks/{alert.D2Z_aiFC.js → alert.CAIp-87f.js} +3 -3
  40. package/dist/chunks/{alert.D2Z_aiFC.js.map → alert.CAIp-87f.js.map} +1 -1
  41. package/dist/chunks/{avatar.DXzyWKsI.js → avatar.BgwjpLQO.js} +2 -2
  42. package/dist/chunks/{avatar.DXzyWKsI.js.map → avatar.BgwjpLQO.js.map} +1 -1
  43. package/dist/chunks/{base-button.4UYC3kp2.js → base-button.-gx_u8Bd.js} +3 -3
  44. package/dist/chunks/base-button.-gx_u8Bd.js.map +1 -0
  45. package/dist/chunks/{base-modal.BrqNR-ah.js → base-modal.4JSNBM4T.js} +12 -12
  46. package/dist/chunks/{base-modal.BrqNR-ah.js.map → base-modal.4JSNBM4T.js.map} +1 -1
  47. package/dist/chunks/{button-actions-with-menu.ptKgeQEb.js → button-actions-with-menu.ieopdfI7.js} +4 -4
  48. package/dist/chunks/{button-actions-with-menu.ptKgeQEb.js.map → button-actions-with-menu.ieopdfI7.js.map} +1 -1
  49. package/dist/chunks/{button-actions.BIQ3qA8q.js → button-actions.CtFB6iRj.js} +3 -3
  50. package/dist/chunks/{button-actions.BIQ3qA8q.js.map → button-actions.CtFB6iRj.js.map} +1 -1
  51. package/dist/chunks/{button.CufUNBkv.js → button.BX6ZJxF7.js} +13 -13
  52. package/dist/chunks/button.BX6ZJxF7.js.map +1 -0
  53. package/dist/chunks/{calendar.B9WZ8ub3.js → calendar.BouORZfb.js} +9 -9
  54. package/dist/chunks/{calendar.B9WZ8ub3.js.map → calendar.BouORZfb.js.map} +1 -1
  55. package/dist/chunks/{card.D9g7fZDX.js → card.BabmUkTG.js} +6 -6
  56. package/dist/chunks/{card.D9g7fZDX.js.map → card.BabmUkTG.js.map} +1 -1
  57. package/dist/chunks/{checkbox-group.Bcqac3y8.js → checkbox-group.DbLznnsa.js} +7 -7
  58. package/dist/chunks/{checkbox-group.Bcqac3y8.js.map → checkbox-group.DbLznnsa.js.map} +1 -1
  59. package/dist/chunks/{checkbox.B1qjI4R_.js → checkbox.fhQLs-NN.js} +6 -6
  60. package/dist/chunks/checkbox.fhQLs-NN.js.map +1 -0
  61. package/dist/chunks/{chevron-left.CtnrsqUy.js → chevron-left.PIu6yPqe.js} +3 -3
  62. package/dist/chunks/{chevron-left.CtnrsqUy.js.map → chevron-left.PIu6yPqe.js.map} +1 -1
  63. package/dist/chunks/{chevron-up.B2uWhZf7.js → chevron-up.DVfo78kV.js} +3 -3
  64. package/dist/chunks/{chevron-up.B2uWhZf7.js.map → chevron-up.DVfo78kV.js.map} +1 -1
  65. package/dist/chunks/{code-snippet.rmKiWrIv.js → code-snippet.5iJcUZSo.js} +20 -20
  66. package/dist/chunks/{code-snippet.rmKiWrIv.js.map → code-snippet.5iJcUZSo.js.map} +1 -1
  67. package/dist/chunks/{codemirror.BlV6WO5w.js → codemirror.CXFEqvAi.js} +2047 -2053
  68. package/dist/chunks/{codemirror.BlV6WO5w.js.map → codemirror.CXFEqvAi.js.map} +1 -1
  69. package/dist/chunks/{controls-group.J8shO_JL.js → controls-group.CnXzOQkX.js} +3 -3
  70. package/dist/chunks/{controls-group.J8shO_JL.js.map → controls-group.CnXzOQkX.js.map} +1 -1
  71. package/dist/chunks/{copy.DgzxvExj.js → copy.DN0tClPm.js} +4 -4
  72. package/dist/chunks/{copy.DgzxvExj.js.map → copy.DN0tClPm.js.map} +1 -1
  73. package/dist/chunks/{country.CM5oZOyZ.js → country.Bft91V1L.js} +3 -3
  74. package/dist/chunks/{country.CM5oZOyZ.js.map → country.Bft91V1L.js.map} +1 -1
  75. package/dist/chunks/{country.types.Br0AjxGy.js → country.types.pilf5B3F.js} +483 -480
  76. package/dist/chunks/{country.types.Br0AjxGy.js.map → country.types.pilf5B3F.js.map} +1 -1
  77. package/dist/chunks/{currency.P7Psn_SK.js → currency.BmI4Sqy5.js} +2 -2
  78. package/dist/chunks/{currency.P7Psn_SK.js.map → currency.BmI4Sqy5.js.map} +1 -1
  79. package/dist/chunks/{dashboard-section._KVy37B0.js → dashboard-section.DYXZhtop.js} +5 -5
  80. package/dist/chunks/{dashboard-section._KVy37B0.js.map → dashboard-section.DYXZhtop.js.map} +1 -1
  81. package/dist/chunks/{dashed-underline.DX5QlK14.js → dashed-underline.BvSZS1-m.js} +4 -4
  82. package/dist/chunks/{dashed-underline.DX5QlK14.js.map → dashed-underline.BvSZS1-m.js.map} +1 -1
  83. package/dist/chunks/{data-grid-template.BgTUIoak.js → data-grid-template.Du92TEFY.js} +4 -4
  84. package/dist/chunks/{data-grid-template.BgTUIoak.js.map → data-grid-template.Du92TEFY.js.map} +1 -1
  85. package/dist/chunks/{data-grid.sAbzCVND.js → data-grid.Kwtf1DMq.js} +46 -46
  86. package/dist/chunks/{data-grid.sAbzCVND.js.map → data-grid.Kwtf1DMq.js.map} +1 -1
  87. package/dist/chunks/{date-picker.DrSWxADA.js → date-picker.B7mTNghB.js} +11 -11
  88. package/dist/chunks/{date-picker.DrSWxADA.js.map → date-picker.B7mTNghB.js.map} +1 -1
  89. package/dist/chunks/{date-range-picker.CFIOD59O.js → date-range-picker.DPLri9D-.js} +241 -241
  90. package/dist/chunks/{date-range-picker.CFIOD59O.js.map → date-range-picker.DPLri9D-.js.map} +1 -1
  91. package/dist/chunks/{date.BQ29-2L1.js → date.1zs9CRhw.js} +2 -4
  92. package/dist/chunks/{date.BQ29-2L1.js.map → date.1zs9CRhw.js.map} +1 -1
  93. package/dist/chunks/{dialog-page.CplkzZGZ.js → dialog-page.DcJ7LaOE.js} +33 -32
  94. package/dist/chunks/dialog-page.DcJ7LaOE.js.map +1 -0
  95. package/dist/chunks/{dropdown-default-textbox.ZAFh7KqG.js → dropdown-default-textbox.DBoSso4J.js} +88 -76
  96. package/dist/chunks/dropdown-default-textbox.DBoSso4J.js.map +1 -0
  97. package/dist/chunks/{dropdown-tag.Ntdp7P7W.js → dropdown-tag.XIlES6IT.js} +8 -8
  98. package/dist/chunks/{dropdown-tag.Ntdp7P7W.js.map → dropdown-tag.XIlES6IT.js.map} +1 -1
  99. package/dist/chunks/{dropdown.DC9un4VJ.js → dropdown.BqsoncJr.js} +60 -60
  100. package/dist/chunks/dropdown.BqsoncJr.js.map +1 -0
  101. package/dist/chunks/{empty-state.B8ZeRgDi.js → empty-state.1TyzB5ju.js} +5 -5
  102. package/dist/chunks/{empty-state.B8ZeRgDi.js.map → empty-state.1TyzB5ju.js.map} +1 -1
  103. package/dist/chunks/{error-message.B7uoqQpq.js → error-message.Ccc1sTTp.js} +3 -3
  104. package/dist/chunks/{error-message.B7uoqQpq.js.map → error-message.Ccc1sTTp.js.map} +1 -1
  105. package/dist/chunks/{es6.C-HLzYPA.js → es6.jIyAPBgt.js} +4 -4
  106. package/dist/chunks/{es6.C-HLzYPA.js.map → es6.jIyAPBgt.js.map} +1 -1
  107. package/dist/chunks/{file-uploader.ItCr8Ezn.js → file-uploader.C6kcnhqp.js} +9 -9
  108. package/dist/chunks/{file-uploader.ItCr8Ezn.js.map → file-uploader.C6kcnhqp.js.map} +1 -1
  109. package/dist/chunks/{filter-bar.Dowrph-Z.js → filter-bar.DT_-lVmf.js} +48 -48
  110. package/dist/chunks/{filter-bar.Dowrph-Z.js.map → filter-bar.DT_-lVmf.js.map} +1 -1
  111. package/dist/chunks/{fixed-scroller.B880PL1J.js → fixed-scroller.IPM3AzHS.js} +4 -4
  112. package/dist/chunks/{fixed-scroller.B880PL1J.js.map → fixed-scroller.IPM3AzHS.js.map} +1 -1
  113. package/dist/chunks/focus-trap.CGypVwG6.js +495 -0
  114. package/dist/chunks/focus-trap.CGypVwG6.js.map +1 -0
  115. package/dist/chunks/{footer-actions.B3GJ1wNP.js → footer-actions.D0uH9JWq.js} +4 -4
  116. package/dist/chunks/{footer-actions.B3GJ1wNP.js.map → footer-actions.D0uH9JWq.js.map} +1 -1
  117. package/dist/chunks/{form-layout-title.BarHgyjC.js → form-layout-title.DN0jonFa.js} +3 -3
  118. package/dist/chunks/{form-layout-title.BarHgyjC.js.map → form-layout-title.DN0jonFa.js.map} +1 -1
  119. package/dist/chunks/{generate-uid.D-HFI38h.js → generate-uid.NJ8tVoha.js} +2 -2
  120. package/dist/chunks/{generate-uid.D-HFI38h.js.map → generate-uid.NJ8tVoha.js.map} +1 -1
  121. package/dist/chunks/header.BvZxtIOD.js +205 -0
  122. package/dist/chunks/header.BvZxtIOD.js.map +1 -0
  123. package/dist/chunks/{index.Gcw_BUVh.js → index.D8ivUe7P.js} +6 -5
  124. package/dist/chunks/{index.Gcw_BUVh.js.map → index.D8ivUe7P.js.map} +1 -1
  125. package/dist/chunks/info-icon-with-popover.DEjsASNU.js +71 -0
  126. package/dist/chunks/info-icon-with-popover.DEjsASNU.js.map +1 -0
  127. package/dist/chunks/{info-icon.p-28zHUJ.js → info-icon.0d0GzDe2.js} +3 -3
  128. package/dist/chunks/{info-icon.p-28zHUJ.js.map → info-icon.0d0GzDe2.js.map} +1 -1
  129. package/dist/chunks/{input-field-password.CgxF9jhq.js → input-field-password.HRDEb0jL.js} +10 -10
  130. package/dist/chunks/{input-field-password.CgxF9jhq.js.map → input-field-password.HRDEb0jL.js.map} +1 -1
  131. package/dist/chunks/{input-field.CcjqGkLs.js → input-field.D6N2kt7s.js} +6 -6
  132. package/dist/chunks/input-field.D6N2kt7s.js.map +1 -0
  133. package/dist/chunks/{inspector.types.DaY6OOzz.js → inspector.types.2YEArjPi.js} +5 -5
  134. package/dist/chunks/{inspector.types.DaY6OOzz.js.map → inspector.types.2YEArjPi.js.map} +1 -1
  135. package/dist/chunks/{layout-row.DzS_XyyF.js → layout-row.BfS-cPky.js} +5 -5
  136. package/dist/chunks/layout-row.BfS-cPky.js.map +1 -0
  137. package/dist/chunks/{link.v-y0fKjn.js → link.UOEUR35A.js} +7 -7
  138. package/dist/chunks/{link.v-y0fKjn.js.map → link.UOEUR35A.js.map} +1 -1
  139. package/dist/chunks/{listbox-option-tag.BnX0H4HE.js → listbox-option-tag.Co0ycEdQ.js} +3 -3
  140. package/dist/chunks/{listbox-option-tag.BnX0H4HE.js.map → listbox-option-tag.Co0ycEdQ.js.map} +1 -1
  141. package/dist/chunks/{menu.B78fzH_k.js → menu.CLaN9Eys.js} +9 -9
  142. package/dist/chunks/{menu.B78fzH_k.js.map → menu.CLaN9Eys.js.map} +1 -1
  143. package/dist/chunks/{modal-fullscreen.DgftXCJe.js → modal-fullscreen.B-qr1Szh.js} +7 -7
  144. package/dist/chunks/{modal-fullscreen.DgftXCJe.js.map → modal-fullscreen.B-qr1Szh.js.map} +1 -1
  145. package/dist/chunks/{modal.BA745pfv.js → modal.wU3uUJKq.js} +6 -6
  146. package/dist/chunks/{modal.BA745pfv.js.map → modal.wU3uUJKq.js.map} +1 -1
  147. package/dist/chunks/{pagination.CfwtuZ7R.js → pagination.BM3FhtxJ.js} +5 -5
  148. package/dist/chunks/{pagination.CfwtuZ7R.js.map → pagination.BM3FhtxJ.js.map} +1 -1
  149. package/dist/chunks/{payment-method.CoXB0ZAW.js → payment-method.UaERFtej.js} +2 -2
  150. package/dist/chunks/{payment-method.CoXB0ZAW.js.map → payment-method.UaERFtej.js.map} +1 -1
  151. package/dist/chunks/{popover.ZlmaSYms.js → popover.DsUymZWJ.js} +5 -5
  152. package/dist/chunks/{popover.ZlmaSYms.js.map → popover.DsUymZWJ.js.map} +1 -1
  153. package/dist/chunks/{popper-container.CnWphJTN.js → popper-container.B1iB2ovW.js} +5 -5
  154. package/dist/chunks/popper-container.B1iB2ovW.js.map +1 -0
  155. package/dist/chunks/{promo-banner.cTUF9seG.js → promo-banner.BXtIM4C9.js} +7 -7
  156. package/dist/chunks/{promo-banner.cTUF9seG.js.map → promo-banner.BXtIM4C9.js.map} +1 -1
  157. package/dist/chunks/{radio-group.EnMXbuly.js → radio-group.DMob8x2J.js} +15 -15
  158. package/dist/chunks/{radio-group.EnMXbuly.js.map → radio-group.DMob8x2J.js.map} +1 -1
  159. package/dist/chunks/{radio-input.q980f8Uf.js → radio-input.C1DZbkcT.js} +5 -5
  160. package/dist/chunks/radio-input.C1DZbkcT.js.map +1 -0
  161. package/dist/chunks/{search-bar.lYuXPzBX.js → search-bar.rubkdbcD.js} +3 -3
  162. package/dist/chunks/{search-bar.lYuXPzBX.js.map → search-bar.rubkdbcD.js.map} +1 -1
  163. package/dist/chunks/{secondary-nav.CF6WPYn4.js → secondary-nav.DKSjc5bn.js} +5 -5
  164. package/dist/chunks/{secondary-nav.CF6WPYn4.js.map → secondary-nav.DKSjc5bn.js.map} +1 -1
  165. package/dist/chunks/{segmented-control.CVeUROYR.js → segmented-control.DL0W7lJ_.js} +4 -4
  166. package/dist/chunks/{segmented-control.CVeUROYR.js.map → segmented-control.DL0W7lJ_.js.map} +1 -1
  167. package/dist/chunks/{selection-card-group.CjuBQ2UA.js → selection-card-group.iYyZ9yX4.js} +10 -10
  168. package/dist/chunks/{selection-card-group.CjuBQ2UA.js.map → selection-card-group.iYyZ9yX4.js.map} +1 -1
  169. package/dist/chunks/{sidepanel.NUx7L5f1.js → sidepanel.CQnLpV8A.js} +7 -7
  170. package/dist/chunks/{sidepanel.NUx7L5f1.js.map → sidepanel.CQnLpV8A.js.map} +1 -1
  171. package/dist/chunks/{status.types.B0jtv0c7.js → status.types.Cv6hHRMu.js} +2 -2
  172. package/dist/chunks/{status.types.B0jtv0c7.js.map → status.types.Cv6hHRMu.js.map} +1 -1
  173. package/dist/chunks/{step.5g9BIi15.js → step.BsIdWhaZ.js} +3 -3
  174. package/dist/chunks/{step.5g9BIi15.js.map → step.BsIdWhaZ.js.map} +1 -1
  175. package/dist/chunks/{structured-list-item.BEhWyaVP.js → structured-list-item.BhBbmkbw.js} +6 -6
  176. package/dist/chunks/{structured-list-item.BEhWyaVP.js.map → structured-list-item.BhBbmkbw.js.map} +1 -1
  177. package/dist/chunks/{summary-grid-item-custom.CSXo4NjY.js → summary-grid-item-custom.CicAOBVQ.js} +5 -5
  178. package/dist/chunks/{summary-grid-item-custom.CSXo4NjY.js.map → summary-grid-item-custom.CicAOBVQ.js.map} +1 -1
  179. package/dist/chunks/{tabs.Casntai-.js → tabs.9kObZry9.js} +5 -5
  180. package/dist/chunks/{tabs.Casntai-.js.map → tabs.9kObZry9.js.map} +1 -1
  181. package/dist/chunks/{tag.wTXg-O7i.js → tag.-YNhsBv7.js} +3 -3
  182. package/dist/chunks/{tag.wTXg-O7i.js.map → tag.-YNhsBv7.js.map} +1 -1
  183. package/dist/chunks/{textarea.F-JyRtIw.js → textarea.Cf21WMwL.js} +6 -6
  184. package/dist/chunks/{textarea.F-JyRtIw.js.map → textarea.Cf21WMwL.js.map} +1 -1
  185. package/dist/chunks/{timeline-item.BJyB8-Wv.js → timeline-item.Cu5b-Mqj.js} +12 -12
  186. package/dist/chunks/timeline-item.Cu5b-Mqj.js.map +1 -0
  187. package/dist/chunks/{toast.BEipTIrz.js → toast.DgJbW9CL.js} +4 -4
  188. package/dist/chunks/{toast.BEipTIrz.js.map → toast.DgJbW9CL.js.map} +1 -1
  189. package/dist/chunks/{toggle-button.CYplDIO-.js → toggle-button.Cf8C7p6e.js} +2 -2
  190. package/dist/chunks/{toggle-button.CYplDIO-.js.map → toggle-button.Cf8C7p6e.js.map} +1 -1
  191. package/dist/chunks/{toggle.INRYdQzz.js → toggle.CnS7qszG.js} +3 -3
  192. package/dist/chunks/{toggle.INRYdQzz.js.map → toggle.CnS7qszG.js.map} +1 -1
  193. package/dist/chunks/{tooltip.DH8TqpYV.js → tooltip.R2sqydIE.js} +4 -4
  194. package/dist/chunks/{tooltip.DH8TqpYV.js.map → tooltip.R2sqydIE.js.map} +1 -1
  195. package/dist/chunks/{tutorial.DFvMZAN5.js → tutorial.w2ZqeOh1.js} +9 -9
  196. package/dist/chunks/{tutorial.DFvMZAN5.js.map → tutorial.w2ZqeOh1.js.map} +1 -1
  197. package/dist/chunks/{typography.Bu_WAKdf.js → typography.J1v_SPG3.js} +2 -1
  198. package/dist/chunks/{typography.Bu_WAKdf.js.map → typography.J1v_SPG3.js.map} +1 -1
  199. package/dist/chunks/{use-bento-toast-controller.BVVMh0wc.js → use-bento-toast-controller.Cn_2Eogn.js} +3 -3
  200. package/dist/chunks/{use-bento-toast-controller.BVVMh0wc.js.map → use-bento-toast-controller.Cn_2Eogn.js.map} +1 -1
  201. package/dist/chunks/{use-cached-selected-values.BiqVX5O7.js → use-cached-selected-values.impKjAIS.js} +22 -22
  202. package/dist/chunks/use-cached-selected-values.impKjAIS.js.map +1 -0
  203. package/dist/chunks/{use-country-items.C25TI6tp.js → use-country-items.DPBbl1KK.js} +2 -2
  204. package/dist/chunks/{use-country-items.C25TI6tp.js.map → use-country-items.DPBbl1KK.js.map} +1 -1
  205. package/dist/code-snippet.js +1 -1
  206. package/dist/country.js +2 -2
  207. package/dist/currency.js +1 -1
  208. package/dist/dashboard-template.js +1 -1
  209. package/dist/dashed-underline.js +1 -1
  210. package/dist/data-grid-template.js +1 -1
  211. package/dist/data-grid.js +1 -1
  212. package/dist/date-picker.js +2 -2
  213. package/dist/date-range-picker.js +2 -2
  214. package/dist/date.js +1 -1
  215. package/dist/dropdown.js +4 -4
  216. package/dist/empty-state.js +1 -1
  217. package/dist/file-uploader.js +1 -1
  218. package/dist/filter-bar.js +1 -1
  219. package/dist/focus-trap.js +1 -1
  220. package/dist/form-layout.js +1 -1
  221. package/dist/header.js +1 -1
  222. package/dist/index.js +69 -69
  223. package/dist/index.js.map +1 -1
  224. package/dist/info-icon.js +1 -1
  225. package/dist/input-field-password.js +1 -1
  226. package/dist/input-field.js +1 -1
  227. package/dist/inspector.js +1 -1
  228. package/dist/internal.js +27 -25
  229. package/dist/internal.js.map +1 -1
  230. package/dist/layout.js +1 -1
  231. package/dist/link.js +1 -1
  232. package/dist/menu.js +1 -1
  233. package/dist/modal-fullscreen.js +1 -1
  234. package/dist/modal.js +2 -2
  235. package/dist/pagination.js +1 -1
  236. package/dist/payment-method.js +1 -1
  237. package/dist/popover.js +1 -1
  238. package/dist/popper-container.js +1 -1
  239. package/dist/promo-banner.js +1 -1
  240. package/dist/radio-group.js +2 -2
  241. package/dist/search-bar.js +2 -2
  242. package/dist/secondary-nav.js +1 -1
  243. package/dist/segmented-control.js +1 -1
  244. package/dist/selection-card.js +1 -1
  245. package/dist/sidepanel.js +1 -1
  246. package/dist/status.js +1 -1
  247. package/dist/stepper.js +1 -1
  248. package/dist/structured-list.js +1 -1
  249. package/dist/summary-grid.js +1 -1
  250. package/dist/tabs.js +1 -1
  251. package/dist/tag.js +1 -1
  252. package/dist/textarea.js +1 -1
  253. package/dist/timeline.js +1 -1
  254. package/dist/toast.js +1 -1
  255. package/dist/toggle.js +1 -1
  256. package/dist/tutorial.js +1 -1
  257. package/dist/typography.js +1 -1
  258. package/dist/web-types.json +2 -2
  259. package/package.json +7 -6
  260. package/dist/chunks/base-button.4UYC3kp2.js.map +0 -1
  261. package/dist/chunks/button.CufUNBkv.js.map +0 -1
  262. package/dist/chunks/checkbox.B1qjI4R_.js.map +0 -1
  263. package/dist/chunks/dialog-page.CplkzZGZ.js.map +0 -1
  264. package/dist/chunks/dropdown-default-textbox.ZAFh7KqG.js.map +0 -1
  265. package/dist/chunks/dropdown.DC9un4VJ.js.map +0 -1
  266. package/dist/chunks/focus-trap.DSkLNO_i.js +0 -443
  267. package/dist/chunks/focus-trap.DSkLNO_i.js.map +0 -1
  268. package/dist/chunks/header.BLjdXtYJ.js +0 -266
  269. package/dist/chunks/header.BLjdXtYJ.js.map +0 -1
  270. package/dist/chunks/input-field.CcjqGkLs.js.map +0 -1
  271. package/dist/chunks/layout-row.DzS_XyyF.js.map +0 -1
  272. package/dist/chunks/popper-container.CnWphJTN.js.map +0 -1
  273. package/dist/chunks/radio-input.q980f8Uf.js.map +0 -1
  274. package/dist/chunks/timeline-item.BJyB8-Wv.js.map +0 -1
  275. package/dist/chunks/use-cached-selected-values.BiqVX5O7.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,85 +1,85 @@
1
1
  import "./chunks/index.Cl4_42j5.js";
2
- import { t as T, c as y } from "./chunks/use-bento-toast-controller.BVVMh0wc.js";
3
- import { u as N } from "./chunks/use-bento-toast-controller.BVVMh0wc.js";
4
- import { p as g, d as l } from "./chunks/typography.Bu_WAKdf.js";
5
- import { B as _, c as Y, b as j, a as U } from "./chunks/typography.Bu_WAKdf.js";
6
- import { a as K, b as H } from "./chunks/accordion-item.BjXzREaK.js";
7
- import { B as W } from "./chunks/action-bar.Dx12xlEW.js";
8
- import { B as J, c as Q, b as X, a as $ } from "./chunks/alert.D2Z_aiFC.js";
9
- import { B as te } from "./chunks/avatar.DXzyWKsI.js";
10
- import { B as ae, b as ne, a as re } from "./chunks/button.CufUNBkv.js";
11
- import { d as Be } from "./chunks/dashed-underline.DX5QlK14.js";
12
- import { B as me, d as pe, a as de, f as le, e as ue, c as ce, b as fe } from "./chunks/data-grid.sAbzCVND.js";
13
- import { c as Se, B as Te, a as ye } from "./chunks/card.D9g7fZDX.js";
14
- import { B as be, a as he } from "./chunks/date-picker.DrSWxADA.js";
15
- import { B as Ce, a as De } from "./chunks/date-range-picker.CFIOD59O.js";
16
- import { B as Ie, u as Le } from "./chunks/dropdown.DC9un4VJ.js";
17
- import { B as Fe } from "./chunks/dropdown-default-textbox.ZAFh7KqG.js";
18
- import { B as Oe, a as ke } from "./chunks/checkbox.B1qjI4R_.js";
2
+ import { c as T, t as y } from "./chunks/use-bento-toast-controller.Cn_2Eogn.js";
3
+ import { u as N } from "./chunks/use-bento-toast-controller.Cn_2Eogn.js";
4
+ import { p as g, d as l } from "./chunks/typography.J1v_SPG3.js";
5
+ import { B as _, c as Y, b as j, a as U } from "./chunks/typography.J1v_SPG3.js";
6
+ import { a as K, b as H } from "./chunks/accordion-item.CzKttO4w.js";
7
+ import { B as W } from "./chunks/action-bar.BXemSuq4.js";
8
+ import { B as J, c as Q, b as X, a as $ } from "./chunks/alert.CAIp-87f.js";
9
+ import { B as te } from "./chunks/avatar.BgwjpLQO.js";
10
+ import { B as ae, b as ne, a as re } from "./chunks/button.BX6ZJxF7.js";
11
+ import { d as Be } from "./chunks/dashed-underline.BvSZS1-m.js";
12
+ import { B as me, d as pe, a as de, f as le, e as ue, c as ce, b as fe } from "./chunks/data-grid.Kwtf1DMq.js";
13
+ import { c as Se, B as Te, a as ye } from "./chunks/card.BabmUkTG.js";
14
+ import { B as be, a as he } from "./chunks/date-picker.B7mTNghB.js";
15
+ import { B as Ce, a as De } from "./chunks/date-range-picker.DPLri9D-.js";
16
+ import { B as Ie, u as Le } from "./chunks/dropdown.BqsoncJr.js";
17
+ import { B as Fe } from "./chunks/dropdown-default-textbox.DBoSso4J.js";
18
+ import { B as Oe, a as ke } from "./chunks/checkbox.fhQLs-NN.js";
19
19
  import { B as Me } from "./chunks/click-outside.DSszkIvs.js";
20
- import { c as Ae, b as Ne, a as Re, B as _e } from "./chunks/code-snippet.rmKiWrIv.js";
21
- import { c as je } from "./chunks/country.CM5oZOyZ.js";
22
- import { a as ze, B as Ke, u as He, b as qe, c as We } from "./chunks/country.types.Br0AjxGy.js";
23
- import { c as Je, B as Qe } from "./chunks/currency.P7Psn_SK.js";
24
- import { B as $e, a as et } from "./chunks/date.BQ29-2L1.js";
20
+ import { c as Ae, b as Ne, a as Re, B as _e } from "./chunks/code-snippet.5iJcUZSo.js";
21
+ import { c as je } from "./chunks/country.Bft91V1L.js";
22
+ import { a as ze, B as Ke, u as He, b as qe, c as We } from "./chunks/country.types.pilf5B3F.js";
23
+ import { c as Je, B as Qe } from "./chunks/currency.BmI4Sqy5.js";
24
+ import { B as $e, a as et } from "./chunks/date.1zs9CRhw.js";
25
25
  import { B as ot } from "./chunks/divider.BZfeYmB9.js";
26
- import { B as nt, b as rt, c as st, a as Bt } from "./chunks/empty-state.B8ZeRgDi.js";
27
- import { f as mt } from "./chunks/file-uploader.ItCr8Ezn.js";
28
- import { B as dt, b as lt, a as ut, c as ct } from "./chunks/filter-bar.Dowrph-Z.js";
29
- import { f as xt, a as St, c as Tt, b as yt } from "./chunks/form-layout-title.BarHgyjC.js";
26
+ import { B as nt, b as rt, c as st, a as Bt } from "./chunks/empty-state.1TyzB5ju.js";
27
+ import { f as mt } from "./chunks/file-uploader.C6kcnhqp.js";
28
+ import { B as dt, b as lt, a as ut, c as ct } from "./chunks/filter-bar.DT_-lVmf.js";
29
+ import { f as xt, a as St, c as Tt, b as yt } from "./chunks/form-layout-title.DN0jonFa.js";
30
30
  import { B as bt, a as ht, b as Et } from "./chunks/image.C2D2hKat.js";
31
- import { B as Dt } from "./chunks/info-icon.p-28zHUJ.js";
32
- import { B as It, b as Lt, e as Pt, c as Ft, d as Gt, a as Ot } from "./chunks/input-field.CcjqGkLs.js";
33
- import { i as wt, m as Mt, r as Vt, b as At, c as Nt, a as Rt } from "./chunks/input-field-password.CgxF9jhq.js";
34
- import { i as Yt, B as jt } from "./chunks/inspector.types.DaY6OOzz.js";
35
- import { l as zt, a as Kt } from "./chunks/layout-row.DzS_XyyF.js";
31
+ import { B as Dt } from "./chunks/info-icon.0d0GzDe2.js";
32
+ import { B as It, b as Lt, e as Pt, c as Ft, d as Gt, a as Ot } from "./chunks/input-field.D6N2kt7s.js";
33
+ import { i as wt, m as Mt, r as Vt, b as At, c as Nt, a as Rt } from "./chunks/input-field-password.HRDEb0jL.js";
34
+ import { i as Yt, B as jt } from "./chunks/inspector.types.2YEArjPi.js";
35
+ import { l as zt, a as Kt } from "./chunks/layout-row.BfS-cPky.js";
36
36
  import { B as qt, a as Wt } from "./chunks/loading-indicator.z8COalOc.js";
37
- import { B as Jt, a as Qt } from "./chunks/link.v-y0fKjn.js";
38
- import { B as $t, a as eo } from "./chunks/menu.B78fzH_k.js";
39
- import { d as oo, f as ao, g as no, B as ro, e as so, c as Bo, a as io, b as mo } from "./chunks/base-modal.BrqNR-ah.js";
40
- import { B as lo } from "./chunks/modal.BA745pfv.js";
41
- import { m as co, B as fo } from "./chunks/modal-fullscreen.DgftXCJe.js";
42
- import { B as So } from "./chunks/header.BLjdXtYJ.js";
43
- import { B as yo } from "./chunks/pagination.CfwtuZ7R.js";
44
- import { B as bo } from "./chunks/payment-method.CoXB0ZAW.js";
37
+ import { B as Jt, a as Qt } from "./chunks/link.UOEUR35A.js";
38
+ import { B as $t, a as eo } from "./chunks/menu.CLaN9Eys.js";
39
+ import { d as oo, f as ao, g as no, B as ro, e as so, c as Bo, a as io, b as mo } from "./chunks/base-modal.4JSNBM4T.js";
40
+ import { B as lo } from "./chunks/modal.wU3uUJKq.js";
41
+ import { m as co, B as fo } from "./chunks/modal-fullscreen.B-qr1Szh.js";
42
+ import { B as So } from "./chunks/header.BvZxtIOD.js";
43
+ import { B as yo } from "./chunks/pagination.BM3FhtxJ.js";
44
+ import { B as bo } from "./chunks/payment-method.UaERFtej.js";
45
45
  import { B as Eo } from "./chunks/payment-method.types.CJKfZQN5.js";
46
- import { B as Do, a as vo } from "./chunks/popover.ZlmaSYms.js";
47
- import { p as Lo, B as Po, a as Fo } from "./chunks/promo-banner.cTUF9seG.js";
48
- import { b as Oo, B as ko, a as wo } from "./chunks/radio-group.EnMXbuly.js";
49
- import { B as Vo, b as Ao, a as No } from "./chunks/search-bar.lYuXPzBX.js";
50
- import { s as _o } from "./chunks/secondary-nav.CF6WPYn4.js";
51
- import { B as jo, s as Uo, a as zo } from "./chunks/selection-card-group.CjuBQ2UA.js";
52
- import { B as Ho } from "./chunks/segmented-control.CVeUROYR.js";
46
+ import { B as Do, a as vo } from "./chunks/popover.DsUymZWJ.js";
47
+ import { p as Lo, B as Po, a as Fo } from "./chunks/promo-banner.BXtIM4C9.js";
48
+ import { b as Oo, B as ko, a as wo } from "./chunks/radio-group.DMob8x2J.js";
49
+ import { B as Vo, b as Ao, a as No } from "./chunks/search-bar.rubkdbcD.js";
50
+ import { s as _o } from "./chunks/secondary-nav.DKSjc5bn.js";
51
+ import { B as jo, s as Uo, a as zo } from "./chunks/selection-card-group.iYyZ9yX4.js";
52
+ import { B as Ho } from "./chunks/segmented-control.DL0W7lJ_.js";
53
53
  import { B as Wo } from "./chunks/segmented-control.types.BHRLV8KU.js";
54
- import { a as Jo, B as Qo, s as Xo } from "./chunks/sidepanel.NUx7L5f1.js";
55
- import { s as ea, B as ta } from "./chunks/status.types.B0jtv0c7.js";
56
- import { a as aa, s as na, B as ra, b as sa } from "./chunks/step.5g9BIi15.js";
57
- import { B as ia, a as ma } from "./chunks/structured-list-item.BEhWyaVP.js";
58
- import { s as da, a as la, e as ua, b as ca, c as fa, B as xa, d as Sa, f as Ta } from "./chunks/summary-grid-item-custom.CSXo4NjY.js";
59
- import { B as ga, a as ba } from "./chunks/tabs.Casntai-.js";
60
- import { B as Ea, a as Ca } from "./chunks/tag.wTXg-O7i.js";
61
- import { B as va } from "./chunks/textarea.F-JyRtIw.js";
62
- import { t as La, b as Pa, a as Fa, c as Ga, B as Oa, d as ka } from "./chunks/timeline-item.BJyB8-Wv.js";
63
- import { t as Ma } from "./chunks/toast.BEipTIrz.js";
64
- import { B as Aa, b as Na, a as Ra } from "./chunks/toggle.INRYdQzz.js";
65
- import { t as Ya } from "./chunks/tutorial.DFvMZAN5.js";
66
- import { a as Ua, d as za } from "./chunks/dashboard-section._KVy37B0.js";
67
- import { d as Ha } from "./chunks/data-grid-template.BgTUIoak.js";
68
- import { B as Wa, c as Za, a as Ja, b as Qa, d as Xa, e as $a } from "./chunks/button-actions.BIQ3qA8q.js";
69
- import { B as tn } from "./chunks/toggle-button.CYplDIO-.js";
70
- import { C as an, C as nn } from "./chunks/calendar.B9WZ8ub3.js";
71
- import { a as sn, B as Bn, a as mn, B as pn } from "./chunks/use-cached-selected-values.BiqVX5O7.js";
72
- import { d as ln, a as un, b as cn, c as fn, e as xn } from "./chunks/dropdown-tag.Ntdp7P7W.js";
54
+ import { a as Jo, B as Qo, s as Xo } from "./chunks/sidepanel.CQnLpV8A.js";
55
+ import { s as ea, B as ta } from "./chunks/status.types.Cv6hHRMu.js";
56
+ import { a as aa, s as na, B as ra, b as sa } from "./chunks/step.BsIdWhaZ.js";
57
+ import { B as ia, a as ma } from "./chunks/structured-list-item.BhBbmkbw.js";
58
+ import { s as da, a as la, e as ua, b as ca, c as fa, B as xa, d as Sa, f as Ta } from "./chunks/summary-grid-item-custom.CicAOBVQ.js";
59
+ import { B as ga, a as ba } from "./chunks/tabs.9kObZry9.js";
60
+ import { B as Ea, a as Ca } from "./chunks/tag.-YNhsBv7.js";
61
+ import { B as va } from "./chunks/textarea.Cf21WMwL.js";
62
+ import { t as La, b as Pa, a as Fa, c as Ga, B as Oa, d as ka } from "./chunks/timeline-item.Cu5b-Mqj.js";
63
+ import { t as Ma } from "./chunks/toast.DgJbW9CL.js";
64
+ import { B as Aa, b as Na, a as Ra } from "./chunks/toggle.CnS7qszG.js";
65
+ import { t as Ya } from "./chunks/tutorial.w2ZqeOh1.js";
66
+ import { a as Ua, d as za } from "./chunks/dashboard-section.DYXZhtop.js";
67
+ import { d as Ha } from "./chunks/data-grid-template.Du92TEFY.js";
68
+ import { B as Wa, c as Za, a as Ja, b as Qa, d as Xa, e as $a } from "./chunks/button-actions.CtFB6iRj.js";
69
+ import { B as tn } from "./chunks/toggle-button.Cf8C7p6e.js";
70
+ import { C as an, C as nn } from "./chunks/calendar.BouORZfb.js";
71
+ import { a as sn, B as Bn, a as mn, B as pn } from "./chunks/use-cached-selected-values.impKjAIS.js";
72
+ import { d as ln, a as un, b as cn, c as fn, e as xn } from "./chunks/dropdown-tag.XIlES6IT.js";
73
73
  import { C as Tn } from "./chunks/checkbox-input.Bo4NxNOh.js";
74
- import { c as gn, B as bn } from "./chunks/checkbox-group.Bcqac3y8.js";
75
- import { R as En } from "./chunks/radio-input.q980f8Uf.js";
74
+ import { c as gn, B as bn } from "./chunks/checkbox-group.DbLznnsa.js";
75
+ import { R as En } from "./chunks/radio-input.C1DZbkcT.js";
76
76
  import { shallowRef as b, ref as u, getCurrentInstance as h } from "vue";
77
77
  import * as s from "zod";
78
78
  import { u as Dn } from "./chunks/teleport.B5fwsT5y.js";
79
79
  import { D as In } from "./chunks/date-input.BqBdAO1E.js";
80
80
  import { a as Pn, B as Fn } from "./chunks/keyboard-navigation.Clz1jOaA.js";
81
81
  import { B as On } from "./chunks/directive.O3yEdalv.js";
82
- import { B as wn, a as Mn, b as Vn } from "./chunks/tooltip.DH8TqpYV.js";
82
+ import { B as wn, a as Mn, b as Vn } from "./chunks/tooltip.R2sqydIE.js";
83
83
  function O(e) {
84
84
  return e;
85
85
  }
@@ -129,7 +129,7 @@ function w() {
129
129
  });
130
130
  }
131
131
  const C = (e) => {
132
- e.prototype[T] = y();
132
+ e.prototype[y] = T();
133
133
  }, f = () => {
134
134
  var e;
135
135
  return ((e = document.body.className.match(/b-\w+-theme/)) == null ? void 0 : e[0]) ?? "";
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/composables/use-form-validate/use-form.ts","../src/composables/use-bento-theme/use-bento-theme.types.ts","../src/composables/use-bento-theme/use-bento-theme.ts","../src/composables/use-bento-toast-controller/install.ts","../src/composables/use-bento-theme/install.ts","../src/install.ts"],"sourcesContent":["import { type Ref, ref, shallowRef } from 'vue';\nimport * as z from 'zod';\nimport type { ZodSchema } from 'zod';\nimport { allKeys, ErrorBag, 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 * @param {T extends ZodSchema} formSchema Zod schema to be transformed into a `vee-validate` schema\n * @returns {UseForm<T>} schema 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 {ZodSchema} 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 * @param {UseForm<T>} props Form configuration object\n * @param {T extends ZodSchema} props.validationSchema Zod typed validation schema\n * @returns {Object} response - Composable with reactive form values and errors, and functions to handle the reactive data\n * @returns {Ref<ErrorBag<T>>} response.errorBag Object with all the form values and an array of each one of the errors (if any) per value\n * @returns {Ref<T>} response.errors Object with all the form values and the first error found for that field (if any)\n * @returns {Ref<T>} response.values Object with all the form values and their current value\n * @returns {() => void} response.handleReset Resets the form values to default (initial values) when it gets called\n * @returns {(callback: (values: T) => void) => () => void} 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 { 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 { 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","_a","getCurrentInstance","printDevelopmentWarning","installToast","Vue","toastStackInjectionKey","createToastStack","getTheme","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":["../src/composables/use-form-validate/use-form.ts","../src/composables/use-bento-theme/use-bento-theme.types.ts","../src/composables/use-bento-theme/use-bento-theme.ts","../src/composables/use-bento-toast-controller/install.ts","../src/composables/use-bento-theme/install.ts","../src/install.ts"],"sourcesContent":["import { type Ref, ref, shallowRef } from 'vue';\nimport * as z from 'zod';\nimport type { ZodSchema } from 'zod';\nimport { allKeys, ErrorBag, 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 * @param {T extends ZodSchema} formSchema Zod schema to be transformed into a `vee-validate` schema\n * @returns {UseForm<T>} schema 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 {ZodSchema} 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 * @param {UseForm<T>} props Form configuration object\n * @param {T extends ZodSchema} props.validationSchema Zod typed validation schema\n * @returns {Object} response - Composable with reactive form values and errors, and functions to handle the reactive data\n * @returns {Ref<ErrorBag<T>>} response.errorBag Object with all the form values and an array of each one of the errors (if any) per value\n * @returns {Ref<T>} response.errors Object with all the form values and the first error found for that field (if any)\n * @returns {Ref<T>} response.values Object with all the form values and their current value\n * @returns {() => void} response.handleReset Resets the form values to default (initial values) when it gets called\n * @returns {(callback: (values: T) => void) => () => void} 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 { 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 { 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","_a","getCurrentInstance","printDevelopmentWarning","installToast","Vue","toastStackInjectionKey","createToastStack","getTheme","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.p-28zHUJ.js";
1
+ import { B as e } from "./chunks/info-icon.0d0GzDe2.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.CgxF9jhq.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.HRDEb0jL.js";
2
2
  export {
3
3
  a as BentoInputFieldPassword,
4
4
  s as minLength,
@@ -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.CcjqGkLs.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.D6N2kt7s.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 { i as t, B as n } from "./chunks/inspector.types.DaY6OOzz.js";
1
+ import { i as t, B as n } from "./chunks/inspector.types.2YEArjPi.js";
2
2
  export {
3
3
  t as BentoInspector,
4
4
  n as BentoInspectorSizeOptions
package/dist/internal.js CHANGED
@@ -1,39 +1,41 @@
1
- import { a as e, b as r, C as t } from "./chunks/calendar.B9WZ8ub3.js";
2
- import { C as p, a as i } from "./chunks/copy.DgzxvExj.js";
3
- import { C } from "./chunks/controls-group.J8shO_JL.js";
4
- import { B as x, b as E, a as f, D as m } from "./chunks/dialog-page.CplkzZGZ.js";
5
- import { E as _, F as I } from "./chunks/error-message.B7uoqQpq.js";
6
- import { F as G } from "./chunks/fixed-scroller.B880PL1J.js";
1
+ import { a as e, b as r, C as t } from "./chunks/calendar.BouORZfb.js";
2
+ import { C as p, a as i } from "./chunks/copy.DN0tClPm.js";
3
+ import { C as f } from "./chunks/controls-group.CnXzOQkX.js";
4
+ import { B as x, b as C, a as I, D as m } from "./chunks/dialog-page.DcJ7LaOE.js";
5
+ import { E as T, F as _ } from "./chunks/error-message.Ccc1sTTp.js";
6
+ import { F as G } from "./chunks/fixed-scroller.IPM3AzHS.js";
7
7
  import { G as u, a as d } from "./chunks/grid-layout.HvTAa4to.js";
8
- import { b as L, c as B, u as b } from "./chunks/use-cached-selected-values.BiqVX5O7.js";
9
- import { L as y } from "./chunks/listbox-option-tag.BnX0H4HE.js";
10
- import { B as F } from "./chunks/teleport.B5fwsT5y.js";
11
- import { T as P } from "./chunks/tooltip.DH8TqpYV.js";
12
- import { B as M } from "./chunks/button-actions-with-menu.ptKgeQEb.js";
13
- import { f as K } from "./chunks/button-actions.BIQ3qA8q.js";
8
+ import { I as L } from "./chunks/info-icon-with-popover.DEjsASNU.js";
9
+ import { b, c, u as g } from "./chunks/use-cached-selected-values.impKjAIS.js";
10
+ import { L as D } from "./chunks/listbox-option-tag.Co0ycEdQ.js";
11
+ import { B as P } from "./chunks/teleport.B5fwsT5y.js";
12
+ import { T as M } from "./chunks/tooltip.R2sqydIE.js";
13
+ import { B as h } from "./chunks/button-actions-with-menu.ieopdfI7.js";
14
+ import { f as J } from "./chunks/button-actions.CtFB6iRj.js";
14
15
  export {
15
- K as BUTTON_ACTIONS_WITH_MENU_CONTAINER_INJECTION_KEY,
16
+ J as BUTTON_ACTIONS_WITH_MENU_CONTAINER_INJECTION_KEY,
16
17
  x as BentoDialogPageAnimation,
17
- L as BentoListbox,
18
- F as BentoTeleport,
19
- M as ButtonActionsWithMenu,
18
+ b as BentoListbox,
19
+ P as BentoTeleport,
20
+ h as ButtonActionsWithMenu,
20
21
  e as Calendar,
21
22
  r as CalendarEvent,
22
23
  t as CalendarFirstDayOfWeek,
23
- C as ControlsGroup,
24
+ f as ControlsGroup,
24
25
  p as Copy,
25
26
  i as CopyTooltipState,
26
- E as DIALOG_PAGE_CONFIG_INJECTION_KEY,
27
- f as DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY,
27
+ C as DIALOG_PAGE_CONFIG_INJECTION_KEY,
28
+ I as DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY,
28
29
  m as DialogPage,
29
- _ as ErrorMessage,
30
- I as FieldLabel,
30
+ T as ErrorMessage,
31
+ _ as FieldLabel,
31
32
  G as FixedScroller,
32
33
  u as GridLayout,
33
34
  d as GridLayoutContainerType,
34
- y as ListboxOptionTag,
35
- P as Tooltip,
36
- B as useCachedSelectedValues,
37
- b as useMultiLevelItems
35
+ L as InfoIconWithPopover,
36
+ D as ListboxOptionTag,
37
+ M as Tooltip,
38
+ c as useCachedSelectedValues,
39
+ g as useMultiLevelItems
38
40
  };
39
41
  //# sourceMappingURL=internal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"internal.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
1
+ {"version":3,"file":"internal.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
package/dist/layout.js CHANGED
@@ -1,4 +1,4 @@
1
- import { l as t, a as e } from "./chunks/layout-row.DzS_XyyF.js";
1
+ import { l as t, a as e } from "./chunks/layout-row.BfS-cPky.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.v-y0fKjn.js";
1
+ import { B as o, a as t } from "./chunks/link.UOEUR35A.js";
2
2
  export {
3
3
  o as BentoLink,
4
4
  t as BentoLinkVariant
package/dist/menu.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as o, a as t } from "./chunks/menu.B78fzH_k.js";
1
+ import { B as o, a as t } from "./chunks/menu.CLaN9Eys.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.DgftXCJe.js";
1
+ import { m as o, B as a } from "./chunks/modal-fullscreen.B-qr1Szh.js";
2
2
  export {
3
3
  o as BentoModalFullscreen,
4
4
  a as BentoModalFullscreenPage
package/dist/modal.js CHANGED
@@ -1,5 +1,5 @@
1
- import { d as e, f as t, g as n, B as l, e as B, c as d, a as M, b as s } from "./chunks/base-modal.BrqNR-ah.js";
2
- import { B as i } from "./chunks/modal.BA745pfv.js";
1
+ import { d as e, f as t, g as n, B as l, e as B, c as d, a as M, b as s } from "./chunks/base-modal.4JSNBM4T.js";
2
+ import { B as i } from "./chunks/modal.wU3uUJKq.js";
3
3
  export {
4
4
  i as BentoModal,
5
5
  e as BentoModalColumnLayoutVariant,
@@ -1,4 +1,4 @@
1
- import { B as n } from "./chunks/pagination.CfwtuZ7R.js";
1
+ import { B as n } from "./chunks/pagination.BM3FhtxJ.js";
2
2
  export {
3
3
  n as BentoPagination
4
4
  };
@@ -1,4 +1,4 @@
1
- import { B as t } from "./chunks/payment-method.CoXB0ZAW.js";
1
+ import { B as t } from "./chunks/payment-method.UaERFtej.js";
2
2
  import { B as m } from "./chunks/payment-method.types.CJKfZQN5.js";
3
3
  export {
4
4
  t as BentoPaymentMethod,
package/dist/popover.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as r, a as s } from "./chunks/popover.ZlmaSYms.js";
1
+ import { B as r, a as s } from "./chunks/popover.DsUymZWJ.js";
2
2
  export {
3
3
  r as BentoPopover,
4
4
  s as BentoPopoverPositions
@@ -1,4 +1,4 @@
1
- import { P as n, c as a, d as i, a as r, b as p } from "./chunks/popper-container.CnWphJTN.js";
1
+ import { P as n, c as a, d as i, a as r, b as p } from "./chunks/popper-container.B1iB2ovW.js";
2
2
  export {
3
3
  n as PopperContainer,
4
4
  a as PopperContainerAriaRole,
@@ -1,4 +1,4 @@
1
- import { p as r, B as a, a as e } from "./chunks/promo-banner.cTUF9seG.js";
1
+ import { p as r, B as a, a as e } from "./chunks/promo-banner.BXtIM4C9.js";
2
2
  export {
3
3
  r as BentoPromoBanner,
4
4
  a as BentoPromoBannerColor,
@@ -1,5 +1,5 @@
1
- import { b as t, B as e, a as n } from "./chunks/radio-group.EnMXbuly.js";
2
- import { R as B } from "./chunks/radio-input.q980f8Uf.js";
1
+ import { b as t, B as e, a as n } from "./chunks/radio-group.DMob8x2J.js";
2
+ import { R as B } from "./chunks/radio-input.C1DZbkcT.js";
3
3
  export {
4
4
  t as BentoRadioButton,
5
5
  B as BentoRadioButtonStateClass,
@@ -1,5 +1,5 @@
1
- import { B as r, b as t, a as B } from "./chunks/search-bar.lYuXPzBX.js";
2
- import { u as o } from "./chunks/dropdown.DC9un4VJ.js";
1
+ import { B as r, b as t, a as B } from "./chunks/search-bar.rubkdbcD.js";
2
+ import { u as o } from "./chunks/dropdown.BqsoncJr.js";
3
3
  export {
4
4
  r as BentoSearchBar,
5
5
  t as BentoSearchBarEvent,
@@ -1,4 +1,4 @@
1
- import { s as e } from "./chunks/secondary-nav.CF6WPYn4.js";
1
+ import { s as e } from "./chunks/secondary-nav.DKSjc5bn.js";
2
2
  export {
3
3
  e as BentoSecondaryNav
4
4
  };
@@ -1,4 +1,4 @@
1
- import { B as t } from "./chunks/segmented-control.CVeUROYR.js";
1
+ import { B as t } from "./chunks/segmented-control.DL0W7lJ_.js";
2
2
  import { B as r } from "./chunks/segmented-control.types.BHRLV8KU.js";
3
3
  export {
4
4
  t as BentoSegmentedControl,
@@ -1,4 +1,4 @@
1
- import { B as t, s as a, a as n } from "./chunks/selection-card-group.CjuBQ2UA.js";
1
+ import { B as t, s as a, a as n } from "./chunks/selection-card-group.iYyZ9yX4.js";
2
2
  export {
3
3
  t as BentoSelectionCard,
4
4
  a as BentoSelectionCardGroup,
package/dist/sidepanel.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as n, B as o, s as t } from "./chunks/sidepanel.NUx7L5f1.js";
1
+ import { a as n, B as o, s as t } from "./chunks/sidepanel.CQnLpV8A.js";
2
2
  export {
3
3
  n as BentoSidepanel,
4
4
  o as BentoSidepanelEvent,
package/dist/status.js CHANGED
@@ -1,4 +1,4 @@
1
- import { s, B as o } from "./chunks/status.types.B0jtv0c7.js";
1
+ import { s, B as o } from "./chunks/status.types.Cv6hHRMu.js";
2
2
  export {
3
3
  s as BentoStatus,
4
4
  o as BentoStatusVariant
package/dist/stepper.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as p, s as o, B as a, b as n } from "./chunks/step.5g9BIi15.js";
1
+ import { a as p, s as o, B as a, b as n } from "./chunks/step.BsIdWhaZ.js";
2
2
  export {
3
3
  p as BentoStep,
4
4
  o as BentoStepper,
@@ -1,4 +1,4 @@
1
- import { B as r, a as o } from "./chunks/structured-list-item.BEhWyaVP.js";
1
+ import { B as r, a as o } from "./chunks/structured-list-item.BhBbmkbw.js";
2
2
  export {
3
3
  r as BentoStructuredList,
4
4
  o as BentoStructuredListItem
@@ -1,4 +1,4 @@
1
- import { s as r, a as t, e as a, b as o, c as i, B as n, d as u, f as d } from "./chunks/summary-grid-item-custom.CSXo4NjY.js";
1
+ import { s as r, a as t, e as a, b as o, c as i, B as n, d as u, f as d } from "./chunks/summary-grid-item-custom.CicAOBVQ.js";
2
2
  export {
3
3
  r as BentoSummaryGrid,
4
4
  t as BentoSummaryGridItemAmount,
package/dist/tabs.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as e, a as s } from "./chunks/tabs.Casntai-.js";
1
+ import { B as e, a as s } from "./chunks/tabs.9kObZry9.js";
2
2
  export {
3
3
  e as BentoTab,
4
4
  s as BentoTabs
package/dist/tag.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as t, a as e } from "./chunks/tag.wTXg-O7i.js";
1
+ import { B as t, a as e } from "./chunks/tag.-YNhsBv7.js";
2
2
  export {
3
3
  t as BentoTag,
4
4
  e as BentoTagVariant
package/dist/textarea.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as o } from "./chunks/textarea.F-JyRtIw.js";
1
+ import { B as o } from "./chunks/textarea.Cf21WMwL.js";
2
2
  export {
3
3
  o as BentoTextarea
4
4
  };
package/dist/timeline.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t, b as i, a, c as m, B as o, d as l } from "./chunks/timeline-item.BJyB8-Wv.js";
1
+ import { t, b as i, a, c as m, B as o, d as l } from "./chunks/timeline-item.Cu5b-Mqj.js";
2
2
  export {
3
3
  t as BentoTimeline,
4
4
  i as BentoTimelineGapUnit,
package/dist/toast.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as a } from "./chunks/toast.BEipTIrz.js";
1
+ import { t as a } from "./chunks/toast.DgJbW9CL.js";
2
2
  export {
3
3
  a as BentoToast
4
4
  };
package/dist/toggle.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as a, b as g, a as s } from "./chunks/toggle.INRYdQzz.js";
1
+ import { B as a, b as g, a as s } from "./chunks/toggle.CnS7qszG.js";
2
2
  export {
3
3
  a as BentoToggle,
4
4
  g as BentoToggleLabelPosition,
package/dist/tutorial.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as r } from "./chunks/tutorial.DFvMZAN5.js";
1
+ import { t as r } from "./chunks/tutorial.w2ZqeOh1.js";
2
2
  export {
3
3
  r as BentoTutorial
4
4
  };
@@ -1,4 +1,4 @@
1
- import { B as p, c as e, b as r, a as y } from "./chunks/typography.Bu_WAKdf.js";
1
+ import { B as p, c as e, b as r, a as y } from "./chunks/typography.J1v_SPG3.js";
2
2
  export {
3
3
  p as BentoTypography,
4
4
  e as BentoTypographyElement,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "@adyen/bento-vue2",
4
- "version": "1.44.0",
4
+ "version": "1.45.0",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",
@@ -8092,7 +8092,7 @@
8092
8092
  }
8093
8093
  ],
8094
8094
  "source": {
8095
- "module": "./src/components/header/components/info-icon-with-popover/info-icon-with-popover.vue",
8095
+ "module": "./src/components/internal/info-icon-with-popover/info-icon-with-popover.vue",
8096
8096
  "symbol": "default"
8097
8097
  }
8098
8098
  },