@adyen/bento-vue3 1.76.1 → 1.76.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 (40) hide show
  1. package/dist/assets/accordion-item.css +1 -1
  2. package/dist/assets/action-bar.css +1 -1
  3. package/dist/assets/base-modal.css +1 -1
  4. package/dist/assets/button-actions.css +1 -1
  5. package/dist/assets/card.css +1 -1
  6. package/dist/assets/data-grid.css +1 -1
  7. package/dist/assets/dialog-page.css +1 -1
  8. package/dist/assets/file-uploader.css +1 -1
  9. package/dist/assets/input-field.css +1 -1
  10. package/dist/assets/inspector.css +1 -1
  11. package/dist/assets/modal-fullscreen.css +1 -1
  12. package/dist/assets/sidepanel.css +1 -1
  13. package/dist/chunks/{data-grid.Bi4JDhQD.js → data-grid.VBEJO94f.js} +3 -3
  14. package/dist/chunks/{data-grid.Bi4JDhQD.js.map → data-grid.VBEJO94f.js.map} +1 -1
  15. package/dist/chunks/{date-range-picker.DkEoczJ0.js → date-range-picker.D7IwIR5V.js} +2 -2
  16. package/dist/chunks/{date-range-picker.DkEoczJ0.js.map → date-range-picker.D7IwIR5V.js.map} +1 -1
  17. package/dist/chunks/{filter-bar.DdSw_K3n.js → filter-bar.JXmlFnHV.js} +4 -4
  18. package/dist/chunks/{filter-bar.DdSw_K3n.js.map → filter-bar.JXmlFnHV.js.map} +1 -1
  19. package/dist/chunks/{header-with-views.DLAINkjk.js → header-with-views.Dg2usaMY.js} +2 -2
  20. package/dist/chunks/{header-with-views.DLAINkjk.js.map → header-with-views.Dg2usaMY.js.map} +1 -1
  21. package/dist/chunks/{input-field-password.BGyFeRu0.js → input-field-password.B6nJ7ygZ.js} +2 -2
  22. package/dist/chunks/{input-field-password.BGyFeRu0.js.map → input-field-password.B6nJ7ygZ.js.map} +1 -1
  23. package/dist/chunks/{input-field-phone-number.DSvCOtqX.js → input-field-phone-number.D_UBAN2s.js} +2 -2
  24. package/dist/chunks/{input-field-phone-number.DSvCOtqX.js.map → input-field-phone-number.D_UBAN2s.js.map} +1 -1
  25. package/dist/chunks/{input-field.Dm47icwU.js → input-field.C29FCI4j.js} +62 -62
  26. package/dist/chunks/input-field.C29FCI4j.js.map +1 -0
  27. package/dist/chunks/{search-bar.CbNBCQnM.js → search-bar.RS02IcLc.js} +2 -2
  28. package/dist/chunks/{search-bar.CbNBCQnM.js.map → search-bar.RS02IcLc.js.map} +1 -1
  29. package/dist/data-grid.js +1 -1
  30. package/dist/date-range-picker.js +1 -1
  31. package/dist/filter-bar.js +1 -1
  32. package/dist/header-with-views.js +1 -1
  33. package/dist/index.js +8 -8
  34. package/dist/input-field-password.js +1 -1
  35. package/dist/input-field-phone-number.js +1 -1
  36. package/dist/input-field.js +1 -1
  37. package/dist/search-bar.js +1 -1
  38. package/dist/web-types.json +1 -1
  39. package/package.json +2 -2
  40. package/dist/chunks/input-field.Dm47icwU.js.map +0 -1
@@ -1,8 +1,8 @@
1
- import { defineComponent as he, useAttrs as Ee, useSlots as Te, ref as D, provide as Ne, inject as z, toRef as ke, computed as i, toRefs as Ae, createBlock as u, openBlock as n, unref as a, normalizeClass as Le, withCtx as c, createCommentVNode as d, createElementVNode as I, createElementBlock as b, renderSlot as p, withModifiers as X, mergeProps as P, withKeys as ge, createTextVNode as Z, toDisplayString as G, createVNode as Oe } from "vue";
2
- import { a as Se, I as Ie, b as Pe, B as Q } from "./dropdown.KStrJVoP.js";
3
- import { p as R, d as x, B as h } from "./typography.yBEME_Gu.js";
1
+ import { defineComponent as he, useAttrs as Ee, useSlots as Te, ref as _, provide as Ne, inject as J, toRef as ke, computed as i, toRefs as Ae, createBlock as u, openBlock as n, unref as a, normalizeClass as Le, withCtx as c, createCommentVNode as d, createElementVNode as I, createElementBlock as b, renderSlot as p, withModifiers as j, mergeProps as P, withKeys as ge, createTextVNode as z, toDisplayString as X, createVNode as Oe } from "vue";
2
+ import { a as Se, I as Ie, b as Pe, B as Z } from "./dropdown.KStrJVoP.js";
3
+ import { p as R, d as G, B as h } from "./typography.yBEME_Gu.js";
4
4
  import { g as E } from "./generate-uid.NJ8tVoha.js";
5
- import { g as ee } from "./get-slot-text.DQlZEsId.js";
5
+ import { g as Q } from "./get-slot-text.DQlZEsId.js";
6
6
  import { u as Re } from "./aria-label.CaUURpnB.js";
7
7
  import { u as Ce } from "./index.pdBj0KQU.js";
8
8
  import { u as $e } from "./use-form-layout-loading.D3lALhtC.js";
@@ -11,13 +11,13 @@ import { F as Me, E as Ue } from "./field-label.C97CrBI_.js";
11
11
  import { _ as Ve } from "./_plugin-vue_export-helper.CHgC5LLL.js";
12
12
  import "../assets/input-field.css";
13
13
  var v = /* @__PURE__ */ ((t) => (t.DEFAULT = "default", t.PAYMENT_METHOD = "payment-method", t.STATIC_VALUE = "static-value", t.DROPDOWN = "dropdown", t))(v || {}), f = /* @__PURE__ */ ((t) => (t.START = "start", t.END = "end", t))(f || {}), T = /* @__PURE__ */ ((t) => (t.CONDENSED = "condensed", t.DISABLED = "disabled", t.READONLY = "readonly", t.ERROR = "error", t))(T || {}), C = /* @__PURE__ */ ((t) => (t.SEARCH = "search", t.TEXT = "text", t.NUMBER = "number", t))(C || {}), Fe = /* @__PURE__ */ ((t) => (t.INPUT = "input", t.ESCAPE_PRESSED = "escape-pressed", t.UPDATE_DROPDOWN = "update:dropdown", t.DROPDOWN_INPUT = "dropdown-input", t.FOCUS = "focus", t.CHANGE = "change", t.BLUR = "blur", t.KEYDOWN = "keydown", t))(Fe || {});
14
- const oe = {
14
+ const x = {
15
15
  "en-US": {
16
16
  ariaLabelDropdownFallback: "{inputLabel} Dropdown",
17
17
  ariaLabelFallback: "Input field"
18
18
  }
19
19
  }, He = ["aria-disabled"], Ye = ["aria-hidden"], qe = ["aria-hidden"], Ke = ["id"], We = { class: "b-input-field__input-container" }, Je = ["id", "aria-label", "aria-describedby", "aria-owns", "aria-invalid", "placeholder", "required", "type", "value", "disabled", "readonly"], je = ["aria-hidden"], ze = ["id"], Xe = ["id"], Ze = {
20
- i18n: { messages: oe }
20
+ i18n: { messages: x }
21
21
  }, Ge = /* @__PURE__ */ he({
22
22
  ...Ze,
23
23
  __name: "input-field",
@@ -45,13 +45,13 @@ const oe = {
45
45
  tooltipText: { default: null }
46
46
  },
47
47
  emits: ["update:dropdown", "blur", "change", "dropdown-input", "escape-pressed", "focus", "keydown", "keyup", "input"],
48
- setup(t, { expose: te, emit: ae }) {
49
- const $ = Ee(), N = Te(), o = t, l = ae, { t: B } = Ce({ messages: oe }), s = Be(N), M = D(null), O = D(null), U = E("input"), y = E("input-dropdown"), k = E("input-static-value"), V = E("input-description"), F = E("input-error"), S = D(!1);
48
+ setup(t, { expose: ee, emit: oe }) {
49
+ const $ = Ee(), N = Te(), o = t, s = oe, { t: B } = Ce({ messages: x }), l = Be(N), M = _(null), O = _(null), U = E("input"), y = E("input-dropdown"), k = E("input-static-value"), V = E("input-description"), F = E("input-error"), S = _(!1);
50
50
  Ne(Se, !0);
51
- const H = z(Ie, D(void 0)), ie = () => {
52
- S.value = !0, l("focus");
53
- }, de = () => {
54
- S.value = !1, l("blur");
51
+ const H = J(Ie, _(void 0)), te = () => {
52
+ S.value = !0, s("focus");
53
+ }, ae = () => {
54
+ S.value = !1, s("blur");
55
55
  }, { isReadOnly: m } = $e(ke(o, "readonly")), Y = i(
56
56
  () => {
57
57
  var e;
@@ -59,60 +59,60 @@ const oe = {
59
59
  }
60
60
  ), A = i(
61
61
  () => o.variant === v.STATIC_VALUE && !!N.staticValue
62
- ), re = i(() => o.variant === v.DEFAULT), ne = i(() => o.variant === v.PAYMENT_METHOD), le = i(
62
+ ), ie = i(() => o.variant === v.DEFAULT), de = i(() => o.variant === v.PAYMENT_METHOD), re = i(
63
63
  () => A.value && o.staticValuePosition === f.START
64
- ), se = i(
64
+ ), ne = i(
65
65
  () => A.value && o.staticValuePosition === f.END
66
- ), L = i(() => o.variant === v.DROPDOWN && !!o.dropdown), ue = i(
66
+ ), L = i(() => o.variant === v.DROPDOWN && !!o.dropdown), le = i(
67
67
  () => L.value && o.dropdownPosition === f.START
68
- ), pe = i(
68
+ ), se = i(
69
69
  () => L.value && o.dropdownPosition === f.END
70
70
  ), g = i(
71
71
  () => !o.disabled && !m.value && (!!o.errorMessage || o.error)
72
- ), q = i(() => ee(N)("default") || o.label), K = i(() => ee(N)("description") || o.description), fe = i(() => L.value === !0 && A.value === !0 ? `${k} ${y}` : L.value === !0 ? `${y}` : A.value === !0 ? `${k}` : null), ce = i(() => B("ariaLabelFallback")), be = i(
73
- () => B("ariaLabelDropdownFallback", { inputLabel: W.value })
74
- ), ve = D($["aria-label"]), { ariaLabel: ye } = Ae(o), W = Re({
72
+ ), ue = i(() => Q(N)("default") || o.label), pe = i(() => Q(N)("description") || o.description), fe = i(() => L.value === !0 && A.value === !0 ? `${k} ${y}` : L.value === !0 ? `${y}` : A.value === !0 ? `${k}` : null), ce = i(() => B("ariaLabelFallback")), be = i(
73
+ () => B("ariaLabelDropdownFallback", { inputLabel: q.value })
74
+ ), ve = _($["aria-label"]), { ariaLabel: ye } = Ae(o), q = Re({
75
75
  ariaLabel: ve.value,
76
76
  // TODO: take this line away when the aria-label props is removed
77
77
  label: ye,
78
- defaultFallback: q.value || ce
78
+ defaultFallback: ue.value || ce
79
79
  }), me = i(
80
- () => `${K.value ? V : ""} ${g.value && o.errorMessage ? F : ""}`
80
+ () => `${pe.value ? V : ""} ${g.value && o.errorMessage ? F : ""}`
81
81
  ), we = i(() => ({
82
82
  [`b-input-field--${T.CONDENSED}`]: o.condensed,
83
83
  [`b-input-field--${T.DISABLED}`]: o.disabled,
84
84
  [`b-input-field--${T.READONLY}`]: m.value,
85
85
  [`b-input-field--${T.ERROR}`]: g.value,
86
86
  "b-input-field--slashed-zero": o.slashedZero
87
- })), J = i(() => ({
87
+ })), K = i(() => ({
88
88
  "aria-label": be.value,
89
89
  ...o.dropdown
90
- })), _e = (e) => {
90
+ })), De = (e) => {
91
91
  const r = e.target.value;
92
- !o.disabled && !m.value && l("input", r);
93
- }, j = (e) => {
94
- l("dropdown-input", e), l("update:dropdown", { ...o == null ? void 0 : o.dropdown, value: e });
92
+ !o.disabled && !m.value && s("input", r);
93
+ }, W = (e) => {
94
+ s("dropdown-input", e), s("update:dropdown", { ...o == null ? void 0 : o.dropdown, value: e });
95
95
  }, w = () => {
96
96
  M.value.focus();
97
97
  };
98
- te({
98
+ ee({
99
99
  focusInput: w,
100
100
  focus: () => {
101
101
  o.variant === "dropdown" ? O.value.focus() : w();
102
102
  }
103
103
  });
104
- const De = z(Pe, "");
105
- return !Object.values(C).includes(o.type) && !De && (o.type === "tel" ? R(
104
+ const _e = J(Pe, "");
105
+ return !Object.values(C).includes(o.type) && !_e && (o.type === "tel" ? R(
106
106
  `"bento-input-field" dropdown does not support the type '${o.type}', use "bento-input-field-phone-number" instead.`
107
107
  ) : o.type === "password" ? R(
108
108
  `"bento-input-field" dropdown does not support the type '${o.type}', use "bento-input-field-password" instead.`
109
- ) : R(`"bento-input-field" dropdown does not support the type '${o.type}'`)), o.error && x(
109
+ ) : R(`"bento-input-field" dropdown does not support the type '${o.type}'`)), o.error && G(
110
110
  'BentoInputField "error" property',
111
111
  `Use the BentoInputField "errorMessage" property instead to indicate that there is a modifier error.
112
112
  Having the field as "undefined" will hide/remove the error.
113
113
  <bento-dropdown errorMessage="Error message text" />`,
114
114
  "2.0.0"
115
- ), s("defaultIconBefore") && x(
115
+ ), l("defaultIconBefore") && G(
116
116
  'BentoInputField "defaultIconBefore" slot',
117
117
  `Use the BentoInputField "iconBefore" slot instead to add an icon at the left side of the input field
118
118
  <bento-input-field>
@@ -128,7 +128,7 @@ const oe = {
128
128
  variant: "body"
129
129
  }, {
130
130
  default: c(() => [
131
- q.value ? (n(), u(a(Me), {
131
+ a(l)("default") || e.label ? (n(), u(a(Me), {
132
132
  key: 0,
133
133
  for: a(U),
134
134
  "data-testid": "input-field-label",
@@ -149,39 +149,39 @@ const oe = {
149
149
  "aria-disabled": e.disabled,
150
150
  onClick: w
151
151
  }, [
152
- re.value && (a(s)("defaultIconBefore") || a(s)("iconBefore")) ? (n(), b("span", {
152
+ ie.value && (a(l)("defaultIconBefore") || a(l)("iconBefore")) ? (n(), b("span", {
153
153
  key: 0,
154
154
  "aria-hidden": e.ariaHidden ? "true" : void 0,
155
155
  class: "b-input-field__icon-before"
156
156
  }, [
157
- a(s)("iconBefore") ? p(e.$slots, "iconBefore", { key: 0 }, void 0, !0) : d("", !0),
158
- a(s)("defaultIconBefore") && !a(s)("iconBefore") ? p(e.$slots, "defaultIconBefore", { key: 1 }, void 0, !0) : d("", !0)
157
+ a(l)("iconBefore") ? p(e.$slots, "iconBefore", { key: 0 }, void 0, !0) : d("", !0),
158
+ a(l)("defaultIconBefore") && !a(l)("iconBefore") ? p(e.$slots, "defaultIconBefore", { key: 1 }, void 0, !0) : d("", !0)
159
159
  ], 8, Ye)) : d("", !0),
160
- ne.value && a(s)("paymentMethod") ? (n(), b("span", {
160
+ de.value && a(l)("paymentMethod") ? (n(), b("span", {
161
161
  key: 1,
162
162
  "aria-hidden": e.ariaHidden ? "true" : void 0,
163
163
  class: "b-input-field__payment-method"
164
164
  }, [
165
165
  p(e.$slots, "paymentMethod", {}, void 0, !0)
166
166
  ], 8, qe)) : d("", !0),
167
- ue.value ? (n(), b("div", {
167
+ le.value ? (n(), b("div", {
168
168
  key: 2,
169
169
  id: a(y),
170
170
  class: "b-input-field__dropdown b-input-field__dropdown--start",
171
- onClick: r[0] || (r[0] = X(() => {
171
+ onClick: r[0] || (r[0] = j(() => {
172
172
  }, ["stop"]))
173
173
  }, [
174
- e.dropdown ? (n(), u(a(Q), P({
174
+ e.dropdown ? (n(), u(a(Z), P({
175
175
  key: 0,
176
176
  ref_key: "inputDropdownElement",
177
177
  ref: O
178
- }, J.value, {
178
+ }, K.value, {
179
179
  disabled: e.disabled,
180
180
  readonly: Y.value,
181
- onInput: j
181
+ onInput: W
182
182
  }), null, 16, ["disabled", "readonly"])) : d("", !0)
183
183
  ], 8, Ke)) : d("", !0),
184
- le.value ? (n(), u(a(h), {
184
+ re.value ? (n(), u(a(h), {
185
185
  key: 3,
186
186
  id: a(k),
187
187
  class: "b-input-field__static-value b-input-field__static-value--start",
@@ -198,7 +198,7 @@ const oe = {
198
198
  ref_key: "inputFieldElement",
199
199
  ref: M,
200
200
  class: "b-input-field__input",
201
- "aria-label": a(W),
201
+ "aria-label": a(q),
202
202
  "aria-describedby": me.value,
203
203
  "aria-owns": fe.value,
204
204
  "aria-invalid": g.value,
@@ -208,15 +208,15 @@ const oe = {
208
208
  value: e.value,
209
209
  disabled: e.disabled,
210
210
  readonly: a(m),
211
- onInput: _e,
212
- onChange: r[1] || (r[1] = (_) => l("change")),
213
- onFocus: ie,
214
- onBlur: de,
211
+ onInput: De,
212
+ onChange: r[1] || (r[1] = (D) => s("change")),
213
+ onFocus: te,
214
+ onBlur: ae,
215
215
  onKeydown: [
216
- r[2] || (r[2] = (_) => l("keydown", _)),
217
- r[4] || (r[4] = ge((_) => l("escape-pressed"), ["esc"]))
216
+ r[2] || (r[2] = (D) => s("keydown", D)),
217
+ r[4] || (r[4] = ge((D) => s("escape-pressed"), ["esc"]))
218
218
  ],
219
- onKeyup: r[3] || (r[3] = (_) => l("keyup", _))
219
+ onKeyup: r[3] || (r[3] = (D) => s("keyup", D))
220
220
  }), null, 16, Je),
221
221
  a(H) && S.value && e.value ? (n(), u(a(h), {
222
222
  key: 0,
@@ -224,12 +224,12 @@ const oe = {
224
224
  class: "b-input-field__hint"
225
225
  }, {
226
226
  default: c(() => [
227
- Z(G(a(H)), 1)
227
+ z(X(a(H)), 1)
228
228
  ]),
229
229
  _: 1
230
230
  })) : d("", !0)
231
231
  ]),
232
- a(s)("iconAfter") ? (n(), b("span", {
232
+ a(l)("iconAfter") ? (n(), b("span", {
233
233
  key: 4,
234
234
  "aria-hidden": e.ariaHidden ? "true" : void 0,
235
235
  class: "b-input-field__icon-after",
@@ -237,7 +237,7 @@ const oe = {
237
237
  }, [
238
238
  p(e.$slots, "iconAfter", {}, void 0, !0)
239
239
  ], 8, je)) : d("", !0),
240
- se.value ? (n(), u(a(h), {
240
+ ne.value ? (n(), u(a(h), {
241
241
  key: 5,
242
242
  id: a(k),
243
243
  class: "b-input-field__static-value b-input-field__static-value--end",
@@ -249,23 +249,23 @@ const oe = {
249
249
  ]),
250
250
  _: 3
251
251
  }, 8, ["id"])) : d("", !0),
252
- pe.value ? (n(), b("div", {
252
+ se.value ? (n(), b("div", {
253
253
  key: 6,
254
254
  id: a(y),
255
255
  "data-testid": "input-field-dropdown-container-end",
256
256
  class: "b-input-field__dropdown b-input-field__dropdown--end",
257
- onClick: r[5] || (r[5] = X(() => {
257
+ onClick: r[5] || (r[5] = j(() => {
258
258
  }, ["stop"]))
259
259
  }, [
260
- e.dropdown ? (n(), u(a(Q), P({
260
+ e.dropdown ? (n(), u(a(Z), P({
261
261
  key: 0,
262
262
  id: a(y),
263
263
  ref_key: "inputDropdownElement",
264
264
  ref: O
265
- }, J.value, {
265
+ }, K.value, {
266
266
  disabled: e.disabled,
267
267
  readonly: Y.value,
268
- onInput: j
268
+ onInput: W
269
269
  }), null, 16, ["id", "disabled", "readonly"])) : d("", !0)
270
270
  ], 8, ze)) : d("", !0)
271
271
  ], 8, He),
@@ -275,7 +275,7 @@ const oe = {
275
275
  "error-message": e.errorMessage,
276
276
  class: "b-input-field__error-message"
277
277
  }, null, 8, ["id", "error-message"])) : d("", !0),
278
- K.value ? (n(), b("span", {
278
+ a(l)("description") || e.description ? (n(), b("span", {
279
279
  key: 2,
280
280
  id: a(V),
281
281
  class: "b-input-field__description",
@@ -287,7 +287,7 @@ const oe = {
287
287
  }, {
288
288
  default: c(() => [
289
289
  p(e.$slots, "description", { id: "description" }, () => [
290
- Z(G(e.description), 1)
290
+ z(X(e.description), 1)
291
291
  ], !0)
292
292
  ]),
293
293
  _: 3
@@ -297,7 +297,7 @@ const oe = {
297
297
  _: 3
298
298
  }, 8, ["class"]));
299
299
  }
300
- }), po = /* @__PURE__ */ Ve(Ge, [["__scopeId", "data-v-22a1a159"]]);
300
+ }), po = /* @__PURE__ */ Ve(Ge, [["__scopeId", "data-v-92010e61"]]);
301
301
  export {
302
302
  po as B,
303
303
  v as a,
@@ -306,4 +306,4 @@ export {
306
306
  C as d,
307
307
  Fe as e
308
308
  };
309
- //# sourceMappingURL=input-field.Dm47icwU.js.map
309
+ //# sourceMappingURL=input-field.C29FCI4j.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input-field.C29FCI4j.js","sources":["../../../vue2/src/components/input-field/input-field.types.ts","../../../vue2/src/components/input-field/input-field.vue"],"sourcesContent":["import { type BentoDropdownProps } from '../dropdown/dropdown.types';\nimport { type FormField } from '../../types/form-field';\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoInputFieldVariant {\n DEFAULT = 'default',\n PAYMENT_METHOD = 'payment-method',\n STATIC_VALUE = 'static-value',\n DROPDOWN = 'dropdown',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoInputFieldElementPosition {\n START = 'start',\n END = 'end',\n}\n\nexport enum BentoInputFieldStateClass {\n CONDENSED = 'condensed',\n DISABLED = 'disabled',\n READONLY = 'readonly',\n ERROR = 'error',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoInputFieldType {\n SEARCH = 'search',\n TEXT = 'text',\n NUMBER = 'number',\n}\n\nexport type BentoInputFieldValue = string | number;\n\ntype DropdownProps = BentoDropdownProps;\nexport type BentoInputDropdownProps = {\n /**\n * Text that labels the dropdown element\n */\n 'aria-label'?: string;\n /**\n * Enables dynamic filtering\n */\n dynamicFiltering?: DropdownProps['dynamicFiltering'];\n /**\n * List of available items\n */\n items: DropdownProps['items'];\n /**\n * Sets the dropdown in read-only mode\n */\n readonly?: DropdownProps['readonly'];\n /**\n * Selected value of the dropdown\n */\n value?: DropdownProps['value'];\n};\n\n/**\n * @deprecated The use of these enums is no longer supported.\n * Use `v-on:` or `@` to listen to the events being emitted.\n * This enum will be removed in 2.0.\n */\nexport enum BentoInputFieldEvent {\n INPUT = 'input',\n ESCAPE_PRESSED = 'escape-pressed',\n UPDATE_DROPDOWN = 'update:dropdown',\n DROPDOWN_INPUT = 'dropdown-input',\n FOCUS = 'focus',\n CHANGE = 'change',\n BLUR = 'blur',\n KEYDOWN = 'keydown',\n}\n\nexport interface BentoInputFieldProps extends FormField {\n /**\n * Indicates whether the element is exposed to an accessibility API.\n */\n ariaHidden?: boolean;\n\n /**\n * Text that labels an the input element\n *\n * @deprecated from version 2.0.0. Use the aria-label attribute instead.\n */\n ariaLabel?: string;\n\n /**\n * Reduces height of the input\n */\n condensed?: boolean;\n\n /**\n * Dropdown props for the small selectable dropdown menu.\n * Properties supported:\n *\n * - `aria-label`: Text that labels the dropdown element\n * - `dynamicFiltering`: Enables dynamic filtering\n * - `items`: List of available items\n * - `readonly`: Sets the dropdown in read-only mode\n * - `value`: Selected value of the dropdown\n */\n dropdown?: BentoInputDropdownProps;\n\n /**\n * Position of the dropdown before or after input value\n */\n dropdownPosition?: BentoInputFieldElementPosition | `${BentoInputFieldElementPosition}`;\n\n /**\n * Adds error validation class for outlining input-field.\n *\n * @deprecated Use \"errorMessage\" prop instead\n */\n error?: boolean;\n\n /**\n * Renders a font numeric style with slashed zeros instead of normal ones.\n */\n slashedZero?: boolean;\n\n /**\n * Static text that displayed before or after input value\n * Applicable to the Static Value variant\n */\n staticValue?: string;\n\n /**\n * Position of Static Value before or after input value\n */\n staticValuePosition?: BentoInputFieldElementPosition | `${BentoInputFieldElementPosition}`;\n\n /**\n * A string specifying the type of control to render.\n * All `input` types are available but only `search`, `text` and `number` are fully supported.\n *\n * If `type` is `search`, use `bento-search-bar` instead.\n */\n type?: BentoInputFieldType | `${BentoInputFieldType}` | HTMLInputElement['type'];\n\n /**\n * Text displayed as the value of the input-field\n */\n value?: BentoInputFieldValue;\n\n /**\n * Describes the different variants for the input element\n */\n variant?: BentoInputFieldVariant | `${BentoInputFieldVariant}`;\n}\n","<template>\n <bento-typography\n class=\"b-input-field\"\n data-testid=\"input-text-container\"\n :class=\"inputFieldConditionalClasses\"\n el=\"div\"\n variant=\"body\"\n >\n <field-label\n v-if=\"hasSlot('default') || label\"\n :for=\"inputFieldId\"\n data-testid=\"input-field-label\"\n :tooltip-text=\"tooltipText\"\n :optional=\"optional\"\n :required=\"required\"\n :label=\"label\"\n @click=\"focusInput\"\n >\n <slot></slot>\n </field-label>\n\n <div class=\"b-input-field__input-box\" data-testid=\"input-box\" :aria-disabled=\"disabled\" @click=\"focusInput\">\n <!-- Optional Icon for Default text variant -->\n <span\n v-if=\"isDefaultVariant && (hasSlot('defaultIconBefore') || hasSlot('iconBefore'))\"\n :aria-hidden=\"ariaHidden ? 'true' : undefined\"\n class=\"b-input-field__icon-before\"\n >\n <slot v-if=\"hasSlot('iconBefore')\" name=\"iconBefore\" />\n <slot v-if=\"hasSlot('defaultIconBefore') && !hasSlot('iconBefore')\" name=\"defaultIconBefore\" />\n </span>\n\n <!-- Mandatory Icon for Payment Method variant -->\n <span\n v-if=\"isPaymentMethodVariant && hasSlot('paymentMethod')\"\n :aria-hidden=\"ariaHidden ? 'true' : undefined\"\n class=\"b-input-field__payment-method\"\n >\n <slot name=\"paymentMethod\" />\n </span>\n\n <!-- Dropdown at start -->\n <div\n v-if=\"shouldDisplayDropdownAtStart\"\n :id=\"dropdownId\"\n class=\"b-input-field__dropdown b-input-field__dropdown--start\"\n @click.stop\n >\n <bento-dropdown\n v-if=\"dropdown\"\n ref=\"inputDropdownElement\"\n v-bind=\"inputFieldDropdownProps\"\n :disabled=\"disabled\"\n :readonly=\"isDropdownReadOnly\"\n @input=\"onDropdownInput\"\n />\n </div>\n\n <!-- Static Value at start -->\n <bento-typography\n v-if=\"shouldDisplayStaticValueAtStart\"\n :id=\"staticValueId\"\n class=\"b-input-field__static-value b-input-field__static-value--start\"\n el=\"span\"\n variant=\"body\"\n >\n <slot name=\"staticValue\" />\n </bento-typography>\n <div class=\"b-input-field__input-container\">\n <input\n :id=\"inputFieldId\"\n v-bind=\"attrs\"\n ref=\"inputFieldElement\"\n class=\"b-input-field__input\"\n :aria-label=\"computedAriaLabel\"\n :aria-describedby=\"computedAriaDescribedBy\"\n :aria-owns=\"computedAriaOwns\"\n :aria-invalid=\"shouldShowError\"\n :placeholder=\"placeholder\"\n :required=\"required\"\n :type=\"type\"\n :value=\"value\"\n :disabled=\"disabled\"\n :readonly=\"isReadOnly\"\n @input=\"onInput\"\n @change=\"emit('change')\"\n @focus=\"onFocus\"\n @blur=\"onBlur\"\n @keydown=\"emit('keydown', $event)\"\n @keyup=\"emit('keyup', $event)\"\n @keydown.esc=\"emit('escape-pressed')\"\n />\n\n <!-- Hint at the end -->\n <bento-typography v-if=\"hint && isFocused && value\" el=\"span\" class=\"b-input-field__hint\">\n {{ hint }}\n </bento-typography>\n </div>\n\n <span\n v-if=\"hasSlot('iconAfter')\"\n :aria-hidden=\"ariaHidden ? 'true' : undefined\"\n class=\"b-input-field__icon-after\"\n data-testid=\"input-text__icon-after\"\n >\n <slot name=\"iconAfter\" />\n </span>\n\n <!-- Static Value at the end -->\n <bento-typography\n v-if=\"shouldDisplayStaticValueAtEnd\"\n :id=\"staticValueId\"\n class=\"b-input-field__static-value b-input-field__static-value--end\"\n el=\"span\"\n variant=\"body\"\n >\n <slot name=\"staticValue\" />\n </bento-typography>\n\n <!-- Dropdown at end -->\n <div\n v-if=\"shouldDisplayDropdownAtEnd\"\n :id=\"dropdownId\"\n data-testid=\"input-field-dropdown-container-end\"\n class=\"b-input-field__dropdown b-input-field__dropdown--end\"\n @click.stop\n >\n <bento-dropdown\n v-if=\"dropdown\"\n :id=\"dropdownId\"\n ref=\"inputDropdownElement\"\n v-bind=\"inputFieldDropdownProps\"\n :disabled=\"disabled\"\n :readonly=\"isDropdownReadOnly\"\n @input=\"onDropdownInput\"\n />\n </div>\n </div>\n\n <error-message\n v-if=\"shouldShowError && !!errorMessage\"\n :id=\"errorId\"\n :error-message=\"errorMessage\"\n class=\"b-input-field__error-message\"\n />\n\n <span\n v-if=\"hasSlot('description') || description\"\n :id=\"descriptionId\"\n class=\"b-input-field__description\"\n @click=\"focusInput\"\n >\n <bento-typography el=\"span\" variant=\"body\">\n <slot id=\"description\" name=\"description\">\n {{ description }}\n </slot>\n </bento-typography>\n </span>\n </bento-typography>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, provide, type Ref, ref, toRef, toRefs, useAttrs, useSlots } from 'vue';\n\n // Components\n import { BentoDropdown } from '@/components/dropdown';\n import { BentoTypography } from '@/components/typography';\n import { ErrorMessage, FieldLabel } from '@/internal';\n\n // Utils\n import { deprecate } from '@/utils/ts/deprecate';\n import { generateUid } from '@/core/utils/ts';\n import { getSlotText } from '@/utils/ts/get-slot-text';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n import { useI18n } from '@/utils/ts/i18n';\n import { printDevelopmentWarning } from '@/utils/ts/print-development-warning';\n import {\n INPUT_FIELD_COMPONENT_INJECTION_KEY,\n INPUT_FIELD_HINT_INJECTION_KEY,\n INPUT_FIELD_PARENT_COMPONENT_INJECTION_KEY,\n } from '@/components/input-field/input-field.keys';\n\n // Composables\n import { useFormLayoutFieldLoading, useHasSlot } from '@/composables';\n\n // Types\n import {\n type BentoInputDropdownProps,\n BentoInputFieldElementPosition,\n type BentoInputFieldProps,\n BentoInputFieldStateClass,\n BentoInputFieldType,\n BentoInputFieldVariant,\n } from './input-field.types';\n import { type BentoListboxSelectedValue } from '@/types/listbox';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const attrs = useAttrs();\n const slots = useSlots();\n\n const props = withDefaults(defineProps<BentoInputFieldProps>(), {\n ariaHidden: true,\n ariaLabel: undefined,\n condensed: false,\n description: '',\n disabled: false,\n dropdown: undefined,\n dropdownPosition: BentoInputFieldElementPosition.START,\n error: false,\n errorMessage: null,\n label: '',\n optional: false,\n placeholder: '',\n required: false,\n readonly: false,\n slashedZero: false,\n staticValue: '',\n staticValuePosition: BentoInputFieldElementPosition.START,\n tooltipText: null,\n type: BentoInputFieldType.TEXT,\n value: undefined,\n variant: BentoInputFieldVariant.DEFAULT,\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when the Input Field's internal dropdown changes it's value. Contains every dropdown prop passed with the updated selected value as 'value'\n */\n (e: 'update:dropdown', updatedDropdownProps: BentoInputDropdownProps): void;\n\n /**\n * Emitted when the element has lost focus\n */\n (e: 'blur'): void;\n\n /**\n * Emitted when the user modifies the element's value. Unlike the 'input' event, the change event is not necessarily fired for each alteration to an element's value\n */\n (e: 'change'): void;\n\n /**\n * Emitted when the Input Field's internal dropdown changes it's value\n */\n (e: 'dropdown-input', selectedValue: BentoListboxSelectedValue): void;\n\n /**\n * Emitted when the \"ESC\" key is pressed\n */\n (e: 'escape-pressed'): void;\n\n /**\n * Emitted when the element has received focus\n */\n (e: 'focus'): void;\n\n /**\n * Emitted when a key is pressed down\n */\n (e: 'keydown', event: KeyboardEvent): void;\n\n /**\n * Emitted when a key is pressed and lifted up\n */\n (e: 'keyup', event: KeyboardEvent): void;\n\n /**\n * Emitted when the component's model changes\n */\n (e: 'input', inputValue: string): void;\n }>();\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const hasSlot = useHasSlot(slots);\n const inputFieldElement = ref(null);\n const inputDropdownElement = ref(null);\n const inputFieldId = generateUid('input');\n const dropdownId = generateUid('input-dropdown');\n const staticValueId = generateUid('input-static-value');\n const descriptionId = generateUid('input-description');\n const errorId = generateUid('input-error');\n const isFocused = ref(false);\n\n // Provide INPUT_FIELD_COMPONENT_INJECTION_KEY as true, to set the input only dropdown size variant in the BentoDropdown comp\n provide(INPUT_FIELD_COMPONENT_INJECTION_KEY, true);\n // Renders the input with a hint if a string is provided\n const hint = inject<Ref<string | undefined>>(INPUT_FIELD_HINT_INJECTION_KEY, ref(undefined));\n\n const onFocus = () => {\n isFocused.value = true;\n emit('focus');\n };\n\n const onBlur = () => {\n isFocused.value = false;\n emit('blur');\n };\n\n const { isReadOnly } = useFormLayoutFieldLoading(toRef(props, 'readonly'));\n const isDropdownReadOnly = computed<BentoInputDropdownProps['readonly']>(\n () => isReadOnly.value || props.dropdown?.readonly\n );\n\n const shouldShowStaticValue = computed(\n () => props.variant === BentoInputFieldVariant.STATIC_VALUE && !!slots.staticValue\n );\n\n const isDefaultVariant = computed(() => props.variant === BentoInputFieldVariant.DEFAULT);\n\n const isPaymentMethodVariant = computed(() => props.variant === BentoInputFieldVariant.PAYMENT_METHOD);\n\n const shouldDisplayStaticValueAtStart = computed(\n () => shouldShowStaticValue.value && props.staticValuePosition === BentoInputFieldElementPosition.START\n );\n const shouldDisplayStaticValueAtEnd = computed(\n () => shouldShowStaticValue.value && props.staticValuePosition === BentoInputFieldElementPosition.END\n );\n\n const shouldShowDropdown = computed(() => props.variant === BentoInputFieldVariant.DROPDOWN && !!props.dropdown);\n const shouldDisplayDropdownAtStart = computed(\n () => shouldShowDropdown.value && props.dropdownPosition === BentoInputFieldElementPosition.START\n );\n const shouldDisplayDropdownAtEnd = computed(\n () => shouldShowDropdown.value && props.dropdownPosition === BentoInputFieldElementPosition.END\n );\n\n const shouldShowError = computed(\n () => !props.disabled && !isReadOnly.value && (!!props.errorMessage || props.error)\n );\n\n const computedLabel = computed(() => (getSlotText(slots)('default') as string) || props.label);\n const computedDescription = computed(() => (getSlotText(slots)('description') as string) || props.description);\n\n const computedAriaOwns = computed(() => {\n if (shouldShowDropdown.value === true && shouldShowStaticValue.value === true) {\n return `${staticValueId} ${dropdownId}`;\n }\n if (shouldShowDropdown.value === true) {\n return `${dropdownId}`;\n }\n if (shouldShowStaticValue.value === true) {\n return `${staticValueId}`;\n }\n return null;\n });\n\n // vue-i18n issue with t() used in script - direct usage in template works\n // requires either createI18n({ legacy: false }) or to be wrapped in computed()\n const computedAriaLabelFallbackMessage = computed(() => t('ariaLabelFallback'));\n const computedAriaLabelDropdowFallback = computed(() =>\n t('ariaLabelDropdownFallback', { inputLabel: computedAriaLabel.value })\n );\n\n const ariaLabelAttribute = ref(attrs['aria-label']);\n const { ariaLabel } = toRefs(props);\n const computedAriaLabel = useAriaLabel({\n ariaLabel: ariaLabelAttribute.value as string,\n // TODO: take this line away when the aria-label props is removed\n label: ariaLabel,\n defaultFallback: computedLabel.value || computedAriaLabelFallbackMessage,\n });\n\n const computedAriaDescribedBy = computed(\n () =>\n `${computedDescription.value ? descriptionId : ''} ${\n shouldShowError.value && !!props.errorMessage ? errorId : ''\n }`\n );\n\n const inputFieldConditionalClasses = computed(() => ({\n [`b-input-field--${BentoInputFieldStateClass.CONDENSED}`]: props.condensed,\n [`b-input-field--${BentoInputFieldStateClass.DISABLED}`]: props.disabled,\n [`b-input-field--${BentoInputFieldStateClass.READONLY}`]: isReadOnly.value,\n [`b-input-field--${BentoInputFieldStateClass.ERROR}`]: shouldShowError.value,\n [`b-input-field--slashed-zero`]: props.slashedZero,\n }));\n\n const inputFieldDropdownProps = computed(() => ({\n 'aria-label': computedAriaLabelDropdowFallback.value,\n ...props.dropdown,\n }));\n\n const onInput = (event: Event) => {\n const inputValue = (event.target as HTMLInputElement).value;\n if (!props.disabled && !isReadOnly.value) {\n emit('input', inputValue);\n }\n };\n\n const onDropdownInput = (selectedValue: BentoListboxSelectedValue) => {\n emit('dropdown-input', selectedValue);\n emit('update:dropdown', { ...props?.dropdown, value: selectedValue });\n };\n\n const focusInput = () => {\n inputFieldElement.value.focus();\n };\n\n const focus = () => {\n if (props.variant === 'dropdown') {\n inputDropdownElement.value.focus();\n } else {\n focusInput();\n }\n };\n\n // Expose method so that other components can focus on it in Vue3\n defineExpose({\n focusInput,\n focus,\n });\n\n const inputFieldParentComponent = inject(INPUT_FIELD_PARENT_COMPONENT_INJECTION_KEY, '');\n\n if (!Object.values(BentoInputFieldType).includes(props.type as BentoInputFieldType) && !inputFieldParentComponent) {\n if (props.type === 'tel') {\n printDevelopmentWarning(\n `\"bento-input-field\" dropdown does not support the type '${props.type}', use \"bento-input-field-phone-number\" instead.`\n );\n } else if (props.type === 'password') {\n printDevelopmentWarning(\n `\"bento-input-field\" dropdown does not support the type '${props.type}', use \"bento-input-field-password\" instead.`\n );\n } else {\n printDevelopmentWarning(`\"bento-input-field\" dropdown does not support the type '${props.type}'`);\n }\n }\n\n /**\n * Deprecations\n */\n if (props.error) {\n deprecate(\n 'BentoInputField \"error\" property',\n `Use the BentoInputField \"errorMessage\" property instead to indicate that there is a modifier error.\n Having the field as \"undefined\" will hide/remove the error.\n <bento-dropdown errorMessage=\"Error message text\" />`,\n '2.0.0'\n );\n }\n\n if (hasSlot('defaultIconBefore')) {\n deprecate(\n 'BentoInputField \"defaultIconBefore\" slot',\n `Use the BentoInputField \"iconBefore\" slot instead to add an icon at the left side of the input field\n <bento-input-field>\n \\t<template #iconBefore>\n \\t\\t<my-icon-goes-here />\n \\t</template>\n </bento-input-field>`,\n '2.0.0'\n );\n }\n</script>\n\n<script lang=\"ts\">\n /**\n * Input field component is used to create interactive controls for web-based\n * forms in order to accept data from the user.\n *\n * @example\n * import { BentoInputField } from '@adyen/bento-vue2'\n *\n * const inputValue = ref('');\n *\n * export default {\n * components: { BentoInputField },\n * tempate: `\n * <bento-input-field\n * :value=\"inputValue\"\n * :input=\"newValue => inputValue.value = newValue\"\n * >\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./input-field.scss\" />\n"],"names":["BentoInputFieldVariant","BentoInputFieldVariant2","BentoInputFieldElementPosition","BentoInputFieldElementPosition2","BentoInputFieldStateClass","BentoInputFieldStateClass2","BentoInputFieldType","BentoInputFieldType2","BentoInputFieldEvent","BentoInputFieldEvent2","__default__","messages","attrs","useAttrs","slots","useSlots","props","__props","emit","__emit","t","useI18n","hasSlot","useHasSlot","inputFieldElement","ref","inputDropdownElement","inputFieldId","generateUid","dropdownId","staticValueId","descriptionId","errorId","isFocused","provide","INPUT_FIELD_COMPONENT_INJECTION_KEY","hint","inject","INPUT_FIELD_HINT_INJECTION_KEY","onFocus","onBlur","isReadOnly","useFormLayoutFieldLoading","toRef","isDropdownReadOnly","computed","_a","shouldShowStaticValue","isDefaultVariant","isPaymentMethodVariant","shouldDisplayStaticValueAtStart","shouldDisplayStaticValueAtEnd","shouldShowDropdown","shouldDisplayDropdownAtStart","shouldDisplayDropdownAtEnd","shouldShowError","computedLabel","getSlotText","computedDescription","computedAriaOwns","computedAriaLabelFallbackMessage","computedAriaLabelDropdowFallback","computedAriaLabel","ariaLabelAttribute","ariaLabel","toRefs","useAriaLabel","computedAriaDescribedBy","inputFieldConditionalClasses","inputFieldDropdownProps","onInput","event","inputValue","onDropdownInput","selectedValue","focusInput","__expose","inputFieldParentComponent","INPUT_FIELD_PARENT_COMPONENT_INJECTION_KEY","printDevelopmentWarning","deprecate"],"mappings":"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"}
@@ -2,7 +2,7 @@ import { defineComponent as A, provide as P, toRef as T, useAttrs as y, ref as p
2
2
  import { d as k } from "./debounce.DUTu11PS.js";
3
3
  import { u as K } from "./index.pdBj0KQU.js";
4
4
  import { I as R } from "./dropdown.KStrJVoP.js";
5
- import { B as w } from "./input-field.Dm47icwU.js";
5
+ import { B as w } from "./input-field.C29FCI4j.js";
6
6
  import { S as B } from "./search.PczW-onY.js";
7
7
  import { C as D } from "./cross-circle-fill.CYLL7jfC.js";
8
8
  import { _ as $ } from "./_plugin-vue_export-helper.CHgC5LLL.js";
@@ -113,4 +113,4 @@ export {
113
113
  b as a,
114
114
  x as b
115
115
  };
116
- //# sourceMappingURL=search-bar.CbNBCQnM.js.map
116
+ //# sourceMappingURL=search-bar.RS02IcLc.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"search-bar.CbNBCQnM.js","sources":["../../../vue2/src/components/search-bar/search-bar.types.ts","../../../vue2/src/components/search-bar/search-bar.vue"],"sourcesContent":["export enum BentoSearchBarInternalEvent {\n CLEAR = 'clear',\n ESCAPE = 'escape-pressed',\n INPUT = 'input',\n UPDATE = 'update:search-term',\n}\n\nexport enum BentoSearchBarEvent {\n CLEAR = 'search-clear',\n INPUT = 'search-input',\n UPDATE = 'update:search-term',\n}\n\nexport interface BentoSearchBarItem {\n label: string;\n items?: Array<BentoSearchBarItem>;\n}\n\nexport type BentoSearchBarData = Array<BentoSearchBarItem>;\n\nexport interface BentoSearchBarProps {\n /**\n * Text that labels an the search bar input element\n */\n inputFieldAriaLabel: string;\n\n /**\n * Reduces height of the search bar. Default: false\n */\n condensed?: boolean;\n\n /**\n * Custom debounce time. Default: 300\n */\n debounceTime?: number;\n\n /**\n * Disables the text input.\n */\n disabled?: boolean;\n\n /**\n * Text displayed as a hint when the field is not empty\n */\n hint?: string;\n\n /**\n * Text displayed as the placeholder of the input-field\n */\n placeholder?: string;\n\n /**\n * Text displayed as the value being searched\n */\n value?: string;\n}\n","<template>\n <div class=\"b-search-bar\">\n <bento-input-field\n ref=\"bentoInputField\"\n v-bind=\"attrs\"\n :value=\"searchTerm\"\n type=\"search\"\n :condensed=\"condensed\"\n :aria-label=\"inputFieldAriaLabel\"\n :aria-hidden=\"false\"\n :disabled=\"disabled\"\n :placeholder=\"placeholder\"\n @input=\"onInputEvent\"\n @focus=\"emit('focus')\"\n @blur=\"emit('blur')\"\n @escape-pressed=\"emit(BentoSearchBarInternalEvent.ESCAPE)\"\n >\n <template #iconBefore>\n <search-icon :svg-title=\"t('search')\" aria-hidden=\"true\" />\n </template>\n\n <template v-if=\"searchTerm\" #iconAfter>\n <div\n class=\"b-search-bar__clear-search\"\n tabindex=\"0\"\n data-testid=\"b-search-bar-clear-search-button\"\n @click=\"onClearSearch\"\n @keypress.enter=\"onClearSearch\"\n @keyup.space=\"onClearSearch\"\n >\n <cross-circle-fill-icon :svg-title=\"t('clearSearch')\" />\n </div>\n </template>\n </bento-input-field>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { provide, ref, toRef, useAttrs, watch } from 'vue';\n import { debounce } from '@/utils/ts/debounce';\n import { BentoSearchBarInternalEvent, type BentoSearchBarProps } from './search-bar.types';\n import { useI18n } from '@/utils/ts/i18n';\n import { INPUT_FIELD_HINT_INJECTION_KEY } from '@/components/input-field/input-field.keys';\n // eslint-disable-next-line @typescript-eslint/consistent-type-imports\n import BentoInputField from '@/components/input-field/input-field.vue';\n import SearchIcon from '@adyen/ui-assets-icons-16/vue/search';\n import CrossCircleFillIcon from '@adyen/ui-assets-icons-16/vue/cross-circle-fill';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const props = withDefaults(defineProps<BentoSearchBarProps>(), {\n condensed: false,\n debounceTime: 300,\n disabled: false,\n hint: '',\n placeholder: '',\n value: undefined,\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when the input value changes by typing a search. Debounced by the `debounceTime` property\n */\n (e: 'input', inputValue: string): void;\n\n /**\n * Emitted when the \"clear search\" button is clicked\n */\n (e: 'clear'): void;\n\n /**\n * Emitted when the \"ESC\" key is pressed inside the Search Bar input\n */\n (e: 'escape-pressed'): void;\n\n /**\n * Emitted when the element has lost focus\n */\n (e: 'blur'): void;\n\n /**\n * Emitted when the element has received focus\n */\n (e: 'focus'): void;\n }>();\n\n provide(INPUT_FIELD_HINT_INJECTION_KEY, toRef(props, 'hint'));\n\n const attrs = useAttrs();\n const searchTerm = ref(props.value);\n const bentoInputField = ref<InstanceType<typeof BentoInputField> | null>();\n\n watch(\n () => props.value,\n () => {\n searchTerm.value = props.value;\n },\n { immediate: true }\n );\n\n const onClearSearch = () => {\n searchTerm.value = '';\n emit('clear');\n emit('input', '');\n };\n\n const debouncedEmit = debounce(() => {\n emit('input', searchTerm.value);\n }, props.debounceTime);\n\n const onInputEvent = (value: string) => {\n searchTerm.value = value;\n debouncedEmit();\n };\n\n const focus = () => {\n // bentoInputField.value?.focusInput();\n bentoInputField.value.focusInput();\n };\n\n // Expose method so that it can be used to focus on the input from outside the component\n defineExpose({\n /**\n * Focus on the input field when called.\n */\n focus,\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * Search functionality to help users find the desired data quicker.\n * When a user starts typing, the data is dynamically filtered to\n * only show the relevant results.\n *\n * Clearing the search field displays the entire list again.\n *\n * @example\n * import {\n * BentoSearchBar,\n * BentoSearchBarData,\n * useSearchBarFilter\n * } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoSearchBar },\n * template: `\n * <bento-search-bar\n * input-field-aria-label=\"Search bar\"\n * v-model=\"searchTerm\"\n * @input=\"onInput\"\n * @clear=\"onClearSearch\"\n * />\n * // Render the filtered data\n * {{ filteredData }}\n * `,\n * setup() {\n * const searchTerm = ref('');\n * const data = ref<BentoSearchBarData>([]);\n * const filteredData = useSearchBarFilter(searchTerm, data);\n *\n * consdt onInput = () => {}\n * consdt onClearSearch = () => {}\n *\n * return {\n * searchTerm,\n * filteredData,\n * onInput,\n * onClearSearch,\n * };\n * }\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./search-bar.scss\" />\n"],"names":["BentoSearchBarInternalEvent","BentoSearchBarInternalEvent2","BentoSearchBarEvent","BentoSearchBarEvent2","__default__","messages","t","useI18n","props","__props","emit","__emit","provide","INPUT_FIELD_HINT_INJECTION_KEY","toRef","attrs","useAttrs","searchTerm","ref","bentoInputField","watch","onClearSearch","debouncedEmit","debounce","onInputEvent","value","__expose"],"mappings":";;;;;;;;;AAAY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,QAAA,SACAA,EAAA,SAAA,kBACAA,EAAA,QAAA,SACAA,EAAA,SAAA,sBAJQA,IAAAD,KAAA,CAAA,CAAA,GAOAE,IAAA,kBAAAC,OACRA,EAAA,QAAA,gBACAA,EAAA,QAAA,gBACAA,EAAA,SAAA,sBAHQA,IAAAD,KAAA,CAAA,CAAA;;;;;;;;;;;;;;kCCyKRE,IAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;;;;;;;;AA/HA,UAAA,EAAA,GAAAC,EAAA,IAAAC,EAAA,EAAA,UAAAF,EAAA,CAAA,GAEAG,IAAAC,GASAC,IAAAC;AA2BA,IAAAC,EAAAC,GAAAC,EAAAN,GAAA,MAAA,CAAA;AAEA,UAAAO,IAAAC,EAAA,GACAC,IAAAC,EAAAV,EAAA,KAAA,GACAW,IAAAD,EAAA;AAEA,IAAAE;AAAA,MAAA,MAAAZ,EAAA;AAAA,MACgB,MAAA;AAER,QAAAS,EAAA,QAAAT,EAAA;AAAA,MAAyB;AAAA,MAC7B,EAAA,WAAA,GAAA;AAAA,IACkB;AAGtB,UAAAa,IAAA,MAAA;AACI,MAAAJ,EAAA,QAAA,IACAP,EAAA,OAAA,GACAA,EAAA,SAAA,EAAA;AAAA,IAAgB,GAGpBY,IAAAC,EAAA,MAAA;AACI,MAAAb,EAAA,SAAAO,EAAA,KAAA;AAAA,IAA8B,GAAAT,EAAA,YAAA,GAGlCgB,IAAA,CAAAC,MAAA;AACI,MAAAR,EAAA,QAAAQ,GACAH,EAAA;AAAA,IAAc;AASlB,WAAAI,EAAA;AAAA;AAAA;AAAA;AAAA,MAAa,OANb,MAAA;AAEI,QAAAP,EAAA,MAAA,WAAA;AAAA,MAAiC;AAAA,IAQjC,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"search-bar.RS02IcLc.js","sources":["../../../vue2/src/components/search-bar/search-bar.types.ts","../../../vue2/src/components/search-bar/search-bar.vue"],"sourcesContent":["export enum BentoSearchBarInternalEvent {\n CLEAR = 'clear',\n ESCAPE = 'escape-pressed',\n INPUT = 'input',\n UPDATE = 'update:search-term',\n}\n\nexport enum BentoSearchBarEvent {\n CLEAR = 'search-clear',\n INPUT = 'search-input',\n UPDATE = 'update:search-term',\n}\n\nexport interface BentoSearchBarItem {\n label: string;\n items?: Array<BentoSearchBarItem>;\n}\n\nexport type BentoSearchBarData = Array<BentoSearchBarItem>;\n\nexport interface BentoSearchBarProps {\n /**\n * Text that labels an the search bar input element\n */\n inputFieldAriaLabel: string;\n\n /**\n * Reduces height of the search bar. Default: false\n */\n condensed?: boolean;\n\n /**\n * Custom debounce time. Default: 300\n */\n debounceTime?: number;\n\n /**\n * Disables the text input.\n */\n disabled?: boolean;\n\n /**\n * Text displayed as a hint when the field is not empty\n */\n hint?: string;\n\n /**\n * Text displayed as the placeholder of the input-field\n */\n placeholder?: string;\n\n /**\n * Text displayed as the value being searched\n */\n value?: string;\n}\n","<template>\n <div class=\"b-search-bar\">\n <bento-input-field\n ref=\"bentoInputField\"\n v-bind=\"attrs\"\n :value=\"searchTerm\"\n type=\"search\"\n :condensed=\"condensed\"\n :aria-label=\"inputFieldAriaLabel\"\n :aria-hidden=\"false\"\n :disabled=\"disabled\"\n :placeholder=\"placeholder\"\n @input=\"onInputEvent\"\n @focus=\"emit('focus')\"\n @blur=\"emit('blur')\"\n @escape-pressed=\"emit(BentoSearchBarInternalEvent.ESCAPE)\"\n >\n <template #iconBefore>\n <search-icon :svg-title=\"t('search')\" aria-hidden=\"true\" />\n </template>\n\n <template v-if=\"searchTerm\" #iconAfter>\n <div\n class=\"b-search-bar__clear-search\"\n tabindex=\"0\"\n data-testid=\"b-search-bar-clear-search-button\"\n @click=\"onClearSearch\"\n @keypress.enter=\"onClearSearch\"\n @keyup.space=\"onClearSearch\"\n >\n <cross-circle-fill-icon :svg-title=\"t('clearSearch')\" />\n </div>\n </template>\n </bento-input-field>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { provide, ref, toRef, useAttrs, watch } from 'vue';\n import { debounce } from '@/utils/ts/debounce';\n import { BentoSearchBarInternalEvent, type BentoSearchBarProps } from './search-bar.types';\n import { useI18n } from '@/utils/ts/i18n';\n import { INPUT_FIELD_HINT_INJECTION_KEY } from '@/components/input-field/input-field.keys';\n // eslint-disable-next-line @typescript-eslint/consistent-type-imports\n import BentoInputField from '@/components/input-field/input-field.vue';\n import SearchIcon from '@adyen/ui-assets-icons-16/vue/search';\n import CrossCircleFillIcon from '@adyen/ui-assets-icons-16/vue/cross-circle-fill';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const props = withDefaults(defineProps<BentoSearchBarProps>(), {\n condensed: false,\n debounceTime: 300,\n disabled: false,\n hint: '',\n placeholder: '',\n value: undefined,\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when the input value changes by typing a search. Debounced by the `debounceTime` property\n */\n (e: 'input', inputValue: string): void;\n\n /**\n * Emitted when the \"clear search\" button is clicked\n */\n (e: 'clear'): void;\n\n /**\n * Emitted when the \"ESC\" key is pressed inside the Search Bar input\n */\n (e: 'escape-pressed'): void;\n\n /**\n * Emitted when the element has lost focus\n */\n (e: 'blur'): void;\n\n /**\n * Emitted when the element has received focus\n */\n (e: 'focus'): void;\n }>();\n\n provide(INPUT_FIELD_HINT_INJECTION_KEY, toRef(props, 'hint'));\n\n const attrs = useAttrs();\n const searchTerm = ref(props.value);\n const bentoInputField = ref<InstanceType<typeof BentoInputField> | null>();\n\n watch(\n () => props.value,\n () => {\n searchTerm.value = props.value;\n },\n { immediate: true }\n );\n\n const onClearSearch = () => {\n searchTerm.value = '';\n emit('clear');\n emit('input', '');\n };\n\n const debouncedEmit = debounce(() => {\n emit('input', searchTerm.value);\n }, props.debounceTime);\n\n const onInputEvent = (value: string) => {\n searchTerm.value = value;\n debouncedEmit();\n };\n\n const focus = () => {\n // bentoInputField.value?.focusInput();\n bentoInputField.value.focusInput();\n };\n\n // Expose method so that it can be used to focus on the input from outside the component\n defineExpose({\n /**\n * Focus on the input field when called.\n */\n focus,\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * Search functionality to help users find the desired data quicker.\n * When a user starts typing, the data is dynamically filtered to\n * only show the relevant results.\n *\n * Clearing the search field displays the entire list again.\n *\n * @example\n * import {\n * BentoSearchBar,\n * BentoSearchBarData,\n * useSearchBarFilter\n * } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoSearchBar },\n * template: `\n * <bento-search-bar\n * input-field-aria-label=\"Search bar\"\n * v-model=\"searchTerm\"\n * @input=\"onInput\"\n * @clear=\"onClearSearch\"\n * />\n * // Render the filtered data\n * {{ filteredData }}\n * `,\n * setup() {\n * const searchTerm = ref('');\n * const data = ref<BentoSearchBarData>([]);\n * const filteredData = useSearchBarFilter(searchTerm, data);\n *\n * consdt onInput = () => {}\n * consdt onClearSearch = () => {}\n *\n * return {\n * searchTerm,\n * filteredData,\n * onInput,\n * onClearSearch,\n * };\n * }\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./search-bar.scss\" />\n"],"names":["BentoSearchBarInternalEvent","BentoSearchBarInternalEvent2","BentoSearchBarEvent","BentoSearchBarEvent2","__default__","messages","t","useI18n","props","__props","emit","__emit","provide","INPUT_FIELD_HINT_INJECTION_KEY","toRef","attrs","useAttrs","searchTerm","ref","bentoInputField","watch","onClearSearch","debouncedEmit","debounce","onInputEvent","value","__expose"],"mappings":";;;;;;;;;AAAY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,QAAA,SACAA,EAAA,SAAA,kBACAA,EAAA,QAAA,SACAA,EAAA,SAAA,sBAJQA,IAAAD,KAAA,CAAA,CAAA,GAOAE,IAAA,kBAAAC,OACRA,EAAA,QAAA,gBACAA,EAAA,QAAA,gBACAA,EAAA,SAAA,sBAHQA,IAAAD,KAAA,CAAA,CAAA;;;;;;;;;;;;;;kCCyKRE,IAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;;;;;;;;AA/HA,UAAA,EAAA,GAAAC,EAAA,IAAAC,EAAA,EAAA,UAAAF,EAAA,CAAA,GAEAG,IAAAC,GASAC,IAAAC;AA2BA,IAAAC,EAAAC,GAAAC,EAAAN,GAAA,MAAA,CAAA;AAEA,UAAAO,IAAAC,EAAA,GACAC,IAAAC,EAAAV,EAAA,KAAA,GACAW,IAAAD,EAAA;AAEA,IAAAE;AAAA,MAAA,MAAAZ,EAAA;AAAA,MACgB,MAAA;AAER,QAAAS,EAAA,QAAAT,EAAA;AAAA,MAAyB;AAAA,MAC7B,EAAA,WAAA,GAAA;AAAA,IACkB;AAGtB,UAAAa,IAAA,MAAA;AACI,MAAAJ,EAAA,QAAA,IACAP,EAAA,OAAA,GACAA,EAAA,SAAA,EAAA;AAAA,IAAgB,GAGpBY,IAAAC,EAAA,MAAA;AACI,MAAAb,EAAA,SAAAO,EAAA,KAAA;AAAA,IAA8B,GAAAT,EAAA,YAAA,GAGlCgB,IAAA,CAAAC,MAAA;AACI,MAAAR,EAAA,QAAAQ,GACAH,EAAA;AAAA,IAAc;AASlB,WAAAI,EAAA;AAAA;AAAA;AAAA;AAAA,MAAa,OANb,MAAA;AAEI,QAAAP,EAAA,MAAA,WAAA;AAAA,MAAiC;AAAA,IAQjC,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/data-grid.js CHANGED
@@ -1,4 +1,4 @@
1
- import { g as e, d as o, a as r, b as n, f as i, e as B, c as d, B as s } from "./chunks/data-grid.Bi4JDhQD.js";
1
+ import { g as e, d as o, a as r, b as n, f as i, e as B, c as d, B as s } from "./chunks/data-grid.VBEJO94f.js";
2
2
  export {
3
3
  e as BentoColumnOverflow,
4
4
  o as BentoDataGrid,
@@ -1,4 +1,4 @@
1
- import { B as t, a as n } from "./chunks/date-range-picker.DkEoczJ0.js";
1
+ import { B as t, a as n } from "./chunks/date-range-picker.D7IwIR5V.js";
2
2
  import { C as o, a as i } from "./chunks/calendar.Tm7Cvpwu.js";
3
3
  export {
4
4
  t as BentoDateRangePicker,
@@ -1,4 +1,4 @@
1
- import { a, B as r, c as B, b as n, d as o } from "./chunks/filter-bar.DdSw_K3n.js";
1
+ import { a, B as r, c as B, b as n, d as o } from "./chunks/filter-bar.JXmlFnHV.js";
2
2
  export {
3
3
  a as BentoBaseFilter,
4
4
  r as BentoFilterBar,
@@ -1,4 +1,4 @@
1
- import { h as r } from "./chunks/header-with-views.DLAINkjk.js";
1
+ import { h as r } from "./chunks/header-with-views.Dg2usaMY.js";
2
2
  export {
3
3
  r as BentoHeaderWithViews
4
4
  };
package/dist/index.js CHANGED
@@ -10,9 +10,9 @@ import { B as le } from "./chunks/avatar.P2Fkz2I6.js";
10
10
  import { B as de, b as fe, a as ye } from "./chunks/button.DhcxX2GJ.js";
11
11
  import { c as xe, B as Te, a as ge } from "./chunks/card.GxkxfBoV.js";
12
12
  import { B as he } from "./chunks/dashed-underline.r62L_XBr.js";
13
- import { g as Ee, d as De, a as Ce, b as Ie, f as Oe, e as Le, c as Pe, B as Ne } from "./chunks/data-grid.Bi4JDhQD.js";
13
+ import { g as Ee, d as De, a as Ce, b as Ie, f as Oe, e as Le, c as Pe, B as Ne } from "./chunks/data-grid.VBEJO94f.js";
14
14
  import { B as Ve, a as Ge } from "./chunks/date-picker.OI-sQ232.js";
15
- import { B as Ae, a as ke } from "./chunks/date-range-picker.DkEoczJ0.js";
15
+ import { B as Ae, a as ke } from "./chunks/date-range-picker.D7IwIR5V.js";
16
16
  import { B as _e, u as je } from "./chunks/dropdown.KStrJVoP.js";
17
17
  import { B as Ue } from "./chunks/dropdown-default-textbox.MkU0tMf1.js";
18
18
  import { B as Ke } from "./chunks/divider.DnKNNyWB.js";
@@ -26,14 +26,14 @@ import { c as ut, B as pt } from "./chunks/currency.CBZMwm21.js";
26
26
  import { B as ct, a as dt } from "./chunks/date.DZvVL-uz.js";
27
27
  import { B as yt, b as St, c as xt, a as Tt } from "./chunks/empty-state.Be6M8ivH.js";
28
28
  import { f as bt } from "./chunks/file-uploader.By0MTfKk.js";
29
- import { a as vt, B as Et, c as Dt, b as Ct, d as It } from "./chunks/filter-bar.DdSw_K3n.js";
29
+ import { a as vt, B as Et, c as Dt, b as Ct, d as It } from "./chunks/filter-bar.JXmlFnHV.js";
30
30
  import { f as Lt, a as Pt, c as Nt, b as Ft } from "./chunks/form-layout-title.61ESsGAY.js";
31
- import { h as Gt } from "./chunks/header-with-views.DLAINkjk.js";
31
+ import { h as Gt } from "./chunks/header-with-views.Dg2usaMY.js";
32
32
  import { _ as At, B as kt, a as Mt } from "./chunks/image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js";
33
33
  import { B as jt } from "./chunks/info-icon.BhOm72U4.js";
34
- import { B as Ut, b as zt, e as Kt, c as Ht, d as Yt, a as qt } from "./chunks/input-field.Dm47icwU.js";
35
- import { i as Wt, m as Zt, r as Qt, b as Xt, c as $t, a as eo } from "./chunks/input-field-password.BGyFeRu0.js";
36
- import { i as oo, B as ao } from "./chunks/input-field-phone-number.DSvCOtqX.js";
34
+ import { B as Ut, b as zt, e as Kt, c as Ht, d as Yt, a as qt } from "./chunks/input-field.C29FCI4j.js";
35
+ import { i as Wt, m as Zt, r as Qt, b as Xt, c as $t, a as eo } from "./chunks/input-field-password.B6nJ7ygZ.js";
36
+ import { i as oo, B as ao } from "./chunks/input-field-phone-number.D_UBAN2s.js";
37
37
  import { B as ro } from "./chunks/inspector.BKP15cx6.js";
38
38
  import { B as io } from "./chunks/inspector.types.DyHwE18g.js";
39
39
  import { l as mo, a as uo } from "./chunks/layout-row.DVf7wNSB.js";
@@ -51,7 +51,7 @@ import { B as Zo } from "./chunks/popover.types.BFFy1ChU.js";
51
51
  import { p as Xo, B as $o, a as ea } from "./chunks/promo-banner.B-TLTLEd.js";
52
52
  import { b as oa, B as aa, a as na } from "./chunks/radio-group.DWNqrkZ3.js";
53
53
  import { r as sa } from "./chunks/rich-text-editor.Bh7KS617.js";
54
- import { B as Ba, b as ma, a as ua } from "./chunks/search-bar.CbNBCQnM.js";
54
+ import { B as Ba, b as ma, a as ua } from "./chunks/search-bar.RS02IcLc.js";
55
55
  import { s as la } from "./chunks/secondary-nav.DXsgUTqk.js";
56
56
  import { B as da } from "./chunks/segmented-control.BCHGDSrf.js";
57
57
  import { B as ya } from "./chunks/segmented-control.types.BHRLV8KU.js";
@@ -1,4 +1,4 @@
1
- import { i as a, m as s, r as i, b as c, c as u, a as o } from "./chunks/input-field-password.BGyFeRu0.js";
1
+ import { i as a, m as s, r as i, b as c, c as u, a as o } from "./chunks/input-field-password.B6nJ7ygZ.js";
2
2
  export {
3
3
  a as BentoInputFieldPassword,
4
4
  s as minLength,
@@ -1,4 +1,4 @@
1
- import { i as o, B as t } from "./chunks/input-field-phone-number.DSvCOtqX.js";
1
+ import { i as o, B as t } from "./chunks/input-field-phone-number.D_UBAN2s.js";
2
2
  export {
3
3
  o as BentoInputFieldPhoneNumber,
4
4
  t as BentoInputFieldPhoneNumberCountries
@@ -1,4 +1,4 @@
1
- import { B as n, b as a, e as o, c as i, d as s, a as l } from "./chunks/input-field.Dm47icwU.js";
1
+ import { B as n, b as a, e as o, c as i, d as s, a as l } from "./chunks/input-field.C29FCI4j.js";
2
2
  export {
3
3
  n as BentoInputField,
4
4
  a as BentoInputFieldElementPosition,
@@ -1,4 +1,4 @@
1
- import { B as r, b as t, a as B } from "./chunks/search-bar.CbNBCQnM.js";
1
+ import { B as r, b as t, a as B } from "./chunks/search-bar.RS02IcLc.js";
2
2
  import { u as o } from "./chunks/dropdown.KStrJVoP.js";
3
3
  export {
4
4
  r as BentoSearchBar,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "@adyen/bento-vue3",
4
- "version": "1.76.1",
4
+ "version": "1.76.2",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/bento-vue3",
3
- "version": "1.76.1",
3
+ "version": "1.76.2",
4
4
  "description": "Adyen Bento Vue 3 components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -45,7 +45,7 @@
45
45
  "unified": "11.0.5",
46
46
  "uuid": "11.0.5",
47
47
  "vue-demi": "0.14.10",
48
- "@adyen/bento-design-tokens": "1.76.1"
48
+ "@adyen/bento-design-tokens": "1.76.2"
49
49
  },
50
50
  "dependenciesMeta": {
51
51
  "@adyen/bento-vue-i18n-demi": {