@adyen/bento-vue3 1.91.0 → 1.92.1

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 (226) hide show
  1. package/dist/@types/index.d.ts +128 -137
  2. package/dist/action-bar.js +1 -1
  3. package/dist/ai-tag.js +1 -1
  4. package/dist/alert.js +1 -1
  5. package/dist/assets/accordion-item.css +1 -1
  6. package/dist/assets/action-bar.css +1 -1
  7. package/dist/assets/base-modal.css +1 -1
  8. package/dist/assets/button-actions.css +1 -1
  9. package/dist/assets/card.css +1 -1
  10. package/dist/assets/checkbox-group.css +1 -1
  11. package/dist/assets/checkbox.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-tag.css +1 -1
  16. package/dist/assets/dropdown.css +1 -1
  17. package/dist/assets/file-uploader.css +1 -1
  18. package/dist/assets/filter-bar.css +1 -1
  19. package/dist/assets/input-field-password.css +1 -1
  20. package/dist/assets/input-field-phone-number.css +1 -1
  21. package/dist/assets/input-field.css +1 -1
  22. package/dist/assets/inspector.css +1 -1
  23. package/dist/assets/modal-fullscreen.css +1 -1
  24. package/dist/assets/secondary-nav.css +1 -1
  25. package/dist/assets/sidepanel.css +1 -1
  26. package/dist/assets/textarea.css +1 -1
  27. package/dist/assets/toggle.css +1 -1
  28. package/dist/assets/use-cached-selected-values.css +1 -1
  29. package/dist/button.js +1 -1
  30. package/dist/card.js +1 -1
  31. package/dist/checkbox.js +2 -2
  32. package/dist/chunks/{action-bar.BPS3wPde.js → action-bar.BxyRAZn1.js} +3 -3
  33. package/dist/chunks/{action-bar.BPS3wPde.js.map → action-bar.BxyRAZn1.js.map} +1 -1
  34. package/dist/chunks/{ai-tag.D7shWB_x.js → ai-tag.CpeZm2Yf.js} +2 -2
  35. package/dist/chunks/{ai-tag.D7shWB_x.js.map → ai-tag.CpeZm2Yf.js.map} +1 -1
  36. package/dist/chunks/{alert.CFWN2E0b.js → alert.RD0qOLhx.js} +91 -69
  37. package/dist/chunks/alert.RD0qOLhx.js.map +1 -0
  38. package/dist/chunks/{base-modal.BxcS7Pao.js → base-modal.C8Rsc2oO.js} +3 -3
  39. package/dist/chunks/base-modal.C8Rsc2oO.js.map +1 -0
  40. package/dist/chunks/{button-actions-with-menu.BKdNXYgU.js → button-actions-with-menu.KaWdHibo.js} +2 -2
  41. package/dist/chunks/{button-actions-with-menu.BKdNXYgU.js.map → button-actions-with-menu.KaWdHibo.js.map} +1 -1
  42. package/dist/chunks/{button-actions.DLiM8KZL.js → button-actions.7Oi2Ra4p.js} +87 -93
  43. package/dist/chunks/button-actions.7Oi2Ra4p.js.map +1 -0
  44. package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
  45. package/dist/chunks/button.DWF7FSIw.js.map +1 -1
  46. package/dist/chunks/{calendar.qm-kFNQv.js → calendar.DfMwuOIR.js} +516 -456
  47. package/dist/chunks/calendar.DfMwuOIR.js.map +1 -0
  48. package/dist/chunks/{card.BEChcEqg.js → card.7q8tTfjG.js} +2 -2
  49. package/dist/chunks/card.7q8tTfjG.js.map +1 -0
  50. package/dist/chunks/{checkbox-group.i3W8WO-7.js → checkbox-group.CgrmMYbN.js} +4 -4
  51. package/dist/chunks/checkbox-group.CgrmMYbN.js.map +1 -0
  52. package/dist/chunks/{checkbox.BPrymcRl.js → checkbox.CdkqCAAL.js} +3 -5
  53. package/dist/chunks/checkbox.CdkqCAAL.js.map +1 -0
  54. package/dist/chunks/{code-snippet.BG5ZmCrb.js → code-snippet.KKUb5A6A.js} +3 -3
  55. package/dist/chunks/code-snippet.KKUb5A6A.js.map +1 -0
  56. package/dist/chunks/constructNow.DyOJDyZZ.js +8 -0
  57. package/dist/chunks/{constructNow.D9uRk678.js.map → constructNow.DyOJDyZZ.js.map} +1 -1
  58. package/dist/chunks/country.types.6a7xxZIR.js.map +1 -1
  59. package/dist/chunks/{dashboard-section.C7mfUXOl.js → dashboard-section.kwKlujP-.js} +2 -2
  60. package/dist/chunks/{dashboard-section.C7mfUXOl.js.map → dashboard-section.kwKlujP-.js.map} +1 -1
  61. package/dist/chunks/{dashed-underline.B50DIXjK.js → dashed-underline.ADDEdamG.js} +2 -2
  62. package/dist/chunks/{dashed-underline.B50DIXjK.js.map → dashed-underline.ADDEdamG.js.map} +1 -1
  63. package/dist/chunks/{data-grid-template.CKdZb6EN.js → data-grid-template.C69yN3ZR.js} +2 -2
  64. package/dist/chunks/{data-grid-template.CKdZb6EN.js.map → data-grid-template.C69yN3ZR.js.map} +1 -1
  65. package/dist/chunks/{data-grid.DvMe72LK.js → data-grid.BL4DPi_-.js} +464 -465
  66. package/dist/chunks/data-grid.BL4DPi_-.js.map +1 -0
  67. package/dist/chunks/{date-picker.CidHad1p.js → date-picker.Cgr0Sbo0.js} +16 -16
  68. package/dist/chunks/{date-picker.CidHad1p.js.map → date-picker.Cgr0Sbo0.js.map} +1 -1
  69. package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -1
  70. package/dist/chunks/date-range-picker.Cpw7J4d1.js +1038 -0
  71. package/dist/chunks/date-range-picker.Cpw7J4d1.js.map +1 -0
  72. package/dist/chunks/date-range-picker.types.Ckt7zxGy.js.map +1 -1
  73. package/dist/chunks/{de.DXrHnkLX.js → de.ctR_lBqr.js} +2 -2
  74. package/dist/chunks/{de.DXrHnkLX.js.map → de.ctR_lBqr.js.map} +1 -1
  75. package/dist/chunks/{differenceInMonths.s_znQQpw.js → differenceInMonths.yz4Dfe-b.js} +13 -12
  76. package/dist/chunks/{differenceInMonths.s_znQQpw.js.map → differenceInMonths.yz4Dfe-b.js.map} +1 -1
  77. package/dist/chunks/{draggable-handle.CySRx1tb.js → draggable-handle.BWHOlabB.js} +2 -2
  78. package/dist/chunks/{draggable-handle.CySRx1tb.js.map → draggable-handle.BWHOlabB.js.map} +1 -1
  79. package/dist/chunks/{dropdown-tag.wcJ6Mgqe.js → dropdown-tag.DqhjcJXf.js} +6 -6
  80. package/dist/chunks/dropdown-tag.DqhjcJXf.js.map +1 -0
  81. package/dist/chunks/{dropdown.DHoL50gV.js → dropdown.C323NUqq.js} +411 -407
  82. package/dist/chunks/dropdown.C323NUqq.js.map +1 -0
  83. package/dist/chunks/{en-GB.CBpvhDYV.js → en-GB.BsQNm5GT.js} +2 -2
  84. package/dist/chunks/{en-GB.CBpvhDYV.js.map → en-GB.BsQNm5GT.js.map} +1 -1
  85. package/dist/chunks/{en-US.CCazFVNP.js → en-US.BR6y7foR.js} +5 -5
  86. package/dist/chunks/{en-US.CCazFVNP.js.map → en-US.BR6y7foR.js.map} +1 -1
  87. package/dist/chunks/{es.CoF2PB8b.js → es.DxqH-QhP.js} +2 -2
  88. package/dist/chunks/{es.CoF2PB8b.js.map → es.DxqH-QhP.js.map} +1 -1
  89. package/dist/chunks/{file-uploader.Dbg3vfZ_.js → file-uploader.B5_l2uQO.js} +4 -5
  90. package/dist/chunks/{file-uploader.Dbg3vfZ_.js.map → file-uploader.B5_l2uQO.js.map} +1 -1
  91. package/dist/chunks/{filter-bar.Dt-cU3zy.js → filter-bar.CuZruHzo.js} +18 -18
  92. package/dist/chunks/filter-bar.CuZruHzo.js.map +1 -0
  93. package/dist/chunks/{footer-actions.CYBdKDPo.js → footer-actions.4Qj_I3cd.js} +2 -2
  94. package/dist/chunks/{footer-actions.CYBdKDPo.js.map → footer-actions.4Qj_I3cd.js.map} +1 -1
  95. package/dist/chunks/{form-layout-title.B3ePK3yi.js → form-layout-title.B712PesH.js} +2 -2
  96. package/dist/chunks/{form-layout-title.B3ePK3yi.js.map → form-layout-title.B712PesH.js.map} +1 -1
  97. package/dist/chunks/{fr.CJXL-Ief.js → fr.DJtn8ron.js} +2 -2
  98. package/dist/chunks/{fr.CJXL-Ief.js.map → fr.DJtn8ron.js.map} +1 -1
  99. package/dist/chunks/{header-meta.COak4D8-.js → header-meta.BJjFOcxY.js} +14 -14
  100. package/dist/chunks/{header-meta.COak4D8-.js.map → header-meta.BJjFOcxY.js.map} +1 -1
  101. package/dist/chunks/{header-with-views.DqioajcO.js → header-with-views.BI6uh8o0.js} +8 -8
  102. package/dist/chunks/{header-with-views.DqioajcO.js.map → header-with-views.BI6uh8o0.js.map} +1 -1
  103. package/dist/chunks/{header.C21yzWrk.js → header.5RQulwlL.js} +3 -3
  104. package/dist/chunks/header.5RQulwlL.js.map +1 -0
  105. package/dist/chunks/{input-field-password.DyUphhxB.js → input-field-password.CbDeLcL2.js} +5 -5
  106. package/dist/chunks/input-field-password.CbDeLcL2.js.map +1 -0
  107. package/dist/chunks/{input-field-phone-number.BXVaC5ra.js → input-field-phone-number.DzruT8x5.js} +4 -4
  108. package/dist/chunks/{input-field-phone-number.BXVaC5ra.js.map → input-field-phone-number.DzruT8x5.js.map} +1 -1
  109. package/dist/chunks/{input-field.DkUFvIWt.js → input-field.zwUuajnC.js} +122 -114
  110. package/dist/chunks/input-field.zwUuajnC.js.map +1 -0
  111. package/dist/chunks/{input-time.WI_qdwJc.js → input-time.RUecHW9h.js} +4 -4
  112. package/dist/chunks/{input-time.WI_qdwJc.js.map → input-time.RUecHW9h.js.map} +1 -1
  113. package/dist/chunks/isSameWeek.CieN9XgL.js +14 -0
  114. package/dist/chunks/{isSameWeek.Dj6luS8h.js.map → isSameWeek.CieN9XgL.js.map} +1 -1
  115. package/dist/chunks/{it.20Y7h-bF.js → it.keS7oN5l.js} +3 -3
  116. package/dist/chunks/{it.20Y7h-bF.js.map → it.keS7oN5l.js.map} +1 -1
  117. package/dist/chunks/{ja.DXlq0H98.js → ja.cLwacUE6.js} +2 -2
  118. package/dist/chunks/{ja.DXlq0H98.js.map → ja.cLwacUE6.js.map} +1 -1
  119. package/dist/chunks/link.D6D6YGsN.js.map +1 -1
  120. package/dist/chunks/{modal-fullscreen.c6QphYQo.js → modal-fullscreen.CepaWyoi.js} +2 -2
  121. package/dist/chunks/{modal-fullscreen.c6QphYQo.js.map → modal-fullscreen.CepaWyoi.js.map} +1 -1
  122. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.ImqHKH-g.js → modal.vue_vue_type_script_setup_true_lang.BW9Ff59H.js} +49 -47
  123. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.ImqHKH-g.js.map → modal.vue_vue_type_script_setup_true_lang.BW9Ff59H.js.map} +1 -1
  124. package/dist/chunks/{pagination.Cu85Lqms.js → pagination.BJtoP8At.js} +2 -2
  125. package/dist/chunks/{pagination.Cu85Lqms.js.map → pagination.BJtoP8At.js.map} +1 -1
  126. package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -1
  127. package/dist/chunks/popover.types.D8tHtFl3.js.map +1 -1
  128. package/dist/chunks/popper-container.DMN8n5iC.js.map +1 -1
  129. package/dist/chunks/promo-banner.-H4r_cwj.js.map +1 -1
  130. package/dist/chunks/{pt-BR.DmhmCzxE.js → pt-BR.ChPOra5s.js} +2 -2
  131. package/dist/chunks/{pt-BR.DmhmCzxE.js.map → pt-BR.ChPOra5s.js.map} +1 -1
  132. package/dist/chunks/radio-group.CfMr1fmW.js.map +1 -1
  133. package/dist/chunks/{rich-text-editor.Bf9EWzNk.js → rich-text-editor.CSvPpLth.js} +3 -3
  134. package/dist/chunks/{rich-text-editor.Bf9EWzNk.js.map → rich-text-editor.CSvPpLth.js.map} +1 -1
  135. package/dist/chunks/{search-bar.p6kHCCvT.js → search-bar.CGXKk-gv.js} +4 -4
  136. package/dist/chunks/{search-bar.p6kHCCvT.js.map → search-bar.CGXKk-gv.js.map} +1 -1
  137. package/dist/chunks/{secondary-nav.CaxiyVaO.js → secondary-nav.DkcoRjfJ.js} +2 -2
  138. package/dist/chunks/{secondary-nav.CaxiyVaO.js.map → secondary-nav.DkcoRjfJ.js.map} +1 -1
  139. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -1
  140. package/dist/chunks/{sidepanel.CAVhSs-O.js → sidepanel.S037xghX.js} +3 -3
  141. package/dist/chunks/{sidepanel.CAVhSs-O.js.map → sidepanel.S037xghX.js.map} +1 -1
  142. package/dist/chunks/{startOfWeek.Cvmo-f5J.js → startOfWeek.muMEhS7U.js} +2 -2
  143. package/dist/chunks/{startOfWeek.Cvmo-f5J.js.map → startOfWeek.muMEhS7U.js.map} +1 -1
  144. package/dist/chunks/status.types.Dx8MDhEH.js.map +1 -1
  145. package/dist/chunks/{summary-grid.types.CDithi8M.js → summary-grid.types.D1JQ_jtv.js} +2 -2
  146. package/dist/chunks/{summary-grid.types.CDithi8M.js.map → summary-grid.types.D1JQ_jtv.js.map} +1 -1
  147. package/dist/chunks/tag.YN2r-Pp3.js.map +1 -1
  148. package/dist/chunks/{textarea.JGXAlpx9.js → textarea.-6FHesSp.js} +2 -2
  149. package/dist/chunks/textarea.-6FHesSp.js.map +1 -0
  150. package/dist/chunks/{timeline-item.BNFPpQz1.js → timeline-item.BJaFr2_Y.js} +5 -5
  151. package/dist/chunks/timeline-item.BJaFr2_Y.js.map +1 -0
  152. package/dist/chunks/{toggle.BQoprdX-.js → toggle.BdcgY15I.js} +3 -5
  153. package/dist/chunks/toggle.BdcgY15I.js.map +1 -0
  154. package/dist/chunks/tooltip.DHfG2aRt.js.map +1 -1
  155. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.C1cF-adv.js → tutorial.vue_vue_type_script_setup_true_lang.D_Z1zKam.js} +2 -2
  156. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.C1cF-adv.js.map → tutorial.vue_vue_type_script_setup_true_lang.D_Z1zKam.js.map} +1 -1
  157. package/dist/chunks/typography.B3J6_tYk.js.map +1 -1
  158. package/dist/chunks/use-cached-selected-values.DUWGSMvO.js +1740 -0
  159. package/dist/chunks/use-cached-selected-values.DUWGSMvO.js.map +1 -0
  160. package/dist/chunks/{use-date-input-formatter.BOuXpRb-.js → use-date-input-formatter.BH4hdEJW.js} +4 -4
  161. package/dist/chunks/{use-date-input-formatter.BOuXpRb-.js.map → use-date-input-formatter.BH4hdEJW.js.map} +1 -1
  162. package/dist/chunks/{zh-CN.Ce34mXsX.js → zh-CN.ZG6obniO.js} +3 -3
  163. package/dist/chunks/{zh-CN.Ce34mXsX.js.map → zh-CN.ZG6obniO.js.map} +1 -1
  164. package/dist/code-snippet.js +1 -1
  165. package/dist/dashboard-template.js +1 -1
  166. package/dist/dashed-underline.js +1 -1
  167. package/dist/data-grid-template.js +1 -1
  168. package/dist/data-grid.js +1 -1
  169. package/dist/date-picker.js +2 -2
  170. package/dist/date-range-picker.js +2 -2
  171. package/dist/draggable.js +1 -1
  172. package/dist/dropdown.js +3 -3
  173. package/dist/file-uploader.js +1 -1
  174. package/dist/filter-bar.js +1 -1
  175. package/dist/form-layout.js +1 -1
  176. package/dist/header-with-views.js +1 -1
  177. package/dist/header.js +1 -1
  178. package/dist/index.js +248 -248
  179. package/dist/index.js.map +1 -1
  180. package/dist/input-field-password.js +1 -1
  181. package/dist/input-field-phone-number.js +1 -1
  182. package/dist/input-field.js +1 -1
  183. package/dist/input-time.js +1 -1
  184. package/dist/internal.js +5 -5
  185. package/dist/menu.js +1 -1
  186. package/dist/modal-fullscreen.js +1 -1
  187. package/dist/modal.js +2 -2
  188. package/dist/pagination.js +1 -1
  189. package/dist/popover.js +1 -1
  190. package/dist/rich-text-editor.js +1 -1
  191. package/dist/search-bar.js +2 -2
  192. package/dist/secondary-nav.js +1 -1
  193. package/dist/sidepanel.js +1 -1
  194. package/dist/summary-grid.js +1 -1
  195. package/dist/textarea.js +1 -1
  196. package/dist/timeline.js +1 -1
  197. package/dist/toggle.js +1 -1
  198. package/dist/tutorial.js +1 -1
  199. package/dist/web-types.json +1 -1
  200. package/package.json +5 -5
  201. package/dist/chunks/alert.CFWN2E0b.js.map +0 -1
  202. package/dist/chunks/base-modal.BxcS7Pao.js.map +0 -1
  203. package/dist/chunks/button-actions.DLiM8KZL.js.map +0 -1
  204. package/dist/chunks/calendar.qm-kFNQv.js.map +0 -1
  205. package/dist/chunks/card.BEChcEqg.js.map +0 -1
  206. package/dist/chunks/checkbox-group.i3W8WO-7.js.map +0 -1
  207. package/dist/chunks/checkbox.BPrymcRl.js.map +0 -1
  208. package/dist/chunks/code-snippet.BG5ZmCrb.js.map +0 -1
  209. package/dist/chunks/constructNow.D9uRk678.js +0 -8
  210. package/dist/chunks/data-grid.DvMe72LK.js.map +0 -1
  211. package/dist/chunks/date-range-picker.c5OwESTS.js +0 -1027
  212. package/dist/chunks/date-range-picker.c5OwESTS.js.map +0 -1
  213. package/dist/chunks/dropdown-tag.wcJ6Mgqe.js.map +0 -1
  214. package/dist/chunks/dropdown.DHoL50gV.js.map +0 -1
  215. package/dist/chunks/filter-bar.Dt-cU3zy.js.map +0 -1
  216. package/dist/chunks/header.C21yzWrk.js.map +0 -1
  217. package/dist/chunks/input-field-password.DyUphhxB.js.map +0 -1
  218. package/dist/chunks/input-field.DkUFvIWt.js.map +0 -1
  219. package/dist/chunks/isSameWeek.Dj6luS8h.js +0 -14
  220. package/dist/chunks/textarea.JGXAlpx9.js.map +0 -1
  221. package/dist/chunks/timeline-item.BNFPpQz1.js.map +0 -1
  222. package/dist/chunks/toggle.BQoprdX-.js.map +0 -1
  223. package/dist/chunks/use-cached-selected-values.Bx8uuky9.js +0 -1657
  224. package/dist/chunks/use-cached-selected-values.Bx8uuky9.js.map +0 -1
  225. package/dist/chunks/warning-filled.BzyK_mMj.js +0 -29
  226. package/dist/chunks/warning-filled.BzyK_mMj.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"button-actions-with-menu.BKdNXYgU.js","sources":["../../../vue2/src/components/internal/button-actions-with-menu/composables/use-responsive-actions.ts","../../../vue2/src/components/internal/button-actions-with-menu/button-actions-with-menu.vue"],"sourcesContent":["import { useWindowSize } from '@vueuse/core';\nimport { nextTick, ref, type Ref, watch } from 'vue';\n\ninterface UseResponsiveActionsProps {\n breakpoint?: number;\n container: Ref<HTMLElement>;\n defaultActionsCount: Ref<number>;\n offset?: Ref<HTMLElement>;\n}\n\nexport const useResponsiveActions = (props: UseResponsiveActionsProps) => {\n const { breakpoint, container, defaultActionsCount, offset } = props;\n\n const { width: windowWidth } = useWindowSize();\n\n const displayedActionsCount = ref(defaultActionsCount.value);\n\n const AVERAGE_BUTTON_WIDTH = 150; // button size + gap\n\n const showActions = async () => {\n await nextTick();\n\n const availableSpace = container.value.clientWidth;\n const totalActionWidth =\n AVERAGE_BUTTON_WIDTH * displayedActionsCount.value +\n (offset?.value?.offsetWidth ?? 0) +\n AVERAGE_BUTTON_WIDTH;\n\n // Only add actions if there's enough space and we haven't reached max\n if (availableSpace >= totalActionWidth && displayedActionsCount.value < defaultActionsCount.value) {\n displayedActionsCount.value += 1;\n\n await showActions(); // keep trying to show more\n }\n };\n\n const hideActions = async () => {\n await nextTick();\n\n const availableSpace = container.value.clientWidth;\n const totalActionWidth = AVERAGE_BUTTON_WIDTH * displayedActionsCount.value + (offset?.value?.offsetWidth ?? 0);\n\n // Hide actions if they overflow the container\n if (availableSpace < totalActionWidth && displayedActionsCount.value > 0) {\n displayedActionsCount.value -= 1;\n\n await hideActions(); // keep hiding until it fits\n }\n };\n\n watch([windowWidth, container], async ([newWidth, containerEl], [oldWidth]) => {\n if (!containerEl || !defaultActionsCount || newWidth > breakpoint) {\n return;\n }\n\n await nextTick();\n\n const isIncreasing = newWidth > oldWidth;\n\n if (isIncreasing) {\n await showActions();\n } else {\n await hideActions();\n }\n });\n\n watch(defaultActionsCount, async count => {\n displayedActionsCount.value = count;\n\n if (breakpoint && windowWidth.value <= breakpoint && container.value) {\n await hideActions();\n }\n });\n\n return {\n displayedActionsCount,\n };\n};\n","<template>\n <div class=\"b-button-actions-with-menu\">\n <div\n ref=\"buttonActionsWithMenu\"\n role=\"group\"\n class=\"b-button-actions-with-menu__container-wrapper\"\n :class=\"conditionalClasses\"\n >\n <bento-button-actions :actions=\"computedActions\" :inverse=\"inverse\" :layout=\"actionsLayout\" />\n <bento-menu\n v-if=\"computedMenuActions.length\"\n ref=\"menu\"\n :data=\"computedMenuActions\"\n :menu-position=\"menuPosition\"\n />\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { BentoButtonActions } from '@/components/button';\n import { type BentoMenuItem } from '@/components/menu/components/menu-item/menu-item.types';\n import { MENU_INVERSE_INJECTION_KEY } from '@/components/menu/menu.keys';\n import BentoMenu from '@/components/menu/menu.vue';\n import { computed, provide, ref, toRef } from 'vue';\n import { BUTTON_ACTIONS_WITH_MENU_CONTAINER_INJECTION_KEY } from './button-actions-with-menu.keys';\n import { type ButtonActionsWithMenuProps } from './button-actions-with-menu.types';\n import { useResponsiveActions } from './composables/use-responsive-actions';\n\n const props = withDefaults(defineProps<ButtonActionsWithMenuProps>(), {\n actionsLayout: 'buttons-end',\n disableResponsiveBehavior: false,\n displayedActions: undefined,\n inverse: false,\n hideDisplayedActionsBreakpoint: 0,\n menuPosition: 'bottom-start',\n });\n\n const inverseRef = toRef(props, 'inverse');\n const buttonActionsWithMenu = ref<HTMLDivElement>(null);\n const menu = ref(null);\n const stackButtons = ref(false);\n\n const computedActions = computed(() => {\n const displayedActionsLimit = props.hideDisplayedActionsBreakpoint\n ? displayedActionsCount.value\n : props.displayedActions;\n\n return props.actions.slice(0, displayedActionsLimit);\n });\n const computedMenuRef = computed(() => menu?.value?.$el);\n\n const { displayedActionsCount } = useResponsiveActions({\n breakpoint: props.hideDisplayedActionsBreakpoint,\n container: buttonActionsWithMenu,\n defaultActionsCount: toRef(props, 'displayedActions'),\n offset: computedMenuRef,\n });\n\n provide(MENU_INVERSE_INJECTION_KEY, inverseRef);\n\n if (!props.disableResponsiveBehavior) {\n provide(BUTTON_ACTIONS_WITH_MENU_CONTAINER_INJECTION_KEY, { buttonActionsWithMenu, menu, stackButtons });\n }\n\n const conditionalClasses = computed(() => ({\n [`b-button-actions-with-menu__container-wrapper--buttons-end`]: props.actionsLayout === 'buttons-end',\n [`b-button-actions-with-menu__container-wrapper--buttons-start`]: props.actionsLayout === 'buttons-start',\n [`b-button-actions-with-menu__container-wrapper--stacked-buttons`]: stackButtons.value,\n }));\n\n const computedMenuActions = computed(() => {\n if (displayedActionsCount.value === undefined || displayedActionsCount.value >= props.actions.length) {\n return [];\n }\n\n const actionsToProcess = props.actions.slice(displayedActionsCount.value, props.actions.length);\n\n return actionsToProcess.flatMap<BentoMenuItem>(action => {\n if (!action.data) {\n return {\n text: action.title,\n handler: () => action.event?.({} as Event),\n icon: action.icon,\n critical: action.critical,\n disabled: action.disabled,\n };\n }\n\n return action.data;\n });\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * An internal button actions component with the option to display some of the actions in a menu.\n *\n * @example\n * <button-actions-with-menu\n * :actions=\"[\n * {\n * title: 'Primary',\n * event: () => { ... },\n * icon: FourPeopleIcon,\n * link: {\n * variant: 'default',\n * external: true,\n * to: 'https://www.adyen.com/'\n * },\n * },\n * {\n * title: 'Secondary',\n * event: () => { ... }\n * disabled: true,\n * variant: BentoButtonVariant.PRIMARY,\n * critical: true\n * }]\"\n * :displayedActions=\"2\"\n * />\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./button-actions-with-menu.scss\" />\n"],"names":["useResponsiveActions","props","breakpoint","container","defaultActionsCount","offset","windowWidth","useWindowSize","displayedActionsCount","ref","AVERAGE_BUTTON_WIDTH","showActions","nextTick","availableSpace","totalActionWidth","hideActions","watch","newWidth","containerEl","oldWidth","count","__default__","__props","inverseRef","toRef","buttonActionsWithMenu","menu","stackButtons","computedActions","computed","displayedActionsLimit","computedMenuRef","provide","MENU_INVERSE_INJECTION_KEY","BUTTON_ACTIONS_WITH_MENU_CONTAINER_INJECTION_KEY","conditionalClasses","computedMenuActions","action"],"mappings":";;;;;AAUO,MAAAA,IAAA,CAAAC,MAAA;AACH,QAAA,EAAA,YAAAC,GAAA,WAAAC,GAAA,qBAAAC,GAAA,QAAAC,EAAA,IAAAJ,GAEA,EAAA,OAAAK,EAAA,IAAAC,EAAA,GAEAC,IAAAC,EAAAL,EAAA,KAAA,GAEAM,IAAA,KAEAC,IAAA,YAAA;AACI,UAAAC,EAAA;AAEA,UAAAC,IAAAV,EAAA,MAAA,aACAW,IAAAJ,IAAAF,EAAA,SAAAH,GAAA,OAAA,eAAA,KAAAK;AAMA,IAAAG,KAAAC,KAAAN,EAAA,QAAAJ,EAAA,UACII,EAAA,SAAA,GAEA,MAAAG,EAAA;AAAA,EACJ,GAGJI,IAAA,YAAA;AACI,UAAAH,EAAA;AAEA,UAAAC,IAAAV,EAAA,MAAA,aACAW,IAAAJ,IAAAF,EAAA,SAAAH,GAAA,OAAA,eAAA;AAGA,IAAAQ,IAAAC,KAAAN,EAAA,QAAA,MACIA,EAAA,SAAA,GAEA,MAAAO,EAAA;AAAA,EACJ;AAGJ,SAAAC,EAAA,CAAAV,GAAAH,CAAA,GAAA,OAAA,CAAAc,GAAAC,CAAA,GAAA,CAAAC,CAAA,MAAA;AACI,QAAA,CAAAD,KAAA,CAAAd,KAAAa,IAAAf;AACI;AAGJ,UAAAU,EAAA,GAEAK,IAAAE,IAGI,MAAAR,EAAA,IAEA,MAAAI,EAAA;AAAA,EACJ,CAAA,GAGJC,EAAAZ,GAAA,OAAAgB,MAAA;AACI,IAAAZ,EAAA,QAAAY,GAEAlB,KAAAI,EAAA,SAAAJ,KAAAC,EAAA,SACI,MAAAY,EAAA;AAAA,EACJ,CAAA,GAGJ;AAAA,IAAO,uBAAAP;AAAA,EACH;AAER,gDC4CIa,IAAA,CAAA;;;;;;;;;;;;;AA5FA,UAAApB,IAAAqB,GASAC,IAAAC,EAAAvB,GAAA,SAAA,GACAwB,IAAAhB,EAAA,IAAA,GACAiB,IAAAjB,EAAA,IAAA,GACAkB,IAAAlB,EAAA,EAAA,GAEAmB,IAAAC,EAAA,MAAA;AACI,YAAAC,IAAA7B,EAAA,iCAAAO,EAAA,QAAAP,EAAA;AAIA,aAAAA,EAAA,QAAA,MAAA,GAAA6B,CAAA;AAAA,IAAmD,CAAA,GAEvDC,IAAAF,EAAA,MAAAH,GAAA,OAAA,GAAA,GAEA,EAAA,uBAAAlB,EAAA,IAAAR,EAAA;AAAA,MAAuD,YAAAC,EAAA;AAAA,MACjC,WAAAwB;AAAA,MACP,qBAAAD,EAAAvB,GAAA,kBAAA;AAAA,MACyC,QAAA8B;AAAA,IAC5C,CAAA;AAGZ,IAAAC,EAAAC,GAAAV,CAAA,GAEAtB,EAAA,6BACI+B,EAAAE,GAAA,EAAA,uBAAAT,GAAA,MAAAC,GAAA,cAAAC,EAAA,CAAA;AAGJ,UAAAQ,IAAAN,EAAA,OAAA;AAAA,MAA2C,8DAAA5B,EAAA,kBAAA;AAAA,MACiD,gEAAAA,EAAA,kBAAA;AAAA,MACE,kEAAA0B,EAAA;AAAA,IACT,EAAA,GAGrFS,IAAAP,EAAA,MACIrB,EAAA,UAAA,UAAAA,EAAA,SAAAP,EAAA,QAAA,SACI,CAAA,IAGJA,EAAA,QAAA,MAAAO,EAAA,OAAAP,EAAA,QAAA,MAAA,EAEA,QAAA,CAAAoC,MACIA,EAAA,OAUAA,EAAA,OATI;AAAA,MAAO,MAAAA,EAAA;AAAA,MACU,SAAA,MAAAA,EAAA,QAAA,CAAA,CAAA;AAAA,MAC4B,MAAAA,EAAA;AAAA,MAC5B,UAAAA,EAAA;AAAA,MACI,UAAAA,EAAA;AAAA,IACA,CAIX,CACjB;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"button-actions-with-menu.KaWdHibo.js","sources":["../../../vue2/src/components/internal/button-actions-with-menu/composables/use-responsive-actions.ts","../../../vue2/src/components/internal/button-actions-with-menu/button-actions-with-menu.vue"],"sourcesContent":["import { useWindowSize } from '@vueuse/core';\nimport { nextTick, ref, type Ref, watch } from 'vue';\n\ninterface UseResponsiveActionsProps {\n breakpoint?: number;\n container: Ref<HTMLElement>;\n defaultActionsCount: Ref<number>;\n offset?: Ref<HTMLElement>;\n}\n\nexport const useResponsiveActions = (props: UseResponsiveActionsProps) => {\n const { breakpoint, container, defaultActionsCount, offset } = props;\n\n const { width: windowWidth } = useWindowSize();\n\n const displayedActionsCount = ref(defaultActionsCount.value);\n\n const AVERAGE_BUTTON_WIDTH = 150; // button size + gap\n\n const showActions = async () => {\n await nextTick();\n\n const availableSpace = container.value.clientWidth;\n const totalActionWidth =\n AVERAGE_BUTTON_WIDTH * displayedActionsCount.value +\n (offset?.value?.offsetWidth ?? 0) +\n AVERAGE_BUTTON_WIDTH;\n\n // Only add actions if there's enough space and we haven't reached max\n if (availableSpace >= totalActionWidth && displayedActionsCount.value < defaultActionsCount.value) {\n displayedActionsCount.value += 1;\n\n await showActions(); // keep trying to show more\n }\n };\n\n const hideActions = async () => {\n await nextTick();\n\n const availableSpace = container.value.clientWidth;\n const totalActionWidth = AVERAGE_BUTTON_WIDTH * displayedActionsCount.value + (offset?.value?.offsetWidth ?? 0);\n\n // Hide actions if they overflow the container\n if (availableSpace < totalActionWidth && displayedActionsCount.value > 0) {\n displayedActionsCount.value -= 1;\n\n await hideActions(); // keep hiding until it fits\n }\n };\n\n watch([windowWidth, container], async ([newWidth, containerEl], [oldWidth]) => {\n if (!containerEl || !defaultActionsCount || newWidth > breakpoint) {\n return;\n }\n\n await nextTick();\n\n const isIncreasing = newWidth > oldWidth;\n\n if (isIncreasing) {\n await showActions();\n } else {\n await hideActions();\n }\n });\n\n watch(defaultActionsCount, async count => {\n displayedActionsCount.value = count;\n\n if (breakpoint && windowWidth.value <= breakpoint && container.value) {\n await hideActions();\n }\n });\n\n return {\n displayedActionsCount,\n };\n};\n","<template>\n <div class=\"b-button-actions-with-menu\">\n <div\n ref=\"buttonActionsWithMenu\"\n role=\"group\"\n class=\"b-button-actions-with-menu__container-wrapper\"\n :class=\"conditionalClasses\"\n >\n <bento-button-actions :actions=\"computedActions\" :inverse=\"inverse\" :layout=\"actionsLayout\" />\n <bento-menu\n v-if=\"computedMenuActions.length\"\n ref=\"menu\"\n :data=\"computedMenuActions\"\n :menu-position=\"menuPosition\"\n />\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { BentoButtonActions } from '@/components/button';\n import { type BentoMenuItem } from '@/components/menu/components/menu-item/menu-item.types';\n import { MENU_INVERSE_INJECTION_KEY } from '@/components/menu/menu.keys';\n import BentoMenu from '@/components/menu/menu.vue';\n import { computed, provide, ref, toRef } from 'vue';\n import { BUTTON_ACTIONS_WITH_MENU_CONTAINER_INJECTION_KEY } from './button-actions-with-menu.keys';\n import { type ButtonActionsWithMenuProps } from './button-actions-with-menu.types';\n import { useResponsiveActions } from './composables/use-responsive-actions';\n\n const props = withDefaults(defineProps<ButtonActionsWithMenuProps>(), {\n actionsLayout: 'buttons-end',\n disableResponsiveBehavior: false,\n displayedActions: undefined,\n inverse: false,\n hideDisplayedActionsBreakpoint: 0,\n menuPosition: 'bottom-start',\n });\n\n const inverseRef = toRef(props, 'inverse');\n const buttonActionsWithMenu = ref<HTMLDivElement>(null);\n const menu = ref(null);\n const stackButtons = ref(false);\n\n const computedActions = computed(() => {\n const displayedActionsLimit = props.hideDisplayedActionsBreakpoint\n ? displayedActionsCount.value\n : props.displayedActions;\n\n return props.actions.slice(0, displayedActionsLimit);\n });\n const computedMenuRef = computed(() => menu?.value?.$el);\n\n const { displayedActionsCount } = useResponsiveActions({\n breakpoint: props.hideDisplayedActionsBreakpoint,\n container: buttonActionsWithMenu,\n defaultActionsCount: toRef(props, 'displayedActions'),\n offset: computedMenuRef,\n });\n\n provide(MENU_INVERSE_INJECTION_KEY, inverseRef);\n\n if (!props.disableResponsiveBehavior) {\n provide(BUTTON_ACTIONS_WITH_MENU_CONTAINER_INJECTION_KEY, { buttonActionsWithMenu, menu, stackButtons });\n }\n\n const conditionalClasses = computed(() => ({\n [`b-button-actions-with-menu__container-wrapper--buttons-end`]: props.actionsLayout === 'buttons-end',\n [`b-button-actions-with-menu__container-wrapper--buttons-start`]: props.actionsLayout === 'buttons-start',\n [`b-button-actions-with-menu__container-wrapper--stacked-buttons`]: stackButtons.value,\n }));\n\n const computedMenuActions = computed(() => {\n if (displayedActionsCount.value === undefined || displayedActionsCount.value >= props.actions.length) {\n return [];\n }\n\n const actionsToProcess = props.actions.slice(displayedActionsCount.value, props.actions.length);\n\n return actionsToProcess.flatMap<BentoMenuItem>(action => {\n if (!action.data) {\n return {\n text: action.title,\n handler: () => action.event?.({} as Event),\n icon: action.icon,\n critical: action.critical,\n disabled: action.disabled,\n };\n }\n\n return action.data;\n });\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * An internal button actions component with the option to display some of the actions in a menu.\n *\n * @example\n * <button-actions-with-menu\n * :actions=\"[\n * {\n * title: 'Primary',\n * event: () => { ... },\n * icon: FourPeopleIcon,\n * link: {\n * variant: 'default',\n * external: true,\n * to: 'https://www.adyen.com/'\n * },\n * },\n * {\n * title: 'Secondary',\n * event: () => { ... }\n * disabled: true,\n * variant: BentoButtonVariant.PRIMARY,\n * critical: true\n * }]\"\n * :displayedActions=\"2\"\n * />\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./button-actions-with-menu.scss\" />\n"],"names":["useResponsiveActions","props","breakpoint","container","defaultActionsCount","offset","windowWidth","useWindowSize","displayedActionsCount","ref","AVERAGE_BUTTON_WIDTH","showActions","nextTick","availableSpace","totalActionWidth","hideActions","watch","newWidth","containerEl","oldWidth","count","__default__","__props","inverseRef","toRef","buttonActionsWithMenu","menu","stackButtons","computedActions","computed","displayedActionsLimit","computedMenuRef","provide","MENU_INVERSE_INJECTION_KEY","BUTTON_ACTIONS_WITH_MENU_CONTAINER_INJECTION_KEY","conditionalClasses","computedMenuActions","action"],"mappings":";;;;;AAUO,MAAAA,IAAA,CAAAC,MAAA;AACH,QAAA,EAAA,YAAAC,GAAA,WAAAC,GAAA,qBAAAC,GAAA,QAAAC,EAAA,IAAAJ,GAEA,EAAA,OAAAK,EAAA,IAAAC,EAAA,GAEAC,IAAAC,EAAAL,EAAA,KAAA,GAEAM,IAAA,KAEAC,IAAA,YAAA;AACI,UAAAC,EAAA;AAEA,UAAAC,IAAAV,EAAA,MAAA,aACAW,IAAAJ,IAAAF,EAAA,SAAAH,GAAA,OAAA,eAAA,KAAAK;AAMA,IAAAG,KAAAC,KAAAN,EAAA,QAAAJ,EAAA,UACII,EAAA,SAAA,GAEA,MAAAG,EAAA;AAAA,EACJ,GAGJI,IAAA,YAAA;AACI,UAAAH,EAAA;AAEA,UAAAC,IAAAV,EAAA,MAAA,aACAW,IAAAJ,IAAAF,EAAA,SAAAH,GAAA,OAAA,eAAA;AAGA,IAAAQ,IAAAC,KAAAN,EAAA,QAAA,MACIA,EAAA,SAAA,GAEA,MAAAO,EAAA;AAAA,EACJ;AAGJ,SAAAC,EAAA,CAAAV,GAAAH,CAAA,GAAA,OAAA,CAAAc,GAAAC,CAAA,GAAA,CAAAC,CAAA,MAAA;AACI,QAAA,CAAAD,KAAA,CAAAd,KAAAa,IAAAf;AACI;AAGJ,UAAAU,EAAA,GAEAK,IAAAE,IAGI,MAAAR,EAAA,IAEA,MAAAI,EAAA;AAAA,EACJ,CAAA,GAGJC,EAAAZ,GAAA,OAAAgB,MAAA;AACI,IAAAZ,EAAA,QAAAY,GAEAlB,KAAAI,EAAA,SAAAJ,KAAAC,EAAA,SACI,MAAAY,EAAA;AAAA,EACJ,CAAA,GAGJ;AAAA,IAAO,uBAAAP;AAAA,EACH;AAER,gDC4CIa,IAAA,CAAA;;;;;;;;;;;;;AA5FA,UAAApB,IAAAqB,GASAC,IAAAC,EAAAvB,GAAA,SAAA,GACAwB,IAAAhB,EAAA,IAAA,GACAiB,IAAAjB,EAAA,IAAA,GACAkB,IAAAlB,EAAA,EAAA,GAEAmB,IAAAC,EAAA,MAAA;AACI,YAAAC,IAAA7B,EAAA,iCAAAO,EAAA,QAAAP,EAAA;AAIA,aAAAA,EAAA,QAAA,MAAA,GAAA6B,CAAA;AAAA,IAAmD,CAAA,GAEvDC,IAAAF,EAAA,MAAAH,GAAA,OAAA,GAAA,GAEA,EAAA,uBAAAlB,EAAA,IAAAR,EAAA;AAAA,MAAuD,YAAAC,EAAA;AAAA,MACjC,WAAAwB;AAAA,MACP,qBAAAD,EAAAvB,GAAA,kBAAA;AAAA,MACyC,QAAA8B;AAAA,IAC5C,CAAA;AAGZ,IAAAC,EAAAC,GAAAV,CAAA,GAEAtB,EAAA,6BACI+B,EAAAE,GAAA,EAAA,uBAAAT,GAAA,MAAAC,GAAA,cAAAC,EAAA,CAAA;AAGJ,UAAAQ,IAAAN,EAAA,OAAA;AAAA,MAA2C,8DAAA5B,EAAA,kBAAA;AAAA,MACiD,gEAAAA,EAAA,kBAAA;AAAA,MACE,kEAAA0B,EAAA;AAAA,IACT,EAAA,GAGrFS,IAAAP,EAAA,MACIrB,EAAA,UAAA,UAAAA,EAAA,SAAAP,EAAA,QAAA,SACI,CAAA,IAGJA,EAAA,QAAA,MAAAO,EAAA,OAAAP,EAAA,QAAA,MAAA,EAEA,QAAA,CAAAoC,MACIA,EAAA,OAUAA,EAAA,OATI;AAAA,MAAO,MAAAA,EAAA;AAAA,MACU,SAAA,MAAAA,EAAA,QAAA,CAAA,CAAA;AAAA,MAC4B,MAAAA,EAAA;AAAA,MAC5B,UAAAA,EAAA;AAAA,MACI,UAAAA,EAAA;AAAA,IACA,CAIX,CACjB;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,14 +1,14 @@
1
- import { defineComponent as $, useSlots as q, computed as g, openBlock as l, createBlock as h, withModifiers as z, normalizeClass as F, createSlots as V, withCtx as b, renderSlot as w, unref as p, createElementVNode as K, createCommentVNode as I, mergeProps as Y, renderList as Z, normalizeProps as Se, guardReactiveProps as $e, resolveComponent as S, createVNode as O, createTextVNode as G, toDisplayString as U, onMounted as Q, onUnmounted as fe, useAttrs as Le, inject as P, ref as v, toRefs as Te, Transition as me, createElementBlock as C, Teleport as Me, resolveDynamicComponent as H, toHandlers as ne, withKeys as T, Fragment as X, watch as pe, nextTick as x, toRef as ve, normalizeStyle as be, provide as Ne } from "vue";
1
+ import { defineComponent as L, useSlots as q, computed as y, openBlock as l, createBlock as h, withModifiers as z, normalizeClass as F, createSlots as V, withCtx as b, renderSlot as w, unref as p, createElementVNode as K, createCommentVNode as I, mergeProps as Y, renderList as Z, normalizeProps as Se, guardReactiveProps as Le, resolveComponent as S, createVNode as O, createTextVNode as G, toDisplayString as U, onMounted as Q, onUnmounted as fe, useAttrs as $e, inject as P, ref as v, toRefs as Te, Transition as me, createElementBlock as C, Teleport as Me, resolveDynamicComponent as H, toHandlers as ne, withKeys as T, Fragment as X, watch as pe, nextTick as x, toRef as ve, normalizeStyle as be, provide as Ne } from "vue";
2
2
  import { B as E } from "./button.DWF7FSIw.js";
3
3
  import { B as we } from "./loading-indicator.BPol9I84.js";
4
4
  import { C as Re } from "./cross-circle-fill.BWCKKn0E.js";
5
5
  import { C as Ae } from "./checkmark-circle-fill.DugX5fbG.js";
6
6
  import { u as oe } from "./use-has-slot.CyMiImRQ.js";
7
7
  import { u as he } from "./index.B875RXHM.js";
8
- import { _ as L } from "./_plugin-vue_export-helper.CHgC5LLL.js";
9
- import { B as ye, D as De } from "./divider.BIY84UH7.js";
8
+ import { _ as $ } from "./_plugin-vue_export-helper.CHgC5LLL.js";
9
+ import { B as ge, D as De } from "./divider.BIY84UH7.js";
10
10
  import { C as Pe } from "./cross.CCHdi6v3.js";
11
- import { B as ge, c as ae, p as Fe } from "./typography.B3J6_tYk.js";
11
+ import { B as ye, c as ae, p as Fe } from "./typography.B3J6_tYk.js";
12
12
  import { a as We, P as Ke, b as Ve } from "./popper-container.DMN8n5iC.js";
13
13
  import { u as Ue } from "./aria-label.CaUURpnB.js";
14
14
  import { o as je } from "./on-click-outside.BgIzQ2G1.js";
@@ -39,7 +39,7 @@ const Ce = {
39
39
  "data-testid": "loading-button-rotating-icon"
40
40
  }, Qe = {
41
41
  i18n: { messages: Ce }
42
- }, xe = /* @__PURE__ */ $({
42
+ }, xe = /* @__PURE__ */ L({
43
43
  ...Qe,
44
44
  __name: "loading-button",
45
45
  props: {
@@ -91,14 +91,14 @@ const Ce = {
91
91
  },
92
92
  emits: ["click"],
93
93
  setup(e, { emit: t }) {
94
- const i = e, o = t, u = q(), m = oe(u), { t: r } = he({ messages: Ce }), c = g(() => ({
94
+ const i = e, o = t, u = q(), m = oe(u), { t: r } = he({ messages: Ce }), c = y(() => ({
95
95
  [`b-loading-button--${i.variant}-${N.LOADING}`]: i.state === N.LOADING && !i.disabled,
96
96
  "b-loading-button--loading": i.state === N.LOADING && !i.disabled,
97
97
  [`b-loading-button--${i.variant}-${N.SUCCESS}`]: i.state === N.SUCCESS,
98
98
  "b-loading-button--inverse": i.inverse
99
- })), f = g(
99
+ })), f = y(
100
100
  () => i.variant === "primary" && !i.inverse || i.variant !== "primary" && i.inverse
101
- ), a = g(
101
+ ), a = y(
102
102
  () => i.critical && i.state === N.START || i.state === N.FAIL
103
103
  ), s = (d) => {
104
104
  d.stopPropagation(), i.state !== N.LOADING && o("click", d);
@@ -144,7 +144,7 @@ const Ce = {
144
144
  } : void 0
145
145
  ]), 1032, ["critical", "variant", "condensed", "disabled", "inverse", "class"]));
146
146
  }
147
- }), et = /* @__PURE__ */ L(xe, [["__scopeId", "data-v-e68a786b"]]), tt = {}, nt = /* @__PURE__ */ $({
147
+ }), et = /* @__PURE__ */ $(xe, [["__scopeId", "data-v-e68a786b"]]), tt = {}, nt = /* @__PURE__ */ L({
148
148
  ...tt,
149
149
  __name: "toggle-button",
150
150
  props: {
@@ -188,9 +188,9 @@ const Ce = {
188
188
  },
189
189
  emits: ["click", "update:toggled"],
190
190
  setup(e, { emit: t }) {
191
- const i = e, o = t, u = g(
191
+ const i = e, o = t, u = y(
192
192
  () => i.variant === "tertiary" ? "tertiary-with-background" : i.variant
193
- ), m = g(() => ({
193
+ ), m = y(() => ({
194
194
  "b-toggle-button--condensed": i?.condensed,
195
195
  [`b-toggle-button--${u.value}-toggled`]: i.toggled,
196
196
  "b-toggle-button--inverse": i.inverse
@@ -210,12 +210,12 @@ const Ce = {
210
210
  Z(p(c), (d, n) => ({
211
211
  name: n,
212
212
  fn: b(() => [
213
- w(a.$slots, n, Se($e(f(n))), void 0, !0)
213
+ w(a.$slots, n, Se(Le(f(n))), void 0, !0)
214
214
  ])
215
215
  }))
216
216
  ]), 1040, ["aria-expanded", "aria-pressed", "condensed", "class", "disabled", "inverse", "variant"]));
217
217
  }
218
- }), ot = /* @__PURE__ */ L(nt, [["__scopeId", "data-v-f1b10e5f"]]), st = $({
218
+ }), ot = /* @__PURE__ */ $(nt, [["__scopeId", "data-v-f1b10e5f"]]), st = L({
219
219
  name: "bento-popover-dismiss-button",
220
220
  components: { BentoButton: E, CrossIcon: Pe },
221
221
  props: {
@@ -227,7 +227,7 @@ const Ce = {
227
227
  setup(e) {
228
228
  return {
229
229
  // Values
230
- conditionalClass: g(() => ({ "b-popover-dismiss-button--on-image": e.onImage }))
230
+ conditionalClass: y(() => ({ "b-popover-dismiss-button--on-image": e.onImage }))
231
231
  };
232
232
  }
233
233
  });
@@ -244,8 +244,8 @@ function it(e, t, i, o, u, m) {
244
244
  _: 1
245
245
  }, 8, ["class"]);
246
246
  }
247
- const ue = /* @__PURE__ */ L(st, [["render", it], ["__scopeId", "data-v-424ecdaa"]]), at = $({
248
- components: { BentoTypography: ge },
247
+ const ue = /* @__PURE__ */ $(st, [["render", it], ["__scopeId", "data-v-424ecdaa"]]), at = L({
248
+ components: { BentoTypography: ye },
249
249
  props: {
250
250
  /**
251
251
  * Indicates if the popover contains an image.
@@ -257,7 +257,7 @@ const ue = /* @__PURE__ */ L(st, [["render", it], ["__scopeId", "data-v-424ecdaa
257
257
  title: { type: String, default: null }
258
258
  },
259
259
  setup(e) {
260
- const t = g(() => !e.isImageTitle), i = g(
260
+ const t = y(() => !e.isImageTitle), i = y(
261
261
  () => e.isImageTitle ? ae.SUBTITLE : ae.BODY
262
262
  );
263
263
  return {
@@ -280,7 +280,7 @@ function lt(e, t, i, o, u, m) {
280
280
  _: 1
281
281
  }, 8, ["strongest", "variant"]);
282
282
  }
283
- const rt = /* @__PURE__ */ L(at, [["render", lt]]), ut = (e, t, i = {}) => {
283
+ const rt = /* @__PURE__ */ $(at, [["render", lt]]), ut = (e, t, i = {}) => {
284
284
  let o;
285
285
  Q(() => {
286
286
  o = je(e, t, i);
@@ -296,11 +296,11 @@ const rt = /* @__PURE__ */ L(at, [["render", lt]]), ut = (e, t, i = {}) => {
296
296
  }, vt = {
297
297
  key: 1,
298
298
  class: "b-popover__header"
299
- }, bt = { class: "b-popover__header-title" }, ht = { key: 0 }, yt = {
299
+ }, bt = { class: "b-popover__header-title" }, ht = { key: 0 }, gt = {
300
300
  key: 3,
301
301
  class: "b-popover__footer"
302
- }, gt = {}, _t = /* @__PURE__ */ $({
303
- ...gt,
302
+ }, yt = {}, _t = /* @__PURE__ */ L({
303
+ ...yt,
304
304
  __name: "popover",
305
305
  props: {
306
306
  actions: { default: void 0 },
@@ -326,7 +326,7 @@ const rt = /* @__PURE__ */ L(at, [["render", lt]]), ut = (e, t, i = {}) => {
326
326
  },
327
327
  emits: ["dismiss", "placement"],
328
328
  setup(e, { emit: t }) {
329
- const o = e, u = t, m = q(), r = Le(), c = g(() => ({
329
+ const o = e, u = t, m = q(), r = $e(), c = y(() => ({
330
330
  id: r.id?.toString(),
331
331
  role: r?.role === null ? void 0 : We.POPOVER
332
332
  })), f = P(ft, 2), a = v(r["aria-label"]), { ariaLabel: s, title: d } = Te(o), n = Ue({
@@ -334,14 +334,14 @@ const rt = /* @__PURE__ */ L(at, [["render", lt]]), ut = (e, t, i = {}) => {
334
334
  // TODO: take this line away when the aria-label props is removed
335
335
  label: s,
336
336
  defaultFallback: d
337
- }), k = P(ct, !1) || P(dt, !1), B = g(() => ({
337
+ }), k = P(ct, !1) || P(dt, !1), B = y(() => ({
338
338
  "b-popover--small": o.small && !o.large,
339
339
  "b-popover--with-divider": !!o.divider,
340
340
  "b-popover--large": o.large && !o.small,
341
341
  "b-popover--fit-content": o.fitContent,
342
342
  "b-popover--without-space": o.withoutSpace,
343
343
  "b-popover--overflow-visible": o.overflowVisible || k
344
- })), W = g(() => ({
344
+ })), W = y(() => ({
345
345
  "b-popover__content--with-title": !!o.title
346
346
  })), j = () => u("dismiss"), R = oe(m);
347
347
  return (_, A) => (l(), h(me, { name: "b-popover__animation" }, {
@@ -391,7 +391,7 @@ const rt = /* @__PURE__ */ L(at, [["render", lt]]), ut = (e, t, i = {}) => {
391
391
  }, [
392
392
  w(_.$slots, "default", {}, void 0, !0)
393
393
  ], 2)) : I("", !0),
394
- _.actions ? (l(), C("div", yt, [
394
+ _.actions ? (l(), C("div", gt, [
395
395
  O(en, {
396
396
  actions: _.actions,
397
397
  layout: _.actionsLayout
@@ -404,7 +404,7 @@ const rt = /* @__PURE__ */ L(at, [["render", lt]]), ut = (e, t, i = {}) => {
404
404
  _: 3
405
405
  }));
406
406
  }
407
- }), Ct = /* @__PURE__ */ L(_t, [["__scopeId", "data-v-84ebb43a"]]), kt = /* @__PURE__ */ Symbol("modal injection key"), It = /* @__PURE__ */ Symbol("sidepanel children element injection key"), Bt = /* @__PURE__ */ Symbol("modal fullscreen children element injection key"), En = /* @__PURE__ */ Symbol("modal fullscreen title id injection key"), Sn = /* @__PURE__ */ Symbol("modal fullscreen close injection key"), Ot = $({
407
+ }), Ct = /* @__PURE__ */ $(_t, [["__scopeId", "data-v-84ebb43a"]]), kt = /* @__PURE__ */ Symbol("modal injection key"), It = /* @__PURE__ */ Symbol("sidepanel children element injection key"), Bt = /* @__PURE__ */ Symbol("modal fullscreen children element injection key"), En = /* @__PURE__ */ Symbol("modal fullscreen title id injection key"), Sn = /* @__PURE__ */ Symbol("modal fullscreen close injection key"), Ot = L({
408
408
  name: "teleport",
409
409
  props: {
410
410
  to: {
@@ -440,16 +440,11 @@ const rt = /* @__PURE__ */ L(at, [["render", lt]]), ut = (e, t, i = {}) => {
440
440
  to: "maybeMove",
441
441
  where: "maybeMove",
442
442
  disabled(e) {
443
- e ? (this.disable(), this.$nextTick(() => {
444
- this.teardownObserver();
445
- })) : (this.bootObserver(), this.move());
446
443
  }
447
444
  },
448
445
  mounted() {
449
- this.nodes = Array.from(this.$el.childNodes), this.disabled || this.bootObserver(), this.maybeMove();
450
446
  },
451
447
  beforeDestroy() {
452
- this.nodes = this.getComponentChildrenNode(), this.disable(), this.teardownObserver();
453
448
  },
454
449
  methods: {
455
450
  // Using a fragment is faster because it'll trigger only a single reflow
@@ -469,7 +464,6 @@ const rt = /* @__PURE__ */ L(at, [["render", lt]]), ut = (e, t, i = {}) => {
469
464
  this.where === "before" ? this.parent.prepend(this.getFragment()) : this.parent.appendChild(this.getFragment());
470
465
  },
471
466
  maybeMove() {
472
- this.disabled || this.move();
473
467
  },
474
468
  onMutations(e) {
475
469
  let t = !1;
@@ -503,7 +497,7 @@ const rt = /* @__PURE__ */ L(at, [["render", lt]]), ut = (e, t, i = {}) => {
503
497
  return [];
504
498
  }
505
499
  }
506
- }), Et = /* @__PURE__ */ $({
500
+ }), Et = /* @__PURE__ */ L({
507
501
  ...Ot,
508
502
  setup(e) {
509
503
  return (t, i) => p(_e) ? (l(), C("div", {
@@ -521,13 +515,13 @@ const rt = /* @__PURE__ */ L(at, [["render", lt]]), ut = (e, t, i = {}) => {
521
515
  w(t.$slots, "default", {}, void 0, !0)
522
516
  ], 8, ["to", "where", "disabled", "class"]));
523
517
  }
524
- }), St = /* @__PURE__ */ L(Et, [["__scopeId", "data-v-acbda3aa"]]);
518
+ }), St = /* @__PURE__ */ $(Et, [["__scopeId", "data-v-6ab001e8"]]);
525
519
  let de = 0;
526
- const $t = {
520
+ const Lt = {
527
521
  beforeCreate() {
528
522
  this.uuid = de.toString(), de += 1;
529
523
  }
530
- }, Lt = { key: 0 };
524
+ }, $t = { key: 0 };
531
525
  function Tt(e, t, i, o, u, m) {
532
526
  return l(), C("svg", Y({ role: "img" }, e.$attrs, {
533
527
  class: "ui-assets-icons-16",
@@ -536,7 +530,7 @@ function Tt(e, t, i, o, u, m) {
536
530
  height: "16",
537
531
  fill: "none"
538
532
  }), [
539
- e.$attrs["svg-title"] ? (l(), C("title", Lt, U(e.$attrs["svg-title"]), 1)) : I("", !0),
533
+ e.$attrs["svg-title"] ? (l(), C("title", $t, U(e.$attrs["svg-title"]), 1)) : I("", !0),
540
534
  t[0] || (t[0] = K("path", {
541
535
  fill: "#001222",
542
536
  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"
@@ -551,9 +545,9 @@ function Tt(e, t, i, o, u, m) {
551
545
  }, null, -1))
552
546
  ], 16);
553
547
  }
554
- const Mt = /* @__PURE__ */ L($t, [["render", Tt]]), Nt = $({
548
+ const Mt = /* @__PURE__ */ $(Lt, [["render", Tt]]), Nt = L({
555
549
  name: "menu-item",
556
- components: { BaseButton: He, BentoTypography: ge, ChevronRightIcon: Je },
550
+ components: { BaseButton: He, BentoTypography: ye, ChevronRightIcon: Je },
557
551
  props: {
558
552
  /**
559
553
  * menu-item text that gets displayed as the main label
@@ -623,10 +617,10 @@ const Mt = /* @__PURE__ */ L($t, [["render", Tt]]), Nt = $({
623
617
  },
624
618
  emits: [re.CLICK],
625
619
  setup(e, { emit: t }) {
626
- const o = g(() => ({
620
+ const o = y(() => ({
627
621
  "b-menu-item--critical": e.critical,
628
622
  "b-menu-item--indent": e.indent
629
- })), u = g(() => ze(e.secondaryText, 10));
623
+ })), u = y(() => ze(e.secondaryText, 10));
630
624
  return {
631
625
  // Values
632
626
  conditionalClasses: o,
@@ -692,12 +686,12 @@ function wt(e, t, i, o, u, m) {
692
686
  } : void 0
693
687
  ]), 1032, ["class", "disabled", "onClick"]);
694
688
  }
695
- const ke = /* @__PURE__ */ L(Nt, [["render", wt], ["__scopeId", "data-v-9dace5ac"]]);
689
+ const ke = /* @__PURE__ */ $(Nt, [["render", wt], ["__scopeId", "data-v-9dace5ac"]]);
696
690
  ({ ...Ve });
697
691
  var D = /* @__PURE__ */ ((e) => (e.BACK = "back", e.CLOSE = "close", e.OPEN = "open", e))(D || {});
698
692
  const Rt = /* @__PURE__ */ Symbol("menu registering injection key"), At = {
699
693
  name: "bento-menu-list-container"
700
- }, Dt = /* @__PURE__ */ $({
694
+ }, Dt = /* @__PURE__ */ L({
701
695
  ...At,
702
696
  setup(e) {
703
697
  const t = v(), i = v({}), o = P(Rt, !1);
@@ -716,7 +710,7 @@ const Rt = /* @__PURE__ */ Symbol("menu registering injection key"), At = {
716
710
  w(u.$slots, "default", {}, void 0, !0)
717
711
  ], 16));
718
712
  }
719
- }), Ie = /* @__PURE__ */ L(Dt, [["__scopeId", "data-v-9ef14d73"]]), se = {
713
+ }), Ie = /* @__PURE__ */ $(Dt, [["__scopeId", "data-v-9ef14d73"]]), se = {
720
714
  "de-DE": { backButton: "Zurück", menuButton: "Menü öffnen" },
721
715
  "en-GB": { backButton: "Go back", menuButton: "Open menu" },
722
716
  "en-US": { backButton: "Go back", menuButton: "Open menu" },
@@ -727,10 +721,10 @@ const Rt = /* @__PURE__ */ Symbol("menu registering injection key"), At = {
727
721
  "ja-JP": { backButton: "戻る", menuButton: "メニューを開く" },
728
722
  "pt-BR": { backButton: "Voltar", menuButton: "Abrir menu" },
729
723
  "zh-CN": { backButton: "返回", menuButton: "打开菜单" }
730
- }, Pt = $({
724
+ }, Pt = L({
731
725
  i18n: { messages: se },
732
726
  name: "sub-menu-item-list",
733
- components: { BentoDivider: ye, MenuItem: ke, MenuListContainer: Ie },
727
+ components: { BentoDivider: ge, MenuItem: ke, MenuListContainer: Ie },
734
728
  props: {
735
729
  items: {
736
730
  type: Array,
@@ -743,7 +737,7 @@ const Rt = /* @__PURE__ */ Symbol("menu registering injection key"), At = {
743
737
  },
744
738
  emits: [D.CLOSE, D.BACK],
745
739
  setup(e, { emit: t }) {
746
- const i = v(null), o = v(0), u = v(e.items.length), m = () => t(D.CLOSE), r = () => t(D.BACK), c = g(() => {
740
+ const i = v(null), o = v(0), u = v(e.items.length), m = () => t(D.CLOSE), r = () => t(D.BACK), c = y(() => {
747
741
  const d = e.items?.map((n) => ({
748
742
  ...n,
749
743
  indent: !n.icon,
@@ -840,7 +834,7 @@ function Ft(e, t, i, o, u, m) {
840
834
  _: 1
841
835
  });
842
836
  }
843
- const Wt = /* @__PURE__ */ L(Pt, [["render", Ft], ["__scopeId", "data-v-e1de172e"]]), Be = 350, Oe = 150;
837
+ const Wt = /* @__PURE__ */ $(Pt, [["render", Ft], ["__scopeId", "data-v-e1de172e"]]), Be = 350, Oe = 150;
844
838
  function Ee(e) {
845
839
  return Math.max(Oe, Math.min(e, Be));
846
840
  }
@@ -863,17 +857,17 @@ function Kt(e, t, i, o) {
863
857
  } else
864
858
  u.value = 0, m.value = 0;
865
859
  });
866
- const c = g(() => o?.value ? Ee(o.value) : 0);
867
- return { computedStyle: g(() => {
860
+ const c = y(() => o?.value ? Ee(o.value) : 0);
861
+ return { computedStyle: y(() => {
868
862
  const a = {
869
863
  width: c.value > 0 ? `${c.value}px` : "max-content"
870
864
  };
871
865
  return i.value && (m.value > 0 && (a.height = `${m.value}px`), u.value > 0 && (a.width = `${u.value}px`)), a;
872
866
  }) };
873
867
  }
874
- const Vt = $({
868
+ const Vt = L({
875
869
  name: "menu-item-list",
876
- components: { BentoDivider: ye, MenuItem: ke, MenuListContainer: Ie, SubMenuItemList: Wt },
870
+ components: { BentoDivider: ge, MenuItem: ke, MenuListContainer: Ie, SubMenuItemList: Wt },
877
871
  props: {
878
872
  /**
879
873
  * The data to be displayed in the list
@@ -913,26 +907,26 @@ const Vt = $({
913
907
  },
914
908
  emits: [D.CLOSE, "menu-item-click"],
915
909
  setup(e, { emit: t, expose: i }) {
916
- const o = v(null), u = v(null), m = v(null), r = v(null), c = v(!1), f = v(null), a = v(e.focusLastElement ? e.data.length - 1 : 0), s = v(0), d = v(e.data.length - 1), n = g(() => e.data.some((M) => M.icon)), k = g(() => e.indentItems || n.value ? e.data.map((M) => {
917
- let y = !1;
918
- return M.icon || (y = !0), {
910
+ const o = v(null), u = v(null), m = v(null), r = v(null), c = v(!1), f = v(null), a = v(e.focusLastElement ? e.data.length - 1 : 0), s = v(0), d = v(e.data.length - 1), n = y(() => e.data.some((M) => M.icon)), k = y(() => e.indentItems || n.value ? e.data.map((M) => {
911
+ let g = !1;
912
+ return M.icon || (g = !0), {
919
913
  ...M,
920
- indent: y
914
+ indent: g
921
915
  };
922
916
  }) : e.data), B = async () => {
923
917
  await x(), u.value?.children[a.value]?.children[0]?.focus();
924
- }, W = () => t(D.CLOSE), j = (M, y) => {
918
+ }, W = () => t(D.CLOSE), j = (M, g) => {
925
919
  if (M.items) {
926
- f.value = y, c.value = !0;
920
+ f.value = g, c.value = !0;
927
921
  return;
928
922
  }
929
- f.value = y, c.value = !1, !M.skipClose && e.closeMenuOnItemSelect !== !1 && W(), t("menu-item-click");
923
+ f.value = g, c.value = !1, !M.skipClose && e.closeMenuOnItemSelect !== !1 && W(), t("menu-item-click");
930
924
  }, R = () => {
931
925
  a.value > 0 ? (a.value -= 1, k.value[a.value].disabled && R()) : a.value = d.value, B();
932
926
  }, _ = () => {
933
927
  a.value < d.value ? (a.value += 1, k.value[a.value].disabled && _()) : a.value = 0, B();
934
- }, A = (M, y) => {
935
- M?.items?.length && (f.value = y, c.value = !0);
928
+ }, A = (M, g) => {
929
+ M?.items?.length && (f.value = g, c.value = !0);
936
930
  }, J = () => {
937
931
  f.value && c.value && (f.value = null, c.value = !1);
938
932
  }, ee = () => {
@@ -1032,10 +1026,10 @@ function jt(e, t, i, o, u, m) {
1032
1026
  _: 1
1033
1027
  }, 8, ["style"]);
1034
1028
  }
1035
- const Gt = /* @__PURE__ */ L(Vt, [["render", jt], ["__scopeId", "data-v-7253ab73"]]), Yt = /* @__PURE__ */ Symbol("menu inverse style injection key"), Jt = {
1029
+ const Gt = /* @__PURE__ */ $(Vt, [["render", jt], ["__scopeId", "data-v-7253ab73"]]), Yt = /* @__PURE__ */ Symbol("menu inverse style injection key"), Jt = {
1036
1030
  i18n: { messages: se },
1037
1031
  name: "bento-menu"
1038
- }, Ht = /* @__PURE__ */ $({
1032
+ }, Ht = /* @__PURE__ */ L({
1039
1033
  ...Jt,
1040
1034
  props: {
1041
1035
  button: { default: () => ({
@@ -1055,11 +1049,11 @@ const Gt = /* @__PURE__ */ L(Vt, [["render", jt], ["__scopeId", "data-v-7253ab73
1055
1049
  setup(e, { expose: t, emit: i }) {
1056
1050
  const o = e, u = i, m = q(), r = oe(m), { t: c } = he({ messages: se }), f = v(null), a = v(null), s = v(!1), d = v(!1), n = v(null), k = Ge("menu"), B = P(Yt, v(!1));
1057
1051
  Ne(De, B);
1058
- const W = g(() => ({
1052
+ const W = y(() => ({
1059
1053
  "b-menu--inverse": B.value
1060
- })), j = g(
1054
+ })), j = y(
1061
1055
  () => o.menuWidth ? { width: `${Ee(o.menuWidth)}px` } : null
1062
- ), R = g(() => {
1056
+ ), R = y(() => {
1063
1057
  if (o?.button)
1064
1058
  return {
1065
1059
  variant: "secondary",
@@ -1067,14 +1061,14 @@ const Gt = /* @__PURE__ */ L(Vt, [["render", jt], ["__scopeId", "data-v-7253ab73
1067
1061
  };
1068
1062
  }), _ = () => {
1069
1063
  s.value = !0, u(D.OPEN);
1070
- }, A = async (y = o.revertFocusToButton) => {
1071
- s.value && (s.value = !1, y && (await x(), f.value?.$el?.focus()), u(D.CLOSE));
1072
- }, J = (y) => {
1073
- y.stopPropagation(), s.value ? A() : _();
1074
- }, ee = (y) => {
1075
- y.preventDefault(), d.value = !1, o.disableArrowDownOpeningMenu || _();
1076
- }, te = (y) => {
1077
- y.preventDefault(), d.value = !0, _();
1064
+ }, A = async (g = o.revertFocusToButton) => {
1065
+ s.value && (s.value = !1, g && (await x(), f.value?.$el?.focus()), u(D.CLOSE));
1066
+ }, J = (g) => {
1067
+ g.stopPropagation(), s.value ? A() : _();
1068
+ }, ee = (g) => {
1069
+ g.preventDefault(), d.value = !1, o.disableArrowDownOpeningMenu || _();
1070
+ }, te = (g) => {
1071
+ g.preventDefault(), d.value = !0, _();
1078
1072
  }, M = () => {
1079
1073
  u("menu-item-click");
1080
1074
  };
@@ -1096,7 +1090,7 @@ const Gt = /* @__PURE__ */ L(Vt, [["render", jt], ["__scopeId", "data-v-7253ab73
1096
1090
  r("iconRight") && Fe(
1097
1091
  '"bento-menu" no longer supports the "iconRight" slot. The right-aligned icon is now fixed by design.'
1098
1092
  );
1099
- }), (y, ie) => (l(), C("div", {
1093
+ }), (g, ie) => (l(), C("div", {
1100
1094
  class: F([W.value, "b-menu"]),
1101
1095
  "data-testid": "menu",
1102
1096
  onKeydown: [
@@ -1119,10 +1113,10 @@ const Gt = /* @__PURE__ */ L(Vt, [["render", jt], ["__scopeId", "data-v-7253ab73
1119
1113
  !p(r)("default") || p(r)("iconLeft") ? {
1120
1114
  name: "iconLeft",
1121
1115
  fn: b(() => [
1122
- w(y.$slots, "iconLeft", {}, () => [
1116
+ w(g.$slots, "iconLeft", {}, () => [
1123
1117
  O(p(Mt), {
1124
- title: p(c)("menuButton")
1125
- }, null, 8, ["title"])
1118
+ "svg-title": p(c)("menuButton")
1119
+ }, null, 8, ["svg-title"])
1126
1120
  ], !0)
1127
1121
  ]),
1128
1122
  key: "0"
@@ -1130,7 +1124,7 @@ const Gt = /* @__PURE__ */ L(Vt, [["render", jt], ["__scopeId", "data-v-7253ab73
1130
1124
  p(r)("default") ? {
1131
1125
  name: "default",
1132
1126
  fn: b(() => [
1133
- w(y.$slots, "default", {}, void 0, !0)
1127
+ w(g.$slots, "default", {}, void 0, !0)
1134
1128
  ]),
1135
1129
  key: "1"
1136
1130
  } : void 0,
@@ -1144,7 +1138,7 @@ const Gt = /* @__PURE__ */ L(Vt, [["render", jt], ["__scopeId", "data-v-7253ab73
1144
1138
  ]), 1040, ["aria-controls", "toggled", "inverse"]),
1145
1139
  f.value ? (l(), h(p(St), {
1146
1140
  key: 0,
1147
- disabled: !y.teleport
1141
+ disabled: !g.teleport
1148
1142
  }, {
1149
1143
  default: b(() => [
1150
1144
  f.value ? (l(), h(Ct, {
@@ -1157,8 +1151,8 @@ const Gt = /* @__PURE__ */ L(Vt, [["render", jt], ["__scopeId", "data-v-7253ab73
1157
1151
  class: "b-menu__popover",
1158
1152
  style: be(j.value),
1159
1153
  "target-element": f.value,
1160
- position: y.menuPosition,
1161
- "fixed-positioning": y.menuFixedPositioning,
1154
+ position: g.menuPosition,
1155
+ "fixed-positioning": g.menuFixedPositioning,
1162
1156
  "fallback-position": [
1163
1157
  "bottom-start",
1164
1158
  "bottom-end",
@@ -1169,17 +1163,17 @@ const Gt = /* @__PURE__ */ L(Vt, [["render", jt], ["__scopeId", "data-v-7253ab73
1169
1163
  "left-start",
1170
1164
  "left-end"
1171
1165
  ],
1172
- teleport: y.teleport,
1166
+ teleport: g.teleport,
1173
1167
  "without-space": ""
1174
1168
  }, {
1175
1169
  default: b(() => [
1176
1170
  O(Gt, {
1177
1171
  ref_key: "menuItemListRef",
1178
1172
  ref: a,
1179
- "close-menu-on-item-select": y.closeMenuOnItemSelect,
1180
- data: y.data,
1173
+ "close-menu-on-item-select": g.closeMenuOnItemSelect,
1174
+ data: g.data,
1181
1175
  "focus-last-element": d.value,
1182
- "popover-width": y.menuWidth,
1176
+ "popover-width": g.menuWidth,
1183
1177
  onClose: A,
1184
1178
  onMenuItemClick: M
1185
1179
  }, null, 8, ["close-menu-on-item-select", "data", "focus-last-element", "popover-width"])
@@ -1191,7 +1185,7 @@ const Gt = /* @__PURE__ */ L(Vt, [["render", jt], ["__scopeId", "data-v-7253ab73
1191
1185
  }, 8, ["disabled"])) : I("", !0)
1192
1186
  ], 34));
1193
1187
  }
1194
- }), zt = /* @__PURE__ */ L(Ht, [["__scopeId", "data-v-eee5aa88"]]), Xt = /* @__PURE__ */ Symbol(
1188
+ }), zt = /* @__PURE__ */ $(Ht, [["__scopeId", "data-v-881b48af"]]), Xt = /* @__PURE__ */ Symbol(
1195
1189
  "button actions with menu container injection key"
1196
1190
  ), qt = 242, ce = parseInt(qe, 10), Zt = (e, t, i) => {
1197
1191
  const o = v(0);
@@ -1200,7 +1194,7 @@ const Gt = /* @__PURE__ */ L(Vt, [["render", jt], ["__scopeId", "data-v-7253ab73
1200
1194
  buttonActionsWithMenu: v(null),
1201
1195
  menu: v(null),
1202
1196
  stackButtons: v(!1)
1203
- }), f = g(() => m.value ?? e.value), a = g(() => r.value ? [...t.value, r.value.$el] : t.value), s = (d) => {
1197
+ }), f = y(() => m.value ?? e.value), a = y(() => r.value ? [...t.value, r.value.$el] : t.value), s = (d) => {
1204
1198
  const n = a.value?.reduce(
1205
1199
  (B, W) => B + W.clientWidth + ce,
1206
1200
  -ce - 1
@@ -1223,7 +1217,7 @@ const Gt = /* @__PURE__ */ L(Vt, [["render", jt], ["__scopeId", "data-v-7253ab73
1223
1217
  }), fe(() => {
1224
1218
  u?.disconnect();
1225
1219
  }), c;
1226
- }, Qt = {}, xt = /* @__PURE__ */ $({
1220
+ }, Qt = {}, xt = /* @__PURE__ */ L({
1227
1221
  ...Qt,
1228
1222
  __name: "button-actions",
1229
1223
  props: {
@@ -1232,10 +1226,10 @@ const Gt = /* @__PURE__ */ L(Vt, [["render", jt], ["__scopeId", "data-v-7253ab73
1232
1226
  layout: { default: "buttons-end" }
1233
1227
  },
1234
1228
  setup(e) {
1235
- const t = e, i = v(null), o = v(null), u = Zt(i, o, ve(t, "actions")), m = g(() => t.actions.slice().reverse()), r = (s) => {
1229
+ const t = e, i = v(null), o = v(null), u = Zt(i, o, ve(t, "actions")), m = y(() => t.actions.slice().reverse()), r = (s) => {
1236
1230
  const d = t.actions.length - 1;
1237
1231
  return s === d ? "primary" : "secondary";
1238
- }, c = g(() => ({
1232
+ }, c = y(() => ({
1239
1233
  [`b-button-actions--${t.layout}`]: !0,
1240
1234
  "b-button-actions--stacked-buttons": u.value
1241
1235
  })), f = (s) => s?.event !== void 0 ? {
@@ -1357,7 +1351,7 @@ const Gt = /* @__PURE__ */ L(Vt, [["render", jt], ["__scopeId", "data-v-7253ab73
1357
1351
  ], 2)
1358
1352
  ], 512));
1359
1353
  }
1360
- }), en = /* @__PURE__ */ L(xt, [["__scopeId", "data-v-1a12c479"]]);
1354
+ }), en = /* @__PURE__ */ $(xt, [["__scopeId", "data-v-1a12c479"]]);
1361
1355
  export {
1362
1356
  en as B,
1363
1357
  Rt as D,
@@ -1381,4 +1375,4 @@ export {
1381
1375
  ct as m,
1382
1376
  ut as u
1383
1377
  };
1384
- //# sourceMappingURL=button-actions.DLiM8KZL.js.map
1378
+ //# sourceMappingURL=button-actions.7Oi2Ra4p.js.map