@adyen/bento-vue3 1.68.2 → 1.69.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 (434) hide show
  1. package/dist/@types/components.d.ts +1 -0
  2. package/dist/@types/index.d.ts +752 -1177
  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/base-button.css +1 -1
  9. package/dist/assets/base-modal.css +1 -1
  10. package/dist/assets/button-actions-with-menu.css +1 -1
  11. package/dist/assets/button.css +1 -1
  12. package/dist/assets/calendar.css +1 -1
  13. package/dist/assets/card.css +1 -1
  14. package/dist/assets/checkbox-group.css +1 -1
  15. package/dist/assets/checkbox-input.css +1 -1
  16. package/dist/assets/checkbox.css +1 -1
  17. package/dist/assets/chip.css +1 -1
  18. package/dist/assets/copy.css +1 -1
  19. package/dist/assets/country.css +1 -1
  20. package/dist/assets/currency.css +1 -1
  21. package/dist/assets/dashed-underline.css +1 -1
  22. package/dist/assets/data-grid-template.css +1 -1
  23. package/dist/assets/data-grid.css +1 -1
  24. package/dist/assets/date-picker.css +1 -1
  25. package/dist/assets/date-range-picker.css +1 -1
  26. package/dist/assets/dialog-page.css +1 -1
  27. package/dist/assets/divider.css +1 -1
  28. package/dist/assets/dropdown-default-textbox.css +1 -1
  29. package/dist/assets/dropdown-tag.css +1 -1
  30. package/dist/assets/dropdown.css +1 -1
  31. package/dist/assets/empty-state.css +1 -1
  32. package/dist/assets/file-uploader.css +1 -1
  33. package/dist/assets/filter-bar.css +1 -1
  34. package/dist/assets/focus-trap.css +1 -1
  35. package/dist/assets/footer-actions.css +1 -1
  36. package/dist/assets/form-layout-title.css +1 -1
  37. package/dist/assets/grid-layout.css +1 -1
  38. package/dist/assets/header-meta.css +1 -1
  39. package/dist/assets/header-with-views.css +1 -1
  40. package/dist/assets/header.css +1 -1
  41. package/dist/assets/info-icon.css +1 -1
  42. package/dist/assets/input-field-password.css +1 -1
  43. package/dist/assets/input-field-phone-number.css +1 -1
  44. package/dist/assets/input-field.css +1 -1
  45. package/dist/assets/inspector.css +1 -1
  46. package/dist/assets/layout-row.css +1 -1
  47. package/dist/assets/listbox-option-tag.css +1 -1
  48. package/dist/assets/loading-indicator.css +1 -1
  49. package/dist/assets/modal-fullscreen.css +1 -1
  50. package/dist/assets/pagination.css +1 -1
  51. package/dist/assets/payment-method.css +1 -1
  52. package/dist/assets/popper-container.css +1 -1
  53. package/dist/assets/promo-banner.css +1 -1
  54. package/dist/assets/radio-group.css +1 -1
  55. package/dist/assets/radio-input.css +1 -1
  56. package/dist/assets/rich-text-editor.css +1 -1
  57. package/dist/assets/search-bar.css +1 -1
  58. package/dist/assets/secondary-nav.css +1 -1
  59. package/dist/assets/segmented-control.css +1 -1
  60. package/dist/assets/selection-card-group.css +1 -1
  61. package/dist/assets/sidepanel.css +1 -1
  62. package/dist/assets/status.css +1 -1
  63. package/dist/assets/step.css +1 -1
  64. package/dist/assets/structured-list-item.css +1 -1
  65. package/dist/assets/tab.css +1 -1
  66. package/dist/assets/tag.css +1 -1
  67. package/dist/assets/textarea.css +1 -1
  68. package/dist/assets/timeline-item.css +1 -1
  69. package/dist/assets/toast.css +1 -1
  70. package/dist/assets/toggle-button.css +1 -1
  71. package/dist/assets/toggle.css +1 -1
  72. package/dist/assets/tooltip.css +1 -1
  73. package/dist/assets/tutorial.css +1 -1
  74. package/dist/assets/typography.css +1 -1
  75. package/dist/assets/use-cached-selected-values.css +1 -1
  76. package/dist/avatar.js +1 -1
  77. package/dist/button.js +9 -9
  78. package/dist/card.js +1 -1
  79. package/dist/checkbox.js +2 -2
  80. package/dist/chip.js +1 -1
  81. package/dist/chunks/{accordion-item.DOnW0OnU.js → accordion-item.H062lKz1.js} +3 -3
  82. package/dist/chunks/accordion-item.H062lKz1.js.map +1 -0
  83. package/dist/chunks/{action-bar.CflF49oL.js → action-bar.CbO7oNER.js} +7 -8
  84. package/dist/chunks/action-bar.CbO7oNER.js.map +1 -0
  85. package/dist/chunks/{alert.DvleqX0i.js → alert.DFSdD4jX.js} +3 -3
  86. package/dist/chunks/{alert.DvleqX0i.js.map → alert.DFSdD4jX.js.map} +1 -1
  87. package/dist/chunks/aria-label.CaUURpnB.js.map +1 -1
  88. package/dist/chunks/{avatar.B0-9jC6H.js → avatar.BtxoYBvq.js} +2 -2
  89. package/dist/chunks/avatar.BtxoYBvq.js.map +1 -0
  90. package/dist/chunks/{base-button.DdNFlbgH.js → base-button.Bcwm87OM.js} +19 -19
  91. package/dist/chunks/base-button.Bcwm87OM.js.map +1 -0
  92. package/dist/chunks/{base-modal.C3_r3rmc.js → base-modal.7vdoT8zp.js} +21 -21
  93. package/dist/chunks/base-modal.7vdoT8zp.js.map +1 -0
  94. package/dist/chunks/button-actions-with-menu.zdsGh7un.js +93 -0
  95. package/dist/chunks/button-actions-with-menu.zdsGh7un.js.map +1 -0
  96. package/dist/chunks/button-actions.types.BptAXjD8.js +8 -0
  97. package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -0
  98. package/dist/chunks/{button.AB0SOQMn.js → button.wMNce6wZ.js} +4 -4
  99. package/dist/chunks/button.wMNce6wZ.js.map +1 -0
  100. package/dist/chunks/{calendar._oPk_A1C.js → calendar.CYrrR8wd.js} +10 -11
  101. package/dist/chunks/calendar.CYrrR8wd.js.map +1 -0
  102. package/dist/chunks/{card.CS34Mi_G.js → card.CNYYIpQW.js} +6 -5
  103. package/dist/chunks/card.CNYYIpQW.js.map +1 -0
  104. package/dist/chunks/{checkbox-group.JRo6xNpe.js → checkbox-group.fX5_d3XZ.js} +6 -6
  105. package/dist/chunks/checkbox-group.fX5_d3XZ.js.map +1 -0
  106. package/dist/chunks/{checkbox-input.DFkwZ4GM.js → checkbox-input.B1hV3DU-.js} +2 -2
  107. package/dist/chunks/checkbox-input.B1hV3DU-.js.map +1 -0
  108. package/dist/chunks/{checkbox.DGrG3GN1.js → checkbox.C62ek8A8.js} +27 -27
  109. package/dist/chunks/checkbox.C62ek8A8.js.map +1 -0
  110. package/dist/chunks/{chip.CneNX2_j.js → chip.CoBGGkn7.js} +11 -11
  111. package/dist/chunks/chip.CoBGGkn7.js.map +1 -0
  112. package/dist/chunks/{code-snippet.D5M76Qy6.js → code-snippet.CrKl93Wq.js} +8 -8
  113. package/dist/chunks/code-snippet.CrKl93Wq.js.map +1 -0
  114. package/dist/chunks/{controls-group.CrzkSu0U.js → controls-group.2xftPPd7.js} +3 -3
  115. package/dist/chunks/{controls-group.CrzkSu0U.js.map → controls-group.2xftPPd7.js.map} +1 -1
  116. package/dist/chunks/{copy.RUoQOydT.js → copy.-8xjj6Hr.js} +17 -18
  117. package/dist/chunks/copy.-8xjj6Hr.js.map +1 -0
  118. package/dist/chunks/{country.Q95voxeL.js → country.BdqTkF7A.js} +8 -8
  119. package/dist/chunks/country.BdqTkF7A.js.map +1 -0
  120. package/dist/chunks/country.types.C0Q_hhgJ.js.map +1 -1
  121. package/dist/chunks/{currency.CZVdyZUH.js → currency.XiEfa4LT.js} +3 -3
  122. package/dist/chunks/currency.XiEfa4LT.js.map +1 -0
  123. package/dist/chunks/{dashboard-section.Bhd5Lsy2.js → dashboard-section.Di16gWGI.js} +4 -4
  124. package/dist/chunks/{dashboard-section.Bhd5Lsy2.js.map → dashboard-section.Di16gWGI.js.map} +1 -1
  125. package/dist/chunks/{dashed-underline.DkzQkpaf.js → dashed-underline.CyZEW1LZ.js} +30 -32
  126. package/dist/chunks/dashed-underline.CyZEW1LZ.js.map +1 -0
  127. package/dist/chunks/{data-grid-template.DSwj7e1E.js → data-grid-template.CnYNEhPR.js} +5 -5
  128. package/dist/chunks/data-grid-template.CnYNEhPR.js.map +1 -0
  129. package/dist/chunks/{data-grid.BEdELRNZ.js → data-grid.aEQt05d9.js} +1626 -1554
  130. package/dist/chunks/data-grid.aEQt05d9.js.map +1 -0
  131. package/dist/chunks/{date-picker.CAoXTiZR.js → date-picker.Bk0A3rha.js} +25 -26
  132. package/dist/chunks/date-picker.Bk0A3rha.js.map +1 -0
  133. package/dist/chunks/date-range-picker.l-CSmXBk.js +1168 -0
  134. package/dist/chunks/date-range-picker.l-CSmXBk.js.map +1 -0
  135. package/dist/chunks/{date.DSjCnSgL.js → date.BZENjOb6.js} +2 -2
  136. package/dist/chunks/{date.DSjCnSgL.js.map → date.BZENjOb6.js.map} +1 -1
  137. package/dist/chunks/{dialog-page.C80HOigq.js → dialog-page.BJaRwRhF.js} +15 -15
  138. package/dist/chunks/dialog-page.BJaRwRhF.js.map +1 -0
  139. package/dist/chunks/{divider.qUOSAbU6.js → divider.DnKNNyWB.js} +2 -2
  140. package/dist/chunks/divider.DnKNNyWB.js.map +1 -0
  141. package/dist/chunks/{dropdown-default-textbox.Ce5D3ipi.js → dropdown-default-textbox.DWgL31p1.js} +111 -109
  142. package/dist/chunks/dropdown-default-textbox.DWgL31p1.js.map +1 -0
  143. package/dist/chunks/dropdown-tag.CnqIUH1X.js +263 -0
  144. package/dist/chunks/dropdown-tag.CnqIUH1X.js.map +1 -0
  145. package/dist/chunks/{dropdown.CMOYmQLB.js → dropdown.Co86azLK.js} +71 -71
  146. package/dist/chunks/dropdown.Co86azLK.js.map +1 -0
  147. package/dist/chunks/{empty-state.D7llINgF.js → empty-state.YNNEDsnK.js} +4 -4
  148. package/dist/chunks/empty-state.YNNEDsnK.js.map +1 -0
  149. package/dist/chunks/{error-message.DHMHq9bR.js → error-message.Cu4cIfdg.js} +3 -3
  150. package/dist/chunks/{error-message.DHMHq9bR.js.map → error-message.Cu4cIfdg.js.map} +1 -1
  151. package/dist/chunks/es6.MoTTyETW.js +12 -0
  152. package/dist/chunks/es6.MoTTyETW.js.map +1 -0
  153. package/dist/chunks/events.CMzGybJJ.js +47 -0
  154. package/dist/chunks/events.CMzGybJJ.js.map +1 -0
  155. package/dist/chunks/{file-uploader.B_EI2fAc.js → file-uploader.09149Fx8.js} +153 -154
  156. package/dist/chunks/file-uploader.09149Fx8.js.map +1 -0
  157. package/dist/chunks/{filter-bar.DoHMLZ4O.js → filter-bar.D6n7Srr5.js} +215 -219
  158. package/dist/chunks/filter-bar.D6n7Srr5.js.map +1 -0
  159. package/dist/chunks/{fixed-scroller.D5nAPPbo.js → fixed-scroller.QlDKOD7y.js} +2 -2
  160. package/dist/chunks/{fixed-scroller.D5nAPPbo.js.map → fixed-scroller.QlDKOD7y.js.map} +1 -1
  161. package/dist/chunks/{focus-trap.CljZgv9i.js → focus-trap.rjp24a37.js} +2 -2
  162. package/dist/chunks/focus-trap.rjp24a37.js.map +1 -0
  163. package/dist/chunks/{footer-actions.Bje-DDqw.js → footer-actions.0cBTJ1kw.js} +5 -5
  164. package/dist/chunks/footer-actions.0cBTJ1kw.js.map +1 -0
  165. package/dist/chunks/{form-layout-title.rpIO-I9A.js → form-layout-title.Cq_xVPUq.js} +5 -5
  166. package/dist/chunks/form-layout-title.Cq_xVPUq.js.map +1 -0
  167. package/dist/chunks/{grid-layout.BTLE3rac.js → grid-layout.DDaRNz4-.js} +2 -2
  168. package/dist/chunks/grid-layout.DDaRNz4-.js.map +1 -0
  169. package/dist/chunks/{header-meta.Yt43-cUI.js → header-meta.BJGF0E3r.js} +26 -27
  170. package/dist/chunks/{header-meta.Yt43-cUI.js.map → header-meta.BJGF0E3r.js.map} +1 -1
  171. package/dist/chunks/{header-with-views.BUed3ocZ.js → header-with-views.Drzq84zs.js} +99 -103
  172. package/dist/chunks/header-with-views.Drzq84zs.js.map +1 -0
  173. package/dist/chunks/{header.CwKjDgKv.js → header.B6DzOioR.js} +32 -32
  174. package/dist/chunks/header.B6DzOioR.js.map +1 -0
  175. package/dist/chunks/image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js.map +1 -1
  176. package/dist/chunks/{info-icon.DprUQ9fj.js → info-icon.DKnzFXy1.js} +8 -9
  177. package/dist/chunks/info-icon.DKnzFXy1.js.map +1 -0
  178. package/dist/chunks/{input-field-password.DN0Jro1V.js → input-field-password.DC8lJFsr.js} +8 -8
  179. package/dist/chunks/input-field-password.DC8lJFsr.js.map +1 -0
  180. package/dist/chunks/{input-field-phone-number.BhPsrafR.js → input-field-phone-number.BbMEzDiR.js} +42 -41
  181. package/dist/chunks/{input-field-phone-number.BhPsrafR.js.map → input-field-phone-number.BbMEzDiR.js.map} +1 -1
  182. package/dist/chunks/{input-field.su5Cq8Dt.js → input-field.6bH4yGb2.js} +5 -5
  183. package/dist/chunks/input-field.6bH4yGb2.js.map +1 -0
  184. package/dist/chunks/{inspector.CoZCPfHC.js → inspector.Bsv68G-e.js} +13 -13
  185. package/dist/chunks/inspector.Bsv68G-e.js.map +1 -0
  186. package/dist/chunks/{keyboard-navigation.CqgGzfZQ.js → keyboard-navigation.pB8weElW.js} +2 -2
  187. package/dist/chunks/keyboard-navigation.pB8weElW.js.map +1 -0
  188. package/dist/chunks/{layout-row.CZNtHaXd.js → layout-row.CIg1pwOd.js} +9 -9
  189. package/dist/chunks/layout-row.CIg1pwOd.js.map +1 -0
  190. package/dist/chunks/{link.BBpxiclu.js → link.Di0rtpOj.js} +2 -2
  191. package/dist/chunks/{link.BBpxiclu.js.map → link.Di0rtpOj.js.map} +1 -1
  192. package/dist/chunks/{listbox-option-tag.0BK6jWO9.js → listbox-option-tag.C6WHiASI.js} +7 -7
  193. package/dist/chunks/listbox-option-tag.C6WHiASI.js.map +1 -0
  194. package/dist/chunks/{loading-indicator.DEepb9Wl.js → loading-indicator.BmAQqPP2.js} +3 -3
  195. package/dist/chunks/loading-indicator.BmAQqPP2.js.map +1 -0
  196. package/dist/chunks/minus-small.DYIyF5XW.js.map +1 -1
  197. package/dist/chunks/{modal-fullscreen.DBTnoSX9.js → modal-fullscreen.BHzyS4y7.js} +18 -19
  198. package/dist/chunks/modal-fullscreen.BHzyS4y7.js.map +1 -0
  199. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.Cd-mQUJ8.js → modal.vue_vue_type_script_setup_true_lang.CqDhzFJ9.js} +6 -6
  200. package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.CqDhzFJ9.js.map +1 -0
  201. package/dist/chunks/{pagination.fYQak4C8.js → pagination.BuYH2_62.js} +5 -5
  202. package/dist/chunks/pagination.BuYH2_62.js.map +1 -0
  203. package/dist/chunks/{payment-method.eazefwm6.js → payment-method.4cnK2M5b.js} +3 -3
  204. package/dist/chunks/payment-method.4cnK2M5b.js.map +1 -0
  205. package/dist/chunks/popover.types.BQILgzhs.js +6 -0
  206. package/dist/chunks/popover.types.BQILgzhs.js.map +1 -0
  207. package/dist/chunks/{popper-container.b5h4zYgT.js → popper-container.idDrquM6.js} +285 -281
  208. package/dist/chunks/popper-container.idDrquM6.js.map +1 -0
  209. package/dist/chunks/{promo-banner.CQp3z2CP.js → promo-banner.il4_mdEk.js} +4 -4
  210. package/dist/chunks/promo-banner.il4_mdEk.js.map +1 -0
  211. package/dist/chunks/{radio-group.H9A5QcNu.js → radio-group.BG8W9epW.js} +8 -8
  212. package/dist/chunks/radio-group.BG8W9epW.js.map +1 -0
  213. package/dist/chunks/{radio-input.DKfQGxtp.js → radio-input.DvPjlvPm.js} +2 -2
  214. package/dist/chunks/radio-input.DvPjlvPm.js.map +1 -0
  215. package/dist/chunks/{rich-text-editor.Dx78coVL.js → rich-text-editor.vqti0Ls0.js} +8 -8
  216. package/dist/chunks/rich-text-editor.vqti0Ls0.js.map +1 -0
  217. package/dist/chunks/{search-bar.CUrcP_wf.js → search-bar.RGL70u_Y.js} +46 -44
  218. package/dist/chunks/search-bar.RGL70u_Y.js.map +1 -0
  219. package/dist/chunks/{secondary-nav.j3ddtYoZ.js → secondary-nav.Dtw_Dm_X.js} +28 -28
  220. package/dist/chunks/secondary-nav.Dtw_Dm_X.js.map +1 -0
  221. package/dist/chunks/{segmented-control.5-vlm8Gt.js → segmented-control.C6QyN2jS.js} +6 -7
  222. package/dist/chunks/segmented-control.C6QyN2jS.js.map +1 -0
  223. package/dist/chunks/{selection-card-group.B4xpnd-z.js → selection-card-group.DpogJSo0.js} +16 -16
  224. package/dist/chunks/selection-card-group.DpogJSo0.js.map +1 -0
  225. package/dist/chunks/{sidepanel.DPN__L3Q.js → sidepanel.BqRWoCd3.js} +14 -14
  226. package/dist/chunks/sidepanel.BqRWoCd3.js.map +1 -0
  227. package/dist/chunks/{status.types.Bdv2zuuh.js → status.types.B7vJ-_oJ.js} +9 -9
  228. package/dist/chunks/status.types.B7vJ-_oJ.js.map +1 -0
  229. package/dist/chunks/{step.BtNhPZAf.js → step.BdZrreHU.js} +8 -9
  230. package/dist/chunks/step.BdZrreHU.js.map +1 -0
  231. package/dist/chunks/{structured-list-item.BQbEDKhg.js → structured-list-item.DIwkcIMT.js} +18 -19
  232. package/dist/chunks/structured-list-item.DIwkcIMT.js.map +1 -0
  233. package/dist/chunks/{summary-grid.types.CjbbSZBJ.js → summary-grid.types.DHUnTXI-.js} +7 -7
  234. package/dist/chunks/{summary-grid.types.CjbbSZBJ.js.map → summary-grid.types.DHUnTXI-.js.map} +1 -1
  235. package/dist/chunks/{tab.CAt51ksU.js → tab.jIG8-7-Q.js} +5 -5
  236. package/dist/chunks/tab.jIG8-7-Q.js.map +1 -0
  237. package/dist/chunks/{tag.D3in0-Bp.js → tag.BP8fBCx-.js} +9 -10
  238. package/dist/chunks/tag.BP8fBCx-.js.map +1 -0
  239. package/dist/chunks/textarea.CtfRoIUw.js +295 -0
  240. package/dist/chunks/textarea.CtfRoIUw.js.map +1 -0
  241. package/dist/chunks/{timeline-item.CuCII37W.js → timeline-item.DthjD14m.js} +11 -11
  242. package/dist/chunks/timeline-item.DthjD14m.js.map +1 -0
  243. package/dist/chunks/{toast.CSoCPteL.js → toast.w_FD0zQA.js} +18 -18
  244. package/dist/chunks/toast.w_FD0zQA.js.map +1 -0
  245. package/dist/chunks/toggle-button.ByyLw0Yf.js +1347 -0
  246. package/dist/chunks/toggle-button.ByyLw0Yf.js.map +1 -0
  247. package/dist/chunks/{toggle.BuKXexA6.js → toggle.CjEL1ko8.js} +3 -3
  248. package/dist/chunks/toggle.CjEL1ko8.js.map +1 -0
  249. package/dist/chunks/{tooltip.VYPUHERk.js → tooltip.Dww8NiUR.js} +70 -64
  250. package/dist/chunks/tooltip.Dww8NiUR.js.map +1 -0
  251. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.Dmf8fGaM.js → tutorial.vue_vue_type_script_setup_true_lang.rY33hqQQ.js} +48 -51
  252. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.rY33hqQQ.js.map +1 -0
  253. package/dist/chunks/{typography.DN5eC5ch.js → typography.CFHvBR7L.js} +25 -25
  254. package/dist/chunks/typography.CFHvBR7L.js.map +1 -0
  255. package/dist/chunks/{use-bento-toast-controller.D3LA1FCd.js → use-bento-toast-controller.BzKbXZPO.js} +2 -2
  256. package/dist/chunks/{use-bento-toast-controller.D3LA1FCd.js.map → use-bento-toast-controller.BzKbXZPO.js.map} +1 -1
  257. package/dist/chunks/{use-cached-selected-values.Dyoz6cUK.js → use-cached-selected-values.BcNRo4mZ.js} +16 -17
  258. package/dist/chunks/use-cached-selected-values.BcNRo4mZ.js.map +1 -0
  259. package/dist/chunks/use-country-items.Duh4bMqW.js.map +1 -1
  260. package/dist/chunks/use-country-phon-code.BOaJ9PDl.js.map +1 -1
  261. package/dist/chunks/use-has-slot.B7eQSabc.js.map +1 -1
  262. package/dist/code-snippet.js +1 -1
  263. package/dist/country.js +1 -1
  264. package/dist/currency.js +1 -1
  265. package/dist/dashboard-template.js +1 -1
  266. package/dist/dashed-underline.js +1 -1
  267. package/dist/data-grid-template.js +1 -1
  268. package/dist/data-grid.js +1 -1
  269. package/dist/date-picker.js +2 -2
  270. package/dist/date-range-picker.js +2 -2
  271. package/dist/date.js +1 -1
  272. package/dist/divider.js +1 -1
  273. package/dist/dropdown.js +4 -4
  274. package/dist/empty-state.js +1 -1
  275. package/dist/file-uploader.js +1 -1
  276. package/dist/filter-bar.js +1 -1
  277. package/dist/focus-trap.js +1 -1
  278. package/dist/form-layout.js +1 -1
  279. package/dist/header-with-views.js +1 -1
  280. package/dist/header.js +1 -1
  281. package/dist/index.js +204 -207
  282. package/dist/index.js.map +1 -1
  283. package/dist/info-icon.js +1 -1
  284. package/dist/input-field-password.js +1 -1
  285. package/dist/input-field-phone-number.js +3 -2
  286. package/dist/input-field.js +1 -1
  287. package/dist/inspector.js +1 -1
  288. package/dist/internal.js +33 -32
  289. package/dist/internal.js.map +1 -1
  290. package/dist/layout.js +1 -1
  291. package/dist/link.js +1 -1
  292. package/dist/loading-indicator.js +1 -1
  293. package/dist/menu.js +1 -1
  294. package/dist/modal-fullscreen.js +1 -1
  295. package/dist/modal.js +2 -2
  296. package/dist/pagination.js +1 -1
  297. package/dist/payment-method.js +1 -1
  298. package/dist/popover.js +2 -2
  299. package/dist/popper-container.js +4 -5
  300. package/dist/popper-container.js.map +1 -1
  301. package/dist/promo-banner.js +1 -1
  302. package/dist/radio-group.js +2 -2
  303. package/dist/rich-text-editor.js +1 -1
  304. package/dist/search-bar.js +2 -2
  305. package/dist/secondary-nav.js +1 -1
  306. package/dist/segmented-control.js +1 -1
  307. package/dist/selection-card.js +1 -1
  308. package/dist/sidepanel.js +1 -1
  309. package/dist/status.js +1 -1
  310. package/dist/stepper.js +1 -1
  311. package/dist/structured-list.js +1 -1
  312. package/dist/styles/bento-dark.css +17 -4
  313. package/dist/styles/bento-light.css +17 -4
  314. package/dist/styles/bento.css +17 -4
  315. package/dist/styles/legacy.css +17 -4
  316. package/dist/styles/styleguide.css +17 -4
  317. package/dist/styles/utility.css +3 -0
  318. package/dist/summary-grid.js +1 -1
  319. package/dist/tabs.js +1 -1
  320. package/dist/tag.js +1 -1
  321. package/dist/textarea.js +1 -1
  322. package/dist/timeline.js +1 -1
  323. package/dist/toast.js +1 -1
  324. package/dist/toggle.js +1 -1
  325. package/dist/tutorial.js +1 -1
  326. package/dist/typography.js +1 -1
  327. package/dist/use-form-v4.js.map +1 -1
  328. package/dist/web-types.json +1 -1
  329. package/package.json +6 -6
  330. package/dist/assets/button-actions.css +0 -1
  331. package/dist/assets/menu.css +0 -1
  332. package/dist/assets/popover.css +0 -1
  333. package/dist/assets/teleport.css +0 -1
  334. package/dist/chunks/accordion-item.DOnW0OnU.js.map +0 -1
  335. package/dist/chunks/action-bar.CflF49oL.js.map +0 -1
  336. package/dist/chunks/avatar.B0-9jC6H.js.map +0 -1
  337. package/dist/chunks/base-button.DdNFlbgH.js.map +0 -1
  338. package/dist/chunks/base-modal.C3_r3rmc.js.map +0 -1
  339. package/dist/chunks/base-modal.keys.C2PQXcE2.js +0 -5
  340. package/dist/chunks/base-modal.keys.C2PQXcE2.js.map +0 -1
  341. package/dist/chunks/button-actions-with-menu.8ZYh7-9s.js +0 -91
  342. package/dist/chunks/button-actions-with-menu.8ZYh7-9s.js.map +0 -1
  343. package/dist/chunks/button-actions.CZdO9YOk.js +0 -264
  344. package/dist/chunks/button-actions.CZdO9YOk.js.map +0 -1
  345. package/dist/chunks/button.AB0SOQMn.js.map +0 -1
  346. package/dist/chunks/calendar._oPk_A1C.js.map +0 -1
  347. package/dist/chunks/card.CS34Mi_G.js.map +0 -1
  348. package/dist/chunks/checkbox-group.JRo6xNpe.js.map +0 -1
  349. package/dist/chunks/checkbox-input.DFkwZ4GM.js.map +0 -1
  350. package/dist/chunks/checkbox.DGrG3GN1.js.map +0 -1
  351. package/dist/chunks/chip.CneNX2_j.js.map +0 -1
  352. package/dist/chunks/code-snippet.D5M76Qy6.js.map +0 -1
  353. package/dist/chunks/copy.RUoQOydT.js.map +0 -1
  354. package/dist/chunks/country.Q95voxeL.js.map +0 -1
  355. package/dist/chunks/currency.CZVdyZUH.js.map +0 -1
  356. package/dist/chunks/dashed-underline.DkzQkpaf.js.map +0 -1
  357. package/dist/chunks/data-grid-template.DSwj7e1E.js.map +0 -1
  358. package/dist/chunks/data-grid.BEdELRNZ.js.map +0 -1
  359. package/dist/chunks/date-picker.CAoXTiZR.js.map +0 -1
  360. package/dist/chunks/date-range-picker.DtV4L3L6.js +0 -1225
  361. package/dist/chunks/date-range-picker.DtV4L3L6.js.map +0 -1
  362. package/dist/chunks/dialog-page.C80HOigq.js.map +0 -1
  363. package/dist/chunks/divider.qUOSAbU6.js.map +0 -1
  364. package/dist/chunks/dropdown-default-textbox.Ce5D3ipi.js.map +0 -1
  365. package/dist/chunks/dropdown-tag.B3fptORX.js +0 -230
  366. package/dist/chunks/dropdown-tag.B3fptORX.js.map +0 -1
  367. package/dist/chunks/dropdown.CMOYmQLB.js.map +0 -1
  368. package/dist/chunks/empty-state.D7llINgF.js.map +0 -1
  369. package/dist/chunks/es6.n1ewaW31.js +0 -11
  370. package/dist/chunks/es6.n1ewaW31.js.map +0 -1
  371. package/dist/chunks/events.FNmSWp_P.js +0 -52
  372. package/dist/chunks/events.FNmSWp_P.js.map +0 -1
  373. package/dist/chunks/file-uploader.B_EI2fAc.js.map +0 -1
  374. package/dist/chunks/filter-bar.DoHMLZ4O.js.map +0 -1
  375. package/dist/chunks/focus-trap.CljZgv9i.js.map +0 -1
  376. package/dist/chunks/footer-actions.Bje-DDqw.js.map +0 -1
  377. package/dist/chunks/form-layout-title.rpIO-I9A.js.map +0 -1
  378. package/dist/chunks/grid-layout.BTLE3rac.js.map +0 -1
  379. package/dist/chunks/header-with-views.BUed3ocZ.js.map +0 -1
  380. package/dist/chunks/header.CwKjDgKv.js.map +0 -1
  381. package/dist/chunks/info-icon.DprUQ9fj.js.map +0 -1
  382. package/dist/chunks/input-field-password.DN0Jro1V.js.map +0 -1
  383. package/dist/chunks/input-field.su5Cq8Dt.js.map +0 -1
  384. package/dist/chunks/inspector.CoZCPfHC.js.map +0 -1
  385. package/dist/chunks/keyboard-navigation.CqgGzfZQ.js.map +0 -1
  386. package/dist/chunks/layout-row.CZNtHaXd.js.map +0 -1
  387. package/dist/chunks/listbox-option-tag.0BK6jWO9.js.map +0 -1
  388. package/dist/chunks/loading-indicator.DEepb9Wl.js.map +0 -1
  389. package/dist/chunks/menu.EtjeOPXX.js +0 -680
  390. package/dist/chunks/menu.EtjeOPXX.js.map +0 -1
  391. package/dist/chunks/modal-fullscreen.DBTnoSX9.js.map +0 -1
  392. package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js +0 -5
  393. package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js.map +0 -1
  394. package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.Cd-mQUJ8.js.map +0 -1
  395. package/dist/chunks/pagination.fYQak4C8.js.map +0 -1
  396. package/dist/chunks/payment-method.eazefwm6.js.map +0 -1
  397. package/dist/chunks/popover.DYgCCUCJ.js +0 -200
  398. package/dist/chunks/popover.DYgCCUCJ.js.map +0 -1
  399. package/dist/chunks/popover.types.V8old-GW.js +0 -6
  400. package/dist/chunks/popover.types.V8old-GW.js.map +0 -1
  401. package/dist/chunks/popper-container.b5h4zYgT.js.map +0 -1
  402. package/dist/chunks/popper-container.types.BCZMbVFD.js +0 -9
  403. package/dist/chunks/popper-container.types.BCZMbVFD.js.map +0 -1
  404. package/dist/chunks/promo-banner.CQp3z2CP.js.map +0 -1
  405. package/dist/chunks/radio-group.H9A5QcNu.js.map +0 -1
  406. package/dist/chunks/radio-input.DKfQGxtp.js.map +0 -1
  407. package/dist/chunks/rich-text-editor.Dx78coVL.js.map +0 -1
  408. package/dist/chunks/search-bar.CUrcP_wf.js.map +0 -1
  409. package/dist/chunks/secondary-nav.j3ddtYoZ.js.map +0 -1
  410. package/dist/chunks/segmented-control.5-vlm8Gt.js.map +0 -1
  411. package/dist/chunks/selection-card-group.B4xpnd-z.js.map +0 -1
  412. package/dist/chunks/sidepanel.DPN__L3Q.js.map +0 -1
  413. package/dist/chunks/sidepanel.keys.R0DKQuYx.js +0 -5
  414. package/dist/chunks/sidepanel.keys.R0DKQuYx.js.map +0 -1
  415. package/dist/chunks/status.types.Bdv2zuuh.js.map +0 -1
  416. package/dist/chunks/step.BtNhPZAf.js.map +0 -1
  417. package/dist/chunks/structured-list-item.BQbEDKhg.js.map +0 -1
  418. package/dist/chunks/tab.CAt51ksU.js.map +0 -1
  419. package/dist/chunks/tag.D3in0-Bp.js.map +0 -1
  420. package/dist/chunks/teleport.CfGWjxe2.js +0 -129
  421. package/dist/chunks/teleport.CfGWjxe2.js.map +0 -1
  422. package/dist/chunks/textarea.BBhN67-I.js +0 -282
  423. package/dist/chunks/textarea.BBhN67-I.js.map +0 -1
  424. package/dist/chunks/timeline-item.CuCII37W.js.map +0 -1
  425. package/dist/chunks/toast.CSoCPteL.js.map +0 -1
  426. package/dist/chunks/toggle-button.NQwrfSr1.js +0 -80
  427. package/dist/chunks/toggle-button.NQwrfSr1.js.map +0 -1
  428. package/dist/chunks/toggle.BuKXexA6.js.map +0 -1
  429. package/dist/chunks/tooltip.VYPUHERk.js.map +0 -1
  430. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.Dmf8fGaM.js.map +0 -1
  431. package/dist/chunks/typography.DN5eC5ch.js.map +0 -1
  432. package/dist/chunks/use-cached-selected-values.Dyoz6cUK.js.map +0 -1
  433. package/dist/chunks/use-click-outside.BnhTgpSt.js +0 -14
  434. package/dist/chunks/use-click-outside.BnhTgpSt.js.map +0 -1
@@ -0,0 +1,263 @@
1
+ import { defineComponent as p, computed as I, createElementBlock as v, openBlock as B, createVNode as m, mergeProps as f, withCtx as _, unref as y, toRefs as L, createTextVNode as S, toDisplayString as T, ref as b, watch as M, createBlock as $ } from "vue";
2
+ import { B as O } from "./avatar.BtxoYBvq.js";
3
+ import { B as u, u as x } from "./dropdown.Co86azLK.js";
4
+ import { d as D, B as z } from "./typography.CFHvBR7L.js";
5
+ import { u as V } from "./use-country-items.Duh4bMqW.js";
6
+ import { B as w } from "./country.types.C0Q_hhgJ.js";
7
+ import { L as C } from "./listbox-option-tag.C6WHiASI.js";
8
+ import { B as k } from "./payment-method.4cnK2M5b.js";
9
+ import { _ as A } from "./_plugin-vue_export-helper.CHgC5LLL.js";
10
+ import "../assets/dropdown-tag.css";
11
+ const P = p({
12
+ name: "bento-dropdown-avatar"
13
+ }), Y = /* @__PURE__ */ p({
14
+ ...P,
15
+ props: {
16
+ items: { default: () => [] },
17
+ ariaLabel: {},
18
+ condensed: { type: Boolean },
19
+ emptyState: {},
20
+ disabled: { type: Boolean },
21
+ dynamicFiltering: { type: Boolean },
22
+ error: { type: Boolean },
23
+ errorMessage: {},
24
+ description: {},
25
+ hasMoreItems: { type: Boolean },
26
+ isOptionDisabled: {},
27
+ label: {},
28
+ loading: { type: Boolean },
29
+ componentLoading: { type: Boolean },
30
+ lazyLoadType: {},
31
+ multiple: { type: Boolean },
32
+ optional: { type: Boolean },
33
+ placeholder: {},
34
+ readonly: { type: Boolean },
35
+ required: { type: Boolean },
36
+ search: {},
37
+ showSlotContentInMultiple: { type: Boolean },
38
+ size: {},
39
+ staticCategories: { type: Boolean },
40
+ tooltipText: {},
41
+ value: {},
42
+ virtualScroll: { type: [Boolean, Object] },
43
+ enableValueLabelPair: { type: Boolean }
44
+ },
45
+ emits: ["input"],
46
+ setup(l, { emit: i }) {
47
+ const t = l, c = i, s = (e) => c("input", e), r = I(() => t.items.map(({ value: e, label: a, src: o }) => ({ value: e, label: a, data: o })));
48
+ return (e, a) => (B(), v("div", null, [
49
+ m(u, f(e.$props, {
50
+ items: r.value,
51
+ onInput: s
52
+ }), {
53
+ default: _(({ label: o, data: n }) => [
54
+ m(y(O), {
55
+ username: o,
56
+ src: n
57
+ }, null, 8, ["username", "src"])
58
+ ]),
59
+ _: 1
60
+ }, 16, ["items"])
61
+ ]));
62
+ }
63
+ }), j = p({
64
+ name: "b-dropdown-country"
65
+ }), Z = /* @__PURE__ */ p({
66
+ ...j,
67
+ props: {
68
+ ...u.props,
69
+ /**
70
+ * The option elements to populate the country dropdown with.
71
+ * It must be an array of {@see BentoCountryListboxOptions }
72
+ * * @deprecated {string} value.label - Use BentoDropdown instead of custom labels
73
+ * * @property {BentoCountryCode | string} value.value - Country code of the option
74
+ */
75
+ items: {
76
+ type: Array,
77
+ default: () => []
78
+ },
79
+ /**
80
+ * Which label variant to display.
81
+ * @values iso, name, phone_code, capital
82
+ */
83
+ variant: {
84
+ type: String,
85
+ default: w.CUSTOM,
86
+ validator: (l) => Object.values(w).includes(l)
87
+ }
88
+ },
89
+ emits: ["input"],
90
+ setup(l, { emit: i }) {
91
+ const t = l, c = i, s = (o) => c("input", o), { variant: r, items: e } = L(t), a = V(r, e);
92
+ return (r.value === "custom" || e.value.some((o) => o.label)) && D(
93
+ 'BentoDropdownCountry "custom" variant and "items" prop "label" key',
94
+ "Use any of the other BentoDropdownCountry variants instead OR use BentoDropdown component for custom labels",
95
+ "2.0.0"
96
+ ), (o, n) => (B(), v("div", null, [
97
+ m(u, f(o.$props, {
98
+ items: y(a),
99
+ onInput: s
100
+ }), {
101
+ default: _(({ label: h }) => [
102
+ m(y(z), { el: "span" }, {
103
+ default: _(() => [
104
+ S(T(h), 1)
105
+ ]),
106
+ _: 2
107
+ }, 1024)
108
+ ]),
109
+ _: 1
110
+ }, 16, ["items"])
111
+ ]));
112
+ }
113
+ }), E = p({
114
+ name: "b-dropdown-currency"
115
+ }), ee = /* @__PURE__ */ p({
116
+ ...E,
117
+ props: {
118
+ ...u.props,
119
+ /**
120
+ * The option elements to populate the country dropdown with.
121
+ * It must be an array of {@see BentoCurrencyListboxOptions }
122
+ * * @property {string} value.label - Text to be displayed in the option
123
+ * * @property {BentoCurrencyISOCode} value.code - Currency ISO code of the option
124
+ */
125
+ items: {
126
+ type: Array,
127
+ default: () => []
128
+ }
129
+ },
130
+ emits: ["input"],
131
+ setup(l, { emit: i }) {
132
+ const t = l, c = i, s = (a) => c("input", a), r = b([]);
133
+ M(
134
+ () => t.items,
135
+ () => r.value = t.items,
136
+ { immediate: !0 }
137
+ );
138
+ const e = t.search ? t.search : {
139
+ debounceTime: 500,
140
+ searchEvent: async (a) => {
141
+ var g;
142
+ const o = t.items.map((d) => ({
143
+ ...d,
144
+ label: `${d.value} ${d.label}`
145
+ })), n = x(
146
+ b(a),
147
+ b(o),
148
+ (g = t == null ? void 0 : t.search) == null ? void 0 : g.searchEvent,
149
+ b(!1)
150
+ ).value, h = n == null ? void 0 : n.map((d) => ({
151
+ ...d,
152
+ label: d.label.substring(d.value.length + 1)
153
+ }));
154
+ r.value = h;
155
+ }
156
+ };
157
+ return (a, o) => (B(), $(u, f(a.$props, {
158
+ search: y(e),
159
+ items: r.value,
160
+ onInput: s
161
+ }), {
162
+ default: _((n) => [
163
+ m(y(C), { option: n }, null, 8, ["option"])
164
+ ]),
165
+ _: 1
166
+ }, 16, ["search", "items"]));
167
+ }
168
+ }), F = p({
169
+ name: "bento-dropdown-payment-method"
170
+ }), te = /* @__PURE__ */ p({
171
+ ...F,
172
+ props: {
173
+ items: { default: () => [] },
174
+ ariaLabel: {},
175
+ condensed: { type: Boolean },
176
+ emptyState: {},
177
+ disabled: { type: Boolean },
178
+ dynamicFiltering: { type: Boolean },
179
+ error: { type: Boolean },
180
+ errorMessage: {},
181
+ description: {},
182
+ hasMoreItems: { type: Boolean },
183
+ isOptionDisabled: {},
184
+ label: {},
185
+ loading: { type: Boolean },
186
+ componentLoading: { type: Boolean },
187
+ lazyLoadType: {},
188
+ multiple: { type: Boolean },
189
+ optional: { type: Boolean },
190
+ placeholder: {},
191
+ readonly: { type: Boolean },
192
+ required: { type: Boolean },
193
+ search: {},
194
+ showSlotContentInMultiple: { type: Boolean },
195
+ size: {},
196
+ staticCategories: { type: Boolean },
197
+ tooltipText: {},
198
+ value: {},
199
+ virtualScroll: { type: [Boolean, Object] },
200
+ enableValueLabelPair: { type: Boolean }
201
+ },
202
+ emits: ["input"],
203
+ setup(l, { emit: i }) {
204
+ const t = i, c = (s) => t("input", s);
205
+ return (s, r) => (B(), v("div", null, [
206
+ m(u, f(s.$props, { onInput: c }), {
207
+ default: _(({ value: e, label: a }) => [
208
+ m(y(k), {
209
+ type: e,
210
+ label: a
211
+ }, null, 8, ["type", "label"])
212
+ ]),
213
+ _: 1
214
+ }, 16)
215
+ ]));
216
+ }
217
+ }), q = p({
218
+ name: "bento-dropdown-tag"
219
+ }), N = /* @__PURE__ */ p({
220
+ ...q,
221
+ props: {
222
+ ...u.props,
223
+ /**
224
+ * The option elements to populate the tag dropdown with.
225
+ * It must be an array of {@see BentoTagListboxOptions }
226
+ * * @property {string} value.label - Text to be displayed in the option
227
+ * * @property {string,number} value.value - Value of the option
228
+ * * @property {string} value.variant - The BentTag variant shown for the option.
229
+ */
230
+ items: {
231
+ type: Array,
232
+ default: () => []
233
+ }
234
+ },
235
+ emits: ["input"],
236
+ setup(l, { emit: i }) {
237
+ const t = l, c = i, s = (e) => c("input", e), r = I(() => {
238
+ var e;
239
+ return (e = t.items) == null ? void 0 : e.map(({ label: a, value: o, variant: n }) => ({ label: a, value: o, data: n }));
240
+ });
241
+ return (e, a) => (B(), $(u, f(e.$props, {
242
+ class: "b-dropdown-tag",
243
+ items: r.value,
244
+ "show-slot-content-in-multiple": "",
245
+ onInput: s
246
+ }), {
247
+ default: _(({ label: o, data: n }) => [
248
+ m(y(C), {
249
+ option: { value: o, data: n, label: "" }
250
+ }, null, 8, ["option"])
251
+ ]),
252
+ _: 1
253
+ }, 16, ["items"]));
254
+ }
255
+ }), oe = /* @__PURE__ */ A(N, [["__scopeId", "data-v-f7b492d1"]]);
256
+ export {
257
+ Y as _,
258
+ Z as a,
259
+ ee as b,
260
+ te as c,
261
+ oe as d
262
+ };
263
+ //# sourceMappingURL=dropdown-tag.CnqIUH1X.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dropdown-tag.CnqIUH1X.js","sources":["../../../vue2/src/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue","../../../vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue","../../../vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue","../../../vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue","../../../vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue"],"sourcesContent":["<template>\n <div>\n <bento-dropdown v-slot=\"{ label, data }\" v-bind=\"$props\" :items=\"dropdownItems\" @input=\"onInput\">\n <bento-avatar :username=\"label\" :src=\"data\" />\n </bento-dropdown>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, defineComponent } from 'vue';\n import { type BentoListboxSelectedValue } from '@/types';\n import { type BentoDropdownCurrencyProps } from './dropdown-avatar.types';\n import { BentoAvatar } from '@/components/avatar';\n import BentoDropdown from '@/components/dropdown/dropdown.vue';\n\n const props = withDefaults(defineProps<BentoDropdownCurrencyProps>(), {\n items: () => [],\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when an item is selected\n */\n (e: 'input', selectedValue: BentoListboxSelectedValue);\n }>();\n\n const onInput = (selectedValue: BentoListboxSelectedValue) => emit('input', selectedValue);\n\n const dropdownItems = computed(() => props.items.map(({ value, label, src }) => ({ value, label, data: src })));\n</script>\n\n<script lang=\"ts\">\n /**\n * A Avatar Dropdown showing a selectable list of countries.\n *\n * @example\n * import { BentoDropdownAvatar } from '@adyen/bento-vue2';\n * import type { BentoAvatarListboxOptions } from '@adyen/bento-vue2'\n *\n * export default {\n * components: { BentoDropdownAvatar },\n * template: `\n * <bento-dropdown-avatar\n * v-model=\"selectedValue\"\n * :disabled=\"false\"\n * :multiple=\"true\"\n * :isOptionsDisabled=\"option => option.value === 2\"\n * :items=\"options\"\n * />\n * `,\n * setup() {\n * const selectedValue = ref('user-id-1') // Default value\n * const options: BentoAvatarListboxOptions = [\n * { label: 'User 1', value: 'user-id-1' },\n * { label: 'User 2', value: 'user-id-2', src: 'image-source.jpeg' },\n * ];\n * return { options, selectedValue };\n * }\n * }\n */\n export default defineComponent({\n name: 'bento-dropdown-avatar',\n });\n</script>\n","<template>\n <div>\n <bento-dropdown v-slot=\"{ label }\" v-bind=\"$props\" :items=\"countryItems\" @input=\"onInput\">\n <bento-typography el=\"span\">{{ label }}</bento-typography>\n </bento-dropdown>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { defineComponent, type PropType, toRefs } from 'vue';\n import { type BentoCountryListboxOptions } from './dropdown-country.types';\n import { type BentoListboxSelectedValue } from '@/types';\n import { BentoTypography } from '@/components/typography';\n import { useCountryItems } from './composables/use-country-items';\n import { deprecate } from '@/utils/ts/deprecate';\n import { BentoCountryVariant } from '@/components/country';\n import BentoDropdown from '@/components/dropdown/dropdown.vue';\n\n const props = defineProps({\n ...BentoDropdown.props,\n /**\n * The option elements to populate the country dropdown with.\n * It must be an array of {@see BentoCountryListboxOptions }\n * * @deprecated {string} value.label - Use BentoDropdown instead of custom labels\n * * @property {BentoCountryCode | string} value.value - Country code of the option\n */\n items: {\n type: Array as PropType<BentoCountryListboxOptions>,\n default: () => [],\n },\n\n /**\n * Which label variant to display.\n * @values iso, name, phone_code, capital\n */\n variant: {\n type: String as PropType<BentoCountryVariant | `${BentoCountryVariant}`>,\n default: BentoCountryVariant.CUSTOM,\n validator: (value: BentoCountryVariant) => Object.values(BentoCountryVariant).includes(value),\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when an item is selected\n */\n (e: 'input', selectedValue: BentoListboxSelectedValue);\n }>();\n\n const onInput = (selectedValue: BentoListboxSelectedValue) => emit('input', selectedValue);\n\n const { variant, items } = toRefs(props);\n const countryItems = useCountryItems(variant, items);\n\n if (variant.value === 'custom' || items.value.some(item => item.label)) {\n deprecate(\n 'BentoDropdownCountry \"custom\" variant and \"items\" prop \"label\" key',\n 'Use any of the other BentoDropdownCountry variants instead OR use BentoDropdown component for custom labels',\n '2.0.0'\n );\n }\n</script>\n\n<script lang=\"ts\">\n /**\n * A Country Dropdown showing a selectable list of countries.\n *\n * @example\n * import { BentoDropdownCountry, BentoCountryCode } from '@adyen/bento-vue2';\n * import type { BentoCountryListboxOptions } from '@adyen/bento-vue2'\n *\n * export default {\n * components: { BentoDropdown },\n * template: `\n * <bento-dropdown-country\n * v-model=\"selectedValue\"\n * :disabled=\"false\"\n * :multiple=\"true\"\n * :isOptionsDisabled=\"option => option.value === 2\"\n * :items=\"options\"\n * />\n * `,\n * setup() {\n * const selectedValue = ref(BentoCountryCode.NL) // Default value\n * const options: BentoCountryListboxOptions = [\n * { label: 'Option 1', value: BentoCountryCode.NL },\n * { label: 'Option 2', value: BentoCountryCode.BE },\n * ];\n * return { options, selectedValue };\n * }\n * }\n */\n export default defineComponent({\n name: 'b-dropdown-country',\n });\n</script>\n","<template>\n <bento-dropdown v-slot=\"slotProps\" v-bind=\"$props\" :search=\"search\" :items=\"filteredItems\" @input=\"onInput\">\n <listbox-option-tag :option=\"slotProps\" />\n </bento-dropdown>\n</template>\n\n<script setup lang=\"ts\">\n import { defineComponent, type PropType, ref, watch } from 'vue';\n import type { BentoCurrencyListboxOptions } from './dropdown-currency.types';\n import type { BentoListboxSelectedValue } from '@/types';\n import { ListboxOptionTag } from '@/internal';\n import BentoDropdown from '@/components/dropdown/dropdown.vue';\n import { useSearchBarFilter } from '@/components/search-bar';\n\n const props = defineProps({\n ...BentoDropdown.props,\n /**\n * The option elements to populate the country dropdown with.\n * It must be an array of {@see BentoCurrencyListboxOptions }\n * * @property {string} value.label - Text to be displayed in the option\n * * @property {BentoCurrencyISOCode} value.code - Currency ISO code of the option\n */\n items: {\n type: Array as PropType<BentoCurrencyListboxOptions>,\n default: () => [],\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when an item is selected\n */\n (e: 'input', selectedValue: BentoListboxSelectedValue);\n }>();\n\n const onInput = (selectedValue: BentoListboxSelectedValue) => emit('input', selectedValue);\n const filteredItems = ref<BentoCurrencyListboxOptions>([]);\n\n watch(\n () => props.items,\n () => (filteredItems.value = props.items),\n { immediate: true }\n );\n\n const search = props.search\n ? props.search\n : {\n debounceTime: 500,\n searchEvent: async (searchTerm: string) => {\n // Combine value and label to be able to search by the currency code\n const searchableItems = props.items.map(item => ({\n ...item,\n label: `${item.value} ${item.label}`,\n }));\n\n const searchResults = useSearchBarFilter(\n ref(searchTerm),\n ref<BentoCurrencyListboxOptions>(searchableItems),\n props?.search?.searchEvent,\n ref(false)\n ).value;\n\n // Restore original labels by removing the prepended value\n const normalizedResults = searchResults?.map(result => ({\n ...result,\n label: result.label.substring(result.value.length + 1),\n }));\n\n filteredItems.value = normalizedResults;\n },\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * A Currency Dropdown showing a selectable list of currencies.\n *\n * @example\n * import { BentoDropdownCountry, BentoCountryCode } from '@adyen/bento-vue2';\n * import type { BentoCountryListboxOptions } from '@adyen/bento-vue2'\n *\n * export default {\n * components: { BentoDropdown },\n * template: `\n * <bento-dropdown-currency\n * v-model=\"selectedValue\"\n * :disabled=\"false\"\n * :multiple=\"true\"\n * :isOptionsDisabled=\"option => option.value === 2\"\n * :items=\"options\"\n * />\n * `,\n * setup() {\n * const selectedValue = ref(BentoCountryCode.NL) // Default value\n * const options: BentoCountryListboxOptions = [\n * { label: 'Option 1', value: BentoCountryCode.NL },\n * { label: 'Option 2', value: BentoCountryCode.BE },\n * ];\n * return { options, selectedValue };\n * }\n * }\n */\n export default defineComponent({\n name: 'b-dropdown-currency',\n });\n</script>\n","<template>\n <div>\n <bento-dropdown v-slot=\"{ value, label }\" v-bind=\"$props\" @input=\"onInput\">\n <bento-payment-method :type=\"value\" :label=\"label\" />\n </bento-dropdown>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { defineComponent } from 'vue';\n import { type BentoDropdownPaymentMethodProps } from './dropdown-payment-method.types';\n import { type BentoListboxSelectedValue } from '@/types';\n import { BentoPaymentMethod } from '@/components/payment-method';\n import BentoDropdown from '@/components/dropdown/dropdown.vue';\n\n withDefaults(defineProps<BentoDropdownPaymentMethodProps>(), {\n items: () => [],\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when an item is selected\n */\n (e: 'input', selectedValue: BentoListboxSelectedValue);\n }>();\n\n const onInput = (selectedValue: BentoListboxSelectedValue) => emit('input', selectedValue);\n</script>\n\n<script lang=\"ts\">\n /**\n * A Payment method Dropdown showing a selectable list of countries.\n *\n * @example\n * import { BentoDropdownPaymentMethod } from '@adyen/bento-vue2';\n * import type { BentoPaymentMethodListboxOptions } from '@adyen/bento-vue2'\n *\n * export default {\n * components: { BentoDropdownPaymentMethod },\n * template: `\n * <bento-dropdown-payment-method\n * v-model=\"selectedValue\"\n * :disabled=\"false\"\n * :multiple=\"true\"\n * :isOptionsDisabled=\"option => option.value === 'Visa'\"\n * :items=\"options\"\n * />\n * `,\n * setup() {\n * const selectedValue = ref('ideal') // Default value\n * const options: BentoPaymentMethodListboxOptions = [\n * { label: 'Option 1', value: 'ideal' },\n * { label: 'Option 2', value: 'visa' },\n * ];\n * return { options, selectedValue };\n * }\n * }\n */\n export default defineComponent({\n name: 'bento-dropdown-payment-method',\n });\n</script>\n","<template>\n <bento-dropdown\n v-slot=\"{ label, data }\"\n v-bind=\"$props\"\n class=\"b-dropdown-tag\"\n :items=\"tagItems\"\n show-slot-content-in-multiple\n @input=\"onInput\"\n >\n <listbox-option-tag :option=\"{ value: label, data, label: '' }\" />\n </bento-dropdown>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, defineComponent, type PropType } from 'vue';\n import type { BentoTagListboxOptions } from './dropdown-tag.types';\n import type { BentoListboxSelectedValue } from '../../../../../types';\n import { ListboxOptionTag } from '../../../../internal';\n import BentoDropdown from '../../../dropdown.vue';\n\n const props = defineProps({\n ...BentoDropdown.props,\n /**\n * The option elements to populate the tag dropdown with.\n * It must be an array of {@see BentoTagListboxOptions }\n * * @property {string} value.label - Text to be displayed in the option\n * * @property {string,number} value.value - Value of the option\n * * @property {string} value.variant - The BentTag variant shown for the option.\n */\n items: {\n type: Array as PropType<BentoTagListboxOptions>,\n default: () => [],\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when an item is selected\n */\n (e: 'input', selectedValue: BentoListboxSelectedValue);\n }>();\n\n const onInput = (selectedValue: BentoListboxSelectedValue) => emit('input', selectedValue);\n\n const tagItems = computed(() => props.items?.map(({ label, value, variant }) => ({ label, value, data: variant })));\n</script>\n\n<script lang=\"ts\">\n /**\n * A Tag Dropdown showing a selectable list of tags.\n *\n * @example\n * import { BentoDropdownTag } from '@adyen/bento-vue2';\n * import type { BentoTagListboxOptions } from '@adyen/bento-vue2'\n *\n * export default {\n * components: { BentoDropdownTag },\n * template: `\n * <bento-dropdown-tag\n * v-model=\"selectedValue\"\n * :disabled=\"false\"\n * :items=\"options\"\n * />\n * `,\n * setup() {\n * const selectedValue = ref('unique-id-1') // Default value\n * const options: BentoTagListboxOptions = [\n * { label: 'Offline', value: 'unique-id-1', variant: 'red' },\n * { label: 'Online', value: 'unique-id-2', variant: 'green' },\n * ];\n * return { options, selectedValue };\n * }\n * }\n */\n export default defineComponent({\n name: 'bento-dropdown-tag',\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./dropdown-tag.scss\" />\n"],"names":["__default__$4","defineComponent","props","__props","emit","__emit","onInput","selectedValue","dropdownItems","computed","value","label","src","__default__$3","variant","items","toRefs","countryItems","useCountryItems","item","deprecate","__default__$2","filteredItems","ref","watch","search","searchTerm","searchableItems","searchResults","useSearchBarFilter","_a","normalizedResults","result","__default__$1","__default__","tagItems"],"mappings":";;;;;;;;;;AA4DI,MAAAA,IAAAC,EAAA;AAAA,EAA+B,MAAA;AAE/B,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA/CA,UAAAC,IAAAC,GAIAC,IAAAC,GAOAC,IAAA,CAAAC,MAAAH,EAAA,SAAAG,CAAA,GAEAC,IAAAC,EAAA,MAAAP,EAAA,MAAA,IAAA,CAAA,EAAA,OAAAQ,GAAA,OAAAC,GAAA,KAAAC,EAAA,OAAA,EAAA,OAAAF,GAAA,OAAAC,GAAA,MAAAC,EAAA,EAAA,CAAA;;;;;;;;;;;;;;;;ICgEAC,IAAAZ,EAAA;AAAA,EAA+B,MAAA;AAE/B,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;AA5EA,UAAAC,IAAAC,GAwBAC,IAAAC,GAOAC,IAAA,CAAAC,MAAAH,EAAA,SAAAG,CAAA,GAEA,EAAA,SAAAO,GAAA,OAAAC,EAAA,IAAAC,EAAAd,CAAA,GACAe,IAAAC,EAAAJ,GAAAC,CAAA;AAEA,YAAAD,EAAA,UAAA,YAAAC,EAAA,MAAA,KAAA,CAAAI,MAAAA,EAAA,KAAA,MACIC;AAAA,MAAA;AAAA,MACI;AAAA,MACA;AAAA,IACA;;;;;;;;;;;;;;;;;IC4CRC,IAAApB,EAAA;AAAA,EAA+B,MAAA;AAE/B,CAAA;;;;;;;;;;;;;;;;;AA1FA,UAAAC,IAAAC,GAcAC,IAAAC,GAOAC,IAAA,CAAAC,MAAAH,EAAA,SAAAG,CAAA,GACAe,IAAAC,EAAA,CAAA,CAAA;AAEA,IAAAC;AAAA,MAAA,MAAAtB,EAAA;AAAA,MACgB,MAAAoB,EAAA,QAAApB,EAAA;AAAA,MACuB,EAAA,WAAA,GAAA;AAAA,IACjB;AAGtB,UAAAuB,IAAAvB,EAAA,SAAAA,EAAA,SAAA;AAAA,MAEM,cAAA;AAAA,MACkB,aAAA,OAAAwB,MAAA;;AAGV,cAAAC,IAAAzB,EAAA,MAAA,IAAA,CAAAiB,OAAA;AAAA,UAAiD,GAAAA;AAAA,UAC1C,OAAA,GAAAA,EAAA,KAAA,IAAAA,EAAA,KAAA;AAAA,QAC+B,EAAA,GAGtCS,IAAAC;AAAA,UAAsBN,EAAAG,CAAA;AAAA,UACJH,EAAAI,CAAA;AAAA,WACkCG,IAAA5B,KAAA,gBAAAA,EAAA,WAAA,gBAAA4B,EAAA;AAAA,UACjCP,EAAA,EAAA;AAAA,QACN,EAAA,OAIbQ,IAAAH,KAAA,gBAAAA,EAAA,IAAA,CAAAI,OAAA;AAAA,UAAwD,GAAAA;AAAA,UACjD,OAAAA,EAAA,MAAA,UAAAA,EAAA,MAAA,SAAA,CAAA;AAAA,QACkD;AAGzD,QAAAV,EAAA,QAAAS;AAAA,MAAsB;AAAA,IAC1B;;;;;;;;;;;;ICXVE,IAAAhC,EAAA;AAAA,EAA+B,MAAA;AAE/B,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAzCA,UAAAG,IAAAC,GAOAC,IAAA,CAAAC,MAAAH,EAAA,SAAAG,CAAA;;;;;;;;;;;;;ICgDA2B,IAAAjC,EAAA;AAAA,EAA+B,MAAA;AAE/B,CAAA;;;;;;;;;;;;;;;;;;AAxDA,UAAAC,IAAAC,GAeAC,IAAAC,GAOAC,IAAA,CAAAC,MAAAH,EAAA,SAAAG,CAAA,GAEA4B,IAAA1B,EAAA,MAAA;;AAAA,cAAAqB,IAAA5B,EAAA,UAAA,gBAAA4B,EAAA,IAAA,CAAA,EAAA,OAAAnB,GAAA,OAAAD,GAAA,SAAAI,EAAA,OAAA,EAAA,OAAAH,GAAA,OAAAD,GAAA,MAAAI,EAAA;AAAA,KAAA;;;;;;;;;;;;;;;;"}
@@ -1,21 +1,20 @@
1
- import { ref as C, watch as Ie, computed as d, defineComponent as z, useSlots as Ne, toRefs as $e, createBlock as _, openBlock as S, resolveDynamicComponent as Ae, mergeProps as R, withCtx as F, createElementVNode as oe, withKeys as tt, unref as s, createVNode as X, toHandlers as te, createSlots as ce, renderList as pe, renderSlot as G, normalizeProps as fe, guardReactiveProps as me, createElementBlock as P, createCommentVNode as K, toDisplayString as be, normalizeClass as ve, withDirectives as ae, vShow as Ce, nextTick as I, useAttrs as at, toRef as B, inject as ot, createTextVNode as lt } from "vue";
2
- import { d as Oe, B as nt } from "./typography.DN5eC5ch.js";
3
- import { a as de, b as H, c as st, B as ee, D as it } from "./dropdown-default-textbox.Ce5D3ipi.js";
4
- /* empty css */
5
- import { _ as Y } from "./_plugin-vue_export-helper.CHgC5LLL.js";
6
- import { s as ue } from "./events.FNmSWp_P.js";
1
+ import { ref as C, watch as xe, computed as d, defineComponent as z, useSlots as Ne, toRefs as $e, createBlock as _, openBlock as S, resolveDynamicComponent as Ae, mergeProps as R, withCtx as F, createElementVNode as oe, withKeys as tt, unref as s, createVNode as X, toHandlers as te, createSlots as ce, renderList as pe, renderSlot as G, normalizeProps as fe, guardReactiveProps as me, createElementBlock as P, createCommentVNode as K, toDisplayString as be, normalizeClass as ve, withDirectives as ae, vShow as Ce, nextTick as x, useAttrs as at, toRef as B, inject as ot, createTextVNode as lt } from "vue";
2
+ import { d as Oe, B as nt } from "./typography.CFHvBR7L.js";
7
3
  import { g as J } from "./generate-uid.NJ8tVoha.js";
8
- import { u as rt } from "./aria-label.CaUURpnB.js";
4
+ import { u as st } from "./aria-label.CaUURpnB.js";
9
5
  import { u as ge } from "./i18n.B6g5VX0q.js";
10
- import { a as f, b as ye, B as Be, c as dt, u as ut, d as ct } from "./use-cached-selected-values.Dyoz6cUK.js";
11
- import { u as pt } from "./use-form-layout-loading.D3lALhtC.js";
12
- import { B as ft } from "./directive.Cbdox5VL.js";
13
- import { B as A, a as mt } from "./keyboard-navigation.CqgGzfZQ.js";
6
+ import { a as f, b as ye, B as Be, c as it, u as rt, d as dt } from "./use-cached-selected-values.BcNRo4mZ.js";
7
+ import { u as ut } from "./use-form-layout-loading.D3lALhtC.js";
8
+ import { B as ct } from "./directive.Cbdox5VL.js";
9
+ import { B as A, a as pt } from "./keyboard-navigation.pB8weElW.js";
10
+ import { a as de, b as H, c as ft, B as ee, D as mt } from "./dropdown-default-textbox.DWgL31p1.js";
14
11
  import { u as vt } from "./use-has-slot.B7eQSabc.js";
15
- import { F as yt, E as bt } from "./error-message.DHMHq9bR.js";
16
- import { P as De } from "./popper-container.b5h4zYgT.js";
17
- import "./popper-container.types.BCZMbVFD.js";
18
- import { B as gt } from "./popover.DYgCCUCJ.js";
12
+ import { F as yt, E as bt } from "./error-message.Cu4cIfdg.js";
13
+ import { P as De } from "./popper-container.idDrquM6.js";
14
+ import { h as gt } from "./toggle-button.ByyLw0Yf.js";
15
+ import { _ as Y } from "./_plugin-vue_export-helper.CHgC5LLL.js";
16
+ /* empty css */
17
+ import { s as ue } from "./events.CMzGybJJ.js";
19
18
  import "../assets/dropdown.css";
20
19
  const he = {
21
20
  "en-US": {
@@ -33,7 +32,7 @@ const he = {
33
32
  }
34
33
  }, ht = (t, r, i, a) => {
35
34
  const n = C(t.value), { t: l } = ge({ messages: he });
36
- Ie(t, () => {
35
+ xe(t, () => {
37
36
  n.value = t.value;
38
37
  });
39
38
  const e = d(
@@ -276,7 +275,7 @@ const he = {
276
275
  _: 3
277
276
  }, 16, ["class"]));
278
277
  }
279
- }), wt = /* @__PURE__ */ Y(St, [["__scopeId", "data-v-aa806d62"]]);
278
+ }), wt = /* @__PURE__ */ Y(St, [["__scopeId", "data-v-83c3a61b"]]);
280
279
  let Te = 0;
281
280
  const Et = {
282
281
  beforeCreate() {
@@ -299,13 +298,13 @@ function Ot(t, r, i, a, n, l) {
299
298
  ], 16);
300
299
  }
301
300
  const Bt = /* @__PURE__ */ Y(Et, [["render", Ot]]);
302
- let xe = 0;
301
+ let Ie = 0;
303
302
  const Dt = {
304
303
  beforeCreate() {
305
- this.uuid = xe.toString(), xe += 1;
304
+ this.uuid = Ie.toString(), Ie += 1;
306
305
  }
307
306
  }, Tt = { key: 0 };
308
- function xt(t, r, i, a, n, l) {
307
+ function It(t, r, i, a, n, l) {
309
308
  return S(), P("svg", R({ role: "img" }, t.$attrs, {
310
309
  class: "ui-assets-icons-16",
311
310
  xmlns: "http://www.w3.org/2000/svg",
@@ -320,7 +319,7 @@ function xt(t, r, i, a, n, l) {
320
319
  }, null, -1))
321
320
  ], 16);
322
321
  }
323
- const It = /* @__PURE__ */ Y(Dt, [["render", xt]]), Nt = { class: "b-dropdown-small-textbox__chevron" }, $t = z({
322
+ const xt = /* @__PURE__ */ Y(Dt, [["render", It]]), Nt = { class: "b-dropdown-small-textbox__chevron" }, $t = z({
324
323
  name: "dropdown-small-textbox",
325
324
  inheritAttrs: !1
326
325
  }), At = /* @__PURE__ */ z({
@@ -413,7 +412,7 @@ const It = /* @__PURE__ */ Y(Dt, [["render", xt]]), Nt = { class: "b-dropdown-sm
413
412
  }), (m, D) => (S(), P("div", {
414
413
  class: ve(["b-dropdown-small-textbox", e.value])
415
414
  }, [
416
- X(st, R({
415
+ X(ft, R({
417
416
  ref_key: "baseTextbox",
418
417
  ref: l
419
418
  }, { ...m.$attrs, ...m.$props }, {
@@ -422,7 +421,7 @@ const It = /* @__PURE__ */ Y(Dt, [["render", xt]]), Nt = { class: "b-dropdown-sm
422
421
  }, te(w)), {
423
422
  icon: F(() => [
424
423
  oe("div", Nt, [
425
- ae(X(s(It), { "svg-title": "opened" }, null, 512), [
424
+ ae(X(s(xt), { "svg-title": "opened" }, null, 512), [
426
425
  [Ce, u.value]
427
426
  ]),
428
427
  ae(X(s(Bt), { "svg-title": "closed" }, null, 512), [
@@ -434,7 +433,7 @@ const It = /* @__PURE__ */ Y(Dt, [["render", xt]]), Nt = { class: "b-dropdown-sm
434
433
  }, 16, ["size"])
435
434
  ], 2));
436
435
  }
437
- }), Mt = /* @__PURE__ */ Y(At, [["__scopeId", "data-v-66b5eaa5"]]), Rt = (t, r) => r.value.reduce((i, a) => {
436
+ }), Mt = /* @__PURE__ */ Y(At, [["__scopeId", "data-v-7702d745"]]), Rt = (t, r) => r.value.reduce((i, a) => {
438
437
  if (a.items) {
439
438
  const n = a.items.filter(
440
439
  (e) => t.value.find((u) => u.value === e.value)
@@ -464,11 +463,11 @@ const It = /* @__PURE__ */ Y(Dt, [["render", xt]]), Nt = { class: "b-dropdown-sm
464
463
  }, u, v, b) => {
465
464
  const c = async (y) => {
466
465
  var L;
467
- n.value && await I(), (L = l.value[y]) == null || L.focus();
466
+ n.value && await x(), (L = l.value[y]) == null || L.focus();
468
467
  }, g = async (y) => {
469
- var U, Z;
470
- n.value && await I();
471
- const L = (U = r.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : U.$el.querySelectorAll(
468
+ var q, Z;
469
+ n.value && await x();
470
+ const L = (q = r.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : q.$el.querySelectorAll(
472
471
  "button"
473
472
  );
474
473
  L.length ? (Z = L[y]) == null || Z.focus() : c(y);
@@ -478,11 +477,11 @@ const It = /* @__PURE__ */ Y(Dt, [["render", xt]]), Nt = { class: "b-dropdown-sm
478
477
  y
479
478
  );
480
479
  }, w = () => {
481
- a.value || v(), I(() => {
480
+ a.value || v(), x(() => {
482
481
  p(0), c(0);
483
482
  });
484
483
  }, O = () => {
485
- a.value || v(), I(() => {
484
+ a.value || v(), x(() => {
486
485
  p(l.value.length - 1), c(l.value.length - 1);
487
486
  });
488
487
  }, m = ({ detail: y }) => {
@@ -494,11 +493,11 @@ const It = /* @__PURE__ */ Y(Dt, [["render", xt]]), Nt = { class: "b-dropdown-sm
494
493
  }, h = () => {
495
494
  O();
496
495
  }, V = ({ detail: y }) => {
497
- y.preventDefault(), u(), a.value && I(() => {
496
+ y.preventDefault(), u(), a.value && x(() => {
498
497
  e ? g(0) : (p(i.value), c(i.value));
499
498
  });
500
499
  }, W = ({ detail: y }) => {
501
- y.preventDefault(), u(), a.value && I(() => {
500
+ y.preventDefault(), u(), a.value && x(() => {
502
501
  e ? g(0) : (p(i.value), c(i.value));
503
502
  });
504
503
  }, N = () => {
@@ -518,7 +517,7 @@ const It = /* @__PURE__ */ Y(Dt, [["render", xt]]), Nt = { class: "b-dropdown-sm
518
517
  }));
519
518
  }, _t = ({ inputContainerRef: t, isDropdownOpen: r }, i) => {
520
519
  const a = () => {
521
- r.value && i(), I(() => {
520
+ r.value && i(), x(() => {
522
521
  Me(t);
523
522
  });
524
523
  };
@@ -531,7 +530,7 @@ const It = /* @__PURE__ */ Y(Dt, [["render", xt]]), Nt = { class: "b-dropdown-sm
531
530
  };
532
531
  function Kt(t, r, i, a) {
533
532
  const n = C(t), l = C(r), e = (v, b = []) => b.flatMap((c) => c.label.toLocaleLowerCase().includes(v) ? a != null && a.value && c.items ? [...e(v, c.items)] : [c, ...e(v, c.items)] : c.items ? [...e(v, c.items)] : []);
534
- return Ie(n, () => {
533
+ return xe(n, () => {
535
534
  i !== void 0 && i(n.value);
536
535
  }), d(() => {
537
536
  if (!n.value || i !== void 0)
@@ -554,11 +553,11 @@ const Re = {
554
553
  all: "Todos",
555
554
  clearFilter: "Limpar filtro"
556
555
  }
557
- }, Ft = Symbol("input field component injection key"), ra = Symbol("input field hint injection key"), da = Symbol("input field parent component injection key"), zt = z({
556
+ }, Ft = Symbol("input field component injection key"), ia = Symbol("input field hint injection key"), ra = Symbol("input field parent component injection key"), zt = z({
558
557
  i18n: { messages: Re },
559
558
  name: "b-dropdown",
560
559
  components: {
561
- DropdownInputDefault: it,
560
+ DropdownInputDefault: mt,
562
561
  DropdownInputSmall: Mt
563
562
  }
564
563
  }), Vt = /* @__PURE__ */ z({
@@ -596,17 +595,17 @@ const Re = {
596
595
  emits: ["input", "show-more"],
597
596
  setup(t, { expose: r, emit: i }) {
598
597
  var Ee;
599
- const a = at(), n = Ne(), l = vt(n), e = t, u = i, { t: v } = ge({ messages: Re }), b = C(null), c = C(null), g = C(null), p = C(!1), w = J("bento-dropdown-options-container"), O = J("dropdown-label"), m = J("dropdown-description"), D = J("dropdown-error"), { isReadOnly: E } = pt(B(e, "readonly")), { cachedSelectedListboxOptions: h, cachedListboxSelectedValues: V, setCachedValues: W } = dt(
598
+ const a = at(), n = Ne(), l = vt(n), e = t, u = i, { t: v } = ge({ messages: Re }), b = C(null), c = C(null), g = C(null), p = C(!1), w = J("bento-dropdown-options-container"), O = J("dropdown-label"), m = J("dropdown-description"), D = J("dropdown-error"), { isReadOnly: E } = ut(B(e, "readonly")), { cachedSelectedListboxOptions: h, cachedListboxSelectedValues: V, setCachedValues: W } = it(
600
599
  B(e, "items"),
601
600
  B(e, "value"),
602
601
  B(e, "multiple"),
603
602
  B(e, "enableValueLabelPair")
604
- ), N = C(a["aria-label"]), { ariaLabel: T, label: $ } = $e(e), y = d(() => v("ariaLabelFallback")), L = rt({
603
+ ), N = C(a["aria-label"]), { ariaLabel: T, label: $ } = $e(e), y = d(() => v("ariaLabelFallback")), L = st({
605
604
  // TODO: take ariaLabel ref away when aria-label prop is removed
606
605
  ariaLabel: T.value || N,
607
606
  label: $,
608
607
  defaultFallback: y
609
- }), U = e.size === ee.SMALL || ot(Ft, !1), Z = d(() => U ? ee.SMALL : ee.DEFAULT), Pe = d(() => ({
608
+ }), q = e.size === ee.SMALL || ot(Ft, !1), Z = d(() => q ? ee.SMALL : ee.DEFAULT), Pe = d(() => ({
610
609
  "b-dropdown--condensed": e.condensed
611
610
  })), ke = d(() => ({
612
611
  "b-dropdown__description--error": !!e.errorMessage
@@ -622,37 +621,37 @@ const Re = {
622
621
  );
623
622
  if (!e.multiple && e.staticCategories) {
624
623
  const o = e.items.find(
625
- (k) => k.items.some((j) => j.value === e.value)
624
+ (k) => k.items.some((U) => U.value === e.value)
626
625
  );
627
626
  return o ? o.items.find((k) => k.value === e.value) : null;
628
627
  }
629
628
  return e.items.find(({ value: o }) => o === (e == null ? void 0 : e.value));
630
629
  }), Fe = d(() => {
631
- const o = le.value.findIndex(({ value: x }) => e.enableValueLabelPair ? e.value.value === x : e.value === x);
630
+ const o = le.value.findIndex(({ value: I }) => e.enableValueLabelPair ? e.value.value === I : e.value === I);
632
631
  return o > -1 ? o : 0;
633
- }), { isMultiLevelSelect: Se, flattenedItemsList: ze } = ut(Q), Ve = d(() => Se.value && !e.staticCategories), We = d(() => Ve.value ? "treeitem" : "option"), Ue = d(() => {
632
+ }), { isMultiLevelSelect: Se, flattenedItemsList: ze } = rt(Q), Ve = d(() => Se.value && !e.staticCategories), We = d(() => Ve.value ? "treeitem" : "option"), qe = d(() => {
634
633
  if (e.multiple) {
635
- const o = Array.isArray(e.value) ? e.value.length : 0, x = Se.value ? ze.value.length : Q.value.length;
636
- return o === 0 ? null : !e.hasMoreItems && x > 0 && x === o ? v("all") : o;
634
+ const o = Array.isArray(e.value) ? e.value.length : 0, I = Se.value ? ze.value.length : Q.value.length;
635
+ return o === 0 ? null : !e.hasMoreItems && I > 0 && I === o ? v("all") : o;
637
636
  }
638
637
  return null;
639
- }), je = d(
638
+ }), Ue = d(
640
639
  () => `${e.description ? m : ""} ${e.errorMessage ? D : ""}`.trim() || null
641
- ), qe = d(() => {
640
+ ), je = d(() => {
642
641
  var o;
643
642
  return (o = g.value) == null ? void 0 : o.$el;
644
- }), { visibleDomOptions: He, updateVisibleDomOptions: we } = ct(
645
- qe,
643
+ }), { visibleDomOptions: He, updateVisibleDomOptions: we } = dt(
644
+ je,
646
645
  le,
647
646
  We
648
647
  ), Je = () => {
649
- E.value || (p.value = !0, I(() => {
648
+ E.value || (p.value = !0, x(() => {
650
649
  we();
651
650
  }));
652
651
  }, se = () => {
653
652
  p.value = !1;
654
653
  }, ie = () => {
655
- E.value || (p.value = !p.value, I(() => {
654
+ E.value || (p.value = !p.value, x(() => {
656
655
  we();
657
656
  }), ne.value && (M.value = ""));
658
657
  }, Ye = () => {
@@ -689,14 +688,14 @@ const Re = {
689
688
  return e.error && Oe(
690
689
  'BentoDropdown "error" property',
691
690
  `Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
692
- Having the field as "undefined" will hide/remove the error.
693
- <bento-dropdown errorMessage="Error message text" />`,
691
+ Having the field as "undefined" will hide/remove the error.
692
+ <bento-dropdown errorMessage="Error message text" />`,
694
693
  "2.0.0"
695
694
  ), e.size && Oe('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), r({
696
695
  focus: () => {
697
696
  b.value.focus();
698
697
  }
699
- }), (o, x) => {
698
+ }), (o, I) => {
700
699
  var k;
701
700
  return ae((S(), P("div", {
702
701
  class: ve(["b-dropdown", Pe.value])
@@ -719,35 +718,36 @@ const Re = {
719
718
  ref: b,
720
719
  condensed: o.condensed,
721
720
  value: M.value,
722
- "additional-items-selected": Ue.value,
721
+ "additional-items-selected": qe.value,
723
722
  "aria-controls": s(w),
724
723
  ariaExpanded: p.value,
725
724
  "aria-labelledby": s($) ? s(O) : null,
726
- "aria-describedby": je.value,
725
+ "aria-describedby": Ue.value,
727
726
  "aria-label": s(L),
728
727
  "aria-readonly": s(E),
729
728
  readonly: s(E),
729
+ required: o.required,
730
730
  disabled: o.disabled,
731
731
  "display-value": s(_e),
732
732
  "dynamic-filtering": o.dynamicFiltering,
733
733
  "is-invalid": !!o.errorMessage || o.error,
734
734
  multiple: o.multiple,
735
735
  open: p.value,
736
- "selected-value-item": s(U) ? void 0 : Ke.value,
736
+ "selected-value-item": s(q) ? void 0 : Ke.value,
737
737
  "show-slot-content-in-multiple": o.showSlotContentInMultiple,
738
- onInput: x[0] || (x[0] = (j) => M.value = j),
738
+ onInput: I[0] || (I[0] = (U) => M.value = U),
739
739
  onOpen: ie,
740
740
  onClose: ie
741
741
  }, ce({ _: 2 }, [
742
- pe(s(n), (j, q) => ({
743
- name: q,
742
+ pe(s(n), (U, j) => ({
743
+ name: j,
744
744
  fn: F((re) => [
745
- G(o.$slots, q, fe(me(re)), void 0, !0)
745
+ G(o.$slots, j, fe(me(re)), void 0, !0)
746
746
  ])
747
747
  }))
748
- ]), 1064, ["condensed", "value", "additional-items-selected", "aria-controls", "ariaExpanded", "aria-labelledby", "aria-describedby", "aria-label", "aria-readonly", "readonly", "disabled", "display-value", "dynamic-filtering", "is-invalid", "multiple", "open", "selected-value-item", "show-slot-content-in-multiple"]))
748
+ ]), 1064, ["condensed", "value", "additional-items-selected", "aria-controls", "ariaExpanded", "aria-labelledby", "aria-describedby", "aria-label", "aria-readonly", "readonly", "required", "disabled", "display-value", "dynamic-filtering", "is-invalid", "multiple", "open", "selected-value-item", "show-slot-content-in-multiple"]))
749
749
  ], 16)), [
750
- [s(mt)]
750
+ [s(pt)]
751
751
  ]),
752
752
  b.value ? (S(), _(s(wt), R({
753
753
  key: 1,
@@ -772,10 +772,10 @@ const Re = {
772
772
  "lazy-load-type": o.lazyLoadType,
773
773
  "virtual-scroll": o.virtualScroll
774
774
  }, te(et)), ce({ _: 2 }, [
775
- pe(s(n), (j, q) => ({
776
- name: q,
775
+ pe(s(n), (U, j) => ({
776
+ name: j,
777
777
  fn: F((re) => [
778
- G(o.$slots, q, fe(me(re)), void 0, !0)
778
+ G(o.$slots, j, fe(me(re)), void 0, !0)
779
779
  ])
780
780
  }))
781
781
  ]), 1040, ["id", "aria-label", "component-loading", "empty-state", "debounce-time", "disabled", "is-option-disabled", "items", "multiple", "static-categories", "open", "selected-value", "searching", "target-element", "loading", "has-more-items", "lazy-load-type", "virtual-scroll"])) : K("", !0),
@@ -799,16 +799,16 @@ const Re = {
799
799
  _: 3
800
800
  }, 8, ["id", "class"])) : K("", !0)
801
801
  ], 2)), [
802
- [s(ft), Ye]
802
+ [s(ct), Ye]
803
803
  ]);
804
804
  };
805
805
  }
806
- }), ua = /* @__PURE__ */ Y(Vt, [["__scopeId", "data-v-377e31c9"]]);
806
+ }), da = /* @__PURE__ */ Y(Vt, [["__scopeId", "data-v-d801c4da"]]);
807
807
  export {
808
- ua as B,
809
- ra as I,
808
+ da as B,
809
+ ia as I,
810
810
  Ft as a,
811
- da as b,
811
+ ra as b,
812
812
  Kt as u
813
813
  };
814
- //# sourceMappingURL=dropdown.CMOYmQLB.js.map
814
+ //# sourceMappingURL=dropdown.Co86azLK.js.map