@adyen/bento-vue2 1.68.2 → 1.70.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (451) hide show
  1. package/README.md +43 -97
  2. package/dist/@types/components.d.ts +1 -0
  3. package/dist/@types/index.d.ts +829 -2056
  4. package/dist/accordion.js +1 -1
  5. package/dist/action-bar.js +1 -1
  6. package/dist/alert.js +1 -1
  7. package/dist/assets/accordion-item.css +1 -1
  8. package/dist/assets/action-bar.css +1 -1
  9. package/dist/assets/alert.css +1 -1
  10. package/dist/assets/base-button.css +1 -1
  11. package/dist/assets/base-modal.css +1 -1
  12. package/dist/assets/button-actions-with-menu.css +1 -1
  13. package/dist/assets/button.css +1 -1
  14. package/dist/assets/calendar.css +1 -1
  15. package/dist/assets/card.css +1 -1
  16. package/dist/assets/checkbox-group.css +1 -1
  17. package/dist/assets/checkbox-input.css +1 -1
  18. package/dist/assets/checkbox.css +1 -1
  19. package/dist/assets/chip.css +1 -1
  20. package/dist/assets/code-snippet.css +1 -1
  21. package/dist/assets/controls-group.css +1 -1
  22. package/dist/assets/copy.css +1 -1
  23. package/dist/assets/country.css +1 -1
  24. package/dist/assets/currency.css +1 -1
  25. package/dist/assets/dashed-underline.css +1 -1
  26. package/dist/assets/data-grid-template.css +1 -1
  27. package/dist/assets/data-grid.css +1 -1
  28. package/dist/assets/date-picker.css +1 -1
  29. package/dist/assets/date-range-picker.css +1 -1
  30. package/dist/assets/dialog-page.css +1 -1
  31. package/dist/assets/divider.css +1 -1
  32. package/dist/assets/dropdown-default-textbox.css +1 -1
  33. package/dist/assets/dropdown-tag.css +1 -1
  34. package/dist/assets/dropdown.css +1 -1
  35. package/dist/assets/empty-state.css +1 -1
  36. package/dist/assets/error-message.css +1 -1
  37. package/dist/assets/file-uploader.css +1 -1
  38. package/dist/assets/filter-bar.css +1 -1
  39. package/dist/assets/focus-trap.css +1 -1
  40. package/dist/assets/footer-actions.css +1 -1
  41. package/dist/assets/form-layout-title.css +1 -1
  42. package/dist/assets/grid-layout.css +1 -1
  43. package/dist/assets/header-meta.css +1 -1
  44. package/dist/assets/header-with-views.css +1 -1
  45. package/dist/assets/header.css +1 -1
  46. package/dist/assets/info-icon.css +1 -1
  47. package/dist/assets/input-field-password.css +1 -1
  48. package/dist/assets/input-field-phone-number.css +1 -1
  49. package/dist/assets/input-field.css +1 -1
  50. package/dist/assets/inspector.css +1 -1
  51. package/dist/assets/layout-row.css +1 -1
  52. package/dist/assets/link.css +1 -1
  53. package/dist/assets/listbox-option-tag.css +1 -1
  54. package/dist/assets/loading-indicator.css +1 -1
  55. package/dist/assets/modal-fullscreen.css +1 -1
  56. package/dist/assets/pagination.css +1 -1
  57. package/dist/assets/payment-method.css +1 -1
  58. package/dist/assets/popper-container.css +1 -1
  59. package/dist/assets/promo-banner.css +1 -1
  60. package/dist/assets/radio-group.css +1 -1
  61. package/dist/assets/radio-input.css +1 -1
  62. package/dist/assets/rich-text-editor.css +1 -1
  63. package/dist/assets/search-bar.css +1 -1
  64. package/dist/assets/secondary-nav.css +1 -1
  65. package/dist/assets/segmented-control.css +1 -1
  66. package/dist/assets/selection-card-group.css +1 -1
  67. package/dist/assets/sidepanel.css +1 -1
  68. package/dist/assets/status.css +1 -1
  69. package/dist/assets/step.css +1 -1
  70. package/dist/assets/structured-list-item.css +1 -1
  71. package/dist/assets/tab.css +1 -1
  72. package/dist/assets/tag.css +1 -1
  73. package/dist/assets/textarea.css +1 -1
  74. package/dist/assets/timeline-item.css +1 -1
  75. package/dist/assets/toast.css +1 -1
  76. package/dist/assets/toggle-button.css +1 -1
  77. package/dist/assets/toggle.css +1 -1
  78. package/dist/assets/tooltip.css +1 -1
  79. package/dist/assets/tutorial.css +1 -1
  80. package/dist/assets/typography.css +1 -1
  81. package/dist/assets/use-cached-selected-values.css +1 -1
  82. package/dist/avatar.js +1 -1
  83. package/dist/button.js +9 -9
  84. package/dist/card.js +1 -1
  85. package/dist/checkbox.js +2 -2
  86. package/dist/chip.js +1 -1
  87. package/dist/chunks/{accordion-item.BNtdoVto.js → accordion-item.CoqaoVnC.js} +3 -3
  88. package/dist/chunks/accordion-item.CoqaoVnC.js.map +1 -0
  89. package/dist/chunks/{action-bar.DQb7WVVd.js → action-bar.LaW4Tzlo.js} +18 -19
  90. package/dist/chunks/action-bar.LaW4Tzlo.js.map +1 -0
  91. package/dist/chunks/{alert.c1rhDDrU.js → alert.CMyL-zWT.js} +17 -17
  92. package/dist/chunks/alert.CMyL-zWT.js.map +1 -0
  93. package/dist/chunks/aria-label.CaUURpnB.js.map +1 -1
  94. package/dist/chunks/{avatar.BgwjpLQO.js → avatar.KdcsNOsm.js} +2 -2
  95. package/dist/chunks/avatar.KdcsNOsm.js.map +1 -0
  96. package/dist/chunks/{base-button.-gx_u8Bd.js → base-button.BB5tkzjh.js} +6 -6
  97. package/dist/chunks/base-button.BB5tkzjh.js.map +1 -0
  98. package/dist/chunks/{base-modal.CkkfT6r6.js → base-modal.D8Rh5NUz.js} +19 -19
  99. package/dist/chunks/base-modal.D8Rh5NUz.js.map +1 -0
  100. package/dist/chunks/bin.Ddb69cr1.js +24 -0
  101. package/dist/chunks/bin.Ddb69cr1.js.map +1 -0
  102. package/dist/chunks/button-actions-with-menu.BDpWI2Fh.js +85 -0
  103. package/dist/chunks/button-actions-with-menu.BDpWI2Fh.js.map +1 -0
  104. package/dist/chunks/button-actions.types.BptAXjD8.js +8 -0
  105. package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -0
  106. package/dist/chunks/{button.hF-nD1Og.js → button.CilT7NmM.js} +4 -4
  107. package/dist/chunks/button.CilT7NmM.js.map +1 -0
  108. package/dist/chunks/{calendar.DvIQEYwN.js → calendar.DYI4omOF.js} +25 -25
  109. package/dist/chunks/calendar.DYI4omOF.js.map +1 -0
  110. package/dist/chunks/{card.CASAAsuJ.js → card.C5Uub0Fb.js} +20 -19
  111. package/dist/chunks/card.C5Uub0Fb.js.map +1 -0
  112. package/dist/chunks/{checkbox-group.QdX-NrSG.js → checkbox-group.CLYgcDZl.js} +6 -6
  113. package/dist/chunks/checkbox-group.CLYgcDZl.js.map +1 -0
  114. package/dist/chunks/{checkbox-input.CNWigbX4.js → checkbox-input.B0NsfSNR.js} +2 -2
  115. package/dist/chunks/checkbox-input.B0NsfSNR.js.map +1 -0
  116. package/dist/chunks/{checkbox.DCD6SSXC.js → checkbox.lwLS8MMI.js} +6 -6
  117. package/dist/chunks/checkbox.lwLS8MMI.js.map +1 -0
  118. package/dist/chunks/{chip.OV0EWIP3.js → chip.Bfi-ff5E.js} +10 -10
  119. package/dist/chunks/chip.Bfi-ff5E.js.map +1 -0
  120. package/dist/chunks/{code-snippet.dIKi0D7d.js → code-snippet.DsHNr3DK.js} +8 -8
  121. package/dist/chunks/code-snippet.DsHNr3DK.js.map +1 -0
  122. package/dist/chunks/{controls-group.CccuLkgP.js → controls-group.az4jCZQF.js} +30 -27
  123. package/dist/chunks/controls-group.az4jCZQF.js.map +1 -0
  124. package/dist/chunks/{copy.CF8Fzu2Y.js → copy.Cb7gQhU4.js} +15 -15
  125. package/dist/chunks/copy.Cb7gQhU4.js.map +1 -0
  126. package/dist/chunks/{country.melpzEsY.js → country.1yIZNjdj.js} +7 -7
  127. package/dist/chunks/country.1yIZNjdj.js.map +1 -0
  128. package/dist/chunks/country.types.C0Q_hhgJ.js.map +1 -1
  129. package/dist/chunks/{currency.BM9OXTqe.js → currency.MT3baDtO.js} +3 -3
  130. package/dist/chunks/currency.MT3baDtO.js.map +1 -0
  131. package/dist/chunks/{dashboard-section.BIe6eVHq.js → dashboard-section.C6zV9yL-.js} +4 -4
  132. package/dist/chunks/{dashboard-section.BIe6eVHq.js.map → dashboard-section.C6zV9yL-.js.map} +1 -1
  133. package/dist/chunks/{dashed-underline.BbH6Lnd2.js → dashed-underline.Dry6H2zs.js} +12 -13
  134. package/dist/chunks/dashed-underline.Dry6H2zs.js.map +1 -0
  135. package/dist/chunks/{data-grid-template.Co0Ecr79.js → data-grid-template.Dlevchxd.js} +5 -5
  136. package/dist/chunks/data-grid-template.Dlevchxd.js.map +1 -0
  137. package/dist/chunks/{data-grid.erxjh5TN.js → data-grid.CrvFYgjF.js} +1234 -1182
  138. package/dist/chunks/data-grid.CrvFYgjF.js.map +1 -0
  139. package/dist/chunks/{date-picker.DGIS6Pp-.js → date-picker.DPasFJS2.js} +11 -11
  140. package/dist/chunks/date-picker.DPasFJS2.js.map +1 -0
  141. package/dist/chunks/date-range-picker.BIj17geh.js +967 -0
  142. package/dist/chunks/date-range-picker.BIj17geh.js.map +1 -0
  143. package/dist/chunks/{date.BfyWX2PY.js → date.BTdCYdkj.js} +2 -2
  144. package/dist/chunks/{date.BfyWX2PY.js.map → date.BTdCYdkj.js.map} +1 -1
  145. package/dist/chunks/{dialog-page.CLHZqQeU.js → dialog-page.D20YBRQF.js} +9 -9
  146. package/dist/chunks/dialog-page.D20YBRQF.js.map +1 -0
  147. package/dist/chunks/{divider.Cc4JFWG_.js → divider.CFbtmKeQ.js} +6 -6
  148. package/dist/chunks/divider.CFbtmKeQ.js.map +1 -0
  149. package/dist/chunks/{dropdown-default-textbox.94q6opSD.js → dropdown-default-textbox.CDm-PQfc.js} +81 -80
  150. package/dist/chunks/dropdown-default-textbox.CDm-PQfc.js.map +1 -0
  151. package/dist/chunks/dropdown-tag.cmaM8C2X.js +306 -0
  152. package/dist/chunks/dropdown-tag.cmaM8C2X.js.map +1 -0
  153. package/dist/chunks/{dropdown.DazYAy4B.js → dropdown.CEZXrC1C.js} +43 -43
  154. package/dist/chunks/dropdown.CEZXrC1C.js.map +1 -0
  155. package/dist/chunks/{empty-state.mtXfb1BB.js → empty-state.DAbj9xWF.js} +6 -6
  156. package/dist/chunks/empty-state.DAbj9xWF.js.map +1 -0
  157. package/dist/chunks/{error-message.BgxnwPLF.js → error-message.D_QAOG-5.js} +9 -9
  158. package/dist/chunks/{error-message.BgxnwPLF.js.map → error-message.D_QAOG-5.js.map} +1 -1
  159. package/dist/chunks/es6.MoTTyETW.js +12 -0
  160. package/dist/chunks/es6.MoTTyETW.js.map +1 -0
  161. package/dist/chunks/events.CMzGybJJ.js.map +1 -1
  162. package/dist/chunks/{file-uploader.BPslxGI8.js → file-uploader.D2k8GceS.js} +49 -49
  163. package/dist/chunks/file-uploader.D2k8GceS.js.map +1 -0
  164. package/dist/chunks/{filter-bar.DL19SXF1.js → filter-bar.C9suxxv-.js} +310 -316
  165. package/dist/chunks/filter-bar.C9suxxv-.js.map +1 -0
  166. package/dist/chunks/{fixed-scroller.XN-jvWqb.js → fixed-scroller.DDYpO7Li.js} +2 -2
  167. package/dist/chunks/{fixed-scroller.XN-jvWqb.js.map → fixed-scroller.DDYpO7Li.js.map} +1 -1
  168. package/dist/chunks/{focus-trap.C-wIQqpO.js → focus-trap.B4C5TXxl.js} +2 -2
  169. package/dist/chunks/focus-trap.B4C5TXxl.js.map +1 -0
  170. package/dist/chunks/{footer-actions.BE_zzX-e.js → footer-actions.Bbu1_rUb.js} +12 -12
  171. package/dist/chunks/footer-actions.Bbu1_rUb.js.map +1 -0
  172. package/dist/chunks/{form-layout-title.CIynHgCF.js → form-layout-title.aXVuAWiG.js} +5 -5
  173. package/dist/chunks/form-layout-title.aXVuAWiG.js.map +1 -0
  174. package/dist/chunks/{grid-layout.HvTAa4to.js → grid-layout.1aIiz2N_.js} +4 -4
  175. package/dist/chunks/grid-layout.1aIiz2N_.js.map +1 -0
  176. package/dist/chunks/{header-meta.CfloYa86.js → header-meta.Dj742jL5.js} +26 -27
  177. package/dist/chunks/{header-meta.CfloYa86.js.map → header-meta.Dj742jL5.js.map} +1 -1
  178. package/dist/chunks/{header-with-views.BUQ-MlAq.js → header-with-views.Cis2Ixho.js} +160 -164
  179. package/dist/chunks/header-with-views.Cis2Ixho.js.map +1 -0
  180. package/dist/chunks/{header.uyxNdQa3.js → header.Bo2fbjCm.js} +8 -8
  181. package/dist/chunks/header.Bo2fbjCm.js.map +1 -0
  182. package/dist/chunks/image.C2D2hKat.js.map +1 -1
  183. package/dist/chunks/{info-icon.CYOXx8CL.js → info-icon.BWC7gGmM.js} +7 -7
  184. package/dist/chunks/info-icon.BWC7gGmM.js.map +1 -0
  185. package/dist/chunks/info.CcMZ4aGg.js +24 -0
  186. package/dist/chunks/info.CcMZ4aGg.js.map +1 -0
  187. package/dist/chunks/{input-field-password.C1zTapiN.js → input-field-password.D6wAD55v.js} +29 -29
  188. package/dist/chunks/input-field-password.D6wAD55v.js.map +1 -0
  189. package/dist/chunks/{input-field-phone-number.K8BYjWfa.js → input-field-phone-number.CLHuEXO7.js} +12 -11
  190. package/dist/chunks/{input-field-phone-number.K8BYjWfa.js.map → input-field-phone-number.CLHuEXO7.js.map} +1 -1
  191. package/dist/chunks/{input-field.5S-pUNxA.js → input-field.C3KYlPYa.js} +5 -5
  192. package/dist/chunks/input-field.C3KYlPYa.js.map +1 -0
  193. package/dist/chunks/{inspector.BI28vKQz.js → inspector.CH4kvF9q.js} +6 -6
  194. package/dist/chunks/inspector.CH4kvF9q.js.map +1 -0
  195. package/dist/chunks/keyboard-navigation.pB8weElW.js.map +1 -1
  196. package/dist/chunks/{layout-row.C_F2wX6d.js → layout-row.BLGCVZkD.js} +12 -12
  197. package/dist/chunks/layout-row.BLGCVZkD.js.map +1 -0
  198. package/dist/chunks/{link.CXy_LoFI.js → link.C4htMrDV.js} +3 -3
  199. package/dist/chunks/link.C4htMrDV.js.map +1 -0
  200. package/dist/chunks/{listbox-option-tag.D0Cql_R3.js → listbox-option-tag.3zcrQQvI.js} +4 -4
  201. package/dist/chunks/listbox-option-tag.3zcrQQvI.js.map +1 -0
  202. package/dist/chunks/{loading-indicator.z8COalOc.js → loading-indicator.DXc7I1Lm.js} +2 -2
  203. package/dist/chunks/loading-indicator.DXc7I1Lm.js.map +1 -0
  204. package/dist/chunks/minus-small.DJacLGTw.js.map +1 -1
  205. package/dist/chunks/{modal-fullscreen.DHotw1RI.js → modal-fullscreen.DNxrRLZ5.js} +61 -56
  206. package/dist/chunks/modal-fullscreen.DNxrRLZ5.js.map +1 -0
  207. package/dist/chunks/{modal.eoNQ6E3U.js → modal.BjoHqKYF.js} +6 -6
  208. package/dist/chunks/modal.BjoHqKYF.js.map +1 -0
  209. package/dist/chunks/{pagination.4J7ZMyf5.js → pagination.BNjvTjtR.js} +5 -5
  210. package/dist/chunks/pagination.BNjvTjtR.js.map +1 -0
  211. package/dist/chunks/{payment-method.Cx4nPDtE.js → payment-method.DtvfUnit.js} +3 -3
  212. package/dist/chunks/payment-method.DtvfUnit.js.map +1 -0
  213. package/dist/chunks/popover.types.CiUPrUuw.js +6 -0
  214. package/dist/chunks/popover.types.CiUPrUuw.js.map +1 -0
  215. package/dist/chunks/{popper-container.DIFqmRsp.js → popper-container.BRkYcBmL.js} +3 -3
  216. package/dist/chunks/popper-container.BRkYcBmL.js.map +1 -0
  217. package/dist/chunks/{promo-banner.Bbc2U3S3.js → promo-banner.CmkrgQsm.js} +6 -6
  218. package/dist/chunks/promo-banner.CmkrgQsm.js.map +1 -0
  219. package/dist/chunks/{radio-group.4_KKjvAm.js → radio-group.ANbubbQK.js} +14 -12
  220. package/dist/chunks/radio-group.ANbubbQK.js.map +1 -0
  221. package/dist/chunks/{radio-input.uJAhxKRs.js → radio-input.D8mv2EYC.js} +2 -2
  222. package/dist/chunks/radio-input.D8mv2EYC.js.map +1 -0
  223. package/dist/chunks/{rich-text-editor.BUKLdRkN.js → rich-text-editor.DfUK2cie.js} +8 -8
  224. package/dist/chunks/rich-text-editor.DfUK2cie.js.map +1 -0
  225. package/dist/chunks/{search-bar.CuBj5FAE.js → search-bar.B4ln_DGC.js} +6 -5
  226. package/dist/chunks/search-bar.B4ln_DGC.js.map +1 -0
  227. package/dist/chunks/{secondary-nav.C6usurfD.js → secondary-nav.DGRvSeRY.js} +9 -9
  228. package/dist/chunks/secondary-nav.DGRvSeRY.js.map +1 -0
  229. package/dist/chunks/{segmented-control.DHZEfmT-.js → segmented-control.5-G1EwGt.js} +11 -11
  230. package/dist/chunks/segmented-control.5-G1EwGt.js.map +1 -0
  231. package/dist/chunks/{selection-card-group.0o5T4tab.js → selection-card-group.xs_M1a46.js} +10 -10
  232. package/dist/chunks/selection-card-group.xs_M1a46.js.map +1 -0
  233. package/dist/chunks/{sidepanel.DyThBUgV.js → sidepanel.DJAmLLPS.js} +9 -9
  234. package/dist/chunks/sidepanel.DJAmLLPS.js.map +1 -0
  235. package/dist/chunks/{status.types.p_TCvoo0.js → status.types.BpMK-6IT.js} +3 -3
  236. package/dist/chunks/status.types.BpMK-6IT.js.map +1 -0
  237. package/dist/chunks/{step.DMMofD4B.js → step.DwXkOVky.js} +5 -5
  238. package/dist/chunks/step.DwXkOVky.js.map +1 -0
  239. package/dist/chunks/{structured-list-item.Bnn6-Z3q.js → structured-list-item.TPZLf2rC.js} +7 -7
  240. package/dist/chunks/structured-list-item.TPZLf2rC.js.map +1 -0
  241. package/dist/chunks/{summary-grid.types.D_FU3sUq.js → summary-grid.types.Mua4SprI.js} +7 -7
  242. package/dist/chunks/{summary-grid.types.D_FU3sUq.js.map → summary-grid.types.Mua4SprI.js.map} +1 -1
  243. package/dist/chunks/{tab.BhWPBxcB.js → tab.ClkH0GtX.js} +5 -5
  244. package/dist/chunks/tab.ClkH0GtX.js.map +1 -0
  245. package/dist/chunks/{tag.CGkclKVL.js → tag.D1niMJDQ.js} +4 -4
  246. package/dist/chunks/tag.D1niMJDQ.js.map +1 -0
  247. package/dist/chunks/textarea.BNGBZJ3C.js +214 -0
  248. package/dist/chunks/textarea.BNGBZJ3C.js.map +1 -0
  249. package/dist/chunks/timeline-item.DYUON6R3.js +387 -0
  250. package/dist/chunks/timeline-item.DYUON6R3.js.map +1 -0
  251. package/dist/chunks/{toast.BOyeuS19.js → toast.gMDjItrP.js} +5 -5
  252. package/dist/chunks/toast.gMDjItrP.js.map +1 -0
  253. package/dist/chunks/toggle-button.COXDzXWu.js +1031 -0
  254. package/dist/chunks/toggle-button.COXDzXWu.js.map +1 -0
  255. package/dist/chunks/{toggle.DyXL09-x.js → toggle.Ct-5NUGu.js} +8 -8
  256. package/dist/chunks/toggle.Ct-5NUGu.js.map +1 -0
  257. package/dist/chunks/{tooltip.wQsyAwkC.js → tooltip.B2XJl4VK.js} +64 -60
  258. package/dist/chunks/tooltip.B2XJl4VK.js.map +1 -0
  259. package/dist/chunks/{tutorial.CxrGhLS7.js → tutorial.BiGj42TP.js} +29 -31
  260. package/dist/chunks/tutorial.BiGj42TP.js.map +1 -0
  261. package/dist/chunks/{typography.J1v_SPG3.js → typography.hlOAxsEn.js} +9 -9
  262. package/dist/chunks/typography.hlOAxsEn.js.map +1 -0
  263. package/dist/chunks/{use-bento-toast-controller.Cn_2Eogn.js → use-bento-toast-controller.BKHU1qBv.js} +2 -2
  264. package/dist/chunks/{use-bento-toast-controller.Cn_2Eogn.js.map → use-bento-toast-controller.BKHU1qBv.js.map} +1 -1
  265. package/dist/chunks/{use-cached-selected-values.0EeyFfyF.js → use-cached-selected-values.ysbHRJ6L.js} +12 -12
  266. package/dist/chunks/use-cached-selected-values.ysbHRJ6L.js.map +1 -0
  267. package/dist/chunks/{use-country-items.BllTb5MK.js → use-country-items.DFdM2Ank.js} +2 -2
  268. package/dist/chunks/use-country-items.DFdM2Ank.js.map +1 -0
  269. package/dist/chunks/{use-country-phon-code.BOaJ9PDl.js → use-country-phon-code.Bui3zD6W.js} +5 -3
  270. package/dist/chunks/{use-country-phon-code.BOaJ9PDl.js.map → use-country-phon-code.Bui3zD6W.js.map} +1 -1
  271. package/dist/chunks/use-has-slot.C9lQZ6nz.js.map +1 -1
  272. package/dist/chunks/warning-filled.CbJ1pcB2.js +24 -0
  273. package/dist/chunks/warning-filled.CbJ1pcB2.js.map +1 -0
  274. package/dist/code-snippet.js +1 -1
  275. package/dist/country.js +2 -2
  276. package/dist/currency.js +1 -1
  277. package/dist/dashboard-template.js +1 -1
  278. package/dist/dashed-underline.js +1 -1
  279. package/dist/data-grid-template.js +1 -1
  280. package/dist/data-grid.js +1 -1
  281. package/dist/date-picker.js +2 -2
  282. package/dist/date-range-picker.js +2 -2
  283. package/dist/date.js +1 -1
  284. package/dist/divider.js +1 -1
  285. package/dist/dropdown.js +4 -4
  286. package/dist/empty-state.js +1 -1
  287. package/dist/file-uploader.js +1 -1
  288. package/dist/filter-bar.js +1 -1
  289. package/dist/focus-trap.js +1 -1
  290. package/dist/form-layout.js +1 -1
  291. package/dist/header-with-views.js +1 -1
  292. package/dist/header.js +1 -1
  293. package/dist/index.js +225 -227
  294. package/dist/index.js.map +1 -1
  295. package/dist/info-icon.js +1 -1
  296. package/dist/input-field-password.js +1 -1
  297. package/dist/input-field-phone-number.js +3 -2
  298. package/dist/input-field.js +1 -1
  299. package/dist/inspector.js +1 -1
  300. package/dist/internal.js +33 -32
  301. package/dist/internal.js.map +1 -1
  302. package/dist/layout.js +1 -1
  303. package/dist/link.js +1 -1
  304. package/dist/loading-indicator.js +1 -1
  305. package/dist/menu.js +1 -1
  306. package/dist/modal-fullscreen.js +1 -1
  307. package/dist/modal.js +2 -2
  308. package/dist/pagination.js +1 -1
  309. package/dist/payment-method.js +1 -1
  310. package/dist/popover.js +2 -2
  311. package/dist/popper-container.js +1 -1
  312. package/dist/promo-banner.js +1 -1
  313. package/dist/radio-group.js +2 -2
  314. package/dist/rich-text-editor.js +1 -1
  315. package/dist/search-bar.js +2 -2
  316. package/dist/secondary-nav.js +1 -1
  317. package/dist/segmented-control.js +1 -1
  318. package/dist/selection-card.js +1 -1
  319. package/dist/sidepanel.js +1 -1
  320. package/dist/status.js +1 -1
  321. package/dist/stepper.js +1 -1
  322. package/dist/structured-list.js +1 -1
  323. package/dist/styles/bento-dark.css +17 -4
  324. package/dist/styles/bento-light.css +17 -4
  325. package/dist/styles/bento.css +17 -4
  326. package/dist/styles/styleguide.css +17 -4
  327. package/dist/styles/utility.css +3 -0
  328. package/dist/summary-grid.js +1 -1
  329. package/dist/tabs.js +1 -1
  330. package/dist/tag.js +1 -1
  331. package/dist/textarea.js +1 -1
  332. package/dist/timeline.js +1 -1
  333. package/dist/toast.js +1 -1
  334. package/dist/toggle.js +1 -1
  335. package/dist/tutorial.js +1 -1
  336. package/dist/typography.js +1 -1
  337. package/dist/use-form-v4.js.map +1 -1
  338. package/dist/web-types.json +1825 -740
  339. package/package.json +9 -13
  340. package/dist/assets/button-actions.css +0 -1
  341. package/dist/assets/menu.css +0 -1
  342. package/dist/assets/popover.css +0 -1
  343. package/dist/assets/teleport.css +0 -1
  344. package/dist/chunks/accordion-item.BNtdoVto.js.map +0 -1
  345. package/dist/chunks/action-bar.DQb7WVVd.js.map +0 -1
  346. package/dist/chunks/alert.c1rhDDrU.js.map +0 -1
  347. package/dist/chunks/avatar.BgwjpLQO.js.map +0 -1
  348. package/dist/chunks/base-button.-gx_u8Bd.js.map +0 -1
  349. package/dist/chunks/base-modal.CkkfT6r6.js.map +0 -1
  350. package/dist/chunks/base-modal.keys.C2PQXcE2.js +0 -5
  351. package/dist/chunks/base-modal.keys.C2PQXcE2.js.map +0 -1
  352. package/dist/chunks/bin.DLXkAVvw.js +0 -24
  353. package/dist/chunks/bin.DLXkAVvw.js.map +0 -1
  354. package/dist/chunks/button-actions-with-menu.nPj7sdGE.js +0 -83
  355. package/dist/chunks/button-actions-with-menu.nPj7sdGE.js.map +0 -1
  356. package/dist/chunks/button-actions.Ju27CRNG.js +0 -194
  357. package/dist/chunks/button-actions.Ju27CRNG.js.map +0 -1
  358. package/dist/chunks/button.hF-nD1Og.js.map +0 -1
  359. package/dist/chunks/calendar.DvIQEYwN.js.map +0 -1
  360. package/dist/chunks/card.CASAAsuJ.js.map +0 -1
  361. package/dist/chunks/checkbox-group.QdX-NrSG.js.map +0 -1
  362. package/dist/chunks/checkbox-input.CNWigbX4.js.map +0 -1
  363. package/dist/chunks/checkbox.DCD6SSXC.js.map +0 -1
  364. package/dist/chunks/chip.OV0EWIP3.js.map +0 -1
  365. package/dist/chunks/code-snippet.dIKi0D7d.js.map +0 -1
  366. package/dist/chunks/controls-group.CccuLkgP.js.map +0 -1
  367. package/dist/chunks/copy.CF8Fzu2Y.js.map +0 -1
  368. package/dist/chunks/country.melpzEsY.js.map +0 -1
  369. package/dist/chunks/currency.BM9OXTqe.js.map +0 -1
  370. package/dist/chunks/dashed-underline.BbH6Lnd2.js.map +0 -1
  371. package/dist/chunks/data-grid-template.Co0Ecr79.js.map +0 -1
  372. package/dist/chunks/data-grid.erxjh5TN.js.map +0 -1
  373. package/dist/chunks/date-picker.DGIS6Pp-.js.map +0 -1
  374. package/dist/chunks/date-range-picker.CIaKRXIQ.js +0 -1021
  375. package/dist/chunks/date-range-picker.CIaKRXIQ.js.map +0 -1
  376. package/dist/chunks/dialog-page.CLHZqQeU.js.map +0 -1
  377. package/dist/chunks/divider.Cc4JFWG_.js.map +0 -1
  378. package/dist/chunks/dropdown-default-textbox.94q6opSD.js.map +0 -1
  379. package/dist/chunks/dropdown-tag.BaosvGGZ.js +0 -240
  380. package/dist/chunks/dropdown-tag.BaosvGGZ.js.map +0 -1
  381. package/dist/chunks/dropdown.DazYAy4B.js.map +0 -1
  382. package/dist/chunks/empty-state.mtXfb1BB.js.map +0 -1
  383. package/dist/chunks/es6.n1ewaW31.js +0 -11
  384. package/dist/chunks/es6.n1ewaW31.js.map +0 -1
  385. package/dist/chunks/file-uploader.BPslxGI8.js.map +0 -1
  386. package/dist/chunks/filter-bar.DL19SXF1.js.map +0 -1
  387. package/dist/chunks/focus-trap.C-wIQqpO.js.map +0 -1
  388. package/dist/chunks/footer-actions.BE_zzX-e.js.map +0 -1
  389. package/dist/chunks/form-layout-title.CIynHgCF.js.map +0 -1
  390. package/dist/chunks/grid-layout.HvTAa4to.js.map +0 -1
  391. package/dist/chunks/header-with-views.BUQ-MlAq.js.map +0 -1
  392. package/dist/chunks/header.uyxNdQa3.js.map +0 -1
  393. package/dist/chunks/info-icon.CYOXx8CL.js.map +0 -1
  394. package/dist/chunks/info.CszJ0kMi.js +0 -24
  395. package/dist/chunks/info.CszJ0kMi.js.map +0 -1
  396. package/dist/chunks/input-field-password.C1zTapiN.js.map +0 -1
  397. package/dist/chunks/input-field.5S-pUNxA.js.map +0 -1
  398. package/dist/chunks/inspector.BI28vKQz.js.map +0 -1
  399. package/dist/chunks/layout-row.C_F2wX6d.js.map +0 -1
  400. package/dist/chunks/link.CXy_LoFI.js.map +0 -1
  401. package/dist/chunks/listbox-option-tag.D0Cql_R3.js.map +0 -1
  402. package/dist/chunks/loading-indicator.z8COalOc.js.map +0 -1
  403. package/dist/chunks/menu.D0OQgk40.js +0 -515
  404. package/dist/chunks/menu.D0OQgk40.js.map +0 -1
  405. package/dist/chunks/modal-fullscreen.DHotw1RI.js.map +0 -1
  406. package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js +0 -5
  407. package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js.map +0 -1
  408. package/dist/chunks/modal.eoNQ6E3U.js.map +0 -1
  409. package/dist/chunks/pagination.4J7ZMyf5.js.map +0 -1
  410. package/dist/chunks/payment-method.Cx4nPDtE.js.map +0 -1
  411. package/dist/chunks/popover.Bo4Bkudr.js +0 -145
  412. package/dist/chunks/popover.Bo4Bkudr.js.map +0 -1
  413. package/dist/chunks/popover.types.CBqyA4ly.js +0 -6
  414. package/dist/chunks/popover.types.CBqyA4ly.js.map +0 -1
  415. package/dist/chunks/popper-container.DIFqmRsp.js.map +0 -1
  416. package/dist/chunks/promo-banner.Bbc2U3S3.js.map +0 -1
  417. package/dist/chunks/radio-group.4_KKjvAm.js.map +0 -1
  418. package/dist/chunks/radio-input.uJAhxKRs.js.map +0 -1
  419. package/dist/chunks/rich-text-editor.BUKLdRkN.js.map +0 -1
  420. package/dist/chunks/search-bar.CuBj5FAE.js.map +0 -1
  421. package/dist/chunks/secondary-nav.C6usurfD.js.map +0 -1
  422. package/dist/chunks/segmented-control.DHZEfmT-.js.map +0 -1
  423. package/dist/chunks/selection-card-group.0o5T4tab.js.map +0 -1
  424. package/dist/chunks/sidepanel.DyThBUgV.js.map +0 -1
  425. package/dist/chunks/sidepanel.keys.R0DKQuYx.js +0 -5
  426. package/dist/chunks/sidepanel.keys.R0DKQuYx.js.map +0 -1
  427. package/dist/chunks/status.types.p_TCvoo0.js.map +0 -1
  428. package/dist/chunks/step.DMMofD4B.js.map +0 -1
  429. package/dist/chunks/structured-list-item.Bnn6-Z3q.js.map +0 -1
  430. package/dist/chunks/tab.BhWPBxcB.js.map +0 -1
  431. package/dist/chunks/tag.CGkclKVL.js.map +0 -1
  432. package/dist/chunks/teleport.BV6zrDjA.js +0 -128
  433. package/dist/chunks/teleport.BV6zrDjA.js.map +0 -1
  434. package/dist/chunks/textarea.UPM6N9V1.js +0 -203
  435. package/dist/chunks/textarea.UPM6N9V1.js.map +0 -1
  436. package/dist/chunks/timeline-item.DqLhj0Lb.js +0 -385
  437. package/dist/chunks/timeline-item.DqLhj0Lb.js.map +0 -1
  438. package/dist/chunks/toast.BOyeuS19.js.map +0 -1
  439. package/dist/chunks/toggle-button.DEVVvpkw.js +0 -83
  440. package/dist/chunks/toggle-button.DEVVvpkw.js.map +0 -1
  441. package/dist/chunks/toggle.DyXL09-x.js.map +0 -1
  442. package/dist/chunks/tooltip.wQsyAwkC.js.map +0 -1
  443. package/dist/chunks/tutorial.CxrGhLS7.js.map +0 -1
  444. package/dist/chunks/typography.J1v_SPG3.js.map +0 -1
  445. package/dist/chunks/use-cached-selected-values.0EeyFfyF.js.map +0 -1
  446. package/dist/chunks/use-click-outside.BnhTgpSt.js +0 -14
  447. package/dist/chunks/use-click-outside.BnhTgpSt.js.map +0 -1
  448. package/dist/chunks/use-country-items.BllTb5MK.js.map +0 -1
  449. package/dist/chunks/warning-filled.tWOyLUQT.js +0 -24
  450. package/dist/chunks/warning-filled.tWOyLUQT.js.map +0 -1
  451. package/dist/styles/legacy.css +0 -2226
@@ -0,0 +1,1031 @@
1
+ import { defineComponent as g, useSlots as w, computed as p, onMounted as T, onUnmounted as G, useAttrs as Q, inject as S, ref as d, toRefs as ee, watch as j, nextTick as A, provide as te } from "vue";
2
+ import { B as b } from "./button.CilT7NmM.js";
3
+ import { B as H, D as ne } from "./divider.CFbtmKeQ.js";
4
+ import { C as se } from "./cross.CC_B-vG-.js";
5
+ import { n as C } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
6
+ import { B as Y, a as F, p as oe } from "./typography.hlOAxsEn.js";
7
+ import { c as ae, P as ie } from "./popper-container.BRkYcBmL.js";
8
+ import { u as D } from "./use-has-slot.C9lQZ6nz.js";
9
+ import { u as re } from "./aria-label.CaUURpnB.js";
10
+ import { o as le } from "./on-click-outside.D9aY9g8G.js";
11
+ import { g as ue } from "./generate-uid.NJ8tVoha.js";
12
+ import { u as J } from "./i18n.BQkEbtPM.js";
13
+ import { C as ce } from "./chevron-down.eYtgv5ly.js";
14
+ /* empty css */
15
+ import { i as q } from "./index.Cl4_42j5.js";
16
+ import { C as de, a as W } from "./chevron-right.C--ZOC9j.js";
17
+ import { a as U, B as fe } from "./base-button.BB5tkzjh.js";
18
+ import { t as pe } from "./truncate.BfIl_-71.js";
19
+ import { o as _e } from "./resize.Bqks3WUm.js";
20
+ import { g as me } from "./es6.MoTTyETW.js";
21
+ import { B as ve } from "./loading-indicator.DXc7I1Lm.js";
22
+ import { C as ye } from "./cross-circle-fill.DTDtgLMf.js";
23
+ import { C as he } from "./checkmark-circle-fill.BttTCjrM.js";
24
+ import "../assets/toggle-button.css";
25
+ var I = /* @__PURE__ */ ((o) => (o.START = "start", o.LOADING = "loading", o.SUCCESS = "success", o.FAIL = "fail", o))(I || {});
26
+ const be = {
27
+ "en-US": {
28
+ failed: "Failed",
29
+ succeded: "Succeded"
30
+ },
31
+ "ja-JP": {
32
+ failed: "失敗しました"
33
+ },
34
+ "pt-BR": {
35
+ failed: "Falha"
36
+ }
37
+ }, ge = {
38
+ i18n: { messages: be }
39
+ }, Ce = /* @__PURE__ */ g({
40
+ ...ge,
41
+ __name: "loading-button",
42
+ props: {
43
+ /**
44
+ * Reduces sizing of button
45
+ */
46
+ condensed: {
47
+ type: b.props.condensed.type,
48
+ default: !1
49
+ },
50
+ /**
51
+ * Displays loading-button as critical
52
+ */
53
+ critical: {
54
+ type: b.props.critical.type,
55
+ default: !1
56
+ },
57
+ /**
58
+ * Disables button functonality
59
+ */
60
+ disabled: {
61
+ type: b.props.disabled.type,
62
+ default: !1
63
+ },
64
+ /**
65
+ * Sets color set to inverse
66
+ */
67
+ inverse: {
68
+ type: Boolean,
69
+ default: !1
70
+ },
71
+ /**
72
+ * State of the button.
73
+ * @values start, loading, success, fail
74
+ */
75
+ state: {
76
+ type: String,
77
+ default: I.START,
78
+ validator: (o) => Object.values(I).includes(o)
79
+ },
80
+ /**
81
+ * Types of flavour of Button
82
+ */
83
+ variant: {
84
+ type: b.props.variant.type,
85
+ default: "primary",
86
+ validator: b.props.variant.validator
87
+ }
88
+ },
89
+ emits: ["click"],
90
+ setup(o, { emit: e }) {
91
+ const n = o, t = w(), s = D(t), { t: i } = J(), c = p(() => ({
92
+ [`b-loading-button--${n.variant}-${I.LOADING}`]: n.state === I.LOADING && !n.disabled,
93
+ "b-loading-button--loading": n.state === I.LOADING && !n.disabled,
94
+ [`b-loading-button--${n.variant}-${I.SUCCESS}`]: n.state === I.SUCCESS,
95
+ "b-loading-button--inverse": n.inverse
96
+ })), l = p(
97
+ () => n.variant === "primary" && !n.inverse || n.variant !== "primary" && n.inverse
98
+ ), u = p(
99
+ () => n.critical && n.state === I.START || n.state === I.FAIL
100
+ );
101
+ return { __sfc: !0, props: n, emit: e, slots: t, hasSlot: s, t: i, conditionalClasses: c, isInverseLoadingIndicator: l, isCritical: u, onClick: (r) => {
102
+ r.stopPropagation(), n.state !== I.LOADING && e("click", r);
103
+ }, BentoLoadingIndicator: ve, BentoButton: b, Cross: ye, Checkmark: he };
104
+ }
105
+ });
106
+ var ke = function() {
107
+ var e = this, n = e._self._c, t = e._self._setupProxy;
108
+ return n(t.BentoButton, { staticClass: "b-loading-button", class: t.conditionalClasses, attrs: { critical: t.isCritical, variant: e.variant, condensed: e.condensed, disabled: e.disabled, inverse: e.inverse }, on: { "!click": function(s) {
109
+ return s.stopPropagation(), t.onClick.apply(null, arguments);
110
+ } }, scopedSlots: e._u([e.state === "start" && t.hasSlot("iconLeft") ? { key: "iconLeft", fn: function() {
111
+ return [e._t("iconLeft")];
112
+ }, proxy: !0 } : e.state !== "start" ? { key: "iconLeft", fn: function() {
113
+ return [n("span", { staticClass: "b-loading-button__icon", attrs: { "data-testid": "loading-button-rotating-icon" } }, [e.state === "fail" ? n(t.Cross, { attrs: { "svg-title": t.t("failed") } }) : e.state === "success" ? n(t.Checkmark, { attrs: { "svg-title": t.t("succeded") } }) : e.state === "loading" ? n(t.BentoLoadingIndicator, { attrs: { small: "", inverse: t.isInverseLoadingIndicator } }) : e._e()], 1)];
114
+ }, proxy: !0 } : null], null, !0) }, [e._t("default")], 2);
115
+ }, Ie = [], Be = /* @__PURE__ */ C(
116
+ Ce,
117
+ ke,
118
+ Ie,
119
+ !1,
120
+ null,
121
+ "bc74b2f7"
122
+ );
123
+ const Oe = Be.exports, Se = g({
124
+ name: "bento-popover-dismiss-button",
125
+ components: { BentoButton: b, CrossIcon: se },
126
+ props: {
127
+ onImage: {
128
+ type: Boolean,
129
+ default: !1
130
+ }
131
+ },
132
+ setup(o) {
133
+ return {
134
+ // Values
135
+ conditionalClass: p(() => ({ "b-popover-dismiss-button--on-image": o.onImage }))
136
+ };
137
+ }
138
+ });
139
+ var xe = function() {
140
+ var e = this, n = e._self._c;
141
+ return e._self._setupProxy, n("bento-button", { class: e.conditionalClass, attrs: { variant: "tertiary" }, on: { click: function(t) {
142
+ return e.$emit("click");
143
+ } }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
144
+ return [n("cross-icon", { attrs: { "svg-title": "dismiss" } })];
145
+ }, proxy: !0 }]) });
146
+ }, Ee = [], Le = /* @__PURE__ */ C(
147
+ Se,
148
+ xe,
149
+ Ee,
150
+ !1,
151
+ null,
152
+ "71876338"
153
+ );
154
+ const we = Le.exports, Te = g({
155
+ components: { BentoTypography: Y },
156
+ props: {
157
+ /**
158
+ * Indicates if the popover contains an image.
159
+ */
160
+ isImageTitle: { type: Boolean, default: !1 },
161
+ /**
162
+ * Indicates the title you want to give the popover.
163
+ */
164
+ title: { type: String, default: null }
165
+ },
166
+ setup(o) {
167
+ const e = p(() => !o.isImageTitle), n = p(
168
+ () => o.isImageTitle ? F.SUBTITLE : F.BODY
169
+ );
170
+ return {
171
+ // Values
172
+ isStrongest: e,
173
+ titleVariant: n
174
+ };
175
+ }
176
+ });
177
+ var Me = function() {
178
+ var e = this, n = e._self._c;
179
+ return e._self._setupProxy, n("bento-typography", { attrs: { strongest: e.isStrongest, variant: e.titleVariant, el: "span" } }, [e._v(" " + e._s(e.title) + " ")]);
180
+ }, Re = [], Ne = /* @__PURE__ */ C(
181
+ Te,
182
+ Me,
183
+ Re,
184
+ !1,
185
+ null,
186
+ null
187
+ );
188
+ const Pe = Ne.exports, Ae = (o, e, n = {}) => {
189
+ let t;
190
+ T(() => {
191
+ t = le(o, e, n);
192
+ }), G(() => {
193
+ t && (t(), t = null);
194
+ });
195
+ }, De = Symbol("input field popover injection key"), $e = Symbol("input field popover injection key"), Fe = Symbol("popover offset injection key"), We = {}, Ue = /* @__PURE__ */ g({
196
+ ...We,
197
+ __name: "popover",
198
+ props: {
199
+ actions: { default: void 0 },
200
+ actionsLayout: { default: "buttons-end" },
201
+ ariaLabel: { default: void 0 },
202
+ divider: { type: Boolean, default: !1 },
203
+ disableFocusTrap: { type: Boolean, default: !1 },
204
+ dismissible: { type: Boolean, default: !1 },
205
+ fallbackPosition: { default: () => ["bottom-start", "right-start", "top-start", "left-start"] },
206
+ fitContent: { type: Boolean, default: !1 },
207
+ fixedPositioning: { type: Boolean, default: !1 },
208
+ open: { type: Boolean, default: !1 },
209
+ large: { type: Boolean, default: !1 },
210
+ modifiers: { default: void 0 },
211
+ position: { default: "bottom-start" },
212
+ small: { type: Boolean, default: !1 },
213
+ title: { default: void 0 },
214
+ targetElement: null,
215
+ withoutSpace: { type: Boolean, default: !1 },
216
+ overflowVisible: { type: Boolean, default: !1 }
217
+ },
218
+ emits: ["dismiss", "placement"],
219
+ setup(o, { emit: e }) {
220
+ const n = o, t = 2, s = w(), i = Q(), c = p(() => {
221
+ var B;
222
+ return {
223
+ id: (B = i.id) == null ? void 0 : B.toString(),
224
+ role: (i == null ? void 0 : i.role) === null ? void 0 : ae.POPOVER
225
+ };
226
+ }), l = S(Fe, t), u = d(i["aria-label"]), { ariaLabel: a, title: r } = ee(n), f = re({
227
+ ariaLabel: u.value,
228
+ // TODO: take this line away when the aria-label props is removed
229
+ label: a,
230
+ defaultFallback: r
231
+ }), m = S($e, !1) || S(De, !1), _ = p(() => ({
232
+ "b-popover--small": n.small && !n.large,
233
+ "b-popover--with-divider": !!n.divider,
234
+ "b-popover--large": n.large && !n.small,
235
+ "b-popover--fit-content": n.fitContent,
236
+ "b-popover--without-space": n.withoutSpace,
237
+ "b-popover--overflow-visible": n.overflowVisible || m
238
+ })), y = p(() => ({
239
+ "b-popover__content--with-title": !!n.title
240
+ })), k = () => e("dismiss"), E = D(s);
241
+ return { __sfc: !0, DEFAULT_OFFSET: t, props: n, emit: e, slots: s, attrs: i, computedAttributes: c, offset: l, ariaLabelAttribute: u, ariaLabel: a, title: r, computedAriaLabel: f, isOverflowVisible: m, conditionalClasses: _, contentConditionalClasses: y, dismissPopover: k, hasSlot: E, BentoPopoverDismissButton: we, BentoPopoverTitle: Pe, BentoButtonActions: Vt, PopperContainer: ie };
242
+ }
243
+ });
244
+ var Ve = function() {
245
+ var e = this, n = e._self._c, t = e._self._setupProxy;
246
+ return n("Transition", { attrs: { name: "b-popover__animation" } }, [e.open ? n(t.PopperContainer, { staticClass: "b-popover", class: t.conditionalClasses, attrs: { id: t.computedAttributes.id, "aria-role": t.computedAttributes.role, "aria-label": t.computedAriaLabel, arrow: { classes: ["b-popover__arrow"] }, "disabled-focus-trap": e.disableFocusTrap, "fallback-position": e.fallbackPosition, "fixed-positioning": e.fixedPositioning, offset: [0, t.offset], position: e.position, "target-element": e.targetElement }, on: { placement: function(s) {
247
+ return e.$emit("placement", s);
248
+ } } }, [t.hasSlot("image") ? n("div", { staticClass: "b-popover__image" }, [e.dismissible ? n("div", { staticClass: "b-popover__image-dismiss-button" }, [n(t.BentoPopoverDismissButton, { attrs: { "on-image": "" }, on: { click: t.dismissPopover } })], 1) : e._e(), e._t("image")], 2) : e._e(), t.title ? n("div", { staticClass: "b-popover__header" }, [n("div", { staticClass: "b-popover__header-title" }, [t.hasSlot("headerIcon") ? e._t("headerIcon") : e._e(), n(t.BentoPopoverTitle, { attrs: { title: t.title, "is-image-title": !!t.hasSlot("image") } })], 2), e.dismissible && !t.hasSlot("image") ? n("div", [n(t.BentoPopoverDismissButton, { on: { click: t.dismissPopover } })], 1) : e._e()]) : e._e(), t.hasSlot("default") ? n("div", { staticClass: "b-popover__content", class: t.contentConditionalClasses }, [e._t("default")], 2) : e._e(), e.actions ? n("div", { staticClass: "b-popover__footer" }, [n(t.BentoButtonActions, { attrs: { actions: e.actions, layout: e.actionsLayout } })], 1) : e._e()]) : e._e()], 1);
249
+ }, Ke = [], Ge = /* @__PURE__ */ C(
250
+ Ue,
251
+ Ve,
252
+ Ke,
253
+ !1,
254
+ null,
255
+ "2b3440bd"
256
+ );
257
+ const je = Ge.exports, He = Symbol("modal injection key"), Ye = Symbol("sidepanel children element injection key"), Je = Symbol("modal fullscreen children element injection key"), qe = g({
258
+ name: "teleport",
259
+ props: {
260
+ to: {
261
+ type: String,
262
+ default: ""
263
+ },
264
+ where: {
265
+ type: String,
266
+ default: "after"
267
+ },
268
+ disabled: Boolean
269
+ },
270
+ data: () => ({
271
+ childObserver: null,
272
+ nodes: [],
273
+ waiting: !1,
274
+ observer: null,
275
+ parent: null,
276
+ isVue2: q
277
+ }),
278
+ computed: {
279
+ classes() {
280
+ return this.disabled ? ["b-teleport"] : ["b-teleport", "b-teleport--hidden"];
281
+ },
282
+ defaultTo() {
283
+ if (this.to)
284
+ return this.to;
285
+ const o = S(He, "") || S(Je, "") || S(Ye, "");
286
+ return o ? `#${o}` : "body";
287
+ }
288
+ },
289
+ watch: {
290
+ to: "maybeMove",
291
+ where: "maybeMove",
292
+ disabled(o) {
293
+ o ? (this.disable(), this.$nextTick(() => {
294
+ this.teardownObserver();
295
+ })) : (this.bootObserver(), this.move());
296
+ }
297
+ },
298
+ mounted() {
299
+ this.nodes = Array.from(this.$el.childNodes), this.disabled || this.bootObserver(), this.maybeMove();
300
+ },
301
+ beforeDestroy() {
302
+ this.nodes = this.getComponentChildrenNode(), this.disable(), this.teardownObserver();
303
+ },
304
+ methods: {
305
+ // Using a fragment is faster because it'll trigger only a single reflow
306
+ // See https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment
307
+ getFragment() {
308
+ const o = document.createDocumentFragment();
309
+ return this.nodes.forEach((e) => o.appendChild(e)), o;
310
+ },
311
+ disable() {
312
+ this.$el.appendChild(this.getFragment()), this.parent = null;
313
+ },
314
+ move() {
315
+ if (this.waiting = !1, this.parent = document.querySelector(this.defaultTo), !this.parent) {
316
+ this.disable(), this.waiting = !0;
317
+ return;
318
+ }
319
+ this.where === "before" ? this.parent.prepend(this.getFragment()) : this.parent.appendChild(this.getFragment());
320
+ },
321
+ maybeMove() {
322
+ this.disabled || this.move();
323
+ },
324
+ onMutations(o) {
325
+ let e = !1;
326
+ for (let n = 0; n < o.length; n++) {
327
+ const t = o[n], s = Array.from(t.addedNodes).filter(
328
+ (i) => !this.nodes.includes(i)
329
+ );
330
+ Array.from(t.removedNodes).includes(this.parent) ? (this.disable(), this.waiting = !this.disabled) : this.waiting && s.length > 0 && (e = !0);
331
+ }
332
+ e && this.move();
333
+ },
334
+ bootObserver() {
335
+ this.observer || (this.observer = new MutationObserver((o) => this.onMutations(o)), this.observer.observe(document.body, {
336
+ childList: !0,
337
+ subtree: !0,
338
+ attributes: !1,
339
+ characterData: !1
340
+ }), !this.childObserver && (this.childObserver = new MutationObserver((o) => {
341
+ o.find((n) => n.target === this.$el) && (this.nodes.forEach((n) => n.parentNode && n.parentNode.removeChild(n)), this.nodes = this.getComponentChildrenNode(), this.maybeMove());
342
+ }), this.childObserver.observe(this.$el, {
343
+ childList: !0,
344
+ subtree: !1,
345
+ attributes: !1,
346
+ characterData: !1
347
+ })));
348
+ },
349
+ teardownObserver() {
350
+ this.observer && (this.observer.disconnect(), this.observer = null), this.childObserver && (this.childObserver.disconnect(), this.childObserver = null);
351
+ },
352
+ getComponentChildrenNode() {
353
+ return this.$vnode.componentOptions.children.map((o) => o.elm).filter((o) => o);
354
+ }
355
+ }
356
+ }), Xe = /* @__PURE__ */ g({
357
+ ...qe,
358
+ setup(o) {
359
+ return { __sfc: !0, isVue2: q };
360
+ }
361
+ });
362
+ var ze = function() {
363
+ var e = this, n = e._self._c, t = e._self._setupProxy;
364
+ return t.isVue2 ? n("div", { class: e.classes }, [e._t("default")], 2) : n("Teleport", { class: e.classes, attrs: { to: e.defaultTo, where: e.where, disabled: e.disabled } }, [e._t("default")], 2);
365
+ }, Ze = [], Qe = /* @__PURE__ */ C(
366
+ Xe,
367
+ ze,
368
+ Ze,
369
+ !1,
370
+ null,
371
+ "fda08514"
372
+ );
373
+ const et = Qe.exports, tt = Symbol("menu inverse style injection key"), nt = Symbol(
374
+ "button actions with menu container injection key"
375
+ );
376
+ let V = 0;
377
+ const st = {
378
+ beforeCreate() {
379
+ this.uuid = V.toString(), V += 1;
380
+ }
381
+ };
382
+ var ot = function() {
383
+ var e = this, n = e._self._c;
384
+ return n("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("path", { attrs: { fill: "#001222", d: "M8 4C8.29667 4 8.58668 3.91203 8.83335 3.74721C9.08003 3.58238 9.27229 3.34811 9.38582 3.07403C9.49935 2.79994 9.52906 2.49834 9.47118 2.20737C9.4133 1.91639 9.27044 1.64912 9.06066 1.43934C8.85088 1.22956 8.58361 1.0867 8.29264 1.02882C8.00167 0.970945 7.70006 1.00065 7.42598 1.11418C7.15189 1.22771 6.91762 1.41997 6.7528 1.66665C6.58797 1.91332 6.5 2.20333 6.5 2.5C6.5 2.89783 6.65803 3.27936 6.93934 3.56066C7.22064 3.84197 7.60218 4 8 4Z" } }), n("path", { attrs: { fill: "#001222", d: "M8 15C8.29667 15 8.58668 14.912 8.83335 14.7472C9.08003 14.5824 9.27229 14.3481 9.38582 14.074C9.49935 13.7999 9.52906 13.4983 9.47118 13.2074C9.4133 12.9164 9.27044 12.6491 9.06066 12.4393C8.85088 12.2296 8.58361 12.0867 8.29264 12.0288C8.00167 11.9709 7.70006 12.0007 7.42598 12.1142C7.15189 12.2277 6.91762 12.42 6.7528 12.6666C6.58797 12.9133 6.5 13.2033 6.5 13.5C6.5 13.8978 6.65803 14.2794 6.93934 14.5607C7.22064 14.842 7.60218 15 8 15Z" } }), n("path", { attrs: { fill: "#001222", 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" } })]);
385
+ }, at = [], it = /* @__PURE__ */ C(
386
+ st,
387
+ ot,
388
+ at,
389
+ !1,
390
+ null,
391
+ null
392
+ );
393
+ const rt = it.exports, lt = g({
394
+ name: "menu-item",
395
+ components: { BaseButton: fe, BentoTypography: Y, ChevronRightIcon: de },
396
+ props: {
397
+ /**
398
+ * menu-item text that gets displayed as the main label
399
+ */
400
+ text: {
401
+ type: String,
402
+ required: !0
403
+ },
404
+ /**
405
+ * menu-item action that gets executed when the MeniItem is clicked
406
+ */
407
+ handler: {
408
+ type: Function,
409
+ required: !0
410
+ },
411
+ /**
412
+ * menu-item text that gets displayed as the secondary label
413
+ */
414
+ secondaryText: {
415
+ type: String,
416
+ default: null
417
+ },
418
+ /**
419
+ * Optional chevron icon displayed to the right of the menu-item
420
+ */
421
+ chevron: {
422
+ type: Boolean,
423
+ default: !1
424
+ },
425
+ /**
426
+ * Optional icon displayed to the left of the menu-item
427
+ */
428
+ icon: {
429
+ // Types for Vue2 (Object) and Vue3 (Function)
430
+ // TODO: Remove Object when fully migrated to Vue3
431
+ type: [Object, Function],
432
+ default: null
433
+ },
434
+ /**
435
+ * Disables menu-item button functionality
436
+ */
437
+ disabled: {
438
+ type: Boolean,
439
+ default: !1
440
+ },
441
+ /**
442
+ * Displays an indent variant od the menu-item
443
+ */
444
+ indent: {
445
+ type: Boolean,
446
+ default: !1
447
+ },
448
+ /**
449
+ * Displays menu-item button as critical
450
+ */
451
+ critical: {
452
+ type: Boolean,
453
+ default: !1
454
+ },
455
+ /**
456
+ * Renders the text in a bold variant
457
+ */
458
+ isTitle: {
459
+ type: Boolean,
460
+ default: !1
461
+ }
462
+ },
463
+ emits: [U.CLICK],
464
+ setup(o, { emit: e }) {
465
+ const t = p(() => ({
466
+ "b-menu-item--critical": o.critical,
467
+ "b-menu-item--indent": o.indent
468
+ })), s = p(() => pe(o.secondaryText, 10));
469
+ return {
470
+ // Values
471
+ conditionalClasses: t,
472
+ computedSecondaryText: s,
473
+ // Methods
474
+ onClick: (c) => {
475
+ c.stopPropagation(), o.handler(), e(U.CLICK);
476
+ }
477
+ };
478
+ }
479
+ });
480
+ var ut = function() {
481
+ var e = this, n = e._self._c;
482
+ return e._self._setupProxy, n("base-button", { staticClass: "b-menu-item", class: e.conditionalClasses, attrs: { role: "menuitem", disabled: e.disabled, tabindex: "-1" }, on: { click: e.onClick }, scopedSlots: e._u([e.icon ? { key: "iconLeft", fn: function() {
483
+ return [n(e.icon, { tag: "component", staticClass: "b-menu-item__icon-left", attrs: { "aria-hidden": "true" } })];
484
+ }, proxy: !0 } : null, { key: "default", fn: function() {
485
+ return [n("bento-typography", { staticClass: "b-menu-item__primary-text", attrs: { el: "span", variant: "body", stronger: e.isTitle } }, [e._v(" " + e._s(e.text) + " ")]), e.computedSecondaryText ? n("bento-typography", { staticClass: "b-menu-item__secondary-text", attrs: { el: "span", variant: "body" } }, [e._v(" " + e._s(e.computedSecondaryText) + " ")]) : e._e()];
486
+ }, proxy: !0 }, e.chevron ? { key: "iconRight", fn: function() {
487
+ return [n("chevron-right-icon", { attrs: { "aria-hidden": "true" } })];
488
+ }, proxy: !0 } : null], null, !0) });
489
+ }, ct = [], dt = /* @__PURE__ */ C(
490
+ lt,
491
+ ut,
492
+ ct,
493
+ !1,
494
+ null,
495
+ "a173cbf5"
496
+ );
497
+ const X = dt.exports;
498
+ var O = /* @__PURE__ */ ((o) => (o.BACK = "back", o.CLOSE = "close", o.OPEN = "open", o))(O || {});
499
+ const ft = Symbol("menu registering injection key"), pt = {
500
+ name: "bento-menu-list-container"
501
+ }, _t = /* @__PURE__ */ g({
502
+ ...pt,
503
+ setup(o) {
504
+ const e = d(), n = d({}), t = S(
505
+ ft,
506
+ !1
507
+ );
508
+ if (t) {
509
+ const { registerMenuContainerElement: s } = t;
510
+ s(e), n.value = {
511
+ mouseleave: t == null ? void 0 : t.menuMouseLeave
512
+ };
513
+ }
514
+ return { __sfc: !0, menuListContainerRef: e, menuListContainerEvents: n, registeringAndMousingOut: t };
515
+ }
516
+ });
517
+ var mt = function() {
518
+ var e = this, n = e._self._c, t = e._self._setupProxy;
519
+ return n("div", e._g({ ref: "menuListContainerRef", staticClass: "b-menu-list-container", attrs: { "data-testid": "menu-list-container" } }, t.menuListContainerEvents), [e._t("default")], 2);
520
+ }, vt = [], yt = /* @__PURE__ */ C(
521
+ _t,
522
+ mt,
523
+ vt,
524
+ !1,
525
+ null,
526
+ "f5d01392"
527
+ );
528
+ const z = yt.exports, Z = {
529
+ "en-US": {
530
+ backButton: "Go back",
531
+ menuButton: "Open menu"
532
+ }
533
+ }, ht = g({
534
+ i18n: { messages: Z },
535
+ name: "sub-menu-item-list",
536
+ components: { BentoDivider: H, MenuItem: X, MenuListContainer: z },
537
+ props: {
538
+ items: {
539
+ type: Array,
540
+ required: !0
541
+ },
542
+ title: {
543
+ type: String,
544
+ required: !0
545
+ }
546
+ },
547
+ emits: [O.CLOSE, O.BACK],
548
+ setup(o, { emit: e }) {
549
+ const n = d(null), t = d(0), s = d(o.items.length), i = () => e(O.CLOSE), c = () => e(O.BACK), l = p(() => {
550
+ var m;
551
+ const f = (m = o.items) == null ? void 0 : m.map((_) => ({
552
+ ..._,
553
+ indent: !_.icon,
554
+ isTitle: !1,
555
+ clickHandler: i
556
+ }));
557
+ return [
558
+ {
559
+ text: o.title,
560
+ secondaryText: null,
561
+ critical: !1,
562
+ icon: W,
563
+ isTitle: !0,
564
+ disabled: !1,
565
+ indent: !1,
566
+ handler: c,
567
+ clickHandler: c,
568
+ addDivider: !0
569
+ },
570
+ ...f
571
+ ];
572
+ }), u = async () => {
573
+ var f, m, _, y, k;
574
+ (k = (y = (_ = (m = (f = n.value) == null ? void 0 : f.children) == null ? void 0 : m[t.value]) == null ? void 0 : _.children) == null ? void 0 : y[0]) == null || k.focus();
575
+ };
576
+ T(async () => {
577
+ setTimeout(() => u(), 150);
578
+ });
579
+ const a = () => {
580
+ t.value > 0 ? (t.value -= 1, l.value[t.value].disabled && a()) : t.value = s.value, u();
581
+ }, r = () => {
582
+ t.value < s.value ? (t.value += 1, l.value[t.value].disabled && r()) : t.value = 0, u();
583
+ };
584
+ return {
585
+ // Enums
586
+ BentoMenuEvent: O,
587
+ // Values
588
+ subMenuItemListRefLocal: n,
589
+ subMenuFocusedIndex: t,
590
+ ChevronLeftIcon: W,
591
+ computedItems: l,
592
+ // Methods
593
+ closeMenu: i,
594
+ onBackButton: c,
595
+ focusPrevious: a,
596
+ focusNext: r
597
+ };
598
+ }
599
+ });
600
+ var bt = function() {
601
+ var e = this, n = e._self._c;
602
+ return e._self._setupProxy, n("transition", { attrs: { name: "b-sub-menu-item-list__transition", appear: "" } }, [n("menu-list-container", { staticClass: "b-sub-menu-item-list" }, [n("ul", { ref: "subMenuItemListRefLocal", staticClass: "b-sub-menu-item-list__list", attrs: { role: "menu" }, on: { keydown: [function(t) {
603
+ return !t.type.indexOf("key") && e._k(t.keyCode, "down", 40, t.key, ["Down", "ArrowDown"]) ? null : (t.stopPropagation(), e.focusNext.apply(null, arguments));
604
+ }, function(t) {
605
+ return !t.type.indexOf("key") && e._k(t.keyCode, "up", 38, t.key, ["Up", "ArrowUp"]) ? null : (t.stopPropagation(), e.focusPrevious.apply(null, arguments));
606
+ }, function(t) {
607
+ return !t.type.indexOf("key") && e._k(t.keyCode, "esc", 27, t.key, ["Esc", "Escape"]) ? null : (t.stopPropagation(), e.onBackButton.apply(null, arguments));
608
+ }] } }, e._l(e.computedItems, function(t, s) {
609
+ return n("li", { key: `sub-menu-item-list-item-${s}`, attrs: { role: "none" } }, [n("menu-item", { attrs: { text: t.text, handler: t.handler, "secondary-text": t.secondaryText, icon: t.icon, "is-title": t.isTitle, disabled: t.disabled, critical: t.critical, indent: t.indent, tabindex: s === e.subMenuFocusedIndex ? "0" : "-1" }, on: { click: t.clickHandler } }), t.addDivider ? n("bento-divider", { staticClass: "b-sub-menu-item-list__divider" }) : e._e()], 1);
610
+ }), 0)])], 1);
611
+ }, gt = [], Ct = /* @__PURE__ */ C(
612
+ ht,
613
+ bt,
614
+ gt,
615
+ !1,
616
+ null,
617
+ "979daa5d"
618
+ );
619
+ const kt = Ct.exports;
620
+ function It(o, e, n) {
621
+ const i = d(0), c = d(0), l = (a) => {
622
+ if (!a || !a.parentElement)
623
+ return;
624
+ const r = a.parentElement, f = a.cloneNode(!0);
625
+ f.style.position = "absolute", f.style.visibility = "hidden", r.appendChild(f), f.style.width = "max-content";
626
+ const m = f.offsetWidth, _ = Math.max(150, Math.min(m, 350));
627
+ i.value = _, f.style.width = `${_}px`;
628
+ const y = f.offsetHeight;
629
+ c.value = y, r.removeChild(f), c.value = y;
630
+ };
631
+ return j([e, n], async ([a]) => {
632
+ var r, f;
633
+ if (a !== null) {
634
+ await A();
635
+ const m = (f = (r = o.value) == null ? void 0 : r[0]) == null ? void 0 : f.$el;
636
+ m && l(m);
637
+ } else
638
+ i.value = 0, c.value = 0;
639
+ }), { computedStyle: p(() => {
640
+ const a = { width: "max-content" };
641
+ return n.value && (c.value > 0 && (a.height = `${c.value}px`), i.value > 0 && (a.width = `${i.value}px`)), a;
642
+ }) };
643
+ }
644
+ const Bt = g({
645
+ name: "menu-item-list",
646
+ components: { BentoDivider: H, MenuItem: X, MenuListContainer: z, SubMenuItemList: kt },
647
+ props: {
648
+ /**
649
+ * The data to be displayed in the list
650
+ */
651
+ data: {
652
+ type: Array,
653
+ required: !0
654
+ },
655
+ /**
656
+ * Displays the menu-items of the list in the indent variant. Only applies to elements that don't have an icon to their left.
657
+ */
658
+ indentItems: {
659
+ type: Boolean,
660
+ default: !1
661
+ },
662
+ /**
663
+ * 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.
664
+ */
665
+ focusLastElement: {
666
+ type: Boolean,
667
+ default: !1
668
+ },
669
+ /**
670
+ * If set to true, closes the menu when an item is clicked.
671
+ */
672
+ closeMenuOnItemSelect: {
673
+ type: Boolean,
674
+ default: !0
675
+ }
676
+ },
677
+ emits: [O.CLOSE, "menu-item-click"],
678
+ setup(o, { emit: e, expose: n }) {
679
+ const t = d(null), s = d(null), i = d(null), c = d(null), l = d(!1), u = d(null), a = d(o.focusLastElement ? o.data.length - 1 : 0), r = d(0), f = d(o.data.length - 1), m = p(() => o.data.some((h) => h.icon)), _ = p(() => o.indentItems || m.value ? o.data.map((h) => {
680
+ let v = !1;
681
+ return h.icon || (v = !0), {
682
+ ...h,
683
+ indent: v
684
+ };
685
+ }) : o.data), y = async () => {
686
+ var h, v, x;
687
+ (x = (v = (h = s.value) == null ? void 0 : h.children[a.value]) == null ? void 0 : v.children[0]) == null || x.focus();
688
+ }, k = () => e(O.CLOSE), E = (h, v) => {
689
+ if (h.items) {
690
+ u.value = v, l.value = !0;
691
+ return;
692
+ }
693
+ u.value = v, l.value = !1, !h.skipClose && o.closeMenuOnItemSelect !== !1 && k(), e("menu-item-click");
694
+ }, B = () => {
695
+ a.value > 0 ? (a.value -= 1, _.value[a.value].disabled && B()) : a.value = f.value, y();
696
+ }, L = () => {
697
+ a.value < f.value ? (a.value += 1, _.value[a.value].disabled && L()) : a.value = 0, y();
698
+ }, M = (h, v) => {
699
+ var x;
700
+ (x = h == null ? void 0 : h.items) != null && x.length && (u.value = v, l.value = !0);
701
+ }, R = () => {
702
+ u.value && l.value && (u.value = null, l.value = !1);
703
+ }, N = () => {
704
+ l.value = !1, u.value = null, y();
705
+ };
706
+ n({
707
+ focusItem: y
708
+ });
709
+ const { computedStyle: P } = It(c, u, l);
710
+ return {
711
+ // Values
712
+ menuItemListRef: s,
713
+ menuItemListWrapperRef: i,
714
+ subMenuItemListRef: c,
715
+ menuItemRef: t,
716
+ computedData: _,
717
+ computedStyle: P,
718
+ focusedIndex: a,
719
+ subMenuFocusedIndex: r,
720
+ showSubMenu: l,
721
+ visibleSubMenuIndex: u,
722
+ // Methods
723
+ menuItemClick: E,
724
+ closeMenu: k,
725
+ focusPrevious: B,
726
+ focusNext: L,
727
+ focusRight: M,
728
+ focusLeft: R,
729
+ onBackButton: N
730
+ };
731
+ }
732
+ });
733
+ var Ot = function() {
734
+ var e = this, n = e._self._c;
735
+ return e._self._setupProxy, n("menu-list-container", { ref: "menuItemListWrapperRef", style: e.computedStyle }, [n("ul", { ref: "menuItemListRef", staticClass: "b-menu-item-list", attrs: { role: "menu" }, on: { keydown: [function(t) {
736
+ return !t.type.indexOf("key") && e._k(t.keyCode, "down", 40, t.key, ["Down", "ArrowDown"]) ? null : e.focusNext.apply(null, arguments);
737
+ }, function(t) {
738
+ return !t.type.indexOf("key") && e._k(t.keyCode, "up", 38, t.key, ["Up", "ArrowUp"]) ? null : e.focusPrevious.apply(null, arguments);
739
+ }, function(t) {
740
+ return !t.type.indexOf("key") && e._k(t.keyCode, "esc", 27, t.key, ["Esc", "Escape"]) ? null : e.closeMenu.apply(null, arguments);
741
+ }, function(t) {
742
+ return !t.type.indexOf("key") && e._k(t.keyCode, "tab", 9, t.key, "Tab") ? null : e.closeMenu.apply(null, arguments);
743
+ }] } }, e._l(e.computedData, function(t, s) {
744
+ var i, c, l, u;
745
+ return n("li", { key: `menu-item-${s}`, ref: "menuItemRef", refInFor: !0, staticClass: "b-menu-item-list__item", attrs: { role: "none" }, on: { keydown: [function(a) {
746
+ return !a.type.indexOf("key") && e._k(a.keyCode, "right", 39, a.key, ["Right", "ArrowRight"]) || "button" in a && a.button !== 2 ? null : e.focusRight(t, s);
747
+ }, function(a) {
748
+ return !a.type.indexOf("key") && e._k(a.keyCode, "left", 37, a.key, ["Left", "ArrowLeft"]) || "button" in a && a.button !== 0 ? null : e.focusLeft();
749
+ }] } }, [n("menu-item", { attrs: { text: t.text, handler: (i = t.items) != null && i.length ? () => null : t.handler, "secondary-text": t.secondaryText, icon: t.icon, chevron: !!((c = t.items) != null && c.length), disabled: t.disabled, critical: t.critical, indent: t.indent, tabindex: s === e.subMenuFocusedIndex ? "0" : "-1", "aria-haspopup": !!((l = t.items) != null && l.length), "aria-expanded": e.showSubMenu && e.visibleSubMenuIndex === s }, on: { click: function(a) {
750
+ return e.menuItemClick(t, s);
751
+ } } }), t.addDivider ? n("bento-divider", { staticClass: "b-menu-item-list__divider" }) : e._e(), (u = t.items) != null && u.length && e.showSubMenu && e.visibleSubMenuIndex === s ? n("sub-menu-item-list", { ref: "subMenuItemListRef", refInFor: !0, attrs: { items: t.items, title: t.text }, on: { back: e.onBackButton, close: e.closeMenu } }) : e._e()], 1);
752
+ }), 0)]);
753
+ }, St = [], xt = /* @__PURE__ */ C(
754
+ Bt,
755
+ Ot,
756
+ St,
757
+ !1,
758
+ null,
759
+ "c6f6142d"
760
+ );
761
+ const Et = xt.exports, Lt = {
762
+ i18n: { messages: Z },
763
+ name: "bento-menu"
764
+ }, wt = /* @__PURE__ */ g({
765
+ ...Lt,
766
+ props: {
767
+ button: { default: () => ({
768
+ variant: "secondary"
769
+ }) },
770
+ closeMenuOnItemSelect: { type: Boolean, default: !0 },
771
+ data: null,
772
+ disableArrowDownOpeningMenu: { type: Boolean, default: !1 },
773
+ menuPosition: { default: "bottom-start" },
774
+ menuFixedPositioning: { type: Boolean, default: !1 },
775
+ menuWidth: { default: null },
776
+ revertFocusToButton: { type: Boolean, default: !0 },
777
+ teleport: { type: Boolean, default: !1 },
778
+ closeOnClickOutsideOptions: { default: void 0 }
779
+ },
780
+ emits: ["menu-item-click", "click-outside"],
781
+ setup(o, { expose: e, emit: n }) {
782
+ var h;
783
+ const t = o, s = w(), i = D(s), { t: c } = J(), l = d(null), u = d(null), a = d(!1), r = d(!1), f = d(null), m = ue("menu"), _ = S(tt, d(!1));
784
+ te(ne, _);
785
+ const y = p(() => ({
786
+ "b-menu--inverse": _.value
787
+ })), k = p(() => t.menuWidth ? { width: `${t.menuWidth}px` } : null), E = p(() => {
788
+ if (t != null && t.button)
789
+ return {
790
+ variant: "secondary",
791
+ ...t.button
792
+ };
793
+ }), B = () => {
794
+ a.value = !0, n(O.OPEN);
795
+ }, L = async (v = t.revertFocusToButton) => {
796
+ var x, $;
797
+ a.value && (a.value = !1, v && (await A(), ($ = (x = l.value) == null ? void 0 : x.$el) == null || $.focus()), n(O.CLOSE));
798
+ }, M = (v) => {
799
+ v.stopPropagation(), a.value ? L() : B();
800
+ }, R = (v) => {
801
+ v.preventDefault(), r.value = !1, t.disableArrowDownOpeningMenu || B();
802
+ }, N = (v) => {
803
+ v.preventDefault(), r.value = !0, B();
804
+ }, P = () => {
805
+ n("menu-item-click");
806
+ };
807
+ return Ae(
808
+ f,
809
+ () => {
810
+ L(), n("click-outside");
811
+ },
812
+ {
813
+ ...t.closeOnClickOutsideOptions,
814
+ ignore: [l, ...((h = t.closeOnClickOutsideOptions) == null ? void 0 : h.ignore) ?? []]
815
+ }
816
+ ), e({
817
+ /**
818
+ * Control to enable programmatic closing of the menu
819
+ */
820
+ closeMenu: L
821
+ }), T(() => {
822
+ i("iconRight") && oe(
823
+ '"bento-menu" no longer supports the "iconRight" slot. The right-aligned icon is now fixed by design.'
824
+ );
825
+ }), { __sfc: !0, props: t, emit: n, slots: s, hasSlot: i, t: c, menuButtonRef: l, menuItemListRef: u, showMenu: a, isLastElementFocused: r, popoverRef: f, menuId: m, isInverseColorSet: _, computedClasses: y, computedMenuWidth: k, computedButtonPropsWithDefaults: E, openMenu: B, closeMenu: L, toggleShowMenu: M, onKeyDown: R, onKeyUp: N, menuItemClick: P, BentoToggleButton: Jt, BentoPopover: je, BentoTeleport: et, ChevronDownIcon: ce, OptionsVerticalIcon: rt, MenuItemList: Et };
826
+ }
827
+ });
828
+ var Tt = function() {
829
+ var e = this, n = e._self._c, t = e._self._setupProxy;
830
+ return n("div", { staticClass: "b-menu", class: t.computedClasses, attrs: { "data-testid": "menu" }, on: { keydown: [function(s) {
831
+ return !s.type.indexOf("key") && e._k(s.keyCode, "down", 40, s.key, ["Down", "ArrowDown"]) ? null : t.onKeyDown.apply(null, arguments);
832
+ }, function(s) {
833
+ return !s.type.indexOf("key") && e._k(s.keyCode, "up", 38, s.key, ["Up", "ArrowUp"]) ? null : t.onKeyUp.apply(null, arguments);
834
+ }, function(s) {
835
+ return !s.type.indexOf("key") && e._k(s.keyCode, "esc", 27, s.key, ["Esc", "Escape"]) ? null : t.closeMenu();
836
+ }] } }, [n(t.BentoToggleButton, e._b({ ref: "menuButtonRef", staticClass: "b-menu__toggle-button", attrs: { "aria-haspopup": "true", "aria-controls": t.showMenu ? t.menuId : null, toggled: t.showMenu, inverse: t.isInverseColorSet }, on: { click: t.toggleShowMenu }, scopedSlots: e._u([!t.hasSlot("default") || t.hasSlot("iconLeft") ? { key: "iconLeft", fn: function() {
837
+ return [e._t("iconLeft", function() {
838
+ return [n(t.OptionsVerticalIcon, { attrs: { title: t.t("menuButton") } })];
839
+ })];
840
+ }, proxy: !0 } : null, t.hasSlot("default") ? { key: "default", fn: function() {
841
+ return [e._t("default")];
842
+ }, proxy: !0 } : null, t.hasSlot("default") ? { key: "iconRight", fn: function() {
843
+ return [n(t.ChevronDownIcon)];
844
+ }, proxy: !0 } : null], null, !0) }, "bento-toggle-button", t.computedButtonPropsWithDefaults, !1)), t.menuButtonRef ? n(t.BentoTeleport, { attrs: { disabled: !e.teleport } }, [t.menuButtonRef ? n(t.BentoPopover, { ref: "popoverRef", staticClass: "b-menu__popover", style: t.computedMenuWidth, attrs: { id: t.menuId, role: null, open: t.showMenu, "target-element": t.menuButtonRef, position: e.menuPosition, "fixed-positioning": e.menuFixedPositioning, "fallback-position": [
845
+ "bottom-start",
846
+ "bottom-end",
847
+ "top-start",
848
+ "top-end",
849
+ "right-start",
850
+ "right-end",
851
+ "left-start",
852
+ "left-end"
853
+ ], teleport: e.teleport, "without-space": "" } }, [n(t.MenuItemList, { ref: "menuItemListRef", attrs: { "close-menu-on-item-select": e.closeMenuOnItemSelect, data: e.data, "focus-last-element": t.isLastElementFocused }, on: { close: t.closeMenu, "menu-item-click": t.menuItemClick } })], 1) : e._e()], 1) : e._e()], 1);
854
+ }, Mt = [], Rt = /* @__PURE__ */ C(
855
+ wt,
856
+ Tt,
857
+ Mt,
858
+ !1,
859
+ null,
860
+ "e3fa5ac1"
861
+ );
862
+ const Nt = Rt.exports, Pt = 242, K = parseInt(me, 10), At = (o, e, n) => {
863
+ const t = d(0);
864
+ let s = null;
865
+ const { buttonActionsWithMenu: i, menu: c, stackButtons: l } = S(nt, {
866
+ buttonActionsWithMenu: d(null),
867
+ menu: d(null),
868
+ stackButtons: d(!1)
869
+ }), u = p(() => i.value ?? o.value), a = p(() => c.value ? [...e.value, c.value.$el] : e.value), r = (f) => {
870
+ var y;
871
+ const m = (y = a.value) == null ? void 0 : y.reduce(
872
+ (k, E) => k + E.clientWidth + K,
873
+ -K - 1
874
+ ), _ = u.value.clientWidth;
875
+ return f && (t.value = _ >= Pt && !l.value ? m : 0), t.value > _;
876
+ };
877
+ return j(
878
+ () => n,
879
+ () => {
880
+ A(() => {
881
+ l.value = r(!0);
882
+ });
883
+ },
884
+ { deep: !0 }
885
+ ), T(() => {
886
+ s = _e(u.value, () => {
887
+ l.value = r(t.value === 0);
888
+ });
889
+ }), G(() => {
890
+ s == null || s.disconnect();
891
+ }), l;
892
+ }, Dt = {}, $t = /* @__PURE__ */ g({
893
+ ...Dt,
894
+ __name: "button-actions",
895
+ props: {
896
+ actions: null,
897
+ inverse: { type: Boolean, default: !1 },
898
+ layout: { default: "buttons-end" }
899
+ },
900
+ setup(o) {
901
+ const e = o, n = d(null), t = d(null), s = At(n, t, e.actions), i = p(() => e.actions.slice().reverse()), c = (r) => {
902
+ const f = e.actions.length - 1;
903
+ return r === f ? "primary" : "secondary";
904
+ }, l = p(() => ({
905
+ [`b-button-actions--${e.layout}`]: !0,
906
+ "b-button-actions--stacked-buttons": s.value
907
+ }));
908
+ return { __sfc: !0, props: e, buttonActions: n, buttons: t, stackButtons: s, reversedActionsList: i, generateButtonVariantByIndex: c, conditionalClasses: l, generateButtonEvents: (r) => (r == null ? void 0 : r.event) !== void 0 ? {
909
+ click: r.event
910
+ } : {}, isIconOnly: (r) => r.iconOnly && (r.iconLeft || r.iconRight || r.icon), BentoButton: b, BentoLoadingButton: Oe, BentoMenu: Nt };
911
+ }
912
+ });
913
+ var Ft = function() {
914
+ var e = this, n = e._self._c, t = e._self._setupProxy;
915
+ return n("div", { ref: "buttonActions", staticClass: "b-button-actions" }, [n("div", { staticClass: "b-button-actions__container-wrapper", class: t.conditionalClasses, attrs: { role: "group" } }, e._l(t.reversedActionsList, function(s, i) {
916
+ return n("div", { key: i, ref: "buttons", refInFor: !0, staticClass: "b-button-actions__button-wrapper" }, [s.data ? [n(t.BentoMenu, { ref: s.elementRef, refInFor: !0, attrs: { data: s.data, "close-menu-on-item-select": s.closeMenuOnItemSelect, "close-on-click-outside-options": s.closeOnClickOutsideOptions, "disable-arrow-down-opening-menu": s.disableArrowDownOpeningMenu, "menu-position": s.menuPosition, "menu-fixed-positioning": s.menuFixedPositioning, "menu-width": s.menuWidth, "revert-focus-to-button": s.revertFocusToButton, teleport: s.teleport }, scopedSlots: e._u([s.icon || s.iconLeft ? { key: "iconLeft", fn: function() {
917
+ return [n(s.icon || s.iconLeft, { tag: "component", attrs: { "svg-title": s.title } })];
918
+ }, proxy: !0 } : null, t.isIconOnly(s) ? null : { key: "default", fn: function() {
919
+ return [e._v(" " + e._s(s.title) + " ")];
920
+ }, proxy: !0 }], null, !0) })] : [s.state ? n(t.BentoLoadingButton, e._g({ ref: s.elementRef, refInFor: !0, attrs: { condensed: s.condensed, critical: s.critical, disabled: s.disabled, inverse: e.inverse, state: s.state, variant: s.variant || t.generateButtonVariantByIndex(i) } }, t.generateButtonEvents(s)), [e._v(" " + e._s(s.title) + " ")]) : n(t.BentoButton, e._g({ ref: s.elementRef, refInFor: !0, attrs: { condensed: s.condensed, critical: s.critical, disabled: s.disabled, inverse: e.inverse, link: s.link, variant: s.variant || t.generateButtonVariantByIndex(i) }, scopedSlots: e._u([s.icon || s.iconLeft ? { key: "iconLeft", fn: function() {
921
+ return [n(s.icon || s.iconLeft, { tag: "component", attrs: { "svg-title": s.title } })];
922
+ }, proxy: !0 } : null, t.isIconOnly(s) ? null : { key: "default", fn: function() {
923
+ return [e._v(" " + e._s(s.title) + " ")];
924
+ }, proxy: !0 }, s.iconRight ? { key: "iconRight", fn: function() {
925
+ return [n(s.iconRight, { tag: "component", attrs: { "svg-title": s.title } })];
926
+ }, proxy: !0 } : null], null, !0) }, t.generateButtonEvents(s)))]], 2);
927
+ }), 0)]);
928
+ }, Wt = [], Ut = /* @__PURE__ */ C(
929
+ $t,
930
+ Ft,
931
+ Wt,
932
+ !1,
933
+ null,
934
+ "40b593de"
935
+ );
936
+ const Vt = Ut.exports, Kt = {}, Gt = /* @__PURE__ */ g({
937
+ ...Kt,
938
+ __name: "toggle-button",
939
+ props: {
940
+ /**
941
+ * Reduces sizing of button
942
+ */
943
+ condensed: {
944
+ type: b.props.condensed.type,
945
+ default: !1
946
+ },
947
+ /**
948
+ * Disables button functonality
949
+ */
950
+ disabled: {
951
+ type: b.props.disabled.type,
952
+ default: !1
953
+ },
954
+ /**
955
+ * Sets color set to inverse
956
+ */
957
+ inverse: {
958
+ type: Boolean,
959
+ default: !1
960
+ },
961
+ /**
962
+ * Types of flavour of Button
963
+ * @values primary, secondary, tertiary
964
+ */
965
+ variant: {
966
+ type: b.props.variant.type,
967
+ default: "primary",
968
+ validator: b.props.variant.validator
969
+ },
970
+ /**
971
+ * The state of the button whether it is toggled or not.
972
+ */
973
+ toggled: {
974
+ type: Boolean,
975
+ default: !1
976
+ }
977
+ },
978
+ emits: ["click", "update:toggled"],
979
+ setup(o, { emit: e }) {
980
+ const n = o, t = p(
981
+ () => n.variant === "tertiary" ? "tertiary-with-background" : n.variant
982
+ ), s = p(() => ({
983
+ "b-toggle-button--condensed": n == null ? void 0 : n.condensed,
984
+ [`b-toggle-button--${t.value}-toggled`]: n.toggled,
985
+ "b-toggle-button--inverse": n.inverse
986
+ })), i = (u) => {
987
+ u.stopPropagation(), n != null && n.disabled || (e("click", u), e("update:toggled", !n.toggled));
988
+ }, c = w();
989
+ return { __sfc: !0, props: n, emit: e, computedVariant: t, conditionalClasses: s, onClick: i, slots: c, getSlotKeyIfVue3: (u) => ({}), BentoButton: b };
990
+ }
991
+ });
992
+ var jt = function() {
993
+ var e = this, n = e._self._c, t = e._self._setupProxy;
994
+ return n(t.BentoButton, e._b({ staticClass: "b-toggle-button", class: t.conditionalClasses, attrs: { "aria-expanded": `${e.toggled}`, "aria-pressed": `${e.toggled}`, condensed: e.condensed, disabled: e.disabled, inverse: e.inverse, variant: t.computedVariant }, on: { "!click": function(s) {
995
+ return s.stopPropagation(), t.onClick.apply(null, arguments);
996
+ } }, scopedSlots: e._u([e._l(t.slots, function(s, i) {
997
+ return { key: i, fn: function() {
998
+ return [e._t(i, null, null, t.getSlotKeyIfVue3(i))];
999
+ }, proxy: !0 };
1000
+ })], null, !0) }, "bento-button", e.$attrs, !1));
1001
+ }, Ht = [], Yt = /* @__PURE__ */ C(
1002
+ Gt,
1003
+ jt,
1004
+ Ht,
1005
+ !1,
1006
+ null,
1007
+ "0bc368c9"
1008
+ );
1009
+ const Jt = Yt.exports;
1010
+ export {
1011
+ Vt as B,
1012
+ ft as D,
1013
+ De as I,
1014
+ tt as M,
1015
+ rt as O,
1016
+ Fe as P,
1017
+ Ye as S,
1018
+ Oe as a,
1019
+ I as b,
1020
+ Jt as c,
1021
+ et as d,
1022
+ nt as e,
1023
+ Nt as f,
1024
+ O as g,
1025
+ je as h,
1026
+ Je as i,
1027
+ He as j,
1028
+ $e as k,
1029
+ Ae as u
1030
+ };
1031
+ //# sourceMappingURL=toggle-button.COXDzXWu.js.map