@adyen/bento-vue3 1.8.0 → 1.9.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 (224) hide show
  1. package/dist/@types/packages/vue2/src/components/data-grid/composables/useKeyboardNavigator/useKeyboardNavigator.d.ts +6 -2
  2. package/dist/@types/packages/vue2/src/components/data-grid/composables/useScroller/useScroller.d.ts +6 -0
  3. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +23 -422
  4. package/dist/@types/packages/vue2/src/components/divider/divider.vue.d.ts +1 -5
  5. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +10 -0
  6. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +12 -0
  7. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +1 -0
  8. package/dist/@types/packages/vue2/src/components/input-field/input-field.types.d.ts +1 -3
  9. package/dist/@types/packages/vue2/src/components/internal/field-label/field-label.vue.d.ts +9 -0
  10. package/dist/accordion.js +2 -2
  11. package/dist/action-bar.js +4 -4
  12. package/dist/alert.js +58 -59
  13. package/dist/alert.js.map +1 -1
  14. package/dist/assets/base-modal.css +1 -1
  15. package/dist/assets/checkbox.css +1 -1
  16. package/dist/assets/copy.css +1 -1
  17. package/dist/assets/cross.css +1 -1
  18. package/dist/assets/dropdown-default-textbox.css +1 -1
  19. package/dist/assets/dropdown.css +1 -1
  20. package/dist/assets/field-label.css +1 -1
  21. package/dist/assets/index10.css +1 -1
  22. package/dist/assets/index11.css +1 -1
  23. package/dist/assets/index12.css +1 -1
  24. package/dist/assets/index13.css +1 -1
  25. package/dist/assets/index14.css +1 -1
  26. package/dist/assets/index15.css +1 -1
  27. package/dist/assets/index16.css +1 -1
  28. package/dist/assets/index17.css +1 -1
  29. package/dist/assets/index18.css +1 -1
  30. package/dist/assets/index19.css +1 -1
  31. package/dist/assets/index2.css +1 -1
  32. package/dist/assets/index20.css +1 -1
  33. package/dist/assets/index21.css +1 -1
  34. package/dist/assets/index22.css +1 -1
  35. package/dist/assets/index23.css +1 -1
  36. package/dist/assets/index24.css +1 -1
  37. package/dist/assets/index25.css +1 -1
  38. package/dist/assets/index26.css +1 -1
  39. package/dist/assets/index27.css +1 -1
  40. package/dist/assets/index28.css +1 -1
  41. package/dist/assets/index29.css +1 -1
  42. package/dist/assets/index3.css +1 -1
  43. package/dist/assets/index30.css +1 -1
  44. package/dist/assets/index31.css +1 -1
  45. package/dist/assets/index32.css +1 -1
  46. package/dist/assets/index33.css +1 -1
  47. package/dist/assets/index34.css +1 -1
  48. package/dist/assets/index35.css +1 -1
  49. package/dist/assets/index36.css +1 -1
  50. package/dist/assets/index37.css +1 -1
  51. package/dist/assets/index38.css +1 -1
  52. package/dist/assets/index4.css +1 -1
  53. package/dist/assets/index40.css +1 -1
  54. package/dist/assets/index41.css +1 -1
  55. package/dist/assets/index42.css +1 -1
  56. package/dist/assets/index43.css +1 -1
  57. package/dist/assets/index44.css +1 -1
  58. package/dist/assets/index45.css +1 -1
  59. package/dist/assets/index46.css +1 -1
  60. package/dist/assets/index5.css +1 -1
  61. package/dist/assets/index6.css +1 -1
  62. package/dist/assets/index7.css +1 -1
  63. package/dist/assets/index8.css +1 -1
  64. package/dist/assets/index9.css +1 -1
  65. package/dist/assets/listbox.css +1 -1
  66. package/dist/avatar-image.js +1 -1
  67. package/dist/button.js +3 -3
  68. package/dist/card.js +2 -2
  69. package/dist/checkbox.js +5 -5
  70. package/dist/chunks/arrow-left.81a91b8f.js +29 -0
  71. package/dist/chunks/arrow-left.81a91b8f.js.map +1 -0
  72. package/dist/chunks/{base-modal.3dcf8376.js → base-modal.a629cb32.js} +3 -3
  73. package/dist/chunks/{base-modal.3dcf8376.js.map → base-modal.a629cb32.js.map} +1 -1
  74. package/dist/chunks/{button-actions-with-menu.3f52ea2d.js → button-actions-with-menu.f6dfb14d.js} +3 -3
  75. package/dist/chunks/{button-actions-with-menu.3f52ea2d.js.map → button-actions-with-menu.f6dfb14d.js.map} +1 -1
  76. package/dist/chunks/{calendar.d4ab387d.js → calendar.fa7712e8.js} +2 -2
  77. package/dist/chunks/{calendar.d4ab387d.js.map → calendar.fa7712e8.js.map} +1 -1
  78. package/dist/chunks/{checkbox.03c4b0fe.js → checkbox.731dc0ab.js} +71 -72
  79. package/dist/chunks/checkbox.731dc0ab.js.map +1 -0
  80. package/dist/chunks/checkmark-circle-fill.c45a999d.js +44 -0
  81. package/dist/chunks/checkmark-circle-fill.c45a999d.js.map +1 -0
  82. package/dist/chunks/checkmark-small.c79220d9.js +29 -0
  83. package/dist/chunks/checkmark-small.c79220d9.js.map +1 -0
  84. package/dist/chunks/checkmark.eb3c7a06.js +29 -0
  85. package/dist/chunks/checkmark.eb3c7a06.js.map +1 -0
  86. package/dist/chunks/chevron-left.4ee92950.js +52 -0
  87. package/dist/chunks/chevron-left.4ee92950.js.map +1 -0
  88. package/dist/chunks/chevron-up.46afb34c.js +52 -0
  89. package/dist/chunks/chevron-up.46afb34c.js.map +1 -0
  90. package/dist/chunks/{controls-group.807b5fb0.js → controls-group.d6543674.js} +2 -2
  91. package/dist/chunks/{controls-group.807b5fb0.js.map → controls-group.d6543674.js.map} +1 -1
  92. package/dist/chunks/{copy.28bd4298.js → copy.330d594e.js} +36 -37
  93. package/dist/chunks/copy.330d594e.js.map +1 -0
  94. package/dist/chunks/cross-circle-fill.1abec1a2.js +44 -0
  95. package/dist/chunks/cross-circle-fill.1abec1a2.js.map +1 -0
  96. package/dist/chunks/cross.26509efc.js +29 -0
  97. package/dist/chunks/cross.26509efc.js.map +1 -0
  98. package/dist/chunks/{dropdown-default-textbox.74c4584a.js → dropdown-default-textbox.4108b289.js} +63 -58
  99. package/dist/chunks/{dropdown-default-textbox.74c4584a.js.map → dropdown-default-textbox.4108b289.js.map} +1 -1
  100. package/dist/chunks/{dropdown.502e1f5c.js → dropdown.63de9aac.js} +209 -201
  101. package/dist/chunks/dropdown.63de9aac.js.map +1 -0
  102. package/dist/chunks/field-label.3c19a29a.js +146 -0
  103. package/dist/chunks/field-label.3c19a29a.js.map +1 -0
  104. package/dist/chunks/{fixed-scroller.92bb77a6.js → fixed-scroller.bced60dd.js} +2 -2
  105. package/dist/chunks/{fixed-scroller.92bb77a6.js.map → fixed-scroller.bced60dd.js.map} +1 -1
  106. package/dist/chunks/{index.cf0d3be3.js → index.4d2a13e1.js} +2 -2
  107. package/dist/chunks/{index.cf0d3be3.js.map → index.4d2a13e1.js.map} +1 -1
  108. package/dist/chunks/{index.d2542c6a.js → index.73ed22a7.js} +145 -150
  109. package/dist/chunks/index.73ed22a7.js.map +1 -0
  110. package/dist/chunks/{index.7262642e.js → index.85832db5.js} +3 -3
  111. package/dist/chunks/{index.7262642e.js.map → index.85832db5.js.map} +1 -1
  112. package/dist/chunks/{index.abb2a1d5.js → index.89dfe209.js} +2 -2
  113. package/dist/chunks/{index.abb2a1d5.js.map → index.89dfe209.js.map} +1 -1
  114. package/dist/chunks/{index.726e2f3c.js → index.98174339.js} +4 -4
  115. package/dist/chunks/{index.726e2f3c.js.map → index.98174339.js.map} +1 -1
  116. package/dist/chunks/{index.e9156fe3.js → index.c6fecf1c.js} +7 -7
  117. package/dist/chunks/{index.e9156fe3.js.map → index.c6fecf1c.js.map} +1 -1
  118. package/dist/chunks/{index.b043371e.js → index.edcaf766.js} +5 -5
  119. package/dist/chunks/{index.b043371e.js.map → index.edcaf766.js.map} +1 -1
  120. package/dist/chunks/info-filled.e591599f.js +67 -0
  121. package/dist/chunks/info-filled.e591599f.js.map +1 -0
  122. package/dist/chunks/{listbox-option-tag.5b00c85f.js → listbox-option-tag.b1eb32bd.js} +2 -2
  123. package/dist/chunks/{listbox-option-tag.5b00c85f.js.map → listbox-option-tag.b1eb32bd.js.map} +1 -1
  124. package/dist/chunks/{listbox.d07c24e6.js → listbox.ac43f8ab.js} +39 -36
  125. package/dist/chunks/{listbox.d07c24e6.js.map → listbox.ac43f8ab.js.map} +1 -1
  126. package/dist/chunks/{loading-button.ad7cfaee.js → loading-button.4b88e24d.js} +3 -3
  127. package/dist/chunks/{loading-button.ad7cfaee.js.map → loading-button.4b88e24d.js.map} +1 -1
  128. package/dist/chunks/refresh.bd60f6a8.js +29 -0
  129. package/dist/chunks/refresh.bd60f6a8.js.map +1 -0
  130. package/dist/chunks/search.ade93bda.js +44 -0
  131. package/dist/chunks/search.ade93bda.js.map +1 -0
  132. package/dist/chunks/{tooltip.054d2eb6.js → tooltip.27c32d36.js} +2 -2
  133. package/dist/chunks/{tooltip.054d2eb6.js.map → tooltip.27c32d36.js.map} +1 -1
  134. package/dist/code-snippet.js +425 -428
  135. package/dist/code-snippet.js.map +1 -1
  136. package/dist/country.js +1 -1
  137. package/dist/data-grid.js +1080 -1140
  138. package/dist/data-grid.js.map +1 -1
  139. package/dist/date-picker.js +6 -6
  140. package/dist/date-range-picker.js +2 -2
  141. package/dist/divider.js +9 -26
  142. package/dist/divider.js.map +1 -1
  143. package/dist/dropdown.js +3 -3
  144. package/dist/empty-state.js +1 -1
  145. package/dist/filter-bar.js +1035 -836
  146. package/dist/filter-bar.js.map +1 -1
  147. package/dist/focus-trap.js +1 -1
  148. package/dist/form-layout.js +1 -1
  149. package/dist/header.js +2 -2
  150. package/dist/index.js +12 -12
  151. package/dist/info-icon.js +38 -39
  152. package/dist/info-icon.js.map +1 -1
  153. package/dist/input-field.js +105 -107
  154. package/dist/input-field.js.map +1 -1
  155. package/dist/internal.js +7 -7
  156. package/dist/link.js +1 -1
  157. package/dist/loading-indicator.js +1 -1
  158. package/dist/menu.js +1 -1
  159. package/dist/modal.js +1 -1
  160. package/dist/pagination.js +149 -157
  161. package/dist/pagination.js.map +1 -1
  162. package/dist/payment-method.js +2 -2
  163. package/dist/payment-method.js.map +1 -1
  164. package/dist/popover.js +1 -1
  165. package/dist/popper-container.js +1 -1
  166. package/dist/radio-group.js +3 -3
  167. package/dist/search-bar.js +4 -4
  168. package/dist/segmented-control.js +3 -3
  169. package/dist/sidepanel.js +4 -4
  170. package/dist/status.js +1 -1
  171. package/dist/stepper.js +78 -79
  172. package/dist/stepper.js.map +1 -1
  173. package/dist/structured-list.js +1 -1
  174. package/dist/summary-grid.js +2 -2
  175. package/dist/tabs.js +2 -2
  176. package/dist/tag.js +2 -2
  177. package/dist/textarea.js +46 -47
  178. package/dist/textarea.js.map +1 -1
  179. package/dist/timeline.js +92 -93
  180. package/dist/timeline.js.map +1 -1
  181. package/dist/toast.js +2 -2
  182. package/dist/toggle.js +2 -2
  183. package/dist/tutorial.js +86 -87
  184. package/dist/tutorial.js.map +1 -1
  185. package/dist/web-types.json +1 -1
  186. package/package.json +4 -4
  187. package/dist/assets/arrow-left.css +0 -1
  188. package/dist/assets/checkmark-circle-fill.css +0 -1
  189. package/dist/assets/checkmark-small.css +0 -1
  190. package/dist/assets/checkmark.css +0 -1
  191. package/dist/assets/chevron-left.css +0 -1
  192. package/dist/assets/chevron-up.css +0 -1
  193. package/dist/assets/cross-circle-fill.css +0 -1
  194. package/dist/assets/info-filled.css +0 -1
  195. package/dist/assets/refresh.css +0 -1
  196. package/dist/assets/search.css +0 -1
  197. package/dist/chunks/arrow-left.cdbcc128.js +0 -30
  198. package/dist/chunks/arrow-left.cdbcc128.js.map +0 -1
  199. package/dist/chunks/checkbox.03c4b0fe.js.map +0 -1
  200. package/dist/chunks/checkmark-circle-fill.e6b84561.js +0 -45
  201. package/dist/chunks/checkmark-circle-fill.e6b84561.js.map +0 -1
  202. package/dist/chunks/checkmark-small.3e93a119.js +0 -30
  203. package/dist/chunks/checkmark-small.3e93a119.js.map +0 -1
  204. package/dist/chunks/checkmark.83e4f1e0.js +0 -30
  205. package/dist/chunks/checkmark.83e4f1e0.js.map +0 -1
  206. package/dist/chunks/chevron-left.2fd6b083.js +0 -54
  207. package/dist/chunks/chevron-left.2fd6b083.js.map +0 -1
  208. package/dist/chunks/chevron-up.9bf21068.js +0 -54
  209. package/dist/chunks/chevron-up.9bf21068.js.map +0 -1
  210. package/dist/chunks/copy.28bd4298.js.map +0 -1
  211. package/dist/chunks/cross-circle-fill.0feb37b3.js +0 -45
  212. package/dist/chunks/cross-circle-fill.0feb37b3.js.map +0 -1
  213. package/dist/chunks/cross.5c36a670.js +0 -30
  214. package/dist/chunks/cross.5c36a670.js.map +0 -1
  215. package/dist/chunks/dropdown.502e1f5c.js.map +0 -1
  216. package/dist/chunks/field-label.61679178.js +0 -132
  217. package/dist/chunks/field-label.61679178.js.map +0 -1
  218. package/dist/chunks/index.d2542c6a.js.map +0 -1
  219. package/dist/chunks/info-filled.514a2db6.js +0 -69
  220. package/dist/chunks/info-filled.514a2db6.js.map +0 -1
  221. package/dist/chunks/refresh.c38c9eee.js +0 -30
  222. package/dist/chunks/refresh.c38c9eee.js.map +0 -1
  223. package/dist/chunks/search.d18f9657.js +0 -45
  224. package/dist/chunks/search.d18f9657.js.map +0 -1
package/dist/timeline.js CHANGED
@@ -1,21 +1,21 @@
1
- import { defineComponent as ie, computed as a, ref as F, toRefs as ve, 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, pushScopeId as oe, popScopeId as ae, inject as P, onUnmounted as pe, normalizeClass as Y, resolveDynamicComponent as he, Fragment as V, renderList as be } from "vue";
2
- import { a as se } from "./chunks/button.82ed953e.js";
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
3
  import { BentoTextarea as ge } from "./textarea.js";
4
- import { u as le } from "./chunks/i18n.6c402773.js";
4
+ import { u as ae } from "./chunks/i18n.6c402773.js";
5
5
  import { BentoButtonActions as ye } from "./button.js";
6
6
  import { _ as q } from "./chunks/_plugin-vue_export-helper.dad06003.js";
7
7
  import { B as Ie } from "./chunks/index.0ee895e0.js";
8
8
  import { BentoLink as Te } from "./link.js";
9
9
  import { BentoTag as Se } from "./tag.js";
10
10
  import { B as Ne } from "./chunks/index.75f3672e.js";
11
- import { B as we, a as Ce, S as Ee } from "./chunks/index.b043371e.js";
12
- import { C as Me } from "./chunks/checkmark-circle-fill.e6b84561.js";
13
- import { C as ke } from "./chunks/cross-circle-fill.0feb37b3.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
14
  import { r as Le, e as Ae, t as B, g as Z } from "./chunks/index.f55fdc32.js";
15
15
  import { c as $e, a as Oe } from "./chunks/index.86453263.js";
16
16
  import { g as De } from "./chunks/unique-id.a2a2b458.js";
17
17
  import { u as Re } from "./chunks/use-has-slot.4d98bf29.js";
18
- import "./assets/index44.css";
18
+ import "./assets/index46.css";
19
19
  var Q = 1e3 * 60, U = 60 * 24, W = U * 30, X = U * 365;
20
20
  function G(e, p) {
21
21
  var s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
@@ -30,39 +30,39 @@ function G(e, p) {
30
30
  l.addSuffix = !!s.addSuffix, l.comparison = I;
31
31
  var r, u;
32
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), d;
33
+ var v = s.roundingMethod == null ? "round" : String(s.roundingMethod), m;
34
34
  if (v === "floor")
35
- d = Math.floor;
35
+ m = Math.floor;
36
36
  else if (v === "ceil")
37
- d = Math.ceil;
37
+ m = Math.ceil;
38
38
  else if (v === "round")
39
- d = Math.round;
39
+ m = Math.round;
40
40
  else
41
41
  throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");
42
- var i = u.getTime() - r.getTime(), b = i / Q, w = Z(u) - Z(r), c = (i - w) / Q, o;
42
+ var i = u.getTime() - r.getTime(), b = i / Q, C = Z(u) - Z(r), c = (i - C) / Q, o;
43
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 = d(i / 1e3);
44
+ var k = m(i / 1e3);
45
45
  return n.formatDistance("xSeconds", k, l);
46
46
  } else if (o === "minute") {
47
- var L = d(b);
47
+ var L = m(b);
48
48
  return n.formatDistance("xMinutes", L, l);
49
49
  } else if (o === "hour") {
50
- var A = d(b / 60);
50
+ var A = m(b / 60);
51
51
  return n.formatDistance("xHours", A, l);
52
52
  } else if (o === "day") {
53
- var R = d(c / U);
53
+ var R = m(c / U);
54
54
  return n.formatDistance("xDays", R, l);
55
55
  } else if (o === "month") {
56
- var m = d(c / W);
57
- return m === 12 && s.unit !== "month" ? n.formatDistance("xYears", 1, l) : n.formatDistance("xMonths", m, l);
56
+ var d = m(c / W);
57
+ return d === 12 && s.unit !== "month" ? n.formatDistance("xYears", 1, l) : n.formatDistance("xMonths", d, l);
58
58
  } else if (o === "year") {
59
- var C = d(c / X);
60
- return n.formatDistance("xYears", C, l);
59
+ var w = m(c / X);
60
+ return n.formatDistance("xYears", w, l);
61
61
  }
62
62
  throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'");
63
63
  }
64
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 re = Symbol("timeline register entry injection key"), de = Symbol("timeline config obj injection key"), x = {
65
+ const se = Symbol("timeline register entry injection key"), le = Symbol("timeline config obj injection key"), x = {
66
66
  "en-US": {
67
67
  addNote: "Add note",
68
68
  cancel: "Cancel"
@@ -70,7 +70,7 @@ const re = Symbol("timeline register entry injection key"), de = Symbol("timelin
70
70
  }, Be = ie({
71
71
  i18n: { messages: x },
72
72
  name: "bento-timeline",
73
- components: { BentoButton: se, BentoButtonActions: ye, BentoTextarea: ge },
73
+ components: { BentoButton: oe, BentoButtonActions: ye, BentoTextarea: ge },
74
74
  props: {
75
75
  /**
76
76
  * If set to true, gives the possibility to manually add notes to the timeline via a textarea
@@ -99,11 +99,11 @@ const re = Symbol("timeline register entry injection key"), de = Symbol("timelin
99
99
  },
100
100
  emits: ["add-timeline-note"],
101
101
  setup(e, { emit: p }) {
102
- const { t: s } = le({ messages: x }), n = a(() => s("addNote")), I = a(() => s("cancel")), l = F(), r = (m) => {
103
- l.value = m;
102
+ const { t: s } = ae({ messages: x }), n = a(() => s("addNote")), I = a(() => s("cancel")), l = F(), r = (d) => {
103
+ l.value = d;
104
104
  }, u = F(!1), v = () => {
105
105
  u.value = !u.value;
106
- }, d = () => {
106
+ }, m = () => {
107
107
  p("add-timeline-note", {
108
108
  description: l.value,
109
109
  timestamp: { date: /* @__PURE__ */ new Date() },
@@ -111,14 +111,14 @@ const re = Symbol("timeline register entry injection key"), de = Symbol("timelin
111
111
  }), v();
112
112
  }, i = F([]), b = a(
113
113
  () => e.showMore && i.value.length > e.showMore.limit ? i.value.length - e.showMore.limit : null
114
- ), w = F(!1), { timegapLimit: c } = ve(e), o = a(() => {
114
+ ), C = F(!1), { timegapLimit: c } = _e(e), o = a(() => {
115
115
  if (!e.showMore)
116
116
  return null;
117
- const m = Array.from(i.value.keys());
117
+ const d = Array.from(i.value.keys());
118
118
  return e.showMore.placement === D.BEFORE_LAST ? [
119
- ...m.slice(0, e.showMore.limit - 1),
120
- m[m.length - 1]
121
- ] : e.showMore.placement === D.AFTER_FIRST ? [m[0], ...m.slice(-(e.showMore.limit - 1))] : m.slice(0, e.showMore.limit);
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
122
  }), k = a(() => {
123
123
  if (!e.showMore)
124
124
  return null;
@@ -131,25 +131,25 @@ const re = Symbol("timeline register entry injection key"), de = Symbol("timelin
131
131
  default:
132
132
  return e.showMore.limit - 1;
133
133
  }
134
- }), L = (m) => () => {
135
- var C;
136
- i.value = (C = i.value) == null ? void 0 : C.filter(($, O) => O !== m);
137
- }, A = ({ title: m, description: C, date: $ }) => {
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
138
  const O = i.value.length;
139
- return i.value.push({ title: m, description: C, date: $ }), { timelineEntries: i, index: O, unregisterTimelineEntry: L(O) };
139
+ return i.value.push({ title: d, description: w, date: $ }), { timelineEntries: i, index: O, unregisterTimelineEntry: L(O) };
140
140
  }, R = {
141
- showAll: w,
141
+ showAll: C,
142
142
  showMoreIndex: k,
143
143
  hiddenItems: b,
144
144
  visibleIndexes: o,
145
145
  timegapLimit: c
146
146
  };
147
- return z(re, A), z(de, R), {
147
+ return z(se, A), z(le, R), {
148
148
  addNoteLabel: n,
149
149
  cancelLabel: I,
150
150
  toggleAddNote: v,
151
151
  updateNoteContent: r,
152
- addNoteToTimeline: d,
152
+ addNoteToTimeline: m,
153
153
  showAddNoteTextArea: u
154
154
  };
155
155
  }
@@ -198,42 +198,41 @@ const He = {
198
198
  beforeCreate() {
199
199
  this.uuid = ee.toString(), ee += 1;
200
200
  }
201
- }, qe = (e) => (oe("data-v-f702de38"), e = e(), ae(), e), Je = { key: 0 }, Ke = /* @__PURE__ */ qe(() => /* @__PURE__ */ h("path", {
201
+ }, qe = { key: 0 }, Je = /* @__PURE__ */ h("path", {
202
202
  fill: "#00112C",
203
- "fill-rule": "evenodd",
204
- 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",
205
- "clip-rule": "evenodd"
206
- }, null, -1));
207
- function Pe(e, p, s, n, I, l) {
203
+ 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
+ }, null, -1);
205
+ function Ke(e, p, s, n, I, l) {
208
206
  return t(), f("svg", H({ role: "img" }, e.$attrs, {
207
+ class: "ui-assets-icons-16",
209
208
  xmlns: "http://www.w3.org/2000/svg",
210
209
  width: "16",
211
210
  height: "16",
212
211
  fill: "none"
213
212
  }), [
214
- e.$attrs["svg-title"] ? (t(), f("title", Je, y(e.$attrs["svg-title"]), 1)) : _("", !0),
215
- Ke
213
+ e.$attrs["svg-title"] ? (t(), f("title", qe, y(e.$attrs["svg-title"]), 1)) : _("", !0),
214
+ Je
216
215
  ], 16);
217
216
  }
218
- const Ze = /* @__PURE__ */ q(He, [["render", Pe], ["__scopeId", "data-v-f702de38"]]), te = {
217
+ const Pe = /* @__PURE__ */ q(He, [["render", Ke]]), te = {
219
218
  "en-US": {
220
219
  timegap: "{timegap} passed between the timeline events",
221
220
  showMore: "Show {items} more",
222
221
  showLess: "Show less"
223
222
  }
224
- }, Qe = ie({
223
+ }, Ze = ie({
225
224
  name: "bento-timeline-item",
226
225
  components: {
227
- BentoButton: se,
226
+ BentoButton: oe,
228
227
  BentoDate: Ie,
229
228
  BentoLink: Te,
230
229
  BentoTag: Se,
231
230
  BentoTypography: Ne,
232
- BentoStructuredList: we,
233
- BentoStructuredListItem: Ce,
231
+ BentoStructuredList: Ce,
232
+ BentoStructuredListItem: we,
234
233
  CrossCircleIcon: ke,
235
234
  CheckedCircleIcon: Me,
236
- SquareSmallIcon: Ze
235
+ SquareSmallIcon: Pe
237
236
  },
238
237
  i18n: { messages: te },
239
238
  props: {
@@ -299,7 +298,7 @@ const Ze = /* @__PURE__ */ q(He, [["render", Pe], ["__scopeId", "data-v-f702de38
299
298
  }
300
299
  },
301
300
  setup(e, { slots: p }) {
302
- const { t: s } = le({ messages: te }), n = a(() => e.type === "note"), I = a(
301
+ const { t: s } = ae({ messages: te }), n = a(() => e.type === "note"), I = a(
303
302
  () => n.value ? E.DEFAULT : e.variant
304
303
  ), l = a(() => ({
305
304
  "b-timeline-item__icon--default": e.variant === E.DEFAULT || n.value,
@@ -311,39 +310,39 @@ const Ze = /* @__PURE__ */ q(He, [["render", Pe], ["__scopeId", "data-v-f702de38
311
310
  "b-timeline-item--note": n.value
312
311
  }));
313
312
  z(Ee, !0);
314
- const v = P(re), { timelineEntries: d, index: i, unregisterTimelineEntry: b } = v({
313
+ const v = P(se), { timelineEntries: m, index: i, unregisterTimelineEntry: b } = v({
315
314
  title: e.title,
316
315
  date: e.timestamp.date
317
316
  });
318
- pe(() => b());
319
- const { showAll: w, showMoreIndex: c, hiddenItems: o, visibleIndexes: k, timegapLimit: L } = P(de), A = a(() => w.value || !k.value), R = a(() => A.value ? !0 : k.value.includes(i)), m = a(() => typeof e.title == "object"), C = a(() => e.title), $ = a(() => {
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(() => {
320
319
  var K;
321
320
  if (!L.value)
322
321
  return null;
323
- const j = (K = d.value[i - 1]) == null ? void 0 : K.date, _e = A.value || k.value.includes(i - 1);
324
- if (!j || !_e)
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)
325
324
  return null;
326
- const { date: J } = d.value[i], fe = parseInt(
325
+ const { date: J } = m.value[i], ce = parseInt(
327
326
  G(j, J, { unit: L.value.unit }),
328
327
  10
329
328
  );
330
- return L.value.amount < fe ? G(j, J, { roundingMethod: "floor" }) : null;
331
- }), O = a(() => $.value ? s("timegap", { timegap: $.value }) : ""), ue = a(() => o.value && c.value === i), ce = a(() => i === d.value.length - 1);
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);
332
331
  return {
333
332
  // Values
334
333
  isNoteType: n,
335
334
  iconConditionalClasses: l,
336
335
  titleConditionalClasses: r,
337
336
  conditionalClasses: u,
338
- displayShowMoreButton: ue,
339
- showAll: w,
337
+ displayShowMoreButton: me,
338
+ showAll: C,
340
339
  hiddenItems: o,
341
340
  isVisible: R,
342
- isLinkTitle: m,
343
- linkTitleProps: C,
341
+ isLinkTitle: d,
342
+ linkTitleProps: w,
344
343
  timegap: $,
345
344
  timegapAriaLabel: O,
346
- isLastItem: ce,
345
+ isLastItem: de,
347
346
  computedIconVariant: I,
348
347
  // Methods
349
348
  generateUid: De,
@@ -352,43 +351,43 @@ const Ze = /* @__PURE__ */ q(He, [["render", Pe], ["__scopeId", "data-v-f702de38
352
351
  };
353
352
  }
354
353
  });
355
- const me = (e) => (oe("data-v-a49f9329"), e = e(), ae(), e), We = {
354
+ const re = (e) => (he("data-v-a49f9329"), e = e(), be(), e), Qe = {
356
355
  key: 0,
357
356
  class: "b-timeline-item__row"
358
- }, Xe = /* @__PURE__ */ me(() => /* @__PURE__ */ h("div", {
357
+ }, We = /* @__PURE__ */ re(() => /* @__PURE__ */ h("div", {
359
358
  class: "b-timeline-item__marker",
360
359
  "aria-hidden": "true"
361
360
  }, [
362
361
  /* @__PURE__ */ h("div", { class: "b-timeline-item__icon b-timeline-item__icon--timegap" }),
363
362
  /* @__PURE__ */ h("div", { class: "b-timeline-item__separator" })
364
- ], -1)), Ge = { class: "b-timeline-item__content" }, xe = { class: "b-timeline-item__row" }, et = {
363
+ ], -1)), Xe = { class: "b-timeline-item__content" }, Ge = { class: "b-timeline-item__row" }, xe = {
365
364
  class: "b-timeline-item__marker",
366
365
  "aria-hidden": "true"
367
- }, tt = {
366
+ }, et = {
368
367
  key: 0,
369
368
  class: "b-timeline-item__separator",
370
369
  "data-testid": "last-timeline-item-separator"
371
- }, it = { class: "b-timeline-item__content" }, nt = { key: 1 }, ot = {
370
+ }, tt = { class: "b-timeline-item__content" }, it = { key: 1 }, nt = {
372
371
  key: 4,
373
372
  class: "b-timeline-item__data-list"
374
- }, at = {
373
+ }, ot = {
375
374
  key: 1,
376
375
  class: "b-timeline-item__row"
377
- }, st = /* @__PURE__ */ me(() => /* @__PURE__ */ h("div", {
376
+ }, at = /* @__PURE__ */ re(() => /* @__PURE__ */ h("div", {
378
377
  class: "b-timeline-item__marker",
379
378
  "aria-hidden": "true"
380
379
  }, [
381
380
  /* @__PURE__ */ h("div", { class: "b-timeline-item__separator" })
382
- ], -1)), lt = { class: "b-timeline-item__content" };
383
- function rt(e, p, s, n, I, l) {
384
- const r = T("bento-typography"), u = T("bento-link"), v = T("bento-date"), d = T("bento-structured-list-item"), i = T("bento-structured-list"), b = T("bento-tag"), w = T("bento-button");
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");
385
384
  return e.isVisible ? (t(), f("li", {
386
385
  key: 0,
387
386
  class: Y(["b-timeline-item", e.conditionalClasses])
388
387
  }, [
389
- e.timegap ? (t(), f("div", We, [
390
- Xe,
391
- h("div", Ge, [
388
+ e.timegap ? (t(), f("div", Qe, [
389
+ We,
390
+ h("div", Xe, [
392
391
  M(r, {
393
392
  class: "b-timeline-item__timegap",
394
393
  "aria-label": e.timegapAriaLabel
@@ -400,14 +399,14 @@ function rt(e, p, s, n, I, l) {
400
399
  }, 8, ["aria-label"])
401
400
  ])
402
401
  ])) : _("", !0),
403
- h("div", xe, [
404
- h("div", et, [
405
- (t(), S(he(e.computedIconVariant), {
402
+ h("div", Ge, [
403
+ h("div", xe, [
404
+ (t(), S(ve(e.computedIconVariant), {
406
405
  class: Y(["b-timeline-item__icon", e.iconConditionalClasses])
407
406
  }, null, 8, ["class"])),
408
- e.isLastItem ? _("", !0) : (t(), f("div", tt))
407
+ e.isLastItem ? _("", !0) : (t(), f("div", et))
409
408
  ]),
410
- h("div", it, [
409
+ h("div", tt, [
411
410
  e.isNoteType ? _("", !0) : (t(), S(r, {
412
411
  key: 0,
413
412
  el: "div",
@@ -422,7 +421,7 @@ function rt(e, p, s, n, I, l) {
422
421
  N(y(e.linkTitleProps.title), 1)
423
422
  ]),
424
423
  _: 1
425
- }, 16)) : (t(), f("span", nt, y(e.title), 1))
424
+ }, 16)) : (t(), f("span", it, y(e.title), 1))
426
425
  ]),
427
426
  _: 1
428
427
  }, 8, ["class"])),
@@ -471,10 +470,10 @@ function rt(e, p, s, n, I, l) {
471
470
  ]),
472
471
  _: 3
473
472
  })) : _("", !0),
474
- !e.isNoteType && e.dataList ? (t(), f("div", ot, [
473
+ !e.isNoteType && e.dataList ? (t(), f("div", nt, [
475
474
  M(i, null, {
476
475
  default: g(() => [
477
- (t(!0), f(V, null, be(e.dataList, (c) => (t(), S(d, {
476
+ (t(!0), f(V, null, pe(e.dataList, (c) => (t(), S(m, {
478
477
  key: e.generateUid(c.label),
479
478
  label: c.label
480
479
  }, {
@@ -495,10 +494,10 @@ function rt(e, p, s, n, I, l) {
495
494
  !e.isNoteType && e.tag ? (t(), S(b, H({ key: 5 }, e.tag, { class: "b-timeline-item__tag" }), null, 16)) : _("", !0)
496
495
  ])
497
496
  ]),
498
- e.displayShowMoreButton ? (t(), f("div", at, [
499
- st,
500
- h("div", lt, [
501
- M(w, {
497
+ e.displayShowMoreButton ? (t(), f("div", ot, [
498
+ at,
499
+ h("div", st, [
500
+ M(C, {
502
501
  class: "b-timeline__show-more",
503
502
  variant: "tertiary",
504
503
  onClick: p[0] || (p[0] = (c) => e.showAll = !e.showAll)
@@ -516,11 +515,11 @@ function rt(e, p, s, n, I, l) {
516
515
  ])) : _("", !0)
517
516
  ], 2)) : _("", !0);
518
517
  }
519
- const Et = /* @__PURE__ */ q(Qe, [["render", rt], ["__scopeId", "data-v-a49f9329"]]);
518
+ const wt = /* @__PURE__ */ q(Ze, [["render", lt], ["__scopeId", "data-v-a49f9329"]]);
520
519
  export {
521
520
  Ct as BentoTimeline,
522
521
  Fe as BentoTimelineGapUnit,
523
- Et as BentoTimelineItem,
522
+ wt as BentoTimelineItem,
524
523
  E as BentoTimelineItemVariant,
525
524
  D as BentoTimelineShowMorePlacement
526
525
  };