@adyen/bento-vue2 1.26.0 → 1.27.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 (203) hide show
  1. package/dist/@types/components.d.ts +4 -0
  2. package/dist/@types/index.d.ts +513 -136
  3. package/dist/accordion.js +2 -2
  4. package/dist/action-bar.js +61 -146
  5. package/dist/action-bar.js.map +1 -1
  6. package/dist/alert.js +3 -3
  7. package/dist/assets/base-modal.css +1 -1
  8. package/dist/assets/button-actions.css +1 -1
  9. package/dist/assets/button.css +1 -1
  10. package/dist/assets/dialog-page.css +1 -1
  11. package/dist/assets/dropdown.css +1 -1
  12. package/dist/assets/index.css +1 -1
  13. package/dist/assets/index10.css +1 -1
  14. package/dist/assets/index11.css +1 -1
  15. package/dist/assets/index12.css +1 -1
  16. package/dist/assets/index13.css +1 -1
  17. package/dist/assets/index14.css +1 -1
  18. package/dist/assets/index15.css +1 -1
  19. package/dist/assets/index16.css +1 -1
  20. package/dist/assets/index17.css +1 -1
  21. package/dist/assets/index18.css +1 -1
  22. package/dist/assets/index19.css +1 -1
  23. package/dist/assets/index2.css +1 -1
  24. package/dist/assets/index20.css +1 -1
  25. package/dist/assets/index21.css +1 -1
  26. package/dist/assets/index22.css +1 -1
  27. package/dist/assets/index23.css +1 -1
  28. package/dist/assets/index24.css +1 -1
  29. package/dist/assets/index25.css +1 -1
  30. package/dist/assets/index26.css +1 -1
  31. package/dist/assets/index27.css +1 -1
  32. package/dist/assets/index28.css +1 -1
  33. package/dist/assets/index29.css +1 -1
  34. package/dist/assets/index3.css +1 -1
  35. package/dist/assets/index30.css +1 -1
  36. package/dist/assets/index31.css +1 -1
  37. package/dist/assets/index32.css +1 -1
  38. package/dist/assets/index33.css +1 -1
  39. package/dist/assets/index34.css +1 -1
  40. package/dist/assets/index35.css +1 -1
  41. package/dist/assets/index36.css +1 -1
  42. package/dist/assets/index37.css +1 -1
  43. package/dist/assets/index38.css +1 -1
  44. package/dist/assets/index39.css +1 -1
  45. package/dist/assets/index4.css +1 -1
  46. package/dist/assets/index40.css +1 -1
  47. package/dist/assets/index41.css +1 -1
  48. package/dist/assets/index42.css +1 -1
  49. package/dist/assets/index43.css +1 -1
  50. package/dist/assets/index44.css +1 -1
  51. package/dist/assets/index45.css +1 -1
  52. package/dist/assets/index46.css +1 -1
  53. package/dist/assets/index47.css +1 -1
  54. package/dist/assets/index48.css +1 -1
  55. package/dist/assets/index49.css +1 -0
  56. package/dist/assets/index5.css +1 -1
  57. package/dist/assets/index6.css +1 -1
  58. package/dist/assets/index7.css +1 -1
  59. package/dist/assets/index8.css +1 -1
  60. package/dist/assets/index9.css +1 -1
  61. package/dist/assets/use-cached-selected-values.css +1 -1
  62. package/dist/avatar-image.js +1 -1
  63. package/dist/badge.js +1 -1
  64. package/dist/button.js +5 -5
  65. package/dist/card.js +3 -3
  66. package/dist/checkbox.js +5 -5
  67. package/dist/chunks/{base-button.ad74b6f8.js → base-button.852204dc.js} +2 -2
  68. package/dist/chunks/{base-button.ad74b6f8.js.map → base-button.852204dc.js.map} +1 -1
  69. package/dist/chunks/{base-modal.1fff7abe.js → base-modal.4fb7528b.js} +6 -6
  70. package/dist/chunks/{base-modal.1fff7abe.js.map → base-modal.4fb7528b.js.map} +1 -1
  71. package/dist/chunks/{button-actions-with-menu.e845d77a.js → button-actions-with-menu.bf968959.js} +4 -4
  72. package/dist/chunks/{button-actions-with-menu.e845d77a.js.map → button-actions-with-menu.bf968959.js.map} +1 -1
  73. package/dist/chunks/{button-actions.81db18e8.js → button-actions.87e589e3.js} +31 -29
  74. package/dist/chunks/button-actions.87e589e3.js.map +1 -0
  75. package/dist/chunks/button.cb90b55c.js +101 -0
  76. package/dist/chunks/button.cb90b55c.js.map +1 -0
  77. package/dist/chunks/{calendar.640b8d25.js → calendar.f02e0a5a.js} +5 -5
  78. package/dist/chunks/{calendar.640b8d25.js.map → calendar.f02e0a5a.js.map} +1 -1
  79. package/dist/chunks/{checkbox.bfed007c.js → checkbox.9f9c978a.js} +3 -3
  80. package/dist/chunks/{checkbox.bfed007c.js.map → checkbox.9f9c978a.js.map} +1 -1
  81. package/dist/chunks/{controls-group.4fb50009.js → controls-group.121a307d.js} +3 -3
  82. package/dist/chunks/{controls-group.4fb50009.js.map → controls-group.121a307d.js.map} +1 -1
  83. package/dist/chunks/{copy.f85700c6.js → copy.6808b2dc.js} +4 -4
  84. package/dist/chunks/{copy.f85700c6.js.map → copy.6808b2dc.js.map} +1 -1
  85. package/dist/chunks/{dialog-page.73da22cf.js → dialog-page.7fd7d006.js} +3 -3
  86. package/dist/chunks/{dialog-page.73da22cf.js.map → dialog-page.7fd7d006.js.map} +1 -1
  87. package/dist/chunks/{dropdown-default-textbox.54ca1b18.js → dropdown-default-textbox.d0f17d96.js} +3 -3
  88. package/dist/chunks/{dropdown-default-textbox.54ca1b18.js.map → dropdown-default-textbox.d0f17d96.js.map} +1 -1
  89. package/dist/chunks/{dropdown.10c034aa.js → dropdown.a8037bca.js} +188 -197
  90. package/dist/chunks/dropdown.a8037bca.js.map +1 -0
  91. package/dist/chunks/{error-message.31ec12b7.js → error-message.bdcc1020.js} +2 -2
  92. package/dist/chunks/{error-message.31ec12b7.js.map → error-message.bdcc1020.js.map} +1 -1
  93. package/dist/chunks/{events.58c00e6d.js → events.f14a214b.js} +5 -5
  94. package/dist/chunks/events.f14a214b.js.map +1 -0
  95. package/dist/chunks/{fixed-scroller.4eb9a9ac.js → fixed-scroller.82ef6187.js} +2 -2
  96. package/dist/chunks/{fixed-scroller.4eb9a9ac.js.map → fixed-scroller.82ef6187.js.map} +1 -1
  97. package/dist/chunks/{footer-actions.a1e09b4f.js → footer-actions.58d14a16.js} +4 -4
  98. package/dist/chunks/{footer-actions.a1e09b4f.js.map → footer-actions.58d14a16.js.map} +1 -1
  99. package/dist/chunks/{index.15b088b9.js → index.0a30d358.js} +6 -6
  100. package/dist/chunks/{index.15b088b9.js.map → index.0a30d358.js.map} +1 -1
  101. package/dist/chunks/{index.d553d3d1.js → index.1deef79e.js} +2 -2
  102. package/dist/chunks/{index.d553d3d1.js.map → index.1deef79e.js.map} +1 -1
  103. package/dist/chunks/index.3c69be27.js +85 -0
  104. package/dist/chunks/index.3c69be27.js.map +1 -0
  105. package/dist/chunks/index.561786f6.js +126 -0
  106. package/dist/chunks/index.561786f6.js.map +1 -0
  107. package/dist/chunks/{index.b21197ca.js → index.614a5138.js} +2 -2
  108. package/dist/chunks/{index.b21197ca.js.map → index.614a5138.js.map} +1 -1
  109. package/dist/chunks/{index.8b8c3b16.js → index.854d6498.js} +9 -9
  110. package/dist/chunks/{index.8b8c3b16.js.map → index.854d6498.js.map} +1 -1
  111. package/dist/chunks/{index.885d05a9.js → index.939dd5cf.js} +2 -2
  112. package/dist/chunks/{index.885d05a9.js.map → index.939dd5cf.js.map} +1 -1
  113. package/dist/chunks/{index.1ea85d4a.js → index.a48e7f99.js} +6 -6
  114. package/dist/chunks/{index.1ea85d4a.js.map → index.a48e7f99.js.map} +1 -1
  115. package/dist/chunks/{index.317fca12.js → index.bd1d28d0.js} +3 -3
  116. package/dist/chunks/{index.317fca12.js.map → index.bd1d28d0.js.map} +1 -1
  117. package/dist/chunks/{index.671768a1.js → index.c8621e8e.js} +3 -3
  118. package/dist/chunks/{index.671768a1.js.map → index.c8621e8e.js.map} +1 -1
  119. package/dist/chunks/{index.7eefc59c.js → index.ccc7e8d7.js} +3 -3
  120. package/dist/chunks/{index.7eefc59c.js.map → index.ccc7e8d7.js.map} +1 -1
  121. package/dist/chunks/{index.dd30e538.js → index.e29a6907.js} +2 -2
  122. package/dist/chunks/{index.dd30e538.js.map → index.e29a6907.js.map} +1 -1
  123. package/dist/chunks/{keyboard-navigation.ca47dfa8.js → keyboard-navigation.bbc3d15c.js} +2 -2
  124. package/dist/chunks/{keyboard-navigation.ca47dfa8.js.map → keyboard-navigation.bbc3d15c.js.map} +1 -1
  125. package/dist/chunks/{listbox-option-tag.6bbb6bbe.js → listbox-option-tag.8708be60.js} +3 -3
  126. package/dist/chunks/{listbox-option-tag.6bbb6bbe.js.map → listbox-option-tag.8708be60.js.map} +1 -1
  127. package/dist/chunks/{loading-button.eafc9e1b.js → loading-button.692dbdc8.js} +2 -2
  128. package/dist/chunks/{loading-button.eafc9e1b.js.map → loading-button.692dbdc8.js.map} +1 -1
  129. package/dist/chunks/{payment-method.6c1ce07c.js → payment-method.c55dd352.js} +2 -2
  130. package/dist/chunks/{payment-method.6c1ce07c.js.map → payment-method.c55dd352.js.map} +1 -1
  131. package/dist/chunks/{tooltip.58ef3f4a.js → tooltip.efddb5f3.js} +4 -4
  132. package/dist/chunks/{tooltip.58ef3f4a.js.map → tooltip.efddb5f3.js.map} +1 -1
  133. package/dist/chunks/{use-bento-toast-controller.c3277f73.js → use-bento-toast-controller.5dac1f3c.js} +2 -2
  134. package/dist/chunks/{use-bento-toast-controller.c3277f73.js.map → use-bento-toast-controller.5dac1f3c.js.map} +1 -1
  135. package/dist/chunks/{use-cached-selected-values.69297473.js → use-cached-selected-values.98a9ed01.js} +225 -206
  136. package/dist/chunks/use-cached-selected-values.98a9ed01.js.map +1 -0
  137. package/dist/code-snippet.js +131 -129
  138. package/dist/code-snippet.js.map +1 -1
  139. package/dist/country.js +2 -2
  140. package/dist/currency.js +1 -1
  141. package/dist/dashboard-template.js +109 -0
  142. package/dist/dashboard-template.js.map +1 -0
  143. package/dist/data-grid-template.js +1 -1
  144. package/dist/data-grid.js +78 -70
  145. package/dist/data-grid.js.map +1 -1
  146. package/dist/date-picker.js +8 -8
  147. package/dist/date-range-picker.js +2 -2
  148. package/dist/date.js +1 -1
  149. package/dist/divider.js +1 -1
  150. package/dist/dropdown.js +7 -7
  151. package/dist/empty-state.js +3 -3
  152. package/dist/filter-bar.js +77 -75
  153. package/dist/filter-bar.js.map +1 -1
  154. package/dist/focus-trap.js +1 -1
  155. package/dist/form-layout.js +2 -2
  156. package/dist/header.js +4 -4
  157. package/dist/index.js +82 -79
  158. package/dist/index.js.map +1 -1
  159. package/dist/info-icon.js +3 -3
  160. package/dist/input-field.js +4 -4
  161. package/dist/internal.js +8 -8
  162. package/dist/link.js +1 -1
  163. package/dist/loading-indicator.js +1 -1
  164. package/dist/menu.js +1 -1
  165. package/dist/modal-fullscreen.js +6 -6
  166. package/dist/modal.js +6 -6
  167. package/dist/pagination.js +4 -4
  168. package/dist/payment-method.js +1 -1
  169. package/dist/popover.js +1 -1
  170. package/dist/popper-container.js +1 -1
  171. package/dist/radio-group.js +4 -4
  172. package/dist/search-bar.js +2 -2
  173. package/dist/secondary-nav.js +2 -2
  174. package/dist/segmented-control.js +40 -41
  175. package/dist/segmented-control.js.map +1 -1
  176. package/dist/selection-card.js +4 -4
  177. package/dist/sidepanel.js +6 -6
  178. package/dist/status.js +2 -2
  179. package/dist/stepper.js +4 -4
  180. package/dist/structured-list.js +1 -1
  181. package/dist/summary-grid.js +3 -3
  182. package/dist/tabs.js +68 -67
  183. package/dist/tabs.js.map +1 -1
  184. package/dist/tag.js +3 -3
  185. package/dist/textarea.js +4 -4
  186. package/dist/timeline.js +7 -7
  187. package/dist/toast.js +4 -4
  188. package/dist/toggle.js +2 -2
  189. package/dist/tutorial.js +68 -53
  190. package/dist/tutorial.js.map +1 -1
  191. package/dist/typography.js +1 -1
  192. package/dist/web-types.json +133 -70
  193. package/package.json +9 -6
  194. package/dist/chunks/button-actions.81db18e8.js.map +0 -1
  195. package/dist/chunks/button.9d6435ae.js +0 -100
  196. package/dist/chunks/button.9d6435ae.js.map +0 -1
  197. package/dist/chunks/checkmark.a6ed8f47.js +0 -26
  198. package/dist/chunks/checkmark.a6ed8f47.js.map +0 -1
  199. package/dist/chunks/dropdown.10c034aa.js.map +0 -1
  200. package/dist/chunks/events.58c00e6d.js.map +0 -1
  201. package/dist/chunks/index.aaf965f8.js +0 -147
  202. package/dist/chunks/index.aaf965f8.js.map +0 -1
  203. package/dist/chunks/use-cached-selected-values.69297473.js.map +0 -1
@@ -1,3 +1,5 @@
1
+ import { ComponentCustomProperties } from 'vue';
2
+ import { ComponentOptionsBase } from 'vue/types/v3-component-options';
1
3
  import { ComponentOptionsMixin } from 'vue/types/v3-component-options';
2
4
  import { ComponentOptionsMixin as ComponentOptionsMixin_2 } from 'vue/types/v3-component-options.js';
3
5
  import type { ComponentPublicInstance } from 'vue';
@@ -9,6 +11,7 @@ import { DefineComponent } from 'vue';
9
11
  import { DirectiveBinding } from 'vue';
10
12
  import type { DirectiveHook } from 'vue';
11
13
  import { EditorView } from '@codemirror/view';
14
+ import { ExtractComputedReturns } from 'vue/types/v3-component-options';
12
15
  import { ExtractPropTypes } from 'vue';
13
16
  import { Placement } from '@floating-ui/vue';
14
17
  import type { PluginObject } from 'vue';
@@ -16,9 +19,11 @@ import { PropType } from 'vue';
16
19
  import { Ref } from 'vue';
17
20
  import { RouterLinkProps } from 'vue-router/types/router';
18
21
  import { ShallowRef } from 'vue';
22
+ import { ShallowUnwrapRef } from 'vue';
19
23
  import type { typeToFlattenedError } from 'zod';
20
24
  import { UnwrapRef } from 'vue';
21
25
  import { VNode } from 'vue';
26
+ import { Vue3Instance } from 'vue/types/v3-component-public-instance';
22
27
  import * as z from 'zod';
23
28
  import type { ZodSchema } from 'zod';
24
29
 
@@ -32,6 +37,14 @@ declare type __VLS_NonUndefinedable_4<T> = T extends undefined ? never : T;
32
37
 
33
38
  declare type __VLS_NonUndefinedable_5<T> = T extends undefined ? never : T;
34
39
 
40
+ declare type __VLS_NonUndefinedable_6<T> = T extends undefined ? never : T;
41
+
42
+ declare type __VLS_NonUndefinedable_7<T> = T extends undefined ? never : T;
43
+
44
+ declare type __VLS_NonUndefinedable_8<T> = T extends undefined ? never : T;
45
+
46
+ declare type __VLS_NonUndefinedable_9<T> = T extends undefined ? never : T;
47
+
35
48
  declare type __VLS_TypePropsToRuntimeProps<T> = {
36
49
  [K in keyof T]-?: {} extends Pick<T, K>
37
50
  ? {
@@ -87,6 +100,50 @@ declare type __VLS_TypePropsToRuntimeProps_5<T> = {
87
100
  };
88
101
  };
89
102
 
103
+ declare type __VLS_TypePropsToRuntimeProps_6<T> = {
104
+ [K in keyof T]-?: {} extends Pick<T, K>
105
+ ? {
106
+ type: PropType<__VLS_NonUndefinedable_6<T[K]>>;
107
+ }
108
+ : {
109
+ type: PropType<T[K]>;
110
+ required: true;
111
+ };
112
+ };
113
+
114
+ declare type __VLS_TypePropsToRuntimeProps_7<T> = {
115
+ [K in keyof T]-?: {} extends Pick<T, K>
116
+ ? {
117
+ type: PropType<__VLS_NonUndefinedable_7<T[K]>>;
118
+ }
119
+ : {
120
+ type: PropType<T[K]>;
121
+ required: true;
122
+ };
123
+ };
124
+
125
+ declare type __VLS_TypePropsToRuntimeProps_8<T> = {
126
+ [K in keyof T]-?: {} extends Pick<T, K>
127
+ ? {
128
+ type: PropType<__VLS_NonUndefinedable_8<T[K]>>;
129
+ }
130
+ : {
131
+ type: PropType<T[K]>;
132
+ required: true;
133
+ };
134
+ };
135
+
136
+ declare type __VLS_TypePropsToRuntimeProps_9<T> = {
137
+ [K in keyof T]-?: {} extends Pick<T, K>
138
+ ? {
139
+ type: PropType<__VLS_NonUndefinedable_9<T[K]>>;
140
+ }
141
+ : {
142
+ type: PropType<T[K]>;
143
+ required: true;
144
+ };
145
+ };
146
+
90
147
  declare type __VLS_WithDefaults<P, D> = {
91
148
  [K in keyof Pick<P, keyof P>]: K extends keyof D
92
149
  ? P[K] & {
@@ -119,6 +176,30 @@ declare type __VLS_WithDefaults_4<P, D> = {
119
176
  : P[K];
120
177
  };
121
178
 
179
+ declare type __VLS_WithDefaults_5<P, D> = {
180
+ [K in keyof Pick<P, keyof P>]: K extends keyof D
181
+ ? P[K] & {
182
+ default: D[K];
183
+ }
184
+ : P[K];
185
+ };
186
+
187
+ declare type __VLS_WithDefaults_6<P, D> = {
188
+ [K in keyof Pick<P, keyof P>]: K extends keyof D
189
+ ? P[K] & {
190
+ default: D[K];
191
+ }
192
+ : P[K];
193
+ };
194
+
195
+ declare type __VLS_WithDefaults_7<P, D> = {
196
+ [K in keyof Pick<P, keyof P>]: K extends keyof D
197
+ ? P[K] & {
198
+ default: D[K];
199
+ }
200
+ : P[K];
201
+ };
202
+
122
203
  declare type __VLS_WithTemplateSlots<T, S> = T & {
123
204
  new (): {
124
205
  $slots: S;
@@ -275,6 +356,24 @@ declare type __VLS_WithTemplateSlots_32<T, S> = T & {
275
356
  };
276
357
  };
277
358
 
359
+ declare type __VLS_WithTemplateSlots_33<T, S> = T & {
360
+ new (): {
361
+ $slots: S;
362
+ };
363
+ };
364
+
365
+ declare type __VLS_WithTemplateSlots_34<T, S> = T & {
366
+ new (): {
367
+ $slots: S;
368
+ };
369
+ };
370
+
371
+ declare type __VLS_WithTemplateSlots_35<T, S> = T & {
372
+ new (): {
373
+ $slots: S;
374
+ };
375
+ };
376
+
278
377
  declare type __VLS_WithTemplateSlots_4<T, S> = T & {
279
378
  new (): {
280
379
  $slots: S;
@@ -942,10 +1041,11 @@ export declare interface BentoButtonActionObject extends BentoButtonProps {
942
1041
  iconLeft?: VueNodeElement;
943
1042
  iconRight?: VueNodeElement;
944
1043
  state?: BentoLoadingButtonState | `${BentoLoadingButtonState}`;
1044
+ iconOnly?: boolean;
945
1045
  }
946
1046
 
947
1047
  /**
948
- * ButtonActions component component manages a set of actions a user can choose from by displaying a group of buttons.
1048
+ * ButtonActions component manages a set of actions a user can choose from by displaying a group of buttons.
949
1049
  *
950
1050
  * @example
951
1051
  * import { BentoButtonActions } from '@adyen/bento-vue2';
@@ -2150,7 +2250,7 @@ export declare const BentoCodeSnippet: DefineComponent<
2150
2250
  * Language name for syntax highlighting rules
2151
2251
  */
2152
2252
  lang: {
2153
- type: PropType<'json' | 'xml' | 'java' | 'javascript' | BentoCodeSnippetSupportedLanguage>;
2253
+ type: PropType<'json' | 'xml' | 'java' | 'javascript' | 'python' | BentoCodeSnippetSupportedLanguage>;
2154
2254
  default: BentoCodeSnippetSupportedLanguage;
2155
2255
  validator: (value: BentoCodeSnippetSupportedLanguage) => boolean;
2156
2256
  };
@@ -2249,7 +2349,7 @@ export declare const BentoCodeSnippet: DefineComponent<
2249
2349
  * Language name for syntax highlighting rules
2250
2350
  */
2251
2351
  lang: {
2252
- type: PropType<'json' | 'xml' | 'java' | 'javascript' | BentoCodeSnippetSupportedLanguage>;
2352
+ type: PropType<'json' | 'xml' | 'java' | 'javascript' | 'python' | BentoCodeSnippetSupportedLanguage>;
2253
2353
  default: BentoCodeSnippetSupportedLanguage;
2254
2354
  validator: (value: BentoCodeSnippetSupportedLanguage) => boolean;
2255
2355
  };
@@ -2312,7 +2412,7 @@ export declare const BentoCodeSnippet: DefineComponent<
2312
2412
  content: string;
2313
2413
  loading: boolean;
2314
2414
  expandable: boolean;
2315
- lang: 'json' | 'xml' | 'java' | 'javascript' | BentoCodeSnippetSupportedLanguage;
2415
+ lang: 'json' | 'xml' | 'java' | 'javascript' | 'python' | BentoCodeSnippetSupportedLanguage;
2316
2416
  langLabel: string;
2317
2417
  editable: boolean;
2318
2418
  actionable: boolean;
@@ -2333,6 +2433,7 @@ export declare enum BentoCodeSnippetSupportedLanguage {
2333
2433
  XML = 'xml',
2334
2434
  JAVA = 'java',
2335
2435
  JAVASCRIPT = 'javascript',
2436
+ PYTHON = 'python',
2336
2437
  }
2337
2438
 
2338
2439
  /**
@@ -4286,6 +4387,206 @@ export declare type BentoCurrencyListboxOptionItem = OmitStrict<BentoListboxOpti
4286
4387
 
4287
4388
  export declare type BentoCurrencyListboxOptions = BentoCurrencyListboxOptionItem[];
4288
4389
 
4390
+ /**
4391
+ * Dashboard section is subcomponent of Dashboard template meant to be used to create the different sections within the page.
4392
+ *
4393
+ * @example
4394
+ * import { BentoDashboardSection } from '@adyen/bento-vue2';
4395
+ *
4396
+ * export default {
4397
+ * components: { BentoDashboardSection },
4398
+ * template: `
4399
+ * <bento-dashboard-section :header="{ title: 'Section' }" half-width>
4400
+ * <template #controls>
4401
+ * // Add your controls here
4402
+ * </template>
4403
+ * // You can render content with two cols
4404
+ * <template #content-col-1>
4405
+ * // Add your content here
4406
+ * </template>
4407
+ * <template #content-col-2>
4408
+ * // Add your content here
4409
+ * </template>
4410
+ * // Or you can render full width content by using default slot
4411
+ * // Add your content here
4412
+ * </bento-dashboard-section>
4413
+ * `
4414
+ * }
4415
+ */
4416
+ export declare const BentoDashboardSection: __VLS_WithTemplateSlots_34<
4417
+ DefineComponent<
4418
+ __VLS_WithDefaults_7<
4419
+ __VLS_TypePropsToRuntimeProps_9<{
4420
+ /**
4421
+ * The header of the section
4422
+ */
4423
+ header: BentoDashboardTemplateHeader;
4424
+ /**
4425
+ * Renders the section to take only half of the page
4426
+ */
4427
+ halfWidth?: boolean;
4428
+ }>,
4429
+ {
4430
+ halfWidth: boolean;
4431
+ }
4432
+ >,
4433
+ {},
4434
+ {},
4435
+ {},
4436
+ {},
4437
+ ComponentOptionsMixin,
4438
+ ComponentOptionsMixin,
4439
+ {},
4440
+ string,
4441
+ Readonly<
4442
+ ExtractPropTypes<
4443
+ __VLS_WithDefaults_7<
4444
+ __VLS_TypePropsToRuntimeProps_9<{
4445
+ /**
4446
+ * The header of the section
4447
+ */
4448
+ header: BentoDashboardTemplateHeader;
4449
+ /**
4450
+ * Renders the section to take only half of the page
4451
+ */
4452
+ halfWidth?: boolean;
4453
+ }>,
4454
+ {
4455
+ halfWidth: boolean;
4456
+ }
4457
+ >
4458
+ >
4459
+ >,
4460
+ {
4461
+ halfWidth: boolean;
4462
+ }
4463
+ >,
4464
+ {
4465
+ infoIconTooltipContent: (_: {}) => any;
4466
+ controls: (_: {}) => any;
4467
+ default: (_: {}) => any;
4468
+ 'content-col-1': (_: {}) => any;
4469
+ 'content-col-2': (_: {}) => any;
4470
+ }
4471
+ >;
4472
+
4473
+ /**
4474
+ * Dashboard template is a full page template used to visualize data on pages such as data dashboards and reports.
4475
+ *
4476
+ * @example
4477
+ * import { BentoDashboardTemplate, BentoDashboardSection } from '@adyen/bento-vue2';
4478
+ *
4479
+ * export default {
4480
+ * components: { BentoDashboardTemplate, BentoDashboardSection },
4481
+ * template: `
4482
+ * <bento-dashboard-template :header="{ title: 'Dashboard'}" :tabs="tabs: [{ title: 'Tab 1' }, { title: 'Tab 2' }]" sticky-tabs sticky-filters>
4483
+ * <template #tab-1>
4484
+ * <bento-dashboard-section :header="{ title: 'Section'}">
4485
+ * <template #controls>
4486
+ * // Add your controls here
4487
+ * </template>
4488
+ * // Add your content here
4489
+ * </bento-dashboard-section>
4490
+ * </template>
4491
+ * <template #tab-2>
4492
+ * <bento-dashboard-section :header="{ title: 'Section'}">
4493
+ * // Add your content here
4494
+ * </bento-dashboard-section>
4495
+ * </template>
4496
+ * </bento-dashboard-template>
4497
+ * `
4498
+ * }
4499
+ */
4500
+ export declare const BentoDashboardTemplate: __VLS_WithTemplateSlots_33<
4501
+ DefineComponent<
4502
+ __VLS_WithDefaults_6<
4503
+ __VLS_TypePropsToRuntimeProps_8<{
4504
+ /**
4505
+ * The header that goes to the top of the template
4506
+ */
4507
+ header: BentoDashboardTemplateHeader;
4508
+ /**
4509
+ * All the tab properties that can be set on the inner tab components.
4510
+ * - tabs.activeTabIndex: the currently active tab index.
4511
+ * - tabs.tabs: an array of BentoTab props, the first item in the array will affect the `tab-1` slot and so on.
4512
+ */
4513
+ tabs?: BentoDashboardTemplateTabs;
4514
+ /**
4515
+ * Renders the tabs with a sticky positioning
4516
+ */
4517
+ stickyTabs?: boolean;
4518
+ /**
4519
+ * Renders the tabs with a sticky positioning
4520
+ */
4521
+ stickyFilters?: boolean;
4522
+ }>,
4523
+ {
4524
+ tabs: any;
4525
+ stickyTabs: boolean;
4526
+ stickyFilters: boolean;
4527
+ }
4528
+ >,
4529
+ {},
4530
+ {},
4531
+ {},
4532
+ {},
4533
+ ComponentOptionsMixin,
4534
+ ComponentOptionsMixin,
4535
+ {},
4536
+ string,
4537
+ Readonly<
4538
+ ExtractPropTypes<
4539
+ __VLS_WithDefaults_6<
4540
+ __VLS_TypePropsToRuntimeProps_8<{
4541
+ /**
4542
+ * The header that goes to the top of the template
4543
+ */
4544
+ header: BentoDashboardTemplateHeader;
4545
+ /**
4546
+ * All the tab properties that can be set on the inner tab components.
4547
+ * - tabs.activeTabIndex: the currently active tab index.
4548
+ * - tabs.tabs: an array of BentoTab props, the first item in the array will affect the `tab-1` slot and so on.
4549
+ */
4550
+ tabs?: BentoDashboardTemplateTabs;
4551
+ /**
4552
+ * Renders the tabs with a sticky positioning
4553
+ */
4554
+ stickyTabs?: boolean;
4555
+ /**
4556
+ * Renders the tabs with a sticky positioning
4557
+ */
4558
+ stickyFilters?: boolean;
4559
+ }>,
4560
+ {
4561
+ tabs: any;
4562
+ stickyTabs: boolean;
4563
+ stickyFilters: boolean;
4564
+ }
4565
+ >
4566
+ >
4567
+ >,
4568
+ {
4569
+ tabs: BentoDashboardTemplateTabs;
4570
+ stickyFilters: boolean;
4571
+ stickyTabs: boolean;
4572
+ }
4573
+ >,
4574
+ Record<string, (_: {}) => any> & {
4575
+ infoIconTooltipContent: (_: {}) => any;
4576
+ filters: (_: {}) => any;
4577
+ default: (_: {}) => any;
4578
+ }
4579
+ >;
4580
+
4581
+ export declare type BentoDashboardTemplateHeader = InstanceType<typeof BentoHeader>['$props'];
4582
+
4583
+ export declare type BentoDashboardTemplateTab = InstanceType<typeof BentoTab>['$props'];
4584
+
4585
+ export declare type BentoDashboardTemplateTabs = {
4586
+ activeTabIndex?: number;
4587
+ tabs: BentoDashboardTemplateTab[];
4588
+ };
4589
+
4289
4590
  /**
4290
4591
  * A component to display data in columns and row format with a whole array of configuration for visualization and interaction.
4291
4592
  *
@@ -4722,6 +5023,13 @@ export declare const BentoDataGrid: __VLS_WithTemplateSlots_7<
4722
5023
  type: PropType<BentoDatagridDataItemId[]>;
4723
5024
  default: () => any[];
4724
5025
  };
5026
+ /**
5027
+ * Renders the data grid with no top spacing, to render inside containers that already have spacing
5028
+ */
5029
+ noSpacingTop: {
5030
+ type: BooleanConstructor;
5031
+ default: boolean;
5032
+ };
4725
5033
  /**
4726
5034
  * Sortby handles proper rendering of sort icon in header. Sorting currently is only supported server side.
4727
5035
  * It does make sure the currently sorted column has a more visible sort icon, and the sort icon points in the right direction.
@@ -5169,6 +5477,13 @@ export declare const BentoDataGrid: __VLS_WithTemplateSlots_7<
5169
5477
  type: PropType<BentoDatagridDataItemId[]>;
5170
5478
  default: () => any[];
5171
5479
  };
5480
+ /**
5481
+ * Renders the data grid with no top spacing, to render inside containers that already have spacing
5482
+ */
5483
+ noSpacingTop: {
5484
+ type: BooleanConstructor;
5485
+ default: boolean;
5486
+ };
5172
5487
  /**
5173
5488
  * Sortby handles proper rendering of sort icon in header. Sorting currently is only supported server side.
5174
5489
  * It does make sure the currently sorted column has a more visible sort icon, and the sort icon points in the right direction.
@@ -5219,6 +5534,7 @@ export declare const BentoDataGrid: __VLS_WithTemplateSlots_7<
5219
5534
  selectable: boolean;
5220
5535
  selection: BentoDatagridDataItemId[];
5221
5536
  highlightedRows: BentoDatagridDataItemId[];
5537
+ noSpacingTop: boolean;
5222
5538
  tabTitle: string;
5223
5539
  }
5224
5540
  >,
@@ -5297,6 +5613,7 @@ export declare enum BentoDatagridStyleState {
5297
5613
  STICKY_FILTERS = 'sticky-filters',
5298
5614
  OVERFLOW_SHADOW_LEFT = 'overflow-shadow-left',
5299
5615
  OVERFLOW_SHADOW_RIGHT = 'overflow-shadow-right',
5616
+ NO_SPACING_TOP = 'no-spacing-top',
5300
5617
  }
5301
5618
 
5302
5619
  /**
@@ -5322,7 +5639,7 @@ export declare enum BentoDatagridStyleState {
5322
5639
  * `
5323
5640
  * }
5324
5641
  */
5325
- export declare const BentoDataGridTemplate: __VLS_WithTemplateSlots_32<
5642
+ export declare const BentoDataGridTemplate: __VLS_WithTemplateSlots_35<
5326
5643
  DefineComponent<
5327
5644
  {
5328
5645
  /**
@@ -15768,49 +16085,12 @@ export declare enum BentoStepperVariantOption {
15768
16085
  */
15769
16086
  export declare const BentoStructuredList: __VLS_WithTemplateSlots_30<
15770
16087
  DefineComponent<
15771
- {
15772
- /**
15773
- * Width of the labels container, in pixels. Overrides layout prop.
15774
- */
15775
- labelsWidth: {
15776
- type: NumberConstructor;
15777
- default: any;
15778
- };
15779
- /**
15780
- * The layout of the label value pair in percentage.
15781
- * If labelsWidth is set, layout will be overriden by the static pixel value.
15782
- *
15783
- * If the value entered is not listed in the example
15784
- * list below '33-66' will be applied
15785
- * @example
15786
- * '25-75'
15787
- * '33-66'
15788
- * '42-58'
15789
- * '50-50'
15790
- */
15791
- layout: {
15792
- type: PropType<BentoStructuredListLayoutOptions>;
15793
- default: string;
15794
- validator: (value: BentoStructuredListLayoutOptions) => boolean;
15795
- };
15796
- },
15797
- {},
15798
- {},
15799
- {},
15800
- {},
15801
- ComponentOptionsMixin,
15802
- ComponentOptionsMixin,
15803
- {},
15804
- string,
15805
- Readonly<
15806
- ExtractPropTypes<{
16088
+ __VLS_WithDefaults_4<
16089
+ __VLS_TypePropsToRuntimeProps_5<{
15807
16090
  /**
15808
16091
  * Width of the labels container, in pixels. Overrides layout prop.
15809
16092
  */
15810
- labelsWidth: {
15811
- type: NumberConstructor;
15812
- default: any;
15813
- };
16093
+ labelsWidth?: number;
15814
16094
  /**
15815
16095
  * The layout of the label value pair in percentage.
15816
16096
  * If labelsWidth is set, layout will be overriden by the static pixel value.
@@ -15823,12 +16103,49 @@ export declare const BentoStructuredList: __VLS_WithTemplateSlots_30<
15823
16103
  * '42-58'
15824
16104
  * '50-50'
15825
16105
  */
15826
- layout: {
15827
- type: PropType<BentoStructuredListLayoutOptions>;
15828
- default: string;
15829
- validator: (value: BentoStructuredListLayoutOptions) => boolean;
15830
- };
15831
- }>
16106
+ layout?: BentoStructuredListLayoutOptions;
16107
+ }>,
16108
+ {
16109
+ labelsWidth: any;
16110
+ layout: string;
16111
+ }
16112
+ >,
16113
+ {},
16114
+ {},
16115
+ {},
16116
+ {},
16117
+ ComponentOptionsMixin,
16118
+ ComponentOptionsMixin,
16119
+ {},
16120
+ string,
16121
+ Readonly<
16122
+ ExtractPropTypes<
16123
+ __VLS_WithDefaults_4<
16124
+ __VLS_TypePropsToRuntimeProps_5<{
16125
+ /**
16126
+ * Width of the labels container, in pixels. Overrides layout prop.
16127
+ */
16128
+ labelsWidth?: number;
16129
+ /**
16130
+ * The layout of the label value pair in percentage.
16131
+ * If labelsWidth is set, layout will be overriden by the static pixel value.
16132
+ *
16133
+ * If the value entered is not listed in the example
16134
+ * list below '33-66' will be applied
16135
+ * @example
16136
+ * '25-75'
16137
+ * '33-66'
16138
+ * '42-58'
16139
+ * '50-50'
16140
+ */
16141
+ layout?: BentoStructuredListLayoutOptions;
16142
+ }>,
16143
+ {
16144
+ labelsWidth: any;
16145
+ layout: string;
16146
+ }
16147
+ >
16148
+ >
15832
16149
  >,
15833
16150
  {
15834
16151
  layout: BentoStructuredListLayoutOptions;
@@ -15865,102 +16182,76 @@ export declare const BentoStructuredList: __VLS_WithTemplateSlots_30<
15865
16182
  * `
15866
16183
  * }
15867
16184
  */
15868
- export declare const BentoStructuredListItem: DefineComponent<
15869
- {
15870
- /**
15871
- * Label to display for the value
15872
- */
15873
- label: {
15874
- type: StringConstructor;
15875
- required: true;
15876
- };
15877
- /**
15878
- * Text to display in info icon tooltip in the label to display for the value
15879
- */
15880
- labelInfo: {
15881
- type: StringConstructor;
15882
- default: any;
15883
- };
15884
- /**
15885
- * Text to copy when the user clicks `Copy` icon
15886
- */
15887
- copy: {
15888
- type: StringConstructor;
15889
- default: any;
15890
- };
15891
- /**
15892
- * Function to trigger when user clicks `Search` icon
15893
- */
15894
- search: {
15895
- type: PropType<(event: Event) => void>;
15896
- default: any;
15897
- };
15898
- /**
15899
- * Text to display when the user hovers over `Search` icon
15900
- */
15901
- searchTooltip: {
15902
- type: StringConstructor;
15903
- default: any;
15904
- };
15905
- },
15906
- {
15907
- conditionalClasses: ComputedRef<{
15908
- 'b-structured-list-item--condensed': boolean;
15909
- }>;
15910
- labelTypographyVariant: ComputedRef<'caption' | 'body'>;
15911
- labelsWidth: Ref<string>;
15912
- },
15913
- {},
15914
- {},
15915
- {},
15916
- ComponentOptionsMixin,
15917
- ComponentOptionsMixin,
15918
- {},
15919
- string,
15920
- Readonly<
15921
- ExtractPropTypes<{
16185
+ export declare const BentoStructuredListItem: __VLS_WithTemplateSlots_31<
16186
+ DefineComponent<
16187
+ __VLS_TypePropsToRuntimeProps_6<{
15922
16188
  /**
15923
16189
  * Label to display for the value
15924
16190
  */
15925
- label: {
15926
- type: StringConstructor;
15927
- required: true;
15928
- };
16191
+ label: string;
15929
16192
  /**
15930
16193
  * Text to display in info icon tooltip in the label to display for the value
15931
16194
  */
15932
- labelInfo: {
15933
- type: StringConstructor;
15934
- default: any;
15935
- };
16195
+ labelInfo?: string;
15936
16196
  /**
15937
16197
  * Text to copy when the user clicks `Copy` icon
15938
16198
  */
15939
- copy: {
15940
- type: StringConstructor;
15941
- default: any;
15942
- };
16199
+ copy?: string;
15943
16200
  /**
15944
16201
  * Function to trigger when user clicks `Search` icon
15945
16202
  */
15946
- search: {
15947
- type: PropType<(event: Event) => void>;
15948
- default: any;
15949
- };
16203
+ search?: (event: Event) => void;
15950
16204
  /**
15951
16205
  * Text to display when the user hovers over `Search` icon
15952
16206
  */
15953
- searchTooltip: {
15954
- type: StringConstructor;
15955
- default: any;
15956
- };
15957
- }>
16207
+ searchTooltip?: string;
16208
+ /**
16209
+ * Truncates the value of the item
16210
+ */
16211
+ truncate?: boolean;
16212
+ }>,
16213
+ {},
16214
+ {},
16215
+ {},
16216
+ {},
16217
+ ComponentOptionsMixin,
16218
+ ComponentOptionsMixin,
16219
+ {},
16220
+ string,
16221
+ Readonly<
16222
+ ExtractPropTypes<
16223
+ __VLS_TypePropsToRuntimeProps_6<{
16224
+ /**
16225
+ * Label to display for the value
16226
+ */
16227
+ label: string;
16228
+ /**
16229
+ * Text to display in info icon tooltip in the label to display for the value
16230
+ */
16231
+ labelInfo?: string;
16232
+ /**
16233
+ * Text to copy when the user clicks `Copy` icon
16234
+ */
16235
+ copy?: string;
16236
+ /**
16237
+ * Function to trigger when user clicks `Search` icon
16238
+ */
16239
+ search?: (event: Event) => void;
16240
+ /**
16241
+ * Text to display when the user hovers over `Search` icon
16242
+ */
16243
+ searchTooltip?: string;
16244
+ /**
16245
+ * Truncates the value of the item
16246
+ */
16247
+ truncate?: boolean;
16248
+ }>
16249
+ >
16250
+ >,
16251
+ {}
15958
16252
  >,
15959
16253
  {
15960
- search: (event: Event) => void;
15961
- copy: string;
15962
- labelInfo: string;
15963
- searchTooltip: string;
16254
+ default: (_: {}) => any;
15964
16255
  }
15965
16256
  >;
15966
16257
 
@@ -17011,6 +17302,75 @@ export declare const BentoTabs: DefineComponent<
17011
17302
  {
17012
17303
  tabs: Ref<BentoTab_2[]>;
17013
17304
  tablist: any;
17305
+ tablistwrapper: Ref<
17306
+ Vue3Instance<
17307
+ {},
17308
+ Readonly<
17309
+ ExtractPropTypes<{
17310
+ condensed: {
17311
+ type: BooleanConstructor;
17312
+ default: boolean;
17313
+ };
17314
+ extraPaddingTop: {
17315
+ type: NumberConstructor;
17316
+ default: number;
17317
+ };
17318
+ }>
17319
+ >,
17320
+ Readonly<
17321
+ ExtractPropTypes<{
17322
+ condensed: {
17323
+ type: BooleanConstructor;
17324
+ default: boolean;
17325
+ };
17326
+ extraPaddingTop: {
17327
+ type: NumberConstructor;
17328
+ default: number;
17329
+ };
17330
+ }>
17331
+ >,
17332
+ {},
17333
+ {
17334
+ condensed: boolean;
17335
+ extraPaddingTop: number;
17336
+ },
17337
+ true,
17338
+ ComponentOptionsBase<any, any, any, any, any, any, any, any, any, any>
17339
+ > &
17340
+ Readonly<
17341
+ Readonly<
17342
+ ExtractPropTypes<{
17343
+ condensed: {
17344
+ type: BooleanConstructor;
17345
+ default: boolean;
17346
+ };
17347
+ extraPaddingTop: {
17348
+ type: NumberConstructor;
17349
+ default: number;
17350
+ };
17351
+ }>
17352
+ >
17353
+ > &
17354
+ ShallowUnwrapRef<{}> &
17355
+ ExtractComputedReturns<{}> &
17356
+ ComponentCustomProperties &
17357
+ Readonly<
17358
+ ExtractPropTypes<{
17359
+ condensed: {
17360
+ type: BooleanConstructor;
17361
+ default: boolean;
17362
+ };
17363
+ extraPaddingTop: {
17364
+ type: NumberConstructor;
17365
+ default: number;
17366
+ };
17367
+ }>
17368
+ > & {
17369
+ $slots: {
17370
+ default: (_: {}) => any;
17371
+ };
17372
+ }
17373
+ >;
17014
17374
  activeTabId: Ref<string>;
17015
17375
  onKeydownTabsNavigation: (e: KeyboardEvent) => void;
17016
17376
  handleTabChange: (tabId: string) => void;
@@ -18321,6 +18681,13 @@ export declare enum BentoTooltipState {
18321
18681
  */
18322
18682
  export declare const BentoTutorial: DefineComponent<
18323
18683
  {
18684
+ /**
18685
+ * The current step index. If provided, will start the tutorial in that step.
18686
+ */
18687
+ index: {
18688
+ type: NumberConstructor;
18689
+ default: any;
18690
+ };
18324
18691
  /**
18325
18692
  * The steps configuration for the tutorial.
18326
18693
  *
@@ -18346,10 +18713,19 @@ export declare const BentoTutorial: DefineComponent<
18346
18713
  {},
18347
18714
  ComponentOptionsMixin,
18348
18715
  ComponentOptionsMixin,
18349
- {},
18716
+ {
18717
+ 'update:index': (value: number) => void;
18718
+ },
18350
18719
  string,
18351
18720
  Readonly<
18352
18721
  ExtractPropTypes<{
18722
+ /**
18723
+ * The current step index. If provided, will start the tutorial in that step.
18724
+ */
18725
+ index: {
18726
+ type: NumberConstructor;
18727
+ default: any;
18728
+ };
18353
18729
  /**
18354
18730
  * The steps configuration for the tutorial.
18355
18731
  *
@@ -18371,6 +18747,7 @@ export declare const BentoTutorial: DefineComponent<
18371
18747
  }>
18372
18748
  >,
18373
18749
  {
18750
+ index: number;
18374
18751
  scrollOptions: any;
18375
18752
  }
18376
18753
  >;
@@ -18404,10 +18781,10 @@ export declare interface BentoTutorialStep {
18404
18781
  * `
18405
18782
  * }
18406
18783
  */
18407
- export declare const BentoTypography: __VLS_WithTemplateSlots_31<
18784
+ export declare const BentoTypography: __VLS_WithTemplateSlots_32<
18408
18785
  DefineComponent<
18409
- __VLS_WithDefaults_4<
18410
- __VLS_TypePropsToRuntimeProps_5<{
18786
+ __VLS_WithDefaults_5<
18787
+ __VLS_TypePropsToRuntimeProps_7<{
18411
18788
  /**
18412
18789
  * Sets the HTML DOM element.
18413
18790
  * @values h1, h2, h3, h4, h5, h6, div, p, span
@@ -18464,8 +18841,8 @@ export declare const BentoTypography: __VLS_WithTemplateSlots_31<
18464
18841
  string,
18465
18842
  Readonly<
18466
18843
  ExtractPropTypes<
18467
- __VLS_WithDefaults_4<
18468
- __VLS_TypePropsToRuntimeProps_5<{
18844
+ __VLS_WithDefaults_5<
18845
+ __VLS_TypePropsToRuntimeProps_7<{
18469
18846
  /**
18470
18847
  * Sets the HTML DOM element.
18471
18848
  * @values h1, h2, h3, h4, h5, h6, div, p, span