@adyen/bento-vue3 1.68.2 → 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 (458) hide show
  1. package/dist/@types/components.d.ts +1 -0
  2. package/dist/@types/index.d.ts +978 -1976
  3. package/dist/accordion.js +1 -1
  4. package/dist/action-bar.js +1 -1
  5. package/dist/alert.js +1 -1
  6. package/dist/assets/accordion-item.css +1 -1
  7. package/dist/assets/action-bar.css +1 -1
  8. package/dist/assets/alert.css +1 -1
  9. package/dist/assets/base-button.css +1 -1
  10. package/dist/assets/base-modal.css +1 -1
  11. package/dist/assets/button-actions-with-menu.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/checkbox-group.css +1 -1
  16. package/dist/assets/checkbox-input.css +1 -1
  17. package/dist/assets/checkbox.css +1 -1
  18. package/dist/assets/chip.css +1 -1
  19. package/dist/assets/code-snippet.css +1 -1
  20. package/dist/assets/controls-group.css +1 -1
  21. package/dist/assets/copy.css +1 -1
  22. package/dist/assets/country.css +1 -1
  23. package/dist/assets/currency.css +1 -1
  24. package/dist/assets/dashed-underline.css +1 -1
  25. package/dist/assets/data-grid-template.css +1 -1
  26. package/dist/assets/data-grid.css +1 -1
  27. package/dist/assets/date-picker.css +1 -1
  28. package/dist/assets/date-range-picker.css +1 -1
  29. package/dist/assets/dialog-page.css +1 -1
  30. package/dist/assets/divider.css +1 -1
  31. package/dist/assets/dropdown-default-textbox.css +1 -1
  32. package/dist/assets/dropdown-tag.css +1 -1
  33. package/dist/assets/dropdown.css +1 -1
  34. package/dist/assets/empty-state.css +1 -1
  35. package/dist/assets/error-message.css +1 -1
  36. package/dist/assets/file-uploader.css +1 -1
  37. package/dist/assets/filter-bar.css +1 -1
  38. package/dist/assets/focus-trap.css +1 -1
  39. package/dist/assets/footer-actions.css +1 -1
  40. package/dist/assets/form-layout-title.css +1 -1
  41. package/dist/assets/grid-layout.css +1 -1
  42. package/dist/assets/header-meta.css +1 -1
  43. package/dist/assets/header-with-views.css +1 -1
  44. package/dist/assets/header.css +1 -1
  45. package/dist/assets/info-icon.css +1 -1
  46. package/dist/assets/input-field-password.css +1 -1
  47. package/dist/assets/input-field-phone-number.css +1 -1
  48. package/dist/assets/input-field.css +1 -1
  49. package/dist/assets/inspector.css +1 -1
  50. package/dist/assets/layout-row.css +1 -1
  51. package/dist/assets/listbox-option-tag.css +1 -1
  52. package/dist/assets/loading-indicator.css +1 -1
  53. package/dist/assets/modal-fullscreen.css +1 -1
  54. package/dist/assets/pagination.css +1 -1
  55. package/dist/assets/payment-method.css +1 -1
  56. package/dist/assets/popper-container.css +1 -1
  57. package/dist/assets/promo-banner.css +1 -1
  58. package/dist/assets/radio-group.css +1 -1
  59. package/dist/assets/radio-input.css +1 -1
  60. package/dist/assets/rich-text-editor.css +1 -1
  61. package/dist/assets/search-bar.css +1 -1
  62. package/dist/assets/secondary-nav.css +1 -1
  63. package/dist/assets/segmented-control.css +1 -1
  64. package/dist/assets/selection-card-group.css +1 -1
  65. package/dist/assets/sidepanel.css +1 -1
  66. package/dist/assets/status.css +1 -1
  67. package/dist/assets/step.css +1 -1
  68. package/dist/assets/structured-list-item.css +1 -1
  69. package/dist/assets/tab.css +1 -1
  70. package/dist/assets/tag.css +1 -1
  71. package/dist/assets/textarea.css +1 -1
  72. package/dist/assets/timeline-item.css +1 -1
  73. package/dist/assets/toast.css +1 -1
  74. package/dist/assets/toggle-button.css +1 -1
  75. package/dist/assets/toggle.css +1 -1
  76. package/dist/assets/tooltip.css +1 -1
  77. package/dist/assets/tutorial.css +1 -1
  78. package/dist/assets/typography.css +1 -1
  79. package/dist/assets/use-cached-selected-values.css +1 -1
  80. package/dist/avatar.js +1 -1
  81. package/dist/button.js +9 -9
  82. package/dist/card.js +1 -1
  83. package/dist/checkbox.js +2 -2
  84. package/dist/chip.js +1 -1
  85. package/dist/chunks/{accordion-item.DOnW0OnU.js → accordion-item.6etqAJV9.js} +3 -3
  86. package/dist/chunks/accordion-item.6etqAJV9.js.map +1 -0
  87. package/dist/chunks/{action-bar.CflF49oL.js → action-bar.CweA2FeY.js} +7 -8
  88. package/dist/chunks/action-bar.CweA2FeY.js.map +1 -0
  89. package/dist/chunks/alert.Dzx5MzgE.js +171 -0
  90. package/dist/chunks/alert.Dzx5MzgE.js.map +1 -0
  91. package/dist/chunks/aria-label.CaUURpnB.js.map +1 -1
  92. package/dist/chunks/{avatar.B0-9jC6H.js → avatar.Dq59yj6m.js} +2 -2
  93. package/dist/chunks/avatar.Dq59yj6m.js.map +1 -0
  94. package/dist/chunks/{base-button.DdNFlbgH.js → base-button.CjYb5Y8k.js} +19 -19
  95. package/dist/chunks/base-button.CjYb5Y8k.js.map +1 -0
  96. package/dist/chunks/{base-modal.C3_r3rmc.js → base-modal.BrBcILSe.js} +21 -21
  97. package/dist/chunks/base-modal.BrBcILSe.js.map +1 -0
  98. package/dist/chunks/bin.DuHlEQBO.js +37 -0
  99. package/dist/chunks/bin.DuHlEQBO.js.map +1 -0
  100. package/dist/chunks/button-actions-with-menu.CBuoSd3w.js +93 -0
  101. package/dist/chunks/button-actions-with-menu.CBuoSd3w.js.map +1 -0
  102. package/dist/chunks/button-actions.types.BptAXjD8.js +8 -0
  103. package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -0
  104. package/dist/chunks/{button.AB0SOQMn.js → button.C-MAa6ut.js} +4 -4
  105. package/dist/chunks/button.C-MAa6ut.js.map +1 -0
  106. package/dist/chunks/{calendar._oPk_A1C.js → calendar.DFHiga9k.js} +36 -37
  107. package/dist/chunks/calendar.DFHiga9k.js.map +1 -0
  108. package/dist/chunks/{card.CS34Mi_G.js → card.BspLDcas.js} +6 -5
  109. package/dist/chunks/card.BspLDcas.js.map +1 -0
  110. package/dist/chunks/{checkbox-group.JRo6xNpe.js → checkbox-group.DIXgr1WQ.js} +6 -6
  111. package/dist/chunks/checkbox-group.DIXgr1WQ.js.map +1 -0
  112. package/dist/chunks/{checkbox-input.DFkwZ4GM.js → checkbox-input.BXNGT9U0.js} +2 -2
  113. package/dist/chunks/checkbox-input.BXNGT9U0.js.map +1 -0
  114. package/dist/chunks/{checkbox.DGrG3GN1.js → checkbox.M6lKj2hQ.js} +27 -27
  115. package/dist/chunks/checkbox.M6lKj2hQ.js.map +1 -0
  116. package/dist/chunks/{chip.CneNX2_j.js → chip.DcpP3zb6.js} +11 -11
  117. package/dist/chunks/chip.DcpP3zb6.js.map +1 -0
  118. package/dist/chunks/{code-snippet.D5M76Qy6.js → code-snippet.CKrxKjkQ.js} +8 -8
  119. package/dist/chunks/code-snippet.CKrxKjkQ.js.map +1 -0
  120. package/dist/chunks/{controls-group.CrzkSu0U.js → controls-group.CXVHTaYp.js} +32 -29
  121. package/dist/chunks/controls-group.CXVHTaYp.js.map +1 -0
  122. package/dist/chunks/{copy.RUoQOydT.js → copy.C4DAAiPw.js} +18 -19
  123. package/dist/chunks/copy.C4DAAiPw.js.map +1 -0
  124. package/dist/chunks/{country.Q95voxeL.js → country.RVvsGwuV.js} +9 -9
  125. package/dist/chunks/country.RVvsGwuV.js.map +1 -0
  126. package/dist/chunks/country.types.C0Q_hhgJ.js.map +1 -1
  127. package/dist/chunks/{currency.CZVdyZUH.js → currency.CN4UnCx8.js} +3 -3
  128. package/dist/chunks/currency.CN4UnCx8.js.map +1 -0
  129. package/dist/chunks/{dashboard-section.Bhd5Lsy2.js → dashboard-section.Cll3tn0q.js} +4 -4
  130. package/dist/chunks/{dashboard-section.Bhd5Lsy2.js.map → dashboard-section.Cll3tn0q.js.map} +1 -1
  131. package/dist/chunks/{dashed-underline.DkzQkpaf.js → dashed-underline.2OYxO-Rh.js} +30 -32
  132. package/dist/chunks/dashed-underline.2OYxO-Rh.js.map +1 -0
  133. package/dist/chunks/{data-grid-template.DSwj7e1E.js → data-grid-template.CTRHofoW.js} +5 -5
  134. package/dist/chunks/data-grid-template.CTRHofoW.js.map +1 -0
  135. package/dist/chunks/data-grid.DMOTTywp.js +3932 -0
  136. package/dist/chunks/data-grid.DMOTTywp.js.map +1 -0
  137. package/dist/chunks/{date-picker.CAoXTiZR.js → date-picker.CBlQ0ql7.js} +13 -14
  138. package/dist/chunks/date-picker.CBlQ0ql7.js.map +1 -0
  139. package/dist/chunks/date-range-picker.D-gGqpFB.js +1168 -0
  140. package/dist/chunks/date-range-picker.D-gGqpFB.js.map +1 -0
  141. package/dist/chunks/{date.DSjCnSgL.js → date.4GAXrgy5.js} +2 -2
  142. package/dist/chunks/{date.DSjCnSgL.js.map → date.4GAXrgy5.js.map} +1 -1
  143. package/dist/chunks/{dialog-page.C80HOigq.js → dialog-page.VSJgHY3C.js} +15 -15
  144. package/dist/chunks/dialog-page.VSJgHY3C.js.map +1 -0
  145. package/dist/chunks/{divider.qUOSAbU6.js → divider.DnKNNyWB.js} +2 -2
  146. package/dist/chunks/divider.DnKNNyWB.js.map +1 -0
  147. package/dist/chunks/{dropdown-default-textbox.Ce5D3ipi.js → dropdown-default-textbox.CGsOngY1.js} +111 -109
  148. package/dist/chunks/dropdown-default-textbox.CGsOngY1.js.map +1 -0
  149. package/dist/chunks/dropdown-tag.DlFpUeXa.js +296 -0
  150. package/dist/chunks/dropdown-tag.DlFpUeXa.js.map +1 -0
  151. package/dist/chunks/{dropdown.CMOYmQLB.js → dropdown.agfzvJZE.js} +59 -59
  152. package/dist/chunks/dropdown.agfzvJZE.js.map +1 -0
  153. package/dist/chunks/{empty-state.D7llINgF.js → empty-state.BTaeZdQu.js} +4 -4
  154. package/dist/chunks/empty-state.BTaeZdQu.js.map +1 -0
  155. package/dist/chunks/{error-message.DHMHq9bR.js → error-message.B1P5ictH.js} +5 -5
  156. package/dist/chunks/{error-message.DHMHq9bR.js.map → error-message.B1P5ictH.js.map} +1 -1
  157. package/dist/chunks/es6.MoTTyETW.js +12 -0
  158. package/dist/chunks/es6.MoTTyETW.js.map +1 -0
  159. package/dist/chunks/events.CMzGybJJ.js +47 -0
  160. package/dist/chunks/events.CMzGybJJ.js.map +1 -0
  161. package/dist/chunks/{file-uploader.B_EI2fAc.js → file-uploader.Vac1Cu0i.js} +165 -164
  162. package/dist/chunks/file-uploader.Vac1Cu0i.js.map +1 -0
  163. package/dist/chunks/{filter-bar.DoHMLZ4O.js → filter-bar.uUpoP-XZ.js} +361 -368
  164. package/dist/chunks/filter-bar.uUpoP-XZ.js.map +1 -0
  165. package/dist/chunks/{fixed-scroller.D5nAPPbo.js → fixed-scroller.DSGxXiAH.js} +2 -2
  166. package/dist/chunks/{fixed-scroller.D5nAPPbo.js.map → fixed-scroller.DSGxXiAH.js.map} +1 -1
  167. package/dist/chunks/{focus-trap.CljZgv9i.js → focus-trap.rjp24a37.js} +2 -2
  168. package/dist/chunks/focus-trap.rjp24a37.js.map +1 -0
  169. package/dist/chunks/{footer-actions.Bje-DDqw.js → footer-actions.gRKTKGts.js} +5 -5
  170. package/dist/chunks/footer-actions.gRKTKGts.js.map +1 -0
  171. package/dist/chunks/{form-layout-title.rpIO-I9A.js → form-layout-title.DdRqnXXi.js} +5 -5
  172. package/dist/chunks/form-layout-title.DdRqnXXi.js.map +1 -0
  173. package/dist/chunks/{grid-layout.BTLE3rac.js → grid-layout.DDaRNz4-.js} +2 -2
  174. package/dist/chunks/grid-layout.DDaRNz4-.js.map +1 -0
  175. package/dist/chunks/{header-meta.Yt43-cUI.js → header-meta.Ct79L1O8.js} +26 -27
  176. package/dist/chunks/{header-meta.Yt43-cUI.js.map → header-meta.Ct79L1O8.js.map} +1 -1
  177. package/dist/chunks/{header-with-views.BUed3ocZ.js → header-with-views.BVHdSAKp.js} +281 -281
  178. package/dist/chunks/header-with-views.BVHdSAKp.js.map +1 -0
  179. package/dist/chunks/{header.CwKjDgKv.js → header.Cd1P8lYK.js} +32 -32
  180. package/dist/chunks/header.Cd1P8lYK.js.map +1 -0
  181. package/dist/chunks/image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js.map +1 -1
  182. package/dist/chunks/{info-icon.DprUQ9fj.js → info-icon.Bl0iKUfC.js} +7 -8
  183. package/dist/chunks/info-icon.Bl0iKUfC.js.map +1 -0
  184. package/dist/chunks/info.BKwey1HA.js +44 -0
  185. package/dist/chunks/info.BKwey1HA.js.map +1 -0
  186. package/dist/chunks/{input-field-password.DN0Jro1V.js → input-field-password.DkIWrrxy.js} +8 -8
  187. package/dist/chunks/input-field-password.DkIWrrxy.js.map +1 -0
  188. package/dist/chunks/{input-field-phone-number.BhPsrafR.js → input-field-phone-number.EXlRu8qq.js} +46 -45
  189. package/dist/chunks/{input-field-phone-number.BhPsrafR.js.map → input-field-phone-number.EXlRu8qq.js.map} +1 -1
  190. package/dist/chunks/{input-field.su5Cq8Dt.js → input-field.CgbiOju9.js} +5 -5
  191. package/dist/chunks/input-field.CgbiOju9.js.map +1 -0
  192. package/dist/chunks/{inspector.CoZCPfHC.js → inspector.BGtTMtE0.js} +13 -13
  193. package/dist/chunks/inspector.BGtTMtE0.js.map +1 -0
  194. package/dist/chunks/{keyboard-navigation.CqgGzfZQ.js → keyboard-navigation.pB8weElW.js} +2 -2
  195. package/dist/chunks/keyboard-navigation.pB8weElW.js.map +1 -0
  196. package/dist/chunks/{layout-row.CZNtHaXd.js → layout-row.BPfOPn4x.js} +9 -9
  197. package/dist/chunks/layout-row.BPfOPn4x.js.map +1 -0
  198. package/dist/chunks/{link.BBpxiclu.js → link.cwPmWlsk.js} +2 -2
  199. package/dist/chunks/{link.BBpxiclu.js.map → link.cwPmWlsk.js.map} +1 -1
  200. package/dist/chunks/{listbox-option-tag.0BK6jWO9.js → listbox-option-tag.CDIkX7nh.js} +7 -7
  201. package/dist/chunks/listbox-option-tag.CDIkX7nh.js.map +1 -0
  202. package/dist/chunks/{loading-indicator.DEepb9Wl.js → loading-indicator.VHi5tbZa.js} +3 -3
  203. package/dist/chunks/loading-indicator.VHi5tbZa.js.map +1 -0
  204. package/dist/chunks/minus-small.DYIyF5XW.js.map +1 -1
  205. package/dist/chunks/{modal-fullscreen.DBTnoSX9.js → modal-fullscreen.-Q-7GMyT.js} +18 -19
  206. package/dist/chunks/modal-fullscreen.-Q-7GMyT.js.map +1 -0
  207. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.Cd-mQUJ8.js → modal.vue_vue_type_script_setup_true_lang.TFh7p51f.js} +6 -6
  208. package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.TFh7p51f.js.map +1 -0
  209. package/dist/chunks/{pagination.fYQak4C8.js → pagination.DW_HPEIu.js} +5 -5
  210. package/dist/chunks/pagination.DW_HPEIu.js.map +1 -0
  211. package/dist/chunks/{payment-method.eazefwm6.js → payment-method.CDnn1bjo.js} +3 -3
  212. package/dist/chunks/payment-method.CDnn1bjo.js.map +1 -0
  213. package/dist/chunks/popover.types.COM6oQgq.js +6 -0
  214. package/dist/chunks/popover.types.COM6oQgq.js.map +1 -0
  215. package/dist/chunks/{popper-container.b5h4zYgT.js → popper-container.CgJzEQ7N.js} +285 -281
  216. package/dist/chunks/popper-container.CgJzEQ7N.js.map +1 -0
  217. package/dist/chunks/{promo-banner.CQp3z2CP.js → promo-banner.BbqIA4Ce.js} +4 -4
  218. package/dist/chunks/promo-banner.BbqIA4Ce.js.map +1 -0
  219. package/dist/chunks/{radio-group.H9A5QcNu.js → radio-group.CbLIPi7h.js} +77 -69
  220. package/dist/chunks/radio-group.CbLIPi7h.js.map +1 -0
  221. package/dist/chunks/{radio-input.DKfQGxtp.js → radio-input.odN9FOyr.js} +2 -2
  222. package/dist/chunks/radio-input.odN9FOyr.js.map +1 -0
  223. package/dist/chunks/{rich-text-editor.Dx78coVL.js → rich-text-editor.C0hJeV4H.js} +8 -8
  224. package/dist/chunks/rich-text-editor.C0hJeV4H.js.map +1 -0
  225. package/dist/chunks/{search-bar.CUrcP_wf.js → search-bar.CvAi2t3-.js} +46 -44
  226. package/dist/chunks/search-bar.CvAi2t3-.js.map +1 -0
  227. package/dist/chunks/{secondary-nav.j3ddtYoZ.js → secondary-nav.yntS8-u5.js} +28 -28
  228. package/dist/chunks/secondary-nav.yntS8-u5.js.map +1 -0
  229. package/dist/chunks/{segmented-control.5-vlm8Gt.js → segmented-control.CRSdIvha.js} +6 -7
  230. package/dist/chunks/segmented-control.CRSdIvha.js.map +1 -0
  231. package/dist/chunks/{selection-card-group.B4xpnd-z.js → selection-card-group.Cu3V8h4R.js} +16 -16
  232. package/dist/chunks/selection-card-group.Cu3V8h4R.js.map +1 -0
  233. package/dist/chunks/{sidepanel.DPN__L3Q.js → sidepanel.z18XSO3M.js} +14 -14
  234. package/dist/chunks/sidepanel.z18XSO3M.js.map +1 -0
  235. package/dist/chunks/{status.types.Bdv2zuuh.js → status.types.-l2qJxLn.js} +9 -9
  236. package/dist/chunks/status.types.-l2qJxLn.js.map +1 -0
  237. package/dist/chunks/{step.BtNhPZAf.js → step.BMSjltwl.js} +8 -9
  238. package/dist/chunks/step.BMSjltwl.js.map +1 -0
  239. package/dist/chunks/{structured-list-item.BQbEDKhg.js → structured-list-item.CD1nMqzH.js} +18 -19
  240. package/dist/chunks/structured-list-item.CD1nMqzH.js.map +1 -0
  241. package/dist/chunks/{summary-grid.types.CjbbSZBJ.js → summary-grid.types.BHuDlPDw.js} +7 -7
  242. package/dist/chunks/{summary-grid.types.CjbbSZBJ.js.map → summary-grid.types.BHuDlPDw.js.map} +1 -1
  243. package/dist/chunks/{tab.CAt51ksU.js → tab.C3R_VoJL.js} +5 -5
  244. package/dist/chunks/tab.C3R_VoJL.js.map +1 -0
  245. package/dist/chunks/{tag.D3in0-Bp.js → tag.B6AmSws9.js} +11 -12
  246. package/dist/chunks/tag.B6AmSws9.js.map +1 -0
  247. package/dist/chunks/textarea.DfQLxj_w.js +295 -0
  248. package/dist/chunks/textarea.DfQLxj_w.js.map +1 -0
  249. package/dist/chunks/timeline-item.25y9USE-.js +568 -0
  250. package/dist/chunks/timeline-item.25y9USE-.js.map +1 -0
  251. package/dist/chunks/{toast.CSoCPteL.js → toast.DIhABAW8.js} +18 -18
  252. package/dist/chunks/toast.DIhABAW8.js.map +1 -0
  253. package/dist/chunks/toggle-button.CQl9HneO.js +1353 -0
  254. package/dist/chunks/toggle-button.CQl9HneO.js.map +1 -0
  255. package/dist/chunks/{toggle.BuKXexA6.js → toggle.C8k7NQ7y.js} +3 -3
  256. package/dist/chunks/toggle.C8k7NQ7y.js.map +1 -0
  257. package/dist/chunks/{tooltip.VYPUHERk.js → tooltip.lBnko9QV.js} +70 -64
  258. package/dist/chunks/tooltip.lBnko9QV.js.map +1 -0
  259. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.Dmf8fGaM.js → tutorial.vue_vue_type_script_setup_true_lang.BProZFmI.js} +48 -51
  260. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.BProZFmI.js.map +1 -0
  261. package/dist/chunks/{typography.DN5eC5ch.js → typography.yBEME_Gu.js} +25 -25
  262. package/dist/chunks/typography.yBEME_Gu.js.map +1 -0
  263. package/dist/chunks/{use-bento-toast-controller.D3LA1FCd.js → use-bento-toast-controller.Kri_h7jS.js} +2 -2
  264. package/dist/chunks/{use-bento-toast-controller.D3LA1FCd.js.map → use-bento-toast-controller.Kri_h7jS.js.map} +1 -1
  265. package/dist/chunks/{use-cached-selected-values.Dyoz6cUK.js → use-cached-selected-values.CELe-MsT.js} +16 -17
  266. package/dist/chunks/use-cached-selected-values.CELe-MsT.js.map +1 -0
  267. package/dist/chunks/{use-country-items.Duh4bMqW.js → use-country-items.D_kamcYy.js} +2 -2
  268. package/dist/chunks/use-country-items.D_kamcYy.js.map +1 -0
  269. package/dist/chunks/{use-country-phon-code.BOaJ9PDl.js → use-country-phon-code.Bui3zD6W.js} +5 -3
  270. package/dist/chunks/{use-country-phon-code.BOaJ9PDl.js.map → use-country-phon-code.Bui3zD6W.js.map} +1 -1
  271. package/dist/chunks/use-has-slot.B7eQSabc.js.map +1 -1
  272. package/dist/chunks/warning-filled.BMGD0G-_.js +29 -0
  273. package/dist/chunks/warning-filled.BMGD0G-_.js.map +1 -0
  274. package/dist/code-snippet.js +1 -1
  275. package/dist/country.js +2 -2
  276. package/dist/currency.js +1 -1
  277. package/dist/dashboard-template.js +1 -1
  278. package/dist/dashed-underline.js +1 -1
  279. package/dist/data-grid-template.js +1 -1
  280. package/dist/data-grid.js +1 -1
  281. package/dist/date-picker.js +2 -2
  282. package/dist/date-range-picker.js +2 -2
  283. package/dist/date.js +1 -1
  284. package/dist/divider.js +1 -1
  285. package/dist/dropdown.js +4 -4
  286. package/dist/empty-state.js +1 -1
  287. package/dist/file-uploader.js +1 -1
  288. package/dist/filter-bar.js +1 -1
  289. package/dist/focus-trap.js +1 -1
  290. package/dist/form-layout.js +1 -1
  291. package/dist/header-with-views.js +1 -1
  292. package/dist/header.js +1 -1
  293. package/dist/index.js +241 -244
  294. package/dist/index.js.map +1 -1
  295. package/dist/info-icon.js +1 -1
  296. package/dist/input-field-password.js +1 -1
  297. package/dist/input-field-phone-number.js +3 -2
  298. package/dist/input-field.js +1 -1
  299. package/dist/inspector.js +1 -1
  300. package/dist/internal.js +33 -32
  301. package/dist/internal.js.map +1 -1
  302. package/dist/layout.js +1 -1
  303. package/dist/link.js +1 -1
  304. package/dist/loading-indicator.js +1 -1
  305. package/dist/menu.js +1 -1
  306. package/dist/modal-fullscreen.js +1 -1
  307. package/dist/modal.js +2 -2
  308. package/dist/pagination.js +1 -1
  309. package/dist/payment-method.js +1 -1
  310. package/dist/popover.js +2 -2
  311. package/dist/popper-container.js +4 -5
  312. package/dist/popper-container.js.map +1 -1
  313. package/dist/promo-banner.js +1 -1
  314. package/dist/radio-group.js +2 -2
  315. package/dist/rich-text-editor.js +1 -1
  316. package/dist/search-bar.js +2 -2
  317. package/dist/secondary-nav.js +1 -1
  318. package/dist/segmented-control.js +1 -1
  319. package/dist/selection-card.js +1 -1
  320. package/dist/sidepanel.js +1 -1
  321. package/dist/status.js +1 -1
  322. package/dist/stepper.js +1 -1
  323. package/dist/structured-list.js +1 -1
  324. package/dist/styles/bento-dark.css +17 -4
  325. package/dist/styles/bento-light.css +17 -4
  326. package/dist/styles/bento.css +17 -4
  327. package/dist/styles/styleguide.css +17 -4
  328. package/dist/styles/utility.css +3 -0
  329. package/dist/summary-grid.js +1 -1
  330. package/dist/tabs.js +1 -1
  331. package/dist/tag.js +1 -1
  332. package/dist/textarea.js +1 -1
  333. package/dist/timeline.js +1 -1
  334. package/dist/toast.js +1 -1
  335. package/dist/toggle.js +1 -1
  336. package/dist/tutorial.js +1 -1
  337. package/dist/typography.js +1 -1
  338. package/dist/use-form-v4.js.map +1 -1
  339. package/dist/web-types.json +1 -1
  340. package/package.json +6 -6
  341. package/dist/assets/button-actions.css +0 -1
  342. package/dist/assets/menu.css +0 -1
  343. package/dist/assets/popover.css +0 -1
  344. package/dist/assets/teleport.css +0 -1
  345. package/dist/chunks/accordion-item.DOnW0OnU.js.map +0 -1
  346. package/dist/chunks/action-bar.CflF49oL.js.map +0 -1
  347. package/dist/chunks/alert.DvleqX0i.js +0 -169
  348. package/dist/chunks/alert.DvleqX0i.js.map +0 -1
  349. package/dist/chunks/avatar.B0-9jC6H.js.map +0 -1
  350. package/dist/chunks/base-button.DdNFlbgH.js.map +0 -1
  351. package/dist/chunks/base-modal.C3_r3rmc.js.map +0 -1
  352. package/dist/chunks/base-modal.keys.C2PQXcE2.js +0 -5
  353. package/dist/chunks/base-modal.keys.C2PQXcE2.js.map +0 -1
  354. package/dist/chunks/bin.CiGG2V4b.js +0 -37
  355. package/dist/chunks/bin.CiGG2V4b.js.map +0 -1
  356. package/dist/chunks/button-actions-with-menu.8ZYh7-9s.js +0 -91
  357. package/dist/chunks/button-actions-with-menu.8ZYh7-9s.js.map +0 -1
  358. package/dist/chunks/button-actions.CZdO9YOk.js +0 -264
  359. package/dist/chunks/button-actions.CZdO9YOk.js.map +0 -1
  360. package/dist/chunks/button.AB0SOQMn.js.map +0 -1
  361. package/dist/chunks/calendar._oPk_A1C.js.map +0 -1
  362. package/dist/chunks/card.CS34Mi_G.js.map +0 -1
  363. package/dist/chunks/checkbox-group.JRo6xNpe.js.map +0 -1
  364. package/dist/chunks/checkbox-input.DFkwZ4GM.js.map +0 -1
  365. package/dist/chunks/checkbox.DGrG3GN1.js.map +0 -1
  366. package/dist/chunks/chip.CneNX2_j.js.map +0 -1
  367. package/dist/chunks/code-snippet.D5M76Qy6.js.map +0 -1
  368. package/dist/chunks/controls-group.CrzkSu0U.js.map +0 -1
  369. package/dist/chunks/copy.RUoQOydT.js.map +0 -1
  370. package/dist/chunks/country.Q95voxeL.js.map +0 -1
  371. package/dist/chunks/currency.CZVdyZUH.js.map +0 -1
  372. package/dist/chunks/dashed-underline.DkzQkpaf.js.map +0 -1
  373. package/dist/chunks/data-grid-template.DSwj7e1E.js.map +0 -1
  374. package/dist/chunks/data-grid.BEdELRNZ.js +0 -3860
  375. package/dist/chunks/data-grid.BEdELRNZ.js.map +0 -1
  376. package/dist/chunks/date-picker.CAoXTiZR.js.map +0 -1
  377. package/dist/chunks/date-range-picker.DtV4L3L6.js +0 -1225
  378. package/dist/chunks/date-range-picker.DtV4L3L6.js.map +0 -1
  379. package/dist/chunks/dialog-page.C80HOigq.js.map +0 -1
  380. package/dist/chunks/divider.qUOSAbU6.js.map +0 -1
  381. package/dist/chunks/dropdown-default-textbox.Ce5D3ipi.js.map +0 -1
  382. package/dist/chunks/dropdown-tag.B3fptORX.js +0 -230
  383. package/dist/chunks/dropdown-tag.B3fptORX.js.map +0 -1
  384. package/dist/chunks/dropdown.CMOYmQLB.js.map +0 -1
  385. package/dist/chunks/empty-state.D7llINgF.js.map +0 -1
  386. package/dist/chunks/es6.n1ewaW31.js +0 -11
  387. package/dist/chunks/es6.n1ewaW31.js.map +0 -1
  388. package/dist/chunks/events.FNmSWp_P.js +0 -52
  389. package/dist/chunks/events.FNmSWp_P.js.map +0 -1
  390. package/dist/chunks/file-uploader.B_EI2fAc.js.map +0 -1
  391. package/dist/chunks/filter-bar.DoHMLZ4O.js.map +0 -1
  392. package/dist/chunks/focus-trap.CljZgv9i.js.map +0 -1
  393. package/dist/chunks/footer-actions.Bje-DDqw.js.map +0 -1
  394. package/dist/chunks/form-layout-title.rpIO-I9A.js.map +0 -1
  395. package/dist/chunks/grid-layout.BTLE3rac.js.map +0 -1
  396. package/dist/chunks/header-with-views.BUed3ocZ.js.map +0 -1
  397. package/dist/chunks/header.CwKjDgKv.js.map +0 -1
  398. package/dist/chunks/info-icon.DprUQ9fj.js.map +0 -1
  399. package/dist/chunks/info.DcTs-Bzp.js +0 -44
  400. package/dist/chunks/info.DcTs-Bzp.js.map +0 -1
  401. package/dist/chunks/input-field-password.DN0Jro1V.js.map +0 -1
  402. package/dist/chunks/input-field.su5Cq8Dt.js.map +0 -1
  403. package/dist/chunks/inspector.CoZCPfHC.js.map +0 -1
  404. package/dist/chunks/keyboard-navigation.CqgGzfZQ.js.map +0 -1
  405. package/dist/chunks/layout-row.CZNtHaXd.js.map +0 -1
  406. package/dist/chunks/listbox-option-tag.0BK6jWO9.js.map +0 -1
  407. package/dist/chunks/loading-indicator.DEepb9Wl.js.map +0 -1
  408. package/dist/chunks/menu.EtjeOPXX.js +0 -680
  409. package/dist/chunks/menu.EtjeOPXX.js.map +0 -1
  410. package/dist/chunks/modal-fullscreen.DBTnoSX9.js.map +0 -1
  411. package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js +0 -5
  412. package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js.map +0 -1
  413. package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.Cd-mQUJ8.js.map +0 -1
  414. package/dist/chunks/pagination.fYQak4C8.js.map +0 -1
  415. package/dist/chunks/payment-method.eazefwm6.js.map +0 -1
  416. package/dist/chunks/popover.DYgCCUCJ.js +0 -200
  417. package/dist/chunks/popover.DYgCCUCJ.js.map +0 -1
  418. package/dist/chunks/popover.types.V8old-GW.js +0 -6
  419. package/dist/chunks/popover.types.V8old-GW.js.map +0 -1
  420. package/dist/chunks/popper-container.b5h4zYgT.js.map +0 -1
  421. package/dist/chunks/popper-container.types.BCZMbVFD.js +0 -9
  422. package/dist/chunks/popper-container.types.BCZMbVFD.js.map +0 -1
  423. package/dist/chunks/promo-banner.CQp3z2CP.js.map +0 -1
  424. package/dist/chunks/radio-group.H9A5QcNu.js.map +0 -1
  425. package/dist/chunks/radio-input.DKfQGxtp.js.map +0 -1
  426. package/dist/chunks/rich-text-editor.Dx78coVL.js.map +0 -1
  427. package/dist/chunks/search-bar.CUrcP_wf.js.map +0 -1
  428. package/dist/chunks/secondary-nav.j3ddtYoZ.js.map +0 -1
  429. package/dist/chunks/segmented-control.5-vlm8Gt.js.map +0 -1
  430. package/dist/chunks/selection-card-group.B4xpnd-z.js.map +0 -1
  431. package/dist/chunks/sidepanel.DPN__L3Q.js.map +0 -1
  432. package/dist/chunks/sidepanel.keys.R0DKQuYx.js +0 -5
  433. package/dist/chunks/sidepanel.keys.R0DKQuYx.js.map +0 -1
  434. package/dist/chunks/status.types.Bdv2zuuh.js.map +0 -1
  435. package/dist/chunks/step.BtNhPZAf.js.map +0 -1
  436. package/dist/chunks/structured-list-item.BQbEDKhg.js.map +0 -1
  437. package/dist/chunks/tab.CAt51ksU.js.map +0 -1
  438. package/dist/chunks/tag.D3in0-Bp.js.map +0 -1
  439. package/dist/chunks/teleport.CfGWjxe2.js +0 -129
  440. package/dist/chunks/teleport.CfGWjxe2.js.map +0 -1
  441. package/dist/chunks/textarea.BBhN67-I.js +0 -282
  442. package/dist/chunks/textarea.BBhN67-I.js.map +0 -1
  443. package/dist/chunks/timeline-item.CuCII37W.js +0 -566
  444. package/dist/chunks/timeline-item.CuCII37W.js.map +0 -1
  445. package/dist/chunks/toast.CSoCPteL.js.map +0 -1
  446. package/dist/chunks/toggle-button.NQwrfSr1.js +0 -80
  447. package/dist/chunks/toggle-button.NQwrfSr1.js.map +0 -1
  448. package/dist/chunks/toggle.BuKXexA6.js.map +0 -1
  449. package/dist/chunks/tooltip.VYPUHERk.js.map +0 -1
  450. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.Dmf8fGaM.js.map +0 -1
  451. package/dist/chunks/typography.DN5eC5ch.js.map +0 -1
  452. package/dist/chunks/use-cached-selected-values.Dyoz6cUK.js.map +0 -1
  453. package/dist/chunks/use-click-outside.BnhTgpSt.js +0 -14
  454. package/dist/chunks/use-click-outside.BnhTgpSt.js.map +0 -1
  455. package/dist/chunks/use-country-items.Duh4bMqW.js.map +0 -1
  456. package/dist/chunks/warning-filled.AiUbXzzg.js +0 -29
  457. package/dist/chunks/warning-filled.AiUbXzzg.js.map +0 -1
  458. package/dist/styles/legacy.css +0 -2226
@@ -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.AB0SOQMn.js";
3
- import { B as _e } from "./textarea.BBhN67-I.js";
4
- import { u as se } from "./i18n.B6g5VX0q.js";
5
- import { B as be } from "./button-actions.CZdO9YOk.js";
6
- import { _ as J } from "./_plugin-vue_export-helper.CHgC5LLL.js";
7
- import { B as he } from "./date.DSjCnSgL.js";
8
- import { B as ge } from "./link.BBpxiclu.js";
9
- import { B as ye } from "./tag.D3in0-Bp.js";
10
- import { B as Ne, d as Te } from "./typography.DN5eC5ch.js";
11
- import { a as Ee, B as Ie, S as we } from "./structured-list-item.BQbEDKhg.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-77b0b6c7"]]);
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-6b29ce92"]]);
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.CuCII37W.js.map