@adyen/bento-vue2 1.9.0 → 1.11.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 (295) hide show
  1. package/dist/@types/components.d.ts +2 -0
  2. package/dist/@types/packages/vue2/src/components/button/button.vue.d.ts +19 -3580
  3. package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.types.d.ts +2 -0
  4. package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +3 -3
  5. package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +2 -0
  6. package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +2 -0
  7. package/dist/@types/packages/vue2/src/components/code-snippet/{composables/useLanguage.d.ts → utils/get-lang-loader.d.ts} +1 -3
  8. package/dist/@types/packages/vue2/src/components/country/composables/index.d.ts +3 -3
  9. package/dist/@types/packages/vue2/src/components/country/composables/{useCountryCapital/useCountryCapital.d.ts → use-country-capital/use-country-capital.d.ts} +1 -1
  10. package/dist/@types/packages/vue2/src/components/country/composables/{useCountryName/useCountryName.d.ts → use-country-name/use-country-name.d.ts} +1 -1
  11. package/dist/@types/packages/vue2/src/components/country/composables/{useCountryPhoneCode/useCountryPhoneCode.d.ts → use-country-phone-code/use-country-phon-code.d.ts} +1 -1
  12. package/dist/@types/packages/vue2/src/components/country/country.vue.d.ts +1 -1
  13. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell-actions/data-grid-cell-actions.types.d.ts +14 -0
  14. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell-actions/data-grid-cell-actions.vue.d.ts +33 -0
  15. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns-types.d.ts +1 -0
  16. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +20 -4
  17. package/dist/@types/packages/vue2/src/components/data-grid/components/index.d.ts +1 -0
  18. package/dist/@types/packages/vue2/src/components/data-grid/composables/index.d.ts +10 -8
  19. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/index.d.ts +2 -0
  20. package/dist/@types/packages/vue2/src/components/data-grid/composables/{useCalculateColumnWidth/useCalculateColumnWidth.d.ts → use-calculate-column-width/use-calculate-column-width.d.ts} +2 -2
  21. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-reorderer/use-column-reorderer.d.ts +121 -0
  22. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-config-settings/use-config-settings.d.ts +154 -0
  23. package/dist/@types/packages/vue2/src/components/data-grid/composables/{useKeyboardNavigator/useKeyboardNavigator.d.ts → use-keyboard-navigator/use-keyboard-navigator.d.ts} +1 -1
  24. package/dist/@types/packages/vue2/src/components/data-grid/composables/{useResizer.d.ts → use-resizer.d.ts} +0 -1
  25. package/dist/@types/packages/vue2/src/components/data-grid/composables/{useScroller/useScroller.d.ts → use-scroller/use-scroller.d.ts} +1 -1
  26. package/dist/@types/packages/vue2/src/components/data-grid/composables/{useSelector.d.ts → use-selector.d.ts} +1 -1
  27. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +5 -2
  28. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +16 -7
  29. package/dist/@types/packages/vue2/src/components/divider/divider.keys.d.ts +1 -0
  30. package/dist/@types/packages/vue2/src/components/divider/divider.vue.d.ts +1 -1
  31. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.types.d.ts +1 -1
  32. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +3 -3
  33. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +3 -3
  34. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/composables/useDropdownOptionsListbox.d.ts +2 -1
  35. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +10 -0
  36. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +3 -3
  37. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +9 -0
  38. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +9 -0
  39. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +9 -0
  40. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +9 -0
  41. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +9 -0
  42. package/dist/@types/packages/vue2/src/components/dropdown/composables/useDisplayValue.types.d.ts +1 -0
  43. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +1598 -6
  44. package/dist/@types/packages/vue2/src/components/empty-state/empty-state.types.d.ts +1 -0
  45. package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +3 -3
  46. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +84 -12
  47. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +2 -0
  48. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +2 -0
  49. package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.types.d.ts +3 -1
  50. package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +8 -0
  51. package/dist/@types/packages/vue2/src/components/internal/copy/copy.types.d.ts +8 -0
  52. package/dist/@types/packages/vue2/src/components/internal/copy/copy.vue.d.ts +20 -0
  53. package/dist/@types/packages/vue2/src/components/internal/copy/index.d.ts +1 -0
  54. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/components/listbox-multi-select-category/listbox-multi-select-category.types.d.ts +2 -1
  55. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/components/listbox-multi-select-category/listbox-multi-select-category.vue.d.ts +82 -0
  56. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/listbox-multi-select-options.vue.d.ts +10 -0
  57. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +9 -0
  58. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/components/listbox-single-select-category/index.d.ts +1 -0
  59. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/components/listbox-single-select-category/listbox-single-select-category.vue.d.ts +12 -0
  60. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/listbox-single-select.vue.d.ts +10 -0
  61. package/dist/@types/packages/vue2/src/components/internal/listbox/composables/use-multi-level-items/use-multi-level-items.d.ts +6 -0
  62. package/dist/@types/packages/vue2/src/components/internal/listbox/index.d.ts +1 -0
  63. package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +12 -3
  64. package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.types.d.ts +1 -0
  65. package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.vue.d.ts +1 -1
  66. package/dist/@types/packages/vue2/src/components/menu/components/sub-menu-item-list/sub-menu-item-list.vue.d.ts +2 -0
  67. package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +1 -0
  68. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +1 -1
  69. package/dist/@types/packages/vue2/src/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +251 -3
  70. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +1 -0
  71. package/dist/@types/packages/vue2/src/components/secondary-nav/components/secondary-nav-category/index.d.ts +1 -0
  72. package/dist/@types/packages/vue2/src/components/secondary-nav/components/secondary-nav-category/secondary-nav-category.vue.d.ts +18 -0
  73. package/dist/@types/packages/vue2/src/components/secondary-nav/components/secondary-nav-item/index.d.ts +1 -0
  74. package/dist/@types/packages/vue2/src/components/secondary-nav/components/secondary-nav-item/secondary-nav-item.vue.d.ts +19 -0
  75. package/dist/@types/packages/vue2/src/components/secondary-nav/index.d.ts +2 -0
  76. package/dist/@types/packages/vue2/src/components/secondary-nav/secondary-nav.keys.d.ts +3 -0
  77. package/dist/@types/packages/vue2/src/components/secondary-nav/secondary-nav.types.d.ts +14 -0
  78. package/dist/@types/packages/vue2/src/components/secondary-nav/secondary-nav.vue.d.ts +20 -0
  79. package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +3 -4
  80. package/dist/@types/packages/vue2/src/components/structured-list/structured-list.types.d.ts +2 -0
  81. package/dist/@types/packages/vue2/src/components/structured-list/structured-list.vue.d.ts +16 -3
  82. package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +15 -10
  83. package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +9 -0
  84. package/dist/@types/packages/vue2/src/index.d.ts +1 -0
  85. package/dist/@types/packages/vue2/src/types/elements.d.ts +2 -1
  86. package/dist/@types/packages/vue2/src/utils/ts/deprecate.d.ts +1 -0
  87. package/dist/accordion.js +2 -2
  88. package/dist/action-bar.js +5 -5
  89. package/dist/alert.js +8 -8
  90. package/dist/alert.js.map +1 -1
  91. package/dist/assets/base-modal.css +1 -1
  92. package/dist/assets/button.css +1 -1
  93. package/dist/assets/checkbox.css +1 -1
  94. package/dist/assets/controls-group.css +1 -1
  95. package/dist/assets/copy.css +1 -1
  96. package/dist/assets/dropdown-default-textbox.css +1 -1
  97. package/dist/assets/dropdown.css +1 -1
  98. package/dist/assets/fixed-scroller.css +1 -1
  99. package/dist/assets/index10.css +1 -1
  100. package/dist/assets/index11.css +1 -1
  101. package/dist/assets/index12.css +1 -1
  102. package/dist/assets/index13.css +1 -1
  103. package/dist/assets/index14.css +1 -1
  104. package/dist/assets/index15.css +1 -1
  105. package/dist/assets/index16.css +1 -1
  106. package/dist/assets/index17.css +1 -1
  107. package/dist/assets/index18.css +1 -1
  108. package/dist/assets/index19.css +1 -1
  109. package/dist/assets/index2.css +1 -1
  110. package/dist/assets/index20.css +1 -1
  111. package/dist/assets/index21.css +1 -1
  112. package/dist/assets/index22.css +1 -1
  113. package/dist/assets/index24.css +1 -1
  114. package/dist/assets/index25.css +1 -1
  115. package/dist/assets/index26.css +1 -1
  116. package/dist/assets/index27.css +1 -1
  117. package/dist/assets/index28.css +1 -1
  118. package/dist/assets/index29.css +1 -1
  119. package/dist/assets/index3.css +1 -1
  120. package/dist/assets/index30.css +1 -1
  121. package/dist/assets/index31.css +1 -1
  122. package/dist/assets/index32.css +1 -1
  123. package/dist/assets/index33.css +1 -1
  124. package/dist/assets/index34.css +1 -1
  125. package/dist/assets/index35.css +1 -1
  126. package/dist/assets/index36.css +1 -1
  127. package/dist/assets/index37.css +1 -1
  128. package/dist/assets/index38.css +1 -1
  129. package/dist/assets/index39.css +1 -1
  130. package/dist/assets/index4.css +1 -1
  131. package/dist/assets/index40.css +1 -1
  132. package/dist/assets/index41.css +1 -1
  133. package/dist/assets/index42.css +1 -1
  134. package/dist/assets/index43.css +1 -1
  135. package/dist/assets/index44.css +1 -1
  136. package/dist/assets/index45.css +1 -1
  137. package/dist/assets/index46.css +1 -0
  138. package/dist/assets/index5.css +1 -1
  139. package/dist/assets/index6.css +1 -1
  140. package/dist/assets/index7.css +1 -1
  141. package/dist/assets/index8.css +1 -1
  142. package/dist/assets/index9.css +1 -1
  143. package/dist/assets/listbox.css +1 -1
  144. package/dist/assets/loading-button.css +1 -1
  145. package/dist/avatar-image.js +1 -1
  146. package/dist/button.js +19 -17
  147. package/dist/button.js.map +1 -1
  148. package/dist/card.js +2 -2
  149. package/dist/checkbox.js +61 -48
  150. package/dist/checkbox.js.map +1 -1
  151. package/dist/chunks/{base-button.df9a9bea.js → base-button.bd61ab14.js} +2 -2
  152. package/dist/chunks/{base-button.df9a9bea.js.map → base-button.bd61ab14.js.map} +1 -1
  153. package/dist/chunks/{base-modal.75319f4e.js → base-modal.5640a66a.js} +33 -33
  154. package/dist/chunks/base-modal.5640a66a.js.map +1 -0
  155. package/dist/chunks/{button-actions-with-menu.32770485.js → button-actions-with-menu.767344df.js} +3 -3
  156. package/dist/chunks/{button-actions-with-menu.32770485.js.map → button-actions-with-menu.767344df.js.map} +1 -1
  157. package/dist/chunks/button.bb5b4909.js +100 -0
  158. package/dist/chunks/button.bb5b4909.js.map +1 -0
  159. package/dist/chunks/{calendar.a885d8fc.js → calendar.4ab3c2dc.js} +4 -4
  160. package/dist/chunks/{calendar.a885d8fc.js.map → calendar.4ab3c2dc.js.map} +1 -1
  161. package/dist/chunks/checkbox.c684c20a.js +188 -0
  162. package/dist/chunks/checkbox.c684c20a.js.map +1 -0
  163. package/dist/chunks/{controls-group.dd967ccf.js → controls-group.d25f5044.js} +15 -11
  164. package/dist/chunks/controls-group.d25f5044.js.map +1 -0
  165. package/dist/chunks/copy.36c058e9.js +122 -0
  166. package/dist/chunks/copy.36c058e9.js.map +1 -0
  167. package/dist/chunks/country.types.002caff2.js +5871 -0
  168. package/dist/chunks/country.types.002caff2.js.map +1 -0
  169. package/dist/chunks/{cross-circle-fill.7c07d16a.js → cross-circle-fill.27580c4b.js} +5 -5
  170. package/dist/chunks/{cross-circle-fill.7c07d16a.js.map → cross-circle-fill.27580c4b.js.map} +1 -1
  171. package/dist/chunks/{dropdown-default-textbox.465db4d4.js → dropdown-default-textbox.1cba89ea.js} +11 -11
  172. package/dist/chunks/dropdown-default-textbox.1cba89ea.js.map +1 -0
  173. package/dist/chunks/{dropdown.6461dbe3.js → dropdown.4152cc00.js} +351 -313
  174. package/dist/chunks/dropdown.4152cc00.js.map +1 -0
  175. package/dist/chunks/{field-label.01df3cba.js → field-label.a0c54b7d.js} +5 -5
  176. package/dist/chunks/{field-label.01df3cba.js.map → field-label.a0c54b7d.js.map} +1 -1
  177. package/dist/chunks/{fixed-scroller.42354ccc.js → fixed-scroller.5c90f692.js} +2 -2
  178. package/dist/chunks/{fixed-scroller.42354ccc.js.map → fixed-scroller.5c90f692.js.map} +1 -1
  179. package/dist/chunks/{footer-actions.2cd9079e.js → footer-actions.b14cfca8.js} +3 -3
  180. package/dist/chunks/{footer-actions.2cd9079e.js.map → footer-actions.b14cfca8.js.map} +1 -1
  181. package/dist/chunks/{index.16914bb1.js → index.179d485c.js} +29 -29
  182. package/dist/chunks/{index.16914bb1.js.map → index.179d485c.js.map} +1 -1
  183. package/dist/chunks/index.1e8c900a.js +32 -0
  184. package/dist/chunks/index.1e8c900a.js.map +1 -0
  185. package/dist/chunks/{index.152b2b16.js → index.58282364.js} +3 -3
  186. package/dist/chunks/{index.152b2b16.js.map → index.58282364.js.map} +1 -1
  187. package/dist/chunks/{index.322692c8.js → index.720f0cbf.js} +2 -2
  188. package/dist/chunks/{index.322692c8.js.map → index.720f0cbf.js.map} +1 -1
  189. package/dist/chunks/index.75f0e99f.js +147 -0
  190. package/dist/chunks/index.75f0e99f.js.map +1 -0
  191. package/dist/chunks/{index.6cef7328.js → index.7d2ea1de.js} +2 -2
  192. package/dist/chunks/{index.6cef7328.js.map → index.7d2ea1de.js.map} +1 -1
  193. package/dist/chunks/{index.02da8d63.js → index.aaedd8f9.js} +3 -3
  194. package/dist/chunks/{index.02da8d63.js.map → index.aaedd8f9.js.map} +1 -1
  195. package/dist/chunks/{index.b201e81d.js → index.b0a89960.js} +22 -22
  196. package/dist/chunks/index.b0a89960.js.map +1 -0
  197. package/dist/chunks/{index.d1beb704.js → index.f18f79eb.js} +5 -5
  198. package/dist/chunks/{index.d1beb704.js.map → index.f18f79eb.js.map} +1 -1
  199. package/dist/chunks/{index.f358c4bd.js → index.f2223abb.js} +163 -155
  200. package/dist/chunks/index.f2223abb.js.map +1 -0
  201. package/dist/chunks/{listbox-option-tag.55cd9c16.js → listbox-option-tag.9103c011.js} +3 -3
  202. package/dist/chunks/{listbox-option-tag.55cd9c16.js.map → listbox-option-tag.9103c011.js.map} +1 -1
  203. package/dist/chunks/{listbox.a117e6d4.js → listbox.7cf6d6b4.js} +475 -392
  204. package/dist/chunks/listbox.7cf6d6b4.js.map +1 -0
  205. package/dist/chunks/{loading-button.459b9ab4.js → loading-button.fb025a2e.js} +20 -20
  206. package/dist/chunks/{loading-button.459b9ab4.js.map → loading-button.fb025a2e.js.map} +1 -1
  207. package/dist/chunks/{tooltip.b8929659.js → tooltip.f48beb54.js} +22 -22
  208. package/dist/chunks/tooltip.f48beb54.js.map +1 -0
  209. package/dist/chunks/use-has-slot.fbeb19ec.js.map +1 -1
  210. package/dist/chunks/useCountryItems.6b7985bf.js +29 -0
  211. package/dist/chunks/{useCountryItems.34ac8740.js.map → useCountryItems.6b7985bf.js.map} +1 -1
  212. package/dist/code-snippet.js +10 -12
  213. package/dist/code-snippet.js.map +1 -1
  214. package/dist/country.js +41 -5902
  215. package/dist/country.js.map +1 -1
  216. package/dist/currency.js +1 -1
  217. package/dist/data-grid.js +901 -711
  218. package/dist/data-grid.js.map +1 -1
  219. package/dist/date-picker.js +18 -18
  220. package/dist/date-range-picker.js +2 -2
  221. package/dist/date.js +1 -1
  222. package/dist/divider.js +2 -18
  223. package/dist/divider.js.map +1 -1
  224. package/dist/dropdown.js +41 -41
  225. package/dist/dropdown.js.map +1 -1
  226. package/dist/empty-state.js +18 -18
  227. package/dist/empty-state.js.map +1 -1
  228. package/dist/filter-bar.js +512 -504
  229. package/dist/filter-bar.js.map +1 -1
  230. package/dist/focus-trap.js +1 -1
  231. package/dist/form-layout.js +2 -2
  232. package/dist/form-layout.js.map +1 -1
  233. package/dist/header.js +3 -3
  234. package/dist/index.js +178 -174
  235. package/dist/index.js.map +1 -1
  236. package/dist/info-icon.js +3 -3
  237. package/dist/input-field.js +4 -4
  238. package/dist/internal.js +17 -15
  239. package/dist/link.js +2 -2
  240. package/dist/loading-indicator.js +1 -1
  241. package/dist/menu.js +1 -1
  242. package/dist/modal.js +62 -60
  243. package/dist/modal.js.map +1 -1
  244. package/dist/pagination.js +22 -22
  245. package/dist/pagination.js.map +1 -1
  246. package/dist/payment-method.js +2 -2
  247. package/dist/popover.js +1 -1
  248. package/dist/popper-container.js +1 -1
  249. package/dist/radio-group.js +46 -45
  250. package/dist/radio-group.js.map +1 -1
  251. package/dist/search-bar.js +10 -10
  252. package/dist/secondary-nav.js +98 -0
  253. package/dist/secondary-nav.js.map +1 -0
  254. package/dist/segmented-control.js +3 -3
  255. package/dist/sidepanel.js +5 -5
  256. package/dist/status.js +2 -2
  257. package/dist/stepper.js +3 -3
  258. package/dist/structured-list.js +1 -1
  259. package/dist/summary-grid.js +3 -3
  260. package/dist/tabs.js +3 -3
  261. package/dist/tag.js +3 -3
  262. package/dist/textarea.js +95 -88
  263. package/dist/textarea.js.map +1 -1
  264. package/dist/timeline.js +198 -191
  265. package/dist/timeline.js.map +1 -1
  266. package/dist/toast.js +3 -3
  267. package/dist/toggle.js +1 -1
  268. package/dist/tutorial.js +5 -5
  269. package/dist/typography.js +1 -1
  270. package/dist/web-types.json +822 -409
  271. package/package.json +6 -3
  272. package/dist/@types/packages/vue2/src/components/data-grid/composables/useColumnReorderer/useColumnReorderer.d.ts +0 -67
  273. package/dist/@types/packages/vue2/src/components/data-grid/composables/useConfigSettings/useConfigSettings.d.ts +0 -73
  274. package/dist/chunks/base-modal.75319f4e.js.map +0 -1
  275. package/dist/chunks/button.7dd8d4de.js +0 -125
  276. package/dist/chunks/button.7dd8d4de.js.map +0 -1
  277. package/dist/chunks/checkbox.65743b08.js +0 -184
  278. package/dist/chunks/checkbox.65743b08.js.map +0 -1
  279. package/dist/chunks/controls-group.dd967ccf.js.map +0 -1
  280. package/dist/chunks/copy.e12b418e.js +0 -103
  281. package/dist/chunks/copy.e12b418e.js.map +0 -1
  282. package/dist/chunks/dropdown-default-textbox.465db4d4.js.map +0 -1
  283. package/dist/chunks/dropdown.6461dbe3.js.map +0 -1
  284. package/dist/chunks/index.0890dc99.js +0 -130
  285. package/dist/chunks/index.0890dc99.js.map +0 -1
  286. package/dist/chunks/index.b201e81d.js.map +0 -1
  287. package/dist/chunks/index.f358c4bd.js.map +0 -1
  288. package/dist/chunks/listbox.a117e6d4.js.map +0 -1
  289. package/dist/chunks/tooltip.b8929659.js.map +0 -1
  290. package/dist/chunks/useCountryItems.34ac8740.js +0 -29
  291. /package/dist/@types/packages/vue2/src/components/data-grid/composables/{useCalculateColumnWidth/useCalculateColumnWidth.types.d.ts → use-calculate-column-width/use-calculate-column-width.types.d.ts} +0 -0
  292. /package/dist/@types/packages/vue2/src/components/data-grid/composables/{useCalculateStickyElementHeight/useCalculateStickyElementHeight.d.ts → use-calculate-sticky-element-height/use-calculate-sticky-element-height.d.ts} +0 -0
  293. /package/dist/@types/packages/vue2/src/components/data-grid/composables/{useKeyboardNavigator/useKeyboardNavigator.types.d.ts → use-keyboard-navigator/use-keyboard-navigator.types.d.ts} +0 -0
  294. /package/dist/@types/packages/vue2/src/components/data-grid/composables/{useLazyLoading/useLazyLoading.d.ts → use-lazy-loading/use-lazy-loading.d.ts} +0 -0
  295. /package/dist/@types/packages/vue2/src/components/data-grid/composables/{useSorter.d.ts → use-sorter.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- import { B as a } from "./chunks/index.6cef7328.js";
1
+ import { B as a } from "./chunks/index.7d2ea1de.js";
2
2
  export {
3
3
  a as BentoFocusTrap
4
4
  };
@@ -3,8 +3,8 @@ import { BentoAlert as d } from "./alert.js";
3
3
  import { F as b } from "./chunks/form-layout.types.a7a1438d.js";
4
4
  import { u as m } from "./chunks/use-has-slot.fbeb19ec.js";
5
5
  import { n as l } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
6
- import { B as u, c as C } from "./chunks/index.b201e81d.js";
7
- import "./assets/index37.css";
6
+ import { B as u, c as C } from "./chunks/index.b0a89960.js";
7
+ import "./assets/index29.css";
8
8
  const B = {}, $ = /* @__PURE__ */ _({
9
9
  ...B,
10
10
  __name: "form-layout",
@@ -1 +1 @@
1
- {"version":3,"file":"form-layout.js","sources":["../src/components/form-layout/form-layout.vue","../src/components/form-layout/components/form-layout-field-tip/form-layout-tip.types.ts","../src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue","../src/components/form-layout/components/form-layout-group/form-layout-group.types.ts","../src/components/form-layout/components/form-layout-group/composable/use-form-layout-group-percentage.ts","../src/components/form-layout/components/form-layout-group/form-layout-group.vue","../src/components/form-layout/components/form-layout-title/form-layout-title.vue"],"sourcesContent":["<template>\n <component :is=\"formLayoutElement\" class=\"b-form-layout\" role=\"form\">\n <bento-alert v-if=\"hasSlot('error-message')\" class=\"b-form-layout__error-message\" type=\"critical\">\n <template #description>\n <slot name=\"error-message\" />\n </template>\n </bento-alert>\n\n <slot />\n\n <div v-if=\"hasActions\" class=\"b-form-layout__actions-container\">\n <div class=\"b-form-layout__actions\">\n <slot name=\"actions-left\" />\n </div>\n\n <div class=\"b-form-layout__actions\">\n <slot name=\"actions-right\" />\n </div>\n </div>\n </component>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, provide, toRef, useSlots } from 'vue';\n import { BentoAlert } from '@/components/alert';\n import { useHasSlot } from '@/composables';\n import { FORM_LAYOUT_LOADING_INJECTION_KEY } from './form-layout.types';\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const props = defineProps({\n /**\n * Renders the form layout as an HTML `form`\n */\n form: { type: Boolean, default: false },\n\n /**\n * Sets the state of the form and its fields to\n * a read only status.\n */\n loading: { type: Boolean, default: false },\n });\n\n const formLayoutElement = computed(() => (props.form ? 'form' : 'div'));\n const hasActions = computed(() => hasSlot('actions-left') || hasSlot('actions-right'));\n\n provide(FORM_LAYOUT_LOADING_INJECTION_KEY, toRef(props, 'loading'));\n</script>\n\n<script lang=\"ts\">\n /**\n * Form layout component is a pre-designed layout that serves\n * as a starting point for creating a form.\n *\n * It can include various common form components:\n * input field, dropdown, date picker, checkbox group, radio group,\n * textarea, etc.\n *\n * Form layout is context agnostic and can be dropped in different\n * places, for example in modals, side panels or pages.\n *\n * @example\n * import { BentoFormLayout, BentoFormLayoutFieldTip } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayout, BentoFormLayoutFieldTip },\n * template: `\n * <bento-form-layout>\n * <template #error-message>There is an error. Correct the highlighted field.</template>\n *\n * <bento-input-field>Input field</bento-input-field>\n *\n * <bento-form-layout-field-tip>\n * <bento-dropdown label=\"Dropdown\" :items=\"dropdownItems\" placeholder=\"Select an animal\" />\n * <template #message>This is a small tip that can be used in small spaces</template>\n * </bento-form-layout-field-tip>\n *\n * <bento-form-layout-title subsection>\n * Section title\n * <template #description>Optional section description</template>\n * </bento-form-layout-title>\n * </bento-form-layout>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout.scss\" />\n","import { BentoAlertTypeOption } from '@/components/alert/alert.types';\n\nexport type BentoFormLayoutFieldTipTypeOption = `${BentoAlertTypeOption}`;\nexport const BentoFormLayoutFieldTipTypeOptions = ['warning', 'critical', 'highlight', 'success'];\n","<template>\n <div class=\"b-form-layout-field-tip\">\n <slot />\n <bento-alert variant=\"tip\" :type=\"type\">\n <template #description>\n <slot name=\"message\" />\n </template>\n </bento-alert>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { PropType } from 'vue';\n import { BentoFormLayoutFieldTipTypeOption, BentoFormLayoutFieldTipTypeOptions } from './form-layout-tip.types';\n import { BentoAlert } from '@/components/alert';\n\n defineProps({\n /**\n * Type of a alert; set a distinctive icon and color. Defaults to highlight.\n * @values highlight, success, critical, warning\n */\n type: {\n type: String as PropType<BentoFormLayoutFieldTipTypeOption>,\n default: 'highlight',\n validator: (value: BentoFormLayoutFieldTipTypeOption) => BentoFormLayoutFieldTipTypeOptions.includes(value),\n },\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * You can help users provide accurate and well formatted information\n * by using various elements that come with an input field.\n *\n * Use description/supporting text to add additional context to the\n * field or guidance how to format the input correctly.\n * Because description is always visible it should be the first\n * choice in providing guidance.\n *\n * @example\n * import { BentoFormLayoutFieldTip } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutFieldTip },\n * template: `\n * <bento-form-layout-field-tip>\n * <bento-dropdown label=\"Dropdown\" :items=\"dropdownItems\" placeholder=\"Select an animal\" />\n *\n * <template #message>This is a small tip that can be used in small spaces</template>\n * </bento-form-layout-field-tip>\n * `\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-field-tip.scss\" />\n","export type BentoLayoutGroupProportions =\n | '33-33-33'\n | '50-50'\n | '25-75'\n | '75-25'\n | '33-66'\n | '66-33'\n | '25'\n | '33'\n | '50'\n | '100';\n\nexport const BentoLayoutGroupProportions = [\n '100',\n '50',\n '33',\n '25',\n '66-33',\n '33-66',\n '75-25',\n '25-75',\n '50-50',\n '33-33-33',\n];\n","import { computed, onMounted, Ref } from 'vue';\nimport { BentoLayoutGroupProportions } from '../form-layout-group.types';\n\nconst DEFAULT_PROPORTION = 100;\n\n/**\n * Wraps a FormLayoutGroup child inside a \"div\" container.\n * This helps preventing the components from re-writing the classes or styles.\n * @param {Element} child - Child element to be wrapped\n * @param {HTMLDivElement} container - Container in which the child will be wrapped into\n * @param {string} containerClass - FormLayoutGroup layout percentage class\n */\nfunction wrapInsideContainer(child: Element, container: HTMLDivElement, containerClass: string) {\n // Insert container above the child\n child.parentNode.insertBefore(container, child);\n // Move child to the container\n container.appendChild(child);\n // Apply layout class\n container.classList.add(containerClass);\n}\n\n/**\n * Calculates the CSS classes based on the percentage\n * for each one of the layouts in format `##-##` or `##`.\n *\n * It receives a layout of type @see BentoLayoutGroupProportions to\n * generate the class and apply it to the children of the @see BentoFormLayoutGroup component\n *\n * @param {Ref<BentoLayoutGroupProportions>} layoutProp Layout string in the format `##` or `##-##`\n * @param {Ref<HTMLElement>} formLayoutGroupRef Reference to an HTML element of type BentoFormLayoutGroup\n */\nexport const useFormLayoutGroupPercentage = (\n layoutProp: Ref<BentoLayoutGroupProportions>,\n formLayoutGroupRef: Ref<HTMLElement>\n) => {\n // Split the `##-##` format into individual values [##, ##]\n const getLayoutValues = layout => layout.split?.('-').map(value => parseInt(value, 10));\n // Split the values only if the are in BentoLayoutGroupProportions, otherwise return 100%\n const layout = computed(() =>\n BentoLayoutGroupProportions.includes(layoutProp.value) ? getLayoutValues(layoutProp.value) : DEFAULT_PROPORTION\n );\n\n onMounted(() => {\n // Apply class to every immediate child\n const layoutClassName = formLayoutGroupRef.value.classList[0];\n const immediateChildren = formLayoutGroupRef.value.querySelectorAll(`.${layoutClassName} > *`); // Get immediate children\n\n immediateChildren.forEach((child, index) => {\n const containerClass = `${layoutClassName}--${layout.value[index] || '100'}`; // 100% default\n wrapInsideContainer(child, document.createElement('div'), containerClass);\n });\n });\n};\n","<template>\n <div ref=\"formLayoutGroup\" class=\"b-form-layout-group\" :class=\"conditionalClasses\">\n <slot></slot>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, PropType, ref, toRef } from 'vue';\n import { useFormLayoutGroupPercentage } from './composable/use-form-layout-group-percentage';\n import { BentoLayoutGroupProportions } from './form-layout-group.types';\n\n const props = defineProps({\n /**\n * The layout of the pair group of components.\n * This will render the components within the width of the proportions.\n * Only two colums are available.\n *\n * If only one value is entered, then it will assume there's only one child in the group.\n * If two values are entered, the first value will be use for the first child and the second\n * value for the second child.\n *\n * If the value entered is not listed in the example\n * list below it will use 100% by default.\n * @example\n * '33-33-33'\n * '50-50'\n * '25-75'\n * '75-25'\n * '33-66'\n * '66-33'\n * '25'\n * '33'\n * '50'\n * '100'\n */\n layout: {\n type: String as PropType<BentoLayoutGroupProportions>,\n default: '100',\n validator: (value: BentoLayoutGroupProportions) => BentoLayoutGroupProportions.includes(value),\n },\n });\n\n const formLayoutGroup = ref(null);\n useFormLayoutGroupPercentage(toRef(props, 'layout'), formLayoutGroup);\n\n const conditionalClasses = computed(() => ({\n // Transform into column if the layout is unsopprted\n // \"form-layout.scss\" depends on this class\n 'b-form-layout-group--column': !BentoLayoutGroupProportions.includes(props.layout),\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * Use to provide horizontal layouts to build forms\n * with two fields per line.\n *\n * These can be used for field combinations,\n * such as post code and city or title and first name.\n *\n * @example\n * import { BentoFormLayoutGroup } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutGroup },\n * template: `\n * <bento-form-layout-group>\n * <first-element />\n * <second-element />\n * </bento-form-layout-group>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-group.scss\" />\n","<template>\n <div class=\"b-form-layout-title\" :class=\"conditionalClasses\">\n <bento-typography :el=\"el\" variant=\"title\" :medium=\"isSection\">\n <slot />\n </bento-typography>\n\n <bento-typography v-if=\"hasSlot('description')\" class=\"b-form-layout-title__description\" el=\"span\" wide>\n <slot name=\"description\" />\n </bento-typography>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, useSlots } from 'vue';\n import { BentoTypography, BentoTypographyElement } from '@/components/typography';\n import { useHasSlot } from '@/composables';\n\n const slots = useSlots();\n\n const props = defineProps({\n /**\n * Defines if the Form Layout title is\n * a \"section\" or a \"subsection\".\n * Default is \"section\" (false). Turn into \"true\" for \"subsection\"\n */\n subsection: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the HTML DOM element.\n * @values h1, h2, h3, h4, h5, h6, div, p, span\n */\n el: {\n type: BentoTypography.props.el.type,\n required: true,\n validator: (value: BentoTypographyElement) => Object.values(BentoTypographyElement).includes(value),\n },\n });\n\n // Uses \"medium\" typography if it is a section title\n const isSection = computed(() => !props.subsection);\n const hasSlot = useHasSlot(slots);\n const conditionalClasses = computed(() => ({\n 'b-form-layout-title--subsection': props.subsection,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * If you’re building a lengthy form, organise related\n * fields into sections and, if needed, subsections.\n *\n * A form can have a \"Section Title\" and multiple \"Subsection titles\".\n *\n * One of the values provided in @see BentoTypographyElement must always be provided as a string\n * to define correct HTML sementic from the application's context\n *\n * @example\n * import { BentoFormLayoutTitle } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutTitle },\n * template: `\n * <bento-form-layout-title subsection el=\"h2\">\n * Title\n * <template #description>Description text</template>\n * </bento-form-layout-title>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-title.scss\" />\n"],"names":["__default__$3","slots","useSlots","hasSlot","useHasSlot","formLayoutElement","computed","props","hasActions","provide","FORM_LAYOUT_LOADING_INJECTION_KEY","toRef","BentoFormLayoutFieldTipTypeOptions","__default__$2","BentoLayoutGroupProportions","DEFAULT_PROPORTION","wrapInsideContainer","child","container","containerClass","useFormLayoutGroupPercentage","layoutProp","formLayoutGroupRef","getLayoutValues","layout2","_a","value","layout","onMounted","layoutClassName","index","__default__$1","formLayoutGroup","ref","conditionalClasses","__default__","isSection"],"mappings":";;;;;;;AAsFI,MAAAA,IAAA,CAAA;;;;;;;;;;;;;;;iBA1DAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAeAI,IAAAC,EAAA,MAAAC,EAAA,OAAA,SAAA,KAAA,GACAC,IAAAF,EAAA,MAAAH,EAAA,cAAA,KAAAA,EAAA,eAAA,CAAA;AAEA,WAAAM,EAAAC,GAAAC,EAAAJ,GAAA,SAAA,CAAA;;;;;;;;;;;;;;;;;;qBC5CGK,IAAA,CAAA,WAAA,YAAA,aAAA,SAAA,GCiDHC,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBCxCGC,IAAA;AAAA,EAAoC;AAAA,EACvC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAEJ,GCpBAC,IAAA;AASA,SAAAC,EAAAC,GAAAC,GAAAC,GAAA;AAEI,EAAAF,EAAA,WAAA,aAAAC,GAAAD,CAAA,GAEAC,EAAA,YAAAD,CAAA,GAEAC,EAAA,UAAA,IAAAC,CAAA;AACJ;AAYa,MAAAC,IAAA,CAAAC,GAAAC,MAAA;AAKT,QAAAC,IAAA,CAAAC,MAAA;;AAAA,YAAAC,IAAAD,EAAA,UAAA,gBAAAC,EAAA,KAAAD,GAAA,KAAA,IAAA,CAAAE,MAAA,SAAAA,GAAA,EAAA;AAAA,KAEAC,IAAArB;AAAA,IAAe,MAAAQ,EAAA,SAAAO,EAAA,KAAA,IAAAE,EAAAF,EAAA,KAAA,IAAAN;AAAA,EACkF;AAGjG,EAAAa,EAAA,MAAA;AAEI,UAAAC,IAAAP,EAAA,MAAA,UAAA,CAAA;AAGA,IAFAA,EAAA,MAAA,iBAAA,IAAAO,OAAA,EAEA,QAAA,CAAAZ,GAAAa,MAAA;AACI,YAAAX,IAAA,GAAAU,MAAAF,EAAA,MAAAG,CAAA,KAAA;AACA,MAAAd,EAAAC,GAAA,SAAA,cAAA,KAAA,GAAAE,CAAA;AAAA,IAAwE,CAAA;AAAA,EAC3E,CAAA;AAET,GCqBIY,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA/BAC,IAAAC,EAAA,IAAA;AACA,IAAAb,EAAAT,EAAAJ,GAAA,QAAA,GAAAyB,CAAA;AAEA,UAAAE,IAAA5B,EAAA,OAAA;AAAA;AAAA;AAAA,MAA2C,+BAAA,CAAAQ,EAAA,SAAAP,EAAA,MAAA;AAAA,IAG0C,EAAA;;;;;;;;;;;;;;;;;sBCwBrF4B,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;iBAvDAlC,IAAAC,EAAA,GAyBAkC,IAAA9B,EAAA,MAAA,CAAAC,EAAA,UAAA,GACAJ,IAAAC,EAAAH,CAAA,GACAiC,IAAA5B,EAAA,OAAA;AAAA,MAA2C,mCAAAC,EAAA;AAAA,IACE,EAAA;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"form-layout.js","sources":["../src/components/form-layout/form-layout.vue","../src/components/form-layout/components/form-layout-field-tip/form-layout-tip.types.ts","../src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue","../src/components/form-layout/components/form-layout-group/form-layout-group.types.ts","../src/components/form-layout/components/form-layout-group/composable/use-form-layout-group-percentage.ts","../src/components/form-layout/components/form-layout-group/form-layout-group.vue","../src/components/form-layout/components/form-layout-title/form-layout-title.vue"],"sourcesContent":["<template>\n <component :is=\"formLayoutElement\" class=\"b-form-layout\" role=\"form\">\n <bento-alert v-if=\"hasSlot('error-message')\" class=\"b-form-layout__error-message\" type=\"critical\">\n <template #description>\n <slot name=\"error-message\" />\n </template>\n </bento-alert>\n\n <slot />\n\n <div v-if=\"hasActions\" class=\"b-form-layout__actions-container\">\n <div class=\"b-form-layout__actions\">\n <slot name=\"actions-left\" />\n </div>\n\n <div class=\"b-form-layout__actions\">\n <slot name=\"actions-right\" />\n </div>\n </div>\n </component>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, provide, toRef, useSlots } from 'vue';\n import { BentoAlert } from '@/components/alert';\n import { useHasSlot } from '@/composables';\n import { FORM_LAYOUT_LOADING_INJECTION_KEY } from './form-layout.types';\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const props = defineProps({\n /**\n * Renders the form layout as an HTML `form`\n */\n form: { type: Boolean, default: false },\n\n /**\n * Sets the state of the form and its fields to\n * a read only status.\n */\n loading: { type: Boolean, default: false },\n });\n\n const formLayoutElement = computed(() => (props.form ? 'form' : 'div'));\n const hasActions = computed(() => hasSlot('actions-left') || hasSlot('actions-right'));\n\n provide(FORM_LAYOUT_LOADING_INJECTION_KEY, toRef(props, 'loading'));\n</script>\n\n<script lang=\"ts\">\n /**\n * Form layout component is a pre-designed layout that serves\n * as a starting point for creating a form.\n *\n * It can include various common form components:\n * input field, dropdown, date picker, checkbox group, radio group,\n * textarea, etc.\n *\n * Form layout is context agnostic and can be dropped in different\n * places, for example in modals, side panels or pages.\n *\n * @example\n * import { BentoFormLayout, BentoFormLayoutFieldTip } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayout, BentoFormLayoutFieldTip },\n * template: `\n * <bento-form-layout>\n * <template #error-message>There is an error. Correct the highlighted field.</template>\n *\n * <bento-input-field>Input field</bento-input-field>\n *\n * <bento-form-layout-field-tip>\n * <bento-dropdown label=\"Dropdown\" :items=\"dropdownItems\" placeholder=\"Select an animal\" />\n * <template #message>This is a small tip that can be used in small spaces</template>\n * </bento-form-layout-field-tip>\n *\n * <bento-form-layout-title subsection>\n * Section title\n * <template #description>Optional section description</template>\n * </bento-form-layout-title>\n * </bento-form-layout>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout.scss\" />\n","import { BentoAlertTypeOption } from '@/components/alert/alert.types';\n\nexport type BentoFormLayoutFieldTipTypeOption = `${BentoAlertTypeOption}`;\nexport const BentoFormLayoutFieldTipTypeOptions = ['warning', 'critical', 'highlight', 'success'];\n","<template>\n <div class=\"b-form-layout-field-tip\">\n <slot />\n <bento-alert variant=\"tip\" :type=\"type\">\n <template #description>\n <slot name=\"message\" />\n </template>\n </bento-alert>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { PropType } from 'vue';\n import { BentoFormLayoutFieldTipTypeOption, BentoFormLayoutFieldTipTypeOptions } from './form-layout-tip.types';\n import { BentoAlert } from '@/components/alert';\n\n defineProps({\n /**\n * Type of a alert; set a distinctive icon and color. Defaults to highlight.\n * @values highlight, success, critical, warning\n */\n type: {\n type: String as PropType<BentoFormLayoutFieldTipTypeOption>,\n default: 'highlight',\n validator: (value: BentoFormLayoutFieldTipTypeOption) => BentoFormLayoutFieldTipTypeOptions.includes(value),\n },\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * You can help users provide accurate and well formatted information\n * by using various elements that come with an input field.\n *\n * Use description/supporting text to add additional context to the\n * field or guidance how to format the input correctly.\n * Because description is always visible it should be the first\n * choice in providing guidance.\n *\n * @example\n * import { BentoFormLayoutFieldTip } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutFieldTip },\n * template: `\n * <bento-form-layout-field-tip>\n * <bento-dropdown label=\"Dropdown\" :items=\"dropdownItems\" placeholder=\"Select an animal\" />\n *\n * <template #message>This is a small tip that can be used in small spaces</template>\n * </bento-form-layout-field-tip>\n * `\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-field-tip.scss\" />\n","export type BentoLayoutGroupProportions =\n | '33-33-33'\n | '50-50'\n | '25-75'\n | '75-25'\n | '33-66'\n | '66-33'\n | '25'\n | '33'\n | '50'\n | '100';\n\nexport const BentoLayoutGroupProportions = [\n '100',\n '50',\n '33',\n '25',\n '66-33',\n '33-66',\n '75-25',\n '25-75',\n '50-50',\n '33-33-33',\n];\n","import { computed, onMounted, Ref } from 'vue';\nimport { BentoLayoutGroupProportions } from '../form-layout-group.types';\n\nconst DEFAULT_PROPORTION = 100;\n\n/**\n * Wraps a FormLayoutGroup child inside a \"div\" container.\n * This helps preventing the components from re-writing the classes or styles.\n * @param child Child element to be wrapped\n * @param container Container in which the child will be wrapped into\n * @param containerClass FormLayoutGroup layout percentage class\n */\nfunction wrapInsideContainer(child: Element, container: HTMLDivElement, containerClass: string) {\n // Insert container above the child\n child.parentNode.insertBefore(container, child);\n // Move child to the container\n container.appendChild(child);\n // Apply layout class\n container.classList.add(containerClass);\n}\n\n/**\n * Calculates the CSS classes based on the percentage\n * for each one of the layouts in format `##-##` or `##`.\n *\n * It receives a layout of type `BentoLayoutGroupProportions` to\n * generate the class and apply it to the children of the `BentoFormLayoutGroup` component\n *\n * @param layoutProp Layout string in the format `##` or `##-##`\n * @param formLayoutGroupRef Reference to an HTML element of type BentoFormLayoutGroup\n */\nexport const useFormLayoutGroupPercentage = (\n layoutProp: Ref<BentoLayoutGroupProportions>,\n formLayoutGroupRef: Ref<HTMLElement>\n) => {\n // Split the `##-##` format into individual values [##, ##]\n const getLayoutValues = layout => layout.split?.('-').map(value => parseInt(value, 10));\n // Split the values only if the are in BentoLayoutGroupProportions, otherwise return 100%\n const layout = computed(() =>\n BentoLayoutGroupProportions.includes(layoutProp.value) ? getLayoutValues(layoutProp.value) : DEFAULT_PROPORTION\n );\n\n onMounted(() => {\n // Apply class to every immediate child\n const layoutClassName = formLayoutGroupRef.value.classList[0];\n const immediateChildren = formLayoutGroupRef.value.querySelectorAll(`.${layoutClassName} > *`); // Get immediate children\n\n immediateChildren.forEach((child, index) => {\n const containerClass = `${layoutClassName}--${layout.value[index] || '100'}`; // 100% default\n wrapInsideContainer(child, document.createElement('div'), containerClass);\n });\n });\n};\n","<template>\n <div ref=\"formLayoutGroup\" class=\"b-form-layout-group\" :class=\"conditionalClasses\">\n <slot></slot>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, PropType, ref, toRef } from 'vue';\n import { useFormLayoutGroupPercentage } from './composable/use-form-layout-group-percentage';\n import { BentoLayoutGroupProportions } from './form-layout-group.types';\n\n const props = defineProps({\n /**\n * The layout of the pair group of components.\n * This will render the components within the width of the proportions.\n * Only two colums are available.\n *\n * If only one value is entered, then it will assume there's only one child in the group.\n * If two values are entered, the first value will be use for the first child and the second\n * value for the second child.\n *\n * If the value entered is not listed in the example\n * list below it will use 100% by default.\n * @example\n * '33-33-33'\n * '50-50'\n * '25-75'\n * '75-25'\n * '33-66'\n * '66-33'\n * '25'\n * '33'\n * '50'\n * '100'\n */\n layout: {\n type: String as PropType<BentoLayoutGroupProportions>,\n default: '100',\n validator: (value: BentoLayoutGroupProportions) => BentoLayoutGroupProportions.includes(value),\n },\n });\n\n const formLayoutGroup = ref(null);\n useFormLayoutGroupPercentage(toRef(props, 'layout'), formLayoutGroup);\n\n const conditionalClasses = computed(() => ({\n // Transform into column if the layout is unsopprted\n // \"form-layout.scss\" depends on this class\n 'b-form-layout-group--column': !BentoLayoutGroupProportions.includes(props.layout),\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * Use to provide horizontal layouts to build forms\n * with two fields per line.\n *\n * These can be used for field combinations,\n * such as post code and city or title and first name.\n *\n * @example\n * import { BentoFormLayoutGroup } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutGroup },\n * template: `\n * <bento-form-layout-group>\n * <first-element />\n * <second-element />\n * </bento-form-layout-group>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-group.scss\" />\n","<template>\n <div class=\"b-form-layout-title\" :class=\"conditionalClasses\">\n <bento-typography :el=\"el\" variant=\"title\" :medium=\"isSection\">\n <slot />\n </bento-typography>\n\n <bento-typography v-if=\"hasSlot('description')\" class=\"b-form-layout-title__description\" el=\"span\" wide>\n <slot name=\"description\" />\n </bento-typography>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, useSlots } from 'vue';\n import { BentoTypography, BentoTypographyElement } from '@/components/typography';\n import { useHasSlot } from '@/composables';\n\n const slots = useSlots();\n\n const props = defineProps({\n /**\n * Defines if the Form Layout title is\n * a \"section\" or a \"subsection\".\n * Default is \"section\" (false). Turn into \"true\" for \"subsection\"\n */\n subsection: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the HTML DOM element.\n * @values h1, h2, h3, h4, h5, h6, div, p, span\n */\n el: {\n type: BentoTypography.props.el.type,\n required: true,\n validator: (value: BentoTypographyElement) => Object.values(BentoTypographyElement).includes(value),\n },\n });\n\n // Uses \"medium\" typography if it is a section title\n const isSection = computed(() => !props.subsection);\n const hasSlot = useHasSlot(slots);\n const conditionalClasses = computed(() => ({\n 'b-form-layout-title--subsection': props.subsection,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * If you’re building a lengthy form, organise related\n * fields into sections and, if needed, subsections.\n *\n * A form can have a \"Section Title\" and multiple \"Subsection titles\".\n *\n * One of the values provided in @see BentoTypographyElement must always be provided as a string\n * to define correct HTML sementic from the application's context\n *\n * @example\n * import { BentoFormLayoutTitle } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutTitle },\n * template: `\n * <bento-form-layout-title subsection el=\"h2\">\n * Title\n * <template #description>Description text</template>\n * </bento-form-layout-title>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-title.scss\" />\n"],"names":["__default__$3","slots","useSlots","hasSlot","useHasSlot","formLayoutElement","computed","props","hasActions","provide","FORM_LAYOUT_LOADING_INJECTION_KEY","toRef","BentoFormLayoutFieldTipTypeOptions","__default__$2","BentoLayoutGroupProportions","DEFAULT_PROPORTION","wrapInsideContainer","child","container","containerClass","useFormLayoutGroupPercentage","layoutProp","formLayoutGroupRef","getLayoutValues","layout2","_a","value","layout","onMounted","layoutClassName","index","__default__$1","formLayoutGroup","ref","conditionalClasses","__default__","isSection"],"mappings":";;;;;;;AAsFI,MAAAA,IAAA,CAAA;;;;;;;;;;;;;;;iBA1DAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAeAI,IAAAC,EAAA,MAAAC,EAAA,OAAA,SAAA,KAAA,GACAC,IAAAF,EAAA,MAAAH,EAAA,cAAA,KAAAA,EAAA,eAAA,CAAA;AAEA,WAAAM,EAAAC,GAAAC,EAAAJ,GAAA,SAAA,CAAA;;;;;;;;;;;;;;;;;;qBC5CGK,IAAA,CAAA,WAAA,YAAA,aAAA,SAAA,GCiDHC,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBCxCGC,IAAA;AAAA,EAAoC;AAAA,EACvC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAEJ,GCpBAC,IAAA;AASA,SAAAC,EAAAC,GAAAC,GAAAC,GAAA;AAEI,EAAAF,EAAA,WAAA,aAAAC,GAAAD,CAAA,GAEAC,EAAA,YAAAD,CAAA,GAEAC,EAAA,UAAA,IAAAC,CAAA;AACJ;AAYa,MAAAC,IAAA,CAAAC,GAAAC,MAAA;AAKT,QAAAC,IAAA,CAAAC,MAAA;;AAAA,YAAAC,IAAAD,EAAA,UAAA,gBAAAC,EAAA,KAAAD,GAAA,KAAA,IAAA,CAAAE,MAAA,SAAAA,GAAA,EAAA;AAAA,KAEAC,IAAArB;AAAA,IAAe,MAAAQ,EAAA,SAAAO,EAAA,KAAA,IAAAE,EAAAF,EAAA,KAAA,IAAAN;AAAA,EACkF;AAGjG,EAAAa,EAAA,MAAA;AAEI,UAAAC,IAAAP,EAAA,MAAA,UAAA,CAAA;AAGA,IAFAA,EAAA,MAAA,iBAAA,IAAAO,OAAA,EAEA,QAAA,CAAAZ,GAAAa,MAAA;AACI,YAAAX,IAAA,GAAAU,MAAAF,EAAA,MAAAG,CAAA,KAAA;AACA,MAAAd,EAAAC,GAAA,SAAA,cAAA,KAAA,GAAAE,CAAA;AAAA,IAAwE,CAAA;AAAA,EAC3E,CAAA;AAET,GCqBIY,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA/BAC,IAAAC,EAAA,IAAA;AACA,IAAAb,EAAAT,EAAAJ,GAAA,QAAA,GAAAyB,CAAA;AAEA,UAAAE,IAAA5B,EAAA,OAAA;AAAA;AAAA;AAAA,MAA2C,+BAAA,CAAAQ,EAAA,SAAAP,EAAA,MAAA;AAAA,IAG0C,EAAA;;;;;;;;;;;;;;;;;sBCwBrF4B,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;iBAvDAlC,IAAAC,EAAA,GAyBAkC,IAAA9B,EAAA,MAAA,CAAAC,EAAA,UAAA,GACAJ,IAAAC,EAAAH,CAAA,GACAiC,IAAA5B,EAAA,OAAA;AAAA,MAA2C,mCAAAC,EAAA;AAAA,IACE,EAAA;;;;;;;;;;;;;;;;;;"}
package/dist/header.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as O, computed as v } from "vue";
2
- import { B as C } from "./chunks/button-actions-with-menu.32770485.js";
2
+ import { B as C } from "./chunks/button-actions-with-menu.767344df.js";
3
3
  import { BentoInfoIcon as E } from "./info-icon.js";
4
4
  import { u as A } from "./chunks/use-has-slot.fbeb19ec.js";
5
- import { B as U, c as T, a as X } from "./chunks/index.b201e81d.js";
5
+ import { B as U, c as T, a as X } from "./chunks/index.b0a89960.js";
6
6
  import { u as w } from "./chunks/i18n.eb5b985b.js";
7
7
  import { c as p, a as P } from "./chunks/index.86453263.js";
8
8
  import { r as c, t as i, e as g, g as D, d as R, f as H } from "./chunks/index.f55fdc32.js";
9
9
  import { e as B } from "./chunks/index.fdf12170.js";
10
10
  import { e as Y } from "./chunks/index.d80206ed.js";
11
11
  import { n as G } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
12
- import "./assets/index29.css";
12
+ import "./assets/index38.css";
13
13
  function L(e, t) {
14
14
  c(2, arguments);
15
15
  var a = i(e), n = i(t), l = a.getFullYear() - n.getFullYear(), r = a.getMonth() - n.getMonth();
package/dist/index.js CHANGED
@@ -3,66 +3,68 @@ var i = (e, t, o) => t in e ? B(e, t, { enumerable: !0, configurable: !0, writab
3
3
  var r = (e, t, o) => (i(e, typeof t != "symbol" ? t + "" : t, o), o);
4
4
  import "./chunks/index.4c062058.js";
5
5
  import { reactive as m } from "vue";
6
- import { g as p } from "./chunks/unique-id.a2a2b458.js";
6
+ import { g as s } from "./chunks/unique-id.a2a2b458.js";
7
7
  import { BentoAccordion as T, BentoAccordionItem as C } from "./accordion.js";
8
8
  import { BentoActionBar as D } from "./action-bar.js";
9
- import { BentoAlert as I, BentoAlertEvent as b, BentoAlertTypeOption as E, BentoAlertVariant as L } from "./alert.js";
10
- import { a as F, b as V, B as k } from "./chunks/button.7dd8d4de.js";
11
- import { BentoColumnOverflow as G, BentoDataGrid as w, BentoDatagridAriaSortValue as M, BentoDatagridEvent as O, BentoDatagridSortDirection as R, BentoDatagridStyleState as _ } from "./data-grid.js";
9
+ import { BentoAlert as b, BentoAlertEvent as I, BentoAlertTypeOption as E, BentoAlertVariant as L } from "./alert.js";
10
+ import { a as F, b as V, B as k } from "./chunks/button.bb5b4909.js";
11
+ import { BentoColumnOverflow as G, BentoDataGrid as w, BentoDatagridAriaSortValue as M, BentoDatagridEvent as O, BentoDatagridSortDirection as R, BentoDatagridStyleState as N } from "./data-grid.js";
12
12
  import { BentoCard as q, BentoCardBackground as z, BentoCardTitleSize as U } from "./card.js";
13
13
  import { BentoDatePicker as W, BentoDatePickerEvent as Y } from "./date-picker.js";
14
- import { B as H, a as $ } from "./chunks/index.16914bb1.js";
15
- import { B as Q, u as X } from "./chunks/dropdown.6461dbe3.js";
14
+ import { B as H, a as $ } from "./chunks/index.179d485c.js";
15
+ import { B as Q, u as X } from "./chunks/dropdown.4152cc00.js";
16
16
  import { BentoDropdownAvatar as tt, BentoDropdownCountry as et, BentoDropdownCurrency as ot, BentoDropdownPaymentMethod as nt, BentoDropdownTag as rt } from "./dropdown.js";
17
- import { B as Bt, b as it, a as mt } from "./chunks/checkbox.65743b08.js";
18
- import { BentoClickOutside as st } from "./click-outside.js";
17
+ import { B as Bt, b as it, a as mt } from "./chunks/checkbox.c684c20a.js";
18
+ import { BentoClickOutside as pt } from "./click-outside.js";
19
19
  import { BentoCodeSnippet as ut, BentoCodeSnippetEvent as lt, BentoCodeSnippetSupportedLanguage as ft, BentoCodeSnippetVariant as xt } from "./code-snippet.js";
20
- import { BentoCountry as ct, BentoCountryCode as gt, BentoCountryVariant as St, useCountryCapital as Tt, useCountryName as Ct, useCountryPhoneCode as ht } from "./country.js";
21
- import { BentoCurrency as vt, BentoCurrencyISOCode as It } from "./currency.js";
22
- import { B as Et, a as Lt } from "./chunks/index.322692c8.js";
23
- import { BentoDivider as Ft } from "./divider.js";
24
- import { BentoEmptyState as kt, BentoEmptyStateImage as At, BentoEmptyStateImageVariant as Gt, BentoEmptyStateVariant as wt } from "./empty-state.js";
25
- import { BentoFilterBar as Ot, BentoFilterBarEvent as Rt, BentoFilterEvent as _t, BentoFilterItemType as Nt } from "./filter-bar.js";
26
- import { BentoFormLayout as zt, BentoFormLayoutFieldTip as Ut, BentoFormLayoutGroup as Kt, BentoFormLayoutTitle as Wt } from "./form-layout.js";
27
- import { BentoImage as jt, BentoImageAspectRatio as Ht, BentoImageObjectFit as $t } from "./image.js";
28
- import { BentoInfoIcon as Qt } from "./info-icon.js";
29
- import { BentoInputField as Zt, BentoInputFieldElementPosition as te, BentoInputFieldEvent as ee, BentoInputFieldStateClass as oe, BentoInputFieldType as ne, BentoInputFieldVariant as re } from "./input-field.js";
30
- import { BentoLoadingIndicator as Be, BentoLoadingIndicatorEvent as ie } from "./loading-indicator.js";
31
- import { BentoLink as pe, BentoLinkVariant as se } from "./link.js";
32
- import { B as ue, a as le } from "./chunks/index.f358c4bd.js";
33
- import { BentoModal as xe } from "./modal.js";
34
- import { b as ce, d as ge, e as Se, c as Te, a as Ce, B as he } from "./chunks/base-modal.75319f4e.js";
35
- import { BentoHeader as ve } from "./header.js";
36
- import { BentoPagination as be } from "./pagination.js";
37
- import { BentoPaymentMethod as Le, BentoPaymentMethodType as Pe } from "./payment-method.js";
38
- import { a as Ve, B as ke } from "./chunks/index.d1beb704.js";
39
- import { BentoRadioGroup as Ge, BentoRadioGroupVariant as we } from "./radio-group.js";
40
- import { BentoSearchBar as Oe, BentoSearchBarEvent as Re, BentoSearchBarInternalEvent as _e } from "./search-bar.js";
41
- import { BentoSegmentedControl as qe, BentoSegmentedControlEvent as ze } from "./segmented-control.js";
42
- import { BentoSidepanel as Ke, BentoSidepanelAnimation as We, BentoSidepanelEvent as Ye, BentoSidepanelPage as je } from "./sidepanel.js";
43
- import { BentoStatus as $e, BentoStatusVariant as Je } from "./status.js";
44
- import { BentoStep as Xe, BentoStepper as Ze, BentoStepperTypeOption as to, BentoStepperVariantOption as eo } from "./stepper.js";
45
- import { B as no, a as ro } from "./chunks/index.0890dc99.js";
46
- import { BentoSummaryGrid as Bo, BentoSummaryGridItemAmount as io, BentoSummaryGridItemCustom as mo, BentoSummaryGridItemNumeric as po, BentoSummaryGridItemPercentage as so, BentoSummaryGridItemSize as uo, BentoSummaryGridItemText as lo, BentoSummaryGridItemTrendDirection as fo } from "./summary-grid.js";
47
- import { BentoTab as yo, BentoTabs as co } from "./tabs.js";
48
- import { BentoTag as So, BentoTagVariant as To } from "./tag.js";
49
- import { BentoTextarea as ho } from "./textarea.js";
50
- import { BentoTimeline as vo, BentoTimelineGapUnit as Io, BentoTimelineItem as bo, BentoTimelineItemVariant as Eo, BentoTimelineShowMorePlacement as Lo } from "./timeline.js";
51
- import { BentoToast as Fo } from "./toast.js";
52
- import { u as ko } from "./chunks/toastController.fd667b68.js";
53
- import { BentoToggle as Go, BentoToggleLabelPosition as wo, BentoTogglePropClass as Mo } from "./toggle.js";
54
- import { BentoTutorial as Ro } from "./tutorial.js";
55
- import { B as No, c as qo, b as zo, a as Uo } from "./chunks/index.b201e81d.js";
56
- import { BentoButtonActions as Wo, BentoButtonActionsLayout as Yo, BentoButtonActionsLayoutBasic as jo, BentoButtonActionsLayoutExtended as Ho } from "./button.js";
57
- import { B as Jo, a as Qo } from "./chunks/loading-button.459b9ab4.js";
58
- import { b as Zo, b as tn } from "./chunks/calendar.a885d8fc.js";
59
- import { BentoCheckboxGroup as on, BentoCheckboxGroupVariant as nn } from "./checkbox.js";
60
- import { D as an } from "./chunks/date-input.9186a0bf.js";
61
- import { a as mn, B as pn } from "./chunks/keyboard-navigation.ca47dfa8.js";
62
- import { a as dn, b as un } from "./chunks/listbox.a117e6d4.js";
63
- import { B as fn } from "./chunks/directive.0408e565.js";
64
- import { b as yn, B as cn, a as gn } from "./chunks/tooltip.b8929659.js";
65
- class s {
20
+ import { BentoCountry as yt } from "./country.js";
21
+ import { c as gt, B as Tt, a as Ct, u as ht, b as Dt } from "./chunks/country.types.002caff2.js";
22
+ import { BentoCurrency as bt, BentoCurrencyISOCode as It } from "./currency.js";
23
+ import { B as Lt, a as Pt } from "./chunks/index.720f0cbf.js";
24
+ import { B as Vt } from "./chunks/index.1e8c900a.js";
25
+ import { BentoEmptyState as At, BentoEmptyStateImage as Gt, BentoEmptyStateImageVariant as wt, BentoEmptyStateVariant as Mt } from "./empty-state.js";
26
+ import { BentoFilterBar as Rt, BentoFilterBarEvent as Nt, BentoFilterEvent as _t, BentoFilterItemType as qt } from "./filter-bar.js";
27
+ import { BentoFormLayout as Ut, BentoFormLayoutFieldTip as Kt, BentoFormLayoutGroup as Wt, BentoFormLayoutTitle as Yt } from "./form-layout.js";
28
+ import { BentoImage as Ht, BentoImageAspectRatio as $t, BentoImageObjectFit as Jt } from "./image.js";
29
+ import { BentoInfoIcon as Xt } from "./info-icon.js";
30
+ import { BentoInputField as te, BentoInputFieldElementPosition as ee, BentoInputFieldEvent as oe, BentoInputFieldStateClass as ne, BentoInputFieldType as re, BentoInputFieldVariant as ae } from "./input-field.js";
31
+ import { BentoLoadingIndicator as ie, BentoLoadingIndicatorEvent as me } from "./loading-indicator.js";
32
+ import { BentoLink as pe, BentoLinkVariant as de } from "./link.js";
33
+ import { B as le, a as fe } from "./chunks/index.f2223abb.js";
34
+ import { BentoModal as ce } from "./modal.js";
35
+ import { b as Se, d as ge, e as Te, c as Ce, a as he, B as De } from "./chunks/base-modal.5640a66a.js";
36
+ import { BentoHeader as be } from "./header.js";
37
+ import { BentoPagination as Ee } from "./pagination.js";
38
+ import { BentoPaymentMethod as Pe, BentoPaymentMethodType as Fe } from "./payment-method.js";
39
+ import { a as ke, B as Ae } from "./chunks/index.f18f79eb.js";
40
+ import { BentoRadioGroup as we, BentoRadioGroupVariant as Me } from "./radio-group.js";
41
+ import { BentoSearchBar as Re, BentoSearchBarEvent as Ne, BentoSearchBarInternalEvent as _e } from "./search-bar.js";
42
+ import { BentoSecondaryNav as ze } from "./secondary-nav.js";
43
+ import { BentoSegmentedControl as Ke, BentoSegmentedControlEvent as We } from "./segmented-control.js";
44
+ import { BentoSidepanel as je, BentoSidepanelAnimation as He, BentoSidepanelEvent as $e, BentoSidepanelPage as Je } from "./sidepanel.js";
45
+ import { BentoStatus as Xe, BentoStatusVariant as Ze } from "./status.js";
46
+ import { BentoStep as eo, BentoStepper as oo, BentoStepperTypeOption as no, BentoStepperVariantOption as ro } from "./stepper.js";
47
+ import { B as Bo, a as io } from "./chunks/index.75f0e99f.js";
48
+ import { BentoSummaryGrid as so, BentoSummaryGridItemAmount as po, BentoSummaryGridItemCustom as uo, BentoSummaryGridItemNumeric as lo, BentoSummaryGridItemPercentage as fo, BentoSummaryGridItemSize as xo, BentoSummaryGridItemText as co, BentoSummaryGridItemTrendDirection as yo } from "./summary-grid.js";
49
+ import { BentoTab as go, BentoTabs as To } from "./tabs.js";
50
+ import { BentoTag as ho, BentoTagVariant as Do } from "./tag.js";
51
+ import { BentoTextarea as bo } from "./textarea.js";
52
+ import { BentoTimeline as Eo, BentoTimelineGapUnit as Lo, BentoTimelineItem as Po, BentoTimelineItemVariant as Fo, BentoTimelineShowMorePlacement as Vo, BentoTimelineStatus as ko } from "./timeline.js";
53
+ import { BentoToast as Go } from "./toast.js";
54
+ import { u as Mo } from "./chunks/toastController.fd667b68.js";
55
+ import { BentoToggle as Ro, BentoToggleLabelPosition as No, BentoTogglePropClass as _o } from "./toggle.js";
56
+ import { BentoTutorial as zo } from "./tutorial.js";
57
+ import { B as Ko, c as Wo, b as Yo, a as jo } from "./chunks/index.b0a89960.js";
58
+ import { BentoButtonActions as $o, BentoButtonActionsLayout as Jo, BentoButtonActionsLayoutBasic as Qo, BentoButtonActionsLayoutExtended as Xo } from "./button.js";
59
+ import { B as tn, a as en } from "./chunks/loading-button.fb025a2e.js";
60
+ import { b as nn, b as rn } from "./chunks/calendar.4ab3c2dc.js";
61
+ import { BentoCheckboxGroup as Bn, BentoCheckboxGroupVariant as mn } from "./checkbox.js";
62
+ import { D as pn } from "./chunks/date-input.9186a0bf.js";
63
+ import { a as un, B as ln } from "./chunks/keyboard-navigation.ca47dfa8.js";
64
+ import { a as xn, b as cn } from "./chunks/listbox.7cf6d6b4.js";
65
+ import { B as Sn } from "./chunks/directive.0408e565.js";
66
+ import { b as Tn, B as Cn, a as hn } from "./chunks/tooltip.f48beb54.js";
67
+ class p {
66
68
  constructor() {
67
69
  r(this, "_state");
68
70
  this._state = m({ queue: [] });
@@ -74,7 +76,7 @@ class s {
74
76
  this._state.queue.splice(this._state.queue.indexOf(t), 1);
75
77
  }
76
78
  addToast(t) {
77
- const o = p("toast"), n = {
79
+ const o = s("toast"), n = {
78
80
  ...t,
79
81
  id: o,
80
82
  dismiss: () => this.dismissToast(n)
@@ -89,7 +91,7 @@ const a = (e) => {
89
91
  document.body.classList.add(e);
90
92
  }, u = {
91
93
  install: async (e, t) => {
92
- t != null && t.withToast && (e.prototype.$bentoToastController = new s()), (t == null ? void 0 : t.theme) === "b-legacy-theme" ? (a(
94
+ t != null && t.withToast && (e.prototype.$bentoToastController = new p()), (t == null ? void 0 : t.theme) === "b-legacy-theme" ? (a(
93
95
  "b-legacy-theme"
94
96
  /* LEGACY */
95
97
  ), await import("@adyen/bento-design-tokens/dist/css/bento/variables-legacy.css?used")) : (t == null ? void 0 : t.theme) === "b-styleguide-theme" ? (a(
@@ -97,20 +99,20 @@ const a = (e) => {
97
99
  /* STYLEGUIDE */
98
100
  ), await import("@adyen/bento-design-tokens/dist/css/bento/variables-styleguide.css?used")) : await import("@adyen/bento-design-tokens/dist/css/bento/variables.css?used"), t != null && t.withUtilityClasses && await import("@adyen/bento-design-tokens/dist/css/bento/utility.css?used");
99
101
  }
100
- }, c = u;
102
+ }, y = u;
101
103
  export {
102
104
  T as BentoAccordion,
103
105
  C as BentoAccordionItem,
104
106
  D as BentoActionBar,
105
- I as BentoAlert,
106
- b as BentoAlertEvent,
107
+ b as BentoAlert,
108
+ I as BentoAlertEvent,
107
109
  E as BentoAlertTypeOption,
108
110
  L as BentoAlertVariant,
109
111
  F as BentoButton,
110
- Wo as BentoButtonActions,
111
- Yo as BentoButtonActionsLayout,
112
- jo as BentoButtonActionsLayoutBasic,
113
- Ho as BentoButtonActionsLayoutExtended,
112
+ $o as BentoButtonActions,
113
+ Jo as BentoButtonActionsLayout,
114
+ Qo as BentoButtonActionsLayoutBasic,
115
+ Xo as BentoButtonActionsLayoutExtended,
114
116
  V as BentoButtonPropClass,
115
117
  k as BentoButtonVariant,
116
118
  q as BentoCard,
@@ -118,144 +120,146 @@ export {
118
120
  U as BentoCardTitleSize,
119
121
  Bt as BentoCheckbox,
120
122
  it as BentoCheckboxEvent,
121
- on as BentoCheckboxGroup,
122
- nn as BentoCheckboxGroupVariant,
123
+ Bn as BentoCheckboxGroup,
124
+ mn as BentoCheckboxGroupVariant,
123
125
  mt as BentoCheckboxState,
124
- st as BentoClickOutside,
125
- fn as BentoClickOutsideDirective,
126
+ pt as BentoClickOutside,
127
+ Sn as BentoClickOutsideDirective,
126
128
  ut as BentoCodeSnippet,
127
129
  lt as BentoCodeSnippetEvent,
128
130
  ft as BentoCodeSnippetSupportedLanguage,
129
131
  xt as BentoCodeSnippetVariant,
130
132
  G as BentoColumnOverflow,
131
- ct as BentoCountry,
133
+ yt as BentoCountry,
132
134
  gt as BentoCountryCode,
133
- St as BentoCountryVariant,
134
- vt as BentoCurrency,
135
+ Tt as BentoCountryVariant,
136
+ bt as BentoCurrency,
135
137
  It as BentoCurrencyISOCode,
136
138
  w as BentoDataGrid,
137
139
  M as BentoDatagridAriaSortValue,
138
140
  O as BentoDatagridEvent,
139
141
  R as BentoDatagridSortDirection,
140
- _ as BentoDatagridStyleState,
141
- Et as BentoDate,
142
- Lt as BentoDateFormat,
142
+ N as BentoDatagridStyleState,
143
+ Lt as BentoDate,
144
+ Pt as BentoDateFormat,
143
145
  W as BentoDatePicker,
144
146
  Y as BentoDatePickerEvent,
145
- Zo as BentoDatePickerFirstDayOfWeek,
147
+ nn as BentoDatePickerFirstDayOfWeek,
146
148
  H as BentoDateRangePicker,
147
149
  $ as BentoDateRangePickerEvent,
148
- tn as BentoDateRangePickerFirstDayOfWeek,
149
- Ft as BentoDivider,
150
+ rn as BentoDateRangePickerFirstDayOfWeek,
151
+ Vt as BentoDivider,
150
152
  Q as BentoDropdown,
151
153
  tt as BentoDropdownAvatar,
152
154
  et as BentoDropdownCountry,
153
155
  ot as BentoDropdownCurrency,
154
156
  nt as BentoDropdownPaymentMethod,
155
157
  rt as BentoDropdownTag,
156
- kt as BentoEmptyState,
157
- At as BentoEmptyStateImage,
158
- Gt as BentoEmptyStateImageVariant,
159
- wt as BentoEmptyStateVariant,
160
- Ot as BentoFilterBar,
161
- Rt as BentoFilterBarEvent,
158
+ At as BentoEmptyState,
159
+ Gt as BentoEmptyStateImage,
160
+ wt as BentoEmptyStateImageVariant,
161
+ Mt as BentoEmptyStateVariant,
162
+ Rt as BentoFilterBar,
163
+ Nt as BentoFilterBarEvent,
162
164
  _t as BentoFilterEvent,
163
- Nt as BentoFilterItemType,
164
- zt as BentoFormLayout,
165
- Ut as BentoFormLayoutFieldTip,
166
- Kt as BentoFormLayoutGroup,
167
- Wt as BentoFormLayoutTitle,
168
- ve as BentoHeader,
169
- jt as BentoImage,
170
- Ht as BentoImageAspectRatio,
171
- $t as BentoImageObjectFit,
172
- Qt as BentoInfoIcon,
173
- Zt as BentoInputField,
174
- te as BentoInputFieldElementPosition,
175
- ee as BentoInputFieldEvent,
176
- oe as BentoInputFieldStateClass,
177
- ne as BentoInputFieldType,
178
- re as BentoInputFieldVariant,
179
- mn as BentoKeyboardNavigationDirective,
180
- pn as BentoKeyboardNavigationKeyDownEvent,
165
+ qt as BentoFilterItemType,
166
+ Ut as BentoFormLayout,
167
+ Kt as BentoFormLayoutFieldTip,
168
+ Wt as BentoFormLayoutGroup,
169
+ Yt as BentoFormLayoutTitle,
170
+ be as BentoHeader,
171
+ Ht as BentoImage,
172
+ $t as BentoImageAspectRatio,
173
+ Jt as BentoImageObjectFit,
174
+ Xt as BentoInfoIcon,
175
+ te as BentoInputField,
176
+ ee as BentoInputFieldElementPosition,
177
+ oe as BentoInputFieldEvent,
178
+ ne as BentoInputFieldStateClass,
179
+ re as BentoInputFieldType,
180
+ ae as BentoInputFieldVariant,
181
+ un as BentoKeyboardNavigationDirective,
182
+ ln as BentoKeyboardNavigationKeyDownEvent,
181
183
  pe as BentoLink,
182
- se as BentoLinkVariant,
183
- dn as BentoListboxEvent,
184
- un as BentoListboxLazyLoadType,
185
- Jo as BentoLoadingButton,
186
- Qo as BentoLoadingButtonState,
187
- Be as BentoLoadingIndicator,
188
- ie as BentoLoadingIndicatorEvent,
189
- ue as BentoMenu,
190
- le as BentoMenuEvent,
191
- xe as BentoModal,
192
- ce as BentoModalColumnLayoutVariant,
184
+ de as BentoLinkVariant,
185
+ xn as BentoListboxEvent,
186
+ cn as BentoListboxLazyLoadType,
187
+ tn as BentoLoadingButton,
188
+ en as BentoLoadingButtonState,
189
+ ie as BentoLoadingIndicator,
190
+ me as BentoLoadingIndicatorEvent,
191
+ le as BentoMenu,
192
+ fe as BentoMenuEvent,
193
+ ce as BentoModal,
194
+ Se as BentoModalColumnLayoutVariant,
193
195
  ge as BentoModalDialogType,
194
- Se as BentoModalEvent,
195
- Te as BentoModalRole,
196
- Ce as BentoModalSize,
197
- he as BentoModalVariant,
198
- be as BentoPagination,
199
- Le as BentoPaymentMethod,
200
- Pe as BentoPaymentMethodType,
201
- Ve as BentoPopover,
202
- ke as BentoPopoverPositions,
203
- Ge as BentoRadioGroup,
204
- we as BentoRadioGroupVariant,
205
- Oe as BentoSearchBar,
206
- Re as BentoSearchBarEvent,
196
+ Te as BentoModalEvent,
197
+ Ce as BentoModalRole,
198
+ he as BentoModalSize,
199
+ De as BentoModalVariant,
200
+ Ee as BentoPagination,
201
+ Pe as BentoPaymentMethod,
202
+ Fe as BentoPaymentMethodType,
203
+ ke as BentoPopover,
204
+ Ae as BentoPopoverPositions,
205
+ we as BentoRadioGroup,
206
+ Me as BentoRadioGroupVariant,
207
+ Re as BentoSearchBar,
208
+ Ne as BentoSearchBarEvent,
207
209
  _e as BentoSearchBarInternalEvent,
208
- qe as BentoSegmentedControl,
209
- ze as BentoSegmentedControlEvent,
210
- Ke as BentoSidepanel,
211
- We as BentoSidepanelAnimation,
212
- Ye as BentoSidepanelEvent,
213
- je as BentoSidepanelPage,
214
- $e as BentoStatus,
215
- Je as BentoStatusVariant,
216
- Xe as BentoStep,
217
- Ze as BentoStepper,
218
- to as BentoStepperTypeOption,
219
- eo as BentoStepperVariantOption,
220
- no as BentoStructuredList,
221
- ro as BentoStructuredListItem,
222
- Bo as BentoSummaryGrid,
223
- io as BentoSummaryGridItemAmount,
224
- mo as BentoSummaryGridItemCustom,
225
- po as BentoSummaryGridItemNumeric,
226
- so as BentoSummaryGridItemPercentage,
227
- uo as BentoSummaryGridItemSize,
228
- lo as BentoSummaryGridItemText,
229
- fo as BentoSummaryGridItemTrendDirection,
230
- yo as BentoTab,
231
- co as BentoTabs,
232
- So as BentoTag,
233
- To as BentoTagVariant,
234
- ho as BentoTextarea,
210
+ ze as BentoSecondaryNav,
211
+ Ke as BentoSegmentedControl,
212
+ We as BentoSegmentedControlEvent,
213
+ je as BentoSidepanel,
214
+ He as BentoSidepanelAnimation,
215
+ $e as BentoSidepanelEvent,
216
+ Je as BentoSidepanelPage,
217
+ Xe as BentoStatus,
218
+ Ze as BentoStatusVariant,
219
+ eo as BentoStep,
220
+ oo as BentoStepper,
221
+ no as BentoStepperTypeOption,
222
+ ro as BentoStepperVariantOption,
223
+ Bo as BentoStructuredList,
224
+ io as BentoStructuredListItem,
225
+ so as BentoSummaryGrid,
226
+ po as BentoSummaryGridItemAmount,
227
+ uo as BentoSummaryGridItemCustom,
228
+ lo as BentoSummaryGridItemNumeric,
229
+ fo as BentoSummaryGridItemPercentage,
230
+ xo as BentoSummaryGridItemSize,
231
+ co as BentoSummaryGridItemText,
232
+ yo as BentoSummaryGridItemTrendDirection,
233
+ go as BentoTab,
234
+ To as BentoTabs,
235
+ ho as BentoTag,
236
+ Do as BentoTagVariant,
237
+ bo as BentoTextarea,
235
238
  d as BentoTheme,
236
- vo as BentoTimeline,
237
- Io as BentoTimelineGapUnit,
238
- bo as BentoTimelineItem,
239
- Eo as BentoTimelineItemVariant,
240
- Lo as BentoTimelineShowMorePlacement,
241
- Fo as BentoToast,
242
- Go as BentoToggle,
243
- wo as BentoToggleLabelPosition,
244
- Mo as BentoTogglePropClass,
245
- yn as BentoTooltipDirective,
246
- cn as BentoTooltipPosition,
247
- gn as BentoTooltipState,
248
- Ro as BentoTutorial,
249
- No as BentoTypography,
250
- qo as BentoTypographyElement,
251
- zo as BentoTypographyModifier,
252
- Uo as BentoTypographyVariant,
253
- an as DateFormat,
254
- c as default,
255
- ko as useBentoToastController,
256
- Tt as useCountryCapital,
257
- Ct as useCountryName,
258
- ht as useCountryPhoneCode,
239
+ Eo as BentoTimeline,
240
+ Lo as BentoTimelineGapUnit,
241
+ Po as BentoTimelineItem,
242
+ Fo as BentoTimelineItemVariant,
243
+ Vo as BentoTimelineShowMorePlacement,
244
+ ko as BentoTimelineStatus,
245
+ Go as BentoToast,
246
+ Ro as BentoToggle,
247
+ No as BentoToggleLabelPosition,
248
+ _o as BentoTogglePropClass,
249
+ Tn as BentoTooltipDirective,
250
+ Cn as BentoTooltipPosition,
251
+ hn as BentoTooltipState,
252
+ zo as BentoTutorial,
253
+ Ko as BentoTypography,
254
+ Wo as BentoTypographyElement,
255
+ Yo as BentoTypographyModifier,
256
+ jo as BentoTypographyVariant,
257
+ pn as DateFormat,
258
+ y as default,
259
+ Mo as useBentoToastController,
260
+ Ct as useCountryCapital,
261
+ ht as useCountryName,
262
+ Dt as useCountryPhoneCode,
259
263
  X as useSearchBarFilter
260
264
  };
261
265
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/plugins/toastController.ts","../src/install.ts"],"sourcesContent":["import { reactive } from 'vue';\nimport { generateUid } from '@/utils/ts/unique-id';\nimport { BentoToastItem } from '@/components/toast/components/toast-item';\n\n/* eslint-disable no-underscore-dangle */\nexport default class ToastController {\n get state(): { queue: Array<BentoToastItem> } {\n return this._state;\n }\n\n private _state: { queue: Array<BentoToastItem> };\n\n constructor() {\n this._state = reactive({ queue: [] });\n }\n\n private dismissToast(toast: BentoToastItem): void {\n this._state.queue.splice(this._state.queue.indexOf(toast), 1);\n }\n\n public addToast(params: BentoToastItem) {\n const id = generateUid('toast');\n const toast = {\n ...params,\n id,\n dismiss: () => this.dismissToast(toast),\n };\n\n // new messages always appear in front\n this._state.queue.push(toast);\n\n // return API to manipulate toast\n return {\n dismiss: () => this.dismissToast(toast),\n };\n }\n}\n/* eslint-enable no-underscore-dangle */\n","import type { PluginObject } from 'vue';\nimport { isVue2 } from 'vue-demi';\nimport ToastController from './plugins/toastController';\n\nexport enum BentoTheme {\n LEGACY = 'b-legacy-theme',\n STYLEGUIDE = 'b-styleguide-theme',\n BENTO = '',\n}\n\ninterface BentoVuePlugin {\n theme: BentoTheme;\n withToast: boolean;\n}\n\nconst setTheme = (theme: BentoTheme) => {\n document.body.classList.add(theme);\n};\n\nconst plugin: PluginObject<BentoVuePlugin> = {\n install: async (Vue, options: { theme: BentoTheme; withToast: boolean; withUtilityClasses: boolean }) => {\n if (options?.withToast) {\n if (isVue2) {\n // Adds a new property to the Vue instance\n // eslint-disable-next-line no-param-reassign\n (Vue as any).prototype.$bentoToastController = new ToastController();\n } else {\n // eslint-disable-next-line no-param-reassign\n (Vue as any).config.globalProperties.$bentoToastController = new ToastController();\n }\n }\n // Make sure to put all awaited CSS imports below this point and not above!\n if (options?.theme === BentoTheme.LEGACY) {\n setTheme(BentoTheme.LEGACY);\n await import('@adyen/bento-design-tokens/dist/css/bento/variables-legacy.css');\n } else if (options?.theme === BentoTheme.STYLEGUIDE) {\n setTheme(BentoTheme.STYLEGUIDE);\n await import('@adyen/bento-design-tokens/dist/css/bento/variables-styleguide.css');\n } else {\n await import('@adyen/bento-design-tokens/dist/css/bento/variables.css');\n }\n\n if (options?.withUtilityClasses) {\n await import('@adyen/bento-design-tokens/dist/css/bento/utility.css');\n }\n },\n};\n\nexport default plugin;\n"],"names":["ToastController","__publicField","reactive","toast","params","id","generateUid","BentoTheme","setTheme","theme","plugin","Vue","options","BentoVue"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,MAAqBA,EAAgB;AAAA,EAOjC,cAAc;AAFN,IAAAC,EAAA;AAGJ,SAAK,SAASC,EAAS,EAAE,OAAO,CAAA,EAAI,CAAA;AAAA,EACxC;AAAA,EARA,IAAI,QAA0C;AAC1C,WAAO,KAAK;AAAA,EAChB;AAAA,EAQQ,aAAaC,GAA6B;AACzC,SAAA,OAAO,MAAM,OAAO,KAAK,OAAO,MAAM,QAAQA,CAAK,GAAG,CAAC;AAAA,EAChE;AAAA,EAEO,SAASC,GAAwB;AAC9B,UAAAC,IAAKC,EAAY,OAAO,GACxBH,IAAQ;AAAA,MACV,GAAGC;AAAA,MACH,IAAAC;AAAA,MACA,SAAS,MAAM,KAAK,aAAaF,CAAK;AAAA,IAAA;AAIrC,gBAAA,OAAO,MAAM,KAAKA,CAAK,GAGrB;AAAA,MACH,SAAS,MAAM,KAAK,aAAaA,CAAK;AAAA,IAAA;AAAA,EAE9C;AACJ;AChCY,IAAAI,sBAAAA,OACRA,EAAA,SAAS,kBACTA,EAAA,aAAa,sBACbA,EAAA,QAAQ,IAHAA,IAAAA,KAAA,CAAA,CAAA;AAWZ,MAAMC,IAAW,CAACC,MAAsB;AAC3B,WAAA,KAAK,UAAU,IAAIA,CAAK;AACrC,GAEMC,IAAuC;AAAA,EACzC,SAAS,OAAOC,GAAKC,MAAoF;AACrG,IAAIA,KAAA,QAAAA,EAAS,cAIJD,EAAY,UAAU,wBAAwB,IAAIX,EAAgB,KAOvEY,KAAA,gBAAAA,EAAS,WAAU,oBACnBJ;AAAA,MAAS;AAAA;AAAA,IAAiB,GAC1B,MAAM,OAAO,qEAAgE,MACtEI,KAAA,gBAAAA,EAAS,WAAU,wBAC1BJ;AAAA,MAAS;AAAA;AAAA,IAAqB,GAC9B,MAAM,OAAO,yEAAoE,KAEjF,MAAM,OAAO,8DAAyD,GAGtEI,KAAA,QAAAA,EAAS,sBACT,MAAM,OAAO,4DAAuD;AAAA,EAE5E;AACJ,GAEAC,IAAeH;"}
1
+ {"version":3,"file":"index.js","sources":["../src/plugins/toastController.ts","../src/install.ts"],"sourcesContent":["import { reactive } from 'vue';\nimport { generateUid } from '@/utils/ts/unique-id';\nimport { BentoToastItem } from '@/components/toast/components/toast-item';\n\n/* eslint-disable no-underscore-dangle */\nexport default class ToastController {\n get state(): { queue: Array<BentoToastItem> } {\n return this._state;\n }\n\n private _state: { queue: Array<BentoToastItem> };\n\n constructor() {\n this._state = reactive({ queue: [] });\n }\n\n private dismissToast(toast: BentoToastItem): void {\n this._state.queue.splice(this._state.queue.indexOf(toast), 1);\n }\n\n public addToast(params: BentoToastItem) {\n const id = generateUid('toast');\n const toast = {\n ...params,\n id,\n dismiss: () => this.dismissToast(toast),\n };\n\n // new messages always appear in front\n this._state.queue.push(toast);\n\n // return API to manipulate toast\n return {\n dismiss: () => this.dismissToast(toast),\n };\n }\n}\n/* eslint-enable no-underscore-dangle */\n","import type { PluginObject } from 'vue';\nimport { isVue2 } from 'vue-demi';\nimport ToastController from './plugins/toastController';\n\nexport enum BentoTheme {\n LEGACY = 'b-legacy-theme',\n STYLEGUIDE = 'b-styleguide-theme',\n BENTO = '',\n}\n\ninterface BentoVuePlugin {\n theme: BentoTheme;\n withToast: boolean;\n}\n\nconst setTheme = (theme: BentoTheme) => {\n document.body.classList.add(theme);\n};\n\nconst plugin: PluginObject<BentoVuePlugin> = {\n install: async (Vue, options: { theme: BentoTheme; withToast: boolean; withUtilityClasses: boolean }) => {\n if (options?.withToast) {\n if (isVue2) {\n // Adds a new property to the Vue instance\n // eslint-disable-next-line no-param-reassign\n (Vue as any).prototype.$bentoToastController = new ToastController();\n } else {\n // eslint-disable-next-line no-param-reassign\n (Vue as any).config.globalProperties.$bentoToastController = new ToastController();\n }\n }\n // Make sure to put all awaited CSS imports below this point and not above!\n if (options?.theme === BentoTheme.LEGACY) {\n setTheme(BentoTheme.LEGACY);\n await import('@adyen/bento-design-tokens/dist/css/bento/variables-legacy.css');\n } else if (options?.theme === BentoTheme.STYLEGUIDE) {\n setTheme(BentoTheme.STYLEGUIDE);\n await import('@adyen/bento-design-tokens/dist/css/bento/variables-styleguide.css');\n } else {\n await import('@adyen/bento-design-tokens/dist/css/bento/variables.css');\n }\n\n if (options?.withUtilityClasses) {\n await import('@adyen/bento-design-tokens/dist/css/bento/utility.css');\n }\n },\n};\n\nexport default plugin;\n"],"names":["ToastController","__publicField","reactive","toast","params","id","generateUid","BentoTheme","setTheme","theme","plugin","Vue","options","BentoVue"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,MAAqBA,EAAgB;AAAA,EAOjC,cAAc;AAFN,IAAAC,EAAA;AAGJ,SAAK,SAASC,EAAS,EAAE,OAAO,CAAA,EAAI,CAAA;AAAA,EACxC;AAAA,EARA,IAAI,QAA0C;AAC1C,WAAO,KAAK;AAAA,EAChB;AAAA,EAQQ,aAAaC,GAA6B;AACzC,SAAA,OAAO,MAAM,OAAO,KAAK,OAAO,MAAM,QAAQA,CAAK,GAAG,CAAC;AAAA,EAChE;AAAA,EAEO,SAASC,GAAwB;AAC9B,UAAAC,IAAKC,EAAY,OAAO,GACxBH,IAAQ;AAAA,MACV,GAAGC;AAAA,MACH,IAAAC;AAAA,MACA,SAAS,MAAM,KAAK,aAAaF,CAAK;AAAA,IAAA;AAIrC,gBAAA,OAAO,MAAM,KAAKA,CAAK,GAGrB;AAAA,MACH,SAAS,MAAM,KAAK,aAAaA,CAAK;AAAA,IAAA;AAAA,EAE9C;AACJ;AChCY,IAAAI,sBAAAA,OACRA,EAAA,SAAS,kBACTA,EAAA,aAAa,sBACbA,EAAA,QAAQ,IAHAA,IAAAA,KAAA,CAAA,CAAA;AAWZ,MAAMC,IAAW,CAACC,MAAsB;AAC3B,WAAA,KAAK,UAAU,IAAIA,CAAK;AACrC,GAEMC,IAAuC;AAAA,EACzC,SAAS,OAAOC,GAAKC,MAAoF;AACrG,IAAIA,KAAA,QAAAA,EAAS,cAIJD,EAAY,UAAU,wBAAwB,IAAIX,EAAgB,KAOvEY,KAAA,gBAAAA,EAAS,WAAU,oBACnBJ;AAAA,MAAS;AAAA;AAAA,IAAiB,GAC1B,MAAM,OAAO,qEAAgE,MACtEI,KAAA,gBAAAA,EAAS,WAAU,wBAC1BJ;AAAA,MAAS;AAAA;AAAA,IAAqB,GAC9B,MAAM,OAAO,yEAAoE,KAEjF,MAAM,OAAO,8DAAyD,GAGtEI,KAAA,QAAAA,EAAS,sBACT,MAAM,OAAO,4DAAuD;AAAA,EAE5E;AACJ,GAEAC,IAAeH;"}
package/dist/info-icon.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as r } from "vue";
2
- import { c as i } from "./chunks/index.152b2b16.js";
2
+ import { c as i } from "./chunks/index.58282364.js";
3
3
  import { n as s } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
4
- import { b as a } from "./chunks/tooltip.b8929659.js";
5
- import "./assets/index31.css";
4
+ import { b as a } from "./chunks/tooltip.f48beb54.js";
5
+ import "./assets/index35.css";
6
6
  let n = 0;
7
7
  const l = {
8
8
  beforeCreate() {