@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
1
  import { PropType } from "../../../../vue3/node_modules/vue";
2
- import { PopperContainerAriaRole, PopperContainerPositionExtended } from "../popper-container";
3
- import { BentoTypographyElement, BentoTypographyVariant } from "../typography";
2
+ import { PopperContainerAriaRole } from "../popper-container";
4
3
  import { VueNodeElement } from "../../types";
5
4
  export declare const Tooltip: {
6
5
  name: string;
7
6
  components: {
8
7
  BentoTypography: import("../../../../vue3/node_modules/vue").DefineComponent<{
9
8
  el: {
10
- type: PropType<"div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | BentoTypographyElement>;
11
- default: BentoTypographyElement;
12
- validator: (value: BentoTypographyElement) => boolean;
9
+ type: PropType<"div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | import("../typography").BentoTypographyElement>;
10
+ default: import("../typography").BentoTypographyElement;
11
+ validator: (value: import("../typography").BentoTypographyElement) => boolean;
13
12
  };
14
13
  stronger: {
15
14
  type: BooleanConstructor;
@@ -20,9 +19,9 @@ export declare const Tooltip: {
20
19
  default: boolean;
21
20
  };
22
21
  variant: {
23
- type: PropType<"body" | "caption" | "title" | "subtitle" | BentoTypographyVariant>;
24
- default: BentoTypographyVariant;
25
- validator: (value: BentoTypographyVariant) => boolean;
22
+ type: PropType<"body" | "caption" | "title" | "subtitle" | import("../typography").BentoTypographyVariant>;
23
+ default: import("../typography").BentoTypographyVariant;
24
+ validator: (value: import("../typography").BentoTypographyVariant) => boolean;
26
25
  };
27
26
  medium: {
28
27
  type: BooleanConstructor;
@@ -42,9 +41,9 @@ export declare const Tooltip: {
42
41
  }>;
43
42
  }, unknown, {}, {}, import("../../../../vue3/node_modules/vue").ComponentOptionsMixin, import("../../../../vue3/node_modules/vue").ComponentOptionsMixin, {}, string, import("../../../../vue3/node_modules/vue").VNodeProps & import("../../../../vue3/node_modules/vue").AllowedComponentProps & import("../../../../vue3/node_modules/vue").ComponentCustomProps, Readonly<import("../../../../vue3/node_modules/vue").ExtractPropTypes<{
44
43
  el: {
45
- type: PropType<"div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | BentoTypographyElement>;
46
- default: BentoTypographyElement;
47
- validator: (value: BentoTypographyElement) => boolean;
44
+ type: PropType<"div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | import("../typography").BentoTypographyElement>;
45
+ default: import("../typography").BentoTypographyElement;
46
+ validator: (value: import("../typography").BentoTypographyElement) => boolean;
48
47
  };
49
48
  stronger: {
50
49
  type: BooleanConstructor;
@@ -55,9 +54,9 @@ export declare const Tooltip: {
55
54
  default: boolean;
56
55
  };
57
56
  variant: {
58
- type: PropType<"body" | "caption" | "title" | "subtitle" | BentoTypographyVariant>;
59
- default: BentoTypographyVariant;
60
- validator: (value: BentoTypographyVariant) => boolean;
57
+ type: PropType<"body" | "caption" | "title" | "subtitle" | import("../typography").BentoTypographyVariant>;
58
+ default: import("../typography").BentoTypographyVariant;
59
+ validator: (value: import("../typography").BentoTypographyVariant) => boolean;
61
60
  };
62
61
  medium: {
63
62
  type: BooleanConstructor;
@@ -75,8 +74,8 @@ export declare const Tooltip: {
75
74
  wide: boolean;
76
75
  stronger: boolean;
77
76
  strongest: boolean;
78
- el: "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | BentoTypographyElement;
79
- variant: "body" | "caption" | "title" | "subtitle" | BentoTypographyVariant;
77
+ el: "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | import("../typography").BentoTypographyElement;
78
+ variant: "body" | "caption" | "title" | "subtitle" | import("../typography").BentoTypographyVariant;
80
79
  medium: boolean;
81
80
  large: boolean;
82
81
  }>;
@@ -85,17 +84,13 @@ export declare const Tooltip: {
85
84
  type: StringConstructor;
86
85
  default: any;
87
86
  };
88
- ariaLabel: {
89
- type: StringConstructor;
90
- default: any;
91
- };
92
87
  targetElement: {
93
88
  type: PropType<VueNodeElement>;
94
89
  required: true;
95
90
  };
96
91
  position: {
97
- type: PropType<"left" | "auto" | "top" | "right" | "bottom" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | import("../popper-container").PopperContainerPosition>;
98
- default: PopperContainerPositionExtended;
92
+ type: PropType<"auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | import("../popper-container").PopperContainerPosition>;
93
+ default: import("../popper-container").PopperContainerPositionExtended;
99
94
  validator: (value: unknown) => boolean;
100
95
  };
101
96
  fixedPositioning: {
@@ -149,17 +144,13 @@ export declare const Tooltip: {
149
144
  type: StringConstructor;
150
145
  default: any;
151
146
  };
152
- ariaLabel: {
153
- type: StringConstructor;
154
- default: any;
155
- };
156
147
  targetElement: {
157
148
  type: PropType<VueNodeElement>;
158
149
  required: true;
159
150
  };
160
151
  position: {
161
- type: PropType<"left" | "auto" | "top" | "right" | "bottom" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | import("../popper-container").PopperContainerPosition>;
162
- default: PopperContainerPositionExtended;
152
+ type: PropType<"auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | import("../popper-container").PopperContainerPosition>;
153
+ default: import("../popper-container").PopperContainerPositionExtended;
163
154
  validator: (value: unknown) => boolean;
164
155
  };
165
156
  fixedPositioning: {
@@ -197,13 +188,12 @@ export declare const Tooltip: {
197
188
  validator: (value: unknown) => boolean;
198
189
  };
199
190
  }>>, {
200
- id: string;
191
+ position: "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | import("../popper-container").PopperContainerPosition;
192
+ offset: number[];
201
193
  modifiers: unknown[];
202
194
  arrow: any;
203
- offset: number[];
204
- position: "left" | "auto" | "top" | "right" | "bottom" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | import("../popper-container").PopperContainerPosition;
205
195
  matchWidth: boolean;
206
- ariaLabel: string;
196
+ id: string;
207
197
  fixedPositioning: boolean;
208
198
  disabledFocusTrap: boolean;
209
199
  fallbackPosition: import("../popper-container").FallbackPositionProp;
@@ -238,10 +228,7 @@ export declare const Tooltip: {
238
228
  };
239
229
  };
240
230
  setup(props: any): {
241
- BentoTypographyElement: typeof BentoTypographyElement;
242
- BentoTypographyVariant: typeof BentoTypographyVariant;
243
231
  PopperContainerAriaRole: typeof PopperContainerAriaRole;
244
- PopperContainerPositionExtended: typeof PopperContainerPositionExtended;
245
232
  conditionalClasses: import("../../../../vue3/node_modules/vue").ComputedRef<{
246
233
  [x: string]: boolean;
247
234
  }>;
@@ -275,10 +262,7 @@ declare const _default: import("../../../../vue3/node_modules/vue").DefineCompon
275
262
  default: boolean;
276
263
  };
277
264
  }, {
278
- BentoTypographyElement: typeof BentoTypographyElement;
279
- BentoTypographyVariant: typeof BentoTypographyVariant;
280
265
  PopperContainerAriaRole: typeof PopperContainerAriaRole;
281
- PopperContainerPositionExtended: typeof PopperContainerPositionExtended;
282
266
  conditionalClasses: import("../../../../vue3/node_modules/vue").ComputedRef<{
283
267
  [x: string]: boolean;
284
268
  }>;
@@ -310,9 +294,9 @@ declare const _default: import("../../../../vue3/node_modules/vue").DefineCompon
310
294
  default: boolean;
311
295
  };
312
296
  }>>, {
313
- id: string;
314
- offset: number;
315
297
  position: import("../popper-container").PopperContainerPositionBasic;
298
+ offset: number;
299
+ id: string;
316
300
  isShown: boolean;
317
301
  }>;
318
302
  export default _default;
@@ -1 +1,2 @@
1
- export declare const useDefaultSlotValidator: (componentName: string, hasDefaultSlot: boolean, ...hasOptionalSlots: boolean[]) => void;
1
+ import type { Slot } from "../../../../vue3/node_modules/vue";
2
+ export declare const useDefaultSlotValidator: (componentName: string, defaultSlot: Slot, ...optionalSlots: Slot[]) => void;
@@ -1,2 +1,9 @@
1
+ import { VNode } from "../../../../../node_modules/vue-demi";
1
2
  import type { Slots } from "../../../../vue3/node_modules/vue";
2
- export declare const useHasSlot: (slots: Slots) => (name: string) => boolean;
3
+ export declare const useHasSlot: (slots: Readonly<{
4
+ [name: string]: import("../../../../../node_modules/vue-demi").Slot;
5
+ }> | {
6
+ [key: string]: VNode<import("../../../../../node_modules/vue-demi").RendererNode, import("../../../../../node_modules/vue-demi").RendererElement, {
7
+ [key: string]: any;
8
+ }>[];
9
+ }) => (name: string) => boolean;
@@ -1,4 +1,5 @@
1
1
  import BentoVue from './install';
2
+ export * from './components/accordion';
2
3
  export * from './components/alert';
3
4
  export * from './components/button';
4
5
  export * from './components/data-grid';
@@ -13,8 +14,10 @@ export * from './components/country';
13
14
  export * from './components/currency';
14
15
  export * from './components/date';
15
16
  export * from './components/divider';
17
+ export * from './components/empty-state';
16
18
  export * from './components/filter-bar';
17
19
  export * from './components/form-layout';
20
+ export * from './components/image';
18
21
  export * from './components/info-icon';
19
22
  export * from './components/input-field';
20
23
  export * from './components/loading-indicator';
@@ -0,0 +1,9 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("../../../../vue3/node_modules/vue").DefineComponent<{}, {}, {}, {}, {}, import("../../../../vue3/node_modules/vue").ComponentOptionsMixin, import("../../../../vue3/node_modules/vue").ComponentOptionsMixin, {}, string, import("../../../../vue3/node_modules/vue").VNodeProps & import("../../../../vue3/node_modules/vue").AllowedComponentProps & import("../../../../vue3/node_modules/vue").ComponentCustomProps, Readonly<import("../../../../vue3/node_modules/vue").ExtractPropTypes<{}>>, {}>, Record<string, (_: {}) => any> & {
2
+ default: (_: {}) => any;
3
+ }>;
4
+ export default _default;
5
+ type __VLS_WithTemplateSlots<T, S> = T & {
6
+ new (): {
7
+ $slots: S;
8
+ };
9
+ };
@@ -1,3 +1,3 @@
1
1
  import type { Slots } from "../../../../../vue3/node_modules/vue";
2
- export declare const getSlotText: (slots: Slots) => (name: string) => any;
2
+ export declare const getSlotText: (slots: Slots) => (name: string) => string;
3
3
  export default getSlotText;
@@ -0,0 +1 @@
1
+ export declare function printDevelopmentWarning(...args: Parameters<typeof console.warn>): void;
package/dist/accordion.js CHANGED
@@ -1,274 +1,124 @@
1
- import { defineComponent as m, computed as E, openBlock as o, createElementBlock as i, normalizeClass as p, renderSlot as d, resolveComponent as u, createElementVNode as r, createCommentVNode as a, createVNode as h, Transition as w, withCtx as C, withDirectives as S, vShow as T } from "vue";
2
- import { g as A } from "./chunks/unique-id.a2a2b458.js";
3
- import { _ } from "./chunks/_plugin-vue_export-helper.dad06003.js";
4
- import { C as P, a as R } from "./chunks/chevron-down.69bedf14.js";
1
+ import { defineComponent as g, provide as T, toRef as k, openBlock as c, createElementBlock as x, renderSlot as S, ref as r, inject as B, watch as f, nextTick as $, createVNode as b, unref as e, withCtx as y, createElementVNode as d, createBlock as h, createTextVNode as w, toDisplayString as D, Transition as O, withDirectives as z, normalizeStyle as A, vShow as H } from "vue";
2
+ import { _ as C } from "./chunks/_plugin-vue_export-helper.dad06003.js";
3
+ import { B as R } from "./chunks/index.89b00b94.js";
4
+ import { C as V, a as j } from "./chunks/chevron-up.c03b58f8.js";
5
+ import { g as I } from "./chunks/unique-id.a2a2b458.js";
5
6
  import "./assets/index2.css";
6
- const v = Symbol("accordion injection key");
7
- var s = /* @__PURE__ */ ((e) => (e.PRIMARY = "primary", e.GHOST = "ghost", e))(s || {}), c = /* @__PURE__ */ ((e) => (e.GROUPED = "grouped", e.SEPARATE = "separate", e))(c || {}), g = /* @__PURE__ */ ((e) => (e.LEFT = "left", e))(g || {});
8
- const O = m({
9
- name: "adl-accordion",
7
+ const E = Symbol("accordion title size injection key"), U = { class: "b-accordion" }, q = {}, J = /* @__PURE__ */ g({
8
+ ...q,
9
+ __name: "accordion",
10
10
  props: {
11
11
  /**
12
- * Indicates if all accordion items can be expanded simultaneously.
13
- * If this option is toggled in Storybook a refresh is required.
14
- * - true: all accordion items can be expanded at a time
15
- * - false: only one accordion item can be expanded at a time
12
+ * Controls accordion title size.
13
+ * @values default, small
16
14
  */
17
- simultaneouslyExpandAllTabs: {
18
- type: Boolean,
19
- default: !0
20
- },
21
- /**
22
- * Grouped represents if the accordion is grouped inside a container or not
23
- * - true: grouped inside a container
24
- * - false: independent accordion item
25
- */
26
- grouped: {
27
- type: Boolean,
28
- default: !1
29
- },
30
- /**
31
- * Indicates the position of caret in the accordion. The default is right.
32
- * - true: caret is on right
33
- * - false: caret is on left
34
- */
35
- caretRight: {
36
- type: Boolean,
37
- default: !0
38
- },
39
- /**
40
- * Variant represents accordion variant
41
- * @values enum AccordionVariant
42
- */
43
- variant: {
15
+ titleSize: {
44
16
  type: String,
45
- default: s.PRIMARY,
46
- validator: (e) => Object.values(s).includes(e)
17
+ default: "default"
47
18
  }
48
19
  },
49
- data() {
50
- return {
51
- accordion: {
52
- items: [],
53
- simultaneouslyExpandAllTabs: this.simultaneouslyExpandAllTabs,
54
- variant: this.variant,
55
- grouped: this.grouped,
56
- caretRight: this.caretRight
57
- }
58
- };
59
- },
60
- computed: {
61
- conditionalClasses() {
62
- return {
63
- [`ds-accordion--${s.GHOST}`]: this.variant === s.GHOST,
64
- [`ds-accordion--${c.GROUPED}`]: this.grouped,
65
- [`ds-accordion--${c.SEPARATE}`]: !this.grouped
66
- };
67
- }
68
- },
69
- provide() {
70
- const e = E(
71
- () => ({
72
- caretRight: this.caretRight,
73
- grouped: this.grouped,
74
- variant: this.variant,
75
- simultaneouslyExpandAllTabs: this.simultaneouslyExpandAllTabs,
76
- registerItem: this.registerItem,
77
- getItem: this.getItem,
78
- open: this.open,
79
- close: this.close
80
- })
81
- );
82
- return {
83
- [v]: e
84
- };
85
- },
86
- methods: {
87
- getUniqueId() {
88
- return A("accordion-item");
89
- },
90
- registerItem(e = !1) {
91
- var l;
92
- const t = this.getUniqueId, n = t();
93
- return (l = this.accordion.items) == null || l.push({ id: n, opened: e }), { id: n, opened: e };
94
- },
95
- getItem(e) {
96
- return this.accordion.items.find((t) => t.id === e);
97
- },
98
- open(e) {
99
- if (this.accordion.simultaneouslyExpandAllTabs)
100
- this.accordion.items.find((t) => t.id === e).opened = !0;
101
- else {
102
- const t = this.accordion.items.map((n) => ({ id: n.id, opened: n.id === e }));
103
- this.accordion.items = t;
104
- }
105
- },
106
- close(e) {
107
- this.accordion.items.find((t) => t.id === e).opened = !1;
108
- }
20
+ setup(a) {
21
+ return T(E, k(a, "titleSize")), (i, _) => (c(), x("div", U, [
22
+ S(i.$slots, "default", {}, void 0, !0)
23
+ ]));
109
24
  }
110
25
  });
111
- function k(e, t, n, l, f, $) {
112
- return o(), i("div", {
113
- class: p(["adl2-accordion", e.conditionalClasses]),
114
- "data-testid": "adl-accordion"
115
- }, [
116
- d(e.$slots, "default", {}, void 0, !0)
117
- ], 2);
118
- }
119
- const Q = /* @__PURE__ */ _(O, [["render", k], ["__scopeId", "data-v-ae8b8b28"]]), U = m({
120
- name: "adl-accordion-item",
121
- components: { ChevronDown: P, ChevronUp: R },
122
- // Props attribute is required by provide/inject. Do not delete.
26
+ const ee = /* @__PURE__ */ C(J, [["__scopeId", "data-v-9fccc066"]]), K = { class: "b-accordion-item" }, L = ["id", "aria-controls", "aria-expanded"], M = ["id", "aria-labelledby"], Y = {}, Z = /* @__PURE__ */ g({
27
+ ...Y,
28
+ __name: "accordion-item",
123
29
  props: {
124
30
  /**
125
- * Injected tabs prop that contains all the required tab query methods.
126
- * NOTE: This Prop defintion can be removed when the following issue is resolved:
127
- * https://github.com/vuejs/vue/issues/8969
31
+ * Sets the title of the accordion item.
128
32
  */
129
- accordion: { type: Object, default: null }
130
- },
131
- inject: { accordion: { from: v } },
132
- data: () => ({
133
- item: {
134
- id: void 0,
135
- opened: !1
136
- }
137
- }),
138
- computed: {
139
- accordionProvider() {
140
- return this.accordion;
141
- },
142
- showContent() {
143
- var e;
144
- return (e = this.accordionProvider.getItem(this.item.id)) == null ? void 0 : e.opened;
145
- },
146
- conditionalClasses() {
147
- return {
148
- [`adl-accordion-item__caret-${g.LEFT}`]: !this.accordionProvider.caretRight,
149
- [`adl-accordion-item--${s.GHOST}`]: this.accordionProvider.variant === s.GHOST,
150
- [`adl-accordion-item--${c.GROUPED}`]: this.accordionProvider.grouped,
151
- [`adl-accordion-item--${c.SEPARATE}`]: !this.accordionProvider.grouped
152
- };
153
- },
154
- shouldShowIcon() {
155
- return !!this.$slots.default;
156
- },
157
- shouldShowTitle() {
158
- return !!this.$slots.title;
159
- },
160
- shouldShowSubtitle() {
161
- return !!this.$slots.subtitle;
33
+ title: {
34
+ type: String,
35
+ required: !0
162
36
  },
163
- shouldShowPicture() {
164
- return !!this.$slots.picture;
37
+ /**
38
+ * Controls if the content is visible or hidden.
39
+ */
40
+ isExpanded: {
41
+ type: Boolean,
42
+ default: !1
165
43
  }
166
44
  },
167
- created() {
168
- this.item = this.accordionProvider.registerItem();
169
- },
170
- methods: {
171
- toggle() {
172
- this.showContent ? this.accordionProvider.close(this.item.id) : this.accordionProvider.open(this.item.id);
173
- },
174
- start(e) {
175
- e.style.height = `${e.scrollHeight}px`;
176
- },
177
- end(e) {
178
- e.style.height = "";
179
- }
180
- }
181
- });
182
- const G = ["aria-expanded", "aria-controls"], B = {
183
- key: 0,
184
- "aria-hidden": "true"
185
- }, D = { class: "adl-accordion-item__header--main-content" }, H = {
186
- key: 0,
187
- "aria-hidden": "true",
188
- class: "adl-accordion-item__picture",
189
- "data-testid": "adl-accordion-item-picture"
190
- }, L = {
191
- key: 0,
192
- class: "adl-accordion-item__title"
193
- }, N = {
194
- key: 1,
195
- class: "adl-accordion-item__subtitle"
196
- }, j = {
197
- key: 1,
198
- "aria-hidden": "true",
199
- class: "adl-accordion-item__caret",
200
- "data-testid": "accordion-item-icon-show"
201
- }, q = {
202
- key: 2,
203
- "aria-hidden": "true",
204
- class: "adl-accordion-item__caret",
205
- "data-testid": "accordion-item-icon-hide"
206
- }, Y = ["id"], F = { class: "adl-accordion-item__description" };
207
- function M(e, t, n, l, f, $) {
208
- const y = u("chevron-up"), I = u("chevron-down");
209
- return o(), i("div", {
210
- class: p(["adl-accordion-item", e.conditionalClasses]),
211
- "data-testid": "accordion-item"
212
- }, [
213
- r("h2", null, [
214
- r("button", {
215
- type: "button",
216
- "aria-expanded": `${e.showContent}`,
217
- "aria-controls": e.item.id,
218
- class: "adl-accordion-item__header",
219
- onClick: t[0] || (t[0] = (...b) => e.toggle && e.toggle(...b))
220
- }, [
221
- e.shouldShowIcon ? (o(), i("span", B, [
222
- d(e.$slots, "default", {}, void 0, !0)
223
- ])) : a("", !0),
224
- r("span", D, [
225
- e.shouldShowPicture ? (o(), i("div", H, [
226
- d(e.$slots, "picture", {}, void 0, !0)
227
- ])) : a("", !0),
228
- r("div", null, [
229
- e.shouldShowTitle ? (o(), i("div", L, [
230
- d(e.$slots, "title", {}, void 0, !0)
231
- ])) : a("", !0),
232
- e.shouldShowSubtitle ? (o(), i("div", N, [
233
- d(e.$slots, "subtitle", {}, void 0, !0)
234
- ])) : a("", !0)
235
- ])
45
+ emits: ["update:is-expanded"],
46
+ setup(a, { emit: l }) {
47
+ const i = a, _ = "b-accordion-item__animation--content", p = r(null), t = r(i.isExpanded), s = r(null), u = I("accordionItemButton"), m = I("accordionItemContent"), v = B(E, "default"), N = () => {
48
+ var n;
49
+ const o = ((n = p.value) == null ? void 0 : n.scrollHeight) || null;
50
+ s.value = t.value ? `${o}px` : "0";
51
+ };
52
+ return f(
53
+ () => i.isExpanded,
54
+ (o) => {
55
+ t.value = o;
56
+ }
57
+ ), f(
58
+ t,
59
+ async (o) => {
60
+ l("update:is-expanded", o), await $(), N();
61
+ },
62
+ { immediate: !0 }
63
+ ), (o, n) => (c(), x("div", K, [
64
+ b(e(R), {
65
+ el: "h3",
66
+ variant: e(v) === "small" ? "body" : "title",
67
+ strongest: e(v) === "small"
68
+ }, {
69
+ default: y(() => [
70
+ d("button", {
71
+ id: e(u),
72
+ "aria-controls": e(m),
73
+ "aria-expanded": `${t.value}`,
74
+ type: "button",
75
+ class: "b-accordion-item__button",
76
+ onClick: n[0] || (n[0] = (F) => t.value = !t.value)
77
+ }, [
78
+ t.value ? (c(), h(e(V), {
79
+ key: 0,
80
+ class: "b-accordion-item__icon",
81
+ "svg-title": "collapse",
82
+ "aria-hidden": "true"
83
+ })) : (c(), h(e(j), {
84
+ key: 1,
85
+ class: "b-accordion-item__icon",
86
+ "svg-title": "expand",
87
+ "aria-hidden": "true"
88
+ })),
89
+ w(" " + D(a.title), 1)
90
+ ], 8, L)
236
91
  ]),
237
- e.showContent ? (o(), i("span", j, [
238
- h(y, { "svg-title": "show accordion item" })
239
- ])) : a("", !0),
240
- e.showContent ? a("", !0) : (o(), i("span", q, [
241
- h(I, { "svg-title": "hide accordion item" })
242
- ]))
243
- ], 8, G)
244
- ]),
245
- h(w, {
246
- name: "adl-accordion-item",
247
- onEnter: e.start,
248
- onAfterEnter: e.end,
249
- onBeforeLeave: e.start,
250
- onAfterLeave: e.end
251
- }, {
252
- default: C(() => [
253
- S(r("div", {
254
- id: e.item.id,
255
- class: "adl-accordion-item__content"
256
- }, [
257
- r("div", F, [
258
- d(e.$slots, "content", {}, void 0, !0)
92
+ _: 1
93
+ }, 8, ["variant", "strongest"]),
94
+ b(O, { name: _ }, {
95
+ default: y(() => [
96
+ z(d("div", {
97
+ id: e(m),
98
+ "aria-labelledby": e(u),
99
+ role: "region",
100
+ class: "b-accordion-item__container",
101
+ style: A(s.value ? { "max-height": s.value } : {})
102
+ }, [
103
+ d("div", {
104
+ ref_key: "contentDiv",
105
+ ref: p,
106
+ class: "b-accordion-item__content"
107
+ }, [
108
+ S(o.$slots, "default", {}, void 0, !0)
109
+ ], 512)
110
+ ], 12, M), [
111
+ [H, t.value]
259
112
  ])
260
- ], 8, Y), [
261
- [T, e.showContent]
262
- ])
263
- ]),
264
- _: 3
265
- }, 8, ["onEnter", "onAfterEnter", "onBeforeLeave", "onAfterLeave"])
266
- ], 2);
267
- }
268
- const W = /* @__PURE__ */ _(U, [["render", M], ["__scopeId", "data-v-6825b862"]]);
113
+ ]),
114
+ _: 3
115
+ })
116
+ ]));
117
+ }
118
+ });
119
+ const te = /* @__PURE__ */ C(Z, [["__scopeId", "data-v-bb9edb27"]]);
269
120
  export {
270
- Q as AdlAccordion,
271
- W as AdlAccordionItem,
272
- s as AdlAccordionVariant
121
+ ee as BentoAccordion,
122
+ te as BentoAccordionItem
273
123
  };
274
124
  //# sourceMappingURL=accordion.js.map