@adyen/bento-vue2 1.72.0 → 1.74.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 (334) hide show
  1. package/dist/@types/components.d.ts +2 -10
  2. package/dist/@types/index.d.ts +1538 -1703
  3. package/dist/@types/use-form-v4.d.ts +1 -1
  4. package/dist/accordion.js +1 -1
  5. package/dist/action-bar.js +1 -1
  6. package/dist/alert.js +1 -1
  7. package/dist/assets/accordion-item.css +1 -1
  8. package/dist/assets/action-bar.css +1 -1
  9. package/dist/assets/avatar.css +1 -1
  10. package/dist/assets/base-modal.css +1 -1
  11. package/dist/assets/button-actions.css +1 -1
  12. package/dist/assets/button.css +1 -1
  13. package/dist/assets/calendar.css +1 -1
  14. package/dist/assets/card.css +1 -1
  15. package/dist/assets/country.css +1 -1
  16. package/dist/assets/currency.css +1 -1
  17. package/dist/assets/data-grid-template.css +1 -1
  18. package/dist/assets/data-grid.css +1 -1
  19. package/dist/assets/date-picker.css +1 -1
  20. package/dist/assets/date-range-picker.css +1 -1
  21. package/dist/assets/dialog-page.css +1 -1
  22. package/dist/assets/dropdown-default-textbox.css +1 -1
  23. package/dist/assets/dropdown-tag.css +1 -1
  24. package/dist/assets/dropdown.css +1 -1
  25. package/dist/assets/file-uploader.css +1 -1
  26. package/dist/assets/filter-bar.css +1 -1
  27. package/dist/assets/form-layout-title.css +1 -1
  28. package/dist/assets/header-meta.css +1 -1
  29. package/dist/assets/header-with-views.css +1 -1
  30. package/dist/assets/input-field-password.css +1 -1
  31. package/dist/assets/input-field-phone-number.css +1 -1
  32. package/dist/assets/input-field.css +1 -1
  33. package/dist/assets/inspector.css +1 -1
  34. package/dist/assets/listbox-option-tag.css +1 -1
  35. package/dist/assets/loading-indicator.css +1 -1
  36. package/dist/assets/modal-fullscreen.css +1 -1
  37. package/dist/assets/pagination.css +1 -1
  38. package/dist/assets/popper-container.css +1 -1
  39. package/dist/assets/radio-group.css +1 -1
  40. package/dist/assets/radio-input.css +1 -1
  41. package/dist/assets/secondary-nav.css +1 -1
  42. package/dist/assets/segmented-control.css +1 -1
  43. package/dist/assets/selection-card-group.css +1 -1
  44. package/dist/assets/sidepanel.css +1 -1
  45. package/dist/assets/step.css +1 -1
  46. package/dist/assets/tab.css +1 -1
  47. package/dist/assets/textarea.css +1 -1
  48. package/dist/assets/timeline-item.css +1 -1
  49. package/dist/assets/toggle.css +1 -1
  50. package/dist/assets/tooltip.css +1 -1
  51. package/dist/assets/tutorial.css +1 -1
  52. package/dist/assets/use-cached-selected-values.css +1 -1
  53. package/dist/avatar.js +1 -1
  54. package/dist/button.js +3 -3
  55. package/dist/card.js +1 -1
  56. package/dist/checkbox.js +2 -2
  57. package/dist/chip.js +1 -1
  58. package/dist/chunks/{accordion-item.CoqaoVnC.js → accordion-item.nQhXD2tV.js} +2 -2
  59. package/dist/chunks/{accordion-item.CoqaoVnC.js.map → accordion-item.nQhXD2tV.js.map} +1 -1
  60. package/dist/chunks/{action-bar.Bxrtx1Vj.js → action-bar.MXZTIUNk.js} +5 -5
  61. package/dist/chunks/{action-bar.Bxrtx1Vj.js.map → action-bar.MXZTIUNk.js.map} +1 -1
  62. package/dist/chunks/{ai-button.FRPkTHz6.js → ai-button.DBwtNkyS.js} +2 -2
  63. package/dist/chunks/{ai-button.FRPkTHz6.js.map → ai-button.DBwtNkyS.js.map} +1 -1
  64. package/dist/chunks/{alert.CMyL-zWT.js → alert.SZPP58tl.js} +3 -3
  65. package/dist/chunks/{alert.CMyL-zWT.js.map → alert.SZPP58tl.js.map} +1 -1
  66. package/dist/chunks/{avatar.KdcsNOsm.js → avatar.CeDqq2Z-.js} +3 -3
  67. package/dist/chunks/avatar.CeDqq2Z-.js.map +1 -0
  68. package/dist/chunks/{base-modal.DInbAZlp.js → base-modal.BMdlCSd0.js} +7 -7
  69. package/dist/chunks/base-modal.BMdlCSd0.js.map +1 -0
  70. package/dist/chunks/{button-actions-with-menu.BtWUxmSL.js → button-actions-with-menu.BFRkPi6g.js} +2 -2
  71. package/dist/chunks/{button-actions-with-menu.BtWUxmSL.js.map → button-actions-with-menu.BFRkPi6g.js.map} +1 -1
  72. package/dist/chunks/{button-actions.55vIvDsX.js → button-actions.B81vY51z.js} +11 -14
  73. package/dist/chunks/button-actions.B81vY51z.js.map +1 -0
  74. package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
  75. package/dist/chunks/{button.CilT7NmM.js → button.CS_kdxYh.js} +3 -3
  76. package/dist/chunks/button.CS_kdxYh.js.map +1 -0
  77. package/dist/chunks/{calendar.M69sfyB9.js → calendar.EfqJlztU.js} +191 -187
  78. package/dist/chunks/calendar.EfqJlztU.js.map +1 -0
  79. package/dist/chunks/{card.C11dmth8.js → card.VOCKI7Ad.js} +8 -8
  80. package/dist/chunks/card.VOCKI7Ad.js.map +1 -0
  81. package/dist/chunks/{checkbox-group.Cr3WdkDM.js → checkbox-group.DETXTJqI.js} +4 -4
  82. package/dist/chunks/{checkbox-group.Cr3WdkDM.js.map → checkbox-group.DETXTJqI.js.map} +1 -1
  83. package/dist/chunks/{checkbox.D7-f9Y6w.js → checkbox.BPtHAAEa.js} +4 -4
  84. package/dist/chunks/{checkbox.D7-f9Y6w.js.map → checkbox.BPtHAAEa.js.map} +1 -1
  85. package/dist/chunks/{chip.omQX_Ziq.js → chip.fqEIkR-s.js} +2 -2
  86. package/dist/chunks/{chip.omQX_Ziq.js.map → chip.fqEIkR-s.js.map} +1 -1
  87. package/dist/chunks/{code-snippet.BGrwAxWy.js → code-snippet.VtrsOTEC.js} +7 -7
  88. package/dist/chunks/{code-snippet.BGrwAxWy.js.map → code-snippet.VtrsOTEC.js.map} +1 -1
  89. package/dist/chunks/{controls-group.CWeUgE2P.js → controls-group.82mB_GDw.js} +2 -2
  90. package/dist/chunks/{controls-group.CWeUgE2P.js.map → controls-group.82mB_GDw.js.map} +1 -1
  91. package/dist/chunks/{copy._BdbMnHK.js → copy.WQDLcs_T.js} +5 -5
  92. package/dist/chunks/{copy._BdbMnHK.js.map → copy.WQDLcs_T.js.map} +1 -1
  93. package/dist/chunks/country.CGn5WjFx.js +69 -0
  94. package/dist/chunks/country.CGn5WjFx.js.map +1 -0
  95. package/dist/chunks/country.types.C0Q_hhgJ.js.map +1 -1
  96. package/dist/chunks/{currency.MT3baDtO.js → currency.DDB4G_A8.js} +52 -35
  97. package/dist/chunks/currency.DDB4G_A8.js.map +1 -0
  98. package/dist/chunks/{dashboard-section.e7ozaS9M.js → dashboard-section.jIpBvP6X.js} +3 -3
  99. package/dist/chunks/{dashboard-section.e7ozaS9M.js.map → dashboard-section.jIpBvP6X.js.map} +1 -1
  100. package/dist/chunks/{dashed-underline.CGU6o7ni.js → dashed-underline.K-l-7bDq.js} +3 -3
  101. package/dist/chunks/{dashed-underline.CGU6o7ni.js.map → dashed-underline.K-l-7bDq.js.map} +1 -1
  102. package/dist/chunks/{data-grid-template.BaPjUlZ2.js → data-grid-template.CozTcWQ0.js} +4 -4
  103. package/dist/chunks/{data-grid-template.BaPjUlZ2.js.map → data-grid-template.CozTcWQ0.js.map} +1 -1
  104. package/dist/chunks/{data-grid.B_Ha2vma.js → data-grid.DN9xml8y.js} +1275 -1214
  105. package/dist/chunks/data-grid.DN9xml8y.js.map +1 -0
  106. package/dist/chunks/{date-input.BqBdAO1E.js → date-format.B8RU7D42.js} +6 -6
  107. package/dist/chunks/date-format.B8RU7D42.js.map +1 -0
  108. package/dist/chunks/date-picker.DoYYzWcA.js +158 -0
  109. package/dist/chunks/date-picker.DoYYzWcA.js.map +1 -0
  110. package/dist/chunks/date-range-picker.C_pJ8yH5.js +917 -0
  111. package/dist/chunks/date-range-picker.C_pJ8yH5.js.map +1 -0
  112. package/dist/chunks/{date.BTdCYdkj.js → date.C1z2TXzM.js} +2 -2
  113. package/dist/chunks/{date.BTdCYdkj.js.map → date.C1z2TXzM.js.map} +1 -1
  114. package/dist/chunks/debounce.DUTu11PS.js.map +1 -1
  115. package/dist/chunks/{dialog-page.LA_ZhbYa.js → dialog-page.D23qNwKW.js} +3 -3
  116. package/dist/chunks/dialog-page.D23qNwKW.js.map +1 -0
  117. package/dist/chunks/{dropdown-default-textbox.CDm-PQfc.js → dropdown-default-textbox.yLeN0E2z.js} +6 -6
  118. package/dist/chunks/dropdown-default-textbox.yLeN0E2z.js.map +1 -0
  119. package/dist/chunks/dropdown-tag.DBnurtCQ.js +245 -0
  120. package/dist/chunks/dropdown-tag.DBnurtCQ.js.map +1 -0
  121. package/dist/chunks/{dropdown.DQbTuKc5.js → dropdown.BOvtYKXS.js} +202 -193
  122. package/dist/chunks/dropdown.BOvtYKXS.js.map +1 -0
  123. package/dist/chunks/{empty-state.DNTrhYUm.js → empty-state.BsdRxzS2.js} +2 -2
  124. package/dist/chunks/{empty-state.DNTrhYUm.js.map → empty-state.BsdRxzS2.js.map} +1 -1
  125. package/dist/chunks/es6.MoTTyETW.js.map +1 -1
  126. package/dist/chunks/{field-label.BKzuCnXr.js → field-label.Auq-Pzho.js} +3 -3
  127. package/dist/chunks/{field-label.BKzuCnXr.js.map → field-label.Auq-Pzho.js.map} +1 -1
  128. package/dist/chunks/{file-uploader.BEClGxsF.js → file-uploader.BGoCYrnw.js} +27 -28
  129. package/dist/chunks/file-uploader.BGoCYrnw.js.map +1 -0
  130. package/dist/chunks/{filter-bar.Dnnv0rpV.js → filter-bar.DzHJi42d.js} +680 -746
  131. package/dist/chunks/filter-bar.DzHJi42d.js.map +1 -0
  132. package/dist/chunks/{fixed-scroller.QCXpkadN.js → fixed-scroller.CgVOf5VE.js} +3 -3
  133. package/dist/chunks/{fixed-scroller.QCXpkadN.js.map → fixed-scroller.CgVOf5VE.js.map} +1 -1
  134. package/dist/chunks/focus-trap.BJfpIboH.js.map +1 -1
  135. package/dist/chunks/{footer-actions.BTELM6rh.js → footer-actions.CLq_kBwY.js} +3 -3
  136. package/dist/chunks/{footer-actions.BTELM6rh.js.map → footer-actions.CLq_kBwY.js.map} +1 -1
  137. package/dist/chunks/{form-layout-title.aXVuAWiG.js → form-layout-title.DoF6ovPB.js} +23 -16
  138. package/dist/chunks/form-layout-title.DoF6ovPB.js.map +1 -0
  139. package/dist/chunks/get-slot-text.BQS5Olxm.js.map +1 -1
  140. package/dist/chunks/{header-meta.DZYH-qg-.js → header-meta.uiIO1wHP.js} +30 -27
  141. package/dist/chunks/{header-meta.DZYH-qg-.js.map → header-meta.uiIO1wHP.js.map} +1 -1
  142. package/dist/chunks/{header-with-views.DjZa4Wob.js → header-with-views.t5Fr63SD.js} +87 -87
  143. package/dist/chunks/header-with-views.t5Fr63SD.js.map +1 -0
  144. package/dist/chunks/{header.CQMiTG7f.js → header.DwSyDQ68.js} +3 -3
  145. package/dist/chunks/{header.CQMiTG7f.js.map → header.DwSyDQ68.js.map} +1 -1
  146. package/dist/chunks/index.B6WW_F-J.js +31 -0
  147. package/dist/chunks/index.B6WW_F-J.js.map +1 -0
  148. package/dist/chunks/{info-icon.fB7jf3NJ.js → info-icon.Bhka3oGh.js} +3 -3
  149. package/dist/chunks/{info-icon.fB7jf3NJ.js.map → info-icon.Bhka3oGh.js.map} +1 -1
  150. package/dist/chunks/{input-field-password.BPujvbx8.js → input-field-password.Dm3HYonF.js} +24 -24
  151. package/dist/chunks/input-field-password.Dm3HYonF.js.map +1 -0
  152. package/dist/chunks/{input-field-phone-number.bqUe_CVf.js → input-field-phone-number.bZauIuHJ.js} +1149 -1149
  153. package/dist/chunks/{input-field-phone-number.bqUe_CVf.js.map → input-field-phone-number.bZauIuHJ.js.map} +1 -1
  154. package/dist/chunks/{input-field.CwF6ldRY.js → input-field.D52XYEzU.js} +5 -5
  155. package/dist/chunks/input-field.D52XYEzU.js.map +1 -0
  156. package/dist/chunks/{inspector.g3OErNAU.js → inspector.pmpheRch.js} +4 -4
  157. package/dist/chunks/inspector.pmpheRch.js.map +1 -0
  158. package/dist/chunks/keyboard-navigation.pB8weElW.js.map +1 -1
  159. package/dist/chunks/{link.C4htMrDV.js → link.D8qpqg3W.js} +2 -2
  160. package/dist/chunks/{link.C4htMrDV.js.map → link.D8qpqg3W.js.map} +1 -1
  161. package/dist/chunks/{listbox-option-tag.UaD4kmXc.js → listbox-option-tag.Dl8GwHLT.js} +3 -3
  162. package/dist/chunks/listbox-option-tag.Dl8GwHLT.js.map +1 -0
  163. package/dist/chunks/loading-indicator.PxbRzshH.js +42 -0
  164. package/dist/chunks/loading-indicator.PxbRzshH.js.map +1 -0
  165. package/dist/chunks/{modal-fullscreen.B-9Ke6Ya.js → modal-fullscreen.BSKm6yn_.js} +6 -6
  166. package/dist/chunks/{modal-fullscreen.B-9Ke6Ya.js.map → modal-fullscreen.BSKm6yn_.js.map} +1 -1
  167. package/dist/chunks/{modal.qybFapnI.js → modal.Bp5twyjz.js} +6 -6
  168. package/dist/chunks/{modal.qybFapnI.js.map → modal.Bp5twyjz.js.map} +1 -1
  169. package/dist/chunks/on-click-outside.D9aY9g8G.js.map +1 -1
  170. package/dist/chunks/{pagination.BWTyXMRW.js → pagination.CKD9FDrA.js} +5 -5
  171. package/dist/chunks/pagination.CKD9FDrA.js.map +1 -0
  172. package/dist/chunks/popover.types.DK6opPkz.js +6 -0
  173. package/dist/chunks/{popover.types.iyDoIAOE.js.map → popover.types.DK6opPkz.js.map} +1 -1
  174. package/dist/chunks/{popper-container.C9KCAJxI.js → popper-container.agLYtGwv.js} +2 -2
  175. package/dist/chunks/{popper-container.C9KCAJxI.js.map → popper-container.agLYtGwv.js.map} +1 -1
  176. package/dist/chunks/{promo-banner.MI5NC2UT.js → promo-banner.DikQcQU2.js} +3 -3
  177. package/dist/chunks/promo-banner.DikQcQU2.js.map +1 -0
  178. package/dist/chunks/radio-group.AcYMFudv.js +177 -0
  179. package/dist/chunks/radio-group.AcYMFudv.js.map +1 -0
  180. package/dist/chunks/{radio-input.D8mv2EYC.js → radio-input.kzb4gxLW.js} +17 -17
  181. package/dist/chunks/radio-input.kzb4gxLW.js.map +1 -0
  182. package/dist/chunks/{rich-text-editor.C905JEDW.js → rich-text-editor.BZgQ578S.js} +7 -7
  183. package/dist/chunks/{rich-text-editor.C905JEDW.js.map → rich-text-editor.BZgQ578S.js.map} +1 -1
  184. package/dist/chunks/{search-bar.CKt_-tZH.js → search-bar.c-w7Uky2.js} +4 -4
  185. package/dist/chunks/{search-bar.CKt_-tZH.js.map → search-bar.c-w7Uky2.js.map} +1 -1
  186. package/dist/chunks/{secondary-nav.B5L2bLmm.js → secondary-nav.D69COlqF.js} +9 -9
  187. package/dist/chunks/secondary-nav.D69COlqF.js.map +1 -0
  188. package/dist/chunks/{segmented-control.Dc34mUMM.js → segmented-control.Cma_nu0G.js} +17 -16
  189. package/dist/chunks/segmented-control.Cma_nu0G.js.map +1 -0
  190. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -1
  191. package/dist/chunks/{selection-card-group.CBVKMu6b.js → selection-card-group.8UIir78G.js} +5 -5
  192. package/dist/chunks/selection-card-group.8UIir78G.js.map +1 -0
  193. package/dist/chunks/{sidepanel.uWNc58r7.js → sidepanel.A9yG4FP_.js} +12 -12
  194. package/dist/chunks/{sidepanel.uWNc58r7.js.map → sidepanel.A9yG4FP_.js.map} +1 -1
  195. package/dist/chunks/{step.D8blWwfR.js → step.TzzZSA9f.js} +4 -4
  196. package/dist/chunks/step.TzzZSA9f.js.map +1 -0
  197. package/dist/chunks/{structured-list-item.BLalgOps.js → structured-list-item.CMsVwwA6.js} +6 -6
  198. package/dist/chunks/{structured-list-item.BLalgOps.js.map → structured-list-item.CMsVwwA6.js.map} +1 -1
  199. package/dist/chunks/{summary-grid.types.DqzYJ9_N.js → summary-grid.types.B80533d1.js} +6 -6
  200. package/dist/chunks/{summary-grid.types.DqzYJ9_N.js.map → summary-grid.types.B80533d1.js.map} +1 -1
  201. package/dist/chunks/{tab.D8YyoNFV.js → tab.CTui3j3e.js} +3 -3
  202. package/dist/chunks/tab.CTui3j3e.js.map +1 -0
  203. package/dist/chunks/{tag.Tjg4linG.js → tag.BwKc2d2E.js} +2 -2
  204. package/dist/chunks/{tag.Tjg4linG.js.map → tag.BwKc2d2E.js.map} +1 -1
  205. package/dist/chunks/textarea.CIQuLWQ8.js +165 -0
  206. package/dist/chunks/textarea.CIQuLWQ8.js.map +1 -0
  207. package/dist/chunks/{timeline-item.DaRKHndA.js → timeline-item.VSw9vKdO.js} +10 -10
  208. package/dist/chunks/timeline-item.VSw9vKdO.js.map +1 -0
  209. package/dist/chunks/{toast.gMDjItrP.js → toast.B4J4V6n-.js} +3 -3
  210. package/dist/chunks/{toast.gMDjItrP.js.map → toast.B4J4V6n-.js.map} +1 -1
  211. package/dist/chunks/toggle.BJMXpHRu.js +108 -0
  212. package/dist/chunks/toggle.BJMXpHRu.js.map +1 -0
  213. package/dist/chunks/{tooltip.DOD_4rkI.js → tooltip.D3SDcRef.js} +64 -68
  214. package/dist/chunks/tooltip.D3SDcRef.js.map +1 -0
  215. package/dist/chunks/{tutorial.BwnRyUoh.js → tutorial.B32GMtIj.js} +6 -6
  216. package/dist/chunks/tutorial.B32GMtIj.js.map +1 -0
  217. package/dist/chunks/{use-cached-selected-values.C7j6YhuC.js → use-cached-selected-values.IsfhJHxQ.js} +19 -19
  218. package/dist/chunks/use-cached-selected-values.IsfhJHxQ.js.map +1 -0
  219. package/dist/chunks/{use-country-items.DFdM2Ank.js → use-country-items.B3Cd3Tdo.js} +2 -2
  220. package/dist/chunks/use-country-items.B3Cd3Tdo.js.map +1 -0
  221. package/dist/chunks/use-country-phon-code.Bui3zD6W.js.map +1 -1
  222. package/dist/chunks/use-default-slot-validator.BDn0wkYP.js.map +1 -1
  223. package/dist/chunks/use-has-slot.C9lQZ6nz.js.map +1 -1
  224. package/dist/code-snippet.js +1 -1
  225. package/dist/country.js +1 -1
  226. package/dist/currency.js +1 -1
  227. package/dist/dashboard-template.js +1 -1
  228. package/dist/dashed-underline.js +1 -1
  229. package/dist/data-grid-template.js +1 -1
  230. package/dist/data-grid.js +1 -1
  231. package/dist/date-picker.js +5 -4
  232. package/dist/date-range-picker.js +5 -4
  233. package/dist/date.js +1 -1
  234. package/dist/dropdown.js +4 -4
  235. package/dist/empty-state.js +1 -1
  236. package/dist/file-uploader.js +1 -1
  237. package/dist/filter-bar.js +5 -4
  238. package/dist/form-layout.js +1 -1
  239. package/dist/header-with-views.js +1 -1
  240. package/dist/header.js +1 -1
  241. package/dist/index.js +405 -329
  242. package/dist/index.js.map +1 -1
  243. package/dist/info-icon.js +1 -1
  244. package/dist/input-field-password.js +1 -1
  245. package/dist/input-field-phone-number.js +1 -1
  246. package/dist/input-field.js +1 -1
  247. package/dist/inspector.js +1 -1
  248. package/dist/internal.js +12 -12
  249. package/dist/link.js +1 -1
  250. package/dist/loading-indicator.js +1 -1
  251. package/dist/menu.js +1 -1
  252. package/dist/modal-fullscreen.js +1 -1
  253. package/dist/modal.js +2 -2
  254. package/dist/pagination.js +1 -1
  255. package/dist/popover.js +2 -2
  256. package/dist/popper-container.js +1 -1
  257. package/dist/promo-banner.js +1 -1
  258. package/dist/radio-group.js +2 -2
  259. package/dist/rich-text-editor.js +1 -1
  260. package/dist/search-bar.js +2 -2
  261. package/dist/secondary-nav.js +1 -1
  262. package/dist/segmented-control.js +1 -1
  263. package/dist/selection-card.js +1 -1
  264. package/dist/sidepanel.js +1 -1
  265. package/dist/stepper.js +1 -1
  266. package/dist/structured-list.js +1 -1
  267. package/dist/styles/bento-dark.css +25 -15
  268. package/dist/styles/bento-light.css +9 -3
  269. package/dist/styles/bento.css +9 -3
  270. package/dist/styles/legacy.css +9 -3
  271. package/dist/styles/styleguide.css +9 -3
  272. package/dist/summary-grid.js +1 -1
  273. package/dist/tabs.js +1 -1
  274. package/dist/tag.js +1 -1
  275. package/dist/textarea.js +1 -1
  276. package/dist/timeline.js +1 -1
  277. package/dist/toast.js +1 -1
  278. package/dist/toggle.js +1 -1
  279. package/dist/tutorial.js +1 -1
  280. package/dist/use-form-v4.js.map +1 -1
  281. package/dist/web-types.json +1297 -1026
  282. package/package.json +12 -12
  283. package/dist/chunks/avatar.KdcsNOsm.js.map +0 -1
  284. package/dist/chunks/base-modal.DInbAZlp.js.map +0 -1
  285. package/dist/chunks/button-actions.55vIvDsX.js.map +0 -1
  286. package/dist/chunks/button.CilT7NmM.js.map +0 -1
  287. package/dist/chunks/calendar.M69sfyB9.js.map +0 -1
  288. package/dist/chunks/card.C11dmth8.js.map +0 -1
  289. package/dist/chunks/country.1yIZNjdj.js +0 -94
  290. package/dist/chunks/country.1yIZNjdj.js.map +0 -1
  291. package/dist/chunks/currency.MT3baDtO.js.map +0 -1
  292. package/dist/chunks/data-grid.B_Ha2vma.js.map +0 -1
  293. package/dist/chunks/date-input.BqBdAO1E.js.map +0 -1
  294. package/dist/chunks/date-picker.CGTMHUNH.js +0 -240
  295. package/dist/chunks/date-picker.CGTMHUNH.js.map +0 -1
  296. package/dist/chunks/date-range-picker.ChGfJUPq.js +0 -971
  297. package/dist/chunks/date-range-picker.ChGfJUPq.js.map +0 -1
  298. package/dist/chunks/dialog-page.LA_ZhbYa.js.map +0 -1
  299. package/dist/chunks/dropdown-default-textbox.CDm-PQfc.js.map +0 -1
  300. package/dist/chunks/dropdown-tag.Bwl0fY7o.js +0 -306
  301. package/dist/chunks/dropdown-tag.Bwl0fY7o.js.map +0 -1
  302. package/dist/chunks/dropdown.DQbTuKc5.js.map +0 -1
  303. package/dist/chunks/file-uploader.BEClGxsF.js.map +0 -1
  304. package/dist/chunks/filter-bar.Dnnv0rpV.js.map +0 -1
  305. package/dist/chunks/form-layout-title.aXVuAWiG.js.map +0 -1
  306. package/dist/chunks/header-with-views.DjZa4Wob.js.map +0 -1
  307. package/dist/chunks/i18n.BQkEbtPM.js +0 -31
  308. package/dist/chunks/i18n.BQkEbtPM.js.map +0 -1
  309. package/dist/chunks/input-field-password.BPujvbx8.js.map +0 -1
  310. package/dist/chunks/input-field.CwF6ldRY.js.map +0 -1
  311. package/dist/chunks/inspector.g3OErNAU.js.map +0 -1
  312. package/dist/chunks/listbox-option-tag.UaD4kmXc.js.map +0 -1
  313. package/dist/chunks/loading-indicator.DXc7I1Lm.js +0 -48
  314. package/dist/chunks/loading-indicator.DXc7I1Lm.js.map +0 -1
  315. package/dist/chunks/pagination.BWTyXMRW.js.map +0 -1
  316. package/dist/chunks/popover.types.iyDoIAOE.js +0 -6
  317. package/dist/chunks/promo-banner.MI5NC2UT.js.map +0 -1
  318. package/dist/chunks/radio-group.DHUa6baR.js +0 -231
  319. package/dist/chunks/radio-group.DHUa6baR.js.map +0 -1
  320. package/dist/chunks/radio-input.D8mv2EYC.js.map +0 -1
  321. package/dist/chunks/secondary-nav.B5L2bLmm.js.map +0 -1
  322. package/dist/chunks/segmented-control.Dc34mUMM.js.map +0 -1
  323. package/dist/chunks/selection-card-group.CBVKMu6b.js.map +0 -1
  324. package/dist/chunks/step.D8blWwfR.js.map +0 -1
  325. package/dist/chunks/tab.D8YyoNFV.js.map +0 -1
  326. package/dist/chunks/textarea.DUPV-I-L.js +0 -214
  327. package/dist/chunks/textarea.DUPV-I-L.js.map +0 -1
  328. package/dist/chunks/timeline-item.DaRKHndA.js.map +0 -1
  329. package/dist/chunks/toggle.Ct-5NUGu.js +0 -121
  330. package/dist/chunks/toggle.Ct-5NUGu.js.map +0 -1
  331. package/dist/chunks/tooltip.DOD_4rkI.js.map +0 -1
  332. package/dist/chunks/tutorial.BwnRyUoh.js.map +0 -1
  333. package/dist/chunks/use-cached-selected-values.C7j6YhuC.js.map +0 -1
  334. package/dist/chunks/use-country-items.DFdM2Ank.js.map +0 -1
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as v, ref as B, computed as o } from "vue";
2
2
  import { b as y } from "./index.BDK4hwK_.js";
3
- import { B as R } from "./button.CilT7NmM.js";
3
+ import { B as R } from "./button.CS_kdxYh.js";
4
4
  import { a as c, b as I, B as b } from "./image.C2D2hKat.js";
5
5
  import { B as T } from "./typography.hlOAxsEn.js";
6
- import { u as C } from "./i18n.BQkEbtPM.js";
6
+ import { u as C } from "./index.B6WW_F-J.js";
7
7
  import { g as O } from "./generate-uid.NJ8tVoha.js";
8
8
  import { n as h } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
9
9
  import "../assets/promo-banner.css";
@@ -67,4 +67,4 @@ export {
67
67
  l as a,
68
68
  Z as p
69
69
  };
70
- //# sourceMappingURL=promo-banner.MI5NC2UT.js.map
70
+ //# sourceMappingURL=promo-banner.DikQcQU2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"promo-banner.DikQcQU2.js","sources":["../../src/components/promo-banner/promo-banner.types.ts","../../src/components/promo-banner/promo-banner.vue"],"sourcesContent":["import { type BentoButtonActionObject } from '@/components/button';\nimport { type BentoButtonVariant } from '../button';\nimport { type BentoImageAspectRatio, type BentoImageProps } from '../image';\n\nexport interface BentoPromoBannerProps {\n /**\n * List of actions that will be used to render the buttons.\n *\n * Each object in the list should have a `title`, an `event` and a `variant`.\n *\n * `title`: Button's text.\n * `event`: Event triggered when clicking the Button.\n * `variant`: Button's style.\n *\n * ```\n * [{\n * title: 'Primary',\n * event: () => { ... },\n * variant: 'primary'\n * }, {\n * title: 'Secondary',\n * event: () => { ... }\n * variant: 'secondary'\n * }]\n * ```\n */\n actions?: Array<BentoPromoBannerAction>;\n\n /**\n * Defines the color of banner's background\n */\n color?: `${BentoPromoBannerColor}`;\n\n /**\n * Defines whether the banner has a `Dismiss` button\n */\n isDismissible?: boolean;\n\n /**\n * Defines whether the banner has a `Dismiss` button\n */\n dismissButtonText?: string;\n\n /**\n * Defines the image used in the banner.\n *\n * The promotional banner adapts to different container sizes based on the image's `aspect-ratio`.\n * Only the following `aspect-ratio` values are supported: `16:9`, `2:1`, and `1:1`.\n *\n * In Storybook, to verify the image display, update `image.src` and `image.aspectRatio` as follows:\n * - `./1-1.png` with an aspect ratio of `1:1`\n * - `./2-1.png` with an aspect ratio of `2:1`\n * - `./16-9.png` with an aspect ratio of `16:9`\n */\n image: BentoPromoBannerImage;\n\n /**\n * Defines style of the banner.\n *\n * The horizontal layout is responsive to the container size and\n * changes depending on the image aspect ratio.\n *\n * The vertical layout remains the same regardless of container size.\n */\n layout?: `${BentoPromoBannerLayout}`;\n\n /**\n * Defines the title text to be shown on the banner\n */\n title: string;\n}\n\nexport type BentoPromoBannerImageAspectRatio = `${\n | BentoImageAspectRatio.P16_9\n | BentoImageAspectRatio.P2_1\n | BentoImageAspectRatio.P1_1}`;\n\nexport type BentoPromoBannerButtonVariant = `${BentoButtonVariant.PRIMARY | BentoButtonVariant.SECONDARY}`;\n\n/**\n * @deprecated for usage with generic. Remove the generic and use it as `BentoPromoBannerAction`.\n */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport type BentoPromoBannerAction<IconType = object> = BentoButtonActionObject & {\n variant: BentoPromoBannerButtonVariant;\n};\n\nexport type BentoPromoBannerImage = {\n src: BentoImageProps['src'];\n alt?: BentoImageProps['alt'];\n aspectRatio: BentoPromoBannerImageAspectRatio;\n};\n\nexport enum BentoPromoBannerColor {\n BLUE = 'blue',\n GREY = 'grey',\n GREEN = 'green',\n}\n\nexport enum BentoPromoBannerLayout {\n HORIZONTAL = 'horizontal',\n VERTICAL = 'vertical',\n}\n","<template>\n <section\n ref=\"promoBannerRef\"\n class=\"b-promo-banner\"\n :class=\"bannerConditionalClass\"\n :aria-labelledby=\"promoBannerTitleId\"\n >\n <div class=\"b-promo-banner__content\">\n <div class=\"b-promo-banner__content-header\">\n <bento-typography :id=\"promoBannerTitleId\" variant=\"title\" large>\n {{ title }}\n </bento-typography>\n\n <slot name=\"description\" />\n </div>\n\n <div class=\"b-promo-banner__content-actions\">\n <template v-if=\"actions\">\n <bento-button\n v-for=\"(button, index) in actions\"\n :key=\"index\"\n :variant=\"button.variant\"\n :critical=\"button.critical\"\n :disabled=\"button.disabled\"\n :inverse=\"button.inverse\"\n :icon-only=\"button.iconOnly\"\n :link=\"button.link\"\n @click=\"button.event\"\n >\n <template v-if=\"button.icon || button.iconLeft\" #iconLeft>\n <component :is=\"button.icon || button.iconLeft\" :svg-title=\"button.title\"></component>\n </template>\n\n <template v-if=\"!isIconOnly(button)\" #default>\n {{ button.title }}\n </template>\n\n <template v-if=\"button.iconRight\" #iconRight>\n <component :is=\"button.iconRight\" :svg-title=\"button.title\"></component>\n </template>\n </bento-button>\n </template>\n\n <bento-button v-if=\"isDismissible\" variant=\"secondary\" @click=\"emit('dismiss')\">\n {{ computedDismissButtonText }}\n </bento-button>\n </div>\n </div>\n\n <div class=\"b-promo-banner__image\">\n <bento-image\n class=\"b-promo-banner__image-item\"\n :src=\"image.src\"\n :alt=\"image.alt ?? ''\"\n :aspect-ratio=\"image.aspectRatio\"\n :object-fit=\"BentoImageObjectFit.CONTAIN\"\n ></bento-image>\n </div>\n </section>\n</template>\n\n<script setup lang=\"ts\">\n import { useElementSize } from '@vueuse/core';\n import { computed, ref } from 'vue';\n\n // Components\n import { BentoButton, type BentoButtonActionObject } from '@/components/button';\n import { BentoImage, BentoImageAspectRatio, BentoImageObjectFit } from '@/components/image';\n import { BentoTypography } from '@/components/typography';\n import { BentoPromoBannerColor, BentoPromoBannerLayout, type BentoPromoBannerProps } from './promo-banner.types';\n\n // Utils\n import { useI18n } from '@/utils/ts/i18n';\n\n import { generateUid } from '@/core/utils/ts';\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 actions: { default: null },\n color: { default: BentoPromoBannerColor.GREY },\n isDismissible: { type: Boolean, default: true },\n dismissButtonText: { default: null },\n image: null,\n layout: { default: BentoPromoBannerLayout.HORIZONTAL },\n title: null\n});\n\n const emit = defineEmits([\"dismiss\"]);\n\n const promoBannerRef = ref(null);\n const promoBannerSize = useElementSize(promoBannerRef);\n const promoBannerTitleId = generateUid('promoBannerTitle');\n\n const horizontalLayoutBreakpoint = computed(() => {\n if (props.image.aspectRatio === BentoImageAspectRatio.P16_9) {\n return 800;\n } else if (props.image.aspectRatio === BentoImageAspectRatio.P2_1) {\n return 850;\n } else if (props.image.aspectRatio === BentoImageAspectRatio.P1_1) {\n return 623;\n }\n\n return 0;\n });\n\n const bannerLayoutClass = computed(() => {\n // only horizontal layout is responsive and, by design, follows the container size\n if (\n props.layout === BentoPromoBannerLayout.HORIZONTAL &&\n promoBannerSize.width.value <= horizontalLayoutBreakpoint.value\n ) {\n return BentoPromoBannerLayout.VERTICAL;\n }\n\n return props.layout;\n });\n\n const bannerConditionalClass = computed(() =>\n [`b-promo-banner--${bannerLayoutClass.value}`, `b-promo-banner--${props.color}`].join(' ')\n );\n\n const isIconOnly = (button: BentoButtonActionObject) =>\n button.iconOnly && (button.iconLeft || button.iconRight || button.icon);\n\n const computedDismissButtonText = computed(() => props.dismissButtonText || t('dismiss'));\n</script>\n\n<script lang=\"ts\">\n /**\n * Promotional Banner highlights important information, announcements, or promotions.\n *\n * @example\n * import { BentoPromoBanner } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoPromoBanner },\n * template: `\n * <bento-promo-banner\n * title=\"Title\"\n * description=\"Brief description explaining and giving more information about the title\"\n * :image=\"{ src: '16-1.png', aspectRatio: '16:9' }\"\n * :actions=\"[{ title: 'Primary', event: () => {} }]\"\n * >\n * </bento-promo-banner>\n * `\n * };\n */\n export default {\n i18n: { messages },\n name: 'bento-promo-banner',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./promo-banner.scss\" />\n"],"names":["BentoPromoBannerColor","BentoPromoBannerColor2","BentoPromoBannerLayout","BentoPromoBannerLayout2","__default__","messages","t","useI18n","promoBannerRef","ref","promoBannerSize","useElementSize","promoBannerTitleId","generateUid","horizontalLayoutBreakpoint","computed","props","BentoImageAspectRatio","bannerLayoutClass","bannerConditionalClass","isIconOnly","button","computedDismissButtonText"],"mappings":";;;;;;;;;AA6FY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,OAAA,QACAA,EAAA,OAAA,QACAA,EAAA,QAAA,SAHQA,IAAAD,KAAA,CAAA,CAAA,GAMAE,IAAA,kBAAAC,OACRA,EAAA,aAAA,cACAA,EAAA,WAAA,YAFQA,IAAAD,KAAA,CAAA,CAAA;;;;;;;;;;;GCoDRE,IAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAAA,EACM,MAAA;AAErB;;;;;;;;;;;;;iBA3EA,EAAA,GAAAC,EAAA,IAAAC,EAAA,GAcAC,IAAAC,EAAA,IAAA,GACAC,IAAAC,EAAAH,CAAA,GACAI,IAAAC,EAAA,kBAAA,GAEAC,IAAAC,EAAA,MACIC,EAAA,MAAA,gBAAAC,EAAA,QACI,MAAOD,EAAA,MAAA,gBAAAC,EAAA,OAEP,MAAOD,EAAA,MAAA,gBAAAC,EAAA,OAEP,MAGJ,CAAO,GAGXC,IAAAH,EAAA,MAEIC,EAAA,WAAAd,EAAA,cAAAQ,EAAA,MAAA,SAAAI,EAAA,QAIIZ,EAAA,WAGJc,EAAA,MAAa,GAGjBG,IAAAJ;AAAA,MAA+B,MAAA,CAAA,mBAAAG,EAAA,KAAA,IAAA,mBAAAF,EAAA,KAAA,EAAA,EAAA,KAAA,GAAA;AAAA,IAC8D,GAG7FI,IAAA,CAAAC,MAAAA,EAAA,aAAAA,EAAA,YAAAA,EAAA,aAAAA,EAAA,OAGAC,IAAAP,EAAA,MAAAC,EAAA,qBAAAV,EAAA,SAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,177 @@
1
+ import { defineComponent as S, useSlots as E, toRefs as x, ref as I, computed as l, toRef as C, watch as L } from "vue";
2
+ import { u as O } from "./use-form-layout-loading.D3lALhtC.js";
3
+ import { u as R } from "./use-has-slot.C9lQZ6nz.js";
4
+ import { g as h } from "./generate-uid.NJ8tVoha.js";
5
+ import { B as N, d as V } from "./typography.hlOAxsEn.js";
6
+ import { B as w } from "./tag.BwKc2d2E.js";
7
+ import { u as k } from "./aria-label.CaUURpnB.js";
8
+ import { u as A } from "./use-default-slot-validator.BDn0wkYP.js";
9
+ import { g as $ } from "./get-slot-text.BQS5Olxm.js";
10
+ import { R as B, a as F } from "./radio-input.kzb4gxLW.js";
11
+ import { n as T } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
12
+ import { C as q } from "./controls-group.82mB_GDw.js";
13
+ import { E as D } from "./field-label.Auq-Pzho.js";
14
+ import "../assets/radio-group.css";
15
+ const G = {
16
+ name: "bento-radio-button",
17
+ model: { prop: "modelValue" }
18
+ }, H = /* @__PURE__ */ S({
19
+ ...G,
20
+ props: {
21
+ /**
22
+ * Disable the radio button (optional)
23
+ */
24
+ disabled: { type: Boolean, default: !1 },
25
+ /**
26
+ * Shows bento-radio-button in error state (optional)
27
+ */
28
+ hasError: { type: Boolean, default: !1 },
29
+ /**
30
+ * This property should not be used directly.
31
+ * It will be used by v-model directive on radio component.
32
+ */
33
+ modelValue: {
34
+ type: [String, Number],
35
+ default: null
36
+ },
37
+ /**
38
+ * Sets the radio button to readonly (optional)
39
+ */
40
+ readonly: { type: Boolean, default: !1 },
41
+ /**
42
+ * Sets the properties of the BentoTag component that is placed next to the label.
43
+ * {@see BentoTag}
44
+ */
45
+ tag: { type: Object, default: void 0 },
46
+ /**
47
+ * Indicates the value of the input that will be returned when it's checked
48
+ */
49
+ value: {
50
+ type: [String, Number],
51
+ required: !0
52
+ },
53
+ /**
54
+ * Sets the name of the radio input.
55
+ * Used for differentiating radio groups or accessing input via form submission.
56
+ */
57
+ name: {
58
+ type: String,
59
+ default: null
60
+ }
61
+ },
62
+ emits: ["input", "update:model-value"],
63
+ setup(r, { expose: o, emit: t }) {
64
+ const e = r, a = E(), i = R(a), { value: d } = x(e), c = h("bento-radio-button"), f = h("description"), n = I(null);
65
+ A("bento-radio-button", a.default, a.description);
66
+ const u = l(() => ({
67
+ [`b-radio-button--${B.DISABLED}`]: e.disabled,
68
+ [`b-radio-button--${B.READONLY}`]: e.readonly
69
+ })), _ = k({
70
+ ariaLabel: $(a)("default"),
71
+ label: d.value
72
+ }), b = l(() => e.value === e.modelValue), m = () => {
73
+ !e.disabled && !e.readonly && (t("update:model-value", e.value), t("input", e.value));
74
+ }, s = () => {
75
+ n.value.focus();
76
+ };
77
+ return o({
78
+ focus: s
79
+ }), { __sfc: !0, slots: a, hasSlot: i, props: e, emit: t, value: d, radioButtonId: c, descriptionId: f, radioInputRef: n, conditionalClassContainer: u, ariaLabel: _, isChecked: b, onChange: m, focus: s, BentoTag: w, BentoTypography: N, RadioInput: F };
80
+ }
81
+ });
82
+ var P = function() {
83
+ var o = this, t = o._self._c, e = o._self._setupProxy;
84
+ return t("div", { staticClass: "b-radio-button", class: e.conditionalClassContainer, attrs: { "data-testid": "radio-button-container" } }, [t(e.RadioInput, { ref: "radioInputRef", attrs: { id: e.radioButtonId, "aria-label": e.ariaLabel, "aria-describedby": e.hasSlot("description") ? e.descriptionId : "", checked: e.isChecked, disabled: o.disabled, readonly: o.readonly, "has-error": o.hasError, value: e.value, "model-value": o.modelValue, name: o.name }, on: { "update:model-value": e.onChange } }), t("div", [e.hasSlot("default") ? t("label", { staticClass: "b-radio-button__label-container", attrs: { for: e.radioButtonId } }, [e.hasSlot("default") ? t("span", { staticClass: "b-radio-button__primary-label" }, [t(e.BentoTypography, { staticClass: "b-radio-button__label", attrs: { el: "span", variant: "body" } }, [o._t("default")], 2), o.tag ? t(e.BentoTag, o._b({ staticClass: "b-radio-button__label-tag" }, "bento-tag", o.tag, !1)) : o._e()], 1) : o._e(), e.hasSlot("default") && e.hasSlot("description") ? t(e.BentoTypography, { staticClass: "b-radio-button__description", attrs: { id: e.descriptionId, el: "span", variant: "body" } }, [o._t("description")], 2) : o._e()], 1) : o._e(), e.hasSlot("content") && e.isChecked ? t(e.BentoTypography, { staticClass: "b-radio-button__content", attrs: { el: "div" } }, [o._t("content")], 2) : o._e()], 1)], 1);
85
+ }, z = [], U = /* @__PURE__ */ T(
86
+ H,
87
+ P,
88
+ z,
89
+ !1,
90
+ null,
91
+ "0cfaad5f"
92
+ );
93
+ const Z = U.exports;
94
+ var y = /* @__PURE__ */ ((r) => (r.HORIZONTAL = "horizontal", r.VERTICAL = "vertical", r))(y || {});
95
+ const j = {
96
+ name: "bento-radio-group",
97
+ model: { prop: "modelValue" }
98
+ }, Y = /* @__PURE__ */ S({
99
+ ...j,
100
+ props: {
101
+ description: { default: null },
102
+ disabled: { type: Boolean, default: !1 },
103
+ errorMessage: { default: null },
104
+ label: null,
105
+ optional: { type: Boolean, default: !1 },
106
+ placeholder: null,
107
+ readonly: { type: Boolean, default: !1 },
108
+ required: { type: Boolean, default: !1 },
109
+ tooltipText: { default: null },
110
+ formId: { default: null },
111
+ hasError: { type: Boolean, default: !1 },
112
+ hideLabel: { type: Boolean, default: null },
113
+ items: null,
114
+ modelValue: { default: null },
115
+ variant: { default: y.VERTICAL }
116
+ },
117
+ emits: ["input", "update:model-value"],
118
+ setup(r, { expose: o, emit: t }) {
119
+ const e = r, a = "bento-radio-group", i = E(), d = R(i), c = C(e, "modelValue"), f = h("error"), { isReadOnly: n } = O(C(e, "readonly")), u = I(null), _ = l(
120
+ () => !e.disabled && !n.value && (!!e.errorMessage || e.hasError)
121
+ ), b = l(() => !e.disabled && !n.value && !!e.errorMessage), m = l(() => ({
122
+ "b-radio-group__buttons--horizontal": e.variant === y.HORIZONTAL
123
+ })), s = l(() => e.variant === "vertical"), v = l(() => d("content") && !(s != null && s.value)), M = (p) => {
124
+ t("update:model-value", p), t("input", p);
125
+ };
126
+ e.hasError && V(
127
+ 'BentoRadioGroup "hasError" property',
128
+ `Use the BentoRadioGroup "errorMessage" property instead to indicate that there is a modifier error.
129
+ Having the field as "undefined" will hide/remove the error.
130
+ <bento-radio-group errorMessage="Error message text" />`,
131
+ "2.0.0"
132
+ ), L(
133
+ v,
134
+ (p) => {
135
+ if (p)
136
+ throw new Error("The content slot is only available for the vertical radio group layout");
137
+ },
138
+ {
139
+ immediate: !0
140
+ }
141
+ );
142
+ const g = () => {
143
+ u.value[0].focus();
144
+ };
145
+ return o({
146
+ focus: g
147
+ }), { __sfc: !0, COMPONENT_NAME: a, slots: i, hasSlot: d, emit: t, props: e, inputValue: c, errorId: f, isReadOnly: n, radioButton: u, shouldShowError: _, shouldShowErrorMessage: b, conditionalClasses: m, isVertical: s, shouldShowSlotError: v, onInput: M, focus: g, ControlsGroup: q, ErrorMessage: D, BentoRadioButton: Z };
148
+ }
149
+ });
150
+ var J = function() {
151
+ var o = this, t = o._self._c, e = o._self._setupProxy;
152
+ return t("div", { staticClass: "b-radio-group" }, [t(e.ControlsGroup, { staticClass: "b-radio-group__buttons", class: e.conditionalClasses, attrs: { "aria-describedby": e.shouldShowErrorMessage ? e.errorId : "", "component-name": e.COMPONENT_NAME, description: o.description, disabled: o.disabled, form: o.formId, label: o.label, optional: o.optional, required: o.required, "hide-label": o.hideLabel, "tooltip-text": o.tooltipText, role: "radiogroup", "aria-readonly": e.isReadOnly }, scopedSlots: o._u([e.hasSlot("description") ? { key: "description", fn: function() {
153
+ return [o._t("description")];
154
+ }, proxy: !0 } : null], null, !0) }, o._l(o.items, function(a) {
155
+ return t(e.BentoRadioButton, { key: a.value, ref: "radioButton", refInFor: !0, attrs: { "model-value": e.inputValue, value: a.value, disabled: o.disabled || a.disabled, readonly: e.isReadOnly || a.readonly, "has-error": e.shouldShowError || a.hasError, tag: a.tag, name: o.formId || o.label }, on: { "update:model-value": e.onInput }, scopedSlots: o._u([{ key: "default", fn: function() {
156
+ return [o._v(o._s(a.label))];
157
+ }, proxy: !0 }, a.description ? { key: "description", fn: function() {
158
+ return [o._v(o._s(a.description))];
159
+ }, proxy: !0 } : null, e.hasSlot("content") && e.isVertical ? { key: "content", fn: function() {
160
+ return [o._t("content")];
161
+ }, proxy: !0 } : null], null, !0) });
162
+ }), 1), e.shouldShowErrorMessage ? t(e.ErrorMessage, { staticClass: "b-radio-group__error-message", attrs: { id: e.errorId, "error-message": o.errorMessage } }) : o._e()], 1);
163
+ }, K = [], Q = /* @__PURE__ */ T(
164
+ Y,
165
+ J,
166
+ K,
167
+ !1,
168
+ null,
169
+ "40c21bb8"
170
+ );
171
+ const pe = Q.exports;
172
+ export {
173
+ pe as B,
174
+ y as a,
175
+ Z as b
176
+ };
177
+ //# sourceMappingURL=radio-group.AcYMFudv.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"radio-group.AcYMFudv.js","sources":["../../src/components/radio-group/components/radio-button/radio-button.vue","../../src/components/radio-group/radio-group.types.ts","../../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 ref=\"radioInputRef\"\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 :name=\"name\"\n @update:model-value=\"onChange\"\n />\n <div>\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 </label>\n <bento-typography v-if=\"hasSlot('content') && isChecked\" class=\"b-radio-button__content\" el=\"div\">\n <slot name=\"content\"></slot>\n </bento-typography>\n </div>\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 '@/core/utils/ts';\n import { computed, type ComputedRef, type PropType, ref, toRefs, useSlots } from 'vue';\n import { useDefaultSlotValidator, useHasSlot } from '@/composables';\n import { BentoRadioButtonStateClass, type BentoRadioButtonTag, type 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 * Sets the name of the radio input.\n * Used for differentiating radio groups or accessing input via form submission.\n */\n name: {\n type: String,\n default: null,\n },\n });\n\n const emit = defineEmits([\"input\", \"update:model-value\"]);\n\n const { value } = toRefs(props);\n const radioButtonId = generateUid('bento-radio-button');\n const descriptionId = generateUid('description');\n const radioInputRef = ref(null);\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\n const focus = () => {\n radioInputRef.value.focus();\n };\n\n defineExpose({\n focus,\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 { FormField } from '../../types';\nimport 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\nexport interface BentoRadioGroupProps extends FormField {\n /**\n * The form id the radio group is associated with. Defaults to null, as a radio group can also be used standalone.\n * @default null\n */\n formId?: string | null;\n\n /**\n * If set to true, renders all bento-radio-buttons in the group in an error state.\n * @deprecated Use \"errorMessage\" prop instead\n * @default false\n */\n hasError?: boolean;\n\n /**\n * Shows/hides the group label.\n * @default null\n */\n hideLabel?: boolean | null;\n\n /**\n * The radio group's items.\n * Required.\n */\n items: BentoRadioGroupItems;\n\n /**\n * The name associated with the group. Required for accessibility purposes.\n * Required.\n */\n label: string;\n\n /**\n * Determines the initially selected value of the group. Corresponds to the BentoRadioButtonItem's value.\n * Defaults to no value selected.\n * @default null\n */\n modelValue?: BentoRadioGroupValue | null;\n\n /**\n * The radio group's layout. It can be vertical or horizontal. Defaults to vertical.\n * @default BentoRadioGroupVariant.VERTICAL\n */\n variant?: BentoRadioGroupVariant | `${BentoRadioGroupVariant}`;\n}\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 role=\"radiogroup\"\n :aria-readonly=\"isReadOnly\"\n >\n <bento-radio-button\n v-for=\"item in items\"\n ref=\"radioButton\"\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 :name=\"formId || label\"\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 <template v-if=\"hasSlot('description')\" #description>\n <slot name=\"description\" />\n </template>\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, ref, 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 '@/core/utils/ts';\n import { deprecate } from '@/utils/ts/deprecate';\n import { type BentoRadioGroupProps, type 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([\"input\", \"update:model-value\"]);\n\n const props = defineProps({\n description: { default: null },\n disabled: { type: Boolean, default: false },\n errorMessage: { default: null },\n label: null,\n optional: { type: Boolean, default: false },\n placeholder: null,\n readonly: { type: Boolean, default: false },\n required: { type: Boolean, default: false },\n tooltipText: { default: null },\n formId: { default: null },\n hasError: { type: Boolean, default: false },\n hideLabel: { type: Boolean, default: null },\n items: null,\n modelValue: { default: null },\n variant: { default: BentoRadioGroupVariant.VERTICAL }\n});\n\n const inputValue = toRef(props, 'modelValue');\n const errorId = generateUid('error');\n const { isReadOnly } = useFormLayoutFieldLoading(toRef(props, 'readonly'));\n const radioButton = ref(null);\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\n const focus = () => {\n radioButton.value[0].focus();\n };\n\n defineExpose({\n focus,\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","radioInputRef","ref","useDefaultSlotValidator","conditionalClassContainer","computed","RadioInputStateClass","ariaLabel","useAriaLabel","getSlotText","isChecked","onChange","emit","focus","expose","BentoRadioGroupVariant","BentoRadioGroupVariant2","__default__","COMPONENT_NAME","inputValue","toRef","errorId","isReadOnly","useFormLayoutFieldLoading","radioButton","shouldShowError","shouldShowErrorMessage","conditionalClasses","isVertical","shouldShowSlotError","onInput","deprecate","watch","newVal"],"mappings":";;;;;;;;;;;;;;AA4KI,MAAAA,IAAA;AAAA,EAAe,MAAA;AAAA,EACL,OAAA,EAAA,MAAA,aAAA;AAEV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA7HAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAoDA,EAAA,OAAAI,EAAA,IAAAC,EAAAC,CAAA,GACAC,IAAAC,EAAA,oBAAA,GACAC,IAAAD,EAAA,aAAA,GACAE,IAAAC,EAAA,IAAA;AAEA,IAAAC,EAAA,sBAAAZ,EAAA,SAAAA,EAAA,WAAA;AAEA,UAAAa,IAAAC,EAAA,OAAA;AAAA,MAAkD,CAAA,mBAAAC,EAAA,QAAA,EAAA,GAAAT,EAAA;AAAA,MACoB,CAAA,mBAAAS,EAAA,QAAA,EAAA,GAAAT,EAAA;AAAA,IACA,EAAA,GAGtEU,IAAAC,EAAA;AAAA,MAA+B,WAAAC,EAAAlB,CAAA,EAAA,SAAA;AAAA,MACY,OAAAI,EAAA;AAAA,IAC1B,CAAA,GAGjBe,IAAAL,EAAA,MAAAR,EAAA,UAAAA,EAAA,UAAA,GAEAc,IAAA,MAAA;AACI,MAAA,CAAAd,EAAA,YAAA,CAAAA,EAAA,aACIe,EAAA,sBAAAf,EAAA,KAAA,GACAe,EAAA,SAAAf,EAAA,KAAA;AAAA,IACJ,GAGJgB,IAAA,MAAA;AACI,MAAAZ,EAAA,MAAA,MAAA;AAAA,IAA0B;AAG9B,WAAAa,EAAA;AAAA,MAAa,OAAAD;AAAA,IACT,CAAA;;;;;;;;;;;;;;;AChII,IAAAE,IAAA,kBAAAC,OACRA,EAAA,aAAA,cACAA,EAAA,WAAA,YAFQA,IAAAD,KAAA,CAAA,CAAA;AC6JR,MAAAE,IAAA;AAAA,EAAe,MAAA;AAAA,EACL,OAAA,EAAA,MAAA,aAAA;AAEV;;;;;;;;;;;;;;;;;;;;;iBAvGAC,IAAA,qBAEA3B,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAsBA4B,IAAAC,EAAAvB,GAAA,YAAA,GACAwB,IAAAtB,EAAA,OAAA,GACA,EAAA,YAAAuB,EAAA,IAAAC,EAAAH,EAAAvB,GAAA,UAAA,CAAA,GACA2B,IAAAtB,EAAA,IAAA,GAEAuB,IAAApB;AAAA,MAAwB,MAAA,CAAAR,EAAA,YAAA,CAAAyB,EAAA,UAAA,CAAA,CAAAzB,EAAA,gBAAAA,EAAA;AAAA,IACyD,GAEjF6B,IAAArB,EAAA,MAAA,CAAAR,EAAA,YAAA,CAAAyB,EAAA,SAAA,CAAA,CAAAzB,EAAA,YAAA,GAEA8B,IAAAtB,EAAA,OAAA;AAAA,MAA2C,sCAAAR,EAAA,YAAAkB,EAAA;AAAA,IACwC,EAAA,GAInFa,IAAAvB,EAAA,MAAAR,EAAA,YAAA,UAAA,GACAgC,IAAAxB,EAAA,MAAAZ,EAAA,SAAA,KAAA,EAAAmC,KAAA,QAAAA,EAAA,MAAA,GAEAE,IAAA,CAAAnC,MAAA;AACI,MAAAiB,EAAA,sBAAAjB,CAAA,GACAiB,EAAA,SAAAjB,CAAA;AAAA,IAAmB;AAGvB,IAAAE,EAAA,YACIkC;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;AAGJ,UAAApB,IAAA,MAAA;AACI,MAAAW,EAAA,MAAA,CAAA,EAAA,MAAA;AAAA,IAA2B;AAG/B,WAAAV,EAAA;AAAA,MAAa,OAAAD;AAAA,IACT,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,7 +1,7 @@
1
- import { defineComponent as _, toRefs as b, ref as y, computed as o } from "vue";
2
- import { n as v } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
1
+ import { defineComponent as _, toRefs as b, ref as v, computed as l } from "vue";
2
+ import { n as y } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
3
3
  import "../assets/radio-input.css";
4
- var l = /* @__PURE__ */ ((r) => (r.DISABLED = "disabled", r.READONLY = "readonly", r.ERROR = "error", r))(l || {});
4
+ var t = /* @__PURE__ */ ((r) => (r.DISABLED = "disabled", r.READONLY = "readonly", r.ERROR = "error", r))(t || {});
5
5
  const h = {
6
6
  name: "radio-input",
7
7
  inheritAttrs: !1
@@ -55,36 +55,36 @@ const h = {
55
55
  },
56
56
  emits: ["update:model-value"],
57
57
  setup(r, { expose: a, emit: n }) {
58
- const e = r, { value: d } = b(e), t = y(null), s = o(() => ({
59
- [`b-radio-input--${l.DISABLED}`]: e.disabled,
60
- [`b-radio-input--${l.ERROR}`]: e.hasError,
61
- [`b-radio-input--${l.READONLY}`]: e.readonly
62
- })), u = o(() => e.hasError), c = o(() => e.value === e.modelValue), p = () => {
58
+ const e = r, { value: s } = b(e), i = v(null), d = l(() => ({
59
+ [`b-radio-input--${t.DISABLED}`]: e.disabled,
60
+ [`b-radio-input--${t.ERROR}`]: e.hasError,
61
+ [`b-radio-input--${t.READONLY}`]: e.readonly
62
+ })), u = l(() => e.hasError), c = l(() => e.value === e.modelValue), p = () => {
63
63
  !e.disabled && !e.readonly && n("update:model-value", e.value);
64
64
  }, f = (m) => {
65
65
  e.readonly && m.preventDefault();
66
- }, i = () => {
67
- t.value.focus();
66
+ }, o = () => {
67
+ i.value.focus();
68
68
  };
69
69
  return a({
70
- focus: i
71
- }), { __sfc: !0, props: e, emit: n, value: d, inputRef: t, conditionalClasses: s, ariaInvalid: u, isChecked: c, onChange: p, onClick: f, focus: i };
70
+ focus: o
71
+ }), { __sfc: !0, props: e, emit: n, value: s, inputRef: i, conditionalClasses: d, ariaInvalid: u, isChecked: c, onChange: p, onClick: f, focus: o };
72
72
  }
73
73
  });
74
74
  var C = function() {
75
75
  var a = this, n = a._self._c, e = a._self._setupProxy;
76
- return n("input", { ref: "inputRef", staticClass: "b-radio-input", class: e.conditionalClasses, attrs: { id: a.id, "aria-checked": e.isChecked, "aria-label": a.ariaLabel, "aria-invalid": e.ariaInvalid, "aria-describedby": a.ariaDescribedby, disabled: a.disabled, "aria-readonly": a.readonly ? a.readonly : void 0, name: a.name, type: "radio", role: "radio" }, domProps: { checked: e.isChecked, value: e.value }, on: { click: e.onClick, change: e.onChange } });
77
- }, g = [], D = /* @__PURE__ */ v(
76
+ return n("input", { ref: "inputRef", staticClass: "b-radio-input", class: e.conditionalClasses, attrs: { id: a.id, "aria-checked": e.isChecked, "aria-label": a.ariaLabel, "aria-invalid": e.ariaInvalid, "aria-describedby": a.ariaDescribedby, disabled: a.disabled, name: a.name, type: "radio", role: "radio" }, domProps: { checked: e.isChecked, value: e.value }, on: { click: e.onClick, change: e.onChange } });
77
+ }, g = [], D = /* @__PURE__ */ y(
78
78
  R,
79
79
  C,
80
80
  g,
81
81
  !1,
82
82
  null,
83
- "a70c574b"
83
+ "5cfcd7ce"
84
84
  );
85
85
  const L = D.exports;
86
86
  export {
87
- l as R,
87
+ t as R,
88
88
  L as a
89
89
  };
90
- //# sourceMappingURL=radio-input.D8mv2EYC.js.map
90
+ //# sourceMappingURL=radio-input.kzb4gxLW.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"radio-input.kzb4gxLW.js","sources":["../../src/components/internal/radio-input/radio-input.types.ts","../../src/components/internal/radio-input/radio-input.vue"],"sourcesContent":["export type RadioInputValue = string | number;\n\nexport enum RadioInputStateClass {\n DISABLED = 'disabled',\n READONLY = 'readonly',\n ERROR = 'error',\n}\n","<template>\n <input\n :id=\"id\"\n ref=\"inputRef\"\n :aria-checked=\"isChecked\"\n :aria-label=\"ariaLabel\"\n :aria-invalid=\"ariaInvalid\"\n :aria-describedby=\"ariaDescribedby\"\n :checked=\"isChecked\"\n :disabled=\"disabled\"\n :value=\"value\"\n :name=\"name\"\n type=\"radio\"\n class=\"b-radio-input\"\n :class=\"conditionalClasses\"\n role=\"radio\"\n @click=\"onClick\"\n @change=\"onChange\"\n />\n</template>\n\n<script setup lang=\"ts\">\n import { computed, type ComputedRef, type PropType, ref, toRefs } from 'vue';\n import { RadioInputStateClass, type RadioInputValue } from './radio-input.types';\n import type { HTMLAttributes } from 'vue/types/jsx.d.ts';\n\n const props = defineProps({\n /**\n * The aria label associated to the input checkbox.\n */\n ariaLabel: { type: String, default: '' },\n\n /**\n * An additional string that serves as description for the input checkbox (useful if the component shows a description).\n */\n ariaDescribedby: { type: String, default: '' },\n\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 * Sets the id of the radio input. Required for accessibility purposes\n */\n id: { type: String, default: null },\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<RadioInputValue>,\n default: null,\n },\n\n /**\n * Sets the radio button to readonly (optional)\n */\n readonly: { type: Boolean, 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] as PropType<RadioInputValue>,\n required: true,\n },\n\n /**\n * Sets the name of the radio input.\n * Used for differentiating radio groups or accessing input via form submission.\n */\n name: { type: String, default: null },\n });\n\n const emit = defineEmits([\"update:model-value\"]);\n\n const { value } = toRefs(props);\n\n const inputRef = ref(null);\n\n const conditionalClasses = computed(() => ({\n [`b-radio-input--${RadioInputStateClass.DISABLED}`]: props.disabled,\n [`b-radio-input--${RadioInputStateClass.ERROR}`]: props.hasError,\n [`b-radio-input--${RadioInputStateClass.READONLY}`]: props.readonly,\n }));\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('update:model-value', 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 const focus = () => {\n inputRef.value.focus();\n };\n\n defineExpose({\n focus,\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * Internal component that renders a radio input (without label)\n *\n * @example\n * import { RadioInput } from '@/internal/radio-input';\n *\n * export default {\n * components: { BentoCheckboxInput },\n * template: `\n * <label for=\"checkbox-id\">Your label</label>\n * <span id=\"description-id\">Description</span>\n * <radio-input id=\"checkbox-id\" aria=label=\"Your label\" aria-describedby=\"description-id\" />\n * `\n * }\n */\n export default {\n name: 'radio-input',\n inheritAttrs: false,\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./radio-input.scss\" />\n"],"names":["RadioInputStateClass","RadioInputStateClass2","__default__","value","toRefs","props","inputRef","ref","conditionalClasses","computed","ariaInvalid","isChecked","onChange","emit","onClick","event","focus","expose"],"mappings":";;;AAEY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,WAAA,YACAA,EAAA,WAAA,YACAA,EAAA,QAAA,SAHQA,IAAAD,KAAA,CAAA,CAAA;ACqIR,MAAAE,IAAA;AAAA,EAAe,MAAA;AAAA,EACL,cAAA;AAEV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAvDA,EAAA,OAAAC,EAAA,IAAAC,EAAAC,CAAA,GAEAC,IAAAC,EAAA,IAAA,GAEAC,IAAAC,EAAA,OAAA;AAAA,MAA2C,CAAA,kBAAAT,EAAA,QAAA,EAAA,GAAAK,EAAA;AAAA,MACoB,CAAA,kBAAAL,EAAA,KAAA,EAAA,GAAAK,EAAA;AAAA,MACH,CAAA,kBAAAL,EAAA,QAAA,EAAA,GAAAK,EAAA;AAAA,IACG,EAAA,GAG/DK,IAAAD,EAAA,MAAAJ,EAAA,QAAA,GAEAM,IAAAF,EAAA,MAAAJ,EAAA,UAAAA,EAAA,UAAA,GAEAO,IAAA,MAAA;AACI,MAAA,CAAAP,EAAA,YAAA,CAAAA,EAAA,YACIQ,EAAA,sBAAAR,EAAA,KAAA;AAAA,IACJ,GAIJS,IAAA,CAAAC,MAAA;AACI,MAAAV,EAAA,YACIU,EAAA,eAAA;AAAA,IACJ,GAGJC,IAAA,MAAA;AACI,MAAAV,EAAA,MAAA,MAAA;AAAA,IAAqB;AAGzB,WAAAW,EAAA;AAAA,MAAa,OAAAD;AAAA,IACT,CAAA;;;;;;;;;;;;;;;"}
@@ -1,16 +1,16 @@
1
1
  import { defineComponent as At, ref as kt, onMounted as Yn, watch as le, computed as gt, h as Q, useAttrs as Jn } from "vue";
2
2
  import { B as Xn } from "./typography.hlOAxsEn.js";
3
- import { B as Kn } from "./segmented-control.Dc34mUMM.js";
4
- import { B as tr } from "./alert.CMyL-zWT.js";
3
+ import { B as Kn } from "./segmented-control.Cma_nu0G.js";
4
+ import { B as tr } from "./alert.SZPP58tl.js";
5
5
  import { n as yt } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
6
6
  import "./index.Cl4_42j5.js";
7
- import { B as er } from "./link.C4htMrDV.js";
8
- import { B as nr } from "./checkbox.D7-f9Y6w.js";
9
- import { u as rr } from "./i18n.BQkEbtPM.js";
7
+ import { B as er } from "./link.D8qpqg3W.js";
8
+ import { B as nr } from "./checkbox.BPtHAAEa.js";
9
+ import { u as rr } from "./index.B6WW_F-J.js";
10
10
  import { u as ir } from "./aria-label.CaUURpnB.js";
11
11
  import { g as _e } from "./generate-uid.NJ8tVoha.js";
12
12
  import { g as ur } from "./_commonjsHelpers.C6fGbg64.js";
13
- import { F as lr, E as ar } from "./field-label.BKzuCnXr.js";
13
+ import { F as lr, E as ar } from "./field-label.Auq-Pzho.js";
14
14
  import "../assets/rich-text-editor.css";
15
15
  const or = /* @__PURE__ */ At({
16
16
  __name: "rich-text-editor-content-area",
@@ -6198,4 +6198,4 @@ const Do = xo.exports;
6198
6198
  export {
6199
6199
  Do as r
6200
6200
  };
6201
- //# sourceMappingURL=rich-text-editor.C905JEDW.js.map
6201
+ //# sourceMappingURL=rich-text-editor.BZgQ578S.js.map