@adyen/bento-vue3 1.64.1 → 1.66.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 (184) hide show
  1. package/dist/@types/index.d.ts +445 -232
  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/card.css +1 -1
  8. package/dist/assets/copy.css +1 -1
  9. package/dist/assets/data-grid-template.css +1 -1
  10. package/dist/assets/data-grid.css +1 -1
  11. package/dist/assets/date.css +1 -1
  12. package/dist/assets/dialog-page.css +1 -1
  13. package/dist/assets/dropdown.css +1 -1
  14. package/dist/assets/file-uploader.css +1 -1
  15. package/dist/assets/filter-bar.css +1 -1
  16. package/dist/assets/header.css +1 -1
  17. package/dist/assets/info-icon.css +1 -1
  18. package/dist/assets/input-field-password.css +1 -1
  19. package/dist/assets/inspector.css +1 -1
  20. package/dist/assets/menu.css +1 -1
  21. package/dist/assets/modal-fullscreen.css +1 -1
  22. package/dist/assets/pagination.css +1 -1
  23. package/dist/assets/popover.css +1 -1
  24. package/dist/assets/sidepanel.css +1 -1
  25. package/dist/assets/step.css +1 -1
  26. package/dist/assets/summary-grid.css +1 -1
  27. package/dist/assets/tab.css +1 -0
  28. package/dist/assets/textarea.css +1 -1
  29. package/dist/assets/use-cached-selected-values.css +1 -1
  30. package/dist/checkbox.js +2 -2
  31. package/dist/chunks/{action-bar.BAfqAQjP.js → action-bar.OzhLTUKc.js} +38 -38
  32. package/dist/chunks/action-bar.OzhLTUKc.js.map +1 -0
  33. package/dist/chunks/button-actions-with-menu.xZYmwO7S.js +91 -0
  34. package/dist/chunks/button-actions-with-menu.xZYmwO7S.js.map +1 -0
  35. package/dist/chunks/calendar._oPk_A1C.js +2209 -0
  36. package/dist/chunks/calendar._oPk_A1C.js.map +1 -0
  37. package/dist/chunks/{checkbox-group.BZIl5tRV.js → checkbox-group.Dc5Olq0c.js} +4 -4
  38. package/dist/chunks/{checkbox-group.BZIl5tRV.js.map → checkbox-group.Dc5Olq0c.js.map} +1 -1
  39. package/dist/chunks/{checkbox.8caojfCf.js → checkbox.fkPJvdUo.js} +18 -18
  40. package/dist/chunks/{checkbox.8caojfCf.js.map → checkbox.fkPJvdUo.js.map} +1 -1
  41. package/dist/chunks/{code-snippet.iVFAaX-7.js → code-snippet.DPIhpuKa.js} +3 -3
  42. package/dist/chunks/{code-snippet.iVFAaX-7.js.map → code-snippet.DPIhpuKa.js.map} +1 -1
  43. package/dist/chunks/{controls-group.DD1m4EKn.js → controls-group.CrzkSu0U.js} +2 -2
  44. package/dist/chunks/{controls-group.DD1m4EKn.js.map → controls-group.CrzkSu0U.js.map} +1 -1
  45. package/dist/chunks/copy.RUoQOydT.js +118 -0
  46. package/dist/chunks/copy.RUoQOydT.js.map +1 -0
  47. package/dist/chunks/{dashboard-section.C6FNJuEz.js → dashboard-section.BmtN9b0B.js} +3 -3
  48. package/dist/chunks/{dashboard-section.C6FNJuEz.js.map → dashboard-section.BmtN9b0B.js.map} +1 -1
  49. package/dist/chunks/data-grid-template.DAuqLhPI.js +144 -0
  50. package/dist/chunks/data-grid-template.DAuqLhPI.js.map +1 -0
  51. package/dist/chunks/{data-grid.BpuoBniw.js → data-grid.BrYCmbPR.js} +660 -654
  52. package/dist/chunks/{data-grid.BpuoBniw.js.map → data-grid.BrYCmbPR.js.map} +1 -1
  53. package/dist/chunks/{date-picker.CRZaa2pG.js → date-picker.Bk4FNLyR.js} +22 -23
  54. package/dist/chunks/{date-picker.CRZaa2pG.js.map → date-picker.Bk4FNLyR.js.map} +1 -1
  55. package/dist/chunks/{date-range-picker.Wd3Wj2xh.js → date-range-picker.-YsRuGmp.js} +22 -23
  56. package/dist/chunks/{date-range-picker.Wd3Wj2xh.js.map → date-range-picker.-YsRuGmp.js.map} +1 -1
  57. package/dist/chunks/date.DSjCnSgL.js +163 -0
  58. package/dist/chunks/date.DSjCnSgL.js.map +1 -0
  59. package/dist/chunks/{dropdown-tag.C8iqeoRx.js → dropdown-tag.BUDNO3d0.js} +2 -2
  60. package/dist/chunks/{dropdown-tag.C8iqeoRx.js.map → dropdown-tag.BUDNO3d0.js.map} +1 -1
  61. package/dist/chunks/{dropdown.UapzImAi.js → dropdown.usAqDecC.js} +329 -323
  62. package/dist/chunks/dropdown.usAqDecC.js.map +1 -0
  63. package/dist/chunks/{error-message.DZWphzoT.js → error-message.DHMHq9bR.js} +2 -2
  64. package/dist/chunks/{error-message.DZWphzoT.js.map → error-message.DHMHq9bR.js.map} +1 -1
  65. package/dist/chunks/es6.n1ewaW31.js.map +1 -1
  66. package/dist/chunks/{file-uploader.C8DwUCMp.js → file-uploader.B_EI2fAc.js} +523 -523
  67. package/dist/chunks/file-uploader.B_EI2fAc.js.map +1 -0
  68. package/dist/chunks/{filter-bar.n8rNb16m.js → filter-bar.BxfaFHTk.js} +1004 -989
  69. package/dist/chunks/{filter-bar.n8rNb16m.js.map → filter-bar.BxfaFHTk.js.map} +1 -1
  70. package/dist/chunks/{get-date-locale.BN8xEjY0.js → get-date-locale.CAyOIbcp.js} +288 -649
  71. package/dist/chunks/get-date-locale.CAyOIbcp.js.map +1 -0
  72. package/dist/chunks/{header-with-views.CAPWxTOO.js → header-with-views.COrWDbtU.js} +16 -16
  73. package/dist/chunks/{header-with-views.CAPWxTOO.js.map → header-with-views.COrWDbtU.js.map} +1 -1
  74. package/dist/chunks/{header.Ckjp7n9t.js → header.DAEUKoX5.js} +62 -61
  75. package/dist/chunks/{header.Ckjp7n9t.js.map → header.DAEUKoX5.js.map} +1 -1
  76. package/dist/chunks/index.BrH1t1iu.js +407 -0
  77. package/dist/chunks/index.BrH1t1iu.js.map +1 -0
  78. package/dist/chunks/info-icon.DprUQ9fj.js +36 -0
  79. package/dist/chunks/info-icon.DprUQ9fj.js.map +1 -0
  80. package/dist/chunks/input-field-password.XrXAnMpT.js +369 -0
  81. package/dist/chunks/input-field-password.XrXAnMpT.js.map +1 -0
  82. package/dist/chunks/{input-field-phone-number.BcuBaX7v.js → input-field-phone-number.CNurVdiF.js} +3 -3
  83. package/dist/chunks/{input-field-phone-number.BcuBaX7v.js.map → input-field-phone-number.CNurVdiF.js.map} +1 -1
  84. package/dist/chunks/{input-field.DyLJYbGL.js → input-field.EOIwm2tq.js} +3 -3
  85. package/dist/chunks/{input-field.DyLJYbGL.js.map → input-field.EOIwm2tq.js.map} +1 -1
  86. package/dist/chunks/{pagination.i2eNp6n4.js → pagination._rYMF2W_.js} +168 -168
  87. package/dist/chunks/pagination._rYMF2W_.js.map +1 -0
  88. package/dist/chunks/{radio-group.435rdgzm.js → radio-group.H9A5QcNu.js} +3 -3
  89. package/dist/chunks/{radio-group.435rdgzm.js.map → radio-group.H9A5QcNu.js.map} +1 -1
  90. package/dist/chunks/{rich-text-editor.CE7kjKfA.js → rich-text-editor.RD8aCPTi.js} +3 -3
  91. package/dist/chunks/{rich-text-editor.CE7kjKfA.js.map → rich-text-editor.RD8aCPTi.js.map} +1 -1
  92. package/dist/chunks/{search-bar.g_dBJXfU.js → search-bar.i7BY4IGB.js} +3 -3
  93. package/dist/chunks/{search-bar.g_dBJXfU.js.map → search-bar.i7BY4IGB.js.map} +1 -1
  94. package/dist/chunks/{secondary-nav.Dy9Abrau.js → secondary-nav.DkRQsIx7.js} +2 -2
  95. package/dist/chunks/{secondary-nav.Dy9Abrau.js.map → secondary-nav.DkRQsIx7.js.map} +1 -1
  96. package/dist/chunks/{selection-card-group.TPoxTPl3.js → selection-card-group.B4xpnd-z.js} +11 -11
  97. package/dist/chunks/{selection-card-group.TPoxTPl3.js.map → selection-card-group.B4xpnd-z.js.map} +1 -1
  98. package/dist/chunks/step.BtNhPZAf.js +268 -0
  99. package/dist/chunks/step.BtNhPZAf.js.map +1 -0
  100. package/dist/chunks/{structured-list-item.DQzxNb_M.js → structured-list-item.BQbEDKhg.js} +3 -3
  101. package/dist/chunks/{structured-list-item.DQzxNb_M.js.map → structured-list-item.BQbEDKhg.js.map} +1 -1
  102. package/dist/chunks/summary-grid.types.BTr6x5cg.js +490 -0
  103. package/dist/chunks/summary-grid.types.BTr6x5cg.js.map +1 -0
  104. package/dist/chunks/tab.CAt51ksU.js +252 -0
  105. package/dist/chunks/tab.CAt51ksU.js.map +1 -0
  106. package/dist/chunks/{tabs.keys.Bc2pSKRw.js → tabs.keys.Cb4Vw5Jh.js} +3 -3
  107. package/dist/chunks/{tabs.keys.Bc2pSKRw.js.map → tabs.keys.Cb4Vw5Jh.js.map} +1 -1
  108. package/dist/chunks/{textarea.CV1HjB0x.js → textarea.DXSe9MHH.js} +83 -80
  109. package/dist/chunks/textarea.DXSe9MHH.js.map +1 -0
  110. package/dist/chunks/{timeline-item.DUp8MmgZ.js → timeline-item.Coz_LRD3.js} +10 -11
  111. package/dist/chunks/timeline-item.Coz_LRD3.js.map +1 -0
  112. package/dist/chunks/use-cached-selected-values.rqtiP4Nd.js +1649 -0
  113. package/dist/chunks/use-cached-selected-values.rqtiP4Nd.js.map +1 -0
  114. package/dist/code-snippet.js +1 -1
  115. package/dist/dashboard-template.js +1 -1
  116. package/dist/data-grid-template.js +1 -1
  117. package/dist/data-grid.js +1 -1
  118. package/dist/date-picker.js +2 -2
  119. package/dist/date-range-picker.js +2 -2
  120. package/dist/date.js +1 -1
  121. package/dist/dropdown.js +3 -3
  122. package/dist/file-uploader.js +1 -1
  123. package/dist/filter-bar.js +1 -1
  124. package/dist/header-with-views.js +1 -1
  125. package/dist/header.js +1 -1
  126. package/dist/index.js +34 -34
  127. package/dist/info-icon.js +1 -1
  128. package/dist/input-field-password.js +1 -1
  129. package/dist/input-field-phone-number.js +1 -1
  130. package/dist/input-field.js +1 -1
  131. package/dist/internal.js +6 -6
  132. package/dist/pagination.js +1 -1
  133. package/dist/radio-group.js +1 -1
  134. package/dist/rich-text-editor.js +1 -1
  135. package/dist/search-bar.js +2 -2
  136. package/dist/secondary-nav.js +1 -1
  137. package/dist/selection-card.js +1 -1
  138. package/dist/stepper.js +1 -1
  139. package/dist/structured-list.js +1 -1
  140. package/dist/styles/bento-dark.css +1 -0
  141. package/dist/styles/bento-light.css +1 -0
  142. package/dist/styles/bento.css +1 -0
  143. package/dist/styles/legacy.css +1 -0
  144. package/dist/styles/styleguide.css +1 -0
  145. package/dist/summary-grid.js +1 -1
  146. package/dist/tabs.js +1 -1
  147. package/dist/textarea.js +1 -1
  148. package/dist/timeline.js +1 -1
  149. package/dist/web-types.json +1 -1
  150. package/package.json +6 -6
  151. package/dist/assets/tabs.css +0 -1
  152. package/dist/chunks/action-bar.BAfqAQjP.js.map +0 -1
  153. package/dist/chunks/button-actions-with-menu.D50ABuSV.js +0 -174
  154. package/dist/chunks/button-actions-with-menu.D50ABuSV.js.map +0 -1
  155. package/dist/chunks/calendar.CLpwW_-k.js +0 -1290
  156. package/dist/chunks/calendar.CLpwW_-k.js.map +0 -1
  157. package/dist/chunks/copy.DqckFHHS.js +0 -156
  158. package/dist/chunks/copy.DqckFHHS.js.map +0 -1
  159. package/dist/chunks/data-grid-template.DzIpssxc.js +0 -143
  160. package/dist/chunks/data-grid-template.DzIpssxc.js.map +0 -1
  161. package/dist/chunks/date.CKXySBQv.js +0 -995
  162. package/dist/chunks/date.CKXySBQv.js.map +0 -1
  163. package/dist/chunks/dropdown.UapzImAi.js.map +0 -1
  164. package/dist/chunks/file-uploader.C8DwUCMp.js.map +0 -1
  165. package/dist/chunks/get-date-locale.BN8xEjY0.js.map +0 -1
  166. package/dist/chunks/index.BDuTpjD8.js +0 -40
  167. package/dist/chunks/index.BDuTpjD8.js.map +0 -1
  168. package/dist/chunks/index.DD7TppDb.js +0 -10
  169. package/dist/chunks/index.DD7TppDb.js.map +0 -1
  170. package/dist/chunks/info-icon.CpGwbhZQ.js +0 -45
  171. package/dist/chunks/info-icon.CpGwbhZQ.js.map +0 -1
  172. package/dist/chunks/input-field-password.COKWNkFD.js +0 -369
  173. package/dist/chunks/input-field-password.COKWNkFD.js.map +0 -1
  174. package/dist/chunks/pagination.i2eNp6n4.js.map +0 -1
  175. package/dist/chunks/step.CpSPMvdW.js +0 -264
  176. package/dist/chunks/step.CpSPMvdW.js.map +0 -1
  177. package/dist/chunks/summary-grid.types.BpS1z1-W.js +0 -466
  178. package/dist/chunks/summary-grid.types.BpS1z1-W.js.map +0 -1
  179. package/dist/chunks/tabs.Cq1fdzVh.js +0 -266
  180. package/dist/chunks/tabs.Cq1fdzVh.js.map +0 -1
  181. package/dist/chunks/textarea.CV1HjB0x.js.map +0 -1
  182. package/dist/chunks/timeline-item.DUp8MmgZ.js.map +0 -1
  183. package/dist/chunks/use-cached-selected-values.CatIU1_1.js +0 -1591
  184. package/dist/chunks/use-cached-selected-values.CatIU1_1.js.map +0 -1
package/dist/info-icon.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as e } from "./chunks/info-icon.CpGwbhZQ.js";
1
+ import { B as e } from "./chunks/info-icon.DprUQ9fj.js";
2
2
  export {
3
3
  e as BentoInfoIcon
4
4
  };
@@ -1,4 +1,4 @@
1
- import { i as a, m as s, r as i, b as c, c as u, a as o } from "./chunks/input-field-password.COKWNkFD.js";
1
+ import { i as a, m as s, r as i, b as c, c as u, a as o } from "./chunks/input-field-password.XrXAnMpT.js";
2
2
  export {
3
3
  a as BentoInputFieldPassword,
4
4
  s as minLength,
@@ -1,4 +1,4 @@
1
- import { i as n } from "./chunks/input-field-phone-number.BcuBaX7v.js";
1
+ import { i as n } from "./chunks/input-field-phone-number.CNurVdiF.js";
2
2
  export {
3
3
  n as BentoInputFieldPhoneNumber
4
4
  };
@@ -1,4 +1,4 @@
1
- import { B as n, b as a, e as o, c as i, d as s, a as l } from "./chunks/input-field.DyLJYbGL.js";
1
+ import { B as n, b as a, e as o, c as i, d as s, a as l } from "./chunks/input-field.EOIwm2tq.js";
2
2
  export {
3
3
  n as BentoInputField,
4
4
  a as BentoInputFieldElementPosition,
package/dist/internal.js CHANGED
@@ -1,16 +1,16 @@
1
- import { a as e, b as r, C as t, c as s, d as p } from "./chunks/calendar.CLpwW_-k.js";
2
- import { C as n, a as l } from "./chunks/copy.DqckFHHS.js";
3
- import { C as f } from "./chunks/controls-group.DD1m4EKn.js";
1
+ import { a as e, b as r, C as t, c as s, d as p } from "./chunks/calendar._oPk_A1C.js";
2
+ import { C as n, a as l } from "./chunks/copy.RUoQOydT.js";
3
+ import { C as f } from "./chunks/controls-group.CrzkSu0U.js";
4
4
  import { B as I, b as m, a as E, D as T } from "./chunks/dialog-page.C80HOigq.js";
5
- import { E as d, F as N } from "./chunks/error-message.DZWphzoT.js";
5
+ import { E as d, F as N } from "./chunks/error-message.DHMHq9bR.js";
6
6
  import { F as O } from "./chunks/fixed-scroller.D5nAPPbo.js";
7
7
  import { G as A, a as L } from "./chunks/grid-layout.BTLE3rac.js";
8
8
  import { I as c } from "./chunks/info-icon-with-popover.Duk1tj5G.js";
9
- import { b, c as g, u as y } from "./chunks/use-cached-selected-values.CatIU1_1.js";
9
+ import { b, c as g, u as y } from "./chunks/use-cached-selected-values.rqtiP4Nd.js";
10
10
  import { L as F } from "./chunks/listbox-option-tag.0BK6jWO9.js";
11
11
  import { B as M } from "./chunks/teleport.CfGWjxe2.js";
12
12
  import { T as h } from "./chunks/tooltip.VYPUHERk.js";
13
- import { B as J } from "./chunks/button-actions-with-menu.D50ABuSV.js";
13
+ import { B as J } from "./chunks/button-actions-with-menu.xZYmwO7S.js";
14
14
  import { f as R } from "./chunks/button-actions.D1pXI1AJ.js";
15
15
  export {
16
16
  R as BUTTON_ACTIONS_WITH_MENU_CONTAINER_INJECTION_KEY,
@@ -1,4 +1,4 @@
1
- import { B as n } from "./chunks/pagination.i2eNp6n4.js";
1
+ import { B as n } from "./chunks/pagination._rYMF2W_.js";
2
2
  export {
3
3
  n as BentoPagination
4
4
  };
@@ -1,4 +1,4 @@
1
- import { b as t, B as e, a as n } from "./chunks/radio-group.435rdgzm.js";
1
+ import { b as t, B as e, a as n } from "./chunks/radio-group.H9A5QcNu.js";
2
2
  import { R as B } from "./chunks/radio-input.DKfQGxtp.js";
3
3
  export {
4
4
  t as BentoRadioButton,
@@ -1,4 +1,4 @@
1
- import { r as t } from "./chunks/rich-text-editor.CE7kjKfA.js";
1
+ import { r as t } from "./chunks/rich-text-editor.RD8aCPTi.js";
2
2
  export {
3
3
  t as BentoRichTextEditor
4
4
  };
@@ -1,5 +1,5 @@
1
- import { B as r, b as t, a as B } from "./chunks/search-bar.g_dBJXfU.js";
2
- import { u as o } from "./chunks/dropdown.UapzImAi.js";
1
+ import { B as r, b as t, a as B } from "./chunks/search-bar.i7BY4IGB.js";
2
+ import { u as o } from "./chunks/dropdown.usAqDecC.js";
3
3
  export {
4
4
  r as BentoSearchBar,
5
5
  t as BentoSearchBarEvent,
@@ -1,4 +1,4 @@
1
- import { s as e } from "./chunks/secondary-nav.Dy9Abrau.js";
1
+ import { s as e } from "./chunks/secondary-nav.DkRQsIx7.js";
2
2
  export {
3
3
  e as BentoSecondaryNav
4
4
  };
@@ -1,4 +1,4 @@
1
- import { B as t, s as a, a as n } from "./chunks/selection-card-group.TPoxTPl3.js";
1
+ import { B as t, s as a, a as n } from "./chunks/selection-card-group.B4xpnd-z.js";
2
2
  export {
3
3
  t as BentoSelectionCard,
4
4
  a as BentoSelectionCardGroup,
package/dist/stepper.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as p, s as o, B as a, b as n } from "./chunks/step.CpSPMvdW.js";
1
+ import { a as p, s as o, B as a, b as n } from "./chunks/step.BtNhPZAf.js";
2
2
  export {
3
3
  p as BentoStep,
4
4
  o as BentoStepper,
@@ -1,4 +1,4 @@
1
- import { B as r, a as o } from "./chunks/structured-list-item.DQzxNb_M.js";
1
+ import { B as r, a as o } from "./chunks/structured-list-item.BQbEDKhg.js";
2
2
  export {
3
3
  r as BentoStructuredList,
4
4
  o as BentoStructuredListItem
@@ -1598,6 +1598,7 @@
1598
1598
  --b-data-grid-template-additional-content-padding: var(--b-spacer-000) var(--b-spacer-090) var(--b-spacer-000) var(--b-spacer-090);
1599
1599
  --b-data-grid-template-additional-content-margin: var(--b-spacer-000) var(--b-spacer-090) var(--b-spacer-000) var(--b-spacer-090);
1600
1600
  --b-data-grid-template-additional-content-background-color: var(--b-color-background-primary);
1601
+ --b-data-grid-template-header-with-views-padding: var(--b-spacer-000);
1601
1602
  --b-data-grid-template-header-z-index: var(--b-z-index-local-tier-3);
1602
1603
  --b-data-grid-template-header-margin: var(--b-spacer-080) var(--b-spacer-090) var(--b-spacer-000) var(--b-spacer-090);
1603
1604
  --b-data-grid-template-gap: var(--b-spacer-060);
@@ -1596,6 +1596,7 @@
1596
1596
  --b-data-grid-template-additional-content-padding: var(--b-spacer-000) var(--b-spacer-090) var(--b-spacer-000) var(--b-spacer-090);
1597
1597
  --b-data-grid-template-additional-content-margin: var(--b-spacer-000) var(--b-spacer-090) var(--b-spacer-000) var(--b-spacer-090);
1598
1598
  --b-data-grid-template-additional-content-background-color: var(--b-color-background-primary);
1599
+ --b-data-grid-template-header-with-views-padding: var(--b-spacer-000);
1599
1600
  --b-data-grid-template-header-z-index: var(--b-z-index-local-tier-3);
1600
1601
  --b-data-grid-template-header-margin: var(--b-spacer-080) var(--b-spacer-090) var(--b-spacer-000) var(--b-spacer-090);
1601
1602
  --b-data-grid-template-gap: var(--b-spacer-060);
@@ -1596,6 +1596,7 @@
1596
1596
  --b-data-grid-template-additional-content-padding: var(--b-spacer-000) var(--b-spacer-090) var(--b-spacer-000) var(--b-spacer-090);
1597
1597
  --b-data-grid-template-additional-content-margin: var(--b-spacer-000) var(--b-spacer-090) var(--b-spacer-000) var(--b-spacer-090);
1598
1598
  --b-data-grid-template-additional-content-background-color: var(--b-color-background-primary);
1599
+ --b-data-grid-template-header-with-views-padding: var(--b-spacer-000);
1599
1600
  --b-data-grid-template-header-z-index: var(--b-z-index-local-tier-3);
1600
1601
  --b-data-grid-template-header-margin: var(--b-spacer-080) var(--b-spacer-090) var(--b-spacer-000) var(--b-spacer-090);
1601
1602
  --b-data-grid-template-gap: var(--b-spacer-060);
@@ -1534,6 +1534,7 @@
1534
1534
  --b-data-grid-template-additional-content-z-index: var(--b-z-index-local-tier-2);
1535
1535
  --b-data-grid-template-additional-content-padding: var(--b-spacer-000) var(--b-spacer-090) var(--b-spacer-000) var(--b-spacer-090);
1536
1536
  --b-data-grid-template-additional-content-margin: var(--b-spacer-000) var(--b-spacer-090) var(--b-spacer-000) var(--b-spacer-090);
1537
+ --b-data-grid-template-header-with-views-padding: var(--b-spacer-000);
1537
1538
  --b-data-grid-template-header-z-index: var(--b-z-index-local-tier-3);
1538
1539
  --b-data-grid-template-header-margin: var(--b-spacer-080) var(--b-spacer-090) var(--b-spacer-000) var(--b-spacer-090);
1539
1540
  --b-data-grid-template-gap: var(--b-spacer-060);
@@ -1651,6 +1651,7 @@
1651
1651
  --b-data-grid-template-additional-content-padding: var(--b-spacer-000) var(--b-spacer-090) var(--b-spacer-000) var(--b-spacer-090);
1652
1652
  --b-data-grid-template-additional-content-margin: var(--b-spacer-000) var(--b-spacer-090) var(--b-spacer-000) var(--b-spacer-090);
1653
1653
  --b-data-grid-template-additional-content-background-color: var(--b-color-background-primary);
1654
+ --b-data-grid-template-header-with-views-padding: var(--b-spacer-000);
1654
1655
  --b-data-grid-template-header-z-index: var(--b-z-index-local-tier-3);
1655
1656
  --b-data-grid-template-header-margin: var(--b-spacer-080) var(--b-spacer-090) var(--b-spacer-000) var(--b-spacer-090);
1656
1657
  --b-data-grid-template-gap: var(--b-spacer-060);
@@ -1,4 +1,4 @@
1
- import { s as r, a as t, d as a, _ as o, b as i, B as n, c as u, e as d } from "./chunks/summary-grid.types.BpS1z1-W.js";
1
+ import { s as r, a as t, d as a, _ as o, b as i, B as n, c as u, e as d } from "./chunks/summary-grid.types.BTr6x5cg.js";
2
2
  export {
3
3
  r as BentoSummaryGrid,
4
4
  t as BentoSummaryGridItemAmount,
package/dist/tabs.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as e, a as s } from "./chunks/tabs.Cq1fdzVh.js";
1
+ import { a as e, B as s } from "./chunks/tab.CAt51ksU.js";
2
2
  export {
3
3
  e as BentoTab,
4
4
  s as BentoTabs
package/dist/textarea.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as o } from "./chunks/textarea.CV1HjB0x.js";
1
+ import { B as o } from "./chunks/textarea.DXSe9MHH.js";
2
2
  export {
3
3
  o as BentoTextarea
4
4
  };
package/dist/timeline.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t, b as i, a, c as m, B as o, d as l } from "./chunks/timeline-item.DUp8MmgZ.js";
1
+ import { t, b as i, a, c as m, B as o, d as l } from "./chunks/timeline-item.Coz_LRD3.js";
2
2
  export {
3
3
  t as BentoTimeline,
4
4
  i as BentoTimelineGapUnit,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "@adyen/bento-vue3",
4
- "version": "1.64.1",
4
+ "version": "1.66.0",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/bento-vue3",
3
- "version": "1.64.1",
3
+ "version": "1.66.0",
4
4
  "description": "Adyen Bento Vue 3 components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -45,7 +45,7 @@
45
45
  "unified": "11.0.5",
46
46
  "uuid": "11.0.5",
47
47
  "vue-demi": "0.14.10",
48
- "@adyen/bento-design-tokens": "1.64.1"
48
+ "@adyen/bento-design-tokens": "1.66.0"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "vue": "^3.2.47",
@@ -121,10 +121,10 @@
121
121
  "vue-router": "~4.1",
122
122
  "vue-style-loader": "4.1.3",
123
123
  "vue-tsc": "1.0.24",
124
- "@adyen/bento-tailwind": "0.4.2",
125
- "@adyen/ui-assets-icons-16": "6.4.2",
126
- "@adyen/ui-assets-payment-method-icons": "10.0.0",
127
- "@adyen/bento-core": "0.0.1"
124
+ "@adyen/bento-core": "0.0.1",
125
+ "@adyen/bento-tailwind": "0.5.0",
126
+ "@adyen/ui-assets-icons-16": "6.5.1",
127
+ "@adyen/ui-assets-payment-method-icons": "10.1.1"
128
128
  },
129
129
  "scripts": {
130
130
  "build": "pnpm run build:prod",
@@ -1 +0,0 @@
1
- .b-tab[data-v-4993d338]{scrollbar-color:var(--b-color-background-quaternary) transparent;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.b-tab[data-v-4993d338],.b-tab[data-v-4993d338]:before,.b-tab[data-v-4993d338]:after{box-sizing:border-box}.b-tab[data-v-4993d338] *,.b-tab[data-v-4993d338] *:before,.b-tab[data-v-4993d338] *:after{box-sizing:border-box}.b-tab[data-v-4993d338] ::-webkit-scrollbar{height:14px;width:14px}.b-tab[data-v-4993d338] ::-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-3a9feea5]{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-3a9feea5],.b-tabs[data-v-3a9feea5]:before,.b-tabs[data-v-3a9feea5]:after{box-sizing:border-box}.b-tabs[data-v-3a9feea5] *,.b-tabs[data-v-3a9feea5] *:before,.b-tabs[data-v-3a9feea5] *:after{box-sizing:border-box}.b-tabs[data-v-3a9feea5] ::-webkit-scrollbar{height:14px;width:14px}.b-tabs[data-v-3a9feea5] ::-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-3a9feea5]{background-color:transparent;border:0;font:inherit;text-align:inherit}.b-tabs button[data-v-3a9feea5]:focus-visible{outline:none}.b-tabs__tab-list[data-v-3a9feea5]{display:flex;gap:var(--b-tabs-tab-list-gap);height:var(--b-tabs-tab-list-height)}.b-tabs__tab-list-wrapper--sticky[data-v-3a9feea5]{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-3a9feea5]: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-3a9feea5]{align-items:center;cursor:pointer;display:flex;flex-direction:column;height:100%;justify-content:space-between;padding:0}.b-tabs__tab--disabled[data-v-3a9feea5]>*{cursor:not-allowed}@media (hover: hover){.b-tabs__tab:not(.b-tabs__tab--disabled):hover .b-tabs__tab-title[data-v-3a9feea5]{color:var(--b-tabs-tab-title-hover-color)}.b-tabs__tab:not(.b-tabs__tab--disabled):hover .b-tabs__tab-counter[data-v-3a9feea5]{color:var(--b-tabs-counter-hover-color)}}.b-tabs__tab-text[data-v-3a9feea5]{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-3a9feea5]{animation:outer-ring-default-3a9feea5 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-3a9feea5{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-3a9feea5]{color:var(--b-tabs-tab-title-color);white-space:nowrap}.b-legacy-theme .b-tabs__tab-title[data-v-3a9feea5]{font-size:15px;font-weight:400}.b-tabs__tab--disabled .b-tabs__tab-title[data-v-3a9feea5]{color:var(--b-tabs-tab-title-disabled-color);cursor:not-allowed}.b-tabs__tab--active .b-tabs__tab-title[data-v-3a9feea5]{color:var(--b-tabs-tab-title-active-color)}.b-tabs__tab-underline[data-v-3a9feea5]{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-3a9feea5]{height:var(--b-tabs-tab-underline-height-active)}.b-tabs__tab-counter[data-v-3a9feea5]{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-3a9feea5]{color:var(--b-tabs-counter-active-color)}.b-tabs__tab--disabled .b-tabs__tab-counter[data-v-3a9feea5]{color:var(--b-tabs-counter-disabled-color);cursor:not-allowed}.b-tabs__tab-notification-dot[data-v-3a9feea5]{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.BAfqAQjP.js","sources":["../../../vue2/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<{\n /**\n * Event emitted when the user click the close button\n */\n (e: 'close'): void;\n (e: 'cancel'): void;\n (e: 'save'): void;\n }>();\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","props","__props","emit","__emit","t","tc","useI18n","label","computed","actionBar","ref","extraBottomSpacing","visibleActions","toRefs","width","useWindowSize","internalDisplayedActions","internalVisibleActions","isConfirmationVariant","watch","value","conditionalClasses","provide","POPOVER_OFFSET_INJECTION_KEY","actionsInternal","actions","action","shownActions","hiddenActions","confirmationActions","showActions","nextTick","hideActions","newValue","oldValue","isIncreasing"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsPIA,KAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAjMA,UAAAC,IAAAC,GAuDAC,IAAAC,GASA,EAAA,GAAAC,GAAA,IAAAC,EAAA,IAAAC,EAAA,EAAA,UAAAP,EAAA,CAAA,GACAQ,IAAAC,EAAA,MAAAR,EAAA,iBAAAA,EAAA,iBAAAI,EAAA,UAAA,CAAA,GAGAK,IAAAC,EAAA,IAAA,GACA,EAAA,oBAAAC,GAAA,gBAAAC,EAAA,IAAAC,EAAAb,CAAA,GACA,EAAA,OAAAc,EAAA,IAAAC,EAAA,GACAC,IAAAN,EAAA,IAAA,GACAO,IAAAP,EAAA,IAAA,GAEAQ,IAAAV,EAAA,MAAAR,EAAA,YAAA,cAAA;AAEA,IAAAmB;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,IAAAb,EAAA,OAAA;AAAA,MAA2C,+BAAAG,EAAA;AAAA,MACW,8BAAAO,EAAA;AAAA,IACE,EAAA;AAIxD,IAAAI,EAAAC,GAAA,CAAA;AAGA,UAAAC,IAAAhB,EAAA,MAAA;AAEI,YAAAiB,IAAAzB,EAAA,QAAA,IAAA,CAAA0B,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,IAAArB,EAAA,MAAA;AAAA,MAAmE;AAAA,QAC/D,OAAAJ,EAAA,MAAA;AAAA,QACmB,OAAA,MAAAF,EAAA,MAAA;AAAA,MACS;AAAA,MAC5B;AAAA,QACA,OAAAE,EAAA,QAAA;AAAA,QACqB,SAAA;AAAA,QACR,OAAA,MAAAF,EAAA,QAAA;AAAA,MACiB;AAAA,IAC9B,CAAA,GAIJ4B,IAAA,YAAA;AACI,YAAAC,EAAA,GACAjB,EAAA,QAAAL,EAAA,MAAA,cAAA,KAAA,OAAAO,EAAA,QAAAC,EAAA,UAIID,EAAA,SAAA,GACAc,EAAA;AAAA,IACJ,GAGJE,IAAA,YAAA;AACI,YAAAD,EAAA,GACAjB,EAAA,QAAAL,EAAA,MAAA,cAAA,MAAAO,EAAA,QAAA,MACIA,EAAA,SAAA,GACAgB,EAAA;AAAA,IACJ;AAIJ,WAAAb;AAAA,MAAA,MAAAL,EAAA;AAAA,MACgB,OAAAmB,GAAAC,MAAA;AAGR,YADA,MAAAH,EAAA,GACA,CAAAtB,EAAA;AACI;AAEJ,cAAA0B,IAAAF,IAAAC;AACA,QAAApB,EAAA,QAAA,MACIE,EAAA,QAAA,IAAiCmB,IAEjCL,EAAA,IAEAE,EAAA;AAAA,MACJ;AAAA,MACJ,EAAA,WAAA,GAAA;AAAA,IACkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,174 +0,0 @@
1
- import { ref as m, watch as y, nextTick as f, defineComponent as A, toRef as B, computed as v, provide as b, createElementBlock as N, openBlock as h, createElementVNode as T, normalizeClass as w, createVNode as E, createBlock as k, createCommentVNode as C, unref as I } from "vue";
2
- import { M as W, B as S } from "./menu.CiyYOoKd.js";
3
- import { a as O } from "./popover.maCMPyz8.js";
4
- import { c as _, f as R, B as M } from "./button-actions.D1pXI1AJ.js";
5
- import { u as g } from "./index.FNUaPG4G.js";
6
- import { _ as U } from "./_plugin-vue_export-helper.CHgC5LLL.js";
7
- import "../assets/button-actions-with-menu.css";
8
- const D = (a) => {
9
- const { breakpoint: e, container: l, defaultActionsCount: c, offset: n } = a, { width: d } = g(), o = m(c), r = 150, u = async () => {
10
- var s;
11
- await f();
12
- const i = l.value.clientWidth, t = r * o.value + (((s = n == null ? void 0 : n.value) == null ? void 0 : s.offsetWidth) ?? 0) + r;
13
- i >= t && o.value < c && (o.value += 1, u());
14
- }, p = async () => {
15
- var s;
16
- await f();
17
- const i = l.value.clientWidth, t = r * o.value + (((s = n == null ? void 0 : n.value) == null ? void 0 : s.offsetWidth) ?? 0);
18
- i < t && o.value > 0 && (o.value -= 1, p());
19
- };
20
- return y([d, l], async ([i, t], [s]) => {
21
- if (!t || !c || i > e)
22
- return;
23
- await f(), i > s ? u() : p();
24
- }), {
25
- displayedActionsCount: o
26
- };
27
- }, L = { class: "b-button-actions-with-menu" }, x = {}, V = /* @__PURE__ */ A({
28
- ...x,
29
- __name: "button-actions-with-menu",
30
- props: {
31
- /**
32
- * List of actions that will be used to render the buttons.
33
- * First element in the list will be rendered as "primary".
34
- * All elements after the first will be rendered as "secondary".
35
- *
36
- * Each object in the list should have a `title`, an `event` and
37
- * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.
38
- *
39
- * `title`: Button's text.
40
- *
41
- * `event`: Event triggered when clicking the Button.
42
- *
43
- * `icon` (optional): Vue Icon from the library `@adyen/ui-assets-icons-16`.
44
- *
45
- * @see BentoButton for a list of all the other props supported by each button action.
46
- *
47
- * ```
48
- * [{
49
- * title: 'Primary',
50
- * event: () => { ... },
51
- * icon: FourPeopleIcon,
52
- * link: {
53
- variant: 'default',
54
- external: true,
55
- to: 'https://www.adyen.com/'
56
- },
57
- * }, {
58
- * title: 'Secondary',
59
- * event: () => { ... }
60
- * disabled: true,
61
- * variant: 'primary',
62
- * critical: true
63
- * }]
64
- * ```
65
- */
66
- actions: {
67
- type: Array,
68
- required: !0
69
- },
70
- /**
71
- * Defines the layout in which the button actions is presented.
72
- *
73
- * @see {@link BentoButtonActionsLayout}
74
- *
75
- */
76
- actionsLayout: {
77
- type: String,
78
- default: _.BUTTONS_END
79
- },
80
- /**
81
- * The number of actions to be displayed. The rest of the actions will be collapsed in a menu component.
82
- */
83
- disableResponsiveBehavior: {
84
- type: Boolean,
85
- default: !1
86
- },
87
- /**
88
- * The number of actions to be displayed. The rest of the actions will be collapsed in a menu component.
89
- */
90
- displayedActions: {
91
- type: Number,
92
- default: void 0
93
- },
94
- /**
95
- * Set inverse color scheme to buttons and menu
96
- */
97
- inverse: {
98
- type: Boolean,
99
- default: !1
100
- },
101
- /**
102
- * The min-width breakpoint to hide the button actions.
103
- *
104
- * For example, a value of 200 means that buttons will be hidden at <= 200px.
105
- *
106
- * Defaults to 0 i.e. it shows all buttons.
107
- */
108
- hideDisplayedActionsBreakpoint: {
109
- type: Number,
110
- default: 0
111
- },
112
- /**
113
- * The position of where the menu should open.
114
- */
115
- menuPosition: {
116
- type: String,
117
- default: "bottom-start",
118
- validator: (a) => Object.values(O).includes(a)
119
- }
120
- },
121
- setup(a) {
122
- const e = a, l = B(e, "inverse"), c = m(null), n = m(null), d = m(!1), o = v(() => {
123
- const t = e.hideDisplayedActionsBreakpoint ? u.value : e.displayedActions;
124
- return e.actions.slice(0, t);
125
- }), r = v(() => {
126
- var t;
127
- return (t = n == null ? void 0 : n.value) == null ? void 0 : t.$el;
128
- }), { displayedActionsCount: u } = D({
129
- breakpoint: e.hideDisplayedActionsBreakpoint,
130
- container: c,
131
- defaultActionsCount: e.displayedActions,
132
- offset: r
133
- });
134
- b(W, l), e.disableResponsiveBehavior || b(R, { buttonActionsWithMenu: c, menu: n, stackButtons: d });
135
- const p = v(() => ({
136
- "b-button-actions-with-menu__container-wrapper--buttons-end": e.actionsLayout === _.BUTTONS_END,
137
- "b-button-actions-with-menu__container-wrapper--buttons-start": e.actionsLayout === _.BUTTONS_START,
138
- "b-button-actions-with-menu__container-wrapper--stacked-buttons": d.value
139
- })), i = v(
140
- () => u.value !== void 0 && u.value < e.actions.length ? e.actions.slice(u.value, e.actions.length).map((t) => ({
141
- text: t.title,
142
- handler: t.event,
143
- icon: t.icon,
144
- critical: t.critical,
145
- disabled: t.disabled
146
- })) : []
147
- );
148
- return (t, s) => (h(), N("div", L, [
149
- T("div", {
150
- ref_key: "buttonActionsWithMenu",
151
- ref: c,
152
- role: "group",
153
- class: w(["b-button-actions-with-menu__container-wrapper", p.value])
154
- }, [
155
- E(I(M), {
156
- actions: o.value,
157
- inverse: a.inverse,
158
- layout: a.actionsLayout
159
- }, null, 8, ["actions", "inverse", "layout"]),
160
- i.value.length ? (h(), k(S, {
161
- key: 0,
162
- ref_key: "menu",
163
- ref: n,
164
- data: i.value,
165
- "menu-position": a.menuPosition
166
- }, null, 8, ["data", "menu-position"])) : C("", !0)
167
- ], 2)
168
- ]));
169
- }
170
- }), q = /* @__PURE__ */ U(V, [["__scopeId", "data-v-0fd9bb45"]]);
171
- export {
172
- q as B
173
- };
174
- //# sourceMappingURL=button-actions-with-menu.D50ABuSV.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"button-actions-with-menu.D50ABuSV.js","sources":["../../../vue2/src/components/internal/button-actions-with-menu/composables/use-responsive-actions.ts","../../../vue2/src/components/internal/button-actions-with-menu/button-actions-with-menu.vue"],"sourcesContent":["import { useWindowSize } from '@vueuse/core';\nimport { nextTick, Ref, ref, watch } from 'vue';\n\ninterface UseResponsiveActionsProps {\n breakpoint?: number;\n container: Ref<HTMLElement>;\n defaultActionsCount: number;\n offset?: Ref<HTMLElement>;\n}\n\nexport const useResponsiveActions = (props: UseResponsiveActionsProps) => {\n const { breakpoint, container, defaultActionsCount, offset } = props;\n\n const { width: windowWidth } = useWindowSize();\n\n const displayedActionsCount = ref<number>(defaultActionsCount);\n\n const AVERAGE_BUTTON_WIDTH = 150; // button size + gap\n\n const showActions = async () => {\n await nextTick();\n\n const availableSpace = container.value.clientWidth;\n const totalActionWidth =\n AVERAGE_BUTTON_WIDTH * displayedActionsCount.value +\n (offset?.value?.offsetWidth ?? 0) +\n AVERAGE_BUTTON_WIDTH;\n\n // Only add actions if there's enough space and we haven't reached max\n if (availableSpace >= totalActionWidth && displayedActionsCount.value < defaultActionsCount) {\n displayedActionsCount.value += 1;\n\n showActions(); // keep trying to show more\n }\n };\n\n const hideActions = async () => {\n await nextTick();\n\n const availableSpace = container.value.clientWidth;\n const totalActionWidth = AVERAGE_BUTTON_WIDTH * displayedActionsCount.value + (offset?.value?.offsetWidth ?? 0);\n\n // Hide actions if they overflow the container\n if (availableSpace < totalActionWidth && displayedActionsCount.value > 0) {\n displayedActionsCount.value -= 1;\n\n hideActions(); // keep hiding until it fits\n }\n };\n\n watch([windowWidth, container], async ([newWidth, containerEl], [oldWidth]) => {\n if (!containerEl || !defaultActionsCount || newWidth > breakpoint) {\n return;\n }\n\n await nextTick();\n\n const isIncreasing = newWidth > oldWidth;\n\n if (isIncreasing) {\n showActions();\n } else {\n hideActions();\n }\n });\n\n return {\n displayedActionsCount,\n };\n};\n","<template>\n <div class=\"b-button-actions-with-menu\">\n <div\n ref=\"buttonActionsWithMenu\"\n role=\"group\"\n class=\"b-button-actions-with-menu__container-wrapper\"\n :class=\"conditionalClasses\"\n >\n <bento-button-actions :actions=\"computedActions\" :inverse=\"inverse\" :layout=\"actionsLayout\" />\n <bento-menu\n v-if=\"computedMenuActions.length\"\n ref=\"menu\"\n :data=\"computedMenuActions\"\n :menu-position=\"menuPosition\"\n />\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { BentoButtonActions, BentoButtonActionsLayout, BentoButtonActionsList } from '@/components/button';\n import { BentoMenuItem } from '@/components/menu/components/menu-item/menu-item.types';\n import { MENU_INVERSE_INJECTION_KEY } from '@/components/menu/menu.keys';\n import BentoMenu from '@/components/menu/menu.vue';\n import { BentoPopoverPositions } from '@/components/popover';\n import { computed, PropType, provide, ref, toRef } from 'vue';\n import { BUTTON_ACTIONS_WITH_MENU_CONTAINER_INJECTION_KEY } from './button-actions-with-menu.keys';\n import { useResponsiveActions } from './composables/use-responsive-actions';\n\n /**\n * An internal button actions component with the option to display some of the actions in a menu.\n *\n * @example\n * <button-actions-with-menu\n * :actions=\"[\n * title: 'Primary',\n * event: () => { ... },\n * icon: FourPeopleIcon,\n * link: {\n * variant: 'default',\n * external: true,\n * to: 'https://www.adyen.com/'\n * },\n * }, {\n * title: 'Secondary',\n * event: () => { ... }\n * disabled: true,\n * variant: BentoButtonVariant.PRIMARY,\n * critical: true\n * }]\n * :displayedActions=\"2\"\n * />\n */\n const props = defineProps({\n /**\n * List of actions that will be used to render the buttons.\n * First element in the list will be rendered as \"primary\".\n * All elements after the first will be rendered as \"secondary\".\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * `title`: Button's text.\n *\n * `event`: Event triggered when clicking the Button.\n *\n * `icon` (optional): Vue Icon from the library `@adyen/ui-assets-icons-16`.\n *\n * @see BentoButton for a list of all the other props supported by each button action.\n *\n * ```\n * [{\n * title: 'Primary',\n * event: () => { ... },\n * icon: FourPeopleIcon,\n * link: {\n variant: 'default',\n external: true,\n to: 'https://www.adyen.com/'\n },\n * }, {\n * title: 'Secondary',\n * event: () => { ... }\n * disabled: true,\n * variant: 'primary',\n * critical: true\n * }]\n * ```\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n required: true,\n },\n\n /**\n * Defines the layout in which the button actions is presented.\n *\n * @see {@link BentoButtonActionsLayout}\n *\n */\n actionsLayout: {\n type: String as PropType<`${BentoButtonActionsLayout}`>,\n default: BentoButtonActionsLayout.BUTTONS_END,\n },\n\n /**\n * The number of actions to be displayed. The rest of the actions will be collapsed in a menu component.\n */\n disableResponsiveBehavior: {\n type: Boolean,\n default: false,\n },\n\n /**\n * The number of actions to be displayed. The rest of the actions will be collapsed in a menu component.\n */\n displayedActions: {\n type: Number,\n default: undefined,\n },\n\n /**\n * Set inverse color scheme to buttons and menu\n */\n inverse: {\n type: Boolean,\n default: false,\n },\n\n /**\n * The min-width breakpoint to hide the button actions.\n *\n * For example, a value of 200 means that buttons will be hidden at <= 200px.\n *\n * Defaults to 0 i.e. it shows all buttons.\n */\n hideDisplayedActionsBreakpoint: {\n type: Number,\n default: 0,\n },\n\n /**\n * The position of where the menu should open.\n */\n menuPosition: {\n type: String as PropType<BentoPopoverPositions | `${BentoPopoverPositions}`>,\n default: 'bottom-start',\n validator: (value: BentoPopoverPositions) => Object.values(BentoPopoverPositions).includes(value),\n },\n });\n\n const inverseRef = toRef(props, 'inverse');\n const buttonActionsWithMenu = ref<HTMLDivElement>(null);\n const menu = ref(null);\n const stackButtons = ref(false);\n\n const computedActions = computed(() => {\n const displayedActionsLimit = props.hideDisplayedActionsBreakpoint\n ? displayedActionsCount.value\n : props.displayedActions;\n\n return props.actions.slice(0, displayedActionsLimit);\n });\n const computedMenuRef = computed(() => menu?.value?.$el);\n\n const { displayedActionsCount } = useResponsiveActions({\n breakpoint: props.hideDisplayedActionsBreakpoint,\n container: buttonActionsWithMenu,\n defaultActionsCount: props.displayedActions,\n offset: computedMenuRef,\n });\n\n provide(MENU_INVERSE_INJECTION_KEY, inverseRef);\n\n if (!props.disableResponsiveBehavior) {\n provide(BUTTON_ACTIONS_WITH_MENU_CONTAINER_INJECTION_KEY, { buttonActionsWithMenu, menu, stackButtons });\n }\n\n const conditionalClasses = computed(() => ({\n [`b-button-actions-with-menu__container-wrapper--buttons-end`]:\n props.actionsLayout === BentoButtonActionsLayout.BUTTONS_END,\n [`b-button-actions-with-menu__container-wrapper--buttons-start`]:\n props.actionsLayout === BentoButtonActionsLayout.BUTTONS_START,\n [`b-button-actions-with-menu__container-wrapper--stacked-buttons`]: stackButtons.value,\n }));\n\n const computedMenuActions = computed(() =>\n displayedActionsCount.value !== undefined && displayedActionsCount.value < props.actions.length\n ? (props.actions.slice(displayedActionsCount.value, props.actions.length).map(el => ({\n text: el.title,\n handler: el.event,\n icon: el.icon,\n critical: el.critical,\n disabled: el.disabled,\n })) as BentoMenuItem[])\n : []\n );\n</script>\n\n<script lang=\"ts\">\n /**\n * An internal button actions component with the option to display some of the actions in a menu.\n *\n * @example\n * <button-actions-with-menu\n * :actions=\"[\n * title: 'Primary',\n * event: () => { ... },\n * icon: FourPeopleIcon,\n * link: {\n * variant: 'default',\n * external: true,\n * to: 'https://www.adyen.com/'\n * },\n * }, {\n * title: 'Secondary',\n * event: () => { ... }\n * disabled: true,\n * variant: BentoButtonVariant.PRIMARY,\n * critical: true\n * }]\n * :displayedActions=\"2\"\n * />\n */\n\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./button-actions-with-menu.scss\" />\n"],"names":["useResponsiveActions","props","breakpoint","container","defaultActionsCount","offset","windowWidth","useWindowSize","displayedActionsCount","ref","AVERAGE_BUTTON_WIDTH","showActions","nextTick","availableSpace","totalActionWidth","_a","hideActions","watch","newWidth","containerEl","oldWidth","__default__","__props","inverseRef","toRef","buttonActionsWithMenu","menu","stackButtons","computedActions","computed","displayedActionsLimit","computedMenuRef","provide","MENU_INVERSE_INJECTION_KEY","BUTTON_ACTIONS_WITH_MENU_CONTAINER_INJECTION_KEY","conditionalClasses","BentoButtonActionsLayout","computedMenuActions","el"],"mappings":";;;;;;;AAUa,MAAAA,IAAA,CAAAC,MAAA;AACT,QAAA,EAAA,YAAAC,GAAA,WAAAC,GAAA,qBAAAC,GAAA,QAAAC,EAAA,IAAAJ,GAEA,EAAA,OAAAK,EAAA,IAAAC,EAAA,GAEAC,IAAAC,EAAAL,CAAA,GAEAM,IAAA,KAEAC,IAAA,YAAA;;AACI,UAAAC,EAAA;AAEA,UAAAC,IAAAV,EAAA,MAAA,aACAW,IAAAJ,IAAAF,EAAA,WAAAO,IAAAV,KAAA,gBAAAA,EAAA,UAAA,gBAAAU,EAAA,gBAAA,KAAAL;AAMA,IAAAG,KAAAC,KAAAN,EAAA,QAAAJ,MACII,EAAA,SAAA,GAEAG,EAAA;AAAA,EACJ,GAGJK,IAAA,YAAA;;AACI,UAAAJ,EAAA;AAEA,UAAAC,IAAAV,EAAA,MAAA,aACAW,IAAAJ,IAAAF,EAAA,WAAAO,IAAAV,KAAA,gBAAAA,EAAA,UAAA,gBAAAU,EAAA,gBAAA;AAGA,IAAAF,IAAAC,KAAAN,EAAA,QAAA,MACIA,EAAA,SAAA,GAEAQ,EAAA;AAAA,EACJ;AAGJ,SAAAC,EAAA,CAAAX,GAAAH,CAAA,GAAA,OAAA,CAAAe,GAAAC,CAAA,GAAA,CAAAC,CAAA,MAAA;AACI,QAAA,CAAAD,KAAA,CAAAf,KAAAc,IAAAhB;AACI;AAGJ,UAAAU,EAAA,GAEAM,IAAAE,IAGIT,EAAA,IAEAK,EAAA;AAAA,EACJ,CAAA,GAGJ;AAAA,IAAO,uBAAAR;AAAA,EACH;AAER,gDC4JIa,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA5KA,UAAApB,IAAAqB,GAkGAC,IAAAC,EAAAvB,GAAA,SAAA,GACAwB,IAAAhB,EAAA,IAAA,GACAiB,IAAAjB,EAAA,IAAA,GACAkB,IAAAlB,EAAA,EAAA,GAEAmB,IAAAC,EAAA,MAAA;AACI,YAAAC,IAAA7B,EAAA,iCAAAO,EAAA,QAAAP,EAAA;AAIA,aAAAA,EAAA,QAAA,MAAA,GAAA6B,CAAA;AAAA,IAAmD,CAAA,GAEvDC,IAAAF,EAAA,MAAA;;AAAA,cAAAd,IAAAW,KAAA,gBAAAA,EAAA,UAAA,gBAAAX,EAAA;AAAA,KAAA,GAEA,EAAA,uBAAAP,EAAA,IAAAR,EAAA;AAAA,MAAuD,YAAAC,EAAA;AAAA,MACjC,WAAAwB;AAAA,MACP,qBAAAxB,EAAA;AAAA,MACgB,QAAA8B;AAAA,IACnB,CAAA;AAGZ,IAAAC,EAAAC,GAAAV,CAAA,GAEAtB,EAAA,6BACI+B,EAAAE,GAAA,EAAA,uBAAAT,GAAA,MAAAC,GAAA,cAAAC,EAAA,CAAA;AAGJ,UAAAQ,IAAAN,EAAA,OAAA;AAAA,MAA2C,8DAAA5B,EAAA,kBAAAmC,EAAA;AAAA,MAEc,gEAAAnC,EAAA,kBAAAmC,EAAA;AAAA,MAEA,kEAAAT,EAAA;AAAA,IAC4B,EAAA,GAGrFU,IAAAR;AAAA,MAA4B,MAAArB,EAAA,UAAA,UAAAA,EAAA,QAAAP,EAAA,QAAA,SAAAA,EAAA,QAAA,MAAAO,EAAA,OAAAP,EAAA,QAAA,MAAA,EAAA,IAAA,CAAAqC,OAAA;AAAA,QAEiE,MAAAA,EAAA;AAAA,QACtE,SAAAA,EAAA;AAAA,QACG,MAAAA,EAAA;AAAA,QACH,UAAAA,EAAA;AAAA,QACI,UAAAA,EAAA;AAAA,MACA,EAAA,IAAA,CAAA;AAAA,IAEhB;;;;;;;;;;;;;;;;;;;;;;;;"}