@adyen/bento-vue2 1.9.0 → 1.10.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 (253) hide show
  1. package/dist/@types/packages/vue2/src/components/button/button.vue.d.ts +19 -3580
  2. package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.types.d.ts +2 -0
  3. package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +3 -3
  4. package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +2 -0
  5. package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +2 -0
  6. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell-actions/data-grid-cell-actions.types.d.ts +14 -0
  7. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell-actions/data-grid-cell-actions.vue.d.ts +33 -0
  8. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns-types.d.ts +1 -0
  9. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +20 -4
  10. package/dist/@types/packages/vue2/src/components/data-grid/components/index.d.ts +1 -0
  11. package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateColumnWidth/useCalculateColumnWidth.d.ts +1 -0
  12. package/dist/@types/packages/vue2/src/components/data-grid/composables/useColumnReorderer/useColumnReorderer.d.ts +54 -0
  13. package/dist/@types/packages/vue2/src/components/data-grid/composables/useConfigSettings/useConfigSettings.d.ts +81 -0
  14. package/dist/@types/packages/vue2/src/components/data-grid/composables/useSelector.d.ts +1 -1
  15. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +5 -2
  16. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +16 -7
  17. package/dist/@types/packages/vue2/src/components/divider/divider.keys.d.ts +1 -0
  18. package/dist/@types/packages/vue2/src/components/divider/divider.vue.d.ts +1 -1
  19. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.types.d.ts +1 -1
  20. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +3 -3
  21. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +3 -3
  22. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +9 -0
  23. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +3 -3
  24. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +9 -0
  25. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +9 -0
  26. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +9 -0
  27. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +9 -0
  28. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +9 -0
  29. package/dist/@types/packages/vue2/src/components/dropdown/composables/useDisplayValue.types.d.ts +1 -0
  30. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +11 -1
  31. package/dist/@types/packages/vue2/src/components/empty-state/empty-state.types.d.ts +1 -0
  32. package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +3 -3
  33. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +84 -12
  34. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +2 -0
  35. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +2 -0
  36. package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.types.d.ts +3 -1
  37. package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +8 -0
  38. package/dist/@types/packages/vue2/src/components/internal/copy/copy.types.d.ts +8 -0
  39. package/dist/@types/packages/vue2/src/components/internal/copy/copy.vue.d.ts +20 -0
  40. package/dist/@types/packages/vue2/src/components/internal/copy/index.d.ts +1 -0
  41. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/components/listbox-multi-select-category/listbox-multi-select-category.types.d.ts +2 -1
  42. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/components/listbox-multi-select-category/listbox-multi-select-category.vue.d.ts +82 -0
  43. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/listbox-multi-select-options.vue.d.ts +10 -0
  44. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +9 -0
  45. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/components/listbox-single-select-category/index.d.ts +1 -0
  46. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/components/listbox-single-select-category/listbox-single-select-category.vue.d.ts +12 -0
  47. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/listbox-single-select.vue.d.ts +10 -0
  48. package/dist/@types/packages/vue2/src/components/internal/listbox/composables/use-multi-level-items/use-multi-level-items.d.ts +6 -0
  49. package/dist/@types/packages/vue2/src/components/internal/listbox/index.d.ts +1 -0
  50. package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +12 -3
  51. package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.types.d.ts +1 -0
  52. package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.vue.d.ts +1 -1
  53. package/dist/@types/packages/vue2/src/components/menu/components/sub-menu-item-list/sub-menu-item-list.vue.d.ts +2 -0
  54. package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +1 -0
  55. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +1 -1
  56. package/dist/@types/packages/vue2/src/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +251 -3
  57. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +1 -0
  58. package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +3 -4
  59. package/dist/@types/packages/vue2/src/components/structured-list/structured-list.types.d.ts +2 -0
  60. package/dist/@types/packages/vue2/src/components/structured-list/structured-list.vue.d.ts +16 -3
  61. package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +15 -10
  62. package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +9 -0
  63. package/dist/@types/packages/vue2/src/types/elements.d.ts +2 -1
  64. package/dist/accordion.js +2 -2
  65. package/dist/action-bar.js +5 -5
  66. package/dist/alert.js +8 -8
  67. package/dist/alert.js.map +1 -1
  68. package/dist/assets/base-modal.css +1 -1
  69. package/dist/assets/button.css +1 -1
  70. package/dist/assets/checkbox.css +1 -1
  71. package/dist/assets/controls-group.css +1 -1
  72. package/dist/assets/copy.css +1 -1
  73. package/dist/assets/dropdown-default-textbox.css +1 -1
  74. package/dist/assets/dropdown.css +1 -1
  75. package/dist/assets/index.css +1 -1
  76. package/dist/assets/index10.css +1 -1
  77. package/dist/assets/index11.css +1 -1
  78. package/dist/assets/index12.css +1 -1
  79. package/dist/assets/index13.css +1 -1
  80. package/dist/assets/index14.css +1 -1
  81. package/dist/assets/index15.css +1 -1
  82. package/dist/assets/index16.css +1 -1
  83. package/dist/assets/index17.css +1 -1
  84. package/dist/assets/index18.css +1 -1
  85. package/dist/assets/index19.css +1 -1
  86. package/dist/assets/index2.css +1 -1
  87. package/dist/assets/index20.css +1 -1
  88. package/dist/assets/index21.css +1 -1
  89. package/dist/assets/index22.css +1 -1
  90. package/dist/assets/index23.css +1 -1
  91. package/dist/assets/index24.css +1 -1
  92. package/dist/assets/index25.css +1 -1
  93. package/dist/assets/index26.css +1 -1
  94. package/dist/assets/index27.css +1 -1
  95. package/dist/assets/index28.css +1 -1
  96. package/dist/assets/index29.css +1 -1
  97. package/dist/assets/index3.css +1 -1
  98. package/dist/assets/index30.css +1 -1
  99. package/dist/assets/index31.css +1 -1
  100. package/dist/assets/index32.css +1 -1
  101. package/dist/assets/index33.css +1 -1
  102. package/dist/assets/index34.css +1 -1
  103. package/dist/assets/index35.css +1 -1
  104. package/dist/assets/index36.css +1 -1
  105. package/dist/assets/index37.css +1 -1
  106. package/dist/assets/index38.css +1 -1
  107. package/dist/assets/index39.css +1 -1
  108. package/dist/assets/index4.css +1 -1
  109. package/dist/assets/index40.css +1 -1
  110. package/dist/assets/index41.css +1 -1
  111. package/dist/assets/index42.css +1 -1
  112. package/dist/assets/index43.css +1 -1
  113. package/dist/assets/index44.css +1 -1
  114. package/dist/assets/index45.css +1 -1
  115. package/dist/assets/index5.css +1 -1
  116. package/dist/assets/index6.css +1 -1
  117. package/dist/assets/index7.css +1 -1
  118. package/dist/assets/index8.css +1 -1
  119. package/dist/assets/index9.css +1 -1
  120. package/dist/assets/listbox.css +1 -1
  121. package/dist/assets/loading-button.css +1 -1
  122. package/dist/avatar-image.js +1 -1
  123. package/dist/badge.js +1 -1
  124. package/dist/button.js +20 -18
  125. package/dist/button.js.map +1 -1
  126. package/dist/card.js +2 -2
  127. package/dist/checkbox.js +61 -48
  128. package/dist/checkbox.js.map +1 -1
  129. package/dist/chunks/{base-button.df9a9bea.js → base-button.46843461.js} +2 -2
  130. package/dist/chunks/{base-button.df9a9bea.js.map → base-button.46843461.js.map} +1 -1
  131. package/dist/chunks/{base-modal.75319f4e.js → base-modal.193ce866.js} +33 -33
  132. package/dist/chunks/base-modal.193ce866.js.map +1 -0
  133. package/dist/chunks/{button-actions-with-menu.32770485.js → button-actions-with-menu.11988565.js} +3 -3
  134. package/dist/chunks/{button-actions-with-menu.32770485.js.map → button-actions-with-menu.11988565.js.map} +1 -1
  135. package/dist/chunks/button.f3f05408.js +100 -0
  136. package/dist/chunks/button.f3f05408.js.map +1 -0
  137. package/dist/chunks/{calendar.a885d8fc.js → calendar.7dbac3b8.js} +4 -4
  138. package/dist/chunks/{calendar.a885d8fc.js.map → calendar.7dbac3b8.js.map} +1 -1
  139. package/dist/chunks/checkbox.f6f6ce39.js +188 -0
  140. package/dist/chunks/checkbox.f6f6ce39.js.map +1 -0
  141. package/dist/chunks/{controls-group.dd967ccf.js → controls-group.24a9efb1.js} +15 -11
  142. package/dist/chunks/controls-group.24a9efb1.js.map +1 -0
  143. package/dist/chunks/copy.f4019f8d.js +122 -0
  144. package/dist/chunks/copy.f4019f8d.js.map +1 -0
  145. package/dist/chunks/{cross-circle-fill.7c07d16a.js → cross-circle-fill.27580c4b.js} +5 -5
  146. package/dist/chunks/{cross-circle-fill.7c07d16a.js.map → cross-circle-fill.27580c4b.js.map} +1 -1
  147. package/dist/chunks/{dropdown-default-textbox.465db4d4.js → dropdown-default-textbox.a1240b9d.js} +11 -11
  148. package/dist/chunks/dropdown-default-textbox.a1240b9d.js.map +1 -0
  149. package/dist/chunks/{dropdown.6461dbe3.js → dropdown.f784ac67.js} +258 -221
  150. package/dist/chunks/dropdown.f784ac67.js.map +1 -0
  151. package/dist/chunks/{field-label.01df3cba.js → field-label.bdf22f47.js} +5 -5
  152. package/dist/chunks/{field-label.01df3cba.js.map → field-label.bdf22f47.js.map} +1 -1
  153. package/dist/chunks/{fixed-scroller.42354ccc.js → fixed-scroller.28158c25.js} +2 -2
  154. package/dist/chunks/{fixed-scroller.42354ccc.js.map → fixed-scroller.28158c25.js.map} +1 -1
  155. package/dist/chunks/{footer-actions.2cd9079e.js → footer-actions.08a8323b.js} +3 -3
  156. package/dist/chunks/{footer-actions.2cd9079e.js.map → footer-actions.08a8323b.js.map} +1 -1
  157. package/dist/chunks/{index.02da8d63.js → index.1036f656.js} +3 -3
  158. package/dist/chunks/{index.02da8d63.js.map → index.1036f656.js.map} +1 -1
  159. package/dist/chunks/{index.322692c8.js → index.158c522b.js} +2 -2
  160. package/dist/chunks/{index.322692c8.js.map → index.158c522b.js.map} +1 -1
  161. package/dist/chunks/{index.f358c4bd.js → index.4824eab5.js} +163 -155
  162. package/dist/chunks/index.4824eab5.js.map +1 -0
  163. package/dist/chunks/{index.6cef7328.js → index.6c299479.js} +2 -2
  164. package/dist/chunks/{index.6cef7328.js.map → index.6c299479.js.map} +1 -1
  165. package/dist/chunks/{index.152b2b16.js → index.7039d901.js} +3 -3
  166. package/dist/chunks/{index.152b2b16.js.map → index.7039d901.js.map} +1 -1
  167. package/dist/chunks/{index.b201e81d.js → index.858b0720.js} +2 -2
  168. package/dist/chunks/{index.b201e81d.js.map → index.858b0720.js.map} +1 -1
  169. package/dist/chunks/{index.16914bb1.js → index.9051abfc.js} +9 -9
  170. package/dist/chunks/{index.16914bb1.js.map → index.9051abfc.js.map} +1 -1
  171. package/dist/chunks/index.9bdf4d78.js +147 -0
  172. package/dist/chunks/index.9bdf4d78.js.map +1 -0
  173. package/dist/chunks/{index.d1beb704.js → index.ad4b770b.js} +5 -5
  174. package/dist/chunks/{index.d1beb704.js.map → index.ad4b770b.js.map} +1 -1
  175. package/dist/chunks/index.f651209d.js +32 -0
  176. package/dist/chunks/index.f651209d.js.map +1 -0
  177. package/dist/chunks/{listbox-option-tag.55cd9c16.js → listbox-option-tag.60c0beca.js} +3 -3
  178. package/dist/chunks/{listbox-option-tag.55cd9c16.js.map → listbox-option-tag.60c0beca.js.map} +1 -1
  179. package/dist/chunks/{listbox.a117e6d4.js → listbox.163433c5.js} +475 -392
  180. package/dist/chunks/listbox.163433c5.js.map +1 -0
  181. package/dist/chunks/{loading-button.459b9ab4.js → loading-button.7b5d0c22.js} +20 -20
  182. package/dist/chunks/{loading-button.459b9ab4.js.map → loading-button.7b5d0c22.js.map} +1 -1
  183. package/dist/chunks/{tooltip.b8929659.js → tooltip.4a1300d5.js} +22 -22
  184. package/dist/chunks/tooltip.4a1300d5.js.map +1 -0
  185. package/dist/chunks/use-has-slot.fbeb19ec.js.map +1 -1
  186. package/dist/code-snippet.js +7 -7
  187. package/dist/code-snippet.js.map +1 -1
  188. package/dist/country.js +2 -2
  189. package/dist/currency.js +1 -1
  190. package/dist/data-grid.js +858 -668
  191. package/dist/data-grid.js.map +1 -1
  192. package/dist/date-picker.js +8 -8
  193. package/dist/date-range-picker.js +2 -2
  194. package/dist/date.js +1 -1
  195. package/dist/divider.js +2 -18
  196. package/dist/divider.js.map +1 -1
  197. package/dist/dropdown.js +4 -4
  198. package/dist/empty-state.js +18 -18
  199. package/dist/empty-state.js.map +1 -1
  200. package/dist/filter-bar.js +408 -399
  201. package/dist/filter-bar.js.map +1 -1
  202. package/dist/focus-trap.js +1 -1
  203. package/dist/form-layout.js +2 -2
  204. package/dist/header.js +3 -3
  205. package/dist/index.js +66 -65
  206. package/dist/info-icon.js +3 -3
  207. package/dist/input-field.js +4 -4
  208. package/dist/internal.js +17 -15
  209. package/dist/link.js +2 -2
  210. package/dist/loading-indicator.js +1 -1
  211. package/dist/menu.js +1 -1
  212. package/dist/modal.js +62 -60
  213. package/dist/modal.js.map +1 -1
  214. package/dist/pagination.js +4 -4
  215. package/dist/payment-method.js +2 -2
  216. package/dist/popover.js +1 -1
  217. package/dist/popper-container.js +1 -1
  218. package/dist/radio-group.js +46 -45
  219. package/dist/radio-group.js.map +1 -1
  220. package/dist/search-bar.js +10 -10
  221. package/dist/segmented-control.js +3 -3
  222. package/dist/sidepanel.js +5 -5
  223. package/dist/status.js +2 -2
  224. package/dist/stepper.js +3 -3
  225. package/dist/structured-list.js +1 -1
  226. package/dist/summary-grid.js +3 -3
  227. package/dist/tabs.js +3 -3
  228. package/dist/tag.js +3 -3
  229. package/dist/textarea.js +95 -88
  230. package/dist/textarea.js.map +1 -1
  231. package/dist/timeline.js +198 -191
  232. package/dist/timeline.js.map +1 -1
  233. package/dist/toast.js +3 -3
  234. package/dist/toggle.js +2 -2
  235. package/dist/tutorial.js +5 -5
  236. package/dist/typography.js +1 -1
  237. package/dist/web-types.json +646 -361
  238. package/package.json +2 -2
  239. package/dist/chunks/base-modal.75319f4e.js.map +0 -1
  240. package/dist/chunks/button.7dd8d4de.js +0 -125
  241. package/dist/chunks/button.7dd8d4de.js.map +0 -1
  242. package/dist/chunks/checkbox.65743b08.js +0 -184
  243. package/dist/chunks/checkbox.65743b08.js.map +0 -1
  244. package/dist/chunks/controls-group.dd967ccf.js.map +0 -1
  245. package/dist/chunks/copy.e12b418e.js +0 -103
  246. package/dist/chunks/copy.e12b418e.js.map +0 -1
  247. package/dist/chunks/dropdown-default-textbox.465db4d4.js.map +0 -1
  248. package/dist/chunks/dropdown.6461dbe3.js.map +0 -1
  249. package/dist/chunks/index.0890dc99.js +0 -130
  250. package/dist/chunks/index.0890dc99.js.map +0 -1
  251. package/dist/chunks/index.f358c4bd.js.map +0 -1
  252. package/dist/chunks/listbox.a117e6d4.js.map +0 -1
  253. package/dist/chunks/tooltip.b8929659.js.map +0 -1
package/dist/timeline.js CHANGED
@@ -1,76 +1,74 @@
1
- import { defineComponent as Y, computed as o, ref as E, toRefs as Q, provide as L, inject as D, onUnmounted as W } from "vue";
2
- import { a as z } from "./chunks/button.7dd8d4de.js";
3
- import { BentoTextarea as X } from "./textarea.js";
1
+ import { defineComponent as Y, computed as r, ref as N, toRefs as Z, provide as A, inject as D, onUnmounted as G } from "vue";
2
+ import { a as z } from "./chunks/button.f3f05408.js";
3
+ import { BentoTextarea as Q } from "./textarea.js";
4
4
  import { u as H } from "./chunks/i18n.eb5b985b.js";
5
- import { BentoButtonActions as G } from "./button.js";
5
+ import { BentoButtonActions as X } from "./button.js";
6
6
  import { n as x } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
7
- import { B as tt } from "./chunks/index.322692c8.js";
8
- import { BentoLink as et } from "./link.js";
9
- import { BentoTag as it } from "./tag.js";
10
- import { B as at } from "./chunks/index.b201e81d.js";
11
- import { B as nt, a as st, S as ot } from "./chunks/index.0890dc99.js";
12
- import { C as lt } from "./chunks/checkmark-circle-fill.345311d2.js";
13
- import { C as rt } from "./chunks/cross-circle-fill.7c07d16a.js";
14
- import { r as mt, e as ct, t as N, g as F } from "./chunks/index.f55fdc32.js";
15
- import { c as dt, a as ut } from "./chunks/index.86453263.js";
16
- import { g as _t } from "./chunks/unique-id.a2a2b458.js";
17
- import { u as vt } from "./chunks/use-has-slot.fbeb19ec.js";
18
- import "./assets/index22.css";
19
- var k = 1e3 * 60, M = 60 * 24, U = M * 30, B = M * 365;
20
- function j(e, t) {
7
+ import { B as ee } from "./chunks/index.158c522b.js";
8
+ import { BentoLink as te } from "./link.js";
9
+ import { BentoTag as ie } from "./tag.js";
10
+ import { B as ae, d as se } from "./chunks/index.858b0720.js";
11
+ import { B as ne, a as oe, S as re } from "./chunks/index.9bdf4d78.js";
12
+ import { g as le } from "./chunks/unique-id.a2a2b458.js";
13
+ import { u as me } from "./chunks/use-has-slot.fbeb19ec.js";
14
+ import { r as ce, e as de, t as w, g as k } from "./chunks/index.f55fdc32.js";
15
+ import { c as ue, a as _e } from "./chunks/index.86453263.js";
16
+ import "./assets/index37.css";
17
+ var F = 1e3 * 60, M = 60 * 24, U = M * 30, j = M * 365;
18
+ function $(t, e) {
21
19
  var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
22
- mt(2, arguments);
23
- var a = i.locale || ct;
20
+ ce(2, arguments);
21
+ var a = i.locale || de;
24
22
  if (!a.formatDistance)
25
23
  throw new RangeError("locale must contain localize.formatDistance property");
26
- var b = dt(e, t);
27
- if (isNaN(b))
24
+ var f = ue(t, e);
25
+ if (isNaN(f))
28
26
  throw new RangeError("Invalid time value");
29
- var m = ut(i);
30
- m.addSuffix = !!i.addSuffix, m.comparison = b;
31
- var _, c;
32
- b > 0 ? (_ = N(t), c = N(e)) : (_ = N(e), c = N(t));
33
- var v = i.roundingMethod == null ? "round" : String(i.roundingMethod), r;
34
- if (v === "floor")
35
- r = Math.floor;
36
- else if (v === "ceil")
37
- r = Math.ceil;
38
- else if (v === "round")
39
- r = Math.round;
27
+ var l = _e(i);
28
+ l.addSuffix = !!i.addSuffix, l.comparison = f;
29
+ var p, c;
30
+ f > 0 ? (p = w(e), c = w(t)) : (p = w(t), c = w(e));
31
+ var d = i.roundingMethod == null ? "round" : String(i.roundingMethod), n;
32
+ if (d === "floor")
33
+ n = Math.floor;
34
+ else if (d === "ceil")
35
+ n = Math.ceil;
36
+ else if (d === "round")
37
+ n = Math.round;
40
38
  else
41
39
  throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");
42
- var n = c.getTime() - _.getTime(), d = n / k, C = F(c) - F(_), u = (n - C) / k, s;
43
- if (i.unit == null ? d < 1 ? s = "second" : d < 60 ? s = "minute" : d < M ? s = "hour" : u < U ? s = "day" : u < B ? s = "month" : s = "year" : s = String(i.unit), s === "second") {
44
- var g = r(n / 1e3);
45
- return a.formatDistance("xSeconds", g, m);
40
+ var m = c.getTime() - p.getTime(), u = m / F, C = k(c) - k(p), _ = (m - C) / F, s;
41
+ if (i.unit == null ? u < 1 ? s = "second" : u < 60 ? s = "minute" : u < M ? s = "hour" : _ < U ? s = "day" : _ < j ? s = "month" : s = "year" : s = String(i.unit), s === "second") {
42
+ var b = n(m / 1e3);
43
+ return a.formatDistance("xSeconds", b, l);
46
44
  } else if (s === "minute") {
47
- var h = r(d);
48
- return a.formatDistance("xMinutes", h, m);
45
+ var g = n(u);
46
+ return a.formatDistance("xMinutes", g, l);
49
47
  } else if (s === "hour") {
50
- var y = r(d / 60);
51
- return a.formatDistance("xHours", y, m);
48
+ var I = n(u / 60);
49
+ return a.formatDistance("xHours", I, l);
52
50
  } else if (s === "day") {
53
- var w = r(u / M);
54
- return a.formatDistance("xDays", w, m);
51
+ var E = n(_ / M);
52
+ return a.formatDistance("xDays", E, l);
55
53
  } else if (s === "month") {
56
- var l = r(u / U);
57
- return l === 12 && i.unit !== "month" ? a.formatDistance("xYears", 1, m) : a.formatDistance("xMonths", l, m);
54
+ var o = n(_ / U);
55
+ return o === 12 && i.unit !== "month" ? a.formatDistance("xYears", 1, l) : a.formatDistance("xMonths", o, l);
58
56
  } else if (s === "year") {
59
- var f = r(u / B);
60
- return a.formatDistance("xYears", f, m);
57
+ var v = n(_ / j);
58
+ return a.formatDistance("xYears", v, l);
61
59
  }
62
60
  throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'");
63
61
  }
64
- var S = /* @__PURE__ */ ((e) => (e.BOTTOM = "bottom", e.AFTER_FIRST = "after-first", e.BEFORE_LAST = "before-last", e))(S || {}), ft = /* @__PURE__ */ ((e) => (e.SECOND = "second", e.MINUTE = "minute", e.HOUR = "hour", e.DAY = "day", e.MONTH = "month", e.YEAR = "year", e))(ft || {}), p = /* @__PURE__ */ ((e) => (e.DEFAULT = "SquareSmallIcon", e.SUCCESS = "CheckedCircleIcon", e.CRITICAL = "CrossCircleIcon", e))(p || {});
65
- const P = Symbol("timeline register entry injection key"), q = Symbol("timeline config obj injection key"), pt = {
62
+ var y = /* @__PURE__ */ ((t) => (t.BOTTOM = "bottom", t.AFTER_FIRST = "after-first", t.BEFORE_LAST = "before-last", t))(y || {}), ve = /* @__PURE__ */ ((t) => (t.SECOND = "second", t.MINUTE = "minute", t.HOUR = "hour", t.DAY = "day", t.MONTH = "month", t.YEAR = "year", t))(ve || {}), S = /* @__PURE__ */ ((t) => (t.DEFAULT = "SquareSmallIcon", t.SUCCESS = "CheckedCircleIcon", t.CRITICAL = "CrossCircleIcon", t))(S || {}), q = /* @__PURE__ */ ((t) => (t.BLACK = "black", t.BLUE = "blue", t.GREEN = "green", t.GREY = "grey", t.ORANGE = "orange", t.RED = "red", t.YELLOW = "yellow", t))(q || {});
63
+ const P = Symbol("timeline register entry injection key"), K = Symbol("timeline config obj injection key"), fe = {
66
64
  "en-US": {
67
65
  addNote: "Add note",
68
66
  cancel: "Cancel"
69
67
  }
70
- }, bt = Y({
71
- i18n: { messages: pt },
68
+ }, pe = Y({
69
+ i18n: { messages: fe },
72
70
  name: "bento-timeline",
73
- components: { BentoButton: z, BentoButtonActions: G, BentoTextarea: X },
71
+ components: { BentoButton: z, BentoButtonActions: X, BentoTextarea: Q },
74
72
  props: {
75
73
  /**
76
74
  * If set to true, gives the possibility to manually add notes to the timeline via a textarea
@@ -98,119 +96,117 @@ const P = Symbol("timeline register entry injection key"), q = Symbol("timeline
98
96
  }
99
97
  },
100
98
  emits: ["add-timeline-note"],
101
- setup(e, { emit: t }) {
102
- const { t: i } = H(), a = o(() => i("addNote")), b = o(() => i("cancel")), m = E(), _ = (l) => {
103
- m.value = l;
104
- }, c = E(!1), v = () => {
99
+ setup(t, { emit: e }) {
100
+ const { t: i } = H(), a = r(() => i("addNote")), f = r(() => i("cancel")), l = N(), p = (o) => {
101
+ l.value = o;
102
+ }, c = N(!1), d = () => {
105
103
  c.value = !c.value;
106
- }, r = () => {
107
- t("add-timeline-note", {
108
- description: m.value,
104
+ }, n = () => {
105
+ e("add-timeline-note", {
106
+ description: l.value,
109
107
  timestamp: { date: /* @__PURE__ */ new Date() },
110
108
  type: "note"
111
- }), v();
112
- }, n = E([]), d = o(
113
- () => e.showMore && n.value.length > e.showMore.limit ? n.value.length - e.showMore.limit : null
114
- ), C = E(!1), { timegapLimit: u } = Q(e), s = o(() => {
115
- if (!e.showMore)
109
+ }), d();
110
+ }, m = N([]), u = r(
111
+ () => t.showMore && m.value.length > t.showMore.limit ? m.value.length - t.showMore.limit : null
112
+ ), C = N(!1), { timegapLimit: _ } = Z(t), s = r(() => {
113
+ if (!t.showMore)
116
114
  return null;
117
- const l = Array.from(n.value.keys());
118
- return e.showMore.placement === S.BEFORE_LAST ? [
119
- ...l.slice(0, e.showMore.limit - 1),
120
- l[l.length - 1]
121
- ] : e.showMore.placement === S.AFTER_FIRST ? [l[0], ...l.slice(-(e.showMore.limit - 1))] : l.slice(0, e.showMore.limit);
122
- }), g = o(() => {
123
- if (!e.showMore)
115
+ const o = Array.from(m.value.keys());
116
+ return t.showMore.placement === y.BEFORE_LAST ? [
117
+ ...o.slice(0, t.showMore.limit - 1),
118
+ o[o.length - 1]
119
+ ] : t.showMore.placement === y.AFTER_FIRST ? [o[0], ...o.slice(-(t.showMore.limit - 1))] : o.slice(0, t.showMore.limit);
120
+ }), b = r(() => {
121
+ if (!t.showMore)
124
122
  return null;
125
- switch (e.showMore.placement) {
126
- case S.BEFORE_LAST:
127
- return e.showMore.limit - 2;
128
- case S.AFTER_FIRST:
123
+ switch (t.showMore.placement) {
124
+ case y.BEFORE_LAST:
125
+ return t.showMore.limit - 2;
126
+ case y.AFTER_FIRST:
129
127
  return 0;
130
- case S.BOTTOM:
128
+ case y.BOTTOM:
131
129
  default:
132
- return e.showMore.limit - 1;
130
+ return t.showMore.limit - 1;
133
131
  }
134
- }), h = (l) => () => {
135
- var f;
136
- n.value = (f = n.value) == null ? void 0 : f.filter((T, I) => I !== l);
137
- }, y = ({ title: l, description: f, date: T }) => {
138
- const I = n.value.length;
139
- return n.value.push({ title: l, description: f, date: T }), { timelineEntries: n, index: I, unregisterTimelineEntry: h(I) };
140
- }, w = {
132
+ }), g = (o) => () => {
133
+ var v;
134
+ m.value = (v = m.value) == null ? void 0 : v.filter((T, h) => h !== o);
135
+ }, I = ({ title: o, description: v, date: T }) => {
136
+ const h = m.value.length;
137
+ return m.value.push({ title: o, description: v, date: T }), { timelineEntries: m, index: h, unregisterTimelineEntry: g(h) };
138
+ }, E = {
141
139
  showAll: C,
142
- showMoreIndex: g,
143
- hiddenItems: d,
140
+ showMoreIndex: b,
141
+ hiddenItems: u,
144
142
  visibleIndexes: s,
145
- timegapLimit: u
143
+ timegapLimit: _
146
144
  };
147
- return L(P, y), L(q, w), {
145
+ return A(P, I), A(K, E), {
148
146
  addNoteLabel: a,
149
- cancelLabel: b,
150
- toggleAddNote: v,
151
- updateNoteContent: _,
152
- addNoteToTimeline: r,
147
+ cancelLabel: f,
148
+ toggleAddNote: d,
149
+ updateNoteContent: p,
150
+ addNoteToTimeline: n,
153
151
  showAddNoteTextArea: c
154
152
  };
155
153
  }
156
154
  });
157
- var gt = function() {
158
- var t = this, i = t._self._c;
159
- return t._self._setupProxy, i("div", { staticClass: "b-timeline" }, [t.addNote ? i("div", { staticClass: "b-timeline__add-note-section" }, [t.showAddNoteTextArea ? t._e() : i("bento-button", { attrs: { variant: "tertiary" }, on: { click: t.toggleAddNote } }, [t._v(t._s(t.addNoteLabel))]), t.showAddNoteTextArea ? i("div", [i("bento-textarea", { attrs: { label: t.addNoteLabel, "character-limit": 150, resizable: "vertical" }, on: { input: t.updateNoteContent } }), i("bento-button-actions", { attrs: { actions: [
160
- { title: t.addNoteLabel, event: t.addNoteToTimeline },
161
- { title: t.cancelLabel, event: t.toggleAddNote }
162
- ] } })], 1) : t._e()], 1) : t._e(), i("ol", { staticClass: "b-timeline__items" }, [t._t("default")], 2)]);
163
- }, ht = [], Ct = /* @__PURE__ */ x(
164
- bt,
165
- gt,
166
- ht,
155
+ var be = function() {
156
+ var e = this, i = e._self._c;
157
+ return e._self._setupProxy, i("div", { staticClass: "b-timeline" }, [e.addNote ? i("div", { staticClass: "b-timeline__add-note-section" }, [e.showAddNoteTextArea ? e._e() : i("bento-button", { attrs: { variant: "tertiary" }, on: { click: e.toggleAddNote } }, [e._v(e._s(e.addNoteLabel))]), e.showAddNoteTextArea ? i("div", [i("bento-textarea", { attrs: { label: e.addNoteLabel, "character-limit": 150, resizable: "vertical" }, on: { input: e.updateNoteContent } }), i("bento-button-actions", { attrs: { actions: [
158
+ { title: e.addNoteLabel, event: e.addNoteToTimeline },
159
+ { title: e.cancelLabel, event: e.toggleAddNote }
160
+ ] } })], 1) : e._e()], 1) : e._e(), i("ol", { staticClass: "b-timeline__items" }, [e._t("default")], 2)]);
161
+ }, ge = [], he = /* @__PURE__ */ x(
162
+ pe,
163
+ be,
164
+ ge,
167
165
  !1,
168
166
  null,
169
167
  "5d7abc30",
170
168
  null,
171
169
  null
172
170
  );
173
- const Kt = Ct.exports;
174
- let $ = 0;
175
- const yt = {
171
+ const Pe = he.exports;
172
+ let B = 0;
173
+ const ye = {
176
174
  beforeCreate() {
177
- this.uuid = $.toString(), $ += 1;
175
+ this.uuid = B.toString(), B += 1;
178
176
  }
179
177
  };
180
- var Tt = function() {
181
- var t = this, i = t._self._c;
182
- return i("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? i("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), i("path", { attrs: { fill: "#00112C", 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" } })]);
183
- }, It = [], St = /* @__PURE__ */ x(
184
- yt,
185
- Tt,
186
- It,
178
+ var Ce = function() {
179
+ var e = this, i = e._self._c;
180
+ return i("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? i("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), i("path", { attrs: { fill: "#00112C", 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" } })]);
181
+ }, Ie = [], Ee = /* @__PURE__ */ x(
182
+ ye,
183
+ Ce,
184
+ Ie,
187
185
  !1,
188
186
  null,
189
187
  null,
190
188
  null,
191
189
  null
192
190
  );
193
- const wt = St.exports, Et = {
191
+ const Te = Ee.exports, Ne = {
194
192
  "en-US": {
195
193
  timegap: "{timegap} passed between the timeline events",
196
194
  showMore: "Show {items} more",
197
195
  showLess: "Show less"
198
196
  }
199
- }, Nt = Y({
197
+ }, we = Y({
200
198
  name: "bento-timeline-item",
201
199
  components: {
202
200
  BentoButton: z,
203
- BentoDate: tt,
204
- BentoLink: et,
205
- BentoTag: it,
206
- BentoTypography: at,
207
- BentoStructuredList: nt,
208
- BentoStructuredListItem: st,
209
- CrossCircleIcon: rt,
210
- CheckedCircleIcon: lt,
211
- SquareSmallIcon: wt
201
+ BentoDate: ee,
202
+ BentoLink: te,
203
+ BentoTag: ie,
204
+ BentoTypography: ae,
205
+ BentoStructuredList: ne,
206
+ BentoStructuredListItem: oe,
207
+ SquareSmallIcon: Te
212
208
  },
213
- i18n: { messages: Et },
209
+ i18n: { messages: Ne },
214
210
  props: {
215
211
  /**
216
212
  * Additional timestamp of the event
@@ -233,6 +229,15 @@ const wt = St.exports, Et = {
233
229
  type: String,
234
230
  default: null
235
231
  },
232
+ /**
233
+ * Modifier that changes the color of the timeline icon
234
+ * @values blue, black, green, grey, orange, red, yellow
235
+ */
236
+ status: {
237
+ type: String,
238
+ default: "black",
239
+ validator: (t) => Object.values(q).includes(t)
240
+ },
236
241
  /**
237
242
  * Tag props that will be passed down to inner tag component
238
243
  */
@@ -261,103 +266,105 @@ const wt = St.exports, Et = {
261
266
  type: {
262
267
  type: String,
263
268
  default: "milestone",
264
- validator: (e) => ["milestone", "note"].includes(e)
269
+ validator: (t) => ["milestone", "note"].includes(t)
265
270
  },
266
271
  /**
267
272
  * Variant for the timeline item
268
273
  * @values DEFAULT, SUCCESS, CRITICAL
274
+ *
275
+ * @deprecated Use "status" prop instead
269
276
  */
270
277
  variant: {
271
278
  type: String,
272
- default: p.DEFAULT,
273
- validator: (e) => Object.values(p).includes(e)
279
+ default: null,
280
+ validator: (t) => Object.values(S).includes(t)
274
281
  }
275
282
  },
276
- setup(e, { slots: t }) {
277
- const { t: i } = H(), a = o(() => e.type === "note"), b = o(
278
- () => a.value ? p.DEFAULT : e.variant
279
- ), m = o(() => ({
280
- "b-timeline-item__icon--default": e.variant === p.DEFAULT || a.value,
281
- "b-timeline-item__icon--success": e.variant === p.SUCCESS && !a.value,
282
- "b-timeline-item__icon--critical": e.variant === p.CRITICAL && !a.value
283
- })), _ = o(() => ({
284
- "b-timeline-item__title--default": e.variant === p.DEFAULT
285
- })), c = o(() => ({
283
+ setup(t, { slots: e }) {
284
+ const { t: i } = H(), a = r(() => t.type === "note"), f = r(() => t.variant === S.CRITICAL ? "red" : t.variant === S.SUCCESS ? "green" : t.status);
285
+ t.variant && se(
286
+ 'BentoTimelineItem "variant" property',
287
+ `Use the BentoTimelineItem "status" modifier instead to modify the color of the timeline icon.
288
+ <bento-timeline-item status="red" />`,
289
+ "2.0.0"
290
+ );
291
+ const l = r(() => ({
292
+ [`b-timeline-item__icon--${f.value}`]: f.value && !a.value
293
+ })), p = r(() => ({
286
294
  "b-timeline-item--note": a.value
287
295
  }));
288
- L(ot, !0);
289
- const v = D(P), { timelineEntries: r, index: n, unregisterTimelineEntry: d } = v({
290
- title: e.title,
291
- date: e.timestamp.date
296
+ A(re, !0);
297
+ const c = D(P), { timelineEntries: d, index: n, unregisterTimelineEntry: m } = c({
298
+ title: t.title,
299
+ date: t.timestamp.date
292
300
  });
293
- W(() => d());
294
- const { showAll: C, showMoreIndex: u, hiddenItems: s, visibleIndexes: g, timegapLimit: h } = D(q), y = o(() => C.value || !g.value), w = o(() => y.value ? !0 : g.value.includes(n)), l = o(() => typeof e.title == "object"), f = o(() => e.title), T = o(() => {
295
- var R;
296
- if (!h.value)
301
+ G(() => m());
302
+ const { showAll: u, showMoreIndex: C, hiddenItems: _, visibleIndexes: s, timegapLimit: b } = D(K), g = r(() => u.value || !s.value), I = r(() => g.value ? !0 : s.value.includes(n)), E = r(() => typeof t.title == "object"), o = r(() => t.title), v = r(() => {
303
+ var O;
304
+ if (!b.value)
297
305
  return null;
298
- const A = (R = r.value[n - 1]) == null ? void 0 : R.date, K = y.value || g.value.includes(n - 1);
299
- if (!A || !K)
306
+ const L = (O = d.value[n - 1]) == null ? void 0 : O.date, V = g.value || s.value.includes(n - 1);
307
+ if (!L || !V)
300
308
  return null;
301
- const { date: O } = r.value[n], Z = parseInt(
302
- j(A, O, { unit: h.value.unit }),
309
+ const { date: R } = d.value[n], W = parseInt(
310
+ $(L, R, { unit: b.value.unit }),
303
311
  10
304
312
  );
305
- return h.value.amount < Z ? j(A, O, { roundingMethod: "floor" }) : null;
306
- }), I = o(() => T.value ? i("timegap", { timegap: T.value }) : ""), V = o(() => s.value && u.value === n), J = o(() => n === r.value.length - 1);
313
+ return b.value.amount < W ? $(L, R, { roundingMethod: "floor" }) : null;
314
+ }), T = r(() => v.value ? i("timegap", { timegap: v.value }) : ""), h = r(() => _.value && C.value === n), J = r(() => n === d.value.length - 1);
307
315
  return {
308
316
  // Values
309
317
  isNoteType: a,
310
- iconConditionalClasses: m,
311
- titleConditionalClasses: _,
312
- conditionalClasses: c,
313
- displayShowMoreButton: V,
314
- showAll: C,
315
- hiddenItems: s,
316
- isVisible: w,
317
- isLinkTitle: l,
318
- linkTitleProps: f,
319
- timegap: T,
320
- timegapAriaLabel: I,
318
+ iconConditionalClasses: l,
319
+ conditionalClasses: p,
320
+ displayShowMoreButton: h,
321
+ showAll: u,
322
+ hiddenItems: _,
323
+ isVisible: I,
324
+ isLinkTitle: E,
325
+ linkTitleProps: o,
326
+ timegap: v,
327
+ timegapAriaLabel: T,
321
328
  isLastItem: J,
322
- computedIconVariant: b,
323
329
  // Methods
324
- generateUid: _t,
325
- hasSlot: vt(t),
330
+ generateUid: le,
331
+ hasSlot: me(e),
326
332
  t: i
327
333
  };
328
334
  }
329
335
  });
330
- var Mt = function() {
331
- var t = this, i = t._self._c;
332
- return t._self._setupProxy, t.isVisible ? i("li", { staticClass: "b-timeline-item", class: t.conditionalClasses }, [t.timegap ? i("div", { staticClass: "b-timeline-item__row" }, [t._m(0), i("div", { staticClass: "b-timeline-item__content" }, [i("bento-typography", { staticClass: "b-timeline-item__timegap", attrs: { "aria-label": t.timegapAriaLabel } }, [t._v(" " + t._s(t.timegap) + " ")])], 1)]) : t._e(), i("div", { staticClass: "b-timeline-item__row" }, [i("div", { staticClass: "b-timeline-item__marker", attrs: { "aria-hidden": "true" } }, [i(t.computedIconVariant, { tag: "component", staticClass: "b-timeline-item__icon", class: t.iconConditionalClasses }), t.isLastItem ? t._e() : i("div", { staticClass: "b-timeline-item__separator", attrs: { "data-testid": "last-timeline-item-separator" } })], 1), i("div", { staticClass: "b-timeline-item__content" }, [t.isNoteType ? t._e() : i("bento-typography", { staticClass: "b-timeline-item__title", class: t.titleConditionalClasses, attrs: { el: "div", variant: "body", strongest: "", role: "heading" } }, [t.isLinkTitle ? i("bento-link", t._b({ attrs: { "disable-typography": "" } }, "bento-link", t.linkTitleProps, !1), [t._v(t._s(t.linkTitleProps.title))]) : i("span", [t._v(t._s(t.title))])], 1), t.timestamp ? i("bento-typography", { staticClass: "b-timeline-item__timestamp", attrs: { el: "div", variant: "caption" } }, [i("bento-date", { attrs: { date: t.timestamp.date, format: t.timestamp.format, "disable-typography": "" } }), t._v(" " + t._s(t.timestamp.value) + " ")], 1) : t._e(), !t.isNoteType && t.additionalTimestamp ? i("bento-typography", { staticClass: "b-timeline-item__timestamp", attrs: { el: "div", variant: "caption" } }, [i("bento-date", { attrs: { date: t.additionalTimestamp.date, format: t.additionalTimestamp.format, "disable-typography": "" } }), t._v(" " + t._s(t.additionalTimestamp.value) + " ")], 1) : t._e(), t.description || t.hasSlot("default") ? i("bento-typography", { staticClass: "b-timeline-item__description", attrs: { el: "div", variant: "body" } }, [t._t("default", function() {
333
- return [t._v(t._s(t.description))];
334
- })], 2) : t._e(), !t.isNoteType && t.dataList ? i("div", { staticClass: "b-timeline-item__data-list" }, [i("bento-structured-list", t._l(t.dataList, function(a) {
335
- return i("bento-structured-list-item", { key: t.generateUid(a.label), attrs: { label: a.label } }, [i("bento-typography", { attrs: { variant: "caption" } }, [t._v(t._s(a.value))])], 1);
336
- }), 1)], 1) : t._e(), !t.isNoteType && t.tag ? i("bento-tag", t._b({ staticClass: "b-timeline-item__tag" }, "bento-tag", t.tag, !1)) : t._e()], 1)]), t.displayShowMoreButton ? i("div", { staticClass: "b-timeline-item__row" }, [t._m(1), i("div", { staticClass: "b-timeline-item__content" }, [i("bento-button", { staticClass: "b-timeline__show-more", attrs: { variant: "tertiary" }, on: { click: function(a) {
337
- t.showAll = !t.showAll;
338
- } } }, [t.showAll ? [t._v(t._s(t.t("showLess")))] : [t._v(t._s(t.t("showMore", { items: t.hiddenItems })))]], 2)], 1)]) : t._e()]) : t._e();
339
- }, At = [function() {
340
- var e = this, t = e._self._c;
341
- return e._self._setupProxy, t("div", { staticClass: "b-timeline-item__marker", attrs: { "aria-hidden": "true" } }, [t("div", { staticClass: "b-timeline-item__icon b-timeline-item__icon--timegap" }), t("div", { staticClass: "b-timeline-item__separator" })]);
336
+ var Se = function() {
337
+ var e = this, i = e._self._c;
338
+ return e._self._setupProxy, e.isVisible ? i("li", { staticClass: "b-timeline-item", class: e.conditionalClasses }, [e.timegap ? i("div", { staticClass: "b-timeline-item__row" }, [e._m(0), i("div", { staticClass: "b-timeline-item__content" }, [i("bento-typography", { staticClass: "b-timeline-item__timegap", attrs: { "aria-label": e.timegapAriaLabel } }, [e._v(" " + e._s(e.timegap) + " ")])], 1)]) : e._e(), i("div", { staticClass: "b-timeline-item__row" }, [i("div", { staticClass: "b-timeline-item__marker", attrs: { "aria-hidden": "true" } }, [i("square-small-icon", { staticClass: "b-timeline-item__icon", class: e.iconConditionalClasses }), e.isLastItem ? e._e() : i("div", { staticClass: "b-timeline-item__separator", attrs: { "data-testid": "last-timeline-item-separator" } })], 1), i("div", { staticClass: "b-timeline-item__content" }, [e.isNoteType ? e._e() : i("bento-typography", { staticClass: "b-timeline-item__title", attrs: { el: "div", variant: "body", strongest: "", role: "heading" } }, [e.isLinkTitle ? i("bento-link", e._b({ attrs: { "disable-typography": "" } }, "bento-link", e.linkTitleProps, !1), [e._v(e._s(e.linkTitleProps.title))]) : i("span", [e._v(e._s(e.title))])], 1), e.timestamp ? i("bento-typography", { staticClass: "b-timeline-item__timestamp", attrs: { el: "div", variant: "caption" } }, [i("bento-date", { attrs: { date: e.timestamp.date, format: e.timestamp.format, "disable-typography": "" } }), e._v(" " + e._s(e.timestamp.value) + " ")], 1) : e._e(), !e.isNoteType && e.additionalTimestamp ? i("bento-typography", { staticClass: "b-timeline-item__timestamp", attrs: { el: "div", variant: "caption" } }, [i("bento-date", { attrs: { date: e.additionalTimestamp.date, format: e.additionalTimestamp.format, "disable-typography": "" } }), e._v(" " + e._s(e.additionalTimestamp.value) + " ")], 1) : e._e(), e.description || e.hasSlot("default") ? i("bento-typography", { staticClass: "b-timeline-item__description", attrs: { el: "div", variant: "body" } }, [e._t("default", function() {
339
+ return [e._v(e._s(e.description))];
340
+ })], 2) : e._e(), !e.isNoteType && e.dataList ? i("div", { staticClass: "b-timeline-item__data-list" }, [i("bento-structured-list", e._l(e.dataList, function(a) {
341
+ return i("bento-structured-list-item", { key: e.generateUid(a.label), attrs: { label: a.label } }, [i("bento-typography", { attrs: { variant: "caption" } }, [e._v(e._s(a.value))])], 1);
342
+ }), 1)], 1) : e._e(), !e.isNoteType && e.tag ? i("bento-tag", e._b({ staticClass: "b-timeline-item__tag" }, "bento-tag", e.tag, !1)) : e._e()], 1)]), e.displayShowMoreButton ? i("div", { staticClass: "b-timeline-item__row" }, [e._m(1), i("div", { staticClass: "b-timeline-item__content" }, [i("bento-button", { staticClass: "b-timeline__show-more", attrs: { variant: "tertiary" }, on: { click: function(a) {
343
+ e.showAll = !e.showAll;
344
+ } } }, [e.showAll ? [e._v(e._s(e.t("showLess")))] : [e._v(e._s(e.t("showMore", { items: e.hiddenItems })))]], 2)], 1)]) : e._e()]) : e._e();
345
+ }, Me = [function() {
346
+ var t = this, e = t._self._c;
347
+ return t._self._setupProxy, e("div", { staticClass: "b-timeline-item__marker", attrs: { "aria-hidden": "true" } }, [e("div", { staticClass: "b-timeline-item__icon b-timeline-item__icon--timegap" }), e("div", { staticClass: "b-timeline-item__separator" })]);
342
348
  }, function() {
343
- var e = this, t = e._self._c;
344
- return e._self._setupProxy, t("div", { staticClass: "b-timeline-item__marker", attrs: { "aria-hidden": "true" } }, [t("div", { staticClass: "b-timeline-item__separator" })]);
345
- }], Lt = /* @__PURE__ */ x(
346
- Nt,
347
- Mt,
348
- At,
349
+ var t = this, e = t._self._c;
350
+ return t._self._setupProxy, e("div", { staticClass: "b-timeline-item__marker", attrs: { "aria-hidden": "true" } }, [e("div", { staticClass: "b-timeline-item__separator" })]);
351
+ }], Le = /* @__PURE__ */ x(
352
+ we,
353
+ Se,
354
+ Me,
349
355
  !1,
350
356
  null,
351
- "7f5f4898",
357
+ "4353df93",
352
358
  null,
353
359
  null
354
360
  );
355
- const Zt = Lt.exports;
361
+ const Ke = Le.exports;
356
362
  export {
357
- Kt as BentoTimeline,
358
- ft as BentoTimelineGapUnit,
359
- Zt as BentoTimelineItem,
360
- p as BentoTimelineItemVariant,
361
- S as BentoTimelineShowMorePlacement
363
+ Pe as BentoTimeline,
364
+ ve as BentoTimelineGapUnit,
365
+ Ke as BentoTimelineItem,
366
+ S as BentoTimelineItemVariant,
367
+ y as BentoTimelineShowMorePlacement,
368
+ q as BentoTimelineStatus
362
369
  };
363
370
  //# sourceMappingURL=timeline.js.map