@adyen/bento-vue2 1.27.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 (563) hide show
  1. package/dist/@types/components.d.ts +4 -0
  2. package/dist/@types/index.d.ts +403 -187
  3. package/dist/accordion.js +3 -101
  4. package/dist/accordion.js.map +1 -1
  5. package/dist/action-bar.js +2 -146
  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/{index9.css → accordion-item.css} +1 -1
  10. package/dist/assets/{index11.css → action-bar.css} +1 -1
  11. package/dist/assets/base-modal.css +1 -1
  12. package/dist/assets/button.css +1 -1
  13. package/dist/assets/{index4.css → card.css} +1 -1
  14. package/dist/assets/checkbox-input.css +1 -1
  15. package/dist/assets/{index47.css → dashboard-section.css} +1 -1
  16. package/dist/assets/dashed-underline.css +1 -0
  17. package/dist/assets/{index49.css → data-grid-template.css} +1 -1
  18. package/dist/assets/data-grid.css +1 -0
  19. package/dist/assets/dialog-page.css +1 -1
  20. package/dist/assets/dropdown-default-textbox.css +1 -1
  21. package/dist/assets/dropdown.css +1 -1
  22. package/dist/assets/filter-bar.css +1 -0
  23. package/dist/assets/listbox-option-tag.css +1 -1
  24. package/dist/assets/{index38.css → menu.css} +1 -1
  25. package/dist/assets/{index24.css → modal-fullscreen.css} +1 -1
  26. package/dist/assets/{index33.css → popover.css} +1 -1
  27. package/dist/assets/radio-input.css +1 -1
  28. package/dist/assets/segmented-control.css +1 -0
  29. package/dist/assets/selection-card-group.css +1 -0
  30. package/dist/assets/{index36.css → sidepanel.css} +1 -1
  31. package/dist/assets/status.css +1 -0
  32. package/dist/assets/toggle.css +1 -0
  33. package/dist/assets/tutorial.css +1 -0
  34. package/dist/avatar-image.js +1 -1
  35. package/dist/badge.js +22 -24
  36. package/dist/badge.js.map +1 -1
  37. package/dist/button.js +14 -94
  38. package/dist/button.js.map +1 -1
  39. package/dist/card.js +4 -114
  40. package/dist/card.js.map +1 -1
  41. package/dist/checkbox.js +8 -155
  42. package/dist/checkbox.js.map +1 -1
  43. package/dist/chunks/1-generic-use.CZhwP2Yc.js +5 -0
  44. package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +1 -0
  45. package/dist/chunks/1-generic-use.R6x8PEGA.js +5 -0
  46. package/dist/chunks/1-generic-use.R6x8PEGA.js.map +1 -0
  47. package/dist/chunks/2-generic-use.CNKjB4B7.js +5 -0
  48. package/dist/chunks/2-generic-use.CNKjB4B7.js.map +1 -0
  49. package/dist/chunks/2-generic-use.w0fUhovx.js +5 -0
  50. package/dist/chunks/2-generic-use.w0fUhovx.js.map +1 -0
  51. package/dist/chunks/3-generic-use.BLEzR04g.js +5 -0
  52. package/dist/chunks/3-generic-use.BLEzR04g.js.map +1 -0
  53. package/dist/chunks/3-generic-use.D3NFHgI4.js +5 -0
  54. package/dist/chunks/3-generic-use.D3NFHgI4.js.map +1 -0
  55. package/dist/chunks/4-generic-use.CULEpvgj.js +5 -0
  56. package/dist/chunks/4-generic-use.CULEpvgj.js.map +1 -0
  57. package/dist/chunks/4-generic-use.D82y3n39.js +5 -0
  58. package/dist/chunks/4-generic-use.D82y3n39.js.map +1 -0
  59. package/dist/chunks/_plugin-vue2_normalizer.CeySl7Fu.js +11 -0
  60. package/dist/chunks/_plugin-vue2_normalizer.CeySl7Fu.js.map +1 -0
  61. package/dist/chunks/accordion-item.DmnrjNzw.js +100 -0
  62. package/dist/chunks/accordion-item.DmnrjNzw.js.map +1 -0
  63. package/dist/chunks/action-bar.Bebh6PHI.js +147 -0
  64. package/dist/chunks/action-bar.Bebh6PHI.js.map +1 -0
  65. package/dist/chunks/adding-payment-methods.BJZLPxtM.js +5 -0
  66. package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +1 -0
  67. package/dist/chunks/adding-payment-methods.Dle8zt43.js +5 -0
  68. package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +1 -0
  69. package/dist/chunks/adyen-giving.Ffw_DlJK.js +5 -0
  70. package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +1 -0
  71. package/dist/chunks/adyen-giving.LiKHj_jY.js +5 -0
  72. package/dist/chunks/adyen-giving.LiKHj_jY.js.map +1 -0
  73. package/dist/chunks/alert.CJyTM4Az.js +96 -0
  74. package/dist/chunks/alert.CJyTM4Az.js.map +1 -0
  75. package/dist/chunks/{aria-label.ac9651a5.js → aria-label.CaUURpnB.js} +1 -1
  76. package/dist/chunks/{aria-label.ac9651a5.js.map → aria-label.CaUURpnB.js.map} +1 -1
  77. package/dist/chunks/{index.ccc7e8d7.js → avatar-image.DhlR-7Yg.js} +22 -24
  78. package/dist/chunks/avatar-image.DhlR-7Yg.js.map +1 -0
  79. package/dist/chunks/base-button.DER7_IsF.js +86 -0
  80. package/dist/chunks/{base-button.852204dc.js.map → base-button.DER7_IsF.js.map} +1 -1
  81. package/dist/chunks/{base-modal.4fb7528b.js → base-modal.C5I7bR0d.js} +42 -46
  82. package/dist/chunks/{base-modal.4fb7528b.js.map → base-modal.C5I7bR0d.js.map} +1 -1
  83. package/dist/chunks/{base-modal.keys.b08a6bdf.js → base-modal.keys.C2PQXcE2.js} +1 -1
  84. package/dist/chunks/{base-modal.keys.b08a6bdf.js.map → base-modal.keys.C2PQXcE2.js.map} +1 -1
  85. package/dist/chunks/{button-actions-with-menu.bf968959.js → button-actions-with-menu.f3yuLK-L.js} +25 -27
  86. package/dist/chunks/{button-actions-with-menu.bf968959.js.map → button-actions-with-menu.f3yuLK-L.js.map} +1 -1
  87. package/dist/chunks/{button-actions.87e589e3.js → button-actions.Bg9ey0p6.js} +29 -31
  88. package/dist/chunks/{button-actions.87e589e3.js.map → button-actions.Bg9ey0p6.js.map} +1 -1
  89. package/dist/chunks/{button.cb90b55c.js → button.DhAUh5JA.js} +22 -24
  90. package/dist/chunks/{button.cb90b55c.js.map → button.DhAUh5JA.js.map} +1 -1
  91. package/dist/chunks/{calendar.f02e0a5a.js → calendar.B69z8gjb.js} +287 -332
  92. package/dist/chunks/{calendar.f02e0a5a.js.map → calendar.B69z8gjb.js.map} +1 -1
  93. package/dist/chunks/card.70Xvba2C.js +115 -0
  94. package/dist/chunks/card.70Xvba2C.js.map +1 -0
  95. package/dist/chunks/checkbox-group.B-KdeRXC.js +152 -0
  96. package/dist/chunks/checkbox-group.B-KdeRXC.js.map +1 -0
  97. package/dist/chunks/{checkbox-input.1c3cc8ed.js → checkbox-input.DwDwI2BD.js} +27 -30
  98. package/dist/chunks/{checkbox-input.1c3cc8ed.js.map → checkbox-input.DwDwI2BD.js.map} +1 -1
  99. package/dist/chunks/{checkbox.9f9c978a.js → checkbox.Bi2RDBEZ.js} +21 -23
  100. package/dist/chunks/{checkbox.9f9c978a.js.map → checkbox.Bi2RDBEZ.js.map} +1 -1
  101. package/dist/chunks/checkmark-circle-fill.DVl6QSwm.js +24 -0
  102. package/dist/chunks/{checkmark-circle-fill.345311d2.js.map → checkmark-circle-fill.DVl6QSwm.js.map} +1 -1
  103. package/dist/chunks/{checkmark-small.520f01b1.js → checkmark-small.BtF8b2gE.js} +6 -8
  104. package/dist/chunks/{checkmark-small.520f01b1.js.map → checkmark-small.BtF8b2gE.js.map} +1 -1
  105. package/dist/chunks/{chevron-left.5edf02ac.js → chevron-left.CtnrsqUy.js} +13 -17
  106. package/dist/chunks/{chevron-left.5edf02ac.js.map → chevron-left.CtnrsqUy.js.map} +1 -1
  107. package/dist/chunks/{chevron-up.81185563.js → chevron-up.B2uWhZf7.js} +14 -18
  108. package/dist/chunks/{chevron-up.81185563.js.map → chevron-up.B2uWhZf7.js.map} +1 -1
  109. package/dist/chunks/click-outside.DABh6NLr.js +23 -0
  110. package/dist/chunks/click-outside.DABh6NLr.js.map +1 -0
  111. package/dist/chunks/code-snippet.C4IbjAhH.js +968 -0
  112. package/dist/chunks/code-snippet.C4IbjAhH.js.map +1 -0
  113. package/dist/chunks/{controls-group.121a307d.js → controls-group.cSRFiEVO.js} +17 -19
  114. package/dist/chunks/{controls-group.121a307d.js.map → controls-group.cSRFiEVO.js.map} +1 -1
  115. package/dist/chunks/{copy.6808b2dc.js → copy.BtFWFG3q.js} +15 -19
  116. package/dist/chunks/{copy.6808b2dc.js.map → copy.BtFWFG3q.js.map} +1 -1
  117. package/dist/chunks/country.KayLT0zy.js +93 -0
  118. package/dist/chunks/country.KayLT0zy.js.map +1 -0
  119. package/dist/chunks/{country.types.002caff2.js → country.types.Br0AjxGy.js} +5 -5
  120. package/dist/chunks/{country.types.002caff2.js.map → country.types.Br0AjxGy.js.map} +1 -1
  121. package/dist/chunks/{cross-circle-fill.27580c4b.js → cross-circle-fill.CnYH4R_h.js} +7 -9
  122. package/dist/chunks/{cross-circle-fill.27580c4b.js.map → cross-circle-fill.CnYH4R_h.js.map} +1 -1
  123. package/dist/chunks/{cross-small.e851e0de.js → cross-small.BLUwtRB-.js} +9 -11
  124. package/dist/chunks/{cross-small.e851e0de.js.map → cross-small.BLUwtRB-.js.map} +1 -1
  125. package/dist/chunks/{cross.04678d81.js → cross.CsUPDmaA.js} +9 -11
  126. package/dist/chunks/{cross.04678d81.js.map → cross.CsUPDmaA.js.map} +1 -1
  127. package/dist/chunks/currency.H7n7RQiX.js +113 -0
  128. package/dist/chunks/currency.H7n7RQiX.js.map +1 -0
  129. package/dist/chunks/dashboard-section.BcH-_en7.js +105 -0
  130. package/dist/chunks/dashboard-section.BcH-_en7.js.map +1 -0
  131. package/dist/chunks/dashed-underline.ChUlcFJR.js +59 -0
  132. package/dist/chunks/dashed-underline.ChUlcFJR.js.map +1 -0
  133. package/dist/chunks/data-grid-template.DqG5bNeD.js +66 -0
  134. package/dist/chunks/data-grid-template.DqG5bNeD.js.map +1 -0
  135. package/dist/chunks/{data-grid-template.keys.a819a991.js → data-grid-template.keys.2_AkxuNT.js} +1 -1
  136. package/dist/chunks/{data-grid-template.keys.a819a991.js.map → data-grid-template.keys.2_AkxuNT.js.map} +1 -1
  137. package/dist/chunks/data-grid.CvHAdmvs.js +2022 -0
  138. package/dist/chunks/data-grid.CvHAdmvs.js.map +1 -0
  139. package/dist/chunks/{date-input.9186a0bf.js → date-input.BqBdAO1E.js} +1 -1
  140. package/dist/chunks/{date-input.9186a0bf.js.map → date-input.BqBdAO1E.js.map} +1 -1
  141. package/dist/chunks/date-picker.ByP2Wpo0.js +196 -0
  142. package/dist/chunks/date-picker.ByP2Wpo0.js.map +1 -0
  143. package/dist/chunks/{index.854d6498.js → date-range-picker.DrnklTJ-.js} +113 -117
  144. package/dist/chunks/date-range-picker.DrnklTJ-.js.map +1 -0
  145. package/dist/chunks/{index.614a5138.js → date.DKjxxR6P.js} +44 -51
  146. package/dist/chunks/date.DKjxxR6P.js.map +1 -0
  147. package/dist/chunks/{debounce.b5ef6acf.js → debounce.DUTu11PS.js} +1 -1
  148. package/dist/chunks/{debounce.b5ef6acf.js.map → debounce.DUTu11PS.js.map} +1 -1
  149. package/dist/chunks/{dialog-page.7fd7d006.js → dialog-page.DAh0M4mT.js} +20 -24
  150. package/dist/chunks/{dialog-page.7fd7d006.js.map → dialog-page.DAh0M4mT.js.map} +1 -1
  151. package/dist/chunks/divider.BZfeYmB9.js +30 -0
  152. package/dist/chunks/divider.BZfeYmB9.js.map +1 -0
  153. package/dist/chunks/{dropdown-default-textbox.d0f17d96.js → dropdown-default-textbox.CKOkl_Qa.js} +30 -34
  154. package/dist/chunks/{dropdown-default-textbox.d0f17d96.js.map → dropdown-default-textbox.CKOkl_Qa.js.map} +1 -1
  155. package/dist/chunks/dropdown-tag.DCMKQy-E.js +214 -0
  156. package/dist/chunks/dropdown-tag.DCMKQy-E.js.map +1 -0
  157. package/dist/chunks/{dropdown.a8037bca.js → dropdown.yhhQCKve.js} +230 -240
  158. package/dist/chunks/dropdown.yhhQCKve.js.map +1 -0
  159. package/dist/chunks/empty-state.BqVOj4v1.js +151 -0
  160. package/dist/chunks/empty-state.BqVOj4v1.js.map +1 -0
  161. package/dist/chunks/error-message.BSxUoE3_.js +107 -0
  162. package/dist/chunks/{error-message.bdcc1020.js.map → error-message.BSxUoE3_.js.map} +1 -1
  163. package/dist/chunks/events.CMzGybJJ.js +47 -0
  164. package/dist/chunks/{events.f14a214b.js.map → events.CMzGybJJ.js.map} +1 -1
  165. package/dist/chunks/filter-bar.AhsOPMZ1.js +2119 -0
  166. package/dist/chunks/filter-bar.AhsOPMZ1.js.map +1 -0
  167. package/dist/chunks/{fixed-scroller.82ef6187.js → fixed-scroller.Bq1AgPnw.js} +18 -20
  168. package/dist/chunks/{fixed-scroller.82ef6187.js.map → fixed-scroller.Bq1AgPnw.js.map} +1 -1
  169. package/dist/chunks/{index.1deef79e.js → focus-trap.DSkLNO_i.js} +35 -37
  170. package/dist/chunks/focus-trap.DSkLNO_i.js.map +1 -0
  171. package/dist/chunks/{footer-actions.58d14a16.js → footer-actions.DqMRmlV_.js} +11 -13
  172. package/dist/chunks/{footer-actions.58d14a16.js.map → footer-actions.DqMRmlV_.js.map} +1 -1
  173. package/dist/chunks/form-layout-title.BzNU0B72.js +187 -0
  174. package/dist/chunks/form-layout-title.BzNU0B72.js.map +1 -0
  175. package/dist/chunks/{form-layout.types.a7a1438d.js → form-layout.types.D3EKzbE7.js} +1 -1
  176. package/dist/chunks/{form-layout.types.a7a1438d.js.map → form-layout.types.D3EKzbE7.js.map} +1 -1
  177. package/dist/chunks/{get-slot-text.99c3d860.js → get-slot-text.Cgn-E48s.js} +2 -2
  178. package/dist/chunks/{get-slot-text.99c3d860.js.map → get-slot-text.Cgn-E48s.js.map} +1 -1
  179. package/dist/chunks/{grid-layout.e0025286.js → grid-layout.HvTAa4to.js} +11 -13
  180. package/dist/chunks/{grid-layout.e0025286.js.map → grid-layout.HvTAa4to.js.map} +1 -1
  181. package/dist/chunks/header.DmKHCmXh.js +245 -0
  182. package/dist/chunks/header.DmKHCmXh.js.map +1 -0
  183. package/dist/chunks/{i18n.eb5b985b.js → i18n.BQkEbtPM.js} +2 -2
  184. package/dist/chunks/{i18n.eb5b985b.js.map → i18n.BQkEbtPM.js.map} +1 -1
  185. package/dist/chunks/image.B3uqhFjl.js +82 -0
  186. package/dist/chunks/image.B3uqhFjl.js.map +1 -0
  187. package/dist/chunks/{index.fdf12170.js → index.B_EJflcs.js} +2 -2
  188. package/dist/chunks/{index.fdf12170.js.map → index.B_EJflcs.js.map} +1 -1
  189. package/dist/chunks/{index.f55fdc32.js → index.B_UZQ6qF.js} +209 -243
  190. package/dist/chunks/{index.f55fdc32.js.map → index.B_UZQ6qF.js.map} +1 -1
  191. package/dist/chunks/{index.4c062058.js → index.Cl4_42j5.js} +1 -1
  192. package/dist/chunks/{index.4c062058.js.map → index.Cl4_42j5.js.map} +1 -1
  193. package/dist/chunks/{index.561786f6.js → index.OCPp3NST.js} +3 -3
  194. package/dist/chunks/{index.561786f6.js.map → index.OCPp3NST.js.map} +1 -1
  195. package/dist/chunks/{index.d80206ed.js → index.Z84QE0E2.js} +2 -2
  196. package/dist/chunks/{index.d80206ed.js.map → index.Z84QE0E2.js.map} +1 -1
  197. package/dist/chunks/{index.86453263.js → index.xqFSZOAb.js} +2 -2
  198. package/dist/chunks/{index.86453263.js.map → index.xqFSZOAb.js.map} +1 -1
  199. package/dist/chunks/info-icon.CLguYHRt.js +41 -0
  200. package/dist/chunks/info-icon.CLguYHRt.js.map +1 -0
  201. package/dist/chunks/{info.8b6328aa.js → info.CyeBsLgt.js} +9 -11
  202. package/dist/chunks/{info.8b6328aa.js.map → info.CyeBsLgt.js.map} +1 -1
  203. package/dist/chunks/input-field.BnlEPPYr.js +218 -0
  204. package/dist/chunks/input-field.BnlEPPYr.js.map +1 -0
  205. package/dist/chunks/internal-error.BLZodVBE.js +5 -0
  206. package/dist/chunks/internal-error.BLZodVBE.js.map +1 -0
  207. package/dist/chunks/internal-error.BmrwJFpR.js +5 -0
  208. package/dist/chunks/internal-error.BmrwJFpR.js.map +1 -0
  209. package/dist/chunks/{keyboard-navigation.bbc3d15c.js → keyboard-navigation.Clz1jOaA.js} +2 -2
  210. package/dist/chunks/{keyboard-navigation.bbc3d15c.js.map → keyboard-navigation.Clz1jOaA.js.map} +1 -1
  211. package/dist/chunks/{index.bd1d28d0.js → link.DJ1A53gF.js} +20 -24
  212. package/dist/chunks/link.DJ1A53gF.js.map +1 -0
  213. package/dist/chunks/listbox-option-tag.BDjsYOE1.js +75 -0
  214. package/dist/chunks/listbox-option-tag.BDjsYOE1.js.map +1 -0
  215. package/dist/chunks/{loading-button.692dbdc8.js → loading-button.CoF1IhEU.js} +32 -34
  216. package/dist/chunks/{loading-button.692dbdc8.js.map → loading-button.CoF1IhEU.js.map} +1 -1
  217. package/dist/chunks/loading-indicator.DXc7I1Lm.js +48 -0
  218. package/dist/chunks/loading-indicator.DXc7I1Lm.js.map +1 -0
  219. package/dist/chunks/{index.a48e7f99.js → menu.2TwUMlA9.js} +82 -94
  220. package/dist/chunks/menu.2TwUMlA9.js.map +1 -0
  221. package/dist/chunks/modal-fullscreen.BB_8EMNo.js +196 -0
  222. package/dist/chunks/modal-fullscreen.BB_8EMNo.js.map +1 -0
  223. package/dist/chunks/{modal-fullscreen.keys.b9f31632.js → modal-fullscreen.keys.CMba3hYp.js} +1 -1
  224. package/dist/chunks/{modal-fullscreen.keys.b9f31632.js.map → modal-fullscreen.keys.CMba3hYp.js.map} +1 -1
  225. package/dist/chunks/modal.DLwvcaRx.js +439 -0
  226. package/dist/chunks/modal.DLwvcaRx.js.map +1 -0
  227. package/dist/chunks/no-results-found.Bg_ZcEid.js +5 -0
  228. package/dist/chunks/no-results-found.Bg_ZcEid.js.map +1 -0
  229. package/dist/chunks/no-results-found.BqvYsBR6.js +5 -0
  230. package/dist/chunks/no-results-found.BqvYsBR6.js.map +1 -0
  231. package/dist/chunks/notifications-cleared.BMZk37uf.js +5 -0
  232. package/dist/chunks/notifications-cleared.BMZk37uf.js.map +1 -0
  233. package/dist/chunks/notifications-cleared.C7W9ZXY7.js +5 -0
  234. package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +1 -0
  235. package/dist/chunks/{on-click-outside.3e0c3e2a.js → on-click-outside.CcNG5w7_.js} +1 -1
  236. package/dist/chunks/{on-click-outside.3e0c3e2a.js.map → on-click-outside.CcNG5w7_.js.map} +1 -1
  237. package/dist/chunks/page-not-found.COJLPVaU.js +5 -0
  238. package/dist/chunks/page-not-found.COJLPVaU.js.map +1 -0
  239. package/dist/chunks/page-not-found.DWW6W-PZ.js +5 -0
  240. package/dist/chunks/page-not-found.DWW6W-PZ.js.map +1 -0
  241. package/dist/chunks/pagination.BXjbVe4Z.js +494 -0
  242. package/dist/chunks/pagination.BXjbVe4Z.js.map +1 -0
  243. package/dist/chunks/{payment-method.c55dd352.js → payment-method.D9Qx-s4V.js} +19 -21
  244. package/dist/chunks/{payment-method.c55dd352.js.map → payment-method.D9Qx-s4V.js.map} +1 -1
  245. package/dist/chunks/payment-method.types.CJKfZQN5.js +5 -0
  246. package/dist/chunks/payment-method.types.CJKfZQN5.js.map +1 -0
  247. package/dist/chunks/planned-maintenance.C61sWB9h.js +5 -0
  248. package/dist/chunks/planned-maintenance.C61sWB9h.js.map +1 -0
  249. package/dist/chunks/planned-maintenance.jmWYTdet.js +5 -0
  250. package/dist/chunks/planned-maintenance.jmWYTdet.js.map +1 -0
  251. package/dist/chunks/{index.0a30d358.js → popover.B8YH92W8.js} +31 -37
  252. package/dist/chunks/popover.B8YH92W8.js.map +1 -0
  253. package/dist/chunks/{index.c8621e8e.js → popper-container.Bt02N3o1.js} +12 -15
  254. package/dist/chunks/popper-container.Bt02N3o1.js.map +1 -0
  255. package/dist/chunks/radio-group.CPbBFTzB.js +211 -0
  256. package/dist/chunks/radio-group.CPbBFTzB.js.map +1 -0
  257. package/dist/chunks/{radio-input.c6550a9c.js → radio-input.BQcC0INR.js} +17 -19
  258. package/dist/chunks/radio-input.BQcC0INR.js.map +1 -0
  259. package/dist/chunks/referrals.BvtT-kQS.js +5 -0
  260. package/dist/chunks/referrals.BvtT-kQS.js.map +1 -0
  261. package/dist/chunks/referrals.aX8WZigH.js +5 -0
  262. package/dist/chunks/referrals.aX8WZigH.js.map +1 -0
  263. package/dist/chunks/{refresh.71a03998.js → refresh.BKI9WwKh.js} +7 -9
  264. package/dist/chunks/{refresh.71a03998.js.map → refresh.BKI9WwKh.js.map} +1 -1
  265. package/dist/chunks/{resize.a041304d.js → resize.Bqks3WUm.js} +1 -1
  266. package/dist/chunks/{resize.a041304d.js.map → resize.Bqks3WUm.js.map} +1 -1
  267. package/dist/chunks/search-bar.CsAgO-t5.js +89 -0
  268. package/dist/chunks/search-bar.CsAgO-t5.js.map +1 -0
  269. package/dist/chunks/{search.471270fe.js → search.CBKhp7zB.js} +10 -12
  270. package/dist/chunks/{search.471270fe.js.map → search.CBKhp7zB.js.map} +1 -1
  271. package/dist/chunks/secondary-nav.CNgpPxUU.js +97 -0
  272. package/dist/chunks/secondary-nav.CNgpPxUU.js.map +1 -0
  273. package/dist/chunks/segmented-control.DGjIC7Ab.js +111 -0
  274. package/dist/chunks/segmented-control.DGjIC7Ab.js.map +1 -0
  275. package/dist/chunks/segmented-control.types.BHRLV8KU.js +5 -0
  276. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -0
  277. package/dist/chunks/selection-card-group.DlOs8BkR.js +247 -0
  278. package/dist/chunks/selection-card-group.DlOs8BkR.js.map +1 -0
  279. package/dist/chunks/sidepanel.BBjm2QvZ.js +187 -0
  280. package/dist/chunks/sidepanel.BBjm2QvZ.js.map +1 -0
  281. package/dist/chunks/{sidepanel.keys.1ed8a57c.js → sidepanel.keys.R0DKQuYx.js} +1 -1
  282. package/dist/chunks/{sidepanel.keys.1ed8a57c.js.map → sidepanel.keys.R0DKQuYx.js.map} +1 -1
  283. package/dist/chunks/status.types.BhbOYpZx.js +36 -0
  284. package/dist/chunks/status.types.BhbOYpZx.js.map +1 -0
  285. package/dist/chunks/step.DY8Txb6a.js +234 -0
  286. package/dist/chunks/step.DY8Txb6a.js.map +1 -0
  287. package/dist/chunks/{index.3c69be27.js → structured-list-item.C9NTVDvT.js} +18 -22
  288. package/dist/chunks/structured-list-item.C9NTVDvT.js.map +1 -0
  289. package/dist/chunks/success.DhioLvPD.js +5 -0
  290. package/dist/chunks/success.DhioLvPD.js.map +1 -0
  291. package/dist/chunks/success.nNwxJRBS.js +5 -0
  292. package/dist/chunks/success.nNwxJRBS.js.map +1 -0
  293. package/dist/chunks/summary-grid-item-custom.CJpDnoPw.js +573 -0
  294. package/dist/chunks/summary-grid-item-custom.CJpDnoPw.js.map +1 -0
  295. package/dist/chunks/{summary-grid.keys.1d1028c2.js → summary-grid.keys.BBbFrFGF.js} +1 -1
  296. package/dist/chunks/{summary-grid.keys.1d1028c2.js.map → summary-grid.keys.BBbFrFGF.js.map} +1 -1
  297. package/dist/chunks/tabs.CE65f3E_.js +140 -0
  298. package/dist/chunks/tabs.CE65f3E_.js.map +1 -0
  299. package/dist/chunks/{tabs.keys.358742f2.js → tabs.keys.Bc2pSKRw.js} +1 -1
  300. package/dist/chunks/{tabs.keys.358742f2.js.map → tabs.keys.Bc2pSKRw.js.map} +1 -1
  301. package/dist/chunks/tag.bhKrZHTU.js +64 -0
  302. package/dist/chunks/tag.bhKrZHTU.js.map +1 -0
  303. package/dist/chunks/{teleport.84b0f20b.js → teleport.CQKBJZU5.js} +14 -16
  304. package/dist/chunks/{teleport.84b0f20b.js.map → teleport.CQKBJZU5.js.map} +1 -1
  305. package/dist/chunks/textarea.CcKbtQBs.js +208 -0
  306. package/dist/chunks/textarea.CcKbtQBs.js.map +1 -0
  307. package/dist/chunks/timeline-item.ScTrUBKC.js +364 -0
  308. package/dist/chunks/timeline-item.ScTrUBKC.js.map +1 -0
  309. package/dist/chunks/toast.0EYDj8o-.js +165 -0
  310. package/dist/chunks/toast.0EYDj8o-.js.map +1 -0
  311. package/dist/chunks/toggle-button.2U-vbQhk.js +83 -0
  312. package/dist/chunks/toggle-button.2U-vbQhk.js.map +1 -0
  313. package/dist/chunks/toggle.CiOVTWlk.js +121 -0
  314. package/dist/chunks/toggle.CiOVTWlk.js.map +1 -0
  315. package/dist/chunks/{tooltip.efddb5f3.js → tooltip.DR8rbIYw.js} +29 -32
  316. package/dist/chunks/tooltip.DR8rbIYw.js.map +1 -0
  317. package/dist/chunks/tutorial.DMm12L0S.js +335 -0
  318. package/dist/chunks/tutorial.DMm12L0S.js.map +1 -0
  319. package/dist/chunks/{index.e29a6907.js → typography.Bjtu3Gca.js} +30 -32
  320. package/dist/chunks/typography.Bjtu3Gca.js.map +1 -0
  321. package/dist/chunks/{unique-id.a2a2b458.js → unique-id.XFfoKuc2.js} +14 -20
  322. package/dist/chunks/{unique-id.a2a2b458.js.map → unique-id.XFfoKuc2.js.map} +1 -1
  323. package/dist/chunks/upload-files.5wQwbfkp.js +5 -0
  324. package/dist/chunks/upload-files.5wQwbfkp.js.map +1 -0
  325. package/dist/chunks/upload-files.jTQY6y2X.js +5 -0
  326. package/dist/chunks/upload-files.jTQY6y2X.js.map +1 -0
  327. package/dist/chunks/{use-bento-toast-controller.5dac1f3c.js → use-bento-toast-controller.BifdE4ak.js} +4 -4
  328. package/dist/chunks/{use-bento-toast-controller.5dac1f3c.js.map → use-bento-toast-controller.BifdE4ak.js.map} +1 -1
  329. package/dist/chunks/{use-cached-selected-values.98a9ed01.js → use-cached-selected-values.CVLzxvTi.js} +217 -237
  330. package/dist/chunks/{use-cached-selected-values.98a9ed01.js.map → use-cached-selected-values.CVLzxvTi.js.map} +1 -1
  331. package/dist/chunks/{use-click-outside.941d1600.js → use-click-outside.DbjR7Lh4.js} +2 -2
  332. package/dist/chunks/{use-click-outside.941d1600.js.map → use-click-outside.DbjR7Lh4.js.map} +1 -1
  333. package/dist/chunks/{use-country-items.6b7985bf.js → use-country-items.C25TI6tp.js} +4 -4
  334. package/dist/chunks/{use-country-items.6b7985bf.js.map → use-country-items.C25TI6tp.js.map} +1 -1
  335. package/dist/chunks/{use-default-slot-validator.b9bff4c6.js → use-default-slot-validator.BDn0wkYP.js} +2 -2
  336. package/dist/chunks/{use-default-slot-validator.b9bff4c6.js.map → use-default-slot-validator.BDn0wkYP.js.map} +1 -1
  337. package/dist/chunks/{use-expandable-content-height.62fc84e5.js → use-expandable-content-height.GkjjbmPy.js} +1 -1
  338. package/dist/chunks/{use-expandable-content-height.62fc84e5.js.map → use-expandable-content-height.GkjjbmPy.js.map} +1 -1
  339. package/dist/chunks/{use-form-layout-loading.d03e5d48.js → use-form-layout-loading.D3lALhtC.js} +2 -2
  340. package/dist/chunks/{use-form-layout-loading.d03e5d48.js.map → use-form-layout-loading.D3lALhtC.js.map} +1 -1
  341. package/dist/chunks/use-has-slot.C9lQZ6nz.js +6 -0
  342. package/dist/chunks/{use-has-slot.fbeb19ec.js.map → use-has-slot.C9lQZ6nz.js.map} +1 -1
  343. package/dist/chunks/warning-filled.CLKRzGMT.js +24 -0
  344. package/dist/chunks/warning-filled.CLKRzGMT.js.map +1 -0
  345. package/dist/chunks/wrong-environment.BOsyKdRI.js +5 -0
  346. package/dist/chunks/wrong-environment.BOsyKdRI.js.map +1 -0
  347. package/dist/chunks/wrong-environment.BiHTPtbJ.js +5 -0
  348. package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +1 -0
  349. package/dist/click-outside.js +2 -20
  350. package/dist/click-outside.js.map +1 -1
  351. package/dist/code-snippet.js +5 -2052
  352. package/dist/code-snippet.js.map +1 -1
  353. package/dist/country.js +8 -97
  354. package/dist/country.js.map +1 -1
  355. package/dist/currency.js +3 -112
  356. package/dist/currency.js.map +1 -1
  357. package/dist/dashboard-template.js +3 -106
  358. package/dist/dashboard-template.js.map +1 -1
  359. package/dist/dashed-underline.js +5 -0
  360. package/dist/dashed-underline.js.map +1 -0
  361. package/dist/data-grid-template.js +2 -65
  362. package/dist/data-grid-template.js.map +1 -1
  363. package/dist/data-grid.js +8 -1986
  364. package/dist/data-grid.js.map +1 -1
  365. package/dist/date-picker.js +5 -197
  366. package/dist/date-picker.js.map +1 -1
  367. package/dist/date-range-picker.js +2 -2
  368. package/dist/date.js +1 -1
  369. package/dist/divider.js +1 -1
  370. package/dist/dropdown.js +12 -227
  371. package/dist/dropdown.js.map +1 -1
  372. package/dist/empty-state.js +5 -143
  373. package/dist/empty-state.js.map +1 -1
  374. package/dist/filter-bar.js +5 -2156
  375. package/dist/filter-bar.js.map +1 -1
  376. package/dist/focus-trap.js +1 -1
  377. package/dist/form-layout.js +5 -192
  378. package/dist/form-layout.js.map +1 -1
  379. package/dist/header.js +2 -246
  380. package/dist/header.js.map +1 -1
  381. package/dist/image.js +4 -81
  382. package/dist/image.js.map +1 -1
  383. package/dist/index.js +270 -266
  384. package/dist/index.js.map +1 -1
  385. package/dist/info-icon.js +2 -40
  386. package/dist/info-icon.js.map +1 -1
  387. package/dist/input-field.js +7 -217
  388. package/dist/input-field.js.map +1 -1
  389. package/dist/internal.js +15 -15
  390. package/dist/link.js +1 -1
  391. package/dist/loading-indicator.js +3 -47
  392. package/dist/loading-indicator.js.map +1 -1
  393. package/dist/menu.js +1 -1
  394. package/dist/modal-fullscreen.js +3 -197
  395. package/dist/modal-fullscreen.js.map +1 -1
  396. package/dist/modal.js +11 -451
  397. package/dist/modal.js.map +1 -1
  398. package/dist/pagination.js +2 -507
  399. package/dist/pagination.js.map +1 -1
  400. package/dist/payment-method.js +4 -4
  401. package/dist/payment-method.js.map +1 -1
  402. package/dist/popover.js +1 -1
  403. package/dist/popper-container.js +1 -1
  404. package/dist/radio-group.js +6 -213
  405. package/dist/radio-group.js.map +1 -1
  406. package/dist/search-bar.js +6 -90
  407. package/dist/search-bar.js.map +1 -1
  408. package/dist/secondary-nav.js +2 -100
  409. package/dist/secondary-nav.js.map +1 -1
  410. package/dist/segmented-control.js +4 -214
  411. package/dist/segmented-control.js.map +1 -1
  412. package/dist/selection-card.js +4 -248
  413. package/dist/selection-card.js.map +1 -1
  414. package/dist/sidepanel.js +4 -189
  415. package/dist/sidepanel.js.map +1 -1
  416. package/dist/status.js +3 -40
  417. package/dist/status.js.map +1 -1
  418. package/dist/stepper.js +5 -237
  419. package/dist/stepper.js.map +1 -1
  420. package/dist/structured-list.js +1 -1
  421. package/dist/summary-grid.js +9 -584
  422. package/dist/summary-grid.js.map +1 -1
  423. package/dist/tabs.js +3 -141
  424. package/dist/tabs.js.map +1 -1
  425. package/dist/tag.js +3 -63
  426. package/dist/tag.js.map +1 -1
  427. package/dist/textarea.js +2 -209
  428. package/dist/textarea.js.map +1 -1
  429. package/dist/timeline.js +7 -367
  430. package/dist/timeline.js.map +1 -1
  431. package/dist/toast.js +2 -168
  432. package/dist/toast.js.map +1 -1
  433. package/dist/toggle.js +4 -120
  434. package/dist/toggle.js.map +1 -1
  435. package/dist/tutorial.js +2 -340
  436. package/dist/tutorial.js.map +1 -1
  437. package/dist/typography.js +1 -1
  438. package/dist/web-types.json +308 -194
  439. package/package.json +5 -7
  440. package/dist/assets/index15.css +0 -1
  441. package/dist/assets/index32.css +0 -1
  442. package/dist/assets/index34.css +0 -1
  443. package/dist/assets/index35.css +0 -1
  444. package/dist/assets/index45.css +0 -1
  445. package/dist/assets/index48.css +0 -1
  446. package/dist/assets/index6.css +0 -1
  447. package/dist/chunks/1-generic-use.3ea646cd.js +0 -5
  448. package/dist/chunks/1-generic-use.3ea646cd.js.map +0 -1
  449. package/dist/chunks/1-generic-use.ccca5813.js +0 -5
  450. package/dist/chunks/1-generic-use.ccca5813.js.map +0 -1
  451. package/dist/chunks/2-generic-use.443db127.js +0 -5
  452. package/dist/chunks/2-generic-use.443db127.js.map +0 -1
  453. package/dist/chunks/2-generic-use.d69d7c08.js +0 -5
  454. package/dist/chunks/2-generic-use.d69d7c08.js.map +0 -1
  455. package/dist/chunks/3-generic-use.9f74667f.js +0 -5
  456. package/dist/chunks/3-generic-use.9f74667f.js.map +0 -1
  457. package/dist/chunks/3-generic-use.fe7ae2ce.js +0 -5
  458. package/dist/chunks/3-generic-use.fe7ae2ce.js.map +0 -1
  459. package/dist/chunks/4-generic-use.0356f4a1.js +0 -5
  460. package/dist/chunks/4-generic-use.0356f4a1.js.map +0 -1
  461. package/dist/chunks/4-generic-use.cd04bad0.js +0 -5
  462. package/dist/chunks/4-generic-use.cd04bad0.js.map +0 -1
  463. package/dist/chunks/_plugin-vue2_normalizer.71e2aa87.js +0 -33
  464. package/dist/chunks/_plugin-vue2_normalizer.71e2aa87.js.map +0 -1
  465. package/dist/chunks/adding-payment-methods.d570e03e.js +0 -5
  466. package/dist/chunks/adding-payment-methods.d570e03e.js.map +0 -1
  467. package/dist/chunks/adding-payment-methods.e419d6c0.js +0 -5
  468. package/dist/chunks/adding-payment-methods.e419d6c0.js.map +0 -1
  469. package/dist/chunks/adyen-giving.480913b5.js +0 -5
  470. package/dist/chunks/adyen-giving.480913b5.js.map +0 -1
  471. package/dist/chunks/adyen-giving.54ed984c.js +0 -5
  472. package/dist/chunks/adyen-giving.54ed984c.js.map +0 -1
  473. package/dist/chunks/base-button.852204dc.js +0 -88
  474. package/dist/chunks/checkmark-circle-fill.345311d2.js +0 -26
  475. package/dist/chunks/dropdown.a8037bca.js.map +0 -1
  476. package/dist/chunks/error-message.bdcc1020.js +0 -111
  477. package/dist/chunks/events.f14a214b.js +0 -50
  478. package/dist/chunks/index.0a30d358.js.map +0 -1
  479. package/dist/chunks/index.1deef79e.js.map +0 -1
  480. package/dist/chunks/index.3c69be27.js.map +0 -1
  481. package/dist/chunks/index.614a5138.js.map +0 -1
  482. package/dist/chunks/index.854d6498.js.map +0 -1
  483. package/dist/chunks/index.939dd5cf.js +0 -32
  484. package/dist/chunks/index.939dd5cf.js.map +0 -1
  485. package/dist/chunks/index.a48e7f99.js.map +0 -1
  486. package/dist/chunks/index.bd1d28d0.js.map +0 -1
  487. package/dist/chunks/index.c8621e8e.js.map +0 -1
  488. package/dist/chunks/index.ccc7e8d7.js.map +0 -1
  489. package/dist/chunks/index.e29a6907.js.map +0 -1
  490. package/dist/chunks/internal-error.35cbb071.js +0 -5
  491. package/dist/chunks/internal-error.35cbb071.js.map +0 -1
  492. package/dist/chunks/internal-error.9a4823ed.js +0 -5
  493. package/dist/chunks/internal-error.9a4823ed.js.map +0 -1
  494. package/dist/chunks/listbox-option-tag.8708be60.js +0 -107
  495. package/dist/chunks/listbox-option-tag.8708be60.js.map +0 -1
  496. package/dist/chunks/no-results-found.58856d70.js +0 -5
  497. package/dist/chunks/no-results-found.58856d70.js.map +0 -1
  498. package/dist/chunks/no-results-found.cbb12f78.js +0 -5
  499. package/dist/chunks/no-results-found.cbb12f78.js.map +0 -1
  500. package/dist/chunks/notifications-cleared.71025c22.js +0 -5
  501. package/dist/chunks/notifications-cleared.71025c22.js.map +0 -1
  502. package/dist/chunks/notifications-cleared.c4f4bed4.js +0 -5
  503. package/dist/chunks/notifications-cleared.c4f4bed4.js.map +0 -1
  504. package/dist/chunks/page-not-found.a500440d.js +0 -5
  505. package/dist/chunks/page-not-found.a500440d.js.map +0 -1
  506. package/dist/chunks/page-not-found.d1a84ba7.js +0 -5
  507. package/dist/chunks/page-not-found.d1a84ba7.js.map +0 -1
  508. package/dist/chunks/planned-maintenance.7fa5ac16.js +0 -5
  509. package/dist/chunks/planned-maintenance.7fa5ac16.js.map +0 -1
  510. package/dist/chunks/planned-maintenance.cff01aed.js +0 -5
  511. package/dist/chunks/planned-maintenance.cff01aed.js.map +0 -1
  512. package/dist/chunks/radio-input.c6550a9c.js.map +0 -1
  513. package/dist/chunks/referrals.178ce0eb.js +0 -5
  514. package/dist/chunks/referrals.178ce0eb.js.map +0 -1
  515. package/dist/chunks/referrals.599047da.js +0 -5
  516. package/dist/chunks/referrals.599047da.js.map +0 -1
  517. package/dist/chunks/success.41981fe8.js +0 -5
  518. package/dist/chunks/success.41981fe8.js.map +0 -1
  519. package/dist/chunks/success.77fac78b.js +0 -5
  520. package/dist/chunks/success.77fac78b.js.map +0 -1
  521. package/dist/chunks/tooltip.efddb5f3.js.map +0 -1
  522. package/dist/chunks/upload-files.2708eca7.js +0 -5
  523. package/dist/chunks/upload-files.2708eca7.js.map +0 -1
  524. package/dist/chunks/upload-files.b4cd9f8b.js +0 -5
  525. package/dist/chunks/upload-files.b4cd9f8b.js.map +0 -1
  526. package/dist/chunks/use-has-slot.fbeb19ec.js +0 -6
  527. package/dist/chunks/wrong-environment.c73b0bc0.js +0 -5
  528. package/dist/chunks/wrong-environment.c73b0bc0.js.map +0 -1
  529. package/dist/chunks/wrong-environment.f890a237.js +0 -5
  530. package/dist/chunks/wrong-environment.f890a237.js.map +0 -1
  531. /package/dist/assets/{index.css → alert.css} +0 -0
  532. /package/dist/assets/{index2.css → avatar-image.css} +0 -0
  533. /package/dist/assets/{index8.css → badge.css} +0 -0
  534. /package/dist/assets/{index5.css → checkbox-group.css} +0 -0
  535. /package/dist/assets/{index10.css → code-snippet.css} +0 -0
  536. /package/dist/assets/{index7.css → country.css} +0 -0
  537. /package/dist/assets/{index13.css → date-picker.css} +0 -0
  538. /package/dist/assets/{index23.css → date-range-picker.css} +0 -0
  539. /package/dist/assets/{index16.css → divider.css} +0 -0
  540. /package/dist/assets/{index17.css → dropdown-tag.css} +0 -0
  541. /package/dist/assets/{index18.css → empty-state.css} +0 -0
  542. /package/dist/assets/{index27.css → focus-trap.css} +0 -0
  543. /package/dist/assets/{index19.css → form-layout-title.css} +0 -0
  544. /package/dist/assets/{index26.css → header.css} +0 -0
  545. /package/dist/assets/{index28.css → info-icon.css} +0 -0
  546. /package/dist/assets/{index44.css → input-field.css} +0 -0
  547. /package/dist/assets/{index29.css → link.css} +0 -0
  548. /package/dist/assets/{index30.css → loading-indicator.css} +0 -0
  549. /package/dist/assets/{index25.css → pagination.css} +0 -0
  550. /package/dist/assets/{index37.css → popper-container.css} +0 -0
  551. /package/dist/assets/{index40.css → radio-group.css} +0 -0
  552. /package/dist/assets/{index31.css → search-bar.css} +0 -0
  553. /package/dist/assets/{index39.css → secondary-nav.css} +0 -0
  554. /package/dist/assets/{index12.css → step.css} +0 -0
  555. /package/dist/assets/{index20.css → structured-list-item.css} +0 -0
  556. /package/dist/assets/{index21.css → summary-grid-item-custom.css} +0 -0
  557. /package/dist/assets/{index22.css → tabs.css} +0 -0
  558. /package/dist/assets/{index14.css → tag.css} +0 -0
  559. /package/dist/assets/{index41.css → textarea.css} +0 -0
  560. /package/dist/assets/{index42.css → timeline-item.css} +0 -0
  561. /package/dist/assets/{index43.css → toast.css} +0 -0
  562. /package/dist/assets/{index3.css → toggle-button.css} +0 -0
  563. /package/dist/assets/{index46.css → typography.css} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sidepanel.BBjm2QvZ.js","sources":["../../src/components/sidepanel/components/sidepanel-page.vue","../../src/components/sidepanel/sidepanel.types.ts","../../src/components/sidepanel/sidepanel.vue"],"sourcesContent":["<template>\n <dialog-page class=\"b-sidepanel-page\" :page-id=\"pageId\" :previous-page=\"previousPage\">\n <template #header>\n <div class=\"b-sidepanel-page__header\">\n <bento-typography class=\"b-sidepanel-page__title\" el=\"h2\" variant=\"title\">\n {{ title }}\n </bento-typography>\n </div>\n </template>\n <template #content>\n <div class=\"b-sidepanel-page__content\">\n <bento-typography el=\"div\" variant=\"body\">\n <slot />\n </bento-typography>\n </div>\n </template>\n <template v-if=\"actions && actions.length > 0\" #footer>\n <div class=\"b-sidepanel-page__actions\">\n <footer-actions\n :actions=\"actions\"\n :actions-label=\"actionsLabel\"\n :destructive-actions=\"destructiveActions\"\n />\n </div>\n </template>\n </dialog-page>\n</template>\n\n<script setup lang=\"ts\">\n import { PropType } from 'vue';\n\n import { BentoButtonActionsList } from '@/components/button';\n import { BentoTypography } from '@/components/typography';\n import { FooterActions } from '@/components/internal/footer-actions';\n import { DialogPage } from '@/internal';\n\n defineProps({\n /**\n * List of actions that will be used to render the buttons.\n * First element in the list will be rendered as \"primary\".\n * All elements after the first will be rendered as \"secondary\".\n *\n * ```\n * [{\n * title: 'Primary',\n * event: () => { ... },\n * icon: FourPeopleIcon\n * }, {\n * title: 'Secondary',\n * event: () => { ... }\n * }]\n * ```\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n default: null,\n },\n\n /**\n * Text label that is displayed left to the action buttons\n */\n actionsLabel: {\n type: String,\n default: null,\n },\n\n /**\n * If passed - sets first button color to red\n */\n destructiveActions: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Identifier of the page, used with activePage prop to handle sidepanel navigation\n */\n pageId: {\n type: String,\n default: undefined,\n },\n\n /**\n * ID of the page for the back button to navigate to. Only use it to overwrite the default back behavior\n * Used when the back button should not take the user to the natural previous page\n * Set to `null` to hide back button in the page\n */\n previousPage: {\n type: String,\n default: undefined,\n },\n\n /**\n * Title of the sidepanel page\n */\n title: {\n type: String,\n default: null,\n },\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * SidepanelPage is used to render different pages of Sidepanel component\n *\n * @example\n * import { BentoSidepanel, BentoSidepanelPage } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoSidepanel, BentoSidepanelPage },\n * template: `\n * <bento-sidepanel active-page='step1' is-open='true'>\n * <bento-sidepanel-page\n * title='Step 1'\n * pageId='step1'\n * :actions=\"[\n * {\n * title: 'Next step',\n * event: () => {\n * activePage.value = 'step2';\n * },\n * }]\">\n * Step 1 info\n * </bento-sidepanel-page>\n * <bento-sidepanel-page\n * title='Step 2'\n * pageId='step2'\n * :actions=\"[\n * {\n * title: 'Save',\n * event: () => {},\n * }]\">\n * Step 2 info\n * </bento-sidepanel-page>\n * </bento-sidepanel>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./sidepanel-page.scss\" />\n","export enum BentoSidepanelEvent {\n UPDATE_ACTIVE_PAGE = 'update:active-page',\n UPDATE_IS_OPEN = 'update:is-open',\n}\n","<template>\n <dialog\n :id=\"sidepanelId\"\n ref=\"sidepanel\"\n class=\"b-sidepanel\"\n :class=\"conditionalClasses\"\n @animationend=\"closeSidepanelAfterAnimation\"\n @click=\"isDismissible && closeSidepanelOnClickOutside($event)\"\n @keydown.esc.prevent=\"isDismissible && startCloseSidepanelAnimation\"\n >\n <bento-focus-trap>\n <div v-if=\"isDismissible\" class=\"b-sidepanel__close-button\">\n <bento-button variant=\"tertiary\" @click=\"startCloseSidepanelAnimation\">\n <cross-icon :svg-title=\"t('close')\" />\n </bento-button>\n </div>\n <slot />\n </bento-focus-trap>\n </dialog>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, nextTick, provide, ref, toRefs, watch } from 'vue';\n\n import { BentoButton } from '@/components/button';\n import { BentoFocusTrap } from '@/components/focus-trap';\n import CrossIcon from '@adyen/ui-assets-icons-16/vue/cross';\n\n import { BentoSidepanelEvent } from './sidepanel.types';\n import {\n BentoDialogPageAnimation,\n BentoDialogPageConfigData,\n BentoDialogPageRegisterPage,\n DIALOG_PAGE_CONFIG_INJECTION_KEY,\n DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY,\n } from '@/internal';\n\n import { SIDEPANEL_DIALOG_ID_INJECTION_KEY } from './sidepanel.keys';\n\n import { useI18n } from '@/utils/ts/i18n';\n\n import messages from './messages.json';\n import { generateUid } from '@/utils/ts/unique-id';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const props = defineProps({\n /**\n * The id of the current active page\n * Should be the same id as the BentoSidepanelPage to be displayed\n * If the component only has one page, it can be left null/undefined.\n */\n activePage: {\n type: String,\n default: null,\n },\n\n /**\n * If set to true, it allows the sidepanel to be closed\n */\n isDismissible: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Controls the sidepanel's state from the outside. Set it to true to open the sidepanel\n */\n isOpen: {\n type: Boolean,\n default: null,\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emits update event when page is changed internally\n */\n (e: BentoSidepanelEvent.UPDATE_ACTIVE_PAGE, page: string): void;\n /**\n * Emits close-sidepanel event when the sidepanel is closed\n */\n (e: BentoSidepanelEvent.UPDATE_IS_OPEN, isOpen: boolean): void;\n }>();\n\n // Refs\n const { activePage, isOpen } = toRefs(props);\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const sidepanel = ref(null);\n const pages = ref<string[]>([]);\n const previousPages = ref([]);\n const animation = ref(BentoDialogPageAnimation.TRANSITION_LEVEL_DEEPER);\n const isClosing = ref(false);\n const sidepanelId = generateUid('sidepanel');\n const internalIsOpen = ref(false);\n const isAnimationActive = ref(false);\n\n // Animation styling\n const conditionalClasses = computed(() => ({\n 'b-sidepanel--hide': isClosing.value,\n 'b-sidepanel--animation': isAnimationActive.value,\n }));\n\n // Handle closing and closing animation for dialog element\n const closeSidepanelAfterAnimation = () => {\n if (isClosing.value) {\n sidepanel.value.close();\n if (previousPages.value[0]) {\n emit(BentoSidepanelEvent.UPDATE_ACTIVE_PAGE, previousPages.value[0]);\n }\n previousPages.value = [];\n isClosing.value = false;\n internalIsOpen.value = false;\n emit(BentoSidepanelEvent.UPDATE_IS_OPEN, false);\n }\n };\n\n const startCloseSidepanelAnimation = () => {\n if (!sidepanel.value.open) {\n return;\n }\n isClosing.value = true;\n };\n\n /**\n * Since the dialog HTML element doesn't automatically close when clicking outside, a check on when the user is clicking is needed.\n * If the click doesn't happen in the dialog box itself, the modal closes\n */\n const closeSidepanelOnClickOutside = ({ target }: Event): void => {\n if (target && (target as HTMLElement).tagName === 'DIALOG') {\n startCloseSidepanelAnimation();\n }\n };\n\n // Watching isOpen prop to toggle open/close the dialog element\n watch(\n () => isOpen.value,\n async () => {\n // Wait for sidepanel ref to be created\n await nextTick();\n\n if (!sidepanel.value) {\n return;\n }\n\n if (isOpen.value) {\n internalIsOpen.value = true;\n sidepanel.value.showModal();\n if (!previousPages.value.length) {\n previousPages.value.push(activePage.value);\n }\n } else if (sidepanel.value.open) {\n startCloseSidepanelAnimation();\n }\n },\n { immediate: true }\n );\n\n // Pages\n const updatePage = page => emit(BentoSidepanelEvent.UPDATE_ACTIVE_PAGE, page);\n\n // unregister page if removed / destroyed\n const unregisterPage = (pageIdToRemove: string) => () => {\n pages.value = pages.value?.filter(pageId => pageId !== pageIdToRemove);\n };\n\n // Provide data and function to register page to subcomponent\n const registerPage: BentoDialogPageRegisterPage = pageId => {\n pages.value.push(pageId);\n\n return { unregisterPage: unregisterPage(pageId) };\n };\n\n provide<BentoDialogPageConfigData>(DIALOG_PAGE_CONFIG_INJECTION_KEY, {\n activePage,\n animation,\n isAnimationActive,\n isOpen: internalIsOpen,\n pages,\n previousPages,\n updatePage,\n });\n provide(DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY, registerPage);\n\n // Let's Children components know they are inside a SidePanel (dialog element)\n provide(SIDEPANEL_DIALOG_ID_INJECTION_KEY, sidepanelId);\n</script>\n\n<script lang=\"ts\">\n /**\n * Sidepanel component is a slide-in panel that should be used for presenting actions, settings or features that are directly associated with a specific task or interaction on the main screen.\n *\n * @example\n * import { BentoSidepanel, BentoSidepanelPage } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoSidepanel, BentoSidepanelPage },\n * template: `\n * <bento-sidepanel active-page='step1' is-open='true'>\n * <bento-sidepanel-page\n * title='Step 1'\n * pageId='step1'\n * :actions=\"[\n * {\n * title: 'Next step',\n * event: () => {\n * activePage.value = 'step2';\n * },\n * }]\">\n * Step 1 info\n * </bento-sidepanel-page>\n * <bento-sidepanel-page\n * title='Step 2'\n * pageId='step2'\n * :actions=\"[\n * {\n * title: 'Save',\n * event: () => {},\n * }]\">\n * Step 2 info\n * </bento-sidepanel-page>\n * </bento-sidepanel>\n * `\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n<style lang=\"scss\" scoped src=\"./sidepanel.scss\" />\n"],"names":["__default__$1","BentoSidepanelEvent","BentoSidepanelEvent2","__default__","messages","activePage","isOpen","toRefs","props","t","useI18n","sidepanel","ref","pages","previousPages","animation","BentoDialogPageAnimation","isClosing","sidepanelId","generateUid","internalIsOpen","isAnimationActive","conditionalClasses","computed","closeSidepanelAfterAnimation","emit","startCloseSidepanelAnimation","closeSidepanelOnClickOutside","target","watch","nextTick","updatePage","page","unregisterPage","pageIdToRemove","_a","pageId","registerPage","provide","DIALOG_PAGE_CONFIG_INJECTION_KEY","DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY","SIDEPANEL_DIALOG_ID_INJECTION_KEY"],"mappings":";;;;;;;;;;;;AA2II,MAAAA,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC3IQ,IAAAC,IAAA,kBAAAC,OACRA,EAAA,qBAAA,sBACAA,EAAA,iBAAA,kBAFQA,IAAAD,KAAA,CAAA,CAAA;;;;;GCiORE,IAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA7IA,EAAA,YAAAC,GAAA,QAAAC,EAAA,IAAAC,EAAAC,CAAA,GACA,EAAA,GAAAC,EAAA,IAAAC,EAAA,GACAC,IAAAC,EAAA,IAAA,GACAC,IAAAD,EAAA,CAAA,CAAA,GACAE,IAAAF,EAAA,CAAA,CAAA,GACAG,IAAAH,EAAAI,EAAA,uBAAA,GACAC,IAAAL,EAAA,EAAA,GACAM,IAAAC,EAAA,WAAA,GACAC,IAAAR,EAAA,EAAA,GACAS,IAAAT,EAAA,EAAA,GAGAU,IAAAC,EAAA,OAAA;AAAA,MAA2C,qBAAAN,EAAA;AAAA,MACR,0BAAAI,EAAA;AAAA,IACa,EAAA,GAIhDG,IAAA,MAAA;AACI,MAAAP,EAAA,UACIN,EAAA,MAAA,MAAA,GACAG,EAAA,MAAA,CAAA,KACIW,EAAAxB,EAAA,oBAAAa,EAAA,MAAA,CAAA,CAAA,GAEJA,EAAA,QAAA,CAAA,GACAG,EAAA,QAAA,IACAG,EAAA,QAAA,IACAK,EAAAxB,EAAA,gBAAA,EAAA;AAAA,IACJ,GAGJyB,IAAA,MAAA;AACI,MAAAf,EAAA,MAAA,SAGAM,EAAA,QAAA;AAAA,IAAkB,GAOtBU,IAAA,CAAA,EAAA,QAAAC,EAAA,MAAA;AACI,MAAAA,KAAAA,EAAA,YAAA,YACIF,EAAA;AAAA,IACJ;AAIJ,IAAAG;AAAA,MAAA,MAAAvB,EAAA;AAAA,MACiB,YAAA;AAKT,QAFA,MAAAwB,EAAA,GAEAnB,EAAA,UAIAL,EAAA,SACIc,EAAA,QAAA,IACAT,EAAA,MAAA,UAAA,GACAG,EAAA,MAAA,UACIA,EAAA,MAAA,KAAAT,EAAA,KAAA,KACJM,EAAA,MAAA,QAEAe,EAAA;AAAA,MACJ;AAAA,MACJ,EAAA,WAAA,GAAA;AAAA,IACkB;AAItB,UAAAK,IAAA,CAAAC,MAAAP,EAAAxB,EAAA,oBAAA+B,CAAA,GAGAC,IAAA,CAAAC,MAAA,MAAA;;AACI,MAAArB,EAAA,SAAAsB,IAAAtB,EAAA,UAAA,gBAAAsB,EAAA,OAAA,CAAAC,MAAAA,MAAAF;AAAA,IAAqE,GAIzEG,IAAA,CAAAD,OACIvB,EAAA,MAAA,KAAAuB,CAAA,GAEA,EAAA,gBAAAH,EAAAG,CAAA,EAAA;AAGJ,WAAAE,EAAAC,GAAA;AAAA,MAAqE,YAAAlC;AAAA,MACjE,WAAAU;AAAA,MACA,mBAAAM;AAAA,MACA,QAAAD;AAAA,MACQ,OAAAP;AAAA,MACR,eAAAC;AAAA,MACA,YAAAiB;AAAA,IACA,CAAA,GAEJO,EAAAE,GAAAH,CAAA,GAGAC,EAAAG,GAAAvB,CAAA;;;;;;;;;;;;;;;;;;;;"}
@@ -2,4 +2,4 @@ const e = Symbol("sidepanel children element injection key");
2
2
  export {
3
3
  e as S
4
4
  };
5
- //# sourceMappingURL=sidepanel.keys.1ed8a57c.js.map
5
+ //# sourceMappingURL=sidepanel.keys.R0DKQuYx.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sidepanel.keys.1ed8a57c.js","sources":["../../src/components/sidepanel/sidepanel.keys.ts"],"sourcesContent":["export const SIDEPANEL_DIALOG_ID_INJECTION_KEY = Symbol('sidepanel children element injection key');\n"],"names":["SIDEPANEL_DIALOG_ID_INJECTION_KEY"],"mappings":"AAAa,MAAAA,IAAoC,OAAO,0CAA0C;"}
1
+ {"version":3,"file":"sidepanel.keys.R0DKQuYx.js","sources":["../../src/components/sidepanel/sidepanel.keys.ts"],"sourcesContent":["export const SIDEPANEL_DIALOG_ID_INJECTION_KEY = Symbol('sidepanel children element injection key');\n"],"names":["SIDEPANEL_DIALOG_ID_INJECTION_KEY"],"mappings":"AAAa,MAAAA,IAAoC,OAAO,0CAA0C;"}
@@ -0,0 +1,36 @@
1
+ import { defineComponent as o, computed as a } from "vue";
2
+ import { B as n } from "./typography.Bjtu3Gca.js";
3
+ import { n as _ } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
4
+ import "../assets/status.css";
5
+ const l = {
6
+ name: "bento-status"
7
+ }, p = /* @__PURE__ */ o({
8
+ ...l,
9
+ props: {
10
+ variant: null
11
+ },
12
+ setup(s) {
13
+ const t = s, r = a(() => ({
14
+ [`b-status__indicator--${t.variant}`]: !0
15
+ }));
16
+ return { __sfc: !0, props: t, conditionalClass: r, BentoTypography: n };
17
+ }
18
+ });
19
+ var c = function() {
20
+ var t = this, r = t._self._c, e = t._self._setupProxy;
21
+ return r("div", { staticClass: "b-status", attrs: { role: "status" } }, [r("span", { staticClass: "b-status__indicator", class: e.conditionalClass, attrs: { role: "presentation" } }), r(e.BentoTypography, { staticClass: "b-status__label", attrs: { el: "span", variant: "body" } }, [t._t("default")], 2)], 1);
22
+ }, i = [], u = /* @__PURE__ */ _(
23
+ p,
24
+ c,
25
+ i,
26
+ !1,
27
+ null,
28
+ "00168073"
29
+ );
30
+ const b = u.exports;
31
+ var m = /* @__PURE__ */ ((s) => (s.BLUE = "blue", s.GREEN = "green", s.GREY = "grey", s.ORANGE = "orange", s.RED = "red", s.YELLOW = "yellow", s))(m || {});
32
+ export {
33
+ m as B,
34
+ b as s
35
+ };
36
+ //# sourceMappingURL=status.types.BhbOYpZx.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"status.types.BhbOYpZx.js","sources":["../../src/components/status/status.vue","../../src/components/status/status.types.ts"],"sourcesContent":["<template>\n <div class=\"b-status\" role=\"status\">\n <span class=\"b-status__indicator\" :class=\"conditionalClass\" role=\"presentation\"></span>\n <bento-typography class=\"b-status__label\" el=\"span\" variant=\"body\">\n <slot></slot>\n </bento-typography>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed } from 'vue';\n import { BentoTypography } from '@/components/typography';\n import { BentoStatusVariant } from './status.types';\n\n const props = defineProps<{\n variant: BentoStatusVariant | `${BentoStatusVariant}`;\n }>();\n\n const conditionalClass = computed(() => ({\n [`b-status__indicator--${props.variant}`]: true,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * A Status component is used to indicate a\n * passage of time or a particular step of a process.\n *\n * @example\n * import { BentoStatus } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoStatus },\n * template: `\n * <bento-status variant=\"red\">\n * 1 week ago\n * </bento-status>\n * `\n * }\n */\n export default {\n name: 'bento-status',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./status.scss\" />\n","/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoStatusVariant {\n BLUE = 'blue',\n GREEN = 'green',\n GREY = 'grey',\n ORANGE = 'orange',\n RED = 'red',\n YELLOW = 'yellow',\n}\n"],"names":["__default__","conditionalClass","computed","props","BentoStatusVariant","BentoStatusVariant2"],"mappings":";;;;AAwCI,MAAAA,IAAA;AAAA,EAAe,MAAA;AAEf;;;;;;iBAxBAC,IAAAC,EAAA,OAAA;AAAA,MAAyC,CAAA,wBAAAC,EAAA,OAAA,EAAA,GAAA;AAAA,IACM,EAAA;;;;;;;;;;;;;;;;AChBvC,IAAAC,IAAA,kBAAAC,OACRA,EAAA,OAAA,QACAA,EAAA,QAAA,SACAA,EAAA,OAAA,QACAA,EAAA,SAAA,UACAA,EAAA,MAAA,OACAA,EAAA,SAAA,UANQA,IAAAD,KAAA,CAAA,CAAA;"}
@@ -0,0 +1,234 @@
1
+ import { defineComponent as w, ref as p, computed as o, watch as A, provide as L, readonly as z, useSlots as Z, inject as U, onMounted as M, onBeforeUnmount as j } from "vue";
2
+ import { B as D } from "./typography.Bjtu3Gca.js";
3
+ import { u as G } from "./i18n.BQkEbtPM.js";
4
+ import { B as E, a as q } from "./keyboard-navigation.Clz1jOaA.js";
5
+ import { n as O } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
6
+ import { B as J } from "./base-button.DER7_IsF.js";
7
+ import { C as Q } from "./checkmark-small.BtF8b2gE.js";
8
+ import "../assets/step.css";
9
+ const X = (a) => {
10
+ function t(i) {
11
+ return ({ detail: c }) => {
12
+ var s;
13
+ c.preventDefault();
14
+ const l = a.value.indexOf(document.activeElement);
15
+ l < 0 || (s = a.value[l + i]) == null || s.focus();
16
+ };
17
+ }
18
+ const n = t(-1), e = t(1);
19
+ return {
20
+ [E.ARROW_DOWN]: e,
21
+ [E.ARROW_RIGHT]: e,
22
+ [E.ARROW_UP]: n,
23
+ [E.ARROW_LEFT]: n
24
+ };
25
+ }, Y = (a) => {
26
+ const t = a.buttonElement.value.parentElement, n = t.parentElement;
27
+ return Array.from(n.children).indexOf(t);
28
+ }, k = (a) => ({ registerStep: (e) => {
29
+ const i = Y(e);
30
+ a.value.splice(i, 0, {
31
+ stepContent: e.stepContent,
32
+ buttonElement: e.buttonElement,
33
+ substeps: e.substeps
34
+ });
35
+ }, removeStep: (e) => {
36
+ a.value.splice(
37
+ a.value.findIndex((i) => i.buttonElement === e.buttonElement.value),
38
+ 1
39
+ );
40
+ } }), B = Symbol("stepper state");
41
+ var T = /* @__PURE__ */ ((a) => (a.LINEAR = "linear", a.NON_LINEAR = "non-linear", a))(T || {}), $ = /* @__PURE__ */ ((a) => (a.HORIZONTAL = "horizontal", a.VERTICAL = "vertical", a))($ || {});
42
+ const ee = {
43
+ "en-US": {
44
+ step: "Step {currentIndex}/{totalSteps} {content}"
45
+ }
46
+ }, te = {
47
+ i18n: { messages: ee },
48
+ name: "stepper"
49
+ }, se = /* @__PURE__ */ w({
50
+ ...te,
51
+ props: {
52
+ /**
53
+ * Type of stepper; defines how the stepper should behave. Default: linear
54
+ * @values linear, non-linear
55
+ */
56
+ type: {
57
+ type: String,
58
+ default: "linear"
59
+ },
60
+ /**
61
+ * Stepper variant; defines how the stepper should be displayed. Default: vertical
62
+ * @values vertical, horizontal
63
+ */
64
+ variant: {
65
+ type: String,
66
+ default: "vertical"
67
+ },
68
+ /**
69
+ * Active step index
70
+ */
71
+ index: {
72
+ type: Number,
73
+ default: 0
74
+ }
75
+ },
76
+ emits: ["update:index"],
77
+ setup(a, { emit: t }) {
78
+ const n = a, { t: e } = G(), i = p([]), c = p(n.index), l = p(c.value), s = (r) => {
79
+ r > l.value && (l.value = r), c.value = r;
80
+ }, b = o(() => {
81
+ var r;
82
+ return (r = i.value[c.value]) == null ? void 0 : r.stepContent;
83
+ }), v = o(() => i.value.length), m = o(() => i.value.map(({ buttonElement: r }) => r)), f = o(() => n.variant === $.HORIZONTAL), d = o(
84
+ () => i.value.map(({ buttonElement: r, substeps: h }, g) => {
85
+ const N = c.value === g;
86
+ return !f.value && N ? [r].concat(h.map((y) => y.buttonElement)) : [r];
87
+ }).flat()
88
+ ), { registerStep: _, removeStep: S } = k(i), C = p({
89
+ activeStepIndex: c,
90
+ latestActiveStep: l,
91
+ steps: m,
92
+ type: n.type,
93
+ variant: n.variant,
94
+ navigateToStep: s,
95
+ registerStep: _,
96
+ removeStep: S
97
+ }), x = o(() => ({
98
+ "b-stepper__list--horizontal": f.value
99
+ }));
100
+ A(() => n.index, s), A(c, (r) => {
101
+ t("update:index", r);
102
+ });
103
+ const I = X(d);
104
+ return L(B, z(C)), { __sfc: !0, props: n, emit: t, t: e, childrenSteps: i, activeStepIndex: c, latestActiveStep: l, navigateToStep: s, currentStepContent: b, stepsAmount: v, childrenStepsElements: m, isHorizontalVariant: f, allVisibleStepsElements: d, registerStep: _, removeStep: S, stepperState: C, conditionalClasses: x, keyboardNavigationListeners: I, BentoTypography: D, vBentoKeyboardNavigationDirective: q };
105
+ }
106
+ });
107
+ var ne = function() {
108
+ var t = this, n = t._self._c, e = t._self._setupProxy;
109
+ return n("nav", { staticClass: "b-stepper" }, [n("ol", t._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], staticClass: "b-stepper__list", class: e.conditionalClasses }, e.keyboardNavigationListeners), [t._t("default")], 2), n(e.BentoTypography, { staticClass: "b-stepper__text-stepper", attrs: { el: "span", variant: "body", stronger: "" } }, [t._v(t._s(e.t("step", { currentIndex: e.activeStepIndex + 1, totalSteps: e.stepsAmount, content: e.currentStepContent })) + " ")])], 1);
110
+ }, ae = [], oe = /* @__PURE__ */ O(
111
+ se,
112
+ ne,
113
+ ae,
114
+ !1,
115
+ null,
116
+ "1d6dcda5"
117
+ );
118
+ const Ie = oe.exports;
119
+ let V = 0;
120
+ const re = {
121
+ beforeCreate() {
122
+ this.uuid = V.toString(), V += 1;
123
+ }
124
+ };
125
+ var ie = function() {
126
+ var t = this, n = t._self._c;
127
+ return n("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"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("path", { attrs: { fill: "#00112C", d: "M8 5.25C6.48122 5.25 5.25 6.48122 5.25 8C5.25 9.51878 6.48122 10.75 8 10.75C9.51878 10.75 10.75 9.51878 10.75 8C10.75 6.48122 9.51878 5.25 8 5.25Z" } })]);
128
+ }, le = [], ue = /* @__PURE__ */ O(
129
+ re,
130
+ ie,
131
+ le,
132
+ !1,
133
+ null,
134
+ null
135
+ );
136
+ const ce = ue.exports, pe = {
137
+ name: "step"
138
+ }, ve = /* @__PURE__ */ w({
139
+ ...pe,
140
+ props: {
141
+ /**
142
+ * Completed status. Used on non-linear steppers to indicate if the step is completed.
143
+ */
144
+ completed: {
145
+ type: Boolean,
146
+ default: !1
147
+ },
148
+ /**
149
+ * Active substep index
150
+ */
151
+ substepIndex: {
152
+ type: Number,
153
+ default: 0
154
+ }
155
+ },
156
+ emits: ["update:substep-index"],
157
+ setup(a, { emit: t }) {
158
+ const n = a, e = Z(), i = p(null), c = p(null), l = p([]), s = U(B), b = o(() => {
159
+ var u;
160
+ return (u = i.value) == null ? void 0 : u.$el;
161
+ }), v = o(() => s == null ? void 0 : s.value.steps.indexOf(b.value)), m = o(() => {
162
+ var u;
163
+ return (u = c.value) == null ? void 0 : u.$el.textContent;
164
+ }), f = o(() => l.value.map(({ buttonElement: u }) => u)), d = p(n.substepIndex), _ = p(d.value), S = (u) => {
165
+ u > _.value && (_.value = u), d.value = u;
166
+ }, { registerStep: C, removeStep: x } = k(l), I = p({
167
+ activeStepIndex: d,
168
+ latestActiveStep: _,
169
+ type: s.value.type,
170
+ variant: s.value.variant,
171
+ steps: f,
172
+ isParentStep: !0,
173
+ navigateToStep: S,
174
+ registerStep: C,
175
+ removeStep: x
176
+ });
177
+ L(B, I), A(() => n.substepIndex, S), A(d, (u) => {
178
+ t("update:substep-index", u);
179
+ }), M(() => {
180
+ if (!s)
181
+ throw new Error(
182
+ "BentoStep components should only be used inside BentoStepper or other BentoStep components."
183
+ );
184
+ s.value.registerStep({
185
+ buttonElement: b,
186
+ stepContent: m,
187
+ substeps: l
188
+ });
189
+ }), j(() => {
190
+ s.value.removeStep({
191
+ buttonElement: b,
192
+ stepContent: m,
193
+ substeps: l
194
+ });
195
+ });
196
+ const r = o(() => s.value.isParentStep), h = p(!1), g = o(() => (s == null ? void 0 : s.value.activeStepIndex) === v.value), N = o(
197
+ () => g.value && s.value.variant !== $.HORIZONTAL && !r.value && e.substeps
198
+ ), R = o(() => (s == null ? void 0 : s.value.type) === T.NON_LINEAR ? n.completed : (s == null ? void 0 : s.value.latestActiveStep) > v.value), y = o(
199
+ () => (s == null ? void 0 : s.value.type) === T.LINEAR && v.value > (s == null ? void 0 : s.value.latestActiveStep)
200
+ ), P = () => {
201
+ y.value || s.value.navigateToStep(v.value);
202
+ }, F = o(() => g.value ? "step" : "false"), H = o(() => y.value.toString()), K = o(() => h.value || v.value === 0 && !r.value ? "0" : "-1"), W = o(() => ({
203
+ "b-step--active": g.value,
204
+ "b-step--completed": R.value,
205
+ "b-step--substep": r.value
206
+ }));
207
+ return { __sfc: !0, slots: e, props: n, emit: t, buttonComponent: i, stepContent: c, substeps: l, stepper: s, buttonElement: b, index: v, stepContentValue: m, substepsButtonElements: f, activeSubStepIndex: d, latestActiveSubStepIndex: _, navigateToSubstep: S, registerStep: C, removeStep: x, stepState: I, isSubstep: r, isFocused: h, isActive: g, isSubstepsVisible: N, isCompleted: R, isDisabled: y, navigateToStep: P, ariaCurrentValue: F, ariaDisabledValue: H, tabIndexValue: K, conditionalClasses: W, BaseButton: J, BentoTypography: D, CheckmarkSmallIcon: Q, DotIcon: ce };
208
+ }
209
+ });
210
+ var de = function() {
211
+ var t = this, n = t._self._c, e = t._self._setupProxy;
212
+ return n("li", { staticClass: "b-step", class: e.conditionalClasses }, [n(e.BaseButton, { ref: "buttonComponent", staticClass: "b-step__button", attrs: { "aria-current": e.ariaCurrentValue, "aria-disabled": e.ariaDisabledValue, type: "button", tabindex: e.tabIndexValue, disabled: e.isDisabled }, on: { click: e.navigateToStep, focus: function(i) {
213
+ e.isFocused = !0;
214
+ }, blur: function(i) {
215
+ e.isFocused = !1;
216
+ } }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
217
+ return [n(e.BentoTypography, { staticClass: "b-step__index", attrs: { el: "span", variant: "body", stronger: "", "aria-hidden": "true" } }, [e.isCompleted ? n(e.CheckmarkSmallIcon) : e.isSubstep ? n(e.DotIcon) : [t._v(t._s(e.index + 1))]], 2)];
218
+ }, proxy: !0 }]) }, [n(e.BentoTypography, { ref: "stepContent", staticClass: "b-step__content", attrs: { el: "span", variant: "body", stronger: e.isActive } }, [t._t("default")], 2)], 1), n("ul", { directives: [{ name: "show", rawName: "v-show", value: e.isSubstepsVisible, expression: "isSubstepsVisible" }], ref: "substepList", staticClass: "b-step__substep-list" }, [t._t("substeps")], 2)], 1);
219
+ }, _e = [], be = /* @__PURE__ */ O(
220
+ ve,
221
+ de,
222
+ _e,
223
+ !1,
224
+ null,
225
+ "3e4c4f4e"
226
+ );
227
+ const he = be.exports;
228
+ export {
229
+ T as B,
230
+ he as a,
231
+ $ as b,
232
+ Ie as s
233
+ };
234
+ //# sourceMappingURL=step.DY8Txb6a.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"step.DY8Txb6a.js","sources":["../../src/components/stepper/composables/use-keyboard-navigation/use-keyboard-navigation.ts","../../src/components/stepper/composables/use-step-register/use-step-register.ts","../../src/components/stepper/stepper.keys.ts","../../src/components/stepper/stepper.types.ts","../../src/components/stepper/stepper.vue","../../../../node_modules/@adyen/ui-assets-icons-16/dist/vue/dot.vue","../../src/components/stepper/components/step/step.vue"],"sourcesContent":["import { Ref } from 'vue';\n\nimport { BentoKeyboardNavigationKeyDownEvent } from '@/types';\n\n/**\n * Returns keyboard navigation's event handlers to navigate through the steps\n *\n * @param steps the list of bento-steps DOM elements to focus on the navigation\n * @returns\n */\nexport const useKeyboardNavigation = (steps: Ref<HTMLButtonElement[]>) => {\n // Returns the event handler that moves the focus on a given step offset\n function focusOnStep(indexOffset: number) {\n return ({ detail: event }) => {\n event.preventDefault();\n\n const currentIndex = steps.value.indexOf(document.activeElement as HTMLButtonElement);\n if (currentIndex < 0) {\n return;\n }\n\n steps.value[currentIndex + indexOffset]?.focus();\n };\n }\n\n const focusOnPreviousStep = focusOnStep(-1);\n const focusOnNextStep = focusOnStep(1);\n\n return {\n [BentoKeyboardNavigationKeyDownEvent.ARROW_DOWN]: focusOnNextStep,\n [BentoKeyboardNavigationKeyDownEvent.ARROW_RIGHT]: focusOnNextStep,\n [BentoKeyboardNavigationKeyDownEvent.ARROW_UP]: focusOnPreviousStep,\n [BentoKeyboardNavigationKeyDownEvent.ARROW_LEFT]: focusOnPreviousStep,\n };\n};\n","import type { Ref } from 'vue';\nimport type { BentoStepperStepExposeState } from '../../stepper.types';\n\n/**\n * Gets the position of a `bento-step` element within its `bento-stepper` parent.\n * @param stepState The `bento-step` state.\n * @returns The index of the element.\n */\nconst getStepPosition = (stepState: BentoStepperStepExposeState) => {\n // Button is wrapped by <li> element\n const listItemElement = (stepState.buttonElement as Ref<HTMLButtonElement>).value.parentElement;\n const listElement = listItemElement.parentElement;\n return Array.from(listElement.children).indexOf(listItemElement);\n};\n\n/**\n * Provides methods to register/unregister `bento-step` elements to/from the `bento-stepper` step state.\n * These methods allow for tracking the child step elements, including their position in the DOM tree.\n * @param childrenSteps The `bento-stepper` (or `bento-step` if substeps) step state.\n */\nexport const useStepRegister = (childrenSteps: Ref<BentoStepperStepExposeState[]>) => {\n /**\n * Registers a step's HTML element in the stepper state.\n * Should be called by a `bento-step` when it is mounted.\n * @param stepState The `bento-step` state.\n */\n const registerStep = (stepState: BentoStepperStepExposeState) => {\n const position = getStepPosition(stepState);\n childrenSteps.value.splice(position, 0, {\n stepContent: stepState.stepContent as string,\n buttonElement: stepState.buttonElement as HTMLButtonElement,\n substeps: stepState.substeps as BentoStepperStepExposeState[],\n });\n };\n\n /**\n * Unregisters a step's HTML element in the stepper state.\n * Should be called by a `bento-step` before it is unmounted.\n * @param stepState The `bento-step` state.\n */\n const removeStep = (stepState: BentoStepperStepExposeState) => {\n childrenSteps.value.splice(\n childrenSteps.value.findIndex(step => step.buttonElement === stepState.buttonElement.value),\n 1\n );\n };\n\n return { registerStep, removeStep };\n};\n","import type { InjectionKey } from 'vue';\n\nimport type { BentoStepperState } from './stepper.types';\n\nexport const STEPPER_STATE = Symbol('stepper state') as InjectionKey<BentoStepperState>;\n","import type { ComputedRef, Ref } from 'vue';\n\nexport enum BentoStepperTypeOption {\n LINEAR = 'linear',\n NON_LINEAR = 'non-linear',\n}\n\nexport enum BentoStepperVariantOption {\n HORIZONTAL = 'horizontal',\n VERTICAL = 'vertical',\n}\n\nexport interface BentoStepperStepExposeState {\n buttonElement: HTMLButtonElement | Ref<HTMLButtonElement>;\n substeps: BentoStepperStepExposeState[] | Ref<BentoStepperStepExposeState[]>;\n stepContent: string | ComputedRef<string>;\n}\n\nexport type BentoStepperState = Ref<{\n activeStepIndex: number;\n latestActiveStep: number;\n type: `${BentoStepperTypeOption}`;\n variant: `${BentoStepperVariantOption}`;\n steps: HTMLElement[];\n isParentStep?: boolean;\n navigateToStep: (index: number) => void;\n registerStep: (stepState: BentoStepperStepExposeState) => void;\n removeStep: (stepState: BentoStepperStepExposeState) => void;\n}>;\n","<template>\n <nav class=\"b-stepper\">\n <ol\n v-bento-keyboard-navigation-directive\n class=\"b-stepper__list\"\n :class=\"conditionalClasses\"\n v-on=\"keyboardNavigationListeners\"\n >\n <slot></slot>\n </ol>\n\n <bento-typography el=\"span\" variant=\"body\" stronger class=\"b-stepper__text-stepper\"\n >{{\n t('step', { currentIndex: activeStepIndex + 1, totalSteps: stepsAmount, content: currentStepContent })\n }}\n </bento-typography>\n </nav>\n</template>\n\n<script setup lang=\"ts\">\n import { BentoTypography } from '@/components/typography';\n\n import { computed, PropType, provide, readonly, ref, watch } from 'vue';\n import { BentoKeyboardNavigationDirective as vBentoKeyboardNavigationDirective } from '@/directives';\n\n import { useKeyboardNavigation, useStepRegister } from './composables';\n import { useI18n } from '@/utils/ts/i18n';\n\n import { STEPPER_STATE } from './stepper.keys';\n import {\n BentoStepperState,\n BentoStepperStepExposeState,\n BentoStepperTypeOption,\n BentoStepperVariantOption,\n } from './stepper.types';\n\n import messages from './messages.json';\n\n const props = defineProps({\n /**\n * Type of stepper; defines how the stepper should behave. Default: linear\n * @values linear, non-linear\n */\n type: {\n type: String as PropType<`${BentoStepperTypeOption}`>,\n default: 'linear',\n },\n /**\n * Stepper variant; defines how the stepper should be displayed. Default: vertical\n * @values vertical, horizontal\n */\n variant: {\n type: String as PropType<`${BentoStepperVariantOption}`>,\n default: 'vertical',\n },\n /**\n * Active step index\n */\n index: {\n type: Number,\n default: 0,\n },\n });\n\n const emit = defineEmits<{\n /**\n * Event triggered when step is updated by the stepper\n */\n (e: 'update:index', index: number): void;\n }>();\n\n type MessageSchema = (typeof messages)['en-US'];\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const childrenSteps = ref<BentoStepperStepExposeState[]>([]);\n const activeStepIndex = ref(props.index);\n const latestActiveStep = ref(activeStepIndex.value);\n\n const navigateToStep = (index: number) => {\n // Stores latest active step index so users can navigate backwards and forwards on linear stepper\n if (index > latestActiveStep.value) {\n latestActiveStep.value = index;\n }\n activeStepIndex.value = index;\n };\n\n const currentStepContent = computed(() => childrenSteps.value[activeStepIndex.value]?.stepContent);\n const stepsAmount = computed(() => childrenSteps.value.length);\n const childrenStepsElements = computed(() => childrenSteps.value.map(({ buttonElement }) => buttonElement));\n const isHorizontalVariant = computed(() => props.variant === BentoStepperVariantOption.HORIZONTAL);\n\n // List of all visible steps nested on the stepper, including the substeps of the children steps\n // Flattening the steps on a single list makes the keyboard navigation easier to be handled\n const allVisibleStepsElements = computed(() =>\n childrenSteps.value\n .map(({ buttonElement, substeps }, index) => {\n const isStepActive = activeStepIndex.value === index;\n const isSubstepsVisible = !isHorizontalVariant.value && isStepActive;\n\n if (!isSubstepsVisible) {\n return [buttonElement];\n }\n\n return [buttonElement].concat(substeps.map(step => step.buttonElement));\n })\n .flat()\n );\n\n const { registerStep, removeStep } = useStepRegister(childrenSteps);\n\n const stepperState: BentoStepperState = ref({\n activeStepIndex,\n latestActiveStep,\n steps: childrenStepsElements,\n type: props.type,\n variant: props.variant,\n navigateToStep,\n registerStep,\n removeStep,\n });\n\n const conditionalClasses = computed(() => ({\n 'b-stepper__list--horizontal': isHorizontalVariant.value,\n }));\n\n watch(() => props.index, navigateToStep);\n watch(activeStepIndex, index => {\n emit('update:index', index);\n });\n\n const keyboardNavigationListeners = useKeyboardNavigation(allVisibleStepsElements);\n\n // Provides stepper state to BentoStep children components\n provide(STEPPER_STATE, readonly(stepperState));\n</script>\n\n<script lang=\"ts\">\n /**\n * Steppers break down complex processes into manageable steps to guide users through a sequential or multi-step process.\n *\n * @example\n * import { BentoStep, BentoStepper } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoStep, BentoStepper },\n * template: `\n * <bento-stepper :index=\"1\">\n * <bento-step>Step 1</bento-step>\n * <bento-step>Step 2</bento-step>\n * <bento-step>Step 3</bento-step>\n * </bento-stepper>\n * `\n * }\n */\n\n export default {\n i18n: { messages },\n name: 'stepper',\n };\n</script>\n\n<style scoped src=\"./stepper.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><path fill=\"#00112C\" d=\"M8 5.25C6.48122 5.25 5.25 6.48122 5.25 8C5.25 9.51878 6.48122 10.75 8 10.75C9.51878 10.75 10.75 9.51878 10.75 8C10.75 6.48122 9.51878 5.25 8 5.25Z\"/></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 <li :class=\"conditionalClasses\" class=\"b-step\">\n <base-button\n ref=\"buttonComponent\"\n :aria-current=\"ariaCurrentValue\"\n :aria-disabled=\"ariaDisabledValue\"\n class=\"b-step__button\"\n type=\"button\"\n :tabindex=\"tabIndexValue\"\n :disabled=\"isDisabled\"\n @click=\"navigateToStep\"\n @focus=\"isFocused = true\"\n @blur=\"isFocused = false\"\n >\n <template #iconLeft>\n <bento-typography el=\"span\" variant=\"body\" stronger class=\"b-step__index\" aria-hidden=\"true\">\n <checkmark-small-icon v-if=\"isCompleted\" />\n <template v-else-if=\"!isSubstep\">{{ index + 1 }}</template>\n <dot-icon v-else />\n </bento-typography>\n </template>\n\n <bento-typography ref=\"stepContent\" el=\"span\" variant=\"body\" :stronger=\"isActive\" class=\"b-step__content\">\n <slot></slot>\n </bento-typography>\n </base-button>\n\n <ul v-show=\"isSubstepsVisible\" ref=\"substepList\" class=\"b-step__substep-list\">\n <slot name=\"substeps\"></slot>\n </ul>\n </li>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, onBeforeUnmount, onMounted, provide, ref, useSlots, watch } from 'vue';\n import { BaseButton } from '@/components/internal/base-button';\n import { BentoTypography } from '@/components/typography';\n import CheckmarkSmallIcon from '@adyen/ui-assets-icons-16/vue/checkmark-small';\n import DotIcon from '@adyen/ui-assets-icons-16/vue/dot';\n\n import { useStepRegister } from '../../composables';\n import { STEPPER_STATE } from '../../stepper.keys';\n import {\n BentoStepperState,\n BentoStepperStepExposeState,\n BentoStepperTypeOption,\n BentoStepperVariantOption,\n } from '../../stepper.types';\n import { Booleanish } from '@/types';\n\n const slots = useSlots();\n\n const props = defineProps({\n /**\n * Completed status. Used on non-linear steppers to indicate if the step is completed.\n */\n completed: {\n type: Boolean,\n default: false,\n },\n /**\n * Active substep index\n */\n substepIndex: {\n type: Number,\n default: 0,\n },\n });\n\n const emit = defineEmits<{\n /**\n * Event triggered when substep is updated by the parent step\n */\n (e: 'update:substep-index', index: number): void;\n }>();\n\n // Element refs\n const buttonComponent = ref<InstanceType<typeof BaseButton> | null>(null);\n const stepContent = ref<InstanceType<typeof BentoTypography> | null>(null);\n const substeps = ref<BentoStepperStepExposeState[]>([]);\n\n // Injects parent BentoStepper state data\n const stepper = inject(STEPPER_STATE);\n\n const buttonElement = computed(() => buttonComponent.value?.$el as HTMLButtonElement);\n const index = computed(() => stepper?.value.steps.indexOf(buttonElement.value));\n\n const stepContentValue = computed(() => stepContent.value?.$el.textContent);\n\n // Substep logic\n const substepsButtonElements = computed(() => substeps.value.map(({ buttonElement }) => buttonElement));\n\n const activeSubStepIndex = ref(props.substepIndex);\n const latestActiveSubStepIndex = ref(activeSubStepIndex.value);\n\n const navigateToSubstep = (value: number) => {\n if (value > latestActiveSubStepIndex.value) {\n latestActiveSubStepIndex.value = value;\n }\n\n activeSubStepIndex.value = value;\n };\n\n const { registerStep, removeStep } = useStepRegister(substeps);\n\n const stepState: BentoStepperState = ref({\n activeStepIndex: activeSubStepIndex,\n latestActiveStep: latestActiveSubStepIndex,\n type: stepper.value.type,\n variant: stepper.value.variant,\n steps: substepsButtonElements,\n isParentStep: true,\n navigateToStep: navigateToSubstep,\n registerStep,\n removeStep,\n });\n\n provide(STEPPER_STATE, stepState);\n\n watch(() => props.substepIndex, navigateToSubstep);\n watch(activeSubStepIndex, value => {\n emit('update:substep-index', value);\n });\n\n onMounted(() => {\n if (!stepper) {\n throw new Error(\n 'BentoStep components should only be used inside BentoStepper or other BentoStep components.'\n );\n }\n\n stepper.value.registerStep({\n buttonElement,\n stepContent: stepContentValue,\n substeps,\n });\n });\n\n onBeforeUnmount(() => {\n stepper.value.removeStep({\n buttonElement,\n stepContent: stepContentValue,\n substeps,\n });\n });\n\n // Step states\n const isSubstep = computed(() => stepper.value.isParentStep);\n const isFocused = ref(false);\n const isActive = computed(() => stepper?.value.activeStepIndex === index.value);\n const isSubstepsVisible = computed(\n () =>\n isActive.value &&\n stepper.value.variant !== BentoStepperVariantOption.HORIZONTAL &&\n !isSubstep.value &&\n slots.substeps\n );\n const isCompleted = computed(() => {\n if (stepper?.value.type === BentoStepperTypeOption.NON_LINEAR) {\n return props.completed;\n }\n\n return stepper?.value.latestActiveStep > index.value;\n });\n const isDisabled = computed(\n () => stepper?.value.type === BentoStepperTypeOption.LINEAR && index.value > stepper?.value.latestActiveStep\n );\n\n const navigateToStep = () => {\n if (isDisabled.value) {\n return;\n }\n\n stepper.value.navigateToStep(index.value);\n };\n\n // Styling and a11y\n const ariaCurrentValue = computed(() => (isActive.value ? 'step' : ('false' as Booleanish)));\n const ariaDisabledValue = computed(() => isDisabled.value.toString() as Booleanish);\n const tabIndexValue = computed(() => (isFocused.value || (index.value === 0 && !isSubstep.value) ? '0' : '-1'));\n\n const conditionalClasses = computed(() => ({\n 'b-step--active': isActive.value,\n 'b-step--completed': isCompleted.value,\n 'b-step--substep': isSubstep.value,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * Steps are components placed inside BentoSteppers to break down complex processes\n *\n * @example\n * import { BentoStep } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoStep },\n * template: `\n * <bento-stepper>\n * <bento-step>Step 1</bento-step>\n * <bento-step>\n * Step 2\n * <template #substeps>\n * <bento-step>Substep 1</bento-step>\n * <bento-step>Substep 2</bento-step>\n * </template>\n * </bento-step>\n * </bento-stepper>\n * `\n * }\n */\n\n export default {\n name: 'step',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./step.scss\" />\n"],"names":["useKeyboardNavigation","steps","focusOnStep","indexOffset","event","currentIndex","_a","focusOnPreviousStep","focusOnNextStep","BentoKeyboardNavigationKeyDownEvent","getStepPosition","stepState","listItemElement","listElement","useStepRegister","childrenSteps","position","step","STEPPER_STATE","BentoStepperTypeOption","BentoStepperTypeOption2","BentoStepperVariantOption","BentoStepperVariantOption2","__default__$1","messages","t","useI18n","ref","activeStepIndex","props","latestActiveStep","navigateToStep","index","currentStepContent","computed","stepsAmount","childrenStepsElements","buttonElement","isHorizontalVariant","allVisibleStepsElements","substeps","isStepActive","registerStep","removeStep","stepperState","conditionalClasses","watch","emit","keyboardNavigationListeners","provide","readonly","uuid","_sfc_main$1","__default__","slots","useSlots","buttonComponent","stepContent","stepper","inject","stepContentValue","substepsButtonElements","buttonElement2","activeSubStepIndex","latestActiveSubStepIndex","navigateToSubstep","value","onMounted","onBeforeUnmount","isSubstep","isFocused","isActive","isSubstepsVisible","isCompleted","isDisabled","ariaCurrentValue","ariaDisabledValue","tabIndexValue"],"mappings":"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","x_google_ignoreList":[5]}
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as c, inject as a, computed as r, provide as y, ref as b } from "vue";
2
- import { n as i } from "./_plugin-vue2_normalizer.71e2aa87.js";
3
- import { a as v } from "./button.cb90b55c.js";
4
- import { BentoInfoIcon as h } from "../info-icon.js";
5
- import { B as C } from "./index.e29a6907.js";
6
- import { C as T } from "./copy.6808b2dc.js";
7
- import { S } from "./search.471270fe.js";
8
- import { u as I } from "./i18n.eb5b985b.js";
9
- import { b as B } from "./tooltip.efddb5f3.js";
10
- import "../assets/index20.css";
2
+ import { n as i } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
3
+ import { B as v } from "./button.DhAUh5JA.js";
4
+ import { B as h } from "./info-icon.CLguYHRt.js";
5
+ import { B as C } from "./typography.Bjtu3Gca.js";
6
+ import { C as T } from "./copy.BtFWFG3q.js";
7
+ import { S as B } from "./search.CBKhp7zB.js";
8
+ import { u as S } from "./i18n.BQkEbtPM.js";
9
+ import { B as I } from "./tooltip.DR8rbIYw.js";
10
+ import "../assets/structured-list-item.css";
11
11
  const u = Symbol("structured list condensed style injection key"), _ = Symbol("structured list labels width injection key"), L = ["25-75", "33-66", "42-58", "50-50"], x = {}, E = /* @__PURE__ */ c({
12
12
  ...x,
13
13
  __name: "structured-list",
@@ -22,20 +22,18 @@ const u = Symbol("structured list condensed style injection key"), _ = Symbol("s
22
22
  return y(_, o), { __sfc: !0, props: t, isCondensed: e, computedLayout: s, computedLabelsWidth: o };
23
23
  }
24
24
  });
25
- var g = function() {
25
+ var D = function() {
26
26
  var t = this, e = t._self._c;
27
27
  return t._self._setupProxy, e("dl", { staticClass: "b-structured-list" }, [t._t("default")], 2);
28
- }, D = [], $ = /* @__PURE__ */ i(
28
+ }, $ = [], g = /* @__PURE__ */ i(
29
29
  E,
30
- g,
31
30
  D,
31
+ $,
32
32
  !1,
33
33
  null,
34
- "966548c9",
35
- null,
36
- null
34
+ "966548c9"
37
35
  );
38
- const Y = $.exports, N = {
36
+ const Y = g.exports, N = {
39
37
  "en-US": {
40
38
  search: "Search"
41
39
  }
@@ -53,12 +51,12 @@ const Y = $.exports, N = {
53
51
  truncate: { type: Boolean }
54
52
  },
55
53
  setup(n) {
56
- const t = n, e = "33%", { t: s } = I(), o = a(u, !1), l = a(_, b(e)), p = r(() => `flex-basis:${l.value}`), d = r(() => ({
54
+ const t = n, e = "33%", { t: s } = S(), o = a(u, !1), l = a(_, b(e)), p = r(() => `flex-basis:${l.value}`), d = r(() => ({
57
55
  "b-structured-list-item--condensed": o
58
56
  })), m = r(() => ({
59
57
  "b-structured-list-item__value--truncate": t.truncate
60
58
  })), f = r(() => o ? "caption" : "body");
61
- return { __sfc: !0, DEFAULT_LABELS_WIDTH: e, props: t, t: s, isCondensed: o, labelsWidth: l, computedLabelStyle: p, conditionalClasses: d, valueConditionalClasses: m, labelTypographyVariant: f, BentoButton: v, BentoInfoIcon: h, BentoTypography: C, Copy: T, SearchIcon: S, vBentoTooltipDirective: B };
59
+ return { __sfc: !0, DEFAULT_LABELS_WIDTH: e, props: t, t: s, isCondensed: o, labelsWidth: l, computedLabelStyle: p, conditionalClasses: d, valueConditionalClasses: m, labelTypographyVariant: f, BentoButton: v, BentoInfoIcon: h, BentoTypography: C, Copy: T, SearchIcon: B, vBentoTooltipDirective: I };
62
60
  }
63
61
  });
64
62
  var U = function() {
@@ -72,9 +70,7 @@ var U = function() {
72
70
  k,
73
71
  !1,
74
72
  null,
75
- "1045abf9",
76
- null,
77
- null
73
+ "1045abf9"
78
74
  );
79
75
  const z = O.exports;
80
76
  export {
@@ -82,4 +78,4 @@ export {
82
78
  u as S,
83
79
  z as a
84
80
  };
85
- //# sourceMappingURL=index.3c69be27.js.map
81
+ //# sourceMappingURL=structured-list-item.C9NTVDvT.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"structured-list-item.C9NTVDvT.js","sources":["../../src/components/structured-list/structured-list.keys.ts","../../src/components/structured-list/structured-list.types.ts","../../src/components/structured-list/structured-list.vue","../../src/components/structured-list/components/structered-list-item/structured-list-item.vue"],"sourcesContent":["export const STRUCTURED_LIST_CONDENSED_INJECTION_KEY = Symbol('structured list condensed style injection key');\nexport const STRUCTURED_LIST_LABELS_WIDTH_INJECTION_KEY = Symbol('structured list labels width injection key');\n","export type BentoStructuredListLayoutOptions = '25-75' | '33-66' | '42-58' | '50-50';\nexport const BentoStructuredListLayoutOptions = ['25-75', '33-66', '42-58', '50-50'];\n","<template>\n <dl class=\"b-structured-list\">\n <slot />\n </dl>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, provide } from 'vue';\n import {\n STRUCTURED_LIST_CONDENSED_INJECTION_KEY,\n STRUCTURED_LIST_LABELS_WIDTH_INJECTION_KEY,\n } from '@/components/structured-list/structured-list.keys';\n import { BentoStructuredListLayoutOptions } from './structured-list.types';\n\n const props = withDefaults(\n defineProps<{\n /**\n * Width of the labels container, in pixels. Overrides layout prop.\n */\n labelsWidth?: number;\n /**\n * The layout of the label value pair in percentage.\n * If labelsWidth is set, layout will be overriden by the static pixel value.\n *\n * If the value entered is not listed in the example\n * list below '33-66' will be applied\n * @example\n * '25-75'\n * '33-66'\n * '42-58'\n * '50-50'\n */\n layout?: BentoStructuredListLayoutOptions;\n }>(),\n {\n labelsWidth: null,\n layout: '33-66',\n }\n );\n\n const isCondensed = inject(STRUCTURED_LIST_CONDENSED_INJECTION_KEY, false);\n\n const computedLayout = computed(() =>\n BentoStructuredListLayoutOptions.includes(props.layout) ? props.layout : '33-66'\n );\n\n const computedLabelsWidth = computed(() => {\n if (isCondensed) {\n return '130px';\n }\n\n if (props.labelsWidth) {\n return `${props.labelsWidth}px`;\n }\n\n return `${computedLayout.value.split('-')[0]}%`;\n });\n\n provide(STRUCTURED_LIST_LABELS_WIDTH_INJECTION_KEY, computedLabelsWidth);\n</script>\n\n<script lang=\"ts\">\n /**\n * This is a list used to display pairs of information in a clear and organized manner.\n * `BentoStructureListItem` should be used to pass the label/value pairs to the list.\n *\n * @example\n * import { BentoStructuredListItem, BentoStructuredListItem } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoStructuredList, BentoStructuredListItem },\n * template: `\n * <bento-structured-list>\n * <bento-structured-list-item label=\"Payment\">\n * <bento-payment-method label=\"Klarna\" type=\"Klarna\" />\n * </bento-structured-list-item>\n * <bento-structured-list-item label=\"Amount\">\n * <bento-currency :currency=\"BentoCurrencyISOCode.USD\">\n * 123456\n * </bento-currency>\n * </bento-structured-list-item>\n * </bento-structured-list>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./structured-list.scss\" />\n","<template>\n <div class=\"b-structured-list-item\" :class=\"conditionalClasses\">\n <dt class=\"b-structured-list-item__label\" :style=\"computedLabelStyle\">\n <bento-typography :variant=\"labelTypographyVariant\">{{ label }}</bento-typography>\n <bento-info-icon v-if=\"labelInfo\" class=\"b-structured-list-item__icon\" :tooltip-text=\"labelInfo\" />\n </dt>\n <dd class=\"b-structured-list-item__value\" :class=\"valueConditionalClasses\">\n <slot />\n <copy v-if=\"copy\" class=\"b-structured-list-item__icon\" :text=\"copy\" />\n <bento-button\n v-if=\"search\"\n v-bento-tooltip-directive:top=\"searchTooltip ? searchTooltip : t('search')\"\n class=\"b-structured-list-item__icon\"\n variant=\"tertiary\"\n @click=\"search\"\n >\n <template #iconLeft>\n <search-icon :svg-title=\"$t('search')\" />\n </template>\n </bento-button>\n </dd>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, ref, Ref } from 'vue';\n\n // Components\n import { BentoButton } from '@/components/button';\n import { BentoInfoIcon } from '@/components/info-icon';\n import { BentoTypography } from '@/components/typography';\n import Copy from '@/components/internal/copy/copy.vue';\n import SearchIcon from '@adyen/ui-assets-icons-16/vue/search';\n\n // Utils\n import { useI18n } from '@/utils/ts/i18n';\n\n // Directives\n import { BentoTooltipDirective as vBentoTooltipDirective } from '@/directives';\n\n // Keys\n import {\n STRUCTURED_LIST_CONDENSED_INJECTION_KEY,\n STRUCTURED_LIST_LABELS_WIDTH_INJECTION_KEY,\n } from '../../structured-list.keys';\n\n import messages from '../../messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const DEFAULT_LABELS_WIDTH = '33%';\n\n const props = defineProps<{\n /**\n * Label to display for the value\n */\n label: string;\n /**\n * Text to display in info icon tooltip in the label to display for the value\n */\n labelInfo?: string;\n /**\n * Text to copy when the user clicks `Copy` icon\n */\n copy?: string;\n /**\n * Function to trigger when user clicks `Search` icon\n */\n search?: (event: Event) => void;\n /**\n * Text to display when the user hovers over `Search` icon\n */\n searchTooltip?: string;\n /**\n * Truncates the value of the item\n */\n truncate?: boolean;\n }>();\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const isCondensed = inject(STRUCTURED_LIST_CONDENSED_INJECTION_KEY, false);\n const labelsWidth = inject<Ref<string>>(STRUCTURED_LIST_LABELS_WIDTH_INJECTION_KEY, ref(DEFAULT_LABELS_WIDTH));\n const computedLabelStyle = computed(() => `flex-basis:${labelsWidth.value}`);\n const conditionalClasses = computed(() => ({\n 'b-structured-list-item--condensed': isCondensed,\n }));\n\n const valueConditionalClasses = computed(() => ({\n 'b-structured-list-item__value--truncate': props.truncate,\n }));\n\n const labelTypographyVariant = computed(() => (isCondensed ? 'caption' : 'body'));\n</script>\n\n<script lang=\"ts\">\n /**\n * This is an item of the `BentoStructuredList` meant to be used only with that component.\n * It consists of a label/value pair, and also the optional copy and search modifiers.\n *\n * @example\n * import { BentoCurrencyISOCode, BentoStructuredListItem, BentoStructuredListItem } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoStructuredListItem, BentoStructuredListItem },\n * template: `\n * <bento-structured-list>\n * <bento-structured-list-item label=\"Shopper\" search='searchShopper' search-tooltip='Find shopper'>\n * <bento-typography>\n * 143442642\n * </bento-status>\n * </bento-structured-list-item>\n * <bento-structured-list-item label=\"Amount\" copy='123456'>\n * <bento-currency :currency=\"BentoCurrencyISOCode.USD\">\n * 123456\n * </bento-currency>\n * </bento-structured-list-item>\n * </bento-structured-list>\n * `\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./structured-list-item.scss\" />\n"],"names":["STRUCTURED_LIST_CONDENSED_INJECTION_KEY","STRUCTURED_LIST_LABELS_WIDTH_INJECTION_KEY","BentoStructuredListLayoutOptions","__default__$1","isCondensed","inject","computedLayout","computed","props","computedLabelsWidth","provide","__default__","messages","DEFAULT_LABELS_WIDTH","t","useI18n","labelsWidth","ref","computedLabelStyle","conditionalClasses","valueConditionalClasses","labelTypographyVariant"],"mappings":";;;;;;;;;;AAAa,MAAAA,IAAA,OAAA,+CAAA,GACAC,IAAA,OAAA,4CAAA,GCANC,IAAA,CAAA,SAAA,SAAA,SAAA,OAAA,GCoFHC,IAAA,CAAA;;;;;;;;iBA7CAC,IAAAC,EAAAL,GAAA,EAAA,GAEAM,IAAAC;AAAA,MAAuB,MAAAL,EAAA,SAAAM,EAAA,MAAA,IAAAA,EAAA,SAAA;AAAA,IACsD,GAG7EC,IAAAF,EAAA,MACIH,IACI,UAGJI,EAAA,cACI,GAAAA,EAAA,WAAA,OAGJ,GAAAF,EAAA,MAAA,MAAA,GAAA,EAAA,CAAA,CAAA,GAA4C;AAGhD,WAAAI,EAAAT,GAAAQ,CAAA;;;;;;;;;;;;;;;;;;GC8DAE,IAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;;;;;;iBAxEAC,IAAA,OA6BA,EAAA,GAAAC,EAAA,IAAAC,EAAA,GACAX,IAAAC,EAAAL,GAAA,EAAA,GACAgB,IAAAX,EAAAJ,GAAAgB,EAAAJ,CAAA,CAAA,GACAK,IAAAX,EAAA,MAAA,cAAAS,EAAA,KAAA,EAAA,GACAG,IAAAZ,EAAA,OAAA;AAAA,MAA2C,qCAAAH;AAAA,IACF,EAAA,GAGzCgB,IAAAb,EAAA,OAAA;AAAA,MAAgD,2CAAAC,EAAA;AAAA,IACK,EAAA,GAGrDa,IAAAd,EAAA,MAAAH,IAAA,YAAA,MAAA;;;;;;;;;;;;;;;;;;"}