@adyen/bento-vue3 1.22.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 (251) 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-cell/data-grid-cell.types.d.ts +9 -5
  4. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell/data-grid-cell.vue.d.ts +15 -0
  5. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.types.d.ts +1 -0
  6. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +18 -0
  7. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-config-settings/data-grid-config-settings.vue.d.ts +1 -0
  8. package/dist/@types/packages/vue2/src/components/data-grid/composables/index.d.ts +1 -0
  9. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.d.ts +2 -1
  10. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-hovering/index.d.ts +2 -0
  11. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-hovering/use-column-hovering.d.ts +53 -0
  12. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-hovering/use-column-hovering.types.d.ts +12 -0
  13. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-config-settings/use-config-settings.d.ts +2 -99
  14. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-config-settings/use-config.settings.types.d.ts +7 -0
  15. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-resizer.d.ts +47 -1
  16. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +48 -8
  17. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +1 -1
  18. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +48 -24
  19. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter-button/base-filter-button.vue.d.ts +1 -1
  20. package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.types.d.ts +12 -2
  21. package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +10 -2
  22. 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
  23. package/dist/@types/packages/vue2/src/components/menu/menu.types.d.ts +1 -1
  24. package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +1 -0
  25. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +3 -3
  26. package/dist/@types/packages/vue2/src/components/modal/components/modal-default/modal-default.vue.d.ts +2 -2
  27. package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +3 -3
  28. package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +1 -1
  29. package/dist/@types/packages/vue2/src/components/stepper/composables/index.d.ts +2 -0
  30. package/dist/@types/packages/vue2/src/components/stepper/composables/use-step-register/use-step-register.d.ts +11 -0
  31. package/dist/@types/packages/vue2/src/components/stepper/stepper.types.d.ts +1 -0
  32. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +3 -3
  33. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +3 -3
  34. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-numeric/summary-grid-item-numeric.vue.d.ts +3 -3
  35. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-percentage/summary-grid-item-percentage.vue.d.ts +3 -3
  36. package/dist/@types/packages/vue2/src/components/toast/components/toast-item/toast-item.vue.d.ts +7 -40
  37. package/dist/@types/packages/vue2/src/components/toast/components/toast-shadow-stack/toast-shadow-stack.types.d.ts +5 -0
  38. package/dist/@types/packages/vue2/src/components/toast/components/toast-shadow-stack/toast-shadow-stack.vue.d.ts +7 -0
  39. package/dist/@types/packages/vue2/src/components/toast/index.d.ts +0 -1
  40. package/dist/@types/packages/vue2/src/components/toast/toast.vue.d.ts +1 -29
  41. package/dist/@types/packages/vue2/src/components/tooltip/tooltip.vue.d.ts +195 -55
  42. package/dist/@types/packages/vue2/src/components/typography/typography.vue.d.ts +71 -85
  43. package/dist/@types/packages/vue2/src/composables/index.d.ts +1 -0
  44. package/dist/@types/packages/vue2/src/composables/use-bento-toast-controller/index.d.ts +2 -0
  45. package/dist/@types/packages/vue2/src/composables/use-bento-toast-controller/install.d.ts +6 -0
  46. package/dist/@types/packages/vue2/src/composables/use-bento-toast-controller/toast-stack.d.ts +7 -0
  47. package/dist/@types/packages/vue2/src/composables/use-bento-toast-controller/use-bento-toast-controller.d.ts +2 -0
  48. package/dist/@types/packages/vue2/src/composables/use-bento-toast-controller/use-bento-toast-controller.types.d.ts +23 -0
  49. package/dist/@types/packages/vue2/src/index.d.ts +1 -0
  50. package/dist/@types/packages/vue2/src/utils/ts/storybook.d.ts +10 -0
  51. package/dist/accordion.js +2 -2
  52. package/dist/action-bar.js +6 -6
  53. package/dist/alert.js +113 -77
  54. package/dist/alert.js.map +1 -1
  55. package/dist/assets/base-modal.css +1 -1
  56. package/dist/assets/button.css +1 -1
  57. package/dist/assets/dialog-page.css +1 -1
  58. package/dist/assets/grid-layout.css +1 -1
  59. package/dist/assets/index.css +1 -1
  60. package/dist/assets/index10.css +1 -1
  61. package/dist/assets/index11.css +1 -1
  62. package/dist/assets/index12.css +1 -1
  63. package/dist/assets/index13.css +1 -1
  64. package/dist/assets/index14.css +1 -1
  65. package/dist/assets/index15.css +1 -1
  66. package/dist/assets/index16.css +1 -1
  67. package/dist/assets/index17.css +1 -1
  68. package/dist/assets/index18.css +1 -1
  69. package/dist/assets/index19.css +1 -1
  70. package/dist/assets/index2.css +1 -1
  71. package/dist/assets/index20.css +1 -1
  72. package/dist/assets/index21.css +1 -1
  73. package/dist/assets/index22.css +1 -1
  74. package/dist/assets/index23.css +1 -1
  75. package/dist/assets/index24.css +1 -1
  76. package/dist/assets/index25.css +1 -1
  77. package/dist/assets/index26.css +1 -1
  78. package/dist/assets/index27.css +1 -1
  79. package/dist/assets/index28.css +1 -1
  80. package/dist/assets/index29.css +1 -1
  81. package/dist/assets/index3.css +1 -1
  82. package/dist/assets/index30.css +1 -1
  83. package/dist/assets/index31.css +1 -1
  84. package/dist/assets/index32.css +1 -1
  85. package/dist/assets/index33.css +1 -1
  86. package/dist/assets/index34.css +1 -1
  87. package/dist/assets/index35.css +1 -1
  88. package/dist/assets/index36.css +1 -1
  89. package/dist/assets/index37.css +1 -1
  90. package/dist/assets/index38.css +1 -1
  91. package/dist/assets/index39.css +1 -1
  92. package/dist/assets/index4.css +1 -1
  93. package/dist/assets/index40.css +1 -1
  94. package/dist/assets/index41.css +1 -1
  95. package/dist/assets/index42.css +1 -1
  96. package/dist/assets/index43.css +1 -1
  97. package/dist/assets/index44.css +1 -1
  98. package/dist/assets/index45.css +1 -1
  99. package/dist/assets/index46.css +1 -1
  100. package/dist/assets/index47.css +1 -1
  101. package/dist/assets/index48.css +1 -1
  102. package/dist/assets/index5.css +1 -1
  103. package/dist/assets/index6.css +1 -1
  104. package/dist/assets/index7.css +1 -1
  105. package/dist/assets/index8.css +1 -1
  106. package/dist/assets/index9.css +1 -1
  107. package/dist/avatar-image.js +1 -1
  108. package/dist/badge.js +1 -1
  109. package/dist/button.js +5 -5
  110. package/dist/card.js +3 -3
  111. package/dist/checkbox.js +5 -5
  112. package/dist/chunks/{base-button.86be8130.js → base-button.ab9c947e.js} +2 -2
  113. package/dist/chunks/{base-button.86be8130.js.map → base-button.ab9c947e.js.map} +1 -1
  114. package/dist/chunks/{base-modal.01333c00.js → base-modal.28b5ff83.js} +6 -6
  115. package/dist/chunks/{base-modal.01333c00.js.map → base-modal.28b5ff83.js.map} +1 -1
  116. package/dist/chunks/{button-actions-with-menu.df95130d.js → button-actions-with-menu.305991e5.js} +4 -4
  117. package/dist/chunks/{button-actions-with-menu.df95130d.js.map → button-actions-with-menu.305991e5.js.map} +1 -1
  118. package/dist/chunks/{button-actions.bcc9dcc7.js → button-actions.ea025810.js} +3 -3
  119. package/dist/chunks/{button-actions.bcc9dcc7.js.map → button-actions.ea025810.js.map} +1 -1
  120. package/dist/chunks/{button.a378e7ab.js → button.ce5d1f5e.js} +3 -3
  121. package/dist/chunks/{button.a378e7ab.js.map → button.ce5d1f5e.js.map} +1 -1
  122. package/dist/chunks/{calendar.891a60a9.js → calendar.24a492f1.js} +4 -4
  123. package/dist/chunks/{calendar.891a60a9.js.map → calendar.24a492f1.js.map} +1 -1
  124. package/dist/chunks/{checkbox.9753e9d6.js → checkbox.d0f897e0.js} +3 -3
  125. package/dist/chunks/{checkbox.9753e9d6.js.map → checkbox.d0f897e0.js.map} +1 -1
  126. package/dist/chunks/{controls-group.84981503.js → controls-group.2b31233c.js} +3 -3
  127. package/dist/chunks/{controls-group.84981503.js.map → controls-group.2b31233c.js.map} +1 -1
  128. package/dist/chunks/{copy.86eb5d86.js → copy.9003ed59.js} +4 -4
  129. package/dist/chunks/{copy.86eb5d86.js.map → copy.9003ed59.js.map} +1 -1
  130. package/dist/chunks/{dialog-page.ce02932b.js → dialog-page.2c07d294.js} +3 -3
  131. package/dist/chunks/{dialog-page.ce02932b.js.map → dialog-page.2c07d294.js.map} +1 -1
  132. package/dist/chunks/{dropdown-default-textbox.91ad6585.js → dropdown-default-textbox.311443a8.js} +136 -116
  133. package/dist/chunks/dropdown-default-textbox.311443a8.js.map +1 -0
  134. package/dist/chunks/{dropdown.6c010045.js → dropdown.170b43c4.js} +14 -15
  135. package/dist/chunks/{dropdown.6c010045.js.map → dropdown.170b43c4.js.map} +1 -1
  136. package/dist/chunks/{error-message.498811e4.js → error-message.4678cbdc.js} +2 -2
  137. package/dist/chunks/{error-message.498811e4.js.map → error-message.4678cbdc.js.map} +1 -1
  138. package/dist/chunks/{fixed-scroller.51b63488.js → fixed-scroller.f09618f2.js} +2 -2
  139. package/dist/chunks/{fixed-scroller.51b63488.js.map → fixed-scroller.f09618f2.js.map} +1 -1
  140. package/dist/chunks/{footer-actions.573307ed.js → footer-actions.2efe610e.js} +4 -4
  141. package/dist/chunks/{footer-actions.573307ed.js.map → footer-actions.2efe610e.js.map} +1 -1
  142. package/dist/chunks/{index.da4cb1b8.js → index.0d513625.js} +16 -17
  143. package/dist/chunks/{index.da4cb1b8.js.map → index.0d513625.js.map} +1 -1
  144. package/dist/chunks/{index.c4f8460d.js → index.1b1646bf.js} +187 -187
  145. package/dist/chunks/index.1b1646bf.js.map +1 -0
  146. package/dist/chunks/{index.037ae52f.js → index.44f2aca7.js} +2 -2
  147. package/dist/chunks/{index.037ae52f.js.map → index.44f2aca7.js.map} +1 -1
  148. package/dist/chunks/index.51fe0fc2.js +74 -0
  149. package/dist/chunks/index.51fe0fc2.js.map +1 -0
  150. package/dist/chunks/{index.9c423f37.js → index.6987f880.js} +6 -6
  151. package/dist/chunks/{index.9c423f37.js.map → index.6987f880.js.map} +1 -1
  152. package/dist/chunks/{index.9d65b72a.js → index.70c91b3b.js} +2 -2
  153. package/dist/chunks/{index.9d65b72a.js.map → index.70c91b3b.js.map} +1 -1
  154. package/dist/chunks/{index.fb0e9e1a.js → index.920cc1ee.js} +6 -6
  155. package/dist/chunks/{index.fb0e9e1a.js.map → index.920cc1ee.js.map} +1 -1
  156. package/dist/chunks/{index.e2793c20.js → index.b3cb905c.js} +3 -3
  157. package/dist/chunks/{index.e2793c20.js.map → index.b3cb905c.js.map} +1 -1
  158. package/dist/chunks/{index.030fb327.js → index.b772214b.js} +20 -19
  159. package/dist/chunks/index.b772214b.js.map +1 -0
  160. package/dist/chunks/{index.d6a0cf32.js → index.c41d1bbb.js} +2 -2
  161. package/dist/chunks/{index.d6a0cf32.js.map → index.c41d1bbb.js.map} +1 -1
  162. package/dist/chunks/index.c5b58864.js +62 -0
  163. package/dist/chunks/index.c5b58864.js.map +1 -0
  164. package/dist/chunks/{listbox-option-tag.abedc9e0.js → listbox-option-tag.bf77e0c4.js} +3 -3
  165. package/dist/chunks/{listbox-option-tag.abedc9e0.js.map → listbox-option-tag.bf77e0c4.js.map} +1 -1
  166. package/dist/chunks/{listbox.8ce17729.js → listbox.b6a1aea2.js} +5 -5
  167. package/dist/chunks/{listbox.8ce17729.js.map → listbox.b6a1aea2.js.map} +1 -1
  168. package/dist/chunks/{loading-button.5f58f1cf.js → loading-button.cdc193c6.js} +2 -2
  169. package/dist/chunks/{loading-button.5f58f1cf.js.map → loading-button.cdc193c6.js.map} +1 -1
  170. package/dist/chunks/{payment-method.313f2635.js → payment-method.ea1788f7.js} +2 -2
  171. package/dist/chunks/{payment-method.313f2635.js.map → payment-method.ea1788f7.js.map} +1 -1
  172. package/dist/chunks/{tooltip.a70c9e69.js → tooltip.10210728.js} +3 -3
  173. package/dist/chunks/{tooltip.a70c9e69.js.map → tooltip.10210728.js.map} +1 -1
  174. package/dist/chunks/use-bento-toast-controller.3275a505.js +50 -0
  175. package/dist/chunks/use-bento-toast-controller.3275a505.js.map +1 -0
  176. package/dist/chunks/use-click-outside.941d1600.js +14 -0
  177. package/dist/chunks/use-click-outside.941d1600.js.map +1 -0
  178. package/dist/code-snippet.js +7 -7
  179. package/dist/code-snippet.js.map +1 -1
  180. package/dist/country.js +2 -2
  181. package/dist/currency.js +1 -1
  182. package/dist/data-grid-template.js +1 -1
  183. package/dist/data-grid.js +1211 -1108
  184. package/dist/data-grid.js.map +1 -1
  185. package/dist/date-picker.js +21 -22
  186. package/dist/date-picker.js.map +1 -1
  187. package/dist/date-range-picker.js +2 -2
  188. package/dist/date.js +1 -1
  189. package/dist/divider.js +1 -1
  190. package/dist/dropdown.js +7 -7
  191. package/dist/empty-state.js +3 -3
  192. package/dist/filter-bar.js +587 -598
  193. package/dist/filter-bar.js.map +1 -1
  194. package/dist/focus-trap.js +1 -1
  195. package/dist/form-layout.js +2 -2
  196. package/dist/header.js +4 -4
  197. package/dist/index.js +248 -271
  198. package/dist/index.js.map +1 -1
  199. package/dist/info-icon.js +3 -3
  200. package/dist/input-field.js +85 -80
  201. package/dist/input-field.js.map +1 -1
  202. package/dist/internal.js +8 -8
  203. package/dist/link.js +1 -1
  204. package/dist/loading-indicator.js +1 -1
  205. package/dist/menu.js +1 -1
  206. package/dist/modal-fullscreen.js +6 -6
  207. package/dist/modal.js +6 -6
  208. package/dist/pagination.js +4 -4
  209. package/dist/payment-method.js +1 -1
  210. package/dist/popover.js +1 -1
  211. package/dist/popper-container.js +1 -1
  212. package/dist/radio-group.js +4 -4
  213. package/dist/search-bar.js +2 -2
  214. package/dist/secondary-nav.js +2 -2
  215. package/dist/segmented-control.js +3 -3
  216. package/dist/selection-card.js +4 -4
  217. package/dist/sidepanel.js +6 -6
  218. package/dist/status.js +2 -2
  219. package/dist/stepper.js +152 -141
  220. package/dist/stepper.js.map +1 -1
  221. package/dist/structured-list.js +1 -1
  222. package/dist/summary-grid.js +3 -3
  223. package/dist/tabs.js +3 -3
  224. package/dist/tag.js +3 -3
  225. package/dist/textarea.js +4 -4
  226. package/dist/timeline.js +7 -7
  227. package/dist/toast.js +185 -154
  228. package/dist/toast.js.map +1 -1
  229. package/dist/toggle.js +2 -2
  230. package/dist/tutorial.js +6 -6
  231. package/dist/typography.js +1 -1
  232. package/dist/web-types.json +1 -1
  233. package/package.json +2 -2
  234. package/dist/@types/packages/vue2/src/components/toast/components/toast-item/index.d.ts +0 -2
  235. package/dist/@types/packages/vue2/src/components/toast/components/toast-item/toast-item.types.d.ts +0 -9
  236. package/dist/@types/packages/vue2/src/plugins/toastController.d.ts +0 -12
  237. package/dist/@types/packages/vue2/src/utils/ts/toastController.d.ts +0 -2
  238. package/dist/chunks/directive.0408e565.js +0 -23
  239. package/dist/chunks/directive.0408e565.js.map +0 -1
  240. package/dist/chunks/dropdown-default-textbox.91ad6585.js.map +0 -1
  241. package/dist/chunks/index.030fb327.js.map +0 -1
  242. package/dist/chunks/index.19dab2ef.js +0 -101
  243. package/dist/chunks/index.19dab2ef.js.map +0 -1
  244. package/dist/chunks/index.6e7e9ac6.js +0 -125
  245. package/dist/chunks/index.6e7e9ac6.js.map +0 -1
  246. package/dist/chunks/index.c4f8460d.js.map +0 -1
  247. package/dist/chunks/info-filled.a6f9d7d0.js +0 -44
  248. package/dist/chunks/info-filled.a6f9d7d0.js.map +0 -1
  249. package/dist/chunks/toastController.0b01d2e8.js +0 -9
  250. package/dist/chunks/toastController.0b01d2e8.js.map +0 -1
  251. /package/dist/@types/packages/vue2/src/components/stepper/composables/{useKeyboardNavigation/useKeyboardNavigation.d.ts → use-keyboard-navigation/use-keyboard-navigation.d.ts} +0 -0
@@ -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
+ };
package/dist/accordion.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as C, provide as k, toRef as B, openBlock as a, createElementBlock as r, renderSlot as E, ref as b, inject as O, computed as $, watch as s, createVNode as y, unref as e, withCtx as g, createElementVNode as h, createBlock as I, createTextVNode as z, toDisplayString as A, Transition as D, normalizeStyle as H, createCommentVNode as V } from "vue";
2
2
  import { _ as N } from "./chunks/_plugin-vue_export-helper.dad06003.js";
3
- import { B as w } from "./chunks/index.6e7e9ac6.js";
3
+ import { B as w } from "./chunks/index.51fe0fc2.js";
4
4
  import { C as R, a as j } from "./chunks/chevron-up.638a9f34.js";
5
5
  import { g as x } from "./chunks/unique-id.a2a2b458.js";
6
6
  import { o as M } from "./chunks/resize.a041304d.js";
7
7
  import { u as U } from "./chunks/use-expandable-content-height.62fc84e5.js";
8
- import "./assets/index21.css";
8
+ import "./assets/index9.css";
9
9
  const S = Symbol("accordion title size injection key"), q = { class: "b-accordion" }, J = {}, K = /* @__PURE__ */ C({
10
10
  ...J,
11
11
  __name: "accordion",
@@ -1,13 +1,13 @@
1
1
  import { onMounted as k, nextTick as B, getCurrentScope as z, onScopeDispose as H, unref as o, getCurrentInstance as x, ref as _, watch as A, watchEffect as U, computed as y, defineComponent as Y, toRefs as K, provide as Q, openBlock as S, createBlock as I, Transition as $, withCtx as w, createElementVNode as V, normalizeClass as q, createElementBlock as J, createVNode as N, createCommentVNode as Z, createTextVNode as X, toDisplayString as W } from "vue";
2
- import { a as ee } from "./chunks/button.a378e7ab.js";
3
- import { B as te } from "./chunks/index.6e7e9ac6.js";
4
- import { B as ne } from "./chunks/button-actions-with-menu.df95130d.js";
2
+ import { a as ee } from "./chunks/button.ce5d1f5e.js";
3
+ import { B as te } from "./chunks/index.51fe0fc2.js";
4
+ import { B as ne } from "./chunks/button-actions-with-menu.305991e5.js";
5
5
  import { C as ae } from "./chunks/cross.26509efc.js";
6
6
  import { u as oe } from "./chunks/i18n.f7e6533e.js";
7
- import { P as ie } from "./chunks/index.fb0e9e1a.js";
8
- import { B as se } from "./chunks/button-actions.bcc9dcc7.js";
7
+ import { P as ie } from "./chunks/index.920cc1ee.js";
8
+ import { B as se } from "./chunks/button-actions.ea025810.js";
9
9
  import { _ as ce } from "./chunks/_plugin-vue_export-helper.dad06003.js";
10
- import "./assets/index10.css";
10
+ import "./assets/index35.css";
11
11
  function P(e) {
12
12
  return z() ? (H(e), !0) : !1;
13
13
  }
package/dist/alert.js CHANGED
@@ -1,37 +1,73 @@
1
- import { openBlock as o, createElementBlock as p, mergeProps as w, toDisplayString as V, createCommentVNode as a, createElementVNode as u, defineComponent as G, computed as s, onMounted as R, resolveComponent as f, normalizeClass as A, createBlock as d, resolveDynamicComponent as N, withCtx as v, renderSlot as h, createVNode as D } from "vue";
2
- import { B as P, c as U, a as y } from "./chunks/index.6e7e9ac6.js";
3
- import { a as F } from "./chunks/button.a378e7ab.js";
4
- import { C as M } from "./chunks/cross-small.b85406fe.js";
5
- import { _ as E } from "./chunks/_plugin-vue_export-helper.dad06003.js";
6
- import { C as b } from "./chunks/cross-circle-fill.1abec1a2.js";
7
- import { C as S } from "./chunks/checkmark-circle-fill.c45a999d.js";
8
- import { I as T } from "./chunks/info-filled.a6f9d7d0.js";
1
+ import { openBlock as e, createElementBlock as l, mergeProps as I, toDisplayString as E, createCommentVNode as a, createElementVNode as o, defineComponent as R, computed as r, onMounted as A, resolveComponent as m, normalizeClass as N, createBlock as p, resolveDynamicComponent as M, withCtx as g, renderSlot as v, createVNode as D } from "vue";
2
+ import { B as P, c as Z, a as y } from "./chunks/index.51fe0fc2.js";
3
+ import { a as F } from "./chunks/button.ce5d1f5e.js";
4
+ import { C as U } from "./chunks/cross-small.b85406fe.js";
5
+ import { _ as b } from "./chunks/_plugin-vue_export-helper.dad06003.js";
6
+ import { C as S } from "./chunks/cross-circle-fill.1abec1a2.js";
7
+ import { C as H } from "./chunks/checkmark-circle-fill.c45a999d.js";
9
8
  import { u as O } from "./chunks/use-has-slot.4d98bf29.js";
10
9
  import { u as W } from "./chunks/i18n.f7e6533e.js";
11
- import "./assets/index11.css";
12
- var i = /* @__PURE__ */ ((t) => (t.DEFAULT = "default", t.TIP = "tip", t))(i || {}), e = /* @__PURE__ */ ((t) => (t.WARNING = "warning", t.CRITICAL = "critical", t.HIGHLIGHT = "highlight", t.SUCCESS = "success", t))(e || {}), I = /* @__PURE__ */ ((t) => (t.CLOSE_ALERT = "close-alert", t))(I || {});
13
- let $ = 0;
14
- const Z = {
10
+ import "./assets/index47.css";
11
+ var d = /* @__PURE__ */ ((t) => (t.DEFAULT = "default", t.TIP = "tip", t))(d || {}), s = /* @__PURE__ */ ((t) => (t.WARNING = "warning", t.CRITICAL = "critical", t.HIGHLIGHT = "highlight", t.SUCCESS = "success", t))(s || {}), $ = /* @__PURE__ */ ((t) => (t.CLOSE_ALERT = "close-alert", t))($ || {});
12
+ let T = 0;
13
+ const j = {
15
14
  beforeCreate() {
16
- this.uuid = $.toString(), $ += 1;
15
+ this.uuid = T.toString(), T += 1;
17
16
  }
18
- }, j = { key: 0 }, q = /* @__PURE__ */ u("path", {
17
+ }, q = { key: 0 }, z = /* @__PURE__ */ o("path", {
19
18
  fill: "#00112C",
20
19
  d: "M15.3501 11.5301L9.9501 2.21008C9.7501 1.87008 9.4701 1.58008 9.1301 1.38008C8.4401 0.980078 7.5601 0.980078 6.8801 1.38008C6.5401 1.58008 6.2501 1.86008 6.0601 2.20008L0.650097 11.5301C0.450097 11.8701 0.350098 12.2601 0.350098 12.6601C0.350098 13.0601 0.450097 13.4501 0.650097 13.7801C0.850097 14.1201 1.1301 14.4101 1.4701 14.6001C1.8101 14.8001 2.2001 14.9001 2.6001 14.9001H13.4001C13.7901 14.9001 14.1801 14.8001 14.5201 14.6001C14.8601 14.4001 15.1501 14.1201 15.3501 13.7801C15.5501 13.4401 15.6501 13.0501 15.6501 12.6501C15.6501 12.2501 15.5501 11.8601 15.3501 11.5201V11.5301ZM7.2501 4.58008H8.7501V9.08008H7.2501V4.58008ZM8.9201 11.7101C8.8401 11.8901 8.7201 12.0501 8.5501 12.1601C8.3801 12.2701 8.1901 12.3301 7.9901 12.3301C7.7201 12.3301 7.4701 12.2301 7.2801 12.0401C7.0901 11.8501 6.9901 11.6001 6.9901 11.3301C6.9901 11.1301 7.0501 10.9401 7.1601 10.7801C7.2701 10.6201 7.4201 10.4901 7.6101 10.4101C7.7901 10.3301 7.9901 10.3201 8.1901 10.3501C8.3901 10.3901 8.5601 10.4801 8.7001 10.6201C8.8401 10.7601 8.9301 10.9401 8.9701 11.1301C9.0101 11.3201 8.9901 11.5201 8.9101 11.7101H8.9201Z"
21
20
  }, null, -1);
22
- function z(t, n, C, l, r, _) {
23
- return o(), p("svg", w({ role: "img" }, t.$attrs, {
21
+ function Y(t, n, u, c, i, C) {
22
+ return e(), l("svg", I({ role: "img" }, t.$attrs, {
24
23
  class: "ui-assets-icons-16",
25
24
  xmlns: "http://www.w3.org/2000/svg",
26
25
  width: "16",
27
26
  height: "16",
28
27
  fill: "none"
29
28
  }), [
30
- t.$attrs["svg-title"] ? (o(), p("title", j, V(t.$attrs["svg-title"]), 1)) : a("", !0),
31
- q
29
+ t.$attrs["svg-title"] ? (e(), l("title", q, E(t.$attrs["svg-title"]), 1)) : a("", !0),
30
+ z
32
31
  ], 16);
33
32
  }
34
- const H = /* @__PURE__ */ E(Z, [["render", z]]), L = {
33
+ const w = /* @__PURE__ */ b(j, [["render", Y]]);
34
+ let L = 0;
35
+ const J = {
36
+ beforeCreate() {
37
+ this.uuid = L.toString(), L += 1;
38
+ }
39
+ }, K = { key: 0 }, Q = ["clip-path"], X = /* @__PURE__ */ o("path", {
40
+ fill: "#00112C",
41
+ d: "M5.0342 0.839937C6.45033 0.253358 8.00859 0.0998821 9.51195 0.398918C11.0153 0.697953 12.3962 1.43607 13.4801 2.51993C14.5639 3.60378 15.3021 4.9847 15.6011 6.48805C15.9001 7.99141 15.7466 9.54967 15.1601 10.9658C14.5735 12.3819 13.5801 13.5923 12.3057 14.4439C11.0312 15.2955 9.53281 15.75 8 15.75C5.94457 15.75 3.97333 14.9335 2.51992 13.4801C1.06652 12.0267 0.25 10.0554 0.25 8C0.25 6.4672 0.704529 4.96881 1.55611 3.69433C2.40769 2.41985 3.61808 1.42652 5.0342 0.839937ZM8.75 4.5C8.75 4.23478 8.64464 3.98043 8.45711 3.79289C8.26957 3.60536 8.01522 3.5 7.75 3.5C7.55222 3.5 7.35888 3.55865 7.19443 3.66853C7.02998 3.77841 6.90181 3.93459 6.82612 4.11732C6.75043 4.30004 6.73063 4.50111 6.76921 4.69509C6.8078 4.88907 6.90304 5.06725 7.04289 5.20711C7.18275 5.34696 7.36093 5.4422 7.55491 5.48079C7.74889 5.51937 7.94996 5.49957 8.13268 5.42388C8.31541 5.34819 8.47159 5.22002 8.58147 5.05557C8.69135 4.89112 8.75 4.69778 8.75 4.5ZM8.75 6.25H6.25V7.75H7.25V10.25H6.25V11.75H9.75V10.25H8.75V6.25Z"
42
+ }, null, -1), x = [
43
+ X
44
+ ], t1 = ["id"], e1 = /* @__PURE__ */ o("rect", {
45
+ width: "16",
46
+ height: "16",
47
+ fill: "#fff"
48
+ }, null, -1), o1 = [
49
+ e1
50
+ ];
51
+ function s1(t, n, u, c, i, C) {
52
+ return e(), l("svg", I({ role: "img" }, t.$attrs, {
53
+ class: "ui-assets-icons-16",
54
+ xmlns: "http://www.w3.org/2000/svg",
55
+ width: "16",
56
+ height: "16",
57
+ fill: "none"
58
+ }), [
59
+ t.$attrs["svg-title"] ? (e(), l("title", K, E(t.$attrs["svg-title"]), 1)) : a("", !0),
60
+ o("g", {
61
+ "clip-path": "url(#uia-icons-16-info_filled__a" + t.uuid + ")"
62
+ }, x, 8, Q),
63
+ o("defs", null, [
64
+ o("clipPath", {
65
+ id: "uia-icons-16-info_filled__a" + t.uuid
66
+ }, o1, 8, t1)
67
+ ])
68
+ ], 16);
69
+ }
70
+ const V = /* @__PURE__ */ b(J, [["render", s1]]), k = {
35
71
  "en-US": {
36
72
  highlightIcon: "Highlight icon",
37
73
  successIcon: "Success icon",
@@ -39,10 +75,10 @@ const H = /* @__PURE__ */ E(Z, [["render", z]]), L = {
39
75
  warningIcon: "Warning icon",
40
76
  close: "Close"
41
77
  }
42
- }, Y = G({
43
- i18n: { messages: L },
78
+ }, n1 = R({
79
+ i18n: { messages: k },
44
80
  name: "bento-alert",
45
- components: { CrossSmall: M, BentoButton: F, Warning: H, CrossCircle: b, CheckedCircle: S, Info: T, BentoTypography: P },
81
+ components: { CrossSmall: U, BentoButton: F, Warning: w, CrossCircle: S, CheckedCircle: H, Info: V, BentoTypography: P },
46
82
  props: {
47
83
  /**
48
84
  * Adds a close button on the right side of the alert
@@ -57,8 +93,8 @@ const H = /* @__PURE__ */ E(Z, [["render", z]]), L = {
57
93
  */
58
94
  type: {
59
95
  type: String,
60
- default: e.HIGHLIGHT,
61
- validator: (t) => Object.values(e).includes(t)
96
+ default: s.HIGHLIGHT,
97
+ validator: (t) => Object.values(s).includes(t)
62
98
  },
63
99
  /**
64
100
  * Variant for the alert
@@ -66,76 +102,76 @@ const H = /* @__PURE__ */ E(Z, [["render", z]]), L = {
66
102
  */
67
103
  variant: {
68
104
  type: String,
69
- default: i.DEFAULT,
70
- validator: (t) => Object.values(i).includes(t)
105
+ default: d.DEFAULT,
106
+ validator: (t) => Object.values(d).includes(t)
71
107
  }
72
108
  },
73
- emits: [I.CLOSE_ALERT],
74
- setup(t, { slots: n, emit: C }) {
75
- const { t: l } = W({ messages: L }), r = s(() => t.variant === i.TIP), _ = s(() => ({
109
+ emits: [$.CLOSE_ALERT],
110
+ setup(t, { slots: n, emit: u }) {
111
+ const { t: c } = W({ messages: k }), i = r(() => t.variant === d.TIP), C = r(() => ({
76
112
  [`b-alert--${t.type}`]: t.type,
77
- [`b-alert--${i.TIP}`]: r.value
78
- })), c = s(() => l(`${t.type}Icon`)), m = s(() => {
113
+ [`b-alert--${d.TIP}`]: i.value
114
+ })), _ = r(() => c(`${t.type}Icon`)), h = r(() => {
79
115
  switch (t.type) {
80
- case e.CRITICAL:
81
- return b;
82
- case e.SUCCESS:
116
+ case s.CRITICAL:
83
117
  return S;
84
- case e.WARNING:
118
+ case s.SUCCESS:
85
119
  return H;
86
- case e.HIGHLIGHT:
120
+ case s.WARNING:
121
+ return w;
122
+ case s.HIGHLIGHT:
87
123
  default:
88
- return T;
124
+ return V;
89
125
  }
90
- }), g = s(() => ({
91
- el: U.DIV,
92
- variant: r.value ? y.CAPTION : y.BODY,
126
+ }), f = r(() => ({
127
+ el: Z.DIV,
128
+ variant: i.value ? y.CAPTION : y.BODY,
93
129
  wide: !0
94
- })), k = s(() => t.type === e.HIGHLIGHT ? "status" : "alert"), B = () => {
95
- C(I.CLOSE_ALERT);
130
+ })), B = r(() => t.type === s.HIGHLIGHT ? "status" : "alert"), G = () => {
131
+ u($.CLOSE_ALERT);
96
132
  };
97
- return R(() => {
133
+ return A(() => {
98
134
  if (!n.default && !n.description)
99
135
  throw new Error("Alert Component requires a title or a description");
100
136
  }), {
101
137
  // Values
102
- alertConditionalClasses: _,
103
- computedRole: k,
104
- descriptionTypography: g,
105
- iconComponent: m,
106
- iconSvgTitle: c,
107
- isTipVariant: r,
138
+ alertConditionalClasses: C,
139
+ computedRole: B,
140
+ descriptionTypography: f,
141
+ iconComponent: h,
142
+ iconSvgTitle: _,
143
+ isTipVariant: i,
108
144
  // Methods
109
- onCloseButtonClick: B,
145
+ onCloseButtonClick: G,
110
146
  hasSlot: O(n),
111
- t: l,
147
+ t: c,
112
148
  // Enums
113
149
  BentoTypographyVariant: y
114
150
  };
115
151
  }
116
152
  });
117
- const J = ["role"], K = { class: "b-alert__icon" }, Q = { class: "b-alert__content" }, X = {
153
+ const i1 = ["role"], r1 = { class: "b-alert__icon" }, a1 = { class: "b-alert__content" }, l1 = {
118
154
  key: 2,
119
155
  class: "b-alert__actions",
120
156
  "data-testid": "alert-actions"
121
157
  };
122
- function x(t, n, C, l, r, _) {
123
- const c = f("bento-typography"), m = f("cross-small"), g = f("bento-button");
124
- return o(), p("div", {
158
+ function c1(t, n, u, c, i, C) {
159
+ const _ = m("bento-typography"), h = m("cross-small"), f = m("bento-button");
160
+ return e(), l("div", {
125
161
  class: "b-alert",
126
162
  role: t.computedRole
127
163
  }, [
128
- u("div", {
129
- class: A(["b-alert__inner-container", t.alertConditionalClasses])
164
+ o("div", {
165
+ class: N(["b-alert__inner-container", t.alertConditionalClasses])
130
166
  }, [
131
- u("div", K, [
132
- (o(), d(N(t.iconComponent), {
167
+ o("div", r1, [
168
+ (e(), p(M(t.iconComponent), {
133
169
  "aria-hidden": "true",
134
170
  "svg-title": t.iconSvgTitle
135
171
  }, null, 8, ["svg-title"]))
136
172
  ]),
137
- u("div", Q, [
138
- t.hasSlot("default") && !t.isTipVariant ? (o(), d(c, {
173
+ o("div", a1, [
174
+ t.hasSlot("default") && !t.isTipVariant ? (e(), p(_, {
139
175
  key: 0,
140
176
  class: "b-alert__title",
141
177
  el: "div",
@@ -143,46 +179,46 @@ function x(t, n, C, l, r, _) {
143
179
  strongest: "",
144
180
  wide: ""
145
181
  }, {
146
- default: v(() => [
147
- h(t.$slots, "default", {}, void 0, !0)
182
+ default: g(() => [
183
+ v(t.$slots, "default", {}, void 0, !0)
148
184
  ]),
149
185
  _: 3
150
186
  })) : a("", !0),
151
- t.hasSlot("description") ? (o(), d(c, w({
187
+ t.hasSlot("description") ? (e(), p(_, I({
152
188
  key: 1,
153
189
  class: "b-alert__description"
154
190
  }, t.descriptionTypography, { "data-testid": "alert-description" }), {
155
- default: v(() => [
156
- h(t.$slots, "description", {}, void 0, !0)
191
+ default: g(() => [
192
+ v(t.$slots, "description", {}, void 0, !0)
157
193
  ]),
158
194
  _: 3
159
195
  }, 16)) : a("", !0),
160
- t.hasSlot("actions") && !t.isTipVariant ? (o(), p("div", X, [
161
- h(t.$slots, "actions", {}, void 0, !0)
196
+ t.hasSlot("actions") && !t.isTipVariant ? (e(), l("div", l1, [
197
+ v(t.$slots, "actions", {}, void 0, !0)
162
198
  ])) : a("", !0)
163
199
  ]),
164
- t.closeButton && !t.isTipVariant ? (o(), d(g, {
200
+ t.closeButton && !t.isTipVariant ? (e(), p(f, {
165
201
  key: 0,
166
202
  class: "b-alert__close-button",
167
203
  variant: "tertiary",
168
204
  type: "button",
169
205
  onClick: t.onCloseButtonClick
170
206
  }, {
171
- default: v(() => [
172
- D(m, {
207
+ default: g(() => [
208
+ D(h, {
173
209
  "svg-title": t.t("close")
174
210
  }, null, 8, ["svg-title"])
175
211
  ]),
176
212
  _: 1
177
213
  }, 8, ["onClick"])) : a("", !0)
178
214
  ], 2)
179
- ], 8, J);
215
+ ], 8, i1);
180
216
  }
181
- const d1 = /* @__PURE__ */ E(Y, [["render", x], ["__scopeId", "data-v-549bc4f7"]]);
217
+ const v1 = /* @__PURE__ */ b(n1, [["render", c1], ["__scopeId", "data-v-549bc4f7"]]);
182
218
  export {
183
- d1 as BentoAlert,
184
- I as BentoAlertEvent,
185
- e as BentoAlertTypeOption,
186
- i as BentoAlertVariant
219
+ v1 as BentoAlert,
220
+ $ as BentoAlertEvent,
221
+ s as BentoAlertTypeOption,
222
+ d as BentoAlertVariant
187
223
  };
188
224
  //# sourceMappingURL=alert.js.map