@adyen/bento-vue3 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 (246) hide show
  1. package/dist/@types/packages/vue2/src/components/button/button.vue.d.ts +23 -2455
  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 +21 -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 +15 -5
  17. package/dist/@types/packages/vue2/src/components/divider/divider.keys.d.ts +1 -0
  18. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.types.d.ts +1 -1
  19. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +3 -3
  20. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +3 -3
  21. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +15 -6
  22. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +3 -3
  23. package/dist/@types/packages/vue2/src/components/dropdown/composables/useDisplayValue.types.d.ts +1 -0
  24. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +11 -1
  25. package/dist/@types/packages/vue2/src/components/empty-state/empty-state.types.d.ts +1 -0
  26. package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +3 -3
  27. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +84 -12
  28. package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.types.d.ts +3 -1
  29. package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +8 -0
  30. package/dist/@types/packages/vue2/src/components/internal/copy/copy.types.d.ts +8 -0
  31. package/dist/@types/packages/vue2/src/components/internal/copy/copy.vue.d.ts +20 -0
  32. package/dist/@types/packages/vue2/src/components/internal/copy/index.d.ts +1 -0
  33. 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
  34. 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 +51 -0
  35. 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
  36. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +9 -0
  37. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/components/listbox-single-select-category/index.d.ts +1 -0
  38. 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
  39. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/listbox-single-select.vue.d.ts +10 -0
  40. package/dist/@types/packages/vue2/src/components/internal/listbox/composables/use-multi-level-items/use-multi-level-items.d.ts +6 -0
  41. package/dist/@types/packages/vue2/src/components/internal/listbox/index.d.ts +1 -0
  42. package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +11 -2
  43. package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.types.d.ts +1 -0
  44. package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.vue.d.ts +1 -1
  45. package/dist/@types/packages/vue2/src/components/menu/components/sub-menu-item-list/sub-menu-item-list.vue.d.ts +2 -0
  46. package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +1 -0
  47. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +1 -1
  48. package/dist/@types/packages/vue2/src/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +316 -3
  49. package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +1 -1
  50. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +1 -0
  51. package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +3 -4
  52. package/dist/@types/packages/vue2/src/components/structured-list/structured-list.types.d.ts +2 -0
  53. package/dist/@types/packages/vue2/src/components/structured-list/structured-list.vue.d.ts +15 -2
  54. package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +15 -10
  55. package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +9 -0
  56. package/dist/@types/packages/vue2/src/types/elements.d.ts +2 -1
  57. package/dist/accordion.js +2 -2
  58. package/dist/action-bar.js +5 -5
  59. package/dist/alert.js +24 -24
  60. package/dist/alert.js.map +1 -1
  61. package/dist/assets/base-modal.css +1 -1
  62. package/dist/assets/button.css +1 -1
  63. package/dist/assets/checkbox.css +1 -1
  64. package/dist/assets/controls-group.css +1 -1
  65. package/dist/assets/copy.css +1 -1
  66. package/dist/assets/dropdown-default-textbox.css +1 -1
  67. package/dist/assets/dropdown.css +1 -1
  68. package/dist/assets/index.css +1 -1
  69. package/dist/assets/index10.css +1 -1
  70. package/dist/assets/index11.css +1 -1
  71. package/dist/assets/index12.css +1 -1
  72. package/dist/assets/index13.css +1 -1
  73. package/dist/assets/index14.css +1 -1
  74. package/dist/assets/index16.css +1 -1
  75. package/dist/assets/index17.css +1 -1
  76. package/dist/assets/index18.css +1 -1
  77. package/dist/assets/index19.css +1 -1
  78. package/dist/assets/index2.css +1 -1
  79. package/dist/assets/index20.css +1 -1
  80. package/dist/assets/index21.css +1 -1
  81. package/dist/assets/index22.css +1 -1
  82. package/dist/assets/index23.css +1 -1
  83. package/dist/assets/index24.css +1 -1
  84. package/dist/assets/index25.css +1 -1
  85. package/dist/assets/index26.css +1 -1
  86. package/dist/assets/index27.css +1 -1
  87. package/dist/assets/index28.css +1 -1
  88. package/dist/assets/index29.css +1 -1
  89. package/dist/assets/index3.css +1 -1
  90. package/dist/assets/index30.css +1 -1
  91. package/dist/assets/index31.css +1 -1
  92. package/dist/assets/index32.css +1 -1
  93. package/dist/assets/index33.css +1 -1
  94. package/dist/assets/index34.css +1 -1
  95. package/dist/assets/index35.css +1 -1
  96. package/dist/assets/index36.css +1 -1
  97. package/dist/assets/index37.css +1 -1
  98. package/dist/assets/index38.css +1 -1
  99. package/dist/assets/index39.css +1 -1
  100. package/dist/assets/index40.css +1 -1
  101. package/dist/assets/index41.css +1 -1
  102. package/dist/assets/index42.css +1 -1
  103. package/dist/assets/index43.css +1 -1
  104. package/dist/assets/index44.css +1 -1
  105. package/dist/assets/index45.css +1 -1
  106. package/dist/assets/index46.css +1 -1
  107. package/dist/assets/index5.css +1 -1
  108. package/dist/assets/index6.css +1 -1
  109. package/dist/assets/index7.css +1 -1
  110. package/dist/assets/index8.css +1 -1
  111. package/dist/assets/index9.css +1 -1
  112. package/dist/assets/listbox.css +1 -1
  113. package/dist/assets/loading-button.css +1 -1
  114. package/dist/avatar-image.js +1 -1
  115. package/dist/badge.js +1 -1
  116. package/dist/button.js +56 -45
  117. package/dist/button.js.map +1 -1
  118. package/dist/card.js +1 -1
  119. package/dist/checkbox.js +72 -53
  120. package/dist/checkbox.js.map +1 -1
  121. package/dist/chunks/{base-button.aa085dfa.js → base-button.dfc0e32e.js} +2 -2
  122. package/dist/chunks/{base-button.aa085dfa.js.map → base-button.dfc0e32e.js.map} +1 -1
  123. package/dist/chunks/{base-modal.a629cb32.js → base-modal.8b323292.js} +86 -86
  124. package/dist/chunks/base-modal.8b323292.js.map +1 -0
  125. package/dist/chunks/{button-actions-with-menu.f6dfb14d.js → button-actions-with-menu.044fe230.js} +3 -3
  126. package/dist/chunks/{button-actions-with-menu.f6dfb14d.js.map → button-actions-with-menu.044fe230.js.map} +1 -1
  127. package/dist/chunks/button.6ca5cd14.js +118 -0
  128. package/dist/chunks/button.6ca5cd14.js.map +1 -0
  129. package/dist/chunks/{calendar.fa7712e8.js → calendar.b3c15dcd.js} +4 -4
  130. package/dist/chunks/{calendar.fa7712e8.js.map → calendar.b3c15dcd.js.map} +1 -1
  131. package/dist/chunks/checkbox.979b1aa4.js +278 -0
  132. package/dist/chunks/checkbox.979b1aa4.js.map +1 -0
  133. package/dist/chunks/{controls-group.d6543674.js → controls-group.2f6cbb21.js} +21 -17
  134. package/dist/chunks/controls-group.2f6cbb21.js.map +1 -0
  135. package/dist/chunks/copy.0fed8f42.js +145 -0
  136. package/dist/chunks/copy.0fed8f42.js.map +1 -0
  137. package/dist/chunks/{dropdown-default-textbox.4108b289.js → dropdown-default-textbox.839fe6f7.js} +25 -25
  138. package/dist/chunks/dropdown-default-textbox.839fe6f7.js.map +1 -0
  139. package/dist/chunks/{dropdown.63de9aac.js → dropdown.014ae3e3.js} +370 -331
  140. package/dist/chunks/dropdown.014ae3e3.js.map +1 -0
  141. package/dist/chunks/{field-label.3c19a29a.js → field-label.085966f6.js} +5 -5
  142. package/dist/chunks/{field-label.3c19a29a.js.map → field-label.085966f6.js.map} +1 -1
  143. package/dist/chunks/{fixed-scroller.bced60dd.js → fixed-scroller.96019461.js} +2 -2
  144. package/dist/chunks/{fixed-scroller.bced60dd.js.map → fixed-scroller.96019461.js.map} +1 -1
  145. package/dist/chunks/{footer-actions.cefaf1e2.js → footer-actions.52d5a453.js} +3 -3
  146. package/dist/chunks/{footer-actions.cefaf1e2.js.map → footer-actions.52d5a453.js.map} +1 -1
  147. package/dist/chunks/{index.75f3672e.js → index.10c545e2.js} +2 -2
  148. package/dist/chunks/{index.75f3672e.js.map → index.10c545e2.js.map} +1 -1
  149. package/dist/chunks/{index.4d2a13e1.js → index.4e3fb264.js} +2 -2
  150. package/dist/chunks/{index.4d2a13e1.js.map → index.4e3fb264.js.map} +1 -1
  151. package/dist/chunks/{index.89dfe209.js → index.5596079e.js} +2 -2
  152. package/dist/chunks/{index.89dfe209.js.map → index.5596079e.js.map} +1 -1
  153. package/dist/chunks/index.785d9829.js +21 -0
  154. package/dist/chunks/index.785d9829.js.map +1 -0
  155. package/dist/chunks/{index.85832db5.js → index.791fdd7d.js} +3 -3
  156. package/dist/chunks/{index.85832db5.js.map → index.791fdd7d.js.map} +1 -1
  157. package/dist/chunks/{index.0ee895e0.js → index.934e5485.js} +2 -2
  158. package/dist/chunks/{index.0ee895e0.js.map → index.934e5485.js.map} +1 -1
  159. package/dist/chunks/index.9424976e.js +622 -0
  160. package/dist/chunks/index.9424976e.js.map +1 -0
  161. package/dist/chunks/index.99d2c4e5.js +168 -0
  162. package/dist/chunks/index.99d2c4e5.js.map +1 -0
  163. package/dist/chunks/{index.98174339.js → index.a875e4b3.js} +5 -5
  164. package/dist/chunks/{index.98174339.js.map → index.a875e4b3.js.map} +1 -1
  165. package/dist/chunks/{index.c6fecf1c.js → index.fd70b861.js} +28 -28
  166. package/dist/chunks/{index.c6fecf1c.js.map → index.fd70b861.js.map} +1 -1
  167. package/dist/chunks/{listbox-option-tag.b1eb32bd.js → listbox-option-tag.854fcb0d.js} +3 -3
  168. package/dist/chunks/{listbox-option-tag.b1eb32bd.js.map → listbox-option-tag.854fcb0d.js.map} +1 -1
  169. package/dist/chunks/listbox.963589af.js +1419 -0
  170. package/dist/chunks/listbox.963589af.js.map +1 -0
  171. package/dist/chunks/{loading-button.4b88e24d.js → loading-button.09fa0115.js} +19 -19
  172. package/dist/chunks/{loading-button.4b88e24d.js.map → loading-button.09fa0115.js.map} +1 -1
  173. package/dist/chunks/{tooltip.27c32d36.js → tooltip.65868eae.js} +15 -15
  174. package/dist/chunks/tooltip.65868eae.js.map +1 -0
  175. package/dist/chunks/use-has-slot.4d98bf29.js.map +1 -1
  176. package/dist/code-snippet.js +7 -7
  177. package/dist/code-snippet.js.map +1 -1
  178. package/dist/country.js +2 -2
  179. package/dist/currency.js +1 -1
  180. package/dist/data-grid.js +1287 -983
  181. package/dist/data-grid.js.map +1 -1
  182. package/dist/date-picker.js +20 -20
  183. package/dist/date-picker.js.map +1 -1
  184. package/dist/date-range-picker.js +2 -2
  185. package/dist/date.js +1 -1
  186. package/dist/divider.js +2 -10
  187. package/dist/divider.js.map +1 -1
  188. package/dist/dropdown.js +3 -3
  189. package/dist/empty-state.js +23 -23
  190. package/dist/empty-state.js.map +1 -1
  191. package/dist/filter-bar.js +553 -541
  192. package/dist/filter-bar.js.map +1 -1
  193. package/dist/focus-trap.js +1 -1
  194. package/dist/form-layout.js +2 -2
  195. package/dist/header.js +3 -3
  196. package/dist/index.js +73 -72
  197. package/dist/info-icon.js +3 -3
  198. package/dist/input-field.js +4 -4
  199. package/dist/internal.js +17 -15
  200. package/dist/link.js +2 -2
  201. package/dist/loading-indicator.js +1 -1
  202. package/dist/menu.js +1 -1
  203. package/dist/modal.js +67 -64
  204. package/dist/modal.js.map +1 -1
  205. package/dist/pagination.js +4 -4
  206. package/dist/payment-method.js +2 -2
  207. package/dist/popover.js +1 -1
  208. package/dist/popper-container.js +1 -1
  209. package/dist/radio-group.js +69 -67
  210. package/dist/radio-group.js.map +1 -1
  211. package/dist/search-bar.js +8 -8
  212. package/dist/segmented-control.js +3 -3
  213. package/dist/sidepanel.js +5 -5
  214. package/dist/status.js +2 -2
  215. package/dist/stepper.js +3 -3
  216. package/dist/structured-list.js +1 -1
  217. package/dist/summary-grid.js +3 -3
  218. package/dist/tabs.js +3 -3
  219. package/dist/tag.js +3 -3
  220. package/dist/textarea.js +173 -161
  221. package/dist/textarea.js.map +1 -1
  222. package/dist/timeline.js +244 -237
  223. package/dist/timeline.js.map +1 -1
  224. package/dist/toast.js +3 -3
  225. package/dist/toggle.js +2 -2
  226. package/dist/tutorial.js +5 -5
  227. package/dist/typography.js +1 -1
  228. package/dist/web-types.json +1 -1
  229. package/package.json +2 -2
  230. package/dist/chunks/base-modal.a629cb32.js.map +0 -1
  231. package/dist/chunks/button.82ed953e.js +0 -148
  232. package/dist/chunks/button.82ed953e.js.map +0 -1
  233. package/dist/chunks/checkbox.731dc0ab.js +0 -264
  234. package/dist/chunks/checkbox.731dc0ab.js.map +0 -1
  235. package/dist/chunks/controls-group.d6543674.js.map +0 -1
  236. package/dist/chunks/copy.330d594e.js +0 -126
  237. package/dist/chunks/copy.330d594e.js.map +0 -1
  238. package/dist/chunks/dropdown-default-textbox.4108b289.js.map +0 -1
  239. package/dist/chunks/dropdown.63de9aac.js.map +0 -1
  240. package/dist/chunks/index.73ed22a7.js +0 -594
  241. package/dist/chunks/index.73ed22a7.js.map +0 -1
  242. package/dist/chunks/index.edcaf766.js +0 -150
  243. package/dist/chunks/index.edcaf766.js.map +0 -1
  244. package/dist/chunks/listbox.ac43f8ab.js +0 -1309
  245. package/dist/chunks/listbox.ac43f8ab.js.map +0 -1
  246. package/dist/chunks/tooltip.27c32d36.js.map +0 -1
package/dist/timeline.js CHANGED
@@ -1,76 +1,74 @@
1
- import { defineComponent as ie, computed as a, ref as F, toRefs as _e, provide as z, resolveComponent as T, openBlock as t, createElementBlock as f, createBlock as S, withCtx as g, createTextVNode as N, toDisplayString as y, createCommentVNode as _, createVNode as M, createElementVNode as h, renderSlot as ne, mergeProps as H, inject as P, onUnmounted as fe, normalizeClass as Y, resolveDynamicComponent as ve, Fragment as V, renderList as pe, pushScopeId as he, popScopeId as be } from "vue";
2
- import { a as oe } from "./chunks/button.82ed953e.js";
3
- import { BentoTextarea as ge } from "./textarea.js";
1
+ import { defineComponent as ie, computed as d, ref as D, toRefs as _e, provide as q, resolveComponent as N, openBlock as i, createElementBlock as f, createBlock as S, withCtx as y, createTextVNode as T, toDisplayString as I, createCommentVNode as _, createVNode as w, createElementVNode as b, renderSlot as ne, mergeProps as z, inject as J, onUnmounted as fe, normalizeClass as P, Fragment as Y, renderList as pe, pushScopeId as ve, popScopeId as he } from "vue";
2
+ import { a as oe } from "./chunks/button.6ca5cd14.js";
3
+ import { BentoTextarea as be } from "./textarea.js";
4
4
  import { u as ae } from "./chunks/i18n.6c402773.js";
5
- import { BentoButtonActions as ye } from "./button.js";
6
- import { _ as q } from "./chunks/_plugin-vue_export-helper.dad06003.js";
7
- import { B as Ie } from "./chunks/index.0ee895e0.js";
8
- import { BentoLink as Te } from "./link.js";
9
- import { BentoTag as Se } from "./tag.js";
10
- import { B as Ne } from "./chunks/index.75f3672e.js";
11
- import { B as Ce, a as we, S as Ee } from "./chunks/index.edcaf766.js";
12
- import { C as Me } from "./chunks/checkmark-circle-fill.c45a999d.js";
13
- import { C as ke } from "./chunks/cross-circle-fill.1abec1a2.js";
14
- import { r as Le, e as Ae, t as B, g as Z } from "./chunks/index.f55fdc32.js";
15
- import { c as $e, a as Oe } from "./chunks/index.86453263.js";
16
- import { g as De } from "./chunks/unique-id.a2a2b458.js";
17
- import { u as Re } from "./chunks/use-has-slot.4d98bf29.js";
18
- import "./assets/index46.css";
19
- var Q = 1e3 * 60, U = 60 * 24, W = U * 30, X = U * 365;
20
- function G(e, p) {
21
- var s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
5
+ import { BentoButtonActions as ge } from "./button.js";
6
+ import { _ as H } from "./chunks/_plugin-vue_export-helper.dad06003.js";
7
+ import { B as ye } from "./chunks/index.934e5485.js";
8
+ import { BentoLink as Ie } from "./link.js";
9
+ import { BentoTag as Ne } from "./tag.js";
10
+ import { B as Ee, d as Te } from "./chunks/index.10c545e2.js";
11
+ import { B as we, a as Se, S as Ce } from "./chunks/index.99d2c4e5.js";
12
+ import { g as Me } from "./chunks/unique-id.a2a2b458.js";
13
+ import { u as ke } from "./chunks/use-has-slot.4d98bf29.js";
14
+ import { r as Le, e as Ae, t as B, g as W } from "./chunks/index.f55fdc32.js";
15
+ import { c as Oe, a as $e } from "./chunks/index.86453263.js";
16
+ import "./assets/index45.css";
17
+ var Z = 1e3 * 60, j = 60 * 24, G = j * 30, Q = j * 365;
18
+ function X(e, p) {
19
+ var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
22
20
  Le(2, arguments);
23
- var n = s.locale || Ae;
24
- if (!n.formatDistance)
21
+ var a = o.locale || Ae;
22
+ if (!a.formatDistance)
25
23
  throw new RangeError("locale must contain localize.formatDistance property");
26
- var I = $e(e, p);
27
- if (isNaN(I))
24
+ var g = Oe(e, p);
25
+ if (isNaN(g))
28
26
  throw new RangeError("Invalid time value");
29
- var l = Oe(s);
30
- l.addSuffix = !!s.addSuffix, l.comparison = I;
31
- var r, u;
32
- I > 0 ? (r = B(p), u = B(e)) : (r = B(e), u = B(p));
33
- var v = s.roundingMethod == null ? "round" : String(s.roundingMethod), m;
34
- if (v === "floor")
35
- m = Math.floor;
36
- else if (v === "ceil")
37
- m = Math.ceil;
38
- else if (v === "round")
39
- m = Math.round;
27
+ var s = $e(o);
28
+ s.addSuffix = !!o.addSuffix, s.comparison = g;
29
+ var l, u;
30
+ g > 0 ? (l = B(p), u = B(e)) : (l = B(e), u = B(p));
31
+ var c = o.roundingMethod == null ? "round" : String(o.roundingMethod), n;
32
+ if (c === "floor")
33
+ n = Math.floor;
34
+ else if (c === "ceil")
35
+ n = Math.ceil;
36
+ else if (c === "round")
37
+ n = Math.round;
40
38
  else
41
39
  throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");
42
- var i = u.getTime() - r.getTime(), b = i / Q, C = Z(u) - Z(r), c = (i - C) / Q, o;
43
- if (s.unit == null ? b < 1 ? o = "second" : b < 60 ? o = "minute" : b < U ? o = "hour" : c < W ? o = "day" : c < X ? o = "month" : o = "year" : o = String(s.unit), o === "second") {
44
- var k = m(i / 1e3);
45
- return n.formatDistance("xSeconds", k, l);
46
- } else if (o === "minute") {
47
- var L = m(b);
48
- return n.formatDistance("xMinutes", L, l);
49
- } else if (o === "hour") {
50
- var A = m(b / 60);
51
- return n.formatDistance("xHours", A, l);
52
- } else if (o === "day") {
53
- var R = m(c / U);
54
- return n.formatDistance("xDays", R, l);
55
- } else if (o === "month") {
56
- var d = m(c / W);
57
- return d === 12 && s.unit !== "month" ? n.formatDistance("xYears", 1, l) : n.formatDistance("xMonths", d, l);
58
- } else if (o === "year") {
59
- var w = m(c / X);
60
- return n.formatDistance("xYears", w, l);
40
+ var m = u.getTime() - l.getTime(), v = m / Z, C = W(u) - W(l), h = (m - C) / Z, t;
41
+ if (o.unit == null ? v < 1 ? t = "second" : v < 60 ? t = "minute" : v < j ? t = "hour" : h < G ? t = "day" : h < Q ? t = "month" : t = "year" : t = String(o.unit), t === "second") {
42
+ var M = n(m / 1e3);
43
+ return a.formatDistance("xSeconds", M, s);
44
+ } else if (t === "minute") {
45
+ var k = n(v);
46
+ return a.formatDistance("xMinutes", k, s);
47
+ } else if (t === "hour") {
48
+ var O = n(v / 60);
49
+ return a.formatDistance("xHours", O, s);
50
+ } else if (t === "day") {
51
+ var $ = n(h / j);
52
+ return a.formatDistance("xDays", $, s);
53
+ } else if (t === "month") {
54
+ var r = n(h / G);
55
+ return r === 12 && o.unit !== "month" ? a.formatDistance("xYears", 1, s) : a.formatDistance("xMonths", r, s);
56
+ } else if (t === "year") {
57
+ var E = n(h / Q);
58
+ return a.formatDistance("xYears", E, s);
61
59
  }
62
60
  throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'");
63
61
  }
64
- var D = /* @__PURE__ */ ((e) => (e.BOTTOM = "bottom", e.AFTER_FIRST = "after-first", e.BEFORE_LAST = "before-last", e))(D || {}), Fe = /* @__PURE__ */ ((e) => (e.SECOND = "second", e.MINUTE = "minute", e.HOUR = "hour", e.DAY = "day", e.MONTH = "month", e.YEAR = "year", e))(Fe || {}), E = /* @__PURE__ */ ((e) => (e.DEFAULT = "SquareSmallIcon", e.SUCCESS = "CheckedCircleIcon", e.CRITICAL = "CrossCircleIcon", e))(E || {});
65
- const se = Symbol("timeline register entry injection key"), le = Symbol("timeline config obj injection key"), x = {
62
+ var A = /* @__PURE__ */ ((e) => (e.BOTTOM = "bottom", e.AFTER_FIRST = "after-first", e.BEFORE_LAST = "before-last", e))(A || {}), Re = /* @__PURE__ */ ((e) => (e.SECOND = "second", e.MINUTE = "minute", e.HOUR = "hour", e.DAY = "day", e.MONTH = "month", e.YEAR = "year", e))(Re || {}), U = /* @__PURE__ */ ((e) => (e.DEFAULT = "SquareSmallIcon", e.SUCCESS = "CheckedCircleIcon", e.CRITICAL = "CrossCircleIcon", e))(U || {}), se = /* @__PURE__ */ ((e) => (e.BLACK = "black", e.BLUE = "blue", e.GREEN = "green", e.GREY = "grey", e.ORANGE = "orange", e.RED = "red", e.YELLOW = "yellow", e))(se || {});
63
+ const le = Symbol("timeline register entry injection key"), re = Symbol("timeline config obj injection key"), x = {
66
64
  "en-US": {
67
65
  addNote: "Add note",
68
66
  cancel: "Cancel"
69
67
  }
70
- }, Be = ie({
68
+ }, De = ie({
71
69
  i18n: { messages: x },
72
70
  name: "bento-timeline",
73
- components: { BentoButton: oe, BentoButtonActions: ye, BentoTextarea: ge },
71
+ components: { BentoButton: oe, BentoButtonActions: ge, BentoTextarea: be },
74
72
  props: {
75
73
  /**
76
74
  * If set to true, gives the possibility to manually add notes to the timeline via a textarea
@@ -99,87 +97,87 @@ const se = Symbol("timeline register entry injection key"), le = Symbol("timelin
99
97
  },
100
98
  emits: ["add-timeline-note"],
101
99
  setup(e, { emit: p }) {
102
- const { t: s } = ae({ messages: x }), n = a(() => s("addNote")), I = a(() => s("cancel")), l = F(), r = (d) => {
103
- l.value = d;
104
- }, u = F(!1), v = () => {
100
+ const { t: o } = ae({ messages: x }), a = d(() => o("addNote")), g = d(() => o("cancel")), s = D(), l = (r) => {
101
+ s.value = r;
102
+ }, u = D(!1), c = () => {
105
103
  u.value = !u.value;
106
- }, m = () => {
104
+ }, n = () => {
107
105
  p("add-timeline-note", {
108
- description: l.value,
106
+ description: s.value,
109
107
  timestamp: { date: /* @__PURE__ */ new Date() },
110
108
  type: "note"
111
- }), v();
112
- }, i = F([]), b = a(
113
- () => e.showMore && i.value.length > e.showMore.limit ? i.value.length - e.showMore.limit : null
114
- ), C = F(!1), { timegapLimit: c } = _e(e), o = a(() => {
109
+ }), c();
110
+ }, m = D([]), v = d(
111
+ () => e.showMore && m.value.length > e.showMore.limit ? m.value.length - e.showMore.limit : null
112
+ ), C = D(!1), { timegapLimit: h } = _e(e), t = d(() => {
115
113
  if (!e.showMore)
116
114
  return null;
117
- const d = Array.from(i.value.keys());
118
- return e.showMore.placement === D.BEFORE_LAST ? [
119
- ...d.slice(0, e.showMore.limit - 1),
120
- d[d.length - 1]
121
- ] : e.showMore.placement === D.AFTER_FIRST ? [d[0], ...d.slice(-(e.showMore.limit - 1))] : d.slice(0, e.showMore.limit);
122
- }), k = a(() => {
115
+ const r = Array.from(m.value.keys());
116
+ return e.showMore.placement === A.BEFORE_LAST ? [
117
+ ...r.slice(0, e.showMore.limit - 1),
118
+ r[r.length - 1]
119
+ ] : e.showMore.placement === A.AFTER_FIRST ? [r[0], ...r.slice(-(e.showMore.limit - 1))] : r.slice(0, e.showMore.limit);
120
+ }), M = d(() => {
123
121
  if (!e.showMore)
124
122
  return null;
125
123
  switch (e.showMore.placement) {
126
- case D.BEFORE_LAST:
124
+ case A.BEFORE_LAST:
127
125
  return e.showMore.limit - 2;
128
- case D.AFTER_FIRST:
126
+ case A.AFTER_FIRST:
129
127
  return 0;
130
- case D.BOTTOM:
128
+ case A.BOTTOM:
131
129
  default:
132
130
  return e.showMore.limit - 1;
133
131
  }
134
- }), L = (d) => () => {
135
- var w;
136
- i.value = (w = i.value) == null ? void 0 : w.filter(($, O) => O !== d);
137
- }, A = ({ title: d, description: w, date: $ }) => {
138
- const O = i.value.length;
139
- return i.value.push({ title: d, description: w, date: $ }), { timelineEntries: i, index: O, unregisterTimelineEntry: L(O) };
140
- }, R = {
132
+ }), k = (r) => () => {
133
+ var E;
134
+ m.value = (E = m.value) == null ? void 0 : E.filter((R, L) => L !== r);
135
+ }, O = ({ title: r, description: E, date: R }) => {
136
+ const L = m.value.length;
137
+ return m.value.push({ title: r, description: E, date: R }), { timelineEntries: m, index: L, unregisterTimelineEntry: k(L) };
138
+ }, $ = {
141
139
  showAll: C,
142
- showMoreIndex: k,
143
- hiddenItems: b,
144
- visibleIndexes: o,
145
- timegapLimit: c
140
+ showMoreIndex: M,
141
+ hiddenItems: v,
142
+ visibleIndexes: t,
143
+ timegapLimit: h
146
144
  };
147
- return z(se, A), z(le, R), {
148
- addNoteLabel: n,
149
- cancelLabel: I,
150
- toggleAddNote: v,
151
- updateNoteContent: r,
152
- addNoteToTimeline: m,
145
+ return q(le, O), q(re, $), {
146
+ addNoteLabel: a,
147
+ cancelLabel: g,
148
+ toggleAddNote: c,
149
+ updateNoteContent: l,
150
+ addNoteToTimeline: n,
153
151
  showAddNoteTextArea: u
154
152
  };
155
153
  }
156
154
  });
157
- const Ue = { class: "b-timeline" }, je = {
155
+ const Be = { class: "b-timeline" }, Ue = {
158
156
  key: 0,
159
157
  class: "b-timeline__add-note-section"
160
- }, Ye = { key: 1 }, Ve = { class: "b-timeline__items" };
161
- function ze(e, p, s, n, I, l) {
162
- const r = T("bento-button"), u = T("bento-textarea"), v = T("bento-button-actions");
163
- return t(), f("div", Ue, [
164
- e.addNote ? (t(), f("div", je, [
165
- e.showAddNoteTextArea ? _("", !0) : (t(), S(r, {
158
+ }, je = { key: 1 }, Fe = { class: "b-timeline__items" };
159
+ function Ye(e, p, o, a, g, s) {
160
+ const l = N("bento-button"), u = N("bento-textarea"), c = N("bento-button-actions");
161
+ return i(), f("div", Be, [
162
+ e.addNote ? (i(), f("div", Ue, [
163
+ e.showAddNoteTextArea ? _("", !0) : (i(), S(l, {
166
164
  key: 0,
167
165
  variant: "tertiary",
168
166
  onClick: e.toggleAddNote
169
167
  }, {
170
- default: g(() => [
171
- N(y(e.addNoteLabel), 1)
168
+ default: y(() => [
169
+ T(I(e.addNoteLabel), 1)
172
170
  ]),
173
171
  _: 1
174
172
  }, 8, ["onClick"])),
175
- e.showAddNoteTextArea ? (t(), f("div", Ye, [
176
- M(u, {
173
+ e.showAddNoteTextArea ? (i(), f("div", je, [
174
+ w(u, {
177
175
  label: e.addNoteLabel,
178
176
  "character-limit": 150,
179
177
  resizable: "vertical",
180
178
  onInput: e.updateNoteContent
181
179
  }, null, 8, ["label", "onInput"]),
182
- M(v, {
180
+ w(c, {
183
181
  actions: [
184
182
  { title: e.addNoteLabel, event: e.addNoteToTimeline },
185
183
  { title: e.cancelLabel, event: e.toggleAddNote }
@@ -187,52 +185,50 @@ function ze(e, p, s, n, I, l) {
187
185
  }, null, 8, ["actions"])
188
186
  ])) : _("", !0)
189
187
  ])) : _("", !0),
190
- h("ol", Ve, [
188
+ b("ol", Fe, [
191
189
  ne(e.$slots, "default", {}, void 0, !0)
192
190
  ])
193
191
  ]);
194
192
  }
195
- const Ct = /* @__PURE__ */ q(Be, [["render", ze], ["__scopeId", "data-v-f844f908"]]);
193
+ const It = /* @__PURE__ */ H(De, [["render", Ye], ["__scopeId", "data-v-f844f908"]]);
196
194
  let ee = 0;
197
- const He = {
195
+ const qe = {
198
196
  beforeCreate() {
199
197
  this.uuid = ee.toString(), ee += 1;
200
198
  }
201
- }, qe = { key: 0 }, Je = /* @__PURE__ */ h("path", {
199
+ }, ze = { key: 0 }, He = /* @__PURE__ */ b("path", {
202
200
  fill: "#00112C",
203
201
  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"
204
202
  }, null, -1);
205
- function Ke(e, p, s, n, I, l) {
206
- return t(), f("svg", H({ role: "img" }, e.$attrs, {
203
+ function Ve(e, p, o, a, g, s) {
204
+ return i(), f("svg", z({ role: "img" }, e.$attrs, {
207
205
  class: "ui-assets-icons-16",
208
206
  xmlns: "http://www.w3.org/2000/svg",
209
207
  width: "16",
210
208
  height: "16",
211
209
  fill: "none"
212
210
  }), [
213
- e.$attrs["svg-title"] ? (t(), f("title", qe, y(e.$attrs["svg-title"]), 1)) : _("", !0),
214
- Je
211
+ e.$attrs["svg-title"] ? (i(), f("title", ze, I(e.$attrs["svg-title"]), 1)) : _("", !0),
212
+ He
215
213
  ], 16);
216
214
  }
217
- const Pe = /* @__PURE__ */ q(He, [["render", Ke]]), te = {
215
+ const Ke = /* @__PURE__ */ H(qe, [["render", Ve]]), te = {
218
216
  "en-US": {
219
217
  timegap: "{timegap} passed between the timeline events",
220
218
  showMore: "Show {items} more",
221
219
  showLess: "Show less"
222
220
  }
223
- }, Ze = ie({
221
+ }, Je = ie({
224
222
  name: "bento-timeline-item",
225
223
  components: {
226
224
  BentoButton: oe,
227
- BentoDate: Ie,
228
- BentoLink: Te,
229
- BentoTag: Se,
230
- BentoTypography: Ne,
231
- BentoStructuredList: Ce,
232
- BentoStructuredListItem: we,
233
- CrossCircleIcon: ke,
234
- CheckedCircleIcon: Me,
235
- SquareSmallIcon: Pe
225
+ BentoDate: ye,
226
+ BentoLink: Ie,
227
+ BentoTag: Ne,
228
+ BentoTypography: Ee,
229
+ BentoStructuredList: we,
230
+ BentoStructuredListItem: Se,
231
+ SquareSmallIcon: Ke
236
232
  },
237
233
  i18n: { messages: te },
238
234
  props: {
@@ -257,6 +253,15 @@ const Pe = /* @__PURE__ */ q(He, [["render", Ke]]), te = {
257
253
  type: String,
258
254
  default: null
259
255
  },
256
+ /**
257
+ * Modifier that changes the color of the timeline icon
258
+ * @values blue, black, green, grey, orange, red, yellow
259
+ */
260
+ status: {
261
+ type: String,
262
+ default: "black",
263
+ validator: (e) => Object.values(se).includes(e)
264
+ },
260
265
  /**
261
266
  * Tag props that will be passed down to inner tag component
262
267
  */
@@ -290,197 +295,198 @@ const Pe = /* @__PURE__ */ q(He, [["render", Ke]]), te = {
290
295
  /**
291
296
  * Variant for the timeline item
292
297
  * @values DEFAULT, SUCCESS, CRITICAL
298
+ *
299
+ * @deprecated Use "status" prop instead
293
300
  */
294
301
  variant: {
295
302
  type: String,
296
- default: E.DEFAULT,
297
- validator: (e) => Object.values(E).includes(e)
303
+ default: null,
304
+ validator: (e) => Object.values(U).includes(e)
298
305
  }
299
306
  },
300
307
  setup(e, { slots: p }) {
301
- const { t: s } = ae({ messages: te }), n = a(() => e.type === "note"), I = a(
302
- () => n.value ? E.DEFAULT : e.variant
303
- ), l = a(() => ({
304
- "b-timeline-item__icon--default": e.variant === E.DEFAULT || n.value,
305
- "b-timeline-item__icon--success": e.variant === E.SUCCESS && !n.value,
306
- "b-timeline-item__icon--critical": e.variant === E.CRITICAL && !n.value
307
- })), r = a(() => ({
308
- "b-timeline-item__title--default": e.variant === E.DEFAULT
309
- })), u = a(() => ({
310
- "b-timeline-item--note": n.value
308
+ const { t: o } = ae({ messages: te }), a = d(() => e.type === "note"), g = d(() => e.variant === U.CRITICAL ? "red" : e.variant === U.SUCCESS ? "green" : e.status);
309
+ e.variant && Te(
310
+ 'BentoTimelineItem "variant" property',
311
+ `Use the BentoTimelineItem "status" modifier instead to modify the color of the timeline icon.
312
+ <bento-timeline-item status="red" />`,
313
+ "2.0.0"
314
+ );
315
+ const s = d(() => ({
316
+ [`b-timeline-item__icon--${g.value}`]: g.value && !a.value
317
+ })), l = d(() => ({
318
+ "b-timeline-item--note": a.value
311
319
  }));
312
- z(Ee, !0);
313
- const v = P(se), { timelineEntries: m, index: i, unregisterTimelineEntry: b } = v({
320
+ q(Ce, !0);
321
+ const u = J(le), { timelineEntries: c, index: n, unregisterTimelineEntry: m } = u({
314
322
  title: e.title,
315
323
  date: e.timestamp.date
316
324
  });
317
- fe(() => b());
318
- const { showAll: C, showMoreIndex: c, hiddenItems: o, visibleIndexes: k, timegapLimit: L } = P(le), A = a(() => C.value || !k.value), R = a(() => A.value ? !0 : k.value.includes(i)), d = a(() => typeof e.title == "object"), w = a(() => e.title), $ = a(() => {
325
+ fe(() => m());
326
+ const { showAll: v, showMoreIndex: C, hiddenItems: h, visibleIndexes: t, timegapLimit: M } = J(re), k = d(() => v.value || !t.value), O = d(() => k.value ? !0 : t.value.includes(n)), $ = d(() => typeof e.title == "object"), r = d(() => e.title), E = d(() => {
319
327
  var K;
320
- if (!L.value)
328
+ if (!M.value)
321
329
  return null;
322
- const j = (K = m.value[i - 1]) == null ? void 0 : K.date, ue = A.value || k.value.includes(i - 1);
323
- if (!j || !ue)
330
+ const F = (K = c.value[n - 1]) == null ? void 0 : K.date, ue = k.value || t.value.includes(n - 1);
331
+ if (!F || !ue)
324
332
  return null;
325
- const { date: J } = m.value[i], ce = parseInt(
326
- G(j, J, { unit: L.value.unit }),
333
+ const { date: V } = c.value[n], ce = parseInt(
334
+ X(F, V, { unit: M.value.unit }),
327
335
  10
328
336
  );
329
- return L.value.amount < ce ? G(j, J, { roundingMethod: "floor" }) : null;
330
- }), O = a(() => $.value ? s("timegap", { timegap: $.value }) : ""), me = a(() => o.value && c.value === i), de = a(() => i === m.value.length - 1);
337
+ return M.value.amount < ce ? X(F, V, { roundingMethod: "floor" }) : null;
338
+ }), R = d(() => E.value ? o("timegap", { timegap: E.value }) : ""), L = d(() => h.value && C.value === n), me = d(() => n === c.value.length - 1);
331
339
  return {
332
340
  // Values
333
- isNoteType: n,
334
- iconConditionalClasses: l,
335
- titleConditionalClasses: r,
336
- conditionalClasses: u,
337
- displayShowMoreButton: me,
338
- showAll: C,
339
- hiddenItems: o,
340
- isVisible: R,
341
- isLinkTitle: d,
342
- linkTitleProps: w,
343
- timegap: $,
344
- timegapAriaLabel: O,
345
- isLastItem: de,
346
- computedIconVariant: I,
341
+ isNoteType: a,
342
+ iconConditionalClasses: s,
343
+ conditionalClasses: l,
344
+ displayShowMoreButton: L,
345
+ showAll: v,
346
+ hiddenItems: h,
347
+ isVisible: O,
348
+ isLinkTitle: $,
349
+ linkTitleProps: r,
350
+ timegap: E,
351
+ timegapAriaLabel: R,
352
+ isLastItem: me,
347
353
  // Methods
348
- generateUid: De,
349
- hasSlot: Re(p),
350
- t: s
354
+ generateUid: Me,
355
+ hasSlot: ke(p),
356
+ t: o
351
357
  };
352
358
  }
353
359
  });
354
- const re = (e) => (he("data-v-a49f9329"), e = e(), be(), e), Qe = {
360
+ const de = (e) => (ve("data-v-b88ece41"), e = e(), he(), e), Pe = {
355
361
  key: 0,
356
362
  class: "b-timeline-item__row"
357
- }, We = /* @__PURE__ */ re(() => /* @__PURE__ */ h("div", {
363
+ }, We = /* @__PURE__ */ de(() => /* @__PURE__ */ b("div", {
358
364
  class: "b-timeline-item__marker",
359
365
  "aria-hidden": "true"
360
366
  }, [
361
- /* @__PURE__ */ h("div", { class: "b-timeline-item__icon b-timeline-item__icon--timegap" }),
362
- /* @__PURE__ */ h("div", { class: "b-timeline-item__separator" })
363
- ], -1)), Xe = { class: "b-timeline-item__content" }, Ge = { class: "b-timeline-item__row" }, xe = {
367
+ /* @__PURE__ */ b("div", { class: "b-timeline-item__icon b-timeline-item__icon--timegap" }),
368
+ /* @__PURE__ */ b("div", { class: "b-timeline-item__separator" })
369
+ ], -1)), Ze = { class: "b-timeline-item__content" }, Ge = { class: "b-timeline-item__row" }, Qe = {
364
370
  class: "b-timeline-item__marker",
365
371
  "aria-hidden": "true"
366
- }, et = {
372
+ }, Xe = {
367
373
  key: 0,
368
374
  class: "b-timeline-item__separator",
369
375
  "data-testid": "last-timeline-item-separator"
370
- }, tt = { class: "b-timeline-item__content" }, it = { key: 1 }, nt = {
376
+ }, xe = { class: "b-timeline-item__content" }, et = { key: 1 }, tt = {
371
377
  key: 4,
372
378
  class: "b-timeline-item__data-list"
373
- }, ot = {
379
+ }, it = {
374
380
  key: 1,
375
381
  class: "b-timeline-item__row"
376
- }, at = /* @__PURE__ */ re(() => /* @__PURE__ */ h("div", {
382
+ }, nt = /* @__PURE__ */ de(() => /* @__PURE__ */ b("div", {
377
383
  class: "b-timeline-item__marker",
378
384
  "aria-hidden": "true"
379
385
  }, [
380
- /* @__PURE__ */ h("div", { class: "b-timeline-item__separator" })
381
- ], -1)), st = { class: "b-timeline-item__content" };
382
- function lt(e, p, s, n, I, l) {
383
- const r = T("bento-typography"), u = T("bento-link"), v = T("bento-date"), m = T("bento-structured-list-item"), i = T("bento-structured-list"), b = T("bento-tag"), C = T("bento-button");
384
- return e.isVisible ? (t(), f("li", {
386
+ /* @__PURE__ */ b("div", { class: "b-timeline-item__separator" })
387
+ ], -1)), ot = { class: "b-timeline-item__content" };
388
+ function at(e, p, o, a, g, s) {
389
+ const l = N("bento-typography"), u = N("square-small-icon"), c = N("bento-link"), n = N("bento-date"), m = N("bento-structured-list-item"), v = N("bento-structured-list"), C = N("bento-tag"), h = N("bento-button");
390
+ return e.isVisible ? (i(), f("li", {
385
391
  key: 0,
386
- class: Y(["b-timeline-item", e.conditionalClasses])
392
+ class: P(["b-timeline-item", e.conditionalClasses])
387
393
  }, [
388
- e.timegap ? (t(), f("div", Qe, [
394
+ e.timegap ? (i(), f("div", Pe, [
389
395
  We,
390
- h("div", Xe, [
391
- M(r, {
396
+ b("div", Ze, [
397
+ w(l, {
392
398
  class: "b-timeline-item__timegap",
393
399
  "aria-label": e.timegapAriaLabel
394
400
  }, {
395
- default: g(() => [
396
- N(y(e.timegap), 1)
401
+ default: y(() => [
402
+ T(I(e.timegap), 1)
397
403
  ]),
398
404
  _: 1
399
405
  }, 8, ["aria-label"])
400
406
  ])
401
407
  ])) : _("", !0),
402
- h("div", Ge, [
403
- h("div", xe, [
404
- (t(), S(ve(e.computedIconVariant), {
405
- class: Y(["b-timeline-item__icon", e.iconConditionalClasses])
406
- }, null, 8, ["class"])),
407
- e.isLastItem ? _("", !0) : (t(), f("div", et))
408
+ b("div", Ge, [
409
+ b("div", Qe, [
410
+ w(u, {
411
+ class: P(["b-timeline-item__icon", e.iconConditionalClasses])
412
+ }, null, 8, ["class"]),
413
+ e.isLastItem ? _("", !0) : (i(), f("div", Xe))
408
414
  ]),
409
- h("div", tt, [
410
- e.isNoteType ? _("", !0) : (t(), S(r, {
415
+ b("div", xe, [
416
+ e.isNoteType ? _("", !0) : (i(), S(l, {
411
417
  key: 0,
412
418
  el: "div",
413
419
  variant: "body",
414
420
  strongest: "",
415
- class: Y(["b-timeline-item__title", e.titleConditionalClasses]),
421
+ class: "b-timeline-item__title",
416
422
  role: "heading"
417
423
  }, {
418
- default: g(() => [
419
- e.isLinkTitle ? (t(), S(u, H({ key: 0 }, e.linkTitleProps, { "disable-typography": "" }), {
420
- default: g(() => [
421
- N(y(e.linkTitleProps.title), 1)
424
+ default: y(() => [
425
+ e.isLinkTitle ? (i(), S(c, z({ key: 0 }, e.linkTitleProps, { "disable-typography": "" }), {
426
+ default: y(() => [
427
+ T(I(e.linkTitleProps.title), 1)
422
428
  ]),
423
429
  _: 1
424
- }, 16)) : (t(), f("span", it, y(e.title), 1))
430
+ }, 16)) : (i(), f("span", et, I(e.title), 1))
425
431
  ]),
426
432
  _: 1
427
- }, 8, ["class"])),
428
- e.timestamp ? (t(), S(r, {
433
+ })),
434
+ e.timestamp ? (i(), S(l, {
429
435
  key: 1,
430
436
  class: "b-timeline-item__timestamp",
431
437
  el: "div",
432
438
  variant: "caption"
433
439
  }, {
434
- default: g(() => [
435
- M(v, {
440
+ default: y(() => [
441
+ w(n, {
436
442
  date: e.timestamp.date,
437
443
  format: e.timestamp.format,
438
444
  "disable-typography": ""
439
445
  }, null, 8, ["date", "format"]),
440
- N(" " + y(e.timestamp.value), 1)
446
+ T(" " + I(e.timestamp.value), 1)
441
447
  ]),
442
448
  _: 1
443
449
  })) : _("", !0),
444
- !e.isNoteType && e.additionalTimestamp ? (t(), S(r, {
450
+ !e.isNoteType && e.additionalTimestamp ? (i(), S(l, {
445
451
  key: 2,
446
452
  class: "b-timeline-item__timestamp",
447
453
  el: "div",
448
454
  variant: "caption"
449
455
  }, {
450
- default: g(() => [
451
- M(v, {
456
+ default: y(() => [
457
+ w(n, {
452
458
  date: e.additionalTimestamp.date,
453
459
  format: e.additionalTimestamp.format,
454
460
  "disable-typography": ""
455
461
  }, null, 8, ["date", "format"]),
456
- N(" " + y(e.additionalTimestamp.value), 1)
462
+ T(" " + I(e.additionalTimestamp.value), 1)
457
463
  ]),
458
464
  _: 1
459
465
  })) : _("", !0),
460
- e.description || e.hasSlot("default") ? (t(), S(r, {
466
+ e.description || e.hasSlot("default") ? (i(), S(l, {
461
467
  key: 3,
462
468
  el: "div",
463
469
  variant: "body",
464
470
  class: "b-timeline-item__description"
465
471
  }, {
466
- default: g(() => [
472
+ default: y(() => [
467
473
  ne(e.$slots, "default", {}, () => [
468
- N(y(e.description), 1)
474
+ T(I(e.description), 1)
469
475
  ], !0)
470
476
  ]),
471
477
  _: 3
472
478
  })) : _("", !0),
473
- !e.isNoteType && e.dataList ? (t(), f("div", nt, [
474
- M(i, null, {
475
- default: g(() => [
476
- (t(!0), f(V, null, pe(e.dataList, (c) => (t(), S(m, {
477
- key: e.generateUid(c.label),
478
- label: c.label
479
+ !e.isNoteType && e.dataList ? (i(), f("div", tt, [
480
+ w(v, null, {
481
+ default: y(() => [
482
+ (i(!0), f(Y, null, pe(e.dataList, (t) => (i(), S(m, {
483
+ key: e.generateUid(t.label),
484
+ label: t.label
479
485
  }, {
480
- default: g(() => [
481
- M(r, { variant: "caption" }, {
482
- default: g(() => [
483
- N(y(c.value), 1)
486
+ default: y(() => [
487
+ w(l, { variant: "caption" }, {
488
+ default: y(() => [
489
+ T(I(t.value), 1)
484
490
  ]),
485
491
  _: 2
486
492
  }, 1024)
@@ -491,22 +497,22 @@ function lt(e, p, s, n, I, l) {
491
497
  _: 1
492
498
  })
493
499
  ])) : _("", !0),
494
- !e.isNoteType && e.tag ? (t(), S(b, H({ key: 5 }, e.tag, { class: "b-timeline-item__tag" }), null, 16)) : _("", !0)
500
+ !e.isNoteType && e.tag ? (i(), S(C, z({ key: 5 }, e.tag, { class: "b-timeline-item__tag" }), null, 16)) : _("", !0)
495
501
  ])
496
502
  ]),
497
- e.displayShowMoreButton ? (t(), f("div", ot, [
498
- at,
499
- h("div", st, [
500
- M(C, {
503
+ e.displayShowMoreButton ? (i(), f("div", it, [
504
+ nt,
505
+ b("div", ot, [
506
+ w(h, {
501
507
  class: "b-timeline__show-more",
502
508
  variant: "tertiary",
503
- onClick: p[0] || (p[0] = (c) => e.showAll = !e.showAll)
509
+ onClick: p[0] || (p[0] = (t) => e.showAll = !e.showAll)
504
510
  }, {
505
- default: g(() => [
506
- e.showAll ? (t(), f(V, { key: 1 }, [
507
- N(y(e.t("showLess")), 1)
508
- ], 64)) : (t(), f(V, { key: 0 }, [
509
- N(y(e.t("showMore", { items: e.hiddenItems })), 1)
511
+ default: y(() => [
512
+ e.showAll ? (i(), f(Y, { key: 1 }, [
513
+ T(I(e.t("showLess")), 1)
514
+ ], 64)) : (i(), f(Y, { key: 0 }, [
515
+ T(I(e.t("showMore", { items: e.hiddenItems })), 1)
510
516
  ], 64))
511
517
  ]),
512
518
  _: 1
@@ -515,12 +521,13 @@ function lt(e, p, s, n, I, l) {
515
521
  ])) : _("", !0)
516
522
  ], 2)) : _("", !0);
517
523
  }
518
- const wt = /* @__PURE__ */ q(Ze, [["render", lt], ["__scopeId", "data-v-a49f9329"]]);
524
+ const Nt = /* @__PURE__ */ H(Je, [["render", at], ["__scopeId", "data-v-b88ece41"]]);
519
525
  export {
520
- Ct as BentoTimeline,
521
- Fe as BentoTimelineGapUnit,
522
- wt as BentoTimelineItem,
523
- E as BentoTimelineItemVariant,
524
- D as BentoTimelineShowMorePlacement
526
+ It as BentoTimeline,
527
+ Re as BentoTimelineGapUnit,
528
+ Nt as BentoTimelineItem,
529
+ U as BentoTimelineItemVariant,
530
+ A as BentoTimelineShowMorePlacement,
531
+ se as BentoTimelineStatus
525
532
  };
526
533
  //# sourceMappingURL=timeline.js.map