@adyen/bento-vue3 1.65.0 → 1.67.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 (233) hide show
  1. package/dist/@types/index.d.ts +499 -250
  2. package/dist/action-bar.js +1 -1
  3. package/dist/assets/accordion-item.css +1 -1
  4. package/dist/assets/action-bar.css +1 -1
  5. package/dist/assets/base-modal.css +1 -1
  6. package/dist/assets/button-actions-with-menu.css +1 -1
  7. package/dist/assets/button-actions.css +1 -1
  8. package/dist/assets/card.css +1 -1
  9. package/dist/assets/copy.css +1 -1
  10. package/dist/assets/data-grid-template.css +1 -1
  11. package/dist/assets/data-grid.css +1 -1
  12. package/dist/assets/date-range-picker.css +1 -1
  13. package/dist/assets/date.css +1 -1
  14. package/dist/assets/dialog-page.css +1 -1
  15. package/dist/assets/dropdown-default-textbox.css +1 -1
  16. package/dist/assets/dropdown.css +1 -1
  17. package/dist/assets/file-uploader.css +1 -1
  18. package/dist/assets/filter-bar.css +1 -1
  19. package/dist/assets/footer-actions.css +1 -1
  20. package/dist/assets/header-with-views.css +1 -1
  21. package/dist/assets/header.css +1 -1
  22. package/dist/assets/info-icon.css +1 -1
  23. package/dist/assets/input-field-password.css +1 -1
  24. package/dist/assets/input-field.css +1 -1
  25. package/dist/assets/inspector.css +1 -1
  26. package/dist/assets/menu.css +1 -1
  27. package/dist/assets/modal-fullscreen.css +1 -1
  28. package/dist/assets/pagination.css +1 -1
  29. package/dist/assets/popover.css +1 -1
  30. package/dist/assets/sidepanel.css +1 -1
  31. package/dist/assets/step.css +1 -1
  32. package/dist/assets/summary-grid.css +1 -1
  33. package/dist/assets/tab.css +1 -0
  34. package/dist/assets/textarea.css +1 -1
  35. package/dist/assets/use-cached-selected-values.css +1 -1
  36. package/dist/button.js +1 -1
  37. package/dist/card.js +1 -1
  38. package/dist/checkbox.js +2 -2
  39. package/dist/chunks/{action-bar.BAfqAQjP.js → action-bar.ComuZPet.js} +38 -38
  40. package/dist/chunks/action-bar.ComuZPet.js.map +1 -0
  41. package/dist/chunks/{base-modal.CCwWuH6k.js → base-modal.DzJrvis_.js} +2 -2
  42. package/dist/chunks/{base-modal.CCwWuH6k.js.map → base-modal.DzJrvis_.js.map} +1 -1
  43. package/dist/chunks/button-actions-with-menu.B0nWCTwZ.js +91 -0
  44. package/dist/chunks/button-actions-with-menu.B0nWCTwZ.js.map +1 -0
  45. package/dist/chunks/{button-actions.D1pXI1AJ.js → button-actions.BwpznQ6c.js} +2 -2
  46. package/dist/chunks/button-actions.BwpznQ6c.js.map +1 -0
  47. package/dist/chunks/calendar._oPk_A1C.js +2209 -0
  48. package/dist/chunks/calendar._oPk_A1C.js.map +1 -0
  49. package/dist/chunks/{card.DiBtLuRU.js → card.JBOvn2BO.js} +2 -2
  50. package/dist/chunks/{card.DiBtLuRU.js.map → card.JBOvn2BO.js.map} +1 -1
  51. package/dist/chunks/{checkbox-group.BKsddn67.js → checkbox-group.Dc5Olq0c.js} +4 -4
  52. package/dist/chunks/{checkbox-group.BKsddn67.js.map → checkbox-group.Dc5Olq0c.js.map} +1 -1
  53. package/dist/chunks/{checkbox.C1y3Ad4Z.js → checkbox.fkPJvdUo.js} +2 -2
  54. package/dist/chunks/{checkbox.C1y3Ad4Z.js.map → checkbox.fkPJvdUo.js.map} +1 -1
  55. package/dist/chunks/{code-snippet.Bj5SAyT-.js → code-snippet.vrlSqi9k.js} +4 -4
  56. package/dist/chunks/{code-snippet.Bj5SAyT-.js.map → code-snippet.vrlSqi9k.js.map} +1 -1
  57. package/dist/chunks/{controls-group.DD1m4EKn.js → controls-group.CrzkSu0U.js} +2 -2
  58. package/dist/chunks/{controls-group.DD1m4EKn.js.map → controls-group.CrzkSu0U.js.map} +1 -1
  59. package/dist/chunks/copy.RUoQOydT.js +118 -0
  60. package/dist/chunks/copy.RUoQOydT.js.map +1 -0
  61. package/dist/chunks/{dashboard-section.C6FNJuEz.js → dashboard-section.Bg0dfNs-.js} +3 -3
  62. package/dist/chunks/{dashboard-section.C6FNJuEz.js.map → dashboard-section.Bg0dfNs-.js.map} +1 -1
  63. package/dist/chunks/{dashed-underline.ywc0ydgS.js → dashed-underline.DgE-UB-x.js} +2 -2
  64. package/dist/chunks/{dashed-underline.ywc0ydgS.js.map → dashed-underline.DgE-UB-x.js.map} +1 -1
  65. package/dist/chunks/data-grid-template.Df7j2oxe.js +144 -0
  66. package/dist/chunks/data-grid-template.Df7j2oxe.js.map +1 -0
  67. package/dist/chunks/{data-grid.DroQMKSc.js → data-grid.rDZadZwc.js} +370 -368
  68. package/dist/chunks/data-grid.rDZadZwc.js.map +1 -0
  69. package/dist/chunks/{date-picker.BuX2J2OW.js → date-picker.CZ6zU-NJ.js} +24 -25
  70. package/dist/chunks/{date-picker.BuX2J2OW.js.map → date-picker.CZ6zU-NJ.js.map} +1 -1
  71. package/dist/chunks/date-range-picker.Dw4R9bIs.js +1225 -0
  72. package/dist/chunks/date-range-picker.Dw4R9bIs.js.map +1 -0
  73. package/dist/chunks/date.DSjCnSgL.js +163 -0
  74. package/dist/chunks/date.DSjCnSgL.js.map +1 -0
  75. package/dist/chunks/{dropdown-default-textbox.B05elQig.js → dropdown-default-textbox.Ce5D3ipi.js} +40 -39
  76. package/dist/chunks/dropdown-default-textbox.Ce5D3ipi.js.map +1 -0
  77. package/dist/chunks/{dropdown-tag.Dm-1VD3B.js → dropdown-tag.BlHovDol.js} +2 -2
  78. package/dist/chunks/{dropdown-tag.Dm-1VD3B.js.map → dropdown-tag.BlHovDol.js.map} +1 -1
  79. package/dist/chunks/{dropdown.Bj6DK-2v.js → dropdown.B5ZaFDn_.js} +308 -313
  80. package/dist/chunks/{dropdown.Bj6DK-2v.js.map → dropdown.B5ZaFDn_.js.map} +1 -1
  81. package/dist/chunks/{error-message.DZWphzoT.js → error-message.DHMHq9bR.js} +2 -2
  82. package/dist/chunks/{error-message.DZWphzoT.js.map → error-message.DHMHq9bR.js.map} +1 -1
  83. package/dist/chunks/es6.n1ewaW31.js.map +1 -1
  84. package/dist/chunks/{file-uploader.C8DwUCMp.js → file-uploader.B_EI2fAc.js} +523 -523
  85. package/dist/chunks/file-uploader.B_EI2fAc.js.map +1 -0
  86. package/dist/chunks/{filter-bar.BvInaVGL.js → filter-bar.XonJn7ao.js} +1007 -992
  87. package/dist/chunks/{filter-bar.BvInaVGL.js.map → filter-bar.XonJn7ao.js.map} +1 -1
  88. package/dist/chunks/{footer-actions.vQ4flLqU.js → footer-actions.CdJLLWNR.js} +2 -2
  89. package/dist/chunks/{footer-actions.vQ4flLqU.js.map → footer-actions.CdJLLWNR.js.map} +1 -1
  90. package/dist/chunks/{get-date-locale.BN8xEjY0.js → get-date-locale.CAyOIbcp.js} +288 -649
  91. package/dist/chunks/get-date-locale.CAyOIbcp.js.map +1 -0
  92. package/dist/chunks/{header-with-views.De0oVJXS.js → header-with-views.CHbH1_1V.js} +680 -663
  93. package/dist/chunks/header-with-views.CHbH1_1V.js.map +1 -0
  94. package/dist/chunks/{header.Ckjp7n9t.js → header.CJJWPB5Z.js} +63 -62
  95. package/dist/chunks/{header.Ckjp7n9t.js.map → header.CJJWPB5Z.js.map} +1 -1
  96. package/dist/chunks/index.BrH1t1iu.js +407 -0
  97. package/dist/chunks/index.BrH1t1iu.js.map +1 -0
  98. package/dist/chunks/{info-icon-with-popover.Duk1tj5G.js → info-icon-with-popover.DVH46dPy.js} +2 -2
  99. package/dist/chunks/{info-icon-with-popover.Duk1tj5G.js.map → info-icon-with-popover.DVH46dPy.js.map} +1 -1
  100. package/dist/chunks/info-icon.DprUQ9fj.js +36 -0
  101. package/dist/chunks/info-icon.DprUQ9fj.js.map +1 -0
  102. package/dist/chunks/input-field-password.DWZAf1Oh.js +370 -0
  103. package/dist/chunks/input-field-password.DWZAf1Oh.js.map +1 -0
  104. package/dist/chunks/{input-field-phone-number.DVliTkE3.js → input-field-phone-number.CbpRItYf.js} +3 -3
  105. package/dist/chunks/{input-field-phone-number.DVliTkE3.js.map → input-field-phone-number.CbpRItYf.js.map} +1 -1
  106. package/dist/chunks/input-field.DExw_Cow.js +303 -0
  107. package/dist/chunks/input-field.DExw_Cow.js.map +1 -0
  108. package/dist/chunks/{menu.CiyYOoKd.js → menu.CeLJ1gIz.js} +2 -2
  109. package/dist/chunks/{menu.CiyYOoKd.js.map → menu.CeLJ1gIz.js.map} +1 -1
  110. package/dist/chunks/{modal-fullscreen.CuL9oSAq.js → modal-fullscreen.CZnLS-fQ.js} +2 -2
  111. package/dist/chunks/{modal-fullscreen.CuL9oSAq.js.map → modal-fullscreen.CZnLS-fQ.js.map} +1 -1
  112. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.LnD61fHp.js → modal.vue_vue_type_script_setup_true_lang.CP7dV1Yy.js} +4 -4
  113. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.LnD61fHp.js.map → modal.vue_vue_type_script_setup_true_lang.CP7dV1Yy.js.map} +1 -1
  114. package/dist/chunks/{pagination.D6A7TX6J.js → pagination.DL9LmFMJ.js} +168 -168
  115. package/dist/chunks/pagination.DL9LmFMJ.js.map +1 -0
  116. package/dist/chunks/{popover.maCMPyz8.js → popover.VI3TrUkL.js} +2 -2
  117. package/dist/chunks/{popover.maCMPyz8.js.map → popover.VI3TrUkL.js.map} +1 -1
  118. package/dist/chunks/promo-banner.CQp3z2CP.js.map +1 -1
  119. package/dist/chunks/{radio-group.435rdgzm.js → radio-group.H9A5QcNu.js} +3 -3
  120. package/dist/chunks/{radio-group.435rdgzm.js.map → radio-group.H9A5QcNu.js.map} +1 -1
  121. package/dist/chunks/{rich-text-editor.BDLncrV5.js → rich-text-editor.Dl9PsYbk.js} +6 -5
  122. package/dist/chunks/{rich-text-editor.BDLncrV5.js.map → rich-text-editor.Dl9PsYbk.js.map} +1 -1
  123. package/dist/chunks/{search-bar.Cngs3uYZ.js → search-bar.a-jzP1UA.js} +3 -3
  124. package/dist/chunks/{search-bar.Cngs3uYZ.js.map → search-bar.a-jzP1UA.js.map} +1 -1
  125. package/dist/chunks/{secondary-nav.ByCa4wiA.js → secondary-nav.UrmIAVGD.js} +2 -2
  126. package/dist/chunks/{secondary-nav.ByCa4wiA.js.map → secondary-nav.UrmIAVGD.js.map} +1 -1
  127. package/dist/chunks/{selection-card-group.9wJy7FC2.js → selection-card-group.B4xpnd-z.js} +3 -3
  128. package/dist/chunks/{selection-card-group.9wJy7FC2.js.map → selection-card-group.B4xpnd-z.js.map} +1 -1
  129. package/dist/chunks/{sidepanel.CTIjklfG.js → sidepanel.BuNmgmpj.js} +2 -2
  130. package/dist/chunks/{sidepanel.CTIjklfG.js.map → sidepanel.BuNmgmpj.js.map} +1 -1
  131. package/dist/chunks/step.BtNhPZAf.js +268 -0
  132. package/dist/chunks/step.BtNhPZAf.js.map +1 -0
  133. package/dist/chunks/{structured-list-item.DQzxNb_M.js → structured-list-item.BQbEDKhg.js} +3 -3
  134. package/dist/chunks/{structured-list-item.DQzxNb_M.js.map → structured-list-item.BQbEDKhg.js.map} +1 -1
  135. package/dist/chunks/summary-grid.types.CoSCUI1V.js +490 -0
  136. package/dist/chunks/summary-grid.types.CoSCUI1V.js.map +1 -0
  137. package/dist/chunks/tab.CAt51ksU.js +252 -0
  138. package/dist/chunks/tab.CAt51ksU.js.map +1 -0
  139. package/dist/chunks/{tabs.keys.Bc2pSKRw.js → tabs.keys.Cb4Vw5Jh.js} +3 -3
  140. package/dist/chunks/{tabs.keys.Bc2pSKRw.js.map → tabs.keys.Cb4Vw5Jh.js.map} +1 -1
  141. package/dist/chunks/{textarea.CV1HjB0x.js → textarea.DXSe9MHH.js} +83 -80
  142. package/dist/chunks/textarea.DXSe9MHH.js.map +1 -0
  143. package/dist/chunks/{timeline-item.DUp8MmgZ.js → timeline-item.BRHwCA1F.js} +11 -12
  144. package/dist/chunks/timeline-item.BRHwCA1F.js.map +1 -0
  145. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.E8oBlhrC.js → tutorial.vue_vue_type_script_setup_true_lang.CAf69UYO.js} +4 -4
  146. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.E8oBlhrC.js.map → tutorial.vue_vue_type_script_setup_true_lang.CAf69UYO.js.map} +1 -1
  147. package/dist/chunks/use-cached-selected-values.D7dOPJSO.js +1653 -0
  148. package/dist/chunks/use-cached-selected-values.D7dOPJSO.js.map +1 -0
  149. package/dist/code-snippet.js +1 -1
  150. package/dist/dashboard-template.js +1 -1
  151. package/dist/dashed-underline.js +1 -1
  152. package/dist/data-grid-template.js +1 -1
  153. package/dist/data-grid.js +1 -1
  154. package/dist/date-picker.js +2 -2
  155. package/dist/date-range-picker.js +2 -2
  156. package/dist/date.js +1 -1
  157. package/dist/dropdown.js +4 -4
  158. package/dist/file-uploader.js +1 -1
  159. package/dist/filter-bar.js +1 -1
  160. package/dist/header-with-views.js +1 -1
  161. package/dist/header.js +1 -1
  162. package/dist/index.js +45 -45
  163. package/dist/info-icon.js +1 -1
  164. package/dist/input-field-password.js +1 -1
  165. package/dist/input-field-phone-number.js +1 -1
  166. package/dist/input-field.js +1 -1
  167. package/dist/internal.js +8 -8
  168. package/dist/menu.js +1 -1
  169. package/dist/modal-fullscreen.js +1 -1
  170. package/dist/modal.js +2 -2
  171. package/dist/pagination.js +1 -1
  172. package/dist/popover.js +1 -1
  173. package/dist/radio-group.js +1 -1
  174. package/dist/rich-text-editor.js +1 -1
  175. package/dist/search-bar.js +2 -2
  176. package/dist/secondary-nav.js +1 -1
  177. package/dist/selection-card.js +1 -1
  178. package/dist/sidepanel.js +1 -1
  179. package/dist/stepper.js +1 -1
  180. package/dist/structured-list.js +1 -1
  181. package/dist/styles/bento-dark.css +1 -0
  182. package/dist/styles/bento-light.css +1 -0
  183. package/dist/styles/bento.css +1 -0
  184. package/dist/styles/legacy.css +1 -0
  185. package/dist/styles/styleguide.css +1 -0
  186. package/dist/summary-grid.js +1 -1
  187. package/dist/tabs.js +1 -1
  188. package/dist/textarea.js +1 -1
  189. package/dist/timeline.js +1 -1
  190. package/dist/tutorial.js +1 -1
  191. package/dist/web-types.json +1 -1
  192. package/package.json +6 -6
  193. package/dist/assets/tabs.css +0 -1
  194. package/dist/chunks/action-bar.BAfqAQjP.js.map +0 -1
  195. package/dist/chunks/button-actions-with-menu.D50ABuSV.js +0 -174
  196. package/dist/chunks/button-actions-with-menu.D50ABuSV.js.map +0 -1
  197. package/dist/chunks/button-actions.D1pXI1AJ.js.map +0 -1
  198. package/dist/chunks/calendar.CLpwW_-k.js +0 -1290
  199. package/dist/chunks/calendar.CLpwW_-k.js.map +0 -1
  200. package/dist/chunks/copy.DqckFHHS.js +0 -156
  201. package/dist/chunks/copy.DqckFHHS.js.map +0 -1
  202. package/dist/chunks/data-grid-template.DzIpssxc.js +0 -143
  203. package/dist/chunks/data-grid-template.DzIpssxc.js.map +0 -1
  204. package/dist/chunks/data-grid.DroQMKSc.js.map +0 -1
  205. package/dist/chunks/date-range-picker.C2x1_xoz.js +0 -1209
  206. package/dist/chunks/date-range-picker.C2x1_xoz.js.map +0 -1
  207. package/dist/chunks/date.CKXySBQv.js +0 -995
  208. package/dist/chunks/date.CKXySBQv.js.map +0 -1
  209. package/dist/chunks/dropdown-default-textbox.B05elQig.js.map +0 -1
  210. package/dist/chunks/file-uploader.C8DwUCMp.js.map +0 -1
  211. package/dist/chunks/get-date-locale.BN8xEjY0.js.map +0 -1
  212. package/dist/chunks/header-with-views.De0oVJXS.js.map +0 -1
  213. package/dist/chunks/index.BDuTpjD8.js +0 -40
  214. package/dist/chunks/index.BDuTpjD8.js.map +0 -1
  215. package/dist/chunks/index.DD7TppDb.js +0 -10
  216. package/dist/chunks/index.DD7TppDb.js.map +0 -1
  217. package/dist/chunks/info-icon.CpGwbhZQ.js +0 -45
  218. package/dist/chunks/info-icon.CpGwbhZQ.js.map +0 -1
  219. package/dist/chunks/input-field-password.CJOf1GlS.js +0 -369
  220. package/dist/chunks/input-field-password.CJOf1GlS.js.map +0 -1
  221. package/dist/chunks/input-field.xUQT0LXI.js +0 -298
  222. package/dist/chunks/input-field.xUQT0LXI.js.map +0 -1
  223. package/dist/chunks/pagination.D6A7TX6J.js.map +0 -1
  224. package/dist/chunks/step.CpSPMvdW.js +0 -264
  225. package/dist/chunks/step.CpSPMvdW.js.map +0 -1
  226. package/dist/chunks/summary-grid.types.BpS1z1-W.js +0 -466
  227. package/dist/chunks/summary-grid.types.BpS1z1-W.js.map +0 -1
  228. package/dist/chunks/tabs.Cq1fdzVh.js +0 -266
  229. package/dist/chunks/tabs.Cq1fdzVh.js.map +0 -1
  230. package/dist/chunks/textarea.CV1HjB0x.js.map +0 -1
  231. package/dist/chunks/timeline-item.DUp8MmgZ.js.map +0 -1
  232. package/dist/chunks/use-cached-selected-values.CEwKqYIe.js +0 -1600
  233. package/dist/chunks/use-cached-selected-values.CEwKqYIe.js.map +0 -1
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as d, toRefs as f, computed as p, onMounted as _, createElementBlock as g, openBlock as r, createElementVNode as m, createBlock as l, createCommentVNode as s, createVNode as v, unref as i, withCtx as h, createTextVNode as b, toDisplayString as y } from "vue";
2
2
  import { B } from "./typography.DN5eC5ch.js";
3
3
  import { a as A } from "./button.AB0SOQMn.js";
4
- import { B as c } from "./button-actions.D1pXI1AJ.js";
4
+ import { B as c } from "./button-actions.BwpznQ6c.js";
5
5
  import { _ as w } from "./_plugin-vue_export-helper.CHgC5LLL.js";
6
6
  import "../assets/footer-actions.css";
7
7
  const N = { class: "b-footer-actions" }, k = { class: "b-footer-actions__wrapper" }, x = {}, E = /* @__PURE__ */ d({
@@ -107,4 +107,4 @@ const N = { class: "b-footer-actions" }, k = { class: "b-footer-actions__wrapper
107
107
  export {
108
108
  F
109
109
  };
110
- //# sourceMappingURL=footer-actions.vQ4flLqU.js.map
110
+ //# sourceMappingURL=footer-actions.CdJLLWNR.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"footer-actions.vQ4flLqU.js","sources":["../../../vue2/src/components/internal/footer-actions/footer-actions.vue"],"sourcesContent":["<template>\n <div class=\"b-footer-actions\">\n <div class=\"b-footer-actions__wrapper\">\n <bento-typography v-if=\"actionsLabel\" class=\"b-footer-actions__label\" el=\"span\" variant=\"body\" stronger>\n {{ actionsLabel }}\n </bento-typography>\n\n <bento-button-actions\n v-if=\"alignedActions.leftAligned\"\n class=\"b-footer-actions__left-group\"\n :actions=\"alignedActions.leftAligned\"\n layout=\"buttons-start\"\n ></bento-button-actions>\n\n <bento-button-actions\n class=\"b-footer-actions__right-group\"\n :actions=\"alignedActions.rightAligned\"\n layout=\"buttons-end\"\n ></bento-button-actions>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { BentoTypography } from '@/components/typography';\n import { computed, onMounted, PropType, toRefs } from 'vue';\n import { BentoButtonActions, BentoButtonActionsList, BentoButtonVariant } from '@/components/button';\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 required: true,\n },\n /**\n * Text label that is displayed left to the action buttons\n */\n actionsLabel: {\n type: String,\n default: null,\n },\n /**\n * If passed - sets first button color to red\n */\n destructiveActions: {\n type: Boolean,\n default: false,\n },\n });\n\n const { actions, destructiveActions } = toRefs(props);\n\n const alignedActions = computed(() => {\n const rightAlignedButtons =\n actions.value.length < 3 ? actions.value : actions.value.slice(0, actions.value.length - 1);\n\n // Add red color to the 1-st Action button\n rightAlignedButtons[0].critical = destructiveActions.value || rightAlignedButtons[0].critical;\n\n return {\n leftAligned:\n actions.value.length === 3\n ? [\n {\n ...actions.value[actions.value.length - 1],\n variant: BentoButtonVariant.SECONDARY,\n },\n ]\n : null,\n rightAligned: [...rightAlignedButtons],\n };\n });\n\n onMounted(() => {\n if (props.actions && props.actions.length > 3) {\n throw new Error('Not more than 3 action buttons may be provided to Bento Modal default variant');\n }\n\n if (props.actionsLabel && props.actions && props.actions.length > 2) {\n throw new Error(\n 'Not more than 2 action buttons may be provided with actions label to Bento Modal default variant'\n );\n }\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * Internal component to handle the logic of displaying actions in default Modal and Sidepanel\n\n * @example\n * import { FooterActions } from '@/components/internal/footer-actions';\n *\n * export default {\n * components: { FooterActions },\n * template: `\n * <footer-actions :actions=\"BentoButtonActionsList\" actions-label=\"Label\" :destructive-actions=\"true\" />\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./footer-actions.scss\" />\n"],"names":["__default__","props","__props","actions","destructiveActions","toRefs","alignedActions","computed","rightAlignedButtons","BentoButtonVariant","onMounted"],"mappings":";;;;;;qFA+HIA,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAnGA,UAAAC,IAAAC,GAiDA,EAAA,SAAAC,GAAA,oBAAAC,EAAA,IAAAC,EAAAJ,CAAA,GAEAK,IAAAC,EAAA,MAAA;AACI,YAAAC,IAAAL,EAAA,MAAA,SAAA,IAAAA,EAAA,QAAAA,EAAA,MAAA,MAAA,GAAAA,EAAA,MAAA,SAAA,CAAA;AAIA,aAAAK,EAAA,CAAA,EAAA,WAAAJ,EAAA,SAAAI,EAAA,CAAA,EAAA,UAEA;AAAA,QAAO,aAAAL,EAAA,MAAA,WAAA,IAAA;AAAA,UAGO;AAAA,YACI,GAAAA,EAAA,MAAAA,EAAA,MAAA,SAAA,CAAA;AAAA,YAC6C,SAAAM,EAAA;AAAA,UACb;AAAA,QAChC,IAAA;AAAA,QAEJ,cAAA,CAAA,GAAAD,CAAA;AAAA,MAC2B;AAAA,IACzC,CAAA;AAGJ,WAAAE,EAAA,MAAA;AACI,UAAAT,EAAA,WAAAA,EAAA,QAAA,SAAA;AACI,cAAA,IAAA,MAAA,+EAAA;AAGJ,UAAAA,EAAA,gBAAAA,EAAA,WAAAA,EAAA,QAAA,SAAA;AACI,cAAA,IAAA;AAAA,UAAU;AAAA,QACN;AAAA,IAER,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"footer-actions.CdJLLWNR.js","sources":["../../../vue2/src/components/internal/footer-actions/footer-actions.vue"],"sourcesContent":["<template>\n <div class=\"b-footer-actions\">\n <div class=\"b-footer-actions__wrapper\">\n <bento-typography v-if=\"actionsLabel\" class=\"b-footer-actions__label\" el=\"span\" variant=\"body\" stronger>\n {{ actionsLabel }}\n </bento-typography>\n\n <bento-button-actions\n v-if=\"alignedActions.leftAligned\"\n class=\"b-footer-actions__left-group\"\n :actions=\"alignedActions.leftAligned\"\n layout=\"buttons-start\"\n ></bento-button-actions>\n\n <bento-button-actions\n class=\"b-footer-actions__right-group\"\n :actions=\"alignedActions.rightAligned\"\n layout=\"buttons-end\"\n ></bento-button-actions>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { BentoTypography } from '@/components/typography';\n import { computed, onMounted, PropType, toRefs } from 'vue';\n import { BentoButtonActions, BentoButtonActionsList, BentoButtonVariant } from '@/components/button';\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 required: true,\n },\n /**\n * Text label that is displayed left to the action buttons\n */\n actionsLabel: {\n type: String,\n default: null,\n },\n /**\n * If passed - sets first button color to red\n */\n destructiveActions: {\n type: Boolean,\n default: false,\n },\n });\n\n const { actions, destructiveActions } = toRefs(props);\n\n const alignedActions = computed(() => {\n const rightAlignedButtons =\n actions.value.length < 3 ? actions.value : actions.value.slice(0, actions.value.length - 1);\n\n // Add red color to the 1-st Action button\n rightAlignedButtons[0].critical = destructiveActions.value || rightAlignedButtons[0].critical;\n\n return {\n leftAligned:\n actions.value.length === 3\n ? [\n {\n ...actions.value[actions.value.length - 1],\n variant: BentoButtonVariant.SECONDARY,\n },\n ]\n : null,\n rightAligned: [...rightAlignedButtons],\n };\n });\n\n onMounted(() => {\n if (props.actions && props.actions.length > 3) {\n throw new Error('Not more than 3 action buttons may be provided to Bento Modal default variant');\n }\n\n if (props.actionsLabel && props.actions && props.actions.length > 2) {\n throw new Error(\n 'Not more than 2 action buttons may be provided with actions label to Bento Modal default variant'\n );\n }\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * Internal component to handle the logic of displaying actions in default Modal and Sidepanel\n\n * @example\n * import { FooterActions } from '@/components/internal/footer-actions';\n *\n * export default {\n * components: { FooterActions },\n * template: `\n * <footer-actions :actions=\"BentoButtonActionsList\" actions-label=\"Label\" :destructive-actions=\"true\" />\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./footer-actions.scss\" />\n"],"names":["__default__","props","__props","actions","destructiveActions","toRefs","alignedActions","computed","rightAlignedButtons","BentoButtonVariant","onMounted"],"mappings":";;;;;;qFA+HIA,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAnGA,UAAAC,IAAAC,GAiDA,EAAA,SAAAC,GAAA,oBAAAC,EAAA,IAAAC,EAAAJ,CAAA,GAEAK,IAAAC,EAAA,MAAA;AACI,YAAAC,IAAAL,EAAA,MAAA,SAAA,IAAAA,EAAA,QAAAA,EAAA,MAAA,MAAA,GAAAA,EAAA,MAAA,SAAA,CAAA;AAIA,aAAAK,EAAA,CAAA,EAAA,WAAAJ,EAAA,SAAAI,EAAA,CAAA,EAAA,UAEA;AAAA,QAAO,aAAAL,EAAA,MAAA,WAAA,IAAA;AAAA,UAGO;AAAA,YACI,GAAAA,EAAA,MAAAA,EAAA,MAAA,SAAA,CAAA;AAAA,YAC6C,SAAAM,EAAA;AAAA,UACb;AAAA,QAChC,IAAA;AAAA,QAEJ,cAAA,CAAA,GAAAD,CAAA;AAAA,MAC2B;AAAA,IACzC,CAAA;AAGJ,WAAAE,EAAA,MAAA;AACI,UAAAT,EAAA,WAAAA,EAAA,QAAA,SAAA;AACI,cAAA,IAAA,MAAA,+EAAA;AAGJ,UAAAA,EAAA,gBAAAA,EAAA,WAAAA,EAAA,QAAA,SAAA;AACI,cAAA,IAAA;AAAA,UAAU;AAAA,QACN;AAAA,IAER,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}