@adyen/bento-vue3 1.22.0 → 1.23.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 (199) hide show
  1. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell/data-grid-cell.types.d.ts +9 -5
  2. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell/data-grid-cell.vue.d.ts +15 -0
  3. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.types.d.ts +1 -0
  4. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +18 -0
  5. package/dist/@types/packages/vue2/src/components/data-grid/composables/index.d.ts +1 -0
  6. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.d.ts +1 -0
  7. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-hovering/index.d.ts +2 -0
  8. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-hovering/use-column-hovering.d.ts +53 -0
  9. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-hovering/use-column-hovering.types.d.ts +12 -0
  10. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-config-settings/use-config-settings.d.ts +2 -99
  11. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-config-settings/use-config.settings.types.d.ts +7 -0
  12. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-resizer.d.ts +47 -1
  13. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +48 -8
  14. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +48 -24
  15. package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.types.d.ts +12 -2
  16. package/dist/@types/packages/vue2/src/components/menu/menu.types.d.ts +1 -1
  17. package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +1 -0
  18. package/dist/@types/packages/vue2/src/components/stepper/composables/index.d.ts +2 -0
  19. package/dist/@types/packages/vue2/src/components/stepper/composables/use-step-register/use-step-register.d.ts +11 -0
  20. package/dist/@types/packages/vue2/src/components/stepper/stepper.types.d.ts +1 -0
  21. package/dist/accordion.js +2 -2
  22. package/dist/action-bar.js +6 -6
  23. package/dist/alert.js +3 -3
  24. package/dist/assets/base-modal.css +1 -1
  25. package/dist/assets/button.css +1 -1
  26. package/dist/assets/dialog-page.css +1 -1
  27. package/dist/assets/index10.css +1 -1
  28. package/dist/assets/index11.css +1 -1
  29. package/dist/assets/index12.css +1 -1
  30. package/dist/assets/index13.css +1 -1
  31. package/dist/assets/index14.css +1 -1
  32. package/dist/assets/index15.css +1 -1
  33. package/dist/assets/index16.css +1 -1
  34. package/dist/assets/index17.css +1 -1
  35. package/dist/assets/index18.css +1 -1
  36. package/dist/assets/index19.css +1 -1
  37. package/dist/assets/index2.css +1 -1
  38. package/dist/assets/index20.css +1 -1
  39. package/dist/assets/index21.css +1 -1
  40. package/dist/assets/index22.css +1 -1
  41. package/dist/assets/index23.css +1 -1
  42. package/dist/assets/index24.css +1 -1
  43. package/dist/assets/index25.css +1 -1
  44. package/dist/assets/index26.css +1 -1
  45. package/dist/assets/index27.css +1 -1
  46. package/dist/assets/index28.css +1 -1
  47. package/dist/assets/index29.css +1 -1
  48. package/dist/assets/index3.css +1 -1
  49. package/dist/assets/index30.css +1 -1
  50. package/dist/assets/index31.css +1 -1
  51. package/dist/assets/index32.css +1 -1
  52. package/dist/assets/index33.css +1 -1
  53. package/dist/assets/index34.css +1 -1
  54. package/dist/assets/index35.css +1 -1
  55. package/dist/assets/index36.css +1 -1
  56. package/dist/assets/index37.css +1 -1
  57. package/dist/assets/index39.css +1 -1
  58. package/dist/assets/index4.css +1 -1
  59. package/dist/assets/index40.css +1 -1
  60. package/dist/assets/index41.css +1 -1
  61. package/dist/assets/index42.css +1 -1
  62. package/dist/assets/index43.css +1 -1
  63. package/dist/assets/index44.css +1 -1
  64. package/dist/assets/index45.css +1 -1
  65. package/dist/assets/index46.css +1 -1
  66. package/dist/assets/index47.css +1 -1
  67. package/dist/assets/index48.css +1 -1
  68. package/dist/assets/index5.css +1 -1
  69. package/dist/assets/index6.css +1 -1
  70. package/dist/assets/index7.css +1 -1
  71. package/dist/assets/index8.css +1 -1
  72. package/dist/assets/index9.css +1 -1
  73. package/dist/avatar-image.js +1 -1
  74. package/dist/button.js +5 -5
  75. package/dist/card.js +3 -3
  76. package/dist/checkbox.js +5 -5
  77. package/dist/chunks/{base-button.86be8130.js → base-button.13df4e44.js} +2 -2
  78. package/dist/chunks/{base-button.86be8130.js.map → base-button.13df4e44.js.map} +1 -1
  79. package/dist/chunks/{base-modal.01333c00.js → base-modal.30bce990.js} +6 -6
  80. package/dist/chunks/{base-modal.01333c00.js.map → base-modal.30bce990.js.map} +1 -1
  81. package/dist/chunks/{button-actions-with-menu.df95130d.js → button-actions-with-menu.a5d2bb13.js} +4 -4
  82. package/dist/chunks/{button-actions-with-menu.df95130d.js.map → button-actions-with-menu.a5d2bb13.js.map} +1 -1
  83. package/dist/chunks/{button-actions.bcc9dcc7.js → button-actions.ec3c649c.js} +3 -3
  84. package/dist/chunks/{button-actions.bcc9dcc7.js.map → button-actions.ec3c649c.js.map} +1 -1
  85. package/dist/chunks/{button.a378e7ab.js → button.e965bf53.js} +3 -3
  86. package/dist/chunks/{button.a378e7ab.js.map → button.e965bf53.js.map} +1 -1
  87. package/dist/chunks/{calendar.891a60a9.js → calendar.52fe4032.js} +4 -4
  88. package/dist/chunks/{calendar.891a60a9.js.map → calendar.52fe4032.js.map} +1 -1
  89. package/dist/chunks/{checkbox.9753e9d6.js → checkbox.1442f41a.js} +3 -3
  90. package/dist/chunks/{checkbox.9753e9d6.js.map → checkbox.1442f41a.js.map} +1 -1
  91. package/dist/chunks/{controls-group.84981503.js → controls-group.1f29b602.js} +3 -3
  92. package/dist/chunks/{controls-group.84981503.js.map → controls-group.1f29b602.js.map} +1 -1
  93. package/dist/chunks/{copy.86eb5d86.js → copy.d052f444.js} +4 -4
  94. package/dist/chunks/{copy.86eb5d86.js.map → copy.d052f444.js.map} +1 -1
  95. package/dist/chunks/{dialog-page.ce02932b.js → dialog-page.d505c5ec.js} +3 -3
  96. package/dist/chunks/{dialog-page.ce02932b.js.map → dialog-page.d505c5ec.js.map} +1 -1
  97. package/dist/chunks/{dropdown-default-textbox.91ad6585.js → dropdown-default-textbox.e0ca5afb.js} +136 -116
  98. package/dist/chunks/dropdown-default-textbox.e0ca5afb.js.map +1 -0
  99. package/dist/chunks/{dropdown.6c010045.js → dropdown.257691c0.js} +14 -15
  100. package/dist/chunks/{dropdown.6c010045.js.map → dropdown.257691c0.js.map} +1 -1
  101. package/dist/chunks/{error-message.498811e4.js → error-message.56247bcc.js} +2 -2
  102. package/dist/chunks/{error-message.498811e4.js.map → error-message.56247bcc.js.map} +1 -1
  103. package/dist/chunks/{fixed-scroller.51b63488.js → fixed-scroller.47546775.js} +2 -2
  104. package/dist/chunks/{fixed-scroller.51b63488.js.map → fixed-scroller.47546775.js.map} +1 -1
  105. package/dist/chunks/{footer-actions.573307ed.js → footer-actions.3c2dbf43.js} +4 -4
  106. package/dist/chunks/{footer-actions.573307ed.js.map → footer-actions.3c2dbf43.js.map} +1 -1
  107. package/dist/chunks/{index.fb0e9e1a.js → index.08d813e2.js} +6 -6
  108. package/dist/chunks/{index.fb0e9e1a.js.map → index.08d813e2.js.map} +1 -1
  109. package/dist/chunks/{index.19dab2ef.js → index.0e01e0b2.js} +3 -3
  110. package/dist/chunks/{index.19dab2ef.js.map → index.0e01e0b2.js.map} +1 -1
  111. package/dist/chunks/{index.c4f8460d.js → index.10c69f39.js} +187 -187
  112. package/dist/chunks/index.10c69f39.js.map +1 -0
  113. package/dist/chunks/{index.037ae52f.js → index.44f2aca7.js} +2 -2
  114. package/dist/chunks/{index.037ae52f.js.map → index.44f2aca7.js.map} +1 -1
  115. package/dist/chunks/{index.9c423f37.js → index.4fb57ba0.js} +6 -6
  116. package/dist/chunks/{index.9c423f37.js.map → index.4fb57ba0.js.map} +1 -1
  117. package/dist/chunks/{index.da4cb1b8.js → index.56c13d2c.js} +16 -17
  118. package/dist/chunks/{index.da4cb1b8.js.map → index.56c13d2c.js.map} +1 -1
  119. package/dist/chunks/{index.d6a0cf32.js → index.824101bb.js} +2 -2
  120. package/dist/chunks/{index.d6a0cf32.js.map → index.824101bb.js.map} +1 -1
  121. package/dist/chunks/{index.6e7e9ac6.js → index.99c63a74.js} +2 -2
  122. package/dist/chunks/{index.6e7e9ac6.js.map → index.99c63a74.js.map} +1 -1
  123. package/dist/chunks/{index.e2793c20.js → index.9aaed799.js} +3 -3
  124. package/dist/chunks/{index.e2793c20.js.map → index.9aaed799.js.map} +1 -1
  125. package/dist/chunks/{index.030fb327.js → index.bf4a116b.js} +20 -19
  126. package/dist/chunks/index.bf4a116b.js.map +1 -0
  127. package/dist/chunks/{index.9d65b72a.js → index.f800b267.js} +2 -2
  128. package/dist/chunks/{index.9d65b72a.js.map → index.f800b267.js.map} +1 -1
  129. package/dist/chunks/{listbox-option-tag.abedc9e0.js → listbox-option-tag.4de1659c.js} +3 -3
  130. package/dist/chunks/{listbox-option-tag.abedc9e0.js.map → listbox-option-tag.4de1659c.js.map} +1 -1
  131. package/dist/chunks/{listbox.8ce17729.js → listbox.eb436d06.js} +5 -5
  132. package/dist/chunks/{listbox.8ce17729.js.map → listbox.eb436d06.js.map} +1 -1
  133. package/dist/chunks/{loading-button.5f58f1cf.js → loading-button.6e15f27f.js} +2 -2
  134. package/dist/chunks/{loading-button.5f58f1cf.js.map → loading-button.6e15f27f.js.map} +1 -1
  135. package/dist/chunks/{payment-method.313f2635.js → payment-method.df1b62db.js} +2 -2
  136. package/dist/chunks/{payment-method.313f2635.js.map → payment-method.df1b62db.js.map} +1 -1
  137. package/dist/chunks/{tooltip.a70c9e69.js → tooltip.066fd8f7.js} +3 -3
  138. package/dist/chunks/{tooltip.a70c9e69.js.map → tooltip.066fd8f7.js.map} +1 -1
  139. package/dist/chunks/use-click-outside.941d1600.js +14 -0
  140. package/dist/chunks/use-click-outside.941d1600.js.map +1 -0
  141. package/dist/code-snippet.js +7 -7
  142. package/dist/code-snippet.js.map +1 -1
  143. package/dist/country.js +2 -2
  144. package/dist/currency.js +1 -1
  145. package/dist/data-grid-template.js +1 -1
  146. package/dist/data-grid.js +1219 -1127
  147. package/dist/data-grid.js.map +1 -1
  148. package/dist/date-picker.js +21 -22
  149. package/dist/date-picker.js.map +1 -1
  150. package/dist/date-range-picker.js +2 -2
  151. package/dist/date.js +1 -1
  152. package/dist/divider.js +1 -1
  153. package/dist/dropdown.js +7 -7
  154. package/dist/empty-state.js +3 -3
  155. package/dist/filter-bar.js +586 -593
  156. package/dist/filter-bar.js.map +1 -1
  157. package/dist/focus-trap.js +1 -1
  158. package/dist/form-layout.js +2 -2
  159. package/dist/header.js +4 -4
  160. package/dist/index.js +19 -19
  161. package/dist/info-icon.js +3 -3
  162. package/dist/input-field.js +4 -4
  163. package/dist/internal.js +8 -8
  164. package/dist/link.js +1 -1
  165. package/dist/loading-indicator.js +1 -1
  166. package/dist/menu.js +1 -1
  167. package/dist/modal-fullscreen.js +6 -6
  168. package/dist/modal.js +6 -6
  169. package/dist/pagination.js +4 -4
  170. package/dist/payment-method.js +1 -1
  171. package/dist/popover.js +1 -1
  172. package/dist/popper-container.js +1 -1
  173. package/dist/radio-group.js +4 -4
  174. package/dist/search-bar.js +2 -2
  175. package/dist/secondary-nav.js +2 -2
  176. package/dist/segmented-control.js +3 -3
  177. package/dist/selection-card.js +4 -4
  178. package/dist/sidepanel.js +6 -6
  179. package/dist/status.js +2 -2
  180. package/dist/stepper.js +152 -141
  181. package/dist/stepper.js.map +1 -1
  182. package/dist/structured-list.js +1 -1
  183. package/dist/summary-grid.js +3 -3
  184. package/dist/tabs.js +3 -3
  185. package/dist/tag.js +2 -2
  186. package/dist/textarea.js +4 -4
  187. package/dist/timeline.js +7 -7
  188. package/dist/toast.js +3 -3
  189. package/dist/toggle.js +2 -2
  190. package/dist/tutorial.js +6 -6
  191. package/dist/typography.js +1 -1
  192. package/dist/web-types.json +1 -1
  193. package/package.json +2 -2
  194. package/dist/chunks/directive.0408e565.js +0 -23
  195. package/dist/chunks/directive.0408e565.js.map +0 -1
  196. package/dist/chunks/dropdown-default-textbox.91ad6585.js.map +0 -1
  197. package/dist/chunks/index.030fb327.js.map +0 -1
  198. package/dist/chunks/index.c4f8460d.js.map +0 -1
  199. /package/dist/@types/packages/vue2/src/components/stepper/composables/{useKeyboardNavigation/useKeyboardNavigation.d.ts → use-keyboard-navigation/use-keyboard-navigation.d.ts} +0 -0
package/dist/stepper.js CHANGED
@@ -1,38 +1,53 @@
1
- import { defineComponent as K, ref as i, computed as a, watch as $, provide as Z, readonly as se, openBlock as d, createElementBlock as S, withDirectives as M, mergeProps as U, unref as s, toHandlers as ne, renderSlot as V, createVNode as A, withCtx as x, createTextVNode as j, toDisplayString as P, createCommentVNode as ae, createElementVNode as G, useSlots as oe, inject as le, onMounted as ue, normalizeClass as re, createBlock as z, Fragment as ie, vShow as pe } from "vue";
2
- import { B as w } from "./chunks/index.6e7e9ac6.js";
3
- import { B as N, a as ce } from "./chunks/keyboard-navigation.ca47dfa8.js";
4
- import { u as de } from "./chunks/i18n.f7e6533e.js";
5
- import { _ as H } from "./chunks/_plugin-vue_export-helper.dad06003.js";
6
- import { B as ve } from "./chunks/base-button.86be8130.js";
7
- import { C as _e } from "./chunks/checkmark-small.c79220d9.js";
8
- import "./assets/index34.css";
9
- const be = (o) => {
10
- function v(r) {
11
- return ({ detail: u }) => {
1
+ import { defineComponent as Z, ref as v, computed as o, watch as $, provide as U, readonly as oe, openBlock as _, createElementBlock as S, withDirectives as M, mergeProps as j, unref as s, toHandlers as ae, renderSlot as w, createVNode as R, withCtx as C, createTextVNode as G, toDisplayString as H, createCommentVNode as le, createElementVNode as q, useSlots as re, inject as ue, onMounted as ie, onBeforeUnmount as pe, normalizeClass as ce, createBlock as F, Fragment as ve, vShow as de } from "vue";
2
+ import { B as L } from "./chunks/index.99c63a74.js";
3
+ import { B as A, a as _e } from "./chunks/keyboard-navigation.ca47dfa8.js";
4
+ import { u as me } from "./chunks/i18n.f7e6533e.js";
5
+ import { _ as W } from "./chunks/_plugin-vue_export-helper.dad06003.js";
6
+ import { B as be } from "./chunks/base-button.13df4e44.js";
7
+ import { C as fe } from "./chunks/checkmark-small.c79220d9.js";
8
+ import "./assets/index29.css";
9
+ const Se = (t) => {
10
+ function p(r) {
11
+ return ({ detail: i }) => {
12
12
  var e;
13
- u.preventDefault();
14
- const p = o.value.indexOf(document.activeElement);
15
- p < 0 || (e = o.value[p + r]) == null || e.focus();
13
+ i.preventDefault();
14
+ const c = t.value.indexOf(document.activeElement);
15
+ c < 0 || (e = t.value[c + r]) == null || e.focus();
16
16
  };
17
17
  }
18
- const l = v(-1), _ = v(1);
18
+ const a = p(-1), u = p(1);
19
19
  return {
20
- [N.ARROW_DOWN]: _,
21
- [N.ARROW_RIGHT]: _,
22
- [N.ARROW_UP]: l,
23
- [N.ARROW_LEFT]: l
20
+ [A.ARROW_DOWN]: u,
21
+ [A.ARROW_RIGHT]: u,
22
+ [A.ARROW_UP]: a,
23
+ [A.ARROW_LEFT]: a
24
24
  };
25
- }, L = Symbol("stepper state");
26
- var D = /* @__PURE__ */ ((o) => (o.LINEAR = "linear", o.NON_LINEAR = "non-linear", o))(D || {}), W = /* @__PURE__ */ ((o) => (o.HORIZONTAL = "horizontal", o.VERTICAL = "vertical", o))(W || {});
27
- const q = {
25
+ }, ge = (t) => {
26
+ const p = t.buttonElement.value.parentElement, a = p.parentElement;
27
+ return Array.from(a.children).indexOf(p);
28
+ }, J = (t) => ({ registerStep: (u) => {
29
+ const r = ge(u);
30
+ t.value.splice(r, 0, {
31
+ stepContent: u.stepContent,
32
+ buttonElement: u.buttonElement,
33
+ substeps: u.substeps
34
+ });
35
+ }, removeStep: (u) => {
36
+ t.value.splice(
37
+ t.value.findIndex((r) => r.buttonElement === u.buttonElement.value),
38
+ 1
39
+ );
40
+ } }), D = Symbol("stepper state");
41
+ var P = /* @__PURE__ */ ((t) => (t.LINEAR = "linear", t.NON_LINEAR = "non-linear", t))(P || {}), z = /* @__PURE__ */ ((t) => (t.HORIZONTAL = "horizontal", t.VERTICAL = "vertical", t))(z || {});
42
+ const Q = {
28
43
  "en-US": {
29
44
  step: "Step {currentIndex}/{totalSteps} {content}"
30
45
  }
31
- }, fe = { class: "b-stepper" }, me = {
32
- i18n: { messages: q },
46
+ }, ye = { class: "b-stepper" }, xe = {
47
+ i18n: { messages: Q },
33
48
  name: "stepper"
34
- }, Se = /* @__PURE__ */ K({
35
- ...me,
49
+ }, Ce = /* @__PURE__ */ Z({
50
+ ...xe,
36
51
  props: {
37
52
  /**
38
53
  * Type of stepper; defines how the stepper should behave. Default: linear
@@ -59,89 +74,84 @@ const q = {
59
74
  }
60
75
  },
61
76
  emits: ["update:index"],
62
- setup(o, { emit: v }) {
63
- const l = o, { t: _ } = de({ messages: q }), r = i([]), u = i(l.index), p = i(u.value), e = (t) => {
64
- t > p.value && (p.value = t), u.value = t;
65
- }, C = a(() => {
66
- var t;
67
- return (t = r.value[u.value]) == null ? void 0 : t.stepContent;
68
- }), c = a(() => r.value.length), R = a(() => r.value.map(({ buttonElement: t }) => t)), h = a(() => l.variant === W.HORIZONTAL), b = a(
69
- () => r.value.map(({ buttonElement: t, substeps: f }, m) => {
70
- const T = u.value === m;
71
- return !h.value && T ? [t].concat(f.map((g) => g.buttonElement)) : [t];
77
+ setup(t, { emit: p }) {
78
+ const a = t, { t: u } = me({ messages: Q }), r = v([]), i = v(a.index), c = v(i.value), e = (n) => {
79
+ n > c.value && (c.value = n), i.value = n;
80
+ }, g = o(() => {
81
+ var n;
82
+ return (n = r.value[i.value]) == null ? void 0 : n.stepContent;
83
+ }), d = o(() => r.value.length), E = o(() => r.value.map(({ buttonElement: n }) => n)), I = o(() => a.variant === z.HORIZONTAL), m = o(
84
+ () => r.value.map(({ buttonElement: n, substeps: b }, f) => {
85
+ const k = i.value === f;
86
+ return !I.value && k ? [n].concat(b.map((x) => x.buttonElement)) : [n];
72
87
  }).flat()
73
- ), y = (t) => {
74
- r.value.push({
75
- stepContent: t.stepContent,
76
- buttonElement: t.buttonElement,
77
- substeps: t.substeps
78
- });
79
- }, I = i({
80
- activeStepIndex: u,
81
- latestActiveStep: p,
82
- steps: R,
83
- type: l.type,
84
- variant: l.variant,
88
+ ), { registerStep: y, removeStep: h } = J(r), B = v({
89
+ activeStepIndex: i,
90
+ latestActiveStep: c,
91
+ steps: E,
92
+ type: a.type,
93
+ variant: a.variant,
85
94
  navigateToStep: e,
86
- registerStep: y
87
- }), B = a(() => ({
88
- "b-stepper__list--horizontal": h.value
95
+ registerStep: y,
96
+ removeStep: h
97
+ }), O = o(() => ({
98
+ "b-stepper__list--horizontal": I.value
89
99
  }));
90
- $(() => l.index, e), $(u, (t) => {
91
- v("update:index", t);
100
+ $(() => a.index, e), $(i, (n) => {
101
+ p("update:index", n);
92
102
  });
93
- const O = be(b);
94
- return Z(L, se(I)), (t, f) => (d(), S("nav", fe, [
95
- M((d(), S("ol", U({
96
- class: ["b-stepper__list", s(B)]
97
- }, ne(s(O), !0)), [
98
- V(t.$slots, "default", {}, void 0, !0)
103
+ const T = Se(m);
104
+ return U(D, oe(B)), (n, b) => (_(), S("nav", ye, [
105
+ M((_(), S("ol", j({
106
+ class: ["b-stepper__list", s(O)]
107
+ }, ae(s(T), !0)), [
108
+ w(n.$slots, "default", {}, void 0, !0)
99
109
  ], 16)), [
100
- [s(ce)]
110
+ [s(_e)]
101
111
  ]),
102
- A(s(w), {
112
+ R(s(L), {
103
113
  el: "span",
104
114
  variant: "body",
105
115
  stronger: "",
106
116
  class: "b-stepper__text-stepper"
107
117
  }, {
108
- default: x(() => [
109
- j(P(s(_)("step", { currentIndex: u.value + 1, totalSteps: s(c), content: s(C) })), 1)
118
+ default: C(() => [
119
+ G(H(s(u)("step", { currentIndex: i.value + 1, totalSteps: s(d), content: s(g) })), 1)
110
120
  ]),
111
121
  _: 1
112
122
  })
113
123
  ]));
114
124
  }
115
125
  });
116
- const Ve = /* @__PURE__ */ H(Se, [["__scopeId", "data-v-5197d91f"]]);
117
- let F = 0;
118
- const ye = {
126
+ const Pe = /* @__PURE__ */ W(Ce, [["__scopeId", "data-v-8974e3d3"]]);
127
+ let K = 0;
128
+ const Ee = {
119
129
  beforeCreate() {
120
- this.uuid = F.toString(), F += 1;
130
+ this.uuid = K.toString(), K += 1;
121
131
  }
122
- }, ge = { key: 0 }, xe = /* @__PURE__ */ G("path", {
132
+ }, Ie = { key: 0 }, he = /* @__PURE__ */ q("path", {
123
133
  fill: "#00112C",
124
134
  d: "M8 5.25C6.48122 5.25 5.25 6.48122 5.25 8C5.25 9.51878 6.48122 10.75 8 10.75C9.51878 10.75 10.75 9.51878 10.75 8C10.75 6.48122 9.51878 5.25 8 5.25Z"
125
135
  }, null, -1);
126
- function Ce(o, v, l, _, r, u) {
127
- return d(), S("svg", U({ role: "img" }, o.$attrs, {
136
+ function Ne(t, p, a, u, r, i) {
137
+ return _(), S("svg", j({ role: "img" }, t.$attrs, {
128
138
  class: "ui-assets-icons-16",
129
139
  xmlns: "http://www.w3.org/2000/svg",
130
140
  width: "16",
131
141
  height: "16",
132
142
  fill: "none"
133
143
  }), [
134
- o.$attrs["svg-title"] ? (d(), S("title", ge, P(o.$attrs["svg-title"]), 1)) : ae("", !0),
135
- xe
144
+ t.$attrs["svg-title"] ? (_(), S("title", Ie, H(t.$attrs["svg-title"]), 1)) : le("", !0),
145
+ he
136
146
  ], 16);
137
147
  }
138
- const he = /* @__PURE__ */ H(ye, [["render", Ce]]), Ie = {
148
+ const Ae = /* @__PURE__ */ W(Ee, [["render", Ne]]), Re = {
139
149
  ref: "substepList",
140
150
  class: "b-step__substep-list"
141
- }, Ee = {
151
+ }, $e = {
142
152
  name: "step"
143
- }, Ne = /* @__PURE__ */ K({
144
- ...Ee,
153
+ }, Be = /* @__PURE__ */ Z({
154
+ ...$e,
145
155
  props: {
146
156
  /**
147
157
  * Completed status. Used on non-linear steppers to indicate if the step is completed.
@@ -159,117 +169,118 @@ const he = /* @__PURE__ */ H(ye, [["render", Ce]]), Ie = {
159
169
  }
160
170
  },
161
171
  emits: ["update:substep-index"],
162
- setup(o, { emit: v }) {
163
- const l = o, _ = oe(), r = i(null), u = i(null), p = i([]), e = le(L), C = a(() => {
164
- var n;
165
- return (n = r.value) == null ? void 0 : n.$el;
166
- }), c = a(() => e == null ? void 0 : e.value.steps.indexOf(C.value)), R = a(() => {
167
- var n;
168
- return (n = u.value) == null ? void 0 : n.$el.textContent;
169
- }), h = a(() => p.value.map(({ buttonElement: n }) => n)), b = i(l.substepIndex), y = i(b.value), I = (n) => {
170
- n > y.value && (y.value = n), b.value = n;
171
- }, B = (n) => {
172
- p.value.push({
173
- stepContent: n.stepContent,
174
- buttonElement: n.buttonElement,
175
- substeps: n.substeps
176
- });
177
- }, O = i({
178
- activeStepIndex: b,
172
+ setup(t, { emit: p }) {
173
+ const a = t, u = re(), r = v(null), i = v(null), c = v([]), e = ue(D), g = o(() => {
174
+ var l;
175
+ return (l = r.value) == null ? void 0 : l.$el;
176
+ }), d = o(() => e == null ? void 0 : e.value.steps.indexOf(g.value)), E = o(() => {
177
+ var l;
178
+ return (l = i.value) == null ? void 0 : l.$el.textContent;
179
+ }), I = o(() => c.value.map(({ buttonElement: l }) => l)), m = v(a.substepIndex), y = v(m.value), h = (l) => {
180
+ l > y.value && (y.value = l), m.value = l;
181
+ }, { registerStep: B, removeStep: O } = J(c), T = v({
182
+ activeStepIndex: m,
179
183
  latestActiveStep: y,
180
184
  type: e.value.type,
181
185
  variant: e.value.variant,
182
- steps: h,
186
+ steps: I,
183
187
  isParentStep: !0,
184
- navigateToStep: I,
185
- registerStep: B
188
+ navigateToStep: h,
189
+ registerStep: B,
190
+ removeStep: O
186
191
  });
187
- Z(L, O), $(() => l.substepIndex, I), $(b, (n) => {
188
- v("update:substep-index", n);
189
- }), ue(() => {
192
+ U(D, T), $(() => a.substepIndex, h), $(m, (l) => {
193
+ p("update:substep-index", l);
194
+ }), ie(() => {
190
195
  if (!e)
191
196
  throw new Error(
192
197
  "BentoStep components should only be used inside BentoStepper or other BentoStep components."
193
198
  );
194
199
  e.value.registerStep({
195
- buttonElement: C,
196
- stepContent: R,
197
- substeps: p
200
+ buttonElement: g,
201
+ stepContent: E,
202
+ substeps: c
203
+ });
204
+ }), pe(() => {
205
+ e.value.removeStep({
206
+ buttonElement: g,
207
+ stepContent: E,
208
+ substeps: c
198
209
  });
199
210
  });
200
- const t = a(() => e.value.isParentStep), f = i(!1), m = a(() => (e == null ? void 0 : e.value.activeStepIndex) === c.value), T = a(
201
- () => m.value && e.value.variant !== W.HORIZONTAL && !t.value && _.substeps
202
- ), k = a(() => (e == null ? void 0 : e.value.type) === D.NON_LINEAR ? l.completed : (e == null ? void 0 : e.value.latestActiveStep) > c.value), g = a(
203
- () => (e == null ? void 0 : e.value.type) === D.LINEAR && c.value > (e == null ? void 0 : e.value.latestActiveStep)
204
- ), J = () => {
205
- g.value || e.value.navigateToStep(c.value);
206
- }, Q = a(() => m.value ? "step" : "false"), X = a(() => g.value.toString()), Y = a(() => f.value || c.value === 0 && !t.value ? "0" : "-1"), ee = a(() => ({
207
- "b-step--active": m.value,
208
- "b-step--completed": k.value,
209
- "b-step--substep": t.value
211
+ const n = o(() => e.value.isParentStep), b = v(!1), f = o(() => (e == null ? void 0 : e.value.activeStepIndex) === d.value), k = o(
212
+ () => f.value && e.value.variant !== z.HORIZONTAL && !n.value && u.substeps
213
+ ), V = o(() => (e == null ? void 0 : e.value.type) === P.NON_LINEAR ? a.completed : (e == null ? void 0 : e.value.latestActiveStep) > d.value), x = o(
214
+ () => (e == null ? void 0 : e.value.type) === P.LINEAR && d.value > (e == null ? void 0 : e.value.latestActiveStep)
215
+ ), X = () => {
216
+ x.value || e.value.navigateToStep(d.value);
217
+ }, Y = o(() => f.value ? "step" : "false"), ee = o(() => x.value.toString()), te = o(() => b.value || d.value === 0 && !n.value ? "0" : "-1"), se = o(() => ({
218
+ "b-step--active": f.value,
219
+ "b-step--completed": V.value,
220
+ "b-step--substep": n.value
210
221
  }));
211
- return (n, E) => (d(), S("li", {
212
- class: re([s(ee), "b-step"])
222
+ return (l, N) => (_(), S("li", {
223
+ class: ce([s(se), "b-step"])
213
224
  }, [
214
- A(s(ve), {
225
+ R(s(be), {
215
226
  ref_key: "buttonComponent",
216
227
  ref: r,
217
- "aria-current": s(Q),
218
- "aria-disabled": s(X),
228
+ "aria-current": s(Y),
229
+ "aria-disabled": s(ee),
219
230
  class: "b-step__button",
220
231
  type: "button",
221
- tabindex: s(Y),
222
- disabled: s(g),
223
- onClick: J,
224
- onFocus: E[0] || (E[0] = (te) => f.value = !0),
225
- onBlur: E[1] || (E[1] = (te) => f.value = !1)
232
+ tabindex: s(te),
233
+ disabled: s(x),
234
+ onClick: X,
235
+ onFocus: N[0] || (N[0] = (ne) => b.value = !0),
236
+ onBlur: N[1] || (N[1] = (ne) => b.value = !1)
226
237
  }, {
227
- iconLeft: x(() => [
228
- A(s(w), {
238
+ iconLeft: C(() => [
239
+ R(s(L), {
229
240
  el: "span",
230
241
  variant: "body",
231
242
  stronger: "",
232
243
  class: "b-step__index",
233
244
  "aria-hidden": "true"
234
245
  }, {
235
- default: x(() => [
236
- s(k) ? (d(), z(s(_e), { key: 0 })) : s(t) ? (d(), z(s(he), { key: 2 })) : (d(), S(ie, { key: 1 }, [
237
- j(P(s(c) + 1), 1)
246
+ default: C(() => [
247
+ s(V) ? (_(), F(s(fe), { key: 0 })) : s(n) ? (_(), F(s(Ae), { key: 2 })) : (_(), S(ve, { key: 1 }, [
248
+ G(H(s(d) + 1), 1)
238
249
  ], 64))
239
250
  ]),
240
251
  _: 1
241
252
  })
242
253
  ]),
243
- default: x(() => [
244
- A(s(w), {
254
+ default: C(() => [
255
+ R(s(L), {
245
256
  ref_key: "stepContent",
246
- ref: u,
257
+ ref: i,
247
258
  el: "span",
248
259
  variant: "body",
249
- stronger: s(m),
260
+ stronger: s(f),
250
261
  class: "b-step__content"
251
262
  }, {
252
- default: x(() => [
253
- V(n.$slots, "default", {}, void 0, !0)
263
+ default: C(() => [
264
+ w(l.$slots, "default", {}, void 0, !0)
254
265
  ]),
255
266
  _: 3
256
267
  }, 8, ["stronger"])
257
268
  ]),
258
269
  _: 3
259
270
  }, 8, ["aria-current", "aria-disabled", "tabindex", "disabled"]),
260
- M(G("ul", Ie, [
261
- V(n.$slots, "substeps", {}, void 0, !0)
271
+ M(q("ul", Re, [
272
+ w(l.$slots, "substeps", {}, void 0, !0)
262
273
  ], 512), [
263
- [pe, s(T)]
274
+ [de, s(k)]
264
275
  ])
265
276
  ], 2));
266
277
  }
267
278
  });
268
- const we = /* @__PURE__ */ H(Ne, [["__scopeId", "data-v-8874f961"]]);
279
+ const He = /* @__PURE__ */ W(Be, [["__scopeId", "data-v-33ee4d80"]]);
269
280
  export {
270
- we as BentoStep,
271
- Ve as BentoStepper,
272
- D as BentoStepperTypeOption,
273
- W as BentoStepperVariantOption
281
+ He as BentoStep,
282
+ Pe as BentoStepper,
283
+ P as BentoStepperTypeOption,
284
+ z as BentoStepperVariantOption
274
285
  };
275
286
  //# sourceMappingURL=stepper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"stepper.js","sources":["../../vue2/src/components/stepper/composables/useKeyboardNavigation/useKeyboardNavigation.ts","../../vue2/src/components/stepper/stepper.keys.ts","../../vue2/src/components/stepper/stepper.types.ts","../../vue2/src/components/stepper/stepper.vue","../../../node_modules/@adyen/ui-assets-icons-16/dist/vue/dot.vue","../../vue2/src/components/stepper/components/step/step.vue"],"sourcesContent":["import { Ref } from 'vue';\n\nimport { BentoKeyboardNavigationKeyDownEvent } from '@/types';\n\n/**\n * Returns keyboard navigation's event handlers to navigate through the steps\n *\n * @param steps the list of bento-steps DOM elements to focus on the navigation\n * @returns\n */\nexport const useKeyboardNavigation = (steps: Ref<HTMLButtonElement[]>) => {\n // Returns the event handler that moves the focus on a given step offset\n function focusOnStep(indexOffset: number) {\n return ({ detail: event }) => {\n event.preventDefault();\n\n const currentIndex = steps.value.indexOf(document.activeElement as HTMLButtonElement);\n if (currentIndex < 0) {\n return;\n }\n\n steps.value[currentIndex + indexOffset]?.focus();\n };\n }\n\n const focusOnPreviousStep = focusOnStep(-1);\n const focusOnNextStep = focusOnStep(1);\n\n return {\n [BentoKeyboardNavigationKeyDownEvent.ARROW_DOWN]: focusOnNextStep,\n [BentoKeyboardNavigationKeyDownEvent.ARROW_RIGHT]: focusOnNextStep,\n [BentoKeyboardNavigationKeyDownEvent.ARROW_UP]: focusOnPreviousStep,\n [BentoKeyboardNavigationKeyDownEvent.ARROW_LEFT]: focusOnPreviousStep,\n };\n};\n","import type { InjectionKey } from 'vue';\n\nimport type { BentoStepperState } from './stepper.types';\n\nexport const STEPPER_STATE = Symbol('stepper state') as InjectionKey<BentoStepperState>;\n","import type { ComputedRef, Ref } from 'vue';\n\nexport enum BentoStepperTypeOption {\n LINEAR = 'linear',\n NON_LINEAR = 'non-linear',\n}\n\nexport enum BentoStepperVariantOption {\n HORIZONTAL = 'horizontal',\n VERTICAL = 'vertical',\n}\n\nexport interface BentoStepperStepExposeState {\n buttonElement: HTMLButtonElement | Ref<HTMLButtonElement>;\n substeps: BentoStepperStepExposeState[] | Ref<BentoStepperStepExposeState[]>;\n stepContent: string | ComputedRef<string>;\n}\n\nexport type BentoStepperState = Ref<{\n activeStepIndex: number;\n latestActiveStep: number;\n type: `${BentoStepperTypeOption}`;\n variant: `${BentoStepperVariantOption}`;\n steps: HTMLElement[];\n isParentStep?: boolean;\n navigateToStep: (index: number) => void;\n registerStep: (stepState: BentoStepperStepExposeState) => void;\n}>;\n","<template>\n <nav class=\"b-stepper\">\n <ol\n v-bento-keyboard-navigation-directive\n class=\"b-stepper__list\"\n :class=\"conditionalClasses\"\n v-on=\"keyboardNavigationListeners\"\n >\n <slot></slot>\n </ol>\n\n <bento-typography el=\"span\" variant=\"body\" stronger class=\"b-stepper__text-stepper\"\n >{{\n t('step', { currentIndex: activeStepIndex + 1, totalSteps: stepsAmount, content: currentStepContent })\n }}\n </bento-typography>\n </nav>\n</template>\n\n<script setup lang=\"ts\">\n import { BentoTypography } from '@/components/typography';\n\n import { computed, PropType, provide, readonly, ref, watch } from 'vue';\n import { BentoKeyboardNavigationDirective as vBentoKeyboardNavigationDirective } from '@/directives';\n\n import { useKeyboardNavigation } from './composables/useKeyboardNavigation/useKeyboardNavigation';\n import { useI18n } from '@/utils/ts/i18n';\n\n import { STEPPER_STATE } from './stepper.keys';\n import {\n BentoStepperState,\n BentoStepperStepExposeState,\n BentoStepperTypeOption,\n BentoStepperVariantOption,\n } from './stepper.types';\n\n import messages from './messages.json';\n\n const props = defineProps({\n /**\n * Type of stepper; defines how the stepper should behave. Default: linear\n * @values linear, non-linear\n */\n type: {\n type: String as PropType<`${BentoStepperTypeOption}`>,\n default: 'linear',\n },\n /**\n * Stepper variant; defines how the stepper should be displayed. Default: vertical\n * @values vertical, horizontal\n */\n variant: {\n type: String as PropType<`${BentoStepperVariantOption}`>,\n default: 'vertical',\n },\n /**\n * Active step index\n */\n index: {\n type: Number,\n default: 0,\n },\n });\n\n const emit = defineEmits<{\n /**\n * Event triggered when step is updated by the stepper\n */\n (e: 'update:index', index: number): void;\n }>();\n\n type MessageSchema = (typeof messages)['en-US'];\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const childrenSteps = ref<BentoStepperStepExposeState[]>([]);\n const activeStepIndex = ref(props.index);\n const latestActiveStep = ref(activeStepIndex.value);\n\n const navigateToStep = (index: number) => {\n // Stores latest active step index so users can navigate backwards and forwards on linear stepper\n if (index > latestActiveStep.value) {\n latestActiveStep.value = index;\n }\n activeStepIndex.value = index;\n };\n\n const currentStepContent = computed(() => childrenSteps.value[activeStepIndex.value]?.stepContent);\n const stepsAmount = computed(() => childrenSteps.value.length);\n const childrenStepsElements = computed(() => childrenSteps.value.map(({ buttonElement }) => buttonElement));\n const isHorizontalVariant = computed(() => props.variant === BentoStepperVariantOption.HORIZONTAL);\n\n // List of all visible steps nested on the stepper, including the substeps of the children steps\n // Flattening the steps on a single list makes the keyboard navigation easier to be handled\n const allVisibleStepsElements = computed(() =>\n childrenSteps.value\n .map(({ buttonElement, substeps }, index) => {\n const isStepActive = activeStepIndex.value === index;\n const isSubstepsVisible = !isHorizontalVariant.value && isStepActive;\n\n if (!isSubstepsVisible) {\n return [buttonElement];\n }\n\n return [buttonElement].concat(substeps.map(step => step.buttonElement));\n })\n .flat()\n );\n\n // Maps BentoStep children components whenever the DOM is updated to keep track of steps indexes\n const registerStep = (stepState: BentoStepperStepExposeState) => {\n childrenSteps.value.push({\n stepContent: stepState.stepContent as string,\n buttonElement: stepState.buttonElement as HTMLButtonElement,\n substeps: stepState.substeps as BentoStepperStepExposeState[],\n });\n };\n\n const stepperState: BentoStepperState = ref({\n activeStepIndex,\n latestActiveStep,\n steps: childrenStepsElements,\n type: props.type,\n variant: props.variant,\n navigateToStep,\n registerStep,\n });\n\n const conditionalClasses = computed(() => ({\n 'b-stepper__list--horizontal': isHorizontalVariant.value,\n }));\n\n watch(() => props.index, navigateToStep);\n watch(activeStepIndex, index => {\n emit('update:index', index);\n });\n\n const keyboardNavigationListeners = useKeyboardNavigation(allVisibleStepsElements);\n\n // Provides stepper state to BentoStep children components\n provide(STEPPER_STATE, readonly(stepperState));\n</script>\n\n<script lang=\"ts\">\n /**\n * Steppers break down complex processes into manageable steps to guide users through a sequential or multi-step process.\n *\n * @example\n * import { BentoStep, BentoStepper } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoStep, BentoStepper },\n * template: `\n * <bento-stepper :index=\"1\">\n * <bento-step>Step 1</bento-step>\n * <bento-step>Step 2</bento-step>\n * <bento-step>Step 3</bento-step>\n * </bento-stepper>\n * `\n * }\n */\n\n export default {\n i18n: { messages },\n name: 'stepper',\n };\n</script>\n\n<style scoped src=\"./stepper.scss\" />\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#00112C\" d=\"M8 5.25C6.48122 5.25 5.25 6.48122 5.25 8C5.25 9.51878 6.48122 10.75 8 10.75C9.51878 10.75 10.75 9.51878 10.75 8C10.75 6.48122 9.51878 5.25 8 5.25Z\"/></svg>\n</template>\n<script>\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n<style>\n @import '../css/main.css';\n</style>\n","<template>\n <li :class=\"conditionalClasses\" class=\"b-step\">\n <base-button\n ref=\"buttonComponent\"\n :aria-current=\"ariaCurrentValue\"\n :aria-disabled=\"ariaDisabledValue\"\n class=\"b-step__button\"\n type=\"button\"\n :tabindex=\"tabIndexValue\"\n :disabled=\"isDisabled\"\n @click=\"navigateToStep\"\n @focus=\"isFocused = true\"\n @blur=\"isFocused = false\"\n >\n <template #iconLeft>\n <bento-typography el=\"span\" variant=\"body\" stronger class=\"b-step__index\" aria-hidden=\"true\">\n <checkmark-small-icon v-if=\"isCompleted\" />\n <template v-else-if=\"!isSubstep\">{{ index + 1 }}</template>\n <dot-icon v-else />\n </bento-typography>\n </template>\n\n <bento-typography ref=\"stepContent\" el=\"span\" variant=\"body\" :stronger=\"isActive\" class=\"b-step__content\">\n <slot></slot>\n </bento-typography>\n </base-button>\n\n <ul v-show=\"isSubstepsVisible\" ref=\"substepList\" class=\"b-step__substep-list\">\n <slot name=\"substeps\"></slot>\n </ul>\n </li>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, onMounted, provide, ref, useSlots, watch } from 'vue';\n import { BaseButton } from '@/components/internal/base-button';\n import { BentoTypography } from '@/components/typography';\n import CheckmarkSmallIcon from '@adyen/ui-assets-icons-16/vue/checkmark-small';\n import DotIcon from '@adyen/ui-assets-icons-16/vue/dot';\n\n import { STEPPER_STATE } from '../../stepper.keys';\n import {\n BentoStepperState,\n BentoStepperStepExposeState,\n BentoStepperTypeOption,\n BentoStepperVariantOption,\n } from '../../stepper.types';\n import { Booleanish } from '@/types';\n\n const slots = useSlots();\n\n const props = defineProps({\n /**\n * Completed status. Used on non-linear steppers to indicate if the step is completed.\n */\n completed: {\n type: Boolean,\n default: false,\n },\n /**\n * Active substep index\n */\n substepIndex: {\n type: Number,\n default: 0,\n },\n });\n\n const emit = defineEmits<{\n /**\n * Event triggered when substep is updated by the parent step\n */\n (e: 'update:substep-index', index: number): void;\n }>();\n\n // Element refs\n const buttonComponent = ref<InstanceType<typeof BaseButton> | null>(null);\n const stepContent = ref<InstanceType<typeof BentoTypography> | null>(null);\n const substeps = ref<BentoStepperStepExposeState[]>([]);\n\n // Injects parent BentoStepper state data\n const stepper = inject(STEPPER_STATE);\n\n const buttonElement = computed(() => buttonComponent.value?.$el as HTMLButtonElement);\n const index = computed(() => stepper?.value.steps.indexOf(buttonElement.value));\n\n const stepContentValue = computed(() => stepContent.value?.$el.textContent);\n\n // Substep logic\n const substepsButtonElements = computed(() => substeps.value.map(({ buttonElement }) => buttonElement));\n\n const activeSubStepIndex = ref(props.substepIndex);\n const latestActiveSubStepIndex = ref(activeSubStepIndex.value);\n\n const navigateToSubstep = (value: number) => {\n if (value > latestActiveSubStepIndex.value) {\n latestActiveSubStepIndex.value = value;\n }\n\n activeSubStepIndex.value = value;\n };\n\n const registerSubstep = (stepState: BentoStepperStepExposeState) => {\n substeps.value.push({\n stepContent: stepState.stepContent as string,\n buttonElement: stepState.buttonElement as HTMLButtonElement,\n substeps: stepState.substeps as BentoStepperStepExposeState[],\n });\n };\n\n const stepState: BentoStepperState = ref({\n activeStepIndex: activeSubStepIndex,\n latestActiveStep: latestActiveSubStepIndex,\n type: stepper.value.type,\n variant: stepper.value.variant,\n steps: substepsButtonElements,\n isParentStep: true,\n navigateToStep: navigateToSubstep,\n registerStep: registerSubstep,\n });\n\n provide(STEPPER_STATE, stepState);\n\n watch(() => props.substepIndex, navigateToSubstep);\n watch(activeSubStepIndex, value => {\n emit('update:substep-index', value);\n });\n\n onMounted(() => {\n if (!stepper) {\n throw new Error(\n 'BentoStep components should only be used inside BentoStepper or other BentoStep components.'\n );\n }\n\n stepper.value.registerStep({\n buttonElement,\n stepContent: stepContentValue,\n substeps,\n });\n });\n\n // Step states\n const isSubstep = computed(() => stepper.value.isParentStep);\n const isFocused = ref(false);\n const isActive = computed(() => stepper?.value.activeStepIndex === index.value);\n const isSubstepsVisible = computed(\n () =>\n isActive.value &&\n stepper.value.variant !== BentoStepperVariantOption.HORIZONTAL &&\n !isSubstep.value &&\n slots.substeps\n );\n const isCompleted = computed(() => {\n if (stepper?.value.type === BentoStepperTypeOption.NON_LINEAR) {\n return props.completed;\n }\n\n return stepper?.value.latestActiveStep > index.value;\n });\n const isDisabled = computed(\n () => stepper?.value.type === BentoStepperTypeOption.LINEAR && index.value > stepper?.value.latestActiveStep\n );\n\n const navigateToStep = () => {\n if (isDisabled.value) {\n return;\n }\n\n stepper.value.navigateToStep(index.value);\n };\n\n // Styling and a11y\n const ariaCurrentValue = computed(() => (isActive.value ? 'step' : ('false' as Booleanish)));\n const ariaDisabledValue = computed(() => isDisabled.value.toString() as Booleanish);\n const tabIndexValue = computed(() => (isFocused.value || (index.value === 0 && !isSubstep.value) ? '0' : '-1'));\n\n const conditionalClasses = computed(() => ({\n 'b-step--active': isActive.value,\n 'b-step--completed': isCompleted.value,\n 'b-step--substep': isSubstep.value,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * Steps are components placed inside BentoSteppers to break down complex processes\n *\n * @example\n * import { BentoStep } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoStep },\n * template: `\n * <bento-stepper>\n * <bento-step>Step 1</bento-step>\n * <bento-step>\n * Step 2\n * <template #substeps>\n * <bento-step>Substep 1</bento-step>\n * <bento-step>Substep 2</bento-step>\n * </template>\n * </bento-step>\n * </bento-stepper>\n * `\n * }\n */\n\n export default {\n name: 'step',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./step.scss\" />\n"],"names":["useKeyboardNavigation","steps","focusOnStep","indexOffset","event","currentIndex","_a","focusOnPreviousStep","focusOnNextStep","BentoKeyboardNavigationKeyDownEvent","STEPPER_STATE","BentoStepperTypeOption","BentoStepperTypeOption2","BentoStepperVariantOption","BentoStepperVariantOption2","__default__$1","messages","t","useI18n","childrenSteps","ref","activeStepIndex","props","latestActiveStep","navigateToStep","index","currentStepContent","computed","stepsAmount","childrenStepsElements","buttonElement","isHorizontalVariant","allVisibleStepsElements","substeps","isStepActive","step","registerStep","stepState","stepperState","conditionalClasses","watch","emit","keyboardNavigationListeners","provide","readonly","uuid","openBlock","createElementBlock","mergeProps","_ctx","_hoisted_1$1","toDisplayString","__default__","slots","useSlots","buttonComponent","stepContent","stepper","inject","stepContentValue","substepsButtonElements","buttonElement2","activeSubStepIndex","latestActiveSubStepIndex","navigateToSubstep","value","registerSubstep","stepState2","onMounted","isSubstep","isFocused","isActive","isSubstepsVisible","isCompleted","isDisabled","ariaCurrentValue","ariaDisabledValue","tabIndexValue"],"mappings":";;;;;;;;AAUa,MAAAA,KAAA,CAAAC,MAAA;AAET,WAAAC,EAAAC,GAAA;AACI,WAAA,CAAA,EAAA,QAAAC,EAAA,MAAA;;AACI,MAAAA,EAAA,eAAA;AAEA,YAAAC,IAAAJ,EAAA,MAAA,QAAA,SAAA,aAAA;AACA,MAAAI,IAAA,MAIAC,IAAAL,EAAA,MAAAI,IAAAF,CAAA,MAAA,QAAAG,EAAA;AAAA,IAA+C;AAAA,EACnD;AAGJ,QAAAC,IAAAL,EAAA,EAAA,GACAM,IAAAN,EAAA,CAAA;AAEA,SAAA;AAAA,IAAO,CAAAO,EAAA,UAAA,GAAAD;AAAA,IAC+C,CAAAC,EAAA,WAAA,GAAAD;AAAA,IACC,CAAAC,EAAA,QAAA,GAAAF;AAAA,IACH,CAAAE,EAAA,UAAA,GAAAF;AAAA,EACE;AAE1D,G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AAA1B;AAAA,MACb,CAAA;AAAA,IACH,CAAA;AAIL,UAAAoC,IAAA1C,EAAA,MAAA8B,EAAA,MAAA,YAAA,GACAa,IAAAlD,EAAA,EAAA,GACAmD,IAAA5C,EAAA,OAAA8B,KAAA,gBAAAA,EAAA,MAAA,qBAAAhC,EAAA,KAAA,GACA+C,IAAA7C;AAAA,MAA0B,MAAA4C,EAAA,SAAAd,EAAA,MAAA,YAAA5C,EAAA,cAAA,CAAAwD,EAAA,SAAAhB,EAAA;AAAA,IAKZ,GAEdoB,IAAA9C,EAAA,OACI8B,KAAA,gBAAAA,EAAA,MAAA,UAAA9C,EAAA,aACIW,EAAA,aAGJmC,KAAA,gBAAAA,EAAA,MAAA,oBAAAhC,EAAA,KAA+C,GAEnDiD,IAAA/C;AAAA,MAAmB,OAAA8B,KAAA,gBAAAA,EAAA,MAAA,UAAA9C,EAAA,UAAAc,EAAA,SAAAgC,KAAA,gBAAAA,EAAA,MAAA;AAAA,IAC6E,GAGhGjC,IAAA,MAAA;AACI,MAAAkD,EAAA,SAIAjB,EAAA,MAAA,eAAAhC,EAAA,KAAA;AAAA,IAAwC,GAI5CkD,IAAAhD,EAAA,MAAA4C,EAAA,QAAA,SAAA,OAAA,GACAK,IAAAjD,EAAA,MAAA+C,EAAA,MAAA,SAAA,CAAA,GACAG,IAAAlD,EAAA,MAAA2C,EAAA,SAAA7C,EAAA,UAAA,KAAA,CAAA4C,EAAA,QAAA,MAAA,IAAA,GAEA9B,KAAAZ,EAAA,OAAA;AAAA,MAA2C,kBAAA4C,EAAA;AAAA,MACZ,qBAAAE,EAAA;AAAA,MACM,mBAAAJ,EAAA;AAAA,IACJ,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[4]}
1
+ {"version":3,"file":"stepper.js","sources":["../../vue2/src/components/stepper/composables/use-keyboard-navigation/use-keyboard-navigation.ts","../../vue2/src/components/stepper/composables/use-step-register/use-step-register.ts","../../vue2/src/components/stepper/stepper.keys.ts","../../vue2/src/components/stepper/stepper.types.ts","../../vue2/src/components/stepper/stepper.vue","../../../node_modules/@adyen/ui-assets-icons-16/dist/vue/dot.vue","../../vue2/src/components/stepper/components/step/step.vue"],"sourcesContent":["import { Ref } from 'vue';\n\nimport { BentoKeyboardNavigationKeyDownEvent } from '@/types';\n\n/**\n * Returns keyboard navigation's event handlers to navigate through the steps\n *\n * @param steps the list of bento-steps DOM elements to focus on the navigation\n * @returns\n */\nexport const useKeyboardNavigation = (steps: Ref<HTMLButtonElement[]>) => {\n // Returns the event handler that moves the focus on a given step offset\n function focusOnStep(indexOffset: number) {\n return ({ detail: event }) => {\n event.preventDefault();\n\n const currentIndex = steps.value.indexOf(document.activeElement as HTMLButtonElement);\n if (currentIndex < 0) {\n return;\n }\n\n steps.value[currentIndex + indexOffset]?.focus();\n };\n }\n\n const focusOnPreviousStep = focusOnStep(-1);\n const focusOnNextStep = focusOnStep(1);\n\n return {\n [BentoKeyboardNavigationKeyDownEvent.ARROW_DOWN]: focusOnNextStep,\n [BentoKeyboardNavigationKeyDownEvent.ARROW_RIGHT]: focusOnNextStep,\n [BentoKeyboardNavigationKeyDownEvent.ARROW_UP]: focusOnPreviousStep,\n [BentoKeyboardNavigationKeyDownEvent.ARROW_LEFT]: focusOnPreviousStep,\n };\n};\n","import type { Ref } from 'vue';\nimport type { BentoStepperStepExposeState } from '../../stepper.types';\n\n/**\n * Gets the position of a `bento-step` element within its `bento-stepper` parent.\n * @param stepState The `bento-step` state.\n * @returns The index of the element.\n */\nconst getStepPosition = (stepState: BentoStepperStepExposeState) => {\n // Button is wrapped by <li> element\n const listItemElement = (stepState.buttonElement as Ref<HTMLButtonElement>).value.parentElement;\n const listElement = listItemElement.parentElement;\n return Array.from(listElement.children).indexOf(listItemElement);\n};\n\n/**\n * Provides methods to register/unregister `bento-step` elements to/from the `bento-stepper` step state.\n * These methods allow for tracking the child step elements, including their position in the DOM tree.\n * @param childrenSteps The `bento-stepper` (or `bento-step` if substeps) step state.\n */\nexport const useStepRegister = (childrenSteps: Ref<BentoStepperStepExposeState[]>) => {\n /**\n * Registers a step's HTML element in the stepper state.\n * Should be called by a `bento-step` when it is mounted.\n * @param stepState The `bento-step` state.\n */\n const registerStep = (stepState: BentoStepperStepExposeState) => {\n const position = getStepPosition(stepState);\n childrenSteps.value.splice(position, 0, {\n stepContent: stepState.stepContent as string,\n buttonElement: stepState.buttonElement as HTMLButtonElement,\n substeps: stepState.substeps as BentoStepperStepExposeState[],\n });\n };\n\n /**\n * Unregisters a step's HTML element in the stepper state.\n * Should be called by a `bento-step` before it is unmounted.\n * @param stepState The `bento-step` state.\n */\n const removeStep = (stepState: BentoStepperStepExposeState) => {\n childrenSteps.value.splice(\n childrenSteps.value.findIndex(step => step.buttonElement === stepState.buttonElement.value),\n 1\n );\n };\n\n return { registerStep, removeStep };\n};\n","import type { InjectionKey } from 'vue';\n\nimport type { BentoStepperState } from './stepper.types';\n\nexport const STEPPER_STATE = Symbol('stepper state') as InjectionKey<BentoStepperState>;\n","import type { ComputedRef, Ref } from 'vue';\n\nexport enum BentoStepperTypeOption {\n LINEAR = 'linear',\n NON_LINEAR = 'non-linear',\n}\n\nexport enum BentoStepperVariantOption {\n HORIZONTAL = 'horizontal',\n VERTICAL = 'vertical',\n}\n\nexport interface BentoStepperStepExposeState {\n buttonElement: HTMLButtonElement | Ref<HTMLButtonElement>;\n substeps: BentoStepperStepExposeState[] | Ref<BentoStepperStepExposeState[]>;\n stepContent: string | ComputedRef<string>;\n}\n\nexport type BentoStepperState = Ref<{\n activeStepIndex: number;\n latestActiveStep: number;\n type: `${BentoStepperTypeOption}`;\n variant: `${BentoStepperVariantOption}`;\n steps: HTMLElement[];\n isParentStep?: boolean;\n navigateToStep: (index: number) => void;\n registerStep: (stepState: BentoStepperStepExposeState) => void;\n removeStep: (stepState: BentoStepperStepExposeState) => void;\n}>;\n","<template>\n <nav class=\"b-stepper\">\n <ol\n v-bento-keyboard-navigation-directive\n class=\"b-stepper__list\"\n :class=\"conditionalClasses\"\n v-on=\"keyboardNavigationListeners\"\n >\n <slot></slot>\n </ol>\n\n <bento-typography el=\"span\" variant=\"body\" stronger class=\"b-stepper__text-stepper\"\n >{{\n t('step', { currentIndex: activeStepIndex + 1, totalSteps: stepsAmount, content: currentStepContent })\n }}\n </bento-typography>\n </nav>\n</template>\n\n<script setup lang=\"ts\">\n import { BentoTypography } from '@/components/typography';\n\n import { computed, PropType, provide, readonly, ref, watch } from 'vue';\n import { BentoKeyboardNavigationDirective as vBentoKeyboardNavigationDirective } from '@/directives';\n\n import { useKeyboardNavigation, useStepRegister } from './composables';\n import { useI18n } from '@/utils/ts/i18n';\n\n import { STEPPER_STATE } from './stepper.keys';\n import {\n BentoStepperState,\n BentoStepperStepExposeState,\n BentoStepperTypeOption,\n BentoStepperVariantOption,\n } from './stepper.types';\n\n import messages from './messages.json';\n\n const props = defineProps({\n /**\n * Type of stepper; defines how the stepper should behave. Default: linear\n * @values linear, non-linear\n */\n type: {\n type: String as PropType<`${BentoStepperTypeOption}`>,\n default: 'linear',\n },\n /**\n * Stepper variant; defines how the stepper should be displayed. Default: vertical\n * @values vertical, horizontal\n */\n variant: {\n type: String as PropType<`${BentoStepperVariantOption}`>,\n default: 'vertical',\n },\n /**\n * Active step index\n */\n index: {\n type: Number,\n default: 0,\n },\n });\n\n const emit = defineEmits<{\n /**\n * Event triggered when step is updated by the stepper\n */\n (e: 'update:index', index: number): void;\n }>();\n\n type MessageSchema = (typeof messages)['en-US'];\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const childrenSteps = ref<BentoStepperStepExposeState[]>([]);\n const activeStepIndex = ref(props.index);\n const latestActiveStep = ref(activeStepIndex.value);\n\n const navigateToStep = (index: number) => {\n // Stores latest active step index so users can navigate backwards and forwards on linear stepper\n if (index > latestActiveStep.value) {\n latestActiveStep.value = index;\n }\n activeStepIndex.value = index;\n };\n\n const currentStepContent = computed(() => childrenSteps.value[activeStepIndex.value]?.stepContent);\n const stepsAmount = computed(() => childrenSteps.value.length);\n const childrenStepsElements = computed(() => childrenSteps.value.map(({ buttonElement }) => buttonElement));\n const isHorizontalVariant = computed(() => props.variant === BentoStepperVariantOption.HORIZONTAL);\n\n // List of all visible steps nested on the stepper, including the substeps of the children steps\n // Flattening the steps on a single list makes the keyboard navigation easier to be handled\n const allVisibleStepsElements = computed(() =>\n childrenSteps.value\n .map(({ buttonElement, substeps }, index) => {\n const isStepActive = activeStepIndex.value === index;\n const isSubstepsVisible = !isHorizontalVariant.value && isStepActive;\n\n if (!isSubstepsVisible) {\n return [buttonElement];\n }\n\n return [buttonElement].concat(substeps.map(step => step.buttonElement));\n })\n .flat()\n );\n\n const { registerStep, removeStep } = useStepRegister(childrenSteps);\n\n const stepperState: BentoStepperState = ref({\n activeStepIndex,\n latestActiveStep,\n steps: childrenStepsElements,\n type: props.type,\n variant: props.variant,\n navigateToStep,\n registerStep,\n removeStep,\n });\n\n const conditionalClasses = computed(() => ({\n 'b-stepper__list--horizontal': isHorizontalVariant.value,\n }));\n\n watch(() => props.index, navigateToStep);\n watch(activeStepIndex, index => {\n emit('update:index', index);\n });\n\n const keyboardNavigationListeners = useKeyboardNavigation(allVisibleStepsElements);\n\n // Provides stepper state to BentoStep children components\n provide(STEPPER_STATE, readonly(stepperState));\n</script>\n\n<script lang=\"ts\">\n /**\n * Steppers break down complex processes into manageable steps to guide users through a sequential or multi-step process.\n *\n * @example\n * import { BentoStep, BentoStepper } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoStep, BentoStepper },\n * template: `\n * <bento-stepper :index=\"1\">\n * <bento-step>Step 1</bento-step>\n * <bento-step>Step 2</bento-step>\n * <bento-step>Step 3</bento-step>\n * </bento-stepper>\n * `\n * }\n */\n\n export default {\n i18n: { messages },\n name: 'stepper',\n };\n</script>\n\n<style scoped src=\"./stepper.scss\" />\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#00112C\" d=\"M8 5.25C6.48122 5.25 5.25 6.48122 5.25 8C5.25 9.51878 6.48122 10.75 8 10.75C9.51878 10.75 10.75 9.51878 10.75 8C10.75 6.48122 9.51878 5.25 8 5.25Z\"/></svg>\n</template>\n<script>\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n<style>\n @import '../css/main.css';\n</style>\n","<template>\n <li :class=\"conditionalClasses\" class=\"b-step\">\n <base-button\n ref=\"buttonComponent\"\n :aria-current=\"ariaCurrentValue\"\n :aria-disabled=\"ariaDisabledValue\"\n class=\"b-step__button\"\n type=\"button\"\n :tabindex=\"tabIndexValue\"\n :disabled=\"isDisabled\"\n @click=\"navigateToStep\"\n @focus=\"isFocused = true\"\n @blur=\"isFocused = false\"\n >\n <template #iconLeft>\n <bento-typography el=\"span\" variant=\"body\" stronger class=\"b-step__index\" aria-hidden=\"true\">\n <checkmark-small-icon v-if=\"isCompleted\" />\n <template v-else-if=\"!isSubstep\">{{ index + 1 }}</template>\n <dot-icon v-else />\n </bento-typography>\n </template>\n\n <bento-typography ref=\"stepContent\" el=\"span\" variant=\"body\" :stronger=\"isActive\" class=\"b-step__content\">\n <slot></slot>\n </bento-typography>\n </base-button>\n\n <ul v-show=\"isSubstepsVisible\" ref=\"substepList\" class=\"b-step__substep-list\">\n <slot name=\"substeps\"></slot>\n </ul>\n </li>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, onBeforeUnmount, onMounted, provide, ref, useSlots, watch } from 'vue';\n import { BaseButton } from '@/components/internal/base-button';\n import { BentoTypography } from '@/components/typography';\n import CheckmarkSmallIcon from '@adyen/ui-assets-icons-16/vue/checkmark-small';\n import DotIcon from '@adyen/ui-assets-icons-16/vue/dot';\n\n import { useStepRegister } from '../../composables';\n import { STEPPER_STATE } from '../../stepper.keys';\n import {\n BentoStepperState,\n BentoStepperStepExposeState,\n BentoStepperTypeOption,\n BentoStepperVariantOption,\n } from '../../stepper.types';\n import { Booleanish } from '@/types';\n\n const slots = useSlots();\n\n const props = defineProps({\n /**\n * Completed status. Used on non-linear steppers to indicate if the step is completed.\n */\n completed: {\n type: Boolean,\n default: false,\n },\n /**\n * Active substep index\n */\n substepIndex: {\n type: Number,\n default: 0,\n },\n });\n\n const emit = defineEmits<{\n /**\n * Event triggered when substep is updated by the parent step\n */\n (e: 'update:substep-index', index: number): void;\n }>();\n\n // Element refs\n const buttonComponent = ref<InstanceType<typeof BaseButton> | null>(null);\n const stepContent = ref<InstanceType<typeof BentoTypography> | null>(null);\n const substeps = ref<BentoStepperStepExposeState[]>([]);\n\n // Injects parent BentoStepper state data\n const stepper = inject(STEPPER_STATE);\n\n const buttonElement = computed(() => buttonComponent.value?.$el as HTMLButtonElement);\n const index = computed(() => stepper?.value.steps.indexOf(buttonElement.value));\n\n const stepContentValue = computed(() => stepContent.value?.$el.textContent);\n\n // Substep logic\n const substepsButtonElements = computed(() => substeps.value.map(({ buttonElement }) => buttonElement));\n\n const activeSubStepIndex = ref(props.substepIndex);\n const latestActiveSubStepIndex = ref(activeSubStepIndex.value);\n\n const navigateToSubstep = (value: number) => {\n if (value > latestActiveSubStepIndex.value) {\n latestActiveSubStepIndex.value = value;\n }\n\n activeSubStepIndex.value = value;\n };\n\n const { registerStep, removeStep } = useStepRegister(substeps);\n\n const stepState: BentoStepperState = ref({\n activeStepIndex: activeSubStepIndex,\n latestActiveStep: latestActiveSubStepIndex,\n type: stepper.value.type,\n variant: stepper.value.variant,\n steps: substepsButtonElements,\n isParentStep: true,\n navigateToStep: navigateToSubstep,\n registerStep,\n removeStep,\n });\n\n provide(STEPPER_STATE, stepState);\n\n watch(() => props.substepIndex, navigateToSubstep);\n watch(activeSubStepIndex, value => {\n emit('update:substep-index', value);\n });\n\n onMounted(() => {\n if (!stepper) {\n throw new Error(\n 'BentoStep components should only be used inside BentoStepper or other BentoStep components.'\n );\n }\n\n stepper.value.registerStep({\n buttonElement,\n stepContent: stepContentValue,\n substeps,\n });\n });\n\n onBeforeUnmount(() => {\n stepper.value.removeStep({\n buttonElement,\n stepContent: stepContentValue,\n substeps,\n });\n });\n\n // Step states\n const isSubstep = computed(() => stepper.value.isParentStep);\n const isFocused = ref(false);\n const isActive = computed(() => stepper?.value.activeStepIndex === index.value);\n const isSubstepsVisible = computed(\n () =>\n isActive.value &&\n stepper.value.variant !== BentoStepperVariantOption.HORIZONTAL &&\n !isSubstep.value &&\n slots.substeps\n );\n const isCompleted = computed(() => {\n if (stepper?.value.type === BentoStepperTypeOption.NON_LINEAR) {\n return props.completed;\n }\n\n return stepper?.value.latestActiveStep > index.value;\n });\n const isDisabled = computed(\n () => stepper?.value.type === BentoStepperTypeOption.LINEAR && index.value > stepper?.value.latestActiveStep\n );\n\n const navigateToStep = () => {\n if (isDisabled.value) {\n return;\n }\n\n stepper.value.navigateToStep(index.value);\n };\n\n // Styling and a11y\n const ariaCurrentValue = computed(() => (isActive.value ? 'step' : ('false' as Booleanish)));\n const ariaDisabledValue = computed(() => isDisabled.value.toString() as Booleanish);\n const tabIndexValue = computed(() => (isFocused.value || (index.value === 0 && !isSubstep.value) ? '0' : '-1'));\n\n const conditionalClasses = computed(() => ({\n 'b-step--active': isActive.value,\n 'b-step--completed': isCompleted.value,\n 'b-step--substep': isSubstep.value,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * Steps are components placed inside BentoSteppers to break down complex processes\n *\n * @example\n * import { BentoStep } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoStep },\n * template: `\n * <bento-stepper>\n * <bento-step>Step 1</bento-step>\n * <bento-step>\n * Step 2\n * <template #substeps>\n * <bento-step>Substep 1</bento-step>\n * <bento-step>Substep 2</bento-step>\n * </template>\n * </bento-step>\n * </bento-stepper>\n * `\n * }\n */\n\n export default {\n name: 'step',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./step.scss\" />\n"],"names":["useKeyboardNavigation","steps","focusOnStep","indexOffset","event","currentIndex","_a","focusOnPreviousStep","focusOnNextStep","BentoKeyboardNavigationKeyDownEvent","getStepPosition","stepState","listItemElement","listElement","useStepRegister","childrenSteps","position","step","STEPPER_STATE","BentoStepperTypeOption","BentoStepperTypeOption2","BentoStepperVariantOption","BentoStepperVariantOption2","__default__$1","messages","t","useI18n","ref","activeStepIndex","props","latestActiveStep","navigateToStep","index","currentStepContent","computed","stepsAmount","childrenStepsElements","buttonElement","isHorizontalVariant","allVisibleStepsElements","substeps","isStepActive","registerStep","removeStep","stepperState","conditionalClasses","watch","emit","keyboardNavigationListeners","provide","readonly","uuid","openBlock","createElementBlock","mergeProps","_ctx","_hoisted_1$1","toDisplayString","__default__","slots","useSlots","buttonComponent","stepContent","stepper","inject","stepContentValue","substepsButtonElements","buttonElement2","activeSubStepIndex","latestActiveSubStepIndex","navigateToSubstep","value","onMounted","onBeforeUnmount","isSubstep","isFocused","isActive","isSubstepsVisible","isCompleted","isDisabled","ariaCurrentValue","ariaDisabledValue","tabIndexValue"],"mappings":";;;;;;;;AAUa,MAAAA,KAAA,CAAAC,MAAA;AAET,WAAAC,EAAAC,GAAA;AACI,WAAA,CAAA,EAAA,QAAAC,EAAA,MAAA;;AACI,MAAAA,EAAA,eAAA;AAEA,YAAAC,IAAAJ,EAAA,MAAA,QAAA,SAAA,aAAA;AACA,MAAAI,IAAA,MAIAC,IAAAL,EAAA,MAAAI,IAAAF,CAAA,MAAA,QAAAG,EAAA;AAAA,IAA+C;AAAA,EACnD;AAGJ,QAAAC,IAAAL,EAAA,EAAA,GACAM,IAAAN,EAAA,CAAA;AAEA,SAAA;AAAA,IAAO,CAAAO,EAAA,UAAA,GAAAD;AAAA,IAC+C,CAAAC,EAAA,WAAA,GAAAD;AAAA,IACC,CAAAC,EAAA,QAAA,GAAAF;AAAA,IACH,CAAAE,EAAA,UAAA,GAAAF;AAAA,EACE;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AAAA,IAAwC,GAI5CgD,IAAA9C,EAAA,MAAA0C,EAAA,QAAA,SAAA,OAAA,GACAK,KAAA/C,EAAA,MAAA6C,EAAA,MAAA,SAAA,CAAA,GACAG,KAAAhD,EAAA,MAAAyC,EAAA,SAAA3C,EAAA,UAAA,KAAA,CAAA0C,EAAA,QAAA,MAAA,IAAA,GAEA7B,KAAAX,EAAA,OAAA;AAAA,MAA2C,kBAAA0C,EAAA;AAAA,MACZ,qBAAAE,EAAA;AAAA,MACM,mBAAAJ,EAAA;AAAA,IACJ,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[5]}
@@ -1,4 +1,4 @@
1
- import { B as r, a as o } from "./chunks/index.9c423f37.js";
1
+ import { B as r, a as o } from "./chunks/index.4fb57ba0.js";
2
2
  export {
3
3
  r as BentoStructuredList,
4
4
  o as BentoStructuredListItem
@@ -4,10 +4,10 @@ import { S as q } from "./chunks/summary-grid.keys.1d1028c2.js";
4
4
  import { G as U } from "./chunks/grid-layout.c2fe3057.js";
5
5
  import { _ } from "./chunks/_plugin-vue_export-helper.dad06003.js";
6
6
  import { BentoInfoIcon as Y } from "./info-icon.js";
7
- import { B as W, a as V } from "./chunks/index.6e7e9ac6.js";
7
+ import { B as W, a as V } from "./chunks/index.99c63a74.js";
8
8
  import { BentoTag as X, BentoTagVariant as L } from "./tag.js";
9
- import { C as F } from "./chunks/copy.86eb5d86.js";
10
- import "./assets/index36.css";
9
+ import { C as F } from "./chunks/copy.d052f444.js";
10
+ import "./assets/index32.css";
11
11
  const H = S({
12
12
  name: "bento-summary-grid",
13
13
  components: { GridLayout: U },
package/dist/tabs.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as w, toRefs as x, ref as v, provide as m, computed as L, inject as h, onUnmounted as V, withDirectives as N, openBlock as _, createElementBlock as p, renderSlot as A, createCommentVNode as C, vShow as $, watch as X, nextTick as Y, resolveComponent as g, createVNode as y, withCtx as E, createElementVNode as f, Fragment as F, renderList as O, normalizeClass as G, withKeys as J, createTextVNode as U, toDisplayString as j } from "vue";
2
2
  import { E as q, T as B, a as K } from "./chunks/tabs.keys.358742f2.js";
3
3
  import { _ as D } from "./chunks/_plugin-vue_export-helper.dad06003.js";
4
- import { B as z } from "./chunks/index.6e7e9ac6.js";
4
+ import { B as z } from "./chunks/index.99c63a74.js";
5
5
  import { g as P } from "./chunks/unique-id.a2a2b458.js";
6
- import { F as H } from "./chunks/fixed-scroller.51b63488.js";
7
- import "./assets/index37.css";
6
+ import { F as H } from "./chunks/fixed-scroller.47546775.js";
7
+ import "./assets/index33.css";
8
8
  const M = w({
9
9
  props: {
10
10
  /**
package/dist/tag.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as d, computed as o, resolveComponent as p, resolveDirective as m, withDirectives as _, openBlock as b, createElementBlock as v, normalizeClass as f, createVNode as g, withCtx as h, createTextVNode as y, toDisplayString as E } from "vue";
2
- import { B as C } from "./chunks/index.6e7e9ac6.js";
3
- import { b as S } from "./chunks/tooltip.a70c9e69.js";
2
+ import { B as C } from "./chunks/index.99c63a74.js";
3
+ import { b as S } from "./chunks/tooltip.066fd8f7.js";
4
4
  import { u as x } from "./chunks/aria-label.ac9651a5.js";
5
5
  import { g as c } from "./chunks/get-slot-text.bead058f.js";
6
6
  import { _ as $ } from "./chunks/_plugin-vue_export-helper.dad06003.js";
package/dist/textarea.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { openBlock as i, createElementBlock as E, mergeProps as fe, toDisplayString as F, createCommentVNode as b, createElementVNode as C, defineComponent as ve, useAttrs as pe, toRefs as K, ref as f, toRef as he, computed as s, watch as N, nextTick as me, onMounted as ge, onUnmounted as ye, normalizeClass as L, unref as t, normalizeStyle as V, createBlock as m, withCtx as x, createTextVNode as z, createVNode as w, withKeys as H } from "vue";
2
- import { a as _e } from "./chunks/button.a378e7ab.js";
3
- import { B as O } from "./chunks/index.6e7e9ac6.js";
2
+ import { a as _e } from "./chunks/button.e965bf53.js";
3
+ import { B as O } from "./chunks/index.99c63a74.js";
4
4
  import { _ as G } from "./chunks/_plugin-vue_export-helper.dad06003.js";
5
5
  import { g as Le } from "./chunks/unique-id.a2a2b458.js";
6
6
  import { o as q } from "./chunks/resize.a041304d.js";
7
7
  import { u as xe } from "./chunks/aria-label.ac9651a5.js";
8
8
  import { u as Ce } from "./chunks/i18n.f7e6533e.js";
9
9
  import { u as Ee } from "./chunks/use-form-layout-loading.d03e5d48.js";
10
- import { F as Se, E as Y } from "./chunks/error-message.498811e4.js";
11
- import "./assets/index39.css";
10
+ import { F as Se, E as Y } from "./chunks/error-message.56247bcc.js";
11
+ import "./assets/index28.css";
12
12
  let Z = 0;
13
13
  const Ae = {
14
14
  beforeCreate() {