@adyen/bento-vue2 1.26.0 → 1.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (577) hide show
  1. package/dist/@types/components.d.ts +8 -0
  2. package/dist/@types/index.d.ts +967 -374
  3. package/dist/accordion.js +3 -101
  4. package/dist/accordion.js.map +1 -1
  5. package/dist/action-bar.js +2 -231
  6. package/dist/action-bar.js.map +1 -1
  7. package/dist/alert.js +5 -116
  8. package/dist/alert.js.map +1 -1
  9. package/dist/assets/{index2.css → accordion-item.css} +1 -1
  10. package/dist/assets/{index3.css → action-bar.css} +1 -1
  11. package/dist/assets/alert.css +1 -0
  12. package/dist/assets/base-modal.css +1 -1
  13. package/dist/assets/button-actions.css +1 -1
  14. package/dist/assets/button.css +1 -1
  15. package/dist/assets/{index7.css → card.css} +1 -1
  16. package/dist/assets/checkbox-input.css +1 -1
  17. package/dist/assets/{index9.css → code-snippet.css} +1 -1
  18. package/dist/assets/dashboard-section.css +1 -0
  19. package/dist/assets/dashed-underline.css +1 -0
  20. package/dist/assets/data-grid-template.css +1 -0
  21. package/dist/assets/data-grid.css +1 -0
  22. package/dist/assets/dialog-page.css +1 -1
  23. package/dist/assets/dropdown-default-textbox.css +1 -1
  24. package/dist/assets/dropdown.css +1 -1
  25. package/dist/assets/filter-bar.css +1 -0
  26. package/dist/assets/{index15.css → form-layout-title.css} +1 -1
  27. package/dist/assets/{index25.css → input-field.css} +1 -1
  28. package/dist/assets/listbox-option-tag.css +1 -1
  29. package/dist/assets/{index26.css → menu.css} +1 -1
  30. package/dist/assets/{index22.css → modal-fullscreen.css} +1 -1
  31. package/dist/assets/{index28.css → popover.css} +1 -1
  32. package/dist/assets/radio-input.css +1 -1
  33. package/dist/assets/segmented-control.css +1 -0
  34. package/dist/assets/selection-card-group.css +1 -0
  35. package/dist/assets/{index37.css → sidepanel.css} +1 -1
  36. package/dist/assets/status.css +1 -0
  37. package/dist/assets/structured-list-item.css +1 -0
  38. package/dist/assets/{index43.css → tabs.css} +1 -1
  39. package/dist/assets/toggle.css +1 -0
  40. package/dist/assets/tutorial.css +1 -0
  41. package/dist/assets/use-cached-selected-values.css +1 -1
  42. package/dist/avatar-image.js +1 -1
  43. package/dist/badge.js +22 -24
  44. package/dist/badge.js.map +1 -1
  45. package/dist/button.js +14 -94
  46. package/dist/button.js.map +1 -1
  47. package/dist/card.js +4 -114
  48. package/dist/card.js.map +1 -1
  49. package/dist/checkbox.js +8 -155
  50. package/dist/checkbox.js.map +1 -1
  51. package/dist/chunks/1-generic-use.CZhwP2Yc.js +5 -0
  52. package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +1 -0
  53. package/dist/chunks/1-generic-use.R6x8PEGA.js +5 -0
  54. package/dist/chunks/1-generic-use.R6x8PEGA.js.map +1 -0
  55. package/dist/chunks/2-generic-use.CNKjB4B7.js +5 -0
  56. package/dist/chunks/2-generic-use.CNKjB4B7.js.map +1 -0
  57. package/dist/chunks/2-generic-use.w0fUhovx.js +5 -0
  58. package/dist/chunks/2-generic-use.w0fUhovx.js.map +1 -0
  59. package/dist/chunks/3-generic-use.BLEzR04g.js +5 -0
  60. package/dist/chunks/3-generic-use.BLEzR04g.js.map +1 -0
  61. package/dist/chunks/3-generic-use.D3NFHgI4.js +5 -0
  62. package/dist/chunks/3-generic-use.D3NFHgI4.js.map +1 -0
  63. package/dist/chunks/4-generic-use.CULEpvgj.js +5 -0
  64. package/dist/chunks/4-generic-use.CULEpvgj.js.map +1 -0
  65. package/dist/chunks/4-generic-use.D82y3n39.js +5 -0
  66. package/dist/chunks/4-generic-use.D82y3n39.js.map +1 -0
  67. package/dist/chunks/_plugin-vue2_normalizer.CeySl7Fu.js +11 -0
  68. package/dist/chunks/_plugin-vue2_normalizer.CeySl7Fu.js.map +1 -0
  69. package/dist/chunks/accordion-item.DmnrjNzw.js +100 -0
  70. package/dist/chunks/accordion-item.DmnrjNzw.js.map +1 -0
  71. package/dist/chunks/action-bar.Bebh6PHI.js +147 -0
  72. package/dist/chunks/action-bar.Bebh6PHI.js.map +1 -0
  73. package/dist/chunks/adding-payment-methods.BJZLPxtM.js +5 -0
  74. package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +1 -0
  75. package/dist/chunks/adding-payment-methods.Dle8zt43.js +5 -0
  76. package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +1 -0
  77. package/dist/chunks/adyen-giving.Ffw_DlJK.js +5 -0
  78. package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +1 -0
  79. package/dist/chunks/adyen-giving.LiKHj_jY.js +5 -0
  80. package/dist/chunks/adyen-giving.LiKHj_jY.js.map +1 -0
  81. package/dist/chunks/alert.CJyTM4Az.js +96 -0
  82. package/dist/chunks/alert.CJyTM4Az.js.map +1 -0
  83. package/dist/chunks/{aria-label.ac9651a5.js → aria-label.CaUURpnB.js} +1 -1
  84. package/dist/chunks/{aria-label.ac9651a5.js.map → aria-label.CaUURpnB.js.map} +1 -1
  85. package/dist/chunks/{index.7eefc59c.js → avatar-image.DhlR-7Yg.js} +22 -24
  86. package/dist/chunks/avatar-image.DhlR-7Yg.js.map +1 -0
  87. package/dist/chunks/base-button.DER7_IsF.js +86 -0
  88. package/dist/chunks/{base-button.ad74b6f8.js.map → base-button.DER7_IsF.js.map} +1 -1
  89. package/dist/chunks/{base-modal.1fff7abe.js → base-modal.C5I7bR0d.js} +42 -46
  90. package/dist/chunks/{base-modal.1fff7abe.js.map → base-modal.C5I7bR0d.js.map} +1 -1
  91. package/dist/chunks/{base-modal.keys.b08a6bdf.js → base-modal.keys.C2PQXcE2.js} +1 -1
  92. package/dist/chunks/{base-modal.keys.b08a6bdf.js.map → base-modal.keys.C2PQXcE2.js.map} +1 -1
  93. package/dist/chunks/{button-actions-with-menu.e845d77a.js → button-actions-with-menu.f3yuLK-L.js} +25 -27
  94. package/dist/chunks/{button-actions-with-menu.e845d77a.js.map → button-actions-with-menu.f3yuLK-L.js.map} +1 -1
  95. package/dist/chunks/button-actions.Bg9ey0p6.js +111 -0
  96. package/dist/chunks/button-actions.Bg9ey0p6.js.map +1 -0
  97. package/dist/chunks/button.DhAUh5JA.js +99 -0
  98. package/dist/chunks/button.DhAUh5JA.js.map +1 -0
  99. package/dist/chunks/{calendar.640b8d25.js → calendar.B69z8gjb.js} +287 -332
  100. package/dist/chunks/{calendar.640b8d25.js.map → calendar.B69z8gjb.js.map} +1 -1
  101. package/dist/chunks/card.70Xvba2C.js +115 -0
  102. package/dist/chunks/card.70Xvba2C.js.map +1 -0
  103. package/dist/chunks/checkbox-group.B-KdeRXC.js +152 -0
  104. package/dist/chunks/checkbox-group.B-KdeRXC.js.map +1 -0
  105. package/dist/chunks/{checkbox-input.1c3cc8ed.js → checkbox-input.DwDwI2BD.js} +27 -30
  106. package/dist/chunks/{checkbox-input.1c3cc8ed.js.map → checkbox-input.DwDwI2BD.js.map} +1 -1
  107. package/dist/chunks/{checkbox.bfed007c.js → checkbox.Bi2RDBEZ.js} +21 -23
  108. package/dist/chunks/{checkbox.bfed007c.js.map → checkbox.Bi2RDBEZ.js.map} +1 -1
  109. package/dist/chunks/checkmark-circle-fill.DVl6QSwm.js +24 -0
  110. package/dist/chunks/{checkmark-circle-fill.345311d2.js.map → checkmark-circle-fill.DVl6QSwm.js.map} +1 -1
  111. package/dist/chunks/{checkmark-small.520f01b1.js → checkmark-small.BtF8b2gE.js} +6 -8
  112. package/dist/chunks/{checkmark-small.520f01b1.js.map → checkmark-small.BtF8b2gE.js.map} +1 -1
  113. package/dist/chunks/{chevron-left.5edf02ac.js → chevron-left.CtnrsqUy.js} +13 -17
  114. package/dist/chunks/{chevron-left.5edf02ac.js.map → chevron-left.CtnrsqUy.js.map} +1 -1
  115. package/dist/chunks/{chevron-up.81185563.js → chevron-up.B2uWhZf7.js} +14 -18
  116. package/dist/chunks/{chevron-up.81185563.js.map → chevron-up.B2uWhZf7.js.map} +1 -1
  117. package/dist/chunks/click-outside.DABh6NLr.js +23 -0
  118. package/dist/chunks/click-outside.DABh6NLr.js.map +1 -0
  119. package/dist/chunks/code-snippet.C4IbjAhH.js +968 -0
  120. package/dist/chunks/code-snippet.C4IbjAhH.js.map +1 -0
  121. package/dist/chunks/{controls-group.4fb50009.js → controls-group.cSRFiEVO.js} +17 -19
  122. package/dist/chunks/{controls-group.4fb50009.js.map → controls-group.cSRFiEVO.js.map} +1 -1
  123. package/dist/chunks/{copy.f85700c6.js → copy.BtFWFG3q.js} +15 -19
  124. package/dist/chunks/{copy.f85700c6.js.map → copy.BtFWFG3q.js.map} +1 -1
  125. package/dist/chunks/country.KayLT0zy.js +93 -0
  126. package/dist/chunks/country.KayLT0zy.js.map +1 -0
  127. package/dist/chunks/{country.types.002caff2.js → country.types.Br0AjxGy.js} +5 -5
  128. package/dist/chunks/{country.types.002caff2.js.map → country.types.Br0AjxGy.js.map} +1 -1
  129. package/dist/chunks/{cross-circle-fill.27580c4b.js → cross-circle-fill.CnYH4R_h.js} +7 -9
  130. package/dist/chunks/{cross-circle-fill.27580c4b.js.map → cross-circle-fill.CnYH4R_h.js.map} +1 -1
  131. package/dist/chunks/{cross-small.e851e0de.js → cross-small.BLUwtRB-.js} +9 -11
  132. package/dist/chunks/{cross-small.e851e0de.js.map → cross-small.BLUwtRB-.js.map} +1 -1
  133. package/dist/chunks/{cross.04678d81.js → cross.CsUPDmaA.js} +9 -11
  134. package/dist/chunks/{cross.04678d81.js.map → cross.CsUPDmaA.js.map} +1 -1
  135. package/dist/chunks/currency.H7n7RQiX.js +113 -0
  136. package/dist/chunks/currency.H7n7RQiX.js.map +1 -0
  137. package/dist/chunks/dashboard-section.BcH-_en7.js +105 -0
  138. package/dist/chunks/dashboard-section.BcH-_en7.js.map +1 -0
  139. package/dist/chunks/dashed-underline.ChUlcFJR.js +59 -0
  140. package/dist/chunks/dashed-underline.ChUlcFJR.js.map +1 -0
  141. package/dist/chunks/data-grid-template.DqG5bNeD.js +66 -0
  142. package/dist/chunks/data-grid-template.DqG5bNeD.js.map +1 -0
  143. package/dist/chunks/{data-grid-template.keys.a819a991.js → data-grid-template.keys.2_AkxuNT.js} +1 -1
  144. package/dist/chunks/{data-grid-template.keys.a819a991.js.map → data-grid-template.keys.2_AkxuNT.js.map} +1 -1
  145. package/dist/chunks/data-grid.CvHAdmvs.js +2022 -0
  146. package/dist/chunks/data-grid.CvHAdmvs.js.map +1 -0
  147. package/dist/chunks/{date-input.9186a0bf.js → date-input.BqBdAO1E.js} +1 -1
  148. package/dist/chunks/{date-input.9186a0bf.js.map → date-input.BqBdAO1E.js.map} +1 -1
  149. package/dist/chunks/date-picker.ByP2Wpo0.js +196 -0
  150. package/dist/chunks/date-picker.ByP2Wpo0.js.map +1 -0
  151. package/dist/chunks/{index.8b8c3b16.js → date-range-picker.DrnklTJ-.js} +113 -117
  152. package/dist/chunks/date-range-picker.DrnklTJ-.js.map +1 -0
  153. package/dist/chunks/{index.b21197ca.js → date.DKjxxR6P.js} +44 -51
  154. package/dist/chunks/date.DKjxxR6P.js.map +1 -0
  155. package/dist/chunks/{debounce.b5ef6acf.js → debounce.DUTu11PS.js} +1 -1
  156. package/dist/chunks/{debounce.b5ef6acf.js.map → debounce.DUTu11PS.js.map} +1 -1
  157. package/dist/chunks/{dialog-page.73da22cf.js → dialog-page.DAh0M4mT.js} +20 -24
  158. package/dist/chunks/{dialog-page.73da22cf.js.map → dialog-page.DAh0M4mT.js.map} +1 -1
  159. package/dist/chunks/divider.BZfeYmB9.js +30 -0
  160. package/dist/chunks/divider.BZfeYmB9.js.map +1 -0
  161. package/dist/chunks/{dropdown-default-textbox.54ca1b18.js → dropdown-default-textbox.CKOkl_Qa.js} +30 -34
  162. package/dist/chunks/{dropdown-default-textbox.54ca1b18.js.map → dropdown-default-textbox.CKOkl_Qa.js.map} +1 -1
  163. package/dist/chunks/dropdown-tag.DCMKQy-E.js +214 -0
  164. package/dist/chunks/dropdown-tag.DCMKQy-E.js.map +1 -0
  165. package/dist/chunks/{dropdown.10c034aa.js → dropdown.yhhQCKve.js} +195 -214
  166. package/dist/chunks/dropdown.yhhQCKve.js.map +1 -0
  167. package/dist/chunks/empty-state.BqVOj4v1.js +151 -0
  168. package/dist/chunks/empty-state.BqVOj4v1.js.map +1 -0
  169. package/dist/chunks/error-message.BSxUoE3_.js +107 -0
  170. package/dist/chunks/{error-message.31ec12b7.js.map → error-message.BSxUoE3_.js.map} +1 -1
  171. package/dist/chunks/events.CMzGybJJ.js +47 -0
  172. package/dist/chunks/events.CMzGybJJ.js.map +1 -0
  173. package/dist/chunks/filter-bar.AhsOPMZ1.js +2119 -0
  174. package/dist/chunks/filter-bar.AhsOPMZ1.js.map +1 -0
  175. package/dist/chunks/{fixed-scroller.4eb9a9ac.js → fixed-scroller.Bq1AgPnw.js} +18 -20
  176. package/dist/chunks/{fixed-scroller.4eb9a9ac.js.map → fixed-scroller.Bq1AgPnw.js.map} +1 -1
  177. package/dist/chunks/{index.d553d3d1.js → focus-trap.DSkLNO_i.js} +35 -37
  178. package/dist/chunks/focus-trap.DSkLNO_i.js.map +1 -0
  179. package/dist/chunks/{footer-actions.a1e09b4f.js → footer-actions.DqMRmlV_.js} +11 -13
  180. package/dist/chunks/{footer-actions.a1e09b4f.js.map → footer-actions.DqMRmlV_.js.map} +1 -1
  181. package/dist/chunks/form-layout-title.BzNU0B72.js +187 -0
  182. package/dist/chunks/form-layout-title.BzNU0B72.js.map +1 -0
  183. package/dist/chunks/{form-layout.types.a7a1438d.js → form-layout.types.D3EKzbE7.js} +1 -1
  184. package/dist/chunks/{form-layout.types.a7a1438d.js.map → form-layout.types.D3EKzbE7.js.map} +1 -1
  185. package/dist/chunks/{get-slot-text.99c3d860.js → get-slot-text.Cgn-E48s.js} +2 -2
  186. package/dist/chunks/{get-slot-text.99c3d860.js.map → get-slot-text.Cgn-E48s.js.map} +1 -1
  187. package/dist/chunks/{grid-layout.e0025286.js → grid-layout.HvTAa4to.js} +11 -13
  188. package/dist/chunks/{grid-layout.e0025286.js.map → grid-layout.HvTAa4to.js.map} +1 -1
  189. package/dist/chunks/header.DmKHCmXh.js +245 -0
  190. package/dist/chunks/header.DmKHCmXh.js.map +1 -0
  191. package/dist/chunks/{i18n.eb5b985b.js → i18n.BQkEbtPM.js} +2 -2
  192. package/dist/chunks/{i18n.eb5b985b.js.map → i18n.BQkEbtPM.js.map} +1 -1
  193. package/dist/chunks/image.B3uqhFjl.js +82 -0
  194. package/dist/chunks/image.B3uqhFjl.js.map +1 -0
  195. package/dist/chunks/{index.fdf12170.js → index.B_EJflcs.js} +2 -2
  196. package/dist/chunks/{index.fdf12170.js.map → index.B_EJflcs.js.map} +1 -1
  197. package/dist/chunks/{index.f55fdc32.js → index.B_UZQ6qF.js} +209 -243
  198. package/dist/chunks/{index.f55fdc32.js.map → index.B_UZQ6qF.js.map} +1 -1
  199. package/dist/chunks/{index.4c062058.js → index.Cl4_42j5.js} +1 -1
  200. package/dist/chunks/{index.4c062058.js.map → index.Cl4_42j5.js.map} +1 -1
  201. package/dist/chunks/index.OCPp3NST.js +126 -0
  202. package/dist/chunks/index.OCPp3NST.js.map +1 -0
  203. package/dist/chunks/{index.d80206ed.js → index.Z84QE0E2.js} +2 -2
  204. package/dist/chunks/{index.d80206ed.js.map → index.Z84QE0E2.js.map} +1 -1
  205. package/dist/chunks/{index.86453263.js → index.xqFSZOAb.js} +2 -2
  206. package/dist/chunks/{index.86453263.js.map → index.xqFSZOAb.js.map} +1 -1
  207. package/dist/chunks/info-icon.CLguYHRt.js +41 -0
  208. package/dist/chunks/info-icon.CLguYHRt.js.map +1 -0
  209. package/dist/chunks/{info.8b6328aa.js → info.CyeBsLgt.js} +9 -11
  210. package/dist/chunks/{info.8b6328aa.js.map → info.CyeBsLgt.js.map} +1 -1
  211. package/dist/chunks/input-field.BnlEPPYr.js +218 -0
  212. package/dist/chunks/input-field.BnlEPPYr.js.map +1 -0
  213. package/dist/chunks/internal-error.BLZodVBE.js +5 -0
  214. package/dist/chunks/internal-error.BLZodVBE.js.map +1 -0
  215. package/dist/chunks/internal-error.BmrwJFpR.js +5 -0
  216. package/dist/chunks/internal-error.BmrwJFpR.js.map +1 -0
  217. package/dist/chunks/{keyboard-navigation.ca47dfa8.js → keyboard-navigation.Clz1jOaA.js} +2 -2
  218. package/dist/chunks/{keyboard-navigation.ca47dfa8.js.map → keyboard-navigation.Clz1jOaA.js.map} +1 -1
  219. package/dist/chunks/{index.317fca12.js → link.DJ1A53gF.js} +20 -24
  220. package/dist/chunks/link.DJ1A53gF.js.map +1 -0
  221. package/dist/chunks/listbox-option-tag.BDjsYOE1.js +75 -0
  222. package/dist/chunks/listbox-option-tag.BDjsYOE1.js.map +1 -0
  223. package/dist/chunks/{loading-button.eafc9e1b.js → loading-button.CoF1IhEU.js} +32 -34
  224. package/dist/chunks/{loading-button.eafc9e1b.js.map → loading-button.CoF1IhEU.js.map} +1 -1
  225. package/dist/chunks/loading-indicator.DXc7I1Lm.js +48 -0
  226. package/dist/chunks/loading-indicator.DXc7I1Lm.js.map +1 -0
  227. package/dist/chunks/{index.1ea85d4a.js → menu.2TwUMlA9.js} +82 -94
  228. package/dist/chunks/menu.2TwUMlA9.js.map +1 -0
  229. package/dist/chunks/modal-fullscreen.BB_8EMNo.js +196 -0
  230. package/dist/chunks/modal-fullscreen.BB_8EMNo.js.map +1 -0
  231. package/dist/chunks/{modal-fullscreen.keys.b9f31632.js → modal-fullscreen.keys.CMba3hYp.js} +1 -1
  232. package/dist/chunks/{modal-fullscreen.keys.b9f31632.js.map → modal-fullscreen.keys.CMba3hYp.js.map} +1 -1
  233. package/dist/chunks/modal.DLwvcaRx.js +439 -0
  234. package/dist/chunks/modal.DLwvcaRx.js.map +1 -0
  235. package/dist/chunks/no-results-found.Bg_ZcEid.js +5 -0
  236. package/dist/chunks/no-results-found.Bg_ZcEid.js.map +1 -0
  237. package/dist/chunks/no-results-found.BqvYsBR6.js +5 -0
  238. package/dist/chunks/no-results-found.BqvYsBR6.js.map +1 -0
  239. package/dist/chunks/notifications-cleared.BMZk37uf.js +5 -0
  240. package/dist/chunks/notifications-cleared.BMZk37uf.js.map +1 -0
  241. package/dist/chunks/notifications-cleared.C7W9ZXY7.js +5 -0
  242. package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +1 -0
  243. package/dist/chunks/{on-click-outside.3e0c3e2a.js → on-click-outside.CcNG5w7_.js} +1 -1
  244. package/dist/chunks/{on-click-outside.3e0c3e2a.js.map → on-click-outside.CcNG5w7_.js.map} +1 -1
  245. package/dist/chunks/page-not-found.COJLPVaU.js +5 -0
  246. package/dist/chunks/page-not-found.COJLPVaU.js.map +1 -0
  247. package/dist/chunks/page-not-found.DWW6W-PZ.js +5 -0
  248. package/dist/chunks/page-not-found.DWW6W-PZ.js.map +1 -0
  249. package/dist/chunks/pagination.BXjbVe4Z.js +494 -0
  250. package/dist/chunks/pagination.BXjbVe4Z.js.map +1 -0
  251. package/dist/chunks/{payment-method.6c1ce07c.js → payment-method.D9Qx-s4V.js} +19 -21
  252. package/dist/chunks/{payment-method.6c1ce07c.js.map → payment-method.D9Qx-s4V.js.map} +1 -1
  253. package/dist/chunks/payment-method.types.CJKfZQN5.js +5 -0
  254. package/dist/chunks/payment-method.types.CJKfZQN5.js.map +1 -0
  255. package/dist/chunks/planned-maintenance.C61sWB9h.js +5 -0
  256. package/dist/chunks/planned-maintenance.C61sWB9h.js.map +1 -0
  257. package/dist/chunks/planned-maintenance.jmWYTdet.js +5 -0
  258. package/dist/chunks/planned-maintenance.jmWYTdet.js.map +1 -0
  259. package/dist/chunks/{index.15b088b9.js → popover.B8YH92W8.js} +31 -37
  260. package/dist/chunks/popover.B8YH92W8.js.map +1 -0
  261. package/dist/chunks/{index.671768a1.js → popper-container.Bt02N3o1.js} +12 -15
  262. package/dist/chunks/popper-container.Bt02N3o1.js.map +1 -0
  263. package/dist/chunks/radio-group.CPbBFTzB.js +211 -0
  264. package/dist/chunks/radio-group.CPbBFTzB.js.map +1 -0
  265. package/dist/chunks/{radio-input.c6550a9c.js → radio-input.BQcC0INR.js} +17 -19
  266. package/dist/chunks/radio-input.BQcC0INR.js.map +1 -0
  267. package/dist/chunks/referrals.BvtT-kQS.js +5 -0
  268. package/dist/chunks/referrals.BvtT-kQS.js.map +1 -0
  269. package/dist/chunks/referrals.aX8WZigH.js +5 -0
  270. package/dist/chunks/referrals.aX8WZigH.js.map +1 -0
  271. package/dist/chunks/{refresh.71a03998.js → refresh.BKI9WwKh.js} +7 -9
  272. package/dist/chunks/{refresh.71a03998.js.map → refresh.BKI9WwKh.js.map} +1 -1
  273. package/dist/chunks/{resize.a041304d.js → resize.Bqks3WUm.js} +1 -1
  274. package/dist/chunks/{resize.a041304d.js.map → resize.Bqks3WUm.js.map} +1 -1
  275. package/dist/chunks/search-bar.CsAgO-t5.js +89 -0
  276. package/dist/chunks/search-bar.CsAgO-t5.js.map +1 -0
  277. package/dist/chunks/{search.471270fe.js → search.CBKhp7zB.js} +10 -12
  278. package/dist/chunks/{search.471270fe.js.map → search.CBKhp7zB.js.map} +1 -1
  279. package/dist/chunks/secondary-nav.CNgpPxUU.js +97 -0
  280. package/dist/chunks/secondary-nav.CNgpPxUU.js.map +1 -0
  281. package/dist/chunks/segmented-control.DGjIC7Ab.js +111 -0
  282. package/dist/chunks/segmented-control.DGjIC7Ab.js.map +1 -0
  283. package/dist/chunks/segmented-control.types.BHRLV8KU.js +5 -0
  284. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -0
  285. package/dist/chunks/selection-card-group.DlOs8BkR.js +247 -0
  286. package/dist/chunks/selection-card-group.DlOs8BkR.js.map +1 -0
  287. package/dist/chunks/sidepanel.BBjm2QvZ.js +187 -0
  288. package/dist/chunks/sidepanel.BBjm2QvZ.js.map +1 -0
  289. package/dist/chunks/{sidepanel.keys.1ed8a57c.js → sidepanel.keys.R0DKQuYx.js} +1 -1
  290. package/dist/chunks/{sidepanel.keys.1ed8a57c.js.map → sidepanel.keys.R0DKQuYx.js.map} +1 -1
  291. package/dist/chunks/status.types.BhbOYpZx.js +36 -0
  292. package/dist/chunks/status.types.BhbOYpZx.js.map +1 -0
  293. package/dist/chunks/step.DY8Txb6a.js +234 -0
  294. package/dist/chunks/step.DY8Txb6a.js.map +1 -0
  295. package/dist/chunks/structured-list-item.C9NTVDvT.js +81 -0
  296. package/dist/chunks/structured-list-item.C9NTVDvT.js.map +1 -0
  297. package/dist/chunks/success.DhioLvPD.js +5 -0
  298. package/dist/chunks/success.DhioLvPD.js.map +1 -0
  299. package/dist/chunks/success.nNwxJRBS.js +5 -0
  300. package/dist/chunks/success.nNwxJRBS.js.map +1 -0
  301. package/dist/chunks/summary-grid-item-custom.CJpDnoPw.js +573 -0
  302. package/dist/chunks/summary-grid-item-custom.CJpDnoPw.js.map +1 -0
  303. package/dist/chunks/{summary-grid.keys.1d1028c2.js → summary-grid.keys.BBbFrFGF.js} +1 -1
  304. package/dist/chunks/{summary-grid.keys.1d1028c2.js.map → summary-grid.keys.BBbFrFGF.js.map} +1 -1
  305. package/dist/chunks/tabs.CE65f3E_.js +140 -0
  306. package/dist/chunks/tabs.CE65f3E_.js.map +1 -0
  307. package/dist/chunks/{tabs.keys.358742f2.js → tabs.keys.Bc2pSKRw.js} +1 -1
  308. package/dist/chunks/{tabs.keys.358742f2.js.map → tabs.keys.Bc2pSKRw.js.map} +1 -1
  309. package/dist/chunks/tag.bhKrZHTU.js +64 -0
  310. package/dist/chunks/tag.bhKrZHTU.js.map +1 -0
  311. package/dist/chunks/{teleport.84b0f20b.js → teleport.CQKBJZU5.js} +14 -16
  312. package/dist/chunks/{teleport.84b0f20b.js.map → teleport.CQKBJZU5.js.map} +1 -1
  313. package/dist/chunks/textarea.CcKbtQBs.js +208 -0
  314. package/dist/chunks/textarea.CcKbtQBs.js.map +1 -0
  315. package/dist/chunks/timeline-item.ScTrUBKC.js +364 -0
  316. package/dist/chunks/timeline-item.ScTrUBKC.js.map +1 -0
  317. package/dist/chunks/toast.0EYDj8o-.js +165 -0
  318. package/dist/chunks/toast.0EYDj8o-.js.map +1 -0
  319. package/dist/chunks/toggle-button.2U-vbQhk.js +83 -0
  320. package/dist/chunks/toggle-button.2U-vbQhk.js.map +1 -0
  321. package/dist/chunks/toggle.CiOVTWlk.js +121 -0
  322. package/dist/chunks/toggle.CiOVTWlk.js.map +1 -0
  323. package/dist/chunks/{tooltip.58ef3f4a.js → tooltip.DR8rbIYw.js} +29 -32
  324. package/dist/chunks/tooltip.DR8rbIYw.js.map +1 -0
  325. package/dist/chunks/tutorial.DMm12L0S.js +335 -0
  326. package/dist/chunks/tutorial.DMm12L0S.js.map +1 -0
  327. package/dist/chunks/{index.dd30e538.js → typography.Bjtu3Gca.js} +30 -32
  328. package/dist/chunks/typography.Bjtu3Gca.js.map +1 -0
  329. package/dist/chunks/{unique-id.a2a2b458.js → unique-id.XFfoKuc2.js} +14 -20
  330. package/dist/chunks/{unique-id.a2a2b458.js.map → unique-id.XFfoKuc2.js.map} +1 -1
  331. package/dist/chunks/upload-files.5wQwbfkp.js +5 -0
  332. package/dist/chunks/upload-files.5wQwbfkp.js.map +1 -0
  333. package/dist/chunks/upload-files.jTQY6y2X.js +5 -0
  334. package/dist/chunks/upload-files.jTQY6y2X.js.map +1 -0
  335. package/dist/chunks/{use-bento-toast-controller.c3277f73.js → use-bento-toast-controller.BifdE4ak.js} +4 -4
  336. package/dist/chunks/{use-bento-toast-controller.c3277f73.js.map → use-bento-toast-controller.BifdE4ak.js.map} +1 -1
  337. package/dist/chunks/{use-cached-selected-values.69297473.js → use-cached-selected-values.CVLzxvTi.js} +345 -346
  338. package/dist/chunks/use-cached-selected-values.CVLzxvTi.js.map +1 -0
  339. package/dist/chunks/{use-click-outside.941d1600.js → use-click-outside.DbjR7Lh4.js} +2 -2
  340. package/dist/chunks/{use-click-outside.941d1600.js.map → use-click-outside.DbjR7Lh4.js.map} +1 -1
  341. package/dist/chunks/{use-country-items.6b7985bf.js → use-country-items.C25TI6tp.js} +4 -4
  342. package/dist/chunks/{use-country-items.6b7985bf.js.map → use-country-items.C25TI6tp.js.map} +1 -1
  343. package/dist/chunks/{use-default-slot-validator.b9bff4c6.js → use-default-slot-validator.BDn0wkYP.js} +2 -2
  344. package/dist/chunks/{use-default-slot-validator.b9bff4c6.js.map → use-default-slot-validator.BDn0wkYP.js.map} +1 -1
  345. package/dist/chunks/{use-expandable-content-height.62fc84e5.js → use-expandable-content-height.GkjjbmPy.js} +1 -1
  346. package/dist/chunks/{use-expandable-content-height.62fc84e5.js.map → use-expandable-content-height.GkjjbmPy.js.map} +1 -1
  347. package/dist/chunks/{use-form-layout-loading.d03e5d48.js → use-form-layout-loading.D3lALhtC.js} +2 -2
  348. package/dist/chunks/{use-form-layout-loading.d03e5d48.js.map → use-form-layout-loading.D3lALhtC.js.map} +1 -1
  349. package/dist/chunks/use-has-slot.C9lQZ6nz.js +6 -0
  350. package/dist/chunks/{use-has-slot.fbeb19ec.js.map → use-has-slot.C9lQZ6nz.js.map} +1 -1
  351. package/dist/chunks/warning-filled.CLKRzGMT.js +24 -0
  352. package/dist/chunks/warning-filled.CLKRzGMT.js.map +1 -0
  353. package/dist/chunks/wrong-environment.BOsyKdRI.js +5 -0
  354. package/dist/chunks/wrong-environment.BOsyKdRI.js.map +1 -0
  355. package/dist/chunks/wrong-environment.BiHTPtbJ.js +5 -0
  356. package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +1 -0
  357. package/dist/click-outside.js +2 -20
  358. package/dist/click-outside.js.map +1 -1
  359. package/dist/code-snippet.js +5 -2050
  360. package/dist/code-snippet.js.map +1 -1
  361. package/dist/country.js +8 -97
  362. package/dist/country.js.map +1 -1
  363. package/dist/currency.js +3 -112
  364. package/dist/currency.js.map +1 -1
  365. package/dist/dashboard-template.js +6 -0
  366. package/dist/dashboard-template.js.map +1 -0
  367. package/dist/dashed-underline.js +5 -0
  368. package/dist/dashed-underline.js.map +1 -0
  369. package/dist/data-grid-template.js +2 -65
  370. package/dist/data-grid-template.js.map +1 -1
  371. package/dist/data-grid.js +8 -1978
  372. package/dist/data-grid.js.map +1 -1
  373. package/dist/date-picker.js +5 -197
  374. package/dist/date-picker.js.map +1 -1
  375. package/dist/date-range-picker.js +2 -2
  376. package/dist/date.js +1 -1
  377. package/dist/divider.js +1 -1
  378. package/dist/dropdown.js +12 -227
  379. package/dist/dropdown.js.map +1 -1
  380. package/dist/empty-state.js +5 -143
  381. package/dist/empty-state.js.map +1 -1
  382. package/dist/filter-bar.js +5 -2154
  383. package/dist/filter-bar.js.map +1 -1
  384. package/dist/focus-trap.js +1 -1
  385. package/dist/form-layout.js +5 -192
  386. package/dist/form-layout.js.map +1 -1
  387. package/dist/header.js +2 -246
  388. package/dist/header.js.map +1 -1
  389. package/dist/image.js +4 -81
  390. package/dist/image.js.map +1 -1
  391. package/dist/index.js +276 -269
  392. package/dist/index.js.map +1 -1
  393. package/dist/info-icon.js +2 -40
  394. package/dist/info-icon.js.map +1 -1
  395. package/dist/input-field.js +7 -217
  396. package/dist/input-field.js.map +1 -1
  397. package/dist/internal.js +15 -15
  398. package/dist/link.js +1 -1
  399. package/dist/loading-indicator.js +3 -47
  400. package/dist/loading-indicator.js.map +1 -1
  401. package/dist/menu.js +1 -1
  402. package/dist/modal-fullscreen.js +3 -197
  403. package/dist/modal-fullscreen.js.map +1 -1
  404. package/dist/modal.js +11 -451
  405. package/dist/modal.js.map +1 -1
  406. package/dist/pagination.js +2 -507
  407. package/dist/pagination.js.map +1 -1
  408. package/dist/payment-method.js +4 -4
  409. package/dist/payment-method.js.map +1 -1
  410. package/dist/popover.js +1 -1
  411. package/dist/popper-container.js +1 -1
  412. package/dist/radio-group.js +6 -213
  413. package/dist/radio-group.js.map +1 -1
  414. package/dist/search-bar.js +6 -90
  415. package/dist/search-bar.js.map +1 -1
  416. package/dist/secondary-nav.js +2 -100
  417. package/dist/secondary-nav.js.map +1 -1
  418. package/dist/segmented-control.js +4 -215
  419. package/dist/segmented-control.js.map +1 -1
  420. package/dist/selection-card.js +4 -248
  421. package/dist/selection-card.js.map +1 -1
  422. package/dist/sidepanel.js +4 -189
  423. package/dist/sidepanel.js.map +1 -1
  424. package/dist/status.js +3 -40
  425. package/dist/status.js.map +1 -1
  426. package/dist/stepper.js +5 -237
  427. package/dist/stepper.js.map +1 -1
  428. package/dist/structured-list.js +1 -1
  429. package/dist/summary-grid.js +9 -584
  430. package/dist/summary-grid.js.map +1 -1
  431. package/dist/tabs.js +3 -140
  432. package/dist/tabs.js.map +1 -1
  433. package/dist/tag.js +3 -63
  434. package/dist/tag.js.map +1 -1
  435. package/dist/textarea.js +2 -209
  436. package/dist/textarea.js.map +1 -1
  437. package/dist/timeline.js +7 -367
  438. package/dist/timeline.js.map +1 -1
  439. package/dist/toast.js +2 -168
  440. package/dist/toast.js.map +1 -1
  441. package/dist/toggle.js +4 -120
  442. package/dist/toggle.js.map +1 -1
  443. package/dist/tutorial.js +2 -325
  444. package/dist/tutorial.js.map +1 -1
  445. package/dist/typography.js +1 -1
  446. package/dist/web-types.json +482 -305
  447. package/package.json +11 -10
  448. package/dist/assets/index11.css +0 -1
  449. package/dist/assets/index18.css +0 -1
  450. package/dist/assets/index33.css +0 -1
  451. package/dist/assets/index34.css +0 -1
  452. package/dist/assets/index35.css +0 -1
  453. package/dist/assets/index38.css +0 -1
  454. package/dist/assets/index4.css +0 -1
  455. package/dist/assets/index40.css +0 -1
  456. package/dist/assets/index44.css +0 -1
  457. package/dist/assets/index46.css +0 -1
  458. package/dist/chunks/1-generic-use.3ea646cd.js +0 -5
  459. package/dist/chunks/1-generic-use.3ea646cd.js.map +0 -1
  460. package/dist/chunks/1-generic-use.ccca5813.js +0 -5
  461. package/dist/chunks/1-generic-use.ccca5813.js.map +0 -1
  462. package/dist/chunks/2-generic-use.443db127.js +0 -5
  463. package/dist/chunks/2-generic-use.443db127.js.map +0 -1
  464. package/dist/chunks/2-generic-use.d69d7c08.js +0 -5
  465. package/dist/chunks/2-generic-use.d69d7c08.js.map +0 -1
  466. package/dist/chunks/3-generic-use.9f74667f.js +0 -5
  467. package/dist/chunks/3-generic-use.9f74667f.js.map +0 -1
  468. package/dist/chunks/3-generic-use.fe7ae2ce.js +0 -5
  469. package/dist/chunks/3-generic-use.fe7ae2ce.js.map +0 -1
  470. package/dist/chunks/4-generic-use.0356f4a1.js +0 -5
  471. package/dist/chunks/4-generic-use.0356f4a1.js.map +0 -1
  472. package/dist/chunks/4-generic-use.cd04bad0.js +0 -5
  473. package/dist/chunks/4-generic-use.cd04bad0.js.map +0 -1
  474. package/dist/chunks/_plugin-vue2_normalizer.71e2aa87.js +0 -33
  475. package/dist/chunks/_plugin-vue2_normalizer.71e2aa87.js.map +0 -1
  476. package/dist/chunks/adding-payment-methods.d570e03e.js +0 -5
  477. package/dist/chunks/adding-payment-methods.d570e03e.js.map +0 -1
  478. package/dist/chunks/adding-payment-methods.e419d6c0.js +0 -5
  479. package/dist/chunks/adding-payment-methods.e419d6c0.js.map +0 -1
  480. package/dist/chunks/adyen-giving.480913b5.js +0 -5
  481. package/dist/chunks/adyen-giving.480913b5.js.map +0 -1
  482. package/dist/chunks/adyen-giving.54ed984c.js +0 -5
  483. package/dist/chunks/adyen-giving.54ed984c.js.map +0 -1
  484. package/dist/chunks/base-button.ad74b6f8.js +0 -88
  485. package/dist/chunks/button-actions.81db18e8.js +0 -111
  486. package/dist/chunks/button-actions.81db18e8.js.map +0 -1
  487. package/dist/chunks/button.9d6435ae.js +0 -100
  488. package/dist/chunks/button.9d6435ae.js.map +0 -1
  489. package/dist/chunks/checkmark-circle-fill.345311d2.js +0 -26
  490. package/dist/chunks/checkmark.a6ed8f47.js +0 -26
  491. package/dist/chunks/checkmark.a6ed8f47.js.map +0 -1
  492. package/dist/chunks/dropdown.10c034aa.js.map +0 -1
  493. package/dist/chunks/error-message.31ec12b7.js +0 -111
  494. package/dist/chunks/events.58c00e6d.js +0 -50
  495. package/dist/chunks/events.58c00e6d.js.map +0 -1
  496. package/dist/chunks/index.15b088b9.js.map +0 -1
  497. package/dist/chunks/index.1ea85d4a.js.map +0 -1
  498. package/dist/chunks/index.317fca12.js.map +0 -1
  499. package/dist/chunks/index.671768a1.js.map +0 -1
  500. package/dist/chunks/index.7eefc59c.js.map +0 -1
  501. package/dist/chunks/index.885d05a9.js +0 -32
  502. package/dist/chunks/index.885d05a9.js.map +0 -1
  503. package/dist/chunks/index.8b8c3b16.js.map +0 -1
  504. package/dist/chunks/index.aaf965f8.js +0 -147
  505. package/dist/chunks/index.aaf965f8.js.map +0 -1
  506. package/dist/chunks/index.b21197ca.js.map +0 -1
  507. package/dist/chunks/index.d553d3d1.js.map +0 -1
  508. package/dist/chunks/index.dd30e538.js.map +0 -1
  509. package/dist/chunks/internal-error.35cbb071.js +0 -5
  510. package/dist/chunks/internal-error.35cbb071.js.map +0 -1
  511. package/dist/chunks/internal-error.9a4823ed.js +0 -5
  512. package/dist/chunks/internal-error.9a4823ed.js.map +0 -1
  513. package/dist/chunks/listbox-option-tag.6bbb6bbe.js +0 -107
  514. package/dist/chunks/listbox-option-tag.6bbb6bbe.js.map +0 -1
  515. package/dist/chunks/no-results-found.58856d70.js +0 -5
  516. package/dist/chunks/no-results-found.58856d70.js.map +0 -1
  517. package/dist/chunks/no-results-found.cbb12f78.js +0 -5
  518. package/dist/chunks/no-results-found.cbb12f78.js.map +0 -1
  519. package/dist/chunks/notifications-cleared.71025c22.js +0 -5
  520. package/dist/chunks/notifications-cleared.71025c22.js.map +0 -1
  521. package/dist/chunks/notifications-cleared.c4f4bed4.js +0 -5
  522. package/dist/chunks/notifications-cleared.c4f4bed4.js.map +0 -1
  523. package/dist/chunks/page-not-found.a500440d.js +0 -5
  524. package/dist/chunks/page-not-found.a500440d.js.map +0 -1
  525. package/dist/chunks/page-not-found.d1a84ba7.js +0 -5
  526. package/dist/chunks/page-not-found.d1a84ba7.js.map +0 -1
  527. package/dist/chunks/planned-maintenance.7fa5ac16.js +0 -5
  528. package/dist/chunks/planned-maintenance.7fa5ac16.js.map +0 -1
  529. package/dist/chunks/planned-maintenance.cff01aed.js +0 -5
  530. package/dist/chunks/planned-maintenance.cff01aed.js.map +0 -1
  531. package/dist/chunks/radio-input.c6550a9c.js.map +0 -1
  532. package/dist/chunks/referrals.178ce0eb.js +0 -5
  533. package/dist/chunks/referrals.178ce0eb.js.map +0 -1
  534. package/dist/chunks/referrals.599047da.js +0 -5
  535. package/dist/chunks/referrals.599047da.js.map +0 -1
  536. package/dist/chunks/success.41981fe8.js +0 -5
  537. package/dist/chunks/success.41981fe8.js.map +0 -1
  538. package/dist/chunks/success.77fac78b.js +0 -5
  539. package/dist/chunks/success.77fac78b.js.map +0 -1
  540. package/dist/chunks/tooltip.58ef3f4a.js.map +0 -1
  541. package/dist/chunks/upload-files.2708eca7.js +0 -5
  542. package/dist/chunks/upload-files.2708eca7.js.map +0 -1
  543. package/dist/chunks/upload-files.b4cd9f8b.js +0 -5
  544. package/dist/chunks/upload-files.b4cd9f8b.js.map +0 -1
  545. package/dist/chunks/use-cached-selected-values.69297473.js.map +0 -1
  546. package/dist/chunks/use-has-slot.fbeb19ec.js +0 -6
  547. package/dist/chunks/wrong-environment.c73b0bc0.js +0 -5
  548. package/dist/chunks/wrong-environment.c73b0bc0.js.map +0 -1
  549. package/dist/chunks/wrong-environment.f890a237.js +0 -5
  550. package/dist/chunks/wrong-environment.f890a237.js.map +0 -1
  551. /package/dist/assets/{index5.css → avatar-image.css} +0 -0
  552. /package/dist/assets/{index.css → badge.css} +0 -0
  553. /package/dist/assets/{index8.css → checkbox-group.css} +0 -0
  554. /package/dist/assets/{index10.css → country.css} +0 -0
  555. /package/dist/assets/{index12.css → date-picker.css} +0 -0
  556. /package/dist/assets/{index13.css → date-range-picker.css} +0 -0
  557. /package/dist/assets/{index14.css → divider.css} +0 -0
  558. /package/dist/assets/{index16.css → dropdown-tag.css} +0 -0
  559. /package/dist/assets/{index17.css → empty-state.css} +0 -0
  560. /package/dist/assets/{index19.css → focus-trap.css} +0 -0
  561. /package/dist/assets/{index21.css → header.css} +0 -0
  562. /package/dist/assets/{index27.css → info-icon.css} +0 -0
  563. /package/dist/assets/{index42.css → link.css} +0 -0
  564. /package/dist/assets/{index23.css → loading-indicator.css} +0 -0
  565. /package/dist/assets/{index24.css → pagination.css} +0 -0
  566. /package/dist/assets/{index45.css → popper-container.css} +0 -0
  567. /package/dist/assets/{index20.css → radio-group.css} +0 -0
  568. /package/dist/assets/{index47.css → search-bar.css} +0 -0
  569. /package/dist/assets/{index48.css → secondary-nav.css} +0 -0
  570. /package/dist/assets/{index39.css → step.css} +0 -0
  571. /package/dist/assets/{index41.css → summary-grid-item-custom.css} +0 -0
  572. /package/dist/assets/{index36.css → tag.css} +0 -0
  573. /package/dist/assets/{index30.css → textarea.css} +0 -0
  574. /package/dist/assets/{index31.css → timeline-item.css} +0 -0
  575. /package/dist/assets/{index32.css → toast.css} +0 -0
  576. /package/dist/assets/{index6.css → toggle-button.css} +0 -0
  577. /package/dist/assets/{index29.css → typography.css} +0 -0
package/dist/modal.js CHANGED
@@ -1,454 +1,14 @@
1
- import { d as g, h as A, f as d, e as E, c as M, a as L, b as v } from "./chunks/base-modal.1fff7abe.js";
2
- import { g as yt, B as _t } from "./chunks/base-modal.1fff7abe.js";
3
- import { defineComponent as p, useSlots as B, onMounted as O, toRefs as x, ref as P, computed as f, useAttrs as T, watch as k } from "vue";
4
- import { u as b } from "./chunks/use-has-slot.fbeb19ec.js";
5
- import { F as R } from "./chunks/footer-actions.a1e09b4f.js";
6
- import { n as S } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
7
- import { B as C } from "./chunks/button.9d6435ae.js";
8
- import { u as z } from "./chunks/i18n.eb5b985b.js";
9
- import { B as N } from "./chunks/button-actions.81db18e8.js";
10
- import { d as $ } from "./chunks/index.dd30e538.js";
11
- const F = p({
12
- name: "bento-modal-default"
13
- }), q = /* @__PURE__ */ p({
14
- ...F,
15
- props: {
16
- /**
17
- * List of actions that will be used to render the buttons.
18
- * First element in the list will be rendered as "primary".
19
- * All elements after the first will be rendered as "secondary".
20
- * But you may change the color of 1-st action to red with 'critial' key
21
- * Not more than 3 action buttons can be provided
22
- * Or 2 action buttons and 1 Label for them
23
- *
24
- * Each object in the list should have a `title`, an `event` and
25
- * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.
26
- *
27
- * `title`: Button's text.
28
- *
29
- * `event`: Event triggered when clicking the Button.
30
- *
31
- * `icon`: Vue Icon from the library `@adyen/ui-assets-icons-16`.
32
- *
33
- * ```
34
- * [{
35
- * title: 'Primary',2
36
- * event: () => { ... },
37
- * icon: FourPeopleIcon
38
- * }, {
39
- * title: 'Secondary',
40
- * event: () => { ... }
41
- * }]
42
- * ```
43
- */
44
- actions: {
45
- type: Array,
46
- default: null
47
- },
48
- /**
49
- * Text label that is displayed left to the action buttons
50
- */
51
- actionsLabel: { type: String, default: null },
52
- /**
53
- * The id of the current active page
54
- * Should be the same id as the BentoModalPage to be displayed
55
- */
56
- activePage: {
57
- type: String,
58
- default: null
59
- },
60
- /**
61
- * If provided, manages the padding of the whole modal container
62
- */
63
- customPadding: { type: String, default: null },
64
- /**
65
- * If a column layout is provided, it renders the respective left column width variant. This can be smaller than the second column, the same size as the second column or bigger than the second column.
66
- */
67
- columnsSize: {
68
- type: String,
69
- default: g.SMALLER
70
- },
71
- /**
72
- * If passed - sets first button color to red
73
- */
74
- destructiveActions: { type: Boolean, default: !1 },
75
- /**
76
- * Hides a cross icon on the right side of the title
77
- */
78
- hideCloseButton: { type: Boolean, default: !1 },
79
- /**
80
- * Sets the open attribute on the dialog element, use isOpen instead to toggle modal visbility.
81
- */
82
- initiallyOpen: { type: Boolean, default: !1 },
83
- /**
84
- * If set to true, it allows the modal to be closed by clicking outside of it
85
- */
86
- isDismissible: { type: Boolean, required: !0 },
87
- /**
88
- * Controls the modal's state from the outside. Set it to true to open the modal
89
- */
90
- isOpen: { type: Boolean, required: !0 },
91
- /**
92
- * Sets the width of the modal
93
- */
94
- size: {
95
- type: String,
96
- required: !0
97
- },
98
- /**
99
- * If provided, renders the modal's content in a two-column layout an wth dividers separating its content
100
- */
101
- withColumnLayout: { type: Boolean, default: !1 }
102
- },
103
- emits: ["update:active-page", "close-modal"],
104
- setup(a, { emit: t }) {
105
- const o = a, e = B(), l = b(e), i = () => {
106
- t("close-modal");
107
- };
108
- return O(() => {
109
- if (!(l("content") || l("content-col-1") && l("content-col-2")) && !o.activePage)
110
- throw new Error("Bento Modal default variant requires content slot or column slots");
111
- }), { __sfc: !0, slots: e, hasSlot: l, emit: t, props: o, onCloseModal: i, FooterActions: R, BaseModal: A };
112
- }
113
- });
114
- var j = function() {
115
- var t = this, o = t._self._c, e = t._self._setupProxy;
116
- return o(e.BaseModal, t._b({ staticClass: "b-modal-default", attrs: { actions: t.actions, "active-page": t.activePage, size: t.size, "hide-close-button": t.hideCloseButton, "columns-size": t.columnsSize, "custom-padding": t.customPadding, "is-dismissible": t.isDismissible, "is-open": t.isOpen, "with-column-layout": t.withColumnLayout, "initially-open": t.initiallyOpen }, on: { "update:active-page": function(l) {
117
- return e.emit("update:active-page", l);
118
- }, "close-modal": e.onCloseModal }, scopedSlots: t._u([e.hasSlot("default") ? { key: "default", fn: function() {
119
- return [t._t("default")];
120
- }, proxy: !0 } : null, e.hasSlot("content-col-1") ? { key: "content-col-1", fn: function() {
121
- return [t._t("content-col-1")];
122
- }, proxy: !0 } : null, e.hasSlot("content-col-2") ? { key: "content-col-2", fn: function() {
123
- return [t._t("content-col-2")];
124
- }, proxy: !0 } : null, e.hasSlot("content") ? { key: "content", fn: function() {
125
- return [t._t("content")];
126
- }, proxy: !0 } : null, t.actions && t.actions.length > 0 ? { key: "actions", fn: function() {
127
- return [t._t("actions", function() {
128
- return [o(e.FooterActions, { attrs: { actions: t.actions, "actions-label": t.actionsLabel, "destructive-actions": t.destructiveActions } })];
129
- })];
130
- }, proxy: !0 } : null], null, !0) }, "base-modal", t.$attrs, !1));
131
- }, I = [], V = /* @__PURE__ */ S(
132
- q,
133
- j,
134
- I,
135
- !1,
136
- null,
137
- null,
138
- null,
139
- null
140
- );
141
- const U = V.exports, G = {
142
- "en-US": {
143
- okButtonText: "OK"
144
- }
145
- }, K = p({
146
- i18n: { messages: G },
147
- name: "bento-modal-dialog"
148
- }), W = /* @__PURE__ */ p({
149
- ...K,
150
- props: {
151
- /**
152
- * List of actions that will be used to render the buttons.
153
- * Only 1 action button is allowed for Modal Dialog
154
- *
155
- * Each object in the list should have a `title`, an `event` and
156
- * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.
157
- *
158
- * `title`: Button's text.
159
- *
160
- * `event`: Event triggered when clicking the Button.
161
- *
162
- * `icon`: Vue Icon from the library `@adyen/ui-assets-icons-16`.
163
- *
164
- * ```
165
- * [{
166
- * title: 'Primary',2
167
- * event: () => { ... },
168
- * icon: FourPeopleIcon
169
- * }]
170
- * ```
171
- */
172
- actions: {
173
- type: Array,
174
- default: null
175
- },
176
- /**
177
- * The id of the current active page
178
- * Should be the same id as the BentoModalPage to be displayed
179
- */
180
- activePage: {
181
- type: String,
182
- default: null
183
- },
184
- /**
185
- * Text that is displayed in the content section of modal
186
- */
187
- content: { type: String, required: !0 },
188
- /**
189
- * Sets different action buttons styling and appearance
190
- */
191
- dialogType: {
192
- type: String,
193
- required: !0
194
- },
195
- /**
196
- * Sets the open attribute on the dialog element, use isOpen instead to toggle modal visbility.
197
- */
198
- initiallyOpen: { type: Boolean, default: !1 },
199
- /**
200
- * If set to true, it allows the modal to be closed by clicking outside of it
201
- */
202
- isDismissible: { type: Boolean, required: !0 },
203
- /**
204
- * Controls the modal's state from the outside. Set it to true to open the modal
205
- */
206
- isOpen: { type: Boolean, required: !0 }
207
- },
208
- emits: ["close-modal"],
209
- setup(a, { emit: t }) {
210
- const o = a, { t: e } = z(), l = B(), i = b(l), { actions: n, dialogType: s } = x(o), m = P(null), y = () => {
211
- t("close-modal");
212
- }, r = (u) => {
213
- m.value.internalModalActionClose(u);
214
- }, _ = f(() => [
215
- {
216
- title: e("okButtonText"),
217
- event: r,
218
- variant: C.SECONDARY
219
- }
220
- ]), w = f(() => {
221
- var h;
222
- const u = {
223
- title: "Cancel",
224
- event: r
225
- }, c = (h = n == null ? void 0 : n.value) == null ? void 0 : h[0];
226
- return s.value === d.DESTRUCTIVE ? c.critical = !0 : s.value === d.INFO && (c.variant = C.SECONDARY), [c, u];
227
- }), D = f(() => ({
228
- [`b-modal-dialog--${s.value}`]: s.value
229
- }));
230
- return O(() => {
231
- var u, c;
232
- if (o.activePage)
233
- throw new Error(
234
- "Bento Modal Dialog cannot contain multiple pages. Use Bento Modal default variant instead."
235
- );
236
- if (!i("default") || !o.content && !i("content"))
237
- throw new Error("Bento Modal Dialog requires header title and content");
238
- if (((u = n == null ? void 0 : n.value) == null ? void 0 : u.length) > 1)
239
- throw new Error("Not more than 1 action button may be provided to Modal Dialog");
240
- if (s.value !== d.ACKNOWLEDGEMENT && !(n != null && n.value))
241
- throw new Error("Modal Dialog, except ACKNOWLEDGEMENT type, always has to contain one action button");
242
- if (s.value === d.ACKNOWLEDGEMENT && ((c = n == null ? void 0 : n.value) != null && c.length))
243
- throw new Error("Acknowledgement Modal Dialog does not accept action buttons");
244
- }), { __sfc: !0, emit: t, props: o, t: e, slots: l, hasSlot: i, actions: n, dialogType: s, modalRef: m, onCloseModal: y, onCloseActionButton: r, acknowledgementDialogActions: _, dialogActions: w, modalDialogConditionalClasses: D, BentoModalRole: E, BentoButtonActions: N, BaseModal: A };
245
- }
246
- });
247
- var Y = function() {
248
- var t = this, o = t._self._c, e = t._self._setupProxy;
249
- return o(e.BaseModal, t._b({ ref: "modalRef", staticClass: "b-modal-dialog", class: e.modalDialogConditionalClasses, attrs: { actions: e.actions, "active-page": t.activePage, "hide-close-button": !0, size: "small", "is-dismissible": t.isDismissible, "is-open": t.isOpen, "modal-role": e.BentoModalRole.ALERT_DIALOG, "initially-open": t.initiallyOpen }, on: { "close-modal": e.onCloseModal }, scopedSlots: t._u([{ key: "default", fn: function() {
250
- return [t._t("default")];
251
- }, proxy: !0 }, { key: "content", fn: function() {
252
- return [t._v(" " + t._s(t.content) + " ")];
253
- }, proxy: !0 }, { key: "actions", fn: function() {
254
- return [e.dialogType === "acknowledgement" ? o(e.BentoButtonActions, { attrs: { actions: e.acknowledgementDialogActions, layout: "buttons-end" } }) : o(e.BentoButtonActions, { attrs: { actions: e.dialogActions, layout: "buttons-end" } })];
255
- }, proxy: !0 }], null, !0) }, "base-modal", t.$attrs, !1));
256
- }, H = [], J = /* @__PURE__ */ S(
257
- W,
258
- Y,
259
- H,
260
- !1,
261
- null,
262
- null,
263
- null,
264
- null
265
- );
266
- const Q = J.exports, X = p({
267
- components: { BentoModalDefault: U, BentoModalDialog: Q }
268
- }), Z = /* @__PURE__ */ p({
269
- ...X,
270
- __name: "modal",
271
- props: {
272
- /**
273
- * List of actions that will be used to render the buttons.
274
- * First element in the list will be rendered as "primary".
275
- * All elements after the first will be rendered as "secondary".
276
- *
277
- * Each object in the list should have a `title`, an `event` and
278
- * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.
279
- *
280
- * `title`: Button's text.
281
- *
282
- * `event`: Event triggered when clicking the Button.
283
- *
284
- * `icon`: Vue Icon from the library `@adyen/ui-assets-icons-16`.
285
- *
286
- * ```
287
- * [{
288
- * title: 'Primary',2
289
- * event: () => { ... },
290
- * icon: FourPeopleIcon
291
- * }, {
292
- * title: 'Secondary',
293
- * event: () => { ... }
294
- * }]
295
- * ```
296
- */
297
- actions: {
298
- type: Array,
299
- default: null
300
- },
301
- /**
302
- * The id of the current active page
303
- * Should be the same id as the BentoModalPage to be displayed
304
- */
305
- activePage: {
306
- type: String,
307
- default: null
308
- },
309
- /**
310
- * Text label that is displayed left to the action buttons
311
- */
312
- actionsLabel: { type: String, default: null },
313
- /**
314
- * Text that will be displayed in the content section of Modal
315
- */
316
- content: { type: String, default: null },
317
- /**
318
- * If a column layout is provided, it renders the respective left column width variant. This can be smaller than the second column, the same size as the second column or bigger than the second column.
319
- */
320
- columnsSize: {
321
- type: String,
322
- default: g.SMALLER,
323
- validator: (a) => Object.values(g).includes(a)
324
- },
325
- /**
326
- * If provided, manages the padding of the whole modal container
327
- */
328
- customPadding: { type: String, default: null },
329
- /**
330
- * If passed - sets first button color to red
331
- */
332
- destructiveActions: { type: Boolean, default: !1 },
333
- /**
334
- * Changes the visual styling of action buttons
335
- */
336
- dialogType: {
337
- type: String,
338
- default: d.CONFIRMATION,
339
- validator: (a) => Object.values(d).includes(a)
340
- },
341
- /**
342
- * Hides a cross icon on the right side of the title
343
- */
344
- hideCloseButton: { type: Boolean, default: !1 },
345
- /**
346
- * If set to true, it allows the modal to be closed without performing an action
347
- */
348
- isDismissible: { type: Boolean, default: null },
349
- /**
350
- * Controls the modal's state from the outside. Set it to true to open the modal
351
- */
352
- isOpen: {
353
- type: Boolean,
354
- default: !1
355
- },
356
- /**
357
- * Sets the open attribute on the dialog element, use isOpen instead to toggle modal visbility.
358
- */
359
- initiallyOpen: { type: Boolean, default: !1 },
360
- /**
361
- * Sets the width of the modal
362
- */
363
- size: {
364
- type: String,
365
- default: M.SMALL,
366
- validator: (a) => Object.values(M).includes(a)
367
- },
368
- /**
369
- * Choose between default or dialog versions of modal
370
- */
371
- variant: {
372
- type: String,
373
- default: "default",
374
- validator: (a) => Object.values(L).includes(a) || Object.values(v).includes(a)
375
- },
376
- /**
377
- * If provided, renders the modal's content in a two-column layout an wth dividers separating its content
378
- */
379
- withColumnLayout: { type: Boolean, default: !1 }
380
- },
381
- emits: ["update:active-page", "close-modal"],
382
- setup(a, { emit: t }) {
383
- const o = a, e = 500, l = B(), i = b(l), n = T(), s = f(() => Object.values(v).includes(o.variant) ? o.variant : v[o.variant.toUpperCase()]), m = f(
384
- () => s.value === v.DEFAULT ? {
385
- activePage: o.activePage,
386
- hideCloseButton: o.hideCloseButton,
387
- size: o.size,
388
- customPadding: o.customPadding,
389
- actionsLabel: o.actionsLabel,
390
- destructiveActions: o.destructiveActions,
391
- isDismissible: o.isDismissible ?? !0,
392
- withColumnLayout: o.withColumnLayout,
393
- columnsSize: o.columnsSize,
394
- ...n
395
- } : {
396
- activePage: o.activePage,
397
- dialogType: o.dialogType,
398
- content: o.content,
399
- isDismissible: o.isDismissible ?? !1,
400
- ...n
401
- }
402
- ), y = () => {
403
- t("close-modal");
404
- };
405
- return k(
406
- () => o.actions,
407
- () => {
408
- var r, _;
409
- ((_ = (r = o.actions) == null ? void 0 : r[0]) == null ? void 0 : _.state) === "success" && setTimeout(y, e);
410
- }
411
- ), Object.keys(n).includes("overflow-visible") && $(
412
- 'BentoModal "overflow-visible" property',
413
- `"overflow-visible" property was made redundant. BentoModal can work correctly without the need to pass the propery.
414
- Remove the "overflow-visible" prop from BentoModal to remove this error.`,
415
- "2.0.0"
416
- ), { __sfc: !0, LOADING_BTN_CLOSE_AFTER_SUCCESS_DELAY_TIME: e, slots: l, hasSlot: i, attrs: n, emit: t, props: o, computedVariant: s, customProps: m, onCloseModal: y };
417
- }
418
- });
419
- var tt = function() {
420
- var t = this, o = t._self._c, e = t._self._setupProxy;
421
- return o(e.computedVariant, t._b({ tag: "component", staticClass: "b-modal", attrs: { "is-open": t.isOpen, actions: t.actions, "initially-open": t.initiallyOpen }, on: { "close-modal": e.onCloseModal, "update:active-page": function(l) {
422
- return e.emit("update:active-page", l);
423
- } }, scopedSlots: t._u([e.hasSlot("default") ? { key: "default", fn: function() {
424
- return [t._t("default")];
425
- }, proxy: !0 } : null, e.hasSlot("content-col-1") ? { key: "content-col-1", fn: function() {
426
- return [t._t("content-col-1")];
427
- }, proxy: !0 } : null, e.hasSlot("content-col-2") ? { key: "content-col-2", fn: function() {
428
- return [t._t("content-col-2")];
429
- }, proxy: !0 } : null, e.hasSlot("content") ? { key: "content", fn: function() {
430
- return [t._t("content")];
431
- }, proxy: !0 } : null], null, !0) }, "component", e.customProps, !1));
432
- }, et = [], ot = /* @__PURE__ */ S(
433
- Z,
434
- tt,
435
- et,
436
- !1,
437
- null,
438
- null,
439
- null,
440
- null
441
- );
442
- const pt = ot.exports;
1
+ import { d as e, f as t, g as n, B as l, e as B, c as d, a as M, b as s } from "./chunks/base-modal.C5I7bR0d.js";
2
+ import { B as i } from "./chunks/modal.DLwvcaRx.js";
443
3
  export {
444
- pt as BentoModal,
445
- g as BentoModalColumnLayoutVariant,
446
- d as BentoModalDialogType,
447
- yt as BentoModalEvent,
448
- _t as BentoModalPage,
449
- E as BentoModalRole,
450
- M as BentoModalSize,
451
- L as BentoModalVariant,
452
- v as BentoModalVariantMapping
4
+ i as BentoModal,
5
+ e as BentoModalColumnLayoutVariant,
6
+ t as BentoModalDialogType,
7
+ n as BentoModalEvent,
8
+ l as BentoModalPage,
9
+ B as BentoModalRole,
10
+ d as BentoModalSize,
11
+ M as BentoModalVariant,
12
+ s as BentoModalVariantMapping
453
13
  };
454
14
  //# sourceMappingURL=modal.js.map
package/dist/modal.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"modal.js","sources":["../src/components/modal/components/modal-default/modal-default.vue","../src/components/modal/components/modal-dialog/modal-dialog.vue","../src/components/modal/modal.vue"],"sourcesContent":["<template>\n <base-modal\n class=\"b-modal-default\"\n v-bind=\"$attrs\"\n :actions=\"actions\"\n :active-page=\"activePage\"\n :size=\"size\"\n :hide-close-button=\"hideCloseButton\"\n :columns-size=\"columnsSize\"\n :custom-padding=\"customPadding\"\n :is-dismissible=\"isDismissible\"\n :is-open=\"isOpen\"\n :with-column-layout=\"withColumnLayout\"\n :initially-open=\"initiallyOpen\"\n @update:active-page=\"emit('update:active-page', $event)\"\n @close-modal=\"onCloseModal\"\n >\n <template v-if=\"hasSlot('default')\" #default>\n <slot></slot>\n </template>\n <template v-if=\"hasSlot('content-col-1')\" #content-col-1><slot name=\"content-col-1\"></slot></template>\n <template v-if=\"hasSlot('content-col-2')\" #content-col-2><slot name=\"content-col-2\"></slot></template>\n <template v-if=\"hasSlot('content')\" #content><slot name=\"content\"></slot></template>\n\n <template v-if=\"actions && actions.length > 0\" #actions>\n <slot name=\"actions\">\n <footer-actions\n :actions=\"actions\"\n :actions-label=\"actionsLabel\"\n :destructive-actions=\"destructiveActions\"\n />\n </slot>\n </template>\n </base-modal>\n</template>\n\n<script setup lang=\"ts\">\n import { defineComponent, onMounted, PropType, useSlots } from 'vue';\n import { BentoModalColumnLayoutVariant, BentoModalSize } from '@/components/modal/modal.types';\n import { useHasSlot } from '@/composables';\n import { BentoButtonActionsList } from '@/components/button';\n import { FooterActions } from '@/components/internal/footer-actions';\n import BaseModal from '@/components/modal/components/base-modal/base-modal.vue';\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n const emit = defineEmits<{\n /**\n * Emits update event when page is changed internally\n */\n (e: 'update:active-page', page: string): void;\n /**\n * Emitted when the modal is closed.\n */\n (e: 'close-modal');\n }>();\n\n const props = 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 * But you may change the color of 1-st action to red with 'critial' key\n * Not more than 3 action buttons can be provided\n * Or 2 action buttons and 1 Label for them\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * `title`: Button's text.\n *\n * `event`: Event triggered when clicking the Button.\n *\n * `icon`: Vue Icon from the library `@adyen/ui-assets-icons-16`.\n *\n * ```\n * [{\n * title: 'Primary',2\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: { type: String, default: null },\n\n /**\n * The id of the current active page\n * Should be the same id as the BentoModalPage to be displayed\n */\n activePage: {\n type: String,\n default: null,\n },\n\n /**\n * If provided, manages the padding of the whole modal container\n */\n customPadding: { type: String, default: null },\n\n /**\n * If a column layout is provided, it renders the respective left column width variant. This can be smaller than the second column, the same size as the second column or bigger than the second column.\n */\n columnsSize: {\n type: String as PropType<BentoModalColumnLayoutVariant>,\n default: BentoModalColumnLayoutVariant.SMALLER,\n },\n\n /**\n * If passed - sets first button color to red\n */\n destructiveActions: { type: Boolean, default: false },\n\n /**\n * Hides a cross icon on the right side of the title\n */\n hideCloseButton: { type: Boolean, default: false },\n\n /**\n * Sets the open attribute on the dialog element, use isOpen instead to toggle modal visbility.\n */\n initiallyOpen: { type: Boolean, default: false },\n\n /**\n * If set to true, it allows the modal to be closed by clicking outside of it\n */\n isDismissible: { type: Boolean, required: true },\n\n /**\n * Controls the modal's state from the outside. Set it to true to open the modal\n */\n isOpen: { type: Boolean, required: true },\n\n /**\n * Sets the width of the modal\n */\n size: {\n type: String as PropType<BentoModalSize | `${BentoModalSize}`>,\n required: true,\n },\n\n /**\n * If provided, renders the modal's content in a two-column layout an wth dividers separating its content\n */\n withColumnLayout: { type: Boolean, default: false },\n });\n\n const onCloseModal = () => {\n emit('close-modal');\n };\n\n onMounted(() => {\n if (!(hasSlot('content') || (hasSlot('content-col-1') && hasSlot('content-col-2'))) && !props.activePage) {\n throw new Error('Bento Modal default variant requires content slot or column slots');\n }\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * Creates a Modal based off the `base-modal` component.\n * It allows two column modals as well as content modals.\n *\n * @example\n * import { BentoModalDefault } from '@/components/modal/components';\n *\n * export default {\n * components: { BentoModalDefault },\n * template: `\n * <bento-modal-default\n * :is-dismissible=\"false\"\n * :is-open=\"isOpen\"\n * @close-modal=\"isOpen = false\"\n * >\n * <template #content-col-1>\n * // Content on the left side column\n * </template>\n *\n * <template #content-col-2>\n * // Content on the right side column\n * </template>\n *\n * <template v-if=\"actions\" #actions>\n * <footer-actions :actions=\"actions\" />\n * </template>\n * </bento-modal-default>\n * `,\n * setup() {\n * const isOpen = ref(true)\n * const footerActions = [{\n * title: 'Primary action',\n * event: () => { ... }\n * }]\n * }\n * }\n */\n export default defineComponent({\n name: 'bento-modal-default',\n });\n</script>\n","<template>\n <base-modal\n ref=\"modalRef\"\n class=\"b-modal-dialog\"\n :actions=\"actions\"\n :active-page=\"activePage\"\n :class=\"modalDialogConditionalClasses\"\n :hide-close-button=\"true\"\n size=\"small\"\n :is-dismissible=\"isDismissible\"\n :is-open=\"isOpen\"\n :modal-role=\"BentoModalRole.ALERT_DIALOG\"\n :initially-open=\"initiallyOpen\"\n v-bind=\"$attrs\"\n @close-modal=\"onCloseModal\"\n >\n <template #default>\n <slot></slot>\n </template>\n <template #content>\n {{ content }}\n </template>\n\n <template #actions>\n <bento-button-actions\n v-if=\"dialogType === 'acknowledgement'\"\n :actions=\"acknowledgementDialogActions\"\n layout=\"buttons-end\"\n />\n\n <bento-button-actions v-else :actions=\"dialogActions\" layout=\"buttons-end\" />\n </template>\n </base-modal>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, defineComponent, onMounted, PropType, Ref, ref, toRefs, useSlots } from 'vue';\n import { BentoModalDialogType, BentoModalRole } from '@/components/modal/modal.types';\n import { useHasSlot } from '@/composables';\n import {\n BentoButtonActionObject,\n BentoButtonActions,\n BentoButtonActionsList,\n BentoButtonVariant,\n } from '@/components/button';\n import { useI18n } from '@/utils/ts/i18n';\n import BaseModal from '@/components/modal/components/base-modal/base-modal.vue';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const emit = defineEmits<{\n (e: 'close-modal');\n }>();\n\n const props = defineProps({\n /**\n * List of actions that will be used to render the buttons.\n * Only 1 action button is allowed for Modal Dialog\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * `title`: Button's text.\n *\n * `event`: Event triggered when clicking the Button.\n *\n * `icon`: Vue Icon from the library `@adyen/ui-assets-icons-16`.\n *\n * ```\n * [{\n * title: 'Primary',2\n * event: () => { ... },\n * icon: FourPeopleIcon\n * }]\n * ```\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n default: null,\n },\n\n /**\n * The id of the current active page\n * Should be the same id as the BentoModalPage to be displayed\n */\n activePage: {\n type: String,\n default: null,\n },\n\n /**\n * Text that is displayed in the content section of modal\n */\n content: { type: String, required: true },\n\n /**\n * Sets different action buttons styling and appearance\n */\n dialogType: {\n type: String as PropType<BentoModalDialogType | `${BentoModalDialogType}`>,\n required: true,\n },\n\n /**\n * Sets the open attribute on the dialog element, use isOpen instead to toggle modal visbility.\n */\n initiallyOpen: { type: Boolean, default: false },\n\n /**\n * If set to true, it allows the modal to be closed by clicking outside of it\n */\n isDismissible: { type: Boolean, required: true },\n\n /**\n * Controls the modal's state from the outside. Set it to true to open the modal\n */\n isOpen: { type: Boolean, required: true },\n });\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n const { actions, dialogType } = toRefs(props);\n const modalRef: Ref<InstanceType<typeof BaseModal>> = ref(null);\n\n const onCloseModal = () => {\n emit('close-modal');\n };\n\n const onCloseActionButton = (event: Event) => {\n // Calls \"base-modal\" internal function to initialize the\n // \"close\" animation and trigger the \"close\" event.\n // This follows the same \"dialog\" pattern of calling \"dialog.close()\"\n modalRef.value.internalModalActionClose(event);\n };\n\n const acknowledgementDialogActions = computed(() => [\n {\n title: t('okButtonText') as string,\n event: onCloseActionButton,\n variant: BentoButtonVariant.SECONDARY,\n },\n ]);\n\n const dialogActions = computed(() => {\n const mandatoryCancelActionButton: BentoButtonActionObject = {\n title: 'Cancel',\n event: onCloseActionButton,\n };\n const updatedPassedActionsObject: BentoButtonActionObject = actions?.value?.[0];\n\n if (dialogType.value === BentoModalDialogType.DESTRUCTIVE) {\n updatedPassedActionsObject.critical = true;\n } else if (dialogType.value === BentoModalDialogType.INFO) {\n updatedPassedActionsObject.variant = BentoButtonVariant.SECONDARY;\n }\n\n return [updatedPassedActionsObject, mandatoryCancelActionButton];\n });\n\n const modalDialogConditionalClasses = computed(() => ({\n [`b-modal-dialog--${dialogType.value}`]: dialogType.value,\n }));\n\n onMounted(() => {\n if (props.activePage) {\n throw new Error(\n 'Bento Modal Dialog cannot contain multiple pages. Use Bento Modal default variant instead.'\n );\n }\n\n if (!hasSlot('default') || (!props.content && !hasSlot('content'))) {\n throw new Error('Bento Modal Dialog requires header title and content');\n }\n\n if (actions?.value?.length > 1) {\n throw new Error('Not more than 1 action button may be provided to Modal Dialog');\n }\n\n if (dialogType.value !== BentoModalDialogType.ACKNOWLEDGEMENT && !actions?.value) {\n throw new Error('Modal Dialog, except ACKNOWLEDGEMENT type, always has to contain one action button');\n }\n\n if (dialogType.value === BentoModalDialogType.ACKNOWLEDGEMENT && actions?.value?.length) {\n throw new Error('Acknowledgement Modal Dialog does not accept action buttons');\n }\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * Creates a \"dialog\" type of modal.\n * These are are modals that require a deliberate user action or acknowledgement\n * (confirmations or destructive actions).\n *\n * It’s not customizable and consists of title, description label and one action.\n *\n * @example\n * import { BentoModalDialog } from '@/components/modal/components';\n *\n * export default {\n * components: { BentoModalDialog },\n * template: `\n * <bento-modal-dialog\n * dialog-type=\"destructive\"\n * :is-dismissible=\"false\"\n * :is-open=\"isOpen\"\n * @close-modal=\"isOpen = false\"\n * >\n * Dialog content\n * </bento-modal-dialog>\n * `,\n * setup() {\n * const isOpen = ref(true)\n * }\n * }\n */\n export default defineComponent({\n i18n: { messages },\n name: 'bento-modal-dialog',\n });\n</script>\n","<template>\n <component\n :is=\"computedVariant\"\n class=\"b-modal\"\n :is-open=\"isOpen\"\n :actions=\"actions\"\n :initially-open=\"initiallyOpen\"\n v-bind=\"customProps\"\n @close-modal=\"onCloseModal\"\n @update:active-page=\"emit('update:active-page', $event)\"\n >\n <template v-if=\"hasSlot('default')\" #default>\n <slot></slot>\n </template>\n <template v-if=\"hasSlot('content-col-1')\" #content-col-1><slot name=\"content-col-1\"></slot></template>\n <template v-if=\"hasSlot('content-col-2')\" #content-col-2><slot name=\"content-col-2\"></slot></template>\n <template v-if=\"hasSlot('content')\" #content><slot name=\"content\"></slot></template>\n </component>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, defineComponent, PropType, useAttrs, useSlots, watch } from 'vue';\n import {\n BentoModalColumnLayoutVariant,\n BentoModalDialogType,\n BentoModalSize,\n BentoModalVariant,\n BentoModalVariantMapping,\n } from './modal.types';\n import { BentoModalDefault, BentoModalDialog } from '@/components/modal/components';\n import { useHasSlot } from '@/composables';\n import { BentoButtonActionsList } from '@/components/button';\n import { deprecate } from '@/utils/ts/deprecate';\n\n const LOADING_BTN_CLOSE_AFTER_SUCCESS_DELAY_TIME = 500;\n\n type BentoModalVariantProp = BentoModalVariant | `${BentoModalVariant}` | `${BentoModalVariantMapping}`;\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n const attrs = useAttrs();\n const emit = defineEmits<{\n /**\n * Emits update event when page is changed internally\n */\n (e: 'update:active-page', page: string): void;\n /**\n * Emitted when the modal is closed\n */\n (e: 'close-modal');\n }>();\n\n const props = 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 * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * `title`: Button's text.\n *\n * `event`: Event triggered when clicking the Button.\n *\n * `icon`: Vue Icon from the library `@adyen/ui-assets-icons-16`.\n *\n * ```\n * [{\n * title: 'Primary',2\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 * The id of the current active page\n * Should be the same id as the BentoModalPage to be displayed\n */\n activePage: {\n type: String,\n default: null,\n },\n\n /**\n * Text label that is displayed left to the action buttons\n */\n actionsLabel: { type: String, default: null },\n\n /**\n * Text that will be displayed in the content section of Modal\n */\n content: { type: String, default: null },\n\n /**\n * If a column layout is provided, it renders the respective left column width variant. This can be smaller than the second column, the same size as the second column or bigger than the second column.\n */\n columnsSize: {\n type: String as PropType<BentoModalColumnLayoutVariant | `${BentoModalColumnLayoutVariant}`>,\n default: BentoModalColumnLayoutVariant.SMALLER,\n validator: (value: BentoModalColumnLayoutVariant) =>\n Object.values(BentoModalColumnLayoutVariant).includes(value),\n },\n\n /**\n * If provided, manages the padding of the whole modal container\n */\n customPadding: { type: String, default: null },\n\n /**\n * If passed - sets first button color to red\n */\n destructiveActions: { type: Boolean, default: false },\n\n /**\n * Changes the visual styling of action buttons\n */\n dialogType: {\n type: String as PropType<BentoModalDialogType | `${BentoModalDialogType}`>,\n default: BentoModalDialogType.CONFIRMATION,\n validator: (value: BentoModalDialogType) => Object.values(BentoModalDialogType).includes(value),\n },\n\n /**\n * Hides a cross icon on the right side of the title\n */\n hideCloseButton: { type: Boolean, default: false },\n\n /**\n * If set to true, it allows the modal to be closed without performing an action\n */\n isDismissible: { type: Boolean, default: null },\n\n /**\n * Controls the modal's state from the outside. Set it to true to open the modal\n */\n isOpen: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the open attribute on the dialog element, use isOpen instead to toggle modal visbility.\n */\n initiallyOpen: { type: Boolean, default: false },\n\n /**\n * Sets the width of the modal\n */\n size: {\n type: String as PropType<BentoModalSize | `${BentoModalSize}`>,\n default: BentoModalSize.SMALL,\n validator: (value: BentoModalSize) => Object.values(BentoModalSize).includes(value),\n },\n\n /**\n * Choose between default or dialog versions of modal\n */\n variant: {\n type: String as PropType<BentoModalVariantProp>,\n default: 'default',\n validator: (value: BentoModalVariantProp) =>\n Object.values<BentoModalVariantProp>(BentoModalVariant).includes(value) ||\n Object.values<BentoModalVariantProp>(BentoModalVariantMapping).includes(value),\n },\n\n /**\n * If provided, renders the modal's content in a two-column layout an wth dividers separating its content\n */\n withColumnLayout: { type: Boolean, default: false },\n });\n\n const computedVariant = computed(() => {\n if (Object.values<BentoModalVariantProp>(BentoModalVariantMapping).includes(props.variant)) {\n return props.variant;\n }\n return BentoModalVariantMapping[props.variant.toUpperCase()];\n });\n\n const customProps = computed(() =>\n computedVariant.value === BentoModalVariantMapping.DEFAULT\n ? {\n activePage: props.activePage,\n hideCloseButton: props.hideCloseButton,\n size: props.size,\n customPadding: props.customPadding,\n actionsLabel: props.actionsLabel,\n destructiveActions: props.destructiveActions,\n isDismissible: props.isDismissible ?? true,\n withColumnLayout: props.withColumnLayout,\n columnsSize: props.columnsSize,\n ...attrs,\n }\n : {\n activePage: props.activePage,\n dialogType: props.dialogType,\n content: props.content,\n isDismissible: props.isDismissible ?? false,\n ...attrs,\n }\n );\n\n const onCloseModal = () => {\n emit('close-modal');\n };\n\n // If the first button is a loading button then close the modal have 0.5 seconds\n // if the state is changed to 'success'.\n watch(\n () => props.actions,\n () => {\n if (props.actions?.[0]?.state === 'success') {\n setTimeout(onCloseModal, LOADING_BTN_CLOSE_AFTER_SUCCESS_DELAY_TIME);\n }\n }\n );\n\n if (Object.keys(attrs).includes('overflow-visible')) {\n deprecate(\n 'BentoModal \"overflow-visible\" property',\n `\"overflow-visible\" property was made redundant. BentoModal can work correctly without the need to pass the propery.\n Remove the \"overflow-visible\" prop from BentoModal to remove this error.`,\n '2.0.0'\n );\n }\n</script>\n\n<script lang=\"ts\">\n /**\n * Modal is a window that appear over any other page content\n * and focus user attention exclusively on one task or piece of\n * information at the moment.\n *\n * @example\n * import { BentoModal } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoModal },\n * template: `\n * <bento-modal :isOpen=\"true\">\n * Title of the Modal\n * <template #content>\n * Mandatory content slot\n * </template>\n * </bento-modal>\n * `\n * };\n */\n export default defineComponent({\n components: { BentoModalDefault, BentoModalDialog },\n });\n</script>\n"],"names":["__default__","defineComponent","slots","useSlots","hasSlot","useHasSlot","onCloseModal","emit","onMounted","props","messages","t","useI18n","actions","dialogType","toRefs","modalRef","ref","onCloseActionButton","event","acknowledgementDialogActions","computed","BentoButtonVariant","dialogActions","mandatoryCancelActionButton","updatedPassedActionsObject","_a","BentoModalDialogType","modalDialogConditionalClasses","_b","BentoModalDefault","BentoModalDialog","LOADING_BTN_CLOSE_AFTER_SUCCESS_DELAY_TIME","attrs","useAttrs","computedVariant","BentoModalVariantMapping","customProps","watch","deprecate"],"mappings":";;;;;;;;;;AA8MI,MAAAA,IAAeC,EAAgB;AAAA,EAC3B,MAAM;AACV,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBApKKC,IAAQC,KACRC,IAAUC,EAAWH,CAAK,GAgH1BI,IAAe,MAAM;AACvB,MAAAC,EAAK,aAAa;AAAA,IAAA;AAGtB,WAAAC,EAAU,MAAM;AACZ,UAAI,EAAEJ,EAAQ,SAAS,KAAMA,EAAQ,eAAe,KAAKA,EAAQ,eAAe,MAAO,CAACK,EAAM;AACpF,cAAA,IAAI,MAAM,mEAAmE;AAAA,IACvF,CACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GCsDDT,IAAeC,EAAgB;AAAA,EAC3B,MAAM,EAAE,UAAAS,EAAS;AAAA,EACjB,MAAM;AACV,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAtGK,EAAE,GAAAC,EAAE,IAAIC,EAAgD,GAExDV,IAAQC,KACRC,IAAUC,EAAWH,CAAK,GAC1B,EAAE,SAAAW,GAAS,YAAAC,EAAW,IAAIC,EAAON,CAAK,GACtCO,IAAgDC,EAAI,IAAI,GAExDX,IAAe,MAAM;AACvB,MAAAC,EAAK,aAAa;AAAA,IAAA,GAGhBW,IAAsB,CAACC,MAAiB;AAIjC,MAAAH,EAAA,MAAM,yBAAyBG,CAAK;AAAA,IAAA,GAG3CC,IAA+BC,EAAS,MAAM;AAAA,MAChD;AAAA,QACI,OAAOV,EAAE,cAAc;AAAA,QACvB,OAAOO;AAAA,QACP,SAASI,EAAmB;AAAA,MAChC;AAAA,IAAA,CACH,GAEKC,IAAgBF,EAAS,MAAM;;AACjC,YAAMG,IAAuD;AAAA,QACzD,OAAO;AAAA,QACP,OAAON;AAAA,MAAA,GAELO,KAAsDC,IAAAb,KAAA,gBAAAA,EAAS,UAAT,gBAAAa,EAAiB;AAEzE,aAAAZ,EAAW,UAAUa,EAAqB,cAC1CF,EAA2B,WAAW,KAC/BX,EAAW,UAAUa,EAAqB,SACjDF,EAA2B,UAAUH,EAAmB,YAGrD,CAACG,GAA4BD,CAA2B;AAAA,IAAA,CAClE,GAEKI,IAAgCP,EAAS,OAAO;AAAA,MAClD,CAAC,mBAAmBP,EAAW,OAAO,GAAGA,EAAW;AAAA,IACtD,EAAA;AAEF,WAAAN,EAAU,MAAM;;AACZ,UAAIC,EAAM;AACN,cAAM,IAAI;AAAA,UACN;AAAA,QAAA;AAIJ,UAAA,CAACL,EAAQ,SAAS,KAAM,CAACK,EAAM,WAAW,CAACL,EAAQ,SAAS;AACtD,cAAA,IAAI,MAAM,sDAAsD;AAGtE,YAAAsB,IAAAb,KAAA,gBAAAA,EAAS,UAAT,gBAAAa,EAAgB,UAAS;AACnB,cAAA,IAAI,MAAM,+DAA+D;AAGnF,UAAIZ,EAAW,UAAUa,EAAqB,mBAAmB,EAACd,KAAA,QAAAA,EAAS;AACjE,cAAA,IAAI,MAAM,oFAAoF;AAGxG,UAAIC,EAAW,UAAUa,EAAqB,qBAAmBE,IAAAhB,KAAA,gBAAAA,EAAS,UAAT,QAAAgB,EAAgB;AACvE,cAAA,IAAI,MAAM,6DAA6D;AAAA,IACjF,CACH;;;;;;;;;;;;;;;;;;;;;;qBCoED7B,IAAeC,EAAgB;AAAA,EAC3B,YAAY,EAAE,mBAAA6B,GAAmB,kBAAAC,EAAiB;AACtD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAhOKC,IAA6C,KAI7C9B,IAAQC,KACRC,IAAUC,EAAWH,CAAK,GAC1B+B,IAAQC,KA4IRC,IAAkBd,EAAS,MACzB,OAAO,OAA8Be,CAAwB,EAAE,SAAS3B,EAAM,OAAO,IAC9EA,EAAM,UAEV2B,EAAyB3B,EAAM,QAAQ,YAAa,CAAA,CAC9D,GAEK4B,IAAchB;AAAA,MAAS,MACzBc,EAAgB,UAAUC,EAAyB,UAC7C;AAAA,QACI,YAAY3B,EAAM;AAAA,QAClB,iBAAiBA,EAAM;AAAA,QACvB,MAAMA,EAAM;AAAA,QACZ,eAAeA,EAAM;AAAA,QACrB,cAAcA,EAAM;AAAA,QACpB,oBAAoBA,EAAM;AAAA,QAC1B,eAAeA,EAAM,iBAAiB;AAAA,QACtC,kBAAkBA,EAAM;AAAA,QACxB,aAAaA,EAAM;AAAA,QACnB,GAAGwB;AAAA,MAAA,IAEP;AAAA,QACI,YAAYxB,EAAM;AAAA,QAClB,YAAYA,EAAM;AAAA,QAClB,SAASA,EAAM;AAAA,QACf,eAAeA,EAAM,iBAAiB;AAAA,QACtC,GAAGwB;AAAA,MACP;AAAA,IAAA,GAGJ3B,IAAe,MAAM;AACvB,MAAAC,EAAK,aAAa;AAAA,IAAA;AAKtB,WAAA+B;AAAA,MACI,MAAM7B,EAAM;AAAA,MACZ,MAAM;;AACF,UAAIoB,KAAAH,IAAAjB,EAAM,YAAN,gBAAAiB,EAAgB,OAAhB,gBAAAG,EAAoB,WAAU,aAC9B,WAAWvB,GAAc0B,CAA0C;AAAA,MAE3E;AAAA,IAAA,GAGA,OAAO,KAAKC,CAAK,EAAE,SAAS,kBAAkB,KAC9CM;AAAA,MACI;AAAA,MACA;AAAA;AAAA,MAEA;AAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"modal.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}