@adyen/bento-vue3 1.25.0 → 1.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (239) hide show
  1. package/dist/@types/components.d.ts +4 -0
  2. package/dist/@types/packages/core/src/utils/ts/storybook.d.ts +12 -0
  3. package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.types.d.ts +1 -0
  4. package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.vue.d.ts +1 -1
  5. package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.types.d.ts +2 -1
  6. package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +3 -3
  7. package/dist/@types/packages/vue2/src/components/code-snippet/utils/get-lang-loader.d.ts +2 -1
  8. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell/data-grid-cell.vue.d.ts +1 -1
  9. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell-actions/data-grid-cell-actions.types.d.ts +10 -2
  10. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.types.d.ts +3 -0
  11. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +8 -6
  12. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.d.ts +27 -11
  13. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.types.d.ts +1 -0
  14. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-hovering/use-column-hovering.d.ts +19 -6
  15. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-reorderer/use-column-reorderer.d.ts +38 -12
  16. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-config-settings/use-config-settings.d.ts +19 -6
  17. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-resizer.d.ts +19 -6
  18. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +2 -1
  19. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +29 -48
  20. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +1 -18
  21. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +12 -0
  22. package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +36 -54
  23. package/dist/@types/packages/vue2/src/components/structured-list/structured-list.vue.d.ts +27 -22
  24. package/dist/@types/packages/vue2/src/components/tabs/tabs.vue.d.ts +76 -1
  25. package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/tutorial-popover.vue.d.ts +20 -0
  26. package/dist/@types/packages/vue2/src/components/tutorial/tutorial.types.d.ts +1 -0
  27. package/dist/@types/packages/vue2/src/components/tutorial/tutorial.vue.d.ts +42 -3
  28. package/dist/@types/packages/vue2/src/components/typography/index.d.ts +1 -1
  29. package/dist/@types/packages/vue2/src/components/typography/typography.vue.d.ts +1 -1
  30. package/dist/@types/packages/vue2/src/index.d.ts +1 -0
  31. package/dist/@types/packages/vue2/src/templates/dashboard-template/components/dashboard-section/dashboard-section.vue.d.ts +78 -0
  32. package/dist/@types/packages/vue2/src/templates/dashboard-template/dashboard-template.types.d.ts +8 -0
  33. package/dist/@types/packages/vue2/src/templates/dashboard-template/dashboard-template.vue.d.ts +103 -0
  34. package/dist/@types/packages/vue2/src/templates/dashboard-template/index.d.ts +3 -0
  35. package/dist/@types/packages/vue2/src/utils/ts/storybook.d.ts +1 -12
  36. package/dist/accordion.js +2 -2
  37. package/dist/action-bar.js +70 -154
  38. package/dist/action-bar.js.map +1 -1
  39. package/dist/alert.js +3 -3
  40. package/dist/assets/base-modal.css +1 -1
  41. package/dist/assets/button-actions.css +1 -1
  42. package/dist/assets/button.css +1 -1
  43. package/dist/assets/dialog-page.css +1 -1
  44. package/dist/assets/dropdown.css +1 -1
  45. package/dist/assets/index.css +1 -1
  46. package/dist/assets/index10.css +1 -1
  47. package/dist/assets/index11.css +1 -1
  48. package/dist/assets/index12.css +1 -1
  49. package/dist/assets/index13.css +1 -1
  50. package/dist/assets/index14.css +1 -1
  51. package/dist/assets/index15.css +1 -1
  52. package/dist/assets/index16.css +1 -1
  53. package/dist/assets/index17.css +1 -1
  54. package/dist/assets/index18.css +1 -1
  55. package/dist/assets/index19.css +1 -1
  56. package/dist/assets/index2.css +1 -1
  57. package/dist/assets/index20.css +1 -1
  58. package/dist/assets/index21.css +1 -1
  59. package/dist/assets/index22.css +1 -1
  60. package/dist/assets/index23.css +1 -1
  61. package/dist/assets/index24.css +1 -1
  62. package/dist/assets/index25.css +1 -1
  63. package/dist/assets/index26.css +1 -1
  64. package/dist/assets/index27.css +1 -1
  65. package/dist/assets/index28.css +1 -1
  66. package/dist/assets/index29.css +1 -1
  67. package/dist/assets/index3.css +1 -1
  68. package/dist/assets/index30.css +1 -1
  69. package/dist/assets/index31.css +1 -1
  70. package/dist/assets/index32.css +1 -1
  71. package/dist/assets/index33.css +1 -1
  72. package/dist/assets/index34.css +1 -1
  73. package/dist/assets/index35.css +1 -1
  74. package/dist/assets/index36.css +1 -1
  75. package/dist/assets/index37.css +1 -1
  76. package/dist/assets/index38.css +1 -1
  77. package/dist/assets/index39.css +1 -1
  78. package/dist/assets/index4.css +1 -1
  79. package/dist/assets/index40.css +1 -1
  80. package/dist/assets/index41.css +1 -1
  81. package/dist/assets/index42.css +1 -1
  82. package/dist/assets/index43.css +1 -1
  83. package/dist/assets/index44.css +1 -1
  84. package/dist/assets/index45.css +1 -1
  85. package/dist/assets/index46.css +1 -1
  86. package/dist/assets/index47.css +1 -1
  87. package/dist/assets/index48.css +1 -1
  88. package/dist/assets/index49.css +1 -0
  89. package/dist/assets/index5.css +1 -1
  90. package/dist/assets/index6.css +1 -1
  91. package/dist/assets/index7.css +1 -1
  92. package/dist/assets/index8.css +1 -1
  93. package/dist/assets/index9.css +1 -1
  94. package/dist/assets/use-cached-selected-values.css +1 -1
  95. package/dist/avatar-image.js +1 -1
  96. package/dist/badge.js +1 -1
  97. package/dist/button.js +5 -5
  98. package/dist/card.js +3 -3
  99. package/dist/checkbox.js +5 -5
  100. package/dist/chunks/{base-button.6be8b60e.js → base-button.a0140a4c.js} +2 -2
  101. package/dist/chunks/{base-button.6be8b60e.js.map → base-button.a0140a4c.js.map} +1 -1
  102. package/dist/chunks/{base-modal.310c4790.js → base-modal.4102f69d.js} +6 -6
  103. package/dist/chunks/{base-modal.310c4790.js.map → base-modal.4102f69d.js.map} +1 -1
  104. package/dist/chunks/{button-actions-with-menu.a007b034.js → button-actions-with-menu.4f311411.js} +4 -4
  105. package/dist/chunks/{button-actions-with-menu.a007b034.js.map → button-actions-with-menu.4f311411.js.map} +1 -1
  106. package/dist/chunks/{button-actions.adc0a2fe.js → button-actions.82163994.js} +42 -40
  107. package/dist/chunks/button-actions.82163994.js.map +1 -0
  108. package/dist/chunks/{button.de5589fa.js → button.ae4760cd.js} +27 -26
  109. package/dist/chunks/button.ae4760cd.js.map +1 -0
  110. package/dist/chunks/{calendar.73f5b904.js → calendar.a9c5a68c.js} +5 -5
  111. package/dist/chunks/{calendar.73f5b904.js.map → calendar.a9c5a68c.js.map} +1 -1
  112. package/dist/chunks/{checkbox.4c96cc23.js → checkbox.9c30c07b.js} +3 -3
  113. package/dist/chunks/{checkbox.4c96cc23.js.map → checkbox.9c30c07b.js.map} +1 -1
  114. package/dist/chunks/{controls-group.37a67734.js → controls-group.8357e3fd.js} +3 -3
  115. package/dist/chunks/{controls-group.37a67734.js.map → controls-group.8357e3fd.js.map} +1 -1
  116. package/dist/chunks/{copy.43de2653.js → copy.60ee6ac3.js} +4 -4
  117. package/dist/chunks/{copy.43de2653.js.map → copy.60ee6ac3.js.map} +1 -1
  118. package/dist/chunks/{dialog-page.cd8c7fff.js → dialog-page.cb6ce9b6.js} +3 -3
  119. package/dist/chunks/{dialog-page.cd8c7fff.js.map → dialog-page.cb6ce9b6.js.map} +1 -1
  120. package/dist/chunks/{dropdown-default-textbox.424e0eb6.js → dropdown-default-textbox.cda0798f.js} +3 -3
  121. package/dist/chunks/{dropdown-default-textbox.424e0eb6.js.map → dropdown-default-textbox.cda0798f.js.map} +1 -1
  122. package/dist/chunks/{dropdown.57b2ea6f.js → dropdown.0ae3b842.js} +118 -128
  123. package/dist/chunks/dropdown.0ae3b842.js.map +1 -0
  124. package/dist/chunks/{error-message.4bd22112.js → error-message.d2bdeb80.js} +2 -2
  125. package/dist/chunks/{error-message.4bd22112.js.map → error-message.d2bdeb80.js.map} +1 -1
  126. package/dist/chunks/{events.58c00e6d.js → events.f14a214b.js} +5 -5
  127. package/dist/chunks/events.f14a214b.js.map +1 -0
  128. package/dist/chunks/{fixed-scroller.5b93a6a6.js → fixed-scroller.7b42cb1e.js} +2 -2
  129. package/dist/chunks/{fixed-scroller.5b93a6a6.js.map → fixed-scroller.7b42cb1e.js.map} +1 -1
  130. package/dist/chunks/{footer-actions.c401ec50.js → footer-actions.64f6f5d8.js} +4 -4
  131. package/dist/chunks/{footer-actions.c401ec50.js.map → footer-actions.64f6f5d8.js.map} +1 -1
  132. package/dist/chunks/{index.faec0854.js → index.2d7b4511.js} +9 -9
  133. package/dist/chunks/{index.faec0854.js.map → index.2d7b4511.js.map} +1 -1
  134. package/dist/chunks/index.2fcd1233.js +103 -0
  135. package/dist/chunks/index.2fcd1233.js.map +1 -0
  136. package/dist/chunks/{index.f71015d8.js → index.6295e754.js} +3 -3
  137. package/dist/chunks/{index.f71015d8.js.map → index.6295e754.js.map} +1 -1
  138. package/dist/chunks/{index.8b10ee32.js → index.6bb6f38c.js} +6 -6
  139. package/dist/chunks/{index.8b10ee32.js.map → index.6bb6f38c.js.map} +1 -1
  140. package/dist/chunks/{index.73ac0db6.js → index.8aa536a8.js} +3 -3
  141. package/dist/chunks/{index.73ac0db6.js.map → index.8aa536a8.js.map} +1 -1
  142. package/dist/chunks/{index.ea65003b.js → index.9d7fb316.js} +2 -2
  143. package/dist/chunks/{index.ea65003b.js.map → index.9d7fb316.js.map} +1 -1
  144. package/dist/chunks/{index.bab8811d.js → index.a001a0a8.js} +6 -6
  145. package/dist/chunks/{index.bab8811d.js.map → index.a001a0a8.js.map} +1 -1
  146. package/dist/chunks/{index.98bbaed9.js → index.b18c78d6.js} +2 -2
  147. package/dist/chunks/{index.98bbaed9.js.map → index.b18c78d6.js.map} +1 -1
  148. package/dist/chunks/{index.aa83aa48.js → index.eb38a6c4.js} +3 -3
  149. package/dist/chunks/{index.aa83aa48.js.map → index.eb38a6c4.js.map} +1 -1
  150. package/dist/chunks/{index.11b6dd35.js → index.ee15db35.js} +17 -17
  151. package/dist/chunks/index.ee15db35.js.map +1 -0
  152. package/dist/chunks/{index.8682bd04.js → index.f9d081d2.js} +2 -2
  153. package/dist/chunks/{index.8682bd04.js.map → index.f9d081d2.js.map} +1 -1
  154. package/dist/chunks/index.fedbb4c2.js +125 -0
  155. package/dist/chunks/index.fedbb4c2.js.map +1 -0
  156. package/dist/chunks/{keyboard-navigation.ca47dfa8.js → keyboard-navigation.bbc3d15c.js} +2 -2
  157. package/dist/chunks/{keyboard-navigation.ca47dfa8.js.map → keyboard-navigation.bbc3d15c.js.map} +1 -1
  158. package/dist/chunks/{listbox-option-tag.d1a3b340.js → listbox-option-tag.2aea037c.js} +3 -3
  159. package/dist/chunks/{listbox-option-tag.d1a3b340.js.map → listbox-option-tag.2aea037c.js.map} +1 -1
  160. package/dist/chunks/{loading-button.2db95771.js → loading-button.6b81b546.js} +2 -2
  161. package/dist/chunks/{loading-button.2db95771.js.map → loading-button.6b81b546.js.map} +1 -1
  162. package/dist/chunks/{payment-method.26fa5509.js → payment-method.d5595a7c.js} +2 -2
  163. package/dist/chunks/{payment-method.26fa5509.js.map → payment-method.d5595a7c.js.map} +1 -1
  164. package/dist/chunks/{tooltip.e29f7d7e.js → tooltip.36172265.js} +4 -4
  165. package/dist/chunks/{tooltip.e29f7d7e.js.map → tooltip.36172265.js.map} +1 -1
  166. package/dist/chunks/{use-bento-toast-controller.98ca249a.js → use-bento-toast-controller.3dc4e113.js} +2 -2
  167. package/dist/chunks/{use-bento-toast-controller.98ca249a.js.map → use-bento-toast-controller.3dc4e113.js.map} +1 -1
  168. package/dist/chunks/{use-cached-selected-values.a9b0fb3d.js → use-cached-selected-values.3c312296.js} +396 -375
  169. package/dist/chunks/use-cached-selected-values.3c312296.js.map +1 -0
  170. package/dist/code-snippet.js +137 -135
  171. package/dist/code-snippet.js.map +1 -1
  172. package/dist/country.js +2 -2
  173. package/dist/currency.js +1 -1
  174. package/dist/dashboard-template.js +169 -0
  175. package/dist/dashboard-template.js.map +1 -0
  176. package/dist/data-grid-template.js +1 -1
  177. package/dist/data-grid.js +1295 -1253
  178. package/dist/data-grid.js.map +1 -1
  179. package/dist/date-picker.js +8 -8
  180. package/dist/date-range-picker.js +2 -2
  181. package/dist/date.js +1 -1
  182. package/dist/divider.js +1 -1
  183. package/dist/dropdown.js +7 -7
  184. package/dist/empty-state.js +3 -3
  185. package/dist/filter-bar.js +84 -82
  186. package/dist/filter-bar.js.map +1 -1
  187. package/dist/focus-trap.js +1 -1
  188. package/dist/form-layout.js +53 -51
  189. package/dist/form-layout.js.map +1 -1
  190. package/dist/header.js +4 -4
  191. package/dist/index.js +66 -63
  192. package/dist/index.js.map +1 -1
  193. package/dist/info-icon.js +3 -3
  194. package/dist/input-field.js +4 -4
  195. package/dist/internal.js +8 -8
  196. package/dist/link.js +1 -1
  197. package/dist/loading-indicator.js +1 -1
  198. package/dist/menu.js +1 -1
  199. package/dist/modal-fullscreen.js +6 -6
  200. package/dist/modal.js +6 -6
  201. package/dist/pagination.js +4 -4
  202. package/dist/payment-method.js +1 -1
  203. package/dist/popover.js +1 -1
  204. package/dist/popper-container.js +1 -1
  205. package/dist/radio-group.js +4 -4
  206. package/dist/search-bar.js +2 -2
  207. package/dist/secondary-nav.js +2 -2
  208. package/dist/segmented-control.js +66 -72
  209. package/dist/segmented-control.js.map +1 -1
  210. package/dist/selection-card.js +4 -4
  211. package/dist/sidepanel.js +6 -6
  212. package/dist/status.js +2 -2
  213. package/dist/stepper.js +4 -4
  214. package/dist/structured-list.js +1 -1
  215. package/dist/summary-grid.js +3 -3
  216. package/dist/tabs.js +81 -77
  217. package/dist/tabs.js.map +1 -1
  218. package/dist/tag.js +3 -3
  219. package/dist/textarea.js +4 -4
  220. package/dist/timeline.js +7 -7
  221. package/dist/toast.js +4 -4
  222. package/dist/toggle.js +2 -2
  223. package/dist/tutorial.js +168 -132
  224. package/dist/tutorial.js.map +1 -1
  225. package/dist/typography.js +1 -1
  226. package/dist/web-types.json +1 -1
  227. package/package.json +8 -6
  228. package/dist/@types/packages/vue2/src/composables/useDynamicImport.d.ts +0 -8
  229. package/dist/chunks/button-actions.adc0a2fe.js.map +0 -1
  230. package/dist/chunks/button.de5589fa.js.map +0 -1
  231. package/dist/chunks/checkmark.eb3c7a06.js +0 -29
  232. package/dist/chunks/checkmark.eb3c7a06.js.map +0 -1
  233. package/dist/chunks/dropdown.57b2ea6f.js.map +0 -1
  234. package/dist/chunks/events.58c00e6d.js.map +0 -1
  235. package/dist/chunks/index.11b6dd35.js.map +0 -1
  236. package/dist/chunks/index.38752f78.js +0 -168
  237. package/dist/chunks/index.38752f78.js.map +0 -1
  238. package/dist/chunks/use-cached-selected-values.a9b0fb3d.js.map +0 -1
  239. /package/dist/@types/packages/{vue2 → core}/src/components/typography/typography.types.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- import { B as a } from "./chunks/index.ea65003b.js";
1
+ import { B as a } from "./chunks/index.9d7fb316.js";
2
2
  export {
3
3
  a as BentoFocusTrap
4
4
  };
@@ -1,14 +1,14 @@
1
- import { defineComponent as d, useSlots as h, computed as n, provide as O, toRef as C, openBlock as c, createBlock as v, resolveDynamicComponent as I, unref as e, withCtx as _, renderSlot as s, createCommentVNode as b, createElementBlock as p, createElementVNode as g, createVNode as L, normalizeClass as $ } from "vue";
1
+ import { defineComponent as m, useSlots as g, computed as i, provide as F, toRef as O, openBlock as l, createBlock as d, resolveDynamicComponent as S, unref as t, withCtx as _, renderSlot as a, createCommentVNode as p, createElementBlock as f, createElementVNode as L, normalizeClass as $, createVNode as C } from "vue";
2
2
  import { BentoAlert as B } from "./alert.js";
3
- import { F as S } from "./chunks/form-layout.types.a7a1438d.js";
4
- import { u as T } from "./chunks/use-has-slot.4d98bf29.js";
5
- import { _ as m } from "./chunks/_plugin-vue_export-helper.dad06003.js";
6
- import { B as f, c as E } from "./chunks/index.11b6dd35.js";
7
- import "./assets/index18.css";
8
- const N = {
3
+ import { F as I } from "./chunks/form-layout.types.a7a1438d.js";
4
+ import { u as h } from "./chunks/use-has-slot.4d98bf29.js";
5
+ import { _ as y } from "./chunks/_plugin-vue_export-helper.dad06003.js";
6
+ import { B as v, c as k } from "./chunks/index.ee15db35.js";
7
+ import "./assets/index45.css";
8
+ const E = {
9
9
  key: 1,
10
10
  class: "b-form-layout__actions-container"
11
- }, k = { class: "b-form-layout__actions" }, A = { class: "b-form-layout__actions" }, G = {}, R = /* @__PURE__ */ d({
11
+ }, N = { class: "b-form-layout__actions" }, A = { class: "b-form-layout__actions" }, G = {}, R = /* @__PURE__ */ m({
12
12
  ...G,
13
13
  __name: "form-layout",
14
14
  props: {
@@ -23,37 +23,37 @@ const N = {
23
23
  loading: { type: Boolean, default: !1 }
24
24
  },
25
25
  setup(o) {
26
- const t = o, l = h(), r = T(l), i = n(() => t.form ? "form" : "div"), u = n(() => r("actions-left") || r("actions-right"));
27
- return O(S, C(t, "loading")), (a, F) => (c(), v(I(e(i)), {
26
+ const e = o, n = g(), s = h(n), c = i(() => e.form ? "form" : "div"), u = i(() => s("actions-left") || s("actions-right"));
27
+ return F(I, O(e, "loading")), (r, T) => (l(), d(S(t(c)), {
28
28
  class: "b-form-layout",
29
29
  role: "form"
30
30
  }, {
31
31
  default: _(() => [
32
- e(r)("error-message") ? (c(), v(e(B), {
32
+ t(s)("error-message") ? (l(), d(t(B), {
33
33
  key: 0,
34
34
  class: "b-form-layout__error-message",
35
35
  type: "critical"
36
36
  }, {
37
37
  description: _(() => [
38
- s(a.$slots, "error-message", {}, void 0, !0)
38
+ a(r.$slots, "error-message", {}, void 0, !0)
39
39
  ]),
40
40
  _: 3
41
- })) : b("", !0),
42
- s(a.$slots, "default", {}, void 0, !0),
43
- e(u) ? (c(), p("div", N, [
44
- g("div", k, [
45
- s(a.$slots, "actions-left", {}, void 0, !0)
41
+ })) : p("", !0),
42
+ a(r.$slots, "default", {}, void 0, !0),
43
+ t(u) ? (l(), f("div", E, [
44
+ L("div", N, [
45
+ a(r.$slots, "actions-left", {}, void 0, !0)
46
46
  ]),
47
- g("div", A, [
48
- s(a.$slots, "actions-right", {}, void 0, !0)
47
+ L("div", A, [
48
+ a(r.$slots, "actions-right", {}, void 0, !0)
49
49
  ])
50
- ])) : b("", !0)
50
+ ])) : p("", !0)
51
51
  ]),
52
52
  _: 3
53
53
  }));
54
54
  }
55
55
  });
56
- const Q = /* @__PURE__ */ m(R, [["__scopeId", "data-v-f0c8b741"]]), w = ["warning", "critical", "highlight", "success"], D = { class: "b-form-layout-field-tip" }, P = {}, V = /* @__PURE__ */ d({
56
+ const Q = /* @__PURE__ */ y(R, [["__scopeId", "data-v-f0c8b741"]]), w = ["warning", "critical", "highlight", "success"], D = { class: "b-form-layout-field-tip" }, P = {}, V = /* @__PURE__ */ m({
57
57
  ...P,
58
58
  __name: "form-layout-field-tip",
59
59
  props: {
@@ -68,21 +68,23 @@ const Q = /* @__PURE__ */ m(R, [["__scopeId", "data-v-f0c8b741"]]), w = ["warnin
68
68
  }
69
69
  },
70
70
  setup(o) {
71
- return (t, l) => (c(), p("div", D, [
72
- s(t.$slots, "default", {}, void 0, !0),
73
- L(e(B), {
71
+ const e = g(), n = h(e);
72
+ return (s, c) => (l(), f("div", D, [
73
+ a(s.$slots, "default", {}, void 0, !0),
74
+ t(n)("message") ? (l(), d(t(B), {
75
+ key: 0,
74
76
  variant: "tip",
75
77
  type: o.type
76
78
  }, {
77
79
  description: _(() => [
78
- s(t.$slots, "message", {}, void 0, !0)
80
+ a(s.$slots, "message", {}, void 0, !0)
79
81
  ]),
80
82
  _: 3
81
- }, 8, ["type"])
83
+ }, 8, ["type"])) : p("", !0)
82
84
  ]));
83
85
  }
84
86
  });
85
- const W = /* @__PURE__ */ m(V, [["__scopeId", "data-v-16c7e9c2"]]), y = [
87
+ const W = /* @__PURE__ */ y(V, [["__scopeId", "data-v-84d68dd1"]]), b = [
86
88
  "100",
87
89
  "50",
88
90
  "33",
@@ -93,7 +95,7 @@ const W = /* @__PURE__ */ m(V, [["__scopeId", "data-v-16c7e9c2"]]), y = [
93
95
  "25-75",
94
96
  "50-50",
95
97
  "33-33-33"
96
- ], x = {}, U = /* @__PURE__ */ d({
98
+ ], x = {}, U = /* @__PURE__ */ m({
97
99
  ...x,
98
100
  __name: "form-layout-group",
99
101
  props: {
@@ -123,26 +125,26 @@ const W = /* @__PURE__ */ m(V, [["__scopeId", "data-v-16c7e9c2"]]), y = [
123
125
  layout: {
124
126
  type: String,
125
127
  default: "100",
126
- validator: (o) => y.includes(o)
128
+ validator: (o) => b.includes(o)
127
129
  }
128
130
  },
129
131
  setup(o) {
130
- const t = o, l = 100, r = n(
131
- () => y.includes(t.layout) ? t.layout : l
132
- ), i = n(() => ({
132
+ const e = o, n = 100, s = i(
133
+ () => b.includes(e.layout) ? e.layout : n
134
+ ), c = i(() => ({
133
135
  // Transform into column if the layout is unsupported
134
- "b-form-layout-group--column": !y.includes(t.layout),
136
+ "b-form-layout-group--column": !b.includes(e.layout),
135
137
  // Assings the correct layout class
136
- [`b-form-layout-group--${r.value}`]: !0
138
+ [`b-form-layout-group--${s.value}`]: !0
137
139
  }));
138
- return (u, a) => (c(), p("div", {
139
- class: $(["b-form-layout-group", e(i)])
140
+ return (u, r) => (l(), f("div", {
141
+ class: $(["b-form-layout-group", t(c)])
140
142
  }, [
141
- s(u.$slots, "default", {}, void 0, !0)
143
+ a(u.$slots, "default", {}, void 0, !0)
142
144
  ], 2));
143
145
  }
144
146
  });
145
- const X = /* @__PURE__ */ m(U, [["__scopeId", "data-v-0795cceb"]]), Y = {}, j = /* @__PURE__ */ d({
147
+ const X = /* @__PURE__ */ y(U, [["__scopeId", "data-v-0795cceb"]]), Y = {}, j = /* @__PURE__ */ m({
146
148
  ...Y,
147
149
  __name: "form-layout-title",
148
150
  props: {
@@ -160,43 +162,43 @@ const X = /* @__PURE__ */ m(U, [["__scopeId", "data-v-0795cceb"]]), Y = {}, j =
160
162
  * @values h1, h2, h3, h4, h5, h6, div, p, span
161
163
  */
162
164
  el: {
163
- type: f.props.el.type,
165
+ type: v.props.el.type,
164
166
  required: !0,
165
- validator: (o) => Object.values(E).includes(o)
167
+ validator: (o) => Object.values(k).includes(o)
166
168
  }
167
169
  },
168
170
  setup(o) {
169
- const t = o, l = h(), r = n(() => !t.subsection), i = T(l), u = n(() => ({
170
- "b-form-layout-title--subsection": t.subsection
171
+ const e = o, n = g(), s = i(() => !e.subsection), c = h(n), u = i(() => ({
172
+ "b-form-layout-title--subsection": e.subsection
171
173
  }));
172
- return (a, F) => (c(), p("div", {
173
- class: $(["b-form-layout-title", e(u)])
174
+ return (r, T) => (l(), f("div", {
175
+ class: $(["b-form-layout-title", t(u)])
174
176
  }, [
175
- L(e(f), {
177
+ C(t(v), {
176
178
  el: o.el,
177
179
  variant: "title",
178
- medium: e(r)
180
+ medium: t(s)
179
181
  }, {
180
182
  default: _(() => [
181
- s(a.$slots, "default", {}, void 0, !0)
183
+ a(r.$slots, "default", {}, void 0, !0)
182
184
  ]),
183
185
  _: 3
184
186
  }, 8, ["el", "medium"]),
185
- e(i)("description") ? (c(), v(e(f), {
187
+ t(c)("description") ? (l(), d(t(v), {
186
188
  key: 0,
187
189
  class: "b-form-layout-title__description",
188
190
  el: "span",
189
191
  wide: ""
190
192
  }, {
191
193
  default: _(() => [
192
- s(a.$slots, "description", {}, void 0, !0)
194
+ a(r.$slots, "description", {}, void 0, !0)
193
195
  ]),
194
196
  _: 3
195
- })) : b("", !0)
197
+ })) : p("", !0)
196
198
  ], 2));
197
199
  }
198
200
  });
199
- const Z = /* @__PURE__ */ m(j, [["__scopeId", "data-v-fbc939de"]]);
201
+ const Z = /* @__PURE__ */ y(j, [["__scopeId", "data-v-fbc939de"]]);
200
202
  export {
201
203
  Q as BentoFormLayout,
202
204
  W as BentoFormLayoutFieldTip,
@@ -1 +1 @@
1
- {"version":3,"file":"form-layout.js","sources":["../../vue2/src/components/form-layout/form-layout.vue","../../vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-tip.types.ts","../../vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue","../../vue2/src/components/form-layout/components/form-layout-group/form-layout-group.types.ts","../../vue2/src/components/form-layout/components/form-layout-group/form-layout-group.vue","../../vue2/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","<template>\n <div class=\"b-form-layout-group\" :class=\"conditionalClasses\">\n <slot></slot>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, PropType } from 'vue';\n import { BentoLayoutGroupProportions } from './form-layout-group.types';\n\n // Default proportion\n const DEFAULT_PROPORTION = 100;\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 // Sets DEFAULT_PROPORTION by default if `layout` is not in the list\n const computedLayout = computed(() =>\n BentoLayoutGroupProportions.includes(props.layout) ? props.layout : DEFAULT_PROPORTION\n );\n\n const conditionalClasses = computed(() => ({\n // Transform into column if the layout is unsupported\n 'b-form-layout-group--column': !BentoLayoutGroupProportions.includes(props.layout),\n // Assings the correct layout class\n [`b-form-layout-group--${computedLayout.value}`]: true,\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__$1","DEFAULT_PROPORTION","computedLayout","conditionalClasses","__default__","isSection"],"mappings":";;;;;;;;;;qFAsFIA,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oEC5CGK,IAAA,CAAA,WAAA,YAAA,aAAA,SAAA,6CCiDHC,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oECxCGC,IAAA;AAAA,EAAoC;AAAA,EACvC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAEJ,GCuDIC,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAnEAC,IAAA,KAkCAC,IAAAX;AAAA,MAAuB,MAAAQ,EAAA,SAAAP,EAAA,MAAA,IAAAA,EAAA,SAAAS;AAAA,IACiD,GAGxEE,IAAAZ,EAAA,OAAA;AAAA;AAAA,MAA2C,+BAAA,CAAAQ,EAAA,SAAAP,EAAA,MAAA;AAAA;AAAA,MAE0C,CAAA,wBAAAU,EAAA,OAAA,GAAA;AAAA,IAE/B,EAAA;;;;;;;;oECmBtDE,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;iBAvDAlB,IAAAC,EAAA,GAyBAkB,IAAAd,EAAA,MAAA,CAAAC,EAAA,UAAA,GACAJ,IAAAC,EAAAH,CAAA,GACAiB,IAAAZ,EAAA,OAAA;AAAA,MAA2C,mCAAAC,EAAA;AAAA,IACE,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"form-layout.js","sources":["../../vue2/src/components/form-layout/form-layout.vue","../../vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-tip.types.ts","../../vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue","../../vue2/src/components/form-layout/components/form-layout-group/form-layout-group.types.ts","../../vue2/src/components/form-layout/components/form-layout-group/form-layout-group.vue","../../vue2/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 v-if=\"hasSlot('message')\" 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, useSlots } from 'vue';\n import { BentoFormLayoutFieldTipTypeOption, BentoFormLayoutFieldTipTypeOptions } from './form-layout-tip.types';\n import { BentoAlert } from '@/components/alert';\n import { useHasSlot } from '@/composables/use-has-slot/use-has-slot';\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\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\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","<template>\n <div class=\"b-form-layout-group\" :class=\"conditionalClasses\">\n <slot></slot>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, PropType } from 'vue';\n import { BentoLayoutGroupProportions } from './form-layout-group.types';\n\n // Default proportion\n const DEFAULT_PROPORTION = 100;\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 // Sets DEFAULT_PROPORTION by default if `layout` is not in the list\n const computedLayout = computed(() =>\n BentoLayoutGroupProportions.includes(props.layout) ? props.layout : DEFAULT_PROPORTION\n );\n\n const conditionalClasses = computed(() => ({\n // Transform into column if the layout is unsupported\n 'b-form-layout-group--column': !BentoLayoutGroupProportions.includes(props.layout),\n // Assings the correct layout class\n [`b-form-layout-group--${computedLayout.value}`]: true,\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__$1","DEFAULT_PROPORTION","computedLayout","conditionalClasses","__default__","isSection"],"mappings":";;;;;;;;;;qFAsFIA,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oEC5CGK,IAAA,CAAA,WAAA,YAAA,aAAA,SAAA,6CCqDHC,IAAA,CAAA;;;;;;;;;;;;;;;AA3BA,UAAAZ,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA;;;;;;;;;;;;;;;;oEClBGa,IAAA;AAAA,EAAoC;AAAA,EACvC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAEJ,GCuDIC,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAnEAC,IAAA,KAkCAC,IAAAX;AAAA,MAAuB,MAAAQ,EAAA,SAAAP,EAAA,MAAA,IAAAA,EAAA,SAAAS;AAAA,IACiD,GAGxEE,IAAAZ,EAAA,OAAA;AAAA;AAAA,MAA2C,+BAAA,CAAAQ,EAAA,SAAAP,EAAA,MAAA;AAAA;AAAA,MAE0C,CAAA,wBAAAU,EAAA,OAAA,GAAA;AAAA,IAE/B,EAAA;;;;;;;;oECmBtDE,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;iBAvDAlB,IAAAC,EAAA,GAyBAkB,IAAAd,EAAA,MAAA,CAAAC,EAAA,UAAA,GACAJ,IAAAC,EAAAH,CAAA,GACAiB,IAAAZ,EAAA,OAAA;AAAA,MAA2C,mCAAAC,EAAA;AAAA,IACE,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/header.js CHANGED
@@ -1,17 +1,17 @@
1
1
  import { defineComponent as H, ref as I, openBlock as m, createElementBlock as w, createVNode as x, unref as _, createBlock as b, withCtx as g, renderSlot as G, toDisplayString as A, createCommentVNode as M, computed as O, resolveComponent as N, normalizeClass as q, createElementVNode as E, mergeProps as J, createTextVNode as R, createSlots as K } from "vue";
2
2
  import { u as Q } from "./chunks/use-has-slot.4d98bf29.js";
3
- import { B as V, c as X, a as Z } from "./chunks/index.11b6dd35.js";
3
+ import { B as V, c as X, a as Z } from "./chunks/index.ee15db35.js";
4
4
  import { u as F } from "./chunks/i18n.f7e6533e.js";
5
- import { B as ee } from "./chunks/button-actions-with-menu.a007b034.js";
5
+ import { B as ee } from "./chunks/button-actions-with-menu.4f311411.js";
6
6
  import { c as D, a as te } from "./chunks/index.86453263.js";
7
7
  import { r as v, t as c, e as C, g as L, d as oe, f as ne } from "./chunks/index.f55fdc32.js";
8
8
  import { e as ae } from "./chunks/index.fdf12170.js";
9
9
  import { e as re } from "./chunks/index.d80206ed.js";
10
- import { a as y } from "./chunks/index.bab8811d.js";
10
+ import { a as y } from "./chunks/index.a001a0a8.js";
11
11
  import { g as se } from "./chunks/unique-id.a2a2b458.js";
12
12
  import { I as ie } from "./chunks/info.550f9511.js";
13
13
  import { _ as W } from "./chunks/_plugin-vue_export-helper.dad06003.js";
14
- import "./assets/index15.css";
14
+ import "./assets/index20.css";
15
15
  function le(e, a) {
16
16
  v(2, arguments);
17
17
  var n = c(e), t = c(a), s = n.getFullYear() - t.getFullYear(), o = n.getMonth() - t.getMonth();
package/dist/index.js CHANGED
@@ -1,23 +1,23 @@
1
1
  import { shallowRef as f, ref as p } from "vue";
2
- import { t as c, c as x } from "./chunks/use-bento-toast-controller.98ca249a.js";
3
- import { u as E } from "./chunks/use-bento-toast-controller.98ca249a.js";
2
+ import { t as c, c as x } from "./chunks/use-bento-toast-controller.3dc4e113.js";
3
+ import { u as E } from "./chunks/use-bento-toast-controller.3dc4e113.js";
4
4
  import { BentoActionBar as P } from "./action-bar.js";
5
5
  import { BentoAccordion as V, BentoAccordionItem as k } from "./accordion.js";
6
6
  import { BentoAlert as M, BentoAlertEvent as G, BentoAlertTypeOption as A, BentoAlertVariant as O } from "./alert.js";
7
- import { a as z, b as j, B as N } from "./chunks/button.de5589fa.js";
7
+ import { a as z, b as j, B as N } from "./chunks/button.ae4760cd.js";
8
8
  import { BentoCard as Z, BentoCardBackground as U, BentoCardTitleSize as W } from "./card.js";
9
9
  import { BentoColumnOverflow as _, BentoDataGrid as q, BentoDatagridAriaSortValue as J, BentoDatagridEvent as Q, BentoDatagridSortDirection as X, BentoDatagridStyleState as Y } from "./data-grid.js";
10
10
  import { BentoDatePicker as ee, BentoDatePickerEvent as te } from "./date-picker.js";
11
- import { B as ne, a as re } from "./chunks/index.faec0854.js";
12
- import { B as Be, a as ie, u as me } from "./chunks/dropdown.57b2ea6f.js";
13
- import { B as pe } from "./chunks/index.98bbaed9.js";
14
- import { B as le, a as de } from "./chunks/checkbox.4c96cc23.js";
11
+ import { B as ne, a as re } from "./chunks/index.2d7b4511.js";
12
+ import { B as Be, a as ie, u as me } from "./chunks/dropdown.0ae3b842.js";
13
+ import { B as pe } from "./chunks/index.b18c78d6.js";
14
+ import { B as le, a as de } from "./chunks/checkbox.9c30c07b.js";
15
15
  import { BentoClickOutside as ce } from "./click-outside.js";
16
16
  import { BentoCodeSnippet as ye, BentoCodeSnippetEvent as Se, BentoCodeSnippetSupportedLanguage as ge, BentoCodeSnippetVariant as Te } from "./code-snippet.js";
17
17
  import { BentoCountry as ve } from "./country.js";
18
18
  import { c as be, B as he, a as Ie, u as Ee, b as Fe } from "./chunks/country.types.002caff2.js";
19
19
  import { BentoCurrency as Le, BentoCurrencyISOCode as Ve } from "./currency.js";
20
- import { B as we, a as Me } from "./chunks/index.8682bd04.js";
20
+ import { B as we, a as Me } from "./chunks/index.f9d081d2.js";
21
21
  import { BentoEmptyState as Ae, BentoEmptyStateImage as Oe, BentoEmptyStateImageVariant as Re, BentoEmptyStateVariant as ze } from "./empty-state.js";
22
22
  import { BentoFilterBar as Ne, BentoFilterBarEvent as Ke, BentoFilterEvent as Ze, BentoFilterItemType as Ue } from "./filter-bar.js";
23
23
  import { BentoFormLayout as He, BentoFormLayoutFieldTip as _e, BentoFormLayoutGroup as qe, BentoFormLayoutTitle as Je } from "./form-layout.js";
@@ -25,15 +25,15 @@ import { BentoImage as Xe, BentoImageAspectRatio as Ye, BentoImageObjectFit as $
25
25
  import { BentoInfoIcon as tt } from "./info-icon.js";
26
26
  import { BentoInputField as nt, BentoInputFieldElementPosition as rt, BentoInputFieldEvent as at, BentoInputFieldStateClass as Bt, BentoInputFieldType as it, BentoInputFieldVariant as mt } from "./input-field.js";
27
27
  import { BentoLoadingIndicator as pt, BentoLoadingIndicatorEvent as ut } from "./loading-indicator.js";
28
- import { B as dt, a as ft } from "./chunks/index.aa83aa48.js";
29
- import { B as xt, a as yt } from "./chunks/index.8b10ee32.js";
30
- import { d as gt, f as Tt, g as Ct, B as vt, e as Dt, c as bt, a as ht, b as It } from "./chunks/base-modal.310c4790.js";
28
+ import { B as dt, a as ft } from "./chunks/index.eb38a6c4.js";
29
+ import { B as xt, a as yt } from "./chunks/index.6bb6f38c.js";
30
+ import { d as gt, f as Tt, g as Ct, B as vt, e as Dt, c as bt, a as ht, b as It } from "./chunks/base-modal.4102f69d.js";
31
31
  import { BentoModalFullscreen as Ft, BentoModalFullscreenPage as Pt } from "./modal-fullscreen.js";
32
32
  import { BentoHeader as Vt } from "./header.js";
33
33
  import { BentoPagination as wt } from "./pagination.js";
34
- import { B as Gt } from "./chunks/payment-method.26fa5509.js";
34
+ import { B as Gt } from "./chunks/payment-method.d5595a7c.js";
35
35
  import { BentoPaymentMethodType as Ot } from "./payment-method.js";
36
- import { a as zt, B as jt } from "./chunks/index.bab8811d.js";
36
+ import { a as zt, B as jt } from "./chunks/index.a001a0a8.js";
37
37
  import { BentoRadioButton as Kt, BentoRadioGroup as Zt, BentoRadioGroupVariant as Ut } from "./radio-group.js";
38
38
  import { BentoSearchBar as Ht, BentoSearchBarEvent as _t, BentoSearchBarInternalEvent as qt } from "./search-bar.js";
39
39
  import { BentoSecondaryNav as Qt } from "./secondary-nav.js";
@@ -42,7 +42,7 @@ import { BentoSelectionCard as to, BentoSelectionCardGroup as oo, BentoSelection
42
42
  import { BentoSidepanel as ao, BentoSidepanelEvent as Bo, BentoSidepanelPage as io } from "./sidepanel.js";
43
43
  import { BentoStatus as so, BentoStatusVariant as po } from "./status.js";
44
44
  import { BentoStep as lo, BentoStepper as fo, BentoStepperTypeOption as co, BentoStepperVariantOption as xo } from "./stepper.js";
45
- import { B as So, a as go } from "./chunks/index.38752f78.js";
45
+ import { B as So, a as go } from "./chunks/index.2fcd1233.js";
46
46
  import { BentoSummaryGrid as Co, BentoSummaryGridItemAmount as vo, BentoSummaryGridItemCustom as Do, BentoSummaryGridItemNumeric as bo, BentoSummaryGridItemPercentage as ho, BentoSummaryGridItemSize as Io, BentoSummaryGridItemText as Eo, BentoSummaryGridItemTrendDirection as Fo } from "./summary-grid.js";
47
47
  import { BentoTab as Lo, BentoTabs as Vo } from "./tabs.js";
48
48
  import { BentoTag as wo, BentoTagVariant as Mo } from "./tag.js";
@@ -50,25 +50,26 @@ import { BentoTextarea as Ao } from "./textarea.js";
50
50
  import { BentoTimeline as Ro, BentoTimelineGapUnit as zo, BentoTimelineItem as jo, BentoTimelineItemVariant as No, BentoTimelineShowMorePlacement as Ko, BentoTimelineStatus as Zo } from "./timeline.js";
51
51
  import { BentoToast as Wo } from "./toast.js";
52
52
  import { BentoToggle as _o, BentoToggleLabelPosition as qo, BentoTogglePropClass as Jo } from "./toggle.js";
53
- import { B as Xo, c as Yo, b as $o, a as en } from "./chunks/index.11b6dd35.js";
53
+ import { B as Xo, c as Yo, b as $o, a as en } from "./chunks/index.ee15db35.js";
54
54
  import * as n from "zod";
55
55
  import { u as on } from "./chunks/use-click-outside.941d1600.js";
56
- import { BentoDataGridTemplate as rn } from "./data-grid-template.js";
57
- import { D as Bn } from "./chunks/date-input.9186a0bf.js";
58
- import { a as sn, B as pn } from "./chunks/keyboard-navigation.ca47dfa8.js";
59
- import { c as ln, b as dn, c as fn, b as cn } from "./chunks/use-cached-selected-values.a9b0fb3d.js";
60
- import { B as yn } from "./chunks/dropdown-default-textbox.424e0eb6.js";
61
- import { b as gn, B as Tn, a as Cn } from "./chunks/tooltip.e29f7d7e.js";
62
- import { B as Dn, c as bn, a as hn, b as In } from "./chunks/button-actions.adc0a2fe.js";
63
- import { B as Fn, a as Pn } from "./chunks/loading-button.2db95771.js";
64
- import { BentoToggleButton as Vn } from "./button.js";
65
- import { b as wn, b as Mn } from "./chunks/calendar.73f5b904.js";
66
- import { BentoDropdownAvatar as An, BentoDropdownCountry as On, BentoDropdownCurrency as Rn, BentoDropdownPaymentMethod as zn, BentoDropdownTag as jn } from "./dropdown.js";
67
- import { C as Kn } from "./chunks/checkbox-input.99336948.js";
68
- import { BentoCheckboxGroup as Un, BentoCheckboxGroupVariant as Wn } from "./checkbox.js";
69
- import { BentoModal as _n } from "./modal.js";
70
- import { R as Jn } from "./chunks/radio-input.1dd15424.js";
71
- import { BentoTutorial as Xn } from "./tutorial.js";
56
+ import { BentoDashboardSection as rn, BentoDashboardTemplate as an } from "./dashboard-template.js";
57
+ import { BentoDataGridTemplate as mn } from "./data-grid-template.js";
58
+ import { D as pn } from "./chunks/date-input.9186a0bf.js";
59
+ import { a as ln, B as dn } from "./chunks/keyboard-navigation.bbc3d15c.js";
60
+ import { c as cn, b as xn, c as yn, b as Sn } from "./chunks/use-cached-selected-values.3c312296.js";
61
+ import { B as Tn } from "./chunks/dropdown-default-textbox.cda0798f.js";
62
+ import { b as vn, B as Dn, a as bn } from "./chunks/tooltip.36172265.js";
63
+ import { B as In, c as En, a as Fn, b as Pn } from "./chunks/button-actions.82163994.js";
64
+ import { B as Vn, a as kn } from "./chunks/loading-button.6b81b546.js";
65
+ import { BentoToggleButton as Mn } from "./button.js";
66
+ import { b as An, b as On } from "./chunks/calendar.a9c5a68c.js";
67
+ import { BentoDropdownAvatar as zn, BentoDropdownCountry as jn, BentoDropdownCurrency as Nn, BentoDropdownPaymentMethod as Kn, BentoDropdownTag as Zn } from "./dropdown.js";
68
+ import { C as Wn } from "./chunks/checkbox-input.99336948.js";
69
+ import { BentoCheckboxGroup as _n, BentoCheckboxGroupVariant as qn } from "./checkbox.js";
70
+ import { BentoModal as Qn } from "./modal.js";
71
+ import { R as Yn } from "./chunks/radio-input.1dd15424.js";
72
+ import { BentoTutorial as er } from "./tutorial.js";
72
73
  function v(t) {
73
74
  return t;
74
75
  }
@@ -128,10 +129,10 @@ export {
128
129
  A as BentoAlertTypeOption,
129
130
  O as BentoAlertVariant,
130
131
  z as BentoButton,
131
- Dn as BentoButtonActions,
132
- bn as BentoButtonActionsLayout,
133
- hn as BentoButtonActionsLayoutBasic,
134
- In as BentoButtonActionsLayoutExtended,
132
+ In as BentoButtonActions,
133
+ En as BentoButtonActionsLayout,
134
+ Fn as BentoButtonActionsLayoutBasic,
135
+ Pn as BentoButtonActionsLayoutExtended,
135
136
  j as BentoButtonPropClass,
136
137
  N as BentoButtonVariant,
137
138
  Z as BentoCard,
@@ -139,11 +140,11 @@ export {
139
140
  W as BentoCardTitleSize,
140
141
  le as BentoCheckbox,
141
142
  de as BentoCheckboxEvent,
142
- Un as BentoCheckboxGroup,
143
- Wn as BentoCheckboxGroupVariant,
144
- Kn as BentoCheckboxState,
143
+ _n as BentoCheckboxGroup,
144
+ qn as BentoCheckboxGroupVariant,
145
+ Wn as BentoCheckboxState,
145
146
  ce as BentoClickOutside,
146
- yn as BentoClickOutsideDirective,
147
+ Tn as BentoClickOutsideDirective,
147
148
  ye as BentoCodeSnippet,
148
149
  Se as BentoCodeSnippetEvent,
149
150
  ge as BentoCodeSnippetSupportedLanguage,
@@ -154,8 +155,10 @@ export {
154
155
  he as BentoCountryVariant,
155
156
  Le as BentoCurrency,
156
157
  Ve as BentoCurrencyISOCode,
158
+ rn as BentoDashboardSection,
159
+ an as BentoDashboardTemplate,
157
160
  q as BentoDataGrid,
158
- rn as BentoDataGridTemplate,
161
+ mn as BentoDataGridTemplate,
159
162
  J as BentoDatagridAriaSortValue,
160
163
  Q as BentoDatagridEvent,
161
164
  X as BentoDatagridSortDirection,
@@ -164,20 +167,20 @@ export {
164
167
  Me as BentoDateFormat,
165
168
  ee as BentoDatePicker,
166
169
  te as BentoDatePickerEvent,
167
- wn as BentoDatePickerFirstDayOfWeek,
170
+ An as BentoDatePickerFirstDayOfWeek,
168
171
  ne as BentoDateRangePicker,
169
172
  re as BentoDateRangePickerEvent,
170
- Mn as BentoDateRangePickerFirstDayOfWeek,
173
+ On as BentoDateRangePickerFirstDayOfWeek,
171
174
  pe as BentoDivider,
172
175
  Be as BentoDropdown,
173
- An as BentoDropdownAvatar,
174
- On as BentoDropdownCountry,
175
- Rn as BentoDropdownCurrency,
176
- ln as BentoDropdownEvent,
177
- dn as BentoDropdownLazyLoadType,
178
- zn as BentoDropdownPaymentMethod,
176
+ zn as BentoDropdownAvatar,
177
+ jn as BentoDropdownCountry,
178
+ Nn as BentoDropdownCurrency,
179
+ cn as BentoDropdownEvent,
180
+ xn as BentoDropdownLazyLoadType,
181
+ Kn as BentoDropdownPaymentMethod,
179
182
  ie as BentoDropdownSize,
180
- jn as BentoDropdownTag,
183
+ Zn as BentoDropdownTag,
181
184
  Ae as BentoEmptyState,
182
185
  Oe as BentoEmptyStateImage,
183
186
  Re as BentoEmptyStateImageVariant,
@@ -201,19 +204,19 @@ export {
201
204
  Bt as BentoInputFieldStateClass,
202
205
  it as BentoInputFieldType,
203
206
  mt as BentoInputFieldVariant,
204
- sn as BentoKeyboardNavigationDirective,
205
- pn as BentoKeyboardNavigationKeyDownEvent,
207
+ ln as BentoKeyboardNavigationDirective,
208
+ dn as BentoKeyboardNavigationKeyDownEvent,
206
209
  dt as BentoLink,
207
210
  ft as BentoLinkVariant,
208
- fn as BentoListboxEvent,
209
- cn as BentoListboxLazyLoadType,
210
- Fn as BentoLoadingButton,
211
- Pn as BentoLoadingButtonState,
211
+ yn as BentoListboxEvent,
212
+ Sn as BentoListboxLazyLoadType,
213
+ Vn as BentoLoadingButton,
214
+ kn as BentoLoadingButtonState,
212
215
  pt as BentoLoadingIndicator,
213
216
  ut as BentoLoadingIndicatorEvent,
214
217
  xt as BentoMenu,
215
218
  yt as BentoMenuEvent,
216
- _n as BentoModal,
219
+ Qn as BentoModal,
217
220
  gt as BentoModalColumnLayoutVariant,
218
221
  Tt as BentoModalDialogType,
219
222
  Ct as BentoModalEvent,
@@ -230,7 +233,7 @@ export {
230
233
  zt as BentoPopover,
231
234
  jt as BentoPopoverPositions,
232
235
  Kt as BentoRadioButton,
233
- Jn as BentoRadioButtonStateClass,
236
+ Yn as BentoRadioButtonStateClass,
234
237
  Zt as BentoRadioGroup,
235
238
  Ut as BentoRadioGroupVariant,
236
239
  Ht as BentoSearchBar,
@@ -274,18 +277,18 @@ export {
274
277
  Zo as BentoTimelineStatus,
275
278
  Wo as BentoToast,
276
279
  _o as BentoToggle,
277
- Vn as BentoToggleButton,
280
+ Mn as BentoToggleButton,
278
281
  qo as BentoToggleLabelPosition,
279
282
  Jo as BentoTogglePropClass,
280
- gn as BentoTooltipDirective,
281
- Tn as BentoTooltipPosition,
282
- Cn as BentoTooltipState,
283
- Xn as BentoTutorial,
283
+ vn as BentoTooltipDirective,
284
+ Dn as BentoTooltipPosition,
285
+ bn as BentoTooltipState,
286
+ er as BentoTutorial,
284
287
  Xo as BentoTypography,
285
288
  Yo as BentoTypographyElement,
286
289
  $o as BentoTypographyModifier,
287
290
  en as BentoTypographyVariant,
288
- Bn as DateFormat,
291
+ pn as DateFormat,
289
292
  b as default,
290
293
  v as toTypedSchema,
291
294
  E as useBentoToastController,
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../vue2/src/composables/use-form-validate/use-form.ts","../../vue2/src/composables/use-bento-toast-controller/install.ts","../../vue2/src/install.ts"],"sourcesContent":["import { Ref, ref, shallowRef } from 'vue';\nimport * as z from 'zod';\nimport type { ZodSchema } from 'zod';\nimport { ErrorBag, UseForm } from './use-form.types';\n\n/**\n * Composable that tansforms a Zod schema into a Typed Schema that can be used alongside with {@see useForm}.\n *\n * This is meant to simulate the behavior of {@link @vee-validate/zod} {@see https://vee-validate.logaretm.com/v4/integrations/zod-schema-validation}.\n * Function that transform Zod’s schemas into something that can be understood by vee-validate\n *\n * @param {T extends ZodSchema} formSchema Zod schema to be transformed into a `vee-validate` schema\n * @returns {UseForm<T>} schema Schema transformed\n */\nexport function toTypedSchema<T extends ZodSchema>(formSchema: T) {\n return formSchema;\n}\n\n/**\n * Finds and returns the initial values of each of the values defined in the schema so that they\n * can be transformed into a reactive element.\n * @param {ZodSchema} schema Zod validation schema containing the definitions of each value to be used in the form\n * @returns Object with the items defined in the schema and their (default) values\n *\n * @example\n * const validationSchema = toTypedSchema(\n * z.object({\n * name: z\n * .string()\n * .min(3, { message: 'Name is required' })\n * .startsWith('Jane')\n * .max(4, { message: 'Name cannot be longer than 4 characters' })\n * .default('Joe'),\n * })\n * );\n * getInitialFormValues(validationSchema)\n *\n * Will return:\n *\n * {\n * name: 'Joe'\n * }\n *\n */\nfunction getInitialFormValues<T extends ZodSchema>(schema: T): z.infer<typeof schema> {\n if (!!z && schema instanceof z.ZodObject) {\n return Object.fromEntries(\n Object.entries(schema.shape).map(([key, value]) => {\n if (!!z && value instanceof z.ZodDefault) {\n // eslint-disable-next-line no-underscore-dangle\n return [key, value._def.defaultValue()];\n }\n\n if (!!z && value instanceof z.ZodObject) {\n return [key, getInitialFormValues(value)];\n }\n\n return [key, undefined];\n })\n ) as z.infer<typeof schema>;\n }\n\n return undefined;\n}\n\n/**\n * Constructs a path with dot paths for arrays to use brackets to be compatible with vee-validate path syntax\n * @param issue List of nested path elements\n * @returns Path with dots\n */\nfunction normalizeFormPath(issue: z.ZodIssue) {\n return issue.path.join('.');\n}\n\n/**\n * Composable that facilitates validating form data for Vue2 & Vue3 implementations with FormLayout\n * to ease the migration to Vue3.\n *\n * For Vue3 implementations use Vee-Validate.\n *\n * This provides a simplified version of Vee-Validate v4 implemented with Zod to validate a form schema.\n * It returns reactive values that can be used directly in form input elements with 'v-model' alongside\n * with functions to \"reset\" the data (sets values to default value) and a function to execute the\n * successful form validation process (through a callback).\n *\n * @param {UseForm<T>} props Form configuration object\n * @param {T extends ZodSchema} props.validationSchema Zod typed validation schema\n * @returns {Object} response - Composable with reactive form values and errors, and functions to handle the reactive data\n * @returns {Ref<ErrorBag<T>>} response.errorBag Object with all the form values and an array of each one of the errors (if any) per value\n * @returns {Ref<T>} response.errors Object with all the form values and the first error found for that field (if any)\n * @returns {Ref<T>} response.values Object with all the form values and their current value\n * @returns {() => void} response.handleReset Resets the form values to default (initial values) when it gets called\n * @returns {(callback: (values: T) => void) => () => void} response.submitForm Validates the data set in {response.values} and sets errors (if found) inside {response.errors} and {response.errorBag}.\n * When the validation is successful it calls the callback so the submit process can continue\n *\n * @example\n * const validationSchema = toTypedSchema(\n * z.object({\n * name: z\n * .string()\n * .min(3, { message: 'Name is required' })\n * .startsWith('Jane')\n * .max(4, { message: 'Name cannot be longer than 4 characters' })\n * .default('Joe'),\n * })\n * );\n *\n * const { values, errors, errorBag, submitForm, handleReset } = useForm({\n * validationSchema\n * });\n * const handleSubmit = submitForm(() => {\n * // Send data to API here\n * })\n *\n */\nexport function useForm<T extends ZodSchema>({ validationSchema }: UseForm<T>) {\n // Errors per field\n const errors = shallowRef<z.infer<typeof validationSchema>>({});\n // All errors per field\n const errorBag: Ref<ErrorBag<z.infer<typeof validationSchema>>> = ref({});\n const values = ref(getInitialFormValues(validationSchema));\n\n const cleanErrors = () => {\n errors.value = {};\n errorBag.value = {};\n };\n\n const resetForm = () => {\n cleanErrors();\n values.value = getInitialFormValues<T>(validationSchema);\n };\n\n const submitForm = submitted => () => {\n cleanErrors();\n\n // Run validations on the form data through the schema\n const validSchema = validationSchema.safeParse(values.value);\n\n // Update errors\n if (!validSchema.success) {\n (validSchema as z.SafeParseError<T>).error.issues.forEach(error => {\n const path = normalizeFormPath(error);\n\n // Add the first ocurrance of a fild error to the \"errors\" object\n if (!errors.value[path]) {\n errors.value[path] = error.message;\n }\n\n // Add each error to the \"errorBag\" per field array\n if (!errorBag.value[path]) {\n errorBag.value[path] = [error.message];\n } else {\n errorBag.value[path].push(error.message);\n }\n });\n } else {\n submitted(values.value);\n }\n };\n\n return {\n // Values\n errorBag,\n errors,\n values,\n\n // Methods\n handleReset: () => resetForm(),\n submitForm,\n };\n}\n","import { type App, isVue2, type Vue2 } from 'vue-demi';\nimport { createToastStack, toastStackInjectionKey } from './toast-stack';\n\n/**\n * This function is used to create and register global reactive state necessary fro the Toasts to operate.\n * @param {Vue} Vue A context application to register global state with.\n */\nexport default Vue => {\n if (isVue2) {\n // Add toast stack as a global property as there is no \"app.provide\" functionality in Vue2\n // eslint-disable-next-line no-param-reassign -- this is an official way of setting up instance properties on Vue\n (Vue as typeof Vue2).prototype[toastStackInjectionKey] = createToastStack();\n } else {\n (Vue as App).provide(toastStackInjectionKey, createToastStack());\n }\n};\n","import type { PluginObject } from 'vue';\nimport installToast from './composables/use-bento-toast-controller/install';\n\nexport enum BentoTheme {\n LEGACY = 'b-legacy-theme',\n STYLEGUIDE = 'b-styleguide-theme',\n BENTO = '',\n}\n\ninterface BentoVuePlugin {\n theme: BentoTheme;\n withToast: boolean;\n}\n\nconst setTheme = (theme: BentoTheme) => {\n document.body.classList.add(theme);\n};\n\nconst plugin: PluginObject<BentoVuePlugin> = {\n install: async (Vue, options: { theme: BentoTheme; withToast: boolean; withUtilityClasses: boolean }) => {\n if (options?.withToast) {\n installToast(Vue);\n }\n // Make sure to put all awaited CSS imports below this point and not above!\n if (options?.theme === BentoTheme.LEGACY) {\n setTheme(BentoTheme.LEGACY);\n await import('@adyen/bento-design-tokens/dist/css/bento/variables-legacy.css');\n } else if (options?.theme === BentoTheme.STYLEGUIDE) {\n setTheme(BentoTheme.STYLEGUIDE);\n await import('@adyen/bento-design-tokens/dist/css/bento/variables-styleguide.css');\n } else {\n await import('@adyen/bento-design-tokens/dist/css/bento/variables.css');\n }\n\n if (options?.withUtilityClasses) {\n await import('@adyen/bento-design-tokens/dist/css/bento/utility.css');\n }\n },\n};\n\nexport default plugin;\n"],"names":["toTypedSchema","formSchema","getInitialFormValues","schema","z","key","value","normalizeFormPath","issue","useForm","validationSchema","errors","shallowRef","errorBag","ref","values","cleanErrors","resetForm","validSchema","submitted","error","path","installToast","Vue","toastStackInjectionKey","createToastStack","setTheme","theme","plugin","options"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcO,SAASA,EAAmCC,GAAe;AACvD,SAAAA;AACX;AA4BA,SAASC,EAA0CC,GAAmC;AAClF,MAAMC,KAAKD,aAAkBC,EAAE;AAC3B,WAAO,OAAO;AAAA,MACV,OAAO,QAAQD,EAAO,KAAK,EAAE,IAAI,CAAC,CAACE,GAAKC,CAAK,MACnCF,KAAKE,aAAiBF,EAAE,aAEnB,CAACC,GAAKC,EAAM,KAAK,aAAc,CAAA,IAGpCF,KAAKE,aAAiBF,EAAE,YACnB,CAACC,GAAKH,EAAqBI,CAAK,CAAC,IAGrC,CAACD,GAAK,MAAS,CACzB;AAAA,IAAA;AAKb;AAOA,SAASE,EAAkBC,GAAmB;AACnC,SAAAA,EAAM,KAAK,KAAK,GAAG;AAC9B;AA2CgB,SAAAC,EAA6B,EAAE,kBAAAC,KAAgC;AAErE,QAAAC,IAASC,EAA6C,CAAA,CAAE,GAExDC,IAA4DC,EAAI,CAAA,CAAE,GAClEC,IAASD,EAAIZ,EAAqBQ,CAAgB,CAAC,GAEnDM,IAAc,MAAM;AACtB,IAAAL,EAAO,QAAQ,IACfE,EAAS,QAAQ;EAAC,GAGhBI,IAAY,MAAM;AACR,IAAAD,KACLD,EAAA,QAAQb,EAAwBQ,CAAgB;AAAA,EAAA;AA+BpD,SAAA;AAAA;AAAA,IAEH,UAAAG;AAAA,IACA,QAAAF;AAAA,IACA,QAAAI;AAAA;AAAA,IAGA,aAAa,MAAME,EAAU;AAAA,IAC7B,YApCe,OAAa,MAAM;AACtB,MAAAD;AAGZ,YAAME,IAAcR,EAAiB,UAAUK,EAAO,KAAK;AAGvD,MAACG,EAAY,UAiBbC,EAAUJ,EAAO,KAAK,IAhBrBG,EAAoC,MAAM,OAAO,QAAQ,CAASE,MAAA;AACzD,cAAAC,IAAOd,EAAkBa,CAAK;AAGpC,QAAKT,EAAO,MAAMU,CAAI,MACXV,EAAA,MAAMU,CAAI,IAAID,EAAM,UAI1BP,EAAS,MAAMQ,CAAI,IAGpBR,EAAS,MAAMQ,CAAI,EAAE,KAAKD,EAAM,OAAO,IAFvCP,EAAS,MAAMQ,CAAI,IAAI,CAACD,EAAM,OAAO;AAAA,MAGzC,CACH;AAAA,IAGL;AAAA,EAWA;AAER;ACnKA,MAAeE,IAAA,CAAOC,MAAA;AAMb,EAAAA,EAAY,QAAQC,GAAwBC,EAAkB,CAAA;AAEvE,GCDMC,IAAW,CAACC,MAAsB;AAC3B,WAAA,KAAK,UAAU,IAAIA,CAAK;AACrC,GAEMC,IAAuC;AAAA,EACzC,SAAS,OAAOL,GAAKM,MAAoF;AACrG,IAAIA,KAAA,QAAAA,EAAS,aACTP,EAAaC,CAAG,IAGhBM,KAAA,gBAAAA,EAAS,WAAU,oBACnBH;AAAA,MAAS;AAAA;AAAA,IAAiB,GAC1B,MAAM,OAAO,qEAAgE,MACtEG,KAAA,gBAAAA,EAAS,WAAU,wBAC1BH;AAAA,MAAS;AAAA;AAAA,IAAqB,GAC9B,MAAM,OAAO,yEAAoE,KAEjF,MAAM,OAAO,8DAAyD,GAGtEG,KAAA,QAAAA,EAAS,sBACT,MAAM,OAAO,4DAAuD;AAAA,EAE5E;AACJ;"}
1
+ {"version":3,"file":"index.js","sources":["../../vue2/src/composables/use-form-validate/use-form.ts","../../vue2/src/composables/use-bento-toast-controller/install.ts","../../vue2/src/install.ts"],"sourcesContent":["import { Ref, ref, shallowRef } from 'vue';\nimport * as z from 'zod';\nimport type { ZodSchema } from 'zod';\nimport { ErrorBag, UseForm } from './use-form.types';\n\n/**\n * Composable that tansforms a Zod schema into a Typed Schema that can be used alongside with {@see useForm}.\n *\n * This is meant to simulate the behavior of {@link @vee-validate/zod} {@see https://vee-validate.logaretm.com/v4/integrations/zod-schema-validation}.\n * Function that transform Zod’s schemas into something that can be understood by vee-validate\n *\n * @param {T extends ZodSchema} formSchema Zod schema to be transformed into a `vee-validate` schema\n * @returns {UseForm<T>} schema Schema transformed\n */\nexport function toTypedSchema<T extends ZodSchema>(formSchema: T) {\n return formSchema;\n}\n\n/**\n * Finds and returns the initial values of each of the values defined in the schema so that they\n * can be transformed into a reactive element.\n * @param {ZodSchema} schema Zod validation schema containing the definitions of each value to be used in the form\n * @returns Object with the items defined in the schema and their (default) values\n *\n * @example\n * const validationSchema = toTypedSchema(\n * z.object({\n * name: z\n * .string()\n * .min(3, { message: 'Name is required' })\n * .startsWith('Jane')\n * .max(4, { message: 'Name cannot be longer than 4 characters' })\n * .default('Joe'),\n * })\n * );\n * getInitialFormValues(validationSchema)\n *\n * Will return:\n *\n * {\n * name: 'Joe'\n * }\n *\n */\nfunction getInitialFormValues<T extends ZodSchema>(schema: T): z.infer<typeof schema> {\n if (!!z && schema instanceof z.ZodObject) {\n return Object.fromEntries(\n Object.entries(schema.shape).map(([key, value]) => {\n if (!!z && value instanceof z.ZodDefault) {\n // eslint-disable-next-line no-underscore-dangle\n return [key, value._def.defaultValue()];\n }\n\n if (!!z && value instanceof z.ZodObject) {\n return [key, getInitialFormValues(value)];\n }\n\n return [key, undefined];\n })\n ) as z.infer<typeof schema>;\n }\n\n return undefined;\n}\n\n/**\n * Constructs a path with dot paths for arrays to use brackets to be compatible with vee-validate path syntax\n * @param issue List of nested path elements\n * @returns Path with dots\n */\nfunction normalizeFormPath(issue: z.ZodIssue) {\n return issue.path.join('.');\n}\n\n/**\n * Composable that facilitates validating form data for Vue2 & Vue3 implementations with FormLayout\n * to ease the migration to Vue3.\n *\n * For Vue3 implementations use Vee-Validate.\n *\n * This provides a simplified version of Vee-Validate v4 implemented with Zod to validate a form schema.\n * It returns reactive values that can be used directly in form input elements with 'v-model' alongside\n * with functions to \"reset\" the data (sets values to default value) and a function to execute the\n * successful form validation process (through a callback).\n *\n * @param {UseForm<T>} props Form configuration object\n * @param {T extends ZodSchema} props.validationSchema Zod typed validation schema\n * @returns {Object} response - Composable with reactive form values and errors, and functions to handle the reactive data\n * @returns {Ref<ErrorBag<T>>} response.errorBag Object with all the form values and an array of each one of the errors (if any) per value\n * @returns {Ref<T>} response.errors Object with all the form values and the first error found for that field (if any)\n * @returns {Ref<T>} response.values Object with all the form values and their current value\n * @returns {() => void} response.handleReset Resets the form values to default (initial values) when it gets called\n * @returns {(callback: (values: T) => void) => () => void} response.submitForm Validates the data set in {response.values} and sets errors (if found) inside {response.errors} and {response.errorBag}.\n * When the validation is successful it calls the callback so the submit process can continue\n *\n * @example\n * const validationSchema = toTypedSchema(\n * z.object({\n * name: z\n * .string()\n * .min(3, { message: 'Name is required' })\n * .startsWith('Jane')\n * .max(4, { message: 'Name cannot be longer than 4 characters' })\n * .default('Joe'),\n * })\n * );\n *\n * const { values, errors, errorBag, submitForm, handleReset } = useForm({\n * validationSchema\n * });\n * const handleSubmit = submitForm(() => {\n * // Send data to API here\n * })\n *\n */\nexport function useForm<T extends ZodSchema>({ validationSchema }: UseForm<T>) {\n // Errors per field\n const errors = shallowRef<z.infer<typeof validationSchema>>({});\n // All errors per field\n const errorBag: Ref<ErrorBag<z.infer<typeof validationSchema>>> = ref({});\n const values = ref(getInitialFormValues(validationSchema));\n\n const cleanErrors = () => {\n errors.value = {};\n errorBag.value = {};\n };\n\n const resetForm = () => {\n cleanErrors();\n values.value = getInitialFormValues<T>(validationSchema);\n };\n\n const submitForm = submitted => () => {\n cleanErrors();\n\n // Run validations on the form data through the schema\n const validSchema = validationSchema.safeParse(values.value);\n\n // Update errors\n if (!validSchema.success) {\n (validSchema as z.SafeParseError<T>).error.issues.forEach(error => {\n const path = normalizeFormPath(error);\n\n // Add the first ocurrance of a fild error to the \"errors\" object\n if (!errors.value[path]) {\n errors.value[path] = error.message;\n }\n\n // Add each error to the \"errorBag\" per field array\n if (!errorBag.value[path]) {\n errorBag.value[path] = [error.message];\n } else {\n errorBag.value[path].push(error.message);\n }\n });\n } else {\n submitted(values.value);\n }\n };\n\n return {\n // Values\n errorBag,\n errors,\n values,\n\n // Methods\n handleReset: () => resetForm(),\n submitForm,\n };\n}\n","import { type App, isVue2, type Vue2 } from 'vue-demi';\nimport { createToastStack, toastStackInjectionKey } from './toast-stack';\n\n/**\n * This function is used to create and register global reactive state necessary fro the Toasts to operate.\n * @param {Vue} Vue A context application to register global state with.\n */\nexport default Vue => {\n if (isVue2) {\n // Add toast stack as a global property as there is no \"app.provide\" functionality in Vue2\n // eslint-disable-next-line no-param-reassign -- this is an official way of setting up instance properties on Vue\n (Vue as typeof Vue2).prototype[toastStackInjectionKey] = createToastStack();\n } else {\n (Vue as App).provide(toastStackInjectionKey, createToastStack());\n }\n};\n","import type { PluginObject } from 'vue';\nimport installToast from './composables/use-bento-toast-controller/install';\n\nexport enum BentoTheme {\n LEGACY = 'b-legacy-theme',\n STYLEGUIDE = 'b-styleguide-theme',\n BENTO = '',\n}\n\ninterface BentoVuePlugin {\n theme: BentoTheme;\n withToast: boolean;\n}\n\nconst setTheme = (theme: BentoTheme) => {\n document.body.classList.add(theme);\n};\n\nconst plugin: PluginObject<BentoVuePlugin> = {\n install: async (Vue, options: { theme: BentoTheme; withToast: boolean; withUtilityClasses: boolean }) => {\n if (options?.withToast) {\n installToast(Vue);\n }\n // Make sure to put all awaited CSS imports below this point and not above!\n if (options?.theme === BentoTheme.LEGACY) {\n setTheme(BentoTheme.LEGACY);\n await import('@adyen/bento-design-tokens/dist/css/bento/variables-legacy.css');\n } else if (options?.theme === BentoTheme.STYLEGUIDE) {\n setTheme(BentoTheme.STYLEGUIDE);\n await import('@adyen/bento-design-tokens/dist/css/bento/variables-styleguide.css');\n } else {\n await import('@adyen/bento-design-tokens/dist/css/bento/variables.css');\n }\n\n if (options?.withUtilityClasses) {\n await import('@adyen/bento-design-tokens/dist/css/bento/utility.css');\n }\n },\n};\n\nexport default plugin;\n"],"names":["toTypedSchema","formSchema","getInitialFormValues","schema","z","key","value","normalizeFormPath","issue","useForm","validationSchema","errors","shallowRef","errorBag","ref","values","cleanErrors","resetForm","validSchema","submitted","error","path","installToast","Vue","toastStackInjectionKey","createToastStack","setTheme","theme","plugin","options"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcO,SAASA,EAAmCC,GAAe;AACvD,SAAAA;AACX;AA4BA,SAASC,EAA0CC,GAAmC;AAClF,MAAMC,KAAKD,aAAkBC,EAAE;AAC3B,WAAO,OAAO;AAAA,MACV,OAAO,QAAQD,EAAO,KAAK,EAAE,IAAI,CAAC,CAACE,GAAKC,CAAK,MACnCF,KAAKE,aAAiBF,EAAE,aAEnB,CAACC,GAAKC,EAAM,KAAK,aAAc,CAAA,IAGpCF,KAAKE,aAAiBF,EAAE,YACnB,CAACC,GAAKH,EAAqBI,CAAK,CAAC,IAGrC,CAACD,GAAK,MAAS,CACzB;AAAA,IAAA;AAKb;AAOA,SAASE,EAAkBC,GAAmB;AACnC,SAAAA,EAAM,KAAK,KAAK,GAAG;AAC9B;AA2CgB,SAAAC,EAA6B,EAAE,kBAAAC,KAAgC;AAErE,QAAAC,IAASC,EAA6C,CAAA,CAAE,GAExDC,IAA4DC,EAAI,CAAA,CAAE,GAClEC,IAASD,EAAIZ,EAAqBQ,CAAgB,CAAC,GAEnDM,IAAc,MAAM;AACtB,IAAAL,EAAO,QAAQ,IACfE,EAAS,QAAQ;EAAC,GAGhBI,IAAY,MAAM;AACR,IAAAD,KACLD,EAAA,QAAQb,EAAwBQ,CAAgB;AAAA,EAAA;AA+BpD,SAAA;AAAA;AAAA,IAEH,UAAAG;AAAA,IACA,QAAAF;AAAA,IACA,QAAAI;AAAA;AAAA,IAGA,aAAa,MAAME,EAAU;AAAA,IAC7B,YApCe,OAAa,MAAM;AACtB,MAAAD;AAGZ,YAAME,IAAcR,EAAiB,UAAUK,EAAO,KAAK;AAGvD,MAACG,EAAY,UAiBbC,EAAUJ,EAAO,KAAK,IAhBrBG,EAAoC,MAAM,OAAO,QAAQ,CAASE,MAAA;AACzD,cAAAC,IAAOd,EAAkBa,CAAK;AAGpC,QAAKT,EAAO,MAAMU,CAAI,MACXV,EAAA,MAAMU,CAAI,IAAID,EAAM,UAI1BP,EAAS,MAAMQ,CAAI,IAGpBR,EAAS,MAAMQ,CAAI,EAAE,KAAKD,EAAM,OAAO,IAFvCP,EAAS,MAAMQ,CAAI,IAAI,CAACD,EAAM,OAAO;AAAA,MAGzC,CACH;AAAA,IAGL;AAAA,EAWA;AAER;ACnKA,MAAeE,IAAA,CAAOC,MAAA;AAMb,EAAAA,EAAY,QAAQC,GAAwBC,EAAkB,CAAA;AAEvE,GCDMC,IAAW,CAACC,MAAsB;AAC3B,WAAA,KAAK,UAAU,IAAIA,CAAK;AACrC,GAEMC,IAAuC;AAAA,EACzC,SAAS,OAAOL,GAAKM,MAAoF;AACrG,IAAIA,KAAA,QAAAA,EAAS,aACTP,EAAaC,CAAG,IAGhBM,KAAA,gBAAAA,EAAS,WAAU,oBACnBH;AAAA,MAAS;AAAA;AAAA,IAAiB,GAC1B,MAAM,OAAO,qEAAgE,MACtEG,KAAA,gBAAAA,EAAS,WAAU,wBAC1BH;AAAA,MAAS;AAAA;AAAA,IAAqB,GAC9B,MAAM,OAAO,yEAAoE,KAEjF,MAAM,OAAO,8DAAyD,GAGtEG,KAAA,QAAAA,EAAS,sBACT,MAAM,OAAO,4DAAuD;AAAA,EAE5E;AACJ;"}