@adyen/bento-vue3 1.26.0 → 1.27.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 (248) hide show
  1. package/dist/@types/components.d.ts +4 -0
  2. package/dist/@types/packages/core/src/utils/ts/storybook.d.ts +12 -0
  3. package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.types.d.ts +1 -0
  4. package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.vue.d.ts +1 -1
  5. package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.types.d.ts +2 -1
  6. package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +3 -3
  7. package/dist/@types/packages/vue2/src/components/code-snippet/utils/get-lang-loader.d.ts +2 -1
  8. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.d.ts +1 -0
  9. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-hovering/use-column-hovering.d.ts +1 -0
  10. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-reorderer/use-column-reorderer.d.ts +2 -0
  11. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-config-settings/use-config-settings.d.ts +1 -0
  12. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-resizer.d.ts +1 -0
  13. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +2 -1
  14. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +15 -0
  15. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +1 -18
  16. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +12 -0
  17. package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +36 -54
  18. package/dist/@types/packages/vue2/src/components/structured-list/structured-list.vue.d.ts +27 -22
  19. package/dist/@types/packages/vue2/src/components/tabs/tabs.vue.d.ts +76 -1
  20. package/dist/@types/packages/vue2/src/components/tutorial/tutorial.vue.d.ts +21 -2
  21. package/dist/@types/packages/vue2/src/index.d.ts +1 -0
  22. package/dist/@types/packages/vue2/src/templates/dashboard-template/components/dashboard-section/dashboard-section.vue.d.ts +78 -0
  23. package/dist/@types/packages/vue2/src/templates/dashboard-template/dashboard-template.types.d.ts +8 -0
  24. package/dist/@types/packages/vue2/src/templates/dashboard-template/dashboard-template.vue.d.ts +103 -0
  25. package/dist/@types/packages/vue2/src/templates/dashboard-template/index.d.ts +3 -0
  26. package/dist/@types/packages/vue2/src/utils/ts/storybook.d.ts +1 -12
  27. package/dist/accordion.js +3 -3
  28. package/dist/action-bar.js +71 -155
  29. package/dist/action-bar.js.map +1 -1
  30. package/dist/alert.js +6 -6
  31. package/dist/assets/base-modal.css +1 -1
  32. package/dist/assets/button-actions.css +1 -1
  33. package/dist/assets/button.css +1 -1
  34. package/dist/assets/dialog-page.css +1 -1
  35. package/dist/assets/dropdown.css +1 -1
  36. package/dist/assets/index.css +1 -1
  37. package/dist/assets/index10.css +1 -1
  38. package/dist/assets/index11.css +1 -1
  39. package/dist/assets/index13.css +1 -1
  40. package/dist/assets/index14.css +1 -1
  41. package/dist/assets/index15.css +1 -1
  42. package/dist/assets/index16.css +1 -1
  43. package/dist/assets/index17.css +1 -1
  44. package/dist/assets/index18.css +1 -1
  45. package/dist/assets/index19.css +1 -1
  46. package/dist/assets/index2.css +1 -1
  47. package/dist/assets/index20.css +1 -1
  48. package/dist/assets/index21.css +1 -1
  49. package/dist/assets/index22.css +1 -1
  50. package/dist/assets/index23.css +1 -1
  51. package/dist/assets/index24.css +1 -1
  52. package/dist/assets/index25.css +1 -1
  53. package/dist/assets/index26.css +1 -1
  54. package/dist/assets/index27.css +1 -1
  55. package/dist/assets/index28.css +1 -1
  56. package/dist/assets/index29.css +1 -1
  57. package/dist/assets/index3.css +1 -1
  58. package/dist/assets/index30.css +1 -1
  59. package/dist/assets/index31.css +1 -1
  60. package/dist/assets/index32.css +1 -1
  61. package/dist/assets/index33.css +1 -1
  62. package/dist/assets/index34.css +1 -1
  63. package/dist/assets/index35.css +1 -1
  64. package/dist/assets/index37.css +1 -1
  65. package/dist/assets/index38.css +1 -1
  66. package/dist/assets/index39.css +1 -1
  67. package/dist/assets/index4.css +1 -1
  68. package/dist/assets/index40.css +1 -1
  69. package/dist/assets/index41.css +1 -1
  70. package/dist/assets/index42.css +1 -1
  71. package/dist/assets/index43.css +1 -1
  72. package/dist/assets/index44.css +1 -1
  73. package/dist/assets/index45.css +1 -1
  74. package/dist/assets/index46.css +1 -1
  75. package/dist/assets/index47.css +1 -1
  76. package/dist/assets/index48.css +1 -1
  77. package/dist/assets/index49.css +1 -0
  78. package/dist/assets/index5.css +1 -1
  79. package/dist/assets/index6.css +1 -1
  80. package/dist/assets/index7.css +1 -1
  81. package/dist/assets/index8.css +1 -1
  82. package/dist/assets/index9.css +1 -1
  83. package/dist/assets/use-cached-selected-values.css +1 -1
  84. package/dist/avatar-image.js +1 -1
  85. package/dist/badge.js +1 -1
  86. package/dist/button.js +4 -4
  87. package/dist/card.js +4 -4
  88. package/dist/checkbox.js +6 -6
  89. package/dist/chunks/{base-button.e84acf30.js → base-button.a0140a4c.js} +2 -2
  90. package/dist/chunks/{base-button.e84acf30.js.map → base-button.a0140a4c.js.map} +1 -1
  91. package/dist/chunks/{base-modal.29e062d0.js → base-modal.4102f69d.js} +7 -7
  92. package/dist/chunks/{base-modal.29e062d0.js.map → base-modal.4102f69d.js.map} +1 -1
  93. package/dist/chunks/{button-actions-with-menu.7fce47a2.js → button-actions-with-menu.4f311411.js} +4 -4
  94. package/dist/chunks/{button-actions-with-menu.7fce47a2.js.map → button-actions-with-menu.4f311411.js.map} +1 -1
  95. package/dist/chunks/{button-actions.642b37de.js → button-actions.82163994.js} +42 -40
  96. package/dist/chunks/button-actions.82163994.js.map +1 -0
  97. package/dist/chunks/{button.60dad578.js → button.ae4760cd.js} +27 -26
  98. package/dist/chunks/button.ae4760cd.js.map +1 -0
  99. package/dist/chunks/{calendar.f38cdab9.js → calendar.a9c5a68c.js} +6 -6
  100. package/dist/chunks/{calendar.f38cdab9.js.map → calendar.a9c5a68c.js.map} +1 -1
  101. package/dist/chunks/{checkbox-input.ab758a81.js → checkbox-input.99336948.js} +2 -2
  102. package/dist/chunks/{checkbox-input.ab758a81.js.map → checkbox-input.99336948.js.map} +1 -1
  103. package/dist/chunks/{checkbox.f55ee3a5.js → checkbox.9c30c07b.js} +4 -4
  104. package/dist/chunks/{checkbox.f55ee3a5.js.map → checkbox.9c30c07b.js.map} +1 -1
  105. package/dist/chunks/{checkmark-circle-fill.f3a69c6a.js → checkmark-circle-fill.c45a999d.js} +2 -2
  106. package/dist/chunks/{checkmark-circle-fill.f3a69c6a.js.map → checkmark-circle-fill.c45a999d.js.map} +1 -1
  107. package/dist/chunks/{checkmark-small.d7e31e5e.js → checkmark-small.c79220d9.js} +2 -2
  108. package/dist/chunks/{checkmark-small.d7e31e5e.js.map → checkmark-small.c79220d9.js.map} +1 -1
  109. package/dist/chunks/{chevron-left.963d35e9.js → chevron-left.4ee92950.js} +2 -2
  110. package/dist/chunks/{chevron-left.963d35e9.js.map → chevron-left.4ee92950.js.map} +1 -1
  111. package/dist/chunks/{chevron-up.05ca20db.js → chevron-up.638a9f34.js} +2 -2
  112. package/dist/chunks/{chevron-up.05ca20db.js.map → chevron-up.638a9f34.js.map} +1 -1
  113. package/dist/chunks/{controls-group.9e0f17b2.js → controls-group.8357e3fd.js} +3 -3
  114. package/dist/chunks/{controls-group.9e0f17b2.js.map → controls-group.8357e3fd.js.map} +1 -1
  115. package/dist/chunks/{copy.852d4cb8.js → copy.60ee6ac3.js} +4 -4
  116. package/dist/chunks/{copy.852d4cb8.js.map → copy.60ee6ac3.js.map} +1 -1
  117. package/dist/chunks/{cross-circle-fill.81925c7f.js → cross-circle-fill.1abec1a2.js} +2 -2
  118. package/dist/chunks/{cross-circle-fill.81925c7f.js.map → cross-circle-fill.1abec1a2.js.map} +1 -1
  119. package/dist/chunks/{cross-small.9bc6a02f.js → cross-small.b85406fe.js} +2 -2
  120. package/dist/chunks/{cross-small.9bc6a02f.js.map → cross-small.b85406fe.js.map} +1 -1
  121. package/dist/chunks/{cross.a60533f6.js → cross.26509efc.js} +2 -2
  122. package/dist/chunks/{cross.a60533f6.js.map → cross.26509efc.js.map} +1 -1
  123. package/dist/chunks/{dialog-page.ea67bb14.js → dialog-page.cb6ce9b6.js} +3 -3
  124. package/dist/chunks/{dialog-page.ea67bb14.js.map → dialog-page.cb6ce9b6.js.map} +1 -1
  125. package/dist/chunks/{dropdown-default-textbox.ad5063c2.js → dropdown-default-textbox.cda0798f.js} +5 -5
  126. package/dist/chunks/{dropdown-default-textbox.ad5063c2.js.map → dropdown-default-textbox.cda0798f.js.map} +1 -1
  127. package/dist/chunks/{dropdown.d8587f36.js → dropdown.0ae3b842.js} +122 -132
  128. package/dist/chunks/dropdown.0ae3b842.js.map +1 -0
  129. package/dist/chunks/{error-message.3fb5573a.js → error-message.d2bdeb80.js} +3 -3
  130. package/dist/chunks/{error-message.3fb5573a.js.map → error-message.d2bdeb80.js.map} +1 -1
  131. package/dist/chunks/{events.58c00e6d.js → events.f14a214b.js} +5 -5
  132. package/dist/chunks/events.f14a214b.js.map +1 -0
  133. package/dist/chunks/{fixed-scroller.59aefd1b.js → fixed-scroller.7b42cb1e.js} +3 -3
  134. package/dist/chunks/{fixed-scroller.59aefd1b.js.map → fixed-scroller.7b42cb1e.js.map} +1 -1
  135. package/dist/chunks/{footer-actions.89e68269.js → footer-actions.64f6f5d8.js} +4 -4
  136. package/dist/chunks/{footer-actions.89e68269.js.map → footer-actions.64f6f5d8.js.map} +1 -1
  137. package/dist/chunks/{index.96cd0d4c.js → index.2d7b4511.js} +15 -15
  138. package/dist/chunks/{index.96cd0d4c.js.map → index.2d7b4511.js.map} +1 -1
  139. package/dist/chunks/index.2fcd1233.js +103 -0
  140. package/dist/chunks/index.2fcd1233.js.map +1 -0
  141. package/dist/chunks/{index.9bf04b01.js → index.6295e754.js} +3 -3
  142. package/dist/chunks/{index.9bf04b01.js.map → index.6295e754.js.map} +1 -1
  143. package/dist/chunks/{index.030c1dd7.js → index.6bb6f38c.js} +7 -7
  144. package/dist/chunks/{index.030c1dd7.js.map → index.6bb6f38c.js.map} +1 -1
  145. package/dist/chunks/{index.ba3396d3.js → index.8aa536a8.js} +3 -3
  146. package/dist/chunks/{index.ba3396d3.js.map → index.8aa536a8.js.map} +1 -1
  147. package/dist/chunks/{index.8be283d5.js → index.9d7fb316.js} +2 -2
  148. package/dist/chunks/{index.8be283d5.js.map → index.9d7fb316.js.map} +1 -1
  149. package/dist/chunks/{index.5bdebf9d.js → index.a001a0a8.js} +7 -7
  150. package/dist/chunks/{index.5bdebf9d.js.map → index.a001a0a8.js.map} +1 -1
  151. package/dist/chunks/{index.07122048.js → index.b18c78d6.js} +2 -2
  152. package/dist/chunks/{index.07122048.js.map → index.b18c78d6.js.map} +1 -1
  153. package/dist/chunks/{index.6e0e9d21.js → index.eb38a6c4.js} +3 -3
  154. package/dist/chunks/{index.6e0e9d21.js.map → index.eb38a6c4.js.map} +1 -1
  155. package/dist/chunks/{index.a3d60e4f.js → index.ee15db35.js} +2 -2
  156. package/dist/chunks/{index.a3d60e4f.js.map → index.ee15db35.js.map} +1 -1
  157. package/dist/chunks/{index.146f967e.js → index.f9d081d2.js} +2 -2
  158. package/dist/chunks/{index.146f967e.js.map → index.f9d081d2.js.map} +1 -1
  159. package/dist/chunks/index.fedbb4c2.js +125 -0
  160. package/dist/chunks/index.fedbb4c2.js.map +1 -0
  161. package/dist/chunks/{info.205b4496.js → info.550f9511.js} +2 -2
  162. package/dist/chunks/{info.205b4496.js.map → info.550f9511.js.map} +1 -1
  163. package/dist/chunks/{keyboard-navigation.ca47dfa8.js → keyboard-navigation.bbc3d15c.js} +2 -2
  164. package/dist/chunks/{keyboard-navigation.ca47dfa8.js.map → keyboard-navigation.bbc3d15c.js.map} +1 -1
  165. package/dist/chunks/{listbox-option-tag.b6182b2e.js → listbox-option-tag.2aea037c.js} +3 -3
  166. package/dist/chunks/{listbox-option-tag.b6182b2e.js.map → listbox-option-tag.2aea037c.js.map} +1 -1
  167. package/dist/chunks/{loading-button.0391ad8b.js → loading-button.6b81b546.js} +4 -4
  168. package/dist/chunks/{loading-button.0391ad8b.js.map → loading-button.6b81b546.js.map} +1 -1
  169. package/dist/chunks/{payment-method.31a68b9b.js → payment-method.d5595a7c.js} +2 -2
  170. package/dist/chunks/{payment-method.31a68b9b.js.map → payment-method.d5595a7c.js.map} +1 -1
  171. package/dist/chunks/{refresh.53691839.js → refresh.bd60f6a8.js} +2 -2
  172. package/dist/chunks/{refresh.53691839.js.map → refresh.bd60f6a8.js.map} +1 -1
  173. package/dist/chunks/{search.4e4ee4dd.js → search.ade93bda.js} +2 -2
  174. package/dist/chunks/{search.4e4ee4dd.js.map → search.ade93bda.js.map} +1 -1
  175. package/dist/chunks/{tooltip.1084d92b.js → tooltip.36172265.js} +4 -4
  176. package/dist/chunks/{tooltip.1084d92b.js.map → tooltip.36172265.js.map} +1 -1
  177. package/dist/chunks/{use-bento-toast-controller.98d8613c.js → use-bento-toast-controller.3dc4e113.js} +2 -2
  178. package/dist/chunks/{use-bento-toast-controller.98d8613c.js.map → use-bento-toast-controller.3dc4e113.js.map} +1 -1
  179. package/dist/chunks/{use-cached-selected-values.852aeafe.js → use-cached-selected-values.3c312296.js} +396 -375
  180. package/dist/chunks/use-cached-selected-values.3c312296.js.map +1 -0
  181. package/dist/code-snippet.js +137 -135
  182. package/dist/code-snippet.js.map +1 -1
  183. package/dist/country.js +2 -2
  184. package/dist/currency.js +1 -1
  185. package/dist/dashboard-template.js +169 -0
  186. package/dist/dashboard-template.js.map +1 -0
  187. package/dist/data-grid-template.js +1 -1
  188. package/dist/data-grid.js +52 -44
  189. package/dist/data-grid.js.map +1 -1
  190. package/dist/date-picker.js +19 -19
  191. package/dist/date-picker.js.map +1 -1
  192. package/dist/date-range-picker.js +2 -2
  193. package/dist/date.js +1 -1
  194. package/dist/divider.js +1 -1
  195. package/dist/dropdown.js +7 -7
  196. package/dist/empty-state.js +3 -3
  197. package/dist/filter-bar.js +85 -83
  198. package/dist/filter-bar.js.map +1 -1
  199. package/dist/focus-trap.js +1 -1
  200. package/dist/form-layout.js +2 -2
  201. package/dist/header.js +5 -5
  202. package/dist/index.js +66 -63
  203. package/dist/index.js.map +1 -1
  204. package/dist/info-icon.js +4 -4
  205. package/dist/input-field.js +4 -4
  206. package/dist/internal.js +8 -8
  207. package/dist/link.js +1 -1
  208. package/dist/loading-indicator.js +1 -1
  209. package/dist/menu.js +1 -1
  210. package/dist/modal-fullscreen.js +7 -7
  211. package/dist/modal.js +6 -6
  212. package/dist/pagination.js +4 -4
  213. package/dist/payment-method.js +1 -1
  214. package/dist/popover.js +1 -1
  215. package/dist/popper-container.js +1 -1
  216. package/dist/radio-group.js +4 -4
  217. package/dist/search-bar.js +4 -4
  218. package/dist/secondary-nav.js +2 -2
  219. package/dist/segmented-control.js +66 -72
  220. package/dist/segmented-control.js.map +1 -1
  221. package/dist/selection-card.js +5 -5
  222. package/dist/sidepanel.js +7 -7
  223. package/dist/status.js +2 -2
  224. package/dist/stepper.js +5 -5
  225. package/dist/structured-list.js +1 -1
  226. package/dist/summary-grid.js +3 -3
  227. package/dist/tabs.js +80 -78
  228. package/dist/tabs.js.map +1 -1
  229. package/dist/tag.js +3 -3
  230. package/dist/textarea.js +4 -4
  231. package/dist/timeline.js +7 -7
  232. package/dist/toast.js +4 -4
  233. package/dist/toggle.js +3 -3
  234. package/dist/tutorial.js +125 -110
  235. package/dist/tutorial.js.map +1 -1
  236. package/dist/typography.js +1 -1
  237. package/dist/web-types.json +1 -1
  238. package/package.json +8 -6
  239. package/dist/chunks/button-actions.642b37de.js.map +0 -1
  240. package/dist/chunks/button.60dad578.js.map +0 -1
  241. package/dist/chunks/checkmark.87919b24.js +0 -29
  242. package/dist/chunks/checkmark.87919b24.js.map +0 -1
  243. package/dist/chunks/dropdown.d8587f36.js.map +0 -1
  244. package/dist/chunks/events.58c00e6d.js.map +0 -1
  245. package/dist/chunks/index.c8ffede1.js +0 -168
  246. package/dist/chunks/index.c8ffede1.js.map +0 -1
  247. package/dist/chunks/use-cached-selected-values.852aeafe.js.map +0 -1
  248. /package/dist/assets/{checkmark-circle-fill.css → cross.css} +0 -0
@@ -1,4 +1,4 @@
1
- import { B as a } from "./chunks/index.8be283d5.js";
1
+ import { B as a } from "./chunks/index.9d7fb316.js";
2
2
  export {
3
3
  a as BentoFocusTrap
4
4
  };
@@ -3,8 +3,8 @@ import { BentoAlert as B } from "./alert.js";
3
3
  import { F as I } from "./chunks/form-layout.types.a7a1438d.js";
4
4
  import { u as h } from "./chunks/use-has-slot.4d98bf29.js";
5
5
  import { _ as y } from "./chunks/_plugin-vue_export-helper.dad06003.js";
6
- import { B as v, c as k } from "./chunks/index.a3d60e4f.js";
7
- import "./assets/index43.css";
6
+ import { B as v, c as k } from "./chunks/index.ee15db35.js";
7
+ import "./assets/index45.css";
8
8
  const E = {
9
9
  key: 1,
10
10
  class: "b-form-layout__actions-container"
package/dist/header.js CHANGED
@@ -1,17 +1,17 @@
1
1
  import { defineComponent as H, ref as I, openBlock as m, createElementBlock as w, createVNode as x, unref as _, createBlock as b, withCtx as g, renderSlot as G, toDisplayString as A, createCommentVNode as M, computed as O, resolveComponent as N, normalizeClass as q, createElementVNode as E, mergeProps as J, createTextVNode as R, createSlots as K } from "vue";
2
2
  import { u as Q } from "./chunks/use-has-slot.4d98bf29.js";
3
- import { B as V, c as X, a as Z } from "./chunks/index.a3d60e4f.js";
3
+ import { B as V, c as X, a as Z } from "./chunks/index.ee15db35.js";
4
4
  import { u as F } from "./chunks/i18n.f7e6533e.js";
5
- import { B as ee } from "./chunks/button-actions-with-menu.7fce47a2.js";
5
+ import { B as ee } from "./chunks/button-actions-with-menu.4f311411.js";
6
6
  import { c as D, a as te } from "./chunks/index.86453263.js";
7
7
  import { r as v, t as c, e as C, g as L, d as oe, f as ne } from "./chunks/index.f55fdc32.js";
8
8
  import { e as ae } from "./chunks/index.fdf12170.js";
9
9
  import { e as re } from "./chunks/index.d80206ed.js";
10
- import { a as y } from "./chunks/index.5bdebf9d.js";
10
+ import { a as y } from "./chunks/index.a001a0a8.js";
11
11
  import { g as se } from "./chunks/unique-id.a2a2b458.js";
12
- import { I as ie } from "./chunks/info.205b4496.js";
12
+ import { I as ie } from "./chunks/info.550f9511.js";
13
13
  import { _ as W } from "./chunks/_plugin-vue_export-helper.dad06003.js";
14
- import "./assets/index15.css";
14
+ import "./assets/index20.css";
15
15
  function le(e, a) {
16
16
  v(2, arguments);
17
17
  var n = c(e), t = c(a), s = n.getFullYear() - t.getFullYear(), o = n.getMonth() - t.getMonth();
package/dist/index.js CHANGED
@@ -1,23 +1,23 @@
1
1
  import { shallowRef as f, ref as p } from "vue";
2
- import { t as c, c as x } from "./chunks/use-bento-toast-controller.98d8613c.js";
3
- import { u as E } from "./chunks/use-bento-toast-controller.98d8613c.js";
2
+ import { t as c, c as x } from "./chunks/use-bento-toast-controller.3dc4e113.js";
3
+ import { u as E } from "./chunks/use-bento-toast-controller.3dc4e113.js";
4
4
  import { BentoActionBar as P } from "./action-bar.js";
5
5
  import { BentoAccordion as V, BentoAccordionItem as k } from "./accordion.js";
6
6
  import { BentoAlert as M, BentoAlertEvent as G, BentoAlertTypeOption as A, BentoAlertVariant as O } from "./alert.js";
7
- import { a as z, b as j, B as N } from "./chunks/button.60dad578.js";
7
+ import { a as z, b as j, B as N } from "./chunks/button.ae4760cd.js";
8
8
  import { BentoCard as Z, BentoCardBackground as U, BentoCardTitleSize as W } from "./card.js";
9
9
  import { BentoColumnOverflow as _, BentoDataGrid as q, BentoDatagridAriaSortValue as J, BentoDatagridEvent as Q, BentoDatagridSortDirection as X, BentoDatagridStyleState as Y } from "./data-grid.js";
10
10
  import { BentoDatePicker as ee, BentoDatePickerEvent as te } from "./date-picker.js";
11
- import { B as ne, a as re } from "./chunks/index.96cd0d4c.js";
12
- import { B as Be, a as ie, u as me } from "./chunks/dropdown.d8587f36.js";
13
- import { B as pe } from "./chunks/index.07122048.js";
14
- import { B as le, a as de } from "./chunks/checkbox.f55ee3a5.js";
11
+ import { B as ne, a as re } from "./chunks/index.2d7b4511.js";
12
+ import { B as Be, a as ie, u as me } from "./chunks/dropdown.0ae3b842.js";
13
+ import { B as pe } from "./chunks/index.b18c78d6.js";
14
+ import { B as le, a as de } from "./chunks/checkbox.9c30c07b.js";
15
15
  import { BentoClickOutside as ce } from "./click-outside.js";
16
16
  import { BentoCodeSnippet as ye, BentoCodeSnippetEvent as Se, BentoCodeSnippetSupportedLanguage as ge, BentoCodeSnippetVariant as Te } from "./code-snippet.js";
17
17
  import { BentoCountry as ve } from "./country.js";
18
18
  import { c as be, B as he, a as Ie, u as Ee, b as Fe } from "./chunks/country.types.002caff2.js";
19
19
  import { BentoCurrency as Le, BentoCurrencyISOCode as Ve } from "./currency.js";
20
- import { B as we, a as Me } from "./chunks/index.146f967e.js";
20
+ import { B as we, a as Me } from "./chunks/index.f9d081d2.js";
21
21
  import { BentoEmptyState as Ae, BentoEmptyStateImage as Oe, BentoEmptyStateImageVariant as Re, BentoEmptyStateVariant as ze } from "./empty-state.js";
22
22
  import { BentoFilterBar as Ne, BentoFilterBarEvent as Ke, BentoFilterEvent as Ze, BentoFilterItemType as Ue } from "./filter-bar.js";
23
23
  import { BentoFormLayout as He, BentoFormLayoutFieldTip as _e, BentoFormLayoutGroup as qe, BentoFormLayoutTitle as Je } from "./form-layout.js";
@@ -25,15 +25,15 @@ import { BentoImage as Xe, BentoImageAspectRatio as Ye, BentoImageObjectFit as $
25
25
  import { BentoInfoIcon as tt } from "./info-icon.js";
26
26
  import { BentoInputField as nt, BentoInputFieldElementPosition as rt, BentoInputFieldEvent as at, BentoInputFieldStateClass as Bt, BentoInputFieldType as it, BentoInputFieldVariant as mt } from "./input-field.js";
27
27
  import { BentoLoadingIndicator as pt, BentoLoadingIndicatorEvent as ut } from "./loading-indicator.js";
28
- import { B as dt, a as ft } from "./chunks/index.6e0e9d21.js";
29
- import { B as xt, a as yt } from "./chunks/index.030c1dd7.js";
30
- import { d as gt, f as Tt, g as Ct, B as vt, e as Dt, c as bt, a as ht, b as It } from "./chunks/base-modal.29e062d0.js";
28
+ import { B as dt, a as ft } from "./chunks/index.eb38a6c4.js";
29
+ import { B as xt, a as yt } from "./chunks/index.6bb6f38c.js";
30
+ import { d as gt, f as Tt, g as Ct, B as vt, e as Dt, c as bt, a as ht, b as It } from "./chunks/base-modal.4102f69d.js";
31
31
  import { BentoModalFullscreen as Ft, BentoModalFullscreenPage as Pt } from "./modal-fullscreen.js";
32
32
  import { BentoHeader as Vt } from "./header.js";
33
33
  import { BentoPagination as wt } from "./pagination.js";
34
- import { B as Gt } from "./chunks/payment-method.31a68b9b.js";
34
+ import { B as Gt } from "./chunks/payment-method.d5595a7c.js";
35
35
  import { BentoPaymentMethodType as Ot } from "./payment-method.js";
36
- import { a as zt, B as jt } from "./chunks/index.5bdebf9d.js";
36
+ import { a as zt, B as jt } from "./chunks/index.a001a0a8.js";
37
37
  import { BentoRadioButton as Kt, BentoRadioGroup as Zt, BentoRadioGroupVariant as Ut } from "./radio-group.js";
38
38
  import { BentoSearchBar as Ht, BentoSearchBarEvent as _t, BentoSearchBarInternalEvent as qt } from "./search-bar.js";
39
39
  import { BentoSecondaryNav as Qt } from "./secondary-nav.js";
@@ -42,7 +42,7 @@ import { BentoSelectionCard as to, BentoSelectionCardGroup as oo, BentoSelection
42
42
  import { BentoSidepanel as ao, BentoSidepanelEvent as Bo, BentoSidepanelPage as io } from "./sidepanel.js";
43
43
  import { BentoStatus as so, BentoStatusVariant as po } from "./status.js";
44
44
  import { BentoStep as lo, BentoStepper as fo, BentoStepperTypeOption as co, BentoStepperVariantOption as xo } from "./stepper.js";
45
- import { B as So, a as go } from "./chunks/index.c8ffede1.js";
45
+ import { B as So, a as go } from "./chunks/index.2fcd1233.js";
46
46
  import { BentoSummaryGrid as Co, BentoSummaryGridItemAmount as vo, BentoSummaryGridItemCustom as Do, BentoSummaryGridItemNumeric as bo, BentoSummaryGridItemPercentage as ho, BentoSummaryGridItemSize as Io, BentoSummaryGridItemText as Eo, BentoSummaryGridItemTrendDirection as Fo } from "./summary-grid.js";
47
47
  import { BentoTab as Lo, BentoTabs as Vo } from "./tabs.js";
48
48
  import { BentoTag as wo, BentoTagVariant as Mo } from "./tag.js";
@@ -50,25 +50,26 @@ import { BentoTextarea as Ao } from "./textarea.js";
50
50
  import { BentoTimeline as Ro, BentoTimelineGapUnit as zo, BentoTimelineItem as jo, BentoTimelineItemVariant as No, BentoTimelineShowMorePlacement as Ko, BentoTimelineStatus as Zo } from "./timeline.js";
51
51
  import { BentoToast as Wo } from "./toast.js";
52
52
  import { BentoToggle as _o, BentoToggleLabelPosition as qo, BentoTogglePropClass as Jo } from "./toggle.js";
53
- import { B as Xo, c as Yo, b as $o, a as en } from "./chunks/index.a3d60e4f.js";
53
+ import { B as Xo, c as Yo, b as $o, a as en } from "./chunks/index.ee15db35.js";
54
54
  import * as n from "zod";
55
55
  import { u as on } from "./chunks/use-click-outside.941d1600.js";
56
- import { BentoDataGridTemplate as rn } from "./data-grid-template.js";
57
- import { D as Bn } from "./chunks/date-input.9186a0bf.js";
58
- import { a as sn, B as pn } from "./chunks/keyboard-navigation.ca47dfa8.js";
59
- import { c as ln, b as dn, c as fn, b as cn } from "./chunks/use-cached-selected-values.852aeafe.js";
60
- import { B as yn } from "./chunks/dropdown-default-textbox.ad5063c2.js";
61
- import { b as gn, B as Tn, a as Cn } from "./chunks/tooltip.1084d92b.js";
62
- import { B as Dn, c as bn, a as hn, b as In } from "./chunks/button-actions.642b37de.js";
63
- import { B as Fn, a as Pn } from "./chunks/loading-button.0391ad8b.js";
64
- import { BentoToggleButton as Vn } from "./button.js";
65
- import { b as wn, b as Mn } from "./chunks/calendar.f38cdab9.js";
66
- import { BentoDropdownAvatar as An, BentoDropdownCountry as On, BentoDropdownCurrency as Rn, BentoDropdownPaymentMethod as zn, BentoDropdownTag as jn } from "./dropdown.js";
67
- import { C as Kn } from "./chunks/checkbox-input.ab758a81.js";
68
- import { BentoCheckboxGroup as Un, BentoCheckboxGroupVariant as Wn } from "./checkbox.js";
69
- import { BentoModal as _n } from "./modal.js";
70
- import { R as Jn } from "./chunks/radio-input.1dd15424.js";
71
- import { BentoTutorial as Xn } from "./tutorial.js";
56
+ import { BentoDashboardSection as rn, BentoDashboardTemplate as an } from "./dashboard-template.js";
57
+ import { BentoDataGridTemplate as mn } from "./data-grid-template.js";
58
+ import { D as pn } from "./chunks/date-input.9186a0bf.js";
59
+ import { a as ln, B as dn } from "./chunks/keyboard-navigation.bbc3d15c.js";
60
+ import { c as cn, b as xn, c as yn, b as Sn } from "./chunks/use-cached-selected-values.3c312296.js";
61
+ import { B as Tn } from "./chunks/dropdown-default-textbox.cda0798f.js";
62
+ import { b as vn, B as Dn, a as bn } from "./chunks/tooltip.36172265.js";
63
+ import { B as In, c as En, a as Fn, b as Pn } from "./chunks/button-actions.82163994.js";
64
+ import { B as Vn, a as kn } from "./chunks/loading-button.6b81b546.js";
65
+ import { BentoToggleButton as Mn } from "./button.js";
66
+ import { b as An, b as On } from "./chunks/calendar.a9c5a68c.js";
67
+ import { BentoDropdownAvatar as zn, BentoDropdownCountry as jn, BentoDropdownCurrency as Nn, BentoDropdownPaymentMethod as Kn, BentoDropdownTag as Zn } from "./dropdown.js";
68
+ import { C as Wn } from "./chunks/checkbox-input.99336948.js";
69
+ import { BentoCheckboxGroup as _n, BentoCheckboxGroupVariant as qn } from "./checkbox.js";
70
+ import { BentoModal as Qn } from "./modal.js";
71
+ import { R as Yn } from "./chunks/radio-input.1dd15424.js";
72
+ import { BentoTutorial as er } from "./tutorial.js";
72
73
  function v(t) {
73
74
  return t;
74
75
  }
@@ -128,10 +129,10 @@ export {
128
129
  A as BentoAlertTypeOption,
129
130
  O as BentoAlertVariant,
130
131
  z as BentoButton,
131
- Dn as BentoButtonActions,
132
- bn as BentoButtonActionsLayout,
133
- hn as BentoButtonActionsLayoutBasic,
134
- In as BentoButtonActionsLayoutExtended,
132
+ In as BentoButtonActions,
133
+ En as BentoButtonActionsLayout,
134
+ Fn as BentoButtonActionsLayoutBasic,
135
+ Pn as BentoButtonActionsLayoutExtended,
135
136
  j as BentoButtonPropClass,
136
137
  N as BentoButtonVariant,
137
138
  Z as BentoCard,
@@ -139,11 +140,11 @@ export {
139
140
  W as BentoCardTitleSize,
140
141
  le as BentoCheckbox,
141
142
  de as BentoCheckboxEvent,
142
- Un as BentoCheckboxGroup,
143
- Wn as BentoCheckboxGroupVariant,
144
- Kn as BentoCheckboxState,
143
+ _n as BentoCheckboxGroup,
144
+ qn as BentoCheckboxGroupVariant,
145
+ Wn as BentoCheckboxState,
145
146
  ce as BentoClickOutside,
146
- yn as BentoClickOutsideDirective,
147
+ Tn as BentoClickOutsideDirective,
147
148
  ye as BentoCodeSnippet,
148
149
  Se as BentoCodeSnippetEvent,
149
150
  ge as BentoCodeSnippetSupportedLanguage,
@@ -154,8 +155,10 @@ export {
154
155
  he as BentoCountryVariant,
155
156
  Le as BentoCurrency,
156
157
  Ve as BentoCurrencyISOCode,
158
+ rn as BentoDashboardSection,
159
+ an as BentoDashboardTemplate,
157
160
  q as BentoDataGrid,
158
- rn as BentoDataGridTemplate,
161
+ mn as BentoDataGridTemplate,
159
162
  J as BentoDatagridAriaSortValue,
160
163
  Q as BentoDatagridEvent,
161
164
  X as BentoDatagridSortDirection,
@@ -164,20 +167,20 @@ export {
164
167
  Me as BentoDateFormat,
165
168
  ee as BentoDatePicker,
166
169
  te as BentoDatePickerEvent,
167
- wn as BentoDatePickerFirstDayOfWeek,
170
+ An as BentoDatePickerFirstDayOfWeek,
168
171
  ne as BentoDateRangePicker,
169
172
  re as BentoDateRangePickerEvent,
170
- Mn as BentoDateRangePickerFirstDayOfWeek,
173
+ On as BentoDateRangePickerFirstDayOfWeek,
171
174
  pe as BentoDivider,
172
175
  Be as BentoDropdown,
173
- An as BentoDropdownAvatar,
174
- On as BentoDropdownCountry,
175
- Rn as BentoDropdownCurrency,
176
- ln as BentoDropdownEvent,
177
- dn as BentoDropdownLazyLoadType,
178
- zn as BentoDropdownPaymentMethod,
176
+ zn as BentoDropdownAvatar,
177
+ jn as BentoDropdownCountry,
178
+ Nn as BentoDropdownCurrency,
179
+ cn as BentoDropdownEvent,
180
+ xn as BentoDropdownLazyLoadType,
181
+ Kn as BentoDropdownPaymentMethod,
179
182
  ie as BentoDropdownSize,
180
- jn as BentoDropdownTag,
183
+ Zn as BentoDropdownTag,
181
184
  Ae as BentoEmptyState,
182
185
  Oe as BentoEmptyStateImage,
183
186
  Re as BentoEmptyStateImageVariant,
@@ -201,19 +204,19 @@ export {
201
204
  Bt as BentoInputFieldStateClass,
202
205
  it as BentoInputFieldType,
203
206
  mt as BentoInputFieldVariant,
204
- sn as BentoKeyboardNavigationDirective,
205
- pn as BentoKeyboardNavigationKeyDownEvent,
207
+ ln as BentoKeyboardNavigationDirective,
208
+ dn as BentoKeyboardNavigationKeyDownEvent,
206
209
  dt as BentoLink,
207
210
  ft as BentoLinkVariant,
208
- fn as BentoListboxEvent,
209
- cn as BentoListboxLazyLoadType,
210
- Fn as BentoLoadingButton,
211
- Pn as BentoLoadingButtonState,
211
+ yn as BentoListboxEvent,
212
+ Sn as BentoListboxLazyLoadType,
213
+ Vn as BentoLoadingButton,
214
+ kn as BentoLoadingButtonState,
212
215
  pt as BentoLoadingIndicator,
213
216
  ut as BentoLoadingIndicatorEvent,
214
217
  xt as BentoMenu,
215
218
  yt as BentoMenuEvent,
216
- _n as BentoModal,
219
+ Qn as BentoModal,
217
220
  gt as BentoModalColumnLayoutVariant,
218
221
  Tt as BentoModalDialogType,
219
222
  Ct as BentoModalEvent,
@@ -230,7 +233,7 @@ export {
230
233
  zt as BentoPopover,
231
234
  jt as BentoPopoverPositions,
232
235
  Kt as BentoRadioButton,
233
- Jn as BentoRadioButtonStateClass,
236
+ Yn as BentoRadioButtonStateClass,
234
237
  Zt as BentoRadioGroup,
235
238
  Ut as BentoRadioGroupVariant,
236
239
  Ht as BentoSearchBar,
@@ -274,18 +277,18 @@ export {
274
277
  Zo as BentoTimelineStatus,
275
278
  Wo as BentoToast,
276
279
  _o as BentoToggle,
277
- Vn as BentoToggleButton,
280
+ Mn as BentoToggleButton,
278
281
  qo as BentoToggleLabelPosition,
279
282
  Jo as BentoTogglePropClass,
280
- gn as BentoTooltipDirective,
281
- Tn as BentoTooltipPosition,
282
- Cn as BentoTooltipState,
283
- Xn as BentoTutorial,
283
+ vn as BentoTooltipDirective,
284
+ Dn as BentoTooltipPosition,
285
+ bn as BentoTooltipState,
286
+ er as BentoTutorial,
284
287
  Xo as BentoTypography,
285
288
  Yo as BentoTypographyElement,
286
289
  $o as BentoTypographyModifier,
287
290
  en as BentoTypographyVariant,
288
- Bn as DateFormat,
291
+ pn as DateFormat,
289
292
  b as default,
290
293
  v as toTypedSchema,
291
294
  E as useBentoToastController,
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../vue2/src/composables/use-form-validate/use-form.ts","../../vue2/src/composables/use-bento-toast-controller/install.ts","../../vue2/src/install.ts"],"sourcesContent":["import { Ref, ref, shallowRef } from 'vue';\nimport * as z from 'zod';\nimport type { ZodSchema } from 'zod';\nimport { ErrorBag, UseForm } from './use-form.types';\n\n/**\n * Composable that tansforms a Zod schema into a Typed Schema that can be used alongside with {@see useForm}.\n *\n * This is meant to simulate the behavior of {@link @vee-validate/zod} {@see https://vee-validate.logaretm.com/v4/integrations/zod-schema-validation}.\n * Function that transform Zod’s schemas into something that can be understood by vee-validate\n *\n * @param {T extends ZodSchema} formSchema Zod schema to be transformed into a `vee-validate` schema\n * @returns {UseForm<T>} schema Schema transformed\n */\nexport function toTypedSchema<T extends ZodSchema>(formSchema: T) {\n return formSchema;\n}\n\n/**\n * Finds and returns the initial values of each of the values defined in the schema so that they\n * can be transformed into a reactive element.\n * @param {ZodSchema} schema Zod validation schema containing the definitions of each value to be used in the form\n * @returns Object with the items defined in the schema and their (default) values\n *\n * @example\n * const validationSchema = toTypedSchema(\n * z.object({\n * name: z\n * .string()\n * .min(3, { message: 'Name is required' })\n * .startsWith('Jane')\n * .max(4, { message: 'Name cannot be longer than 4 characters' })\n * .default('Joe'),\n * })\n * );\n * getInitialFormValues(validationSchema)\n *\n * Will return:\n *\n * {\n * name: 'Joe'\n * }\n *\n */\nfunction getInitialFormValues<T extends ZodSchema>(schema: T): z.infer<typeof schema> {\n if (!!z && schema instanceof z.ZodObject) {\n return Object.fromEntries(\n Object.entries(schema.shape).map(([key, value]) => {\n if (!!z && value instanceof z.ZodDefault) {\n // eslint-disable-next-line no-underscore-dangle\n return [key, value._def.defaultValue()];\n }\n\n if (!!z && value instanceof z.ZodObject) {\n return [key, getInitialFormValues(value)];\n }\n\n return [key, undefined];\n })\n ) as z.infer<typeof schema>;\n }\n\n return undefined;\n}\n\n/**\n * Constructs a path with dot paths for arrays to use brackets to be compatible with vee-validate path syntax\n * @param issue List of nested path elements\n * @returns Path with dots\n */\nfunction normalizeFormPath(issue: z.ZodIssue) {\n return issue.path.join('.');\n}\n\n/**\n * Composable that facilitates validating form data for Vue2 & Vue3 implementations with FormLayout\n * to ease the migration to Vue3.\n *\n * For Vue3 implementations use Vee-Validate.\n *\n * This provides a simplified version of Vee-Validate v4 implemented with Zod to validate a form schema.\n * It returns reactive values that can be used directly in form input elements with 'v-model' alongside\n * with functions to \"reset\" the data (sets values to default value) and a function to execute the\n * successful form validation process (through a callback).\n *\n * @param {UseForm<T>} props Form configuration object\n * @param {T extends ZodSchema} props.validationSchema Zod typed validation schema\n * @returns {Object} response - Composable with reactive form values and errors, and functions to handle the reactive data\n * @returns {Ref<ErrorBag<T>>} response.errorBag Object with all the form values and an array of each one of the errors (if any) per value\n * @returns {Ref<T>} response.errors Object with all the form values and the first error found for that field (if any)\n * @returns {Ref<T>} response.values Object with all the form values and their current value\n * @returns {() => void} response.handleReset Resets the form values to default (initial values) when it gets called\n * @returns {(callback: (values: T) => void) => () => void} response.submitForm Validates the data set in {response.values} and sets errors (if found) inside {response.errors} and {response.errorBag}.\n * When the validation is successful it calls the callback so the submit process can continue\n *\n * @example\n * const validationSchema = toTypedSchema(\n * z.object({\n * name: z\n * .string()\n * .min(3, { message: 'Name is required' })\n * .startsWith('Jane')\n * .max(4, { message: 'Name cannot be longer than 4 characters' })\n * .default('Joe'),\n * })\n * );\n *\n * const { values, errors, errorBag, submitForm, handleReset } = useForm({\n * validationSchema\n * });\n * const handleSubmit = submitForm(() => {\n * // Send data to API here\n * })\n *\n */\nexport function useForm<T extends ZodSchema>({ validationSchema }: UseForm<T>) {\n // Errors per field\n const errors = shallowRef<z.infer<typeof validationSchema>>({});\n // All errors per field\n const errorBag: Ref<ErrorBag<z.infer<typeof validationSchema>>> = ref({});\n const values = ref(getInitialFormValues(validationSchema));\n\n const cleanErrors = () => {\n errors.value = {};\n errorBag.value = {};\n };\n\n const resetForm = () => {\n cleanErrors();\n values.value = getInitialFormValues<T>(validationSchema);\n };\n\n const submitForm = submitted => () => {\n cleanErrors();\n\n // Run validations on the form data through the schema\n const validSchema = validationSchema.safeParse(values.value);\n\n // Update errors\n if (!validSchema.success) {\n (validSchema as z.SafeParseError<T>).error.issues.forEach(error => {\n const path = normalizeFormPath(error);\n\n // Add the first ocurrance of a fild error to the \"errors\" object\n if (!errors.value[path]) {\n errors.value[path] = error.message;\n }\n\n // Add each error to the \"errorBag\" per field array\n if (!errorBag.value[path]) {\n errorBag.value[path] = [error.message];\n } else {\n errorBag.value[path].push(error.message);\n }\n });\n } else {\n submitted(values.value);\n }\n };\n\n return {\n // Values\n errorBag,\n errors,\n values,\n\n // Methods\n handleReset: () => resetForm(),\n submitForm,\n };\n}\n","import { type App, isVue2, type Vue2 } from 'vue-demi';\nimport { createToastStack, toastStackInjectionKey } from './toast-stack';\n\n/**\n * This function is used to create and register global reactive state necessary fro the Toasts to operate.\n * @param {Vue} Vue A context application to register global state with.\n */\nexport default Vue => {\n if (isVue2) {\n // Add toast stack as a global property as there is no \"app.provide\" functionality in Vue2\n // eslint-disable-next-line no-param-reassign -- this is an official way of setting up instance properties on Vue\n (Vue as typeof Vue2).prototype[toastStackInjectionKey] = createToastStack();\n } else {\n (Vue as App).provide(toastStackInjectionKey, createToastStack());\n }\n};\n","import type { PluginObject } from 'vue';\nimport installToast from './composables/use-bento-toast-controller/install';\n\nexport enum BentoTheme {\n LEGACY = 'b-legacy-theme',\n STYLEGUIDE = 'b-styleguide-theme',\n BENTO = '',\n}\n\ninterface BentoVuePlugin {\n theme: BentoTheme;\n withToast: boolean;\n}\n\nconst setTheme = (theme: BentoTheme) => {\n document.body.classList.add(theme);\n};\n\nconst plugin: PluginObject<BentoVuePlugin> = {\n install: async (Vue, options: { theme: BentoTheme; withToast: boolean; withUtilityClasses: boolean }) => {\n if (options?.withToast) {\n installToast(Vue);\n }\n // Make sure to put all awaited CSS imports below this point and not above!\n if (options?.theme === BentoTheme.LEGACY) {\n setTheme(BentoTheme.LEGACY);\n await import('@adyen/bento-design-tokens/dist/css/bento/variables-legacy.css');\n } else if (options?.theme === BentoTheme.STYLEGUIDE) {\n setTheme(BentoTheme.STYLEGUIDE);\n await import('@adyen/bento-design-tokens/dist/css/bento/variables-styleguide.css');\n } else {\n await import('@adyen/bento-design-tokens/dist/css/bento/variables.css');\n }\n\n if (options?.withUtilityClasses) {\n await import('@adyen/bento-design-tokens/dist/css/bento/utility.css');\n }\n },\n};\n\nexport default plugin;\n"],"names":["toTypedSchema","formSchema","getInitialFormValues","schema","z","key","value","normalizeFormPath","issue","useForm","validationSchema","errors","shallowRef","errorBag","ref","values","cleanErrors","resetForm","validSchema","submitted","error","path","installToast","Vue","toastStackInjectionKey","createToastStack","setTheme","theme","plugin","options"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcO,SAASA,EAAmCC,GAAe;AACvD,SAAAA;AACX;AA4BA,SAASC,EAA0CC,GAAmC;AAClF,MAAMC,KAAKD,aAAkBC,EAAE;AAC3B,WAAO,OAAO;AAAA,MACV,OAAO,QAAQD,EAAO,KAAK,EAAE,IAAI,CAAC,CAACE,GAAKC,CAAK,MACnCF,KAAKE,aAAiBF,EAAE,aAEnB,CAACC,GAAKC,EAAM,KAAK,aAAc,CAAA,IAGpCF,KAAKE,aAAiBF,EAAE,YACnB,CAACC,GAAKH,EAAqBI,CAAK,CAAC,IAGrC,CAACD,GAAK,MAAS,CACzB;AAAA,IAAA;AAKb;AAOA,SAASE,EAAkBC,GAAmB;AACnC,SAAAA,EAAM,KAAK,KAAK,GAAG;AAC9B;AA2CgB,SAAAC,EAA6B,EAAE,kBAAAC,KAAgC;AAErE,QAAAC,IAASC,EAA6C,CAAA,CAAE,GAExDC,IAA4DC,EAAI,CAAA,CAAE,GAClEC,IAASD,EAAIZ,EAAqBQ,CAAgB,CAAC,GAEnDM,IAAc,MAAM;AACtB,IAAAL,EAAO,QAAQ,IACfE,EAAS,QAAQ;EAAC,GAGhBI,IAAY,MAAM;AACR,IAAAD,KACLD,EAAA,QAAQb,EAAwBQ,CAAgB;AAAA,EAAA;AA+BpD,SAAA;AAAA;AAAA,IAEH,UAAAG;AAAA,IACA,QAAAF;AAAA,IACA,QAAAI;AAAA;AAAA,IAGA,aAAa,MAAME,EAAU;AAAA,IAC7B,YApCe,OAAa,MAAM;AACtB,MAAAD;AAGZ,YAAME,IAAcR,EAAiB,UAAUK,EAAO,KAAK;AAGvD,MAACG,EAAY,UAiBbC,EAAUJ,EAAO,KAAK,IAhBrBG,EAAoC,MAAM,OAAO,QAAQ,CAASE,MAAA;AACzD,cAAAC,IAAOd,EAAkBa,CAAK;AAGpC,QAAKT,EAAO,MAAMU,CAAI,MACXV,EAAA,MAAMU,CAAI,IAAID,EAAM,UAI1BP,EAAS,MAAMQ,CAAI,IAGpBR,EAAS,MAAMQ,CAAI,EAAE,KAAKD,EAAM,OAAO,IAFvCP,EAAS,MAAMQ,CAAI,IAAI,CAACD,EAAM,OAAO;AAAA,MAGzC,CACH;AAAA,IAGL;AAAA,EAWA;AAER;ACnKA,MAAeE,IAAA,CAAOC,MAAA;AAMb,EAAAA,EAAY,QAAQC,GAAwBC,EAAkB,CAAA;AAEvE,GCDMC,IAAW,CAACC,MAAsB;AAC3B,WAAA,KAAK,UAAU,IAAIA,CAAK;AACrC,GAEMC,IAAuC;AAAA,EACzC,SAAS,OAAOL,GAAKM,MAAoF;AACrG,IAAIA,KAAA,QAAAA,EAAS,aACTP,EAAaC,CAAG,IAGhBM,KAAA,gBAAAA,EAAS,WAAU,oBACnBH;AAAA,MAAS;AAAA;AAAA,IAAiB,GAC1B,MAAM,OAAO,qEAAgE,MACtEG,KAAA,gBAAAA,EAAS,WAAU,wBAC1BH;AAAA,MAAS;AAAA;AAAA,IAAqB,GAC9B,MAAM,OAAO,yEAAoE,KAEjF,MAAM,OAAO,8DAAyD,GAGtEG,KAAA,QAAAA,EAAS,sBACT,MAAM,OAAO,4DAAuD;AAAA,EAE5E;AACJ;"}
1
+ {"version":3,"file":"index.js","sources":["../../vue2/src/composables/use-form-validate/use-form.ts","../../vue2/src/composables/use-bento-toast-controller/install.ts","../../vue2/src/install.ts"],"sourcesContent":["import { Ref, ref, shallowRef } from 'vue';\nimport * as z from 'zod';\nimport type { ZodSchema } from 'zod';\nimport { ErrorBag, UseForm } from './use-form.types';\n\n/**\n * Composable that tansforms a Zod schema into a Typed Schema that can be used alongside with {@see useForm}.\n *\n * This is meant to simulate the behavior of {@link @vee-validate/zod} {@see https://vee-validate.logaretm.com/v4/integrations/zod-schema-validation}.\n * Function that transform Zod’s schemas into something that can be understood by vee-validate\n *\n * @param {T extends ZodSchema} formSchema Zod schema to be transformed into a `vee-validate` schema\n * @returns {UseForm<T>} schema Schema transformed\n */\nexport function toTypedSchema<T extends ZodSchema>(formSchema: T) {\n return formSchema;\n}\n\n/**\n * Finds and returns the initial values of each of the values defined in the schema so that they\n * can be transformed into a reactive element.\n * @param {ZodSchema} schema Zod validation schema containing the definitions of each value to be used in the form\n * @returns Object with the items defined in the schema and their (default) values\n *\n * @example\n * const validationSchema = toTypedSchema(\n * z.object({\n * name: z\n * .string()\n * .min(3, { message: 'Name is required' })\n * .startsWith('Jane')\n * .max(4, { message: 'Name cannot be longer than 4 characters' })\n * .default('Joe'),\n * })\n * );\n * getInitialFormValues(validationSchema)\n *\n * Will return:\n *\n * {\n * name: 'Joe'\n * }\n *\n */\nfunction getInitialFormValues<T extends ZodSchema>(schema: T): z.infer<typeof schema> {\n if (!!z && schema instanceof z.ZodObject) {\n return Object.fromEntries(\n Object.entries(schema.shape).map(([key, value]) => {\n if (!!z && value instanceof z.ZodDefault) {\n // eslint-disable-next-line no-underscore-dangle\n return [key, value._def.defaultValue()];\n }\n\n if (!!z && value instanceof z.ZodObject) {\n return [key, getInitialFormValues(value)];\n }\n\n return [key, undefined];\n })\n ) as z.infer<typeof schema>;\n }\n\n return undefined;\n}\n\n/**\n * Constructs a path with dot paths for arrays to use brackets to be compatible with vee-validate path syntax\n * @param issue List of nested path elements\n * @returns Path with dots\n */\nfunction normalizeFormPath(issue: z.ZodIssue) {\n return issue.path.join('.');\n}\n\n/**\n * Composable that facilitates validating form data for Vue2 & Vue3 implementations with FormLayout\n * to ease the migration to Vue3.\n *\n * For Vue3 implementations use Vee-Validate.\n *\n * This provides a simplified version of Vee-Validate v4 implemented with Zod to validate a form schema.\n * It returns reactive values that can be used directly in form input elements with 'v-model' alongside\n * with functions to \"reset\" the data (sets values to default value) and a function to execute the\n * successful form validation process (through a callback).\n *\n * @param {UseForm<T>} props Form configuration object\n * @param {T extends ZodSchema} props.validationSchema Zod typed validation schema\n * @returns {Object} response - Composable with reactive form values and errors, and functions to handle the reactive data\n * @returns {Ref<ErrorBag<T>>} response.errorBag Object with all the form values and an array of each one of the errors (if any) per value\n * @returns {Ref<T>} response.errors Object with all the form values and the first error found for that field (if any)\n * @returns {Ref<T>} response.values Object with all the form values and their current value\n * @returns {() => void} response.handleReset Resets the form values to default (initial values) when it gets called\n * @returns {(callback: (values: T) => void) => () => void} response.submitForm Validates the data set in {response.values} and sets errors (if found) inside {response.errors} and {response.errorBag}.\n * When the validation is successful it calls the callback so the submit process can continue\n *\n * @example\n * const validationSchema = toTypedSchema(\n * z.object({\n * name: z\n * .string()\n * .min(3, { message: 'Name is required' })\n * .startsWith('Jane')\n * .max(4, { message: 'Name cannot be longer than 4 characters' })\n * .default('Joe'),\n * })\n * );\n *\n * const { values, errors, errorBag, submitForm, handleReset } = useForm({\n * validationSchema\n * });\n * const handleSubmit = submitForm(() => {\n * // Send data to API here\n * })\n *\n */\nexport function useForm<T extends ZodSchema>({ validationSchema }: UseForm<T>) {\n // Errors per field\n const errors = shallowRef<z.infer<typeof validationSchema>>({});\n // All errors per field\n const errorBag: Ref<ErrorBag<z.infer<typeof validationSchema>>> = ref({});\n const values = ref(getInitialFormValues(validationSchema));\n\n const cleanErrors = () => {\n errors.value = {};\n errorBag.value = {};\n };\n\n const resetForm = () => {\n cleanErrors();\n values.value = getInitialFormValues<T>(validationSchema);\n };\n\n const submitForm = submitted => () => {\n cleanErrors();\n\n // Run validations on the form data through the schema\n const validSchema = validationSchema.safeParse(values.value);\n\n // Update errors\n if (!validSchema.success) {\n (validSchema as z.SafeParseError<T>).error.issues.forEach(error => {\n const path = normalizeFormPath(error);\n\n // Add the first ocurrance of a fild error to the \"errors\" object\n if (!errors.value[path]) {\n errors.value[path] = error.message;\n }\n\n // Add each error to the \"errorBag\" per field array\n if (!errorBag.value[path]) {\n errorBag.value[path] = [error.message];\n } else {\n errorBag.value[path].push(error.message);\n }\n });\n } else {\n submitted(values.value);\n }\n };\n\n return {\n // Values\n errorBag,\n errors,\n values,\n\n // Methods\n handleReset: () => resetForm(),\n submitForm,\n };\n}\n","import { type App, isVue2, type Vue2 } from 'vue-demi';\nimport { createToastStack, toastStackInjectionKey } from './toast-stack';\n\n/**\n * This function is used to create and register global reactive state necessary fro the Toasts to operate.\n * @param {Vue} Vue A context application to register global state with.\n */\nexport default Vue => {\n if (isVue2) {\n // Add toast stack as a global property as there is no \"app.provide\" functionality in Vue2\n // eslint-disable-next-line no-param-reassign -- this is an official way of setting up instance properties on Vue\n (Vue as typeof Vue2).prototype[toastStackInjectionKey] = createToastStack();\n } else {\n (Vue as App).provide(toastStackInjectionKey, createToastStack());\n }\n};\n","import type { PluginObject } from 'vue';\nimport installToast from './composables/use-bento-toast-controller/install';\n\nexport enum BentoTheme {\n LEGACY = 'b-legacy-theme',\n STYLEGUIDE = 'b-styleguide-theme',\n BENTO = '',\n}\n\ninterface BentoVuePlugin {\n theme: BentoTheme;\n withToast: boolean;\n}\n\nconst setTheme = (theme: BentoTheme) => {\n document.body.classList.add(theme);\n};\n\nconst plugin: PluginObject<BentoVuePlugin> = {\n install: async (Vue, options: { theme: BentoTheme; withToast: boolean; withUtilityClasses: boolean }) => {\n if (options?.withToast) {\n installToast(Vue);\n }\n // Make sure to put all awaited CSS imports below this point and not above!\n if (options?.theme === BentoTheme.LEGACY) {\n setTheme(BentoTheme.LEGACY);\n await import('@adyen/bento-design-tokens/dist/css/bento/variables-legacy.css');\n } else if (options?.theme === BentoTheme.STYLEGUIDE) {\n setTheme(BentoTheme.STYLEGUIDE);\n await import('@adyen/bento-design-tokens/dist/css/bento/variables-styleguide.css');\n } else {\n await import('@adyen/bento-design-tokens/dist/css/bento/variables.css');\n }\n\n if (options?.withUtilityClasses) {\n await import('@adyen/bento-design-tokens/dist/css/bento/utility.css');\n }\n },\n};\n\nexport default plugin;\n"],"names":["toTypedSchema","formSchema","getInitialFormValues","schema","z","key","value","normalizeFormPath","issue","useForm","validationSchema","errors","shallowRef","errorBag","ref","values","cleanErrors","resetForm","validSchema","submitted","error","path","installToast","Vue","toastStackInjectionKey","createToastStack","setTheme","theme","plugin","options"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcO,SAASA,EAAmCC,GAAe;AACvD,SAAAA;AACX;AA4BA,SAASC,EAA0CC,GAAmC;AAClF,MAAMC,KAAKD,aAAkBC,EAAE;AAC3B,WAAO,OAAO;AAAA,MACV,OAAO,QAAQD,EAAO,KAAK,EAAE,IAAI,CAAC,CAACE,GAAKC,CAAK,MACnCF,KAAKE,aAAiBF,EAAE,aAEnB,CAACC,GAAKC,EAAM,KAAK,aAAc,CAAA,IAGpCF,KAAKE,aAAiBF,EAAE,YACnB,CAACC,GAAKH,EAAqBI,CAAK,CAAC,IAGrC,CAACD,GAAK,MAAS,CACzB;AAAA,IAAA;AAKb;AAOA,SAASE,EAAkBC,GAAmB;AACnC,SAAAA,EAAM,KAAK,KAAK,GAAG;AAC9B;AA2CgB,SAAAC,EAA6B,EAAE,kBAAAC,KAAgC;AAErE,QAAAC,IAASC,EAA6C,CAAA,CAAE,GAExDC,IAA4DC,EAAI,CAAA,CAAE,GAClEC,IAASD,EAAIZ,EAAqBQ,CAAgB,CAAC,GAEnDM,IAAc,MAAM;AACtB,IAAAL,EAAO,QAAQ,IACfE,EAAS,QAAQ;EAAC,GAGhBI,IAAY,MAAM;AACR,IAAAD,KACLD,EAAA,QAAQb,EAAwBQ,CAAgB;AAAA,EAAA;AA+BpD,SAAA;AAAA;AAAA,IAEH,UAAAG;AAAA,IACA,QAAAF;AAAA,IACA,QAAAI;AAAA;AAAA,IAGA,aAAa,MAAME,EAAU;AAAA,IAC7B,YApCe,OAAa,MAAM;AACtB,MAAAD;AAGZ,YAAME,IAAcR,EAAiB,UAAUK,EAAO,KAAK;AAGvD,MAACG,EAAY,UAiBbC,EAAUJ,EAAO,KAAK,IAhBrBG,EAAoC,MAAM,OAAO,QAAQ,CAASE,MAAA;AACzD,cAAAC,IAAOd,EAAkBa,CAAK;AAGpC,QAAKT,EAAO,MAAMU,CAAI,MACXV,EAAA,MAAMU,CAAI,IAAID,EAAM,UAI1BP,EAAS,MAAMQ,CAAI,IAGpBR,EAAS,MAAMQ,CAAI,EAAE,KAAKD,EAAM,OAAO,IAFvCP,EAAS,MAAMQ,CAAI,IAAI,CAACD,EAAM,OAAO;AAAA,MAGzC,CACH;AAAA,IAGL;AAAA,EAWA;AAER;ACnKA,MAAeE,IAAA,CAAOC,MAAA;AAMb,EAAAA,EAAY,QAAQC,GAAwBC,EAAkB,CAAA;AAEvE,GCDMC,IAAW,CAACC,MAAsB;AAC3B,WAAA,KAAK,UAAU,IAAIA,CAAK;AACrC,GAEMC,IAAuC;AAAA,EACzC,SAAS,OAAOL,GAAKM,MAAoF;AACrG,IAAIA,KAAA,QAAAA,EAAS,aACTP,EAAaC,CAAG,IAGhBM,KAAA,gBAAAA,EAAS,WAAU,oBACnBH;AAAA,MAAS;AAAA;AAAA,IAAiB,GAC1B,MAAM,OAAO,qEAAgE,MACtEG,KAAA,gBAAAA,EAAS,WAAU,wBAC1BH;AAAA,MAAS;AAAA;AAAA,IAAqB,GAC9B,MAAM,OAAO,yEAAoE,KAEjF,MAAM,OAAO,8DAAyD,GAGtEG,KAAA,QAAAA,EAAS,sBACT,MAAM,OAAO,4DAAuD;AAAA,EAE5E;AACJ;"}
package/dist/info-icon.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as n, resolveComponent as r, resolveDirective as s, withDirectives as c, openBlock as p, createElementBlock as l, createVNode as a } from "vue";
2
- import { c as t } from "./chunks/index.9bf04b01.js";
3
- import { b as _ } from "./chunks/tooltip.1084d92b.js";
4
- import { I as d } from "./chunks/info.205b4496.js";
2
+ import { c as t } from "./chunks/index.6295e754.js";
3
+ import { b as _ } from "./chunks/tooltip.36172265.js";
4
+ import { I as d } from "./chunks/info.550f9511.js";
5
5
  import { _ as f } from "./chunks/_plugin-vue_export-helper.dad06003.js";
6
- import "./assets/index6.css";
6
+ import "./assets/index8.css";
7
7
  const m = n({
8
8
  name: "bento-info-icon",
9
9
  components: { InfoIcon: d },
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as de, useAttrs as ie, useSlots as re, ref as I, provide as ne, toRef as le, computed as l, toRefs as se, openBlock as r, createBlock as c, unref as t, normalizeClass as ue, withCtx as w, renderSlot as p, createCommentVNode as d, createElementVNode as M, createElementBlock as y, withModifiers as U, mergeProps as N, withKeys as pe, createVNode as ce } from "vue";
2
- import { I as fe, B as V } from "./chunks/dropdown.d8587f36.js";
3
- import { p as H, d as F, B as _ } from "./chunks/index.a3d60e4f.js";
2
+ import { I as fe, B as V } from "./chunks/dropdown.0ae3b842.js";
3
+ import { p as H, d as F, B as _ } from "./chunks/index.ee15db35.js";
4
4
  import { g } from "./chunks/unique-id.a2a2b458.js";
5
5
  import { g as be } from "./chunks/get-slot-text.bead058f.js";
6
6
  import { u as ye } from "./chunks/aria-label.ac9651a5.js";
7
7
  import { u as ve } from "./chunks/i18n.f7e6533e.js";
8
8
  import { u as me } from "./chunks/use-form-layout-loading.d03e5d48.js";
9
9
  import { u as we } from "./chunks/use-has-slot.4d98bf29.js";
10
- import { F as ge, E as De } from "./chunks/error-message.3fb5573a.js";
10
+ import { F as ge, E as De } from "./chunks/error-message.d2bdeb80.js";
11
11
  import { _ as he } from "./chunks/_plugin-vue_export-helper.dad06003.js";
12
- import "./assets/index39.css";
12
+ import "./assets/index41.css";
13
13
  var f = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.PAYMENT_METHOD = "payment-method", e.STATIC_VALUE = "static-value", e.DROPDOWN = "dropdown", e))(f || {}), s = /* @__PURE__ */ ((e) => (e.START = "start", e.END = "end", e))(s || {}), D = /* @__PURE__ */ ((e) => (e.CONDENSED = "condensed", e.DISABLED = "disabled", e.READONLY = "readonly", e.ERROR = "error", e))(D || {}), O = /* @__PURE__ */ ((e) => (e.SEARCH = "search", e.TEXT = "text", e.NUMBER = "number", e))(O || {}), Ee = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.ESCAPE_PRESSED = "escape-pressed", e.UPDATE_DROPDOWN = "update:dropdown", e.DROPDOWN_INPUT = "dropdown-input", e.FOCUS = "focus", e.CHANGE = "change", e.BLUR = "blur", e.KEYDOWN = "keydown", e))(Ee || {});
14
14
  const x = {
15
15
  "en-US": {
package/dist/internal.js CHANGED
@@ -1,12 +1,12 @@
1
- import { B as o, L as r } from "./chunks/listbox-option-tag.b6182b2e.js";
2
- import { C as s, a as p, b as l } from "./chunks/calendar.f38cdab9.js";
3
- import { C as n, a as C } from "./chunks/copy.852d4cb8.js";
4
- import { C as m } from "./chunks/controls-group.9e0f17b2.js";
5
- import { B as f, b as G, a as d, D as I } from "./chunks/dialog-page.ea67bb14.js";
6
- import { E as _, F as u } from "./chunks/error-message.3fb5573a.js";
7
- import { F as A } from "./chunks/fixed-scroller.59aefd1b.js";
1
+ import { B as o, L as r } from "./chunks/listbox-option-tag.2aea037c.js";
2
+ import { C as s, a as p, b as l } from "./chunks/calendar.a9c5a68c.js";
3
+ import { C as n, a as C } from "./chunks/copy.60ee6ac3.js";
4
+ import { C as m } from "./chunks/controls-group.8357e3fd.js";
5
+ import { B as f, b as G, a as d, D as I } from "./chunks/dialog-page.cb6ce9b6.js";
6
+ import { E as _, F as u } from "./chunks/error-message.d2bdeb80.js";
7
+ import { F as A } from "./chunks/fixed-scroller.7b42cb1e.js";
8
8
  import { G as T, a as g } from "./chunks/grid-layout.c2fe3057.js";
9
- import { B as D, a as F, u as b } from "./chunks/use-cached-selected-values.852aeafe.js";
9
+ import { B as D, a as F, u as b } from "./chunks/use-cached-selected-values.3c312296.js";
10
10
  import { B as P } from "./chunks/teleport.afeb4c3b.js";
11
11
  export {
12
12
  o as BentoAvatar,
package/dist/link.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as o, a as t } from "./chunks/index.6e0e9d21.js";
1
+ import { B as o, a as t } from "./chunks/index.eb38a6c4.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 i, onUnmounted as l, computed as s, openBlock as d, createElementBlock as r, normalizeClass as c } from "vue";
2
2
  import { _ } from "./chunks/_plugin-vue_export-helper.dad06003.js";
3
- import "./assets/index41.css";
3
+ import "./assets/index9.css";
4
4
  var e = /* @__PURE__ */ ((a) => (a.START = "loading-start", a.END = "loading-end", a))(e || {});
5
5
  const p = 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.030c1dd7.js";
1
+ import { B as o, a as t } from "./chunks/index.6bb6f38c.js";
2
2
  export {
3
3
  o as BentoMenu,
4
4
  t as BentoMenuEvent
@@ -1,16 +1,16 @@
1
1
  import { defineComponent as L, useSlots as N, onMounted as R, openBlock as l, createBlock as r, unref as t, withCtx as o, createElementVNode as u, createTextVNode as B, toDisplayString as A, createCommentVNode as f, createElementBlock as w, renderSlot as _, pushScopeId as V, popScopeId as J, toRefs as U, ref as c, computed as Y, watch as z, nextTick as H, provide as I, normalizeClass as j, withKeys as q, withModifiers as Q, createSlots as W, createVNode as C } from "vue";
2
- import { a as X } from "./chunks/button.60dad578.js";
3
- import { B as Z } from "./chunks/index.8be283d5.js";
4
- import { B as k } from "./chunks/index.a3d60e4f.js";
2
+ import { a as X } from "./chunks/button.ae4760cd.js";
3
+ import { B as Z } from "./chunks/index.9d7fb316.js";
4
+ import { B as k } from "./chunks/index.ee15db35.js";
5
5
  import { u as x } from "./chunks/use-has-slot.4d98bf29.js";
6
- import { D as ee, B as te, b as ae, a as le } from "./chunks/dialog-page.ea67bb14.js";
7
- import { B as oe } from "./chunks/button-actions.642b37de.js";
6
+ import { D as ee, B as te, b as ae, a as le } from "./chunks/dialog-page.cb6ce9b6.js";
7
+ import { B as oe } from "./chunks/button-actions.82163994.js";
8
8
  import { _ as O } from "./chunks/_plugin-vue_export-helper.dad06003.js";
9
- import { C as se } from "./chunks/cross.a60533f6.js";
9
+ import { C as se } from "./chunks/cross.26509efc.js";
10
10
  import { u as ne } from "./chunks/i18n.f7e6533e.js";
11
11
  import { g as ie } from "./chunks/unique-id.a2a2b458.js";
12
12
  import { M as ce } from "./chunks/modal-fullscreen.keys.b9f31632.js";
13
- import "./assets/index27.css";
13
+ import "./assets/index11.css";
14
14
  const re = (e) => (V("data-v-da0f0512"), e = e(), J(), e), ue = { class: "b-modal-fullscreen-page__header" }, de = { class: "b-modal-fullscreen-page__header-section b-modal-fullscreen-page__header-section--title" }, fe = {
15
15
  key: 0,
16
16
  class: "b-modal-fullscreen-page__header-section b-modal-fullscreen-page__header-section--slot"
package/dist/modal.js CHANGED
@@ -1,12 +1,12 @@
1
- import { d as A, h as T, f as y, e as q, c as L, a as j, b as M } from "./chunks/base-modal.29e062d0.js";
2
- import { g as me, B as fe } from "./chunks/base-modal.29e062d0.js";
1
+ import { d as A, h as T, f as y, e as q, c as L, a as j, b as M } from "./chunks/base-modal.4102f69d.js";
2
+ import { g as me, B as fe } from "./chunks/base-modal.4102f69d.js";
3
3
  import { defineComponent as v, useSlots as w, onMounted as $, openBlock as B, createBlock as b, mergeProps as O, createSlots as z, unref as n, withCtx as l, renderSlot as c, createVNode as I, toRefs as U, ref as V, computed as S, createTextVNode as F, toDisplayString as G, useAttrs as K, watch as W, resolveDynamicComponent as Y } from "vue";
4
4
  import { u as D } from "./chunks/use-has-slot.4d98bf29.js";
5
- import { F as H } from "./chunks/footer-actions.89e68269.js";
6
- import { B as P } from "./chunks/button.60dad578.js";
5
+ import { F as H } from "./chunks/footer-actions.64f6f5d8.js";
6
+ import { B as P } from "./chunks/button.ae4760cd.js";
7
7
  import { u as J } from "./chunks/i18n.f7e6533e.js";
8
- import { B as k } from "./chunks/button-actions.642b37de.js";
9
- import { d as Q } from "./chunks/index.a3d60e4f.js";
8
+ import { B as k } from "./chunks/button-actions.82163994.js";
9
+ import { d as Q } from "./chunks/index.ee15db35.js";
10
10
  const X = v({
11
11
  name: "bento-modal-default"
12
12
  }), Z = /* @__PURE__ */ v({
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as N, ref as k, computed as v, resolveComponent as c, openBlock as o, createElementBlock as _, createVNode as u, withCtx as m, createBlock as f, resolveDynamicComponent as B, mergeProps as b, createSlots as Z, createTextVNode as T, toDisplayString as h, createCommentVNode as $, createElementVNode as d, toRefs as z, normalizeClass as W, pushScopeId as U, popScopeId as V } from "vue";
2
2
  import { u as j } from "./chunks/aria-label.ac9651a5.js";
3
- import { B as A } from "./chunks/index.a3d60e4f.js";
4
- import { B as E } from "./chunks/dropdown.d8587f36.js";
3
+ import { B as A } from "./chunks/index.ee15db35.js";
4
+ import { B as E } from "./chunks/dropdown.0ae3b842.js";
5
5
  import { g as R } from "./chunks/unique-id.a2a2b458.js";
6
6
  import { g as F, a as M } from "./chunks/i18n.f7e6533e.js";
7
7
  import { _ as P } from "./chunks/_plugin-vue_export-helper.dad06003.js";
8
- import { a as J } from "./chunks/button.60dad578.js";
9
- import "./assets/index28.css";
8
+ import { a as J } from "./chunks/button.ae4760cd.js";
9
+ import "./assets/index13.css";
10
10
  const K = {
11
11
  "en-US": {
12
12
  showingItems: "Showing {itemCount} items",