@adyen/bento-vue3 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 (458) hide show
  1. package/dist/@types/components.d.ts +1 -0
  2. package/dist/@types/index.d.ts +978 -1976
  3. package/dist/accordion.js +1 -1
  4. package/dist/action-bar.js +1 -1
  5. package/dist/alert.js +1 -1
  6. package/dist/assets/accordion-item.css +1 -1
  7. package/dist/assets/action-bar.css +1 -1
  8. package/dist/assets/alert.css +1 -1
  9. package/dist/assets/base-button.css +1 -1
  10. package/dist/assets/base-modal.css +1 -1
  11. package/dist/assets/button-actions-with-menu.css +1 -1
  12. package/dist/assets/button.css +1 -1
  13. package/dist/assets/calendar.css +1 -1
  14. package/dist/assets/card.css +1 -1
  15. package/dist/assets/checkbox-group.css +1 -1
  16. package/dist/assets/checkbox-input.css +1 -1
  17. package/dist/assets/checkbox.css +1 -1
  18. package/dist/assets/chip.css +1 -1
  19. package/dist/assets/code-snippet.css +1 -1
  20. package/dist/assets/controls-group.css +1 -1
  21. package/dist/assets/copy.css +1 -1
  22. package/dist/assets/country.css +1 -1
  23. package/dist/assets/currency.css +1 -1
  24. package/dist/assets/dashed-underline.css +1 -1
  25. package/dist/assets/data-grid-template.css +1 -1
  26. package/dist/assets/data-grid.css +1 -1
  27. package/dist/assets/date-picker.css +1 -1
  28. package/dist/assets/date-range-picker.css +1 -1
  29. package/dist/assets/dialog-page.css +1 -1
  30. package/dist/assets/divider.css +1 -1
  31. package/dist/assets/dropdown-default-textbox.css +1 -1
  32. package/dist/assets/dropdown-tag.css +1 -1
  33. package/dist/assets/dropdown.css +1 -1
  34. package/dist/assets/empty-state.css +1 -1
  35. package/dist/assets/error-message.css +1 -1
  36. package/dist/assets/file-uploader.css +1 -1
  37. package/dist/assets/filter-bar.css +1 -1
  38. package/dist/assets/focus-trap.css +1 -1
  39. package/dist/assets/footer-actions.css +1 -1
  40. package/dist/assets/form-layout-title.css +1 -1
  41. package/dist/assets/grid-layout.css +1 -1
  42. package/dist/assets/header-meta.css +1 -1
  43. package/dist/assets/header-with-views.css +1 -1
  44. package/dist/assets/header.css +1 -1
  45. package/dist/assets/info-icon.css +1 -1
  46. package/dist/assets/input-field-password.css +1 -1
  47. package/dist/assets/input-field-phone-number.css +1 -1
  48. package/dist/assets/input-field.css +1 -1
  49. package/dist/assets/inspector.css +1 -1
  50. package/dist/assets/layout-row.css +1 -1
  51. package/dist/assets/listbox-option-tag.css +1 -1
  52. package/dist/assets/loading-indicator.css +1 -1
  53. package/dist/assets/modal-fullscreen.css +1 -1
  54. package/dist/assets/pagination.css +1 -1
  55. package/dist/assets/payment-method.css +1 -1
  56. package/dist/assets/popper-container.css +1 -1
  57. package/dist/assets/promo-banner.css +1 -1
  58. package/dist/assets/radio-group.css +1 -1
  59. package/dist/assets/radio-input.css +1 -1
  60. package/dist/assets/rich-text-editor.css +1 -1
  61. package/dist/assets/search-bar.css +1 -1
  62. package/dist/assets/secondary-nav.css +1 -1
  63. package/dist/assets/segmented-control.css +1 -1
  64. package/dist/assets/selection-card-group.css +1 -1
  65. package/dist/assets/sidepanel.css +1 -1
  66. package/dist/assets/status.css +1 -1
  67. package/dist/assets/step.css +1 -1
  68. package/dist/assets/structured-list-item.css +1 -1
  69. package/dist/assets/tab.css +1 -1
  70. package/dist/assets/tag.css +1 -1
  71. package/dist/assets/textarea.css +1 -1
  72. package/dist/assets/timeline-item.css +1 -1
  73. package/dist/assets/toast.css +1 -1
  74. package/dist/assets/toggle-button.css +1 -1
  75. package/dist/assets/toggle.css +1 -1
  76. package/dist/assets/tooltip.css +1 -1
  77. package/dist/assets/tutorial.css +1 -1
  78. package/dist/assets/typography.css +1 -1
  79. package/dist/assets/use-cached-selected-values.css +1 -1
  80. package/dist/avatar.js +1 -1
  81. package/dist/button.js +9 -9
  82. package/dist/card.js +1 -1
  83. package/dist/checkbox.js +2 -2
  84. package/dist/chip.js +1 -1
  85. package/dist/chunks/{accordion-item.DOnW0OnU.js → accordion-item.6etqAJV9.js} +3 -3
  86. package/dist/chunks/accordion-item.6etqAJV9.js.map +1 -0
  87. package/dist/chunks/{action-bar.CflF49oL.js → action-bar.CweA2FeY.js} +7 -8
  88. package/dist/chunks/action-bar.CweA2FeY.js.map +1 -0
  89. package/dist/chunks/alert.Dzx5MzgE.js +171 -0
  90. package/dist/chunks/alert.Dzx5MzgE.js.map +1 -0
  91. package/dist/chunks/aria-label.CaUURpnB.js.map +1 -1
  92. package/dist/chunks/{avatar.B0-9jC6H.js → avatar.Dq59yj6m.js} +2 -2
  93. package/dist/chunks/avatar.Dq59yj6m.js.map +1 -0
  94. package/dist/chunks/{base-button.DdNFlbgH.js → base-button.CjYb5Y8k.js} +19 -19
  95. package/dist/chunks/base-button.CjYb5Y8k.js.map +1 -0
  96. package/dist/chunks/{base-modal.C3_r3rmc.js → base-modal.BrBcILSe.js} +21 -21
  97. package/dist/chunks/base-modal.BrBcILSe.js.map +1 -0
  98. package/dist/chunks/bin.DuHlEQBO.js +37 -0
  99. package/dist/chunks/bin.DuHlEQBO.js.map +1 -0
  100. package/dist/chunks/button-actions-with-menu.CBuoSd3w.js +93 -0
  101. package/dist/chunks/button-actions-with-menu.CBuoSd3w.js.map +1 -0
  102. package/dist/chunks/button-actions.types.BptAXjD8.js +8 -0
  103. package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -0
  104. package/dist/chunks/{button.AB0SOQMn.js → button.C-MAa6ut.js} +4 -4
  105. package/dist/chunks/button.C-MAa6ut.js.map +1 -0
  106. package/dist/chunks/{calendar._oPk_A1C.js → calendar.DFHiga9k.js} +36 -37
  107. package/dist/chunks/calendar.DFHiga9k.js.map +1 -0
  108. package/dist/chunks/{card.CS34Mi_G.js → card.BspLDcas.js} +6 -5
  109. package/dist/chunks/card.BspLDcas.js.map +1 -0
  110. package/dist/chunks/{checkbox-group.JRo6xNpe.js → checkbox-group.DIXgr1WQ.js} +6 -6
  111. package/dist/chunks/checkbox-group.DIXgr1WQ.js.map +1 -0
  112. package/dist/chunks/{checkbox-input.DFkwZ4GM.js → checkbox-input.BXNGT9U0.js} +2 -2
  113. package/dist/chunks/checkbox-input.BXNGT9U0.js.map +1 -0
  114. package/dist/chunks/{checkbox.DGrG3GN1.js → checkbox.M6lKj2hQ.js} +27 -27
  115. package/dist/chunks/checkbox.M6lKj2hQ.js.map +1 -0
  116. package/dist/chunks/{chip.CneNX2_j.js → chip.DcpP3zb6.js} +11 -11
  117. package/dist/chunks/chip.DcpP3zb6.js.map +1 -0
  118. package/dist/chunks/{code-snippet.D5M76Qy6.js → code-snippet.CKrxKjkQ.js} +8 -8
  119. package/dist/chunks/code-snippet.CKrxKjkQ.js.map +1 -0
  120. package/dist/chunks/{controls-group.CrzkSu0U.js → controls-group.CXVHTaYp.js} +32 -29
  121. package/dist/chunks/controls-group.CXVHTaYp.js.map +1 -0
  122. package/dist/chunks/{copy.RUoQOydT.js → copy.C4DAAiPw.js} +18 -19
  123. package/dist/chunks/copy.C4DAAiPw.js.map +1 -0
  124. package/dist/chunks/{country.Q95voxeL.js → country.RVvsGwuV.js} +9 -9
  125. package/dist/chunks/country.RVvsGwuV.js.map +1 -0
  126. package/dist/chunks/country.types.C0Q_hhgJ.js.map +1 -1
  127. package/dist/chunks/{currency.CZVdyZUH.js → currency.CN4UnCx8.js} +3 -3
  128. package/dist/chunks/currency.CN4UnCx8.js.map +1 -0
  129. package/dist/chunks/{dashboard-section.Bhd5Lsy2.js → dashboard-section.Cll3tn0q.js} +4 -4
  130. package/dist/chunks/{dashboard-section.Bhd5Lsy2.js.map → dashboard-section.Cll3tn0q.js.map} +1 -1
  131. package/dist/chunks/{dashed-underline.DkzQkpaf.js → dashed-underline.2OYxO-Rh.js} +30 -32
  132. package/dist/chunks/dashed-underline.2OYxO-Rh.js.map +1 -0
  133. package/dist/chunks/{data-grid-template.DSwj7e1E.js → data-grid-template.CTRHofoW.js} +5 -5
  134. package/dist/chunks/data-grid-template.CTRHofoW.js.map +1 -0
  135. package/dist/chunks/data-grid.DMOTTywp.js +3932 -0
  136. package/dist/chunks/data-grid.DMOTTywp.js.map +1 -0
  137. package/dist/chunks/{date-picker.CAoXTiZR.js → date-picker.CBlQ0ql7.js} +13 -14
  138. package/dist/chunks/date-picker.CBlQ0ql7.js.map +1 -0
  139. package/dist/chunks/date-range-picker.D-gGqpFB.js +1168 -0
  140. package/dist/chunks/date-range-picker.D-gGqpFB.js.map +1 -0
  141. package/dist/chunks/{date.DSjCnSgL.js → date.4GAXrgy5.js} +2 -2
  142. package/dist/chunks/{date.DSjCnSgL.js.map → date.4GAXrgy5.js.map} +1 -1
  143. package/dist/chunks/{dialog-page.C80HOigq.js → dialog-page.VSJgHY3C.js} +15 -15
  144. package/dist/chunks/dialog-page.VSJgHY3C.js.map +1 -0
  145. package/dist/chunks/{divider.qUOSAbU6.js → divider.DnKNNyWB.js} +2 -2
  146. package/dist/chunks/divider.DnKNNyWB.js.map +1 -0
  147. package/dist/chunks/{dropdown-default-textbox.Ce5D3ipi.js → dropdown-default-textbox.CGsOngY1.js} +111 -109
  148. package/dist/chunks/dropdown-default-textbox.CGsOngY1.js.map +1 -0
  149. package/dist/chunks/dropdown-tag.DlFpUeXa.js +296 -0
  150. package/dist/chunks/dropdown-tag.DlFpUeXa.js.map +1 -0
  151. package/dist/chunks/{dropdown.CMOYmQLB.js → dropdown.agfzvJZE.js} +59 -59
  152. package/dist/chunks/dropdown.agfzvJZE.js.map +1 -0
  153. package/dist/chunks/{empty-state.D7llINgF.js → empty-state.BTaeZdQu.js} +4 -4
  154. package/dist/chunks/empty-state.BTaeZdQu.js.map +1 -0
  155. package/dist/chunks/{error-message.DHMHq9bR.js → error-message.B1P5ictH.js} +5 -5
  156. package/dist/chunks/{error-message.DHMHq9bR.js.map → error-message.B1P5ictH.js.map} +1 -1
  157. package/dist/chunks/es6.MoTTyETW.js +12 -0
  158. package/dist/chunks/es6.MoTTyETW.js.map +1 -0
  159. package/dist/chunks/events.CMzGybJJ.js +47 -0
  160. package/dist/chunks/events.CMzGybJJ.js.map +1 -0
  161. package/dist/chunks/{file-uploader.B_EI2fAc.js → file-uploader.Vac1Cu0i.js} +165 -164
  162. package/dist/chunks/file-uploader.Vac1Cu0i.js.map +1 -0
  163. package/dist/chunks/{filter-bar.DoHMLZ4O.js → filter-bar.uUpoP-XZ.js} +361 -368
  164. package/dist/chunks/filter-bar.uUpoP-XZ.js.map +1 -0
  165. package/dist/chunks/{fixed-scroller.D5nAPPbo.js → fixed-scroller.DSGxXiAH.js} +2 -2
  166. package/dist/chunks/{fixed-scroller.D5nAPPbo.js.map → fixed-scroller.DSGxXiAH.js.map} +1 -1
  167. package/dist/chunks/{focus-trap.CljZgv9i.js → focus-trap.rjp24a37.js} +2 -2
  168. package/dist/chunks/focus-trap.rjp24a37.js.map +1 -0
  169. package/dist/chunks/{footer-actions.Bje-DDqw.js → footer-actions.gRKTKGts.js} +5 -5
  170. package/dist/chunks/footer-actions.gRKTKGts.js.map +1 -0
  171. package/dist/chunks/{form-layout-title.rpIO-I9A.js → form-layout-title.DdRqnXXi.js} +5 -5
  172. package/dist/chunks/form-layout-title.DdRqnXXi.js.map +1 -0
  173. package/dist/chunks/{grid-layout.BTLE3rac.js → grid-layout.DDaRNz4-.js} +2 -2
  174. package/dist/chunks/grid-layout.DDaRNz4-.js.map +1 -0
  175. package/dist/chunks/{header-meta.Yt43-cUI.js → header-meta.Ct79L1O8.js} +26 -27
  176. package/dist/chunks/{header-meta.Yt43-cUI.js.map → header-meta.Ct79L1O8.js.map} +1 -1
  177. package/dist/chunks/{header-with-views.BUed3ocZ.js → header-with-views.BVHdSAKp.js} +281 -281
  178. package/dist/chunks/header-with-views.BVHdSAKp.js.map +1 -0
  179. package/dist/chunks/{header.CwKjDgKv.js → header.Cd1P8lYK.js} +32 -32
  180. package/dist/chunks/header.Cd1P8lYK.js.map +1 -0
  181. package/dist/chunks/image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js.map +1 -1
  182. package/dist/chunks/{info-icon.DprUQ9fj.js → info-icon.Bl0iKUfC.js} +7 -8
  183. package/dist/chunks/info-icon.Bl0iKUfC.js.map +1 -0
  184. package/dist/chunks/info.BKwey1HA.js +44 -0
  185. package/dist/chunks/info.BKwey1HA.js.map +1 -0
  186. package/dist/chunks/{input-field-password.DN0Jro1V.js → input-field-password.DkIWrrxy.js} +8 -8
  187. package/dist/chunks/input-field-password.DkIWrrxy.js.map +1 -0
  188. package/dist/chunks/{input-field-phone-number.BhPsrafR.js → input-field-phone-number.EXlRu8qq.js} +46 -45
  189. package/dist/chunks/{input-field-phone-number.BhPsrafR.js.map → input-field-phone-number.EXlRu8qq.js.map} +1 -1
  190. package/dist/chunks/{input-field.su5Cq8Dt.js → input-field.CgbiOju9.js} +5 -5
  191. package/dist/chunks/input-field.CgbiOju9.js.map +1 -0
  192. package/dist/chunks/{inspector.CoZCPfHC.js → inspector.BGtTMtE0.js} +13 -13
  193. package/dist/chunks/inspector.BGtTMtE0.js.map +1 -0
  194. package/dist/chunks/{keyboard-navigation.CqgGzfZQ.js → keyboard-navigation.pB8weElW.js} +2 -2
  195. package/dist/chunks/keyboard-navigation.pB8weElW.js.map +1 -0
  196. package/dist/chunks/{layout-row.CZNtHaXd.js → layout-row.BPfOPn4x.js} +9 -9
  197. package/dist/chunks/layout-row.BPfOPn4x.js.map +1 -0
  198. package/dist/chunks/{link.BBpxiclu.js → link.cwPmWlsk.js} +2 -2
  199. package/dist/chunks/{link.BBpxiclu.js.map → link.cwPmWlsk.js.map} +1 -1
  200. package/dist/chunks/{listbox-option-tag.0BK6jWO9.js → listbox-option-tag.CDIkX7nh.js} +7 -7
  201. package/dist/chunks/listbox-option-tag.CDIkX7nh.js.map +1 -0
  202. package/dist/chunks/{loading-indicator.DEepb9Wl.js → loading-indicator.VHi5tbZa.js} +3 -3
  203. package/dist/chunks/loading-indicator.VHi5tbZa.js.map +1 -0
  204. package/dist/chunks/minus-small.DYIyF5XW.js.map +1 -1
  205. package/dist/chunks/{modal-fullscreen.DBTnoSX9.js → modal-fullscreen.-Q-7GMyT.js} +18 -19
  206. package/dist/chunks/modal-fullscreen.-Q-7GMyT.js.map +1 -0
  207. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.Cd-mQUJ8.js → modal.vue_vue_type_script_setup_true_lang.TFh7p51f.js} +6 -6
  208. package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.TFh7p51f.js.map +1 -0
  209. package/dist/chunks/{pagination.fYQak4C8.js → pagination.DW_HPEIu.js} +5 -5
  210. package/dist/chunks/pagination.DW_HPEIu.js.map +1 -0
  211. package/dist/chunks/{payment-method.eazefwm6.js → payment-method.CDnn1bjo.js} +3 -3
  212. package/dist/chunks/payment-method.CDnn1bjo.js.map +1 -0
  213. package/dist/chunks/popover.types.COM6oQgq.js +6 -0
  214. package/dist/chunks/popover.types.COM6oQgq.js.map +1 -0
  215. package/dist/chunks/{popper-container.b5h4zYgT.js → popper-container.CgJzEQ7N.js} +285 -281
  216. package/dist/chunks/popper-container.CgJzEQ7N.js.map +1 -0
  217. package/dist/chunks/{promo-banner.CQp3z2CP.js → promo-banner.BbqIA4Ce.js} +4 -4
  218. package/dist/chunks/promo-banner.BbqIA4Ce.js.map +1 -0
  219. package/dist/chunks/{radio-group.H9A5QcNu.js → radio-group.CbLIPi7h.js} +77 -69
  220. package/dist/chunks/radio-group.CbLIPi7h.js.map +1 -0
  221. package/dist/chunks/{radio-input.DKfQGxtp.js → radio-input.odN9FOyr.js} +2 -2
  222. package/dist/chunks/radio-input.odN9FOyr.js.map +1 -0
  223. package/dist/chunks/{rich-text-editor.Dx78coVL.js → rich-text-editor.C0hJeV4H.js} +8 -8
  224. package/dist/chunks/rich-text-editor.C0hJeV4H.js.map +1 -0
  225. package/dist/chunks/{search-bar.CUrcP_wf.js → search-bar.CvAi2t3-.js} +46 -44
  226. package/dist/chunks/search-bar.CvAi2t3-.js.map +1 -0
  227. package/dist/chunks/{secondary-nav.j3ddtYoZ.js → secondary-nav.yntS8-u5.js} +28 -28
  228. package/dist/chunks/secondary-nav.yntS8-u5.js.map +1 -0
  229. package/dist/chunks/{segmented-control.5-vlm8Gt.js → segmented-control.CRSdIvha.js} +6 -7
  230. package/dist/chunks/segmented-control.CRSdIvha.js.map +1 -0
  231. package/dist/chunks/{selection-card-group.B4xpnd-z.js → selection-card-group.Cu3V8h4R.js} +16 -16
  232. package/dist/chunks/selection-card-group.Cu3V8h4R.js.map +1 -0
  233. package/dist/chunks/{sidepanel.DPN__L3Q.js → sidepanel.z18XSO3M.js} +14 -14
  234. package/dist/chunks/sidepanel.z18XSO3M.js.map +1 -0
  235. package/dist/chunks/{status.types.Bdv2zuuh.js → status.types.-l2qJxLn.js} +9 -9
  236. package/dist/chunks/status.types.-l2qJxLn.js.map +1 -0
  237. package/dist/chunks/{step.BtNhPZAf.js → step.BMSjltwl.js} +8 -9
  238. package/dist/chunks/step.BMSjltwl.js.map +1 -0
  239. package/dist/chunks/{structured-list-item.BQbEDKhg.js → structured-list-item.CD1nMqzH.js} +18 -19
  240. package/dist/chunks/structured-list-item.CD1nMqzH.js.map +1 -0
  241. package/dist/chunks/{summary-grid.types.CjbbSZBJ.js → summary-grid.types.BHuDlPDw.js} +7 -7
  242. package/dist/chunks/{summary-grid.types.CjbbSZBJ.js.map → summary-grid.types.BHuDlPDw.js.map} +1 -1
  243. package/dist/chunks/{tab.CAt51ksU.js → tab.C3R_VoJL.js} +5 -5
  244. package/dist/chunks/tab.C3R_VoJL.js.map +1 -0
  245. package/dist/chunks/{tag.D3in0-Bp.js → tag.B6AmSws9.js} +11 -12
  246. package/dist/chunks/tag.B6AmSws9.js.map +1 -0
  247. package/dist/chunks/textarea.DfQLxj_w.js +295 -0
  248. package/dist/chunks/textarea.DfQLxj_w.js.map +1 -0
  249. package/dist/chunks/timeline-item.25y9USE-.js +568 -0
  250. package/dist/chunks/timeline-item.25y9USE-.js.map +1 -0
  251. package/dist/chunks/{toast.CSoCPteL.js → toast.DIhABAW8.js} +18 -18
  252. package/dist/chunks/toast.DIhABAW8.js.map +1 -0
  253. package/dist/chunks/toggle-button.CQl9HneO.js +1353 -0
  254. package/dist/chunks/toggle-button.CQl9HneO.js.map +1 -0
  255. package/dist/chunks/{toggle.BuKXexA6.js → toggle.C8k7NQ7y.js} +3 -3
  256. package/dist/chunks/toggle.C8k7NQ7y.js.map +1 -0
  257. package/dist/chunks/{tooltip.VYPUHERk.js → tooltip.lBnko9QV.js} +70 -64
  258. package/dist/chunks/tooltip.lBnko9QV.js.map +1 -0
  259. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.Dmf8fGaM.js → tutorial.vue_vue_type_script_setup_true_lang.BProZFmI.js} +48 -51
  260. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.BProZFmI.js.map +1 -0
  261. package/dist/chunks/{typography.DN5eC5ch.js → typography.yBEME_Gu.js} +25 -25
  262. package/dist/chunks/typography.yBEME_Gu.js.map +1 -0
  263. package/dist/chunks/{use-bento-toast-controller.D3LA1FCd.js → use-bento-toast-controller.Kri_h7jS.js} +2 -2
  264. package/dist/chunks/{use-bento-toast-controller.D3LA1FCd.js.map → use-bento-toast-controller.Kri_h7jS.js.map} +1 -1
  265. package/dist/chunks/{use-cached-selected-values.Dyoz6cUK.js → use-cached-selected-values.CELe-MsT.js} +16 -17
  266. package/dist/chunks/use-cached-selected-values.CELe-MsT.js.map +1 -0
  267. package/dist/chunks/{use-country-items.Duh4bMqW.js → use-country-items.D_kamcYy.js} +2 -2
  268. package/dist/chunks/use-country-items.D_kamcYy.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.B7eQSabc.js.map +1 -1
  272. package/dist/chunks/warning-filled.BMGD0G-_.js +29 -0
  273. package/dist/chunks/warning-filled.BMGD0G-_.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 +241 -244
  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 +4 -5
  312. package/dist/popper-container.js.map +1 -1
  313. package/dist/promo-banner.js +1 -1
  314. package/dist/radio-group.js +2 -2
  315. package/dist/rich-text-editor.js +1 -1
  316. package/dist/search-bar.js +2 -2
  317. package/dist/secondary-nav.js +1 -1
  318. package/dist/segmented-control.js +1 -1
  319. package/dist/selection-card.js +1 -1
  320. package/dist/sidepanel.js +1 -1
  321. package/dist/status.js +1 -1
  322. package/dist/stepper.js +1 -1
  323. package/dist/structured-list.js +1 -1
  324. package/dist/styles/bento-dark.css +17 -4
  325. package/dist/styles/bento-light.css +17 -4
  326. package/dist/styles/bento.css +17 -4
  327. package/dist/styles/styleguide.css +17 -4
  328. package/dist/styles/utility.css +3 -0
  329. package/dist/summary-grid.js +1 -1
  330. package/dist/tabs.js +1 -1
  331. package/dist/tag.js +1 -1
  332. package/dist/textarea.js +1 -1
  333. package/dist/timeline.js +1 -1
  334. package/dist/toast.js +1 -1
  335. package/dist/toggle.js +1 -1
  336. package/dist/tutorial.js +1 -1
  337. package/dist/typography.js +1 -1
  338. package/dist/use-form-v4.js.map +1 -1
  339. package/dist/web-types.json +1 -1
  340. package/package.json +6 -6
  341. package/dist/assets/button-actions.css +0 -1
  342. package/dist/assets/menu.css +0 -1
  343. package/dist/assets/popover.css +0 -1
  344. package/dist/assets/teleport.css +0 -1
  345. package/dist/chunks/accordion-item.DOnW0OnU.js.map +0 -1
  346. package/dist/chunks/action-bar.CflF49oL.js.map +0 -1
  347. package/dist/chunks/alert.DvleqX0i.js +0 -169
  348. package/dist/chunks/alert.DvleqX0i.js.map +0 -1
  349. package/dist/chunks/avatar.B0-9jC6H.js.map +0 -1
  350. package/dist/chunks/base-button.DdNFlbgH.js.map +0 -1
  351. package/dist/chunks/base-modal.C3_r3rmc.js.map +0 -1
  352. package/dist/chunks/base-modal.keys.C2PQXcE2.js +0 -5
  353. package/dist/chunks/base-modal.keys.C2PQXcE2.js.map +0 -1
  354. package/dist/chunks/bin.CiGG2V4b.js +0 -37
  355. package/dist/chunks/bin.CiGG2V4b.js.map +0 -1
  356. package/dist/chunks/button-actions-with-menu.8ZYh7-9s.js +0 -91
  357. package/dist/chunks/button-actions-with-menu.8ZYh7-9s.js.map +0 -1
  358. package/dist/chunks/button-actions.CZdO9YOk.js +0 -264
  359. package/dist/chunks/button-actions.CZdO9YOk.js.map +0 -1
  360. package/dist/chunks/button.AB0SOQMn.js.map +0 -1
  361. package/dist/chunks/calendar._oPk_A1C.js.map +0 -1
  362. package/dist/chunks/card.CS34Mi_G.js.map +0 -1
  363. package/dist/chunks/checkbox-group.JRo6xNpe.js.map +0 -1
  364. package/dist/chunks/checkbox-input.DFkwZ4GM.js.map +0 -1
  365. package/dist/chunks/checkbox.DGrG3GN1.js.map +0 -1
  366. package/dist/chunks/chip.CneNX2_j.js.map +0 -1
  367. package/dist/chunks/code-snippet.D5M76Qy6.js.map +0 -1
  368. package/dist/chunks/controls-group.CrzkSu0U.js.map +0 -1
  369. package/dist/chunks/copy.RUoQOydT.js.map +0 -1
  370. package/dist/chunks/country.Q95voxeL.js.map +0 -1
  371. package/dist/chunks/currency.CZVdyZUH.js.map +0 -1
  372. package/dist/chunks/dashed-underline.DkzQkpaf.js.map +0 -1
  373. package/dist/chunks/data-grid-template.DSwj7e1E.js.map +0 -1
  374. package/dist/chunks/data-grid.BEdELRNZ.js +0 -3860
  375. package/dist/chunks/data-grid.BEdELRNZ.js.map +0 -1
  376. package/dist/chunks/date-picker.CAoXTiZR.js.map +0 -1
  377. package/dist/chunks/date-range-picker.DtV4L3L6.js +0 -1225
  378. package/dist/chunks/date-range-picker.DtV4L3L6.js.map +0 -1
  379. package/dist/chunks/dialog-page.C80HOigq.js.map +0 -1
  380. package/dist/chunks/divider.qUOSAbU6.js.map +0 -1
  381. package/dist/chunks/dropdown-default-textbox.Ce5D3ipi.js.map +0 -1
  382. package/dist/chunks/dropdown-tag.B3fptORX.js +0 -230
  383. package/dist/chunks/dropdown-tag.B3fptORX.js.map +0 -1
  384. package/dist/chunks/dropdown.CMOYmQLB.js.map +0 -1
  385. package/dist/chunks/empty-state.D7llINgF.js.map +0 -1
  386. package/dist/chunks/es6.n1ewaW31.js +0 -11
  387. package/dist/chunks/es6.n1ewaW31.js.map +0 -1
  388. package/dist/chunks/events.FNmSWp_P.js +0 -52
  389. package/dist/chunks/events.FNmSWp_P.js.map +0 -1
  390. package/dist/chunks/file-uploader.B_EI2fAc.js.map +0 -1
  391. package/dist/chunks/filter-bar.DoHMLZ4O.js.map +0 -1
  392. package/dist/chunks/focus-trap.CljZgv9i.js.map +0 -1
  393. package/dist/chunks/footer-actions.Bje-DDqw.js.map +0 -1
  394. package/dist/chunks/form-layout-title.rpIO-I9A.js.map +0 -1
  395. package/dist/chunks/grid-layout.BTLE3rac.js.map +0 -1
  396. package/dist/chunks/header-with-views.BUed3ocZ.js.map +0 -1
  397. package/dist/chunks/header.CwKjDgKv.js.map +0 -1
  398. package/dist/chunks/info-icon.DprUQ9fj.js.map +0 -1
  399. package/dist/chunks/info.DcTs-Bzp.js +0 -44
  400. package/dist/chunks/info.DcTs-Bzp.js.map +0 -1
  401. package/dist/chunks/input-field-password.DN0Jro1V.js.map +0 -1
  402. package/dist/chunks/input-field.su5Cq8Dt.js.map +0 -1
  403. package/dist/chunks/inspector.CoZCPfHC.js.map +0 -1
  404. package/dist/chunks/keyboard-navigation.CqgGzfZQ.js.map +0 -1
  405. package/dist/chunks/layout-row.CZNtHaXd.js.map +0 -1
  406. package/dist/chunks/listbox-option-tag.0BK6jWO9.js.map +0 -1
  407. package/dist/chunks/loading-indicator.DEepb9Wl.js.map +0 -1
  408. package/dist/chunks/menu.EtjeOPXX.js +0 -680
  409. package/dist/chunks/menu.EtjeOPXX.js.map +0 -1
  410. package/dist/chunks/modal-fullscreen.DBTnoSX9.js.map +0 -1
  411. package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js +0 -5
  412. package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js.map +0 -1
  413. package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.Cd-mQUJ8.js.map +0 -1
  414. package/dist/chunks/pagination.fYQak4C8.js.map +0 -1
  415. package/dist/chunks/payment-method.eazefwm6.js.map +0 -1
  416. package/dist/chunks/popover.DYgCCUCJ.js +0 -200
  417. package/dist/chunks/popover.DYgCCUCJ.js.map +0 -1
  418. package/dist/chunks/popover.types.V8old-GW.js +0 -6
  419. package/dist/chunks/popover.types.V8old-GW.js.map +0 -1
  420. package/dist/chunks/popper-container.b5h4zYgT.js.map +0 -1
  421. package/dist/chunks/popper-container.types.BCZMbVFD.js +0 -9
  422. package/dist/chunks/popper-container.types.BCZMbVFD.js.map +0 -1
  423. package/dist/chunks/promo-banner.CQp3z2CP.js.map +0 -1
  424. package/dist/chunks/radio-group.H9A5QcNu.js.map +0 -1
  425. package/dist/chunks/radio-input.DKfQGxtp.js.map +0 -1
  426. package/dist/chunks/rich-text-editor.Dx78coVL.js.map +0 -1
  427. package/dist/chunks/search-bar.CUrcP_wf.js.map +0 -1
  428. package/dist/chunks/secondary-nav.j3ddtYoZ.js.map +0 -1
  429. package/dist/chunks/segmented-control.5-vlm8Gt.js.map +0 -1
  430. package/dist/chunks/selection-card-group.B4xpnd-z.js.map +0 -1
  431. package/dist/chunks/sidepanel.DPN__L3Q.js.map +0 -1
  432. package/dist/chunks/sidepanel.keys.R0DKQuYx.js +0 -5
  433. package/dist/chunks/sidepanel.keys.R0DKQuYx.js.map +0 -1
  434. package/dist/chunks/status.types.Bdv2zuuh.js.map +0 -1
  435. package/dist/chunks/step.BtNhPZAf.js.map +0 -1
  436. package/dist/chunks/structured-list-item.BQbEDKhg.js.map +0 -1
  437. package/dist/chunks/tab.CAt51ksU.js.map +0 -1
  438. package/dist/chunks/tag.D3in0-Bp.js.map +0 -1
  439. package/dist/chunks/teleport.CfGWjxe2.js +0 -129
  440. package/dist/chunks/teleport.CfGWjxe2.js.map +0 -1
  441. package/dist/chunks/textarea.BBhN67-I.js +0 -282
  442. package/dist/chunks/textarea.BBhN67-I.js.map +0 -1
  443. package/dist/chunks/timeline-item.CuCII37W.js +0 -566
  444. package/dist/chunks/timeline-item.CuCII37W.js.map +0 -1
  445. package/dist/chunks/toast.CSoCPteL.js.map +0 -1
  446. package/dist/chunks/toggle-button.NQwrfSr1.js +0 -80
  447. package/dist/chunks/toggle-button.NQwrfSr1.js.map +0 -1
  448. package/dist/chunks/toggle.BuKXexA6.js.map +0 -1
  449. package/dist/chunks/tooltip.VYPUHERk.js.map +0 -1
  450. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.Dmf8fGaM.js.map +0 -1
  451. package/dist/chunks/typography.DN5eC5ch.js.map +0 -1
  452. package/dist/chunks/use-cached-selected-values.Dyoz6cUK.js.map +0 -1
  453. package/dist/chunks/use-click-outside.BnhTgpSt.js +0 -14
  454. package/dist/chunks/use-click-outside.BnhTgpSt.js.map +0 -1
  455. package/dist/chunks/use-country-items.Duh4bMqW.js.map +0 -1
  456. package/dist/chunks/warning-filled.AiUbXzzg.js +0 -29
  457. package/dist/chunks/warning-filled.AiUbXzzg.js.map +0 -1
  458. package/dist/styles/legacy.css +0 -2226
@@ -0,0 +1,1353 @@
1
+ import { defineComponent as M, useSlots as Q, computed as _, createBlock as y, openBlock as u, withModifiers as X, normalizeClass as U, createSlots as H, withCtx as h, renderSlot as D, unref as m, createElementVNode as V, createCommentVNode as O, resolveComponent as T, createVNode as E, createTextVNode as j, toDisplayString as G, onMounted as x, onUnmounted as pe, useAttrs as Oe, inject as K, ref as v, toRefs as $e, Transition as ve, createElementBlock as k, Teleport as Ee, mergeProps as Y, resolveDynamicComponent as z, toHandlers as ie, withKeys as N, Fragment as Z, renderList as ee, watch as be, nextTick as te, normalizeStyle as he, provide as Se, normalizeProps as Le, guardReactiveProps as Te } from "vue";
2
+ import { B as L } from "./button.C-MAa6ut.js";
3
+ import { B as ye, D as Me } from "./divider.DnKNNyWB.js";
4
+ import { C as we } from "./cross.B92GxFTY.js";
5
+ import { _ as w } from "./_plugin-vue_export-helper.CHgC5LLL.js";
6
+ import { B as ge, a as re, p as Ne } from "./typography.yBEME_Gu.js";
7
+ import { c as Re, P as Ae } from "./popper-container.CgJzEQ7N.js";
8
+ import { u as ae } from "./use-has-slot.B7eQSabc.js";
9
+ import { u as De } from "./aria-label.CaUURpnB.js";
10
+ import { o as Pe } from "./on-click-outside.D9aY9g8G.js";
11
+ import { g as Fe } from "./generate-uid.NJ8tVoha.js";
12
+ import { u as _e } from "./i18n.B6g5VX0q.js";
13
+ import { C as We } from "./chevron-down.DCQ6ZLaq.js";
14
+ /* empty css */
15
+ import { i as Ce } from "./index.CWuzEfiV.js";
16
+ import { a as Ke, C as ue } from "./chevron-right.Brdj0WlO.js";
17
+ import { a as de, B as Ue } from "./base-button.CjYb5Y8k.js";
18
+ import { t as Ve } from "./truncate.BfIl_-71.js";
19
+ import { o as Ge } from "./resize.Bqks3WUm.js";
20
+ import { g as je } from "./es6.MoTTyETW.js";
21
+ import { B as He } from "./loading-indicator.VHi5tbZa.js";
22
+ import { C as Ye } from "./cross-circle-fill.CYLL7jfC.js";
23
+ import { C as Je } from "./checkmark-circle-fill._6-d40ru.js";
24
+ import "../assets/toggle-button.css";
25
+ var A = /* @__PURE__ */ ((e) => (e.START = "start", e.LOADING = "loading", e.SUCCESS = "success", e.FAIL = "fail", e))(A || {});
26
+ const Ie = {
27
+ "en-US": {
28
+ failed: "Failed",
29
+ succeded: "Succeded"
30
+ },
31
+ "ja-JP": {
32
+ failed: "失敗しました"
33
+ },
34
+ "pt-BR": {
35
+ failed: "Falha"
36
+ }
37
+ }, qe = {
38
+ class: "b-loading-button__icon",
39
+ "data-testid": "loading-button-rotating-icon"
40
+ }, Xe = {
41
+ i18n: { messages: Ie }
42
+ }, ze = /* @__PURE__ */ M({
43
+ ...Xe,
44
+ __name: "loading-button",
45
+ props: {
46
+ /**
47
+ * Reduces sizing of button
48
+ */
49
+ condensed: {
50
+ type: L.props.condensed.type,
51
+ default: !1
52
+ },
53
+ /**
54
+ * Displays loading-button as critical
55
+ */
56
+ critical: {
57
+ type: L.props.critical.type,
58
+ default: !1
59
+ },
60
+ /**
61
+ * Disables button functonality
62
+ */
63
+ disabled: {
64
+ type: L.props.disabled.type,
65
+ default: !1
66
+ },
67
+ /**
68
+ * Sets color set to inverse
69
+ */
70
+ inverse: {
71
+ type: Boolean,
72
+ default: !1
73
+ },
74
+ /**
75
+ * State of the button.
76
+ * @values start, loading, success, fail
77
+ */
78
+ state: {
79
+ type: String,
80
+ default: A.START,
81
+ validator: (e) => Object.values(A).includes(e)
82
+ },
83
+ /**
84
+ * Types of flavour of Button
85
+ */
86
+ variant: {
87
+ type: L.props.variant.type,
88
+ default: "primary",
89
+ validator: L.props.variant.validator
90
+ }
91
+ },
92
+ emits: ["click"],
93
+ setup(e, { emit: t }) {
94
+ const o = e, s = t, d = Q(), p = ae(d), { t: l } = _e({ messages: Ie }), f = _(() => ({
95
+ [`b-loading-button--${o.variant}-${A.LOADING}`]: o.state === A.LOADING && !o.disabled,
96
+ "b-loading-button--loading": o.state === A.LOADING && !o.disabled,
97
+ [`b-loading-button--${o.variant}-${A.SUCCESS}`]: o.state === A.SUCCESS,
98
+ "b-loading-button--inverse": o.inverse
99
+ })), c = _(
100
+ () => o.variant === "primary" && !o.inverse || o.variant !== "primary" && o.inverse
101
+ ), a = _(
102
+ () => o.critical && o.state === A.START || o.state === A.FAIL
103
+ ), i = (r) => {
104
+ r.stopPropagation(), o.state !== A.LOADING && s("click", r);
105
+ };
106
+ return (r, n) => (u(), y(L, {
107
+ critical: a.value,
108
+ variant: e.variant,
109
+ condensed: e.condensed,
110
+ disabled: e.disabled,
111
+ inverse: e.inverse,
112
+ class: U(["b-loading-button", f.value]),
113
+ onClickCapture: X(i, ["stop"])
114
+ }, H({
115
+ default: h(() => [
116
+ D(r.$slots, "default", {}, void 0, !0)
117
+ ]),
118
+ _: 2
119
+ }, [
120
+ e.state === "start" && m(p)("iconLeft") ? {
121
+ name: "iconLeft",
122
+ fn: h(() => [
123
+ D(r.$slots, "iconLeft", {}, void 0, !0)
124
+ ]),
125
+ key: "0"
126
+ } : e.state !== "start" ? {
127
+ name: "iconLeft",
128
+ fn: h(() => [
129
+ V("span", qe, [
130
+ e.state === "fail" ? (u(), y(m(Ye), {
131
+ key: 0,
132
+ "svg-title": m(l)("failed")
133
+ }, null, 8, ["svg-title"])) : e.state === "success" ? (u(), y(m(Je), {
134
+ key: 1,
135
+ "svg-title": m(l)("succeded")
136
+ }, null, 8, ["svg-title"])) : e.state === "loading" ? (u(), y(m(He), {
137
+ key: 2,
138
+ small: "",
139
+ inverse: c.value
140
+ }, null, 8, ["inverse"])) : O("", !0)
141
+ ])
142
+ ]),
143
+ key: "1"
144
+ } : void 0
145
+ ]), 1032, ["critical", "variant", "condensed", "disabled", "inverse", "class"]));
146
+ }
147
+ }), Ze = /* @__PURE__ */ w(ze, [["__scopeId", "data-v-e68a786b"]]), Qe = M({
148
+ name: "bento-popover-dismiss-button",
149
+ components: { BentoButton: L, CrossIcon: we },
150
+ props: {
151
+ onImage: {
152
+ type: Boolean,
153
+ default: !1
154
+ }
155
+ },
156
+ setup(e) {
157
+ return {
158
+ // Values
159
+ conditionalClass: _(() => ({ "b-popover-dismiss-button--on-image": e.onImage }))
160
+ };
161
+ }
162
+ });
163
+ function xe(e, t, o, s, d, p) {
164
+ const l = T("cross-icon"), f = T("bento-button");
165
+ return u(), y(f, {
166
+ class: U(e.conditionalClass),
167
+ variant: "tertiary",
168
+ onClick: t[0] || (t[0] = (c) => e.$emit("click"))
169
+ }, {
170
+ iconLeft: h(() => [
171
+ E(l, { "svg-title": "dismiss" })
172
+ ]),
173
+ _: 1
174
+ }, 8, ["class"]);
175
+ }
176
+ const ce = /* @__PURE__ */ w(Qe, [["render", xe], ["__scopeId", "data-v-df01cfb8"]]), et = M({
177
+ components: { BentoTypography: ge },
178
+ props: {
179
+ /**
180
+ * Indicates if the popover contains an image.
181
+ */
182
+ isImageTitle: { type: Boolean, default: !1 },
183
+ /**
184
+ * Indicates the title you want to give the popover.
185
+ */
186
+ title: { type: String, default: null }
187
+ },
188
+ setup(e) {
189
+ const t = _(() => !e.isImageTitle), o = _(
190
+ () => e.isImageTitle ? re.SUBTITLE : re.BODY
191
+ );
192
+ return {
193
+ // Values
194
+ isStrongest: t,
195
+ titleVariant: o
196
+ };
197
+ }
198
+ });
199
+ function tt(e, t, o, s, d, p) {
200
+ const l = T("bento-typography");
201
+ return u(), y(l, {
202
+ strongest: e.isStrongest,
203
+ variant: e.titleVariant,
204
+ el: "span"
205
+ }, {
206
+ default: h(() => [
207
+ j(G(e.title), 1)
208
+ ]),
209
+ _: 1
210
+ }, 8, ["strongest", "variant"]);
211
+ }
212
+ const nt = /* @__PURE__ */ w(et, [["render", tt]]), ot = (e, t, o = {}) => {
213
+ let s;
214
+ x(() => {
215
+ s = Pe(e, t, o);
216
+ }), pe(() => {
217
+ s && (s(), s = null);
218
+ });
219
+ }, st = Symbol("input field popover injection key"), it = Symbol("input field popover injection key"), at = Symbol("popover offset injection key"), lt = {
220
+ key: 0,
221
+ class: "b-popover__image"
222
+ }, rt = {
223
+ key: 0,
224
+ class: "b-popover__image-dismiss-button"
225
+ }, ut = {
226
+ key: 1,
227
+ class: "b-popover__header"
228
+ }, dt = { class: "b-popover__header-title" }, ct = { key: 0 }, ft = {
229
+ key: 3,
230
+ class: "b-popover__footer"
231
+ }, mt = {}, pt = /* @__PURE__ */ M({
232
+ ...mt,
233
+ __name: "popover",
234
+ props: {
235
+ actions: { default: void 0 },
236
+ actionsLayout: { default: "buttons-end" },
237
+ ariaLabel: { default: void 0 },
238
+ divider: { type: Boolean, default: !1 },
239
+ disableFocusTrap: { type: Boolean, default: !1 },
240
+ dismissible: { type: Boolean, default: !1 },
241
+ fallbackPosition: { default: () => ["bottom-start", "right-start", "top-start", "left-start"] },
242
+ fitContent: { type: Boolean, default: !1 },
243
+ fixedPositioning: { type: Boolean, default: !1 },
244
+ open: { type: Boolean, default: !1 },
245
+ large: { type: Boolean, default: !1 },
246
+ modifiers: { default: void 0 },
247
+ position: { default: "bottom-start" },
248
+ small: { type: Boolean, default: !1 },
249
+ title: { default: void 0 },
250
+ targetElement: {},
251
+ withoutSpace: { type: Boolean, default: !1 },
252
+ overflowVisible: { type: Boolean, default: !1 }
253
+ },
254
+ emits: ["dismiss", "placement"],
255
+ setup(e, { emit: t }) {
256
+ const s = e, d = t, p = Q(), l = Oe(), f = _(() => {
257
+ var g;
258
+ return {
259
+ id: (g = l.id) == null ? void 0 : g.toString(),
260
+ role: (l == null ? void 0 : l.role) === null ? void 0 : Re.POPOVER
261
+ };
262
+ }), c = K(at, 2), a = v(l["aria-label"]), { ariaLabel: i, title: r } = $e(s), n = De({
263
+ ariaLabel: a.value,
264
+ // TODO: take this line away when the aria-label props is removed
265
+ label: i,
266
+ defaultFallback: r
267
+ }), b = K(it, !1) || K(st, !1), C = _(() => ({
268
+ "b-popover--small": s.small && !s.large,
269
+ "b-popover--with-divider": !!s.divider,
270
+ "b-popover--large": s.large && !s.small,
271
+ "b-popover--fit-content": s.fitContent,
272
+ "b-popover--without-space": s.withoutSpace,
273
+ "b-popover--overflow-visible": s.overflowVisible || b
274
+ })), $ = _(() => ({
275
+ "b-popover__content--with-title": !!s.title
276
+ })), R = () => d("dismiss"), P = ae(p);
277
+ return (g, F) => (u(), y(ve, { name: "b-popover__animation" }, {
278
+ default: h(() => [
279
+ g.open ? (u(), y(m(Ae), {
280
+ key: 0,
281
+ id: f.value.id,
282
+ "aria-role": f.value.role,
283
+ "aria-label": m(n),
284
+ arrow: { classes: ["b-popover__arrow"] },
285
+ "disabled-focus-trap": g.disableFocusTrap,
286
+ class: U([C.value, "b-popover"]),
287
+ "fallback-position": g.fallbackPosition,
288
+ "fixed-positioning": g.fixedPositioning,
289
+ offset: [0, m(c)],
290
+ position: g.position,
291
+ "target-element": g.targetElement,
292
+ onPlacement: F[0] || (F[0] = (J) => g.$emit("placement", J))
293
+ }, {
294
+ default: h(() => [
295
+ m(P)("image") ? (u(), k("div", lt, [
296
+ g.dismissible ? (u(), k("div", rt, [
297
+ E(ce, {
298
+ "on-image": "",
299
+ onClick: R
300
+ })
301
+ ])) : O("", !0),
302
+ D(g.$slots, "image", {}, void 0, !0)
303
+ ])) : O("", !0),
304
+ m(r) ? (u(), k("div", ut, [
305
+ V("div", dt, [
306
+ m(P)("headerIcon") ? D(g.$slots, "headerIcon", { key: 0 }, void 0, !0) : O("", !0),
307
+ E(nt, {
308
+ title: m(r),
309
+ "is-image-title": !!m(P)("image")
310
+ }, null, 8, ["title", "is-image-title"])
311
+ ]),
312
+ g.dismissible && !m(P)("image") ? (u(), k("div", ct, [
313
+ E(ce, { onClick: R })
314
+ ])) : O("", !0)
315
+ ])) : O("", !0),
316
+ m(P)("default") ? (u(), k("div", {
317
+ key: 2,
318
+ class: U(["b-popover__content", $.value])
319
+ }, [
320
+ D(g.$slots, "default", {}, void 0, !0)
321
+ ], 2)) : O("", !0),
322
+ g.actions ? (u(), k("div", ft, [
323
+ E(m(qt), {
324
+ actions: g.actions,
325
+ layout: g.actionsLayout
326
+ }, null, 8, ["actions", "layout"])
327
+ ])) : O("", !0)
328
+ ]),
329
+ _: 3
330
+ }, 8, ["id", "aria-role", "aria-label", "disabled-focus-trap", "class", "fallback-position", "fixed-positioning", "offset", "position", "target-element"])) : O("", !0)
331
+ ]),
332
+ _: 3
333
+ }));
334
+ }
335
+ }), vt = /* @__PURE__ */ w(pt, [["__scopeId", "data-v-375290ea"]]), bt = Symbol("modal injection key"), ht = Symbol("sidepanel children element injection key"), yt = Symbol("modal fullscreen children element injection key"), gt = M({
336
+ name: "teleport",
337
+ props: {
338
+ to: {
339
+ type: String,
340
+ default: ""
341
+ },
342
+ where: {
343
+ type: String,
344
+ default: "after"
345
+ },
346
+ disabled: Boolean
347
+ },
348
+ data: () => ({
349
+ childObserver: null,
350
+ nodes: [],
351
+ waiting: !1,
352
+ observer: null,
353
+ parent: null,
354
+ isVue2: Ce
355
+ }),
356
+ computed: {
357
+ classes() {
358
+ return this.disabled ? ["b-teleport"] : ["b-teleport", "b-teleport--hidden"];
359
+ },
360
+ defaultTo() {
361
+ if (this.to)
362
+ return this.to;
363
+ const e = K(bt, "") || K(yt, "") || K(ht, "");
364
+ return e ? `#${e}` : "body";
365
+ }
366
+ },
367
+ watch: {
368
+ to: "maybeMove",
369
+ where: "maybeMove",
370
+ disabled(e) {
371
+ e ? (this.disable(), this.$nextTick(() => {
372
+ this.teardownObserver();
373
+ })) : (this.bootObserver(), this.move());
374
+ }
375
+ },
376
+ mounted() {
377
+ this.nodes = Array.from(this.$el.childNodes), this.disabled || this.bootObserver(), this.maybeMove();
378
+ },
379
+ beforeDestroy() {
380
+ this.nodes = this.getComponentChildrenNode(), this.disable(), this.teardownObserver();
381
+ },
382
+ methods: {
383
+ // Using a fragment is faster because it'll trigger only a single reflow
384
+ // See https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment
385
+ getFragment() {
386
+ const e = document.createDocumentFragment();
387
+ return this.nodes.forEach((t) => e.appendChild(t)), e;
388
+ },
389
+ disable() {
390
+ this.$el.appendChild(this.getFragment()), this.parent = null;
391
+ },
392
+ move() {
393
+ if (this.waiting = !1, this.parent = document.querySelector(this.defaultTo), !this.parent) {
394
+ this.disable(), this.waiting = !0;
395
+ return;
396
+ }
397
+ this.where === "before" ? this.parent.prepend(this.getFragment()) : this.parent.appendChild(this.getFragment());
398
+ },
399
+ maybeMove() {
400
+ this.disabled || this.move();
401
+ },
402
+ onMutations(e) {
403
+ let t = !1;
404
+ for (let o = 0; o < e.length; o++) {
405
+ const s = e[o], d = Array.from(s.addedNodes).filter(
406
+ (p) => !this.nodes.includes(p)
407
+ );
408
+ Array.from(s.removedNodes).includes(this.parent) ? (this.disable(), this.waiting = !this.disabled) : this.waiting && d.length > 0 && (t = !0);
409
+ }
410
+ t && this.move();
411
+ },
412
+ bootObserver() {
413
+ this.observer || (this.observer = new MutationObserver((e) => this.onMutations(e)), this.observer.observe(document.body, {
414
+ childList: !0,
415
+ subtree: !0,
416
+ attributes: !1,
417
+ characterData: !1
418
+ }), !this.childObserver && (this.childObserver = new MutationObserver((e) => {
419
+ e.find((o) => o.target === this.$el) && (this.nodes.forEach((o) => o.parentNode && o.parentNode.removeChild(o)), this.nodes = this.getComponentChildrenNode(), this.maybeMove());
420
+ }), this.childObserver.observe(this.$el, {
421
+ childList: !0,
422
+ subtree: !1,
423
+ attributes: !1,
424
+ characterData: !1
425
+ })));
426
+ },
427
+ teardownObserver() {
428
+ this.observer && (this.observer.disconnect(), this.observer = null), this.childObserver && (this.childObserver.disconnect(), this.childObserver = null);
429
+ },
430
+ getComponentChildrenNode() {
431
+ return [];
432
+ }
433
+ }
434
+ }), _t = /* @__PURE__ */ M({
435
+ ...gt,
436
+ setup(e) {
437
+ return (t, o) => m(Ce) ? (u(), k("div", {
438
+ key: 0,
439
+ class: U(t.classes)
440
+ }, [
441
+ D(t.$slots, "default", {}, void 0, !0)
442
+ ], 2)) : (u(), y(Ee, {
443
+ key: 1,
444
+ to: t.defaultTo,
445
+ where: t.where,
446
+ disabled: t.disabled,
447
+ class: U(t.classes)
448
+ }, [
449
+ D(t.$slots, "default", {}, void 0, !0)
450
+ ], 8, ["to", "where", "disabled", "class"]));
451
+ }
452
+ }), Ct = /* @__PURE__ */ w(_t, [["__scopeId", "data-v-acbda3aa"]]), It = Symbol("menu inverse style injection key"), kt = Symbol(
453
+ "button actions with menu container injection key"
454
+ );
455
+ let fe = 0;
456
+ const Bt = {
457
+ beforeCreate() {
458
+ this.uuid = fe.toString(), fe += 1;
459
+ }
460
+ }, Ot = { key: 0 };
461
+ function $t(e, t, o, s, d, p) {
462
+ return u(), k("svg", Y({ role: "img" }, e.$attrs, {
463
+ class: "ui-assets-icons-16",
464
+ xmlns: "http://www.w3.org/2000/svg",
465
+ width: "16",
466
+ height: "16",
467
+ fill: "none"
468
+ }), [
469
+ e.$attrs["svg-title"] ? (u(), k("title", Ot, G(e.$attrs["svg-title"]), 1)) : O("", !0),
470
+ t[0] || (t[0] = V("path", {
471
+ fill: "#001222",
472
+ 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"
473
+ }, null, -1)),
474
+ t[1] || (t[1] = V("path", {
475
+ fill: "#001222",
476
+ 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"
477
+ }, null, -1)),
478
+ t[2] || (t[2] = V("path", {
479
+ fill: "#001222",
480
+ 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"
481
+ }, null, -1))
482
+ ], 16);
483
+ }
484
+ const Et = /* @__PURE__ */ w(Bt, [["render", $t]]), St = M({
485
+ name: "menu-item",
486
+ components: { BaseButton: Ue, BentoTypography: ge, ChevronRightIcon: Ke },
487
+ props: {
488
+ /**
489
+ * menu-item text that gets displayed as the main label
490
+ */
491
+ text: {
492
+ type: String,
493
+ required: !0
494
+ },
495
+ /**
496
+ * menu-item action that gets executed when the MeniItem is clicked
497
+ */
498
+ handler: {
499
+ type: Function,
500
+ required: !0
501
+ },
502
+ /**
503
+ * menu-item text that gets displayed as the secondary label
504
+ */
505
+ secondaryText: {
506
+ type: String,
507
+ default: null
508
+ },
509
+ /**
510
+ * Optional chevron icon displayed to the right of the menu-item
511
+ */
512
+ chevron: {
513
+ type: Boolean,
514
+ default: !1
515
+ },
516
+ /**
517
+ * Optional icon displayed to the left of the menu-item
518
+ */
519
+ icon: {
520
+ // Types for Vue2 (Object) and Vue3 (Function)
521
+ // TODO: Remove Object when fully migrated to Vue3
522
+ type: [Object, Function],
523
+ default: null
524
+ },
525
+ /**
526
+ * Disables menu-item button functionality
527
+ */
528
+ disabled: {
529
+ type: Boolean,
530
+ default: !1
531
+ },
532
+ /**
533
+ * Displays an indent variant od the menu-item
534
+ */
535
+ indent: {
536
+ type: Boolean,
537
+ default: !1
538
+ },
539
+ /**
540
+ * Displays menu-item button as critical
541
+ */
542
+ critical: {
543
+ type: Boolean,
544
+ default: !1
545
+ },
546
+ /**
547
+ * Renders the text in a bold variant
548
+ */
549
+ isTitle: {
550
+ type: Boolean,
551
+ default: !1
552
+ }
553
+ },
554
+ emits: [de.CLICK],
555
+ setup(e, { emit: t }) {
556
+ const s = _(() => ({
557
+ "b-menu-item--critical": e.critical,
558
+ "b-menu-item--indent": e.indent
559
+ })), d = _(() => Ve(e.secondaryText, 10));
560
+ return {
561
+ // Values
562
+ conditionalClasses: s,
563
+ computedSecondaryText: d,
564
+ // Methods
565
+ onClick: (l) => {
566
+ l.stopPropagation(), e.handler(), t(de.CLICK);
567
+ }
568
+ };
569
+ }
570
+ });
571
+ function Lt(e, t, o, s, d, p) {
572
+ const l = T("bento-typography"), f = T("chevron-right-icon"), c = T("base-button");
573
+ return u(), y(c, {
574
+ class: U(["b-menu-item", e.conditionalClasses]),
575
+ role: "menuitem",
576
+ disabled: e.disabled,
577
+ tabindex: "-1",
578
+ onClick: e.onClick
579
+ }, H({
580
+ default: h(() => [
581
+ E(l, {
582
+ el: "span",
583
+ variant: "body",
584
+ stronger: e.isTitle,
585
+ class: "b-menu-item__primary-text"
586
+ }, {
587
+ default: h(() => [
588
+ j(G(e.text), 1)
589
+ ]),
590
+ _: 1
591
+ }, 8, ["stronger"]),
592
+ e.computedSecondaryText ? (u(), y(l, {
593
+ key: 0,
594
+ el: "span",
595
+ variant: "body",
596
+ class: "b-menu-item__secondary-text"
597
+ }, {
598
+ default: h(() => [
599
+ j(G(e.computedSecondaryText), 1)
600
+ ]),
601
+ _: 1
602
+ })) : O("", !0)
603
+ ]),
604
+ _: 2
605
+ }, [
606
+ e.icon ? {
607
+ name: "iconLeft",
608
+ fn: h(() => [
609
+ (u(), y(z(e.icon), {
610
+ class: "b-menu-item__icon-left",
611
+ "aria-hidden": "true"
612
+ }))
613
+ ]),
614
+ key: "0"
615
+ } : void 0,
616
+ e.chevron ? {
617
+ name: "iconRight",
618
+ fn: h(() => [
619
+ E(f, { "aria-hidden": "true" })
620
+ ]),
621
+ key: "1"
622
+ } : void 0
623
+ ]), 1032, ["class", "disabled", "onClick"]);
624
+ }
625
+ const ke = /* @__PURE__ */ w(St, [["render", Lt], ["__scopeId", "data-v-9dace5ac"]]);
626
+ var W = /* @__PURE__ */ ((e) => (e.BACK = "back", e.CLOSE = "close", e.OPEN = "open", e))(W || {});
627
+ const Tt = Symbol("menu registering injection key"), Mt = {
628
+ name: "bento-menu-list-container"
629
+ }, wt = /* @__PURE__ */ M({
630
+ ...Mt,
631
+ setup(e) {
632
+ const t = v(), o = v({}), s = K(
633
+ Tt,
634
+ !1
635
+ );
636
+ if (s) {
637
+ const { registerMenuContainerElement: d } = s;
638
+ d(t), o.value = {
639
+ mouseleave: s == null ? void 0 : s.menuMouseLeave
640
+ };
641
+ }
642
+ return (d, p) => (u(), k("div", Y({
643
+ ref_key: "menuListContainerRef",
644
+ ref: t,
645
+ class: "b-menu-list-container",
646
+ "data-testid": "menu-list-container"
647
+ }, ie(o.value, !0)), [
648
+ D(d.$slots, "default", {}, void 0, !0)
649
+ ], 16));
650
+ }
651
+ }), Be = /* @__PURE__ */ w(wt, [["__scopeId", "data-v-02a3ca45"]]), le = {
652
+ "en-US": {
653
+ backButton: "Go back",
654
+ menuButton: "Open menu"
655
+ }
656
+ }, Nt = M({
657
+ i18n: { messages: le },
658
+ name: "sub-menu-item-list",
659
+ components: { BentoDivider: ye, MenuItem: ke, MenuListContainer: Be },
660
+ props: {
661
+ items: {
662
+ type: Array,
663
+ required: !0
664
+ },
665
+ title: {
666
+ type: String,
667
+ required: !0
668
+ }
669
+ },
670
+ emits: [W.CLOSE, W.BACK],
671
+ setup(e, { emit: t }) {
672
+ const o = v(null), s = v(0), d = v(e.items.length), p = () => t(W.CLOSE), l = () => t(W.BACK), f = _(() => {
673
+ var n;
674
+ const r = (n = e.items) == null ? void 0 : n.map((b) => ({
675
+ ...b,
676
+ indent: !b.icon,
677
+ isTitle: !1,
678
+ clickHandler: p
679
+ }));
680
+ return [
681
+ {
682
+ text: e.title,
683
+ secondaryText: null,
684
+ critical: !1,
685
+ icon: ue,
686
+ isTitle: !0,
687
+ disabled: !1,
688
+ indent: !1,
689
+ handler: l,
690
+ clickHandler: l,
691
+ addDivider: !0
692
+ },
693
+ ...r
694
+ ];
695
+ }), c = async () => {
696
+ var r, n, b, C, $;
697
+ ($ = (C = (b = (n = (r = o.value) == null ? void 0 : r.children) == null ? void 0 : n[s.value]) == null ? void 0 : b.children) == null ? void 0 : C[0]) == null || $.focus();
698
+ };
699
+ x(async () => {
700
+ setTimeout(() => c(), 150);
701
+ });
702
+ const a = () => {
703
+ s.value > 0 ? (s.value -= 1, f.value[s.value].disabled && a()) : s.value = d.value, c();
704
+ }, i = () => {
705
+ s.value < d.value ? (s.value += 1, f.value[s.value].disabled && i()) : s.value = 0, c();
706
+ };
707
+ return {
708
+ // Enums
709
+ BentoMenuEvent: W,
710
+ // Values
711
+ subMenuItemListRefLocal: o,
712
+ subMenuFocusedIndex: s,
713
+ ChevronLeftIcon: ue,
714
+ computedItems: f,
715
+ // Methods
716
+ closeMenu: p,
717
+ onBackButton: l,
718
+ focusPrevious: a,
719
+ focusNext: i
720
+ };
721
+ }
722
+ });
723
+ function Rt(e, t, o, s, d, p) {
724
+ const l = T("menu-item"), f = T("bento-divider"), c = T("menu-list-container");
725
+ return u(), y(ve, {
726
+ name: "b-sub-menu-item-list__transition",
727
+ appear: ""
728
+ }, {
729
+ default: h(() => [
730
+ E(c, { class: "b-sub-menu-item-list" }, {
731
+ default: h(() => [
732
+ V("ul", {
733
+ ref: "subMenuItemListRefLocal",
734
+ role: "menu",
735
+ class: "b-sub-menu-item-list__list",
736
+ onKeydown: [
737
+ t[0] || (t[0] = N(X((...a) => e.focusNext && e.focusNext(...a), ["stop"]), ["down"])),
738
+ t[1] || (t[1] = N(X((...a) => e.focusPrevious && e.focusPrevious(...a), ["stop"]), ["up"])),
739
+ t[2] || (t[2] = N(X((...a) => e.onBackButton && e.onBackButton(...a), ["stop"]), ["esc"]))
740
+ ]
741
+ }, [
742
+ (u(!0), k(Z, null, ee(e.computedItems, (a, i) => (u(), k("li", {
743
+ key: `sub-menu-item-list-item-${i}`,
744
+ role: "none"
745
+ }, [
746
+ E(l, {
747
+ text: a.text,
748
+ handler: a.handler,
749
+ "secondary-text": a.secondaryText,
750
+ icon: a.icon,
751
+ "is-title": a.isTitle,
752
+ disabled: a.disabled,
753
+ critical: a.critical,
754
+ indent: a.indent,
755
+ tabindex: i === e.subMenuFocusedIndex ? "0" : "-1",
756
+ onClick: a.clickHandler
757
+ }, null, 8, ["text", "handler", "secondary-text", "icon", "is-title", "disabled", "critical", "indent", "tabindex", "onClick"]),
758
+ a.addDivider ? (u(), y(f, {
759
+ key: 0,
760
+ class: "b-sub-menu-item-list__divider"
761
+ })) : O("", !0)
762
+ ]))), 128))
763
+ ], 544)
764
+ ]),
765
+ _: 1
766
+ })
767
+ ]),
768
+ _: 1
769
+ });
770
+ }
771
+ const At = /* @__PURE__ */ w(Nt, [["render", Rt], ["__scopeId", "data-v-56fb6d93"]]);
772
+ function Dt(e, t, o) {
773
+ const p = v(0), l = v(0), f = (a) => {
774
+ if (!a || !a.parentElement)
775
+ return;
776
+ const i = a.parentElement, r = a.cloneNode(!0);
777
+ r.style.position = "absolute", r.style.visibility = "hidden", i.appendChild(r), r.style.width = "max-content";
778
+ const n = r.offsetWidth, b = Math.max(150, Math.min(n, 350));
779
+ p.value = b, r.style.width = `${b}px`;
780
+ const C = r.offsetHeight;
781
+ l.value = C, i.removeChild(r), l.value = C;
782
+ };
783
+ return be([t, o], async ([a]) => {
784
+ var i, r;
785
+ if (a !== null) {
786
+ await te();
787
+ const n = (r = (i = e.value) == null ? void 0 : i[0]) == null ? void 0 : r.$el;
788
+ n && f(n);
789
+ } else
790
+ p.value = 0, l.value = 0;
791
+ }), { computedStyle: _(() => {
792
+ const a = { width: "max-content" };
793
+ return o.value && (l.value > 0 && (a.height = `${l.value}px`), p.value > 0 && (a.width = `${p.value}px`)), a;
794
+ }) };
795
+ }
796
+ const Pt = M({
797
+ name: "menu-item-list",
798
+ components: { BentoDivider: ye, MenuItem: ke, MenuListContainer: Be, SubMenuItemList: At },
799
+ props: {
800
+ /**
801
+ * The data to be displayed in the list
802
+ */
803
+ data: {
804
+ type: Array,
805
+ required: !0
806
+ },
807
+ /**
808
+ * Displays the menu-items of the list in the indent variant. Only applies to elements that don't have an icon to their left.
809
+ */
810
+ indentItems: {
811
+ type: Boolean,
812
+ default: !1
813
+ },
814
+ /**
815
+ * 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.
816
+ */
817
+ focusLastElement: {
818
+ type: Boolean,
819
+ default: !1
820
+ },
821
+ /**
822
+ * If set to true, closes the menu when an item is clicked.
823
+ */
824
+ closeMenuOnItemSelect: {
825
+ type: Boolean,
826
+ default: !0
827
+ }
828
+ },
829
+ emits: [W.CLOSE, "menu-item-click"],
830
+ setup(e, { emit: t, expose: o }) {
831
+ const s = v(null), d = v(null), p = v(null), l = v(null), f = v(!1), c = v(null), a = v(e.focusLastElement ? e.data.length - 1 : 0), i = v(0), r = v(e.data.length - 1), n = _(() => e.data.some((B) => B.icon)), b = _(() => e.indentItems || n.value ? e.data.map((B) => {
832
+ let S = !1;
833
+ return B.icon || (S = !0), {
834
+ ...B,
835
+ indent: S
836
+ };
837
+ }) : e.data), C = async () => {
838
+ var B, S, I;
839
+ await te(), (I = (S = (B = d.value) == null ? void 0 : B.children[a.value]) == null ? void 0 : S.children[0]) == null || I.focus();
840
+ }, $ = () => t(W.CLOSE), R = (B, S) => {
841
+ if (B.items) {
842
+ c.value = S, f.value = !0;
843
+ return;
844
+ }
845
+ c.value = S, f.value = !1, !B.skipClose && e.closeMenuOnItemSelect !== !1 && $(), t("menu-item-click");
846
+ }, P = () => {
847
+ a.value > 0 ? (a.value -= 1, b.value[a.value].disabled && P()) : a.value = r.value, C();
848
+ }, g = () => {
849
+ a.value < r.value ? (a.value += 1, b.value[a.value].disabled && g()) : a.value = 0, C();
850
+ }, F = (B, S) => {
851
+ var I;
852
+ (I = B == null ? void 0 : B.items) != null && I.length && (c.value = S, f.value = !0);
853
+ }, J = () => {
854
+ c.value && f.value && (c.value = null, f.value = !1);
855
+ }, ne = () => {
856
+ f.value = !1, c.value = null, C();
857
+ };
858
+ o({
859
+ focusItem: C
860
+ });
861
+ const { computedStyle: oe } = Dt(l, c, f);
862
+ return {
863
+ // Values
864
+ menuItemListRef: d,
865
+ menuItemListWrapperRef: p,
866
+ subMenuItemListRef: l,
867
+ menuItemRef: s,
868
+ computedData: b,
869
+ computedStyle: oe,
870
+ focusedIndex: a,
871
+ subMenuFocusedIndex: i,
872
+ showSubMenu: f,
873
+ visibleSubMenuIndex: c,
874
+ // Methods
875
+ menuItemClick: R,
876
+ closeMenu: $,
877
+ focusPrevious: P,
878
+ focusNext: g,
879
+ focusRight: F,
880
+ focusLeft: J,
881
+ onBackButton: ne
882
+ };
883
+ }
884
+ }), Ft = ["onKeydown"];
885
+ function Wt(e, t, o, s, d, p) {
886
+ const l = T("menu-item"), f = T("bento-divider"), c = T("sub-menu-item-list"), a = T("menu-list-container");
887
+ return u(), y(a, {
888
+ ref: "menuItemListWrapperRef",
889
+ style: he(e.computedStyle)
890
+ }, {
891
+ default: h(() => [
892
+ V("ul", {
893
+ ref: "menuItemListRef",
894
+ class: "b-menu-item-list",
895
+ role: "menu",
896
+ onKeydown: [
897
+ t[1] || (t[1] = N((...i) => e.focusNext && e.focusNext(...i), ["down"])),
898
+ t[2] || (t[2] = N((...i) => e.focusPrevious && e.focusPrevious(...i), ["up"])),
899
+ t[3] || (t[3] = N((...i) => e.closeMenu && e.closeMenu(...i), ["esc"])),
900
+ t[4] || (t[4] = N((...i) => e.closeMenu && e.closeMenu(...i), ["tab"]))
901
+ ]
902
+ }, [
903
+ (u(!0), k(Z, null, ee(e.computedData, (i, r) => {
904
+ var n, b, C, $;
905
+ return u(), k("li", {
906
+ key: `menu-item-${r}`,
907
+ ref_for: !0,
908
+ ref: "menuItemRef",
909
+ class: "b-menu-item-list__item",
910
+ role: "none",
911
+ onKeydown: [
912
+ N((R) => e.focusRight(i, r), ["right"]),
913
+ t[0] || (t[0] = N((R) => e.focusLeft(), ["left"]))
914
+ ]
915
+ }, [
916
+ E(l, {
917
+ text: i.text,
918
+ handler: (n = i.items) != null && n.length ? () => null : i.handler,
919
+ "secondary-text": i.secondaryText,
920
+ icon: i.icon,
921
+ chevron: !!((b = i.items) != null && b.length),
922
+ disabled: i.disabled,
923
+ critical: i.critical,
924
+ indent: i.indent,
925
+ tabindex: r === e.subMenuFocusedIndex ? "0" : "-1",
926
+ "aria-haspopup": !!((C = i.items) != null && C.length),
927
+ "aria-expanded": e.showSubMenu && e.visibleSubMenuIndex === r,
928
+ onClick: (R) => e.menuItemClick(i, r)
929
+ }, null, 8, ["text", "handler", "secondary-text", "icon", "chevron", "disabled", "critical", "indent", "tabindex", "aria-haspopup", "aria-expanded", "onClick"]),
930
+ i.addDivider ? (u(), y(f, {
931
+ key: 0,
932
+ class: "b-menu-item-list__divider"
933
+ })) : O("", !0),
934
+ ($ = i.items) != null && $.length && e.showSubMenu && e.visibleSubMenuIndex === r ? (u(), y(c, {
935
+ key: 1,
936
+ ref_for: !0,
937
+ ref: "subMenuItemListRef",
938
+ items: i.items,
939
+ title: i.text,
940
+ onBack: e.onBackButton,
941
+ onClose: e.closeMenu
942
+ }, null, 8, ["items", "title", "onBack", "onClose"])) : O("", !0)
943
+ ], 40, Ft);
944
+ }), 128))
945
+ ], 544)
946
+ ]),
947
+ _: 1
948
+ }, 8, ["style"]);
949
+ }
950
+ const Kt = /* @__PURE__ */ w(Pt, [["render", Wt], ["__scopeId", "data-v-6ea090eb"]]), Ut = {
951
+ i18n: { messages: le },
952
+ name: "bento-menu"
953
+ }, Vt = /* @__PURE__ */ M({
954
+ ...Ut,
955
+ props: {
956
+ button: { default: () => ({
957
+ variant: "secondary"
958
+ }) },
959
+ closeMenuOnItemSelect: { type: Boolean, default: !0 },
960
+ data: {},
961
+ disableArrowDownOpeningMenu: { type: Boolean, default: !1 },
962
+ menuPosition: { default: "bottom-start" },
963
+ menuFixedPositioning: { type: Boolean, default: !1 },
964
+ menuWidth: { default: null },
965
+ revertFocusToButton: { type: Boolean, default: !0 },
966
+ teleport: { type: Boolean, default: !1 },
967
+ closeOnClickOutsideOptions: { default: void 0 }
968
+ },
969
+ emits: ["menu-item-click", "click-outside"],
970
+ setup(e, { expose: t, emit: o }) {
971
+ var S;
972
+ const s = e, d = o, p = Q(), l = ae(p), { t: f } = _e({ messages: le }), c = v(null), a = v(null), i = v(!1), r = v(!1), n = v(null), b = Fe("menu"), C = K(It, v(!1));
973
+ Se(Me, C);
974
+ const $ = _(() => ({
975
+ "b-menu--inverse": C.value
976
+ })), R = _(() => s.menuWidth ? { width: `${s.menuWidth}px` } : null), P = _(() => {
977
+ if (s != null && s.button)
978
+ return {
979
+ variant: "secondary",
980
+ ...s.button
981
+ };
982
+ }), g = () => {
983
+ i.value = !0, d(W.OPEN);
984
+ }, F = async (I = s.revertFocusToButton) => {
985
+ var q, se;
986
+ i.value && (i.value = !1, I && (await te(), (se = (q = c.value) == null ? void 0 : q.$el) == null || se.focus()), d(W.CLOSE));
987
+ }, J = (I) => {
988
+ I.stopPropagation(), i.value ? F() : g();
989
+ }, ne = (I) => {
990
+ I.preventDefault(), r.value = !1, s.disableArrowDownOpeningMenu || g();
991
+ }, oe = (I) => {
992
+ I.preventDefault(), r.value = !0, g();
993
+ }, B = () => {
994
+ d("menu-item-click");
995
+ };
996
+ return ot(
997
+ n,
998
+ () => {
999
+ F(), d("click-outside");
1000
+ },
1001
+ {
1002
+ ...s.closeOnClickOutsideOptions,
1003
+ ignore: [c, ...((S = s.closeOnClickOutsideOptions) == null ? void 0 : S.ignore) ?? []]
1004
+ }
1005
+ ), t({
1006
+ /**
1007
+ * Control to enable programmatic closing of the menu
1008
+ */
1009
+ closeMenu: F
1010
+ }), x(() => {
1011
+ l("iconRight") && Ne(
1012
+ '"bento-menu" no longer supports the "iconRight" slot. The right-aligned icon is now fixed by design.'
1013
+ );
1014
+ }), (I, q) => (u(), k("div", {
1015
+ class: U([$.value, "b-menu"]),
1016
+ "data-testid": "menu",
1017
+ onKeydown: [
1018
+ N(ne, ["down"]),
1019
+ N(oe, ["up"]),
1020
+ q[0] || (q[0] = N((se) => F(), ["esc"]))
1021
+ ]
1022
+ }, [
1023
+ E(m(Zt), Y({
1024
+ ref_key: "menuButtonRef",
1025
+ ref: c,
1026
+ class: "b-menu__toggle-button",
1027
+ "aria-haspopup": "true"
1028
+ }, P.value, {
1029
+ "aria-controls": i.value ? m(b) : null,
1030
+ toggled: i.value,
1031
+ inverse: m(C),
1032
+ onClick: J
1033
+ }), H({ _: 2 }, [
1034
+ !m(l)("default") || m(l)("iconLeft") ? {
1035
+ name: "iconLeft",
1036
+ fn: h(() => [
1037
+ D(I.$slots, "iconLeft", {}, () => [
1038
+ E(m(Et), {
1039
+ title: m(f)("menuButton")
1040
+ }, null, 8, ["title"])
1041
+ ], !0)
1042
+ ]),
1043
+ key: "0"
1044
+ } : void 0,
1045
+ m(l)("default") ? {
1046
+ name: "default",
1047
+ fn: h(() => [
1048
+ D(I.$slots, "default", {}, void 0, !0)
1049
+ ]),
1050
+ key: "1"
1051
+ } : void 0,
1052
+ m(l)("default") ? {
1053
+ name: "iconRight",
1054
+ fn: h(() => [
1055
+ E(m(We))
1056
+ ]),
1057
+ key: "2"
1058
+ } : void 0
1059
+ ]), 1040, ["aria-controls", "toggled", "inverse"]),
1060
+ c.value ? (u(), y(m(Ct), {
1061
+ key: 0,
1062
+ disabled: !I.teleport
1063
+ }, {
1064
+ default: h(() => [
1065
+ c.value ? (u(), y(m(vt), {
1066
+ key: 0,
1067
+ id: m(b),
1068
+ ref_key: "popoverRef",
1069
+ ref: n,
1070
+ role: null,
1071
+ open: i.value,
1072
+ class: "b-menu__popover",
1073
+ style: he(R.value),
1074
+ "target-element": c.value,
1075
+ position: I.menuPosition,
1076
+ "fixed-positioning": I.menuFixedPositioning,
1077
+ "fallback-position": [
1078
+ "bottom-start",
1079
+ "bottom-end",
1080
+ "top-start",
1081
+ "top-end",
1082
+ "right-start",
1083
+ "right-end",
1084
+ "left-start",
1085
+ "left-end"
1086
+ ],
1087
+ teleport: I.teleport,
1088
+ "without-space": ""
1089
+ }, {
1090
+ default: h(() => [
1091
+ E(m(Kt), {
1092
+ ref_key: "menuItemListRef",
1093
+ ref: a,
1094
+ "close-menu-on-item-select": I.closeMenuOnItemSelect,
1095
+ data: I.data,
1096
+ "focus-last-element": r.value,
1097
+ onClose: F,
1098
+ onMenuItemClick: B
1099
+ }, null, 8, ["close-menu-on-item-select", "data", "focus-last-element"])
1100
+ ]),
1101
+ _: 1
1102
+ }, 8, ["id", "open", "style", "target-element", "position", "fixed-positioning", "teleport"])) : O("", !0)
1103
+ ]),
1104
+ _: 1
1105
+ }, 8, ["disabled"])) : O("", !0)
1106
+ ], 34));
1107
+ }
1108
+ }), Gt = /* @__PURE__ */ w(Vt, [["__scopeId", "data-v-20a40679"]]), jt = 242, me = parseInt(je, 10), Ht = (e, t, o) => {
1109
+ const s = v(0);
1110
+ let d = null;
1111
+ const { buttonActionsWithMenu: p, menu: l, stackButtons: f } = K(kt, {
1112
+ buttonActionsWithMenu: v(null),
1113
+ menu: v(null),
1114
+ stackButtons: v(!1)
1115
+ }), c = _(() => p.value ?? e.value), a = _(() => l.value ? [...t.value, l.value.$el] : t.value), i = (r) => {
1116
+ var C;
1117
+ const n = (C = a.value) == null ? void 0 : C.reduce(
1118
+ ($, R) => $ + R.clientWidth + me,
1119
+ -me - 1
1120
+ ), b = c.value.clientWidth;
1121
+ return r && (s.value = b >= jt && !f.value ? n : 0), s.value > b;
1122
+ };
1123
+ return be(
1124
+ () => o,
1125
+ () => {
1126
+ te(() => {
1127
+ f.value = i(!0);
1128
+ });
1129
+ },
1130
+ { deep: !0 }
1131
+ ), x(() => {
1132
+ d = Ge(c.value, () => {
1133
+ f.value = i(s.value === 0);
1134
+ });
1135
+ }), pe(() => {
1136
+ d == null || d.disconnect();
1137
+ }), f;
1138
+ }, Yt = {}, Jt = /* @__PURE__ */ M({
1139
+ ...Yt,
1140
+ __name: "button-actions",
1141
+ props: {
1142
+ actions: {},
1143
+ inverse: { type: Boolean, default: !1 },
1144
+ layout: { default: "buttons-end" }
1145
+ },
1146
+ setup(e) {
1147
+ const t = e, o = v(null), s = v(null), d = Ht(o, s, t.actions), p = _(() => t.actions.slice().reverse()), l = (i) => {
1148
+ const r = t.actions.length - 1;
1149
+ return i === r ? "primary" : "secondary";
1150
+ }, f = _(() => ({
1151
+ [`b-button-actions--${t.layout}`]: !0,
1152
+ "b-button-actions--stacked-buttons": d.value
1153
+ })), c = (i) => (i == null ? void 0 : i.event) !== void 0 ? {
1154
+ click: i.event
1155
+ } : {}, a = (i) => i.iconOnly && (i.iconLeft || i.iconRight || i.icon);
1156
+ return (i, r) => (u(), k("div", {
1157
+ ref_key: "buttonActions",
1158
+ ref: o,
1159
+ class: "b-button-actions"
1160
+ }, [
1161
+ V("div", {
1162
+ class: U(["b-button-actions__container-wrapper", f.value]),
1163
+ role: "group"
1164
+ }, [
1165
+ (u(!0), k(Z, null, ee(p.value, (n, b) => (u(), k("div", {
1166
+ key: b,
1167
+ ref_for: !0,
1168
+ ref_key: "buttons",
1169
+ ref: s,
1170
+ class: "b-button-actions__button-wrapper"
1171
+ }, [
1172
+ n.data ? (u(), y(m(Gt), {
1173
+ key: 0,
1174
+ ref_for: !0,
1175
+ ref: n.elementRef,
1176
+ data: n.data,
1177
+ "close-menu-on-item-select": n.closeMenuOnItemSelect,
1178
+ "close-on-click-outside-options": n.closeOnClickOutsideOptions,
1179
+ "disable-arrow-down-opening-menu": n.disableArrowDownOpeningMenu,
1180
+ "menu-position": n.menuPosition,
1181
+ "menu-fixed-positioning": n.menuFixedPositioning,
1182
+ "menu-width": n.menuWidth,
1183
+ "revert-focus-to-button": n.revertFocusToButton,
1184
+ teleport: n.teleport
1185
+ }, H({ _: 2 }, [
1186
+ n.icon || n.iconLeft ? {
1187
+ name: "iconLeft",
1188
+ fn: h(() => [
1189
+ (u(), y(z(n.icon || n.iconLeft), {
1190
+ "svg-title": n.title
1191
+ }, null, 8, ["svg-title"]))
1192
+ ]),
1193
+ key: "0"
1194
+ } : void 0,
1195
+ a(n) ? void 0 : {
1196
+ name: "default",
1197
+ fn: h(() => [
1198
+ j(G(n.title), 1)
1199
+ ]),
1200
+ key: "1"
1201
+ }
1202
+ ]), 1032, ["data", "close-menu-on-item-select", "close-on-click-outside-options", "disable-arrow-down-opening-menu", "menu-position", "menu-fixed-positioning", "menu-width", "revert-focus-to-button", "teleport"])) : (u(), k(Z, { key: 1 }, [
1203
+ n.state ? (u(), y(m(Ze), Y({
1204
+ key: 0,
1205
+ ref_for: !0,
1206
+ ref: n.elementRef,
1207
+ condensed: n.condensed,
1208
+ critical: n.critical,
1209
+ disabled: n.disabled,
1210
+ inverse: i.inverse,
1211
+ state: n.state,
1212
+ variant: n.variant || l(b)
1213
+ }, ie(c(n))), {
1214
+ default: h(() => [
1215
+ j(G(n.title), 1)
1216
+ ]),
1217
+ _: 2
1218
+ }, 1040, ["condensed", "critical", "disabled", "inverse", "state", "variant"])) : (u(), y(L, Y({
1219
+ key: 1,
1220
+ ref_for: !0,
1221
+ ref: n.elementRef,
1222
+ condensed: n.condensed,
1223
+ critical: n.critical,
1224
+ disabled: n.disabled,
1225
+ inverse: i.inverse,
1226
+ link: n.link,
1227
+ variant: n.variant || l(b)
1228
+ }, ie(c(n))), H({ _: 2 }, [
1229
+ n.icon || n.iconLeft ? {
1230
+ name: "iconLeft",
1231
+ fn: h(() => [
1232
+ (u(), y(z(n.icon || n.iconLeft), {
1233
+ "svg-title": n.title
1234
+ }, null, 8, ["svg-title"]))
1235
+ ]),
1236
+ key: "0"
1237
+ } : void 0,
1238
+ a(n) ? void 0 : {
1239
+ name: "default",
1240
+ fn: h(() => [
1241
+ j(G(n.title), 1)
1242
+ ]),
1243
+ key: "1"
1244
+ },
1245
+ n.iconRight ? {
1246
+ name: "iconRight",
1247
+ fn: h(() => [
1248
+ (u(), y(z(n.iconRight), {
1249
+ "svg-title": n.title
1250
+ }, null, 8, ["svg-title"]))
1251
+ ]),
1252
+ key: "2"
1253
+ } : void 0
1254
+ ]), 1040, ["condensed", "critical", "disabled", "inverse", "link", "variant"]))
1255
+ ], 64))
1256
+ ]))), 128))
1257
+ ], 2)
1258
+ ], 512));
1259
+ }
1260
+ }), qt = /* @__PURE__ */ w(Jt, [["__scopeId", "data-v-c309abee"]]), Xt = {}, zt = /* @__PURE__ */ M({
1261
+ ...Xt,
1262
+ __name: "toggle-button",
1263
+ props: {
1264
+ /**
1265
+ * Reduces sizing of button
1266
+ */
1267
+ condensed: {
1268
+ type: L.props.condensed.type,
1269
+ default: !1
1270
+ },
1271
+ /**
1272
+ * Disables button functonality
1273
+ */
1274
+ disabled: {
1275
+ type: L.props.disabled.type,
1276
+ default: !1
1277
+ },
1278
+ /**
1279
+ * Sets color set to inverse
1280
+ */
1281
+ inverse: {
1282
+ type: Boolean,
1283
+ default: !1
1284
+ },
1285
+ /**
1286
+ * Types of flavour of Button
1287
+ * @values primary, secondary, tertiary
1288
+ */
1289
+ variant: {
1290
+ type: L.props.variant.type,
1291
+ default: "primary",
1292
+ validator: L.props.variant.validator
1293
+ },
1294
+ /**
1295
+ * The state of the button whether it is toggled or not.
1296
+ */
1297
+ toggled: {
1298
+ type: Boolean,
1299
+ default: !1
1300
+ }
1301
+ },
1302
+ emits: ["click", "update:toggled"],
1303
+ setup(e, { emit: t }) {
1304
+ const o = e, s = t, d = _(
1305
+ () => o.variant === "tertiary" ? "tertiary-with-background" : o.variant
1306
+ ), p = _(() => ({
1307
+ "b-toggle-button--condensed": o == null ? void 0 : o.condensed,
1308
+ [`b-toggle-button--${d.value}-toggled`]: o.toggled,
1309
+ "b-toggle-button--inverse": o.inverse
1310
+ })), l = (a) => {
1311
+ a.stopPropagation(), o != null && o.disabled || (s("click", a), s("update:toggled", !o.toggled));
1312
+ }, f = Q(), c = (a) => ({ key: a });
1313
+ return (a, i) => (u(), y(L, Y({ class: "b-toggle-button" }, a.$attrs, {
1314
+ "aria-expanded": `${e.toggled}`,
1315
+ "aria-pressed": `${e.toggled}`,
1316
+ condensed: e.condensed,
1317
+ class: p.value,
1318
+ disabled: e.disabled,
1319
+ inverse: e.inverse,
1320
+ variant: d.value,
1321
+ onClickCapture: X(l, ["stop"])
1322
+ }), H({ _: 2 }, [
1323
+ ee(m(f), (r, n) => ({
1324
+ name: n,
1325
+ fn: h(() => [
1326
+ D(a.$slots, n, Le(Te(c(n))), void 0, !0)
1327
+ ])
1328
+ }))
1329
+ ]), 1040, ["aria-expanded", "aria-pressed", "condensed", "class", "disabled", "inverse", "variant"]));
1330
+ }
1331
+ }), Zt = /* @__PURE__ */ w(zt, [["__scopeId", "data-v-f1b10e5f"]]);
1332
+ export {
1333
+ qt as B,
1334
+ Tt as D,
1335
+ st as I,
1336
+ It as M,
1337
+ Et as O,
1338
+ at as P,
1339
+ ht as S,
1340
+ Ze as a,
1341
+ A as b,
1342
+ Zt as c,
1343
+ Ct as d,
1344
+ kt as e,
1345
+ Gt as f,
1346
+ W as g,
1347
+ vt as h,
1348
+ yt as i,
1349
+ bt as j,
1350
+ it as k,
1351
+ ot as u
1352
+ };
1353
+ //# sourceMappingURL=toggle-button.CQl9HneO.js.map