@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
package/dist/modal.js CHANGED
@@ -1,251 +1,14 @@
1
- import { defineComponent as $, useAttrs as U, ref as J, computed as m, watch as X, onMounted as G, resolveComponent as f, openBlock as i, createElementBlock as I, createElementVNode as E, normalizeClass as z, withKeys as Z, createVNode as M, withCtx as n, normalizeStyle as P, renderSlot as s, createCommentVNode as h, createBlock as y, mergeProps as V, createSlots as K, toRefs as x, createTextVNode as ee, toDisplayString as oe, resolveDynamicComponent as te } from "vue";
2
- import { B as ne, a as _ } from "./chunks/button.e1c39f66.js";
3
- import { B as ae, a as le, b as se } from "./chunks/index.222d29b0.js";
4
- import { BentoDivider as ie } from "./divider.js";
5
- import { B as de } from "./chunks/index.13949709.js";
6
- import { u as k } from "./chunks/use-has-slot.068222e6.js";
7
- import { u as W } from "./chunks/i18n.6c402773.js";
8
- import { C as re } from "./chunks/cross.5c36a670.js";
9
- import { G as ue, a as ce } from "./chunks/grid-layout.a30855ff.js";
10
- import { _ as N } from "./chunks/_plugin-vue_export-helper.dad06003.js";
11
- import { F as me } from "./chunks/footer-actions.0f640f87.js";
12
- import { B as fe, c as ye } from "./chunks/button-actions.54e28e75.js";
13
- import "./assets/index12.css";
14
- var w = /* @__PURE__ */ ((e) => (e.DEFAULT = "BentoModalDefault", e.DIALOG = "BentoModalDialog", e))(w || {}), O = /* @__PURE__ */ ((e) => (e.SMALL = "small", e.MEDIUM = "medium", e.LARGE = "large", e))(O || {}), B = /* @__PURE__ */ ((e) => (e.SMALLER = "smaller", e.EQUAL = "equal", e.BIGGER = "bigger", e))(B || {}), T = /* @__PURE__ */ ((e) => (e.DIALOG = "dialog", e.ALERT_DIALOG = "alertdialog", e))(T || {}), g = /* @__PURE__ */ ((e) => (e.CONFIRMATION = "confirmation", e.DESTRUCTIVE = "destructive", e.INFO = "info", e.ACKNOWLEDGEMENT = "acknowledgement", e))(g || {}), p = /* @__PURE__ */ ((e) => (e.CLOSE_MODAL = "close-modal", e))(p || {});
15
- const q = {
16
- "en-US": {
17
- ariaLabelFallback: "modal"
18
- }
19
- }, pe = $({
20
- i18n: { messages: q },
21
- name: "base-modal",
22
- components: { CrossIcon: re, BentoTypography: ae, BentoButton: ne, BentoDivider: ie, BentoFocusTrap: de, GridLayout: ue },
23
- props: {
24
- /**
25
- * If a column layout is provided, it renders the respective left column width variant. This can be smaller than the second column, the same size as the second column or bigger than the second column.
26
- */
27
- columnsSize: {
28
- type: String,
29
- default: B.SMALLER
30
- },
31
- /**
32
- * If provided, manages the padding of the whole modal container
33
- */
34
- customPadding: { type: String, default: null },
35
- /**
36
- * Hides a cross icon on the right side of the title
37
- */
38
- hideCloseButton: { type: Boolean, required: !0 },
39
- /**
40
- * Sets the open attribute on the dialog element, use isOpen instead to toggle modal visbility.
41
- */
42
- initiallyOpen: { type: Boolean, default: !1 },
43
- /**
44
- * If set to true, it allows the modal to be closed by clicking outside of it
45
- */
46
- isDismissible: { type: Boolean, required: !0 },
47
- /**
48
- * Controls the modal's state from the outside. Set it to true to open the modal
49
- */
50
- isOpen: { type: Boolean, required: !0 },
51
- /**
52
- * Defines whether the modal will be an alert modal
53
- */
54
- modalRole: { type: String, default: T.DIALOG },
55
- /**
56
- * Allows the inner elments to overflow the dialog
57
- */
58
- overflowVisible: { type: Boolean, default: !1 },
59
- /**
60
- * Sets the width of the modal
61
- */
62
- size: {
63
- type: String,
64
- default: O.SMALL
65
- },
66
- /**
67
- * If provided, renders the modal's content in a two-column layout an wth dividers separating its content
68
- */
69
- withColumnLayout: { type: Boolean, default: !1 }
70
- },
71
- emits: [p.CLOSE_MODAL],
72
- setup(e, { slots: l, emit: r }) {
73
- const { t: a } = W({ messages: q }), u = U(), o = k(l), t = J(null), c = m(() => {
74
- if (!e.customPadding)
75
- return {};
76
- const A = {
77
- paddingLeft: e.customPadding,
78
- paddingRight: e.customPadding
79
- }, R = { ...A, paddingTop: void 0, paddingBottom: void 0 };
80
- return o("default") || (R.paddingTop = e.customPadding), o("actions") || (R.paddingBottom = e.customPadding), {
81
- header: { ...A, paddingTop: e.customPadding },
82
- content: R,
83
- actions: { ...A, paddingBottom: e.customPadding }
84
- };
85
- }), C = m(
86
- () => u["aria-label"] ?? a("ariaLabelFallback")
87
- ), b = m(() => e.withColumnLayout && e.size === O.LARGE), L = () => {
88
- t.value.showModal();
89
- }, S = () => {
90
- r(p.CLOSE_MODAL);
91
- }, d = () => {
92
- t.value.close(), S();
93
- }, v = () => {
94
- d();
95
- }, D = ({ target: A }) => {
96
- A && A.tagName === T.DIALOG.toUpperCase() && d();
97
- }, Y = m(() => ({
98
- [`b-modal-base__container--${e.size}`]: e.size,
99
- "b-modal-base__container--visible": e.isOpen,
100
- "b-modal-base__container--overflow-visible": e.overflowVisible,
101
- "b-modal-base__container--column-layout": b.value
102
- })), H = m(() => ({
103
- "b-modal-base__content--column-layout": b.value,
104
- "b-modal-base__content--with-header": o("default"),
105
- "b-modal-base__content--with-actions": o("actions")
106
- })), Q = m(() => e.columnsSize === B.SMALLER ? [{ small: 4, medium: 4, large: 4 }] : e.columnsSize === B.BIGGER ? [{ small: 8, medium: 8, large: 8 }] : [{ small: 6, medium: 6, large: 6 }]);
107
- return X(
108
- () => [e.isOpen, t.value],
109
- () => {
110
- e.isOpen && t.value ? L() : t.value && d();
111
- },
112
- { immediate: !0 }
113
- ), G(() => {
114
- e.isOpen && t.value && L();
115
- }), {
116
- // Refs
117
- modal: t,
118
- computedAriaLabel: C,
119
- // Handling the state
120
- openModal: L,
121
- closeModalOnClickOutside: D,
122
- // Methods
123
- onCloseButtonClick: v,
124
- hasSlot: o,
125
- emitCloseEvent: S,
126
- t: a,
127
- // Styles
128
- modalConditionalClasses: Y,
129
- modalContentConditionalClasses: H,
130
- customPaddingStyles: c,
131
- hasColumnLayout: b,
132
- computedColumnWidth: Q,
133
- // Enums
134
- BentoButtonVariant: _,
135
- BentoTypographyElement: le,
136
- BentoTypographyVariant: se,
137
- GridLayoutContainerType: ce
138
- };
139
- }
140
- });
141
- const be = { class: "b-modal-base" }, ve = ["role", "aria-label", "open"], ge = { class: "b-modal-base__wrapper" }, Ce = { class: "b-modal-base__header" }, Le = {
142
- "aria-label": "modal actions",
143
- class: "b-modal-base__actions"
144
- };
145
- function he(e, l, r, a, u, o) {
146
- const t = f("bento-typography"), c = f("cross-icon"), C = f("bento-button"), b = f("bento-divider"), L = f("grid-layout"), S = f("bento-focus-trap");
147
- return i(), I("div", be, [
148
- E("dialog", {
149
- ref: "modal",
150
- role: e.modalRole,
151
- "aria-label": e.computedAriaLabel,
152
- class: z(["b-modal-base__container", e.modalConditionalClasses]),
153
- open: e.initiallyOpen,
154
- onClick: l[0] || (l[0] = (d) => e.isDismissible && e.closeModalOnClickOutside(d)),
155
- onKeydown: l[1] || (l[1] = Z((...d) => e.emitCloseEvent && e.emitCloseEvent(...d), ["esc"]))
156
- }, [
157
- M(S, null, {
158
- default: n(() => [
159
- E("div", ge, [
160
- e.hasSlot("default") || !e.hideCloseButton ? (i(), I("div", {
161
- key: 0,
162
- class: "b-modal-base__header-container",
163
- style: P(e.customPaddingStyles.header)
164
- }, [
165
- E("div", Ce, [
166
- M(t, {
167
- class: "b-modal-base__title",
168
- "aria-label": "base modal title",
169
- el: e.BentoTypographyElement.SPAN,
170
- variant: e.BentoTypographyVariant.TITLE,
171
- stronger: ""
172
- }, {
173
- default: n(() => [
174
- e.hasSlot("default") ? s(e.$slots, "default", { key: 0 }, void 0, !0) : h("", !0)
175
- ]),
176
- _: 3
177
- }, 8, ["el", "variant"]),
178
- e.hideCloseButton ? h("", !0) : (i(), y(C, {
179
- key: 0,
180
- class: "b-modal-base__close-button",
181
- variant: e.BentoButtonVariant.TERTIARY,
182
- type: "button",
183
- onClick: e.onCloseButtonClick
184
- }, {
185
- default: n(() => [
186
- M(c, { "svg-title": "close" })
187
- ]),
188
- _: 1
189
- }, 8, ["variant", "onClick"]))
190
- ]),
191
- e.hasColumnLayout ? (i(), y(b, {
192
- key: 0,
193
- class: "b-modal-base__divider"
194
- })) : h("", !0)
195
- ], 4)) : h("", !0),
196
- E("div", {
197
- class: z(["b-modal-base__content", e.modalContentConditionalClasses]),
198
- style: P(e.customPaddingStyles.content)
199
- }, [
200
- e.hasSlot("content") ? (i(), y(t, {
201
- key: 0,
202
- "aria-label": "base modal content",
203
- el: e.BentoTypographyElement.DIV,
204
- variant: e.BentoTypographyVariant.BODY,
205
- stronger: ""
206
- }, {
207
- default: n(() => [
208
- e.hasColumnLayout ? (i(), y(L, {
209
- key: 0,
210
- "column-width": e.computedColumnWidth,
211
- "container-type": e.GridLayoutContainerType.NORMAL,
212
- class: "b-modal-base__grid"
213
- }, {
214
- "col-1": n(() => [
215
- s(e.$slots, "content-col-1", {}, void 0, !0)
216
- ]),
217
- "col-2": n(() => [
218
- s(e.$slots, "content-col-2", {}, void 0, !0)
219
- ]),
220
- _: 3
221
- }, 8, ["column-width", "container-type"])) : s(e.$slots, "content", { key: 1 }, void 0, !0)
222
- ]),
223
- _: 3
224
- }, 8, ["el", "variant"])) : h("", !0)
225
- ], 6),
226
- e.hasSlot("actions") ? (i(), I("div", {
227
- key: 1,
228
- class: "b-modal-base__actions-container",
229
- style: P(e.customPaddingStyles.actions)
230
- }, [
231
- e.hasColumnLayout ? (i(), y(b, {
232
- key: 0,
233
- class: "b-modal-base__divider"
234
- })) : h("", !0),
235
- E("div", Le, [
236
- s(e.$slots, "actions", {}, void 0, !0)
237
- ])
238
- ], 4)) : h("", !0)
239
- ])
240
- ]),
241
- _: 3
242
- })
243
- ], 42, ve)
244
- ]);
245
- }
246
- const j = /* @__PURE__ */ N(pe, [["render", he], ["__scopeId", "data-v-3bd8058e"]]), Be = $({
1
+ import { defineComponent as S, onMounted as E, resolveComponent as v, openBlock as f, createBlock as p, mergeProps as M, createSlots as $, withCtx as l, renderSlot as a, createVNode as z, toRefs as R, computed as b, createTextVNode as q, toDisplayString as P, useAttrs as I, watch as F, resolveDynamicComponent as j } from "vue";
2
+ import { f as T, b as B, e as m, d as c, c as G, B as C, a as O } from "./chunks/base-modal.3ccb9eb5.js";
3
+ import { u as A } from "./chunks/use-has-slot.9fac7123.js";
4
+ import { F as U } from "./chunks/footer-actions.9537d0df.js";
5
+ import { _ as D } from "./chunks/_plugin-vue_export-helper.dad06003.js";
6
+ import { B as h } from "./chunks/button.a8462029.js";
7
+ import { u as K } from "./chunks/i18n.6c402773.js";
8
+ import { BentoButtonActions as W } from "./button.js";
9
+ const Y = S({
247
10
  name: "bento-modal-default",
248
- components: { BaseModal: j, FooterActions: me },
11
+ components: { BaseModal: T, FooterActions: U },
249
12
  props: {
250
13
  /**
251
14
  * Adds a cross icon on the right side of the alert
@@ -360,24 +123,25 @@ const j = /* @__PURE__ */ N(pe, [["render", he], ["__scopeId", "data-v-3bd8058e"
360
123
  default: !1
361
124
  }
362
125
  },
363
- emits: [p.CLOSE_MODAL],
364
- setup(e, { slots: l, emit: r }) {
365
- const a = k(l), u = () => {
366
- r(p.CLOSE_MODAL);
126
+ emits: [m.CLOSE_MODAL],
127
+ setup(e, { slots: i, emit: d }) {
128
+ const n = A(i), u = () => {
129
+ d(m.CLOSE_MODAL);
367
130
  };
368
- return G(() => {
369
- if (!(a("content") || a("content-col-1") && a("content-col-2")))
131
+ return E(() => {
132
+ if (!(n("content") || n("content-col-1") && n("content-col-2")))
370
133
  throw new Error("Bento Modal default variant requires content slot or column slots");
371
134
  }), {
372
135
  // Methods
373
136
  onCloseModal: u,
374
- hasSlot: a
137
+ hasSlot: n
375
138
  };
376
139
  }
377
140
  });
378
- function Se(e, l, r, a, u, o) {
379
- const t = f("footer-actions"), c = f("base-modal");
380
- return i(), y(c, V({ class: "b-modal-default" }, e.$attrs, {
141
+ function _(e, i, d, n, u, o) {
142
+ const t = v("footer-actions"), s = v("base-modal");
143
+ return f(), p(s, M({ class: "b-modal-default" }, e.$attrs, {
144
+ actions: e.actions,
381
145
  size: e.size,
382
146
  "hide-close-button": e.hideCloseButton,
383
147
  "custom-padding": e.customPadding,
@@ -387,30 +151,30 @@ function Se(e, l, r, a, u, o) {
387
151
  "with-column-layout": e.withColumnLayout,
388
152
  "initially-open": e.initiallyOpen,
389
153
  onCloseModal: e.onCloseModal
390
- }), K({
391
- "content-col-1": n(() => [
392
- s(e.$slots, "content-col-1")
154
+ }), $({
155
+ "content-col-1": l(() => [
156
+ a(e.$slots, "content-col-1")
393
157
  ]),
394
- "content-col-2": n(() => [
395
- s(e.$slots, "content-col-2")
158
+ "content-col-2": l(() => [
159
+ a(e.$slots, "content-col-2")
396
160
  ]),
397
- content: n(() => [
398
- s(e.$slots, "content")
161
+ content: l(() => [
162
+ a(e.$slots, "content")
399
163
  ]),
400
164
  _: 2
401
165
  }, [
402
166
  e.hasSlot("default") ? {
403
167
  name: "default",
404
- fn: n(() => [
405
- s(e.$slots, "default")
168
+ fn: l(() => [
169
+ a(e.$slots, "default")
406
170
  ]),
407
171
  key: "0"
408
172
  } : void 0,
409
173
  e.actions ? {
410
174
  name: "actions",
411
- fn: n(() => [
412
- s(e.$slots, "actions", {}, () => [
413
- M(t, {
175
+ fn: l(() => [
176
+ a(e.$slots, "actions", {}, () => [
177
+ z(t, {
414
178
  actions: e.actions,
415
179
  "actions-label": e.actionsLabel,
416
180
  "destructive-actions": e.destructiveActions
@@ -419,16 +183,16 @@ function Se(e, l, r, a, u, o) {
419
183
  ]),
420
184
  key: "1"
421
185
  } : void 0
422
- ]), 1040, ["size", "hide-close-button", "custom-padding", "is-dismissible", "is-open", "overflow-visible", "with-column-layout", "initially-open", "onCloseModal"]);
186
+ ]), 1040, ["actions", "size", "hide-close-button", "custom-padding", "is-dismissible", "is-open", "overflow-visible", "with-column-layout", "initially-open", "onCloseModal"]);
423
187
  }
424
- const Ae = /* @__PURE__ */ N(Be, [["render", Se]]), F = {
188
+ const H = /* @__PURE__ */ D(Y, [["render", _]]), w = {
425
189
  "en-US": {
426
190
  okButtonText: "OK"
427
191
  }
428
- }, Oe = $({
429
- i18n: { messages: F },
192
+ }, J = S({
193
+ i18n: { messages: w },
430
194
  name: "bento-modal-dialog",
431
- components: { BaseModal: j, BentoButtonActions: fe },
195
+ components: { BaseModal: T, BentoButtonActions: W },
432
196
  props: {
433
197
  /**
434
198
  * Controls the modal's state from the outside. Set it to true to open the modal
@@ -498,101 +262,98 @@ const Ae = /* @__PURE__ */ N(Be, [["render", Se]]), F = {
498
262
  default: !1
499
263
  }
500
264
  },
501
- emits: [p.CLOSE_MODAL],
502
- setup(e, { slots: l, emit: r }) {
503
- const { t: a } = W({ messages: F }), u = k(l), { actions: o, dialogType: t } = x(e), c = () => {
504
- r(p.CLOSE_MODAL);
505
- }, C = () => {
506
- c();
507
- }, b = m(() => [
265
+ emits: [m.CLOSE_MODAL],
266
+ setup(e, { slots: i, emit: d }) {
267
+ const { t: n } = K({ messages: w }), u = A(i), { actions: o, dialogType: t } = R(e), s = () => {
268
+ d(m.CLOSE_MODAL);
269
+ }, g = () => {
270
+ s();
271
+ }, k = b(() => [
508
272
  {
509
- title: a("okButtonText"),
510
- event: C,
511
- variant: _.SECONDARY
273
+ title: n("okButtonText"),
274
+ event: g,
275
+ variant: h.SECONDARY
512
276
  }
513
- ]), L = m(() => {
514
- var D;
515
- const d = {
277
+ ]), N = b(() => {
278
+ var L;
279
+ const y = {
516
280
  title: "Cancel",
517
- event: C
518
- }, v = (D = o == null ? void 0 : o.value) == null ? void 0 : D[0];
519
- return t.value === g.DESTRUCTIVE ? v.critical = !0 : t.value === g.INFO && (v.variant = _.SECONDARY), [v, d];
520
- }), S = m(() => ({
281
+ event: g
282
+ }, r = (L = o == null ? void 0 : o.value) == null ? void 0 : L[0];
283
+ return t.value === c.DESTRUCTIVE ? r.critical = !0 : t.value === c.INFO && (r.variant = h.SECONDARY), [r, y];
284
+ }), V = b(() => ({
521
285
  [`b-modal-dialog--${t.value}`]: t.value
522
286
  }));
523
- return G(() => {
524
- var d, v;
287
+ return E(() => {
288
+ var y, r;
525
289
  if (!u("default") || !e.content)
526
290
  throw new Error("Bento Modal Dialog requires header title and content");
527
- if (((d = o == null ? void 0 : o.value) == null ? void 0 : d.length) > 1)
291
+ if (((y = o == null ? void 0 : o.value) == null ? void 0 : y.length) > 1)
528
292
  throw new Error("Not more than 1 action button may be provided to Modal Dialog");
529
- if (t.value !== g.ACKNOWLEDGEMENT && !(o != null && o.value))
293
+ if (t.value !== c.ACKNOWLEDGEMENT && !(o != null && o.value))
530
294
  throw new Error(
531
295
  "Modal Dialog, except ACKNOWLEDGEMENT type, always has to contain one action button"
532
296
  );
533
- if (t.value === g.ACKNOWLEDGEMENT && ((v = o == null ? void 0 : o.value) != null && v.length))
297
+ if (t.value === c.ACKNOWLEDGEMENT && ((r = o == null ? void 0 : o.value) != null && r.length))
534
298
  throw new Error("Acknowledgement Modal Dialog does not accept action buttons");
535
299
  }), {
536
300
  // Values
537
- dialogActions: L,
538
- acknowledgementDialogActions: b,
301
+ dialogActions: N,
302
+ acknowledgementDialogActions: k,
539
303
  // Methods
540
- onCloseModal: c,
541
- onCloseActionButton: C,
304
+ onCloseModal: s,
305
+ onCloseActionButton: g,
542
306
  // Styles
543
- modalDialogConditionalClasses: S,
307
+ modalDialogConditionalClasses: V,
544
308
  // Enums
545
- BentoModalRole: T,
546
- BentoModalSize: O,
547
- BentoButtonVariant: _,
548
- BentoModalDialogType: g,
549
- BentoButtonActionsLayout: ye
309
+ BentoModalRole: G
550
310
  };
551
311
  }
552
312
  });
553
- function Ee(e, l, r, a, u, o) {
554
- const t = f("bento-button-actions"), c = f("base-modal");
555
- return i(), y(c, V({
313
+ function Q(e, i, d, n, u, o) {
314
+ const t = v("bento-button-actions"), s = v("base-modal");
315
+ return f(), p(s, M({
556
316
  class: ["b-modal-dialog", e.modalDialogConditionalClasses],
317
+ actions: e.actions,
557
318
  "hide-close-button": !0,
558
- size: e.BentoModalSize.SMALL,
319
+ size: "small",
559
320
  "is-dismissible": e.isDismissible,
560
321
  "is-open": e.isOpen,
561
322
  "overflow-visible": e.overflowVisible,
562
323
  "modal-role": e.BentoModalRole.ALERT_DIALOG,
563
324
  "initially-open": e.initiallyOpen
564
325
  }, e.$attrs, { onCloseModal: e.onCloseModal }), {
565
- default: n(() => [
566
- s(e.$slots, "default")
326
+ default: l(() => [
327
+ a(e.$slots, "default")
567
328
  ]),
568
- content: n(() => [
569
- ee(oe(e.content), 1)
329
+ content: l(() => [
330
+ q(P(e.content), 1)
570
331
  ]),
571
- actions: n(() => [
572
- e.dialogType === e.BentoModalDialogType.ACKNOWLEDGEMENT ? (i(), y(t, {
332
+ actions: l(() => [
333
+ e.dialogType === "acknowledgement" ? (f(), p(t, {
573
334
  key: 0,
574
335
  actions: e.acknowledgementDialogActions,
575
- layout: e.BentoButtonActionsLayout.BUTTONS_END
576
- }, null, 8, ["actions", "layout"])) : (i(), y(t, {
336
+ layout: "buttons-end"
337
+ }, null, 8, ["actions"])) : (f(), p(t, {
577
338
  key: 1,
578
339
  actions: e.dialogActions,
579
- layout: e.BentoButtonActionsLayout.BUTTONS_END
580
- }, null, 8, ["actions", "layout"]))
340
+ layout: "buttons-end"
341
+ }, null, 8, ["actions"]))
581
342
  ]),
582
343
  _: 3
583
- }, 16, ["class", "size", "is-dismissible", "is-open", "overflow-visible", "modal-role", "initially-open", "onCloseModal"]);
344
+ }, 16, ["actions", "class", "is-dismissible", "is-open", "overflow-visible", "modal-role", "initially-open", "onCloseModal"]);
584
345
  }
585
- const De = /* @__PURE__ */ N(Oe, [["render", Ee]]), Me = $({
346
+ const X = /* @__PURE__ */ D(J, [["render", Q]]), Z = 500, x = S({
586
347
  name: "bento-modal",
587
- components: { BentoModalDefault: Ae, BentoModalDialog: De },
348
+ components: { BentoModalDefault: H, BentoModalDialog: X },
588
349
  props: {
589
350
  /**
590
351
  * Choose between default or dialog versions of modal
591
352
  */
592
353
  variant: {
593
354
  type: String,
594
- default: w.DEFAULT,
595
- validator: (e) => Object.values(w).includes(e)
355
+ default: C.DEFAULT,
356
+ validator: (e) => Object.values(C).includes(e)
596
357
  },
597
358
  // Shared Modal Default and Modal Default props
598
359
  /**
@@ -703,8 +464,8 @@ const De = /* @__PURE__ */ N(Oe, [["render", Ee]]), Me = $({
703
464
  */
704
465
  dialogType: {
705
466
  type: String,
706
- default: g.CONFIRMATION,
707
- validator: (e) => Object.values(g).includes(e)
467
+ default: c.CONFIRMATION,
468
+ validator: (e) => Object.values(c).includes(e)
708
469
  },
709
470
  /**
710
471
  * Text that will be displayed in the content section of Modal
@@ -714,10 +475,10 @@ const De = /* @__PURE__ */ N(Oe, [["render", Ee]]), Me = $({
714
475
  default: null
715
476
  }
716
477
  },
717
- emits: [p.CLOSE_MODAL],
718
- setup(e, { slots: l, emit: r }) {
719
- const a = U(), u = m(
720
- () => e.variant === w.DEFAULT ? {
478
+ emits: [m.CLOSE_MODAL],
479
+ setup(e, { slots: i, emit: d }) {
480
+ const n = I(), u = b(
481
+ () => e.variant === C.DEFAULT ? {
721
482
  hideCloseButton: e.hideCloseButton,
722
483
  size: e.size,
723
484
  customPadding: e.customPadding,
@@ -726,68 +487,72 @@ const De = /* @__PURE__ */ N(Oe, [["render", Ee]]), Me = $({
726
487
  isDismissible: e.isDismissible ?? !0,
727
488
  overflowVisible: e.overflowVisible,
728
489
  withColumnLayout: e.withColumnLayout,
729
- ...a
490
+ columnSize: e.columnsSize,
491
+ ...n
730
492
  } : {
731
493
  dialogType: e.dialogType,
732
494
  content: e.content,
733
495
  isDismissible: e.isDismissible ?? !1,
734
496
  overflowVisible: e.overflowVisible,
735
- ...a
497
+ ...n
736
498
  }
737
- );
738
- return {
739
- onCloseModal: () => {
740
- r(p.CLOSE_MODAL);
741
- },
499
+ ), o = () => {
500
+ d(m.CLOSE_MODAL);
501
+ };
502
+ return F(e.actions, () => {
503
+ var t, s;
504
+ ((s = (t = e.actions) == null ? void 0 : t[0]) == null ? void 0 : s.state) === "success" && setTimeout(o, Z);
505
+ }), {
506
+ onCloseModal: o,
742
507
  customProps: u,
743
- hasSlot: k(l)
508
+ hasSlot: A(i)
744
509
  };
745
510
  }
746
511
  });
747
- function _e(e, l, r, a, u, o) {
748
- return i(), y(te(e.variant), V({
512
+ function ee(e, i, d, n, u, o) {
513
+ return f(), p(j(e.variant), M({
749
514
  class: "b-modal",
750
515
  "is-open": e.isOpen,
751
516
  actions: e.actions
752
- }, e.customProps, { onCloseModal: e.onCloseModal }), K({ _: 2 }, [
517
+ }, e.customProps, { onCloseModal: e.onCloseModal }), $({ _: 2 }, [
753
518
  e.hasSlot("default") ? {
754
519
  name: "default",
755
- fn: n(() => [
756
- s(e.$slots, "default")
520
+ fn: l(() => [
521
+ a(e.$slots, "default")
757
522
  ]),
758
523
  key: "0"
759
524
  } : void 0,
760
525
  e.hasSlot("content-col-1") ? {
761
526
  name: "content-col-1",
762
- fn: n(() => [
763
- s(e.$slots, "content-col-1")
527
+ fn: l(() => [
528
+ a(e.$slots, "content-col-1")
764
529
  ]),
765
530
  key: "1"
766
531
  } : void 0,
767
532
  e.hasSlot("content-col-2") ? {
768
533
  name: "content-col-2",
769
- fn: n(() => [
770
- s(e.$slots, "content-col-2")
534
+ fn: l(() => [
535
+ a(e.$slots, "content-col-2")
771
536
  ]),
772
537
  key: "2"
773
538
  } : void 0,
774
539
  e.hasSlot("content") ? {
775
540
  name: "content",
776
- fn: n(() => [
777
- s(e.$slots, "content")
541
+ fn: l(() => [
542
+ a(e.$slots, "content")
778
543
  ]),
779
544
  key: "3"
780
545
  } : void 0
781
546
  ]), 1040, ["is-open", "actions", "onCloseModal"]);
782
547
  }
783
- const Fe = /* @__PURE__ */ N(Me, [["render", _e]]);
548
+ const ue = /* @__PURE__ */ D(x, [["render", ee]]);
784
549
  export {
785
- Fe as BentoModal,
550
+ ue as BentoModal,
786
551
  B as BentoModalColumnLayoutVariant,
787
- g as BentoModalDialogType,
788
- p as BentoModalEvent,
789
- T as BentoModalRole,
552
+ c as BentoModalDialogType,
553
+ m as BentoModalEvent,
554
+ G as BentoModalRole,
790
555
  O as BentoModalSize,
791
- w as BentoModalVariant
556
+ C as BentoModalVariant
792
557
  };
793
558
  //# sourceMappingURL=modal.js.map