@adyen/bento-vue2 1.59.0 → 1.60.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 (576) hide show
  1. package/package.json +12 -8
  2. package/dist/@types/components.d.ts +0 -201
  3. package/dist/@types/index.d.ts +0 -17671
  4. package/dist/accordion.js +0 -6
  5. package/dist/accordion.js.map +0 -1
  6. package/dist/action-bar.js +0 -5
  7. package/dist/action-bar.js.map +0 -1
  8. package/dist/alert.js +0 -8
  9. package/dist/alert.js.map +0 -1
  10. package/dist/assets/accordion-item.css +0 -1
  11. package/dist/assets/action-bar.css +0 -1
  12. package/dist/assets/alert.css +0 -1
  13. package/dist/assets/avatar.css +0 -1
  14. package/dist/assets/base-button.css +0 -1
  15. package/dist/assets/base-modal.css +0 -1
  16. package/dist/assets/button-actions-with-menu.css +0 -1
  17. package/dist/assets/button-actions.css +0 -1
  18. package/dist/assets/button.css +0 -1
  19. package/dist/assets/calendar.css +0 -1
  20. package/dist/assets/card.css +0 -1
  21. package/dist/assets/checkbox-group.css +0 -1
  22. package/dist/assets/checkbox-input.css +0 -1
  23. package/dist/assets/checkbox.css +0 -1
  24. package/dist/assets/chip.css +0 -1
  25. package/dist/assets/code-snippet.css +0 -1
  26. package/dist/assets/controls-group.css +0 -1
  27. package/dist/assets/copy.css +0 -1
  28. package/dist/assets/country.css +0 -1
  29. package/dist/assets/currency.css +0 -1
  30. package/dist/assets/dashboard-section.css +0 -1
  31. package/dist/assets/dashed-underline.css +0 -1
  32. package/dist/assets/data-grid-template.css +0 -1
  33. package/dist/assets/data-grid.css +0 -1
  34. package/dist/assets/date-picker.css +0 -1
  35. package/dist/assets/date-range-picker.css +0 -1
  36. package/dist/assets/date.css +0 -1
  37. package/dist/assets/dialog-page.css +0 -1
  38. package/dist/assets/divider.css +0 -1
  39. package/dist/assets/dropdown-default-textbox.css +0 -1
  40. package/dist/assets/dropdown-tag.css +0 -1
  41. package/dist/assets/dropdown.css +0 -1
  42. package/dist/assets/empty-state.css +0 -1
  43. package/dist/assets/error-message.css +0 -1
  44. package/dist/assets/file-uploader.css +0 -1
  45. package/dist/assets/filter-bar.css +0 -1
  46. package/dist/assets/fixed-scroller.css +0 -1
  47. package/dist/assets/focus-trap.css +0 -1
  48. package/dist/assets/footer-actions.css +0 -1
  49. package/dist/assets/form-layout-title.css +0 -1
  50. package/dist/assets/grid-layout.css +0 -1
  51. package/dist/assets/header-with-views.css +0 -1
  52. package/dist/assets/header.css +0 -1
  53. package/dist/assets/info-icon-with-popover.css +0 -1
  54. package/dist/assets/info-icon.css +0 -1
  55. package/dist/assets/input-field-password.css +0 -1
  56. package/dist/assets/input-field-phone-number.css +0 -1
  57. package/dist/assets/input-field.css +0 -1
  58. package/dist/assets/inspector.css +0 -1
  59. package/dist/assets/layout-row.css +0 -1
  60. package/dist/assets/link.css +0 -1
  61. package/dist/assets/listbox-option-tag.css +0 -1
  62. package/dist/assets/loading-indicator.css +0 -1
  63. package/dist/assets/main.css +0 -1
  64. package/dist/assets/menu.css +0 -1
  65. package/dist/assets/modal-fullscreen.css +0 -1
  66. package/dist/assets/pagination.css +0 -1
  67. package/dist/assets/payment-method.css +0 -1
  68. package/dist/assets/popover.css +0 -1
  69. package/dist/assets/popper-container.css +0 -1
  70. package/dist/assets/promo-banner.css +0 -1
  71. package/dist/assets/radio-group.css +0 -1
  72. package/dist/assets/radio-input.css +0 -1
  73. package/dist/assets/rich-text-editor.css +0 -1
  74. package/dist/assets/search-bar.css +0 -1
  75. package/dist/assets/secondary-nav.css +0 -1
  76. package/dist/assets/segmented-control.css +0 -1
  77. package/dist/assets/selection-card-group.css +0 -1
  78. package/dist/assets/sidepanel.css +0 -1
  79. package/dist/assets/status.css +0 -1
  80. package/dist/assets/step.css +0 -1
  81. package/dist/assets/structured-list-item.css +0 -1
  82. package/dist/assets/summary-grid.css +0 -1
  83. package/dist/assets/tabs.css +0 -1
  84. package/dist/assets/tag.css +0 -1
  85. package/dist/assets/teleport.css +0 -1
  86. package/dist/assets/textarea.css +0 -1
  87. package/dist/assets/timeline-item.css +0 -1
  88. package/dist/assets/toast.css +0 -1
  89. package/dist/assets/toggle-button.css +0 -1
  90. package/dist/assets/toggle.css +0 -1
  91. package/dist/assets/tooltip.css +0 -1
  92. package/dist/assets/tutorial.css +0 -1
  93. package/dist/assets/typography.css +0 -1
  94. package/dist/assets/use-cached-selected-values.css +0 -1
  95. package/dist/avatar.js +0 -5
  96. package/dist/avatar.js.map +0 -1
  97. package/dist/button.js +0 -16
  98. package/dist/button.js.map +0 -1
  99. package/dist/card.js +0 -7
  100. package/dist/card.js.map +0 -1
  101. package/dist/checkbox.js +0 -11
  102. package/dist/checkbox.js.map +0 -1
  103. package/dist/chip.js +0 -5
  104. package/dist/chip.js.map +0 -1
  105. package/dist/chunks/1-generic-use.CZhwP2Yc.js +0 -5
  106. package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +0 -1
  107. package/dist/chunks/1-generic-use.R6x8PEGA.js +0 -5
  108. package/dist/chunks/1-generic-use.R6x8PEGA.js.map +0 -1
  109. package/dist/chunks/2-generic-use.CNKjB4B7.js +0 -5
  110. package/dist/chunks/2-generic-use.CNKjB4B7.js.map +0 -1
  111. package/dist/chunks/2-generic-use.w0fUhovx.js +0 -5
  112. package/dist/chunks/2-generic-use.w0fUhovx.js.map +0 -1
  113. package/dist/chunks/3-generic-use.BLEzR04g.js +0 -5
  114. package/dist/chunks/3-generic-use.BLEzR04g.js.map +0 -1
  115. package/dist/chunks/3-generic-use.D3NFHgI4.js +0 -5
  116. package/dist/chunks/3-generic-use.D3NFHgI4.js.map +0 -1
  117. package/dist/chunks/4-generic-use.CULEpvgj.js +0 -5
  118. package/dist/chunks/4-generic-use.CULEpvgj.js.map +0 -1
  119. package/dist/chunks/4-generic-use.D82y3n39.js +0 -5
  120. package/dist/chunks/4-generic-use.D82y3n39.js.map +0 -1
  121. package/dist/chunks/_commonjsHelpers.C6fGbg64.js +0 -7
  122. package/dist/chunks/_commonjsHelpers.C6fGbg64.js.map +0 -1
  123. package/dist/chunks/_plugin-vue2_normalizer.CeySl7Fu.js +0 -11
  124. package/dist/chunks/_plugin-vue2_normalizer.CeySl7Fu.js.map +0 -1
  125. package/dist/chunks/accordion-item.C4tyRMCt.js +0 -116
  126. package/dist/chunks/accordion-item.C4tyRMCt.js.map +0 -1
  127. package/dist/chunks/action-bar.CHVePTM6.js +0 -161
  128. package/dist/chunks/action-bar.CHVePTM6.js.map +0 -1
  129. package/dist/chunks/adding-payment-methods.BJZLPxtM.js +0 -5
  130. package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +0 -1
  131. package/dist/chunks/adding-payment-methods.Dle8zt43.js +0 -5
  132. package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +0 -1
  133. package/dist/chunks/adyen-giving.Ffw_DlJK.js +0 -5
  134. package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +0 -1
  135. package/dist/chunks/adyen-giving.LiKHj_jY.js +0 -5
  136. package/dist/chunks/adyen-giving.LiKHj_jY.js.map +0 -1
  137. package/dist/chunks/alert.Du9NfW-V.js +0 -103
  138. package/dist/chunks/alert.Du9NfW-V.js.map +0 -1
  139. package/dist/chunks/aria-label.CaUURpnB.js +0 -13
  140. package/dist/chunks/aria-label.CaUURpnB.js.map +0 -1
  141. package/dist/chunks/avatar.BgwjpLQO.js +0 -71
  142. package/dist/chunks/avatar.BgwjpLQO.js.map +0 -1
  143. package/dist/chunks/base-button.-gx_u8Bd.js +0 -86
  144. package/dist/chunks/base-button.-gx_u8Bd.js.map +0 -1
  145. package/dist/chunks/base-modal.DxywEyGO.js +0 -373
  146. package/dist/chunks/base-modal.DxywEyGO.js.map +0 -1
  147. package/dist/chunks/base-modal.keys.C2PQXcE2.js +0 -5
  148. package/dist/chunks/base-modal.keys.C2PQXcE2.js.map +0 -1
  149. package/dist/chunks/bin.DuebwJYu.js +0 -24
  150. package/dist/chunks/bin.DuebwJYu.js.map +0 -1
  151. package/dist/chunks/button-actions-with-menu.Bh5D7sgB.js +0 -166
  152. package/dist/chunks/button-actions-with-menu.Bh5D7sgB.js.map +0 -1
  153. package/dist/chunks/button-actions.V0te_IrY.js +0 -194
  154. package/dist/chunks/button-actions.V0te_IrY.js.map +0 -1
  155. package/dist/chunks/button.BuD-IsW5.js +0 -99
  156. package/dist/chunks/button.BuD-IsW5.js.map +0 -1
  157. package/dist/chunks/calendar.C4vFYvsY.js +0 -1166
  158. package/dist/chunks/calendar.C4vFYvsY.js.map +0 -1
  159. package/dist/chunks/card.CC4BEw-7.js +0 -123
  160. package/dist/chunks/card.CC4BEw-7.js.map +0 -1
  161. package/dist/chunks/checkbox-group.BfPZ_Eec.js +0 -152
  162. package/dist/chunks/checkbox-group.BfPZ_Eec.js.map +0 -1
  163. package/dist/chunks/checkbox-input.Dr1GS2BZ.js +0 -137
  164. package/dist/chunks/checkbox-input.Dr1GS2BZ.js.map +0 -1
  165. package/dist/chunks/checkbox.CTeT6JEP.js +0 -176
  166. package/dist/chunks/checkbox.CTeT6JEP.js.map +0 -1
  167. package/dist/chunks/checkmark-circle-fill.DZBl7CeY.js +0 -24
  168. package/dist/chunks/checkmark-circle-fill.DZBl7CeY.js.map +0 -1
  169. package/dist/chunks/checkmark-small.C8T8ISN6.js +0 -24
  170. package/dist/chunks/checkmark-small.C8T8ISN6.js.map +0 -1
  171. package/dist/chunks/chevron-left.DOMTgGel.js +0 -43
  172. package/dist/chunks/chevron-left.DOMTgGel.js.map +0 -1
  173. package/dist/chunks/chevron-up.CSVyoaTy.js +0 -43
  174. package/dist/chunks/chevron-up.CSVyoaTy.js.map +0 -1
  175. package/dist/chunks/chip.bZEhHfIk.js +0 -63
  176. package/dist/chunks/chip.bZEhHfIk.js.map +0 -1
  177. package/dist/chunks/click-outside.C1Ud8AA2.js +0 -23
  178. package/dist/chunks/click-outside.C1Ud8AA2.js.map +0 -1
  179. package/dist/chunks/code-snippet.0x8O1dkV.js +0 -259
  180. package/dist/chunks/code-snippet.0x8O1dkV.js.map +0 -1
  181. package/dist/chunks/codemirror.Zv80n3Z2.js +0 -14628
  182. package/dist/chunks/codemirror.Zv80n3Z2.js.map +0 -1
  183. package/dist/chunks/controls-group.CvpddKxq.js +0 -81
  184. package/dist/chunks/controls-group.CvpddKxq.js.map +0 -1
  185. package/dist/chunks/copy.TvI9Au3G.js +0 -129
  186. package/dist/chunks/copy.TvI9Au3G.js.map +0 -1
  187. package/dist/chunks/country.Df7erZov.js +0 -94
  188. package/dist/chunks/country.Df7erZov.js.map +0 -1
  189. package/dist/chunks/country.types.C0Q_hhgJ.js +0 -269
  190. package/dist/chunks/country.types.C0Q_hhgJ.js.map +0 -1
  191. package/dist/chunks/cross-circle-fill-small.YhLgeipP.js +0 -24
  192. package/dist/chunks/cross-circle-fill-small.YhLgeipP.js.map +0 -1
  193. package/dist/chunks/cross-circle-fill.Ra0-PIUo.js +0 -24
  194. package/dist/chunks/cross-circle-fill.Ra0-PIUo.js.map +0 -1
  195. package/dist/chunks/cross-small.CZqsjZDz.js +0 -24
  196. package/dist/chunks/cross-small.CZqsjZDz.js.map +0 -1
  197. package/dist/chunks/cross.CJ5EEL2c.js +0 -24
  198. package/dist/chunks/cross.CJ5EEL2c.js.map +0 -1
  199. package/dist/chunks/currency.B1F9YOIx.js +0 -106
  200. package/dist/chunks/currency.B1F9YOIx.js.map +0 -1
  201. package/dist/chunks/dashboard-section.C5zXN82c.js +0 -102
  202. package/dist/chunks/dashboard-section.C5zXN82c.js.map +0 -1
  203. package/dist/chunks/dashed-underline.pd87ohFZ.js +0 -65
  204. package/dist/chunks/dashed-underline.pd87ohFZ.js.map +0 -1
  205. package/dist/chunks/data-grid-template.keys.2_AkxuNT.js +0 -5
  206. package/dist/chunks/data-grid-template.keys.2_AkxuNT.js.map +0 -1
  207. package/dist/chunks/data-grid-template.l-aJapU0.js +0 -84
  208. package/dist/chunks/data-grid-template.l-aJapU0.js.map +0 -1
  209. package/dist/chunks/data-grid.vFEU_kt8.js +0 -2782
  210. package/dist/chunks/data-grid.vFEU_kt8.js.map +0 -1
  211. package/dist/chunks/date-input.BqBdAO1E.js +0 -17
  212. package/dist/chunks/date-input.BqBdAO1E.js.map +0 -1
  213. package/dist/chunks/date-picker.DjbZAEcj.js +0 -235
  214. package/dist/chunks/date-picker.DjbZAEcj.js.map +0 -1
  215. package/dist/chunks/date-range-picker.C1ijTRdf.js +0 -966
  216. package/dist/chunks/date-range-picker.C1ijTRdf.js.map +0 -1
  217. package/dist/chunks/date.dYFFEunA.js +0 -987
  218. package/dist/chunks/date.dYFFEunA.js.map +0 -1
  219. package/dist/chunks/debounce.DUTu11PS.js +0 -10
  220. package/dist/chunks/debounce.DUTu11PS.js.map +0 -1
  221. package/dist/chunks/dialog-page.uGh0kYDL.js +0 -131
  222. package/dist/chunks/dialog-page.uGh0kYDL.js.map +0 -1
  223. package/dist/chunks/directive.Cbdox5VL.js +0 -23
  224. package/dist/chunks/directive.Cbdox5VL.js.map +0 -1
  225. package/dist/chunks/divider.Cc4JFWG_.js +0 -35
  226. package/dist/chunks/divider.Cc4JFWG_.js.map +0 -1
  227. package/dist/chunks/dot.CnkXzRn3.js +0 -24
  228. package/dist/chunks/dot.CnkXzRn3.js.map +0 -1
  229. package/dist/chunks/dropdown-default-textbox.AUsF-RIc.js +0 -348
  230. package/dist/chunks/dropdown-default-textbox.AUsF-RIc.js.map +0 -1
  231. package/dist/chunks/dropdown-tag.CXY_WiRj.js +0 -215
  232. package/dist/chunks/dropdown-tag.CXY_WiRj.js.map +0 -1
  233. package/dist/chunks/dropdown.DYN8Okpo.js +0 -818
  234. package/dist/chunks/dropdown.DYN8Okpo.js.map +0 -1
  235. package/dist/chunks/empty-state.IvvHHQ35.js +0 -151
  236. package/dist/chunks/empty-state.IvvHHQ35.js.map +0 -1
  237. package/dist/chunks/error-message.BM8Y6-u5.js +0 -121
  238. package/dist/chunks/error-message.BM8Y6-u5.js.map +0 -1
  239. package/dist/chunks/es6.BA9GH7QZ.js +0 -11
  240. package/dist/chunks/es6.BA9GH7QZ.js.map +0 -1
  241. package/dist/chunks/events.CMzGybJJ.js +0 -47
  242. package/dist/chunks/events.CMzGybJJ.js.map +0 -1
  243. package/dist/chunks/expand.C263WARj.js +0 -24
  244. package/dist/chunks/expand.C263WARj.js.map +0 -1
  245. package/dist/chunks/file-uploader.pWrwnN-c.js +0 -1913
  246. package/dist/chunks/file-uploader.pWrwnN-c.js.map +0 -1
  247. package/dist/chunks/filter-bar.BYHzhAr8.js +0 -2288
  248. package/dist/chunks/filter-bar.BYHzhAr8.js.map +0 -1
  249. package/dist/chunks/fixed-scroller.D0a6q8_i.js +0 -106
  250. package/dist/chunks/fixed-scroller.D0a6q8_i.js.map +0 -1
  251. package/dist/chunks/focus-trap.DKT1Fe6X.js +0 -499
  252. package/dist/chunks/focus-trap.DKT1Fe6X.js.map +0 -1
  253. package/dist/chunks/footer-actions.Cn-793_Z.js +0 -96
  254. package/dist/chunks/footer-actions.Cn-793_Z.js.map +0 -1
  255. package/dist/chunks/form-layout-title.DBCY18f8.js +0 -190
  256. package/dist/chunks/form-layout-title.DBCY18f8.js.map +0 -1
  257. package/dist/chunks/form-layout.types.D3EKzbE7.js +0 -5
  258. package/dist/chunks/form-layout.types.D3EKzbE7.js.map +0 -1
  259. package/dist/chunks/generate-uid.NJ8tVoha.js +0 -32
  260. package/dist/chunks/generate-uid.NJ8tVoha.js.map +0 -1
  261. package/dist/chunks/get-date-locale.BN8xEjY0.js +0 -1735
  262. package/dist/chunks/get-date-locale.BN8xEjY0.js.map +0 -1
  263. package/dist/chunks/get-slot-text.BQS5Olxm.js +0 -12
  264. package/dist/chunks/get-slot-text.BQS5Olxm.js.map +0 -1
  265. package/dist/chunks/grid-layout.HvTAa4to.js +0 -76
  266. package/dist/chunks/grid-layout.HvTAa4to.js.map +0 -1
  267. package/dist/chunks/header-with-views.Cqd864mp.js +0 -1536
  268. package/dist/chunks/header-with-views.Cqd864mp.js.map +0 -1
  269. package/dist/chunks/header.Ds1iyTzn.js +0 -187
  270. package/dist/chunks/header.Ds1iyTzn.js.map +0 -1
  271. package/dist/chunks/i18n.BQkEbtPM.js +0 -31
  272. package/dist/chunks/i18n.BQkEbtPM.js.map +0 -1
  273. package/dist/chunks/image.C2D2hKat.js +0 -56
  274. package/dist/chunks/image.C2D2hKat.js.map +0 -1
  275. package/dist/chunks/index.BDuTpjD8.js +0 -40
  276. package/dist/chunks/index.BDuTpjD8.js.map +0 -1
  277. package/dist/chunks/index.BxBB1rsx.js +0 -15
  278. package/dist/chunks/index.BxBB1rsx.js.map +0 -1
  279. package/dist/chunks/index.Cl4_42j5.js +0 -8
  280. package/dist/chunks/index.Cl4_42j5.js.map +0 -1
  281. package/dist/chunks/index.DD7TppDb.js +0 -10
  282. package/dist/chunks/index.DD7TppDb.js.map +0 -1
  283. package/dist/chunks/index.oJzeCMPe.js +0 -529
  284. package/dist/chunks/index.oJzeCMPe.js.map +0 -1
  285. package/dist/chunks/info-icon-with-popover.yLETQrb9.js +0 -71
  286. package/dist/chunks/info-icon-with-popover.yLETQrb9.js.map +0 -1
  287. package/dist/chunks/info-icon.G9FAlO4C.js +0 -41
  288. package/dist/chunks/info-icon.G9FAlO4C.js.map +0 -1
  289. package/dist/chunks/info.4d_mJHvT.js +0 -24
  290. package/dist/chunks/info.4d_mJHvT.js.map +0 -1
  291. package/dist/chunks/input-field-password.C1OF1nmo.js +0 -251
  292. package/dist/chunks/input-field-password.C1OF1nmo.js.map +0 -1
  293. package/dist/chunks/input-field-phone-number.Dfa1fxvS.js +0 -3097
  294. package/dist/chunks/input-field-phone-number.Dfa1fxvS.js.map +0 -1
  295. package/dist/chunks/input-field.C9-4Xo4h.js +0 -152
  296. package/dist/chunks/input-field.C9-4Xo4h.js.map +0 -1
  297. package/dist/chunks/inspector.types.NVDCPiVL.js +0 -104
  298. package/dist/chunks/inspector.types.NVDCPiVL.js.map +0 -1
  299. package/dist/chunks/internal-error.BLZodVBE.js +0 -5
  300. package/dist/chunks/internal-error.BLZodVBE.js.map +0 -1
  301. package/dist/chunks/internal-error.BmrwJFpR.js +0 -5
  302. package/dist/chunks/internal-error.BmrwJFpR.js.map +0 -1
  303. package/dist/chunks/keyboard-navigation.pB8weElW.js +0 -66
  304. package/dist/chunks/keyboard-navigation.pB8weElW.js.map +0 -1
  305. package/dist/chunks/layout-row.c0ugsIw6.js +0 -87
  306. package/dist/chunks/layout-row.c0ugsIw6.js.map +0 -1
  307. package/dist/chunks/link.D0P79Toh.js +0 -95
  308. package/dist/chunks/link.D0P79Toh.js.map +0 -1
  309. package/dist/chunks/listbox-option-tag.BcLYsizL.js +0 -44
  310. package/dist/chunks/listbox-option-tag.BcLYsizL.js.map +0 -1
  311. package/dist/chunks/loading-indicator.z8COalOc.js +0 -48
  312. package/dist/chunks/loading-indicator.z8COalOc.js.map +0 -1
  313. package/dist/chunks/menu.DDXB-L8u.js +0 -601
  314. package/dist/chunks/menu.DDXB-L8u.js.map +0 -1
  315. package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js +0 -5
  316. package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js.map +0 -1
  317. package/dist/chunks/modal-fullscreen.os2jZ30i.js +0 -202
  318. package/dist/chunks/modal-fullscreen.os2jZ30i.js.map +0 -1
  319. package/dist/chunks/modal.D5OesJnF.js +0 -445
  320. package/dist/chunks/modal.D5OesJnF.js.map +0 -1
  321. package/dist/chunks/no-results-found.Bg_ZcEid.js +0 -5
  322. package/dist/chunks/no-results-found.Bg_ZcEid.js.map +0 -1
  323. package/dist/chunks/no-results-found.BqvYsBR6.js +0 -5
  324. package/dist/chunks/no-results-found.BqvYsBR6.js.map +0 -1
  325. package/dist/chunks/notifications-cleared.BMZk37uf.js +0 -5
  326. package/dist/chunks/notifications-cleared.BMZk37uf.js.map +0 -1
  327. package/dist/chunks/notifications-cleared.C7W9ZXY7.js +0 -5
  328. package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +0 -1
  329. package/dist/chunks/on-click-outside.D9aY9g8G.js +0 -101
  330. package/dist/chunks/on-click-outside.D9aY9g8G.js.map +0 -1
  331. package/dist/chunks/page-not-found.COJLPVaU.js +0 -5
  332. package/dist/chunks/page-not-found.COJLPVaU.js.map +0 -1
  333. package/dist/chunks/page-not-found.DWW6W-PZ.js +0 -5
  334. package/dist/chunks/page-not-found.DWW6W-PZ.js.map +0 -1
  335. package/dist/chunks/pagination.BoWzbJVF.js +0 -338
  336. package/dist/chunks/pagination.BoWzbJVF.js.map +0 -1
  337. package/dist/chunks/payment-method.Cx4nPDtE.js +0 -76
  338. package/dist/chunks/payment-method.Cx4nPDtE.js.map +0 -1
  339. package/dist/chunks/payment-method.types.BqtH7RM2.js +0 -5
  340. package/dist/chunks/payment-method.types.BqtH7RM2.js.map +0 -1
  341. package/dist/chunks/planned-maintenance.C61sWB9h.js +0 -5
  342. package/dist/chunks/planned-maintenance.C61sWB9h.js.map +0 -1
  343. package/dist/chunks/planned-maintenance.jmWYTdet.js +0 -5
  344. package/dist/chunks/planned-maintenance.jmWYTdet.js.map +0 -1
  345. package/dist/chunks/popover.K53VtitI.js +0 -295
  346. package/dist/chunks/popover.K53VtitI.js.map +0 -1
  347. package/dist/chunks/popper-container.DUNt7nKd.js +0 -1393
  348. package/dist/chunks/popper-container.DUNt7nKd.js.map +0 -1
  349. package/dist/chunks/promo-banner.BpLrkuMc.js +0 -70
  350. package/dist/chunks/promo-banner.BpLrkuMc.js.map +0 -1
  351. package/dist/chunks/radio-group.BE8gvwsL.js +0 -229
  352. package/dist/chunks/radio-group.BE8gvwsL.js.map +0 -1
  353. package/dist/chunks/radio-input.uJAhxKRs.js +0 -90
  354. package/dist/chunks/radio-input.uJAhxKRs.js.map +0 -1
  355. package/dist/chunks/referrals.BvtT-kQS.js +0 -5
  356. package/dist/chunks/referrals.BvtT-kQS.js.map +0 -1
  357. package/dist/chunks/referrals.aX8WZigH.js +0 -5
  358. package/dist/chunks/referrals.aX8WZigH.js.map +0 -1
  359. package/dist/chunks/refresh.Bc9FzGjJ.js +0 -24
  360. package/dist/chunks/refresh.Bc9FzGjJ.js.map +0 -1
  361. package/dist/chunks/resize.Bqks3WUm.js +0 -15
  362. package/dist/chunks/resize.Bqks3WUm.js.map +0 -1
  363. package/dist/chunks/rich-text-editor.CP_xdt6R.js +0 -6203
  364. package/dist/chunks/rich-text-editor.CP_xdt6R.js.map +0 -1
  365. package/dist/chunks/search-bar.I2f0f4fU.js +0 -97
  366. package/dist/chunks/search-bar.I2f0f4fU.js.map +0 -1
  367. package/dist/chunks/search.DLtglc02.js +0 -24
  368. package/dist/chunks/search.DLtglc02.js.map +0 -1
  369. package/dist/chunks/secondary-nav.D1-GnlU-.js +0 -112
  370. package/dist/chunks/secondary-nav.D1-GnlU-.js.map +0 -1
  371. package/dist/chunks/segmented-control.A2eatwIG.js +0 -112
  372. package/dist/chunks/segmented-control.A2eatwIG.js.map +0 -1
  373. package/dist/chunks/segmented-control.types.BHRLV8KU.js +0 -5
  374. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +0 -1
  375. package/dist/chunks/selection-card-group.CFNCbcRU.js +0 -299
  376. package/dist/chunks/selection-card-group.CFNCbcRU.js.map +0 -1
  377. package/dist/chunks/show.e4LEpZKG.js +0 -43
  378. package/dist/chunks/show.e4LEpZKG.js.map +0 -1
  379. package/dist/chunks/sidepanel.CGGRp0oL.js +0 -210
  380. package/dist/chunks/sidepanel.CGGRp0oL.js.map +0 -1
  381. package/dist/chunks/sidepanel.keys.R0DKQuYx.js +0 -5
  382. package/dist/chunks/sidepanel.keys.R0DKQuYx.js.map +0 -1
  383. package/dist/chunks/status.types.p_TCvoo0.js +0 -36
  384. package/dist/chunks/status.types.p_TCvoo0.js.map +0 -1
  385. package/dist/chunks/step.CuOpi-Ye.js +0 -217
  386. package/dist/chunks/step.CuOpi-Ye.js.map +0 -1
  387. package/dist/chunks/structured-list-item.C8K371Ss.js +0 -87
  388. package/dist/chunks/structured-list-item.C8K371Ss.js.map +0 -1
  389. package/dist/chunks/success.DhioLvPD.js +0 -5
  390. package/dist/chunks/success.DhioLvPD.js.map +0 -1
  391. package/dist/chunks/success.nNwxJRBS.js +0 -5
  392. package/dist/chunks/success.nNwxJRBS.js.map +0 -1
  393. package/dist/chunks/summary-grid.keys.CxTf_FOc.js +0 -6
  394. package/dist/chunks/summary-grid.keys.CxTf_FOc.js.map +0 -1
  395. package/dist/chunks/summary-grid.types.DdghLR6f.js +0 -301
  396. package/dist/chunks/summary-grid.types.DdghLR6f.js.map +0 -1
  397. package/dist/chunks/tabs.DX_Gq12z.js +0 -205
  398. package/dist/chunks/tabs.DX_Gq12z.js.map +0 -1
  399. package/dist/chunks/tabs.keys.Bc2pSKRw.js +0 -7
  400. package/dist/chunks/tabs.keys.Bc2pSKRw.js.map +0 -1
  401. package/dist/chunks/tag.B2vxWwV1.js +0 -44
  402. package/dist/chunks/tag.B2vxWwV1.js.map +0 -1
  403. package/dist/chunks/teleport.BV6zrDjA.js +0 -128
  404. package/dist/chunks/teleport.BV6zrDjA.js.map +0 -1
  405. package/dist/chunks/textarea.DPa9t8Jw.js +0 -200
  406. package/dist/chunks/textarea.DPa9t8Jw.js.map +0 -1
  407. package/dist/chunks/timeline-item.D2534IA9.js +0 -386
  408. package/dist/chunks/timeline-item.D2534IA9.js.map +0 -1
  409. package/dist/chunks/toast.B2u2W_TQ.js +0 -171
  410. package/dist/chunks/toast.B2u2W_TQ.js.map +0 -1
  411. package/dist/chunks/toggle-button.ChDbeBZ8.js +0 -83
  412. package/dist/chunks/toggle-button.ChDbeBZ8.js.map +0 -1
  413. package/dist/chunks/toggle.Q52IIKfi.js +0 -121
  414. package/dist/chunks/toggle.Q52IIKfi.js.map +0 -1
  415. package/dist/chunks/tooltip.B8nCejpo.js +0 -189
  416. package/dist/chunks/tooltip.B8nCejpo.js.map +0 -1
  417. package/dist/chunks/truncate.BfIl_-71.js +0 -8
  418. package/dist/chunks/truncate.BfIl_-71.js.map +0 -1
  419. package/dist/chunks/tutorial.X3GhtKlY.js +0 -348
  420. package/dist/chunks/tutorial.X3GhtKlY.js.map +0 -1
  421. package/dist/chunks/typography.J1v_SPG3.js +0 -87
  422. package/dist/chunks/typography.J1v_SPG3.js.map +0 -1
  423. package/dist/chunks/upload-files.5wQwbfkp.js +0 -5
  424. package/dist/chunks/upload-files.5wQwbfkp.js.map +0 -1
  425. package/dist/chunks/upload-files.jTQY6y2X.js +0 -5
  426. package/dist/chunks/upload-files.jTQY6y2X.js.map +0 -1
  427. package/dist/chunks/use-bento-toast-controller.Cn_2Eogn.js +0 -52
  428. package/dist/chunks/use-bento-toast-controller.Cn_2Eogn.js.map +0 -1
  429. package/dist/chunks/use-cached-selected-values.C6VRhL5_.js +0 -1177
  430. package/dist/chunks/use-cached-selected-values.C6VRhL5_.js.map +0 -1
  431. package/dist/chunks/use-click-outside.BnhTgpSt.js +0 -14
  432. package/dist/chunks/use-click-outside.BnhTgpSt.js.map +0 -1
  433. package/dist/chunks/use-country-items.HFnjuDsG.js +0 -30
  434. package/dist/chunks/use-country-items.HFnjuDsG.js.map +0 -1
  435. package/dist/chunks/use-country-phon-code.DVgE19zT.js +0 -5610
  436. package/dist/chunks/use-country-phon-code.DVgE19zT.js.map +0 -1
  437. package/dist/chunks/use-default-slot-validator.BDn0wkYP.js +0 -13
  438. package/dist/chunks/use-default-slot-validator.BDn0wkYP.js.map +0 -1
  439. package/dist/chunks/use-expandable-content-height.GkjjbmPy.js +0 -17
  440. package/dist/chunks/use-expandable-content-height.GkjjbmPy.js.map +0 -1
  441. package/dist/chunks/use-form-layout-loading.D3lALhtC.js +0 -12
  442. package/dist/chunks/use-form-layout-loading.D3lALhtC.js.map +0 -1
  443. package/dist/chunks/use-has-slot.C9lQZ6nz.js +0 -6
  444. package/dist/chunks/use-has-slot.C9lQZ6nz.js.map +0 -1
  445. package/dist/chunks/warning-filled.Cd0kVWwa.js +0 -24
  446. package/dist/chunks/warning-filled.Cd0kVWwa.js.map +0 -1
  447. package/dist/chunks/wrong-environment.BOsyKdRI.js +0 -5
  448. package/dist/chunks/wrong-environment.BOsyKdRI.js.map +0 -1
  449. package/dist/chunks/wrong-environment.BiHTPtbJ.js +0 -5
  450. package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +0 -1
  451. package/dist/click-outside.js +0 -5
  452. package/dist/click-outside.js.map +0 -1
  453. package/dist/code-snippet.js +0 -8
  454. package/dist/code-snippet.js.map +0 -1
  455. package/dist/country.js +0 -12
  456. package/dist/country.js.map +0 -1
  457. package/dist/currency.js +0 -6
  458. package/dist/currency.js.map +0 -1
  459. package/dist/dashboard-template.js +0 -6
  460. package/dist/dashboard-template.js.map +0 -1
  461. package/dist/dashed-underline.js +0 -5
  462. package/dist/dashed-underline.js.map +0 -1
  463. package/dist/data-grid-template.js +0 -5
  464. package/dist/data-grid-template.js.map +0 -1
  465. package/dist/data-grid.js +0 -11
  466. package/dist/data-grid.js.map +0 -1
  467. package/dist/date-picker.js +0 -8
  468. package/dist/date-picker.js.map +0 -1
  469. package/dist/date-range-picker.js +0 -8
  470. package/dist/date-range-picker.js.map +0 -1
  471. package/dist/date.js +0 -6
  472. package/dist/date.js.map +0 -1
  473. package/dist/divider.js +0 -5
  474. package/dist/divider.js.map +0 -1
  475. package/dist/dropdown.js +0 -16
  476. package/dist/dropdown.js.map +0 -1
  477. package/dist/empty-state.js +0 -8
  478. package/dist/empty-state.js.map +0 -1
  479. package/dist/file-uploader.js +0 -5
  480. package/dist/file-uploader.js.map +0 -1
  481. package/dist/filter-bar.js +0 -8
  482. package/dist/filter-bar.js.map +0 -1
  483. package/dist/focus-trap.js +0 -5
  484. package/dist/focus-trap.js.map +0 -1
  485. package/dist/fonts/fonts.css +0 -2
  486. package/dist/form-layout.js +0 -8
  487. package/dist/form-layout.js.map +0 -1
  488. package/dist/header-with-views.js +0 -5
  489. package/dist/header-with-views.js.map +0 -1
  490. package/dist/header.js +0 -5
  491. package/dist/header.js.map +0 -1
  492. package/dist/image.js +0 -7
  493. package/dist/image.js.map +0 -1
  494. package/dist/index.js +0 -371
  495. package/dist/index.js.map +0 -1
  496. package/dist/info-icon.js +0 -5
  497. package/dist/info-icon.js.map +0 -1
  498. package/dist/input-field-password.js +0 -10
  499. package/dist/input-field-password.js.map +0 -1
  500. package/dist/input-field-phone-number.js +0 -5
  501. package/dist/input-field-phone-number.js.map +0 -1
  502. package/dist/input-field.js +0 -10
  503. package/dist/input-field.js.map +0 -1
  504. package/dist/inspector.js +0 -6
  505. package/dist/inspector.js.map +0 -1
  506. package/dist/internal.js +0 -43
  507. package/dist/internal.js.map +0 -1
  508. package/dist/layout.js +0 -6
  509. package/dist/layout.js.map +0 -1
  510. package/dist/link.js +0 -6
  511. package/dist/link.js.map +0 -1
  512. package/dist/loading-indicator.js +0 -6
  513. package/dist/loading-indicator.js.map +0 -1
  514. package/dist/menu.js +0 -6
  515. package/dist/menu.js.map +0 -1
  516. package/dist/modal-fullscreen.js +0 -6
  517. package/dist/modal-fullscreen.js.map +0 -1
  518. package/dist/modal.js +0 -14
  519. package/dist/modal.js.map +0 -1
  520. package/dist/pagination.js +0 -5
  521. package/dist/pagination.js.map +0 -1
  522. package/dist/payment-method.js +0 -7
  523. package/dist/payment-method.js.map +0 -1
  524. package/dist/popover.js +0 -6
  525. package/dist/popover.js.map +0 -1
  526. package/dist/popper-container.js +0 -9
  527. package/dist/popper-container.js.map +0 -1
  528. package/dist/promo-banner.js +0 -7
  529. package/dist/promo-banner.js.map +0 -1
  530. package/dist/radio-group.js +0 -9
  531. package/dist/radio-group.js.map +0 -1
  532. package/dist/rich-text-editor.js +0 -5
  533. package/dist/rich-text-editor.js.map +0 -1
  534. package/dist/search-bar.js +0 -9
  535. package/dist/search-bar.js.map +0 -1
  536. package/dist/secondary-nav.js +0 -5
  537. package/dist/secondary-nav.js.map +0 -1
  538. package/dist/segmented-control.js +0 -7
  539. package/dist/segmented-control.js.map +0 -1
  540. package/dist/selection-card.js +0 -7
  541. package/dist/selection-card.js.map +0 -1
  542. package/dist/sidepanel.js +0 -7
  543. package/dist/sidepanel.js.map +0 -1
  544. package/dist/status.js +0 -6
  545. package/dist/status.js.map +0 -1
  546. package/dist/stepper.js +0 -8
  547. package/dist/stepper.js.map +0 -1
  548. package/dist/structured-list.js +0 -6
  549. package/dist/structured-list.js.map +0 -1
  550. package/dist/styles/bento-dark.css +0 -2055
  551. package/dist/styles/bento-light.css +0 -2054
  552. package/dist/styles/bento.css +0 -2054
  553. package/dist/styles/legacy.css +0 -2209
  554. package/dist/styles/styleguide.css +0 -2109
  555. package/dist/styles/utility.css +0 -987
  556. package/dist/summary-grid.js +0 -12
  557. package/dist/summary-grid.js.map +0 -1
  558. package/dist/tabs.js +0 -6
  559. package/dist/tabs.js.map +0 -1
  560. package/dist/tag.js +0 -6
  561. package/dist/tag.js.map +0 -1
  562. package/dist/textarea.js +0 -5
  563. package/dist/textarea.js.map +0 -1
  564. package/dist/timeline.js +0 -10
  565. package/dist/timeline.js.map +0 -1
  566. package/dist/toast.js +0 -5
  567. package/dist/toast.js.map +0 -1
  568. package/dist/toggle.js +0 -7
  569. package/dist/toggle.js.map +0 -1
  570. package/dist/tutorial.js +0 -5
  571. package/dist/tutorial.js.map +0 -1
  572. package/dist/typography.js +0 -8
  573. package/dist/typography.js.map +0 -1
  574. package/dist/use-form-v4.js +0 -8300
  575. package/dist/use-form-v4.js.map +0 -1
  576. package/dist/web-types.json +0 -15172
@@ -1,71 +0,0 @@
1
- import { ref as b, computed as n, defineComponent as _, toRefs as m } from "vue";
2
- import { B as p } from "./typography.J1v_SPG3.js";
3
- import "./index.Cl4_42j5.js";
4
- import { n as v } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
5
- import "../assets/avatar.css";
6
- const d = (t) => {
7
- const a = b(t);
8
- return n(() => a.value ? a.value.trim().charAt(0).toUpperCase() : null);
9
- };
10
- var o = /* @__PURE__ */ ((t) => (t.LARGE = "large", t.SMALL = "small", t))(o || {}), s = /* @__PURE__ */ ((t) => (t.BLUE = "blue", t.GREEN = "green", t.RED = "red", t.YELLOW = "yellow", t))(s || {});
11
- const L = {}, y = /* @__PURE__ */ _({
12
- ...L,
13
- __name: "avatar-image",
14
- props: {
15
- color: { default: s.YELLOW },
16
- src: { default: null },
17
- username: { default: null },
18
- variant: { default: o.LARGE }
19
- },
20
- setup(t) {
21
- const a = t, { username: r } = m(a), e = d(r), c = n(() => ({
22
- [`b-avatar-image--${o.SMALL}`]: a.variant === o.SMALL,
23
- [`b-avatar-image--${a.color}`]: a.color
24
- }));
25
- return { __sfc: !0, props: a, username: r, initials: e, conditionalClasses: c, BentoTypography: p };
26
- }
27
- });
28
- var g = function() {
29
- var a = this, r = a._self._c, e = a._self._setupProxy;
30
- return r("div", { staticClass: "b-avatar-image", class: e.conditionalClasses, attrs: { "aria-hidden": "true", "data-testid": "avatar" } }, [a.src ? r("img", { staticClass: "b-avatar-image__image", attrs: { src: a.src, alt: "", "data-testid": "avatar-content" } }) : r("div", { staticClass: "b-avatar-image__default", attrs: { "data-testid": "avatar-content" } }, [r(e.BentoTypography, { attrs: { el: "span", variant: "body", strongest: "" } }, [a._v(" " + a._s(e.initials) + " ")])], 1)]);
31
- }, C = [], E = /* @__PURE__ */ v(
32
- y,
33
- g,
34
- C,
35
- !1,
36
- null,
37
- "7cac2ac2"
38
- );
39
- const h = E.exports, A = {
40
- name: "bento-avatar"
41
- }, O = /* @__PURE__ */ _({
42
- ...A,
43
- props: {
44
- iconOnly: { type: Boolean, default: !1 },
45
- src: { default: null },
46
- username: null
47
- },
48
- setup(t) {
49
- const a = t, { username: r } = m(a), e = n(() => a.iconOnly ? a.username : null), c = n(() => a.src ? null : a.username), u = d(r), l = n(() => u.value ? u.value.charCodeAt(0) - 65 : null), f = n(() => {
50
- const i = 26 / Object.keys(s).length;
51
- return l.value <= i ? s.YELLOW : l.value <= i * 2 ? s.BLUE : l.value <= i * 3 ? s.GREEN : s.RED;
52
- });
53
- return { __sfc: !0, props: a, username: r, computedAriaLabel: e, computedUsername: c, initials: u, charCode: l, avatarColor: f, AvatarImage: h, BentoAvatarImageVariant: o, BentoTypography: p };
54
- }
55
- });
56
- var R = function() {
57
- var a = this, r = a._self._c, e = a._self._setupProxy;
58
- return r("div", { staticClass: "b-avatar", attrs: { "aria-label": e.computedAriaLabel } }, [r(e.AvatarImage, { attrs: { src: a.src, username: e.computedUsername, variant: e.BentoAvatarImageVariant.SMALL, color: e.avatarColor } }), a.iconOnly ? a._e() : r(e.BentoTypography, { staticClass: "b-avatar__label", attrs: { el: "span", variant: "body" } }, [a._v(" " + a._s(e.username) + " ")])], 1);
59
- }, $ = [], B = /* @__PURE__ */ v(
60
- O,
61
- R,
62
- $,
63
- !1,
64
- null,
65
- "2be0bf91"
66
- );
67
- const W = B.exports;
68
- export {
69
- W as B
70
- };
71
- //# sourceMappingURL=avatar.BgwjpLQO.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"avatar.BgwjpLQO.js","sources":["../../src/composables/initials.ts","../../src/components/avatar/components/avatar-image/avatar-image.types.ts","../../src/components/avatar/components/avatar-image/avatar-image.vue","../../src/components/avatar/avatar.vue"],"sourcesContent":["import { computed, ComputedRef, ref } from 'vue';\nimport { MaybeRef } from '@/types';\n\n/** Extracts the first letter of a username\n * @param username - The name to return the initials of\n * Common patterns:\n * 1. John => J\n * 2. John Smith => J\n * John Smith Doe Holly => J\n */\nexport const useInitials = (username: MaybeRef<string | null>): ComputedRef<string | null> => {\n const computedUsername = ref(username);\n return computed(() => (computedUsername.value ? computedUsername.value.trim().charAt(0).toUpperCase() : null));\n};\n","export enum BentoAvatarImageVariant {\n LARGE = 'large',\n SMALL = 'small',\n}\n\nexport enum BentoAvatarImageColor {\n BLUE = 'blue',\n GREEN = 'green',\n RED = 'red',\n YELLOW = 'yellow',\n}\n","<template>\n <div class=\"b-avatar-image\" :class=\"conditionalClasses\" aria-hidden=\"true\" data-testid=\"avatar\">\n <img v-if=\"src\" :src=\"src\" class=\"b-avatar-image__image\" alt=\"\" data-testid=\"avatar-content\" />\n <div v-else class=\"b-avatar-image__default\" data-testid=\"avatar-content\">\n <bento-typography el=\"span\" variant=\"body\" strongest>\n {{ initials }}\n </bento-typography>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, toRefs } from 'vue';\n import { BentoAvatarImageColor, BentoAvatarImageVariant } from './avatar-image.types';\n import { BentoTypography } from '@/components/typography';\n import { useInitials } from '@/composables';\n\n const props = defineProps({\n color: { default: BentoAvatarImageColor.YELLOW },\n src: { default: null },\n username: { default: null },\n variant: { default: BentoAvatarImageVariant.LARGE }\n});\n\n const { username } = toRefs(props);\n const initials = useInitials(username);\n\n const conditionalClasses = computed(() => ({\n [`b-avatar-image--${BentoAvatarImageVariant.SMALL}`]: props.variant === BentoAvatarImageVariant.SMALL,\n [`b-avatar-image--${props.color}`]: props.color,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * Image used as user profile inside bento-avatar.\n *\n * @example\n * import { AvatarImage } from './components/avatar-image';\n *\n * export default {\n * components: { AvatarImage },\n * template: `<avatar-image :src=\"userAvatarSrc\" username=\"Jane\" />`\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./avatar-image.scss\" />\n","<template>\n <div class=\"b-avatar\" :aria-label=\"computedAriaLabel\">\n <avatar-image\n :src=\"src\"\n :username=\"computedUsername\"\n :variant=\"BentoAvatarImageVariant.SMALL\"\n :color=\"avatarColor\"\n />\n <bento-typography v-if=\"!iconOnly\" class=\"b-avatar__label\" el=\"span\" variant=\"body\">\n {{ username }}\n </bento-typography>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, toRefs } from 'vue';\n import { AvatarImage, BentoAvatarImageColor, BentoAvatarImageVariant } from './components/avatar-image';\n import { BentoTypography } from '@/components/typography';\n import { useInitials } from '@/composables';\n\n const props = defineProps({\n iconOnly: { type: Boolean, default: false },\n src: { default: null },\n username: null\n});\n\n const { username } = toRefs(props);\n\n const computedAriaLabel = computed(() => (props.iconOnly ? props.username : null));\n const computedUsername = computed(() => (!props.src ? props.username : null));\n const initials = useInitials(username);\n\n // Returns the UTF-16 char code\n const charCode = computed(() => (initials.value ? initials.value.charCodeAt(0) - 65 : null));\n\n // Returns a computed color based on the letter passed\n const avatarColor = computed(() => {\n const numberOfAlphabetLetters = 26;\n const numberOfColors = Object.keys(BentoAvatarImageColor).length;\n const rangeStep = numberOfAlphabetLetters / numberOfColors;\n\n if (charCode.value <= rangeStep) {\n return BentoAvatarImageColor.YELLOW;\n }\n if (charCode.value <= rangeStep * 2) {\n return BentoAvatarImageColor.BLUE;\n }\n if (charCode.value <= rangeStep * 3) {\n return BentoAvatarImageColor.GREEN;\n }\n return BentoAvatarImageColor.RED;\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * Displays an user profile including an avatar and optionally a label.\n *\n * @example\n * import { BentoAvatar } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoAvatar },\n * template: `<bento-avatar :src=\"userAvatarSrc\" username=\"Jane\" />`\n * }\n */\n export default {\n name: 'bento-avatar',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./avatar.scss\" />\n"],"names":["useInitials","username","computedUsername","ref","computed","BentoAvatarImageVariant","BentoAvatarImageVariant2","BentoAvatarImageColor","BentoAvatarImageColor2","__default__$1","toRefs","props","initials","conditionalClasses","__default__","computedAriaLabel","charCode","avatarColor","rangeStep"],"mappings":";;;;;AAUa,MAAAA,IAAA,CAAAC,MAAA;AACT,QAAAC,IAAAC,EAAAF,CAAA;AACA,SAAAG,EAAA,MAAAF,EAAA,QAAAA,EAAA,MAAA,KAAA,EAAA,OAAA,CAAA,EAAA,YAAA,IAAA,IAAA;AACJ;ACbY,IAAAG,IAAA,kBAAAC,OACRA,EAAA,QAAA,SACAA,EAAA,QAAA,SAFQA,IAAAD,KAAA,CAAA,CAAA,GAKAE,IAAA,kBAAAC,OACRA,EAAA,OAAA,QACAA,EAAA,QAAA,SACAA,EAAA,MAAA,OACAA,EAAA,SAAA,UAJQA,IAAAD,KAAA,CAAA,CAAA;ACwCR,MAAAE,IAAA,CAAA;;;;;;;;;;iBArBA,EAAA,UAAAR,EAAA,IAAAS,EAAAC,CAAA,GACAC,IAAAZ,EAAAC,CAAA,GAEAY,IAAAT,EAAA,OAAA;AAAA,MAA2C,CAAA,mBAAAC,EAAA,KAAA,EAAA,GAAAM,EAAA,YAAAN,EAAA;AAAA,MACyD,CAAA,mBAAAM,EAAA,KAAA,EAAA,GAAAA,EAAA;AAAA,IACtD,EAAA;;;;;;;;;;;;;;;qBCqC9CG,IAAA;AAAA,EAAe,MAAA;AAEf;;;;;;;;iBA1CA,EAAA,UAAAb,EAAA,IAAAS,EAAAC,CAAA,GAEAI,IAAAX,EAAA,MAAAO,EAAA,WAAAA,EAAA,WAAA,IAAA,GACAT,IAAAE,EAAA,MAAAO,EAAA,MAAA,OAAAA,EAAA,QAAA,GACAC,IAAAZ,EAAAC,CAAA,GAGAe,IAAAZ,EAAA,MAAAQ,EAAA,QAAAA,EAAA,MAAA,WAAA,CAAA,IAAA,KAAA,IAAA,GAGAK,IAAAb,EAAA,MAAA;AAGI,YAAAc,IAAA,KADA,OAAA,KAAAX,CAAA,EAAA;AAGA,aAAAS,EAAA,SAAAE,IACIX,EAAA,SAEJS,EAAA,SAAAE,IAAA,IACIX,EAAA,OAEJS,EAAA,SAAAE,IAAA,IACIX,EAAA,QAEJA,EAAA;AAAA,IAA6B,CAAA;;;;;;;;;;;;;;;;"}
@@ -1,86 +0,0 @@
1
- import { defineComponent as b, computed as r, ref as d } from "vue";
2
- import { B as f } from "./typography.J1v_SPG3.js";
3
- import { u as p } from "./use-has-slot.C9lQZ6nz.js";
4
- import { n as _ } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
5
- import "../assets/base-button.css";
6
- var s = /* @__PURE__ */ ((o) => (o.DESTRUCTIVE = "critical", o.ICON_ONLY = "icon-only", o))(s || {}), e = /* @__PURE__ */ ((o) => (o.BLUR = "blur", o.CLICK = "click", o.FOCUS = "focus", o.KEYDOWN_ESC = "keydown.esc", o))(e || {});
7
- const C = b({
8
- name: "base-button",
9
- components: { BentoTypography: f },
10
- props: {
11
- /**
12
- * Disables button functionality
13
- */
14
- disabled: {
15
- type: Boolean,
16
- default: !1
17
- },
18
- /**
19
- * Displays button as critical
20
- */
21
- critical: {
22
- type: Boolean,
23
- default: !1
24
- },
25
- /**
26
- * The default behavior of the button.
27
- * Possible values are: 'button', 'reset', 'submit'
28
- */
29
- type: {
30
- type: String,
31
- default: "button"
32
- }
33
- },
34
- emits: [
35
- e.CLICK,
36
- e.FOCUS,
37
- e.BLUR,
38
- e.KEYDOWN_ESC
39
- ],
40
- setup(o, { slots: t, emit: n, attrs: i }) {
41
- const l = r(() => {
42
- var a;
43
- return {
44
- "aria-expanded": (a = i["aria-expanded"]) == null ? void 0 : a.toString()
45
- };
46
- }), c = d(null), u = r(() => ({
47
- [`b-base-button--${s.DESTRUCTIVE}`]: o.critical,
48
- [`b-base-button--${s.ICON_ONLY}`]: !t.default
49
- }));
50
- return {
51
- // Values
52
- ariaAttributes: l,
53
- conditionalClasses: u,
54
- // Methods
55
- onClickButton: (a) => {
56
- o.disabled ? (a.preventDefault(), a.stopPropagation()) : n(e.CLICK, a);
57
- },
58
- onFocusButton: (a) => {
59
- n(e.FOCUS, a);
60
- },
61
- onBlurButton: (a) => {
62
- n(e.BLUR, a);
63
- },
64
- hasSlot: p(t),
65
- // Refs
66
- bentoBaseButtonRef: c
67
- };
68
- }
69
- });
70
- var m = function() {
71
- var t = this, n = t._self._c;
72
- return t._self._setupProxy, n("button", { ref: "bentoBaseButtonRef", staticClass: "b-base-button", class: t.conditionalClasses, attrs: { disabled: t.disabled, type: t.type, "aria-expanded": t.ariaAttributes["aria-expanded"] }, on: { click: t.onClickButton, focus: t.onFocusButton, blur: t.onBlurButton } }, [t.hasSlot("iconLeft") ? n("span", { staticClass: "b-base-button__icon-left", attrs: { "data-testid": "icon-button-left" } }, [t._t("iconLeft")], 2) : t._e(), t.hasSlot("default") ? n("bento-typography", { staticClass: "b-base-button__label", attrs: { el: "span", variant: "body", stronger: "" } }, [t._t("default")], 2) : t._e(), t.hasSlot("iconRight") ? n("span", { staticClass: "b-base-button__icon-right", attrs: { "data-testid": "icon-button-right" } }, [t._t("iconRight")], 2) : t._e()], 1);
73
- }, y = [], B = /* @__PURE__ */ _(
74
- C,
75
- m,
76
- y,
77
- !1,
78
- null,
79
- "9d38f201"
80
- );
81
- const x = B.exports;
82
- export {
83
- x as B,
84
- e as a
85
- };
86
- //# sourceMappingURL=base-button.-gx_u8Bd.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base-button.-gx_u8Bd.js","sources":["../../src/components/internal/base-button/base-button.types.ts","../../src/components/internal/base-button/base-button.vue"],"sourcesContent":["export enum BentoBaseButtonPropClass {\n DESTRUCTIVE = 'critical',\n ICON_ONLY = 'icon-only',\n}\n\nexport enum BentoBaseButtonEvent {\n BLUR = 'blur',\n CLICK = 'click',\n FOCUS = 'focus',\n KEYDOWN_ESC = 'keydown.esc',\n}\n\nexport enum BaseButtonType {\n BUTTON = 'button',\n RESET = 'reset',\n SUBMIT = 'submit',\n}\n","<template>\n <button\n ref=\"bentoBaseButtonRef\"\n class=\"b-base-button\"\n :class=\"conditionalClasses\"\n :disabled=\"disabled\"\n :type=\"type\"\n :aria-expanded=\"ariaAttributes['aria-expanded']\"\n @click=\"onClickButton\"\n @focus=\"onFocusButton\"\n @blur=\"onBlurButton\"\n >\n <span v-if=\"hasSlot('iconLeft')\" class=\"b-base-button__icon-left\" data-testid=\"icon-button-left\">\n <slot name=\"iconLeft\" />\n </span>\n <bento-typography v-if=\"hasSlot('default')\" el=\"span\" variant=\"body\" stronger class=\"b-base-button__label\">\n <slot />\n </bento-typography>\n <span v-if=\"hasSlot('iconRight')\" class=\"b-base-button__icon-right\" data-testid=\"icon-button-right\">\n <slot name=\"iconRight\" />\n </span>\n </button>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType, ref } from 'vue';\n import { BentoBaseButtonEvent, BentoBaseButtonPropClass } from './base-button.types';\n import type { ButtonHTMLAttributes } from 'vue/types/jsx.d.ts';\n import { BentoTypography } from '@/components/typography';\n import { useHasSlot } from '@/composables';\n import { Booleanish } from '@/types';\n\n /**\n * Base button component to use as a base for all the various types of bento buttons. For internal use only.\n *\n * * @example\n * import { BaseButton, BaseButtonEvent } from '@/components/internal/base-button';\n * import YourImportedIcon from @adyen/ui-assets-icons-16/example-icon';\n *\n * export default {\n * components: { BaseButton, YourImportedIcon },\n * props: {\n * text:\n * },\n * template: `\n * <base-button class=\"your-custom-button-styles\" @click=\"onClick\">\n * <template #iconLeft><your-imported-icon></template>\n * Button text\n * <template #iconRight><your-imported-icon></template>\n * </base-button>\n * `,\n * emits: [BentoButtonEvent.CLICK],\n * setup: (prps, { emit }) => {\n * const onClick = value => emit(BaseButtonEvent.CLICK, value);\n *\n * return {\n * onClick,\n * };\n * }\n * }\n */\n export default defineComponent({\n name: 'base-button',\n components: { BentoTypography },\n props: {\n /**\n * Disables button functionality\n */\n disabled: {\n type: Boolean,\n default: false,\n },\n /**\n * Displays button as critical\n */\n critical: {\n type: Boolean,\n default: false,\n },\n /**\n * The default behavior of the button.\n * Possible values are: 'button', 'reset', 'submit'\n */\n type: {\n type: String as PropType<ButtonHTMLAttributes['type']>,\n default: 'button',\n },\n },\n emits: [\n BentoBaseButtonEvent.CLICK,\n BentoBaseButtonEvent.FOCUS,\n BentoBaseButtonEvent.BLUR,\n BentoBaseButtonEvent.KEYDOWN_ESC,\n ],\n setup(props, { slots, emit, attrs }) {\n const ariaAttributes = computed(() => ({\n 'aria-expanded': attrs['aria-expanded']?.toString() as Booleanish,\n }));\n\n const bentoBaseButtonRef = ref(null);\n\n const conditionalClasses = computed(() => ({\n [`b-base-button--${BentoBaseButtonPropClass.DESTRUCTIVE}`]: props.critical,\n [`b-base-button--${BentoBaseButtonPropClass.ICON_ONLY}`]: !slots.default,\n }));\n\n const onClickButton = (e: MouseEvent) => {\n if (!props.disabled) {\n emit(BentoBaseButtonEvent.CLICK, e);\n } else {\n e.preventDefault();\n e.stopPropagation();\n }\n };\n\n const onFocusButton = (e: FocusEvent) => {\n emit(BentoBaseButtonEvent.FOCUS, e);\n };\n\n const onBlurButton = (e: FocusEvent) => {\n emit(BentoBaseButtonEvent.BLUR, e);\n };\n\n return {\n // Values\n ariaAttributes,\n conditionalClasses,\n\n // Methods\n onClickButton,\n onFocusButton,\n onBlurButton,\n hasSlot: useHasSlot(slots),\n\n // Refs\n bentoBaseButtonRef,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./base-button.scss\" />\n"],"names":["BentoBaseButtonPropClass","BentoBaseButtonPropClass2","BentoBaseButtonEvent","BentoBaseButtonEvent2","_sfc_main","defineComponent","BentoTypography","props","slots","emit","attrs","ariaAttributes","computed","_a","bentoBaseButtonRef","ref","conditionalClasses","e","useHasSlot"],"mappings":";;;;;AAAY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,cAAA,YACAA,EAAA,YAAA,aAFQA,IAAAD,KAAA,CAAA,CAAA,GAKAE,IAAA,kBAAAC,OACRA,EAAA,OAAA,QACAA,EAAA,QAAA,SACAA,EAAA,QAAA,SACAA,EAAA,cAAA,eAJQA,IAAAD,KAAA,CAAA,CAAA;ACwDZ,MAAAE,IAAAC,EAAA;AAAA,EAAA,MAAA;AAAA,EACA,YAAA,EAAA,iBAAAC,EAAA;AAAA,EACA,OAAA;AAAA;AAAA;AAAA;AAAA,IACA,UAAA;AAAA,MAIA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IACA,UAAA;AAAA,MAIA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA,IACA,MAAA;AAAA,MAKA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,EACA;AAAA,EACA,OAAA;AAAA,IACAJ,EAAA;AAAA,IACAA,EAAA;AAAA,IACAA,EAAA;AAAA,IACAA,EAAA;AAAA,EACA;AAAA,EACA,MAAAK,GAAA,EAAA,OAAAC,GAAA,MAAAC,GAAA,OAAAC,EAAA,GAAA;AAEA,UAAAC,IAAAC,EAAA,MAAA;;AAAA;AAAA,QAAA,kBAAAC,IAAAH,EAAA,eAAA,MAAA,gBAAAG,EAAA;AAAA,MACA;AAAA,KAAA,GAGAC,IAAAC,EAAA,IAAA,GAEAC,IAAAJ,EAAA,OAAA;AAAA,MAAA,CAAA,kBAAAZ,EAAA,WAAA,EAAA,GAAAO,EAAA;AAAA,MACA,CAAA,kBAAAP,EAAA,SAAA,EAAA,GAAA,CAAAQ,EAAA;AAAA,IACA,EAAA;AAoBA,WAAA;AAAA;AAAA,MAAA,gBAAAG;AAAA,MAEA,oBAAAK;AAAA;AAAA,MACA,eApBA,CAAAC,MAAA;AACA,QAAAV,EAAA,YAGAU,EAAA,eAAA,GACAA,EAAA,gBAAA,KAHAR,EAAAP,EAAA,OAAAe,CAAA;AAAA,MAIA;AAAA,MAiBA,eAdA,CAAAA,MAAA;AACA,QAAAR,EAAAP,EAAA,OAAAe,CAAA;AAAA,MAAA;AAAA,MAcA,cAXA,CAAAA,MAAA;AACA,QAAAR,EAAAP,EAAA,MAAAe,CAAA;AAAA,MAAA;AAAA,MAWA,SAAAC,EAAAV,CAAA;AAAA;AAAA,MACA,oBAAAM;AAAA,IAGA;AAAA,EACA;AAEA,CAAA;;;;;;;;;;;;;"}
@@ -1,373 +0,0 @@
1
- import { defineComponent as T, useSlots as Y, ref as u, computed as l, inject as Q, watch as w, nextTick as X, onUnmounted as Z, useAttrs as V, toRefs as tt, onMounted as et, provide as D } from "vue";
2
- import { B as at } from "./button.BuD-IsW5.js";
3
- import { B as ot } from "./focus-trap.DKT1Fe6X.js";
4
- import { u as q } from "./use-has-slot.C9lQZ6nz.js";
5
- import { u as nt } from "./i18n.BQkEbtPM.js";
6
- import { M as st } from "./base-modal.keys.C2PQXcE2.js";
7
- import { g as lt } from "./generate-uid.NJ8tVoha.js";
8
- import { B as it } from "./typography.J1v_SPG3.js";
9
- import { F as rt } from "./footer-actions.Cn-793_Z.js";
10
- import { D as ut, B as ct, b as dt, a as mt } from "./dialog-page.uGh0kYDL.js";
11
- import { o as pt } from "./resize.Bqks3WUm.js";
12
- import { a as gt, G as ft } from "./grid-layout.HvTAa4to.js";
13
- import { n as W } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
14
- import { C as _t } from "./cross.CJ5EEL2c.js";
15
- import { B as vt } from "./directive.Cbdox5VL.js";
16
- import "../assets/base-modal.css";
17
- var yt = /* @__PURE__ */ ((a) => (a.DEFAULT = "default", a.DIALOG = "dialog", a))(yt || {}), Ct = /* @__PURE__ */ ((a) => (a.DEFAULT = "BentoModalDefault", a.DIALOG = "BentoModalDialog", a))(Ct || {}), G = /* @__PURE__ */ ((a) => (a.SMALL = "small", a.MEDIUM = "medium", a.LARGE = "large", a))(G || {}), E = /* @__PURE__ */ ((a) => (a.SMALLER = "smaller", a.EQUAL = "equal", a.BIGGER = "bigger", a))(E || {}), F = /* @__PURE__ */ ((a) => (a.DIALOG = "dialog", a.ALERT_DIALOG = "alertdialog", a))(F || {}), ht = /* @__PURE__ */ ((a) => (a.CONFIRMATION = "confirmation", a.DESTRUCTIVE = "destructive", a.INFO = "info", a.ACKNOWLEDGEMENT = "acknowledgement", a))(ht || {}), At = /* @__PURE__ */ ((a) => (a.CLOSE_MODAL = "close-modal", a))(At || {});
18
- const Lt = {
19
- "en-US": {
20
- ariaLabelFallback: "modal",
21
- close: "Close"
22
- },
23
- "ja-JP": {
24
- close: "閉じる"
25
- },
26
- "pt-BR": {
27
- close: "Fechar"
28
- }
29
- }, j = Symbol("modal config data injection key"), bt = T({}), St = /* @__PURE__ */ T({
30
- ...bt,
31
- __name: "modal-page",
32
- props: {
33
- /**
34
- * List of actions that will be used to render the buttons.
35
- * First element in the list will be rendered as "primary".
36
- * All elements after the first will be rendered as "secondary".
37
- * But you may change the color of 1-st action to red with 'critial' key
38
- * Not more than 3 action buttons can be provided
39
- * Or 2 action buttons and 1 Label for them
40
- *
41
- * Each object in the list should have a `title`, an `event` and
42
- * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.
43
- *
44
- * `title`: Button's text.
45
- *
46
- * `event`: Event triggered when clicking the Button.
47
- *
48
- * `icon`: Vue Icon from the library `@adyen/ui-assets-icons-16`.
49
- *
50
- * ```
51
- * [{
52
- * title: 'Primary',2
53
- * event: () => { ... },
54
- * icon: FourPeopleIcon
55
- * }, {
56
- * title: 'Secondary',
57
- * event: () => { ... }
58
- * }]
59
- * ```
60
- */
61
- actions: {
62
- type: Array,
63
- default: null
64
- },
65
- /**
66
- * Text label that is displayed left to the action buttons
67
- */
68
- actionsLabel: { type: String, default: null },
69
- /**
70
- * 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.
71
- */
72
- columnsSize: {
73
- type: String,
74
- default: E.SMALLER
75
- },
76
- /**
77
- * If provided, manages the padding of the whole modal container
78
- */
79
- customPadding: { type: String, default: null },
80
- /**
81
- * If passed - sets first button color to red
82
- */
83
- destructiveActions: { type: Boolean, default: !1 },
84
- /**
85
- * If provided, renders the modal's content in a two-column layout an wth dividers separating its content
86
- */
87
- withColumnLayout: { type: Boolean, default: !1 },
88
- /**
89
- * Identifier of the page, used with activePage prop to handle modal navigation
90
- */
91
- pageId: {
92
- type: String,
93
- default: void 0
94
- },
95
- /**
96
- * ID of the page for the back button to navigate to. Only use it to overwrite the default back behavior
97
- * Used when the back button should not take the user to the natural previous page
98
- * Set to `null` to hide back button in the page
99
- */
100
- previousPage: {
101
- type: String,
102
- default: void 0
103
- }
104
- },
105
- setup(a) {
106
- const e = a, o = 26, t = Y(), n = q(t), c = u(null), O = l(() => ({
107
- "b-modal-page--custom-padding": e.customPadding
108
- })), I = l(() => {
109
- var r;
110
- return {
111
- "b-modal-page__content--with-header": n("default"),
112
- "b-modal-page__content--with-actions": n("actions") || ((r = e.actions) == null ? void 0 : r.length)
113
- };
114
- }), R = l(() => {
115
- if (!e.customPadding)
116
- return {};
117
- const r = {
118
- paddingLeft: e.customPadding,
119
- paddingRight: e.customPadding
120
- }, i = { ...r, paddingTop: void 0, paddingBottom: void 0 };
121
- return n("default") || (i.paddingTop = e.customPadding), n("actions") || (i.paddingBottom = e.customPadding), {
122
- header: {
123
- ...r,
124
- paddingTop: e.customPadding,
125
- paddingRight: `${parseInt(e.customPadding, 10) + o}px`,
126
- flex: 1
127
- },
128
- content: i,
129
- actions: { ...r, paddingBottom: e.customPadding },
130
- backButton: { top: e.customPadding, paddingLeft: e.customPadding }
131
- };
132
- }), d = l(() => e.withColumnLayout && L.value === G.LARGE), g = l(() => e.columnsSize === E.SMALLER ? [
133
- { small: 4, medium: 4, large: 4 },
134
- { small: 8, medium: 8, large: 8 }
135
- ] : e.columnsSize === E.BIGGER ? [
136
- { small: 8, medium: 8, large: 8 },
137
- { small: 4, medium: 4, large: 4 }
138
- ] : [
139
- { small: 6, medium: 6, large: 6 },
140
- { small: 6, medium: 6, large: 6 }
141
- ]), { activePage: f, height: _, isAnimationActive: m, pageCustomPadding: B, showCloseButton: x, size: L } = Q(j), h = l(() => f.value === e.pageId || !f.value);
142
- let p = null;
143
- return w(
144
- () => f.value,
145
- async (r, i) => {
146
- var A, k;
147
- h.value && (await X(), _.value = `${(k = (A = c.value) == null ? void 0 : A.$el) == null ? void 0 : k.clientHeight}px`, B.value = e.customPadding, m.value = i !== void 0, p = pt(c.value, () => {
148
- var v, S;
149
- const b = `${(S = (v = c.value) == null ? void 0 : v.$el) == null ? void 0 : S.clientHeight}px`;
150
- b && b !== _.value && (_.value = b);
151
- }));
152
- },
153
- { immediate: !0 }
154
- ), Z(() => {
155
- p == null || p.disconnect();
156
- }), { __sfc: !0, CLOSE_BUTTON_ICON_WIDTH: o, slots: t, hasSlot: n, page: c, props: e, modalPageConditionalClasses: O, modalContentConditionalClasses: I, customPaddingStyles: R, hasColumnLayout: d, computedColumnWidth: g, activePage: f, height: _, isAnimationActive: m, pageCustomPadding: B, showCloseButton: x, size: L, isCurrentPage: h, pageElementObserver: p, BentoTypography: it, GridLayout: ft, GridLayoutContainerType: gt, FooterActions: rt, DialogPage: ut };
157
- }
158
- });
159
- var Pt = function() {
160
- var n;
161
- var e = this, o = e._self._c, t = e._self._setupProxy;
162
- return o(t.DialogPage, { ref: "page", staticClass: "b-modal-page", class: t.modalPageConditionalClasses, attrs: { "page-id": e.pageId, "always-show-border": t.hasColumnLayout, "back-button-styling": (n = t.customPaddingStyles) == null ? void 0 : n.backButton, "previous-page": e.previousPage }, on: { animationend: function(c) {
163
- t.isAnimationActive = !1;
164
- } }, scopedSlots: e._u([t.hasSlot("default") || t.showCloseButton ? { key: "header", fn: function() {
165
- return [o("div", { staticClass: "b-modal-page__header-container", style: t.customPaddingStyles.header }, [o("div", { staticClass: "b-modal-page__header" }, [o(t.BentoTypography, { staticClass: "b-modal-page__title", attrs: { el: "span", variant: "title", stronger: "" } }, [t.hasSlot("default") ? e._t("default") : e._e()], 2)], 1)])];
166
- }, proxy: !0 } : null, { key: "content", fn: function() {
167
- return [o("div", { staticClass: "b-modal-page__content", class: t.modalContentConditionalClasses, style: t.customPaddingStyles.content }, [t.hasSlot("content") || t.hasSlot("content-col-1") && t.hasSlot("content-col-2") ? o(t.BentoTypography, { attrs: { el: "div" } }, [t.hasColumnLayout ? o(t.GridLayout, { staticClass: "b-modal-page__grid", attrs: { "column-width": t.computedColumnWidth, "container-type": t.GridLayoutContainerType.NORMAL, "no-gap": "" }, scopedSlots: e._u([{ key: "col-1", fn: function() {
168
- return [e._t("content-col-1")];
169
- }, proxy: !0 }, { key: "col-2", fn: function() {
170
- return [e._t("content-col-2")];
171
- }, proxy: !0 }], null, !0) }) : e._t("content")], 2) : e._e()], 1)];
172
- }, proxy: !0 }, t.hasSlot("actions") ? { key: "footer", fn: function() {
173
- return [o("div", { staticClass: "b-modal-page__actions-container", style: t.customPaddingStyles.actions }, [o("div", { staticClass: "b-modal-page__actions", attrs: { "aria-label": "modal actions" } }, [e._t("actions")], 2)])];
174
- }, proxy: !0 } : e.actions && e.actions.length > 0 ? { key: "footer", fn: function() {
175
- return [o("div", { staticClass: "b-modal-page__actions-container", style: t.customPaddingStyles.actions }, [o(t.FooterActions, { attrs: { actions: e.actions, "actions-label": e.actionsLabel, "destructive-actions": e.destructiveActions } })], 1)];
176
- }, proxy: !0 } : null], null, !0) });
177
- }, Et = [], Ot = /* @__PURE__ */ W(
178
- St,
179
- Pt,
180
- Et,
181
- !1,
182
- null,
183
- "e1c8b8a9"
184
- );
185
- const It = Ot.exports, Bt = T({
186
- i18n: { messages: Lt },
187
- name: "base-modal"
188
- }), kt = /* @__PURE__ */ T({
189
- ...Bt,
190
- props: {
191
- /**
192
- * List of actions that will be used to render the buttons.
193
- * First element in the list will be rendered as "primary".
194
- * All elements after the first will be rendered as "secondary".
195
- * But you may change the color of 1-st action to red with 'critial' key
196
- * Not more than 3 action buttons can be provided
197
- * Or 2 action buttons and 1 Label for them
198
- *
199
- * Each object in the list should have a `title`, an `event` and
200
- * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.
201
- *
202
- * `title`: Button's text.
203
- *
204
- * `event`: Event triggered when clicking the Button.
205
- *
206
- * `icon`: Vue Icon from the library `@adyen/ui-assets-icons-16`.
207
- *
208
- * ```
209
- * [{
210
- * title: 'Primary',2
211
- * event: () => { ... },
212
- * icon: FourPeopleIcon
213
- * }, {
214
- * title: 'Secondary',
215
- * event: () => { ... }
216
- * }]
217
- * ```
218
- */
219
- actions: {
220
- type: Array,
221
- default: null
222
- },
223
- /**
224
- * The id of the current active page
225
- * Should be the same id as the BentoModalPage to be displayed
226
- */
227
- activePage: {
228
- type: String,
229
- default: null
230
- },
231
- /**
232
- * 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.
233
- */
234
- columnsSize: {
235
- type: String,
236
- default: E.SMALLER
237
- },
238
- /**
239
- * If provided, manages the padding of the whole modal container
240
- */
241
- customPadding: { type: String, default: null },
242
- /**
243
- * If passed - sets first button color to red
244
- */
245
- destructiveActions: { type: Boolean, default: !1 },
246
- /**
247
- * Hides a cross icon on the right side of the title
248
- */
249
- hideCloseButton: { type: Boolean, required: !0 },
250
- /**
251
- * Sets the open attribute on the dialog element, use isOpen instead to toggle modal visbility.
252
- */
253
- initiallyOpen: { type: Boolean, default: !1 },
254
- /**
255
- * If set to true, it allows the modal to be closed by clicking outside of it
256
- */
257
- isDismissible: { type: Boolean, required: !0 },
258
- /**
259
- * Controls the modal's state from the outside. Set it to true to open the modal
260
- */
261
- isOpen: { type: Boolean, required: !0 },
262
- /**
263
- * Defines whether the modal will be an alert modal
264
- */
265
- modalRole: { type: String, default: F.DIALOG },
266
- /**
267
- * Sets the width of the modal
268
- */
269
- size: {
270
- type: String,
271
- default: G.SMALL
272
- },
273
- /**
274
- * If provided, renders the modal's content in a two-column layout an wth dividers separating its content
275
- */
276
- withColumnLayout: { type: Boolean, default: !1 }
277
- },
278
- emits: ["update:active-page", "close-modal"],
279
- setup(a, { expose: e, emit: o }) {
280
- const t = a, n = 500, { t: c } = nt(), O = Y(), I = V(), R = q(O), d = u(null), g = u(!1), f = lt("modal"), _ = l(() => t.isDismissible && !t.hideCloseButton), m = u(t.customPadding), B = l(() => m.value ? { top: m.value, right: m.value } : {}), x = l(() => I["aria-label"] ?? c("ariaLabelFallback")), L = l(() => t.withColumnLayout && t.size === G.LARGE), h = () => {
281
- d.value.showModal();
282
- }, p = () => {
283
- o("close-modal");
284
- }, r = () => {
285
- g.value && (d.value.close(), y.value[0] && o("update:active-page", y.value[0]), y.value = [], g.value = !1, p());
286
- }, i = () => {
287
- d.value.open && (g.value = !0);
288
- }, A = (s) => {
289
- s && s.preventDefault(), !(!t.isDismissible && t.modalRole === F.DIALOG) && i();
290
- }, k = () => {
291
- t.isDismissible && A();
292
- }, b = l(() => ({
293
- [`b-modal-base__container--${t.size}`]: t.size,
294
- "b-modal-base__container--hide": g.value,
295
- "b-modal-base__container--column-layout": L.value,
296
- "b-modal-base__container--animation": M.value
297
- }));
298
- w(
299
- () => [t.isOpen, d.value],
300
- ([s, C], [, N]) => {
301
- if (!C)
302
- return;
303
- s ? (h(), y.value.length || y.value.push(v.value)) : !N || i();
304
- }
305
- ), w(
306
- () => t.actions,
307
- () => {
308
- var s, C;
309
- ((C = (s = t.actions) == null ? void 0 : s[0]) == null ? void 0 : C.state) === "success" && setTimeout(i, n);
310
- },
311
- { deep: !0 }
312
- ), et(() => {
313
- t.isOpen && d.value && h();
314
- }), e({
315
- internalModalActionClose: A
316
- }), D(st, f);
317
- const { activePage: v, isOpen: S, size: z } = tt(t), U = u(ct.TRANSITION_LEVEL_DEEPER), P = u([]), y = u([]), $ = (s) => o("update:active-page", s), H = (s) => () => {
318
- var C;
319
- P.value = (C = P.value) == null ? void 0 : C.filter((N) => N !== s);
320
- }, J = (s) => (s && P.value.push(s), { unregisterPage: H(s) }), K = u(""), M = u(!1);
321
- return D(j, {
322
- activePage: v,
323
- height: K,
324
- isAnimationActive: M,
325
- pageCustomPadding: m,
326
- showCloseButton: _,
327
- size: z
328
- }), D(dt, {
329
- activePage: v,
330
- animation: U,
331
- isOpen: S,
332
- pages: P,
333
- previousPages: y,
334
- updatePage: $
335
- }), D(mt, J), { __sfc: !0, LOADING_BTN_CLOSE_AFTER_SUCCESS_DELAY_TIME: n, t: c, slots: O, attrs: I, hasSlot: R, modal: d, isClosing: g, modalId: f, emit: o, props: t, showCloseButton: _, pageCustomPadding: m, customPaddingStyles: B, computedAriaLabel: x, hasColumnLayout: L, openModal: h, emitCloseEvent: p, closeModalAfterAnimation: r, startCloseModalAnimation: i, internalModalActionClose: A, closeModalOnClickOutside: k, modalConditionalClasses: b, activePage: v, isOpen: S, size: z, animation: U, pages: P, previousPages: y, updatePage: $, unregisterPage: H, registerPage: J, height: K, isAnimationActive: M, BentoButton: at, BentoFocusTrap: ot, vBentoClickOutsideDirective: vt, BentoModalPage: It, CrossIcon: _t };
336
- }
337
- });
338
- var Dt = function() {
339
- var e = this, o = e._self._c, t = e._self._setupProxy;
340
- return o("div", { staticClass: "b-modal-base" }, [o("dialog", { ref: "modal", staticClass: "b-modal-base__container", class: t.modalConditionalClasses, style: { height: t.height }, attrs: { role: e.modalRole, "aria-label": t.computedAriaLabel, open: e.initiallyOpen }, on: { animationend: t.closeModalAfterAnimation, keydown: function(n) {
341
- return !n.type.indexOf("key") && e._k(n.keyCode, "esc", 27, n.key, ["Esc", "Escape"]) ? null : t.internalModalActionClose.apply(null, arguments);
342
- } } }, [t.isOpen || e.initiallyOpen ? o(t.BentoFocusTrap, { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: t.closeModalOnClickOutside, expression: "closeModalOnClickOutside" }], attrs: { id: t.modalId } }, [t.showCloseButton ? o(t.BentoButton, { staticClass: "b-modal-base__close-button", style: t.customPaddingStyles, attrs: { variant: "tertiary", type: "button" }, on: { click: t.internalModalActionClose } }, [o(t.CrossIcon, { attrs: { "svg-title": t.t("close") } })], 1) : e._e(), t.props.activePage ? [e._t("default")] : o(t.BentoModalPage, { attrs: { "with-column-layout": e.withColumnLayout, size: t.size, "custom-padding": e.customPadding, "columns-size": e.columnsSize }, scopedSlots: e._u([t.hasSlot("default") ? { key: "default", fn: function() {
343
- return [e._t("default")];
344
- }, proxy: !0 } : null, t.hasSlot("content-col-1") ? { key: "content-col-1", fn: function() {
345
- return [e._t("content-col-1")];
346
- }, proxy: !0 } : null, t.hasSlot("content-col-2") ? { key: "content-col-2", fn: function() {
347
- return [e._t("content-col-2")];
348
- }, proxy: !0 } : null, t.hasSlot("content") ? { key: "content", fn: function() {
349
- return [e._t("content")];
350
- }, proxy: !0 } : null, t.hasSlot("actions") ? { key: "actions", fn: function() {
351
- return [e._t("actions")];
352
- }, proxy: !0 } : null], null, !0) })], 2) : e._e()], 1)]);
353
- }, Gt = [], Tt = /* @__PURE__ */ W(
354
- kt,
355
- Dt,
356
- Gt,
357
- !1,
358
- null,
359
- "c6431721"
360
- );
361
- const Qt = Tt.exports;
362
- export {
363
- It as B,
364
- yt as a,
365
- Ct as b,
366
- G as c,
367
- E as d,
368
- F as e,
369
- ht as f,
370
- At as g,
371
- Qt as h
372
- };
373
- //# sourceMappingURL=base-modal.DxywEyGO.js.map