@adyen/bento-vue3 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 (307) 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.Cf184uiI.js → accordion-item.DLyCF015.js} +2 -2
  39. package/dist/chunks/{accordion-item.Cf184uiI.js.map → accordion-item.DLyCF015.js.map} +1 -1
  40. package/dist/chunks/{action-bar.r_Vt4XIu.js → action-bar.BW9db7ja.js} +6 -6
  41. package/dist/chunks/{action-bar.r_Vt4XIu.js.map → action-bar.BW9db7ja.js.map} +1 -1
  42. package/dist/chunks/{alert.Dd2DYCZ1.js → alert.eqWeCHyL.js} +25 -24
  43. package/dist/chunks/alert.eqWeCHyL.js.map +1 -0
  44. package/dist/chunks/{base-modal.Bis0B1AC.js → base-modal.BRYHc9Ez.js} +5 -5
  45. package/dist/chunks/{base-modal.Bis0B1AC.js.map → base-modal.BRYHc9Ez.js.map} +1 -1
  46. package/dist/chunks/{button-actions-with-menu.C5LguXWO.js → button-actions-with-menu.Hl8tUKa4.js} +4 -4
  47. package/dist/chunks/{button-actions-with-menu.C5LguXWO.js.map → button-actions-with-menu.Hl8tUKa4.js.map} +1 -1
  48. package/dist/chunks/{button-actions.ncthaz2m.js → button-actions.BPnsl_QP.js} +4 -4
  49. package/dist/chunks/{button-actions.ncthaz2m.js.map → button-actions.BPnsl_QP.js.map} +1 -1
  50. package/dist/chunks/{button.Cneb6rPP.js → button.6HMG0xEY.js} +2 -2
  51. package/dist/chunks/{button.Cneb6rPP.js.map → button.6HMG0xEY.js.map} +1 -1
  52. package/dist/chunks/{calendar.BdLQOioy.js → calendar.DfN1__E_.js} +3 -3
  53. package/dist/chunks/{calendar.BdLQOioy.js.map → calendar.DfN1__E_.js.map} +1 -1
  54. package/dist/chunks/{card.BAg7yMMT.js → card.BwC4MSjn.js} +3 -3
  55. package/dist/chunks/{card.BAg7yMMT.js.map → card.BwC4MSjn.js.map} +1 -1
  56. package/dist/chunks/{checkbox-group.CxWYSBy1.js → checkbox-group.Bzd-qpJ-.js} +4 -4
  57. package/dist/chunks/{checkbox-group.CxWYSBy1.js.map → checkbox-group.Bzd-qpJ-.js.map} +1 -1
  58. package/dist/chunks/{checkbox-input.CAYgiRHG.js → checkbox-input.XtCjXis9.js} +12 -11
  59. package/dist/chunks/checkbox-input.XtCjXis9.js.map +1 -0
  60. package/dist/chunks/{checkbox.bXN3Yann.js → checkbox.DJRe4ync.js} +17 -17
  61. package/dist/chunks/{checkbox.bXN3Yann.js.map → checkbox.DJRe4ync.js.map} +1 -1
  62. package/dist/chunks/{checkmark-circle-fill.g_tcBhFJ.js → checkmark-circle-fill.D9gNCN0T.js} +4 -4
  63. package/dist/chunks/checkmark-circle-fill.D9gNCN0T.js.map +1 -0
  64. package/dist/chunks/{checkmark-small.BDqUF-Ni.js → checkmark-small.D7l69yBf.js} +4 -4
  65. package/dist/chunks/checkmark-small.D7l69yBf.js.map +1 -0
  66. package/dist/chunks/{chevron-left.CYEK2UTr.js → chevron-left.BF63HtOH.js} +6 -6
  67. package/dist/chunks/chevron-left.BF63HtOH.js.map +1 -0
  68. package/dist/chunks/{chevron-up.Cu9qXgBY.js → chevron-up.-0oLlHmh.js} +6 -6
  69. package/dist/chunks/chevron-up.-0oLlHmh.js.map +1 -0
  70. package/dist/chunks/chip.3T0x6FuI.js +74 -0
  71. package/dist/chunks/chip.3T0x6FuI.js.map +1 -0
  72. package/dist/chunks/{code-snippet.baKzBaM6.js → code-snippet.0HhLVaJR.js} +7 -7
  73. package/dist/chunks/{code-snippet.baKzBaM6.js.map → code-snippet.0HhLVaJR.js.map} +1 -1
  74. package/dist/chunks/{controls-group.BnbQO34k.js → controls-group.DnX2B502.js} +2 -2
  75. package/dist/chunks/{controls-group.BnbQO34k.js.map → controls-group.DnX2B502.js.map} +1 -1
  76. package/dist/chunks/{copy.CXCdp5ly.js → copy.BzeHBtEF.js} +10 -9
  77. package/dist/chunks/copy.BzeHBtEF.js.map +1 -0
  78. package/dist/chunks/{cross-circle-fill-small.CJyARMSZ.js → cross-circle-fill-small.mY6ihJcA.js} +4 -4
  79. package/dist/chunks/cross-circle-fill-small.mY6ihJcA.js.map +1 -0
  80. package/dist/chunks/{cross-circle-fill.BzSjakuO.js → cross-circle-fill.DLWo6wBR.js} +4 -4
  81. package/dist/chunks/cross-circle-fill.DLWo6wBR.js.map +1 -0
  82. package/dist/chunks/{cross-small.Z5EKYRm0.js → cross-small.CFrBIeYK.js} +4 -4
  83. package/dist/chunks/cross-small.CFrBIeYK.js.map +1 -0
  84. package/dist/chunks/{cross.BZYw4R3N.js → cross.CbLEjiVy.js} +4 -4
  85. package/dist/chunks/cross.CbLEjiVy.js.map +1 -0
  86. package/dist/chunks/{dashboard-section.B87x4XsH.js → dashboard-section.CySxZmlx.js} +3 -3
  87. package/dist/chunks/{dashboard-section.B87x4XsH.js.map → dashboard-section.CySxZmlx.js.map} +1 -1
  88. package/dist/chunks/{dashed-underline.dWsHmwUp.js → dashed-underline.CCKLdMc7.js} +3 -3
  89. package/dist/chunks/{dashed-underline.dWsHmwUp.js.map → dashed-underline.CCKLdMc7.js.map} +1 -1
  90. package/dist/chunks/{data-grid-template.CZrGeSxR.js → data-grid-template.iM84gKjt.js} +3 -3
  91. package/dist/chunks/{data-grid-template.CZrGeSxR.js.map → data-grid-template.iM84gKjt.js.map} +1 -1
  92. package/dist/chunks/{data-grid.Duvh6mRu.js → data-grid.B2L_4qN7.js} +903 -923
  93. package/dist/chunks/data-grid.B2L_4qN7.js.map +1 -0
  94. package/dist/chunks/{date-picker.DXrMLxD0.js → date-picker.CMi0Kuy3.js} +5 -5
  95. package/dist/chunks/{date-picker.DXrMLxD0.js.map → date-picker.CMi0Kuy3.js.map} +1 -1
  96. package/dist/chunks/{date-range-picker.D7BDFoqM.js → date-range-picker.-KwSzmW_.js} +194 -193
  97. package/dist/chunks/date-range-picker.-KwSzmW_.js.map +1 -0
  98. package/dist/chunks/{dialog-page.D_r_CbyD.js → dialog-page.CXQafL9G.js} +5 -4
  99. package/dist/chunks/dialog-page.CXQafL9G.js.map +1 -0
  100. package/dist/chunks/{dot.cpdFEk6G.js → dot.BW-xtyjC.js} +4 -4
  101. package/dist/chunks/dot.BW-xtyjC.js.map +1 -0
  102. package/dist/chunks/{dropdown-default-textbox.BpvVMlcX.js → dropdown-default-textbox.Filez078.js} +4 -4
  103. package/dist/chunks/{dropdown-default-textbox.BpvVMlcX.js.map → dropdown-default-textbox.Filez078.js.map} +1 -1
  104. package/dist/chunks/{dropdown-tag.DrBFdX2o.js → dropdown-tag.B4-3z8xz.js} +4 -4
  105. package/dist/chunks/{dropdown-tag.DrBFdX2o.js.map → dropdown-tag.B4-3z8xz.js.map} +1 -1
  106. package/dist/chunks/{dropdown.CWq-VlFX.js → dropdown.CRLx2Juh.js} +333 -325
  107. package/dist/chunks/dropdown.CRLx2Juh.js.map +1 -0
  108. package/dist/chunks/{empty-state.C2ancCe6.js → empty-state.BffIZp3a.js} +2 -2
  109. package/dist/chunks/{empty-state.C2ancCe6.js.map → empty-state.BffIZp3a.js.map} +1 -1
  110. package/dist/chunks/{error-message.B3z5WkLF.js → error-message.68kVjf_N.js} +3 -3
  111. package/dist/chunks/{error-message.B3z5WkLF.js.map → error-message.68kVjf_N.js.map} +1 -1
  112. package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
  113. package/dist/chunks/{expand.CJ162RaJ.js → expand.DusW7F7p.js} +4 -4
  114. package/dist/chunks/expand.DusW7F7p.js.map +1 -0
  115. package/dist/chunks/{file-uploader.NbsEgoj1.js → file-uploader.Cz89e0Ci.js} +275 -278
  116. package/dist/chunks/file-uploader.Cz89e0Ci.js.map +1 -0
  117. package/dist/chunks/{filter-bar.DP4SHAQj.js → filter-bar.bfUnCTPj.js} +981 -1039
  118. package/dist/chunks/filter-bar.bfUnCTPj.js.map +1 -0
  119. package/dist/chunks/{fixed-scroller.BZwgM5Io.js → fixed-scroller.Bfk75Nei.js} +3 -3
  120. package/dist/chunks/{fixed-scroller.BZwgM5Io.js.map → fixed-scroller.Bfk75Nei.js.map} +1 -1
  121. package/dist/chunks/{footer-actions.X_RokrtM.js → footer-actions.DtbsjfSM.js} +3 -3
  122. package/dist/chunks/{footer-actions.X_RokrtM.js.map → footer-actions.DtbsjfSM.js.map} +1 -1
  123. package/dist/chunks/{form-layout-title.xkALokzl.js → form-layout-title.B7phPY2m.js} +2 -2
  124. package/dist/chunks/{form-layout-title.xkALokzl.js.map → form-layout-title.B7phPY2m.js.map} +1 -1
  125. package/dist/chunks/{header.BBIJHMkv.js → header.ITEMuMAU.js} +21 -21
  126. package/dist/chunks/{header.BBIJHMkv.js.map → header.ITEMuMAU.js.map} +1 -1
  127. package/dist/chunks/{info-icon-with-popover.DbIAJO2-.js → info-icon-with-popover.pHwJeQxm.js} +3 -3
  128. package/dist/chunks/{info-icon-with-popover.DbIAJO2-.js.map → info-icon-with-popover.pHwJeQxm.js.map} +1 -1
  129. package/dist/chunks/{info-icon.DQn8-VSp.js → info-icon.DUUa2W2z.js} +3 -3
  130. package/dist/chunks/{info-icon.DQn8-VSp.js.map → info-icon.DUUa2W2z.js.map} +1 -1
  131. package/dist/chunks/{info.DYNe2WnZ.js → info.CpPLBOVg.js} +4 -4
  132. package/dist/chunks/info.CpPLBOVg.js.map +1 -0
  133. package/dist/chunks/{input-field-password.SSiNunUz.js → input-field-password.zIUeIG8i.js} +37 -37
  134. package/dist/chunks/input-field-password.zIUeIG8i.js.map +1 -0
  135. package/dist/chunks/{input-field-phone-number._PCiyrci.js → input-field-phone-number.BGS23WKe.js} +2 -2
  136. package/dist/chunks/{input-field-phone-number._PCiyrci.js.map → input-field-phone-number.BGS23WKe.js.map} +1 -1
  137. package/dist/chunks/input-field.y006Hyc1.js +292 -0
  138. package/dist/chunks/input-field.y006Hyc1.js.map +1 -0
  139. package/dist/chunks/{inspector.types.6P_ZowVx.js → inspector.types.9S8hNOjR.js} +4 -4
  140. package/dist/chunks/{inspector.types.6P_ZowVx.js.map → inspector.types.9S8hNOjR.js.map} +1 -1
  141. package/dist/chunks/{link.ClFi8uSm.js → link.D3Fq5tt_.js} +19 -17
  142. package/dist/chunks/link.D3Fq5tt_.js.map +1 -0
  143. package/dist/chunks/{listbox-option-tag.DIk4F59J.js → listbox-option-tag.D557okR8.js} +2 -2
  144. package/dist/chunks/{listbox-option-tag.DIk4F59J.js.map → listbox-option-tag.D557okR8.js.map} +1 -1
  145. package/dist/chunks/menu.ZE0cTcKL.js +735 -0
  146. package/dist/chunks/menu.ZE0cTcKL.js.map +1 -0
  147. package/dist/chunks/{modal-fullscreen.C9FhKsf9.js → modal-fullscreen.CjZh3U8e.js} +5 -5
  148. package/dist/chunks/{modal-fullscreen.C9FhKsf9.js.map → modal-fullscreen.CjZh3U8e.js.map} +1 -1
  149. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DGz4x-tr.js → modal.vue_vue_type_script_setup_true_lang.C4Z_Q8bq.js} +5 -5
  150. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DGz4x-tr.js.map → modal.vue_vue_type_script_setup_true_lang.C4Z_Q8bq.js.map} +1 -1
  151. package/dist/chunks/{pagination.DdTcv8B6.js → pagination.BSp5RwM0.js} +37 -36
  152. package/dist/chunks/pagination.BSp5RwM0.js.map +1 -0
  153. package/dist/chunks/payment-method.BACjrzKP.js +125 -0
  154. package/dist/chunks/payment-method.BACjrzKP.js.map +1 -0
  155. package/dist/chunks/payment-method.types.CJKfZQN5.js.map +1 -1
  156. package/dist/chunks/{popover.BHGbUyMF.js → popover.DLyVEjCd.js} +106 -98
  157. package/dist/chunks/popover.DLyVEjCd.js.map +1 -0
  158. package/dist/chunks/{popper-container.BvGYgqiE.js → popper-container.Bx3CBGg6.js} +448 -444
  159. package/dist/chunks/popper-container.Bx3CBGg6.js.map +1 -0
  160. package/dist/chunks/{promo-banner.CKnonHmq.js → promo-banner.Clae7YGL.js} +2 -2
  161. package/dist/chunks/{promo-banner.CKnonHmq.js.map → promo-banner.Clae7YGL.js.map} +1 -1
  162. package/dist/chunks/{radio-group.CivaJaaQ.js → radio-group.Bdy7_UIu.js} +4 -4
  163. package/dist/chunks/{radio-group.CivaJaaQ.js.map → radio-group.Bdy7_UIu.js.map} +1 -1
  164. package/dist/chunks/{refresh.SzRxQ44W.js → refresh.C20ROVDS.js} +4 -4
  165. package/dist/chunks/refresh.C20ROVDS.js.map +1 -0
  166. package/dist/chunks/search-bar.uUWWZpqL.js +114 -0
  167. package/dist/chunks/search-bar.uUWWZpqL.js.map +1 -0
  168. package/dist/chunks/{search.KgjmJMHa.js → search.BwQq1yRg.js} +4 -4
  169. package/dist/chunks/search.BwQq1yRg.js.map +1 -0
  170. package/dist/chunks/{secondary-nav.DG8xB2Mj.js → secondary-nav.DJudnYiY.js} +2 -2
  171. package/dist/chunks/{secondary-nav.DG8xB2Mj.js.map → secondary-nav.DJudnYiY.js.map} +1 -1
  172. package/dist/chunks/{segmented-control.DKWpxDho.js → segmented-control.BqJXrEmp.js} +2 -2
  173. package/dist/chunks/{segmented-control.DKWpxDho.js.map → segmented-control.BqJXrEmp.js.map} +1 -1
  174. package/dist/chunks/{selection-card-group.B9nOBntu.js → selection-card-group.COMI4GGI.js} +11 -11
  175. package/dist/chunks/{selection-card-group.B9nOBntu.js.map → selection-card-group.COMI4GGI.js.map} +1 -1
  176. package/dist/chunks/{show.J9zXGWlK.js → show.ByWWaogc.js} +6 -6
  177. package/dist/chunks/show.ByWWaogc.js.map +1 -0
  178. package/dist/chunks/{sidepanel.dFspFFRG.js → sidepanel.VwZpyqJr.js} +5 -5
  179. package/dist/chunks/{sidepanel.dFspFFRG.js.map → sidepanel.VwZpyqJr.js.map} +1 -1
  180. package/dist/chunks/{step.DsfmsUU6.js → step.BGFaHGFO.js} +3 -3
  181. package/dist/chunks/{step.DsfmsUU6.js.map → step.BGFaHGFO.js.map} +1 -1
  182. package/dist/chunks/{structured-list-item.C9vL7KwG.js → structured-list-item.BZJQzyt_.js} +6 -6
  183. package/dist/chunks/{structured-list-item.C9vL7KwG.js.map → structured-list-item.BZJQzyt_.js.map} +1 -1
  184. package/dist/chunks/{summary-grid-item-custom.B0SvlYn-.js → summary-grid-item-custom.rBC-2kKM.js} +4 -4
  185. package/dist/chunks/{summary-grid-item-custom.B0SvlYn-.js.map → summary-grid-item-custom.rBC-2kKM.js.map} +1 -1
  186. package/dist/chunks/{tabs.CR2tWuz3.js → tabs.hp52NnXH.js} +2 -2
  187. package/dist/chunks/{tabs.CR2tWuz3.js.map → tabs.hp52NnXH.js.map} +1 -1
  188. package/dist/chunks/{tag.Bmw9RaOG.js → tag.CXADLCgG.js} +2 -2
  189. package/dist/chunks/{tag.Bmw9RaOG.js.map → tag.CXADLCgG.js.map} +1 -1
  190. package/dist/chunks/{textarea.CrQk0SR0.js → textarea.4s69xpG3.js} +4 -4
  191. package/dist/chunks/{textarea.CrQk0SR0.js.map → textarea.4s69xpG3.js.map} +1 -1
  192. package/dist/chunks/{timeline-item.Cs8JBNAA.js → timeline-item.DOoLkIox.js} +12 -11
  193. package/dist/chunks/timeline-item.DOoLkIox.js.map +1 -0
  194. package/dist/chunks/{toast.A5f1_NqV.js → toast.7D23cICy.js} +3 -3
  195. package/dist/chunks/{toast.A5f1_NqV.js.map → toast.7D23cICy.js.map} +1 -1
  196. package/dist/chunks/{toggle-button.CCgvi7TQ.js → toggle-button.7iAfO6Xx.js} +23 -22
  197. package/dist/chunks/toggle-button.7iAfO6Xx.js.map +1 -0
  198. package/dist/chunks/{toggle.BmwlaQon.js → toggle.hoD_i2Ey.js} +2 -2
  199. package/dist/chunks/{toggle.BmwlaQon.js.map → toggle.hoD_i2Ey.js.map} +1 -1
  200. package/dist/chunks/{tooltip.DS1ok8gh.js → tooltip.BtfIbhGU.js} +2 -2
  201. package/dist/chunks/{tooltip.DS1ok8gh.js.map → tooltip.BtfIbhGU.js.map} +1 -1
  202. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.-cMQWbk1.js → tutorial.vue_vue_type_script_setup_true_lang.DRlP0P1P.js} +9 -8
  203. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.DRlP0P1P.js.map +1 -0
  204. package/dist/chunks/use-cached-selected-values.9xqNZAmj.js +1446 -0
  205. package/dist/chunks/use-cached-selected-values.9xqNZAmj.js.map +1 -0
  206. package/dist/chunks/{warning-filled.tTkVob0l.js → warning-filled.DmHh0nYG.js} +4 -4
  207. package/dist/chunks/warning-filled.DmHh0nYG.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 +1 -1
  260. package/package.json +5 -6
  261. package/dist/chunks/alert.Dd2DYCZ1.js.map +0 -1
  262. package/dist/chunks/checkbox-input.CAYgiRHG.js.map +0 -1
  263. package/dist/chunks/checkmark-circle-fill.g_tcBhFJ.js.map +0 -1
  264. package/dist/chunks/checkmark-small.BDqUF-Ni.js.map +0 -1
  265. package/dist/chunks/chevron-left.CYEK2UTr.js.map +0 -1
  266. package/dist/chunks/chevron-up.Cu9qXgBY.js.map +0 -1
  267. package/dist/chunks/chip.sG_6gh3Z.js +0 -71
  268. package/dist/chunks/chip.sG_6gh3Z.js.map +0 -1
  269. package/dist/chunks/copy.CXCdp5ly.js.map +0 -1
  270. package/dist/chunks/cross-circle-fill-small.CJyARMSZ.js.map +0 -1
  271. package/dist/chunks/cross-circle-fill.BzSjakuO.js.map +0 -1
  272. package/dist/chunks/cross-small.Z5EKYRm0.js.map +0 -1
  273. package/dist/chunks/cross.BZYw4R3N.js.map +0 -1
  274. package/dist/chunks/data-grid.Duvh6mRu.js.map +0 -1
  275. package/dist/chunks/date-range-picker.D7BDFoqM.js.map +0 -1
  276. package/dist/chunks/dialog-page.D_r_CbyD.js.map +0 -1
  277. package/dist/chunks/dot.cpdFEk6G.js.map +0 -1
  278. package/dist/chunks/dropdown.CWq-VlFX.js.map +0 -1
  279. package/dist/chunks/expand.CJ162RaJ.js.map +0 -1
  280. package/dist/chunks/file-uploader.NbsEgoj1.js.map +0 -1
  281. package/dist/chunks/filter-bar.DP4SHAQj.js.map +0 -1
  282. package/dist/chunks/info.DYNe2WnZ.js.map +0 -1
  283. package/dist/chunks/input-field-password.SSiNunUz.js.map +0 -1
  284. package/dist/chunks/input-field.DhDfq9Er.js +0 -382
  285. package/dist/chunks/input-field.DhDfq9Er.js.map +0 -1
  286. package/dist/chunks/link.ClFi8uSm.js.map +0 -1
  287. package/dist/chunks/menu.DKCUuV6a.js +0 -698
  288. package/dist/chunks/menu.DKCUuV6a.js.map +0 -1
  289. package/dist/chunks/pagination.DdTcv8B6.js.map +0 -1
  290. package/dist/chunks/payment-method.NguqkTwG.js +0 -103
  291. package/dist/chunks/payment-method.NguqkTwG.js.map +0 -1
  292. package/dist/chunks/popover.BHGbUyMF.js.map +0 -1
  293. package/dist/chunks/popper-container.BvGYgqiE.js.map +0 -1
  294. package/dist/chunks/refresh.SzRxQ44W.js.map +0 -1
  295. package/dist/chunks/search-bar.BixBEf58.js +0 -132
  296. package/dist/chunks/search-bar.BixBEf58.js.map +0 -1
  297. package/dist/chunks/search.KgjmJMHa.js.map +0 -1
  298. package/dist/chunks/show.J9zXGWlK.js.map +0 -1
  299. package/dist/chunks/timeline-item.Cs8JBNAA.js.map +0 -1
  300. package/dist/chunks/toggle-button.CCgvi7TQ.js.map +0 -1
  301. package/dist/chunks/truncate.BfIl_-71.js +0 -8
  302. package/dist/chunks/truncate.BfIl_-71.js.map +0 -1
  303. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.-cMQWbk1.js.map +0 -1
  304. package/dist/chunks/use-cached-selected-values.D82-YBdB.js +0 -1591
  305. package/dist/chunks/use-cached-selected-values.D82-YBdB.js.map +0 -1
  306. package/dist/chunks/warning-filled.tTkVob0l.js.map +0 -1
  307. /package/dist/assets/{cross.css → main.css} +0 -0
@@ -1,698 +0,0 @@
1
- import { defineComponent as O, computed as _, resolveComponent as v, createBlock as M, openBlock as c, normalizeClass as Z, createSlots as z, withCtx as g, createVNode as S, createCommentVNode as R, createTextVNode as U, toDisplayString as H, resolveDynamicComponent as ue, ref as d, inject as Q, createElementBlock as L, mergeProps as V, toHandlers as le, renderSlot as N, onMounted as ie, Transition as ae, createElementVNode as T, withKeys as I, withModifiers as W, Fragment as X, renderList as x, normalizeStyle as ee, provide as re } from "vue";
2
- import { g as j } from "./generate-uid.NJ8tVoha.js";
3
- import { a as q, B as de } from "./popover.BHGbUyMF.js";
4
- import { B as te, D as ce } from "./divider.qUOSAbU6.js";
5
- import { B as me, u as fe } from "./teleport.B1NhF5-O.js";
6
- import { u as pe } from "./use-has-slot.B7eQSabc.js";
7
- import { u as ve } from "./i18n.D9azDLPe.js";
8
- import { _ as w } from "./_plugin-vue_export-helper.CHgC5LLL.js";
9
- import { a as be, C as G } from "./chevron-left.CYEK2UTr.js";
10
- import { a as J, B as Ce } from "./base-button.DdNFlbgH.js";
11
- import { B as ye } from "./typography.DN5eC5ch.js";
12
- import { B as ge } from "./toggle-button.CCgvi7TQ.js";
13
- import "../assets/menu.css";
14
- const he = O({
15
- name: "menu-item",
16
- components: { BaseButton: Ce, BentoTypography: ye, ChevronRightIcon: be },
17
- props: {
18
- /**
19
- * menu-item text that gets displayed as the main label
20
- */
21
- text: {
22
- type: String,
23
- required: !0
24
- },
25
- /**
26
- * menu-item action that gets executed when the MeniItem is clicked
27
- */
28
- handler: {
29
- type: Function,
30
- required: !0
31
- },
32
- /**
33
- * menu-item text that gets displayed as the secondary label
34
- */
35
- secondaryText: {
36
- type: String,
37
- default: null
38
- },
39
- /**
40
- * Optional chevron icon displayed to the right of the menu-item
41
- */
42
- chevron: {
43
- type: Boolean,
44
- default: !1
45
- },
46
- /**
47
- * Optional icon displayed to the left of the menu-item
48
- */
49
- icon: {
50
- // Types for Vue2 (Object) and Vue3 (Function)
51
- // TODO: Remove Object when fully migrated to Vue3
52
- type: [Object, Function],
53
- default: null
54
- },
55
- /**
56
- * Disables menu-item button functionality
57
- */
58
- disabled: {
59
- type: Boolean,
60
- default: !1
61
- },
62
- /**
63
- * Displays an indent variant od the menu-item
64
- */
65
- indent: {
66
- type: Boolean,
67
- default: !1
68
- },
69
- /**
70
- * Displays menu-item button as critical
71
- */
72
- critical: {
73
- type: Boolean,
74
- default: !1
75
- },
76
- /**
77
- * Renders the text in a bold variant
78
- */
79
- isTitle: {
80
- type: Boolean,
81
- default: !1
82
- }
83
- },
84
- emits: [J.CLICK],
85
- setup(e, { emit: t }) {
86
- return {
87
- // Values
88
- conditionalClasses: _(() => ({
89
- "b-menu-item--critical": e.critical,
90
- "b-menu-item--indent": e.indent
91
- })),
92
- // Methods
93
- onClick: (r) => {
94
- r.stopPropagation(), e.handler(), t(J.CLICK);
95
- }
96
- };
97
- }
98
- });
99
- function Ie(e, t, m, s, r, i) {
100
- const l = v("bento-typography"), u = v("chevron-right-icon"), p = v("base-button");
101
- return c(), M(p, {
102
- class: Z(["b-menu-item", e.conditionalClasses]),
103
- role: "menuitem",
104
- disabled: e.disabled,
105
- tabindex: "-1",
106
- onClick: e.onClick
107
- }, z({
108
- default: g(() => [
109
- S(l, {
110
- el: "span",
111
- variant: "body",
112
- stronger: e.isTitle,
113
- class: "b-menu-item__primary-text"
114
- }, {
115
- default: g(() => [
116
- U(H(e.text), 1)
117
- ]),
118
- _: 1
119
- }, 8, ["stronger"]),
120
- e.secondaryText ? (c(), M(l, {
121
- key: 0,
122
- el: "span",
123
- variant: "body",
124
- class: "b-menu-item__secondary-text"
125
- }, {
126
- default: g(() => [
127
- U(H(e.secondaryText), 1)
128
- ]),
129
- _: 1
130
- })) : R("", !0)
131
- ]),
132
- _: 2
133
- }, [
134
- e.icon ? {
135
- name: "iconLeft",
136
- fn: g(() => [
137
- (c(), M(ue(e.icon), {
138
- class: "b-menu-item__icon-left",
139
- "aria-hidden": "true"
140
- }))
141
- ]),
142
- key: "0"
143
- } : void 0,
144
- e.chevron ? {
145
- name: "iconRight",
146
- fn: g(() => [
147
- S(u, { "aria-hidden": "true" })
148
- ]),
149
- key: "1"
150
- } : void 0
151
- ]), 1032, ["class", "disabled", "onClick"]);
152
- }
153
- const ne = /* @__PURE__ */ w(he, [["render", Ie], ["__scopeId", "data-v-9e8afd9c"]]);
154
- var B = /* @__PURE__ */ ((e) => (e.BACK = "back", e.CLOSE = "close", e.OPEN = "open", e))(B || {});
155
- const Be = Symbol("menu registering injection key"), ke = {
156
- name: "bento-menu-list-container"
157
- }, Me = /* @__PURE__ */ O({
158
- ...ke,
159
- setup(e) {
160
- const t = d(), m = d({}), s = Q(
161
- Be,
162
- !1
163
- );
164
- if (s) {
165
- const { registerMenuContainerElement: r } = s;
166
- r(t), m.value = {
167
- mouseleave: s == null ? void 0 : s.menuMouseLeave
168
- };
169
- }
170
- return (r, i) => (c(), L("div", V({
171
- ref_key: "menuListContainerRef",
172
- ref: t,
173
- class: "b-menu-list-container",
174
- "data-testid": "menu-list-container"
175
- }, le(m.value, !0)), [
176
- N(r.$slots, "default", {}, void 0, !0)
177
- ], 16));
178
- }
179
- }), oe = /* @__PURE__ */ w(Me, [["__scopeId", "data-v-02a3ca45"]]), A = {
180
- "en-US": {
181
- backButton: "Go back",
182
- menuButton: "Open menu"
183
- }
184
- }, _e = O({
185
- i18n: { messages: A },
186
- name: "sub-menu-item-list",
187
- components: { BentoDivider: te, MenuItem: ne, MenuListContainer: oe },
188
- props: {
189
- items: {
190
- type: Array,
191
- required: !0
192
- },
193
- title: {
194
- type: String,
195
- required: !0
196
- }
197
- },
198
- emits: [B.CLOSE, B.BACK],
199
- setup(e, { emit: t }) {
200
- const m = d(null), s = d(0), r = d(e.items.length), i = () => t(B.CLOSE), l = () => t(B.BACK), u = _(() => {
201
- var b;
202
- const a = (b = e.items) == null ? void 0 : b.map((C) => ({
203
- ...C,
204
- indent: !C.icon,
205
- isTitle: !1,
206
- clickHandler: i
207
- }));
208
- return [
209
- {
210
- text: e.title,
211
- secondaryText: null,
212
- critical: !1,
213
- icon: G,
214
- isTitle: !0,
215
- disabled: !1,
216
- indent: !1,
217
- handler: l,
218
- clickHandler: l,
219
- addDivider: !0
220
- },
221
- ...a
222
- ];
223
- }), p = async () => {
224
- var a, b, C, k, h;
225
- (h = (k = (C = (b = (a = m.value) == null ? void 0 : a.children) == null ? void 0 : b[s.value]) == null ? void 0 : C.children) == null ? void 0 : k[0]) == null || h.focus();
226
- };
227
- ie(async () => {
228
- setTimeout(() => p(), 150);
229
- });
230
- const o = () => {
231
- s.value > 0 ? (s.value -= 1, u.value[s.value].disabled && o()) : s.value = r.value, p();
232
- }, n = () => {
233
- s.value < r.value ? (s.value += 1, u.value[s.value].disabled && n()) : s.value = 0, p();
234
- };
235
- return {
236
- // Enums
237
- BentoMenuEvent: B,
238
- // Values
239
- subMenuItemListRefLocal: m,
240
- subMenuFocusedIndex: s,
241
- ChevronLeftIcon: G,
242
- computedItems: u,
243
- // Methods
244
- closeMenu: i,
245
- onBackButton: l,
246
- focusPrevious: o,
247
- focusNext: n
248
- };
249
- }
250
- });
251
- function $e(e, t, m, s, r, i) {
252
- const l = v("menu-item"), u = v("bento-divider"), p = v("menu-list-container");
253
- return c(), M(ae, {
254
- name: "b-sub-menu-item-list__transition",
255
- appear: ""
256
- }, {
257
- default: g(() => [
258
- S(p, { class: "b-sub-menu-item-list" }, {
259
- default: g(() => [
260
- T("ul", {
261
- ref: "subMenuItemListRefLocal",
262
- role: "menu",
263
- class: "b-sub-menu-item-list__list",
264
- onKeydown: [
265
- t[0] || (t[0] = I(W((...o) => e.focusNext && e.focusNext(...o), ["stop"]), ["down"])),
266
- t[1] || (t[1] = I(W((...o) => e.focusPrevious && e.focusPrevious(...o), ["stop"]), ["up"])),
267
- t[2] || (t[2] = I(W((...o) => e.onBackButton && e.onBackButton(...o), ["stop"]), ["esc"]))
268
- ]
269
- }, [
270
- (c(!0), L(X, null, x(e.computedItems, (o, n) => (c(), L("li", {
271
- key: `sub-menu-item-list-item-${n}`,
272
- role: "none"
273
- }, [
274
- S(l, {
275
- text: o.text,
276
- handler: o.handler,
277
- "secondary-text": o.secondaryText,
278
- icon: o.icon,
279
- "is-title": o.isTitle,
280
- disabled: o.disabled,
281
- critical: o.critical,
282
- indent: o.indent,
283
- tabindex: n === e.subMenuFocusedIndex ? "0" : "-1",
284
- onClick: o.clickHandler
285
- }, null, 8, ["text", "handler", "secondary-text", "icon", "is-title", "disabled", "critical", "indent", "tabindex", "onClick"]),
286
- o.addDivider ? (c(), M(u, {
287
- key: 0,
288
- class: "b-sub-menu-item-list__divider"
289
- })) : R("", !0)
290
- ]))), 128))
291
- ], 544)
292
- ]),
293
- _: 1
294
- })
295
- ]),
296
- _: 1
297
- });
298
- }
299
- const Se = /* @__PURE__ */ w(_e, [["render", $e], ["__scopeId", "data-v-621db243"]]), Le = O({
300
- name: "menu-item-list",
301
- components: { BentoDivider: te, MenuItem: ne, MenuListContainer: oe, SubMenuItemList: Se },
302
- props: {
303
- /**
304
- * The data to be displayed in the list
305
- */
306
- data: {
307
- type: Array,
308
- required: !0
309
- },
310
- /**
311
- * Displays the menu-items of the list in the indent variant. Only applies to elements that don't have an icon to their left.
312
- */
313
- indentItems: {
314
- type: Boolean,
315
- default: !1
316
- },
317
- /**
318
- * If set to true, focuses the last item on the list instead of the first. Used for accessibility purposes when the menu is opened with the 'up' arrow key.
319
- */
320
- focusLastElement: {
321
- type: Boolean,
322
- default: !1
323
- },
324
- /**
325
- * If set to true, closes the menu when an item is clicked.
326
- */
327
- closeMenuOnItemSelect: {
328
- type: Boolean,
329
- default: !0
330
- }
331
- },
332
- emits: [B.CLOSE, "menu-item-click"],
333
- setup(e, { emit: t }) {
334
- const m = d(null), s = d(null), r = d(null), i = d(!1), l = d(null), u = d(e.focusLastElement ? e.data.length - 1 : 0), p = d(0), o = d(e.data.length - 1), n = _(() => e.data.some((f) => f.icon)), a = _(() => e.indentItems || n.value ? e.data.map((f) => {
335
- let y = !1;
336
- return f.icon || (y = !0), {
337
- ...f,
338
- // eslint-disable-next-line no-param-reassign
339
- indent: y
340
- };
341
- }) : e.data), b = () => {
342
- var f, y, $;
343
- return ($ = (y = (f = m.value) == null ? void 0 : f.children[u.value]) == null ? void 0 : y.children[0]) == null ? void 0 : $.focus();
344
- }, C = () => t(B.CLOSE), k = (f, y) => {
345
- if (f.items) {
346
- l.value = y, i.value = !0;
347
- return;
348
- }
349
- l.value = y, i.value = !1, e.closeMenuOnItemSelect && C(), t("menu-item-click");
350
- }, h = () => {
351
- u.value > 0 ? (u.value -= 1, a.value[u.value].disabled && h()) : u.value = o.value, b();
352
- }, E = () => {
353
- u.value < o.value ? (u.value += 1, a.value[u.value].disabled && E()) : u.value = 0, b();
354
- }, P = (f, y) => {
355
- var $;
356
- ($ = f == null ? void 0 : f.items) != null && $.length && (l.value = y, i.value = !0);
357
- }, K = () => {
358
- l.value && i.value && (l.value = null, i.value = !1);
359
- }, D = () => {
360
- i.value = !1, l.value = null, b();
361
- }, F = _(() => {
362
- var f, y, $;
363
- return ($ = (y = (f = r.value) == null ? void 0 : f[0]) == null ? void 0 : y.$el) == null ? void 0 : $.offsetHeight;
364
- }), se = _(() => i.value ? `${F.value}px` : "");
365
- return {
366
- // Values
367
- menuItemListRef: m,
368
- menuItemListWrapperRef: s,
369
- subMenuItemListRef: r,
370
- computedData: a,
371
- computedHeight: se,
372
- focusedIndex: u,
373
- subMenuFocusedIndex: p,
374
- showSubMenu: i,
375
- visibleSubMenuIndex: l,
376
- // Methods
377
- menuItemClick: k,
378
- closeMenu: C,
379
- focusPrevious: h,
380
- focusNext: E,
381
- focusRight: P,
382
- focusLeft: K,
383
- onBackButton: D
384
- };
385
- }
386
- }), Ee = ["onKeydown"];
387
- function Re(e, t, m, s, r, i) {
388
- const l = v("menu-item"), u = v("bento-divider"), p = v("sub-menu-item-list"), o = v("menu-list-container");
389
- return c(), M(o, {
390
- ref: "menuItemListWrapperRef",
391
- style: ee({ height: e.computedHeight })
392
- }, {
393
- default: g(() => [
394
- T("ul", {
395
- ref: "menuItemListRef",
396
- class: "b-menu-item-list",
397
- role: "menu",
398
- onKeydown: [
399
- t[1] || (t[1] = I((...n) => e.focusNext && e.focusNext(...n), ["down"])),
400
- t[2] || (t[2] = I((...n) => e.focusPrevious && e.focusPrevious(...n), ["up"])),
401
- t[3] || (t[3] = I((...n) => e.closeMenu && e.closeMenu(...n), ["esc"])),
402
- t[4] || (t[4] = I((...n) => e.closeMenu && e.closeMenu(...n), ["tab"]))
403
- ]
404
- }, [
405
- (c(!0), L(X, null, x(e.computedData, (n, a) => {
406
- var b, C, k, h;
407
- return c(), L("li", {
408
- key: `menu-item-${a}`,
409
- class: "b-menu-item-list__item",
410
- role: "none",
411
- onKeydown: [
412
- I((E) => e.focusRight(n, a), ["right"]),
413
- t[0] || (t[0] = I((E) => e.focusLeft(), ["left"]))
414
- ]
415
- }, [
416
- S(l, {
417
- text: n.text,
418
- handler: (b = n.items) != null && b.length ? () => null : n.handler,
419
- "secondary-text": n.secondaryText,
420
- icon: n.icon,
421
- chevron: !!((C = n.items) != null && C.length),
422
- disabled: n.disabled,
423
- critical: n.critical,
424
- indent: n.indent,
425
- tabindex: a === e.subMenuFocusedIndex ? "0" : "-1",
426
- "aria-haspopup": !!((k = n.items) != null && k.length),
427
- "aria-expanded": e.showSubMenu && e.visibleSubMenuIndex === a,
428
- onClick: (E) => e.menuItemClick(n, a)
429
- }, null, 8, ["text", "handler", "secondary-text", "icon", "chevron", "disabled", "critical", "indent", "tabindex", "aria-haspopup", "aria-expanded", "onClick"]),
430
- n.addDivider ? (c(), M(u, {
431
- key: 0,
432
- class: "b-menu-item-list__divider"
433
- })) : R("", !0),
434
- (h = n.items) != null && h.length && e.showSubMenu && e.visibleSubMenuIndex === a ? (c(), M(p, {
435
- key: 1,
436
- ref_for: !0,
437
- ref: "subMenuItemListRef",
438
- items: n.items,
439
- title: n.text,
440
- onBack: e.onBackButton,
441
- onClose: e.closeMenu
442
- }, null, 8, ["items", "title", "onBack", "onClose"])) : R("", !0)
443
- ], 40, Ee);
444
- }), 128))
445
- ], 544)
446
- ]),
447
- _: 1
448
- }, 8, ["style"]);
449
- }
450
- const we = /* @__PURE__ */ w(Le, [["render", Re], ["__scopeId", "data-v-cf88ddde"]]), Te = Symbol("menu inverse style injection key");
451
- let Y = 0;
452
- const Oe = {
453
- beforeCreate() {
454
- this.uuid = Y.toString(), Y += 1;
455
- }
456
- }, Ne = { key: 0 };
457
- function Pe(e, t, m, s, r, i) {
458
- return c(), L("svg", V({ role: "img" }, e.$attrs, {
459
- class: "ui-assets-icons-16",
460
- xmlns: "http://www.w3.org/2000/svg",
461
- width: "16",
462
- height: "16",
463
- fill: "none"
464
- }), [
465
- e.$attrs["svg-title"] ? (c(), L("title", Ne, H(e.$attrs["svg-title"]), 1)) : R("", !0),
466
- t[0] || (t[0] = T("path", {
467
- fill: "#00112C",
468
- 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"
469
- }, null, -1)),
470
- t[1] || (t[1] = T("path", {
471
- fill: "#00112C",
472
- 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"
473
- }, null, -1)),
474
- t[2] || (t[2] = T("path", {
475
- fill: "#00112C",
476
- 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"
477
- }, null, -1))
478
- ], 16);
479
- }
480
- const Ke = /* @__PURE__ */ w(Oe, [["render", Pe]]), De = O({
481
- i18n: { messages: A },
482
- name: "bento-menu",
483
- components: { BentoToggleButton: ge, BentoPopover: de, BentoTeleport: me, MenuItemList: we, OptionsVerticalIcon: Ke },
484
- props: {
485
- /**
486
- * Object containing props to change the menu button appearance. Accepts the same props present in BentoButton.
487
- */
488
- button: {
489
- type: Object,
490
- default: () => ({
491
- variant: "secondary"
492
- })
493
- },
494
- /**
495
- * Controls if the menu should close when an item is clicked.
496
- * Defaults to `true`.
497
- */
498
- closeMenuOnItemSelect: {
499
- type: Boolean,
500
- default: !0
501
- },
502
- /**
503
- * The data to be displayed in the list
504
- */
505
- data: {
506
- type: Array,
507
- required: !0
508
- },
509
- /**
510
- * The position of where the menu should open.
511
- */
512
- menuPosition: {
513
- type: String,
514
- default: q.BOTTOM_START,
515
- validator: (e) => Object.values(q).includes(e)
516
- },
517
- /**
518
- * Instructs the menu popover to be visible outside of the containing container.
519
- * @see {@link https://floating-ui.com/docs/usefloating#strategy}
520
- */
521
- menuFixedPositioning: {
522
- type: Boolean,
523
- default: !1
524
- },
525
- /**
526
- * Sets a custom width for the menu popover.
527
- */
528
- menuWidth: {
529
- type: Number,
530
- default: null
531
- },
532
- /**
533
- * Returns focus to the menu button after popover is closed.
534
- * Disable if focus management is delegated to the parent component.
535
- * Defaults to `true`.
536
- */
537
- revertFocusToButton: {
538
- type: Boolean,
539
- default: !0
540
- },
541
- /**
542
- * Can be used to set the inner teleport component to render the menu's popover in the root `body` DOM node
543
- * (or `dialog` if popover is inside a dialog).
544
- */
545
- teleport: {
546
- type: Boolean,
547
- default: !1
548
- }
549
- },
550
- emits: [B.CLOSE, B.OPEN, "menu-item-click"],
551
- setup(e, { emit: t, slots: m }) {
552
- const { t: s } = ve({ messages: A }), r = d(null), i = d(!1), l = d(!1), u = d(null), p = j("menu"), o = j("menu-popover"), n = Q(Te, d(!1));
553
- re(ce, n);
554
- const a = _(() => ({
555
- "b-menu--inverse": n.value
556
- })), b = _(() => e.menuWidth ? { width: `${e.menuWidth}px` } : null), C = _(() => {
557
- if (e != null && e.button)
558
- return {
559
- variant: "secondary",
560
- ...e.button
561
- };
562
- }), k = () => {
563
- i.value = !0, t(B.OPEN);
564
- }, h = () => {
565
- i.value && (i.value = !1, e.revertFocusToButton && r.value.$el.focus(), t(B.CLOSE));
566
- }, E = (F) => {
567
- F.stopPropagation(), i.value ? h() : k();
568
- }, P = () => {
569
- l.value = !1, k();
570
- }, K = () => {
571
- l.value = !0, k();
572
- }, D = () => {
573
- t("menu-item-click");
574
- };
575
- return fe(u, h, { ignore: [r] }), {
576
- // Refs
577
- popoverRef: u,
578
- menuButtonRef: r,
579
- // Values
580
- menuId: p,
581
- popoverId: o,
582
- showMenu: i,
583
- computedButtonPropsWithDefaults: C,
584
- computedMenuWidth: b,
585
- isLastElementFocused: l,
586
- // Classes
587
- computedClasses: a,
588
- isInverseColorSet: n,
589
- // Methods
590
- hasSlot: pe(m),
591
- onKeyDown: P,
592
- onKeyUp: K,
593
- closeMenu: h,
594
- menuItemClick: D,
595
- toggleShowMenu: E,
596
- // Translations
597
- t: s
598
- };
599
- }
600
- });
601
- function Fe(e, t, m, s, r, i) {
602
- const l = v("options-vertical-icon"), u = v("bento-toggle-button"), p = v("menu-item-list"), o = v("bento-popover"), n = v("bento-teleport");
603
- return c(), L("div", {
604
- class: Z([e.computedClasses, "b-menu"]),
605
- onKeydown: [
606
- t[0] || (t[0] = I((...a) => e.onKeyDown && e.onKeyDown(...a), ["down"])),
607
- t[1] || (t[1] = I((...a) => e.onKeyUp && e.onKeyUp(...a), ["up"])),
608
- t[2] || (t[2] = I((...a) => e.closeMenu && e.closeMenu(...a), ["esc"]))
609
- ]
610
- }, [
611
- S(u, V({
612
- ref: "menuButtonRef",
613
- "aria-haspopup": "true"
614
- }, e.computedButtonPropsWithDefaults, {
615
- "aria-controls": e.showMenu ? e.menuId : null,
616
- toggled: e.showMenu,
617
- inverse: e.isInverseColorSet,
618
- onClick: e.toggleShowMenu
619
- }), z({ _: 2 }, [
620
- !e.hasSlot("default") || e.hasSlot("iconLeft") ? {
621
- name: "iconLeft",
622
- fn: g(() => [
623
- N(e.$slots, "iconLeft", {}, () => [
624
- S(l, {
625
- title: e.t("menuButton")
626
- }, null, 8, ["title"])
627
- ], !0)
628
- ]),
629
- key: "0"
630
- } : void 0,
631
- e.hasSlot("default") ? {
632
- name: "default",
633
- fn: g(() => [
634
- N(e.$slots, "default", {}, void 0, !0)
635
- ]),
636
- key: "1"
637
- } : void 0,
638
- e.hasSlot("iconRight") ? {
639
- name: "iconRight",
640
- fn: g(() => [
641
- N(e.$slots, "iconRight", {}, void 0, !0)
642
- ]),
643
- key: "2"
644
- } : void 0
645
- ]), 1040, ["aria-controls", "toggled", "inverse", "onClick"]),
646
- e.menuButtonRef ? (c(), M(n, {
647
- key: 0,
648
- disabled: !e.teleport
649
- }, {
650
- default: g(() => [
651
- e.menuButtonRef ? (c(), M(o, {
652
- key: 0,
653
- id: e.menuId,
654
- ref: "popoverRef",
655
- open: e.showMenu,
656
- class: "b-menu__popover",
657
- style: ee(e.computedMenuWidth),
658
- "target-element": e.menuButtonRef,
659
- position: e.menuPosition,
660
- "fixed-positioning": e.menuFixedPositioning,
661
- "fallback-position": [
662
- "bottom-start",
663
- "bottom-end",
664
- "top-start",
665
- "top-end",
666
- "right-start",
667
- "right-end",
668
- "left-start",
669
- "left-end"
670
- ],
671
- teleport: e.teleport,
672
- "without-space": ""
673
- }, {
674
- default: g(() => [
675
- S(p, {
676
- "close-menu-on-item-select": e.closeMenuOnItemSelect,
677
- data: e.data,
678
- "focus-last-element": e.isLastElementFocused,
679
- onClose: e.closeMenu,
680
- onMenuItemClick: e.menuItemClick
681
- }, null, 8, ["close-menu-on-item-select", "data", "focus-last-element", "onClose", "onMenuItemClick"])
682
- ]),
683
- _: 1
684
- }, 8, ["id", "open", "style", "target-element", "position", "fixed-positioning", "teleport"])) : R("", !0)
685
- ]),
686
- _: 1
687
- }, 8, ["disabled"])) : R("", !0)
688
- ], 34);
689
- }
690
- const Qe = /* @__PURE__ */ w(De, [["render", Fe], ["__scopeId", "data-v-bd1c16f6"]]);
691
- export {
692
- Qe as B,
693
- Be as D,
694
- Te as M,
695
- Ke as O,
696
- B as a
697
- };
698
- //# sourceMappingURL=menu.DKCUuV6a.js.map