@adyen/bento-vue2 1.6.0 → 1.6.1

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 (140) hide show
  1. package/dist/accordion.js +2 -2
  2. package/dist/alert.js +3 -3
  3. package/dist/assets/base-modal.css +1 -1
  4. package/dist/assets/index.css +1 -1
  5. package/dist/assets/index10.css +1 -1
  6. package/dist/assets/index11.css +1 -1
  7. package/dist/assets/index12.css +1 -1
  8. package/dist/assets/index13.css +1 -1
  9. package/dist/assets/index14.css +1 -1
  10. package/dist/assets/index15.css +1 -1
  11. package/dist/assets/index16.css +1 -1
  12. package/dist/assets/index17.css +1 -1
  13. package/dist/assets/index18.css +1 -1
  14. package/dist/assets/index19.css +1 -1
  15. package/dist/assets/index2.css +1 -1
  16. package/dist/assets/index20.css +1 -1
  17. package/dist/assets/index21.css +1 -1
  18. package/dist/assets/index22.css +1 -1
  19. package/dist/assets/index23.css +1 -1
  20. package/dist/assets/index24.css +1 -1
  21. package/dist/assets/index25.css +1 -1
  22. package/dist/assets/index26.css +1 -1
  23. package/dist/assets/index27.css +1 -1
  24. package/dist/assets/index28.css +1 -1
  25. package/dist/assets/index29.css +1 -1
  26. package/dist/assets/index3.css +1 -1
  27. package/dist/assets/index30.css +1 -1
  28. package/dist/assets/index31.css +1 -1
  29. package/dist/assets/index32.css +1 -1
  30. package/dist/assets/index33.css +1 -1
  31. package/dist/assets/index34.css +1 -1
  32. package/dist/assets/index35.css +1 -1
  33. package/dist/assets/index36.css +1 -1
  34. package/dist/assets/index37.css +1 -1
  35. package/dist/assets/index38.css +1 -1
  36. package/dist/assets/index39.css +1 -1
  37. package/dist/assets/index4.css +1 -1
  38. package/dist/assets/index40.css +1 -1
  39. package/dist/assets/index41.css +1 -1
  40. package/dist/assets/index42.css +1 -1
  41. package/dist/assets/index43.css +1 -1
  42. package/dist/assets/index44.css +1 -1
  43. package/dist/assets/index5.css +1 -1
  44. package/dist/assets/index6.css +1 -1
  45. package/dist/assets/index7.css +1 -1
  46. package/dist/assets/index8.css +1 -1
  47. package/dist/assets/index9.css +1 -1
  48. package/dist/avatar-image.js +1 -1
  49. package/dist/badge.js +1 -1
  50. package/dist/button.js +5 -5
  51. package/dist/card.js +86 -75
  52. package/dist/card.js.map +1 -1
  53. package/dist/checkbox.js +6 -6
  54. package/dist/chunks/{base-button.431fb8cf.js → base-button.d1ba66cd.js} +2 -2
  55. package/dist/chunks/{base-button.431fb8cf.js.map → base-button.d1ba66cd.js.map} +1 -1
  56. package/dist/chunks/{base-modal.f462dac0.js → base-modal.ec74044e.js} +4 -4
  57. package/dist/chunks/{base-modal.f462dac0.js.map → base-modal.ec74044e.js.map} +1 -1
  58. package/dist/chunks/{button.38099670.js → button.eb60d460.js} +2 -2
  59. package/dist/chunks/{button.38099670.js.map → button.eb60d460.js.map} +1 -1
  60. package/dist/chunks/{calendar.371e5ae2.js → calendar.b74f8a0f.js} +4 -4
  61. package/dist/chunks/{calendar.371e5ae2.js.map → calendar.b74f8a0f.js.map} +1 -1
  62. package/dist/chunks/{checkbox.b8c2e583.js → checkbox.96ee3f71.js} +3 -3
  63. package/dist/chunks/{checkbox.b8c2e583.js.map → checkbox.96ee3f71.js.map} +1 -1
  64. package/dist/chunks/{controls-group.d75f1d37.js → controls-group.e9537e45.js} +2 -2
  65. package/dist/chunks/{controls-group.d75f1d37.js.map → controls-group.e9537e45.js.map} +1 -1
  66. package/dist/chunks/{copy.8e44a660.js → copy.2ff56819.js} +3 -3
  67. package/dist/chunks/{copy.8e44a660.js.map → copy.2ff56819.js.map} +1 -1
  68. package/dist/chunks/{dropdown-default-textbox.6135874c.js → dropdown-default-textbox.3df0bf23.js} +2 -2
  69. package/dist/chunks/{dropdown-default-textbox.6135874c.js.map → dropdown-default-textbox.3df0bf23.js.map} +1 -1
  70. package/dist/chunks/{dropdown.5d22958c.js → dropdown.3f198167.js} +22 -22
  71. package/dist/chunks/{dropdown.5d22958c.js.map → dropdown.3f198167.js.map} +1 -1
  72. package/dist/chunks/{error-message.a04e8f9a.js → error-message.f5454f19.js} +2 -2
  73. package/dist/chunks/{error-message.a04e8f9a.js.map → error-message.f5454f19.js.map} +1 -1
  74. package/dist/chunks/{footer-actions.ee645663.js → footer-actions.00d20947.js} +3 -3
  75. package/dist/chunks/{footer-actions.ee645663.js.map → footer-actions.00d20947.js.map} +1 -1
  76. package/dist/chunks/{index.64cce50b.js → index.298f5eed.js} +6 -6
  77. package/dist/chunks/{index.64cce50b.js.map → index.298f5eed.js.map} +1 -1
  78. package/dist/chunks/{index.74da0d41.js → index.2fce7703.js} +2 -2
  79. package/dist/chunks/{index.74da0d41.js.map → index.2fce7703.js.map} +1 -1
  80. package/dist/chunks/{index.5d058912.js → index.31949c1a.js} +20 -20
  81. package/dist/chunks/{index.5d058912.js.map → index.31949c1a.js.map} +1 -1
  82. package/dist/chunks/{index.fd557233.js → index.a709a6b0.js} +2 -2
  83. package/dist/chunks/{index.fd557233.js.map → index.a709a6b0.js.map} +1 -1
  84. package/dist/chunks/{index.74258013.js → index.c39c64c9.js} +2 -2
  85. package/dist/chunks/{index.74258013.js.map → index.c39c64c9.js.map} +1 -1
  86. package/dist/chunks/{index.98b6db0e.js → index.eb52e785.js} +3 -3
  87. package/dist/chunks/{index.98b6db0e.js.map → index.eb52e785.js.map} +1 -1
  88. package/dist/chunks/{listbox-option-tag.a651fa46.js → listbox-option-tag.1362a2d7.js} +3 -3
  89. package/dist/chunks/{listbox-option-tag.a651fa46.js.map → listbox-option-tag.1362a2d7.js.map} +1 -1
  90. package/dist/chunks/{listbox.cbb27077.js → listbox.e7bf46e4.js} +4 -4
  91. package/dist/chunks/{listbox.cbb27077.js.map → listbox.e7bf46e4.js.map} +1 -1
  92. package/dist/chunks/{loading-button.21c48d50.js → loading-button.0ad06c99.js} +2 -2
  93. package/dist/chunks/{loading-button.21c48d50.js.map → loading-button.0ad06c99.js.map} +1 -1
  94. package/dist/chunks/{tooltip.ca9673ee.js → tooltip.68e81e9c.js} +2 -2
  95. package/dist/chunks/{tooltip.ca9673ee.js.map → tooltip.68e81e9c.js.map} +1 -1
  96. package/dist/code-snippet.js +7 -7
  97. package/dist/code-snippet.js.map +1 -1
  98. package/dist/country.js +2 -2
  99. package/dist/currency.js +1 -1
  100. package/dist/data-grid.js +7 -7
  101. package/dist/date-picker.js +20 -20
  102. package/dist/date-range-picker.js +2 -2
  103. package/dist/date.js +1 -1
  104. package/dist/divider.js +1 -1
  105. package/dist/dropdown.js +4 -4
  106. package/dist/empty-state.js +3 -3
  107. package/dist/filter-bar.js +13 -13
  108. package/dist/focus-trap.js +1 -1
  109. package/dist/form-layout.js +65 -60
  110. package/dist/form-layout.js.map +1 -1
  111. package/dist/header.js +2 -2
  112. package/dist/index.js +12 -12
  113. package/dist/info-icon.js +2 -2
  114. package/dist/input-field.js +4 -4
  115. package/dist/internal.js +8 -8
  116. package/dist/link.js +2 -2
  117. package/dist/loading-indicator.js +1 -1
  118. package/dist/menu.js +4 -4
  119. package/dist/modal.js +3 -3
  120. package/dist/pagination.js +4 -4
  121. package/dist/payment-method.js +2 -2
  122. package/dist/popover.js +3 -3
  123. package/dist/popper-container.js +2 -2
  124. package/dist/radio-group.js +4 -4
  125. package/dist/search-bar.js +2 -2
  126. package/dist/segmented-control.js +4 -4
  127. package/dist/sidepanel.js +5 -5
  128. package/dist/status.js +2 -2
  129. package/dist/stepper.js +3 -3
  130. package/dist/structured-list.js +1 -1
  131. package/dist/summary-grid.js +3 -3
  132. package/dist/tabs.js +2 -2
  133. package/dist/tag.js +3 -3
  134. package/dist/textarea.js +4 -4
  135. package/dist/timeline.js +5 -5
  136. package/dist/toast.js +3 -3
  137. package/dist/toggle.js +2 -2
  138. package/dist/typography.js +1 -1
  139. package/dist/web-types.json +9 -1
  140. package/package.json +2 -2
@@ -3,37 +3,37 @@ import { defineComponent as x, useSlots as qe, useAttrs as je, computed as r, re
3
3
  import { BentoPopover as de } from "./popover.js";
4
4
  import { u as G } from "./chunks/i18n.155748d6.js";
5
5
  import { g as ie } from "./chunks/unique-id.a2a2b458.js";
6
- import { B as ae, d as Ge } from "./chunks/index.74da0d41.js";
6
+ import { B as ae, d as Ge } from "./chunks/index.2fce7703.js";
7
7
  import { u as he } from "./chunks/aria-label.ac9651a5.js";
8
- import { B as Ce, a as fe } from "./chunks/base-button.431fb8cf.js";
8
+ import { B as Ce, a as fe } from "./chunks/base-button.d1ba66cd.js";
9
9
  import { g as ge } from "./chunks/get-slot-text.c1114034.js";
10
10
  import { u as Se } from "./chunks/use-has-slot.6052d56a.js";
11
11
  import { a as Be, C as Ae } from "./chunks/chevron-up.674ec2e5.js";
12
- import { B as Ze } from "./chunks/tooltip.ca9673ee.js";
12
+ import { B as Ze } from "./chunks/tooltip.68e81e9c.js";
13
13
  import { B as We } from "./chunks/directive.0408e565.js";
14
14
  import { BentoRadioGroup as Qe } from "./radio-group.js";
15
15
  import { BentoInputField as De } from "./input-field.js";
16
16
  import { BentoSearchBar as le, BentoSearchBarEvent as W } from "./search-bar.js";
17
17
  import { u as Xe } from "./chunks/toastController.0e01443d.js";
18
18
  import { BentoModal as et } from "./modal.js";
19
- import { e as tt } from "./chunks/base-modal.f462dac0.js";
20
- import { a as lt } from "./chunks/button.38099670.js";
21
- import { B as at, u as Te } from "./chunks/dropdown.5d22958c.js";
22
- import { g as nt } from "./chunks/index.74258013.js";
19
+ import { e as tt } from "./chunks/base-modal.ec74044e.js";
20
+ import { a as lt } from "./chunks/button.eb60d460.js";
21
+ import { B as at, u as Te } from "./chunks/dropdown.3f198167.js";
22
+ import { g as nt } from "./chunks/index.c39c64c9.js";
23
23
  import { BentoDivider as Ee } from "./divider.js";
24
24
  import { BentoDatePicker as st } from "./date-picker.js";
25
- import { f as K } from "./chunks/index.fd557233.js";
25
+ import { f as K } from "./chunks/index.a709a6b0.js";
26
26
  import { e as Y, d as Pe, f as $e } from "./chunks/index.f55fdc32.js";
27
- import { a as ot, i as rt } from "./chunks/calendar.371e5ae2.js";
28
- import { B as it, D as ut, i as _e } from "./chunks/index.5d058912.js";
27
+ import { a as ot, i as rt } from "./chunks/calendar.b74f8a0f.js";
28
+ import { B as it, D as ut, i as _e } from "./chunks/index.31949c1a.js";
29
29
  import { BentoButtonActions as ct } from "./button.js";
30
30
  import { D as be } from "./chunks/date-input.9186a0bf.js";
31
- import { b as dt } from "./chunks/listbox.cbb27077.js";
32
- import { B as ft, L as xe } from "./chunks/listbox-option-tag.a651fa46.js";
31
+ import { b as dt } from "./chunks/listbox.e7bf46e4.js";
32
+ import { B as ft, L as xe } from "./chunks/listbox-option-tag.1362a2d7.js";
33
33
  import { BentoCountry as _t } from "./country.js";
34
34
  import { u as bt } from "./chunks/useCountryItems.5d7b436e.js";
35
35
  import { BentoPaymentMethod as vt } from "./payment-method.js";
36
- import "./assets/index42.css";
36
+ import "./assets/index41.css";
37
37
  const pt = {}, yt = /* @__PURE__ */ x({
38
38
  ...pt,
39
39
  __name: "filter-bar-button",
@@ -1,4 +1,4 @@
1
- import { B as a } from "./chunks/index.74258013.js";
1
+ import { B as a } from "./chunks/index.c39c64c9.js";
2
2
  export {
3
3
  a as BentoFocusTrap
4
4
  };
@@ -1,12 +1,12 @@
1
- import { defineComponent as _, useSlots as p, computed as a, provide as v, toRef as f, onMounted as g, ref as h } from "vue";
1
+ import { defineComponent as _, useSlots as p, computed as a, provide as g, toRef as f, onMounted as h, ref as L } from "vue";
2
2
  import { BentoAlert as d } from "./alert.js";
3
3
  import { u as m } from "./chunks/use-has-slot.6052d56a.js";
4
- import { F as L } from "./chunks/form-layout.types.a7a1438d.js";
4
+ import { F as b } from "./chunks/form-layout.types.a7a1438d.js";
5
5
  import { n as l } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
6
- import { B as u, c as b } from "./chunks/index.74da0d41.js";
7
- import "./assets/index40.css";
8
- const C = {}, $ = /* @__PURE__ */ _({
9
- ...C,
6
+ import { B as u, c as C } from "./chunks/index.2fce7703.js";
7
+ import "./assets/index38.css";
8
+ const B = {}, $ = /* @__PURE__ */ _({
9
+ ...B,
10
10
  __name: "form-layout",
11
11
  props: {
12
12
  /**
@@ -20,27 +20,27 @@ const C = {}, $ = /* @__PURE__ */ _({
20
20
  loading: { type: Boolean, default: !1 }
21
21
  },
22
22
  setup(o) {
23
- const t = o, s = p(), e = m(s), r = a(() => t.form ? "form" : "div"), n = a(() => e("actions-left") || e("actions-right"));
24
- return v(L, f(t, "loading")), { __sfc: !0, slots: s, hasSlot: e, props: t, formLayoutElement: r, hasActions: n, BentoAlert: d };
23
+ const t = o, e = p(), s = m(e), n = a(() => t.form ? "form" : "div"), r = a(() => s("actions-left") || s("actions-right"));
24
+ return g(b, f(t, "loading")), { __sfc: !0, slots: e, hasSlot: s, props: t, formLayoutElement: n, hasActions: r, BentoAlert: d };
25
25
  }
26
26
  });
27
- var B = function() {
28
- var t = this, s = t._self._c, e = t._self._setupProxy;
29
- return s(e.formLayoutElement, { tag: "component", staticClass: "b-form-layout", attrs: { role: "form" } }, [e.hasSlot("error-message") ? s(e.BentoAlert, { staticClass: "b-form-layout__error-message", attrs: { type: "critical" }, scopedSlots: t._u([{ key: "description", fn: function() {
27
+ var F = function() {
28
+ var t = this, e = t._self._c, s = t._self._setupProxy;
29
+ return e(s.formLayoutElement, { tag: "component", staticClass: "b-form-layout", attrs: { role: "form" } }, [s.hasSlot("error-message") ? e(s.BentoAlert, { staticClass: "b-form-layout__error-message", attrs: { type: "critical" }, scopedSlots: t._u([{ key: "description", fn: function() {
30
30
  return [t._t("error-message")];
31
- }, proxy: !0 }], null, !0) }) : t._e(), t._t("default"), e.hasActions ? s("div", { staticClass: "b-form-layout__actions-container" }, [s("div", { staticClass: "b-form-layout__actions" }, [t._t("actions-left")], 2), s("div", { staticClass: "b-form-layout__actions" }, [t._t("actions-right")], 2)]) : t._e()], 2);
32
- }, F = [], T = /* @__PURE__ */ l(
31
+ }, proxy: !0 }], null, !0) }) : t._e(), t._t("default"), s.hasActions ? e("div", { staticClass: "b-form-layout__actions-container" }, [e("div", { staticClass: "b-form-layout__actions" }, [t._t("actions-left")], 2), e("div", { staticClass: "b-form-layout__actions" }, [t._t("actions-right")], 2)]) : t._e()], 2);
32
+ }, T = [], x = /* @__PURE__ */ l(
33
33
  $,
34
- B,
35
34
  F,
35
+ T,
36
36
  !1,
37
37
  null,
38
38
  "178aebc7",
39
39
  null,
40
40
  null
41
41
  );
42
- const W = T.exports, x = ["warning", "critical", "highlight", "success"], S = {}, A = /* @__PURE__ */ _({
43
- ...S,
42
+ const Z = x.exports, S = ["warning", "critical", "highlight", "success"], A = {}, O = /* @__PURE__ */ _({
43
+ ...A,
44
44
  __name: "form-layout-field-tip",
45
45
  props: {
46
46
  /**
@@ -50,29 +50,29 @@ const W = T.exports, x = ["warning", "critical", "highlight", "success"], S = {}
50
50
  type: {
51
51
  type: String,
52
52
  default: "highlight",
53
- validator: (o) => x.includes(o)
53
+ validator: (o) => S.includes(o)
54
54
  }
55
55
  },
56
56
  setup(o) {
57
57
  return { __sfc: !0, BentoAlert: d };
58
58
  }
59
59
  });
60
- var O = function() {
61
- var t = this, s = t._self._c, e = t._self._setupProxy;
62
- return s("div", { staticClass: "b-form-layout-field-tip" }, [t._t("default"), s(e.BentoAlert, { attrs: { variant: "tip", type: t.type }, scopedSlots: t._u([{ key: "description", fn: function() {
60
+ var E = function() {
61
+ var t = this, e = t._self._c, s = t._self._setupProxy;
62
+ return e("div", { staticClass: "b-form-layout-field-tip" }, [t._t("default"), e(s.BentoAlert, { attrs: { variant: "tip", type: t.type }, scopedSlots: t._u([{ key: "description", fn: function() {
63
63
  return [t._t("message")];
64
64
  }, proxy: !0 }], null, !0) })], 2);
65
- }, E = [], G = /* @__PURE__ */ l(
66
- A,
65
+ }, G = [], P = /* @__PURE__ */ l(
67
66
  O,
68
67
  E,
68
+ G,
69
69
  !1,
70
70
  null,
71
71
  "52686d0f",
72
72
  null,
73
73
  null
74
74
  );
75
- const X = G.exports, i = [
75
+ const tt = P.exports, i = [
76
76
  "100",
77
77
  "50",
78
78
  "33",
@@ -83,21 +83,26 @@ const X = G.exports, i = [
83
83
  "25-75",
84
84
  "50-50",
85
85
  "33-33-33"
86
- ], P = 100, R = (o, t) => {
87
- const s = (r) => {
88
- var n;
89
- return (n = r.split) == null ? void 0 : n.call(r, "-").map((c) => parseInt(c, 10));
90
- }, e = a(
91
- () => i.includes(o.value) ? s(o.value) : P
86
+ ], R = 100;
87
+ function I(o, t, e) {
88
+ o.parentNode.insertBefore(t, o), t.appendChild(o), t.classList.add(e);
89
+ }
90
+ const N = (o, t) => {
91
+ const e = (n) => {
92
+ var r;
93
+ return (r = n.split) == null ? void 0 : r.call(n, "-").map((c) => parseInt(c, 10));
94
+ }, s = a(
95
+ () => i.includes(o.value) ? e(o.value) : R
92
96
  );
93
- g(() => {
94
- const r = t.value.classList[0];
95
- t.value.querySelectorAll(`.${r} > *`).forEach((c, y) => {
96
- c.classList.add(`${r}--${e.value[y] || "100"}`);
97
+ h(() => {
98
+ const n = t.value.classList[0];
99
+ t.value.querySelectorAll(`.${n} > *`).forEach((c, y) => {
100
+ const v = `${n}--${s.value[y] || "100"}`;
101
+ I(c, document.createElement("div"), v);
97
102
  });
98
103
  });
99
- }, I = {}, N = /* @__PURE__ */ _({
100
- ...I,
104
+ }, w = {}, k = /* @__PURE__ */ _({
105
+ ...w,
101
106
  __name: "form-layout-group",
102
107
  props: {
103
108
  /**
@@ -130,31 +135,31 @@ const X = G.exports, i = [
130
135
  }
131
136
  },
132
137
  setup(o) {
133
- const t = o, s = h(null);
134
- R(f(t, "layout"), s);
135
- const e = a(() => ({
138
+ const t = o, e = L(null);
139
+ N(f(t, "layout"), e);
140
+ const s = a(() => ({
136
141
  // Transform into column if the layout is unsopprted
137
142
  // "form-layout.scss" depends on this class
138
143
  "b-form-layout-group--column": !i.includes(t.layout)
139
144
  }));
140
- return { __sfc: !0, props: t, formLayoutGroup: s, conditionalClasses: e };
145
+ return { __sfc: !0, props: t, formLayoutGroup: e, conditionalClasses: s };
141
146
  }
142
147
  });
143
- var k = function() {
144
- var t = this, s = t._self._c, e = t._self._setupProxy;
145
- return s("div", { ref: "formLayoutGroup", staticClass: "b-form-layout-group", class: e.conditionalClasses }, [t._t("default")], 2);
146
- }, q = [], w = /* @__PURE__ */ l(
147
- N,
148
+ var q = function() {
149
+ var t = this, e = t._self._c, s = t._self._setupProxy;
150
+ return e("div", { ref: "formLayoutGroup", staticClass: "b-form-layout-group", class: s.conditionalClasses }, [t._t("default")], 2);
151
+ }, D = [], M = /* @__PURE__ */ l(
148
152
  k,
149
153
  q,
154
+ D,
150
155
  !1,
151
156
  null,
152
157
  "ccb524d7",
153
158
  null,
154
159
  null
155
160
  );
156
- const Z = w.exports, D = {}, M = /* @__PURE__ */ _({
157
- ...D,
161
+ const et = M.exports, U = {}, Y = /* @__PURE__ */ _({
162
+ ...U,
158
163
  __name: "form-layout-title",
159
164
  props: {
160
165
  /**
@@ -173,34 +178,34 @@ const Z = w.exports, D = {}, M = /* @__PURE__ */ _({
173
178
  el: {
174
179
  type: u.props.el.type,
175
180
  required: !0,
176
- validator: (o) => Object.values(b).includes(o)
181
+ validator: (o) => Object.values(C).includes(o)
177
182
  }
178
183
  },
179
184
  setup(o) {
180
- const t = o, s = p(), e = a(() => !t.subsection), r = m(s), n = a(() => ({
185
+ const t = o, e = p(), s = a(() => !t.subsection), n = m(e), r = a(() => ({
181
186
  "b-form-layout-title--subsection": t.subsection
182
187
  }));
183
- return { __sfc: !0, slots: s, props: t, isSection: e, hasSlot: r, conditionalClasses: n, BentoTypography: u };
188
+ return { __sfc: !0, slots: e, props: t, isSection: s, hasSlot: n, conditionalClasses: r, BentoTypography: u };
184
189
  }
185
190
  });
186
- var U = function() {
187
- var t = this, s = t._self._c, e = t._self._setupProxy;
188
- return s("div", { staticClass: "b-form-layout-title", class: e.conditionalClasses }, [s(e.BentoTypography, { attrs: { el: t.el, variant: "title", medium: e.isSection } }, [t._t("default")], 2), e.hasSlot("description") ? s(e.BentoTypography, { staticClass: "b-form-layout-title__description", attrs: { el: "span", wide: "" } }, [t._t("description")], 2) : t._e()], 1);
189
- }, Y = [], j = /* @__PURE__ */ l(
190
- M,
191
- U,
191
+ var j = function() {
192
+ var t = this, e = t._self._c, s = t._self._setupProxy;
193
+ return e("div", { staticClass: "b-form-layout-title", class: s.conditionalClasses }, [e(s.BentoTypography, { attrs: { el: t.el, variant: "title", medium: s.isSection } }, [t._t("default")], 2), s.hasSlot("description") ? e(s.BentoTypography, { staticClass: "b-form-layout-title__description", attrs: { el: "span", wide: "" } }, [t._t("description")], 2) : t._e()], 1);
194
+ }, z = [], H = /* @__PURE__ */ l(
192
195
  Y,
196
+ j,
197
+ z,
193
198
  !1,
194
199
  null,
195
200
  "03648a9d",
196
201
  null,
197
202
  null
198
203
  );
199
- const tt = j.exports;
204
+ const st = H.exports;
200
205
  export {
201
- W as BentoFormLayout,
202
- X as BentoFormLayoutFieldTip,
203
- Z as BentoFormLayoutGroup,
204
- tt as BentoFormLayoutTitle
206
+ Z as BentoFormLayout,
207
+ tt as BentoFormLayoutFieldTip,
208
+ et as BentoFormLayoutGroup,
209
+ st as BentoFormLayoutTitle
205
210
  };
206
211
  //# sourceMappingURL=form-layout.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"form-layout.js","sources":["../src/components/form-layout/form-layout.vue","../src/components/form-layout/components/form-layout-field-tip/form-layout-tip.types.ts","../src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue","../src/components/form-layout/components/form-layout-group/form-layout-group.types.ts","../src/components/form-layout/components/form-layout-group/composable/use-form-layout-group-percentage.ts","../src/components/form-layout/components/form-layout-group/form-layout-group.vue","../src/components/form-layout/components/form-layout-title/form-layout-title.vue"],"sourcesContent":["<template>\n <component :is=\"formLayoutElement\" class=\"b-form-layout\" role=\"form\">\n <bento-alert v-if=\"hasSlot('error-message')\" class=\"b-form-layout__error-message\" type=\"critical\">\n <template #description>\n <slot name=\"error-message\" />\n </template>\n </bento-alert>\n\n <slot />\n\n <div v-if=\"hasActions\" class=\"b-form-layout__actions-container\">\n <div class=\"b-form-layout__actions\">\n <slot name=\"actions-left\" />\n </div>\n\n <div class=\"b-form-layout__actions\">\n <slot name=\"actions-right\" />\n </div>\n </div>\n </component>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, provide, toRef, useSlots } from 'vue';\n import { BentoAlert } from '@/components/alert';\n import { useHasSlot } from '@/composables';\n import { FORM_LAYOUT_LOADING_INJECTION_KEY } from './form-layout.types';\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const props = defineProps({\n /**\n * Renders the form layout as an HTML `form`\n */\n form: { type: Boolean, default: false },\n\n /**\n * Sets the state of the form and its fields to\n * a read only status.\n */\n loading: { type: Boolean, default: false },\n });\n\n const formLayoutElement = computed(() => (props.form ? 'form' : 'div'));\n const hasActions = computed(() => hasSlot('actions-left') || hasSlot('actions-right'));\n\n provide(FORM_LAYOUT_LOADING_INJECTION_KEY, toRef(props, 'loading'));\n</script>\n\n<script lang=\"ts\">\n /**\n * Form layout component is a pre-designed layout that serves\n * as a starting point for creating a form.\n *\n * It can include various common form components:\n * input field, dropdown, date picker, checkbox group, radio group,\n * textarea, etc.\n *\n * Form layout is context agnostic and can be dropped in different\n * places, for example in modals, side panels or pages.\n *\n * @example\n * import { BentoFormLayout, BentoFormLayoutFieldTip } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayout, BentoFormLayoutFieldTip },\n * template: `\n * <bento-form-layout>\n * <template #error-message>There is an error. Correct the highlighted field.</template>\n *\n * <bento-input-field>Input field</bento-input-field>\n *\n * <bento-form-layout-field-tip>\n * <bento-dropdown label=\"Dropdown\" :items=\"dropdownItems\" placeholder=\"Select an animal\" />\n * <template #message>This is a small tip that can be used in small spaces</template>\n * </bento-form-layout-field-tip>\n *\n * <bento-form-layout-title subsection>\n * Section title\n * <template #description>Optional section description</template>\n * </bento-form-layout-title>\n * </bento-form-layout>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout.scss\" />\n","import { BentoAlertTypeOption } from '@/components/alert/alert.types';\n\nexport type BentoFormLayoutFieldTipTypeOption = `${BentoAlertTypeOption}`;\nexport const BentoFormLayoutFieldTipTypeOptions = ['warning', 'critical', 'highlight', 'success'];\n","<template>\n <div class=\"b-form-layout-field-tip\">\n <slot />\n <bento-alert variant=\"tip\" :type=\"type\">\n <template #description>\n <slot name=\"message\" />\n </template>\n </bento-alert>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { PropType } from 'vue';\n import { BentoFormLayoutFieldTipTypeOption, BentoFormLayoutFieldTipTypeOptions } from './form-layout-tip.types';\n import { BentoAlert } from '@/components/alert';\n\n defineProps({\n /**\n * Type of a alert; set a distinctive icon and color. Defaults to highlight.\n * @values highlight, success, critical, warning\n */\n type: {\n type: String as PropType<BentoFormLayoutFieldTipTypeOption>,\n default: 'highlight',\n validator: (value: BentoFormLayoutFieldTipTypeOption) => BentoFormLayoutFieldTipTypeOptions.includes(value),\n },\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * You can help users provide accurate and well formatted information\n * by using various elements that come with an input field.\n *\n * Use description/supporting text to add additional context to the\n * field or guidance how to format the input correctly.\n * Because description is always visible it should be the first\n * choice in providing guidance.\n *\n * @example\n * import { BentoFormLayoutFieldTip } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutFieldTip },\n * template: `\n * <bento-form-layout-field-tip>\n * <bento-dropdown label=\"Dropdown\" :items=\"dropdownItems\" placeholder=\"Select an animal\" />\n *\n * <template #message>This is a small tip that can be used in small spaces</template>\n * </bento-form-layout-field-tip>\n * `\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-field-tip.scss\" />\n","export type BentoLayoutGroupProportions =\n | '33-33-33'\n | '50-50'\n | '25-75'\n | '75-25'\n | '33-66'\n | '66-33'\n | '25'\n | '33'\n | '50'\n | '100';\n\nexport const BentoLayoutGroupProportions = [\n '100',\n '50',\n '33',\n '25',\n '66-33',\n '33-66',\n '75-25',\n '25-75',\n '50-50',\n '33-33-33',\n];\n","import { computed, onMounted, Ref } from 'vue';\nimport { BentoLayoutGroupProportions } from '../form-layout-group.types';\n\nconst DEFAULT_PROPORTION = 100;\n\n/**\n * Calculates the CSS classes based on the percentage\n * for each one of the layouts in format `##-##` or `##`.\n *\n * It receives a layout of type @see BentoLayoutGroupProportions to\n * generate the class and apply it to the children of the @see BentoFormLayoutGroup component\n *\n * @param {Ref<BentoLayoutGroupProportions>} layoutProp Layout string in the format `##` or `##-##`\n * @param {Ref<HTMLElement>} formLayoutGroupRef Reference to an HTML element of type BentoFormLayoutGroup\n */\nexport const useFormLayoutGroupPercentage = (\n layoutProp: Ref<BentoLayoutGroupProportions>,\n formLayoutGroupRef: Ref<HTMLElement>\n) => {\n // Split the `##-##` format into individual values [##, ##]\n const getLayoutValues = layout => layout.split?.('-').map(value => parseInt(value, 10));\n // Split the values only if the are in BentoLayoutGroupProportions, otherwise return 100%\n const layout = computed(() =>\n BentoLayoutGroupProportions.includes(layoutProp.value) ? getLayoutValues(layoutProp.value) : DEFAULT_PROPORTION\n );\n\n onMounted(() => {\n // Apply class to every immediate child\n const layoutClassName = formLayoutGroupRef.value.classList[0];\n const immediateChildren = formLayoutGroupRef.value.querySelectorAll(`.${layoutClassName} > *`); // Get immediate children\n immediateChildren.forEach((child, index) => {\n child.classList.add(`${layoutClassName}--${layout.value[index] || '100'}`); // 100% default\n });\n });\n};\n","<template>\n <div ref=\"formLayoutGroup\" class=\"b-form-layout-group\" :class=\"conditionalClasses\">\n <slot></slot>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, PropType, ref, toRef } from 'vue';\n import { useFormLayoutGroupPercentage } from './composable/use-form-layout-group-percentage';\n import { BentoLayoutGroupProportions } from './form-layout-group.types';\n\n const props = defineProps({\n /**\n * The layout of the pair group of components.\n * This will render the components within the width of the proportions.\n * Only two colums are available.\n *\n * If only one value is entered, then it will assume there's only one child in the group.\n * If two values are entered, the first value will be use for the first child and the second\n * value for the second child.\n *\n * If the value entered is not listed in the example\n * list below it will use 100% by default.\n * @example\n * '33-33-33'\n * '50-50'\n * '25-75'\n * '75-25'\n * '33-66'\n * '66-33'\n * '25'\n * '33'\n * '50'\n * '100'\n */\n layout: {\n type: String as PropType<BentoLayoutGroupProportions>,\n default: '100',\n validator: (value: BentoLayoutGroupProportions) => BentoLayoutGroupProportions.includes(value),\n },\n });\n\n const formLayoutGroup = ref(null);\n useFormLayoutGroupPercentage(toRef(props, 'layout'), formLayoutGroup);\n\n const conditionalClasses = computed(() => ({\n // Transform into column if the layout is unsopprted\n // \"form-layout.scss\" depends on this class\n 'b-form-layout-group--column': !BentoLayoutGroupProportions.includes(props.layout),\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * Use to provide horizontal layouts to build forms\n * with two fields per line.\n *\n * These can be used for field combinations,\n * such as post code and city or title and first name.\n *\n * @example\n * import { BentoFormLayoutGroup } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutGroup },\n * template: `\n * <bento-form-layout-group>\n * <first-element />\n * <second-element />\n * </bento-form-layout-group>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-group.scss\" />\n","<template>\n <div class=\"b-form-layout-title\" :class=\"conditionalClasses\">\n <bento-typography :el=\"el\" variant=\"title\" :medium=\"isSection\">\n <slot />\n </bento-typography>\n\n <bento-typography v-if=\"hasSlot('description')\" class=\"b-form-layout-title__description\" el=\"span\" wide>\n <slot name=\"description\" />\n </bento-typography>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, useSlots } from 'vue';\n import { BentoTypography, BentoTypographyElement } from '@/components/typography';\n import { useHasSlot } from '@/composables';\n\n const slots = useSlots();\n\n const props = defineProps({\n /**\n * Defines if the Form Layout title is\n * a \"section\" or a \"subsection\".\n * Default is \"section\" (false). Turn into \"true\" for \"subsection\"\n */\n subsection: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the HTML DOM element.\n * @values h1, h2, h3, h4, h5, h6, div, p, span\n */\n el: {\n type: BentoTypography.props.el.type,\n required: true,\n validator: (value: BentoTypographyElement) => Object.values(BentoTypographyElement).includes(value),\n },\n });\n\n // Uses \"medium\" typography if it is a section title\n const isSection = computed(() => !props.subsection);\n const hasSlot = useHasSlot(slots);\n const conditionalClasses = computed(() => ({\n 'b-form-layout-title--subsection': props.subsection,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * If you’re building a lengthy form, organise related\n * fields into sections and, if needed, subsections.\n *\n * A form can have a \"Section Title\" and multiple \"Subsection titles\".\n *\n * One of the values provided in @see BentoTypographyElement must always be provided as a string\n * to define correct HTML sementic from the application's context\n *\n * @example\n * import { BentoFormLayoutTitle } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutTitle },\n * template: `\n * <bento-form-layout-title subsection el=\"h2\">\n * Title\n * <template #description>Description text</template>\n * </bento-form-layout-title>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-title.scss\" />\n"],"names":["__default__$3","slots","useSlots","hasSlot","useHasSlot","formLayoutElement","computed","props","hasActions","provide","FORM_LAYOUT_LOADING_INJECTION_KEY","toRef","BentoFormLayoutFieldTipTypeOptions","__default__$2","BentoLayoutGroupProportions","DEFAULT_PROPORTION","useFormLayoutGroupPercentage","layoutProp","formLayoutGroupRef","getLayoutValues","layout2","_a","value","layout","onMounted","layoutClassName","child","index","__default__$1","formLayoutGroup","ref","conditionalClasses","__default__","isSection"],"mappings":";;;;;;;AAsFI,MAAAA,IAAA,CAAA;;;;;;;;;;;;;;;iBA1DAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAeAI,IAAAC,EAAA,MAAAC,EAAA,OAAA,SAAA,KAAA,GACAC,IAAAF,EAAA,MAAAH,EAAA,cAAA,KAAAA,EAAA,eAAA,CAAA;AAEA,WAAAM,EAAAC,GAAAC,EAAAJ,GAAA,SAAA,CAAA;;;;;;;;;;;;;;;;;;qBC5CGK,IAAA,CAAA,WAAA,YAAA,aAAA,SAAA,GCiDHC,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBCxCGC,IAAA;AAAA,EAAoC;AAAA,EACvC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAEJ,GCpBAC,IAAA,KAYaC,IAAA,CAAAC,GAAAC,MAAA;AAKT,QAAAC,IAAA,CAAAC,MAAA;;AAAA,YAAAC,IAAAD,EAAA,UAAA,gBAAAC,EAAA,KAAAD,GAAA,KAAA,IAAA,CAAAE,MAAA,SAAAA,GAAA,EAAA;AAAA,KAEAC,IAAAjB;AAAA,IAAe,MAAAQ,EAAA,SAAAG,EAAA,KAAA,IAAAE,EAAAF,EAAA,KAAA,IAAAF;AAAA,EACkF;AAGjG,EAAAS,EAAA,MAAA;AAEI,UAAAC,IAAAP,EAAA,MAAA,UAAA,CAAA;AAEA,IADAA,EAAA,MAAA,iBAAA,IAAAO,OAAA,EACA,QAAA,CAAAC,GAAAC,MAAA;AACI,MAAAD,EAAA,UAAA,IAAA,GAAAD,MAAAF,EAAA,MAAAI,CAAA,KAAA,OAAA;AAAA,IAAyE,CAAA;AAAA,EAC5E,CAAA;AAET,GCuCIC,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA/BAC,IAAAC,EAAA,IAAA;AACA,IAAAd,EAAAL,EAAAJ,GAAA,QAAA,GAAAsB,CAAA;AAEA,UAAAE,IAAAzB,EAAA,OAAA;AAAA;AAAA;AAAA,MAA2C,+BAAA,CAAAQ,EAAA,SAAAP,EAAA,MAAA;AAAA,IAG0C,EAAA;;;;;;;;;;;;;;;;;qBCwBrFyB,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;iBAvDA/B,IAAAC,EAAA,GAyBA+B,IAAA3B,EAAA,MAAA,CAAAC,EAAA,UAAA,GACAJ,IAAAC,EAAAH,CAAA,GACA8B,IAAAzB,EAAA,OAAA;AAAA,MAA2C,mCAAAC,EAAA;AAAA,IACE,EAAA;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"form-layout.js","sources":["../src/components/form-layout/form-layout.vue","../src/components/form-layout/components/form-layout-field-tip/form-layout-tip.types.ts","../src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue","../src/components/form-layout/components/form-layout-group/form-layout-group.types.ts","../src/components/form-layout/components/form-layout-group/composable/use-form-layout-group-percentage.ts","../src/components/form-layout/components/form-layout-group/form-layout-group.vue","../src/components/form-layout/components/form-layout-title/form-layout-title.vue"],"sourcesContent":["<template>\n <component :is=\"formLayoutElement\" class=\"b-form-layout\" role=\"form\">\n <bento-alert v-if=\"hasSlot('error-message')\" class=\"b-form-layout__error-message\" type=\"critical\">\n <template #description>\n <slot name=\"error-message\" />\n </template>\n </bento-alert>\n\n <slot />\n\n <div v-if=\"hasActions\" class=\"b-form-layout__actions-container\">\n <div class=\"b-form-layout__actions\">\n <slot name=\"actions-left\" />\n </div>\n\n <div class=\"b-form-layout__actions\">\n <slot name=\"actions-right\" />\n </div>\n </div>\n </component>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, provide, toRef, useSlots } from 'vue';\n import { BentoAlert } from '@/components/alert';\n import { useHasSlot } from '@/composables';\n import { FORM_LAYOUT_LOADING_INJECTION_KEY } from './form-layout.types';\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const props = defineProps({\n /**\n * Renders the form layout as an HTML `form`\n */\n form: { type: Boolean, default: false },\n\n /**\n * Sets the state of the form and its fields to\n * a read only status.\n */\n loading: { type: Boolean, default: false },\n });\n\n const formLayoutElement = computed(() => (props.form ? 'form' : 'div'));\n const hasActions = computed(() => hasSlot('actions-left') || hasSlot('actions-right'));\n\n provide(FORM_LAYOUT_LOADING_INJECTION_KEY, toRef(props, 'loading'));\n</script>\n\n<script lang=\"ts\">\n /**\n * Form layout component is a pre-designed layout that serves\n * as a starting point for creating a form.\n *\n * It can include various common form components:\n * input field, dropdown, date picker, checkbox group, radio group,\n * textarea, etc.\n *\n * Form layout is context agnostic and can be dropped in different\n * places, for example in modals, side panels or pages.\n *\n * @example\n * import { BentoFormLayout, BentoFormLayoutFieldTip } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayout, BentoFormLayoutFieldTip },\n * template: `\n * <bento-form-layout>\n * <template #error-message>There is an error. Correct the highlighted field.</template>\n *\n * <bento-input-field>Input field</bento-input-field>\n *\n * <bento-form-layout-field-tip>\n * <bento-dropdown label=\"Dropdown\" :items=\"dropdownItems\" placeholder=\"Select an animal\" />\n * <template #message>This is a small tip that can be used in small spaces</template>\n * </bento-form-layout-field-tip>\n *\n * <bento-form-layout-title subsection>\n * Section title\n * <template #description>Optional section description</template>\n * </bento-form-layout-title>\n * </bento-form-layout>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout.scss\" />\n","import { BentoAlertTypeOption } from '@/components/alert/alert.types';\n\nexport type BentoFormLayoutFieldTipTypeOption = `${BentoAlertTypeOption}`;\nexport const BentoFormLayoutFieldTipTypeOptions = ['warning', 'critical', 'highlight', 'success'];\n","<template>\n <div class=\"b-form-layout-field-tip\">\n <slot />\n <bento-alert variant=\"tip\" :type=\"type\">\n <template #description>\n <slot name=\"message\" />\n </template>\n </bento-alert>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { PropType } from 'vue';\n import { BentoFormLayoutFieldTipTypeOption, BentoFormLayoutFieldTipTypeOptions } from './form-layout-tip.types';\n import { BentoAlert } from '@/components/alert';\n\n defineProps({\n /**\n * Type of a alert; set a distinctive icon and color. Defaults to highlight.\n * @values highlight, success, critical, warning\n */\n type: {\n type: String as PropType<BentoFormLayoutFieldTipTypeOption>,\n default: 'highlight',\n validator: (value: BentoFormLayoutFieldTipTypeOption) => BentoFormLayoutFieldTipTypeOptions.includes(value),\n },\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * You can help users provide accurate and well formatted information\n * by using various elements that come with an input field.\n *\n * Use description/supporting text to add additional context to the\n * field or guidance how to format the input correctly.\n * Because description is always visible it should be the first\n * choice in providing guidance.\n *\n * @example\n * import { BentoFormLayoutFieldTip } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutFieldTip },\n * template: `\n * <bento-form-layout-field-tip>\n * <bento-dropdown label=\"Dropdown\" :items=\"dropdownItems\" placeholder=\"Select an animal\" />\n *\n * <template #message>This is a small tip that can be used in small spaces</template>\n * </bento-form-layout-field-tip>\n * `\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-field-tip.scss\" />\n","export type BentoLayoutGroupProportions =\n | '33-33-33'\n | '50-50'\n | '25-75'\n | '75-25'\n | '33-66'\n | '66-33'\n | '25'\n | '33'\n | '50'\n | '100';\n\nexport const BentoLayoutGroupProportions = [\n '100',\n '50',\n '33',\n '25',\n '66-33',\n '33-66',\n '75-25',\n '25-75',\n '50-50',\n '33-33-33',\n];\n","import { computed, onMounted, Ref } from 'vue';\nimport { BentoLayoutGroupProportions } from '../form-layout-group.types';\n\nconst DEFAULT_PROPORTION = 100;\n\n/**\n * Wraps a FormLayoutGroup child inside a \"div\" container.\n * This helps preventing the components from re-writing the classes or styles.\n * @param {Element} child - Child element to be wrapped\n * @param {HTMLDivElement} container - Container in which the child will be wrapped into\n * @param {string} containerClass - FormLayoutGroup layout percentage class\n */\nfunction wrapInsideContainer(child: Element, container: HTMLDivElement, containerClass: string) {\n // Insert container above the child\n child.parentNode.insertBefore(container, child);\n // Move child to the container\n container.appendChild(child);\n // Apply layout class\n container.classList.add(containerClass);\n}\n\n/**\n * Calculates the CSS classes based on the percentage\n * for each one of the layouts in format `##-##` or `##`.\n *\n * It receives a layout of type @see BentoLayoutGroupProportions to\n * generate the class and apply it to the children of the @see BentoFormLayoutGroup component\n *\n * @param {Ref<BentoLayoutGroupProportions>} layoutProp Layout string in the format `##` or `##-##`\n * @param {Ref<HTMLElement>} formLayoutGroupRef Reference to an HTML element of type BentoFormLayoutGroup\n */\nexport const useFormLayoutGroupPercentage = (\n layoutProp: Ref<BentoLayoutGroupProportions>,\n formLayoutGroupRef: Ref<HTMLElement>\n) => {\n // Split the `##-##` format into individual values [##, ##]\n const getLayoutValues = layout => layout.split?.('-').map(value => parseInt(value, 10));\n // Split the values only if the are in BentoLayoutGroupProportions, otherwise return 100%\n const layout = computed(() =>\n BentoLayoutGroupProportions.includes(layoutProp.value) ? getLayoutValues(layoutProp.value) : DEFAULT_PROPORTION\n );\n\n onMounted(() => {\n // Apply class to every immediate child\n const layoutClassName = formLayoutGroupRef.value.classList[0];\n const immediateChildren = formLayoutGroupRef.value.querySelectorAll(`.${layoutClassName} > *`); // Get immediate children\n\n immediateChildren.forEach((child, index) => {\n const containerClass = `${layoutClassName}--${layout.value[index] || '100'}`; // 100% default\n wrapInsideContainer(child, document.createElement('div'), containerClass);\n });\n });\n};\n","<template>\n <div ref=\"formLayoutGroup\" class=\"b-form-layout-group\" :class=\"conditionalClasses\">\n <slot></slot>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, PropType, ref, toRef } from 'vue';\n import { useFormLayoutGroupPercentage } from './composable/use-form-layout-group-percentage';\n import { BentoLayoutGroupProportions } from './form-layout-group.types';\n\n const props = defineProps({\n /**\n * The layout of the pair group of components.\n * This will render the components within the width of the proportions.\n * Only two colums are available.\n *\n * If only one value is entered, then it will assume there's only one child in the group.\n * If two values are entered, the first value will be use for the first child and the second\n * value for the second child.\n *\n * If the value entered is not listed in the example\n * list below it will use 100% by default.\n * @example\n * '33-33-33'\n * '50-50'\n * '25-75'\n * '75-25'\n * '33-66'\n * '66-33'\n * '25'\n * '33'\n * '50'\n * '100'\n */\n layout: {\n type: String as PropType<BentoLayoutGroupProportions>,\n default: '100',\n validator: (value: BentoLayoutGroupProportions) => BentoLayoutGroupProportions.includes(value),\n },\n });\n\n const formLayoutGroup = ref(null);\n useFormLayoutGroupPercentage(toRef(props, 'layout'), formLayoutGroup);\n\n const conditionalClasses = computed(() => ({\n // Transform into column if the layout is unsopprted\n // \"form-layout.scss\" depends on this class\n 'b-form-layout-group--column': !BentoLayoutGroupProportions.includes(props.layout),\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * Use to provide horizontal layouts to build forms\n * with two fields per line.\n *\n * These can be used for field combinations,\n * such as post code and city or title and first name.\n *\n * @example\n * import { BentoFormLayoutGroup } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutGroup },\n * template: `\n * <bento-form-layout-group>\n * <first-element />\n * <second-element />\n * </bento-form-layout-group>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-group.scss\" />\n","<template>\n <div class=\"b-form-layout-title\" :class=\"conditionalClasses\">\n <bento-typography :el=\"el\" variant=\"title\" :medium=\"isSection\">\n <slot />\n </bento-typography>\n\n <bento-typography v-if=\"hasSlot('description')\" class=\"b-form-layout-title__description\" el=\"span\" wide>\n <slot name=\"description\" />\n </bento-typography>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, useSlots } from 'vue';\n import { BentoTypography, BentoTypographyElement } from '@/components/typography';\n import { useHasSlot } from '@/composables';\n\n const slots = useSlots();\n\n const props = defineProps({\n /**\n * Defines if the Form Layout title is\n * a \"section\" or a \"subsection\".\n * Default is \"section\" (false). Turn into \"true\" for \"subsection\"\n */\n subsection: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the HTML DOM element.\n * @values h1, h2, h3, h4, h5, h6, div, p, span\n */\n el: {\n type: BentoTypography.props.el.type,\n required: true,\n validator: (value: BentoTypographyElement) => Object.values(BentoTypographyElement).includes(value),\n },\n });\n\n // Uses \"medium\" typography if it is a section title\n const isSection = computed(() => !props.subsection);\n const hasSlot = useHasSlot(slots);\n const conditionalClasses = computed(() => ({\n 'b-form-layout-title--subsection': props.subsection,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * If you’re building a lengthy form, organise related\n * fields into sections and, if needed, subsections.\n *\n * A form can have a \"Section Title\" and multiple \"Subsection titles\".\n *\n * One of the values provided in @see BentoTypographyElement must always be provided as a string\n * to define correct HTML sementic from the application's context\n *\n * @example\n * import { BentoFormLayoutTitle } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutTitle },\n * template: `\n * <bento-form-layout-title subsection el=\"h2\">\n * Title\n * <template #description>Description text</template>\n * </bento-form-layout-title>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-title.scss\" />\n"],"names":["__default__$3","slots","useSlots","hasSlot","useHasSlot","formLayoutElement","computed","props","hasActions","provide","FORM_LAYOUT_LOADING_INJECTION_KEY","toRef","BentoFormLayoutFieldTipTypeOptions","__default__$2","BentoLayoutGroupProportions","DEFAULT_PROPORTION","wrapInsideContainer","child","container","containerClass","useFormLayoutGroupPercentage","layoutProp","formLayoutGroupRef","getLayoutValues","layout2","_a","value","layout","onMounted","layoutClassName","index","__default__$1","formLayoutGroup","ref","conditionalClasses","__default__","isSection"],"mappings":";;;;;;;AAsFI,MAAAA,IAAA,CAAA;;;;;;;;;;;;;;;iBA1DAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAeAI,IAAAC,EAAA,MAAAC,EAAA,OAAA,SAAA,KAAA,GACAC,IAAAF,EAAA,MAAAH,EAAA,cAAA,KAAAA,EAAA,eAAA,CAAA;AAEA,WAAAM,EAAAC,GAAAC,EAAAJ,GAAA,SAAA,CAAA;;;;;;;;;;;;;;;;;;qBC5CGK,IAAA,CAAA,WAAA,YAAA,aAAA,SAAA,GCiDHC,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBCxCGC,IAAA;AAAA,EAAoC;AAAA,EACvC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAEJ,GCpBAC,IAAA;AASA,SAAAC,EAAAC,GAAAC,GAAAC,GAAA;AAEI,EAAAF,EAAA,WAAA,aAAAC,GAAAD,CAAA,GAEAC,EAAA,YAAAD,CAAA,GAEAC,EAAA,UAAA,IAAAC,CAAA;AACJ;AAYa,MAAAC,IAAA,CAAAC,GAAAC,MAAA;AAKT,QAAAC,IAAA,CAAAC,MAAA;;AAAA,YAAAC,IAAAD,EAAA,UAAA,gBAAAC,EAAA,KAAAD,GAAA,KAAA,IAAA,CAAAE,MAAA,SAAAA,GAAA,EAAA;AAAA,KAEAC,IAAArB;AAAA,IAAe,MAAAQ,EAAA,SAAAO,EAAA,KAAA,IAAAE,EAAAF,EAAA,KAAA,IAAAN;AAAA,EACkF;AAGjG,EAAAa,EAAA,MAAA;AAEI,UAAAC,IAAAP,EAAA,MAAA,UAAA,CAAA;AAGA,IAFAA,EAAA,MAAA,iBAAA,IAAAO,OAAA,EAEA,QAAA,CAAAZ,GAAAa,MAAA;AACI,YAAAX,IAAA,GAAAU,MAAAF,EAAA,MAAAG,CAAA,KAAA;AACA,MAAAd,EAAAC,GAAA,SAAA,cAAA,KAAA,GAAAE,CAAA;AAAA,IAAwE,CAAA;AAAA,EAC3E,CAAA;AAET,GCqBIY,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA/BAC,IAAAC,EAAA,IAAA;AACA,IAAAb,EAAAT,EAAAJ,GAAA,QAAA,GAAAyB,CAAA;AAEA,UAAAE,IAAA5B,EAAA,OAAA;AAAA;AAAA;AAAA,MAA2C,+BAAA,CAAAQ,EAAA,SAAAP,EAAA,MAAA;AAAA,IAG0C,EAAA;;;;;;;;;;;;;;;;;sBCwBrF4B,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;iBAvDAlC,IAAAC,EAAA,GAyBAkC,IAAA9B,EAAA,MAAA,CAAAC,EAAA,UAAA,GACAJ,IAAAC,EAAAH,CAAA,GACAiC,IAAA5B,EAAA,OAAA;AAAA,MAA2C,mCAAAC,EAAA;AAAA,IACE,EAAA;;;;;;;;;;;;;;;;;;"}
package/dist/header.js CHANGED
@@ -4,12 +4,12 @@ import { BentoButtonActions as E } from "./button.js";
4
4
  import { n as I } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
5
5
  import { BentoInfoIcon as w } from "./info-icon.js";
6
6
  import { u as U } from "./chunks/use-has-slot.6052d56a.js";
7
- import { B, c as b, a as X } from "./chunks/index.74da0d41.js";
7
+ import { B, c as b, a as X } from "./chunks/index.2fce7703.js";
8
8
  import { u as P } from "./chunks/i18n.155748d6.js";
9
9
  import { c as p, a as R } from "./chunks/index.86453263.js";
10
10
  import { r as l, t as i, e as g, g as y, d as H, f as Y } from "./chunks/index.f55fdc32.js";
11
11
  import { e as F } from "./chunks/index.fdf12170.js";
12
- import "./assets/index36.css";
12
+ import "./assets/index6.css";
13
13
  function G(e, t) {
14
14
  l(2, arguments);
15
15
  var n = i(e), a = i(t), s = n.getFullYear() - a.getFullYear(), r = n.getMonth() - a.getMonth();
package/dist/index.js CHANGED
@@ -6,19 +6,19 @@ import { reactive as m } from "vue";
6
6
  import { g as p } from "./chunks/unique-id.a2a2b458.js";
7
7
  import { BentoAccordion as C, BentoAccordionItem as T } from "./accordion.js";
8
8
  import { BentoAlert as D, BentoAlertEvent as v, BentoAlertTypeOption as I, BentoAlertVariant as E } from "./alert.js";
9
- import { a as L, b as P, B as F } from "./chunks/button.38099670.js";
9
+ import { a as L, b as P, B as F } from "./chunks/button.eb60d460.js";
10
10
  import { BentoColumnOverflow as k, BentoDataGrid as G, BentoDatagridAriaSortValue as w, BentoDatagridEvent as A, BentoDatagridSortDirection as M, BentoDatagridStyleState as O } from "./data-grid.js";
11
11
  import { BentoCard as _, BentoCardBackground as N, BentoCardTitleSize as q } from "./card.js";
12
12
  import { BentoDatePicker as U, BentoDatePickerEvent as K } from "./date-picker.js";
13
- import { B as Y, a as j } from "./chunks/index.5d058912.js";
14
- import { B as $, u as J } from "./chunks/dropdown.5d22958c.js";
13
+ import { B as Y, a as j } from "./chunks/index.31949c1a.js";
14
+ import { B as $, u as J } from "./chunks/dropdown.3f198167.js";
15
15
  import { BentoDropdownAvatar as X, BentoDropdownCountry as Z, BentoDropdownCurrency as ee, BentoDropdownPaymentMethod as te, BentoDropdownTag as oe } from "./dropdown.js";
16
- import { B as re, b as ae, a as Be } from "./chunks/checkbox.b8c2e583.js";
16
+ import { B as re, b as ae, a as Be } from "./chunks/checkbox.96ee3f71.js";
17
17
  import { BentoClickOutside as me } from "./click-outside.js";
18
18
  import { BentoCodeSnippet as se, BentoCodeSnippetEvent as de, BentoCodeSnippetSupportedLanguage as ue, BentoCodeSnippetVariant as le } from "./code-snippet.js";
19
19
  import { BentoCountry as xe, BentoCountryCode as ye, BentoCountryVariant as ce, useCountryCapital as ge, useCountryName as Se, useCountryPhoneCode as Ce } from "./country.js";
20
20
  import { BentoCurrency as he, BentoCurrencyISOCode as De } from "./currency.js";
21
- import { B as Ie, a as Ee } from "./chunks/index.fd557233.js";
21
+ import { B as Ie, a as Ee } from "./chunks/index.a709a6b0.js";
22
22
  import { BentoDivider as Le } from "./divider.js";
23
23
  import { BentoEmptyState as Fe, BentoEmptyStateImage as Ve, BentoEmptyStateImageVariant as ke, BentoEmptyStateVariant as Ge } from "./empty-state.js";
24
24
  import { BentoFilterBar as Ae, BentoFilterBarEvent as Me, BentoFilterEvent as Oe, BentoFilterItemType as Re } from "./filter-bar.js";
@@ -30,7 +30,7 @@ import { BentoLoadingIndicator as rt, BentoLoadingIndicatorEvent as at } from ".
30
30
  import { BentoLink as it, BentoLinkVariant as mt } from "./link.js";
31
31
  import { BentoMenu as st, BentoMenuEvent as dt } from "./menu.js";
32
32
  import { BentoModal as lt } from "./modal.js";
33
- import { b as xt, d as yt, e as ct, c as gt, a as St, B as Ct } from "./chunks/base-modal.f462dac0.js";
33
+ import { b as xt, d as yt, e as ct, c as gt, a as St, B as Ct } from "./chunks/base-modal.ec74044e.js";
34
34
  import { BentoHeader as ht } from "./header.js";
35
35
  import { BentoPagination as vt } from "./pagination.js";
36
36
  import { BentoPaymentMethod as Et, BentoPaymentMethodType as bt } from "./payment-method.js";
@@ -41,7 +41,7 @@ import { BentoSegmentedControl as _t, BentoSegmentedControlEvent as Nt } from ".
41
41
  import { BentoSidepanel as zt, BentoSidepanelAnimation as Ut, BentoSidepanelEvent as Kt, BentoSidepanelPage as Wt } from "./sidepanel.js";
42
42
  import { BentoStatus as jt, BentoStatusVariant as Ht } from "./status.js";
43
43
  import { BentoStep as Jt, BentoStepper as Qt, BentoStepperTypeOption as Xt, BentoStepperVariantOption as Zt } from "./stepper.js";
44
- import { B as to, a as oo } from "./chunks/index.64cce50b.js";
44
+ import { B as to, a as oo } from "./chunks/index.298f5eed.js";
45
45
  import { BentoSummaryGrid as ro, BentoSummaryGridItemAmount as ao, BentoSummaryGridItemCustom as Bo, BentoSummaryGridItemNumeric as io, BentoSummaryGridItemPercentage as mo, BentoSummaryGridItemSize as po, BentoSummaryGridItemText as so, BentoSummaryGridItemTrendDirection as uo } from "./summary-grid.js";
46
46
  import { BentoTab as fo, BentoTabs as xo } from "./tabs.js";
47
47
  import { BentoTag as co, BentoTagVariant as go } from "./tag.js";
@@ -50,16 +50,16 @@ import { BentoTimeline as ho, BentoTimelineGapUnit as Do, BentoTimelineItem as v
50
50
  import { BentoToast as Lo } from "./toast.js";
51
51
  import { u as Fo } from "./chunks/toastController.0e01443d.js";
52
52
  import { BentoToggle as ko, BentoToggleLabelPosition as Go, BentoTogglePropClass as wo } from "./toggle.js";
53
- import { B as Mo, c as Oo, b as Ro, a as _o } from "./chunks/index.74da0d41.js";
53
+ import { B as Mo, c as Oo, b as Ro, a as _o } from "./chunks/index.2fce7703.js";
54
54
  import { BentoButtonActions as qo, BentoButtonActionsLayout as zo, BentoButtonActionsLayoutBasic as Uo, BentoButtonActionsLayoutExtended as Ko } from "./button.js";
55
- import { B as Yo, a as jo } from "./chunks/loading-button.21c48d50.js";
56
- import { C as $o, C as Jo } from "./chunks/calendar.371e5ae2.js";
55
+ import { B as Yo, a as jo } from "./chunks/loading-button.0ad06c99.js";
56
+ import { C as $o, C as Jo } from "./chunks/calendar.b74f8a0f.js";
57
57
  import { BentoCheckboxGroup as Xo, BentoCheckboxGroupVariant as Zo } from "./checkbox.js";
58
58
  import { D as tn } from "./chunks/date-input.9186a0bf.js";
59
59
  import { a as nn, B as rn } from "./chunks/keyboard-navigation.ca47dfa8.js";
60
- import { B as Bn, a as mn } from "./chunks/listbox.cbb27077.js";
60
+ import { B as Bn, a as mn } from "./chunks/listbox.e7bf46e4.js";
61
61
  import { B as sn } from "./chunks/directive.0408e565.js";
62
- import { b as un, B as ln, a as fn } from "./chunks/tooltip.ca9673ee.js";
62
+ import { b as un, B as ln, a as fn } from "./chunks/tooltip.68e81e9c.js";
63
63
  class s {
64
64
  constructor() {
65
65
  r(this, "_state");
package/dist/info-icon.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as r } from "vue";
2
2
  import { PopperContainerPosition as i } from "./popper-container.js";
3
3
  import { n as s } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
4
- import { b as a } from "./chunks/tooltip.ca9673ee.js";
5
- import "./assets/index34.css";
4
+ import { b as a } from "./chunks/tooltip.68e81e9c.js";
5
+ import "./assets/index4.css";
6
6
  let n = 0;
7
7
  const l = {
8
8
  beforeCreate() {
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as H, useAttrs as q, useSlots as G, ref as R, toRef as z, computed as i, toRefs as j } from "vue";
2
- import { d as F, B as W } from "./chunks/index.74da0d41.js";
2
+ import { d as F, B as W } from "./chunks/index.2fce7703.js";
3
3
  import { u as Y } from "./chunks/use-has-slot.6052d56a.js";
4
4
  import { u as X } from "./chunks/use-form-layout-loading.d03e5d48.js";
5
5
  import { g as p } from "./chunks/unique-id.a2a2b458.js";
6
6
  import { u as K } from "./chunks/i18n.155748d6.js";
7
- import { a as J, B as Q } from "./chunks/dropdown.5d22958c.js";
7
+ import { a as J, B as Q } from "./chunks/dropdown.3f198167.js";
8
8
  import { g as Z } from "./chunks/get-slot-text.c1114034.js";
9
9
  import { u as tt } from "./chunks/aria-label.ac9651a5.js";
10
- import { E as et } from "./chunks/error-message.a04e8f9a.js";
10
+ import { E as et } from "./chunks/error-message.f5454f19.js";
11
11
  import { n as at } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
12
- import "./assets/index31.css";
12
+ import "./assets/index24.css";
13
13
  var s = /* @__PURE__ */ ((a) => (a.DEFAULT = "default", a.PAYMENT_METHOD = "payment-method", a.STATIC_VALUE = "static-value", a.DROPDOWN = "dropdown", a))(s || {}), n = /* @__PURE__ */ ((a) => (a.START = "start", a.END = "end", a))(n || {}), d = /* @__PURE__ */ ((a) => (a.CONDENSED = "condensed", a.DISABLED = "disabled", a.READONLY = "readonly", a.ERROR = "error", a.SMALL_PADDING_LEFT = "small-padding-left", a.SMALL_PADDING_RIGHT = "small-padding-right", a))(d || {}), D = /* @__PURE__ */ ((a) => (a.SEARCH = "search", a.TEXT = "text", a.NUMBER = "number", a))(D || {}), ot = /* @__PURE__ */ ((a) => (a.INPUT = "input", a.ESCAPE_PRESSED = "escape-pressed", a.UPDATE_DROPDOWN = "update:dropdown", a.DROPDOWN_INPUT = "dropdown-input", a.FOCUS = "focus", a.CHANGE = "change", a.BLUR = "blur", a.KEYDOWN = "keydown", a))(ot || {});
14
14
  const rt = {
15
15
  "en-US": {
package/dist/internal.js CHANGED
@@ -1,16 +1,16 @@
1
- import { B as X, L as $ } from "./chunks/listbox-option-tag.a651fa46.js";
2
- import { a as q, b as H, C as J } from "./chunks/calendar.371e5ae2.js";
3
- import { C as N } from "./chunks/copy.8e44a660.js";
4
- import { C as Y } from "./chunks/controls-group.d75f1d37.js";
5
- import { E as tt } from "./chunks/error-message.a04e8f9a.js";
1
+ import { B as X, L as $ } from "./chunks/listbox-option-tag.1362a2d7.js";
2
+ import { a as q, b as H, C as J } from "./chunks/calendar.b74f8a0f.js";
3
+ import { C as N } from "./chunks/copy.2ff56819.js";
4
+ import { C as Y } from "./chunks/controls-group.e9537e45.js";
5
+ import { E as tt } from "./chunks/error-message.f5454f19.js";
6
6
  import { ref as i, computed as a, defineComponent as g } from "vue";
7
- import { a as C } from "./chunks/button.38099670.js";
7
+ import { a as C } from "./chunks/button.eb60d460.js";
8
8
  import { u as B } from "./chunks/i18n.155748d6.js";
9
9
  import { C as R, a as L } from "./chunks/chevron-right.3b826337.js";
10
10
  import { n as S } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
11
11
  import { G as ot, a as rt } from "./chunks/grid-layout.b7e0d964.js";
12
- import { b as st } from "./chunks/listbox.cbb27077.js";
13
- import "./assets/index12.css";
12
+ import { b as st } from "./chunks/listbox.e7bf46e4.js";
13
+ import "./assets/index3.css";
14
14
  const y = ({
15
15
  contentRef: v,
16
16
  containerRef: r,
package/dist/link.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as c, computed as p, useAttrs as _ } from "vue";
2
2
  import { RouterLink as u } from "vue-router";
3
- import { B as f } from "./chunks/index.74da0d41.js";
3
+ import { B as f } from "./chunks/index.2fce7703.js";
4
4
  import { n as d } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
5
- import "./assets/index18.css";
5
+ import "./assets/index5.css";
6
6
  var a = /* @__PURE__ */ ((s) => (s.DEFAULT = "default", s.QUIET = "quiet", s))(a || {});
7
7
  const k = {
8
8
  name: "bento-link",
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as t, onMounted as s, onUnmounted as l, computed as i } from "vue";
2
2
  import { n as r } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
3
- import "./assets/index19.css";
3
+ import "./assets/index7.css";
4
4
  var a = /* @__PURE__ */ ((n) => (n.START = "loading-start", n.END = "loading-end", n))(a || {});
5
5
  const d = t({
6
6
  name: "bento-loading-indicator",
package/dist/menu.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as k, computed as b, ref as c, onMounted as U } from "vue";
2
2
  import { n as C } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
3
3
  import { g as w } from "./chunks/unique-id.a2a2b458.js";
4
- import { a as H } from "./chunks/button.38099670.js";
4
+ import { a as H } from "./chunks/button.eb60d460.js";
5
5
  import { BentoPopover as N, BentoPopoverPositions as B } from "./popover.js";
6
6
  import { a as q, C as I } from "./chunks/chevron-right.3b826337.js";
7
- import { B as W, a as L } from "./chunks/base-button.431fb8cf.js";
8
- import { B as j } from "./chunks/index.74da0d41.js";
7
+ import { B as W, a as L } from "./chunks/base-button.d1ba66cd.js";
8
+ import { B as j } from "./chunks/index.2fce7703.js";
9
9
  import { B as Z } from "./chunks/directive.0408e565.js";
10
- import "./assets/index39.css";
10
+ import "./assets/index8.css";
11
11
  let O = 0;
12
12
  const $ = {
13
13
  beforeCreate() {
package/dist/modal.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as _, onMounted as C, toRefs as M, computed as f, useAttrs as h, watch as E } from "vue";
2
- import { f as A, b as p, e as r, d as u, c as w, B as y, a as B } from "./chunks/base-modal.f462dac0.js";
2
+ import { f as A, b as p, e as r, d as u, c as w, B as y, a as B } from "./chunks/base-modal.ec74044e.js";
3
3
  import { u as v } from "./chunks/use-has-slot.6052d56a.js";
4
- import { F as x } from "./chunks/footer-actions.ee645663.js";
4
+ import { F as x } from "./chunks/footer-actions.00d20947.js";
5
5
  import { n as b } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
6
- import { B as S } from "./chunks/button.38099670.js";
6
+ import { B as S } from "./chunks/button.eb60d460.js";
7
7
  import { u as T } from "./chunks/i18n.155748d6.js";
8
8
  import { BentoButtonActions as k } from "./button.js";
9
9
  const N = _({
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as _, ref as C, computed as i, toRefs as w } from "vue";
2
2
  import { u as N } from "./chunks/aria-label.ac9651a5.js";
3
- import { B as P } from "./chunks/index.74da0d41.js";
4
- import { B as b } from "./chunks/dropdown.5d22958c.js";
3
+ import { B as P } from "./chunks/index.2fce7703.js";
4
+ import { B as b } from "./chunks/dropdown.3f198167.js";
5
5
  import { g as T } from "./chunks/unique-id.a2a2b458.js";
6
6
  import { g as y, a as x } from "./chunks/i18n.155748d6.js";
7
7
  import { n as r } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
8
- import { a as S } from "./chunks/button.38099670.js";
9
- import "./assets/index37.css";
8
+ import { a as S } from "./chunks/button.eb60d460.js";
9
+ import "./assets/index10.css";
10
10
  const L = {
11
11
  "en-US": {
12
12
  showingItems: "Showing {itemCount} items",