@adyen/bento-vue3 1.6.1 → 1.7.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 (286) hide show
  1. package/dist/@types/components.d.ts +2 -0
  2. package/dist/@types/packages/core/src/components/button/button.types.d.ts +3 -1
  3. package/dist/@types/packages/vue2/src/components/action-bar/action-bar.vue.d.ts +45 -0
  4. package/dist/@types/packages/vue2/src/components/action-bar/index.d.ts +1 -0
  5. package/dist/@types/packages/vue2/src/components/alert/alert.vue.d.ts +4 -4
  6. package/dist/@types/packages/vue2/src/components/avatar-image/avatar-image.vue.d.ts +1 -1
  7. package/dist/@types/packages/vue2/src/components/button/button.vue.d.ts +229 -220
  8. package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.vue.d.ts +9 -0
  9. package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +3 -3
  10. package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +1 -1
  11. package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +5 -5
  12. package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +1 -1
  13. package/dist/@types/packages/vue2/src/components/country/country.vue.d.ts +4 -3
  14. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +44 -46
  15. package/dist/@types/packages/vue2/src/components/date/date.vue.d.ts +1 -1
  16. package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +8 -2
  17. package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.vue.d.ts +6 -0
  18. package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +8 -2
  19. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +1 -1
  20. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +1 -1
  21. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +46 -28
  22. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +1 -1
  23. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.types.d.ts +2 -0
  24. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +22 -4
  25. package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +5 -2
  26. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +802 -52
  27. package/dist/@types/packages/vue2/src/components/filter-bar/components/boolean-filter/boolean-filter.vue.d.ts +12 -5
  28. package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/filter-bar-button.vue.d.ts +1 -1
  29. package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.types.d.ts +12 -2
  30. package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.vue.d.ts +10 -0
  31. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue.d.ts +3 -3
  32. package/dist/@types/packages/vue2/src/components/header/header.vue.d.ts +1 -1
  33. package/dist/@types/packages/vue2/src/components/info-icon/info-icon.vue.d.ts +3 -3
  34. package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +2 -2
  35. package/dist/@types/packages/vue2/src/components/internal/button-actions-with-menu/button-actions-with-menu.vue.d.ts +21 -0
  36. package/dist/@types/packages/vue2/src/components/internal/calendar/calendar.vue.d.ts +6 -0
  37. package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/calendar-month.vue.d.ts +19 -0
  38. package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +1 -1
  39. package/dist/@types/packages/vue2/src/components/internal/fixed-scroller/fixed-scroller.vue.d.ts +22 -1
  40. package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +64 -7
  41. package/dist/@types/packages/vue2/src/components/internal/teleport/index.d.ts +1 -0
  42. package/dist/@types/packages/vue2/src/components/internal/teleport/teleport.vue.d.ts +50 -0
  43. package/dist/@types/packages/vue2/src/components/link/link.vue.d.ts +1 -1
  44. package/dist/@types/packages/vue2/src/components/menu/menu.keys.d.ts +1 -0
  45. package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +15 -11
  46. package/dist/@types/packages/vue2/src/components/pagination/components/pagination-context/pagination-context.vue.d.ts +9 -0
  47. package/dist/@types/packages/vue2/src/components/pagination/pagination.vue.d.ts +10 -1
  48. package/dist/@types/packages/vue2/src/components/payment-method/payment-method.vue.d.ts +1 -0
  49. package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +4 -4
  50. package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +5 -5
  51. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +10 -5
  52. package/dist/@types/packages/vue2/src/components/segmented-control/components/segmented-control-button/segmented-control-button.vue.d.ts +21 -0
  53. package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.vue.d.ts +21 -5
  54. package/dist/@types/packages/vue2/src/components/stepper/stepper.vue.d.ts +3 -3
  55. package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +1 -1
  56. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +1 -2
  57. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +1 -1
  58. package/dist/@types/packages/vue2/src/components/summary-grid/summary-grid.keys.d.ts +1 -0
  59. package/dist/@types/packages/vue2/src/components/summary-grid/summary-grid.types.d.ts +3 -0
  60. package/dist/@types/packages/vue2/src/components/tabs/components/tab.types.d.ts +1 -0
  61. package/dist/@types/packages/vue2/src/components/tabs/components/tab.vue.d.ts +9 -0
  62. package/dist/@types/packages/vue2/src/components/tabs/tabs.types.d.ts +1 -0
  63. package/dist/@types/packages/vue2/src/components/tabs/tabs.vue.d.ts +2 -0
  64. package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +5 -5
  65. package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +7 -4
  66. package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +9 -2
  67. package/dist/@types/packages/vue2/src/components/tooltip/tooltip.vue.d.ts +15 -15
  68. package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/components/tutorial-indicator/index.d.ts +1 -0
  69. package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/components/tutorial-indicator/tutorial-indicator.vue.d.ts +12 -0
  70. package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/index.d.ts +1 -0
  71. package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/tutorial-popover.vue.d.ts +173 -0
  72. package/dist/@types/packages/vue2/src/components/tutorial/index.d.ts +2 -0
  73. package/dist/@types/packages/vue2/src/components/tutorial/tutorial.types.d.ts +13 -0
  74. package/dist/@types/packages/vue2/src/components/tutorial/tutorial.vue.d.ts +16 -0
  75. package/dist/@types/packages/vue2/src/composables/index.d.ts +5 -2
  76. package/dist/@types/packages/vue2/src/composables/use-click-outside/use-click-outside.d.ts +3 -0
  77. package/dist/@types/packages/vue2/src/composables/use-form-validate/index.d.ts +2 -0
  78. package/dist/@types/packages/vue2/src/composables/use-form-validate/use-form.d.ts +12 -0
  79. package/dist/@types/packages/vue2/src/composables/use-form-validate/use-form.types.d.ts +5 -0
  80. package/dist/@types/packages/vue2/src/composables/use-virtual-list/index.d.ts +2 -0
  81. package/dist/@types/packages/vue2/src/composables/use-virtual-list/use-virtual-list.d.ts +15 -0
  82. package/dist/@types/packages/vue2/src/composables/use-virtual-list/use-virtual-list.types.d.ts +20 -0
  83. package/dist/@types/packages/vue2/src/index.d.ts +1 -0
  84. package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.vue.d.ts +4 -4
  85. package/dist/@types/packages/vue2/src/types/listbox.d.ts +12 -0
  86. package/dist/accordion.js +52 -43
  87. package/dist/accordion.js.map +1 -1
  88. package/dist/action-bar.js +210 -0
  89. package/dist/action-bar.js.map +1 -0
  90. package/dist/alert.js +3 -3
  91. package/dist/assets/base-modal.css +1 -1
  92. package/dist/assets/button-actions-with-menu.css +1 -0
  93. package/dist/assets/button.css +1 -1
  94. package/dist/assets/calendar.css +1 -1
  95. package/dist/assets/checkbox.css +1 -1
  96. package/dist/assets/checkmark.css +1 -0
  97. package/dist/assets/chevron-left.css +1 -0
  98. package/dist/assets/dropdown-default-textbox.css +1 -1
  99. package/dist/assets/dropdown.css +1 -1
  100. package/dist/assets/fixed-scroller.css +1 -0
  101. package/dist/assets/index.css +1 -1
  102. package/dist/assets/index10.css +1 -1
  103. package/dist/assets/index11.css +1 -1
  104. package/dist/assets/index12.css +1 -1
  105. package/dist/assets/index13.css +1 -1
  106. package/dist/assets/index14.css +1 -1
  107. package/dist/assets/index15.css +1 -1
  108. package/dist/assets/index16.css +1 -1
  109. package/dist/assets/index17.css +1 -1
  110. package/dist/assets/index18.css +1 -1
  111. package/dist/assets/index19.css +1 -1
  112. package/dist/assets/index2.css +1 -1
  113. package/dist/assets/index20.css +1 -1
  114. package/dist/assets/index21.css +1 -1
  115. package/dist/assets/index22.css +1 -1
  116. package/dist/assets/index23.css +1 -1
  117. package/dist/assets/index24.css +1 -1
  118. package/dist/assets/index25.css +1 -1
  119. package/dist/assets/index26.css +1 -1
  120. package/dist/assets/index27.css +1 -1
  121. package/dist/assets/index28.css +1 -1
  122. package/dist/assets/index29.css +1 -1
  123. package/dist/assets/index3.css +1 -1
  124. package/dist/assets/index30.css +1 -1
  125. package/dist/assets/index31.css +1 -1
  126. package/dist/assets/index32.css +1 -1
  127. package/dist/assets/index33.css +1 -1
  128. package/dist/assets/index34.css +1 -1
  129. package/dist/assets/index35.css +1 -1
  130. package/dist/assets/index36.css +1 -1
  131. package/dist/assets/index37.css +1 -1
  132. package/dist/assets/index38.css +1 -1
  133. package/dist/assets/index39.css +1 -1
  134. package/dist/assets/index40.css +1 -1
  135. package/dist/assets/index41.css +1 -1
  136. package/dist/assets/index42.css +1 -1
  137. package/dist/assets/index43.css +1 -1
  138. package/dist/assets/index44.css +1 -1
  139. package/dist/assets/index45.css +1 -1
  140. package/dist/assets/index46.css +1 -0
  141. package/dist/assets/index5.css +1 -1
  142. package/dist/assets/index6.css +1 -1
  143. package/dist/assets/index7.css +1 -1
  144. package/dist/assets/index8.css +1 -1
  145. package/dist/assets/index9.css +1 -1
  146. package/dist/assets/listbox.css +1 -1
  147. package/dist/assets/refresh.css +1 -0
  148. package/dist/avatar-image.js +1 -1
  149. package/dist/badge.js +1 -1
  150. package/dist/button.js +30 -22
  151. package/dist/button.js.map +1 -1
  152. package/dist/card.js +84 -84
  153. package/dist/card.js.map +1 -1
  154. package/dist/checkbox.js +6 -6
  155. package/dist/chunks/{base-button.4b5ab17e.js → base-button.7897a95e.js} +2 -2
  156. package/dist/chunks/{base-button.4b5ab17e.js.map → base-button.7897a95e.js.map} +1 -1
  157. package/dist/chunks/{base-modal.53a229ac.js → base-modal.0c85e7cb.js} +4 -4
  158. package/dist/chunks/{base-modal.53a229ac.js.map → base-modal.0c85e7cb.js.map} +1 -1
  159. package/dist/chunks/button-actions-with-menu.fa35390c.js +107 -0
  160. package/dist/chunks/button-actions-with-menu.fa35390c.js.map +1 -0
  161. package/dist/chunks/{button.975d0bb8.js → button.e5177388.js} +44 -36
  162. package/dist/chunks/button.e5177388.js.map +1 -0
  163. package/dist/chunks/{calendar.cc37ac1f.js → calendar.c83d4e99.js} +274 -250
  164. package/dist/chunks/calendar.c83d4e99.js.map +1 -0
  165. package/dist/chunks/{checkbox.67ceb148.js → checkbox.3cdbdd52.js} +7 -7
  166. package/dist/chunks/{checkbox.67ceb148.js.map → checkbox.3cdbdd52.js.map} +1 -1
  167. package/dist/chunks/checkmark.83e4f1e0.js +30 -0
  168. package/dist/chunks/checkmark.83e4f1e0.js.map +1 -0
  169. package/dist/chunks/{chevron-right.aef416c6.js → chevron-left.2fd6b083.js} +10 -10
  170. package/dist/chunks/chevron-left.2fd6b083.js.map +1 -0
  171. package/dist/chunks/{controls-group.7214dc7f.js → controls-group.38b436f6.js} +2 -2
  172. package/dist/chunks/{controls-group.7214dc7f.js.map → controls-group.38b436f6.js.map} +1 -1
  173. package/dist/chunks/{copy.7a73d1fd.js → copy.86236c8d.js} +4 -4
  174. package/dist/chunks/{copy.7a73d1fd.js.map → copy.86236c8d.js.map} +1 -1
  175. package/dist/chunks/{dropdown-default-textbox.0f878a8d.js → dropdown-default-textbox.0b38fac3.js} +4 -4
  176. package/dist/chunks/dropdown-default-textbox.0b38fac3.js.map +1 -0
  177. package/dist/chunks/{dropdown.7a104ce3.js → dropdown.afff433b.js} +144 -110
  178. package/dist/chunks/dropdown.afff433b.js.map +1 -0
  179. package/dist/chunks/{error-message.b91afffc.js → error-message.64e1964b.js} +2 -2
  180. package/dist/chunks/{error-message.b91afffc.js.map → error-message.64e1964b.js.map} +1 -1
  181. package/dist/chunks/fixed-scroller.e5aa7b00.js +148 -0
  182. package/dist/chunks/fixed-scroller.e5aa7b00.js.map +1 -0
  183. package/dist/chunks/{footer-actions.13f19a22.js → footer-actions.1ce44374.js} +3 -3
  184. package/dist/chunks/{footer-actions.13f19a22.js.map → footer-actions.1ce44374.js.map} +1 -1
  185. package/dist/chunks/{index.7f24db66.js → index.2bd3812b.js} +2 -2
  186. package/dist/chunks/{index.7f24db66.js.map → index.2bd3812b.js.map} +1 -1
  187. package/dist/chunks/{index.1dc4ebae.js → index.369b0e66.js} +112 -92
  188. package/dist/chunks/index.369b0e66.js.map +1 -0
  189. package/dist/chunks/{index.536bcb56.js → index.6a665ade.js} +3 -3
  190. package/dist/chunks/{index.536bcb56.js.map → index.6a665ade.js.map} +1 -1
  191. package/dist/chunks/{index.4c951e0d.js → index.77f35162.js} +6 -6
  192. package/dist/chunks/{index.4c951e0d.js.map → index.77f35162.js.map} +1 -1
  193. package/dist/chunks/index.bcc58fdd.js +1334 -0
  194. package/dist/chunks/index.bcc58fdd.js.map +1 -0
  195. package/dist/chunks/index.c207e9ab.js +602 -0
  196. package/dist/chunks/index.c207e9ab.js.map +1 -0
  197. package/dist/chunks/{index.6700224a.js → index.e579bc02.js} +2 -2
  198. package/dist/chunks/{index.6700224a.js.map → index.e579bc02.js.map} +1 -1
  199. package/dist/chunks/{index.d68847b0.js → index.fa7b44f1.js} +2 -2
  200. package/dist/chunks/{index.d68847b0.js.map → index.fa7b44f1.js.map} +1 -1
  201. package/dist/chunks/{listbox-option-tag.0f31ecb2.js → listbox-option-tag.809ec40e.js} +3 -3
  202. package/dist/chunks/{listbox-option-tag.0f31ecb2.js.map → listbox-option-tag.809ec40e.js.map} +1 -1
  203. package/dist/chunks/listbox.f6e5a11d.js +1306 -0
  204. package/dist/chunks/listbox.f6e5a11d.js.map +1 -0
  205. package/dist/chunks/{loading-button.6523a015.js → loading-button.746b7fa1.js} +2 -2
  206. package/dist/chunks/{loading-button.6523a015.js.map → loading-button.746b7fa1.js.map} +1 -1
  207. package/dist/chunks/refresh.c38c9eee.js +30 -0
  208. package/dist/chunks/refresh.c38c9eee.js.map +1 -0
  209. package/dist/chunks/summary-grid.keys.1d1028c2.js +5 -0
  210. package/dist/chunks/summary-grid.keys.1d1028c2.js.map +1 -0
  211. package/dist/chunks/{tooltip.b5391514.js → tooltip.f769eb14.js} +54 -51
  212. package/dist/chunks/{tooltip.b5391514.js.map → tooltip.f769eb14.js.map} +1 -1
  213. package/dist/code-snippet.js +6 -6
  214. package/dist/code-snippet.js.map +1 -1
  215. package/dist/country.js +553 -541
  216. package/dist/country.js.map +1 -1
  217. package/dist/currency.js +1 -1
  218. package/dist/data-grid.js +10 -10
  219. package/dist/data-grid.js.map +1 -1
  220. package/dist/date-picker.js +129 -118
  221. package/dist/date-picker.js.map +1 -1
  222. package/dist/date-range-picker.js +2 -2
  223. package/dist/date.js +1 -1
  224. package/dist/divider.js +1 -1
  225. package/dist/dropdown.js +4 -4
  226. package/dist/empty-state.js +44 -42
  227. package/dist/empty-state.js.map +1 -1
  228. package/dist/filter-bar.js +696 -683
  229. package/dist/filter-bar.js.map +1 -1
  230. package/dist/focus-trap.js +1 -1
  231. package/dist/form-layout.js +3 -3
  232. package/dist/header.js +121 -198
  233. package/dist/header.js.map +1 -1
  234. package/dist/image.js +4 -4
  235. package/dist/index.js +164 -158
  236. package/dist/index.js.map +1 -1
  237. package/dist/info-icon.js +8 -8
  238. package/dist/input-field.js +7 -7
  239. package/dist/internal.js +20 -144
  240. package/dist/internal.js.map +1 -1
  241. package/dist/link.js +2 -2
  242. package/dist/loading-indicator.js +1 -1
  243. package/dist/menu.js +3 -592
  244. package/dist/menu.js.map +1 -1
  245. package/dist/modal.js +3 -3
  246. package/dist/pagination.js +37 -21
  247. package/dist/pagination.js.map +1 -1
  248. package/dist/payment-method.js +50 -40
  249. package/dist/payment-method.js.map +1 -1
  250. package/dist/popover.js +16 -16
  251. package/dist/popper-container.js +6 -1276
  252. package/dist/popper-container.js.map +1 -1
  253. package/dist/radio-group.js +128 -97
  254. package/dist/radio-group.js.map +1 -1
  255. package/dist/search-bar.js +2 -2
  256. package/dist/segmented-control.js +130 -106
  257. package/dist/segmented-control.js.map +1 -1
  258. package/dist/sidepanel.js +94 -91
  259. package/dist/sidepanel.js.map +1 -1
  260. package/dist/status.js +2 -2
  261. package/dist/stepper.js +3 -3
  262. package/dist/structured-list.js +1 -1
  263. package/dist/summary-grid.js +146 -163
  264. package/dist/summary-grid.js.map +1 -1
  265. package/dist/tabs.js +128 -99
  266. package/dist/tabs.js.map +1 -1
  267. package/dist/tag.js +3 -3
  268. package/dist/textarea.js +4 -4
  269. package/dist/timeline.js +216 -203
  270. package/dist/timeline.js.map +1 -1
  271. package/dist/toast.js +3 -3
  272. package/dist/toggle.js +6 -6
  273. package/dist/tutorial.js +375 -0
  274. package/dist/tutorial.js.map +1 -0
  275. package/dist/typography.js +1 -1
  276. package/dist/web-types.json +1 -1
  277. package/package.json +5 -2
  278. package/dist/assets/chevron-right.css +0 -1
  279. package/dist/chunks/button.975d0bb8.js.map +0 -1
  280. package/dist/chunks/calendar.cc37ac1f.js.map +0 -1
  281. package/dist/chunks/chevron-right.aef416c6.js.map +0 -1
  282. package/dist/chunks/dropdown-default-textbox.0f878a8d.js.map +0 -1
  283. package/dist/chunks/dropdown.7a104ce3.js.map +0 -1
  284. package/dist/chunks/index.1dc4ebae.js.map +0 -1
  285. package/dist/chunks/listbox.0f25778d.js +0 -1213
  286. package/dist/chunks/listbox.0f25778d.js.map +0 -1
package/dist/textarea.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { openBlock as l, createElementBlock as g, mergeProps as se, toDisplayString as v, createCommentVNode as i, pushScopeId as ie, popScopeId as ne, createElementVNode as O, defineComponent as ce, useAttrs as ue, toRefs as U, ref as m, toRef as de, computed as s, watch as N, nextTick as be, onMounted as fe, normalizeClass as C, unref as a, normalizeStyle as F, createVNode as E, withCtx as b, createTextVNode as h, createBlock as f, withKeys as w } from "vue";
2
- import { B as p } from "./chunks/index.7f24db66.js";
3
- import { a as pe } from "./chunks/button.975d0bb8.js";
2
+ import { B as p } from "./chunks/index.2bd3812b.js";
3
+ import { a as pe } from "./chunks/button.e5177388.js";
4
4
  import { g as ve } from "./chunks/unique-id.a2a2b458.js";
5
5
  import { o as _e } from "./chunks/resize.a041304d.js";
6
6
  import { u as me } from "./chunks/i18n.6c402773.js";
7
7
  import { u as he } from "./chunks/aria-label.ac9651a5.js";
8
8
  import { u as ge } from "./chunks/use-form-layout-loading.d03e5d48.js";
9
9
  import { _ as q } from "./chunks/_plugin-vue_export-helper.dad06003.js";
10
- import { E as K } from "./chunks/error-message.b91afffc.js";
11
- import "./assets/index40.css";
10
+ import { E as K } from "./chunks/error-message.64e1964b.js";
11
+ import "./assets/index43.css";
12
12
  var H = /* @__PURE__ */ ((e) => (e.HORIZONTAL = "horizontal", e.VERTICAL = "vertical", e.BOTH = "both", e.NONE = "none", e))(H || {}), _ = /* @__PURE__ */ ((e) => (e.CLEARABLE = "clearable", e.DISABLED = "disabled", e.ERROR = "error", e.READONLY = "readonly", e))(_ || {}), c = /* @__PURE__ */ ((e) => (e.BLUR = "blur", e.CHANGE = "change", e.CLEAR = "clear", e.ESCAPE_PRESSED = "escape-pressed", e.FOCUS = "focus", e.INPUT = "input", e))(c || {});
13
13
  let T = 0;
14
14
  const ye = {
package/dist/timeline.js CHANGED
@@ -1,64 +1,66 @@
1
- import { defineComponent as X, ref as V, computed as _, toRefs as oe, provide as U, openBlock as o, createElementBlock as f, renderSlot as ae, mergeProps as G, toDisplayString as y, createCommentVNode as b, pushScopeId as x, popScopeId as ee, createElementVNode as v, inject as q, onUnmounted as re, resolveComponent as T, createVNode as E, withCtx as I, createTextVNode as S, createBlock as M, resolveDynamicComponent as le, normalizeClass as z, Fragment as F, renderList as me } from "vue";
2
- import { _ as B } from "./chunks/_plugin-vue_export-helper.dad06003.js";
3
- import { a as de } from "./chunks/button.975d0bb8.js";
4
- import { B as ue } from "./chunks/index.d68847b0.js";
5
- import { BentoTag as ce } from "./tag.js";
6
- import { B as _e } from "./chunks/index.7f24db66.js";
7
- import { B as fe, a as ve, S as he } from "./chunks/index.4c951e0d.js";
8
- import { C as pe } from "./chunks/checkmark-circle-fill.e6b84561.js";
9
- import { C as ge } from "./chunks/cross-circle-fill.0feb37b3.js";
10
- import { r as be, e as Ie, t as A, g as H } from "./chunks/index.f55fdc32.js";
11
- import { c as ye, a as Se } from "./chunks/index.86453263.js";
12
- import { g as Ee } from "./chunks/unique-id.a2a2b458.js";
13
- import { u as we } from "./chunks/i18n.6c402773.js";
14
- import "./assets/index33.css";
15
- var J = 1e3 * 60, O = 60 * 24, K = O * 30, Z = O * 365;
16
- function P(e, t) {
17
- var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
18
- be(2, arguments);
19
- var l = r.locale || Ie;
20
- if (!l.formatDistance)
1
+ import { defineComponent as x, ref as q, computed as _, toRefs as me, provide as j, openBlock as i, createElementBlock as f, renderSlot as ee, mergeProps as B, toDisplayString as y, createCommentVNode as I, pushScopeId as te, popScopeId as ie, createElementVNode as p, inject as z, onUnmounted as de, resolveComponent as E, createVNode as w, withCtx as b, createTextVNode as S, createBlock as T, resolveDynamicComponent as ue, normalizeClass as J, Fragment as U, renderList as ce } from "vue";
2
+ import { _ as Y } from "./chunks/_plugin-vue_export-helper.dad06003.js";
3
+ import { a as _e } from "./chunks/button.e5177388.js";
4
+ import { B as fe } from "./chunks/index.fa7b44f1.js";
5
+ import { BentoLink as ve } from "./link.js";
6
+ import { BentoTag as pe } from "./tag.js";
7
+ import { B as he } from "./chunks/index.2bd3812b.js";
8
+ import { B as ge, a as be, S as ye } from "./chunks/index.77f35162.js";
9
+ import { C as Ie } from "./chunks/checkmark-circle-fill.e6b84561.js";
10
+ import { C as Se } from "./chunks/cross-circle-fill.0feb37b3.js";
11
+ import { r as Ee, e as we, t as N, g as K } from "./chunks/index.f55fdc32.js";
12
+ import { c as Te, a as Ce } from "./chunks/index.86453263.js";
13
+ import { g as Me } from "./chunks/unique-id.a2a2b458.js";
14
+ import { u as ke } from "./chunks/i18n.6c402773.js";
15
+ import { u as Le } from "./chunks/use-has-slot.4d98bf29.js";
16
+ import "./assets/index41.css";
17
+ var P = 1e3 * 60, O = 60 * 24, Z = O * 30, Q = O * 365;
18
+ function W(e, t) {
19
+ var s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
20
+ Ee(2, arguments);
21
+ var d = s.locale || we;
22
+ if (!d.formatDistance)
21
23
  throw new RangeError("locale must contain localize.formatDistance property");
22
- var h = ye(e, t);
24
+ var h = Te(e, t);
23
25
  if (isNaN(h))
24
26
  throw new RangeError("Invalid time value");
25
- var s = Se(r);
26
- s.addSuffix = !!r.addSuffix, s.comparison = h;
27
- var i, c;
28
- h > 0 ? (i = A(t), c = A(e)) : (i = A(e), c = A(t));
29
- var p = r.roundingMethod == null ? "round" : String(r.roundingMethod), m;
30
- if (p === "floor")
31
- m = Math.floor;
32
- else if (p === "ceil")
33
- m = Math.ceil;
34
- else if (p === "round")
35
- m = Math.round;
27
+ var a = Ce(s);
28
+ a.addSuffix = !!s.addSuffix, a.comparison = h;
29
+ var o, u;
30
+ h > 0 ? (o = N(t), u = N(e)) : (o = N(e), u = N(t));
31
+ var g = s.roundingMethod == null ? "round" : String(s.roundingMethod), r;
32
+ if (g === "floor")
33
+ r = Math.floor;
34
+ else if (g === "ceil")
35
+ r = Math.ceil;
36
+ else if (g === "round")
37
+ r = Math.round;
36
38
  else
37
39
  throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");
38
- var n = c.getTime() - i.getTime(), a = n / J, u = H(c) - H(i), g = (n - u) / J, d;
39
- if (r.unit == null ? a < 1 ? d = "second" : a < 60 ? d = "minute" : a < O ? d = "hour" : g < K ? d = "day" : g < Z ? d = "month" : d = "year" : d = String(r.unit), d === "second") {
40
- var L = m(n / 1e3);
41
- return l.formatDistance("xSeconds", L, s);
42
- } else if (d === "minute") {
43
- var k = m(a);
44
- return l.formatDistance("xMinutes", k, s);
45
- } else if (d === "hour") {
46
- var R = m(a / 60);
47
- return l.formatDistance("xHours", R, s);
48
- } else if (d === "day") {
49
- var $ = m(g / O);
50
- return l.formatDistance("xDays", $, s);
51
- } else if (d === "month") {
52
- var C = m(g / K);
53
- return C === 12 && r.unit !== "month" ? l.formatDistance("xYears", 1, s) : l.formatDistance("xMonths", C, s);
54
- } else if (d === "year") {
55
- var D = m(g / Z);
56
- return l.formatDistance("xYears", D, s);
40
+ var n = u.getTime() - o.getTime(), c = n / P, v = K(u) - K(o), l = (n - v) / P, m;
41
+ if (s.unit == null ? c < 1 ? m = "second" : c < 60 ? m = "minute" : c < O ? m = "hour" : l < Z ? m = "day" : l < Q ? m = "month" : m = "year" : m = String(s.unit), m === "second") {
42
+ var A = r(n / 1e3);
43
+ return d.formatDistance("xSeconds", A, a);
44
+ } else if (m === "minute") {
45
+ var $ = r(c);
46
+ return d.formatDistance("xMinutes", $, a);
47
+ } else if (m === "hour") {
48
+ var R = r(c / 60);
49
+ return d.formatDistance("xHours", R, a);
50
+ } else if (m === "day") {
51
+ var k = r(l / O);
52
+ return d.formatDistance("xDays", k, a);
53
+ } else if (m === "month") {
54
+ var L = r(l / Z);
55
+ return L === 12 && s.unit !== "month" ? d.formatDistance("xYears", 1, a) : d.formatDistance("xMonths", L, a);
56
+ } else if (m === "year") {
57
+ var D = r(l / Q);
58
+ return d.formatDistance("xYears", D, a);
57
59
  }
58
60
  throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'");
59
61
  }
60
- var N = /* @__PURE__ */ ((e) => (e.BOTTOM = "bottom", e.AFTER_FIRST = "after-first", e.BEFORE_LAST = "before-last", e))(N || {}), Ce = /* @__PURE__ */ ((e) => (e.SECOND = "second", e.MINUTE = "minute", e.HOUR = "hour", e.DAY = "day", e.MONTH = "month", e.YEAR = "year", e))(Ce || {}), w = /* @__PURE__ */ ((e) => (e.DEFAULT = "SquareSmallIcon", e.SUCCESS = "CheckedCircleIcon", e.CRITICAL = "CrossCircleIcon", e))(w || {});
61
- const te = Symbol("timeline register entry injection key"), ie = Symbol("timeline config obj injection key"), Te = X({
62
+ var M = /* @__PURE__ */ ((e) => (e.BOTTOM = "bottom", e.AFTER_FIRST = "after-first", e.BEFORE_LAST = "before-last", e))(M || {}), Ne = /* @__PURE__ */ ((e) => (e.SECOND = "second", e.MINUTE = "minute", e.HOUR = "hour", e.DAY = "day", e.MONTH = "month", e.YEAR = "year", e))(Ne || {}), C = /* @__PURE__ */ ((e) => (e.DEFAULT = "SquareSmallIcon", e.SUCCESS = "CheckedCircleIcon", e.CRITICAL = "CrossCircleIcon", e))(C || {});
63
+ const ne = Symbol("timeline register entry injection key"), oe = Symbol("timeline config obj injection key"), Oe = x({
62
64
  name: "bento-timeline",
63
65
  props: {
64
66
  /**
@@ -80,93 +82,94 @@ const te = Symbol("timeline register entry injection key"), ie = Symbol("timelin
80
82
  }
81
83
  },
82
84
  setup(e) {
83
- const t = V([]), r = _(
85
+ const t = q([]), s = _(
84
86
  () => e.showMore && t.value.length > e.showMore.limit ? t.value.length - e.showMore.limit : null
85
- ), l = V(!1), { timegapLimit: h } = oe(e), s = _(() => {
87
+ ), d = q(!1), { timegapLimit: h } = me(e), a = _(() => {
86
88
  if (!e.showMore)
87
89
  return null;
88
90
  const n = Array.from(t.value.keys());
89
- return e.showMore.placement === N.BEFORE_LAST ? [
91
+ return e.showMore.placement === M.BEFORE_LAST ? [
90
92
  ...n.slice(0, e.showMore.limit - 1),
91
93
  n[n.length - 1]
92
- ] : e.showMore.placement === N.AFTER_FIRST ? [n[0], ...n.slice(-(e.showMore.limit - 1))] : n.slice(0, e.showMore.limit);
93
- }), i = _(() => {
94
+ ] : e.showMore.placement === M.AFTER_FIRST ? [n[0], ...n.slice(-(e.showMore.limit - 1))] : n.slice(0, e.showMore.limit);
95
+ }), o = _(() => {
94
96
  if (!e.showMore)
95
97
  return null;
96
98
  switch (e.showMore.placement) {
97
- case N.BEFORE_LAST:
99
+ case M.BEFORE_LAST:
98
100
  return e.showMore.limit - 2;
99
- case N.AFTER_FIRST:
101
+ case M.AFTER_FIRST:
100
102
  return 0;
101
- case N.BOTTOM:
103
+ case M.BOTTOM:
102
104
  default:
103
105
  return e.showMore.limit - 1;
104
106
  }
105
- }), c = (n) => () => {
106
- var a;
107
- t.value = (a = t.value) == null ? void 0 : a.filter((u, g) => g !== n);
108
- }, p = ({ title: n, date: a }) => {
109
- const u = t.value.length;
110
- return t.value.push({ title: n, date: a }), { timelineEntries: t, index: u, unregisterTimelineEntry: c(u) };
111
- }, m = {
112
- showAll: l,
113
- showMoreIndex: i,
114
- hiddenItems: r,
115
- visibleIndexes: s,
107
+ }), u = (n) => () => {
108
+ var c;
109
+ t.value = (c = t.value) == null ? void 0 : c.filter((v, l) => l !== n);
110
+ }, g = ({ title: n, date: c }) => {
111
+ const v = t.value.length;
112
+ return t.value.push({ title: n, date: c }), { timelineEntries: t, index: v, unregisterTimelineEntry: u(v) };
113
+ }, r = {
114
+ showAll: d,
115
+ showMoreIndex: o,
116
+ hiddenItems: s,
117
+ visibleIndexes: a,
116
118
  timegapLimit: h
117
119
  };
118
- U(te, p), U(ie, m);
120
+ j(ne, g), j(oe, r);
119
121
  }
120
122
  });
121
- const Me = { class: "b-timeline" };
122
- function Ne(e, t, r, l, h, s) {
123
- return o(), f("ol", Me, [
124
- ae(e.$slots, "default", {}, void 0, !0)
123
+ const Ae = { class: "b-timeline" };
124
+ function $e(e, t, s, d, h, a) {
125
+ return i(), f("ol", Ae, [
126
+ ee(e.$slots, "default", {}, void 0, !0)
125
127
  ]);
126
128
  }
127
- const lt = /* @__PURE__ */ B(Te, [["render", Ne], ["__scopeId", "data-v-2dc17695"]]);
128
- let Q = 0;
129
- const Le = {
129
+ const pt = /* @__PURE__ */ Y(Oe, [["render", $e], ["__scopeId", "data-v-2dc17695"]]);
130
+ let X = 0;
131
+ const Re = {
130
132
  beforeCreate() {
131
- this.uuid = Q.toString(), Q += 1;
133
+ this.uuid = X.toString(), X += 1;
132
134
  }
133
- }, Ae = (e) => (x("data-v-f702de38"), e = e(), ee(), e), Oe = { key: 0 }, ke = /* @__PURE__ */ Ae(() => /* @__PURE__ */ v("path", {
135
+ }, De = (e) => (te("data-v-f702de38"), e = e(), ie(), e), Fe = { key: 0 }, Ue = /* @__PURE__ */ De(() => /* @__PURE__ */ p("path", {
134
136
  fill: "#00112C",
135
137
  "fill-rule": "evenodd",
136
138
  d: "M5.5 3.25C4.25736 3.25 3.25 4.25736 3.25 5.5V10.5C3.25 11.7426 4.25736 12.75 5.5 12.75H10.5C11.7426 12.75 12.75 11.7426 12.75 10.5V5.5C12.75 4.25736 11.7426 3.25 10.5 3.25H5.5Z",
137
139
  "clip-rule": "evenodd"
138
140
  }, null, -1));
139
- function Re(e, t, r, l, h, s) {
140
- return o(), f("svg", G({ role: "img" }, e.$attrs, {
141
+ function je(e, t, s, d, h, a) {
142
+ return i(), f("svg", B({ role: "img" }, e.$attrs, {
141
143
  xmlns: "http://www.w3.org/2000/svg",
142
144
  width: "16",
143
145
  height: "16",
144
146
  fill: "none"
145
147
  }), [
146
- e.$attrs["svg-title"] ? (o(), f("title", Oe, y(e.$attrs["svg-title"]), 1)) : b("", !0),
147
- ke
148
+ e.$attrs["svg-title"] ? (i(), f("title", Fe, y(e.$attrs["svg-title"]), 1)) : I("", !0),
149
+ Ue
148
150
  ], 16);
149
151
  }
150
- const $e = /* @__PURE__ */ B(Le, [["render", Re], ["__scopeId", "data-v-f702de38"]]), W = {
152
+ const Be = /* @__PURE__ */ Y(Re, [["render", je], ["__scopeId", "data-v-f702de38"]]), G = {
151
153
  "en-US": {
152
154
  timegap: "{timegap} passed between the timeline events",
153
155
  showMore: "Show {items} more",
154
156
  showLess: "Show less"
155
157
  }
156
- }, De = X({
158
+ }, Ye = x({
157
159
  name: "bento-timeline-item",
158
160
  components: {
159
- BentoButton: de,
160
- BentoDate: ue,
161
- BentoTag: ce,
162
- BentoTypography: _e,
163
- BentoStructuredList: fe,
164
- BentoStructuredListItem: ve,
165
- CrossCircleIcon: ge,
166
- CheckedCircleIcon: pe,
167
- SquareSmallIcon: $e
161
+ BentoButton: _e,
162
+ BentoDate: fe,
163
+ BentoLink: ve,
164
+ BentoTag: pe,
165
+ BentoTypography: he,
166
+ BentoStructuredList: ge,
167
+ BentoStructuredListItem: be,
168
+ CrossCircleIcon: Se,
169
+ CheckedCircleIcon: Ie,
170
+ SquareSmallIcon: Be
168
171
  },
169
- i18n: { messages: W },
172
+ i18n: { messages: G },
170
173
  props: {
171
174
  /**
172
175
  * Additional timestamp of the event
@@ -207,7 +210,7 @@ const $e = /* @__PURE__ */ B(Le, [["render", Re], ["__scopeId", "data-v-f702de38
207
210
  * Title of the event
208
211
  */
209
212
  title: {
210
- type: String,
213
+ type: [Object, String],
211
214
  required: !0
212
215
  },
213
216
  /**
@@ -216,130 +219,138 @@ const $e = /* @__PURE__ */ B(Le, [["render", Re], ["__scopeId", "data-v-f702de38
216
219
  */
217
220
  variant: {
218
221
  type: String,
219
- default: w.DEFAULT,
220
- validator: (e) => Object.values(w).includes(e)
222
+ default: C.DEFAULT,
223
+ validator: (e) => Object.values(C).includes(e)
221
224
  }
222
225
  },
223
- setup(e) {
224
- const { t } = we({ messages: W }), r = _(() => ({
225
- "b-timeline-item__icon--default": e.variant === w.DEFAULT,
226
- "b-timeline-item__icon--success": e.variant === w.SUCCESS,
227
- "b-timeline-item__icon--critical": e.variant === w.CRITICAL
228
- })), l = _(() => ({
229
- "b-timeline-item__title--default": e.variant === w.DEFAULT
226
+ setup(e, { slots: t }) {
227
+ const { t: s } = ke({ messages: G }), d = _(() => ({
228
+ "b-timeline-item__icon--default": e.variant === C.DEFAULT,
229
+ "b-timeline-item__icon--success": e.variant === C.SUCCESS,
230
+ "b-timeline-item__icon--critical": e.variant === C.CRITICAL
231
+ })), h = _(() => ({
232
+ "b-timeline-item__title--default": e.variant === C.DEFAULT
230
233
  }));
231
- U(he, !0);
232
- const h = q(te), { timelineEntries: s, index: i, unregisterTimelineEntry: c } = h({
234
+ j(ye, !0);
235
+ const a = z(ne), { timelineEntries: o, index: u, unregisterTimelineEntry: g } = a({
233
236
  title: e.title,
234
237
  date: e.timestamp.date
235
238
  });
236
- re(() => c());
237
- const { showAll: p, showMoreIndex: m, hiddenItems: n, visibleIndexes: a, timegapLimit: u } = q(ie), g = _(() => p.value || !a.value), d = _(() => g.value ? !0 : a.value.includes(i)), L = _(() => {
238
- var Y;
239
- if (!u.value)
239
+ de(() => g());
240
+ const { showAll: r, showMoreIndex: n, hiddenItems: c, visibleIndexes: v, timegapLimit: l } = z(oe), m = _(() => r.value || !v.value), A = _(() => m.value ? !0 : v.value.includes(u)), $ = _(() => typeof e.title == "object"), R = _(() => e.title), k = _(() => {
241
+ var V;
242
+ if (!l.value)
240
243
  return null;
241
- const C = (Y = s.value[i - 1]) == null ? void 0 : Y.date, D = g.value || a.value.includes(i - 1);
242
- if (!C || !D)
244
+ const F = (V = o.value[u - 1]) == null ? void 0 : V.date, re = m.value || v.value.includes(u - 1);
245
+ if (!F || !re)
243
246
  return null;
244
- const { date: j } = s.value[i], se = parseInt(
245
- P(C, j, { unit: u.value.unit }),
247
+ const { date: H } = o.value[u], le = parseInt(
248
+ W(F, H, { unit: l.value.unit }),
246
249
  10
247
250
  );
248
- return u.value.amount < se ? P(C, j, { roundingMethod: "floor" }) : null;
249
- }), k = _(() => L.value ? t("timegap", { timegap: L.value }) : ""), R = _(() => n.value && m.value === i), $ = _(() => i === s.value.length - 1);
251
+ return l.value.amount < le ? W(F, H, { roundingMethod: "floor" }) : null;
252
+ }), L = _(() => k.value ? s("timegap", { timegap: k.value }) : ""), D = _(() => c.value && n.value === u), ae = _(() => u === o.value.length - 1);
250
253
  return {
251
254
  // Values
252
- iconConditionalClasses: r,
253
- titleConditionalClasses: l,
254
- displayShowMoreButton: R,
255
- showAll: p,
256
- hiddenItems: n,
257
- isVisible: d,
258
- timegap: L,
259
- timegapAriaLabel: k,
260
- isLastItem: $,
255
+ iconConditionalClasses: d,
256
+ titleConditionalClasses: h,
257
+ displayShowMoreButton: D,
258
+ showAll: r,
259
+ hiddenItems: c,
260
+ isVisible: A,
261
+ isLinkTitle: $,
262
+ linkTitleProps: R,
263
+ timegap: k,
264
+ timegapAriaLabel: L,
265
+ isLastItem: ae,
261
266
  // Methods
262
- generateUid: Ee,
263
- t
267
+ generateUid: Me,
268
+ hasSlot: Le(t),
269
+ t: s
264
270
  };
265
271
  }
266
272
  });
267
- const ne = (e) => (x("data-v-cbd33889"), e = e(), ee(), e), Fe = {
273
+ const se = (e) => (te("data-v-5ee3448b"), e = e(), ie(), e), He = {
268
274
  key: 0,
269
275
  class: "b-timeline-item"
270
- }, Ue = {
276
+ }, Ve = {
271
277
  key: 0,
272
278
  class: "b-timeline-item__row"
273
- }, Be = /* @__PURE__ */ ne(() => /* @__PURE__ */ v("div", {
279
+ }, qe = /* @__PURE__ */ se(() => /* @__PURE__ */ p("div", {
274
280
  class: "b-timeline-item__marker",
275
281
  "aria-hidden": "true"
276
282
  }, [
277
- /* @__PURE__ */ v("div", { class: "b-timeline-item__icon b-timeline-item__icon--timegap" }),
278
- /* @__PURE__ */ v("div", { class: "b-timeline-item__separator" })
279
- ], -1)), je = { class: "b-timeline-item__content" }, Ye = { class: "b-timeline-item__row" }, Ve = {
283
+ /* @__PURE__ */ p("div", { class: "b-timeline-item__icon b-timeline-item__icon--timegap" }),
284
+ /* @__PURE__ */ p("div", { class: "b-timeline-item__separator" })
285
+ ], -1)), ze = { class: "b-timeline-item__content" }, Je = { class: "b-timeline-item__row" }, Ke = {
280
286
  class: "b-timeline-item__marker",
281
287
  "aria-hidden": "true"
282
- }, qe = {
288
+ }, Pe = {
283
289
  key: 0,
284
290
  class: "b-timeline-item__separator",
285
291
  "data-testid": "last-timeline-item-separator"
286
- }, ze = { class: "b-timeline-item__content" }, He = {
292
+ }, Ze = { class: "b-timeline-item__content" }, Qe = { key: 1 }, We = {
287
293
  key: 3,
288
294
  class: "b-timeline-item__data-list"
289
- }, Je = {
295
+ }, Xe = {
290
296
  key: 1,
291
297
  class: "b-timeline-item__row"
292
- }, Ke = /* @__PURE__ */ ne(() => /* @__PURE__ */ v("div", {
298
+ }, Ge = /* @__PURE__ */ se(() => /* @__PURE__ */ p("div", {
293
299
  class: "b-timeline-item__marker",
294
300
  "aria-hidden": "true"
295
301
  }, [
296
- /* @__PURE__ */ v("div", { class: "b-timeline-item__separator" })
297
- ], -1)), Ze = { class: "b-timeline-item__content" };
298
- function Pe(e, t, r, l, h, s) {
299
- const i = T("bento-typography"), c = T("bento-date"), p = T("bento-structured-list-item"), m = T("bento-structured-list"), n = T("bento-tag"), a = T("bento-button");
300
- return e.isVisible ? (o(), f("li", Fe, [
301
- e.timegap ? (o(), f("div", Ue, [
302
- Be,
303
- v("div", je, [
304
- E(i, {
302
+ /* @__PURE__ */ p("div", { class: "b-timeline-item__separator" })
303
+ ], -1)), xe = { class: "b-timeline-item__content" };
304
+ function et(e, t, s, d, h, a) {
305
+ const o = E("bento-typography"), u = E("bento-link"), g = E("bento-date"), r = E("bento-structured-list-item"), n = E("bento-structured-list"), c = E("bento-tag"), v = E("bento-button");
306
+ return e.isVisible ? (i(), f("li", He, [
307
+ e.timegap ? (i(), f("div", Ve, [
308
+ qe,
309
+ p("div", ze, [
310
+ w(o, {
305
311
  class: "b-timeline-item__timegap",
306
312
  "aria-label": e.timegapAriaLabel
307
313
  }, {
308
- default: I(() => [
314
+ default: b(() => [
309
315
  S(y(e.timegap), 1)
310
316
  ]),
311
317
  _: 1
312
318
  }, 8, ["aria-label"])
313
319
  ])
314
- ])) : b("", !0),
315
- v("div", Ye, [
316
- v("div", Ve, [
317
- (o(), M(le(e.variant), {
318
- class: z(["b-timeline-item__icon", e.iconConditionalClasses])
320
+ ])) : I("", !0),
321
+ p("div", Je, [
322
+ p("div", Ke, [
323
+ (i(), T(ue(e.variant), {
324
+ class: J(["b-timeline-item__icon", e.iconConditionalClasses])
319
325
  }, null, 8, ["class"])),
320
- e.isLastItem ? b("", !0) : (o(), f("div", qe))
326
+ e.isLastItem ? I("", !0) : (i(), f("div", Pe))
321
327
  ]),
322
- v("div", ze, [
323
- E(i, {
328
+ p("div", Ze, [
329
+ w(o, {
324
330
  el: "div",
325
331
  variant: "body",
326
332
  strongest: "",
327
- class: z(["b-timeline-item__title", e.titleConditionalClasses]),
333
+ class: J(["b-timeline-item__title", e.titleConditionalClasses]),
328
334
  role: "heading"
329
335
  }, {
330
- default: I(() => [
331
- S(y(e.title), 1)
336
+ default: b(() => [
337
+ e.isLinkTitle ? (i(), T(u, B({ key: 0 }, e.linkTitleProps, { "disable-typography": "" }), {
338
+ default: b(() => [
339
+ S(y(e.linkTitleProps.title), 1)
340
+ ]),
341
+ _: 1
342
+ }, 16)) : (i(), f("span", Qe, y(e.title), 1))
332
343
  ]),
333
344
  _: 1
334
345
  }, 8, ["class"]),
335
- e.timestamp ? (o(), M(i, {
346
+ e.timestamp ? (i(), T(o, {
336
347
  key: 0,
337
348
  class: "b-timeline-item__timestamp",
338
349
  el: "div",
339
350
  variant: "caption"
340
351
  }, {
341
- default: I(() => [
342
- E(c, {
352
+ default: b(() => [
353
+ w(g, {
343
354
  date: e.timestamp.date,
344
355
  format: e.timestamp.format,
345
356
  "disable-typography": ""
@@ -347,15 +358,15 @@ function Pe(e, t, r, l, h, s) {
347
358
  S(" " + y(e.timestamp.value), 1)
348
359
  ]),
349
360
  _: 1
350
- })) : b("", !0),
351
- e.additionalTimestamp ? (o(), M(i, {
361
+ })) : I("", !0),
362
+ e.additionalTimestamp ? (i(), T(o, {
352
363
  key: 1,
353
364
  class: "b-timeline-item__timestamp",
354
365
  el: "div",
355
366
  variant: "caption"
356
367
  }, {
357
- default: I(() => [
358
- E(c, {
368
+ default: b(() => [
369
+ w(g, {
359
370
  date: e.additionalTimestamp.date,
360
371
  format: e.additionalTimestamp.format,
361
372
  "disable-typography": ""
@@ -363,29 +374,31 @@ function Pe(e, t, r, l, h, s) {
363
374
  S(" " + y(e.additionalTimestamp.value), 1)
364
375
  ]),
365
376
  _: 1
366
- })) : b("", !0),
367
- e.description ? (o(), M(i, {
377
+ })) : I("", !0),
378
+ e.description || e.hasSlot("default") ? (i(), T(o, {
368
379
  key: 2,
369
380
  el: "div",
370
381
  variant: "body",
371
382
  class: "b-timeline-item__description"
372
383
  }, {
373
- default: I(() => [
374
- S(y(e.description), 1)
384
+ default: b(() => [
385
+ ee(e.$slots, "default", {}, () => [
386
+ S(y(e.description), 1)
387
+ ], !0)
375
388
  ]),
376
- _: 1
377
- })) : b("", !0),
378
- e.dataList ? (o(), f("div", He, [
379
- E(m, null, {
380
- default: I(() => [
381
- (o(!0), f(F, null, me(e.dataList, (u) => (o(), M(p, {
382
- key: e.generateUid(u.label),
383
- label: u.label
389
+ _: 3
390
+ })) : I("", !0),
391
+ e.dataList ? (i(), f("div", We, [
392
+ w(n, null, {
393
+ default: b(() => [
394
+ (i(!0), f(U, null, ce(e.dataList, (l) => (i(), T(r, {
395
+ key: e.generateUid(l.label),
396
+ label: l.label
384
397
  }, {
385
- default: I(() => [
386
- E(i, { variant: "caption" }, {
387
- default: I(() => [
388
- S(y(u.value), 1)
398
+ default: b(() => [
399
+ w(o, { variant: "caption" }, {
400
+ default: b(() => [
401
+ S(y(l.value), 1)
389
402
  ]),
390
403
  _: 2
391
404
  }, 1024)
@@ -395,37 +408,37 @@ function Pe(e, t, r, l, h, s) {
395
408
  ]),
396
409
  _: 1
397
410
  })
398
- ])) : b("", !0),
399
- e.tag ? (o(), M(n, G({ key: 4 }, e.tag, { class: "b-timeline-item__tag" }), null, 16)) : b("", !0)
411
+ ])) : I("", !0),
412
+ e.tag ? (i(), T(c, B({ key: 4 }, e.tag, { class: "b-timeline-item__tag" }), null, 16)) : I("", !0)
400
413
  ])
401
414
  ]),
402
- e.displayShowMoreButton ? (o(), f("div", Je, [
403
- Ke,
404
- v("div", Ze, [
405
- E(a, {
415
+ e.displayShowMoreButton ? (i(), f("div", Xe, [
416
+ Ge,
417
+ p("div", xe, [
418
+ w(v, {
406
419
  class: "b-timeline__show-more",
407
420
  variant: "tertiary",
408
- onClick: t[0] || (t[0] = (u) => e.showAll = !e.showAll)
421
+ onClick: t[0] || (t[0] = (l) => e.showAll = !e.showAll)
409
422
  }, {
410
- default: I(() => [
411
- e.showAll ? (o(), f(F, { key: 1 }, [
423
+ default: b(() => [
424
+ e.showAll ? (i(), f(U, { key: 1 }, [
412
425
  S(y(e.t("showLess")), 1)
413
- ], 64)) : (o(), f(F, { key: 0 }, [
426
+ ], 64)) : (i(), f(U, { key: 0 }, [
414
427
  S(y(e.t("showMore", { items: e.hiddenItems })), 1)
415
428
  ], 64))
416
429
  ]),
417
430
  _: 1
418
431
  })
419
432
  ])
420
- ])) : b("", !0)
421
- ])) : b("", !0);
433
+ ])) : I("", !0)
434
+ ])) : I("", !0);
422
435
  }
423
- const mt = /* @__PURE__ */ B(De, [["render", Pe], ["__scopeId", "data-v-cbd33889"]]);
436
+ const ht = /* @__PURE__ */ Y(Ye, [["render", et], ["__scopeId", "data-v-5ee3448b"]]);
424
437
  export {
425
- lt as BentoTimeline,
426
- Ce as BentoTimelineGapUnit,
427
- mt as BentoTimelineItem,
428
- w as BentoTimelineItemVariant,
429
- N as BentoTimelineShowMorePlacement
438
+ pt as BentoTimeline,
439
+ Ne as BentoTimelineGapUnit,
440
+ ht as BentoTimelineItem,
441
+ C as BentoTimelineItemVariant,
442
+ M as BentoTimelineShowMorePlacement
430
443
  };
431
444
  //# sourceMappingURL=timeline.js.map