@adyen/bento-vue2 1.28.0 → 1.29.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 (585) hide show
  1. package/dist/@types/components.d.ts +4 -0
  2. package/dist/@types/index.d.ts +364 -107
  3. package/dist/accordion.js +101 -3
  4. package/dist/accordion.js.map +1 -1
  5. package/dist/action-bar.js +146 -2
  6. package/dist/action-bar.js.map +1 -1
  7. package/dist/alert.js +95 -3
  8. package/dist/alert.js.map +1 -1
  9. package/dist/assets/base-modal.css +1 -1
  10. package/dist/assets/button.css +1 -1
  11. package/dist/assets/checkbox-input.css +1 -1
  12. package/dist/assets/dialog-page.css +1 -1
  13. package/dist/assets/dropdown-default-textbox.css +1 -1
  14. package/dist/assets/dropdown.css +1 -1
  15. package/dist/assets/error-message.css +1 -1
  16. package/dist/assets/{data-grid.css → index11.css} +1 -1
  17. package/dist/assets/index14.css +1 -0
  18. package/dist/assets/index18.css +1 -0
  19. package/dist/assets/index19.css +1 -0
  20. package/dist/assets/{secondary-nav.css → index21.css} +1 -1
  21. package/dist/assets/index22.css +1 -0
  22. package/dist/assets/{action-bar.css → index23.css} +1 -1
  23. package/dist/assets/{sidepanel.css → index24.css} +1 -1
  24. package/dist/assets/index28.css +1 -0
  25. package/dist/assets/{accordion-item.css → index3.css} +1 -1
  26. package/dist/assets/index30.css +1 -0
  27. package/dist/assets/index33.css +1 -0
  28. package/dist/assets/{modal-fullscreen.css → index36.css} +1 -1
  29. package/dist/assets/{menu.css → index38.css} +1 -1
  30. package/dist/assets/index39.css +1 -0
  31. package/dist/assets/{popover.css → index40.css} +1 -1
  32. package/dist/assets/index42.css +1 -0
  33. package/dist/assets/index43.css +1 -0
  34. package/dist/assets/index45.css +1 -0
  35. package/dist/assets/{dashboard-section.css → index47.css} +1 -1
  36. package/dist/assets/index48.css +1 -0
  37. package/dist/assets/{card.css → index5.css} +1 -1
  38. package/dist/assets/index7.css +1 -0
  39. package/dist/assets/listbox-option-tag.css +1 -1
  40. package/dist/assets/loading-button.css +1 -1
  41. package/dist/assets/radio-input.css +1 -1
  42. package/dist/assets/segmented-control.css +1 -1
  43. package/dist/avatar.js +75 -0
  44. package/dist/avatar.js.map +1 -0
  45. package/dist/badge.js +24 -22
  46. package/dist/badge.js.map +1 -1
  47. package/dist/button.js +94 -14
  48. package/dist/button.js.map +1 -1
  49. package/dist/card.js +114 -4
  50. package/dist/card.js.map +1 -1
  51. package/dist/checkbox.js +155 -8
  52. package/dist/checkbox.js.map +1 -1
  53. package/dist/chunks/1-generic-use.3ea646cd.js +5 -0
  54. package/dist/chunks/1-generic-use.3ea646cd.js.map +1 -0
  55. package/dist/chunks/1-generic-use.ccca5813.js +5 -0
  56. package/dist/chunks/1-generic-use.ccca5813.js.map +1 -0
  57. package/dist/chunks/2-generic-use.443db127.js +5 -0
  58. package/dist/chunks/2-generic-use.443db127.js.map +1 -0
  59. package/dist/chunks/2-generic-use.d69d7c08.js +5 -0
  60. package/dist/chunks/2-generic-use.d69d7c08.js.map +1 -0
  61. package/dist/chunks/3-generic-use.9f74667f.js +5 -0
  62. package/dist/chunks/3-generic-use.9f74667f.js.map +1 -0
  63. package/dist/chunks/3-generic-use.fe7ae2ce.js +5 -0
  64. package/dist/chunks/3-generic-use.fe7ae2ce.js.map +1 -0
  65. package/dist/chunks/4-generic-use.0356f4a1.js +5 -0
  66. package/dist/chunks/4-generic-use.0356f4a1.js.map +1 -0
  67. package/dist/chunks/4-generic-use.cd04bad0.js +5 -0
  68. package/dist/chunks/4-generic-use.cd04bad0.js.map +1 -0
  69. package/dist/chunks/_plugin-vue2_normalizer.71e2aa87.js +33 -0
  70. package/dist/chunks/_plugin-vue2_normalizer.71e2aa87.js.map +1 -0
  71. package/dist/chunks/adding-payment-methods.d570e03e.js +5 -0
  72. package/dist/chunks/adding-payment-methods.d570e03e.js.map +1 -0
  73. package/dist/chunks/adding-payment-methods.e419d6c0.js +5 -0
  74. package/dist/chunks/adding-payment-methods.e419d6c0.js.map +1 -0
  75. package/dist/chunks/adyen-giving.480913b5.js +5 -0
  76. package/dist/chunks/adyen-giving.480913b5.js.map +1 -0
  77. package/dist/chunks/adyen-giving.54ed984c.js +5 -0
  78. package/dist/chunks/adyen-giving.54ed984c.js.map +1 -0
  79. package/dist/chunks/{aria-label.CaUURpnB.js → aria-label.ac9651a5.js} +1 -1
  80. package/dist/chunks/{aria-label.CaUURpnB.js.map → aria-label.ac9651a5.js.map} +1 -1
  81. package/dist/chunks/base-button.852204dc.js +88 -0
  82. package/dist/chunks/{base-button.DER7_IsF.js.map → base-button.852204dc.js.map} +1 -1
  83. package/dist/chunks/{base-modal.C5I7bR0d.js → base-modal.00322d31.js} +46 -42
  84. package/dist/chunks/{base-modal.C5I7bR0d.js.map → base-modal.00322d31.js.map} +1 -1
  85. package/dist/chunks/{base-modal.keys.C2PQXcE2.js → base-modal.keys.b08a6bdf.js} +1 -1
  86. package/dist/chunks/{base-modal.keys.C2PQXcE2.js.map → base-modal.keys.b08a6bdf.js.map} +1 -1
  87. package/dist/chunks/{button-actions-with-menu.f3yuLK-L.js → button-actions-with-menu.bc66bc0a.js} +27 -25
  88. package/dist/chunks/{button-actions-with-menu.f3yuLK-L.js.map → button-actions-with-menu.bc66bc0a.js.map} +1 -1
  89. package/dist/chunks/{button-actions.Bg9ey0p6.js → button-actions.430d7510.js} +31 -29
  90. package/dist/chunks/{button-actions.Bg9ey0p6.js.map → button-actions.430d7510.js.map} +1 -1
  91. package/dist/chunks/{button.DhAUh5JA.js → button.9184ade9.js} +24 -22
  92. package/dist/chunks/{button.DhAUh5JA.js.map → button.9184ade9.js.map} +1 -1
  93. package/dist/chunks/{calendar.B69z8gjb.js → calendar.bea81953.js} +332 -287
  94. package/dist/chunks/{calendar.B69z8gjb.js.map → calendar.bea81953.js.map} +1 -1
  95. package/dist/chunks/{checkbox-input.DwDwI2BD.js → checkbox-input.5ab6ebe7.js} +32 -28
  96. package/dist/chunks/{checkbox-input.DwDwI2BD.js.map → checkbox-input.5ab6ebe7.js.map} +1 -1
  97. package/dist/chunks/{checkbox.Bi2RDBEZ.js → checkbox.192e921e.js} +23 -21
  98. package/dist/chunks/{checkbox.Bi2RDBEZ.js.map → checkbox.192e921e.js.map} +1 -1
  99. package/dist/chunks/checkmark-circle-fill.382e27e2.js +26 -0
  100. package/dist/chunks/{checkmark-circle-fill.DVl6QSwm.js.map → checkmark-circle-fill.382e27e2.js.map} +1 -1
  101. package/dist/chunks/{checkmark-small.BtF8b2gE.js → checkmark-small.6f444bd7.js} +9 -7
  102. package/dist/chunks/{checkmark-small.BtF8b2gE.js.map → checkmark-small.6f444bd7.js.map} +1 -1
  103. package/dist/chunks/{chevron-left.CtnrsqUy.js → chevron-left.3cd9eeee.js} +18 -14
  104. package/dist/chunks/{chevron-left.CtnrsqUy.js.map → chevron-left.3cd9eeee.js.map} +1 -1
  105. package/dist/chunks/{chevron-up.B2uWhZf7.js → chevron-up.bade9c77.js} +19 -15
  106. package/dist/chunks/{chevron-up.B2uWhZf7.js.map → chevron-up.bade9c77.js.map} +1 -1
  107. package/dist/chunks/{controls-group.cSRFiEVO.js → controls-group.6b05fbb4.js} +19 -17
  108. package/dist/chunks/{controls-group.cSRFiEVO.js.map → controls-group.6b05fbb4.js.map} +1 -1
  109. package/dist/chunks/{copy.BtFWFG3q.js → copy.d5dd2b60.js} +19 -15
  110. package/dist/chunks/{copy.BtFWFG3q.js.map → copy.d5dd2b60.js.map} +1 -1
  111. package/dist/chunks/{country.types.Br0AjxGy.js → country.types.002caff2.js} +5 -5
  112. package/dist/chunks/{country.types.Br0AjxGy.js.map → country.types.002caff2.js.map} +1 -1
  113. package/dist/chunks/cross-circle-fill-small.b0310bd6.js +26 -0
  114. package/dist/chunks/cross-circle-fill-small.b0310bd6.js.map +1 -0
  115. package/dist/chunks/{cross-circle-fill.CnYH4R_h.js → cross-circle-fill.dd300d4c.js} +10 -8
  116. package/dist/chunks/{cross-circle-fill.CnYH4R_h.js.map → cross-circle-fill.dd300d4c.js.map} +1 -1
  117. package/dist/chunks/{cross-small.BLUwtRB-.js → cross-small.3bb94ec7.js} +12 -10
  118. package/dist/chunks/{cross-small.BLUwtRB-.js.map → cross-small.3bb94ec7.js.map} +1 -1
  119. package/dist/chunks/{cross.CsUPDmaA.js → cross.f47f6b7f.js} +12 -10
  120. package/dist/chunks/{cross.CsUPDmaA.js.map → cross.f47f6b7f.js.map} +1 -1
  121. package/dist/chunks/{data-grid-template.keys.2_AkxuNT.js → data-grid-template.keys.a819a991.js} +1 -1
  122. package/dist/chunks/{data-grid-template.keys.2_AkxuNT.js.map → data-grid-template.keys.a819a991.js.map} +1 -1
  123. package/dist/chunks/{date-input.BqBdAO1E.js → date-input.9186a0bf.js} +1 -1
  124. package/dist/chunks/{date-input.BqBdAO1E.js.map → date-input.9186a0bf.js.map} +1 -1
  125. package/dist/chunks/{debounce.DUTu11PS.js → debounce.b5ef6acf.js} +1 -1
  126. package/dist/chunks/{debounce.DUTu11PS.js.map → debounce.b5ef6acf.js.map} +1 -1
  127. package/dist/chunks/{dialog-page.DAh0M4mT.js → dialog-page.c663c657.js} +24 -20
  128. package/dist/chunks/{dialog-page.DAh0M4mT.js.map → dialog-page.c663c657.js.map} +1 -1
  129. package/dist/chunks/{dropdown-default-textbox.CKOkl_Qa.js → dropdown-default-textbox.346c40ea.js} +64 -51
  130. package/dist/chunks/dropdown-default-textbox.346c40ea.js.map +1 -0
  131. package/dist/chunks/{dropdown.yhhQCKve.js → dropdown.9bee6e1d.js} +248 -230
  132. package/dist/chunks/dropdown.9bee6e1d.js.map +1 -0
  133. package/dist/chunks/error-message.af88c25f.js +111 -0
  134. package/dist/chunks/{error-message.BSxUoE3_.js.map → error-message.af88c25f.js.map} +1 -1
  135. package/dist/chunks/es6.cf6b43e9.js +9 -0
  136. package/dist/chunks/es6.cf6b43e9.js.map +1 -0
  137. package/dist/chunks/events.f14a214b.js +50 -0
  138. package/dist/chunks/{events.CMzGybJJ.js.map → events.f14a214b.js.map} +1 -1
  139. package/dist/chunks/expand.d0ccfcfe.js +26 -0
  140. package/dist/chunks/expand.d0ccfcfe.js.map +1 -0
  141. package/dist/chunks/{fixed-scroller.Bq1AgPnw.js → fixed-scroller.5e51ffb3.js} +20 -18
  142. package/dist/chunks/{fixed-scroller.Bq1AgPnw.js.map → fixed-scroller.5e51ffb3.js.map} +1 -1
  143. package/dist/chunks/{footer-actions.DqMRmlV_.js → footer-actions.b4fe4fdb.js} +13 -11
  144. package/dist/chunks/{footer-actions.DqMRmlV_.js.map → footer-actions.b4fe4fdb.js.map} +1 -1
  145. package/dist/chunks/{form-layout.types.D3EKzbE7.js → form-layout.types.a7a1438d.js} +1 -1
  146. package/dist/chunks/{form-layout.types.D3EKzbE7.js.map → form-layout.types.a7a1438d.js.map} +1 -1
  147. package/dist/chunks/{get-slot-text.Cgn-E48s.js → get-slot-text.99c3d860.js} +2 -2
  148. package/dist/chunks/{get-slot-text.Cgn-E48s.js.map → get-slot-text.99c3d860.js.map} +1 -1
  149. package/dist/chunks/{grid-layout.HvTAa4to.js → grid-layout.e0025286.js} +13 -11
  150. package/dist/chunks/{grid-layout.HvTAa4to.js.map → grid-layout.e0025286.js.map} +1 -1
  151. package/dist/chunks/{i18n.BQkEbtPM.js → i18n.eb5b985b.js} +2 -2
  152. package/dist/chunks/{i18n.BQkEbtPM.js.map → i18n.eb5b985b.js.map} +1 -1
  153. package/dist/chunks/{structured-list-item.C9NTVDvT.js → index.1c8f9245.js} +22 -18
  154. package/dist/chunks/index.1c8f9245.js.map +1 -0
  155. package/dist/chunks/{popover.B8YH92W8.js → index.40b77741.js} +37 -31
  156. package/dist/chunks/index.40b77741.js.map +1 -0
  157. package/dist/chunks/index.4afa7b19.js +32 -0
  158. package/dist/chunks/index.4afa7b19.js.map +1 -0
  159. package/dist/chunks/{index.Cl4_42j5.js → index.4c062058.js} +1 -1
  160. package/dist/chunks/{index.Cl4_42j5.js.map → index.4c062058.js.map} +1 -1
  161. package/dist/chunks/{date.DKjxxR6P.js → index.614a5138.js} +51 -44
  162. package/dist/chunks/index.614a5138.js.map +1 -0
  163. package/dist/chunks/index.6584f75e.js +183 -0
  164. package/dist/chunks/{index.OCPp3NST.js.map → index.6584f75e.js.map} +1 -1
  165. package/dist/chunks/{index.xqFSZOAb.js → index.86453263.js} +2 -2
  166. package/dist/chunks/{index.xqFSZOAb.js.map → index.86453263.js.map} +1 -1
  167. package/dist/chunks/{menu.2TwUMlA9.js → index.8a037a95.js} +94 -82
  168. package/dist/chunks/index.8a037a95.js.map +1 -0
  169. package/dist/chunks/{focus-trap.DSkLNO_i.js → index.ba69cab6.js} +37 -35
  170. package/dist/chunks/index.ba69cab6.js.map +1 -0
  171. package/dist/chunks/{popper-container.Bt02N3o1.js → index.bad400d5.js} +436 -381
  172. package/dist/chunks/index.bad400d5.js.map +1 -0
  173. package/dist/chunks/{index.Z84QE0E2.js → index.d80206ed.js} +2 -2
  174. package/dist/chunks/{index.Z84QE0E2.js.map → index.d80206ed.js.map} +1 -1
  175. package/dist/chunks/{typography.Bjtu3Gca.js → index.e29a6907.js} +32 -30
  176. package/dist/chunks/index.e29a6907.js.map +1 -0
  177. package/dist/chunks/{link.DJ1A53gF.js → index.f46e4190.js} +24 -20
  178. package/dist/chunks/index.f46e4190.js.map +1 -0
  179. package/dist/chunks/{index.B_UZQ6qF.js → index.f55fdc32.js} +243 -209
  180. package/dist/chunks/{index.B_UZQ6qF.js.map → index.f55fdc32.js.map} +1 -1
  181. package/dist/chunks/{date-range-picker.DrnklTJ-.js → index.fc70e413.js} +117 -113
  182. package/dist/chunks/index.fc70e413.js.map +1 -0
  183. package/dist/chunks/{index.B_EJflcs.js → index.fdf12170.js} +2 -2
  184. package/dist/chunks/{index.B_EJflcs.js.map → index.fdf12170.js.map} +1 -1
  185. package/dist/chunks/{info.CyeBsLgt.js → info.a549470f.js} +12 -10
  186. package/dist/chunks/{info.CyeBsLgt.js.map → info.a549470f.js.map} +1 -1
  187. package/dist/chunks/internal-error.35cbb071.js +5 -0
  188. package/dist/chunks/internal-error.35cbb071.js.map +1 -0
  189. package/dist/chunks/internal-error.9a4823ed.js +5 -0
  190. package/dist/chunks/internal-error.9a4823ed.js.map +1 -0
  191. package/dist/chunks/{keyboard-navigation.Clz1jOaA.js → keyboard-navigation.bbc3d15c.js} +2 -2
  192. package/dist/chunks/{keyboard-navigation.Clz1jOaA.js.map → keyboard-navigation.bbc3d15c.js.map} +1 -1
  193. package/dist/chunks/listbox-option-tag.bac3121a.js +46 -0
  194. package/dist/chunks/listbox-option-tag.bac3121a.js.map +1 -0
  195. package/dist/chunks/loading-button.b5dca406.js +101 -0
  196. package/dist/chunks/loading-button.b5dca406.js.map +1 -0
  197. package/dist/chunks/{modal-fullscreen.keys.CMba3hYp.js → modal-fullscreen.keys.b9f31632.js} +1 -1
  198. package/dist/chunks/{modal-fullscreen.keys.CMba3hYp.js.map → modal-fullscreen.keys.b9f31632.js.map} +1 -1
  199. package/dist/chunks/no-results-found.58856d70.js +5 -0
  200. package/dist/chunks/no-results-found.58856d70.js.map +1 -0
  201. package/dist/chunks/no-results-found.cbb12f78.js +5 -0
  202. package/dist/chunks/no-results-found.cbb12f78.js.map +1 -0
  203. package/dist/chunks/notifications-cleared.71025c22.js +5 -0
  204. package/dist/chunks/notifications-cleared.71025c22.js.map +1 -0
  205. package/dist/chunks/notifications-cleared.c4f4bed4.js +5 -0
  206. package/dist/chunks/notifications-cleared.c4f4bed4.js.map +1 -0
  207. package/dist/chunks/{on-click-outside.CcNG5w7_.js → on-click-outside.3e0c3e2a.js} +1 -1
  208. package/dist/chunks/{on-click-outside.CcNG5w7_.js.map → on-click-outside.3e0c3e2a.js.map} +1 -1
  209. package/dist/chunks/page-not-found.a500440d.js +5 -0
  210. package/dist/chunks/page-not-found.a500440d.js.map +1 -0
  211. package/dist/chunks/page-not-found.d1a84ba7.js +5 -0
  212. package/dist/chunks/page-not-found.d1a84ba7.js.map +1 -0
  213. package/dist/chunks/{payment-method.D9Qx-s4V.js → payment-method.c55dd352.js} +21 -19
  214. package/dist/chunks/{payment-method.D9Qx-s4V.js.map → payment-method.c55dd352.js.map} +1 -1
  215. package/dist/chunks/planned-maintenance.7fa5ac16.js +5 -0
  216. package/dist/chunks/planned-maintenance.7fa5ac16.js.map +1 -0
  217. package/dist/chunks/planned-maintenance.cff01aed.js +5 -0
  218. package/dist/chunks/planned-maintenance.cff01aed.js.map +1 -0
  219. package/dist/chunks/{radio-input.BQcC0INR.js → radio-input.e34c0fa8.js} +17 -15
  220. package/dist/chunks/{radio-input.BQcC0INR.js.map → radio-input.e34c0fa8.js.map} +1 -1
  221. package/dist/chunks/referrals.178ce0eb.js +5 -0
  222. package/dist/chunks/referrals.178ce0eb.js.map +1 -0
  223. package/dist/chunks/referrals.599047da.js +5 -0
  224. package/dist/chunks/referrals.599047da.js.map +1 -0
  225. package/dist/chunks/{refresh.BKI9WwKh.js → refresh.2ef3d8a9.js} +10 -8
  226. package/dist/chunks/{refresh.BKI9WwKh.js.map → refresh.2ef3d8a9.js.map} +1 -1
  227. package/dist/chunks/{resize.Bqks3WUm.js → resize.a041304d.js} +1 -1
  228. package/dist/chunks/{resize.Bqks3WUm.js.map → resize.a041304d.js.map} +1 -1
  229. package/dist/chunks/{search.CBKhp7zB.js → search.83bba8e3.js} +13 -11
  230. package/dist/chunks/{search.CBKhp7zB.js.map → search.83bba8e3.js.map} +1 -1
  231. package/dist/chunks/{segmented-control.DGjIC7Ab.js → segmented-control.9f657859.js} +31 -27
  232. package/dist/chunks/{segmented-control.DGjIC7Ab.js.map → segmented-control.9f657859.js.map} +1 -1
  233. package/dist/chunks/{sidepanel.keys.R0DKQuYx.js → sidepanel.keys.1ed8a57c.js} +1 -1
  234. package/dist/chunks/{sidepanel.keys.R0DKQuYx.js.map → sidepanel.keys.1ed8a57c.js.map} +1 -1
  235. package/dist/chunks/success.41981fe8.js +5 -0
  236. package/dist/chunks/success.41981fe8.js.map +1 -0
  237. package/dist/chunks/success.77fac78b.js +5 -0
  238. package/dist/chunks/success.77fac78b.js.map +1 -0
  239. package/dist/chunks/{summary-grid.keys.BBbFrFGF.js → summary-grid.keys.1d1028c2.js} +1 -1
  240. package/dist/chunks/{summary-grid.keys.BBbFrFGF.js.map → summary-grid.keys.1d1028c2.js.map} +1 -1
  241. package/dist/chunks/{tabs.keys.Bc2pSKRw.js → tabs.keys.358742f2.js} +1 -1
  242. package/dist/chunks/{tabs.keys.Bc2pSKRw.js.map → tabs.keys.358742f2.js.map} +1 -1
  243. package/dist/chunks/{teleport.CQKBJZU5.js → teleport.84b0f20b.js} +16 -14
  244. package/dist/chunks/{teleport.CQKBJZU5.js.map → teleport.84b0f20b.js.map} +1 -1
  245. package/dist/chunks/{tooltip.DR8rbIYw.js → tooltip.77610390.js} +32 -29
  246. package/dist/chunks/{tooltip.DR8rbIYw.js.map → tooltip.77610390.js.map} +1 -1
  247. package/dist/chunks/{unique-id.XFfoKuc2.js → unique-id.a2a2b458.js} +20 -14
  248. package/dist/chunks/{unique-id.XFfoKuc2.js.map → unique-id.a2a2b458.js.map} +1 -1
  249. package/dist/chunks/upload-files.2708eca7.js +5 -0
  250. package/dist/chunks/upload-files.2708eca7.js.map +1 -0
  251. package/dist/chunks/upload-files.b4cd9f8b.js +5 -0
  252. package/dist/chunks/upload-files.b4cd9f8b.js.map +1 -0
  253. package/dist/chunks/{use-bento-toast-controller.BifdE4ak.js → use-bento-toast-controller.5dac1f3c.js} +4 -4
  254. package/dist/chunks/{use-bento-toast-controller.BifdE4ak.js.map → use-bento-toast-controller.5dac1f3c.js.map} +1 -1
  255. package/dist/chunks/{use-cached-selected-values.CVLzxvTi.js → use-cached-selected-values.148bfd7c.js} +237 -217
  256. package/dist/chunks/use-cached-selected-values.148bfd7c.js.map +1 -0
  257. package/dist/chunks/{use-click-outside.DbjR7Lh4.js → use-click-outside.941d1600.js} +2 -2
  258. package/dist/chunks/{use-click-outside.DbjR7Lh4.js.map → use-click-outside.941d1600.js.map} +1 -1
  259. package/dist/chunks/{use-country-items.C25TI6tp.js → use-country-items.6b7985bf.js} +4 -4
  260. package/dist/chunks/{use-country-items.C25TI6tp.js.map → use-country-items.6b7985bf.js.map} +1 -1
  261. package/dist/chunks/{use-default-slot-validator.BDn0wkYP.js → use-default-slot-validator.b9bff4c6.js} +2 -2
  262. package/dist/chunks/{use-default-slot-validator.BDn0wkYP.js.map → use-default-slot-validator.b9bff4c6.js.map} +1 -1
  263. package/dist/chunks/{use-expandable-content-height.GkjjbmPy.js → use-expandable-content-height.62fc84e5.js} +1 -1
  264. package/dist/chunks/{use-expandable-content-height.GkjjbmPy.js.map → use-expandable-content-height.62fc84e5.js.map} +1 -1
  265. package/dist/chunks/{use-form-layout-loading.D3lALhtC.js → use-form-layout-loading.d03e5d48.js} +2 -2
  266. package/dist/chunks/{use-form-layout-loading.D3lALhtC.js.map → use-form-layout-loading.d03e5d48.js.map} +1 -1
  267. package/dist/chunks/use-has-slot.fbeb19ec.js +6 -0
  268. package/dist/chunks/{use-has-slot.C9lQZ6nz.js.map → use-has-slot.fbeb19ec.js.map} +1 -1
  269. package/dist/chunks/{warning-filled.CLKRzGMT.js → warning-filled.1ced4163.js} +12 -10
  270. package/dist/chunks/{warning-filled.CLKRzGMT.js.map → warning-filled.1ced4163.js.map} +1 -1
  271. package/dist/chunks/wrong-environment.c73b0bc0.js +5 -0
  272. package/dist/chunks/wrong-environment.c73b0bc0.js.map +1 -0
  273. package/dist/chunks/wrong-environment.f890a237.js +5 -0
  274. package/dist/chunks/wrong-environment.f890a237.js.map +1 -0
  275. package/dist/click-outside.js +20 -2
  276. package/dist/click-outside.js.map +1 -1
  277. package/dist/code-snippet.js +2034 -5
  278. package/dist/code-snippet.js.map +1 -1
  279. package/dist/country.js +97 -8
  280. package/dist/country.js.map +1 -1
  281. package/dist/currency.js +112 -3
  282. package/dist/currency.js.map +1 -1
  283. package/dist/dashboard-template.js +106 -3
  284. package/dist/dashboard-template.js.map +1 -1
  285. package/dist/dashed-underline.js +58 -2
  286. package/dist/dashed-underline.js.map +1 -1
  287. package/dist/data-grid-template.js +65 -2
  288. package/dist/data-grid-template.js.map +1 -1
  289. package/dist/data-grid.js +2057 -8
  290. package/dist/data-grid.js.map +1 -1
  291. package/dist/date-picker.js +197 -5
  292. package/dist/date-picker.js.map +1 -1
  293. package/dist/date-range-picker.js +2 -2
  294. package/dist/date.js +1 -1
  295. package/dist/divider.js +1 -1
  296. package/dist/dropdown.js +228 -12
  297. package/dist/dropdown.js.map +1 -1
  298. package/dist/empty-state.js +143 -5
  299. package/dist/empty-state.js.map +1 -1
  300. package/dist/filter-bar.js +2164 -5
  301. package/dist/filter-bar.js.map +1 -1
  302. package/dist/focus-trap.js +1 -1
  303. package/dist/form-layout.js +192 -5
  304. package/dist/form-layout.js.map +1 -1
  305. package/dist/header.js +246 -2
  306. package/dist/header.js.map +1 -1
  307. package/dist/image.js +81 -4
  308. package/dist/image.js.map +1 -1
  309. package/dist/index.js +279 -274
  310. package/dist/index.js.map +1 -1
  311. package/dist/info-icon.js +40 -2
  312. package/dist/info-icon.js.map +1 -1
  313. package/dist/input-field.js +224 -7
  314. package/dist/input-field.js.map +1 -1
  315. package/dist/inspector.js +64 -0
  316. package/dist/inspector.js.map +1 -0
  317. package/dist/internal.js +29 -30
  318. package/dist/link.js +1 -1
  319. package/dist/loading-indicator.js +47 -3
  320. package/dist/loading-indicator.js.map +1 -1
  321. package/dist/menu.js +1 -1
  322. package/dist/modal-fullscreen.js +197 -3
  323. package/dist/modal-fullscreen.js.map +1 -1
  324. package/dist/modal.js +451 -11
  325. package/dist/modal.js.map +1 -1
  326. package/dist/pagination.js +507 -2
  327. package/dist/pagination.js.map +1 -1
  328. package/dist/payment-method.js +4 -4
  329. package/dist/payment-method.js.map +1 -1
  330. package/dist/popover.js +1 -1
  331. package/dist/popper-container.js +1 -1
  332. package/dist/radio-group.js +213 -6
  333. package/dist/radio-group.js.map +1 -1
  334. package/dist/search-bar.js +101 -6
  335. package/dist/search-bar.js.map +1 -1
  336. package/dist/secondary-nav.js +115 -2
  337. package/dist/secondary-nav.js.map +1 -1
  338. package/dist/segmented-control.js +4 -4
  339. package/dist/segmented-control.js.map +1 -1
  340. package/dist/selection-card.js +248 -4
  341. package/dist/selection-card.js.map +1 -1
  342. package/dist/sidepanel.js +189 -4
  343. package/dist/sidepanel.js.map +1 -1
  344. package/dist/status.js +35 -3
  345. package/dist/status.js.map +1 -1
  346. package/dist/stepper.js +237 -5
  347. package/dist/stepper.js.map +1 -1
  348. package/dist/structured-list.js +1 -1
  349. package/dist/summary-grid.js +584 -9
  350. package/dist/summary-grid.js.map +1 -1
  351. package/dist/tabs.js +141 -3
  352. package/dist/tabs.js.map +1 -1
  353. package/dist/tag.js +63 -3
  354. package/dist/tag.js.map +1 -1
  355. package/dist/textarea.js +190 -2
  356. package/dist/textarea.js.map +1 -1
  357. package/dist/timeline.js +369 -7
  358. package/dist/timeline.js.map +1 -1
  359. package/dist/toast.js +168 -2
  360. package/dist/toast.js.map +1 -1
  361. package/dist/toggle.js +120 -4
  362. package/dist/toggle.js.map +1 -1
  363. package/dist/tutorial.js +340 -2
  364. package/dist/tutorial.js.map +1 -1
  365. package/dist/typography.js +1 -1
  366. package/dist/web-types.json +142 -9
  367. package/package.json +3 -3
  368. package/dist/assets/avatar-image.css +0 -1
  369. package/dist/assets/code-snippet.css +0 -1
  370. package/dist/assets/filter-bar.css +0 -1
  371. package/dist/assets/input-field.css +0 -1
  372. package/dist/assets/radio-group.css +0 -1
  373. package/dist/assets/search-bar.css +0 -1
  374. package/dist/assets/selection-card-group.css +0 -1
  375. package/dist/assets/structured-list-item.css +0 -1
  376. package/dist/assets/textarea.css +0 -1
  377. package/dist/assets/timeline-item.css +0 -1
  378. package/dist/assets/toggle.css +0 -1
  379. package/dist/assets/tutorial.css +0 -1
  380. package/dist/avatar-image.js +0 -7
  381. package/dist/avatar-image.js.map +0 -1
  382. package/dist/chunks/1-generic-use.CZhwP2Yc.js +0 -5
  383. package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +0 -1
  384. package/dist/chunks/1-generic-use.R6x8PEGA.js +0 -5
  385. package/dist/chunks/1-generic-use.R6x8PEGA.js.map +0 -1
  386. package/dist/chunks/2-generic-use.CNKjB4B7.js +0 -5
  387. package/dist/chunks/2-generic-use.CNKjB4B7.js.map +0 -1
  388. package/dist/chunks/2-generic-use.w0fUhovx.js +0 -5
  389. package/dist/chunks/2-generic-use.w0fUhovx.js.map +0 -1
  390. package/dist/chunks/3-generic-use.BLEzR04g.js +0 -5
  391. package/dist/chunks/3-generic-use.BLEzR04g.js.map +0 -1
  392. package/dist/chunks/3-generic-use.D3NFHgI4.js +0 -5
  393. package/dist/chunks/3-generic-use.D3NFHgI4.js.map +0 -1
  394. package/dist/chunks/4-generic-use.CULEpvgj.js +0 -5
  395. package/dist/chunks/4-generic-use.CULEpvgj.js.map +0 -1
  396. package/dist/chunks/4-generic-use.D82y3n39.js +0 -5
  397. package/dist/chunks/4-generic-use.D82y3n39.js.map +0 -1
  398. package/dist/chunks/_plugin-vue2_normalizer.CeySl7Fu.js +0 -11
  399. package/dist/chunks/_plugin-vue2_normalizer.CeySl7Fu.js.map +0 -1
  400. package/dist/chunks/accordion-item.DmnrjNzw.js +0 -100
  401. package/dist/chunks/accordion-item.DmnrjNzw.js.map +0 -1
  402. package/dist/chunks/action-bar.Bebh6PHI.js +0 -147
  403. package/dist/chunks/action-bar.Bebh6PHI.js.map +0 -1
  404. package/dist/chunks/adding-payment-methods.BJZLPxtM.js +0 -5
  405. package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +0 -1
  406. package/dist/chunks/adding-payment-methods.Dle8zt43.js +0 -5
  407. package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +0 -1
  408. package/dist/chunks/adyen-giving.Ffw_DlJK.js +0 -5
  409. package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +0 -1
  410. package/dist/chunks/adyen-giving.LiKHj_jY.js +0 -5
  411. package/dist/chunks/adyen-giving.LiKHj_jY.js.map +0 -1
  412. package/dist/chunks/alert.CJyTM4Az.js +0 -96
  413. package/dist/chunks/alert.CJyTM4Az.js.map +0 -1
  414. package/dist/chunks/avatar-image.DhlR-7Yg.js +0 -47
  415. package/dist/chunks/avatar-image.DhlR-7Yg.js.map +0 -1
  416. package/dist/chunks/base-button.DER7_IsF.js +0 -86
  417. package/dist/chunks/card.70Xvba2C.js +0 -115
  418. package/dist/chunks/card.70Xvba2C.js.map +0 -1
  419. package/dist/chunks/checkbox-group.B-KdeRXC.js +0 -152
  420. package/dist/chunks/checkbox-group.B-KdeRXC.js.map +0 -1
  421. package/dist/chunks/checkmark-circle-fill.DVl6QSwm.js +0 -24
  422. package/dist/chunks/click-outside.DABh6NLr.js +0 -23
  423. package/dist/chunks/click-outside.DABh6NLr.js.map +0 -1
  424. package/dist/chunks/code-snippet.C4IbjAhH.js +0 -968
  425. package/dist/chunks/code-snippet.C4IbjAhH.js.map +0 -1
  426. package/dist/chunks/country.KayLT0zy.js +0 -93
  427. package/dist/chunks/country.KayLT0zy.js.map +0 -1
  428. package/dist/chunks/currency.H7n7RQiX.js +0 -113
  429. package/dist/chunks/currency.H7n7RQiX.js.map +0 -1
  430. package/dist/chunks/dashboard-section.BcH-_en7.js +0 -105
  431. package/dist/chunks/dashboard-section.BcH-_en7.js.map +0 -1
  432. package/dist/chunks/dashed-underline.ChUlcFJR.js +0 -59
  433. package/dist/chunks/dashed-underline.ChUlcFJR.js.map +0 -1
  434. package/dist/chunks/data-grid-template.DqG5bNeD.js +0 -66
  435. package/dist/chunks/data-grid-template.DqG5bNeD.js.map +0 -1
  436. package/dist/chunks/data-grid.CvHAdmvs.js +0 -2022
  437. package/dist/chunks/data-grid.CvHAdmvs.js.map +0 -1
  438. package/dist/chunks/date-picker.ByP2Wpo0.js +0 -196
  439. package/dist/chunks/date-picker.ByP2Wpo0.js.map +0 -1
  440. package/dist/chunks/date-range-picker.DrnklTJ-.js.map +0 -1
  441. package/dist/chunks/date.DKjxxR6P.js.map +0 -1
  442. package/dist/chunks/divider.BZfeYmB9.js +0 -30
  443. package/dist/chunks/divider.BZfeYmB9.js.map +0 -1
  444. package/dist/chunks/dropdown-default-textbox.CKOkl_Qa.js.map +0 -1
  445. package/dist/chunks/dropdown-tag.DCMKQy-E.js +0 -214
  446. package/dist/chunks/dropdown-tag.DCMKQy-E.js.map +0 -1
  447. package/dist/chunks/dropdown.yhhQCKve.js.map +0 -1
  448. package/dist/chunks/empty-state.BqVOj4v1.js +0 -151
  449. package/dist/chunks/empty-state.BqVOj4v1.js.map +0 -1
  450. package/dist/chunks/error-message.BSxUoE3_.js +0 -107
  451. package/dist/chunks/events.CMzGybJJ.js +0 -47
  452. package/dist/chunks/filter-bar.AhsOPMZ1.js +0 -2119
  453. package/dist/chunks/filter-bar.AhsOPMZ1.js.map +0 -1
  454. package/dist/chunks/focus-trap.DSkLNO_i.js.map +0 -1
  455. package/dist/chunks/form-layout-title.BzNU0B72.js +0 -187
  456. package/dist/chunks/form-layout-title.BzNU0B72.js.map +0 -1
  457. package/dist/chunks/header.DmKHCmXh.js +0 -245
  458. package/dist/chunks/header.DmKHCmXh.js.map +0 -1
  459. package/dist/chunks/image.B3uqhFjl.js +0 -82
  460. package/dist/chunks/image.B3uqhFjl.js.map +0 -1
  461. package/dist/chunks/index.OCPp3NST.js +0 -126
  462. package/dist/chunks/info-icon.CLguYHRt.js +0 -41
  463. package/dist/chunks/info-icon.CLguYHRt.js.map +0 -1
  464. package/dist/chunks/input-field.BnlEPPYr.js +0 -218
  465. package/dist/chunks/input-field.BnlEPPYr.js.map +0 -1
  466. package/dist/chunks/internal-error.BLZodVBE.js +0 -5
  467. package/dist/chunks/internal-error.BLZodVBE.js.map +0 -1
  468. package/dist/chunks/internal-error.BmrwJFpR.js +0 -5
  469. package/dist/chunks/internal-error.BmrwJFpR.js.map +0 -1
  470. package/dist/chunks/link.DJ1A53gF.js.map +0 -1
  471. package/dist/chunks/listbox-option-tag.BDjsYOE1.js +0 -75
  472. package/dist/chunks/listbox-option-tag.BDjsYOE1.js.map +0 -1
  473. package/dist/chunks/loading-button.CoF1IhEU.js +0 -97
  474. package/dist/chunks/loading-button.CoF1IhEU.js.map +0 -1
  475. package/dist/chunks/loading-indicator.DXc7I1Lm.js +0 -48
  476. package/dist/chunks/loading-indicator.DXc7I1Lm.js.map +0 -1
  477. package/dist/chunks/menu.2TwUMlA9.js.map +0 -1
  478. package/dist/chunks/modal-fullscreen.BB_8EMNo.js +0 -196
  479. package/dist/chunks/modal-fullscreen.BB_8EMNo.js.map +0 -1
  480. package/dist/chunks/modal.DLwvcaRx.js +0 -439
  481. package/dist/chunks/modal.DLwvcaRx.js.map +0 -1
  482. package/dist/chunks/no-results-found.Bg_ZcEid.js +0 -5
  483. package/dist/chunks/no-results-found.Bg_ZcEid.js.map +0 -1
  484. package/dist/chunks/no-results-found.BqvYsBR6.js +0 -5
  485. package/dist/chunks/no-results-found.BqvYsBR6.js.map +0 -1
  486. package/dist/chunks/notifications-cleared.BMZk37uf.js +0 -5
  487. package/dist/chunks/notifications-cleared.BMZk37uf.js.map +0 -1
  488. package/dist/chunks/notifications-cleared.C7W9ZXY7.js +0 -5
  489. package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +0 -1
  490. package/dist/chunks/page-not-found.COJLPVaU.js +0 -5
  491. package/dist/chunks/page-not-found.COJLPVaU.js.map +0 -1
  492. package/dist/chunks/page-not-found.DWW6W-PZ.js +0 -5
  493. package/dist/chunks/page-not-found.DWW6W-PZ.js.map +0 -1
  494. package/dist/chunks/pagination.BXjbVe4Z.js +0 -494
  495. package/dist/chunks/pagination.BXjbVe4Z.js.map +0 -1
  496. package/dist/chunks/payment-method.types.CJKfZQN5.js +0 -5
  497. package/dist/chunks/payment-method.types.CJKfZQN5.js.map +0 -1
  498. package/dist/chunks/planned-maintenance.C61sWB9h.js +0 -5
  499. package/dist/chunks/planned-maintenance.C61sWB9h.js.map +0 -1
  500. package/dist/chunks/planned-maintenance.jmWYTdet.js +0 -5
  501. package/dist/chunks/planned-maintenance.jmWYTdet.js.map +0 -1
  502. package/dist/chunks/popover.B8YH92W8.js.map +0 -1
  503. package/dist/chunks/popper-container.Bt02N3o1.js.map +0 -1
  504. package/dist/chunks/radio-group.CPbBFTzB.js +0 -211
  505. package/dist/chunks/radio-group.CPbBFTzB.js.map +0 -1
  506. package/dist/chunks/referrals.BvtT-kQS.js +0 -5
  507. package/dist/chunks/referrals.BvtT-kQS.js.map +0 -1
  508. package/dist/chunks/referrals.aX8WZigH.js +0 -5
  509. package/dist/chunks/referrals.aX8WZigH.js.map +0 -1
  510. package/dist/chunks/search-bar.CsAgO-t5.js +0 -89
  511. package/dist/chunks/search-bar.CsAgO-t5.js.map +0 -1
  512. package/dist/chunks/secondary-nav.CNgpPxUU.js +0 -97
  513. package/dist/chunks/secondary-nav.CNgpPxUU.js.map +0 -1
  514. package/dist/chunks/segmented-control.types.BHRLV8KU.js +0 -5
  515. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +0 -1
  516. package/dist/chunks/selection-card-group.DlOs8BkR.js +0 -247
  517. package/dist/chunks/selection-card-group.DlOs8BkR.js.map +0 -1
  518. package/dist/chunks/sidepanel.BBjm2QvZ.js +0 -187
  519. package/dist/chunks/sidepanel.BBjm2QvZ.js.map +0 -1
  520. package/dist/chunks/status.types.BhbOYpZx.js +0 -36
  521. package/dist/chunks/status.types.BhbOYpZx.js.map +0 -1
  522. package/dist/chunks/step.DY8Txb6a.js +0 -234
  523. package/dist/chunks/step.DY8Txb6a.js.map +0 -1
  524. package/dist/chunks/structured-list-item.C9NTVDvT.js.map +0 -1
  525. package/dist/chunks/success.DhioLvPD.js +0 -5
  526. package/dist/chunks/success.DhioLvPD.js.map +0 -1
  527. package/dist/chunks/success.nNwxJRBS.js +0 -5
  528. package/dist/chunks/success.nNwxJRBS.js.map +0 -1
  529. package/dist/chunks/summary-grid-item-custom.CJpDnoPw.js +0 -573
  530. package/dist/chunks/summary-grid-item-custom.CJpDnoPw.js.map +0 -1
  531. package/dist/chunks/tabs.CE65f3E_.js +0 -140
  532. package/dist/chunks/tabs.CE65f3E_.js.map +0 -1
  533. package/dist/chunks/tag.bhKrZHTU.js +0 -64
  534. package/dist/chunks/tag.bhKrZHTU.js.map +0 -1
  535. package/dist/chunks/textarea.CcKbtQBs.js +0 -208
  536. package/dist/chunks/textarea.CcKbtQBs.js.map +0 -1
  537. package/dist/chunks/timeline-item.ScTrUBKC.js +0 -364
  538. package/dist/chunks/timeline-item.ScTrUBKC.js.map +0 -1
  539. package/dist/chunks/toast.0EYDj8o-.js +0 -165
  540. package/dist/chunks/toast.0EYDj8o-.js.map +0 -1
  541. package/dist/chunks/toggle-button.2U-vbQhk.js +0 -83
  542. package/dist/chunks/toggle-button.2U-vbQhk.js.map +0 -1
  543. package/dist/chunks/toggle.CiOVTWlk.js +0 -121
  544. package/dist/chunks/toggle.CiOVTWlk.js.map +0 -1
  545. package/dist/chunks/tutorial.DMm12L0S.js +0 -335
  546. package/dist/chunks/tutorial.DMm12L0S.js.map +0 -1
  547. package/dist/chunks/typography.Bjtu3Gca.js.map +0 -1
  548. package/dist/chunks/upload-files.5wQwbfkp.js +0 -5
  549. package/dist/chunks/upload-files.5wQwbfkp.js.map +0 -1
  550. package/dist/chunks/upload-files.jTQY6y2X.js +0 -5
  551. package/dist/chunks/upload-files.jTQY6y2X.js.map +0 -1
  552. package/dist/chunks/use-cached-selected-values.CVLzxvTi.js.map +0 -1
  553. package/dist/chunks/use-has-slot.C9lQZ6nz.js +0 -6
  554. package/dist/chunks/wrong-environment.BOsyKdRI.js +0 -5
  555. package/dist/chunks/wrong-environment.BOsyKdRI.js.map +0 -1
  556. package/dist/chunks/wrong-environment.BiHTPtbJ.js +0 -5
  557. package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +0 -1
  558. /package/dist/assets/{badge.css → index.css} +0 -0
  559. /package/dist/assets/{tabs.css → index10.css} +0 -0
  560. /package/dist/assets/{date-picker.css → index12.css} +0 -0
  561. /package/dist/assets/{empty-state.css → index13.css} +0 -0
  562. /package/dist/assets/{focus-trap.css → index15.css} +0 -0
  563. /package/dist/assets/{form-layout-title.css → index16.css} +0 -0
  564. /package/dist/assets/{info-icon.css → index17.css} +0 -0
  565. /package/dist/assets/{dashed-underline.css → index2.css} +0 -0
  566. /package/dist/assets/{date-range-picker.css → index20.css} +0 -0
  567. /package/dist/assets/{status.css → index25.css} +0 -0
  568. /package/dist/assets/{step.css → index26.css} +0 -0
  569. /package/dist/assets/{link.css → index27.css} +0 -0
  570. /package/dist/assets/{alert.css → index29.css} +0 -0
  571. /package/dist/assets/{header.css → index31.css} +0 -0
  572. /package/dist/assets/{loading-indicator.css → index32.css} +0 -0
  573. /package/dist/assets/{dropdown-tag.css → index34.css} +0 -0
  574. /package/dist/assets/{popper-container.css → index35.css} +0 -0
  575. /package/dist/assets/{summary-grid-item-custom.css → index37.css} +0 -0
  576. /package/dist/assets/{toggle-button.css → index4.css} +0 -0
  577. /package/dist/assets/{tag.css → index41.css} +0 -0
  578. /package/dist/assets/{toast.css → index44.css} +0 -0
  579. /package/dist/assets/{typography.css → index46.css} +0 -0
  580. /package/dist/assets/{data-grid-template.css → index49.css} +0 -0
  581. /package/dist/assets/{pagination.css → index50.css} +0 -0
  582. /package/dist/assets/{checkbox-group.css → index6.css} +0 -0
  583. /package/dist/assets/{country.css → index8.css} +0 -0
  584. /package/dist/assets/{divider.css → index9.css} +0 -0
  585. /package/dist/assets/{cross.css → refresh.css} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"toast.0EYDj8o-.js","sources":["../../src/components/toast/components/toast-item/toast-item.vue","../../src/components/toast/components/toast-shadow-stack/toast-shadow-stack.vue","../../src/components/toast/toast.vue"],"sourcesContent":["<template>\n <div class=\"b-toast-item\">\n <output class=\"b-toast-item__text\" role=\"status\">\n <bento-typography :title=\"toast.text\" el=\"span\" variant=\"body\" strongest>\n {{ toast.text }}\n </bento-typography>\n </output>\n <bento-button\n v-if=\"toast.action\"\n class=\"b-toast-item__btn\"\n variant=\"tertiary\"\n data-testid=\"toast-item-action-btn\"\n @click=\"onAction\"\n >\n {{ toast.action.text }}\n </bento-button>\n <bento-button\n class=\"b-toast-item__btn\"\n variant=\"tertiary\"\n data-testid=\"toast-item-close-btn\"\n @click=\"toast.dismiss()\"\n >\n <template #iconLeft>\n <cross-icon :svg-title=\"t('dismiss')\" />\n </template>\n </bento-button>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { PropType } from 'vue';\n import CrossIcon from '@adyen/ui-assets-icons-16/vue/cross-small';\n import { useI18n } from '@/utils/ts/i18n';\n import { BentoButton } from '@/components/button';\n import { BentoTypography } from '@/components/typography';\n import type { BentoToastItem } from '@/composables';\n import messages from './messages.json';\n\n const props = defineProps({\n toast: { type: Object as PropType<BentoToastItem>, required: true },\n });\n\n type MessageSchema = (typeof messages)['en-US'];\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const onAction = () => {\n if (typeof props.toast.action.handler === 'function') {\n props.toast.action.handler();\n }\n props.toast.dismiss();\n };\n</script>\n\n<script lang=\"ts\">\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./toast-item.scss\" />\n","<template>\n <div ref=\"shadowStack\" class=\"b-toast-shadow-stack\">\n <!--\n since we only interested in the size of the last 3 toasts and order of the toast items\n is not guaranteed when we use ref with v-for (more info at the end of this section https://vuejs.org/guide/essentials/template-refs.html#refs-inside-v-for),\n toast items would be rendered independently with individual ref references.\n -->\n <toast-item v-if=\"toasts[0]\" ref=\"toast0\" :toast=\"toasts[0]\" />\n <toast-item v-if=\"toasts[1]\" ref=\"toast1\" :toast=\"toasts[1]\" />\n <toast-item v-if=\"toasts[2]\" ref=\"toast2\" :toast=\"toasts[2]\" />\n </div>\n</template>\n\n<script setup lang=\"ts\">\n /**\n * This component will \"shadow-render\" ToastItems positioned relatively to each other,\n * would grab their positions and size and would emit augmented list of toasts with those\n * additional details. This would allow us to have perfect control over toasts positioning and animation\n * in the parent Toast component, where ToastItems would actually be visible.\n */\n import { computed, nextTick, onMounted, ref, watch } from 'vue';\n import { useBentoToastController } from '@/composables';\n import type { BentoToastItemWithDimensions } from './toast-shadow-stack.types';\n import ToastItem from '../toast-item/toast-item.vue';\n\n const { stack } = useBentoToastController();\n\n const emit = defineEmits<{\n /**\n *\n */\n (e: 'update', toasts: Array<BentoToastItemWithDimensions>): void;\n }>();\n\n const shadowStack = ref<HTMLElement>();\n const toast0 = ref<InstanceType<typeof ToastItem>>();\n const toast1 = ref<InstanceType<typeof ToastItem>>();\n const toast2 = ref<InstanceType<typeof ToastItem>>();\n const toastRefs = [toast0, toast1, toast2];\n\n // only get 3 last toast as only they would be rendered on the screen\n const toasts = computed(() => stack.value.slice(0, 3));\n\n const shareToastsWithDimensions = async () => {\n // Wait for all toasts to render, so we would be able to get their ClientRect\n await nextTick();\n\n // Parent container \"top\" value should be 0, but can be something else due to CSS. So have to account for it\n const { top: parentTop } = shadowStack.value.getBoundingClientRect();\n\n const toastsWithDimensions = stack.value.map((toast, index) => {\n if (index > 2) {\n return { ...toast, bottom: 0, height: 0 };\n }\n const { height, top } = toastRefs[index].value.$el.getBoundingClientRect();\n return { ...toast, height, bottom: top - parentTop };\n });\n emit('update', toastsWithDimensions);\n };\n\n watch(stack, shareToastsWithDimensions);\n\n onMounted(() => {\n // Refs would be null until component is mounted, so let's make sure we only do it after that\n if (stack.value.length > 0) {\n shareToastsWithDimensions();\n }\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./toast-shadow-stack.scss\" />\n","<template>\n <div\n v-if=\"renderToast\"\n ref=\"root\"\n class=\"b-toast\"\n data-testid=\"toast\"\n :style=\"{ height: stackHeight }\"\n @mouseenter=\"hovered = true\"\n @mouseleave=\"hovered = false\"\n >\n <toast-shadow-stack @update=\"toastsWithDimensions = $event\" />\n\n <transition-group\n name=\"b-toast__queue\"\n tag=\"div\"\n aria-live=\"polite\"\n enter-class=\"b-toast__queue--enter\"\n leave-to-class=\"b-toast__queue--leave-to\"\n @before-leave=\"onBeforeToastLeave\"\n @after-leave=\"checkHover\"\n >\n <toast-item\n v-for=\"toast in queue\"\n v-bind=\"{ 'data-dismiss-transform': toast.dismissTransform }\"\n :key=\"toast.id\"\n :toast=\"toast\"\n :style=\"toast.styles\"\n :class=\"{ 'b-toast__item--first': toast.isFirst }\"\n :inert=\"toast.isInert\"\n data-testid=\"toast-item\"\n class=\"b-toast__item\"\n />\n </transition-group>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, ref, watch } from 'vue';\n import { useBentoToastController } from '@/composables';\n import ToastShadowStack from './components/toast-shadow-stack/toast-shadow-stack.vue';\n import type { BentoToastItemWithDimensions } from './components/toast-shadow-stack/toast-shadow-stack.types';\n import ToastItem from './components/toast-item/toast-item.vue';\n\n // By design, top-most toast should be visible for 5 seconds before auto-dismiss\n const TOAST_DISPLAY_DURATION = 5000;\n\n // Delay first render of the toast until we actually need it, to skip all the positioning calculation logic\n // until we actually have anything to render.\n const renderToast = ref(false);\n const { stack } = useBentoToastController();\n\n watch(\n stack,\n toastStack => {\n if (toastStack.length > 0 && !renderToast.value) {\n renderToast.value = true;\n }\n },\n { immediate: true }\n );\n\n const hovered = ref(false);\n const toastsWithDimensions = ref<Array<BentoToastItemWithDimensions>>([]);\n // In collapsed mode we need for toast to \"stick out\", but not overflow another toast in the forefront.\n // Random number that satisfies this condition (single-line toast is roughly 52px height)\n const collapsedToastHeight = 40;\n // How much pixels of the stacked toast will be \"sticking out\" from the visible toast\n const stackIndicatorHeight = 10;\n\n const queueSize = computed(() => toastsWithDimensions.value.length);\n const lastVisibleToastIndex = computed(() => Math.min(hovered.value ? 2 : 0, queueSize.value - 1));\n const lastVisibleToastBottom = computed(() => {\n const toast = toastsWithDimensions.value[lastVisibleToastIndex.value];\n return toast ? toast.bottom + toast.height : 0;\n });\n\n const queue = computed(() => {\n const translateBaseValue = lastVisibleToastBottom.value - collapsedToastHeight;\n return toastsWithDimensions.value.map((toast, index) => {\n const collapsed = index > lastVisibleToastIndex.value;\n const isSmallerStack = !hovered.value && index > 1;\n const translateY = collapsed\n ? translateBaseValue + stackIndicatorHeight * (isSmallerStack ? 2 : 1)\n : toast.bottom;\n\n return {\n ...toast,\n styles: {\n height: `${collapsed ? collapsedToastHeight : toast.height}px`,\n transform: collapsed\n ? `translateY(${translateY * -1}px) scaleX(${isSmallerStack ? '0.8' : '0.9'})`\n : `translateY(${translateY * -1}px)`,\n 'z-index': queueSize.value - index,\n },\n // first toast has different animation, and toasts above index 2/3 are not visible so no need for a custom animation\n dismissTransform:\n index > 0 && index < (hovered.value ? 4 : 3)\n ? `translateY(${(translateY - toast.height) * -1}px) scale(0.5, 0.1)`\n : null,\n isFirst: index === 0,\n isInert: index > (hovered.value ? 2 : 0),\n };\n });\n });\n\n const onBeforeToastLeave = (el: HTMLElement) => {\n // We have to swap transformation on the toast element that is about to be removed\n // Unfortunately we cannot do it via transition classes as transformation function is\n // unique per toast, and we cannot use reactivity because it won't be applied for a toast\n // that is removed. So direct DOM manipulation is the only way it seems.\n if (el.dataset.dismissTransform) {\n /* eslint-disable no-param-reassign -- explicitly manipulating with DOM properties, no way around it unfortunately */\n el.style.transform = el.dataset.dismissTransform;\n }\n };\n\n const stackHeight = computed(() => {\n // Track stack container height, so that hover over would work without glitches\n // (when mouse is over space between toasts)\n let height = 0;\n if (lastVisibleToastIndex.value >= 0) {\n const stackIndicator =\n stackIndicatorHeight *\n Math.min(queueSize.value - 1 - lastVisibleToastIndex.value, hovered.value ? 1 : 2);\n height = Math.min(lastVisibleToastBottom.value + stackIndicator, document.body.parentElement.clientHeight);\n }\n return `${height}px`;\n });\n\n let dismissTimout = null;\n let timeoutStart = null;\n let remainingTimeToDismiss = TOAST_DISPLAY_DURATION;\n\n const startTimer = (toast, duration) => {\n timeoutStart = Date.now();\n dismissTimout = setTimeout(() => toast.dismiss(), duration);\n };\n\n const startNewDismissTimer = toast => {\n // stop previous timeouts, if any\n clearTimeout(dismissTimout);\n if (toast) {\n remainingTimeToDismiss = TOAST_DISPLAY_DURATION;\n if (!hovered.value) {\n startTimer(toast, remainingTimeToDismiss);\n }\n } else {\n remainingTimeToDismiss = 0;\n }\n };\n\n watch(\n () => queue.value[0],\n (firstToast, oldFirstToast) => {\n if (firstToast?.id === oldFirstToast?.id) {\n return;\n }\n startNewDismissTimer(firstToast);\n },\n { immediate: true }\n );\n\n const pauseDismissTimer = () => {\n remainingTimeToDismiss = remainingTimeToDismiss - Date.now() + timeoutStart;\n clearTimeout(dismissTimout);\n };\n\n const resumeDismissTimer = () => {\n if (remainingTimeToDismiss > 0) {\n startTimer(queue.value[0], remainingTimeToDismiss);\n }\n };\n\n watch(hovered, isHovered => {\n if (isHovered) {\n pauseDismissTimer();\n } else {\n resumeDismissTimer();\n }\n });\n\n const root = ref<HTMLElement>();\n // \"mouseleave\" event would be emitted for the root element when the mouse moves out of the root element,\n // but browser wouldn't emit this event when root element shrinks to the point when mouse is not over element anymore.\n // This can happen when user clicks on dismiss button the top-most toast and doesn't move the mouse during animation,\n // after which browser would think that root element is still hovered. This workaround addresses this particular issue.\n const checkHover = () =>\n setTimeout(() => {\n hovered.value = hovered.value ? root.value.matches(':hover') : false;\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./toast.scss\" />\n"],"names":["__default__","messages","t","useI18n","props","stack","useBentoToastController","shadowStack","ref","toast0","toast1","toast2","toastRefs","toasts","computed","shareToastsWithDimensions","nextTick","parentTop","toastsWithDimensions","toast","index","height","top","emit","watch","onMounted","renderToast","toastStack","hovered","collapsedToastHeight","stackIndicatorHeight","queueSize","lastVisibleToastIndex","lastVisibleToastBottom","queue","translateBaseValue","collapsed","isSmallerStack","translateY","onBeforeToastLeave","el","stackHeight","stackIndicator","dismissTimout","timeoutStart","remainingTimeToDismiss","startTimer","duration","startNewDismissTimer","firstToast","oldFirstToast","pauseDismissTimer","resumeDismissTimer","isHovered","root"],"mappings":";;;;;;;;;;;;;GAsDIA,IAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;iBAbA,EAAA,GAAAC,EAAA,IAAAC,EAAA;kDAEA,MAAA;AACI,MAAA,OAAAC,EAAA,MAAA,OAAA,WAAA,cACIA,EAAA,MAAA,OAAA,QAAA,GAEJA,EAAA,MAAA,QAAA;AAAA,IAAoB;;;;;;;;;;;;;;;;;;;;;;ACxBxB,UAAA,EAAA,OAAAC,EAAA,IAAAC,EAAA,GASAC,IAAAC,EAAA,GACAC,IAAAD,EAAA,GACAE,IAAAF,EAAA,GACAG,IAAAH,EAAA,GACAI,IAAA,CAAAH,GAAAC,GAAAC,CAAA,GAGAE,IAAAC,EAAA,MAAAT,EAAA,MAAA,MAAA,GAAA,CAAA,CAAA,GAEAU,IAAA,YAAA;AAEI,YAAAC,EAAA;AAGA,YAAA,EAAA,KAAAC,EAAA,IAAAV,EAAA,MAAA,sBAAA,GAEAW,IAAAb,EAAA,MAAA,IAAA,CAAAc,GAAAC,MAAA;AACI,YAAAA,IAAA;AACI,iBAAA,EAAA,GAAAD,GAAA,QAAA,GAAA,QAAA,EAAA;AAEJ,cAAA,EAAA,QAAAE,GAAA,KAAAC,EAAA,IAAAV,EAAAQ,CAAA,EAAA,MAAA,IAAA,sBAAA;AACA,eAAA,EAAA,GAAAD,GAAA,QAAAE,GAAA,QAAAC,IAAAL,EAAA;AAAA,MAAmD,CAAA;AAEvD,MAAAM,EAAA,UAAAL,CAAA;AAAA,IAAmC;AAGvC,WAAAM,EAAAnB,GAAAU,CAAA,GAEAU,EAAA,MAAA;AAEI,MAAApB,EAAA,MAAA,SAAA,KACIU,EAAA;AAAA,IACJ,CAAA;;;;;;;;;;;;;;;;;AClBJ,UAAAW,IAAAlB,EAAA,EAAA,GACA,EAAA,OAAAH,EAAA,IAAAC,EAAA;AAEA,IAAAkB;AAAA,MAAAnB;AAAA,MACI,CAAAsB,MAAA;AAEI,QAAAA,EAAA,SAAA,KAAA,CAAAD,EAAA,UACIA,EAAA,QAAA;AAAA,MACJ;AAAA,MACJ,EAAA,WAAA,GAAA;AAAA,IACkB;AAGtB,UAAAE,IAAApB,EAAA,EAAA,GACAU,IAAAV,EAAA,CAAA,CAAA,GAGAqB,IAAA,IAEAC,IAAA,IAEAC,IAAAjB,EAAA,MAAAI,EAAA,MAAA,MAAA,GACAc,IAAAlB,EAAA,MAAA,KAAA,IAAAc,EAAA,QAAA,IAAA,GAAAG,EAAA,QAAA,CAAA,CAAA,GACAE,IAAAnB,EAAA,MAAA;AACI,YAAAK,IAAAD,EAAA,MAAAc,EAAA,KAAA;AACA,aAAAb,IAAAA,EAAA,SAAAA,EAAA,SAAA;AAAA,IAA6C,CAAA,GAGjDe,IAAApB,EAAA,MAAA;AACI,YAAAqB,IAAAF,EAAA,QAAAJ;AACA,aAAAX,EAAA,MAAA,IAAA,CAAAC,GAAAC,MAAA;AACI,cAAAgB,IAAAhB,IAAAY,EAAA,OACAK,IAAA,CAAAT,EAAA,SAAAR,IAAA,GACAkB,IAAAF,IAAAD,IAAAL,KAAAO,IAAA,IAAA,KAAAlB,EAAA;AAIA,eAAA;AAAA,UAAO,GAAAA;AAAA,UACA,QAAA;AAAA,YACK,QAAA,GAAAiB,IAAAP,IAAAV,EAAA,MAAA;AAAA,YACsD,WAAAiB,IAAA,cAAAE,IAAA,EAAA,cAAAD,IAAA,QAAA,KAAA,MAAA,cAAAC,IAAA,EAAA;AAAA,YAGvB,WAAAP,EAAA,QAAAX;AAAA,UACN;AAAA;AAAA,UACjC,kBAAAA,IAAA,KAAAA,KAAAQ,EAAA,QAAA,IAAA,KAAA,eAAAU,IAAAnB,EAAA,UAAA,EAAA,wBAAA;AAAA,UAKU,SAAAC,MAAA;AAAA,UACS,SAAAA,KAAAQ,EAAA,QAAA,IAAA;AAAA,QACmB;AAAA,MAC1C,CAAA;AAAA,IACH,CAAA,GAGLW,IAAA,CAAAC,MAAA;AAKI,MAAAA,EAAA,QAAA,qBAEIA,EAAA,MAAA,YAAAA,EAAA,QAAA;AAAA,IACJ,GAGJC,IAAA3B,EAAA,MAAA;AAGI,UAAAO,IAAA;AACA,UAAAW,EAAA,SAAA,GAAA;AACI,cAAAU,IAAAZ,IAAA,KAAA,IAAAC,EAAA,QAAA,IAAAC,EAAA,OAAAJ,EAAA,QAAA,IAAA,CAAA;AAGA,QAAAP,IAAA,KAAA,IAAAY,EAAA,QAAAS,GAAA,SAAA,KAAA,cAAA,YAAA;AAAA,MAAyG;AAE7G,aAAA,GAAArB,CAAA;AAAA,IAAgB,CAAA;AAGpB,QAAAsB,IAAA,MACAC,IAAA,MACAC,IAAA;AAEA,UAAAC,IAAA,CAAA3B,GAAA4B,MAAA;AACI,MAAAH,IAAA,KAAA,IAAA,GACAD,IAAA,WAAA,MAAAxB,EAAA,QAAA,GAAA4B,CAAA;AAAA,IAA0D,GAG9DC,IAAA,CAAA7B,MAAA;AAEI,mBAAAwB,CAAA,GACAxB,KACI0B,IAAA,KACAjB,EAAA,SACIkB,EAAA3B,GAAA0B,CAAA,KAGJA,IAAA;AAAA,IACJ;AAGJ,IAAArB;AAAA,MAAA,MAAAU,EAAA,MAAA,CAAA;AAAA,MACuB,CAAAe,GAAAC,MAAA;AAEf,SAAAD,KAAA,gBAAAA,EAAA,SAAAC,KAAA,gBAAAA,EAAA,OAGAF,EAAAC,CAAA;AAAA,MAA+B;AAAA,MACnC,EAAA,WAAA,GAAA;AAAA,IACkB;AAGtB,UAAAE,IAAA,MAAA;AACI,MAAAN,IAAAA,IAAA,KAAA,IAAA,IAAAD,GACA,aAAAD,CAAA;AAAA,IAA0B,GAG9BS,IAAA,MAAA;AACI,MAAAP,IAAA,KACIC,EAAAZ,EAAA,MAAA,CAAA,GAAAW,CAAA;AAAA,IACJ;AAGJ,IAAArB,EAAAI,GAAA,CAAAyB,MAAA;AACI,MAAAA,IACIF,EAAA,IAEAC,EAAA;AAAA,IACJ,CAAA;AAGJ,UAAAE,IAAA9C,EAAA;kcAKA,MAAA,WAAA,MAAA;AAEQ,MAAAoB,EAAA,QAAAA,EAAA,QAAA0B,EAAA,MAAA,QAAA,QAAA,IAAA;AAAA,IAA+D,CAAA;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,83 +0,0 @@
1
- import { defineComponent as u, computed as d, useSlots as c } from "vue";
2
- import { B as a } from "./button.DhAUh5JA.js";
3
- import "./index.Cl4_42j5.js";
4
- import { n as p } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
5
- import "../assets/toggle-button.css";
6
- const g = {}, f = /* @__PURE__ */ u({
7
- ...g,
8
- __name: "toggle-button",
9
- props: {
10
- /**
11
- * Reduces sizing of button
12
- */
13
- condensed: {
14
- type: a.props.condensed.type,
15
- default: !1
16
- },
17
- /**
18
- * Disables button functonality
19
- */
20
- disabled: {
21
- type: a.props.disabled.type,
22
- default: !1
23
- },
24
- /**
25
- * Sets color set to inverse
26
- */
27
- inverse: {
28
- type: Boolean,
29
- default: !1
30
- },
31
- /**
32
- * Types of flavour of Button
33
- * @values primary, secondary, tertiary
34
- */
35
- variant: {
36
- type: a.props.variant.type,
37
- default: "primary",
38
- validator: a.props.variant.validator
39
- },
40
- /**
41
- * The state of the button whether it is toggled or not.
42
- */
43
- toggled: {
44
- type: Boolean,
45
- default: !1
46
- }
47
- },
48
- emits: ["click", "update:toggled"],
49
- setup(r, { emit: t }) {
50
- const e = r, o = d(
51
- () => e.variant === "tertiary" ? "tertiary-with-background" : e.variant
52
- ), s = d(() => ({
53
- "b-toggle-button--condensed": e == null ? void 0 : e.condensed,
54
- [`b-toggle-button--${o.value}-toggled`]: e.toggled,
55
- "b-toggle-button--inverse": e.inverse
56
- })), n = (l) => {
57
- l.stopPropagation(), e != null && e.disabled || (t("click", l), t("update:toggled", !e.toggled));
58
- }, i = c();
59
- return { __sfc: !0, props: e, emit: t, computedVariant: o, conditionalClasses: s, onClick: n, slots: i, getSlotKeyIfVue3: (l) => ({}), BentoButton: a };
60
- }
61
- });
62
- var _ = function() {
63
- var t = this, e = t._self._c, o = t._self._setupProxy;
64
- return e(o.BentoButton, t._b({ staticClass: "b-toggle-button", class: o.conditionalClasses, attrs: { "aria-expanded": `${t.toggled}`, condensed: t.condensed, disabled: t.disabled, inverse: t.inverse, variant: o.computedVariant }, on: { "!click": function(s) {
65
- return s.stopPropagation(), o.onClick.apply(null, arguments);
66
- } }, scopedSlots: t._u([t._l(o.slots, function(s, n) {
67
- return { key: n, fn: function() {
68
- return [t._t(n, null, null, o.getSlotKeyIfVue3(n))];
69
- }, proxy: !0 };
70
- })], null, !0) }, "bento-button", t.$attrs, !1));
71
- }, m = [], v = /* @__PURE__ */ p(
72
- f,
73
- _,
74
- m,
75
- !1,
76
- null,
77
- "da4cca72"
78
- );
79
- const x = v.exports;
80
- export {
81
- x as B
82
- };
83
- //# sourceMappingURL=toggle-button.2U-vbQhk.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"toggle-button.2U-vbQhk.js","sources":["../../src/components/button/components/toggle-button/toggle-button.vue"],"sourcesContent":["<template>\n <bento-button\n class=\"b-toggle-button\"\n v-bind=\"$attrs\"\n :aria-expanded=\"`${toggled}`\"\n :condensed=\"condensed\"\n :class=\"conditionalClasses\"\n :disabled=\"disabled\"\n :inverse=\"inverse\"\n :variant=\"computedVariant\"\n @click.capture.stop=\"onClick\"\n >\n <template v-for=\"(_, innerSlot) of slots\" #[innerSlot]>\n <slot :name=\"innerSlot\" v-bind=\"getSlotKeyIfVue3(innerSlot)\" />\n </template>\n </bento-button>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, useSlots } from 'vue';\n import BentoButton from '@/components/button/button.vue';\n import { BentoButtonVariant } from '@/core/components/button/button.types';\n import { isVue3 } from 'vue-demi';\n\n const props = defineProps({\n /**\n * Reduces sizing of button\n */\n condensed: {\n type: BentoButton.props.condensed.type,\n default: false,\n },\n\n /**\n * Disables button functonality\n */\n disabled: {\n type: BentoButton.props.disabled.type,\n default: false,\n },\n\n /**\n * Sets color set to inverse\n */\n inverse: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Types of flavour of Button\n * @values primary, secondary, tertiary\n */\n variant: {\n type: BentoButton.props.variant.type,\n default: 'primary',\n validator: BentoButton.props.variant.validator,\n },\n\n /**\n * The state of the button whether it is toggled or not.\n */\n toggled: {\n type: Boolean,\n default: false,\n },\n });\n\n const emit = defineEmits<{\n /**\n * Click event handler\n */\n (e: 'click', event: MouseEvent): void;\n\n /**\n * Update the toggle state when the button has been clicked.\n */\n (e: 'update:toggled', newToggleState: boolean): void;\n }>();\n\n const computedVariant = computed(\n () => (props.variant === 'tertiary' ? 'tertiary-with-background' : props.variant) as BentoButtonVariant\n );\n\n const conditionalClasses = computed(() => ({\n [`b-toggle-button--condensed`]: props?.condensed,\n [`b-toggle-button--${computedVariant.value}-toggled`]: props.toggled,\n [`b-toggle-button--inverse`]: props.inverse,\n }));\n\n const onClick = (e: MouseEvent) => {\n // Prevent Vue3 from triggering event twice\n e.stopPropagation();\n if (!props?.disabled) {\n emit('click', e);\n emit('update:toggled', !props.toggled);\n }\n };\n\n const slots = useSlots();\n // If we don't provide a key to `slot` in vue 3, we will get type errors\n const getSlotKeyIfVue3 = (slotName: string | number) => (isVue3 ? { key: slotName } : {});\n</script>\n\n<script lang=\"ts\">\n /**\n * Toggle button is used to switch between two states (example: menu shown, menu hidden).\n * It functions as a regular button but retains its state to indicate whether the associated menu or element is active or inactive.\n *\n * @example\n * import { BentoToggleButton } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoToggleButton },\n * template: `\n * <bento-toggle-button state=\"toggled\" variant=\"secondary\">\n * Button that can be toggled\n * </bento-toggle-button>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./toggle-button.scss\" />\n"],"names":["__default__","computedVariant","computed","props","conditionalClasses","onClick","e","emit","slots","useSlots","slotName"],"mappings":";;;;;AAyHI,MAAAA,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAzCAC,IAAAC;AAAA,MAAwB,MAAAC,EAAA,YAAA,aAAA,6BAAAA,EAAA;AAAA,IACqD,GAG7EC,IAAAF,EAAA,OAAA;AAAA,MAA2C,8BAAAC,KAAA,gBAAAA,EAAA;AAAA,MACA,CAAA,oBAAAF,EAAA,KAAA,UAAA,GAAAE,EAAA;AAAA,MACsB,4BAAAA,EAAA;AAAA,IACzB,EAAA,GAGxCE,IAAA,CAAAC,MAAA;AAEI,MAAAA,EAAA,gBAAA,GACAH,KAAA,QAAAA,EAAA,aACII,EAAA,SAAAD,CAAA,GACAC,EAAA,kBAAA,CAAAJ,EAAA,OAAA;AAAA,IACJ,GAGJK,IAAAC,EAAA;8HAEA,CAAAC,OAAA,CAAA;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,121 +0,0 @@
1
- import { defineComponent as k, ref as p, computed as u, toRefs as I, watch as A } from "vue";
2
- import { C as B } from "./checkmark-small.BtF8b2gE.js";
3
- import { B as L } from "./typography.Bjtu3Gca.js";
4
- import { g as E } from "./unique-id.XFfoKuc2.js";
5
- import { u as F } from "./use-default-slot-validator.BDn0wkYP.js";
6
- import { u as R } from "./use-has-slot.C9lQZ6nz.js";
7
- import { g } from "./get-slot-text.Cgn-E48s.js";
8
- import { u as x } from "./aria-label.CaUURpnB.js";
9
- import { n as T } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
10
- import "../assets/toggle.css";
11
- var f = /* @__PURE__ */ ((t) => (t.LABEL_FIRST = "label-first", t))(f || {}), d = /* @__PURE__ */ ((t) => (t.BEFORE = "before", t.AFTER = "after", t))(d || {});
12
- const D = k({
13
- name: "bento-toggle",
14
- components: { BentoTypography: L, CheckmarkSmall: B },
15
- props: {
16
- /**
17
- * @deprecated from version 2.0.0. Use the aria-label attribute instead.
18
- */
19
- /**
20
- * Accessible name for the toggle. It is strongly recommended to pass such value when the toggle is used without a label
21
- */
22
- ariaLabel: {
23
- type: String,
24
- default: void 0
25
- },
26
- /**
27
- * Disable the toggle (optional)
28
- */
29
- disabled: {
30
- type: Boolean,
31
- default: !1
32
- },
33
- /**
34
- * Position of the label relative to the toggle (optional)
35
- * @values before, after
36
- */
37
- labelPosition: {
38
- type: String,
39
- default: d.BEFORE,
40
- validator: (t) => Object.values(d).includes(t)
41
- },
42
- /**
43
- * Setting this property to true will set the toggle to read only state.
44
- */
45
- readonly: {
46
- type: Boolean,
47
- default: !1
48
- },
49
- /**
50
- * Indicates if the switch is "on" or "off"
51
- */
52
- value: {
53
- type: Boolean,
54
- default: !1
55
- }
56
- },
57
- emits: ["input"],
58
- setup(t, { attrs: e, slots: a, emit: n }) {
59
- const l = R(a), r = p(t.value), i = E("toggle-description"), c = g(a)("default"), o = g(a)("description");
60
- F("bento-toggle", a.default, a.description);
61
- const b = u(() => l("default") ? g(a)("default") : null), m = p(e["aria-label"]), { ariaLabel: _ } = I(t), y = x({
62
- ariaLabel: m.value,
63
- // TODO: take this line away when the aria-label props is removed
64
- label: _,
65
- defaultFallback: b
66
- }), h = u(() => i ?? null), v = u(() => ({
67
- [`b-toggle--${f.LABEL_FIRST}`]: t.labelPosition === d.BEFORE,
68
- "b-toggle--disabled": t.disabled,
69
- "b-toggle--readonly": t.readonly
70
- })), C = (s) => {
71
- n("input", s.target.checked);
72
- }, S = (s) => {
73
- t.readonly && s.preventDefault();
74
- };
75
- return A(
76
- () => t.value,
77
- (s) => {
78
- r.value = s;
79
- }
80
- ), {
81
- // Refs
82
- toggleInput: r,
83
- // Values
84
- computedAriaLabel: y,
85
- computedDescription: h,
86
- defaultSlotValue: c,
87
- descriptionSlotValue: o,
88
- conditionalClasses: v,
89
- descriptionId: i,
90
- // Method
91
- hasSlot: l,
92
- onChange: C,
93
- onClick: S
94
- };
95
- }
96
- });
97
- var O = function() {
98
- var e = this, a = e._self._c;
99
- return e._self._setupProxy, a("label", { staticClass: "b-toggle", class: e.conditionalClasses, attrs: { "data-testid": "label" } }, [a("input", { directives: [{ name: "model", rawName: "v-model", value: e.toggleInput, expression: "toggleInput" }], staticClass: "b-toggle__input", attrs: { "aria-label": e.computedAriaLabel, "aria-describedby": e.computedDescription, disabled: e.disabled, "aria-readonly": e.readonly, role: "switch", type: "checkbox" }, domProps: { checked: Array.isArray(e.toggleInput) ? e._i(e.toggleInput, null) > -1 : e.toggleInput }, on: { change: [function(n) {
100
- var l = e.toggleInput, r = n.target, i = !!r.checked;
101
- if (Array.isArray(l)) {
102
- var c = null, o = e._i(l, c);
103
- r.checked ? o < 0 && (e.toggleInput = l.concat([c])) : o > -1 && (e.toggleInput = l.slice(0, o).concat(l.slice(o + 1)));
104
- } else
105
- e.toggleInput = i;
106
- }, (n) => e.onChange(n)], click: e.onClick } }), a("span", { staticClass: "b-toggle__track", attrs: { "aria-hidden": "true" } }, [a("span", { staticClass: "b-toggle__handle" }, [e.toggleInput ? a("checkmark-small") : e._e()], 1)]), e.hasSlot("default") ? a("span", { staticClass: "b-toggle__label-container" }, [e.hasSlot("default") ? a("bento-typography", { attrs: { el: "span", variant: "body", "data-testid": "inner-label" } }, [e._t("default")], 2) : e._e(), e.hasSlot("default") && e.hasSlot("description") ? a("bento-typography", { staticClass: "b-toggle__description", attrs: { id: e.descriptionId, el: "span", variant: "body" } }, [e._t("description")], 2) : e._e()], 1) : e._e()]);
107
- }, w = [], P = /* @__PURE__ */ T(
108
- D,
109
- O,
110
- w,
111
- !1,
112
- null,
113
- "dd0561f5"
114
- );
115
- const K = P.exports;
116
- export {
117
- K as B,
118
- f as a,
119
- d as b
120
- };
121
- //# sourceMappingURL=toggle.CiOVTWlk.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"toggle.CiOVTWlk.js","sources":["../../src/components/toggle/toggle.types.ts","../../src/components/toggle/toggle.vue"],"sourcesContent":["export enum BentoTogglePropClass {\n LABEL_FIRST = 'label-first',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoToggleLabelPosition {\n BEFORE = 'before',\n AFTER = 'after',\n}\n","<template>\n <label class=\"b-toggle\" :class=\"conditionalClasses\" data-testid=\"label\">\n <input\n v-model=\"toggleInput\"\n :aria-label=\"computedAriaLabel\"\n :aria-describedby=\"computedDescription\"\n :disabled=\"disabled\"\n :aria-readonly=\"readonly\"\n role=\"switch\"\n class=\"b-toggle__input\"\n type=\"checkbox\"\n @change=\"$event => onChange($event)\"\n @click=\"onClick\"\n />\n <span class=\"b-toggle__track\" aria-hidden=\"true\">\n <span class=\"b-toggle__handle\">\n <checkmark-small v-if=\"toggleInput\" />\n </span>\n </span>\n <span v-if=\"hasSlot('default')\" class=\"b-toggle__label-container\">\n <bento-typography v-if=\"hasSlot('default')\" el=\"span\" variant=\"body\" data-testid=\"inner-label\">\n <slot></slot>\n </bento-typography>\n <bento-typography\n v-if=\"hasSlot('default') && hasSlot('description')\"\n :id=\"descriptionId\"\n el=\"span\"\n variant=\"body\"\n class=\"b-toggle__description\"\n >\n <slot name=\"description\" />\n </bento-typography>\n </span>\n </label>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType, ref, toRefs, watch } from 'vue';\n import CheckmarkSmall from '@adyen/ui-assets-icons-16/vue/checkmark-small';\n import { BentoToggleLabelPosition, BentoTogglePropClass } from './toggle.types';\n import { BentoTypography } from '@/components/typography';\n import { generateUid } from '@/utils/ts/unique-id';\n import { useDefaultSlotValidator, useHasSlot } from '@/composables';\n import { getSlotText } from '@/utils/ts/get-slot-text/get-slot-text';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n\n /**\n * A wrapper around the bento toggle, providing checkbox functionality with a knob-like toggle\n *\n * @usage\n * import { BentoToggle, BentoLabelPosition } from '@adyen/adl-vue2';\n *\n * export default {\n * components: { BentoToggle },\n * template: `\n * <bento-toggle\n * :value=\"toggleValue\"`\n * label-position=\"LabelPosition.BEFORE\"\n * @input=\"optionalHandler($event)\"\n * >\n * Label Text\n * </bento-toggle>\n * `,\n * }\n */\n export default defineComponent({\n name: 'bento-toggle',\n components: { BentoTypography, CheckmarkSmall },\n props: {\n /**\n * @deprecated from version 2.0.0. Use the aria-label attribute instead.\n */\n /**\n * Accessible name for the toggle. It is strongly recommended to pass such value when the toggle is used without a label\n */\n ariaLabel: {\n type: String,\n default: undefined,\n },\n /**\n * Disable the toggle (optional)\n */\n disabled: {\n type: Boolean,\n default: false,\n },\n /**\n * Position of the label relative to the toggle (optional)\n * @values before, after\n */\n labelPosition: {\n type: String as PropType<BentoToggleLabelPosition | `${BentoToggleLabelPosition}`>,\n default: BentoToggleLabelPosition.BEFORE,\n validator: (value: BentoToggleLabelPosition) => Object.values(BentoToggleLabelPosition).includes(value),\n },\n /**\n * Setting this property to true will set the toggle to read only state.\n */\n readonly: {\n type: Boolean,\n default: false,\n },\n /**\n * Indicates if the switch is \"on\" or \"off\"\n */\n value: {\n type: Boolean,\n default: false,\n },\n },\n emits: ['input'],\n setup(props, { attrs, slots, emit }) {\n const hasSlot = useHasSlot(slots);\n\n const toggleInput = ref(props.value);\n const descriptionId: string = generateUid('toggle-description');\n\n const defaultSlotValue = getSlotText(slots)('default');\n const descriptionSlotValue = getSlotText(slots)('description');\n\n useDefaultSlotValidator('bento-toggle', slots.default, slots.description);\n\n const labelSlot = computed((): string => (hasSlot('default') ? getSlotText(slots)('default') : null));\n\n const ariaLabelAttribute = ref(attrs['aria-label']);\n const { ariaLabel } = toRefs(props);\n const computedAriaLabel = useAriaLabel({\n ariaLabel: ariaLabelAttribute.value as string,\n // TODO: take this line away when the aria-label props is removed\n label: ariaLabel,\n defaultFallback: labelSlot,\n });\n\n const computedDescription = computed((): string | null => descriptionId ?? null);\n\n const conditionalClasses = computed((): { [key: string]: boolean } => ({\n [`b-toggle--${BentoTogglePropClass.LABEL_FIRST}`]:\n props.labelPosition === BentoToggleLabelPosition.BEFORE,\n 'b-toggle--disabled': props.disabled,\n 'b-toggle--readonly': props.readonly,\n }));\n\n const onChange = (event: Event) => {\n emit('input', (event.target as HTMLInputElement).checked);\n };\n\n // readonly attr doesn't work with checkbox, so we need to manually ignore the click instead\n const onClick = (event: Event) => {\n if (props.readonly) {\n event.preventDefault();\n }\n };\n\n watch(\n () => props.value,\n newValue => {\n toggleInput.value = newValue;\n }\n );\n\n return {\n // Refs\n toggleInput,\n\n // Values\n computedAriaLabel,\n computedDescription,\n defaultSlotValue,\n descriptionSlotValue,\n conditionalClasses,\n descriptionId,\n\n // Method\n hasSlot,\n onChange,\n onClick,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./toggle.scss\" />\n"],"names":["BentoTogglePropClass","BentoTogglePropClass2","BentoToggleLabelPosition","BentoToggleLabelPosition2","_sfc_main","defineComponent","BentoTypography","CheckmarkSmallIcon","value","props","attrs","slots","emit","hasSlot","useHasSlot","toggleInput","ref","descriptionId","generateUid","defaultSlotValue","getSlotText","descriptionSlotValue","useDefaultSlotValidator","labelSlot","computed","ariaLabelAttribute","ariaLabel","toRefs","computedAriaLabel","useAriaLabel","computedDescription","conditionalClasses","onChange","event","onClick","watch","newValue"],"mappings":";;;;;;;;;;AAAY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,cAAA,eADQA,IAAAD,KAAA,CAAA,CAAA,GAOAE,IAAA,kBAAAC,OACRA,EAAA,SAAA,UACAA,EAAA,QAAA,SAFQA,IAAAD,KAAA,CAAA,CAAA;AC0DZ,MAAAE,IAAAC,EAAA;AAAA,EAAA,MAAA;AAAA,EACA,YAAA,EAAA,iBAAAC,GAAA,gBAAAC,EAAA;AAAA,EACA,OAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IACA,WAAA;AAAA,MAOA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IACA,UAAA;AAAA,MAIA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA,IACA,eAAA;AAAA,MAKA,MAAA;AAAA,MACA,SAAAL,EAAA;AAAA,MACA,WAAA,CAAAM,MAAA,OAAA,OAAAN,CAAA,EAAA,SAAAM,CAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IACA,UAAA;AAAA,MAIA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IACA,OAAA;AAAA,MAIA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,EACA;AAAA,EACA,OAAA,CAAA,OAAA;AAAA,EACA,MAAAC,GAAA,EAAA,OAAAC,GAAA,OAAAC,GAAA,MAAAC,EAAA,GAAA;AAEA,UAAAC,IAAAC,EAAAH,CAAA,GAEAI,IAAAC,EAAAP,EAAA,KAAA,GACAQ,IAAAC,EAAA,oBAAA,GAEAC,IAAAC,EAAAT,CAAA,EAAA,SAAA,GACAU,IAAAD,EAAAT,CAAA,EAAA,aAAA;AAEA,IAAAW,EAAA,gBAAAX,EAAA,SAAAA,EAAA,WAAA;AAEA,UAAAY,IAAAC,EAAA,MAAAX,EAAA,SAAA,IAAAO,EAAAT,CAAA,EAAA,SAAA,IAAA,IAAA,GAEAc,IAAAT,EAAAN,EAAA,YAAA,CAAA,GACA,EAAA,WAAAgB,EAAA,IAAAC,EAAAlB,CAAA,GACAmB,IAAAC,EAAA;AAAA,MAAA,WAAAJ,EAAA;AAAA;AAAA,MACA,OAAAC;AAAA,MAEA,iBAAAH;AAAA,IACA,CAAA,GAGAO,IAAAN,EAAA,MAAAP,KAAA,IAAA,GAEAc,IAAAP,EAAA,OAAA;AAAA,MAAA,CAAA,aAAAxB,EAAA,WAAA,EAAA,GAAAS,EAAA,kBAAAP,EAAA;AAAA,MAEA,sBAAAO,EAAA;AAAA,MACA,sBAAAA,EAAA;AAAA,IACA,EAAA,GAGAuB,IAAA,CAAAC,MAAA;AACA,MAAArB,EAAA,SAAAqB,EAAA,OAAA,OAAA;AAAA,IAAA,GAIAC,IAAA,CAAAD,MAAA;AACA,MAAAxB,EAAA,YACAwB,EAAA,eAAA;AAAA,IACA;AAGA,WAAAE;AAAA,MAAA,MAAA1B,EAAA;AAAA,MACA,CAAA2B,MAAA;AAEA,QAAArB,EAAA,QAAAqB;AAAA,MAAA;AAAA,IACA,GAGA;AAAA;AAAA,MAAA,aAAArB;AAAA;AAAA,MAEA,mBAAAa;AAAA,MAGA,qBAAAE;AAAA,MACA,kBAAAX;AAAA,MACA,sBAAAE;AAAA,MACA,oBAAAU;AAAA,MACA,eAAAd;AAAA;AAAA,MACA,SAAAJ;AAAA,MAGA,UAAAmB;AAAA,MACA,SAAAE;AAAA,IACA;AAAA,EACA;AAEA,CAAA;;;;;;;;;;;;;;;;;;;;"}
@@ -1,335 +0,0 @@
1
- import { defineComponent as h, ref as d, computed as a, isRef as P, watch as g, nextTick as $ } from "vue";
2
- import { B as I } from "./menu.2TwUMlA9.js";
3
- import { a as T, B as w } from "./popover.B8YH92W8.js";
4
- import { B as k } from "./typography.Bjtu3Gca.js";
5
- import { B as N } from "./image.B3uqhFjl.js";
6
- import { u as A } from "./i18n.BQkEbtPM.js";
7
- import { R as D } from "./refresh.BKI9WwKh.js";
8
- import { n as f } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
9
- import { P as b, h as j, o as L } from "./popper-container.Bt02N3o1.js";
10
- import { B as M } from "./button-actions.Bg9ey0p6.js";
11
- import "../assets/tutorial.css";
12
- var E;
13
- const V = /* @__PURE__ */ h({
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: (E = b.props) == null ? void 0 : E.targetElement.type,
22
- required: !0
23
- }
24
- },
25
- setup(n) {
26
- const e = d({
27
- width: "0",
28
- height: "0",
29
- borderRadius: "0"
30
- });
31
- function s(l) {
32
- try {
33
- const i = parseFloat(getComputedStyle(l).getPropertyValue("border-radius"));
34
- return Number.isNaN(i) ? "" : `${i + 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: i, elements: r }) => {
48
- const p = r.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: i };
50
- }
51
- }
52
- ];
53
- return { __sfc: !0, BORDER_OFFSET: 2, computedStyles: e, getBorderRadius: s, middleware: o, PopperContainer: b };
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
- );
67
- const z = Z.exports;
68
- let B = 0;
69
- const H = {
70
- beforeCreate() {
71
- this.uuid = B.toString(), B += 1;
72
- }
73
- };
74
- var U = function() {
75
- var t = this, e = t._self._c;
76
- 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" } })])])]);
77
- }, W = [], X = /* @__PURE__ */ f(
78
- H,
79
- U,
80
- W,
81
- !1,
82
- null,
83
- null
84
- );
85
- const G = X.exports, J = {
86
- "en-US": {
87
- finish: "Finish",
88
- next: "Next",
89
- ok: "OK",
90
- restartTour: "Restart tour",
91
- skipTour: "Skip tour",
92
- startTour: "Start tour",
93
- stepsOfTotal: "{step} of {totalSteps}"
94
- }
95
- }, Q = {
96
- i18n: { messages: J }
97
- }, Y = /* @__PURE__ */ h({
98
- ...Q,
99
- __name: "tutorial-popover",
100
- props: {
101
- /**
102
- * Optional configuration for the secondary action.
103
- * In tour tutorials, this is ignored for the introductory step.
104
- */
105
- action: {
106
- type: Object,
107
- default: null
108
- },
109
- /**
110
- * Indicates whether this popover is the active step (and should be visible).
111
- */
112
- active: {
113
- type: Boolean,
114
- default: !1
115
- },
116
- /**
117
- * Optional illustration to display at the top of the popover.
118
- */
119
- image: {
120
- type: Object,
121
- default: null
122
- },
123
- /**
124
- * Popover's position relative to the target element.
125
- * Possible values are:
126
- * 'auto', 'auto-start', 'auto-end',
127
- * 'top', 'top-start', 'top-end'
128
- * 'right', 'right-start', 'right-end'
129
- * 'bottom', 'bottom-start', 'bottom-end'
130
- * 'left', 'left-start', 'left-end'
131
- */
132
- position: {
133
- type: String,
134
- default: T.BOTTOM_START,
135
- validator: (n) => Object.values(T).includes(n)
136
- },
137
- /**
138
- * Options to control the scroll into view behavior.
139
- * Takes the same options as the `scrollIntoView` function
140
- * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView}
141
- */
142
- scrollOptions: {
143
- type: [Boolean, Object],
144
- default: null
145
- },
146
- /**
147
- * Indicates whether this popover is a single tutorial or a tour.
148
- */
149
- single: {
150
- type: Boolean,
151
- default: !1
152
- },
153
- /**
154
- * The tutorial step number.
155
- * In tour tutorials, `0` is the introductory step, and is displayed next
156
- * to the title.
157
- */
158
- step: {
159
- type: Number,
160
- default: null
161
- },
162
- /**
163
- * Tutorial popover's target element.
164
- * The popover will position itself relatively to target element.
165
- */
166
- targetElement: {
167
- type: [Element, Object],
168
- required: !0
169
- },
170
- /**
171
- * The tutorial step title.
172
- */
173
- title: {
174
- type: String,
175
- required: !0
176
- },
177
- /**
178
- * Total count of steps.
179
- * In tour tutorials, this does not include the introductory step, and is
180
- * displayed next to the title.
181
- */
182
- totalSteps: {
183
- type: Number,
184
- default: null
185
- }
186
- },
187
- emits: ["next", "finish", "restart"],
188
- setup(n, { emit: t }) {
189
- const e = n, s = { behavior: "smooth" }, { t: o } = A(), l = a(() => ({
190
- title: o("skipTour"),
191
- event: () => t("finish")
192
- })), i = a(() => ({
193
- title: o("startTour"),
194
- event: () => t("next")
195
- })), r = a(() => ({
196
- title: o("next"),
197
- event: () => t("next")
198
- })), p = a(() => ({
199
- title: o("finish"),
200
- event: () => t("finish")
201
- })), C = a(() => ({
202
- title: o("ok"),
203
- event: () => t("finish")
204
- })), y = d(!1), O = d(!1), v = a(() => {
205
- var u;
206
- return P(e.targetElement) ? ((u = e.targetElement.value) == null ? void 0 : u.$el) || e.targetElement.value : e.targetElement.$el || e.targetElement;
207
- }), _ = a(() => e.step === 0), m = a(() => e.step === e.totalSteps), x = a(() => !_.value), R = a(() => [
208
- {
209
- text: o("restartTour"),
210
- handler: () => t("restart"),
211
- icon: D
212
- },
213
- ...m.value ? [] : [
214
- {
215
- text: "Skip tour",
216
- handler: () => t("finish"),
217
- icon: G
218
- }
219
- ]
220
- ]), F = a(() => {
221
- let u;
222
- _.value ? u = e.single ? C.value : i.value : m.value ? u = p.value : u = r.value;
223
- const c = [u];
224
- return _.value && !e.single ? c.push(l.value) : e.action && c.push(e.action), c;
225
- });
226
- return g(
227
- () => e.active,
228
- async (u) => {
229
- var c, S;
230
- u && ((c = v.value) != null && c.scrollIntoView) && ((S = v.value) == null || S.scrollIntoView(
231
- e.scrollOptions != null ? e.scrollOptions : s
232
- ), await $()), y.value = u, O.value = u;
233
- },
234
- { immediate: !0 }
235
- ), { __sfc: !0, DEFAULT_SCROLL_OPTIONS: s, props: e, t: o, emit: t, ACTION_SKIP: l, ACTION_START: i, ACTION_NEXT: r, ACTION_FINISH: p, ACTION_OK: C, isPopoverOpen: y, isIndicatorVisible: O, targetElement: v, isFirstStep: _, isLastStep: m, showSteps: x, menuData: R, computedActions: F, BentoMenu: I, BentoPopover: w, BentoTypography: k, BentoButtonActions: M, BentoImage: N, TutorialIndicator: z };
236
- }
237
- });
238
- var tt = function() {
239
- var t = this, e = t._self._c, s = t._self._setupProxy;
240
- 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) {
241
- return !o.type.indexOf("key") && t._k(o.keyCode, "esc", 27, o.key, ["Esc", "Escape"]) ? null : s.emit("finish");
242
- } }, scopedSlots: t._u([t.image ? { key: "image", fn: function() {
243
- return [e(s.BentoImage, t._b({ staticClass: "b-tutorial-popover__image", attrs: { "aspect-ratio": "landscape" } }, "bento-image", t.image, !1))];
244
- }, 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();
245
- }, et = [], st = /* @__PURE__ */ f(
246
- Y,
247
- tt,
248
- et,
249
- !1,
250
- null,
251
- "ac66e07d"
252
- );
253
- const ot = st.exports, rt = {}, at = /* @__PURE__ */ h({
254
- ...rt,
255
- __name: "tutorial",
256
- props: {
257
- /**
258
- * The current step index. If provided, will start the tutorial in that step.
259
- */
260
- index: {
261
- type: Number,
262
- default: null
263
- },
264
- /**
265
- * The steps configuration for the tutorial.
266
- *
267
- */
268
- steps: {
269
- type: Array,
270
- required: !0,
271
- validator: (n) => n.length > 0
272
- },
273
- /**
274
- * Options to control the scroll into view behavior.
275
- * Takes the same options as the `scrollIntoView` function
276
- * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView}
277
- */
278
- scrollOptions: {
279
- type: [Boolean, Object],
280
- default: null
281
- }
282
- },
283
- emits: ["update:index"],
284
- setup(n, { emit: t }) {
285
- const e = n, s = d(e.index || 0), o = a(() => e.steps.length - 1), l = a(() => o.value === 0);
286
- function i(r, p) {
287
- return {
288
- // Visual
289
- targetElement: r.target,
290
- image: r.image,
291
- title: r.title,
292
- step: p,
293
- totalSteps: o.value,
294
- action: r.action,
295
- scrollOptions: e.scrollOptions,
296
- // Config
297
- active: p === s.value,
298
- single: l.value,
299
- position: r.position
300
- };
301
- }
302
- return g(s, (r) => {
303
- t("update:index", r);
304
- }), g(
305
- () => e.index,
306
- (r) => {
307
- r >= -1 && r <= o.value && (s.value = r);
308
- }
309
- ), { __sfc: !0, props: e, emit: t, currentStep: s, totalSteps: o, isSingleTutorial: l, getPopoverProps: i, TutorialPopover: ot };
310
- }
311
- });
312
- var nt = function() {
313
- var t = this, e = t._self._c, s = t._self._setupProxy;
314
- return e("div", { staticClass: "b-tutorial" }, t._l(t.steps, function(o, l) {
315
- return e(s.TutorialPopover, t._b({ key: o.title, on: { finish: function(i) {
316
- s.currentStep = -1;
317
- }, next: function(i) {
318
- s.currentStep += 1;
319
- }, restart: function(i) {
320
- s.currentStep = 0;
321
- } } }, "tutorial-popover", s.getPopoverProps(o, l), !1), [t._v(" " + t._s(o.description) + " ")]);
322
- }), 1);
323
- }, it = [], lt = /* @__PURE__ */ f(
324
- at,
325
- nt,
326
- it,
327
- !1,
328
- null,
329
- null
330
- );
331
- const Ct = lt.exports;
332
- export {
333
- Ct as t
334
- };
335
- //# sourceMappingURL=tutorial.DMm12L0S.js.map