@adyen/bento-vue3 1.69.0 → 1.70.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 (300) hide show
  1. package/dist/@types/index.d.ts +250 -823
  2. package/dist/accordion.js +1 -1
  3. package/dist/action-bar.js +1 -1
  4. package/dist/alert.js +1 -1
  5. package/dist/assets/accordion-item.css +1 -1
  6. package/dist/assets/action-bar.css +1 -1
  7. package/dist/assets/alert.css +1 -1
  8. package/dist/assets/base-modal.css +1 -1
  9. package/dist/assets/button.css +1 -1
  10. package/dist/assets/calendar.css +1 -1
  11. package/dist/assets/card.css +1 -1
  12. package/dist/assets/checkbox-group.css +1 -1
  13. package/dist/assets/checkbox-input.css +1 -1
  14. package/dist/assets/checkbox.css +1 -1
  15. package/dist/assets/code-snippet.css +1 -1
  16. package/dist/assets/controls-group.css +1 -1
  17. package/dist/assets/data-grid.css +1 -1
  18. package/dist/assets/date-picker.css +1 -1
  19. package/dist/assets/date-range-picker.css +1 -1
  20. package/dist/assets/dialog-page.css +1 -1
  21. package/dist/assets/dropdown-tag.css +1 -1
  22. package/dist/assets/dropdown.css +1 -1
  23. package/dist/assets/error-message.css +1 -1
  24. package/dist/assets/file-uploader.css +1 -1
  25. package/dist/assets/filter-bar.css +1 -1
  26. package/dist/assets/header-with-views.css +1 -1
  27. package/dist/assets/info-icon.css +1 -1
  28. package/dist/assets/input-field-phone-number.css +1 -1
  29. package/dist/assets/inspector.css +1 -1
  30. package/dist/assets/loading-indicator.css +1 -1
  31. package/dist/assets/modal-fullscreen.css +1 -1
  32. package/dist/assets/pagination.css +1 -1
  33. package/dist/assets/popper-container.css +1 -1
  34. package/dist/assets/radio-group.css +1 -1
  35. package/dist/assets/radio-input.css +1 -1
  36. package/dist/assets/sidepanel.css +1 -1
  37. package/dist/assets/tab.css +1 -1
  38. package/dist/assets/tag.css +1 -1
  39. package/dist/assets/timeline-item.css +1 -1
  40. package/dist/assets/toggle-button.css +1 -1
  41. package/dist/assets/toggle.css +1 -1
  42. package/dist/assets/tooltip.css +1 -1
  43. package/dist/assets/typography.css +1 -1
  44. package/dist/assets/use-cached-selected-values.css +1 -1
  45. package/dist/avatar.js +1 -1
  46. package/dist/button.js +2 -2
  47. package/dist/card.js +1 -1
  48. package/dist/checkbox.js +2 -2
  49. package/dist/chip.js +1 -1
  50. package/dist/chunks/{accordion-item.H062lKz1.js → accordion-item.6etqAJV9.js} +2 -2
  51. package/dist/chunks/{accordion-item.H062lKz1.js.map → accordion-item.6etqAJV9.js.map} +1 -1
  52. package/dist/chunks/{action-bar.CbO7oNER.js → action-bar.CweA2FeY.js} +5 -5
  53. package/dist/chunks/{action-bar.CbO7oNER.js.map → action-bar.CweA2FeY.js.map} +1 -1
  54. package/dist/chunks/alert.Dzx5MzgE.js +171 -0
  55. package/dist/chunks/alert.Dzx5MzgE.js.map +1 -0
  56. package/dist/chunks/{avatar.BtxoYBvq.js → avatar.Dq59yj6m.js} +2 -2
  57. package/dist/chunks/{avatar.BtxoYBvq.js.map → avatar.Dq59yj6m.js.map} +1 -1
  58. package/dist/chunks/{base-button.Bcwm87OM.js → base-button.CjYb5Y8k.js} +2 -2
  59. package/dist/chunks/{base-button.Bcwm87OM.js.map → base-button.CjYb5Y8k.js.map} +1 -1
  60. package/dist/chunks/{base-modal.7vdoT8zp.js → base-modal.BrBcILSe.js} +6 -6
  61. package/dist/chunks/{base-modal.7vdoT8zp.js.map → base-modal.BrBcILSe.js.map} +1 -1
  62. package/dist/chunks/bin.DuHlEQBO.js +37 -0
  63. package/dist/chunks/bin.DuHlEQBO.js.map +1 -0
  64. package/dist/chunks/{button-actions-with-menu.zdsGh7un.js → button-actions-with-menu.CBuoSd3w.js} +2 -2
  65. package/dist/chunks/{button-actions-with-menu.zdsGh7un.js.map → button-actions-with-menu.CBuoSd3w.js.map} +1 -1
  66. package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
  67. package/dist/chunks/{button.wMNce6wZ.js → button.C-MAa6ut.js} +4 -4
  68. package/dist/chunks/{button.wMNce6wZ.js.map → button.C-MAa6ut.js.map} +1 -1
  69. package/dist/chunks/{calendar.CYrrR8wd.js → calendar.DFHiga9k.js} +32 -32
  70. package/dist/chunks/{calendar.CYrrR8wd.js.map → calendar.DFHiga9k.js.map} +1 -1
  71. package/dist/chunks/{card.CNYYIpQW.js → card.BspLDcas.js} +4 -4
  72. package/dist/chunks/{card.CNYYIpQW.js.map → card.BspLDcas.js.map} +1 -1
  73. package/dist/chunks/{checkbox-group.fX5_d3XZ.js → checkbox-group.DIXgr1WQ.js} +6 -6
  74. package/dist/chunks/{checkbox-group.fX5_d3XZ.js.map → checkbox-group.DIXgr1WQ.js.map} +1 -1
  75. package/dist/chunks/{checkbox-input.B1hV3DU-.js → checkbox-input.BXNGT9U0.js} +2 -2
  76. package/dist/chunks/{checkbox-input.B1hV3DU-.js.map → checkbox-input.BXNGT9U0.js.map} +1 -1
  77. package/dist/chunks/{checkbox.C62ek8A8.js → checkbox.M6lKj2hQ.js} +6 -6
  78. package/dist/chunks/{checkbox.C62ek8A8.js.map → checkbox.M6lKj2hQ.js.map} +1 -1
  79. package/dist/chunks/{chip.CoBGGkn7.js → chip.DcpP3zb6.js} +3 -3
  80. package/dist/chunks/{chip.CoBGGkn7.js.map → chip.DcpP3zb6.js.map} +1 -1
  81. package/dist/chunks/{code-snippet.CrKl93Wq.js → code-snippet.CKrxKjkQ.js} +7 -7
  82. package/dist/chunks/{code-snippet.CrKl93Wq.js.map → code-snippet.CKrxKjkQ.js.map} +1 -1
  83. package/dist/chunks/{controls-group.2xftPPd7.js → controls-group.CXVHTaYp.js} +32 -29
  84. package/dist/chunks/controls-group.CXVHTaYp.js.map +1 -0
  85. package/dist/chunks/{copy.-8xjj6Hr.js → copy.C4DAAiPw.js} +5 -5
  86. package/dist/chunks/{copy.-8xjj6Hr.js.map → copy.C4DAAiPw.js.map} +1 -1
  87. package/dist/chunks/{country.BdqTkF7A.js → country.RVvsGwuV.js} +3 -3
  88. package/dist/chunks/{country.BdqTkF7A.js.map → country.RVvsGwuV.js.map} +1 -1
  89. package/dist/chunks/{currency.XiEfa4LT.js → currency.CN4UnCx8.js} +2 -2
  90. package/dist/chunks/{currency.XiEfa4LT.js.map → currency.CN4UnCx8.js.map} +1 -1
  91. package/dist/chunks/{dashboard-section.Di16gWGI.js → dashboard-section.Cll3tn0q.js} +3 -3
  92. package/dist/chunks/{dashboard-section.Di16gWGI.js.map → dashboard-section.Cll3tn0q.js.map} +1 -1
  93. package/dist/chunks/{dashed-underline.CyZEW1LZ.js → dashed-underline.2OYxO-Rh.js} +4 -4
  94. package/dist/chunks/{dashed-underline.CyZEW1LZ.js.map → dashed-underline.2OYxO-Rh.js.map} +1 -1
  95. package/dist/chunks/{data-grid-template.CnYNEhPR.js → data-grid-template.CTRHofoW.js} +4 -4
  96. package/dist/chunks/{data-grid-template.CnYNEhPR.js.map → data-grid-template.CTRHofoW.js.map} +1 -1
  97. package/dist/chunks/{data-grid.aEQt05d9.js → data-grid.DMOTTywp.js} +185 -185
  98. package/dist/chunks/data-grid.DMOTTywp.js.map +1 -0
  99. package/dist/chunks/{date-picker.Bk0A3rha.js → date-picker.CBlQ0ql7.js} +18 -18
  100. package/dist/chunks/{date-picker.Bk0A3rha.js.map → date-picker.CBlQ0ql7.js.map} +1 -1
  101. package/dist/chunks/{date-range-picker.l-CSmXBk.js → date-range-picker.D-gGqpFB.js} +25 -25
  102. package/dist/chunks/{date-range-picker.l-CSmXBk.js.map → date-range-picker.D-gGqpFB.js.map} +1 -1
  103. package/dist/chunks/{date.BZENjOb6.js → date.4GAXrgy5.js} +2 -2
  104. package/dist/chunks/{date.BZENjOb6.js.map → date.4GAXrgy5.js.map} +1 -1
  105. package/dist/chunks/{dialog-page.BJaRwRhF.js → dialog-page.VSJgHY3C.js} +3 -3
  106. package/dist/chunks/{dialog-page.BJaRwRhF.js.map → dialog-page.VSJgHY3C.js.map} +1 -1
  107. package/dist/chunks/{dropdown-default-textbox.DWgL31p1.js → dropdown-default-textbox.CGsOngY1.js} +2 -2
  108. package/dist/chunks/{dropdown-default-textbox.DWgL31p1.js.map → dropdown-default-textbox.CGsOngY1.js.map} +1 -1
  109. package/dist/chunks/dropdown-tag.DlFpUeXa.js +296 -0
  110. package/dist/chunks/dropdown-tag.DlFpUeXa.js.map +1 -0
  111. package/dist/chunks/{dropdown.Co86azLK.js → dropdown.agfzvJZE.js} +22 -22
  112. package/dist/chunks/{dropdown.Co86azLK.js.map → dropdown.agfzvJZE.js.map} +1 -1
  113. package/dist/chunks/{empty-state.YNNEDsnK.js → empty-state.BTaeZdQu.js} +3 -3
  114. package/dist/chunks/{empty-state.YNNEDsnK.js.map → empty-state.BTaeZdQu.js.map} +1 -1
  115. package/dist/chunks/{error-message.Cu4cIfdg.js → error-message.B1P5ictH.js} +5 -5
  116. package/dist/chunks/{error-message.Cu4cIfdg.js.map → error-message.B1P5ictH.js.map} +1 -1
  117. package/dist/chunks/{file-uploader.09149Fx8.js → file-uploader.Vac1Cu0i.js} +21 -19
  118. package/dist/chunks/file-uploader.Vac1Cu0i.js.map +1 -0
  119. package/dist/chunks/{filter-bar.D6n7Srr5.js → filter-bar.uUpoP-XZ.js} +233 -236
  120. package/dist/chunks/filter-bar.uUpoP-XZ.js.map +1 -0
  121. package/dist/chunks/{fixed-scroller.QlDKOD7y.js → fixed-scroller.DSGxXiAH.js} +2 -2
  122. package/dist/chunks/{fixed-scroller.QlDKOD7y.js.map → fixed-scroller.DSGxXiAH.js.map} +1 -1
  123. package/dist/chunks/{footer-actions.0cBTJ1kw.js → footer-actions.gRKTKGts.js} +4 -4
  124. package/dist/chunks/{footer-actions.0cBTJ1kw.js.map → footer-actions.gRKTKGts.js.map} +1 -1
  125. package/dist/chunks/{form-layout-title.Cq_xVPUq.js → form-layout-title.DdRqnXXi.js} +3 -3
  126. package/dist/chunks/{form-layout-title.Cq_xVPUq.js.map → form-layout-title.DdRqnXXi.js.map} +1 -1
  127. package/dist/chunks/{header-meta.BJGF0E3r.js → header-meta.Ct79L1O8.js} +5 -5
  128. package/dist/chunks/{header-meta.BJGF0E3r.js.map → header-meta.Ct79L1O8.js.map} +1 -1
  129. package/dist/chunks/{header-with-views.Drzq84zs.js → header-with-views.BVHdSAKp.js} +211 -207
  130. package/dist/chunks/header-with-views.BVHdSAKp.js.map +1 -0
  131. package/dist/chunks/{header.B6DzOioR.js → header.Cd1P8lYK.js} +4 -4
  132. package/dist/chunks/{header.B6DzOioR.js.map → header.Cd1P8lYK.js.map} +1 -1
  133. package/dist/chunks/{info-icon.DKnzFXy1.js → info-icon.Bl0iKUfC.js} +7 -7
  134. package/dist/chunks/{info-icon.DKnzFXy1.js.map → info-icon.Bl0iKUfC.js.map} +1 -1
  135. package/dist/chunks/info.BKwey1HA.js +44 -0
  136. package/dist/chunks/info.BKwey1HA.js.map +1 -0
  137. package/dist/chunks/{input-field-password.DC8lJFsr.js → input-field-password.DkIWrrxy.js} +7 -7
  138. package/dist/chunks/{input-field-password.DC8lJFsr.js.map → input-field-password.DkIWrrxy.js.map} +1 -1
  139. package/dist/chunks/{input-field-phone-number.BbMEzDiR.js → input-field-phone-number.EXlRu8qq.js} +9 -9
  140. package/dist/chunks/{input-field-phone-number.BbMEzDiR.js.map → input-field-phone-number.EXlRu8qq.js.map} +1 -1
  141. package/dist/chunks/{input-field.6bH4yGb2.js → input-field.CgbiOju9.js} +4 -4
  142. package/dist/chunks/{input-field.6bH4yGb2.js.map → input-field.CgbiOju9.js.map} +1 -1
  143. package/dist/chunks/{inspector.Bsv68G-e.js → inspector.BGtTMtE0.js} +4 -4
  144. package/dist/chunks/{inspector.Bsv68G-e.js.map → inspector.BGtTMtE0.js.map} +1 -1
  145. package/dist/chunks/{layout-row.CIg1pwOd.js → layout-row.BPfOPn4x.js} +2 -2
  146. package/dist/chunks/{layout-row.CIg1pwOd.js.map → layout-row.BPfOPn4x.js.map} +1 -1
  147. package/dist/chunks/{link.Di0rtpOj.js → link.cwPmWlsk.js} +2 -2
  148. package/dist/chunks/{link.Di0rtpOj.js.map → link.cwPmWlsk.js.map} +1 -1
  149. package/dist/chunks/{listbox-option-tag.C6WHiASI.js → listbox-option-tag.CDIkX7nh.js} +3 -3
  150. package/dist/chunks/{listbox-option-tag.C6WHiASI.js.map → listbox-option-tag.CDIkX7nh.js.map} +1 -1
  151. package/dist/chunks/{loading-indicator.BmAQqPP2.js → loading-indicator.VHi5tbZa.js} +2 -2
  152. package/dist/chunks/{loading-indicator.BmAQqPP2.js.map → loading-indicator.VHi5tbZa.js.map} +1 -1
  153. package/dist/chunks/{modal-fullscreen.BHzyS4y7.js → modal-fullscreen.-Q-7GMyT.js} +5 -5
  154. package/dist/chunks/{modal-fullscreen.BHzyS4y7.js.map → modal-fullscreen.-Q-7GMyT.js.map} +1 -1
  155. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.CqDhzFJ9.js → modal.vue_vue_type_script_setup_true_lang.TFh7p51f.js} +6 -6
  156. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.CqDhzFJ9.js.map → modal.vue_vue_type_script_setup_true_lang.TFh7p51f.js.map} +1 -1
  157. package/dist/chunks/{pagination.BuYH2_62.js → pagination.DW_HPEIu.js} +4 -4
  158. package/dist/chunks/{pagination.BuYH2_62.js.map → pagination.DW_HPEIu.js.map} +1 -1
  159. package/dist/chunks/{payment-method.4cnK2M5b.js → payment-method.CDnn1bjo.js} +2 -2
  160. package/dist/chunks/{payment-method.4cnK2M5b.js.map → payment-method.CDnn1bjo.js.map} +1 -1
  161. package/dist/chunks/popover.types.COM6oQgq.js +6 -0
  162. package/dist/chunks/{popover.types.BQILgzhs.js.map → popover.types.COM6oQgq.js.map} +1 -1
  163. package/dist/chunks/{popper-container.idDrquM6.js → popper-container.CgJzEQ7N.js} +2 -2
  164. package/dist/chunks/{popper-container.idDrquM6.js.map → popper-container.CgJzEQ7N.js.map} +1 -1
  165. package/dist/chunks/{promo-banner.il4_mdEk.js → promo-banner.BbqIA4Ce.js} +3 -3
  166. package/dist/chunks/{promo-banner.il4_mdEk.js.map → promo-banner.BbqIA4Ce.js.map} +1 -1
  167. package/dist/chunks/{radio-group.BG8W9epW.js → radio-group.CbLIPi7h.js} +77 -69
  168. package/dist/chunks/radio-group.CbLIPi7h.js.map +1 -0
  169. package/dist/chunks/{radio-input.DvPjlvPm.js → radio-input.odN9FOyr.js} +2 -2
  170. package/dist/chunks/{radio-input.DvPjlvPm.js.map → radio-input.odN9FOyr.js.map} +1 -1
  171. package/dist/chunks/{rich-text-editor.vqti0Ls0.js → rich-text-editor.C0hJeV4H.js} +7 -7
  172. package/dist/chunks/{rich-text-editor.vqti0Ls0.js.map → rich-text-editor.C0hJeV4H.js.map} +1 -1
  173. package/dist/chunks/{search-bar.RGL70u_Y.js → search-bar.CvAi2t3-.js} +3 -3
  174. package/dist/chunks/{search-bar.RGL70u_Y.js.map → search-bar.CvAi2t3-.js.map} +1 -1
  175. package/dist/chunks/{secondary-nav.Dtw_Dm_X.js → secondary-nav.yntS8-u5.js} +3 -3
  176. package/dist/chunks/{secondary-nav.Dtw_Dm_X.js.map → secondary-nav.yntS8-u5.js.map} +1 -1
  177. package/dist/chunks/{segmented-control.C6QyN2jS.js → segmented-control.CRSdIvha.js} +3 -3
  178. package/dist/chunks/{segmented-control.C6QyN2jS.js.map → segmented-control.CRSdIvha.js.map} +1 -1
  179. package/dist/chunks/{selection-card-group.DpogJSo0.js → selection-card-group.Cu3V8h4R.js} +6 -6
  180. package/dist/chunks/{selection-card-group.DpogJSo0.js.map → selection-card-group.Cu3V8h4R.js.map} +1 -1
  181. package/dist/chunks/{sidepanel.BqRWoCd3.js → sidepanel.z18XSO3M.js} +6 -6
  182. package/dist/chunks/{sidepanel.BqRWoCd3.js.map → sidepanel.z18XSO3M.js.map} +1 -1
  183. package/dist/chunks/{status.types.B7vJ-_oJ.js → status.types.-l2qJxLn.js} +2 -2
  184. package/dist/chunks/{status.types.B7vJ-_oJ.js.map → status.types.-l2qJxLn.js.map} +1 -1
  185. package/dist/chunks/{step.BdZrreHU.js → step.BMSjltwl.js} +3 -3
  186. package/dist/chunks/{step.BdZrreHU.js.map → step.BMSjltwl.js.map} +1 -1
  187. package/dist/chunks/{structured-list-item.DIwkcIMT.js → structured-list-item.CD1nMqzH.js} +6 -6
  188. package/dist/chunks/{structured-list-item.DIwkcIMT.js.map → structured-list-item.CD1nMqzH.js.map} +1 -1
  189. package/dist/chunks/{summary-grid.types.DHUnTXI-.js → summary-grid.types.BHuDlPDw.js} +6 -6
  190. package/dist/chunks/{summary-grid.types.DHUnTXI-.js.map → summary-grid.types.BHuDlPDw.js.map} +1 -1
  191. package/dist/chunks/{tab.jIG8-7-Q.js → tab.C3R_VoJL.js} +3 -3
  192. package/dist/chunks/{tab.jIG8-7-Q.js.map → tab.C3R_VoJL.js.map} +1 -1
  193. package/dist/chunks/{tag.BP8fBCx-.js → tag.B6AmSws9.js} +7 -7
  194. package/dist/chunks/{tag.BP8fBCx-.js.map → tag.B6AmSws9.js.map} +1 -1
  195. package/dist/chunks/{textarea.CtfRoIUw.js → textarea.DfQLxj_w.js} +4 -4
  196. package/dist/chunks/{textarea.CtfRoIUw.js.map → textarea.DfQLxj_w.js.map} +1 -1
  197. package/dist/chunks/timeline-item.25y9USE-.js +568 -0
  198. package/dist/chunks/timeline-item.25y9USE-.js.map +1 -0
  199. package/dist/chunks/{toast.w_FD0zQA.js → toast.DIhABAW8.js} +4 -4
  200. package/dist/chunks/{toast.w_FD0zQA.js.map → toast.DIhABAW8.js.map} +1 -1
  201. package/dist/chunks/{toggle-button.ByyLw0Yf.js → toggle-button.CQl9HneO.js} +194 -188
  202. package/dist/chunks/toggle-button.CQl9HneO.js.map +1 -0
  203. package/dist/chunks/{toggle.CjEL1ko8.js → toggle.C8k7NQ7y.js} +2 -2
  204. package/dist/chunks/{toggle.CjEL1ko8.js.map → toggle.C8k7NQ7y.js.map} +1 -1
  205. package/dist/chunks/{tooltip.Dww8NiUR.js → tooltip.lBnko9QV.js} +4 -4
  206. package/dist/chunks/tooltip.lBnko9QV.js.map +1 -0
  207. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.rY33hqQQ.js → tutorial.vue_vue_type_script_setup_true_lang.BProZFmI.js} +5 -5
  208. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.rY33hqQQ.js.map → tutorial.vue_vue_type_script_setup_true_lang.BProZFmI.js.map} +1 -1
  209. package/dist/chunks/{typography.CFHvBR7L.js → typography.yBEME_Gu.js} +2 -2
  210. package/dist/chunks/{typography.CFHvBR7L.js.map → typography.yBEME_Gu.js.map} +1 -1
  211. package/dist/chunks/{use-bento-toast-controller.BzKbXZPO.js → use-bento-toast-controller.Kri_h7jS.js} +2 -2
  212. package/dist/chunks/{use-bento-toast-controller.BzKbXZPO.js.map → use-bento-toast-controller.Kri_h7jS.js.map} +1 -1
  213. package/dist/chunks/{use-cached-selected-values.BcNRo4mZ.js → use-cached-selected-values.CELe-MsT.js} +7 -7
  214. package/dist/chunks/use-cached-selected-values.CELe-MsT.js.map +1 -0
  215. package/dist/chunks/{use-country-items.Duh4bMqW.js → use-country-items.D_kamcYy.js} +2 -2
  216. package/dist/chunks/{use-country-items.Duh4bMqW.js.map → use-country-items.D_kamcYy.js.map} +1 -1
  217. package/dist/chunks/{use-country-phon-code.BOaJ9PDl.js → use-country-phon-code.Bui3zD6W.js} +5 -3
  218. package/dist/chunks/{use-country-phon-code.BOaJ9PDl.js.map → use-country-phon-code.Bui3zD6W.js.map} +1 -1
  219. package/dist/chunks/warning-filled.BMGD0G-_.js +29 -0
  220. package/dist/chunks/warning-filled.BMGD0G-_.js.map +1 -0
  221. package/dist/code-snippet.js +1 -1
  222. package/dist/country.js +2 -2
  223. package/dist/currency.js +1 -1
  224. package/dist/dashboard-template.js +1 -1
  225. package/dist/dashed-underline.js +1 -1
  226. package/dist/data-grid-template.js +1 -1
  227. package/dist/data-grid.js +1 -1
  228. package/dist/date-picker.js +2 -2
  229. package/dist/date-range-picker.js +2 -2
  230. package/dist/date.js +1 -1
  231. package/dist/dropdown.js +4 -4
  232. package/dist/empty-state.js +1 -1
  233. package/dist/file-uploader.js +1 -1
  234. package/dist/filter-bar.js +1 -1
  235. package/dist/form-layout.js +1 -1
  236. package/dist/header-with-views.js +1 -1
  237. package/dist/header.js +1 -1
  238. package/dist/index.js +136 -136
  239. package/dist/index.js.map +1 -1
  240. package/dist/info-icon.js +1 -1
  241. package/dist/input-field-password.js +1 -1
  242. package/dist/input-field-phone-number.js +1 -1
  243. package/dist/input-field.js +1 -1
  244. package/dist/inspector.js +1 -1
  245. package/dist/internal.js +12 -12
  246. package/dist/layout.js +1 -1
  247. package/dist/link.js +1 -1
  248. package/dist/loading-indicator.js +1 -1
  249. package/dist/menu.js +1 -1
  250. package/dist/modal-fullscreen.js +1 -1
  251. package/dist/modal.js +2 -2
  252. package/dist/pagination.js +1 -1
  253. package/dist/payment-method.js +1 -1
  254. package/dist/popover.js +2 -2
  255. package/dist/popper-container.js +1 -1
  256. package/dist/promo-banner.js +1 -1
  257. package/dist/radio-group.js +2 -2
  258. package/dist/rich-text-editor.js +1 -1
  259. package/dist/search-bar.js +2 -2
  260. package/dist/secondary-nav.js +1 -1
  261. package/dist/segmented-control.js +1 -1
  262. package/dist/selection-card.js +1 -1
  263. package/dist/sidepanel.js +1 -1
  264. package/dist/status.js +1 -1
  265. package/dist/stepper.js +1 -1
  266. package/dist/structured-list.js +1 -1
  267. package/dist/summary-grid.js +1 -1
  268. package/dist/tabs.js +1 -1
  269. package/dist/tag.js +1 -1
  270. package/dist/textarea.js +1 -1
  271. package/dist/timeline.js +1 -1
  272. package/dist/toast.js +1 -1
  273. package/dist/toggle.js +1 -1
  274. package/dist/tutorial.js +1 -1
  275. package/dist/typography.js +1 -1
  276. package/dist/web-types.json +1 -1
  277. package/package.json +5 -5
  278. package/dist/chunks/alert.DFSdD4jX.js +0 -169
  279. package/dist/chunks/alert.DFSdD4jX.js.map +0 -1
  280. package/dist/chunks/bin.CiGG2V4b.js +0 -37
  281. package/dist/chunks/bin.CiGG2V4b.js.map +0 -1
  282. package/dist/chunks/controls-group.2xftPPd7.js.map +0 -1
  283. package/dist/chunks/data-grid.aEQt05d9.js.map +0 -1
  284. package/dist/chunks/dropdown-tag.CnqIUH1X.js +0 -263
  285. package/dist/chunks/dropdown-tag.CnqIUH1X.js.map +0 -1
  286. package/dist/chunks/file-uploader.09149Fx8.js.map +0 -1
  287. package/dist/chunks/filter-bar.D6n7Srr5.js.map +0 -1
  288. package/dist/chunks/header-with-views.Drzq84zs.js.map +0 -1
  289. package/dist/chunks/info.DcTs-Bzp.js +0 -44
  290. package/dist/chunks/info.DcTs-Bzp.js.map +0 -1
  291. package/dist/chunks/popover.types.BQILgzhs.js +0 -6
  292. package/dist/chunks/radio-group.BG8W9epW.js.map +0 -1
  293. package/dist/chunks/timeline-item.DthjD14m.js +0 -566
  294. package/dist/chunks/timeline-item.DthjD14m.js.map +0 -1
  295. package/dist/chunks/toggle-button.ByyLw0Yf.js.map +0 -1
  296. package/dist/chunks/tooltip.Dww8NiUR.js.map +0 -1
  297. package/dist/chunks/use-cached-selected-values.BcNRo4mZ.js.map +0 -1
  298. package/dist/chunks/warning-filled.AiUbXzzg.js +0 -29
  299. package/dist/chunks/warning-filled.AiUbXzzg.js.map +0 -1
  300. package/dist/styles/legacy.css +0 -2239
@@ -1 +0,0 @@
1
- {"version":3,"file":"radio-group.BG8W9epW.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 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<{\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 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 { 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 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 </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, type PropType, 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 BentoRadioGroupItems, 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<{\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 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","props","__props","emit","__emit","value","toRefs","radioButtonId","generateUid","descriptionId","radioInputRef","ref","useDefaultSlotValidator","conditionalClassContainer","computed","RadioInputStateClass","ariaLabel","useAriaLabel","getSlotText","isChecked","onChange","__expose","BentoRadioGroupVariant","BentoRadioGroupVariant2","__default__","COMPONENT_NAME","inputValue","toRef","errorId","isReadOnly","useFormLayoutFieldLoading","radioButton","shouldShowError","shouldShowErrorMessage","conditionalClasses","isVertical","shouldShowSlotError","onInput","deprecate","watch","newVal"],"mappings":";;;;;;;;;;;;;;;;;GAsLIA,KAAA;AAAA,EAAe,MAAA;AAAA,EACL,OAAA,EAAA,MAAA,aAAA;AAEV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAvIA,UAAAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GACAI,IAAAC,GAiDAC,IAAAC,GAYA,EAAA,OAAAC,EAAA,IAAAC,EAAAL,CAAA,GACAM,IAAAC,EAAA,oBAAA,GACAC,IAAAD,EAAA,aAAA,GACAE,IAAAC,EAAA,IAAA;AAEA,IAAAC,GAAA,sBAAAf,EAAA,SAAAA,EAAA,WAAA;AAEA,UAAAgB,IAAAC,EAAA,OAAA;AAAA,MAAkD,CAAA,mBAAAC,EAAA,QAAA,EAAA,GAAAd,EAAA;AAAA,MACoB,CAAA,mBAAAc,EAAA,QAAA,EAAA,GAAAd,EAAA;AAAA,IACA,EAAA,GAGtEe,IAAAC,EAAA;AAAA,MAA+B,WAAAC,GAAArB,CAAA,EAAA,SAAA;AAAA,MACY,OAAAQ,EAAA;AAAA,IAC1B,CAAA,GAGjBc,IAAAL,EAAA,MAAAb,EAAA,UAAAA,EAAA,UAAA,GAEAmB,IAAA,MAAA;AACI,MAAA,CAAAnB,EAAA,YAAA,CAAAA,EAAA,aACIE,EAAA,sBAAAF,EAAA,KAAA,GACAE,EAAA,SAAAF,EAAA,KAAA;AAAA,IACJ;AAOJ,WAAAoB,EAAA;AAAA,MAAa,OAJb,MAAA;AACI,QAAAX,EAAA,MAAA,MAAA;AAAA,MAA0B;AAAA,IAI1B,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC3II,IAAAY,IAAA,kBAAAC,OACRA,EAAA,aAAA,cACAA,EAAA,WAAA,YAFQA,IAAAD,KAAA,CAAA,CAAA;uCCsORE,KAAA;AAAA,EAAe,MAAA;AAAA,EACL,OAAA,EAAA,MAAA,aAAA;AAEV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AApLA,UAAAC,IAAA,qBAEA5B,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAEAM,IAAAC,GAYAH,IAAAC,GAqFAwB,IAAAC,EAAA1B,GAAA,YAAA,GACA2B,IAAApB,EAAA,OAAA,GACA,EAAA,YAAAqB,EAAA,IAAAC,EAAAH,EAAA1B,GAAA,UAAA,CAAA,GACA8B,IAAApB,EAAA,IAAA,GAEAqB,IAAAlB;AAAA,MAAwB,MAAA,CAAAb,EAAA,YAAA,CAAA4B,EAAA,UAAA,CAAA,CAAA5B,EAAA,gBAAAA,EAAA;AAAA,IACyD,GAEjFgC,IAAAnB,EAAA,MAAA,CAAAb,EAAA,YAAA,CAAA4B,EAAA,SAAA,CAAA,CAAA5B,EAAA,YAAA,GAEAiC,IAAApB,EAAA,OAAA;AAAA,MAA2C,sCAAAb,EAAA,YAAAqB,EAAA;AAAA,IACwC,EAAA,GAInFa,IAAArB,EAAA,MAAAb,EAAA,YAAA,UAAA,GACAmC,IAAAtB,EAAA,MAAAf,EAAA,SAAA,KAAA,EAAAoC,KAAA,QAAAA,EAAA,MAAA,GAEAE,IAAA,CAAAhC,MAAA;AACI,MAAAF,EAAA,sBAAAE,CAAA,GACAF,EAAA,SAAAE,CAAA;AAAA,IAAmB;AAGvB,WAAAJ,EAAA,YACIqC;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,GAOJnB,EAAA;AAAA,MAAa,OAJb,MAAA;AACI,QAAAU,EAAA,MAAA,CAAA,EAAA,MAAA;AAAA,MAA2B;AAAA,IAI3B,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,566 +0,0 @@
1
- import { defineComponent as oe, computed as m, ref as $, toRefs as ce, provide as H, nextTick as fe, resolveComponent as T, createElementBlock as v, openBlock as n, createCommentVNode as u, createElementVNode as g, createBlock as S, withCtx as h, createTextVNode as I, toDisplayString as y, createVNode as C, renderSlot as V, mergeProps as q, inject as W, onUnmounted as ve, normalizeClass as Z, Fragment as z, renderList as pe } from "vue";
2
- import { B as ae } from "./button.wMNce6wZ.js";
3
- import { B as _e } from "./textarea.CtfRoIUw.js";
4
- import { u as se } from "./i18n.B6g5VX0q.js";
5
- import { B as be } from "./toggle-button.ByyLw0Yf.js";
6
- import { _ as J } from "./_plugin-vue_export-helper.CHgC5LLL.js";
7
- import { B as he } from "./date.BZENjOb6.js";
8
- import { B as ge } from "./link.Di0rtpOj.js";
9
- import { B as ye } from "./tag.BP8fBCx-.js";
10
- import { B as Ne, d as Te } from "./typography.CFHvBR7L.js";
11
- import { a as Ee, B as Ie, S as we } from "./structured-list-item.DIwkcIMT.js";
12
- /* empty css */
13
- import { g as Se } from "./generate-uid.NJ8tVoha.js";
14
- import { u as Ce } from "./use-has-slot.B7eQSabc.js";
15
- import { r as Me, l as ke, c as Le, t as U, g as G } from "./index.BrH1t1iu.js";
16
- import { c as Ae } from "./index.BxBB1rsx.js";
17
- import "../assets/timeline-item.css";
18
- var Q = 1e3 * 60, Y = 60 * 24, X = Y * 30, x = Y * 365;
19
- function ee(e, o) {
20
- var s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
21
- Me(2, arguments);
22
- var l = s.locale || ke;
23
- if (!l.formatDistance)
24
- throw new RangeError("locale must contain localize.formatDistance property");
25
- var N = Le(e, o);
26
- if (isNaN(N))
27
- throw new RangeError("Invalid time value");
28
- var r = Ae(s);
29
- r.addSuffix = !!s.addSuffix, r.comparison = N;
30
- var a, p;
31
- N > 0 ? (a = U(o), p = U(e)) : (a = U(e), p = U(o));
32
- var c = s.roundingMethod == null ? "round" : String(s.roundingMethod), t;
33
- if (c === "floor")
34
- t = Math.floor;
35
- else if (c === "ceil")
36
- t = Math.ceil;
37
- else if (c === "round")
38
- t = Math.round;
39
- else
40
- throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");
41
- var E = p.getTime() - a.getTime(), _ = E / Q, f = G(p) - G(a), b = (E - f) / Q, i;
42
- if (s.unit == null ? _ < 1 ? i = "second" : _ < 60 ? i = "minute" : _ < Y ? i = "hour" : b < X ? i = "day" : b < x ? i = "month" : i = "year" : i = String(s.unit), i === "second") {
43
- var k = t(E / 1e3);
44
- return l.formatDistance("xSeconds", k, r);
45
- } else if (i === "minute") {
46
- var A = t(_);
47
- return l.formatDistance("xMinutes", A, r);
48
- } else if (i === "hour") {
49
- var B = t(_ / 60);
50
- return l.formatDistance("xHours", B, r);
51
- } else if (i === "day") {
52
- var D = t(b / Y);
53
- return l.formatDistance("xDays", D, r);
54
- } else if (i === "month") {
55
- var R = t(b / X);
56
- return R === 12 && s.unit !== "month" ? l.formatDistance("xYears", 1, r) : l.formatDistance("xMonths", R, r);
57
- } else if (i === "year") {
58
- var L = t(b / x);
59
- return l.formatDistance("xYears", L, r);
60
- }
61
- throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'");
62
- }
63
- var O = /* @__PURE__ */ ((e) => (e.BOTTOM = "bottom", e.AFTER_FIRST = "after-first", e.BEFORE_LAST = "before-last", e))(O || {}), Re = /* @__PURE__ */ ((e) => (e.SECOND = "second", e.MINUTE = "minute", e.HOUR = "hour", e.DAY = "day", e.MONTH = "month", e.YEAR = "year", e))(Re || {}), F = /* @__PURE__ */ ((e) => (e.DEFAULT = "SquareSmallIcon", e.SUCCESS = "CheckedCircleIcon", e.CRITICAL = "CrossCircleIcon", e))(F || {}), le = /* @__PURE__ */ ((e) => (e.BLACK = "black", e.BLUE = "blue", e.GREEN = "green", e.GREY = "grey", e.ORANGE = "orange", e.RED = "red", e.YELLOW = "yellow", e))(le || {});
64
- const re = Symbol("timeline register entry injection key"), de = Symbol("timeline config obj injection key"), te = {
65
- "en-US": {
66
- addNote: "Add note",
67
- cancel: "Cancel"
68
- },
69
- "ja-JP": {
70
- addNote: "メモを追加",
71
- cancel: "キャンセル"
72
- },
73
- "pt-BR": {
74
- addNote: "Adicionar anotação",
75
- cancel: "Cancelar"
76
- }
77
- }, $e = oe({
78
- i18n: { messages: te },
79
- name: "bento-timeline",
80
- components: { BentoButton: ae, BentoButtonActions: be, BentoTextarea: _e },
81
- props: {
82
- /**
83
- * If set to true, gives the possibility to manually add notes to the timeline via a textarea
84
- */
85
- addNote: {
86
- type: Boolean,
87
- default: !1
88
- },
89
- /**
90
- * Object that determines the max number of items to show without clicking the show more button
91
- * and where in the timeline is the show more button placed
92
- */
93
- showMore: {
94
- type: Object,
95
- default: null
96
- },
97
- /**
98
- * Object that determines minimum amount of time for the automatic timegap indicator;
99
- * Define a unit (hour, day, month) and an amount (e.g. { amount: 7, unit: 'days' }).
100
- * If null, automatic timegap detection will be turned off
101
- */
102
- timegapLimit: {
103
- type: Object,
104
- default: null
105
- }
106
- },
107
- emits: ["add-timeline-note"],
108
- setup(e, { emit: o }) {
109
- const { t: s } = se({ messages: te }), l = m(() => s("addNote")), N = m(() => s("cancel")), r = $(), a = (d) => {
110
- r.value = d;
111
- }, p = $(null), c = $(null), t = $(!1), E = async () => {
112
- var d, w;
113
- t.value = !t.value, await fe(), t.value ? (d = p.value.$refs.textareaElement) == null || d.focus() : (w = c.value.$el) == null || w.focus();
114
- }, _ = () => {
115
- o("add-timeline-note", {
116
- description: r.value,
117
- timestamp: { date: /* @__PURE__ */ new Date() },
118
- type: "note"
119
- }), E();
120
- }, f = $([]), b = m(
121
- () => e.showMore && f.value.length > e.showMore.limit ? f.value.length - e.showMore.limit : null
122
- ), i = $(!1), { timegapLimit: k } = ce(e), A = m(() => {
123
- if (!e.showMore)
124
- return null;
125
- const d = Array.from(f.value.keys());
126
- return e.showMore.placement === O.BEFORE_LAST ? [
127
- ...d.slice(0, e.showMore.limit - 1),
128
- d[d.length - 1]
129
- ] : e.showMore.placement === O.AFTER_FIRST ? [d[0], ...d.slice(-(e.showMore.limit - 1))] : d.slice(0, e.showMore.limit);
130
- }), B = m(() => {
131
- if (!e.showMore)
132
- return null;
133
- switch (e.showMore.placement) {
134
- case O.BEFORE_LAST:
135
- return e.showMore.limit - 2;
136
- case O.AFTER_FIRST:
137
- return 0;
138
- case O.BOTTOM:
139
- default:
140
- return e.showMore.limit - 1;
141
- }
142
- }), D = (d) => () => {
143
- var w;
144
- f.value = (w = f.value) == null ? void 0 : w.filter((j, M) => M !== d);
145
- }, R = ({ title: d, description: w, date: j }) => {
146
- const M = f.value.length;
147
- return f.value.push({ title: d, description: w, date: j }), { timelineEntries: f, index: M, unregisterTimelineEntry: D(M) };
148
- }, L = {
149
- showAll: i,
150
- showMoreIndex: B,
151
- hiddenItems: b,
152
- visibleIndexes: A,
153
- timegapLimit: k
154
- };
155
- return H(re, R), H(de, L), {
156
- addNoteLabel: l,
157
- cancelLabel: N,
158
- toggleAddNote: E,
159
- updateNoteContent: a,
160
- addNoteToTimeline: _,
161
- showAddNoteTextArea: t,
162
- // refs
163
- addNoteTextareaRef: p,
164
- addNoteButtonRef: c
165
- };
166
- }
167
- }), Oe = { class: "b-timeline" }, Be = {
168
- key: 0,
169
- class: "b-timeline__add-note-section"
170
- }, De = { key: 1 }, je = { class: "b-timeline__items" };
171
- function Ue(e, o, s, l, N, r) {
172
- const a = T("bento-button"), p = T("bento-textarea"), c = T("bento-button-actions");
173
- return n(), v("div", Oe, [
174
- e.addNote ? (n(), v("div", Be, [
175
- e.showAddNoteTextArea ? u("", !0) : (n(), S(a, {
176
- key: 0,
177
- ref: "addNoteButtonRef",
178
- variant: "tertiary",
179
- onClick: e.toggleAddNote
180
- }, {
181
- default: h(() => [
182
- I(y(e.addNoteLabel), 1)
183
- ]),
184
- _: 1
185
- }, 8, ["onClick"])),
186
- e.showAddNoteTextArea ? (n(), v("div", De, [
187
- C(p, {
188
- ref: "addNoteTextareaRef",
189
- label: e.addNoteLabel,
190
- "character-limit": 150,
191
- resizable: "vertical",
192
- onInput: e.updateNoteContent
193
- }, null, 8, ["label", "onInput"]),
194
- C(c, {
195
- actions: [
196
- { title: e.addNoteLabel, event: e.addNoteToTimeline },
197
- { title: e.cancelLabel, event: e.toggleAddNote }
198
- ]
199
- }, null, 8, ["actions"])
200
- ])) : u("", !0)
201
- ])) : u("", !0),
202
- g("ol", je, [
203
- V(e.$slots, "default", {}, void 0, !0)
204
- ])
205
- ]);
206
- }
207
- const bt = /* @__PURE__ */ J($e, [["render", Ue], ["__scopeId", "data-v-70bcfb2c"]]);
208
- let ie = 0;
209
- const Fe = {
210
- beforeCreate() {
211
- this.uuid = ie.toString(), ie += 1;
212
- }
213
- }, Ye = { key: 0 };
214
- function ze(e, o, s, l, N, r) {
215
- return n(), v("svg", q({ role: "img" }, e.$attrs, {
216
- class: "ui-assets-icons-16",
217
- xmlns: "http://www.w3.org/2000/svg",
218
- width: "16",
219
- height: "16",
220
- fill: "none"
221
- }), [
222
- e.$attrs["svg-title"] ? (n(), v("title", Ye, y(e.$attrs["svg-title"]), 1)) : u("", !0),
223
- o[0] || (o[0] = g("path", {
224
- fill: "#001222",
225
- d: "M10 3.25C11.5188 3.25 12.75 4.48122 12.75 6V10C12.75 11.5188 11.5188 12.75 10 12.75H6C4.48122 12.75 3.25 11.5188 3.25 10V6C3.25 4.48122 4.48122 3.25 6 3.25H10Z"
226
- }, null, -1))
227
- ], 16);
228
- }
229
- const He = /* @__PURE__ */ J(Fe, [["render", ze]]), ne = {
230
- "en-US": {
231
- showLess: "Show less",
232
- showMore: "Show {items} more",
233
- timegap: "{timegap} passed between the timeline events"
234
- },
235
- "ja-JP": {
236
- showLess: "表示内容を減らす"
237
- },
238
- "pt-BR": {
239
- showLess: "Mostrar menos"
240
- }
241
- }, Ve = oe({
242
- name: "bento-timeline-item",
243
- components: {
244
- BentoButton: ae,
245
- BentoDate: he,
246
- BentoLink: ge,
247
- BentoTag: ye,
248
- BentoTypography: Ne,
249
- BentoStructuredList: Ie,
250
- BentoStructuredListItem: Ee,
251
- SquareSmallIcon: He
252
- },
253
- i18n: { messages: ne },
254
- props: {
255
- /**
256
- * Additional timestamp of the event
257
- */
258
- additionalTimestamp: {
259
- type: Object,
260
- default: null
261
- },
262
- /**
263
- * Relevant key-value pair data to display in the event
264
- */
265
- dataList: {
266
- type: Array,
267
- default: null
268
- },
269
- /**
270
- * Description of the event
271
- */
272
- description: {
273
- type: String,
274
- default: null
275
- },
276
- /**
277
- * Modifier that changes the color of the timeline icon
278
- * @values blue, black, green, grey, orange, red, yellow
279
- */
280
- status: {
281
- type: String,
282
- default: "black",
283
- validator: (e) => Object.values(le).includes(e)
284
- },
285
- /**
286
- * Tag props that will be passed down to inner tag component
287
- */
288
- tag: {
289
- type: Object,
290
- default: void 0
291
- },
292
- /**
293
- * Main timestamp of the event. Used for timegap detection.
294
- */
295
- timestamp: {
296
- type: Object,
297
- required: !0
298
- },
299
- /**
300
- * Title of the event
301
- */
302
- title: {
303
- type: [Object, String],
304
- default: null
305
- },
306
- /**
307
- * Type of the timeline item. If set to 'note', it renders a note item in the timeline. Defaults to 'milestone'.
308
- * @values milestone, note
309
- */
310
- type: {
311
- type: String,
312
- default: "milestone",
313
- validator: (e) => ["milestone", "note"].includes(e)
314
- },
315
- /**
316
- * Variant for the timeline item
317
- * @values DEFAULT, SUCCESS, CRITICAL
318
- *
319
- * @deprecated Use "status" prop instead
320
- */
321
- variant: {
322
- type: String,
323
- default: null,
324
- validator: (e) => Object.values(F).includes(e)
325
- }
326
- },
327
- setup(e, { slots: o }) {
328
- const { t: s } = se({ messages: ne }), l = m(() => e.type === "note"), N = m(() => e.variant === F.CRITICAL ? "red" : e.variant === F.SUCCESS ? "green" : e.status);
329
- e.variant && Te(
330
- 'BentoTimelineItem "variant" property',
331
- `Use the BentoTimelineItem "status" modifier instead to modify the color of the timeline icon.
332
- <bento-timeline-item status="red" />`,
333
- "2.0.0"
334
- );
335
- const r = m(() => ({
336
- [`b-timeline-item__icon--${N.value}`]: N.value && !l.value
337
- })), a = m(() => ({
338
- "b-timeline-item--note": l.value
339
- }));
340
- H(we, !0);
341
- const p = W(re), { timelineEntries: c, index: t, unregisterTimelineEntry: E } = p({
342
- title: e.title,
343
- date: e.timestamp.date
344
- });
345
- ve(() => E());
346
- const { showAll: _, showMoreIndex: f, hiddenItems: b, visibleIndexes: i, timegapLimit: k } = W(de), A = m(() => _.value || !i.value), B = m(() => A.value ? !0 : i.value.includes(t)), D = m(() => typeof e.title == "object"), R = m(() => e.title), L = m(() => {
347
- var K;
348
- if (!k.value)
349
- return null;
350
- const M = (K = c.value[t - 1]) == null ? void 0 : K.date, me = A.value || i.value.includes(t - 1);
351
- if (!M || !me)
352
- return null;
353
- const { date: P } = c.value[t], ue = parseInt(
354
- ee(M, P, { unit: k.value.unit }),
355
- 10
356
- );
357
- return k.value.amount < ue ? ee(M, P, { roundingMethod: "floor" }) : null;
358
- }), d = m(() => L.value ? s("timegap", { timegap: L.value }) : ""), w = m(() => b.value && f.value === t), j = m(() => t === c.value.length - 1);
359
- return {
360
- // Values
361
- isNoteType: l,
362
- iconConditionalClasses: r,
363
- conditionalClasses: a,
364
- displayShowMoreButton: w,
365
- showAll: _,
366
- hiddenItems: b,
367
- isVisible: B,
368
- isLinkTitle: D,
369
- linkTitleProps: R,
370
- timegap: L,
371
- timegapAriaLabel: d,
372
- isLastItem: j,
373
- // Methods
374
- generateUid: Se,
375
- hasSlot: Ce(o),
376
- t: s
377
- };
378
- }
379
- }), qe = {
380
- key: 0,
381
- class: "b-timeline-item__row"
382
- }, Je = { class: "b-timeline-item__content" }, Pe = { class: "b-timeline-item__row" }, Ke = {
383
- class: "b-timeline-item__marker",
384
- "aria-hidden": "true"
385
- }, We = {
386
- key: 0,
387
- class: "b-timeline-item__separator",
388
- "data-testid": "last-timeline-item-separator"
389
- }, Ze = { class: "b-timeline-item__content" }, Ge = { key: 1 }, Qe = {
390
- key: 5,
391
- class: "b-timeline-item__data-list"
392
- }, Xe = {
393
- key: 1,
394
- class: "b-timeline-item__row"
395
- }, xe = { class: "b-timeline-item__content" };
396
- function et(e, o, s, l, N, r) {
397
- const a = T("bento-typography"), p = T("square-small-icon"), c = T("bento-link"), t = T("bento-date"), E = T("bento-structured-list-item"), _ = T("bento-structured-list"), f = T("bento-tag"), b = T("bento-button");
398
- return e.isVisible ? (n(), v("li", {
399
- key: 0,
400
- class: Z(["b-timeline-item", e.conditionalClasses])
401
- }, [
402
- e.timegap ? (n(), v("div", qe, [
403
- o[1] || (o[1] = g("div", {
404
- class: "b-timeline-item__marker",
405
- "aria-hidden": "true"
406
- }, [
407
- g("div", { class: "b-timeline-item__icon b-timeline-item__icon--timegap" }),
408
- g("div", { class: "b-timeline-item__separator" })
409
- ], -1)),
410
- g("div", Je, [
411
- C(a, {
412
- class: "b-timeline-item__timegap",
413
- "aria-label": e.timegapAriaLabel
414
- }, {
415
- default: h(() => [
416
- I(y(e.timegap), 1)
417
- ]),
418
- _: 1
419
- }, 8, ["aria-label"])
420
- ])
421
- ])) : u("", !0),
422
- g("div", Pe, [
423
- g("div", Ke, [
424
- C(p, {
425
- class: Z(["b-timeline-item__icon", e.iconConditionalClasses])
426
- }, null, 8, ["class"]),
427
- e.isLastItem ? u("", !0) : (n(), v("div", We))
428
- ]),
429
- g("div", Ze, [
430
- e.isNoteType ? u("", !0) : (n(), S(a, {
431
- key: 0,
432
- el: "div",
433
- variant: "body",
434
- strongest: "",
435
- class: "b-timeline-item__title",
436
- role: "heading",
437
- "aria-level": "2"
438
- }, {
439
- default: h(() => [
440
- e.isLinkTitle ? (n(), S(c, q({ key: 0 }, e.linkTitleProps, { "disable-typography": "" }), {
441
- default: h(() => [
442
- I(y(e.linkTitleProps.title), 1)
443
- ]),
444
- _: 1
445
- }, 16)) : (n(), v("span", Ge, y(e.title), 1))
446
- ]),
447
- _: 1
448
- })),
449
- e.isNoteType && (e.description || e.hasSlot("default")) ? (n(), S(a, {
450
- key: 1,
451
- el: "div",
452
- variant: "body",
453
- class: "b-timeline-item__description"
454
- }, {
455
- default: h(() => [
456
- V(e.$slots, "default", {}, () => [
457
- I(y(e.description), 1)
458
- ], !0)
459
- ]),
460
- _: 3
461
- })) : u("", !0),
462
- e.timestamp ? (n(), S(a, {
463
- key: 2,
464
- class: "b-timeline-item__timestamp",
465
- el: "div",
466
- variant: "caption"
467
- }, {
468
- default: h(() => [
469
- C(t, {
470
- date: e.timestamp.date,
471
- format: e.timestamp.format,
472
- "disable-typography": ""
473
- }, null, 8, ["date", "format"]),
474
- I(" " + y(e.timestamp.value), 1)
475
- ]),
476
- _: 1
477
- })) : u("", !0),
478
- !e.isNoteType && e.additionalTimestamp ? (n(), S(a, {
479
- key: 3,
480
- class: "b-timeline-item__timestamp",
481
- el: "div",
482
- variant: "caption"
483
- }, {
484
- default: h(() => [
485
- C(t, {
486
- date: e.additionalTimestamp.date,
487
- format: e.additionalTimestamp.format,
488
- "disable-typography": ""
489
- }, null, 8, ["date", "format"]),
490
- I(" " + y(e.additionalTimestamp.value), 1)
491
- ]),
492
- _: 1
493
- })) : u("", !0),
494
- !e.isNoteType && (e.description || e.hasSlot("default")) ? (n(), S(a, {
495
- key: 4,
496
- el: "div",
497
- variant: "body",
498
- class: "b-timeline-item__description"
499
- }, {
500
- default: h(() => [
501
- V(e.$slots, "default", {}, () => [
502
- I(y(e.description), 1)
503
- ], !0)
504
- ]),
505
- _: 3
506
- })) : u("", !0),
507
- !e.isNoteType && e.dataList ? (n(), v("div", Qe, [
508
- C(_, null, {
509
- default: h(() => [
510
- (n(!0), v(z, null, pe(e.dataList, (i) => (n(), S(E, {
511
- key: e.generateUid(i.label),
512
- label: i.label
513
- }, {
514
- default: h(() => [
515
- C(a, { variant: "caption" }, {
516
- default: h(() => [
517
- I(y(i.value), 1)
518
- ]),
519
- _: 2
520
- }, 1024)
521
- ]),
522
- _: 2
523
- }, 1032, ["label"]))), 128))
524
- ]),
525
- _: 1
526
- })
527
- ])) : u("", !0),
528
- !e.isNoteType && e.tag ? (n(), S(f, q({ key: 6 }, e.tag, { class: "b-timeline-item__tag" }), null, 16)) : u("", !0)
529
- ])
530
- ]),
531
- e.displayShowMoreButton ? (n(), v("div", Xe, [
532
- o[2] || (o[2] = g("div", {
533
- class: "b-timeline-item__marker",
534
- "aria-hidden": "true"
535
- }, [
536
- g("div", { class: "b-timeline-item__separator" })
537
- ], -1)),
538
- g("div", xe, [
539
- C(b, {
540
- class: "b-timeline__show-more",
541
- variant: "tertiary",
542
- onClick: o[0] || (o[0] = (i) => e.showAll = !e.showAll)
543
- }, {
544
- default: h(() => [
545
- e.showAll ? (n(), v(z, { key: 1 }, [
546
- I(y(e.t("showLess")), 1)
547
- ], 64)) : (n(), v(z, { key: 0 }, [
548
- I(y(e.t("showMore", { items: e.hiddenItems })), 1)
549
- ], 64))
550
- ]),
551
- _: 1
552
- })
553
- ])
554
- ])) : u("", !0)
555
- ], 2)) : u("", !0);
556
- }
557
- const ht = /* @__PURE__ */ J(Ve, [["render", et], ["__scopeId", "data-v-feb2fed0"]]);
558
- export {
559
- O as B,
560
- ht as a,
561
- Re as b,
562
- F as c,
563
- le as d,
564
- bt as t
565
- };
566
- //# sourceMappingURL=timeline-item.DthjD14m.js.map