@adyen/bento-vue3 1.4.1 → 1.5.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 (220) hide show
  1. package/dist/@types/components.d.ts +4 -0
  2. package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +1 -1
  3. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-lazy-load/data-grid-lazy-load.vue.d.ts +17 -0
  4. package/dist/@types/packages/vue2/src/components/data-grid/components/index.d.ts +1 -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/useCalculateColumnHeadersTopPosition/useCalculateColumnHeadersTopPosition.d.ts +2 -0
  7. package/dist/@types/packages/vue2/src/components/data-grid/composables/useLazyLoading/useLazyLoading.d.ts +8 -0
  8. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +3 -1
  9. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +28 -2
  10. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +455 -123
  11. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +3 -3
  12. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +13 -13
  13. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/components/all-filters-modal-button/all-filters-modal-button.vue.d.ts +4 -4
  14. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +12 -3
  15. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter-button/base-filter-button.vue.d.ts +3 -3
  16. package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +5 -1
  17. package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/filter-bar-button.vue.d.ts +12 -3
  18. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/form-layout-group.types.d.ts +2 -1
  19. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/form-layout-group.vue.d.ts +2 -0
  20. package/dist/@types/packages/vue2/src/components/image/index.d.ts +1 -0
  21. package/dist/@types/packages/vue2/src/components/internal/base-button/base-button.vue.d.ts +2 -0
  22. package/dist/@types/packages/vue2/src/components/internal/button-actions-with-menu/button-actions-with-menu.vue.d.ts +24 -0
  23. package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +3 -3
  24. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +3 -1
  25. package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +14 -3
  26. package/dist/@types/packages/vue2/src/components/popper-container/popper-container.types.d.ts +1 -9
  27. package/dist/@types/packages/vue2/src/components/popper-container/popper-container.utils.d.ts +5 -21
  28. package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +122 -72
  29. package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.vue.d.ts +3 -2
  30. package/dist/@types/packages/vue2/src/components/stepper/components/step/index.d.ts +1 -0
  31. package/dist/@types/packages/vue2/src/components/stepper/components/step/step.vue.d.ts +35 -0
  32. package/dist/@types/packages/vue2/src/components/stepper/composables/useKeyboardNavigation/useKeyboardNavigation.d.ts +15 -0
  33. package/dist/@types/packages/vue2/src/components/stepper/index.d.ts +3 -0
  34. package/dist/@types/packages/vue2/src/components/stepper/stepper.keys.d.ts +3 -0
  35. package/dist/@types/packages/vue2/src/components/stepper/stepper.types.d.ts +24 -0
  36. package/dist/@types/packages/vue2/src/components/stepper/stepper.vue.d.ts +44 -0
  37. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +1 -1
  38. package/dist/@types/packages/vue2/src/components/tooltip/tooltip.vue.d.ts +363 -82
  39. package/dist/@types/packages/vue2/src/index.d.ts +1 -0
  40. package/dist/@types/packages/vue2/src/types/index.d.ts +1 -0
  41. package/dist/@types/packages/vue2/src/types/lazy-load.d.ts +1 -0
  42. package/dist/accordion.js +3 -3
  43. package/dist/alert.js +4 -4
  44. package/dist/assets/base-button.css +1 -1
  45. package/dist/assets/base-modal.css +1 -1
  46. package/dist/assets/button.css +1 -1
  47. package/dist/assets/calendar.css +1 -1
  48. package/dist/assets/checkbox.css +1 -1
  49. package/dist/assets/dropdown-default-textbox.css +1 -1
  50. package/dist/assets/dropdown.css +1 -1
  51. package/dist/assets/index.css +1 -1
  52. package/dist/assets/index10.css +1 -1
  53. package/dist/assets/index11.css +1 -1
  54. package/dist/assets/index12.css +1 -1
  55. package/dist/assets/index13.css +1 -1
  56. package/dist/assets/index14.css +1 -1
  57. package/dist/assets/index15.css +1 -1
  58. package/dist/assets/index16.css +1 -1
  59. package/dist/assets/index17.css +1 -1
  60. package/dist/assets/index18.css +1 -1
  61. package/dist/assets/index19.css +1 -1
  62. package/dist/assets/index2.css +1 -1
  63. package/dist/assets/index20.css +1 -1
  64. package/dist/assets/index21.css +1 -1
  65. package/dist/assets/index22.css +1 -1
  66. package/dist/assets/index23.css +1 -1
  67. package/dist/assets/index24.css +1 -1
  68. package/dist/assets/index25.css +1 -1
  69. package/dist/assets/index26.css +1 -1
  70. package/dist/assets/index27.css +1 -1
  71. package/dist/assets/index28.css +1 -1
  72. package/dist/assets/index29.css +1 -1
  73. package/dist/assets/index3.css +1 -1
  74. package/dist/assets/index30.css +1 -1
  75. package/dist/assets/index31.css +1 -1
  76. package/dist/assets/index32.css +1 -1
  77. package/dist/assets/index33.css +1 -1
  78. package/dist/assets/index34.css +1 -1
  79. package/dist/assets/index35.css +1 -1
  80. package/dist/assets/index36.css +1 -1
  81. package/dist/assets/index37.css +1 -1
  82. package/dist/assets/index38.css +1 -1
  83. package/dist/assets/index39.css +1 -1
  84. package/dist/assets/index4.css +1 -1
  85. package/dist/assets/index40.css +1 -1
  86. package/dist/assets/index41.css +1 -1
  87. package/dist/assets/index42.css +1 -1
  88. package/dist/assets/index43.css +1 -1
  89. package/dist/assets/index44.css +1 -0
  90. package/dist/assets/index5.css +1 -1
  91. package/dist/assets/index6.css +1 -1
  92. package/dist/assets/index7.css +1 -1
  93. package/dist/assets/index8.css +1 -1
  94. package/dist/assets/index9.css +1 -1
  95. package/dist/assets/tooltip.css +1 -1
  96. package/dist/avatar-image.js +1 -1
  97. package/dist/badge.js +1 -1
  98. package/dist/button.js +5 -5
  99. package/dist/card.js +4 -4
  100. package/dist/checkbox.js +6 -6
  101. package/dist/chunks/base-button.9740f320.js +116 -0
  102. package/dist/chunks/base-button.9740f320.js.map +1 -0
  103. package/dist/chunks/base-modal.be77971f.js +296 -0
  104. package/dist/chunks/base-modal.be77971f.js.map +1 -0
  105. package/dist/chunks/{button.7d09c245.js → button.7072457f.js} +3 -3
  106. package/dist/chunks/{button.7d09c245.js.map → button.7072457f.js.map} +1 -1
  107. package/dist/chunks/{calendar.0e42130b.js → calendar.1e50c7d1.js} +5 -5
  108. package/dist/chunks/{calendar.0e42130b.js.map → calendar.1e50c7d1.js.map} +1 -1
  109. package/dist/chunks/{checkbox.17462cb0.js → checkbox.638bab98.js} +24 -24
  110. package/dist/chunks/{checkbox.17462cb0.js.map → checkbox.638bab98.js.map} +1 -1
  111. package/dist/chunks/{chevron-up.c03b58f8.js → chevron-up.9bf21068.js} +3 -3
  112. package/dist/chunks/{chevron-up.c03b58f8.js.map → chevron-up.9bf21068.js.map} +1 -1
  113. package/dist/chunks/{controls-group.0d6db9c0.js → controls-group.efcf4e8d.js} +2 -2
  114. package/dist/chunks/{controls-group.0d6db9c0.js.map → controls-group.efcf4e8d.js.map} +1 -1
  115. package/dist/chunks/{copy.c9a29be0.js → copy.527c3d76.js} +3 -3
  116. package/dist/chunks/{copy.c9a29be0.js.map → copy.527c3d76.js.map} +1 -1
  117. package/dist/chunks/debounce.b5ef6acf.js +10 -0
  118. package/dist/chunks/debounce.b5ef6acf.js.map +1 -0
  119. package/dist/chunks/{dropdown-default-textbox.cd789a95.js → dropdown-default-textbox.a1789dc7.js} +19 -18
  120. package/dist/chunks/{dropdown-default-textbox.cd789a95.js.map → dropdown-default-textbox.a1789dc7.js.map} +1 -1
  121. package/dist/chunks/{dropdown.ff4f94a8.js → dropdown.22e51667.js} +9 -7
  122. package/dist/chunks/dropdown.22e51667.js.map +1 -0
  123. package/dist/chunks/{error-message.8c67a507.js → error-message.37b6c7aa.js} +2 -2
  124. package/dist/chunks/{error-message.8c67a507.js.map → error-message.37b6c7aa.js.map} +1 -1
  125. package/dist/chunks/{footer-actions.a587e374.js → footer-actions.5275203a.js} +3 -3
  126. package/dist/chunks/{footer-actions.a587e374.js.map → footer-actions.5275203a.js.map} +1 -1
  127. package/dist/chunks/{grid-layout.984317d7.js → grid-layout.c98e6bc7.js} +2 -2
  128. package/dist/chunks/{grid-layout.984317d7.js.map → grid-layout.c98e6bc7.js.map} +1 -1
  129. package/dist/chunks/{index.77c651df.js → index.32ed68b7.js} +2 -2
  130. package/dist/chunks/{index.77c651df.js.map → index.32ed68b7.js.map} +1 -1
  131. package/dist/chunks/{index.fdb0c13d.js → index.604da8e9.js} +3 -3
  132. package/dist/chunks/{index.fdb0c13d.js.map → index.604da8e9.js.map} +1 -1
  133. package/dist/chunks/{index.fd1cd23a.js → index.a57930ba.js} +197 -188
  134. package/dist/chunks/index.a57930ba.js.map +1 -0
  135. package/dist/chunks/{index.ee69b530.js → index.c22c4278.js} +6 -6
  136. package/dist/chunks/{index.ee69b530.js.map → index.c22c4278.js.map} +1 -1
  137. package/dist/chunks/{index.140bf28f.js → index.c62ea69f.js} +2 -2
  138. package/dist/chunks/{index.140bf28f.js.map → index.c62ea69f.js.map} +1 -1
  139. package/dist/chunks/{index.450b70d5.js → index.dd20095f.js} +3 -3
  140. package/dist/chunks/{index.450b70d5.js.map → index.dd20095f.js.map} +1 -1
  141. package/dist/chunks/{debounce.f8d92e44.js → keyboard-navigation.ca47dfa8.js} +11 -17
  142. package/dist/chunks/keyboard-navigation.ca47dfa8.js.map +1 -0
  143. package/dist/chunks/{listbox-option-tag.ffe70226.js → listbox-option-tag.fa70334e.js} +3 -3
  144. package/dist/chunks/{listbox-option-tag.ffe70226.js.map → listbox-option-tag.fa70334e.js.map} +1 -1
  145. package/dist/chunks/{listbox.f535a736.js → listbox.4205c0de.js} +12 -11
  146. package/dist/chunks/{listbox.f535a736.js.map → listbox.4205c0de.js.map} +1 -1
  147. package/dist/chunks/{loading-button.bc6e3967.js → loading-button.41c15584.js} +2 -2
  148. package/dist/chunks/{loading-button.bc6e3967.js.map → loading-button.41c15584.js.map} +1 -1
  149. package/dist/chunks/{tooltip.973c86d3.js → tooltip.c8350cd0.js} +37 -36
  150. package/dist/chunks/{tooltip.973c86d3.js.map → tooltip.c8350cd0.js.map} +1 -1
  151. package/dist/chunks/use-has-slot.3daaffc6.js +17 -0
  152. package/dist/chunks/use-has-slot.3daaffc6.js.map +1 -0
  153. package/dist/code-snippet.js +469 -466
  154. package/dist/code-snippet.js.map +1 -1
  155. package/dist/country.js +2 -2
  156. package/dist/currency.js +1 -1
  157. package/dist/data-grid.js +963 -834
  158. package/dist/data-grid.js.map +1 -1
  159. package/dist/date-picker.js +8 -8
  160. package/dist/date-range-picker.js +2 -2
  161. package/dist/date.js +1 -1
  162. package/dist/divider.js +1 -1
  163. package/dist/dropdown.js +4 -4
  164. package/dist/empty-state.js +21 -21
  165. package/dist/empty-state.js.map +1 -1
  166. package/dist/filter-bar.js +853 -784
  167. package/dist/filter-bar.js.map +1 -1
  168. package/dist/focus-trap.js +1 -1
  169. package/dist/form-layout.js +72 -51
  170. package/dist/form-layout.js.map +1 -1
  171. package/dist/header.js +190 -112
  172. package/dist/header.js.map +1 -1
  173. package/dist/image.js +3 -1
  174. package/dist/index.js +219 -211
  175. package/dist/index.js.map +1 -1
  176. package/dist/info-icon.js +2 -2
  177. package/dist/input-field.js +5 -5
  178. package/dist/internal.js +7 -7
  179. package/dist/link.js +2 -2
  180. package/dist/loading-indicator.js +1 -1
  181. package/dist/menu.js +114 -104
  182. package/dist/menu.js.map +1 -1
  183. package/dist/modal.js +33 -30
  184. package/dist/modal.js.map +1 -1
  185. package/dist/pagination.js +4 -4
  186. package/dist/payment-method.js +2 -2
  187. package/dist/popover.js +72 -61
  188. package/dist/popover.js.map +1 -1
  189. package/dist/popper-container.js +1238 -192
  190. package/dist/popper-container.js.map +1 -1
  191. package/dist/radio-group.js +5 -5
  192. package/dist/search-bar.js +3 -3
  193. package/dist/segmented-control.js +15 -15
  194. package/dist/segmented-control.js.map +1 -1
  195. package/dist/sidepanel.js +7 -7
  196. package/dist/sidepanel.js.map +1 -1
  197. package/dist/status.js +2 -2
  198. package/dist/stepper.js +276 -0
  199. package/dist/stepper.js.map +1 -0
  200. package/dist/structured-list.js +1 -1
  201. package/dist/summary-grid.js +5 -5
  202. package/dist/tabs.js +2 -2
  203. package/dist/tag.js +3 -3
  204. package/dist/textarea.js +4 -4
  205. package/dist/timeline.js +5 -5
  206. package/dist/toast.js +4 -4
  207. package/dist/toggle.js +12 -12
  208. package/dist/toggle.js.map +1 -1
  209. package/dist/typography.js +1 -1
  210. package/dist/web-types.json +1 -1
  211. package/package.json +3 -3
  212. package/dist/chunks/base-button.c4ac1ad1.js +0 -108
  213. package/dist/chunks/base-button.c4ac1ad1.js.map +0 -1
  214. package/dist/chunks/base-modal.db7a9829.js +0 -291
  215. package/dist/chunks/base-modal.db7a9829.js.map +0 -1
  216. package/dist/chunks/debounce.f8d92e44.js.map +0 -1
  217. package/dist/chunks/dropdown.ff4f94a8.js.map +0 -1
  218. package/dist/chunks/index.fd1cd23a.js.map +0 -1
  219. package/dist/chunks/use-has-slot.9fac7123.js +0 -16
  220. package/dist/chunks/use-has-slot.9fac7123.js.map +0 -1
package/dist/menu.js CHANGED
@@ -1,12 +1,12 @@
1
- import { openBlock as m, createElementBlock as k, mergeProps as V, toDisplayString as E, createCommentVNode as P, pushScopeId as se, popScopeId as le, createElementVNode as O, defineComponent as K, computed as B, resolveComponent as h, createBlock as L, normalizeClass as W, createSlots as ue, withCtx as g, createVNode as I, createTextVNode as D, resolveDynamicComponent as ie, renderSlot as j, ref as f, onMounted as ae, Transition as re, withKeys as y, withModifiers as T, Fragment as Z, renderList as z, normalizeStyle as G, resolveDirective as de, withDirectives as ce } from "vue";
1
+ import { openBlock as m, createElementBlock as k, mergeProps as V, toDisplayString as E, createCommentVNode as P, pushScopeId as se, popScopeId as le, createElementVNode as O, defineComponent as K, computed as B, resolveComponent as h, createBlock as L, normalizeClass as W, createSlots as ie, withCtx as g, createVNode as I, createTextVNode as D, resolveDynamicComponent as ue, renderSlot as j, ref as f, onMounted as ae, Transition as re, withKeys as y, withModifiers as T, Fragment as Z, renderList as z, normalizeStyle as G, resolveDirective as ce, withDirectives as de } from "vue";
2
2
  import { _ as S } from "./chunks/_plugin-vue_export-helper.dad06003.js";
3
3
  import { g as F } from "./chunks/unique-id.a2a2b458.js";
4
4
  import { B as me } from "./chunks/directive.0408e565.js";
5
- import { a as pe } from "./chunks/button.7d09c245.js";
5
+ import { a as pe } from "./chunks/button.7072457f.js";
6
6
  import { BentoPopover as fe, BentoPopoverPositions as H } from "./popover.js";
7
7
  import { a as ve, C as A } from "./chunks/chevron-right.aef416c6.js";
8
- import { B as _e, a as q } from "./chunks/base-button.c4ac1ad1.js";
9
- import { B as be } from "./chunks/index.77c651df.js";
8
+ import { B as _e, a as q } from "./chunks/base-button.9740f320.js";
9
+ import { B as be } from "./chunks/index.32ed68b7.js";
10
10
  import "./assets/index41.css";
11
11
  let U = 0;
12
12
  const ye = {
@@ -29,7 +29,7 @@ const ye = {
29
29
  d: "M8.83335 9.24721C8.58668 9.41203 8.29667 9.5 8 9.5C7.60218 9.5 7.22064 9.34197 6.93934 9.06066C6.65804 8.77936 6.5 8.39783 6.5 8C6.5 7.70333 6.58797 7.41332 6.7528 7.16665C6.91762 6.91997 7.15189 6.72771 7.42597 6.61418C7.70006 6.50065 8.00166 6.47094 8.29264 6.52882C8.58361 6.5867 8.85088 6.72956 9.06066 6.93934C9.27044 7.14912 9.4133 7.41639 9.47118 7.70737C9.52906 7.99834 9.49935 8.29994 9.38582 8.57403C9.27229 8.84811 9.08003 9.08238 8.83335 9.24721Z",
30
30
  "clip-rule": "evenodd"
31
31
  }, null, -1));
32
- function Me(e, t, c, s, i, a) {
32
+ function Me(e, n, d, s, u, a) {
33
33
  return m(), k("svg", V({ role: "img" }, e.$attrs, {
34
34
  xmlns: "http://www.w3.org/2000/svg",
35
35
  width: "16",
@@ -111,7 +111,7 @@ const Be = /* @__PURE__ */ S(ye, [["render", Me], ["__scopeId", "data-v-c663a42e
111
111
  }
112
112
  },
113
113
  emits: [q.CLICK],
114
- setup(e, { emit: t }) {
114
+ setup(e, { emit: n }) {
115
115
  return {
116
116
  // Values
117
117
  conditionalClasses: B(() => ({
@@ -119,23 +119,23 @@ const Be = /* @__PURE__ */ S(ye, [["render", Me], ["__scopeId", "data-v-c663a42e
119
119
  "b-menu-item--indent": e.indent
120
120
  })),
121
121
  // Methods
122
- onClick: (i) => {
123
- i.stopPropagation(), e.handler(), t(q.CLICK);
122
+ onClick: (u) => {
123
+ u.stopPropagation(), e.handler(), n(q.CLICK);
124
124
  }
125
125
  };
126
126
  }
127
127
  });
128
- function ke(e, t, c, s, i, a) {
129
- const u = h("bento-typography"), l = h("chevron-right-icon"), o = h("base-button");
128
+ function ke(e, n, d, s, u, a) {
129
+ const i = h("bento-typography"), l = h("chevron-right-icon"), o = h("base-button");
130
130
  return m(), L(o, {
131
131
  class: W(["b-menu-item", e.conditionalClasses]),
132
132
  role: "menuitem",
133
133
  disabled: e.disabled,
134
134
  tabindex: "-1",
135
135
  onClick: e.onClick
136
- }, ue({
136
+ }, ie({
137
137
  default: g(() => [
138
- I(u, {
138
+ I(i, {
139
139
  el: "span",
140
140
  variant: "body",
141
141
  stronger: e.isTitle,
@@ -146,7 +146,7 @@ function ke(e, t, c, s, i, a) {
146
146
  ]),
147
147
  _: 1
148
148
  }, 8, ["stronger"]),
149
- e.secondaryText ? (m(), L(u, {
149
+ e.secondaryText ? (m(), L(i, {
150
150
  key: 0,
151
151
  el: "span",
152
152
  variant: "body",
@@ -163,7 +163,7 @@ function ke(e, t, c, s, i, a) {
163
163
  e.icon ? {
164
164
  name: "iconLeft",
165
165
  fn: g(() => [
166
- (m(), L(ie(e.icon), {
166
+ (m(), L(ue(e.icon), {
167
167
  class: "b-menu-item__icon-left",
168
168
  "aria-hidden": "true"
169
169
  }))
@@ -185,7 +185,7 @@ const we = K({
185
185
  name: "bento-menu-list-container"
186
186
  });
187
187
  const Le = { class: "b-menu-list-container" };
188
- function Se(e, t, c, s, i, a) {
188
+ function Se(e, n, d, s, u, a) {
189
189
  return m(), k("div", Le, [
190
190
  j(e.$slots, "default", {}, void 0, !0)
191
191
  ]);
@@ -210,10 +210,10 @@ const Q = /* @__PURE__ */ S(we, [["render", Se], ["__scopeId", "data-v-ea0113ba"
210
210
  }
211
211
  },
212
212
  emits: [C.CLOSE, C.BACK],
213
- setup(e, { emit: t }) {
214
- const c = f(null), s = f(0), i = f(e.items.length), a = () => t(C.CLOSE), u = () => t(C.BACK), l = B(() => {
213
+ setup(e, { emit: n }) {
214
+ const d = f(null), s = f(0), u = f(e.items.length), a = () => n(C.CLOSE), i = () => n(C.BACK), l = B(() => {
215
215
  var v;
216
- const d = (v = e.items) == null ? void 0 : v.map((_) => ({
216
+ const c = (v = e.items) == null ? void 0 : v.map((_) => ({
217
217
  ..._,
218
218
  indent: !_.icon,
219
219
  isTitle: !1,
@@ -228,41 +228,41 @@ const Q = /* @__PURE__ */ S(we, [["render", Se], ["__scopeId", "data-v-ea0113ba"
228
228
  isTitle: !0,
229
229
  disabled: !1,
230
230
  indent: !1,
231
- handler: u,
232
- clickHandler: u
231
+ handler: i,
232
+ clickHandler: i
233
233
  },
234
- ...d
234
+ ...c
235
235
  ];
236
236
  }), o = async () => {
237
- var d, v, _, w, $;
238
- ($ = (w = (_ = (v = (d = c.value) == null ? void 0 : d.children) == null ? void 0 : v[s.value]) == null ? void 0 : _.children) == null ? void 0 : w[0]) == null || $.focus();
237
+ var c, v, _, w, $;
238
+ ($ = (w = (_ = (v = (c = d.value) == null ? void 0 : c.children) == null ? void 0 : v[s.value]) == null ? void 0 : _.children) == null ? void 0 : w[0]) == null || $.focus();
239
239
  };
240
240
  ae(async () => {
241
241
  setTimeout(() => o(), 150);
242
242
  });
243
- const n = () => {
244
- s.value > 0 ? (s.value -= 1, l.value[s.value].disabled && n()) : s.value = i.value, o();
243
+ const t = () => {
244
+ s.value > 0 ? (s.value -= 1, l.value[s.value].disabled && t()) : s.value = u.value, o();
245
245
  }, p = () => {
246
- s.value < i.value ? (s.value += 1, l.value[s.value].disabled && p()) : s.value = 0, o();
246
+ s.value < u.value ? (s.value += 1, l.value[s.value].disabled && p()) : s.value = 0, o();
247
247
  };
248
248
  return {
249
249
  // Enums
250
250
  BentoMenuEvent: C,
251
251
  // Values
252
- subMenuItemListRefLocal: c,
252
+ subMenuItemListRefLocal: d,
253
253
  subMenuFocusedIndex: s,
254
254
  ChevronLeftIcon: A,
255
255
  computedItems: l,
256
256
  // Methods
257
257
  closeMenu: a,
258
- onBackButton: u,
259
- focusPrevious: n,
258
+ onBackButton: i,
259
+ focusPrevious: t,
260
260
  focusNext: p
261
261
  };
262
262
  }
263
263
  });
264
- function Ke(e, t, c, s, i, a) {
265
- const u = h("menu-item"), l = h("menu-list-container");
264
+ function Ke(e, n, d, s, u, a) {
265
+ const i = h("menu-item"), l = h("menu-list-container");
266
266
  return m(), L(re, {
267
267
  name: "b-sub-menu-item-list__transition",
268
268
  appear: ""
@@ -275,20 +275,20 @@ function Ke(e, t, c, s, i, a) {
275
275
  role: "menu",
276
276
  class: "b-sub-menu-item-list__list",
277
277
  onKeydown: [
278
- t[0] || (t[0] = y(T((...o) => e.focusNext && e.focusNext(...o), ["stop"]), ["down"])),
279
- t[1] || (t[1] = y(T((...o) => e.focusPrevious && e.focusPrevious(...o), ["stop"]), ["up"])),
280
- t[2] || (t[2] = y(T((...o) => e.onBackButton && e.onBackButton(...o), ["stop"]), ["esc"]))
278
+ n[0] || (n[0] = y(T((...o) => e.focusNext && e.focusNext(...o), ["stop"]), ["down"])),
279
+ n[1] || (n[1] = y(T((...o) => e.focusPrevious && e.focusPrevious(...o), ["stop"]), ["up"])),
280
+ n[2] || (n[2] = y(T((...o) => e.onBackButton && e.onBackButton(...o), ["stop"]), ["esc"]))
281
281
  ]
282
282
  }, [
283
- (m(!0), k(Z, null, z(e.computedItems, (o, n) => (m(), k("li", {
284
- key: `sub-menu-item-list-item-${n}`,
283
+ (m(!0), k(Z, null, z(e.computedItems, (o, t) => (m(), k("li", {
284
+ key: `sub-menu-item-list-item-${t}`,
285
285
  class: W([
286
- { "b-sub-menu-item-list__back-button": n === 0 },
287
- { "b-sub-menu-item-list__first-item": n == 1 }
286
+ { "b-sub-menu-item-list__back-button": t === 0 },
287
+ { "b-sub-menu-item-list__first-item": t == 1 }
288
288
  ]),
289
289
  role: "none"
290
290
  }, [
291
- I(u, {
291
+ I(i, {
292
292
  text: o.text,
293
293
  handler: o.handler,
294
294
  "secondary-text": o.secondaryText,
@@ -297,7 +297,7 @@ function Ke(e, t, c, s, i, a) {
297
297
  disabled: o.disabled,
298
298
  critical: o.critical,
299
299
  indent: o.indent,
300
- tabindex: n === e.subMenuFocusedIndex ? "0" : "-1",
300
+ tabindex: t === e.subMenuFocusedIndex ? "0" : "-1",
301
301
  onClick: o.clickHandler
302
302
  }, null, 8, ["text", "handler", "secondary-text", "icon", "is-title", "disabled", "critical", "indent", "tabindex", "onClick"])
303
303
  ], 2))), 128))
@@ -336,8 +336,8 @@ const Pe = /* @__PURE__ */ S(Oe, [["render", Ke], ["__scopeId", "data-v-67456329
336
336
  }
337
337
  },
338
338
  emits: [C.CLOSE],
339
- setup(e, { emit: t }) {
340
- const c = f(null), s = f(null), i = f(null), a = f(!1), u = f(null), l = f(e.focusLastElement ? e.data.length - 1 : 0), o = f(0), n = f(e.data.length - 1), p = B(() => e.data.some((r) => r.icon)), d = B(() => e.indentItems || p.value ? e.data.map((r) => {
339
+ setup(e, { emit: n }) {
340
+ const d = f(null), s = f(null), u = f(null), a = f(!1), i = f(null), l = f(e.focusLastElement ? e.data.length - 1 : 0), o = f(0), t = f(e.data.length - 1), p = B(() => e.data.some((r) => r.icon)), c = B(() => e.indentItems || p.value ? e.data.map((r) => {
341
341
  let b = !1;
342
342
  return r.icon || (b = !0), {
343
343
  ...r,
@@ -346,38 +346,38 @@ const Pe = /* @__PURE__ */ S(Oe, [["render", Ke], ["__scopeId", "data-v-67456329
346
346
  };
347
347
  }) : e.data), v = () => {
348
348
  var r, b, M;
349
- return (M = (b = (r = c.value) == null ? void 0 : r.children[l.value]) == null ? void 0 : b.children[0]) == null ? void 0 : M.focus();
350
- }, _ = () => t(C.CLOSE), w = async (r, b) => {
351
- r.items ? (u.value = b, a.value = !0) : (u.value = b, a.value = !1, _());
349
+ return (M = (b = (r = d.value) == null ? void 0 : r.children[l.value]) == null ? void 0 : b.children[0]) == null ? void 0 : M.focus();
350
+ }, _ = () => n(C.CLOSE), w = async (r, b) => {
351
+ r.items ? (i.value = b, a.value = !0) : (i.value = b, a.value = !1, _());
352
352
  }, $ = () => {
353
- l.value > 0 ? (l.value -= 1, d.value[l.value].disabled && $()) : l.value = n.value, v();
353
+ l.value > 0 ? (l.value -= 1, c.value[l.value].disabled && $()) : l.value = t.value, v();
354
354
  }, R = () => {
355
- l.value < n.value ? (l.value += 1, d.value[l.value].disabled && R()) : l.value = 0, v();
355
+ l.value < t.value ? (l.value += 1, c.value[l.value].disabled && R()) : l.value = 0, v();
356
356
  }, Y = (r, b) => {
357
357
  var M;
358
- (M = r == null ? void 0 : r.items) != null && M.length && (u.value = b, a.value = !0);
358
+ (M = r == null ? void 0 : r.items) != null && M.length && (i.value = b, a.value = !0);
359
359
  }, x = () => {
360
- u.value && a.value && (u.value = null, a.value = !1);
360
+ i.value && a.value && (i.value = null, a.value = !1);
361
361
  }, ee = () => {
362
- a.value = !1, u.value = null, v();
363
- }, ne = B(() => {
362
+ a.value = !1, i.value = null, v();
363
+ }, te = B(() => {
364
364
  var r;
365
365
  return (r = s == null ? void 0 : s.value) == null ? void 0 : r.$el.offsetHeight;
366
- }), te = B(() => {
366
+ }), ne = B(() => {
367
367
  var r, b, M;
368
- return (M = (b = (r = i == null ? void 0 : i.value) == null ? void 0 : r[0]) == null ? void 0 : b.$el) == null ? void 0 : M.offsetHeight;
369
- }), oe = B(() => a.value ? `${te.value}px` : `${ne.value}px`);
368
+ return (M = (b = (r = u == null ? void 0 : u.value) == null ? void 0 : r[0]) == null ? void 0 : b.$el) == null ? void 0 : M.offsetHeight;
369
+ }), oe = B(() => a.value ? `${ne.value}px` : `${te.value}px`);
370
370
  return {
371
371
  // Values
372
- menuItemListRef: c,
372
+ menuItemListRef: d,
373
373
  menuItemListWrapperRef: s,
374
- subMenuItemListRef: i,
375
- computedData: d,
374
+ subMenuItemListRef: u,
375
+ computedData: c,
376
376
  computedHeight: oe,
377
377
  focusedIndex: l,
378
378
  subMenuFocusedIndex: o,
379
379
  showSubMenu: a,
380
- visibleSubMenuIndex: u,
380
+ visibleSubMenuIndex: i,
381
381
  // Methods
382
382
  toggleMenu: w,
383
383
  closeMenu: _,
@@ -390,8 +390,8 @@ const Pe = /* @__PURE__ */ S(Oe, [["render", Ke], ["__scopeId", "data-v-67456329
390
390
  }
391
391
  });
392
392
  const Ee = ["onKeydown"];
393
- function Ne(e, t, c, s, i, a) {
394
- const u = h("menu-item"), l = h("sub-menu-item-list"), o = h("menu-list-container");
393
+ function Ne(e, n, d, s, u, a) {
394
+ const i = h("menu-item"), l = h("sub-menu-item-list"), o = h("menu-list-container");
395
395
  return m(), L(o, {
396
396
  ref: "menuItemListWrapperRef",
397
397
  style: G({ height: e.computedHeight })
@@ -402,43 +402,43 @@ function Ne(e, t, c, s, i, a) {
402
402
  class: "b-menu-item-list",
403
403
  role: "menu",
404
404
  onKeydown: [
405
- t[1] || (t[1] = y((...n) => e.focusNext && e.focusNext(...n), ["down"])),
406
- t[2] || (t[2] = y((...n) => e.focusPrevious && e.focusPrevious(...n), ["up"])),
407
- t[3] || (t[3] = y((...n) => e.closeMenu && e.closeMenu(...n), ["esc"])),
408
- t[4] || (t[4] = y((...n) => e.closeMenu && e.closeMenu(...n), ["tab"]))
405
+ n[1] || (n[1] = y((...t) => e.focusNext && e.focusNext(...t), ["down"])),
406
+ n[2] || (n[2] = y((...t) => e.focusPrevious && e.focusPrevious(...t), ["up"])),
407
+ n[3] || (n[3] = y((...t) => e.closeMenu && e.closeMenu(...t), ["esc"])),
408
+ n[4] || (n[4] = y((...t) => e.closeMenu && e.closeMenu(...t), ["tab"]))
409
409
  ]
410
410
  }, [
411
- (m(!0), k(Z, null, z(e.computedData, (n, p) => {
412
- var d, v, _, w;
411
+ (m(!0), k(Z, null, z(e.computedData, (t, p) => {
412
+ var c, v, _, w;
413
413
  return m(), k("li", {
414
414
  key: `menu-item-${p}`,
415
415
  class: "b-menu-item-list__item",
416
416
  role: "none",
417
417
  onKeydown: [
418
- y(($) => e.focusRight(n, p), ["right"]),
419
- t[0] || (t[0] = y(($) => e.focusLeft(), ["left"]))
418
+ y(($) => e.focusRight(t, p), ["right"]),
419
+ n[0] || (n[0] = y(($) => e.focusLeft(), ["left"]))
420
420
  ]
421
421
  }, [
422
- I(u, {
423
- text: n.text,
424
- handler: (d = n.items) != null && d.length ? () => null : n.handler,
425
- "secondary-text": n.secondaryText,
426
- icon: n.icon,
427
- chevron: !!((v = n.items) != null && v.length),
428
- disabled: n.disabled,
429
- critical: n.critical,
430
- indent: n.indent,
422
+ I(i, {
423
+ text: t.text,
424
+ handler: (c = t.items) != null && c.length ? () => null : t.handler,
425
+ "secondary-text": t.secondaryText,
426
+ icon: t.icon,
427
+ chevron: !!((v = t.items) != null && v.length),
428
+ disabled: t.disabled,
429
+ critical: t.critical,
430
+ indent: t.indent,
431
431
  tabindex: p === e.subMenuFocusedIndex ? "0" : "-1",
432
- "aria-haspopup": !!((_ = n.items) != null && _.length),
432
+ "aria-haspopup": !!((_ = t.items) != null && _.length),
433
433
  "aria-expanded": e.showSubMenu && e.visibleSubMenuIndex === p,
434
- onClick: ($) => e.toggleMenu(n, p)
434
+ onClick: ($) => e.toggleMenu(t, p)
435
435
  }, null, 8, ["text", "handler", "secondary-text", "icon", "chevron", "disabled", "critical", "indent", "tabindex", "aria-haspopup", "aria-expanded", "onClick"]),
436
- (w = n.items) != null && w.length && e.showSubMenu && e.visibleSubMenuIndex === p ? (m(), L(l, {
436
+ (w = t.items) != null && w.length && e.showSubMenu && e.visibleSubMenuIndex === p ? (m(), L(l, {
437
437
  key: 0,
438
438
  ref_for: !0,
439
439
  ref: "subMenuItemListRef",
440
- items: n.items,
441
- title: n.text,
440
+ items: t.items,
441
+ title: t.text,
442
442
  onBack: e.onBackButton,
443
443
  onClose: e.closeMenu
444
444
  }, null, 8, ["items", "title", "onBack", "onClose"])) : P("", !0)
@@ -472,7 +472,7 @@ const Re = /* @__PURE__ */ S(Te, [["render", Ne], ["__scopeId", "data-v-a917040d
472
472
  },
473
473
  /**
474
474
  * Instructs the menu popover to be visible outside of the containing container.
475
- * https://popper.js.org/docs/v2/constructors/#strategy
475
+ * @see {@link https://floating-ui.com/docs/usefloating#strategy}
476
476
  */
477
477
  menuFixedPositioning: {
478
478
  type: Boolean,
@@ -496,42 +496,42 @@ const Re = /* @__PURE__ */ S(Te, [["render", Ne], ["__scopeId", "data-v-a917040d
496
496
  }
497
497
  },
498
498
  emits: [C.CLOSE, C.OPEN],
499
- setup(e, { emit: t }) {
500
- const c = f(null), s = f(!1), i = f(!1), a = F("menu"), u = F("menu-popover"), l = B(() => e.menuWidth ? { width: `${e.menuWidth}px` } : null), o = () => {
501
- s.value = !0, t(C.OPEN);
502
- }, n = () => {
503
- s.value && (s.value = !1, c.value.$el.focus(), t(C.CLOSE));
499
+ setup(e, { emit: n }) {
500
+ const d = f(null), s = f(!1), u = f(!1), a = F("menu"), i = F("menu-popover"), l = B(() => e.menuWidth ? { width: `${e.menuWidth}px` } : null), o = () => {
501
+ s.value = !0, n(C.OPEN);
502
+ }, t = () => {
503
+ s.value && (s.value = !1, d.value.$el.focus(), n(C.CLOSE));
504
504
  };
505
505
  return {
506
506
  // Values
507
- menuButtonRef: c,
507
+ menuButtonRef: d,
508
508
  menuId: a,
509
- popoverId: u,
509
+ popoverId: i,
510
510
  showMenu: s,
511
511
  computedMenuWidth: l,
512
- isLastElementFocused: i,
512
+ isLastElementFocused: u,
513
513
  // Methods
514
514
  onKeyDown: () => {
515
- i.value = !1, o();
515
+ u.value = !1, o();
516
516
  },
517
517
  onKeyUp: () => {
518
- i.value = !0, o();
518
+ u.value = !0, o();
519
519
  },
520
- closeMenu: n,
520
+ closeMenu: t,
521
521
  toggleShowMenu: (_) => {
522
- _.stopPropagation(), s.value ? n() : o();
522
+ _.stopPropagation(), s.value ? t() : o();
523
523
  }
524
524
  };
525
525
  }
526
526
  });
527
- function Fe(e, t, c, s, i, a) {
528
- const u = h("options-vertical-icon"), l = h("bento-button"), o = h("menu-item-list"), n = h("bento-popover"), p = de("bento-click-outside-directive");
529
- return ce((m(), k("div", {
527
+ function Fe(e, n, d, s, u, a) {
528
+ const i = h("options-vertical-icon"), l = h("bento-button"), o = h("menu-item-list"), t = h("bento-popover"), p = ce("bento-click-outside-directive");
529
+ return de((m(), k("div", {
530
530
  class: "b-menu",
531
531
  onKeydown: [
532
- t[0] || (t[0] = y((...d) => e.onKeyDown && e.onKeyDown(...d), ["down"])),
533
- t[1] || (t[1] = y((...d) => e.onKeyUp && e.onKeyUp(...d), ["up"])),
534
- t[2] || (t[2] = y((...d) => e.closeMenu && e.closeMenu(...d), ["esc"]))
532
+ n[0] || (n[0] = y((...c) => e.onKeyDown && e.onKeyDown(...c), ["down"])),
533
+ n[1] || (n[1] = y((...c) => e.onKeyUp && e.onKeyUp(...c), ["up"])),
534
+ n[2] || (n[2] = y((...c) => e.closeMenu && e.closeMenu(...c), ["esc"]))
535
535
  ]
536
536
  }, [
537
537
  I(l, V({
@@ -544,14 +544,14 @@ function Fe(e, t, c, s, i, a) {
544
544
  }), {
545
545
  iconLeft: g(() => [
546
546
  j(e.$slots, "default", {}, () => [
547
- I(u, {
547
+ I(i, {
548
548
  title: e.$t("menuButton")
549
549
  }, null, 8, ["title"])
550
550
  ], !0)
551
551
  ]),
552
552
  _: 3
553
553
  }, 16, ["aria-expanded", "aria-controls", "onClick"]),
554
- e.menuButtonRef ? (m(), L(n, {
554
+ e.menuButtonRef ? (m(), L(t, {
555
555
  key: 0,
556
556
  id: e.menuId,
557
557
  open: e.showMenu,
@@ -560,6 +560,16 @@ function Fe(e, t, c, s, i, a) {
560
560
  "target-element": e.menuButtonRef,
561
561
  position: e.menuPosition,
562
562
  "fixed-positioning": e.menuFixedPositioning,
563
+ "fallback-position": [
564
+ "bottom-start",
565
+ "bottom-end",
566
+ "top-start",
567
+ "top-end",
568
+ "right-start",
569
+ "right-end",
570
+ "left-start",
571
+ "left-end"
572
+ ],
563
573
  "without-space": ""
564
574
  }, {
565
575
  default: g(() => [
@@ -575,7 +585,7 @@ function Fe(e, t, c, s, i, a) {
575
585
  [p, e.closeMenu]
576
586
  ]);
577
587
  }
578
- const Ge = /* @__PURE__ */ S(De, [["render", Fe], ["__scopeId", "data-v-487dd6cd"]]);
588
+ const Ge = /* @__PURE__ */ S(De, [["render", Fe], ["__scopeId", "data-v-2ccaed5c"]]);
579
589
  export {
580
590
  Ge as BentoMenu,
581
591
  C as BentoMenuEvent