@adyen/bento-vue2 1.18.0 → 1.19.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 (239) hide show
  1. package/dist/@types/components.d.ts +4 -0
  2. package/dist/@types/packages/vue2/src/components/button/components/toggle-button/index.d.ts +1 -0
  3. package/dist/@types/packages/vue2/src/components/button/components/toggle-button/toggle-button.vue.d.ts +65 -0
  4. package/dist/@types/packages/vue2/src/components/button/components/toggle-button/toggle.types.d.ts +1 -0
  5. package/dist/@types/packages/vue2/src/components/button/index.d.ts +1 -0
  6. package/dist/@types/packages/vue2/src/components/checkbox/checkbox.types.d.ts +3 -8
  7. package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +3 -6
  8. package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +1 -1
  9. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell/data-grid-cell.types.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 +7 -5
  11. package/dist/@types/packages/vue2/src/components/{internal/calendar → date-range-picker}/composables/use-granularity-memory.types.d.ts +2 -2
  12. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.types.d.ts +5 -5
  13. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +5 -5
  14. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +18 -19
  15. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +2 -2
  16. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +1 -1
  17. package/dist/@types/packages/vue2/src/components/internal/calendar/calendar.types.d.ts +2 -2
  18. package/dist/@types/packages/vue2/src/components/internal/calendar/composables/use-granularity-adjustments.types.d.ts +7 -7
  19. package/dist/@types/packages/vue2/src/components/internal/checkbox-input/checkbox-input.types.d.ts +20 -0
  20. package/dist/@types/packages/vue2/src/components/internal/checkbox-input/checkbox-input.vue.d.ts +90 -0
  21. package/dist/@types/packages/vue2/src/components/internal/checkbox-input/index.d.ts +3 -0
  22. package/dist/@types/packages/vue2/src/components/internal/dialog-page/dialog-page.keys.d.ts +2 -0
  23. package/dist/@types/packages/vue2/src/components/internal/dialog-page/dialog-page.types.d.ts +16 -0
  24. package/dist/@types/packages/vue2/src/components/internal/dialog-page/dialog-page.vue.d.ts +54 -0
  25. package/dist/@types/packages/vue2/src/components/internal/dialog-page/index.d.ts +3 -0
  26. package/dist/@types/packages/vue2/src/components/internal/index.d.ts +1 -0
  27. package/dist/@types/packages/vue2/src/components/internal/listbox/composables/use-cached-selected-values/use-cached-selected-values.d.ts +14 -0
  28. package/dist/@types/packages/vue2/src/components/internal/listbox/index.d.ts +1 -0
  29. package/dist/@types/packages/vue2/src/components/internal/radio-input/index.d.ts +3 -0
  30. package/dist/@types/packages/vue2/src/components/internal/radio-input/radio-input.types.d.ts +6 -0
  31. package/dist/@types/packages/vue2/src/components/internal/radio-input/radio-input.vue.d.ts +80 -0
  32. package/dist/@types/packages/vue2/src/components/modal-fullscreen/components/modal-fullscreen-page.vue.d.ts +60 -0
  33. package/dist/@types/packages/vue2/src/components/modal-fullscreen/index.d.ts +1 -0
  34. package/dist/@types/packages/vue2/src/components/modal-fullscreen/modal-fullscreen.vue.d.ts +12 -1
  35. package/dist/@types/packages/vue2/src/components/radio-group/components/radio-button/radio-button.types.d.ts +3 -6
  36. package/dist/@types/packages/vue2/src/components/radio-group/components/radio-button/radio-button.vue.d.ts +1 -1
  37. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +1 -1
  38. package/dist/@types/packages/vue2/src/components/sidepanel/components/sidepanel-page.vue.d.ts +3 -3
  39. package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.keys.d.ts +0 -2
  40. package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.types.d.ts +0 -19
  41. package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.vue.d.ts +1 -1
  42. package/dist/@types/packages/vue2/src/composables/use-form-validate/use-form.d.ts +1 -1
  43. package/dist/accordion.js +2 -2
  44. package/dist/action-bar.js +6 -6
  45. package/dist/alert.js +3 -3
  46. package/dist/assets/base-modal.css +1 -1
  47. package/dist/assets/button-actions.css +1 -0
  48. package/dist/assets/button.css +1 -1
  49. package/dist/assets/calendar.css +1 -1
  50. package/dist/assets/checkbox.css +1 -1
  51. package/dist/assets/dialog-page.css +1 -0
  52. package/dist/assets/dropdown-default-textbox.css +1 -1
  53. package/dist/assets/dropdown.css +1 -1
  54. package/dist/assets/index10.css +1 -1
  55. package/dist/assets/index11.css +1 -1
  56. package/dist/assets/index12.css +1 -1
  57. package/dist/assets/index13.css +1 -1
  58. package/dist/assets/index14.css +1 -1
  59. package/dist/assets/index15.css +1 -1
  60. package/dist/assets/index16.css +1 -1
  61. package/dist/assets/index17.css +1 -1
  62. package/dist/assets/index18.css +1 -1
  63. package/dist/assets/index19.css +1 -1
  64. package/dist/assets/index20.css +1 -1
  65. package/dist/assets/index21.css +1 -1
  66. package/dist/assets/index22.css +1 -1
  67. package/dist/assets/index23.css +1 -1
  68. package/dist/assets/index24.css +1 -1
  69. package/dist/assets/index25.css +1 -1
  70. package/dist/assets/index26.css +1 -1
  71. package/dist/assets/index27.css +1 -1
  72. package/dist/assets/index28.css +1 -1
  73. package/dist/assets/index29.css +1 -1
  74. package/dist/assets/index3.css +1 -1
  75. package/dist/assets/index30.css +1 -1
  76. package/dist/assets/index31.css +1 -1
  77. package/dist/assets/index32.css +1 -1
  78. package/dist/assets/index33.css +1 -1
  79. package/dist/assets/index34.css +1 -1
  80. package/dist/assets/index35.css +1 -1
  81. package/dist/assets/index36.css +1 -1
  82. package/dist/assets/index37.css +1 -1
  83. package/dist/assets/index38.css +1 -1
  84. package/dist/assets/index39.css +1 -1
  85. package/dist/assets/index4.css +1 -1
  86. package/dist/assets/index40.css +1 -1
  87. package/dist/assets/index41.css +1 -1
  88. package/dist/assets/index42.css +1 -1
  89. package/dist/assets/index43.css +1 -1
  90. package/dist/assets/index44.css +1 -1
  91. package/dist/assets/index45.css +1 -1
  92. package/dist/assets/index46.css +1 -1
  93. package/dist/assets/index47.css +1 -1
  94. package/dist/assets/index48.css +1 -1
  95. package/dist/assets/index5.css +1 -1
  96. package/dist/assets/index6.css +1 -1
  97. package/dist/assets/index7.css +1 -1
  98. package/dist/assets/index8.css +1 -1
  99. package/dist/assets/index9.css +1 -1
  100. package/dist/assets/teleport.css +1 -1
  101. package/dist/avatar-image.js +1 -1
  102. package/dist/button.js +71 -93
  103. package/dist/button.js.map +1 -1
  104. package/dist/card.js +3 -3
  105. package/dist/checkbox.js +6 -6
  106. package/dist/chunks/{base-button.bf0c938c.js → base-button.3c3d473d.js} +2 -2
  107. package/dist/chunks/{base-button.bf0c938c.js.map → base-button.3c3d473d.js.map} +1 -1
  108. package/dist/chunks/{base-modal.1dc6cf96.js → base-modal.27c6f2db.js} +5 -5
  109. package/dist/chunks/{base-modal.1dc6cf96.js.map → base-modal.27c6f2db.js.map} +1 -1
  110. package/dist/chunks/{button-actions-with-menu.4ecf3d93.js → button-actions-with-menu.a38327c2.js} +4 -4
  111. package/dist/chunks/{button-actions-with-menu.4ecf3d93.js.map → button-actions-with-menu.a38327c2.js.map} +1 -1
  112. package/dist/chunks/button-actions.1dc90a19.js +111 -0
  113. package/dist/chunks/button-actions.1dc90a19.js.map +1 -0
  114. package/dist/chunks/{button.f5739261.js → button.0b6cda85.js} +3 -3
  115. package/dist/chunks/{button.f5739261.js.map → button.0b6cda85.js.map} +1 -1
  116. package/dist/chunks/calendar.263cfc88.js +913 -0
  117. package/dist/chunks/calendar.263cfc88.js.map +1 -0
  118. package/dist/chunks/checkbox.c7a74005.js +275 -0
  119. package/dist/chunks/checkbox.c7a74005.js.map +1 -0
  120. package/dist/chunks/{controls-group.2b645d54.js → controls-group.8abe0bd1.js} +3 -3
  121. package/dist/chunks/{controls-group.2b645d54.js.map → controls-group.8abe0bd1.js.map} +1 -1
  122. package/dist/chunks/{copy.e01532cf.js → copy.647aae54.js} +4 -4
  123. package/dist/chunks/{copy.e01532cf.js.map → copy.647aae54.js.map} +1 -1
  124. package/dist/chunks/dialog-page.f787969c.js +113 -0
  125. package/dist/chunks/dialog-page.f787969c.js.map +1 -0
  126. package/dist/chunks/{dropdown-default-textbox.d45138fa.js → dropdown-default-textbox.59803edd.js} +97 -111
  127. package/dist/chunks/dropdown-default-textbox.59803edd.js.map +1 -0
  128. package/dist/chunks/{dropdown.0a9acf8b.js → dropdown.0574f613.js} +62 -61
  129. package/dist/chunks/dropdown.0574f613.js.map +1 -0
  130. package/dist/chunks/{error-message.317dd85f.js → error-message.75666843.js} +2 -2
  131. package/dist/chunks/{error-message.317dd85f.js.map → error-message.75666843.js.map} +1 -1
  132. package/dist/chunks/{fixed-scroller.afe02620.js → fixed-scroller.06574a66.js} +2 -2
  133. package/dist/chunks/{fixed-scroller.afe02620.js.map → fixed-scroller.06574a66.js.map} +1 -1
  134. package/dist/chunks/{footer-actions.e0b866b1.js → footer-actions.0268a57b.js} +4 -4
  135. package/dist/chunks/{footer-actions.e0b866b1.js.map → footer-actions.0268a57b.js.map} +1 -1
  136. package/dist/chunks/{index.7aa428c2.js → index.026ae47b.js} +2 -2
  137. package/dist/chunks/{index.7aa428c2.js.map → index.026ae47b.js.map} +1 -1
  138. package/dist/chunks/{index.898a95bc.js → index.0bb773a7.js} +6 -6
  139. package/dist/chunks/{index.898a95bc.js.map → index.0bb773a7.js.map} +1 -1
  140. package/dist/chunks/{index.651dac2d.js → index.10b9618d.js} +3 -3
  141. package/dist/chunks/{index.651dac2d.js.map → index.10b9618d.js.map} +1 -1
  142. package/dist/chunks/{index.6c299479.js → index.302e9cf2.js} +2 -2
  143. package/dist/chunks/{index.6c299479.js.map → index.302e9cf2.js.map} +1 -1
  144. package/dist/chunks/index.408e1419.js +712 -0
  145. package/dist/chunks/index.408e1419.js.map +1 -0
  146. package/dist/chunks/{index.88ac1dab.js → index.45cd2344.js} +31 -31
  147. package/dist/chunks/index.45cd2344.js.map +1 -0
  148. package/dist/chunks/{index.6c017121.js → index.5b47c56b.js} +7 -7
  149. package/dist/chunks/{index.6c017121.js.map → index.5b47c56b.js.map} +1 -1
  150. package/dist/chunks/{index.2e70720a.js → index.5bfc67d1.js} +2 -2
  151. package/dist/chunks/{index.2e70720a.js.map → index.5bfc67d1.js.map} +1 -1
  152. package/dist/chunks/{index.e6aa2c36.js → index.932c230b.js} +6 -6
  153. package/dist/chunks/{index.e6aa2c36.js.map → index.932c230b.js.map} +1 -1
  154. package/dist/chunks/{index.81443e01.js → index.a52b98d1.js} +8 -8
  155. package/dist/chunks/{index.81443e01.js.map → index.a52b98d1.js.map} +1 -1
  156. package/dist/chunks/{index.290bbc9e.js → index.dc985e76.js} +3 -3
  157. package/dist/chunks/{index.290bbc9e.js.map → index.dc985e76.js.map} +1 -1
  158. package/dist/chunks/{index.546b27ae.js → index.de687404.js} +3 -2
  159. package/dist/chunks/{index.546b27ae.js.map → index.de687404.js.map} +1 -1
  160. package/dist/chunks/{listbox-option-tag.720eabb5.js → listbox-option-tag.89846151.js} +3 -3
  161. package/dist/chunks/{listbox-option-tag.720eabb5.js.map → listbox-option-tag.89846151.js.map} +1 -1
  162. package/dist/chunks/{listbox.dc3d986e.js → listbox.a8180c4a.js} +5 -5
  163. package/dist/chunks/{listbox.dc3d986e.js.map → listbox.a8180c4a.js.map} +1 -1
  164. package/dist/chunks/{loading-button.390228ff.js → loading-button.50dddf2f.js} +2 -2
  165. package/dist/chunks/{loading-button.390228ff.js.map → loading-button.50dddf2f.js.map} +1 -1
  166. package/dist/chunks/modal-fullscreen.keys.b9f31632.js +5 -0
  167. package/dist/chunks/modal-fullscreen.keys.b9f31632.js.map +1 -0
  168. package/dist/chunks/sidepanel.keys.1ed8a57c.js +5 -0
  169. package/dist/chunks/sidepanel.keys.1ed8a57c.js.map +1 -0
  170. package/dist/chunks/{teleport.d52e5254.js → teleport.84b0f20b.js} +14 -13
  171. package/dist/chunks/teleport.84b0f20b.js.map +1 -0
  172. package/dist/chunks/{tooltip.d452f6c4.js → tooltip.6748027a.js} +3 -3
  173. package/dist/chunks/{tooltip.d452f6c4.js.map → tooltip.6748027a.js.map} +1 -1
  174. package/dist/code-snippet.js +7 -7
  175. package/dist/code-snippet.js.map +1 -1
  176. package/dist/country.js +2 -2
  177. package/dist/currency.js +1 -1
  178. package/dist/data-grid.js +1 -1
  179. package/dist/date-picker.js +18 -18
  180. package/dist/date-range-picker.js +2 -2
  181. package/dist/date.js +1 -1
  182. package/dist/divider.js +1 -1
  183. package/dist/dropdown.js +6 -6
  184. package/dist/empty-state.js +3 -3
  185. package/dist/filter-bar.js +19 -19
  186. package/dist/filter-bar.js.map +1 -1
  187. package/dist/focus-trap.js +1 -1
  188. package/dist/form-layout.js +2 -2
  189. package/dist/header.js +4 -4
  190. package/dist/index.js +299 -2935
  191. package/dist/index.js.map +1 -1
  192. package/dist/info-icon.js +3 -3
  193. package/dist/input-field.js +4 -4
  194. package/dist/internal.js +78 -25
  195. package/dist/internal.js.map +1 -1
  196. package/dist/link.js +1 -1
  197. package/dist/loading-indicator.js +1 -1
  198. package/dist/menu.js +1 -1
  199. package/dist/modal-fullscreen.js +144 -44
  200. package/dist/modal-fullscreen.js.map +1 -1
  201. package/dist/modal.js +6 -6
  202. package/dist/pagination.js +4 -4
  203. package/dist/payment-method.js +2 -2
  204. package/dist/popover.js +1 -1
  205. package/dist/popper-container.js +1 -1
  206. package/dist/radio-group.js +147 -78
  207. package/dist/radio-group.js.map +1 -1
  208. package/dist/search-bar.js +2 -2
  209. package/dist/secondary-nav.js +2 -2
  210. package/dist/segmented-control.js +3 -3
  211. package/dist/sidepanel.js +78 -111
  212. package/dist/sidepanel.js.map +1 -1
  213. package/dist/status.js +2 -2
  214. package/dist/stepper.js +3 -3
  215. package/dist/structured-list.js +1 -1
  216. package/dist/summary-grid.js +3 -3
  217. package/dist/tabs.js +3 -3
  218. package/dist/tag.js +3 -3
  219. package/dist/textarea.js +4 -4
  220. package/dist/timeline.js +12 -12
  221. package/dist/toast.js +3 -3
  222. package/dist/toggle.js +2 -2
  223. package/dist/tutorial.js +6 -6
  224. package/dist/typography.js +1 -1
  225. package/dist/web-types.json +431 -5
  226. package/package.json +3 -3
  227. package/dist/chunks/calendar.7a2d1894.js +0 -960
  228. package/dist/chunks/calendar.7a2d1894.js.map +0 -1
  229. package/dist/chunks/checkbox.1345941b.js +0 -195
  230. package/dist/chunks/checkbox.1345941b.js.map +0 -1
  231. package/dist/chunks/dropdown-default-textbox.d45138fa.js.map +0 -1
  232. package/dist/chunks/dropdown.0a9acf8b.js.map +0 -1
  233. package/dist/chunks/index.84c2cef6.js +0 -637
  234. package/dist/chunks/index.84c2cef6.js.map +0 -1
  235. package/dist/chunks/index.88ac1dab.js.map +0 -1
  236. package/dist/chunks/sidepanel.keys.3f8d69c1.js +0 -7
  237. package/dist/chunks/sidepanel.keys.3f8d69c1.js.map +0 -1
  238. package/dist/chunks/teleport.d52e5254.js.map +0 -1
  239. /package/dist/@types/packages/vue2/src/components/{internal/calendar → date-range-picker}/composables/use-granularity-memory.d.ts +0 -0
package/dist/info-icon.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as n } from "vue";
2
- import { c as i } from "./chunks/index.290bbc9e.js";
2
+ import { c as i } from "./chunks/index.dc985e76.js";
3
3
  import { I as r } from "./chunks/info.8b6328aa.js";
4
- import { B as s } from "./chunks/tooltip.d452f6c4.js";
4
+ import { B as s } from "./chunks/tooltip.6748027a.js";
5
5
  import { n as a } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
6
- import "./assets/index8.css";
6
+ import "./assets/index38.css";
7
7
  const p = n({
8
8
  name: "bento-info-icon",
9
9
  components: { InfoIcon: r },
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as H, useAttrs as Y, useSlots as j, ref as O, provide as W, toRef as q, computed as i, toRefs as K } from "vue";
2
- import { I as X, B as z } from "./chunks/dropdown.0a9acf8b.js";
3
- import { d as I, B as G } from "./chunks/index.546b27ae.js";
2
+ import { I as X, B as z } from "./chunks/dropdown.0574f613.js";
3
+ import { d as I, B as G } from "./chunks/index.de687404.js";
4
4
  import { g as u } from "./chunks/unique-id.a2a2b458.js";
5
5
  import { g as J } from "./chunks/get-slot-text.99c3d860.js";
6
6
  import { u as Q } from "./chunks/aria-label.ac9651a5.js";
7
7
  import { u as Z } from "./chunks/i18n.eb5b985b.js";
8
8
  import { u as ee } from "./chunks/use-form-layout-loading.d03e5d48.js";
9
9
  import { u as te } from "./chunks/use-has-slot.fbeb19ec.js";
10
- import { E as ae, F as oe } from "./chunks/error-message.317dd85f.js";
10
+ import { E as ae, F as oe } from "./chunks/error-message.75666843.js";
11
11
  import { n as re } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
12
- import "./assets/index46.css";
12
+ import "./assets/index27.css";
13
13
  var d = /* @__PURE__ */ ((a) => (a.DEFAULT = "default", a.PAYMENT_METHOD = "payment-method", a.STATIC_VALUE = "static-value", a.DROPDOWN = "dropdown", a))(d || {}), n = /* @__PURE__ */ ((a) => (a.START = "start", a.END = "end", a))(n || {}), p = /* @__PURE__ */ ((a) => (a.CONDENSED = "condensed", a.DISABLED = "disabled", a.READONLY = "readonly", a.ERROR = "error", a))(p || {}), h = /* @__PURE__ */ ((a) => (a.SEARCH = "search", a.TEXT = "text", a.NUMBER = "number", a))(h || {}), ie = /* @__PURE__ */ ((a) => (a.INPUT = "input", a.ESCAPE_PRESSED = "escape-pressed", a.UPDATE_DROPDOWN = "update:dropdown", a.DROPDOWN_INPUT = "dropdown-input", a.FOCUS = "focus", a.CHANGE = "change", a.BLUR = "blur", a.KEYDOWN = "keydown", a))(ie || {});
14
14
  const ne = {
15
15
  "en-US": {
package/dist/internal.js CHANGED
@@ -1,28 +1,81 @@
1
- import { B as r, L as e } from "./chunks/listbox-option-tag.720eabb5.js";
2
- import { C as s, a as p, b as l } from "./chunks/calendar.7a2d1894.js";
3
- import { C as i, a as n } from "./chunks/copy.e01532cf.js";
4
- import { C as m } from "./chunks/controls-group.2b645d54.js";
5
- import { E as d, F as L } from "./chunks/error-message.317dd85f.js";
6
- import { F as y } from "./chunks/fixed-scroller.afe02620.js";
7
- import { G as F, a as b } from "./chunks/grid-layout.e0025286.js";
8
- import { B as T, u as v } from "./chunks/listbox.dc3d986e.js";
9
- import { B as g } from "./chunks/teleport.d52e5254.js";
1
+ import { B as I, L } from "./chunks/listbox-option-tag.89846151.js";
2
+ import { C as y, a as A, b as S } from "./chunks/calendar.263cfc88.js";
3
+ import { C as b, a as g } from "./chunks/copy.647aae54.js";
4
+ import { C as T } from "./chunks/controls-group.8abe0bd1.js";
5
+ import { B as D, b as F, a as N, D as P } from "./chunks/dialog-page.f787969c.js";
6
+ import { E as K, F as M } from "./chunks/error-message.75666843.js";
7
+ import { F as Y } from "./chunks/fixed-scroller.06574a66.js";
8
+ import { G as W, a as j } from "./chunks/grid-layout.e0025286.js";
9
+ import { B as z, u as H } from "./chunks/listbox.a8180c4a.js";
10
+ import { ref as f, watch as v } from "vue";
11
+ import { B as U } from "./chunks/teleport.84b0f20b.js";
12
+ const p = (l, e) => {
13
+ for (const o of l) {
14
+ if (o.value === e)
15
+ return o.label;
16
+ if (o.items)
17
+ return p(o.items, e);
18
+ }
19
+ return null;
20
+ }, d = (l, e, o) => {
21
+ const a = f([]), n = f(), i = (t) => {
22
+ n.value = o.value ? t.map(({ value: m }) => m) : t[0].value;
23
+ }, C = (t) => {
24
+ a.value = t, i(t);
25
+ }, u = () => {
26
+ a.value = [], n.value = null;
27
+ };
28
+ return v(
29
+ () => e.value,
30
+ () => {
31
+ if (!e.value) {
32
+ u();
33
+ return;
34
+ }
35
+ const t = !Array.isArray(e.value), m = [...a.value];
36
+ u();
37
+ const c = (r) => {
38
+ let s = p(l.value, r);
39
+ s || p(m, r), s || (s = r.toString()), a.value.push({ value: r, label: s });
40
+ };
41
+ if (t) {
42
+ const r = e.value;
43
+ c(r), i(a.value);
44
+ return;
45
+ }
46
+ e.value.forEach(c), i(a.value);
47
+ },
48
+ { immediate: !0 }
49
+ ), {
50
+ // Values
51
+ cachedSelectedValues: a,
52
+ simpleSelectedValuesCache: n,
53
+ // Methods
54
+ resetCache: u,
55
+ setCachedValues: C
56
+ };
57
+ };
10
58
  export {
11
- r as BentoAvatar,
12
- T as BentoListbox,
13
- g as BentoTeleport,
14
- s as Calendar,
15
- p as CalendarEvent,
16
- l as CalendarFirstDayOfWeek,
17
- m as ControlsGroup,
18
- i as Copy,
19
- n as CopyTooltipState,
20
- d as ErrorMessage,
21
- L as FieldLabel,
22
- y as FixedScroller,
23
- F as GridLayout,
24
- b as GridLayoutContainerType,
25
- e as ListboxOptionTag,
26
- v as useMultiLevelItems
59
+ I as BentoAvatar,
60
+ D as BentoDialogPageAnimation,
61
+ z as BentoListbox,
62
+ U as BentoTeleport,
63
+ y as Calendar,
64
+ A as CalendarEvent,
65
+ S as CalendarFirstDayOfWeek,
66
+ T as ControlsGroup,
67
+ b as Copy,
68
+ g as CopyTooltipState,
69
+ F as DIALOG_PAGE_CONFIG_INJECTION_KEY,
70
+ N as DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY,
71
+ P as DialogPage,
72
+ K as ErrorMessage,
73
+ M as FieldLabel,
74
+ Y as FixedScroller,
75
+ W as GridLayout,
76
+ j as GridLayoutContainerType,
77
+ L as ListboxOptionTag,
78
+ d as useCachedSelectedValues,
79
+ H as useMultiLevelItems
27
80
  };
28
81
  //# sourceMappingURL=internal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"internal.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
1
+ {"version":3,"file":"internal.js","sources":["../src/components/internal/listbox/composables/use-cached-selected-values/use-cached-selected-values.ts"],"sourcesContent":["import {\n BentoListboxMultiSelectValue,\n BentoListboxOptions,\n BentoListboxSelectedValue,\n BentoListboxValue,\n} from '@/types';\nimport { ref, Ref, watch } from 'vue';\n\n/**\n * Extracts an item's label from the items in the list of options\n * displayed in the Listbox.\n *\n * Searches through all items and their sub-items (categories).\n *\n * @param items List of options displayed in the Listbox\n * @param value Selected value that needs to be found in the list\n * @returns Label found\n */\nconst findItemLabel = (items: BentoListboxOptions, value: BentoListboxValue): string => {\n // eslint-disable-next-line no-restricted-syntax\n for (const item of items) {\n if (item.value === value) {\n return item.label;\n }\n\n if (item.items) {\n return findItemLabel(item.items, value);\n }\n }\n\n return null;\n};\n\n/**\n * Creates two lists (one with value/label pairs and one simply with values) that are\n * used to cache the internal option selections to preserve the `label` in case the\n * value is loaded from external sources and might not be found in the list of `items`\n * later on.\n *\n * This helps with external searches and lazy loaded lists.\n *\n * @param items List of options displayed in the Listbox\n * @param selectedValues Selected list of values\n * @param multiple Indicates if the Listbox is multi-select (true) or single-select (false)\n * @returns Two lists of cached items. One list with label/value pairs and one with only the values stored.\n */\nexport const useCachedSelectedValues = (\n items: Ref<BentoListboxOptions>,\n selectedValues: Ref<BentoListboxSelectedValue>,\n multiple: Ref<boolean>\n) => {\n const cachedSelectedValues = ref<BentoListboxOptions>([]);\n const simpleSelectedValuesCache = ref<BentoListboxSelectedValue>();\n\n const setSimpleSelectedValues = (newSelectedValues: BentoListboxOptions) => {\n simpleSelectedValuesCache.value = multiple.value\n ? newSelectedValues.map(({ value }) => value)\n : newSelectedValues[0].value;\n };\n\n const setCachedValues = (newSelectedValues: BentoListboxOptions) => {\n cachedSelectedValues.value = newSelectedValues;\n setSimpleSelectedValues(newSelectedValues);\n };\n\n const resetCache = () => {\n cachedSelectedValues.value = [];\n simpleSelectedValuesCache.value = null;\n };\n\n watch(\n () => selectedValues.value,\n () => {\n if (!selectedValues.value) {\n resetCache();\n return;\n }\n\n const isSingleSelect = !Array.isArray(selectedValues.value);\n // Make a copy of cache\n const cachedCopy = [...cachedSelectedValues.value];\n // Clear cache\n resetCache();\n\n const addValue = (value: BentoListboxValue) => {\n // Search label by value in \"items\"\n let selectedItemText = findItemLabel(items.value, value);\n\n // Search in previous cache\n if (!selectedItemText) {\n findItemLabel(cachedCopy, value);\n }\n\n // Transform value to label if not found anywhere\n if (!selectedItemText) {\n selectedItemText = value.toString();\n }\n\n cachedSelectedValues.value.push({ value, label: selectedItemText });\n };\n\n if (isSingleSelect) {\n const value = selectedValues.value as BentoListboxValue;\n\n addValue(value);\n setSimpleSelectedValues(cachedSelectedValues.value);\n return;\n }\n\n // Add each selected value in the cache\n (selectedValues.value as BentoListboxMultiSelectValue).forEach(addValue);\n setSimpleSelectedValues(cachedSelectedValues.value);\n },\n { immediate: true }\n );\n\n return {\n // Values\n cachedSelectedValues,\n simpleSelectedValuesCache,\n // Methods\n resetCache,\n setCachedValues,\n };\n};\n"],"names":["findItemLabel","items","value","item","useCachedSelectedValues","selectedValues","multiple","cachedSelectedValues","ref","simpleSelectedValuesCache","setSimpleSelectedValues","newSelectedValues","setCachedValues","resetCache","watch","isSingleSelect","cachedCopy","addValue","selectedItemText"],"mappings":";;;;;;;;;;;AAkBA,MAAMA,IAAgB,CAACC,GAA4BC,MAAqC;AAEpF,aAAWC,KAAQF,GAAO;AAClB,QAAAE,EAAK,UAAUD;AACf,aAAOC,EAAK;AAGhB,QAAIA,EAAK;AACE,aAAAH,EAAcG,EAAK,OAAOD,CAAK;AAAA;AAIvC,SAAA;AACX,GAeaE,IAA0B,CACnCH,GACAI,GACAC,MACC;AACK,QAAAC,IAAuBC,EAAyB,CAAA,CAAE,GAClDC,IAA4BD,KAE5BE,IAA0B,CAACC,MAA2C;AACxE,IAAAF,EAA0B,QAAQH,EAAS,QACrCK,EAAkB,IAAI,CAAC,EAAE,OAAAT,EAAA,MAAYA,CAAK,IAC1CS,EAAkB,CAAC,EAAE;AAAA,EAAA,GAGzBC,IAAkB,CAACD,MAA2C;AAChE,IAAAJ,EAAqB,QAAQI,GAC7BD,EAAwBC,CAAiB;AAAA,EAAA,GAGvCE,IAAa,MAAM;AACrB,IAAAN,EAAqB,QAAQ,IAC7BE,EAA0B,QAAQ;AAAA,EAAA;AAGtC,SAAAK;AAAA,IACI,MAAMT,EAAe;AAAA,IACrB,MAAM;AACE,UAAA,CAACA,EAAe,OAAO;AACZ,QAAAQ;AACX;AAAA;AAGJ,YAAME,IAAiB,CAAC,MAAM,QAAQV,EAAe,KAAK,GAEpDW,IAAa,CAAC,GAAGT,EAAqB,KAAK;AAEtC,MAAAM;AAEL,YAAAI,IAAW,CAACf,MAA6B;AAE3C,YAAIgB,IAAmBlB,EAAcC,EAAM,OAAOC,CAAK;AAGvD,QAAKgB,KACDlB,EAAcgB,GAAYd,CAAK,GAI9BgB,MACDA,IAAmBhB,EAAM,aAG7BK,EAAqB,MAAM,KAAK,EAAE,OAAAL,GAAO,OAAOgB,GAAkB;AAAA,MAAA;AAGtE,UAAIH,GAAgB;AAChB,cAAMb,IAAQG,EAAe;AAE7B,QAAAY,EAASf,CAAK,GACdQ,EAAwBH,EAAqB,KAAK;AAClD;AAAA;AAIH,MAAAF,EAAe,MAAuC,QAAQY,CAAQ,GACvEP,EAAwBH,EAAqB,KAAK;AAAA,IACtD;AAAA,IACA,EAAE,WAAW,GAAK;AAAA,EAAA,GAGf;AAAA;AAAA,IAEH,sBAAAA;AAAA,IACA,2BAAAE;AAAA;AAAA,IAEA,YAAAI;AAAA,IACA,iBAAAD;AAAA,EAAA;AAER;"}
package/dist/link.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as o, a as t } from "./chunks/index.6c017121.js";
1
+ import { B as o, a as t } from "./chunks/index.5b47c56b.js";
2
2
  export {
3
3
  o as BentoLink,
4
4
  t as BentoLinkVariant
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as t, onMounted as s, onUnmounted as l, computed as i } from "vue";
2
2
  import { n as r } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
3
- import "./assets/index10.css";
3
+ import "./assets/index37.css";
4
4
  var a = /* @__PURE__ */ ((n) => (n.START = "loading-start", n.END = "loading-end", n))(a || {});
5
5
  const d = t({
6
6
  name: "bento-loading-indicator",
package/dist/menu.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as o, a as t } from "./chunks/index.81443e01.js";
1
+ import { B as o, a as t } from "./chunks/index.a52b98d1.js";
2
2
  export {
3
3
  o as BentoMenu,
4
4
  t as BentoMenuEvent
@@ -1,22 +1,98 @@
1
- import { defineComponent as p, toRefs as v, ref as r, useSlots as b, computed as y, watch as C, nextTick as h, onMounted as B, provide as g } from "vue";
2
- import { a as x } from "./chunks/button.f5739261.js";
3
- import { B as A } from "./chunks/index.6c299479.js";
4
- import { B as I } from "./chunks/index.546b27ae.js";
5
- import { C as F } from "./chunks/cross.04678d81.js";
6
- import { u as M } from "./chunks/i18n.eb5b985b.js";
7
- import { g as S } from "./chunks/unique-id.a2a2b458.js";
8
- import { u as k } from "./chunks/use-has-slot.fbeb19ec.js";
9
- import { BentoButtonActions as L } from "./button.js";
10
- import { n as O } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
11
- import "./assets/index12.css";
12
- const w = Symbol("modal fullscreen children element injection key"), E = {
1
+ import { defineComponent as C, useSlots as B, onMounted as L, toRefs as O, ref as r, computed as M, watch as k, nextTick as T, provide as d } from "vue";
2
+ import { a as D } from "./chunks/button.0b6cda85.js";
3
+ import { B as N } from "./chunks/index.302e9cf2.js";
4
+ import { B as w } from "./chunks/index.de687404.js";
5
+ import { u as x } from "./chunks/use-has-slot.fbeb19ec.js";
6
+ import { D as G, B as R, b as J, a as K } from "./chunks/dialog-page.f787969c.js";
7
+ import { B as U } from "./chunks/button-actions.1dc90a19.js";
8
+ import { n as P } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
9
+ import { C as Y } from "./chunks/cross.04678d81.js";
10
+ import { u as $ } from "./chunks/i18n.eb5b985b.js";
11
+ import { g as z } from "./chunks/unique-id.a2a2b458.js";
12
+ import { M as H } from "./chunks/modal-fullscreen.keys.b9f31632.js";
13
+ import "./assets/index41.css";
14
+ const V = {}, j = /* @__PURE__ */ C({
15
+ ...V,
16
+ __name: "modal-fullscreen-page",
17
+ props: {
18
+ /**
19
+ * List of actions that will be used to render the buttons.
20
+ * First element in the list will be rendered as "primary".
21
+ * All elements after the first will be rendered as "secondary".
22
+ *
23
+ * Each object in the list should have a `title`, an `event` and
24
+ * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.
25
+ *
26
+ * @see BentoButton for a list of all the other props supported by each button action.
27
+ */
28
+ actions: {
29
+ type: Array,
30
+ default: null
31
+ },
32
+ /**
33
+ * Label shown next to the modal actions
34
+ */
35
+ contextualLabel: {
36
+ type: String,
37
+ default: null
38
+ },
39
+ /**
40
+ * Identifier of the page, used with activePage prop to handle sidepanel navigation
41
+ */
42
+ pageId: {
43
+ type: String,
44
+ default: void 0
45
+ },
46
+ /**
47
+ * ID of the page for the back button to navigate to. Only use it to overwrite the default back behavior
48
+ * Used when the back button should not take the user to the natural previous page
49
+ * Set to `null` to hide back button in the page
50
+ */
51
+ previousPage: {
52
+ type: String,
53
+ default: void 0
54
+ },
55
+ /**
56
+ * Title of the modal
57
+ */
58
+ title: {
59
+ type: String,
60
+ default: null
61
+ }
62
+ },
63
+ setup(u) {
64
+ const e = u, a = B(), t = x(a);
65
+ return L(() => {
66
+ if (e.actions && e.actions.length > 2)
67
+ throw new Error("Not more than 2 action buttons may be provided in Bento Modal Fullscreen");
68
+ }), { __sfc: !0, props: e, slots: a, hasSlot: t, BentoButtonActions: U, BentoTypography: w, DialogPage: G };
69
+ }
70
+ });
71
+ var q = function() {
72
+ var e = this, a = e._self._c, t = e._self._setupProxy;
73
+ return a(t.DialogPage, { staticClass: "b-modal-fullscreen-page", attrs: { "page-id": e.pageId, "previous-page": e.previousPage, "always-show-border": "" }, scopedSlots: e._u([{ key: "header", fn: function() {
74
+ return [a("div", { staticClass: "b-modal-fullscreen-page__header" }, [a("div", { staticClass: "b-modal-fullscreen-page__header-section b-modal-fullscreen-page__header-section--title" }, [e.title ? a(t.BentoTypography, { staticClass: "b-modal-fullscreen-page__title", attrs: { el: "h2", variant: "title", title: e.title } }, [e._v(e._s(e.title))]) : e._e()], 1), t.hasSlot("header") ? a("div", { staticClass: "b-modal-fullscreen-page__header-section b-modal-fullscreen-page__header-section--slot" }, [e._t("header")], 2) : e._e(), a("div", { staticClass: "b-modal-fullscreen-page__header-section b-modal-fullscreen-page__header-section--actions" }, [e.contextualLabel ? a(t.BentoTypography, { staticClass: "b-modal-fullscreen-page__contextual-label", attrs: { el: "span", title: e.contextualLabel } }, [e._v(e._s(e.contextualLabel))]) : e._e(), e.actions ? a(t.BentoButtonActions, { staticClass: "b-modal-fullscreen-page__actions", attrs: { actions: e.actions } }) : e._e(), a("div", { staticClass: "b-modal-fullscreen-page__separator" })], 1)])];
75
+ }, proxy: !0 }, { key: "content", fn: function() {
76
+ return [a("div", { staticClass: "b-modal-fullscreen-page__content" }, [e._t("default")], 2)];
77
+ }, proxy: !0 }], null, !0) });
78
+ }, Q = [], W = /* @__PURE__ */ P(
79
+ j,
80
+ q,
81
+ Q,
82
+ !1,
83
+ null,
84
+ "30654f2c",
85
+ null,
86
+ null
87
+ );
88
+ const X = W.exports, Z = {
13
89
  "en-US": {
14
90
  close: "Close"
15
91
  }
16
- }, T = {
17
- i18n: { messages: E }
18
- }, D = /* @__PURE__ */ p({
19
- ...T,
92
+ }, ee = {
93
+ i18n: { messages: Z }
94
+ }, te = /* @__PURE__ */ C({
95
+ ...ee,
20
96
  __name: "modal-fullscreen",
21
97
  props: {
22
98
  /**
@@ -33,6 +109,14 @@ const w = Symbol("modal fullscreen children element injection key"), E = {
33
109
  type: Array,
34
110
  default: null
35
111
  },
112
+ /**
113
+ * The id of the current active page
114
+ * Should be the same as the pageId of the BentoModalFullscreenPage to be displayed
115
+ */
116
+ activePage: {
117
+ type: String,
118
+ default: null
119
+ },
36
120
  /**
37
121
  * Label shown next to the modal actions
38
122
  */
@@ -55,46 +139,62 @@ const w = Symbol("modal fullscreen children element injection key"), E = {
55
139
  default: null
56
140
  }
57
141
  },
58
- emits: ["update:is-open"],
59
- setup(i, { emit: e }) {
60
- const t = i, { isOpen: l } = v(t), { t: s } = M(), a = r(null), o = r(!1), c = S("modal-fullscreen"), n = r(null), u = b(), _ = k(u), m = y(() => ({
61
- "b-modal-fullscreen--hide": o.value
62
- })), f = () => {
63
- o.value && (a.value.close(), o.value = !1, n.value = !1, e("update:is-open", !1));
64
- }, d = () => {
65
- a.value.open && (o.value = !0);
142
+ emits: ["update:is-open", "update:active-page"],
143
+ setup(u, { emit: e }) {
144
+ const a = u, { activePage: t, isOpen: l } = O(a), { t: E } = $(), o = r(null), i = r(!1), p = z("modal-fullscreen"), _ = r(!1), f = B(), I = x(f), S = M(() => ({
145
+ "b-modal-fullscreen--hide": i.value
146
+ })), A = () => {
147
+ i.value && (o.value.close(), s.value[0] && e("update:active-page", s.value[0]), s.value = [], i.value = !1, _.value = !1, e("update:is-open", !1));
148
+ }, m = () => {
149
+ o.value.open && (i.value = !0);
66
150
  };
67
- return C(
151
+ k(
68
152
  () => l.value,
69
153
  async () => {
70
- await h(), a.value && (l.value ? (n.value = !0, a.value.showModal()) : a.value.open && d());
154
+ await T(), o.value && (l.value ? (_.value = !0, o.value.showModal(), s.value.length || s.value.push(t.value)) : o.value.open && m());
71
155
  },
72
156
  { immediate: !0 }
73
- ), B(() => {
74
- if (t.actions && t.actions.length > 2)
75
- throw new Error("Not more than 2 action buttons may be provided in Bento Modal Fullscreen");
76
- }), g(w, c), { __sfc: !0, props: t, emit: e, isOpen: l, t: s, modal: a, isClosing: o, modalFullscreenId: c, internalIsOpen: n, slots: u, hasSlot: _, conditionalClasses: m, closeModalAfterAnimation: f, startCloseModalAnimation: d, BentoButton: x, BentoButtonActions: L, BentoFocusTrap: A, BentoTypography: I, CrossIcon: F };
157
+ ), d(H, p);
158
+ const g = r(R.TRANSITION_LEVEL_DEEPER), c = r([]), s = r([]), v = (n) => e("update:active-page", n);
159
+ d(J, {
160
+ activePage: t,
161
+ animation: g,
162
+ isOpen: _,
163
+ pages: c,
164
+ previousPages: s,
165
+ updatePage: v
166
+ });
167
+ const y = (n) => () => {
168
+ var b;
169
+ c.value = (b = c.value) == null ? void 0 : b.filter((F) => F !== n);
170
+ }, h = (n) => (n && c.value.push(n), { unregisterPage: y(n) });
171
+ return d(K, h), { __sfc: !0, props: a, emit: e, activePage: t, isOpen: l, t: E, modal: o, isClosing: i, modalFullscreenId: p, internalIsOpen: _, slots: f, hasSlot: I, conditionalClasses: S, closeModalAfterAnimation: A, startCloseModalAnimation: m, animation: g, pages: c, previousPages: s, updatePage: v, unregisterPage: y, registerPage: h, BentoButton: D, BentoFocusTrap: N, BentoModalFullscreenPage: X, CrossIcon: Y };
77
172
  }
78
173
  });
79
- var N = function() {
80
- var e = this, t = e._self._c, l = e._self._setupProxy;
81
- return t("dialog", { ref: "modal", staticClass: "b-modal-fullscreen", class: l.conditionalClasses, attrs: { id: l.modalFullscreenId }, on: { animationend: l.closeModalAfterAnimation, keydown: function(s) {
82
- return !s.type.indexOf("key") && e._k(s.keyCode, "esc", 27, s.key, ["Esc", "Escape"]) ? null : (s.preventDefault(), l.startCloseModalAnimation.apply(null, arguments));
83
- } } }, [l.internalIsOpen ? t(l.BentoFocusTrap, { staticClass: "b-modal-fullscreen__wrapper" }, [t("div", { staticClass: "b-modal-fullscreen__header" }, [t("div", { staticClass: "b-modal-fullscreen__header-section b-modal-fullscreen__header-section--title" }, [e.title ? t(l.BentoTypography, { staticClass: "b-modal-fullscreen__title", attrs: { el: "h2", variant: "title", title: e.title } }, [e._v(e._s(e.title))]) : e._e()], 1), l.hasSlot("header") ? t("div", { staticClass: "b-modal-fullscreen__header-section b-modal-fullscreen__header-section--slot" }, [e._t("header")], 2) : e._e(), t("div", { staticClass: "b-modal-fullscreen__header-section b-modal-fullscreen__header-section--actions" }, [e.contextualLabel ? t(l.BentoTypography, { staticClass: "b-modal-fullscreen__contextual-label", attrs: { el: "span", title: e.contextualLabel } }, [e._v(e._s(e.contextualLabel))]) : e._e(), e.actions ? t(l.BentoButtonActions, { staticClass: "b-modal-fullscreen__actions", attrs: { actions: e.actions } }) : e._e(), t("div", { staticClass: "b-modal-fullscreen__separator" }), t("div", { staticClass: "b-modal-fullscreen__close-button" }, [t(l.BentoButton, { attrs: { variant: "tertiary", "aria-label": l.t("close") }, on: { click: l.startCloseModalAnimation }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
84
- return [t(l.CrossIcon, { attrs: { "aria-hidden": !0 } })];
85
- }, proxy: !0 }], null, !1, 4214210411) })], 1)], 1)]), t("div", { staticClass: "b-modal-fullscreen__content" }, [e._t("default")], 2)]) : e._e()], 1);
86
- }, R = [], U = /* @__PURE__ */ O(
87
- D,
88
- N,
89
- R,
174
+ var ae = function() {
175
+ var e = this, a = e._self._c, t = e._self._setupProxy;
176
+ return a("dialog", { ref: "modal", staticClass: "b-modal-fullscreen", class: t.conditionalClasses, attrs: { id: t.modalFullscreenId }, on: { animationend: t.closeModalAfterAnimation, keydown: function(l) {
177
+ return !l.type.indexOf("key") && e._k(l.keyCode, "esc", 27, l.key, ["Esc", "Escape"]) ? null : (l.preventDefault(), t.startCloseModalAnimation.apply(null, arguments));
178
+ } } }, [t.internalIsOpen ? a(t.BentoFocusTrap, { staticClass: "b-modal-fullscreen__wrapper" }, [t.props.activePage ? [e._t("default")] : a(t.BentoModalFullscreenPage, { attrs: { actions: e.actions, "contextual-label": e.contextualLabel, title: e.title }, scopedSlots: e._u([t.hasSlot("default") ? { key: "default", fn: function() {
179
+ return [e._t("default")];
180
+ }, proxy: !0 } : null, t.hasSlot("header") ? { key: "header", fn: function() {
181
+ return [e._t("header")];
182
+ }, proxy: !0 } : null], null, !0) }), a("div", { staticClass: "b-modal-fullscreen__close-button" }, [a(t.BentoButton, { attrs: { variant: "tertiary", "aria-label": t.t("close") }, on: { click: t.startCloseModalAnimation }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
183
+ return [a(t.CrossIcon, { attrs: { "aria-hidden": !0 } })];
184
+ }, proxy: !0 }], null, !1, 4214210411) })], 1)], 2) : e._e()], 1);
185
+ }, le = [], se = /* @__PURE__ */ P(
186
+ te,
187
+ ae,
188
+ le,
90
189
  !1,
91
190
  null,
92
- "e8bea9ea",
191
+ "222ed9fd",
93
192
  null,
94
193
  null
95
194
  );
96
- const V = U.exports;
195
+ const ve = se.exports;
97
196
  export {
98
- V as BentoModalFullscreen
197
+ ve as BentoModalFullscreen,
198
+ X as BentoModalFullscreenPage
99
199
  };
100
200
  //# sourceMappingURL=modal-fullscreen.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"modal-fullscreen.js","sources":["../src/components/modal-fullscreen/modal-fullscreen.keys.ts","../src/components/modal-fullscreen/modal-fullscreen.vue"],"sourcesContent":["export const MODAL_FULLSCREEN_DIALOG_ID_INJECTION_KEY = Symbol('modal fullscreen children element injection key');\n","<template>\n <dialog\n :id=\"modalFullscreenId\"\n ref=\"modal\"\n class=\"b-modal-fullscreen\"\n :class=\"conditionalClasses\"\n @animationend=\"closeModalAfterAnimation\"\n @keydown.esc.prevent=\"startCloseModalAnimation\"\n >\n <bento-focus-trap v-if=\"internalIsOpen\" class=\"b-modal-fullscreen__wrapper\">\n <div class=\"b-modal-fullscreen__header\">\n <div class=\"b-modal-fullscreen__header-section b-modal-fullscreen__header-section--title\">\n <bento-typography\n v-if=\"title\"\n el=\"h2\"\n variant=\"title\"\n class=\"b-modal-fullscreen__title\"\n :title=\"title\"\n >{{ title }}</bento-typography\n >\n </div>\n <div\n v-if=\"hasSlot('header')\"\n class=\"b-modal-fullscreen__header-section b-modal-fullscreen__header-section--slot\"\n >\n <slot name=\"header\" />\n </div>\n <div class=\"b-modal-fullscreen__header-section b-modal-fullscreen__header-section--actions\">\n <bento-typography\n v-if=\"contextualLabel\"\n class=\"b-modal-fullscreen__contextual-label\"\n el=\"span\"\n :title=\"contextualLabel\"\n >{{ contextualLabel }}</bento-typography\n >\n <bento-button-actions v-if=\"actions\" class=\"b-modal-fullscreen__actions\" :actions=\"actions\" />\n <div class=\"b-modal-fullscreen__separator\"></div>\n <div class=\"b-modal-fullscreen__close-button\">\n <bento-button variant=\"tertiary\" :aria-label=\"t('close')\" @click=\"startCloseModalAnimation\">\n <template #iconLeft><cross-icon :aria-hidden=\"true\" /></template>\n </bento-button>\n </div>\n </div>\n </div>\n\n <div class=\"b-modal-fullscreen__content\">\n <slot />\n </div>\n </bento-focus-trap>\n </dialog>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, nextTick, onMounted, PropType, provide, ref, toRefs, useSlots, watch } from 'vue';\n\n import { BentoButton, BentoButtonActions, BentoButtonActionsList } from '@/components/button';\n import { BentoFocusTrap } from '@/components/focus-trap';\n import { BentoTypography } from '@/components/typography';\n import CrossIcon from '@adyen/ui-assets-icons-16/vue/cross';\n\n import { useI18n } from '@/utils/ts/i18n';\n import { generateUid } from '@/utils/ts/unique-id';\n import { useHasSlot } from '@/composables';\n import { MODAL_FULLSCREEN_DIALOG_ID_INJECTION_KEY } from '@/components/modal-fullscreen/modal-fullscreen.keys';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const props = defineProps({\n /**\n * List of actions that will be used to render the buttons.\n * First element in the list will be rendered as \"primary\".\n * All elements after the first will be rendered as \"secondary\".\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * @see BentoButton for a list of all the other props supported by each button action.\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n default: null,\n },\n /**\n * Label shown next to the modal actions\n */\n contextualLabel: {\n type: String,\n default: null,\n },\n /**\n * Controls the modal's state from the outside. Set it to true to open the modal\n */\n isOpen: {\n type: Boolean,\n default: null,\n },\n /**\n * Title of the modal\n */\n title: {\n type: String,\n default: null,\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emits 'update:is-open' event when the modal is closed\n */\n (e: 'update:is-open', isOpen: boolean): void;\n }>();\n\n // Refs\n const { isOpen } = toRefs(props);\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const modal = ref(null);\n const isClosing = ref(false);\n const modalFullscreenId = generateUid('modal-fullscreen');\n const internalIsOpen = ref(null);\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n // Animation styling\n const conditionalClasses = computed(() => ({\n 'b-modal-fullscreen--hide': isClosing.value,\n }));\n\n // Handle closing and closing animation for dialog element\n const closeModalAfterAnimation = () => {\n if (isClosing.value) {\n modal.value.close();\n isClosing.value = false;\n internalIsOpen.value = false;\n emit('update:is-open', false);\n }\n };\n\n const startCloseModalAnimation = () => {\n if (!modal.value.open) {\n return;\n }\n isClosing.value = true;\n };\n\n // Watching isOpen prop to toggle open/close the dialog element\n watch(\n () => isOpen.value,\n async () => {\n // Wait for modal ref to be created\n await nextTick();\n\n if (!modal.value) {\n return;\n }\n\n if (isOpen.value) {\n internalIsOpen.value = true;\n modal.value.showModal();\n } else if (modal.value.open) {\n startCloseModalAnimation();\n }\n },\n { immediate: true }\n );\n\n onMounted(() => {\n if (props.actions && props.actions.length > 2) {\n throw new Error('Not more than 2 action buttons may be provided in Bento Modal Fullscreen');\n }\n });\n\n // lets children components know they are inside a Modal (dialog element)\n provide(MODAL_FULLSCREEN_DIALOG_ID_INJECTION_KEY, modalFullscreenId);\n</script>\n\n<script lang=\"ts\">\n /**\n * Fullscreen modal takes full available space (no content underneath is visible) and focuses the user's attention exclusively on one complex task or piece of complex information.\n *\n * @example\n * import { BentoModalFullscreen } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoModalFullscreen },\n * template: `\n * <bento-modal-fullscreen\n * :is-open=\"isOpen\"\n * @update:is-open=\"isOpen = $event\"\n * title='Fullscreen modal title'\n * contextual-label='Contextual label'\n * :actions=\"[{ title: 'Action', event: () => {}]\"\n * >\n * <template #header>{{ header slot }}</template>\n * {{ content }}\n * </bento-modal-fullscreen>\n * `\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./modal-fullscreen.scss\" />\n"],"names":["MODAL_FULLSCREEN_DIALOG_ID_INJECTION_KEY","__default__","messages","isOpen","toRefs","props","t","useI18n","modal","ref","isClosing","modalFullscreenId","generateUid","internalIsOpen","slots","useSlots","hasSlot","useHasSlot","conditionalClasses","computed","closeModalAfterAnimation","emit","startCloseModalAnimation","watch","nextTick","onMounted","provide"],"mappings":";;;;;;;;;;;AAAa,MAAAA,IAAA,OAAA,iDAAA;;;;GCyMTC,IAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAxFA,EAAA,QAAAC,EAAA,IAAAC,EAAAC,CAAA,GACA,EAAA,GAAAC,EAAA,IAAAC,EAAA,GACAC,IAAAC,EAAA,IAAA,GACAC,IAAAD,EAAA,EAAA,GACAE,IAAAC,EAAA,kBAAA,GACAC,IAAAJ,EAAA,IAAA,GAEAK,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAGAI,IAAAC,EAAA,OAAA;AAAA,MAA2C,4BAAAT,EAAA;AAAA,IACD,EAAA,GAI1CU,IAAA,MAAA;AACI,MAAAV,EAAA,UACIF,EAAA,MAAA,MAAA,GACAE,EAAA,QAAA,IACAG,EAAA,QAAA,IACAQ,EAAA,kBAAA,EAAA;AAAA,IACJ,GAGJC,IAAA,MAAA;AACI,MAAAd,EAAA,MAAA,SAGAE,EAAA,QAAA;AAAA,IAAkB;AAItB,WAAAa;AAAA,MAAA,MAAApB,EAAA;AAAA,MACiB,YAAA;AAKT,QAFA,MAAAqB,EAAA,GAEAhB,EAAA,UAIAL,EAAA,SACIU,EAAA,QAAA,IACAL,EAAA,MAAA,UAAA,KAAsBA,EAAA,MAAA,QAEtBc,EAAA;AAAA,MACJ;AAAA,MACJ,EAAA,WAAA,GAAA;AAAA,IACkB,GAGtBG,EAAA,MAAA;AACI,UAAApB,EAAA,WAAAA,EAAA,QAAA,SAAA;AACI,cAAA,IAAA,MAAA,0EAAA;AAAA,IACJ,CAAA,GAIJqB,EAAA1B,GAAAW,CAAA;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"modal-fullscreen.js","sources":["../src/components/modal-fullscreen/components/modal-fullscreen-page.vue","../src/components/modal-fullscreen/modal-fullscreen.vue"],"sourcesContent":["<template>\n <dialog-page class=\"b-modal-fullscreen-page\" :page-id=\"pageId\" :previous-page=\"previousPage\" always-show-border>\n <template #header>\n <div class=\"b-modal-fullscreen-page__header\">\n <div class=\"b-modal-fullscreen-page__header-section b-modal-fullscreen-page__header-section--title\">\n <bento-typography\n v-if=\"title\"\n el=\"h2\"\n variant=\"title\"\n class=\"b-modal-fullscreen-page__title\"\n :title=\"title\"\n >{{ title }}</bento-typography\n >\n </div>\n <div\n v-if=\"hasSlot('header')\"\n class=\"b-modal-fullscreen-page__header-section b-modal-fullscreen-page__header-section--slot\"\n >\n <slot name=\"header\" />\n </div>\n <div class=\"b-modal-fullscreen-page__header-section b-modal-fullscreen-page__header-section--actions\">\n <bento-typography\n v-if=\"contextualLabel\"\n class=\"b-modal-fullscreen-page__contextual-label\"\n el=\"span\"\n :title=\"contextualLabel\"\n >{{ contextualLabel }}</bento-typography\n >\n <bento-button-actions v-if=\"actions\" class=\"b-modal-fullscreen-page__actions\" :actions=\"actions\" />\n <div class=\"b-modal-fullscreen-page__separator\"></div>\n </div>\n </div>\n </template>\n <template #content>\n <div class=\"b-modal-fullscreen-page__content\">\n <slot />\n </div>\n </template>\n </dialog-page>\n</template>\n\n<script setup lang=\"ts\">\n import { onMounted, PropType, useSlots } from 'vue';\n\n import { BentoButtonActions, BentoButtonActionsList } from '@/components/button';\n import { BentoTypography } from '@/components/typography';\n import { DialogPage } from '@/internal';\n\n import { useHasSlot } from '@/composables';\n\n const props = defineProps({\n /**\n * List of actions that will be used to render the buttons.\n * First element in the list will be rendered as \"primary\".\n * All elements after the first will be rendered as \"secondary\".\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * @see BentoButton for a list of all the other props supported by each button action.\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n default: null,\n },\n\n /**\n * Label shown next to the modal actions\n */\n contextualLabel: {\n type: String,\n default: null,\n },\n\n /**\n * Identifier of the page, used with activePage prop to handle sidepanel navigation\n */\n pageId: {\n type: String,\n default: undefined,\n },\n\n /**\n * ID of the page for the back button to navigate to. Only use it to overwrite the default back behavior\n * Used when the back button should not take the user to the natural previous page\n * Set to `null` to hide back button in the page\n */\n previousPage: {\n type: String,\n default: undefined,\n },\n\n /**\n * Title of the modal\n */\n title: {\n type: String,\n default: null,\n },\n });\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n onMounted(() => {\n if (props.actions && props.actions.length > 2) {\n throw new Error('Not more than 2 action buttons may be provided in Bento Modal Fullscreen');\n }\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * ModalFullscreenPage is used to render different pages of ModalFullscreen component\n *\n * @example\n * import { BentoModalFullscreen, BentoModalFullscreenPage } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoModalFullscreen, BentoModalFullscreenPage },\n * template: `\n * <bento-modal-fullscreen active-page='page1' is-open='true'>\n * <bento-modal-fullscreen-page\n * title='Page 1'\n * pageId='page1'\n * contextual-label='Move to next page'\n * :actions=\"[\n * {\n * title: 'Next page',\n * event: () => {\n * activePage.value = 'page2';\n * },\n * }]\">\n * Page 1 info\n * </bento-modal-fullscreen-page>\n * <bento-modal-fullscreen-page\n * title='Page 2'\n * pageId='page2'\n * :actions=\"[\n * {\n * title: 'Save',\n * event: () => {},\n * }]\">\n * Page 2 info\n * </bento-modal-fullscreen-page>\n * </bento-modal-fullscreen>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./modal-fullscreen-page.scss\" />\n","<template>\n <dialog\n :id=\"modalFullscreenId\"\n ref=\"modal\"\n class=\"b-modal-fullscreen\"\n :class=\"conditionalClasses\"\n @animationend=\"closeModalAfterAnimation\"\n @keydown.esc.prevent=\"startCloseModalAnimation\"\n >\n <bento-focus-trap v-if=\"internalIsOpen\" class=\"b-modal-fullscreen__wrapper\">\n <template v-if=\"props.activePage\">\n <slot />\n </template>\n <bento-modal-fullscreen-page v-else :actions=\"actions\" :contextual-label=\"contextualLabel\" :title=\"title\">\n <template v-if=\"hasSlot('default')\" #default>\n <slot name=\"default\"></slot>\n </template>\n <template v-if=\"hasSlot('header')\" #header>\n <slot name=\"header\"></slot>\n </template>\n </bento-modal-fullscreen-page>\n <div class=\"b-modal-fullscreen__close-button\">\n <bento-button variant=\"tertiary\" :aria-label=\"t('close')\" @click=\"startCloseModalAnimation\">\n <template #iconLeft><cross-icon :aria-hidden=\"true\" /></template>\n </bento-button>\n </div>\n </bento-focus-trap>\n </dialog>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, nextTick, PropType, provide, ref, toRefs, useSlots, watch } from 'vue';\n\n import { BentoButton, BentoButtonActionsList } from '@/components/button';\n import { BentoFocusTrap } from '@/components/focus-trap';\n import BentoModalFullscreenPage from './components/modal-fullscreen-page.vue';\n\n import CrossIcon from '@adyen/ui-assets-icons-16/vue/cross';\n\n import { useI18n } from '@/utils/ts/i18n';\n import { generateUid } from '@/utils/ts/unique-id';\n import { useHasSlot } from '@/composables';\n import { MODAL_FULLSCREEN_DIALOG_ID_INJECTION_KEY } from '@/components/modal-fullscreen/modal-fullscreen.keys';\n\n import messages from './messages.json';\n import {\n BentoDialogPageAnimation,\n BentoDialogPageConfigData,\n BentoDialogPageRegisterPage,\n DIALOG_PAGE_CONFIG_INJECTION_KEY,\n DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY,\n } from '@/internal';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const props = defineProps({\n /**\n * List of actions that will be used to render the buttons.\n * First element in the list will be rendered as \"primary\".\n * All elements after the first will be rendered as \"secondary\".\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * @see BentoButton for a list of all the other props supported by each button action.\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n default: null,\n },\n\n /**\n * The id of the current active page\n * Should be the same as the pageId of the BentoModalFullscreenPage to be displayed\n */\n activePage: {\n type: String,\n default: null,\n },\n\n /**\n * Label shown next to the modal actions\n */\n contextualLabel: {\n type: String,\n default: null,\n },\n /**\n * Controls the modal's state from the outside. Set it to true to open the modal\n */\n isOpen: {\n type: Boolean,\n default: null,\n },\n /**\n * Title of the modal\n */\n title: {\n type: String,\n default: null,\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emits 'update:is-open' event when the modal is closed\n */\n (e: 'update:is-open', isOpen: boolean): void;\n /**\n * Emits update event when page is changed internally\n */\n (e: 'update:active-page', page: string): void;\n }>();\n\n // Refs\n const { activePage, isOpen } = toRefs(props);\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const modal = ref(null);\n const isClosing = ref(false);\n const modalFullscreenId = generateUid('modal-fullscreen');\n const internalIsOpen = ref(false);\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n // Animation styling\n const conditionalClasses = computed(() => ({\n 'b-modal-fullscreen--hide': isClosing.value,\n }));\n\n // Handle closing and closing animation for dialog element\n const closeModalAfterAnimation = () => {\n if (isClosing.value) {\n modal.value.close();\n if (previousPages.value[0]) {\n emit('update:active-page', previousPages.value[0]);\n }\n previousPages.value = [];\n isClosing.value = false;\n internalIsOpen.value = false;\n emit('update:is-open', false);\n }\n };\n\n const startCloseModalAnimation = () => {\n if (!modal.value.open) {\n return;\n }\n isClosing.value = true;\n };\n\n // Watching isOpen prop to toggle open/close the dialog element\n watch(\n () => isOpen.value,\n async () => {\n // Wait for modal ref to be created\n await nextTick();\n\n if (!modal.value) {\n return;\n }\n\n if (isOpen.value) {\n internalIsOpen.value = true;\n modal.value.showModal();\n if (!previousPages.value.length) {\n previousPages.value.push(activePage.value);\n }\n } else if (modal.value.open) {\n startCloseModalAnimation();\n }\n },\n { immediate: true }\n );\n\n // lets children components know they are inside a Modal (dialog element)\n provide(MODAL_FULLSCREEN_DIALOG_ID_INJECTION_KEY, modalFullscreenId);\n\n // Pages\n const animation = ref(BentoDialogPageAnimation.TRANSITION_LEVEL_DEEPER);\n const pages = ref<string[]>([]);\n const previousPages = ref([]);\n const updatePage = page => emit('update:active-page', page);\n\n provide<BentoDialogPageConfigData>(DIALOG_PAGE_CONFIG_INJECTION_KEY, {\n activePage,\n animation,\n isOpen: internalIsOpen,\n pages,\n previousPages,\n updatePage,\n });\n\n // unregister page if removed / destroyed\n const unregisterPage = (pageIdToRemove: string) => () => {\n pages.value = pages.value?.filter(pageId => pageId !== pageIdToRemove);\n };\n\n // Provide data and function to register page to subcomponent\n const registerPage: BentoDialogPageRegisterPage = pageId => {\n if (pageId) {\n pages.value.push(pageId);\n }\n\n return { unregisterPage: unregisterPage(pageId) };\n };\n\n provide(DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY, registerPage);\n</script>\n\n<script lang=\"ts\">\n /**\n * Fullscreen modal takes full available space (no content underneath is visible) and focuses the user's attention exclusively on one complex task or piece of complex information.\n *\n * @example\n * import { BentoModalFullscreen } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoModalFullscreen },\n * template: `\n * <bento-modal-fullscreen\n * :is-open=\"isOpen\"\n * @update:is-open=\"isOpen = $event\"\n * title='Fullscreen modal title'\n * contextual-label='Contextual label'\n * :actions=\"[{ title: 'Action', event: () => {}]\"\n * >\n * <template #header>{{ header slot }}</template>\n * {{ content }}\n * </bento-modal-fullscreen>\n * `\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./modal-fullscreen.scss\" />\n"],"names":["__default__$1","slots","useSlots","hasSlot","useHasSlot","onMounted","props","__default__","messages","activePage","isOpen","toRefs","t","useI18n","modal","ref","isClosing","modalFullscreenId","generateUid","internalIsOpen","conditionalClasses","computed","closeModalAfterAnimation","previousPages","emit","startCloseModalAnimation","watch","nextTick","provide","MODAL_FULLSCREEN_DIALOG_ID_INJECTION_KEY","animation","BentoDialogPageAnimation","pages","updatePage","page","DIALOG_PAGE_CONFIG_INJECTION_KEY","unregisterPage","pageIdToRemove","_a","pageId","registerPage","DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY"],"mappings":";;;;;;;;;;;;;AAqJI,MAAAA,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAhDAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA;AAEA,WAAAI,EAAA,MAAA;AACI,UAAAC,EAAA,WAAAA,EAAA,QAAA,SAAA;AACI,cAAA,IAAA,MAAA,0EAAA;AAAA,IACJ,CAAA;;;;;;;;;;;;;;;;;;;;;;;;GC8HJC,KAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAxHA,EAAA,YAAAC,GAAA,QAAAC,EAAA,IAAAC,EAAAL,CAAA,GACA,EAAA,GAAAM,EAAA,IAAAC,EAAA,GACAC,IAAAC,EAAA,IAAA,GACAC,IAAAD,EAAA,EAAA,GACAE,IAAAC,EAAA,kBAAA,GACAC,IAAAJ,EAAA,EAAA,GAEAd,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAGAmB,IAAAC,EAAA,OAAA;AAAA,MAA2C,4BAAAL,EAAA;AAAA,IACD,EAAA,GAI1CM,IAAA,MAAA;AACI,MAAAN,EAAA,UACIF,EAAA,MAAA,MAAA,GACAS,EAAA,MAAA,CAAA,KACIC,EAAA,sBAAAD,EAAA,MAAA,CAAA,CAAA,GAEJA,EAAA,QAAA,CAAA,GACAP,EAAA,QAAA,IACAG,EAAA,QAAA,IACAK,EAAA,kBAAA,EAAA;AAAA,IACJ,GAGJC,IAAA,MAAA;AACI,MAAAX,EAAA,MAAA,SAGAE,EAAA,QAAA;AAAA,IAAkB;AAItB,IAAAU;AAAA,MAAA,MAAAhB,EAAA;AAAA,MACiB,YAAA;AAKT,QAFA,MAAAiB,EAAA,GAEAb,EAAA,UAIAJ,EAAA,SACIS,EAAA,QAAA,IACAL,EAAA,MAAA,UAAA,GACAS,EAAA,MAAA,UACIA,EAAA,MAAA,KAAAd,EAAA,KAAA,KACJK,EAAA,MAAA,QAEAW,EAAA;AAAA,MACJ;AAAA,MACJ,EAAA,WAAA,GAAA;AAAA,IACkB,GAItBG,EAAAC,GAAAZ,CAAA;AAGA,UAAAa,IAAAf,EAAAgB,EAAA,uBAAA,GACAC,IAAAjB,EAAA,CAAA,CAAA,GACAQ,IAAAR,EAAA,CAAA,CAAA,GACAkB,IAAA,CAAAC,MAAAV,EAAA,sBAAAU,CAAA;AAEA,IAAAN,EAAAO,GAAA;AAAA,MAAqE,YAAA1B;AAAA,MACjE,WAAAqB;AAAA,MACA,QAAAX;AAAA,MACQ,OAAAa;AAAA,MACR,eAAAT;AAAA,MACA,YAAAU;AAAA,IACA,CAAA;AAIJ,UAAAG,IAAA,CAAAC,MAAA,MAAA;;AACI,MAAAL,EAAA,SAAAM,IAAAN,EAAA,UAAA,gBAAAM,EAAA,OAAA,CAAAC,MAAAA,MAAAF;AAAA,IAAqE,GAIzEG,IAAA,CAAAD,OACIA,KACIP,EAAA,MAAA,KAAAO,CAAA,GAGJ,EAAA,gBAAAH,EAAAG,CAAA,EAAA;AAGJ,WAAAX,EAAAa,GAAAD,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/modal.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as d, useSlots as g, onMounted as A, toRefs as E, ref as L, computed as f, useAttrs as x, watch as T } from "vue";
2
- import { c as B, g as O, e as c, d as k, b as C, B as R, a as v } from "./chunks/base-modal.1dc6cf96.js";
3
- import { f as _t } from "./chunks/base-modal.1dc6cf96.js";
2
+ import { c as B, g as O, e as c, d as k, b as C, B as R, a as v } from "./chunks/base-modal.27c6f2db.js";
3
+ import { f as _t } from "./chunks/base-modal.27c6f2db.js";
4
4
  import { u as b } from "./chunks/use-has-slot.fbeb19ec.js";
5
- import { F as z } from "./chunks/footer-actions.e0b866b1.js";
5
+ import { F as z } from "./chunks/footer-actions.0268a57b.js";
6
6
  import { n as S } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
7
- import { B as M } from "./chunks/button.f5739261.js";
7
+ import { B as M } from "./chunks/button.0b6cda85.js";
8
8
  import { u as N } from "./chunks/i18n.eb5b985b.js";
9
- import { BentoButtonActions as $ } from "./button.js";
10
- import { d as P } from "./chunks/index.546b27ae.js";
9
+ import { B as $ } from "./chunks/button-actions.1dc90a19.js";
10
+ import { d as P } from "./chunks/index.de687404.js";
11
11
  const F = d({
12
12
  name: "bento-modal-default"
13
13
  }), q = /* @__PURE__ */ d({
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as p, ref as P, computed as r, toRefs as L } from "vue";
2
2
  import { u as N } from "./chunks/aria-label.ac9651a5.js";
3
- import { B as C } from "./chunks/index.546b27ae.js";
4
- import { B as b } from "./chunks/dropdown.0a9acf8b.js";
3
+ import { B as C } from "./chunks/index.de687404.js";
4
+ import { B as b } from "./chunks/dropdown.0574f613.js";
5
5
  import { g as T } from "./chunks/unique-id.a2a2b458.js";
6
6
  import { g as y, a as x } from "./chunks/i18n.eb5b985b.js";
7
7
  import { n as l } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
8
- import { a as S } from "./chunks/button.f5739261.js";
9
- import "./assets/index13.css";
8
+ import { a as S } from "./chunks/button.0b6cda85.js";
9
+ import "./assets/index23.css";
10
10
  const I = {
11
11
  "en-US": {
12
12
  showingItems: "Showing {itemCount} items",