@adyen/bento-vue2 1.49.0 → 1.51.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 (303) hide show
  1. package/dist/@types/index.d.ts +441 -657
  2. package/dist/accordion.js +1 -1
  3. package/dist/action-bar.js +1 -1
  4. package/dist/alert.js +1 -1
  5. package/dist/assets/accordion-item.css +1 -1
  6. package/dist/assets/action-bar.css +1 -1
  7. package/dist/assets/alert.css +1 -1
  8. package/dist/assets/base-modal.css +1 -1
  9. package/dist/assets/card.css +1 -1
  10. package/dist/assets/checkbox-input.css +1 -1
  11. package/dist/assets/copy.css +1 -1
  12. package/dist/assets/data-grid.css +1 -1
  13. package/dist/assets/date-range-picker.css +1 -1
  14. package/dist/assets/dialog-page.css +1 -1
  15. package/dist/assets/dropdown.css +1 -1
  16. package/dist/assets/file-uploader.css +1 -1
  17. package/dist/assets/filter-bar.css +1 -1
  18. package/dist/assets/header.css +1 -1
  19. package/dist/assets/input-field-password.css +1 -1
  20. package/dist/assets/input-field.css +1 -1
  21. package/dist/assets/inspector.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/pagination.css +1 -1
  26. package/dist/assets/payment-method.css +1 -1
  27. package/dist/assets/popover.css +1 -1
  28. package/dist/assets/search-bar.css +1 -1
  29. package/dist/assets/sidepanel.css +1 -1
  30. package/dist/assets/timeline-item.css +1 -1
  31. package/dist/assets/toggle-button.css +1 -1
  32. package/dist/assets/tutorial.css +1 -1
  33. package/dist/assets/use-cached-selected-values.css +1 -1
  34. package/dist/button.js +3 -3
  35. package/dist/card.js +1 -1
  36. package/dist/checkbox.js +3 -3
  37. package/dist/chip.js +1 -1
  38. package/dist/chunks/{accordion-item.CTxrEQEW.js → accordion-item.C4tyRMCt.js} +2 -2
  39. package/dist/chunks/{accordion-item.CTxrEQEW.js.map → accordion-item.C4tyRMCt.js.map} +1 -1
  40. package/dist/chunks/{action-bar.pYOeP8WX.js → action-bar.DGhojWpe.js} +6 -6
  41. package/dist/chunks/{action-bar.pYOeP8WX.js.map → action-bar.DGhojWpe.js.map} +1 -1
  42. package/dist/chunks/{alert.hiTIDSeX.js → alert.BSBLkXkM.js} +9 -8
  43. package/dist/chunks/alert.BSBLkXkM.js.map +1 -0
  44. package/dist/chunks/{base-modal.8kcvtFRx.js → base-modal.Dan5WQin.js} +5 -5
  45. package/dist/chunks/{base-modal.8kcvtFRx.js.map → base-modal.Dan5WQin.js.map} +1 -1
  46. package/dist/chunks/{button-actions-with-menu.BxWulRXh.js → button-actions-with-menu.B5gcSgRQ.js} +4 -4
  47. package/dist/chunks/{button-actions-with-menu.BxWulRXh.js.map → button-actions-with-menu.B5gcSgRQ.js.map} +1 -1
  48. package/dist/chunks/{button-actions.BovYBINL.js → button-actions.GhdYBSwt.js} +4 -4
  49. package/dist/chunks/{button-actions.BovYBINL.js.map → button-actions.GhdYBSwt.js.map} +1 -1
  50. package/dist/chunks/{button.CdAFZa4V.js → button.D-3uUhuG.js} +2 -2
  51. package/dist/chunks/{button.CdAFZa4V.js.map → button.D-3uUhuG.js.map} +1 -1
  52. package/dist/chunks/{calendar.Bb0-Svhx.js → calendar.YJTNpmzh.js} +3 -3
  53. package/dist/chunks/{calendar.Bb0-Svhx.js.map → calendar.YJTNpmzh.js.map} +1 -1
  54. package/dist/chunks/{card.D-w9c3-n.js → card.Csazj5Qz.js} +3 -3
  55. package/dist/chunks/{card.D-w9c3-n.js.map → card.Csazj5Qz.js.map} +1 -1
  56. package/dist/chunks/{checkbox-group.4TiIcnc7.js → checkbox-group.DcJ31aLq.js} +4 -4
  57. package/dist/chunks/{checkbox-group.4TiIcnc7.js.map → checkbox-group.DcJ31aLq.js.map} +1 -1
  58. package/dist/chunks/{checkbox-input.Bo4NxNOh.js → checkbox-input.B4A_gL2b.js} +10 -9
  59. package/dist/chunks/checkbox-input.B4A_gL2b.js.map +1 -0
  60. package/dist/chunks/{checkbox.CE9NdY0R.js → checkbox.BpF0HY7C.js} +17 -17
  61. package/dist/chunks/{checkbox.CE9NdY0R.js.map → checkbox.BpF0HY7C.js.map} +1 -1
  62. package/dist/chunks/{checkmark-circle-fill.Cn7JN_Tk.js → checkmark-circle-fill.C46dV1Rf.js} +4 -4
  63. package/dist/chunks/checkmark-circle-fill.C46dV1Rf.js.map +1 -0
  64. package/dist/chunks/{checkmark-small.BtF8b2gE.js → checkmark-small.C8T8ISN6.js} +4 -4
  65. package/dist/chunks/checkmark-small.C8T8ISN6.js.map +1 -0
  66. package/dist/chunks/{chevron-left.PIu6yPqe.js → chevron-left.DOMTgGel.js} +6 -6
  67. package/dist/chunks/chevron-left.DOMTgGel.js.map +1 -0
  68. package/dist/chunks/{chevron-up.DVfo78kV.js → chevron-up.CSVyoaTy.js} +6 -6
  69. package/dist/chunks/chevron-up.CSVyoaTy.js.map +1 -0
  70. package/dist/chunks/{chip.HNUA9VZl.js → chip.BeK9uqmW.js} +24 -21
  71. package/dist/chunks/chip.BeK9uqmW.js.map +1 -0
  72. package/dist/chunks/{code-snippet.DSsZWtwa.js → code-snippet.z_G2UXVT.js} +7 -7
  73. package/dist/chunks/{code-snippet.DSsZWtwa.js.map → code-snippet.z_G2UXVT.js.map} +1 -1
  74. package/dist/chunks/{controls-group.BnDPMaGI.js → controls-group.ghJ7a8PY.js} +2 -2
  75. package/dist/chunks/{controls-group.BnDPMaGI.js.map → controls-group.ghJ7a8PY.js.map} +1 -1
  76. package/dist/chunks/{copy.DMlIj53I.js → copy.BNOiinIt.js} +7 -6
  77. package/dist/chunks/copy.BNOiinIt.js.map +1 -0
  78. package/dist/chunks/{cross-circle-fill-small.Oj6lPaDy.js → cross-circle-fill-small.YhLgeipP.js} +4 -4
  79. package/dist/chunks/cross-circle-fill-small.YhLgeipP.js.map +1 -0
  80. package/dist/chunks/{cross-circle-fill.CnYH4R_h.js → cross-circle-fill.BawVYNw7.js} +4 -4
  81. package/dist/chunks/cross-circle-fill.BawVYNw7.js.map +1 -0
  82. package/dist/chunks/{cross-small.BLUwtRB-.js → cross-small.CZqsjZDz.js} +4 -4
  83. package/dist/chunks/cross-small.CZqsjZDz.js.map +1 -0
  84. package/dist/chunks/{cross.CsUPDmaA.js → cross.CJ5EEL2c.js} +4 -4
  85. package/dist/chunks/cross.CJ5EEL2c.js.map +1 -0
  86. package/dist/chunks/{dashboard-section.DzMn8yDZ.js → dashboard-section.Db_E382r.js} +3 -3
  87. package/dist/chunks/{dashboard-section.DzMn8yDZ.js.map → dashboard-section.Db_E382r.js.map} +1 -1
  88. package/dist/chunks/{dashed-underline.COTMts4l.js → dashed-underline.CAhDrAG_.js} +3 -3
  89. package/dist/chunks/{dashed-underline.COTMts4l.js.map → dashed-underline.CAhDrAG_.js.map} +1 -1
  90. package/dist/chunks/{data-grid-template.BPBneEHq.js → data-grid-template.DG5IWdLG.js} +3 -3
  91. package/dist/chunks/{data-grid-template.BPBneEHq.js.map → data-grid-template.DG5IWdLG.js.map} +1 -1
  92. package/dist/chunks/{data-grid.iqFUbiZy.js → data-grid.CHV-FvBB.js} +33 -32
  93. package/dist/chunks/data-grid.CHV-FvBB.js.map +1 -0
  94. package/dist/chunks/{date-picker.C68IAqHR.js → date-picker.CMj5-RQl.js} +15 -15
  95. package/dist/chunks/{date-picker.C68IAqHR.js.map → date-picker.CMj5-RQl.js.map} +1 -1
  96. package/dist/chunks/{date-range-picker.dcQRDNS7.js → date-range-picker.Jysfo6h3.js} +150 -149
  97. package/dist/chunks/date-range-picker.Jysfo6h3.js.map +1 -0
  98. package/dist/chunks/{dialog-page.Bf07JxdG.js → dialog-page.BfF5_hmG.js} +5 -4
  99. package/dist/chunks/dialog-page.BfF5_hmG.js.map +1 -0
  100. package/dist/chunks/{dot.BCX4w7eT.js → dot.CnkXzRn3.js} +4 -4
  101. package/dist/chunks/dot.CnkXzRn3.js.map +1 -0
  102. package/dist/chunks/{dropdown-default-textbox.CC9Z_RFG.js → dropdown-default-textbox.DzPBw4CV.js} +4 -4
  103. package/dist/chunks/{dropdown-default-textbox.CC9Z_RFG.js.map → dropdown-default-textbox.DzPBw4CV.js.map} +1 -1
  104. package/dist/chunks/{dropdown-tag.DhENnOHT.js → dropdown-tag.K4idCLeu.js} +4 -4
  105. package/dist/chunks/{dropdown-tag.DhENnOHT.js.map → dropdown-tag.K4idCLeu.js.map} +1 -1
  106. package/dist/chunks/{dropdown.BBHNOorv.js → dropdown.DFEGHxjw.js} +278 -270
  107. package/dist/chunks/dropdown.DFEGHxjw.js.map +1 -0
  108. package/dist/chunks/{empty-state.BnHTBgKG.js → empty-state.JbgxSrnv.js} +2 -2
  109. package/dist/chunks/{empty-state.BnHTBgKG.js.map → empty-state.JbgxSrnv.js.map} +1 -1
  110. package/dist/chunks/{error-message.xTNEaNn8.js → error-message.B3oWB_HM.js} +3 -3
  111. package/dist/chunks/{error-message.xTNEaNn8.js.map → error-message.B3oWB_HM.js.map} +1 -1
  112. package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
  113. package/dist/chunks/{expand.CwwKq7Uc.js → expand.C263WARj.js} +4 -4
  114. package/dist/chunks/expand.C263WARj.js.map +1 -0
  115. package/dist/chunks/{file-uploader.mLUYQnz1.js → file-uploader.DaBMZSsB.js} +249 -252
  116. package/dist/chunks/file-uploader.DaBMZSsB.js.map +1 -0
  117. package/dist/chunks/{filter-bar.CFcu6P8H.js → filter-bar.DClIG9aP.js} +577 -636
  118. package/dist/chunks/filter-bar.DClIG9aP.js.map +1 -0
  119. package/dist/chunks/{fixed-scroller.DX2YUuoU.js → fixed-scroller.BwvXYzE6.js} +3 -3
  120. package/dist/chunks/{fixed-scroller.DX2YUuoU.js.map → fixed-scroller.BwvXYzE6.js.map} +1 -1
  121. package/dist/chunks/{footer-actions.BsoofCrv.js → footer-actions.D0SuJroc.js} +3 -3
  122. package/dist/chunks/{footer-actions.BsoofCrv.js.map → footer-actions.D0SuJroc.js.map} +1 -1
  123. package/dist/chunks/{form-layout-title.CJbgfh3P.js → form-layout-title.C1n2S73_.js} +2 -2
  124. package/dist/chunks/{form-layout-title.CJbgfh3P.js.map → form-layout-title.C1n2S73_.js.map} +1 -1
  125. package/dist/chunks/{header.BeS6ktqU.js → header.CRlxEGHb.js} +50 -50
  126. package/dist/chunks/{header.BeS6ktqU.js.map → header.CRlxEGHb.js.map} +1 -1
  127. package/dist/chunks/{info-icon-with-popover.yeIoJzhj.js → info-icon-with-popover.C29aZ1Vh.js} +3 -3
  128. package/dist/chunks/{info-icon-with-popover.yeIoJzhj.js.map → info-icon-with-popover.C29aZ1Vh.js.map} +1 -1
  129. package/dist/chunks/{info-icon.C4_l0WAf.js → info-icon.bXR5eo6I.js} +4 -4
  130. package/dist/chunks/{info-icon.C4_l0WAf.js.map → info-icon.bXR5eo6I.js.map} +1 -1
  131. package/dist/chunks/{info.CyeBsLgt.js → info.D4SG-AIm.js} +4 -4
  132. package/dist/chunks/info.D4SG-AIm.js.map +1 -0
  133. package/dist/chunks/{input-field-password.Dez8haIj.js → input-field-password.DsIpkc_9.js} +15 -15
  134. package/dist/chunks/input-field-password.DsIpkc_9.js.map +1 -0
  135. package/dist/chunks/{input-field-phone-number.CPTonsjM.js → input-field-phone-number.Bmugk7fI.js} +2 -2
  136. package/dist/chunks/{input-field-phone-number.CPTonsjM.js.map → input-field-phone-number.Bmugk7fI.js.map} +1 -1
  137. package/dist/chunks/{input-field.lEMEBT7J.js → input-field.Dl2lXZda.js} +49 -139
  138. package/dist/chunks/input-field.Dl2lXZda.js.map +1 -0
  139. package/dist/chunks/{inspector.types.BtgXpTC7.js → inspector.types.C9Oc8FgA.js} +4 -4
  140. package/dist/chunks/{inspector.types.BtgXpTC7.js.map → inspector.types.C9Oc8FgA.js.map} +1 -1
  141. package/dist/chunks/{link.DZlbzVSB.js → link.BH3eB_7E.js} +4 -3
  142. package/dist/chunks/link.BH3eB_7E.js.map +1 -0
  143. package/dist/chunks/{listbox-option-tag.BJBWnC2r.js → listbox-option-tag.bPRcATJK.js} +2 -2
  144. package/dist/chunks/{listbox-option-tag.BJBWnC2r.js.map → listbox-option-tag.bPRcATJK.js.map} +1 -1
  145. package/dist/chunks/{menu.lbODB0y3.js → menu.CzbkunwY.js} +226 -193
  146. package/dist/chunks/menu.CzbkunwY.js.map +1 -0
  147. package/dist/chunks/{modal-fullscreen.Dz3kSuTz.js → modal-fullscreen.C4D3Rkdg.js} +5 -5
  148. package/dist/chunks/{modal-fullscreen.Dz3kSuTz.js.map → modal-fullscreen.C4D3Rkdg.js.map} +1 -1
  149. package/dist/chunks/{modal.DV55hSPn.js → modal.DgCmKjQC.js} +5 -5
  150. package/dist/chunks/{modal.DV55hSPn.js.map → modal.DgCmKjQC.js.map} +1 -1
  151. package/dist/chunks/{pagination.CuJ-P2bO.js → pagination.CdOxfZW2.js} +6 -5
  152. package/dist/chunks/pagination.CdOxfZW2.js.map +1 -0
  153. package/dist/chunks/payment-method.BudFG3aC.js +76 -0
  154. package/dist/chunks/payment-method.BudFG3aC.js.map +1 -0
  155. package/dist/chunks/payment-method.types.CJKfZQN5.js.map +1 -1
  156. package/dist/chunks/{popover.BQGNMbQN.js → popover.3sHql3nd.js} +39 -31
  157. package/dist/chunks/popover.3sHql3nd.js.map +1 -0
  158. package/dist/chunks/{popper-container.CsW4R0-t.js → popper-container.Bqy3oVj6.js} +356 -352
  159. package/dist/chunks/popper-container.Bqy3oVj6.js.map +1 -0
  160. package/dist/chunks/{promo-banner.BNXfyv3h.js → promo-banner.BIICM7FC.js} +2 -2
  161. package/dist/chunks/{promo-banner.BNXfyv3h.js.map → promo-banner.BIICM7FC.js.map} +1 -1
  162. package/dist/chunks/{radio-group.CUgib4vp.js → radio-group.L-XokgwC.js} +4 -4
  163. package/dist/chunks/{radio-group.CUgib4vp.js.map → radio-group.L-XokgwC.js.map} +1 -1
  164. package/dist/chunks/{refresh.BKI9WwKh.js → refresh.Bc9FzGjJ.js} +4 -4
  165. package/dist/chunks/refresh.Bc9FzGjJ.js.map +1 -0
  166. package/dist/chunks/{search-bar.Dk-GuqgF.js → search-bar.CDTWPjG1.js} +28 -46
  167. package/dist/chunks/search-bar.CDTWPjG1.js.map +1 -0
  168. package/dist/chunks/{search.CBKhp7zB.js → search.pVu-JVAN.js} +4 -4
  169. package/dist/chunks/search.pVu-JVAN.js.map +1 -0
  170. package/dist/chunks/{secondary-nav.DC2GrGaQ.js → secondary-nav.BwmBTvl5.js} +2 -2
  171. package/dist/chunks/{secondary-nav.DC2GrGaQ.js.map → secondary-nav.BwmBTvl5.js.map} +1 -1
  172. package/dist/chunks/{segmented-control.BxCcPbKd.js → segmented-control.CW6v1rDg.js} +2 -2
  173. package/dist/chunks/{segmented-control.BxCcPbKd.js.map → segmented-control.CW6v1rDg.js.map} +1 -1
  174. package/dist/chunks/{selection-card-group.B-YY-iKp.js → selection-card-group.CURxGbd9.js} +10 -10
  175. package/dist/chunks/{selection-card-group.B-YY-iKp.js.map → selection-card-group.CURxGbd9.js.map} +1 -1
  176. package/dist/chunks/{show.IEAxtCB7.js → show.e4LEpZKG.js} +6 -6
  177. package/dist/chunks/show.e4LEpZKG.js.map +1 -0
  178. package/dist/chunks/{sidepanel.Dp6dKRnq.js → sidepanel.MBArfd4a.js} +5 -5
  179. package/dist/chunks/{sidepanel.Dp6dKRnq.js.map → sidepanel.MBArfd4a.js.map} +1 -1
  180. package/dist/chunks/{step.DrP2Frvn.js → step.CuOpi-Ye.js} +3 -3
  181. package/dist/chunks/{step.DrP2Frvn.js.map → step.CuOpi-Ye.js.map} +1 -1
  182. package/dist/chunks/{structured-list-item.DrY71Ndc.js → structured-list-item.CYYZ1Fil.js} +6 -6
  183. package/dist/chunks/{structured-list-item.DrY71Ndc.js.map → structured-list-item.CYYZ1Fil.js.map} +1 -1
  184. package/dist/chunks/{summary-grid-item-custom.CXs6AMS4.js → summary-grid-item-custom.CVEhwKNM.js} +4 -4
  185. package/dist/chunks/{summary-grid-item-custom.CXs6AMS4.js.map → summary-grid-item-custom.CVEhwKNM.js.map} +1 -1
  186. package/dist/chunks/{tabs.5zgaD1k3.js → tabs.UFoTqvew.js} +2 -2
  187. package/dist/chunks/{tabs.5zgaD1k3.js.map → tabs.UFoTqvew.js.map} +1 -1
  188. package/dist/chunks/{tag.CevG31iQ.js → tag.BxmageRW.js} +2 -2
  189. package/dist/chunks/{tag.CevG31iQ.js.map → tag.BxmageRW.js.map} +1 -1
  190. package/dist/chunks/{textarea.DHbXaxdU.js → textarea.DmjhRupr.js} +4 -4
  191. package/dist/chunks/{textarea.DHbXaxdU.js.map → textarea.DmjhRupr.js.map} +1 -1
  192. package/dist/chunks/{timeline-item.C4HOsaEG.js → timeline-item.CLbS-cEf.js} +12 -11
  193. package/dist/chunks/timeline-item.CLbS-cEf.js.map +1 -0
  194. package/dist/chunks/{toast.C5I7Wsfa.js → toast.DqSWycRO.js} +3 -3
  195. package/dist/chunks/{toast.C5I7Wsfa.js.map → toast.DqSWycRO.js.map} +1 -1
  196. package/dist/chunks/{toggle-button.BX_9vB0d.js → toggle-button.DgSFugBP.js} +6 -6
  197. package/dist/chunks/toggle-button.DgSFugBP.js.map +1 -0
  198. package/dist/chunks/{toggle.CyaY0U0K.js → toggle.Q52IIKfi.js} +2 -2
  199. package/dist/chunks/{toggle.CyaY0U0K.js.map → toggle.Q52IIKfi.js.map} +1 -1
  200. package/dist/chunks/{tooltip.Bu8o7uyZ.js → tooltip.Vgoc41cI.js} +2 -2
  201. package/dist/chunks/{tooltip.Bu8o7uyZ.js.map → tooltip.Vgoc41cI.js.map} +1 -1
  202. package/dist/chunks/{tutorial.BWWTUI9f.js → tutorial.CmLMgXDK.js} +45 -44
  203. package/dist/chunks/tutorial.CmLMgXDK.js.map +1 -0
  204. package/dist/chunks/use-cached-selected-values.DVcpkFV3.js +1164 -0
  205. package/dist/chunks/use-cached-selected-values.DVcpkFV3.js.map +1 -0
  206. package/dist/chunks/{warning-filled.CLKRzGMT.js → warning-filled.Cd0kVWwa.js} +4 -4
  207. package/dist/chunks/warning-filled.Cd0kVWwa.js.map +1 -0
  208. package/dist/code-snippet.js +1 -1
  209. package/dist/dashboard-template.js +1 -1
  210. package/dist/dashed-underline.js +1 -1
  211. package/dist/data-grid-template.js +1 -1
  212. package/dist/data-grid.js +1 -1
  213. package/dist/date-picker.js +2 -2
  214. package/dist/date-range-picker.js +2 -2
  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/form-layout.js +1 -1
  220. package/dist/header.js +1 -1
  221. package/dist/index.js +59 -59
  222. package/dist/info-icon.js +1 -1
  223. package/dist/input-field-password.js +1 -1
  224. package/dist/input-field-phone-number.js +1 -1
  225. package/dist/input-field.js +1 -1
  226. package/dist/inspector.js +1 -1
  227. package/dist/internal.js +12 -12
  228. package/dist/link.js +1 -1
  229. package/dist/menu.js +1 -1
  230. package/dist/modal-fullscreen.js +1 -1
  231. package/dist/modal.js +2 -2
  232. package/dist/pagination.js +1 -1
  233. package/dist/payment-method.js +1 -1
  234. package/dist/popover.js +1 -1
  235. package/dist/popper-container.js +1 -1
  236. package/dist/promo-banner.js +1 -1
  237. package/dist/radio-group.js +1 -1
  238. package/dist/search-bar.js +2 -2
  239. package/dist/secondary-nav.js +1 -1
  240. package/dist/segmented-control.js +1 -1
  241. package/dist/selection-card.js +1 -1
  242. package/dist/sidepanel.js +1 -1
  243. package/dist/stepper.js +1 -1
  244. package/dist/structured-list.js +1 -1
  245. package/dist/styles/bento-dark.css +5 -5
  246. package/dist/styles/bento-light.css +5 -5
  247. package/dist/styles/bento.css +5 -5
  248. package/dist/styles/legacy.css +6 -4
  249. package/dist/styles/styleguide.css +5 -5
  250. package/dist/styles/utility.css +2 -2
  251. package/dist/summary-grid.js +1 -1
  252. package/dist/tabs.js +1 -1
  253. package/dist/tag.js +1 -1
  254. package/dist/textarea.js +1 -1
  255. package/dist/timeline.js +1 -1
  256. package/dist/toast.js +1 -1
  257. package/dist/toggle.js +1 -1
  258. package/dist/tutorial.js +1 -1
  259. package/dist/web-types.json +179 -144
  260. package/package.json +6 -6
  261. package/dist/chunks/alert.hiTIDSeX.js.map +0 -1
  262. package/dist/chunks/checkbox-input.Bo4NxNOh.js.map +0 -1
  263. package/dist/chunks/checkmark-circle-fill.Cn7JN_Tk.js.map +0 -1
  264. package/dist/chunks/checkmark-small.BtF8b2gE.js.map +0 -1
  265. package/dist/chunks/chevron-left.PIu6yPqe.js.map +0 -1
  266. package/dist/chunks/chevron-up.DVfo78kV.js.map +0 -1
  267. package/dist/chunks/chip.HNUA9VZl.js.map +0 -1
  268. package/dist/chunks/copy.DMlIj53I.js.map +0 -1
  269. package/dist/chunks/cross-circle-fill-small.Oj6lPaDy.js.map +0 -1
  270. package/dist/chunks/cross-circle-fill.CnYH4R_h.js.map +0 -1
  271. package/dist/chunks/cross-small.BLUwtRB-.js.map +0 -1
  272. package/dist/chunks/cross.CsUPDmaA.js.map +0 -1
  273. package/dist/chunks/data-grid.iqFUbiZy.js.map +0 -1
  274. package/dist/chunks/date-range-picker.dcQRDNS7.js.map +0 -1
  275. package/dist/chunks/dialog-page.Bf07JxdG.js.map +0 -1
  276. package/dist/chunks/dot.BCX4w7eT.js.map +0 -1
  277. package/dist/chunks/dropdown.BBHNOorv.js.map +0 -1
  278. package/dist/chunks/expand.CwwKq7Uc.js.map +0 -1
  279. package/dist/chunks/file-uploader.mLUYQnz1.js.map +0 -1
  280. package/dist/chunks/filter-bar.CFcu6P8H.js.map +0 -1
  281. package/dist/chunks/info.CyeBsLgt.js.map +0 -1
  282. package/dist/chunks/input-field-password.Dez8haIj.js.map +0 -1
  283. package/dist/chunks/input-field.lEMEBT7J.js.map +0 -1
  284. package/dist/chunks/link.DZlbzVSB.js.map +0 -1
  285. package/dist/chunks/menu.lbODB0y3.js.map +0 -1
  286. package/dist/chunks/pagination.CuJ-P2bO.js.map +0 -1
  287. package/dist/chunks/payment-method.BKr_q5cZ.js +0 -84
  288. package/dist/chunks/payment-method.BKr_q5cZ.js.map +0 -1
  289. package/dist/chunks/popover.BQGNMbQN.js.map +0 -1
  290. package/dist/chunks/popper-container.CsW4R0-t.js.map +0 -1
  291. package/dist/chunks/refresh.BKI9WwKh.js.map +0 -1
  292. package/dist/chunks/search-bar.Dk-GuqgF.js.map +0 -1
  293. package/dist/chunks/search.CBKhp7zB.js.map +0 -1
  294. package/dist/chunks/show.IEAxtCB7.js.map +0 -1
  295. package/dist/chunks/timeline-item.C4HOsaEG.js.map +0 -1
  296. package/dist/chunks/toggle-button.BX_9vB0d.js.map +0 -1
  297. package/dist/chunks/truncate.BfIl_-71.js +0 -8
  298. package/dist/chunks/truncate.BfIl_-71.js.map +0 -1
  299. package/dist/chunks/tutorial.BWWTUI9f.js.map +0 -1
  300. package/dist/chunks/use-cached-selected-values.C5gHa-dC.js +0 -1301
  301. package/dist/chunks/use-cached-selected-values.C5gHa-dC.js.map +0 -1
  302. package/dist/chunks/warning-filled.CLKRzGMT.js.map +0 -1
  303. /package/dist/assets/{cross.css → main.css} +0 -0
@@ -1,19 +1,21 @@
1
- import { defineComponent as x, computed as C, ref as i, inject as P, onMounted as U, provide as W } from "vue";
2
- import { g as w } from "./generate-uid.NJ8tVoha.js";
3
- import { a as O, B as H } from "./popover.BQGNMbQN.js";
4
- import { B as D, D as j } from "./divider.Cc4JFWG_.js";
5
- import { B as q, u as G } from "./teleport.B5fwsT5y.js";
6
- import { u as V } from "./use-has-slot.C9lQZ6nz.js";
7
- import { u as J } from "./i18n.BQkEbtPM.js";
8
- import { n as g } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
9
- import { C as Y, a as R } from "./chevron-left.PIu6yPqe.js";
10
- import { a as E, B as Z } from "./base-button.-gx_u8Bd.js";
11
- import { B as z } from "./typography.J1v_SPG3.js";
12
- import { B as Q } from "./toggle-button.BX_9vB0d.js";
1
+ import { defineComponent as M, computed as b, ref as a, inject as N, onMounted as H, provide as j } from "vue";
2
+ import { g as E } from "./generate-uid.NJ8tVoha.js";
3
+ import { a as T, B as q } from "./popover.3sHql3nd.js";
4
+ import { B as A, D as G } from "./divider.Cc4JFWG_.js";
5
+ import { B as V, u as J } from "./teleport.B5fwsT5y.js";
6
+ import { u as Y } from "./use-has-slot.C9lQZ6nz.js";
7
+ import { u as Z } from "./i18n.BQkEbtPM.js";
8
+ /* empty css */
9
+ import { n as x } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
10
+ import "./index.Cl4_42j5.js";
11
+ import { C as z, a as P } from "./chevron-left.DOMTgGel.js";
12
+ import { a as D, B as Q } from "./base-button.-gx_u8Bd.js";
13
+ import { B as X } from "./typography.J1v_SPG3.js";
14
+ import { B as $ } from "./toggle-button.DgSFugBP.js";
13
15
  import "../assets/menu.css";
14
- const X = x({
16
+ const ee = M({
15
17
  name: "menu-item",
16
- components: { BaseButton: Z, BentoTypography: z, ChevronRightIcon: Y },
18
+ components: { BaseButton: Q, BentoTypography: X, ChevronRightIcon: z },
17
19
  props: {
18
20
  /**
19
21
  * menu-item text that gets displayed as the main label
@@ -81,22 +83,22 @@ const X = x({
81
83
  default: !1
82
84
  }
83
85
  },
84
- emits: [E.CLICK],
86
+ emits: [D.CLICK],
85
87
  setup(s, { emit: e }) {
86
88
  return {
87
89
  // Values
88
- conditionalClasses: C(() => ({
90
+ conditionalClasses: b(() => ({
89
91
  "b-menu-item--critical": s.critical,
90
92
  "b-menu-item--indent": s.indent
91
93
  })),
92
94
  // Methods
93
- onClick: (o) => {
94
- o.stopPropagation(), s.handler(), e(E.CLICK);
95
+ onClick: (u) => {
96
+ u.stopPropagation(), s.handler(), e(D.CLICK);
95
97
  }
96
98
  };
97
99
  }
98
100
  });
99
- var $ = function() {
101
+ var te = function() {
100
102
  var e = this, n = e._self._c;
101
103
  return e._self._setupProxy, n("base-button", { staticClass: "b-menu-item", class: e.conditionalClasses, attrs: { role: "menuitem", disabled: e.disabled, tabindex: "-1" }, on: { click: e.onClick }, scopedSlots: e._u([e.icon ? { key: "iconLeft", fn: function() {
102
104
  return [n(e.icon, { tag: "component", staticClass: "b-menu-item__icon-left", attrs: { "aria-hidden": "true" } })];
@@ -105,54 +107,54 @@ var $ = function() {
105
107
  }, proxy: !0 }, e.chevron ? { key: "iconRight", fn: function() {
106
108
  return [n("chevron-right-icon", { attrs: { "aria-hidden": "true" } })];
107
109
  }, proxy: !0 } : null], null, !0) });
108
- }, ee = [], te = /* @__PURE__ */ g(
109
- X,
110
- $,
110
+ }, ne = [], se = /* @__PURE__ */ x(
111
111
  ee,
112
+ te,
113
+ ne,
112
114
  !1,
113
115
  null,
114
116
  "49e4a0fe"
115
117
  );
116
- const F = te.exports;
117
- var d = /* @__PURE__ */ ((s) => (s.BACK = "back", s.CLOSE = "close", s.OPEN = "open", s))(d || {});
118
- const ne = Symbol("menu registering injection key"), se = {
118
+ const K = se.exports;
119
+ var f = /* @__PURE__ */ ((s) => (s.BACK = "back", s.CLOSE = "close", s.OPEN = "open", s))(f || {});
120
+ const oe = Symbol("menu registering injection key"), ue = {
119
121
  name: "bento-menu-list-container"
120
- }, oe = /* @__PURE__ */ x({
121
- ...se,
122
+ }, le = /* @__PURE__ */ M({
123
+ ...ue,
122
124
  setup(s) {
123
- const e = i(), n = i({}), t = P(
124
- ne,
125
+ const e = a(), n = a({}), t = N(
126
+ oe,
125
127
  !1
126
128
  );
127
129
  if (t) {
128
- const { registerMenuContainerElement: o } = t;
129
- o(e), n.value = {
130
+ const { registerMenuContainerElement: u } = t;
131
+ u(e), n.value = {
130
132
  mouseleave: t == null ? void 0 : t.menuMouseLeave
131
133
  };
132
134
  }
133
135
  return { __sfc: !0, menuListContainerRef: e, menuListContainerEvents: n, registeringAndMousingOut: t };
134
136
  }
135
137
  });
136
- var ue = function() {
138
+ var ae = function() {
137
139
  var e = this, n = e._self._c, t = e._self._setupProxy;
138
140
  return n("div", e._g({ ref: "menuListContainerRef", staticClass: "b-menu-list-container", attrs: { "data-testid": "menu-list-container" } }, t.menuListContainerEvents), [e._t("default")], 2);
139
- }, le = [], ae = /* @__PURE__ */ g(
140
- oe,
141
- ue,
141
+ }, re = [], ie = /* @__PURE__ */ x(
142
142
  le,
143
+ ae,
144
+ re,
143
145
  !1,
144
146
  null,
145
147
  "f5d01392"
146
148
  );
147
- const N = ae.exports, A = {
149
+ const U = ie.exports, W = {
148
150
  "en-US": {
149
151
  backButton: "Go back",
150
152
  menuButton: "Open menu"
151
153
  }
152
- }, re = x({
153
- i18n: { messages: A },
154
+ }, ce = M({
155
+ i18n: { messages: W },
154
156
  name: "sub-menu-item-list",
155
- components: { BentoDivider: D, MenuItem: F, MenuListContainer: N },
157
+ components: { BentoDivider: A, MenuItem: K, MenuListContainer: U },
156
158
  props: {
157
159
  items: {
158
160
  type: Array,
@@ -163,60 +165,60 @@ const N = ae.exports, A = {
163
165
  required: !0
164
166
  }
165
167
  },
166
- emits: [d.CLOSE, d.BACK],
168
+ emits: [f.CLOSE, f.BACK],
167
169
  setup(s, { emit: e }) {
168
- const n = i(null), t = i(0), o = i(s.items.length), u = () => e(d.CLOSE), r = () => e(d.BACK), l = C(() => {
169
- var m;
170
- const _ = (m = s.items) == null ? void 0 : m.map((y) => ({
171
- ...y,
172
- indent: !y.icon,
170
+ const n = a(null), t = a(0), u = a(s.items.length), d = () => e(f.CLOSE), m = () => e(f.BACK), l = b(() => {
171
+ var p;
172
+ const y = (p = s.items) == null ? void 0 : p.map((_) => ({
173
+ ..._,
174
+ indent: !_.icon,
173
175
  isTitle: !1,
174
- clickHandler: u
176
+ clickHandler: d
175
177
  }));
176
178
  return [
177
179
  {
178
180
  text: s.title,
179
181
  secondaryText: null,
180
182
  critical: !1,
181
- icon: R,
183
+ icon: P,
182
184
  isTitle: !0,
183
185
  disabled: !1,
184
186
  indent: !1,
185
- handler: r,
186
- clickHandler: r,
187
+ handler: m,
188
+ clickHandler: m,
187
189
  addDivider: !0
188
190
  },
189
- ..._
191
+ ...y
190
192
  ];
191
- }), p = async () => {
192
- var _, m, y, k, v;
193
- (v = (k = (y = (m = (_ = n.value) == null ? void 0 : _.children) == null ? void 0 : m[t.value]) == null ? void 0 : y.children) == null ? void 0 : k[0]) == null || v.focus();
193
+ }), r = async () => {
194
+ var y, p, _, v, h;
195
+ (h = (v = (_ = (p = (y = n.value) == null ? void 0 : y.children) == null ? void 0 : p[t.value]) == null ? void 0 : _.children) == null ? void 0 : v[0]) == null || h.focus();
194
196
  };
195
- U(async () => {
196
- setTimeout(() => p(), 150);
197
+ H(async () => {
198
+ setTimeout(() => r(), 150);
197
199
  });
198
- const a = () => {
199
- t.value > 0 ? (t.value -= 1, l.value[t.value].disabled && a()) : t.value = o.value, p();
200
- }, b = () => {
201
- t.value < o.value ? (t.value += 1, l.value[t.value].disabled && b()) : t.value = 0, p();
200
+ const o = () => {
201
+ t.value > 0 ? (t.value -= 1, l.value[t.value].disabled && o()) : t.value = u.value, r();
202
+ }, I = () => {
203
+ t.value < u.value ? (t.value += 1, l.value[t.value].disabled && I()) : t.value = 0, r();
202
204
  };
203
205
  return {
204
206
  // Enums
205
- BentoMenuEvent: d,
207
+ BentoMenuEvent: f,
206
208
  // Values
207
209
  subMenuItemListRefLocal: n,
208
210
  subMenuFocusedIndex: t,
209
- ChevronLeftIcon: R,
211
+ ChevronLeftIcon: P,
210
212
  computedItems: l,
211
213
  // Methods
212
- closeMenu: u,
213
- onBackButton: r,
214
- focusPrevious: a,
215
- focusNext: b
214
+ closeMenu: d,
215
+ onBackButton: m,
216
+ focusPrevious: o,
217
+ focusNext: I
216
218
  };
217
219
  }
218
220
  });
219
- var ie = function() {
221
+ var fe = function() {
220
222
  var e = this, n = e._self._c;
221
223
  return e._self._setupProxy, n("transition", { attrs: { name: "b-sub-menu-item-list__transition", appear: "" } }, [n("menu-list-container", { staticClass: "b-sub-menu-item-list" }, [n("ul", { ref: "subMenuItemListRefLocal", staticClass: "b-sub-menu-item-list__list", attrs: { role: "menu" }, on: { keydown: [function(t) {
222
224
  return !t.type.indexOf("key") && e._k(t.keyCode, "down", 40, t.key, ["Down", "ArrowDown"]) ? null : (t.stopPropagation(), e.focusNext.apply(null, arguments));
@@ -224,20 +226,20 @@ var ie = function() {
224
226
  return !t.type.indexOf("key") && e._k(t.keyCode, "up", 38, t.key, ["Up", "ArrowUp"]) ? null : (t.stopPropagation(), e.focusPrevious.apply(null, arguments));
225
227
  }, function(t) {
226
228
  return !t.type.indexOf("key") && e._k(t.keyCode, "esc", 27, t.key, ["Esc", "Escape"]) ? null : (t.stopPropagation(), e.onBackButton.apply(null, arguments));
227
- }] } }, e._l(e.computedItems, function(t, o) {
228
- return n("li", { key: `sub-menu-item-list-item-${o}`, attrs: { role: "none" } }, [n("menu-item", { attrs: { text: t.text, handler: t.handler, "secondary-text": t.secondaryText, icon: t.icon, "is-title": t.isTitle, disabled: t.disabled, critical: t.critical, indent: t.indent, tabindex: o === e.subMenuFocusedIndex ? "0" : "-1" }, on: { click: t.clickHandler } }), t.addDivider ? n("bento-divider", { staticClass: "b-sub-menu-item-list__divider" }) : e._e()], 1);
229
+ }] } }, e._l(e.computedItems, function(t, u) {
230
+ return n("li", { key: `sub-menu-item-list-item-${u}`, attrs: { role: "none" } }, [n("menu-item", { attrs: { text: t.text, handler: t.handler, "secondary-text": t.secondaryText, icon: t.icon, "is-title": t.isTitle, disabled: t.disabled, critical: t.critical, indent: t.indent, tabindex: u === e.subMenuFocusedIndex ? "0" : "-1" }, on: { click: t.clickHandler } }), t.addDivider ? n("bento-divider", { staticClass: "b-sub-menu-item-list__divider" }) : e._e()], 1);
229
231
  }), 0)])], 1);
230
- }, ce = [], fe = /* @__PURE__ */ g(
231
- re,
232
- ie,
232
+ }, de = [], me = /* @__PURE__ */ x(
233
233
  ce,
234
+ fe,
235
+ de,
234
236
  !1,
235
237
  null,
236
238
  "25195627"
237
239
  );
238
- const de = fe.exports, me = x({
240
+ const pe = me.exports, _e = M({
239
241
  name: "menu-item-list",
240
- components: { BentoDivider: D, MenuItem: F, MenuListContainer: N, SubMenuItemList: de },
242
+ components: { BentoDivider: A, MenuItem: K, MenuListContainer: U, SubMenuItemList: pe },
241
243
  props: {
242
244
  /**
243
245
  * The data to be displayed in the list
@@ -268,62 +270,67 @@ const de = fe.exports, me = x({
268
270
  default: !0
269
271
  }
270
272
  },
271
- emits: [d.CLOSE, "menu-item-click"],
272
- setup(s, { emit: e }) {
273
- const n = i(null), t = i(null), o = i(null), u = i(!1), r = i(null), l = i(s.focusLastElement ? s.data.length - 1 : 0), p = i(0), a = i(s.data.length - 1), b = C(() => s.data.some((c) => c.icon)), _ = C(() => s.indentItems || b.value ? s.data.map((c) => {
274
- let f = !1;
275
- return c.icon || (f = !0), {
276
- ...c,
273
+ emits: [f.CLOSE, "menu-item-click"],
274
+ setup(s, { emit: e, expose: n }) {
275
+ const t = a(null), u = a(null), d = a(null), m = a(null), l = a(!1), r = a(null), o = a(s.focusLastElement ? s.data.length - 1 : 0), I = a(0), y = a(s.data.length - 1), p = b(() => s.data.some((i) => i.icon)), _ = b(() => s.indentItems || p.value ? s.data.map((i) => {
276
+ let c = !1;
277
+ return i.icon || (c = !0), {
278
+ ...i,
277
279
  // eslint-disable-next-line no-param-reassign
278
- indent: f
280
+ indent: c
279
281
  };
280
- }) : s.data), m = () => {
281
- var c, f, h;
282
- return (h = (f = (c = n.value) == null ? void 0 : c.children[l.value]) == null ? void 0 : f.children[0]) == null ? void 0 : h.focus();
283
- }, y = () => e(d.CLOSE), k = (c, f) => {
284
- if (c.items) {
285
- r.value = f, u.value = !0;
282
+ }) : s.data), v = async () => {
283
+ var i, c, k;
284
+ (k = (c = (i = u.value) == null ? void 0 : i.children[o.value]) == null ? void 0 : c.children[0]) == null || k.focus();
285
+ }, h = () => e(f.CLOSE), B = (i, c) => {
286
+ if (i.items) {
287
+ r.value = c, l.value = !0;
286
288
  return;
287
289
  }
288
- r.value = f, u.value = !1, s.closeMenuOnItemSelect && y(), e("menu-item-click");
289
- }, v = () => {
290
- l.value > 0 ? (l.value -= 1, _.value[l.value].disabled && v()) : l.value = a.value, m();
291
- }, I = () => {
292
- l.value < a.value ? (l.value += 1, _.value[l.value].disabled && I()) : l.value = 0, m();
293
- }, B = (c, f) => {
294
- var h;
295
- (h = c == null ? void 0 : c.items) != null && h.length && (r.value = f, u.value = !0);
296
- }, M = () => {
297
- r.value && u.value && (r.value = null, u.value = !1);
298
- }, L = () => {
299
- u.value = !1, r.value = null, m();
300
- }, S = C(() => {
301
- var c, f, h;
302
- return (h = (f = (c = o.value) == null ? void 0 : c[0]) == null ? void 0 : f.$el) == null ? void 0 : h.offsetHeight;
303
- }), K = C(() => u.value ? `${S.value}px` : "");
290
+ r.value = c, l.value = !1, !i.skipClose && s.closeMenuOnItemSelect !== !1 && h(), e("menu-item-click");
291
+ }, g = () => {
292
+ o.value > 0 ? (o.value -= 1, _.value[o.value].disabled && g()) : o.value = y.value, v();
293
+ }, O = () => {
294
+ o.value < y.value ? (o.value += 1, _.value[o.value].disabled && O()) : o.value = 0, v();
295
+ }, R = (i, c) => {
296
+ var k;
297
+ (k = i == null ? void 0 : i.items) != null && k.length && (r.value = c, l.value = !0);
298
+ }, S = () => {
299
+ r.value && l.value && (r.value = null, l.value = !1);
300
+ }, w = () => {
301
+ l.value = !1, r.value = null, v();
302
+ };
303
+ n({
304
+ focusItem: v
305
+ });
306
+ const L = b(() => {
307
+ var i, c, k;
308
+ return (k = (c = (i = m.value) == null ? void 0 : i[0]) == null ? void 0 : c.$el) == null ? void 0 : k.offsetHeight;
309
+ }), C = b(() => l.value ? `${L.value}px` : "");
304
310
  return {
305
311
  // Values
306
- menuItemListRef: n,
307
- menuItemListWrapperRef: t,
308
- subMenuItemListRef: o,
312
+ menuItemListRef: u,
313
+ menuItemListWrapperRef: d,
314
+ subMenuItemListRef: m,
315
+ menuItemRef: t,
309
316
  computedData: _,
310
- computedHeight: K,
311
- focusedIndex: l,
312
- subMenuFocusedIndex: p,
313
- showSubMenu: u,
317
+ computedHeight: C,
318
+ focusedIndex: o,
319
+ subMenuFocusedIndex: I,
320
+ showSubMenu: l,
314
321
  visibleSubMenuIndex: r,
315
322
  // Methods
316
- menuItemClick: k,
317
- closeMenu: y,
318
- focusPrevious: v,
319
- focusNext: I,
320
- focusRight: B,
321
- focusLeft: M,
322
- onBackButton: L
323
+ menuItemClick: B,
324
+ closeMenu: h,
325
+ focusPrevious: g,
326
+ focusNext: O,
327
+ focusRight: R,
328
+ focusLeft: S,
329
+ onBackButton: w
323
330
  };
324
331
  }
325
332
  });
326
- var pe = function() {
333
+ var ye = function() {
327
334
  var e = this, n = e._self._c;
328
335
  return e._self._setupProxy, n("menu-list-container", { ref: "menuItemListWrapperRef", style: { height: e.computedHeight } }, [n("ul", { ref: "menuItemListRef", staticClass: "b-menu-item-list", attrs: { role: "menu" }, on: { keydown: [function(t) {
329
336
  return !t.type.indexOf("key") && e._k(t.keyCode, "down", 40, t.key, ["Down", "ArrowDown"]) ? null : e.focusNext.apply(null, arguments);
@@ -333,46 +340,46 @@ var pe = function() {
333
340
  return !t.type.indexOf("key") && e._k(t.keyCode, "esc", 27, t.key, ["Esc", "Escape"]) ? null : e.closeMenu.apply(null, arguments);
334
341
  }, function(t) {
335
342
  return !t.type.indexOf("key") && e._k(t.keyCode, "tab", 9, t.key, "Tab") ? null : e.closeMenu.apply(null, arguments);
336
- }] } }, e._l(e.computedData, function(t, o) {
337
- var u, r, l, p;
338
- return n("li", { key: `menu-item-${o}`, staticClass: "b-menu-item-list__item", attrs: { role: "none" }, on: { keydown: [function(a) {
339
- return !a.type.indexOf("key") && e._k(a.keyCode, "right", 39, a.key, ["Right", "ArrowRight"]) || "button" in a && a.button !== 2 ? null : e.focusRight(t, o);
340
- }, function(a) {
341
- return !a.type.indexOf("key") && e._k(a.keyCode, "left", 37, a.key, ["Left", "ArrowLeft"]) || "button" in a && a.button !== 0 ? null : e.focusLeft();
342
- }] } }, [n("menu-item", { attrs: { text: t.text, handler: (u = t.items) != null && u.length ? () => null : t.handler, "secondary-text": t.secondaryText, icon: t.icon, chevron: !!((r = t.items) != null && r.length), disabled: t.disabled, critical: t.critical, indent: t.indent, tabindex: o === e.subMenuFocusedIndex ? "0" : "-1", "aria-haspopup": !!((l = t.items) != null && l.length), "aria-expanded": e.showSubMenu && e.visibleSubMenuIndex === o }, on: { click: function(a) {
343
- return e.menuItemClick(t, o);
344
- } } }), t.addDivider ? n("bento-divider", { staticClass: "b-menu-item-list__divider" }) : e._e(), (p = t.items) != null && p.length && e.showSubMenu && e.visibleSubMenuIndex === o ? n("sub-menu-item-list", { ref: "subMenuItemListRef", refInFor: !0, attrs: { items: t.items, title: t.text }, on: { back: e.onBackButton, close: e.closeMenu } }) : e._e()], 1);
343
+ }] } }, e._l(e.computedData, function(t, u) {
344
+ var d, m, l, r;
345
+ return n("li", { key: `menu-item-${u}`, ref: "menuItemRef", refInFor: !0, staticClass: "b-menu-item-list__item", attrs: { role: "none" }, on: { keydown: [function(o) {
346
+ return !o.type.indexOf("key") && e._k(o.keyCode, "right", 39, o.key, ["Right", "ArrowRight"]) || "button" in o && o.button !== 2 ? null : e.focusRight(t, u);
347
+ }, function(o) {
348
+ return !o.type.indexOf("key") && e._k(o.keyCode, "left", 37, o.key, ["Left", "ArrowLeft"]) || "button" in o && o.button !== 0 ? null : e.focusLeft();
349
+ }] } }, [n("menu-item", { attrs: { text: t.text, handler: (d = t.items) != null && d.length ? () => null : t.handler, "secondary-text": t.secondaryText, icon: t.icon, chevron: !!((m = t.items) != null && m.length), disabled: t.disabled, critical: t.critical, indent: t.indent, tabindex: u === e.subMenuFocusedIndex ? "0" : "-1", "aria-haspopup": !!((l = t.items) != null && l.length), "aria-expanded": e.showSubMenu && e.visibleSubMenuIndex === u }, on: { click: function(o) {
350
+ return e.menuItemClick(t, u);
351
+ } } }), t.addDivider ? n("bento-divider", { staticClass: "b-menu-item-list__divider" }) : e._e(), (r = t.items) != null && r.length && e.showSubMenu && e.visibleSubMenuIndex === u ? n("sub-menu-item-list", { ref: "subMenuItemListRef", refInFor: !0, attrs: { items: t.items, title: t.text }, on: { back: e.onBackButton, close: e.closeMenu } }) : e._e()], 1);
345
352
  }), 0)]);
346
- }, _e = [], ye = /* @__PURE__ */ g(
347
- me,
348
- pe,
353
+ }, ve = [], Ce = /* @__PURE__ */ x(
349
354
  _e,
355
+ ye,
356
+ ve,
350
357
  !1,
351
358
  null,
352
- "f2e65437"
359
+ "855615f2"
353
360
  );
354
- const ve = ye.exports, Ce = Symbol("menu inverse style injection key");
355
- let T = 0;
356
- const be = {
361
+ const be = Ce.exports, ke = Symbol("menu inverse style injection key");
362
+ let F = 0;
363
+ const he = {
357
364
  beforeCreate() {
358
- this.uuid = T.toString(), T += 1;
365
+ this.uuid = F.toString(), F += 1;
359
366
  }
360
367
  };
361
- var ke = function() {
368
+ var ge = function() {
362
369
  var e = this, n = e._self._c;
363
370
  return n("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("path", { attrs: { fill: "#00112C", d: "M8 4C8.29667 4 8.58668 3.91203 8.83335 3.74721C9.08003 3.58238 9.27229 3.34811 9.38582 3.07403C9.49935 2.79994 9.52906 2.49834 9.47118 2.20737C9.4133 1.91639 9.27044 1.64912 9.06066 1.43934C8.85088 1.22956 8.58361 1.0867 8.29264 1.02882C8.00167 0.970945 7.70006 1.00065 7.42598 1.11418C7.15189 1.22771 6.91762 1.41997 6.7528 1.66665C6.58797 1.91332 6.5 2.20333 6.5 2.5C6.5 2.89783 6.65803 3.27936 6.93934 3.56066C7.22064 3.84197 7.60218 4 8 4Z" } }), n("path", { attrs: { fill: "#00112C", d: "M8 15C8.29667 15 8.58668 14.912 8.83335 14.7472C9.08003 14.5824 9.27229 14.3481 9.38582 14.074C9.49935 13.7999 9.52906 13.4983 9.47118 13.2074C9.4133 12.9164 9.27044 12.6491 9.06066 12.4393C8.85088 12.2296 8.58361 12.0867 8.29264 12.0288C8.00167 11.9709 7.70006 12.0007 7.42598 12.1142C7.15189 12.2277 6.91762 12.42 6.7528 12.6666C6.58797 12.9133 6.5 13.2033 6.5 13.5C6.5 13.8978 6.65803 14.2794 6.93934 14.5607C7.22064 14.842 7.60218 15 8 15Z" } }), n("path", { attrs: { fill: "#00112C", d: "M8.83335 9.24721C8.58668 9.41203 8.29667 9.5 8 9.5C7.60218 9.5 7.22064 9.34197 6.93934 9.06066C6.65803 8.77936 6.5 8.39783 6.5 8C6.5 7.70333 6.58797 7.41332 6.7528 7.16665C6.91762 6.91997 7.15189 6.72771 7.42598 6.61418C7.70006 6.50065 8.00167 6.47094 8.29264 6.52882C8.58361 6.5867 8.85088 6.72956 9.06066 6.93934C9.27044 7.14912 9.4133 7.41639 9.47118 7.70737C9.52906 7.99834 9.49935 8.29994 9.38582 8.57403C9.27229 8.84811 9.08003 9.08238 8.83335 9.24721Z" } })]);
364
- }, he = [], ge = /* @__PURE__ */ g(
365
- be,
366
- ke,
371
+ }, Ie = [], xe = /* @__PURE__ */ x(
367
372
  he,
373
+ ge,
374
+ Ie,
368
375
  !1,
369
376
  null,
370
377
  null
371
378
  );
372
- const xe = ge.exports, Ie = x({
373
- i18n: { messages: A },
379
+ const Be = xe.exports, Me = M({
380
+ i18n: { messages: W },
374
381
  name: "bento-menu",
375
- components: { BentoToggleButton: Q, BentoPopover: H, BentoTeleport: q, MenuItemList: ve, OptionsVerticalIcon: xe },
382
+ components: { BentoToggleButton: $, BentoPopover: q, BentoTeleport: V, MenuItemList: be, OptionsVerticalIcon: Be },
376
383
  props: {
377
384
  /**
378
385
  * Object containing props to change the menu button appearance. Accepts the same props present in BentoButton.
@@ -403,8 +410,8 @@ const xe = ge.exports, Ie = x({
403
410
  */
404
411
  menuPosition: {
405
412
  type: String,
406
- default: O.BOTTOM_START,
407
- validator: (s) => Object.values(O).includes(s)
413
+ default: T.BOTTOM_START,
414
+ validator: (s) => Object.values(T).includes(s)
408
415
  },
409
416
  /**
410
417
  * Instructs the menu popover to be visible outside of the containing container.
@@ -437,67 +444,93 @@ const xe = ge.exports, Ie = x({
437
444
  teleport: {
438
445
  type: Boolean,
439
446
  default: !1
447
+ },
448
+ /**
449
+ * Can be used to set the inner teleport component to render the menu's popover in the root `body` DOM node
450
+ * (or `dialog` if popover is inside a dialog).
451
+ *
452
+ * @see {@link OnClickOutsideOptions}
453
+ */
454
+ closeOnClickOutsideOptions: {
455
+ type: Object,
456
+ default: void 0
440
457
  }
441
458
  },
442
- emits: [d.CLOSE, d.OPEN, "menu-item-click"],
443
- setup(s, { emit: e, slots: n }) {
444
- const { t } = J(), o = i(null), u = i(!1), r = i(!1), l = i(null), p = w("menu"), a = w("menu-popover"), b = P(Ce, i(!1));
445
- W(j, b);
446
- const _ = C(() => ({
447
- "b-menu--inverse": b.value
448
- })), m = C(() => s.menuWidth ? { width: `${s.menuWidth}px` } : null), y = C(() => {
459
+ emits: [f.CLOSE, f.OPEN, "menu-item-click", "click-outside"],
460
+ setup(s, { emit: e, expose: n, slots: t }) {
461
+ var L;
462
+ const { t: u } = Z(), d = a(null), m = a(null), l = a(!1), r = a(!1), o = a(null), I = E("menu"), y = E("menu-popover"), p = N(ke, a(!1));
463
+ j(G, p);
464
+ const _ = b(() => ({
465
+ "b-menu--inverse": p.value
466
+ })), v = b(() => s.menuWidth ? { width: `${s.menuWidth}px` } : null), h = b(() => {
449
467
  if (s != null && s.button)
450
468
  return {
451
469
  variant: "secondary",
452
470
  ...s.button
453
471
  };
454
- }), k = () => {
455
- u.value = !0, e(d.OPEN);
456
- }, v = () => {
457
- u.value && (u.value = !1, s.revertFocusToButton && o.value.$el.focus(), e(d.CLOSE));
458
- }, I = (S) => {
459
- S.stopPropagation(), u.value ? v() : k();
460
- }, B = () => {
461
- r.value = !1, k();
462
- }, M = () => {
463
- r.value = !0, k();
464
- }, L = () => {
472
+ }), B = () => {
473
+ l.value = !0, e(f.OPEN);
474
+ }, g = (C = s.revertFocusToButton) => {
475
+ l.value && (l.value = !1, C && d.value.$el.focus(), e(f.CLOSE));
476
+ }, O = (C) => {
477
+ C.stopPropagation(), l.value ? g() : B();
478
+ }, R = (C) => {
479
+ C.preventDefault(), r.value = !1, B();
480
+ }, S = (C) => {
481
+ C.preventDefault(), r.value = !0, B();
482
+ }, w = () => {
465
483
  e("menu-item-click");
466
484
  };
467
- return G(l, v, { ignore: [o] }), {
485
+ return J(
486
+ o,
487
+ () => {
488
+ g(), e("click-outside");
489
+ },
490
+ {
491
+ ...s.closeOnClickOutsideOptions,
492
+ ignore: [d, ...((L = s.closeOnClickOutsideOptions) == null ? void 0 : L.ignore) ?? []]
493
+ }
494
+ ), n({
495
+ /**
496
+ * Control to enable programmatic closing of the menu
497
+ */
498
+ closeMenu: g
499
+ }), {
468
500
  // Refs
469
- popoverRef: l,
470
- menuButtonRef: o,
501
+ popoverRef: o,
502
+ menuButtonRef: d,
503
+ menuItemListRef: m,
471
504
  // Values
472
- menuId: p,
473
- popoverId: a,
474
- showMenu: u,
475
- computedButtonPropsWithDefaults: y,
476
- computedMenuWidth: m,
505
+ menuId: I,
506
+ popoverId: y,
507
+ showMenu: l,
508
+ computedButtonPropsWithDefaults: h,
509
+ computedMenuWidth: v,
477
510
  isLastElementFocused: r,
478
511
  // Classes
479
512
  computedClasses: _,
480
- isInverseColorSet: b,
513
+ isInverseColorSet: p,
481
514
  // Methods
482
- hasSlot: V(n),
483
- onKeyDown: B,
484
- onKeyUp: M,
485
- closeMenu: v,
486
- menuItemClick: L,
487
- toggleShowMenu: I,
515
+ hasSlot: Y(t),
516
+ onKeyDown: R,
517
+ onKeyUp: S,
518
+ closeMenu: g,
519
+ menuItemClick: w,
520
+ toggleShowMenu: O,
488
521
  // Translations
489
- t
522
+ t: u
490
523
  };
491
524
  }
492
525
  });
493
- var Be = function() {
526
+ var Oe = function() {
494
527
  var e = this, n = e._self._c;
495
- return e._self._setupProxy, n("div", { staticClass: "b-menu", class: e.computedClasses, on: { keydown: [function(t) {
528
+ return e._self._setupProxy, n("div", { staticClass: "b-menu", class: e.computedClasses, attrs: { "data-testid": "menu" }, on: { keydown: [function(t) {
496
529
  return !t.type.indexOf("key") && e._k(t.keyCode, "down", 40, t.key, ["Down", "ArrowDown"]) ? null : e.onKeyDown.apply(null, arguments);
497
530
  }, function(t) {
498
531
  return !t.type.indexOf("key") && e._k(t.keyCode, "up", 38, t.key, ["Up", "ArrowUp"]) ? null : e.onKeyUp.apply(null, arguments);
499
532
  }, function(t) {
500
- return !t.type.indexOf("key") && e._k(t.keyCode, "esc", 27, t.key, ["Esc", "Escape"]) ? null : e.closeMenu.apply(null, arguments);
533
+ return !t.type.indexOf("key") && e._k(t.keyCode, "esc", 27, t.key, ["Esc", "Escape"]) ? null : e.closeMenu();
501
534
  }] } }, [n("bento-toggle-button", e._b({ ref: "menuButtonRef", attrs: { "aria-haspopup": "true", "aria-controls": e.showMenu ? e.menuId : null, toggled: e.showMenu, inverse: e.isInverseColorSet }, on: { click: e.toggleShowMenu }, scopedSlots: e._u([!e.hasSlot("default") || e.hasSlot("iconLeft") ? { key: "iconLeft", fn: function() {
502
535
  return [e._t("iconLeft", function() {
503
536
  return [n("options-vertical-icon", { attrs: { title: e.t("menuButton") } })];
@@ -506,7 +539,7 @@ var Be = function() {
506
539
  return [e._t("default")];
507
540
  }, proxy: !0 } : null, e.hasSlot("iconRight") ? { key: "iconRight", fn: function() {
508
541
  return [e._t("iconRight")];
509
- }, proxy: !0 } : null], null, !0) }, "bento-toggle-button", e.computedButtonPropsWithDefaults, !1)), e.menuButtonRef ? n("bento-teleport", { attrs: { disabled: !e.teleport } }, [e.menuButtonRef ? n("bento-popover", { ref: "popoverRef", staticClass: "b-menu__popover", style: e.computedMenuWidth, attrs: { id: e.menuId, open: e.showMenu, "target-element": e.menuButtonRef, position: e.menuPosition, "fixed-positioning": e.menuFixedPositioning, "fallback-position": [
542
+ }, proxy: !0 } : null], null, !0) }, "bento-toggle-button", e.computedButtonPropsWithDefaults, !1)), e.menuButtonRef ? n("bento-teleport", { attrs: { disabled: !e.teleport } }, [e.menuButtonRef ? n("bento-popover", { ref: "popoverRef", staticClass: "b-menu__popover", style: e.computedMenuWidth, attrs: { id: e.menuId, role: null, open: e.showMenu, "target-element": e.menuButtonRef, position: e.menuPosition, "fixed-positioning": e.menuFixedPositioning, "fallback-position": [
510
543
  "bottom-start",
511
544
  "bottom-end",
512
545
  "top-start",
@@ -515,21 +548,21 @@ var Be = function() {
515
548
  "right-end",
516
549
  "left-start",
517
550
  "left-end"
518
- ], teleport: e.teleport, "without-space": "" } }, [n("menu-item-list", { attrs: { "close-menu-on-item-select": e.closeMenuOnItemSelect, data: e.data, "focus-last-element": e.isLastElementFocused }, on: { close: e.closeMenu, "menu-item-click": e.menuItemClick } })], 1) : e._e()], 1) : e._e()], 1);
519
- }, Me = [], Le = /* @__PURE__ */ g(
520
- Ie,
521
- Be,
551
+ ], teleport: e.teleport, "without-space": "" } }, [n("menu-item-list", { ref: "menuItemListRef", attrs: { "close-menu-on-item-select": e.closeMenuOnItemSelect, data: e.data, "focus-last-element": e.isLastElementFocused }, on: { close: e.closeMenu, "menu-item-click": e.menuItemClick } })], 1) : e._e()], 1) : e._e()], 1);
552
+ }, Le = [], Re = /* @__PURE__ */ x(
522
553
  Me,
554
+ Oe,
555
+ Le,
523
556
  !1,
524
557
  null,
525
- "0b7f4a1a"
558
+ "1d35f397"
526
559
  );
527
- const Ue = Le.exports;
560
+ const qe = Re.exports;
528
561
  export {
529
- Ue as B,
530
- ne as D,
531
- Ce as M,
532
- xe as O,
533
- d as a
562
+ qe as B,
563
+ oe as D,
564
+ ke as M,
565
+ Be as O,
566
+ f as a
534
567
  };
535
- //# sourceMappingURL=menu.lbODB0y3.js.map
568
+ //# sourceMappingURL=menu.CzbkunwY.js.map