@adyen/bento-vue2 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 (363) 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 -51
  6. package/dist/@types/packages/vue2/src/components/accordion/components/accordion-item.vue.d.ts +24 -28
  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 +161 -150
  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 +77 -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 +4 -6
  17. package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +4 -4
  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 +36 -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 +2 -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 +326 -14
  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 +1 -21
  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 +1 -21
  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 +277 -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-avatar/dropdown-avatar.vue.d.ts +5 -5
  36. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.types.d.ts +1 -1
  37. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +5 -6
  38. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.types.d.ts +1 -1
  39. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +5 -5
  40. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.types.d.ts +1 -1
  41. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +5 -5
  42. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.types.d.ts +1 -1
  43. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +6 -6
  44. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +7 -9
  45. package/dist/@types/packages/vue2/src/components/empty-state/empty-state.types.d.ts +27 -0
  46. package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +76 -0
  47. package/dist/@types/packages/vue2/src/components/empty-state/index.d.ts +2 -0
  48. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +19 -25
  49. 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
  50. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +0 -26
  51. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter-button/base-filter-button.vue.d.ts +1 -4
  52. package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +0 -10
  53. package/dist/@types/packages/vue2/src/components/filter-bar/components/{base-filter/components/filter-bar-filter-button/filter-bar-filter-button.vue.d.ts → filter-bar-button/filter-bar-button.vue.d.ts} +17 -22
  54. package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/index.d.ts +1 -0
  55. package/dist/@types/packages/vue2/src/components/filter-bar/components/input-filter/input-filter.vue.d.ts +1 -0
  56. package/dist/@types/packages/vue2/src/components/filter-bar/components/range-filter/range-filter.vue.d.ts +0 -2
  57. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +2 -4
  58. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +2 -4
  59. package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.vue.d.ts +0 -2
  60. package/dist/@types/packages/vue2/src/components/focus-trap/focus-trap.vue.d.ts +3 -0
  61. package/dist/@types/packages/vue2/src/components/header/header.vue.d.ts +0 -2
  62. package/dist/@types/packages/vue2/src/components/image/const.d.ts +1 -0
  63. package/dist/@types/packages/vue2/src/components/image/image.types.d.ts +19 -0
  64. package/dist/@types/packages/vue2/src/components/image/image.vue.d.ts +50 -0
  65. package/dist/@types/packages/vue2/src/components/image/index.d.ts +1 -0
  66. package/dist/@types/packages/vue2/src/components/info-icon/info-icon.vue.d.ts +3 -3
  67. package/dist/@types/packages/vue2/src/components/input-field/input-field.types.d.ts +1 -0
  68. package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +50 -47
  69. package/dist/@types/packages/vue2/src/components/internal/avatar/avatar.vue.d.ts +0 -3
  70. package/dist/@types/packages/vue2/src/components/internal/base-button/base-button.vue.d.ts +1 -4
  71. package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/calendar-month.vue.d.ts +0 -5
  72. package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/components/calendar-month-day/__test__/calendar-month-day-stub.vue.d.ts +1 -1
  73. package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/components/calendar-month-day/calendar-month-day.vue.d.ts +2 -2
  74. package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +1 -1
  75. package/dist/@types/packages/vue2/src/components/internal/copy/copy.vue.d.ts +0 -2
  76. 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
  77. 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
  78. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +0 -2
  79. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-option-tag/listbox-option-tag.vue.d.ts +0 -2
  80. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select-option/listbox-single-select-option.vue.d.ts +0 -2
  81. package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +3 -7
  82. package/dist/@types/packages/vue2/src/components/link/link.vue.d.ts +4 -0
  83. package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.vue.d.ts +2 -5
  84. package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +6 -31
  85. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/__mocks__/base-modal.vue.d.ts +0 -5
  86. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +14 -9
  87. package/dist/@types/packages/vue2/src/components/modal/components/modal-default/modal-default.vue.d.ts +2 -2
  88. package/dist/@types/packages/vue2/src/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +4 -14
  89. package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +7 -6
  90. package/dist/@types/packages/vue2/src/components/pagination/components/pagination-context/pagination-context.vue.d.ts +0 -2
  91. package/dist/@types/packages/vue2/src/components/pagination/components/pagination-controls/pagination-controls.vue.d.ts +0 -2
  92. package/dist/@types/packages/vue2/src/components/pagination/components/pagination-results-per-page/pagination-results-per-page.vue.d.ts +0 -2
  93. package/dist/@types/packages/vue2/src/components/pagination/pagination.vue.d.ts +2 -1
  94. package/dist/@types/packages/vue2/src/components/payment-method/payment-method.vue.d.ts +0 -2
  95. package/dist/@types/packages/vue2/src/components/popover/components/popover-dismiss-button/popover-dismiss-button.vue.d.ts +0 -2
  96. package/dist/@types/packages/vue2/src/components/popover/components/popover-title/popover-title.vue.d.ts +1 -2
  97. package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +9 -9
  98. package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +5 -14
  99. package/dist/@types/packages/vue2/src/components/radio-group/components/radio-button/radio-button.vue.d.ts +4 -6
  100. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.types.d.ts +2 -1
  101. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +4 -4
  102. package/dist/@types/packages/vue2/src/components/search-bar/search-bar.vue.d.ts +16 -339
  103. package/dist/@types/packages/vue2/src/components/segmented-control/components/segmented-control-button/segmented-control-button.vue.d.ts +0 -3
  104. package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.vue.d.ts +1 -0
  105. package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.types.d.ts +3 -1
  106. package/dist/@types/packages/vue2/src/components/status/status.vue.d.ts +2 -5
  107. package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +0 -2
  108. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +2 -23
  109. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +2 -5
  110. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-numeric/summary-grid-item-numeric.vue.d.ts +2 -5
  111. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-percentage/summary-grid-item-percentage.vue.d.ts +2 -5
  112. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-text/summary-grid-item-text.vue.d.ts +1 -4
  113. package/dist/@types/packages/vue2/src/components/tabs/components/tab.types.d.ts +3 -1
  114. package/dist/@types/packages/vue2/src/components/tabs/components/tab.vue.d.ts +1 -0
  115. package/dist/@types/packages/vue2/src/components/tabs/tabs.keys.d.ts +1 -0
  116. package/dist/@types/packages/vue2/src/components/tabs/tabs.types.d.ts +6 -2
  117. package/dist/@types/packages/vue2/src/components/tabs/tabs.vue.d.ts +4 -9
  118. package/dist/@types/packages/vue2/src/components/tag/tag.vue.d.ts +4 -7
  119. package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +5 -9
  120. package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +6 -12
  121. package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +1 -0
  122. package/dist/@types/packages/vue2/src/components/toast/components/toast-item/toast-item.vue.d.ts +0 -5
  123. package/dist/@types/packages/vue2/src/components/toggle/toggle.vue.d.ts +4 -6
  124. package/dist/@types/packages/vue2/src/components/tooltip/tooltip.vue.d.ts +24 -40
  125. package/dist/@types/packages/vue2/src/composables/use-default-slot-validator/use-default-slot-validator.d.ts +2 -1
  126. package/dist/@types/packages/vue2/src/composables/use-has-slot/use-has-slot.d.ts +4 -1
  127. package/dist/@types/packages/vue2/src/index.d.ts +3 -0
  128. package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.vue.d.ts +9 -0
  129. package/dist/@types/packages/vue2/src/utils/ts/print-development-warning.d.ts +1 -0
  130. package/dist/accordion.js +69 -177
  131. package/dist/accordion.js.map +1 -1
  132. package/dist/alert.js +57 -60
  133. package/dist/alert.js.map +1 -1
  134. package/dist/assets/base-button.css +1 -1
  135. package/dist/assets/base-modal.css +1 -0
  136. package/dist/assets/button.css +1 -1
  137. package/dist/assets/calendar.css +1 -1
  138. package/dist/assets/checkbox.css +1 -1
  139. package/dist/assets/chevron-up.css +1 -0
  140. package/dist/assets/controls-group.css +1 -1
  141. package/dist/assets/copy.css +1 -1
  142. package/dist/assets/dropdown-default-textbox.css +1 -1
  143. package/dist/assets/dropdown.css +1 -1
  144. package/dist/assets/error-message.css +1 -1
  145. package/dist/assets/footer-actions.css +1 -1
  146. package/dist/assets/index.css +1 -1
  147. package/dist/assets/index10.css +1 -1
  148. package/dist/assets/index11.css +1 -1
  149. package/dist/assets/index12.css +1 -1
  150. package/dist/assets/index13.css +1 -1
  151. package/dist/assets/index14.css +1 -1
  152. package/dist/assets/index15.css +1 -1
  153. package/dist/assets/index16.css +1 -1
  154. package/dist/assets/index17.css +1 -1
  155. package/dist/assets/index18.css +1 -1
  156. package/dist/assets/index19.css +1 -1
  157. package/dist/assets/index2.css +1 -1
  158. package/dist/assets/index20.css +1 -1
  159. package/dist/assets/index21.css +1 -1
  160. package/dist/assets/index22.css +1 -1
  161. package/dist/assets/index23.css +1 -1
  162. package/dist/assets/index24.css +1 -1
  163. package/dist/assets/index25.css +1 -1
  164. package/dist/assets/index26.css +1 -1
  165. package/dist/assets/index27.css +1 -1
  166. package/dist/assets/index28.css +1 -1
  167. package/dist/assets/index29.css +1 -1
  168. package/dist/assets/index3.css +1 -1
  169. package/dist/assets/index30.css +1 -1
  170. package/dist/assets/index31.css +1 -1
  171. package/dist/assets/index32.css +1 -1
  172. package/dist/assets/index33.css +1 -1
  173. package/dist/assets/index34.css +1 -1
  174. package/dist/assets/index35.css +1 -1
  175. package/dist/assets/index36.css +1 -1
  176. package/dist/assets/index37.css +1 -1
  177. package/dist/assets/index38.css +1 -1
  178. package/dist/assets/index39.css +1 -1
  179. package/dist/assets/index4.css +1 -1
  180. package/dist/assets/index40.css +1 -1
  181. package/dist/assets/index41.css +1 -1
  182. package/dist/assets/index42.css +1 -0
  183. package/dist/assets/index5.css +1 -1
  184. package/dist/assets/index6.css +1 -1
  185. package/dist/assets/index7.css +1 -1
  186. package/dist/assets/index8.css +1 -1
  187. package/dist/assets/index9.css +1 -1
  188. package/dist/assets/listbox-option-tag.css +1 -1
  189. package/dist/assets/listbox.css +1 -1
  190. package/dist/assets/loading-button.css +1 -1
  191. package/dist/assets/tooltip.css +1 -1
  192. package/dist/avatar-image.js +1 -1
  193. package/dist/badge.js +2 -2
  194. package/dist/button.js +110 -12
  195. package/dist/button.js.map +1 -1
  196. package/dist/card.js +66 -67
  197. package/dist/card.js.map +1 -1
  198. package/dist/checkbox.js +27 -26
  199. package/dist/checkbox.js.map +1 -1
  200. package/dist/chunks/{base-button.98379576.js → base-button.bd8fa976.js} +24 -27
  201. package/dist/chunks/base-button.bd8fa976.js.map +1 -0
  202. package/dist/chunks/base-modal.a365f260.js +207 -0
  203. package/dist/chunks/base-modal.a365f260.js.map +1 -0
  204. package/dist/chunks/{button.d0c9527d.js → button.fb307df3.js} +36 -39
  205. package/dist/chunks/button.fb307df3.js.map +1 -0
  206. package/dist/chunks/{calendar.0ae43a96.js → calendar.79ea42c1.js} +214 -217
  207. package/dist/chunks/calendar.79ea42c1.js.map +1 -0
  208. package/dist/chunks/checkbox.c7d791ed.js +173 -0
  209. package/dist/chunks/checkbox.c7d791ed.js.map +1 -0
  210. package/dist/chunks/{chevron-down.b851a6da.js → chevron-up.674ec2e5.js} +8 -8
  211. package/dist/chunks/chevron-up.674ec2e5.js.map +1 -0
  212. package/dist/chunks/{controls-group.b827382b.js → controls-group.5d3e04dd.js} +20 -20
  213. package/dist/chunks/controls-group.5d3e04dd.js.map +1 -0
  214. package/dist/chunks/{copy.5a4cbd4d.js → copy.ac796536.js} +37 -38
  215. package/dist/chunks/copy.ac796536.js.map +1 -0
  216. package/dist/chunks/{dropdown-default-textbox.819e43f7.js → dropdown-default-textbox.109c36d2.js} +38 -40
  217. package/dist/chunks/dropdown-default-textbox.109c36d2.js.map +1 -0
  218. package/dist/chunks/{dropdown.c05678d0.js → dropdown.fd93f0ce.js} +351 -335
  219. package/dist/chunks/dropdown.fd93f0ce.js.map +1 -0
  220. package/dist/chunks/error-message.3b3c33d4.js +47 -0
  221. package/dist/chunks/error-message.3b3c33d4.js.map +1 -0
  222. package/dist/chunks/{footer-actions.67642347.js → footer-actions.f02e8699.js} +23 -23
  223. package/dist/chunks/footer-actions.f02e8699.js.map +1 -0
  224. package/dist/chunks/get-slot-text.c1114034.js +9 -0
  225. package/dist/chunks/get-slot-text.c1114034.js.map +1 -0
  226. package/dist/chunks/{grid-layout.73f23b1b.js → grid-layout.b7e0d964.js} +2 -2
  227. package/dist/chunks/{grid-layout.73f23b1b.js.map → grid-layout.b7e0d964.js.map} +1 -1
  228. package/dist/chunks/{index.56858f4e.js → index.45295dd3.js} +23 -19
  229. package/dist/chunks/index.45295dd3.js.map +1 -0
  230. package/dist/chunks/{index.10aaf539.js → index.88ff49c2.js} +136 -142
  231. package/dist/chunks/index.88ff49c2.js.map +1 -0
  232. package/dist/chunks/{index.73d50fa6.js → index.9902cae4.js} +65 -68
  233. package/dist/chunks/{index.73d50fa6.js.map → index.9902cae4.js.map} +1 -1
  234. package/dist/chunks/{index.0cf00b47.js → index.bd734551.js} +35 -37
  235. package/dist/chunks/index.bd734551.js.map +1 -0
  236. package/dist/chunks/{index.133e4da0.js → index.c85a1ab9.js} +81 -79
  237. package/dist/chunks/{index.133e4da0.js.map → index.c85a1ab9.js.map} +1 -1
  238. package/dist/chunks/{index.f0f8ed98.js → index.c8f81673.js} +23 -26
  239. package/dist/chunks/index.c8f81673.js.map +1 -0
  240. package/dist/chunks/{listbox-option-tag.8d6cccac.js → listbox-option-tag.ec42431b.js} +32 -36
  241. package/dist/chunks/listbox-option-tag.ec42431b.js.map +1 -0
  242. package/dist/chunks/{listbox.116ed0c1.js → listbox.e792d2d6.js} +244 -251
  243. package/dist/chunks/listbox.e792d2d6.js.map +1 -0
  244. package/dist/chunks/loading-button.429c8416.js +86 -0
  245. package/dist/chunks/loading-button.429c8416.js.map +1 -0
  246. package/dist/chunks/tabs.keys.358742f2.js +7 -0
  247. package/dist/chunks/tabs.keys.358742f2.js.map +1 -0
  248. package/dist/chunks/{tooltip.2aff4fa6.js → tooltip.a47ace87.js} +49 -52
  249. package/dist/chunks/tooltip.a47ace87.js.map +1 -0
  250. package/dist/chunks/use-default-slot-validator.cbdfe693.js +13 -0
  251. package/dist/chunks/use-default-slot-validator.cbdfe693.js.map +1 -0
  252. package/dist/chunks/use-has-slot.6052d56a.js +6 -0
  253. package/dist/chunks/use-has-slot.6052d56a.js.map +1 -0
  254. package/dist/code-snippet.js +469 -413
  255. package/dist/code-snippet.js.map +1 -1
  256. package/dist/country.js +492 -494
  257. package/dist/country.js.map +1 -1
  258. package/dist/currency.js +32 -35
  259. package/dist/currency.js.map +1 -1
  260. package/dist/data-grid.js +595 -603
  261. package/dist/data-grid.js.map +1 -1
  262. package/dist/date-picker.js +76 -80
  263. package/dist/date-picker.js.map +1 -1
  264. package/dist/date-range-picker.js +2 -2
  265. package/dist/date.js +1 -1
  266. package/dist/divider.js +1 -1
  267. package/dist/dropdown.js +37 -39
  268. package/dist/dropdown.js.map +1 -1
  269. package/dist/empty-state.js +134 -0
  270. package/dist/empty-state.js.map +1 -0
  271. package/dist/filter-bar.js +648 -638
  272. package/dist/filter-bar.js.map +1 -1
  273. package/dist/focus-trap.js +1 -1
  274. package/dist/form-layout.js +64 -64
  275. package/dist/form-layout.js.map +1 -1
  276. package/dist/header.js +61 -63
  277. package/dist/header.js.map +1 -1
  278. package/dist/image.js +82 -0
  279. package/dist/image.js.map +1 -0
  280. package/dist/index.js +216 -205
  281. package/dist/index.js.map +1 -1
  282. package/dist/info-icon.js +2 -2
  283. package/dist/input-field.js +99 -123
  284. package/dist/input-field.js.map +1 -1
  285. package/dist/internal.js +7 -7
  286. package/dist/link.js +27 -26
  287. package/dist/link.js.map +1 -1
  288. package/dist/loading-indicator.js +1 -1
  289. package/dist/menu.js +96 -104
  290. package/dist/menu.js.map +1 -1
  291. package/dist/modal.js +111 -264
  292. package/dist/modal.js.map +1 -1
  293. package/dist/pagination.js +148 -145
  294. package/dist/pagination.js.map +1 -1
  295. package/dist/payment-method.js +16 -18
  296. package/dist/payment-method.js.map +1 -1
  297. package/dist/popover.js +58 -54
  298. package/dist/popover.js.map +1 -1
  299. package/dist/popper-container.js +13 -17
  300. package/dist/popper-container.js.map +1 -1
  301. package/dist/radio-group.js +71 -72
  302. package/dist/radio-group.js.map +1 -1
  303. package/dist/search-bar.js +54 -66
  304. package/dist/search-bar.js.map +1 -1
  305. package/dist/segmented-control.js +68 -55
  306. package/dist/segmented-control.js.map +1 -1
  307. package/dist/sidepanel.js +65 -64
  308. package/dist/sidepanel.js.map +1 -1
  309. package/dist/status.js +20 -23
  310. package/dist/status.js.map +1 -1
  311. package/dist/structured-list.js +1 -1
  312. package/dist/summary-grid.js +110 -141
  313. package/dist/summary-grid.js.map +1 -1
  314. package/dist/tabs.js +68 -60
  315. package/dist/tabs.js.map +1 -1
  316. package/dist/tag.js +23 -26
  317. package/dist/tag.js.map +1 -1
  318. package/dist/textarea.js +97 -96
  319. package/dist/textarea.js.map +1 -1
  320. package/dist/timeline.js +125 -125
  321. package/dist/timeline.js.map +1 -1
  322. package/dist/toast.js +44 -48
  323. package/dist/toast.js.map +1 -1
  324. package/dist/toggle.js +54 -52
  325. package/dist/toggle.js.map +1 -1
  326. package/dist/typography.js +1 -1
  327. package/dist/web-types.json +651 -397
  328. package/package.json +9 -12
  329. package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateBodyFitContentDynamicStyles/useCalculateBodyFitContentDynamicStyles.d.ts +0 -2
  330. package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateBodyFitContentDynamicStyles/useCalculateBodyFitContentDynamicStyles.types.d.ts +0 -8
  331. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/components/index.d.ts +0 -1
  332. package/dist/assets/button-actions.css +0 -1
  333. package/dist/assets/chevron-down.css +0 -1
  334. package/dist/chunks/base-button.98379576.js.map +0 -1
  335. package/dist/chunks/button-actions.bd397c79.js +0 -104
  336. package/dist/chunks/button-actions.bd397c79.js.map +0 -1
  337. package/dist/chunks/button.d0c9527d.js.map +0 -1
  338. package/dist/chunks/calendar.0ae43a96.js.map +0 -1
  339. package/dist/chunks/checkbox.f8457c93.js +0 -164
  340. package/dist/chunks/checkbox.f8457c93.js.map +0 -1
  341. package/dist/chunks/chevron-down.b851a6da.js.map +0 -1
  342. package/dist/chunks/controls-group.b827382b.js.map +0 -1
  343. package/dist/chunks/copy.5a4cbd4d.js.map +0 -1
  344. package/dist/chunks/dropdown-default-textbox.819e43f7.js.map +0 -1
  345. package/dist/chunks/dropdown.c05678d0.js.map +0 -1
  346. package/dist/chunks/error-message.0433b539.js +0 -47
  347. package/dist/chunks/error-message.0433b539.js.map +0 -1
  348. package/dist/chunks/footer-actions.67642347.js.map +0 -1
  349. package/dist/chunks/get-slot-text.e5c766d0.js +0 -9
  350. package/dist/chunks/get-slot-text.e5c766d0.js.map +0 -1
  351. package/dist/chunks/index.0cf00b47.js.map +0 -1
  352. package/dist/chunks/index.10aaf539.js.map +0 -1
  353. package/dist/chunks/index.56858f4e.js.map +0 -1
  354. package/dist/chunks/index.f0f8ed98.js.map +0 -1
  355. package/dist/chunks/listbox-option-tag.8d6cccac.js.map +0 -1
  356. package/dist/chunks/listbox.116ed0c1.js.map +0 -1
  357. package/dist/chunks/loading-button.1c201f87.js +0 -84
  358. package/dist/chunks/loading-button.1c201f87.js.map +0 -1
  359. package/dist/chunks/tooltip.2aff4fa6.js.map +0 -1
  360. package/dist/chunks/use-default-slot-validator.83d977a1.js +0 -11
  361. package/dist/chunks/use-default-slot-validator.83d977a1.js.map +0 -1
  362. package/dist/chunks/use-has-slot.068222e6.js +0 -5
  363. package/dist/chunks/use-has-slot.068222e6.js.map +0 -1
@@ -1,12 +1,13 @@
1
- import { defineComponent as p, ref as x, computed as s } from "vue";
2
- import { B as m, a as h } from "./chunks/index.56858f4e.js";
3
- import { B as C } from "./chunks/dropdown.c05678d0.js";
4
- import { g as P } from "./chunks/unique-id.a2a2b458.js";
5
- import { g as b, a as T } from "./chunks/i18n.155748d6.js";
6
- import { n as i } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
7
- import { B as N, a as $ } from "./chunks/button.d0c9527d.js";
8
- import "./assets/index18.css";
9
- const w = {
1
+ import { defineComponent as _, ref as C, computed as i, toRefs as w } from "vue";
2
+ import { u as N } from "./chunks/aria-label.ac9651a5.js";
3
+ import { B as P } from "./chunks/index.45295dd3.js";
4
+ import { B as b } from "./chunks/dropdown.fd93f0ce.js";
5
+ import { g as T } from "./chunks/unique-id.a2a2b458.js";
6
+ import { g as y, a as x } from "./chunks/i18n.155748d6.js";
7
+ import { n as r } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
8
+ import { a as S } from "./chunks/button.fb307df3.js";
9
+ import "./assets/index3.css";
10
+ const L = {
10
11
  "en-US": {
11
12
  showingItems: "Showing {itemCount} items",
12
13
  showingItemsWithTotal: "Showing {itemCount} of {totalCount} items"
@@ -31,19 +32,19 @@ const w = {
31
32
  showingItems: "Mostrando {itemCount} artículos",
32
33
  showingItemsWithTotal: "Mostrando {itemCount} de {totalCount} artículos"
33
34
  }
34
- }, S = 50, c = [
35
+ }, I = 50, d = [
35
36
  { label: "10", value: 10 },
36
37
  { label: "20", value: 20 },
37
38
  { label: "50", value: 50 },
38
39
  // DEFAULT_NUMBER_OF_RESULTS
39
40
  { label: "75", value: 75 },
40
41
  { label: "100", value: 100 }
41
- ], I = p({
42
+ ], O = _({
42
43
  name: "bento-pagination-context-results-per-page",
43
- i18n: { messages: w },
44
+ i18n: { messages: L },
44
45
  components: {
45
- BentoDropdown: C,
46
- BentoTypography: m
46
+ BentoDropdown: b,
47
+ BentoTypography: P
47
48
  },
48
49
  props: {
49
50
  /**
@@ -51,8 +52,8 @@ const w = {
51
52
  */
52
53
  itemsPerPage: {
53
54
  type: Number,
54
- default: S,
55
- validator: (a) => c.some(({ value: t }) => t === a)
55
+ default: I,
56
+ validator: (a) => d.some(({ value: t }) => t === a)
56
57
  },
57
58
  /**
58
59
  * The total number of items the pager is paging through.
@@ -61,42 +62,40 @@ const w = {
61
62
  },
62
63
  emits: ["select"],
63
64
  setup(a, { emit: t }) {
64
- const e = P("b-pagination-context-number-elements"), o = x(c), r = T(), l = (n) => {
65
- t("select", n);
66
- }, u = s(() => a.totalCount ? "showingItemsWithTotal" : "showingItems");
65
+ const e = T("b-pagination-context-number-elements"), n = C(d), l = x(), g = (o) => {
66
+ t("select", o);
67
+ }, p = i(() => a.totalCount ? "showingItemsWithTotal" : "showingItems");
67
68
  return {
68
69
  // Values
69
70
  dropdownId: e,
70
- dropdownOptions: o,
71
- i18nComponent: r,
72
- translationPathKey: u,
71
+ dropdownOptions: n,
72
+ i18nComponent: l,
73
+ translationPathKey: p,
73
74
  // Methods
74
- getI18nProps: b,
75
- // Enums
76
- BentoTypographyElement: h,
75
+ getI18nProps: y,
77
76
  // Events
78
- onSelectChange: l
77
+ onSelectChange: g
79
78
  };
80
79
  }
81
80
  });
82
- var L = function() {
81
+ var R = function() {
83
82
  var t = this, e = t._self._c;
84
- return t._self._setupProxy, e("div", { staticClass: "b-pagination-results-per-page" }, [e("bento-typography", { attrs: { el: t.BentoTypographyElement.DIV } }, [e(t.i18nComponent, t._b({ tag: "component", staticClass: "b-pagination-results-per-page__dropdown-container", attrs: { tag: "div", plural: t.totalCount }, scopedSlots: t._u([{ key: "itemCount", fn: function() {
83
+ return t._self._setupProxy, e("div", { staticClass: "b-pagination-results-per-page" }, [e("bento-typography", { attrs: { el: "div" } }, [e(t.i18nComponent, t._b({ tag: "component", staticClass: "b-pagination-results-per-page__dropdown-container", attrs: { tag: "div", plural: t.totalCount }, scopedSlots: t._u([{ key: "itemCount", fn: function() {
85
84
  return [e("bento-dropdown", { staticClass: "b-pagination-results-per-page__dropdown", attrs: { id: t.dropdownId, value: t.itemsPerPage, items: t.dropdownOptions, "aria-label": t.$t(t.translationPathKey, { itemCount: t.itemsPerPage, totalCount: t.totalCount }) }, on: { input: t.onSelectChange } })];
86
85
  }, proxy: !0 }, t.totalCount ? { key: "totalCount", fn: function() {
87
86
  return [t._v(t._s(t.totalCount))];
88
87
  }, proxy: !0 } : null], null, !0) }, "component", t.getI18nProps(t.translationPathKey), !1))], 1)], 1);
89
- }, B = [], O = /* @__PURE__ */ i(
90
- I,
91
- L,
92
- B,
88
+ }, F = [], k = /* @__PURE__ */ r(
89
+ O,
90
+ R,
91
+ F,
93
92
  !1,
94
93
  null,
95
- "c38b7f38",
94
+ "b9985b4c",
96
95
  null,
97
96
  null
98
97
  );
99
- const R = O.exports, E = {
98
+ const A = k.exports, B = {
100
99
  "en-US": {
101
100
  pageOfTotalPages: "Page {page} of {totalPages}",
102
101
  pageOneOfOne: "Page 1 of 1",
@@ -127,12 +126,12 @@ const R = O.exports, E = {
127
126
  pageOneOfOne: "Página 1 de 1",
128
127
  pageNumber: "Página {page}"
129
128
  }
130
- }, F = p({
131
- i18n: { messages: E },
129
+ }, E = _({
130
+ i18n: { messages: B },
132
131
  name: "bento-pagination-context",
133
132
  components: {
134
- BentoDropdown: C,
135
- BentoTypography: m
133
+ BentoDropdown: b,
134
+ BentoTypography: P
136
135
  },
137
136
  props: {
138
137
  /**
@@ -150,124 +149,122 @@ const R = O.exports, E = {
150
149
  },
151
150
  emits: ["page-selected"],
152
151
  setup(a, { emit: t }) {
153
- const e = P("bento-pagination-context-current-page"), o = (g) => t("page-selected", g), r = T(), l = (g) => ({
154
- label: g.toString(),
155
- value: g
156
- }), u = (g, y) => y + 1, n = s(
157
- () => Array.from(new Array(a.totalPages), u).map(l)
152
+ const e = T("bento-pagination-context-current-page"), n = (s) => t("page-selected", s), l = x(), g = (s) => ({
153
+ label: s.toString(),
154
+ value: s
155
+ }), p = (s, c) => c + 1, o = i(
156
+ () => Array.from(new Array(a.totalPages), p).map(g)
158
157
  );
159
158
  return {
160
159
  // Values
161
160
  dropdownId: e,
162
- listOfAvailablePages: n,
163
- i18nComponent: r,
161
+ listOfAvailablePages: o,
162
+ i18nComponent: l,
164
163
  // Methods
165
- getI18nProps: b,
164
+ getI18nProps: y,
166
165
  // Events
167
- onPageSelectChange: o,
168
- // Enums
169
- BentoTypographyElement: h
166
+ onPageSelectChange: n
170
167
  };
171
168
  }
172
169
  });
173
- var A = function() {
170
+ var M = function() {
174
171
  var t = this, e = t._self._c;
175
- return t._self._setupProxy, e("div", { staticClass: "b-pagination-context" }, [t.totalPages > 1 ? e("bento-typography", { attrs: { el: t.BentoTypographyElement.DIV } }, [e(t.i18nComponent, t._b({ tag: "component", attrs: { tag: "div" }, scopedSlots: t._u([{ key: "page", fn: function() {
172
+ return t._self._setupProxy, e("div", { staticClass: "b-pagination-context" }, [t.totalPages > 1 ? e("bento-typography", { attrs: { el: "div" } }, [e(t.i18nComponent, t._b({ tag: "component", attrs: { tag: "div" }, scopedSlots: t._u([{ key: "page", fn: function() {
176
173
  return [e("bento-dropdown", { staticClass: "b-pagination-context__dropdown", attrs: { id: t.dropdownId, value: t.page, items: t.listOfAvailablePages, "aria-label": t.$t("pageOfTotalPages", { page: t.page, totalPages: t.totalPages }) }, on: { input: t.onPageSelectChange } })];
177
174
  }, proxy: !0 }, { key: "totalPages", fn: function() {
178
175
  return [t._v(t._s(t.totalPages))];
179
- }, proxy: !0 }], null, !1, 2436399790) }, "component", t.getI18nProps("pageOfTotalPages"), !1))], 1) : t.totalPages === 1 ? e("bento-typography", { attrs: { el: t.BentoTypographyElement.SPAN } }, [t._v(" " + t._s(t.$t("pageOneOfOne")) + " ")]) : e("bento-typography", { attrs: { el: t.BentoTypographyElement.SPAN } }, [t._v(" " + t._s(t.$t("pageNumber", { page: t.page })) + " ")])], 1);
180
- }, k = [], M = /* @__PURE__ */ i(
181
- F,
182
- A,
183
- k,
176
+ }, proxy: !0 }], null, !1, 2436399790) }, "component", t.getI18nProps("pageOfTotalPages"), !1))], 1) : t.totalPages === 1 ? e("bento-typography", { attrs: { el: "span" } }, [t._v(" " + t._s(t.$t("pageOneOfOne")) + " ")]) : e("bento-typography", { attrs: { el: "span" } }, [t._v(" " + t._s(t.$t("pageNumber", { page: t.page })) + " ")])], 1);
177
+ }, Z = [], W = /* @__PURE__ */ r(
178
+ E,
179
+ M,
180
+ Z,
184
181
  !1,
185
182
  null,
186
- "3179cb7f",
183
+ "953ef9f5",
187
184
  null,
188
185
  null
189
186
  );
190
- const D = M.exports;
191
- let _ = 0;
192
- const Z = {
187
+ const D = W.exports;
188
+ let v = 0;
189
+ const z = {
193
190
  beforeCreate() {
194
- this.uuid = _.toString(), _ += 1;
191
+ this.uuid = v.toString(), v += 1;
195
192
  }
196
193
  };
197
- var W = function() {
194
+ var U = function() {
198
195
  var t = this, e = t._self._c;
199
196
  return e("svg", t._b({ attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? e("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), e("path", { attrs: { fill: "#00112C", "fill-rule": "evenodd", d: "M4.25 11C4.25 11.4142 4.58579 11.75 5 11.75C5.41421 11.75 5.75 11.4142 5.75 11L5.75 4.99999C5.75 4.58577 5.41421 4.24999 5 4.24999C4.58579 4.24999 4.25 4.58577 4.25 4.99998L4.25 11Z", "clip-rule": "evenodd" } }), e("path", { attrs: { fill: "#00112C", "fill-rule": "evenodd", d: "M11.5303 5.53031C11.8232 5.23742 11.8232 4.76255 11.5303 4.46965C11.2374 4.17676 10.7626 4.17676 10.4697 4.46965L7.46967 7.46965C7.17678 7.76255 7.17678 8.23742 7.46967 8.53031L10.4697 11.5303C10.7626 11.8232 11.2374 11.8232 11.5303 11.5303C11.8232 11.2374 11.8232 10.7625 11.5303 10.4697L9.06066 7.99998L11.5303 5.53031Z", "clip-rule": "evenodd" } })]);
200
- }, z = [], U = /* @__PURE__ */ i(
201
- Z,
202
- W,
197
+ }, j = [], J = /* @__PURE__ */ r(
203
198
  z,
199
+ U,
200
+ j,
204
201
  !1,
205
202
  null,
206
203
  "d0300c1f",
207
204
  null,
208
205
  null
209
206
  );
210
- const V = U.exports;
211
- let d = 0;
212
- const j = {
207
+ const K = J.exports;
208
+ let f = 0;
209
+ const V = {
213
210
  beforeCreate() {
214
- this.uuid = d.toString(), d += 1;
211
+ this.uuid = f.toString(), f += 1;
215
212
  }
216
213
  };
217
- var J = function() {
214
+ var q = function() {
218
215
  var t = this, e = t._self._c;
219
216
  return e("svg", t._b({ attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? e("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), e("path", { attrs: { fill: "#00112C", "fill-rule": "evenodd", d: "M4.46967 10.4697C4.17678 10.7626 4.17678 11.2374 4.46967 11.5303C4.76256 11.8232 5.23744 11.8232 5.53033 11.5303L8.53033 8.53032C8.82322 8.23743 8.82322 7.76256 8.53033 7.46966L5.53033 4.46966C5.23744 4.17677 4.76256 4.17677 4.46967 4.46966C4.17678 4.76256 4.17678 5.23743 4.46967 5.53032L6.93934 7.99999L4.46967 10.4697Z", "clip-rule": "evenodd" } }), e("path", { attrs: { fill: "#00112C", "fill-rule": "evenodd", d: "M11.75 4.99999C11.75 4.58578 11.4142 4.24999 11 4.24999C10.5858 4.24999 10.25 4.58578 10.25 4.99999V11C10.25 11.4142 10.5858 11.75 11 11.75C11.4142 11.75 11.75 11.4142 11.75 11L11.75 4.99999Z", "clip-rule": "evenodd" } })]);
220
- }, Y = [], K = /* @__PURE__ */ i(
221
- j,
222
- J,
223
- Y,
217
+ }, G = [], H = /* @__PURE__ */ r(
218
+ V,
219
+ q,
220
+ G,
224
221
  !1,
225
222
  null,
226
223
  "526f9959",
227
224
  null,
228
225
  null
229
226
  );
230
- const q = K.exports;
231
- let v = 0;
232
- const G = {
227
+ const Q = H.exports;
228
+ let m = 0;
229
+ const X = {
233
230
  beforeCreate() {
234
- this.uuid = v.toString(), v += 1;
231
+ this.uuid = m.toString(), m += 1;
235
232
  }
236
233
  };
237
- var H = function() {
234
+ var Y = function() {
238
235
  var t = this, e = t._self._c;
239
236
  return e("svg", t._b({ attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? e("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), e("path", { attrs: { fill: "#00112C", "fill-rule": "evenodd", d: "M10.0303 4.46967C10.3232 4.76256 10.3232 5.23744 10.0303 5.53033L7.56066 8L10.0303 10.4697C10.3232 10.7626 10.3232 11.2374 10.0303 11.5303C9.73744 11.8232 9.26256 11.8232 8.96967 11.5303L5.96967 8.53033C5.67678 8.23744 5.67678 7.76256 5.96967 7.46967L8.96967 4.46967C9.26256 4.17678 9.73744 4.17678 10.0303 4.46967Z", "clip-rule": "evenodd" } })]);
240
- }, Q = [], X = /* @__PURE__ */ i(
241
- G,
242
- H,
243
- Q,
237
+ }, tt = [], et = /* @__PURE__ */ r(
238
+ X,
239
+ Y,
240
+ tt,
244
241
  !1,
245
242
  null,
246
243
  "ad07f9f1",
247
244
  null,
248
245
  null
249
246
  );
250
- const tt = X.exports;
251
- let f = 0;
252
- const et = {
247
+ const at = et.exports;
248
+ let h = 0;
249
+ const nt = {
253
250
  beforeCreate() {
254
- this.uuid = f.toString(), f += 1;
251
+ this.uuid = h.toString(), h += 1;
255
252
  }
256
253
  };
257
- var at = function() {
254
+ var ot = function() {
258
255
  var t = this, e = t._self._c;
259
256
  return e("svg", t._b({ attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? e("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), e("path", { attrs: { fill: "#00112C", "fill-rule": "evenodd", d: "M5.96967 11.5303C5.67678 11.2374 5.67678 10.7626 5.96967 10.4697L8.43934 8L5.96967 5.53033C5.67678 5.23744 5.67678 4.76256 5.96967 4.46967C6.26256 4.17678 6.73744 4.17678 7.03033 4.46967L10.0303 7.46967C10.171 7.61032 10.25 7.80109 10.25 8C10.25 8.19891 10.171 8.38968 10.0303 8.53033L7.03033 11.5303C6.73744 11.8232 6.26256 11.8232 5.96967 11.5303Z", "clip-rule": "evenodd" } })]);
260
- }, nt = [], ot = /* @__PURE__ */ i(
261
- et,
262
- at,
257
+ }, st = [], it = /* @__PURE__ */ r(
263
258
  nt,
259
+ ot,
260
+ st,
264
261
  !1,
265
262
  null,
266
263
  "5d0b9449",
267
264
  null,
268
265
  null
269
266
  );
270
- const st = ot.exports, it = {
267
+ const rt = it.exports, lt = {
271
268
  "en-US": {
272
269
  navigateToTheFirstPage: "Navigate to the first page",
273
270
  navigateToThePreviousPage: "Navigate to the previous page",
@@ -304,15 +301,15 @@ const st = ot.exports, it = {
304
301
  navigateToTheNextPage: "Ir a la página siguiente",
305
302
  navigateToTheLastPage: "Ir a la última página"
306
303
  }
307
- }, rt = p({
308
- i18n: { messages: it },
304
+ }, gt = _({
305
+ i18n: { messages: lt },
309
306
  name: "adl-pagination-controls",
310
307
  components: {
311
- BentoButton: N,
312
- SkipLeft: V,
313
- SkipRight: q,
314
- ChevronLeft: tt,
315
- ChevronRight: st
308
+ BentoButton: S,
309
+ SkipLeft: K,
310
+ SkipRight: Q,
311
+ ChevronLeft: at,
312
+ ChevronRight: rt
316
313
  },
317
314
  props: {
318
315
  /**
@@ -330,55 +327,53 @@ const st = ot.exports, it = {
330
327
  },
331
328
  emits: ["navigate"],
332
329
  setup(a, { emit: t }) {
333
- const e = s(() => a.page === 1), o = s(() => a.page === a.totalPages), r = s(() => !a.hasNext || o.value), l = s(() => {
334
- const n = !a.hasNext, g = !a.totalPages;
335
- return n || o.value || g;
330
+ const e = i(() => a.page === 1), n = i(() => a.page === a.totalPages), l = i(() => !a.hasNext || n.value), g = i(() => {
331
+ const o = !a.hasNext, s = !a.totalPages;
332
+ return o || n.value || s;
336
333
  });
337
334
  return {
338
335
  // Values
339
- isNextButtonDisabled: r,
336
+ isNextButtonDisabled: l,
340
337
  isCurrentPageFirst: e,
341
- isCurrentPageLast: o,
342
- isLastPageButtonDisabled: l,
338
+ isCurrentPageLast: n,
339
+ isLastPageButtonDisabled: g,
343
340
  // Events
344
- navigate: (n) => {
345
- t("navigate", n);
346
- },
347
- // Enums
348
- BentoButtonVariant: $
341
+ navigate: (o) => {
342
+ t("navigate", o);
343
+ }
349
344
  };
350
345
  }
351
346
  });
352
- var lt = function() {
347
+ var ut = function() {
353
348
  var t = this, e = t._self._c;
354
- return t._self._setupProxy, e("ul", { staticClass: "b-pagination-controls" }, [e("li", { staticClass: "b-pagination-controls__item" }, [e("bento-button", { attrs: { disabled: t.isCurrentPageFirst, variant: t.BentoButtonVariant.TERTIARY, tertiary: "", condensed: "" }, on: { click: function(o) {
349
+ return t._self._setupProxy, e("ul", { staticClass: "b-pagination-controls" }, [e("li", { staticClass: "b-pagination-controls__item" }, [e("bento-button", { attrs: { disabled: t.isCurrentPageFirst, variant: "tertiary", condensed: "" }, on: { click: function(n) {
355
350
  return t.navigate(1);
356
351
  } }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
357
352
  return [e("skip-left", { attrs: { "svg-title": t.$t("navigateToTheFirstPage") } })];
358
- }, proxy: !0 }]) })], 1), e("li", { staticClass: "b-pagination-controls__item" }, [e("bento-button", { attrs: { disabled: t.isCurrentPageFirst, variant: t.BentoButtonVariant.TERTIARY, tertiary: "", condensed: "" }, on: { click: function(o) {
353
+ }, proxy: !0 }]) })], 1), e("li", { staticClass: "b-pagination-controls__item" }, [e("bento-button", { attrs: { disabled: t.isCurrentPageFirst, variant: "tertiary", condensed: "" }, on: { click: function(n) {
359
354
  return t.navigate(t.page - 1);
360
355
  } }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
361
356
  return [e("chevron-left", { attrs: { "svg-title": t.$t("navigateToThePreviousPage") } })];
362
- }, proxy: !0 }]) })], 1), e("li", { staticClass: "b-pagination-controls__item" }, [e("bento-button", { attrs: { disabled: t.isNextButtonDisabled, variant: t.BentoButtonVariant.TERTIARY, tertiary: "", condensed: "" }, on: { click: function(o) {
357
+ }, proxy: !0 }]) })], 1), e("li", { staticClass: "b-pagination-controls__item" }, [e("bento-button", { attrs: { disabled: t.isNextButtonDisabled, variant: "tertiary", condensed: "" }, on: { click: function(n) {
363
358
  return t.navigate(t.page + 1);
364
359
  } }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
365
360
  return [e("chevron-right", { attrs: { "svg-title": t.$t("navigateToTheNextPage") } })];
366
- }, proxy: !0 }]) })], 1), e("li", { staticClass: "b-pagination-controls__item" }, [e("bento-button", { attrs: { disabled: t.isLastPageButtonDisabled, variant: t.BentoButtonVariant.TERTIARY, tertiary: "", condensed: "" }, on: { click: function(o) {
361
+ }, proxy: !0 }]) })], 1), e("li", { staticClass: "b-pagination-controls__item" }, [e("bento-button", { attrs: { disabled: t.isLastPageButtonDisabled, variant: "tertiary", condensed: "" }, on: { click: function(n) {
367
362
  return t.navigate(t.totalPages);
368
363
  } }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
369
364
  return [e("skip-right", { attrs: { "svg-title": t.$t("navigateToTheLastPage") } })];
370
365
  }, proxy: !0 }]) })], 1)]);
371
- }, gt = [], ut = /* @__PURE__ */ i(
372
- rt,
373
- lt,
366
+ }, pt = [], _t = /* @__PURE__ */ r(
374
367
  gt,
368
+ ut,
369
+ pt,
375
370
  !1,
376
371
  null,
377
- "b0c3fe74",
372
+ "e062fb92",
378
373
  null,
379
374
  null
380
375
  );
381
- const pt = ut.exports, ct = {
376
+ const ct = _t.exports, dt = {
382
377
  "en-US": {
383
378
  paginatedNavigation: "Paginated navigation",
384
379
  showingItemsWithTotal: "Showing {itemCount} of {totalCount} item | Showing {itemCount} of {totalCount} items"
@@ -403,15 +398,18 @@ const pt = ut.exports, ct = {
403
398
  paginatedNavigation: "Navegación por páginas",
404
399
  showingItemsWithTotal: "Mostrando {itemCount} de {totalCount} artículo | Mostrando {itemCount} de {totalCount} artículos"
405
400
  }
406
- }, _t = p({
407
- i18n: { messages: ct },
401
+ }, vt = _({
402
+ i18n: { messages: dt },
408
403
  name: "bento-pagination",
409
404
  components: {
410
405
  BentoPaginationContext: D,
411
- BentoPaginationControls: pt,
412
- BentoPaginationResultsPerPage: R
406
+ BentoPaginationControls: ct,
407
+ BentoPaginationResultsPerPage: A
413
408
  },
414
409
  props: {
410
+ /**
411
+ * @deprecated from version 2.0.0. Use the aria-label attribute instead.
412
+ */
415
413
  /**
416
414
  * A brief description of the purpose of the navigation (for a11y).
417
415
  * Omit the term "navigation", as the screen reader will read both the role and the contents of the label.
@@ -450,44 +448,49 @@ const pt = ut.exports, ct = {
450
448
  totalCount: { type: Number, default: null }
451
449
  },
452
450
  emits: ["navigate", "items-page", "update:page", "update:size"],
453
- setup(a, { emit: t }) {
454
- const e = s(
451
+ setup(a, { attrs: t, emit: e }) {
452
+ const n = C(t["aria-label"]), { ariaLabel: l } = w(a), g = N({
453
+ ariaLabel: n.value,
454
+ // TODO: take this line away when the aria-label props is removed
455
+ label: l
456
+ }), p = i(
455
457
  () => !a.totalCount || !a.size ? null : Math.ceil(a.totalCount / a.size)
456
- ), o = (n) => {
457
- t("navigate", n), t("update:page", n);
458
- }, r = (n) => {
459
- o(n);
460
- }, l = (n) => {
461
- t("items-page", n), t("update:size", n), o(1);
462
- }, u = s(() => ({
458
+ ), o = (u) => {
459
+ e("navigate", u), e("update:page", u);
460
+ }, s = (u) => {
461
+ o(u);
462
+ }, c = (u) => {
463
+ e("items-page", u), e("update:size", u), o(1);
464
+ }, $ = i(() => ({
463
465
  "b-pagination__navigation--no-results-per-page": a.hidePageSize
464
466
  }));
465
467
  return {
466
468
  // Values
467
- totalPages: e,
468
- navigationConditionalClasses: u,
469
+ computedAriaLabel: g,
470
+ totalPages: p,
471
+ navigationConditionalClasses: $,
469
472
  // Events
470
473
  navigate: o,
471
- onItemsPerPageChange: l,
472
- onPageSelected: r
474
+ onItemsPerPageChange: c,
475
+ onPageSelected: s
473
476
  };
474
477
  }
475
478
  });
476
- var dt = function() {
479
+ var ft = function() {
477
480
  var t = this, e = t._self._c;
478
- return t._self._setupProxy, e("div", { staticClass: "b-pagination" }, [e("nav", { staticClass: "b-pagination__navigation", class: t.navigationConditionalClasses, attrs: { "aria-label": t.ariaLabel } }, [t.hidePageSize ? t._e() : e("bento-pagination-results-per-page", { staticClass: "b-pagination__results-per-page", attrs: { "items-per-page": t.size, "total-count": t.totalCount }, on: { select: t.onItemsPerPageChange } }), e("div", { staticClass: "b-pagination__page-navigator" }, [e("bento-pagination-context", { staticClass: "b-pagination__context", attrs: { "total-pages": t.totalPages, page: t.page, "total-count": t.totalCount }, on: { "page-selected": t.onPageSelected } }), e("div", { staticClass: "b-pagination__divider" }), e("bento-pagination-controls", { staticClass: "b-pagination__controls", attrs: { "has-next": t.hasNext, page: t.page, "total-pages": t.totalPages }, on: { navigate: t.navigate } })], 1)], 1)]);
479
- }, vt = [], ft = /* @__PURE__ */ i(
480
- _t,
481
- dt,
481
+ return t._self._setupProxy, e("div", { staticClass: "b-pagination" }, [e("nav", { staticClass: "b-pagination__navigation", class: t.navigationConditionalClasses, attrs: { "aria-label": t.computedAriaLabel } }, [t.hidePageSize ? t._e() : e("bento-pagination-results-per-page", { staticClass: "b-pagination__results-per-page", attrs: { "items-per-page": t.size, "total-count": t.totalCount }, on: { select: t.onItemsPerPageChange } }), e("div", { staticClass: "b-pagination__page-navigator" }, [e("bento-pagination-context", { staticClass: "b-pagination__context", attrs: { "total-pages": t.totalPages, page: t.page, "total-count": t.totalCount }, on: { "page-selected": t.onPageSelected } }), e("div", { staticClass: "b-pagination__divider" }), e("bento-pagination-controls", { staticClass: "b-pagination__controls", attrs: { "has-next": t.hasNext, page: t.page, "total-pages": t.totalPages }, on: { navigate: t.navigate } })], 1)], 1)]);
482
+ }, mt = [], ht = /* @__PURE__ */ r(
482
483
  vt,
484
+ ft,
485
+ mt,
483
486
  !1,
484
487
  null,
485
- "65507cb4",
488
+ "922b81b3",
486
489
  null,
487
490
  null
488
491
  );
489
- const xt = ft.exports;
492
+ const Nt = ht.exports;
490
493
  export {
491
- xt as BentoPagination
494
+ Nt as BentoPagination
492
495
  };
493
496
  //# sourceMappingURL=pagination.js.map