@adyen/bento-vue3 1.24.0 → 1.26.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 (280) hide show
  1. package/dist/@types/packages/vue2/src/components/alert/alert.types.d.ts +3 -0
  2. package/dist/@types/packages/vue2/src/components/alert/alert.vue.d.ts +46 -54
  3. package/dist/@types/packages/vue2/src/components/card/card.vue.d.ts +86 -179
  4. package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +1 -1
  5. package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +2 -2
  6. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell/data-grid-cell.keys.d.ts +1 -0
  7. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell/data-grid-cell.types.d.ts +8 -1
  8. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell/data-grid-cell.vue.d.ts +7 -4
  9. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell-actions/data-grid-cell-actions.types.d.ts +10 -2
  10. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell-actions/data-grid-cell-actions.vue.d.ts +6 -2
  11. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.types.d.ts +3 -0
  12. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +8 -6
  13. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.d.ts +26 -11
  14. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.types.d.ts +1 -0
  15. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-hovering/use-column-hovering.d.ts +18 -6
  16. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-reorderer/use-column-reorderer.d.ts +36 -12
  17. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-config-settings/use-config-settings.d.ts +18 -6
  18. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-resizer.d.ts +18 -6
  19. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +19 -53
  20. package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +2 -2
  21. package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +2 -2
  22. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +1 -1
  23. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +1 -1
  24. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/composables/use-dropdown-options-listbox.d.ts +13 -7
  25. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +14 -14
  26. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +1 -1
  27. package/dist/@types/packages/vue2/src/components/dropdown/composables/use-display-value.d.ts +2 -2
  28. package/dist/@types/packages/vue2/src/components/dropdown/composables/use-display-value.types.d.ts +3 -24
  29. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +4 -4
  30. package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +1 -1
  31. package/dist/@types/packages/vue2/src/components/filter-bar/components/range-filter/index.d.ts +1 -0
  32. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/components/index.d.ts +2 -0
  33. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/components/select-filter-button/select-filter-button.vue.d.ts +148 -0
  34. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/components/select-filter-dropdown/select-filter-dropdown.vue.d.ts +150 -0
  35. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/select-filter.vue.d.ts +28 -27
  36. package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +11 -7
  37. package/dist/@types/packages/vue2/src/components/internal/checkbox-input/checkbox-input.vue.d.ts +1 -1
  38. package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +1 -1
  39. package/dist/@types/packages/vue2/src/components/internal/dialog-page/dialog-page.types.d.ts +1 -0
  40. package/dist/@types/packages/vue2/src/components/internal/field-label/field-label.vue.d.ts +1 -1
  41. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-chips/listbox-multi-select-chips.vue.d.ts +3 -3
  42. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/listbox-multi-select-options.vue.d.ts +1 -2
  43. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +45 -9
  44. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/listbox-single-select.vue.d.ts +10 -9
  45. package/dist/@types/packages/vue2/src/components/internal/listbox/composables/use-cached-selected-values/use-cached-selected-values.d.ts +2 -2
  46. package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +15 -15
  47. package/dist/@types/packages/vue2/src/components/internal/radio-input/radio-input.vue.d.ts +1 -1
  48. package/dist/@types/packages/vue2/src/components/menu/components/menu-item-list/menu-item-list.vue.d.ts +3 -2
  49. package/dist/@types/packages/vue2/src/components/menu/components/menu-list-container/menu-list-container.vue.d.ts +8 -1
  50. package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +3 -1
  51. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +2 -2
  52. package/dist/@types/packages/vue2/src/components/selection-card/components/selection-card-group/selection-card-group.vue.d.ts +3 -3
  53. package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +2 -2
  54. package/dist/@types/packages/vue2/src/components/toggle/toggle.vue.d.ts +1 -1
  55. package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/tutorial-popover.vue.d.ts +20 -0
  56. package/dist/@types/packages/vue2/src/components/tutorial/tutorial.types.d.ts +1 -0
  57. package/dist/@types/packages/vue2/src/components/tutorial/tutorial.vue.d.ts +22 -2
  58. package/dist/@types/packages/vue2/src/components/typography/index.d.ts +1 -1
  59. package/dist/@types/packages/vue2/src/components/typography/typography.vue.d.ts +1 -1
  60. package/dist/@types/packages/vue2/src/composables/use-click-outside/index.d.ts +1 -0
  61. package/dist/@types/packages/vue2/src/index.d.ts +1 -0
  62. package/dist/accordion.js +3 -3
  63. package/dist/action-bar.js +7 -7
  64. package/dist/alert.js +126 -166
  65. package/dist/alert.js.map +1 -1
  66. package/dist/assets/base-modal.css +1 -1
  67. package/dist/assets/dialog-page.css +1 -1
  68. package/dist/assets/dropdown.css +1 -1
  69. package/dist/assets/index.css +1 -1
  70. package/dist/assets/index10.css +1 -1
  71. package/dist/assets/index11.css +1 -1
  72. package/dist/assets/index12.css +1 -1
  73. package/dist/assets/index13.css +1 -1
  74. package/dist/assets/index14.css +1 -1
  75. package/dist/assets/index15.css +1 -1
  76. package/dist/assets/index16.css +1 -1
  77. package/dist/assets/index17.css +1 -1
  78. package/dist/assets/index18.css +1 -1
  79. package/dist/assets/index19.css +1 -1
  80. package/dist/assets/index2.css +1 -1
  81. package/dist/assets/index20.css +1 -1
  82. package/dist/assets/index21.css +1 -1
  83. package/dist/assets/index22.css +1 -1
  84. package/dist/assets/index23.css +1 -1
  85. package/dist/assets/index24.css +1 -1
  86. package/dist/assets/index25.css +1 -1
  87. package/dist/assets/index26.css +1 -1
  88. package/dist/assets/index27.css +1 -1
  89. package/dist/assets/index28.css +1 -1
  90. package/dist/assets/index29.css +1 -1
  91. package/dist/assets/index3.css +1 -1
  92. package/dist/assets/index30.css +1 -1
  93. package/dist/assets/index31.css +1 -1
  94. package/dist/assets/index32.css +1 -1
  95. package/dist/assets/index33.css +1 -1
  96. package/dist/assets/index34.css +1 -1
  97. package/dist/assets/index35.css +1 -1
  98. package/dist/assets/index36.css +1 -1
  99. package/dist/assets/index37.css +1 -1
  100. package/dist/assets/index38.css +1 -1
  101. package/dist/assets/index39.css +1 -1
  102. package/dist/assets/index4.css +1 -1
  103. package/dist/assets/index40.css +1 -1
  104. package/dist/assets/index41.css +1 -1
  105. package/dist/assets/index42.css +1 -1
  106. package/dist/assets/index43.css +1 -1
  107. package/dist/assets/index44.css +1 -1
  108. package/dist/assets/index45.css +1 -1
  109. package/dist/assets/index46.css +1 -1
  110. package/dist/assets/index47.css +1 -1
  111. package/dist/assets/index48.css +1 -1
  112. package/dist/assets/index5.css +1 -1
  113. package/dist/assets/index6.css +1 -1
  114. package/dist/assets/index7.css +1 -1
  115. package/dist/assets/index8.css +1 -1
  116. package/dist/assets/index9.css +1 -1
  117. package/dist/assets/{listbox.css → use-cached-selected-values.css} +1 -1
  118. package/dist/avatar-image.js +1 -1
  119. package/dist/badge.js +1 -1
  120. package/dist/button.js +5 -5
  121. package/dist/card.js +168 -267
  122. package/dist/card.js.map +1 -1
  123. package/dist/checkbox.js +6 -6
  124. package/dist/chunks/{base-button.ab9c947e.js → base-button.e84acf30.js} +2 -2
  125. package/dist/chunks/{base-button.ab9c947e.js.map → base-button.e84acf30.js.map} +1 -1
  126. package/dist/chunks/{base-modal.28b5ff83.js → base-modal.29e062d0.js} +7 -7
  127. package/dist/chunks/{base-modal.28b5ff83.js.map → base-modal.29e062d0.js.map} +1 -1
  128. package/dist/chunks/{button-actions-with-menu.305991e5.js → button-actions-with-menu.7fce47a2.js} +4 -4
  129. package/dist/chunks/{button-actions-with-menu.305991e5.js.map → button-actions-with-menu.7fce47a2.js.map} +1 -1
  130. package/dist/chunks/{button-actions.ea025810.js → button-actions.642b37de.js} +3 -3
  131. package/dist/chunks/{button-actions.ea025810.js.map → button-actions.642b37de.js.map} +1 -1
  132. package/dist/chunks/{button.ce5d1f5e.js → button.60dad578.js} +3 -3
  133. package/dist/chunks/{button.ce5d1f5e.js.map → button.60dad578.js.map} +1 -1
  134. package/dist/chunks/{calendar.24a492f1.js → calendar.f38cdab9.js} +5 -5
  135. package/dist/chunks/{calendar.24a492f1.js.map → calendar.f38cdab9.js.map} +1 -1
  136. package/dist/chunks/{checkbox-input.99336948.js → checkbox-input.ab758a81.js} +2 -2
  137. package/dist/chunks/{checkbox-input.99336948.js.map → checkbox-input.ab758a81.js.map} +1 -1
  138. package/dist/chunks/{checkbox.d0f897e0.js → checkbox.f55ee3a5.js} +4 -4
  139. package/dist/chunks/{checkbox.d0f897e0.js.map → checkbox.f55ee3a5.js.map} +1 -1
  140. package/dist/chunks/{checkmark-circle-fill.c45a999d.js → checkmark-circle-fill.f3a69c6a.js} +2 -2
  141. package/dist/chunks/{checkmark-circle-fill.c45a999d.js.map → checkmark-circle-fill.f3a69c6a.js.map} +1 -1
  142. package/dist/chunks/{checkmark-small.c79220d9.js → checkmark-small.d7e31e5e.js} +2 -2
  143. package/dist/chunks/{checkmark-small.c79220d9.js.map → checkmark-small.d7e31e5e.js.map} +1 -1
  144. package/dist/chunks/{checkmark.eb3c7a06.js → checkmark.87919b24.js} +2 -2
  145. package/dist/chunks/{checkmark.eb3c7a06.js.map → checkmark.87919b24.js.map} +1 -1
  146. package/dist/chunks/{chevron-left.4ee92950.js → chevron-left.963d35e9.js} +2 -2
  147. package/dist/chunks/{chevron-left.4ee92950.js.map → chevron-left.963d35e9.js.map} +1 -1
  148. package/dist/chunks/{chevron-up.638a9f34.js → chevron-up.05ca20db.js} +2 -2
  149. package/dist/chunks/{chevron-up.638a9f34.js.map → chevron-up.05ca20db.js.map} +1 -1
  150. package/dist/chunks/{controls-group.2b31233c.js → controls-group.9e0f17b2.js} +3 -3
  151. package/dist/chunks/{controls-group.2b31233c.js.map → controls-group.9e0f17b2.js.map} +1 -1
  152. package/dist/chunks/{copy.9003ed59.js → copy.852d4cb8.js} +4 -4
  153. package/dist/chunks/{copy.9003ed59.js.map → copy.852d4cb8.js.map} +1 -1
  154. package/dist/chunks/{cross-circle-fill.1abec1a2.js → cross-circle-fill.81925c7f.js} +2 -2
  155. package/dist/chunks/{cross-circle-fill.1abec1a2.js.map → cross-circle-fill.81925c7f.js.map} +1 -1
  156. package/dist/chunks/{cross-small.b85406fe.js → cross-small.9bc6a02f.js} +2 -2
  157. package/dist/chunks/{cross-small.b85406fe.js.map → cross-small.9bc6a02f.js.map} +1 -1
  158. package/dist/chunks/{cross.26509efc.js → cross.a60533f6.js} +2 -2
  159. package/dist/chunks/{cross.26509efc.js.map → cross.a60533f6.js.map} +1 -1
  160. package/dist/chunks/dialog-page.ea67bb14.js +173 -0
  161. package/dist/chunks/dialog-page.ea67bb14.js.map +1 -0
  162. package/dist/chunks/{dropdown-default-textbox.311443a8.js → dropdown-default-textbox.ad5063c2.js} +4 -4
  163. package/dist/chunks/{dropdown-default-textbox.311443a8.js.map → dropdown-default-textbox.ad5063c2.js.map} +1 -1
  164. package/dist/chunks/{dropdown.170b43c4.js → dropdown.d8587f36.js} +295 -317
  165. package/dist/chunks/dropdown.d8587f36.js.map +1 -0
  166. package/dist/chunks/{error-message.4678cbdc.js → error-message.3fb5573a.js} +3 -3
  167. package/dist/chunks/{error-message.4678cbdc.js.map → error-message.3fb5573a.js.map} +1 -1
  168. package/dist/chunks/{fixed-scroller.f09618f2.js → fixed-scroller.59aefd1b.js} +3 -3
  169. package/dist/chunks/{fixed-scroller.f09618f2.js.map → fixed-scroller.59aefd1b.js.map} +1 -1
  170. package/dist/chunks/{footer-actions.2efe610e.js → footer-actions.89e68269.js} +4 -4
  171. package/dist/chunks/{footer-actions.2efe610e.js.map → footer-actions.89e68269.js.map} +1 -1
  172. package/dist/chunks/{index.1b1646bf.js → index.030c1dd7.js} +212 -191
  173. package/dist/chunks/index.030c1dd7.js.map +1 -0
  174. package/dist/chunks/{index.70c91b3b.js → index.07122048.js} +2 -2
  175. package/dist/chunks/{index.70c91b3b.js.map → index.07122048.js.map} +1 -1
  176. package/dist/chunks/{index.c41d1bbb.js → index.146f967e.js} +2 -2
  177. package/dist/chunks/{index.c41d1bbb.js.map → index.146f967e.js.map} +1 -1
  178. package/dist/chunks/{index.920cc1ee.js → index.5bdebf9d.js} +7 -7
  179. package/dist/chunks/{index.920cc1ee.js.map → index.5bdebf9d.js.map} +1 -1
  180. package/dist/chunks/{index.b772214b.js → index.6e0e9d21.js} +3 -3
  181. package/dist/chunks/{index.b772214b.js.map → index.6e0e9d21.js.map} +1 -1
  182. package/dist/chunks/{index.44f2aca7.js → index.8be283d5.js} +2 -2
  183. package/dist/chunks/{index.44f2aca7.js.map → index.8be283d5.js.map} +1 -1
  184. package/dist/chunks/{index.0d513625.js → index.96cd0d4c.js} +9 -9
  185. package/dist/chunks/{index.0d513625.js.map → index.96cd0d4c.js.map} +1 -1
  186. package/dist/chunks/{index.b3cb905c.js → index.9bf04b01.js} +3 -3
  187. package/dist/chunks/{index.b3cb905c.js.map → index.9bf04b01.js.map} +1 -1
  188. package/dist/chunks/{index.51fe0fc2.js → index.a3d60e4f.js} +17 -17
  189. package/dist/chunks/index.a3d60e4f.js.map +1 -0
  190. package/dist/chunks/{index.c5b58864.js → index.ba3396d3.js} +3 -3
  191. package/dist/chunks/{index.c5b58864.js.map → index.ba3396d3.js.map} +1 -1
  192. package/dist/chunks/{index.6987f880.js → index.c8ffede1.js} +7 -7
  193. package/dist/chunks/{index.6987f880.js.map → index.c8ffede1.js.map} +1 -1
  194. package/dist/chunks/{info.550f9511.js → info.205b4496.js} +2 -2
  195. package/dist/chunks/{info.550f9511.js.map → info.205b4496.js.map} +1 -1
  196. package/dist/chunks/{listbox-option-tag.bf77e0c4.js → listbox-option-tag.b6182b2e.js} +3 -3
  197. package/dist/chunks/{listbox-option-tag.bf77e0c4.js.map → listbox-option-tag.b6182b2e.js.map} +1 -1
  198. package/dist/chunks/{loading-button.cdc193c6.js → loading-button.0391ad8b.js} +4 -4
  199. package/dist/chunks/{loading-button.cdc193c6.js.map → loading-button.0391ad8b.js.map} +1 -1
  200. package/dist/chunks/{payment-method.ea1788f7.js → payment-method.31a68b9b.js} +2 -2
  201. package/dist/chunks/{payment-method.ea1788f7.js.map → payment-method.31a68b9b.js.map} +1 -1
  202. package/dist/chunks/{refresh.bd60f6a8.js → refresh.53691839.js} +2 -2
  203. package/dist/chunks/{refresh.bd60f6a8.js.map → refresh.53691839.js.map} +1 -1
  204. package/dist/chunks/{search.ade93bda.js → search.4e4ee4dd.js} +2 -2
  205. package/dist/chunks/{search.ade93bda.js.map → search.4e4ee4dd.js.map} +1 -1
  206. package/dist/chunks/{tooltip.10210728.js → tooltip.1084d92b.js} +3 -3
  207. package/dist/chunks/{tooltip.10210728.js.map → tooltip.1084d92b.js.map} +1 -1
  208. package/dist/chunks/{use-bento-toast-controller.3275a505.js → use-bento-toast-controller.98d8613c.js} +2 -2
  209. package/dist/chunks/{use-bento-toast-controller.3275a505.js.map → use-bento-toast-controller.98d8613c.js.map} +1 -1
  210. package/dist/chunks/use-cached-selected-values.852aeafe.js +1537 -0
  211. package/dist/chunks/use-cached-selected-values.852aeafe.js.map +1 -0
  212. package/dist/code-snippet.js +7 -7
  213. package/dist/code-snippet.js.map +1 -1
  214. package/dist/country.js +2 -2
  215. package/dist/currency.js +1 -1
  216. package/dist/data-grid-template.js +1 -1
  217. package/dist/data-grid.js +1317 -1256
  218. package/dist/data-grid.js.map +1 -1
  219. package/dist/date-picker.js +8 -8
  220. package/dist/date-range-picker.js +2 -2
  221. package/dist/date.js +1 -1
  222. package/dist/divider.js +1 -1
  223. package/dist/dropdown.js +7 -7
  224. package/dist/empty-state.js +3 -3
  225. package/dist/filter-bar.js +1260 -1108
  226. package/dist/filter-bar.js.map +1 -1
  227. package/dist/focus-trap.js +1 -1
  228. package/dist/form-layout.js +53 -51
  229. package/dist/form-layout.js.map +1 -1
  230. package/dist/header.js +5 -5
  231. package/dist/index.js +141 -133
  232. package/dist/index.js.map +1 -1
  233. package/dist/info-icon.js +4 -4
  234. package/dist/input-field.js +50 -48
  235. package/dist/input-field.js.map +1 -1
  236. package/dist/internal.js +31 -78
  237. package/dist/internal.js.map +1 -1
  238. package/dist/link.js +1 -1
  239. package/dist/loading-indicator.js +1 -1
  240. package/dist/menu.js +1 -1
  241. package/dist/modal-fullscreen.js +7 -7
  242. package/dist/modal.js +6 -6
  243. package/dist/pagination.js +4 -4
  244. package/dist/payment-method.js +1 -1
  245. package/dist/popover.js +1 -1
  246. package/dist/popper-container.js +1 -1
  247. package/dist/radio-group.js +112 -112
  248. package/dist/radio-group.js.map +1 -1
  249. package/dist/search-bar.js +4 -4
  250. package/dist/secondary-nav.js +2 -2
  251. package/dist/segmented-control.js +4 -4
  252. package/dist/selection-card.js +5 -5
  253. package/dist/sidepanel.js +64 -62
  254. package/dist/sidepanel.js.map +1 -1
  255. package/dist/status.js +2 -2
  256. package/dist/stepper.js +4 -4
  257. package/dist/structured-list.js +1 -1
  258. package/dist/summary-grid.js +3 -3
  259. package/dist/tabs.js +22 -20
  260. package/dist/tabs.js.map +1 -1
  261. package/dist/tag.js +3 -3
  262. package/dist/textarea.js +4 -4
  263. package/dist/timeline.js +7 -7
  264. package/dist/toast.js +5 -5
  265. package/dist/toggle.js +3 -3
  266. package/dist/tutorial.js +145 -124
  267. package/dist/tutorial.js.map +1 -1
  268. package/dist/typography.js +1 -1
  269. package/dist/web-types.json +1 -1
  270. package/package.json +7 -3
  271. package/dist/@types/packages/vue2/src/composables/useDynamicImport.d.ts +0 -8
  272. package/dist/chunks/dialog-page.2c07d294.js +0 -172
  273. package/dist/chunks/dialog-page.2c07d294.js.map +0 -1
  274. package/dist/chunks/dropdown.170b43c4.js.map +0 -1
  275. package/dist/chunks/index.1b1646bf.js.map +0 -1
  276. package/dist/chunks/index.51fe0fc2.js.map +0 -1
  277. package/dist/chunks/listbox.b6a1aea2.js +0 -1466
  278. package/dist/chunks/listbox.b6a1aea2.js.map +0 -1
  279. /package/dist/@types/packages/{vue2 → core}/src/components/typography/typography.types.d.ts +0 -0
  280. /package/dist/assets/{cross.css → checkmark-circle-fill.css} +0 -0
@@ -1,4 +1,4 @@
1
- import { B as a } from "./chunks/index.44f2aca7.js";
1
+ import { B as a } from "./chunks/index.8be283d5.js";
2
2
  export {
3
3
  a as BentoFocusTrap
4
4
  };
@@ -1,14 +1,14 @@
1
- import { defineComponent as d, useSlots as h, computed as n, provide as O, toRef as C, openBlock as c, createBlock as v, resolveDynamicComponent as I, unref as e, withCtx as _, renderSlot as s, createCommentVNode as b, createElementBlock as p, createElementVNode as g, createVNode as L, normalizeClass as $ } from "vue";
1
+ import { defineComponent as m, useSlots as g, computed as i, provide as F, toRef as O, openBlock as l, createBlock as d, resolveDynamicComponent as S, unref as t, withCtx as _, renderSlot as a, createCommentVNode as p, createElementBlock as f, createElementVNode as L, normalizeClass as $, createVNode as C } from "vue";
2
2
  import { BentoAlert as B } from "./alert.js";
3
- import { F as S } from "./chunks/form-layout.types.a7a1438d.js";
4
- import { u as T } from "./chunks/use-has-slot.4d98bf29.js";
5
- import { _ as m } from "./chunks/_plugin-vue_export-helper.dad06003.js";
6
- import { B as f, c as E } from "./chunks/index.51fe0fc2.js";
7
- import "./assets/index40.css";
8
- const N = {
3
+ import { F as I } from "./chunks/form-layout.types.a7a1438d.js";
4
+ import { u as h } from "./chunks/use-has-slot.4d98bf29.js";
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";
8
+ const E = {
9
9
  key: 1,
10
10
  class: "b-form-layout__actions-container"
11
- }, k = { class: "b-form-layout__actions" }, A = { class: "b-form-layout__actions" }, G = {}, R = /* @__PURE__ */ d({
11
+ }, N = { class: "b-form-layout__actions" }, A = { class: "b-form-layout__actions" }, G = {}, R = /* @__PURE__ */ m({
12
12
  ...G,
13
13
  __name: "form-layout",
14
14
  props: {
@@ -23,37 +23,37 @@ const N = {
23
23
  loading: { type: Boolean, default: !1 }
24
24
  },
25
25
  setup(o) {
26
- const t = o, l = h(), r = T(l), i = n(() => t.form ? "form" : "div"), u = n(() => r("actions-left") || r("actions-right"));
27
- return O(S, C(t, "loading")), (a, F) => (c(), v(I(e(i)), {
26
+ const e = o, n = g(), s = h(n), c = i(() => e.form ? "form" : "div"), u = i(() => s("actions-left") || s("actions-right"));
27
+ return F(I, O(e, "loading")), (r, T) => (l(), d(S(t(c)), {
28
28
  class: "b-form-layout",
29
29
  role: "form"
30
30
  }, {
31
31
  default: _(() => [
32
- e(r)("error-message") ? (c(), v(e(B), {
32
+ t(s)("error-message") ? (l(), d(t(B), {
33
33
  key: 0,
34
34
  class: "b-form-layout__error-message",
35
35
  type: "critical"
36
36
  }, {
37
37
  description: _(() => [
38
- s(a.$slots, "error-message", {}, void 0, !0)
38
+ a(r.$slots, "error-message", {}, void 0, !0)
39
39
  ]),
40
40
  _: 3
41
- })) : b("", !0),
42
- s(a.$slots, "default", {}, void 0, !0),
43
- e(u) ? (c(), p("div", N, [
44
- g("div", k, [
45
- s(a.$slots, "actions-left", {}, void 0, !0)
41
+ })) : p("", !0),
42
+ a(r.$slots, "default", {}, void 0, !0),
43
+ t(u) ? (l(), f("div", E, [
44
+ L("div", N, [
45
+ a(r.$slots, "actions-left", {}, void 0, !0)
46
46
  ]),
47
- g("div", A, [
48
- s(a.$slots, "actions-right", {}, void 0, !0)
47
+ L("div", A, [
48
+ a(r.$slots, "actions-right", {}, void 0, !0)
49
49
  ])
50
- ])) : b("", !0)
50
+ ])) : p("", !0)
51
51
  ]),
52
52
  _: 3
53
53
  }));
54
54
  }
55
55
  });
56
- const Q = /* @__PURE__ */ m(R, [["__scopeId", "data-v-f0c8b741"]]), w = ["warning", "critical", "highlight", "success"], D = { class: "b-form-layout-field-tip" }, P = {}, V = /* @__PURE__ */ d({
56
+ const Q = /* @__PURE__ */ y(R, [["__scopeId", "data-v-f0c8b741"]]), w = ["warning", "critical", "highlight", "success"], D = { class: "b-form-layout-field-tip" }, P = {}, V = /* @__PURE__ */ m({
57
57
  ...P,
58
58
  __name: "form-layout-field-tip",
59
59
  props: {
@@ -68,21 +68,23 @@ const Q = /* @__PURE__ */ m(R, [["__scopeId", "data-v-f0c8b741"]]), w = ["warnin
68
68
  }
69
69
  },
70
70
  setup(o) {
71
- return (t, l) => (c(), p("div", D, [
72
- s(t.$slots, "default", {}, void 0, !0),
73
- L(e(B), {
71
+ const e = g(), n = h(e);
72
+ return (s, c) => (l(), f("div", D, [
73
+ a(s.$slots, "default", {}, void 0, !0),
74
+ t(n)("message") ? (l(), d(t(B), {
75
+ key: 0,
74
76
  variant: "tip",
75
77
  type: o.type
76
78
  }, {
77
79
  description: _(() => [
78
- s(t.$slots, "message", {}, void 0, !0)
80
+ a(s.$slots, "message", {}, void 0, !0)
79
81
  ]),
80
82
  _: 3
81
- }, 8, ["type"])
83
+ }, 8, ["type"])) : p("", !0)
82
84
  ]));
83
85
  }
84
86
  });
85
- const W = /* @__PURE__ */ m(V, [["__scopeId", "data-v-16c7e9c2"]]), y = [
87
+ const W = /* @__PURE__ */ y(V, [["__scopeId", "data-v-84d68dd1"]]), b = [
86
88
  "100",
87
89
  "50",
88
90
  "33",
@@ -93,7 +95,7 @@ const W = /* @__PURE__ */ m(V, [["__scopeId", "data-v-16c7e9c2"]]), y = [
93
95
  "25-75",
94
96
  "50-50",
95
97
  "33-33-33"
96
- ], x = {}, U = /* @__PURE__ */ d({
98
+ ], x = {}, U = /* @__PURE__ */ m({
97
99
  ...x,
98
100
  __name: "form-layout-group",
99
101
  props: {
@@ -123,26 +125,26 @@ const W = /* @__PURE__ */ m(V, [["__scopeId", "data-v-16c7e9c2"]]), y = [
123
125
  layout: {
124
126
  type: String,
125
127
  default: "100",
126
- validator: (o) => y.includes(o)
128
+ validator: (o) => b.includes(o)
127
129
  }
128
130
  },
129
131
  setup(o) {
130
- const t = o, l = 100, r = n(
131
- () => y.includes(t.layout) ? t.layout : l
132
- ), i = n(() => ({
132
+ const e = o, n = 100, s = i(
133
+ () => b.includes(e.layout) ? e.layout : n
134
+ ), c = i(() => ({
133
135
  // Transform into column if the layout is unsupported
134
- "b-form-layout-group--column": !y.includes(t.layout),
136
+ "b-form-layout-group--column": !b.includes(e.layout),
135
137
  // Assings the correct layout class
136
- [`b-form-layout-group--${r.value}`]: !0
138
+ [`b-form-layout-group--${s.value}`]: !0
137
139
  }));
138
- return (u, a) => (c(), p("div", {
139
- class: $(["b-form-layout-group", e(i)])
140
+ return (u, r) => (l(), f("div", {
141
+ class: $(["b-form-layout-group", t(c)])
140
142
  }, [
141
- s(u.$slots, "default", {}, void 0, !0)
143
+ a(u.$slots, "default", {}, void 0, !0)
142
144
  ], 2));
143
145
  }
144
146
  });
145
- const X = /* @__PURE__ */ m(U, [["__scopeId", "data-v-0795cceb"]]), Y = {}, j = /* @__PURE__ */ d({
147
+ const X = /* @__PURE__ */ y(U, [["__scopeId", "data-v-0795cceb"]]), Y = {}, j = /* @__PURE__ */ m({
146
148
  ...Y,
147
149
  __name: "form-layout-title",
148
150
  props: {
@@ -160,43 +162,43 @@ const X = /* @__PURE__ */ m(U, [["__scopeId", "data-v-0795cceb"]]), Y = {}, j =
160
162
  * @values h1, h2, h3, h4, h5, h6, div, p, span
161
163
  */
162
164
  el: {
163
- type: f.props.el.type,
165
+ type: v.props.el.type,
164
166
  required: !0,
165
- validator: (o) => Object.values(E).includes(o)
167
+ validator: (o) => Object.values(k).includes(o)
166
168
  }
167
169
  },
168
170
  setup(o) {
169
- const t = o, l = h(), r = n(() => !t.subsection), i = T(l), u = n(() => ({
170
- "b-form-layout-title--subsection": t.subsection
171
+ const e = o, n = g(), s = i(() => !e.subsection), c = h(n), u = i(() => ({
172
+ "b-form-layout-title--subsection": e.subsection
171
173
  }));
172
- return (a, F) => (c(), p("div", {
173
- class: $(["b-form-layout-title", e(u)])
174
+ return (r, T) => (l(), f("div", {
175
+ class: $(["b-form-layout-title", t(u)])
174
176
  }, [
175
- L(e(f), {
177
+ C(t(v), {
176
178
  el: o.el,
177
179
  variant: "title",
178
- medium: e(r)
180
+ medium: t(s)
179
181
  }, {
180
182
  default: _(() => [
181
- s(a.$slots, "default", {}, void 0, !0)
183
+ a(r.$slots, "default", {}, void 0, !0)
182
184
  ]),
183
185
  _: 3
184
186
  }, 8, ["el", "medium"]),
185
- e(i)("description") ? (c(), v(e(f), {
187
+ t(c)("description") ? (l(), d(t(v), {
186
188
  key: 0,
187
189
  class: "b-form-layout-title__description",
188
190
  el: "span",
189
191
  wide: ""
190
192
  }, {
191
193
  default: _(() => [
192
- s(a.$slots, "description", {}, void 0, !0)
194
+ a(r.$slots, "description", {}, void 0, !0)
193
195
  ]),
194
196
  _: 3
195
- })) : b("", !0)
197
+ })) : p("", !0)
196
198
  ], 2));
197
199
  }
198
200
  });
199
- const Z = /* @__PURE__ */ m(j, [["__scopeId", "data-v-fbc939de"]]);
201
+ const Z = /* @__PURE__ */ y(j, [["__scopeId", "data-v-fbc939de"]]);
200
202
  export {
201
203
  Q as BentoFormLayout,
202
204
  W as BentoFormLayoutFieldTip,
@@ -1 +1 @@
1
- {"version":3,"file":"form-layout.js","sources":["../../vue2/src/components/form-layout/form-layout.vue","../../vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-tip.types.ts","../../vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue","../../vue2/src/components/form-layout/components/form-layout-group/form-layout-group.types.ts","../../vue2/src/components/form-layout/components/form-layout-group/form-layout-group.vue","../../vue2/src/components/form-layout/components/form-layout-title/form-layout-title.vue"],"sourcesContent":["<template>\n <component :is=\"formLayoutElement\" class=\"b-form-layout\" role=\"form\">\n <bento-alert v-if=\"hasSlot('error-message')\" class=\"b-form-layout__error-message\" type=\"critical\">\n <template #description>\n <slot name=\"error-message\" />\n </template>\n </bento-alert>\n\n <slot />\n\n <div v-if=\"hasActions\" class=\"b-form-layout__actions-container\">\n <div class=\"b-form-layout__actions\">\n <slot name=\"actions-left\" />\n </div>\n\n <div class=\"b-form-layout__actions\">\n <slot name=\"actions-right\" />\n </div>\n </div>\n </component>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, provide, toRef, useSlots } from 'vue';\n import { BentoAlert } from '@/components/alert';\n import { useHasSlot } from '@/composables';\n import { FORM_LAYOUT_LOADING_INJECTION_KEY } from './form-layout.types';\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const props = defineProps({\n /**\n * Renders the form layout as an HTML `form`\n */\n form: { type: Boolean, default: false },\n\n /**\n * Sets the state of the form and its fields to\n * a read only status.\n */\n loading: { type: Boolean, default: false },\n });\n\n const formLayoutElement = computed(() => (props.form ? 'form' : 'div'));\n const hasActions = computed(() => hasSlot('actions-left') || hasSlot('actions-right'));\n\n provide(FORM_LAYOUT_LOADING_INJECTION_KEY, toRef(props, 'loading'));\n</script>\n\n<script lang=\"ts\">\n /**\n * Form layout component is a pre-designed layout that serves\n * as a starting point for creating a form.\n *\n * It can include various common form components:\n * input field, dropdown, date picker, checkbox group, radio group,\n * textarea, etc.\n *\n * Form layout is context agnostic and can be dropped in different\n * places, for example in modals, side panels or pages.\n *\n * @example\n * import { BentoFormLayout, BentoFormLayoutFieldTip } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayout, BentoFormLayoutFieldTip },\n * template: `\n * <bento-form-layout>\n * <template #error-message>There is an error. Correct the highlighted field.</template>\n *\n * <bento-input-field>Input field</bento-input-field>\n *\n * <bento-form-layout-field-tip>\n * <bento-dropdown label=\"Dropdown\" :items=\"dropdownItems\" placeholder=\"Select an animal\" />\n * <template #message>This is a small tip that can be used in small spaces</template>\n * </bento-form-layout-field-tip>\n *\n * <bento-form-layout-title subsection>\n * Section title\n * <template #description>Optional section description</template>\n * </bento-form-layout-title>\n * </bento-form-layout>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout.scss\" />\n","import { BentoAlertTypeOption } from '@/components/alert/alert.types';\n\nexport type BentoFormLayoutFieldTipTypeOption = `${BentoAlertTypeOption}`;\nexport const BentoFormLayoutFieldTipTypeOptions = ['warning', 'critical', 'highlight', 'success'];\n","<template>\n <div class=\"b-form-layout-field-tip\">\n <slot />\n <bento-alert variant=\"tip\" :type=\"type\">\n <template #description>\n <slot name=\"message\" />\n </template>\n </bento-alert>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { PropType } from 'vue';\n import { BentoFormLayoutFieldTipTypeOption, BentoFormLayoutFieldTipTypeOptions } from './form-layout-tip.types';\n import { BentoAlert } from '@/components/alert';\n\n defineProps({\n /**\n * Type of a alert; set a distinctive icon and color. Defaults to highlight.\n * @values highlight, success, critical, warning\n */\n type: {\n type: String as PropType<BentoFormLayoutFieldTipTypeOption>,\n default: 'highlight',\n validator: (value: BentoFormLayoutFieldTipTypeOption) => BentoFormLayoutFieldTipTypeOptions.includes(value),\n },\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * You can help users provide accurate and well formatted information\n * by using various elements that come with an input field.\n *\n * Use description/supporting text to add additional context to the\n * field or guidance how to format the input correctly.\n * Because description is always visible it should be the first\n * choice in providing guidance.\n *\n * @example\n * import { BentoFormLayoutFieldTip } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutFieldTip },\n * template: `\n * <bento-form-layout-field-tip>\n * <bento-dropdown label=\"Dropdown\" :items=\"dropdownItems\" placeholder=\"Select an animal\" />\n *\n * <template #message>This is a small tip that can be used in small spaces</template>\n * </bento-form-layout-field-tip>\n * `\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-field-tip.scss\" />\n","export type BentoLayoutGroupProportions =\n | '33-33-33'\n | '50-50'\n | '25-75'\n | '75-25'\n | '33-66'\n | '66-33'\n | '25'\n | '33'\n | '50'\n | '100';\n\nexport const BentoLayoutGroupProportions = [\n '100',\n '50',\n '33',\n '25',\n '66-33',\n '33-66',\n '75-25',\n '25-75',\n '50-50',\n '33-33-33',\n];\n","<template>\n <div class=\"b-form-layout-group\" :class=\"conditionalClasses\">\n <slot></slot>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, PropType } from 'vue';\n import { BentoLayoutGroupProportions } from './form-layout-group.types';\n\n // Default proportion\n const DEFAULT_PROPORTION = 100;\n\n const props = defineProps({\n /**\n * The layout of the pair group of components.\n * This will render the components within the width of the proportions.\n * Only two colums are available.\n *\n * If only one value is entered, then it will assume there's only one child in the group.\n * If two values are entered, the first value will be use for the first child and the second\n * value for the second child.\n *\n * If the value entered is not listed in the example\n * list below it will use 100% by default.\n * @example\n * '33-33-33'\n * '50-50'\n * '25-75'\n * '75-25'\n * '33-66'\n * '66-33'\n * '25'\n * '33'\n * '50'\n * '100'\n */\n layout: {\n type: String as PropType<BentoLayoutGroupProportions>,\n default: '100',\n validator: (value: BentoLayoutGroupProportions) => BentoLayoutGroupProportions.includes(value),\n },\n });\n\n // Sets DEFAULT_PROPORTION by default if `layout` is not in the list\n const computedLayout = computed(() =>\n BentoLayoutGroupProportions.includes(props.layout) ? props.layout : DEFAULT_PROPORTION\n );\n\n const conditionalClasses = computed(() => ({\n // Transform into column if the layout is unsupported\n 'b-form-layout-group--column': !BentoLayoutGroupProportions.includes(props.layout),\n // Assings the correct layout class\n [`b-form-layout-group--${computedLayout.value}`]: true,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * Use to provide horizontal layouts to build forms\n * with two fields per line.\n *\n * These can be used for field combinations,\n * such as post code and city or title and first name.\n *\n * @example\n * import { BentoFormLayoutGroup } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutGroup },\n * template: `\n * <bento-form-layout-group>\n * <first-element />\n * <second-element />\n * </bento-form-layout-group>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-group.scss\" />\n","<template>\n <div class=\"b-form-layout-title\" :class=\"conditionalClasses\">\n <bento-typography :el=\"el\" variant=\"title\" :medium=\"isSection\">\n <slot />\n </bento-typography>\n\n <bento-typography v-if=\"hasSlot('description')\" class=\"b-form-layout-title__description\" el=\"span\" wide>\n <slot name=\"description\" />\n </bento-typography>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, useSlots } from 'vue';\n import { BentoTypography, BentoTypographyElement } from '@/components/typography';\n import { useHasSlot } from '@/composables';\n\n const slots = useSlots();\n\n const props = defineProps({\n /**\n * Defines if the Form Layout title is\n * a \"section\" or a \"subsection\".\n * Default is \"section\" (false). Turn into \"true\" for \"subsection\"\n */\n subsection: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the HTML DOM element.\n * @values h1, h2, h3, h4, h5, h6, div, p, span\n */\n el: {\n type: BentoTypography.props.el.type,\n required: true,\n validator: (value: BentoTypographyElement) => Object.values(BentoTypographyElement).includes(value),\n },\n });\n\n // Uses \"medium\" typography if it is a section title\n const isSection = computed(() => !props.subsection);\n const hasSlot = useHasSlot(slots);\n const conditionalClasses = computed(() => ({\n 'b-form-layout-title--subsection': props.subsection,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * If you’re building a lengthy form, organise related\n * fields into sections and, if needed, subsections.\n *\n * A form can have a \"Section Title\" and multiple \"Subsection titles\".\n *\n * One of the values provided in @see BentoTypographyElement must always be provided as a string\n * to define correct HTML sementic from the application's context\n *\n * @example\n * import { BentoFormLayoutTitle } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutTitle },\n * template: `\n * <bento-form-layout-title subsection el=\"h2\">\n * Title\n * <template #description>Description text</template>\n * </bento-form-layout-title>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-title.scss\" />\n"],"names":["__default__$3","slots","useSlots","hasSlot","useHasSlot","formLayoutElement","computed","props","hasActions","provide","FORM_LAYOUT_LOADING_INJECTION_KEY","toRef","BentoFormLayoutFieldTipTypeOptions","__default__$2","BentoLayoutGroupProportions","__default__$1","DEFAULT_PROPORTION","computedLayout","conditionalClasses","__default__","isSection"],"mappings":";;;;;;;;;;qFAsFIA,IAAA,CAAA;;;;;;;;;;;;;;;iBA1DAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAeAI,IAAAC,EAAA,MAAAC,EAAA,OAAA,SAAA,KAAA,GACAC,IAAAF,EAAA,MAAAH,EAAA,cAAA,KAAAA,EAAA,eAAA,CAAA;AAEA,WAAAM,EAAAC,GAAAC,EAAAJ,GAAA,SAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oEC5CGK,IAAA,CAAA,WAAA,YAAA,aAAA,SAAA,6CCiDHC,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oECxCGC,IAAA;AAAA,EAAoC;AAAA,EACvC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAEJ,GCuDIC,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAnEAC,IAAA,KAkCAC,IAAAX;AAAA,MAAuB,MAAAQ,EAAA,SAAAP,EAAA,MAAA,IAAAA,EAAA,SAAAS;AAAA,IACiD,GAGxEE,IAAAZ,EAAA,OAAA;AAAA;AAAA,MAA2C,+BAAA,CAAAQ,EAAA,SAAAP,EAAA,MAAA;AAAA;AAAA,MAE0C,CAAA,wBAAAU,EAAA,OAAA,GAAA;AAAA,IAE/B,EAAA;;;;;;;;oECmBtDE,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;iBAvDAlB,IAAAC,EAAA,GAyBAkB,IAAAd,EAAA,MAAA,CAAAC,EAAA,UAAA,GACAJ,IAAAC,EAAAH,CAAA,GACAiB,IAAAZ,EAAA,OAAA;AAAA,MAA2C,mCAAAC,EAAA;AAAA,IACE,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"form-layout.js","sources":["../../vue2/src/components/form-layout/form-layout.vue","../../vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-tip.types.ts","../../vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue","../../vue2/src/components/form-layout/components/form-layout-group/form-layout-group.types.ts","../../vue2/src/components/form-layout/components/form-layout-group/form-layout-group.vue","../../vue2/src/components/form-layout/components/form-layout-title/form-layout-title.vue"],"sourcesContent":["<template>\n <component :is=\"formLayoutElement\" class=\"b-form-layout\" role=\"form\">\n <bento-alert v-if=\"hasSlot('error-message')\" class=\"b-form-layout__error-message\" type=\"critical\">\n <template #description>\n <slot name=\"error-message\" />\n </template>\n </bento-alert>\n\n <slot />\n\n <div v-if=\"hasActions\" class=\"b-form-layout__actions-container\">\n <div class=\"b-form-layout__actions\">\n <slot name=\"actions-left\" />\n </div>\n\n <div class=\"b-form-layout__actions\">\n <slot name=\"actions-right\" />\n </div>\n </div>\n </component>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, provide, toRef, useSlots } from 'vue';\n import { BentoAlert } from '@/components/alert';\n import { useHasSlot } from '@/composables';\n import { FORM_LAYOUT_LOADING_INJECTION_KEY } from './form-layout.types';\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const props = defineProps({\n /**\n * Renders the form layout as an HTML `form`\n */\n form: { type: Boolean, default: false },\n\n /**\n * Sets the state of the form and its fields to\n * a read only status.\n */\n loading: { type: Boolean, default: false },\n });\n\n const formLayoutElement = computed(() => (props.form ? 'form' : 'div'));\n const hasActions = computed(() => hasSlot('actions-left') || hasSlot('actions-right'));\n\n provide(FORM_LAYOUT_LOADING_INJECTION_KEY, toRef(props, 'loading'));\n</script>\n\n<script lang=\"ts\">\n /**\n * Form layout component is a pre-designed layout that serves\n * as a starting point for creating a form.\n *\n * It can include various common form components:\n * input field, dropdown, date picker, checkbox group, radio group,\n * textarea, etc.\n *\n * Form layout is context agnostic and can be dropped in different\n * places, for example in modals, side panels or pages.\n *\n * @example\n * import { BentoFormLayout, BentoFormLayoutFieldTip } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayout, BentoFormLayoutFieldTip },\n * template: `\n * <bento-form-layout>\n * <template #error-message>There is an error. Correct the highlighted field.</template>\n *\n * <bento-input-field>Input field</bento-input-field>\n *\n * <bento-form-layout-field-tip>\n * <bento-dropdown label=\"Dropdown\" :items=\"dropdownItems\" placeholder=\"Select an animal\" />\n * <template #message>This is a small tip that can be used in small spaces</template>\n * </bento-form-layout-field-tip>\n *\n * <bento-form-layout-title subsection>\n * Section title\n * <template #description>Optional section description</template>\n * </bento-form-layout-title>\n * </bento-form-layout>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout.scss\" />\n","import { BentoAlertTypeOption } from '@/components/alert/alert.types';\n\nexport type BentoFormLayoutFieldTipTypeOption = `${BentoAlertTypeOption}`;\nexport const BentoFormLayoutFieldTipTypeOptions = ['warning', 'critical', 'highlight', 'success'];\n","<template>\n <div class=\"b-form-layout-field-tip\">\n <slot />\n <bento-alert v-if=\"hasSlot('message')\" variant=\"tip\" :type=\"type\">\n <template #description>\n <slot name=\"message\" />\n </template>\n </bento-alert>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { PropType, useSlots } from 'vue';\n import { BentoFormLayoutFieldTipTypeOption, BentoFormLayoutFieldTipTypeOptions } from './form-layout-tip.types';\n import { BentoAlert } from '@/components/alert';\n import { useHasSlot } from '@/composables/use-has-slot/use-has-slot';\n\n defineProps({\n /**\n * Type of a alert; set a distinctive icon and color. Defaults to highlight.\n * @values highlight, success, critical, warning\n */\n type: {\n type: String as PropType<BentoFormLayoutFieldTipTypeOption>,\n default: 'highlight',\n validator: (value: BentoFormLayoutFieldTipTypeOption) => BentoFormLayoutFieldTipTypeOptions.includes(value),\n },\n });\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n</script>\n\n<script lang=\"ts\">\n /**\n * You can help users provide accurate and well formatted information\n * by using various elements that come with an input field.\n *\n * Use description/supporting text to add additional context to the\n * field or guidance how to format the input correctly.\n * Because description is always visible it should be the first\n * choice in providing guidance.\n *\n * @example\n * import { BentoFormLayoutFieldTip } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutFieldTip },\n * template: `\n * <bento-form-layout-field-tip>\n * <bento-dropdown label=\"Dropdown\" :items=\"dropdownItems\" placeholder=\"Select an animal\" />\n *\n * <template #message>This is a small tip that can be used in small spaces</template>\n * </bento-form-layout-field-tip>\n * `\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-field-tip.scss\" />\n","export type BentoLayoutGroupProportions =\n | '33-33-33'\n | '50-50'\n | '25-75'\n | '75-25'\n | '33-66'\n | '66-33'\n | '25'\n | '33'\n | '50'\n | '100';\n\nexport const BentoLayoutGroupProportions = [\n '100',\n '50',\n '33',\n '25',\n '66-33',\n '33-66',\n '75-25',\n '25-75',\n '50-50',\n '33-33-33',\n];\n","<template>\n <div class=\"b-form-layout-group\" :class=\"conditionalClasses\">\n <slot></slot>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, PropType } from 'vue';\n import { BentoLayoutGroupProportions } from './form-layout-group.types';\n\n // Default proportion\n const DEFAULT_PROPORTION = 100;\n\n const props = defineProps({\n /**\n * The layout of the pair group of components.\n * This will render the components within the width of the proportions.\n * Only two colums are available.\n *\n * If only one value is entered, then it will assume there's only one child in the group.\n * If two values are entered, the first value will be use for the first child and the second\n * value for the second child.\n *\n * If the value entered is not listed in the example\n * list below it will use 100% by default.\n * @example\n * '33-33-33'\n * '50-50'\n * '25-75'\n * '75-25'\n * '33-66'\n * '66-33'\n * '25'\n * '33'\n * '50'\n * '100'\n */\n layout: {\n type: String as PropType<BentoLayoutGroupProportions>,\n default: '100',\n validator: (value: BentoLayoutGroupProportions) => BentoLayoutGroupProportions.includes(value),\n },\n });\n\n // Sets DEFAULT_PROPORTION by default if `layout` is not in the list\n const computedLayout = computed(() =>\n BentoLayoutGroupProportions.includes(props.layout) ? props.layout : DEFAULT_PROPORTION\n );\n\n const conditionalClasses = computed(() => ({\n // Transform into column if the layout is unsupported\n 'b-form-layout-group--column': !BentoLayoutGroupProportions.includes(props.layout),\n // Assings the correct layout class\n [`b-form-layout-group--${computedLayout.value}`]: true,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * Use to provide horizontal layouts to build forms\n * with two fields per line.\n *\n * These can be used for field combinations,\n * such as post code and city or title and first name.\n *\n * @example\n * import { BentoFormLayoutGroup } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutGroup },\n * template: `\n * <bento-form-layout-group>\n * <first-element />\n * <second-element />\n * </bento-form-layout-group>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-group.scss\" />\n","<template>\n <div class=\"b-form-layout-title\" :class=\"conditionalClasses\">\n <bento-typography :el=\"el\" variant=\"title\" :medium=\"isSection\">\n <slot />\n </bento-typography>\n\n <bento-typography v-if=\"hasSlot('description')\" class=\"b-form-layout-title__description\" el=\"span\" wide>\n <slot name=\"description\" />\n </bento-typography>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, useSlots } from 'vue';\n import { BentoTypography, BentoTypographyElement } from '@/components/typography';\n import { useHasSlot } from '@/composables';\n\n const slots = useSlots();\n\n const props = defineProps({\n /**\n * Defines if the Form Layout title is\n * a \"section\" or a \"subsection\".\n * Default is \"section\" (false). Turn into \"true\" for \"subsection\"\n */\n subsection: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the HTML DOM element.\n * @values h1, h2, h3, h4, h5, h6, div, p, span\n */\n el: {\n type: BentoTypography.props.el.type,\n required: true,\n validator: (value: BentoTypographyElement) => Object.values(BentoTypographyElement).includes(value),\n },\n });\n\n // Uses \"medium\" typography if it is a section title\n const isSection = computed(() => !props.subsection);\n const hasSlot = useHasSlot(slots);\n const conditionalClasses = computed(() => ({\n 'b-form-layout-title--subsection': props.subsection,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * If you’re building a lengthy form, organise related\n * fields into sections and, if needed, subsections.\n *\n * A form can have a \"Section Title\" and multiple \"Subsection titles\".\n *\n * One of the values provided in @see BentoTypographyElement must always be provided as a string\n * to define correct HTML sementic from the application's context\n *\n * @example\n * import { BentoFormLayoutTitle } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutTitle },\n * template: `\n * <bento-form-layout-title subsection el=\"h2\">\n * Title\n * <template #description>Description text</template>\n * </bento-form-layout-title>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-title.scss\" />\n"],"names":["__default__$3","slots","useSlots","hasSlot","useHasSlot","formLayoutElement","computed","props","hasActions","provide","FORM_LAYOUT_LOADING_INJECTION_KEY","toRef","BentoFormLayoutFieldTipTypeOptions","__default__$2","BentoLayoutGroupProportions","__default__$1","DEFAULT_PROPORTION","computedLayout","conditionalClasses","__default__","isSection"],"mappings":";;;;;;;;;;qFAsFIA,IAAA,CAAA;;;;;;;;;;;;;;;iBA1DAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAeAI,IAAAC,EAAA,MAAAC,EAAA,OAAA,SAAA,KAAA,GACAC,IAAAF,EAAA,MAAAH,EAAA,cAAA,KAAAA,EAAA,eAAA,CAAA;AAEA,WAAAM,EAAAC,GAAAC,EAAAJ,GAAA,SAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oEC5CGK,IAAA,CAAA,WAAA,YAAA,aAAA,SAAA,6CCqDHC,IAAA,CAAA;;;;;;;;;;;;;;;AA3BA,UAAAZ,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA;;;;;;;;;;;;;;;;oEClBGa,IAAA;AAAA,EAAoC;AAAA,EACvC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAEJ,GCuDIC,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAnEAC,IAAA,KAkCAC,IAAAX;AAAA,MAAuB,MAAAQ,EAAA,SAAAP,EAAA,MAAA,IAAAA,EAAA,SAAAS;AAAA,IACiD,GAGxEE,IAAAZ,EAAA,OAAA;AAAA;AAAA,MAA2C,+BAAA,CAAAQ,EAAA,SAAAP,EAAA,MAAA;AAAA;AAAA,MAE0C,CAAA,wBAAAU,EAAA,OAAA,GAAA;AAAA,IAE/B,EAAA;;;;;;;;oECmBtDE,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;iBAvDAlB,IAAAC,EAAA,GAyBAkB,IAAAd,EAAA,MAAA,CAAAC,EAAA,UAAA,GACAJ,IAAAC,EAAAH,CAAA,GACAiB,IAAAZ,EAAA,OAAA;AAAA,MAA2C,mCAAAC,EAAA;AAAA,IACE,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
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.51fe0fc2.js";
3
+ import { B as V, c as X, a as Z } from "./chunks/index.a3d60e4f.js";
4
4
  import { u as F } from "./chunks/i18n.f7e6533e.js";
5
- import { B as ee } from "./chunks/button-actions-with-menu.305991e5.js";
5
+ import { B as ee } from "./chunks/button-actions-with-menu.7fce47a2.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.920cc1ee.js";
10
+ import { a as y } from "./chunks/index.5bdebf9d.js";
11
11
  import { g as se } from "./chunks/unique-id.a2a2b458.js";
12
- import { I as ie } from "./chunks/info.550f9511.js";
12
+ import { I as ie } from "./chunks/info.205b4496.js";
13
13
  import { _ as W } from "./chunks/_plugin-vue_export-helper.dad06003.js";
14
- import "./assets/index41.css";
14
+ import "./assets/index15.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();