@adyen/bento-vue3 1.11.1 → 1.13.1

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 (277) hide show
  1. package/dist/@types/components.d.ts +2 -0
  2. package/dist/@types/packages/vue2/src/components/avatar-image/avatar-image.vue.d.ts +1 -1
  3. package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.vue.d.ts +10 -22
  4. package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +1 -1
  5. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +34 -0
  6. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-scroller/use-scroller.d.ts +2 -0
  7. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +3 -1
  8. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +9 -0
  9. package/dist/@types/packages/vue2/src/components/date/date.vue.d.ts +1 -1
  10. package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.vue.d.ts +2 -2
  11. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +43 -34
  12. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +50 -1052
  13. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +7 -13
  14. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +4 -5
  15. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-avatar/index.d.ts +2 -0
  16. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +4 -5
  17. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/index.d.ts +2 -0
  18. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +4 -4
  19. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +4 -4
  20. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/index.d.ts +2 -0
  21. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +4 -5
  22. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/index.d.ts +2 -0
  23. package/dist/@types/packages/vue2/src/components/dropdown/composables/index.d.ts +2 -0
  24. package/dist/@types/packages/vue2/src/components/dropdown/composables/use-display-value.d.ts +2 -0
  25. package/dist/@types/packages/vue2/src/components/dropdown/composables/{useDisplayValue.types.d.ts → use-display-value.types.d.ts} +16 -0
  26. package/dist/@types/packages/vue2/src/components/dropdown/composables/{useKeyboardNavigation.d.ts → use-keyboard-navigation.d.ts} +3 -13
  27. package/dist/@types/packages/vue2/src/components/dropdown/composables/use-keyboard-navigation.types.d.ts +15 -0
  28. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +50 -2435
  29. package/dist/@types/packages/vue2/src/components/dropdown/index.d.ts +5 -4
  30. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +532 -12
  31. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +1 -0
  32. package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.types.d.ts +4 -1
  33. package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +1 -1
  34. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-chips/index.d.ts +1 -0
  35. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-chips/listbox-multi-select-chips.vue.d.ts +31 -0
  36. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +3 -4
  37. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/listbox-single-select.vue.d.ts +2 -2
  38. package/dist/@types/packages/vue2/src/components/internal/listbox/composables/useListboxKeyboardNavigation.d.ts +2 -2
  39. package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +1 -1
  40. package/dist/@types/packages/vue2/src/components/link/link.vue.d.ts +20 -13
  41. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.keys.d.ts +1 -0
  42. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +17 -61
  43. package/dist/@types/packages/vue2/src/components/modal/components/modal-default/modal-default.vue.d.ts +60 -50
  44. package/dist/@types/packages/vue2/src/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +40 -357
  45. package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +77 -84
  46. package/dist/@types/packages/vue2/src/components/pagination/pagination.vue.d.ts +1 -1
  47. package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +1 -1
  48. package/dist/@types/packages/vue2/src/components/radio-group/components/radio-button/index.d.ts +2 -0
  49. package/dist/@types/packages/vue2/src/components/radio-group/components/radio-button/radio-button.types.d.ts +1 -0
  50. package/dist/@types/packages/vue2/src/components/radio-group/components/radio-button/radio-button.vue.d.ts +24 -27
  51. package/dist/@types/packages/vue2/src/components/radio-group/index.d.ts +2 -1
  52. package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.keys.d.ts +1 -0
  53. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +3 -3
  54. package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +1 -1
  55. package/dist/@types/packages/vue2/src/components/tooltip/tooltip.vue.d.ts +5 -5
  56. package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.types.d.ts +6 -0
  57. package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.vue.d.ts +10 -0
  58. package/dist/@types/packages/vue2/src/templates/data-grid-template/index.d.ts +1 -0
  59. package/dist/accordion.js +2 -2
  60. package/dist/action-bar.js +5 -5
  61. package/dist/alert.js +26 -25
  62. package/dist/alert.js.map +1 -1
  63. package/dist/assets/base-modal.css +1 -1
  64. package/dist/assets/button.css +1 -1
  65. package/dist/assets/checkbox.css +1 -1
  66. package/dist/assets/controls-group.css +1 -1
  67. package/dist/assets/dropdown-default-textbox.css +1 -1
  68. package/dist/assets/dropdown.css +1 -1
  69. package/dist/assets/index.css +1 -1
  70. package/dist/assets/index10.css +1 -1
  71. package/dist/assets/index11.css +1 -1
  72. package/dist/assets/index12.css +1 -1
  73. package/dist/assets/index13.css +1 -1
  74. package/dist/assets/index14.css +1 -1
  75. package/dist/assets/index15.css +1 -1
  76. package/dist/assets/index16.css +1 -1
  77. package/dist/assets/index17.css +1 -1
  78. package/dist/assets/index18.css +1 -1
  79. package/dist/assets/index19.css +1 -1
  80. package/dist/assets/index2.css +1 -1
  81. package/dist/assets/index20.css +1 -1
  82. package/dist/assets/index21.css +1 -1
  83. package/dist/assets/index22.css +1 -1
  84. package/dist/assets/index23.css +1 -1
  85. package/dist/assets/index24.css +1 -1
  86. package/dist/assets/index25.css +1 -1
  87. package/dist/assets/index26.css +1 -1
  88. package/dist/assets/index27.css +1 -1
  89. package/dist/assets/index28.css +1 -1
  90. package/dist/assets/index29.css +1 -1
  91. package/dist/assets/index3.css +1 -1
  92. package/dist/assets/index30.css +1 -1
  93. package/dist/assets/index31.css +1 -1
  94. package/dist/assets/index32.css +1 -1
  95. package/dist/assets/index33.css +1 -1
  96. package/dist/assets/index34.css +1 -1
  97. package/dist/assets/index35.css +1 -1
  98. package/dist/assets/index36.css +1 -1
  99. package/dist/assets/index37.css +1 -1
  100. package/dist/assets/index38.css +1 -1
  101. package/dist/assets/index39.css +1 -1
  102. package/dist/assets/index4.css +1 -1
  103. package/dist/assets/index40.css +1 -1
  104. package/dist/assets/index41.css +1 -1
  105. package/dist/assets/index42.css +1 -1
  106. package/dist/assets/index43.css +1 -1
  107. package/dist/assets/index44.css +1 -1
  108. package/dist/assets/index45.css +1 -1
  109. package/dist/assets/index46.css +1 -1
  110. package/dist/assets/index5.css +1 -1
  111. package/dist/assets/index6.css +1 -1
  112. package/dist/assets/index7.css +1 -1
  113. package/dist/assets/index8.css +1 -1
  114. package/dist/assets/index9.css +1 -1
  115. package/dist/assets/listbox.css +1 -1
  116. package/dist/avatar-image.js +1 -1
  117. package/dist/badge.js +1 -1
  118. package/dist/button.js +99 -111
  119. package/dist/button.js.map +1 -1
  120. package/dist/card.js +25 -24
  121. package/dist/card.js.map +1 -1
  122. package/dist/checkbox.js +6 -6
  123. package/dist/chunks/arrow-left.81a91b8f.js.map +1 -1
  124. package/dist/chunks/{base-button.4d6b7c34.js → base-button.35d84224.js} +2 -2
  125. package/dist/chunks/{base-button.4d6b7c34.js.map → base-button.35d84224.js.map} +1 -1
  126. package/dist/chunks/base-modal.c4045ec6.js +287 -0
  127. package/dist/chunks/base-modal.c4045ec6.js.map +1 -0
  128. package/dist/chunks/{button-actions-with-menu.079a0d99.js → button-actions-with-menu.b3130fc5.js} +3 -3
  129. package/dist/chunks/{button-actions-with-menu.079a0d99.js.map → button-actions-with-menu.b3130fc5.js.map} +1 -1
  130. package/dist/chunks/{button.aaaf4f39.js → button.9a51e27a.js} +24 -24
  131. package/dist/chunks/{button.aaaf4f39.js.map → button.9a51e27a.js.map} +1 -1
  132. package/dist/chunks/{calendar.16c037d0.js → calendar.ac3ea3d9.js} +69 -68
  133. package/dist/chunks/{calendar.16c037d0.js.map → calendar.ac3ea3d9.js.map} +1 -1
  134. package/dist/chunks/{checkbox.e0a40285.js → checkbox.093e5288.js} +3 -3
  135. package/dist/chunks/checkbox.093e5288.js.map +1 -0
  136. package/dist/chunks/checkmark-circle-fill.c45a999d.js.map +1 -1
  137. package/dist/chunks/checkmark-small.c79220d9.js.map +1 -1
  138. package/dist/chunks/checkmark.eb3c7a06.js.map +1 -1
  139. package/dist/chunks/chevron-left.4ee92950.js.map +1 -1
  140. package/dist/chunks/chevron-up.46afb34c.js.map +1 -1
  141. package/dist/chunks/{controls-group.db70c0aa.js → controls-group.f24676ab.js} +4 -4
  142. package/dist/chunks/{controls-group.db70c0aa.js.map → controls-group.f24676ab.js.map} +1 -1
  143. package/dist/chunks/{copy.541babaa.js → copy.d5ee2f1a.js} +4 -4
  144. package/dist/chunks/copy.d5ee2f1a.js.map +1 -0
  145. package/dist/chunks/cross-circle-fill.1abec1a2.js.map +1 -1
  146. package/dist/chunks/cross-small.b85406fe.js +29 -0
  147. package/dist/chunks/cross-small.b85406fe.js.map +1 -0
  148. package/dist/chunks/cross.26509efc.js.map +1 -1
  149. package/dist/chunks/dropdown-default-textbox.3350778f.js +399 -0
  150. package/dist/chunks/dropdown-default-textbox.3350778f.js.map +1 -0
  151. package/dist/chunks/dropdown.01c80ffd.js +902 -0
  152. package/dist/chunks/dropdown.01c80ffd.js.map +1 -0
  153. package/dist/chunks/{field-label.f255a2a0.js → field-label.a23f17b5.js} +2 -2
  154. package/dist/chunks/{field-label.f255a2a0.js.map → field-label.a23f17b5.js.map} +1 -1
  155. package/dist/chunks/{fixed-scroller.ffefd7c0.js → fixed-scroller.f6bc3063.js} +2 -2
  156. package/dist/chunks/{fixed-scroller.ffefd7c0.js.map → fixed-scroller.f6bc3063.js.map} +1 -1
  157. package/dist/chunks/{footer-actions.2a632236.js → footer-actions.2340bf71.js} +3 -3
  158. package/dist/chunks/{footer-actions.2a632236.js.map → footer-actions.2340bf71.js.map} +1 -1
  159. package/dist/chunks/{index.125363be.js → index.01e085bf.js} +5 -4
  160. package/dist/chunks/{index.125363be.js.map → index.01e085bf.js.map} +1 -1
  161. package/dist/chunks/{index.649a3566.js → index.2f746572.js} +3 -3
  162. package/dist/chunks/{index.649a3566.js.map → index.2f746572.js.map} +1 -1
  163. package/dist/chunks/{index.3497f521.js → index.59f8058f.js} +6 -6
  164. package/dist/chunks/{index.3497f521.js.map → index.59f8058f.js.map} +1 -1
  165. package/dist/chunks/{index.12eca89b.js → index.5c07d389.js} +7 -7
  166. package/dist/chunks/index.5c07d389.js.map +1 -0
  167. package/dist/chunks/{index.8b38a99a.js → index.83ca2d5c.js} +332 -329
  168. package/dist/chunks/index.83ca2d5c.js.map +1 -0
  169. package/dist/chunks/{index.018a2e8e.js → index.8a92a332.js} +2 -2
  170. package/dist/chunks/{index.018a2e8e.js.map → index.8a92a332.js.map} +1 -1
  171. package/dist/chunks/{index.3ff09589.js → index.8be283d5.js} +2 -2
  172. package/dist/chunks/{index.3ff09589.js.map → index.8be283d5.js.map} +1 -1
  173. package/dist/chunks/{index.c7208e0a.js → index.a56038f2.js} +2 -2
  174. package/dist/chunks/{index.c7208e0a.js.map → index.a56038f2.js.map} +1 -1
  175. package/dist/chunks/{index.5a4a8562.js → index.cb2167c3.js} +5 -5
  176. package/dist/chunks/{index.5a4a8562.js.map → index.cb2167c3.js.map} +1 -1
  177. package/dist/chunks/{index.953361ab.js → index.e3dba813.js} +3 -3
  178. package/dist/chunks/{index.953361ab.js.map → index.e3dba813.js.map} +1 -1
  179. package/dist/chunks/index.eba55960.js +112 -0
  180. package/dist/chunks/index.eba55960.js.map +1 -0
  181. package/dist/chunks/{info-filled.e591599f.js → info-filled.a6f9d7d0.js} +19 -42
  182. package/dist/chunks/info-filled.a6f9d7d0.js.map +1 -0
  183. package/dist/chunks/{listbox-option-tag.03a1abe8.js → listbox-option-tag.8e75f1a7.js} +3 -3
  184. package/dist/chunks/{listbox-option-tag.03a1abe8.js.map → listbox-option-tag.8e75f1a7.js.map} +1 -1
  185. package/dist/chunks/listbox.e4f1d305.js +1466 -0
  186. package/dist/chunks/listbox.e4f1d305.js.map +1 -0
  187. package/dist/chunks/{loading-button.8fc65871.js → loading-button.7167caaf.js} +2 -2
  188. package/dist/chunks/{loading-button.8fc65871.js.map → loading-button.7167caaf.js.map} +1 -1
  189. package/dist/chunks/refresh.bd60f6a8.js.map +1 -1
  190. package/dist/chunks/search.ade93bda.js.map +1 -1
  191. package/dist/chunks/sidepanel.keys.3f8d69c1.js +7 -0
  192. package/dist/chunks/sidepanel.keys.3f8d69c1.js.map +1 -0
  193. package/dist/chunks/{tooltip.3ffa311a.js → tooltip.1ee20c7d.js} +3 -3
  194. package/dist/chunks/{tooltip.3ffa311a.js.map → tooltip.1ee20c7d.js.map} +1 -1
  195. package/dist/chunks/{useCountryItems.d2a1f224.js → use-country-items.d2a1f224.js} +1 -1
  196. package/dist/chunks/use-country-items.d2a1f224.js.map +1 -0
  197. package/dist/code-snippet.js +7 -7
  198. package/dist/code-snippet.js.map +1 -1
  199. package/dist/country.js +2 -2
  200. package/dist/currency.js +1 -1
  201. package/dist/data-grid.js +1066 -1048
  202. package/dist/data-grid.js.map +1 -1
  203. package/dist/date-picker.js +35 -34
  204. package/dist/date-picker.js.map +1 -1
  205. package/dist/date-range-picker.js +2 -2
  206. package/dist/date.js +1 -1
  207. package/dist/divider.js +1 -1
  208. package/dist/dropdown.js +122 -174
  209. package/dist/dropdown.js.map +1 -1
  210. package/dist/empty-state.js +3 -3
  211. package/dist/filter-bar.js +642 -626
  212. package/dist/filter-bar.js.map +1 -1
  213. package/dist/focus-trap.js +1 -1
  214. package/dist/form-layout.js +2 -2
  215. package/dist/header.js +3 -3
  216. package/dist/index.js +255 -246
  217. package/dist/index.js.map +1 -1
  218. package/dist/info-icon.js +3 -3
  219. package/dist/info-icon.js.map +1 -1
  220. package/dist/input-field.js +3 -3
  221. package/dist/internal.js +7 -7
  222. package/dist/link.js +3 -70
  223. package/dist/link.js.map +1 -1
  224. package/dist/loading-indicator.js +1 -1
  225. package/dist/menu.js +1 -1
  226. package/dist/modal.js +297 -404
  227. package/dist/modal.js.map +1 -1
  228. package/dist/pagination.js +122 -122
  229. package/dist/pagination.js.map +1 -1
  230. package/dist/payment-method.js +2 -2
  231. package/dist/popover.js +1 -1
  232. package/dist/popper-container.js +1 -1
  233. package/dist/radio-group.js +155 -177
  234. package/dist/radio-group.js.map +1 -1
  235. package/dist/search-bar.js +2 -2
  236. package/dist/secondary-nav.js +2 -2
  237. package/dist/segmented-control.js +3 -3
  238. package/dist/sidepanel.js +98 -95
  239. package/dist/sidepanel.js.map +1 -1
  240. package/dist/status.js +2 -2
  241. package/dist/stepper.js +3 -3
  242. package/dist/stepper.js.map +1 -1
  243. package/dist/structured-list.js +1 -1
  244. package/dist/summary-grid.js +3 -3
  245. package/dist/tabs.js +39 -39
  246. package/dist/tabs.js.map +1 -1
  247. package/dist/tag.js +3 -3
  248. package/dist/textarea.js +116 -112
  249. package/dist/textarea.js.map +1 -1
  250. package/dist/timeline.js +6 -6
  251. package/dist/timeline.js.map +1 -1
  252. package/dist/toast.js +8 -7
  253. package/dist/toast.js.map +1 -1
  254. package/dist/toggle.js +2 -2
  255. package/dist/tutorial.js +5 -5
  256. package/dist/tutorial.js.map +1 -1
  257. package/dist/typography.js +1 -1
  258. package/dist/web-types.json +1 -1
  259. package/package.json +2 -2
  260. package/dist/@types/packages/vue2/src/components/dropdown/composables/useDisplayValue.d.ts +0 -2
  261. package/dist/@types/packages/vue2/src/components/dropdown/composables/useDropdownSearchFilter.d.ts +0 -3
  262. package/dist/chunks/base-modal.77270ff6.js +0 -310
  263. package/dist/chunks/base-modal.77270ff6.js.map +0 -1
  264. package/dist/chunks/checkbox.e0a40285.js.map +0 -1
  265. package/dist/chunks/copy.541babaa.js.map +0 -1
  266. package/dist/chunks/dropdown-default-textbox.36318f33.js +0 -420
  267. package/dist/chunks/dropdown-default-textbox.36318f33.js.map +0 -1
  268. package/dist/chunks/dropdown.2d8c58f6.js +0 -993
  269. package/dist/chunks/dropdown.2d8c58f6.js.map +0 -1
  270. package/dist/chunks/index.12eca89b.js.map +0 -1
  271. package/dist/chunks/index.8b38a99a.js.map +0 -1
  272. package/dist/chunks/info-filled.e591599f.js.map +0 -1
  273. package/dist/chunks/listbox.362b7c50.js +0 -1419
  274. package/dist/chunks/listbox.362b7c50.js.map +0 -1
  275. package/dist/chunks/useCountryItems.d2a1f224.js.map +0 -1
  276. /package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/composables/{useDropdownOptionsListbox.d.ts → use-dropdown-options-listbox.d.ts} +0 -0
  277. /package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/composables/{useCountryItems.d.ts → use-country-items.d.ts} +0 -0
package/dist/modal.js CHANGED
@@ -1,74 +1,16 @@
1
- import { defineComponent as S, onMounted as E, resolveComponent as v, openBlock as p, createBlock as y, mergeProps as M, createSlots as $, withCtx as l, renderSlot as a, createVNode as R, toRefs as q, ref as P, computed as b, createTextVNode as I, toDisplayString as F, useAttrs as j, watch as G, resolveDynamicComponent as U } from "vue";
2
- import { f as T, b as B, e as m, d as f, c as K, B as g, a as L } from "./chunks/base-modal.77270ff6.js";
3
- import { u as A } from "./chunks/use-has-slot.4d98bf29.js";
4
- import { F as W } from "./chunks/footer-actions.2a632236.js";
5
- import { _ as O } from "./chunks/_plugin-vue_export-helper.dad06003.js";
6
- import { B as h } from "./chunks/button.aaaf4f39.js";
7
- import { u as Y } from "./chunks/i18n.6c402773.js";
8
- import { BentoButtonActions as H } from "./button.js";
9
- const _ = S({
10
- name: "bento-modal-default",
11
- components: { BaseModal: T, FooterActions: W },
1
+ import { b as A, f as T, d as m, c as q, a as O, B as w } from "./chunks/base-modal.c4045ec6.js";
2
+ import { e as ue } from "./chunks/base-modal.c4045ec6.js";
3
+ import { defineComponent as y, useSlots as h, onMounted as $, openBlock as B, createBlock as g, unref as n, mergeProps as C, createSlots as k, withCtx as i, renderSlot as a, createVNode as I, toRefs as P, ref as F, computed as S, createTextVNode as j, toDisplayString as G, useAttrs as U, watch as K, resolveDynamicComponent as W } from "vue";
4
+ import { u as D } from "./chunks/use-has-slot.4d98bf29.js";
5
+ import { F as Y } from "./chunks/footer-actions.2340bf71.js";
6
+ import { B as M } from "./chunks/button.9a51e27a.js";
7
+ import { u as H } from "./chunks/i18n.6c402773.js";
8
+ import { BentoButtonActions as L } from "./button.js";
9
+ const J = y({
10
+ name: "bento-modal-default"
11
+ }), Q = /* @__PURE__ */ y({
12
+ ...J,
12
13
  props: {
13
- /**
14
- * Adds a cross icon on the right side of the alert
15
- */
16
- /**
17
- * Controls the modal's state from the outside. Set it to true to open the modal
18
- */
19
- isOpen: {
20
- type: Boolean,
21
- required: !0
22
- },
23
- /**
24
- * If set to true, it allows the modal to be closed by clicking outside of it
25
- */
26
- isDismissible: {
27
- type: Boolean,
28
- required: !0
29
- },
30
- /**
31
- * If set to true, it will set overflow:visible to the modal, only recommended to be used with dropdown
32
- */
33
- overflowVisible: {
34
- type: Boolean,
35
- default: !1
36
- },
37
- /**
38
- * Hides a cross icon on the right side of the title
39
- */
40
- hideCloseButton: {
41
- type: Boolean,
42
- default: !1
43
- },
44
- /**
45
- * Sets the width of the modal
46
- */
47
- size: {
48
- type: String,
49
- required: !0
50
- },
51
- /**
52
- * If provided, manages the padding of the whole modal container
53
- */
54
- customPadding: {
55
- type: String,
56
- default: null
57
- },
58
- /**
59
- * If provided, renders the modal's content in a two-column layout an wth dividers separating its content
60
- */
61
- withColumnLayout: {
62
- type: Boolean,
63
- default: !1
64
- },
65
- /**
66
- * 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.
67
- */
68
- columnsSize: {
69
- type: String,
70
- default: B.SMALLER
71
- },
72
14
  /**
73
15
  * List of actions that will be used to render the buttons.
74
16
  * First element in the list will be rendered as "primary".
@@ -104,131 +46,117 @@ const _ = S({
104
46
  /**
105
47
  * Text label that is displayed left to the action buttons
106
48
  */
107
- actionsLabel: {
49
+ actionsLabel: { type: String, default: null },
50
+ /**
51
+ * If provided, manages the padding of the whole modal container
52
+ */
53
+ customPadding: { type: String, default: null },
54
+ /**
55
+ * 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.
56
+ */
57
+ columnsSize: {
108
58
  type: String,
109
- default: null
59
+ default: A.SMALLER
110
60
  },
111
61
  /**
112
62
  * If passed - sets first button color to red
113
63
  */
114
- destructiveActions: {
115
- type: Boolean,
116
- default: !1
117
- },
64
+ destructiveActions: { type: Boolean, default: !1 },
118
65
  /**
119
- * Sets the open attribute on the dialog element, use isOpen instead to toggle modal visbility.
66
+ * Hides a cross icon on the right side of the title
120
67
  */
121
- initiallyOpen: {
122
- type: Boolean,
123
- default: !1
124
- }
125
- },
126
- emits: [m.CLOSE_MODAL],
127
- setup(e, { slots: d, emit: u }) {
128
- const n = A(d), i = () => {
129
- u(m.CLOSE_MODAL);
130
- };
131
- return E(() => {
132
- if (!(n("content") || n("content-col-1") && n("content-col-2")))
133
- throw new Error("Bento Modal default variant requires content slot or column slots");
134
- }), {
135
- // Methods
136
- onCloseModal: i,
137
- hasSlot: n
138
- };
139
- }
140
- });
141
- function J(e, d, u, n, i, o) {
142
- const t = v("footer-actions"), s = v("base-modal");
143
- return p(), y(s, M({ class: "b-modal-default" }, e.$attrs, {
144
- actions: e.actions,
145
- size: e.size,
146
- "hide-close-button": e.hideCloseButton,
147
- "custom-padding": e.customPadding,
148
- "is-dismissible": e.isDismissible,
149
- "is-open": e.isOpen,
150
- "overflow-visible": e.overflowVisible,
151
- "with-column-layout": e.withColumnLayout,
152
- "initially-open": e.initiallyOpen,
153
- onCloseModal: e.onCloseModal
154
- }), $({
155
- "content-col-1": l(() => [
156
- a(e.$slots, "content-col-1")
157
- ]),
158
- "content-col-2": l(() => [
159
- a(e.$slots, "content-col-2")
160
- ]),
161
- content: l(() => [
162
- a(e.$slots, "content")
163
- ]),
164
- _: 2
165
- }, [
166
- e.hasSlot("default") ? {
167
- name: "default",
168
- fn: l(() => [
169
- a(e.$slots, "default")
170
- ]),
171
- key: "0"
172
- } : void 0,
173
- e.actions ? {
174
- name: "actions",
175
- fn: l(() => [
176
- a(e.$slots, "actions", {}, () => [
177
- R(t, {
178
- actions: e.actions,
179
- "actions-label": e.actionsLabel,
180
- "destructive-actions": e.destructiveActions
181
- }, null, 8, ["actions", "actions-label", "destructive-actions"])
182
- ])
183
- ]),
184
- key: "1"
185
- } : void 0
186
- ]), 1040, ["actions", "size", "hide-close-button", "custom-padding", "is-dismissible", "is-open", "overflow-visible", "with-column-layout", "initially-open", "onCloseModal"]);
187
- }
188
- const Q = /* @__PURE__ */ O(_, [["render", J]]), w = {
189
- "en-US": {
190
- okButtonText: "OK"
191
- }
192
- }, X = S({
193
- i18n: { messages: w },
194
- name: "bento-modal-dialog",
195
- components: { BaseModal: T, BentoButtonActions: H },
196
- props: {
68
+ hideCloseButton: { type: Boolean, default: !1 },
197
69
  /**
198
- * Controls the modal's state from the outside. Set it to true to open the modal
70
+ * Sets the open attribute on the dialog element, use isOpen instead to toggle modal visbility.
199
71
  */
200
- isOpen: {
201
- type: Boolean,
202
- required: !0
203
- },
72
+ initiallyOpen: { type: Boolean, default: !1 },
204
73
  /**
205
74
  * If set to true, it allows the modal to be closed by clicking outside of it
206
75
  */
207
- isDismissible: {
208
- type: Boolean,
209
- required: !0
210
- },
76
+ isDismissible: { type: Boolean, required: !0 },
77
+ /**
78
+ * Controls the modal's state from the outside. Set it to true to open the modal
79
+ */
80
+ isOpen: { type: Boolean, required: !0 },
211
81
  /**
212
82
  * If set to true, it will set overflow:visible to the modal, only recommended to be used with dropdown
213
83
  */
214
- overflowVisible: {
215
- type: Boolean,
216
- default: !1
217
- },
84
+ overflowVisible: { type: Boolean, default: !1 },
218
85
  /**
219
- * Sets different action buttons styling and appearance
86
+ * Sets the width of the modal
220
87
  */
221
- dialogType: {
88
+ size: {
222
89
  type: String,
223
90
  required: !0
224
91
  },
225
92
  /**
226
- * Text that is displayed in the content section of modal
93
+ * If provided, renders the modal's content in a two-column layout an wth dividers separating its content
227
94
  */
228
- content: {
229
- type: String,
230
- required: !0
231
- },
95
+ withColumnLayout: { type: Boolean, default: !1 }
96
+ },
97
+ emits: ["close-modal"],
98
+ setup(e, { emit: v }) {
99
+ const t = h(), d = D(t), p = () => {
100
+ v("close-modal");
101
+ };
102
+ return $(() => {
103
+ if (!(d("content") || d("content-col-1") && d("content-col-2")))
104
+ throw new Error("Bento Modal default variant requires content slot or column slots");
105
+ }), (l, o) => (B(), g(n(T), C({ class: "b-modal-default" }, l.$attrs, {
106
+ actions: e.actions,
107
+ size: e.size,
108
+ "hide-close-button": e.hideCloseButton,
109
+ "custom-padding": e.customPadding,
110
+ "is-dismissible": e.isDismissible,
111
+ "is-open": e.isOpen,
112
+ "overflow-visible": e.overflowVisible,
113
+ "with-column-layout": e.withColumnLayout,
114
+ "initially-open": e.initiallyOpen,
115
+ onCloseModal: p
116
+ }), k({
117
+ "content-col-1": i(() => [
118
+ a(l.$slots, "content-col-1")
119
+ ]),
120
+ "content-col-2": i(() => [
121
+ a(l.$slots, "content-col-2")
122
+ ]),
123
+ content: i(() => [
124
+ a(l.$slots, "content")
125
+ ]),
126
+ _: 2
127
+ }, [
128
+ n(d)("default") ? {
129
+ name: "default",
130
+ fn: i(() => [
131
+ a(l.$slots, "default")
132
+ ]),
133
+ key: "0"
134
+ } : void 0,
135
+ e.actions ? {
136
+ name: "actions",
137
+ fn: i(() => [
138
+ a(l.$slots, "actions", {}, () => [
139
+ I(n(Y), {
140
+ actions: e.actions,
141
+ "actions-label": e.actionsLabel,
142
+ "destructive-actions": e.destructiveActions
143
+ }, null, 8, ["actions", "actions-label", "destructive-actions"])
144
+ ])
145
+ ]),
146
+ key: "1"
147
+ } : void 0
148
+ ]), 1040, ["actions", "size", "hide-close-button", "custom-padding", "is-dismissible", "is-open", "overflow-visible", "with-column-layout", "initially-open"]));
149
+ }
150
+ }), N = {
151
+ "en-US": {
152
+ okButtonText: "OK"
153
+ }
154
+ }, X = y({
155
+ i18n: { messages: N },
156
+ name: "bento-modal-dialog"
157
+ }), Z = /* @__PURE__ */ y({
158
+ ...X,
159
+ props: {
232
160
  /**
233
161
  * List of actions that will be used to render the buttons.
234
162
  * Only 1 action button is allowed for Modal Dialog
@@ -255,138 +183,104 @@ const Q = /* @__PURE__ */ O(_, [["render", J]]), w = {
255
183
  default: null
256
184
  },
257
185
  /**
258
- * Sets the open attribute on the dialog element, use isOpen instead to toggle modal visbility.
186
+ * Text that is displayed in the content section of modal
259
187
  */
260
- initiallyOpen: {
261
- type: Boolean,
262
- default: !1
263
- }
264
- },
265
- emits: [m.CLOSE_MODAL],
266
- setup(e, { slots: d, emit: u }) {
267
- const { t: n } = Y({ messages: w }), i = A(d), { actions: o, dialogType: t } = q(e), s = P(null), k = () => {
268
- u(m.CLOSE_MODAL);
269
- }, C = (r) => {
270
- s.value.internalModalActionClose(r);
271
- }, N = b(() => [
272
- {
273
- title: n("okButtonText"),
274
- event: C,
275
- variant: h.SECONDARY
276
- }
277
- ]), V = b(() => {
278
- var D;
279
- const r = {
280
- title: "Cancel",
281
- event: C
282
- }, c = (D = o == null ? void 0 : o.value) == null ? void 0 : D[0];
283
- return t.value === f.DESTRUCTIVE ? c.critical = !0 : t.value === f.INFO && (c.variant = h.SECONDARY), [c, r];
284
- }), z = b(() => ({
285
- [`b-modal-dialog--${t.value}`]: t.value
286
- }));
287
- return E(() => {
288
- var r, c;
289
- if (!i("default") || !e.content && !i("content"))
290
- throw new Error("Bento Modal Dialog requires header title and content");
291
- if (((r = o == null ? void 0 : o.value) == null ? void 0 : r.length) > 1)
292
- throw new Error("Not more than 1 action button may be provided to Modal Dialog");
293
- if (t.value !== f.ACKNOWLEDGEMENT && !(o != null && o.value))
294
- throw new Error(
295
- "Modal Dialog, except ACKNOWLEDGEMENT type, always has to contain one action button"
296
- );
297
- if (t.value === f.ACKNOWLEDGEMENT && ((c = o == null ? void 0 : o.value) != null && c.length))
298
- throw new Error("Acknowledgement Modal Dialog does not accept action buttons");
299
- }), {
300
- // Refs
301
- modalRef: s,
302
- // Values
303
- dialogActions: V,
304
- acknowledgementDialogActions: N,
305
- // Methods
306
- onCloseModal: k,
307
- onCloseActionButton: C,
308
- // Styles
309
- modalDialogConditionalClasses: z,
310
- // Enums
311
- BentoModalRole: K
312
- };
313
- }
314
- });
315
- function Z(e, d, u, n, i, o) {
316
- const t = v("bento-button-actions"), s = v("base-modal");
317
- return p(), y(s, M({
318
- ref: "modalRef",
319
- class: ["b-modal-dialog", e.modalDialogConditionalClasses],
320
- actions: e.actions,
321
- "hide-close-button": !0,
322
- size: "small",
323
- "is-dismissible": e.isDismissible,
324
- "is-open": e.isOpen,
325
- "overflow-visible": e.overflowVisible,
326
- "modal-role": e.BentoModalRole.ALERT_DIALOG,
327
- "initially-open": e.initiallyOpen
328
- }, e.$attrs, { onCloseModal: e.onCloseModal }), {
329
- default: l(() => [
330
- a(e.$slots, "default")
331
- ]),
332
- content: l(() => [
333
- I(F(e.content), 1)
334
- ]),
335
- actions: l(() => [
336
- e.dialogType === "acknowledgement" ? (p(), y(t, {
337
- key: 0,
338
- actions: e.acknowledgementDialogActions,
339
- layout: "buttons-end"
340
- }, null, 8, ["actions"])) : (p(), y(t, {
341
- key: 1,
342
- actions: e.dialogActions,
343
- layout: "buttons-end"
344
- }, null, 8, ["actions"]))
345
- ]),
346
- _: 3
347
- }, 16, ["actions", "class", "is-dismissible", "is-open", "overflow-visible", "modal-role", "initially-open", "onCloseModal"]);
348
- }
349
- const x = /* @__PURE__ */ O(X, [["render", Z]]), ee = 500, oe = S({
350
- name: "bento-modal",
351
- components: { BentoModalDefault: Q, BentoModalDialog: x },
352
- props: {
188
+ content: { type: String, required: !0 },
353
189
  /**
354
- * Choose between default or dialog versions of modal
190
+ * Sets different action buttons styling and appearance
355
191
  */
356
- variant: {
192
+ dialogType: {
357
193
  type: String,
358
- default: g.DEFAULT,
359
- validator: (e) => Object.values(g).includes(e)
194
+ required: !0
360
195
  },
361
- // Shared Modal Default and Modal Default props
362
196
  /**
363
- * If set to true, it allows the modal to be closed without performing an action
197
+ * Sets the open attribute on the dialog element, use isOpen instead to toggle modal visbility.
364
198
  */
365
- isDismissible: {
366
- type: Boolean,
367
- default: null
368
- },
199
+ initiallyOpen: { type: Boolean, default: !1 },
369
200
  /**
370
- * If set to true, it will set overflow:visible to the modal, only recommended to be used with dropdown
201
+ * If set to true, it allows the modal to be closed by clicking outside of it
371
202
  */
372
- overflowVisible: {
373
- type: Boolean,
374
- default: !1
375
- },
203
+ isDismissible: { type: Boolean, required: !0 },
376
204
  /**
377
205
  * Controls the modal's state from the outside. Set it to true to open the modal
378
206
  */
379
- isOpen: {
380
- type: Boolean,
381
- default: !1
382
- },
207
+ isOpen: { type: Boolean, required: !0 },
383
208
  /**
384
- * Sets the open attribute on the dialog element, use isOpen instead to toggle modal visbility.
209
+ * If set to true, it will set overflow:visible to the modal, only recommended to be used with dropdown
385
210
  */
386
- initiallyOpen: {
387
- type: Boolean,
388
- default: !1
389
- },
211
+ overflowVisible: { type: Boolean, default: !1 }
212
+ },
213
+ emits: ["close-modal"],
214
+ setup(e, { emit: v }) {
215
+ const t = e, { t: d } = H({ messages: N }), p = h(), l = D(p), { actions: o, dialogType: s } = P(t), b = F(null), c = () => {
216
+ v("close-modal");
217
+ }, f = (u) => {
218
+ b.value.internalModalActionClose(u);
219
+ }, V = S(() => [
220
+ {
221
+ title: d("okButtonText"),
222
+ event: f,
223
+ variant: M.SECONDARY
224
+ }
225
+ ]), z = S(() => {
226
+ var E;
227
+ const u = {
228
+ title: "Cancel",
229
+ event: f
230
+ }, r = (E = o == null ? void 0 : o.value) == null ? void 0 : E[0];
231
+ return s.value === m.DESTRUCTIVE ? r.critical = !0 : s.value === m.INFO && (r.variant = M.SECONDARY), [r, u];
232
+ }), R = S(() => ({
233
+ [`b-modal-dialog--${s.value}`]: s.value
234
+ }));
235
+ return $(() => {
236
+ var u, r;
237
+ if (!l("default") || !t.content && !l("content"))
238
+ throw new Error("Bento Modal Dialog requires header title and content");
239
+ if (((u = o == null ? void 0 : o.value) == null ? void 0 : u.length) > 1)
240
+ throw new Error("Not more than 1 action button may be provided to Modal Dialog");
241
+ if (s.value !== m.ACKNOWLEDGEMENT && !(o != null && o.value))
242
+ throw new Error("Modal Dialog, except ACKNOWLEDGEMENT type, always has to contain one action button");
243
+ if (s.value === m.ACKNOWLEDGEMENT && ((r = o == null ? void 0 : o.value) != null && r.length))
244
+ throw new Error("Acknowledgement Modal Dialog does not accept action buttons");
245
+ }), (u, r) => (B(), g(n(T), C({
246
+ ref_key: "modalRef",
247
+ ref: b,
248
+ class: ["b-modal-dialog", n(R)],
249
+ actions: n(o),
250
+ "hide-close-button": !0,
251
+ size: "small",
252
+ "is-dismissible": e.isDismissible,
253
+ "is-open": e.isOpen,
254
+ "overflow-visible": e.overflowVisible,
255
+ "modal-role": n(q).ALERT_DIALOG,
256
+ "initially-open": e.initiallyOpen
257
+ }, u.$attrs, { onCloseModal: c }), {
258
+ default: i(() => [
259
+ a(u.$slots, "default")
260
+ ]),
261
+ content: i(() => [
262
+ j(G(e.content), 1)
263
+ ]),
264
+ actions: i(() => [
265
+ n(s) === "acknowledgement" ? (B(), g(n(L), {
266
+ key: 0,
267
+ actions: n(V),
268
+ layout: "buttons-end"
269
+ }, null, 8, ["actions"])) : (B(), g(n(L), {
270
+ key: 1,
271
+ actions: n(z),
272
+ layout: "buttons-end"
273
+ }, null, 8, ["actions"]))
274
+ ]),
275
+ _: 3
276
+ }, 16, ["actions", "class", "is-dismissible", "is-open", "overflow-visible", "modal-role", "initially-open"]));
277
+ }
278
+ }), x = y({
279
+ components: { BentoModalDefault: Q, BentoModalDialog: Z }
280
+ }), ae = /* @__PURE__ */ y({
281
+ ...x,
282
+ __name: "modal",
283
+ props: {
390
284
  /**
391
285
  * List of actions that will be used to render the buttons.
392
286
  * First element in the list will be rendered as "primary".
@@ -416,157 +310,156 @@ const x = /* @__PURE__ */ O(X, [["render", Z]]), ee = 500, oe = S({
416
310
  type: Array,
417
311
  default: null
418
312
  },
419
- // Specific to Modal Default props
420
313
  /**
421
- * Hides a cross icon on the right side of the title
314
+ * Text label that is displayed left to the action buttons
422
315
  */
423
- hideCloseButton: {
424
- type: Boolean,
425
- default: !1
426
- },
316
+ actionsLabel: { type: String, default: null },
427
317
  /**
428
- * Sets the width of the modal
318
+ * Text that will be displayed in the content section of Modal
429
319
  */
430
- size: {
320
+ content: { type: String, default: null },
321
+ /**
322
+ * 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.
323
+ */
324
+ columnsSize: {
431
325
  type: String,
432
- default: L.SMALL,
433
- validator: (e) => Object.values(L).includes(e)
326
+ default: A.SMALLER,
327
+ validator: (e) => Object.values(A).includes(e)
434
328
  },
435
329
  /**
436
330
  * If provided, manages the padding of the whole modal container
437
331
  */
438
- customPadding: {
332
+ customPadding: { type: String, default: null },
333
+ /**
334
+ * If passed - sets first button color to red
335
+ */
336
+ destructiveActions: { type: Boolean, default: !1 },
337
+ /**
338
+ * Changes the visual styling of action buttons
339
+ */
340
+ dialogType: {
439
341
  type: String,
440
- default: null
342
+ default: m.CONFIRMATION,
343
+ validator: (e) => Object.values(m).includes(e)
441
344
  },
442
345
  /**
443
- * If provided, renders the modal's content in a two-column layout an wth dividers separating its content
346
+ * Hides a cross icon on the right side of the title
444
347
  */
445
- withColumnLayout: {
348
+ hideCloseButton: { type: Boolean, default: !1 },
349
+ /**
350
+ * If set to true, it allows the modal to be closed without performing an action
351
+ */
352
+ isDismissible: { type: Boolean, default: null },
353
+ /**
354
+ * Controls the modal's state from the outside. Set it to true to open the modal
355
+ */
356
+ isOpen: {
446
357
  type: Boolean,
447
358
  default: !1
448
359
  },
449
360
  /**
450
- * 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.
361
+ * Sets the open attribute on the dialog element, use isOpen instead to toggle modal visbility.
451
362
  */
452
- columnsSize: {
453
- type: String,
454
- default: B.SMALLER,
455
- validator: (e) => Object.values(B).includes(e)
456
- },
363
+ initiallyOpen: { type: Boolean, default: !1 },
457
364
  /**
458
- * Text label that is displayed left to the action buttons
365
+ * Sets the width of the modal
459
366
  */
460
- actionsLabel: {
367
+ size: {
461
368
  type: String,
462
- default: null
369
+ default: O.SMALL,
370
+ validator: (e) => Object.values(O).includes(e)
463
371
  },
464
372
  /**
465
- * If passed - sets first button color to red
373
+ * If set to true, it will set overflow:visible to the modal, only recommended to be used with dropdown
466
374
  */
467
- destructiveActions: {
468
- type: Boolean,
469
- default: !1
470
- },
471
- // Specific to Modal dialog props
375
+ overflowVisible: { type: Boolean, default: !1 },
472
376
  /**
473
- * Changes the visual styling of action buttons
377
+ * Choose between default or dialog versions of modal
474
378
  */
475
- dialogType: {
379
+ variant: {
476
380
  type: String,
477
- default: f.CONFIRMATION,
478
- validator: (e) => Object.values(f).includes(e)
381
+ default: w.DEFAULT,
382
+ validator: (e) => Object.values(w).includes(e)
479
383
  },
480
384
  /**
481
- * Text that will be displayed in the content section of Modal
385
+ * If provided, renders the modal's content in a two-column layout an wth dividers separating its content
482
386
  */
483
- content: {
484
- type: String,
485
- default: null
486
- }
387
+ withColumnLayout: { type: Boolean, default: !1 }
487
388
  },
488
- emits: [m.CLOSE_MODAL],
489
- setup(e, { slots: d, emit: u }) {
490
- const n = j(), i = b(
491
- () => e.variant === g.DEFAULT ? {
492
- hideCloseButton: e.hideCloseButton,
493
- size: e.size,
494
- customPadding: e.customPadding,
495
- actionsLabel: e.actionsLabel,
496
- destructiveActions: e.destructiveActions,
497
- isDismissible: e.isDismissible ?? !0,
498
- overflowVisible: e.overflowVisible,
499
- withColumnLayout: e.withColumnLayout,
500
- columnSize: e.columnsSize,
501
- ...n
389
+ emits: ["close-modal"],
390
+ setup(e, { emit: v }) {
391
+ const t = e, d = 500, p = h(), l = D(p), o = U(), s = S(
392
+ () => t.variant === w.DEFAULT ? {
393
+ hideCloseButton: t.hideCloseButton,
394
+ size: t.size,
395
+ customPadding: t.customPadding,
396
+ actionsLabel: t.actionsLabel,
397
+ destructiveActions: t.destructiveActions,
398
+ isDismissible: t.isDismissible ?? !0,
399
+ overflowVisible: t.overflowVisible,
400
+ withColumnLayout: t.withColumnLayout,
401
+ columnSize: t.columnsSize,
402
+ ...o
502
403
  } : {
503
- dialogType: e.dialogType,
504
- content: e.content,
505
- isDismissible: e.isDismissible ?? !1,
506
- overflowVisible: e.overflowVisible,
507
- ...n
404
+ dialogType: t.dialogType,
405
+ content: t.content,
406
+ isDismissible: t.isDismissible ?? !1,
407
+ overflowVisible: t.overflowVisible,
408
+ ...o
508
409
  }
509
- ), o = () => {
510
- u(m.CLOSE_MODAL);
410
+ ), b = () => {
411
+ v("close-modal");
511
412
  };
512
- return G(
513
- () => e.actions,
413
+ return K(
414
+ () => t.actions,
514
415
  () => {
515
- var t, s;
516
- ((s = (t = e.actions) == null ? void 0 : t[0]) == null ? void 0 : s.state) === "success" && setTimeout(o, ee);
416
+ var c, f;
417
+ ((f = (c = t.actions) == null ? void 0 : c[0]) == null ? void 0 : f.state) === "success" && setTimeout(b, d);
517
418
  }
518
- ), {
519
- onCloseModal: o,
520
- customProps: i,
521
- hasSlot: A(d)
522
- };
419
+ ), (c, f) => (B(), g(W(e.variant), C({
420
+ class: "b-modal",
421
+ "is-open": e.isOpen,
422
+ actions: e.actions,
423
+ "initially-open": e.initiallyOpen
424
+ }, n(s), { onCloseModal: b }), k({ _: 2 }, [
425
+ n(l)("default") ? {
426
+ name: "default",
427
+ fn: i(() => [
428
+ a(c.$slots, "default")
429
+ ]),
430
+ key: "0"
431
+ } : void 0,
432
+ n(l)("content-col-1") ? {
433
+ name: "content-col-1",
434
+ fn: i(() => [
435
+ a(c.$slots, "content-col-1")
436
+ ]),
437
+ key: "1"
438
+ } : void 0,
439
+ n(l)("content-col-2") ? {
440
+ name: "content-col-2",
441
+ fn: i(() => [
442
+ a(c.$slots, "content-col-2")
443
+ ]),
444
+ key: "2"
445
+ } : void 0,
446
+ n(l)("content") ? {
447
+ name: "content",
448
+ fn: i(() => [
449
+ a(c.$slots, "content")
450
+ ]),
451
+ key: "3"
452
+ } : void 0
453
+ ]), 1040, ["is-open", "actions", "initially-open"]));
523
454
  }
524
455
  });
525
- function te(e, d, u, n, i, o) {
526
- return p(), y(U(e.variant), M({
527
- class: "b-modal",
528
- "is-open": e.isOpen,
529
- actions: e.actions,
530
- "initially-open": e.initiallyOpen
531
- }, e.customProps, { onCloseModal: e.onCloseModal }), $({ _: 2 }, [
532
- e.hasSlot("default") ? {
533
- name: "default",
534
- fn: l(() => [
535
- a(e.$slots, "default")
536
- ]),
537
- key: "0"
538
- } : void 0,
539
- e.hasSlot("content-col-1") ? {
540
- name: "content-col-1",
541
- fn: l(() => [
542
- a(e.$slots, "content-col-1")
543
- ]),
544
- key: "1"
545
- } : void 0,
546
- e.hasSlot("content-col-2") ? {
547
- name: "content-col-2",
548
- fn: l(() => [
549
- a(e.$slots, "content-col-2")
550
- ]),
551
- key: "2"
552
- } : void 0,
553
- e.hasSlot("content") ? {
554
- name: "content",
555
- fn: l(() => [
556
- a(e.$slots, "content")
557
- ]),
558
- key: "3"
559
- } : void 0
560
- ]), 1040, ["is-open", "actions", "initially-open", "onCloseModal"]);
561
- }
562
- const ce = /* @__PURE__ */ O(oe, [["render", te]]);
563
456
  export {
564
- ce as BentoModal,
565
- B as BentoModalColumnLayoutVariant,
566
- f as BentoModalDialogType,
567
- m as BentoModalEvent,
568
- K as BentoModalRole,
569
- L as BentoModalSize,
570
- g as BentoModalVariant
457
+ ae as BentoModal,
458
+ A as BentoModalColumnLayoutVariant,
459
+ m as BentoModalDialogType,
460
+ ue as BentoModalEvent,
461
+ q as BentoModalRole,
462
+ O as BentoModalSize,
463
+ w as BentoModalVariant
571
464
  };
572
465
  //# sourceMappingURL=modal.js.map