@adyen/bento-vue2 1.5.0 → 1.6.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 (238) hide show
  1. package/dist/@types/packages/vue2/src/components/avatar-image/avatar-image.vue.d.ts +1 -1
  2. package/dist/@types/packages/vue2/src/components/button/button.vue.d.ts +97 -97
  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/card/card.vue.d.ts +7 -1
  5. package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +3 -3
  6. package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateColumnWidth/useCalculateColumnWidth.d.ts +6 -2
  7. package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateStickyElementHeight/useCalculateStickyElementHeight.d.ts +2 -0
  8. package/dist/@types/packages/vue2/src/components/data-grid/composables/useColumnReorderer/useColumnReorderer.d.ts +2 -0
  9. package/dist/@types/packages/vue2/src/components/data-grid/composables/useConfigSettings/useConfigSettings.d.ts +3 -0
  10. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +2 -1
  11. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +41 -4
  12. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +1 -1
  13. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +1 -1
  14. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +33 -34
  15. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +1 -1
  16. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +2 -2
  17. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +2 -2
  18. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +2 -2
  19. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +2 -2
  20. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +3 -3
  21. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +2 -2
  22. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +20 -20
  23. package/dist/@types/packages/vue2/src/components/filter-bar/components/boolean-filter/boolean-filter.vue.d.ts +1 -1
  24. package/dist/@types/packages/vue2/src/components/filter-bar/components/date-filter/date-filter.vue.d.ts +1 -1
  25. package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +2 -2
  26. package/dist/@types/packages/vue2/src/components/filter-bar/components/input-filter/input-filter.vue.d.ts +1 -1
  27. package/dist/@types/packages/vue2/src/components/filter-bar/components/range-filter/range-filter.vue.d.ts +1 -1
  28. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/select-filter.vue.d.ts +2 -1
  29. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +1 -1
  30. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +2 -2
  31. package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.types.d.ts +7 -3
  32. package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.vue.d.ts +10 -1
  33. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue.d.ts +17 -1
  34. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-tip.types.d.ts +3 -0
  35. package/dist/@types/packages/vue2/src/components/header/header.vue.d.ts +3 -0
  36. package/dist/@types/packages/vue2/src/components/info-icon/info-icon.vue.d.ts +3 -3
  37. package/dist/@types/packages/vue2/src/components/internal/base-button/base-button.vue.d.ts +1 -1
  38. package/dist/@types/packages/vue2/src/components/internal/fixed-scroller/composables/index.d.ts +1 -0
  39. package/dist/@types/packages/vue2/src/components/internal/fixed-scroller/composables/useFixedScroller.d.ts +15 -0
  40. package/dist/@types/packages/vue2/src/components/internal/fixed-scroller/fixed-scroller.vue.d.ts +9 -0
  41. package/dist/@types/packages/vue2/src/components/internal/fixed-scroller/index.d.ts +1 -0
  42. package/dist/@types/packages/vue2/src/components/internal/index.d.ts +1 -0
  43. package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +1 -1
  44. package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.vue.d.ts +4 -5
  45. package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +3 -3
  46. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +3 -3
  47. package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +9 -0
  48. package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +4 -4
  49. package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +4 -4
  50. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +3 -3
  51. package/dist/@types/packages/vue2/src/components/status/status.vue.d.ts +2 -2
  52. package/dist/@types/packages/vue2/src/components/stepper/stepper.vue.d.ts +3 -3
  53. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +1 -1
  54. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +1 -1
  55. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-numeric/summary-grid-item-numeric.vue.d.ts +1 -1
  56. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-percentage/summary-grid-item-percentage.vue.d.ts +1 -1
  57. package/dist/@types/packages/vue2/src/components/tabs/components/tab.types.d.ts +2 -1
  58. package/dist/@types/packages/vue2/src/components/tabs/tabs.types.d.ts +1 -1
  59. package/dist/@types/packages/vue2/src/components/tag/tag.vue.d.ts +4 -4
  60. package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +18 -46
  61. package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +6 -6
  62. package/dist/@types/packages/vue2/src/components/tooltip/tooltip.vue.d.ts +12 -12
  63. package/dist/@types/packages/vue2/src/composables/use-expandable-content-height/use-expandable-content-height.d.ts +4 -0
  64. package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.keys.d.ts +1 -0
  65. package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.types.d.ts +6 -0
  66. package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.vue.d.ts +121 -1
  67. package/dist/@types/packages/vue2/src/templates/data-grid-template/index.d.ts +1 -0
  68. package/dist/@types/packages/vue2/src/utils/ts/truncate.d.ts +1 -1
  69. package/dist/accordion.js +33 -36
  70. package/dist/accordion.js.map +1 -1
  71. package/dist/alert.js +3 -3
  72. package/dist/assets/base-modal.css +1 -1
  73. package/dist/assets/button.css +1 -1
  74. package/dist/assets/controls-group.css +1 -1
  75. package/dist/assets/dropdown.css +1 -1
  76. package/dist/assets/index.css +1 -1
  77. package/dist/assets/index10.css +1 -1
  78. package/dist/assets/index11.css +1 -1
  79. package/dist/assets/index12.css +1 -1
  80. package/dist/assets/index13.css +1 -1
  81. package/dist/assets/index14.css +1 -1
  82. package/dist/assets/index15.css +1 -1
  83. package/dist/assets/index16.css +1 -1
  84. package/dist/assets/index17.css +1 -1
  85. package/dist/assets/index18.css +1 -1
  86. package/dist/assets/index19.css +1 -1
  87. package/dist/assets/index2.css +1 -1
  88. package/dist/assets/index20.css +1 -1
  89. package/dist/assets/index21.css +1 -1
  90. package/dist/assets/index22.css +1 -1
  91. package/dist/assets/index23.css +1 -1
  92. package/dist/assets/index24.css +1 -1
  93. package/dist/assets/index25.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 -0
  114. package/dist/assets/index5.css +1 -1
  115. package/dist/assets/index6.css +1 -1
  116. package/dist/assets/index7.css +1 -1
  117. package/dist/assets/index8.css +1 -1
  118. package/dist/assets/index9.css +1 -1
  119. package/dist/assets/loading-button.css +1 -1
  120. package/dist/avatar-image.js +1 -1
  121. package/dist/badge.js +1 -1
  122. package/dist/button.js +5 -5
  123. package/dist/card.js +84 -80
  124. package/dist/card.js.map +1 -1
  125. package/dist/checkbox.js +14 -15
  126. package/dist/checkbox.js.map +1 -1
  127. package/dist/chunks/{base-button.89e9efbd.js → base-button.431fb8cf.js} +2 -2
  128. package/dist/chunks/{base-button.89e9efbd.js.map → base-button.431fb8cf.js.map} +1 -1
  129. package/dist/chunks/{base-modal.6eaa7e53.js → base-modal.f462dac0.js} +41 -41
  130. package/dist/chunks/base-modal.f462dac0.js.map +1 -0
  131. package/dist/chunks/{button.66df5734.js → button.38099670.js} +2 -2
  132. package/dist/chunks/{button.66df5734.js.map → button.38099670.js.map} +1 -1
  133. package/dist/chunks/{calendar.44459d87.js → calendar.371e5ae2.js} +8 -7
  134. package/dist/chunks/{calendar.44459d87.js.map → calendar.371e5ae2.js.map} +1 -1
  135. package/dist/chunks/{checkbox.b69b8f22.js → checkbox.b8c2e583.js} +3 -3
  136. package/dist/chunks/{checkbox.b69b8f22.js.map → checkbox.b8c2e583.js.map} +1 -1
  137. package/dist/chunks/{controls-group.a2a2916f.js → controls-group.d75f1d37.js} +2 -2
  138. package/dist/chunks/{controls-group.a2a2916f.js.map → controls-group.d75f1d37.js.map} +1 -1
  139. package/dist/chunks/{copy.57f969d4.js → copy.8e44a660.js} +3 -3
  140. package/dist/chunks/{copy.57f969d4.js.map → copy.8e44a660.js.map} +1 -1
  141. package/dist/chunks/date-input.9186a0bf.js.map +1 -1
  142. package/dist/chunks/{dropdown-default-textbox.2d093874.js → dropdown-default-textbox.6135874c.js} +2 -2
  143. package/dist/chunks/{dropdown-default-textbox.2d093874.js.map → dropdown-default-textbox.6135874c.js.map} +1 -1
  144. package/dist/chunks/{dropdown.10ea8304.js → dropdown.5d22958c.js} +184 -179
  145. package/dist/chunks/dropdown.5d22958c.js.map +1 -0
  146. package/dist/chunks/{error-message.7a5db7f6.js → error-message.a04e8f9a.js} +2 -2
  147. package/dist/chunks/{error-message.7a5db7f6.js.map → error-message.a04e8f9a.js.map} +1 -1
  148. package/dist/chunks/{footer-actions.6ddac024.js → footer-actions.ee645663.js} +3 -3
  149. package/dist/chunks/{footer-actions.6ddac024.js.map → footer-actions.ee645663.js.map} +1 -1
  150. package/dist/chunks/{index.4a11da21.js → index.5d058912.js} +22 -21
  151. package/dist/chunks/{index.4a11da21.js.map → index.5d058912.js.map} +1 -1
  152. package/dist/chunks/{index.f607a3f1.js → index.64cce50b.js} +6 -6
  153. package/dist/chunks/{index.f607a3f1.js.map → index.64cce50b.js.map} +1 -1
  154. package/dist/chunks/{index.0f8690c4.js → index.74258013.js} +2 -2
  155. package/dist/chunks/{index.0f8690c4.js.map → index.74258013.js.map} +1 -1
  156. package/dist/chunks/{index.1645ffcb.js → index.74da0d41.js} +2 -2
  157. package/dist/chunks/{index.1645ffcb.js.map → index.74da0d41.js.map} +1 -1
  158. package/dist/chunks/{index.660f2f2e.js → index.98b6db0e.js} +3 -3
  159. package/dist/chunks/{index.660f2f2e.js.map → index.98b6db0e.js.map} +1 -1
  160. package/dist/chunks/index.af05ced4.js.map +1 -1
  161. package/dist/chunks/{index.e722eb60.js → index.fd557233.js} +2 -2
  162. package/dist/chunks/{index.e722eb60.js.map → index.fd557233.js.map} +1 -1
  163. package/dist/chunks/{listbox-option-tag.e2688e54.js → listbox-option-tag.a651fa46.js} +3 -3
  164. package/dist/chunks/{listbox-option-tag.e2688e54.js.map → listbox-option-tag.a651fa46.js.map} +1 -1
  165. package/dist/chunks/{listbox.201a8521.js → listbox.cbb27077.js} +7 -7
  166. package/dist/chunks/{listbox.201a8521.js.map → listbox.cbb27077.js.map} +1 -1
  167. package/dist/chunks/{loading-button.9d18b4f2.js → loading-button.21c48d50.js} +24 -24
  168. package/dist/chunks/loading-button.21c48d50.js.map +1 -0
  169. package/dist/chunks/on-click-outside.3e0c3e2a.js.map +1 -1
  170. package/dist/chunks/{tooltip.f89cb0cd.js → tooltip.ca9673ee.js} +2 -2
  171. package/dist/chunks/tooltip.ca9673ee.js.map +1 -0
  172. package/dist/chunks/use-expandable-content-height.62fc84e5.js +17 -0
  173. package/dist/chunks/use-expandable-content-height.62fc84e5.js.map +1 -0
  174. package/dist/chunks/use-has-slot.6052d56a.js.map +1 -1
  175. package/dist/code-snippet.js +7 -7
  176. package/dist/code-snippet.js.map +1 -1
  177. package/dist/country.js +2 -2
  178. package/dist/currency.js +1 -1
  179. package/dist/data-grid.js +707 -655
  180. package/dist/data-grid.js.map +1 -1
  181. package/dist/date-picker.js +26 -26
  182. package/dist/date-range-picker.js +2 -2
  183. package/dist/date.js +1 -1
  184. package/dist/divider.js +1 -1
  185. package/dist/dropdown.js +4 -4
  186. package/dist/empty-state.js +3 -3
  187. package/dist/filter-bar.js +727 -638
  188. package/dist/filter-bar.js.map +1 -1
  189. package/dist/focus-trap.js +1 -1
  190. package/dist/form-layout.js +71 -60
  191. package/dist/form-layout.js.map +1 -1
  192. package/dist/header.js +39 -36
  193. package/dist/header.js.map +1 -1
  194. package/dist/index.js +28 -28
  195. package/dist/info-icon.js +7 -7
  196. package/dist/info-icon.js.map +1 -1
  197. package/dist/input-field.js +71 -67
  198. package/dist/input-field.js.map +1 -1
  199. package/dist/internal.js +106 -18
  200. package/dist/internal.js.map +1 -1
  201. package/dist/link.js +29 -28
  202. package/dist/link.js.map +1 -1
  203. package/dist/loading-indicator.js +1 -1
  204. package/dist/menu.js +8 -6
  205. package/dist/menu.js.map +1 -1
  206. package/dist/modal.js +20 -13
  207. package/dist/modal.js.map +1 -1
  208. package/dist/pagination.js +4 -4
  209. package/dist/payment-method.js +2 -2
  210. package/dist/popover.js +3 -3
  211. package/dist/popper-container.js +2 -2
  212. package/dist/radio-group.js +4 -4
  213. package/dist/search-bar.js +6 -6
  214. package/dist/search-bar.js.map +1 -1
  215. package/dist/segmented-control.js +4 -4
  216. package/dist/sidepanel.js +28 -28
  217. package/dist/sidepanel.js.map +1 -1
  218. package/dist/status.js +2 -2
  219. package/dist/stepper.js +3 -3
  220. package/dist/structured-list.js +1 -1
  221. package/dist/summary-grid.js +2 -2
  222. package/dist/tabs.js +48 -48
  223. package/dist/tabs.js.map +1 -1
  224. package/dist/tag.js +3 -3
  225. package/dist/textarea.js +89 -126
  226. package/dist/textarea.js.map +1 -1
  227. package/dist/timeline.js +38 -38
  228. package/dist/timeline.js.map +1 -1
  229. package/dist/toast.js +3 -3
  230. package/dist/toggle.js +2 -2
  231. package/dist/typography.js +1 -1
  232. package/dist/web-types.json +289 -222
  233. package/package.json +5 -3
  234. package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateColumnHeadersTopPosition/useCalculateColumnHeadersTopPosition.d.ts +0 -2
  235. package/dist/chunks/base-modal.6eaa7e53.js.map +0 -1
  236. package/dist/chunks/dropdown.10ea8304.js.map +0 -1
  237. package/dist/chunks/loading-button.9d18b4f2.js.map +0 -1
  238. package/dist/chunks/tooltip.f89cb0cd.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { B as a } from "./chunks/index.0f8690c4.js";
1
+ import { B as a } from "./chunks/index.74258013.js";
2
2
  export {
3
3
  a as BentoFocusTrap
4
4
  };
@@ -1,10 +1,10 @@
1
- import { defineComponent as _, useSlots as p, computed as n, provide as v, toRef as f, onMounted as g, ref as L } from "vue";
2
- import { BentoAlert as m } from "./alert.js";
3
- import { u as d } from "./chunks/use-has-slot.6052d56a.js";
4
- import { F as b } from "./chunks/form-layout.types.a7a1438d.js";
1
+ import { defineComponent as _, useSlots as p, computed as a, provide as v, toRef as f, onMounted as g, ref as h } from "vue";
2
+ import { BentoAlert as d } from "./alert.js";
3
+ import { u as m } from "./chunks/use-has-slot.6052d56a.js";
4
+ import { F as L } from "./chunks/form-layout.types.a7a1438d.js";
5
5
  import { n as l } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
6
- import { B as i, c as h } from "./chunks/index.1645ffcb.js";
7
- import "./assets/index18.css";
6
+ import { B as u, c as b } from "./chunks/index.74da0d41.js";
7
+ import "./assets/index40.css";
8
8
  const C = {}, $ = /* @__PURE__ */ _({
9
9
  ...C,
10
10
  __name: "form-layout",
@@ -20,48 +20,59 @@ const C = {}, $ = /* @__PURE__ */ _({
20
20
  loading: { type: Boolean, default: !1 }
21
21
  },
22
22
  setup(o) {
23
- const t = o, e = p(), s = d(e), r = n(() => t.form ? "form" : "div"), a = n(() => s("actions-left") || s("actions-right"));
24
- return v(b, f(t, "loading")), { __sfc: !0, slots: e, hasSlot: s, props: t, formLayoutElement: r, hasActions: a, BentoAlert: m };
23
+ const t = o, s = p(), e = m(s), r = a(() => t.form ? "form" : "div"), n = a(() => e("actions-left") || e("actions-right"));
24
+ return v(L, f(t, "loading")), { __sfc: !0, slots: s, hasSlot: e, props: t, formLayoutElement: r, hasActions: n, BentoAlert: d };
25
25
  }
26
26
  });
27
27
  var B = function() {
28
- var t = this, e = t._self._c, s = t._self._setupProxy;
29
- return e(s.formLayoutElement, { tag: "component", staticClass: "b-form-layout", attrs: { role: "form" } }, [s.hasSlot("error-message") ? e(s.BentoAlert, { staticClass: "b-form-layout__error-message", attrs: { type: "critical" }, scopedSlots: t._u([{ key: "description", fn: function() {
28
+ var t = this, s = t._self._c, e = t._self._setupProxy;
29
+ return s(e.formLayoutElement, { tag: "component", staticClass: "b-form-layout", attrs: { role: "form" } }, [e.hasSlot("error-message") ? s(e.BentoAlert, { staticClass: "b-form-layout__error-message", attrs: { type: "critical" }, scopedSlots: t._u([{ key: "description", fn: function() {
30
30
  return [t._t("error-message")];
31
- }, proxy: !0 }], null, !0) }) : t._e(), t._t("default"), s.hasActions ? e("div", { staticClass: "b-form-layout__actions-container" }, [e("div", { staticClass: "b-form-layout__actions" }, [t._t("actions-left")], 2), e("div", { staticClass: "b-form-layout__actions" }, [t._t("actions-right")], 2)]) : t._e()], 2);
32
- }, x = [], F = /* @__PURE__ */ l(
31
+ }, proxy: !0 }], null, !0) }) : t._e(), t._t("default"), e.hasActions ? s("div", { staticClass: "b-form-layout__actions-container" }, [s("div", { staticClass: "b-form-layout__actions" }, [t._t("actions-left")], 2), s("div", { staticClass: "b-form-layout__actions" }, [t._t("actions-right")], 2)]) : t._e()], 2);
32
+ }, F = [], T = /* @__PURE__ */ l(
33
33
  $,
34
34
  B,
35
- x,
35
+ F,
36
36
  !1,
37
37
  null,
38
38
  "178aebc7",
39
39
  null,
40
40
  null
41
41
  );
42
- const Q = F.exports, T = {}, S = /* @__PURE__ */ _({
43
- ...T,
42
+ const W = T.exports, x = ["warning", "critical", "highlight", "success"], S = {}, A = /* @__PURE__ */ _({
43
+ ...S,
44
44
  __name: "form-layout-field-tip",
45
+ props: {
46
+ /**
47
+ * Type of a alert; set a distinctive icon and color. Defaults to highlight.
48
+ * @values highlight, success, critical, warning
49
+ */
50
+ type: {
51
+ type: String,
52
+ default: "highlight",
53
+ validator: (o) => x.includes(o)
54
+ }
55
+ },
45
56
  setup(o) {
46
- return { __sfc: !0, BentoAlert: m };
57
+ return { __sfc: !0, BentoAlert: d };
47
58
  }
48
59
  });
49
- var A = function() {
50
- var t = this, e = t._self._c, s = t._self._setupProxy;
51
- return e("div", { staticClass: "b-form-layout-field-tip" }, [t._t("default"), e(s.BentoAlert, { attrs: { variant: "tip", type: "warning" }, scopedSlots: t._u([{ key: "description", fn: function() {
60
+ var O = function() {
61
+ var t = this, s = t._self._c, e = t._self._setupProxy;
62
+ return s("div", { staticClass: "b-form-layout-field-tip" }, [t._t("default"), s(e.BentoAlert, { attrs: { variant: "tip", type: t.type }, scopedSlots: t._u([{ key: "description", fn: function() {
52
63
  return [t._t("message")];
53
64
  }, proxy: !0 }], null, !0) })], 2);
54
- }, O = [], E = /* @__PURE__ */ l(
55
- S,
65
+ }, E = [], G = /* @__PURE__ */ l(
56
66
  A,
57
67
  O,
68
+ E,
58
69
  !1,
59
70
  null,
60
- "f5604b8a",
71
+ "52686d0f",
61
72
  null,
62
73
  null
63
74
  );
64
- const W = E.exports, u = [
75
+ const X = G.exports, i = [
65
76
  "100",
66
77
  "50",
67
78
  "33",
@@ -72,21 +83,21 @@ const W = E.exports, u = [
72
83
  "25-75",
73
84
  "50-50",
74
85
  "33-33-33"
75
- ], G = 100, P = (o, t) => {
76
- const e = (r) => {
77
- var a;
78
- return (a = r.split) == null ? void 0 : a.call(r, "-").map((c) => parseInt(c, 10));
79
- }, s = n(
80
- () => u.includes(o.value) ? e(o.value) : G
86
+ ], P = 100, R = (o, t) => {
87
+ const s = (r) => {
88
+ var n;
89
+ return (n = r.split) == null ? void 0 : n.call(r, "-").map((c) => parseInt(c, 10));
90
+ }, e = a(
91
+ () => i.includes(o.value) ? s(o.value) : P
81
92
  );
82
93
  g(() => {
83
94
  const r = t.value.classList[0];
84
95
  t.value.querySelectorAll(`.${r} > *`).forEach((c, y) => {
85
- c.classList.add(`${r}--${s.value[y] || "100"}`);
96
+ c.classList.add(`${r}--${e.value[y] || "100"}`);
86
97
  });
87
98
  });
88
- }, R = {}, I = /* @__PURE__ */ _({
89
- ...R,
99
+ }, I = {}, N = /* @__PURE__ */ _({
100
+ ...I,
90
101
  __name: "form-layout-group",
91
102
  props: {
92
103
  /**
@@ -115,35 +126,35 @@ const W = E.exports, u = [
115
126
  layout: {
116
127
  type: String,
117
128
  default: "100",
118
- validator: (o) => u.includes(o)
129
+ validator: (o) => i.includes(o)
119
130
  }
120
131
  },
121
132
  setup(o) {
122
- const t = o, e = L(null);
123
- P(f(t, "layout"), e);
124
- const s = n(() => ({
133
+ const t = o, s = h(null);
134
+ R(f(t, "layout"), s);
135
+ const e = a(() => ({
125
136
  // Transform into column if the layout is unsopprted
126
137
  // "form-layout.scss" depends on this class
127
- "b-form-layout-group--column": !u.includes(t.layout)
138
+ "b-form-layout-group--column": !i.includes(t.layout)
128
139
  }));
129
- return { __sfc: !0, props: t, formLayoutGroup: e, conditionalClasses: s };
140
+ return { __sfc: !0, props: t, formLayoutGroup: s, conditionalClasses: e };
130
141
  }
131
142
  });
132
- var N = function() {
133
- var t = this, e = t._self._c, s = t._self._setupProxy;
134
- return e("div", { ref: "formLayoutGroup", staticClass: "b-form-layout-group", class: s.conditionalClasses }, [t._t("default")], 2);
135
- }, k = [], q = /* @__PURE__ */ l(
136
- I,
143
+ var k = function() {
144
+ var t = this, s = t._self._c, e = t._self._setupProxy;
145
+ return s("div", { ref: "formLayoutGroup", staticClass: "b-form-layout-group", class: e.conditionalClasses }, [t._t("default")], 2);
146
+ }, q = [], w = /* @__PURE__ */ l(
137
147
  N,
138
148
  k,
149
+ q,
139
150
  !1,
140
151
  null,
141
- "39e9662c",
152
+ "ccb524d7",
142
153
  null,
143
154
  null
144
155
  );
145
- const X = q.exports, w = {}, D = /* @__PURE__ */ _({
146
- ...w,
156
+ const Z = w.exports, D = {}, M = /* @__PURE__ */ _({
157
+ ...D,
147
158
  __name: "form-layout-title",
148
159
  props: {
149
160
  /**
@@ -160,36 +171,36 @@ const X = q.exports, w = {}, D = /* @__PURE__ */ _({
160
171
  * @values h1, h2, h3, h4, h5, h6, div, p, span
161
172
  */
162
173
  el: {
163
- type: i.props.el.type,
174
+ type: u.props.el.type,
164
175
  required: !0,
165
- validator: (o) => Object.values(h).includes(o)
176
+ validator: (o) => Object.values(b).includes(o)
166
177
  }
167
178
  },
168
179
  setup(o) {
169
- const t = o, e = p(), s = n(() => !t.subsection), r = d(e), a = n(() => ({
180
+ const t = o, s = p(), e = a(() => !t.subsection), r = m(s), n = a(() => ({
170
181
  "b-form-layout-title--subsection": t.subsection
171
182
  }));
172
- return { __sfc: !0, slots: e, props: t, isSection: s, hasSlot: r, conditionalClasses: a, BentoTypography: i };
183
+ return { __sfc: !0, slots: s, props: t, isSection: e, hasSlot: r, conditionalClasses: n, BentoTypography: u };
173
184
  }
174
185
  });
175
- var M = function() {
176
- var t = this, e = t._self._c, s = t._self._setupProxy;
177
- return e("div", { staticClass: "b-form-layout-title", class: s.conditionalClasses }, [e(s.BentoTypography, { attrs: { el: t.el, variant: "title", medium: s.isSection } }, [t._t("default")], 2), s.hasSlot("description") ? e(s.BentoTypography, { staticClass: "b-form-layout-title__description", attrs: { el: "span", wide: "" } }, [t._t("description")], 2) : t._e()], 1);
178
- }, U = [], Y = /* @__PURE__ */ l(
179
- D,
186
+ var U = function() {
187
+ var t = this, s = t._self._c, e = t._self._setupProxy;
188
+ return s("div", { staticClass: "b-form-layout-title", class: e.conditionalClasses }, [s(e.BentoTypography, { attrs: { el: t.el, variant: "title", medium: e.isSection } }, [t._t("default")], 2), e.hasSlot("description") ? s(e.BentoTypography, { staticClass: "b-form-layout-title__description", attrs: { el: "span", wide: "" } }, [t._t("description")], 2) : t._e()], 1);
189
+ }, Y = [], j = /* @__PURE__ */ l(
180
190
  M,
181
191
  U,
192
+ Y,
182
193
  !1,
183
194
  null,
184
195
  "03648a9d",
185
196
  null,
186
197
  null
187
198
  );
188
- const Z = Y.exports;
199
+ const tt = j.exports;
189
200
  export {
190
- Q as BentoFormLayout,
191
- W as BentoFormLayoutFieldTip,
192
- X as BentoFormLayoutGroup,
193
- Z as BentoFormLayoutTitle
201
+ W as BentoFormLayout,
202
+ X as BentoFormLayoutFieldTip,
203
+ Z as BentoFormLayoutGroup,
204
+ tt as BentoFormLayoutTitle
194
205
  };
195
206
  //# sourceMappingURL=form-layout.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"form-layout.js","sources":["../src/components/form-layout/form-layout.vue","../src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue","../src/components/form-layout/components/form-layout-group/form-layout-group.types.ts","../src/components/form-layout/components/form-layout-group/composable/use-form-layout-group-percentage.ts","../src/components/form-layout/components/form-layout-group/form-layout-group.vue","../src/components/form-layout/components/form-layout-title/form-layout-title.vue"],"sourcesContent":["<template>\n <component :is=\"formLayoutElement\" class=\"b-form-layout\" role=\"form\">\n <bento-alert v-if=\"hasSlot('error-message')\" class=\"b-form-layout__error-message\" type=\"critical\">\n <template #description>\n <slot name=\"error-message\" />\n </template>\n </bento-alert>\n\n <slot />\n\n <div v-if=\"hasActions\" class=\"b-form-layout__actions-container\">\n <div class=\"b-form-layout__actions\">\n <slot name=\"actions-left\" />\n </div>\n\n <div class=\"b-form-layout__actions\">\n <slot name=\"actions-right\" />\n </div>\n </div>\n </component>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, provide, toRef, useSlots } from 'vue';\n import { BentoAlert } from '@/components/alert';\n import { useHasSlot } from '@/composables';\n import { FORM_LAYOUT_LOADING_INJECTION_KEY } from './form-layout.types';\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const props = defineProps({\n /**\n * Renders the form layout as an HTML `form`\n */\n form: { type: Boolean, default: false },\n\n /**\n * Sets the state of the form and its fields to\n * a read only status.\n */\n loading: { type: Boolean, default: false },\n });\n\n const formLayoutElement = computed(() => (props.form ? 'form' : 'div'));\n const hasActions = computed(() => hasSlot('actions-left') || hasSlot('actions-right'));\n\n provide(FORM_LAYOUT_LOADING_INJECTION_KEY, toRef(props, 'loading'));\n</script>\n\n<script lang=\"ts\">\n /**\n * Form layout component is a pre-designed layout that serves\n * as a starting point for creating a form.\n *\n * It can include various common form components:\n * input field, dropdown, date picker, checkbox group, radio group,\n * textarea, etc.\n *\n * Form layout is context agnostic and can be dropped in different\n * places, for example in modals, side panels or pages.\n *\n * @example\n * import { BentoFormLayout, BentoFormLayoutFieldTip } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayout, BentoFormLayoutFieldTip },\n * template: `\n * <bento-form-layout>\n * <template #error-message>There is an error. Correct the highlighted field.</template>\n *\n * <bento-input-field>Input field</bento-input-field>\n *\n * <bento-form-layout-field-tip>\n * <bento-dropdown label=\"Dropdown\" :items=\"dropdownItems\" placeholder=\"Select an animal\" />\n * <template #message>This is a small tip that can be used in small spaces</template>\n * </bento-form-layout-field-tip>\n *\n * <bento-form-layout-title subsection>\n * Section title\n * <template #description>Optional section description</template>\n * </bento-form-layout-title>\n * </bento-form-layout>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout.scss\" />\n","<template>\n <div class=\"b-form-layout-field-tip\">\n <slot />\n <bento-alert variant=\"tip\" type=\"warning\">\n <template #description>\n <slot name=\"message\" />\n </template>\n </bento-alert>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { BentoAlert } from '@/components/alert';\n</script>\n\n<script lang=\"ts\">\n /**\n * You can help users provide accurate and well formatted information\n * by using various elements that come with an input field.\n *\n * Use description/supporting text to add additional context to the\n * field or guidance how to format the input correctly.\n * Because description is always visible it should be the first\n * choice in providing guidance.\n *\n * @example\n * import { BentoFormLayoutFieldTip } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutFieldTip },\n * template: `\n * <bento-form-layout-field-tip>\n * <bento-dropdown label=\"Dropdown\" :items=\"dropdownItems\" placeholder=\"Select an animal\" />\n *\n * <template #message>This is a small tip that can be used in small spaces</template>\n * </bento-form-layout-field-tip>\n * `\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-field-tip.scss\" />\n","export type BentoLayoutGroupProportions =\n | '33-33-33'\n | '50-50'\n | '25-75'\n | '75-25'\n | '33-66'\n | '66-33'\n | '25'\n | '33'\n | '50'\n | '100';\n\nexport const BentoLayoutGroupProportions = [\n '100',\n '50',\n '33',\n '25',\n '66-33',\n '33-66',\n '75-25',\n '25-75',\n '50-50',\n '33-33-33',\n];\n","import { computed, onMounted, Ref } from 'vue';\nimport { BentoLayoutGroupProportions } from '../form-layout-group.types';\n\nconst DEFAULT_PROPORTION = 100;\n\n/**\n * Calculates the CSS classes based on the percentage\n * for each one of the layouts in format `##-##` or `##`.\n *\n * It receives a layout of type @see BentoLayoutGroupProportions to\n * generate the class and apply it to the children of the @see BentoFormLayoutGroup component\n *\n * @param {Ref<BentoLayoutGroupProportions>} layoutProp Layout string in the format `##` or `##-##`\n * @param {Ref<HTMLElement>} formLayoutGroupRef Reference to an HTML element of type BentoFormLayoutGroup\n */\nexport const useFormLayoutGroupPercentage = (\n layoutProp: Ref<BentoLayoutGroupProportions>,\n formLayoutGroupRef: Ref<HTMLElement>\n) => {\n // Split the `##-##` format into individual values [##, ##]\n const getLayoutValues = layout => layout.split?.('-').map(value => parseInt(value, 10));\n // Split the values only if the are in BentoLayoutGroupProportions, otherwise return 100%\n const layout = computed(() =>\n BentoLayoutGroupProportions.includes(layoutProp.value) ? getLayoutValues(layoutProp.value) : DEFAULT_PROPORTION\n );\n\n onMounted(() => {\n // Apply class to every immediate child\n const layoutClassName = formLayoutGroupRef.value.classList[0];\n const immediateChildren = formLayoutGroupRef.value.querySelectorAll(`.${layoutClassName} > *`); // Get immediate children\n immediateChildren.forEach((child, index) => {\n child.classList.add(`${layoutClassName}--${layout.value[index] || '100'}`); // 100% default\n });\n });\n};\n","<template>\n <div ref=\"formLayoutGroup\" class=\"b-form-layout-group\" :class=\"conditionalClasses\">\n <slot></slot>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, defineProps, PropType, ref, toRef } from 'vue';\n import { useFormLayoutGroupPercentage } from './composable/use-form-layout-group-percentage';\n import { BentoLayoutGroupProportions } from './form-layout-group.types';\n\n const props = defineProps({\n /**\n * The layout of the pair group of components.\n * This will render the components within the width of the proportions.\n * Only two colums are available.\n *\n * If only one value is entered, then it will assume there's only one child in the group.\n * If two values are entered, the first value will be use for the first child and the second\n * value for the second child.\n *\n * If the value entered is not listed in the example\n * list below it will use 100% by default.\n * @example\n * '33-33-33'\n * '50-50'\n * '25-75'\n * '75-25'\n * '33-66'\n * '66-33'\n * '25'\n * '33'\n * '50'\n * '100'\n */\n layout: {\n type: String as PropType<BentoLayoutGroupProportions>,\n default: '100',\n validator: (value: BentoLayoutGroupProportions) => BentoLayoutGroupProportions.includes(value),\n },\n });\n\n const formLayoutGroup = ref(null);\n useFormLayoutGroupPercentage(toRef(props, 'layout'), formLayoutGroup);\n\n const conditionalClasses = computed(() => ({\n // Transform into column if the layout is unsopprted\n // \"form-layout.scss\" depends on this class\n 'b-form-layout-group--column': !BentoLayoutGroupProportions.includes(props.layout),\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * Use to provide horizontal layouts to build forms\n * with two fields per line.\n *\n * These can be used for field combinations,\n * such as post code and city or title and first name.\n *\n * @example\n * import { BentoFormLayoutGroup } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutGroup },\n * template: `\n * <bento-form-layout-group>\n * <first-element />\n * <second-element />\n * </bento-form-layout-group>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-group.scss\" />\n","<template>\n <div class=\"b-form-layout-title\" :class=\"conditionalClasses\">\n <bento-typography :el=\"el\" variant=\"title\" :medium=\"isSection\">\n <slot />\n </bento-typography>\n\n <bento-typography v-if=\"hasSlot('description')\" class=\"b-form-layout-title__description\" el=\"span\" wide>\n <slot name=\"description\" />\n </bento-typography>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, useSlots } from 'vue';\n import { BentoTypography, BentoTypographyElement } from '@/components/typography';\n import { useHasSlot } from '@/composables';\n\n const slots = useSlots();\n\n const props = defineProps({\n /**\n * Defines if the Form Layout title is\n * a \"section\" or a \"subsection\".\n * Default is \"section\" (false). Turn into \"true\" for \"subsection\"\n */\n subsection: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the HTML DOM element.\n * @values h1, h2, h3, h4, h5, h6, div, p, span\n */\n el: {\n type: BentoTypography.props.el.type,\n required: true,\n validator: (value: BentoTypographyElement) => Object.values(BentoTypographyElement).includes(value),\n },\n });\n\n // Uses \"medium\" typography if it is a section title\n const isSection = computed(() => !props.subsection);\n const hasSlot = useHasSlot(slots);\n const conditionalClasses = computed(() => ({\n 'b-form-layout-title--subsection': props.subsection,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * If you’re building a lengthy form, organise related\n * fields into sections and, if needed, subsections.\n *\n * A form can have a \"Section Title\" and multiple \"Subsection titles\".\n *\n * One of the values provided in @see BentoTypographyElement must always be provided as a string\n * to define correct HTML sementic from the application's context\n *\n * @example\n * import { BentoFormLayoutTitle } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutTitle },\n * template: `\n * <bento-form-layout-title subsection el=\"h2\">\n * Title\n * <template #description>Description text</template>\n * </bento-form-layout-title>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-title.scss\" />\n"],"names":["__default__$3","slots","useSlots","hasSlot","useHasSlot","formLayoutElement","computed","props","hasActions","provide","FORM_LAYOUT_LOADING_INJECTION_KEY","toRef","__default__$2","BentoLayoutGroupProportions","DEFAULT_PROPORTION","useFormLayoutGroupPercentage","layoutProp","formLayoutGroupRef","getLayoutValues","layout2","_a","value","layout","onMounted","layoutClassName","child","index","__default__$1","formLayoutGroup","ref","conditionalClasses","__default__","isSection"],"mappings":";;;;;;;AAsFI,MAAAA,IAAA,CAAA;;;;;;;;;;;;;;;iBA1DAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAeAI,IAAAC,EAAA,MAAAC,EAAA,OAAA,SAAA,KAAA,GACAC,IAAAF,EAAA,MAAAH,EAAA,cAAA,KAAAA,EAAA,eAAA,CAAA;AAEA,WAAAM,EAAAC,GAAAC,EAAAJ,GAAA,SAAA,CAAA;;;;;;;;;;;;;;;;;;qBCTAK,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;qBC1BGC,IAAA;AAAA,EAAoC;AAAA,EACvC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAEJ,GCpBAC,IAAA,KAYaC,IAAA,CAAAC,GAAAC,MAAA;AAKT,QAAAC,IAAA,CAAAC,MAAA;;AAAA,YAAAC,IAAAD,EAAA,UAAA,gBAAAC,EAAA,KAAAD,GAAA,KAAA,IAAA,CAAAE,MAAA,SAAAA,GAAA,EAAA;AAAA,KAEAC,IAAAhB;AAAA,IAAe,MAAAO,EAAA,SAAAG,EAAA,KAAA,IAAAE,EAAAF,EAAA,KAAA,IAAAF;AAAA,EACkF;AAGjG,EAAAS,EAAA,MAAA;AAEI,UAAAC,IAAAP,EAAA,MAAA,UAAA,CAAA;AAEA,IADAA,EAAA,MAAA,iBAAA,IAAAO,OAAA,EACA,QAAA,CAAAC,GAAAC,MAAA;AACI,MAAAD,EAAA,UAAA,IAAA,GAAAD,MAAAF,EAAA,MAAAI,CAAA,KAAA,OAAA;AAAA,IAAyE,CAAA;AAAA,EAC5E,CAAA;AAET,GCuCIC,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA/BAC,IAAAC,EAAA,IAAA;AACA,IAAAd,EAAAJ,EAAAJ,GAAA,QAAA,GAAAqB,CAAA;AAEA,UAAAE,IAAAxB,EAAA,OAAA;AAAA;AAAA;AAAA,MAA2C,+BAAA,CAAAO,EAAA,SAAAN,EAAA,MAAA;AAAA,IAG0C,EAAA;;;;;;;;;;;;;;;;;qBCwBrFwB,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;iBAvDA9B,IAAAC,EAAA,GAyBA8B,IAAA1B,EAAA,MAAA,CAAAC,EAAA,UAAA,GACAJ,IAAAC,EAAAH,CAAA,GACA6B,IAAAxB,EAAA,OAAA;AAAA,MAA2C,mCAAAC,EAAA;AAAA,IACE,EAAA;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"form-layout.js","sources":["../src/components/form-layout/form-layout.vue","../src/components/form-layout/components/form-layout-field-tip/form-layout-tip.types.ts","../src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue","../src/components/form-layout/components/form-layout-group/form-layout-group.types.ts","../src/components/form-layout/components/form-layout-group/composable/use-form-layout-group-percentage.ts","../src/components/form-layout/components/form-layout-group/form-layout-group.vue","../src/components/form-layout/components/form-layout-title/form-layout-title.vue"],"sourcesContent":["<template>\n <component :is=\"formLayoutElement\" class=\"b-form-layout\" role=\"form\">\n <bento-alert v-if=\"hasSlot('error-message')\" class=\"b-form-layout__error-message\" type=\"critical\">\n <template #description>\n <slot name=\"error-message\" />\n </template>\n </bento-alert>\n\n <slot />\n\n <div v-if=\"hasActions\" class=\"b-form-layout__actions-container\">\n <div class=\"b-form-layout__actions\">\n <slot name=\"actions-left\" />\n </div>\n\n <div class=\"b-form-layout__actions\">\n <slot name=\"actions-right\" />\n </div>\n </div>\n </component>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, provide, toRef, useSlots } from 'vue';\n import { BentoAlert } from '@/components/alert';\n import { useHasSlot } from '@/composables';\n import { FORM_LAYOUT_LOADING_INJECTION_KEY } from './form-layout.types';\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const props = defineProps({\n /**\n * Renders the form layout as an HTML `form`\n */\n form: { type: Boolean, default: false },\n\n /**\n * Sets the state of the form and its fields to\n * a read only status.\n */\n loading: { type: Boolean, default: false },\n });\n\n const formLayoutElement = computed(() => (props.form ? 'form' : 'div'));\n const hasActions = computed(() => hasSlot('actions-left') || hasSlot('actions-right'));\n\n provide(FORM_LAYOUT_LOADING_INJECTION_KEY, toRef(props, 'loading'));\n</script>\n\n<script lang=\"ts\">\n /**\n * Form layout component is a pre-designed layout that serves\n * as a starting point for creating a form.\n *\n * It can include various common form components:\n * input field, dropdown, date picker, checkbox group, radio group,\n * textarea, etc.\n *\n * Form layout is context agnostic and can be dropped in different\n * places, for example in modals, side panels or pages.\n *\n * @example\n * import { BentoFormLayout, BentoFormLayoutFieldTip } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayout, BentoFormLayoutFieldTip },\n * template: `\n * <bento-form-layout>\n * <template #error-message>There is an error. Correct the highlighted field.</template>\n *\n * <bento-input-field>Input field</bento-input-field>\n *\n * <bento-form-layout-field-tip>\n * <bento-dropdown label=\"Dropdown\" :items=\"dropdownItems\" placeholder=\"Select an animal\" />\n * <template #message>This is a small tip that can be used in small spaces</template>\n * </bento-form-layout-field-tip>\n *\n * <bento-form-layout-title subsection>\n * Section title\n * <template #description>Optional section description</template>\n * </bento-form-layout-title>\n * </bento-form-layout>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout.scss\" />\n","import { BentoAlertTypeOption } from '@/components/alert/alert.types';\n\nexport type BentoFormLayoutFieldTipTypeOption = `${BentoAlertTypeOption}`;\nexport const BentoFormLayoutFieldTipTypeOptions = ['warning', 'critical', 'highlight', 'success'];\n","<template>\n <div class=\"b-form-layout-field-tip\">\n <slot />\n <bento-alert variant=\"tip\" :type=\"type\">\n <template #description>\n <slot name=\"message\" />\n </template>\n </bento-alert>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { PropType } from 'vue';\n import { BentoFormLayoutFieldTipTypeOption, BentoFormLayoutFieldTipTypeOptions } from './form-layout-tip.types';\n import { BentoAlert } from '@/components/alert';\n\n defineProps({\n /**\n * Type of a alert; set a distinctive icon and color. Defaults to highlight.\n * @values highlight, success, critical, warning\n */\n type: {\n type: String as PropType<BentoFormLayoutFieldTipTypeOption>,\n default: 'highlight',\n validator: (value: BentoFormLayoutFieldTipTypeOption) => BentoFormLayoutFieldTipTypeOptions.includes(value),\n },\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * You can help users provide accurate and well formatted information\n * by using various elements that come with an input field.\n *\n * Use description/supporting text to add additional context to the\n * field or guidance how to format the input correctly.\n * Because description is always visible it should be the first\n * choice in providing guidance.\n *\n * @example\n * import { BentoFormLayoutFieldTip } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutFieldTip },\n * template: `\n * <bento-form-layout-field-tip>\n * <bento-dropdown label=\"Dropdown\" :items=\"dropdownItems\" placeholder=\"Select an animal\" />\n *\n * <template #message>This is a small tip that can be used in small spaces</template>\n * </bento-form-layout-field-tip>\n * `\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-field-tip.scss\" />\n","export type BentoLayoutGroupProportions =\n | '33-33-33'\n | '50-50'\n | '25-75'\n | '75-25'\n | '33-66'\n | '66-33'\n | '25'\n | '33'\n | '50'\n | '100';\n\nexport const BentoLayoutGroupProportions = [\n '100',\n '50',\n '33',\n '25',\n '66-33',\n '33-66',\n '75-25',\n '25-75',\n '50-50',\n '33-33-33',\n];\n","import { computed, onMounted, Ref } from 'vue';\nimport { BentoLayoutGroupProportions } from '../form-layout-group.types';\n\nconst DEFAULT_PROPORTION = 100;\n\n/**\n * Calculates the CSS classes based on the percentage\n * for each one of the layouts in format `##-##` or `##`.\n *\n * It receives a layout of type @see BentoLayoutGroupProportions to\n * generate the class and apply it to the children of the @see BentoFormLayoutGroup component\n *\n * @param {Ref<BentoLayoutGroupProportions>} layoutProp Layout string in the format `##` or `##-##`\n * @param {Ref<HTMLElement>} formLayoutGroupRef Reference to an HTML element of type BentoFormLayoutGroup\n */\nexport const useFormLayoutGroupPercentage = (\n layoutProp: Ref<BentoLayoutGroupProportions>,\n formLayoutGroupRef: Ref<HTMLElement>\n) => {\n // Split the `##-##` format into individual values [##, ##]\n const getLayoutValues = layout => layout.split?.('-').map(value => parseInt(value, 10));\n // Split the values only if the are in BentoLayoutGroupProportions, otherwise return 100%\n const layout = computed(() =>\n BentoLayoutGroupProportions.includes(layoutProp.value) ? getLayoutValues(layoutProp.value) : DEFAULT_PROPORTION\n );\n\n onMounted(() => {\n // Apply class to every immediate child\n const layoutClassName = formLayoutGroupRef.value.classList[0];\n const immediateChildren = formLayoutGroupRef.value.querySelectorAll(`.${layoutClassName} > *`); // Get immediate children\n immediateChildren.forEach((child, index) => {\n child.classList.add(`${layoutClassName}--${layout.value[index] || '100'}`); // 100% default\n });\n });\n};\n","<template>\n <div ref=\"formLayoutGroup\" class=\"b-form-layout-group\" :class=\"conditionalClasses\">\n <slot></slot>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, PropType, ref, toRef } from 'vue';\n import { useFormLayoutGroupPercentage } from './composable/use-form-layout-group-percentage';\n import { BentoLayoutGroupProportions } from './form-layout-group.types';\n\n const props = defineProps({\n /**\n * The layout of the pair group of components.\n * This will render the components within the width of the proportions.\n * Only two colums are available.\n *\n * If only one value is entered, then it will assume there's only one child in the group.\n * If two values are entered, the first value will be use for the first child and the second\n * value for the second child.\n *\n * If the value entered is not listed in the example\n * list below it will use 100% by default.\n * @example\n * '33-33-33'\n * '50-50'\n * '25-75'\n * '75-25'\n * '33-66'\n * '66-33'\n * '25'\n * '33'\n * '50'\n * '100'\n */\n layout: {\n type: String as PropType<BentoLayoutGroupProportions>,\n default: '100',\n validator: (value: BentoLayoutGroupProportions) => BentoLayoutGroupProportions.includes(value),\n },\n });\n\n const formLayoutGroup = ref(null);\n useFormLayoutGroupPercentage(toRef(props, 'layout'), formLayoutGroup);\n\n const conditionalClasses = computed(() => ({\n // Transform into column if the layout is unsopprted\n // \"form-layout.scss\" depends on this class\n 'b-form-layout-group--column': !BentoLayoutGroupProportions.includes(props.layout),\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * Use to provide horizontal layouts to build forms\n * with two fields per line.\n *\n * These can be used for field combinations,\n * such as post code and city or title and first name.\n *\n * @example\n * import { BentoFormLayoutGroup } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutGroup },\n * template: `\n * <bento-form-layout-group>\n * <first-element />\n * <second-element />\n * </bento-form-layout-group>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-group.scss\" />\n","<template>\n <div class=\"b-form-layout-title\" :class=\"conditionalClasses\">\n <bento-typography :el=\"el\" variant=\"title\" :medium=\"isSection\">\n <slot />\n </bento-typography>\n\n <bento-typography v-if=\"hasSlot('description')\" class=\"b-form-layout-title__description\" el=\"span\" wide>\n <slot name=\"description\" />\n </bento-typography>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, useSlots } from 'vue';\n import { BentoTypography, BentoTypographyElement } from '@/components/typography';\n import { useHasSlot } from '@/composables';\n\n const slots = useSlots();\n\n const props = defineProps({\n /**\n * Defines if the Form Layout title is\n * a \"section\" or a \"subsection\".\n * Default is \"section\" (false). Turn into \"true\" for \"subsection\"\n */\n subsection: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the HTML DOM element.\n * @values h1, h2, h3, h4, h5, h6, div, p, span\n */\n el: {\n type: BentoTypography.props.el.type,\n required: true,\n validator: (value: BentoTypographyElement) => Object.values(BentoTypographyElement).includes(value),\n },\n });\n\n // Uses \"medium\" typography if it is a section title\n const isSection = computed(() => !props.subsection);\n const hasSlot = useHasSlot(slots);\n const conditionalClasses = computed(() => ({\n 'b-form-layout-title--subsection': props.subsection,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * If you’re building a lengthy form, organise related\n * fields into sections and, if needed, subsections.\n *\n * A form can have a \"Section Title\" and multiple \"Subsection titles\".\n *\n * One of the values provided in @see BentoTypographyElement must always be provided as a string\n * to define correct HTML sementic from the application's context\n *\n * @example\n * import { BentoFormLayoutTitle } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutTitle },\n * template: `\n * <bento-form-layout-title subsection el=\"h2\">\n * Title\n * <template #description>Description text</template>\n * </bento-form-layout-title>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-title.scss\" />\n"],"names":["__default__$3","slots","useSlots","hasSlot","useHasSlot","formLayoutElement","computed","props","hasActions","provide","FORM_LAYOUT_LOADING_INJECTION_KEY","toRef","BentoFormLayoutFieldTipTypeOptions","__default__$2","BentoLayoutGroupProportions","DEFAULT_PROPORTION","useFormLayoutGroupPercentage","layoutProp","formLayoutGroupRef","getLayoutValues","layout2","_a","value","layout","onMounted","layoutClassName","child","index","__default__$1","formLayoutGroup","ref","conditionalClasses","__default__","isSection"],"mappings":";;;;;;;AAsFI,MAAAA,IAAA,CAAA;;;;;;;;;;;;;;;iBA1DAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAeAI,IAAAC,EAAA,MAAAC,EAAA,OAAA,SAAA,KAAA,GACAC,IAAAF,EAAA,MAAAH,EAAA,cAAA,KAAAA,EAAA,eAAA,CAAA;AAEA,WAAAM,EAAAC,GAAAC,EAAAJ,GAAA,SAAA,CAAA;;;;;;;;;;;;;;;;;;qBC5CGK,IAAA,CAAA,WAAA,YAAA,aAAA,SAAA,GCiDHC,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBCxCGC,IAAA;AAAA,EAAoC;AAAA,EACvC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAEJ,GCpBAC,IAAA,KAYaC,IAAA,CAAAC,GAAAC,MAAA;AAKT,QAAAC,IAAA,CAAAC,MAAA;;AAAA,YAAAC,IAAAD,EAAA,UAAA,gBAAAC,EAAA,KAAAD,GAAA,KAAA,IAAA,CAAAE,MAAA,SAAAA,GAAA,EAAA;AAAA,KAEAC,IAAAjB;AAAA,IAAe,MAAAQ,EAAA,SAAAG,EAAA,KAAA,IAAAE,EAAAF,EAAA,KAAA,IAAAF;AAAA,EACkF;AAGjG,EAAAS,EAAA,MAAA;AAEI,UAAAC,IAAAP,EAAA,MAAA,UAAA,CAAA;AAEA,IADAA,EAAA,MAAA,iBAAA,IAAAO,OAAA,EACA,QAAA,CAAAC,GAAAC,MAAA;AACI,MAAAD,EAAA,UAAA,IAAA,GAAAD,MAAAF,EAAA,MAAAI,CAAA,KAAA,OAAA;AAAA,IAAyE,CAAA;AAAA,EAC5E,CAAA;AAET,GCuCIC,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA/BAC,IAAAC,EAAA,IAAA;AACA,IAAAd,EAAAL,EAAAJ,GAAA,QAAA,GAAAsB,CAAA;AAEA,UAAAE,IAAAzB,EAAA,OAAA;AAAA;AAAA;AAAA,MAA2C,+BAAA,CAAAQ,EAAA,SAAAP,EAAA,MAAA;AAAA,IAG0C,EAAA;;;;;;;;;;;;;;;;;qBCwBrFyB,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;iBAvDA/B,IAAAC,EAAA,GAyBA+B,IAAA3B,EAAA,MAAA,CAAAC,EAAA,UAAA,GACAJ,IAAAC,EAAAH,CAAA,GACA8B,IAAAzB,EAAA,OAAA;AAAA,MAA2C,mCAAAC,EAAA;AAAA,IACE,EAAA;;;;;;;;;;;;;;;;;;"}
package/dist/header.js CHANGED
@@ -1,15 +1,15 @@
1
- import { defineComponent as A, computed as p } from "vue";
2
- import { BentoMenu as C } from "./menu.js";
1
+ import { defineComponent as A, computed as _ } from "vue";
2
+ import { BentoMenu as O } from "./menu.js";
3
3
  import { BentoButtonActions as E } from "./button.js";
4
4
  import { n as I } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
5
5
  import { BentoInfoIcon as w } from "./info-icon.js";
6
6
  import { u as U } from "./chunks/use-has-slot.6052d56a.js";
7
- import { B, c as b, a as X } from "./chunks/index.1645ffcb.js";
8
- import { u as R } from "./chunks/i18n.155748d6.js";
9
- import { c as _, a as H } from "./chunks/index.86453263.js";
10
- import { r as l, t as i, e as g, g as y, d as P, f as Y } from "./chunks/index.f55fdc32.js";
7
+ import { B, c as b, a as X } from "./chunks/index.74da0d41.js";
8
+ import { u as P } from "./chunks/i18n.155748d6.js";
9
+ import { c as p, a as R } from "./chunks/index.86453263.js";
10
+ import { r as l, t as i, e as g, g as y, d as H, f as Y } from "./chunks/index.f55fdc32.js";
11
11
  import { e as F } from "./chunks/index.fdf12170.js";
12
- import "./assets/index37.css";
12
+ import "./assets/index36.css";
13
13
  function G(e, t) {
14
14
  l(2, arguments);
15
15
  var n = i(e), a = i(t), s = n.getFullYear() - a.getFullYear(), r = n.getMonth() - a.getMonth();
@@ -42,13 +42,13 @@ function z(e) {
42
42
  }
43
43
  function j(e, t) {
44
44
  l(2, arguments);
45
- var n = i(e), a = i(t), s = _(n, a), r = Math.abs(G(n, a)), c;
45
+ var n = i(e), a = i(t), s = p(n, a), r = Math.abs(G(n, a)), c;
46
46
  if (r < 1)
47
47
  c = 0;
48
48
  else {
49
49
  n.getMonth() === 1 && n.getDate() > 27 && n.setDate(30), n.setMonth(n.getMonth() - s * r);
50
- var u = _(n, a) === -s;
51
- z(i(e)) && r === 1 && _(e, a) === 1 && (u = !1), c = s * (r - Number(u));
50
+ var u = p(n, a) === -s;
51
+ z(i(e)) && r === 1 && p(e, a) === 1 && (u = !1), c = s * (r - Number(u));
52
52
  }
53
53
  return c === 0 ? 0 : c;
54
54
  }
@@ -64,14 +64,14 @@ function Q(e, t) {
64
64
  var a = n.locale || g;
65
65
  if (!a.formatDistance)
66
66
  throw new RangeError("locale must contain formatDistance property");
67
- var s = _(e, t);
67
+ var s = p(e, t);
68
68
  if (isNaN(s))
69
69
  throw new RangeError("Invalid time value");
70
- var r = H(n);
70
+ var r = R(n);
71
71
  r.addSuffix = !!n.addSuffix, r.comparison = s;
72
72
  var c, u;
73
73
  s > 0 ? (c = i(t), u = i(e)) : (c = i(e), u = i(t));
74
- var f = k(u, c), x = (y(u) - y(c)) / 1e3, o = Math.round((f - x) / 60), d;
74
+ var f = k(u, c), x = (y(u) - y(c)) / 1e3, o = Math.round((f - x) / 60), m;
75
75
  if (o < 2)
76
76
  return n.includeSeconds ? f < 5 ? a.formatDistance("lessThanXSeconds", 5, r) : f < 10 ? a.formatDistance("lessThanXSeconds", 10, r) : f < 20 ? a.formatDistance("lessThanXSeconds", 20, r) : f < 40 ? a.formatDistance("halfAMinute", null, r) : f < 60 ? a.formatDistance("lessThanXMinutes", 1, r) : a.formatDistance("xMinutes", 1, r) : o === 0 ? a.formatDistance("lessThanXMinutes", 1, r) : a.formatDistance("xMinutes", o, r);
77
77
  if (o < 45)
@@ -79,22 +79,22 @@ function Q(e, t) {
79
79
  if (o < 90)
80
80
  return a.formatDistance("aboutXHours", 1, r);
81
81
  if (o < D) {
82
- var S = Math.round(o / 60);
83
- return a.formatDistance("aboutXHours", S, r);
82
+ var N = Math.round(o / 60);
83
+ return a.formatDistance("aboutXHours", N, r);
84
84
  } else {
85
85
  if (o < J)
86
86
  return a.formatDistance("xDays", 1, r);
87
87
  if (o < h) {
88
- var N = Math.round(o / D);
89
- return a.formatDistance("xDays", N, r);
88
+ var S = Math.round(o / D);
89
+ return a.formatDistance("xDays", S, r);
90
90
  } else if (o < K)
91
- return d = Math.round(o / h), a.formatDistance("aboutXMonths", d, r);
91
+ return m = Math.round(o / h), a.formatDistance("aboutXMonths", m, r);
92
92
  }
93
- if (d = j(u, c), d < 12) {
94
- var O = Math.round(o / h);
95
- return a.formatDistance("xMonths", O, r);
93
+ if (m = j(u, c), m < 12) {
94
+ var C = Math.round(o / h);
95
+ return a.formatDistance("xMonths", C, r);
96
96
  } else {
97
- var M = d % 12, v = Math.floor(d / 12);
97
+ var M = m % 12, v = Math.floor(m / 12);
98
98
  return M < 3 ? a.formatDistance("aboutXYears", v, r) : M < 9 ? a.formatDistance("overXYears", v, r) : a.formatDistance("almostXYears", v + 1, r);
99
99
  }
100
100
  }
@@ -153,7 +153,7 @@ const Z = {}, tt = /* @__PURE__ */ A({
153
153
  }
154
154
  },
155
155
  setup(e) {
156
- const t = e, n = p(() => t.actions.slice(0, t.displayedActions)), a = p(
156
+ const t = e, n = _(() => t.actions.slice(0, t.displayedActions)), a = _(
157
157
  () => t.displayedActions && t.displayedActions < t.actions.length ? t.actions.slice(t.displayedActions, t.actions.length).map((s) => ({
158
158
  text: s.title,
159
159
  handler: s.event,
@@ -162,7 +162,7 @@ const Z = {}, tt = /* @__PURE__ */ A({
162
162
  disabled: s.disabled
163
163
  })) : []
164
164
  );
165
- return { __sfc: !0, props: t, computedActions: n, computedMenuActions: a, BentoMenu: C, BentoButtonActions: E };
165
+ return { __sfc: !0, props: t, computedActions: n, computedMenuActions: a, BentoMenu: O, BentoButtonActions: E };
166
166
  }
167
167
  });
168
168
  var et = function() {
@@ -179,7 +179,7 @@ var et = function() {
179
179
  null
180
180
  );
181
181
  const rt = at.exports;
182
- var m = /* @__PURE__ */ ((e) => (e.PAGE = "page", e.COMPONENT = "component", e))(m || {});
182
+ var d = /* @__PURE__ */ ((e) => (e.PAGE = "page", e.COMPONENT = "component", e))(d || {});
183
183
  const st = {
184
184
  "en-US": {
185
185
  lastUpdated: "Last updated: {date} ago"
@@ -199,8 +199,8 @@ const st = {
199
199
  */
200
200
  variant: {
201
201
  type: String,
202
- default: m.PAGE,
203
- validator: (e) => Object.values(m).includes(e)
202
+ default: d.PAGE,
203
+ validator: (e) => Object.values(d).includes(e)
204
204
  },
205
205
  /**
206
206
  * Text used as a title
@@ -223,12 +223,14 @@ const st = {
223
223
  lastUpdated: { type: [Date, Number], default: null }
224
224
  },
225
225
  setup(e, { slots: t }) {
226
- const { t: n, locale: a } = R(), s = { de: P, enUS: g, fr: Y }, r = p(() => ({
227
- el: e.variant === m.PAGE ? b.H1 : b.H2,
226
+ const { t: n, locale: a } = P(), s = { de: H, enUS: g, fr: Y }, r = _(() => ({
227
+ "b-header--component": e.variant === d.COMPONENT
228
+ })), c = _(() => ({
229
+ el: e.variant === d.PAGE ? b.H1 : b.H2,
228
230
  variant: X.TITLE,
229
- medium: e.variant === m.COMPONENT,
230
- large: e.variant === m.PAGE
231
- })), c = p(
231
+ medium: e.variant === d.COMPONENT,
232
+ large: e.variant === d.PAGE
233
+ })), u = _(
232
234
  () => e.lastUpdated ? n("lastUpdated", {
233
235
  date: V(e.lastUpdated, {
234
236
  locale: s[a.value.substring(0, 2)] || g
@@ -237,21 +239,22 @@ const st = {
237
239
  );
238
240
  return {
239
241
  hasSlot: U(t),
240
- timestamp: c,
241
- typography: r
242
+ conditionalClasses: r,
243
+ timestamp: u,
244
+ typography: c
242
245
  };
243
246
  }
244
247
  });
245
248
  var it = function() {
246
249
  var t = this, n = t._self._c;
247
- return t._self._setupProxy, n("div", { staticClass: "b-header" }, [n("div", { staticClass: "b-header__wrapper" }, [n("div", { staticClass: "b-header__title" }, [n("div", [n("bento-typography", t._b({ staticClass: "b-header__text" }, "bento-typography", t.typography, !1), [t._v(t._s(t.title))]), t.infoIconTooltipText ? n("bento-info-icon", { staticClass: "b-header__tooltip", attrs: { "tooltip-text": t.infoIconTooltipText } }) : t._e()], 1), t.lastUpdated ? n("bento-typography", { staticClass: "b-header__timestamp", attrs: { el: "div", variant: "caption" } }, [t._v(" " + t._s(t.timestamp) + " ")]) : t._e()], 1), t.actions ? n("button-actions-with-menu", { staticClass: "b-header__actions", attrs: { actions: t.actions, "displayed-actions": 2 } }) : t._e()], 1)]);
250
+ return t._self._setupProxy, n("div", { staticClass: "b-header", class: t.conditionalClasses }, [n("div", { staticClass: "b-header__wrapper" }, [n("div", { staticClass: "b-header__title" }, [n("div", [n("bento-typography", t._b({ staticClass: "b-header__text" }, "bento-typography", t.typography, !1), [t._v(t._s(t.title))]), t.infoIconTooltipText ? n("bento-info-icon", { staticClass: "b-header__tooltip", attrs: { "tooltip-text": t.infoIconTooltipText } }) : t._e()], 1), t.lastUpdated ? n("bento-typography", { staticClass: "b-header__timestamp", attrs: { el: "div", variant: "caption" } }, [t._v(" " + t._s(t.timestamp) + " ")]) : t._e()], 1), t.actions ? n("button-actions-with-menu", { staticClass: "b-header__actions", attrs: { actions: t.actions, "displayed-actions": 2 } }) : t._e()], 1)]);
248
251
  }, ct = [], ut = /* @__PURE__ */ I(
249
252
  ot,
250
253
  it,
251
254
  ct,
252
255
  !1,
253
256
  null,
254
- "2c272b7c",
257
+ "7b42ede3",
255
258
  null,
256
259
  null
257
260
  );