@adyen/bento-vue3 1.9.0 → 1.11.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 (292) hide show
  1. package/dist/@types/components.d.ts +2 -0
  2. package/dist/@types/packages/vue2/src/components/button/button.vue.d.ts +23 -2455
  3. package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.types.d.ts +2 -0
  4. package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +3 -3
  5. package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +2 -0
  6. package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +2 -0
  7. package/dist/@types/packages/vue2/src/components/code-snippet/{composables/useLanguage.d.ts → utils/get-lang-loader.d.ts} +1 -3
  8. package/dist/@types/packages/vue2/src/components/country/composables/index.d.ts +3 -3
  9. package/dist/@types/packages/vue2/src/components/country/composables/{useCountryCapital/useCountryCapital.d.ts → use-country-capital/use-country-capital.d.ts} +1 -1
  10. package/dist/@types/packages/vue2/src/components/country/composables/{useCountryName/useCountryName.d.ts → use-country-name/use-country-name.d.ts} +1 -1
  11. package/dist/@types/packages/vue2/src/components/country/composables/{useCountryPhoneCode/useCountryPhoneCode.d.ts → use-country-phone-code/use-country-phon-code.d.ts} +1 -1
  12. package/dist/@types/packages/vue2/src/components/country/country.vue.d.ts +1 -1
  13. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell-actions/data-grid-cell-actions.types.d.ts +14 -0
  14. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell-actions/data-grid-cell-actions.vue.d.ts +33 -0
  15. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns-types.d.ts +1 -0
  16. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +21 -4
  17. package/dist/@types/packages/vue2/src/components/data-grid/components/index.d.ts +1 -0
  18. package/dist/@types/packages/vue2/src/components/data-grid/composables/index.d.ts +10 -8
  19. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/index.d.ts +2 -0
  20. package/dist/@types/packages/vue2/src/components/data-grid/composables/{useCalculateColumnWidth/useCalculateColumnWidth.d.ts → use-calculate-column-width/use-calculate-column-width.d.ts} +2 -2
  21. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-reorderer/use-column-reorderer.d.ts +121 -0
  22. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-config-settings/use-config-settings.d.ts +154 -0
  23. package/dist/@types/packages/vue2/src/components/data-grid/composables/{useKeyboardNavigator/useKeyboardNavigator.d.ts → use-keyboard-navigator/use-keyboard-navigator.d.ts} +1 -1
  24. package/dist/@types/packages/vue2/src/components/data-grid/composables/{useResizer.d.ts → use-resizer.d.ts} +0 -1
  25. package/dist/@types/packages/vue2/src/components/data-grid/composables/{useScroller/useScroller.d.ts → use-scroller/use-scroller.d.ts} +1 -1
  26. package/dist/@types/packages/vue2/src/components/data-grid/composables/{useSelector.d.ts → use-selector.d.ts} +1 -1
  27. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +5 -2
  28. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +15 -5
  29. package/dist/@types/packages/vue2/src/components/divider/divider.keys.d.ts +1 -0
  30. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.types.d.ts +1 -1
  31. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +3 -3
  32. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +3 -3
  33. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/composables/useDropdownOptionsListbox.d.ts +2 -1
  34. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +16 -6
  35. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +3 -3
  36. package/dist/@types/packages/vue2/src/components/dropdown/composables/useDisplayValue.types.d.ts +1 -0
  37. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +2355 -6
  38. package/dist/@types/packages/vue2/src/components/empty-state/empty-state.types.d.ts +1 -0
  39. package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +3 -3
  40. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +84 -12
  41. package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.types.d.ts +3 -1
  42. package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +8 -0
  43. package/dist/@types/packages/vue2/src/components/internal/copy/copy.types.d.ts +8 -0
  44. package/dist/@types/packages/vue2/src/components/internal/copy/copy.vue.d.ts +20 -0
  45. package/dist/@types/packages/vue2/src/components/internal/copy/index.d.ts +1 -0
  46. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/components/listbox-multi-select-category/listbox-multi-select-category.types.d.ts +2 -1
  47. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/components/listbox-multi-select-category/listbox-multi-select-category.vue.d.ts +51 -0
  48. 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 +10 -0
  49. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +9 -0
  50. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/components/listbox-single-select-category/index.d.ts +1 -0
  51. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/components/listbox-single-select-category/listbox-single-select-category.vue.d.ts +12 -0
  52. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/listbox-single-select.vue.d.ts +10 -0
  53. package/dist/@types/packages/vue2/src/components/internal/listbox/composables/use-multi-level-items/use-multi-level-items.d.ts +6 -0
  54. package/dist/@types/packages/vue2/src/components/internal/listbox/index.d.ts +1 -0
  55. package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +11 -2
  56. package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.types.d.ts +1 -0
  57. package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.vue.d.ts +1 -1
  58. package/dist/@types/packages/vue2/src/components/menu/components/sub-menu-item-list/sub-menu-item-list.vue.d.ts +2 -0
  59. package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +1 -0
  60. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +1 -1
  61. package/dist/@types/packages/vue2/src/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +316 -3
  62. package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +1 -1
  63. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +1 -0
  64. package/dist/@types/packages/vue2/src/components/secondary-nav/components/secondary-nav-category/index.d.ts +1 -0
  65. package/dist/@types/packages/vue2/src/components/secondary-nav/components/secondary-nav-category/secondary-nav-category.vue.d.ts +18 -0
  66. package/dist/@types/packages/vue2/src/components/secondary-nav/components/secondary-nav-item/index.d.ts +1 -0
  67. package/dist/@types/packages/vue2/src/components/secondary-nav/components/secondary-nav-item/secondary-nav-item.vue.d.ts +21 -0
  68. package/dist/@types/packages/vue2/src/components/secondary-nav/index.d.ts +2 -0
  69. package/dist/@types/packages/vue2/src/components/secondary-nav/secondary-nav.keys.d.ts +3 -0
  70. package/dist/@types/packages/vue2/src/components/secondary-nav/secondary-nav.types.d.ts +14 -0
  71. package/dist/@types/packages/vue2/src/components/secondary-nav/secondary-nav.vue.d.ts +22 -0
  72. package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +3 -4
  73. package/dist/@types/packages/vue2/src/components/structured-list/structured-list.types.d.ts +2 -0
  74. package/dist/@types/packages/vue2/src/components/structured-list/structured-list.vue.d.ts +15 -2
  75. package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +15 -10
  76. package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +9 -0
  77. package/dist/@types/packages/vue2/src/index.d.ts +1 -0
  78. package/dist/@types/packages/vue2/src/types/elements.d.ts +2 -1
  79. package/dist/@types/packages/vue2/src/utils/ts/deprecate.d.ts +1 -0
  80. package/dist/accordion.js +2 -2
  81. package/dist/action-bar.js +5 -5
  82. package/dist/alert.js +23 -23
  83. package/dist/alert.js.map +1 -1
  84. package/dist/assets/base-modal.css +1 -1
  85. package/dist/assets/button.css +1 -1
  86. package/dist/assets/checkbox.css +1 -1
  87. package/dist/assets/controls-group.css +1 -1
  88. package/dist/assets/copy.css +1 -1
  89. package/dist/assets/dropdown-default-textbox.css +1 -1
  90. package/dist/assets/dropdown.css +1 -1
  91. package/dist/assets/fixed-scroller.css +1 -1
  92. package/dist/assets/index.css +1 -1
  93. package/dist/assets/index10.css +1 -1
  94. package/dist/assets/index11.css +1 -1
  95. package/dist/assets/index12.css +1 -1
  96. package/dist/assets/index13.css +1 -1
  97. package/dist/assets/index14.css +1 -1
  98. package/dist/assets/index16.css +1 -1
  99. package/dist/assets/index17.css +1 -1
  100. package/dist/assets/index18.css +1 -1
  101. package/dist/assets/index19.css +1 -1
  102. package/dist/assets/index2.css +1 -1
  103. package/dist/assets/index20.css +1 -1
  104. package/dist/assets/index21.css +1 -1
  105. package/dist/assets/index22.css +1 -1
  106. package/dist/assets/index23.css +1 -1
  107. package/dist/assets/index24.css +1 -1
  108. package/dist/assets/index25.css +1 -1
  109. package/dist/assets/index26.css +1 -1
  110. package/dist/assets/index27.css +1 -1
  111. package/dist/assets/index28.css +1 -1
  112. package/dist/assets/index29.css +1 -1
  113. package/dist/assets/index3.css +1 -1
  114. package/dist/assets/index30.css +1 -1
  115. package/dist/assets/index31.css +1 -1
  116. package/dist/assets/index32.css +1 -1
  117. package/dist/assets/index33.css +1 -1
  118. package/dist/assets/index34.css +1 -1
  119. package/dist/assets/index35.css +1 -1
  120. package/dist/assets/index36.css +1 -1
  121. package/dist/assets/index37.css +1 -1
  122. package/dist/assets/index38.css +1 -1
  123. package/dist/assets/index39.css +1 -1
  124. package/dist/assets/index4.css +1 -1
  125. package/dist/assets/index40.css +1 -1
  126. package/dist/assets/index41.css +1 -1
  127. package/dist/assets/index42.css +1 -1
  128. package/dist/assets/index43.css +1 -1
  129. package/dist/assets/index44.css +1 -1
  130. package/dist/assets/index45.css +1 -1
  131. package/dist/assets/index46.css +1 -1
  132. package/dist/assets/index47.css +1 -0
  133. package/dist/assets/index5.css +1 -1
  134. package/dist/assets/index6.css +1 -1
  135. package/dist/assets/index7.css +1 -1
  136. package/dist/assets/index9.css +1 -1
  137. package/dist/assets/listbox.css +1 -1
  138. package/dist/assets/loading-button.css +1 -1
  139. package/dist/avatar-image.js +1 -1
  140. package/dist/badge.js +1 -1
  141. package/dist/button.js +57 -46
  142. package/dist/button.js.map +1 -1
  143. package/dist/card.js +2 -2
  144. package/dist/checkbox.js +73 -54
  145. package/dist/checkbox.js.map +1 -1
  146. package/dist/chunks/{base-button.aa085dfa.js → base-button.39fae75f.js} +2 -2
  147. package/dist/chunks/{base-button.aa085dfa.js.map → base-button.39fae75f.js.map} +1 -1
  148. package/dist/chunks/{base-modal.a629cb32.js → base-modal.161ce8f0.js} +86 -86
  149. package/dist/chunks/base-modal.161ce8f0.js.map +1 -0
  150. package/dist/chunks/{button-actions-with-menu.f6dfb14d.js → button-actions-with-menu.2ff339f6.js} +3 -3
  151. package/dist/chunks/{button-actions-with-menu.f6dfb14d.js.map → button-actions-with-menu.2ff339f6.js.map} +1 -1
  152. package/dist/chunks/button.623a46d2.js +118 -0
  153. package/dist/chunks/button.623a46d2.js.map +1 -0
  154. package/dist/chunks/{calendar.fa7712e8.js → calendar.b1d05580.js} +4 -4
  155. package/dist/chunks/{calendar.fa7712e8.js.map → calendar.b1d05580.js.map} +1 -1
  156. package/dist/chunks/checkbox.d65694f2.js +278 -0
  157. package/dist/chunks/checkbox.d65694f2.js.map +1 -0
  158. package/dist/chunks/{controls-group.d6543674.js → controls-group.30352ce4.js} +21 -17
  159. package/dist/chunks/controls-group.30352ce4.js.map +1 -0
  160. package/dist/chunks/copy.2a9cddc1.js +145 -0
  161. package/dist/chunks/copy.2a9cddc1.js.map +1 -0
  162. package/dist/chunks/country.types.002caff2.js +5871 -0
  163. package/dist/chunks/country.types.002caff2.js.map +1 -0
  164. package/dist/chunks/{dropdown-default-textbox.4108b289.js → dropdown-default-textbox.a731b5fb.js} +25 -25
  165. package/dist/chunks/dropdown-default-textbox.a731b5fb.js.map +1 -0
  166. package/dist/chunks/{dropdown.63de9aac.js → dropdown.96431c25.js} +399 -359
  167. package/dist/chunks/dropdown.96431c25.js.map +1 -0
  168. package/dist/chunks/{field-label.3c19a29a.js → field-label.b681234d.js} +5 -5
  169. package/dist/chunks/{field-label.3c19a29a.js.map → field-label.b681234d.js.map} +1 -1
  170. package/dist/chunks/{fixed-scroller.bced60dd.js → fixed-scroller.ebfb2f80.js} +2 -2
  171. package/dist/chunks/{fixed-scroller.bced60dd.js.map → fixed-scroller.ebfb2f80.js.map} +1 -1
  172. package/dist/chunks/{footer-actions.cefaf1e2.js → footer-actions.03015ba1.js} +3 -3
  173. package/dist/chunks/{footer-actions.cefaf1e2.js.map → footer-actions.03015ba1.js.map} +1 -1
  174. package/dist/chunks/{index.98174339.js → index.03605cb0.js} +5 -5
  175. package/dist/chunks/{index.98174339.js.map → index.03605cb0.js.map} +1 -1
  176. package/dist/chunks/index.09f7f1b5.js +124 -0
  177. package/dist/chunks/index.09f7f1b5.js.map +1 -0
  178. package/dist/chunks/index.0a8ddfaa.js +168 -0
  179. package/dist/chunks/index.0a8ddfaa.js.map +1 -0
  180. package/dist/chunks/index.113137fb.js +21 -0
  181. package/dist/chunks/index.113137fb.js.map +1 -0
  182. package/dist/chunks/{index.89dfe209.js → index.1dac266a.js} +3 -3
  183. package/dist/chunks/{index.89dfe209.js.map → index.1dac266a.js.map} +1 -1
  184. package/dist/chunks/{index.0ee895e0.js → index.45d00aad.js} +2 -2
  185. package/dist/chunks/{index.0ee895e0.js.map → index.45d00aad.js.map} +1 -1
  186. package/dist/chunks/{index.4d2a13e1.js → index.80078bf9.js} +2 -2
  187. package/dist/chunks/{index.4d2a13e1.js.map → index.80078bf9.js.map} +1 -1
  188. package/dist/chunks/{index.85832db5.js → index.a4a6e52f.js} +3 -3
  189. package/dist/chunks/{index.85832db5.js.map → index.a4a6e52f.js.map} +1 -1
  190. package/dist/chunks/index.cf561336.js +622 -0
  191. package/dist/chunks/index.cf561336.js.map +1 -0
  192. package/dist/chunks/{index.c6fecf1c.js → index.ef1c4d59.js} +33 -33
  193. package/dist/chunks/{index.c6fecf1c.js.map → index.ef1c4d59.js.map} +1 -1
  194. package/dist/chunks/{listbox-option-tag.b1eb32bd.js → listbox-option-tag.ff6d6f32.js} +3 -3
  195. package/dist/chunks/{listbox-option-tag.b1eb32bd.js.map → listbox-option-tag.ff6d6f32.js.map} +1 -1
  196. package/dist/chunks/listbox.dd9883c5.js +1419 -0
  197. package/dist/chunks/listbox.dd9883c5.js.map +1 -0
  198. package/dist/chunks/{loading-button.4b88e24d.js → loading-button.30c5fede.js} +19 -19
  199. package/dist/chunks/{loading-button.4b88e24d.js.map → loading-button.30c5fede.js.map} +1 -1
  200. package/dist/chunks/{tooltip.27c32d36.js → tooltip.785993dd.js} +15 -15
  201. package/dist/chunks/tooltip.785993dd.js.map +1 -0
  202. package/dist/chunks/use-has-slot.4d98bf29.js.map +1 -1
  203. package/dist/chunks/useCountryItems.d2a1f224.js +29 -0
  204. package/dist/chunks/{useCountryItems.e83ef8f0.js.map → useCountryItems.d2a1f224.js.map} +1 -1
  205. package/dist/code-snippet.js +136 -138
  206. package/dist/code-snippet.js.map +1 -1
  207. package/dist/country.js +51 -5912
  208. package/dist/country.js.map +1 -1
  209. package/dist/currency.js +1 -1
  210. package/dist/data-grid.js +1325 -1021
  211. package/dist/data-grid.js.map +1 -1
  212. package/dist/date-picker.js +20 -20
  213. package/dist/date-picker.js.map +1 -1
  214. package/dist/date-range-picker.js +2 -2
  215. package/dist/date.js +1 -1
  216. package/dist/divider.js +2 -10
  217. package/dist/divider.js.map +1 -1
  218. package/dist/dropdown.js +51 -50
  219. package/dist/dropdown.js.map +1 -1
  220. package/dist/empty-state.js +23 -23
  221. package/dist/empty-state.js.map +1 -1
  222. package/dist/filter-bar.js +759 -747
  223. package/dist/filter-bar.js.map +1 -1
  224. package/dist/focus-trap.js +1 -1
  225. package/dist/form-layout.js +2 -2
  226. package/dist/form-layout.js.map +1 -1
  227. package/dist/header.js +3 -3
  228. package/dist/index.js +194 -185
  229. package/dist/index.js.map +1 -1
  230. package/dist/info-icon.js +3 -3
  231. package/dist/input-field.js +4 -4
  232. package/dist/internal.js +17 -15
  233. package/dist/link.js +2 -2
  234. package/dist/loading-indicator.js +1 -1
  235. package/dist/menu.js +1 -1
  236. package/dist/modal.js +67 -64
  237. package/dist/modal.js.map +1 -1
  238. package/dist/pagination.js +15 -13
  239. package/dist/pagination.js.map +1 -1
  240. package/dist/payment-method.js +2 -2
  241. package/dist/popover.js +1 -1
  242. package/dist/popper-container.js +1 -1
  243. package/dist/radio-group.js +69 -67
  244. package/dist/radio-group.js.map +1 -1
  245. package/dist/search-bar.js +8 -8
  246. package/dist/secondary-nav.js +110 -0
  247. package/dist/secondary-nav.js.map +1 -0
  248. package/dist/segmented-control.js +3 -3
  249. package/dist/sidepanel.js +5 -5
  250. package/dist/status.js +2 -2
  251. package/dist/stepper.js +3 -3
  252. package/dist/structured-list.js +1 -1
  253. package/dist/summary-grid.js +3 -3
  254. package/dist/tabs.js +3 -3
  255. package/dist/tag.js +3 -3
  256. package/dist/textarea.js +173 -161
  257. package/dist/textarea.js.map +1 -1
  258. package/dist/timeline.js +244 -237
  259. package/dist/timeline.js.map +1 -1
  260. package/dist/toast.js +3 -3
  261. package/dist/toggle.js +2 -2
  262. package/dist/tutorial.js +5 -5
  263. package/dist/typography.js +1 -1
  264. package/dist/web-types.json +1 -1
  265. package/package.json +2 -2
  266. package/dist/@types/packages/vue2/src/components/data-grid/composables/useColumnReorderer/useColumnReorderer.d.ts +0 -67
  267. package/dist/@types/packages/vue2/src/components/data-grid/composables/useConfigSettings/useConfigSettings.d.ts +0 -73
  268. package/dist/chunks/base-modal.a629cb32.js.map +0 -1
  269. package/dist/chunks/button.82ed953e.js +0 -148
  270. package/dist/chunks/button.82ed953e.js.map +0 -1
  271. package/dist/chunks/checkbox.731dc0ab.js +0 -264
  272. package/dist/chunks/checkbox.731dc0ab.js.map +0 -1
  273. package/dist/chunks/controls-group.d6543674.js.map +0 -1
  274. package/dist/chunks/copy.330d594e.js +0 -126
  275. package/dist/chunks/copy.330d594e.js.map +0 -1
  276. package/dist/chunks/dropdown-default-textbox.4108b289.js.map +0 -1
  277. package/dist/chunks/dropdown.63de9aac.js.map +0 -1
  278. package/dist/chunks/index.73ed22a7.js +0 -594
  279. package/dist/chunks/index.73ed22a7.js.map +0 -1
  280. package/dist/chunks/index.75f3672e.js +0 -124
  281. package/dist/chunks/index.75f3672e.js.map +0 -1
  282. package/dist/chunks/index.edcaf766.js +0 -150
  283. package/dist/chunks/index.edcaf766.js.map +0 -1
  284. package/dist/chunks/listbox.ac43f8ab.js +0 -1309
  285. package/dist/chunks/listbox.ac43f8ab.js.map +0 -1
  286. package/dist/chunks/tooltip.27c32d36.js.map +0 -1
  287. package/dist/chunks/useCountryItems.e83ef8f0.js +0 -29
  288. /package/dist/@types/packages/vue2/src/components/data-grid/composables/{useCalculateColumnWidth/useCalculateColumnWidth.types.d.ts → use-calculate-column-width/use-calculate-column-width.types.d.ts} +0 -0
  289. /package/dist/@types/packages/vue2/src/components/data-grid/composables/{useCalculateStickyElementHeight/useCalculateStickyElementHeight.d.ts → use-calculate-sticky-element-height/use-calculate-sticky-element-height.d.ts} +0 -0
  290. /package/dist/@types/packages/vue2/src/components/data-grid/composables/{useKeyboardNavigator/useKeyboardNavigator.types.d.ts → use-keyboard-navigator/use-keyboard-navigator.types.d.ts} +0 -0
  291. /package/dist/@types/packages/vue2/src/components/data-grid/composables/{useLazyLoading/useLazyLoading.d.ts → use-lazy-loading/use-lazy-loading.d.ts} +0 -0
  292. /package/dist/@types/packages/vue2/src/components/data-grid/composables/{useSorter.d.ts → use-sorter.d.ts} +0 -0
@@ -1,19 +1,19 @@
1
- import { defineComponent as N, toRefs as w, computed as r, resolveComponent as E, openBlock as i, createElementBlock as C, normalizeClass as $, createElementVNode as O, createBlock as v, withCtx as u, renderSlot as S, createCommentVNode as h, toRef as L, watch as M, createVNode as P, Fragment as q, renderList as H, createSlots as z, createTextVNode as R, toDisplayString as D } from "vue";
2
- import { B as F, d as G } from "./chunks/index.75f3672e.js";
3
- import { u as Y } from "./chunks/aria-label.ac9651a5.js";
4
- import { g as A } from "./chunks/unique-id.a2a2b458.js";
5
- import { u as Z } from "./chunks/use-default-slot-validator.1169c221.js";
6
- import { u as V } from "./chunks/use-has-slot.4d98bf29.js";
1
+ import { defineComponent as D, toRefs as U, computed as r, resolveComponent as E, openBlock as i, createElementBlock as C, normalizeClass as A, createElementVNode as w, createBlock as v, withCtx as u, renderSlot as S, createCommentVNode as h, toRef as $, watch as P, createVNode as q, Fragment as H, renderList as z, createSlots as F, createTextVNode as L, toDisplayString as R } from "vue";
2
+ import { B as G, d as Y } from "./chunks/index.09f7f1b5.js";
3
+ import { u as Z } from "./chunks/aria-label.ac9651a5.js";
4
+ import { g as B } from "./chunks/unique-id.a2a2b458.js";
5
+ import { u as j } from "./chunks/use-default-slot-validator.1169c221.js";
6
+ import { u as M } from "./chunks/use-has-slot.4d98bf29.js";
7
7
  import { g as T } from "./chunks/get-slot-text.bead058f.js";
8
- import { _ as U } from "./chunks/_plugin-vue_export-helper.dad06003.js";
9
- import { u as j } from "./chunks/use-form-layout-loading.d03e5d48.js";
10
- import { C as J } from "./chunks/controls-group.d6543674.js";
11
- import { E as K } from "./chunks/field-label.3c19a29a.js";
12
- import "./assets/index24.css";
13
- var I = /* @__PURE__ */ ((e) => (e.DISABLED = "disabled", e.READONLY = "readonly", e.ERROR = "error", e))(I || {}), _ = /* @__PURE__ */ ((e) => (e.HORIZONTAL = "horizontal", e.VERTICAL = "vertical", e))(_ || {}), c = /* @__PURE__ */ ((e) => (e.UPDATE = "update:model-value", e.INPUT = "input", e))(c || {});
14
- const Q = N({
8
+ import { _ as V } from "./chunks/_plugin-vue_export-helper.dad06003.js";
9
+ import { u as J } from "./chunks/use-form-layout-loading.d03e5d48.js";
10
+ import { C as K } from "./chunks/controls-group.30352ce4.js";
11
+ import { E as Q } from "./chunks/field-label.b681234d.js";
12
+ import "./assets/index32.css";
13
+ var _ = /* @__PURE__ */ ((e) => (e.DISABLED = "disabled", e.READONLY = "readonly", e.ERROR = "error", e))(_ || {}), I = /* @__PURE__ */ ((e) => (e.HORIZONTAL = "horizontal", e.VERTICAL = "vertical", e))(I || {}), p = /* @__PURE__ */ ((e) => (e.UPDATE = "update:model-value", e.INPUT = "input", e))(p || {});
14
+ const W = D({
15
15
  name: "radio-button",
16
- components: { BentoTypography: F },
16
+ components: { BentoTypography: G },
17
17
  props: {
18
18
  /**
19
19
  * Disable the radio button (optional)
@@ -52,49 +52,49 @@ const Q = N({
52
52
  required: !0
53
53
  }
54
54
  },
55
- emits: [c.UPDATE],
56
- setup(e, { slots: o, emit: p }) {
57
- const { value: f } = w(e), m = A("radio-button"), s = A("description"), t = T(o)("default"), l = T(o)("description");
58
- Z("radio-button", o.default, o.description);
55
+ emits: [p.UPDATE],
56
+ setup(e, { slots: o, emit: c }) {
57
+ const { value: f } = U(e), m = B("radio-button"), s = B("description"), t = T(o)("default"), n = T(o)("description");
58
+ j("radio-button", o.default, o.description);
59
59
  const y = r(() => ({
60
- [`b-radio-button--${I.DISABLED}`]: e.disabled,
61
- [`b-radio-button--${I.READONLY}`]: e.readonly
60
+ [`b-radio-button--${_.DISABLED}`]: e.disabled,
61
+ [`b-radio-button--${_.READONLY}`]: e.readonly
62
62
  })), a = r(() => ({
63
- [`b-radio-button__input--${I.ERROR}`]: e.hasError
64
- })), n = Y({
63
+ [`b-radio-button__input--${_.ERROR}`]: e.hasError
64
+ })), l = Z({
65
65
  ariaLabel: T(o)("default"),
66
66
  label: f.value
67
67
  }), d = r(() => e.hasError), k = r(() => e.value === e.modelValue), g = () => {
68
- !e.disabled && !e.readonly && p(c.UPDATE, e.value);
69
- }, B = (b) => {
68
+ !e.disabled && !e.readonly && c(p.UPDATE, e.value);
69
+ }, N = (b) => {
70
70
  e.readonly && b.preventDefault();
71
71
  };
72
72
  return {
73
73
  // Values
74
- ariaLabel: n,
74
+ ariaLabel: l,
75
75
  ariaInvalid: d,
76
76
  isChecked: k,
77
77
  defaultSlotValue: t,
78
- descriptionSlotValue: l,
78
+ descriptionSlotValue: n,
79
79
  conditionalClassContainer: y,
80
80
  conditionalClassInput: a,
81
81
  radioButtonId: m,
82
82
  descriptionId: s,
83
83
  // Methods
84
- hasSlot: V(o),
84
+ hasSlot: M(o),
85
85
  onChange: g,
86
- onClick: B
86
+ onClick: N
87
87
  };
88
88
  }
89
89
  });
90
- const W = ["id", "aria-checked", "aria-label", "aria-invalid", "aria-describedby", "checked", "disabled", "aria-readonly", "value"], X = ["for"];
91
- function x(e, o, p, f, m, s) {
90
+ const X = ["id", "aria-checked", "aria-label", "aria-invalid", "aria-describedby", "checked", "disabled", "aria-readonly", "value"], x = ["for"];
91
+ function ee(e, o, c, f, m, s) {
92
92
  const t = E("bento-typography");
93
93
  return i(), C("div", {
94
- class: $(["b-radio-button", e.conditionalClassContainer]),
94
+ class: A(["b-radio-button", e.conditionalClassContainer]),
95
95
  "data-testid": "radio-button-container"
96
96
  }, [
97
- O("input", {
97
+ w("input", {
98
98
  id: e.radioButtonId,
99
99
  "aria-checked": e.isChecked,
100
100
  "aria-label": e.ariaLabel,
@@ -105,11 +105,11 @@ function x(e, o, p, f, m, s) {
105
105
  "aria-readonly": e.readonly ? e.readonly : void 0,
106
106
  value: e.value,
107
107
  type: "radio",
108
- class: $(["b-radio-button__input", e.conditionalClassInput]),
108
+ class: A(["b-radio-button__input", e.conditionalClassInput]),
109
109
  role: "radio",
110
- onClick: o[0] || (o[0] = (...l) => e.onClick && e.onClick(...l)),
111
- onChange: o[1] || (o[1] = (...l) => e.onChange && e.onChange(...l))
112
- }, null, 42, W),
110
+ onClick: o[0] || (o[0] = (...n) => e.onClick && e.onClick(...n)),
111
+ onChange: o[1] || (o[1] = (...n) => e.onChange && e.onChange(...n))
112
+ }, null, 42, X),
113
113
  e.hasSlot("default") ? (i(), C("label", {
114
114
  key: 0,
115
115
  for: e.radioButtonId,
@@ -148,12 +148,12 @@ function x(e, o, p, f, m, s) {
148
148
  ]),
149
149
  _: 3
150
150
  })) : h("", !0)
151
- ], 8, X)) : h("", !0)
151
+ ], 8, x)) : h("", !0)
152
152
  ], 2);
153
153
  }
154
- const ee = /* @__PURE__ */ U(Q, [["render", x], ["__scopeId", "data-v-70c50aa0"]]), oe = N({
155
- name: "bento-radio-group",
156
- components: { ControlsGroup: J, ErrorMessage: K, RadioButton: ee },
154
+ const oe = /* @__PURE__ */ V(W, [["render", ee], ["__scopeId", "data-v-70c50aa0"]]), O = "bento-radio-group", ae = D({
155
+ name: O,
156
+ components: { ControlsGroup: K, ErrorMessage: Q, RadioButton: oe },
157
157
  model: { prop: "modelValue" },
158
158
  props: {
159
159
  /**
@@ -216,26 +216,26 @@ const ee = /* @__PURE__ */ U(Q, [["render", x], ["__scopeId", "data-v-70c50aa0"]
216
216
  */
217
217
  variant: {
218
218
  type: String,
219
- default: _.VERTICAL,
220
- validator: (e) => Object.values(_).includes(e)
219
+ default: I.VERTICAL,
220
+ validator: (e) => Object.values(I).includes(e)
221
221
  }
222
222
  },
223
- emits: [c.UPDATE, c.INPUT],
224
- setup(e, { slots: o, emit: p }) {
225
- const f = L(e, "modelValue"), m = A("error"), { isReadOnly: s } = j(L(e, "readonly")), t = V(o), l = r(
223
+ emits: [p.UPDATE, p.INPUT],
224
+ setup(e, { slots: o, emit: c }) {
225
+ const f = $(e, "modelValue"), m = B("error"), { isReadOnly: s } = J($(e, "readonly")), t = M(o), n = r(
226
226
  () => !e.disabled && !s.value && (!!e.errorMessage || e.hasError)
227
227
  ), y = r(() => !e.disabled && !s.value && !!e.errorMessage), a = r(() => ({
228
- "b-radio-group__buttons--horizontal": e.variant === _.HORIZONTAL
229
- })), n = r(() => e.variant === "vertical"), d = r(() => t("content")), k = r(() => (d == null ? void 0 : d.value) && (n == null ? void 0 : n.value)), g = r(() => (d == null ? void 0 : d.value) && !(n != null && n.value)), B = (b) => {
230
- p(c.UPDATE, b), p(c.INPUT, b);
228
+ "b-radio-group__buttons--horizontal": e.variant === I.HORIZONTAL
229
+ })), l = r(() => e.variant === "vertical"), d = r(() => t("content")), k = r(() => (d == null ? void 0 : d.value) && (l == null ? void 0 : l.value)), g = r(() => (d == null ? void 0 : d.value) && !(l != null && l.value)), N = (b) => {
230
+ c(p.UPDATE, b), c(p.INPUT, b);
231
231
  };
232
- return e.hasError && G(
232
+ return e.hasError && Y(
233
233
  'BentoRadioGroup "hasError" property',
234
234
  `Use the BentoRadioGroup "errorMessage" property instead to indicate that there is a modifier error.
235
235
  Having the field as "undefined" will hide/remove the error.
236
236
  <bento-radio-group errorMessage="Error message text" />`,
237
237
  "2.0.0"
238
- ), M(
238
+ ), P(
239
239
  g,
240
240
  (b) => {
241
241
  if (b)
@@ -246,29 +246,31 @@ const ee = /* @__PURE__ */ U(Q, [["render", x], ["__scopeId", "data-v-70c50aa0"]
246
246
  }
247
247
  ), {
248
248
  // Values
249
+ COMPONENT_NAME: O,
249
250
  inputValue: f,
250
251
  errorId: m,
251
252
  isReadOnly: s,
252
- shouldShowError: l,
253
+ shouldShowError: n,
253
254
  shouldShowErrorMessage: y,
254
255
  conditionalClasses: a,
255
256
  contentSlotAvailable: k,
256
- isVertical: n,
257
+ isVertical: l,
257
258
  shouldShowSlotError: g,
258
259
  hasContentSlot: d,
259
260
  hasSlot: t,
260
261
  // Methods
261
- onInput: B
262
+ onInput: N
262
263
  };
263
264
  }
264
265
  });
265
- const ae = { class: "b-radio-group" };
266
- function re(e, o, p, f, m, s) {
267
- const t = E("radio-button"), l = E("controls-group"), y = E("error-message");
268
- return i(), C("div", ae, [
269
- P(l, {
270
- class: $(["b-radio-group__buttons", e.conditionalClasses]),
266
+ const re = { class: "b-radio-group" };
267
+ function te(e, o, c, f, m, s) {
268
+ const t = E("radio-button"), n = E("controls-group"), y = E("error-message");
269
+ return i(), C("div", re, [
270
+ q(n, {
271
+ class: A(["b-radio-group__buttons", e.conditionalClasses]),
271
272
  "aria-describedby": e.shouldShowErrorMessage ? e.errorId : "",
273
+ "component-name": e.COMPONENT_NAME,
272
274
  description: e.description,
273
275
  disabled: e.disabled,
274
276
  form: e.formId,
@@ -279,7 +281,7 @@ function re(e, o, p, f, m, s) {
279
281
  "tooltip-text": e.tooltipText
280
282
  }, {
281
283
  default: u(() => [
282
- (i(!0), C(q, null, H(e.items, (a) => (i(), v(t, {
284
+ (i(!0), C(H, null, z(e.items, (a) => (i(), v(t, {
283
285
  key: a.value,
284
286
  "model-value": e.inputValue,
285
287
  value: a.value,
@@ -287,16 +289,16 @@ function re(e, o, p, f, m, s) {
287
289
  readonly: e.isReadOnly || a.readonly,
288
290
  "has-error": e.shouldShowError || a.hasError,
289
291
  "onUpdate:modelValue": e.onInput
290
- }, z({
292
+ }, F({
291
293
  default: u(() => [
292
- R(D(a.label) + " ", 1)
294
+ L(R(a.label) + " ", 1)
293
295
  ]),
294
296
  _: 2
295
297
  }, [
296
298
  a.description ? {
297
299
  name: "description",
298
300
  fn: u(() => [
299
- R(D(a.description), 1)
301
+ L(R(a.description), 1)
300
302
  ]),
301
303
  key: "0"
302
304
  } : void 0,
@@ -310,7 +312,7 @@ function re(e, o, p, f, m, s) {
310
312
  ]), 1032, ["model-value", "value", "disabled", "readonly", "has-error", "onUpdate:modelValue"]))), 128))
311
313
  ]),
312
314
  _: 3
313
- }, 8, ["aria-describedby", "class", "description", "disabled", "form", "label", "optional", "required", "hide-label", "tooltip-text"]),
315
+ }, 8, ["aria-describedby", "component-name", "class", "description", "disabled", "form", "label", "optional", "required", "hide-label", "tooltip-text"]),
314
316
  e.shouldShowErrorMessage ? (i(), v(y, {
315
317
  key: 0,
316
318
  id: e.errorId,
@@ -319,9 +321,9 @@ function re(e, o, p, f, m, s) {
319
321
  }, null, 8, ["id", "error-message"])) : h("", !0)
320
322
  ]);
321
323
  }
322
- const me = /* @__PURE__ */ U(oe, [["render", re], ["__scopeId", "data-v-e9b882c2"]]);
324
+ const ye = /* @__PURE__ */ V(ae, [["render", te], ["__scopeId", "data-v-a3a9124f"]]);
323
325
  export {
324
- me as BentoRadioGroup,
325
- _ as BentoRadioGroupVariant
326
+ ye as BentoRadioGroup,
327
+ I as BentoRadioGroupVariant
326
328
  };
327
329
  //# sourceMappingURL=radio-group.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"radio-group.js","sources":["../../vue2/src/components/radio-group/components/radio-button/radio-button.types.ts","../../vue2/src/components/radio-group/radio-group.types.ts","../../vue2/src/components/radio-group/components/radio-button/radio-button.vue","../../vue2/src/components/radio-group/radio-group.vue"],"sourcesContent":["export enum BentoRadioButtonStateClass {\n DISABLED = 'disabled',\n READONLY = 'readonly',\n ERROR = 'error',\n}\n","/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoRadioGroupVariant {\n HORIZONTAL = 'horizontal',\n VERTICAL = 'vertical',\n}\n\nexport interface BentoRadioGroupItem {\n value: string | number;\n label: string;\n description?: string;\n disabled?: boolean;\n readonly?: boolean;\n hasError?: boolean;\n}\n\nexport type BentoRadioGroupItems = Array<BentoRadioGroupItem>;\n\nexport enum BentoRadioGroupEvent {\n UPDATE = 'update:model-value',\n INPUT = 'input',\n}\n","<template>\n <div class=\"b-radio-button\" data-testid=\"radio-button-container\" :class=\"conditionalClassContainer\">\n <input\n :id=\"radioButtonId\"\n :aria-checked=\"isChecked\"\n :aria-label=\"ariaLabel\"\n :aria-invalid=\"ariaInvalid\"\n :aria-describedby=\"hasSlot('description') ? descriptionId : ''\"\n :checked=\"isChecked\"\n :disabled=\"disabled\"\n :aria-readonly=\"readonly ? readonly : undefined\"\n :value=\"value\"\n type=\"radio\"\n class=\"b-radio-button__input\"\n :class=\"conditionalClassInput\"\n role=\"radio\"\n @click=\"onClick\"\n @change=\"onChange\"\n />\n <label v-if=\"hasSlot('default')\" :for=\"radioButtonId\" class=\"b-radio-button__label-container\">\n <bento-typography v-if=\"hasSlot('default')\" class=\"b-radio-button__label\" el=\"span\" variant=\"body\">\n <slot></slot>\n </bento-typography>\n <bento-typography\n v-if=\"hasSlot('default') && hasSlot('description')\"\n :id=\"descriptionId\"\n class=\"b-radio-button__description\"\n el=\"span\"\n variant=\"body\"\n >\n <slot name=\"description\"></slot>\n </bento-typography>\n <bento-typography v-if=\"hasSlot('content') && isChecked\" class=\"b-radio-button__content\" el=\"div\">\n <slot name=\"content\"></slot>\n </bento-typography>\n </label>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { BentoTypography } from '@/components/typography';\n import type { HTMLAttributes } from 'vue/types/jsx';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n import { generateUid } from '@/utils/ts/unique-id';\n import { computed, ComputedRef, defineComponent, toRefs } from 'vue';\n import { useDefaultSlotValidator, useHasSlot } from '@/composables';\n import { BentoRadioButtonStateClass } from './radio-button.types';\n import { BentoRadioGroupEvent } from '../../radio-group.types';\n import { getSlotText } from '@/utils/ts/get-slot-text';\n\n /**\n * Radio buttons are used when two or more options are mutually exclusive,\n * the user can only select a single option from a list of pre-defined options.\n * The label tag area is also clickable.\n * Only to be used internally.\n *\n * @usage\n * import { RadioButton } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { RadioButton },\n * template: `\n * <radio-button\n * disabled\n * value=\"inputRadio\"\n * >\n * Label text\n * <template #description>Description text below label</template>\n * </radio-button>\n * `,\n * }\n */\n export default defineComponent({\n name: 'radio-button',\n components: { BentoTypography },\n props: {\n /**\n * Disable the radio button (optional)\n */\n disabled: {\n type: Boolean,\n default: false,\n },\n /**\n * Shows radio-button in error state (optional)\n */\n hasError: {\n type: Boolean,\n default: false,\n },\n /**\n * This property should not be used directly.\n * It will be used by v-model directive on radio component.\n */\n modelValue: {\n type: [String, Number],\n default: null,\n },\n /**\n * Sets the radio button to readonly (optional)\n */\n readonly: {\n type: Boolean,\n default: false,\n },\n /**\n * Indicates the value of the input that will be returned when it's checked\n */\n value: {\n type: [String, Number],\n required: true,\n },\n },\n emits: [BentoRadioGroupEvent.UPDATE],\n setup(props, { slots, emit }) {\n const { value } = toRefs(props);\n const radioButtonId = generateUid('radio-button');\n const descriptionId = generateUid('description');\n\n const defaultSlotValue = getSlotText(slots)('default');\n const descriptionSlotValue = getSlotText(slots)('description');\n\n useDefaultSlotValidator('radio-button', slots.default, slots.description);\n\n const conditionalClassContainer = computed(() => ({\n [`b-radio-button--${BentoRadioButtonStateClass.DISABLED}`]: props.disabled,\n [`b-radio-button--${BentoRadioButtonStateClass.READONLY}`]: props.readonly,\n }));\n const conditionalClassInput = computed(() => ({\n [`b-radio-button__input--${BentoRadioButtonStateClass.ERROR}`]: props.hasError,\n }));\n\n const ariaLabel = useAriaLabel({\n ariaLabel: getSlotText(slots)('default'),\n label: value.value as string,\n });\n const ariaInvalid = computed<HTMLAttributes['aria-invalid']>(() => props.hasError);\n\n const isChecked: ComputedRef<boolean> = computed(() => props.value === props.modelValue);\n\n const onChange = () => {\n if (!props.disabled && !props.readonly) {\n emit(BentoRadioGroupEvent.UPDATE, props.value);\n }\n };\n\n // readonly attr doesn't work with radio button, so we need to manually ignore the click instead\n const onClick = event => {\n if (props.readonly) {\n event.preventDefault();\n }\n };\n\n return {\n // Values\n ariaLabel,\n ariaInvalid,\n isChecked,\n defaultSlotValue,\n descriptionSlotValue,\n conditionalClassContainer,\n conditionalClassInput,\n radioButtonId,\n descriptionId,\n\n // Methods\n hasSlot: useHasSlot(slots),\n onChange,\n onClick,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./radio-button.scss\" />\n","<template>\n <div class=\"b-radio-group\">\n <controls-group\n class=\"b-radio-group__buttons\"\n :aria-describedby=\"shouldShowErrorMessage ? errorId : ''\"\n :class=\"conditionalClasses\"\n :description=\"description\"\n :disabled=\"disabled\"\n :form=\"formId\"\n :label=\"label\"\n :optional=\"optional\"\n :required=\"required\"\n :hide-label=\"hideLabel\"\n :tooltip-text=\"tooltipText\"\n >\n <radio-button\n v-for=\"item in items\"\n :key=\"item.value\"\n :model-value=\"inputValue\"\n :value=\"item.value\"\n :disabled=\"disabled || item.disabled\"\n :readonly=\"isReadOnly || item.readonly\"\n :has-error=\"shouldShowError || item.hasError\"\n @update:model-value=\"onInput\"\n >\n {{ item.label }}\n <template v-if=\"item.description\" #description>{{ item.description }}</template>\n <template v-if=\"contentSlotAvailable\" #content>\n <slot name=\"content\"></slot>\n </template>\n </radio-button>\n </controls-group>\n <error-message\n v-if=\"shouldShowErrorMessage\"\n :id=\"errorId\"\n :error-message=\"errorMessage\"\n class=\"b-radio-group__error-message\"\n />\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType, toRef, watch } from 'vue';\n import { ControlsGroup, ErrorMessage } from '@/components/internal';\n import RadioButton from './components/radio-button/radio-button.vue';\n import { useHasSlot } from '@/composables';\n import { generateUid } from '@/utils/ts/unique-id';\n import { deprecate } from '@/utils/ts/deprecate';\n import { BentoRadioGroupEvent, BentoRadioGroupItems, BentoRadioGroupVariant } from './radio-group.types';\n import { useFormLayoutFieldLoading } from '@/composables/use-form-layout-loading/use-form-layout-loading';\n\n /**\n * A radio group component should be used whenever it is necessary to use a set of radio buttons\n * This component conforms to the official WAI-ARIA guidelines for grouping controls: https://www.w3.org/WAI/tutorials/forms/grouping/\n *\n * import { BentoRadioGroup } from '@adyen/bento-vue2/';\n *\n * export default {\n * components: { BentoRadioGroup },\n * template: `\n * <bento-radio-group\n * label=\"Your group label\"\n * :items=\"[\n * { value: 1, label: 'Your label' },\n * { value: 2, label: 'Another label', description: 'Your descriptive sub label' },\n * ]\"\n * variant=\"horizontal\"\n * />\n * `\n * };\n */\n export default defineComponent({\n name: 'bento-radio-group',\n components: { ControlsGroup, ErrorMessage, RadioButton },\n model: { prop: 'modelValue' },\n props: {\n /**\n * Descriptive supporting text visbile underneath the label.\n */\n description: { type: String, default: null },\n\n /**\n * If set to true, renders all radio-buttons in the group in a disabled state.\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * If string is passed, all radio-buttons in an error state and renders the string beneath the buttons.\n */\n errorMessage: { type: String, default: null },\n\n /**\n * The form id the radio group is associated with. Defaults to null, as a radio group can also be used standalone.\n */\n formId: { type: String, default: null },\n\n /**\n * If set to true, renders all radio-buttons in the group in an error state.\n *\n * @deprecated Use \"errorMessage\" prop instead\n */\n hasError: { type: Boolean, default: false },\n\n /**\n * Shows/hides the group label.\n */\n hideLabel: { type: Boolean, default: null },\n\n /**\n * The radio group's items.\n */\n items: { type: Array as PropType<BentoRadioGroupItems>, required: true },\n\n /**\n * The name associated with the group. Required for accessibility purposes.\n */\n label: { type: String, required: true },\n\n /**\n * Determines the initially selected value of the group. Corresponds to the BentoRadioButtonItem's value.\n * Defaults to no value selected.\n */\n modelValue: { type: [Number, String, null], default: null },\n\n /**\n * Indicates the field is optional.\n */\n optional: { type: Boolean, default: false },\n\n /**\n * If set to true, renders all radio-buttons in the group in a readonly state.\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * Indicates the field is required.\n */\n required: { type: Boolean, default: false },\n\n /**\n * Tooltip message.\n */\n tooltipText: { type: String, default: null },\n\n /**\n * The radio group's layout. It can be vertical or horizontal. Defaults to vertical.\n */\n variant: {\n type: String as PropType<BentoRadioGroupVariant | `${BentoRadioGroupVariant}`>,\n default: BentoRadioGroupVariant.VERTICAL,\n validator: (value: BentoRadioGroupVariant) => Object.values(BentoRadioGroupVariant).includes(value),\n },\n },\n emits: [BentoRadioGroupEvent.UPDATE, BentoRadioGroupEvent.INPUT],\n setup(props, { slots, emit }) {\n const inputValue = toRef(props, 'modelValue');\n const errorId = generateUid('error');\n const { isReadOnly } = useFormLayoutFieldLoading(toRef(props, 'readonly'));\n const hasSlot = useHasSlot(slots);\n\n const shouldShowError = computed(\n () => !props.disabled && !isReadOnly.value && (!!props.errorMessage || props.hasError)\n );\n const shouldShowErrorMessage = computed(() => !props.disabled && !isReadOnly.value && !!props.errorMessage);\n\n const conditionalClasses = computed(() => ({\n 'b-radio-group__buttons--horizontal': props.variant === BentoRadioGroupVariant.HORIZONTAL,\n }));\n\n // Content slot logic\n const isVertical = computed(() => props.variant === 'vertical');\n const hasContentSlot = computed(() => hasSlot('content'));\n const contentSlotAvailable = computed(() => hasContentSlot?.value && isVertical?.value);\n const shouldShowSlotError = computed(() => hasContentSlot?.value && !isVertical?.value);\n\n const onInput = value => {\n emit(BentoRadioGroupEvent.UPDATE, value);\n emit(BentoRadioGroupEvent.INPUT, value);\n };\n\n if (props.hasError) {\n deprecate(\n 'BentoRadioGroup \"hasError\" property',\n `Use the BentoRadioGroup \"errorMessage\" property instead to indicate that there is a modifier error.\n Having the field as \"undefined\" will hide/remove the error.\n <bento-radio-group errorMessage=\"Error message text\" />`,\n '2.0.0'\n );\n }\n\n watch(\n shouldShowSlotError,\n newVal => {\n if (newVal) {\n throw new Error('The content slot is only available for the vertical radio group layout');\n }\n },\n {\n immediate: true,\n }\n );\n\n return {\n // Values\n inputValue,\n errorId,\n isReadOnly,\n shouldShowError,\n shouldShowErrorMessage,\n conditionalClasses,\n contentSlotAvailable,\n isVertical,\n shouldShowSlotError,\n hasContentSlot,\n hasSlot,\n\n // Methods\n onInput,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./radio-group.scss\" />\n"],"names":["BentoRadioButtonStateClass","BentoRadioButtonStateClass2","BentoRadioGroupVariant","BentoRadioGroupVariant2","BentoRadioGroupEvent","BentoRadioGroupEvent2","_sfc_main$1","defineComponent","BentoTypography","props","slots","emit","value","toRefs","radioButtonId","generateUid","descriptionId","defaultSlotValue","getSlotText","descriptionSlotValue","useDefaultSlotValidator","conditionalClassContainer","computed","conditionalClassInput","ariaLabel","useAriaLabel","ariaInvalid","isChecked","onChange","onClick","event","useHasSlot","openBlock","createElementBlock","normalizeClass","_ctx","createElementVNode","_cache","args","_hoisted_1$1","createCommentVNode","createBlock","_component_bento_typography","_sfc_main","ControlsGroup","ErrorMessage","RadioButton","inputValue","toRef","errorId","isReadOnly","useFormLayoutFieldLoading","hasSlot","shouldShowError","shouldShowErrorMessage","conditionalClasses","isVertical","hasContentSlot","contentSlotAvailable","shouldShowSlotError","onInput","deprecate","watch","newVal","_hoisted_1","createVNode","_component_controls_group","Fragment","renderList","item","_component_radio_button","createSlots","withCtx","_component_error_message"],"mappings":";;;;;;;;;;;;AAAY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,WAAA,YACAA,EAAA,WAAA,YACAA,EAAA,QAAA,SAHQA,IAAAD,KAAA,CAAA,CAAA,GCGAE,IAAA,kBAAAC,OACRA,EAAA,aAAA,cACAA,EAAA,WAAA,YAFQA,IAAAD,KAAA,CAAA,CAAA,GAgBAE,IAAA,kBAAAC,OACRA,EAAA,SAAA,sBACAA,EAAA,QAAA,SAFQA,IAAAD,KAAA,CAAA,CAAA;ACqDR,MAAAE,IAAAC,EAAA;AAAA,EAA+B,MAAA;AAAA,EACrB,YAAA,EAAA,iBAAAC,EAAA;AAAA,EACwB,OAAA;AAAA;AAAA;AAAA;AAAA,IACvB,UAAA;AAAA,MAIO,MAAA;AAAA,MACA,SAAA;AAAA,IACG;AAAA;AAAA;AAAA;AAAA,IACb,UAAA;AAAA,MAIU,MAAA;AAAA,MACA,SAAA;AAAA,IACG;AAAA;AAAA;AAAA;AAAA;AA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AAAlC,EAAA;AAAA,UACG,OAAAkC,EAAA;AAAA,UACA,UAAAlC,EAAA,YAAAkC,EAAA;AAAA,UACC,UAAAlC,EAAA,cAAAkC,EAAA;AAAA,UACS,aAAAlC,EAAA,mBAAAkC,EAAA;AAAA,UAEL,uBAAAlC,EAAA;AAAA,QAAA,GAAAoC,EAAA;AAAA;;;UACA,GAAA;AAAA,QAAA,GAAA;AAAA;;;;;;UACA,IAAA;AAAA;YACZ,MAAA;AAAA,YAAA,IAAAC,EAAA,MAAA;AAAA;;;;;;MAKF,GAAA;AAAA,IAAA,GAAA,GAAA,CAAA,oBAAA,SAAA,eAAA,YAAA,QAAA,SAAA,YAAA,YAAA,cAAA,cAAA,CAAA;AAAA,IAIRrC,EAAA,0BAAAH,EAAA,GAAAS,EAAAgC,GAAA;AAAA,MAHc,KAAA;AAAA,MACX,IAAAtC,EAAA;AAAA,MACK,iBAAAA,EAAA;AAAA;;;;;"}
1
+ {"version":3,"file":"radio-group.js","sources":["../../vue2/src/components/radio-group/components/radio-button/radio-button.types.ts","../../vue2/src/components/radio-group/radio-group.types.ts","../../vue2/src/components/radio-group/components/radio-button/radio-button.vue","../../vue2/src/components/radio-group/radio-group.vue"],"sourcesContent":["export enum BentoRadioButtonStateClass {\n DISABLED = 'disabled',\n READONLY = 'readonly',\n ERROR = 'error',\n}\n","/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoRadioGroupVariant {\n HORIZONTAL = 'horizontal',\n VERTICAL = 'vertical',\n}\n\nexport interface BentoRadioGroupItem {\n value: string | number;\n label: string;\n description?: string;\n disabled?: boolean;\n readonly?: boolean;\n hasError?: boolean;\n}\n\nexport type BentoRadioGroupItems = Array<BentoRadioGroupItem>;\n\nexport enum BentoRadioGroupEvent {\n UPDATE = 'update:model-value',\n INPUT = 'input',\n}\n","<template>\n <div class=\"b-radio-button\" data-testid=\"radio-button-container\" :class=\"conditionalClassContainer\">\n <input\n :id=\"radioButtonId\"\n :aria-checked=\"isChecked\"\n :aria-label=\"ariaLabel\"\n :aria-invalid=\"ariaInvalid\"\n :aria-describedby=\"hasSlot('description') ? descriptionId : ''\"\n :checked=\"isChecked\"\n :disabled=\"disabled\"\n :aria-readonly=\"readonly ? readonly : undefined\"\n :value=\"value\"\n type=\"radio\"\n class=\"b-radio-button__input\"\n :class=\"conditionalClassInput\"\n role=\"radio\"\n @click=\"onClick\"\n @change=\"onChange\"\n />\n <label v-if=\"hasSlot('default')\" :for=\"radioButtonId\" class=\"b-radio-button__label-container\">\n <bento-typography v-if=\"hasSlot('default')\" class=\"b-radio-button__label\" el=\"span\" variant=\"body\">\n <slot></slot>\n </bento-typography>\n <bento-typography\n v-if=\"hasSlot('default') && hasSlot('description')\"\n :id=\"descriptionId\"\n class=\"b-radio-button__description\"\n el=\"span\"\n variant=\"body\"\n >\n <slot name=\"description\"></slot>\n </bento-typography>\n <bento-typography v-if=\"hasSlot('content') && isChecked\" class=\"b-radio-button__content\" el=\"div\">\n <slot name=\"content\"></slot>\n </bento-typography>\n </label>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { BentoTypography } from '@/components/typography';\n import type { HTMLAttributes } from 'vue/types/jsx';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n import { generateUid } from '@/utils/ts/unique-id';\n import { computed, ComputedRef, defineComponent, toRefs } from 'vue';\n import { useDefaultSlotValidator, useHasSlot } from '@/composables';\n import { BentoRadioButtonStateClass } from './radio-button.types';\n import { BentoRadioGroupEvent } from '../../radio-group.types';\n import { getSlotText } from '@/utils/ts/get-slot-text';\n\n /**\n * Radio buttons are used when two or more options are mutually exclusive,\n * the user can only select a single option from a list of pre-defined options.\n * The label tag area is also clickable.\n * Only to be used internally.\n *\n * @usage\n * import { RadioButton } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { RadioButton },\n * template: `\n * <radio-button\n * disabled\n * value=\"inputRadio\"\n * >\n * Label text\n * <template #description>Description text below label</template>\n * </radio-button>\n * `,\n * }\n */\n export default defineComponent({\n name: 'radio-button',\n components: { BentoTypography },\n props: {\n /**\n * Disable the radio button (optional)\n */\n disabled: {\n type: Boolean,\n default: false,\n },\n /**\n * Shows radio-button in error state (optional)\n */\n hasError: {\n type: Boolean,\n default: false,\n },\n /**\n * This property should not be used directly.\n * It will be used by v-model directive on radio component.\n */\n modelValue: {\n type: [String, Number],\n default: null,\n },\n /**\n * Sets the radio button to readonly (optional)\n */\n readonly: {\n type: Boolean,\n default: false,\n },\n /**\n * Indicates the value of the input that will be returned when it's checked\n */\n value: {\n type: [String, Number],\n required: true,\n },\n },\n emits: [BentoRadioGroupEvent.UPDATE],\n setup(props, { slots, emit }) {\n const { value } = toRefs(props);\n const radioButtonId = generateUid('radio-button');\n const descriptionId = generateUid('description');\n\n const defaultSlotValue = getSlotText(slots)('default');\n const descriptionSlotValue = getSlotText(slots)('description');\n\n useDefaultSlotValidator('radio-button', slots.default, slots.description);\n\n const conditionalClassContainer = computed(() => ({\n [`b-radio-button--${BentoRadioButtonStateClass.DISABLED}`]: props.disabled,\n [`b-radio-button--${BentoRadioButtonStateClass.READONLY}`]: props.readonly,\n }));\n const conditionalClassInput = computed(() => ({\n [`b-radio-button__input--${BentoRadioButtonStateClass.ERROR}`]: props.hasError,\n }));\n\n const ariaLabel = useAriaLabel({\n ariaLabel: getSlotText(slots)('default'),\n label: value.value as string,\n });\n const ariaInvalid = computed<HTMLAttributes['aria-invalid']>(() => props.hasError);\n\n const isChecked: ComputedRef<boolean> = computed(() => props.value === props.modelValue);\n\n const onChange = () => {\n if (!props.disabled && !props.readonly) {\n emit(BentoRadioGroupEvent.UPDATE, props.value);\n }\n };\n\n // readonly attr doesn't work with radio button, so we need to manually ignore the click instead\n const onClick = event => {\n if (props.readonly) {\n event.preventDefault();\n }\n };\n\n return {\n // Values\n ariaLabel,\n ariaInvalid,\n isChecked,\n defaultSlotValue,\n descriptionSlotValue,\n conditionalClassContainer,\n conditionalClassInput,\n radioButtonId,\n descriptionId,\n\n // Methods\n hasSlot: useHasSlot(slots),\n onChange,\n onClick,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./radio-button.scss\" />\n","<template>\n <div class=\"b-radio-group\">\n <controls-group\n class=\"b-radio-group__buttons\"\n :aria-describedby=\"shouldShowErrorMessage ? errorId : ''\"\n :component-name=\"COMPONENT_NAME\"\n :class=\"conditionalClasses\"\n :description=\"description\"\n :disabled=\"disabled\"\n :form=\"formId\"\n :label=\"label\"\n :optional=\"optional\"\n :required=\"required\"\n :hide-label=\"hideLabel\"\n :tooltip-text=\"tooltipText\"\n >\n <radio-button\n v-for=\"item in items\"\n :key=\"item.value\"\n :model-value=\"inputValue\"\n :value=\"item.value\"\n :disabled=\"disabled || item.disabled\"\n :readonly=\"isReadOnly || item.readonly\"\n :has-error=\"shouldShowError || item.hasError\"\n @update:model-value=\"onInput\"\n >\n {{ item.label }}\n <template v-if=\"item.description\" #description>{{ item.description }}</template>\n <template v-if=\"contentSlotAvailable\" #content>\n <slot name=\"content\"></slot>\n </template>\n </radio-button>\n </controls-group>\n <error-message\n v-if=\"shouldShowErrorMessage\"\n :id=\"errorId\"\n :error-message=\"errorMessage\"\n class=\"b-radio-group__error-message\"\n />\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType, toRef, watch } from 'vue';\n import { ControlsGroup, ErrorMessage } from '@/components/internal';\n import RadioButton from './components/radio-button/radio-button.vue';\n import { useHasSlot } from '@/composables';\n import { generateUid } from '@/utils/ts/unique-id';\n import { deprecate } from '@/utils/ts/deprecate';\n import { BentoRadioGroupEvent, BentoRadioGroupItems, BentoRadioGroupVariant } from './radio-group.types';\n import { useFormLayoutFieldLoading } from '@/composables/use-form-layout-loading/use-form-layout-loading';\n\n /**\n * The name of the component to be used in the Vue devtools and console warnings.\n */\n const COMPONENT_NAME = 'bento-radio-group';\n\n /**\n * A radio group component should be used whenever it is necessary to use a set of radio buttons\n * This component conforms to the official WAI-ARIA guidelines for grouping controls: https://www.w3.org/WAI/tutorials/forms/grouping/\n *\n * import { BentoRadioGroup } from '@adyen/bento-vue2/';\n *\n * export default {\n * components: { BentoRadioGroup },\n * template: `\n * <bento-radio-group\n * label=\"Your group label\"\n * :items=\"[\n * { value: 1, label: 'Your label' },\n * { value: 2, label: 'Another label', description: 'Your descriptive sub label' },\n * ]\"\n * variant=\"horizontal\"\n * />\n * `\n * };\n */\n export default defineComponent({\n name: COMPONENT_NAME,\n components: { ControlsGroup, ErrorMessage, RadioButton },\n model: { prop: 'modelValue' },\n props: {\n /**\n * Descriptive supporting text visbile underneath the label.\n */\n description: { type: String, default: null },\n\n /**\n * If set to true, renders all radio-buttons in the group in a disabled state.\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * If string is passed, all radio-buttons in an error state and renders the string beneath the buttons.\n */\n errorMessage: { type: String, default: null },\n\n /**\n * The form id the radio group is associated with. Defaults to null, as a radio group can also be used standalone.\n */\n formId: { type: String, default: null },\n\n /**\n * If set to true, renders all radio-buttons in the group in an error state.\n *\n * @deprecated Use \"errorMessage\" prop instead\n */\n hasError: { type: Boolean, default: false },\n\n /**\n * Shows/hides the group label.\n */\n hideLabel: { type: Boolean, default: null },\n\n /**\n * The radio group's items.\n */\n items: { type: Array as PropType<BentoRadioGroupItems>, required: true },\n\n /**\n * The name associated with the group. Required for accessibility purposes.\n */\n label: { type: String, required: true },\n\n /**\n * Determines the initially selected value of the group. Corresponds to the BentoRadioButtonItem's value.\n * Defaults to no value selected.\n */\n modelValue: { type: [Number, String, null], default: null },\n\n /**\n * Indicates the field is optional.\n */\n optional: { type: Boolean, default: false },\n\n /**\n * If set to true, renders all radio-buttons in the group in a readonly state.\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * Indicates the field is required.\n */\n required: { type: Boolean, default: false },\n\n /**\n * Tooltip message.\n */\n tooltipText: { type: String, default: null },\n\n /**\n * The radio group's layout. It can be vertical or horizontal. Defaults to vertical.\n */\n variant: {\n type: String as PropType<BentoRadioGroupVariant | `${BentoRadioGroupVariant}`>,\n default: BentoRadioGroupVariant.VERTICAL,\n validator: (value: BentoRadioGroupVariant) => Object.values(BentoRadioGroupVariant).includes(value),\n },\n },\n emits: [BentoRadioGroupEvent.UPDATE, BentoRadioGroupEvent.INPUT],\n setup(props, { slots, emit }) {\n const inputValue = toRef(props, 'modelValue');\n const errorId = generateUid('error');\n const { isReadOnly } = useFormLayoutFieldLoading(toRef(props, 'readonly'));\n const hasSlot = useHasSlot(slots);\n\n const shouldShowError = computed(\n () => !props.disabled && !isReadOnly.value && (!!props.errorMessage || props.hasError)\n );\n const shouldShowErrorMessage = computed(() => !props.disabled && !isReadOnly.value && !!props.errorMessage);\n\n const conditionalClasses = computed(() => ({\n 'b-radio-group__buttons--horizontal': props.variant === BentoRadioGroupVariant.HORIZONTAL,\n }));\n\n // Content slot logic\n const isVertical = computed(() => props.variant === 'vertical');\n const hasContentSlot = computed(() => hasSlot('content'));\n const contentSlotAvailable = computed(() => hasContentSlot?.value && isVertical?.value);\n const shouldShowSlotError = computed(() => hasContentSlot?.value && !isVertical?.value);\n\n const onInput = value => {\n emit(BentoRadioGroupEvent.UPDATE, value);\n emit(BentoRadioGroupEvent.INPUT, value);\n };\n\n if (props.hasError) {\n deprecate(\n 'BentoRadioGroup \"hasError\" property',\n `Use the BentoRadioGroup \"errorMessage\" property instead to indicate that there is a modifier error.\n Having the field as \"undefined\" will hide/remove the error.\n <bento-radio-group errorMessage=\"Error message text\" />`,\n '2.0.0'\n );\n }\n\n watch(\n shouldShowSlotError,\n newVal => {\n if (newVal) {\n throw new Error('The content slot is only available for the vertical radio group layout');\n }\n },\n {\n immediate: true,\n }\n );\n\n return {\n // Values\n COMPONENT_NAME,\n inputValue,\n errorId,\n isReadOnly,\n shouldShowError,\n shouldShowErrorMessage,\n conditionalClasses,\n contentSlotAvailable,\n isVertical,\n shouldShowSlotError,\n hasContentSlot,\n hasSlot,\n\n // Methods\n onInput,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./radio-group.scss\" />\n"],"names":["BentoRadioButtonStateClass","BentoRadioButtonStateClass2","BentoRadioGroupVariant","BentoRadioGroupVariant2","BentoRadioGroupEvent","BentoRadioGroupEvent2","_sfc_main$1","defineComponent","BentoTypography","props","slots","emit","value","toRefs","radioButtonId","generateUid","descriptionId","defaultSlotValue","getSlotText","descriptionSlotValue","useDefaultSlotValidator","conditionalClassContainer","computed","conditionalClassInput","ariaLabel","useAriaLabel","ariaInvalid","isChecked","onChange","onClick","event","useHasSlot","openBlock","createElementBlock","normalizeClass","_ctx","createElementVNode","_cache","args","_hoisted_1$1","createCommentVNode","createBlock","_component_bento_typography","COMPONENT_NAME","_sfc_main","ControlsGroup","ErrorMessage","RadioButton","inputValue","toRef","errorId","isReadOnly","useFormLayoutFieldLoading","hasSlot","shouldShowError","shouldShowErrorMessage","conditionalClasses","isVertical","hasContentSlot","contentSlotAvailable","shouldShowSlotError","onInput","deprecate","watch","newVal","_hoisted_1","createVNode","_component_controls_group","Fragment","renderList","item","_component_radio_button","createSlots","withCtx","_component_error_message"],"mappings":";;;;;;;;;;;;AAAY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,WAAA,YACAA,EAAA,WAAA,YACAA,EAAA,QAAA,SAHQA,IAAAD,KAAA,CAAA,CAAA,GCGAE,IAAA,kBAAAC,OACRA,EAAA,aAAA,cACAA,EAAA,WAAA,YAFQA,IAAAD,KAAA,CAAA,CAAA,GAgBAE,IAAA,kBAAAC,OACRA,EAAA,SAAA,sBACAA,EAAA,QAAA,SAFQA,IAAAD,KAAA,CAAA,CAAA;ACqDR,MAAAE,IAAAC,EAAA;AAAA,EAA+B,MAAA;AAAA,EACrB,YAAA,EAAA,iBAAAC,EAAA;AAAA,EACwB,OAAA;AAAA;AAAA;AAAA;AAAA,IACvB,UAAA;AAAA,MAIO,MAAA;AAAA,MACA,SAAA;AAAA,IACG;AAAA;AAAA;AAAA;AAAA,IACb,UAAA;AAAA,MAIU,MAAA;AAAA,MACA,SAAA;AAAA,IACG;AAAA;AAAA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mC,OACLtC,EAAA,GAAAS,EAAA8B,GAAA;AAAA,UAAuB,KAAAD,EAAA;AAAA,UAChB,eAAAnC,EAAA;AAAA,UACG,OAAAmC,EAAA;AAAA,UACA,UAAAnC,EAAA,YAAAmC,EAAA;AAAA,UACC,UAAAnC,EAAA,cAAAmC,EAAA;AAAA,UACS,aAAAnC,EAAA,mBAAAmC,EAAA;AAAA,UAEL,uBAAAnC,EAAA;AAAA,QAAA,GAAAqC,EAAA;AAAA;;;UACA,GAAA;AAAA,QAAA,GAAA;AAAA;;;;;;UACA,IAAA;AAAA;YACZ,MAAA;AAAA,YAAA,IAAAC,EAAA,MAAA;AAAA;;;;;;MAKF,GAAA;AAAA,IAAA,GAAA,GAAA,CAAA,oBAAA,kBAAA,SAAA,eAAA,YAAA,QAAA,SAAA,YAAA,YAAA,cAAA,cAAA,CAAA;AAAA,IAIRtC,EAAA,0BAAAH,EAAA,GAAAS,EAAAiC,GAAA;AAAA,MAHc,KAAA;AAAA,MACX,IAAAvC,EAAA;AAAA,MACK,iBAAAA,EAAA;AAAA;;;;;"}
@@ -2,11 +2,11 @@ import { defineComponent as v, ref as i, watch as y, openBlock as C, createEleme
2
2
  import { d as I } from "./chunks/debounce.b5ef6acf.js";
3
3
  import { u as E } from "./chunks/i18n.6c402773.js";
4
4
  import { BentoInputField as x } from "./input-field.js";
5
- import { S as P } from "./chunks/search.ade93bda.js";
6
- import { C as T } from "./chunks/cross-circle-fill.1abec1a2.js";
7
- import { _ as F } from "./chunks/_plugin-vue_export-helper.dad06003.js";
8
- import { u as O } from "./chunks/dropdown.63de9aac.js";
9
- import "./assets/index25.css";
5
+ import { S as F } from "./chunks/search.ade93bda.js";
6
+ import { C as P } from "./chunks/cross-circle-fill.1abec1a2.js";
7
+ import { _ as T } from "./chunks/_plugin-vue_export-helper.dad06003.js";
8
+ import { u as O } from "./chunks/dropdown.96431c25.js";
9
+ import "./assets/index33.css";
10
10
  var m = /* @__PURE__ */ ((e) => (e.CLEAR = "clear", e.ESCAPE = "escape-pressed", e.INPUT = "input", e.UPDATE = "update:search-term", e))(m || {}), k = /* @__PURE__ */ ((e) => (e.CLEAR = "search-clear", e.INPUT = "search-input", e.UPDATE = "update:search-term", e))(k || {});
11
11
  const h = {
12
12
  "en-US": {
@@ -71,7 +71,7 @@ const h = {
71
71
  onEscapePressed: d[0] || (d[0] = (w) => t(r(m).ESCAPE))
72
72
  }, g({
73
73
  defaultIconBefore: u(() => [
74
- o(r(P), {
74
+ o(r(F), {
75
75
  "svg-title": r(n)("search"),
76
76
  "aria-hidden": "true"
77
77
  }, null, 8, ["svg-title"])
@@ -89,7 +89,7 @@ const h = {
89
89
  onKeypress: p(c, ["enter"]),
90
90
  onKeyup: p(c, ["space"])
91
91
  }, [
92
- o(r(T), {
92
+ o(r(P), {
93
93
  "svg-title": r(n)("clearSearch")
94
94
  }, null, 8, ["svg-title"])
95
95
  ], 40, N)
@@ -100,7 +100,7 @@ const h = {
100
100
  ]));
101
101
  }
102
102
  });
103
- const G = /* @__PURE__ */ F(L, [["__scopeId", "data-v-0d0b35ee"]]);
103
+ const G = /* @__PURE__ */ T(L, [["__scopeId", "data-v-0d0b35ee"]]);
104
104
  export {
105
105
  G as BentoSearchBar,
106
106
  k as BentoSearchBarEvent,
@@ -0,0 +1,110 @@
1
+ import { defineComponent as v, inject as V, computed as C, openBlock as a, createElementBlock as n, normalizeClass as S, unref as s, createVNode as i, withCtx as m, createTextVNode as p, toDisplayString as f, createElementVNode as g, Fragment as h, renderList as N, ref as B, readonly as $, provide as A, createBlock as b } from "vue";
2
+ import { B as k } from "./chunks/index.09f7f1b5.js";
3
+ import { _ as y } from "./chunks/_plugin-vue_export-helper.dad06003.js";
4
+ import "./assets/index46.css";
5
+ const x = Symbol("secondary nav state"), E = {}, T = /* @__PURE__ */ v({
6
+ ...E,
7
+ __name: "secondary-nav-item",
8
+ props: {
9
+ label: null,
10
+ value: null
11
+ },
12
+ emits: ["click"],
13
+ setup(e, { emit: o }) {
14
+ const _ = e, { activeItemValue: t, updateActiveItemValue: r } = V(x), u = C(() => ({
15
+ "b-secondary-nav-item--active": t.value === _.value
16
+ })), c = (d) => {
17
+ o("click", d), r(_.value);
18
+ };
19
+ return (d, l) => (a(), n("button", {
20
+ class: S(["b-secondary-nav-item", s(u)]),
21
+ onClick: c
22
+ }, [
23
+ i(s(k), {
24
+ class: "b-secondary-nav-item__title",
25
+ variant: "body",
26
+ stronger: ""
27
+ }, {
28
+ default: m(() => [
29
+ p(f(e.label), 1)
30
+ ]),
31
+ _: 1
32
+ })
33
+ ], 2));
34
+ }
35
+ });
36
+ const I = /* @__PURE__ */ y(T, [["__scopeId", "data-v-aa44c602"]]), D = ["aria-label"], j = { class: "b-secondary-nav__list" }, w = {}, z = /* @__PURE__ */ v({
37
+ ...w,
38
+ __name: "secondary-nav-category",
39
+ props: {
40
+ label: null,
41
+ items: null
42
+ },
43
+ setup(e) {
44
+ return (o, _) => (a(), n("section", {
45
+ class: "b-secondary-nav-category",
46
+ "aria-label": e.label
47
+ }, [
48
+ i(s(k), {
49
+ el: "h1",
50
+ class: "b-secondary-nav-category__label",
51
+ variant: "caption",
52
+ stronger: ""
53
+ }, {
54
+ default: m(() => [
55
+ p(f(e.label), 1)
56
+ ]),
57
+ _: 1
58
+ }),
59
+ g("ul", j, [
60
+ (a(!0), n(h, null, N(e.items, (t) => (a(), n("li", {
61
+ key: t.value
62
+ }, [
63
+ i(s(I), {
64
+ label: t.label,
65
+ value: t.value
66
+ }, null, 8, ["label", "value"])
67
+ ]))), 128))
68
+ ])
69
+ ], 8, D));
70
+ }
71
+ });
72
+ const F = /* @__PURE__ */ y(z, [["__scopeId", "data-v-130510eb"]]), L = { class: "b-secondary-nav" }, O = { class: "b-secondary-nav__list" }, R = {}, Y = /* @__PURE__ */ v({
73
+ ...R,
74
+ __name: "secondary-nav",
75
+ props: {
76
+ items: null,
77
+ value: null
78
+ },
79
+ emits: ["change"],
80
+ setup(e, { emit: o }) {
81
+ const t = B(e.value), r = (c) => {
82
+ t.value = c, o("change", c);
83
+ }, u = {
84
+ activeItemValue: $(t),
85
+ updateActiveItemValue: r
86
+ };
87
+ return A(x, u), (c, d) => (a(), n("nav", L, [
88
+ g("ul", O, [
89
+ (a(!0), n(h, null, N(e.items, (l) => (a(), n("li", {
90
+ key: l.label
91
+ }, [
92
+ "items" in l ? (a(), b(s(F), {
93
+ key: 0,
94
+ label: l.label,
95
+ items: l.items
96
+ }, null, 8, ["label", "items"])) : (a(), b(s(I), {
97
+ key: 1,
98
+ label: l.label,
99
+ value: l.value
100
+ }, null, 8, ["label", "value"]))
101
+ ]))), 128))
102
+ ])
103
+ ]));
104
+ }
105
+ });
106
+ const J = /* @__PURE__ */ y(Y, [["__scopeId", "data-v-06c372b8"]]);
107
+ export {
108
+ J as BentoSecondaryNav
109
+ };
110
+ //# sourceMappingURL=secondary-nav.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"secondary-nav.js","sources":["../../vue2/src/components/secondary-nav/secondary-nav.keys.ts","../../vue2/src/components/secondary-nav/components/secondary-nav-item/secondary-nav-item.vue","../../vue2/src/components/secondary-nav/components/secondary-nav-category/secondary-nav-category.vue","../../vue2/src/components/secondary-nav/secondary-nav.vue"],"sourcesContent":["import { InjectionKey } from 'vue';\nimport { BentoSecondaryNavState } from './secondary-nav.types';\n\nexport const SECONDARY_NAV_STATE = Symbol('secondary nav state') as InjectionKey<BentoSecondaryNavState>;\n","<template>\n <button class=\"b-secondary-nav-item\" :class=\"conditionalClasses\" @click=\"onClick\">\n <bento-typography class=\"b-secondary-nav-item__title\" variant=\"body\" stronger>\n {{ label }}\n </bento-typography>\n </button>\n</template>\n\n<script lang=\"ts\" setup>\n import { SECONDARY_NAV_STATE } from '../../secondary-nav.keys';\n import { BentoTypography } from '@/components/typography';\n import { computed, inject } from 'vue';\n\n const { activeItemValue, updateActiveItemValue } = inject(SECONDARY_NAV_STATE);\n\n const props = defineProps<{\n /**\n * The display name of the navigation item\n */\n label: string;\n /**\n * The value of this item.\n */\n value: string;\n }>();\n\n const conditionalClasses = computed(() => ({\n 'b-secondary-nav-item--active': activeItemValue.value === props.value,\n }));\n\n const emit = defineEmits<{\n /**\n * Event emitted when this element is clicked\n */\n (e: 'click', clickEvent: MouseEvent): void;\n }>();\n\n const onClick = (e: MouseEvent) => {\n emit('click', e);\n updateActiveItemValue(props.value);\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * This component shouldn't be used directly. It is internally used by {@see BentoSecondaryNav}\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./secondary-nav-item.scss\" />\n","<template>\n <section class=\"b-secondary-nav-category\" :aria-label=\"label\">\n <bento-typography el=\"h1\" class=\"b-secondary-nav-category__label\" variant=\"caption\" stronger>{{\n label\n }}</bento-typography>\n <ul class=\"b-secondary-nav__list\">\n <li v-for=\"item in items\" :key=\"item.value\">\n <secondary-nav-item :label=\"item.label\" :value=\"item.value\" />\n </li>\n </ul>\n </section>\n</template>\n\n<script lang=\"ts\" setup>\n import { BentoTypography } from '@/components/typography';\n import { SecondaryNavItem } from '../secondary-nav-item';\n import { BentoSecondaryNavItemsItem } from '../../secondary-nav.types';\n\n defineProps<{\n /**\n * The display name of the category\n */\n label: string;\n /**\n * A list of {@see BentoSecondaryNavItemsItem} that belongs to this category\n */\n items: BentoSecondaryNavItemsItem[];\n }>();\n</script>\n\n<script lang=\"ts\">\n /**\n * This component shouldn't be used directly. It is internally used by {@see BentoSecondaryNav}\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./secondary-nav-category.scss\" />\n","<template>\n <nav class=\"b-secondary-nav\">\n <ul class=\"b-secondary-nav__list\">\n <li v-for=\"item in items\" :key=\"item.label\">\n <secondary-nav-category v-if=\"'items' in item\" :label=\"item.label\" :items=\"item.items\" />\n <secondary-nav-item v-else :label=\"item.label\" :value=\"item.value\" />\n </li>\n </ul>\n </nav>\n</template>\n\n<script setup lang=\"ts\">\n import { provide, readonly, ref } from 'vue';\n import { SecondaryNavItem } from './components/secondary-nav-item';\n import { SecondaryNavCategory } from './components/secondary-nav-category';\n import { SECONDARY_NAV_STATE } from './secondary-nav.keys';\n import { BentoSecondaryNavItems, BentoSecondaryNavState } from './secondary-nav.types';\n\n const props = defineProps<{\n /**\n * An array containing all the items on the nav. The array can have either {@see BentoSecondaryNavItemsCategory },\n * which is used to group different items or {@see BentoSecondaryNavItemsItem } if you don't need to group them.\n */\n items: BentoSecondaryNavItems;\n /**\n * The value of the selected item.\n */\n value?: string;\n }>();\n\n const emit = defineEmits<{\n /**\n * Emmited when the current selected item changes\n */\n (e: 'change', category: string): void;\n }>();\n\n const activeItemValue = ref(props.value);\n const updateActiveItemValue = (value: string) => {\n activeItemValue.value = value;\n emit('change', value);\n };\n\n // The component's state is inject on `secondary-nav-item` to determine the\n // current active item and to change its value\n const state: BentoSecondaryNavState = {\n activeItemValue: readonly(activeItemValue),\n updateActiveItemValue,\n };\n\n provide(SECONDARY_NAV_STATE, state);\n</script>\n\n<script lang=\"ts\">\n /**\n * Secondary Nav offers users a structured way to access information.\n * It also provides a clear hierarchy for users to understand and navigate through various information.\n *\n * @example\n * import { BentoSecondaryNav } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoSecondaryNav },\n * template: `\n * <bento-secondary-nav :value=\"value\" :items=\"items\" />\n * `,\n * setup() {\n * const value = ref(2) // Active item value\n * const items: BentoSecondaryNavItemInfo[] = [\n * { label: 'Option 1', value: 1 },\n * { label: 'Option 2', value: 2 },\n * ];\n * return { items, value };\n * }\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./secondary-nav.scss\" />\n"],"names":["SECONDARY_NAV_STATE","__default__$2","activeItemValue","updateActiveItemValue","inject","conditionalClasses","computed","props","onClick","e","emit","__default__$1","__default__","ref","value","state","readonly","provide"],"mappings":";;;;AAGa,MAAAA,IAAA,OAAA,qBAAA,GC4CTC,IAAA,CAAA;;;;;;;;;iBAlCA,EAAA,iBAAAC,GAAA,uBAAAC,EAAA,IAAAC,EAAAJ,CAAA,GAaAK,IAAAC,EAAA,OAAA;AAAA,MAA2C,gCAAAJ,EAAA,UAAAK,EAAA;AAAA,IACyB,EAAA,GAUpEC,IAAA,CAAAC,MAAA;AACI,MAAAC,EAAA,SAAAD,CAAA,GACAN,EAAAI,EAAA,KAAA;AAAA,IAAiC;;;;;;;;;;;;;;;;;;gICLrCI,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8IC0CAC,IAAA,CAAA;;;;;;;;;AAvCA,UAAAV,IAAAW,IAAA,KAAA,GACAV,IAAA,CAAAW,MAAA;AACI,MAAAZ,EAAA,QAAAY,GACAJ,EAAA,UAAAI,CAAA;AAAA,IAAoB,GAKxBC,IAAA;AAAA,MAAsC,iBAAAC,EAAAd,CAAA;AAAA,MACO,uBAAAC;AAAA,IACzC;AAGJ,WAAAc,EAAAjB,GAAAe,CAAA;;;;;;;;;;;;;;;;;;;;"}
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as B, ref as m, computed as b, resolveComponent as v, openBlock as r, createElementBlock as g, normalizeClass as w, createElementVNode as W, createBlock as $, createCommentVNode as y, createVNode as T, withCtx as A, createTextVNode as D, toDisplayString as N, toRef as U, toRefs as E, onMounted as q, resolveDirective as F, Fragment as R, renderList as P, withDirectives as z } from "vue";
2
- import { B as M } from "./chunks/index.75f3672e.js";
2
+ import { B as M } from "./chunks/index.09f7f1b5.js";
3
3
  import { g as O } from "./chunks/unique-id.a2a2b458.js";
4
4
  import { C as j } from "./chunks/checkmark.eb3c7a06.js";
5
5
  import { _ as L } from "./chunks/_plugin-vue_export-helper.dad06003.js";
6
- import { b as G } from "./chunks/tooltip.27c32d36.js";
6
+ import { b as G } from "./chunks/tooltip.785993dd.js";
7
7
  import { u as H } from "./chunks/i18n.6c402773.js";
8
8
  import { u as J } from "./chunks/aria-label.ac9651a5.js";
9
9
  import { o as K } from "./chunks/resize.a041304d.js";
10
- import "./assets/index42.css";
10
+ import "./assets/index35.css";
11
11
  const Q = B({
12
12
  name: "bento-segmented-control-button",
13
13
  components: { BentoTypography: M, CheckmarkIcon: j },
package/dist/sidepanel.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as H, ref as u, inject as x, onUnmounted as W, computed as r, watch as b, openBlock as E, createBlock as $, Transition as X, unref as s, withCtx as f, withDirectives as Z, createElementVNode as w, normalizeClass as B, createVNode as v, createCommentVNode as R, createTextVNode as ee, toDisplayString as ae, renderSlot as K, createElementBlock as V, vShow as te, nextTick as U, toRefs as se, provide as G, withKeys as le, withModifiers as ne } from "vue";
2
- import { a as j } from "./chunks/button.82ed953e.js";
3
- import { B as F } from "./chunks/index.75f3672e.js";
4
- import { F as ie } from "./chunks/footer-actions.cefaf1e2.js";
2
+ import { a as j } from "./chunks/button.623a46d2.js";
3
+ import { B as F } from "./chunks/index.09f7f1b5.js";
4
+ import { F as ie } from "./chunks/footer-actions.03015ba1.js";
5
5
  import { A as oe } from "./chunks/arrow-left.81a91b8f.js";
6
6
  import { u as J } from "./chunks/i18n.6c402773.js";
7
7
  import { _ as M } from "./chunks/_plugin-vue_export-helper.dad06003.js";
8
- import { B as ue } from "./chunks/index.4d2a13e1.js";
8
+ import { B as ue } from "./chunks/index.80078bf9.js";
9
9
  import { C as re } from "./chunks/cross.26509efc.js";
10
- import "./assets/index11.css";
10
+ import "./assets/index44.css";
11
11
  var h = /* @__PURE__ */ ((e) => (e.UPDATE_ACTIVE_PAGE = "update:active-page", e.UPDATE_IS_OPEN = "update:is-open", e))(h || {}), T = /* @__PURE__ */ ((e) => (e.TRANSITION_LEVEL_DEEPER = "b-sidepanel-page__animation--level-deeper", e.TRANSITION_LEVEL_UPPER = "b-sidepanel-page__animation--level-upper", e))(T || {});
12
12
  const Y = Symbol("sidepanel registerPage injection key"), z = Symbol("sidepanel config data injection key"), q = {
13
13
  "en-US": {
package/dist/status.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as n, computed as r, resolveComponent as a, openBlock as l, createElementBlock as c, createElementVNode as p, normalizeClass as _, createVNode as d, withCtx as i, renderSlot as u } from "vue";
2
- import { B as m } from "./chunks/index.75f3672e.js";
2
+ import { B as m } from "./chunks/index.09f7f1b5.js";
3
3
  import { _ as b } from "./chunks/_plugin-vue_export-helper.dad06003.js";
4
- import "./assets/index44.css";
4
+ import "./assets/index36.css";
5
5
  var t = /* @__PURE__ */ ((e) => (e.BLUE = "blue", e.GREEN = "green", e.GREY = "grey", e.ORANGE = "orange", e.RED = "red", e.YELLOW = "yellow", e))(t || {});
6
6
  const y = n({
7
7
  name: "bento-status",