@adyen/bento-vue2 1.94.0 → 1.95.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 (262) hide show
  1. package/dist/@types/components.d.ts +2 -0
  2. package/dist/@types/index.d.ts +296 -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/dropdown.css +1 -1
  19. package/dist/assets/file-uploader.css +1 -1
  20. package/dist/assets/form-layout-group.css +1 -0
  21. package/dist/assets/form-layout-title.css +1 -1
  22. package/dist/assets/header-meta.css +1 -1
  23. package/dist/assets/input-field.css +1 -1
  24. package/dist/assets/inspector.css +1 -1
  25. package/dist/assets/link.css +1 -1
  26. package/dist/assets/modal-fullscreen.css +1 -1
  27. package/dist/assets/navigation-menu-group.css +1 -1
  28. package/dist/assets/secondary-nav.css +1 -1
  29. package/dist/assets/sidepanel.css +1 -1
  30. package/dist/button.js +3 -3
  31. package/dist/card.js +1 -1
  32. package/dist/checkbox.js +2 -2
  33. package/dist/chunks/{action-bar.ZR2oO4Qc.js → action-bar.Chu-0oVy.js} +5 -5
  34. package/dist/chunks/{action-bar.ZR2oO4Qc.js.map → action-bar.Chu-0oVy.js.map} +1 -1
  35. package/dist/chunks/{ai-button.7L9bANlk.js → ai-button.DvOq4s2_.js} +2 -2
  36. package/dist/chunks/{ai-button.7L9bANlk.js.map → ai-button.DvOq4s2_.js.map} +1 -1
  37. package/dist/chunks/{ai-tag.CzloguAR.js → ai-tag.DVmvni7U.js} +2 -2
  38. package/dist/chunks/{ai-tag.CzloguAR.js.map → ai-tag.DVmvni7U.js.map} +1 -1
  39. package/dist/chunks/{alert.CLqcPN0Q.js → alert.B4bHCE8V.js} +2 -2
  40. package/dist/chunks/{alert.CLqcPN0Q.js.map → alert.B4bHCE8V.js.map} +1 -1
  41. package/dist/chunks/{anchor-scroller.8LdkI0J0.js → anchor-scroller.B8VXotik.js} +4 -4
  42. package/dist/chunks/{anchor-scroller.8LdkI0J0.js.map → anchor-scroller.B8VXotik.js.map} +1 -1
  43. package/dist/chunks/{base-modal.YbZ5vHH4.js → base-modal.CC7gm9fc.js} +7 -7
  44. package/dist/chunks/{base-modal.YbZ5vHH4.js.map → base-modal.CC7gm9fc.js.map} +1 -1
  45. package/dist/chunks/{button-actions-with-menu.CljH-yOh.js → button-actions-with-menu.BlOBDvdL.js} +3 -3
  46. package/dist/chunks/{button-actions-with-menu.CljH-yOh.js.map → button-actions-with-menu.BlOBDvdL.js.map} +1 -1
  47. package/dist/chunks/{button-actions.CyMKvVwN.js → button-actions.D1jRC1fs.js} +3 -3
  48. package/dist/chunks/{button-actions.CyMKvVwN.js.map → button-actions.D1jRC1fs.js.map} +1 -1
  49. package/dist/chunks/{button.C9b2AC9w.js → button.DITA6YtS.js} +2 -2
  50. package/dist/chunks/{button.C9b2AC9w.js.map → button.DITA6YtS.js.map} +1 -1
  51. package/dist/chunks/{calendar.CCUVI1IF.js → calendar.ofn3G6eW.js} +19 -19
  52. package/dist/chunks/{calendar.CCUVI1IF.js.map → calendar.ofn3G6eW.js.map} +1 -1
  53. package/dist/chunks/{card.DqKD40s7.js → card.ErZLKN0q.js} +2 -2
  54. package/dist/chunks/{card.DqKD40s7.js.map → card.ErZLKN0q.js.map} +1 -1
  55. package/dist/chunks/{checkbox-group.0tRtGhHh.js → checkbox-group.BAjvgXlc.js} +3 -3
  56. package/dist/chunks/{checkbox-group.0tRtGhHh.js.map → checkbox-group.BAjvgXlc.js.map} +1 -1
  57. package/dist/chunks/{checkbox.D-5Uyu7y.js → checkbox.BAQDBNL6.js} +2 -2
  58. package/dist/chunks/{checkbox.D-5Uyu7y.js.map → checkbox.BAQDBNL6.js.map} +1 -1
  59. package/dist/chunks/{code-snippet.CmUPzpQp.js → code-snippet.B3iCsNmb.js} +5 -5
  60. package/dist/chunks/{code-snippet.CmUPzpQp.js.map → code-snippet.B3iCsNmb.js.map} +1 -1
  61. package/dist/chunks/{controls-group.CcI4EbW_.js → controls-group.Bzpsrtcx.js} +2 -2
  62. package/dist/chunks/{controls-group.CcI4EbW_.js.map → controls-group.Bzpsrtcx.js.map} +1 -1
  63. package/dist/chunks/{copy.BA1G-Pi2.js → copy.DVB6pQC8.js} +4 -4
  64. package/dist/chunks/{copy.BA1G-Pi2.js.map → copy.DVB6pQC8.js.map} +1 -1
  65. package/dist/chunks/{dashboard-section.BOySJG3P.js → dashboard-section.HFJcf8-_.js} +4 -4
  66. package/dist/chunks/{dashboard-section.BOySJG3P.js.map → dashboard-section.HFJcf8-_.js.map} +1 -1
  67. package/dist/chunks/dashed-underline.Cl07OQID.js +55 -0
  68. package/dist/chunks/dashed-underline.Cl07OQID.js.map +1 -0
  69. package/dist/chunks/{data-grid-template.C6Sym5we.js → data-grid-template.BjfPUEoH.js} +4 -4
  70. package/dist/chunks/{data-grid-template.C6Sym5we.js.map → data-grid-template.BjfPUEoH.js.map} +1 -1
  71. package/dist/chunks/{data-grid.By3YYFjp.js → data-grid.Cua2Jxvq.js} +212 -212
  72. package/dist/chunks/{data-grid.By3YYFjp.js.map → data-grid.Cua2Jxvq.js.map} +1 -1
  73. package/dist/chunks/{date-picker.B5dusL9n.js → date-picker.CYDTf6De.js} +90 -82
  74. package/dist/chunks/date-picker.CYDTf6De.js.map +1 -0
  75. package/dist/chunks/{date-range-picker.C_9uZ3up.js → date-range-picker.DGGvwRfn.js} +252 -271
  76. package/dist/chunks/date-range-picker.DGGvwRfn.js.map +1 -0
  77. package/dist/chunks/date-time-picker.CyNb-xDm.js +129 -0
  78. package/dist/chunks/date-time-picker.CyNb-xDm.js.map +1 -0
  79. package/dist/chunks/{dialog-page.B65F56Ha.js → dialog-page.DYWnKdnP.js} +3 -3
  80. package/dist/chunks/{dialog-page.B65F56Ha.js.map → dialog-page.DYWnKdnP.js.map} +1 -1
  81. package/dist/chunks/directive.BBWhsNtO.js +28 -0
  82. package/dist/chunks/directive.BBWhsNtO.js.map +1 -0
  83. package/dist/chunks/{draggable-handle.BFGaZNTT.js → draggable-handle.CU1L7J87.js} +3 -3
  84. package/dist/chunks/{draggable-handle.BFGaZNTT.js.map → draggable-handle.CU1L7J87.js.map} +1 -1
  85. package/dist/chunks/{drawer.DqUvBlma.js → drawer.WW7G9cSC.js} +46 -19
  86. package/dist/chunks/{drawer.DqUvBlma.js.map → drawer.WW7G9cSC.js.map} +1 -1
  87. package/dist/chunks/{dropdown-tag.CY0-p_gn.js → dropdown-tag.C1qg52L9.js} +3 -3
  88. package/dist/chunks/{dropdown-tag.CY0-p_gn.js.map → dropdown-tag.C1qg52L9.js.map} +1 -1
  89. package/dist/chunks/{dropdown.Dx0HybJ8.js → dropdown.BEurqT8m.js} +323 -323
  90. package/dist/chunks/dropdown.BEurqT8m.js.map +1 -0
  91. package/dist/chunks/{empty-state.DMV23IZy.js → empty-state.Dttc-ZO_.js} +2 -2
  92. package/dist/chunks/{empty-state.DMV23IZy.js.map → empty-state.Dttc-ZO_.js.map} +1 -1
  93. package/dist/chunks/{field-label.Cq01oVR-.js → field-label.CdVbAfK-.js} +2 -2
  94. package/dist/chunks/{field-label.Cq01oVR-.js.map → field-label.CdVbAfK-.js.map} +1 -1
  95. package/dist/chunks/{file-uploader.BdvtbVvC.js → file-uploader.CO2MeHwl.js} +8 -8
  96. package/dist/chunks/{file-uploader.BdvtbVvC.js.map → file-uploader.CO2MeHwl.js.map} +1 -1
  97. package/dist/chunks/{filter-bar.mPy_N4BF.js → filter-bar.gjMPoK6d.js} +19 -19
  98. package/dist/chunks/{filter-bar.mPy_N4BF.js.map → filter-bar.gjMPoK6d.js.map} +1 -1
  99. package/dist/chunks/{fixed-scroller.DR2E_No4.js → fixed-scroller.4xAzt_OI.js} +2 -2
  100. package/dist/chunks/{fixed-scroller.DR2E_No4.js.map → fixed-scroller.4xAzt_OI.js.map} +1 -1
  101. package/dist/chunks/{focus-trap.CKs45fnj.js → focus-trap.CBIb3SyN.js} +22 -22
  102. package/dist/chunks/{focus-trap.CKs45fnj.js.map → focus-trap.CBIb3SyN.js.map} +1 -1
  103. package/dist/chunks/{footer-actions.BE_hrleY.js → footer-actions.CZE9dcmA.js} +3 -3
  104. package/dist/chunks/{footer-actions.BE_hrleY.js.map → footer-actions.CZE9dcmA.js.map} +1 -1
  105. package/dist/chunks/form-layout-group.zE6TNlzD.js +84 -0
  106. package/dist/chunks/form-layout-group.zE6TNlzD.js.map +1 -0
  107. package/dist/chunks/form-layout-title.CXXdsiK5.js +171 -0
  108. package/dist/chunks/form-layout-title.CXXdsiK5.js.map +1 -0
  109. package/dist/chunks/header-meta.6rZdOgXD.js +239 -0
  110. package/dist/chunks/{header-meta._l0IV3jf.js.map → header-meta.6rZdOgXD.js.map} +1 -1
  111. package/dist/chunks/{header-with-views.LrySsX1p.js → header-with-views.B2Ok5KI1.js} +11 -11
  112. package/dist/chunks/{header-with-views.LrySsX1p.js.map → header-with-views.B2Ok5KI1.js.map} +1 -1
  113. package/dist/chunks/{header.BJZ-o7Mz.js → header.BsroOD5b.js} +3 -3
  114. package/dist/chunks/{header.BJZ-o7Mz.js.map → header.BsroOD5b.js.map} +1 -1
  115. package/dist/chunks/{index.DZx81HG1.js → index.CJYgd0QI.js} +220 -197
  116. package/dist/chunks/{index.DZx81HG1.js.map → index.CJYgd0QI.js.map} +1 -1
  117. package/dist/chunks/{info-icon.CRpEtx-P.js → info-icon.9Nt7zg3D.js} +3 -3
  118. package/dist/chunks/{info-icon.CRpEtx-P.js.map → info-icon.9Nt7zg3D.js.map} +1 -1
  119. package/dist/chunks/{input-field-password.C2ogXvbh.js → input-field-password.viF49CQh.js} +20 -21
  120. package/dist/chunks/{input-field-password.C2ogXvbh.js.map → input-field-password.viF49CQh.js.map} +1 -1
  121. package/dist/chunks/{input-field-phone-number.D8Enmcny.js → input-field-phone-number.DnpTj7q5.js} +13 -14
  122. package/dist/chunks/{input-field-phone-number.D8Enmcny.js.map → input-field-phone-number.DnpTj7q5.js.map} +1 -1
  123. package/dist/chunks/{input-field.CRsU2NBh.js → input-field.D86PSAiu.js} +77 -74
  124. package/dist/chunks/input-field.D86PSAiu.js.map +1 -0
  125. package/dist/chunks/{input-time.BSrSAN3r.js → input-time.LyKZXnVO.js} +7 -8
  126. package/dist/chunks/{input-time.BSrSAN3r.js.map → input-time.LyKZXnVO.js.map} +1 -1
  127. package/dist/chunks/{inspector.Dagz-JL1.js → inspector.BY3SoX-l.js} +4 -4
  128. package/dist/chunks/{inspector.Dagz-JL1.js.map → inspector.BY3SoX-l.js.map} +1 -1
  129. package/dist/chunks/{layout-row.CdpQeT7f.js → layout-row.BI9ZJa-9.js} +13 -13
  130. package/dist/chunks/{layout-row.CdpQeT7f.js.map → layout-row.BI9ZJa-9.js.map} +1 -1
  131. package/dist/chunks/{link.DB5g6d48.js → link.BpuCRgok.js} +11 -11
  132. package/dist/chunks/link.BpuCRgok.js.map +1 -0
  133. package/dist/chunks/{list-item.CQEmr9Yw.js → list-item.D2ZLiS_D.js} +2 -2
  134. package/dist/chunks/{list-item.CQEmr9Yw.js.map → list-item.D2ZLiS_D.js.map} +1 -1
  135. package/dist/chunks/{listbox-option-tag.CnxNmmva.js → listbox-option-tag.Ddyl2vuc.js} +2 -2
  136. package/dist/chunks/{listbox-option-tag.CnxNmmva.js.map → listbox-option-tag.Ddyl2vuc.js.map} +1 -1
  137. package/dist/chunks/{modal-fullscreen.D5A5qJQ6.js → modal-fullscreen.OS6KhVdg.js} +6 -6
  138. package/dist/chunks/{modal-fullscreen.D5A5qJQ6.js.map → modal-fullscreen.OS6KhVdg.js.map} +1 -1
  139. package/dist/chunks/{modal.Bm-nN8pa.js → modal.DHL3TGHv.js} +5 -5
  140. package/dist/chunks/{modal.Bm-nN8pa.js.map → modal.DHL3TGHv.js.map} +1 -1
  141. package/dist/chunks/navigation-menu-group.Dv2_ZRRq.js +261 -0
  142. package/dist/chunks/navigation-menu-group.Dv2_ZRRq.js.map +1 -0
  143. package/dist/chunks/{pagination.Jv60K59y.js → pagination.CJ3d1O_s.js} +3 -3
  144. package/dist/chunks/{pagination.Jv60K59y.js.map → pagination.CJ3d1O_s.js.map} +1 -1
  145. package/dist/chunks/popover.types.B9TXaqAt.js +6 -0
  146. package/dist/chunks/{popover.types.CQ5g4kw2.js.map → popover.types.B9TXaqAt.js.map} +1 -1
  147. package/dist/chunks/{popper-container.D10i5aF5.js → popper-container.CFYFCz6u.js} +2 -2
  148. package/dist/chunks/{popper-container.D10i5aF5.js.map → popper-container.CFYFCz6u.js.map} +1 -1
  149. package/dist/chunks/{promo-banner.DjRIdEh7.js → promo-banner.tljKS80K.js} +3 -3
  150. package/dist/chunks/{promo-banner.DjRIdEh7.js.map → promo-banner.tljKS80K.js.map} +1 -1
  151. package/dist/chunks/{radio-group.BrRXAuJ6.js → radio-group.cn4lZb8R.js} +3 -3
  152. package/dist/chunks/{radio-group.BrRXAuJ6.js.map → radio-group.cn4lZb8R.js.map} +1 -1
  153. package/dist/chunks/{rich-text-editor.DazA-Rlh.js → rich-text-editor.Dwq3Z_lK.js} +6 -6
  154. package/dist/chunks/{rich-text-editor.DazA-Rlh.js.map → rich-text-editor.Dwq3Z_lK.js.map} +1 -1
  155. package/dist/chunks/{search-bar.DeKlBnxE.js → search-bar.BvHhXdNu.js} +10 -11
  156. package/dist/chunks/{search-bar.DeKlBnxE.js.map → search-bar.BvHhXdNu.js.map} +1 -1
  157. package/dist/chunks/{secondary-nav.BLF9iQOV.js → secondary-nav.BvbT8LXa.js} +5 -5
  158. package/dist/chunks/{secondary-nav.BLF9iQOV.js.map → secondary-nav.BvbT8LXa.js.map} +1 -1
  159. package/dist/chunks/{segmented-control.BBG-0da6.js → segmented-control.C0JtDa4q.js} +2 -2
  160. package/dist/chunks/{segmented-control.BBG-0da6.js.map → segmented-control.C0JtDa4q.js.map} +1 -1
  161. package/dist/chunks/{selection-card-group.CXBbA_P1.js → selection-card-group.ZZ_qF1L1.js} +3 -3
  162. package/dist/chunks/{selection-card-group.CXBbA_P1.js.map → selection-card-group.ZZ_qF1L1.js.map} +1 -1
  163. package/dist/chunks/set-time-in-date.CU7HeZLY.js +27 -0
  164. package/dist/chunks/set-time-in-date.CU7HeZLY.js.map +1 -0
  165. package/dist/chunks/{sidepanel.ChPk9qYd.js → sidepanel.B8zQp_MJ.js} +7 -7
  166. package/dist/chunks/{sidepanel.ChPk9qYd.js.map → sidepanel.B8zQp_MJ.js.map} +1 -1
  167. package/dist/chunks/{structured-list-item.Dwftc8Ns.js → structured-list-item.DE0L0kvs.js} +5 -5
  168. package/dist/chunks/{structured-list-item.Dwftc8Ns.js.map → structured-list-item.DE0L0kvs.js.map} +1 -1
  169. package/dist/chunks/{summary-grid.types.Cv27iNrx.js → summary-grid.types.CkqRXOKv.js} +5 -5
  170. package/dist/chunks/{summary-grid.types.Cv27iNrx.js.map → summary-grid.types.CkqRXOKv.js.map} +1 -1
  171. package/dist/chunks/{tab.t1v1GxSA.js → tab.YQXssvyU.js} +3 -3
  172. package/dist/chunks/{tab.t1v1GxSA.js.map → tab.YQXssvyU.js.map} +1 -1
  173. package/dist/chunks/{tag.lfN7xFuw.js → tag.CbNFG45Y.js} +2 -2
  174. package/dist/chunks/{tag.lfN7xFuw.js.map → tag.CbNFG45Y.js.map} +1 -1
  175. package/dist/chunks/{textarea.DSRAB-Ox.js → textarea.DJ7095b6.js} +3 -3
  176. package/dist/chunks/{textarea.DSRAB-Ox.js.map → textarea.DJ7095b6.js.map} +1 -1
  177. package/dist/chunks/{timeline-item.gWNnZjsZ.js → timeline-item.sdxvTjmS.js} +8 -8
  178. package/dist/chunks/{timeline-item.gWNnZjsZ.js.map → timeline-item.sdxvTjmS.js.map} +1 -1
  179. package/dist/chunks/{toast.d8vg71CB.js → toast.BMGR5QrI.js} +2 -2
  180. package/dist/chunks/{toast.d8vg71CB.js.map → toast.BMGR5QrI.js.map} +1 -1
  181. package/dist/chunks/{tooltip.DmFTmAGi.js → tooltip.CnkqMpOA.js} +3 -3
  182. package/dist/chunks/{tooltip.DmFTmAGi.js.map → tooltip.CnkqMpOA.js.map} +1 -1
  183. package/dist/chunks/{tutorial.CO7DzdET.js → tutorial.Ba9dqb2j.js} +4 -4
  184. package/dist/chunks/{tutorial.CO7DzdET.js.map → tutorial.Ba9dqb2j.js.map} +1 -1
  185. package/dist/chunks/use-bento-delayed-hover.D4rfUUOr.js +30 -0
  186. package/dist/chunks/use-bento-delayed-hover.D4rfUUOr.js.map +1 -0
  187. package/dist/chunks/{use-cached-selected-values.Bnmcr7Ji.js → use-cached-selected-values.txnml8sE.js} +3 -3
  188. package/dist/chunks/{use-cached-selected-values.Bnmcr7Ji.js.map → use-cached-selected-values.txnml8sE.js.map} +1 -1
  189. package/dist/chunks/{use-date-input-formatter.BsZ_LLQu.js → use-date-input-formatter.D7Ud6Ana.js} +2 -2
  190. package/dist/chunks/{use-date-input-formatter.BsZ_LLQu.js.map → use-date-input-formatter.D7Ud6Ana.js.map} +1 -1
  191. package/dist/code-snippet.js +1 -1
  192. package/dist/dashboard-template.js +1 -1
  193. package/dist/dashed-underline.js +1 -1
  194. package/dist/data-grid-template.js +1 -1
  195. package/dist/data-grid.js +1 -1
  196. package/dist/date-picker.js +2 -2
  197. package/dist/date-range-picker.js +2 -2
  198. package/dist/date-time-picker.js +5 -0
  199. package/dist/date-time-picker.js.map +1 -0
  200. package/dist/draggable.js +1 -1
  201. package/dist/drawer.js +1 -1
  202. package/dist/dropdown.js +3 -3
  203. package/dist/empty-state.js +1 -1
  204. package/dist/file-uploader.js +1 -1
  205. package/dist/filter-bar.js +1 -1
  206. package/dist/focus-trap.js +1 -1
  207. package/dist/form-layout.js +5 -4
  208. package/dist/form-layout.js.map +1 -1
  209. package/dist/header-with-views.js +1 -1
  210. package/dist/header.js +1 -1
  211. package/dist/index.js +273 -268
  212. package/dist/index.js.map +1 -1
  213. package/dist/info-icon.js +1 -1
  214. package/dist/input-field-password.js +1 -1
  215. package/dist/input-field-phone-number.js +1 -1
  216. package/dist/input-field.js +1 -1
  217. package/dist/input-time.js +1 -1
  218. package/dist/inspector.js +1 -1
  219. package/dist/internal.js +12 -12
  220. package/dist/layout.js +1 -1
  221. package/dist/link.js +1 -1
  222. package/dist/list.js +1 -1
  223. package/dist/menu.js +1 -1
  224. package/dist/modal-fullscreen.js +1 -1
  225. package/dist/modal.js +2 -2
  226. package/dist/navigation-menu.js +1 -1
  227. package/dist/pagination.js +1 -1
  228. package/dist/popover.js +2 -2
  229. package/dist/popper-container.js +1 -1
  230. package/dist/promo-banner.js +1 -1
  231. package/dist/radio-group.js +1 -1
  232. package/dist/rich-text-editor.js +1 -1
  233. package/dist/search-bar.js +2 -2
  234. package/dist/secondary-nav.js +1 -1
  235. package/dist/segmented-control.js +1 -1
  236. package/dist/selection-card.js +1 -1
  237. package/dist/sidepanel.js +1 -1
  238. package/dist/structured-list.js +1 -1
  239. package/dist/summary-grid.js +1 -1
  240. package/dist/tabs.js +1 -1
  241. package/dist/tag.js +1 -1
  242. package/dist/textarea.js +1 -1
  243. package/dist/timeline.js +1 -1
  244. package/dist/toast.js +1 -1
  245. package/dist/tutorial.js +1 -1
  246. package/dist/web-types.json +160 -3
  247. package/package.json +7 -7
  248. package/dist/chunks/dashed-underline.B9Q0T4ss.js +0 -77
  249. package/dist/chunks/dashed-underline.B9Q0T4ss.js.map +0 -1
  250. package/dist/chunks/date-picker.B5dusL9n.js.map +0 -1
  251. package/dist/chunks/date-range-picker.C_9uZ3up.js.map +0 -1
  252. package/dist/chunks/directive.Bfr4fuOy.js +0 -23
  253. package/dist/chunks/directive.Bfr4fuOy.js.map +0 -1
  254. package/dist/chunks/dropdown.Dx0HybJ8.js.map +0 -1
  255. package/dist/chunks/form-layout-title.zZVLCyqe.js +0 -248
  256. package/dist/chunks/form-layout-title.zZVLCyqe.js.map +0 -1
  257. package/dist/chunks/header-meta._l0IV3jf.js +0 -248
  258. package/dist/chunks/input-field.CRsU2NBh.js.map +0 -1
  259. package/dist/chunks/link.DB5g6d48.js.map +0 -1
  260. package/dist/chunks/navigation-menu-group.DHWp-pJO.js +0 -216
  261. package/dist/chunks/navigation-menu-group.DHWp-pJO.js.map +0 -1
  262. package/dist/chunks/popover.types.CQ5g4kw2.js +0 -6
@@ -1,5 +1,5 @@
1
1
  import { ref as c, onMounted as m, computed as u, defineComponent as B } from "vue";
2
- import { B as b } from "./button.C9b2AC9w.js";
2
+ import { B as b } from "./button.DITA6YtS.js";
3
3
  import { u as C } from "./index.B6WW_F-J.js";
4
4
  import { C as x, a as y } from "./chevron-left.BS24hEFa.js";
5
5
  import { o as L } from "./resize.Bqks3WUm.js";
@@ -145,4 +145,4 @@ const X = O.exports;
145
145
  export {
146
146
  X as F
147
147
  };
148
- //# sourceMappingURL=fixed-scroller.DR2E_No4.js.map
148
+ //# sourceMappingURL=fixed-scroller.4xAzt_OI.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fixed-scroller.DR2E_No4.js","sources":["../../src/components/internal/fixed-scroller/composables/useFixedScroller.ts","../../src/components/internal/fixed-scroller/fixed-scroller.vue"],"sourcesContent":["import { observeSizeOfElement } from '@/utils/ts/resize';\nimport { computed, onMounted, ref } from 'vue';\nimport type { Ref, UnwrapRef } from 'vue';\n\n// Adding an offset of \"1\" so that the border can be shown within the boundaries\nconst OVERFLOW_CLIP_OFFSET = 1;\n// Add the gradient offset to the calculations\nconst GRADIENT_OFFSET = 40;\n\ninterface useFixedScrollerProps {\n contentRef?: Ref<UnwrapRef<HTMLDivElement | undefined>>;\n containerRef?: Ref<UnwrapRef<HTMLDivElement | undefined>>;\n leftButtonRef?: Ref<UnwrapRef<HTMLDivElement | undefined>>;\n rightButtonRef?: Ref<UnwrapRef<HTMLDivElement | undefined>>;\n}\n\n/**\n * Function to calculate the offset of each view and change the \"view\" via offsets\n * through the functions `scrollLeft` and `scrollRight` whilst providing a way to\n * show and hide the buttons based on the current \"view\" via\n * `shouldShowLeftButton` and `shouldShowRightButton`.\n *\n * Each view is pre-calculated (offsetArray) and updated if the content changes as a computed ref:\n * First view: Always 0 (x axis beginning).\n * Last view: total content space - visible width\n * Intermediate views: Previous offset (to the left) plus the visible space taking\n * away the space the buttons take so that the whole view can be rendered\n *\n *\n * @param props - All the necessary references to calculate the scroll\n * @param props.containerRef - Reference to the container, this defines the visible space width\n * @param props.contentRef - Reference to the content itself, this defines the total content width\n * @param props.leftButtonRef - Reference to the left button, used to calculate total space in which the content will be rendered\n * @param props.rightButtonRef - Reference to the right button, used to calculate total space in which the content will be rendered\n * @returns response - Values used in the view to show the buttons and to change the view right or left\n * @returns response.offset - Offset value by which the view will move on the x axis. To be used in `styles`.\n * @returns response.shouldShowLeftButton - Indicates if the button on the left should be shown\n * @returns response.shouldShowRightButton - Indicates if the button on the right should be shown\n * @returns response.scrollLeft - Used to shift the view to the left\n * @returns response.scrollRight - Used to shift the view to the right\n */\nexport const useFixedScroller = ({\n contentRef,\n containerRef,\n leftButtonRef,\n rightButtonRef,\n}: useFixedScrollerProps) => {\n const offset = ref(0);\n const currentView = ref(0);\n\n // Calculated using 'scrollWidth' to get the full width of the content\n const totalContentWidth = ref(0);\n // Calculated using 'clientWidth' to get the rendered componen width\n const visibleSpaceWidth = ref(0);\n\n onMounted(() => {\n observeSizeOfElement(containerRef.value, () => {\n if (containerRef.value) {\n // Set new width when resized\n visibleSpaceWidth.value = containerRef.value.offsetWidth;\n // Reset the offset and view\n currentView.value = 0;\n offset.value = 0;\n }\n });\n\n observeSizeOfElement(contentRef.value, () => {\n totalContentWidth.value = contentRef.value?.scrollWidth;\n\n if (totalContentWidth.value < visibleSpaceWidth.value) {\n // Reset the offset and view\n currentView.value = 0;\n offset.value = 0;\n }\n });\n });\n\n // Sum of the space used by the Left and Right buttons\n // Used to calculate how much space the \"actual\" visible space is\n const buttonsWidth = computed(() => {\n const leftButtonWidth = leftButtonRef.value?.scrollWidth\n ? leftButtonRef.value.scrollWidth + GRADIENT_OFFSET\n : 0;\n const rightButtonWidth = rightButtonRef.value?.scrollWidth\n ? rightButtonRef.value.scrollWidth + GRADIENT_OFFSET\n : 0;\n\n return leftButtonWidth + rightButtonWidth;\n });\n // Total number of pages/views available.\n // Calculated as \"ceil\" because if the space doesn't fit \"one view\" (irrational number) the content flows to the next view (integer).\n const totalViews = computed(() => Math.ceil(totalContentWidth.value / visibleSpaceWidth.value) ?? 0);\n\n // Calculation of offsets per view (index).\n // This allows to easily swap the offset without on-the-fly calculations\n const offsetArray = computed(() => {\n const calculatedOffsetList = new Array(totalViews.value).fill(0);\n\n calculatedOffsetList.forEach((_, index) => {\n // First offset will be 0\n if (index === 0) {\n return;\n }\n\n // Calculate last\n if (index === totalViews.value - 1) {\n calculatedOffsetList[calculatedOffsetList.length - 1] = -(\n totalContentWidth.value -\n visibleSpaceWidth.value +\n OVERFLOW_CLIP_OFFSET\n );\n\n return;\n }\n\n // Calculate each offset - Move 1 view\n const previousOffset = calculatedOffsetList[index - 1];\n calculatedOffsetList[index] = -(visibleSpaceWidth.value + Math.abs(previousOffset) - buttonsWidth.value);\n });\n\n return calculatedOffsetList;\n });\n\n // Hide left button when it's the first view\n const shouldShowLeftButton = computed(() => currentView.value !== 0);\n // Hide right button if it's the last view\n const shouldShowRightButton = computed(\n () => offset.value >= -(totalContentWidth.value - visibleSpaceWidth.value - 1)\n );\n\n /**\n * Shifts the current offset by one view to the left.\n */\n const scrollLeft = () => {\n // Do nothing if it is already in page 0\n if (currentView.value === 0) {\n return;\n }\n\n currentView.value -= 1;\n offset.value = offsetArray.value[currentView.value];\n };\n\n /**\n * Shifts the current offset by one view to the right.\n */\n const scrollRight = () => {\n // Do nothing if it is already in last page\n if (currentView.value === totalViews.value - 1) {\n return;\n }\n\n currentView.value += 1;\n offset.value = offsetArray.value[currentView.value];\n };\n\n return {\n offset,\n shouldShowLeftButton,\n shouldShowRightButton,\n\n // Methods\n scrollLeft,\n scrollRight,\n };\n};\n","<template>\n <div ref=\"fixedScrollerRef\" class=\"b-fixed-scroller\">\n <div class=\"b-fixed-scroller__container\">\n <div\n ref=\"contentRef\"\n class=\"b-fixed-scroller__content\"\n :style=\"{\n transform: `translateX(${offset}px)`,\n paddingTop: shouldShowLeftButton || shouldShowRightButton ? `${extraPaddingTop}px` : null,\n }\"\n >\n <slot></slot>\n </div>\n </div>\n\n <div\n v-if=\"shouldShowLeftButton\"\n ref=\"leftButtonRef\"\n class=\"b-fixed-scroller__left b-fixed-scroller__button\"\n :class=\"buttonConditionalClasses\"\n >\n <bento-button variant=\"secondary\" :aria-label=\"t('scrollLeft')\" :condensed=\"condensed\" @click=\"scrollLeft\">\n <template #iconLeft>\n <chevron-left-icon svg-title=\"checked\" aria-hidden=\"true\" />\n </template>\n </bento-button>\n </div>\n <div\n v-if=\"shouldShowRightButton\"\n ref=\"rightButtonRef\"\n class=\"b-fixed-scroller__right b-fixed-scroller__button\"\n :class=\"buttonConditionalClasses\"\n >\n <bento-button\n variant=\"secondary\"\n :aria-label=\"t('scrollRight')\"\n :condensed=\"condensed\"\n @click=\"scrollRight\"\n >\n <template #iconLeft>\n <chevron-right-icon svg-title=\"checked\" aria-hidden=\"true\" />\n </template>\n </bento-button>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, ref } from 'vue';\n import { BentoButton } from '@/components/button';\n import { useFixedScroller } from './composables';\n import { useI18n } from '@/utils/ts/i18n';\n import ChevronLeftIcon from '@adyen/ui-assets-icons-16/vue/chevron-left';\n import ChevronRightIcon from '@adyen/ui-assets-icons-16/vue/chevron-right';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const contentRef = ref(null);\n const fixedScrollerRef = ref(null);\n const leftButtonRef = ref(null);\n const rightButtonRef = ref(null);\n\n const props = defineProps({\n /**\n * Applies the condensed style to the buttons\n */\n condensed: { type: Boolean, default: false },\n /**\n * Padding to be applied to the top of the scroller container\n */\n extraPaddingTop: { type: Number, default: 0 },\n /**\n * Padding to be applied to the top of the scroller container\n */\n centered: { type: Boolean, default: false },\n });\n\n const { offset, shouldShowLeftButton, shouldShowRightButton, scrollLeft, scrollRight } = useFixedScroller({\n contentRef,\n containerRef: fixedScrollerRef,\n leftButtonRef,\n rightButtonRef,\n });\n\n const buttonConditionalClasses = computed(() => ({\n 'b-fixed-scroller__button--centered': props.centered,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * Allows to horizontally scroll content by one view at a time.\n *\n * @example\n * import { FixedScroller } from '@/internal';\n *\n * export default {\n * components: { FixedScroller },\n * template: `\n * <fixed-scroller>\n * <div style=\"display: flex; gap: 8px;\">\n * {{ Content here }}\n * </div>\n * </fixed-scroller>\n * `\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./fixed-scroller.scss\" />\n"],"names":["OVERFLOW_CLIP_OFFSET","GRADIENT_OFFSET","useFixedScroller","contentRef","containerRef","leftButtonRef","rightButtonRef","offset","ref","currentView","totalContentWidth","visibleSpaceWidth","onMounted","observeSizeOfElement","_a","buttonsWidth","computed","leftButtonWidth","rightButtonWidth","_b","totalViews","offsetArray","calculatedOffsetList","_","index","previousOffset","shouldShowLeftButton","shouldShowRightButton","__default__","messages","t","useI18n","fixedScrollerRef","scrollLeft","scrollRight","buttonConditionalClasses","props"],"mappings":"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"}
1
+ {"version":3,"file":"fixed-scroller.4xAzt_OI.js","sources":["../../src/components/internal/fixed-scroller/composables/useFixedScroller.ts","../../src/components/internal/fixed-scroller/fixed-scroller.vue"],"sourcesContent":["import { observeSizeOfElement } from '@/utils/ts/resize';\nimport { computed, onMounted, ref } from 'vue';\nimport type { Ref, UnwrapRef } from 'vue';\n\n// Adding an offset of \"1\" so that the border can be shown within the boundaries\nconst OVERFLOW_CLIP_OFFSET = 1;\n// Add the gradient offset to the calculations\nconst GRADIENT_OFFSET = 40;\n\ninterface useFixedScrollerProps {\n contentRef?: Ref<UnwrapRef<HTMLDivElement | undefined>>;\n containerRef?: Ref<UnwrapRef<HTMLDivElement | undefined>>;\n leftButtonRef?: Ref<UnwrapRef<HTMLDivElement | undefined>>;\n rightButtonRef?: Ref<UnwrapRef<HTMLDivElement | undefined>>;\n}\n\n/**\n * Function to calculate the offset of each view and change the \"view\" via offsets\n * through the functions `scrollLeft` and `scrollRight` whilst providing a way to\n * show and hide the buttons based on the current \"view\" via\n * `shouldShowLeftButton` and `shouldShowRightButton`.\n *\n * Each view is pre-calculated (offsetArray) and updated if the content changes as a computed ref:\n * First view: Always 0 (x axis beginning).\n * Last view: total content space - visible width\n * Intermediate views: Previous offset (to the left) plus the visible space taking\n * away the space the buttons take so that the whole view can be rendered\n *\n *\n * @param props - All the necessary references to calculate the scroll\n * @param props.containerRef - Reference to the container, this defines the visible space width\n * @param props.contentRef - Reference to the content itself, this defines the total content width\n * @param props.leftButtonRef - Reference to the left button, used to calculate total space in which the content will be rendered\n * @param props.rightButtonRef - Reference to the right button, used to calculate total space in which the content will be rendered\n * @returns response - Values used in the view to show the buttons and to change the view right or left\n * @returns response.offset - Offset value by which the view will move on the x axis. To be used in `styles`.\n * @returns response.shouldShowLeftButton - Indicates if the button on the left should be shown\n * @returns response.shouldShowRightButton - Indicates if the button on the right should be shown\n * @returns response.scrollLeft - Used to shift the view to the left\n * @returns response.scrollRight - Used to shift the view to the right\n */\nexport const useFixedScroller = ({\n contentRef,\n containerRef,\n leftButtonRef,\n rightButtonRef,\n}: useFixedScrollerProps) => {\n const offset = ref(0);\n const currentView = ref(0);\n\n // Calculated using 'scrollWidth' to get the full width of the content\n const totalContentWidth = ref(0);\n // Calculated using 'clientWidth' to get the rendered componen width\n const visibleSpaceWidth = ref(0);\n\n onMounted(() => {\n observeSizeOfElement(containerRef.value, () => {\n if (containerRef.value) {\n // Set new width when resized\n visibleSpaceWidth.value = containerRef.value.offsetWidth;\n // Reset the offset and view\n currentView.value = 0;\n offset.value = 0;\n }\n });\n\n observeSizeOfElement(contentRef.value, () => {\n totalContentWidth.value = contentRef.value?.scrollWidth;\n\n if (totalContentWidth.value < visibleSpaceWidth.value) {\n // Reset the offset and view\n currentView.value = 0;\n offset.value = 0;\n }\n });\n });\n\n // Sum of the space used by the Left and Right buttons\n // Used to calculate how much space the \"actual\" visible space is\n const buttonsWidth = computed(() => {\n const leftButtonWidth = leftButtonRef.value?.scrollWidth\n ? leftButtonRef.value.scrollWidth + GRADIENT_OFFSET\n : 0;\n const rightButtonWidth = rightButtonRef.value?.scrollWidth\n ? rightButtonRef.value.scrollWidth + GRADIENT_OFFSET\n : 0;\n\n return leftButtonWidth + rightButtonWidth;\n });\n // Total number of pages/views available.\n // Calculated as \"ceil\" because if the space doesn't fit \"one view\" (irrational number) the content flows to the next view (integer).\n const totalViews = computed(() => Math.ceil(totalContentWidth.value / visibleSpaceWidth.value) ?? 0);\n\n // Calculation of offsets per view (index).\n // This allows to easily swap the offset without on-the-fly calculations\n const offsetArray = computed(() => {\n const calculatedOffsetList = new Array(totalViews.value).fill(0);\n\n calculatedOffsetList.forEach((_, index) => {\n // First offset will be 0\n if (index === 0) {\n return;\n }\n\n // Calculate last\n if (index === totalViews.value - 1) {\n calculatedOffsetList[calculatedOffsetList.length - 1] = -(\n totalContentWidth.value -\n visibleSpaceWidth.value +\n OVERFLOW_CLIP_OFFSET\n );\n\n return;\n }\n\n // Calculate each offset - Move 1 view\n const previousOffset = calculatedOffsetList[index - 1];\n calculatedOffsetList[index] = -(visibleSpaceWidth.value + Math.abs(previousOffset) - buttonsWidth.value);\n });\n\n return calculatedOffsetList;\n });\n\n // Hide left button when it's the first view\n const shouldShowLeftButton = computed(() => currentView.value !== 0);\n // Hide right button if it's the last view\n const shouldShowRightButton = computed(\n () => offset.value >= -(totalContentWidth.value - visibleSpaceWidth.value - 1)\n );\n\n /**\n * Shifts the current offset by one view to the left.\n */\n const scrollLeft = () => {\n // Do nothing if it is already in page 0\n if (currentView.value === 0) {\n return;\n }\n\n currentView.value -= 1;\n offset.value = offsetArray.value[currentView.value];\n };\n\n /**\n * Shifts the current offset by one view to the right.\n */\n const scrollRight = () => {\n // Do nothing if it is already in last page\n if (currentView.value === totalViews.value - 1) {\n return;\n }\n\n currentView.value += 1;\n offset.value = offsetArray.value[currentView.value];\n };\n\n return {\n offset,\n shouldShowLeftButton,\n shouldShowRightButton,\n\n // Methods\n scrollLeft,\n scrollRight,\n };\n};\n","<template>\n <div ref=\"fixedScrollerRef\" class=\"b-fixed-scroller\">\n <div class=\"b-fixed-scroller__container\">\n <div\n ref=\"contentRef\"\n class=\"b-fixed-scroller__content\"\n :style=\"{\n transform: `translateX(${offset}px)`,\n paddingTop: shouldShowLeftButton || shouldShowRightButton ? `${extraPaddingTop}px` : null,\n }\"\n >\n <slot></slot>\n </div>\n </div>\n\n <div\n v-if=\"shouldShowLeftButton\"\n ref=\"leftButtonRef\"\n class=\"b-fixed-scroller__left b-fixed-scroller__button\"\n :class=\"buttonConditionalClasses\"\n >\n <bento-button variant=\"secondary\" :aria-label=\"t('scrollLeft')\" :condensed=\"condensed\" @click=\"scrollLeft\">\n <template #iconLeft>\n <chevron-left-icon svg-title=\"checked\" aria-hidden=\"true\" />\n </template>\n </bento-button>\n </div>\n <div\n v-if=\"shouldShowRightButton\"\n ref=\"rightButtonRef\"\n class=\"b-fixed-scroller__right b-fixed-scroller__button\"\n :class=\"buttonConditionalClasses\"\n >\n <bento-button\n variant=\"secondary\"\n :aria-label=\"t('scrollRight')\"\n :condensed=\"condensed\"\n @click=\"scrollRight\"\n >\n <template #iconLeft>\n <chevron-right-icon svg-title=\"checked\" aria-hidden=\"true\" />\n </template>\n </bento-button>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, ref } from 'vue';\n import { BentoButton } from '@/components/button';\n import { useFixedScroller } from './composables';\n import { useI18n } from '@/utils/ts/i18n';\n import ChevronLeftIcon from '@adyen/ui-assets-icons-16/vue/chevron-left';\n import ChevronRightIcon from '@adyen/ui-assets-icons-16/vue/chevron-right';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const contentRef = ref(null);\n const fixedScrollerRef = ref(null);\n const leftButtonRef = ref(null);\n const rightButtonRef = ref(null);\n\n const props = defineProps({\n /**\n * Applies the condensed style to the buttons\n */\n condensed: { type: Boolean, default: false },\n /**\n * Padding to be applied to the top of the scroller container\n */\n extraPaddingTop: { type: Number, default: 0 },\n /**\n * Padding to be applied to the top of the scroller container\n */\n centered: { type: Boolean, default: false },\n });\n\n const { offset, shouldShowLeftButton, shouldShowRightButton, scrollLeft, scrollRight } = useFixedScroller({\n contentRef,\n containerRef: fixedScrollerRef,\n leftButtonRef,\n rightButtonRef,\n });\n\n const buttonConditionalClasses = computed(() => ({\n 'b-fixed-scroller__button--centered': props.centered,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * Allows to horizontally scroll content by one view at a time.\n *\n * @example\n * import { FixedScroller } from '@/internal';\n *\n * export default {\n * components: { FixedScroller },\n * template: `\n * <fixed-scroller>\n * <div style=\"display: flex; gap: 8px;\">\n * {{ Content here }}\n * </div>\n * </fixed-scroller>\n * `\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./fixed-scroller.scss\" />\n"],"names":["OVERFLOW_CLIP_OFFSET","GRADIENT_OFFSET","useFixedScroller","contentRef","containerRef","leftButtonRef","rightButtonRef","offset","ref","currentView","totalContentWidth","visibleSpaceWidth","onMounted","observeSizeOfElement","_a","buttonsWidth","computed","leftButtonWidth","rightButtonWidth","_b","totalViews","offsetArray","calculatedOffsetList","_","index","previousOffset","shouldShowLeftButton","shouldShowRightButton","__default__","messages","t","useI18n","fixedScrollerRef","scrollLeft","scrollRight","buttonConditionalClasses","props"],"mappings":"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"}
@@ -1,6 +1,6 @@
1
1
  import { ref as $, onUnmounted as De, isRef as nt, watch as Re, computed as K, onMounted as at, onBeforeUnmount as it, defineComponent as ot, useSlots as ut, toRef as ct } from "vue";
2
2
  import { u as st } from "./use-has-slot.C9lQZ6nz.js";
3
- import { n as lt, o as ft, p as dt } from "./index.DZx81HG1.js";
3
+ import { o as lt, p as ft, q as dt } from "./index.CJYgd0QI.js";
4
4
  import { n as vt } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
5
5
  import "../assets/focus-trap.css";
6
6
  const bt = (t) => {
@@ -59,27 +59,27 @@ var _e = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
59
59
  return t == null || (e = t.getRootNode) === null || e === void 0 ? void 0 : e.call(t);
60
60
  } : function(t) {
61
61
  return t == null ? void 0 : t.ownerDocument;
62
- }, H = function(e, r) {
62
+ }, q = function(e, r) {
63
63
  var n;
64
64
  r === void 0 && (r = !0);
65
65
  var i = e == null || (n = e.getAttribute) === null || n === void 0 ? void 0 : n.call(e, "inert"), u = i === "" || i === "true", a = u || r && e && // closest does not exist on shadow roots, so we fall back to a manual
66
66
  // lookup upward, in case it is not defined.
67
- (typeof e.closest == "function" ? e.closest("[inert]") : H(e.parentNode));
67
+ (typeof e.closest == "function" ? e.closest("[inert]") : q(e.parentNode));
68
68
  return a;
69
69
  }, pt = function(e) {
70
70
  var r, n = e == null || (r = e.getAttribute) === null || r === void 0 ? void 0 : r.call(e, "contenteditable");
71
71
  return n === "" || n === "true";
72
72
  }, Be = function(e, r, n) {
73
- if (H(e))
73
+ if (q(e))
74
74
  return [];
75
75
  var i = Array.prototype.slice.apply(e.querySelectorAll(W));
76
76
  return r && P.call(e, W) && i.unshift(e), i = i.filter(n), i;
77
- }, q = function(e, r, n) {
77
+ }, H = function(e, r, n) {
78
78
  for (var i = [], u = Array.from(e); u.length; ) {
79
79
  var a = u.shift();
80
- if (!H(a, !1))
80
+ if (!q(a, !1))
81
81
  if (a.tagName === "SLOT") {
82
- var s = a.assignedElements(), l = s.length ? s : a.children, d = q(l, !0, n);
82
+ var s = a.assignedElements(), l = s.length ? s : a.children, d = H(l, !0, n);
83
83
  n.flatten ? i.push.apply(i, d) : i.push({
84
84
  scopeParent: a,
85
85
  candidates: d
@@ -88,9 +88,9 @@ var _e = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
88
88
  var b = P.call(a, W);
89
89
  b && n.filter(a) && (r || !e.includes(a)) && i.push(a);
90
90
  var v = a.shadowRoot || // check for an undisclosed shadow
91
- typeof n.getShadowRoot == "function" && n.getShadowRoot(a), m = !H(v, !1) && (!n.shadowRootFilter || n.shadowRootFilter(a));
91
+ typeof n.getShadowRoot == "function" && n.getShadowRoot(a), m = !q(v, !1) && (!n.shadowRootFilter || n.shadowRootFilter(a));
92
92
  if (v && m) {
93
- var w = q(v === !0 ? a.children : v.children, !0, n);
93
+ var w = H(v === !0 ? a.children : v.children, !0, n);
94
94
  n.flatten ? i.push.apply(i, w) : i.push({
95
95
  scopeParent: a,
96
96
  candidates: w
@@ -238,7 +238,7 @@ var _e = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
238
238
  }, It = function(e, r) {
239
239
  r = r || {};
240
240
  var n;
241
- return r.getShadowRoot ? n = q([e], r.includeContainer, {
241
+ return r.getShadowRoot ? n = H([e], r.includeContainer, {
242
242
  filter: ae.bind(null, r),
243
243
  flatten: !1,
244
244
  getShadowRoot: r.getShadowRoot,
@@ -247,7 +247,7 @@ var _e = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
247
247
  }, xt = function(e, r) {
248
248
  r = r || {};
249
249
  var n;
250
- return r.getShadowRoot ? n = q([e], r.includeContainer, {
250
+ return r.getShadowRoot ? n = H([e], r.includeContainer, {
251
251
  filter: Y.bind(null, r),
252
252
  flatten: !0,
253
253
  getShadowRoot: r.getShadowRoot
@@ -730,7 +730,7 @@ var Ae = {
730
730
  }
731
731
  }), s.updateContainerElements(e), s;
732
732
  };
733
- const Ht = (t, e, r) => {
733
+ const qt = (t, e, r) => {
734
734
  const n = $(null), i = ft(t);
735
735
  Re(
736
736
  [() => dt(t), () => e.value, i, r],
@@ -750,7 +750,7 @@ const Ht = (t, e, r) => {
750
750
  e.value && ((u = n.value) == null || u.deactivate());
751
751
  });
752
752
  };
753
- var Ie = "data-focus-lock", qt = "data-focus-lock-disabled", Yt = "data-no-focus-lock", Zt = "data-autofocus-inside", zt = "data-no-autofocus", A = function(t) {
753
+ var Ie = "data-focus-lock", Ht = "data-focus-lock-disabled", Yt = "data-no-focus-lock", Zt = "data-autofocus-inside", zt = "data-no-autofocus", A = function(t) {
754
754
  for (var e = Array(t.length), r = 0; r < t.length; ++r)
755
755
  e[r] = t[r];
756
756
  return e;
@@ -784,22 +784,22 @@ var Ie = "data-focus-lock", qt = "data-focus-lock-disabled", Yt = "data-no-focus
784
784
  return r;
785
785
  var n = Jt(e, Ge.bind(void 0, t));
786
786
  return t.set(e, n), n;
787
- }, He = function(t) {
787
+ }, qe = function(t) {
788
788
  return t.dataset;
789
789
  }, Qt = function(t) {
790
790
  return t.tagName === "BUTTON";
791
- }, qe = function(t) {
791
+ }, He = function(t) {
792
792
  return t.tagName === "INPUT";
793
793
  }, Ye = function(t) {
794
- return qe(t) && t.type === "radio";
794
+ return He(t) && t.type === "radio";
795
795
  }, er = function(t) {
796
- return !((qe(t) || Qt(t)) && (t.type === "hidden" || t.disabled));
796
+ return !((He(t) || Qt(t)) && (t.type === "hidden" || t.disabled));
797
797
  }, tr = function(t) {
798
798
  var e = t.getAttribute(zt);
799
799
  return ![!0, "true", ""].includes(e);
800
800
  }, se = function(t) {
801
801
  var e;
802
- return !!(t && (!((e = He(t)) === null || e === void 0) && e.focusGuard));
802
+ return !!(t && (!((e = qe(t)) === null || e === void 0) && e.focusGuard));
803
803
  }, Z = function(t) {
804
804
  return !se(t);
805
805
  }, rr = function(t) {
@@ -899,7 +899,7 @@ var Ie = "data-focus-lock", qt = "data-focus-lock-disabled", Yt = "data-no-focus
899
899
  var e = oe(t);
900
900
  return e.filter(Boolean).reduce(function(r, n) {
901
901
  var i = n.getAttribute(Ie);
902
- return r.push.apply(r, i ? cr(A($e(n).querySelectorAll("[".concat(Ie, '="').concat(i, '"]:not([').concat(qt, '="disabled"])')))) : [n]), r;
902
+ return r.push.apply(r, i ? cr(A($e(n).querySelectorAll("[".concat(Ie, '="').concat(i, '"]:not([').concat(Ht, '="disabled"])')))) : [n]), r;
903
903
  }, []);
904
904
  }, Xe = function(t) {
905
905
  return t.activeElement ? t.activeElement.shadowRoot ? Xe(t.activeElement.shadowRoot) : t.activeElement : void 0;
@@ -985,7 +985,7 @@ var Ie = "data-focus-lock", qt = "data-focus-lock-disabled", Yt = "data-no-focus
985
985
  }, hr = function(t) {
986
986
  return function(e) {
987
987
  var r;
988
- return e.autofocus || !!(!((r = He(e)) === null || r === void 0) && r.autofocus) || t.indexOf(e) >= 0;
988
+ return e.autofocus || !!(!((r = qe(e)) === null || r === void 0) && r.autofocus) || t.indexOf(e) >= 0;
989
989
  };
990
990
  }, yr = function(t, e) {
991
991
  var r = /* @__PURE__ */ new Map();
@@ -1155,7 +1155,7 @@ const xr = (t, e, r) => {
1155
1155
  },
1156
1156
  setup(t) {
1157
1157
  const e = t, r = $(null), n = ut(), i = st(n), u = K(() => e.trapAll && !e.disabled && !e.arrowNavigation), a = K(() => !e.disabled && !e.trapAll);
1158
- Ht(r, u, ct(e, "trapAllOptions"));
1158
+ qt(r, u, ct(e, "trapAllOptions"));
1159
1159
  const { handleKeydownEscape: s } = bt(r), { onKeyDown: l, onBlur: d } = xr(r, a, e.arrowNavigation);
1160
1160
  return { __sfc: !0, props: e, root: r, slots: n, hasSlot: i, activateTrapAll: u, activateTrapArrowKeysOnly: a, handleKeydownEscape: s, onKeyDown: l, onBlur: d };
1161
1161
  }
@@ -1182,4 +1182,4 @@ export {
1182
1182
  Ar as g,
1183
1183
  Tr as s
1184
1184
  };
1185
- //# sourceMappingURL=focus-trap.CKs45fnj.js.map
1185
+ //# sourceMappingURL=focus-trap.CBIb3SyN.js.map