@adyen/bento-vue3 1.26.0 → 1.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (616) hide show
  1. package/dist/@types/components.d.ts +8 -0
  2. package/dist/@types/packages/core/src/utils/ts/storybook.d.ts +12 -0
  3. package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.types.d.ts +1 -0
  4. package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.vue.d.ts +1 -1
  5. package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.types.d.ts +2 -1
  6. package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +3 -3
  7. package/dist/@types/packages/vue2/src/components/code-snippet/utils/get-lang-loader.d.ts +2 -1
  8. package/dist/@types/packages/vue2/src/components/dashed-underline/dashed-underline.vue.d.ts +91 -0
  9. package/dist/@types/packages/vue2/src/components/dashed-underline/index.d.ts +1 -0
  10. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-static-icon/data-grid-static-icon.d.ts +2 -0
  11. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-static-icon/data-grid-static-icon.types.d.ts +1 -0
  12. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-static-icon/data-grid-static-icon.vue.d.ts +65 -0
  13. package/dist/@types/packages/vue2/src/components/data-grid/components/index.d.ts +1 -0
  14. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.d.ts +1 -0
  15. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-hovering/use-column-hovering.d.ts +1 -0
  16. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-reorderer/use-column-reorderer.d.ts +2 -0
  17. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-config-settings/use-config-settings.d.ts +1 -0
  18. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-resizer.d.ts +1 -0
  19. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +2 -1
  20. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +15 -0
  21. package/dist/@types/packages/vue2/src/components/data-grid/index.d.ts +1 -0
  22. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +1 -18
  23. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +12 -0
  24. package/dist/@types/packages/vue2/src/components/internal/avatar/avatar.vue.d.ts +38 -42
  25. package/dist/@types/packages/vue2/src/components/internal/radio-input/index.d.ts +2 -2
  26. package/dist/@types/packages/vue2/src/components/internal/radio-input/radio-input.vue.d.ts +1 -1
  27. package/dist/@types/packages/vue2/src/components/segmented-control/components/segmented-control-button/segmented-control-button.vue.d.ts +59 -85
  28. package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.types.d.ts +3 -0
  29. package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.vue.d.ts +48 -80
  30. package/dist/@types/packages/vue2/src/components/status/status.vue.d.ts +19 -16
  31. package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +36 -54
  32. package/dist/@types/packages/vue2/src/components/structured-list/structured-list.vue.d.ts +27 -22
  33. package/dist/@types/packages/vue2/src/components/tabs/tabs.vue.d.ts +76 -1
  34. package/dist/@types/packages/vue2/src/components/tutorial/tutorial.vue.d.ts +21 -2
  35. package/dist/@types/packages/vue2/src/index.d.ts +2 -0
  36. package/dist/@types/packages/vue2/src/templates/dashboard-template/components/dashboard-section/dashboard-section.vue.d.ts +78 -0
  37. package/dist/@types/packages/vue2/src/templates/dashboard-template/dashboard-template.types.d.ts +8 -0
  38. package/dist/@types/packages/vue2/src/templates/dashboard-template/dashboard-template.vue.d.ts +103 -0
  39. package/dist/@types/packages/vue2/src/templates/dashboard-template/index.d.ts +3 -0
  40. package/dist/@types/packages/vue2/src/utils/ts/storybook.d.ts +1 -12
  41. package/dist/accordion.js +3 -125
  42. package/dist/accordion.js.map +1 -1
  43. package/dist/action-bar.js +2 -270
  44. package/dist/action-bar.js.map +1 -1
  45. package/dist/alert.js +5 -181
  46. package/dist/alert.js.map +1 -1
  47. package/dist/assets/{index10.css → accordion-item.css} +1 -1
  48. package/dist/assets/{index17.css → action-bar.css} +1 -1
  49. package/dist/assets/alert.css +1 -0
  50. package/dist/assets/base-modal.css +1 -1
  51. package/dist/assets/button-actions.css +1 -1
  52. package/dist/assets/button.css +1 -1
  53. package/dist/assets/{index26.css → card.css} +1 -1
  54. package/dist/assets/checkbox-input.css +1 -1
  55. package/dist/assets/{index14.css → code-snippet.css} +1 -1
  56. package/dist/assets/dashboard-section.css +1 -0
  57. package/dist/assets/dashed-underline.css +1 -0
  58. package/dist/assets/data-grid-template.css +1 -0
  59. package/dist/assets/data-grid.css +1 -0
  60. package/dist/assets/dialog-page.css +1 -1
  61. package/dist/assets/dropdown-default-textbox.css +1 -1
  62. package/dist/assets/dropdown.css +1 -1
  63. package/dist/assets/filter-bar.css +1 -0
  64. package/dist/assets/{index43.css → form-layout-title.css} +1 -1
  65. package/dist/assets/{index39.css → input-field.css} +1 -1
  66. package/dist/assets/link.css +1 -0
  67. package/dist/assets/listbox-option-tag.css +1 -1
  68. package/dist/assets/{index7.css → menu.css} +1 -1
  69. package/dist/assets/{index27.css → modal-fullscreen.css} +1 -1
  70. package/dist/assets/{index19.css → popover.css} +1 -1
  71. package/dist/assets/radio-input.css +1 -1
  72. package/dist/assets/segmented-control.css +1 -0
  73. package/dist/assets/selection-card-group.css +1 -0
  74. package/dist/assets/{index44.css → sidepanel.css} +1 -1
  75. package/dist/assets/status.css +1 -0
  76. package/dist/assets/structured-list-item.css +1 -0
  77. package/dist/assets/{index32.css → tabs.css} +1 -1
  78. package/dist/assets/toggle.css +1 -0
  79. package/dist/assets/tutorial.css +1 -0
  80. package/dist/assets/use-cached-selected-values.css +1 -1
  81. package/dist/avatar-image.js +1 -1
  82. package/dist/badge.js +13 -14
  83. package/dist/badge.js.map +1 -1
  84. package/dist/button.js +14 -89
  85. package/dist/button.js.map +1 -1
  86. package/dist/card.js +4 -203
  87. package/dist/card.js.map +1 -1
  88. package/dist/checkbox.js +8 -194
  89. package/dist/checkbox.js.map +1 -1
  90. package/dist/chunks/1-generic-use.CZhwP2Yc.js +5 -0
  91. package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +1 -0
  92. package/dist/chunks/1-generic-use.R6x8PEGA.js +5 -0
  93. package/dist/chunks/1-generic-use.R6x8PEGA.js.map +1 -0
  94. package/dist/chunks/2-generic-use.CNKjB4B7.js +5 -0
  95. package/dist/chunks/2-generic-use.CNKjB4B7.js.map +1 -0
  96. package/dist/chunks/2-generic-use.w0fUhovx.js +5 -0
  97. package/dist/chunks/2-generic-use.w0fUhovx.js.map +1 -0
  98. package/dist/chunks/3-generic-use.BLEzR04g.js +5 -0
  99. package/dist/chunks/3-generic-use.BLEzR04g.js.map +1 -0
  100. package/dist/chunks/3-generic-use.D3NFHgI4.js +5 -0
  101. package/dist/chunks/3-generic-use.D3NFHgI4.js.map +1 -0
  102. package/dist/chunks/4-generic-use.CULEpvgj.js +5 -0
  103. package/dist/chunks/4-generic-use.CULEpvgj.js.map +1 -0
  104. package/dist/chunks/4-generic-use.D82y3n39.js +5 -0
  105. package/dist/chunks/4-generic-use.D82y3n39.js.map +1 -0
  106. package/dist/chunks/{_plugin-vue_export-helper.dad06003.js → _plugin-vue_export-helper.CHgC5LLL.js} +1 -1
  107. package/dist/chunks/_plugin-vue_export-helper.CHgC5LLL.js.map +1 -0
  108. package/dist/chunks/accordion-item.BcfGYvjn.js +126 -0
  109. package/dist/chunks/accordion-item.BcfGYvjn.js.map +1 -0
  110. package/dist/chunks/action-bar.BvAtk-jI.js +188 -0
  111. package/dist/chunks/action-bar.BvAtk-jI.js.map +1 -0
  112. package/dist/chunks/adding-payment-methods.BJZLPxtM.js +5 -0
  113. package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +1 -0
  114. package/dist/chunks/adding-payment-methods.Dle8zt43.js +5 -0
  115. package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +1 -0
  116. package/dist/chunks/adyen-giving.Ffw_DlJK.js +5 -0
  117. package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +1 -0
  118. package/dist/chunks/adyen-giving.LiKHj_jY.js +5 -0
  119. package/dist/chunks/adyen-giving.LiKHj_jY.js.map +1 -0
  120. package/dist/chunks/alert.C0gIf7Ka.js +162 -0
  121. package/dist/chunks/alert.C0gIf7Ka.js.map +1 -0
  122. package/dist/chunks/{aria-label.ac9651a5.js → aria-label.CaUURpnB.js} +1 -1
  123. package/dist/chunks/{aria-label.ac9651a5.js.map → aria-label.CaUURpnB.js.map} +1 -1
  124. package/dist/chunks/avatar-image.DO4w_loj.js +61 -0
  125. package/dist/chunks/avatar-image.DO4w_loj.js.map +1 -0
  126. package/dist/chunks/{base-button.e84acf30.js → base-button.ewkxHD6W.js} +24 -25
  127. package/dist/chunks/{base-button.e84acf30.js.map → base-button.ewkxHD6W.js.map} +1 -1
  128. package/dist/chunks/{base-modal.29e062d0.js → base-modal.BgYlnM_Q.js} +81 -83
  129. package/dist/chunks/{base-modal.29e062d0.js.map → base-modal.BgYlnM_Q.js.map} +1 -1
  130. package/dist/chunks/{base-modal.keys.b08a6bdf.js → base-modal.keys.C2PQXcE2.js} +1 -1
  131. package/dist/chunks/{base-modal.keys.b08a6bdf.js.map → base-modal.keys.C2PQXcE2.js.map} +1 -1
  132. package/dist/chunks/{button-actions-with-menu.7fce47a2.js → button-actions-with-menu.C14zvgVo.js} +14 -15
  133. package/dist/chunks/{button-actions-with-menu.7fce47a2.js.map → button-actions-with-menu.C14zvgVo.js.map} +1 -1
  134. package/dist/chunks/{button-actions.642b37de.js → button-actions.hGhRdgC2.js} +41 -40
  135. package/dist/chunks/button-actions.hGhRdgC2.js.map +1 -0
  136. package/dist/chunks/{button.60dad578.js → button.DoqHEvPh.js} +38 -38
  137. package/dist/chunks/button.DoqHEvPh.js.map +1 -0
  138. package/dist/chunks/{calendar.f38cdab9.js → calendar.CwULNbSL.js} +285 -326
  139. package/dist/chunks/{calendar.f38cdab9.js.map → calendar.CwULNbSL.js.map} +1 -1
  140. package/dist/chunks/card.C7zLKdcy.js +205 -0
  141. package/dist/chunks/card.C7zLKdcy.js.map +1 -0
  142. package/dist/chunks/checkbox-group.BcT-eZ2p.js +192 -0
  143. package/dist/chunks/checkbox-group.BcT-eZ2p.js.map +1 -0
  144. package/dist/chunks/{checkbox-input.ab758a81.js → checkbox-input.CR1lHf7f.js} +43 -43
  145. package/dist/chunks/{checkbox-input.ab758a81.js.map → checkbox-input.CR1lHf7f.js.map} +1 -1
  146. package/dist/chunks/{checkbox.f55ee3a5.js → checkbox.xjIFibII.js} +38 -39
  147. package/dist/chunks/{checkbox.f55ee3a5.js.map → checkbox.xjIFibII.js.map} +1 -1
  148. package/dist/chunks/checkmark-circle-fill.D29b-JWj.js +44 -0
  149. package/dist/chunks/{checkmark-circle-fill.f3a69c6a.js.map → checkmark-circle-fill.D29b-JWj.js.map} +1 -1
  150. package/dist/chunks/{checkmark-small.d7e31e5e.js → checkmark-small.BCeGkayS.js} +10 -10
  151. package/dist/chunks/{checkmark-small.d7e31e5e.js.map → checkmark-small.BCeGkayS.js.map} +1 -1
  152. package/dist/chunks/{chevron-left.963d35e9.js → chevron-left.4JHuWe7i.js} +18 -18
  153. package/dist/chunks/{chevron-left.963d35e9.js.map → chevron-left.4JHuWe7i.js.map} +1 -1
  154. package/dist/chunks/{chevron-up.05ca20db.js → chevron-up.5-KtIp8i.js} +19 -19
  155. package/dist/chunks/{chevron-up.05ca20db.js.map → chevron-up.5-KtIp8i.js.map} +1 -1
  156. package/dist/chunks/click-outside.DABh6NLr.js +23 -0
  157. package/dist/chunks/click-outside.DABh6NLr.js.map +1 -0
  158. package/dist/chunks/code-snippet.e8bxDBCO.js +1052 -0
  159. package/dist/chunks/code-snippet.e8bxDBCO.js.map +1 -0
  160. package/dist/chunks/{controls-group.9e0f17b2.js → controls-group.DWu8NqKL.js} +17 -18
  161. package/dist/chunks/{controls-group.9e0f17b2.js.map → controls-group.DWu8NqKL.js.map} +1 -1
  162. package/dist/chunks/{copy.852d4cb8.js → copy.BhO7oRgC.js} +39 -40
  163. package/dist/chunks/{copy.852d4cb8.js.map → copy.BhO7oRgC.js.map} +1 -1
  164. package/dist/chunks/{country.types.002caff2.js → country.types.Br0AjxGy.js} +5 -5
  165. package/dist/chunks/{country.types.002caff2.js.map → country.types.Br0AjxGy.js.map} +1 -1
  166. package/dist/chunks/country.vX94O3uR.js +98 -0
  167. package/dist/chunks/country.vX94O3uR.js.map +1 -0
  168. package/dist/chunks/{cross-circle-fill.81925c7f.js → cross-circle-fill.vLaelNTN.js} +12 -12
  169. package/dist/chunks/{cross-circle-fill.81925c7f.js.map → cross-circle-fill.vLaelNTN.js.map} +1 -1
  170. package/dist/chunks/cross-small.48UCoOqB.js +29 -0
  171. package/dist/chunks/{cross-small.9bc6a02f.js.map → cross-small.48UCoOqB.js.map} +1 -1
  172. package/dist/chunks/cross.BlL0FyHo.js +29 -0
  173. package/dist/chunks/{cross.a60533f6.js.map → cross.BlL0FyHo.js.map} +1 -1
  174. package/dist/chunks/currency.CgVd9fQN.js +121 -0
  175. package/dist/chunks/currency.CgVd9fQN.js.map +1 -0
  176. package/dist/chunks/dashboard-section.DKeDjvkB.js +167 -0
  177. package/dist/chunks/dashboard-section.DKeDjvkB.js.map +1 -0
  178. package/dist/chunks/dashed-underline.DGTW7Y_-.js +79 -0
  179. package/dist/chunks/dashed-underline.DGTW7Y_-.js.map +1 -0
  180. package/dist/chunks/data-grid-template.6Nls-D4o.js +89 -0
  181. package/dist/chunks/data-grid-template.6Nls-D4o.js.map +1 -0
  182. package/dist/chunks/{data-grid-template.keys.a819a991.js → data-grid-template.keys.2_AkxuNT.js} +1 -1
  183. package/dist/chunks/{data-grid-template.keys.a819a991.js.map → data-grid-template.keys.2_AkxuNT.js.map} +1 -1
  184. package/dist/chunks/data-grid.BwfZhc09.js +2733 -0
  185. package/dist/chunks/data-grid.BwfZhc09.js.map +1 -0
  186. package/dist/chunks/{date-input.9186a0bf.js → date-input.BqBdAO1E.js} +1 -1
  187. package/dist/chunks/{date-input.9186a0bf.js.map → date-input.BqBdAO1E.js.map} +1 -1
  188. package/dist/chunks/date-picker.CoPmllNh.js +273 -0
  189. package/dist/chunks/date-picker.CoPmllNh.js.map +1 -0
  190. package/dist/chunks/{index.96cd0d4c.js → date-range-picker.CiwDo2jW.js} +216 -218
  191. package/dist/chunks/date-range-picker.CiwDo2jW.js.map +1 -0
  192. package/dist/chunks/{index.146f967e.js → date.2ndGvIGE.js} +36 -41
  193. package/dist/chunks/date.2ndGvIGE.js.map +1 -0
  194. package/dist/chunks/{debounce.b5ef6acf.js → debounce.DUTu11PS.js} +1 -1
  195. package/dist/chunks/{debounce.b5ef6acf.js.map → debounce.DUTu11PS.js.map} +1 -1
  196. package/dist/chunks/{dialog-page.ea67bb14.js → dialog-page.BLqqR73w.js} +48 -49
  197. package/dist/chunks/{dialog-page.ea67bb14.js.map → dialog-page.BLqqR73w.js.map} +1 -1
  198. package/dist/chunks/divider.CnwfddJD.js +22 -0
  199. package/dist/chunks/divider.CnwfddJD.js.map +1 -0
  200. package/dist/chunks/{dropdown-default-textbox.ad5063c2.js → dropdown-default-textbox.-Oy2eT40.js} +75 -77
  201. package/dist/chunks/{dropdown-default-textbox.ad5063c2.js.map → dropdown-default-textbox.-Oy2eT40.js.map} +1 -1
  202. package/dist/chunks/dropdown-tag.C-LxVWlt.js +201 -0
  203. package/dist/chunks/dropdown-tag.C-LxVWlt.js.map +1 -0
  204. package/dist/chunks/{dropdown.d8587f36.js → dropdown.CxBlK83Q.js} +221 -233
  205. package/dist/chunks/dropdown.CxBlK83Q.js.map +1 -0
  206. package/dist/chunks/empty-state.BBxgpI-D.js +185 -0
  207. package/dist/chunks/empty-state.BBxgpI-D.js.map +1 -0
  208. package/dist/chunks/{error-message.3fb5573a.js → error-message.DyjHMyEZ.js} +30 -32
  209. package/dist/chunks/{error-message.3fb5573a.js.map → error-message.DyjHMyEZ.js.map} +1 -1
  210. package/dist/chunks/events.CMzGybJJ.js +47 -0
  211. package/dist/chunks/events.CMzGybJJ.js.map +1 -0
  212. package/dist/chunks/filter-bar.U2ZcPmSU.js +2775 -0
  213. package/dist/chunks/filter-bar.U2ZcPmSU.js.map +1 -0
  214. package/dist/chunks/{fixed-scroller.59aefd1b.js → fixed-scroller.DV7HtKDr.js} +20 -21
  215. package/dist/chunks/{fixed-scroller.59aefd1b.js.map → fixed-scroller.DV7HtKDr.js.map} +1 -1
  216. package/dist/chunks/{index.8be283d5.js → focus-trap.CwkbHfT8.js} +20 -20
  217. package/dist/chunks/focus-trap.CwkbHfT8.js.map +1 -0
  218. package/dist/chunks/{footer-actions.89e68269.js → footer-actions.D9nQFagi.js} +20 -21
  219. package/dist/chunks/{footer-actions.89e68269.js.map → footer-actions.D9nQFagi.js.map} +1 -1
  220. package/dist/chunks/form-layout-title.4Gz8-dJv.js +204 -0
  221. package/dist/chunks/form-layout-title.4Gz8-dJv.js.map +1 -0
  222. package/dist/chunks/{form-layout.types.a7a1438d.js → form-layout.types.D3EKzbE7.js} +1 -1
  223. package/dist/chunks/{form-layout.types.a7a1438d.js.map → form-layout.types.D3EKzbE7.js.map} +1 -1
  224. package/dist/chunks/{get-slot-text.bead058f.js → get-slot-text.D5WBGjic.js} +1 -1
  225. package/dist/chunks/{get-slot-text.bead058f.js.map → get-slot-text.D5WBGjic.js.map} +1 -1
  226. package/dist/chunks/{grid-layout.c2fe3057.js → grid-layout.CqLbbEzI.js} +15 -15
  227. package/dist/chunks/{grid-layout.c2fe3057.js.map → grid-layout.CqLbbEzI.js.map} +1 -1
  228. package/dist/chunks/header.Cr7115vM.js +307 -0
  229. package/dist/chunks/header.Cr7115vM.js.map +1 -0
  230. package/dist/chunks/{i18n.f7e6533e.js → i18n.DY5YXG5f.js} +46 -89
  231. package/dist/chunks/{i18n.f7e6533e.js.map → i18n.DY5YXG5f.js.map} +1 -1
  232. package/dist/chunks/image.0KzfycGE.js +78 -0
  233. package/dist/chunks/image.0KzfycGE.js.map +1 -0
  234. package/dist/chunks/{index.fdf12170.js → index.B_EJflcs.js} +2 -2
  235. package/dist/chunks/{index.fdf12170.js.map → index.B_EJflcs.js.map} +1 -1
  236. package/dist/chunks/{index.f55fdc32.js → index.B_UZQ6qF.js} +209 -243
  237. package/dist/chunks/{index.f55fdc32.js.map → index.B_UZQ6qF.js.map} +1 -1
  238. package/dist/chunks/index.Dytpif0G.js +125 -0
  239. package/dist/chunks/index.Dytpif0G.js.map +1 -0
  240. package/dist/chunks/{index.d80206ed.js → index.Z84QE0E2.js} +2 -2
  241. package/dist/chunks/{index.d80206ed.js.map → index.Z84QE0E2.js.map} +1 -1
  242. package/dist/chunks/{index.86453263.js → index.xqFSZOAb.js} +2 -2
  243. package/dist/chunks/{index.86453263.js.map → index.xqFSZOAb.js.map} +1 -1
  244. package/dist/chunks/info-icon.DvL1e5Iu.js +45 -0
  245. package/dist/chunks/info-icon.DvL1e5Iu.js.map +1 -0
  246. package/dist/chunks/{info.205b4496.js → info.CNegCnli.js} +17 -17
  247. package/dist/chunks/{info.205b4496.js.map → info.CNegCnli.js.map} +1 -1
  248. package/dist/chunks/input-field.iH1ICJkQ.js +344 -0
  249. package/dist/chunks/input-field.iH1ICJkQ.js.map +1 -0
  250. package/dist/chunks/internal-error.BLZodVBE.js +5 -0
  251. package/dist/chunks/internal-error.BLZodVBE.js.map +1 -0
  252. package/dist/chunks/internal-error.BmrwJFpR.js +5 -0
  253. package/dist/chunks/internal-error.BmrwJFpR.js.map +1 -0
  254. package/dist/chunks/{keyboard-navigation.ca47dfa8.js → keyboard-navigation.Clz1jOaA.js} +2 -2
  255. package/dist/chunks/{keyboard-navigation.ca47dfa8.js.map → keyboard-navigation.Clz1jOaA.js.map} +1 -1
  256. package/dist/chunks/link.DeNN3Amu.js +111 -0
  257. package/dist/chunks/link.DeNN3Amu.js.map +1 -0
  258. package/dist/chunks/listbox-option-tag.Bv4-hXnG.js +94 -0
  259. package/dist/chunks/listbox-option-tag.Bv4-hXnG.js.map +1 -0
  260. package/dist/chunks/{loading-button.0391ad8b.js → loading-button.BI32pZiW.js} +19 -20
  261. package/dist/chunks/{loading-button.0391ad8b.js.map → loading-button.BI32pZiW.js.map} +1 -1
  262. package/dist/chunks/loading-indicator.BFMEf39U.js +44 -0
  263. package/dist/chunks/loading-indicator.BFMEf39U.js.map +1 -0
  264. package/dist/chunks/{index.030c1dd7.js → menu.DN-xhDQU.js} +80 -82
  265. package/dist/chunks/menu.DN-xhDQU.js.map +1 -0
  266. package/dist/chunks/modal-fullscreen.CeogBGfr.js +264 -0
  267. package/dist/chunks/modal-fullscreen.CeogBGfr.js.map +1 -0
  268. package/dist/chunks/{modal-fullscreen.keys.b9f31632.js → modal-fullscreen.keys.CMba3hYp.js} +1 -1
  269. package/dist/chunks/{modal-fullscreen.keys.b9f31632.js.map → modal-fullscreen.keys.CMba3hYp.js.map} +1 -1
  270. package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.BBef1Rl9.js +495 -0
  271. package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.BBef1Rl9.js.map +1 -0
  272. package/dist/chunks/no-results-found.Bg_ZcEid.js +5 -0
  273. package/dist/chunks/no-results-found.Bg_ZcEid.js.map +1 -0
  274. package/dist/chunks/no-results-found.BqvYsBR6.js +5 -0
  275. package/dist/chunks/no-results-found.BqvYsBR6.js.map +1 -0
  276. package/dist/chunks/notifications-cleared.BMZk37uf.js +5 -0
  277. package/dist/chunks/notifications-cleared.BMZk37uf.js.map +1 -0
  278. package/dist/chunks/notifications-cleared.C7W9ZXY7.js +5 -0
  279. package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +1 -0
  280. package/dist/chunks/{on-click-outside.3e0c3e2a.js → on-click-outside.CcNG5w7_.js} +1 -1
  281. package/dist/chunks/{on-click-outside.3e0c3e2a.js.map → on-click-outside.CcNG5w7_.js.map} +1 -1
  282. package/dist/chunks/page-not-found.COJLPVaU.js +5 -0
  283. package/dist/chunks/page-not-found.COJLPVaU.js.map +1 -0
  284. package/dist/chunks/page-not-found.DWW6W-PZ.js +5 -0
  285. package/dist/chunks/page-not-found.DWW6W-PZ.js.map +1 -0
  286. package/dist/chunks/pagination.BwG1MF4j.js +633 -0
  287. package/dist/chunks/pagination.BwG1MF4j.js.map +1 -0
  288. package/dist/chunks/{payment-method.31a68b9b.js → payment-method.NCItxw1D.js} +26 -27
  289. package/dist/chunks/{payment-method.31a68b9b.js.map → payment-method.NCItxw1D.js.map} +1 -1
  290. package/dist/chunks/payment-method.types.CJKfZQN5.js +5 -0
  291. package/dist/chunks/payment-method.types.CJKfZQN5.js.map +1 -0
  292. package/dist/chunks/planned-maintenance.C61sWB9h.js +5 -0
  293. package/dist/chunks/planned-maintenance.C61sWB9h.js.map +1 -0
  294. package/dist/chunks/planned-maintenance.jmWYTdet.js +5 -0
  295. package/dist/chunks/planned-maintenance.jmWYTdet.js.map +1 -0
  296. package/dist/chunks/{index.5bdebf9d.js → popover.DRb2GW7t.js} +48 -49
  297. package/dist/chunks/popover.DRb2GW7t.js.map +1 -0
  298. package/dist/chunks/{index.9bf04b01.js → popper-container.B76aE-3-.js} +180 -182
  299. package/dist/chunks/popper-container.B76aE-3-.js.map +1 -0
  300. package/dist/chunks/radio-group.B9HCffiZ.js +296 -0
  301. package/dist/chunks/radio-group.B9HCffiZ.js.map +1 -0
  302. package/dist/chunks/{radio-input.1dd15424.js → radio-input.BEzK-fgR.js} +13 -14
  303. package/dist/chunks/radio-input.BEzK-fgR.js.map +1 -0
  304. package/dist/chunks/referrals.BvtT-kQS.js +5 -0
  305. package/dist/chunks/referrals.BvtT-kQS.js.map +1 -0
  306. package/dist/chunks/referrals.aX8WZigH.js +5 -0
  307. package/dist/chunks/referrals.aX8WZigH.js.map +1 -0
  308. package/dist/chunks/refresh.BfxRdaQb.js +29 -0
  309. package/dist/chunks/{refresh.53691839.js.map → refresh.BfxRdaQb.js.map} +1 -1
  310. package/dist/chunks/{resize.a041304d.js → resize.Bqks3WUm.js} +1 -1
  311. package/dist/chunks/{resize.a041304d.js.map → resize.Bqks3WUm.js.map} +1 -1
  312. package/dist/chunks/search-bar.DxskyM4e.js +107 -0
  313. package/dist/chunks/search-bar.DxskyM4e.js.map +1 -0
  314. package/dist/chunks/{search.4e4ee4dd.js → search.0lh99z1F.js} +16 -16
  315. package/dist/chunks/{search.4e4ee4dd.js.map → search.0lh99z1F.js.map} +1 -1
  316. package/dist/chunks/secondary-nav.D66nxbU-.js +112 -0
  317. package/dist/chunks/secondary-nav.D66nxbU-.js.map +1 -0
  318. package/dist/chunks/segmented-control.NnFfAdTq.js +142 -0
  319. package/dist/chunks/segmented-control.NnFfAdTq.js.map +1 -0
  320. package/dist/chunks/segmented-control.types.BHRLV8KU.js +5 -0
  321. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -0
  322. package/dist/chunks/selection-card-group.C-YLePO4.js +385 -0
  323. package/dist/chunks/selection-card-group.C-YLePO4.js.map +1 -0
  324. package/dist/chunks/sidepanel.B-LtA15e.js +230 -0
  325. package/dist/chunks/sidepanel.B-LtA15e.js.map +1 -0
  326. package/dist/chunks/{sidepanel.keys.1ed8a57c.js → sidepanel.keys.R0DKQuYx.js} +1 -1
  327. package/dist/chunks/{sidepanel.keys.1ed8a57c.js.map → sidepanel.keys.R0DKQuYx.js.map} +1 -1
  328. package/dist/chunks/status.types.Bqdcr1WO.js +42 -0
  329. package/dist/chunks/status.types.Bqdcr1WO.js.map +1 -0
  330. package/dist/chunks/step.CVoaYmVZ.js +284 -0
  331. package/dist/chunks/step.CVoaYmVZ.js.map +1 -0
  332. package/dist/chunks/structured-list-item.DQiPKhOI.js +101 -0
  333. package/dist/chunks/structured-list-item.DQiPKhOI.js.map +1 -0
  334. package/dist/chunks/success.DhioLvPD.js +5 -0
  335. package/dist/chunks/success.DhioLvPD.js.map +1 -0
  336. package/dist/chunks/success.nNwxJRBS.js +5 -0
  337. package/dist/chunks/success.nNwxJRBS.js.map +1 -0
  338. package/dist/chunks/summary-grid-item-custom.B941Kdvq.js +720 -0
  339. package/dist/chunks/summary-grid-item-custom.B941Kdvq.js.map +1 -0
  340. package/dist/chunks/{summary-grid.keys.1d1028c2.js → summary-grid.keys.BBbFrFGF.js} +1 -1
  341. package/dist/chunks/{summary-grid.keys.1d1028c2.js.map → summary-grid.keys.BBbFrFGF.js.map} +1 -1
  342. package/dist/chunks/tabs.TNKpNgTM.js +185 -0
  343. package/dist/chunks/tabs.TNKpNgTM.js.map +1 -0
  344. package/dist/chunks/{tabs.keys.358742f2.js → tabs.keys.Bc2pSKRw.js} +1 -1
  345. package/dist/chunks/{tabs.keys.358742f2.js.map → tabs.keys.Bc2pSKRw.js.map} +1 -1
  346. package/dist/chunks/tag.CPhtHjDD.js +75 -0
  347. package/dist/chunks/tag.CPhtHjDD.js.map +1 -0
  348. package/dist/chunks/{teleport.afeb4c3b.js → teleport.L8qFCYpr.js} +20 -21
  349. package/dist/chunks/{teleport.afeb4c3b.js.map → teleport.L8qFCYpr.js.map} +1 -1
  350. package/dist/chunks/textarea.CJ8xiMjv.js +288 -0
  351. package/dist/chunks/textarea.CJ8xiMjv.js.map +1 -0
  352. package/dist/chunks/timeline-item.Cap9MXkH.js +531 -0
  353. package/dist/chunks/timeline-item.Cap9MXkH.js.map +1 -0
  354. package/dist/chunks/toast.Bwo57uNy.js +215 -0
  355. package/dist/chunks/toast.Bwo57uNy.js.map +1 -0
  356. package/dist/chunks/toggle-button.q9F2dsIi.js +79 -0
  357. package/dist/chunks/toggle-button.q9F2dsIi.js.map +1 -0
  358. package/dist/chunks/toggle.DmTjGY0a.js +161 -0
  359. package/dist/chunks/toggle.DmTjGY0a.js.map +1 -0
  360. package/dist/chunks/{tooltip.1084d92b.js → tooltip.CTR3s-Rm.js} +60 -61
  361. package/dist/chunks/tooltip.CTR3s-Rm.js.map +1 -0
  362. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.WNVsOZdp.js +408 -0
  363. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.WNVsOZdp.js.map +1 -0
  364. package/dist/chunks/typography.D7onlQ9v.js +73 -0
  365. package/dist/chunks/typography.D7onlQ9v.js.map +1 -0
  366. package/dist/chunks/{unique-id.a2a2b458.js → unique-id.XFfoKuc2.js} +14 -20
  367. package/dist/chunks/{unique-id.a2a2b458.js.map → unique-id.XFfoKuc2.js.map} +1 -1
  368. package/dist/chunks/upload-files.5wQwbfkp.js +5 -0
  369. package/dist/chunks/upload-files.5wQwbfkp.js.map +1 -0
  370. package/dist/chunks/upload-files.jTQY6y2X.js +5 -0
  371. package/dist/chunks/upload-files.jTQY6y2X.js.map +1 -0
  372. package/dist/chunks/{use-bento-toast-controller.98d8613c.js → use-bento-toast-controller.C0A5tZgd.js} +3 -3
  373. package/dist/chunks/{use-bento-toast-controller.98d8613c.js.map → use-bento-toast-controller.C0A5tZgd.js.map} +1 -1
  374. package/dist/chunks/{use-cached-selected-values.852aeafe.js → use-cached-selected-values.BQBWFTvi.js} +490 -476
  375. package/dist/chunks/use-cached-selected-values.BQBWFTvi.js.map +1 -0
  376. package/dist/chunks/{use-click-outside.941d1600.js → use-click-outside.DbjR7Lh4.js} +2 -2
  377. package/dist/chunks/{use-click-outside.941d1600.js.map → use-click-outside.DbjR7Lh4.js.map} +1 -1
  378. package/dist/chunks/{use-country-items.32e30471.js → use-country-items.CongYNiX.js} +4 -4
  379. package/dist/chunks/{use-country-items.32e30471.js.map → use-country-items.CongYNiX.js.map} +1 -1
  380. package/dist/chunks/{use-default-slot-validator.1169c221.js → use-default-slot-validator.O02rzsob.js} +1 -1
  381. package/dist/chunks/{use-default-slot-validator.1169c221.js.map → use-default-slot-validator.O02rzsob.js.map} +1 -1
  382. package/dist/chunks/{use-expandable-content-height.62fc84e5.js → use-expandable-content-height.GkjjbmPy.js} +1 -1
  383. package/dist/chunks/{use-expandable-content-height.62fc84e5.js.map → use-expandable-content-height.GkjjbmPy.js.map} +1 -1
  384. package/dist/chunks/{use-form-layout-loading.d03e5d48.js → use-form-layout-loading.D3lALhtC.js} +2 -2
  385. package/dist/chunks/{use-form-layout-loading.d03e5d48.js.map → use-form-layout-loading.D3lALhtC.js.map} +1 -1
  386. package/dist/chunks/{use-has-slot.4d98bf29.js → use-has-slot.B7eQSabc.js} +1 -1
  387. package/dist/chunks/{use-has-slot.4d98bf29.js.map → use-has-slot.B7eQSabc.js.map} +1 -1
  388. package/dist/chunks/warning-filled.DHw1rVWs.js +29 -0
  389. package/dist/chunks/warning-filled.DHw1rVWs.js.map +1 -0
  390. package/dist/chunks/wrong-environment.BOsyKdRI.js +5 -0
  391. package/dist/chunks/wrong-environment.BOsyKdRI.js.map +1 -0
  392. package/dist/chunks/wrong-environment.BiHTPtbJ.js +5 -0
  393. package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +1 -0
  394. package/dist/click-outside.js +2 -20
  395. package/dist/click-outside.js.map +1 -1
  396. package/dist/code-snippet.js +5 -2131
  397. package/dist/code-snippet.js.map +1 -1
  398. package/dist/country.js +8 -101
  399. package/dist/country.js.map +1 -1
  400. package/dist/currency.js +3 -118
  401. package/dist/currency.js.map +1 -1
  402. package/dist/dashboard-template.js +6 -0
  403. package/dist/dashboard-template.js.map +1 -0
  404. package/dist/dashed-underline.js +5 -0
  405. package/dist/dashed-underline.js.map +1 -0
  406. package/dist/data-grid-template.js +2 -87
  407. package/dist/data-grid-template.js.map +1 -1
  408. package/dist/data-grid.js +8 -2643
  409. package/dist/data-grid.js.map +1 -1
  410. package/dist/date-picker.js +5 -272
  411. package/dist/date-picker.js.map +1 -1
  412. package/dist/date-range-picker.js +2 -2
  413. package/dist/date.js +1 -1
  414. package/dist/divider.js +1 -1
  415. package/dist/dropdown.js +12 -205
  416. package/dist/dropdown.js.map +1 -1
  417. package/dist/empty-state.js +5 -176
  418. package/dist/empty-state.js.map +1 -1
  419. package/dist/filter-bar.js +5 -2778
  420. package/dist/filter-bar.js.map +1 -1
  421. package/dist/focus-trap.js +1 -1
  422. package/dist/form-layout.js +5 -205
  423. package/dist/form-layout.js.map +1 -1
  424. package/dist/header.js +2 -306
  425. package/dist/header.js.map +1 -1
  426. package/dist/image.js +4 -75
  427. package/dist/image.js.map +1 -1
  428. package/dist/index.js +263 -256
  429. package/dist/index.js.map +1 -1
  430. package/dist/info-icon.js +2 -43
  431. package/dist/info-icon.js.map +1 -1
  432. package/dist/input-field.js +7 -342
  433. package/dist/input-field.js.map +1 -1
  434. package/dist/internal.js +15 -15
  435. package/dist/link.js +1 -1
  436. package/dist/loading-indicator.js +3 -41
  437. package/dist/loading-indicator.js.map +1 -1
  438. package/dist/menu.js +1 -1
  439. package/dist/modal-fullscreen.js +3 -263
  440. package/dist/modal-fullscreen.js.map +1 -1
  441. package/dist/modal.js +11 -501
  442. package/dist/modal.js.map +1 -1
  443. package/dist/pagination.js +2 -634
  444. package/dist/pagination.js.map +1 -1
  445. package/dist/payment-method.js +4 -4
  446. package/dist/payment-method.js.map +1 -1
  447. package/dist/popover.js +1 -1
  448. package/dist/popper-container.js +1 -1
  449. package/dist/radio-group.js +6 -296
  450. package/dist/radio-group.js.map +1 -1
  451. package/dist/search-bar.js +6 -107
  452. package/dist/search-bar.js.map +1 -1
  453. package/dist/secondary-nav.js +2 -112
  454. package/dist/secondary-nav.js.map +1 -1
  455. package/dist/segmented-control.js +4 -255
  456. package/dist/segmented-control.js.map +1 -1
  457. package/dist/selection-card.js +4 -384
  458. package/dist/selection-card.js.map +1 -1
  459. package/dist/sidepanel.js +4 -229
  460. package/dist/sidepanel.js.map +1 -1
  461. package/dist/status.js +3 -50
  462. package/dist/status.js.map +1 -1
  463. package/dist/stepper.js +5 -283
  464. package/dist/stepper.js.map +1 -1
  465. package/dist/structured-list.js +1 -1
  466. package/dist/summary-grid.js +9 -720
  467. package/dist/summary-grid.js.map +1 -1
  468. package/dist/tabs.js +3 -182
  469. package/dist/tabs.js.map +1 -1
  470. package/dist/tag.js +3 -73
  471. package/dist/tag.js.map +1 -1
  472. package/dist/textarea.js +2 -286
  473. package/dist/textarea.js.map +1 -1
  474. package/dist/timeline.js +7 -530
  475. package/dist/timeline.js.map +1 -1
  476. package/dist/toast.js +2 -215
  477. package/dist/toast.js.map +1 -1
  478. package/dist/toggle.js +4 -159
  479. package/dist/toggle.js.map +1 -1
  480. package/dist/tutorial.js +2 -392
  481. package/dist/tutorial.js.map +1 -1
  482. package/dist/typography.js +1 -1
  483. package/dist/web-types.json +1 -1
  484. package/package.json +10 -10
  485. package/dist/assets/index11.css +0 -1
  486. package/dist/assets/index16.css +0 -1
  487. package/dist/assets/index18.css +0 -1
  488. package/dist/assets/index24.css +0 -1
  489. package/dist/assets/index25.css +0 -1
  490. package/dist/assets/index37.css +0 -1
  491. package/dist/assets/index40.css +0 -1
  492. package/dist/assets/index42.css +0 -1
  493. package/dist/assets/index46.css +0 -1
  494. package/dist/assets/index47.css +0 -1
  495. package/dist/assets/index9.css +0 -1
  496. package/dist/chunks/1-generic-use.3ea646cd.js +0 -5
  497. package/dist/chunks/1-generic-use.3ea646cd.js.map +0 -1
  498. package/dist/chunks/1-generic-use.ccca5813.js +0 -5
  499. package/dist/chunks/1-generic-use.ccca5813.js.map +0 -1
  500. package/dist/chunks/2-generic-use.443db127.js +0 -5
  501. package/dist/chunks/2-generic-use.443db127.js.map +0 -1
  502. package/dist/chunks/2-generic-use.d69d7c08.js +0 -5
  503. package/dist/chunks/2-generic-use.d69d7c08.js.map +0 -1
  504. package/dist/chunks/3-generic-use.9f74667f.js +0 -5
  505. package/dist/chunks/3-generic-use.9f74667f.js.map +0 -1
  506. package/dist/chunks/3-generic-use.fe7ae2ce.js +0 -5
  507. package/dist/chunks/3-generic-use.fe7ae2ce.js.map +0 -1
  508. package/dist/chunks/4-generic-use.0356f4a1.js +0 -5
  509. package/dist/chunks/4-generic-use.0356f4a1.js.map +0 -1
  510. package/dist/chunks/4-generic-use.cd04bad0.js +0 -5
  511. package/dist/chunks/4-generic-use.cd04bad0.js.map +0 -1
  512. package/dist/chunks/_plugin-vue_export-helper.dad06003.js.map +0 -1
  513. package/dist/chunks/adding-payment-methods.d570e03e.js +0 -5
  514. package/dist/chunks/adding-payment-methods.d570e03e.js.map +0 -1
  515. package/dist/chunks/adding-payment-methods.e419d6c0.js +0 -5
  516. package/dist/chunks/adding-payment-methods.e419d6c0.js.map +0 -1
  517. package/dist/chunks/adyen-giving.480913b5.js +0 -5
  518. package/dist/chunks/adyen-giving.480913b5.js.map +0 -1
  519. package/dist/chunks/adyen-giving.54ed984c.js +0 -5
  520. package/dist/chunks/adyen-giving.54ed984c.js.map +0 -1
  521. package/dist/chunks/button-actions.642b37de.js.map +0 -1
  522. package/dist/chunks/button.60dad578.js.map +0 -1
  523. package/dist/chunks/checkmark-circle-fill.f3a69c6a.js +0 -44
  524. package/dist/chunks/checkmark.87919b24.js +0 -29
  525. package/dist/chunks/checkmark.87919b24.js.map +0 -1
  526. package/dist/chunks/cross-small.9bc6a02f.js +0 -29
  527. package/dist/chunks/cross.a60533f6.js +0 -29
  528. package/dist/chunks/dropdown.d8587f36.js.map +0 -1
  529. package/dist/chunks/events.58c00e6d.js +0 -50
  530. package/dist/chunks/events.58c00e6d.js.map +0 -1
  531. package/dist/chunks/index.030c1dd7.js.map +0 -1
  532. package/dist/chunks/index.07122048.js +0 -23
  533. package/dist/chunks/index.07122048.js.map +0 -1
  534. package/dist/chunks/index.146f967e.js.map +0 -1
  535. package/dist/chunks/index.5bdebf9d.js.map +0 -1
  536. package/dist/chunks/index.6e0e9d21.js +0 -118
  537. package/dist/chunks/index.6e0e9d21.js.map +0 -1
  538. package/dist/chunks/index.8be283d5.js.map +0 -1
  539. package/dist/chunks/index.96cd0d4c.js.map +0 -1
  540. package/dist/chunks/index.9bf04b01.js.map +0 -1
  541. package/dist/chunks/index.a3d60e4f.js +0 -74
  542. package/dist/chunks/index.a3d60e4f.js.map +0 -1
  543. package/dist/chunks/index.ba3396d3.js +0 -62
  544. package/dist/chunks/index.ba3396d3.js.map +0 -1
  545. package/dist/chunks/index.c8ffede1.js +0 -168
  546. package/dist/chunks/index.c8ffede1.js.map +0 -1
  547. package/dist/chunks/internal-error.35cbb071.js +0 -5
  548. package/dist/chunks/internal-error.35cbb071.js.map +0 -1
  549. package/dist/chunks/internal-error.9a4823ed.js +0 -5
  550. package/dist/chunks/internal-error.9a4823ed.js.map +0 -1
  551. package/dist/chunks/listbox-option-tag.b6182b2e.js +0 -129
  552. package/dist/chunks/listbox-option-tag.b6182b2e.js.map +0 -1
  553. package/dist/chunks/no-results-found.58856d70.js +0 -5
  554. package/dist/chunks/no-results-found.58856d70.js.map +0 -1
  555. package/dist/chunks/no-results-found.cbb12f78.js +0 -5
  556. package/dist/chunks/no-results-found.cbb12f78.js.map +0 -1
  557. package/dist/chunks/notifications-cleared.71025c22.js +0 -5
  558. package/dist/chunks/notifications-cleared.71025c22.js.map +0 -1
  559. package/dist/chunks/notifications-cleared.c4f4bed4.js +0 -5
  560. package/dist/chunks/notifications-cleared.c4f4bed4.js.map +0 -1
  561. package/dist/chunks/page-not-found.a500440d.js +0 -5
  562. package/dist/chunks/page-not-found.a500440d.js.map +0 -1
  563. package/dist/chunks/page-not-found.d1a84ba7.js +0 -5
  564. package/dist/chunks/page-not-found.d1a84ba7.js.map +0 -1
  565. package/dist/chunks/planned-maintenance.7fa5ac16.js +0 -5
  566. package/dist/chunks/planned-maintenance.7fa5ac16.js.map +0 -1
  567. package/dist/chunks/planned-maintenance.cff01aed.js +0 -5
  568. package/dist/chunks/planned-maintenance.cff01aed.js.map +0 -1
  569. package/dist/chunks/radio-input.1dd15424.js.map +0 -1
  570. package/dist/chunks/referrals.178ce0eb.js +0 -5
  571. package/dist/chunks/referrals.178ce0eb.js.map +0 -1
  572. package/dist/chunks/referrals.599047da.js +0 -5
  573. package/dist/chunks/referrals.599047da.js.map +0 -1
  574. package/dist/chunks/refresh.53691839.js +0 -29
  575. package/dist/chunks/success.41981fe8.js +0 -5
  576. package/dist/chunks/success.41981fe8.js.map +0 -1
  577. package/dist/chunks/success.77fac78b.js +0 -5
  578. package/dist/chunks/success.77fac78b.js.map +0 -1
  579. package/dist/chunks/tooltip.1084d92b.js.map +0 -1
  580. package/dist/chunks/upload-files.2708eca7.js +0 -5
  581. package/dist/chunks/upload-files.2708eca7.js.map +0 -1
  582. package/dist/chunks/upload-files.b4cd9f8b.js +0 -5
  583. package/dist/chunks/upload-files.b4cd9f8b.js.map +0 -1
  584. package/dist/chunks/use-cached-selected-values.852aeafe.js.map +0 -1
  585. package/dist/chunks/wrong-environment.c73b0bc0.js +0 -5
  586. package/dist/chunks/wrong-environment.c73b0bc0.js.map +0 -1
  587. package/dist/chunks/wrong-environment.f890a237.js +0 -5
  588. package/dist/chunks/wrong-environment.f890a237.js.map +0 -1
  589. /package/dist/@types/packages/{vue2/src/components/internal → core/src/components}/radio-input/radio-input.types.d.ts +0 -0
  590. /package/dist/assets/{index13.css → avatar-image.css} +0 -0
  591. /package/dist/assets/{index21.css → badge.css} +0 -0
  592. /package/dist/assets/{index5.css → checkbox-group.css} +0 -0
  593. /package/dist/assets/{index4.css → country.css} +0 -0
  594. /package/dist/assets/{checkmark-circle-fill.css → cross.css} +0 -0
  595. /package/dist/assets/{index2.css → date-picker.css} +0 -0
  596. /package/dist/assets/{index20.css → date-range-picker.css} +0 -0
  597. /package/dist/assets/{index3.css → divider.css} +0 -0
  598. /package/dist/assets/{index48.css → dropdown-tag.css} +0 -0
  599. /package/dist/assets/{index8.css → empty-state.css} +0 -0
  600. /package/dist/assets/{index.css → focus-trap.css} +0 -0
  601. /package/dist/assets/{index15.css → header.css} +0 -0
  602. /package/dist/assets/{index6.css → info-icon.css} +0 -0
  603. /package/dist/assets/{index41.css → loading-indicator.css} +0 -0
  604. /package/dist/assets/{index28.css → pagination.css} +0 -0
  605. /package/dist/assets/{index29.css → popper-container.css} +0 -0
  606. /package/dist/assets/{index30.css → radio-group.css} +0 -0
  607. /package/dist/assets/{index22.css → search-bar.css} +0 -0
  608. /package/dist/assets/{index23.css → secondary-nav.css} +0 -0
  609. /package/dist/assets/{index45.css → step.css} +0 -0
  610. /package/dist/assets/{index31.css → summary-grid-item-custom.css} +0 -0
  611. /package/dist/assets/{index33.css → tag.css} +0 -0
  612. /package/dist/assets/{index34.css → textarea.css} +0 -0
  613. /package/dist/assets/{index35.css → timeline-item.css} +0 -0
  614. /package/dist/assets/{index36.css → toast.css} +0 -0
  615. /package/dist/assets/{index12.css → toggle-button.css} +0 -0
  616. /package/dist/assets/{index38.css → typography.css} +0 -0
@@ -0,0 +1,215 @@
1
+ import { defineComponent as N, openBlock as l, createElementBlock as A, createElementVNode as G, createVNode as T, unref as o, withCtx as x, createTextVNode as M, toDisplayString as R, createBlock as y, createCommentVNode as b, ref as c, computed as h, watch as $, onMounted as X, nextTick as J, normalizeStyle as K, TransitionGroup as Q, Fragment as Z, renderList as F, mergeProps as tt } from "vue";
2
+ import { u as U } from "./use-bento-toast-controller.C0A5tZgd.js";
3
+ import { C as et } from "./cross-small.48UCoOqB.js";
4
+ import { u as st } from "./i18n.DY5YXG5f.js";
5
+ import { B as H } from "./button.DoqHEvPh.js";
6
+ import { B as at } from "./typography.D7onlQ9v.js";
7
+ import { _ as O } from "./_plugin-vue_export-helper.CHgC5LLL.js";
8
+ import "../assets/toast.css";
9
+ const P = {
10
+ "en-US": {
11
+ dismiss: "Dismiss"
12
+ }
13
+ }, ot = { class: "b-toast-item" }, nt = {
14
+ class: "b-toast-item__text",
15
+ role: "status"
16
+ }, it = {
17
+ i18n: { messages: P }
18
+ }, rt = /* @__PURE__ */ N({
19
+ ...it,
20
+ __name: "toast-item",
21
+ props: {
22
+ toast: { type: Object, required: !0 }
23
+ },
24
+ setup(u) {
25
+ const v = u, { t: n } = st({ messages: P }), f = () => {
26
+ typeof v.toast.action.handler == "function" && v.toast.action.handler(), v.toast.dismiss();
27
+ };
28
+ return (a, i) => (l(), A("div", ot, [
29
+ G("output", nt, [
30
+ T(o(at), {
31
+ title: u.toast.text,
32
+ el: "span",
33
+ variant: "body",
34
+ strongest: ""
35
+ }, {
36
+ default: x(() => [
37
+ M(R(u.toast.text), 1)
38
+ ]),
39
+ _: 1
40
+ }, 8, ["title"])
41
+ ]),
42
+ u.toast.action ? (l(), y(o(H), {
43
+ key: 0,
44
+ class: "b-toast-item__btn",
45
+ variant: "tertiary",
46
+ "data-testid": "toast-item-action-btn",
47
+ onClick: f
48
+ }, {
49
+ default: x(() => [
50
+ M(R(u.toast.action.text), 1)
51
+ ]),
52
+ _: 1
53
+ })) : b("", !0),
54
+ T(o(H), {
55
+ class: "b-toast-item__btn",
56
+ variant: "tertiary",
57
+ "data-testid": "toast-item-close-btn",
58
+ onClick: i[0] || (i[0] = (_) => u.toast.dismiss())
59
+ }, {
60
+ iconLeft: x(() => [
61
+ T(o(et), {
62
+ "svg-title": o(n)("dismiss")
63
+ }, null, 8, ["svg-title"])
64
+ ]),
65
+ _: 1
66
+ })
67
+ ]));
68
+ }
69
+ }), w = /* @__PURE__ */ O(rt, [["__scopeId", "data-v-eaedd6da"]]), lt = /* @__PURE__ */ N({
70
+ __name: "toast-shadow-stack",
71
+ emits: ["update"],
72
+ setup(u, { emit: v }) {
73
+ const { stack: n } = U(), f = c(), a = c(), i = c(), _ = c(), D = [a, i, _], r = h(() => n.value.slice(0, 3)), m = async () => {
74
+ await J();
75
+ const { top: g } = f.value.getBoundingClientRect(), p = n.value.map((I, S) => {
76
+ if (S > 2)
77
+ return { ...I, bottom: 0, height: 0 };
78
+ const { height: k, top: B } = D[S].value.$el.getBoundingClientRect();
79
+ return { ...I, height: k, bottom: B - g };
80
+ });
81
+ v("update", p);
82
+ };
83
+ return $(n, m), X(() => {
84
+ n.value.length > 0 && m();
85
+ }), (g, p) => (l(), A("div", {
86
+ ref_key: "shadowStack",
87
+ ref: f,
88
+ class: "b-toast-shadow-stack"
89
+ }, [
90
+ o(r)[0] ? (l(), y(w, {
91
+ key: 0,
92
+ ref_key: "toast0",
93
+ ref: a,
94
+ toast: o(r)[0]
95
+ }, null, 8, ["toast"])) : b("", !0),
96
+ o(r)[1] ? (l(), y(w, {
97
+ key: 1,
98
+ ref_key: "toast1",
99
+ ref: i,
100
+ toast: o(r)[1]
101
+ }, null, 8, ["toast"])) : b("", !0),
102
+ o(r)[2] ? (l(), y(w, {
103
+ key: 2,
104
+ ref_key: "toast2",
105
+ ref: _,
106
+ toast: o(r)[2]
107
+ }, null, 8, ["toast"])) : b("", !0)
108
+ ], 512));
109
+ }
110
+ }), ut = /* @__PURE__ */ O(lt, [["__scopeId", "data-v-81490a5e"]]), ct = /* @__PURE__ */ N({
111
+ __name: "toast",
112
+ setup(u) {
113
+ const n = c(!1), { stack: f } = U();
114
+ $(
115
+ f,
116
+ (t) => {
117
+ t.length > 0 && !n.value && (n.value = !0);
118
+ },
119
+ { immediate: !0 }
120
+ );
121
+ const a = c(!1), i = c([]), _ = 40, D = 10, r = h(() => i.value.length), m = h(() => Math.min(a.value ? 2 : 0, r.value - 1)), g = h(() => {
122
+ const t = i.value[m.value];
123
+ return t ? t.bottom + t.height : 0;
124
+ }), p = h(() => {
125
+ const t = g.value - _;
126
+ return i.value.map((e, s) => {
127
+ const C = s > m.value, q = !a.value && s > 1, L = C ? t + D * (q ? 2 : 1) : e.bottom;
128
+ return {
129
+ ...e,
130
+ styles: {
131
+ height: `${C ? _ : e.height}px`,
132
+ transform: C ? `translateY(${L * -1}px) scaleX(${q ? "0.8" : "0.9"})` : `translateY(${L * -1}px)`,
133
+ "z-index": r.value - s
134
+ },
135
+ // first toast has different animation, and toasts above index 2/3 are not visible so no need for a custom animation
136
+ dismissTransform: s > 0 && s < (a.value ? 4 : 3) ? `translateY(${(L - e.height) * -1}px) scale(0.5, 0.1)` : null,
137
+ isFirst: s === 0,
138
+ isInert: s > (a.value ? 2 : 0)
139
+ };
140
+ });
141
+ }), I = (t) => {
142
+ t.dataset.dismissTransform && (t.style.transform = t.dataset.dismissTransform);
143
+ }, S = h(() => {
144
+ let t = 0;
145
+ if (m.value >= 0) {
146
+ const e = D * Math.min(r.value - 1 - m.value, a.value ? 1 : 2);
147
+ t = Math.min(g.value + e, document.body.parentElement.clientHeight);
148
+ }
149
+ return `${t}px`;
150
+ });
151
+ let k = null, B = null, d = 5e3;
152
+ const V = (t, e) => {
153
+ B = Date.now(), k = setTimeout(() => t.dismiss(), e);
154
+ }, z = (t) => {
155
+ clearTimeout(k), t ? (d = 5e3, a.value || V(t, d)) : d = 0;
156
+ };
157
+ $(
158
+ () => p.value[0],
159
+ (t, e) => {
160
+ (t == null ? void 0 : t.id) !== (e == null ? void 0 : e.id) && z(t);
161
+ },
162
+ { immediate: !0 }
163
+ );
164
+ const E = () => {
165
+ d = d - Date.now() + B, clearTimeout(k);
166
+ }, W = () => {
167
+ d > 0 && V(p.value[0], d);
168
+ };
169
+ $(a, (t) => {
170
+ t ? E() : W();
171
+ });
172
+ const Y = c(), j = () => setTimeout(() => {
173
+ a.value = a.value ? Y.value.matches(":hover") : !1;
174
+ });
175
+ return (t, e) => n.value ? (l(), A("div", {
176
+ key: 0,
177
+ ref_key: "root",
178
+ ref: Y,
179
+ class: "b-toast",
180
+ "data-testid": "toast",
181
+ style: K({ height: o(S) }),
182
+ onMouseenter: e[1] || (e[1] = (s) => a.value = !0),
183
+ onMouseleave: e[2] || (e[2] = (s) => a.value = !1)
184
+ }, [
185
+ T(ut, {
186
+ onUpdate: e[0] || (e[0] = (s) => i.value = s)
187
+ }),
188
+ T(Q, {
189
+ name: "b-toast__queue",
190
+ tag: "div",
191
+ "aria-live": "polite",
192
+ "enter-class": "b-toast__queue--enter",
193
+ "leave-to-class": "b-toast__queue--leave-to",
194
+ onBeforeLeave: I,
195
+ onAfterLeave: j
196
+ }, {
197
+ default: x(() => [
198
+ (l(!0), A(Z, null, F(o(p), (s) => (l(), y(w, tt({ "data-dismiss-transform": s.dismissTransform }, {
199
+ key: s.id,
200
+ toast: s,
201
+ style: s.styles,
202
+ class: [{ "b-toast__item--first": s.isFirst }, "b-toast__item"],
203
+ inert: s.isInert,
204
+ "data-testid": "toast-item"
205
+ }), null, 16, ["toast", "style", "class", "inert"]))), 128))
206
+ ]),
207
+ _: 1
208
+ })
209
+ ], 36)) : b("", !0);
210
+ }
211
+ }), gt = /* @__PURE__ */ O(ct, [["__scopeId", "data-v-e1c6f53c"]]);
212
+ export {
213
+ gt as t
214
+ };
215
+ //# sourceMappingURL=toast.Bwo57uNy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toast.Bwo57uNy.js","sources":["../../../vue2/src/components/toast/components/toast-item/toast-item.vue","../../../vue2/src/components/toast/components/toast-shadow-stack/toast-shadow-stack.vue","../../../vue2/src/components/toast/toast.vue"],"sourcesContent":["<template>\n <div class=\"b-toast-item\">\n <output class=\"b-toast-item__text\" role=\"status\">\n <bento-typography :title=\"toast.text\" el=\"span\" variant=\"body\" strongest>\n {{ toast.text }}\n </bento-typography>\n </output>\n <bento-button\n v-if=\"toast.action\"\n class=\"b-toast-item__btn\"\n variant=\"tertiary\"\n data-testid=\"toast-item-action-btn\"\n @click=\"onAction\"\n >\n {{ toast.action.text }}\n </bento-button>\n <bento-button\n class=\"b-toast-item__btn\"\n variant=\"tertiary\"\n data-testid=\"toast-item-close-btn\"\n @click=\"toast.dismiss()\"\n >\n <template #iconLeft>\n <cross-icon :svg-title=\"t('dismiss')\" />\n </template>\n </bento-button>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { PropType } from 'vue';\n import CrossIcon from '@adyen/ui-assets-icons-16/vue/cross-small';\n import { useI18n } from '@/utils/ts/i18n';\n import { BentoButton } from '@/components/button';\n import { BentoTypography } from '@/components/typography';\n import type { BentoToastItem } from '@/composables';\n import messages from './messages.json';\n\n const props = defineProps({\n toast: { type: Object as PropType<BentoToastItem>, required: true },\n });\n\n type MessageSchema = (typeof messages)['en-US'];\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const onAction = () => {\n if (typeof props.toast.action.handler === 'function') {\n props.toast.action.handler();\n }\n props.toast.dismiss();\n };\n</script>\n\n<script lang=\"ts\">\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./toast-item.scss\" />\n","<template>\n <div ref=\"shadowStack\" class=\"b-toast-shadow-stack\">\n <!--\n since we only interested in the size of the last 3 toasts and order of the toast items\n is not guaranteed when we use ref with v-for (more info at the end of this section https://vuejs.org/guide/essentials/template-refs.html#refs-inside-v-for),\n toast items would be rendered independently with individual ref references.\n -->\n <toast-item v-if=\"toasts[0]\" ref=\"toast0\" :toast=\"toasts[0]\" />\n <toast-item v-if=\"toasts[1]\" ref=\"toast1\" :toast=\"toasts[1]\" />\n <toast-item v-if=\"toasts[2]\" ref=\"toast2\" :toast=\"toasts[2]\" />\n </div>\n</template>\n\n<script setup lang=\"ts\">\n /**\n * This component will \"shadow-render\" ToastItems positioned relatively to each other,\n * would grab their positions and size and would emit augmented list of toasts with those\n * additional details. This would allow us to have perfect control over toasts positioning and animation\n * in the parent Toast component, where ToastItems would actually be visible.\n */\n import { computed, nextTick, onMounted, ref, watch } from 'vue';\n import { useBentoToastController } from '@/composables';\n import type { BentoToastItemWithDimensions } from './toast-shadow-stack.types';\n import ToastItem from '../toast-item/toast-item.vue';\n\n const { stack } = useBentoToastController();\n\n const emit = defineEmits<{\n /**\n *\n */\n (e: 'update', toasts: Array<BentoToastItemWithDimensions>): void;\n }>();\n\n const shadowStack = ref<HTMLElement>();\n const toast0 = ref<InstanceType<typeof ToastItem>>();\n const toast1 = ref<InstanceType<typeof ToastItem>>();\n const toast2 = ref<InstanceType<typeof ToastItem>>();\n const toastRefs = [toast0, toast1, toast2];\n\n // only get 3 last toast as only they would be rendered on the screen\n const toasts = computed(() => stack.value.slice(0, 3));\n\n const shareToastsWithDimensions = async () => {\n // Wait for all toasts to render, so we would be able to get their ClientRect\n await nextTick();\n\n // Parent container \"top\" value should be 0, but can be something else due to CSS. So have to account for it\n const { top: parentTop } = shadowStack.value.getBoundingClientRect();\n\n const toastsWithDimensions = stack.value.map((toast, index) => {\n if (index > 2) {\n return { ...toast, bottom: 0, height: 0 };\n }\n const { height, top } = toastRefs[index].value.$el.getBoundingClientRect();\n return { ...toast, height, bottom: top - parentTop };\n });\n emit('update', toastsWithDimensions);\n };\n\n watch(stack, shareToastsWithDimensions);\n\n onMounted(() => {\n // Refs would be null until component is mounted, so let's make sure we only do it after that\n if (stack.value.length > 0) {\n shareToastsWithDimensions();\n }\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./toast-shadow-stack.scss\" />\n","<template>\n <div\n v-if=\"renderToast\"\n ref=\"root\"\n class=\"b-toast\"\n data-testid=\"toast\"\n :style=\"{ height: stackHeight }\"\n @mouseenter=\"hovered = true\"\n @mouseleave=\"hovered = false\"\n >\n <toast-shadow-stack @update=\"toastsWithDimensions = $event\" />\n\n <transition-group\n name=\"b-toast__queue\"\n tag=\"div\"\n aria-live=\"polite\"\n enter-class=\"b-toast__queue--enter\"\n leave-to-class=\"b-toast__queue--leave-to\"\n @before-leave=\"onBeforeToastLeave\"\n @after-leave=\"checkHover\"\n >\n <toast-item\n v-for=\"toast in queue\"\n v-bind=\"{ 'data-dismiss-transform': toast.dismissTransform }\"\n :key=\"toast.id\"\n :toast=\"toast\"\n :style=\"toast.styles\"\n :class=\"{ 'b-toast__item--first': toast.isFirst }\"\n :inert=\"toast.isInert\"\n data-testid=\"toast-item\"\n class=\"b-toast__item\"\n />\n </transition-group>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, ref, watch } from 'vue';\n import { useBentoToastController } from '@/composables';\n import ToastShadowStack from './components/toast-shadow-stack/toast-shadow-stack.vue';\n import type { BentoToastItemWithDimensions } from './components/toast-shadow-stack/toast-shadow-stack.types';\n import ToastItem from './components/toast-item/toast-item.vue';\n\n // By design, top-most toast should be visible for 5 seconds before auto-dismiss\n const TOAST_DISPLAY_DURATION = 5000;\n\n // Delay first render of the toast until we actually need it, to skip all the positioning calculation logic\n // until we actually have anything to render.\n const renderToast = ref(false);\n const { stack } = useBentoToastController();\n\n watch(\n stack,\n toastStack => {\n if (toastStack.length > 0 && !renderToast.value) {\n renderToast.value = true;\n }\n },\n { immediate: true }\n );\n\n const hovered = ref(false);\n const toastsWithDimensions = ref<Array<BentoToastItemWithDimensions>>([]);\n // In collapsed mode we need for toast to \"stick out\", but not overflow another toast in the forefront.\n // Random number that satisfies this condition (single-line toast is roughly 52px height)\n const collapsedToastHeight = 40;\n // How much pixels of the stacked toast will be \"sticking out\" from the visible toast\n const stackIndicatorHeight = 10;\n\n const queueSize = computed(() => toastsWithDimensions.value.length);\n const lastVisibleToastIndex = computed(() => Math.min(hovered.value ? 2 : 0, queueSize.value - 1));\n const lastVisibleToastBottom = computed(() => {\n const toast = toastsWithDimensions.value[lastVisibleToastIndex.value];\n return toast ? toast.bottom + toast.height : 0;\n });\n\n const queue = computed(() => {\n const translateBaseValue = lastVisibleToastBottom.value - collapsedToastHeight;\n return toastsWithDimensions.value.map((toast, index) => {\n const collapsed = index > lastVisibleToastIndex.value;\n const isSmallerStack = !hovered.value && index > 1;\n const translateY = collapsed\n ? translateBaseValue + stackIndicatorHeight * (isSmallerStack ? 2 : 1)\n : toast.bottom;\n\n return {\n ...toast,\n styles: {\n height: `${collapsed ? collapsedToastHeight : toast.height}px`,\n transform: collapsed\n ? `translateY(${translateY * -1}px) scaleX(${isSmallerStack ? '0.8' : '0.9'})`\n : `translateY(${translateY * -1}px)`,\n 'z-index': queueSize.value - index,\n },\n // first toast has different animation, and toasts above index 2/3 are not visible so no need for a custom animation\n dismissTransform:\n index > 0 && index < (hovered.value ? 4 : 3)\n ? `translateY(${(translateY - toast.height) * -1}px) scale(0.5, 0.1)`\n : null,\n isFirst: index === 0,\n isInert: index > (hovered.value ? 2 : 0),\n };\n });\n });\n\n const onBeforeToastLeave = (el: HTMLElement) => {\n // We have to swap transformation on the toast element that is about to be removed\n // Unfortunately we cannot do it via transition classes as transformation function is\n // unique per toast, and we cannot use reactivity because it won't be applied for a toast\n // that is removed. So direct DOM manipulation is the only way it seems.\n if (el.dataset.dismissTransform) {\n /* eslint-disable no-param-reassign -- explicitly manipulating with DOM properties, no way around it unfortunately */\n el.style.transform = el.dataset.dismissTransform;\n }\n };\n\n const stackHeight = computed(() => {\n // Track stack container height, so that hover over would work without glitches\n // (when mouse is over space between toasts)\n let height = 0;\n if (lastVisibleToastIndex.value >= 0) {\n const stackIndicator =\n stackIndicatorHeight *\n Math.min(queueSize.value - 1 - lastVisibleToastIndex.value, hovered.value ? 1 : 2);\n height = Math.min(lastVisibleToastBottom.value + stackIndicator, document.body.parentElement.clientHeight);\n }\n return `${height}px`;\n });\n\n let dismissTimout = null;\n let timeoutStart = null;\n let remainingTimeToDismiss = TOAST_DISPLAY_DURATION;\n\n const startTimer = (toast, duration) => {\n timeoutStart = Date.now();\n dismissTimout = setTimeout(() => toast.dismiss(), duration);\n };\n\n const startNewDismissTimer = toast => {\n // stop previous timeouts, if any\n clearTimeout(dismissTimout);\n if (toast) {\n remainingTimeToDismiss = TOAST_DISPLAY_DURATION;\n if (!hovered.value) {\n startTimer(toast, remainingTimeToDismiss);\n }\n } else {\n remainingTimeToDismiss = 0;\n }\n };\n\n watch(\n () => queue.value[0],\n (firstToast, oldFirstToast) => {\n if (firstToast?.id === oldFirstToast?.id) {\n return;\n }\n startNewDismissTimer(firstToast);\n },\n { immediate: true }\n );\n\n const pauseDismissTimer = () => {\n remainingTimeToDismiss = remainingTimeToDismiss - Date.now() + timeoutStart;\n clearTimeout(dismissTimout);\n };\n\n const resumeDismissTimer = () => {\n if (remainingTimeToDismiss > 0) {\n startTimer(queue.value[0], remainingTimeToDismiss);\n }\n };\n\n watch(hovered, isHovered => {\n if (isHovered) {\n pauseDismissTimer();\n } else {\n resumeDismissTimer();\n }\n });\n\n const root = ref<HTMLElement>();\n // \"mouseleave\" event would be emitted for the root element when the mouse moves out of the root element,\n // but browser wouldn't emit this event when root element shrinks to the point when mouse is not over element anymore.\n // This can happen when user clicks on dismiss button the top-most toast and doesn't move the mouse during animation,\n // after which browser would think that root element is still hovered. This workaround addresses this particular issue.\n const checkHover = () =>\n setTimeout(() => {\n hovered.value = hovered.value ? root.value.matches(':hover') : false;\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./toast.scss\" />\n"],"names":["__default__","messages","t","useI18n","onAction","props","stack","useBentoToastController","shadowStack","ref","toast0","toast1","toast2","toastRefs","toasts","computed","shareToastsWithDimensions","nextTick","parentTop","toastsWithDimensions","toast","index","height","top","emit","watch","onMounted","renderToast","toastStack","hovered","collapsedToastHeight","stackIndicatorHeight","queueSize","lastVisibleToastIndex","lastVisibleToastBottom","queue","translateBaseValue","collapsed","isSmallerStack","translateY","onBeforeToastLeave","el","stackHeight","stackIndicator","dismissTimout","timeoutStart","remainingTimeToDismiss","startTimer","duration","startNewDismissTimer","firstToast","oldFirstToast","pauseDismissTimer","resumeDismissTimer","isHovered","root","checkHover"],"mappings":"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"}
@@ -0,0 +1,79 @@
1
+ import { defineComponent as p, computed as l, useSlots as f, openBlock as v, createBlock as b, mergeProps as m, unref as s, withModifiers as y, createSlots as B, renderList as k, withCtx as C, renderSlot as _, normalizeProps as h, guardReactiveProps as x } from "vue";
2
+ import { B as a } from "./button.DoqHEvPh.js";
3
+ import { _ as P } from "./_plugin-vue_export-helper.CHgC5LLL.js";
4
+ import "../assets/toggle-button.css";
5
+ const $ = {}, w = /* @__PURE__ */ p({
6
+ ...$,
7
+ __name: "toggle-button",
8
+ props: {
9
+ /**
10
+ * Reduces sizing of button
11
+ */
12
+ condensed: {
13
+ type: a.props.condensed.type,
14
+ default: !1
15
+ },
16
+ /**
17
+ * Disables button functonality
18
+ */
19
+ disabled: {
20
+ type: a.props.disabled.type,
21
+ default: !1
22
+ },
23
+ /**
24
+ * Sets color set to inverse
25
+ */
26
+ inverse: {
27
+ type: Boolean,
28
+ default: !1
29
+ },
30
+ /**
31
+ * Types of flavour of Button
32
+ * @values primary, secondary, tertiary
33
+ */
34
+ variant: {
35
+ type: a.props.variant.type,
36
+ default: "primary",
37
+ validator: a.props.variant.validator
38
+ },
39
+ /**
40
+ * The state of the button whether it is toggled or not.
41
+ */
42
+ toggled: {
43
+ type: Boolean,
44
+ default: !1
45
+ }
46
+ },
47
+ emits: ["click", "update:toggled"],
48
+ setup(o, { emit: d }) {
49
+ const e = o, r = l(
50
+ () => e.variant === "tertiary" ? "tertiary-with-background" : e.variant
51
+ ), i = l(() => ({
52
+ "b-toggle-button--condensed": e == null ? void 0 : e.condensed,
53
+ [`b-toggle-button--${r.value}-toggled`]: e.toggled,
54
+ "b-toggle-button--inverse": e.inverse
55
+ })), c = (t) => {
56
+ t.stopPropagation(), e != null && e.disabled || (d("click", t), d("update:toggled", !e.toggled));
57
+ }, g = f(), u = (t) => ({ key: t });
58
+ return (t, I) => (v(), b(a, m({ class: "b-toggle-button" }, t.$attrs, {
59
+ "aria-expanded": `${o.toggled}`,
60
+ condensed: o.condensed,
61
+ class: s(i),
62
+ disabled: o.disabled,
63
+ inverse: o.inverse,
64
+ variant: s(r),
65
+ onClickCapture: y(c, ["stop"])
66
+ }), B({ _: 2 }, [
67
+ k(s(g), (S, n) => ({
68
+ name: n,
69
+ fn: C(() => [
70
+ _(t.$slots, n, h(x(u(n))), void 0, !0)
71
+ ])
72
+ }))
73
+ ]), 1040, ["aria-expanded", "condensed", "class", "disabled", "inverse", "variant", "onClickCapture"]));
74
+ }
75
+ }), L = /* @__PURE__ */ P(w, [["__scopeId", "data-v-63a88f80"]]);
76
+ export {
77
+ L as B
78
+ };
79
+ //# sourceMappingURL=toggle-button.q9F2dsIi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toggle-button.q9F2dsIi.js","sources":["../../../vue2/src/components/button/components/toggle-button/toggle-button.vue"],"sourcesContent":["<template>\n <bento-button\n class=\"b-toggle-button\"\n v-bind=\"$attrs\"\n :aria-expanded=\"`${toggled}`\"\n :condensed=\"condensed\"\n :class=\"conditionalClasses\"\n :disabled=\"disabled\"\n :inverse=\"inverse\"\n :variant=\"computedVariant\"\n @click.capture.stop=\"onClick\"\n >\n <template v-for=\"(_, innerSlot) of slots\" #[innerSlot]>\n <slot :name=\"innerSlot\" v-bind=\"getSlotKeyIfVue3(innerSlot)\" />\n </template>\n </bento-button>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, useSlots } from 'vue';\n import BentoButton from '@/components/button/button.vue';\n import { BentoButtonVariant } from '@/core/components/button/button.types';\n import { isVue3 } from 'vue-demi';\n\n const props = defineProps({\n /**\n * Reduces sizing of button\n */\n condensed: {\n type: BentoButton.props.condensed.type,\n default: false,\n },\n\n /**\n * Disables button functonality\n */\n disabled: {\n type: BentoButton.props.disabled.type,\n default: false,\n },\n\n /**\n * Sets color set to inverse\n */\n inverse: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Types of flavour of Button\n * @values primary, secondary, tertiary\n */\n variant: {\n type: BentoButton.props.variant.type,\n default: 'primary',\n validator: BentoButton.props.variant.validator,\n },\n\n /**\n * The state of the button whether it is toggled or not.\n */\n toggled: {\n type: Boolean,\n default: false,\n },\n });\n\n const emit = defineEmits<{\n /**\n * Click event handler\n */\n (e: 'click', event: MouseEvent): void;\n\n /**\n * Update the toggle state when the button has been clicked.\n */\n (e: 'update:toggled', newToggleState: boolean): void;\n }>();\n\n const computedVariant = computed(\n () => (props.variant === 'tertiary' ? 'tertiary-with-background' : props.variant) as BentoButtonVariant\n );\n\n const conditionalClasses = computed(() => ({\n [`b-toggle-button--condensed`]: props?.condensed,\n [`b-toggle-button--${computedVariant.value}-toggled`]: props.toggled,\n [`b-toggle-button--inverse`]: props.inverse,\n }));\n\n const onClick = (e: MouseEvent) => {\n // Prevent Vue3 from triggering event twice\n e.stopPropagation();\n if (!props?.disabled) {\n emit('click', e);\n emit('update:toggled', !props.toggled);\n }\n };\n\n const slots = useSlots();\n // If we don't provide a key to `slot` in vue 3, we will get type errors\n const getSlotKeyIfVue3 = (slotName: string | number) => (isVue3 ? { key: slotName } : {});\n</script>\n\n<script lang=\"ts\">\n /**\n * Toggle button is used to switch between two states (example: menu shown, menu hidden).\n * It functions as a regular button but retains its state to indicate whether the associated menu or element is active or inactive.\n *\n * @example\n * import { BentoToggleButton } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoToggleButton },\n * template: `\n * <bento-toggle-button state=\"toggled\" variant=\"secondary\">\n * Button that can be toggled\n * </bento-toggle-button>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./toggle-button.scss\" />\n"],"names":["__default__","computedVariant","computed","props","conditionalClasses","onClick","e","emit","slots","useSlots","getSlotKeyIfVue3","slotName"],"mappings":";;;;AAyHI,MAAAA,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAzCAC,IAAAC;AAAA,MAAwB,MAAAC,EAAA,YAAA,aAAA,6BAAAA,EAAA;AAAA,IACqD,GAG7EC,IAAAF,EAAA,OAAA;AAAA,MAA2C,8BAAAC,KAAA,gBAAAA,EAAA;AAAA,MACA,CAAA,oBAAAF,EAAA,KAAA,UAAA,GAAAE,EAAA;AAAA,MACsB,4BAAAA,EAAA;AAAA,IACzB,EAAA,GAGxCE,IAAA,CAAAC,MAAA;AAEI,MAAAA,EAAA,gBAAA,GACAH,KAAA,QAAAA,EAAA,aACII,EAAA,SAAAD,CAAA,GACAC,EAAA,kBAAA,CAAAJ,EAAA,OAAA;AAAA,IACJ,GAGJK,IAAAC,EAAA,GAEAC,IAAA,CAAAC,OAAA,EAAA,KAAAA,EAAA;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,161 @@
1
+ import { defineComponent as $, ref as y, computed as p, toRefs as V, watch as D, resolveComponent as k, openBlock as n, createElementBlock as h, normalizeClass as T, withDirectives as w, createElementVNode as b, vModelCheckbox as O, createBlock as m, createCommentVNode as s, withCtx as v, renderSlot as C } from "vue";
2
+ import { C as N } from "./checkmark-small.BCeGkayS.js";
3
+ import { B as U } from "./typography.D7onlQ9v.js";
4
+ import { g as j } from "./unique-id.XFfoKuc2.js";
5
+ import { u as z } from "./use-default-slot-validator.O02rzsob.js";
6
+ import { u as H } from "./use-has-slot.B7eQSabc.js";
7
+ import { g } from "./get-slot-text.D5WBGjic.js";
8
+ import { u as M } from "./aria-label.CaUURpnB.js";
9
+ import { _ as P } from "./_plugin-vue_export-helper.CHgC5LLL.js";
10
+ import "../assets/toggle.css";
11
+ var S = /* @__PURE__ */ ((e) => (e.LABEL_FIRST = "label-first", e))(S || {}), d = /* @__PURE__ */ ((e) => (e.BEFORE = "before", e.AFTER = "after", e))(d || {});
12
+ const q = $({
13
+ name: "bento-toggle",
14
+ components: { BentoTypography: U, CheckmarkSmall: N },
15
+ props: {
16
+ /**
17
+ * @deprecated from version 2.0.0. Use the aria-label attribute instead.
18
+ */
19
+ /**
20
+ * Accessible name for the toggle. It is strongly recommended to pass such value when the toggle is used without a label
21
+ */
22
+ ariaLabel: {
23
+ type: String,
24
+ default: void 0
25
+ },
26
+ /**
27
+ * Disable the toggle (optional)
28
+ */
29
+ disabled: {
30
+ type: Boolean,
31
+ default: !1
32
+ },
33
+ /**
34
+ * Position of the label relative to the toggle (optional)
35
+ * @values before, after
36
+ */
37
+ labelPosition: {
38
+ type: String,
39
+ default: d.BEFORE,
40
+ validator: (e) => Object.values(d).includes(e)
41
+ },
42
+ /**
43
+ * Setting this property to true will set the toggle to read only state.
44
+ */
45
+ readonly: {
46
+ type: Boolean,
47
+ default: !1
48
+ },
49
+ /**
50
+ * Indicates if the switch is "on" or "off"
51
+ */
52
+ value: {
53
+ type: Boolean,
54
+ default: !1
55
+ }
56
+ },
57
+ emits: ["input"],
58
+ setup(e, { attrs: a, slots: t, emit: f }) {
59
+ const u = H(t), c = y(e.value), r = j("toggle-description"), i = g(t)("default"), o = g(t)("description");
60
+ z("bento-toggle", t.default, t.description);
61
+ const _ = p(() => u("default") ? g(t)("default") : null), B = y(a["aria-label"]), { ariaLabel: E } = V(e), I = M({
62
+ ariaLabel: B.value,
63
+ // TODO: take this line away when the aria-label props is removed
64
+ label: E,
65
+ defaultFallback: _
66
+ }), L = p(() => r ?? null), A = p(() => ({
67
+ [`b-toggle--${S.LABEL_FIRST}`]: e.labelPosition === d.BEFORE,
68
+ "b-toggle--disabled": e.disabled,
69
+ "b-toggle--readonly": e.readonly
70
+ })), F = (l) => {
71
+ f("input", l.target.checked);
72
+ }, R = (l) => {
73
+ e.readonly && l.preventDefault();
74
+ };
75
+ return D(
76
+ () => e.value,
77
+ (l) => {
78
+ c.value = l;
79
+ }
80
+ ), {
81
+ // Refs
82
+ toggleInput: c,
83
+ // Values
84
+ computedAriaLabel: I,
85
+ computedDescription: L,
86
+ defaultSlotValue: i,
87
+ descriptionSlotValue: o,
88
+ conditionalClasses: A,
89
+ descriptionId: r,
90
+ // Method
91
+ hasSlot: u,
92
+ onChange: F,
93
+ onClick: R
94
+ };
95
+ }
96
+ }), G = ["aria-label", "aria-describedby", "disabled", "aria-readonly"], J = {
97
+ class: "b-toggle__track",
98
+ "aria-hidden": "true"
99
+ }, K = { class: "b-toggle__handle" }, Q = {
100
+ key: 0,
101
+ class: "b-toggle__label-container"
102
+ };
103
+ function W(e, a, t, f, u, c) {
104
+ const r = k("checkmark-small"), i = k("bento-typography");
105
+ return n(), h("label", {
106
+ class: T(["b-toggle", e.conditionalClasses]),
107
+ "data-testid": "label"
108
+ }, [
109
+ w(b("input", {
110
+ "onUpdate:modelValue": a[0] || (a[0] = (o) => e.toggleInput = o),
111
+ "aria-label": e.computedAriaLabel,
112
+ "aria-describedby": e.computedDescription,
113
+ disabled: e.disabled,
114
+ "aria-readonly": e.readonly,
115
+ role: "switch",
116
+ class: "b-toggle__input",
117
+ type: "checkbox",
118
+ onChange: a[1] || (a[1] = (o) => e.onChange(o)),
119
+ onClick: a[2] || (a[2] = (...o) => e.onClick && e.onClick(...o))
120
+ }, null, 40, G), [
121
+ [O, e.toggleInput]
122
+ ]),
123
+ b("span", J, [
124
+ b("span", K, [
125
+ e.toggleInput ? (n(), m(r, { key: 0 })) : s("", !0)
126
+ ])
127
+ ]),
128
+ e.hasSlot("default") ? (n(), h("span", Q, [
129
+ e.hasSlot("default") ? (n(), m(i, {
130
+ key: 0,
131
+ el: "span",
132
+ variant: "body",
133
+ "data-testid": "inner-label"
134
+ }, {
135
+ default: v(() => [
136
+ C(e.$slots, "default", {}, void 0, !0)
137
+ ]),
138
+ _: 3
139
+ })) : s("", !0),
140
+ e.hasSlot("default") && e.hasSlot("description") ? (n(), m(i, {
141
+ key: 1,
142
+ id: e.descriptionId,
143
+ el: "span",
144
+ variant: "body",
145
+ class: "b-toggle__description"
146
+ }, {
147
+ default: v(() => [
148
+ C(e.$slots, "description", {}, void 0, !0)
149
+ ]),
150
+ _: 3
151
+ }, 8, ["id"])) : s("", !0)
152
+ ])) : s("", !0)
153
+ ], 2);
154
+ }
155
+ const ne = /* @__PURE__ */ P(q, [["render", W], ["__scopeId", "data-v-878ec27c"]]);
156
+ export {
157
+ ne as B,
158
+ S as a,
159
+ d as b
160
+ };
161
+ //# sourceMappingURL=toggle.DmTjGY0a.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toggle.DmTjGY0a.js","sources":["../../../vue2/src/components/toggle/toggle.types.ts","../../../vue2/src/components/toggle/toggle.vue"],"sourcesContent":["export enum BentoTogglePropClass {\n LABEL_FIRST = 'label-first',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoToggleLabelPosition {\n BEFORE = 'before',\n AFTER = 'after',\n}\n","<template>\n <label class=\"b-toggle\" :class=\"conditionalClasses\" data-testid=\"label\">\n <input\n v-model=\"toggleInput\"\n :aria-label=\"computedAriaLabel\"\n :aria-describedby=\"computedDescription\"\n :disabled=\"disabled\"\n :aria-readonly=\"readonly\"\n role=\"switch\"\n class=\"b-toggle__input\"\n type=\"checkbox\"\n @change=\"$event => onChange($event)\"\n @click=\"onClick\"\n />\n <span class=\"b-toggle__track\" aria-hidden=\"true\">\n <span class=\"b-toggle__handle\">\n <checkmark-small v-if=\"toggleInput\" />\n </span>\n </span>\n <span v-if=\"hasSlot('default')\" class=\"b-toggle__label-container\">\n <bento-typography v-if=\"hasSlot('default')\" el=\"span\" variant=\"body\" data-testid=\"inner-label\">\n <slot></slot>\n </bento-typography>\n <bento-typography\n v-if=\"hasSlot('default') && hasSlot('description')\"\n :id=\"descriptionId\"\n el=\"span\"\n variant=\"body\"\n class=\"b-toggle__description\"\n >\n <slot name=\"description\" />\n </bento-typography>\n </span>\n </label>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType, ref, toRefs, watch } from 'vue';\n import CheckmarkSmall from '@adyen/ui-assets-icons-16/vue/checkmark-small';\n import { BentoToggleLabelPosition, BentoTogglePropClass } from './toggle.types';\n import { BentoTypography } from '@/components/typography';\n import { generateUid } from '@/utils/ts/unique-id';\n import { useDefaultSlotValidator, useHasSlot } from '@/composables';\n import { getSlotText } from '@/utils/ts/get-slot-text/get-slot-text';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n\n /**\n * A wrapper around the bento toggle, providing checkbox functionality with a knob-like toggle\n *\n * @usage\n * import { BentoToggle, BentoLabelPosition } from '@adyen/adl-vue2';\n *\n * export default {\n * components: { BentoToggle },\n * template: `\n * <bento-toggle\n * :value=\"toggleValue\"`\n * label-position=\"LabelPosition.BEFORE\"\n * @input=\"optionalHandler($event)\"\n * >\n * Label Text\n * </bento-toggle>\n * `,\n * }\n */\n export default defineComponent({\n name: 'bento-toggle',\n components: { BentoTypography, CheckmarkSmall },\n props: {\n /**\n * @deprecated from version 2.0.0. Use the aria-label attribute instead.\n */\n /**\n * Accessible name for the toggle. It is strongly recommended to pass such value when the toggle is used without a label\n */\n ariaLabel: {\n type: String,\n default: undefined,\n },\n /**\n * Disable the toggle (optional)\n */\n disabled: {\n type: Boolean,\n default: false,\n },\n /**\n * Position of the label relative to the toggle (optional)\n * @values before, after\n */\n labelPosition: {\n type: String as PropType<BentoToggleLabelPosition | `${BentoToggleLabelPosition}`>,\n default: BentoToggleLabelPosition.BEFORE,\n validator: (value: BentoToggleLabelPosition) => Object.values(BentoToggleLabelPosition).includes(value),\n },\n /**\n * Setting this property to true will set the toggle to read only state.\n */\n readonly: {\n type: Boolean,\n default: false,\n },\n /**\n * Indicates if the switch is \"on\" or \"off\"\n */\n value: {\n type: Boolean,\n default: false,\n },\n },\n emits: ['input'],\n setup(props, { attrs, slots, emit }) {\n const hasSlot = useHasSlot(slots);\n\n const toggleInput = ref(props.value);\n const descriptionId: string = generateUid('toggle-description');\n\n const defaultSlotValue = getSlotText(slots)('default');\n const descriptionSlotValue = getSlotText(slots)('description');\n\n useDefaultSlotValidator('bento-toggle', slots.default, slots.description);\n\n const labelSlot = computed((): string => (hasSlot('default') ? getSlotText(slots)('default') : null));\n\n const ariaLabelAttribute = ref(attrs['aria-label']);\n const { ariaLabel } = toRefs(props);\n const computedAriaLabel = useAriaLabel({\n ariaLabel: ariaLabelAttribute.value as string,\n // TODO: take this line away when the aria-label props is removed\n label: ariaLabel,\n defaultFallback: labelSlot,\n });\n\n const computedDescription = computed((): string | null => descriptionId ?? null);\n\n const conditionalClasses = computed((): { [key: string]: boolean } => ({\n [`b-toggle--${BentoTogglePropClass.LABEL_FIRST}`]:\n props.labelPosition === BentoToggleLabelPosition.BEFORE,\n 'b-toggle--disabled': props.disabled,\n 'b-toggle--readonly': props.readonly,\n }));\n\n const onChange = (event: Event) => {\n emit('input', (event.target as HTMLInputElement).checked);\n };\n\n // readonly attr doesn't work with checkbox, so we need to manually ignore the click instead\n const onClick = (event: Event) => {\n if (props.readonly) {\n event.preventDefault();\n }\n };\n\n watch(\n () => props.value,\n newValue => {\n toggleInput.value = newValue;\n }\n );\n\n return {\n // Refs\n toggleInput,\n\n // Values\n computedAriaLabel,\n computedDescription,\n defaultSlotValue,\n descriptionSlotValue,\n conditionalClasses,\n descriptionId,\n\n // Method\n hasSlot,\n onChange,\n onClick,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./toggle.scss\" />\n"],"names":["BentoTogglePropClass","BentoTogglePropClass2","BentoToggleLabelPosition","BentoToggleLabelPosition2","_sfc_main","defineComponent","BentoTypography","CheckmarkSmallIcon","value","props","attrs","slots","emit","hasSlot","useHasSlot","toggleInput","ref","descriptionId","generateUid","defaultSlotValue","getSlotText","descriptionSlotValue","useDefaultSlotValidator","labelSlot","computed","ariaLabelAttribute","ariaLabel","toRefs","computedAriaLabel","useAriaLabel","computedDescription","conditionalClasses","onChange","event","onClick","watch","newValue","_hoisted_1","openBlock","createElementBlock","normalizeClass","_ctx","_cache","$event","vModelCheckbox","createElementVNode","_hoisted_3","createBlock","_component_checkmark_small","createCommentVNode","_hoisted_4","_component_bento_typography"],"mappings":"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"}