@adyen/bento-vue3 1.8.0 → 1.9.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 (224) hide show
  1. package/dist/@types/packages/vue2/src/components/data-grid/composables/useKeyboardNavigator/useKeyboardNavigator.d.ts +6 -2
  2. package/dist/@types/packages/vue2/src/components/data-grid/composables/useScroller/useScroller.d.ts +6 -0
  3. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +23 -422
  4. package/dist/@types/packages/vue2/src/components/divider/divider.vue.d.ts +1 -5
  5. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +10 -0
  6. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +12 -0
  7. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +1 -0
  8. package/dist/@types/packages/vue2/src/components/input-field/input-field.types.d.ts +1 -3
  9. package/dist/@types/packages/vue2/src/components/internal/field-label/field-label.vue.d.ts +9 -0
  10. package/dist/accordion.js +2 -2
  11. package/dist/action-bar.js +4 -4
  12. package/dist/alert.js +58 -59
  13. package/dist/alert.js.map +1 -1
  14. package/dist/assets/base-modal.css +1 -1
  15. package/dist/assets/checkbox.css +1 -1
  16. package/dist/assets/copy.css +1 -1
  17. package/dist/assets/cross.css +1 -1
  18. package/dist/assets/dropdown-default-textbox.css +1 -1
  19. package/dist/assets/dropdown.css +1 -1
  20. package/dist/assets/field-label.css +1 -1
  21. package/dist/assets/index10.css +1 -1
  22. package/dist/assets/index11.css +1 -1
  23. package/dist/assets/index12.css +1 -1
  24. package/dist/assets/index13.css +1 -1
  25. package/dist/assets/index14.css +1 -1
  26. package/dist/assets/index15.css +1 -1
  27. package/dist/assets/index16.css +1 -1
  28. package/dist/assets/index17.css +1 -1
  29. package/dist/assets/index18.css +1 -1
  30. package/dist/assets/index19.css +1 -1
  31. package/dist/assets/index2.css +1 -1
  32. package/dist/assets/index20.css +1 -1
  33. package/dist/assets/index21.css +1 -1
  34. package/dist/assets/index22.css +1 -1
  35. package/dist/assets/index23.css +1 -1
  36. package/dist/assets/index24.css +1 -1
  37. package/dist/assets/index25.css +1 -1
  38. package/dist/assets/index26.css +1 -1
  39. package/dist/assets/index27.css +1 -1
  40. package/dist/assets/index28.css +1 -1
  41. package/dist/assets/index29.css +1 -1
  42. package/dist/assets/index3.css +1 -1
  43. package/dist/assets/index30.css +1 -1
  44. package/dist/assets/index31.css +1 -1
  45. package/dist/assets/index32.css +1 -1
  46. package/dist/assets/index33.css +1 -1
  47. package/dist/assets/index34.css +1 -1
  48. package/dist/assets/index35.css +1 -1
  49. package/dist/assets/index36.css +1 -1
  50. package/dist/assets/index37.css +1 -1
  51. package/dist/assets/index38.css +1 -1
  52. package/dist/assets/index4.css +1 -1
  53. package/dist/assets/index40.css +1 -1
  54. package/dist/assets/index41.css +1 -1
  55. package/dist/assets/index42.css +1 -1
  56. package/dist/assets/index43.css +1 -1
  57. package/dist/assets/index44.css +1 -1
  58. package/dist/assets/index45.css +1 -1
  59. package/dist/assets/index46.css +1 -1
  60. package/dist/assets/index5.css +1 -1
  61. package/dist/assets/index6.css +1 -1
  62. package/dist/assets/index7.css +1 -1
  63. package/dist/assets/index8.css +1 -1
  64. package/dist/assets/index9.css +1 -1
  65. package/dist/assets/listbox.css +1 -1
  66. package/dist/avatar-image.js +1 -1
  67. package/dist/button.js +3 -3
  68. package/dist/card.js +2 -2
  69. package/dist/checkbox.js +5 -5
  70. package/dist/chunks/arrow-left.81a91b8f.js +29 -0
  71. package/dist/chunks/arrow-left.81a91b8f.js.map +1 -0
  72. package/dist/chunks/{base-modal.3dcf8376.js → base-modal.a629cb32.js} +3 -3
  73. package/dist/chunks/{base-modal.3dcf8376.js.map → base-modal.a629cb32.js.map} +1 -1
  74. package/dist/chunks/{button-actions-with-menu.3f52ea2d.js → button-actions-with-menu.f6dfb14d.js} +3 -3
  75. package/dist/chunks/{button-actions-with-menu.3f52ea2d.js.map → button-actions-with-menu.f6dfb14d.js.map} +1 -1
  76. package/dist/chunks/{calendar.d4ab387d.js → calendar.fa7712e8.js} +2 -2
  77. package/dist/chunks/{calendar.d4ab387d.js.map → calendar.fa7712e8.js.map} +1 -1
  78. package/dist/chunks/{checkbox.03c4b0fe.js → checkbox.731dc0ab.js} +71 -72
  79. package/dist/chunks/checkbox.731dc0ab.js.map +1 -0
  80. package/dist/chunks/checkmark-circle-fill.c45a999d.js +44 -0
  81. package/dist/chunks/checkmark-circle-fill.c45a999d.js.map +1 -0
  82. package/dist/chunks/checkmark-small.c79220d9.js +29 -0
  83. package/dist/chunks/checkmark-small.c79220d9.js.map +1 -0
  84. package/dist/chunks/checkmark.eb3c7a06.js +29 -0
  85. package/dist/chunks/checkmark.eb3c7a06.js.map +1 -0
  86. package/dist/chunks/chevron-left.4ee92950.js +52 -0
  87. package/dist/chunks/chevron-left.4ee92950.js.map +1 -0
  88. package/dist/chunks/chevron-up.46afb34c.js +52 -0
  89. package/dist/chunks/chevron-up.46afb34c.js.map +1 -0
  90. package/dist/chunks/{controls-group.807b5fb0.js → controls-group.d6543674.js} +2 -2
  91. package/dist/chunks/{controls-group.807b5fb0.js.map → controls-group.d6543674.js.map} +1 -1
  92. package/dist/chunks/{copy.28bd4298.js → copy.330d594e.js} +36 -37
  93. package/dist/chunks/copy.330d594e.js.map +1 -0
  94. package/dist/chunks/cross-circle-fill.1abec1a2.js +44 -0
  95. package/dist/chunks/cross-circle-fill.1abec1a2.js.map +1 -0
  96. package/dist/chunks/cross.26509efc.js +29 -0
  97. package/dist/chunks/cross.26509efc.js.map +1 -0
  98. package/dist/chunks/{dropdown-default-textbox.74c4584a.js → dropdown-default-textbox.4108b289.js} +63 -58
  99. package/dist/chunks/{dropdown-default-textbox.74c4584a.js.map → dropdown-default-textbox.4108b289.js.map} +1 -1
  100. package/dist/chunks/{dropdown.502e1f5c.js → dropdown.63de9aac.js} +209 -201
  101. package/dist/chunks/dropdown.63de9aac.js.map +1 -0
  102. package/dist/chunks/field-label.3c19a29a.js +146 -0
  103. package/dist/chunks/field-label.3c19a29a.js.map +1 -0
  104. package/dist/chunks/{fixed-scroller.92bb77a6.js → fixed-scroller.bced60dd.js} +2 -2
  105. package/dist/chunks/{fixed-scroller.92bb77a6.js.map → fixed-scroller.bced60dd.js.map} +1 -1
  106. package/dist/chunks/{index.cf0d3be3.js → index.4d2a13e1.js} +2 -2
  107. package/dist/chunks/{index.cf0d3be3.js.map → index.4d2a13e1.js.map} +1 -1
  108. package/dist/chunks/{index.d2542c6a.js → index.73ed22a7.js} +145 -150
  109. package/dist/chunks/index.73ed22a7.js.map +1 -0
  110. package/dist/chunks/{index.7262642e.js → index.85832db5.js} +3 -3
  111. package/dist/chunks/{index.7262642e.js.map → index.85832db5.js.map} +1 -1
  112. package/dist/chunks/{index.abb2a1d5.js → index.89dfe209.js} +2 -2
  113. package/dist/chunks/{index.abb2a1d5.js.map → index.89dfe209.js.map} +1 -1
  114. package/dist/chunks/{index.726e2f3c.js → index.98174339.js} +4 -4
  115. package/dist/chunks/{index.726e2f3c.js.map → index.98174339.js.map} +1 -1
  116. package/dist/chunks/{index.e9156fe3.js → index.c6fecf1c.js} +7 -7
  117. package/dist/chunks/{index.e9156fe3.js.map → index.c6fecf1c.js.map} +1 -1
  118. package/dist/chunks/{index.b043371e.js → index.edcaf766.js} +5 -5
  119. package/dist/chunks/{index.b043371e.js.map → index.edcaf766.js.map} +1 -1
  120. package/dist/chunks/info-filled.e591599f.js +67 -0
  121. package/dist/chunks/info-filled.e591599f.js.map +1 -0
  122. package/dist/chunks/{listbox-option-tag.5b00c85f.js → listbox-option-tag.b1eb32bd.js} +2 -2
  123. package/dist/chunks/{listbox-option-tag.5b00c85f.js.map → listbox-option-tag.b1eb32bd.js.map} +1 -1
  124. package/dist/chunks/{listbox.d07c24e6.js → listbox.ac43f8ab.js} +39 -36
  125. package/dist/chunks/{listbox.d07c24e6.js.map → listbox.ac43f8ab.js.map} +1 -1
  126. package/dist/chunks/{loading-button.ad7cfaee.js → loading-button.4b88e24d.js} +3 -3
  127. package/dist/chunks/{loading-button.ad7cfaee.js.map → loading-button.4b88e24d.js.map} +1 -1
  128. package/dist/chunks/refresh.bd60f6a8.js +29 -0
  129. package/dist/chunks/refresh.bd60f6a8.js.map +1 -0
  130. package/dist/chunks/search.ade93bda.js +44 -0
  131. package/dist/chunks/search.ade93bda.js.map +1 -0
  132. package/dist/chunks/{tooltip.054d2eb6.js → tooltip.27c32d36.js} +2 -2
  133. package/dist/chunks/{tooltip.054d2eb6.js.map → tooltip.27c32d36.js.map} +1 -1
  134. package/dist/code-snippet.js +425 -428
  135. package/dist/code-snippet.js.map +1 -1
  136. package/dist/country.js +1 -1
  137. package/dist/data-grid.js +1080 -1140
  138. package/dist/data-grid.js.map +1 -1
  139. package/dist/date-picker.js +6 -6
  140. package/dist/date-range-picker.js +2 -2
  141. package/dist/divider.js +9 -26
  142. package/dist/divider.js.map +1 -1
  143. package/dist/dropdown.js +3 -3
  144. package/dist/empty-state.js +1 -1
  145. package/dist/filter-bar.js +1035 -836
  146. package/dist/filter-bar.js.map +1 -1
  147. package/dist/focus-trap.js +1 -1
  148. package/dist/form-layout.js +1 -1
  149. package/dist/header.js +2 -2
  150. package/dist/index.js +12 -12
  151. package/dist/info-icon.js +38 -39
  152. package/dist/info-icon.js.map +1 -1
  153. package/dist/input-field.js +105 -107
  154. package/dist/input-field.js.map +1 -1
  155. package/dist/internal.js +7 -7
  156. package/dist/link.js +1 -1
  157. package/dist/loading-indicator.js +1 -1
  158. package/dist/menu.js +1 -1
  159. package/dist/modal.js +1 -1
  160. package/dist/pagination.js +149 -157
  161. package/dist/pagination.js.map +1 -1
  162. package/dist/payment-method.js +2 -2
  163. package/dist/payment-method.js.map +1 -1
  164. package/dist/popover.js +1 -1
  165. package/dist/popper-container.js +1 -1
  166. package/dist/radio-group.js +3 -3
  167. package/dist/search-bar.js +4 -4
  168. package/dist/segmented-control.js +3 -3
  169. package/dist/sidepanel.js +4 -4
  170. package/dist/status.js +1 -1
  171. package/dist/stepper.js +78 -79
  172. package/dist/stepper.js.map +1 -1
  173. package/dist/structured-list.js +1 -1
  174. package/dist/summary-grid.js +2 -2
  175. package/dist/tabs.js +2 -2
  176. package/dist/tag.js +2 -2
  177. package/dist/textarea.js +46 -47
  178. package/dist/textarea.js.map +1 -1
  179. package/dist/timeline.js +92 -93
  180. package/dist/timeline.js.map +1 -1
  181. package/dist/toast.js +2 -2
  182. package/dist/toggle.js +2 -2
  183. package/dist/tutorial.js +86 -87
  184. package/dist/tutorial.js.map +1 -1
  185. package/dist/web-types.json +1 -1
  186. package/package.json +4 -4
  187. package/dist/assets/arrow-left.css +0 -1
  188. package/dist/assets/checkmark-circle-fill.css +0 -1
  189. package/dist/assets/checkmark-small.css +0 -1
  190. package/dist/assets/checkmark.css +0 -1
  191. package/dist/assets/chevron-left.css +0 -1
  192. package/dist/assets/chevron-up.css +0 -1
  193. package/dist/assets/cross-circle-fill.css +0 -1
  194. package/dist/assets/info-filled.css +0 -1
  195. package/dist/assets/refresh.css +0 -1
  196. package/dist/assets/search.css +0 -1
  197. package/dist/chunks/arrow-left.cdbcc128.js +0 -30
  198. package/dist/chunks/arrow-left.cdbcc128.js.map +0 -1
  199. package/dist/chunks/checkbox.03c4b0fe.js.map +0 -1
  200. package/dist/chunks/checkmark-circle-fill.e6b84561.js +0 -45
  201. package/dist/chunks/checkmark-circle-fill.e6b84561.js.map +0 -1
  202. package/dist/chunks/checkmark-small.3e93a119.js +0 -30
  203. package/dist/chunks/checkmark-small.3e93a119.js.map +0 -1
  204. package/dist/chunks/checkmark.83e4f1e0.js +0 -30
  205. package/dist/chunks/checkmark.83e4f1e0.js.map +0 -1
  206. package/dist/chunks/chevron-left.2fd6b083.js +0 -54
  207. package/dist/chunks/chevron-left.2fd6b083.js.map +0 -1
  208. package/dist/chunks/chevron-up.9bf21068.js +0 -54
  209. package/dist/chunks/chevron-up.9bf21068.js.map +0 -1
  210. package/dist/chunks/copy.28bd4298.js.map +0 -1
  211. package/dist/chunks/cross-circle-fill.0feb37b3.js +0 -45
  212. package/dist/chunks/cross-circle-fill.0feb37b3.js.map +0 -1
  213. package/dist/chunks/cross.5c36a670.js +0 -30
  214. package/dist/chunks/cross.5c36a670.js.map +0 -1
  215. package/dist/chunks/dropdown.502e1f5c.js.map +0 -1
  216. package/dist/chunks/field-label.61679178.js +0 -132
  217. package/dist/chunks/field-label.61679178.js.map +0 -1
  218. package/dist/chunks/index.d2542c6a.js.map +0 -1
  219. package/dist/chunks/info-filled.514a2db6.js +0 -69
  220. package/dist/chunks/info-filled.514a2db6.js.map +0 -1
  221. package/dist/chunks/refresh.c38c9eee.js +0 -30
  222. package/dist/chunks/refresh.c38c9eee.js.map +0 -1
  223. package/dist/chunks/search.d18f9657.js +0 -45
  224. package/dist/chunks/search.d18f9657.js.map +0 -1
@@ -1,37 +1,37 @@
1
- import { ref as $, watch as me, computed as c, defineComponent as te, toRefs as be, resolveComponent as E, openBlock as y, createBlock as A, resolveDynamicComponent as ve, mergeProps as I, withCtx as M, createElementVNode as W, withKeys as Ae, createVNode as F, toHandlers as z, createSlots as V, renderList as J, renderSlot as Z, normalizeProps as Y, guardReactiveProps as G, createElementBlock as B, toDisplayString as oe, createCommentVNode as N, pushScopeId as ye, popScopeId as ge, normalizeClass as he, withDirectives as x, vShow as re, nextTick as C, toRef as R, resolveDirective as de, createTextVNode as Ne } from "vue";
2
- import { B as Me, d as Pe } from "./index.75f3672e.js";
1
+ import { ref as L, watch as be, computed as u, defineComponent as oe, toRefs as ve, resolveComponent as E, openBlock as y, createBlock as A, resolveDynamicComponent as ye, mergeProps as B, withCtx as M, createElementVNode as x, withKeys as Te, createVNode as F, toHandlers as z, createSlots as V, renderList as J, renderSlot as Z, normalizeProps as Y, guardReactiveProps as G, createElementBlock as R, toDisplayString as ne, createCommentVNode as N, normalizeClass as Q, withDirectives as W, vShow as de, nextTick as _, toRef as I, resolveDirective as ue, createTextVNode as Ae } from "vue";
2
+ import { B as Ne, d as Me } from "./index.75f3672e.js";
3
3
  import { g as K } from "./unique-id.a2a2b458.js";
4
- import { u as Ke } from "./aria-label.ac9651a5.js";
5
- import { u as ne } from "./i18n.6c402773.js";
6
- import { u as ke } from "./use-form-layout-loading.d03e5d48.js";
7
- import { B as _, a as Fe } from "./keyboard-navigation.ca47dfa8.js";
8
- import { a as s, B as Q, b as X } from "./listbox.d07c24e6.js";
9
- import { B as ze } from "./directive.0408e565.js";
10
- import { a as H } from "./index.7262642e.js";
11
- import { a as ue } from "./index.726e2f3c.js";
4
+ import { u as Pe } from "./aria-label.ac9651a5.js";
5
+ import { u as le } from "./i18n.6c402773.js";
6
+ import { u as Ke } from "./use-form-layout-loading.d03e5d48.js";
7
+ import { B as C, a as ke } from "./keyboard-navigation.ca47dfa8.js";
8
+ import { a as s, B as X, b as ee } from "./listbox.ac43f8ab.js";
9
+ import { B as Fe } from "./directive.0408e565.js";
10
+ import { a as H } from "./index.85832db5.js";
11
+ import { a as ce } from "./index.98174339.js";
12
12
  import { _ as k } from "./_plugin-vue_export-helper.dad06003.js";
13
- import { D as xe, a as T, b as q, c as We } from "./dropdown-default-textbox.74c4584a.js";
14
- import { E as Ue, F as je } from "./field-label.61679178.js";
13
+ import { D as ze, a as T, b as q, c as We } from "./dropdown-default-textbox.4108b289.js";
14
+ import { E as xe, F as Ue } from "./field-label.3c19a29a.js";
15
15
  import "../assets/dropdown.css";
16
16
  var D = /* @__PURE__ */ ((e) => (e.DEFAULT = "DropdownInputDefault", e.SMALL = "DropdownInputSmall", e))(D || {});
17
- const ee = {
17
+ const te = {
18
18
  "en-US": {
19
19
  apply: "Apply",
20
20
  cancel: "Cancel",
21
21
  noOptionsMatchThisSearch: "No options match this search"
22
22
  }
23
- }, He = (e, o, n) => {
24
- const t = $(e.value), { t: a } = ne({ messages: ee });
25
- me(e, () => {
23
+ }, je = (e, o, n) => {
24
+ const t = L(e.value), { t: a } = le({ messages: te });
25
+ be(e, () => {
26
26
  t.value = e.value;
27
27
  });
28
- const i = c(
28
+ const i = u(
29
29
  () => JSON.stringify(t.value) === JSON.stringify(e.value)
30
30
  ), d = () => {
31
31
  n(s.SELECT, t.value), n(s.CLOSE_DROPDOWN);
32
32
  }, r = () => {
33
33
  t.value = e.value, n(s.CLOSE_DROPDOWN);
34
- }, l = c(() => [
34
+ }, l = u(() => [
35
35
  {
36
36
  title: a("apply"),
37
37
  event: d,
@@ -41,20 +41,20 @@ const ee = {
41
41
  title: a("cancel"),
42
42
  event: r
43
43
  }
44
- ]), p = (m) => {
44
+ ]), f = (m) => {
45
45
  t.value = m, o.value || n(s.SELECT, m);
46
46
  }, O = (m) => {
47
- p(m), n(s.TAB);
47
+ f(m), n(s.TAB);
48
48
  }, g = (m) => {
49
- p(m), n(s.ENTER);
49
+ f(m), n(s.ENTER);
50
50
  }, h = (m) => {
51
- p(m), n(s.SPACE);
51
+ f(m), n(s.SPACE);
52
52
  }, b = () => {
53
53
  r(), n(s.ESCAPE);
54
54
  }, v = () => {
55
55
  n(s.SHOW_MORE);
56
56
  }, w = {
57
- [s.SELECT]: p,
57
+ [s.SELECT]: f,
58
58
  [s.SHOW_MORE]: v,
59
59
  [s.TAB]: O,
60
60
  [s.SPACE]: h,
@@ -68,13 +68,13 @@ const ee = {
68
68
  listeners: w,
69
69
  onEscapeKey: b
70
70
  };
71
- }, qe = te({
72
- i18n: { messages: ee },
71
+ }, He = oe({
72
+ i18n: { messages: te },
73
73
  name: "bento-dropdown-options-container",
74
74
  components: {
75
- BentoListbox: Q,
75
+ BentoListbox: X,
76
76
  PopperContainer: H,
77
- BentoPopover: ue
77
+ BentoPopover: ce
78
78
  },
79
79
  props: {
80
80
  /**
@@ -142,8 +142,8 @@ const ee = {
142
142
  */
143
143
  lazyLoadType: {
144
144
  type: String,
145
- default: X.AUTOMATIC,
146
- validator: (e) => Object.values(X).includes(e)
145
+ default: ee.AUTOMATIC,
146
+ validator: (e) => Object.values(ee).includes(e)
147
147
  },
148
148
  /**
149
149
  * If enabled, the user will be able to select multiple items.
@@ -169,7 +169,7 @@ const ee = {
169
169
  *
170
170
  * If enabled, hides the "Select all" checkbox in "multiple" mode.
171
171
  */
172
- searching: Q.props.searching,
172
+ searching: X.props.searching,
173
173
  /**
174
174
  * Reference to the DOM element or Vue component for positioning
175
175
  * the Dropdown container.
@@ -194,21 +194,21 @@ const ee = {
194
194
  s.TAB
195
195
  ],
196
196
  setup(e, { emit: o, slots: n }) {
197
- const { selectedValue: t, multiple: a } = be(e), i = $(null), { t: d } = ne({ messages: ee }), r = c(() => e.open && !e.disabled), l = c(() => d("noOptionsMatchThisSearch")), p = c(() => ({
197
+ const { selectedValue: t, multiple: a } = ve(e), i = L(null), { t: d } = le({ messages: te }), r = u(() => e.open && !e.disabled), l = u(() => d("noOptionsMatchThisSearch")), f = u(() => ({
198
198
  "b-dropdown-options-container--single": !(e != null && e.multiple)
199
- })), O = c(() => ({
199
+ })), O = u(() => ({
200
200
  "b-dropdown-options-container__listbox--small": e.inputSize === D.SMALL,
201
201
  "b-dropdown-options-container__listbox--single": !(e != null && e.multiple)
202
- })), { actions: g, internalSelectedValue: h, listeners: b, onEscapeKey: v } = He(
202
+ })), { actions: g, internalSelectedValue: h, listeners: b, onEscapeKey: v } = je(
203
203
  t,
204
204
  a,
205
205
  o
206
- ), w = c(
207
- () => e != null && e.multiple ? ue : H
208
- ), m = c(() => {
209
- var u;
206
+ ), w = u(
207
+ () => e != null && e.multiple ? ce : H
208
+ ), m = u(() => {
209
+ var p;
210
210
  const P = {
211
- "min-width": `${(u = e == null ? void 0 : e.targetElement) == null ? void 0 : u.clientWidth}px`,
211
+ "min-width": `${(p = e == null ? void 0 : e.targetElement) == null ? void 0 : p.clientWidth}px`,
212
212
  "max-width": "min(500px, 95%)"
213
213
  };
214
214
  return e != null && e.multiple ? {
@@ -238,7 +238,7 @@ const ee = {
238
238
  return {
239
239
  // Values
240
240
  isDropdownOpen: r,
241
- conditionalClasses: p,
241
+ conditionalClasses: f,
242
242
  conditionalListboxClasses: O,
243
243
  noResultsMessage: l,
244
244
  slots: n,
@@ -255,16 +255,16 @@ const ee = {
255
255
  };
256
256
  }
257
257
  });
258
- function Ve(e, o, n, t, a, i) {
258
+ function qe(e, o, n, t, a, i) {
259
259
  const d = E("bento-listbox");
260
- return y(), A(ve(e.popperContainerOrPopoverComponent), I({
260
+ return y(), A(ye(e.popperContainerOrPopoverComponent), B({
261
261
  class: ["b-dropdown-options-container", e.conditionalClasses]
262
262
  }, e.popperContainerOrPopoverProps), {
263
263
  default: M(() => [
264
- W("div", {
265
- onKeydown: o[0] || (o[0] = Ae((...r) => e.onEscapeKey && e.onEscapeKey(...r), ["esc"]))
264
+ x("div", {
265
+ onKeydown: o[0] || (o[0] = Te((...r) => e.onEscapeKey && e.onEscapeKey(...r), ["esc"]))
266
266
  }, [
267
- F(d, I({
267
+ F(d, B({
268
268
  id: e.id,
269
269
  ref: "dropdownOptionsListboxRef",
270
270
  "aria-label": e.ariaLabel,
@@ -283,8 +283,8 @@ function Ve(e, o, n, t, a, i) {
283
283
  }, z(e.listeners)), V({ _: 2 }, [
284
284
  J(e.slots, (r, l) => ({
285
285
  name: l,
286
- fn: M((p) => [
287
- Z(e.$slots, l, Y(G(p)), void 0, !0)
286
+ fn: M((f) => [
287
+ Z(e.$slots, l, Y(G(f)), void 0, !0)
288
288
  ])
289
289
  }))
290
290
  ]), 1040, ["id", "aria-label", "class", "empty-state", "is-option-disabled", "items", "selected-value", "multiple", "no-results-message", "searching", "loading", "lazy-load-type", "has-more-items", "virtual-scroll"])
@@ -293,55 +293,53 @@ function Ve(e, o, n, t, a, i) {
293
293
  _: 3
294
294
  }, 16, ["class"]);
295
295
  }
296
- const Je = /* @__PURE__ */ k(qe, [["render", Ve], ["__scopeId", "data-v-470172b0"]]);
297
- let ce = 0;
298
- const Ze = {
296
+ const Ve = /* @__PURE__ */ k(He, [["render", qe], ["__scopeId", "data-v-470172b0"]]);
297
+ let fe = 0;
298
+ const Je = {
299
299
  beforeCreate() {
300
- this.uuid = ce.toString(), ce += 1;
300
+ this.uuid = fe.toString(), fe += 1;
301
301
  }
302
- }, Ye = (e) => (ye("data-v-18645fe6"), e = e(), ge(), e), Ge = { key: 0 }, Qe = /* @__PURE__ */ Ye(() => /* @__PURE__ */ W("path", {
302
+ }, Ze = { key: 0 }, Ye = /* @__PURE__ */ x("path", {
303
303
  fill: "#00112C",
304
- "fill-rule": "evenodd",
305
- d: "M4.4697 5.96967C4.76259 5.67678 5.23747 5.67678 5.53036 5.96967L8.00003 8.43934L10.4697 5.96967C10.7626 5.67678 11.2375 5.67678 11.5304 5.96967C11.8233 6.26256 11.8233 6.73744 11.5304 7.03033L8.53036 10.0303C8.23747 10.3232 7.76259 10.3232 7.4697 10.0303L4.4697 7.03033C4.17681 6.73744 4.17681 6.26256 4.4697 5.96967Z",
306
- "clip-rule": "evenodd"
307
- }, null, -1));
308
- function Xe(e, o, n, t, a, i) {
309
- return y(), B("svg", I({ role: "img" }, e.$attrs, {
304
+ d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z"
305
+ }, null, -1);
306
+ function Ge(e, o, n, t, a, i) {
307
+ return y(), R("svg", B({ role: "img" }, e.$attrs, {
308
+ class: "ui-assets-icons-16",
310
309
  xmlns: "http://www.w3.org/2000/svg",
311
310
  width: "16",
312
311
  height: "16",
313
312
  fill: "none"
314
313
  }), [
315
- e.$attrs["svg-title"] ? (y(), B("title", Ge, oe(e.$attrs["svg-title"]), 1)) : N("", !0),
316
- Qe
314
+ e.$attrs["svg-title"] ? (y(), R("title", Ze, ne(e.$attrs["svg-title"]), 1)) : N("", !0),
315
+ Ye
317
316
  ], 16);
318
317
  }
319
- const et = /* @__PURE__ */ k(Ze, [["render", Xe], ["__scopeId", "data-v-18645fe6"]]);
318
+ const Qe = /* @__PURE__ */ k(Je, [["render", Ge]]);
320
319
  let pe = 0;
321
- const tt = {
320
+ const Xe = {
322
321
  beforeCreate() {
323
322
  this.uuid = pe.toString(), pe += 1;
324
323
  }
325
- }, ot = (e) => (ye("data-v-6f20d431"), e = e(), ge(), e), nt = { key: 0 }, lt = /* @__PURE__ */ ot(() => /* @__PURE__ */ W("path", {
324
+ }, et = { key: 0 }, tt = /* @__PURE__ */ x("path", {
326
325
  fill: "#00112C",
327
- "fill-rule": "evenodd",
328
- d: "M11.5303 10.0303C11.2374 10.3232 10.7626 10.3232 10.4697 10.0303L8 7.56066L5.53033 10.0303C5.23744 10.3232 4.76256 10.3232 4.46967 10.0303C4.17678 9.73744 4.17678 9.26256 4.46967 8.96967L7.46967 5.96967C7.61032 5.82902 7.80109 5.75 8 5.75C8.19891 5.75 8.38968 5.82902 8.53033 5.96967L11.5303 8.96967C11.8232 9.26256 11.8232 9.73744 11.5303 10.0303Z",
329
- "clip-rule": "evenodd"
330
- }, null, -1));
331
- function at(e, o, n, t, a, i) {
332
- return y(), B("svg", I({ role: "img" }, e.$attrs, {
326
+ d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z"
327
+ }, null, -1);
328
+ function ot(e, o, n, t, a, i) {
329
+ return y(), R("svg", B({ role: "img" }, e.$attrs, {
330
+ class: "ui-assets-icons-16",
333
331
  xmlns: "http://www.w3.org/2000/svg",
334
332
  width: "16",
335
333
  height: "16",
336
334
  fill: "none"
337
335
  }), [
338
- e.$attrs["svg-title"] ? (y(), B("title", nt, oe(e.$attrs["svg-title"]), 1)) : N("", !0),
339
- lt
336
+ e.$attrs["svg-title"] ? (y(), R("title", et, ne(e.$attrs["svg-title"]), 1)) : N("", !0),
337
+ tt
340
338
  ], 16);
341
339
  }
342
- const it = /* @__PURE__ */ k(tt, [["render", at], ["__scopeId", "data-v-6f20d431"]]), st = te({
340
+ const nt = /* @__PURE__ */ k(Xe, [["render", ot]]), lt = oe({
343
341
  name: "dropdown-small-textbox",
344
- components: { ChevronDownSmallIcon: et, ChevronUpSmallIcon: it, DropdownBaseTextbox: xe },
342
+ components: { ChevronDownSmallIcon: Qe, ChevronUpSmallIcon: nt, DropdownBaseTextbox: ze },
345
343
  inheritAttrs: !1,
346
344
  props: {
347
345
  /**
@@ -415,11 +413,11 @@ const it = /* @__PURE__ */ k(tt, [["render", at], ["__scopeId", "data-v-6f20d431
415
413
  },
416
414
  emits: [T.OPEN, T.CLOSE],
417
415
  setup(e, { emit: o }) {
418
- const n = c(() => ({
416
+ const n = u(() => ({
419
417
  [`b-dropdown-small-textbox--${q.DISABLED}`]: e.disabled,
420
418
  [`b-dropdown-small-textbox--${q.READONLY}`]: e.readonly,
421
419
  [`b-dropdown-small-textbox--${q.OPENED}`]: e.open
422
- })), t = c(() => e.open && !e.disabled && !e.readonly), a = () => {
420
+ })), t = u(() => e.open && !e.disabled && !e.readonly), a = () => {
423
421
  o(T.OPEN);
424
422
  }, i = () => {
425
423
  o(T.CLOSE);
@@ -436,20 +434,20 @@ const it = /* @__PURE__ */ k(tt, [["render", at], ["__scopeId", "data-v-6f20d431
436
434
  };
437
435
  }
438
436
  });
439
- const rt = { class: "b-dropdown-small-textbox__chevron" };
440
- function dt(e, o, n, t, a, i) {
437
+ const at = { class: "b-dropdown-small-textbox__chevron" };
438
+ function it(e, o, n, t, a, i) {
441
439
  const d = E("chevron-up-small-icon"), r = E("chevron-down-small-icon"), l = E("dropdown-base-textbox");
442
- return y(), B("div", {
443
- class: he(["b-dropdown-small-textbox", e.conditionalClasses])
440
+ return y(), R("div", {
441
+ class: Q(["b-dropdown-small-textbox", e.conditionalClasses])
444
442
  }, [
445
- F(l, I({ ...e.$attrs, ...e.$props }, { class: "b-dropdown-small-textbox__textbox" }, z(e.listeners)), {
443
+ F(l, B({ ...e.$attrs, ...e.$props }, { class: "b-dropdown-small-textbox__textbox" }, z(e.listeners)), {
446
444
  icon: M(() => [
447
- W("div", rt, [
448
- x(F(d, { "svg-title": "opened" }, null, 512), [
449
- [re, e.isDropdownOpen]
445
+ x("div", at, [
446
+ W(F(d, { "svg-title": "opened" }, null, 512), [
447
+ [de, e.isDropdownOpen]
450
448
  ]),
451
- x(F(r, { "svg-title": "closed" }, null, 512), [
452
- [re, !e.isDropdownOpen]
449
+ W(F(r, { "svg-title": "closed" }, null, 512), [
450
+ [de, !e.isDropdownOpen]
453
451
  ])
454
452
  ])
455
453
  ]),
@@ -457,16 +455,16 @@ function dt(e, o, n, t, a, i) {
457
455
  }, 16)
458
456
  ], 2);
459
457
  }
460
- const ut = /* @__PURE__ */ k(st, [["render", dt], ["__scopeId", "data-v-55bc3614"]]), ct = ({ items: e, placeholder: o, selectedValue: n }) => {
458
+ const st = /* @__PURE__ */ k(lt, [["render", it], ["__scopeId", "data-v-55bc3614"]]), rt = ({ items: e, placeholder: o, selectedValue: n }) => {
461
459
  const t = e.value.find(({ value: a }) => a === n.value);
462
460
  return (t == null ? void 0 : t.label) || o.value || null;
463
- }, pt = ({ selectedValues: e, items: o, placeholder: n }) => {
461
+ }, dt = ({ selectedValues: e, items: o, placeholder: n }) => {
464
462
  var t;
465
463
  return !e.value || ((t = e.value) == null ? void 0 : t.length) === 0 ? n.value || null : e.value.map((a) => {
466
464
  const { label: i } = o.value.find(({ value: d }) => d === a);
467
465
  return i;
468
466
  }).join(", ");
469
- }, ft = ({ selectedValues: e, items: o, placeholder: n }) => {
467
+ }, ut = ({ selectedValues: e, items: o, placeholder: n }) => {
470
468
  var t;
471
469
  return !e.value || !((t = e.value) != null && t.length) ? n.value || null : o.value.reduce((a, i) => {
472
470
  if (i.items) {
@@ -477,16 +475,16 @@ const ut = /* @__PURE__ */ k(st, [["render", dt], ["__scopeId", "data-v-55bc3614
477
475
  }
478
476
  return e.value.includes(i.value) && a.push(i.label), a;
479
477
  }, []).join(", ");
480
- }, mt = ({ items: e, placeholder: o, value: n, multiple: t }) => {
481
- const a = c(() => e.value.find((d) => {
478
+ }, ct = ({ items: e, placeholder: o, value: n, multiple: t }) => {
479
+ const a = u(() => e.value.find((d) => {
482
480
  var r;
483
481
  return (r = d.items) == null ? void 0 : r.length;
484
482
  }));
485
- return c(() => t.value ? a.value ? ft({ selectedValues: n, placeholder: o, items: e }) : pt({ selectedValues: n, items: e, placeholder: o }) : ct({ items: e, placeholder: o, selectedValue: n }));
486
- }, we = (e) => {
483
+ return u(() => t.value ? a.value ? ut({ selectedValues: n, placeholder: o, items: e }) : dt({ selectedValues: n, items: e, placeholder: o }) : rt({ items: e, placeholder: o, selectedValue: n }));
484
+ }, ge = (e) => {
487
485
  var o;
488
486
  (o = e.value.$children) == null || o[0].$refs.textbox.focus();
489
- }, bt = ({
487
+ }, ft = ({
490
488
  inputContainerRef: e,
491
489
  optionsContainerRef: o,
492
490
  selectedValueIndex: n,
@@ -494,57 +492,57 @@ const ut = /* @__PURE__ */ k(st, [["render", dt], ["__scopeId", "data-v-55bc3614
494
492
  isDynamicFltering: a,
495
493
  items: i,
496
494
  isMultiple: d
497
- }, r, l, p) => {
498
- const O = ({ detail: u }) => {
499
- u.preventDefault(), t.value || (l(), C(() => {
500
- var f, L;
501
- d ? (f = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || f[0].$el.focus() : (L = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || L[n.value].$el.focus();
495
+ }, r, l, f) => {
496
+ const O = ({ detail: p }) => {
497
+ p.preventDefault(), t.value || (l(), _(() => {
498
+ var c, $;
499
+ d ? (c = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[0].$el.focus() : ($ = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || $[n.value].$el.focus();
502
500
  }));
503
- }, g = ({ detail: u }) => {
504
- u.preventDefault(), t.value || (l(), C(() => {
505
- var f;
506
- (f = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || f[0].$el.focus();
501
+ }, g = ({ detail: p }) => {
502
+ p.preventDefault(), t.value || (l(), _(() => {
503
+ var c;
504
+ (c = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[0].$el.focus();
507
505
  }));
508
506
  }, h = () => {
509
- t.value || (l(), C(() => {
510
- var u, f;
507
+ t.value || (l(), _(() => {
508
+ var p, c;
511
509
  if (d) {
512
- const L = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
513
- (u = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || u[L.length - 1].$children[i.length - 1].$el.focus();
510
+ const $ = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
511
+ (p = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || p[$.length - 1].$children[i.length - 1].$el.focus();
514
512
  } else
515
- (f = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || f[i.length - 1].$el.focus();
513
+ (c = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[i.length - 1].$el.focus();
516
514
  }));
517
515
  }, b = () => {
518
- t.value && (p(), we(e));
516
+ t.value && (f(), ge(e));
519
517
  }, v = () => {
520
- t.value || l(), C(() => {
521
- var u;
522
- (u = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || u[0].$el.focus();
518
+ t.value || l(), _(() => {
519
+ var p;
520
+ (p = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || p[0].$el.focus();
523
521
  });
524
- }, w = ({ detail: u }) => {
525
- u.preventDefault(), r(), t.value && C(() => {
526
- var f, L;
527
- d ? (f = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || f[0].$el.focus() : (L = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || L[n.value].$el.focus();
522
+ }, w = ({ detail: p }) => {
523
+ p.preventDefault(), r(), t.value && _(() => {
524
+ var c, $;
525
+ d ? (c = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[0].$el.focus() : ($ = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || $[n.value].$el.focus();
528
526
  });
529
527
  }, m = () => {
530
- r(), t.value && C(() => {
531
- var u, f;
532
- d ? (u = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || u[0].$el.focus() : (f = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || f[n.value].$el.focus();
528
+ r(), t.value && _(() => {
529
+ var p, c;
530
+ d ? (p = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || p[0].$el.focus() : (c = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[n.value].$el.focus();
533
531
  });
534
532
  };
535
- return c(() => ({
536
- ...a.value ? {} : { [_.SPACE]: w },
537
- [_.ENTER]: m,
538
- [_.ARROW_DOWN]: O,
539
- [_.ARROW_UP]: g,
540
- [_.END]: h,
541
- [_.ESCAPE]: b,
542
- [_.HOME]: v
533
+ return u(() => ({
534
+ ...a.value ? {} : { [C.SPACE]: w },
535
+ [C.ENTER]: m,
536
+ [C.ARROW_DOWN]: O,
537
+ [C.ARROW_UP]: g,
538
+ [C.END]: h,
539
+ [C.ESCAPE]: b,
540
+ [C.HOME]: v
543
541
  }));
544
- }, vt = ({ inputContainerRef: e, isDropdownOpen: o }, n) => {
542
+ }, pt = ({ inputContainerRef: e, isDropdownOpen: o }, n) => {
545
543
  const t = () => {
546
- o.value && n(), C(() => {
547
- we(e);
544
+ o.value && n(), _(() => {
545
+ ge(e);
548
546
  });
549
547
  };
550
548
  return {
@@ -554,34 +552,34 @@ const ut = /* @__PURE__ */ k(st, [["render", dt], ["__scopeId", "data-v-55bc3614
554
552
  [s.SPACE]: t
555
553
  };
556
554
  };
557
- function yt(e, o, n) {
558
- const t = $(e), a = $(o), i = (r, l = []) => l.flatMap((p) => p.label.toLocaleLowerCase().includes(r) ? [p, ...i(r, p.items)] : p.items ? [...i(r, p.items)] : []);
559
- return me(t, () => {
555
+ function mt(e, o, n) {
556
+ const t = L(e), a = L(o), i = (r, l = []) => l.flatMap((f) => f.label.toLocaleLowerCase().includes(r) ? [f, ...i(r, f.items)] : f.items ? [...i(r, f.items)] : []);
557
+ return be(t, () => {
560
558
  n !== void 0 && n(t.value);
561
- }), c(() => {
559
+ }), u(() => {
562
560
  if (!t.value || n !== void 0)
563
561
  return a.value;
564
562
  const r = t.value.toLocaleLowerCase();
565
563
  return i(r, a.value);
566
564
  });
567
565
  }
568
- const fe = {
566
+ const me = {
569
567
  "en-US": {
570
568
  clearSearch: "Clear filter",
571
569
  ariaLabelFallback: "Dropdown"
572
570
  }
573
- }, gt = te({
574
- i18n: { messages: fe },
571
+ }, bt = oe({
572
+ i18n: { messages: me },
575
573
  name: "b-dropdown",
576
574
  components: {
577
- BentoDropdownOptionsContainer: Je,
578
- BentoTypography: Me,
575
+ BentoDropdownOptionsContainer: Ve,
576
+ BentoTypography: Ne,
579
577
  DropdownInputDefault: We,
580
- DropdownInputSmall: ut,
581
- ErrorMessage: Ue,
582
- FieldLabel: je
578
+ DropdownInputSmall: st,
579
+ ErrorMessage: xe,
580
+ FieldLabel: Ue
583
581
  },
584
- directives: { BentoClickOutsideDirective: ze, BentoKeyboardNavigationDirective: Fe },
582
+ directives: { BentoClickOutsideDirective: Fe, BentoKeyboardNavigationDirective: ke },
585
583
  props: {
586
584
  /**
587
585
  * @deprecated from version 2.0.0. Use the aria-label attribute instead.
@@ -590,6 +588,10 @@ const fe = {
590
588
  * Defines a string value that labels an interactive element.
591
589
  */
592
590
  ariaLabel: { type: String, default: null },
591
+ /**
592
+ * Renders the dropdown with a condensed style.
593
+ */
594
+ condensed: { type: Boolean, default: !1 },
593
595
  /**
594
596
  * Empty state props used with the inner empty state component which is displayed when no search results are found.
595
597
  */
@@ -671,8 +673,8 @@ const fe = {
671
673
  */
672
674
  lazyLoadType: {
673
675
  type: String,
674
- default: Q.props.lazyLoadType.default,
675
- validator: (e) => Object.values(X).includes(e)
676
+ default: X.props.lazyLoadType.default,
677
+ validator: (e) => Object.values(ee).includes(e)
676
678
  },
677
679
  /*
678
680
  * If enabled, the user will be able to select multiple items.
@@ -735,57 +737,59 @@ const fe = {
735
737
  },
736
738
  emits: ["input", s.SHOW_MORE],
737
739
  setup(e, { attrs: o, emit: n, slots: t }) {
738
- var se;
739
- const { t: a } = ne({ messages: fe }), i = $(null), d = $(null), r = $(null), l = $(!1), p = K("bento-dropdown-options-container"), O = K("dropdown-label"), g = K("dropdown-description"), h = K("dropdown-error"), { isReadOnly: b } = ke(R(e, "readonly")), v = $(o["aria-label"]), { ariaLabel: w } = be(e), m = Ke({
740
+ var re;
741
+ const { t: a } = le({ messages: me }), i = L(null), d = L(null), r = L(null), l = L(!1), f = K("bento-dropdown-options-container"), O = K("dropdown-label"), g = K("dropdown-description"), h = K("dropdown-error"), { isReadOnly: b } = Ke(I(e, "readonly")), v = L(o["aria-label"]), { ariaLabel: w } = ve(e), m = Pe({
740
742
  ariaLabel: v.value,
741
743
  // TODO: take this line away when the aria-label props is removed
742
744
  label: w,
743
745
  defaultFallback: a("ariaLabelFallback")
744
- }), P = c(() => ({
746
+ }), P = u(() => ({
747
+ "b-dropdown--condensed": e.condensed
748
+ })), p = u(() => ({
745
749
  "b-dropdown__description--error": !!e.errorMessage
746
- })), u = $(""), f = R(e, "items"), L = yt(u, f, (se = e == null ? void 0 : e.search) == null ? void 0 : se.searchEvent), U = c(() => e.dynamicFiltering && !!u.value), Se = mt({
747
- items: f,
748
- multiple: R(e, "multiple"),
749
- placeholder: R(e, "placeholder"),
750
- value: R(e, "value")
751
- }), $e = c(() => e.size === D.DEFAULT), Oe = c(
750
+ })), c = L(""), $ = I(e, "items"), he = mt(c, $, (re = e == null ? void 0 : e.search) == null ? void 0 : re.searchEvent), U = u(() => e.dynamicFiltering && !!c.value), we = ct({
751
+ items: $,
752
+ multiple: I(e, "multiple"),
753
+ placeholder: I(e, "placeholder"),
754
+ value: I(e, "value")
755
+ }), Se = u(() => e.size === D.DEFAULT), $e = u(
752
756
  () => e != null && e.multiple ? e.items.filter(
753
757
  ({ value: S }) => (e == null ? void 0 : e.value) && (e == null ? void 0 : e.value).includes(S)
754
758
  ) : e.items.find(({ value: S }) => S === (e == null ? void 0 : e.value))
755
- ), Le = c(() => {
756
- const S = e.items.findIndex(({ value: Te }) => e.value === Te);
759
+ ), Le = u(() => {
760
+ const S = e.items.findIndex(({ value: Ie }) => e.value === Ie);
757
761
  return S > 0 ? S : 0;
758
- }), Ee = c(() => {
762
+ }), Oe = u(() => {
759
763
  var S;
760
764
  return e.multiple ? (S = e == null ? void 0 : e.value) == null ? void 0 : S.length : null;
761
- }), _e = c(
765
+ }), Ee = u(
762
766
  () => `${e.description ? g : ""} ${e.errorMessage ? h : ""}`.trim() || null
763
767
  ), Ce = () => {
764
768
  b.value || (l.value = !0);
765
769
  }, j = () => {
766
770
  l.value = !1;
767
- }, le = () => {
768
- b.value || (l.value = !l.value, U.value && (u.value = ""));
769
- }, De = () => {
770
- U.value && (u.value = ""), l.value && (l.value = !1);
771
- }, ae = (S) => {
772
- e.multiple || (u.value = "", l.value = !1), n("input", S);
773
- }, ie = () => {
771
+ }, ae = () => {
772
+ b.value || (l.value = !l.value, U.value && (c.value = ""));
773
+ }, _e = () => {
774
+ U.value && (c.value = ""), l.value && (l.value = !1);
775
+ }, ie = (S) => {
776
+ e.multiple || (c.value = "", l.value = !1), n("input", S);
777
+ }, se = () => {
774
778
  n(s.SHOW_MORE);
775
- }, Ie = bt(
779
+ }, De = ft(
776
780
  {
777
781
  inputContainerRef: i,
778
782
  optionsContainerRef: r,
779
783
  selectedValueIndex: Le,
780
784
  isDropdownOpen: l,
781
- isDynamicFltering: R(e, "dynamicFiltering"),
785
+ isDynamicFltering: I(e, "dynamicFiltering"),
782
786
  items: e.items,
783
787
  isMultiple: e.multiple
784
788
  },
785
- le,
789
+ ae,
786
790
  Ce,
787
791
  j
788
- ), Be = vt(
792
+ ), Be = pt(
789
793
  {
790
794
  inputContainerRef: i,
791
795
  isDropdownOpen: l
@@ -793,11 +797,11 @@ const fe = {
793
797
  j
794
798
  ), Re = {
795
799
  [s.CLOSE_DROPDOWN]: j,
796
- [s.SELECT]: ae,
797
- [s.SHOW_MORE]: ie,
800
+ [s.SELECT]: ie,
801
+ [s.SHOW_MORE]: se,
798
802
  ...Be
799
803
  };
800
- return e.error && Pe(
804
+ return e.error && Me(
801
805
  'BentoDropdown "error" property',
802
806
  `Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
803
807
  Having the field as "undefined" will hide/remove the error.
@@ -805,57 +809,61 @@ const fe = {
805
809
  "2.0.0"
806
810
  ), {
807
811
  // Values
812
+ conditionalClasses: P,
808
813
  computedAriaLabel: m,
809
- additionalItemsSelected: Ee,
810
- idDefaultSize: $e,
814
+ additionalItemsSelected: Oe,
815
+ idDefaultSize: Se,
811
816
  isDropdownOpen: l,
812
- displayValue: Se,
813
- dropdownOptionsContainerId: p,
814
- filteredItems: L,
817
+ displayValue: we,
818
+ dropdownOptionsContainerId: f,
819
+ filteredItems: he,
815
820
  isSearching: U,
816
821
  isReadOnly: b,
817
- searchTerm: u,
822
+ searchTerm: c,
818
823
  labelId: O,
819
824
  descriptionId: g,
820
825
  errorId: h,
821
- ariaDescribedBy: _e,
822
- selectedValueItem: Oe,
826
+ ariaDescribedBy: Ee,
827
+ selectedValueItem: $e,
823
828
  // Conciliation of Vue2 $scopedSlots and Vue3 $scopes.
824
829
  // The setup method and the "useSlots" composible define
825
830
  // { slots } as a proxy of $scopedSlots and $scopes in their
826
831
  // respective Vue version. Source: https://github.com/vuejs/composition-api/issues/84#issuecomment-524885445
827
832
  slots: t,
828
- descriptionConditionalClasses: P,
833
+ descriptionConditionalClasses: p,
829
834
  // Refs
830
835
  inputContainerRef: i,
831
836
  inputContainerRefWrapper: d,
832
837
  optionsContainerRef: r,
833
838
  // Events
834
- closeOpenedDropdown: De,
835
- toggleDropdown: le,
836
- onOptionSelected: ae,
837
- emitShowMoreEvent: ie,
838
- textboxKeyboardNavigationListeners: Ie,
839
+ closeOpenedDropdown: _e,
840
+ toggleDropdown: ae,
841
+ onOptionSelected: ie,
842
+ emitShowMoreEvent: se,
843
+ textboxKeyboardNavigationListeners: De,
839
844
  listboxListeners: Re
840
845
  };
841
846
  }
842
847
  });
843
- const ht = { class: "b-dropdown" };
844
- function wt(e, o, n, t, a, i) {
848
+ function vt(e, o, n, t, a, i) {
845
849
  var h;
846
- const d = E("field-label"), r = E("bento-dropdown-options-container"), l = E("error-message"), p = E("bento-typography"), O = de("bento-keyboard-navigation-directive"), g = de("bento-click-outside-directive");
847
- return x((y(), B("div", ht, [
850
+ const d = E("field-label"), r = E("bento-dropdown-options-container"), l = E("error-message"), f = E("bento-typography"), O = ue("bento-keyboard-navigation-directive"), g = ue("bento-click-outside-directive");
851
+ return W((y(), R("div", {
852
+ class: Q(["b-dropdown", e.conditionalClasses])
853
+ }, [
848
854
  e.label ? (y(), A(d, {
849
855
  key: 0,
850
856
  id: e.labelId,
857
+ condensed: e.condensed,
851
858
  label: e.label,
852
859
  "tooltip-text": e.tooltipText,
853
860
  optional: e.optional,
854
861
  required: e.required
855
- }, null, 8, ["id", "label", "tooltip-text", "optional", "required"])) : N("", !0),
856
- x((y(), B("div", I({ ref: "inputContainerRefWrapper" }, z(e.textboxKeyboardNavigationListeners, !0)), [
857
- (y(), A(ve(e.size), {
862
+ }, null, 8, ["id", "condensed", "label", "tooltip-text", "optional", "required"])) : N("", !0),
863
+ W((y(), R("div", B({ ref: "inputContainerRefWrapper" }, z(e.textboxKeyboardNavigationListeners, !0)), [
864
+ (y(), A(ye(e.size), {
858
865
  ref: "inputContainerRef",
866
+ condensed: e.condensed,
859
867
  value: e.searchTerm,
860
868
  "additional-items-selected": e.additionalItemsSelected,
861
869
  ariaControls: e.dropdownOptionsContainerId,
@@ -883,11 +891,11 @@ function wt(e, o, n, t, a, i) {
883
891
  Z(e.$slots, v, Y(G(w)), void 0, !0)
884
892
  ])
885
893
  }))
886
- ]), 1064, ["value", "additional-items-selected", "ariaControls", "ariaExpanded", "aria-labelledby", "aria-describedby", "aria-label", "aria-readonly", "readonly", "disabled", "display-value", "dynamic-filtering", "is-invalid", "multiple", "open", "selected-value-item", "show-slot-content-in-multiple", "onOpen", "onClose"]))
894
+ ]), 1064, ["condensed", "value", "additional-items-selected", "ariaControls", "ariaExpanded", "aria-labelledby", "aria-describedby", "aria-label", "aria-readonly", "readonly", "disabled", "display-value", "dynamic-filtering", "is-invalid", "multiple", "open", "selected-value-item", "show-slot-content-in-multiple", "onOpen", "onClose"]))
887
895
  ], 16)), [
888
896
  [O]
889
897
  ]),
890
- e.inputContainerRef ? (y(), A(r, I({
898
+ e.inputContainerRef ? (y(), A(r, B({
891
899
  key: 1,
892
900
  id: e.dropdownOptionsContainerId,
893
901
  ref: "optionsContainerRef",
@@ -921,25 +929,25 @@ function wt(e, o, n, t, a, i) {
921
929
  "error-message": e.errorMessage,
922
930
  class: "b-dropdown__error-message"
923
931
  }, null, 8, ["id", "error-message"])) : N("", !0),
924
- e.description ? (y(), A(p, {
932
+ e.description ? (y(), A(f, {
925
933
  key: 3,
926
934
  id: e.descriptionId,
927
- class: he(["b-dropdown__description", e.descriptionConditionalClasses]),
935
+ class: Q(["b-dropdown__description", e.descriptionConditionalClasses]),
928
936
  el: "span"
929
937
  }, {
930
938
  default: M(() => [
931
- Ne(oe(e.description), 1)
939
+ Ae(ne(e.description), 1)
932
940
  ]),
933
941
  _: 1
934
942
  }, 8, ["id", "class"])) : N("", !0)
935
- ])), [
943
+ ], 2)), [
936
944
  [g, e.closeOpenedDropdown]
937
945
  ]);
938
946
  }
939
- const Mt = /* @__PURE__ */ k(gt, [["render", wt], ["__scopeId", "data-v-a24ee2cb"]]);
947
+ const It = /* @__PURE__ */ k(bt, [["render", vt], ["__scopeId", "data-v-0defd8ce"]]);
940
948
  export {
941
- Mt as B,
949
+ It as B,
942
950
  D as a,
943
- yt as u
951
+ mt as u
944
952
  };
945
- //# sourceMappingURL=dropdown.502e1f5c.js.map
953
+ //# sourceMappingURL=dropdown.63de9aac.js.map