@adyen/bento-vue3 1.7.0 → 1.8.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/components.d.ts +2 -0
  2. package/dist/@types/packages/core/src/components/button/button.types.d.ts +1 -1
  3. package/dist/@types/packages/vue2/src/components/action-bar/action-bar.vue.d.ts +11 -0
  4. package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.types.d.ts +1 -1
  5. package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.vue.d.ts +7 -2
  6. package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +25 -13
  7. package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +25 -0
  8. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +13 -1
  9. package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +9 -0
  10. package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.types.d.ts +6 -2
  11. package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.vue.d.ts +153 -12
  12. package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.types.d.ts +1 -1
  13. package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +12 -0
  14. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +319 -96
  15. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +12 -3
  16. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +30 -24
  17. package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +1 -0
  18. package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +9 -0
  19. package/dist/@types/packages/vue2/src/components/internal/calendar/calendar.types.d.ts +12 -0
  20. package/dist/@types/packages/vue2/src/components/internal/calendar/calendar.vue.d.ts +11 -1
  21. package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/composables/granular-min-max-date.d.ts +2 -0
  22. package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/composables/granular-min-max-date.types.d.ts +13 -0
  23. package/dist/@types/packages/vue2/src/components/internal/calendar/composables/use-granularity-adjustments.d.ts +2 -0
  24. package/dist/@types/packages/vue2/src/components/internal/calendar/composables/use-granularity-adjustments.types.d.ts +14 -0
  25. package/dist/@types/packages/vue2/src/components/internal/calendar/composables/use-granularity-memory.d.ts +2 -0
  26. package/dist/@types/packages/vue2/src/components/internal/calendar/composables/use-granularity-memory.types.d.ts +22 -0
  27. package/dist/@types/packages/vue2/src/components/internal/field-label/field-label.vue.d.ts +48 -0
  28. package/dist/@types/packages/vue2/src/components/internal/field-label/index.d.ts +1 -0
  29. package/dist/@types/packages/vue2/src/components/internal/grid-layout/grid-layout.vue.d.ts +11 -0
  30. package/dist/@types/packages/vue2/src/components/internal/index.d.ts +1 -0
  31. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +2 -1
  32. package/dist/@types/packages/vue2/src/components/popover/popover.keys.d.ts +1 -0
  33. package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +18 -24
  34. package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +1 -0
  35. package/dist/@types/packages/vue2/src/components/structured-list/structured-list.keys.d.ts +1 -0
  36. package/dist/@types/packages/vue2/src/components/structured-list/structured-list.vue.d.ts +20 -1
  37. package/dist/@types/packages/vue2/src/components/summary-grid/summary-grid.types.d.ts +4 -4
  38. package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +9 -0
  39. package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +19 -2
  40. package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +4 -2
  41. package/dist/@types/packages/vue2/src/components/timeline/timeline.vue.d.ts +21 -3
  42. package/dist/@types/packages/vue2/src/index.d.ts +1 -0
  43. package/dist/accordion.js +2 -2
  44. package/dist/action-bar.js +146 -116
  45. package/dist/action-bar.js.map +1 -1
  46. package/dist/alert.js +3 -3
  47. package/dist/assets/base-modal.css +1 -1
  48. package/dist/assets/calendar.css +1 -1
  49. package/dist/assets/checkbox.css +1 -1
  50. package/dist/assets/controls-group.css +1 -1
  51. package/dist/assets/dropdown.css +1 -1
  52. package/dist/assets/field-label.css +1 -0
  53. package/dist/assets/grid-layout.css +1 -1
  54. package/dist/assets/index.css +1 -1
  55. package/dist/assets/index10.css +1 -1
  56. package/dist/assets/index11.css +1 -1
  57. package/dist/assets/index12.css +1 -1
  58. package/dist/assets/index13.css +1 -1
  59. package/dist/assets/index14.css +1 -1
  60. package/dist/assets/index15.css +1 -1
  61. package/dist/assets/index16.css +1 -1
  62. package/dist/assets/index17.css +1 -1
  63. package/dist/assets/index18.css +1 -1
  64. package/dist/assets/index19.css +1 -1
  65. package/dist/assets/index2.css +1 -1
  66. package/dist/assets/index20.css +1 -1
  67. package/dist/assets/index21.css +1 -1
  68. package/dist/assets/index22.css +1 -1
  69. package/dist/assets/index23.css +1 -1
  70. package/dist/assets/index24.css +1 -1
  71. package/dist/assets/index25.css +1 -1
  72. package/dist/assets/index26.css +1 -1
  73. package/dist/assets/index27.css +1 -1
  74. package/dist/assets/index28.css +1 -1
  75. package/dist/assets/index29.css +1 -1
  76. package/dist/assets/index3.css +1 -1
  77. package/dist/assets/index30.css +1 -1
  78. package/dist/assets/index31.css +1 -1
  79. package/dist/assets/index32.css +1 -1
  80. package/dist/assets/index33.css +1 -1
  81. package/dist/assets/index34.css +1 -1
  82. package/dist/assets/index35.css +1 -1
  83. package/dist/assets/index36.css +1 -1
  84. package/dist/assets/index37.css +1 -1
  85. package/dist/assets/index38.css +1 -1
  86. package/dist/assets/index39.css +1 -1
  87. package/dist/assets/index40.css +1 -1
  88. package/dist/assets/index41.css +1 -1
  89. package/dist/assets/index42.css +1 -1
  90. package/dist/assets/index43.css +1 -1
  91. package/dist/assets/index44.css +1 -1
  92. package/dist/assets/index45.css +1 -1
  93. package/dist/assets/index46.css +1 -1
  94. package/dist/assets/index5.css +1 -1
  95. package/dist/assets/index6.css +1 -1
  96. package/dist/assets/index7.css +1 -1
  97. package/dist/assets/index8.css +1 -1
  98. package/dist/assets/index9.css +1 -1
  99. package/dist/assets/loading-button.css +1 -1
  100. package/dist/avatar-image.js +1 -1
  101. package/dist/badge.js +1 -1
  102. package/dist/button.js +53 -51
  103. package/dist/button.js.map +1 -1
  104. package/dist/card.js +2 -2
  105. package/dist/checkbox.js +6 -6
  106. package/dist/chunks/{base-button.7897a95e.js → base-button.aa085dfa.js} +2 -2
  107. package/dist/chunks/{base-button.7897a95e.js.map → base-button.aa085dfa.js.map} +1 -1
  108. package/dist/chunks/{base-modal.0c85e7cb.js → base-modal.3dcf8376.js} +119 -105
  109. package/dist/chunks/base-modal.3dcf8376.js.map +1 -0
  110. package/dist/chunks/{button-actions-with-menu.fa35390c.js → button-actions-with-menu.3f52ea2d.js} +7 -7
  111. package/dist/chunks/{button-actions-with-menu.fa35390c.js.map → button-actions-with-menu.3f52ea2d.js.map} +1 -1
  112. package/dist/chunks/{button.e5177388.js → button.82ed953e.js} +2 -2
  113. package/dist/chunks/button.82ed953e.js.map +1 -0
  114. package/dist/chunks/calendar.d4ab387d.js +1037 -0
  115. package/dist/chunks/calendar.d4ab387d.js.map +1 -0
  116. package/dist/chunks/checkbox.03c4b0fe.js +265 -0
  117. package/dist/chunks/checkbox.03c4b0fe.js.map +1 -0
  118. package/dist/chunks/controls-group.807b5fb0.js +95 -0
  119. package/dist/chunks/controls-group.807b5fb0.js.map +1 -0
  120. package/dist/chunks/{copy.86236c8d.js → copy.28bd4298.js} +4 -4
  121. package/dist/chunks/{copy.86236c8d.js.map → copy.28bd4298.js.map} +1 -1
  122. package/dist/chunks/{dropdown-default-textbox.0b38fac3.js → dropdown-default-textbox.74c4584a.js} +2 -2
  123. package/dist/chunks/{dropdown-default-textbox.0b38fac3.js.map → dropdown-default-textbox.74c4584a.js.map} +1 -1
  124. package/dist/chunks/{dropdown.afff433b.js → dropdown.502e1f5c.js} +314 -337
  125. package/dist/chunks/dropdown.502e1f5c.js.map +1 -0
  126. package/dist/chunks/field-label.61679178.js +132 -0
  127. package/dist/chunks/field-label.61679178.js.map +1 -0
  128. package/dist/chunks/{fixed-scroller.e5aa7b00.js → fixed-scroller.92bb77a6.js} +2 -2
  129. package/dist/chunks/{fixed-scroller.e5aa7b00.js.map → fixed-scroller.92bb77a6.js.map} +1 -1
  130. package/dist/chunks/{footer-actions.1ce44374.js → footer-actions.cefaf1e2.js} +3 -3
  131. package/dist/chunks/{footer-actions.1ce44374.js.map → footer-actions.cefaf1e2.js.map} +1 -1
  132. package/dist/chunks/{grid-layout.7c919507.js → grid-layout.c2fe3057.js} +43 -34
  133. package/dist/chunks/grid-layout.c2fe3057.js.map +1 -0
  134. package/dist/chunks/{index.fa7b44f1.js → index.0ee895e0.js} +2 -2
  135. package/dist/chunks/{index.fa7b44f1.js.map → index.0ee895e0.js.map} +1 -1
  136. package/dist/chunks/{index.bcc58fdd.js → index.7262642e.js} +3 -3
  137. package/dist/chunks/{index.bcc58fdd.js.map → index.7262642e.js.map} +1 -1
  138. package/dist/chunks/index.726e2f3c.js +339 -0
  139. package/dist/chunks/index.726e2f3c.js.map +1 -0
  140. package/dist/chunks/{index.2bd3812b.js → index.75f3672e.js} +2 -2
  141. package/dist/chunks/{index.2bd3812b.js.map → index.75f3672e.js.map} +1 -1
  142. package/dist/chunks/{index.6a665ade.js → index.abb2a1d5.js} +3 -3
  143. package/dist/chunks/{index.6a665ade.js.map → index.abb2a1d5.js.map} +1 -1
  144. package/dist/chunks/index.b043371e.js +150 -0
  145. package/dist/chunks/index.b043371e.js.map +1 -0
  146. package/dist/chunks/{index.e579bc02.js → index.cf0d3be3.js} +19 -17
  147. package/dist/chunks/{index.e579bc02.js.map → index.cf0d3be3.js.map} +1 -1
  148. package/dist/chunks/{index.c207e9ab.js → index.d2542c6a.js} +132 -135
  149. package/dist/chunks/index.d2542c6a.js.map +1 -0
  150. package/dist/chunks/index.d80206ed.js +10 -0
  151. package/dist/chunks/index.d80206ed.js.map +1 -0
  152. package/dist/chunks/index.e9156fe3.js +817 -0
  153. package/dist/chunks/index.e9156fe3.js.map +1 -0
  154. package/dist/chunks/{listbox-option-tag.809ec40e.js → listbox-option-tag.5b00c85f.js} +3 -3
  155. package/dist/chunks/{listbox-option-tag.809ec40e.js.map → listbox-option-tag.5b00c85f.js.map} +1 -1
  156. package/dist/chunks/{listbox.f6e5a11d.js → listbox.d07c24e6.js} +4 -4
  157. package/dist/chunks/{listbox.f6e5a11d.js.map → listbox.d07c24e6.js.map} +1 -1
  158. package/dist/chunks/loading-button.ad7cfaee.js +108 -0
  159. package/dist/chunks/loading-button.ad7cfaee.js.map +1 -0
  160. package/dist/chunks/{tooltip.f769eb14.js → tooltip.054d2eb6.js} +3 -3
  161. package/dist/chunks/{tooltip.f769eb14.js.map → tooltip.054d2eb6.js.map} +1 -1
  162. package/dist/code-snippet.js +6 -6
  163. package/dist/code-snippet.js.map +1 -1
  164. package/dist/country.js +2 -2
  165. package/dist/currency.js +1 -1
  166. package/dist/data-grid.js +847 -820
  167. package/dist/data-grid.js.map +1 -1
  168. package/dist/date-picker.js +114 -138
  169. package/dist/date-picker.js.map +1 -1
  170. package/dist/date-range-picker.js +2 -2
  171. package/dist/date.js +1 -1
  172. package/dist/divider.js +1 -1
  173. package/dist/dropdown.js +4 -4
  174. package/dist/empty-state.js +3 -3
  175. package/dist/filter-bar.js +17 -16
  176. package/dist/filter-bar.js.map +1 -1
  177. package/dist/focus-trap.js +1 -1
  178. package/dist/form-layout.js +2 -2
  179. package/dist/header.js +76 -80
  180. package/dist/header.js.map +1 -1
  181. package/dist/index.js +207 -205
  182. package/dist/index.js.map +1 -1
  183. package/dist/info-icon.js +3 -3
  184. package/dist/input-field.js +136 -158
  185. package/dist/input-field.js.map +1 -1
  186. package/dist/internal.js +14 -13
  187. package/dist/link.js +2 -2
  188. package/dist/loading-indicator.js +1 -1
  189. package/dist/menu.js +1 -1
  190. package/dist/modal.js +4 -4
  191. package/dist/modal.js.map +1 -1
  192. package/dist/pagination.js +4 -4
  193. package/dist/payment-method.js +2 -2
  194. package/dist/popover.js +3 -359
  195. package/dist/popover.js.map +1 -1
  196. package/dist/popper-container.js +1 -1
  197. package/dist/radio-group.js +4 -4
  198. package/dist/search-bar.js +2 -2
  199. package/dist/segmented-control.js +3 -3
  200. package/dist/sidepanel.js +5 -5
  201. package/dist/status.js +2 -2
  202. package/dist/stepper.js +3 -3
  203. package/dist/structured-list.js +1 -1
  204. package/dist/summary-grid.js +4 -4
  205. package/dist/summary-grid.js.map +1 -1
  206. package/dist/tabs.js +3 -3
  207. package/dist/tag.js +3 -3
  208. package/dist/textarea.js +125 -149
  209. package/dist/textarea.js.map +1 -1
  210. package/dist/timeline.js +312 -229
  211. package/dist/timeline.js.map +1 -1
  212. package/dist/toast.js +3 -3
  213. package/dist/toggle.js +2 -2
  214. package/dist/tutorial.js +49 -49
  215. package/dist/typography.js +1 -1
  216. package/dist/web-types.json +1 -1
  217. package/package.json +2 -2
  218. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/__mocks__/base-modal.vue.d.ts +0 -120
  219. package/dist/assets/error-message.css +0 -1
  220. package/dist/chunks/base-modal.0c85e7cb.js.map +0 -1
  221. package/dist/chunks/button.e5177388.js.map +0 -1
  222. package/dist/chunks/calendar.c83d4e99.js +0 -898
  223. package/dist/chunks/calendar.c83d4e99.js.map +0 -1
  224. package/dist/chunks/checkbox.3cdbdd52.js +0 -235
  225. package/dist/chunks/checkbox.3cdbdd52.js.map +0 -1
  226. package/dist/chunks/controls-group.38b436f6.js +0 -136
  227. package/dist/chunks/controls-group.38b436f6.js.map +0 -1
  228. package/dist/chunks/dropdown.afff433b.js.map +0 -1
  229. package/dist/chunks/error-message.64e1964b.js +0 -49
  230. package/dist/chunks/error-message.64e1964b.js.map +0 -1
  231. package/dist/chunks/grid-layout.7c919507.js.map +0 -1
  232. package/dist/chunks/index.369b0e66.js +0 -734
  233. package/dist/chunks/index.369b0e66.js.map +0 -1
  234. package/dist/chunks/index.77f35162.js +0 -134
  235. package/dist/chunks/index.77f35162.js.map +0 -1
  236. package/dist/chunks/index.c207e9ab.js.map +0 -1
  237. package/dist/chunks/loading-button.746b7fa1.js +0 -109
  238. package/dist/chunks/loading-button.746b7fa1.js.map +0 -1
@@ -0,0 +1,339 @@
1
+ import { defineComponent as T, computed as r, resolveComponent as B, openBlock as s, createBlock as f, withCtx as m, createTextVNode as R, toDisplayString as j, normalizeClass as C, createVNode as d, useSlots as x, useAttrs as U, inject as Y, ref as q, toRefs as z, Transition as H, unref as e, createElementBlock as l, createCommentVNode as i, renderSlot as g, createElementVNode as J } from "vue";
2
+ import { c as K, a as $, b as M } from "./index.7262642e.js";
3
+ import { B as G, a as E } from "./index.75f3672e.js";
4
+ import { _ as h } from "./_plugin-vue_export-helper.dad06003.js";
5
+ import { a as Q } from "./button.82ed953e.js";
6
+ import { C as W } from "./cross.5c36a670.js";
7
+ import { u as X } from "./use-has-slot.4d98bf29.js";
8
+ import { u as Z } from "./aria-label.ac9651a5.js";
9
+ import { BentoButtonActionsLayout as A, BentoButtonActions as tt } from "../button.js";
10
+ import "../assets/index34.css";
11
+ const et = T({
12
+ components: { BentoTypography: G },
13
+ props: {
14
+ /**
15
+ * Indicates if the popover contains an image.
16
+ */
17
+ isImageTitle: { type: Boolean, default: !1 },
18
+ /**
19
+ * Indicates the title you want to give the popover.
20
+ */
21
+ title: { type: String, default: null }
22
+ },
23
+ setup(t) {
24
+ const a = r(() => !t.isImageTitle), o = r(
25
+ () => t.isImageTitle ? E.SUBTITLE : E.BODY
26
+ );
27
+ return {
28
+ // Values
29
+ isStrongest: a,
30
+ titleVariant: o
31
+ };
32
+ }
33
+ });
34
+ function ot(t, a, o, _, b, u) {
35
+ const p = B("bento-typography");
36
+ return s(), f(p, {
37
+ strongest: t.isStrongest,
38
+ variant: t.titleVariant,
39
+ el: "span"
40
+ }, {
41
+ default: m(() => [
42
+ R(j(t.title), 1)
43
+ ]),
44
+ _: 1
45
+ }, 8, ["strongest", "variant"]);
46
+ }
47
+ const st = /* @__PURE__ */ h(et, [["render", ot]]), at = T({
48
+ name: "bento-popover-dismiss-button",
49
+ components: { BentoButton: Q, CrossIcon: W },
50
+ props: {
51
+ onImage: {
52
+ type: Boolean,
53
+ default: !1
54
+ }
55
+ },
56
+ setup(t) {
57
+ return {
58
+ // Values
59
+ conditionalClass: r(() => ({ "b-popover-dismiss-button--on-image": t.onImage }))
60
+ };
61
+ }
62
+ });
63
+ function it(t, a, o, _, b, u) {
64
+ const p = B("cross-icon"), v = B("bento-button");
65
+ return s(), f(v, {
66
+ class: C(t.conditionalClass),
67
+ variant: "tertiary",
68
+ onClick: a[0] || (a[0] = (k) => t.$emit("click"))
69
+ }, {
70
+ iconLeft: m(() => [
71
+ d(p, { "svg-title": "dismiss" })
72
+ ]),
73
+ _: 1
74
+ }, 8, ["class"]);
75
+ }
76
+ const I = /* @__PURE__ */ h(at, [["render", it], ["__scopeId", "data-v-df01cfb8"]]), O = { ...K }, nt = Symbol("popover offset injection key"), lt = {
77
+ key: 0,
78
+ class: "b-popover__image"
79
+ }, rt = {
80
+ key: 0,
81
+ class: "b-popover__image-dismiss-button"
82
+ }, pt = {
83
+ key: 1,
84
+ class: "b-popover__header"
85
+ }, ct = { class: "b-popover__header-title" }, dt = { key: 0 }, ut = {
86
+ key: 3,
87
+ class: "b-popover__footer"
88
+ }, ft = {};
89
+ var L;
90
+ const mt = /* @__PURE__ */ T({
91
+ ...ft,
92
+ __name: "popover",
93
+ props: {
94
+ /**
95
+ * List of actions that will be used to render the buttons.
96
+ * First element in the list will be rendered as "primary".
97
+ * All elements after the first will be rendered as "secondary".
98
+ *
99
+ * Each object in the list should have a `title`, an `event` and
100
+ * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.
101
+ *
102
+ * `title`: Button's text.
103
+ *
104
+ * `event`: Event triggered when clicking the Button.
105
+ *
106
+ * `icon`: Vue Icon from the library `@adyen/ui-assets-icons-16`.
107
+ *
108
+ * ```
109
+ * [{
110
+ * title: 'Primary',
111
+ * event: () => { ... },
112
+ * icon: FourPeopleIcon
113
+ * }, {
114
+ * title: 'Secondary',
115
+ * event: () => { ... }
116
+ * }]
117
+ * ```
118
+ */
119
+ actions: {
120
+ type: Array,
121
+ default: null
122
+ },
123
+ /**
124
+ * Defines the layout in which the button actions is presented.
125
+ * It can be one of:
126
+ *
127
+ * @values BUTTONS_END
128
+ * @values FILL_CONTAINER
129
+ * @values SPACE_BETWEEN
130
+ * @values VERTICAL_STACK
131
+ */
132
+ actionsLayout: {
133
+ type: String,
134
+ default: A.BUTTONS_END,
135
+ validator: (t) => Object.values(A).includes(t)
136
+ },
137
+ /**
138
+ * @deprecated from version 2.0.0. Use the aria-label attribute instead.
139
+ */
140
+ /**
141
+ * Defines a string value that provides an accessible name for the popover.
142
+ */
143
+ ariaLabel: {
144
+ type: String,
145
+ default: null
146
+ },
147
+ /**
148
+ * Adds a divider line to the actions section, reduces the top/bottom paddings and removes all padding in the "default" slot.
149
+ */
150
+ divider: {
151
+ type: Boolean,
152
+ default: !1
153
+ },
154
+ /**
155
+ * Supports disabling focus trap functionality to avoid scroll into view behavior when we don't need it.
156
+ * */
157
+ disableFocusTrap: {
158
+ type: Boolean,
159
+ default: !1
160
+ },
161
+ /**
162
+ * Adds a "dismiss" icon that triggers the "dismiss" event. Requires the `title` prop to be set.
163
+ */
164
+ dismissible: {
165
+ type: Boolean,
166
+ default: !1
167
+ },
168
+ /**
169
+ * Allows to configure to fallback position to the one specified, it could be ['right', 'top', ...].
170
+ * Useful when not using auto as starting placement.
171
+ * https://floating-ui.com/docs/flip#fallbackplacements
172
+ */
173
+ fallbackPosition: {
174
+ type: Array,
175
+ default: () => ["bottom-start", "right-start", "top-start", "left-start"]
176
+ },
177
+ /**
178
+ * Sets the size of the container to fit its content
179
+ */
180
+ fitContent: { type: Boolean, default: !1 },
181
+ /**
182
+ * Instructs popover to be visible outside of the containing container.
183
+ * Useful when component would be used in limited containers like Modal, Side panel, etc.
184
+ * @see {@link https://floating-ui.com/docs/usefloating#strategy}
185
+ */
186
+ fixedPositioning: {
187
+ type: Boolean,
188
+ default: !1
189
+ },
190
+ /**
191
+ * Toggles the popover open and closed
192
+ */
193
+ open: {
194
+ type: Boolean,
195
+ default: !1
196
+ },
197
+ /**
198
+ * Displays the popover in a large size.
199
+ */
200
+ large: {
201
+ type: Boolean,
202
+ default: !1
203
+ },
204
+ /**
205
+ * @deprecated
206
+ * NOTE: This property no longer functions since moving to the floating-ui framework.
207
+ */
208
+ modifiers: { type: Array, default: null },
209
+ /**
210
+ * Popover's position relative to the target element.
211
+ * Possible values are:
212
+ * 'auto', 'auto-start', 'auto-end',
213
+ * 'top', 'top-start', 'top-end'
214
+ * 'right', 'right-start', 'right-end'
215
+ * 'bottom', 'bottom-start', 'bottom-end'
216
+ * 'left', 'left-start', 'left-end'
217
+ */
218
+ position: {
219
+ type: String,
220
+ default: O.BOTTOM_START,
221
+ validator: (t) => Object.values(O).includes(t)
222
+ },
223
+ /**
224
+ * Displays the popover in a small size.
225
+ */
226
+ small: {
227
+ type: Boolean,
228
+ default: !1
229
+ },
230
+ /**
231
+ * Indicates the title you want to give the popover.
232
+ */
233
+ title: {
234
+ type: String,
235
+ default: null
236
+ },
237
+ /**
238
+ * Popover's target element.
239
+ * The popover will position itself relatively to target element, in specified position.
240
+ */
241
+ targetElement: {
242
+ type: (L = $.props) == null ? void 0 : L.targetElement.type,
243
+ required: !0
244
+ },
245
+ /**
246
+ * Displays the popover without padding.
247
+ */
248
+ withoutSpace: {
249
+ type: Boolean,
250
+ default: !1
251
+ }
252
+ },
253
+ emits: ["dismiss", "placement"],
254
+ setup(t, { emit: a }) {
255
+ const o = t, _ = 2, b = x(), u = U(), p = r(() => {
256
+ var n;
257
+ return {
258
+ id: (n = u.id) == null ? void 0 : n.toString()
259
+ };
260
+ }), v = Y(nt, _), k = q(u["aria-label"]), { ariaLabel: V, title: y } = z(o), w = Z({
261
+ ariaLabel: k.value,
262
+ // TODO: take this line away when the aria-label props is removed
263
+ label: V,
264
+ defaultFallback: y
265
+ }), F = r(() => ({
266
+ "b-popover--small": o.small && !o.large,
267
+ "b-popover--with-divider": !!o.divider,
268
+ "b-popover--large": o.large && !o.small,
269
+ "b-popover--fit-content": o.fitContent,
270
+ "b-popover--without-space": o.withoutSpace
271
+ })), N = r(() => ({
272
+ "b-popover__content--with-title": !!o.title
273
+ })), S = () => a("dismiss"), c = X(b);
274
+ return (n, P) => (s(), f(H, { name: "b-popover__animation" }, {
275
+ default: m(() => [
276
+ t.open ? (s(), f(e($), {
277
+ key: 0,
278
+ id: e(p).id,
279
+ "aria-role": e(M).POPOVER,
280
+ "aria-label": e(w),
281
+ arrow: { classes: ["b-popover__arrow"] },
282
+ "disabled-focus-trap": t.disableFocusTrap,
283
+ class: C([e(F), "b-popover"]),
284
+ "fallback-position": t.fallbackPosition,
285
+ "fixed-positioning": t.fixedPositioning,
286
+ offset: [0, e(v)],
287
+ position: t.position,
288
+ "target-element": t.targetElement,
289
+ onPlacement: P[0] || (P[0] = (D) => n.$emit("placement", D))
290
+ }, {
291
+ default: m(() => [
292
+ e(c)("image") ? (s(), l("div", lt, [
293
+ t.dismissible ? (s(), l("div", rt, [
294
+ d(I, {
295
+ "on-image": "",
296
+ onClick: S
297
+ })
298
+ ])) : i("", !0),
299
+ g(n.$slots, "image", {}, void 0, !0)
300
+ ])) : i("", !0),
301
+ e(y) ? (s(), l("div", pt, [
302
+ J("div", ct, [
303
+ e(c)("headerIcon") ? g(n.$slots, "headerIcon", { key: 0 }, void 0, !0) : i("", !0),
304
+ d(st, {
305
+ title: e(y),
306
+ "is-image-title": !!e(c)("image")
307
+ }, null, 8, ["title", "is-image-title"])
308
+ ]),
309
+ t.dismissible && !e(c)("image") ? (s(), l("div", dt, [
310
+ d(I, { onClick: S })
311
+ ])) : i("", !0)
312
+ ])) : i("", !0),
313
+ e(c)("default") ? (s(), l("div", {
314
+ key: 2,
315
+ class: C(["b-popover__content", e(N)])
316
+ }, [
317
+ g(n.$slots, "default", {}, void 0, !0)
318
+ ], 2)) : i("", !0),
319
+ t.actions ? (s(), l("div", ut, [
320
+ d(e(tt), {
321
+ actions: t.actions,
322
+ layout: t.actionsLayout
323
+ }, null, 8, ["actions", "layout"])
324
+ ])) : i("", !0)
325
+ ]),
326
+ _: 3
327
+ }, 8, ["id", "aria-role", "aria-label", "disabled-focus-trap", "class", "fallback-position", "fixed-positioning", "offset", "position", "target-element"])) : i("", !0)
328
+ ]),
329
+ _: 3
330
+ }));
331
+ }
332
+ });
333
+ const kt = /* @__PURE__ */ h(mt, [["__scopeId", "data-v-d6ae319b"]]);
334
+ export {
335
+ O as B,
336
+ nt as P,
337
+ kt as a
338
+ };
339
+ //# sourceMappingURL=index.726e2f3c.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.726e2f3c.js","sources":["../../../vue2/src/components/popover/components/popover-title/popover-title.vue","../../../vue2/src/components/popover/components/popover-dismiss-button/popover-dismiss-button.vue","../../../vue2/src/components/popover/popover.types.ts","../../../vue2/src/components/popover/popover.keys.ts","../../../vue2/src/components/popover/popover.vue"],"sourcesContent":["<template>\n <bento-typography :strongest=\"isStrongest\" :variant=\"titleVariant\" el=\"span\">\n {{ title }}\n </bento-typography>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent } from 'vue';\n import { BentoTypography, BentoTypographyVariant } from '@/components/typography';\n\n export default defineComponent({\n components: { BentoTypography },\n props: {\n /**\n * Indicates if the popover contains an image.\n */\n isImageTitle: { type: Boolean, default: false },\n\n /**\n * Indicates the title you want to give the popover.\n */\n title: { type: String, default: null },\n },\n setup(props) {\n // Use strongest only when it has no image\n const isStrongest = computed(() => !props.isImageTitle);\n\n // If an image is present, change the variant from BODY to SUBTITLE and remove the \"strongest\" property of the title\n const titleVariant = computed(() =>\n props.isImageTitle ? BentoTypographyVariant.SUBTITLE : BentoTypographyVariant.BODY\n );\n\n return {\n // Values\n isStrongest,\n titleVariant,\n };\n },\n });\n</script>\n","<template>\n <bento-button :class=\"conditionalClass\" variant=\"tertiary\" @click=\"$emit('click')\">\n <template #iconLeft>\n <cross-icon svg-title=\"dismiss\" />\n </template>\n </bento-button>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent } from 'vue';\n import { BentoButton } from '@/components/button';\n import CrossIcon from '@adyen/ui-assets-icons-16/vue/cross';\n\n export default defineComponent({\n name: 'bento-popover-dismiss-button',\n components: { BentoButton, CrossIcon },\n props: {\n onImage: {\n type: Boolean,\n default: false,\n },\n },\n setup(props) {\n const conditionalClass = computed(() => ({ 'b-popover-dismiss-button--on-image': props.onImage }));\n\n return {\n // Values\n conditionalClass,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./popover-dismiss-button.scss\" />\n","import { PopperContainerPosition } from '../popper-container';\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport const BentoPopoverPositions = { ...PopperContainerPosition };\nexport type BentoPopoverPositions = PopperContainerPosition;\n","export const POPOVER_OFFSET_INJECTION_KEY = Symbol('popover offset injection key');\n","<template>\n <Transition name=\"b-popover__animation\">\n <popper-container\n v-if=\"open\"\n :id=\"computedAttributes['id']\"\n :aria-role=\"PopperContainerAriaRole.POPOVER\"\n :aria-label=\"computedAriaLabel\"\n :arrow=\"{ classes: ['b-popover__arrow'] }\"\n :disabled-focus-trap=\"disableFocusTrap\"\n :class=\"conditionalClasses\"\n :fallback-position=\"fallbackPosition\"\n :fixed-positioning=\"fixedPositioning\"\n :offset=\"[0, offset]\"\n :position=\"position\"\n :target-element=\"targetElement\"\n class=\"b-popover\"\n @placement=\"$emit('placement', $event)\"\n >\n <div v-if=\"hasSlot('image')\" class=\"b-popover__image\">\n <div v-if=\"dismissible\" class=\"b-popover__image-dismiss-button\">\n <bento-popover-dismiss-button on-image @click=\"dismissPopover\" />\n </div>\n <slot name=\"image\"></slot>\n </div>\n <div v-if=\"title\" class=\"b-popover__header\">\n <div class=\"b-popover__header-title\">\n <slot v-if=\"hasSlot('headerIcon')\" name=\"headerIcon\"></slot>\n <bento-popover-title :title=\"title\" :is-image-title=\"!!hasSlot('image')\" />\n </div>\n <div v-if=\"dismissible && !hasSlot('image')\">\n <bento-popover-dismiss-button @click=\"dismissPopover\" />\n </div>\n </div>\n\n <div v-if=\"hasSlot('default')\" class=\"b-popover__content\" :class=\"contentConditionalClasses\">\n <slot></slot>\n </div>\n\n <div v-if=\"actions\" class=\"b-popover__footer\">\n <bento-button-actions :actions=\"actions\" :layout=\"actionsLayout\"></bento-button-actions>\n </div>\n </popper-container>\n </Transition>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, PropType, ref, toRefs, useAttrs, useSlots } from 'vue';\n\n import { BentoButtonActions, BentoButtonActionsLayout, BentoButtonActionsList } from '@/components/button';\n import { PopperContainer, PopperContainerAriaRole } from '@/components/popper-container';\n import BentoPopoverTitle from './components/popover-title/popover-title.vue';\n import BentoPopoverDismissButton from './components/popover-dismiss-button/popover-dismiss-button.vue';\n\n import { BentoPopoverPositions } from './popover.types';\n import { Placement } from '@floating-ui/vue';\n\n import { useHasSlot } from '@/composables';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n\n import { POPOVER_OFFSET_INJECTION_KEY } from './popover.keys';\n\n const DEFAULT_OFFSET = 2;\n\n const props = defineProps({\n /**\n * List of actions that will be used to render the buttons.\n * First element in the list will be rendered as \"primary\".\n * All elements after the first will be rendered as \"secondary\".\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * `title`: Button's text.\n *\n * `event`: Event triggered when clicking the Button.\n *\n * `icon`: Vue Icon from the library `@adyen/ui-assets-icons-16`.\n *\n * ```\n * [{\n * title: 'Primary',\n * event: () => { ... },\n * icon: FourPeopleIcon\n * }, {\n * title: 'Secondary',\n * event: () => { ... }\n * }]\n * ```\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n default: null,\n },\n\n /**\n * Defines the layout in which the button actions is presented.\n * It can be one of:\n *\n * @values BUTTONS_END\n * @values FILL_CONTAINER\n * @values SPACE_BETWEEN\n * @values VERTICAL_STACK\n */\n actionsLayout: {\n type: String as PropType<BentoButtonActionsLayout | `${BentoButtonActionsLayout}`>,\n default: BentoButtonActionsLayout.BUTTONS_END,\n validator: (value: BentoButtonActionsLayout) => Object.values(BentoButtonActionsLayout).includes(value),\n },\n\n /**\n * @deprecated from version 2.0.0. Use the aria-label attribute instead.\n */\n /**\n * Defines a string value that provides an accessible name for the popover.\n */\n ariaLabel: {\n type: String,\n default: null,\n },\n\n /**\n * Adds a divider line to the actions section, reduces the top/bottom paddings and removes all padding in the \"default\" slot.\n */\n divider: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Supports disabling focus trap functionality to avoid scroll into view behavior when we don't need it.\n * */\n disableFocusTrap: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Adds a \"dismiss\" icon that triggers the \"dismiss\" event. Requires the `title` prop to be set.\n */\n dismissible: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Allows to configure to fallback position to the one specified, it could be ['right', 'top', ...].\n * Useful when not using auto as starting placement.\n * https://floating-ui.com/docs/flip#fallbackplacements\n */\n fallbackPosition: {\n type: Array as PropType<Placement[]>,\n default: () => ['bottom-start', 'right-start', 'top-start', 'left-start'],\n },\n\n /**\n * Sets the size of the container to fit its content\n */\n fitContent: { type: Boolean, default: false },\n\n /**\n * Instructs popover to be visible outside of the containing container.\n * Useful when component would be used in limited containers like Modal, Side panel, etc.\n * @see {@link https://floating-ui.com/docs/usefloating#strategy}\n */\n fixedPositioning: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Toggles the popover open and closed\n */\n open: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Displays the popover in a large size.\n */\n large: {\n type: Boolean,\n default: false,\n },\n\n /**\n * @deprecated\n * NOTE: This property no longer functions since moving to the floating-ui framework.\n */\n modifiers: { type: Array, default: null },\n\n /**\n * Popover's position relative to the target element.\n * Possible values are:\n * 'auto', 'auto-start', 'auto-end',\n * 'top', 'top-start', 'top-end'\n * 'right', 'right-start', 'right-end'\n * 'bottom', 'bottom-start', 'bottom-end'\n * 'left', 'left-start', 'left-end'\n */\n position: {\n type: String as PropType<BentoPopoverPositions | `${BentoPopoverPositions}`>,\n default: BentoPopoverPositions.BOTTOM_START,\n validator: (value: BentoPopoverPositions) => Object.values(BentoPopoverPositions).includes(value),\n },\n\n /**\n * Displays the popover in a small size.\n */\n small: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Indicates the title you want to give the popover.\n */\n title: {\n type: String,\n default: null,\n },\n\n /**\n * Popover's target element.\n * The popover will position itself relatively to target element, in specified position.\n */\n targetElement: {\n type: PopperContainer.props?.targetElement.type,\n required: true,\n },\n /**\n * Displays the popover without padding.\n */\n withoutSpace: {\n type: Boolean,\n default: false,\n },\n });\n\n const emit = defineEmits<{\n /**\n * Triggered when the `dismiss` button is clicked\n */\n (e: 'dismiss'): void;\n /**\n * Triggered when the popover `placement` changes\n */\n (e: 'placement', placement: Placement): void;\n }>();\n\n const slots = useSlots();\n const attrs = useAttrs();\n\n const computedAttributes = computed(() => ({\n id: attrs.id?.toString() as string,\n }));\n\n const offset = inject<number>(POPOVER_OFFSET_INJECTION_KEY, DEFAULT_OFFSET);\n\n const ariaLabelAttribute = ref(attrs['aria-label']);\n const { ariaLabel, title } = toRefs(props);\n const computedAriaLabel = useAriaLabel({\n ariaLabel: ariaLabelAttribute.value as string,\n // TODO: take this line away when the aria-label props is removed\n label: ariaLabel,\n defaultFallback: title,\n });\n\n const conditionalClasses = computed(() => ({\n 'b-popover--small': props.small && !props.large,\n 'b-popover--with-divider': !!props.divider,\n 'b-popover--large': props.large && !props.small,\n 'b-popover--fit-content': props.fitContent,\n 'b-popover--without-space': props.withoutSpace,\n }));\n\n const contentConditionalClasses = computed(() => ({\n 'b-popover__content--with-title': !!props.title,\n }));\n\n const dismissPopover = () => emit('dismiss');\n\n const hasSlot = useHasSlot(slots);\n</script>\n\n<script lang=\"ts\">\n /**\n * Example description of the component...\n *\n * @example\n * import { BentoPopover } from '@adyen/adl-vue2';\n *\n * export default {\n * components: { BentoPopover },\n * template: `\n * <bento-popover id=\"your-popover-id\">\n * ...Example code of the component\n * </bento-popover>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./popover.scss\" />\n"],"names":["_sfc_main$2","defineComponent","BentoTypography","props","isStrongest","computed","titleVariant","BentoTypographyVariant","_component_bento_typography","resolveComponent","openBlock","createBlock","_ctx","_sfc_main$1","BentoButton","CrossIcon","_component_bento_button","normalizeClass","_cache","$event","BentoPopoverPositions","PopperContainerPosition","POPOVER_OFFSET_INJECTION_KEY","__default__","DEFAULT_OFFSET","slots","useSlots","attrs","useAttrs","computedAttributes","_a","offset","inject","ariaLabelAttribute","ref","ariaLabel","title","toRefs","computedAriaLabel","useAriaLabel","conditionalClasses","contentConditionalClasses","dismissPopover","emit","hasSlot","useHasSlot"],"mappings":";;;;;;;;;;AAUI,MAAAA,KAAAC,EAAA;AAAA,EAA+B,YAAA,EAAA,iBAAAC,EAAA;AAAA,EACG,OAAA;AAAA;AAAA;AAAA;AAAA,IACvB,cAAA,EAAA,MAAA,SAAA,SAAA,GAAA;AAAA;AAAA;AAAA;AAAA,IAI2C,OAAA,EAAA,MAAA,QAAA,SAAA,KAAA;AAAA,EAKT;AAAA,EACzC,MAAAC,GAAA;AAGI,UAAAC,IAAAC,EAAA,MAAA,CAAAF,EAAA,YAAA,GAGAG,IAAAD;AAAA,MAAqB,MAAAF,EAAA,eAAAI,EAAA,WAAAA,EAAA;AAAA,IAC6D;AAGlF,WAAA;AAAA;AAAA,MAAO,aAAAH;AAAA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V,IAAAE,CAAA,GAEAS,IAAAC,EAAAP,EAAA,YAAA,CAAA,GACA,EAAA,WAAAQ,GAAA,OAAAC,EAAA,IAAAC,EAAAlC,CAAA,GACAmC,IAAAC,EAAA;AAAA,MAAuC,WAAAN,EAAA;AAAA;AAAA,MACL,OAAAE;AAAA,MAEvB,iBAAAC;AAAA,IACU,CAAA,GAGrBI,IAAAnC,EAAA,OAAA;AAAA,MAA2C,oBAAAF,EAAA,SAAA,CAAAA,EAAA;AAAA,MACG,2BAAA,CAAA,CAAAA,EAAA;AAAA,MACP,oBAAAA,EAAA,SAAA,CAAAA,EAAA;AAAA,MACO,0BAAAA,EAAA;AAAA,MACV,4BAAAA,EAAA;AAAA,IACE,EAAA,GAGtCsC,IAAApC,EAAA,OAAA;AAAA,MAAkD,kCAAA,CAAA,CAAAF,EAAA;AAAA,IACJ,EAAA,GAG9CuC,IAAA,MAAAC,EAAA,SAAA,GAEAC,IAAAC,EAAApB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as o, computed as d, openBlock as c, createBlock as E, resolveDynamicComponent as T, normalizeClass as u, withCtx as v, renderSlot as I } from "vue";
2
2
  import { _ as O } from "./_plugin-vue_export-helper.dad06003.js";
3
- import "../assets/index46.css";
3
+ import "../assets/index39.css";
4
4
  var e = /* @__PURE__ */ ((t) => (t.CAPTION = "caption", t.BODY = "body", t.SUBTITLE = "subtitle", t.TITLE = "title", t))(e || {}), a = /* @__PURE__ */ ((t) => (t.WIDE = "wide", t.STRONGER = "stronger", t.STRONGER_WIDE = "stronger-wide", t.STRONGEST = "strongest", t.STRONGEST_WIDE = "strongest-wide", t.MEDIUM = "m", t.LARGE = "l", t.MOBILE = "mobile", t))(a || {}), i = /* @__PURE__ */ ((t) => (t.H1 = "h1", t.H2 = "h2", t.H3 = "h3", t.H4 = "h4", t.H5 = "h5", t.H6 = "h6", t.DIV = "div", t.PARAGRAPH = "p", t.SPAN = "span", t))(i || {});
5
5
  const D = ["development", "DEVELOPMENT", "dev", "DEV"], $ = () => D.includes(process.env.NODE_ENV);
6
6
  function r(...t) {
@@ -121,4 +121,4 @@ export {
121
121
  _ as d,
122
122
  r as p
123
123
  };
124
- //# sourceMappingURL=index.2bd3812b.js.map
124
+ //# sourceMappingURL=index.75f3672e.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.2bd3812b.js","sources":["../../../vue2/src/components/typography/typography.types.ts","../../../vue2/src/utils/ts/dev-environment.ts","../../../vue2/src/utils/ts/print-development-warning.ts","../../../vue2/src/utils/ts/deprecate.ts","../../../vue2/src/components/typography/typography.vue"],"sourcesContent":["/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoTypographyVariant {\n CAPTION = 'caption',\n BODY = 'body',\n /** @deprecated Use \"TITLE\" instead. */\n SUBTITLE = 'subtitle',\n TITLE = 'title',\n}\n\nexport enum BentoTypographyModifier {\n WIDE = 'wide',\n STRONGER = 'stronger',\n STRONGER_WIDE = 'stronger-wide',\n STRONGEST = 'strongest',\n STRONGEST_WIDE = 'strongest-wide',\n MEDIUM = 'm',\n LARGE = 'l',\n MOBILE = 'mobile',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoTypographyElement {\n H1 = 'h1',\n H2 = 'h2',\n H3 = 'h3',\n H4 = 'h4',\n H5 = 'h5',\n H6 = 'h6',\n DIV = 'div',\n PARAGRAPH = 'p',\n SPAN = 'span',\n}\n","const DEV_ENVIROMENT_NAMES = ['development', 'DEVELOPMENT', 'dev', 'DEV'];\n\nexport const isDevelopmentEnviroment = () => DEV_ENVIROMENT_NAMES.includes(process.env.NODE_ENV);\n","import { isDevelopmentEnviroment } from '@/utils/ts/dev-environment';\n\n/**\n * Prints console.warn messages in development mode only.\n *\n * @see console.warn for what parameters you can use\n */\n\nexport function printDevelopmentWarning(...args: Parameters<typeof console.warn>) {\n if (isDevelopmentEnviroment()) {\n // eslint-disable-next-line no-console\n console.warn(...args);\n }\n}\n","import { printDevelopmentWarning } from './print-development-warning';\n\nconst DEPRECATION_STYLES = ['color: red', 'background: yellow'].join(';');\n\n/**\n * Informs users about the deprecations in development mode only.\n *\n * @param title Indicates what is being deprecated.\n * @param deprecationMessage How to avoid the deprecation by giving an example of the alternatives. Backticks can be used to multi-line the message.\n * @param toBeRemovedInVersion The version it will be removed. Must be in X.Y.Z format.\n */\nexport function deprecate(title: string, deprecationMessage: string, toBeRemovedInVersion: string) {\n printDevelopmentWarning(`%cDEPRECATED:\\x1b[0m ${title}`, DEPRECATION_STYLES);\n // Format multi-line descriptions with the backtick\n printDevelopmentWarning(`${deprecationMessage.replaceAll('\\t', '').replaceAll(' ', '').trim()}`);\n printDevelopmentWarning(`To be removed in: %c${toBeRemovedInVersion}`, DEPRECATION_STYLES);\n}\n","<template>\n <component :is=\"el\" class=\"b-typography\" :class=\"conditionalClasses\" data-testid=\"typography\">\n <slot />\n </component>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType } from 'vue';\n import { BentoTypographyElement, BentoTypographyModifier, BentoTypographyVariant } from './typography.types';\n import { deprecate } from '@/utils/ts/deprecate';\n\n /**\n * The Typography component makes it easy to apply a default set of font weights, sizes and other text styles\n * easily to text. The variants and properties match with those found in Figma.\n *\n * For example, seeing text with the typography styling of\n *\n * @example\n * import { BentoTypography } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoTypography },\n * template: `\n * <bento-typography>\n * ... text content\n * </bento-typography>\n * `\n * }\n */\n export default defineComponent({\n name: 'bento-typography',\n inheritAttrs: true,\n props: {\n /**\n * Sets the HTML DOM element.\n * @values h1, h2, h3, h4, h5, h6, div, p, span\n */\n el: {\n type: String as PropType<BentoTypographyElement | `${BentoTypographyElement}`>,\n default: BentoTypographyElement.PARAGRAPH,\n validator: (value: BentoTypographyElement) => Object.values(BentoTypographyElement).includes(value),\n },\n\n /**\n * Adds the stronger class modifier.\n * Applicable to Caption, Body and Subtitle variants.\n */\n stronger: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Adds the strongest class modifier.\n * Applicable to Caption, Body and Subtitle variants.\n */\n strongest: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the type of typography variant.\n * @values caption, body, title.\n */\n variant: {\n type: String as PropType<BentoTypographyVariant | `${BentoTypographyVariant}`>,\n default: BentoTypographyVariant.BODY,\n validator: (value: BentoTypographyVariant) => Object.values(BentoTypographyVariant).includes(value),\n },\n\n /**\n * Adds the medium class modifier.\n * Applicable to the Title variant.\n */\n medium: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Adds the large class modifier.\n * Applicable to the Title variant.\n */\n large: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Adds the medium class modifier.\n * Applicable to tje Body variant.\n */\n wide: {\n type: Boolean,\n default: false,\n },\n },\n setup(props) {\n if (props.variant === BentoTypographyVariant.SUBTITLE) {\n deprecate(\n 'BentoTypography \"subtitle\" variant (BentoTypographyVariant.SUBTITLE)',\n `Use the \"title\" or \"BentoTypographyVariant.TITLE\" variant and (optionally) combine it with a size property. e.g. medium / large.\n <bento-typography :variant=\"BentoTypographyVariant.TITLE\" medium>`,\n '2.0.0'\n );\n }\n\n const conditionalClasses = computed(() => ({\n // Caption\n [`b-typography--${BentoTypographyVariant.CAPTION}`]: props.variant === BentoTypographyVariant.CAPTION,\n [`b-typography--${BentoTypographyVariant.CAPTION}-${BentoTypographyModifier.WIDE}`]:\n props.variant === BentoTypographyVariant.CAPTION && props.wide,\n [`b-typography--${BentoTypographyVariant.CAPTION}-${BentoTypographyModifier.STRONGER}`]:\n props.variant === BentoTypographyVariant.CAPTION && props.stronger,\n\n // Body\n [`b-typography--${BentoTypographyVariant.BODY}`]: props.variant === BentoTypographyVariant.BODY,\n [`b-typography--${BentoTypographyVariant.BODY}-${BentoTypographyModifier.WIDE}`]:\n props.variant === BentoTypographyVariant.BODY && props.wide,\n [`b-typography--${BentoTypographyVariant.BODY}-${BentoTypographyModifier.STRONGER}`]:\n props.variant === BentoTypographyVariant.BODY && props.stronger,\n [`b-typography--${BentoTypographyVariant.BODY}-${BentoTypographyModifier.STRONGEST}`]:\n props.variant === BentoTypographyVariant.BODY && props.strongest,\n\n // Subtitle\n [`b-typography--${BentoTypographyVariant.SUBTITLE}`]: props.variant === BentoTypographyVariant.SUBTITLE,\n [`b-typography--${BentoTypographyVariant.SUBTITLE}-${BentoTypographyModifier.STRONGER}`]:\n props.variant === BentoTypographyVariant.SUBTITLE && props.stronger,\n\n // Title\n [`b-typography--${BentoTypographyVariant.TITLE}`]:\n props.variant === BentoTypographyVariant.TITLE && !props.medium && !props.large,\n [`b-typography--${BentoTypographyVariant.TITLE}-${BentoTypographyModifier.MEDIUM}`]:\n props.variant === BentoTypographyVariant.TITLE && props.medium,\n [`b-typography--${BentoTypographyVariant.TITLE}-${BentoTypographyModifier.LARGE}`]:\n props.variant === BentoTypographyVariant.TITLE && props.large,\n }));\n\n return {\n conditionalClasses,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./typography.scss\" />\n"],"names":["BentoTypographyVariant","BentoTypographyVariant2","BentoTypographyModifier","BentoTypographyModifier2","BentoTypographyElement","BentoTypographyElement2","DEV_ENVIROMENT_NAMES","isDevelopmentEnviroment","printDevelopmentWarning","args","DEPRECATION_STYLES","deprecate","title","deprecationMessage","toBeRemovedInVersion","_sfc_main","defineComponent","value","props","computed","openBlock","createBlock","resolveDynamicComponent","_ctx","normalizeClass"],"mappings":";;;AAGY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,UAAA,WACAA,EAAA,OAAA,QAEAA,EAAA,WAAA,YACAA,EAAA,QAAA,SALQA,IAAAD,KAAA,CAAA,CAAA,GAQAE,IAAA,kBAAAC,OACRA,EAAA,OAAA,QACAA,EAAA,WAAA,YACAA,EAAA,gBAAA,iBACAA,EAAA,YAAA,aACAA,EAAA,iBAAA,kBACAA,EAAA,SAAA,KAC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AAAA,QAGoC,CAAA,iBAAAA,EAAA,YAAAE,EAAA,UAAA,GAAAgB,EAAA,YAAAlB,EAAA,YAAAkB,EAAA;AAAA;AAAA,QAEhC,CAAA,iBAAAlB,EAAA,OAAA,GAAAkB,EAAA,YAAAlB,EAAA,SAAA,CAAAkB,EAAA,UAAA,CAAAA,EAAA;AAAA,QAIe,CAAA,iBAAAlB,EAAA,SAAAE,EAAA,QAAA,GAAAgB,EAAA,YAAAlB,EAAA,SAAAkB,EAAA;AAAA,QAElB,CAAA,iBAAAlB,EAAA,SAAAE,EAAA,OAAA,GAAAgB,EAAA,YAAAlB,EAAA,SAAAkB,EAAA;AAAA,MAEA,EAAA;AAAA,IAI5D;AAAA,EACJ;AAER,CAAA;;AA9IqE,SAAAE,EAAA,GAAAC,EAAAC,EAAAC,EAAA,EAAA,GAAA;AAAA,IAAwB,OAAAC,EAAA,CAAA,gBAAAD,EAAA,kBAAA,CAAA;AAAA;;;;;;;;;"}
1
+ {"version":3,"file":"index.75f3672e.js","sources":["../../../vue2/src/components/typography/typography.types.ts","../../../vue2/src/utils/ts/dev-environment.ts","../../../vue2/src/utils/ts/print-development-warning.ts","../../../vue2/src/utils/ts/deprecate.ts","../../../vue2/src/components/typography/typography.vue"],"sourcesContent":["/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoTypographyVariant {\n CAPTION = 'caption',\n BODY = 'body',\n /** @deprecated Use \"TITLE\" instead. */\n SUBTITLE = 'subtitle',\n TITLE = 'title',\n}\n\nexport enum BentoTypographyModifier {\n WIDE = 'wide',\n STRONGER = 'stronger',\n STRONGER_WIDE = 'stronger-wide',\n STRONGEST = 'strongest',\n STRONGEST_WIDE = 'strongest-wide',\n MEDIUM = 'm',\n LARGE = 'l',\n MOBILE = 'mobile',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoTypographyElement {\n H1 = 'h1',\n H2 = 'h2',\n H3 = 'h3',\n H4 = 'h4',\n H5 = 'h5',\n H6 = 'h6',\n DIV = 'div',\n PARAGRAPH = 'p',\n SPAN = 'span',\n}\n","const DEV_ENVIROMENT_NAMES = ['development', 'DEVELOPMENT', 'dev', 'DEV'];\n\nexport const isDevelopmentEnviroment = () => DEV_ENVIROMENT_NAMES.includes(process.env.NODE_ENV);\n","import { isDevelopmentEnviroment } from '@/utils/ts/dev-environment';\n\n/**\n * Prints console.warn messages in development mode only.\n *\n * @see console.warn for what parameters you can use\n */\n\nexport function printDevelopmentWarning(...args: Parameters<typeof console.warn>) {\n if (isDevelopmentEnviroment()) {\n // eslint-disable-next-line no-console\n console.warn(...args);\n }\n}\n","import { printDevelopmentWarning } from './print-development-warning';\n\nconst DEPRECATION_STYLES = ['color: red', 'background: yellow'].join(';');\n\n/**\n * Informs users about the deprecations in development mode only.\n *\n * @param title Indicates what is being deprecated.\n * @param deprecationMessage How to avoid the deprecation by giving an example of the alternatives. Backticks can be used to multi-line the message.\n * @param toBeRemovedInVersion The version it will be removed. Must be in X.Y.Z format.\n */\nexport function deprecate(title: string, deprecationMessage: string, toBeRemovedInVersion: string) {\n printDevelopmentWarning(`%cDEPRECATED:\\x1b[0m ${title}`, DEPRECATION_STYLES);\n // Format multi-line descriptions with the backtick\n printDevelopmentWarning(`${deprecationMessage.replaceAll('\\t', '').replaceAll(' ', '').trim()}`);\n printDevelopmentWarning(`To be removed in: %c${toBeRemovedInVersion}`, DEPRECATION_STYLES);\n}\n","<template>\n <component :is=\"el\" class=\"b-typography\" :class=\"conditionalClasses\" data-testid=\"typography\">\n <slot />\n </component>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType } from 'vue';\n import { BentoTypographyElement, BentoTypographyModifier, BentoTypographyVariant } from './typography.types';\n import { deprecate } from '@/utils/ts/deprecate';\n\n /**\n * The Typography component makes it easy to apply a default set of font weights, sizes and other text styles\n * easily to text. The variants and properties match with those found in Figma.\n *\n * For example, seeing text with the typography styling of\n *\n * @example\n * import { BentoTypography } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoTypography },\n * template: `\n * <bento-typography>\n * ... text content\n * </bento-typography>\n * `\n * }\n */\n export default defineComponent({\n name: 'bento-typography',\n inheritAttrs: true,\n props: {\n /**\n * Sets the HTML DOM element.\n * @values h1, h2, h3, h4, h5, h6, div, p, span\n */\n el: {\n type: String as PropType<BentoTypographyElement | `${BentoTypographyElement}`>,\n default: BentoTypographyElement.PARAGRAPH,\n validator: (value: BentoTypographyElement) => Object.values(BentoTypographyElement).includes(value),\n },\n\n /**\n * Adds the stronger class modifier.\n * Applicable to Caption, Body and Subtitle variants.\n */\n stronger: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Adds the strongest class modifier.\n * Applicable to Caption, Body and Subtitle variants.\n */\n strongest: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the type of typography variant.\n * @values caption, body, title.\n */\n variant: {\n type: String as PropType<BentoTypographyVariant | `${BentoTypographyVariant}`>,\n default: BentoTypographyVariant.BODY,\n validator: (value: BentoTypographyVariant) => Object.values(BentoTypographyVariant).includes(value),\n },\n\n /**\n * Adds the medium class modifier.\n * Applicable to the Title variant.\n */\n medium: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Adds the large class modifier.\n * Applicable to the Title variant.\n */\n large: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Adds the medium class modifier.\n * Applicable to tje Body variant.\n */\n wide: {\n type: Boolean,\n default: false,\n },\n },\n setup(props) {\n if (props.variant === BentoTypographyVariant.SUBTITLE) {\n deprecate(\n 'BentoTypography \"subtitle\" variant (BentoTypographyVariant.SUBTITLE)',\n `Use the \"title\" or \"BentoTypographyVariant.TITLE\" variant and (optionally) combine it with a size property. e.g. medium / large.\n <bento-typography :variant=\"BentoTypographyVariant.TITLE\" medium>`,\n '2.0.0'\n );\n }\n\n const conditionalClasses = computed(() => ({\n // Caption\n [`b-typography--${BentoTypographyVariant.CAPTION}`]: props.variant === BentoTypographyVariant.CAPTION,\n [`b-typography--${BentoTypographyVariant.CAPTION}-${BentoTypographyModifier.WIDE}`]:\n props.variant === BentoTypographyVariant.CAPTION && props.wide,\n [`b-typography--${BentoTypographyVariant.CAPTION}-${BentoTypographyModifier.STRONGER}`]:\n props.variant === BentoTypographyVariant.CAPTION && props.stronger,\n\n // Body\n [`b-typography--${BentoTypographyVariant.BODY}`]: props.variant === BentoTypographyVariant.BODY,\n [`b-typography--${BentoTypographyVariant.BODY}-${BentoTypographyModifier.WIDE}`]:\n props.variant === BentoTypographyVariant.BODY && props.wide,\n [`b-typography--${BentoTypographyVariant.BODY}-${BentoTypographyModifier.STRONGER}`]:\n props.variant === BentoTypographyVariant.BODY && props.stronger,\n [`b-typography--${BentoTypographyVariant.BODY}-${BentoTypographyModifier.STRONGEST}`]:\n props.variant === BentoTypographyVariant.BODY && props.strongest,\n\n // Subtitle\n [`b-typography--${BentoTypographyVariant.SUBTITLE}`]: props.variant === BentoTypographyVariant.SUBTITLE,\n [`b-typography--${BentoTypographyVariant.SUBTITLE}-${BentoTypographyModifier.STRONGER}`]:\n props.variant === BentoTypographyVariant.SUBTITLE && props.stronger,\n\n // Title\n [`b-typography--${BentoTypographyVariant.TITLE}`]:\n props.variant === BentoTypographyVariant.TITLE && !props.medium && !props.large,\n [`b-typography--${BentoTypographyVariant.TITLE}-${BentoTypographyModifier.MEDIUM}`]:\n props.variant === BentoTypographyVariant.TITLE && props.medium,\n [`b-typography--${BentoTypographyVariant.TITLE}-${BentoTypographyModifier.LARGE}`]:\n props.variant === BentoTypographyVariant.TITLE && props.large,\n }));\n\n return {\n conditionalClasses,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./typography.scss\" />\n"],"names":["BentoTypographyVariant","BentoTypographyVariant2","BentoTypographyModifier","BentoTypographyModifier2","BentoTypographyElement","BentoTypographyElement2","DEV_ENVIROMENT_NAMES","isDevelopmentEnviroment","printDevelopmentWarning","args","DEPRECATION_STYLES","deprecate","title","deprecationMessage","toBeRemovedInVersion","_sfc_main","defineComponent","value","props","computed","openBlock","createBlock","resolveDynamicComponent","_ctx","normalizeClass"],"mappings":";;;AAGY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,UAAA,WACAA,EAAA,OAAA,QAEAA,EAAA,WAAA,YACAA,EAAA,QAAA,SALQA,IAAAD,KAAA,CAAA,CAAA,GAQAE,IAAA,kBAAAC,OACRA,EAAA,OAAA,QACAA,EAAA,WAAA,YACAA,EAAA,gBAAA,iBACAA,EAAA,YAAA,aACAA,EAAA,iBAAA,kBACAA,EAAA,SAAA,KACAA,EAAA,QAAA,KACAA,EAAA,SAAA,UARQA,IAAAD,KAAA,CAAA,CAAA,GAcAE,IAAA,kBAAAC,OACRA,EAAA,KAAA,MACAA,EAAA,KAAA,MACAA,EAAA,KAAA,MACAA,EAAA,KAAA,MACAA,EAAA,KAAA,MACAA,EAAA,KAAA,MACAA,EAAA,MAAA,OACAA,EAAA,YAAA,KACAA,EAAA,OAAA,QATQA,IAAAD,KAAA,CAAA,CAAA;ACzBZ,MAAAE,IAAA,CAAA,eAAA,eAAA,OAAA,KAAA,GAEOC,IAAA,MAAAD,EAAA,SAAA,QAAA,IAAA,QAAA;ACMA,SAAAE,KAAAC,GAAA;AACH,EAAAF,EAAA,KAEI,QAAA,KAAA,GAAAE,CAAA;AAER;ACXA,MAAAC,IAAA,CAAA,cAAA,oBAAA,EAAA,KAAA,GAAA;AASgB,SAAAC,EAAAC,GAAAC,GAAAC,GAAA;AACZ,EAAAN,EAAA,wBAAAI,KAAAF,CAAA,GAEAF,EAAA,GAAAK,EAAA,WAAA,KAAA,EAAA,EAAA,WAAA,MAAA,EAAA,EAAA,KAAA,GAAA,GACAL,EAAA,uBAAAM,KAAAJ,CAAA;AACJ;ACaI,MAAAK,IAAAC,EAAA;AAAA,EAA+B,MAAA;AAAA,EACrB,cAAA;AAAA,EACQ,OAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IACP,IAAA;AAAA,MAKC,MAAA;AAAA,MACM,SAAAZ,EAAA;AA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AA,QAAAE,EAAA,MAAA,GAAAgB,EAAA,YAAAlB,EAAA,QAAAkB,EAAA;AAAA,QAEhC,CAAA,iBAAAlB,EAAA,QAAAE,EAAA,UAAA,GAAAgB,EAAA,YAAAlB,EAAA,QAAAkB,EAAA;AAAA,QAEA,CAAA,iBAAAlB,EAAA,QAAAE,EAAA,WAAA,GAAAgB,EAAA,YAAAlB,EAAA,QAAAkB,EAAA;AAAA;AAAA,QAEA,CAAA,iBAAAlB,EAAA,UAAA,GAAAkB,EAAA,YAAAlB,EAAA;AAAA,QAGoC,CAAA,iBAAAA,EAAA,YAAAE,EAAA,UAAA,GAAAgB,EAAA,YAAAlB,EAAA,YAAAkB,EAAA;AAAA;AAAA,QAEhC,CAAA,iBAAAlB,EAAA,OAAA,GAAAkB,EAAA,YAAAlB,EAAA,SAAA,CAAAkB,EAAA,UAAA,CAAAA,EAAA;AAAA,QAIe,CAAA,iBAAAlB,EAAA,SAAAE,EAAA,QAAA,GAAAgB,EAAA,YAAAlB,EAAA,SAAAkB,EAAA;AAAA,QAElB,CAAA,iBAAAlB,EAAA,SAAAE,EAAA,OAAA,GAAAgB,EAAA,YAAAlB,EAAA,SAAAkB,EAAA;AAAA,MAEA,EAAA;AAAA,IAI5D;AAAA,EACJ;AAER,CAAA;;AA9IqE,SAAAE,EAAA,GAAAC,EAAAC,EAAAC,EAAA,EAAA,GAAA;AAAA,IAAwB,OAAAC,EAAA,CAAA,gBAAAD,EAAA,kBAAA,CAAA;AAAA;;;;;;;;;"}
@@ -1,7 +1,7 @@
1
1
  import { ref as d, computed as i, defineComponent as u, toRefs as p, resolveComponent as _, openBlock as s, createElementBlock as n, normalizeClass as m, createVNode as v, withCtx as g, createTextVNode as f, toDisplayString as y } from "vue";
2
- import { B as L } from "./index.2bd3812b.js";
2
+ import { B as L } from "./index.75f3672e.js";
3
3
  import { _ as b } from "./_plugin-vue_export-helper.dad06003.js";
4
- import "../assets/index8.css";
4
+ import "../assets/index12.css";
5
5
  const h = (e) => {
6
6
  const a = d(e);
7
7
  return i(() => a.value ? a.value.trim().charAt(0).toUpperCase() : null);
@@ -98,4 +98,4 @@ export {
98
98
  t as a,
99
99
  h as u
100
100
  };
101
- //# sourceMappingURL=index.6a665ade.js.map
101
+ //# sourceMappingURL=index.abb2a1d5.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.6a665ade.js","sources":["../../../vue2/src/composables/initials.ts","../../../vue2/src/components/avatar-image/avatar-image.types.ts","../../../vue2/src/components/avatar-image/avatar-image.vue"],"sourcesContent":["import { computed, ComputedRef, ref } from 'vue';\nimport { MaybeRef } from '@/types';\n\n/** Extracts the first letter of a username\n * @param username - The name to return the initials of\n * Common patterns:\n * 1. John => J\n * 2. John Smith => J\n * John Smith Doe Holly => J\n */\nexport const useInitials = (username: MaybeRef<string | null>): ComputedRef<string | null> => {\n const computedUsername = ref(username);\n return computed(() => (computedUsername.value ? computedUsername.value.trim().charAt(0).toUpperCase() : null));\n};\n","export enum BentoAvatarImageVariant {\n LARGE = 'large',\n SMALL = 'small',\n}\n\nexport enum BentoAvatarImageColor {\n BLUE = 'blue',\n GREEN = 'green',\n RED = 'red',\n YELLOW = 'yellow',\n}\n","<template>\n <div class=\"b-avatar-image\" :class=\"conditionalClasses\" aria-hidden=\"true\" data-testid=\"avatar\">\n <img v-if=\"src\" :src=\"src\" class=\"b-avatar-image__image\" alt=\"Profile picture\" data-testid=\"avatar-content\" />\n <div v-else class=\"b-avatar-image__default\" data-testid=\"avatar-content\">\n <bento-typography el=\"span\" variant=\"body\" strongest>\n {{ initials }}\n </bento-typography>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType, toRefs } from 'vue';\n import { BentoAvatarImageColor, BentoAvatarImageVariant } from './avatar-image.types';\n import { BentoTypography } from '@/components/typography';\n import { useInitials } from '@/composables';\n\n export default defineComponent({\n name: 'avatar-image',\n components: { BentoTypography },\n props: {\n /**\n * Image src to load the profile picture.\n */\n src: {\n type: String,\n default: null,\n },\n /**\n * Name of the user that will be used to extract initials to display default value.\n * John => J\n * John Smith => JS\n * John Smith Doe => JD\n * John Smith Doe Holly => JH\n */\n username: {\n type: String,\n default: null,\n },\n /**\n * Variants supported for small and large.\n * Default - large\n */\n variant: {\n type: String as PropType<BentoAvatarImageVariant>,\n default: BentoAvatarImageVariant.LARGE,\n validator: (value: BentoAvatarImageVariant) => Object.values(BentoAvatarImageVariant).includes(value),\n },\n /**\n * Avatar color. Defaults to yellow.\n */\n color: {\n type: String as PropType<BentoAvatarImageColor>,\n default: BentoAvatarImageColor.YELLOW,\n validator: (value: BentoAvatarImageColor) => Object.values(BentoAvatarImageColor).includes(value),\n },\n },\n setup(props) {\n const { username } = toRefs(props);\n const initials = useInitials(username);\n\n const conditionalClasses = computed(() => ({\n [`b-avatar-image--${BentoAvatarImageVariant.SMALL}`]: props.variant === BentoAvatarImageVariant.SMALL,\n [`b-avatar-image--${props.color}`]: props.color,\n }));\n\n return {\n // Values\n conditionalClasses,\n initials,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./avatar-image.scss\" />\n"],"names":["useInitials","username","computedUsername","ref","computed","BentoAvatarImageVariant","BentoAvatarImageVariant2","BentoAvatarImageColor","BentoAvatarImageColor2","_sfc_main","defineComponent","BentoTypography","value","props","toRefs","initials","openBlock","createElementBlock","normalizeClass","_ctx","_hoisted_1","_hoisted_2","createVNode","_component_bento_typography"],"mappings":";;;;AAUa,MAAAA,IAAA,CAAAC,MAAA;AACT,QAAAC,IAAAC,EAAAF,CAAA;AACA,SAAAG,EAAA,MAAAF,EAAA,QAAAA,EAAA,MAAA,KAAA,EAAA,OAAA,CAAA,EAAA,YAAA,IAAA,IAAA;AACJ;ACbY,IAAAG,IAAA,kBAAAC,OACRA,EAAA,QAAA,SACAA,EAAA,QAAA,SAFQA,IAAAD,KAAA,CAAA,CAAA,GAKAE,IAAA,kBAAAC,OACRA,EAAA,OAAA,QACAA,EAAA,QAAA,SACAA,EAAA,MAAA,OACA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KAAA;AAAA,MAAO,KAAAA,EAAA;AAAA,MAA6B,OAAA;AAAA,MAAkB,KAAA;AAAA,MAC/E,eAAA;AAAA,IAAA,GAAA,MAAA,GAAAC,CAAA,MAAAJ,EAAA,GAAAC,EAAA,OAAAI,GAAA;AAAA,MAC+BC,EAAAC,GAAA;AAAA,QAAe,IAAA;AAAA,QAAC,SAAA;AAAA;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.abb2a1d5.js","sources":["../../../vue2/src/composables/initials.ts","../../../vue2/src/components/avatar-image/avatar-image.types.ts","../../../vue2/src/components/avatar-image/avatar-image.vue"],"sourcesContent":["import { computed, ComputedRef, ref } from 'vue';\nimport { MaybeRef } from '@/types';\n\n/** Extracts the first letter of a username\n * @param username - The name to return the initials of\n * Common patterns:\n * 1. John => J\n * 2. John Smith => J\n * John Smith Doe Holly => J\n */\nexport const useInitials = (username: MaybeRef<string | null>): ComputedRef<string | null> => {\n const computedUsername = ref(username);\n return computed(() => (computedUsername.value ? computedUsername.value.trim().charAt(0).toUpperCase() : null));\n};\n","export enum BentoAvatarImageVariant {\n LARGE = 'large',\n SMALL = 'small',\n}\n\nexport enum BentoAvatarImageColor {\n BLUE = 'blue',\n GREEN = 'green',\n RED = 'red',\n YELLOW = 'yellow',\n}\n","<template>\n <div class=\"b-avatar-image\" :class=\"conditionalClasses\" aria-hidden=\"true\" data-testid=\"avatar\">\n <img v-if=\"src\" :src=\"src\" class=\"b-avatar-image__image\" alt=\"Profile picture\" data-testid=\"avatar-content\" />\n <div v-else class=\"b-avatar-image__default\" data-testid=\"avatar-content\">\n <bento-typography el=\"span\" variant=\"body\" strongest>\n {{ initials }}\n </bento-typography>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType, toRefs } from 'vue';\n import { BentoAvatarImageColor, BentoAvatarImageVariant } from './avatar-image.types';\n import { BentoTypography } from '@/components/typography';\n import { useInitials } from '@/composables';\n\n export default defineComponent({\n name: 'avatar-image',\n components: { BentoTypography },\n props: {\n /**\n * Image src to load the profile picture.\n */\n src: {\n type: String,\n default: null,\n },\n /**\n * Name of the user that will be used to extract initials to display default value.\n * John => J\n * John Smith => JS\n * John Smith Doe => JD\n * John Smith Doe Holly => JH\n */\n username: {\n type: String,\n default: null,\n },\n /**\n * Variants supported for small and large.\n * Default - large\n */\n variant: {\n type: String as PropType<BentoAvatarImageVariant>,\n default: BentoAvatarImageVariant.LARGE,\n validator: (value: BentoAvatarImageVariant) => Object.values(BentoAvatarImageVariant).includes(value),\n },\n /**\n * Avatar color. Defaults to yellow.\n */\n color: {\n type: String as PropType<BentoAvatarImageColor>,\n default: BentoAvatarImageColor.YELLOW,\n validator: (value: BentoAvatarImageColor) => Object.values(BentoAvatarImageColor).includes(value),\n },\n },\n setup(props) {\n const { username } = toRefs(props);\n const initials = useInitials(username);\n\n const conditionalClasses = computed(() => ({\n [`b-avatar-image--${BentoAvatarImageVariant.SMALL}`]: props.variant === BentoAvatarImageVariant.SMALL,\n [`b-avatar-image--${props.color}`]: props.color,\n }));\n\n return {\n // Values\n conditionalClasses,\n initials,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./avatar-image.scss\" />\n"],"names":["useInitials","username","computedUsername","ref","computed","BentoAvatarImageVariant","BentoAvatarImageVariant2","BentoAvatarImageColor","BentoAvatarImageColor2","_sfc_main","defineComponent","BentoTypography","value","props","toRefs","initials","openBlock","createElementBlock","normalizeClass","_ctx","_hoisted_1","_hoisted_2","createVNode","_component_bento_typography"],"mappings":";;;;AAUa,MAAAA,IAAA,CAAAC,MAAA;AACT,QAAAC,IAAAC,EAAAF,CAAA;AACA,SAAAG,EAAA,MAAAF,EAAA,QAAAA,EAAA,MAAA,KAAA,EAAA,OAAA,CAAA,EAAA,YAAA,IAAA,IAAA;AACJ;ACbY,IAAAG,IAAA,kBAAAC,OACRA,EAAA,QAAA,SACAA,EAAA,QAAA,SAFQA,IAAAD,KAAA,CAAA,CAAA,GAKAE,IAAA,kBAAAC,O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,eAAA;AAAA,IAC7E,eAAA;AAAA,EAAA,GAAA;AAAA;MAAW,KAAA;AAAA,MAAO,KAAAA,EAAA;AAAA,MAA6B,OAAA;AAAA,MAAkB,KAAA;AAAA,MAC/E,eAAA;AAAA,IAAA,GAAA,MAAA,GAAAC,CAAA,MAAAJ,EAAA,GAAAC,EAAA,OAAAI,GAAA;AAAA,MAC+BC,EAAAC,GAAA;AAAA,QAAe,IAAA;AAAA,QAAC,SAAA;AAAA;;;;;;;;;;;"}
@@ -0,0 +1,150 @@
1
+ import { defineComponent as b, provide as L, toRef as E, openBlock as o, createElementBlock as y, renderSlot as f, inject as d, ref as D, computed as i, resolveComponent as e, resolveDirective as N, normalizeClass as $, createElementVNode as p, normalizeStyle as k, createVNode as _, withCtx as u, createTextVNode as V, toDisplayString as W, createBlock as c, createCommentVNode as a, withDirectives as U } from "vue";
2
+ import { _ as h } from "./_plugin-vue_export-helper.dad06003.js";
3
+ import { a as O } from "./button.82ed953e.js";
4
+ import { BentoInfoIcon as R } from "../info-icon.js";
5
+ import { B as A, a as m } from "./index.75f3672e.js";
6
+ import { C as j } from "./copy.28bd4298.js";
7
+ import { S as w } from "./search.d18f9657.js";
8
+ import { b as Y } from "./tooltip.054d2eb6.js";
9
+ import "../assets/index20.css";
10
+ const z = Symbol("structured list condensed style injection key"), v = Symbol("structured list labels width injection key"), F = { class: "b-structured-list" }, H = {}, J = /* @__PURE__ */ b({
11
+ ...H,
12
+ __name: "structured-list",
13
+ props: {
14
+ /**
15
+ * Width of the labels container, in pixels. Default is 180 (px).
16
+ */
17
+ labelsWidth: {
18
+ type: Number,
19
+ default: 180
20
+ }
21
+ },
22
+ setup(t) {
23
+ return L(v, E(t, "labelsWidth")), (s, r) => (o(), y("dl", F, [
24
+ f(s.$slots, "default", {}, void 0, !0)
25
+ ]));
26
+ }
27
+ });
28
+ const rt = /* @__PURE__ */ h(J, [["__scopeId", "data-v-b5e06de0"]]), K = {
29
+ "en-US": {
30
+ search: "Search"
31
+ }
32
+ }, q = 180, P = b({
33
+ i18n: { messages: K },
34
+ name: "bento-structured-list-item",
35
+ components: {
36
+ BentoButton: O,
37
+ BentoInfoIcon: R,
38
+ BentoTypography: A,
39
+ Copy: j,
40
+ SearchIcon: w
41
+ },
42
+ directives: { BentoTooltipDirective: Y },
43
+ props: {
44
+ /**
45
+ * Label to display for the value
46
+ */
47
+ label: {
48
+ type: String,
49
+ required: !0
50
+ },
51
+ /**
52
+ * Text to display in info icon tooltip in the label to display for the value
53
+ */
54
+ labelInfo: {
55
+ type: String,
56
+ default: void 0
57
+ },
58
+ /**
59
+ * Text to copy when the user clicks `Copy` icon
60
+ */
61
+ copy: {
62
+ type: String,
63
+ default: void 0
64
+ },
65
+ /**
66
+ * Function to trigger when user clicks `Search` icon
67
+ */
68
+ search: {
69
+ type: Function,
70
+ default: void 0
71
+ },
72
+ /**
73
+ * Text to display when the user hovers over `Search` icon
74
+ */
75
+ searchTooltip: {
76
+ type: String,
77
+ default: void 0
78
+ }
79
+ },
80
+ setup() {
81
+ const t = d(z, !1), n = d(
82
+ v,
83
+ D(q)
84
+ ), s = i(() => t ? 130 : n.value), r = i(() => ({
85
+ "b-structured-list-item--condensed": t
86
+ })), l = i(
87
+ () => t ? m.CAPTION : m.BODY
88
+ );
89
+ return {
90
+ // Values
91
+ conditionalClasses: r,
92
+ labelTypographyVariant: l,
93
+ computedLabelsWidth: s
94
+ };
95
+ }
96
+ });
97
+ const G = { class: "b-structured-list-item__value" };
98
+ function M(t, n, s, r, l, Q) {
99
+ const S = e("bento-typography"), T = e("bento-info-icon"), I = e("copy"), C = e("search-icon"), g = e("bento-button"), B = N("bento-tooltip-directive");
100
+ return o(), y("div", {
101
+ class: $(["b-structured-list-item", t.conditionalClasses])
102
+ }, [
103
+ p("dt", {
104
+ class: "b-structured-list-item__label",
105
+ style: k(`flex-basis:${t.computedLabelsWidth}px`)
106
+ }, [
107
+ _(S, { variant: t.labelTypographyVariant }, {
108
+ default: u(() => [
109
+ V(W(t.label), 1)
110
+ ]),
111
+ _: 1
112
+ }, 8, ["variant"]),
113
+ t.labelInfo ? (o(), c(T, {
114
+ key: 0,
115
+ class: "b-structured-list-item__icon",
116
+ "tooltip-text": t.labelInfo
117
+ }, null, 8, ["tooltip-text"])) : a("", !0)
118
+ ], 4),
119
+ p("dd", G, [
120
+ f(t.$slots, "default", {}, void 0, !0),
121
+ t.copy ? (o(), c(I, {
122
+ key: 0,
123
+ class: "b-structured-list-item__icon",
124
+ text: t.copy
125
+ }, null, 8, ["text"])) : a("", !0),
126
+ t.search ? U((o(), c(g, {
127
+ key: 1,
128
+ class: "b-structured-list-item__icon",
129
+ variant: "tertiary",
130
+ onClick: t.search
131
+ }, {
132
+ iconLeft: u(() => [
133
+ _(C, {
134
+ "svg-title": t.$t("search")
135
+ }, null, 8, ["svg-title"])
136
+ ]),
137
+ _: 1
138
+ }, 8, ["onClick"])), [
139
+ [B, t.searchTooltip ? t.searchTooltip : t.$t("search"), "top"]
140
+ ]) : a("", !0)
141
+ ])
142
+ ], 2);
143
+ }
144
+ const it = /* @__PURE__ */ h(P, [["render", M], ["__scopeId", "data-v-b3118764"]]);
145
+ export {
146
+ rt as B,
147
+ z as S,
148
+ it as a
149
+ };
150
+ //# sourceMappingURL=index.b043371e.js.map