@adyen/bento-vue2 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 (229) hide show
  1. package/dist/@types/index.d.ts +473 -253
  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.DHdrZtmW.js → action-bar.BxX3I27_.js} +31 -31
  40. package/dist/chunks/action-bar.BxX3I27_.js.map +1 -0
  41. package/dist/chunks/{base-modal.3OptY7u_.js → base-modal.QGDM_kjG.js} +2 -2
  42. package/dist/chunks/{base-modal.3OptY7u_.js.map → base-modal.QGDM_kjG.js.map} +1 -1
  43. package/dist/chunks/button-actions-with-menu.itkbcqzk.js +83 -0
  44. package/dist/chunks/button-actions-with-menu.itkbcqzk.js.map +1 -0
  45. package/dist/chunks/{button-actions._OIvTdKt.js → button-actions.BKdI_ooV.js} +2 -2
  46. package/dist/chunks/button-actions.BKdI_ooV.js.map +1 -0
  47. package/dist/chunks/calendar.DvIQEYwN.js +2086 -0
  48. package/dist/chunks/calendar.DvIQEYwN.js.map +1 -0
  49. package/dist/chunks/{card.CypgT0Ji.js → card.BktfAMv5.js} +2 -2
  50. package/dist/chunks/{card.CypgT0Ji.js.map → card.BktfAMv5.js.map} +1 -1
  51. package/dist/chunks/{checkbox-group.DVX0GFm9.js → checkbox-group.BVMGnokj.js} +4 -4
  52. package/dist/chunks/{checkbox-group.DVX0GFm9.js.map → checkbox-group.BVMGnokj.js.map} +1 -1
  53. package/dist/chunks/{checkbox.nHrvoKfp.js → checkbox.Bg5FM5Oa.js} +2 -2
  54. package/dist/chunks/{checkbox.nHrvoKfp.js.map → checkbox.Bg5FM5Oa.js.map} +1 -1
  55. package/dist/chunks/{code-snippet.W8Zp0zQP.js → code-snippet.DDiQ9R3o.js} +4 -4
  56. package/dist/chunks/{code-snippet.W8Zp0zQP.js.map → code-snippet.DDiQ9R3o.js.map} +1 -1
  57. package/dist/chunks/{controls-group.BWAmz7Tg.js → controls-group.CccuLkgP.js} +2 -2
  58. package/dist/chunks/{controls-group.BWAmz7Tg.js.map → controls-group.CccuLkgP.js.map} +1 -1
  59. package/dist/chunks/copy.CF8Fzu2Y.js +96 -0
  60. package/dist/chunks/copy.CF8Fzu2Y.js.map +1 -0
  61. package/dist/chunks/{dashboard-section.Bz54Z6Hh.js → dashboard-section.Beep1lY8.js} +3 -3
  62. package/dist/chunks/{dashboard-section.Bz54Z6Hh.js.map → dashboard-section.Beep1lY8.js.map} +1 -1
  63. package/dist/chunks/{dashed-underline.CEaAmjDa.js → dashed-underline.BQwLgzz6.js} +2 -2
  64. package/dist/chunks/{dashed-underline.CEaAmjDa.js.map → dashed-underline.BQwLgzz6.js.map} +1 -1
  65. package/dist/chunks/{data-grid-template.DtFRjaR8.js → data-grid-template.nkx0pCMA.js} +16 -14
  66. package/dist/chunks/data-grid-template.nkx0pCMA.js.map +1 -0
  67. package/dist/chunks/{data-grid.D4oeTUhn.js → data-grid.CkwZVy3a.js} +190 -188
  68. package/dist/chunks/data-grid.CkwZVy3a.js.map +1 -0
  69. package/dist/chunks/{date-picker.k0g6anfy.js → date-picker.BLBXaDHv.js} +8 -9
  70. package/dist/chunks/{date-picker.k0g6anfy.js.map → date-picker.BLBXaDHv.js.map} +1 -1
  71. package/dist/chunks/{date-range-picker.D9lyIoO-.js → date-range-picker.am63DgMj.js} +409 -393
  72. package/dist/chunks/date-range-picker.am63DgMj.js.map +1 -0
  73. package/dist/chunks/date.BfyWX2PY.js +160 -0
  74. package/dist/chunks/date.BfyWX2PY.js.map +1 -0
  75. package/dist/chunks/{dropdown-default-textbox.BNuuA4ES.js → dropdown-default-textbox.94q6opSD.js} +3 -3
  76. package/dist/chunks/dropdown-default-textbox.94q6opSD.js.map +1 -0
  77. package/dist/chunks/{dropdown-tag.DKhxBV52.js → dropdown-tag.DYIkCBa6.js} +2 -2
  78. package/dist/chunks/{dropdown-tag.DKhxBV52.js.map → dropdown-tag.DYIkCBa6.js.map} +1 -1
  79. package/dist/chunks/{dropdown.DV7uhHNP.js → dropdown.HA6ISg2h.js} +265 -270
  80. package/dist/chunks/{dropdown.DV7uhHNP.js.map → dropdown.HA6ISg2h.js.map} +1 -1
  81. package/dist/chunks/{error-message.1Em7Lis3.js → error-message.BgxnwPLF.js} +2 -2
  82. package/dist/chunks/{error-message.1Em7Lis3.js.map → error-message.BgxnwPLF.js.map} +1 -1
  83. package/dist/chunks/es6.n1ewaW31.js.map +1 -1
  84. package/dist/chunks/{file-uploader.DyjdNLOa.js → file-uploader.BPslxGI8.js} +323 -323
  85. package/dist/chunks/file-uploader.BPslxGI8.js.map +1 -0
  86. package/dist/chunks/{filter-bar.BxDEplt3.js → filter-bar.DbqsoAI1.js} +667 -652
  87. package/dist/chunks/{filter-bar.BxDEplt3.js.map → filter-bar.DbqsoAI1.js.map} +1 -1
  88. package/dist/chunks/{footer-actions.DyuSTjC5.js → footer-actions.BUfQFz7J.js} +2 -2
  89. package/dist/chunks/{footer-actions.DyuSTjC5.js.map → footer-actions.BUfQFz7J.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.Ds9mcwmp.js → header-with-views.JllLR2nW.js} +341 -327
  93. package/dist/chunks/header-with-views.JllLR2nW.js.map +1 -0
  94. package/dist/chunks/{header.Cb644uAi.js → header.04Y0unpy.js} +27 -26
  95. package/dist/chunks/{header.Cb644uAi.js.map → header.04Y0unpy.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.COq40yTq.js → info-icon-with-popover.B1DnkW4B.js} +2 -2
  99. package/dist/chunks/{info-icon-with-popover.COq40yTq.js.map → info-icon-with-popover.B1DnkW4B.js.map} +1 -1
  100. package/dist/chunks/info-icon.CYOXx8CL.js +37 -0
  101. package/dist/chunks/info-icon.CYOXx8CL.js.map +1 -0
  102. package/dist/chunks/{input-field-password.Bloa-rqx.js → input-field-password.BtOdV0gF.js} +124 -123
  103. package/dist/chunks/input-field-password.BtOdV0gF.js.map +1 -0
  104. package/dist/chunks/{input-field-phone-number.B3qzZKuP.js → input-field-phone-number.Dq-LnGag.js} +3 -3
  105. package/dist/chunks/{input-field-phone-number.B3qzZKuP.js.map → input-field-phone-number.Dq-LnGag.js.map} +1 -1
  106. package/dist/chunks/input-field.Bg77qHT2.js +157 -0
  107. package/dist/chunks/input-field.Bg77qHT2.js.map +1 -0
  108. package/dist/chunks/{menu.BCD4FW54.js → menu.EgYjFAku.js} +2 -2
  109. package/dist/chunks/{menu.BCD4FW54.js.map → menu.EgYjFAku.js.map} +1 -1
  110. package/dist/chunks/{modal-fullscreen.1OdCgyca.js → modal-fullscreen.BNTUOC7o.js} +2 -2
  111. package/dist/chunks/{modal-fullscreen.1OdCgyca.js.map → modal-fullscreen.BNTUOC7o.js.map} +1 -1
  112. package/dist/chunks/{modal.xY5aFhAO.js → modal.OvB4kEGR.js} +4 -4
  113. package/dist/chunks/{modal.xY5aFhAO.js.map → modal.OvB4kEGR.js.map} +1 -1
  114. package/dist/chunks/{pagination.Cl7SzoId.js → pagination.Dw153NzQ.js} +115 -115
  115. package/dist/chunks/pagination.Dw153NzQ.js.map +1 -0
  116. package/dist/chunks/{popover.B05xkQ4e.js → popover.BGHbPUOr.js} +2 -2
  117. package/dist/chunks/{popover.B05xkQ4e.js.map → popover.BGHbPUOr.js.map} +1 -1
  118. package/dist/chunks/promo-banner.Bbc2U3S3.js.map +1 -1
  119. package/dist/chunks/{radio-group.CtPG_iiI.js → radio-group.4_KKjvAm.js} +3 -3
  120. package/dist/chunks/{radio-group.CtPG_iiI.js.map → radio-group.4_KKjvAm.js.map} +1 -1
  121. package/dist/chunks/{rich-text-editor.CLxVaskq.js → rich-text-editor.CRJRvfJn.js} +5 -7
  122. package/dist/chunks/{rich-text-editor.CLxVaskq.js.map → rich-text-editor.CRJRvfJn.js.map} +1 -1
  123. package/dist/chunks/{search-bar.CadVBoj0.js → search-bar.BTZSePJh.js} +3 -3
  124. package/dist/chunks/{search-bar.CadVBoj0.js.map → search-bar.BTZSePJh.js.map} +1 -1
  125. package/dist/chunks/{secondary-nav.OwimHNCb.js → secondary-nav.BBhSBNn7.js} +2 -2
  126. package/dist/chunks/{secondary-nav.OwimHNCb.js.map → secondary-nav.BBhSBNn7.js.map} +1 -1
  127. package/dist/chunks/{selection-card-group.CoqBRUT8.js → selection-card-group.0o5T4tab.js} +3 -3
  128. package/dist/chunks/{selection-card-group.CoqBRUT8.js.map → selection-card-group.0o5T4tab.js.map} +1 -1
  129. package/dist/chunks/{sidepanel.CI8fu1Q3.js → sidepanel.Dt-BnFzN.js} +2 -2
  130. package/dist/chunks/{sidepanel.CI8fu1Q3.js.map → sidepanel.Dt-BnFzN.js.map} +1 -1
  131. package/dist/chunks/step.DMMofD4B.js +217 -0
  132. package/dist/chunks/step.DMMofD4B.js.map +1 -0
  133. package/dist/chunks/{structured-list-item.tox2Kcb6.js → structured-list-item.Bnn6-Z3q.js} +3 -3
  134. package/dist/chunks/{structured-list-item.tox2Kcb6.js.map → structured-list-item.Bnn6-Z3q.js.map} +1 -1
  135. package/dist/chunks/summary-grid.types.DsvtLg3D.js +337 -0
  136. package/dist/chunks/summary-grid.types.DsvtLg3D.js.map +1 -0
  137. package/dist/chunks/tab.BhWPBxcB.js +192 -0
  138. package/dist/chunks/tab.BhWPBxcB.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.BPeDUAPL.js → textarea.RAU710Uw.js} +83 -80
  142. package/dist/chunks/textarea.RAU710Uw.js.map +1 -0
  143. package/dist/chunks/{timeline-item.CS9ZDOsm.js → timeline-item.Dz66luo5.js} +11 -12
  144. package/dist/chunks/timeline-item.Dz66luo5.js.map +1 -0
  145. package/dist/chunks/{tutorial.DJ_Cwp9i.js → tutorial.DAKO-fKz.js} +4 -4
  146. package/dist/chunks/{tutorial.DJ_Cwp9i.js.map → tutorial.DAKO-fKz.js.map} +1 -1
  147. package/dist/chunks/{use-cached-selected-values.DNOmzQVy.js → use-cached-selected-values.DQPABFfG.js} +538 -498
  148. package/dist/chunks/use-cached-selected-values.DQPABFfG.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 +261 -81
  192. package/package.json +6 -6
  193. package/dist/assets/tabs.css +0 -1
  194. package/dist/chunks/action-bar.DHdrZtmW.js.map +0 -1
  195. package/dist/chunks/button-actions-with-menu.CYkEoiee.js +0 -166
  196. package/dist/chunks/button-actions-with-menu.CYkEoiee.js.map +0 -1
  197. package/dist/chunks/button-actions._OIvTdKt.js.map +0 -1
  198. package/dist/chunks/calendar.DbTC35rM.js +0 -1167
  199. package/dist/chunks/calendar.DbTC35rM.js.map +0 -1
  200. package/dist/chunks/copy.CXeLbvUP.js +0 -129
  201. package/dist/chunks/copy.CXeLbvUP.js.map +0 -1
  202. package/dist/chunks/data-grid-template.DtFRjaR8.js.map +0 -1
  203. package/dist/chunks/data-grid.D4oeTUhn.js.map +0 -1
  204. package/dist/chunks/date-range-picker.D9lyIoO-.js.map +0 -1
  205. package/dist/chunks/date.dYFFEunA.js +0 -987
  206. package/dist/chunks/date.dYFFEunA.js.map +0 -1
  207. package/dist/chunks/dropdown-default-textbox.BNuuA4ES.js.map +0 -1
  208. package/dist/chunks/file-uploader.DyjdNLOa.js.map +0 -1
  209. package/dist/chunks/get-date-locale.BN8xEjY0.js.map +0 -1
  210. package/dist/chunks/header-with-views.Ds9mcwmp.js.map +0 -1
  211. package/dist/chunks/index.BDuTpjD8.js +0 -40
  212. package/dist/chunks/index.BDuTpjD8.js.map +0 -1
  213. package/dist/chunks/index.DD7TppDb.js +0 -10
  214. package/dist/chunks/index.DD7TppDb.js.map +0 -1
  215. package/dist/chunks/info-icon.B9aTl1nU.js +0 -41
  216. package/dist/chunks/info-icon.B9aTl1nU.js.map +0 -1
  217. package/dist/chunks/input-field-password.Bloa-rqx.js.map +0 -1
  218. package/dist/chunks/input-field.B_3nZFYz.js +0 -152
  219. package/dist/chunks/input-field.B_3nZFYz.js.map +0 -1
  220. package/dist/chunks/pagination.Cl7SzoId.js.map +0 -1
  221. package/dist/chunks/step.dNTg2rtW.js +0 -217
  222. package/dist/chunks/step.dNTg2rtW.js.map +0 -1
  223. package/dist/chunks/summary-grid.types.CkUIw703.js +0 -301
  224. package/dist/chunks/summary-grid.types.CkUIw703.js.map +0 -1
  225. package/dist/chunks/tabs.Dx6teJGW.js +0 -205
  226. package/dist/chunks/tabs.Dx6teJGW.js.map +0 -1
  227. package/dist/chunks/textarea.BPeDUAPL.js.map +0 -1
  228. package/dist/chunks/timeline-item.CS9ZDOsm.js.map +0 -1
  229. package/dist/chunks/use-cached-selected-values.DNOmzQVy.js.map +0 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "@adyen/bento-vue2",
4
- "version": "1.65.0",
4
+ "version": "1.67.0",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",
@@ -1116,43 +1116,6 @@
1116
1116
  "symbol": "default"
1117
1117
  }
1118
1118
  },
1119
- {
1120
- "name": "bento-date",
1121
- "description": "A Date component is used to display a formatted date value.",
1122
- "attributes": [
1123
- {
1124
- "name": "date",
1125
- "description": "The date to format. The data can be supplied as:\n- a Date object.\n- a number of milliseconds elapsed since the epoch.\n- a date string e.g. '2023-07-31T10:55:22+02:00'.",
1126
- "value": {
1127
- "kind": "expression",
1128
- "type": "date|number|string"
1129
- },
1130
- "default": "null"
1131
- },
1132
- {
1133
- "name": "format",
1134
- "description": "The string format of the date to be displayed",
1135
- "value": {
1136
- "kind": "expression",
1137
- "type": "BentoDateFormat | `${BentoDateFormat}`"
1138
- },
1139
- "default": "BentoDateFormat.FULL_DATE_EXACT_TIME_WITHOUT_PERIOD"
1140
- },
1141
- {
1142
- "name": "disableTypography",
1143
- "description": "Disable the default typography for the component. Only use this when the component is inside another typography",
1144
- "value": {
1145
- "kind": "expression",
1146
- "type": "boolean"
1147
- },
1148
- "default": "false"
1149
- }
1150
- ],
1151
- "source": {
1152
- "module": "./src/components/date/date.vue",
1153
- "symbol": "default"
1154
- }
1155
- },
1156
1119
  {
1157
1120
  "name": "bento-date-filter",
1158
1121
  "description": "The Date filter displays a calendar that allows\nto select a single date.",
@@ -1757,38 +1720,13 @@
1757
1720
  "slots": [
1758
1721
  {
1759
1722
  "name": "infoIconTooltipContent"
1760
- }
1761
- ],
1762
- "source": {
1763
- "module": "./src/components/header/header.vue",
1764
- "symbol": "default"
1765
- }
1766
- },
1767
- {
1768
- "name": "bento-info-icon",
1769
- "description": "",
1770
- "attributes": [
1771
- {
1772
- "name": "tooltipText",
1773
- "required": true,
1774
- "description": "Text showed in the info-icon tooltip on hover",
1775
- "value": {
1776
- "kind": "expression",
1777
- "type": "string"
1778
- }
1779
1723
  },
1780
1724
  {
1781
- "name": "tooltipPosition",
1782
- "description": "Position the tooltip should take if space is available. Defaults to 'auto'",
1783
- "value": {
1784
- "kind": "expression",
1785
- "type": "PopperContainerPosition | `${PopperContainerPosition}`"
1786
- },
1787
- "default": "PopperContainerPosition.AUTO"
1725
+ "name": "description"
1788
1726
  }
1789
1727
  ],
1790
1728
  "source": {
1791
- "module": "./src/components/info-icon/info-icon.vue",
1729
+ "module": "./src/components/header/header.vue",
1792
1730
  "symbol": "default"
1793
1731
  }
1794
1732
  },
@@ -2793,15 +2731,17 @@
2793
2731
  },
2794
2732
  {
2795
2733
  "name": "actionsLayout",
2734
+ "required": false,
2796
2735
  "description": "Defines the layout in which the button actions is presented.",
2797
2736
  "value": {
2798
2737
  "kind": "expression",
2799
- "type": "`${BentoButtonActionsLayout}`"
2738
+ "type": "TSLiteralType"
2800
2739
  },
2801
- "default": "BentoButtonActionsLayout.BUTTONS_END"
2740
+ "default": "'buttons-end'"
2802
2741
  },
2803
2742
  {
2804
2743
  "name": "disableResponsiveBehavior",
2744
+ "required": false,
2805
2745
  "description": "The number of actions to be displayed. The rest of the actions will be collapsed in a menu component.",
2806
2746
  "value": {
2807
2747
  "kind": "expression",
@@ -2811,6 +2751,7 @@
2811
2751
  },
2812
2752
  {
2813
2753
  "name": "displayedActions",
2754
+ "required": false,
2814
2755
  "description": "The number of actions to be displayed. The rest of the actions will be collapsed in a menu component.",
2815
2756
  "value": {
2816
2757
  "kind": "expression",
@@ -2820,6 +2761,7 @@
2820
2761
  },
2821
2762
  {
2822
2763
  "name": "inverse",
2764
+ "required": false,
2823
2765
  "description": "Set inverse color scheme to buttons and menu",
2824
2766
  "value": {
2825
2767
  "kind": "expression",
@@ -2829,6 +2771,7 @@
2829
2771
  },
2830
2772
  {
2831
2773
  "name": "hideDisplayedActionsBreakpoint",
2774
+ "required": false,
2832
2775
  "description": "The min-width breakpoint to hide the button actions.\n\nFor example, a value of 200 means that buttons will be hidden at <= 200px.\n\nDefaults to 0 i.e. it shows all buttons.",
2833
2776
  "value": {
2834
2777
  "kind": "expression",
@@ -2838,10 +2781,11 @@
2838
2781
  },
2839
2782
  {
2840
2783
  "name": "menuPosition",
2784
+ "required": false,
2841
2785
  "description": "The position of where the menu should open.",
2842
2786
  "value": {
2843
2787
  "kind": "expression",
2844
- "type": "BentoPopoverPositions | `${BentoPopoverPositions}`"
2788
+ "type": "union"
2845
2789
  },
2846
2790
  "default": "'bottom-start'"
2847
2791
  }
@@ -4002,19 +3946,21 @@
4002
3946
  },
4003
3947
  {
4004
3948
  "name": "copy",
4005
- "description": "An internal button component that copies text to the user's clipboard.",
3949
+ "description": "",
4006
3950
  "attributes": [
4007
3951
  {
4008
3952
  "name": "button",
3953
+ "required": false,
4009
3954
  "description": "Object containing props to change the menu button appearance. Accepts the same props present in BentoButton.",
4010
3955
  "value": {
4011
3956
  "kind": "expression",
4012
3957
  "type": "BentoCopyButtonProps"
4013
3958
  },
4014
- "default": "() =>\n ({\n variant: 'tertiary',\n } as BentoCopyButtonProps)"
3959
+ "default": "() => (({\n variant: 'tertiary'\n}) as BentoCopyButtonProps)"
4015
3960
  },
4016
3961
  {
4017
3962
  "name": "buttonText",
3963
+ "required": false,
4018
3964
  "description": "Sets the button text of the copy button.",
4019
3965
  "value": {
4020
3966
  "kind": "expression",
@@ -4033,6 +3979,7 @@
4033
3979
  },
4034
3980
  {
4035
3981
  "name": "tooltipPosition",
3982
+ "required": false,
4036
3983
  "description": "Position the tooltip should take if space is available. Defaults to 'top'",
4037
3984
  "value": {
4038
3985
  "kind": "expression",
@@ -4041,6 +3988,12 @@
4041
3988
  "default": "PopperContainerPosition.TOP"
4042
3989
  }
4043
3990
  ],
3991
+ "events": [
3992
+ {
3993
+ "name": "click",
3994
+ "description": "Emitted when the copy button is clicked."
3995
+ }
3996
+ ],
4044
3997
  "slots": [
4045
3998
  {
4046
3999
  "name": "default"
@@ -4330,7 +4283,7 @@
4330
4283
  },
4331
4284
  {
4332
4285
  "name": "fitContent",
4333
- "description": "Allows the grid to be rendered inside a confined space.",
4286
+ "description": "Allows the grid to be rendered inside a confined space.\nThis makes the data-grid expand to fill the height of its parent container, with the grid body becoming scrollable.",
4334
4287
  "value": {
4335
4288
  "kind": "expression",
4336
4289
  "type": "boolean"
@@ -5067,6 +5020,30 @@
5067
5020
  "symbol": "default"
5068
5021
  }
5069
5022
  },
5023
+ {
5024
+ "name": "data-grid-fit-content-in-card-example",
5025
+ "description": "",
5026
+ "source": {
5027
+ "module": "./src/components/data-grid/__tests__/data-grid-fit-content-in-card-example.vue",
5028
+ "symbol": "default"
5029
+ }
5030
+ },
5031
+ {
5032
+ "name": "data-grid-fit-content-in-modal-example",
5033
+ "description": "",
5034
+ "source": {
5035
+ "module": "./src/components/data-grid/__tests__/data-grid-fit-content-in-modal-example.vue",
5036
+ "symbol": "default"
5037
+ }
5038
+ },
5039
+ {
5040
+ "name": "data-grid-fit-content-in-modal-fullscreen-example",
5041
+ "description": "",
5042
+ "source": {
5043
+ "module": "./src/components/data-grid/__tests__/data-grid-fit-content-in-modal-fullscreen-example.vue",
5044
+ "symbol": "default"
5045
+ }
5046
+ },
5070
5047
  {
5071
5048
  "name": "data-grid-interactive-elements-in-cells-and-headers",
5072
5049
  "description": "",
@@ -5517,6 +5494,46 @@
5517
5494
  "symbol": "default"
5518
5495
  }
5519
5496
  },
5497
+ {
5498
+ "name": "date",
5499
+ "description": "",
5500
+ "attributes": [
5501
+ {
5502
+ "name": "date",
5503
+ "required": false,
5504
+ "description": "The date to format. The data can be supplied as:\n- a Date object.\n- a number of milliseconds elapsed since the epoch.\n- a date string e.g. '2023-07-31T10:55:22+02:00'.",
5505
+ "value": {
5506
+ "kind": "expression",
5507
+ "type": "union"
5508
+ },
5509
+ "default": "null"
5510
+ },
5511
+ {
5512
+ "name": "format",
5513
+ "required": false,
5514
+ "description": "The string format of the date to be displayed",
5515
+ "value": {
5516
+ "kind": "expression",
5517
+ "type": "union"
5518
+ },
5519
+ "default": "BentoDateFormat.FULL_DATE_EXACT_TIME_WITHOUT_PERIOD"
5520
+ },
5521
+ {
5522
+ "name": "disableTypography",
5523
+ "required": false,
5524
+ "description": "Disable the default typography for the component. Only use this when the component is inside another typography",
5525
+ "value": {
5526
+ "kind": "expression",
5527
+ "type": "boolean"
5528
+ },
5529
+ "default": "false"
5530
+ }
5531
+ ],
5532
+ "source": {
5533
+ "module": "./src/components/date/date.vue",
5534
+ "symbol": "default"
5535
+ }
5536
+ },
5520
5537
  {
5521
5538
  "name": "date-range-picker-calendar",
5522
5539
  "description": "Calendar for range dates. Contains the logic to handle the range forms.",
@@ -8148,6 +8165,16 @@
8148
8165
  "kind": "expression",
8149
8166
  "type": "union"
8150
8167
  }
8168
+ },
8169
+ {
8170
+ "name": "disableCustomization",
8171
+ "required": false,
8172
+ "description": "Boolean indicating whether icon and icon selection is allowed on view creation and edit.",
8173
+ "value": {
8174
+ "kind": "expression",
8175
+ "type": "boolean"
8176
+ },
8177
+ "default": "false"
8151
8178
  }
8152
8179
  ],
8153
8180
  "events": [
@@ -8324,6 +8351,15 @@
8324
8351
  "kind": "expression",
8325
8352
  "type": "union"
8326
8353
  }
8354
+ },
8355
+ {
8356
+ "name": "disableCustomization",
8357
+ "required": false,
8358
+ "description": "Boolean indicating whether icon and icon selection is allowed on view creation and edit.",
8359
+ "value": {
8360
+ "kind": "expression",
8361
+ "type": "boolean"
8362
+ }
8327
8363
  }
8328
8364
  ],
8329
8365
  "events": [
@@ -8391,6 +8427,15 @@
8391
8427
  },
8392
8428
  "default": "HeaderWithViewsEditFormContextEnum.CREATE"
8393
8429
  },
8430
+ {
8431
+ "name": "disableCustomization",
8432
+ "required": false,
8433
+ "value": {
8434
+ "kind": "expression",
8435
+ "type": "boolean"
8436
+ },
8437
+ "default": "false"
8438
+ },
8394
8439
  {
8395
8440
  "name": "errors",
8396
8441
  "required": false,
@@ -8515,6 +8560,41 @@
8515
8560
  "symbol": "default"
8516
8561
  }
8517
8562
  },
8563
+ {
8564
+ "name": "info-icon",
8565
+ "description": "",
8566
+ "attributes": [
8567
+ {
8568
+ "name": "tooltipText",
8569
+ "required": true,
8570
+ "description": "Text showed in the info-icon tooltip on hover",
8571
+ "value": {
8572
+ "kind": "expression",
8573
+ "type": "string"
8574
+ }
8575
+ },
8576
+ {
8577
+ "name": "tooltipPosition",
8578
+ "required": false,
8579
+ "description": "Position the tooltip should take if space is available. Defaults to 'auto'",
8580
+ "value": {
8581
+ "kind": "expression",
8582
+ "type": "union"
8583
+ },
8584
+ "default": "PopperContainerPosition.AUTO"
8585
+ }
8586
+ ],
8587
+ "events": [
8588
+ {
8589
+ "name": "mouseenter",
8590
+ "description": "Emitted when the mouse pointer enters the component."
8591
+ }
8592
+ ],
8593
+ "source": {
8594
+ "module": "./src/components/info-icon/info-icon.vue",
8595
+ "symbol": "default"
8596
+ }
8597
+ },
8518
8598
  {
8519
8599
  "name": "info-icon-with-popover",
8520
8600
  "description": "",
@@ -8595,7 +8675,7 @@
8595
8675
  {
8596
8676
  "name": "dropdown",
8597
8677
  "required": false,
8598
- "description": "Dropdown props for the small selectable dropdown menu.\nProperties supported:\n\n - `value`: Selected value of the dropdown\n - `items`: List of available items\n - `aria-label`: Text that labels the dropdown element",
8678
+ "description": "Dropdown props for the small selectable dropdown menu.\nProperties supported:\n\n - `aria-label`: Text that labels the dropdown element\n - `dynamicFiltering`: Enables dynamic filtering\n - `items`: List of available items\n - `readonly`: Sets the dropdown in read-only mode\n - `value`: Selected value of the dropdown",
8599
8679
  "value": {
8600
8680
  "kind": "expression",
8601
8681
  "type": "BentoInputDropdownProps"
@@ -8823,6 +8903,16 @@
8823
8903
  },
8824
8904
  "default": "false"
8825
8905
  },
8906
+ {
8907
+ "name": "debounceTime",
8908
+ "required": false,
8909
+ "description": "The debounce time in milliseconds for running validation and emitting the `input` event after the user has stopped typing.\nThis helps to avoid excessive validation checks on every keystroke. Defaults to `500`.",
8910
+ "value": {
8911
+ "kind": "expression",
8912
+ "type": "number"
8913
+ },
8914
+ "default": "DEBOUNCE_DURATION"
8915
+ },
8826
8916
  {
8827
8917
  "name": "disabled",
8828
8918
  "required": false,
@@ -9718,6 +9808,15 @@
9718
9808
  "type": "boolean"
9719
9809
  },
9720
9810
  "default": "false"
9811
+ },
9812
+ {
9813
+ "name": "itemsIndex",
9814
+ "description": "Object with the index of each item.",
9815
+ "value": {
9816
+ "kind": "expression",
9817
+ "type": "Record<string, number>"
9818
+ },
9819
+ "default": "() => ({})"
9721
9820
  }
9722
9821
  ],
9723
9822
  "events": [
@@ -13714,6 +13813,16 @@
13714
13813
  "default": "'custom'"
13715
13814
  }
13716
13815
  ],
13816
+ "events": [
13817
+ {
13818
+ "name": "copy-click",
13819
+ "description": "Emitted when the copy button is clicked."
13820
+ },
13821
+ {
13822
+ "name": "info-icon-mouseenter",
13823
+ "description": "Emitted when the mouse pointer enters the info icon component."
13824
+ }
13825
+ ],
13717
13826
  "slots": [
13718
13827
  {
13719
13828
  "name": "dashed-underline"
@@ -13873,6 +13982,16 @@
13873
13982
  "default": "null"
13874
13983
  }
13875
13984
  ],
13985
+ "events": [
13986
+ {
13987
+ "name": "copy-click",
13988
+ "description": "Emitted when the copy button is clicked."
13989
+ },
13990
+ {
13991
+ "name": "info-icon-mouseenter",
13992
+ "description": "Emitted when the mouse pointer enters the info icon component."
13993
+ }
13994
+ ],
13876
13995
  "slots": [
13877
13996
  {
13878
13997
  "name": "dashed-underline"
@@ -13947,6 +14066,16 @@
13947
14066
  "default": "null"
13948
14067
  }
13949
14068
  ],
14069
+ "events": [
14070
+ {
14071
+ "name": "copy-click",
14072
+ "description": "Emitted when the copy button is clicked."
14073
+ },
14074
+ {
14075
+ "name": "info-icon-mouseenter",
14076
+ "description": "Emitted when the mouse pointer enters the info icon component."
14077
+ }
14078
+ ],
13950
14079
  "slots": [
13951
14080
  {
13952
14081
  "name": "dashed-underline"
@@ -14093,6 +14222,16 @@
14093
14222
  "default": "null"
14094
14223
  }
14095
14224
  ],
14225
+ "events": [
14226
+ {
14227
+ "name": "copy-click",
14228
+ "description": "Emitted when the copy button is clicked."
14229
+ },
14230
+ {
14231
+ "name": "info-icon-mouseenter",
14232
+ "description": "Emitted when the mouse pointer enters the info icon component."
14233
+ }
14234
+ ],
14096
14235
  "slots": [
14097
14236
  {
14098
14237
  "name": "dashed-underline"
@@ -14222,7 +14361,7 @@
14222
14361
  "description": "Amount to be shown as the main value",
14223
14362
  "value": {
14224
14363
  "kind": "expression",
14225
- "type": "string"
14364
+ "type": "union"
14226
14365
  }
14227
14366
  },
14228
14367
  {
@@ -14231,11 +14370,21 @@
14231
14370
  "description": "Amount to be shown as the secondary metric value",
14232
14371
  "value": {
14233
14372
  "kind": "expression",
14234
- "type": "string"
14373
+ "type": "union"
14235
14374
  },
14236
14375
  "default": "null"
14237
14376
  }
14238
14377
  ],
14378
+ "events": [
14379
+ {
14380
+ "name": "copy-click",
14381
+ "description": "Emitted when the copy button is clicked."
14382
+ },
14383
+ {
14384
+ "name": "info-icon-mouseenter",
14385
+ "description": "Emitted when the mouse pointer enters the info icon component."
14386
+ }
14387
+ ],
14239
14388
  "slots": [
14240
14389
  {
14241
14390
  "name": "dashed-underline"
@@ -14319,6 +14468,16 @@
14319
14468
  "default": "null"
14320
14469
  }
14321
14470
  ],
14471
+ "events": [
14472
+ {
14473
+ "name": "copy-click",
14474
+ "description": "Emitted when the copy button is clicked."
14475
+ },
14476
+ {
14477
+ "name": "info-icon-mouseenter",
14478
+ "description": "Emitted when the mouse pointer enters the info icon component."
14479
+ }
14480
+ ],
14322
14481
  "slots": [
14323
14482
  {
14324
14483
  "name": "dashed-underline"
@@ -14335,6 +14494,7 @@
14335
14494
  "attributes": [
14336
14495
  {
14337
14496
  "name": "counter",
14497
+ "required": false,
14338
14498
  "description": "Displays a counter next to the tab title",
14339
14499
  "value": {
14340
14500
  "kind": "expression",
@@ -14343,25 +14503,37 @@
14343
14503
  "default": "null"
14344
14504
  },
14345
14505
  {
14346
- "name": "title",
14347
- "required": true,
14348
- "description": "Title of the tab",
14506
+ "name": "disabled",
14507
+ "required": false,
14508
+ "description": "Determines whether the tab is disabled",
14349
14509
  "value": {
14350
14510
  "kind": "expression",
14351
- "type": "string"
14352
- }
14511
+ "type": "boolean"
14512
+ },
14513
+ "default": "false"
14353
14514
  },
14354
14515
  {
14355
- "name": "disabled",
14356
- "description": "Determines whether the tab is disabled",
14516
+ "name": "hidden",
14517
+ "required": false,
14518
+ "description": "Prevents a tab from being displayed.\nUse `hidden` instead of `v-show`.",
14357
14519
  "value": {
14358
14520
  "kind": "expression",
14359
14521
  "type": "boolean"
14360
14522
  },
14361
14523
  "default": "false"
14362
14524
  },
14525
+ {
14526
+ "name": "title",
14527
+ "required": true,
14528
+ "description": "Title of the tab",
14529
+ "value": {
14530
+ "kind": "expression",
14531
+ "type": "string"
14532
+ }
14533
+ },
14363
14534
  {
14364
14535
  "name": "withNotificationIndicator",
14536
+ "required": false,
14365
14537
  "description": "Displays the tab with a notification indicator",
14366
14538
  "value": {
14367
14539
  "kind": "expression",
@@ -14439,6 +14611,14 @@
14439
14611
  "symbol": "default"
14440
14612
  }
14441
14613
  },
14614
+ {
14615
+ "name": "tabs-hidden",
14616
+ "description": "",
14617
+ "source": {
14618
+ "module": "./src/components/tabs/__tests__/tabs-hidden.vue",
14619
+ "symbol": "default"
14620
+ }
14621
+ },
14442
14622
  {
14443
14623
  "name": "tabs-stub",
14444
14624
  "description": "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/bento-vue2",
3
- "version": "1.65.0",
3
+ "version": "1.67.0",
4
4
  "description": "Adyen Bento Vue2 components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -46,7 +46,7 @@
46
46
  "unified": "11.0.5",
47
47
  "uuid": "11.0.5",
48
48
  "vue-demi": "0.14.10",
49
- "@adyen/bento-design-tokens": "1.65.0"
49
+ "@adyen/bento-design-tokens": "1.67.0"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "vue": "~2.7",
@@ -137,11 +137,11 @@
137
137
  "vue-style-loader": "4.1.3",
138
138
  "vue-template-compiler": "2.7.16",
139
139
  "vue-tsc": "1.0.24",
140
+ "@adyen/bento-cli": "0.5.1",
140
141
  "@adyen/bento-core": "0.0.1",
141
- "@adyen/bento-tailwind": "0.5.0",
142
- "@adyen/bento-cli": "0.5.0",
143
- "@adyen/ui-assets-icons-16": "6.5.0",
144
- "@adyen/ui-assets-payment-method-icons": "10.1.0"
142
+ "@adyen/bento-tailwind": "0.5.1",
143
+ "@adyen/ui-assets-icons-16": "6.5.2",
144
+ "@adyen/ui-assets-payment-method-icons": "10.1.2"
145
145
  },
146
146
  "optionalDependencies": {
147
147
  "vue-router": "~3.6"
@@ -1 +0,0 @@
1
- .b-tab[data-v-0e7e8dbe]{scrollbar-color:var(--b-color-background-quaternary) transparent;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.b-tab[data-v-0e7e8dbe],.b-tab[data-v-0e7e8dbe]:before,.b-tab[data-v-0e7e8dbe]:after{box-sizing:border-box}.b-tab *[data-v-0e7e8dbe],.b-tab *[data-v-0e7e8dbe]:before,.b-tab *[data-v-0e7e8dbe]:after{box-sizing:border-box}.b-tab[data-v-0e7e8dbe] ::-webkit-scrollbar{height:14px;width:14px}.b-tab[data-v-0e7e8dbe] ::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:var(--b-color-background-quaternary);border:3px solid transparent;border-radius:var(--b-border-radius-l)}.b-tabs[data-v-84b35ecb]{scrollbar-color:var(--b-color-background-quaternary) transparent;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:var(--b-tabs-background-color)}.b-tabs[data-v-84b35ecb],.b-tabs[data-v-84b35ecb]:before,.b-tabs[data-v-84b35ecb]:after{box-sizing:border-box}.b-tabs *[data-v-84b35ecb],.b-tabs *[data-v-84b35ecb]:before,.b-tabs *[data-v-84b35ecb]:after{box-sizing:border-box}.b-tabs[data-v-84b35ecb] ::-webkit-scrollbar{height:14px;width:14px}.b-tabs[data-v-84b35ecb] ::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:var(--b-color-background-quaternary);border:3px solid transparent;border-radius:var(--b-border-radius-l)}.b-tabs button[data-v-84b35ecb]{background-color:transparent;border:0;font:inherit;text-align:inherit}.b-tabs button[data-v-84b35ecb]:focus-visible{outline:none}.b-tabs__tab-list[data-v-84b35ecb]{display:flex;gap:var(--b-tabs-tab-list-gap);height:var(--b-tabs-tab-list-height)}.b-tabs__tab-list-wrapper--sticky[data-v-84b35ecb]{background-color:var(--b-tabs-background-color);padding-top:var(--b-tabs-sticky-padding-top);position:sticky;z-index:var(--b-tabs-sticky-z-index)}.b-tabs__tab-list-wrapper--pinned[data-v-84b35ecb]:after{background-color:var(--b-tabs-background-color);border-bottom:var(--b-tabs-sticky-border-bottom);bottom:-4px;content:"";display:block;height:4px;left:-50vw;position:absolute;width:150vw}.b-tabs__tab[data-v-84b35ecb]{align-items:center;cursor:pointer;display:flex;flex-direction:column;height:100%;justify-content:space-between;padding:0}.b-tabs__tab--disabled>*[data-v-84b35ecb]{cursor:not-allowed}@media (hover: hover){.b-tabs__tab:not(.b-tabs__tab--disabled):hover .b-tabs__tab-title[data-v-84b35ecb]{color:var(--b-tabs-tab-title-hover-color)}.b-tabs__tab:not(.b-tabs__tab--disabled):hover .b-tabs__tab-counter[data-v-84b35ecb]{color:var(--b-tabs-counter-hover-color)}}.b-tabs__tab-text[data-v-84b35ecb]{align-items:center;border-radius:var(--b-tabs-tab-text-border-radius);display:flex;height:var(--b-tabs-tab-text-height)}.b-tabs__tab:focus-visible .b-tabs__tab-text[data-v-84b35ecb]{animation:outer-ring-default-84b35ecb var(--b-animation-duration-fast) var(--b-animation-easing-standard);box-shadow:0 0 0 var(--b-focus-ring-spacer) var(--b-color-background-primary),0 0 0 var(--b-focus-ring-outline) var(--b-focus-ring-color)}@keyframes outer-ring-default-84b35ecb{0%{box-shadow:0 0 0 var(--b-border-width-s) var(--b-color-background-primary),0 0 0 0 var(--b-focus-ring-color)}to{box-shadow:0 0 0 var(--b-border-width-s) var(--b-color-background-primary),0 0 0 var(--b-border-width-l) var(--b-focus-ring-color)}}.b-tabs__tab-title[data-v-84b35ecb]{color:var(--b-tabs-tab-title-color);white-space:nowrap}.b-legacy-theme .b-tabs__tab-title[data-v-84b35ecb]{font-size:15px;font-weight:400}.b-tabs__tab--disabled .b-tabs__tab-title[data-v-84b35ecb]{color:var(--b-tabs-tab-title-disabled-color);cursor:not-allowed}.b-tabs__tab--active .b-tabs__tab-title[data-v-84b35ecb]{color:var(--b-tabs-tab-title-active-color)}.b-tabs__tab-underline[data-v-84b35ecb]{background-color:var(--b-tabs-tab-underline-color);display:block;width:var(--b-tabs-tab-underline-width)}.b-tabs__tab--active .b-tabs__tab-underline[data-v-84b35ecb]{height:var(--b-tabs-tab-underline-height-active)}.b-tabs__tab-counter[data-v-84b35ecb]{background-color:var(--b-tabs-counter-background-color);border-radius:var(--b-tabs-counter-border-radius);color:var(--b-tabs-counter-color);flex-shrink:0;margin-left:var(--b-tabs-counter-margin-left);padding:var(--b-tabs-counter-padding)}.b-tabs__tab-counter--active[data-v-84b35ecb]{color:var(--b-tabs-counter-active-color)}.b-tabs__tab--disabled .b-tabs__tab-counter[data-v-84b35ecb]{color:var(--b-tabs-counter-disabled-color);cursor:not-allowed}.b-tabs__tab-notification-dot[data-v-84b35ecb]{background-color:var(--b-tabs-notification-dot-background-color);border-radius:50%;flex-shrink:0;height:var(--b-tabs-notification-dot-height);margin-left:var(--b-tabs-notification-dot-margin-left);width:var(--b-tabs-notification-dot-width)}
@@ -1 +0,0 @@
1
- {"version":3,"file":"action-bar.DHdrZtmW.js","sources":["../../src/components/action-bar/action-bar.vue"],"sourcesContent":["<template>\n <Transition name=\"b-action-bar__animation\" appear>\n <section class=\"b-action-bar\" :class=\"conditionalClasses\" :aria-label=\"t('actionBar')\">\n <div ref=\"actionBar\" class=\"b-action-bar__container\">\n <div v-if=\"!isConfirmationVariant\" class=\"b-action-bar__close-button\">\n <bento-button variant=\"tertiary\" inverse :aria-label=\"t('close')\" @click=\"emit('close')\">\n <template #iconLeft><cross-icon :aria-hidden=\"true\" /></template>\n </bento-button>\n </div>\n <bento-typography el=\"span\" stronger class=\"b-action-bar__selection\">\n {{ itemCounter }} {{ isConfirmationVariant ? tc('unsavedChanges', itemCounter) : label }}\n </bento-typography>\n <bento-button-actions\n v-if=\"isConfirmationVariant\"\n :actions=\"confirmationActions\"\n class=\"b-action-bar__actions\"\n inverse\n />\n <button-actions-with-menu\n v-else\n :actions=\"actionsInternal\"\n class=\"b-action-bar__actions\"\n :displayed-actions=\"internalDisplayedActions\"\n menu-position=\"top-end\"\n disable-responsive-behavior\n inverse\n />\n </div>\n </section>\n </Transition>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, nextTick, PropType, provide, ref, toRefs, watch } from 'vue';\n import { BentoButton, BentoButtonActions, BentoButtonActionsList } from '@/components/button';\n import { BentoTypography } from '@/components/typography';\n\n import { type BentoActionBarVariant } from '@/components/action-bar/action-bar.types';\n import ButtonActionsWithMenu from '@/components/internal/button-actions-with-menu/button-actions-with-menu.vue';\n import CrossIcon from '@adyen/ui-assets-icons-16/vue/cross';\n\n import { useI18n } from '@/utils/ts/i18n';\n import { useWindowSize } from '@vueuse/core';\n\n import messages from './messages.json';\n import { POPOVER_OFFSET_INJECTION_KEY } from '@/components/popover/popover.keys';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n // Constants\n const AVERAGE_BUTTON_SIZE = 100;\n const MENU_OFFSET = 7;\n const RESPONSIVE_BREAKPOINT = 500;\n const SPACING = 32;\n\n const props = defineProps({\n /**\n * List of actions that will be used to render the buttons.\n * Required and used for the `default` variant.\n *\n * Each object in the list should have a `title`, an `event` and,\n * optionally, an `icon`.\n *\n * The component will display 4 actions and the hide the rest inside a menu.\n *\n * @see BentoButton for a list of all the other props supported by each button action.\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n default: () => [],\n },\n /**\n * How many actions should be visible outside the menu, cannot be more than 4\n */\n visibleActions: {\n type: Number,\n default: 4,\n validator: (value: number) => value > 0 && value <= 4,\n },\n /**\n * Use when there are sticky elements at the bottom, like sticky pagination\n */\n extraBottomSpacing: {\n type: Boolean,\n default: false,\n },\n /**\n * Show how many items are selected\n */\n itemCounter: {\n type: Number,\n required: true,\n },\n /**\n * Label for the selection, e.g. 'selected'/'changed'\n */\n selectionLabel: {\n type: String,\n default: null,\n },\n /**\n * Variant for the action bar\n * @values default, confirmation\n */\n variant: {\n type: String as PropType<BentoActionBarVariant>,\n default: 'default',\n },\n });\n\n const emit = defineEmits([\"close\", \"cancel\", \"save\"]);\n\n const { t, tc } = useI18n<{ message: MessageSchema }>({ messages });\n const label = computed(() => (props.selectionLabel ? props.selectionLabel : t('selected')));\n\n // Refs\n const actionBar = ref<HTMLDivElement>(null);\n const { extraBottomSpacing, visibleActions } = toRefs(props);\n const { width } = useWindowSize();\n const internalDisplayedActions = ref(null);\n const internalVisibleActions = ref(null);\n\n const isConfirmationVariant = computed(() => props.variant === 'confirmation');\n\n watch(\n () => visibleActions.value,\n value => {\n internalVisibleActions.value = value <= 4 ? value : 4;\n internalDisplayedActions.value = internalVisibleActions.value;\n },\n { immediate: true }\n );\n\n // Styling\n const conditionalClasses = computed(() => ({\n 'b-action-bar--extra-spacing': extraBottomSpacing.value,\n 'b-action-bar--confirmation': isConfirmationVariant.value,\n }));\n\n // Provide POPOVER_OFFSET_INJECTION_KEY to change the value of the popover offset\n provide(POPOVER_OFFSET_INJECTION_KEY, MENU_OFFSET);\n\n // Manipulate actions array to display as intended\n const actionsInternal = computed(() => {\n // All buttons should be of type secondary in the action bar\n const actions = props.actions.map(action => ({\n ...action,\n variant: 'secondary',\n })) as BentoButtonActionsList;\n // Shown actions should display from left to right in action bar, instead of right to left which is the button actions default\n const shownActions = actions.slice(0, internalDisplayedActions.value).reverse();\n const hiddenActions = actions.slice(internalDisplayedActions.value);\n\n return [...shownActions, ...hiddenActions];\n });\n\n const confirmationActions = computed<BentoButtonActionsList>(() => [\n {\n title: t('save'),\n event: () => emit('save'),\n },\n {\n title: t('cancel'),\n variant: 'secondary',\n event: () => emit('cancel'),\n },\n ]);\n\n // Recursive functions to determine how many actions should be visible/hidden based on the screens width\n const showActions = async () => {\n await nextTick();\n if (\n width.value > actionBar.value.clientWidth + SPACING + AVERAGE_BUTTON_SIZE &&\n internalDisplayedActions.value < internalVisibleActions.value\n ) {\n internalDisplayedActions.value += 1;\n showActions();\n }\n };\n\n const hideActions = async () => {\n await nextTick();\n if (width.value < actionBar.value.clientWidth + SPACING && internalDisplayedActions.value > 0) {\n internalDisplayedActions.value -= 1;\n hideActions();\n }\n };\n\n // Screen width watcher to toggle hidden/visible actions\n watch(\n () => width.value,\n async (newValue, oldValue) => {\n await nextTick();\n if (!actionBar.value) {\n return;\n }\n const isIncreasing = newValue > oldValue;\n if (width.value < RESPONSIVE_BREAKPOINT) {\n internalDisplayedActions.value = 0;\n } else if (isIncreasing) {\n showActions();\n } else {\n hideActions();\n }\n },\n { immediate: true }\n );\n</script>\n\n<script lang=\"ts\">\n /**\n * Action bar is a floating bar that provides users with quick access to key actions that can be applied to one or multiple items.\n *\n * @example\n * import { BentoActionBar } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoActionBar },\n * template: `\n * <bento-action-bar\n * :actions='[\n * {\n * title: 'Delete',\n * critical: true,\n * icon: BinIcon,\n * event: () => true,\n * },\n * {\n * title: 'Edit',\n * icon: EditIcon,\n * event: () => true,\n * }\n * ]'\n * @close=\"closeAction\"\n * :item-counter=\"5\"\n * />\n * `\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./action-bar.scss\" />\n"],"names":["__default__","messages","AVERAGE_BUTTON_SIZE","MENU_OFFSET","RESPONSIVE_BREAKPOINT","SPACING","t","tc","useI18n","label","computed","props","actionBar","ref","extraBottomSpacing","visibleActions","toRefs","width","useWindowSize","internalDisplayedActions","internalVisibleActions","isConfirmationVariant","watch","value","conditionalClasses","provide","POPOVER_OFFSET_INJECTION_KEY","actionsInternal","actions","action","shownActions","hiddenActions","confirmationActions","emit","showActions","nextTick","hideActions","newValue","oldValue","isIncreasing"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+OIA,IAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA/LAC,IAAA,KACAC,IAAA,GACAC,IAAA,KACAC,IAAA,IA2DA,EAAA,GAAAC,GAAA,IAAAC,EAAA,IAAAC,EAAA,GACAC,IAAAC,EAAA,MAAAC,EAAA,iBAAAA,EAAA,iBAAAL,EAAA,UAAA,CAAA,GAGAM,IAAAC,EAAA,IAAA,GACA,EAAA,oBAAAC,GAAA,gBAAAC,EAAA,IAAAC,EAAAL,CAAA,GACA,EAAA,OAAAM,EAAA,IAAAC,EAAA,GACAC,IAAAN,EAAA,IAAA,GACAO,IAAAP,EAAA,IAAA,GAEAQ,IAAAX,EAAA,MAAAC,EAAA,YAAA,cAAA;AAEA,IAAAW;AAAA,MAAA,MAAAP,EAAA;AAAA,MACyB,CAAAQ,MAAA;AAEjB,QAAAH,EAAA,QAAAG,KAAA,IAAAA,IAAA,GACAJ,EAAA,QAAAC,EAAA;AAAA,MAAwD;AAAA,MAC5D,EAAA,WAAA,GAAA;AAAA,IACkB;AAItB,UAAAI,IAAAd,EAAA,OAAA;AAAA,MAA2C,+BAAAI,EAAA;AAAA,MACW,8BAAAO,EAAA;AAAA,IACE,EAAA;AAIxD,IAAAI,EAAAC,GAAAvB,CAAA;AAGA,UAAAwB,IAAAjB,EAAA,MAAA;AAEI,YAAAkB,IAAAjB,EAAA,QAAA,IAAA,CAAAkB,OAAA;AAAA,QAA6C,GAAAA;AAAA,QACtC,SAAA;AAAA,MACM,EAAA,GAGbC,IAAAF,EAAA,MAAA,GAAAT,EAAA,KAAA,EAAA,QAAA,GACAY,IAAAH,EAAA,MAAAT,EAAA,KAAA;AAEA,aAAA,CAAA,GAAAW,GAAA,GAAAC,CAAA;AAAA,IAAyC,CAAA,GAG7CC,IAAAtB,EAAA,MAAA;AAAA,MAAmE;AAAA,QAC/D,OAAAJ,EAAA,MAAA;AAAA,QACmB,OAAA,MAAA2B,EAAA,MAAA;AAAA,MACS;AAAA,MAC5B;AAAA,QACA,OAAA3B,EAAA,QAAA;AAAA,QACqB,SAAA;AAAA,QACR,OAAA,MAAA2B,EAAA,QAAA;AAAA,MACiB;AAAA,IAC9B,CAAA,GAIJC,IAAA,YAAA;AACI,YAAAC,EAAA,GACAlB,EAAA,QAAAL,EAAA,MAAA,cAAAP,IAAAH,KAAAiB,EAAA,QAAAC,EAAA,UAIID,EAAA,SAAA,GACAe,EAAA;AAAA,IACJ,GAGJE,IAAA,YAAA;AACI,YAAAD,EAAA,GACAlB,EAAA,QAAAL,EAAA,MAAA,cAAAP,KAAAc,EAAA,QAAA,MACIA,EAAA,SAAA,GACAiB,EAAA;AAAA,IACJ;AAIJ,WAAAd;AAAA,MAAA,MAAAL,EAAA;AAAA,MACgB,OAAAoB,GAAAC,MAAA;AAGR,YADA,MAAAH,EAAA,GACA,CAAAvB,EAAA;AACI;AAEJ,cAAA2B,IAAAF,IAAAC;AACA,QAAArB,EAAA,QAAAb,IACIe,EAAA,QAAA,IAAiCoB,IAEjCL,EAAA,IAEAE,EAAA;AAAA,MACJ;AAAA,MACJ,EAAA,WAAA,GAAA;AAAA,IACkB;;;;;;;;;;;;;;;;;;;"}