@adyen/bento-vue3 1.27.0 → 1.28.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 (578) hide show
  1. package/dist/@types/components.d.ts +4 -0
  2. package/dist/@types/packages/vue2/src/components/dashed-underline/dashed-underline.vue.d.ts +91 -0
  3. package/dist/@types/packages/vue2/src/components/dashed-underline/index.d.ts +1 -0
  4. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-static-icon/data-grid-static-icon.d.ts +2 -0
  5. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-static-icon/data-grid-static-icon.types.d.ts +1 -0
  6. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-static-icon/data-grid-static-icon.vue.d.ts +65 -0
  7. package/dist/@types/packages/vue2/src/components/data-grid/components/index.d.ts +1 -0
  8. package/dist/@types/packages/vue2/src/components/data-grid/index.d.ts +1 -0
  9. package/dist/@types/packages/vue2/src/components/internal/avatar/avatar.vue.d.ts +38 -42
  10. package/dist/@types/packages/vue2/src/components/internal/radio-input/index.d.ts +2 -2
  11. package/dist/@types/packages/vue2/src/components/internal/radio-input/radio-input.vue.d.ts +1 -1
  12. package/dist/@types/packages/vue2/src/components/segmented-control/components/segmented-control-button/segmented-control-button.vue.d.ts +59 -85
  13. package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.types.d.ts +3 -0
  14. package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.vue.d.ts +48 -80
  15. package/dist/@types/packages/vue2/src/components/status/status.vue.d.ts +19 -16
  16. package/dist/@types/packages/vue2/src/index.d.ts +1 -0
  17. package/dist/accordion.js +3 -125
  18. package/dist/accordion.js.map +1 -1
  19. package/dist/action-bar.js +2 -186
  20. package/dist/action-bar.js.map +1 -1
  21. package/dist/alert.js +5 -181
  22. package/dist/alert.js.map +1 -1
  23. package/dist/assets/{index2.css → accordion-item.css} +1 -1
  24. package/dist/assets/{index5.css → action-bar.css} +1 -1
  25. package/dist/assets/base-modal.css +1 -1
  26. package/dist/assets/button.css +1 -1
  27. package/dist/assets/{index18.css → card.css} +1 -1
  28. package/dist/assets/checkbox-input.css +1 -1
  29. package/dist/assets/{index39.css → dashboard-section.css} +1 -1
  30. package/dist/assets/dashed-underline.css +1 -0
  31. package/dist/assets/{index49.css → data-grid-template.css} +1 -1
  32. package/dist/assets/{index21.css → data-grid.css} +1 -1
  33. package/dist/assets/dialog-page.css +1 -1
  34. package/dist/assets/dropdown-default-textbox.css +1 -1
  35. package/dist/assets/dropdown.css +1 -1
  36. package/dist/assets/filter-bar.css +1 -0
  37. package/dist/assets/link.css +1 -0
  38. package/dist/assets/listbox-option-tag.css +1 -1
  39. package/dist/assets/{index10.css → menu.css} +1 -1
  40. package/dist/assets/{index11.css → modal-fullscreen.css} +1 -1
  41. package/dist/assets/{index17.css → popover.css} +1 -1
  42. package/dist/assets/radio-input.css +1 -1
  43. package/dist/assets/segmented-control.css +1 -0
  44. package/dist/assets/selection-card-group.css +1 -0
  45. package/dist/assets/{index38.css → sidepanel.css} +1 -1
  46. package/dist/assets/status.css +1 -0
  47. package/dist/assets/toggle.css +1 -0
  48. package/dist/assets/tutorial.css +1 -0
  49. package/dist/avatar-image.js +1 -1
  50. package/dist/badge.js +13 -14
  51. package/dist/badge.js.map +1 -1
  52. package/dist/button.js +14 -89
  53. package/dist/button.js.map +1 -1
  54. package/dist/card.js +4 -203
  55. package/dist/card.js.map +1 -1
  56. package/dist/checkbox.js +8 -194
  57. package/dist/checkbox.js.map +1 -1
  58. package/dist/chunks/1-generic-use.CZhwP2Yc.js +5 -0
  59. package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +1 -0
  60. package/dist/chunks/1-generic-use.R6x8PEGA.js +5 -0
  61. package/dist/chunks/1-generic-use.R6x8PEGA.js.map +1 -0
  62. package/dist/chunks/2-generic-use.CNKjB4B7.js +5 -0
  63. package/dist/chunks/2-generic-use.CNKjB4B7.js.map +1 -0
  64. package/dist/chunks/2-generic-use.w0fUhovx.js +5 -0
  65. package/dist/chunks/2-generic-use.w0fUhovx.js.map +1 -0
  66. package/dist/chunks/3-generic-use.BLEzR04g.js +5 -0
  67. package/dist/chunks/3-generic-use.BLEzR04g.js.map +1 -0
  68. package/dist/chunks/3-generic-use.D3NFHgI4.js +5 -0
  69. package/dist/chunks/3-generic-use.D3NFHgI4.js.map +1 -0
  70. package/dist/chunks/4-generic-use.CULEpvgj.js +5 -0
  71. package/dist/chunks/4-generic-use.CULEpvgj.js.map +1 -0
  72. package/dist/chunks/4-generic-use.D82y3n39.js +5 -0
  73. package/dist/chunks/4-generic-use.D82y3n39.js.map +1 -0
  74. package/dist/chunks/{_plugin-vue_export-helper.dad06003.js → _plugin-vue_export-helper.CHgC5LLL.js} +1 -1
  75. package/dist/chunks/_plugin-vue_export-helper.CHgC5LLL.js.map +1 -0
  76. package/dist/chunks/accordion-item.BcfGYvjn.js +126 -0
  77. package/dist/chunks/accordion-item.BcfGYvjn.js.map +1 -0
  78. package/dist/chunks/action-bar.BvAtk-jI.js +188 -0
  79. package/dist/chunks/action-bar.BvAtk-jI.js.map +1 -0
  80. package/dist/chunks/adding-payment-methods.BJZLPxtM.js +5 -0
  81. package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +1 -0
  82. package/dist/chunks/adding-payment-methods.Dle8zt43.js +5 -0
  83. package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +1 -0
  84. package/dist/chunks/adyen-giving.Ffw_DlJK.js +5 -0
  85. package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +1 -0
  86. package/dist/chunks/adyen-giving.LiKHj_jY.js +5 -0
  87. package/dist/chunks/adyen-giving.LiKHj_jY.js.map +1 -0
  88. package/dist/chunks/alert.C0gIf7Ka.js +162 -0
  89. package/dist/chunks/alert.C0gIf7Ka.js.map +1 -0
  90. package/dist/chunks/{aria-label.ac9651a5.js → aria-label.CaUURpnB.js} +1 -1
  91. package/dist/chunks/{aria-label.ac9651a5.js.map → aria-label.CaUURpnB.js.map} +1 -1
  92. package/dist/chunks/avatar-image.DO4w_loj.js +61 -0
  93. package/dist/chunks/avatar-image.DO4w_loj.js.map +1 -0
  94. package/dist/chunks/{base-button.a0140a4c.js → base-button.ewkxHD6W.js} +24 -25
  95. package/dist/chunks/{base-button.a0140a4c.js.map → base-button.ewkxHD6W.js.map} +1 -1
  96. package/dist/chunks/{base-modal.4102f69d.js → base-modal.BgYlnM_Q.js} +81 -83
  97. package/dist/chunks/{base-modal.4102f69d.js.map → base-modal.BgYlnM_Q.js.map} +1 -1
  98. package/dist/chunks/{base-modal.keys.b08a6bdf.js → base-modal.keys.C2PQXcE2.js} +1 -1
  99. package/dist/chunks/{base-modal.keys.b08a6bdf.js.map → base-modal.keys.C2PQXcE2.js.map} +1 -1
  100. package/dist/chunks/{button-actions-with-menu.4f311411.js → button-actions-with-menu.C14zvgVo.js} +14 -15
  101. package/dist/chunks/{button-actions-with-menu.4f311411.js.map → button-actions-with-menu.C14zvgVo.js.map} +1 -1
  102. package/dist/chunks/{button-actions.82163994.js → button-actions.hGhRdgC2.js} +32 -33
  103. package/dist/chunks/{button-actions.82163994.js.map → button-actions.hGhRdgC2.js.map} +1 -1
  104. package/dist/chunks/{button.ae4760cd.js → button.DoqHEvPh.js} +34 -35
  105. package/dist/chunks/{button.ae4760cd.js.map → button.DoqHEvPh.js.map} +1 -1
  106. package/dist/chunks/{calendar.a9c5a68c.js → calendar.CwULNbSL.js} +285 -326
  107. package/dist/chunks/{calendar.a9c5a68c.js.map → calendar.CwULNbSL.js.map} +1 -1
  108. package/dist/chunks/card.C7zLKdcy.js +205 -0
  109. package/dist/chunks/card.C7zLKdcy.js.map +1 -0
  110. package/dist/chunks/checkbox-group.BcT-eZ2p.js +192 -0
  111. package/dist/chunks/checkbox-group.BcT-eZ2p.js.map +1 -0
  112. package/dist/chunks/{checkbox-input.99336948.js → checkbox-input.CR1lHf7f.js} +43 -43
  113. package/dist/chunks/{checkbox-input.99336948.js.map → checkbox-input.CR1lHf7f.js.map} +1 -1
  114. package/dist/chunks/{checkbox.9c30c07b.js → checkbox.xjIFibII.js} +38 -39
  115. package/dist/chunks/{checkbox.9c30c07b.js.map → checkbox.xjIFibII.js.map} +1 -1
  116. package/dist/chunks/checkmark-circle-fill.D29b-JWj.js +44 -0
  117. package/dist/chunks/{checkmark-circle-fill.c45a999d.js.map → checkmark-circle-fill.D29b-JWj.js.map} +1 -1
  118. package/dist/chunks/{checkmark-small.c79220d9.js → checkmark-small.BCeGkayS.js} +9 -9
  119. package/dist/chunks/{checkmark-small.c79220d9.js.map → checkmark-small.BCeGkayS.js.map} +1 -1
  120. package/dist/chunks/{chevron-left.4ee92950.js → chevron-left.4JHuWe7i.js} +17 -17
  121. package/dist/chunks/{chevron-left.4ee92950.js.map → chevron-left.4JHuWe7i.js.map} +1 -1
  122. package/dist/chunks/{chevron-up.638a9f34.js → chevron-up.5-KtIp8i.js} +18 -18
  123. package/dist/chunks/{chevron-up.638a9f34.js.map → chevron-up.5-KtIp8i.js.map} +1 -1
  124. package/dist/chunks/click-outside.DABh6NLr.js +23 -0
  125. package/dist/chunks/click-outside.DABh6NLr.js.map +1 -0
  126. package/dist/chunks/code-snippet.e8bxDBCO.js +1052 -0
  127. package/dist/chunks/code-snippet.e8bxDBCO.js.map +1 -0
  128. package/dist/chunks/{controls-group.8357e3fd.js → controls-group.DWu8NqKL.js} +17 -18
  129. package/dist/chunks/{controls-group.8357e3fd.js.map → controls-group.DWu8NqKL.js.map} +1 -1
  130. package/dist/chunks/{copy.60ee6ac3.js → copy.BhO7oRgC.js} +39 -40
  131. package/dist/chunks/{copy.60ee6ac3.js.map → copy.BhO7oRgC.js.map} +1 -1
  132. package/dist/chunks/{country.types.002caff2.js → country.types.Br0AjxGy.js} +5 -5
  133. package/dist/chunks/{country.types.002caff2.js.map → country.types.Br0AjxGy.js.map} +1 -1
  134. package/dist/chunks/country.vX94O3uR.js +98 -0
  135. package/dist/chunks/country.vX94O3uR.js.map +1 -0
  136. package/dist/chunks/{cross-circle-fill.1abec1a2.js → cross-circle-fill.vLaelNTN.js} +11 -11
  137. package/dist/chunks/{cross-circle-fill.1abec1a2.js.map → cross-circle-fill.vLaelNTN.js.map} +1 -1
  138. package/dist/chunks/cross-small.48UCoOqB.js +29 -0
  139. package/dist/chunks/{cross-small.b85406fe.js.map → cross-small.48UCoOqB.js.map} +1 -1
  140. package/dist/chunks/cross.BlL0FyHo.js +29 -0
  141. package/dist/chunks/{cross.26509efc.js.map → cross.BlL0FyHo.js.map} +1 -1
  142. package/dist/chunks/currency.CgVd9fQN.js +121 -0
  143. package/dist/chunks/currency.CgVd9fQN.js.map +1 -0
  144. package/dist/chunks/dashboard-section.DKeDjvkB.js +167 -0
  145. package/dist/chunks/dashboard-section.DKeDjvkB.js.map +1 -0
  146. package/dist/chunks/dashed-underline.DGTW7Y_-.js +79 -0
  147. package/dist/chunks/dashed-underline.DGTW7Y_-.js.map +1 -0
  148. package/dist/chunks/data-grid-template.6Nls-D4o.js +89 -0
  149. package/dist/chunks/data-grid-template.6Nls-D4o.js.map +1 -0
  150. package/dist/chunks/{data-grid-template.keys.a819a991.js → data-grid-template.keys.2_AkxuNT.js} +1 -1
  151. package/dist/chunks/{data-grid-template.keys.a819a991.js.map → data-grid-template.keys.2_AkxuNT.js.map} +1 -1
  152. package/dist/chunks/data-grid.BwfZhc09.js +2733 -0
  153. package/dist/chunks/data-grid.BwfZhc09.js.map +1 -0
  154. package/dist/chunks/{date-input.9186a0bf.js → date-input.BqBdAO1E.js} +1 -1
  155. package/dist/chunks/{date-input.9186a0bf.js.map → date-input.BqBdAO1E.js.map} +1 -1
  156. package/dist/chunks/date-picker.CoPmllNh.js +273 -0
  157. package/dist/chunks/date-picker.CoPmllNh.js.map +1 -0
  158. package/dist/chunks/{index.2d7b4511.js → date-range-picker.CiwDo2jW.js} +217 -219
  159. package/dist/chunks/date-range-picker.CiwDo2jW.js.map +1 -0
  160. package/dist/chunks/{index.f9d081d2.js → date.2ndGvIGE.js} +36 -41
  161. package/dist/chunks/date.2ndGvIGE.js.map +1 -0
  162. package/dist/chunks/{debounce.b5ef6acf.js → debounce.DUTu11PS.js} +1 -1
  163. package/dist/chunks/{debounce.b5ef6acf.js.map → debounce.DUTu11PS.js.map} +1 -1
  164. package/dist/chunks/{dialog-page.cb6ce9b6.js → dialog-page.BLqqR73w.js} +48 -49
  165. package/dist/chunks/{dialog-page.cb6ce9b6.js.map → dialog-page.BLqqR73w.js.map} +1 -1
  166. package/dist/chunks/divider.CnwfddJD.js +22 -0
  167. package/dist/chunks/divider.CnwfddJD.js.map +1 -0
  168. package/dist/chunks/{dropdown-default-textbox.cda0798f.js → dropdown-default-textbox.-Oy2eT40.js} +75 -77
  169. package/dist/chunks/{dropdown-default-textbox.cda0798f.js.map → dropdown-default-textbox.-Oy2eT40.js.map} +1 -1
  170. package/dist/chunks/dropdown-tag.C-LxVWlt.js +201 -0
  171. package/dist/chunks/dropdown-tag.C-LxVWlt.js.map +1 -0
  172. package/dist/chunks/{dropdown.0ae3b842.js → dropdown.CxBlK83Q.js} +237 -239
  173. package/dist/chunks/dropdown.CxBlK83Q.js.map +1 -0
  174. package/dist/chunks/empty-state.BBxgpI-D.js +185 -0
  175. package/dist/chunks/empty-state.BBxgpI-D.js.map +1 -0
  176. package/dist/chunks/{error-message.d2bdeb80.js → error-message.DyjHMyEZ.js} +30 -32
  177. package/dist/chunks/{error-message.d2bdeb80.js.map → error-message.DyjHMyEZ.js.map} +1 -1
  178. package/dist/chunks/events.CMzGybJJ.js +47 -0
  179. package/dist/chunks/{events.f14a214b.js.map → events.CMzGybJJ.js.map} +1 -1
  180. package/dist/chunks/filter-bar.U2ZcPmSU.js +2775 -0
  181. package/dist/chunks/filter-bar.U2ZcPmSU.js.map +1 -0
  182. package/dist/chunks/{fixed-scroller.7b42cb1e.js → fixed-scroller.DV7HtKDr.js} +20 -21
  183. package/dist/chunks/{fixed-scroller.7b42cb1e.js.map → fixed-scroller.DV7HtKDr.js.map} +1 -1
  184. package/dist/chunks/{index.9d7fb316.js → focus-trap.CwkbHfT8.js} +20 -20
  185. package/dist/chunks/focus-trap.CwkbHfT8.js.map +1 -0
  186. package/dist/chunks/{footer-actions.64f6f5d8.js → footer-actions.D9nQFagi.js} +20 -21
  187. package/dist/chunks/{footer-actions.64f6f5d8.js.map → footer-actions.D9nQFagi.js.map} +1 -1
  188. package/dist/chunks/form-layout-title.4Gz8-dJv.js +204 -0
  189. package/dist/chunks/form-layout-title.4Gz8-dJv.js.map +1 -0
  190. package/dist/chunks/{form-layout.types.a7a1438d.js → form-layout.types.D3EKzbE7.js} +1 -1
  191. package/dist/chunks/{form-layout.types.a7a1438d.js.map → form-layout.types.D3EKzbE7.js.map} +1 -1
  192. package/dist/chunks/{get-slot-text.bead058f.js → get-slot-text.D5WBGjic.js} +1 -1
  193. package/dist/chunks/{get-slot-text.bead058f.js.map → get-slot-text.D5WBGjic.js.map} +1 -1
  194. package/dist/chunks/{grid-layout.c2fe3057.js → grid-layout.CqLbbEzI.js} +15 -15
  195. package/dist/chunks/{grid-layout.c2fe3057.js.map → grid-layout.CqLbbEzI.js.map} +1 -1
  196. package/dist/chunks/header.Cr7115vM.js +307 -0
  197. package/dist/chunks/header.Cr7115vM.js.map +1 -0
  198. package/dist/chunks/{i18n.f7e6533e.js → i18n.DY5YXG5f.js} +46 -89
  199. package/dist/chunks/{i18n.f7e6533e.js.map → i18n.DY5YXG5f.js.map} +1 -1
  200. package/dist/chunks/image.0KzfycGE.js +78 -0
  201. package/dist/chunks/image.0KzfycGE.js.map +1 -0
  202. package/dist/chunks/{index.fdf12170.js → index.B_EJflcs.js} +2 -2
  203. package/dist/chunks/{index.fdf12170.js.map → index.B_EJflcs.js.map} +1 -1
  204. package/dist/chunks/{index.f55fdc32.js → index.B_UZQ6qF.js} +209 -243
  205. package/dist/chunks/{index.f55fdc32.js.map → index.B_UZQ6qF.js.map} +1 -1
  206. package/dist/chunks/{index.fedbb4c2.js → index.Dytpif0G.js} +2 -2
  207. package/dist/chunks/{index.fedbb4c2.js.map → index.Dytpif0G.js.map} +1 -1
  208. package/dist/chunks/{index.d80206ed.js → index.Z84QE0E2.js} +2 -2
  209. package/dist/chunks/{index.d80206ed.js.map → index.Z84QE0E2.js.map} +1 -1
  210. package/dist/chunks/{index.86453263.js → index.xqFSZOAb.js} +2 -2
  211. package/dist/chunks/{index.86453263.js.map → index.xqFSZOAb.js.map} +1 -1
  212. package/dist/chunks/info-icon.DvL1e5Iu.js +45 -0
  213. package/dist/chunks/info-icon.DvL1e5Iu.js.map +1 -0
  214. package/dist/chunks/{info.550f9511.js → info.CNegCnli.js} +16 -16
  215. package/dist/chunks/{info.550f9511.js.map → info.CNegCnli.js.map} +1 -1
  216. package/dist/chunks/input-field.iH1ICJkQ.js +344 -0
  217. package/dist/chunks/input-field.iH1ICJkQ.js.map +1 -0
  218. package/dist/chunks/internal-error.BLZodVBE.js +5 -0
  219. package/dist/chunks/internal-error.BLZodVBE.js.map +1 -0
  220. package/dist/chunks/internal-error.BmrwJFpR.js +5 -0
  221. package/dist/chunks/internal-error.BmrwJFpR.js.map +1 -0
  222. package/dist/chunks/{keyboard-navigation.bbc3d15c.js → keyboard-navigation.Clz1jOaA.js} +2 -2
  223. package/dist/chunks/{keyboard-navigation.bbc3d15c.js.map → keyboard-navigation.Clz1jOaA.js.map} +1 -1
  224. package/dist/chunks/link.DeNN3Amu.js +111 -0
  225. package/dist/chunks/link.DeNN3Amu.js.map +1 -0
  226. package/dist/chunks/listbox-option-tag.Bv4-hXnG.js +94 -0
  227. package/dist/chunks/listbox-option-tag.Bv4-hXnG.js.map +1 -0
  228. package/dist/chunks/{loading-button.6b81b546.js → loading-button.BI32pZiW.js} +19 -20
  229. package/dist/chunks/{loading-button.6b81b546.js.map → loading-button.BI32pZiW.js.map} +1 -1
  230. package/dist/chunks/loading-indicator.BFMEf39U.js +44 -0
  231. package/dist/chunks/loading-indicator.BFMEf39U.js.map +1 -0
  232. package/dist/chunks/{index.6bb6f38c.js → menu.DN-xhDQU.js} +80 -82
  233. package/dist/chunks/menu.DN-xhDQU.js.map +1 -0
  234. package/dist/chunks/modal-fullscreen.CeogBGfr.js +264 -0
  235. package/dist/chunks/modal-fullscreen.CeogBGfr.js.map +1 -0
  236. package/dist/chunks/{modal-fullscreen.keys.b9f31632.js → modal-fullscreen.keys.CMba3hYp.js} +1 -1
  237. package/dist/chunks/{modal-fullscreen.keys.b9f31632.js.map → modal-fullscreen.keys.CMba3hYp.js.map} +1 -1
  238. package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.BBef1Rl9.js +495 -0
  239. package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.BBef1Rl9.js.map +1 -0
  240. package/dist/chunks/no-results-found.Bg_ZcEid.js +5 -0
  241. package/dist/chunks/no-results-found.Bg_ZcEid.js.map +1 -0
  242. package/dist/chunks/no-results-found.BqvYsBR6.js +5 -0
  243. package/dist/chunks/no-results-found.BqvYsBR6.js.map +1 -0
  244. package/dist/chunks/notifications-cleared.BMZk37uf.js +5 -0
  245. package/dist/chunks/notifications-cleared.BMZk37uf.js.map +1 -0
  246. package/dist/chunks/notifications-cleared.C7W9ZXY7.js +5 -0
  247. package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +1 -0
  248. package/dist/chunks/{on-click-outside.3e0c3e2a.js → on-click-outside.CcNG5w7_.js} +1 -1
  249. package/dist/chunks/{on-click-outside.3e0c3e2a.js.map → on-click-outside.CcNG5w7_.js.map} +1 -1
  250. package/dist/chunks/page-not-found.COJLPVaU.js +5 -0
  251. package/dist/chunks/page-not-found.COJLPVaU.js.map +1 -0
  252. package/dist/chunks/page-not-found.DWW6W-PZ.js +5 -0
  253. package/dist/chunks/page-not-found.DWW6W-PZ.js.map +1 -0
  254. package/dist/chunks/pagination.BwG1MF4j.js +633 -0
  255. package/dist/chunks/pagination.BwG1MF4j.js.map +1 -0
  256. package/dist/chunks/{payment-method.d5595a7c.js → payment-method.NCItxw1D.js} +26 -27
  257. package/dist/chunks/{payment-method.d5595a7c.js.map → payment-method.NCItxw1D.js.map} +1 -1
  258. package/dist/chunks/payment-method.types.CJKfZQN5.js +5 -0
  259. package/dist/chunks/payment-method.types.CJKfZQN5.js.map +1 -0
  260. package/dist/chunks/planned-maintenance.C61sWB9h.js +5 -0
  261. package/dist/chunks/planned-maintenance.C61sWB9h.js.map +1 -0
  262. package/dist/chunks/planned-maintenance.jmWYTdet.js +5 -0
  263. package/dist/chunks/planned-maintenance.jmWYTdet.js.map +1 -0
  264. package/dist/chunks/{index.a001a0a8.js → popover.DRb2GW7t.js} +48 -49
  265. package/dist/chunks/popover.DRb2GW7t.js.map +1 -0
  266. package/dist/chunks/{index.6295e754.js → popper-container.B76aE-3-.js} +180 -182
  267. package/dist/chunks/popper-container.B76aE-3-.js.map +1 -0
  268. package/dist/chunks/radio-group.B9HCffiZ.js +296 -0
  269. package/dist/chunks/radio-group.B9HCffiZ.js.map +1 -0
  270. package/dist/chunks/{radio-input.1dd15424.js → radio-input.BEzK-fgR.js} +13 -14
  271. package/dist/chunks/radio-input.BEzK-fgR.js.map +1 -0
  272. package/dist/chunks/referrals.BvtT-kQS.js +5 -0
  273. package/dist/chunks/referrals.BvtT-kQS.js.map +1 -0
  274. package/dist/chunks/referrals.aX8WZigH.js +5 -0
  275. package/dist/chunks/referrals.aX8WZigH.js.map +1 -0
  276. package/dist/chunks/{refresh.bd60f6a8.js → refresh.BfxRdaQb.js} +12 -12
  277. package/dist/chunks/{refresh.bd60f6a8.js.map → refresh.BfxRdaQb.js.map} +1 -1
  278. package/dist/chunks/{resize.a041304d.js → resize.Bqks3WUm.js} +1 -1
  279. package/dist/chunks/{resize.a041304d.js.map → resize.Bqks3WUm.js.map} +1 -1
  280. package/dist/chunks/search-bar.DxskyM4e.js +107 -0
  281. package/dist/chunks/search-bar.DxskyM4e.js.map +1 -0
  282. package/dist/chunks/{search.ade93bda.js → search.0lh99z1F.js} +15 -15
  283. package/dist/chunks/{search.ade93bda.js.map → search.0lh99z1F.js.map} +1 -1
  284. package/dist/chunks/secondary-nav.D66nxbU-.js +112 -0
  285. package/dist/chunks/secondary-nav.D66nxbU-.js.map +1 -0
  286. package/dist/chunks/segmented-control.NnFfAdTq.js +142 -0
  287. package/dist/chunks/segmented-control.NnFfAdTq.js.map +1 -0
  288. package/dist/chunks/segmented-control.types.BHRLV8KU.js +5 -0
  289. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -0
  290. package/dist/chunks/selection-card-group.C-YLePO4.js +385 -0
  291. package/dist/chunks/selection-card-group.C-YLePO4.js.map +1 -0
  292. package/dist/chunks/sidepanel.B-LtA15e.js +230 -0
  293. package/dist/chunks/sidepanel.B-LtA15e.js.map +1 -0
  294. package/dist/chunks/{sidepanel.keys.1ed8a57c.js → sidepanel.keys.R0DKQuYx.js} +1 -1
  295. package/dist/chunks/{sidepanel.keys.1ed8a57c.js.map → sidepanel.keys.R0DKQuYx.js.map} +1 -1
  296. package/dist/chunks/status.types.Bqdcr1WO.js +42 -0
  297. package/dist/chunks/status.types.Bqdcr1WO.js.map +1 -0
  298. package/dist/chunks/step.CVoaYmVZ.js +284 -0
  299. package/dist/chunks/step.CVoaYmVZ.js.map +1 -0
  300. package/dist/chunks/structured-list-item.DQiPKhOI.js +101 -0
  301. package/dist/chunks/structured-list-item.DQiPKhOI.js.map +1 -0
  302. package/dist/chunks/success.DhioLvPD.js +5 -0
  303. package/dist/chunks/success.DhioLvPD.js.map +1 -0
  304. package/dist/chunks/success.nNwxJRBS.js +5 -0
  305. package/dist/chunks/success.nNwxJRBS.js.map +1 -0
  306. package/dist/chunks/summary-grid-item-custom.B941Kdvq.js +720 -0
  307. package/dist/chunks/summary-grid-item-custom.B941Kdvq.js.map +1 -0
  308. package/dist/chunks/{summary-grid.keys.1d1028c2.js → summary-grid.keys.BBbFrFGF.js} +1 -1
  309. package/dist/chunks/{summary-grid.keys.1d1028c2.js.map → summary-grid.keys.BBbFrFGF.js.map} +1 -1
  310. package/dist/chunks/tabs.TNKpNgTM.js +185 -0
  311. package/dist/chunks/tabs.TNKpNgTM.js.map +1 -0
  312. package/dist/chunks/{tabs.keys.358742f2.js → tabs.keys.Bc2pSKRw.js} +1 -1
  313. package/dist/chunks/{tabs.keys.358742f2.js.map → tabs.keys.Bc2pSKRw.js.map} +1 -1
  314. package/dist/chunks/tag.CPhtHjDD.js +75 -0
  315. package/dist/chunks/tag.CPhtHjDD.js.map +1 -0
  316. package/dist/chunks/{teleport.afeb4c3b.js → teleport.L8qFCYpr.js} +20 -21
  317. package/dist/chunks/{teleport.afeb4c3b.js.map → teleport.L8qFCYpr.js.map} +1 -1
  318. package/dist/chunks/textarea.CJ8xiMjv.js +288 -0
  319. package/dist/chunks/textarea.CJ8xiMjv.js.map +1 -0
  320. package/dist/chunks/timeline-item.Cap9MXkH.js +531 -0
  321. package/dist/chunks/timeline-item.Cap9MXkH.js.map +1 -0
  322. package/dist/chunks/toast.Bwo57uNy.js +215 -0
  323. package/dist/chunks/toast.Bwo57uNy.js.map +1 -0
  324. package/dist/chunks/toggle-button.q9F2dsIi.js +79 -0
  325. package/dist/chunks/toggle-button.q9F2dsIi.js.map +1 -0
  326. package/dist/chunks/toggle.DmTjGY0a.js +161 -0
  327. package/dist/chunks/toggle.DmTjGY0a.js.map +1 -0
  328. package/dist/chunks/{tooltip.36172265.js → tooltip.CTR3s-Rm.js} +60 -61
  329. package/dist/chunks/tooltip.CTR3s-Rm.js.map +1 -0
  330. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.WNVsOZdp.js +408 -0
  331. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.WNVsOZdp.js.map +1 -0
  332. package/dist/chunks/typography.D7onlQ9v.js +73 -0
  333. package/dist/chunks/typography.D7onlQ9v.js.map +1 -0
  334. package/dist/chunks/{unique-id.a2a2b458.js → unique-id.XFfoKuc2.js} +14 -20
  335. package/dist/chunks/{unique-id.a2a2b458.js.map → unique-id.XFfoKuc2.js.map} +1 -1
  336. package/dist/chunks/upload-files.5wQwbfkp.js +5 -0
  337. package/dist/chunks/upload-files.5wQwbfkp.js.map +1 -0
  338. package/dist/chunks/upload-files.jTQY6y2X.js +5 -0
  339. package/dist/chunks/upload-files.jTQY6y2X.js.map +1 -0
  340. package/dist/chunks/{use-bento-toast-controller.3dc4e113.js → use-bento-toast-controller.C0A5tZgd.js} +3 -3
  341. package/dist/chunks/{use-bento-toast-controller.3dc4e113.js.map → use-bento-toast-controller.C0A5tZgd.js.map} +1 -1
  342. package/dist/chunks/{use-cached-selected-values.3c312296.js → use-cached-selected-values.BQBWFTvi.js} +271 -278
  343. package/dist/chunks/{use-cached-selected-values.3c312296.js.map → use-cached-selected-values.BQBWFTvi.js.map} +1 -1
  344. package/dist/chunks/{use-click-outside.941d1600.js → use-click-outside.DbjR7Lh4.js} +2 -2
  345. package/dist/chunks/{use-click-outside.941d1600.js.map → use-click-outside.DbjR7Lh4.js.map} +1 -1
  346. package/dist/chunks/{use-country-items.32e30471.js → use-country-items.CongYNiX.js} +4 -4
  347. package/dist/chunks/{use-country-items.32e30471.js.map → use-country-items.CongYNiX.js.map} +1 -1
  348. package/dist/chunks/{use-default-slot-validator.1169c221.js → use-default-slot-validator.O02rzsob.js} +1 -1
  349. package/dist/chunks/{use-default-slot-validator.1169c221.js.map → use-default-slot-validator.O02rzsob.js.map} +1 -1
  350. package/dist/chunks/{use-expandable-content-height.62fc84e5.js → use-expandable-content-height.GkjjbmPy.js} +1 -1
  351. package/dist/chunks/{use-expandable-content-height.62fc84e5.js.map → use-expandable-content-height.GkjjbmPy.js.map} +1 -1
  352. package/dist/chunks/{use-form-layout-loading.d03e5d48.js → use-form-layout-loading.D3lALhtC.js} +2 -2
  353. package/dist/chunks/{use-form-layout-loading.d03e5d48.js.map → use-form-layout-loading.D3lALhtC.js.map} +1 -1
  354. package/dist/chunks/{use-has-slot.4d98bf29.js → use-has-slot.B7eQSabc.js} +1 -1
  355. package/dist/chunks/{use-has-slot.4d98bf29.js.map → use-has-slot.B7eQSabc.js.map} +1 -1
  356. package/dist/chunks/warning-filled.DHw1rVWs.js +29 -0
  357. package/dist/chunks/warning-filled.DHw1rVWs.js.map +1 -0
  358. package/dist/chunks/wrong-environment.BOsyKdRI.js +5 -0
  359. package/dist/chunks/wrong-environment.BOsyKdRI.js.map +1 -0
  360. package/dist/chunks/wrong-environment.BiHTPtbJ.js +5 -0
  361. package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +1 -0
  362. package/dist/click-outside.js +2 -20
  363. package/dist/click-outside.js.map +1 -1
  364. package/dist/code-snippet.js +5 -2133
  365. package/dist/code-snippet.js.map +1 -1
  366. package/dist/country.js +8 -101
  367. package/dist/country.js.map +1 -1
  368. package/dist/currency.js +3 -118
  369. package/dist/currency.js.map +1 -1
  370. package/dist/dashboard-template.js +3 -166
  371. package/dist/dashboard-template.js.map +1 -1
  372. package/dist/dashed-underline.js +5 -0
  373. package/dist/dashed-underline.js.map +1 -0
  374. package/dist/data-grid-template.js +2 -87
  375. package/dist/data-grid-template.js.map +1 -1
  376. package/dist/data-grid.js +8 -2651
  377. package/dist/data-grid.js.map +1 -1
  378. package/dist/date-picker.js +5 -272
  379. package/dist/date-picker.js.map +1 -1
  380. package/dist/date-range-picker.js +2 -2
  381. package/dist/date.js +1 -1
  382. package/dist/divider.js +1 -1
  383. package/dist/dropdown.js +12 -205
  384. package/dist/dropdown.js.map +1 -1
  385. package/dist/empty-state.js +5 -176
  386. package/dist/empty-state.js.map +1 -1
  387. package/dist/filter-bar.js +5 -2780
  388. package/dist/filter-bar.js.map +1 -1
  389. package/dist/focus-trap.js +1 -1
  390. package/dist/form-layout.js +5 -205
  391. package/dist/form-layout.js.map +1 -1
  392. package/dist/header.js +2 -306
  393. package/dist/header.js.map +1 -1
  394. package/dist/image.js +4 -75
  395. package/dist/image.js.map +1 -1
  396. package/dist/index.js +263 -259
  397. package/dist/index.js.map +1 -1
  398. package/dist/info-icon.js +2 -43
  399. package/dist/info-icon.js.map +1 -1
  400. package/dist/input-field.js +7 -342
  401. package/dist/input-field.js.map +1 -1
  402. package/dist/internal.js +15 -15
  403. package/dist/link.js +1 -1
  404. package/dist/loading-indicator.js +3 -41
  405. package/dist/loading-indicator.js.map +1 -1
  406. package/dist/menu.js +1 -1
  407. package/dist/modal-fullscreen.js +3 -263
  408. package/dist/modal-fullscreen.js.map +1 -1
  409. package/dist/modal.js +11 -501
  410. package/dist/modal.js.map +1 -1
  411. package/dist/pagination.js +2 -634
  412. package/dist/pagination.js.map +1 -1
  413. package/dist/payment-method.js +4 -4
  414. package/dist/payment-method.js.map +1 -1
  415. package/dist/popover.js +1 -1
  416. package/dist/popper-container.js +1 -1
  417. package/dist/radio-group.js +6 -296
  418. package/dist/radio-group.js.map +1 -1
  419. package/dist/search-bar.js +6 -107
  420. package/dist/search-bar.js.map +1 -1
  421. package/dist/secondary-nav.js +2 -112
  422. package/dist/secondary-nav.js.map +1 -1
  423. package/dist/segmented-control.js +4 -249
  424. package/dist/segmented-control.js.map +1 -1
  425. package/dist/selection-card.js +4 -384
  426. package/dist/selection-card.js.map +1 -1
  427. package/dist/sidepanel.js +4 -229
  428. package/dist/sidepanel.js.map +1 -1
  429. package/dist/status.js +3 -50
  430. package/dist/status.js.map +1 -1
  431. package/dist/stepper.js +5 -283
  432. package/dist/stepper.js.map +1 -1
  433. package/dist/structured-list.js +1 -1
  434. package/dist/summary-grid.js +9 -720
  435. package/dist/summary-grid.js.map +1 -1
  436. package/dist/tabs.js +3 -184
  437. package/dist/tabs.js.map +1 -1
  438. package/dist/tag.js +3 -73
  439. package/dist/tag.js.map +1 -1
  440. package/dist/textarea.js +2 -286
  441. package/dist/textarea.js.map +1 -1
  442. package/dist/timeline.js +7 -530
  443. package/dist/timeline.js.map +1 -1
  444. package/dist/toast.js +2 -215
  445. package/dist/toast.js.map +1 -1
  446. package/dist/toggle.js +4 -159
  447. package/dist/toggle.js.map +1 -1
  448. package/dist/tutorial.js +2 -407
  449. package/dist/tutorial.js.map +1 -1
  450. package/dist/typography.js +1 -1
  451. package/dist/web-types.json +1 -1
  452. package/package.json +4 -6
  453. package/dist/assets/index.css +0 -1
  454. package/dist/assets/index26.css +0 -1
  455. package/dist/assets/index30.css +0 -1
  456. package/dist/assets/index34.css +0 -1
  457. package/dist/assets/index37.css +0 -1
  458. package/dist/assets/index40.css +0 -1
  459. package/dist/assets/index6.css +0 -1
  460. package/dist/chunks/1-generic-use.3ea646cd.js +0 -5
  461. package/dist/chunks/1-generic-use.3ea646cd.js.map +0 -1
  462. package/dist/chunks/1-generic-use.ccca5813.js +0 -5
  463. package/dist/chunks/1-generic-use.ccca5813.js.map +0 -1
  464. package/dist/chunks/2-generic-use.443db127.js +0 -5
  465. package/dist/chunks/2-generic-use.443db127.js.map +0 -1
  466. package/dist/chunks/2-generic-use.d69d7c08.js +0 -5
  467. package/dist/chunks/2-generic-use.d69d7c08.js.map +0 -1
  468. package/dist/chunks/3-generic-use.9f74667f.js +0 -5
  469. package/dist/chunks/3-generic-use.9f74667f.js.map +0 -1
  470. package/dist/chunks/3-generic-use.fe7ae2ce.js +0 -5
  471. package/dist/chunks/3-generic-use.fe7ae2ce.js.map +0 -1
  472. package/dist/chunks/4-generic-use.0356f4a1.js +0 -5
  473. package/dist/chunks/4-generic-use.0356f4a1.js.map +0 -1
  474. package/dist/chunks/4-generic-use.cd04bad0.js +0 -5
  475. package/dist/chunks/4-generic-use.cd04bad0.js.map +0 -1
  476. package/dist/chunks/_plugin-vue_export-helper.dad06003.js.map +0 -1
  477. package/dist/chunks/adding-payment-methods.d570e03e.js +0 -5
  478. package/dist/chunks/adding-payment-methods.d570e03e.js.map +0 -1
  479. package/dist/chunks/adding-payment-methods.e419d6c0.js +0 -5
  480. package/dist/chunks/adding-payment-methods.e419d6c0.js.map +0 -1
  481. package/dist/chunks/adyen-giving.480913b5.js +0 -5
  482. package/dist/chunks/adyen-giving.480913b5.js.map +0 -1
  483. package/dist/chunks/adyen-giving.54ed984c.js +0 -5
  484. package/dist/chunks/adyen-giving.54ed984c.js.map +0 -1
  485. package/dist/chunks/checkmark-circle-fill.c45a999d.js +0 -44
  486. package/dist/chunks/cross-small.b85406fe.js +0 -29
  487. package/dist/chunks/cross.26509efc.js +0 -29
  488. package/dist/chunks/dropdown.0ae3b842.js.map +0 -1
  489. package/dist/chunks/events.f14a214b.js +0 -50
  490. package/dist/chunks/index.2d7b4511.js.map +0 -1
  491. package/dist/chunks/index.2fcd1233.js +0 -103
  492. package/dist/chunks/index.2fcd1233.js.map +0 -1
  493. package/dist/chunks/index.6295e754.js.map +0 -1
  494. package/dist/chunks/index.6bb6f38c.js.map +0 -1
  495. package/dist/chunks/index.8aa536a8.js +0 -62
  496. package/dist/chunks/index.8aa536a8.js.map +0 -1
  497. package/dist/chunks/index.9d7fb316.js.map +0 -1
  498. package/dist/chunks/index.a001a0a8.js.map +0 -1
  499. package/dist/chunks/index.b18c78d6.js +0 -23
  500. package/dist/chunks/index.b18c78d6.js.map +0 -1
  501. package/dist/chunks/index.eb38a6c4.js +0 -118
  502. package/dist/chunks/index.eb38a6c4.js.map +0 -1
  503. package/dist/chunks/index.ee15db35.js +0 -74
  504. package/dist/chunks/index.ee15db35.js.map +0 -1
  505. package/dist/chunks/index.f9d081d2.js.map +0 -1
  506. package/dist/chunks/internal-error.35cbb071.js +0 -5
  507. package/dist/chunks/internal-error.35cbb071.js.map +0 -1
  508. package/dist/chunks/internal-error.9a4823ed.js +0 -5
  509. package/dist/chunks/internal-error.9a4823ed.js.map +0 -1
  510. package/dist/chunks/listbox-option-tag.2aea037c.js +0 -129
  511. package/dist/chunks/listbox-option-tag.2aea037c.js.map +0 -1
  512. package/dist/chunks/no-results-found.58856d70.js +0 -5
  513. package/dist/chunks/no-results-found.58856d70.js.map +0 -1
  514. package/dist/chunks/no-results-found.cbb12f78.js +0 -5
  515. package/dist/chunks/no-results-found.cbb12f78.js.map +0 -1
  516. package/dist/chunks/notifications-cleared.71025c22.js +0 -5
  517. package/dist/chunks/notifications-cleared.71025c22.js.map +0 -1
  518. package/dist/chunks/notifications-cleared.c4f4bed4.js +0 -5
  519. package/dist/chunks/notifications-cleared.c4f4bed4.js.map +0 -1
  520. package/dist/chunks/page-not-found.a500440d.js +0 -5
  521. package/dist/chunks/page-not-found.a500440d.js.map +0 -1
  522. package/dist/chunks/page-not-found.d1a84ba7.js +0 -5
  523. package/dist/chunks/page-not-found.d1a84ba7.js.map +0 -1
  524. package/dist/chunks/planned-maintenance.7fa5ac16.js +0 -5
  525. package/dist/chunks/planned-maintenance.7fa5ac16.js.map +0 -1
  526. package/dist/chunks/planned-maintenance.cff01aed.js +0 -5
  527. package/dist/chunks/planned-maintenance.cff01aed.js.map +0 -1
  528. package/dist/chunks/radio-input.1dd15424.js.map +0 -1
  529. package/dist/chunks/referrals.178ce0eb.js +0 -5
  530. package/dist/chunks/referrals.178ce0eb.js.map +0 -1
  531. package/dist/chunks/referrals.599047da.js +0 -5
  532. package/dist/chunks/referrals.599047da.js.map +0 -1
  533. package/dist/chunks/success.41981fe8.js +0 -5
  534. package/dist/chunks/success.41981fe8.js.map +0 -1
  535. package/dist/chunks/success.77fac78b.js +0 -5
  536. package/dist/chunks/success.77fac78b.js.map +0 -1
  537. package/dist/chunks/tooltip.36172265.js.map +0 -1
  538. package/dist/chunks/upload-files.2708eca7.js +0 -5
  539. package/dist/chunks/upload-files.2708eca7.js.map +0 -1
  540. package/dist/chunks/upload-files.b4cd9f8b.js +0 -5
  541. package/dist/chunks/upload-files.b4cd9f8b.js.map +0 -1
  542. package/dist/chunks/wrong-environment.c73b0bc0.js +0 -5
  543. package/dist/chunks/wrong-environment.c73b0bc0.js.map +0 -1
  544. package/dist/chunks/wrong-environment.f890a237.js +0 -5
  545. package/dist/chunks/wrong-environment.f890a237.js.map +0 -1
  546. /package/dist/@types/packages/{vue2/src/components/internal → core/src/components}/radio-input/radio-input.types.d.ts +0 -0
  547. /package/dist/assets/{index44.css → alert.css} +0 -0
  548. /package/dist/assets/{index15.css → avatar-image.css} +0 -0
  549. /package/dist/assets/{index3.css → badge.css} +0 -0
  550. /package/dist/assets/{index16.css → checkbox-group.css} +0 -0
  551. /package/dist/assets/{index46.css → code-snippet.css} +0 -0
  552. /package/dist/assets/{index19.css → country.css} +0 -0
  553. /package/dist/assets/{index22.css → date-picker.css} +0 -0
  554. /package/dist/assets/{index42.css → date-range-picker.css} +0 -0
  555. /package/dist/assets/{index14.css → divider.css} +0 -0
  556. /package/dist/assets/{index47.css → dropdown-tag.css} +0 -0
  557. /package/dist/assets/{index43.css → empty-state.css} +0 -0
  558. /package/dist/assets/{index7.css → focus-trap.css} +0 -0
  559. /package/dist/assets/{index45.css → form-layout-title.css} +0 -0
  560. /package/dist/assets/{index20.css → header.css} +0 -0
  561. /package/dist/assets/{index8.css → info-icon.css} +0 -0
  562. /package/dist/assets/{index41.css → input-field.css} +0 -0
  563. /package/dist/assets/{index9.css → loading-indicator.css} +0 -0
  564. /package/dist/assets/{index13.css → pagination.css} +0 -0
  565. /package/dist/assets/{index4.css → popper-container.css} +0 -0
  566. /package/dist/assets/{index23.css → radio-group.css} +0 -0
  567. /package/dist/assets/{index24.css → search-bar.css} +0 -0
  568. /package/dist/assets/{index25.css → secondary-nav.css} +0 -0
  569. /package/dist/assets/{index27.css → step.css} +0 -0
  570. /package/dist/assets/{index31.css → structured-list-item.css} +0 -0
  571. /package/dist/assets/{index33.css → summary-grid-item-custom.css} +0 -0
  572. /package/dist/assets/{index29.css → tabs.css} +0 -0
  573. /package/dist/assets/{index35.css → tag.css} +0 -0
  574. /package/dist/assets/{index28.css → textarea.css} +0 -0
  575. /package/dist/assets/{index32.css → timeline-item.css} +0 -0
  576. /package/dist/assets/{index36.css → toast.css} +0 -0
  577. /package/dist/assets/{index12.css → toggle-button.css} +0 -0
  578. /package/dist/assets/{index48.css → typography.css} +0 -0
@@ -1,299 +1,9 @@
1
- import { defineComponent as x, useSlots as M, toRefs as q, computed as n, openBlock as a, createElementBlock as g, normalizeClass as O, unref as e, createVNode as k, withCtx as s, renderSlot as _, createBlock as v, mergeProps as D, createCommentVNode as c, toRef as L, watch as G, Fragment as H, renderList as U, createSlots as z, createTextVNode as V, toDisplayString as N } from "vue";
2
- import { u as F } from "./chunks/use-form-layout-loading.d03e5d48.js";
3
- import { u as A } from "./chunks/use-has-slot.4d98bf29.js";
4
- import { g as I } from "./chunks/unique-id.a2a2b458.js";
5
- import { B as C, d as j } from "./chunks/index.ee15db35.js";
6
- import { C as P } from "./chunks/controls-group.8357e3fd.js";
7
- import { BentoTag as Z } from "./tag.js";
8
- import { u as Y } from "./chunks/aria-label.ac9651a5.js";
9
- import { u as J } from "./chunks/use-default-slot-validator.1169c221.js";
10
- import { g as K } from "./chunks/get-slot-text.bead058f.js";
11
- import { R as T, a as Q } from "./chunks/radio-input.1dd15424.js";
12
- import { _ as $ } from "./chunks/_plugin-vue_export-helper.dad06003.js";
13
- import { E as W } from "./chunks/error-message.d2bdeb80.js";
14
- import "./assets/index23.css";
15
- const X = ["for"], ee = {
16
- key: 0,
17
- class: "b-radio-button__primary-label"
18
- }, te = {
19
- name: "bento-radio-button",
20
- model: { prop: "modelValue" }
21
- }, oe = /* @__PURE__ */ x({
22
- ...te,
23
- props: {
24
- /**
25
- * Disable the radio button (optional)
26
- */
27
- disabled: { type: Boolean, default: !1 },
28
- /**
29
- * Shows bento-radio-button in error state (optional)
30
- */
31
- hasError: { type: Boolean, default: !1 },
32
- /**
33
- * This property should not be used directly.
34
- * It will be used by v-model directive on radio component.
35
- */
36
- modelValue: {
37
- type: [String, Number],
38
- default: null
39
- },
40
- /**
41
- * Sets the radio button to readonly (optional)
42
- */
43
- readonly: { type: Boolean, default: !1 },
44
- /**
45
- * Sets the properties of the BentoTag component that is placed next to the label.
46
- * {@see BentoTag}
47
- */
48
- tag: { type: Object, default: void 0 },
49
- /**
50
- * Indicates the value of the input that will be returned when it's checked
51
- */
52
- value: {
53
- type: [String, Number],
54
- required: !0
55
- }
56
- },
57
- emits: ["input", "update:model-value"],
58
- setup(t, { emit: b }) {
59
- const o = t, i = M(), l = A(i), { value: p } = q(o), h = I("bento-radio-button"), f = I("description");
60
- J("bento-radio-button", i.default, i.description);
61
- const m = n(() => ({
62
- [`b-radio-button--${T.DISABLED}`]: o.disabled,
63
- [`b-radio-button--${T.READONLY}`]: o.readonly
64
- })), B = Y({
65
- ariaLabel: K(i)("default"),
66
- label: p.value
67
- }), y = n(() => o.value === o.modelValue), E = () => {
68
- !o.disabled && !o.readonly && (b("update:model-value", o.value), b("input", o.value));
69
- };
70
- return (d, R) => (a(), g("div", {
71
- class: O(["b-radio-button", e(m)]),
72
- "data-testid": "radio-button-container"
73
- }, [
74
- k(e(Q), {
75
- id: e(h),
76
- "aria-label": e(B),
77
- "aria-describedby": e(l)("description") ? e(f) : "",
78
- checked: e(y),
79
- disabled: t.disabled,
80
- readonly: t.readonly,
81
- "has-error": t.hasError,
82
- value: e(p),
83
- "model-value": t.modelValue,
84
- "onUpdate:modelValue": E
85
- }, null, 8, ["id", "aria-label", "aria-describedby", "checked", "disabled", "readonly", "has-error", "value", "model-value"]),
86
- e(l)("default") ? (a(), g("label", {
87
- key: 0,
88
- for: e(h),
89
- class: "b-radio-button__label-container"
90
- }, [
91
- e(l)("default") ? (a(), g("span", ee, [
92
- k(e(C), {
93
- class: "b-radio-button__label",
94
- el: "span",
95
- variant: "body"
96
- }, {
97
- default: s(() => [
98
- _(d.$slots, "default", {}, void 0, !0)
99
- ]),
100
- _: 3
101
- }),
102
- t.tag ? (a(), v(e(Z), D({
103
- key: 0,
104
- class: "b-radio-button__label-tag"
105
- }, t.tag), null, 16)) : c("", !0)
106
- ])) : c("", !0),
107
- e(l)("default") && e(l)("description") ? (a(), v(e(C), {
108
- key: 1,
109
- id: e(f),
110
- class: "b-radio-button__description",
111
- el: "span",
112
- variant: "body"
113
- }, {
114
- default: s(() => [
115
- _(d.$slots, "description", {}, void 0, !0)
116
- ]),
117
- _: 3
118
- }, 8, ["id"])) : c("", !0),
119
- e(l)("content") && e(y) ? (a(), v(e(C), {
120
- key: 2,
121
- class: "b-radio-button__content",
122
- el: "div"
123
- }, {
124
- default: s(() => [
125
- _(d.$slots, "content", {}, void 0, !0)
126
- ]),
127
- _: 3
128
- })) : c("", !0)
129
- ], 8, X)) : c("", !0)
130
- ], 2));
131
- }
132
- });
133
- const ae = /* @__PURE__ */ $(oe, [["__scopeId", "data-v-32a87890"]]);
134
- var S = /* @__PURE__ */ ((t) => (t.HORIZONTAL = "horizontal", t.VERTICAL = "vertical", t))(S || {});
135
- const re = { class: "b-radio-group" }, le = {
136
- name: "bento-radio-group",
137
- model: { prop: "modelValue" }
138
- }, de = /* @__PURE__ */ x({
139
- ...le,
140
- props: {
141
- /**
142
- * Descriptive supporting text visbile underneath the label.
143
- */
144
- description: { type: String, default: null },
145
- /**
146
- * If set to true, renders all bento-radio-buttons in the group in a disabled state.
147
- */
148
- disabled: { type: Boolean, default: !1 },
149
- /**
150
- * If passed as a prop, all bento-radio-buttons in an error state and renders the string beneath the buttons.
151
- */
152
- errorMessage: { type: String, default: null },
153
- /**
154
- * The form id the radio group is associated with. Defaults to null, as a radio group can also be used standalone.
155
- */
156
- formId: { type: String, default: null },
157
- /**
158
- * If set to true, renders all bento-radio-buttons in the group in an error state.
159
- *
160
- * @deprecated Use "errorMessage" prop instead
161
- */
162
- hasError: { type: Boolean, default: !1 },
163
- /**
164
- * Shows/hides the group label.
165
- */
166
- hideLabel: { type: Boolean, default: null },
167
- /**
168
- * The radio group's items.
169
- */
170
- items: {
171
- type: Array,
172
- required: !0
173
- },
174
- /**
175
- * The name associated with the group. Required for accessibility purposes.
176
- */
177
- label: { type: String, required: !0 },
178
- /**
179
- * Determines the initially selected value of the group. Corresponds to the BentoRadioButtonItem's value.
180
- * Defaults to no value selected.
181
- */
182
- modelValue: {
183
- type: [Number, String],
184
- default: null
185
- },
186
- /**
187
- * Indicates the field is optional.
188
- */
189
- optional: { type: Boolean, default: !1 },
190
- /**
191
- * If set to true, renders all bento-radio-button in the group in a readonly state.
192
- */
193
- readonly: { type: Boolean, default: !1 },
194
- /**
195
- * Indicates the field is required.
196
- */
197
- required: { type: Boolean, default: !1 },
198
- /**
199
- * Tooltip message.
200
- */
201
- tooltipText: { type: String, default: null },
202
- /**
203
- * The radio group's layout. It can be vertical or horizontal. Defaults to vertical.
204
- */
205
- variant: {
206
- type: String,
207
- default: S.VERTICAL,
208
- validator: (t) => Object.values(S).includes(t)
209
- }
210
- },
211
- emits: ["input", "update:model-value"],
212
- setup(t, { emit: b }) {
213
- const o = t, i = "bento-radio-group", l = M(), p = A(l), h = L(o, "modelValue"), f = I("error"), { isReadOnly: m } = F(L(o, "readonly")), B = n(
214
- () => !o.disabled && !m.value && (!!o.errorMessage || o.hasError)
215
- ), y = n(() => !o.disabled && !m.value && !!o.errorMessage), E = n(() => ({
216
- "b-radio-group__buttons--horizontal": o.variant === S.HORIZONTAL
217
- })), d = n(() => o.variant === "vertical"), R = n(() => p("content") && !(d != null && d.value)), w = (u) => {
218
- b("update:model-value", u), b("input", u);
219
- };
220
- return o.hasError && j(
221
- 'BentoRadioGroup "hasError" property',
222
- `Use the BentoRadioGroup "errorMessage" property instead to indicate that there is a modifier error.
223
- Having the field as "undefined" will hide/remove the error.
224
- <bento-radio-group errorMessage="Error message text" />`,
225
- "2.0.0"
226
- ), G(
227
- R,
228
- (u) => {
229
- if (u)
230
- throw new Error("The content slot is only available for the vertical radio group layout");
231
- },
232
- {
233
- immediate: !0
234
- }
235
- ), (u, ne) => (a(), g("div", re, [
236
- k(e(P), {
237
- class: O(["b-radio-group__buttons", e(E)]),
238
- "aria-describedby": e(y) ? e(f) : "",
239
- "component-name": i,
240
- description: t.description,
241
- disabled: t.disabled,
242
- form: t.formId,
243
- label: t.label,
244
- optional: t.optional,
245
- required: t.required,
246
- "hide-label": t.hideLabel,
247
- "tooltip-text": t.tooltipText
248
- }, {
249
- default: s(() => [
250
- (a(!0), g(H, null, U(t.items, (r) => (a(), v(e(ae), {
251
- key: r.value,
252
- "model-value": e(h),
253
- value: r.value,
254
- disabled: t.disabled || r.disabled,
255
- readonly: e(m) || r.readonly,
256
- "has-error": e(B) || r.hasError,
257
- tag: r.tag,
258
- "onUpdate:modelValue": w
259
- }, z({
260
- default: s(() => [
261
- V(N(r.label), 1)
262
- ]),
263
- _: 2
264
- }, [
265
- r.description ? {
266
- name: "description",
267
- fn: s(() => [
268
- V(N(r.description), 1)
269
- ]),
270
- key: "0"
271
- } : void 0,
272
- e(p)("content") && e(d) ? {
273
- name: "content",
274
- fn: s(() => [
275
- _(u.$slots, "content", {}, void 0, !0)
276
- ]),
277
- key: "1"
278
- } : void 0
279
- ]), 1032, ["model-value", "value", "disabled", "readonly", "has-error", "tag"]))), 128))
280
- ]),
281
- _: 3
282
- }, 8, ["aria-describedby", "class", "description", "disabled", "form", "label", "optional", "required", "hide-label", "tooltip-text"]),
283
- e(y) ? (a(), v(e(W), {
284
- key: 0,
285
- id: e(f),
286
- "error-message": t.errorMessage,
287
- class: "b-radio-group__error-message"
288
- }, null, 8, ["id", "error-message"])) : c("", !0)
289
- ]));
290
- }
291
- });
292
- const Se = /* @__PURE__ */ $(de, [["__scopeId", "data-v-69b7e4e3"]]);
1
+ import { b as t, B as e, a as n } from "./chunks/radio-group.B9HCffiZ.js";
2
+ import { R as B } from "./chunks/radio-input.BEzK-fgR.js";
293
3
  export {
294
- ae as BentoRadioButton,
295
- T as BentoRadioButtonStateClass,
296
- Se as BentoRadioGroup,
297
- S as BentoRadioGroupVariant
4
+ t as BentoRadioButton,
5
+ B as BentoRadioButtonStateClass,
6
+ e as BentoRadioGroup,
7
+ n as BentoRadioGroupVariant
298
8
  };
299
9
  //# 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.vue","../../vue2/src/components/radio-group/radio-group.types.ts","../../vue2/src/components/radio-group/radio-group.vue"],"sourcesContent":["<template>\n <div class=\"b-radio-button\" data-testid=\"radio-button-container\" :class=\"conditionalClassContainer\">\n <radio-input\n :id=\"radioButtonId\"\n :aria-label=\"ariaLabel\"\n :aria-describedby=\"hasSlot('description') ? descriptionId : ''\"\n :checked=\"isChecked\"\n :disabled=\"disabled\"\n :readonly=\"readonly\"\n :has-error=\"hasError\"\n :value=\"value\"\n :model-value=\"modelValue\"\n @update:model-value=\"onChange\"\n />\n <label v-if=\"hasSlot('default')\" :for=\"radioButtonId\" class=\"b-radio-button__label-container\">\n <span v-if=\"hasSlot('default')\" class=\"b-radio-button__primary-label\">\n <bento-typography class=\"b-radio-button__label\" el=\"span\" variant=\"body\"><slot /></bento-typography>\n <bento-tag v-if=\"tag\" class=\"b-radio-button__label-tag\" v-bind=\"tag\" />\n </span>\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 setup lang=\"ts\">\n import { BentoTag } from '@/components/tag';\n import { BentoTypography } from '@/components/typography';\n import { RadioInput } from '../../../internal/radio-input';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n import { generateUid } from '@/utils/ts/unique-id';\n import { computed, ComputedRef, PropType, toRefs, useSlots } from 'vue';\n import { useDefaultSlotValidator, useHasSlot } from '@/composables';\n import { BentoRadioButtonStateClass, BentoRadioButtonTag, BentoRadioButtonValue } from './radio-button.types';\n import { getSlotText } from '@/utils/ts/get-slot-text';\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n const props = defineProps({\n /**\n * Disable the radio button (optional)\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Shows bento-radio-button in error state (optional)\n */\n hasError: { type: Boolean, 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] as PropType<BentoRadioButtonValue>,\n default: null,\n },\n\n /**\n * Sets the radio button to readonly (optional)\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * Sets the properties of the BentoTag component that is placed next to the label.\n * {@see BentoTag}\n */\n tag: { type: Object as PropType<BentoRadioButtonTag>, default: undefined },\n\n /**\n * Indicates the value of the input that will be returned when it's checked\n */\n value: {\n type: [String, Number] as PropType<BentoRadioButtonValue>,\n required: true,\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when the radio button is clicked. Enables Vue2 \"v-model\"\n */\n (e: 'input', value: BentoRadioButtonValue);\n\n /**\n * Emitted when the radio button is clicked. Enables Vue3 \"v-model\"\n */\n (e: 'update:model-value', value: BentoRadioButtonValue);\n }>();\n\n const { value } = toRefs(props);\n const radioButtonId = generateUid('bento-radio-button');\n const descriptionId = generateUid('description');\n\n useDefaultSlotValidator('bento-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\n const ariaLabel = useAriaLabel({\n ariaLabel: getSlotText(slots)('default'),\n label: value.value as string,\n });\n\n const isChecked: ComputedRef<boolean> = computed(() => props.value === props.modelValue);\n\n const onChange = () => {\n if (!props.disabled && !props.readonly) {\n emit('update:model-value', props.value);\n emit('input', props.value);\n }\n };\n</script>\n\n<script lang=\"ts\">\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 * @example\n * import { BentoRadioButton } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoRadioButton },\n * template: `\n * <bento-radio-button\n * disabled\n * value=\"inputRadio\"\n * model-value.sync=\"modelValue\"\n * >\n * Label text\n * <template #description>Description text below label</template>\n * <template #content>Content shown when checked</template>\n * </bento-radio-button>\n * `,\n * setup() {\n * const modelValue = ref('anyValue')\n * const value = 'option-value'\n *\n * return {\n * modelValue,\n * value,\n * }\n * }\n * }\n */\n export default {\n name: 'bento-radio-button',\n model: { prop: 'modelValue' },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./radio-button.scss\" />\n","import type { BentoRadioButtonTag, BentoRadioButtonValue } from './components/radio-button';\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 type BentoRadioGroupValue = BentoRadioButtonValue;\n\nexport interface BentoRadioGroupItem {\n value: BentoRadioGroupValue;\n label: string;\n description?: string;\n disabled?: boolean;\n readonly?: boolean;\n hasError?: boolean;\n tag?: BentoRadioButtonTag;\n}\n\nexport type BentoRadioGroupItems = Array<BentoRadioGroupItem>;\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 <bento-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 :tag=\"item.tag\"\n @update:model-value=\"onInput\"\n >\n <template #default>{{ item.label }}</template>\n <template v-if=\"item.description\" #description>{{ item.description }}</template>\n <template v-if=\"hasSlot('content') && isVertical\" #content>\n <slot name=\"content\"></slot>\n </template>\n </bento-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 setup lang=\"ts\">\n import { computed, PropType, toRef, useSlots, watch } from 'vue';\n import { ControlsGroup, ErrorMessage } from '@/components/internal';\n import { BentoRadioButton } from './components/radio-button';\n import { useHasSlot } from '@/composables';\n import { generateUid } from '@/utils/ts/unique-id';\n import { deprecate } from '@/utils/ts/deprecate';\n import { BentoRadioGroupItems, BentoRadioGroupValue, 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 const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const emit = defineEmits<{\n /**\n * Emitted when an option inside the group is selected. Enables Vue2 \"v-model\"\n */\n (e: 'input', value: BentoRadioGroupValue);\n\n /**\n * Emitted when an option inside the group is selected. Enables Vue3 \"v-model\"\n */\n (e: 'update:model-value', value: BentoRadioGroupValue);\n }>();\n\n const props = defineProps({\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 bento-radio-buttons in the group in a disabled state.\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * If passed as a prop, all bento-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 bento-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: {\n type: Array as PropType<BentoRadioGroupItems>,\n required: true,\n },\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: {\n type: [Number, String] as PropType<BentoRadioGroupValue>,\n default: null,\n },\n\n /**\n * Indicates the field is optional.\n */\n optional: { type: Boolean, default: false },\n\n /**\n * If set to true, renders all bento-radio-button 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\n const inputValue = toRef(props, 'modelValue');\n const errorId = generateUid('error');\n const { isReadOnly } = useFormLayoutFieldLoading(toRef(props, 'readonly'));\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 shouldShowSlotError = computed(() => hasSlot('content') && !isVertical?.value);\n\n const onInput = value => {\n emit('update:model-value', value);\n emit('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</script>\n\n<script lang=\"ts\">\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 {\n name: 'bento-radio-group',\n model: { prop: 'modelValue' },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./radio-group.scss\" />\n"],"names":["__default__$1","slots","useSlots","hasSlot","useHasSlot","value","toRefs","props","radioButtonId","generateUid","descriptionId","useDefaultSlotValidator","conditionalClassContainer","computed","RadioInputStateClass","ariaLabel","useAriaLabel","getSlotText","isChecked","onChange","emit","BentoRadioGroupVariant","BentoRadioGroupVariant2","__default__","COMPONENT_NAME","inputValue","toRef","errorId","isReadOnly","useFormLayoutFieldLoading","shouldShowError","shouldShowErrorMessage","conditionalClasses","isVertical","shouldShowSlotError","onInput","deprecate","watch","newVal"],"mappings":";;;;;;;;;;;;;;;;;GAgKIA,KAAA;AAAA,EAAe,MAAA;AAAA,EACL,OAAA,EAAA,MAAA,aAAA;AAEV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBArHAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAqDA,EAAA,OAAAI,EAAA,IAAAC,EAAAC,CAAA,GACAC,IAAAC,EAAA,oBAAA,GACAC,IAAAD,EAAA,aAAA;AAEA,IAAAE,EAAA,sBAAAV,EAAA,SAAAA,EAAA,WAAA;AAEA,UAAAW,IAAAC,EAAA,OAAA;AAAA,MAAkD,CAAA,mBAAAC,EAAA,UAAA,GAAAP,EAAA;AAAA,MACoB,CAAA,mBAAAO,EAAA,UAAA,GAAAP,EAAA;AAAA,IACA,EAAA,GAGtEQ,IAAAC,EAAA;AAAA,MAA+B,WAAAC,EAAAhB,CAAA,EAAA,SAAA;AAAA,MACY,OAAAI,EAAA;AAAA,IAC1B,CAAA,GAGjBa,IAAAL,EAAA,MAAAN,EAAA,UAAAA,EAAA,UAAA,GAEAY,IAAA,MAAA;AACI,MAAA,CAAAZ,EAAA,YAAA,CAAAA,EAAA,aACIa,EAAA,sBAAAb,EAAA,KAAA,GACAa,EAAA,SAAAb,EAAA,KAAA;AAAA,IACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACrHI,IAAAc,IAAA,kBAAAC,OACRA,EAAA,aAAA,cACAA,EAAA,WAAA,YAFQA,IAAAD,KAAA,CAAA,CAAA;uCC2NRE,KAAA;AAAA,EAAe,MAAA;AAAA,EACL,OAAA,EAAA,MAAA,aAAA;AAEV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA3KAC,IAAA,qBAEAvB,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAmGAwB,IAAAC,EAAAnB,GAAA,YAAA,GACAoB,IAAAlB,EAAA,OAAA,GACA,EAAA,YAAAmB,EAAA,IAAAC,EAAAH,EAAAnB,GAAA,UAAA,CAAA,GAEAuB,IAAAjB;AAAA,MAAwB,MAAA,CAAAN,EAAA,YAAA,CAAAqB,EAAA,UAAA,CAAA,CAAArB,EAAA,gBAAAA,EAAA;AAAA,IACyD,GAEjFwB,IAAAlB,EAAA,MAAA,CAAAN,EAAA,YAAA,CAAAqB,EAAA,SAAA,CAAA,CAAArB,EAAA,YAAA,GAEAyB,IAAAnB,EAAA,OAAA;AAAA,MAA2C,sCAAAN,EAAA,YAAAc,EAAA;AAAA,IACwC,EAAA,GAInFY,IAAApB,EAAA,MAAAN,EAAA,YAAA,UAAA,GACA2B,IAAArB,EAAA,MAAAV,EAAA,SAAA,KAAA,EAAA8B,KAAA,QAAAA,EAAA,MAAA,GAEAE,IAAA,CAAA9B,MAAA;AACI,MAAAe,EAAA,sBAAAf,CAAA,GACAe,EAAA,SAAAf,CAAA;AAAA,IAAmB;AAGvB,WAAAE,EAAA,YACI6B;AAAA,MAAA;AAAA,MACI;AAAA;AAAA;AAAA,MACA;AAAA,IAGA,GAIRC;AAAA,MAAAH;AAAA,MACI,CAAAI,MAAA;AAEI,YAAAA;AACI,gBAAA,IAAA,MAAA,wEAAA;AAAA,MACJ;AAAA,MACJ;AAAA,QACA,WAAA;AAAA,MACe;AAAA,IACf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"radio-group.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -1,110 +1,9 @@
1
- import { defineComponent as v, ref as u, watch as y, openBlock as C, createElementBlock as S, createVNode as o, unref as r, createSlots as g, withCtx as d, createElementVNode as A, withKeys as p } from "vue";
2
- import { d as E } from "./chunks/debounce.b5ef6acf.js";
3
- import { u as I } from "./chunks/i18n.f7e6533e.js";
4
- import { BentoInputField as x } from "./input-field.js";
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.0ae3b842.js";
9
- import "./assets/index24.css";
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
- const h = {
12
- "en-US": {
13
- search: "Search",
14
- clearSearch: "Clear search"
15
- }
16
- }, K = { class: "b-search-bar" }, N = ["onKeypress", "onKeyup"], U = {
17
- i18n: { messages: h }
18
- }, L = /* @__PURE__ */ v({
19
- ...U,
20
- __name: "search-bar",
21
- props: {
22
- /**
23
- * Text that labels an the search bar input element
24
- */
25
- inputFieldAriaLabel: { type: String, required: !0 },
26
- /**
27
- * Reduces height of the search bar
28
- */
29
- condensed: { type: Boolean, default: !1 },
30
- /**
31
- * Custom debounce time. Default: 300
32
- */
33
- debounceTime: { type: Number, default: 300 },
34
- /**
35
- * Text displayed as the placeholder of the input-field
36
- */
37
- placeholder: { type: String, default: "" },
38
- /**
39
- * Text displayed as the value being searched
40
- */
41
- value: { type: String, default: void 0 }
42
- },
43
- emits: ["input", "clear", "escape-pressed"],
44
- setup(e, { emit: t }) {
45
- const s = e, { t: n } = I({ messages: h }), a = u(s.value), _ = u();
46
- y(
47
- () => s.value,
48
- () => {
49
- a.value = s.value;
50
- },
51
- { immediate: !0 }
52
- );
53
- const c = () => {
54
- a.value = "", t("clear"), t("input", "");
55
- }, f = E(() => {
56
- t("input", a.value);
57
- }, s.debounceTime), b = (l) => {
58
- a.value = l, f();
59
- };
60
- return (l, i) => (C(), S("div", K, [
61
- o(x, {
62
- ref_key: "bentoInputField",
63
- ref: _,
64
- value: a.value,
65
- type: "search",
66
- condensed: e.condensed,
67
- "aria-label": e.inputFieldAriaLabel,
68
- "aria-hidden": !1,
69
- placeholder: e.placeholder,
70
- onInput: b,
71
- onEscapePressed: i[0] || (i[0] = (w) => t(r(m).ESCAPE))
72
- }, g({
73
- iconBefore: d(() => [
74
- o(r(F), {
75
- "svg-title": r(n)("search"),
76
- "aria-hidden": "true"
77
- }, null, 8, ["svg-title"])
78
- ]),
79
- _: 2
80
- }, [
81
- a.value ? {
82
- name: "iconAfter",
83
- fn: d(() => [
84
- A("div", {
85
- class: "b-search-bar__clear-search",
86
- tabindex: "0",
87
- "data-testid": "b-search-bar-clear-search-button",
88
- onClick: c,
89
- onKeypress: p(c, ["enter"]),
90
- onKeyup: p(c, ["space"])
91
- }, [
92
- o(r(P), {
93
- "svg-title": r(n)("clearSearch")
94
- }, null, 8, ["svg-title"])
95
- ], 40, N)
96
- ]),
97
- key: "0"
98
- } : void 0
99
- ]), 1032, ["value", "condensed", "aria-label", "placeholder"])
100
- ]));
101
- }
102
- });
103
- const G = /* @__PURE__ */ T(L, [["__scopeId", "data-v-e162ab24"]]);
1
+ import { B as r, b as t, a as B } from "./chunks/search-bar.DxskyM4e.js";
2
+ import { u as o } from "./chunks/dropdown.CxBlK83Q.js";
104
3
  export {
105
- G as BentoSearchBar,
106
- k as BentoSearchBarEvent,
107
- m as BentoSearchBarInternalEvent,
108
- O as useSearchBarFilter
4
+ r as BentoSearchBar,
5
+ t as BentoSearchBarEvent,
6
+ B as BentoSearchBarInternalEvent,
7
+ o as useSearchBarFilter
109
8
  };
110
9
  //# sourceMappingURL=search-bar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"search-bar.js","sources":["../../vue2/src/components/search-bar/search-bar.types.ts","../../vue2/src/components/search-bar/search-bar.vue"],"sourcesContent":["export enum BentoSearchBarInternalEvent {\n CLEAR = 'clear',\n ESCAPE = 'escape-pressed',\n INPUT = 'input',\n UPDATE = 'update:search-term',\n}\n\nexport enum BentoSearchBarEvent {\n CLEAR = 'search-clear',\n INPUT = 'search-input',\n UPDATE = 'update:search-term',\n}\n\nexport interface BentoSearchBarItem {\n label: string;\n items?: Array<BentoSearchBarItem>;\n}\n\nexport type BentoSearchBarData = Array<BentoSearchBarItem>;\n","<template>\n <div class=\"b-search-bar\">\n <bento-input-field\n ref=\"bentoInputField\"\n :value=\"searchTerm\"\n type=\"search\"\n :condensed=\"condensed\"\n :aria-label=\"inputFieldAriaLabel\"\n :aria-hidden=\"false\"\n :placeholder=\"placeholder\"\n @input=\"onInputEvent\"\n @escape-pressed=\"emit(BentoSearchBarInternalEvent.ESCAPE)\"\n >\n <template #iconBefore>\n <search-icon :svg-title=\"t('search')\" aria-hidden=\"true\" />\n </template>\n\n <template v-if=\"searchTerm\" #iconAfter>\n <div\n class=\"b-search-bar__clear-search\"\n tabindex=\"0\"\n data-testid=\"b-search-bar-clear-search-button\"\n @click=\"onClearSearch\"\n @keypress.enter=\"onClearSearch\"\n @keyup.space=\"onClearSearch\"\n >\n <cross-circle-fill-icon :svg-title=\"t('clearSearch')\" />\n </div>\n </template>\n </bento-input-field>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { ref, watch } from 'vue';\n import { debounce } from '@/utils/ts/debounce';\n import { BentoSearchBarInternalEvent } from './search-bar.types';\n import { useI18n } from '@/utils/ts/i18n';\n import BentoInputField from '@/components/input-field/input-field.vue';\n import SearchIcon from '@adyen/ui-assets-icons-16/vue/search';\n import CrossCircleFillIcon from '@adyen/ui-assets-icons-16/vue/cross-circle-fill';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const props = defineProps({\n /**\n * Text that labels an the search bar input element\n */\n inputFieldAriaLabel: { type: String, required: true },\n\n /**\n * Reduces height of the search bar\n */\n condensed: { type: Boolean, default: false },\n\n /**\n * Custom debounce time. Default: 300\n */\n debounceTime: { type: Number, default: 300 },\n\n /**\n * Text displayed as the placeholder of the input-field\n */\n placeholder: { type: String, default: '' },\n\n /**\n * Text displayed as the value being searched\n */\n value: { type: String, default: undefined },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when the input value changes by typing a search. Debounced by the `debounceTime` property\n */\n (e: 'input', inputValue: string): void;\n\n /**\n * Emitted when the \"clear search\" button is clicked\n */\n (e: 'clear'): void;\n\n /**\n * Emitted when the \"ESC\" key is pressed inside the Search Bar input\n */\n (e: 'escape-pressed'): void;\n }>();\n\n const searchTerm = ref(props.value);\n const bentoInputField = ref<InstanceType<typeof BentoInputField> | null>();\n\n watch(\n () => props.value,\n () => {\n searchTerm.value = props.value;\n },\n { immediate: true }\n );\n\n const onClearSearch = () => {\n searchTerm.value = '';\n emit('clear');\n emit('input', '');\n };\n\n const debouncedEmit = debounce(() => {\n emit('input', searchTerm.value);\n }, props.debounceTime);\n\n const onInputEvent = (value: string) => {\n searchTerm.value = value;\n debouncedEmit();\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * Search functionality to help users find the desired data quicker.\n * When a user starts typing, the data is dynamically filtered to\n * only show the relevant results.\n *\n * Clearing the search field displays the entire list again.\n *\n * @example\n * import {\n * BentoSearchBar,\n * BentoSearchBarData,\n * useSearchBarFilter\n * } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoSearchBar },\n * template: `\n * <bento-search-bar\n * input-field-aria-label=\"Search bar\"\n * v-model=\"searchTerm\"\n * @input=\"onInput\"\n * @clear=\"onClearSearch\"\n * />\n * // Render the filtered data\n * {{ filteredData }}\n * `,\n * setup() {\n * const searchTerm = ref('');\n * const data = ref<BentoSearchBarData>([]);\n * const filteredData = useSearchBarFilter(searchTerm, data);\n *\n * consdt onInput = () => {}\n * consdt onClearSearch = () => {}\n *\n * return {\n * searchTerm,\n * filteredData,\n * onInput,\n * onClearSearch,\n * };\n * }\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./search-bar.scss\" />\n"],"names":["BentoSearchBarInternalEvent","BentoSearchBarInternalEvent2","BentoSearchBarEvent","BentoSearchBarEvent2","__default__","messages","t","useI18n","searchTerm","ref","props","bentoInputField","watch","onClearSearch","emit","debouncedEmit","debounce","onInputEvent","value"],"mappings":";;;;;;;;;AAAY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,QAAA,SACAA,EAAA,SAAA,kBACAA,EAAA,QAAA,SACAA,EAAA,SAAA,sBAJQA,IAAAD,KAAA,CAAA,CAAA,GAOAE,IAAA,kBAAAC,OACRA,EAAA,QAAA,gBACAA,EAAA,QAAA,gBACAA,EAAA,SAAA,sBAHQA,IAAAD,KAAA,CAAA,CAAA;;;;;;iEC2JRE,IAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAvHA,EAAA,GAAAC,EAAA,IAAAC,EAAA,EAAA,UAAAF,EAAA,CAAA,GA8CAG,IAAAC,EAAAC,EAAA,KAAA,GACAC,IAAAF,EAAA;AAEA,IAAAG;AAAA,MAAA,MAAAF,EAAA;AAAA,MACgB,MAAA;AAER,QAAAF,EAAA,QAAAE,EAAA;AAAA,MAAyB;AAAA,MAC7B,EAAA,WAAA,GAAA;AAAA,IACkB;AAGtB,UAAAG,IAAA,MAAA;AACI,MAAAL,EAAA,QAAA,IACAM,EAAA,OAAA,GACAA,EAAA,SAAA,EAAA;AAAA,IAAgB,GAGpBC,IAAAC,EAAA,MAAA;AACI,MAAAF,EAAA,SAAAN,EAAA,KAAA;AAAA,IAA8B,GAAAE,EAAA,YAAA,GAGlCO,IAAA,CAAAC,MAAA;AACI,MAAAV,EAAA,QAAAU,GACAH,EAAA;AAAA,IAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"search-bar.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -1,115 +1,5 @@
1
- import { defineComponent as v, inject as V, computed as C, openBlock as t, createElementBlock as s, normalizeClass as S, unref as o, createVNode as i, withCtx as b, createTextVNode as p, toDisplayString as f, createElementVNode as g, Fragment as h, renderList as N, ref as B, readonly as $, watch as A, provide as E, createBlock as m } from "vue";
2
- import { B as k } from "./chunks/index.ee15db35.js";
3
- import { _ as y } from "./chunks/_plugin-vue_export-helper.dad06003.js";
4
- import "./assets/index25.css";
5
- const x = Symbol("secondary nav state"), T = {}, w = /* @__PURE__ */ v({
6
- ...T,
7
- __name: "secondary-nav-item",
8
- props: {
9
- label: null,
10
- value: null
11
- },
12
- emits: ["click"],
13
- setup(e, { emit: _ }) {
14
- const c = e, { activeItemValue: a, updateActiveItemValue: r } = V(x), u = C(() => ({
15
- "b-secondary-nav-item--active": a.value === c.value
16
- })), l = (d) => {
17
- _("click", d), r(c.value);
18
- };
19
- return (d, n) => (t(), s("button", {
20
- class: S(["b-secondary-nav-item", o(u)]),
21
- onClick: l
22
- }, [
23
- i(o(k), {
24
- class: "b-secondary-nav-item__title",
25
- variant: "body",
26
- stronger: ""
27
- }, {
28
- default: b(() => [
29
- p(f(e.label), 1)
30
- ]),
31
- _: 1
32
- })
33
- ], 2));
34
- }
35
- });
36
- const I = /* @__PURE__ */ y(w, [["__scopeId", "data-v-aa44c602"]]), D = ["aria-label"], j = { class: "b-secondary-nav__list" }, z = {}, F = /* @__PURE__ */ v({
37
- ...z,
38
- __name: "secondary-nav-category",
39
- props: {
40
- label: null,
41
- items: null
42
- },
43
- setup(e) {
44
- return (_, c) => (t(), s("section", {
45
- class: "b-secondary-nav-category",
46
- "aria-label": e.label
47
- }, [
48
- i(o(k), {
49
- el: "h1",
50
- class: "b-secondary-nav-category__label",
51
- variant: "caption",
52
- stronger: ""
53
- }, {
54
- default: b(() => [
55
- p(f(e.label), 1)
56
- ]),
57
- _: 1
58
- }),
59
- g("ul", j, [
60
- (t(!0), s(h, null, N(e.items, (a) => (t(), s("li", {
61
- key: a.value
62
- }, [
63
- i(o(I), {
64
- label: a.label,
65
- value: a.value
66
- }, null, 8, ["label", "value"])
67
- ]))), 128))
68
- ])
69
- ], 8, D));
70
- }
71
- });
72
- const L = /* @__PURE__ */ y(F, [["__scopeId", "data-v-130510eb"]]), O = { class: "b-secondary-nav" }, R = { class: "b-secondary-nav__list" }, Y = {}, q = /* @__PURE__ */ v({
73
- ...Y,
74
- __name: "secondary-nav",
75
- props: {
76
- items: null,
77
- value: null
78
- },
79
- emits: ["change"],
80
- setup(e, { emit: _ }) {
81
- const c = e, a = B(c.value), r = (l) => {
82
- a.value = l, _("change", l);
83
- }, u = {
84
- activeItemValue: $(a),
85
- updateActiveItemValue: r
86
- };
87
- return A(
88
- () => c.value,
89
- (l) => {
90
- a.value = l;
91
- }
92
- ), E(x, u), (l, d) => (t(), s("nav", O, [
93
- g("ul", R, [
94
- (t(!0), s(h, null, N(e.items, (n) => (t(), s("li", {
95
- key: n.label
96
- }, [
97
- "items" in n ? (t(), m(o(L), {
98
- key: 0,
99
- label: n.label,
100
- items: n.items
101
- }, null, 8, ["label", "items"])) : (t(), m(o(I), {
102
- key: 1,
103
- label: n.label,
104
- value: n.value
105
- }, null, 8, ["label", "value"]))
106
- ]))), 128))
107
- ])
108
- ]));
109
- }
110
- });
111
- const K = /* @__PURE__ */ y(q, [["__scopeId", "data-v-93e76daf"]]);
1
+ import { s as e } from "./chunks/secondary-nav.D66nxbU-.js";
112
2
  export {
113
- K as BentoSecondaryNav
3
+ e as BentoSecondaryNav
114
4
  };
115
5
  //# sourceMappingURL=secondary-nav.js.map
@@ -1 +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, watch } 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 watch(\n () => props.value,\n value => {\n activeItemValue.value = value;\n }\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","watch","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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8ICiDAC,IAAA,CAAA;;;;;;;;;iBA9CAV,IAAAW,EAAAN,EAAA,KAAA,GACAJ,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;AAAA,MAAA,MAAAV,EAAA;AAAA,MACgB,CAAAO,MAAA;AAER,QAAAZ,EAAA,QAAAY;AAAA,MAAwB;AAAA,IAC5B,GAGJI,EAAAlB,GAAAe,CAAA;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"secondary-nav.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}