@adyen/bento-vue2 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 (301) hide show
  1. package/README.md +43 -97
  2. package/dist/@types/index.d.ts +245 -823
  3. package/dist/accordion.js +1 -1
  4. package/dist/action-bar.js +1 -1
  5. package/dist/alert.js +1 -1
  6. package/dist/assets/accordion-item.css +1 -1
  7. package/dist/assets/action-bar.css +1 -1
  8. package/dist/assets/alert.css +1 -1
  9. package/dist/assets/base-modal.css +1 -1
  10. package/dist/assets/button.css +1 -1
  11. package/dist/assets/calendar.css +1 -1
  12. package/dist/assets/card.css +1 -1
  13. package/dist/assets/checkbox-group.css +1 -1
  14. package/dist/assets/checkbox-input.css +1 -1
  15. package/dist/assets/checkbox.css +1 -1
  16. package/dist/assets/code-snippet.css +1 -1
  17. package/dist/assets/controls-group.css +1 -1
  18. package/dist/assets/data-grid.css +1 -1
  19. package/dist/assets/date-picker.css +1 -1
  20. package/dist/assets/date-range-picker.css +1 -1
  21. package/dist/assets/dialog-page.css +1 -1
  22. package/dist/assets/dropdown-tag.css +1 -1
  23. package/dist/assets/dropdown.css +1 -1
  24. package/dist/assets/error-message.css +1 -1
  25. package/dist/assets/file-uploader.css +1 -1
  26. package/dist/assets/filter-bar.css +1 -1
  27. package/dist/assets/header-with-views.css +1 -1
  28. package/dist/assets/info-icon.css +1 -1
  29. package/dist/assets/input-field-phone-number.css +1 -1
  30. package/dist/assets/inspector.css +1 -1
  31. package/dist/assets/loading-indicator.css +1 -1
  32. package/dist/assets/modal-fullscreen.css +1 -1
  33. package/dist/assets/pagination.css +1 -1
  34. package/dist/assets/popper-container.css +1 -1
  35. package/dist/assets/radio-group.css +1 -1
  36. package/dist/assets/radio-input.css +1 -1
  37. package/dist/assets/sidepanel.css +1 -1
  38. package/dist/assets/tab.css +1 -1
  39. package/dist/assets/tag.css +1 -1
  40. package/dist/assets/timeline-item.css +1 -1
  41. package/dist/assets/toggle-button.css +1 -1
  42. package/dist/assets/toggle.css +1 -1
  43. package/dist/assets/tooltip.css +1 -1
  44. package/dist/assets/typography.css +1 -1
  45. package/dist/assets/use-cached-selected-values.css +1 -1
  46. package/dist/avatar.js +1 -1
  47. package/dist/button.js +2 -2
  48. package/dist/card.js +1 -1
  49. package/dist/checkbox.js +2 -2
  50. package/dist/chip.js +1 -1
  51. package/dist/chunks/{accordion-item.NSQ50RyR.js → accordion-item.CoqaoVnC.js} +2 -2
  52. package/dist/chunks/{accordion-item.NSQ50RyR.js.map → accordion-item.CoqaoVnC.js.map} +1 -1
  53. package/dist/chunks/{action-bar.Dhi6k0CP.js → action-bar.LaW4Tzlo.js} +5 -5
  54. package/dist/chunks/{action-bar.Dhi6k0CP.js.map → action-bar.LaW4Tzlo.js.map} +1 -1
  55. package/dist/chunks/{alert.Dx9P_L2k.js → alert.CMyL-zWT.js} +17 -17
  56. package/dist/chunks/alert.CMyL-zWT.js.map +1 -0
  57. package/dist/chunks/{avatar.CWmZ2n1W.js → avatar.KdcsNOsm.js} +2 -2
  58. package/dist/chunks/{avatar.CWmZ2n1W.js.map → avatar.KdcsNOsm.js.map} +1 -1
  59. package/dist/chunks/{base-button.BPZ_qSAu.js → base-button.BB5tkzjh.js} +2 -2
  60. package/dist/chunks/{base-button.BPZ_qSAu.js.map → base-button.BB5tkzjh.js.map} +1 -1
  61. package/dist/chunks/{base-modal.Cehud1uW.js → base-modal.D8Rh5NUz.js} +6 -6
  62. package/dist/chunks/{base-modal.Cehud1uW.js.map → base-modal.D8Rh5NUz.js.map} +1 -1
  63. package/dist/chunks/bin.Ddb69cr1.js +24 -0
  64. package/dist/chunks/bin.Ddb69cr1.js.map +1 -0
  65. package/dist/chunks/{button-actions-with-menu.DIpUg6BF.js → button-actions-with-menu.BDpWI2Fh.js} +2 -2
  66. package/dist/chunks/{button-actions-with-menu.DIpUg6BF.js.map → button-actions-with-menu.BDpWI2Fh.js.map} +1 -1
  67. package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
  68. package/dist/chunks/{button.B0hSQWOR.js → button.CilT7NmM.js} +4 -4
  69. package/dist/chunks/{button.B0hSQWOR.js.map → button.CilT7NmM.js.map} +1 -1
  70. package/dist/chunks/{calendar.BuAVH2aU.js → calendar.DYI4omOF.js} +22 -22
  71. package/dist/chunks/{calendar.BuAVH2aU.js.map → calendar.DYI4omOF.js.map} +1 -1
  72. package/dist/chunks/{card.DLRC9V0Q.js → card.C5Uub0Fb.js} +4 -4
  73. package/dist/chunks/{card.DLRC9V0Q.js.map → card.C5Uub0Fb.js.map} +1 -1
  74. package/dist/chunks/{checkbox-group.Cdt2Ik2_.js → checkbox-group.CLYgcDZl.js} +6 -6
  75. package/dist/chunks/{checkbox-group.Cdt2Ik2_.js.map → checkbox-group.CLYgcDZl.js.map} +1 -1
  76. package/dist/chunks/{checkbox-input.C9vmlMZe.js → checkbox-input.B0NsfSNR.js} +7 -7
  77. package/dist/chunks/{checkbox-input.C9vmlMZe.js.map → checkbox-input.B0NsfSNR.js.map} +1 -1
  78. package/dist/chunks/{checkbox.JhfbjDfJ.js → checkbox.lwLS8MMI.js} +6 -6
  79. package/dist/chunks/{checkbox.JhfbjDfJ.js.map → checkbox.lwLS8MMI.js.map} +1 -1
  80. package/dist/chunks/{chip.Cn68PNxA.js → chip.Bfi-ff5E.js} +3 -3
  81. package/dist/chunks/{chip.Cn68PNxA.js.map → chip.Bfi-ff5E.js.map} +1 -1
  82. package/dist/chunks/{code-snippet.hYghglvk.js → code-snippet.DsHNr3DK.js} +7 -7
  83. package/dist/chunks/{code-snippet.hYghglvk.js.map → code-snippet.DsHNr3DK.js.map} +1 -1
  84. package/dist/chunks/{controls-group.B1cxRdIA.js → controls-group.az4jCZQF.js} +30 -27
  85. package/dist/chunks/controls-group.az4jCZQF.js.map +1 -0
  86. package/dist/chunks/{copy.UbMV4m6b.js → copy.Cb7gQhU4.js} +5 -5
  87. package/dist/chunks/{copy.UbMV4m6b.js.map → copy.Cb7gQhU4.js.map} +1 -1
  88. package/dist/chunks/{country.CZQYhKpE.js → country.1yIZNjdj.js} +3 -3
  89. package/dist/chunks/{country.CZQYhKpE.js.map → country.1yIZNjdj.js.map} +1 -1
  90. package/dist/chunks/{currency.Oq7zcRM5.js → currency.MT3baDtO.js} +2 -2
  91. package/dist/chunks/{currency.Oq7zcRM5.js.map → currency.MT3baDtO.js.map} +1 -1
  92. package/dist/chunks/{dashboard-section.BRnRO3AZ.js → dashboard-section.C6zV9yL-.js} +3 -3
  93. package/dist/chunks/{dashboard-section.BRnRO3AZ.js.map → dashboard-section.C6zV9yL-.js.map} +1 -1
  94. package/dist/chunks/{dashed-underline.BN_whJrR.js → dashed-underline.Dry6H2zs.js} +4 -4
  95. package/dist/chunks/{dashed-underline.BN_whJrR.js.map → dashed-underline.Dry6H2zs.js.map} +1 -1
  96. package/dist/chunks/{data-grid-template.BlRKgkX6.js → data-grid-template.Dlevchxd.js} +4 -4
  97. package/dist/chunks/{data-grid-template.BlRKgkX6.js.map → data-grid-template.Dlevchxd.js.map} +1 -1
  98. package/dist/chunks/{data-grid.B0bOXr4p.js → data-grid.CrvFYgjF.js} +175 -175
  99. package/dist/chunks/data-grid.CrvFYgjF.js.map +1 -0
  100. package/dist/chunks/{date-picker.Dyf6HJwP.js → date-picker.DPasFJS2.js} +6 -6
  101. package/dist/chunks/{date-picker.Dyf6HJwP.js.map → date-picker.DPasFJS2.js.map} +1 -1
  102. package/dist/chunks/{date-range-picker.-FSh7RLm.js → date-range-picker.BIj17geh.js} +9 -9
  103. package/dist/chunks/{date-range-picker.-FSh7RLm.js.map → date-range-picker.BIj17geh.js.map} +1 -1
  104. package/dist/chunks/{date.w2Ya6_lp.js → date.BTdCYdkj.js} +2 -2
  105. package/dist/chunks/{date.w2Ya6_lp.js.map → date.BTdCYdkj.js.map} +1 -1
  106. package/dist/chunks/{dialog-page.CdJloGXQ.js → dialog-page.D20YBRQF.js} +3 -3
  107. package/dist/chunks/{dialog-page.CdJloGXQ.js.map → dialog-page.D20YBRQF.js.map} +1 -1
  108. package/dist/chunks/{dropdown-default-textbox.DzpZoK-P.js → dropdown-default-textbox.CDm-PQfc.js} +2 -2
  109. package/dist/chunks/{dropdown-default-textbox.DzpZoK-P.js.map → dropdown-default-textbox.CDm-PQfc.js.map} +1 -1
  110. package/dist/chunks/dropdown-tag.cmaM8C2X.js +306 -0
  111. package/dist/chunks/dropdown-tag.cmaM8C2X.js.map +1 -0
  112. package/dist/chunks/{dropdown.DB_MlO1F.js → dropdown.CEZXrC1C.js} +7 -7
  113. package/dist/chunks/{dropdown.DB_MlO1F.js.map → dropdown.CEZXrC1C.js.map} +1 -1
  114. package/dist/chunks/{empty-state.BqMgiQAu.js → empty-state.DAbj9xWF.js} +3 -3
  115. package/dist/chunks/{empty-state.BqMgiQAu.js.map → empty-state.DAbj9xWF.js.map} +1 -1
  116. package/dist/chunks/{error-message.PWgUfpvo.js → error-message.D_QAOG-5.js} +9 -9
  117. package/dist/chunks/{error-message.PWgUfpvo.js.map → error-message.D_QAOG-5.js.map} +1 -1
  118. package/dist/chunks/{file-uploader.llBOTc1s.js → file-uploader.D2k8GceS.js} +17 -17
  119. package/dist/chunks/file-uploader.D2k8GceS.js.map +1 -0
  120. package/dist/chunks/{filter-bar.8rNB7K2X.js → filter-bar.C9suxxv-.js} +224 -227
  121. package/dist/chunks/filter-bar.C9suxxv-.js.map +1 -0
  122. package/dist/chunks/{fixed-scroller.CRnBrXfk.js → fixed-scroller.DDYpO7Li.js} +2 -2
  123. package/dist/chunks/{fixed-scroller.CRnBrXfk.js.map → fixed-scroller.DDYpO7Li.js.map} +1 -1
  124. package/dist/chunks/{footer-actions.C9ZYDWNU.js → footer-actions.Bbu1_rUb.js} +4 -4
  125. package/dist/chunks/{footer-actions.C9ZYDWNU.js.map → footer-actions.Bbu1_rUb.js.map} +1 -1
  126. package/dist/chunks/{form-layout-title.CboZDCN9.js → form-layout-title.aXVuAWiG.js} +3 -3
  127. package/dist/chunks/{form-layout-title.CboZDCN9.js.map → form-layout-title.aXVuAWiG.js.map} +1 -1
  128. package/dist/chunks/{header-meta.C75OXHwb.js → header-meta.Dj742jL5.js} +5 -5
  129. package/dist/chunks/{header-meta.C75OXHwb.js.map → header-meta.Dj742jL5.js.map} +1 -1
  130. package/dist/chunks/{header-with-views.Dzifal09.js → header-with-views.Cis2Ixho.js} +182 -182
  131. package/dist/chunks/header-with-views.Cis2Ixho.js.map +1 -0
  132. package/dist/chunks/{header.DAcRpRch.js → header.Bo2fbjCm.js} +4 -4
  133. package/dist/chunks/{header.DAcRpRch.js.map → header.Bo2fbjCm.js.map} +1 -1
  134. package/dist/chunks/{info-icon.B4P_Zi58.js → info-icon.BWC7gGmM.js} +9 -9
  135. package/dist/chunks/{info-icon.B4P_Zi58.js.map → info-icon.BWC7gGmM.js.map} +1 -1
  136. package/dist/chunks/info.CcMZ4aGg.js +24 -0
  137. package/dist/chunks/info.CcMZ4aGg.js.map +1 -0
  138. package/dist/chunks/{input-field-password.DsslmTb_.js → input-field-password.D6wAD55v.js} +7 -7
  139. package/dist/chunks/{input-field-password.DsslmTb_.js.map → input-field-password.D6wAD55v.js.map} +1 -1
  140. package/dist/chunks/{input-field-phone-number.D2T8jzAr.js → input-field-phone-number.CLHuEXO7.js} +9 -9
  141. package/dist/chunks/{input-field-phone-number.D2T8jzAr.js.map → input-field-phone-number.CLHuEXO7.js.map} +1 -1
  142. package/dist/chunks/{input-field.DnnXXill.js → input-field.C3KYlPYa.js} +4 -4
  143. package/dist/chunks/{input-field.DnnXXill.js.map → input-field.C3KYlPYa.js.map} +1 -1
  144. package/dist/chunks/{inspector.H05UI3LY.js → inspector.CH4kvF9q.js} +4 -4
  145. package/dist/chunks/{inspector.H05UI3LY.js.map → inspector.CH4kvF9q.js.map} +1 -1
  146. package/dist/chunks/{layout-row.BWxn-eQ-.js → layout-row.BLGCVZkD.js} +2 -2
  147. package/dist/chunks/{layout-row.BWxn-eQ-.js.map → layout-row.BLGCVZkD.js.map} +1 -1
  148. package/dist/chunks/{link.B3F22FTY.js → link.C4htMrDV.js} +2 -2
  149. package/dist/chunks/{link.B3F22FTY.js.map → link.C4htMrDV.js.map} +1 -1
  150. package/dist/chunks/{listbox-option-tag.On3eD2RE.js → listbox-option-tag.3zcrQQvI.js} +3 -3
  151. package/dist/chunks/{listbox-option-tag.On3eD2RE.js.map → listbox-option-tag.3zcrQQvI.js.map} +1 -1
  152. package/dist/chunks/{loading-indicator.Iy1CVr_T.js → loading-indicator.DXc7I1Lm.js} +2 -2
  153. package/dist/chunks/{loading-indicator.Iy1CVr_T.js.map → loading-indicator.DXc7I1Lm.js.map} +1 -1
  154. package/dist/chunks/{modal-fullscreen.BgmKDCl4.js → modal-fullscreen.DNxrRLZ5.js} +61 -55
  155. package/dist/chunks/modal-fullscreen.DNxrRLZ5.js.map +1 -0
  156. package/dist/chunks/{modal.DMqbIDcX.js → modal.BjoHqKYF.js} +6 -6
  157. package/dist/chunks/{modal.DMqbIDcX.js.map → modal.BjoHqKYF.js.map} +1 -1
  158. package/dist/chunks/{pagination.38ahUAk8.js → pagination.BNjvTjtR.js} +4 -4
  159. package/dist/chunks/{pagination.38ahUAk8.js.map → pagination.BNjvTjtR.js.map} +1 -1
  160. package/dist/chunks/{payment-method.CRluCp_L.js → payment-method.DtvfUnit.js} +2 -2
  161. package/dist/chunks/{payment-method.CRluCp_L.js.map → payment-method.DtvfUnit.js.map} +1 -1
  162. package/dist/chunks/popover.types.CiUPrUuw.js +6 -0
  163. package/dist/chunks/{popover.types.B1HUQoCG.js.map → popover.types.CiUPrUuw.js.map} +1 -1
  164. package/dist/chunks/{popper-container.Bu75g2nc.js → popper-container.BRkYcBmL.js} +2 -2
  165. package/dist/chunks/{popper-container.Bu75g2nc.js.map → popper-container.BRkYcBmL.js.map} +1 -1
  166. package/dist/chunks/{promo-banner.BGMV3nRn.js → promo-banner.CmkrgQsm.js} +3 -3
  167. package/dist/chunks/{promo-banner.BGMV3nRn.js.map → promo-banner.CmkrgQsm.js.map} +1 -1
  168. package/dist/chunks/{radio-group.BVLoYrgU.js → radio-group.ANbubbQK.js} +13 -11
  169. package/dist/chunks/radio-group.ANbubbQK.js.map +1 -0
  170. package/dist/chunks/{radio-input.BRceOAA4.js → radio-input.D8mv2EYC.js} +7 -7
  171. package/dist/chunks/{radio-input.BRceOAA4.js.map → radio-input.D8mv2EYC.js.map} +1 -1
  172. package/dist/chunks/{rich-text-editor.BZ6CyBsK.js → rich-text-editor.DfUK2cie.js} +7 -7
  173. package/dist/chunks/{rich-text-editor.BZ6CyBsK.js.map → rich-text-editor.DfUK2cie.js.map} +1 -1
  174. package/dist/chunks/{search-bar.VfZoy5FX.js → search-bar.B4ln_DGC.js} +3 -3
  175. package/dist/chunks/{search-bar.VfZoy5FX.js.map → search-bar.B4ln_DGC.js.map} +1 -1
  176. package/dist/chunks/{secondary-nav.BXXKo5HE.js → secondary-nav.DGRvSeRY.js} +3 -3
  177. package/dist/chunks/{secondary-nav.BXXKo5HE.js.map → secondary-nav.DGRvSeRY.js.map} +1 -1
  178. package/dist/chunks/{segmented-control.CGBrRBLL.js → segmented-control.5-G1EwGt.js} +3 -3
  179. package/dist/chunks/{segmented-control.CGBrRBLL.js.map → segmented-control.5-G1EwGt.js.map} +1 -1
  180. package/dist/chunks/{selection-card-group.DgQLQ4Wo.js → selection-card-group.xs_M1a46.js} +6 -6
  181. package/dist/chunks/{selection-card-group.DgQLQ4Wo.js.map → selection-card-group.xs_M1a46.js.map} +1 -1
  182. package/dist/chunks/{sidepanel.BR0coAJl.js → sidepanel.DJAmLLPS.js} +6 -6
  183. package/dist/chunks/{sidepanel.BR0coAJl.js.map → sidepanel.DJAmLLPS.js.map} +1 -1
  184. package/dist/chunks/{status.types.DBYsEsiT.js → status.types.BpMK-6IT.js} +2 -2
  185. package/dist/chunks/{status.types.DBYsEsiT.js.map → status.types.BpMK-6IT.js.map} +1 -1
  186. package/dist/chunks/{step.DJkLl2s4.js → step.DwXkOVky.js} +3 -3
  187. package/dist/chunks/{step.DJkLl2s4.js.map → step.DwXkOVky.js.map} +1 -1
  188. package/dist/chunks/{structured-list-item.CACpjdy4.js → structured-list-item.TPZLf2rC.js} +6 -6
  189. package/dist/chunks/{structured-list-item.CACpjdy4.js.map → structured-list-item.TPZLf2rC.js.map} +1 -1
  190. package/dist/chunks/{summary-grid.types.CVuvqM3p.js → summary-grid.types.Mua4SprI.js} +6 -6
  191. package/dist/chunks/{summary-grid.types.CVuvqM3p.js.map → summary-grid.types.Mua4SprI.js.map} +1 -1
  192. package/dist/chunks/{tab.D33__imf.js → tab.ClkH0GtX.js} +3 -3
  193. package/dist/chunks/{tab.D33__imf.js.map → tab.ClkH0GtX.js.map} +1 -1
  194. package/dist/chunks/{tag.DfHE26ZN.js → tag.D1niMJDQ.js} +4 -4
  195. package/dist/chunks/{tag.DfHE26ZN.js.map → tag.D1niMJDQ.js.map} +1 -1
  196. package/dist/chunks/{textarea.D7uQzuRr.js → textarea.BNGBZJ3C.js} +4 -4
  197. package/dist/chunks/{textarea.D7uQzuRr.js.map → textarea.BNGBZJ3C.js.map} +1 -1
  198. package/dist/chunks/timeline-item.DYUON6R3.js +387 -0
  199. package/dist/chunks/timeline-item.DYUON6R3.js.map +1 -0
  200. package/dist/chunks/{toast.CZxRRsPl.js → toast.gMDjItrP.js} +4 -4
  201. package/dist/chunks/{toast.CZxRRsPl.js.map → toast.gMDjItrP.js.map} +1 -1
  202. package/dist/chunks/{toggle-button.DeECoGRn.js → toggle-button.COXDzXWu.js} +10 -10
  203. package/dist/chunks/toggle-button.COXDzXWu.js.map +1 -0
  204. package/dist/chunks/{toggle.hylSNOmz.js → toggle.Ct-5NUGu.js} +2 -2
  205. package/dist/chunks/{toggle.hylSNOmz.js.map → toggle.Ct-5NUGu.js.map} +1 -1
  206. package/dist/chunks/{tooltip.BYj8cc9F.js → tooltip.B2XJl4VK.js} +19 -19
  207. package/dist/chunks/tooltip.B2XJl4VK.js.map +1 -0
  208. package/dist/chunks/{tutorial.BkAXmyzV.js → tutorial.BiGj42TP.js} +5 -5
  209. package/dist/chunks/{tutorial.BkAXmyzV.js.map → tutorial.BiGj42TP.js.map} +1 -1
  210. package/dist/chunks/{typography.w3m-EY4E.js → typography.hlOAxsEn.js} +11 -11
  211. package/dist/chunks/{typography.w3m-EY4E.js.map → typography.hlOAxsEn.js.map} +1 -1
  212. package/dist/chunks/{use-bento-toast-controller.uglKlMjv.js → use-bento-toast-controller.BKHU1qBv.js} +2 -2
  213. package/dist/chunks/{use-bento-toast-controller.uglKlMjv.js.map → use-bento-toast-controller.BKHU1qBv.js.map} +1 -1
  214. package/dist/chunks/{use-cached-selected-values.CI9xi8dE.js → use-cached-selected-values.ysbHRJ6L.js} +7 -7
  215. package/dist/chunks/use-cached-selected-values.ysbHRJ6L.js.map +1 -0
  216. package/dist/chunks/{use-country-items.BllTb5MK.js → use-country-items.DFdM2Ank.js} +2 -2
  217. package/dist/chunks/{use-country-items.BllTb5MK.js.map → use-country-items.DFdM2Ank.js.map} +1 -1
  218. package/dist/chunks/{use-country-phon-code.BOaJ9PDl.js → use-country-phon-code.Bui3zD6W.js} +5 -3
  219. package/dist/chunks/{use-country-phon-code.BOaJ9PDl.js.map → use-country-phon-code.Bui3zD6W.js.map} +1 -1
  220. package/dist/chunks/warning-filled.CbJ1pcB2.js +24 -0
  221. package/dist/chunks/warning-filled.CbJ1pcB2.js.map +1 -0
  222. package/dist/code-snippet.js +1 -1
  223. package/dist/country.js +2 -2
  224. package/dist/currency.js +1 -1
  225. package/dist/dashboard-template.js +1 -1
  226. package/dist/dashed-underline.js +1 -1
  227. package/dist/data-grid-template.js +1 -1
  228. package/dist/data-grid.js +1 -1
  229. package/dist/date-picker.js +2 -2
  230. package/dist/date-range-picker.js +2 -2
  231. package/dist/date.js +1 -1
  232. package/dist/dropdown.js +4 -4
  233. package/dist/empty-state.js +1 -1
  234. package/dist/file-uploader.js +1 -1
  235. package/dist/filter-bar.js +1 -1
  236. package/dist/form-layout.js +1 -1
  237. package/dist/header-with-views.js +1 -1
  238. package/dist/header.js +1 -1
  239. package/dist/index.js +141 -141
  240. package/dist/index.js.map +1 -1
  241. package/dist/info-icon.js +1 -1
  242. package/dist/input-field-password.js +1 -1
  243. package/dist/input-field-phone-number.js +1 -1
  244. package/dist/input-field.js +1 -1
  245. package/dist/inspector.js +1 -1
  246. package/dist/internal.js +12 -12
  247. package/dist/layout.js +1 -1
  248. package/dist/link.js +1 -1
  249. package/dist/loading-indicator.js +1 -1
  250. package/dist/menu.js +1 -1
  251. package/dist/modal-fullscreen.js +1 -1
  252. package/dist/modal.js +2 -2
  253. package/dist/pagination.js +1 -1
  254. package/dist/payment-method.js +1 -1
  255. package/dist/popover.js +2 -2
  256. package/dist/popper-container.js +1 -1
  257. package/dist/promo-banner.js +1 -1
  258. package/dist/radio-group.js +2 -2
  259. package/dist/rich-text-editor.js +1 -1
  260. package/dist/search-bar.js +2 -2
  261. package/dist/secondary-nav.js +1 -1
  262. package/dist/segmented-control.js +1 -1
  263. package/dist/selection-card.js +1 -1
  264. package/dist/sidepanel.js +1 -1
  265. package/dist/status.js +1 -1
  266. package/dist/stepper.js +1 -1
  267. package/dist/structured-list.js +1 -1
  268. package/dist/summary-grid.js +1 -1
  269. package/dist/tabs.js +1 -1
  270. package/dist/tag.js +1 -1
  271. package/dist/textarea.js +1 -1
  272. package/dist/timeline.js +1 -1
  273. package/dist/toast.js +1 -1
  274. package/dist/toggle.js +1 -1
  275. package/dist/tutorial.js +1 -1
  276. package/dist/typography.js +1 -1
  277. package/dist/web-types.json +859 -345
  278. package/package.json +8 -12
  279. package/dist/chunks/alert.Dx9P_L2k.js.map +0 -1
  280. package/dist/chunks/bin.DLXkAVvw.js +0 -24
  281. package/dist/chunks/bin.DLXkAVvw.js.map +0 -1
  282. package/dist/chunks/controls-group.B1cxRdIA.js.map +0 -1
  283. package/dist/chunks/data-grid.B0bOXr4p.js.map +0 -1
  284. package/dist/chunks/dropdown-tag.CRbOHBPK.js +0 -273
  285. package/dist/chunks/dropdown-tag.CRbOHBPK.js.map +0 -1
  286. package/dist/chunks/file-uploader.llBOTc1s.js.map +0 -1
  287. package/dist/chunks/filter-bar.8rNB7K2X.js.map +0 -1
  288. package/dist/chunks/header-with-views.Dzifal09.js.map +0 -1
  289. package/dist/chunks/info.CszJ0kMi.js +0 -24
  290. package/dist/chunks/info.CszJ0kMi.js.map +0 -1
  291. package/dist/chunks/modal-fullscreen.BgmKDCl4.js.map +0 -1
  292. package/dist/chunks/popover.types.B1HUQoCG.js +0 -6
  293. package/dist/chunks/radio-group.BVLoYrgU.js.map +0 -1
  294. package/dist/chunks/timeline-item.QOBiWKEL.js +0 -385
  295. package/dist/chunks/timeline-item.QOBiWKEL.js.map +0 -1
  296. package/dist/chunks/toggle-button.DeECoGRn.js.map +0 -1
  297. package/dist/chunks/tooltip.BYj8cc9F.js.map +0 -1
  298. package/dist/chunks/use-cached-selected-values.CI9xi8dE.js.map +0 -1
  299. package/dist/chunks/warning-filled.tWOyLUQT.js +0 -24
  300. package/dist/chunks/warning-filled.tWOyLUQT.js.map +0 -1
  301. package/dist/styles/legacy.css +0 -2239
@@ -1,4 +1,4 @@
1
- import { f as a, a as e, c as r, b as m } from "./chunks/form-layout-title.CboZDCN9.js";
1
+ import { f as a, a as e, c as r, b as m } from "./chunks/form-layout-title.aXVuAWiG.js";
2
2
  export {
3
3
  a as BentoFormLayout,
4
4
  e as BentoFormLayoutFieldTip,
@@ -1,4 +1,4 @@
1
- import { h as r } from "./chunks/header-with-views.Dzifal09.js";
1
+ import { h as r } from "./chunks/header-with-views.Cis2Ixho.js";
2
2
  export {
3
3
  r as BentoHeaderWithViews
4
4
  };
package/dist/header.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as r } from "./chunks/header.DAcRpRch.js";
1
+ import { B as r } from "./chunks/header.Bo2fbjCm.js";
2
2
  export {
3
3
  r as BentoHeader
4
4
  };
package/dist/index.js CHANGED
@@ -1,122 +1,122 @@
1
1
  import "./chunks/index.Cl4_42j5.js";
2
- import { c as T, t as y } from "./chunks/use-bento-toast-controller.uglKlMjv.js";
3
- import { u as N } from "./chunks/use-bento-toast-controller.uglKlMjv.js";
4
- import { p as g, d } from "./chunks/typography.w3m-EY4E.js";
5
- import { B as _, c as Y, b as j, a as U } from "./chunks/typography.w3m-EY4E.js";
6
- import { a as K, b as H } from "./chunks/accordion-item.NSQ50RyR.js";
7
- import { B as W } from "./chunks/action-bar.Dhi6k0CP.js";
8
- import { B as J, c as Q, b as X, a as $ } from "./chunks/alert.Dx9P_L2k.js";
9
- import { B as te } from "./chunks/avatar.CWmZ2n1W.js";
10
- import { B as ae, b as ne, a as re } from "./chunks/button.B0hSQWOR.js";
11
- import { B as Be } from "./chunks/dashed-underline.BN_whJrR.js";
12
- import { B as me, d as pe, a as ue, b as de, g as le, f as ce, e as fe, c as xe } from "./chunks/data-grid.B0bOXr4p.js";
13
- import { c as Te, B as ye, a as ge } from "./chunks/card.DLRC9V0Q.js";
14
- import { B as be, a as Ee } from "./chunks/date-picker.Dyf6HJwP.js";
15
- import { B as De, a as Ie } from "./chunks/date-range-picker.-FSh7RLm.js";
16
- import { B as Le, u as Pe } from "./chunks/dropdown.DB_MlO1F.js";
17
- import { B as Ge } from "./chunks/dropdown-default-textbox.DzpZoK-P.js";
18
- import { B as ke, a as we } from "./chunks/checkbox.JhfbjDfJ.js";
19
- import { B as Ve } from "./chunks/chip.Cn68PNxA.js";
20
- import { B as Ne } from "./chunks/click-outside.C1Ud8AA2.js";
21
- import { c as _e, b as Ye, a as je, B as Ue } from "./chunks/code-snippet.hYghglvk.js";
22
- import { c as Ke } from "./chunks/country.CZQYhKpE.js";
2
+ import { c as T, t as y } from "./chunks/use-bento-toast-controller.BKHU1qBv.js";
3
+ import { u as A } from "./chunks/use-bento-toast-controller.BKHU1qBv.js";
4
+ import { p as g, d } from "./chunks/typography.hlOAxsEn.js";
5
+ import { B as _, c as j, b as U, a as z } from "./chunks/typography.hlOAxsEn.js";
6
+ import { a as Y, b as H } from "./chunks/accordion-item.CoqaoVnC.js";
7
+ import { B as W } from "./chunks/action-bar.LaW4Tzlo.js";
8
+ import { B as J, c as Q, b as X, a as $ } from "./chunks/alert.CMyL-zWT.js";
9
+ import { B as te } from "./chunks/avatar.KdcsNOsm.js";
10
+ import { B as ae, b as ne, a as re } from "./chunks/button.CilT7NmM.js";
11
+ import { B as Be } from "./chunks/dashed-underline.Dry6H2zs.js";
12
+ import { B as me, d as pe, a as ue, b as de, g as le, f as ce, e as fe, c as xe } from "./chunks/data-grid.CrvFYgjF.js";
13
+ import { c as Te, B as ye, a as ge } from "./chunks/card.C5Uub0Fb.js";
14
+ import { B as be, a as Ee } from "./chunks/date-picker.DPasFJS2.js";
15
+ import { B as De, a as Ie } from "./chunks/date-range-picker.BIj17geh.js";
16
+ import { B as Le, u as Pe } from "./chunks/dropdown.CEZXrC1C.js";
17
+ import { B as Oe } from "./chunks/dropdown-default-textbox.CDm-PQfc.js";
18
+ import { B as Ge, a as we } from "./chunks/checkbox.lwLS8MMI.js";
19
+ import { B as Ve } from "./chunks/chip.Bfi-ff5E.js";
20
+ import { B as Ae } from "./chunks/click-outside.C1Ud8AA2.js";
21
+ import { c as _e, b as je, a as Ue, B as ze } from "./chunks/code-snippet.DsHNr3DK.js";
22
+ import { c as Ye } from "./chunks/country.1yIZNjdj.js";
23
23
  import { a as qe, B as We, u as Ze } from "./chunks/country.types.C0Q_hhgJ.js";
24
- import { c as Qe, B as Xe } from "./chunks/currency.Oq7zcRM5.js";
25
- import { B as et, a as tt } from "./chunks/date.w2Ya6_lp.js";
24
+ import { c as Qe, B as Xe } from "./chunks/currency.MT3baDtO.js";
25
+ import { B as et, a as tt } from "./chunks/date.BTdCYdkj.js";
26
26
  import { B as at } from "./chunks/divider.CFbtmKeQ.js";
27
- import { B as rt, b as st, c as Bt, a as it } from "./chunks/empty-state.BqMgiQAu.js";
28
- import { f as pt } from "./chunks/file-uploader.llBOTc1s.js";
29
- import { B as dt, b as lt, a as ct, c as ft } from "./chunks/filter-bar.8rNB7K2X.js";
30
- import { f as St, a as Tt, c as yt, b as gt } from "./chunks/form-layout-title.CboZDCN9.js";
31
- import { h as bt } from "./chunks/header-with-views.Dzifal09.js";
27
+ import { B as rt, b as st, c as Bt, a as it } from "./chunks/empty-state.DAbj9xWF.js";
28
+ import { f as pt } from "./chunks/file-uploader.D2k8GceS.js";
29
+ import { B as dt, b as lt, a as ct, c as ft } from "./chunks/filter-bar.C9suxxv-.js";
30
+ import { f as St, a as Tt, c as yt, b as gt } from "./chunks/form-layout-title.aXVuAWiG.js";
31
+ import { h as bt } from "./chunks/header-with-views.Cis2Ixho.js";
32
32
  import { B as Ct, a as Dt, b as It } from "./chunks/image.C2D2hKat.js";
33
- import { B as Lt } from "./chunks/info-icon.B4P_Zi58.js";
34
- import { B as Ft, b as Gt, e as Ot, c as kt, d as wt, a as Mt } from "./chunks/input-field.DnnXXill.js";
35
- import { i as At, m as Nt, r as Rt, b as _t, c as Yt, a as jt } from "./chunks/input-field-password.DsslmTb_.js";
36
- import { i as zt, B as Kt } from "./chunks/input-field-phone-number.D2T8jzAr.js";
37
- import { B as qt } from "./chunks/inspector.H05UI3LY.js";
33
+ import { B as Lt } from "./chunks/info-icon.BWC7gGmM.js";
34
+ import { B as Ft, b as Ot, e as kt, c as Gt, d as wt, a as Mt } from "./chunks/input-field.C3KYlPYa.js";
35
+ import { i as Nt, m as At, r as Rt, b as _t, c as jt, a as Ut } from "./chunks/input-field-password.D6wAD55v.js";
36
+ import { i as Kt, B as Yt } from "./chunks/input-field-phone-number.CLHuEXO7.js";
37
+ import { B as qt } from "./chunks/inspector.CH4kvF9q.js";
38
38
  import { B as Zt } from "./chunks/inspector.types.DyHwE18g.js";
39
- import { l as Qt, a as Xt } from "./chunks/layout-row.BWxn-eQ-.js";
40
- import { B as eo, a as to } from "./chunks/loading-indicator.Iy1CVr_T.js";
41
- import { B as ao, a as no } from "./chunks/link.B3F22FTY.js";
42
- import { B as so, a as Bo, b as io, f as mo, g as po, h as uo, c as lo, u as co } from "./chunks/toggle-button.DeECoGRn.js";
43
- import { B as xo } from "./chunks/modal.DMqbIDcX.js";
44
- import { c as To, e as yo, f as go, g as ho, d as bo, b as Eo, B as Co, a as Do } from "./chunks/base-modal.Cehud1uW.js";
45
- import { m as vo, B as Lo } from "./chunks/modal-fullscreen.BgmKDCl4.js";
46
- import { B as Fo } from "./chunks/header.DAcRpRch.js";
47
- import { B as Oo } from "./chunks/pagination.38ahUAk8.js";
48
- import { B as wo } from "./chunks/payment-method.CRluCp_L.js";
39
+ import { l as Qt, a as Xt } from "./chunks/layout-row.BLGCVZkD.js";
40
+ import { B as eo, a as to } from "./chunks/loading-indicator.DXc7I1Lm.js";
41
+ import { B as ao, a as no } from "./chunks/link.C4htMrDV.js";
42
+ import { B as so, a as Bo, b as io, f as mo, g as po, h as uo, c as lo, u as co } from "./chunks/toggle-button.COXDzXWu.js";
43
+ import { B as xo } from "./chunks/modal.BjoHqKYF.js";
44
+ import { c as To, e as yo, f as go, g as ho, d as bo, b as Eo, B as Co, a as Do } from "./chunks/base-modal.D8Rh5NUz.js";
45
+ import { m as vo, B as Lo } from "./chunks/modal-fullscreen.DNxrRLZ5.js";
46
+ import { B as Fo } from "./chunks/header.Bo2fbjCm.js";
47
+ import { B as ko } from "./chunks/pagination.BNjvTjtR.js";
48
+ import { B as wo } from "./chunks/payment-method.DtvfUnit.js";
49
49
  import { B as Vo } from "./chunks/payment-method.types.BqtH7RM2.js";
50
- import { B as No } from "./chunks/popover.types.B1HUQoCG.js";
51
- import { p as _o, B as Yo, a as jo } from "./chunks/promo-banner.BGMV3nRn.js";
52
- import { b as zo, B as Ko, a as Ho } from "./chunks/radio-group.BVLoYrgU.js";
53
- import { r as Wo } from "./chunks/rich-text-editor.BZ6CyBsK.js";
54
- import { B as Jo, b as Qo, a as Xo } from "./chunks/search-bar.VfZoy5FX.js";
55
- import { s as ea } from "./chunks/secondary-nav.BXXKo5HE.js";
56
- import { B as oa, s as aa, a as na } from "./chunks/selection-card-group.DgQLQ4Wo.js";
57
- import { B as sa } from "./chunks/segmented-control.CGBrRBLL.js";
50
+ import { B as Ao } from "./chunks/popover.types.CiUPrUuw.js";
51
+ import { p as _o, B as jo, a as Uo } from "./chunks/promo-banner.CmkrgQsm.js";
52
+ import { b as Ko, B as Yo, a as Ho } from "./chunks/radio-group.ANbubbQK.js";
53
+ import { r as Wo } from "./chunks/rich-text-editor.DfUK2cie.js";
54
+ import { B as Jo, b as Qo, a as Xo } from "./chunks/search-bar.B4ln_DGC.js";
55
+ import { s as ea } from "./chunks/secondary-nav.DGRvSeRY.js";
56
+ import { B as oa, s as aa, a as na } from "./chunks/selection-card-group.xs_M1a46.js";
57
+ import { B as sa } from "./chunks/segmented-control.5-G1EwGt.js";
58
58
  import { B as ia } from "./chunks/segmented-control.types.BHRLV8KU.js";
59
- import { a as pa, B as ua, s as da } from "./chunks/sidepanel.BR0coAJl.js";
60
- import { s as ca, B as fa } from "./chunks/status.types.DBYsEsiT.js";
61
- import { a as Sa, s as Ta, B as ya, b as ga } from "./chunks/step.DJkLl2s4.js";
62
- import { B as ba, a as Ea } from "./chunks/structured-list-item.CACpjdy4.js";
63
- import { s as Da, a as Ia, e as va, b as La, c as Pa, B as Fa, d as Ga, f as Oa } from "./chunks/summary-grid.types.CVuvqM3p.js";
64
- import { a as wa, B as Ma } from "./chunks/tab.D33__imf.js";
65
- import { B as Aa, a as Na } from "./chunks/tag.DfHE26ZN.js";
66
- import { B as _a } from "./chunks/textarea.D7uQzuRr.js";
67
- import { t as ja, b as Ua, a as za, c as Ka, B as Ha, d as qa } from "./chunks/timeline-item.QOBiWKEL.js";
68
- import { t as Za } from "./chunks/toast.CZxRRsPl.js";
69
- import { B as Qa, b as Xa, a as $a } from "./chunks/toggle.hylSNOmz.js";
70
- import { t as tn } from "./chunks/tutorial.BkAXmyzV.js";
71
- import { a as an, d as nn } from "./chunks/dashboard-section.BRnRO3AZ.js";
72
- import { d as sn } from "./chunks/data-grid-template.BlRKgkX6.js";
59
+ import { a as pa, B as ua, s as da } from "./chunks/sidepanel.DJAmLLPS.js";
60
+ import { s as ca, B as fa } from "./chunks/status.types.BpMK-6IT.js";
61
+ import { a as Sa, s as Ta, B as ya, b as ga } from "./chunks/step.DwXkOVky.js";
62
+ import { B as ba, a as Ea } from "./chunks/structured-list-item.TPZLf2rC.js";
63
+ import { s as Da, a as Ia, e as va, b as La, c as Pa, B as Fa, d as Oa, f as ka } from "./chunks/summary-grid.types.Mua4SprI.js";
64
+ import { a as wa, B as Ma } from "./chunks/tab.ClkH0GtX.js";
65
+ import { B as Na, a as Aa } from "./chunks/tag.D1niMJDQ.js";
66
+ import { B as _a } from "./chunks/textarea.BNGBZJ3C.js";
67
+ import { t as Ua, b as za, a as Ka, c as Ya, B as Ha, d as qa } from "./chunks/timeline-item.DYUON6R3.js";
68
+ import { t as Za } from "./chunks/toast.gMDjItrP.js";
69
+ import { B as Qa, b as Xa, a as $a } from "./chunks/toggle.Ct-5NUGu.js";
70
+ import { t as tn } from "./chunks/tutorial.BiGj42TP.js";
71
+ import { a as an, d as nn } from "./chunks/dashboard-section.C6zV9yL-.js";
72
+ import { d as sn } from "./chunks/data-grid-template.Dlevchxd.js";
73
73
  import { B as mn, a as pn, b as un } from "./chunks/button-actions.types.BptAXjD8.js";
74
- import { C as ln, C as cn } from "./chunks/calendar.BuAVH2aU.js";
75
- import { a as xn, B as Sn, a as Tn, B as yn } from "./chunks/use-cached-selected-values.CI9xi8dE.js";
76
- import { d as hn, a as bn, b as En, c as Cn, e as Dn } from "./chunks/dropdown-tag.CRbOHBPK.js";
74
+ import { C as ln, C as cn } from "./chunks/calendar.DYI4omOF.js";
75
+ import { a as xn, B as Sn, a as Tn, B as yn } from "./chunks/use-cached-selected-values.ysbHRJ6L.js";
76
+ import { d as hn, a as bn, b as En, c as Cn, e as Dn } from "./chunks/dropdown-tag.cmaM8C2X.js";
77
77
  import { C as vn } from "./chunks/minus-small.DJacLGTw.js";
78
- import { c as Pn, B as Fn } from "./chunks/checkbox-group.Cdt2Ik2_.js";
79
- import { u as On, a as kn } from "./chunks/use-country-phon-code.BOaJ9PDl.js";
80
- import { R as Mn } from "./chunks/radio-input.BRceOAA4.js";
78
+ import { c as Pn, B as Fn } from "./chunks/checkbox-group.CLYgcDZl.js";
79
+ import { u as kn, a as Gn } from "./chunks/use-country-phon-code.Bui3zD6W.js";
80
+ import { R as Mn } from "./chunks/radio-input.D8mv2EYC.js";
81
81
  import { shallowRef as h, ref as l, getCurrentInstance as b } from "vue";
82
- import * as s from "zod";
83
- import { D as An } from "./chunks/date-input.BqBdAO1E.js";
82
+ import * as r from "zod";
83
+ import { D as Nn } from "./chunks/date-input.BqBdAO1E.js";
84
84
  import { a as Rn, B as _n } from "./chunks/keyboard-navigation.pB8weElW.js";
85
- import { B as jn } from "./chunks/directive.Cbdox5VL.js";
86
- import { b as zn, c as Kn, d as Hn } from "./chunks/tooltip.BYj8cc9F.js";
87
- function O(e) {
85
+ import { B as Un } from "./chunks/directive.Cbdox5VL.js";
86
+ import { b as Kn, c as Yn, d as Hn } from "./chunks/tooltip.B2XJl4VK.js";
87
+ function k(e) {
88
88
  return e;
89
89
  }
90
90
  function p(e) {
91
- if (s && e instanceof s.ZodObject)
91
+ if (r && e instanceof r.ZodObject)
92
92
  return Object.fromEntries(
93
- 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])
93
+ 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])
94
94
  );
95
95
  }
96
96
  function E(e) {
97
97
  return e.path.join(".");
98
98
  }
99
- function k({
99
+ function G({
100
100
  validationSchema: e
101
101
  }) {
102
- const t = h({}), a = l({}), n = l(p(e)), i = () => {
103
- t.value = {}, a.value = {};
102
+ const t = h({}), o = l({}), a = l(p(e)), i = () => {
103
+ t.value = {}, o.value = {};
104
104
  }, x = () => {
105
- i(), n.value = p(e);
105
+ i(), a.value = p(e);
106
106
  };
107
107
  return {
108
108
  // Values
109
- errorBag: a,
109
+ errorBag: o,
110
110
  errors: t,
111
- values: n,
111
+ values: a,
112
112
  // Methods
113
113
  handleReset: () => x(),
114
114
  submitForm: (S) => () => {
115
115
  i();
116
- const u = e.safeParse(n.value);
117
- u.success ? S(n.value) : u.error.issues.forEach((m) => {
116
+ const u = e.safeParse(a.value);
117
+ u.success ? S(a.value) : u.error.issues.forEach((m) => {
118
118
  const B = E(m);
119
- t.value[B] || (t.value[B] = m.message), a.value[B] ? a.value[B].push(m.message) : a.value[B] = [m.message];
119
+ t.value[B] || (t.value[B] = m.message), o.value[B] ? o.value[B].push(m.message) : o.value[B] = [m.message];
120
120
  });
121
121
  }
122
122
  };
@@ -138,34 +138,34 @@ const C = (e) => {
138
138
  var e;
139
139
  return ((e = document.body.className.match(/b-\w+-theme/)) == null ? void 0 : e[0]) ?? "";
140
140
  }, D = () => window.matchMedia("(prefers-color-scheme: dark)").matches ? "b-dark-theme" : "b-light-theme";
141
- 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 || {});
142
- const r = (e) => {
143
- const t = f(), a = D(), n = e === "b-system" ? a : e;
144
- 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);
141
+ 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 || {});
142
+ const s = (e) => {
143
+ const t = f(), o = D(), a = e === "b-system" ? o : e;
144
+ 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);
145
145
  }, I = (e) => {
146
146
  const t = {
147
147
  getTheme: f,
148
- setTheme: r
148
+ setTheme: s
149
149
  };
150
150
  e.prototype[c] = t;
151
151
  }, M = {
152
152
  name: "BentoVue",
153
153
  install: async (e, {
154
- theme: t = o.BENTO_LIGHT,
155
- withToast: a = !1,
156
- withUtilityClasses: n = !1,
154
+ theme: t = n.BENTO_LIGHT,
155
+ withToast: o = !1,
156
+ withUtilityClasses: a = !1,
157
157
  withDesignTokensCSSInjection: i = !0
158
158
  }) => {
159
- I(e), a && C(e), i && (d(
159
+ I(e), o && C(e), i && (d(
160
160
  "Using default setting withDesignTokensCSSInjection set to true in BentoVue plugin",
161
161
  `Please disable CSS injection by setting withDesignTokensCSSInjection to false in BentoVue plugin options as highlighted here:
162
162
  https://adyen-bento.netlify.app/?path=/docs/welcome-getting-started--docs#import-css-variables`,
163
163
  "2.0.0"
164
- ), 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 && d("Using `BentoTheme.BENTO`", "Please use `BentoTheme.BENTO_LIGHT` instead", "2.0.0"), r(o.BENTO_LIGHT));
164
+ ), 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 && d("Using `BentoTheme.BENTO`", "Please use `BentoTheme.BENTO_LIGHT` instead", "2.0.0"), s(n.BENTO_LIGHT));
165
165
  }
166
166
  };
167
167
  export {
168
- K as BentoAccordion,
168
+ Y as BentoAccordion,
169
169
  H as BentoAccordionItem,
170
170
  W as BentoActionBar,
171
171
  J as BentoAlert,
@@ -183,20 +183,20 @@ export {
183
183
  Te as BentoCard,
184
184
  ye as BentoCardBackground,
185
185
  ge as BentoCardTitleSize,
186
- ke as BentoCheckbox,
186
+ Ge as BentoCheckbox,
187
187
  we as BentoCheckboxEvent,
188
188
  Pn as BentoCheckboxGroup,
189
189
  Fn as BentoCheckboxGroupVariant,
190
190
  vn as BentoCheckboxState,
191
191
  Ve as BentoChip,
192
- Ne as BentoClickOutside,
193
- jn as BentoClickOutsideDirective,
192
+ Ae as BentoClickOutside,
193
+ Un as BentoClickOutsideDirective,
194
194
  _e as BentoCodeSnippet,
195
- Ye as BentoCodeSnippetEvent,
196
- je as BentoCodeSnippetSupportedLanguage,
197
- Ue as BentoCodeSnippetVariant,
195
+ je as BentoCodeSnippetEvent,
196
+ Ue as BentoCodeSnippetSupportedLanguage,
197
+ ze as BentoCodeSnippetVariant,
198
198
  me as BentoColumnOverflow,
199
- Ke as BentoCountry,
199
+ Ye as BentoCountry,
200
200
  qe as BentoCountryCode,
201
201
  We as BentoCountryVariant,
202
202
  Qe as BentoCurrency,
@@ -228,7 +228,7 @@ export {
228
228
  xn as BentoDropdownEvent,
229
229
  Sn as BentoDropdownLazyLoadType,
230
230
  Cn as BentoDropdownPaymentMethod,
231
- Ge as BentoDropdownSize,
231
+ Oe as BentoDropdownSize,
232
232
  Dn as BentoDropdownTag,
233
233
  rt as BentoEmptyState,
234
234
  st as BentoEmptyStateImage,
@@ -250,12 +250,12 @@ export {
250
250
  It as BentoImageObjectFit,
251
251
  Lt as BentoInfoIcon,
252
252
  Ft as BentoInputField,
253
- Gt as BentoInputFieldElementPosition,
254
- Ot as BentoInputFieldEvent,
255
- At as BentoInputFieldPassword,
256
- zt as BentoInputFieldPhoneNumber,
257
- Kt as BentoInputFieldPhoneNumberCountries,
258
- kt as BentoInputFieldStateClass,
253
+ Ot as BentoInputFieldElementPosition,
254
+ kt as BentoInputFieldEvent,
255
+ Nt as BentoInputFieldPassword,
256
+ Kt as BentoInputFieldPhoneNumber,
257
+ Yt as BentoInputFieldPhoneNumberCountries,
258
+ Gt as BentoInputFieldStateClass,
259
259
  wt as BentoInputFieldType,
260
260
  Mt as BentoInputFieldVariant,
261
261
  qt as BentoInspector,
@@ -285,17 +285,17 @@ export {
285
285
  Eo as BentoModalSize,
286
286
  Co as BentoModalVariant,
287
287
  Do as BentoModalVariantMapping,
288
- Oo as BentoPagination,
288
+ ko as BentoPagination,
289
289
  wo as BentoPaymentMethod,
290
290
  Vo as BentoPaymentMethodType,
291
291
  uo as BentoPopover,
292
- No as BentoPopoverPositions,
292
+ Ao as BentoPopoverPositions,
293
293
  _o as BentoPromoBanner,
294
- Yo as BentoPromoBannerColor,
295
- jo as BentoPromoBannerLayout,
296
- zo as BentoRadioButton,
294
+ jo as BentoPromoBannerColor,
295
+ Uo as BentoPromoBannerLayout,
296
+ Ko as BentoRadioButton,
297
297
  Mn as BentoRadioButtonStateClass,
298
- Ko as BentoRadioGroup,
298
+ Yo as BentoRadioGroup,
299
299
  Ho as BentoRadioGroupVariant,
300
300
  Wo as BentoRichTextEditor,
301
301
  Jo as BentoSearchBar,
@@ -324,18 +324,18 @@ export {
324
324
  La as BentoSummaryGridItemNumeric,
325
325
  Pa as BentoSummaryGridItemPercentage,
326
326
  Fa as BentoSummaryGridItemSize,
327
- Ga as BentoSummaryGridItemText,
328
- Oa as BentoSummaryGridItemTrendDirection,
327
+ Oa as BentoSummaryGridItemText,
328
+ ka as BentoSummaryGridItemTrendDirection,
329
329
  wa as BentoTab,
330
330
  Ma as BentoTabs,
331
- Aa as BentoTag,
332
- Na as BentoTagVariant,
331
+ Na as BentoTag,
332
+ Aa as BentoTagVariant,
333
333
  _a as BentoTextarea,
334
- o as BentoTheme,
335
- ja as BentoTimeline,
336
- Ua as BentoTimelineGapUnit,
337
- za as BentoTimelineItem,
338
- Ka as BentoTimelineItemVariant,
334
+ n as BentoTheme,
335
+ Ua as BentoTimeline,
336
+ za as BentoTimelineGapUnit,
337
+ Ka as BentoTimelineItem,
338
+ Ya as BentoTimelineItemVariant,
339
339
  Ha as BentoTimelineShowMorePlacement,
340
340
  qa as BentoTimelineStatus,
341
341
  Za as BentoToast,
@@ -343,30 +343,30 @@ export {
343
343
  lo as BentoToggleButton,
344
344
  Xa as BentoToggleLabelPosition,
345
345
  $a as BentoTogglePropClass,
346
- zn as BentoTooltipDirective,
347
- Kn as BentoTooltipPosition,
346
+ Kn as BentoTooltipDirective,
347
+ Yn as BentoTooltipPosition,
348
348
  Hn as BentoTooltipState,
349
349
  tn as BentoTutorial,
350
350
  _ as BentoTypography,
351
- Y as BentoTypographyElement,
352
- j as BentoTypographyModifier,
353
- U as BentoTypographyVariant,
354
- An as DateFormat,
351
+ j as BentoTypographyElement,
352
+ U as BentoTypographyModifier,
353
+ z as BentoTypographyVariant,
354
+ Nn as DateFormat,
355
355
  M as default,
356
- Nt as minLength,
356
+ At as minLength,
357
357
  Rt as requireLowercase,
358
358
  _t as requireNumeric,
359
- Yt as requireSpecialCharacter,
360
- jt as requireUppercase,
361
- O as toTypedSchema,
359
+ jt as requireSpecialCharacter,
360
+ Ut as requireUppercase,
361
+ k as toTypedSchema,
362
362
  w as useBentoTheme,
363
363
  c as useBentoThemeKey,
364
- N as useBentoToastController,
364
+ A as useBentoToastController,
365
365
  co as useClickOutside,
366
366
  Ze as useCountryCapital,
367
- On as useCountryName,
368
- kn as useCountryPhoneCode,
369
- k as useForm,
367
+ kn as useCountryName,
368
+ Gn as useCountryPhoneCode,
369
+ G as useForm,
370
370
  Pe as useSearchBarFilter
371
371
  };
372
372
  //# sourceMappingURL=index.js.map
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 { 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","_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 { 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","_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.B4P_Zi58.js";
1
+ import { B as e } from "./chunks/info-icon.BWC7gGmM.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.DsslmTb_.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.D6wAD55v.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.D2T8jzAr.js";
1
+ import { i as o, B as t } from "./chunks/input-field-phone-number.CLHuEXO7.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.DnnXXill.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.C3KYlPYa.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.H05UI3LY.js";
1
+ import { B as t } from "./chunks/inspector.CH4kvF9q.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.BuAVH2aU.js";
2
- import { C as p, a as l } from "./chunks/copy.UbMV4m6b.js";
3
- import { C as I } from "./chunks/controls-group.B1cxRdIA.js";
4
- import { B as x, b as E, a as f, D as m } from "./chunks/dialog-page.CdJloGXQ.js";
5
- import { E as d, F as N } from "./chunks/error-message.PWgUfpvo.js";
6
- import { F as O } from "./chunks/fixed-scroller.CRnBrXfk.js";
1
+ import { a as e, b as t, C as r, c as s, d as i } from "./chunks/calendar.DYI4omOF.js";
2
+ import { C as p, a as l } from "./chunks/copy.Cb7gQhU4.js";
3
+ import { C as I } from "./chunks/controls-group.az4jCZQF.js";
4
+ import { B as x, b as E, a as f, D as m } from "./chunks/dialog-page.D20YBRQF.js";
5
+ import { E as d, F as N } from "./chunks/error-message.D_QAOG-5.js";
6
+ import { F as O } from "./chunks/fixed-scroller.DDYpO7Li.js";
7
7
  import { G as B, a as A } from "./chunks/grid-layout.1aIiz2N_.js";
8
- import { H as P, I as c } from "./chunks/header-meta.C75OXHwb.js";
9
- import { b as g, c as y, u as D } from "./chunks/use-cached-selected-values.CI9xi8dE.js";
10
- import { L as S } from "./chunks/listbox-option-tag.On3eD2RE.js";
11
- import { e as W, d as h } from "./chunks/toggle-button.DeECoGRn.js";
12
- import { B as H, a as J, T as K } from "./chunks/tooltip.BYj8cc9F.js";
13
- import { B as Y } from "./chunks/button-actions-with-menu.DIpUg6BF.js";
8
+ import { H as P, I as c } from "./chunks/header-meta.Dj742jL5.js";
9
+ import { b as g, c as y, u as D } from "./chunks/use-cached-selected-values.ysbHRJ6L.js";
10
+ import { L as S } from "./chunks/listbox-option-tag.3zcrQQvI.js";
11
+ import { e as W, d as h } from "./chunks/toggle-button.COXDzXWu.js";
12
+ import { B as H, a as J, T as K } from "./chunks/tooltip.B2XJl4VK.js";
13
+ import { B as Y } from "./chunks/button-actions-with-menu.BDpWI2Fh.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.BWxn-eQ-.js";
1
+ import { l as t, a as e } from "./chunks/layout-row.BLGCVZkD.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.B3F22FTY.js";
1
+ import { B as o, a as t } from "./chunks/link.C4htMrDV.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.Iy1CVr_T.js";
1
+ import { B as n, a as t } from "./chunks/loading-indicator.DXc7I1Lm.js";
2
2
  export {
3
3
  n as BentoLoadingIndicator,
4
4
  t as BentoLoadingIndicatorEvent