@adyen/bento-vue2 0.10.0 → 0.10.1-2

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 (239) hide show
  1. package/dist/@types/components/currency/currency.vue.d.ts +9 -0
  2. package/dist/@types/components/data-grid/data-grid.vue.d.ts +3 -3
  3. package/dist/@types/components/date/date.vue.d.ts +9 -0
  4. package/dist/@types/components/modal/components/base-modal/base-modal.vue.d.ts +10 -0
  5. package/dist/@types/components/modal/components/modal-default/modal-default.vue.d.ts +9 -0
  6. package/dist/@types/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +9 -0
  7. package/dist/@types/components/modal/modal.vue.d.ts +11 -0
  8. package/dist/@types/components/segmented-control/components/segmented-control-button/segmented-control-button.vue.d.ts +1 -1
  9. package/dist/@types/components/segmented-control/index.d.ts +2 -0
  10. package/dist/@types/components/segmented-control/segmented-control.types.d.ts +8 -0
  11. package/dist/@types/components/segmented-control/segmented-control.vue.d.ts +53 -0
  12. package/dist/@types/components.d.ts +2 -4
  13. package/dist/@types/index.d.ts +1 -0
  14. package/dist/accordion.js +206 -0
  15. package/dist/accordion.js.map +1 -0
  16. package/dist/alert.js +103 -0
  17. package/dist/alert.js.map +1 -0
  18. package/dist/assets/base-button.css +1 -0
  19. package/dist/assets/button-actions.css +1 -0
  20. package/dist/assets/button.css +1 -0
  21. package/dist/assets/checkbox.css +1 -0
  22. package/dist/assets/checkmark-circle-fill.css +1 -0
  23. package/dist/assets/checkmark-small.css +1 -0
  24. package/dist/assets/chevron-left.css +1 -0
  25. package/dist/assets/chevron-up.css +1 -0
  26. package/dist/assets/copy.css +1 -0
  27. package/dist/assets/cross-circle-fill.css +1 -0
  28. package/dist/assets/cross-small.css +1 -0
  29. package/dist/assets/cross.css +1 -0
  30. package/dist/assets/dropdown.css +1 -0
  31. package/dist/assets/grid-layout.css +1 -0
  32. package/dist/assets/index.css +1 -0
  33. package/dist/assets/index10.css +1 -0
  34. package/dist/assets/index11.css +1 -0
  35. package/dist/assets/index12.css +1 -0
  36. package/dist/assets/index13.css +1 -0
  37. package/dist/assets/index14.css +1 -0
  38. package/dist/assets/index15.css +1 -0
  39. package/dist/assets/index16.css +1 -0
  40. package/dist/assets/index17.css +1 -0
  41. package/dist/assets/index18.css +1 -0
  42. package/dist/assets/index19.css +1 -0
  43. package/dist/assets/index2.css +1 -0
  44. package/dist/assets/index20.css +1 -0
  45. package/dist/assets/index21.css +1 -0
  46. package/dist/assets/index22.css +1 -0
  47. package/dist/assets/index23.css +1 -0
  48. package/dist/assets/index24.css +1 -0
  49. package/dist/assets/index25.css +1 -0
  50. package/dist/assets/index26.css +1 -0
  51. package/dist/assets/index27.css +1 -0
  52. package/dist/assets/index28.css +1 -0
  53. package/dist/assets/index29.css +1 -0
  54. package/dist/assets/index3.css +1 -0
  55. package/dist/assets/index30.css +1 -0
  56. package/dist/assets/index31.css +1 -0
  57. package/dist/assets/index32.css +1 -0
  58. package/dist/assets/index33.css +1 -0
  59. package/dist/assets/index34.css +1 -0
  60. package/dist/assets/index35.css +1 -0
  61. package/dist/assets/index36.css +1 -0
  62. package/dist/assets/index37.css +1 -0
  63. package/dist/assets/index38.css +1 -0
  64. package/dist/assets/index4.css +1 -0
  65. package/dist/assets/index5.css +1 -0
  66. package/dist/assets/index6.css +1 -0
  67. package/dist/assets/index7.css +1 -0
  68. package/dist/assets/index8.css +1 -0
  69. package/dist/assets/index9.css +1 -0
  70. package/dist/assets/info-filled.css +1 -0
  71. package/dist/assets/listbox-option-tag.css +1 -0
  72. package/dist/assets/listbox.css +1 -0
  73. package/dist/assets/search.css +1 -0
  74. package/dist/assets/tooltip.css +1 -0
  75. package/dist/avatar-image.js +7 -0
  76. package/dist/avatar-image.js.map +1 -0
  77. package/dist/badge.js +57 -0
  78. package/dist/badge.js.map +1 -0
  79. package/dist/button.js +110 -0
  80. package/dist/button.js.map +1 -0
  81. package/dist/card.js +178 -0
  82. package/dist/card.js.map +1 -0
  83. package/dist/checkbox.js +94 -0
  84. package/dist/checkbox.js.map +1 -0
  85. package/dist/chunks/_plugin-vue2_normalizer.71e2aa87.js +33 -0
  86. package/dist/chunks/_plugin-vue2_normalizer.71e2aa87.js.map +1 -0
  87. package/dist/chunks/aria-label.ac9651a5.js +13 -0
  88. package/dist/chunks/aria-label.ac9651a5.js.map +1 -0
  89. package/dist/chunks/base-button.38651156.js +83 -0
  90. package/dist/chunks/base-button.38651156.js.map +1 -0
  91. package/dist/chunks/button-actions.59406268.js +105 -0
  92. package/dist/chunks/button-actions.59406268.js.map +1 -0
  93. package/dist/chunks/button.31b757d1.js +102 -0
  94. package/dist/chunks/button.31b757d1.js.map +1 -0
  95. package/dist/chunks/checkbox.fab16cce.js +138 -0
  96. package/dist/chunks/checkbox.fab16cce.js.map +1 -0
  97. package/dist/chunks/checkmark-circle-fill.d1aa324d.js +26 -0
  98. package/dist/chunks/checkmark-circle-fill.d1aa324d.js.map +1 -0
  99. package/dist/chunks/checkmark-small.1371dd20.js +26 -0
  100. package/dist/chunks/checkmark-small.1371dd20.js.map +1 -0
  101. package/dist/chunks/chevron-left.e3a49e62.js +47 -0
  102. package/dist/chunks/chevron-left.e3a49e62.js.map +1 -0
  103. package/dist/chunks/chevron-up.416431cd.js +47 -0
  104. package/dist/chunks/chevron-up.416431cd.js.map +1 -0
  105. package/dist/chunks/copy.fa9aa27e.js +105 -0
  106. package/dist/chunks/copy.fa9aa27e.js.map +1 -0
  107. package/dist/chunks/cross-circle-fill.0a1d738c.js +26 -0
  108. package/dist/chunks/cross-circle-fill.0a1d738c.js.map +1 -0
  109. package/dist/chunks/cross-small.7ecb1b97.js +26 -0
  110. package/dist/chunks/cross-small.7ecb1b97.js.map +1 -0
  111. package/dist/chunks/cross.db1f9177.js +26 -0
  112. package/dist/chunks/cross.db1f9177.js.map +1 -0
  113. package/dist/chunks/directive.23e35ab0.js +21 -0
  114. package/dist/chunks/directive.23e35ab0.js.map +1 -0
  115. package/dist/chunks/dropdown.0d394d2f.js +771 -0
  116. package/dist/chunks/dropdown.0d394d2f.js.map +1 -0
  117. package/dist/chunks/grid-layout.14423a2e.js +69 -0
  118. package/dist/chunks/grid-layout.14423a2e.js.map +1 -0
  119. package/dist/chunks/hasSlot.dceac207.js +5 -0
  120. package/dist/chunks/hasSlot.dceac207.js.map +1 -0
  121. package/dist/chunks/i18n.8934ef6c.js +1695 -0
  122. package/dist/chunks/i18n.8934ef6c.js.map +1 -0
  123. package/dist/chunks/index.2e54c294.js +801 -0
  124. package/dist/chunks/index.2e54c294.js.map +1 -0
  125. package/dist/chunks/index.34eba2c4.js +107 -0
  126. package/dist/chunks/index.34eba2c4.js.map +1 -0
  127. package/dist/chunks/index.59dc2e3f.js +801 -0
  128. package/dist/chunks/index.59dc2e3f.js.map +1 -0
  129. package/dist/chunks/index.73d7902e.js +29 -0
  130. package/dist/chunks/index.73d7902e.js.map +1 -0
  131. package/dist/chunks/index.8c38e06b.js +441 -0
  132. package/dist/chunks/index.8c38e06b.js.map +1 -0
  133. package/dist/chunks/index.8e9cdc73.js +441 -0
  134. package/dist/chunks/index.8e9cdc73.js.map +1 -0
  135. package/dist/chunks/index.a7a22907.js +929 -0
  136. package/dist/chunks/index.a7a22907.js.map +1 -0
  137. package/dist/chunks/index.ad5e1dbd.js +107 -0
  138. package/dist/chunks/index.ad5e1dbd.js.map +1 -0
  139. package/dist/chunks/index.e2141d95.js +86 -0
  140. package/dist/chunks/index.e2141d95.js.map +1 -0
  141. package/dist/chunks/index.f4582460.js +86 -0
  142. package/dist/chunks/index.f4582460.js.map +1 -0
  143. package/dist/chunks/index.f55fdc32.js +1118 -0
  144. package/dist/chunks/index.f55fdc32.js.map +1 -0
  145. package/dist/chunks/info-filled.9748686e.js +26 -0
  146. package/dist/chunks/info-filled.9748686e.js.map +1 -0
  147. package/dist/chunks/listbox-option-tag.2e5c4012.js +111 -0
  148. package/dist/chunks/listbox-option-tag.2e5c4012.js.map +1 -0
  149. package/dist/chunks/listbox-option-tag.f44b4ee0.js +111 -0
  150. package/dist/chunks/listbox-option-tag.f44b4ee0.js.map +1 -0
  151. package/dist/chunks/listbox.152dab0a.js +485 -0
  152. package/dist/chunks/listbox.152dab0a.js.map +1 -0
  153. package/dist/chunks/on-click-outside.3e0c3e2a.js +91 -0
  154. package/dist/chunks/on-click-outside.3e0c3e2a.js.map +1 -0
  155. package/dist/chunks/search.6be3396b.js +26 -0
  156. package/dist/chunks/search.6be3396b.js.map +1 -0
  157. package/dist/chunks/toastController.b1b08299.js +15 -0
  158. package/dist/chunks/toastController.b1b08299.js.map +1 -0
  159. package/dist/chunks/tooltip.a4625a7b.js +220 -0
  160. package/dist/chunks/tooltip.a4625a7b.js.map +1 -0
  161. package/dist/chunks/unique-id.a2a2b458.js +34 -0
  162. package/dist/chunks/unique-id.a2a2b458.js.map +1 -0
  163. package/dist/chunks/use-default-slot-validator.83d977a1.js +11 -0
  164. package/dist/chunks/use-default-slot-validator.83d977a1.js.map +1 -0
  165. package/dist/chunks/useCountryItems.cbe60557.js +29 -0
  166. package/dist/chunks/useCountryItems.cbe60557.js.map +1 -0
  167. package/dist/click-outside.js +23 -0
  168. package/dist/click-outside.js.map +1 -0
  169. package/dist/controls-group.js +59 -0
  170. package/dist/controls-group.js.map +1 -0
  171. package/dist/country.js +5979 -0
  172. package/dist/country.js.map +1 -0
  173. package/dist/currency.js +119 -0
  174. package/dist/currency.js.map +1 -0
  175. package/dist/data-grid.js +1169 -0
  176. package/dist/data-grid.js.map +1 -0
  177. package/dist/date-picker.js +8 -0
  178. package/dist/date-picker.js.map +1 -0
  179. package/dist/date.js +6 -0
  180. package/dist/date.js.map +1 -0
  181. package/dist/divider.js +35 -0
  182. package/dist/divider.js.map +1 -0
  183. package/dist/dropdown.js +262 -0
  184. package/dist/dropdown.js.map +1 -0
  185. package/dist/filter-bar.js +1735 -0
  186. package/dist/filter-bar.js.map +1 -0
  187. package/dist/focus-trap.js +5 -0
  188. package/dist/focus-trap.js.map +1 -0
  189. package/dist/header.js +205 -0
  190. package/dist/header.js.map +1 -0
  191. package/dist/index.js +335 -21278
  192. package/dist/index.js.map +1 -1
  193. package/dist/info-icon.js +61 -0
  194. package/dist/info-icon.js.map +1 -0
  195. package/dist/input-field.js +168 -0
  196. package/dist/input-field.js.map +1 -0
  197. package/dist/internal.js +13 -0
  198. package/dist/internal.js.map +1 -0
  199. package/dist/link.js +46 -0
  200. package/dist/link.js.map +1 -0
  201. package/dist/loading-indicator.js +51 -0
  202. package/dist/loading-indicator.js.map +1 -0
  203. package/dist/menu.js +474 -0
  204. package/dist/menu.js.map +1 -0
  205. package/dist/modal.js +709 -0
  206. package/dist/modal.js.map +1 -0
  207. package/dist/pagination.js +487 -0
  208. package/dist/pagination.js.map +1 -0
  209. package/dist/payment-method.js +84 -0
  210. package/dist/payment-method.js.map +1 -0
  211. package/dist/popover.js +284 -0
  212. package/dist/popover.js.map +1 -0
  213. package/dist/popper-container.js +225 -0
  214. package/dist/popper-container.js.map +1 -0
  215. package/dist/radio-group.js +192 -0
  216. package/dist/radio-group.js.map +1 -0
  217. package/dist/search-bar.js +106 -0
  218. package/dist/search-bar.js.map +1 -0
  219. package/dist/status.js +47 -0
  220. package/dist/status.js.map +1 -0
  221. package/dist/structured-list.js +98 -0
  222. package/dist/structured-list.js.map +1 -0
  223. package/dist/summary-grid.js +526 -0
  224. package/dist/summary-grid.js.map +1 -0
  225. package/dist/tabs.js +106 -0
  226. package/dist/tabs.js.map +1 -0
  227. package/dist/tag.js +73 -0
  228. package/dist/tag.js.map +1 -0
  229. package/dist/textarea.js +64 -0
  230. package/dist/textarea.js.map +1 -0
  231. package/dist/toast.js +132 -0
  232. package/dist/toast.js.map +1 -0
  233. package/dist/toggle.js +6 -0
  234. package/dist/toggle.js.map +1 -0
  235. package/dist/typography.js +111 -0
  236. package/dist/typography.js.map +1 -0
  237. package/dist/web-types.json +130 -13
  238. package/package.json +6 -4
  239. package/dist/@types/utils/ts/inject-css.d.ts +0 -2
@@ -0,0 +1,284 @@
1
+ import "./assets/index33.css";
2
+ import { defineComponent as n, computed as s, toRefs as f } from "vue";
3
+ import { u as v } from "./chunks/aria-label.ac9651a5.js";
4
+ import { PopperContainerPosition as b, PopperContainer as r, PopperContainerAriaRole as y } from "./popper-container.js";
5
+ import { BentoTypography as g, BentoTypographyVariant as l, BentoTypographyElement as B } from "./typography.js";
6
+ import { n as a } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
7
+ import { B as C, a as P } from "./chunks/button.31b757d1.js";
8
+ import { C as h } from "./chunks/cross.db1f9177.js";
9
+ import { B as T, c as p } from "./chunks/button-actions.59406268.js";
10
+ const c = { ...b }, $ = n({
11
+ components: { BentoTypography: g },
12
+ inheritAttrs: !1,
13
+ props: {
14
+ /**
15
+ * Indicates if the popover contains an image.
16
+ */
17
+ isImageTitle: { type: Boolean, default: !1 },
18
+ /**
19
+ * Indicates the title you want to give the popover.
20
+ */
21
+ title: { type: String, default: null }
22
+ },
23
+ setup(o) {
24
+ const t = s(() => !o.isImageTitle), e = s(
25
+ () => o.isImageTitle ? l.SUBTITLE : l.BODY
26
+ );
27
+ return {
28
+ // Values
29
+ isStrongest: t,
30
+ titleVariant: e,
31
+ // Enums
32
+ BentoTypographyElement: B
33
+ };
34
+ }
35
+ });
36
+ var x = function() {
37
+ var t = this, e = t._self._c;
38
+ return t._self._setupProxy, e("bento-typography", { attrs: { strongest: t.isStrongest, variant: t.titleVariant, el: t.BentoTypographyElement.SPAN } }, [t._v(" " + t._s(t.title) + " ")]);
39
+ }, A = [], S = /* @__PURE__ */ a(
40
+ $,
41
+ x,
42
+ A,
43
+ !1,
44
+ null,
45
+ null,
46
+ null,
47
+ null
48
+ );
49
+ const I = S.exports, L = n({
50
+ name: "bento-popover-dismiss-button",
51
+ components: { BentoButton: C, CrossIcon: h },
52
+ props: {
53
+ onImage: {
54
+ type: Boolean,
55
+ default: !1
56
+ }
57
+ },
58
+ setup(o) {
59
+ return {
60
+ // Values
61
+ conditionalClass: s(() => ({ "b-popover-dismiss-button--on-image": o.onImage })),
62
+ // Enums
63
+ BentoButtonVariant: P
64
+ };
65
+ }
66
+ });
67
+ var E = function() {
68
+ var t = this, e = t._self._c;
69
+ return t._self._setupProxy, e("bento-button", { class: t.conditionalClass, attrs: { variant: t.BentoButtonVariant.TERTIARY }, on: { click: function(i) {
70
+ return t.$emit("click");
71
+ } }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
72
+ return [e("cross-icon", { attrs: { "svg-title": "dismiss" } })];
73
+ }, proxy: !0 }]) });
74
+ }, R = [], w = /* @__PURE__ */ a(
75
+ L,
76
+ E,
77
+ R,
78
+ !1,
79
+ null,
80
+ "5895c662",
81
+ null,
82
+ null
83
+ );
84
+ const O = w.exports;
85
+ var _;
86
+ const V = n({
87
+ name: "bento-popover",
88
+ components: {
89
+ BentoButtonActions: T,
90
+ BentoPopoverDismissButton: O,
91
+ BentoPopoverTitle: I,
92
+ PopperContainer: r
93
+ },
94
+ inheritAttrs: !0,
95
+ // Have to do this to be able to add class for data picker
96
+ props: {
97
+ /**
98
+ * List of actions that will be used to render the buttons.
99
+ * First element in the list will be rendered as "primary".
100
+ * All elements after the first will be rendered as "secondary".
101
+ *
102
+ * Each object in the list should have a `title`, an `event` and
103
+ * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.
104
+ *
105
+ * `title`: Button's text.
106
+ *
107
+ * `event`: Event triggered when clicking the Button.
108
+ *
109
+ * `icon`: Vue Icon from the library `@adyen/ui-assets-icons-16`.
110
+ *
111
+ * ```
112
+ * [{
113
+ * title: 'Primary',
114
+ * event: () => { ... },
115
+ * icon: FourPeopleIcon
116
+ * }, {
117
+ * title: 'Secondary',
118
+ * event: () => { ... }
119
+ * }]
120
+ * ```
121
+ */
122
+ actions: {
123
+ type: Array,
124
+ default: null
125
+ },
126
+ /**
127
+ * Defines the layout in which the button actions is presented.
128
+ * It can be one of:
129
+ *
130
+ * @values BUTTONS_END
131
+ * @values FILL_CONTAINER
132
+ * @values SPACE_BETWEEN
133
+ * @values VERTICAL_STACK
134
+ */
135
+ actionsLayout: {
136
+ type: String,
137
+ default: p.BUTTONS_END,
138
+ validator: (o) => Object.values(p).includes(o)
139
+ },
140
+ /**
141
+ * Defines a string value that provides an accessible name for the popover.
142
+ */
143
+ ariaLabel: {
144
+ type: String,
145
+ default: null
146
+ },
147
+ /**
148
+ * Adds a divider line to the actions section, reduces the top/bottom paddings and removes all padding in the "default" slot.
149
+ */
150
+ divider: {
151
+ type: Boolean,
152
+ default: !1
153
+ },
154
+ /**
155
+ * Supports disabling focus trap functionality to avoid scroll into view behavior when we don't need it.
156
+ * */
157
+ disableFocusTrap: {
158
+ type: Boolean,
159
+ default: !1
160
+ },
161
+ /**
162
+ * Adds a "dismiss" icon that triggers the "dismiss" event.
163
+ */
164
+ dismissible: {
165
+ type: Boolean,
166
+ default: !1
167
+ },
168
+ /**
169
+ * Sets the size of the container to fit its content
170
+ */
171
+ fitContent: { type: Boolean, default: !1 },
172
+ /**
173
+ * Instructs popover to be visible outside of the containing container.
174
+ * Useful when component would be used in limited containers like Modal, Side panel, etc.
175
+ * https://popper.js.org/docs/v2/constructors/#strategy
176
+ */
177
+ fixedPositioning: {
178
+ type: Boolean,
179
+ default: !1
180
+ },
181
+ /**
182
+ * Toggles the popover open and closed
183
+ */
184
+ open: {
185
+ type: Boolean,
186
+ default: !1
187
+ },
188
+ /**
189
+ * Displays the popover in a large size.
190
+ */
191
+ large: {
192
+ type: Boolean,
193
+ default: !1
194
+ },
195
+ /**
196
+ * Custom set of modifiers. Useful for low-level control over Popper behavior in some really complex use cases.
197
+ */
198
+ modifiers: { type: Array, default: null },
199
+ /**
200
+ * Popover's position relative to the target element.
201
+ * Possible values are:
202
+ * 'auto', 'auto-start', 'auto-end',
203
+ * 'top', 'top-start', 'top-end'
204
+ * 'right', 'right-start', 'right-end'
205
+ * 'bottom', 'bottom-start', 'bottom-end'
206
+ * 'left', 'left-start', 'left-end'
207
+ */
208
+ position: {
209
+ type: String,
210
+ default: c.TOP,
211
+ validator: (o) => Object.values(c).includes(o)
212
+ },
213
+ /**
214
+ * Displays the popover in a small size.
215
+ */
216
+ small: {
217
+ type: Boolean,
218
+ default: !1
219
+ },
220
+ /**
221
+ * Indicates the title you want to give the popover.
222
+ */
223
+ title: {
224
+ type: String,
225
+ default: null
226
+ },
227
+ /**
228
+ * Popover's target element.
229
+ * The popover will position itself relatively to target element, in specified position.
230
+ */
231
+ targetElement: {
232
+ type: (_ = r.props) == null ? void 0 : _.targetElement.type,
233
+ required: !0
234
+ },
235
+ /**
236
+ * Displays the popover without padding.
237
+ */
238
+ withoutSpace: {
239
+ type: Boolean,
240
+ default: !1
241
+ }
242
+ },
243
+ emits: ["dismiss"],
244
+ setup(o, { emit: t }) {
245
+ const { ariaLabel: e, title: i } = f(o), d = v({ ariaLabel: e, label: i }), u = s(() => ({
246
+ "b-popover--small": o.small && !o.large,
247
+ "b-popover--with-divider": !!o.divider,
248
+ "b-popover--large": o.large && !o.small,
249
+ "b-popover--fit-content": o.fitContent,
250
+ "b-popover--without-space": o.withoutSpace
251
+ })), m = s(() => ({
252
+ "b-popover__content--with-title": !!o.title
253
+ }));
254
+ return {
255
+ // Values
256
+ conditionalClasses: u,
257
+ contentConditionalClasses: m,
258
+ computedAriaLabel: d,
259
+ // Enums
260
+ PopperContainerAriaRole: y,
261
+ // Events
262
+ dismissPopover: () => t("dismiss")
263
+ };
264
+ }
265
+ });
266
+ var k = function() {
267
+ var t = this, e = t._self._c;
268
+ return t._self._setupProxy, e("Transition", { attrs: { name: "b-appear" } }, [t.open ? e("popper-container", { staticClass: "b-popover", class: t.conditionalClasses, attrs: { "aria-role": t.PopperContainerAriaRole.POPOVER, "aria-label": t.computedAriaLabel, "target-element": t.targetElement, position: t.position, offset: [0, 2], modifiers: t.modifiers, "fixed-positioning": t.fixedPositioning, "disabled-focus-trap": t.disableFocusTrap, arrow: { classes: ["b-popover__arrow"] } } }, [t.$slots.image ? e("div", { staticClass: "b-popover__image" }, [t.dismissible ? e("div", { staticClass: "b-popover__image-dismiss-button" }, [e("bento-popover-dismiss-button", { attrs: { "on-image": "" }, on: { click: t.dismissPopover } })], 1) : t._e(), t._t("image")], 2) : t._e(), t.title ? e("div", { staticClass: "b-popover__header" }, [e("div", { staticClass: "b-popover__header-title" }, [t.$slots.headerIcon ? t._t("headerIcon") : t._e(), e("bento-popover-title", { attrs: { title: t.title, "is-image-title": !!t.$slots.image } })], 2), t.dismissible && !t.$slots.image ? e("div", [e("bento-popover-dismiss-button", { on: { click: t.dismissPopover } })], 1) : t._e()]) : t._e(), t.$slots.default ? e("div", { staticClass: "b-popover__content", class: t.contentConditionalClasses }, [t._t("default")], 2) : t._e(), t.actions ? e("div", { staticClass: "b-popover__footer" }, [e("bento-button-actions", { attrs: { actions: t.actions, layout: t.actionsLayout } })], 1) : t._e()]) : t._e()], 1);
269
+ }, F = [], D = /* @__PURE__ */ a(
270
+ V,
271
+ k,
272
+ F,
273
+ !1,
274
+ null,
275
+ "560db389",
276
+ null,
277
+ null
278
+ );
279
+ const M = D.exports;
280
+ export {
281
+ M as BentoPopover,
282
+ c as BentoPopoverPositions
283
+ };
284
+ //# sourceMappingURL=popover.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"popover.js","sources":["../src/components/popover/popover.types.ts","../src/components/popover/components/popover-title/popover-title.vue","../src/components/popover/components/popover-dismiss-button/popover-dismiss-button.vue","../src/components/popover/popover.vue"],"sourcesContent":["import { PopperContainerPosition } from '../popper-container';\n\nexport const BentoPopoverPositions = { ...PopperContainerPosition };\nexport type BentoPopoverPositions = PopperContainerPosition;\n","<template>\n <bento-typography :strongest=\"isStrongest\" :variant=\"titleVariant\" :el=\"BentoTypographyElement.SPAN\">\n {{ title }}\n </bento-typography>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent } from 'vue';\n import { BentoTypography, BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';\n\n export default defineComponent({\n components: { BentoTypography },\n inheritAttrs: false,\n props: {\n /**\n * Indicates if the popover contains an image.\n */\n isImageTitle: { type: Boolean, default: false },\n\n /**\n * Indicates the title you want to give the popover.\n */\n title: { type: String, default: null },\n },\n setup(props) {\n // Use strongest only when it has no image\n const isStrongest = computed(() => !props.isImageTitle);\n\n // If an image is present, change the variant from BODY to SUBTITLE and remove the \"strongest\" property of the title\n const titleVariant = computed(() =>\n props.isImageTitle ? BentoTypographyVariant.SUBTITLE : BentoTypographyVariant.BODY\n );\n\n return {\n // Values\n isStrongest,\n titleVariant,\n\n // Enums\n BentoTypographyElement,\n };\n },\n });\n</script>\n","<template>\n <bento-button :class=\"conditionalClass\" :variant=\"BentoButtonVariant.TERTIARY\" @click=\"$emit('click')\">\n <template #iconLeft>\n <cross-icon svg-title=\"dismiss\" />\n </template>\n </bento-button>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent } from 'vue';\n import { BentoButton, BentoButtonVariant } from '@/components/button';\n import CrossIcon from '@adyen/ui-assets-icons-16/vue/cross';\n\n export default defineComponent({\n name: 'bento-popover-dismiss-button',\n components: { BentoButton, CrossIcon },\n props: {\n onImage: {\n type: Boolean,\n default: false,\n },\n },\n setup(props) {\n const conditionalClass = computed(() => ({ 'b-popover-dismiss-button--on-image': props.onImage }));\n\n return {\n // Values\n conditionalClass,\n\n // Enums\n BentoButtonVariant,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./popover-dismiss-button.scss\" />\n","<template>\n <Transition name=\"b-appear\">\n <popper-container\n v-if=\"open\"\n class=\"b-popover\"\n :aria-role=\"PopperContainerAriaRole.POPOVER\"\n :aria-label=\"computedAriaLabel\"\n :target-element=\"targetElement\"\n :position=\"position\"\n :offset=\"[0, 2]\"\n :modifiers=\"modifiers\"\n :fixed-positioning=\"fixedPositioning\"\n :disabled-focus-trap=\"disableFocusTrap\"\n :class=\"conditionalClasses\"\n :arrow=\"{ classes: ['b-popover__arrow'] }\"\n >\n <div v-if=\"$slots.image\" class=\"b-popover__image\">\n <div v-if=\"dismissible\" class=\"b-popover__image-dismiss-button\">\n <bento-popover-dismiss-button on-image @click=\"dismissPopover\" />\n </div>\n <slot name=\"image\"></slot>\n </div>\n <div v-if=\"title\" class=\"b-popover__header\">\n <div class=\"b-popover__header-title\">\n <slot v-if=\"$slots.headerIcon\" name=\"headerIcon\"></slot>\n <bento-popover-title :title=\"title\" :is-image-title=\"!!$slots.image\" />\n </div>\n <div v-if=\"dismissible && !$slots.image\">\n <bento-popover-dismiss-button @click=\"dismissPopover\" />\n </div>\n </div>\n\n <div v-if=\"$slots.default\" class=\"b-popover__content\" :class=\"contentConditionalClasses\">\n <slot></slot>\n </div>\n\n <div v-if=\"actions\" class=\"b-popover__footer\">\n <bento-button-actions :actions=\"actions\" :layout=\"actionsLayout\"></bento-button-actions>\n </div>\n </popper-container>\n </Transition>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType, toRefs } from 'vue';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n import { PopperContainer, PopperContainerAriaRole } from '@/components/popper-container';\n import { BentoPopoverPositions } from './popover.types';\n import { BentoButtonActions, BentoButtonActionsLayout, BentoButtonActionsList } from '@/components/button';\n import BentoPopoverTitle from './components/popover-title/popover-title.vue';\n import BentoPopoverDismissButton from './components/popover-dismiss-button/popover-dismiss-button.vue';\n\n /**\n * Example description of the component...\n *\n * @example\n * import { BentoPopover } from '@adyen/adl-vue2';\n *\n * export default {\n * components: { BentoPopover },\n * template: `\n * <bento-popover>\n * ...Example code of the component\n * </bento-popover>\n * `\n * }\n */\n export default defineComponent({\n name: 'bento-popover',\n components: {\n BentoButtonActions,\n BentoPopoverDismissButton,\n BentoPopoverTitle,\n PopperContainer,\n },\n inheritAttrs: true, // Have to do this to be able to add class for data picker\n props: {\n /**\n * List of actions that will be used to render the buttons.\n * First element in the list will be rendered as \"primary\".\n * All elements after the first will be rendered as \"secondary\".\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * `title`: Button's text.\n *\n * `event`: Event triggered when clicking the Button.\n *\n * `icon`: Vue Icon from the library `@adyen/ui-assets-icons-16`.\n *\n * ```\n * [{\n * title: 'Primary',\n * event: () => { ... },\n * icon: FourPeopleIcon\n * }, {\n * title: 'Secondary',\n * event: () => { ... }\n * }]\n * ```\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n default: null,\n },\n\n /**\n * Defines the layout in which the button actions is presented.\n * It can be one of:\n *\n * @values BUTTONS_END\n * @values FILL_CONTAINER\n * @values SPACE_BETWEEN\n * @values VERTICAL_STACK\n */\n actionsLayout: {\n type: String as PropType<BentoButtonActionsLayout>,\n default: BentoButtonActionsLayout.BUTTONS_END,\n validator: (value: BentoButtonActionsLayout) => Object.values(BentoButtonActionsLayout).includes(value),\n },\n\n /**\n * Defines a string value that provides an accessible name for the popover.\n */\n ariaLabel: {\n type: String,\n default: null,\n },\n\n /**\n * Adds a divider line to the actions section, reduces the top/bottom paddings and removes all padding in the \"default\" slot.\n */\n divider: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Supports disabling focus trap functionality to avoid scroll into view behavior when we don't need it.\n * */\n disableFocusTrap: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Adds a \"dismiss\" icon that triggers the \"dismiss\" event.\n */\n dismissible: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the size of the container to fit its content\n */\n fitContent: { type: Boolean, default: false },\n\n /**\n * Instructs popover to be visible outside of the containing container.\n * Useful when component would be used in limited containers like Modal, Side panel, etc.\n * https://popper.js.org/docs/v2/constructors/#strategy\n */\n fixedPositioning: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Toggles the popover open and closed\n */\n open: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Displays the popover in a large size.\n */\n large: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Custom set of modifiers. Useful for low-level control over Popper behavior in some really complex use cases.\n */\n modifiers: { type: Array, default: null },\n\n /**\n * Popover's position relative to the target element.\n * Possible values are:\n * 'auto', 'auto-start', 'auto-end',\n * 'top', 'top-start', 'top-end'\n * 'right', 'right-start', 'right-end'\n * 'bottom', 'bottom-start', 'bottom-end'\n * 'left', 'left-start', 'left-end'\n */\n position: {\n type: String as PropType<BentoPopoverPositions>,\n default: BentoPopoverPositions.TOP,\n validator: (value: BentoPopoverPositions) => Object.values(BentoPopoverPositions).includes(value),\n },\n\n /**\n * Displays the popover in a small size.\n */\n small: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Indicates the title you want to give the popover.\n */\n title: {\n type: String,\n default: null,\n },\n\n /**\n * Popover's target element.\n * The popover will position itself relatively to target element, in specified position.\n */\n targetElement: {\n type: PopperContainer.props?.targetElement.type,\n required: true,\n },\n /**\n * Displays the popover without padding.\n */\n withoutSpace: {\n type: Boolean,\n default: false,\n },\n },\n emits: ['dismiss'],\n setup(props, { emit }) {\n const { ariaLabel, title } = toRefs(props);\n\n const computedAriaLabel = useAriaLabel({ ariaLabel, label: title });\n\n const conditionalClasses = computed(() => ({\n 'b-popover--small': props.small && !props.large,\n 'b-popover--with-divider': !!props.divider,\n 'b-popover--large': props.large && !props.small,\n 'b-popover--fit-content': props.fitContent,\n 'b-popover--without-space': props.withoutSpace,\n }));\n\n const contentConditionalClasses = computed(() => ({\n 'b-popover__content--with-title': !!props.title,\n }));\n\n const dismissPopover = () => emit('dismiss');\n\n return {\n // Values\n conditionalClasses,\n contentConditionalClasses,\n computedAriaLabel,\n\n // Enums\n PopperContainerAriaRole,\n\n // Events\n dismissPopover,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./popover.scss\" />\n"],"names":["BentoPopoverPositions","PopperContainerPosition","_sfc_main$2","defineComponent","BentoTypography","props","isStrongest","computed","titleVariant","BentoTypographyVariant","BentoTypographyElement","_sfc_main$1","BentoButton","CrossIcon","BentoButtonVariant","_sfc_main","BentoButtonActions","BentoPopoverDismissButton","BentoPopoverTitle","PopperContainer","BentoButtonActionsLayout","value","_a","emit","ariaLabel","title","toRefs","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OAAArB,CAAA,EAAA,SAAAqB,CAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IACA,OAAA;AAAA,MAKA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IACA,OAAA;AAAA,MAKA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA,IACA,eAAA;AAAA,MAMA,OAAAC,IAAAH,EAAA,UAAA,gBAAAG,EAAA,cAAA;AAAA,MACA,UAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IACA,cAAA;AAAA,MAIA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,EACA;AAAA,EACA,OAAA,CAAA,SAAA;AAAA,EACA,MAAAjB,GAAA,EAAA,MAAAkB,EAAA,GAAA;AAEA,UAAA,EAAA,WAAAC,GAAA,OAAAC,EAAA,IAAAC,EAAArB,CAAA,GAEAsB,IAAAC,EAAA,EAAA,WAAAJ,GAAA,OAAAC,EAAA,CAAA,GAEAI,IAAAtB,EAAA,OAAA;AAAA,MAAA,oBAAAF,EAAA,SAAA,CAAAA,EAAA;AAAA,MACA,2BAAA,CAAA,CAAAA,EAAA;AAAA,MACA,oBAAAA,EAAA,SAAA,CAAAA,EAAA;AAAA,MACA,0BAAAA,EAAA;AAAA,MACA,4BAAAA,EAAA;AAAA,IACA,EAAA,GAGAyB,IAAAvB,EAAA,OAAA;AAAA,MAAA,kCAAA,CAAA,CAAAF,EAAA;AAAA,IACA,EAAA;AAKA,WAAA;AAAA;AAAA,MAAA,oBAAAwB;AAAA,MAEA,2BAAAC;AAAA,MACA,mBAAAH;AAAA;AAAA,MACA,yBAAAI;AAAA;AAAA,MAGA,gBATA,MAAAR,EAAA,SAAA;AAAA,IAYA;AAAA,EACA;AAEA,CAAA;;;;;;;;;;;;;;;"}
@@ -0,0 +1,225 @@
1
+ import "./assets/index34.css";
2
+ import { createPopper as l } from "@popperjs/core";
3
+ import { defineComponent as p } from "vue";
4
+ import { B as n } from "./chunks/index.8e9cdc73.js";
5
+ import { n as f } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
6
+ var s = /* @__PURE__ */ ((t) => (t.TOP = "top", t.RIGHT = "right", t.BOTTOM = "bottom", t.LEFT = "left", t))(s || {}), a = /* @__PURE__ */ ((t) => (t.AUTO = "auto", t.AUTO_START = "auto-start", t.AUTO_END = "auto-end", t.TOP_START = "top-start", t.TOP_END = "top-end", t.RIGHT_START = "right-start", t.RIGHT_END = "right-end", t.BOTTOM_START = "bottom-start", t.BOTTOM_END = "bottom-end", t.LEFT_START = "left-start", t.LEFT_END = "left-end", t))(a || {}), o = /* @__PURE__ */ ((t) => (t.TOOLTIP = "tooltip", t.POPOVER = "dialog", t))(o || {});
7
+ const i = { ...s, ...a }, d = (t, e) => ({
8
+ name: "arrow",
9
+ options: {
10
+ element: t,
11
+ padding: e.padding || 0
12
+ }
13
+ }), c = (t, e) => ({
14
+ name: "offset",
15
+ options: { offset: t ? [e[0], e[1] + 7] : e }
16
+ }), h = (t) => ({
17
+ name: "flip",
18
+ options: {
19
+ fallbackPlacements: Array.isArray(t) ? t : [t]
20
+ }
21
+ }), m = {
22
+ name: "applyArrowHide",
23
+ enabled: !0,
24
+ phase: "write",
25
+ fn({ state: t }) {
26
+ const { arrow: e } = t.elements;
27
+ e && (t.modifiersData.arrow.centerOffset !== 0 ? e.setAttribute("data-hide", "") : e.removeAttribute("data-hide"));
28
+ }
29
+ }, u = {
30
+ name: "sameWidth",
31
+ enabled: !0,
32
+ phase: "beforeWrite",
33
+ requires: ["computeStyles"],
34
+ fn: ({ state: t }) => {
35
+ t.styles.popper.width = `${t.rects.reference.width}px`;
36
+ },
37
+ effect: ({ state: t }) => {
38
+ t.elements.popper.style.width = `${t.elements.reference.offsetWidth}px`;
39
+ }
40
+ }, _ = p({
41
+ components: { BentoFocusTrap: n },
42
+ props: {
43
+ /**
44
+ * The id to be set on the component. Use it for accessibility purposes.
45
+ */
46
+ id: { type: String, default: null },
47
+ /**
48
+ * Defines a string value that provides an accessible name for the popper-container.
49
+ */
50
+ ariaLabel: { type: String, default: null },
51
+ /**
52
+ * Reference to the DOM element or Vue component for positioning
53
+ */
54
+ targetElement: { type: [Element, Object], required: !0 },
55
+ /**
56
+ * Position relative to the target element
57
+ * @see {@link https://popper.js.org/docs/v2/constructors/#placement}
58
+ */
59
+ position: {
60
+ type: String,
61
+ default: i.AUTO,
62
+ validator: (t) => Object.values(i).includes(t)
63
+ },
64
+ /**
65
+ * Instructs popover to be visible outside of the containing container.
66
+ * Useful when component would be used in limited containers like Modal, Side panel, etc.
67
+ * https://popper.js.org/docs/v2/constructors/#strategy
68
+ */
69
+ fixedPositioning: { type: Boolean, default: !1 },
70
+ /**
71
+ * Indicates if container should have additional arrow, pointing at target element
72
+ * Can be just a boolean flag, or an object with additional configuration:
73
+ * @property {Array<string>} arrow.classes – apply any additional classes to the arrow element.
74
+ * @property {string} arrow.padding – useful when content has rounded corners, https://popper.js.org/docs/v2/modifiers/arrow/#padding
75
+ */
76
+ arrow: { type: Object, default: void 0 },
77
+ /**
78
+ * Allows to displace a popper container from its target element.
79
+ * @see {@link https://popper.js.org/docs/v2/modifiers/offset/}
80
+ */
81
+ offset: {
82
+ type: Array,
83
+ default: () => [0, 0],
84
+ validator: (t) => (t == null ? void 0 : t.length) === 2
85
+ },
86
+ /**
87
+ * Instructs popper container to have the same width as target element.
88
+ */
89
+ matchWidth: { type: Boolean, default: !1 },
90
+ /**
91
+ * Disables wrapping focus-trap component.
92
+ * Mostly useful for the storybook demo.
93
+ */
94
+ disabledFocusTrap: { type: Boolean, default: !1 },
95
+ /**
96
+ * Custom set of modifiers. Useful for low-level control over Popper behavior in some really complex use cases.
97
+ */
98
+ modifiers: { type: Array, default: null },
99
+ /**
100
+ * Allows to configure to fallback position to the one specified, it could be 'auto' or ['right', 'top', ...].
101
+ * Useful when not using auto as starting placement.
102
+ * https://popper.js.org/docs/v2/modifiers/flip/#fallbackplacements
103
+ */
104
+ fallbackPosition: {
105
+ type: [Array, String],
106
+ default: null
107
+ },
108
+ /**
109
+ * The aria role assigned to the container. Defaults to null, which means it's not set if nothing is passed.
110
+ */
111
+ ariaRole: {
112
+ type: String,
113
+ default: null,
114
+ validator: (t) => Object.values(o).includes(t)
115
+ }
116
+ },
117
+ data: () => ({
118
+ popper: null,
119
+ emittedPosition: null
120
+ }),
121
+ computed: {
122
+ strategy() {
123
+ return this.fixedPositioning ? "fixed" : "absolute";
124
+ },
125
+ /**
126
+ * Retrieves all the popper modifiers to be applied to popover.
127
+ * Read utils file for more info on each modifier.
128
+ */
129
+ allModifiers() {
130
+ const t = this.modifiers || [];
131
+ return [
132
+ // Create arrow modifier if arrow props are set
133
+ ...this.arrow ? [d(this.$refs.arrow, this.arrow)] : [],
134
+ // Create offset modifier
135
+ c(this.arrow, this.offset),
136
+ // Apply data-hide attribute to arrow element depnding on center offset.
137
+ m,
138
+ // If matchWidth set to true, set the width of popover to same as target element.
139
+ ...this.matchWidth ? [u] : [],
140
+ // Emits position of popover when position is updated.
141
+ {
142
+ name: "trackPosition",
143
+ enabled: !0,
144
+ phase: "afterWrite",
145
+ fn: ({ state: r }) => {
146
+ this.emittedPosition !== r.placement && (this.emittedPosition = r.placement, this.$emit("position", this.emittedPosition));
147
+ }
148
+ },
149
+ // Sets Flip modifier if fallbackPosition is set
150
+ ...this.fallbackPosition ? [h(this.fallbackPosition)] : [],
151
+ ...t || []
152
+ ];
153
+ },
154
+ /**
155
+ * Sets default arrow classes if none have been set.
156
+ */
157
+ arrowClasses() {
158
+ var t;
159
+ return ((t = this == null ? void 0 : this.arrow) == null ? void 0 : t.classes) ?? [];
160
+ }
161
+ },
162
+ watch: {
163
+ targetElement(t) {
164
+ this.destroyPopper(), this.$el && t && this.initPopper();
165
+ },
166
+ position(t) {
167
+ this.updatePopperOptions({ placement: t });
168
+ },
169
+ strategy(t) {
170
+ this.updatePopperOptions({ strategy: t });
171
+ },
172
+ async arrow(t) {
173
+ t && await this.$nextTick(), this.updateModifiers();
174
+ },
175
+ offset: "updateModifiers",
176
+ matchWidth: "updateModifiers"
177
+ },
178
+ mounted() {
179
+ this.initPopper();
180
+ },
181
+ beforeUnmount() {
182
+ this.destroyPopper();
183
+ },
184
+ methods: {
185
+ initPopper() {
186
+ const t = this.targetElement.$el ? this.targetElement.$el : this.targetElement;
187
+ this.popper = l(t, this.$el, {
188
+ placement: this.position,
189
+ strategy: this.strategy,
190
+ modifiers: this.allModifiers
191
+ });
192
+ },
193
+ destroyPopper() {
194
+ this.popper && this.popper.destroy();
195
+ },
196
+ updatePopperOptions(t) {
197
+ this.popper && this.popper.setOptions(t);
198
+ },
199
+ updateModifiers() {
200
+ this.updatePopperOptions({ modifiers: this.allModifiers });
201
+ }
202
+ }
203
+ });
204
+ var T = function() {
205
+ var e = this, r = e._self._c;
206
+ return e._self._setupProxy, r("bento-focus-trap", { staticClass: "b-popper-container", attrs: { id: e.id, disabled: e.disabledFocusTrap, role: e.ariaRole, "aria-label": e.ariaLabel } }, [e._t("default"), e.arrow ? r("span", { ref: "arrow", staticClass: "b-popper-container__arrow", class: e.arrowClasses, attrs: { "data-testid": "arrow" } }) : e._e()], 2);
207
+ }, y = [], O = /* @__PURE__ */ f(
208
+ _,
209
+ T,
210
+ y,
211
+ !1,
212
+ null,
213
+ "627c4c5a",
214
+ null,
215
+ null
216
+ );
217
+ const v = O.exports;
218
+ export {
219
+ v as PopperContainer,
220
+ o as PopperContainerAriaRole,
221
+ i as PopperContainerPosition,
222
+ s as PopperContainerPositionBasic,
223
+ a as PopperContainerPositionExtended
224
+ };
225
+ //# sourceMappingURL=popper-container.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"popper-container.js","sources":["../src/components/popper-container/popper-container.types.ts","../src/components/popper-container/popper-container.utils.ts","../src/components/popper-container/popper-container.vue"],"sourcesContent":["import type { Modifier, StrictModifiers } from '@popperjs/core';\n\ntype ArrowModifier = Modifier<'arrow', unknown>;\ntype ApplyArrowHideModifier = Modifier<'applyArrowHide', unknown>;\ntype SameWidthModifier = Modifier<'sameWidth', unknown>;\ntype TrackPositionModifer = Modifier<'trackPosition', unknown>;\ntype FlipModifer = Modifier<'flip', unknown>;\nexport type ExtendedModifiers =\n | StrictModifiers\n | ArrowModifier\n | ApplyArrowHideModifier\n | SameWidthModifier\n | TrackPositionModifer\n | FlipModifer;\n\nexport interface PopperContainerArrowProp {\n classes?: string[];\n padding?: string;\n}\n\nexport enum PopperContainerPositionBasic {\n TOP = 'top',\n RIGHT = 'right',\n BOTTOM = 'bottom',\n LEFT = 'left',\n}\n\nexport enum PopperContainerPositionExtended {\n AUTO = 'auto',\n AUTO_START = 'auto-start',\n AUTO_END = 'auto-end',\n TOP_START = 'top-start',\n TOP_END = 'top-end',\n RIGHT_START = 'right-start',\n RIGHT_END = 'right-end',\n BOTTOM_START = 'bottom-start',\n BOTTOM_END = 'bottom-end',\n LEFT_START = 'left-start',\n LEFT_END = 'left-end',\n}\n\n// TODO: add more roles as we figure them out\nexport enum PopperContainerAriaRole {\n TOOLTIP = 'tooltip',\n POPOVER = 'dialog',\n}\n\nexport const PopperContainerPosition = { ...PopperContainerPositionBasic, ...PopperContainerPositionExtended };\nexport type PopperContainerPosition = PopperContainerPositionBasic | PopperContainerPositionExtended;\n\nexport type FallbackPositionProp = PopperContainerPosition[] | PopperContainerPosition;\n","import type { VueNodeElement } from '@/types';\nimport { ExtendedModifiers, FallbackPositionProp, PopperContainerArrowProp } from './popper-container.types';\n\n/**\n * Creates an arrow modifier for popper container.\n * If padding is set in arrow props, then implement in modifier.\n * @param arrow arrow element\n * @param arrowProps arrow props\n * @returns ArrowModifier\n */\nexport const getArrowModifier = (arrow: VueNodeElement, arrowProps: PopperContainerArrowProp) => ({\n name: 'arrow',\n options: {\n element: arrow,\n padding: arrowProps.padding || 0,\n },\n});\n\n/**\n * Created an offset modifier for the popper.\n * If an arrow is set (i.e. an arrow is present in popper) then adjust offset accordingly.\n * See popper docs for more info: https://popper.js.org/docs/v2/modifiers/offset/\n * @param arrow arrow props\n * @param offset offset numbered array\n * @returns OffsetModifier\n */\nexport const getOffsetModifier = (arrowProps: PopperContainerArrowProp, offset: number[]) => ({\n name: 'offset',\n options: { offset: arrowProps ? [offset[0], offset[1] + 7] : offset },\n});\n\n/**\n * Creates popover fallback position for popper if it's scheduled to overflow a given boundary.\n * See docs for more info: https://popper.js.org/docs/v2/modifiers/flip/\n * @param fallbackPosition fallbackPosition\n * @returns FlipModifier\n */\nexport const getFlipModifier = (fallbackPosition: FallbackPositionProp) => ({\n name: 'flip',\n options: {\n fallbackPlacements: Array.isArray(fallbackPosition) ? fallbackPosition : [fallbackPosition],\n },\n});\n\n/**\n * Applies a data-hide attribute to arrow element depending on center offset.\n */\nexport const arrowDataHideAttributeModifier: ExtendedModifiers = {\n name: 'applyArrowHide',\n enabled: true,\n phase: 'write',\n fn({ state }) {\n const { arrow } = state.elements;\n\n if (arrow) {\n if (state.modifiersData.arrow.centerOffset !== 0) {\n arrow.setAttribute('data-hide', '');\n } else {\n arrow.removeAttribute('data-hide');\n }\n }\n },\n};\n\nexport const sameWidthModifier: ExtendedModifiers = {\n name: 'sameWidth',\n enabled: true,\n phase: 'beforeWrite',\n requires: ['computeStyles'],\n fn: ({ state }) => {\n state.styles.popper.width = `${state.rects.reference.width}px`;\n },\n effect: ({ state }) => {\n state.elements.popper.style.width = `${(state.elements.reference as HTMLElement).offsetWidth}px`;\n },\n};\n","<template>\n <bento-focus-trap\n :id=\"id\"\n :disabled=\"disabledFocusTrap\"\n class=\"b-popper-container\"\n :role=\"ariaRole\"\n :aria-label=\"ariaLabel\"\n >\n <slot></slot>\n <span\n v-if=\"arrow\"\n ref=\"arrow\"\n :class=\"arrowClasses\"\n class=\"b-popper-container__arrow\"\n data-testid=\"arrow\"\n ></span>\n </bento-focus-trap>\n</template>\n\n<script lang=\"ts\">\n import { createPopper } from '@popperjs/core';\n import type { Instance, PositioningStrategy } from '@popperjs/core';\n import { defineComponent, PropType } from 'vue';\n import { BentoFocusTrap } from '@/components/focus-trap';\n import {\n ExtendedModifiers,\n FallbackPositionProp,\n PopperContainerAriaRole,\n PopperContainerArrowProp,\n PopperContainerPosition,\n PopperContainerPositionBasic,\n } from './popper-container.types';\n import {\n arrowDataHideAttributeModifier,\n getArrowModifier,\n getFlipModifier,\n getOffsetModifier,\n sameWidthModifier,\n } from './popper-container.utils';\n import type { VueNodeElement } from '@/types';\n\n /**\n * A wrapper for the 'popper/core' package that overlays a small piece of content near a target element.\n *\n * NOTE: This component should not be used by itself but more implemented by other exported components\n * e.g. Tooltip\n * More info here on the package: https://popper.js.org/docs/v2/\n *\n * * @usage\n * import { PopperContainer } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { PopperContainer },\n * computed: {\n * targetElement() {\n * return this.$refs.tooltipTarget;\n * },\n * },\n * template: `\n * <popper-container\n * :target-element=\"targetElement\"\n * :position=\"position\"\n * >\n * {{ content }}\n * </popper-container>`,\n * }\n */\n export default defineComponent({\n components: { BentoFocusTrap },\n props: {\n /**\n * The id to be set on the component. Use it for accessibility purposes.\n */\n id: { type: String, default: null },\n /**\n * Defines a string value that provides an accessible name for the popper-container.\n */\n ariaLabel: { type: String, default: null },\n /**\n * Reference to the DOM element or Vue component for positioning\n */\n targetElement: { type: [Element, Object] as PropType<VueNodeElement>, required: true },\n /**\n * Position relative to the target element\n * @see {@link https://popper.js.org/docs/v2/constructors/#placement}\n */\n position: {\n type: String as PropType<PopperContainerPosition>,\n default: PopperContainerPosition.AUTO,\n validator: value =>\n Object.values(PopperContainerPosition).includes(value as PopperContainerPositionBasic),\n },\n /**\n * Instructs popover to be visible outside of the containing container.\n * Useful when component would be used in limited containers like Modal, Side panel, etc.\n * https://popper.js.org/docs/v2/constructors/#strategy\n */\n fixedPositioning: { type: Boolean, default: false },\n /**\n * Indicates if container should have additional arrow, pointing at target element\n * Can be just a boolean flag, or an object with additional configuration:\n * @property {Array<string>} arrow.classes – apply any additional classes to the arrow element.\n * @property {string} arrow.padding – useful when content has rounded corners, https://popper.js.org/docs/v2/modifiers/arrow/#padding\n */\n arrow: { type: Object as PropType<PopperContainerArrowProp | boolean>, default: undefined },\n /**\n * Allows to displace a popper container from its target element.\n * @see {@link https://popper.js.org/docs/v2/modifiers/offset/}\n */\n offset: {\n type: Array as PropType<number[]>,\n default: () => [0, 0],\n validator: (value: number[]) => value?.length === 2,\n },\n /**\n * Instructs popper container to have the same width as target element.\n */\n matchWidth: { type: Boolean, default: false },\n /**\n * Disables wrapping focus-trap component.\n * Mostly useful for the storybook demo.\n */\n disabledFocusTrap: { type: Boolean, default: false },\n /**\n * Custom set of modifiers. Useful for low-level control over Popper behavior in some really complex use cases.\n */\n modifiers: { type: Array, default: null },\n /**\n * Allows to configure to fallback position to the one specified, it could be 'auto' or ['right', 'top', ...].\n * Useful when not using auto as starting placement.\n * https://popper.js.org/docs/v2/modifiers/flip/#fallbackplacements\n */\n fallbackPosition: {\n type: [Array, String] as PropType<FallbackPositionProp>,\n default: null,\n },\n /**\n * The aria role assigned to the container. Defaults to null, which means it's not set if nothing is passed.\n */\n ariaRole: {\n type: String as PropType<PopperContainerAriaRole>,\n default: null,\n validator: value => Object.values(PopperContainerAriaRole).includes(value as PopperContainerAriaRole),\n },\n },\n data: () => ({\n popper: null,\n emittedPosition: null,\n }),\n computed: {\n strategy(): PositioningStrategy {\n return this.fixedPositioning ? 'fixed' : 'absolute';\n },\n /**\n * Retrieves all the popper modifiers to be applied to popover.\n * Read utils file for more info on each modifier.\n */\n allModifiers(): ExtendedModifiers[] {\n const currentModifiers: ExtendedModifiers[] = this.modifiers || [];\n const allModifiers = [\n // Create arrow modifier if arrow props are set\n ...(this.arrow ? [getArrowModifier(this.$refs.arrow as VueNodeElement, this.arrow)] : []),\n // Create offset modifier\n getOffsetModifier(this.arrow, this.offset),\n // Apply data-hide attribute to arrow element depnding on center offset.\n arrowDataHideAttributeModifier,\n // If matchWidth set to true, set the width of popover to same as target element.\n ...(this.matchWidth ? [sameWidthModifier] : []),\n // Emits position of popover when position is updated.\n {\n name: 'trackPosition',\n enabled: true,\n phase: 'afterWrite',\n fn: ({ state }) => {\n // Add conditional to make sure that event is only emitted for new placement values\n if (this.emittedPosition !== state.placement) {\n this.emittedPosition = state.placement;\n this.$emit('position', this.emittedPosition);\n }\n },\n },\n // Sets Flip modifier if fallbackPosition is set\n ...(this.fallbackPosition ? [getFlipModifier(this.fallbackPosition)] : []),\n ...(currentModifiers || []),\n ];\n return allModifiers as ExtendedModifiers[];\n },\n /**\n * Sets default arrow classes if none have been set.\n */\n arrowClasses(): string[] {\n return this?.arrow?.classes ?? [];\n },\n },\n watch: {\n targetElement(element: VueNodeElement) {\n this.destroyPopper();\n if (this.$el && element) {\n this.initPopper();\n }\n },\n position(position: PopperContainerPosition) {\n this.updatePopperOptions({ placement: position });\n },\n strategy(strategy: PositioningStrategy) {\n this.updatePopperOptions({ strategy });\n },\n async arrow(arrow: PopperContainerArrowProp | boolean) {\n if (arrow) {\n // Wait for the next rendering cycle to make sure that arrow element is rendered, but only when it is displayed\n await this.$nextTick();\n }\n this.updateModifiers();\n },\n offset: 'updateModifiers',\n matchWidth: 'updateModifiers',\n },\n mounted() {\n this.initPopper();\n },\n beforeUnmount() {\n this.destroyPopper();\n },\n methods: {\n initPopper() {\n const popperElement = (this.targetElement as any).$el\n ? ((this.targetElement as any).$el as Element)\n : (this.targetElement as Element);\n this.popper = createPopper<ExtendedModifiers>(popperElement, this.$el as HTMLElement, {\n placement: this.position,\n strategy: this.strategy,\n modifiers: this.allModifiers as ExtendedModifiers[],\n });\n },\n destroyPopper() {\n // Add some time before destroy to run fade-out animation\n if (this.popper) {\n (this.popper as Instance).destroy();\n }\n },\n updatePopperOptions(options) {\n if (this.popper) {\n (this.popper as Instance).setOptions(options);\n }\n },\n updateModifiers() {\n this.updatePopperOptions({ modifiers: this.allModifiers });\n },\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./popper-container.scss\" />\n"],"names":["PopperContainerPositionBasic","PopperContainerPositionBasic2","PopperContainerPositionExtended","PopperContainerPositionExtended2","PopperContainerAriaRole","PopperContainerAriaRole2","PopperContainerPosition","getArrowModifier","arrow","arrowProps","getOffsetModifier","offset","getFlipModifier","fallbackPosition","arrowDataHideAttributeModifier","state","sameWidthModifier","_sfc_main","defineComponent","BentoFocusTrap","value","currentModifiers","_a","element","position","strategy","popperElement","createPopper","options"],"mappings":";;;;;AAoBY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,MAAA,OACAA,EAAA,QAAA,SACAA,EAAA,SAAA,UACAA,EAAA,OAAA,QAJQA,IAAAD,KAAA,CAAA,CAAA,GAOAE,IAAA,kBAAAC,OACRA,EAAA,OAAA,QACAA,EAAA,aAAA,cACAA,EAAA,WAAA,YACAA,EAAA,YAAA,aACAA,EAAA,UAAA,WACAA,EAAA,cAAA,eACAA,EAAA,YAAA,aACAA,EAAA,eAAA,gBACAA,EAAA,aAAA,cACAA,EAAA,aAAA,cACAA,EAAA,WAAA,YAXQA,IAAAD,KAAA,CAAA,CAAA,GAeAE,IAAA,kBAAAC,OACRA,EAAA,UAAA,WACAA,EAAA,UAAA,UAFQA,IAAAD,KAAA,CAAA,CAAA;AAKL,MAAAE,IAAA,EAAA,GAAAN,GAAA,GAAAE,EAAA,GCrCMK,IAAA,CAAAC,GAAAC,OAAA;AAAA,EAAqF,MAAA;AAAA,EACxF,SAAA;AAAA,IACG,SAAAD;AAAA,IACI,SAAAC,EAAA,WAAA;AAAA,EACsB;AAEvC,IAUaC,IAAA,CAAAD,GAAAE,OAAA;AAAA,EAAiF,MAAA;AAAA,EACpF,SAAA,EAAA,QAAAF,IAAA,CAAAE,EAAA,CAAA,GAAAA,EAAA,CAAA,IAAA,CAAA,IAAAA,EAAA;AAEV,IAQaC,IAAA,CAAAC,OAAA;AAAA,EAA+D,MAAA;AAAA,EAClE,SAAA;AAAA,IACG,oBAAA,MAAA,QAAAA,CAAA,IAAAA,IAAA,CAAAA,CAAA;AAAA,EACqF;AAElG,IAKOC,I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