@adyen/bento-vue2 1.94.0 → 1.96.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 (270) hide show
  1. package/dist/@types/components.d.ts +2 -0
  2. package/dist/@types/index.d.ts +373 -126
  3. package/dist/action-bar.js +1 -1
  4. package/dist/ai-tag.js +1 -1
  5. package/dist/alert.js +1 -1
  6. package/dist/anchor-scroller.js +1 -1
  7. package/dist/assets/accordion-item.css +1 -1
  8. package/dist/assets/action-bar.css +1 -1
  9. package/dist/assets/base-modal.css +1 -1
  10. package/dist/assets/button-actions.css +1 -1
  11. package/dist/assets/card.css +1 -1
  12. package/dist/assets/dashed-underline.css +1 -1
  13. package/dist/assets/data-grid.css +1 -1
  14. package/dist/assets/date-picker.css +1 -1
  15. package/dist/assets/date-range-picker.css +1 -1
  16. package/dist/assets/date-time-picker.css +1 -0
  17. package/dist/assets/dialog-page.css +1 -1
  18. package/dist/assets/draggable-handle.css +1 -1
  19. package/dist/assets/dropdown.css +1 -1
  20. package/dist/assets/field-label.css +1 -1
  21. package/dist/assets/file-uploader.css +1 -1
  22. package/dist/assets/filter-bar.css +1 -1
  23. package/dist/assets/form-layout-group.css +1 -0
  24. package/dist/assets/form-layout-title.css +1 -1
  25. package/dist/assets/header-meta.css +1 -1
  26. package/dist/assets/input-field-password.css +1 -1
  27. package/dist/assets/input-field.css +1 -1
  28. package/dist/assets/inspector.css +1 -1
  29. package/dist/assets/link.css +1 -1
  30. package/dist/assets/modal-fullscreen.css +1 -1
  31. package/dist/assets/navigation-menu-group.css +1 -1
  32. package/dist/assets/secondary-nav.css +1 -1
  33. package/dist/assets/sidepanel.css +1 -1
  34. package/dist/button.js +3 -3
  35. package/dist/card.js +1 -1
  36. package/dist/checkbox.js +2 -2
  37. package/dist/chunks/{action-bar.ZR2oO4Qc.js → action-bar.Chu-0oVy.js} +5 -5
  38. package/dist/chunks/{action-bar.ZR2oO4Qc.js.map → action-bar.Chu-0oVy.js.map} +1 -1
  39. package/dist/chunks/{ai-button.7L9bANlk.js → ai-button.DvOq4s2_.js} +2 -2
  40. package/dist/chunks/{ai-button.7L9bANlk.js.map → ai-button.DvOq4s2_.js.map} +1 -1
  41. package/dist/chunks/{ai-tag.CzloguAR.js → ai-tag.DVmvni7U.js} +2 -2
  42. package/dist/chunks/{ai-tag.CzloguAR.js.map → ai-tag.DVmvni7U.js.map} +1 -1
  43. package/dist/chunks/{alert.CLqcPN0Q.js → alert.B4bHCE8V.js} +2 -2
  44. package/dist/chunks/{alert.CLqcPN0Q.js.map → alert.B4bHCE8V.js.map} +1 -1
  45. package/dist/chunks/{anchor-scroller.8LdkI0J0.js → anchor-scroller.B8VXotik.js} +4 -4
  46. package/dist/chunks/{anchor-scroller.8LdkI0J0.js.map → anchor-scroller.B8VXotik.js.map} +1 -1
  47. package/dist/chunks/{base-modal.YbZ5vHH4.js → base-modal.CC7gm9fc.js} +7 -7
  48. package/dist/chunks/{base-modal.YbZ5vHH4.js.map → base-modal.CC7gm9fc.js.map} +1 -1
  49. package/dist/chunks/{button-actions-with-menu.CljH-yOh.js → button-actions-with-menu.BlOBDvdL.js} +3 -3
  50. package/dist/chunks/{button-actions-with-menu.CljH-yOh.js.map → button-actions-with-menu.BlOBDvdL.js.map} +1 -1
  51. package/dist/chunks/{button-actions.CyMKvVwN.js → button-actions.D1jRC1fs.js} +3 -3
  52. package/dist/chunks/{button-actions.CyMKvVwN.js.map → button-actions.D1jRC1fs.js.map} +1 -1
  53. package/dist/chunks/{button.C9b2AC9w.js → button.DITA6YtS.js} +2 -2
  54. package/dist/chunks/{button.C9b2AC9w.js.map → button.DITA6YtS.js.map} +1 -1
  55. package/dist/chunks/{calendar.CCUVI1IF.js → calendar.D0JIbmoS.js} +327 -321
  56. package/dist/chunks/calendar.D0JIbmoS.js.map +1 -0
  57. package/dist/chunks/{card.DqKD40s7.js → card.ErZLKN0q.js} +2 -2
  58. package/dist/chunks/{card.DqKD40s7.js.map → card.ErZLKN0q.js.map} +1 -1
  59. package/dist/chunks/{checkbox-group.0tRtGhHh.js → checkbox-group.BAjvgXlc.js} +3 -3
  60. package/dist/chunks/{checkbox-group.0tRtGhHh.js.map → checkbox-group.BAjvgXlc.js.map} +1 -1
  61. package/dist/chunks/{checkbox.D-5Uyu7y.js → checkbox.BAQDBNL6.js} +2 -2
  62. package/dist/chunks/{checkbox.D-5Uyu7y.js.map → checkbox.BAQDBNL6.js.map} +1 -1
  63. package/dist/chunks/{code-snippet.CmUPzpQp.js → code-snippet.lcQRsLdZ.js} +5 -5
  64. package/dist/chunks/{code-snippet.CmUPzpQp.js.map → code-snippet.lcQRsLdZ.js.map} +1 -1
  65. package/dist/chunks/{controls-group.CcI4EbW_.js → controls-group.Bzpsrtcx.js} +2 -2
  66. package/dist/chunks/{controls-group.CcI4EbW_.js.map → controls-group.Bzpsrtcx.js.map} +1 -1
  67. package/dist/chunks/{copy.BA1G-Pi2.js → copy.DVB6pQC8.js} +4 -4
  68. package/dist/chunks/{copy.BA1G-Pi2.js.map → copy.DVB6pQC8.js.map} +1 -1
  69. package/dist/chunks/{dashboard-section.BOySJG3P.js → dashboard-section.DiGQXS9L.js} +4 -4
  70. package/dist/chunks/{dashboard-section.BOySJG3P.js.map → dashboard-section.DiGQXS9L.js.map} +1 -1
  71. package/dist/chunks/dashed-underline.Cl07OQID.js +55 -0
  72. package/dist/chunks/dashed-underline.Cl07OQID.js.map +1 -0
  73. package/dist/chunks/{data-grid-template.C6Sym5we.js → data-grid-template.BVppx9kZ.js} +4 -4
  74. package/dist/chunks/{data-grid-template.C6Sym5we.js.map → data-grid-template.BVppx9kZ.js.map} +1 -1
  75. package/dist/chunks/{data-grid.By3YYFjp.js → data-grid.Djy7XjVS.js} +216 -216
  76. package/dist/chunks/{data-grid.By3YYFjp.js.map → data-grid.Djy7XjVS.js.map} +1 -1
  77. package/dist/chunks/{date-picker.B5dusL9n.js → date-picker.BWxvyK5J.js} +96 -88
  78. package/dist/chunks/date-picker.BWxvyK5J.js.map +1 -0
  79. package/dist/chunks/{date-range-picker.C_9uZ3up.js → date-range-picker.gfRJmzXn.js} +255 -274
  80. package/dist/chunks/date-range-picker.gfRJmzXn.js.map +1 -0
  81. package/dist/chunks/date-time-picker.BIl9kFLh.js +129 -0
  82. package/dist/chunks/date-time-picker.BIl9kFLh.js.map +1 -0
  83. package/dist/chunks/{dialog-page.B65F56Ha.js → dialog-page.DYWnKdnP.js} +3 -3
  84. package/dist/chunks/{dialog-page.B65F56Ha.js.map → dialog-page.DYWnKdnP.js.map} +1 -1
  85. package/dist/chunks/directive.BBWhsNtO.js +28 -0
  86. package/dist/chunks/directive.BBWhsNtO.js.map +1 -0
  87. package/dist/chunks/{draggable-handle.BFGaZNTT.js → draggable-handle.DIhHtHG9.js} +531 -500
  88. package/dist/chunks/{draggable-handle.BFGaZNTT.js.map → draggable-handle.DIhHtHG9.js.map} +1 -1
  89. package/dist/chunks/{drawer.DqUvBlma.js → drawer.WW7G9cSC.js} +46 -19
  90. package/dist/chunks/{drawer.DqUvBlma.js.map → drawer.WW7G9cSC.js.map} +1 -1
  91. package/dist/chunks/{dropdown-tag.CY0-p_gn.js → dropdown-tag.CuDxdSfb.js} +3 -3
  92. package/dist/chunks/{dropdown-tag.CY0-p_gn.js.map → dropdown-tag.CuDxdSfb.js.map} +1 -1
  93. package/dist/chunks/{dropdown.Dx0HybJ8.js → dropdown.C70AlvOT.js} +375 -368
  94. package/dist/chunks/dropdown.C70AlvOT.js.map +1 -0
  95. package/dist/chunks/{empty-state.DMV23IZy.js → empty-state.Dttc-ZO_.js} +2 -2
  96. package/dist/chunks/{empty-state.DMV23IZy.js.map → empty-state.Dttc-ZO_.js.map} +1 -1
  97. package/dist/chunks/{field-label.Cq01oVR-.js → field-label.CdVbAfK-.js} +2 -2
  98. package/dist/chunks/{field-label.Cq01oVR-.js.map → field-label.CdVbAfK-.js.map} +1 -1
  99. package/dist/chunks/{file-uploader.BdvtbVvC.js → file-uploader.CO2MeHwl.js} +8 -8
  100. package/dist/chunks/{file-uploader.BdvtbVvC.js.map → file-uploader.CO2MeHwl.js.map} +1 -1
  101. package/dist/chunks/{filter-bar.mPy_N4BF.js → filter-bar.C6ZBgizQ.js} +25 -25
  102. package/dist/chunks/{filter-bar.mPy_N4BF.js.map → filter-bar.C6ZBgizQ.js.map} +1 -1
  103. package/dist/chunks/{fixed-scroller.DR2E_No4.js → fixed-scroller.4xAzt_OI.js} +2 -2
  104. package/dist/chunks/{fixed-scroller.DR2E_No4.js.map → fixed-scroller.4xAzt_OI.js.map} +1 -1
  105. package/dist/chunks/{focus-trap.CKs45fnj.js → focus-trap.CBIb3SyN.js} +22 -22
  106. package/dist/chunks/{focus-trap.CKs45fnj.js.map → focus-trap.CBIb3SyN.js.map} +1 -1
  107. package/dist/chunks/{footer-actions.BE_hrleY.js → footer-actions.CZE9dcmA.js} +3 -3
  108. package/dist/chunks/{footer-actions.BE_hrleY.js.map → footer-actions.CZE9dcmA.js.map} +1 -1
  109. package/dist/chunks/form-layout-group.zE6TNlzD.js +84 -0
  110. package/dist/chunks/form-layout-group.zE6TNlzD.js.map +1 -0
  111. package/dist/chunks/form-layout-title.CXXdsiK5.js +171 -0
  112. package/dist/chunks/form-layout-title.CXXdsiK5.js.map +1 -0
  113. package/dist/chunks/header-meta.6rZdOgXD.js +239 -0
  114. package/dist/chunks/{header-meta._l0IV3jf.js.map → header-meta.6rZdOgXD.js.map} +1 -1
  115. package/dist/chunks/{header-with-views.LrySsX1p.js → header-with-views.m0xMmoav.js} +11 -11
  116. package/dist/chunks/{header-with-views.LrySsX1p.js.map → header-with-views.m0xMmoav.js.map} +1 -1
  117. package/dist/chunks/{header.BJZ-o7Mz.js → header.BsroOD5b.js} +3 -3
  118. package/dist/chunks/{header.BJZ-o7Mz.js.map → header.BsroOD5b.js.map} +1 -1
  119. package/dist/chunks/{index.DZx81HG1.js → index.CJYgd0QI.js} +220 -197
  120. package/dist/chunks/{index.DZx81HG1.js.map → index.CJYgd0QI.js.map} +1 -1
  121. package/dist/chunks/{info-icon.CRpEtx-P.js → info-icon.9Nt7zg3D.js} +3 -3
  122. package/dist/chunks/{info-icon.CRpEtx-P.js.map → info-icon.9Nt7zg3D.js.map} +1 -1
  123. package/dist/chunks/{input-field-password.C2ogXvbh.js → input-field-password.CRqYWZGS.js} +48 -49
  124. package/dist/chunks/input-field-password.CRqYWZGS.js.map +1 -0
  125. package/dist/chunks/{input-field-phone-number.D8Enmcny.js → input-field-phone-number.DHiuL0cF.js} +13 -14
  126. package/dist/chunks/{input-field-phone-number.D8Enmcny.js.map → input-field-phone-number.DHiuL0cF.js.map} +1 -1
  127. package/dist/chunks/{input-field.CRsU2NBh.js → input-field.BkQZ6Qzl.js} +77 -74
  128. package/dist/chunks/input-field.BkQZ6Qzl.js.map +1 -0
  129. package/dist/chunks/{input-time.BSrSAN3r.js → input-time.BiOHvUEA.js} +7 -8
  130. package/dist/chunks/{input-time.BSrSAN3r.js.map → input-time.BiOHvUEA.js.map} +1 -1
  131. package/dist/chunks/{inspector.Dagz-JL1.js → inspector.BY3SoX-l.js} +4 -4
  132. package/dist/chunks/{inspector.Dagz-JL1.js.map → inspector.BY3SoX-l.js.map} +1 -1
  133. package/dist/chunks/{layout-row.CdpQeT7f.js → layout-row.BI9ZJa-9.js} +13 -13
  134. package/dist/chunks/{layout-row.CdpQeT7f.js.map → layout-row.BI9ZJa-9.js.map} +1 -1
  135. package/dist/chunks/{link.DB5g6d48.js → link.BpuCRgok.js} +11 -11
  136. package/dist/chunks/link.BpuCRgok.js.map +1 -0
  137. package/dist/chunks/{list-item.CQEmr9Yw.js → list-item.D2ZLiS_D.js} +2 -2
  138. package/dist/chunks/{list-item.CQEmr9Yw.js.map → list-item.D2ZLiS_D.js.map} +1 -1
  139. package/dist/chunks/{listbox-option-tag.CnxNmmva.js → listbox-option-tag.Ddyl2vuc.js} +2 -2
  140. package/dist/chunks/{listbox-option-tag.CnxNmmva.js.map → listbox-option-tag.Ddyl2vuc.js.map} +1 -1
  141. package/dist/chunks/{modal-fullscreen.D5A5qJQ6.js → modal-fullscreen.OS6KhVdg.js} +6 -6
  142. package/dist/chunks/{modal-fullscreen.D5A5qJQ6.js.map → modal-fullscreen.OS6KhVdg.js.map} +1 -1
  143. package/dist/chunks/{modal.Bm-nN8pa.js → modal.DHL3TGHv.js} +5 -5
  144. package/dist/chunks/{modal.Bm-nN8pa.js.map → modal.DHL3TGHv.js.map} +1 -1
  145. package/dist/chunks/navigation-menu-group.Dv2_ZRRq.js +261 -0
  146. package/dist/chunks/navigation-menu-group.Dv2_ZRRq.js.map +1 -0
  147. package/dist/chunks/{pagination.Jv60K59y.js → pagination.DItyAwy1.js} +3 -3
  148. package/dist/chunks/{pagination.Jv60K59y.js.map → pagination.DItyAwy1.js.map} +1 -1
  149. package/dist/chunks/popover.types.B9TXaqAt.js +6 -0
  150. package/dist/chunks/{popover.types.CQ5g4kw2.js.map → popover.types.B9TXaqAt.js.map} +1 -1
  151. package/dist/chunks/{popper-container.D10i5aF5.js → popper-container.CFYFCz6u.js} +2 -2
  152. package/dist/chunks/{popper-container.D10i5aF5.js.map → popper-container.CFYFCz6u.js.map} +1 -1
  153. package/dist/chunks/{promo-banner.DjRIdEh7.js → promo-banner.tljKS80K.js} +3 -3
  154. package/dist/chunks/{promo-banner.DjRIdEh7.js.map → promo-banner.tljKS80K.js.map} +1 -1
  155. package/dist/chunks/{radio-group.BrRXAuJ6.js → radio-group.cn4lZb8R.js} +3 -3
  156. package/dist/chunks/{radio-group.BrRXAuJ6.js.map → radio-group.cn4lZb8R.js.map} +1 -1
  157. package/dist/chunks/{rich-text-editor.DazA-Rlh.js → rich-text-editor.Dwq3Z_lK.js} +6 -6
  158. package/dist/chunks/{rich-text-editor.DazA-Rlh.js.map → rich-text-editor.Dwq3Z_lK.js.map} +1 -1
  159. package/dist/chunks/{search-bar.DeKlBnxE.js → search-bar.D-WK8eMQ.js} +10 -11
  160. package/dist/chunks/{search-bar.DeKlBnxE.js.map → search-bar.D-WK8eMQ.js.map} +1 -1
  161. package/dist/chunks/secondary-nav.C7lEDaoj.js +259 -0
  162. package/dist/chunks/{secondary-nav.BLF9iQOV.js.map → secondary-nav.C7lEDaoj.js.map} +1 -1
  163. package/dist/chunks/{segmented-control.BBG-0da6.js → segmented-control.C0JtDa4q.js} +2 -2
  164. package/dist/chunks/{segmented-control.BBG-0da6.js.map → segmented-control.C0JtDa4q.js.map} +1 -1
  165. package/dist/chunks/{selection-card-group.CXBbA_P1.js → selection-card-group.ZZ_qF1L1.js} +3 -3
  166. package/dist/chunks/{selection-card-group.CXBbA_P1.js.map → selection-card-group.ZZ_qF1L1.js.map} +1 -1
  167. package/dist/chunks/set-time-in-date.CU7HeZLY.js +27 -0
  168. package/dist/chunks/set-time-in-date.CU7HeZLY.js.map +1 -0
  169. package/dist/chunks/{sidepanel.ChPk9qYd.js → sidepanel.B8zQp_MJ.js} +7 -7
  170. package/dist/chunks/{sidepanel.ChPk9qYd.js.map → sidepanel.B8zQp_MJ.js.map} +1 -1
  171. package/dist/chunks/{structured-list-item.Dwftc8Ns.js → structured-list-item.DE0L0kvs.js} +5 -5
  172. package/dist/chunks/{structured-list-item.Dwftc8Ns.js.map → structured-list-item.DE0L0kvs.js.map} +1 -1
  173. package/dist/chunks/{summary-grid.types.Cv27iNrx.js → summary-grid.types.CkqRXOKv.js} +5 -5
  174. package/dist/chunks/{summary-grid.types.Cv27iNrx.js.map → summary-grid.types.CkqRXOKv.js.map} +1 -1
  175. package/dist/chunks/tab.QEKU5Udp.js +256 -0
  176. package/dist/chunks/{tab.t1v1GxSA.js.map → tab.QEKU5Udp.js.map} +1 -1
  177. package/dist/chunks/{tag.lfN7xFuw.js → tag.CbNFG45Y.js} +2 -2
  178. package/dist/chunks/{tag.lfN7xFuw.js.map → tag.CbNFG45Y.js.map} +1 -1
  179. package/dist/chunks/{textarea.DSRAB-Ox.js → textarea.DJ7095b6.js} +3 -3
  180. package/dist/chunks/{textarea.DSRAB-Ox.js.map → textarea.DJ7095b6.js.map} +1 -1
  181. package/dist/chunks/{timeline-item.gWNnZjsZ.js → timeline-item.sdxvTjmS.js} +8 -8
  182. package/dist/chunks/{timeline-item.gWNnZjsZ.js.map → timeline-item.sdxvTjmS.js.map} +1 -1
  183. package/dist/chunks/{toast.d8vg71CB.js → toast.BMGR5QrI.js} +2 -2
  184. package/dist/chunks/{toast.d8vg71CB.js.map → toast.BMGR5QrI.js.map} +1 -1
  185. package/dist/chunks/{tooltip.DmFTmAGi.js → tooltip.CnkqMpOA.js} +3 -3
  186. package/dist/chunks/{tooltip.DmFTmAGi.js.map → tooltip.CnkqMpOA.js.map} +1 -1
  187. package/dist/chunks/{tutorial.CO7DzdET.js → tutorial.Ba9dqb2j.js} +4 -4
  188. package/dist/chunks/{tutorial.CO7DzdET.js.map → tutorial.Ba9dqb2j.js.map} +1 -1
  189. package/dist/chunks/use-bento-delayed-hover.D4rfUUOr.js +30 -0
  190. package/dist/chunks/use-bento-delayed-hover.D4rfUUOr.js.map +1 -0
  191. package/dist/chunks/{use-cached-selected-values.Bnmcr7Ji.js → use-cached-selected-values.D0s14AxT.js} +4 -4
  192. package/dist/chunks/{use-cached-selected-values.Bnmcr7Ji.js.map → use-cached-selected-values.D0s14AxT.js.map} +1 -1
  193. package/dist/chunks/{use-date-input-formatter.BsZ_LLQu.js → use-date-input-formatter.B5GQd3s2.js} +2 -2
  194. package/dist/chunks/{use-date-input-formatter.BsZ_LLQu.js.map → use-date-input-formatter.B5GQd3s2.js.map} +1 -1
  195. package/dist/code-snippet.js +1 -1
  196. package/dist/dashboard-template.js +1 -1
  197. package/dist/dashed-underline.js +1 -1
  198. package/dist/data-grid-template.js +1 -1
  199. package/dist/data-grid.js +1 -1
  200. package/dist/date-picker.js +2 -2
  201. package/dist/date-range-picker.js +2 -2
  202. package/dist/date-time-picker.js +5 -0
  203. package/dist/date-time-picker.js.map +1 -0
  204. package/dist/draggable.js +1 -1
  205. package/dist/drawer.js +1 -1
  206. package/dist/dropdown.js +3 -3
  207. package/dist/empty-state.js +1 -1
  208. package/dist/file-uploader.js +1 -1
  209. package/dist/filter-bar.js +1 -1
  210. package/dist/focus-trap.js +1 -1
  211. package/dist/form-layout.js +5 -4
  212. package/dist/form-layout.js.map +1 -1
  213. package/dist/header-with-views.js +1 -1
  214. package/dist/header.js +1 -1
  215. package/dist/index.js +273 -268
  216. package/dist/index.js.map +1 -1
  217. package/dist/info-icon.js +1 -1
  218. package/dist/input-field-password.js +1 -1
  219. package/dist/input-field-phone-number.js +1 -1
  220. package/dist/input-field.js +1 -1
  221. package/dist/input-time.js +1 -1
  222. package/dist/inspector.js +1 -1
  223. package/dist/internal.js +12 -12
  224. package/dist/layout.js +1 -1
  225. package/dist/link.js +1 -1
  226. package/dist/list.js +1 -1
  227. package/dist/menu.js +1 -1
  228. package/dist/modal-fullscreen.js +1 -1
  229. package/dist/modal.js +2 -2
  230. package/dist/navigation-menu.js +1 -1
  231. package/dist/pagination.js +1 -1
  232. package/dist/popover.js +2 -2
  233. package/dist/popper-container.js +1 -1
  234. package/dist/promo-banner.js +1 -1
  235. package/dist/radio-group.js +1 -1
  236. package/dist/rich-text-editor.js +1 -1
  237. package/dist/search-bar.js +2 -2
  238. package/dist/secondary-nav.js +1 -1
  239. package/dist/segmented-control.js +1 -1
  240. package/dist/selection-card.js +1 -1
  241. package/dist/sidepanel.js +1 -1
  242. package/dist/structured-list.js +1 -1
  243. package/dist/summary-grid.js +1 -1
  244. package/dist/tabs.js +1 -1
  245. package/dist/tag.js +1 -1
  246. package/dist/textarea.js +1 -1
  247. package/dist/timeline.js +1 -1
  248. package/dist/toast.js +1 -1
  249. package/dist/tutorial.js +1 -1
  250. package/dist/web-types.json +170 -3
  251. package/package.json +7 -7
  252. package/dist/chunks/calendar.CCUVI1IF.js.map +0 -1
  253. package/dist/chunks/dashed-underline.B9Q0T4ss.js +0 -77
  254. package/dist/chunks/dashed-underline.B9Q0T4ss.js.map +0 -1
  255. package/dist/chunks/date-picker.B5dusL9n.js.map +0 -1
  256. package/dist/chunks/date-range-picker.C_9uZ3up.js.map +0 -1
  257. package/dist/chunks/directive.Bfr4fuOy.js +0 -23
  258. package/dist/chunks/directive.Bfr4fuOy.js.map +0 -1
  259. package/dist/chunks/dropdown.Dx0HybJ8.js.map +0 -1
  260. package/dist/chunks/form-layout-title.zZVLCyqe.js +0 -248
  261. package/dist/chunks/form-layout-title.zZVLCyqe.js.map +0 -1
  262. package/dist/chunks/header-meta._l0IV3jf.js +0 -248
  263. package/dist/chunks/input-field-password.C2ogXvbh.js.map +0 -1
  264. package/dist/chunks/input-field.CRsU2NBh.js.map +0 -1
  265. package/dist/chunks/link.DB5g6d48.js.map +0 -1
  266. package/dist/chunks/navigation-menu-group.DHWp-pJO.js +0 -216
  267. package/dist/chunks/navigation-menu-group.DHWp-pJO.js.map +0 -1
  268. package/dist/chunks/popover.types.CQ5g4kw2.js +0 -6
  269. package/dist/chunks/secondary-nav.BLF9iQOV.js +0 -223
  270. package/dist/chunks/tab.t1v1GxSA.js +0 -229
@@ -1,216 +0,0 @@
1
- import { defineComponent as B, useSlots as A, ref as h, computed as c, provide as O, toRef as j, inject as $, onMounted as G, onBeforeUnmount as z, watch as J, onUnmounted as K } from "vue";
2
- import { B as T } from "./typography.C8lPlsbD.js";
3
- import { B as Y } from "./button.C9b2AC9w.js";
4
- /* empty css */
5
- import { n as L } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
6
- import { u as E } from "./use-has-slot.C9lQZ6nz.js";
7
- import { g as y } from "./generate-uid.NJ8tVoha.js";
8
- import { u as R } from "./index.B6WW_F-J.js";
9
- import { b as M } from "./tooltip.DmFTmAGi.js";
10
- import { m as D } from "./index.DZx81HG1.js";
11
- import { B as q } from "./link.DB5g6d48.js";
12
- import { u as Q } from "./use-expandable-content-height.2WJLCL-R.js";
13
- import { C as X } from "./chevron-down.eYtgv5ly.js";
14
- import { C as ee } from "./chevron-up.d8cwIlA_.js";
15
- import "../assets/navigation-menu-group.css";
16
- let k = 0;
17
- const te = {
18
- beforeCreate() {
19
- this.uuid = k.toString(), k += 1;
20
- }
21
- };
22
- var ne = function() {
23
- var e = this, n = e._self._c;
24
- return n("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("path", { attrs: { fill: "#001222", d: "M15.5303 13.4697L14.4697 14.5303L12 12.0605L9.53027 14.5303L8.46973 13.4697L12 9.93945L15.5303 13.4697Z" } }), n("path", { attrs: { fill: "#001222", d: "M7 13.75H0V12.25H7V13.75Z" } }), n("path", { attrs: { fill: "#001222", d: "M7 8.75H0V7.25H7V8.75Z" } }), n("path", { attrs: { fill: "#001222", d: "M15.5303 2.53027L12 6.06055L8.46973 2.53027L9.53027 1.46973L12 3.93945L14.4697 1.46973L15.5303 2.53027Z" } }), n("path", { attrs: { fill: "#001222", d: "M7 3.75H0V2.25H7V3.75Z" } })]);
25
- }, ae = [], se = /* @__PURE__ */ L(
26
- te,
27
- ne,
28
- ae,
29
- !1,
30
- null,
31
- null
32
- );
33
- const oe = se.exports;
34
- let N = 0;
35
- const ie = {
36
- beforeCreate() {
37
- this.uuid = N.toString(), N += 1;
38
- }
39
- };
40
- var le = function() {
41
- var e = this, n = e._self._c;
42
- return n("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("path", { attrs: { fill: "#001222", d: "M15.5303 11.5303L12 15.0605L8.46973 11.5303L9.53027 10.4697L12 12.9395L14.4697 10.4697L15.5303 11.5303Z" } }), n("path", { attrs: { fill: "#001222", d: "M7 13.75H0V12.25H7V13.75Z" } }), n("path", { attrs: { fill: "#001222", d: "M7 8.75H0V7.25H7V8.75Z" } }), n("path", { attrs: { fill: "#001222", d: "M15.5303 4.46973L14.4697 5.53027L12 3.06055L9.53027 5.53027L8.46973 4.46973L12 0.939453L15.5303 4.46973Z" } }), n("path", { attrs: { fill: "#001222", d: "M7 3.75H0V2.25H7V3.75Z" } })]);
43
- }, re = [], ue = /* @__PURE__ */ L(
44
- ie,
45
- le,
46
- re,
47
- !1,
48
- null,
49
- null
50
- );
51
- const ce = ue.exports, H = /* @__PURE__ */ Symbol("navigation menu state injection key"), Z = {
52
- "en-US": {
53
- hideAllPages: "Hide all pages",
54
- showAllPages: "Show all pages",
55
- showingCurrentPage: "Showing current page"
56
- }
57
- }, de = {
58
- i18n: { messages: Z }
59
- }, ve = /* @__PURE__ */ B({
60
- ...de,
61
- __name: "navigation-menu",
62
- props: {
63
- label: { default: void 0 },
64
- showExpandAllButton: { type: Boolean, default: !1 },
65
- activePage: { default: void 0 }
66
- },
67
- emits: ["update:active-page"],
68
- setup(p, { emit: e }) {
69
- const n = p, t = A(), b = E(t), C = y("navigation-menu-title"), { t: _ } = R(), l = h([]), v = (o, a, x) => {
70
- l.value.push({ id: o, setOpen: a, getIsOpen: x });
71
- }, r = (o) => {
72
- l.value = l.value.filter((a) => a.id !== o);
73
- }, s = c(() => l.value.length > 0 && l.value.every((o) => o.getIsOpen())), m = c(() => l.value.length > 0 && n.showExpandAllButton), w = c(() => n.label || b("headerActions") || m.value), g = c(() => s.value ? _("hideAllPages") : _("showAllPages")), f = () => {
74
- const o = !s.value;
75
- l.value.forEach(({ setOpen: a }) => a(o));
76
- }, d = (o) => {
77
- e("update:active-page", o);
78
- };
79
- return O(H, {
80
- registerGroup: v,
81
- unregisterGroup: r,
82
- activePage: j(n, "activePage"),
83
- updateActivePage: d
84
- }), { __sfc: !0, props: n, emit: e, slots: t, hasSlot: b, titleId: C, t: _, groups: l, registerGroup: v, unregisterGroup: r, allExpanded: s, computedShowExpandAll: m, showHeader: w, expandButtonLabel: g, toggleAllGroups: f, updateActivePage: d, BentoTypography: T, BentoButton: Y, MenuCollapseIcon: oe, MenuExpandIcon: ce, vBentoTooltipDirective: M };
85
- }
86
- });
87
- var pe = function() {
88
- var e = this, n = e._self._c, t = e._self._setupProxy;
89
- return n("nav", { staticClass: "b-navigation-menu", attrs: { "aria-labelledby": e.label ? t.titleId : void 0 } }, [t.showHeader ? n("div", { staticClass: "b-navigation-menu__header" }, [e.label ? n(t.BentoTypography, { staticClass: "b-navigation-menu__title", attrs: { id: t.titleId, el: "p", variant: "caption", stronger: "" } }, [e._v(" " + e._s(e.label) + " ")]) : e._e(), n("div", { staticClass: "b-navigation-menu__actions-container" }, [t.hasSlot("headerActions") ? n("div", { staticClass: "b-navigation-menu__actions" }, [e._t("headerActions")], 2) : e._e(), t.computedShowExpandAll ? n(t.BentoButton, { directives: [{ name: "bento-tooltip-directive", rawName: "v-bento-tooltip-directive", value: t.expandButtonLabel, expression: "expandButtonLabel" }], attrs: { variant: "tertiary-with-background", "aria-label": t.expandButtonLabel }, on: { click: t.toggleAllGroups }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
90
- return [t.allExpanded ? n(t.MenuCollapseIcon) : n(t.MenuExpandIcon)];
91
- }, proxy: !0 }], null, !1, 3696454570) }) : e._e()], 1)], 1) : e._e(), n("ul", { staticClass: "b-navigation-menu__content" }, [e._t("default")], 2)]);
92
- }, _e = [], ge = /* @__PURE__ */ L(
93
- ve,
94
- pe,
95
- _e,
96
- !1,
97
- null,
98
- "ff9bef84"
99
- );
100
- const Re = ge.exports, U = /* @__PURE__ */ Symbol("navigation menu group state injection key"), me = {
101
- name: "bento-navigation-menu-item"
102
- }, fe = /* @__PURE__ */ B({
103
- ...me,
104
- props: {
105
- nested: { type: Boolean, default: !1 },
106
- label: null,
107
- link: { default: void 0 },
108
- value: null,
109
- alwaysShowActions: { type: Boolean, default: !1 }
110
- },
111
- setup(p) {
112
- const e = p, n = A(), t = E(n), b = c(() => e.link ? q : "div"), C = c(() => e.link ? { ...e.link, disableTypography: !0 } : {}), _ = h(null), l = h(!1);
113
- D(_, () => {
114
- var o;
115
- const d = ((o = _.value) == null ? void 0 : o.$el) ?? _.value;
116
- d && (l.value = d.scrollWidth > d.clientWidth);
117
- });
118
- const v = y("navigation-menu-item"), r = $(U, null), s = $(H, null), m = c(() => {
119
- var d;
120
- return ((d = s == null ? void 0 : s.activePage) == null ? void 0 : d.value) === e.value;
121
- }), w = c(() => !r || !r.isSemiCollapsed.value ? !0 : m.value), g = c(() => ({
122
- "b-navigation-menu-item--selected": m.value,
123
- "b-navigation-menu-item--nested": e.nested,
124
- "b-navigation-menu-item--hidden": !w.value,
125
- "b-navigation-menu-item--always-show-actions": e.alwaysShowActions
126
- }));
127
- G(() => {
128
- r && e.nested && r.registerItem(v, () => m.value);
129
- });
130
- const f = () => {
131
- s == null || s.updateActivePage(e.value);
132
- };
133
- return z(() => {
134
- r && e.nested && r.unregisterItem(v);
135
- }), { __sfc: !0, props: e, slots: n, hasSlot: t, wrapperComponent: b, wrapperProps: C, labelRef: _, isTruncated: l, itemId: v, groupState: r, menuState: s, isSelected: m, isVisible: w, conditionalClasses: g, handleClick: f, BentoTypography: T, vBentoTooltipDirective: M };
136
- }
137
- });
138
- var he = function() {
139
- var e = this, n = e._self._c, t = e._self._setupProxy;
140
- return n("li", [n(t.wrapperComponent, e._b({ tag: "component", staticClass: "b-navigation-menu-item", class: {
141
- ...t.conditionalClasses,
142
- "b-navigation-menu-item--no-icon": !t.hasSlot("icon")
143
- }, attrs: { "aria-current": t.isSelected && e.link ? "page" : void 0, "aria-hidden": t.isVisible ? void 0 : "true", tabindex: t.isVisible ? void 0 : -1, inert: t.isVisible ? void 0 : "" }, on: { click: t.handleClick } }, "component", t.wrapperProps, !1), [!e.nested && t.hasSlot("icon") ? n("div", { staticClass: "b-navigation-menu-item__icon" }, [e._t("icon")], 2) : e._e(), n(t.BentoTypography, { directives: [{ name: "bento-tooltip-directive", rawName: "v-bento-tooltip-directive", value: t.isTruncated ? e.label : void 0, expression: "isTruncated ? label : undefined" }], ref: "labelRef", staticClass: "b-navigation-menu-item__label", attrs: { el: "span", variant: "body", stronger: "" } }, [e._v(" " + e._s(e.label) + " ")]), t.hasSlot("action") ? n("div", { staticClass: "b-navigation-menu-item__action" }, [e._t("action")], 2) : e._e()], 1)], 1);
144
- }, be = [], Ce = /* @__PURE__ */ L(
145
- fe,
146
- he,
147
- be,
148
- !1,
149
- null,
150
- "0f8822ce"
151
- );
152
- const De = Ce.exports, we = {
153
- name: "bento-navigation-menu-group",
154
- i18n: { messages: Z }
155
- }, xe = /* @__PURE__ */ B({
156
- ...we,
157
- props: {
158
- isExpanded: { type: Boolean, default: !1 },
159
- label: null
160
- },
161
- emits: ["update:is-expanded"],
162
- setup(p, { emit: e }) {
163
- const n = p, t = A(), b = E(t), { t: C } = R(), _ = c(() => ({
164
- "b-navigation-menu-group__header--expanded": u.value && !a.value
165
- })), l = c(() => a.value ? C("showingCurrentPage") : void 0), v = h(null), r = h(!1);
166
- D(v, () => {
167
- var I;
168
- const i = ((I = v.value) == null ? void 0 : I.$el) ?? v.value;
169
- i && (r.value = i.scrollWidth > i.clientWidth);
170
- });
171
- const s = y("navigation-menu-group"), m = y("navigation-menu-group-button"), w = y("navigation-menu-group-content"), g = $(H, null), f = h([]), d = (i, I) => {
172
- f.value.push({ id: i, isSelected: I });
173
- }, o = (i) => {
174
- f.value = f.value.filter((I) => I.id !== i);
175
- }, a = h(!1);
176
- O(U, {
177
- registerItem: d,
178
- unregisterItem: o,
179
- isSemiCollapsed: a
180
- });
181
- const x = c(() => f.value.some((i) => i.isSelected())), u = h(n.isExpanded), P = h(null), { contentHeight: S } = Q(P, u), F = c(() => S.value ? { "max-height": S.value } : {}), W = () => {
182
- u.value && !a.value ? x.value ? a.value = !0 : u.value = !1 : a.value ? a.value = !1 : u.value = !0, e("update:is-expanded", u.value && !a.value);
183
- }, V = (i) => {
184
- i ? (u.value = !0, a.value = !1) : x.value ? a.value = !0 : (a.value = !1, u.value = !1), e("update:is-expanded", i);
185
- };
186
- return J(
187
- () => n.isExpanded,
188
- (i) => {
189
- a.value || (u.value = i);
190
- }
191
- ), G(() => {
192
- x.value && !u.value && (u.value = !0, e("update:is-expanded", !0)), g && g.registerGroup(s, V, () => u.value && !a.value);
193
- }), K(() => g == null ? void 0 : g.unregisterGroup(s)), { __sfc: !0, props: n, slots: t, hasSlot: b, t: C, headerClasses: _, headerAriaDescription: l, labelRef: v, isTruncated: r, groupId: s, buttonId: m, contentId: w, navigationMenuState: g, nestedItems: f, registerItem: d, unregisterItem: o, isSemiCollapsed: a, hasActiveItem: x, emit: e, isOpen: u, contentDiv: P, contentHeight: S, contentMaxHeight: F, toggleGroup: W, setOpen: V, BentoTypography: T, vBentoTooltipDirective: M, ChevronDownIcon: X, ChevronUpIcon: ee };
194
- }
195
- });
196
- var Ie = function() {
197
- var e = this, n = e._self._c, t = e._self._setupProxy;
198
- return n("li", { staticClass: "b-navigation-menu-group" }, [n("button", { staticClass: "b-navigation-menu-group__header", class: {
199
- ...t.headerClasses,
200
- "b-navigation-menu-group__header--no-icon": !t.hasSlot("icon")
201
- }, attrs: { id: t.buttonId, type: "button", "aria-expanded": `${t.isOpen && !t.isSemiCollapsed}`, "aria-controls": t.contentId, "aria-description": t.headerAriaDescription }, on: { click: t.toggleGroup } }, [t.hasSlot("icon") ? n("div", { staticClass: "b-navigation-menu-group__icon" }, [e._t("icon")], 2) : e._e(), n(t.BentoTypography, { directives: [{ name: "bento-tooltip-directive", rawName: "v-bento-tooltip-directive", value: t.isTruncated ? e.label : void 0, expression: "isTruncated ? label : undefined" }], ref: "labelRef", staticClass: "b-navigation-menu-group__label", attrs: { el: "span", variant: "body", stronger: "" } }, [e._v(" " + e._s(e.label) + " ")]), n("div", { staticClass: "b-navigation-menu-group__icon b-navigation-menu-group__icon--chevron" }, [t.isOpen && !t.isSemiCollapsed ? n(t.ChevronUpIcon, { attrs: { "aria-hidden": "true" } }) : n(t.ChevronDownIcon, { attrs: { "aria-hidden": "true" } })], 1)], 1), n("Transition", { attrs: { name: "b-navigation-menu-group__animation--content" } }, [n("div", { directives: [{ name: "show", rawName: "v-show", value: t.isOpen, expression: "isOpen" }], staticClass: "b-navigation-menu-group__content-wrapper", style: t.contentMaxHeight, attrs: { id: t.contentId, role: "region", "aria-labelledby": t.buttonId } }, [n("ul", { ref: "contentDiv", staticClass: "b-navigation-menu-group__content" }, [e._t("default")], 2)])])], 1);
202
- }, ye = [], Le = /* @__PURE__ */ L(
203
- xe,
204
- Ie,
205
- ye,
206
- !1,
207
- null,
208
- "261c9dd1"
209
- );
210
- const Ze = Le.exports;
211
- export {
212
- Ze as a,
213
- De as b,
214
- Re as n
215
- };
216
- //# sourceMappingURL=navigation-menu-group.DHWp-pJO.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"navigation-menu-group.DHWp-pJO.js","sources":["../../../ui-assets/icons-16/dist/vue/menu-collapse.vue","../../../ui-assets/icons-16/dist/vue/menu-expand.vue","../../src/components/navigation-menu/navigation-menu.keys.ts","../../src/components/navigation-menu/navigation-menu.vue","../../src/components/navigation-menu/components/navigation-menu-group/navigation-menu-group.keys.ts","../../src/components/navigation-menu/components/navigation-menu-item/navigation-menu-item.vue","../../src/components/navigation-menu/components/navigation-menu-group/navigation-menu-group.vue"],"sourcesContent":["\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#001222\" d=\"M15.5303 13.4697L14.4697 14.5303L12 12.0605L9.53027 14.5303L8.46973 13.4697L12 9.93945L15.5303 13.4697Z\"/><path fill=\"#001222\" d=\"M7 13.75H0V12.25H7V13.75Z\"/><path fill=\"#001222\" d=\"M7 8.75H0V7.25H7V8.75Z\"/><path fill=\"#001222\" d=\"M15.5303 2.53027L12 6.06055L8.46973 2.53027L9.53027 1.46973L12 3.93945L14.4697 1.46973L15.5303 2.53027Z\"/><path fill=\"#001222\" d=\"M7 3.75H0V2.25H7V3.75Z\"/></svg>\n</template>\n<script>\n import '../css/main.css';\n\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#001222\" d=\"M15.5303 11.5303L12 15.0605L8.46973 11.5303L9.53027 10.4697L12 12.9395L14.4697 10.4697L15.5303 11.5303Z\"/><path fill=\"#001222\" d=\"M7 13.75H0V12.25H7V13.75Z\"/><path fill=\"#001222\" d=\"M7 8.75H0V7.25H7V8.75Z\"/><path fill=\"#001222\" d=\"M15.5303 4.46973L14.4697 5.53027L12 3.06055L9.53027 5.53027L8.46973 4.46973L12 0.939453L15.5303 4.46973Z\"/><path fill=\"#001222\" d=\"M7 3.75H0V2.25H7V3.75Z\"/></svg>\n</template>\n<script>\n import '../css/main.css';\n\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n","export const NAVIGATION_MENU_STATE_INJECTION_KEY = Symbol('navigation menu state injection key');\n","<template>\n <nav class=\"b-navigation-menu\" :aria-labelledby=\"label ? titleId : undefined\">\n <div v-if=\"showHeader\" class=\"b-navigation-menu__header\">\n <bento-typography\n v-if=\"label\"\n :id=\"titleId\"\n el=\"p\"\n variant=\"caption\"\n stronger\n class=\"b-navigation-menu__title\"\n >\n {{ label }}\n </bento-typography>\n <div class=\"b-navigation-menu__actions-container\">\n <div v-if=\"hasSlot('headerActions')\" class=\"b-navigation-menu__actions\">\n <slot name=\"headerActions\" />\n </div>\n <bento-button\n v-if=\"computedShowExpandAll\"\n v-bento-tooltip-directive=\"expandButtonLabel\"\n variant=\"tertiary-with-background\"\n :aria-label=\"expandButtonLabel\"\n @click=\"toggleAllGroups\"\n >\n <template #iconLeft>\n <menu-collapse-icon v-if=\"allExpanded\" />\n <menu-expand-icon v-else />\n </template>\n </bento-button>\n </div>\n </div>\n\n <ul class=\"b-navigation-menu__content\">\n <slot />\n </ul>\n </nav>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, provide, ref, toRef, useSlots } from 'vue';\n import { BentoTypography } from '@/components/typography';\n import { BentoButton } from '@/components/button';\n import MenuCollapseIcon from '@adyen/ui-assets-icons-16/vue/menu-collapse';\n import MenuExpandIcon from '@adyen/ui-assets-icons-16/vue/menu-expand';\n import { useHasSlot } from '@/composables';\n import { BentoTooltipDirective as vBentoTooltipDirective } from '@/directives/tooltip';\n import { generateUid } from '@/core/utils/ts';\n import { useI18n } from '@/utils/ts/i18n';\n import type {\n BentoNavigationMenuGroupRegistration,\n BentoNavigationMenuProps,\n BentoNavigationMenuState,\n } from './navigation-menu.types';\n import { NAVIGATION_MENU_STATE_INJECTION_KEY } from './navigation-menu.keys';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const props = defineProps({\n label: { default: undefined },\n showExpandAllButton: { type: Boolean, default: false },\n activePage: { default: undefined }\n});\n\n const emit = defineEmits([\"update:active-page\"]);\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const titleId = generateUid('navigation-menu-title');\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const groups = ref<Array<BentoNavigationMenuGroupRegistration>>([]);\n\n const registerGroup = (groupId: string, setOpen: (open: boolean) => void, getIsOpen: () => boolean) => {\n groups.value.push({ id: groupId, setOpen, getIsOpen });\n };\n\n const unregisterGroup = (groupId: string) => {\n groups.value = groups.value.filter(g => g.id !== groupId);\n };\n\n const allExpanded = computed(() => groups.value.length > 0 && groups.value.every(group => group.getIsOpen()));\n\n const computedShowExpandAll = computed(() => groups.value.length > 0 && props.showExpandAllButton);\n\n const showHeader = computed(() => props.label || hasSlot('headerActions') || computedShowExpandAll.value);\n\n const expandButtonLabel = computed(() => (allExpanded.value ? t('hideAllPages') : t('showAllPages')));\n\n const toggleAllGroups = () => {\n const shouldExpand = !allExpanded.value;\n groups.value.forEach(({ setOpen }) => setOpen(shouldExpand));\n };\n\n const updateActivePage = (value: string) => {\n emit('update:active-page', value);\n };\n\n provide<BentoNavigationMenuState>(NAVIGATION_MENU_STATE_INJECTION_KEY, {\n registerGroup,\n unregisterGroup,\n activePage: toRef(props, 'activePage'),\n updateActivePage,\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * Navigation menu container component with optional header and action buttons.\n *\n * @usage\n * import { BentoNavigationMenu, BentoNavigationMenuItem, BentoNavigationMenuGroup } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoNavigationMenu, BentoNavigationMenuItem, BentoNavigationMenuGroup },\n * template: `\n * <bento-navigation-menu label=\"Pages\" active-page=\"home\">\n * <template #headerActions>\n * <button>Search</button>\n * </template>\n * <bento-navigation-menu-item value=\"home\" label=\"Home\">\n * <template #icon><home-icon /></template>\n * </bento-navigation-menu-item>\n * <bento-navigation-menu-group label=\"Settings\">\n * <template #icon><folder-icon /></template>\n * <bento-navigation-menu-item nested value=\"general\" label=\"General\" />\n * </bento-navigation-menu-group>\n * </bento-navigation-menu>\n * `\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./navigation-menu.scss\" />\n","export const NAVIGATION_MENU_GROUP_STATE_INJECTION_KEY = Symbol('navigation menu group state injection key');\n","<template>\n <li>\n <component\n :is=\"wrapperComponent\"\n v-bind=\"wrapperProps\"\n class=\"b-navigation-menu-item\"\n :class=\"{\n ...conditionalClasses,\n 'b-navigation-menu-item--no-icon': !hasSlot('icon'),\n }\"\n :aria-current=\"isSelected && link ? 'page' : undefined\"\n :aria-hidden=\"!isVisible ? 'true' : undefined\"\n :tabindex=\"!isVisible ? -1 : undefined\"\n :inert=\"!isVisible ? '' : undefined\"\n @click=\"handleClick\"\n >\n <div v-if=\"!nested && hasSlot('icon')\" class=\"b-navigation-menu-item__icon\">\n <slot name=\"icon\" />\n </div>\n <bento-typography\n ref=\"labelRef\"\n v-bento-tooltip-directive=\"isTruncated ? label : undefined\"\n el=\"span\"\n variant=\"body\"\n stronger\n class=\"b-navigation-menu-item__label\"\n >\n {{ label }}\n </bento-typography>\n <div v-if=\"hasSlot('action')\" class=\"b-navigation-menu-item__action\">\n <slot name=\"action\" />\n </div>\n </component>\n </li>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, onBeforeUnmount, onMounted, ref, useSlots } from 'vue';\n import { useResizeObserver } from '@vueuse/core';\n import { BentoLink } from '@/components/link';\n import { BentoTypography } from '@/components/typography';\n import { generateUid } from '@/core/utils/ts';\n import { useHasSlot } from '@/composables';\n import { BentoTooltipDirective as vBentoTooltipDirective } from '@/directives/tooltip';\n import type { BentoNavigationMenuItemProps } from './navigation-menu-item.types';\n import type { BentoNavigationMenuGroupState } from '../navigation-menu-group/navigation-menu-group.types';\n import { NAVIGATION_MENU_GROUP_STATE_INJECTION_KEY } from '../navigation-menu-group/navigation-menu-group.keys';\n import type { BentoNavigationMenuState } from '../../navigation-menu.types';\n import { NAVIGATION_MENU_STATE_INJECTION_KEY } from '../../navigation-menu.keys';\n\n const props = defineProps({\n nested: { type: Boolean, default: false },\n label: null,\n link: { default: undefined },\n value: null,\n alwaysShowActions: { type: Boolean, default: false }\n});\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const wrapperComponent = computed(() => (props.link ? BentoLink : 'div'));\n const wrapperProps = computed(() => (props.link ? { ...props.link, disableTypography: true } : {}));\n\n const labelRef = ref(null);\n const isTruncated = ref(false);\n\n useResizeObserver(labelRef, () => {\n const el = labelRef.value?.$el ?? labelRef.value;\n if (el) {\n isTruncated.value = el.scrollWidth > el.clientWidth;\n }\n });\n\n const itemId = generateUid('navigation-menu-item');\n const groupState = inject<BentoNavigationMenuGroupState | null>(NAVIGATION_MENU_GROUP_STATE_INJECTION_KEY, null);\n const menuState = inject<BentoNavigationMenuState | null>(NAVIGATION_MENU_STATE_INJECTION_KEY, null);\n\n const isSelected = computed(() => menuState?.activePage?.value === props.value);\n\n const isVisible = computed(() => {\n if (!groupState) {\n return true;\n }\n if (!groupState.isSemiCollapsed.value) {\n return true;\n }\n return isSelected.value;\n });\n\n const conditionalClasses = computed(() => ({\n 'b-navigation-menu-item--selected': isSelected.value,\n 'b-navigation-menu-item--nested': props.nested,\n 'b-navigation-menu-item--hidden': !isVisible.value,\n 'b-navigation-menu-item--always-show-actions': props.alwaysShowActions,\n }));\n\n onMounted(() => {\n if (groupState && props.nested) {\n groupState.registerItem(itemId, () => isSelected.value);\n }\n });\n\n const handleClick = () => {\n menuState?.updateActivePage(props.value);\n };\n\n onBeforeUnmount(() => {\n if (groupState && props.nested) {\n groupState.unregisterItem(itemId);\n }\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * Navigation menu item component for rendering individual navigation links.\n * Can be used standalone or nested within a navigation-menu-group.\n *\n * @usage\n * import { BentoNavigationMenuItem } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoNavigationMenuItem },\n * template: `\n * <bento-navigation-menu-item value=\"home\" label=\"Home\">\n * <template #icon><home-icon /></template>\n * <template #action><star-icon /></template>\n * </bento-navigation-menu-item>\n * `\n * }\n */\n export default {\n name: 'bento-navigation-menu-item',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./navigation-menu-item.scss\" />\n","<template>\n <li class=\"b-navigation-menu-group\">\n <button\n :id=\"buttonId\"\n type=\"button\"\n class=\"b-navigation-menu-group__header\"\n :class=\"{\n ...headerClasses,\n 'b-navigation-menu-group__header--no-icon': !hasSlot('icon'),\n }\"\n :aria-expanded=\"`${isOpen && !isSemiCollapsed}`\"\n :aria-controls=\"contentId\"\n :aria-description=\"headerAriaDescription\"\n @click=\"toggleGroup\"\n >\n <div v-if=\"hasSlot('icon')\" class=\"b-navigation-menu-group__icon\">\n <slot name=\"icon\" />\n </div>\n <bento-typography\n ref=\"labelRef\"\n v-bento-tooltip-directive=\"isTruncated ? label : undefined\"\n el=\"span\"\n variant=\"body\"\n stronger\n class=\"b-navigation-menu-group__label\"\n >\n {{ label }}\n </bento-typography>\n <div class=\"b-navigation-menu-group__icon b-navigation-menu-group__icon--chevron\">\n <chevron-up-icon v-if=\"isOpen && !isSemiCollapsed\" aria-hidden=\"true\" />\n <chevron-down-icon v-else aria-hidden=\"true\" />\n </div>\n </button>\n\n <Transition name=\"b-navigation-menu-group__animation--content\">\n <div\n v-show=\"isOpen\"\n :id=\"contentId\"\n class=\"b-navigation-menu-group__content-wrapper\"\n role=\"region\"\n :aria-labelledby=\"buttonId\"\n :style=\"contentMaxHeight\"\n >\n <ul ref=\"contentDiv\" class=\"b-navigation-menu-group__content\">\n <slot />\n </ul>\n </div>\n </Transition>\n </li>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, onMounted, onUnmounted, provide, ref, useSlots, watch } from 'vue';\n import { useResizeObserver } from '@vueuse/core';\n import { BentoTypography } from '@/components/typography';\n import { useExpandableContentHeight } from '@/composables/use-expandable-content-height/use-expandable-content-height';\n import { useHasSlot } from '@/composables';\n import { BentoTooltipDirective as vBentoTooltipDirective } from '@/directives/tooltip';\n import { generateUid } from '@/core/utils/ts';\n import { useI18n } from '@/utils/ts/i18n';\n import ChevronDownIcon from '@adyen/ui-assets-icons-16/vue/chevron-down';\n import ChevronUpIcon from '@adyen/ui-assets-icons-16/vue/chevron-up';\n import type {\n BentoNavigationMenuGroupProps,\n BentoNavigationMenuGroupState,\n BentoNavigationMenuItemRegistration,\n } from './navigation-menu-group.types';\n import { NAVIGATION_MENU_STATE_INJECTION_KEY } from '../../navigation-menu.keys';\n import { NAVIGATION_MENU_GROUP_STATE_INJECTION_KEY } from './navigation-menu-group.keys';\n import { type BentoNavigationMenuState } from '../../navigation-menu.types';\n import messages from '../../messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const props = defineProps({\n isExpanded: { type: Boolean, default: false },\n label: null\n});\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const headerClasses = computed(() => ({\n 'b-navigation-menu-group__header--expanded': isOpen.value && !isSemiCollapsed.value,\n }));\n\n const headerAriaDescription = computed(() => (isSemiCollapsed.value ? t('showingCurrentPage') : undefined));\n\n const labelRef = ref(null);\n const isTruncated = ref(false);\n\n useResizeObserver(labelRef, () => {\n const el = labelRef.value?.$el ?? labelRef.value;\n if (el) {\n isTruncated.value = el.scrollWidth > el.clientWidth;\n }\n });\n\n const groupId = generateUid('navigation-menu-group');\n const buttonId = generateUid('navigation-menu-group-button');\n const contentId = generateUid('navigation-menu-group-content');\n const navigationMenuState = inject<BentoNavigationMenuState | null>(NAVIGATION_MENU_STATE_INJECTION_KEY, null);\n\n const nestedItems = ref<Array<BentoNavigationMenuItemRegistration>>([]);\n\n const registerItem = (itemId: string, isSelected: () => boolean) => {\n nestedItems.value.push({ id: itemId, isSelected });\n };\n\n const unregisterItem = (itemId: string) => {\n nestedItems.value = nestedItems.value.filter(item => item.id !== itemId);\n };\n\n const isSemiCollapsed = ref(false);\n\n provide<BentoNavigationMenuGroupState>(NAVIGATION_MENU_GROUP_STATE_INJECTION_KEY, {\n registerItem,\n unregisterItem,\n isSemiCollapsed,\n });\n\n const hasActiveItem = computed(() => nestedItems.value.some(item => item.isSelected()));\n\n const emit = defineEmits([\"update:is-expanded\"]);\n\n const isOpen = ref(props.isExpanded);\n const contentDiv = ref<HTMLUListElement>(null);\n\n const { contentHeight } = useExpandableContentHeight(contentDiv, isOpen);\n const contentMaxHeight = computed(() => (contentHeight.value ? { 'max-height': contentHeight.value } : {}));\n\n const toggleGroup = () => {\n if (isOpen.value && !isSemiCollapsed.value) {\n if (hasActiveItem.value) {\n isSemiCollapsed.value = true;\n } else {\n isOpen.value = false;\n }\n } else if (isSemiCollapsed.value) {\n isSemiCollapsed.value = false;\n } else {\n isOpen.value = true;\n }\n emit('update:is-expanded', isOpen.value && !isSemiCollapsed.value);\n };\n\n const setOpen = (open: boolean) => {\n if (open) {\n isOpen.value = true;\n isSemiCollapsed.value = false;\n } else if (hasActiveItem.value) {\n isSemiCollapsed.value = true;\n } else {\n isSemiCollapsed.value = false;\n isOpen.value = false;\n }\n emit('update:is-expanded', open);\n };\n\n watch(\n () => props.isExpanded,\n value => {\n if (!isSemiCollapsed.value) {\n isOpen.value = value;\n }\n }\n );\n\n onMounted(() => {\n if (hasActiveItem.value && !isOpen.value) {\n isOpen.value = true;\n emit('update:is-expanded', true);\n }\n if (navigationMenuState) {\n navigationMenuState.registerGroup(groupId, setOpen, () => isOpen.value && !isSemiCollapsed.value);\n }\n });\n\n onUnmounted(() => navigationMenuState?.unregisterGroup(groupId));\n</script>\n\n<script lang=\"ts\">\n /**\n * Navigation menu group component for creating collapsible sections.\n *\n * @usage\n * import { BentoNavigationMenuGroup, BentoNavigationMenuItem } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoNavigationMenuGroup, BentoNavigationMenuItem },\n * template: `\n * <bento-navigation-menu-group label=\"Section\" :is-expanded=\"true\">\n * <template #icon><folder-icon /></template>\n * <bento-navigation-menu-item nested value=\"item-1\" label=\"Item 1\" />\n * <bento-navigation-menu-item nested value=\"item-2\" label=\"Item 2\" />\n * </bento-navigation-menu-group>\n * `\n * }\n */\n export default {\n name: 'bento-navigation-menu-group',\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./navigation-menu-group.scss\" />\n"],"names":["uuid$1","_sfc_main$4","uuid","_sfc_main$3","NAVIGATION_MENU_STATE_INJECTION_KEY","__default__$2","messages","slots","useSlots","hasSlot","useHasSlot","titleId","generateUid","t","useI18n","groups","ref","registerGroup","groupId","setOpen","getIsOpen","unregisterGroup","g","allExpanded","computed","group","computedShowExpandAll","props","showHeader","expandButtonLabel","toggleAllGroups","shouldExpand","updateActivePage","value","emit","provide","toRef","NAVIGATION_MENU_GROUP_STATE_INJECTION_KEY","__default__$1","wrapperComponent","BentoLink","wrapperProps","labelRef","isTruncated","useResizeObserver","el","_a","itemId","groupState","inject","menuState","isSelected","isVisible","conditionalClasses","onMounted","handleClick","onBeforeUnmount","__default__","headerClasses","isOpen","isSemiCollapsed","headerAriaDescription","buttonId","contentId","navigationMenuState","nestedItems","registerItem","unregisterItem","item","hasActiveItem","contentDiv","contentHeight","useExpandableContentHeight","contentMaxHeight","toggleGroup","open","watch","onUnmounted"],"mappings":"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"}
@@ -1,6 +0,0 @@
1
- import { b as o } from "./popper-container.D10i5aF5.js";
2
- const i = { ...o };
3
- export {
4
- i as B
5
- };
6
- //# sourceMappingURL=popover.types.CQ5g4kw2.js.map
@@ -1,223 +0,0 @@
1
- import { defineComponent as w, inject as $, ref as T, computed as p, watch as D, toRef as L, readonly as R, provide as V } from "vue";
2
- import { B as F } from "./dropdown.Dx0HybJ8.js";
3
- import { B as S } from "./typography.C8lPlsbD.js";
4
- import { B as A } from "./tag.lfN7xFuw.js";
5
- import { C as O } from "./cross-circle-fill.DTDtgLMf.js";
6
- import { a as P } from "./index.DZx81HG1.js";
7
- import { u as M } from "./index.B6WW_F-J.js";
8
- import { a as U } from "./es6.Cu3DYUPA.js";
9
- import { B as z } from "./button.C9b2AC9w.js";
10
- import { C as H } from "./chevron-down.eYtgv5ly.js";
11
- import { C as j } from "./chevron-up.d8cwIlA_.js";
12
- import { g as q } from "./generate-uid.NJ8tVoha.js";
13
- import { u as G } from "./use-expandable-content-height.2WJLCL-R.js";
14
- import { n as B } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
15
- import "../assets/secondary-nav.css";
16
- const k = /* @__PURE__ */ Symbol("secondary nav state"), J = {
17
- "en-US": {
18
- errorCount: "error | errors"
19
- }
20
- }, Q = { i18n: { messages: J } }, X = /* @__PURE__ */ w({
21
- ...Q,
22
- __name: "secondary-nav-item",
23
- props: {
24
- label: null,
25
- value: null,
26
- items: null,
27
- isSubItem: { type: Boolean },
28
- errorCounter: null
29
- },
30
- emits: ["click"],
31
- setup(_, { emit: t }) {
32
- const e = _, { tc: a } = M(), { activeItemValue: n, updateActiveItemValue: i, allowExpandableItemNavigation: g } = $(k), m = "b-secondary-nav-item__animation--content", c = T(!1), N = q("secondary-nav-sub-items"), I = T(null), v = p(() => {
33
- var r;
34
- return !!((r = e.items) != null && r.length);
35
- }), d = p(() => n.value === e.value), C = p(() => v.value && !g.value), { contentHeight: b } = G(I, c), y = p(() => b.value ? { "max-height": b.value } : {}), h = p(() => ({
36
- "b-secondary-nav-item__option--active": d.value,
37
- "b-secondary-nav-item__option--expandable": v.value,
38
- "b-secondary-nav-item__option--sub-item": e.isSubItem
39
- })), x = (r) => {
40
- t("click", r), i(e.value);
41
- }, o = () => {
42
- c.value = !c.value;
43
- }, s = (r, u) => r.some(
44
- (f) => f.value === u || (f.items ? s(f.items, u) : !1)
45
- ), l = (r) => r.some((u) => !!u.errorCounter || (u.items ? l(u.items) : !1));
46
- return D(
47
- [n, () => e.items],
48
- ([r]) => {
49
- v.value && e.items && (s(e.items, r) || l(e.items)) && (c.value = !0);
50
- },
51
- { immediate: !0, deep: !0 }
52
- ), { __sfc: !0, tc: a, activeItemValue: n, updateActiveItemValue: i, allowExpandableItemNavigation: g, CONTENT_TRANSITION_NAME: m, props: e, isOpen: c, subItemsId: N, subItemsRef: I, hasSubItems: v, isItemSelected: d, expandleItemIsToggleOnly: C, contentHeight: b, subItemsMaxHeight: y, conditionalClasses: h, emit: t, onClick: x, onToggleClick: o, hasActiveDescendant: s, hasDescendantErrors: l, BentoButton: z, BentoTag: A, BentoTypography: S, ChevronDownIcon: H, ChevronUpIcon: j, CrossCircleFillIcon: O };
53
- }
54
- });
55
- var Y = function() {
56
- var t = this, e = t._self._c, a = t._self._setupProxy;
57
- return e("div", { staticClass: "b-secondary-nav-item" }, [e("div", { staticClass: "b-secondary-nav-item__wrapper" }, [e("button", { staticClass: "b-secondary-nav-item__option", class: a.conditionalClasses, attrs: { "aria-current": a.isItemSelected ? "page" : void 0, "aria-expanded": a.expandleItemIsToggleOnly ? `${a.isOpen}` : void 0, "aria-controls": a.expandleItemIsToggleOnly ? a.subItemsId : void 0 }, on: { click: function(n) {
58
- a.expandleItemIsToggleOnly ? a.onToggleClick() : a.onClick(n);
59
- } } }, [e(a.BentoTypography, { staticClass: "b-secondary-nav-item__title", attrs: { variant: "body", stronger: "" } }, [t._v(" " + t._s(t.label) + " ")]), t.errorCounter ? e(a.BentoTag, { staticClass: "b-secondary-nav-item__error-counter", attrs: { variant: "red" }, scopedSlots: t._u([{ key: "icon", fn: function() {
60
- return [e(a.CrossCircleFillIcon, { attrs: { "aria-hidden": "true" } })];
61
- }, proxy: !0 }], null, !1, 196511213) }, [e("span", [t._v(t._s(t.errorCounter))]), e("span", { staticClass: "b-secondary-nav-item__visually-hidden" }, [t._v(t._s(a.tc("errorCount", t.errorCounter)))])]) : t._e()], 1), a.hasSubItems ? e(a.BentoButton, { staticClass: "b-secondary-nav-item__toggle", attrs: { "aria-hidden": a.expandleItemIsToggleOnly, tabindex: a.expandleItemIsToggleOnly ? -1 : void 0, variant: "tertiary", "aria-label": a.isOpen ? `Collapse ${t.label}` : `Expand ${t.label}`, "aria-expanded": a.expandleItemIsToggleOnly ? void 0 : `${a.isOpen}`, "aria-controls": a.expandleItemIsToggleOnly ? void 0 : a.subItemsId }, on: { click: function(n) {
62
- return n.stopPropagation(), a.onToggleClick.apply(null, arguments);
63
- } }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
64
- return [a.isOpen ? e(a.ChevronUpIcon, { staticClass: "b-secondary-nav-item__icon", attrs: { "aria-hidden": "true" } }) : e(a.ChevronDownIcon, { staticClass: "b-secondary-nav-item__icon", attrs: { "aria-hidden": "true" } })];
65
- }, proxy: !0 }], null, !1, 3107710104) }) : t._e()], 1), e("Transition", { attrs: { name: a.CONTENT_TRANSITION_NAME } }, [a.hasSubItems && a.isOpen ? e("div", { style: a.subItemsMaxHeight, attrs: { id: a.subItemsId } }, [e("ul", { ref: "subItemsRef", staticClass: "b-secondary-nav-item__sub-items" }, t._l(t.items, function(n) {
66
- return e("li", { key: n.value }, [e("secondary-nav-item", { attrs: { label: n.label, value: n.value, items: n.items, "error-counter": n.errorCounter, "is-sub-item": "" } })], 1);
67
- }), 0)]) : t._e()])], 1);
68
- }, K = [], W = /* @__PURE__ */ B(
69
- X,
70
- Y,
71
- K,
72
- !1,
73
- null,
74
- "14334916"
75
- );
76
- const E = W.exports, Z = {}, ee = /* @__PURE__ */ w({
77
- ...Z,
78
- __name: "secondary-nav-category",
79
- props: {
80
- label: null,
81
- items: null
82
- },
83
- setup(_) {
84
- return { __sfc: !0, BentoTypography: S, SecondaryNavItem: E };
85
- }
86
- });
87
- var ae = function() {
88
- var t = this, e = t._self._c, a = t._self._setupProxy;
89
- return e("section", { staticClass: "b-secondary-nav-category", attrs: { "aria-label": t.label } }, [e(a.BentoTypography, { staticClass: "b-secondary-nav-category__label", attrs: { el: "h1", variant: "caption", stronger: "" } }, [t._v(t._s(t.label))]), e("ul", { staticClass: "b-secondary-nav__list" }, t._l(t.items, function(n) {
90
- return e("li", { key: n.value }, [e(a.SecondaryNavItem, { attrs: { label: n.label, value: n.value, items: n.items, "error-counter": n.errorCounter } })], 1);
91
- }), 0)], 1);
92
- }, te = [], ne = /* @__PURE__ */ B(
93
- ee,
94
- ae,
95
- te,
96
- !1,
97
- null,
98
- "777b2ce6"
99
- );
100
- const oe = ne.exports, se = {
101
- "de-DE": {
102
- mobileDropdownAriaLabel: "Navigationsoptionen Dropdown-Menü"
103
- },
104
- "en-GB": {
105
- mobileDropdownAriaLabel: "Navigation options drop-down"
106
- },
107
- "en-US": {
108
- errorCount: "error | errors",
109
- mobileDropdownAriaLabel: "Navigation options dropdown"
110
- },
111
- "es-ES": {
112
- mobileDropdownAriaLabel: "Menú desplegable de opciones de navegación"
113
- },
114
- "es-MX": {
115
- mobileDropdownAriaLabel: "Menú desplegable de opciones de navegación"
116
- },
117
- "fr-FR": {
118
- mobileDropdownAriaLabel: "Menu déroulant des options de navigation"
119
- },
120
- "it-IT": {
121
- mobileDropdownAriaLabel: "Menu a tendina delle opzioni di navigazione"
122
- },
123
- "ja-JP": {
124
- mobileDropdownAriaLabel: "ナビゲーションオプションのドロップダウン"
125
- },
126
- "pt-BR": {
127
- mobileDropdownAriaLabel: "Menu suspenso de opções de navegação"
128
- },
129
- "zh-CN": {
130
- mobileDropdownAriaLabel: "导航选项下拉菜单"
131
- }
132
- }, re = {
133
- i18n: { messages: se }
134
- }, le = /* @__PURE__ */ w({
135
- ...re,
136
- __name: "secondary-nav",
137
- props: {
138
- items: null,
139
- value: null,
140
- allowExpandableItemNavigation: { type: Boolean }
141
- },
142
- emits: ["change"],
143
- setup(_, { emit: t }) {
144
- const e = _, { t: a, tc: n } = M(), i = P({
145
- s: U
146
- }), g = i.smallerOrEqual("s"), m = (o) => "items" in o && !("value" in o), c = (o, s = 0) => o.flatMap((l) => {
147
- var u, f;
148
- const r = {
149
- label: l.label,
150
- value: l.value,
151
- data: { level: s, hasSubItems: !!((u = l.items) != null && u.length), errorCounter: l.errorCounter }
152
- };
153
- return (f = l.items) != null && f.length ? [r, ...c(l.items, s + 1)] : [r];
154
- }), N = (o) => {
155
- var s;
156
- return !e.allowExpandableItemNavigation && ((s = o.data) == null ? void 0 : s.hasSubItems);
157
- }, I = p(() => e.items.some((o) => m(o))), v = p(() => e.items.flatMap((o) => {
158
- var s;
159
- return m(o) ? [
160
- {
161
- label: o.label,
162
- value: `category-${o.label}`,
163
- items: c(o.items)
164
- }
165
- ] : (s = o.items) != null && s.length ? c([o]) : [
166
- {
167
- label: o.label,
168
- value: o.value,
169
- data: { level: 0, errorCounter: o.errorCounter }
170
- }
171
- ];
172
- })), d = (o) => o.flatMap((s) => {
173
- var l;
174
- return [s, ...(l = s.items) != null && l.length ? d(s.items) : []];
175
- }), C = (o) => {
176
- var s;
177
- return ((s = d(o).find((l) => {
178
- var r;
179
- return e.allowExpandableItemNavigation || !((r = l.items) != null && r.length);
180
- })) == null ? void 0 : s.value) ?? "";
181
- }, b = p(() => e.items.length ? C(
182
- e.items.flatMap(
183
- (o) => m(o) ? d(o.items) : d([o])
184
- )
185
- ) : ""), y = T(e.value ?? b.value), h = (o) => {
186
- y.value = o, t("change", o);
187
- }, x = {
188
- activeItemValue: R(y),
189
- updateActiveItemValue: h,
190
- allowExpandableItemNavigation: L(e, "allowExpandableItemNavigation")
191
- };
192
- return D(
193
- () => e.value,
194
- (o) => {
195
- o !== void 0 && (y.value = o);
196
- }
197
- ), V(k, x), { __sfc: !0, t: a, tc: n, breakpoints: i, isMobile: g, props: e, emit: t, isCategory: m, mapNestedItems: c, isMobileOptionDisabled: N, hasCategories: I, mobileDropdownItems: v, flattenNestedItems: d, findFirstSelectableNestedItemValue: C, activeItemValueFallback: b, activeItemValue: y, updateActiveItemValue: h, state: x, SecondaryNavItem: E, SecondaryNavCategory: oe, BentoDropdown: F, BentoTypography: S, BentoTag: A, CrossCircleFillIcon: O };
198
- }
199
- });
200
- var ie = function() {
201
- var t = this, e = t._self._c, a = t._self._setupProxy;
202
- return e("nav", { staticClass: "b-secondary-nav" }, [a.isMobile ? e(a.BentoDropdown, { attrs: { "aria-label": a.t("mobileDropdownAriaLabel"), items: a.mobileDropdownItems, "static-categories": a.hasCategories, "model-value": a.activeItemValue, "is-option-disabled": a.isMobileOptionDisabled }, on: { "update:model-value": a.updateActiveItemValue }, scopedSlots: t._u([{ key: "display-value", fn: function({ label: n }) {
203
- return [e(a.BentoTypography, { attrs: { el: "span" } }, [t._v(" " + t._s(n) + " ")])];
204
- } }, { key: "default", fn: function({ label: n, data: i }) {
205
- return [e(a.BentoTypography, { class: { "b-secondary-nav__option": !0, "b-secondary-nav__nested-option": !!(i != null && i.level) }, attrs: { el: "div" } }, [t._v(" " + t._s(n) + " "), i != null && i.errorCounter ? e(a.BentoTag, { staticClass: "b-secondary-nav__error-counter", attrs: { variant: "red" }, scopedSlots: t._u([{ key: "icon", fn: function() {
206
- return [e(a.CrossCircleFillIcon, { attrs: { "aria-hidden": "true" } })];
207
- }, proxy: !0 }], null, !0) }, [e("span", [t._v(t._s(i.errorCounter))]), e("span", { staticClass: "b-secondary-nav__visually-hidden" }, [t._v(t._s(a.tc("errorCount", i.errorCounter)))])]) : t._e()], 1)];
208
- } }], null, !1, 2211008849) }) : e("ul", { staticClass: "b-secondary-nav__list" }, t._l(t.items, function(n) {
209
- return e("li", { key: n.label }, ["items" in n && !("value" in n) ? e(a.SecondaryNavCategory, { attrs: { label: n.label, items: n.items } }) : e(a.SecondaryNavItem, { attrs: { label: n.label, value: n.value, items: n.items, "error-counter": n.errorCounter } })], 1);
210
- }), 0)], 1);
211
- }, ce = [], ue = /* @__PURE__ */ B(
212
- le,
213
- ie,
214
- ce,
215
- !1,
216
- null,
217
- "900dc964"
218
- );
219
- const Te = ue.exports;
220
- export {
221
- Te as s
222
- };
223
- //# sourceMappingURL=secondary-nav.BLF9iQOV.js.map