@adyen/bento-vue3 1.23.0 → 1.24.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 (217) hide show
  1. package/dist/@types/packages/vue2/src/components/avatar-image/avatar-image.vue.d.ts +38 -48
  2. package/dist/@types/packages/vue2/src/components/card/card.vue.d.ts +25 -20
  3. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-config-settings/data-grid-config-settings.vue.d.ts +1 -0
  4. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.d.ts +1 -1
  5. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +1 -1
  6. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter-button/base-filter-button.vue.d.ts +1 -1
  7. package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +10 -2
  8. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/components/listbox-multi-select-category/listbox-multi-select-category.vue.d.ts +25 -20
  9. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +3 -3
  10. package/dist/@types/packages/vue2/src/components/modal/components/modal-default/modal-default.vue.d.ts +2 -2
  11. package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +3 -3
  12. package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +1 -1
  13. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +3 -3
  14. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +3 -3
  15. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-numeric/summary-grid-item-numeric.vue.d.ts +3 -3
  16. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-percentage/summary-grid-item-percentage.vue.d.ts +3 -3
  17. package/dist/@types/packages/vue2/src/components/toast/components/toast-item/toast-item.vue.d.ts +7 -40
  18. package/dist/@types/packages/vue2/src/components/toast/components/toast-shadow-stack/toast-shadow-stack.types.d.ts +5 -0
  19. package/dist/@types/packages/vue2/src/components/toast/components/toast-shadow-stack/toast-shadow-stack.vue.d.ts +7 -0
  20. package/dist/@types/packages/vue2/src/components/toast/index.d.ts +0 -1
  21. package/dist/@types/packages/vue2/src/components/toast/toast.vue.d.ts +1 -29
  22. package/dist/@types/packages/vue2/src/components/tooltip/tooltip.vue.d.ts +195 -55
  23. package/dist/@types/packages/vue2/src/components/typography/typography.vue.d.ts +71 -85
  24. package/dist/@types/packages/vue2/src/composables/index.d.ts +1 -0
  25. package/dist/@types/packages/vue2/src/composables/use-bento-toast-controller/index.d.ts +2 -0
  26. package/dist/@types/packages/vue2/src/composables/use-bento-toast-controller/install.d.ts +6 -0
  27. package/dist/@types/packages/vue2/src/composables/use-bento-toast-controller/toast-stack.d.ts +7 -0
  28. package/dist/@types/packages/vue2/src/composables/use-bento-toast-controller/use-bento-toast-controller.d.ts +2 -0
  29. package/dist/@types/packages/vue2/src/composables/use-bento-toast-controller/use-bento-toast-controller.types.d.ts +23 -0
  30. package/dist/@types/packages/vue2/src/index.d.ts +1 -0
  31. package/dist/@types/packages/vue2/src/utils/ts/storybook.d.ts +10 -0
  32. package/dist/accordion.js +2 -2
  33. package/dist/action-bar.js +6 -6
  34. package/dist/alert.js +113 -77
  35. package/dist/alert.js.map +1 -1
  36. package/dist/assets/base-modal.css +1 -1
  37. package/dist/assets/dialog-page.css +1 -1
  38. package/dist/assets/grid-layout.css +1 -1
  39. package/dist/assets/index.css +1 -1
  40. package/dist/assets/index10.css +1 -1
  41. package/dist/assets/index11.css +1 -1
  42. package/dist/assets/index13.css +1 -1
  43. package/dist/assets/index14.css +1 -1
  44. package/dist/assets/index15.css +1 -1
  45. package/dist/assets/index16.css +1 -1
  46. package/dist/assets/index17.css +1 -1
  47. package/dist/assets/index18.css +1 -1
  48. package/dist/assets/index19.css +1 -1
  49. package/dist/assets/index2.css +1 -1
  50. package/dist/assets/index20.css +1 -1
  51. package/dist/assets/index21.css +1 -1
  52. package/dist/assets/index22.css +1 -1
  53. package/dist/assets/index23.css +1 -1
  54. package/dist/assets/index24.css +1 -1
  55. package/dist/assets/index25.css +1 -1
  56. package/dist/assets/index26.css +1 -1
  57. package/dist/assets/index27.css +1 -1
  58. package/dist/assets/index28.css +1 -1
  59. package/dist/assets/index29.css +1 -1
  60. package/dist/assets/index3.css +1 -1
  61. package/dist/assets/index30.css +1 -1
  62. package/dist/assets/index31.css +1 -1
  63. package/dist/assets/index32.css +1 -1
  64. package/dist/assets/index33.css +1 -1
  65. package/dist/assets/index34.css +1 -1
  66. package/dist/assets/index35.css +1 -1
  67. package/dist/assets/index36.css +1 -1
  68. package/dist/assets/index37.css +1 -1
  69. package/dist/assets/index38.css +1 -1
  70. package/dist/assets/index39.css +1 -1
  71. package/dist/assets/index4.css +1 -1
  72. package/dist/assets/index40.css +1 -1
  73. package/dist/assets/index41.css +1 -1
  74. package/dist/assets/index42.css +1 -1
  75. package/dist/assets/index43.css +1 -1
  76. package/dist/assets/index44.css +1 -1
  77. package/dist/assets/index45.css +1 -1
  78. package/dist/assets/index46.css +1 -1
  79. package/dist/assets/index47.css +1 -1
  80. package/dist/assets/index48.css +1 -1
  81. package/dist/assets/index5.css +1 -1
  82. package/dist/assets/index6.css +1 -1
  83. package/dist/assets/index7.css +1 -1
  84. package/dist/assets/index8.css +1 -1
  85. package/dist/assets/index9.css +1 -1
  86. package/dist/avatar-image.js +1 -1
  87. package/dist/badge.js +1 -1
  88. package/dist/button.js +5 -5
  89. package/dist/card.js +3 -3
  90. package/dist/checkbox.js +5 -5
  91. package/dist/chunks/{base-button.13df4e44.js → base-button.ab9c947e.js} +2 -2
  92. package/dist/chunks/{base-button.13df4e44.js.map → base-button.ab9c947e.js.map} +1 -1
  93. package/dist/chunks/{base-modal.30bce990.js → base-modal.28b5ff83.js} +5 -5
  94. package/dist/chunks/{base-modal.30bce990.js.map → base-modal.28b5ff83.js.map} +1 -1
  95. package/dist/chunks/{button-actions-with-menu.a5d2bb13.js → button-actions-with-menu.305991e5.js} +4 -4
  96. package/dist/chunks/{button-actions-with-menu.a5d2bb13.js.map → button-actions-with-menu.305991e5.js.map} +1 -1
  97. package/dist/chunks/{button-actions.ec3c649c.js → button-actions.ea025810.js} +3 -3
  98. package/dist/chunks/{button-actions.ec3c649c.js.map → button-actions.ea025810.js.map} +1 -1
  99. package/dist/chunks/{button.e965bf53.js → button.ce5d1f5e.js} +3 -3
  100. package/dist/chunks/{button.e965bf53.js.map → button.ce5d1f5e.js.map} +1 -1
  101. package/dist/chunks/{calendar.52fe4032.js → calendar.24a492f1.js} +4 -4
  102. package/dist/chunks/{calendar.52fe4032.js.map → calendar.24a492f1.js.map} +1 -1
  103. package/dist/chunks/{checkbox.1442f41a.js → checkbox.d0f897e0.js} +3 -3
  104. package/dist/chunks/{checkbox.1442f41a.js.map → checkbox.d0f897e0.js.map} +1 -1
  105. package/dist/chunks/{controls-group.1f29b602.js → controls-group.2b31233c.js} +3 -3
  106. package/dist/chunks/{controls-group.1f29b602.js.map → controls-group.2b31233c.js.map} +1 -1
  107. package/dist/chunks/{copy.d052f444.js → copy.9003ed59.js} +4 -4
  108. package/dist/chunks/{copy.d052f444.js.map → copy.9003ed59.js.map} +1 -1
  109. package/dist/chunks/{dialog-page.d505c5ec.js → dialog-page.2c07d294.js} +3 -3
  110. package/dist/chunks/{dialog-page.d505c5ec.js.map → dialog-page.2c07d294.js.map} +1 -1
  111. package/dist/chunks/{dropdown-default-textbox.e0ca5afb.js → dropdown-default-textbox.311443a8.js} +2 -2
  112. package/dist/chunks/{dropdown-default-textbox.e0ca5afb.js.map → dropdown-default-textbox.311443a8.js.map} +1 -1
  113. package/dist/chunks/{dropdown.257691c0.js → dropdown.170b43c4.js} +7 -7
  114. package/dist/chunks/{dropdown.257691c0.js.map → dropdown.170b43c4.js.map} +1 -1
  115. package/dist/chunks/{error-message.56247bcc.js → error-message.4678cbdc.js} +2 -2
  116. package/dist/chunks/{error-message.56247bcc.js.map → error-message.4678cbdc.js.map} +1 -1
  117. package/dist/chunks/{fixed-scroller.47546775.js → fixed-scroller.f09618f2.js} +2 -2
  118. package/dist/chunks/{fixed-scroller.47546775.js.map → fixed-scroller.f09618f2.js.map} +1 -1
  119. package/dist/chunks/{footer-actions.3c2dbf43.js → footer-actions.2efe610e.js} +4 -4
  120. package/dist/chunks/{footer-actions.3c2dbf43.js.map → footer-actions.2efe610e.js.map} +1 -1
  121. package/dist/chunks/{index.56c13d2c.js → index.0d513625.js} +9 -9
  122. package/dist/chunks/{index.56c13d2c.js.map → index.0d513625.js.map} +1 -1
  123. package/dist/chunks/{index.10c69f39.js → index.1b1646bf.js} +6 -6
  124. package/dist/chunks/{index.10c69f39.js.map → index.1b1646bf.js.map} +1 -1
  125. package/dist/chunks/index.51fe0fc2.js +74 -0
  126. package/dist/chunks/index.51fe0fc2.js.map +1 -0
  127. package/dist/chunks/{index.4fb57ba0.js → index.6987f880.js} +6 -6
  128. package/dist/chunks/{index.4fb57ba0.js.map → index.6987f880.js.map} +1 -1
  129. package/dist/chunks/{index.f800b267.js → index.70c91b3b.js} +2 -2
  130. package/dist/chunks/{index.f800b267.js.map → index.70c91b3b.js.map} +1 -1
  131. package/dist/chunks/{index.08d813e2.js → index.920cc1ee.js} +6 -6
  132. package/dist/chunks/{index.08d813e2.js.map → index.920cc1ee.js.map} +1 -1
  133. package/dist/chunks/{index.9aaed799.js → index.b3cb905c.js} +2 -2
  134. package/dist/chunks/{index.9aaed799.js.map → index.b3cb905c.js.map} +1 -1
  135. package/dist/chunks/{index.bf4a116b.js → index.b772214b.js} +3 -3
  136. package/dist/chunks/{index.bf4a116b.js.map → index.b772214b.js.map} +1 -1
  137. package/dist/chunks/{index.824101bb.js → index.c41d1bbb.js} +2 -2
  138. package/dist/chunks/{index.824101bb.js.map → index.c41d1bbb.js.map} +1 -1
  139. package/dist/chunks/index.c5b58864.js +62 -0
  140. package/dist/chunks/index.c5b58864.js.map +1 -0
  141. package/dist/chunks/{listbox-option-tag.4de1659c.js → listbox-option-tag.bf77e0c4.js} +3 -3
  142. package/dist/chunks/{listbox-option-tag.4de1659c.js.map → listbox-option-tag.bf77e0c4.js.map} +1 -1
  143. package/dist/chunks/{listbox.eb436d06.js → listbox.b6a1aea2.js} +5 -5
  144. package/dist/chunks/{listbox.eb436d06.js.map → listbox.b6a1aea2.js.map} +1 -1
  145. package/dist/chunks/{loading-button.6e15f27f.js → loading-button.cdc193c6.js} +2 -2
  146. package/dist/chunks/{loading-button.6e15f27f.js.map → loading-button.cdc193c6.js.map} +1 -1
  147. package/dist/chunks/{payment-method.df1b62db.js → payment-method.ea1788f7.js} +2 -2
  148. package/dist/chunks/{payment-method.df1b62db.js.map → payment-method.ea1788f7.js.map} +1 -1
  149. package/dist/chunks/{tooltip.066fd8f7.js → tooltip.10210728.js} +3 -3
  150. package/dist/chunks/{tooltip.066fd8f7.js.map → tooltip.10210728.js.map} +1 -1
  151. package/dist/chunks/use-bento-toast-controller.3275a505.js +50 -0
  152. package/dist/chunks/use-bento-toast-controller.3275a505.js.map +1 -0
  153. package/dist/code-snippet.js +7 -7
  154. package/dist/code-snippet.js.map +1 -1
  155. package/dist/country.js +2 -2
  156. package/dist/currency.js +1 -1
  157. package/dist/data-grid-template.js +1 -1
  158. package/dist/data-grid.js +643 -632
  159. package/dist/data-grid.js.map +1 -1
  160. package/dist/date-picker.js +8 -8
  161. package/dist/date-range-picker.js +2 -2
  162. package/dist/date.js +1 -1
  163. package/dist/divider.js +1 -1
  164. package/dist/dropdown.js +7 -7
  165. package/dist/empty-state.js +3 -3
  166. package/dist/filter-bar.js +25 -29
  167. package/dist/filter-bar.js.map +1 -1
  168. package/dist/form-layout.js +2 -2
  169. package/dist/header.js +4 -4
  170. package/dist/index.js +248 -271
  171. package/dist/index.js.map +1 -1
  172. package/dist/info-icon.js +3 -3
  173. package/dist/input-field.js +85 -80
  174. package/dist/input-field.js.map +1 -1
  175. package/dist/internal.js +8 -8
  176. package/dist/link.js +1 -1
  177. package/dist/loading-indicator.js +1 -1
  178. package/dist/menu.js +1 -1
  179. package/dist/modal-fullscreen.js +5 -5
  180. package/dist/modal.js +6 -6
  181. package/dist/pagination.js +4 -4
  182. package/dist/payment-method.js +1 -1
  183. package/dist/popover.js +1 -1
  184. package/dist/popper-container.js +1 -1
  185. package/dist/radio-group.js +4 -4
  186. package/dist/search-bar.js +2 -2
  187. package/dist/secondary-nav.js +2 -2
  188. package/dist/segmented-control.js +3 -3
  189. package/dist/selection-card.js +4 -4
  190. package/dist/sidepanel.js +5 -5
  191. package/dist/status.js +2 -2
  192. package/dist/stepper.js +3 -3
  193. package/dist/structured-list.js +1 -1
  194. package/dist/summary-grid.js +3 -3
  195. package/dist/tabs.js +3 -3
  196. package/dist/tag.js +3 -3
  197. package/dist/textarea.js +4 -4
  198. package/dist/timeline.js +7 -7
  199. package/dist/toast.js +185 -154
  200. package/dist/toast.js.map +1 -1
  201. package/dist/toggle.js +2 -2
  202. package/dist/tutorial.js +6 -6
  203. package/dist/typography.js +1 -1
  204. package/dist/web-types.json +1 -1
  205. package/package.json +2 -2
  206. package/dist/@types/packages/vue2/src/components/toast/components/toast-item/index.d.ts +0 -2
  207. package/dist/@types/packages/vue2/src/components/toast/components/toast-item/toast-item.types.d.ts +0 -9
  208. package/dist/@types/packages/vue2/src/plugins/toastController.d.ts +0 -12
  209. package/dist/@types/packages/vue2/src/utils/ts/toastController.d.ts +0 -2
  210. package/dist/chunks/index.0e01e0b2.js +0 -101
  211. package/dist/chunks/index.0e01e0b2.js.map +0 -1
  212. package/dist/chunks/index.99c63a74.js +0 -125
  213. package/dist/chunks/index.99c63a74.js.map +0 -1
  214. package/dist/chunks/info-filled.a6f9d7d0.js +0 -44
  215. package/dist/chunks/info-filled.a6f9d7d0.js.map +0 -1
  216. package/dist/chunks/toastController.0b01d2e8.js +0 -9
  217. package/dist/chunks/toastController.0b01d2e8.js.map +0 -1
@@ -1,30 +1,2 @@
1
- /**
2
- * @example
3
- * import { BentoToast, useBentoToastController } from '@adyen/bento-vue2';
4
- *
5
- * export default {
6
- * components: { BentoToast },
7
- * template: `
8
- * // in your project root
9
- * <bento-toast />
10
- * setup() {
11
- * bentoToastController = useBentoToastController();
12
- * onTrigger = () => {
13
- * bentoToastController.addToast({ text: 'Your toast text', action: { text: 'Button text', handler: () => { your code here } });
14
- * }
15
- * `
16
- * }
17
- */
18
- declare const _default: import("../../../../vue3/node_modules/vue").DefineComponent<{}, {
19
- computedPositioning: import("../../../../vue3/node_modules/vue").ComputedRef<{
20
- top: string;
21
- width: string;
22
- }[]>;
23
- computedHeight: import("../../../../vue3/node_modules/vue").ComputedRef<{
24
- bottom: string;
25
- height: string;
26
- }>;
27
- toastsToShow: import("../../../../vue3/node_modules/vue").ComputedRef<import("./components/toast-item").BentoToastItem[]>;
28
- toast: any;
29
- }, {}, {}, {}, import("../../../../vue3/node_modules/vue").ComponentOptionsMixin, import("../../../../vue3/node_modules/vue").ComponentOptionsMixin, {}, string, import("../../../../vue3/node_modules/vue").VNodeProps & import("../../../../vue3/node_modules/vue").AllowedComponentProps & import("../../../../vue3/node_modules/vue").ComponentCustomProps, Readonly<import("../../../../vue3/node_modules/vue").ExtractPropTypes<{}>>, {}>;
1
+ declare const _default: import("../../../../vue3/node_modules/vue").DefineComponent<{}, {}, {}, {}, {}, import("../../../../vue3/node_modules/vue").ComponentOptionsMixin, import("../../../../vue3/node_modules/vue").ComponentOptionsMixin, {}, string, import("../../../../vue3/node_modules/vue").VNodeProps & import("../../../../vue3/node_modules/vue").AllowedComponentProps & import("../../../../vue3/node_modules/vue").ComponentCustomProps, Readonly<import("../../../../vue3/node_modules/vue").ExtractPropTypes<{}>>, {}>;
30
2
  export default _default;
@@ -7,81 +7,221 @@ import { VueNodeElement } from "../../types";
7
7
  export declare const Tooltip: {
8
8
  name: string;
9
9
  components: {
10
- BentoTypography: import("../../../../vue3/node_modules/vue").DefineComponent<{
11
- el: {
12
- type: PropType<"div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | import("../typography").BentoTypographyElement>;
13
- default: import("../typography").BentoTypographyElement;
14
- validator: (value: import("../typography").BentoTypographyElement) => boolean;
10
+ BentoTypography: {
11
+ new (...args: any[]): {
12
+ $: import("../../../../vue3/node_modules/vue").ComponentInternalInstance;
13
+ $data: {};
14
+ $props: Partial<{
15
+ wide: boolean;
16
+ stronger: boolean;
17
+ strongest: boolean;
18
+ el: "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | import("../typography").BentoTypographyElement;
19
+ large: boolean;
20
+ medium: boolean;
21
+ variant: "body" | "caption" | "title" | "subtitle" | import("../typography").BentoTypographyVariant;
22
+ }> & Omit<Readonly<import("../../../../vue3/node_modules/vue").ExtractPropTypes<{
23
+ wide: {
24
+ type: PropType<boolean>;
25
+ } & {
26
+ default: boolean;
27
+ };
28
+ stronger: {
29
+ type: PropType<boolean>;
30
+ } & {
31
+ default: boolean;
32
+ };
33
+ strongest: {
34
+ type: PropType<boolean>;
35
+ } & {
36
+ default: boolean;
37
+ };
38
+ el: {
39
+ type: PropType<"div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | import("../typography").BentoTypographyElement>;
40
+ } & {
41
+ default: import("../typography").BentoTypographyElement;
42
+ };
43
+ large: {
44
+ type: PropType<boolean>;
45
+ } & {
46
+ default: boolean;
47
+ };
48
+ medium: {
49
+ type: PropType<boolean>;
50
+ } & {
51
+ default: boolean;
52
+ };
53
+ variant: {
54
+ type: PropType<"body" | "caption" | "title" | "subtitle" | import("../typography").BentoTypographyVariant>;
55
+ } & {
56
+ default: import("../typography").BentoTypographyVariant;
57
+ };
58
+ }>> & import("../../../../vue3/node_modules/vue").VNodeProps & import("../../../../vue3/node_modules/vue").AllowedComponentProps & import("../../../../vue3/node_modules/vue").ComponentCustomProps, "wide" | "stronger" | "strongest" | "el" | "large" | "medium" | "variant">;
59
+ $attrs: {
60
+ [x: string]: unknown;
61
+ };
62
+ $refs: {
63
+ [x: string]: unknown;
64
+ };
65
+ $slots: Readonly<{
66
+ [name: string]: import("../../../../vue3/node_modules/vue").Slot;
67
+ }>;
68
+ $root: import("../../../../vue3/node_modules/vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("../../../../vue3/node_modules/vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
69
+ $parent: import("../../../../vue3/node_modules/vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("../../../../vue3/node_modules/vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
70
+ $emit: (event: string, ...args: any[]) => void;
71
+ $el: any;
72
+ $options: import("../../../../vue3/node_modules/vue").ComponentOptionsBase<Readonly<import("../../../../vue3/node_modules/vue").ExtractPropTypes<{
73
+ wide: {
74
+ type: PropType<boolean>;
75
+ } & {
76
+ default: boolean;
77
+ };
78
+ stronger: {
79
+ type: PropType<boolean>;
80
+ } & {
81
+ default: boolean;
82
+ };
83
+ strongest: {
84
+ type: PropType<boolean>;
85
+ } & {
86
+ default: boolean;
87
+ };
88
+ el: {
89
+ type: PropType<"div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | import("../typography").BentoTypographyElement>;
90
+ } & {
91
+ default: import("../typography").BentoTypographyElement;
92
+ };
93
+ large: {
94
+ type: PropType<boolean>;
95
+ } & {
96
+ default: boolean;
97
+ };
98
+ medium: {
99
+ type: PropType<boolean>;
100
+ } & {
101
+ default: boolean;
102
+ };
103
+ variant: {
104
+ type: PropType<"body" | "caption" | "title" | "subtitle" | import("../typography").BentoTypographyVariant>;
105
+ } & {
106
+ default: import("../typography").BentoTypographyVariant;
107
+ };
108
+ }>>, {}, unknown, {}, {}, import("../../../../vue3/node_modules/vue").ComponentOptionsMixin, import("../../../../vue3/node_modules/vue").ComponentOptionsMixin, {}, string, {
109
+ wide: boolean;
110
+ stronger: boolean;
111
+ strongest: boolean;
112
+ el: "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | import("../typography").BentoTypographyElement;
113
+ large: boolean;
114
+ medium: boolean;
115
+ variant: "body" | "caption" | "title" | "subtitle" | import("../typography").BentoTypographyVariant;
116
+ }, {}, string> & {
117
+ beforeCreate?: (() => void) | (() => void)[];
118
+ created?: (() => void) | (() => void)[];
119
+ beforeMount?: (() => void) | (() => void)[];
120
+ mounted?: (() => void) | (() => void)[];
121
+ beforeUpdate?: (() => void) | (() => void)[];
122
+ updated?: (() => void) | (() => void)[];
123
+ activated?: (() => void) | (() => void)[];
124
+ deactivated?: (() => void) | (() => void)[];
125
+ beforeDestroy?: (() => void) | (() => void)[];
126
+ beforeUnmount?: (() => void) | (() => void)[];
127
+ destroyed?: (() => void) | (() => void)[];
128
+ unmounted?: (() => void) | (() => void)[];
129
+ renderTracked?: ((e: import("../../../../vue3/node_modules/vue").DebuggerEvent) => void) | ((e: import("../../../../vue3/node_modules/vue").DebuggerEvent) => void)[];
130
+ renderTriggered?: ((e: import("../../../../vue3/node_modules/vue").DebuggerEvent) => void) | ((e: import("../../../../vue3/node_modules/vue").DebuggerEvent) => void)[];
131
+ errorCaptured?: ((err: unknown, instance: import("../../../../vue3/node_modules/vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("../../../../vue3/node_modules/vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("../../../../vue3/node_modules/vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("../../../../vue3/node_modules/vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void)[];
132
+ };
133
+ $forceUpdate: () => void;
134
+ $nextTick: typeof import("../../../../vue3/node_modules/vue").nextTick;
135
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("../../../../vue3/node_modules/vue").WatchOptions<boolean>): import("../../../../vue3/node_modules/vue").WatchStopHandle;
136
+ } & Readonly<import("../../../../vue3/node_modules/vue").ExtractPropTypes<{
137
+ wide: {
138
+ type: PropType<boolean>;
139
+ } & {
140
+ default: boolean;
141
+ };
142
+ stronger: {
143
+ type: PropType<boolean>;
144
+ } & {
145
+ default: boolean;
146
+ };
147
+ strongest: {
148
+ type: PropType<boolean>;
149
+ } & {
150
+ default: boolean;
151
+ };
152
+ el: {
153
+ type: PropType<"div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | import("../typography").BentoTypographyElement>;
154
+ } & {
155
+ default: import("../typography").BentoTypographyElement;
156
+ };
157
+ large: {
158
+ type: PropType<boolean>;
159
+ } & {
160
+ default: boolean;
161
+ };
162
+ medium: {
163
+ type: PropType<boolean>;
164
+ } & {
165
+ default: boolean;
166
+ };
167
+ variant: {
168
+ type: PropType<"body" | "caption" | "title" | "subtitle" | import("../typography").BentoTypographyVariant>;
169
+ } & {
170
+ default: import("../typography").BentoTypographyVariant;
171
+ };
172
+ }>> & import("../../../../vue3/node_modules/vue").ShallowUnwrapRef<{}> & {} & import("../../../../vue3/node_modules/vue").ComponentCustomProperties & {};
173
+ __isFragment?: never;
174
+ __isTeleport?: never;
175
+ __isSuspense?: never;
176
+ } & import("../../../../vue3/node_modules/vue").ComponentOptionsBase<Readonly<import("../../../../vue3/node_modules/vue").ExtractPropTypes<{
177
+ wide: {
178
+ type: PropType<boolean>;
179
+ } & {
180
+ default: boolean;
15
181
  };
16
182
  stronger: {
17
- type: BooleanConstructor;
183
+ type: PropType<boolean>;
184
+ } & {
18
185
  default: boolean;
19
186
  };
20
187
  strongest: {
21
- type: BooleanConstructor;
22
- default: boolean;
23
- };
24
- variant: {
25
- type: PropType<"body" | "caption" | "title" | "subtitle" | import("../typography").BentoTypographyVariant>;
26
- default: import("../typography").BentoTypographyVariant;
27
- validator: (value: import("../typography").BentoTypographyVariant) => boolean;
28
- };
29
- medium: {
30
- type: BooleanConstructor;
31
- default: boolean;
32
- };
33
- large: {
34
- type: BooleanConstructor;
35
- default: boolean;
36
- };
37
- wide: {
38
- type: BooleanConstructor;
188
+ type: PropType<boolean>;
189
+ } & {
39
190
  default: boolean;
40
191
  };
41
- }, {
42
- conditionalClasses: import("../../../../vue3/node_modules/vue").ComputedRef<{
43
- [x: string]: boolean;
44
- }>;
45
- }, unknown, {}, {}, import("../../../../vue3/node_modules/vue").ComponentOptionsMixin, import("../../../../vue3/node_modules/vue").ComponentOptionsMixin, {}, string, import("../../../../vue3/node_modules/vue").VNodeProps & import("../../../../vue3/node_modules/vue").AllowedComponentProps & import("../../../../vue3/node_modules/vue").ComponentCustomProps, Readonly<import("../../../../vue3/node_modules/vue").ExtractPropTypes<{
46
192
  el: {
47
193
  type: PropType<"div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | import("../typography").BentoTypographyElement>;
194
+ } & {
48
195
  default: import("../typography").BentoTypographyElement;
49
- validator: (value: import("../typography").BentoTypographyElement) => boolean;
50
196
  };
51
- stronger: {
52
- type: BooleanConstructor;
197
+ large: {
198
+ type: PropType<boolean>;
199
+ } & {
53
200
  default: boolean;
54
201
  };
55
- strongest: {
56
- type: BooleanConstructor;
202
+ medium: {
203
+ type: PropType<boolean>;
204
+ } & {
57
205
  default: boolean;
58
206
  };
59
207
  variant: {
60
208
  type: PropType<"body" | "caption" | "title" | "subtitle" | import("../typography").BentoTypographyVariant>;
209
+ } & {
61
210
  default: import("../typography").BentoTypographyVariant;
62
- validator: (value: import("../typography").BentoTypographyVariant) => boolean;
63
- };
64
- medium: {
65
- type: BooleanConstructor;
66
- default: boolean;
67
- };
68
- large: {
69
- type: BooleanConstructor;
70
- default: boolean;
71
- };
72
- wide: {
73
- type: BooleanConstructor;
74
- default: boolean;
75
211
  };
76
- }>>, {
212
+ }>>, {}, unknown, {}, {}, import("../../../../vue3/node_modules/vue").ComponentOptionsMixin, import("../../../../vue3/node_modules/vue").ComponentOptionsMixin, {}, string, {
77
213
  wide: boolean;
78
214
  stronger: boolean;
79
215
  strongest: boolean;
80
216
  el: "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | import("../typography").BentoTypographyElement;
81
- variant: "body" | "caption" | "title" | "subtitle" | import("../typography").BentoTypographyVariant;
82
- medium: boolean;
83
217
  large: boolean;
84
- }>;
218
+ medium: boolean;
219
+ variant: "body" | "caption" | "title" | "subtitle" | import("../typography").BentoTypographyVariant;
220
+ }, {}, string> & import("../../../../vue3/node_modules/vue").VNodeProps & import("../../../../vue3/node_modules/vue").AllowedComponentProps & import("../../../../vue3/node_modules/vue").ComponentCustomProps & (new () => {
221
+ $slots: {
222
+ default: (_: {}) => any;
223
+ };
224
+ });
85
225
  PopperContainer: {
86
226
  new (...args: any[]): {
87
227
  $: import("../../../../vue3/node_modules/vue").ComponentInternalInstance;
@@ -89,12 +229,12 @@ export declare const Tooltip: {
89
229
  $props: Partial<{
90
230
  position: "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | import("../popper-container").PopperContainerPosition;
91
231
  offset: number[];
232
+ id: string;
92
233
  ariaRole: PopperContainerAriaRole;
93
234
  arrow: any;
94
235
  disabledFocusTrap: boolean;
95
236
  fallbackPosition: import("../popper-container").FallbackPositionProp;
96
237
  fixedPositioning: boolean;
97
- id: string;
98
238
  isHidden: boolean;
99
239
  matchWidth: boolean;
100
240
  middleware: {
@@ -180,7 +320,7 @@ export declare const Tooltip: {
180
320
  };
181
321
  }>> & {
182
322
  onPlacement?: (value: import("@floating-ui/utils").Placement) => any;
183
- } & import("../../../../vue3/node_modules/vue").VNodeProps & import("../../../../vue3/node_modules/vue").AllowedComponentProps & import("../../../../vue3/node_modules/vue").ComponentCustomProps, "position" | "offset" | "ariaRole" | "arrow" | "disabledFocusTrap" | "fallbackPosition" | "fixedPositioning" | "id" | "isHidden" | "matchWidth" | "middleware">;
323
+ } & import("../../../../vue3/node_modules/vue").VNodeProps & import("../../../../vue3/node_modules/vue").AllowedComponentProps & import("../../../../vue3/node_modules/vue").ComponentCustomProps, "position" | "offset" | "id" | "ariaRole" | "arrow" | "disabledFocusTrap" | "fallbackPosition" | "fixedPositioning" | "isHidden" | "matchWidth" | "middleware">;
184
324
  $attrs: {
185
325
  [x: string]: unknown;
186
326
  };
@@ -267,12 +407,12 @@ export declare const Tooltip: {
267
407
  }, string, {
268
408
  position: "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | import("../popper-container").PopperContainerPosition;
269
409
  offset: number[];
410
+ id: string;
270
411
  ariaRole: PopperContainerAriaRole;
271
412
  arrow: any;
272
413
  disabledFocusTrap: boolean;
273
414
  fallbackPosition: import("../popper-container").FallbackPositionProp;
274
415
  fixedPositioning: boolean;
275
- id: string;
276
416
  isHidden: boolean;
277
417
  matchWidth: boolean;
278
418
  middleware: {
@@ -455,12 +595,12 @@ export declare const Tooltip: {
455
595
  }, string, {
456
596
  position: "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | import("../popper-container").PopperContainerPosition;
457
597
  offset: number[];
598
+ id: string;
458
599
  ariaRole: PopperContainerAriaRole;
459
600
  arrow: any;
460
601
  disabledFocusTrap: boolean;
461
602
  fallbackPosition: import("../popper-container").FallbackPositionProp;
462
603
  fixedPositioning: boolean;
463
- id: string;
464
604
  isHidden: boolean;
465
605
  matchWidth: boolean;
466
606
  middleware: {
@@ -1,4 +1,3 @@
1
- import { PropType } from "../../../../vue3/node_modules/vue";
2
1
  import { BentoTypographyElement, BentoTypographyVariant } from './typography.types';
3
2
  /**
4
3
  * The Typography component makes it easy to apply a default set of font weights, sizes and other text styles
@@ -18,135 +17,122 @@ import { BentoTypographyElement, BentoTypographyVariant } from './typography.typ
18
17
  * `
19
18
  * }
20
19
  */
21
- declare const _default: import("../../../../vue3/node_modules/vue").DefineComponent<{
20
+ declare const _default: __VLS_WithTemplateSlots<import("../../../../vue3/node_modules/vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
22
21
  /**
23
22
  * Sets the HTML DOM element.
24
23
  * @values h1, h2, h3, h4, h5, h6, div, p, span
25
24
  */
26
- el: {
27
- type: PropType<"div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | BentoTypographyElement>;
28
- default: BentoTypographyElement;
29
- validator: (value: BentoTypographyElement) => boolean;
30
- };
25
+ el?: BentoTypographyElement | `${BentoTypographyElement}`;
26
+ /**
27
+ * Adds the large class modifier.
28
+ * Applicable to the Title variant.
29
+ */
30
+ large?: boolean;
31
+ /**
32
+ * Adds the medium class modifier.
33
+ * Applicable to the Title variant.
34
+ */
35
+ medium?: boolean;
31
36
  /**
32
37
  * Adds the stronger class modifier.
33
38
  * Applicable to Caption, Body and Subtitle variants.
34
39
  */
35
- stronger: {
36
- type: BooleanConstructor;
37
- default: boolean;
38
- };
40
+ stronger?: boolean;
39
41
  /**
40
42
  * Adds the strongest class modifier.
41
43
  * Applicable to Caption, Body and Subtitle variants.
42
44
  */
43
- strongest: {
44
- type: BooleanConstructor;
45
- default: boolean;
46
- };
45
+ strongest?: boolean;
47
46
  /**
48
47
  * Sets the type of typography variant.
49
48
  * @values caption, body, title.
50
49
  */
51
- variant: {
52
- type: PropType<"body" | "caption" | "title" | "subtitle" | BentoTypographyVariant>;
53
- default: BentoTypographyVariant;
54
- validator: (value: BentoTypographyVariant) => boolean;
55
- };
50
+ variant?: BentoTypographyVariant | `${BentoTypographyVariant}`;
56
51
  /**
57
52
  * Adds the medium class modifier.
58
- * Applicable to the Title variant.
53
+ * Applicable to tje Body variant.
59
54
  */
60
- medium: {
61
- type: BooleanConstructor;
62
- default: boolean;
63
- };
55
+ wide?: boolean;
56
+ }>, {
57
+ el: BentoTypographyElement;
58
+ large: boolean;
59
+ medium: boolean;
60
+ stronger: boolean;
61
+ strongest: boolean;
62
+ variant: BentoTypographyVariant;
63
+ wide: boolean;
64
+ }>, {}, unknown, {}, {}, import("../../../../vue3/node_modules/vue").ComponentOptionsMixin, import("../../../../vue3/node_modules/vue").ComponentOptionsMixin, {}, string, import("../../../../vue3/node_modules/vue").VNodeProps & import("../../../../vue3/node_modules/vue").AllowedComponentProps & import("../../../../vue3/node_modules/vue").ComponentCustomProps, Readonly<import("../../../../vue3/node_modules/vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
65
+ /**
66
+ * Sets the HTML DOM element.
67
+ * @values h1, h2, h3, h4, h5, h6, div, p, span
68
+ */
69
+ el?: BentoTypographyElement | `${BentoTypographyElement}`;
64
70
  /**
65
71
  * Adds the large class modifier.
66
72
  * Applicable to the Title variant.
67
73
  */
68
- large: {
69
- type: BooleanConstructor;
70
- default: boolean;
71
- };
74
+ large?: boolean;
72
75
  /**
73
76
  * Adds the medium class modifier.
74
- * Applicable to tje Body variant.
75
- */
76
- wide: {
77
- type: BooleanConstructor;
78
- default: boolean;
79
- };
80
- }, {
81
- conditionalClasses: import("../../../../vue3/node_modules/vue").ComputedRef<{
82
- [x: string]: boolean;
83
- }>;
84
- }, unknown, {}, {}, import("../../../../vue3/node_modules/vue").ComponentOptionsMixin, import("../../../../vue3/node_modules/vue").ComponentOptionsMixin, {}, string, import("../../../../vue3/node_modules/vue").VNodeProps & import("../../../../vue3/node_modules/vue").AllowedComponentProps & import("../../../../vue3/node_modules/vue").ComponentCustomProps, Readonly<import("../../../../vue3/node_modules/vue").ExtractPropTypes<{
85
- /**
86
- * Sets the HTML DOM element.
87
- * @values h1, h2, h3, h4, h5, h6, div, p, span
77
+ * Applicable to the Title variant.
88
78
  */
89
- el: {
90
- type: PropType<"div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | BentoTypographyElement>;
91
- default: BentoTypographyElement;
92
- validator: (value: BentoTypographyElement) => boolean;
93
- };
79
+ medium?: boolean;
94
80
  /**
95
81
  * Adds the stronger class modifier.
96
82
  * Applicable to Caption, Body and Subtitle variants.
97
83
  */
98
- stronger: {
99
- type: BooleanConstructor;
100
- default: boolean;
101
- };
84
+ stronger?: boolean;
102
85
  /**
103
86
  * Adds the strongest class modifier.
104
87
  * Applicable to Caption, Body and Subtitle variants.
105
88
  */
106
- strongest: {
107
- type: BooleanConstructor;
108
- default: boolean;
109
- };
89
+ strongest?: boolean;
110
90
  /**
111
91
  * Sets the type of typography variant.
112
92
  * @values caption, body, title.
113
93
  */
114
- variant: {
115
- type: PropType<"body" | "caption" | "title" | "subtitle" | BentoTypographyVariant>;
116
- default: BentoTypographyVariant;
117
- validator: (value: BentoTypographyVariant) => boolean;
118
- };
119
- /**
120
- * Adds the medium class modifier.
121
- * Applicable to the Title variant.
122
- */
123
- medium: {
124
- type: BooleanConstructor;
125
- default: boolean;
126
- };
127
- /**
128
- * Adds the large class modifier.
129
- * Applicable to the Title variant.
130
- */
131
- large: {
132
- type: BooleanConstructor;
133
- default: boolean;
134
- };
94
+ variant?: BentoTypographyVariant | `${BentoTypographyVariant}`;
135
95
  /**
136
96
  * Adds the medium class modifier.
137
97
  * Applicable to tje Body variant.
138
98
  */
139
- wide: {
140
- type: BooleanConstructor;
141
- default: boolean;
142
- };
143
- }>>, {
99
+ wide?: boolean;
100
+ }>, {
101
+ el: BentoTypographyElement;
102
+ large: boolean;
103
+ medium: boolean;
104
+ stronger: boolean;
105
+ strongest: boolean;
106
+ variant: BentoTypographyVariant;
107
+ wide: boolean;
108
+ }>>>, {
144
109
  wide: boolean;
145
110
  stronger: boolean;
146
111
  strongest: boolean;
147
- el: "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | BentoTypographyElement;
148
- variant: "body" | "caption" | "title" | "subtitle" | BentoTypographyVariant;
149
- medium: boolean;
112
+ el: BentoTypographyElement | `${BentoTypographyElement}`;
150
113
  large: boolean;
114
+ medium: boolean;
115
+ variant: BentoTypographyVariant | `${BentoTypographyVariant}`;
116
+ }>, {
117
+ default: (_: {}) => any;
151
118
  }>;
152
119
  export default _default;
120
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
121
+ type __VLS_TypePropsToRuntimeProps<T> = {
122
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
123
+ type: import("../../../../vue3/node_modules/vue").PropType<__VLS_NonUndefinedable<T[K]>>;
124
+ } : {
125
+ type: import("../../../../vue3/node_modules/vue").PropType<T[K]>;
126
+ required: true;
127
+ };
128
+ };
129
+ type __VLS_WithDefaults<P, D> = {
130
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
131
+ default: D[K];
132
+ } : P[K];
133
+ };
134
+ type __VLS_WithTemplateSlots<T, S> = T & {
135
+ new (): {
136
+ $slots: S;
137
+ };
138
+ };
@@ -6,3 +6,4 @@ export * from './use-form-layout-loading/use-form-layout-loading';
6
6
  export * from './use-form-validate';
7
7
  export * from './use-has-slot/use-has-slot';
8
8
  export * from './use-virtual-list';
9
+ export * from './use-bento-toast-controller';
@@ -0,0 +1,2 @@
1
+ export * from './use-bento-toast-controller';
2
+ export * from './use-bento-toast-controller.types';
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This function is used to create and register global reactive state necessary fro the Toasts to operate.
3
+ * @param {Vue} Vue A context application to register global state with.
4
+ */
5
+ declare const _default: (Vue: any) => void;
6
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import type { ToastStack } from './use-bento-toast-controller.types';
2
+ export declare const toastStackInjectionKey: unique symbol;
3
+ /**
4
+ * This utility creates a global reactive state to add new toasts and keep track of them.
5
+ * @returns {ToastStack} An object that contains reactive stack property with all add toasts and a function to add new toasts
6
+ */
7
+ export declare const createToastStack: () => ToastStack;
@@ -0,0 +1,2 @@
1
+ import { UseBentoToastController } from './use-bento-toast-controller.types';
2
+ export declare function useBentoToastController(): UseBentoToastController;
@@ -0,0 +1,23 @@
1
+ import { type DeepReadonly, type Ref } from "../../../../vue3/node_modules/vue";
2
+ export interface BentoToastItemAction {
3
+ handler: () => void;
4
+ text: string;
5
+ }
6
+ export interface BentoToastItemParams {
7
+ action?: BentoToastItemAction;
8
+ text: string;
9
+ }
10
+ export interface BentoToastItem extends BentoToastItemParams {
11
+ id: string;
12
+ dismiss: () => void;
13
+ }
14
+ export type BentoToastItemsList = Array<BentoToastItem>;
15
+ interface Toast {
16
+ dismiss: () => void;
17
+ }
18
+ export interface ToastStack {
19
+ stack: DeepReadonly<Ref<BentoToastItemsList>>;
20
+ addToast: (params: BentoToastItemParams) => Toast;
21
+ }
22
+ export type UseBentoToastController = ToastStack;
23
+ export {};
@@ -49,6 +49,7 @@ export * from './components/toggle';
49
49
  export * from './components/tutorial';
50
50
  export * from './components/typography';
51
51
  export * from './composables/use-form-validate';
52
+ export * from './composables/use-bento-toast-controller';
52
53
  export * from './templates/data-grid-template';
53
54
  export * from './types';
54
55
  export * from './directives';
@@ -10,3 +10,13 @@ export declare const getPokemonFromApi: (pokemonName?: string) => Promise<{
10
10
  label: any;
11
11
  value: any;
12
12
  }[]>;
13
+ /**
14
+ * Adds necessary Toast component to display toasts.
15
+ * It should be added just once on the app level, but never in the views or components itself
16
+ */
17
+ export declare const withToastDecorator: () => {
18
+ components: {
19
+ BentoToast: import("../../../../vue3/node_modules/vue").DefineComponent<{}, {}, {}, {}, {}, import("../../../../vue3/node_modules/vue").ComponentOptionsMixin, import("../../../../vue3/node_modules/vue").ComponentOptionsMixin, {}, string, import("../../../../vue3/node_modules/vue").VNodeProps & import("../../../../vue3/node_modules/vue").AllowedComponentProps & import("../../../../vue3/node_modules/vue").ComponentCustomProps, Readonly<import("../../../../vue3/node_modules/vue").ExtractPropTypes<{}>>, {}>;
20
+ };
21
+ template: string;
22
+ };