@adyen/bento-vue2 1.7.0 → 1.8.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 (223) hide show
  1. package/dist/@types/components.d.ts +2 -0
  2. package/dist/@types/packages/core/src/components/button/button.types.d.ts +1 -1
  3. package/dist/@types/packages/vue2/src/components/action-bar/action-bar.vue.d.ts +11 -0
  4. package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.types.d.ts +1 -1
  5. package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.vue.d.ts +7 -2
  6. package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +28 -18
  7. package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +25 -0
  8. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +13 -1
  9. package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +9 -0
  10. package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.types.d.ts +6 -2
  11. package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.vue.d.ts +153 -12
  12. package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.types.d.ts +1 -1
  13. package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +18 -0
  14. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +320 -21
  15. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +9 -0
  16. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +9 -0
  17. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +9 -0
  18. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +9 -0
  19. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +9 -0
  20. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +12 -3
  21. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +30 -24
  22. package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +1 -0
  23. package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +9 -0
  24. package/dist/@types/packages/vue2/src/components/internal/calendar/calendar.types.d.ts +12 -0
  25. package/dist/@types/packages/vue2/src/components/internal/calendar/calendar.vue.d.ts +11 -1
  26. package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/composables/granular-min-max-date.d.ts +2 -0
  27. package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/composables/granular-min-max-date.types.d.ts +13 -0
  28. package/dist/@types/packages/vue2/src/components/internal/calendar/composables/use-granularity-adjustments.d.ts +2 -0
  29. package/dist/@types/packages/vue2/src/components/internal/calendar/composables/use-granularity-adjustments.types.d.ts +14 -0
  30. package/dist/@types/packages/vue2/src/components/internal/calendar/composables/use-granularity-memory.d.ts +2 -0
  31. package/dist/@types/packages/vue2/src/components/internal/calendar/composables/use-granularity-memory.types.d.ts +22 -0
  32. package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +1 -1
  33. package/dist/@types/packages/vue2/src/components/internal/field-label/field-label.vue.d.ts +48 -0
  34. package/dist/@types/packages/vue2/src/components/internal/field-label/index.d.ts +1 -0
  35. package/dist/@types/packages/vue2/src/components/internal/grid-layout/grid-layout.vue.d.ts +11 -0
  36. package/dist/@types/packages/vue2/src/components/internal/index.d.ts +1 -0
  37. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +2 -1
  38. package/dist/@types/packages/vue2/src/components/popover/popover.keys.d.ts +1 -0
  39. package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +16 -22
  40. package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +1 -0
  41. package/dist/@types/packages/vue2/src/components/structured-list/structured-list.keys.d.ts +1 -0
  42. package/dist/@types/packages/vue2/src/components/structured-list/structured-list.vue.d.ts +20 -1
  43. package/dist/@types/packages/vue2/src/components/summary-grid/summary-grid.types.d.ts +4 -4
  44. package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +9 -0
  45. package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +19 -2
  46. package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +4 -2
  47. package/dist/@types/packages/vue2/src/components/timeline/timeline.vue.d.ts +18 -2
  48. package/dist/@types/packages/vue2/src/index.d.ts +1 -0
  49. package/dist/accordion.js +1 -1
  50. package/dist/action-bar.js +112 -93
  51. package/dist/action-bar.js.map +1 -1
  52. package/dist/alert.js +1 -1
  53. package/dist/assets/base-modal.css +1 -1
  54. package/dist/assets/calendar.css +1 -1
  55. package/dist/assets/checkbox.css +1 -1
  56. package/dist/assets/controls-group.css +1 -1
  57. package/dist/assets/dropdown.css +1 -1
  58. package/dist/assets/field-label.css +1 -0
  59. package/dist/assets/grid-layout.css +1 -1
  60. package/dist/assets/index.css +1 -1
  61. package/dist/assets/index11.css +1 -1
  62. package/dist/assets/index12.css +1 -1
  63. package/dist/assets/index13.css +1 -1
  64. package/dist/assets/index14.css +1 -1
  65. package/dist/assets/index15.css +1 -1
  66. package/dist/assets/index16.css +1 -1
  67. package/dist/assets/index17.css +1 -1
  68. package/dist/assets/index18.css +1 -1
  69. package/dist/assets/index19.css +1 -1
  70. package/dist/assets/index2.css +1 -1
  71. package/dist/assets/index20.css +1 -1
  72. package/dist/assets/index21.css +1 -1
  73. package/dist/assets/index22.css +1 -1
  74. package/dist/assets/index23.css +1 -1
  75. package/dist/assets/index24.css +1 -1
  76. package/dist/assets/index25.css +1 -1
  77. package/dist/assets/index26.css +1 -1
  78. package/dist/assets/index27.css +1 -1
  79. package/dist/assets/index28.css +1 -1
  80. package/dist/assets/index29.css +1 -1
  81. package/dist/assets/index3.css +1 -1
  82. package/dist/assets/index30.css +1 -1
  83. package/dist/assets/index32.css +1 -1
  84. package/dist/assets/index33.css +1 -1
  85. package/dist/assets/index34.css +1 -1
  86. package/dist/assets/index35.css +1 -1
  87. package/dist/assets/index36.css +1 -1
  88. package/dist/assets/index37.css +1 -1
  89. package/dist/assets/index38.css +1 -1
  90. package/dist/assets/index39.css +1 -1
  91. package/dist/assets/index4.css +1 -1
  92. package/dist/assets/index40.css +1 -1
  93. package/dist/assets/index41.css +1 -1
  94. package/dist/assets/index42.css +1 -1
  95. package/dist/assets/index43.css +1 -1
  96. package/dist/assets/index44.css +1 -1
  97. package/dist/assets/index45.css +1 -1
  98. package/dist/assets/index5.css +1 -1
  99. package/dist/assets/index6.css +1 -1
  100. package/dist/assets/index7.css +1 -1
  101. package/dist/assets/index8.css +1 -1
  102. package/dist/assets/index9.css +1 -1
  103. package/dist/assets/loading-button.css +1 -1
  104. package/dist/avatar-image.js +1 -1
  105. package/dist/badge.js +1 -1
  106. package/dist/button.js +38 -35
  107. package/dist/button.js.map +1 -1
  108. package/dist/card.js +1 -1
  109. package/dist/checkbox.js +5 -5
  110. package/dist/chunks/{base-modal.88e7b9d4.js → base-modal.31634fe8.js} +60 -49
  111. package/dist/chunks/base-modal.31634fe8.js.map +1 -0
  112. package/dist/chunks/{button-actions-with-menu.a5413243.js → button-actions-with-menu.5faea13e.js} +5 -5
  113. package/dist/chunks/{button-actions-with-menu.a5413243.js.map → button-actions-with-menu.5faea13e.js.map} +1 -1
  114. package/dist/chunks/button.e09d5980.js.map +1 -1
  115. package/dist/chunks/calendar.47e9e755.js +959 -0
  116. package/dist/chunks/calendar.47e9e755.js.map +1 -0
  117. package/dist/chunks/{checkbox.5343e28e.js → checkbox.2277450e.js} +67 -56
  118. package/dist/chunks/checkbox.2277450e.js.map +1 -0
  119. package/dist/chunks/controls-group.6c5bfccd.js +79 -0
  120. package/dist/chunks/controls-group.6c5bfccd.js.map +1 -0
  121. package/dist/chunks/{copy.346eadb1.js → copy.a85c2e9f.js} +3 -3
  122. package/dist/chunks/{copy.346eadb1.js.map → copy.a85c2e9f.js.map} +1 -1
  123. package/dist/chunks/{dropdown.f1253a54.js → dropdown.ce937989.js} +200 -196
  124. package/dist/chunks/dropdown.ce937989.js.map +1 -0
  125. package/dist/chunks/field-label.330edb60.js +107 -0
  126. package/dist/chunks/field-label.330edb60.js.map +1 -0
  127. package/dist/chunks/{grid-layout.b7e0d964.js → grid-layout.a806acb2.js} +36 -27
  128. package/dist/chunks/grid-layout.a806acb2.js.map +1 -0
  129. package/dist/chunks/index.210d2169.js +290 -0
  130. package/dist/chunks/index.210d2169.js.map +1 -0
  131. package/dist/chunks/{index.8ac70774.js → index.66503760.js} +3 -3
  132. package/dist/chunks/{index.8ac70774.js.map → index.66503760.js.map} +1 -1
  133. package/dist/chunks/{index.2625175a.js → index.86fc63ca.js} +30 -28
  134. package/dist/chunks/{index.2625175a.js.map → index.86fc63ca.js.map} +1 -1
  135. package/dist/chunks/{index.a201f750.js → index.89942d3a.js} +4 -5
  136. package/dist/chunks/{index.a201f750.js.map → index.89942d3a.js.map} +1 -1
  137. package/dist/chunks/index.a5de5242.js +130 -0
  138. package/dist/chunks/index.a5de5242.js.map +1 -0
  139. package/dist/chunks/index.a99ffd48.js +634 -0
  140. package/dist/chunks/index.a99ffd48.js.map +1 -0
  141. package/dist/chunks/index.d80206ed.js +10 -0
  142. package/dist/chunks/index.d80206ed.js.map +1 -0
  143. package/dist/chunks/{index.37283390.js → index.d8bd7596.js} +96 -99
  144. package/dist/chunks/{index.37283390.js.map → index.d8bd7596.js.map} +1 -1
  145. package/dist/chunks/{listbox-option-tag.6a09e8e2.js → listbox-option-tag.97af47fc.js} +6 -7
  146. package/dist/chunks/{listbox-option-tag.6a09e8e2.js.map → listbox-option-tag.97af47fc.js.map} +1 -1
  147. package/dist/chunks/{listbox.73c38f38.js → listbox.d039b178.js} +5 -6
  148. package/dist/chunks/{listbox.73c38f38.js.map → listbox.d039b178.js.map} +1 -1
  149. package/dist/chunks/loading-button.9a9cbbad.js +89 -0
  150. package/dist/chunks/loading-button.9a9cbbad.js.map +1 -0
  151. package/dist/chunks/{tooltip.104e5fac.js → tooltip.ecd0f707.js} +2 -2
  152. package/dist/chunks/{tooltip.104e5fac.js.map → tooltip.ecd0f707.js.map} +1 -1
  153. package/dist/code-snippet.js +4 -4
  154. package/dist/code-snippet.js.map +1 -1
  155. package/dist/country.js +1 -1
  156. package/dist/data-grid.js +563 -541
  157. package/dist/data-grid.js.map +1 -1
  158. package/dist/date-picker.js +83 -80
  159. package/dist/date-picker.js.map +1 -1
  160. package/dist/date-range-picker.js +2 -2
  161. package/dist/divider.js +1 -1
  162. package/dist/dropdown.js +3 -3
  163. package/dist/empty-state.js +1 -1
  164. package/dist/filter-bar.js +13 -12
  165. package/dist/filter-bar.js.map +1 -1
  166. package/dist/focus-trap.js +1 -1
  167. package/dist/form-layout.js +1 -1
  168. package/dist/header.js +63 -67
  169. package/dist/header.js.map +1 -1
  170. package/dist/index.js +211 -209
  171. package/dist/index.js.map +1 -1
  172. package/dist/info-icon.js +3 -3
  173. package/dist/input-field.js +57 -55
  174. package/dist/input-field.js.map +1 -1
  175. package/dist/internal.js +13 -12
  176. package/dist/link.js +1 -1
  177. package/dist/loading-indicator.js +1 -1
  178. package/dist/menu.js +1 -1
  179. package/dist/modal.js +2 -2
  180. package/dist/modal.js.map +1 -1
  181. package/dist/pagination.js +2 -2
  182. package/dist/payment-method.js +1 -1
  183. package/dist/popover.js +3 -305
  184. package/dist/popover.js.map +1 -1
  185. package/dist/popper-container.js +1 -1
  186. package/dist/radio-group.js +3 -3
  187. package/dist/search-bar.js +2 -2
  188. package/dist/segmented-control.js +2 -2
  189. package/dist/sidepanel.js +2 -2
  190. package/dist/status.js +1 -1
  191. package/dist/stepper.js +1 -1
  192. package/dist/structured-list.js +1 -1
  193. package/dist/summary-grid.js +3 -3
  194. package/dist/summary-grid.js.map +1 -1
  195. package/dist/tabs.js +1 -1
  196. package/dist/tag.js +2 -2
  197. package/dist/textarea.js +59 -56
  198. package/dist/textarea.js.map +1 -1
  199. package/dist/timeline.js +226 -173
  200. package/dist/timeline.js.map +1 -1
  201. package/dist/toast.js +1 -1
  202. package/dist/toggle.js +1 -1
  203. package/dist/tutorial.js +7 -7
  204. package/dist/web-types.json +519 -393
  205. package/package.json +3 -3
  206. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/__mocks__/base-modal.vue.d.ts +0 -118
  207. package/dist/assets/error-message.css +0 -1
  208. package/dist/chunks/base-modal.88e7b9d4.js.map +0 -1
  209. package/dist/chunks/calendar.24d0ac04.js +0 -821
  210. package/dist/chunks/calendar.24d0ac04.js.map +0 -1
  211. package/dist/chunks/checkbox.5343e28e.js.map +0 -1
  212. package/dist/chunks/controls-group.2a21bd83.js +0 -87
  213. package/dist/chunks/controls-group.2a21bd83.js.map +0 -1
  214. package/dist/chunks/dropdown.f1253a54.js.map +0 -1
  215. package/dist/chunks/error-message.8302a46c.js +0 -47
  216. package/dist/chunks/error-message.8302a46c.js.map +0 -1
  217. package/dist/chunks/grid-layout.b7e0d964.js.map +0 -1
  218. package/dist/chunks/index.d6b5f5e1.js +0 -112
  219. package/dist/chunks/index.d6b5f5e1.js.map +0 -1
  220. package/dist/chunks/index.e566354f.js +0 -532
  221. package/dist/chunks/index.e566354f.js.map +0 -1
  222. package/dist/chunks/loading-button.c65682d6.js +0 -86
  223. package/dist/chunks/loading-button.c65682d6.js.map +0 -1
package/dist/index.js CHANGED
@@ -5,62 +5,63 @@ import "./chunks/index.af05ced4.js";
5
5
  import { reactive as m } from "vue";
6
6
  import { g as p } from "./chunks/unique-id.a2a2b458.js";
7
7
  import { BentoAccordion as T, BentoAccordionItem as C } from "./accordion.js";
8
- import { BentoAlert as D, BentoAlertEvent as v, BentoAlertTypeOption as I, BentoAlertVariant as b } from "./alert.js";
9
- import { a as L, b as P, B as F } from "./chunks/button.e09d5980.js";
10
- import { BentoColumnOverflow as k, BentoDataGrid as G, BentoDatagridAriaSortValue as w, BentoDatagridEvent as A, BentoDatagridSortDirection as M, BentoDatagridStyleState as O } from "./data-grid.js";
11
- import { BentoCard as _, BentoCardBackground as N, BentoCardTitleSize as q } from "./card.js";
12
- import { BentoDatePicker as U, BentoDatePickerEvent as K } from "./date-picker.js";
13
- import { B as Y, a as j } from "./chunks/index.e566354f.js";
14
- import { B as $, u as J } from "./chunks/dropdown.f1253a54.js";
15
- import { BentoDropdownAvatar as X, BentoDropdownCountry as Z, BentoDropdownCurrency as tt, BentoDropdownPaymentMethod as et, BentoDropdownTag as ot } from "./dropdown.js";
16
- import { B as rt, b as at, a as Bt } from "./chunks/checkbox.5343e28e.js";
17
- import { BentoClickOutside as mt } from "./click-outside.js";
18
- import { BentoCodeSnippet as st, BentoCodeSnippetEvent as dt, BentoCodeSnippetSupportedLanguage as ut, BentoCodeSnippetVariant as lt } from "./code-snippet.js";
19
- import { BentoCountry as xt, BentoCountryCode as yt, BentoCountryVariant as ct, useCountryCapital as gt, useCountryName as St, useCountryPhoneCode as Tt } from "./country.js";
20
- import { BentoCurrency as ht, BentoCurrencyISOCode as Dt } from "./currency.js";
21
- import { B as It, a as bt } from "./chunks/index.b83f8b7e.js";
22
- import { BentoDivider as Lt } from "./divider.js";
23
- import { BentoEmptyState as Ft, BentoEmptyStateImage as Vt, BentoEmptyStateImageVariant as kt, BentoEmptyStateVariant as Gt } from "./empty-state.js";
24
- import { BentoFilterBar as At, BentoFilterBarEvent as Mt, BentoFilterEvent as Ot, BentoFilterItemType as Rt } from "./filter-bar.js";
25
- import { BentoFormLayout as Nt, BentoFormLayoutFieldTip as qt, BentoFormLayoutGroup as zt, BentoFormLayoutTitle as Ut } from "./form-layout.js";
26
- import { BentoImage as Wt, BentoImageAspectRatio as Yt, BentoImageObjectFit as jt } from "./image.js";
27
- import { BentoInfoIcon as $t } from "./info-icon.js";
28
- import { BentoInputField as Qt, BentoInputFieldElementPosition as Xt, BentoInputFieldEvent as Zt, BentoInputFieldStateClass as te, BentoInputFieldType as ee, BentoInputFieldVariant as oe } from "./input-field.js";
29
- import { BentoLoadingIndicator as re, BentoLoadingIndicatorEvent as ae } from "./loading-indicator.js";
30
- import { BentoLink as ie, BentoLinkVariant as me } from "./link.js";
31
- import { B as se, a as de } from "./chunks/index.37283390.js";
32
- import { BentoModal as le } from "./modal.js";
33
- import { b as xe, d as ye, e as ce, c as ge, a as Se, B as Te } from "./chunks/base-modal.88e7b9d4.js";
34
- import { BentoHeader as he } from "./header.js";
35
- import { BentoPagination as ve } from "./pagination.js";
36
- import { BentoPaymentMethod as be, BentoPaymentMethodType as Ee } from "./payment-method.js";
37
- import { BentoPopover as Pe, BentoPopoverPositions as Fe } from "./popover.js";
38
- import { BentoRadioGroup as ke, BentoRadioGroupVariant as Ge } from "./radio-group.js";
39
- import { BentoSearchBar as Ae, BentoSearchBarEvent as Me, BentoSearchBarInternalEvent as Oe } from "./search-bar.js";
40
- import { BentoSegmentedControl as _e, BentoSegmentedControlEvent as Ne } from "./segmented-control.js";
41
- import { BentoSidepanel as ze, BentoSidepanelAnimation as Ue, BentoSidepanelEvent as Ke, BentoSidepanelPage as We } from "./sidepanel.js";
42
- import { BentoStatus as je, BentoStatusVariant as He } from "./status.js";
43
- import { BentoStep as Je, BentoStepper as Qe, BentoStepperTypeOption as Xe, BentoStepperVariantOption as Ze } from "./stepper.js";
44
- import { B as eo, a as oo } from "./chunks/index.d6b5f5e1.js";
45
- import { BentoSummaryGrid as ro, BentoSummaryGridItemAmount as ao, BentoSummaryGridItemCustom as Bo, BentoSummaryGridItemNumeric as io, BentoSummaryGridItemPercentage as mo, BentoSummaryGridItemSize as po, BentoSummaryGridItemText as so, BentoSummaryGridItemTrendDirection as uo } from "./summary-grid.js";
46
- import { BentoTab as fo, BentoTabs as xo } from "./tabs.js";
47
- import { BentoTag as co, BentoTagVariant as go } from "./tag.js";
48
- import { BentoTextarea as To } from "./textarea.js";
49
- import { BentoTimeline as ho, BentoTimelineGapUnit as Do, BentoTimelineItem as vo, BentoTimelineItemVariant as Io, BentoTimelineShowMorePlacement as bo } from "./timeline.js";
50
- import { BentoToast as Lo } from "./toast.js";
51
- import { u as Fo } from "./chunks/toastController.0e01443d.js";
52
- import { BentoToggle as ko, BentoToggleLabelPosition as Go, BentoTogglePropClass as wo } from "./toggle.js";
53
- import { BentoTutorial as Mo } from "./tutorial.js";
54
- import { B as Ro, c as _o, b as No, a as qo } from "./chunks/index.965ac1af.js";
55
- import { BentoButtonActions as Uo, BentoButtonActionsLayout as Ko, BentoButtonActionsLayoutBasic as Wo, BentoButtonActionsLayoutExtended as Yo } from "./button.js";
56
- import { B as Ho, a as $o } from "./chunks/loading-button.c65682d6.js";
57
- import { b as Qo, b as Xo } from "./chunks/calendar.24d0ac04.js";
58
- import { BentoCheckboxGroup as tn, BentoCheckboxGroupVariant as en } from "./checkbox.js";
59
- import { D as nn } from "./chunks/date-input.9186a0bf.js";
60
- import { a as an, B as Bn } from "./chunks/keyboard-navigation.ca47dfa8.js";
61
- import { a as pn, b as sn } from "./chunks/listbox.73c38f38.js";
62
- import { B as un } from "./chunks/directive.0408e565.js";
63
- import { b as fn, B as xn, a as yn } from "./chunks/tooltip.104e5fac.js";
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.e09d5980.js";
11
+ import { BentoColumnOverflow as G, BentoDataGrid as w, BentoDatagridAriaSortValue as M, BentoDatagridEvent as O, BentoDatagridSortDirection as R, BentoDatagridStyleState as _ } from "./data-grid.js";
12
+ import { BentoCard as q, BentoCardBackground as z, BentoCardTitleSize as U } from "./card.js";
13
+ import { BentoDatePicker as W, BentoDatePickerEvent as Y } from "./date-picker.js";
14
+ import { B as H, a as $ } from "./chunks/index.a99ffd48.js";
15
+ import { B as Q, u as X } from "./chunks/dropdown.ce937989.js";
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.2277450e.js";
18
+ import { BentoClickOutside as st } from "./click-outside.js";
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.b83f8b7e.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.d8bd7596.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.31634fe8.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.210d2169.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.a5de5242.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.0e01443d.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.965ac1af.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.9a9cbbad.js";
58
+ import { b as Zo, b as tn } from "./chunks/calendar.47e9e755.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.d039b178.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.ecd0f707.js";
64
65
  class s {
65
66
  constructor() {
66
67
  r(this, "_state");
@@ -100,160 +101,161 @@ const a = (e) => {
100
101
  export {
101
102
  T as BentoAccordion,
102
103
  C as BentoAccordionItem,
103
- D as BentoAlert,
104
- v as BentoAlertEvent,
105
- I as BentoAlertTypeOption,
106
- b as BentoAlertVariant,
107
- L as BentoButton,
108
- Uo as BentoButtonActions,
109
- Ko as BentoButtonActionsLayout,
110
- Wo as BentoButtonActionsLayoutBasic,
111
- Yo as BentoButtonActionsLayoutExtended,
112
- P as BentoButtonPropClass,
113
- F as BentoButtonVariant,
114
- _ as BentoCard,
115
- N as BentoCardBackground,
116
- q as BentoCardTitleSize,
117
- rt as BentoCheckbox,
118
- at as BentoCheckboxEvent,
119
- tn as BentoCheckboxGroup,
120
- en as BentoCheckboxGroupVariant,
121
- Bt as BentoCheckboxState,
122
- mt as BentoClickOutside,
123
- un as BentoClickOutsideDirective,
124
- st as BentoCodeSnippet,
125
- dt as BentoCodeSnippetEvent,
126
- ut as BentoCodeSnippetSupportedLanguage,
127
- lt as BentoCodeSnippetVariant,
128
- k as BentoColumnOverflow,
129
- xt as BentoCountry,
130
- yt as BentoCountryCode,
131
- ct as BentoCountryVariant,
132
- ht as BentoCurrency,
133
- Dt as BentoCurrencyISOCode,
134
- G as BentoDataGrid,
135
- w as BentoDatagridAriaSortValue,
136
- A as BentoDatagridEvent,
137
- M as BentoDatagridSortDirection,
138
- O as BentoDatagridStyleState,
139
- It as BentoDate,
140
- bt as BentoDateFormat,
141
- U as BentoDatePicker,
142
- K as BentoDatePickerEvent,
143
- Qo as BentoDatePickerFirstDayOfWeek,
144
- Y as BentoDateRangePicker,
145
- j as BentoDateRangePickerEvent,
146
- Xo as BentoDateRangePickerFirstDayOfWeek,
147
- Lt as BentoDivider,
148
- $ as BentoDropdown,
149
- X as BentoDropdownAvatar,
150
- Z as BentoDropdownCountry,
151
- tt as BentoDropdownCurrency,
152
- et as BentoDropdownPaymentMethod,
153
- ot as BentoDropdownTag,
154
- Ft as BentoEmptyState,
155
- Vt as BentoEmptyStateImage,
156
- kt as BentoEmptyStateImageVariant,
157
- Gt as BentoEmptyStateVariant,
158
- At as BentoFilterBar,
159
- Mt as BentoFilterBarEvent,
160
- Ot as BentoFilterEvent,
161
- Rt as BentoFilterItemType,
162
- Nt as BentoFormLayout,
163
- qt as BentoFormLayoutFieldTip,
164
- zt as BentoFormLayoutGroup,
165
- Ut as BentoFormLayoutTitle,
166
- he as BentoHeader,
167
- Wt as BentoImage,
168
- Yt as BentoImageAspectRatio,
169
- jt as BentoImageObjectFit,
170
- $t as BentoInfoIcon,
171
- Qt as BentoInputField,
172
- Xt as BentoInputFieldElementPosition,
173
- Zt as BentoInputFieldEvent,
174
- te as BentoInputFieldStateClass,
175
- ee as BentoInputFieldType,
176
- oe as BentoInputFieldVariant,
177
- an as BentoKeyboardNavigationDirective,
178
- Bn as BentoKeyboardNavigationKeyDownEvent,
179
- ie as BentoLink,
180
- me as BentoLinkVariant,
181
- pn as BentoListboxEvent,
182
- sn as BentoListboxLazyLoadType,
183
- Ho as BentoLoadingButton,
184
- $o as BentoLoadingButtonState,
185
- re as BentoLoadingIndicator,
186
- ae as BentoLoadingIndicatorEvent,
187
- se as BentoMenu,
188
- de as BentoMenuEvent,
189
- le as BentoModal,
190
- xe as BentoModalColumnLayoutVariant,
191
- ye as BentoModalDialogType,
192
- ce as BentoModalEvent,
193
- ge as BentoModalRole,
194
- Se as BentoModalSize,
195
- Te as BentoModalVariant,
196
- ve as BentoPagination,
197
- be as BentoPaymentMethod,
198
- Ee as BentoPaymentMethodType,
199
- Pe as BentoPopover,
200
- Fe as BentoPopoverPositions,
201
- ke as BentoRadioGroup,
202
- Ge as BentoRadioGroupVariant,
203
- Ae as BentoSearchBar,
204
- Me as BentoSearchBarEvent,
205
- Oe as BentoSearchBarInternalEvent,
206
- _e as BentoSegmentedControl,
207
- Ne as BentoSegmentedControlEvent,
208
- ze as BentoSidepanel,
209
- Ue as BentoSidepanelAnimation,
210
- Ke as BentoSidepanelEvent,
211
- We as BentoSidepanelPage,
212
- je as BentoStatus,
213
- He as BentoStatusVariant,
214
- Je as BentoStep,
215
- Qe as BentoStepper,
216
- Xe as BentoStepperTypeOption,
217
- Ze as BentoStepperVariantOption,
218
- eo as BentoStructuredList,
219
- oo as BentoStructuredListItem,
220
- ro as BentoSummaryGrid,
221
- ao as BentoSummaryGridItemAmount,
222
- Bo as BentoSummaryGridItemCustom,
223
- io as BentoSummaryGridItemNumeric,
224
- mo as BentoSummaryGridItemPercentage,
225
- po as BentoSummaryGridItemSize,
226
- so as BentoSummaryGridItemText,
227
- uo as BentoSummaryGridItemTrendDirection,
228
- fo as BentoTab,
229
- xo as BentoTabs,
230
- co as BentoTag,
231
- go as BentoTagVariant,
232
- To as BentoTextarea,
104
+ D as BentoActionBar,
105
+ I as BentoAlert,
106
+ b as BentoAlertEvent,
107
+ E as BentoAlertTypeOption,
108
+ L as BentoAlertVariant,
109
+ F as BentoButton,
110
+ Wo as BentoButtonActions,
111
+ Yo as BentoButtonActionsLayout,
112
+ jo as BentoButtonActionsLayoutBasic,
113
+ Ho as BentoButtonActionsLayoutExtended,
114
+ V as BentoButtonPropClass,
115
+ k as BentoButtonVariant,
116
+ q as BentoCard,
117
+ z as BentoCardBackground,
118
+ U as BentoCardTitleSize,
119
+ Bt as BentoCheckbox,
120
+ it as BentoCheckboxEvent,
121
+ on as BentoCheckboxGroup,
122
+ nn as BentoCheckboxGroupVariant,
123
+ mt as BentoCheckboxState,
124
+ st as BentoClickOutside,
125
+ fn as BentoClickOutsideDirective,
126
+ ut as BentoCodeSnippet,
127
+ lt as BentoCodeSnippetEvent,
128
+ ft as BentoCodeSnippetSupportedLanguage,
129
+ xt as BentoCodeSnippetVariant,
130
+ G as BentoColumnOverflow,
131
+ ct as BentoCountry,
132
+ gt as BentoCountryCode,
133
+ St as BentoCountryVariant,
134
+ vt as BentoCurrency,
135
+ It as BentoCurrencyISOCode,
136
+ w as BentoDataGrid,
137
+ M as BentoDatagridAriaSortValue,
138
+ O as BentoDatagridEvent,
139
+ R as BentoDatagridSortDirection,
140
+ _ as BentoDatagridStyleState,
141
+ Et as BentoDate,
142
+ Lt as BentoDateFormat,
143
+ W as BentoDatePicker,
144
+ Y as BentoDatePickerEvent,
145
+ Zo as BentoDatePickerFirstDayOfWeek,
146
+ H as BentoDateRangePicker,
147
+ $ as BentoDateRangePickerEvent,
148
+ tn as BentoDateRangePickerFirstDayOfWeek,
149
+ Ft as BentoDivider,
150
+ Q as BentoDropdown,
151
+ tt as BentoDropdownAvatar,
152
+ et as BentoDropdownCountry,
153
+ ot as BentoDropdownCurrency,
154
+ nt as BentoDropdownPaymentMethod,
155
+ 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,
162
+ _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,
181
+ 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,
193
+ 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,
207
+ _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,
233
235
  d as BentoTheme,
234
- ho as BentoTimeline,
235
- Do as BentoTimelineGapUnit,
236
- vo as BentoTimelineItem,
237
- Io as BentoTimelineItemVariant,
238
- bo as BentoTimelineShowMorePlacement,
239
- Lo as BentoToast,
240
- ko as BentoToggle,
241
- Go as BentoToggleLabelPosition,
242
- wo as BentoTogglePropClass,
243
- fn as BentoTooltipDirective,
244
- xn as BentoTooltipPosition,
245
- yn as BentoTooltipState,
246
- Mo as BentoTutorial,
247
- Ro as BentoTypography,
248
- _o as BentoTypographyElement,
249
- No as BentoTypographyModifier,
250
- qo as BentoTypographyVariant,
251
- nn as DateFormat,
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,
252
254
  c as default,
253
- Fo as useBentoToastController,
254
- gt as useCountryCapital,
255
- St as useCountryName,
256
- Tt as useCountryPhoneCode,
257
- J as useSearchBarFilter
255
+ ko as useBentoToastController,
256
+ Tt as useCountryCapital,
257
+ Ct as useCountryName,
258
+ ht as useCountryPhoneCode,
259
+ X as useSearchBarFilter
258
260
  };
259
261
  //# 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.8ac70774.js";
2
+ import { c as i } from "./chunks/index.66503760.js";
3
3
  import { n as s } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
4
- import { b as a } from "./chunks/tooltip.104e5fac.js";
5
- import "./assets/index44.css";
4
+ import { b as a } from "./chunks/tooltip.ecd0f707.js";
5
+ import "./assets/index33.css";
6
6
  let n = 0;
7
7
  const l = {
8
8
  beforeCreate() {