@adyen/bento-vue2 1.50.0 → 1.52.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 (345) hide show
  1. package/dist/@types/index.d.ts +513 -608
  2. package/dist/accordion.js +1 -1
  3. package/dist/action-bar.js +1 -1
  4. package/dist/alert.js +1 -1
  5. package/dist/assets/accordion-item.css +1 -1
  6. package/dist/assets/action-bar.css +1 -1
  7. package/dist/assets/alert.css +1 -1
  8. package/dist/assets/base-modal.css +1 -1
  9. package/dist/assets/button-actions-with-menu.css +1 -1
  10. package/dist/assets/calendar.css +1 -1
  11. package/dist/assets/card.css +1 -1
  12. package/dist/assets/checkbox-input.css +1 -1
  13. package/dist/assets/checkbox.css +1 -1
  14. package/dist/assets/copy.css +1 -1
  15. package/dist/assets/data-grid.css +1 -1
  16. package/dist/assets/date-picker.css +1 -1
  17. package/dist/assets/date-range-picker.css +1 -1
  18. package/dist/assets/dialog-page.css +1 -1
  19. package/dist/assets/dropdown.css +1 -1
  20. package/dist/assets/file-uploader.css +1 -1
  21. package/dist/assets/filter-bar.css +1 -1
  22. package/dist/assets/form-layout-title.css +1 -1
  23. package/dist/assets/input-field-password.css +1 -1
  24. package/dist/assets/input-field-phone-number.css +1 -1
  25. package/dist/assets/input-field.css +1 -1
  26. package/dist/assets/inspector.css +1 -1
  27. package/dist/assets/link.css +1 -1
  28. package/dist/assets/menu.css +1 -1
  29. package/dist/assets/modal-fullscreen.css +1 -1
  30. package/dist/assets/pagination.css +1 -1
  31. package/dist/assets/payment-method.css +1 -1
  32. package/dist/assets/popover.css +1 -1
  33. package/dist/assets/search-bar.css +1 -1
  34. package/dist/assets/sidepanel.css +1 -1
  35. package/dist/assets/timeline-item.css +1 -1
  36. package/dist/assets/tutorial.css +1 -1
  37. package/dist/assets/use-cached-selected-values.css +1 -1
  38. package/dist/button.js +3 -3
  39. package/dist/card.js +1 -1
  40. package/dist/checkbox.js +3 -3
  41. package/dist/chip.js +1 -1
  42. package/dist/chunks/{accordion-item.CTxrEQEW.js → accordion-item.C4tyRMCt.js} +2 -2
  43. package/dist/chunks/{accordion-item.CTxrEQEW.js.map → accordion-item.C4tyRMCt.js.map} +1 -1
  44. package/dist/chunks/{action-bar.CGJJrMpa.js → action-bar.DuJkjAt1.js} +7 -7
  45. package/dist/chunks/{action-bar.CGJJrMpa.js.map → action-bar.DuJkjAt1.js.map} +1 -1
  46. package/dist/chunks/{alert.hiTIDSeX.js → alert.BkMKX9wD.js} +15 -14
  47. package/dist/chunks/alert.BkMKX9wD.js.map +1 -0
  48. package/dist/chunks/{base-modal.8kcvtFRx.js → base-modal.CiTysydg.js} +6 -6
  49. package/dist/chunks/{base-modal.8kcvtFRx.js.map → base-modal.CiTysydg.js.map} +1 -1
  50. package/dist/chunks/button-actions-with-menu.B9oXYIgo.js +166 -0
  51. package/dist/chunks/button-actions-with-menu.B9oXYIgo.js.map +1 -0
  52. package/dist/chunks/{button-actions.BovYBINL.js → button-actions.DAvSJtOB.js} +4 -4
  53. package/dist/chunks/{button-actions.BovYBINL.js.map → button-actions.DAvSJtOB.js.map} +1 -1
  54. package/dist/chunks/{button.CdAFZa4V.js → button.D-3uUhuG.js} +2 -2
  55. package/dist/chunks/{button.CdAFZa4V.js.map → button.D-3uUhuG.js.map} +1 -1
  56. package/dist/chunks/calendar.Bq67h02Z.js +1130 -0
  57. package/dist/chunks/calendar.Bq67h02Z.js.map +1 -0
  58. package/dist/chunks/{card.D-w9c3-n.js → card.AQO_BjGb.js} +3 -3
  59. package/dist/chunks/{card.D-w9c3-n.js.map → card.AQO_BjGb.js.map} +1 -1
  60. package/dist/chunks/{checkbox-group.wa6Mtmxa.js → checkbox-group.CqSIn-lG.js} +4 -4
  61. package/dist/chunks/{checkbox-group.wa6Mtmxa.js.map → checkbox-group.CqSIn-lG.js.map} +1 -1
  62. package/dist/chunks/checkbox-input.CMhyJDdo.js +129 -0
  63. package/dist/chunks/checkbox-input.CMhyJDdo.js.map +1 -0
  64. package/dist/chunks/checkbox.BeYtbfPv.js +170 -0
  65. package/dist/chunks/checkbox.BeYtbfPv.js.map +1 -0
  66. package/dist/chunks/checkmark-circle-fill.DZBl7CeY.js +24 -0
  67. package/dist/chunks/checkmark-circle-fill.DZBl7CeY.js.map +1 -0
  68. package/dist/chunks/{checkmark-small.BtF8b2gE.js → checkmark-small.C8T8ISN6.js} +4 -4
  69. package/dist/chunks/checkmark-small.C8T8ISN6.js.map +1 -0
  70. package/dist/chunks/{chevron-left.PIu6yPqe.js → chevron-left.DOMTgGel.js} +6 -6
  71. package/dist/chunks/chevron-left.DOMTgGel.js.map +1 -0
  72. package/dist/chunks/{chevron-up.DVfo78kV.js → chevron-up.CSVyoaTy.js} +6 -6
  73. package/dist/chunks/chevron-up.CSVyoaTy.js.map +1 -0
  74. package/dist/chunks/{chip.HNUA9VZl.js → chip.BeK9uqmW.js} +24 -21
  75. package/dist/chunks/chip.BeK9uqmW.js.map +1 -0
  76. package/dist/chunks/{code-snippet.3s8WCnke.js → code-snippet.CW42FdpP.js} +7 -7
  77. package/dist/chunks/{code-snippet.3s8WCnke.js.map → code-snippet.CW42FdpP.js.map} +1 -1
  78. package/dist/chunks/{controls-group.BnDPMaGI.js → controls-group.D0_cJaFF.js} +2 -2
  79. package/dist/chunks/{controls-group.BnDPMaGI.js.map → controls-group.D0_cJaFF.js.map} +1 -1
  80. package/dist/chunks/{copy.DMlIj53I.js → copy.2iD8aI5a.js} +7 -6
  81. package/dist/chunks/copy.2iD8aI5a.js.map +1 -0
  82. package/dist/chunks/{cross-circle-fill-small.Oj6lPaDy.js → cross-circle-fill-small.YhLgeipP.js} +4 -4
  83. package/dist/chunks/cross-circle-fill-small.YhLgeipP.js.map +1 -0
  84. package/dist/chunks/cross-circle-fill.Ra0-PIUo.js +24 -0
  85. package/dist/chunks/cross-circle-fill.Ra0-PIUo.js.map +1 -0
  86. package/dist/chunks/{cross-small.BLUwtRB-.js → cross-small.CZqsjZDz.js} +4 -4
  87. package/dist/chunks/cross-small.CZqsjZDz.js.map +1 -0
  88. package/dist/chunks/{cross.CsUPDmaA.js → cross.CJ5EEL2c.js} +4 -4
  89. package/dist/chunks/cross.CJ5EEL2c.js.map +1 -0
  90. package/dist/chunks/{dashboard-section.BgyN5u0K.js → dashboard-section.Cmulh6WM.js} +4 -4
  91. package/dist/chunks/{dashboard-section.BgyN5u0K.js.map → dashboard-section.Cmulh6WM.js.map} +1 -1
  92. package/dist/chunks/{dashed-underline.Cvn5IoHT.js → dashed-underline.eMF75SuT.js} +3 -3
  93. package/dist/chunks/{dashed-underline.Cvn5IoHT.js.map → dashed-underline.eMF75SuT.js.map} +1 -1
  94. package/dist/chunks/{data-grid-template.DtWM0Tnu.js → data-grid-template.CdHnPE1-.js} +3 -3
  95. package/dist/chunks/{data-grid-template.DtWM0Tnu.js.map → data-grid-template.CdHnPE1-.js.map} +1 -1
  96. package/dist/chunks/{data-grid.N5Rxo6QB.js → data-grid.DedjAz4_.js} +38 -37
  97. package/dist/chunks/data-grid.DedjAz4_.js.map +1 -0
  98. package/dist/chunks/date-picker.BdMr3Sn2.js +235 -0
  99. package/dist/chunks/date-picker.BdMr3Sn2.js.map +1 -0
  100. package/dist/chunks/date-range-picker.BHfvD0GK.js +903 -0
  101. package/dist/chunks/date-range-picker.BHfvD0GK.js.map +1 -0
  102. package/dist/chunks/{date.YLIcAerL.js → date.dYFFEunA.js} +12 -12
  103. package/dist/chunks/{date.YLIcAerL.js.map → date.dYFFEunA.js.map} +1 -1
  104. package/dist/chunks/{dialog-page.Bf07JxdG.js → dialog-page.BfF5_hmG.js} +5 -4
  105. package/dist/chunks/dialog-page.BfF5_hmG.js.map +1 -0
  106. package/dist/chunks/{dot.BCX4w7eT.js → dot.CnkXzRn3.js} +4 -4
  107. package/dist/chunks/dot.CnkXzRn3.js.map +1 -0
  108. package/dist/chunks/{dropdown-default-textbox.CC9Z_RFG.js → dropdown-default-textbox.CDTdHfTv.js} +4 -4
  109. package/dist/chunks/{dropdown-default-textbox.CC9Z_RFG.js.map → dropdown-default-textbox.CDTdHfTv.js.map} +1 -1
  110. package/dist/chunks/{dropdown-tag.ClUMccWv.js → dropdown-tag.CvZ1jckk.js} +4 -4
  111. package/dist/chunks/{dropdown-tag.ClUMccWv.js.map → dropdown-tag.CvZ1jckk.js.map} +1 -1
  112. package/dist/chunks/{dropdown.CC1i41NX.js → dropdown.CcHoKbLz.js} +241 -232
  113. package/dist/chunks/dropdown.CcHoKbLz.js.map +1 -0
  114. package/dist/chunks/{empty-state.BnHTBgKG.js → empty-state.JbgxSrnv.js} +2 -2
  115. package/dist/chunks/{empty-state.BnHTBgKG.js.map → empty-state.JbgxSrnv.js.map} +1 -1
  116. package/dist/chunks/{error-message.xTNEaNn8.js → error-message.B1-ekAMa.js} +3 -3
  117. package/dist/chunks/{error-message.xTNEaNn8.js.map → error-message.B1-ekAMa.js.map} +1 -1
  118. package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
  119. package/dist/chunks/{expand.CwwKq7Uc.js → expand.C263WARj.js} +4 -4
  120. package/dist/chunks/expand.C263WARj.js.map +1 -0
  121. package/dist/chunks/{file-uploader.DTkxh9Ct.js → file-uploader.Dlfzh5QQ.js} +17 -16
  122. package/dist/chunks/file-uploader.Dlfzh5QQ.js.map +1 -0
  123. package/dist/chunks/{filter-bar.gj9sdW5T.js → filter-bar.CwqoJGiK.js} +735 -844
  124. package/dist/chunks/filter-bar.CwqoJGiK.js.map +1 -0
  125. package/dist/chunks/{fixed-scroller.DX2YUuoU.js → fixed-scroller.BwvXYzE6.js} +3 -3
  126. package/dist/chunks/{fixed-scroller.DX2YUuoU.js.map → fixed-scroller.BwvXYzE6.js.map} +1 -1
  127. package/dist/chunks/{focus-trap._RrLaKlq.js → focus-trap.CWlKh48z.js} +2 -2
  128. package/dist/chunks/{focus-trap._RrLaKlq.js.map → focus-trap.CWlKh48z.js.map} +1 -1
  129. package/dist/chunks/{footer-actions.BsoofCrv.js → footer-actions.BkHpWa7A.js} +3 -3
  130. package/dist/chunks/{footer-actions.BsoofCrv.js.map → footer-actions.BkHpWa7A.js.map} +1 -1
  131. package/dist/chunks/{form-layout-title.CJbgfh3P.js → form-layout-title.DK1-01RH.js} +50 -47
  132. package/dist/chunks/form-layout-title.DK1-01RH.js.map +1 -0
  133. package/dist/chunks/header.BAKjEGmH.js +183 -0
  134. package/dist/chunks/header.BAKjEGmH.js.map +1 -0
  135. package/dist/chunks/{index.CU8GKq4C.js → index.-wO_BQCb.js} +2 -1
  136. package/dist/chunks/{index.CU8GKq4C.js.map → index.-wO_BQCb.js.map} +1 -1
  137. package/dist/chunks/index.BDuTpjD8.js +40 -0
  138. package/dist/chunks/index.BDuTpjD8.js.map +1 -0
  139. package/dist/chunks/index.BxBB1rsx.js +15 -0
  140. package/dist/chunks/index.BxBB1rsx.js.map +1 -0
  141. package/dist/chunks/index.DD7TppDb.js +10 -0
  142. package/dist/chunks/index.DD7TppDb.js.map +1 -0
  143. package/dist/chunks/{info-icon-with-popover.B0zJWJZn.js → info-icon-with-popover.CxXWP4TR.js} +3 -3
  144. package/dist/chunks/{info-icon-with-popover.B0zJWJZn.js.map → info-icon-with-popover.CxXWP4TR.js.map} +1 -1
  145. package/dist/chunks/{info-icon.C4_l0WAf.js → info-icon.D3neDWqH.js} +4 -4
  146. package/dist/chunks/{info-icon.C4_l0WAf.js.map → info-icon.D3neDWqH.js.map} +1 -1
  147. package/dist/chunks/info.4d_mJHvT.js +24 -0
  148. package/dist/chunks/info.4d_mJHvT.js.map +1 -0
  149. package/dist/chunks/{input-field-password.PU9SY4FC.js → input-field-password.CO0lAgMh.js} +73 -70
  150. package/dist/chunks/input-field-password.CO0lAgMh.js.map +1 -0
  151. package/dist/chunks/{input-field-phone-number.D2juJ9ZD.js → input-field-phone-number.TXnK0dch.js} +324 -321
  152. package/dist/chunks/{input-field-phone-number.D2juJ9ZD.js.map → input-field-phone-number.TXnK0dch.js.map} +1 -1
  153. package/dist/chunks/input-field.De4sp76g.js +152 -0
  154. package/dist/chunks/input-field.De4sp76g.js.map +1 -0
  155. package/dist/chunks/{inspector.types.BtgXpTC7.js → inspector.types.ClnPOYmb.js} +6 -6
  156. package/dist/chunks/{inspector.types.BtgXpTC7.js.map → inspector.types.ClnPOYmb.js.map} +1 -1
  157. package/dist/chunks/{layout-row.CHwDU8yK.js → layout-row.dh2VyGoD.js} +2 -2
  158. package/dist/chunks/{layout-row.CHwDU8yK.js.map → layout-row.dh2VyGoD.js.map} +1 -1
  159. package/dist/chunks/{link.DZlbzVSB.js → link.BH3eB_7E.js} +4 -3
  160. package/dist/chunks/link.BH3eB_7E.js.map +1 -0
  161. package/dist/chunks/{listbox-option-tag.BJBWnC2r.js → listbox-option-tag.xGQr3Su1.js} +2 -2
  162. package/dist/chunks/{listbox-option-tag.BJBWnC2r.js.map → listbox-option-tag.xGQr3Su1.js.map} +1 -1
  163. package/dist/chunks/{menu.BC7ynpgF.js → menu.li3Kg9Uq.js} +227 -194
  164. package/dist/chunks/menu.li3Kg9Uq.js.map +1 -0
  165. package/dist/chunks/{modal-fullscreen.Dz3kSuTz.js → modal-fullscreen.C4eL63TC.js} +6 -6
  166. package/dist/chunks/{modal-fullscreen.Dz3kSuTz.js.map → modal-fullscreen.C4eL63TC.js.map} +1 -1
  167. package/dist/chunks/{modal.DV55hSPn.js → modal.BpDz0Dhc.js} +5 -5
  168. package/dist/chunks/{modal.DV55hSPn.js.map → modal.BpDz0Dhc.js.map} +1 -1
  169. package/dist/chunks/{pagination.CT-h2q0J.js → pagination.FuELftBG.js} +6 -5
  170. package/dist/chunks/pagination.FuELftBG.js.map +1 -0
  171. package/dist/chunks/payment-method.NZKiNOmM.js +76 -0
  172. package/dist/chunks/payment-method.NZKiNOmM.js.map +1 -0
  173. package/dist/chunks/{popover.CRdrSmFW.js → popover.Cb6utVhS.js} +29 -22
  174. package/dist/chunks/{popover.CRdrSmFW.js.map → popover.Cb6utVhS.js.map} +1 -1
  175. package/dist/chunks/{popper-container.CsW4R0-t.js → popper-container.CiEkF7eb.js} +356 -352
  176. package/dist/chunks/popper-container.CiEkF7eb.js.map +1 -0
  177. package/dist/chunks/{promo-banner.BNXfyv3h.js → promo-banner.PnHud5Wi.js} +3 -3
  178. package/dist/chunks/{promo-banner.BNXfyv3h.js.map → promo-banner.PnHud5Wi.js.map} +1 -1
  179. package/dist/chunks/{radio-group.CUgib4vp.js → radio-group._8PsjPCZ.js} +4 -4
  180. package/dist/chunks/{radio-group.CUgib4vp.js.map → radio-group._8PsjPCZ.js.map} +1 -1
  181. package/dist/chunks/{refresh.BKI9WwKh.js → refresh.Bc9FzGjJ.js} +4 -4
  182. package/dist/chunks/refresh.Bc9FzGjJ.js.map +1 -0
  183. package/dist/chunks/{search-bar.bMOGN8_E.js → search-bar.CVY2e8_B.js} +28 -46
  184. package/dist/chunks/search-bar.CVY2e8_B.js.map +1 -0
  185. package/dist/chunks/search.DLtglc02.js +24 -0
  186. package/dist/chunks/search.DLtglc02.js.map +1 -0
  187. package/dist/chunks/{secondary-nav.C9sm93do.js → secondary-nav.LxcuTR16.js} +3 -3
  188. package/dist/chunks/{secondary-nav.C9sm93do.js.map → secondary-nav.LxcuTR16.js.map} +1 -1
  189. package/dist/chunks/{segmented-control.BxCcPbKd.js → segmented-control.D69WXQGh.js} +2 -2
  190. package/dist/chunks/{segmented-control.BxCcPbKd.js.map → segmented-control.D69WXQGh.js.map} +1 -1
  191. package/dist/chunks/{selection-card-group.0O3gmtoi.js → selection-card-group.MTKkCBeK.js} +11 -11
  192. package/dist/chunks/{selection-card-group.0O3gmtoi.js.map → selection-card-group.MTKkCBeK.js.map} +1 -1
  193. package/dist/chunks/{show.IEAxtCB7.js → show.e4LEpZKG.js} +6 -6
  194. package/dist/chunks/show.e4LEpZKG.js.map +1 -0
  195. package/dist/chunks/{sidepanel.Dp6dKRnq.js → sidepanel.BStCbRqN.js} +6 -6
  196. package/dist/chunks/{sidepanel.Dp6dKRnq.js.map → sidepanel.BStCbRqN.js.map} +1 -1
  197. package/dist/chunks/{step.DrP2Frvn.js → step.CuOpi-Ye.js} +3 -3
  198. package/dist/chunks/{step.DrP2Frvn.js.map → step.CuOpi-Ye.js.map} +1 -1
  199. package/dist/chunks/{structured-list-item.DrY71Ndc.js → structured-list-item.CeosjL40.js} +6 -6
  200. package/dist/chunks/{structured-list-item.DrY71Ndc.js.map → structured-list-item.CeosjL40.js.map} +1 -1
  201. package/dist/chunks/{summary-grid-item-custom.CXs6AMS4.js → summary-grid-item-custom.CF_TS7oA.js} +4 -4
  202. package/dist/chunks/{summary-grid-item-custom.CXs6AMS4.js.map → summary-grid-item-custom.CF_TS7oA.js.map} +1 -1
  203. package/dist/chunks/{tabs.5zgaD1k3.js → tabs.UFoTqvew.js} +2 -2
  204. package/dist/chunks/{tabs.5zgaD1k3.js.map → tabs.UFoTqvew.js.map} +1 -1
  205. package/dist/chunks/{tag.CevG31iQ.js → tag.OgtZ3-ql.js} +2 -2
  206. package/dist/chunks/{tag.CevG31iQ.js.map → tag.OgtZ3-ql.js.map} +1 -1
  207. package/dist/chunks/{textarea.DHbXaxdU.js → textarea.BEISPJua.js} +4 -4
  208. package/dist/chunks/{textarea.DHbXaxdU.js.map → textarea.BEISPJua.js.map} +1 -1
  209. package/dist/chunks/{timeline-item.C4HOsaEG.js → timeline-item.BeWMuM8A.js} +15 -13
  210. package/dist/chunks/timeline-item.BeWMuM8A.js.map +1 -0
  211. package/dist/chunks/{toast.C5I7Wsfa.js → toast.DqSWycRO.js} +3 -3
  212. package/dist/chunks/{toast.C5I7Wsfa.js.map → toast.DqSWycRO.js.map} +1 -1
  213. package/dist/chunks/{toggle-button.DK4H4sHT.js → toggle-button.DgSFugBP.js} +2 -2
  214. package/dist/chunks/{toggle-button.DK4H4sHT.js.map → toggle-button.DgSFugBP.js.map} +1 -1
  215. package/dist/chunks/{toggle.CyaY0U0K.js → toggle.Q52IIKfi.js} +2 -2
  216. package/dist/chunks/{toggle.CyaY0U0K.js.map → toggle.Q52IIKfi.js.map} +1 -1
  217. package/dist/chunks/{tooltip.Bu8o7uyZ.js → tooltip.RPURZd36.js} +2 -2
  218. package/dist/chunks/{tooltip.Bu8o7uyZ.js.map → tooltip.RPURZd36.js.map} +1 -1
  219. package/dist/chunks/{tutorial.BbQox1EZ.js → tutorial.Ba8PTa0x.js} +10 -9
  220. package/dist/chunks/tutorial.Ba8PTa0x.js.map +1 -0
  221. package/dist/chunks/use-cached-selected-values.CxlYYUbd.js +1164 -0
  222. package/dist/chunks/use-cached-selected-values.CxlYYUbd.js.map +1 -0
  223. package/dist/chunks/{warning-filled.CLKRzGMT.js → warning-filled.Cd0kVWwa.js} +4 -4
  224. package/dist/chunks/warning-filled.Cd0kVWwa.js.map +1 -0
  225. package/dist/code-snippet.js +1 -1
  226. package/dist/dashboard-template.js +1 -1
  227. package/dist/dashed-underline.js +1 -1
  228. package/dist/data-grid-template.js +1 -1
  229. package/dist/data-grid.js +1 -1
  230. package/dist/date-picker.js +2 -2
  231. package/dist/date-range-picker.js +2 -2
  232. package/dist/date.js +1 -1
  233. package/dist/dropdown.js +4 -4
  234. package/dist/empty-state.js +1 -1
  235. package/dist/file-uploader.js +1 -1
  236. package/dist/filter-bar.js +1 -1
  237. package/dist/focus-trap.js +1 -1
  238. package/dist/form-layout.js +1 -1
  239. package/dist/header.js +1 -1
  240. package/dist/index.js +61 -61
  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 +35 -33
  247. package/dist/layout.js +1 -1
  248. package/dist/link.js +1 -1
  249. package/dist/menu.js +1 -1
  250. package/dist/modal-fullscreen.js +1 -1
  251. package/dist/modal.js +2 -2
  252. package/dist/pagination.js +1 -1
  253. package/dist/payment-method.js +1 -1
  254. package/dist/popover.js +1 -1
  255. package/dist/popper-container.js +1 -1
  256. package/dist/promo-banner.js +1 -1
  257. package/dist/radio-group.js +1 -1
  258. package/dist/search-bar.js +2 -2
  259. package/dist/secondary-nav.js +1 -1
  260. package/dist/segmented-control.js +1 -1
  261. package/dist/selection-card.js +1 -1
  262. package/dist/sidepanel.js +1 -1
  263. package/dist/stepper.js +1 -1
  264. package/dist/structured-list.js +1 -1
  265. package/dist/styles/bento-dark.css +30 -4
  266. package/dist/styles/bento-light.css +30 -4
  267. package/dist/styles/bento.css +30 -4
  268. package/dist/styles/legacy.css +32 -6
  269. package/dist/styles/styleguide.css +30 -4
  270. package/dist/styles/utility.css +2 -2
  271. package/dist/summary-grid.js +1 -1
  272. package/dist/tabs.js +1 -1
  273. package/dist/tag.js +1 -1
  274. package/dist/textarea.js +1 -1
  275. package/dist/timeline.js +1 -1
  276. package/dist/toast.js +1 -1
  277. package/dist/toggle.js +1 -1
  278. package/dist/tutorial.js +1 -1
  279. package/dist/web-types.json +512 -195
  280. package/package.json +6 -6
  281. package/dist/chunks/alert.hiTIDSeX.js.map +0 -1
  282. package/dist/chunks/button-actions-with-menu.C5OE7oOu.js +0 -112
  283. package/dist/chunks/button-actions-with-menu.C5OE7oOu.js.map +0 -1
  284. package/dist/chunks/calendar.Bb0-Svhx.js +0 -888
  285. package/dist/chunks/calendar.Bb0-Svhx.js.map +0 -1
  286. package/dist/chunks/checkbox-input.Bo4NxNOh.js +0 -127
  287. package/dist/chunks/checkbox-input.Bo4NxNOh.js.map +0 -1
  288. package/dist/chunks/checkbox.BPvnJrvd.js +0 -162
  289. package/dist/chunks/checkbox.BPvnJrvd.js.map +0 -1
  290. package/dist/chunks/checkmark-circle-fill.Cn7JN_Tk.js +0 -24
  291. package/dist/chunks/checkmark-circle-fill.Cn7JN_Tk.js.map +0 -1
  292. package/dist/chunks/checkmark-small.BtF8b2gE.js.map +0 -1
  293. package/dist/chunks/chevron-left.PIu6yPqe.js.map +0 -1
  294. package/dist/chunks/chevron-up.DVfo78kV.js.map +0 -1
  295. package/dist/chunks/chip.HNUA9VZl.js.map +0 -1
  296. package/dist/chunks/copy.DMlIj53I.js.map +0 -1
  297. package/dist/chunks/cross-circle-fill-small.Oj6lPaDy.js.map +0 -1
  298. package/dist/chunks/cross-circle-fill.CnYH4R_h.js +0 -24
  299. package/dist/chunks/cross-circle-fill.CnYH4R_h.js.map +0 -1
  300. package/dist/chunks/cross-small.BLUwtRB-.js.map +0 -1
  301. package/dist/chunks/cross.CsUPDmaA.js.map +0 -1
  302. package/dist/chunks/data-grid.N5Rxo6QB.js.map +0 -1
  303. package/dist/chunks/date-picker.Byv5Z-Xj.js +0 -213
  304. package/dist/chunks/date-picker.Byv5Z-Xj.js.map +0 -1
  305. package/dist/chunks/date-range-picker.CUS9Q53T.js +0 -884
  306. package/dist/chunks/date-range-picker.CUS9Q53T.js.map +0 -1
  307. package/dist/chunks/dialog-page.Bf07JxdG.js.map +0 -1
  308. package/dist/chunks/dot.BCX4w7eT.js.map +0 -1
  309. package/dist/chunks/dropdown.CC1i41NX.js.map +0 -1
  310. package/dist/chunks/expand.CwwKq7Uc.js.map +0 -1
  311. package/dist/chunks/file-uploader.DTkxh9Ct.js.map +0 -1
  312. package/dist/chunks/filter-bar.gj9sdW5T.js.map +0 -1
  313. package/dist/chunks/form-layout-title.CJbgfh3P.js.map +0 -1
  314. package/dist/chunks/header.5rAXro_L.js +0 -205
  315. package/dist/chunks/header.5rAXro_L.js.map +0 -1
  316. package/dist/chunks/index.CrhTVr5J.js +0 -10
  317. package/dist/chunks/index.CrhTVr5J.js.map +0 -1
  318. package/dist/chunks/index.DDnf1O9p.js +0 -22
  319. package/dist/chunks/index.DDnf1O9p.js.map +0 -1
  320. package/dist/chunks/index.DPafeRJa.js +0 -10
  321. package/dist/chunks/index.DPafeRJa.js.map +0 -1
  322. package/dist/chunks/info.CyeBsLgt.js +0 -24
  323. package/dist/chunks/info.CyeBsLgt.js.map +0 -1
  324. package/dist/chunks/input-field-password.PU9SY4FC.js.map +0 -1
  325. package/dist/chunks/input-field.BPbe00eB.js +0 -236
  326. package/dist/chunks/input-field.BPbe00eB.js.map +0 -1
  327. package/dist/chunks/link.DZlbzVSB.js.map +0 -1
  328. package/dist/chunks/menu.BC7ynpgF.js.map +0 -1
  329. package/dist/chunks/pagination.CT-h2q0J.js.map +0 -1
  330. package/dist/chunks/payment-method.Bu76jY3c.js +0 -59
  331. package/dist/chunks/payment-method.Bu76jY3c.js.map +0 -1
  332. package/dist/chunks/popper-container.CsW4R0-t.js.map +0 -1
  333. package/dist/chunks/refresh.BKI9WwKh.js.map +0 -1
  334. package/dist/chunks/search-bar.bMOGN8_E.js.map +0 -1
  335. package/dist/chunks/search.CBKhp7zB.js +0 -24
  336. package/dist/chunks/search.CBKhp7zB.js.map +0 -1
  337. package/dist/chunks/show.IEAxtCB7.js.map +0 -1
  338. package/dist/chunks/timeline-item.C4HOsaEG.js.map +0 -1
  339. package/dist/chunks/truncate.BfIl_-71.js +0 -8
  340. package/dist/chunks/truncate.BfIl_-71.js.map +0 -1
  341. package/dist/chunks/tutorial.BbQox1EZ.js.map +0 -1
  342. package/dist/chunks/use-cached-selected-values.a_5Iw6Dh.js +0 -1305
  343. package/dist/chunks/use-cached-selected-values.a_5Iw6Dh.js.map +0 -1
  344. package/dist/chunks/warning-filled.CLKRzGMT.js.map +0 -1
  345. /package/dist/assets/{cross.css → main.css} +0 -0
@@ -1,19 +1,21 @@
1
- import { defineComponent as x, computed as b, 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.CRdrSmFW.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.DK4H4sHT.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.Cb6utVhS.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 = Symbol("menu inverse style injection key"), te = 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,7 +83,7 @@ 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
@@ -90,13 +92,13 @@ const X = x({
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 ne = 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
- $,
111
- ee,
110
+ }, se = [], oe = /* @__PURE__ */ x(
111
+ te,
112
+ ne,
113
+ se,
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 = oe.exports;
119
+ var f = /* @__PURE__ */ ((s) => (s.BACK = "back", s.CLOSE = "close", s.OPEN = "open", s))(f || {});
120
+ const ue = Symbol("menu registering injection key"), le = {
119
121
  name: "bento-menu-list-container"
120
- }, oe = /* @__PURE__ */ x({
121
- ...se,
122
+ }, ae = /* @__PURE__ */ M({
123
+ ...le,
122
124
  setup(s) {
123
- const e = i(), n = i({}), t = P(
124
- ne,
125
+ const e = a(), n = a({}), t = N(
126
+ ue,
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 re = 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,
142
- le,
141
+ }, ie = [], ce = /* @__PURE__ */ x(
142
+ ae,
143
+ re,
144
+ ie,
143
145
  !1,
144
146
  null,
145
147
  "f5d01392"
146
148
  );
147
- const N = ae.exports, A = {
149
+ const U = ce.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
+ }, fe = 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 = b(() => {
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
- }, C = () => {
201
- t.value < o.value ? (t.value += 1, l.value[t.value].disabled && C()) : 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: C
214
+ closeMenu: d,
215
+ onBackButton: m,
216
+ focusPrevious: o,
217
+ focusNext: I
216
218
  };
217
219
  }
218
220
  });
219
- var ie = function() {
221
+ var de = 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,
233
- ce,
232
+ }, me = [], pe = /* @__PURE__ */ x(
233
+ fe,
234
+ de,
235
+ me,
234
236
  !1,
235
237
  null,
236
238
  "25195627"
237
239
  );
238
- const de = fe.exports, me = x({
240
+ const _e = pe.exports, ye = 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: _e },
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), C = b(() => s.data.some((c) => c.icon)), _ = b(() => s.indentItems || C.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 = b(() => {
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 = b(() => 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 ve = 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,
349
- _e,
353
+ }, Ce = [], be = /* @__PURE__ */ x(
354
+ ye,
355
+ ve,
356
+ Ce,
350
357
  !1,
351
358
  null,
352
- "f2e65437"
359
+ "855615f2"
353
360
  );
354
- const ve = ye.exports, be = Symbol("menu inverse style injection key");
355
- let T = 0;
356
- const Ce = {
361
+ const ke = be.exports;
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
- Ce,
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: ke, 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"), C = P(be, i(!1));
445
- W(j, 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(ee, a(!1));
463
+ j(G, p);
446
464
  const _ = b(() => ({
447
- "b-menu--inverse": C.value
448
- })), m = b(() => s.menuWidth ? { width: `${s.menuWidth}px` } : null), y = 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: C,
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") } })];
@@ -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
- "60b1f8b1"
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
- be as M,
532
- xe as O,
533
- d as a
562
+ qe as B,
563
+ ue as D,
564
+ ee as M,
565
+ Be as O,
566
+ f as a
534
567
  };
535
- //# sourceMappingURL=menu.BC7ynpgF.js.map
568
+ //# sourceMappingURL=menu.li3Kg9Uq.js.map