@adyen/bento-vue3 1.3.0 → 1.4.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 (364) hide show
  1. package/dist/@types/components.d.ts +8 -4
  2. package/dist/@types/packages/core/src/components/button/button.types.d.ts +8 -0
  3. package/dist/@types/packages/vue2/src/components/accordion/accordion.keys.d.ts +1 -1
  4. package/dist/@types/packages/vue2/src/components/accordion/accordion.types.d.ts +1 -24
  5. package/dist/@types/packages/vue2/src/components/accordion/accordion.vue.d.ts +17 -57
  6. package/dist/@types/packages/vue2/src/components/accordion/components/accordion-item.vue.d.ts +27 -29
  7. package/dist/@types/packages/vue2/src/components/accordion/index.d.ts +2 -3
  8. package/dist/@types/packages/vue2/src/components/alert/alert.vue.d.ts +0 -4
  9. package/dist/@types/packages/vue2/src/components/avatar-image/avatar-image.vue.d.ts +1 -4
  10. package/dist/@types/packages/vue2/src/components/button/button.vue.d.ts +136 -128
  11. package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.types.d.ts +3 -5
  12. package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.vue.d.ts +3 -3
  13. package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +2 -2
  14. package/dist/@types/packages/vue2/src/components/card/card.vue.d.ts +46 -15
  15. package/dist/@types/packages/vue2/src/components/checkbox/checkbox.types.d.ts +2 -1
  16. package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +6 -7
  17. package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +4 -3
  18. package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.types.d.ts +2 -1
  19. package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +37 -11
  20. package/dist/@types/packages/vue2/src/components/country/country.vue.d.ts +0 -2
  21. package/dist/@types/packages/vue2/src/components/currency/currency.vue.d.ts +0 -3
  22. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +3 -22
  23. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-config-settings/components/data-grid-config-settings-column-row/data-grid-config-settings-column-row.vue.d.ts +0 -5
  24. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-config-settings/data-grid-config-settings.vue.d.ts +0 -24
  25. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +2 -0
  26. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +277 -16
  27. package/dist/@types/packages/vue2/src/components/date/date.vue.d.ts +2 -5
  28. package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +0 -20
  29. package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.vue.d.ts +0 -2
  30. package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +0 -20
  31. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +3 -6
  32. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +3 -3
  33. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +164 -104
  34. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +2 -2
  35. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.types.d.ts +1 -1
  36. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +0 -2
  37. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.types.d.ts +1 -1
  38. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.types.d.ts +1 -1
  39. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.types.d.ts +1 -1
  40. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +7 -9
  41. package/dist/@types/packages/vue2/src/components/empty-state/empty-state.types.d.ts +27 -0
  42. package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +76 -0
  43. package/dist/@types/packages/vue2/src/components/empty-state/index.d.ts +2 -0
  44. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +19 -25
  45. 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 +1 -1
  46. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +1 -27
  47. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter-button/base-filter-button.vue.d.ts +1 -4
  48. package/dist/@types/packages/vue2/src/components/filter-bar/components/date-filter/date-filter.vue.d.ts +1 -1
  49. package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +1 -11
  50. package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/filter-bar-button.vue.d.ts +53 -0
  51. package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/index.d.ts +1 -0
  52. package/dist/@types/packages/vue2/src/components/filter-bar/components/input-filter/input-filter.vue.d.ts +1 -0
  53. package/dist/@types/packages/vue2/src/components/filter-bar/components/range-filter/range-filter.vue.d.ts +0 -2
  54. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/select-filter.vue.d.ts +1 -1
  55. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +0 -2
  56. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +0 -2
  57. package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.vue.d.ts +0 -2
  58. package/dist/@types/packages/vue2/src/components/focus-trap/focus-trap.vue.d.ts +7 -0
  59. package/dist/@types/packages/vue2/src/components/header/header.vue.d.ts +0 -2
  60. package/dist/@types/packages/vue2/src/components/image/const.d.ts +1 -0
  61. package/dist/@types/packages/vue2/src/components/image/image.types.d.ts +19 -0
  62. package/dist/@types/packages/vue2/src/components/image/image.vue.d.ts +50 -0
  63. package/dist/@types/packages/vue2/src/components/image/index.d.ts +1 -0
  64. package/dist/@types/packages/vue2/src/components/info-icon/info-icon.vue.d.ts +3 -3
  65. package/dist/@types/packages/vue2/src/components/input-field/input-field.types.d.ts +1 -0
  66. package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +61 -58
  67. package/dist/@types/packages/vue2/src/components/internal/avatar/avatar.vue.d.ts +0 -3
  68. package/dist/@types/packages/vue2/src/components/internal/base-button/base-button.vue.d.ts +1 -4
  69. package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/calendar-month.vue.d.ts +0 -5
  70. package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/components/calendar-month-day/calendar-month-day.vue.d.ts +2 -2
  71. package/dist/@types/packages/vue2/src/components/internal/copy/copy.vue.d.ts +0 -2
  72. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/components/listbox-multi-select-category/listbox-multi-select-category.vue.d.ts +0 -2
  73. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/listbox-multi-select-options.vue.d.ts +0 -2
  74. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +0 -2
  75. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-option-tag/listbox-option-tag.vue.d.ts +0 -2
  76. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select-option/listbox-single-select-option.vue.d.ts +0 -2
  77. package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +3 -7
  78. package/dist/@types/packages/vue2/src/components/link/link.vue.d.ts +4 -0
  79. package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.vue.d.ts +2 -5
  80. package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +6 -31
  81. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/__mocks__/base-modal.vue.d.ts +0 -5
  82. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +14 -9
  83. package/dist/@types/packages/vue2/src/components/modal/components/modal-default/modal-default.vue.d.ts +2 -2
  84. package/dist/@types/packages/vue2/src/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +4 -14
  85. package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +7 -6
  86. package/dist/@types/packages/vue2/src/components/pagination/components/pagination-context/pagination-context.vue.d.ts +0 -2
  87. package/dist/@types/packages/vue2/src/components/pagination/components/pagination-controls/pagination-controls.vue.d.ts +0 -2
  88. package/dist/@types/packages/vue2/src/components/pagination/components/pagination-results-per-page/pagination-results-per-page.vue.d.ts +0 -2
  89. package/dist/@types/packages/vue2/src/components/pagination/pagination.vue.d.ts +2 -1
  90. package/dist/@types/packages/vue2/src/components/payment-method/payment-method.vue.d.ts +0 -2
  91. package/dist/@types/packages/vue2/src/components/popover/components/popover-dismiss-button/popover-dismiss-button.vue.d.ts +0 -2
  92. package/dist/@types/packages/vue2/src/components/popover/components/popover-title/popover-title.vue.d.ts +1 -2
  93. package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +9 -9
  94. package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +5 -14
  95. package/dist/@types/packages/vue2/src/components/radio-group/components/radio-button/radio-button.vue.d.ts +4 -6
  96. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.types.d.ts +2 -1
  97. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +4 -3
  98. package/dist/@types/packages/vue2/src/components/search-bar/search-bar.vue.d.ts +19 -390
  99. package/dist/@types/packages/vue2/src/components/segmented-control/components/segmented-control-button/segmented-control-button.vue.d.ts +0 -3
  100. package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.vue.d.ts +1 -0
  101. package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.types.d.ts +3 -1
  102. package/dist/@types/packages/vue2/src/components/status/status.vue.d.ts +2 -5
  103. package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +0 -2
  104. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +2 -23
  105. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +2 -5
  106. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-numeric/summary-grid-item-numeric.vue.d.ts +2 -5
  107. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-percentage/summary-grid-item-percentage.vue.d.ts +2 -5
  108. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-text/summary-grid-item-text.vue.d.ts +1 -4
  109. package/dist/@types/packages/vue2/src/components/tabs/components/tab.types.d.ts +3 -1
  110. package/dist/@types/packages/vue2/src/components/tabs/components/tab.vue.d.ts +1 -0
  111. package/dist/@types/packages/vue2/src/components/tabs/tabs.keys.d.ts +1 -0
  112. package/dist/@types/packages/vue2/src/components/tabs/tabs.types.d.ts +6 -2
  113. package/dist/@types/packages/vue2/src/components/tabs/tabs.vue.d.ts +4 -9
  114. package/dist/@types/packages/vue2/src/components/tag/tag.vue.d.ts +6 -9
  115. package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +6 -10
  116. package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +4 -10
  117. package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +1 -0
  118. package/dist/@types/packages/vue2/src/components/toast/components/toast-item/toast-item.vue.d.ts +0 -5
  119. package/dist/@types/packages/vue2/src/components/toggle/toggle.vue.d.ts +4 -6
  120. package/dist/@types/packages/vue2/src/components/tooltip/tooltip.vue.d.ts +24 -40
  121. package/dist/@types/packages/vue2/src/composables/use-default-slot-validator/use-default-slot-validator.d.ts +2 -1
  122. package/dist/@types/packages/vue2/src/composables/use-has-slot/use-has-slot.d.ts +8 -1
  123. package/dist/@types/packages/vue2/src/index.d.ts +3 -0
  124. package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.vue.d.ts +9 -0
  125. package/dist/@types/packages/vue2/src/utils/ts/get-slot-text/get-slot-text.d.ts +1 -1
  126. package/dist/@types/packages/vue2/src/utils/ts/print-development-warning.d.ts +1 -0
  127. package/dist/accordion.js +104 -254
  128. package/dist/accordion.js.map +1 -1
  129. package/dist/alert.js +61 -64
  130. package/dist/alert.js.map +1 -1
  131. package/dist/assets/base-button.css +1 -1
  132. package/dist/assets/base-modal.css +1 -0
  133. package/dist/assets/button.css +1 -1
  134. package/dist/assets/calendar.css +1 -1
  135. package/dist/assets/checkbox.css +1 -1
  136. package/dist/assets/chevron-up.css +1 -0
  137. package/dist/assets/controls-group.css +1 -1
  138. package/dist/assets/copy.css +1 -1
  139. package/dist/assets/dropdown-default-textbox.css +1 -1
  140. package/dist/assets/dropdown.css +1 -1
  141. package/dist/assets/error-message.css +1 -1
  142. package/dist/assets/footer-actions.css +1 -1
  143. package/dist/assets/index.css +1 -1
  144. package/dist/assets/index10.css +1 -1
  145. package/dist/assets/index11.css +1 -1
  146. package/dist/assets/index12.css +1 -1
  147. package/dist/assets/index13.css +1 -1
  148. package/dist/assets/index14.css +1 -1
  149. package/dist/assets/index15.css +1 -1
  150. package/dist/assets/index16.css +1 -1
  151. package/dist/assets/index17.css +1 -1
  152. package/dist/assets/index18.css +1 -1
  153. package/dist/assets/index19.css +1 -1
  154. package/dist/assets/index2.css +1 -1
  155. package/dist/assets/index20.css +1 -1
  156. package/dist/assets/index21.css +1 -1
  157. package/dist/assets/index22.css +1 -1
  158. package/dist/assets/index24.css +1 -1
  159. package/dist/assets/index25.css +1 -1
  160. package/dist/assets/index26.css +1 -1
  161. package/dist/assets/index27.css +1 -1
  162. package/dist/assets/index28.css +1 -1
  163. package/dist/assets/index29.css +1 -1
  164. package/dist/assets/index3.css +1 -1
  165. package/dist/assets/index30.css +1 -1
  166. package/dist/assets/index31.css +1 -1
  167. package/dist/assets/index32.css +1 -1
  168. package/dist/assets/index33.css +1 -1
  169. package/dist/assets/index34.css +1 -1
  170. package/dist/assets/index35.css +1 -1
  171. package/dist/assets/index36.css +1 -1
  172. package/dist/assets/index37.css +1 -1
  173. package/dist/assets/index38.css +1 -1
  174. package/dist/assets/index39.css +1 -1
  175. package/dist/assets/index4.css +1 -1
  176. package/dist/assets/index40.css +1 -1
  177. package/dist/assets/index41.css +1 -1
  178. package/dist/assets/index42.css +1 -1
  179. package/dist/assets/index43.css +1 -0
  180. package/dist/assets/index5.css +1 -1
  181. package/dist/assets/index6.css +1 -1
  182. package/dist/assets/index7.css +1 -1
  183. package/dist/assets/index8.css +1 -1
  184. package/dist/assets/index9.css +1 -1
  185. package/dist/assets/listbox-option-tag.css +1 -1
  186. package/dist/assets/listbox.css +1 -1
  187. package/dist/assets/loading-button.css +1 -1
  188. package/dist/assets/tooltip.css +1 -1
  189. package/dist/avatar-image.js +1 -1
  190. package/dist/badge.js +2 -2
  191. package/dist/button.js +143 -12
  192. package/dist/button.js.map +1 -1
  193. package/dist/card.js +99 -94
  194. package/dist/card.js.map +1 -1
  195. package/dist/checkbox.js +40 -39
  196. package/dist/checkbox.js.map +1 -1
  197. package/dist/chunks/base-button.6d2843c2.js +108 -0
  198. package/dist/chunks/base-button.6d2843c2.js.map +1 -0
  199. package/dist/chunks/base-modal.3ccb9eb5.js +291 -0
  200. package/dist/chunks/base-modal.3ccb9eb5.js.map +1 -0
  201. package/dist/chunks/{button.e1c39f66.js → button.a8462029.js} +39 -42
  202. package/dist/chunks/button.a8462029.js.map +1 -0
  203. package/dist/chunks/{calendar.09b683b3.js → calendar.3f930683.js} +237 -240
  204. package/dist/chunks/calendar.3f930683.js.map +1 -0
  205. package/dist/chunks/checkbox.5e1e05ae.js +235 -0
  206. package/dist/chunks/checkbox.5e1e05ae.js.map +1 -0
  207. package/dist/chunks/{chevron-down.69bedf14.js → chevron-up.c03b58f8.js} +8 -8
  208. package/dist/chunks/chevron-up.c03b58f8.js.map +1 -0
  209. package/dist/chunks/controls-group.3b0dfb94.js +136 -0
  210. package/dist/chunks/controls-group.3b0dfb94.js.map +1 -0
  211. package/dist/chunks/{copy.2cf5e6c3.js → copy.1d14b783.js} +49 -50
  212. package/dist/chunks/copy.1d14b783.js.map +1 -0
  213. package/dist/chunks/{dropdown-default-textbox.203e747f.js → dropdown-default-textbox.a90e84f9.js} +88 -90
  214. package/dist/chunks/dropdown-default-textbox.a90e84f9.js.map +1 -0
  215. package/dist/chunks/{dropdown.8b415aac.js → dropdown.b798a82e.js} +348 -330
  216. package/dist/chunks/dropdown.b798a82e.js.map +1 -0
  217. package/dist/chunks/{error-message.ddfe8ea5.js → error-message.9acead25.js} +16 -16
  218. package/dist/chunks/error-message.9acead25.js.map +1 -0
  219. package/dist/chunks/footer-actions.9537d0df.js +111 -0
  220. package/dist/chunks/footer-actions.9537d0df.js.map +1 -0
  221. package/dist/chunks/get-slot-text.bead058f.js +9 -0
  222. package/dist/chunks/get-slot-text.bead058f.js.map +1 -0
  223. package/dist/chunks/{grid-layout.a30855ff.js → grid-layout.984317d7.js} +2 -2
  224. package/dist/chunks/{grid-layout.a30855ff.js.map → grid-layout.984317d7.js.map} +1 -1
  225. package/dist/chunks/index.228ecda0.js +101 -0
  226. package/dist/chunks/index.228ecda0.js.map +1 -0
  227. package/dist/chunks/index.89b00b94.js +124 -0
  228. package/dist/chunks/index.89b00b94.js.map +1 -0
  229. package/dist/chunks/{index.3da90517.js → index.9d8273fc.js} +38 -40
  230. package/dist/chunks/index.9d8273fc.js.map +1 -0
  231. package/dist/chunks/{index.c9225c3b.js → index.c2a80208.js} +195 -201
  232. package/dist/chunks/index.c2a80208.js.map +1 -0
  233. package/dist/chunks/{index.13949709.js → index.d26fdf71.js} +116 -113
  234. package/dist/chunks/{index.13949709.js.map → index.d26fdf71.js.map} +1 -1
  235. package/dist/chunks/{index.d27367cd.js → index.e84dbeae.js} +80 -83
  236. package/dist/chunks/{index.d27367cd.js.map → index.e84dbeae.js.map} +1 -1
  237. package/dist/chunks/listbox-option-tag.0c9c571e.js +129 -0
  238. package/dist/chunks/listbox-option-tag.0c9c571e.js.map +1 -0
  239. package/dist/chunks/{listbox.0c7c4e5e.js → listbox.6b52af1a.js} +315 -334
  240. package/dist/chunks/listbox.6b52af1a.js.map +1 -0
  241. package/dist/chunks/{loading-button.61d8ebe5.js → loading-button.081adbf3.js} +33 -33
  242. package/dist/chunks/loading-button.081adbf3.js.map +1 -0
  243. package/dist/chunks/tabs.keys.358742f2.js +7 -0
  244. package/dist/chunks/tabs.keys.358742f2.js.map +1 -0
  245. package/dist/chunks/{tooltip.835d9b52.js → tooltip.e4e34b86.js} +56 -59
  246. package/dist/chunks/tooltip.e4e34b86.js.map +1 -0
  247. package/dist/chunks/use-default-slot-validator.1169c221.js +16 -0
  248. package/dist/chunks/use-default-slot-validator.1169c221.js.map +1 -0
  249. package/dist/chunks/use-has-slot.9fac7123.js +16 -0
  250. package/dist/chunks/use-has-slot.9fac7123.js.map +1 -0
  251. package/dist/code-snippet.js +548 -463
  252. package/dist/code-snippet.js.map +1 -1
  253. package/dist/country.js +501 -505
  254. package/dist/country.js.map +1 -1
  255. package/dist/currency.js +38 -41
  256. package/dist/currency.js.map +1 -1
  257. package/dist/data-grid.js +837 -833
  258. package/dist/data-grid.js.map +1 -1
  259. package/dist/date-picker.js +83 -87
  260. package/dist/date-picker.js.map +1 -1
  261. package/dist/date-range-picker.js +2 -2
  262. package/dist/date.js +1 -1
  263. package/dist/dropdown.js +30 -32
  264. package/dist/dropdown.js.map +1 -1
  265. package/dist/empty-state.js +166 -0
  266. package/dist/empty-state.js.map +1 -0
  267. package/dist/filter-bar.js +986 -935
  268. package/dist/filter-bar.js.map +1 -1
  269. package/dist/focus-trap.js +1 -1
  270. package/dist/form-layout.js +72 -72
  271. package/dist/form-layout.js.map +1 -1
  272. package/dist/header.js +50 -52
  273. package/dist/header.js.map +1 -1
  274. package/dist/image.js +76 -0
  275. package/dist/image.js.map +1 -0
  276. package/dist/index.js +239 -232
  277. package/dist/index.js.map +1 -1
  278. package/dist/info-icon.js +2 -2
  279. package/dist/input-field.js +241 -269
  280. package/dist/input-field.js.map +1 -1
  281. package/dist/internal.js +7 -7
  282. package/dist/link.js +38 -36
  283. package/dist/link.js.map +1 -1
  284. package/dist/loading-indicator.js +1 -1
  285. package/dist/menu.js +131 -139
  286. package/dist/menu.js.map +1 -1
  287. package/dist/modal.js +121 -356
  288. package/dist/modal.js.map +1 -1
  289. package/dist/pagination.js +182 -185
  290. package/dist/pagination.js.map +1 -1
  291. package/dist/payment-method.js +19 -23
  292. package/dist/payment-method.js.map +1 -1
  293. package/dist/popover.js +56 -52
  294. package/dist/popover.js.map +1 -1
  295. package/dist/popper-container.js +36 -41
  296. package/dist/popper-container.js.map +1 -1
  297. package/dist/radio-group.js +112 -113
  298. package/dist/radio-group.js.map +1 -1
  299. package/dist/search-bar.js +77 -91
  300. package/dist/search-bar.js.map +1 -1
  301. package/dist/segmented-control.js +88 -75
  302. package/dist/segmented-control.js.map +1 -1
  303. package/dist/sidepanel.js +122 -121
  304. package/dist/sidepanel.js.map +1 -1
  305. package/dist/status.js +18 -21
  306. package/dist/status.js.map +1 -1
  307. package/dist/structured-list.js +1 -1
  308. package/dist/summary-grid.js +129 -162
  309. package/dist/summary-grid.js.map +1 -1
  310. package/dist/tabs.js +83 -75
  311. package/dist/tabs.js.map +1 -1
  312. package/dist/tag.js +32 -35
  313. package/dist/tag.js.map +1 -1
  314. package/dist/textarea.js +156 -155
  315. package/dist/textarea.js.map +1 -1
  316. package/dist/timeline.js +212 -213
  317. package/dist/timeline.js.map +1 -1
  318. package/dist/toast.js +68 -72
  319. package/dist/toast.js.map +1 -1
  320. package/dist/toggle.js +75 -73
  321. package/dist/toggle.js.map +1 -1
  322. package/dist/typography.js +1 -1
  323. package/dist/web-types.json +1 -1
  324. package/package.json +11 -10
  325. package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateBodyFitContentDynamicStyles/useCalculateBodyFitContentDynamicStyles.d.ts +0 -2
  326. package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateBodyFitContentDynamicStyles/useCalculateBodyFitContentDynamicStyles.types.d.ts +0 -8
  327. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/components/filter-bar-filter-button/filter-bar-filter-button.vue.d.ts +0 -58
  328. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/components/index.d.ts +0 -1
  329. package/dist/assets/button-actions.css +0 -1
  330. package/dist/assets/chevron-down.css +0 -1
  331. package/dist/chunks/base-button.20be08da.js +0 -111
  332. package/dist/chunks/base-button.20be08da.js.map +0 -1
  333. package/dist/chunks/button-actions.54e28e75.js +0 -124
  334. package/dist/chunks/button-actions.54e28e75.js.map +0 -1
  335. package/dist/chunks/button.e1c39f66.js.map +0 -1
  336. package/dist/chunks/calendar.09b683b3.js.map +0 -1
  337. package/dist/chunks/checkbox.a404069b.js +0 -226
  338. package/dist/chunks/checkbox.a404069b.js.map +0 -1
  339. package/dist/chunks/chevron-down.69bedf14.js.map +0 -1
  340. package/dist/chunks/controls-group.60fb2a86.js +0 -136
  341. package/dist/chunks/controls-group.60fb2a86.js.map +0 -1
  342. package/dist/chunks/copy.2cf5e6c3.js.map +0 -1
  343. package/dist/chunks/dropdown-default-textbox.203e747f.js.map +0 -1
  344. package/dist/chunks/dropdown.8b415aac.js.map +0 -1
  345. package/dist/chunks/error-message.ddfe8ea5.js.map +0 -1
  346. package/dist/chunks/footer-actions.0f640f87.js +0 -106
  347. package/dist/chunks/footer-actions.0f640f87.js.map +0 -1
  348. package/dist/chunks/get-slot-text.2db867f8.js +0 -9
  349. package/dist/chunks/get-slot-text.2db867f8.js.map +0 -1
  350. package/dist/chunks/index.222d29b0.js +0 -120
  351. package/dist/chunks/index.222d29b0.js.map +0 -1
  352. package/dist/chunks/index.3da90517.js.map +0 -1
  353. package/dist/chunks/index.aa34e363.js +0 -104
  354. package/dist/chunks/index.aa34e363.js.map +0 -1
  355. package/dist/chunks/index.c9225c3b.js.map +0 -1
  356. package/dist/chunks/listbox-option-tag.5ae8b79b.js +0 -133
  357. package/dist/chunks/listbox-option-tag.5ae8b79b.js.map +0 -1
  358. package/dist/chunks/listbox.0c7c4e5e.js.map +0 -1
  359. package/dist/chunks/loading-button.61d8ebe5.js.map +0 -1
  360. package/dist/chunks/tooltip.835d9b52.js.map +0 -1
  361. package/dist/chunks/use-default-slot-validator.83d977a1.js +0 -11
  362. package/dist/chunks/use-default-slot-validator.83d977a1.js.map +0 -1
  363. package/dist/chunks/use-has-slot.068222e6.js +0 -5
  364. package/dist/chunks/use-has-slot.068222e6.js.map +0 -1
@@ -1,15 +1,14 @@
1
- import { computed as u, defineComponent as x, openBlock as g, createElementBlock as L, mergeProps as U, withKeys as ie, renderSlot as P, toDisplayString as B, createCommentVNode as j, pushScopeId as ye, popScopeId as Ee, createElementVNode as $, resolveComponent as S, createBlock as I, toHandlerKey as w, withCtx as C, normalizeProps as K, guardReactiveProps as H, createVNode as A, createTextVNode as N, withDirectives as X, vShow as re, ref as R, onMounted as Ye, toRef as Fe, resolveDirective as de, toHandlers as J, Fragment as se, renderList as q, createSlots as Q, normalizeClass as ae, watch as Ke } from "vue";
2
- import { B as D, a as ce, d as He } from "./debounce.f8d92e44.js";
3
- import { B as ee, a as te } from "./index.222d29b0.js";
4
- import { BentoLoadingIndicator as We } from "../loading-indicator.js";
5
- import { a as ze } from "./button.e1c39f66.js";
6
- import { u as ue } from "./i18n.6c402773.js";
7
- import { _ as W } from "./_plugin-vue_export-helper.dad06003.js";
8
- import { B as be } from "./checkbox.a404069b.js";
9
- import { C as qe, a as xe } from "./chevron-down.69bedf14.js";
10
- import { B as je, a as me } from "./loading-button.61d8ebe5.js";
1
+ import { computed as u, defineComponent as z, openBlock as g, createElementBlock as O, mergeProps as U, withKeys as ne, renderSlot as M, toDisplayString as $, createCommentVNode as j, pushScopeId as fe, popScopeId as Ee, createElementVNode as B, resolveComponent as S, createBlock as I, toHandlerKey as w, withCtx as C, normalizeProps as F, guardReactiveProps as K, createVNode as L, createTextVNode as D, withDirectives as X, vShow as ae, ref as R, onMounted as Ge, toRef as xe, resolveDirective as de, toHandlers as J, Fragment as te, renderList as W, createSlots as Q, normalizeClass as ie, watch as Ye } from "vue";
2
+ import { B as N, a as re, d as Fe } from "./debounce.f8d92e44.js";
3
+ import { B as ee } from "./index.89b00b94.js";
4
+ import { BentoLoadingIndicator as Ke } from "../loading-indicator.js";
5
+ import { u as ce } from "./i18n.6c402773.js";
6
+ import { _ as H } from "./_plugin-vue_export-helper.dad06003.js";
7
+ import { B as ue } from "./checkbox.5e1e05ae.js";
8
+ import { a as He, C as We } from "./chevron-up.c03b58f8.js";
9
+ import { B as ze, a as be } from "./loading-button.081adbf3.js";
11
10
  import "../assets/listbox.css";
12
- const Se = (e, t, v, p) => {
11
+ const ye = (e, t, v, p) => {
13
12
  const n = u(
14
13
  () => {
15
14
  var l, i;
@@ -27,8 +26,8 @@ const Se = (e, t, v, p) => {
27
26
  }
28
27
  };
29
28
  };
30
- var o = /* @__PURE__ */ ((e) => (e.SELECT = "select", e.SHOW_MORE = "show-more", e.ESCAPE = "escape-pressed", e.CLICK = "click", e.ENTER = "enter-pressed", e.SPACE = "space-pressed", e.TAB = "tab-pressed", e.CLOSE_DROPDOWN = "close-dropdown", e))(o || {}), z = /* @__PURE__ */ ((e) => (e.AUTOMATIC = "automatic", e.BUTTON = "button", e.NONE = "none", e))(z || {});
31
- const Xe = x({
29
+ var o = /* @__PURE__ */ ((e) => (e.SELECT = "select", e.SHOW_MORE = "show-more", e.ESCAPE = "escape-pressed", e.CLICK = "click", e.ENTER = "enter-pressed", e.SPACE = "space-pressed", e.TAB = "tab-pressed", e.CLOSE_DROPDOWN = "close-dropdown", e))(o || {}), q = /* @__PURE__ */ ((e) => (e.AUTOMATIC = "automatic", e.BUTTON = "button", e.NONE = "none", e))(q || {});
30
+ const qe = z({
32
31
  name: "bento-listbox-option",
33
32
  props: {
34
33
  /**
@@ -48,7 +47,7 @@ const Xe = x({
48
47
  }));
49
48
  return {
50
49
  // Enums
51
- BentoKeyboardNavigationKeyDownEvent: D,
50
+ BentoKeyboardNavigationKeyDownEvent: N,
52
51
  BentoListboxEvent: o,
53
52
  // Values
54
53
  conditionalClasses: v,
@@ -56,56 +55,56 @@ const Xe = x({
56
55
  onClick: (b) => {
57
56
  t(o.CLICK, b);
58
57
  },
59
- onOptionSelected: (b, r) => {
60
- t(b, r);
58
+ onOptionSelected: (b, d) => {
59
+ t(b, d);
61
60
  }
62
61
  };
63
62
  }
64
63
  });
65
- function Ze(e, t, v, p, n, b) {
66
- return g(), L("label", U({
64
+ function je(e, t, v, p, n, b) {
65
+ return g(), O("label", U({
67
66
  class: ["b-listbox-option", e.conditionalClasses],
68
67
  role: "option"
69
68
  }, e.$attrs, {
70
- onClick: t[0] || (t[0] = (...r) => e.onClick && e.onClick(...r)),
69
+ onClick: t[0] || (t[0] = (...d) => e.onClick && e.onClick(...d)),
71
70
  onKeydown: [
72
- t[1] || (t[1] = ie((r) => e.onOptionSelected(e.BentoListboxEvent.ENTER, r), ["enter"])),
73
- t[2] || (t[2] = ie((r) => e.onOptionSelected(e.BentoListboxEvent.SPACE, r), ["space"])),
74
- t[3] || (t[3] = ie((r) => e.onOptionSelected(e.BentoListboxEvent.TAB, r), ["tab"]))
71
+ t[1] || (t[1] = ne((d) => e.onOptionSelected(e.BentoListboxEvent.ENTER, d), ["enter"])),
72
+ t[2] || (t[2] = ne((d) => e.onOptionSelected(e.BentoListboxEvent.SPACE, d), ["space"])),
73
+ t[3] || (t[3] = ne((d) => e.onOptionSelected(e.BentoListboxEvent.TAB, d), ["tab"]))
75
74
  ]
76
75
  }), [
77
- P(e.$slots, "default", {}, void 0, !0)
76
+ M(e.$slots, "default", {}, void 0, !0)
78
77
  ], 16);
79
78
  }
80
- const le = /* @__PURE__ */ W(Xe, [["render", Ze], ["__scopeId", "data-v-18a61f5d"]]);
81
- let ve = 0;
82
- const Je = {
79
+ const se = /* @__PURE__ */ H(qe, [["render", je], ["__scopeId", "data-v-18a61f5d"]]);
80
+ let me = 0;
81
+ const Xe = {
83
82
  beforeCreate() {
84
- this.uuid = ve.toString(), ve += 1;
83
+ this.uuid = me.toString(), me += 1;
85
84
  }
86
- }, Qe = (e) => (ye("data-v-4687fbd0"), e = e(), Ee(), e), et = { key: 0 }, tt = /* @__PURE__ */ Qe(() => /* @__PURE__ */ $("path", {
85
+ }, Ze = (e) => (fe("data-v-4687fbd0"), e = e(), Ee(), e), Je = { key: 0 }, Qe = /* @__PURE__ */ Ze(() => /* @__PURE__ */ B("path", {
87
86
  fill: "#00112C",
88
87
  "fill-rule": "evenodd",
89
88
  d: "M14.5303 4.53033C14.8232 4.23744 14.8232 3.76256 14.5303 3.46967C14.2374 3.17678 13.7626 3.17678 13.4697 3.46967L6 10.9393L2.53033 7.46967C2.23744 7.17678 1.76256 7.17678 1.46967 7.46967C1.17678 7.76256 1.17678 8.23744 1.46967 8.53033L5.46967 12.5303C5.50628 12.5669 5.54574 12.599 5.58732 12.6264C5.87844 12.8186 6.27405 12.7866 6.53033 12.5303L14.5303 4.53033Z",
90
89
  "clip-rule": "evenodd"
91
90
  }, null, -1));
92
- function st(e, t, v, p, n, b) {
93
- return g(), L("svg", U({ role: "img" }, e.$attrs, {
91
+ function et(e, t, v, p, n, b) {
92
+ return g(), O("svg", U({ role: "img" }, e.$attrs, {
94
93
  xmlns: "http://www.w3.org/2000/svg",
95
94
  width: "16",
96
95
  height: "16",
97
96
  fill: "none"
98
97
  }), [
99
- e.$attrs["svg-title"] ? (g(), L("title", et, B(e.$attrs["svg-title"]), 1)) : j("", !0),
100
- tt
98
+ e.$attrs["svg-title"] ? (g(), O("title", Je, $(e.$attrs["svg-title"]), 1)) : j("", !0),
99
+ Qe
101
100
  ], 16);
102
101
  }
103
- const lt = /* @__PURE__ */ W(Je, [["render", st], ["__scopeId", "data-v-4687fbd0"]]), ot = x({
102
+ const tt = /* @__PURE__ */ H(Xe, [["render", et], ["__scopeId", "data-v-4687fbd0"]]), st = z({
104
103
  name: "bento-listbox-single-select-option",
105
104
  components: {
106
- BentoListboxOption: le,
105
+ BentoListboxOption: se,
107
106
  BentoTypography: ee,
108
- CheckmarkIcon: lt
107
+ CheckmarkIcon: tt
109
108
  },
110
109
  props: {
111
110
  /**
@@ -127,8 +126,8 @@ const lt = /* @__PURE__ */ W(Je, [["render", st], ["__scopeId", "data-v-4687fbd0
127
126
  },
128
127
  emits: [o.ENTER, o.SELECT, o.SPACE, o.TAB],
129
128
  setup(e, { emit: t }) {
130
- const v = (r) => {
131
- e.disabled || t(r, e.option.value);
129
+ const v = (d) => {
130
+ e.disabled || t(d, e.option.value);
132
131
  }, p = u(() => e.disabled ? !0 : null), n = u(() => e.selected ? !0 : null), b = u(() => e.disabled ? -1 : 0);
133
132
  return {
134
133
  // Values
@@ -136,16 +135,15 @@ const lt = /* @__PURE__ */ W(Je, [["render", st], ["__scopeId", "data-v-4687fbd0
136
135
  ariaSelected: n,
137
136
  tabIndex: b,
138
137
  // Enums
139
- BentoTypographyElement: te,
140
138
  BentoListboxEvent: o,
141
139
  // Events
142
140
  onOptionSelected: v
143
141
  };
144
142
  }
145
143
  });
146
- const nt = { class: "b-listbox-single-select-option__text" }, it = { class: "b-listbox-single-select-option__check-icon" };
147
- function at(e, t, v, p, n, b) {
148
- const r = S("bento-typography"), l = S("checkmark-icon"), i = S("bento-listbox-option");
144
+ const lt = { class: "b-listbox-single-select-option__text" }, ot = { class: "b-listbox-single-select-option__check-icon" };
145
+ function nt(e, t, v, p, n, b) {
146
+ const d = S("bento-typography"), l = S("checkmark-icon"), i = S("bento-listbox-option");
149
147
  return g(), I(i, U({
150
148
  class: "b-listbox-single-select-option",
151
149
  disabled: e.disabled,
@@ -153,52 +151,50 @@ function at(e, t, v, p, n, b) {
153
151
  "aria-selected": e.ariaSelected,
154
152
  "aria-disabled": e.ariaDisabled,
155
153
  tabindex: e.tabIndex,
156
- onClick: t[0] || (t[0] = (d) => e.onOptionSelected(e.BentoListboxEvent.SELECT))
154
+ onClick: t[0] || (t[0] = (r) => e.onOptionSelected(e.BentoListboxEvent.SELECT))
157
155
  }, {
158
- [w(e.BentoListboxEvent.ENTER)]: t[1] || (t[1] = (d) => e.onOptionSelected(e.BentoListboxEvent.ENTER))
156
+ [w(e.BentoListboxEvent.ENTER)]: t[1] || (t[1] = (r) => e.onOptionSelected(e.BentoListboxEvent.ENTER))
159
157
  }, {
160
- [w(e.BentoListboxEvent.SPACE)]: t[2] || (t[2] = (d) => e.onOptionSelected(e.BentoListboxEvent.SPACE))
158
+ [w(e.BentoListboxEvent.SPACE)]: t[2] || (t[2] = (r) => e.onOptionSelected(e.BentoListboxEvent.SPACE))
161
159
  }, {
162
- [w(e.BentoListboxEvent.TAB)]: t[3] || (t[3] = (d) => e.onOptionSelected(e.BentoListboxEvent.TAB))
160
+ [w(e.BentoListboxEvent.TAB)]: t[3] || (t[3] = (r) => e.onOptionSelected(e.BentoListboxEvent.TAB))
163
161
  }), {
164
162
  default: C(() => [
165
- P(e.$slots, "default", K(H(e.option)), () => [
166
- $("span", nt, [
167
- A(r, {
168
- el: e.BentoTypographyElement.SPAN
169
- }, {
163
+ M(e.$slots, "default", F(K(e.option)), () => [
164
+ B("span", lt, [
165
+ L(d, { el: "span" }, {
170
166
  default: C(() => [
171
- N(B(e.option.label), 1)
167
+ D($(e.option.label), 1)
172
168
  ]),
173
169
  _: 1
174
- }, 8, ["el"]),
175
- e.option.description ? (g(), I(r, {
170
+ }),
171
+ e.option.description ? (g(), I(d, {
176
172
  key: 0,
177
173
  class: "b-listbox-single-select-option__description",
178
- el: e.BentoTypographyElement.SPAN
174
+ el: "span"
179
175
  }, {
180
176
  default: C(() => [
181
- N(B(e.option.description), 1)
177
+ D($(e.option.description), 1)
182
178
  ]),
183
179
  _: 1
184
- }, 8, ["el"])) : j("", !0)
180
+ })) : j("", !0)
185
181
  ])
186
182
  ], !0),
187
- $("span", it, [
188
- X(A(l, { "svg-title": "selected" }, null, 512), [
189
- [re, e.selected]
183
+ B("span", ot, [
184
+ X(L(l, { "svg-title": "selected" }, null, 512), [
185
+ [ae, e.selected]
190
186
  ])
191
187
  ])
192
188
  ]),
193
189
  _: 3
194
190
  }, 16, ["disabled", "selected", "aria-selected", "aria-disabled", "tabindex"]);
195
191
  }
196
- const rt = /* @__PURE__ */ W(ot, [["render", at], ["__scopeId", "data-v-88d28e60"]]), Ce = ({ items: e, isOptionDisabled: t }, v) => {
192
+ const it = /* @__PURE__ */ H(st, [["render", nt], ["__scopeId", "data-v-d112952c"]]), Se = ({ items: e, isOptionDisabled: t }, v) => {
197
193
  const p = u(() => e.value.length - 1), n = R(0);
198
- Ye(() => {
194
+ Ge(() => {
199
195
  t && (n.value = e.value.findIndex((m) => !t(m)));
200
196
  });
201
- const b = (m) => !t || !!t && t(e.value[m]), r = (m) => !t || !!t && !t(e.value[m]), l = (m) => {
197
+ const b = (m) => !t || !!t && t(e.value[m]), d = (m) => !t || !!t && !t(e.value[m]), l = (m) => {
202
198
  switch (m) {
203
199
  case "increase":
204
200
  n.value += 1;
@@ -207,47 +203,47 @@ const rt = /* @__PURE__ */ W(ot, [["render", at], ["__scopeId", "data-v-88d28e60
207
203
  n.value -= 1;
208
204
  break;
209
205
  }
210
- }, i = ({ edgeCaseItem: m, isItemBeforeEdgeCaseItem: O }, V, M) => {
211
- n.value !== m && (O ? r(m) && l(M) : (l(M), b(n.value) && V()), v(n.value));
212
- }, d = () => {
206
+ }, i = ({ edgeCaseItem: m, isItemBeforeEdgeCaseItem: A }, V, P) => {
207
+ n.value !== m && (A ? d(m) && l(P) : (l(P), b(n.value) && V()), v(n.value));
208
+ }, r = () => {
213
209
  const m = n.value === p.value - 2;
214
210
  i(
215
211
  {
216
212
  isItemBeforeEdgeCaseItem: m,
217
213
  edgeCaseItem: p.value
218
214
  },
219
- d,
215
+ r,
220
216
  "increase"
221
217
  /* INCREASE */
222
218
  );
223
- }, E = () => {
219
+ }, y = () => {
224
220
  const m = n.value === 1;
225
221
  i(
226
222
  {
227
223
  edgeCaseItem: 0,
228
224
  isItemBeforeEdgeCaseItem: m
229
225
  },
230
- E,
226
+ y,
231
227
  "decrease"
232
228
  /* DECREASE */
233
229
  );
234
230
  };
235
231
  return {
236
232
  moveToFirstElement: () => {
237
- n.value = 0, b(n.value) ? d() : v(n.value);
233
+ n.value = 0, b(n.value) ? r() : v(n.value);
238
234
  },
239
235
  moveToLastElement: () => {
240
- n.value = p.value, b(n.value) ? E() : v(n.value);
236
+ n.value = p.value, b(n.value) ? y() : v(n.value);
241
237
  },
242
- moveToNextElement: d,
243
- moveToPreviousElement: E
238
+ moveToNextElement: r,
239
+ moveToPreviousElement: y
244
240
  };
245
- }, dt = x({
241
+ }, at = z({
246
242
  name: "bento-listbox-single-select",
247
243
  components: {
248
- BentoListboxSingleSelectOption: rt
244
+ BentoListboxSingleSelectOption: it
249
245
  },
250
- directives: { BentoKeyboardNavigationDirective: ce },
246
+ directives: { BentoKeyboardNavigationDirective: re },
251
247
  inheritAttrs: !1,
252
248
  props: {
253
249
  /**
@@ -288,17 +284,17 @@ const rt = /* @__PURE__ */ W(ot, [["render", at], ["__scopeId", "data-v-88d28e60
288
284
  setup(e, { emit: t, slots: v }) {
289
285
  const p = R([]), n = (f) => (m) => {
290
286
  t(f, m);
291
- }, b = (f) => p.value[f].$el.focus(), { moveToNextElement: r, moveToPreviousElement: l, moveToFirstElement: i, moveToLastElement: d } = Ce(
287
+ }, b = (f) => p.value[f].$el.focus(), { moveToNextElement: d, moveToPreviousElement: l, moveToFirstElement: i, moveToLastElement: r } = Se(
292
288
  {
293
- items: Fe(e, "items"),
289
+ items: xe(e, "items"),
294
290
  isOptionDisabled: e.isOptionDisabled
295
291
  },
296
292
  b
297
- ), E = {
298
- [D.ARROW_UP]: l,
299
- [D.ARROW_DOWN]: r,
300
- [D.HOME]: i,
301
- [D.END]: d
293
+ ), y = {
294
+ [N.ARROW_UP]: l,
295
+ [N.ARROW_DOWN]: d,
296
+ [N.HOME]: i,
297
+ [N.END]: r
302
298
  }, s = {
303
299
  [o.SELECT]: n(o.SELECT),
304
300
  [o.SPACE]: n(o.SPACE),
@@ -314,15 +310,15 @@ const rt = /* @__PURE__ */ W(ot, [["render", at], ["__scopeId", "data-v-88d28e60
314
310
  // Methods
315
311
  onOptionSelected: n,
316
312
  // Keyboard navigation
317
- listboxListeners: E,
313
+ listboxListeners: y,
318
314
  listboxOptionListeners: s
319
315
  };
320
316
  }
321
317
  });
322
- function ct(e, t, v, p, n, b) {
323
- const r = S("bento-listbox-single-select-option"), l = de("bento-keyboard-navigation-directive");
324
- return X((g(), L("div", J(e.listboxListeners, !0), [
325
- (g(!0), L(se, null, q(e.items, (i) => (g(), I(r, U({
318
+ function dt(e, t, v, p, n, b) {
319
+ const d = S("bento-listbox-single-select-option"), l = de("bento-keyboard-navigation-directive");
320
+ return X((g(), O("div", J(e.listboxListeners, !0), [
321
+ (g(!0), O(te, null, W(e.items, (i) => (g(), I(d, U({
326
322
  key: i.value,
327
323
  ref_for: !0,
328
324
  ref: "listboxItemRef",
@@ -331,10 +327,10 @@ function ct(e, t, v, p, n, b) {
331
327
  disabled: e.isOptionDisabled ? e.isOptionDisabled(i) : null,
332
328
  selected: i.value === e.selectedValue
333
329
  }, J(e.listboxOptionListeners)), Q({ _: 2 }, [
334
- q(e.slots, (d, E) => ({
335
- name: E,
330
+ W(e.slots, (r, y) => ({
331
+ name: y,
336
332
  fn: C((s) => [
337
- P(e.$slots, E, K(H(s)))
333
+ M(e.$slots, y, F(K(s)))
338
334
  ])
339
335
  }))
340
336
  ]), 1040, ["option", "disabled", "selected"]))), 128))
@@ -342,22 +338,22 @@ function ct(e, t, v, p, n, b) {
342
338
  [l]
343
339
  ]);
344
340
  }
345
- const ut = /* @__PURE__ */ W(dt, [["render", ct]]);
346
- var _e = /* @__PURE__ */ ((e) => (e.DISABLED = "disabled", e))(_e || {}), Z = /* @__PURE__ */ ((e) => (e.SELECT_CATEGORY = "select-category", e.UNSELECT_CATEGORY = "unselect-category", e))(Z || {});
347
- const bt = {
341
+ const rt = /* @__PURE__ */ H(at, [["render", dt]]);
342
+ var Ce = /* @__PURE__ */ ((e) => (e.DISABLED = "disabled", e))(Ce || {}), Z = /* @__PURE__ */ ((e) => (e.SELECT_CATEGORY = "select-category", e.UNSELECT_CATEGORY = "unselect-category", e))(Z || {});
343
+ const ct = {
348
344
  "en-US": {
349
345
  categoryClosed: "{category} closed",
350
346
  categoryOpened: "{category} opened"
351
347
  }
352
- }, mt = x({
353
- i18n: { messages: bt },
348
+ }, ut = z({
349
+ i18n: { messages: ct },
354
350
  name: "bento-listbox-multi-select-category",
355
351
  components: {
356
- BentoCheckbox: be,
352
+ BentoCheckbox: ue,
357
353
  BentoTypography: ee,
358
- BentoListboxOption: le,
359
- ChevronDownIcon: qe,
360
- ChevronUpIcon: xe
354
+ BentoListboxOption: se,
355
+ ChevronDownIcon: He,
356
+ ChevronUpIcon: We
361
357
  },
362
358
  props: {
363
359
  /**
@@ -396,25 +392,25 @@ const bt = {
396
392
  },
397
393
  emits: [Z.SELECT_CATEGORY, Z.UNSELECT_CATEGORY],
398
394
  setup(e, { emit: t }) {
399
- const v = R(!1), { t: p } = ue(), n = (_) => e.isOptionDisabled ? e.isOptionDisabled(_) : !1, b = u(
395
+ const v = R(!1), { t: p } = ce(), n = (_) => e.isOptionDisabled ? e.isOptionDisabled(_) : !1, b = u(
400
396
  () => e.category.items.every((_) => n(_))
401
- ), r = u(() => ({
402
- [`b-listbox-multi-select-category--${_e.DISABLED}`]: b.value
397
+ ), d = u(() => ({
398
+ [`b-listbox-multi-select-category--${Ce.DISABLED}`]: b.value
403
399
  })), l = (_) => {
404
400
  _.preventDefault(), v.value = !v.value;
405
401
  }, i = (_) => {
406
402
  var G;
407
403
  const k = n(_), T = ((G = e.selectedItemsList) == null ? void 0 : G.includes(_.value)) || !1;
408
404
  return { isDisabled: k, isPreSelected: T };
409
- }, d = u(
405
+ }, r = u(
410
406
  () => e.category.items.filter((_) => {
411
407
  const { isDisabled: k, isPreSelected: T } = i(_);
412
408
  return k && T || !k;
413
409
  })
414
- ), E = u(
410
+ ), y = u(
415
411
  () => {
416
412
  var _;
417
- return (_ = d.value) == null ? void 0 : _.filter(
413
+ return (_ = r.value) == null ? void 0 : _.filter(
418
414
  ({ value: k }) => {
419
415
  var T;
420
416
  return (T = e.selectedItemsList) == null ? void 0 : T.includes(k);
@@ -428,37 +424,35 @@ const bt = {
428
424
  t(Z.SELECT_CATEGORY);
429
425
  }, m = () => {
430
426
  t(Z.UNSELECT_CATEGORY);
431
- }, { isAllSelected: O, isIndeterminate: V, toggleSelectAll: M } = Se(
432
- E,
433
- d,
427
+ }, { isAllSelected: A, isIndeterminate: V, toggleSelectAll: P } = ye(
428
+ y,
429
+ r,
434
430
  f,
435
431
  m
436
432
  );
437
433
  return {
438
434
  // Values
439
435
  chevronTitle: s,
440
- conditionalClass: r,
436
+ conditionalClass: d,
441
437
  hasAllPropsDisabled: b,
442
438
  isOpen: v,
443
- isAllSelected: O,
439
+ isAllSelected: A,
444
440
  isIndeterminate: V,
445
- // Enums
446
- BentoTypographyElement: te,
447
441
  // Methods
448
442
  toggleOpen: l,
449
- toggleSelectAll: M
443
+ toggleSelectAll: P
450
444
  };
451
445
  }
452
446
  });
453
- const vt = { class: "b-listbox-multi-select-category__label" };
454
- function pt(e, t, v, p, n, b) {
455
- const r = S("bento-checkbox"), l = S("bento-typography"), i = S("chevron-up-icon"), d = S("chevron-down-icon"), E = S("bento-listbox-option");
456
- return g(), L("div", null, [
457
- A(E, {
458
- class: ae(["b-listbox-multi-select-category__option", e.conditionalClass])
447
+ const bt = { class: "b-listbox-multi-select-category__label" };
448
+ function mt(e, t, v, p, n, b) {
449
+ const d = S("bento-checkbox"), l = S("bento-typography"), i = S("chevron-up-icon"), r = S("chevron-down-icon"), y = S("bento-listbox-option");
450
+ return g(), O("div", null, [
451
+ L(y, {
452
+ class: ie(["b-listbox-multi-select-category__option", e.conditionalClass])
459
453
  }, {
460
454
  default: C(() => [
461
- A(r, {
455
+ L(d, {
462
456
  "model-value": e.isAllSelected,
463
457
  indeterminate: e.isIndeterminate,
464
458
  disabled: e.hasAllPropsDisabled,
@@ -466,17 +460,17 @@ function pt(e, t, v, p, n, b) {
466
460
  value: e.category.value,
467
461
  "onUpdate:modelValue": e.toggleSelectAll
468
462
  }, null, 8, ["model-value", "indeterminate", "disabled", "aria-label", "value", "onUpdate:modelValue"]),
469
- $("span", vt, [
470
- A(l, {
471
- el: e.BentoTypographyElement.SPAN,
463
+ B("span", bt, [
464
+ L(l, {
465
+ el: "span",
472
466
  class: "b-listbox-multi-select-category__label-text"
473
467
  }, {
474
468
  default: C(() => [
475
- N(B(e.category.label), 1)
469
+ D($(e.category.label), 1)
476
470
  ]),
477
471
  _: 1
478
- }, 8, ["el"]),
479
- $("div", {
472
+ }),
473
+ B("div", {
480
474
  class: "b-listbox-multi-select-category__label-chevron",
481
475
  "data-testid": "toggle-listbox",
482
476
  onClickCapture: t[0] || (t[0] = (...s) => e.toggleOpen && e.toggleOpen(...s))
@@ -484,7 +478,7 @@ function pt(e, t, v, p, n, b) {
484
478
  e.isOpen ? (g(), I(i, {
485
479
  key: 0,
486
480
  "svg-title": e.chevronTitle
487
- }, null, 8, ["svg-title"])) : (g(), I(d, {
481
+ }, null, 8, ["svg-title"])) : (g(), I(r, {
488
482
  key: 1,
489
483
  "svg-title": e.chevronTitle
490
484
  }, null, 8, ["svg-title"]))
@@ -493,22 +487,22 @@ function pt(e, t, v, p, n, b) {
493
487
  ]),
494
488
  _: 1
495
489
  }, 8, ["class"]),
496
- X($("div", null, [
497
- P(e.$slots, "default", {}, void 0, !0)
490
+ X(B("div", null, [
491
+ M(e.$slots, "default", {}, void 0, !0)
498
492
  ], 512), [
499
- [re, e.isOpen]
493
+ [ae, e.isOpen]
500
494
  ])
501
495
  ]);
502
496
  }
503
- const gt = /* @__PURE__ */ W(mt, [["render", pt], ["__scopeId", "data-v-8ac8cf6b"]]);
504
- var F = /* @__PURE__ */ ((e) => (e.SELECT_CATEGORY = "select-category", e.TOGGLE_CHECKBOX_SELECTION = "toggle-checkbox-selection", e.UNSELECT_CATEGORY = "unselect-category", e))(F || {});
505
- const ft = x({
497
+ const vt = /* @__PURE__ */ H(ut, [["render", mt], ["__scopeId", "data-v-69a9679a"]]);
498
+ var Y = /* @__PURE__ */ ((e) => (e.SELECT_CATEGORY = "select-category", e.TOGGLE_CHECKBOX_SELECTION = "toggle-checkbox-selection", e.UNSELECT_CATEGORY = "unselect-category", e))(Y || {});
499
+ const pt = z({
506
500
  name: "listbox-multi-select-options",
507
501
  components: {
508
- BentoCheckbox: be,
509
- BentoListboxOption: le,
502
+ BentoCheckbox: ue,
503
+ BentoListboxOption: se,
510
504
  BentoTypography: ee,
511
- ListboxMultiSelectCategory: gt
505
+ ListboxMultiSelectCategory: vt
512
506
  },
513
507
  props: {
514
508
  /**
@@ -562,20 +556,20 @@ const ft = x({
562
556
  }
563
557
  },
564
558
  emits: [
565
- F.TOGGLE_CHECKBOX_SELECTION,
566
- F.SELECT_CATEGORY,
567
- F.UNSELECT_CATEGORY
559
+ Y.TOGGLE_CHECKBOX_SELECTION,
560
+ Y.SELECT_CATEGORY,
561
+ Y.UNSELECT_CATEGORY
568
562
  ],
569
563
  setup(e, { emit: t }) {
570
564
  const v = (i) => {
571
- t(F.TOGGLE_CHECKBOX_SELECTION, i);
565
+ t(Y.TOGGLE_CHECKBOX_SELECTION, i);
572
566
  }, p = (i) => !!i.items, n = (i) => {
573
- const d = e.isMultiLevel && e.searching;
574
- return i.description && (!e.isMultiLevel || d);
575
- }, b = (i) => i.items ? !!i.items.find((d) => e.selectedItemsList.includes(d.value)) : e.selectedItemsList.includes(i.value), r = (i, d) => {
576
- if (p(d))
577
- return t(i ? F.SELECT_CATEGORY : F.UNSELECT_CATEGORY, d);
578
- v(d.value);
567
+ const r = e.isMultiLevel && e.searching;
568
+ return i.description && (!e.isMultiLevel || r);
569
+ }, b = (i) => i.items ? !!i.items.find((r) => e.selectedItemsList.includes(r.value)) : e.selectedItemsList.includes(i.value), d = (i, r) => {
570
+ if (p(r))
571
+ return t(i ? Y.SELECT_CATEGORY : Y.UNSELECT_CATEGORY, r);
572
+ v(r.value);
579
573
  };
580
574
  return {
581
575
  // Values
@@ -587,60 +581,57 @@ const ft = x({
587
581
  isOptionSelected: b,
588
582
  shouldShowDescription: n,
589
583
  toggleCheckboxSelection: v,
590
- selectSearch: r,
584
+ selectSearch: d,
591
585
  // Enums
592
586
  BentoListboxEvent: o,
593
- BentoTypographyElement: te,
594
- ListboxMultiSelectOptionsEvent: F
587
+ ListboxMultiSelectOptionsEvent: Y
595
588
  };
596
589
  }
597
590
  });
598
- const yt = { class: "b-listbox-multi-select__option-text" }, Et = { class: "b-listbox-multi-select__option-text" };
599
- function St(e, t, v, p, n, b) {
600
- const r = S("bento-checkbox"), l = S("bento-typography"), i = S("bento-listbox-option"), d = S("listbox-multi-select-options", !0), E = S("listbox-multi-select-category");
601
- return g(), L("div", null, [
602
- (g(!0), L(se, null, q(e.items, (s) => (g(), L("div", {
591
+ const gt = { class: "b-listbox-multi-select__option-text" }, ft = { class: "b-listbox-multi-select__option-text" };
592
+ function Et(e, t, v, p, n, b) {
593
+ const d = S("bento-checkbox"), l = S("bento-typography"), i = S("bento-listbox-option"), r = S("listbox-multi-select-options", !0), y = S("listbox-multi-select-category");
594
+ return g(), O("div", null, [
595
+ (g(!0), O(te, null, W(e.items, (s) => (g(), O("div", {
603
596
  key: `selected-${s.value}`
604
597
  }, [
605
598
  e.searching && e.isMultiLevel ? (g(), I(i, {
606
599
  key: 0,
607
- class: ae(["b-listbox-multi-select-options", e.conditionalClasses]),
600
+ class: ie(["b-listbox-multi-select-options", e.conditionalClasses]),
608
601
  disabled: e.isOptionDisabled ? e.isOptionDisabled(s) : null
609
602
  }, {
610
603
  default: C(() => [
611
- A(r, {
604
+ L(d, {
612
605
  "model-value": e.isOptionSelected(s),
613
606
  "aria-label": s.label,
614
607
  disabled: e.isOptionDisabled ? e.isOptionDisabled(s) : null,
615
608
  value: s.value,
616
609
  "onUpdate:modelValue": (f) => e.selectSearch(f, s)
617
610
  }, null, 8, ["model-value", "aria-label", "disabled", "value", "onUpdate:modelValue"]),
618
- P(e.$slots, "default", K(H(s)), () => [
619
- $("span", yt, [
620
- A(l, {
621
- el: e.BentoTypographyElement.SPAN
622
- }, {
611
+ M(e.$slots, "default", F(K(s)), () => [
612
+ B("span", gt, [
613
+ L(l, { el: "span" }, {
623
614
  default: C(() => [
624
- N(B(s.label), 1)
615
+ D($(s.label), 1)
625
616
  ]),
626
617
  _: 2
627
- }, 1032, ["el"]),
618
+ }, 1024),
628
619
  e.shouldShowDescription(s) ? (g(), I(l, {
629
620
  key: 0,
630
621
  class: "b-listbox-multi-select__option-description",
631
- el: e.BentoTypographyElement.SPAN
622
+ el: "span"
632
623
  }, {
633
624
  default: C(() => [
634
- N(B(s.description), 1)
625
+ D($(s.description), 1)
635
626
  ]),
636
627
  _: 2
637
- }, 1032, ["el"])) : j("", !0)
628
+ }, 1024)) : j("", !0)
638
629
  ])
639
630
  ], !0)
640
631
  ]),
641
632
  _: 2
642
- }, 1032, ["class", "disabled"])) : (g(), L(se, { key: 1 }, [
643
- s.items ? (g(), I(E, {
633
+ }, 1032, ["class", "disabled"])) : (g(), O(te, { key: 1 }, [
634
+ s.items ? (g(), I(y, {
644
635
  key: 0,
645
636
  category: s,
646
637
  "is-option-disabled": e.isOptionDisabled,
@@ -649,7 +640,7 @@ function St(e, t, v, p, n, b) {
649
640
  onUnselectCategory: (f) => e.$emit(e.ListboxMultiSelectOptionsEvent.UNSELECT_CATEGORY, s)
650
641
  }, {
651
642
  default: C(() => [
652
- A(d, {
643
+ L(r, {
653
644
  "category-items": "",
654
645
  items: s.items,
655
646
  "is-option-disabled": e.isOptionDisabled,
@@ -662,37 +653,35 @@ function St(e, t, v, p, n, b) {
662
653
  _: 2
663
654
  }, 1032, ["category", "is-option-disabled", "selected-items-list", "onSelectCategory", "onUnselectCategory"])) : (g(), I(i, {
664
655
  key: 1,
665
- class: ae(["b-listbox-multi-select-options", e.conditionalClasses]),
656
+ class: ie(["b-listbox-multi-select-options", e.conditionalClasses]),
666
657
  disabled: e.isOptionDisabled ? e.isOptionDisabled(s) : null
667
658
  }, {
668
659
  default: C(() => [
669
- A(r, {
660
+ L(d, {
670
661
  "model-value": e.selectedItemsList,
671
662
  "aria-label": s.label,
672
663
  disabled: e.isOptionDisabled ? e.isOptionDisabled(s) : null,
673
664
  value: s.value,
674
665
  "onUpdate:modelValue": (f) => e.toggleCheckboxSelection(s.value)
675
666
  }, null, 8, ["model-value", "aria-label", "disabled", "value", "onUpdate:modelValue"]),
676
- P(e.$slots, "default", K(H(s)), () => [
677
- $("span", Et, [
678
- A(l, {
679
- el: e.BentoTypographyElement.SPAN
680
- }, {
667
+ M(e.$slots, "default", F(K(s)), () => [
668
+ B("span", ft, [
669
+ L(l, { el: "span" }, {
681
670
  default: C(() => [
682
- N(B(s.label), 1)
671
+ D($(s.label), 1)
683
672
  ]),
684
673
  _: 2
685
- }, 1032, ["el"]),
674
+ }, 1024),
686
675
  e.shouldShowDescription(s) ? (g(), I(l, {
687
676
  key: 0,
688
677
  class: "b-listbox-multi-select__option-description",
689
- el: e.BentoTypographyElement.SPAN
678
+ el: "span"
690
679
  }, {
691
680
  default: C(() => [
692
- N(B(s.description), 1)
681
+ D($(s.description), 1)
693
682
  ]),
694
683
  _: 2
695
- }, 1032, ["el"])) : j("", !0)
684
+ }, 1024)) : j("", !0)
696
685
  ])
697
686
  ], !0)
698
687
  ]),
@@ -702,22 +691,22 @@ function St(e, t, v, p, n, b) {
702
691
  ]))), 128))
703
692
  ]);
704
693
  }
705
- const Ct = /* @__PURE__ */ W(ft, [["render", St], ["__scopeId", "data-v-c471c1bc"]]), pe = {
694
+ const yt = /* @__PURE__ */ H(pt, [["render", Et], ["__scopeId", "data-v-55a6d406"]]), ve = {
706
695
  "en-US": {
707
696
  allSelected: "All selected ({total})",
708
697
  numberOfTotalSelected: "{number} of {total} selected",
709
698
  selectAll: "Select all ({total})"
710
699
  }
711
- }, _t = x({
712
- i18n: { messages: pe },
700
+ }, St = z({
701
+ i18n: { messages: ve },
713
702
  name: "bento-listbox-multi-select",
714
703
  components: {
715
- BentoCheckbox: be,
716
- BentoListboxOption: le,
704
+ BentoCheckbox: ue,
705
+ BentoListboxOption: se,
717
706
  BentoTypography: ee,
718
- ListboxMultiSelectOptions: Ct
707
+ ListboxMultiSelectOptions: yt
719
708
  },
720
- directives: { BentoKeyboardNavigationDirective: ce },
709
+ directives: { BentoKeyboardNavigationDirective: re },
721
710
  props: {
722
711
  /**
723
712
  * Function that allows the options to be disabled
@@ -761,8 +750,8 @@ const Ct = /* @__PURE__ */ W(ft, [["render", St], ["__scopeId", "data-v-c471c1bc
761
750
  },
762
751
  emits: [o.SELECT],
763
752
  setup(e, { emit: t, slots: v }) {
764
- const { t: p } = ue({ messages: pe }), n = R(null), b = R(null), r = R(null), l = R();
765
- Ke(
753
+ const { t: p } = ce({ messages: ve }), n = R(null), b = R(null), d = R(null), l = R();
754
+ Ye(
766
755
  () => e.selectedValues,
767
756
  () => {
768
757
  l.value = [...e.selectedValues ?? []];
@@ -771,13 +760,13 @@ const Ct = /* @__PURE__ */ W(ft, [["render", St], ["__scopeId", "data-v-c471c1bc
771
760
  immediate: !0
772
761
  }
773
762
  );
774
- const i = u(() => !!e.items.find(({ items: a }) => !!a)), d = u(() => i.value ? e.items.reduce((a, c) => (c.items ? a.push(...c.items.flat()) : a.push(c), a), []) : e.items), E = (a) => {
775
- var y;
776
- const c = e.isOptionDisabled(a), h = ((y = l.value) == null ? void 0 : y.includes(a.value)) || !1;
763
+ const i = u(() => !!e.items.find(({ items: a }) => !!a)), r = u(() => i.value ? e.items.reduce((a, c) => (c.items ? a.push(...c.items.flat()) : a.push(c), a), []) : e.items), y = (a) => {
764
+ var E;
765
+ const c = e.isOptionDisabled(a), h = ((E = l.value) == null ? void 0 : E.includes(a.value)) || !1;
777
766
  return { isDisabled: c, isPreSelected: h };
778
767
  }, s = u(
779
- () => e.searching && i ? e.items : d.value.filter((a) => {
780
- const { isDisabled: c, isPreSelected: h } = E(a);
768
+ () => e.searching && i ? e.items : r.value.filter((a) => {
769
+ const { isDisabled: c, isPreSelected: h } = y(a);
781
770
  return c && h || !c;
782
771
  })
783
772
  ), f = u(
@@ -786,147 +775,144 @@ const Ct = /* @__PURE__ */ W(ft, [["render", St], ["__scopeId", "data-v-c471c1bc
786
775
  return (a = s.value) == null ? void 0 : a.filter((c) => {
787
776
  var h;
788
777
  return c.items && i.value && e.searching ? c.items.filter(
789
- (Y) => (e.selectedValues ?? []).includes(
790
- Y.value
778
+ (x) => (e.selectedValues ?? []).includes(
779
+ x.value
791
780
  )
792
781
  ).length === c.items.length : (h = l.value) == null ? void 0 : h.includes(c.value);
793
782
  });
794
783
  }
795
- ), m = () => i.value && !e.searching ? s.value.length : e.items.length, O = u(() => {
784
+ ), m = () => i.value && !e.searching ? s.value.length : e.items.length, A = u(() => {
796
785
  var h;
797
786
  const a = m(), c = ((h = f.value) == null ? void 0 : h.length) || 0;
798
787
  return c === 0 ? p("selectAll", { total: a }) : c === a ? p("allSelected", { total: a }) : p("numberOfTotalSelected", { number: c, total: a });
799
788
  }), V = (a) => {
800
- const c = (y) => {
801
- const { isDisabled: Y, isPreSelected: ne } = E(y);
802
- return Y && ne || !Y;
803
- }, h = a.filter(c).filter((y) => !l.value.includes(y.value)).map(({ value: y }) => y);
789
+ const c = (E) => {
790
+ const { isDisabled: x, isPreSelected: oe } = y(E);
791
+ return x && oe || !x;
792
+ }, h = a.filter(c).filter((E) => !l.value.includes(E.value)).map(({ value: E }) => E);
804
793
  l.value = [...l.value, ...h], t(o.SELECT, l.value);
805
- }, M = (a) => {
806
- const c = (y) => {
807
- const { isDisabled: Y, isPreSelected: ne } = E(y);
808
- return !(Y && ne);
809
- }, h = a.filter(c).map(({ value: y }) => y);
810
- l.value = l.value.filter((y) => !(h != null && h.includes(y))), t(o.SELECT, l.value);
794
+ }, P = (a) => {
795
+ const c = (E) => {
796
+ const { isDisabled: x, isPreSelected: oe } = y(E);
797
+ return !(x && oe);
798
+ }, h = a.filter(c).map(({ value: E }) => E);
799
+ l.value = l.value.filter((E) => !(h != null && h.includes(E))), t(o.SELECT, l.value);
811
800
  }, _ = () => {
812
- V(d.value);
801
+ V(r.value);
813
802
  }, k = () => {
814
- M(d.value);
815
- }, { isAllSelected: T, isIndeterminate: G, toggleSelectAll: Te } = Se(
803
+ P(r.value);
804
+ }, { isAllSelected: T, isIndeterminate: G, toggleSelectAll: he } = ye(
816
805
  f,
817
806
  s,
818
807
  _,
819
808
  k
820
- ), Ae = (a) => {
809
+ ), Te = (a) => {
821
810
  V(a.items);
822
811
  }, Le = (a) => {
823
- M(a.items);
812
+ P(a.items);
824
813
  }, Oe = (a, c) => {
825
814
  let h = !1;
826
- l.value = l.value.filter((y) => c === y ? (h = !0, !1) : !0), h || l.value.push(c), t(a, l.value);
827
- }, oe = u(() => {
828
- const a = (y) => l.value.includes(y.value), c = (y) => !!y.find((Y) => a(Y));
829
- return e.items.filter((y) => y.items && c(y.items) ? !0 : a(y));
830
- }), Ie = u(() => {
815
+ l.value = l.value.filter((E) => c === E ? (h = !0, !1) : !0), h || l.value.push(c), t(a, l.value);
816
+ }, le = u(() => {
817
+ const a = (E) => l.value.includes(E.value), c = (E) => !!E.find((x) => a(x));
818
+ return e.items.filter((E) => E.items && c(E.items) ? !0 : a(E));
819
+ }), Ae = u(() => {
831
820
  var a;
832
- return ((a = oe.value) == null ? void 0 : a.length) > 0;
833
- }), Be = u(
821
+ return ((a = le.value) == null ? void 0 : a.length) > 0;
822
+ }), Ie = u(
834
823
  () => {
835
824
  var a, c;
836
- return ((a = f.value) == null ? void 0 : a.length) === ((c = d.value) == null ? void 0 : c.length);
825
+ return ((a = f.value) == null ? void 0 : a.length) === ((c = r.value) == null ? void 0 : c.length);
837
826
  }
838
827
  ), $e = u(
839
828
  () => n.value ? [n.value] : []
840
- ), ke = u(
829
+ ), Be = u(
841
830
  () => {
842
831
  var a, c;
843
832
  return (c = (a = b.value) == null ? void 0 : a.$children) != null && c.length ? b.value.$children : [];
844
833
  }
845
- ), Re = u(
834
+ ), ke = u(
846
835
  () => {
847
836
  var a, c;
848
- return (c = (a = r.value) == null ? void 0 : a.$children) != null && c.length ? r.value.$children : [];
837
+ return (c = (a = d.value) == null ? void 0 : a.$children) != null && c.length ? d.value.$children : [];
849
838
  }
850
- ), Ne = u(() => ({ label: O, value: T })), De = u(() => [
851
- Ne,
852
- ...oe.value,
853
- ...d.value
854
- ]), Pe = (a) => {
839
+ ), Re = u(() => ({ label: A, value: T })), De = u(() => [
840
+ Re,
841
+ ...le.value,
842
+ ...r.value
843
+ ]), Ne = (a) => {
855
844
  [
856
845
  ...$e.value,
857
- ...ke.value,
858
- ...Re.value
846
+ ...Be.value,
847
+ ...ke.value
859
848
  ][a].$el.focus();
860
- }, { moveToNextElement: Me, moveToPreviousElement: we, moveToFirstElement: Ue, moveToLastElement: Ve } = Ce(
849
+ }, { moveToNextElement: Me, moveToPreviousElement: Pe, moveToFirstElement: we, moveToLastElement: Ue } = Se(
861
850
  {
862
851
  items: R(De),
863
852
  isOptionDisabled: e.isOptionDisabled
864
853
  },
865
- Pe
866
- ), Ge = {
867
- [D.ARROW_UP]: we,
868
- [D.ARROW_DOWN]: Me,
869
- [D.HOME]: Ue,
870
- [D.END]: Ve
854
+ Ne
855
+ ), Ve = {
856
+ [N.ARROW_UP]: Pe,
857
+ [N.ARROW_DOWN]: Me,
858
+ [N.HOME]: we,
859
+ [N.END]: Ue
871
860
  };
872
861
  return {
873
862
  // Refs
874
863
  selectAllListboxItemsRef: n,
875
864
  selectedListboxItemsRef: b,
876
- listboxItemsRef: r,
865
+ listboxItemsRef: d,
877
866
  // Values
878
867
  isAllSelected: T,
879
- isAllItemsIncludingDisabled: Be,
880
- isAnOptionSelected: Ie,
868
+ isAllItemsIncludingDisabled: Ie,
869
+ isAnOptionSelected: Ae,
881
870
  isIndeterminate: G,
882
871
  isMultiLevelSelect: i,
883
- flattenedItemsList: d,
872
+ flattenedItemsList: r,
884
873
  selectedItemsList: l,
885
- selectAllCheckboxText: O,
886
- selectedOptions: oe,
874
+ selectAllCheckboxText: A,
875
+ selectedOptions: le,
887
876
  slots: v,
888
877
  // Enums
889
- BentoTypographyElement: te,
890
878
  BentoListboxEvent: o,
891
879
  // Methods
892
- selectAllCategory: Ae,
880
+ selectAllCategory: Te,
893
881
  toggleCheckboxSelection: Oe,
894
- toggleSelectAll: Te,
882
+ toggleSelectAll: he,
895
883
  unselectAllCategory: Le,
896
884
  // Events
897
- listboxListeners: Ge
885
+ listboxListeners: Ve
898
886
  };
899
887
  }
900
888
  });
901
- const he = (e) => (ye("data-v-35f1a677"), e = e(), Ee(), e), ht = { key: 0 }, Tt = /* @__PURE__ */ he(() => /* @__PURE__ */ $("hr", { class: "b-listbox-multi-select__divider" }, null, -1)), At = /* @__PURE__ */ he(() => /* @__PURE__ */ $("hr", { class: "b-listbox-multi-select__divider" }, null, -1));
902
- function Lt(e, t, v, p, n, b) {
903
- const r = S("bento-checkbox"), l = S("bento-typography"), i = S("bento-listbox-option"), d = S("listbox-multi-select-options"), E = de("bento-keyboard-navigation-directive");
904
- return X((g(), L("div", U({ class: "b-listbox-multi-select" }, J(e.listboxListeners, !0)), [
905
- A(i, {
889
+ const _e = (e) => (fe("data-v-8c62bb32"), e = e(), Ee(), e), Ct = { key: 0 }, _t = /* @__PURE__ */ _e(() => /* @__PURE__ */ B("hr", { class: "b-listbox-multi-select__divider" }, null, -1)), ht = /* @__PURE__ */ _e(() => /* @__PURE__ */ B("hr", { class: "b-listbox-multi-select__divider" }, null, -1));
890
+ function Tt(e, t, v, p, n, b) {
891
+ const d = S("bento-checkbox"), l = S("bento-typography"), i = S("bento-listbox-option"), r = S("listbox-multi-select-options"), y = de("bento-keyboard-navigation-directive");
892
+ return X((g(), O("div", U({ class: "b-listbox-multi-select" }, J(e.listboxListeners, !0)), [
893
+ L(i, {
906
894
  ref: "selectAllListboxItemsRef",
907
895
  class: "b-listbox-multi-select__option"
908
896
  }, {
909
897
  default: C(() => [
910
- A(r, {
898
+ L(d, {
911
899
  "aria-label": e.selectAllCheckboxText,
912
900
  "model-value": e.isAllSelected,
913
901
  indeterminate: e.isIndeterminate,
914
902
  "onUpdate:modelValue": e.toggleSelectAll
915
903
  }, null, 8, ["aria-label", "model-value", "indeterminate", "onUpdate:modelValue"]),
916
- A(l, {
917
- el: e.BentoTypographyElement.SPAN
918
- }, {
904
+ L(l, { el: "span" }, {
919
905
  default: C(() => [
920
- N(B(e.selectAllCheckboxText), 1)
906
+ D($(e.selectAllCheckboxText), 1)
921
907
  ]),
922
908
  _: 1
923
- }, 8, ["el"])
909
+ })
924
910
  ]),
925
911
  _: 1
926
912
  }, 512),
927
- e.isAnOptionSelected ? (g(), L("div", ht, [
928
- Tt,
929
- A(d, U({
913
+ e.isAnOptionSelected ? (g(), O("div", Ct, [
914
+ _t,
915
+ L(r, U({
930
916
  ref: "selectedListboxItemsRef",
931
917
  items: e.selectedOptions,
932
918
  "is-option-disabled": e.isOptionDisabled,
@@ -943,17 +929,17 @@ function Lt(e, t, v, p, n, b) {
943
929
  }, {
944
930
  [w(e.BentoListboxEvent.ENTER)]: t[3] || (t[3] = (s) => e.toggleCheckboxSelection(e.BentoListboxEvent.ENTER, s))
945
931
  }), Q({ _: 2 }, [
946
- q(e.slots, (s, f) => ({
932
+ W(e.slots, (s, f) => ({
947
933
  name: f,
948
934
  fn: C((m) => [
949
- P(e.$slots, f, K(H(m)), void 0, !0)
935
+ M(e.$slots, f, F(K(m)), void 0, !0)
950
936
  ])
951
937
  }))
952
938
  ]), 1040, ["items", "is-option-disabled", "is-multi-level", "searching", "selected-items-list", "onSelectCategory", "onUnselectCategory"])
953
939
  ])) : j("", !0),
954
- X($("div", null, [
955
- At,
956
- A(d, U({
940
+ X(B("div", null, [
941
+ ht,
942
+ L(r, U({
957
943
  ref: "listboxItemsRef",
958
944
  items: e.items,
959
945
  "is-option-disabled": e.isOptionDisabled,
@@ -970,36 +956,36 @@ function Lt(e, t, v, p, n, b) {
970
956
  }, {
971
957
  [w(e.BentoListboxEvent.ENTER)]: t[7] || (t[7] = (s) => e.toggleCheckboxSelection(e.BentoListboxEvent.ENTER, s))
972
958
  }), Q({ _: 2 }, [
973
- q(e.slots, (s, f) => ({
959
+ W(e.slots, (s, f) => ({
974
960
  name: f,
975
961
  fn: C((m) => [
976
- P(e.$slots, f, K(H(m)), void 0, !0)
962
+ M(e.$slots, f, F(K(m)), void 0, !0)
977
963
  ])
978
964
  }))
979
965
  ]), 1040, ["items", "is-option-disabled", "is-multi-level", "searching", "selected-items-list", "onSelectCategory", "onUnselectCategory"])
980
966
  ], 512), [
981
- [re, !e.isAllItemsIncludingDisabled]
967
+ [ae, !e.isAllItemsIncludingDisabled]
982
968
  ])
983
969
  ], 16)), [
984
- [E]
970
+ [y]
985
971
  ]);
986
972
  }
987
- const ge = /* @__PURE__ */ W(_t, [["render", Lt], ["__scopeId", "data-v-35f1a677"]]), fe = {
973
+ const pe = /* @__PURE__ */ H(St, [["render", Tt], ["__scopeId", "data-v-8c62bb32"]]), ge = {
988
974
  "en-US": {
989
975
  showMore: "Show more",
990
976
  loading: "Loading"
991
977
  }
992
- }, Ot = x({
978
+ }, Lt = z({
993
979
  name: "bento-listbox",
994
980
  components: {
995
- BentoListboxSingleSelect: ut,
996
- BentoListboxMultiSelect: ge,
981
+ BentoListboxSingleSelect: rt,
982
+ BentoListboxMultiSelect: pe,
997
983
  BentoTypography: ee,
998
- BentoLoadingIndicator: We,
999
- BentoLoadingButton: je
984
+ BentoLoadingIndicator: Ke,
985
+ BentoLoadingButton: ze
1000
986
  },
1001
- directives: { BentoKeyboardNavigationDirective: ce },
1002
- i18n: { messages: fe },
987
+ directives: { BentoKeyboardNavigationDirective: re },
988
+ i18n: { messages: ge },
1003
989
  props: {
1004
990
  /**
1005
991
  * Defines a string value that labels an interactive element.
@@ -1048,8 +1034,8 @@ const ge = /* @__PURE__ */ W(_t, [["render", Lt], ["__scopeId", "data-v-35f1a677
1048
1034
  */
1049
1035
  lazyLoadType: {
1050
1036
  type: String,
1051
- default: z.NONE,
1052
- validator: (e) => Object.values(z).includes(e)
1037
+ default: q.NONE,
1038
+ validator: (e) => Object.values(q).includes(e)
1053
1039
  },
1054
1040
  /**
1055
1041
  * If enabled, the user will be able to select multiple items.
@@ -1065,7 +1051,7 @@ const ge = /* @__PURE__ */ W(_t, [["render", Lt], ["__scopeId", "data-v-35f1a677
1065
1051
  *
1066
1052
  * If enabled, hides the "Select all" checkbox in "multiple" mode.
1067
1053
  */
1068
- searching: ge.props.searching,
1054
+ searching: pe.props.searching,
1069
1055
  /**
1070
1056
  * The `input` value.
1071
1057
  * Providing an empty string or empty array will select no options.
@@ -1085,26 +1071,26 @@ const ge = /* @__PURE__ */ W(_t, [["render", Lt], ["__scopeId", "data-v-35f1a677
1085
1071
  o.TAB
1086
1072
  ],
1087
1073
  setup(e, { emit: t, slots: v }) {
1088
- const { t: p } = ue({ messages: fe }), n = R(null), b = R([]), r = u(() => e.lazyLoadType !== z.AUTOMATIC), l = u(() => e.lazyLoadType === z.AUTOMATIC), i = u(
1089
- () => r.value ? "true" : void 0
1090
- ), d = u(
1091
- () => r.value && e.loading ? "true" : "false"
1092
- ), E = u(
1093
- () => r.value ? "polite" : void 0
1074
+ const { t: p } = ce({ messages: ge }), n = R(null), b = R([]), d = u(() => e.lazyLoadType !== q.AUTOMATIC), l = u(() => e.lazyLoadType === q.AUTOMATIC), i = u(
1075
+ () => d.value ? "true" : void 0
1076
+ ), r = u(
1077
+ () => d.value && e.loading ? "true" : "false"
1078
+ ), y = u(
1079
+ () => d.value ? "polite" : void 0
1094
1080
  ), s = (T) => (G) => {
1095
1081
  t(T, G);
1096
1082
  }, f = () => {
1097
1083
  t(o.SHOW_MORE);
1098
- }, m = He(() => {
1084
+ }, m = Fe(() => {
1099
1085
  const T = n.value, G = T.scrollTop + T.clientHeight >= T.scrollHeight;
1100
1086
  e.hasMoreItems && G && !e.loading && f();
1101
- }), O = u(() => {
1087
+ }), A = u(() => {
1102
1088
  var T;
1103
1089
  return e.searching && ((T = e.items) == null ? void 0 : T.length) === 0;
1104
1090
  }), V = u(
1105
- () => e.lazyLoadType === z.BUTTON && e.hasMoreItems
1106
- ), M = u(
1107
- () => e.loading ? me.LOADING : me.START
1091
+ () => e.lazyLoadType === q.BUTTON && e.hasMoreItems
1092
+ ), P = u(
1093
+ () => e.loading ? be.LOADING : be.START
1108
1094
  ), _ = u(() => e.loading ? p("loading") : p("showMore")), k = {
1109
1095
  [o.SELECT]: s(o.SELECT),
1110
1096
  [o.SPACE]: s(o.SPACE),
@@ -1117,20 +1103,17 @@ const ge = /* @__PURE__ */ W(_t, [["render", Lt], ["__scopeId", "data-v-35f1a677
1117
1103
  listboxItemRef: b,
1118
1104
  // a11y
1119
1105
  ariaAtomic: i,
1120
- ariaBusy: d,
1121
- ariaLive: E,
1106
+ ariaBusy: r,
1107
+ ariaLive: y,
1122
1108
  // Values
1123
1109
  hasAutomaticLazyLoader: l,
1124
- isSearchResultEmpty: O,
1125
- loadingButtonState: M,
1110
+ isSearchResultEmpty: A,
1111
+ loadingButtonState: P,
1126
1112
  slots: v,
1127
1113
  shouldDisplayShowMoreButton: V,
1128
1114
  showMoreButtonText: _,
1129
1115
  // Enums
1130
- BentoTypographyElement: te,
1131
- BentoButtonVariant: ze,
1132
- BentoListboxLazyLoadType: z,
1133
- BentoKeyboardNavigationKeyDownEvent: D,
1116
+ BentoKeyboardNavigationKeyDownEvent: N,
1134
1117
  BentoListboxEvent: o,
1135
1118
  // Methods
1136
1119
  onOptionSelected: s,
@@ -1140,19 +1123,19 @@ const ge = /* @__PURE__ */ W(_t, [["render", Lt], ["__scopeId", "data-v-35f1a677
1140
1123
  };
1141
1124
  }
1142
1125
  });
1143
- const It = ["id", "aria-busy", "aria-atomic", "aria-label", "aria-live"], Bt = {
1126
+ const Ot = ["id", "aria-busy", "aria-atomic", "aria-label", "aria-live"], At = {
1144
1127
  key: 0,
1145
1128
  class: "b-listbox__empty-search-message"
1146
- }, $t = {
1129
+ }, It = {
1147
1130
  key: 2,
1148
1131
  class: "b-listbox__lazy-load"
1149
- }, kt = {
1132
+ }, $t = {
1150
1133
  key: 3,
1151
1134
  class: "b-listbox__lazy-load"
1152
1135
  };
1153
- function Rt(e, t, v, p, n, b) {
1154
- const r = S("bento-typography"), l = S("bento-listbox-multi-select"), i = S("bento-listbox-single-select"), d = S("bento-loading-button"), E = S("bento-loading-indicator"), s = de("bento-keyboard-navigation-directive");
1155
- return X((g(), L("div", {
1136
+ function Bt(e, t, v, p, n, b) {
1137
+ const d = S("bento-typography"), l = S("bento-listbox-multi-select"), i = S("bento-listbox-single-select"), r = S("bento-loading-button"), y = S("bento-loading-indicator"), s = de("bento-keyboard-navigation-directive");
1138
+ return X((g(), O("div", {
1156
1139
  id: e.id,
1157
1140
  ref: "listboxRef",
1158
1141
  class: "b-listbox",
@@ -1164,16 +1147,14 @@ function Rt(e, t, v, p, n, b) {
1164
1147
  "aria-live": e.ariaLive,
1165
1148
  onScroll: t[0] || (t[0] = () => e.hasAutomaticLazyLoader ? e.emitShowMoreOnScrollEnd() : void 0)
1166
1149
  }, [
1167
- e.isSearchResultEmpty ? (g(), L("div", Bt, [
1168
- A(r, {
1169
- el: e.BentoTypographyElement.SPAN
1170
- }, {
1150
+ e.isSearchResultEmpty ? (g(), O("div", At, [
1151
+ L(d, { el: "span" }, {
1171
1152
  default: C(() => [
1172
- N(B(e.noResultsMessage), 1)
1153
+ D($(e.noResultsMessage), 1)
1173
1154
  ]),
1174
1155
  _: 1
1175
- }, 8, ["el"])
1176
- ])) : (g(), L(se, { key: 1 }, [
1156
+ })
1157
+ ])) : (g(), O(te, { key: 1 }, [
1177
1158
  e.multiple ? (g(), I(l, U({
1178
1159
  key: 0,
1179
1160
  ref: "listboxItemRef",
@@ -1182,10 +1163,10 @@ function Rt(e, t, v, p, n, b) {
1182
1163
  searching: e.searching,
1183
1164
  "is-option-disabled": e.isOptionDisabled
1184
1165
  }, J(e.listboxListeners)), Q({ _: 2 }, [
1185
- q(e.slots, (f, m) => ({
1166
+ W(e.slots, (f, m) => ({
1186
1167
  name: m,
1187
- fn: C((O) => [
1188
- P(e.$slots, m, K(H(O)), void 0, !0)
1168
+ fn: C((A) => [
1169
+ M(e.$slots, m, F(K(A)), void 0, !0)
1189
1170
  ])
1190
1171
  }))
1191
1172
  ]), 1040, ["items", "selected-values", "searching", "is-option-disabled"])) : (g(), I(i, U({
@@ -1195,37 +1176,37 @@ function Rt(e, t, v, p, n, b) {
1195
1176
  "selected-value": e.selectedValue,
1196
1177
  "is-option-disabled": e.isOptionDisabled
1197
1178
  }, J(e.listboxListeners)), Q({ _: 2 }, [
1198
- q(e.slots, (f, m) => ({
1179
+ W(e.slots, (f, m) => ({
1199
1180
  name: m,
1200
- fn: C((O) => [
1201
- P(e.$slots, m, K(H(O)), void 0, !0)
1181
+ fn: C((A) => [
1182
+ M(e.$slots, m, F(K(A)), void 0, !0)
1202
1183
  ])
1203
1184
  }))
1204
1185
  ]), 1040, ["items", "selected-value", "is-option-disabled"])),
1205
- e.shouldDisplayShowMoreButton ? (g(), L("div", $t, [
1206
- A(d, {
1186
+ e.shouldDisplayShowMoreButton ? (g(), O("div", It, [
1187
+ L(r, {
1207
1188
  state: e.loadingButtonState,
1208
- variant: e.BentoButtonVariant.SECONDARY,
1209
- onClick: e.emitShowMore
1189
+ variant: "secondary",
1190
+ onClickCapture: e.emitShowMore
1210
1191
  }, {
1211
1192
  default: C(() => [
1212
- N(B(e.showMoreButtonText), 1)
1193
+ D($(e.showMoreButtonText), 1)
1213
1194
  ]),
1214
1195
  _: 1
1215
- }, 8, ["state", "variant", "onClick"])
1216
- ])) : e.loading ? (g(), L("div", kt, [
1217
- A(E)
1196
+ }, 8, ["state", "onClickCapture"])
1197
+ ])) : e.loading ? (g(), O("div", $t, [
1198
+ L(y)
1218
1199
  ])) : j("", !0)
1219
1200
  ], 64))
1220
- ], 40, It)), [
1201
+ ], 40, Ot)), [
1221
1202
  [s]
1222
1203
  ]);
1223
1204
  }
1224
- const Kt = /* @__PURE__ */ W(Ot, [["render", Rt], ["__scopeId", "data-v-6175f9ff"]]);
1205
+ const Gt = /* @__PURE__ */ H(Lt, [["render", Bt], ["__scopeId", "data-v-336a01a3"]]);
1225
1206
  export {
1226
- Kt as B,
1227
- lt as C,
1207
+ Gt as B,
1208
+ tt as C,
1228
1209
  o as a,
1229
- z as b
1210
+ q as b
1230
1211
  };
1231
- //# sourceMappingURL=listbox.0c7c4e5e.js.map
1212
+ //# sourceMappingURL=listbox.6b52af1a.js.map