@adyen/bento-vue2 1.26.0 → 1.28.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 (577) hide show
  1. package/dist/@types/components.d.ts +8 -0
  2. package/dist/@types/index.d.ts +967 -374
  3. package/dist/accordion.js +3 -101
  4. package/dist/accordion.js.map +1 -1
  5. package/dist/action-bar.js +2 -231
  6. package/dist/action-bar.js.map +1 -1
  7. package/dist/alert.js +5 -116
  8. package/dist/alert.js.map +1 -1
  9. package/dist/assets/{index2.css → accordion-item.css} +1 -1
  10. package/dist/assets/{index3.css → action-bar.css} +1 -1
  11. package/dist/assets/alert.css +1 -0
  12. package/dist/assets/base-modal.css +1 -1
  13. package/dist/assets/button-actions.css +1 -1
  14. package/dist/assets/button.css +1 -1
  15. package/dist/assets/{index7.css → card.css} +1 -1
  16. package/dist/assets/checkbox-input.css +1 -1
  17. package/dist/assets/{index9.css → code-snippet.css} +1 -1
  18. package/dist/assets/dashboard-section.css +1 -0
  19. package/dist/assets/dashed-underline.css +1 -0
  20. package/dist/assets/data-grid-template.css +1 -0
  21. package/dist/assets/data-grid.css +1 -0
  22. package/dist/assets/dialog-page.css +1 -1
  23. package/dist/assets/dropdown-default-textbox.css +1 -1
  24. package/dist/assets/dropdown.css +1 -1
  25. package/dist/assets/filter-bar.css +1 -0
  26. package/dist/assets/{index15.css → form-layout-title.css} +1 -1
  27. package/dist/assets/{index25.css → input-field.css} +1 -1
  28. package/dist/assets/listbox-option-tag.css +1 -1
  29. package/dist/assets/{index26.css → menu.css} +1 -1
  30. package/dist/assets/{index22.css → modal-fullscreen.css} +1 -1
  31. package/dist/assets/{index28.css → popover.css} +1 -1
  32. package/dist/assets/radio-input.css +1 -1
  33. package/dist/assets/segmented-control.css +1 -0
  34. package/dist/assets/selection-card-group.css +1 -0
  35. package/dist/assets/{index37.css → sidepanel.css} +1 -1
  36. package/dist/assets/status.css +1 -0
  37. package/dist/assets/structured-list-item.css +1 -0
  38. package/dist/assets/{index43.css → tabs.css} +1 -1
  39. package/dist/assets/toggle.css +1 -0
  40. package/dist/assets/tutorial.css +1 -0
  41. package/dist/assets/use-cached-selected-values.css +1 -1
  42. package/dist/avatar-image.js +1 -1
  43. package/dist/badge.js +22 -24
  44. package/dist/badge.js.map +1 -1
  45. package/dist/button.js +14 -94
  46. package/dist/button.js.map +1 -1
  47. package/dist/card.js +4 -114
  48. package/dist/card.js.map +1 -1
  49. package/dist/checkbox.js +8 -155
  50. package/dist/checkbox.js.map +1 -1
  51. package/dist/chunks/1-generic-use.CZhwP2Yc.js +5 -0
  52. package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +1 -0
  53. package/dist/chunks/1-generic-use.R6x8PEGA.js +5 -0
  54. package/dist/chunks/1-generic-use.R6x8PEGA.js.map +1 -0
  55. package/dist/chunks/2-generic-use.CNKjB4B7.js +5 -0
  56. package/dist/chunks/2-generic-use.CNKjB4B7.js.map +1 -0
  57. package/dist/chunks/2-generic-use.w0fUhovx.js +5 -0
  58. package/dist/chunks/2-generic-use.w0fUhovx.js.map +1 -0
  59. package/dist/chunks/3-generic-use.BLEzR04g.js +5 -0
  60. package/dist/chunks/3-generic-use.BLEzR04g.js.map +1 -0
  61. package/dist/chunks/3-generic-use.D3NFHgI4.js +5 -0
  62. package/dist/chunks/3-generic-use.D3NFHgI4.js.map +1 -0
  63. package/dist/chunks/4-generic-use.CULEpvgj.js +5 -0
  64. package/dist/chunks/4-generic-use.CULEpvgj.js.map +1 -0
  65. package/dist/chunks/4-generic-use.D82y3n39.js +5 -0
  66. package/dist/chunks/4-generic-use.D82y3n39.js.map +1 -0
  67. package/dist/chunks/_plugin-vue2_normalizer.CeySl7Fu.js +11 -0
  68. package/dist/chunks/_plugin-vue2_normalizer.CeySl7Fu.js.map +1 -0
  69. package/dist/chunks/accordion-item.DmnrjNzw.js +100 -0
  70. package/dist/chunks/accordion-item.DmnrjNzw.js.map +1 -0
  71. package/dist/chunks/action-bar.Bebh6PHI.js +147 -0
  72. package/dist/chunks/action-bar.Bebh6PHI.js.map +1 -0
  73. package/dist/chunks/adding-payment-methods.BJZLPxtM.js +5 -0
  74. package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +1 -0
  75. package/dist/chunks/adding-payment-methods.Dle8zt43.js +5 -0
  76. package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +1 -0
  77. package/dist/chunks/adyen-giving.Ffw_DlJK.js +5 -0
  78. package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +1 -0
  79. package/dist/chunks/adyen-giving.LiKHj_jY.js +5 -0
  80. package/dist/chunks/adyen-giving.LiKHj_jY.js.map +1 -0
  81. package/dist/chunks/alert.CJyTM4Az.js +96 -0
  82. package/dist/chunks/alert.CJyTM4Az.js.map +1 -0
  83. package/dist/chunks/{aria-label.ac9651a5.js → aria-label.CaUURpnB.js} +1 -1
  84. package/dist/chunks/{aria-label.ac9651a5.js.map → aria-label.CaUURpnB.js.map} +1 -1
  85. package/dist/chunks/{index.7eefc59c.js → avatar-image.DhlR-7Yg.js} +22 -24
  86. package/dist/chunks/avatar-image.DhlR-7Yg.js.map +1 -0
  87. package/dist/chunks/base-button.DER7_IsF.js +86 -0
  88. package/dist/chunks/{base-button.ad74b6f8.js.map → base-button.DER7_IsF.js.map} +1 -1
  89. package/dist/chunks/{base-modal.1fff7abe.js → base-modal.C5I7bR0d.js} +42 -46
  90. package/dist/chunks/{base-modal.1fff7abe.js.map → base-modal.C5I7bR0d.js.map} +1 -1
  91. package/dist/chunks/{base-modal.keys.b08a6bdf.js → base-modal.keys.C2PQXcE2.js} +1 -1
  92. package/dist/chunks/{base-modal.keys.b08a6bdf.js.map → base-modal.keys.C2PQXcE2.js.map} +1 -1
  93. package/dist/chunks/{button-actions-with-menu.e845d77a.js → button-actions-with-menu.f3yuLK-L.js} +25 -27
  94. package/dist/chunks/{button-actions-with-menu.e845d77a.js.map → button-actions-with-menu.f3yuLK-L.js.map} +1 -1
  95. package/dist/chunks/button-actions.Bg9ey0p6.js +111 -0
  96. package/dist/chunks/button-actions.Bg9ey0p6.js.map +1 -0
  97. package/dist/chunks/button.DhAUh5JA.js +99 -0
  98. package/dist/chunks/button.DhAUh5JA.js.map +1 -0
  99. package/dist/chunks/{calendar.640b8d25.js → calendar.B69z8gjb.js} +287 -332
  100. package/dist/chunks/{calendar.640b8d25.js.map → calendar.B69z8gjb.js.map} +1 -1
  101. package/dist/chunks/card.70Xvba2C.js +115 -0
  102. package/dist/chunks/card.70Xvba2C.js.map +1 -0
  103. package/dist/chunks/checkbox-group.B-KdeRXC.js +152 -0
  104. package/dist/chunks/checkbox-group.B-KdeRXC.js.map +1 -0
  105. package/dist/chunks/{checkbox-input.1c3cc8ed.js → checkbox-input.DwDwI2BD.js} +27 -30
  106. package/dist/chunks/{checkbox-input.1c3cc8ed.js.map → checkbox-input.DwDwI2BD.js.map} +1 -1
  107. package/dist/chunks/{checkbox.bfed007c.js → checkbox.Bi2RDBEZ.js} +21 -23
  108. package/dist/chunks/{checkbox.bfed007c.js.map → checkbox.Bi2RDBEZ.js.map} +1 -1
  109. package/dist/chunks/checkmark-circle-fill.DVl6QSwm.js +24 -0
  110. package/dist/chunks/{checkmark-circle-fill.345311d2.js.map → checkmark-circle-fill.DVl6QSwm.js.map} +1 -1
  111. package/dist/chunks/{checkmark-small.520f01b1.js → checkmark-small.BtF8b2gE.js} +6 -8
  112. package/dist/chunks/{checkmark-small.520f01b1.js.map → checkmark-small.BtF8b2gE.js.map} +1 -1
  113. package/dist/chunks/{chevron-left.5edf02ac.js → chevron-left.CtnrsqUy.js} +13 -17
  114. package/dist/chunks/{chevron-left.5edf02ac.js.map → chevron-left.CtnrsqUy.js.map} +1 -1
  115. package/dist/chunks/{chevron-up.81185563.js → chevron-up.B2uWhZf7.js} +14 -18
  116. package/dist/chunks/{chevron-up.81185563.js.map → chevron-up.B2uWhZf7.js.map} +1 -1
  117. package/dist/chunks/click-outside.DABh6NLr.js +23 -0
  118. package/dist/chunks/click-outside.DABh6NLr.js.map +1 -0
  119. package/dist/chunks/code-snippet.C4IbjAhH.js +968 -0
  120. package/dist/chunks/code-snippet.C4IbjAhH.js.map +1 -0
  121. package/dist/chunks/{controls-group.4fb50009.js → controls-group.cSRFiEVO.js} +17 -19
  122. package/dist/chunks/{controls-group.4fb50009.js.map → controls-group.cSRFiEVO.js.map} +1 -1
  123. package/dist/chunks/{copy.f85700c6.js → copy.BtFWFG3q.js} +15 -19
  124. package/dist/chunks/{copy.f85700c6.js.map → copy.BtFWFG3q.js.map} +1 -1
  125. package/dist/chunks/country.KayLT0zy.js +93 -0
  126. package/dist/chunks/country.KayLT0zy.js.map +1 -0
  127. package/dist/chunks/{country.types.002caff2.js → country.types.Br0AjxGy.js} +5 -5
  128. package/dist/chunks/{country.types.002caff2.js.map → country.types.Br0AjxGy.js.map} +1 -1
  129. package/dist/chunks/{cross-circle-fill.27580c4b.js → cross-circle-fill.CnYH4R_h.js} +7 -9
  130. package/dist/chunks/{cross-circle-fill.27580c4b.js.map → cross-circle-fill.CnYH4R_h.js.map} +1 -1
  131. package/dist/chunks/{cross-small.e851e0de.js → cross-small.BLUwtRB-.js} +9 -11
  132. package/dist/chunks/{cross-small.e851e0de.js.map → cross-small.BLUwtRB-.js.map} +1 -1
  133. package/dist/chunks/{cross.04678d81.js → cross.CsUPDmaA.js} +9 -11
  134. package/dist/chunks/{cross.04678d81.js.map → cross.CsUPDmaA.js.map} +1 -1
  135. package/dist/chunks/currency.H7n7RQiX.js +113 -0
  136. package/dist/chunks/currency.H7n7RQiX.js.map +1 -0
  137. package/dist/chunks/dashboard-section.BcH-_en7.js +105 -0
  138. package/dist/chunks/dashboard-section.BcH-_en7.js.map +1 -0
  139. package/dist/chunks/dashed-underline.ChUlcFJR.js +59 -0
  140. package/dist/chunks/dashed-underline.ChUlcFJR.js.map +1 -0
  141. package/dist/chunks/data-grid-template.DqG5bNeD.js +66 -0
  142. package/dist/chunks/data-grid-template.DqG5bNeD.js.map +1 -0
  143. package/dist/chunks/{data-grid-template.keys.a819a991.js → data-grid-template.keys.2_AkxuNT.js} +1 -1
  144. package/dist/chunks/{data-grid-template.keys.a819a991.js.map → data-grid-template.keys.2_AkxuNT.js.map} +1 -1
  145. package/dist/chunks/data-grid.CvHAdmvs.js +2022 -0
  146. package/dist/chunks/data-grid.CvHAdmvs.js.map +1 -0
  147. package/dist/chunks/{date-input.9186a0bf.js → date-input.BqBdAO1E.js} +1 -1
  148. package/dist/chunks/{date-input.9186a0bf.js.map → date-input.BqBdAO1E.js.map} +1 -1
  149. package/dist/chunks/date-picker.ByP2Wpo0.js +196 -0
  150. package/dist/chunks/date-picker.ByP2Wpo0.js.map +1 -0
  151. package/dist/chunks/{index.8b8c3b16.js → date-range-picker.DrnklTJ-.js} +113 -117
  152. package/dist/chunks/date-range-picker.DrnklTJ-.js.map +1 -0
  153. package/dist/chunks/{index.b21197ca.js → date.DKjxxR6P.js} +44 -51
  154. package/dist/chunks/date.DKjxxR6P.js.map +1 -0
  155. package/dist/chunks/{debounce.b5ef6acf.js → debounce.DUTu11PS.js} +1 -1
  156. package/dist/chunks/{debounce.b5ef6acf.js.map → debounce.DUTu11PS.js.map} +1 -1
  157. package/dist/chunks/{dialog-page.73da22cf.js → dialog-page.DAh0M4mT.js} +20 -24
  158. package/dist/chunks/{dialog-page.73da22cf.js.map → dialog-page.DAh0M4mT.js.map} +1 -1
  159. package/dist/chunks/divider.BZfeYmB9.js +30 -0
  160. package/dist/chunks/divider.BZfeYmB9.js.map +1 -0
  161. package/dist/chunks/{dropdown-default-textbox.54ca1b18.js → dropdown-default-textbox.CKOkl_Qa.js} +30 -34
  162. package/dist/chunks/{dropdown-default-textbox.54ca1b18.js.map → dropdown-default-textbox.CKOkl_Qa.js.map} +1 -1
  163. package/dist/chunks/dropdown-tag.DCMKQy-E.js +214 -0
  164. package/dist/chunks/dropdown-tag.DCMKQy-E.js.map +1 -0
  165. package/dist/chunks/{dropdown.10c034aa.js → dropdown.yhhQCKve.js} +195 -214
  166. package/dist/chunks/dropdown.yhhQCKve.js.map +1 -0
  167. package/dist/chunks/empty-state.BqVOj4v1.js +151 -0
  168. package/dist/chunks/empty-state.BqVOj4v1.js.map +1 -0
  169. package/dist/chunks/error-message.BSxUoE3_.js +107 -0
  170. package/dist/chunks/{error-message.31ec12b7.js.map → error-message.BSxUoE3_.js.map} +1 -1
  171. package/dist/chunks/events.CMzGybJJ.js +47 -0
  172. package/dist/chunks/events.CMzGybJJ.js.map +1 -0
  173. package/dist/chunks/filter-bar.AhsOPMZ1.js +2119 -0
  174. package/dist/chunks/filter-bar.AhsOPMZ1.js.map +1 -0
  175. package/dist/chunks/{fixed-scroller.4eb9a9ac.js → fixed-scroller.Bq1AgPnw.js} +18 -20
  176. package/dist/chunks/{fixed-scroller.4eb9a9ac.js.map → fixed-scroller.Bq1AgPnw.js.map} +1 -1
  177. package/dist/chunks/{index.d553d3d1.js → focus-trap.DSkLNO_i.js} +35 -37
  178. package/dist/chunks/focus-trap.DSkLNO_i.js.map +1 -0
  179. package/dist/chunks/{footer-actions.a1e09b4f.js → footer-actions.DqMRmlV_.js} +11 -13
  180. package/dist/chunks/{footer-actions.a1e09b4f.js.map → footer-actions.DqMRmlV_.js.map} +1 -1
  181. package/dist/chunks/form-layout-title.BzNU0B72.js +187 -0
  182. package/dist/chunks/form-layout-title.BzNU0B72.js.map +1 -0
  183. package/dist/chunks/{form-layout.types.a7a1438d.js → form-layout.types.D3EKzbE7.js} +1 -1
  184. package/dist/chunks/{form-layout.types.a7a1438d.js.map → form-layout.types.D3EKzbE7.js.map} +1 -1
  185. package/dist/chunks/{get-slot-text.99c3d860.js → get-slot-text.Cgn-E48s.js} +2 -2
  186. package/dist/chunks/{get-slot-text.99c3d860.js.map → get-slot-text.Cgn-E48s.js.map} +1 -1
  187. package/dist/chunks/{grid-layout.e0025286.js → grid-layout.HvTAa4to.js} +11 -13
  188. package/dist/chunks/{grid-layout.e0025286.js.map → grid-layout.HvTAa4to.js.map} +1 -1
  189. package/dist/chunks/header.DmKHCmXh.js +245 -0
  190. package/dist/chunks/header.DmKHCmXh.js.map +1 -0
  191. package/dist/chunks/{i18n.eb5b985b.js → i18n.BQkEbtPM.js} +2 -2
  192. package/dist/chunks/{i18n.eb5b985b.js.map → i18n.BQkEbtPM.js.map} +1 -1
  193. package/dist/chunks/image.B3uqhFjl.js +82 -0
  194. package/dist/chunks/image.B3uqhFjl.js.map +1 -0
  195. package/dist/chunks/{index.fdf12170.js → index.B_EJflcs.js} +2 -2
  196. package/dist/chunks/{index.fdf12170.js.map → index.B_EJflcs.js.map} +1 -1
  197. package/dist/chunks/{index.f55fdc32.js → index.B_UZQ6qF.js} +209 -243
  198. package/dist/chunks/{index.f55fdc32.js.map → index.B_UZQ6qF.js.map} +1 -1
  199. package/dist/chunks/{index.4c062058.js → index.Cl4_42j5.js} +1 -1
  200. package/dist/chunks/{index.4c062058.js.map → index.Cl4_42j5.js.map} +1 -1
  201. package/dist/chunks/index.OCPp3NST.js +126 -0
  202. package/dist/chunks/index.OCPp3NST.js.map +1 -0
  203. package/dist/chunks/{index.d80206ed.js → index.Z84QE0E2.js} +2 -2
  204. package/dist/chunks/{index.d80206ed.js.map → index.Z84QE0E2.js.map} +1 -1
  205. package/dist/chunks/{index.86453263.js → index.xqFSZOAb.js} +2 -2
  206. package/dist/chunks/{index.86453263.js.map → index.xqFSZOAb.js.map} +1 -1
  207. package/dist/chunks/info-icon.CLguYHRt.js +41 -0
  208. package/dist/chunks/info-icon.CLguYHRt.js.map +1 -0
  209. package/dist/chunks/{info.8b6328aa.js → info.CyeBsLgt.js} +9 -11
  210. package/dist/chunks/{info.8b6328aa.js.map → info.CyeBsLgt.js.map} +1 -1
  211. package/dist/chunks/input-field.BnlEPPYr.js +218 -0
  212. package/dist/chunks/input-field.BnlEPPYr.js.map +1 -0
  213. package/dist/chunks/internal-error.BLZodVBE.js +5 -0
  214. package/dist/chunks/internal-error.BLZodVBE.js.map +1 -0
  215. package/dist/chunks/internal-error.BmrwJFpR.js +5 -0
  216. package/dist/chunks/internal-error.BmrwJFpR.js.map +1 -0
  217. package/dist/chunks/{keyboard-navigation.ca47dfa8.js → keyboard-navigation.Clz1jOaA.js} +2 -2
  218. package/dist/chunks/{keyboard-navigation.ca47dfa8.js.map → keyboard-navigation.Clz1jOaA.js.map} +1 -1
  219. package/dist/chunks/{index.317fca12.js → link.DJ1A53gF.js} +20 -24
  220. package/dist/chunks/link.DJ1A53gF.js.map +1 -0
  221. package/dist/chunks/listbox-option-tag.BDjsYOE1.js +75 -0
  222. package/dist/chunks/listbox-option-tag.BDjsYOE1.js.map +1 -0
  223. package/dist/chunks/{loading-button.eafc9e1b.js → loading-button.CoF1IhEU.js} +32 -34
  224. package/dist/chunks/{loading-button.eafc9e1b.js.map → loading-button.CoF1IhEU.js.map} +1 -1
  225. package/dist/chunks/loading-indicator.DXc7I1Lm.js +48 -0
  226. package/dist/chunks/loading-indicator.DXc7I1Lm.js.map +1 -0
  227. package/dist/chunks/{index.1ea85d4a.js → menu.2TwUMlA9.js} +82 -94
  228. package/dist/chunks/menu.2TwUMlA9.js.map +1 -0
  229. package/dist/chunks/modal-fullscreen.BB_8EMNo.js +196 -0
  230. package/dist/chunks/modal-fullscreen.BB_8EMNo.js.map +1 -0
  231. package/dist/chunks/{modal-fullscreen.keys.b9f31632.js → modal-fullscreen.keys.CMba3hYp.js} +1 -1
  232. package/dist/chunks/{modal-fullscreen.keys.b9f31632.js.map → modal-fullscreen.keys.CMba3hYp.js.map} +1 -1
  233. package/dist/chunks/modal.DLwvcaRx.js +439 -0
  234. package/dist/chunks/modal.DLwvcaRx.js.map +1 -0
  235. package/dist/chunks/no-results-found.Bg_ZcEid.js +5 -0
  236. package/dist/chunks/no-results-found.Bg_ZcEid.js.map +1 -0
  237. package/dist/chunks/no-results-found.BqvYsBR6.js +5 -0
  238. package/dist/chunks/no-results-found.BqvYsBR6.js.map +1 -0
  239. package/dist/chunks/notifications-cleared.BMZk37uf.js +5 -0
  240. package/dist/chunks/notifications-cleared.BMZk37uf.js.map +1 -0
  241. package/dist/chunks/notifications-cleared.C7W9ZXY7.js +5 -0
  242. package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +1 -0
  243. package/dist/chunks/{on-click-outside.3e0c3e2a.js → on-click-outside.CcNG5w7_.js} +1 -1
  244. package/dist/chunks/{on-click-outside.3e0c3e2a.js.map → on-click-outside.CcNG5w7_.js.map} +1 -1
  245. package/dist/chunks/page-not-found.COJLPVaU.js +5 -0
  246. package/dist/chunks/page-not-found.COJLPVaU.js.map +1 -0
  247. package/dist/chunks/page-not-found.DWW6W-PZ.js +5 -0
  248. package/dist/chunks/page-not-found.DWW6W-PZ.js.map +1 -0
  249. package/dist/chunks/pagination.BXjbVe4Z.js +494 -0
  250. package/dist/chunks/pagination.BXjbVe4Z.js.map +1 -0
  251. package/dist/chunks/{payment-method.6c1ce07c.js → payment-method.D9Qx-s4V.js} +19 -21
  252. package/dist/chunks/{payment-method.6c1ce07c.js.map → payment-method.D9Qx-s4V.js.map} +1 -1
  253. package/dist/chunks/payment-method.types.CJKfZQN5.js +5 -0
  254. package/dist/chunks/payment-method.types.CJKfZQN5.js.map +1 -0
  255. package/dist/chunks/planned-maintenance.C61sWB9h.js +5 -0
  256. package/dist/chunks/planned-maintenance.C61sWB9h.js.map +1 -0
  257. package/dist/chunks/planned-maintenance.jmWYTdet.js +5 -0
  258. package/dist/chunks/planned-maintenance.jmWYTdet.js.map +1 -0
  259. package/dist/chunks/{index.15b088b9.js → popover.B8YH92W8.js} +31 -37
  260. package/dist/chunks/popover.B8YH92W8.js.map +1 -0
  261. package/dist/chunks/{index.671768a1.js → popper-container.Bt02N3o1.js} +12 -15
  262. package/dist/chunks/popper-container.Bt02N3o1.js.map +1 -0
  263. package/dist/chunks/radio-group.CPbBFTzB.js +211 -0
  264. package/dist/chunks/radio-group.CPbBFTzB.js.map +1 -0
  265. package/dist/chunks/{radio-input.c6550a9c.js → radio-input.BQcC0INR.js} +17 -19
  266. package/dist/chunks/radio-input.BQcC0INR.js.map +1 -0
  267. package/dist/chunks/referrals.BvtT-kQS.js +5 -0
  268. package/dist/chunks/referrals.BvtT-kQS.js.map +1 -0
  269. package/dist/chunks/referrals.aX8WZigH.js +5 -0
  270. package/dist/chunks/referrals.aX8WZigH.js.map +1 -0
  271. package/dist/chunks/{refresh.71a03998.js → refresh.BKI9WwKh.js} +7 -9
  272. package/dist/chunks/{refresh.71a03998.js.map → refresh.BKI9WwKh.js.map} +1 -1
  273. package/dist/chunks/{resize.a041304d.js → resize.Bqks3WUm.js} +1 -1
  274. package/dist/chunks/{resize.a041304d.js.map → resize.Bqks3WUm.js.map} +1 -1
  275. package/dist/chunks/search-bar.CsAgO-t5.js +89 -0
  276. package/dist/chunks/search-bar.CsAgO-t5.js.map +1 -0
  277. package/dist/chunks/{search.471270fe.js → search.CBKhp7zB.js} +10 -12
  278. package/dist/chunks/{search.471270fe.js.map → search.CBKhp7zB.js.map} +1 -1
  279. package/dist/chunks/secondary-nav.CNgpPxUU.js +97 -0
  280. package/dist/chunks/secondary-nav.CNgpPxUU.js.map +1 -0
  281. package/dist/chunks/segmented-control.DGjIC7Ab.js +111 -0
  282. package/dist/chunks/segmented-control.DGjIC7Ab.js.map +1 -0
  283. package/dist/chunks/segmented-control.types.BHRLV8KU.js +5 -0
  284. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -0
  285. package/dist/chunks/selection-card-group.DlOs8BkR.js +247 -0
  286. package/dist/chunks/selection-card-group.DlOs8BkR.js.map +1 -0
  287. package/dist/chunks/sidepanel.BBjm2QvZ.js +187 -0
  288. package/dist/chunks/sidepanel.BBjm2QvZ.js.map +1 -0
  289. package/dist/chunks/{sidepanel.keys.1ed8a57c.js → sidepanel.keys.R0DKQuYx.js} +1 -1
  290. package/dist/chunks/{sidepanel.keys.1ed8a57c.js.map → sidepanel.keys.R0DKQuYx.js.map} +1 -1
  291. package/dist/chunks/status.types.BhbOYpZx.js +36 -0
  292. package/dist/chunks/status.types.BhbOYpZx.js.map +1 -0
  293. package/dist/chunks/step.DY8Txb6a.js +234 -0
  294. package/dist/chunks/step.DY8Txb6a.js.map +1 -0
  295. package/dist/chunks/structured-list-item.C9NTVDvT.js +81 -0
  296. package/dist/chunks/structured-list-item.C9NTVDvT.js.map +1 -0
  297. package/dist/chunks/success.DhioLvPD.js +5 -0
  298. package/dist/chunks/success.DhioLvPD.js.map +1 -0
  299. package/dist/chunks/success.nNwxJRBS.js +5 -0
  300. package/dist/chunks/success.nNwxJRBS.js.map +1 -0
  301. package/dist/chunks/summary-grid-item-custom.CJpDnoPw.js +573 -0
  302. package/dist/chunks/summary-grid-item-custom.CJpDnoPw.js.map +1 -0
  303. package/dist/chunks/{summary-grid.keys.1d1028c2.js → summary-grid.keys.BBbFrFGF.js} +1 -1
  304. package/dist/chunks/{summary-grid.keys.1d1028c2.js.map → summary-grid.keys.BBbFrFGF.js.map} +1 -1
  305. package/dist/chunks/tabs.CE65f3E_.js +140 -0
  306. package/dist/chunks/tabs.CE65f3E_.js.map +1 -0
  307. package/dist/chunks/{tabs.keys.358742f2.js → tabs.keys.Bc2pSKRw.js} +1 -1
  308. package/dist/chunks/{tabs.keys.358742f2.js.map → tabs.keys.Bc2pSKRw.js.map} +1 -1
  309. package/dist/chunks/tag.bhKrZHTU.js +64 -0
  310. package/dist/chunks/tag.bhKrZHTU.js.map +1 -0
  311. package/dist/chunks/{teleport.84b0f20b.js → teleport.CQKBJZU5.js} +14 -16
  312. package/dist/chunks/{teleport.84b0f20b.js.map → teleport.CQKBJZU5.js.map} +1 -1
  313. package/dist/chunks/textarea.CcKbtQBs.js +208 -0
  314. package/dist/chunks/textarea.CcKbtQBs.js.map +1 -0
  315. package/dist/chunks/timeline-item.ScTrUBKC.js +364 -0
  316. package/dist/chunks/timeline-item.ScTrUBKC.js.map +1 -0
  317. package/dist/chunks/toast.0EYDj8o-.js +165 -0
  318. package/dist/chunks/toast.0EYDj8o-.js.map +1 -0
  319. package/dist/chunks/toggle-button.2U-vbQhk.js +83 -0
  320. package/dist/chunks/toggle-button.2U-vbQhk.js.map +1 -0
  321. package/dist/chunks/toggle.CiOVTWlk.js +121 -0
  322. package/dist/chunks/toggle.CiOVTWlk.js.map +1 -0
  323. package/dist/chunks/{tooltip.58ef3f4a.js → tooltip.DR8rbIYw.js} +29 -32
  324. package/dist/chunks/tooltip.DR8rbIYw.js.map +1 -0
  325. package/dist/chunks/tutorial.DMm12L0S.js +335 -0
  326. package/dist/chunks/tutorial.DMm12L0S.js.map +1 -0
  327. package/dist/chunks/{index.dd30e538.js → typography.Bjtu3Gca.js} +30 -32
  328. package/dist/chunks/typography.Bjtu3Gca.js.map +1 -0
  329. package/dist/chunks/{unique-id.a2a2b458.js → unique-id.XFfoKuc2.js} +14 -20
  330. package/dist/chunks/{unique-id.a2a2b458.js.map → unique-id.XFfoKuc2.js.map} +1 -1
  331. package/dist/chunks/upload-files.5wQwbfkp.js +5 -0
  332. package/dist/chunks/upload-files.5wQwbfkp.js.map +1 -0
  333. package/dist/chunks/upload-files.jTQY6y2X.js +5 -0
  334. package/dist/chunks/upload-files.jTQY6y2X.js.map +1 -0
  335. package/dist/chunks/{use-bento-toast-controller.c3277f73.js → use-bento-toast-controller.BifdE4ak.js} +4 -4
  336. package/dist/chunks/{use-bento-toast-controller.c3277f73.js.map → use-bento-toast-controller.BifdE4ak.js.map} +1 -1
  337. package/dist/chunks/{use-cached-selected-values.69297473.js → use-cached-selected-values.CVLzxvTi.js} +345 -346
  338. package/dist/chunks/use-cached-selected-values.CVLzxvTi.js.map +1 -0
  339. package/dist/chunks/{use-click-outside.941d1600.js → use-click-outside.DbjR7Lh4.js} +2 -2
  340. package/dist/chunks/{use-click-outside.941d1600.js.map → use-click-outside.DbjR7Lh4.js.map} +1 -1
  341. package/dist/chunks/{use-country-items.6b7985bf.js → use-country-items.C25TI6tp.js} +4 -4
  342. package/dist/chunks/{use-country-items.6b7985bf.js.map → use-country-items.C25TI6tp.js.map} +1 -1
  343. package/dist/chunks/{use-default-slot-validator.b9bff4c6.js → use-default-slot-validator.BDn0wkYP.js} +2 -2
  344. package/dist/chunks/{use-default-slot-validator.b9bff4c6.js.map → use-default-slot-validator.BDn0wkYP.js.map} +1 -1
  345. package/dist/chunks/{use-expandable-content-height.62fc84e5.js → use-expandable-content-height.GkjjbmPy.js} +1 -1
  346. package/dist/chunks/{use-expandable-content-height.62fc84e5.js.map → use-expandable-content-height.GkjjbmPy.js.map} +1 -1
  347. package/dist/chunks/{use-form-layout-loading.d03e5d48.js → use-form-layout-loading.D3lALhtC.js} +2 -2
  348. package/dist/chunks/{use-form-layout-loading.d03e5d48.js.map → use-form-layout-loading.D3lALhtC.js.map} +1 -1
  349. package/dist/chunks/use-has-slot.C9lQZ6nz.js +6 -0
  350. package/dist/chunks/{use-has-slot.fbeb19ec.js.map → use-has-slot.C9lQZ6nz.js.map} +1 -1
  351. package/dist/chunks/warning-filled.CLKRzGMT.js +24 -0
  352. package/dist/chunks/warning-filled.CLKRzGMT.js.map +1 -0
  353. package/dist/chunks/wrong-environment.BOsyKdRI.js +5 -0
  354. package/dist/chunks/wrong-environment.BOsyKdRI.js.map +1 -0
  355. package/dist/chunks/wrong-environment.BiHTPtbJ.js +5 -0
  356. package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +1 -0
  357. package/dist/click-outside.js +2 -20
  358. package/dist/click-outside.js.map +1 -1
  359. package/dist/code-snippet.js +5 -2050
  360. package/dist/code-snippet.js.map +1 -1
  361. package/dist/country.js +8 -97
  362. package/dist/country.js.map +1 -1
  363. package/dist/currency.js +3 -112
  364. package/dist/currency.js.map +1 -1
  365. package/dist/dashboard-template.js +6 -0
  366. package/dist/dashboard-template.js.map +1 -0
  367. package/dist/dashed-underline.js +5 -0
  368. package/dist/dashed-underline.js.map +1 -0
  369. package/dist/data-grid-template.js +2 -65
  370. package/dist/data-grid-template.js.map +1 -1
  371. package/dist/data-grid.js +8 -1978
  372. package/dist/data-grid.js.map +1 -1
  373. package/dist/date-picker.js +5 -197
  374. package/dist/date-picker.js.map +1 -1
  375. package/dist/date-range-picker.js +2 -2
  376. package/dist/date.js +1 -1
  377. package/dist/divider.js +1 -1
  378. package/dist/dropdown.js +12 -227
  379. package/dist/dropdown.js.map +1 -1
  380. package/dist/empty-state.js +5 -143
  381. package/dist/empty-state.js.map +1 -1
  382. package/dist/filter-bar.js +5 -2154
  383. package/dist/filter-bar.js.map +1 -1
  384. package/dist/focus-trap.js +1 -1
  385. package/dist/form-layout.js +5 -192
  386. package/dist/form-layout.js.map +1 -1
  387. package/dist/header.js +2 -246
  388. package/dist/header.js.map +1 -1
  389. package/dist/image.js +4 -81
  390. package/dist/image.js.map +1 -1
  391. package/dist/index.js +276 -269
  392. package/dist/index.js.map +1 -1
  393. package/dist/info-icon.js +2 -40
  394. package/dist/info-icon.js.map +1 -1
  395. package/dist/input-field.js +7 -217
  396. package/dist/input-field.js.map +1 -1
  397. package/dist/internal.js +15 -15
  398. package/dist/link.js +1 -1
  399. package/dist/loading-indicator.js +3 -47
  400. package/dist/loading-indicator.js.map +1 -1
  401. package/dist/menu.js +1 -1
  402. package/dist/modal-fullscreen.js +3 -197
  403. package/dist/modal-fullscreen.js.map +1 -1
  404. package/dist/modal.js +11 -451
  405. package/dist/modal.js.map +1 -1
  406. package/dist/pagination.js +2 -507
  407. package/dist/pagination.js.map +1 -1
  408. package/dist/payment-method.js +4 -4
  409. package/dist/payment-method.js.map +1 -1
  410. package/dist/popover.js +1 -1
  411. package/dist/popper-container.js +1 -1
  412. package/dist/radio-group.js +6 -213
  413. package/dist/radio-group.js.map +1 -1
  414. package/dist/search-bar.js +6 -90
  415. package/dist/search-bar.js.map +1 -1
  416. package/dist/secondary-nav.js +2 -100
  417. package/dist/secondary-nav.js.map +1 -1
  418. package/dist/segmented-control.js +4 -215
  419. package/dist/segmented-control.js.map +1 -1
  420. package/dist/selection-card.js +4 -248
  421. package/dist/selection-card.js.map +1 -1
  422. package/dist/sidepanel.js +4 -189
  423. package/dist/sidepanel.js.map +1 -1
  424. package/dist/status.js +3 -40
  425. package/dist/status.js.map +1 -1
  426. package/dist/stepper.js +5 -237
  427. package/dist/stepper.js.map +1 -1
  428. package/dist/structured-list.js +1 -1
  429. package/dist/summary-grid.js +9 -584
  430. package/dist/summary-grid.js.map +1 -1
  431. package/dist/tabs.js +3 -140
  432. package/dist/tabs.js.map +1 -1
  433. package/dist/tag.js +3 -63
  434. package/dist/tag.js.map +1 -1
  435. package/dist/textarea.js +2 -209
  436. package/dist/textarea.js.map +1 -1
  437. package/dist/timeline.js +7 -367
  438. package/dist/timeline.js.map +1 -1
  439. package/dist/toast.js +2 -168
  440. package/dist/toast.js.map +1 -1
  441. package/dist/toggle.js +4 -120
  442. package/dist/toggle.js.map +1 -1
  443. package/dist/tutorial.js +2 -325
  444. package/dist/tutorial.js.map +1 -1
  445. package/dist/typography.js +1 -1
  446. package/dist/web-types.json +482 -305
  447. package/package.json +11 -10
  448. package/dist/assets/index11.css +0 -1
  449. package/dist/assets/index18.css +0 -1
  450. package/dist/assets/index33.css +0 -1
  451. package/dist/assets/index34.css +0 -1
  452. package/dist/assets/index35.css +0 -1
  453. package/dist/assets/index38.css +0 -1
  454. package/dist/assets/index4.css +0 -1
  455. package/dist/assets/index40.css +0 -1
  456. package/dist/assets/index44.css +0 -1
  457. package/dist/assets/index46.css +0 -1
  458. package/dist/chunks/1-generic-use.3ea646cd.js +0 -5
  459. package/dist/chunks/1-generic-use.3ea646cd.js.map +0 -1
  460. package/dist/chunks/1-generic-use.ccca5813.js +0 -5
  461. package/dist/chunks/1-generic-use.ccca5813.js.map +0 -1
  462. package/dist/chunks/2-generic-use.443db127.js +0 -5
  463. package/dist/chunks/2-generic-use.443db127.js.map +0 -1
  464. package/dist/chunks/2-generic-use.d69d7c08.js +0 -5
  465. package/dist/chunks/2-generic-use.d69d7c08.js.map +0 -1
  466. package/dist/chunks/3-generic-use.9f74667f.js +0 -5
  467. package/dist/chunks/3-generic-use.9f74667f.js.map +0 -1
  468. package/dist/chunks/3-generic-use.fe7ae2ce.js +0 -5
  469. package/dist/chunks/3-generic-use.fe7ae2ce.js.map +0 -1
  470. package/dist/chunks/4-generic-use.0356f4a1.js +0 -5
  471. package/dist/chunks/4-generic-use.0356f4a1.js.map +0 -1
  472. package/dist/chunks/4-generic-use.cd04bad0.js +0 -5
  473. package/dist/chunks/4-generic-use.cd04bad0.js.map +0 -1
  474. package/dist/chunks/_plugin-vue2_normalizer.71e2aa87.js +0 -33
  475. package/dist/chunks/_plugin-vue2_normalizer.71e2aa87.js.map +0 -1
  476. package/dist/chunks/adding-payment-methods.d570e03e.js +0 -5
  477. package/dist/chunks/adding-payment-methods.d570e03e.js.map +0 -1
  478. package/dist/chunks/adding-payment-methods.e419d6c0.js +0 -5
  479. package/dist/chunks/adding-payment-methods.e419d6c0.js.map +0 -1
  480. package/dist/chunks/adyen-giving.480913b5.js +0 -5
  481. package/dist/chunks/adyen-giving.480913b5.js.map +0 -1
  482. package/dist/chunks/adyen-giving.54ed984c.js +0 -5
  483. package/dist/chunks/adyen-giving.54ed984c.js.map +0 -1
  484. package/dist/chunks/base-button.ad74b6f8.js +0 -88
  485. package/dist/chunks/button-actions.81db18e8.js +0 -111
  486. package/dist/chunks/button-actions.81db18e8.js.map +0 -1
  487. package/dist/chunks/button.9d6435ae.js +0 -100
  488. package/dist/chunks/button.9d6435ae.js.map +0 -1
  489. package/dist/chunks/checkmark-circle-fill.345311d2.js +0 -26
  490. package/dist/chunks/checkmark.a6ed8f47.js +0 -26
  491. package/dist/chunks/checkmark.a6ed8f47.js.map +0 -1
  492. package/dist/chunks/dropdown.10c034aa.js.map +0 -1
  493. package/dist/chunks/error-message.31ec12b7.js +0 -111
  494. package/dist/chunks/events.58c00e6d.js +0 -50
  495. package/dist/chunks/events.58c00e6d.js.map +0 -1
  496. package/dist/chunks/index.15b088b9.js.map +0 -1
  497. package/dist/chunks/index.1ea85d4a.js.map +0 -1
  498. package/dist/chunks/index.317fca12.js.map +0 -1
  499. package/dist/chunks/index.671768a1.js.map +0 -1
  500. package/dist/chunks/index.7eefc59c.js.map +0 -1
  501. package/dist/chunks/index.885d05a9.js +0 -32
  502. package/dist/chunks/index.885d05a9.js.map +0 -1
  503. package/dist/chunks/index.8b8c3b16.js.map +0 -1
  504. package/dist/chunks/index.aaf965f8.js +0 -147
  505. package/dist/chunks/index.aaf965f8.js.map +0 -1
  506. package/dist/chunks/index.b21197ca.js.map +0 -1
  507. package/dist/chunks/index.d553d3d1.js.map +0 -1
  508. package/dist/chunks/index.dd30e538.js.map +0 -1
  509. package/dist/chunks/internal-error.35cbb071.js +0 -5
  510. package/dist/chunks/internal-error.35cbb071.js.map +0 -1
  511. package/dist/chunks/internal-error.9a4823ed.js +0 -5
  512. package/dist/chunks/internal-error.9a4823ed.js.map +0 -1
  513. package/dist/chunks/listbox-option-tag.6bbb6bbe.js +0 -107
  514. package/dist/chunks/listbox-option-tag.6bbb6bbe.js.map +0 -1
  515. package/dist/chunks/no-results-found.58856d70.js +0 -5
  516. package/dist/chunks/no-results-found.58856d70.js.map +0 -1
  517. package/dist/chunks/no-results-found.cbb12f78.js +0 -5
  518. package/dist/chunks/no-results-found.cbb12f78.js.map +0 -1
  519. package/dist/chunks/notifications-cleared.71025c22.js +0 -5
  520. package/dist/chunks/notifications-cleared.71025c22.js.map +0 -1
  521. package/dist/chunks/notifications-cleared.c4f4bed4.js +0 -5
  522. package/dist/chunks/notifications-cleared.c4f4bed4.js.map +0 -1
  523. package/dist/chunks/page-not-found.a500440d.js +0 -5
  524. package/dist/chunks/page-not-found.a500440d.js.map +0 -1
  525. package/dist/chunks/page-not-found.d1a84ba7.js +0 -5
  526. package/dist/chunks/page-not-found.d1a84ba7.js.map +0 -1
  527. package/dist/chunks/planned-maintenance.7fa5ac16.js +0 -5
  528. package/dist/chunks/planned-maintenance.7fa5ac16.js.map +0 -1
  529. package/dist/chunks/planned-maintenance.cff01aed.js +0 -5
  530. package/dist/chunks/planned-maintenance.cff01aed.js.map +0 -1
  531. package/dist/chunks/radio-input.c6550a9c.js.map +0 -1
  532. package/dist/chunks/referrals.178ce0eb.js +0 -5
  533. package/dist/chunks/referrals.178ce0eb.js.map +0 -1
  534. package/dist/chunks/referrals.599047da.js +0 -5
  535. package/dist/chunks/referrals.599047da.js.map +0 -1
  536. package/dist/chunks/success.41981fe8.js +0 -5
  537. package/dist/chunks/success.41981fe8.js.map +0 -1
  538. package/dist/chunks/success.77fac78b.js +0 -5
  539. package/dist/chunks/success.77fac78b.js.map +0 -1
  540. package/dist/chunks/tooltip.58ef3f4a.js.map +0 -1
  541. package/dist/chunks/upload-files.2708eca7.js +0 -5
  542. package/dist/chunks/upload-files.2708eca7.js.map +0 -1
  543. package/dist/chunks/upload-files.b4cd9f8b.js +0 -5
  544. package/dist/chunks/upload-files.b4cd9f8b.js.map +0 -1
  545. package/dist/chunks/use-cached-selected-values.69297473.js.map +0 -1
  546. package/dist/chunks/use-has-slot.fbeb19ec.js +0 -6
  547. package/dist/chunks/wrong-environment.c73b0bc0.js +0 -5
  548. package/dist/chunks/wrong-environment.c73b0bc0.js.map +0 -1
  549. package/dist/chunks/wrong-environment.f890a237.js +0 -5
  550. package/dist/chunks/wrong-environment.f890a237.js.map +0 -1
  551. /package/dist/assets/{index5.css → avatar-image.css} +0 -0
  552. /package/dist/assets/{index.css → badge.css} +0 -0
  553. /package/dist/assets/{index8.css → checkbox-group.css} +0 -0
  554. /package/dist/assets/{index10.css → country.css} +0 -0
  555. /package/dist/assets/{index12.css → date-picker.css} +0 -0
  556. /package/dist/assets/{index13.css → date-range-picker.css} +0 -0
  557. /package/dist/assets/{index14.css → divider.css} +0 -0
  558. /package/dist/assets/{index16.css → dropdown-tag.css} +0 -0
  559. /package/dist/assets/{index17.css → empty-state.css} +0 -0
  560. /package/dist/assets/{index19.css → focus-trap.css} +0 -0
  561. /package/dist/assets/{index21.css → header.css} +0 -0
  562. /package/dist/assets/{index27.css → info-icon.css} +0 -0
  563. /package/dist/assets/{index42.css → link.css} +0 -0
  564. /package/dist/assets/{index23.css → loading-indicator.css} +0 -0
  565. /package/dist/assets/{index24.css → pagination.css} +0 -0
  566. /package/dist/assets/{index45.css → popper-container.css} +0 -0
  567. /package/dist/assets/{index20.css → radio-group.css} +0 -0
  568. /package/dist/assets/{index47.css → search-bar.css} +0 -0
  569. /package/dist/assets/{index48.css → secondary-nav.css} +0 -0
  570. /package/dist/assets/{index39.css → step.css} +0 -0
  571. /package/dist/assets/{index41.css → summary-grid-item-custom.css} +0 -0
  572. /package/dist/assets/{index36.css → tag.css} +0 -0
  573. /package/dist/assets/{index30.css → textarea.css} +0 -0
  574. /package/dist/assets/{index31.css → timeline-item.css} +0 -0
  575. /package/dist/assets/{index32.css → toast.css} +0 -0
  576. /package/dist/assets/{index6.css → toggle-button.css} +0 -0
  577. /package/dist/assets/{index29.css → typography.css} +0 -0
package/dist/tutorial.js CHANGED
@@ -1,328 +1,5 @@
1
- import { defineComponent as g, ref as d, computed as n, isRef as F, watch as I, nextTick as P } from "vue";
2
- import { B as $ } from "./chunks/index.1ea85d4a.js";
3
- import { B as S, a as k } from "./chunks/index.15b088b9.js";
4
- import { B as w } from "./chunks/index.dd30e538.js";
5
- import { BentoImage as A } from "./image.js";
6
- import { u as N } from "./chunks/i18n.eb5b985b.js";
7
- import { R as D } from "./chunks/refresh.71a03998.js";
8
- import { n as f } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
9
- import { a as T, h as j, o as L } from "./chunks/index.671768a1.js";
10
- import { B as M } from "./chunks/button-actions.81db18e8.js";
11
- import "./assets/index34.css";
12
- var B;
13
- const V = /* @__PURE__ */ g({
14
- __name: "tutorial-indicator",
15
- props: {
16
- /**
17
- * Tutorial indicator's target element.
18
- * The indicator will position itself around the target element.
19
- */
20
- targetElement: {
21
- type: (B = T.props) == null ? void 0 : B.targetElement.type,
22
- required: !0
23
- }
24
- },
25
- setup(a) {
26
- const e = d({
27
- width: "0",
28
- height: "0",
29
- borderRadius: "0"
30
- });
31
- function s(l) {
32
- try {
33
- const r = parseFloat(getComputedStyle(l).getPropertyValue("border-radius"));
34
- return Number.isNaN(r) ? "" : `${r + 2 * 2}px`;
35
- } catch {
36
- return "";
37
- }
38
- }
39
- const o = [
40
- j(),
41
- L({
42
- mainAxis: 2,
43
- alignmentAxis: -2
44
- }),
45
- {
46
- name: "updateIndicatorSize",
47
- fn: ({ x: l, y: r, elements: u }) => {
48
- const p = u.reference;
49
- return e.value.width = `${p.offsetWidth + 4 * 2}px`, e.value.height = `${p.offsetHeight + 4 * 2}px`, e.value.borderRadius = s(p), { x: l, y: r };
50
- }
51
- }
52
- ];
53
- return { __sfc: !0, BORDER_OFFSET: 2, computedStyles: e, getBorderRadius: s, middleware: o, PopperContainer: T };
54
- }
55
- });
56
- var q = function() {
57
- var t = this, e = t._self._c, s = t._self._setupProxy;
58
- return e(s.PopperContainer, { staticClass: "b-tutorial-indicator", attrs: { "target-element": t.targetElement, middleware: s.middleware, position: "top-start", "fixed-positioning": "", "disabled-focus-trap": "", "data-testid": "tutorial-indicator" } }, [e("div", { staticClass: "b-tutorial-indicator__highlight", style: s.computedStyles })]);
59
- }, K = [], Z = /* @__PURE__ */ f(
60
- V,
61
- q,
62
- K,
63
- !1,
64
- null,
65
- "ea45578e",
66
- null,
67
- null
68
- );
69
- const z = Z.exports;
70
- let b = 0;
71
- const H = {
72
- beforeCreate() {
73
- this.uuid = b.toString(), b += 1;
74
- }
75
- };
76
- var U = function() {
77
- var t = this, e = t._self._c;
78
- return e("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? e("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), e("g", { attrs: { "clip-path": "url(#uia-icons-16-blocked__a" + t.uuid + ")" } }, [e("path", { attrs: { fill: "#00112C", d: "M9.51195 0.398918C8.00859 0.0998821 6.45033 0.253358 5.0342 0.839937C3.61808 1.42652 2.40769 2.41985 1.55611 3.69433C0.704529 4.96881 0.25 6.4672 0.25 8C0.25 10.0554 1.06652 12.0267 2.51992 13.4801C3.97333 14.9335 5.94457 15.75 8 15.75C9.53281 15.75 11.0312 15.2955 12.3057 14.4439C13.5801 13.5923 14.5735 12.3819 15.1601 10.9658C15.7466 9.54967 15.9001 7.99141 15.6011 6.48805C15.3021 4.9847 14.5639 3.60378 13.4801 2.51993C12.3962 1.43607 11.0153 0.697953 9.51195 0.398918ZM5.60823 2.22576C6.75027 1.75271 8.00693 1.62894 9.21931 1.8701C10.4317 2.11125 11.5453 2.70651 12.4194 3.58059C13.2935 4.45466 13.8887 5.56831 14.1299 6.78069C14.3711 7.99307 14.2473 9.24974 13.7742 10.3918C13.5555 10.9198 13.2667 11.4124 12.9177 11.8573L4.14271 3.0823C4.58761 2.73333 5.08018 2.44448 5.60823 2.22576ZM3.08208 4.14298L11.857 12.9179C11.7327 13.0154 11.6044 13.1085 11.4723 13.1967C10.4445 13.8834 9.23613 14.25 8 14.25C6.3424 14.25 4.75268 13.5915 3.58058 12.4194C2.40848 11.2473 1.75 9.65761 1.75 8C1.75 6.76387 2.11656 5.5555 2.80331 4.52769C2.89155 4.39564 2.98456 4.26733 3.08208 4.14298Z" } })]), e("defs", [e("clipPath", { attrs: { id: "uia-icons-16-blocked__a" + t.uuid } }, [e("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
79
- }, W = [], X = /* @__PURE__ */ f(
80
- H,
81
- U,
82
- W,
83
- !1,
84
- null,
85
- null,
86
- null,
87
- null
88
- );
89
- const G = X.exports, J = {
90
- "en-US": {
91
- finish: "Finish",
92
- next: "Next",
93
- ok: "OK",
94
- restartTour: "Restart tour",
95
- skipTour: "Skip tour",
96
- startTour: "Start tour",
97
- stepsOfTotal: "{step} of {totalSteps}"
98
- }
99
- }, Q = {
100
- i18n: { messages: J }
101
- }, Y = /* @__PURE__ */ g({
102
- ...Q,
103
- __name: "tutorial-popover",
104
- props: {
105
- /**
106
- * Optional configuration for the secondary action.
107
- * In tour tutorials, this is ignored for the introductory step.
108
- */
109
- action: {
110
- type: Object,
111
- default: null
112
- },
113
- /**
114
- * Indicates whether this popover is the active step (and should be visible).
115
- */
116
- active: {
117
- type: Boolean,
118
- default: !1
119
- },
120
- /**
121
- * Optional illustration to display at the top of the popover.
122
- */
123
- image: {
124
- type: Object,
125
- default: null
126
- },
127
- /**
128
- * Popover's position relative to the target element.
129
- * Possible values are:
130
- * 'auto', 'auto-start', 'auto-end',
131
- * 'top', 'top-start', 'top-end'
132
- * 'right', 'right-start', 'right-end'
133
- * 'bottom', 'bottom-start', 'bottom-end'
134
- * 'left', 'left-start', 'left-end'
135
- */
136
- position: {
137
- type: String,
138
- default: S.BOTTOM_START,
139
- validator: (a) => Object.values(S).includes(a)
140
- },
141
- /**
142
- * Options to control the scroll into view behavior.
143
- * Takes the same options as the `scrollIntoView` function
144
- * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView}
145
- */
146
- scrollOptions: {
147
- type: [Boolean, Object],
148
- default: null
149
- },
150
- /**
151
- * Indicates whether this popover is a single tutorial or a tour.
152
- */
153
- single: {
154
- type: Boolean,
155
- default: !1
156
- },
157
- /**
158
- * The tutorial step number.
159
- * In tour tutorials, `0` is the introductory step, and is displayed next
160
- * to the title.
161
- */
162
- step: {
163
- type: Number,
164
- default: null
165
- },
166
- /**
167
- * Tutorial popover's target element.
168
- * The popover will position itself relatively to target element.
169
- */
170
- targetElement: {
171
- type: [Element, Object],
172
- required: !0
173
- },
174
- /**
175
- * The tutorial step title.
176
- */
177
- title: {
178
- type: String,
179
- required: !0
180
- },
181
- /**
182
- * Total count of steps.
183
- * In tour tutorials, this does not include the introductory step, and is
184
- * displayed next to the title.
185
- */
186
- totalSteps: {
187
- type: Number,
188
- default: null
189
- }
190
- },
191
- emits: ["next", "finish", "restart"],
192
- setup(a, { emit: t }) {
193
- const e = a, s = { behavior: "smooth" }, { t: o } = N(), l = n(() => ({
194
- title: o("skipTour"),
195
- event: () => t("finish")
196
- })), r = n(() => ({
197
- title: o("startTour"),
198
- event: () => t("next")
199
- })), u = n(() => ({
200
- title: o("next"),
201
- event: () => t("next")
202
- })), p = n(() => ({
203
- title: o("finish"),
204
- event: () => t("finish")
205
- })), h = n(() => ({
206
- title: o("ok"),
207
- event: () => t("finish")
208
- })), y = d(!1), C = d(!1), v = n(() => {
209
- var i;
210
- return F(e.targetElement) ? ((i = e.targetElement.value) == null ? void 0 : i.$el) || e.targetElement.value : e.targetElement.$el || e.targetElement;
211
- }), _ = n(() => e.step === 0), m = n(() => e.step === e.totalSteps), E = n(() => !_.value), x = n(() => [
212
- {
213
- text: o("restartTour"),
214
- handler: () => t("restart"),
215
- icon: D
216
- },
217
- ...m.value ? [] : [
218
- {
219
- text: "Skip tour",
220
- handler: () => t("finish"),
221
- icon: G
222
- }
223
- ]
224
- ]), R = n(() => {
225
- let i;
226
- _.value ? i = e.single ? h.value : r.value : m.value ? i = p.value : i = u.value;
227
- const c = [i];
228
- return _.value && !e.single ? c.push(l.value) : e.action && c.push(e.action), c;
229
- });
230
- return I(
231
- () => e.active,
232
- async (i) => {
233
- var c, O;
234
- i && ((c = v.value) != null && c.scrollIntoView) && ((O = v.value) == null || O.scrollIntoView(
235
- e.scrollOptions != null ? e.scrollOptions : s
236
- ), await P()), y.value = i, C.value = i;
237
- },
238
- { immediate: !0 }
239
- ), { __sfc: !0, DEFAULT_SCROLL_OPTIONS: s, props: e, t: o, emit: t, ACTION_SKIP: l, ACTION_START: r, ACTION_NEXT: u, ACTION_FINISH: p, ACTION_OK: h, isPopoverOpen: y, isIndicatorVisible: C, targetElement: v, isFirstStep: _, isLastStep: m, showSteps: E, menuData: x, computedActions: R, BentoMenu: $, BentoPopover: k, BentoTypography: w, BentoButtonActions: M, BentoImage: A, TutorialIndicator: z };
240
- }
241
- });
242
- var tt = function() {
243
- var t = this, e = t._self._c, s = t._self._setupProxy;
244
- return t.active && s.targetElement ? e("div", [s.isIndicatorVisible && s.targetElement ? e(s.TutorialIndicator, { attrs: { "target-element": s.targetElement } }) : t._e(), e(s.BentoPopover, { staticClass: "b-tutorial-popover", attrs: { "target-element": s.targetElement, position: t.position, open: s.isPopoverOpen, "aria-label": t.title, "fixed-positioning": "" }, nativeOn: { keydown: function(o) {
245
- return !o.type.indexOf("key") && t._k(o.keyCode, "esc", 27, o.key, ["Esc", "Escape"]) ? null : s.emit("finish");
246
- } }, scopedSlots: t._u([t.image ? { key: "image", fn: function() {
247
- return [e(s.BentoImage, t._b({ staticClass: "b-tutorial-popover__image", attrs: { "aspect-ratio": "landscape" } }, "bento-image", t.image, !1))];
248
- }, proxy: !0 } : null], null, !0) }, [e("div", { staticClass: "b-tutorial-popover__ripple", attrs: { "aria-hidden": "true" } }), e("div", { staticClass: "b-tutorial-popover__header" }, [e(s.BentoTypography, { attrs: { variant: "title", el: "span" } }, [t._v(" " + t._s(t.title) + " ")]), s.showSteps ? e(s.BentoTypography, { staticClass: "b-tutorial-popover__steps", attrs: { el: "span" } }, [t._v(" " + t._s(s.t("stepsOfTotal", { step: t.step, totalSteps: t.totalSteps })) + " ")]) : t._e()], 1), e(s.BentoTypography, [t._t("default")], 2), e("div", { staticClass: "b-tutorial-popover__footer" }, [s.isFirstStep ? t._e() : e(s.BentoMenu, { staticClass: "b-tutorial-popover__menu", attrs: { data: s.menuData, "data-testid": "menu-button" } }), e("div", { staticClass: "b-tutorial-popover__actions" }, [e(s.BentoButtonActions, { attrs: { actions: s.computedActions, layout: "buttons-end" } })], 1)], 1)], 1)], 1) : t._e();
249
- }, et = [], st = /* @__PURE__ */ f(
250
- Y,
251
- tt,
252
- et,
253
- !1,
254
- null,
255
- "ac66e07d",
256
- null,
257
- null
258
- );
259
- const ot = st.exports, rt = {}, nt = /* @__PURE__ */ g({
260
- ...rt,
261
- __name: "tutorial",
262
- props: {
263
- /**
264
- * The steps configuration for the tutorial.
265
- *
266
- */
267
- steps: {
268
- type: Array,
269
- required: !0,
270
- validator: (a) => a.length > 0
271
- },
272
- /**
273
- * Options to control the scroll into view behavior.
274
- * Takes the same options as the `scrollIntoView` function
275
- * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView}
276
- */
277
- scrollOptions: {
278
- type: [Boolean, Object],
279
- default: null
280
- }
281
- },
282
- setup(a) {
283
- const t = a, e = d(0), s = n(() => t.steps.length - 1), o = n(() => s.value === 0);
284
- function l(r, u) {
285
- return {
286
- // Visual
287
- targetElement: r.target,
288
- image: r.image,
289
- title: r.title,
290
- step: u,
291
- totalSteps: s.value,
292
- action: r.action,
293
- scrollOptions: t.scrollOptions,
294
- // Config
295
- active: u === e.value,
296
- single: o.value,
297
- position: r.position
298
- };
299
- }
300
- return { __sfc: !0, props: t, currentStep: e, totalSteps: s, isSingleTutorial: o, getPopoverProps: l, TutorialPopover: ot };
301
- }
302
- });
303
- var at = function() {
304
- var t = this, e = t._self._c, s = t._self._setupProxy;
305
- return e("div", { staticClass: "b-tutorial" }, t._l(t.steps, function(o, l) {
306
- return e(s.TutorialPopover, t._b({ key: o.title, on: { finish: function(r) {
307
- s.currentStep = -1;
308
- }, next: function(r) {
309
- s.currentStep += 1;
310
- }, restart: function(r) {
311
- s.currentStep = 0;
312
- } } }, "tutorial-popover", s.getPopoverProps(o, l), !1), [t._v(" " + t._s(o.description) + " ")]);
313
- }), 1);
314
- }, it = [], lt = /* @__PURE__ */ f(
315
- nt,
316
- at,
317
- it,
318
- !1,
319
- null,
320
- null,
321
- null,
322
- null
323
- );
324
- const yt = lt.exports;
1
+ import { t as r } from "./chunks/tutorial.DMm12L0S.js";
325
2
  export {
326
- yt as BentoTutorial
3
+ r as BentoTutorial
327
4
  };
328
5
  //# sourceMappingURL=tutorial.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tutorial.js","sources":["../src/components/tutorial/components/tutorial-popover/components/tutorial-indicator/tutorial-indicator.vue","../../../node_modules/@adyen/ui-assets-icons-16/dist/vue/blocked.vue","../src/components/tutorial/components/tutorial-popover/tutorial-popover.vue","../src/components/tutorial/tutorial.vue"],"sourcesContent":["<template>\n <popper-container\n :target-element=\"targetElement\"\n :middleware=\"middleware\"\n position=\"top-start\"\n fixed-positioning\n disabled-focus-trap\n class=\"b-tutorial-indicator\"\n data-testid=\"tutorial-indicator\"\n >\n <div class=\"b-tutorial-indicator__highlight\" :style=\"computedStyles\"></div>\n </popper-container>\n</template>\n\n<script setup lang=\"ts\">\n import { ref } from 'vue';\n import { hide, type Middleware, offset } from '@floating-ui/vue';\n import { PopperContainer } from '@/components/popper-container';\n\n const BORDER_OFFSET = 2;\n\n defineProps({\n /**\n * Tutorial indicator's target element.\n * The indicator will position itself around the target element.\n */\n targetElement: {\n type: PopperContainer.props?.targetElement.type,\n required: true,\n },\n });\n\n const computedStyles = ref({\n width: '0',\n height: '0',\n borderRadius: '0',\n });\n\n function getBorderRadius(element: HTMLElement) {\n try {\n const radius = parseFloat(getComputedStyle(element).getPropertyValue('border-radius'));\n return Number.isNaN(radius) ? '' : `${radius + 2 * BORDER_OFFSET}px`;\n } catch {\n return '';\n }\n }\n\n const middleware = [\n hide(),\n offset({\n mainAxis: BORDER_OFFSET,\n alignmentAxis: -BORDER_OFFSET,\n }),\n {\n name: 'updateIndicatorSize',\n fn: ({ x, y, elements }) => {\n const target = elements.reference as HTMLElement;\n computedStyles.value.width = `${target.offsetWidth + 4 * BORDER_OFFSET}px`;\n computedStyles.value.height = `${target.offsetHeight + 4 * BORDER_OFFSET}px`;\n computedStyles.value.borderRadius = getBorderRadius(target);\n return { x, y };\n },\n } as Middleware,\n ];\n</script>\n\n<style lang=\"scss\" scoped src=\"./tutorial-indicator.scss\" />\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><g :clip-path=\"'url(#uia-icons-16-blocked__a' + uuid + ')'\"><path fill=\"#00112C\" d=\"M9.51195 0.398918C8.00859 0.0998821 6.45033 0.253358 5.0342 0.839937C3.61808 1.42652 2.40769 2.41985 1.55611 3.69433C0.704529 4.96881 0.25 6.4672 0.25 8C0.25 10.0554 1.06652 12.0267 2.51992 13.4801C3.97333 14.9335 5.94457 15.75 8 15.75C9.53281 15.75 11.0312 15.2955 12.3057 14.4439C13.5801 13.5923 14.5735 12.3819 15.1601 10.9658C15.7466 9.54967 15.9001 7.99141 15.6011 6.48805C15.3021 4.9847 14.5639 3.60378 13.4801 2.51993C12.3962 1.43607 11.0153 0.697953 9.51195 0.398918ZM5.60823 2.22576C6.75027 1.75271 8.00693 1.62894 9.21931 1.8701C10.4317 2.11125 11.5453 2.70651 12.4194 3.58059C13.2935 4.45466 13.8887 5.56831 14.1299 6.78069C14.3711 7.99307 14.2473 9.24974 13.7742 10.3918C13.5555 10.9198 13.2667 11.4124 12.9177 11.8573L4.14271 3.0823C4.58761 2.73333 5.08018 2.44448 5.60823 2.22576ZM3.08208 4.14298L11.857 12.9179C11.7327 13.0154 11.6044 13.1085 11.4723 13.1967C10.4445 13.8834 9.23613 14.25 8 14.25C6.3424 14.25 4.75268 13.5915 3.58058 12.4194C2.40848 11.2473 1.75 9.65761 1.75 8C1.75 6.76387 2.11656 5.5555 2.80331 4.52769C2.89155 4.39564 2.98456 4.26733 3.08208 4.14298Z\"/></g><defs><clipPath :id=\"'uia-icons-16-blocked__a' + uuid\"><rect width=\"16\" height=\"16\" fill=\"#fff\"/></clipPath></defs></svg>\n</template>\n<script>\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n<style>\n @import '../css/main.css';\n</style>\n","<template>\n <div v-if=\"active && targetElement\">\n <tutorial-indicator v-if=\"isIndicatorVisible && targetElement\" :target-element=\"targetElement\" />\n\n <bento-popover\n :target-element=\"targetElement\"\n :position=\"position\"\n :open=\"isPopoverOpen\"\n :aria-label=\"title\"\n fixed-positioning\n class=\"b-tutorial-popover\"\n @keydown.esc.native=\"emit('finish')\"\n >\n <template v-if=\"image\" #image>\n <bento-image v-bind=\"image\" aspect-ratio=\"landscape\" class=\"b-tutorial-popover__image\" />\n </template>\n\n <div aria-hidden=\"true\" class=\"b-tutorial-popover__ripple\"></div>\n\n <div class=\"b-tutorial-popover__header\">\n <bento-typography variant=\"title\" el=\"span\"> {{ title }} </bento-typography>\n\n <bento-typography v-if=\"showSteps\" el=\"span\" class=\"b-tutorial-popover__steps\">\n {{ t('stepsOfTotal', { step, totalSteps }) }}\n </bento-typography>\n </div>\n\n <bento-typography>\n <slot />\n </bento-typography>\n\n <div class=\"b-tutorial-popover__footer\">\n <bento-menu\n v-if=\"!isFirstStep\"\n :data=\"menuData\"\n class=\"b-tutorial-popover__menu\"\n data-testid=\"menu-button\"\n />\n <div class=\"b-tutorial-popover__actions\">\n <bento-button-actions :actions=\"computedActions\" layout=\"buttons-end\" />\n </div>\n </div>\n </bento-popover>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, isRef, nextTick, PropType, ref, type default as Vue, watch } from 'vue';\n import { BentoMenu } from '@/components/menu';\n import { BentoPopover, BentoPopoverPositions } from '@/components/popover';\n import { BentoTypography } from '@/components/typography';\n import { type BentoButtonActionObject, BentoButtonActions } from '@/components/button';\n import { BentoImage } from '@/components/image';\n import { TutorialIndicator } from './components/tutorial-indicator';\n import { useI18n } from '@/utils/ts/i18n';\n import type { BentoMenuItem } from '@/components/menu/components';\n import type { VueNodeElement } from '@/types';\n import type { BentoTutorialScrollOptions, BentoTutorialStep } from '../../tutorial.types';\n import RefreshIcon from '@adyen/ui-assets-icons-16/vue/refresh';\n import BlockedIcon from '@adyen/ui-assets-icons-16/vue/blocked';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const DEFAULT_SCROLL_OPTIONS: BentoTutorialScrollOptions = { behavior: 'smooth' };\n\n const props = defineProps({\n /**\n * Optional configuration for the secondary action.\n * In tour tutorials, this is ignored for the introductory step.\n */\n action: {\n type: Object as PropType<BentoButtonActionObject>,\n default: null,\n },\n\n /**\n * Indicates whether this popover is the active step (and should be visible).\n */\n active: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Optional illustration to display at the top of the popover.\n */\n image: {\n type: Object as PropType<BentoTutorialStep['image']>,\n default: null,\n },\n\n /**\n * Popover's position relative to the target element.\n * Possible values are:\n * 'auto', 'auto-start', 'auto-end',\n * 'top', 'top-start', 'top-end'\n * 'right', 'right-start', 'right-end'\n * 'bottom', 'bottom-start', 'bottom-end'\n * 'left', 'left-start', 'left-end'\n */\n position: {\n type: String as PropType<`${BentoPopoverPositions}`>,\n default: BentoPopoverPositions.BOTTOM_START,\n validator: (value: BentoPopoverPositions) => Object.values(BentoPopoverPositions).includes(value),\n },\n\n /**\n * Options to control the scroll into view behavior.\n * Takes the same options as the `scrollIntoView` function\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView}\n */\n scrollOptions: {\n type: [Boolean, Object] as PropType<BentoTutorialScrollOptions>,\n default: null,\n },\n\n /**\n * Indicates whether this popover is a single tutorial or a tour.\n */\n single: {\n type: Boolean,\n default: false,\n },\n\n /**\n * The tutorial step number.\n * In tour tutorials, `0` is the introductory step, and is displayed next\n * to the title.\n */\n step: {\n type: Number,\n default: null,\n },\n\n /**\n * Tutorial popover's target element.\n * The popover will position itself relatively to target element.\n */\n targetElement: {\n type: [Element, Object] as PropType<VueNodeElement>,\n required: true,\n },\n\n /**\n * The tutorial step title.\n */\n title: {\n type: String,\n required: true,\n },\n\n /**\n * Total count of steps.\n * In tour tutorials, this does not include the introductory step, and is\n * displayed next to the title.\n */\n totalSteps: {\n type: Number,\n default: null,\n },\n });\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const emit = defineEmits<{\n /**\n * Emitted when the user clicks the primary action in popovers during introductory or intermediate steps of tour tutorials\n */\n (e: 'next'): void;\n\n /**\n * Emitted when the user clicks the primary action in a single tutorial, the last step of a tour, or skips the tutorial\n */\n (e: 'finish'): void;\n\n /**\n * Emitted when the user selects the restart tour option\n */\n (e: 'restart'): void;\n }>();\n\n const ACTION_SKIP = computed<BentoButtonActionObject>(() => ({\n title: t('skipTour') as string,\n event: () => emit('finish'),\n }));\n\n const ACTION_START = computed<BentoButtonActionObject>(() => ({\n title: t('startTour') as string,\n event: () => emit('next'),\n }));\n\n const ACTION_NEXT = computed<BentoButtonActionObject>(() => ({\n title: t('next') as string,\n event: () => emit('next'),\n }));\n\n const ACTION_FINISH = computed<BentoButtonActionObject>(() => ({\n title: t('finish') as string,\n event: () => emit('finish'),\n }));\n\n const ACTION_OK = computed<BentoButtonActionObject>(() => ({\n title: t('ok') as string,\n event: () => emit('finish'),\n }));\n\n const isPopoverOpen = ref(false);\n const isIndicatorVisible = ref(false);\n\n const targetElement = computed(() => {\n if (isRef(props.targetElement)) {\n return ((props.targetElement.value as Vue)?.$el || props.targetElement.value) as HTMLElement;\n }\n return ((props.targetElement as Vue).$el || props.targetElement) as HTMLElement;\n });\n\n const isFirstStep = computed(() => props.step === 0);\n const isLastStep = computed(() => props.step === props.totalSteps);\n\n const showSteps = computed(() => !isFirstStep.value);\n\n const menuData = computed<BentoMenuItem[]>(() => [\n {\n text: t('restartTour'),\n handler: () => emit('restart'),\n icon: RefreshIcon,\n },\n ...(isLastStep.value\n ? []\n : [\n {\n text: 'Skip tour',\n handler: () => emit('finish'),\n icon: BlockedIcon,\n },\n ]),\n ]);\n\n const computedActions = computed(() => {\n let primaryAction: BentoButtonActionObject;\n if (isFirstStep.value) {\n primaryAction = props.single ? ACTION_OK.value : ACTION_START.value;\n } else if (isLastStep.value) {\n primaryAction = ACTION_FINISH.value;\n } else {\n primaryAction = ACTION_NEXT.value;\n }\n\n const actions = [primaryAction];\n if (isFirstStep.value && !props.single) {\n actions.push(ACTION_SKIP.value);\n } else if (props.action) {\n actions.push(props.action);\n }\n\n return actions;\n });\n\n watch(\n () => props.active,\n async isActive => {\n if (isActive && targetElement.value?.scrollIntoView) {\n targetElement.value?.scrollIntoView(\n props.scrollOptions != null ? props.scrollOptions : DEFAULT_SCROLL_OPTIONS\n );\n\n // Skip to next tick to preserve popover appear animation\n await nextTick();\n }\n\n isPopoverOpen.value = isActive;\n isIndicatorVisible.value = isActive;\n },\n { immediate: true }\n );\n</script>\n\n<script lang=\"ts\">\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./tutorial-popover.scss\" />\n","<template>\n <div class=\"b-tutorial\">\n <tutorial-popover\n v-for=\"(step, index) in steps\"\n v-bind=\"getPopoverProps(step, index)\"\n :key=\"step.title\"\n @finish=\"currentStep = -1\"\n @next=\"currentStep += 1\"\n @restart=\"currentStep = 0\"\n >\n {{ step.description }}\n </tutorial-popover>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, PropType, ref } from 'vue';\n import { TutorialPopover } from './components/tutorial-popover';\n import type { BentoTutorialScrollOptions, BentoTutorialStep } from './tutorial.types';\n\n const props = defineProps({\n /**\n * The steps configuration for the tutorial.\n *\n */\n steps: {\n type: Array as PropType<BentoTutorialStep[]>,\n required: true,\n validator: (value: BentoTutorialStep[]) => value.length > 0,\n },\n\n /**\n * Options to control the scroll into view behavior.\n * Takes the same options as the `scrollIntoView` function\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView}\n */\n scrollOptions: {\n type: [Boolean, Object] as PropType<BentoTutorialScrollOptions>,\n default: null,\n },\n });\n\n const currentStep = ref(0);\n\n const totalSteps = computed(() => props.steps.length - 1);\n const isSingleTutorial = computed(() => totalSteps.value === 0);\n\n function getPopoverProps(step: BentoTutorialStep, index: number) {\n return {\n // Visual\n targetElement: step.target,\n image: step.image,\n title: step.title,\n step: index,\n totalSteps: totalSteps.value,\n action: step.action,\n scrollOptions: props.scrollOptions,\n\n // Config\n active: index === currentStep.value,\n single: isSingleTutorial.value,\n position: step.position,\n };\n }\n</script>\n\n<script lang=\"ts\">\n /**\n * The Tutorial is a temporary popover that should be used to educate users about\n * new or unfamiliar features or experiences.\n *\n * You can use single tutorial or chain them into a tour.\n *\n * Only use this component for new features/experiences that are not obvious and\n * self-explanatory on their own.\n *\n * @example\n * import { BentoTutorial } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoTutorial },\n * template: `\n * <bento-tutorial\n * :steps=\"[\n * {\n * target: targetElement1,\n * title: 'Tutorial intro title',\n * description: 'Intro body content',\n * image: { src: imageSource, alt: 'Alt text' }\n * },\n * {\n * target: targetElement1,\n * title: 'Tutorial intro title',\n * description: 'Intro body content',\n * action: { title: 'Action label', event: () => {} }\n * },\n * ]\"\n * />\n * `\n * }\n */\n export default {};\n</script>\n"],"names":["computedStyles","ref","getBorderRadius","element","radius","middleware","hide","offset","x","y","elements","target","uuid","_sfc_main$2","__default__$1","messages","DEFAULT_SCROLL_OPTIONS","t","useI18n","ACTION_SKIP","computed","emit","ACTION_START","ACTION_NEXT","ACTION_FINISH","ACTION_OK","isPopoverOpen","isIndicatorVisible","targetElement","isRef","props","_a","isFirstStep","isLastStep","showSteps","menuData","RefreshIcon","BlockedIcon","computedActions","primaryAction","actions","watch","isActive","_b","nextTick","__default__","currentStep","totalSteps","isSingleTutorial","getPopoverProps","step","index"],"mappings":"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","x_google_ignoreList":[1]}
1
+ {"version":3,"file":"tutorial.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,4 +1,4 @@
1
- import { B as p, c as e, b as r, a as y } from "./chunks/index.dd30e538.js";
1
+ import { B as p, c as e, b as r, a as y } from "./chunks/typography.Bjtu3Gca.js";
2
2
  export {
3
3
  p as BentoTypography,
4
4
  e as BentoTypographyElement,