@adyen/bento-vue2 1.0.0 → 1.1.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 (589) hide show
  1. package/dist/@types/{components → packages/vue2/src/components}/alert/alert.vue.d.ts +1 -1
  2. package/dist/@types/{components → packages/vue2/src/components}/button/button.vue.d.ts +1 -1
  3. package/dist/@types/{components → packages/vue2/src/components}/button/components/button-actions/button-actions.vue.d.ts +1 -1
  4. package/dist/@types/{components → packages/vue2/src/components}/button/components/loading-button/loading-button.vue.d.ts +1 -1
  5. package/dist/@types/{components → packages/vue2/src/components}/button/index.d.ts +1 -1
  6. package/dist/@types/{components → packages/vue2/src/components}/date-picker/date-picker.vue.d.ts +1 -2
  7. package/dist/@types/{components → packages/vue2/src/components}/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +2 -2
  8. package/dist/@types/{components → packages/vue2/src/components}/dropdown/composables/useKeyboardNavigation.d.ts +2 -1
  9. package/dist/@types/{components → packages/vue2/src/components}/dropdown/dropdown.vue.d.ts +2 -1
  10. package/dist/@types/{components → packages/vue2/src/components}/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +8 -8
  11. package/dist/@types/{components → packages/vue2/src/components}/internal/calendar/calendar.vue.d.ts +2 -2
  12. package/dist/@types/{components → packages/vue2/src/components}/internal/calendar/components/calendar-month/calendar-month.vue.d.ts +15 -6
  13. package/dist/@types/{components → packages/vue2/src/components}/internal/calendar/components/calendar-month/composables/move-calendar-date.d.ts +2 -2
  14. package/dist/@types/packages/vue2/src/components/internal/footer-actions/footer-actions.vue.d.ts +33 -0
  15. package/dist/@types/packages/vue2/src/components/internal/footer-actions/index.d.ts +1 -0
  16. package/dist/@types/{components → packages/vue2/src/components}/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/listbox-multi-select-options.vue.d.ts +2 -1
  17. package/dist/@types/{components → packages/vue2/src/components}/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +13 -4
  18. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/index.d.ts +1 -0
  19. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/listbox-single-select.vue.d.ts +50 -0
  20. package/dist/@types/packages/vue2/src/components/internal/listbox/composables/useListboxKeyboardNavigation.d.ts +9 -0
  21. package/dist/@types/{components → packages/vue2/src/components}/internal/listbox/listbox.vue.d.ts +4 -9
  22. package/dist/@types/{components → packages/vue2/src/components}/link/index.d.ts +1 -1
  23. package/dist/@types/{components → packages/vue2/src/components}/link/link.vue.d.ts +2 -2
  24. package/dist/@types/{components → packages/vue2/src/components}/modal/components/base-modal/__mocks__/base-modal.vue.d.ts +1 -1
  25. package/dist/@types/{components → packages/vue2/src/components}/modal/components/base-modal/base-modal.vue.d.ts +1 -1
  26. package/dist/@types/{components → packages/vue2/src/components}/modal/components/modal-default/modal-default.vue.d.ts +1 -22
  27. package/dist/@types/{components → packages/vue2/src/components}/tooltip/tooltip.vue.d.ts +0 -1
  28. package/dist/@types/{composables → packages/vue2/src/composables}/index.d.ts +1 -0
  29. package/dist/@types/packages/vue2/src/composables/use-has-slot/use-has-slot.d.ts +2 -0
  30. package/dist/@types/{utils → packages/vue2/src/utils}/ts/deprecate.d.ts +1 -1
  31. package/dist/accordion.js +7 -7
  32. package/dist/accordion.js.map +1 -1
  33. package/dist/alert.js +47 -48
  34. package/dist/alert.js.map +1 -1
  35. package/dist/assets/base-button.css +1 -1
  36. package/dist/assets/button-actions.css +1 -1
  37. package/dist/assets/button.css +1 -1
  38. package/dist/assets/calendar.css +1 -1
  39. package/dist/assets/checkbox.css +1 -1
  40. package/dist/assets/chevron-down.css +1 -0
  41. package/dist/assets/copy.css +1 -1
  42. package/dist/assets/dropdown-default-textbox.css +1 -1
  43. package/dist/assets/dropdown.css +1 -1
  44. package/dist/assets/error-message.css +1 -1
  45. package/dist/assets/grid-layout.css +1 -1
  46. package/dist/assets/index.css +1 -1
  47. package/dist/assets/index10.css +1 -1
  48. package/dist/assets/index11.css +1 -1
  49. package/dist/assets/index12.css +1 -1
  50. package/dist/assets/index13.css +1 -1
  51. package/dist/assets/index14.css +1 -1
  52. package/dist/assets/index15.css +1 -1
  53. package/dist/assets/index16.css +1 -1
  54. package/dist/assets/index17.css +1 -1
  55. package/dist/assets/index18.css +1 -1
  56. package/dist/assets/index19.css +1 -1
  57. package/dist/assets/index2.css +1 -1
  58. package/dist/assets/index20.css +1 -1
  59. package/dist/assets/index21.css +1 -1
  60. package/dist/assets/index22.css +1 -1
  61. package/dist/assets/index23.css +1 -1
  62. package/dist/assets/index24.css +1 -1
  63. package/dist/assets/index25.css +1 -1
  64. package/dist/assets/index26.css +1 -1
  65. package/dist/assets/index27.css +1 -1
  66. package/dist/assets/index28.css +1 -1
  67. package/dist/assets/index29.css +1 -1
  68. package/dist/assets/index3.css +1 -1
  69. package/dist/assets/index30.css +1 -1
  70. package/dist/assets/index31.css +1 -1
  71. package/dist/assets/index32.css +1 -1
  72. package/dist/assets/index33.css +1 -1
  73. package/dist/assets/index34.css +1 -1
  74. package/dist/assets/index35.css +1 -1
  75. package/dist/assets/index36.css +1 -1
  76. package/dist/assets/index37.css +1 -1
  77. package/dist/assets/index38.css +1 -1
  78. package/dist/assets/index39.css +1 -1
  79. package/dist/assets/index4.css +1 -1
  80. package/dist/assets/index5.css +1 -1
  81. package/dist/assets/index6.css +1 -1
  82. package/dist/assets/index7.css +1 -1
  83. package/dist/assets/index8.css +1 -1
  84. package/dist/assets/index9.css +1 -1
  85. package/dist/assets/listbox-option-tag.css +1 -1
  86. package/dist/assets/listbox.css +1 -1
  87. package/dist/assets/loading-button.css +1 -1
  88. package/dist/assets/tooltip.css +1 -1
  89. package/dist/avatar-image.js +1 -1
  90. package/dist/badge.js +9 -10
  91. package/dist/badge.js.map +1 -1
  92. package/dist/button.js +3 -3
  93. package/dist/card.js +72 -75
  94. package/dist/card.js.map +1 -1
  95. package/dist/checkbox.js +18 -15
  96. package/dist/checkbox.js.map +1 -1
  97. package/dist/chunks/{base-button.23c7948c.js → base-button.e7630a1d.js} +8 -8
  98. package/dist/chunks/base-button.e7630a1d.js.map +1 -0
  99. package/dist/chunks/{button-actions.c87eaee6.js → button-actions.03751d96.js} +8 -9
  100. package/dist/chunks/button-actions.03751d96.js.map +1 -0
  101. package/dist/chunks/{button.98f2271d.js → button.f64585fc.js} +8 -9
  102. package/dist/chunks/button.f64585fc.js.map +1 -0
  103. package/dist/chunks/{calendar.1ed370f4.js → calendar.c9cfce76.js} +297 -291
  104. package/dist/chunks/calendar.c9cfce76.js.map +1 -0
  105. package/dist/chunks/{checkbox.e8292504.js → checkbox.27fae2af.js} +42 -43
  106. package/dist/chunks/checkbox.27fae2af.js.map +1 -0
  107. package/dist/chunks/{chevron-up.5b117675.js → chevron-down.b851a6da.js} +12 -12
  108. package/dist/chunks/chevron-down.b851a6da.js.map +1 -0
  109. package/dist/chunks/{controls-group.53569fbb.js → controls-group.e4745546.js} +6 -6
  110. package/dist/chunks/{controls-group.53569fbb.js.map → controls-group.e4745546.js.map} +1 -1
  111. package/dist/chunks/{copy.f260d8fc.js → copy.888486ff.js} +26 -27
  112. package/dist/chunks/copy.888486ff.js.map +1 -0
  113. package/dist/chunks/{dropdown-default-textbox.64b8861c.js → dropdown-default-textbox.e425fc5b.js} +35 -35
  114. package/dist/chunks/dropdown-default-textbox.e425fc5b.js.map +1 -0
  115. package/dist/chunks/{dropdown.45f3fad6.js → dropdown.e298bb6c.js} +282 -274
  116. package/dist/chunks/dropdown.e298bb6c.js.map +1 -0
  117. package/dist/chunks/{error-message.05450d5d.js → error-message.4269d92b.js} +18 -19
  118. package/dist/chunks/{error-message.05450d5d.js.map → error-message.4269d92b.js.map} +1 -1
  119. package/dist/chunks/{grid-layout.e9479752.js → grid-layout.73f23b1b.js} +5 -5
  120. package/dist/chunks/grid-layout.73f23b1b.js.map +1 -0
  121. package/dist/chunks/i18n.155748d6.js +31 -0
  122. package/dist/chunks/i18n.155748d6.js.map +1 -0
  123. package/dist/chunks/{index.950568af.js → index.4ec4409f.js} +33 -34
  124. package/dist/chunks/index.4ec4409f.js.map +1 -0
  125. package/dist/chunks/{index.6bd3da71.js → index.7bbd6611.js} +12 -13
  126. package/dist/chunks/index.7bbd6611.js.map +1 -0
  127. package/dist/chunks/{index.c23be6e9.js → index.8d590c55.js} +3 -4
  128. package/dist/chunks/{index.c23be6e9.js.map → index.8d590c55.js.map} +1 -1
  129. package/dist/chunks/{index.1b1be94c.js → index.96e2f563.js} +2 -2
  130. package/dist/chunks/{index.1b1be94c.js.map → index.96e2f563.js.map} +1 -1
  131. package/dist/chunks/{index.ed72fc62.js → index.ada08445.js} +21 -23
  132. package/dist/chunks/index.ada08445.js.map +1 -0
  133. package/dist/chunks/{index.fcf5a866.js → index.bc51abe9.js} +78 -80
  134. package/dist/chunks/index.bc51abe9.js.map +1 -0
  135. package/dist/chunks/{index.3aedb3dd.js → index.e1fcc9e0.js} +23 -22
  136. package/dist/chunks/index.e1fcc9e0.js.map +1 -0
  137. package/dist/chunks/{listbox-option-tag.c03eab04.js → listbox-option-tag.aae99730.js} +11 -12
  138. package/dist/chunks/listbox-option-tag.aae99730.js.map +1 -0
  139. package/dist/chunks/listbox.99d23071.js +974 -0
  140. package/dist/chunks/listbox.99d23071.js.map +1 -0
  141. package/dist/chunks/{loading-button.d77079fe.js → loading-button.f7768964.js} +5 -6
  142. package/dist/chunks/loading-button.f7768964.js.map +1 -0
  143. package/dist/chunks/{tooltip.51be6248.js → tooltip.1e7cda50.js} +56 -56
  144. package/dist/chunks/tooltip.1e7cda50.js.map +1 -0
  145. package/dist/chunks/use-has-slot.068222e6.js +5 -0
  146. package/dist/chunks/use-has-slot.068222e6.js.map +1 -0
  147. package/dist/chunks/{useCountryItems.eedde392.js → useCountryItems.5d7b436e.js} +2 -2
  148. package/dist/chunks/{useCountryItems.eedde392.js.map → useCountryItems.5d7b436e.js.map} +1 -1
  149. package/dist/code-snippet.js +184 -180
  150. package/dist/code-snippet.js.map +1 -1
  151. package/dist/country.js +519 -520
  152. package/dist/country.js.map +1 -1
  153. package/dist/currency.js +11 -12
  154. package/dist/currency.js.map +1 -1
  155. package/dist/data-grid.js +194 -197
  156. package/dist/data-grid.js.map +1 -1
  157. package/dist/date-picker.js +73 -77
  158. package/dist/date-picker.js.map +1 -1
  159. package/dist/date-range-picker.js +2 -2
  160. package/dist/date.js +1 -1
  161. package/dist/divider.js +1 -1
  162. package/dist/dropdown.js +17 -22
  163. package/dist/dropdown.js.map +1 -1
  164. package/dist/filter-bar.js +292 -306
  165. package/dist/filter-bar.js.map +1 -1
  166. package/dist/focus-trap.js +1 -1
  167. package/dist/header.js +61 -62
  168. package/dist/header.js.map +1 -1
  169. package/dist/index.js +13 -13
  170. package/dist/info-icon.js +3 -4
  171. package/dist/info-icon.js.map +1 -1
  172. package/dist/input-field.js +64 -61
  173. package/dist/input-field.js.map +1 -1
  174. package/dist/internal.js +7 -7
  175. package/dist/link.js +6 -6
  176. package/dist/link.js.map +1 -1
  177. package/dist/loading-indicator.js +14 -15
  178. package/dist/loading-indicator.js.map +1 -1
  179. package/dist/menu.js +8 -11
  180. package/dist/menu.js.map +1 -1
  181. package/dist/modal.js +266 -205
  182. package/dist/modal.js.map +1 -1
  183. package/dist/pagination.js +6 -7
  184. package/dist/pagination.js.map +1 -1
  185. package/dist/payment-method.js +3 -4
  186. package/dist/payment-method.js.map +1 -1
  187. package/dist/popover.js +16 -17
  188. package/dist/popover.js.map +1 -1
  189. package/dist/popper-container.js +28 -24
  190. package/dist/popper-container.js.map +1 -1
  191. package/dist/radio-group.js +50 -48
  192. package/dist/radio-group.js.map +1 -1
  193. package/dist/search-bar.js +9 -10
  194. package/dist/search-bar.js.map +1 -1
  195. package/dist/segmented-control.js +21 -23
  196. package/dist/segmented-control.js.map +1 -1
  197. package/dist/status.js +9 -10
  198. package/dist/status.js.map +1 -1
  199. package/dist/structured-list.js +1 -1
  200. package/dist/summary-grid.js +13 -19
  201. package/dist/summary-grid.js.map +1 -1
  202. package/dist/tabs.js +2 -2
  203. package/dist/tag.js +19 -20
  204. package/dist/tag.js.map +1 -1
  205. package/dist/textarea.js +61 -62
  206. package/dist/textarea.js.map +1 -1
  207. package/dist/timeline.js +69 -71
  208. package/dist/timeline.js.map +1 -1
  209. package/dist/toast.js +18 -20
  210. package/dist/toast.js.map +1 -1
  211. package/dist/toggle.js +1 -1
  212. package/dist/typography.js +1 -1
  213. package/dist/web-types.json +84 -1
  214. package/package.json +8 -7
  215. package/dist/@types/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.types.d.ts +0 -3
  216. package/dist/@types/components/internal/listbox/composables/use-listbox-keyboard-navigation.d.ts +0 -14
  217. package/dist/@types/utils/ts/hasSlot.d.ts +0 -2
  218. package/dist/assets/chevron-up.css +0 -1
  219. package/dist/chunks/base-button.23c7948c.js.map +0 -1
  220. package/dist/chunks/button-actions.c87eaee6.js.map +0 -1
  221. package/dist/chunks/button.98f2271d.js.map +0 -1
  222. package/dist/chunks/calendar.1ed370f4.js.map +0 -1
  223. package/dist/chunks/checkbox.e8292504.js.map +0 -1
  224. package/dist/chunks/chevron-up.5b117675.js.map +0 -1
  225. package/dist/chunks/copy.f260d8fc.js.map +0 -1
  226. package/dist/chunks/dropdown-default-textbox.64b8861c.js.map +0 -1
  227. package/dist/chunks/dropdown.45f3fad6.js.map +0 -1
  228. package/dist/chunks/grid-layout.e9479752.js.map +0 -1
  229. package/dist/chunks/hasSlot.dceac207.js +0 -5
  230. package/dist/chunks/hasSlot.dceac207.js.map +0 -1
  231. package/dist/chunks/i18n.36074534.js +0 -1697
  232. package/dist/chunks/i18n.36074534.js.map +0 -1
  233. package/dist/chunks/index.3aedb3dd.js.map +0 -1
  234. package/dist/chunks/index.6bd3da71.js.map +0 -1
  235. package/dist/chunks/index.950568af.js.map +0 -1
  236. package/dist/chunks/index.ed72fc62.js.map +0 -1
  237. package/dist/chunks/index.fcf5a866.js.map +0 -1
  238. package/dist/chunks/listbox-option-tag.c03eab04.js.map +0 -1
  239. package/dist/chunks/listbox.13cefddb.js +0 -849
  240. package/dist/chunks/listbox.13cefddb.js.map +0 -1
  241. package/dist/chunks/loading-button.d77079fe.js.map +0 -1
  242. package/dist/chunks/tooltip.51be6248.js.map +0 -1
  243. package/dist/@types/{components → packages/core/src/components}/button/button.types.d.ts +0 -0
  244. package/dist/@types/{components → packages/core/src/components}/link/link.types.d.ts +0 -0
  245. package/dist/@types/{components → packages/vue2/src/components}/accordion/accordion.keys.d.ts +0 -0
  246. package/dist/@types/{components → packages/vue2/src/components}/accordion/accordion.types.d.ts +0 -0
  247. package/dist/@types/{components → packages/vue2/src/components}/accordion/accordion.vue.d.ts +0 -0
  248. package/dist/@types/{components → packages/vue2/src/components}/accordion/components/accordion-item.vue.d.ts +0 -0
  249. package/dist/@types/{components → packages/vue2/src/components}/accordion/index.d.ts +0 -0
  250. package/dist/@types/{components → packages/vue2/src/components}/alert/alert.types.d.ts +0 -0
  251. package/dist/@types/{components → packages/vue2/src/components}/alert/index.d.ts +0 -0
  252. package/dist/@types/{components → packages/vue2/src/components}/avatar-image/avatar-image.types.d.ts +0 -0
  253. package/dist/@types/{components → packages/vue2/src/components}/avatar-image/avatar-image.vue.d.ts +0 -0
  254. package/dist/@types/{components → packages/vue2/src/components}/avatar-image/index.d.ts +0 -0
  255. package/dist/@types/{components → packages/vue2/src/components}/badge/badge.types.d.ts +0 -0
  256. package/dist/@types/{components → packages/vue2/src/components}/badge/badge.vue.d.ts +0 -0
  257. package/dist/@types/{components → packages/vue2/src/components}/badge/index.d.ts +0 -0
  258. package/dist/@types/{components → packages/vue2/src/components}/button/button.demo.d.ts +0 -0
  259. package/dist/@types/{components → packages/vue2/src/components}/button/components/button-actions/button-actions.types.d.ts +0 -0
  260. package/dist/@types/{components → packages/vue2/src/components}/button/components/button-actions/index.d.ts +0 -0
  261. package/dist/@types/{components → packages/vue2/src/components}/button/components/loading-button/index.d.ts +0 -0
  262. package/dist/@types/{components → packages/vue2/src/components}/button/components/loading-button/loading-button.types.d.ts +0 -0
  263. package/dist/@types/{components → packages/vue2/src/components}/card/card.types.d.ts +0 -0
  264. package/dist/@types/{components → packages/vue2/src/components}/card/card.vue.d.ts +0 -0
  265. package/dist/@types/{components → packages/vue2/src/components}/card/index.d.ts +0 -0
  266. package/dist/@types/{components → packages/vue2/src/components}/checkbox/checkbox.types.d.ts +0 -0
  267. package/dist/@types/{components → packages/vue2/src/components}/checkbox/checkbox.vue.d.ts +0 -0
  268. package/dist/@types/{components → packages/vue2/src/components}/checkbox/components/checkbox-group/checkbox-group.types.d.ts +0 -0
  269. package/dist/@types/{components → packages/vue2/src/components}/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +0 -0
  270. package/dist/@types/{components → packages/vue2/src/components}/checkbox/components/checkbox-group/index.d.ts +0 -0
  271. package/dist/@types/{components → packages/vue2/src/components}/checkbox/index.d.ts +0 -0
  272. package/dist/@types/{components → packages/vue2/src/components}/click-outside/click-outside.d.ts +0 -0
  273. package/dist/@types/{components → packages/vue2/src/components}/click-outside/index.d.ts +0 -0
  274. package/dist/@types/{components → packages/vue2/src/components}/code-snippet/code-snippet.types.d.ts +0 -0
  275. package/dist/@types/{components → packages/vue2/src/components}/code-snippet/code-snippet.vue.d.ts +0 -0
  276. package/dist/@types/{components → packages/vue2/src/components}/code-snippet/composables/useLanguage.d.ts +0 -0
  277. package/dist/@types/{components → packages/vue2/src/components}/code-snippet/highlight.d.ts +0 -0
  278. package/dist/@types/{components → packages/vue2/src/components}/code-snippet/index.d.ts +0 -0
  279. package/dist/@types/{components → packages/vue2/src/components}/country/composables/index.d.ts +0 -0
  280. package/dist/@types/{components → packages/vue2/src/components}/country/composables/useCountryCapital/useCountryCapital.d.ts +0 -0
  281. package/dist/@types/{components → packages/vue2/src/components}/country/composables/useCountryFlag.d.ts +0 -0
  282. package/dist/@types/{components → packages/vue2/src/components}/country/composables/useCountryName/useCountryName.d.ts +0 -0
  283. package/dist/@types/{components → packages/vue2/src/components}/country/composables/useCountryPhoneCode/useCountryPhoneCode.d.ts +0 -0
  284. package/dist/@types/{components → packages/vue2/src/components}/country/country.types.d.ts +0 -0
  285. package/dist/@types/{components → packages/vue2/src/components}/country/country.vue.d.ts +0 -0
  286. package/dist/@types/{components → packages/vue2/src/components}/country/index.d.ts +0 -0
  287. package/dist/@types/{components → packages/vue2/src/components}/currency/currency.types.d.ts +0 -0
  288. package/dist/@types/{components → packages/vue2/src/components}/currency/currency.vue.d.ts +0 -0
  289. package/dist/@types/{components → packages/vue2/src/components}/currency/index.d.ts +0 -0
  290. package/dist/@types/{components → packages/vue2/src/components}/data-grid/components/data-grid-columns/data-grid-columns-types.d.ts +0 -0
  291. package/dist/@types/{components → packages/vue2/src/components}/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +0 -0
  292. package/dist/@types/{components → packages/vue2/src/components}/data-grid/components/data-grid-config-settings/components/data-grid-config-settings-column-row/data-grid-config-settings-column-row.vue.d.ts +0 -0
  293. package/dist/@types/{components → packages/vue2/src/components}/data-grid/components/data-grid-config-settings/data-grid-config-settings.types.d.ts +0 -0
  294. package/dist/@types/{components → packages/vue2/src/components}/data-grid/components/data-grid-config-settings/data-grid-config-settings.vue.d.ts +0 -0
  295. package/dist/@types/{components → packages/vue2/src/components}/data-grid/components/index.d.ts +0 -0
  296. package/dist/@types/{components → packages/vue2/src/components}/data-grid/composables/index.d.ts +0 -0
  297. package/dist/@types/{components → packages/vue2/src/components}/data-grid/composables/useCalculateBodyFitContentDynamicStyles/useCalculateBodyFitContentDynamicStyles.d.ts +0 -0
  298. package/dist/@types/{components → packages/vue2/src/components}/data-grid/composables/useCalculateBodyFitContentDynamicStyles/useCalculateBodyFitContentDynamicStyles.types.d.ts +0 -0
  299. package/dist/@types/{components → packages/vue2/src/components}/data-grid/composables/useCalculateColumnWidth/useCalculateColumnWidth.d.ts +0 -0
  300. package/dist/@types/{components → packages/vue2/src/components}/data-grid/composables/useCalculateColumnWidth/useCalculateColumnWidth.types.d.ts +0 -0
  301. package/dist/@types/{components → packages/vue2/src/components}/data-grid/composables/useColumnReorderer/useColumnReorderer.d.ts +0 -0
  302. package/dist/@types/{components → packages/vue2/src/components}/data-grid/composables/useConfigSettings/useConfigSettings.d.ts +0 -0
  303. package/dist/@types/{components → packages/vue2/src/components}/data-grid/composables/useKeyboardNavigator/useKeyboardNavigator.d.ts +0 -0
  304. package/dist/@types/{components → packages/vue2/src/components}/data-grid/composables/useKeyboardNavigator/useKeyboardNavigator.types.d.ts +0 -0
  305. package/dist/@types/{components → packages/vue2/src/components}/data-grid/composables/useResizer.d.ts +0 -0
  306. package/dist/@types/{components → packages/vue2/src/components}/data-grid/composables/useSelector.d.ts +0 -0
  307. package/dist/@types/{components → packages/vue2/src/components}/data-grid/composables/useSorter.d.ts +0 -0
  308. package/dist/@types/{components → packages/vue2/src/components}/data-grid/data-grid.types.d.ts +0 -0
  309. package/dist/@types/{components → packages/vue2/src/components}/data-grid/data-grid.vue.d.ts +0 -0
  310. package/dist/@types/{components → packages/vue2/src/components}/data-grid/index.d.ts +0 -0
  311. package/dist/@types/{components → packages/vue2/src/components}/date/date.types.d.ts +0 -0
  312. package/dist/@types/{components → packages/vue2/src/components}/date/date.vue.d.ts +0 -0
  313. package/dist/@types/{components → packages/vue2/src/components}/date/index.d.ts +0 -0
  314. package/dist/@types/{components → packages/vue2/src/components}/date-picker/composables/use-date-picker-single-calendar-text.d.ts +0 -0
  315. package/dist/@types/{components → packages/vue2/src/components}/date-picker/composables/use-date-picker-single-calendar-text.types.d.ts +0 -0
  316. package/dist/@types/{components → packages/vue2/src/components}/date-picker/date-picker.types.d.ts +0 -0
  317. package/dist/@types/{components → packages/vue2/src/components}/date-picker/index.d.ts +0 -0
  318. package/dist/@types/{components → packages/vue2/src/components}/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.types.d.ts +0 -0
  319. package/dist/@types/{components → packages/vue2/src/components}/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.vue.d.ts +0 -0
  320. package/dist/@types/{components → packages/vue2/src/components}/date-range-picker/components/date-range-picker-calendar/index.d.ts +0 -0
  321. package/dist/@types/{components → packages/vue2/src/components}/date-range-picker/composables/use-date-range-picker-calendar-text.d.ts +0 -0
  322. package/dist/@types/{components → packages/vue2/src/components}/date-range-picker/composables/use-date-range-picker-calendar-text.types.d.ts +0 -0
  323. package/dist/@types/{components → packages/vue2/src/components}/date-range-picker/date-range-picker.types.d.ts +0 -0
  324. package/dist/@types/{components → packages/vue2/src/components}/date-range-picker/date-range-picker.vue.d.ts +0 -0
  325. package/dist/@types/{components → packages/vue2/src/components}/date-range-picker/index.d.ts +0 -0
  326. package/dist/@types/{components → packages/vue2/src/components}/divider/divider.vue.d.ts +0 -0
  327. package/dist/@types/{components → packages/vue2/src/components}/divider/index.d.ts +0 -0
  328. package/dist/@types/{components → packages/vue2/src/components}/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.types.d.ts +0 -0
  329. package/dist/@types/{components → packages/vue2/src/components}/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +0 -0
  330. package/dist/@types/{components → packages/vue2/src/components}/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +0 -0
  331. package/dist/@types/{components → packages/vue2/src/components}/dropdown/components/dropdown-options-container/composables/useDropdownOptionsListbox.d.ts +0 -0
  332. package/dist/@types/{components → packages/vue2/src/components}/dropdown/components/dropdown-options-container/index.d.ts +0 -0
  333. package/dist/@types/{components → packages/vue2/src/components}/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +0 -0
  334. package/dist/@types/{components → packages/vue2/src/components}/dropdown/components/index.d.ts +0 -0
  335. package/dist/@types/{components → packages/vue2/src/components}/dropdown/components/variants/dropdown-avatar/dropdown-avatar.types.d.ts +0 -0
  336. package/dist/@types/{components → packages/vue2/src/components}/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +1 -1
  337. package/dist/@types/{components → packages/vue2/src/components}/dropdown/components/variants/dropdown-country/composables/useCountryItems.d.ts +0 -0
  338. package/dist/@types/{components → packages/vue2/src/components}/dropdown/components/variants/dropdown-country/dropdown-country.types.d.ts +0 -0
  339. package/dist/@types/{components → packages/vue2/src/components}/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +1 -1
  340. package/dist/@types/{components → packages/vue2/src/components}/dropdown/components/variants/dropdown-currency/dropdown-currency.types.d.ts +0 -0
  341. package/dist/@types/{components → packages/vue2/src/components}/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +1 -1
  342. package/dist/@types/{components → packages/vue2/src/components}/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.types.d.ts +0 -0
  343. package/dist/@types/{components → packages/vue2/src/components}/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +1 -1
  344. package/dist/@types/{components → packages/vue2/src/components}/dropdown/components/variants/dropdown-tag/dropdown-tag.types.d.ts +0 -0
  345. package/dist/@types/{components → packages/vue2/src/components}/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +1 -1
  346. /package/dist/@types/{components → packages/vue2/src/components}/dropdown/composables/useDisplayValue.d.ts +0 -0
  347. /package/dist/@types/{components → packages/vue2/src/components}/dropdown/composables/useDisplayValue.types.d.ts +0 -0
  348. /package/dist/@types/{components → packages/vue2/src/components}/dropdown/composables/useDropdownSearchFilter.d.ts +0 -0
  349. /package/dist/@types/{components → packages/vue2/src/components}/dropdown/dropdown.types.d.ts +0 -0
  350. /package/dist/@types/{components → packages/vue2/src/components}/dropdown/index.d.ts +0 -0
  351. /package/dist/@types/{components → packages/vue2/src/components}/filter-bar/components/all-filters-modal/all-filters-modal.types.d.ts +0 -0
  352. /package/dist/@types/{components → packages/vue2/src/components}/filter-bar/components/all-filters-modal/components/all-filters-modal-button/all-filters-modal-button.vue.d.ts +0 -0
  353. /package/dist/@types/{components → packages/vue2/src/components}/filter-bar/components/base-filter/base-filter.types.d.ts +0 -0
  354. /package/dist/@types/{components → packages/vue2/src/components}/filter-bar/components/base-filter/base-filter.vue.d.ts +0 -0
  355. /package/dist/@types/{components → packages/vue2/src/components}/filter-bar/components/base-filter/components/filter-bar-filter-button/filter-bar-filter-button.vue.d.ts +0 -0
  356. /package/dist/@types/{components → packages/vue2/src/components}/filter-bar/components/base-filter/components/index.d.ts +0 -0
  357. /package/dist/@types/{components → packages/vue2/src/components}/filter-bar/components/base-filter/composables/use-base-filter.d.ts +0 -0
  358. /package/dist/@types/{components → packages/vue2/src/components}/filter-bar/components/base-filter/index.d.ts +0 -0
  359. /package/dist/@types/{components → packages/vue2/src/components}/filter-bar/components/base-filter-button/base-filter-button.vue.d.ts +0 -0
  360. /package/dist/@types/{components → packages/vue2/src/components}/filter-bar/components/boolean-filter/boolean-filter.vue.d.ts +0 -0
  361. /package/dist/@types/{components → packages/vue2/src/components}/filter-bar/components/boolean-filter/index.d.ts +0 -0
  362. /package/dist/@types/{components → packages/vue2/src/components}/filter-bar/components/date-filter/date-filter.vue.d.ts +0 -0
  363. /package/dist/@types/{components → packages/vue2/src/components}/filter-bar/components/date-filter/index.d.ts +0 -0
  364. /package/dist/@types/{components → packages/vue2/src/components}/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +0 -0
  365. /package/dist/@types/{components → packages/vue2/src/components}/filter-bar/components/date-range-filter/index.d.ts +0 -0
  366. /package/dist/@types/{components → packages/vue2/src/components}/filter-bar/components/index.d.ts +0 -0
  367. /package/dist/@types/{components → packages/vue2/src/components}/filter-bar/components/input-filter/index.d.ts +0 -0
  368. /package/dist/@types/{components → packages/vue2/src/components}/filter-bar/components/input-filter/input-filter.vue.d.ts +0 -0
  369. /package/dist/@types/{components → packages/vue2/src/components}/filter-bar/components/range-filter/range-filter.vue.d.ts +0 -0
  370. /package/dist/@types/{components → packages/vue2/src/components}/filter-bar/components/select-filter/index.d.ts +0 -0
  371. /package/dist/@types/{components → packages/vue2/src/components}/filter-bar/components/select-filter/select-filter.vue.d.ts +0 -0
  372. /package/dist/@types/{components → packages/vue2/src/components}/filter-bar/components/select-filter/variants/select-avatar-filter/index.d.ts +0 -0
  373. /package/dist/@types/{components → packages/vue2/src/components}/filter-bar/components/select-filter/variants/select-avatar-filter/select-avatar-filter.vue.d.ts +0 -0
  374. /package/dist/@types/{components → packages/vue2/src/components}/filter-bar/components/select-filter/variants/select-country-filter/index.d.ts +0 -0
  375. /package/dist/@types/{components → packages/vue2/src/components}/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +0 -0
  376. /package/dist/@types/{components → packages/vue2/src/components}/filter-bar/components/select-filter/variants/select-currency-filter/index.d.ts +0 -0
  377. /package/dist/@types/{components → packages/vue2/src/components}/filter-bar/components/select-filter/variants/select-currency-filter/select-currency-filter.vue.d.ts +0 -0
  378. /package/dist/@types/{components → packages/vue2/src/components}/filter-bar/components/select-filter/variants/select-payment-method-filter/index.d.ts +0 -0
  379. /package/dist/@types/{components → packages/vue2/src/components}/filter-bar/components/select-filter/variants/select-payment-method-filter/select-payment-method-filter.vue.d.ts +0 -0
  380. /package/dist/@types/{components → packages/vue2/src/components}/filter-bar/components/select-filter/variants/select-tag-filter/index.d.ts +0 -0
  381. /package/dist/@types/{components → packages/vue2/src/components}/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +0 -0
  382. /package/dist/@types/{components → packages/vue2/src/components}/filter-bar/filter-bar.types.d.ts +0 -0
  383. /package/dist/@types/{components → packages/vue2/src/components}/filter-bar/filter-bar.vue.d.ts +0 -0
  384. /package/dist/@types/{components → packages/vue2/src/components}/filter-bar/index.d.ts +0 -0
  385. /package/dist/@types/{components → packages/vue2/src/components}/focus-trap/focus-trap.types.d.ts +0 -0
  386. /package/dist/@types/{components → packages/vue2/src/components}/focus-trap/focus-trap.vue.d.ts +0 -0
  387. /package/dist/@types/{components → packages/vue2/src/components}/focus-trap/index.d.ts +0 -0
  388. /package/dist/@types/{components → packages/vue2/src/components}/header/header.types.d.ts +0 -0
  389. /package/dist/@types/{components → packages/vue2/src/components}/header/header.vue.d.ts +0 -0
  390. /package/dist/@types/{components → packages/vue2/src/components}/header/index.d.ts +0 -0
  391. /package/dist/@types/{components → packages/vue2/src/components}/info-icon/index.d.ts +0 -0
  392. /package/dist/@types/{components → packages/vue2/src/components}/info-icon/info-icon.vue.d.ts +0 -0
  393. /package/dist/@types/{components → packages/vue2/src/components}/input-field/index.d.ts +0 -0
  394. /package/dist/@types/{components → packages/vue2/src/components}/input-field/input-field.types.d.ts +0 -0
  395. /package/dist/@types/{components → packages/vue2/src/components}/input-field/input-field.vue.d.ts +0 -0
  396. /package/dist/@types/{components → packages/vue2/src/components}/internal/avatar/avatar.vue.d.ts +0 -0
  397. /package/dist/@types/{components → packages/vue2/src/components}/internal/avatar/index.d.ts +0 -0
  398. /package/dist/@types/{components → packages/vue2/src/components}/internal/base-button/base-button.types.d.ts +0 -0
  399. /package/dist/@types/{components → packages/vue2/src/components}/internal/base-button/base-button.vue.d.ts +0 -0
  400. /package/dist/@types/{components → packages/vue2/src/components}/internal/base-button/index.d.ts +0 -0
  401. /package/dist/@types/{components → packages/vue2/src/components}/internal/calendar/calendar.types.d.ts +0 -0
  402. /package/dist/@types/{components → packages/vue2/src/components}/internal/calendar/components/calendar-month/calendar-month.types.d.ts +0 -0
  403. /package/dist/@types/{components → packages/vue2/src/components}/internal/calendar/components/calendar-month/components/calendar-month-day/__test__/calendar-month-day-stub.vue.d.ts +0 -0
  404. /package/dist/@types/{components → packages/vue2/src/components}/internal/calendar/components/calendar-month/components/calendar-month-day/calendar-month-day.types.d.ts +0 -0
  405. /package/dist/@types/{components → packages/vue2/src/components}/internal/calendar/components/calendar-month/components/calendar-month-day/calendar-month-day.vue.d.ts +0 -0
  406. /package/dist/@types/{components → packages/vue2/src/components}/internal/calendar/components/calendar-month/components/calendar-month-day/index.d.ts +0 -0
  407. /package/dist/@types/{components → packages/vue2/src/components}/internal/calendar/components/calendar-month/index.d.ts +0 -0
  408. /package/dist/@types/{components → packages/vue2/src/components}/internal/calendar/composables/use-range-pane.d.ts +0 -0
  409. /package/dist/@types/{components → packages/vue2/src/components}/internal/calendar/composables/use-single-pane.d.ts +0 -0
  410. /package/dist/@types/{components → packages/vue2/src/components}/internal/calendar/index.d.ts +0 -0
  411. /package/dist/@types/{components → packages/vue2/src/components}/internal/controls-group/controls-group.vue.d.ts +0 -0
  412. /package/dist/@types/{components → packages/vue2/src/components}/internal/controls-group/index.d.ts +0 -0
  413. /package/dist/@types/{components → packages/vue2/src/components}/internal/copy/copy.types.d.ts +0 -0
  414. /package/dist/@types/{components → packages/vue2/src/components}/internal/copy/copy.vue.d.ts +0 -0
  415. /package/dist/@types/{components → packages/vue2/src/components}/internal/copy/index.d.ts +0 -0
  416. /package/dist/@types/{components → packages/vue2/src/components}/internal/error-message/error-message.vue.d.ts +0 -0
  417. /package/dist/@types/{components → packages/vue2/src/components}/internal/error-message/index.d.ts +0 -0
  418. /package/dist/@types/{components → packages/vue2/src/components}/internal/grid-layout/grid-layout.types.d.ts +0 -0
  419. /package/dist/@types/{components → packages/vue2/src/components}/internal/grid-layout/grid-layout.vue.d.ts +0 -0
  420. /package/dist/@types/{components → packages/vue2/src/components}/internal/grid-layout/index.d.ts +0 -0
  421. /package/dist/@types/{components → packages/vue2/src/components}/internal/index.d.ts +0 -0
  422. /package/dist/@types/{components → packages/vue2/src/components}/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/components/listbox-multi-select-category/index.d.ts +0 -0
  423. /package/dist/@types/{components → packages/vue2/src/components}/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/components/listbox-multi-select-category/listbox-multi-select-category.types.d.ts +0 -0
  424. /package/dist/@types/{components → 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 +0 -0
  425. /package/dist/@types/{components → packages/vue2/src/components}/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/index.d.ts +0 -0
  426. /package/dist/@types/{components → packages/vue2/src/components}/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/listbox-multi-select-options.types.d.ts +0 -0
  427. /package/dist/@types/{components → packages/vue2/src/components}/internal/listbox/components/listbox-multi-select/index.d.ts +0 -0
  428. /package/dist/@types/{components → packages/vue2/src/components}/internal/listbox/components/listbox-option/index.d.ts +0 -0
  429. /package/dist/@types/{components → packages/vue2/src/components}/internal/listbox/components/listbox-option/listbox-option.vue.d.ts +0 -0
  430. /package/dist/@types/{components → packages/vue2/src/components}/internal/listbox/components/listbox-option-tag/index.d.ts +0 -0
  431. /package/dist/@types/{components → packages/vue2/src/components}/internal/listbox/components/listbox-option-tag/listbox-option-tag.vue.d.ts +0 -0
  432. /package/dist/@types/{components → packages/vue2/src/components}/internal/listbox/components/listbox-single-select-option/index.d.ts +0 -0
  433. /package/dist/@types/{components → packages/vue2/src/components}/internal/listbox/components/listbox-single-select-option/listbox-single-select-option.vue.d.ts +0 -0
  434. /package/dist/@types/{components → packages/vue2/src/components}/internal/listbox/index.d.ts +0 -0
  435. /package/dist/@types/{components → packages/vue2/src/components}/internal/listbox/listbox.types.d.ts +0 -0
  436. /package/dist/@types/{components → packages/vue2/src/components}/loading-indicator/index.d.ts +0 -0
  437. /package/dist/@types/{components → packages/vue2/src/components}/loading-indicator/loading-indicator.types.d.ts +0 -0
  438. /package/dist/@types/{components → packages/vue2/src/components}/loading-indicator/loading-indicator.vue.d.ts +0 -0
  439. /package/dist/@types/{components → packages/vue2/src/components}/menu/components/index.d.ts +0 -0
  440. /package/dist/@types/{components → packages/vue2/src/components}/menu/components/menu-item/index.d.ts +0 -0
  441. /package/dist/@types/{components → packages/vue2/src/components}/menu/components/menu-item/menu-item.types.d.ts +0 -0
  442. /package/dist/@types/{components → packages/vue2/src/components}/menu/components/menu-item/menu-item.vue.d.ts +0 -0
  443. /package/dist/@types/{components → packages/vue2/src/components}/menu/components/menu-item-list/index.d.ts +0 -0
  444. /package/dist/@types/{components → packages/vue2/src/components}/menu/components/menu-item-list/menu-item-list.vue.d.ts +0 -0
  445. /package/dist/@types/{components → packages/vue2/src/components}/menu/components/menu-list-container/menu-list-container.vue.d.ts +0 -0
  446. /package/dist/@types/{components → packages/vue2/src/components}/menu/components/sub-menu-item-list/sub-menu-item-list.vue.d.ts +0 -0
  447. /package/dist/@types/{components → packages/vue2/src/components}/menu/index.d.ts +0 -0
  448. /package/dist/@types/{components → packages/vue2/src/components}/menu/menu.types.d.ts +0 -0
  449. /package/dist/@types/{components → packages/vue2/src/components}/menu/menu.vue.d.ts +0 -0
  450. /package/dist/@types/{components → packages/vue2/src/components}/modal/components/base-modal/index.d.ts +0 -0
  451. /package/dist/@types/{components → packages/vue2/src/components}/modal/components/index.d.ts +0 -0
  452. /package/dist/@types/{components → packages/vue2/src/components}/modal/components/modal-dialog/modal-dialog.vue.d.ts +0 -0
  453. /package/dist/@types/{components → packages/vue2/src/components}/modal/index.d.ts +0 -0
  454. /package/dist/@types/{components → packages/vue2/src/components}/modal/modal.types.d.ts +0 -0
  455. /package/dist/@types/{components → packages/vue2/src/components}/modal/modal.vue.d.ts +0 -0
  456. /package/dist/@types/{components → packages/vue2/src/components}/pagination/components/pagination-context/pagination-context.vue.d.ts +0 -0
  457. /package/dist/@types/{components → packages/vue2/src/components}/pagination/components/pagination-controls/pagination-controls.vue.d.ts +0 -0
  458. /package/dist/@types/{components → packages/vue2/src/components}/pagination/components/pagination-results-per-page/pagination-results-per-page.vue.d.ts +0 -0
  459. /package/dist/@types/{components → packages/vue2/src/components}/pagination/index.d.ts +0 -0
  460. /package/dist/@types/{components → packages/vue2/src/components}/pagination/pagination.vue.d.ts +0 -0
  461. /package/dist/@types/{components → packages/vue2/src/components}/payment-method/composables/index.d.ts +0 -0
  462. /package/dist/@types/{components → packages/vue2/src/components}/payment-method/composables/usePaymentIcon.d.ts +0 -0
  463. /package/dist/@types/{components → packages/vue2/src/components}/payment-method/index.d.ts +0 -0
  464. /package/dist/@types/{components → packages/vue2/src/components}/payment-method/payment-method.types.d.ts +0 -0
  465. /package/dist/@types/{components → packages/vue2/src/components}/payment-method/payment-method.vue.d.ts +0 -0
  466. /package/dist/@types/{components → packages/vue2/src/components}/popover/components/popover-dismiss-button/popover-dismiss-button.vue.d.ts +0 -0
  467. /package/dist/@types/{components → packages/vue2/src/components}/popover/components/popover-image/index.d.ts +0 -0
  468. /package/dist/@types/{components → packages/vue2/src/components}/popover/components/popover-image/popover-image.vue.d.ts +0 -0
  469. /package/dist/@types/{components → packages/vue2/src/components}/popover/components/popover-title/popover-title.vue.d.ts +0 -0
  470. /package/dist/@types/{components → packages/vue2/src/components}/popover/index.d.ts +0 -0
  471. /package/dist/@types/{components → packages/vue2/src/components}/popover/popover.types.d.ts +0 -0
  472. /package/dist/@types/{components → packages/vue2/src/components}/popover/popover.vue.d.ts +0 -0
  473. /package/dist/@types/{components → packages/vue2/src/components}/popper-container/index.d.ts +0 -0
  474. /package/dist/@types/{components → packages/vue2/src/components}/popper-container/popper-container.types.d.ts +0 -0
  475. /package/dist/@types/{components → packages/vue2/src/components}/popper-container/popper-container.utils.d.ts +0 -0
  476. /package/dist/@types/{components → packages/vue2/src/components}/popper-container/popper-container.vue.d.ts +0 -0
  477. /package/dist/@types/{components → packages/vue2/src/components}/radio-group/components/radio-button/radio-button.types.d.ts +0 -0
  478. /package/dist/@types/{components → packages/vue2/src/components}/radio-group/components/radio-button/radio-button.vue.d.ts +0 -0
  479. /package/dist/@types/{components → packages/vue2/src/components}/radio-group/index.d.ts +0 -0
  480. /package/dist/@types/{components → packages/vue2/src/components}/radio-group/radio-group.types.d.ts +0 -0
  481. /package/dist/@types/{components → packages/vue2/src/components}/radio-group/radio-group.vue.d.ts +0 -0
  482. /package/dist/@types/{components → packages/vue2/src/components}/search-bar/index.d.ts +0 -0
  483. /package/dist/@types/{components → packages/vue2/src/components}/search-bar/search-bar.types.d.ts +0 -0
  484. /package/dist/@types/{components → packages/vue2/src/components}/search-bar/search-bar.vue.d.ts +0 -0
  485. /package/dist/@types/{components → packages/vue2/src/components}/search-bar/useSearchBarDataFilter.d.ts +0 -0
  486. /package/dist/@types/{components → packages/vue2/src/components}/segmented-control/components/segmented-control-button/segmented-control-button.vue.d.ts +0 -0
  487. /package/dist/@types/{components → packages/vue2/src/components}/segmented-control/index.d.ts +0 -0
  488. /package/dist/@types/{components → packages/vue2/src/components}/segmented-control/segmented-control.types.d.ts +0 -0
  489. /package/dist/@types/{components → packages/vue2/src/components}/segmented-control/segmented-control.vue.d.ts +0 -0
  490. /package/dist/@types/{components → packages/vue2/src/components}/status/index.d.ts +0 -0
  491. /package/dist/@types/{components → packages/vue2/src/components}/status/status.types.d.ts +0 -0
  492. /package/dist/@types/{components → packages/vue2/src/components}/status/status.vue.d.ts +0 -0
  493. /package/dist/@types/{components → packages/vue2/src/components}/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +0 -0
  494. /package/dist/@types/{components → packages/vue2/src/components}/structured-list/index.d.ts +0 -0
  495. /package/dist/@types/{components → packages/vue2/src/components}/structured-list/structured-list.keys.d.ts +0 -0
  496. /package/dist/@types/{components → packages/vue2/src/components}/structured-list/structured-list.vue.d.ts +0 -0
  497. /package/dist/@types/{components → packages/vue2/src/components}/summary-grid/components/summary-grid-item/index.d.ts +0 -0
  498. /package/dist/@types/{components → packages/vue2/src/components}/summary-grid/components/summary-grid-item/summary-grid-item.types.d.ts +0 -0
  499. /package/dist/@types/{components → packages/vue2/src/components}/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +0 -0
  500. /package/dist/@types/{components → packages/vue2/src/components}/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +0 -0
  501. /package/dist/@types/{components → packages/vue2/src/components}/summary-grid/components/summary-grid-item-custom/summary-grid-item-custom.vue.d.ts +0 -0
  502. /package/dist/@types/{components → packages/vue2/src/components}/summary-grid/components/summary-grid-item-numeric/summary-grid-item-numeric.vue.d.ts +0 -0
  503. /package/dist/@types/{components → packages/vue2/src/components}/summary-grid/components/summary-grid-item-percentage/summary-grid-item-percentage.vue.d.ts +0 -0
  504. /package/dist/@types/{components → packages/vue2/src/components}/summary-grid/components/summary-grid-item-text/summary-grid-item-text.vue.d.ts +0 -0
  505. /package/dist/@types/{components → packages/vue2/src/components}/summary-grid/index.d.ts +0 -0
  506. /package/dist/@types/{components → packages/vue2/src/components}/summary-grid/summary-grid.types.d.ts +0 -0
  507. /package/dist/@types/{components → packages/vue2/src/components}/summary-grid/summary-grid.vue.d.ts +0 -0
  508. /package/dist/@types/{components → packages/vue2/src/components}/tabs/components/tab.types.d.ts +0 -0
  509. /package/dist/@types/{components → packages/vue2/src/components}/tabs/components/tab.vue.d.ts +0 -0
  510. /package/dist/@types/{components → packages/vue2/src/components}/tabs/index.d.ts +0 -0
  511. /package/dist/@types/{components → packages/vue2/src/components}/tabs/tabs.keys.d.ts +0 -0
  512. /package/dist/@types/{components → packages/vue2/src/components}/tabs/tabs.types.d.ts +0 -0
  513. /package/dist/@types/{components → packages/vue2/src/components}/tabs/tabs.utils.d.ts +0 -0
  514. /package/dist/@types/{components → packages/vue2/src/components}/tabs/tabs.vue.d.ts +0 -0
  515. /package/dist/@types/{components → packages/vue2/src/components}/tag/index.d.ts +0 -0
  516. /package/dist/@types/{components → packages/vue2/src/components}/tag/tag.types.d.ts +0 -0
  517. /package/dist/@types/{components → packages/vue2/src/components}/tag/tag.vue.d.ts +0 -0
  518. /package/dist/@types/{components → packages/vue2/src/components}/textarea/index.d.ts +0 -0
  519. /package/dist/@types/{components → packages/vue2/src/components}/textarea/textarea.types.d.ts +0 -0
  520. /package/dist/@types/{components → packages/vue2/src/components}/textarea/textarea.vue.d.ts +0 -0
  521. /package/dist/@types/{components → packages/vue2/src/components}/timeline/components/timeline-item/timeline-item.vue.d.ts +0 -0
  522. /package/dist/@types/{components → packages/vue2/src/components}/timeline/index.d.ts +0 -0
  523. /package/dist/@types/{components → packages/vue2/src/components}/timeline/timeline.keys.d.ts +0 -0
  524. /package/dist/@types/{components → packages/vue2/src/components}/timeline/timeline.types.d.ts +0 -0
  525. /package/dist/@types/{components → packages/vue2/src/components}/timeline/timeline.vue.d.ts +0 -0
  526. /package/dist/@types/{components → packages/vue2/src/components}/toast/components/toast-item/index.d.ts +0 -0
  527. /package/dist/@types/{components → packages/vue2/src/components}/toast/components/toast-item/toast-item.types.d.ts +0 -0
  528. /package/dist/@types/{components → packages/vue2/src/components}/toast/components/toast-item/toast-item.vue.d.ts +0 -0
  529. /package/dist/@types/{components → packages/vue2/src/components}/toast/index.d.ts +0 -0
  530. /package/dist/@types/{components → packages/vue2/src/components}/toast/toast.vue.d.ts +0 -0
  531. /package/dist/@types/{components → packages/vue2/src/components}/toggle/index.d.ts +0 -0
  532. /package/dist/@types/{components → packages/vue2/src/components}/toggle/toggle.types.d.ts +0 -0
  533. /package/dist/@types/{components → packages/vue2/src/components}/toggle/toggle.vue.d.ts +0 -0
  534. /package/dist/@types/{components → packages/vue2/src/components}/typography/index.d.ts +0 -0
  535. /package/dist/@types/{components → packages/vue2/src/components}/typography/typography.types.d.ts +0 -0
  536. /package/dist/@types/{components → packages/vue2/src/components}/typography/typography.vue.d.ts +0 -0
  537. /package/dist/@types/{composables → packages/vue2/src/composables}/initials.d.ts +0 -0
  538. /package/dist/@types/{composables → packages/vue2/src/composables}/use-checkbox-select-all/use-checkbox-select-all.d.ts +0 -0
  539. /package/dist/@types/{composables → packages/vue2/src/composables}/use-default-slot-validator/use-default-slot-validator.d.ts +0 -0
  540. /package/dist/@types/{composables → packages/vue2/src/composables}/useDynamicImport.d.ts +0 -0
  541. /package/dist/@types/{directives → packages/vue2/src/directives}/click-outside/directive.d.ts +0 -0
  542. /package/dist/@types/{directives → packages/vue2/src/directives}/click-outside/index.d.ts +0 -0
  543. /package/dist/@types/{directives → packages/vue2/src/directives}/click-outside/on-click-outside.d.ts +0 -0
  544. /package/dist/@types/{directives → packages/vue2/src/directives}/click-outside/types.d.ts +0 -0
  545. /package/dist/@types/{directives → packages/vue2/src/directives}/click-outside/useEventListener/index.d.ts +0 -0
  546. /package/dist/@types/{directives → packages/vue2/src/directives}/click-outside/useEventListener/types.d.ts +0 -0
  547. /package/dist/@types/{directives → packages/vue2/src/directives}/click-outside/utils.d.ts +0 -0
  548. /package/dist/@types/{directives → packages/vue2/src/directives}/index.d.ts +0 -0
  549. /package/dist/@types/{directives → packages/vue2/src/directives}/keyboard-navigation/index.d.ts +0 -0
  550. /package/dist/@types/{directives → packages/vue2/src/directives}/keyboard-navigation/keyboard-navigation.d.ts +0 -0
  551. /package/dist/@types/{directives → packages/vue2/src/directives}/keyboard-navigation/keyboard-navigation.types.d.ts +0 -0
  552. /package/dist/@types/{directives → packages/vue2/src/directives}/tooltip/index.d.ts +0 -0
  553. /package/dist/@types/{directives → packages/vue2/src/directives}/tooltip/tooltip.d.ts +0 -0
  554. /package/dist/@types/{directives → packages/vue2/src/directives}/tooltip/tooltip.types.d.ts +0 -0
  555. /package/dist/@types/{index.d.ts → packages/vue2/src/index.d.ts} +0 -0
  556. /package/dist/@types/{install.d.ts → packages/vue2/src/install.d.ts} +0 -0
  557. /package/dist/@types/{plugins → packages/vue2/src/plugins}/toastController.d.ts +0 -0
  558. /package/dist/@types/{types → packages/vue2/src/types}/date-format.d.ts +0 -0
  559. /package/dist/@types/{types → packages/vue2/src/types}/elements.d.ts +0 -0
  560. /package/dist/@types/{types → packages/vue2/src/types}/functions.d.ts +0 -0
  561. /package/dist/@types/{types → packages/vue2/src/types}/index.d.ts +0 -0
  562. /package/dist/@types/{types → packages/vue2/src/types}/keyboard-navigation.d.ts +0 -0
  563. /package/dist/@types/{types → packages/vue2/src/types}/label-position.d.ts +0 -0
  564. /package/dist/@types/{types → packages/vue2/src/types}/listbox.d.ts +0 -0
  565. /package/dist/@types/{types → packages/vue2/src/types}/maybe-ref.d.ts +0 -0
  566. /package/dist/@types/{types → packages/vue2/src/types}/omit-strict.d.ts +0 -0
  567. /package/dist/@types/{types → packages/vue2/src/types}/prop-types.d.ts +0 -0
  568. /package/dist/@types/{types → packages/vue2/src/types}/refs.d.ts +0 -0
  569. /package/dist/@types/{types → packages/vue2/src/types}/utils-events.d.ts +0 -0
  570. /package/dist/@types/{utils → packages/vue2/src/utils}/ts/aria-label.d.ts +0 -0
  571. /package/dist/@types/{utils → packages/vue2/src/utils}/ts/currency/countries-list.d.ts +0 -0
  572. /package/dist/@types/{utils → packages/vue2/src/utils}/ts/currency/currency.d.ts +0 -0
  573. /package/dist/@types/{utils → packages/vue2/src/utils}/ts/currency/currency.types.d.ts +0 -0
  574. /package/dist/@types/{utils → packages/vue2/src/utils}/ts/date-input.d.ts +0 -0
  575. /package/dist/@types/{utils → packages/vue2/src/utils}/ts/debounce/debounce.d.ts +0 -0
  576. /package/dist/@types/{utils → packages/vue2/src/utils}/ts/debounce/index.d.ts +0 -0
  577. /package/dist/@types/{utils → packages/vue2/src/utils}/ts/deep-merge/deep-merge.d.ts +0 -0
  578. /package/dist/@types/{utils → packages/vue2/src/utils}/ts/deep-merge/index.d.ts +0 -0
  579. /package/dist/@types/{utils → packages/vue2/src/utils}/ts/events.d.ts +0 -0
  580. /package/dist/@types/{utils → packages/vue2/src/utils}/ts/focus-trap.utils.d.ts +0 -0
  581. /package/dist/@types/{utils → packages/vue2/src/utils}/ts/get-slot-text/get-slot-text.d.ts +0 -0
  582. /package/dist/@types/{utils → packages/vue2/src/utils}/ts/get-slot-text/index.d.ts +0 -0
  583. /package/dist/@types/{utils → packages/vue2/src/utils}/ts/i18n.d.ts +0 -0
  584. /package/dist/@types/{utils → packages/vue2/src/utils}/ts/resize.d.ts +0 -0
  585. /package/dist/@types/{utils → packages/vue2/src/utils}/ts/storybook.d.ts +0 -0
  586. /package/dist/@types/{utils → packages/vue2/src/utils}/ts/time-input.d.ts +0 -0
  587. /package/dist/@types/{utils → packages/vue2/src/utils}/ts/toastController.d.ts +0 -0
  588. /package/dist/@types/{utils → packages/vue2/src/utils}/ts/truncate.d.ts +0 -0
  589. /package/dist/@types/{utils → packages/vue2/src/utils}/ts/unique-id.d.ts +0 -0
package/dist/card.js CHANGED
@@ -1,37 +1,36 @@
1
- import { defineComponent as L, ref as E, computed as n } from "vue";
2
- import { B as I, c as b, a as i } from "./chunks/index.3aedb3dd.js";
3
- import { a as D, C as U } from "./chunks/chevron-up.5b117675.js";
4
- import { h as o } from "./chunks/hasSlot.dceac207.js";
5
- import { g as O } from "./chunks/unique-id.a2a2b458.js";
6
- import { u as M } from "./chunks/i18n.36074534.js";
7
- import { B as R, c as u } from "./chunks/button-actions.c87eaee6.js";
8
- import { n as z } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
9
- import "./assets/index27.css";
10
- var p = /* @__PURE__ */ ((e) => (e.PRIMARY = "primary", e.SECONDARY = "secondary", e))(p || {}), s = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.SMALL = "small", e))(s || {});
11
- const C = {
1
+ import { defineComponent as k, ref as T, computed as n } from "vue";
2
+ import { B as A, a as u, b as c } from "./chunks/index.e1fcc9e0.js";
3
+ import { a as E, C as L } from "./chunks/chevron-down.b851a6da.js";
4
+ import { u as I } from "./chunks/use-has-slot.068222e6.js";
5
+ import { g as D } from "./chunks/unique-id.a2a2b458.js";
6
+ import { u as O } from "./chunks/i18n.155748d6.js";
7
+ import { B as U, c as b } from "./chunks/button-actions.03751d96.js";
8
+ import { n as H } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
9
+ import "./assets/index11.css";
10
+ var C = /* @__PURE__ */ ((e) => (e.PRIMARY = "primary", e.SECONDARY = "secondary", e))(C || {}), d = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.SMALL = "small", e))(d || {});
11
+ const M = {
12
12
  "en-US": {
13
13
  showCardContent: "Show card content",
14
14
  hideCardContent: "Hide card content"
15
15
  }
16
- }, H = L({
17
- i18n: { messages: C },
16
+ }, R = k({
17
+ i18n: { messages: M },
18
18
  name: "bento-card",
19
- components: { ChevronUpIcon: D, ChevronDownIcon: U, BentoTypography: I, BentoButtonActions: R },
20
- inheritAttrs: !1,
19
+ components: { ChevronUpIcon: E, ChevronDownIcon: L, BentoTypography: A, BentoButtonActions: U },
21
20
  props: {
22
21
  /**
23
22
  * Defines the color of card background
24
23
  */
25
24
  background: {
26
25
  type: String,
27
- default: p.PRIMARY
26
+ default: C.PRIMARY
28
27
  },
29
28
  /**
30
29
  * Defines the title size of the card header
31
30
  */
32
31
  titleSize: {
33
32
  type: String,
34
- default: s.DEFAULT
33
+ default: d.DEFAULT
35
34
  },
36
35
  /**
37
36
  * The whole content of the card will be expandable in accordion manner
@@ -95,100 +94,98 @@ const C = {
95
94
  */
96
95
  actionsLayout: {
97
96
  type: String,
98
- default: u.BUTTONS_END,
99
- validator: (e) => Object.values(u).includes(e)
97
+ default: b.BUTTONS_END,
98
+ validator: (e) => Object.values(b).includes(e)
100
99
  }
101
100
  },
102
101
  emits: ["click", "expanded"],
103
102
  setup(e, { emit: a, slots: t }) {
104
- const { t: d } = M({ messages: C }), h = O("card"), l = E(!e.closed), c = n(
105
- () => o(t)("default") || o(t)("description") || o(t)("header")
106
- ), y = n(() => o(t)("default") || o(t)("header")), _ = n(
103
+ const { t: s } = O(), o = I(t), p = D("card"), l = T(!e.closed), i = n(() => o("default") || o("description") || o("header")), h = n(() => o("default") || o("header")), _ = n(
107
104
  () => {
108
105
  var r;
109
- return (o(t)("content") || ((r = e.actions) == null ? void 0 : r.length)) && (!e.expandable || e.expandable && l.value);
106
+ return (o("content") || ((r = e.actions) == null ? void 0 : r.length)) && (!e.expandable || e.expandable && l.value);
110
107
  }
111
- ), f = n(() => e.expandable && !e.disabled ? 0 : -1), g = n(() => ({
108
+ ), y = n(() => e.expandable && !e.disabled ? 0 : -1), g = n(() => ({
112
109
  [`b-card--${e.background}`]: e.background,
113
110
  "b-card--expandable": e.expandable,
114
111
  "b-card--disabled": e.expandable && e.disabled
115
- })), x = n(() => ({
112
+ })), f = n(() => ({
116
113
  "b-card__header--expandable": e.expandable,
117
114
  "b-card__header--without-body": !e.expandable && !_.value
115
+ })), x = n(() => ({
116
+ "b-card__toggle--small-text": e.titleSize === d.SMALL
118
117
  })), m = n(() => ({
119
- "b-card__toggle--small-text": e.titleSize === s.SMALL
118
+ "b-card__body--expandable": e.expandable && o("content"),
119
+ "b-card__body--without-header": !e.expandable && !i.value
120
120
  })), v = n(() => ({
121
- "b-card__body--expandable": e.expandable && o(t)("content"),
122
- "b-card__body--without-header": !e.expandable && !c.value
123
- })), w = n(() => ({
124
- "b-card__content--without-header": !e.expandable && !c.value,
121
+ "b-card__content--without-header": !e.expandable && !i.value,
125
122
  "b-card__content--expandable": e.expandable
126
- })), S = n(() => {
127
- const r = !e.expandable && e.actions && !o(t)("content");
123
+ })), w = n(() => {
124
+ const r = !e.expandable && e.actions && !o("content");
128
125
  return {
129
126
  "b-card__actions--without-content": r,
130
- "b-card__actions--without-content-and-with-header": r && c.value
127
+ "b-card__actions--without-content-and-with-header": r && i.value
131
128
  };
132
- }), B = n(() => ({
133
- "b-card__title-wrapper--truncated": o(t)("header")
134
- })), k = n(() => ({
135
- el: b.DIV,
136
- variant: e.titleSize === s.DEFAULT ? i.TITLE : i.BODY,
137
- strongest: e.titleSize === s.SMALL,
138
- wide: e.titleSize === s.SMALL
139
- })), T = () => {
140
- e.disabled || (l.value = !l.value, a("expanded", l.value));
141
- }, A = () => {
142
- e.disabled || a("click");
143
- };
129
+ }), S = n(() => ({
130
+ "b-card__title-wrapper--truncated": o("header")
131
+ })), B = n(() => ({
132
+ el: u.DIV,
133
+ variant: e.titleSize === d.DEFAULT ? c.TITLE : c.BODY,
134
+ strongest: e.titleSize === d.SMALL,
135
+ wide: e.titleSize === d.SMALL
136
+ }));
144
137
  return {
145
138
  // Values
146
- cardId: h,
139
+ cardId: p,
147
140
  cardConditionalClasses: g,
148
- cardBodyConditionalClasses: v,
149
- cardHeaderConditionalClasses: x,
150
- cardContentConditionalClasses: w,
151
- cardActionsConditionalClasses: S,
152
- cardTitleWrapperConditionalClasses: B,
153
- cardToggleConditionalClasses: m,
141
+ cardBodyConditionalClasses: m,
142
+ cardHeaderConditionalClasses: f,
143
+ cardContentConditionalClasses: v,
144
+ cardActionsConditionalClasses: w,
145
+ cardTitleWrapperConditionalClasses: S,
146
+ cardToggleConditionalClasses: x,
154
147
  showCardBody: _,
155
148
  showContent: l,
156
- tabIndex: f,
157
- showHeader: c,
158
- showTitleWrapper: y,
159
- typography: k,
149
+ tabIndex: y,
150
+ showHeader: i,
151
+ showTitleWrapper: h,
152
+ typography: B,
160
153
  // Methods
161
- hasSlot: o(t),
162
- onClick: A,
163
- t: d,
164
- toggleExpansion: T,
154
+ hasSlot: o,
155
+ onClick: () => {
156
+ e.disabled || a("click");
157
+ },
158
+ t: s,
159
+ toggleExpansion: () => {
160
+ e.disabled || (l.value = !l.value, a("expanded", l.value));
161
+ },
165
162
  // Enums
166
- BentoTypographyVariant: i,
167
- BentoTypographyElement: b
163
+ BentoTypographyVariant: c,
164
+ BentoTypographyElement: u
168
165
  };
169
166
  }
170
167
  });
171
- var W = function() {
168
+ var z = function() {
172
169
  var a = this, t = a._self._c;
173
- return a._self._setupProxy, t("div", { staticClass: "b-card", class: a.cardConditionalClasses, attrs: { "data-testid": "card" }, on: { click: a.onClick } }, [a.showHeader ? t("div", { staticClass: "b-card__header", class: a.cardHeaderConditionalClasses, attrs: { tabindex: a.tabIndex, "aria-controls": a.expandable ? a.cardId : null, "aria-expanded": a.expandable ? `${a.showContent}` : null, role: a.expandable ? "button" : null }, on: { click: a.toggleExpansion, keypress: [function(d) {
174
- return !d.type.indexOf("key") && a._k(d.keyCode, "enter", 13, d.key, "Enter") ? null : a.toggleExpansion.apply(null, arguments);
175
- }, function(d) {
176
- return !d.type.indexOf("key") && a._k(d.keyCode, "space", 32, d.key, [" ", "Spacebar"]) ? null : a.toggleExpansion.apply(null, arguments);
170
+ return a._self._setupProxy, t("div", { staticClass: "b-card", class: a.cardConditionalClasses, attrs: { "data-testid": "card" }, on: { click: a.onClick } }, [a.showHeader ? t("div", { staticClass: "b-card__header", class: a.cardHeaderConditionalClasses, attrs: { tabindex: a.tabIndex, "aria-controls": a.expandable ? a.cardId : null, "aria-expanded": a.expandable ? `${a.showContent}` : null, role: a.expandable ? "button" : null }, on: { click: a.toggleExpansion, keypress: [function(s) {
171
+ return !s.type.indexOf("key") && a._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : a.toggleExpansion.apply(null, arguments);
172
+ }, function(s) {
173
+ return !s.type.indexOf("key") && a._k(s.keyCode, "space", 32, s.key, [" ", "Spacebar"]) ? null : a.toggleExpansion.apply(null, arguments);
177
174
  }] } }, [t("div", { staticClass: "b-card__header-wrapper" }, [a.showTitleWrapper ? t("div", { staticClass: "b-card__header-slot-wrapper" }, [t("div", { staticClass: "b-card__title-wrapper", class: a.cardTitleWrapperConditionalClasses }, [a.expandable ? t("div", { staticClass: "b-card__toggle", class: a.cardToggleConditionalClasses }, [a.showContent ? t("chevron-up-icon", { attrs: { "svg-title": a.t("hideCardContent"), "aria-hidden": "true" } }) : t("chevron-down-icon", { attrs: { "svg-title": a.t("showCardContent"), "aria-hidden": "true" } })], 1) : a._e(), a.hasSlot("default") ? t("bento-typography", a._b({ staticClass: "b-card__title" }, "bento-typography", a.typography, !1), [a._t("default")], 2) : a._e()], 1), a.hasSlot("header") ? [a._t("header")] : a._e()], 2) : a._e(), a.hasSlot("description") ? t("bento-typography", { staticClass: "b-card__description", attrs: { el: a.BentoTypographyElement.DIV, variant: a.BentoTypographyVariant.BODY } }, [a._t("description")], 2) : a._e()], 1)]) : a._e(), a.showCardBody ? t("div", { staticClass: "b-card__body", class: a.cardBodyConditionalClasses, attrs: { id: a.expandable ? a.cardId : null } }, [a.hasSlot("content") ? t("div", { staticClass: "b-card__content", class: a.cardContentConditionalClasses }, [a._t("content")], 2) : a._e(), a.actions ? t("div", { staticClass: "b-card__actions", class: a.cardActionsConditionalClasses }, [t("bento-button-actions", { attrs: { actions: a.actions, layout: a.actionsLayout } })], 1) : a._e()]) : a._e()]);
178
- }, Y = [], F = /* @__PURE__ */ z(
179
- H,
175
+ }, W = [], Y = /* @__PURE__ */ H(
176
+ R,
177
+ z,
180
178
  W,
181
- Y,
182
179
  !1,
183
180
  null,
184
- "bf6cc517",
181
+ "84564884",
185
182
  null,
186
183
  null
187
184
  );
188
- const Q = F.exports;
185
+ const X = Y.exports;
189
186
  export {
190
- Q as BentoCard,
191
- p as BentoCardBackground,
192
- s as BentoCardTitleSize
187
+ X as BentoCard,
188
+ C as BentoCardBackground,
189
+ d as BentoCardTitleSize
193
190
  };
194
191
  //# sourceMappingURL=card.js.map
package/dist/card.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"card.js","sources":["../src/components/card/card.types.ts","../src/components/card/card.vue"],"sourcesContent":["export enum BentoCardBackground {\n PRIMARY = 'primary',\n SECONDARY = 'secondary',\n}\n\nexport enum BentoCardTitleSize {\n DEFAULT = 'default',\n SMALL = 'small',\n}\n","<template>\n <div class=\"b-card\" :class=\"cardConditionalClasses\" data-testid=\"card\" @click=\"onClick\">\n <div\n v-if=\"showHeader\"\n class=\"b-card__header\"\n :class=\"cardHeaderConditionalClasses\"\n :tabindex=\"tabIndex\"\n :aria-controls=\"expandable ? cardId : null\"\n :aria-expanded=\"expandable ? `${showContent}` : null\"\n :role=\"expandable ? 'button' : null\"\n @click=\"toggleExpansion\"\n @keypress.enter=\"toggleExpansion\"\n @keypress.space=\"toggleExpansion\"\n >\n <div class=\"b-card__header-wrapper\">\n <div v-if=\"showTitleWrapper\" class=\"b-card__header-slot-wrapper\">\n <div class=\"b-card__title-wrapper\" :class=\"cardTitleWrapperConditionalClasses\">\n <div v-if=\"expandable\" class=\"b-card__toggle\" :class=\"cardToggleConditionalClasses\">\n <chevron-up-icon v-if=\"showContent\" :svg-title=\"t('hideCardContent')\" aria-hidden=\"true\" />\n <chevron-down-icon v-else :svg-title=\"t('showCardContent')\" aria-hidden=\"true\" />\n </div>\n <bento-typography v-if=\"hasSlot('default')\" class=\"b-card__title\" v-bind=\"typography\">\n <slot />\n </bento-typography>\n </div>\n\n <template v-if=\"hasSlot('header')\">\n <slot name=\"header\"></slot>\n </template>\n </div>\n\n <bento-typography\n v-if=\"hasSlot('description')\"\n class=\"b-card__description\"\n :el=\"BentoTypographyElement.DIV\"\n :variant=\"BentoTypographyVariant.BODY\"\n >\n <slot name=\"description\" />\n </bento-typography>\n </div>\n </div>\n\n <div\n v-if=\"showCardBody\"\n :id=\"expandable ? cardId : null\"\n class=\"b-card__body\"\n :class=\"cardBodyConditionalClasses\"\n >\n <div v-if=\"hasSlot('content')\" class=\"b-card__content\" :class=\"cardContentConditionalClasses\">\n <slot name=\"content\" />\n </div>\n\n <div v-if=\"actions\" class=\"b-card__actions\" :class=\"cardActionsConditionalClasses\">\n <bento-button-actions :actions=\"actions\" :layout=\"actionsLayout\"></bento-button-actions>\n </div>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType, ref } from 'vue';\n\n // Components\n import { BentoTypography, BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';\n import { BentoButtonActions, BentoButtonActionsLayout, BentoButtonActionsList } from '@/components/button';\n import { BentoCardBackground, BentoCardTitleSize } from '@/components/card/card.types';\n import ChevronDownIcon from '@adyen/ui-assets-icons-16/vue/chevron-down';\n import ChevronUpIcon from '@adyen/ui-assets-icons-16/vue/chevron-up';\n\n // Utils\n import { hasSlot } from '@/utils/ts/hasSlot';\n import { generateUid } from '@/utils/ts/unique-id';\n import { useI18n } from '@/utils/ts/i18n';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n /**\n * A card is a flexible and composable container.\n * Use cards to represent a single object or to visually group certain content, like legal information within company settings.\n *\n * @example\n * import { BentoCard } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoCard },\n * template: `\n * <bento-card>\n * Title of the Card\n * </bento-card>\n * `\n * };\n */\n export default defineComponent({\n i18n: { messages },\n name: 'bento-card',\n components: { ChevronUpIcon, ChevronDownIcon, BentoTypography, BentoButtonActions },\n inheritAttrs: false,\n props: {\n /**\n * Defines the color of card background\n */\n background: {\n type: String as PropType<BentoCardBackground>,\n default: BentoCardBackground.PRIMARY,\n },\n /**\n * Defines the title size of the card header\n */\n titleSize: {\n type: String as PropType<BentoCardTitleSize>,\n default: BentoCardTitleSize.DEFAULT,\n },\n /**\n * The whole content of the card will be expandable in accordion manner\n */\n expandable: {\n type: Boolean,\n default: false,\n },\n /**\n * Initially sets the expandable card in a closed state\n */\n closed: {\n type: Boolean,\n default: false,\n },\n /**\n * Disables the expandable card\n */\n disabled: {\n type: Boolean,\n default: false,\n },\n /**\n * List of actions that will be used to render the buttons.\n * First element in the list will be rendered as \"primary\".\n * All elements after the first will be rendered as \"secondary\".\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * `title`: Button's text.\n *\n * `event`: Event triggered when clicking the Button.\n *\n * `icon`: Vue Icon from the library `@adyen/ui-assets-icons-16`.\n *\n * ```\n * [{\n * title: 'Primary',\n * event: () => { ... },\n * icon: FourPeopleIcon\n * }, {\n * title: 'Secondary',\n * event: () => { ... }\n * }]\n * ```\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n default: null,\n },\n /**\n * Defines the layout in which the button actions is presented.\n * It can be one of:\n *\n * @values BUTTONS_START\n * @values BUTTONS_END\n * @values FILL_CONTAINER\n * @values SPACE_BETWEEN\n * @values VERTICAL_STACK\n */\n actionsLayout: {\n type: String as PropType<BentoButtonActionsLayout>,\n default: BentoButtonActionsLayout.BUTTONS_END,\n validator: (value: BentoButtonActionsLayout) => Object.values(BentoButtonActionsLayout).includes(value),\n },\n },\n emits: ['click', 'expanded'],\n setup(props, { emit, slots }) {\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const cardId = generateUid('card');\n const showContent = ref(!props.closed);\n const showHeader = computed(\n () => hasSlot(slots)('default') || hasSlot(slots)('description') || hasSlot(slots)('header')\n );\n const showTitleWrapper = computed(() => hasSlot(slots)('default') || hasSlot(slots)('header'));\n const showCardBody = computed(\n () =>\n (hasSlot(slots)('content') || props.actions?.length) &&\n (!props.expandable || (props.expandable && showContent.value))\n );\n const tabIndex = computed(() => (props.expandable && !props.disabled ? 0 : -1));\n\n const cardConditionalClasses = computed(() => ({\n [`b-card--${props.background}`]: props.background,\n 'b-card--expandable': props.expandable,\n 'b-card--disabled': props.expandable && props.disabled,\n }));\n\n const cardHeaderConditionalClasses = computed(() => ({\n 'b-card__header--expandable': props.expandable,\n 'b-card__header--without-body': !props.expandable && !showCardBody.value,\n }));\n\n const cardToggleConditionalClasses = computed(() => ({\n 'b-card__toggle--small-text': props.titleSize === BentoCardTitleSize.SMALL,\n }));\n\n const cardBodyConditionalClasses = computed(() => ({\n 'b-card__body--expandable': props.expandable && hasSlot(slots)('content'),\n 'b-card__body--without-header': !props.expandable && !showHeader.value,\n }));\n\n const cardContentConditionalClasses = computed(() => ({\n 'b-card__content--without-header': !props.expandable && !showHeader.value,\n 'b-card__content--expandable': props.expandable,\n }));\n\n const cardActionsConditionalClasses = computed(() => {\n const isNotExpandableWithoutContent = !props.expandable && props.actions && !hasSlot(slots)('content');\n\n return {\n 'b-card__actions--without-content': isNotExpandableWithoutContent,\n 'b-card__actions--without-content-and-with-header':\n isNotExpandableWithoutContent && showHeader.value,\n };\n });\n\n const cardTitleWrapperConditionalClasses = computed(() => ({\n 'b-card__title-wrapper--truncated': hasSlot(slots)('header'),\n }));\n\n const typography = computed(() => ({\n el: BentoTypographyElement.DIV,\n variant:\n props.titleSize === BentoCardTitleSize.DEFAULT\n ? BentoTypographyVariant.TITLE\n : BentoTypographyVariant.BODY,\n strongest: props.titleSize === BentoCardTitleSize.SMALL,\n wide: props.titleSize === BentoCardTitleSize.SMALL,\n }));\n\n const toggleExpansion = () => {\n if (!props.disabled) {\n showContent.value = !showContent.value;\n emit('expanded', showContent.value);\n }\n };\n\n const onClick = () => {\n if (!props.disabled) {\n emit('click');\n }\n };\n\n return {\n // Values\n cardId,\n cardConditionalClasses,\n cardBodyConditionalClasses,\n cardHeaderConditionalClasses,\n cardContentConditionalClasses,\n cardActionsConditionalClasses,\n cardTitleWrapperConditionalClasses,\n cardToggleConditionalClasses,\n showCardBody,\n showContent,\n tabIndex,\n showHeader,\n showTitleWrapper,\n typography,\n\n // Methods\n hasSlot: hasSlot(slots),\n onClick,\n t,\n toggleExpansion,\n\n // Enums\n BentoTypographyVariant,\n BentoTypographyElement,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./card.scss\" />\n"],"names":["BentoCardBackground","BentoCardBackground2","BentoCardTitleSize","BentoCardTitleSize2","_sfc_main","defineComponent","messages","ChevronUp","ChevronDown","BentoTypography","BentoButtonActions","BentoButtonActionsLayout","value","props","emit","slots","t","useI18n","cardId","generateUid","showContent","ref","showHeader","computed","hasSlot","showTitleWrapper","showCardBody","_a","tabIndex","cardConditionalClasses","cardHeaderConditionalClasses","cardToggleConditionalClasses","cardBodyConditionalClasses","cardContentConditionalClasses","cardActionsConditionalClasses","isNotExpandableWithoutContent","cardTitleWrapperConditionalClasses","typography","BentoTypographyElement","BentoTypographyVariant","toggleExpansion","onClick"],"mappings":"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"}
1
+ {"version":3,"file":"card.js","sources":["../src/components/card/card.types.ts","../src/components/card/card.vue"],"sourcesContent":["export enum BentoCardBackground {\n PRIMARY = 'primary',\n SECONDARY = 'secondary',\n}\n\nexport enum BentoCardTitleSize {\n DEFAULT = 'default',\n SMALL = 'small',\n}\n","<template>\n <div class=\"b-card\" :class=\"cardConditionalClasses\" data-testid=\"card\" @click=\"onClick\">\n <div\n v-if=\"showHeader\"\n class=\"b-card__header\"\n :class=\"cardHeaderConditionalClasses\"\n :tabindex=\"tabIndex\"\n :aria-controls=\"expandable ? cardId : null\"\n :aria-expanded=\"expandable ? `${showContent}` : null\"\n :role=\"expandable ? 'button' : null\"\n @click=\"toggleExpansion\"\n @keypress.enter=\"toggleExpansion\"\n @keypress.space=\"toggleExpansion\"\n >\n <div class=\"b-card__header-wrapper\">\n <div v-if=\"showTitleWrapper\" class=\"b-card__header-slot-wrapper\">\n <div class=\"b-card__title-wrapper\" :class=\"cardTitleWrapperConditionalClasses\">\n <div v-if=\"expandable\" class=\"b-card__toggle\" :class=\"cardToggleConditionalClasses\">\n <chevron-up-icon v-if=\"showContent\" :svg-title=\"t('hideCardContent')\" aria-hidden=\"true\" />\n <chevron-down-icon v-else :svg-title=\"t('showCardContent')\" aria-hidden=\"true\" />\n </div>\n <bento-typography v-if=\"hasSlot('default')\" class=\"b-card__title\" v-bind=\"typography\">\n <slot />\n </bento-typography>\n </div>\n\n <template v-if=\"hasSlot('header')\">\n <slot name=\"header\"></slot>\n </template>\n </div>\n\n <bento-typography\n v-if=\"hasSlot('description')\"\n class=\"b-card__description\"\n :el=\"BentoTypographyElement.DIV\"\n :variant=\"BentoTypographyVariant.BODY\"\n >\n <slot name=\"description\" />\n </bento-typography>\n </div>\n </div>\n\n <div\n v-if=\"showCardBody\"\n :id=\"expandable ? cardId : null\"\n class=\"b-card__body\"\n :class=\"cardBodyConditionalClasses\"\n >\n <div v-if=\"hasSlot('content')\" class=\"b-card__content\" :class=\"cardContentConditionalClasses\">\n <slot name=\"content\" />\n </div>\n\n <div v-if=\"actions\" class=\"b-card__actions\" :class=\"cardActionsConditionalClasses\">\n <bento-button-actions :actions=\"actions\" :layout=\"actionsLayout\"></bento-button-actions>\n </div>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType, ref } from 'vue';\n\n // Components\n import { BentoTypography, BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';\n import { BentoButtonActions, BentoButtonActionsLayout, BentoButtonActionsList } from '@/components/button';\n import { BentoCardBackground, BentoCardTitleSize } from '@/components/card/card.types';\n import ChevronDownIcon from '@adyen/ui-assets-icons-16/vue/chevron-down';\n import ChevronUpIcon from '@adyen/ui-assets-icons-16/vue/chevron-up';\n\n // Utils\n import { useHasSlot } from '@/composables';\n import { generateUid } from '@/utils/ts/unique-id';\n import { useI18n } from '@/utils/ts/i18n';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n /**\n * A card is a flexible and composable container.\n * Use cards to represent a single object or to visually group certain content, like legal information within company settings.\n *\n * @example\n * import { BentoCard } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoCard },\n * template: `\n * <bento-card>\n * Title of the Card\n * </bento-card>\n * `\n * };\n */\n export default defineComponent({\n i18n: { messages },\n name: 'bento-card',\n components: { ChevronUpIcon, ChevronDownIcon, BentoTypography, BentoButtonActions },\n props: {\n /**\n * Defines the color of card background\n */\n background: {\n type: String as PropType<BentoCardBackground>,\n default: BentoCardBackground.PRIMARY,\n },\n /**\n * Defines the title size of the card header\n */\n titleSize: {\n type: String as PropType<BentoCardTitleSize>,\n default: BentoCardTitleSize.DEFAULT,\n },\n /**\n * The whole content of the card will be expandable in accordion manner\n */\n expandable: {\n type: Boolean,\n default: false,\n },\n /**\n * Initially sets the expandable card in a closed state\n */\n closed: {\n type: Boolean,\n default: false,\n },\n /**\n * Disables the expandable card\n */\n disabled: {\n type: Boolean,\n default: false,\n },\n /**\n * List of actions that will be used to render the buttons.\n * First element in the list will be rendered as \"primary\".\n * All elements after the first will be rendered as \"secondary\".\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * `title`: Button's text.\n *\n * `event`: Event triggered when clicking the Button.\n *\n * `icon`: Vue Icon from the library `@adyen/ui-assets-icons-16`.\n *\n * ```\n * [{\n * title: 'Primary',\n * event: () => { ... },\n * icon: FourPeopleIcon\n * }, {\n * title: 'Secondary',\n * event: () => { ... }\n * }]\n * ```\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n default: null,\n },\n /**\n * Defines the layout in which the button actions is presented.\n * It can be one of:\n *\n * @values BUTTONS_START\n * @values BUTTONS_END\n * @values FILL_CONTAINER\n * @values SPACE_BETWEEN\n * @values VERTICAL_STACK\n */\n actionsLayout: {\n type: String as PropType<BentoButtonActionsLayout>,\n default: BentoButtonActionsLayout.BUTTONS_END,\n validator: (value: BentoButtonActionsLayout) => Object.values(BentoButtonActionsLayout).includes(value),\n },\n },\n emits: ['click', 'expanded'],\n setup(props, { emit, slots }) {\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const hasSlot = useHasSlot(slots);\n\n const cardId = generateUid('card');\n const showContent = ref(!props.closed);\n const showHeader = computed(() => hasSlot('default') || hasSlot('description') || hasSlot('header'));\n const showTitleWrapper = computed(() => hasSlot('default') || hasSlot('header'));\n const showCardBody = computed(\n () =>\n (hasSlot('content') || props.actions?.length) &&\n (!props.expandable || (props.expandable && showContent.value))\n );\n const tabIndex = computed(() => (props.expandable && !props.disabled ? 0 : -1));\n\n const cardConditionalClasses = computed(() => ({\n [`b-card--${props.background}`]: props.background,\n 'b-card--expandable': props.expandable,\n 'b-card--disabled': props.expandable && props.disabled,\n }));\n\n const cardHeaderConditionalClasses = computed(() => ({\n 'b-card__header--expandable': props.expandable,\n 'b-card__header--without-body': !props.expandable && !showCardBody.value,\n }));\n\n const cardToggleConditionalClasses = computed(() => ({\n 'b-card__toggle--small-text': props.titleSize === BentoCardTitleSize.SMALL,\n }));\n\n const cardBodyConditionalClasses = computed(() => ({\n 'b-card__body--expandable': props.expandable && hasSlot('content'),\n 'b-card__body--without-header': !props.expandable && !showHeader.value,\n }));\n\n const cardContentConditionalClasses = computed(() => ({\n 'b-card__content--without-header': !props.expandable && !showHeader.value,\n 'b-card__content--expandable': props.expandable,\n }));\n\n const cardActionsConditionalClasses = computed(() => {\n const isNotExpandableWithoutContent = !props.expandable && props.actions && !hasSlot('content');\n\n return {\n 'b-card__actions--without-content': isNotExpandableWithoutContent,\n 'b-card__actions--without-content-and-with-header':\n isNotExpandableWithoutContent && showHeader.value,\n };\n });\n\n const cardTitleWrapperConditionalClasses = computed(() => ({\n 'b-card__title-wrapper--truncated': hasSlot('header'),\n }));\n\n const typography = computed(() => ({\n el: BentoTypographyElement.DIV,\n variant:\n props.titleSize === BentoCardTitleSize.DEFAULT\n ? BentoTypographyVariant.TITLE\n : BentoTypographyVariant.BODY,\n strongest: props.titleSize === BentoCardTitleSize.SMALL,\n wide: props.titleSize === BentoCardTitleSize.SMALL,\n }));\n\n const toggleExpansion = () => {\n if (!props.disabled) {\n showContent.value = !showContent.value;\n emit('expanded', showContent.value);\n }\n };\n\n const onClick = () => {\n if (!props.disabled) {\n emit('click');\n }\n };\n\n return {\n // Values\n cardId,\n cardConditionalClasses,\n cardBodyConditionalClasses,\n cardHeaderConditionalClasses,\n cardContentConditionalClasses,\n cardActionsConditionalClasses,\n cardTitleWrapperConditionalClasses,\n cardToggleConditionalClasses,\n showCardBody,\n showContent,\n tabIndex,\n showHeader,\n showTitleWrapper,\n typography,\n\n // Methods\n hasSlot,\n onClick,\n t,\n toggleExpansion,\n\n // Enums\n BentoTypographyVariant,\n BentoTypographyElement,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./card.scss\" />\n"],"names":["BentoCardBackground","BentoCardBackground2","BentoCardTitleSize","BentoCardTitleSize2","_sfc_main","defineComponent","messages","ChevronUpIcon","ChevronDownIcon","BentoTypography","BentoButtonActions","BentoButtonActionsLayout","value","props","emit","slots","t","useI18n","hasSlot","useHasSlot","cardId","generateUid","showContent","ref","showHeader","computed","showTitleWrapper","showCardBody","_a","tabIndex","cardConditionalClasses","cardHeaderConditionalClasses","cardToggleConditionalClasses","cardBodyConditionalClasses","cardContentConditionalClasses","cardActionsConditionalClasses","isNotExpandableWithoutContent","cardTitleWrapperConditionalClasses","typography","BentoTypographyElement","BentoTypographyVariant"],"mappings":"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"}
package/dist/checkbox.js CHANGED
@@ -1,17 +1,16 @@
1
- import { B as p, b as d } from "./chunks/checkbox.e8292504.js";
2
- import { a as V } from "./chunks/checkbox.e8292504.js";
3
- import { defineComponent as h, computed as t, toRef as _ } from "vue";
4
- import { g as b } from "./chunks/unique-id.a2a2b458.js";
5
- import { d as f } from "./chunks/index.3aedb3dd.js";
6
- import { C as m } from "./chunks/controls-group.53569fbb.js";
7
- import { E as g } from "./chunks/error-message.05450d5d.js";
1
+ import { B as p, b as d } from "./chunks/checkbox.27fae2af.js";
2
+ import { a as V } from "./chunks/checkbox.27fae2af.js";
3
+ import { defineComponent as h, computed as t, toRef as b } from "vue";
4
+ import { g as _ } from "./chunks/unique-id.a2a2b458.js";
5
+ import { d as f } from "./chunks/index.e1fcc9e0.js";
6
+ import { C as m } from "./chunks/controls-group.e4745546.js";
7
+ import { E as g } from "./chunks/error-message.4269d92b.js";
8
8
  import { n as y } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
9
- import "./assets/index31.css";
9
+ import "./assets/index12.css";
10
10
  var a = /* @__PURE__ */ ((r) => (r.HORIZONTAL = "horizontal", r.VERTICAL = "vertical", r))(a || {});
11
11
  const v = h({
12
12
  name: "bento-checkbox-group",
13
13
  components: { BentoCheckbox: p, ControlsGroup: m, ErrorMessage: g },
14
- inheritAttrs: !1,
15
14
  props: {
16
15
  /**
17
16
  * The checkbox group's items.
@@ -58,7 +57,9 @@ const v = h({
58
57
  default: !1
59
58
  },
60
59
  /**
61
- * @deprecated If set to true, renders all checkboxes in the group in an error state.
60
+ * If set to true, renders all checkboxes in the group in an error state.
61
+ *
62
+ * @deprecated Use "errorMessage" prop instead
62
63
  */
63
64
  hasError: {
64
65
  type: Boolean,
@@ -78,18 +79,20 @@ const v = h({
78
79
  },
79
80
  emits: [d.UPDATE],
80
81
  setup(r, { emit: e }) {
81
- const s = b("error"), o = t(
82
+ const s = _("error"), o = t(
82
83
  () => !r.disabled && !r.readonly && (!!r.errorMessage || r.hasError)
83
84
  ), u = t(
84
85
  () => !r.disabled && !r.readonly && !!r.errorMessage
85
86
  ), c = t(() => ({
86
87
  "b-checkbox-group__checkboxes--horizontal": r.variant === a.HORIZONTAL
87
- })), l = _(r, "modelValue"), i = (n) => {
88
+ })), l = b(r, "modelValue"), i = (n) => {
88
89
  l.value = n, e(d.UPDATE, n);
89
90
  };
90
91
  return r.hasError && f(
91
- "BentoCheckboxGroup hasError modifier",
92
- "BentoCheckboxGroup hasError modifier has been deprecated. Please use the errorMessage modifier.",
92
+ 'BentoCheckboxGroup "hasError" property',
93
+ `Use the BentoCheckboxGroup "errorMessage" property instead to indicate that there is a modifier error.
94
+ Having the field as "undefined" will hide/remove the error.
95
+ <bento-checkbox-group errorMessage="Error message text" />`,
93
96
  "2.0.0"
94
97
  ), {
95
98
  // Values
@@ -116,7 +119,7 @@ var x = function() {
116
119
  E,
117
120
  !1,
118
121
  null,
119
- "97ceeae3",
122
+ "ebe9e43e",
120
123
  null,
121
124
  null
122
125
  );
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox.js","sources":["../src/components/checkbox/components/checkbox-group/checkbox-group.types.ts","../src/components/checkbox/components/checkbox-group/checkbox-group.vue"],"sourcesContent":["export enum BentoCheckboxGroupVariant {\n HORIZONTAL = 'horizontal',\n VERTICAL = 'vertical',\n}\n\nexport interface BentoCheckboxGroupItem {\n value: string | number;\n label: string;\n description?: string;\n disabled?: boolean;\n hasError?: boolean;\n errorMessage?: string;\n readonly?: boolean;\n}\n\nexport type BentoCheckboxGroupItems = Array<BentoCheckboxGroupItem>;\n","<template>\n <div class=\"b-checkbox-group\">\n <controls-group\n class=\"b-checkbox-group__checkboxes\"\n :class=\"conditionalClasses\"\n :form=\"formId\"\n :disabled=\"disabled\"\n :label=\"label\"\n :aria-describedby=\"shouldShowGroupErrorMessage ? errorId : ''\"\n >\n <bento-checkbox\n v-for=\"item in items\"\n :key=\"item.value\"\n :model-value=\"inputValue\"\n :value=\"item.value\"\n :disabled=\"disabled || item.disabled\"\n :has-error=\"shouldShowGroupError || item.hasError\"\n :error-message=\"shouldShowGroupError ? null : item.errorMessage\"\n :readonly=\"readonly || item.readonly\"\n @update:model-value=\"onInput\"\n >\n {{ item.label }}\n <template v-if=\"item.description\" #description>{{ item.description }}</template>\n </bento-checkbox>\n </controls-group>\n <error-message\n v-if=\"shouldShowGroupErrorMessage\"\n :id=\"errorId\"\n :error-message=\"errorMessage\"\n class=\"b-checkbox-group__error-message\"\n />\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType, toRef } from 'vue';\n import { ControlsGroup } from '@/components/internal/controls-group';\n import { ErrorMessage } from '@/components/internal/error-message';\n import { BentoCheckboxGroupItems, BentoCheckboxGroupVariant } from './checkbox-group.types';\n import BentoCheckbox from '@/components/checkbox/checkbox.vue';\n import { BentoCheckboxEvent } from '../../checkbox.types';\n import { generateUid } from '@/utils/ts/unique-id';\n import { deprecate } from '@/utils/ts/deprecate';\n\n /**\n * A checkbox group component should be used whenever it is necessary to group a set of checkboxes that are related together\n * This component conforms to the official WAI-ARIA guidelines for grouping controls: https://www.w3.org/WAI/tutorials/forms/grouping/\n *\n * import { BentoCheckboxGroup } from '@adyen/bento-vue2/';\n *\n * export default {\n * components: { BentoCheckboxGroup },\n * template: `\n * <bento-checkbox-group\n * label=\"Your group label\"\n * :items=\"[\n * { value: 1, label: 'Your label' },\n * { value: 2, label: 'Another label', description: 'Your sub label' },\n * ]\"\n * />\n * `\n * };\n */\n export default defineComponent({\n name: 'bento-checkbox-group',\n components: { BentoCheckbox, ControlsGroup, ErrorMessage },\n inheritAttrs: false,\n props: {\n /**\n * The checkbox group's items.\n */\n items: {\n type: Array as PropType<BentoCheckboxGroupItems>,\n required: true,\n },\n /**\n * Determines the initially selected value of the group. Corresponds to the BentoCheckboxButtonItem's value.\n * Defaults to no value selected.\n */\n modelValue: {\n type: Array<number | string | null>,\n default: () => [],\n },\n /**\n * The checkbox group's layout. It can be vertical or horizontal. Defaults to vertical.\n */\n variant: {\n type: String as PropType<BentoCheckboxGroupVariant>,\n default: BentoCheckboxGroupVariant.VERTICAL,\n validator: (value: BentoCheckboxGroupVariant) =>\n Object.values(BentoCheckboxGroupVariant).includes(value),\n },\n /**\n * The form id the checkbox group is associated with. Defaults to null, as a checkbox group can also be used standalone.\n */\n formId: {\n type: String,\n default: null,\n },\n /**\n * If set to true, renders all checkboxes in the group in a disabled state.\n */\n disabled: {\n type: Boolean,\n default: false,\n },\n /**\n * If set to true, renders all checkboxes in the group in a readonly state.\n */\n readonly: {\n type: Boolean,\n default: false,\n },\n /**\n * @deprecated If set to true, renders all checkboxes in the group in an error state.\n */\n hasError: {\n type: Boolean,\n default: false,\n },\n /**\n * Renders all checkboxes in an error state with an error message.\n */\n errorMessage: {\n type: String,\n default: null,\n },\n /**\n * The name associated with the group. Required for accessibility purposes.\n */\n label: { type: String, required: true },\n },\n emits: [BentoCheckboxEvent.UPDATE],\n setup(props, { emit }) {\n const errorId = generateUid('error');\n\n const shouldShowGroupError = computed(\n () => !props.disabled && !props.readonly && (!!props.errorMessage || props.hasError)\n );\n const shouldShowGroupErrorMessage = computed(\n () => !props.disabled && !props.readonly && !!props.errorMessage\n );\n\n const conditionalClasses = computed(() => ({\n 'b-checkbox-group__checkboxes--horizontal': props.variant === BentoCheckboxGroupVariant.HORIZONTAL,\n }));\n const inputValue = toRef(props, 'modelValue');\n\n const onInput = value => {\n inputValue.value = value;\n emit(BentoCheckboxEvent.UPDATE, value);\n };\n\n if (props.hasError) {\n deprecate(\n 'BentoCheckboxGroup hasError modifier',\n 'BentoCheckboxGroup hasError modifier has been deprecated. Please use the errorMessage modifier.',\n '2.0.0'\n );\n }\n\n return {\n // Values\n errorId,\n shouldShowGroupError,\n shouldShowGroupErrorMessage,\n conditionalClasses,\n inputValue,\n\n // Methods\n onInput,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./checkbox-group.scss\" />\n"],"names":["BentoCheckboxGroupVariant","BentoCheckboxGroupVariant2","_sfc_main","defineComponent","BentoCheckbox","ControlsGroup","ErrorMessage","value","BentoCheckboxEvent","props","emit","errorId","generateUid","shouldShowGroupError","computed","shouldShowGroupErrorMessage","conditionalClasses","inputValue","toRef","onInput","deprecate"],"mappings":";;;;;;;;;AAAY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,aAAA,cACAA,EAAA,WAAA,YAFQA,IAAAD,KAAA,CAAA,CAAA;AC+DZ,MAAAE,IAAAC,EAAA;AAAA,EAAA,MAAA;AAAA,EACA,YAAA,EAAA,eAAAC,GAAA,eAAAC,GAAA,cAAAC,EAAA;AAAA,EACA,cAAA;AAAA,EACA,OAAA;AAAA;AAAA;AAAA;AAAA,IACA,OAAA;AAAA,MAIA,MAAA;AAAA,MACA,UAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA,IACA,YAAA;AAAA,MAKA,MAAA;AAAA,MACA,SAAA,MAAA,CAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IACA,SAAA;AAAA,MAIA,MAAA;AAAA,MACA,SAAAN,EAAA;AAAA,MACA,WAAA,CAAAO,MAAA,OAAA,OAAAP,CAAA,EAAA,SAAAO,CAAA;AAAA,IAEA;AAAA;AAAA;AAAA;AAAA,IACA,QAAA;AAAA,MAIA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IACA,UAAA;AAAA,MAIA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IACA,UAAA;AAAA,MAIA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IACA,UAAA;AAAA,MAIA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IACA,cAAA;AAAA,MAIA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IACA,OAAA,EAAA,MAAA,QAAA,UAAA,GAAA;AAAA,EAIA;AAAA,EACA,OAAA,CAAAC,EAAA,MAAA;AAAA,EACA,MAAAC,GAAA,EAAA,MAAAC,EAAA,GAAA;AAEA,UAAAC,IAAAC,EAAA,OAAA,GAEAC,IAAAC;AAAA,MAAA,MAAA,CAAAL,EAAA,YAAA,CAAAA,EAAA,aAAA,CAAA,CAAAA,EAAA,gBAAAA,EAAA;AAAA,IACA,GAEAM,IAAAD;AAAA,MAAA,MAAA,CAAAL,EAAA,YAAA,CAAAA,EAAA,YAAA,CAAA,CAAAA,EAAA;AAAA,IACA,GAGAO,IAAAF,EAAA,OAAA;AAAA,MAAA,4CAAAL,EAAA,YAAAT,EAAA;AAAA,IACA,EAAA,GAEAiB,IAAAC,EAAAT,GAAA,YAAA,GAEAU,IAAA,CAAAZ,MAAA;AACA,MAAAU,EAAA,QAAAV,GACAG,EAAAF,EAAA,QAAAD,CAAA;AAAA,IAAA;AAGA,WAAAE,EAAA,YACAW;AAAA,MAAA;AAAA,MACA;AAAA,MACA;AAAA,IACA,GAIA;AAAA;AAAA,MAAA,SAAAT;AAAA,MAEA,sBAAAE;AAAA,MACA,6BAAAE;AAAA,MACA,oBAAAC;AAAA,MACA,YAAAC;AAAA;AAAA,MACA,SAAAE;AAAA,IAGA;AAAA,EACA;AAEA,CAAA;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"checkbox.js","sources":["../src/components/checkbox/components/checkbox-group/checkbox-group.types.ts","../src/components/checkbox/components/checkbox-group/checkbox-group.vue"],"sourcesContent":["export enum BentoCheckboxGroupVariant {\n HORIZONTAL = 'horizontal',\n VERTICAL = 'vertical',\n}\n\nexport interface BentoCheckboxGroupItem {\n value: string | number;\n label: string;\n description?: string;\n disabled?: boolean;\n hasError?: boolean;\n errorMessage?: string;\n readonly?: boolean;\n}\n\nexport type BentoCheckboxGroupItems = Array<BentoCheckboxGroupItem>;\n","<template>\n <div class=\"b-checkbox-group\">\n <controls-group\n class=\"b-checkbox-group__checkboxes\"\n :class=\"conditionalClasses\"\n :form=\"formId\"\n :disabled=\"disabled\"\n :label=\"label\"\n :aria-describedby=\"shouldShowGroupErrorMessage ? errorId : ''\"\n >\n <bento-checkbox\n v-for=\"item in items\"\n :key=\"item.value\"\n :model-value=\"inputValue\"\n :value=\"item.value\"\n :disabled=\"disabled || item.disabled\"\n :has-error=\"shouldShowGroupError || item.hasError\"\n :error-message=\"shouldShowGroupError ? null : item.errorMessage\"\n :readonly=\"readonly || item.readonly\"\n @update:model-value=\"onInput\"\n >\n {{ item.label }}\n <template v-if=\"item.description\" #description>{{ item.description }}</template>\n </bento-checkbox>\n </controls-group>\n <error-message\n v-if=\"shouldShowGroupErrorMessage\"\n :id=\"errorId\"\n :error-message=\"errorMessage\"\n class=\"b-checkbox-group__error-message\"\n />\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType, toRef } from 'vue';\n import { ControlsGroup } from '@/components/internal/controls-group';\n import { ErrorMessage } from '@/components/internal/error-message';\n import { BentoCheckboxGroupItems, BentoCheckboxGroupVariant } from './checkbox-group.types';\n import BentoCheckbox from '@/components/checkbox/checkbox.vue';\n import { BentoCheckboxEvent } from '../../checkbox.types';\n import { generateUid } from '@/utils/ts/unique-id';\n import { deprecate } from '@/utils/ts/deprecate';\n\n /**\n * A checkbox group component should be used whenever it is necessary to group a set of checkboxes that are related together\n * This component conforms to the official WAI-ARIA guidelines for grouping controls: https://www.w3.org/WAI/tutorials/forms/grouping/\n *\n * import { BentoCheckboxGroup } from '@adyen/bento-vue2/';\n *\n * export default {\n * components: { BentoCheckboxGroup },\n * template: `\n * <bento-checkbox-group\n * label=\"Your group label\"\n * :items=\"[\n * { value: 1, label: 'Your label' },\n * { value: 2, label: 'Another label', description: 'Your sub label' },\n * ]\"\n * />\n * `\n * };\n */\n export default defineComponent({\n name: 'bento-checkbox-group',\n components: { BentoCheckbox, ControlsGroup, ErrorMessage },\n props: {\n /**\n * The checkbox group's items.\n */\n items: {\n type: Array as PropType<BentoCheckboxGroupItems>,\n required: true,\n },\n /**\n * Determines the initially selected value of the group. Corresponds to the BentoCheckboxButtonItem's value.\n * Defaults to no value selected.\n */\n modelValue: {\n type: Array<number | string | null>,\n default: () => [],\n },\n /**\n * The checkbox group's layout. It can be vertical or horizontal. Defaults to vertical.\n */\n variant: {\n type: String as PropType<BentoCheckboxGroupVariant>,\n default: BentoCheckboxGroupVariant.VERTICAL,\n validator: (value: BentoCheckboxGroupVariant) =>\n Object.values(BentoCheckboxGroupVariant).includes(value),\n },\n /**\n * The form id the checkbox group is associated with. Defaults to null, as a checkbox group can also be used standalone.\n */\n formId: {\n type: String,\n default: null,\n },\n /**\n * If set to true, renders all checkboxes in the group in a disabled state.\n */\n disabled: {\n type: Boolean,\n default: false,\n },\n /**\n * If set to true, renders all checkboxes in the group in a readonly state.\n */\n readonly: {\n type: Boolean,\n default: false,\n },\n /**\n * If set to true, renders all checkboxes in the group in an error state.\n *\n * @deprecated Use \"errorMessage\" prop instead\n */\n hasError: {\n type: Boolean,\n default: false,\n },\n /**\n * Renders all checkboxes in an error state with an error message.\n */\n errorMessage: {\n type: String,\n default: null,\n },\n /**\n * The name associated with the group. Required for accessibility purposes.\n */\n label: { type: String, required: true },\n },\n emits: [BentoCheckboxEvent.UPDATE],\n setup(props, { emit }) {\n const errorId = generateUid('error');\n\n const shouldShowGroupError = computed(\n () => !props.disabled && !props.readonly && (!!props.errorMessage || props.hasError)\n );\n const shouldShowGroupErrorMessage = computed(\n () => !props.disabled && !props.readonly && !!props.errorMessage\n );\n\n const conditionalClasses = computed(() => ({\n 'b-checkbox-group__checkboxes--horizontal': props.variant === BentoCheckboxGroupVariant.HORIZONTAL,\n }));\n const inputValue = toRef(props, 'modelValue');\n\n const onInput = value => {\n inputValue.value = value;\n emit(BentoCheckboxEvent.UPDATE, value);\n };\n\n if (props.hasError) {\n deprecate(\n 'BentoCheckboxGroup \"hasError\" property',\n `Use the BentoCheckboxGroup \"errorMessage\" property instead to indicate that there is a modifier error.\n Having the field as \"undefined\" will hide/remove the error.\n <bento-checkbox-group errorMessage=\"Error message text\" />`,\n '2.0.0'\n );\n }\n\n return {\n // Values\n errorId,\n shouldShowGroupError,\n shouldShowGroupErrorMessage,\n conditionalClasses,\n inputValue,\n\n // Methods\n onInput,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./checkbox-group.scss\" />\n"],"names":["BentoCheckboxGroupVariant","BentoCheckboxGroupVariant2","_sfc_main","defineComponent","BentoCheckbox","ControlsGroup","ErrorMessage","value","BentoCheckboxEvent","props","emit","errorId","generateUid","shouldShowGroupError","computed","shouldShowGroupErrorMessage","conditionalClasses","inputValue","toRef","onInput","deprecate"],"mappings":";;;;;;;;;AAAY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,aAAA,cACAA,EAAA,WAAA,YAFQA,IAAAD,KAAA,CAAA,CAAA;AC+DZ,MAAAE,IAAAC,EAAA;AAAA,EAAA,MAAA;AAAA,EACA,YAAA,EAAA,eAAAC,GAAA,eAAAC,GAAA,cAAAC,EAAA;AAAA,EACA,OAAA;AAAA;AAAA;AAAA;AAAA,IACA,OAAA;AAAA,MAIA,MAAA;AAAA,MACA,UAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA,IACA,YAAA;AAAA,MAKA,MAAA;AAAA,MACA,SAAA,MAAA,CAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IACA,SAAA;AAAA,MAIA,MAAA;AAAA,MACA,SAAAN,EAAA;AAAA,MACA,WAAA,CAAAO,MAAA,OAAA,OAAAP,CAAA,EAAA,SAAAO,CAAA;AAAA,IAEA;AAAA;AAAA;AAAA;AAAA,IACA,QAAA;AAAA,MAIA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IACA,UAAA;AAAA,MAIA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IACA,UAAA;AAAA,MAIA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IACA,UAAA;AAAA,MAMA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IACA,cAAA;AAAA,MAIA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IACA,OAAA,EAAA,MAAA,QAAA,UAAA,GAAA;AAAA,EAIA;AAAA,EACA,OAAA,CAAAC,EAAA,MAAA;AAAA,EACA,MAAAC,GAAA,EAAA,MAAAC,EAAA,GAAA;AAEA,UAAAC,IAAAC,EAAA,OAAA,GAEAC,IAAAC;AAAA,MAAA,MAAA,CAAAL,EAAA,YAAA,CAAAA,EAAA,aAAA,CAAA,CAAAA,EAAA,gBAAAA,EAAA;AAAA,IACA,GAEAM,IAAAD;AAAA,MAAA,MAAA,CAAAL,EAAA,YAAA,CAAAA,EAAA,YAAA,CAAA,CAAAA,EAAA;AAAA,IACA,GAGAO,IAAAF,EAAA,OAAA;AAAA,MAAA,4CAAAL,EAAA,YAAAT,EAAA;AAAA,IACA,EAAA,GAEAiB,IAAAC,EAAAT,GAAA,YAAA,GAEAU,IAAA,CAAAZ,MAAA;AACA,MAAAU,EAAA,QAAAV,GACAG,EAAAF,EAAA,QAAAD,CAAA;AAAA,IAAA;AAGA,WAAAE,EAAA,YACAW;AAAA,MAAA;AAAA,MACA;AAAA;AAAA;AAAA,MACA;AAAA,IAGA,GAIA;AAAA;AAAA,MAAA,SAAAT;AAAA,MAEA,sBAAAE;AAAA,MACA,6BAAAE;AAAA,MACA,oBAAAC;AAAA,MACA,YAAAC;AAAA;AAAA,MACA,SAAAE;AAAA,IAGA;AAAA,EACA;AAEA,CAAA;;;;;;;;;;;;;;;;;;;"}
@@ -1,12 +1,12 @@
1
- import { defineComponent as b, computed as i, ref as d } from "vue";
2
- import { B as p, c as u, a as f } from "./index.3aedb3dd.js";
3
- import { h as C } from "./hasSlot.dceac207.js";
1
+ import { defineComponent as b, computed as i, ref as p } from "vue";
2
+ import { B as u, a as d, b as f } from "./index.e1fcc9e0.js";
3
+ import { u as C } from "./use-has-slot.068222e6.js";
4
4
  import { n as y } from "./_plugin-vue2_normalizer.71e2aa87.js";
5
5
  import "../assets/base-button.css";
6
6
  var s = /* @__PURE__ */ ((a) => (a.DESTRUCTIVE = "critical", a.ICON_ONLY = "icon-only", a))(s || {}), n = /* @__PURE__ */ ((a) => (a.BLUR = "blur", a.CLICK = "click", a.FOCUS = "focus", a.KEYDOWN_ESC = "keydown.esc", a))(n || {});
7
7
  const m = b({
8
8
  name: "base-button",
9
- components: { BentoTypography: p },
9
+ components: { BentoTypography: u },
10
10
  props: {
11
11
  /**
12
12
  * Disables button functionality
@@ -43,13 +43,13 @@ const m = b({
43
43
  return {
44
44
  "aria-expanded": (o = r["aria-expanded"]) == null ? void 0 : o.toString()
45
45
  };
46
- }), c = d(null), _ = i(() => ({
46
+ }), c = p(null), _ = i(() => ({
47
47
  [`b-base-button--${s.DESTRUCTIVE}`]: a.critical,
48
48
  [`b-base-button--${s.ICON_ONLY}`]: !t.default
49
49
  }));
50
50
  return {
51
51
  // Enums
52
- BentoTypographyElement: u,
52
+ BentoTypographyElement: d,
53
53
  BentoTypographyVariant: f,
54
54
  // Values
55
55
  ariaAttributes: l,
@@ -73,7 +73,7 @@ var h = function() {
73
73
  g,
74
74
  !1,
75
75
  null,
76
- "4adac72b",
76
+ "f1ba2191",
77
77
  null,
78
78
  null
79
79
  );
@@ -82,4 +82,4 @@ export {
82
82
  x as B,
83
83
  n as a
84
84
  };
85
- //# sourceMappingURL=base-button.23c7948c.js.map
85
+ //# sourceMappingURL=base-button.e7630a1d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base-button.e7630a1d.js","sources":["../../src/components/internal/base-button/base-button.types.ts","../../src/components/internal/base-button/base-button.vue"],"sourcesContent":["export enum BentoBaseButtonPropClass {\n DESTRUCTIVE = 'critical',\n ICON_ONLY = 'icon-only',\n}\n\nexport enum BentoBaseButtonEvent {\n BLUR = 'blur',\n CLICK = 'click',\n FOCUS = 'focus',\n KEYDOWN_ESC = 'keydown.esc',\n}\n\nexport enum BaseButtonType {\n BUTTON = 'button',\n RESET = 'reset',\n SUBMIT = 'submit',\n}\n","<template>\n <button\n ref=\"bentoBaseButtonRef\"\n class=\"b-base-button\"\n :class=\"conditionalClasses\"\n :disabled=\"disabled\"\n :type=\"type\"\n :aria-expanded=\"ariaAttributes['aria-expanded']\"\n @click=\"onClickButton\"\n >\n <span v-if=\"hasSlot('iconLeft')\" class=\"b-base-button__icon-left\" data-testid=\"icon-button-left\">\n <slot name=\"iconLeft\" />\n </span>\n <bento-typography\n v-if=\"hasSlot('default')\"\n :el=\"BentoTypographyElement.SPAN\"\n :variant=\"BentoTypographyVariant.BODY\"\n stronger\n class=\"b-base-button__label\"\n >\n <slot />\n </bento-typography>\n <span v-if=\"hasSlot('iconRight')\" class=\"b-base-button__icon-right\" data-testid=\"icon-button-right\">\n <slot name=\"iconRight\" />\n </span>\n </button>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType, ref } from 'vue';\n import { BentoBaseButtonEvent, BentoBaseButtonPropClass } from './base-button.types';\n import type { ButtonHTMLAttributes } from 'vue/types/jsx';\n import { BentoTypography, BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';\n import { useHasSlot } from '@/composables';\n import { Booleanish } from '@/types';\n\n /**\n * Base button component to use as a base for all the various types of bento buttons. For internal use only.\n *\n * * @example\n * import { BaseButton, BaseButtonEvent } from '@/components/internal/base-button';\n * import YourImportedIcon from @adyen/ui-assets-icons-16/example-icon';\n *\n * export default {\n * components: { BaseButton, YourImportedIcon },\n * props: {\n * text:\n * },\n * template: `\n * <base-button class=\"your-custom-button-styles\" @click=\"onClick\">\n * <template #iconLeft><your-imported-icon></template>\n * Button text\n * <template #iconRight><your-imported-icon></template>\n * </base-button>\n * `,\n * emits: [BentoButtonEvent.CLICK],\n * setup: (prps, { emit }) => {\n * const onClick = value => emit(BaseButtonEvent.CLICK, value);\n *\n * return {\n * onClick,\n * };\n * }\n * }\n */\n export default defineComponent({\n name: 'base-button',\n components: { BentoTypography },\n props: {\n /**\n * Disables button functionality\n */\n disabled: {\n type: Boolean,\n default: false,\n },\n /**\n * Displays button as critical\n */\n critical: {\n type: Boolean,\n default: false,\n },\n /**\n * The default behavior of the button.\n * Possible values are: 'button', 'reset', 'submit'\n */\n type: {\n type: String as PropType<ButtonHTMLAttributes['type']>,\n default: 'button',\n },\n },\n emits: [\n BentoBaseButtonEvent.CLICK,\n BentoBaseButtonEvent.FOCUS,\n BentoBaseButtonEvent.BLUR,\n BentoBaseButtonEvent.KEYDOWN_ESC,\n ],\n setup(props, { slots, emit, attrs }) {\n const ariaAttributes = computed(() => ({\n 'aria-expanded': attrs['aria-expanded']?.toString() as Booleanish,\n }));\n\n const bentoBaseButtonRef = ref(null);\n\n const conditionalClasses = computed(() => ({\n [`b-base-button--${BentoBaseButtonPropClass.DESTRUCTIVE}`]: props.critical,\n [`b-base-button--${BentoBaseButtonPropClass.ICON_ONLY}`]: !slots.default,\n }));\n\n const onClickButton = (e: MouseEvent) => {\n if (!props.disabled) {\n emit(BentoBaseButtonEvent.CLICK, e);\n }\n };\n\n return {\n // Enums\n BentoTypographyElement,\n BentoTypographyVariant,\n\n // Values\n ariaAttributes,\n conditionalClasses,\n\n // Methods\n onClickButton,\n hasSlot: useHasSlot(slots),\n\n // Refs\n bentoBaseButtonRef,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./base-button.scss\" />\n"],"names":["BentoBaseButtonPropClass","BentoBaseButtonPropClass2","BentoBaseButtonEvent","BentoBaseButtonEvent2","_sfc_main","defineComponent","BentoTypography","props","slots","emit","attrs","ariaAttributes","computed","_a","bentoBaseButtonRef","ref","conditionalClasses","BentoTypographyElement","BentoTypographyVariant","e","useHasSlot"],"mappings":";;;;;AAAY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,cAAA,YACAA,EAAA,YAAA,aAFQA,IAAAD,KAAA,CAAA,CAAA,GAKAE,IAAA,kBAAAC,OACRA,EAAA,OAAA,QACAA,EAAA,QAAA,SACAA,EAAA,QAAA,SACAA,EAAA,cAAA,eAJQA,IAAAD,KAAA,CAAA,CAAA;AC4DZ,MAAAE,IAAAC,EAAA;AAAA,EAAA,MAAA;AAAA,EACA,YAAA,EAAA,iBAAAC,EAAA;AAAA,EACA,OAAA;AAAA;AAAA;AAAA;AAAA,IACA,UAAA;AAAA,MAIA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IACA,UAAA;AAAA,MAIA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA,IACA,MAAA;AAAA,MAKA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,EACA;AAAA,EACA,OAAA;AAAA,IACAJ,EAAA;AAAA,IACAA,EAAA;AAAA,IACAA,EAAA;AAAA,IACAA,EAAA;AAAA,EACA;AAAA,EACA,MAAAK,GAAA,EAAA,OAAAC,GAAA,MAAAC,GAAA,OAAAC,EAAA,GAAA;AAEA,UAAAC,IAAAC,EAAA,MAAA;;AAAA;AAAA,QAAA,kBAAAC,IAAAH,EAAA,eAAA,MAAA,gBAAAG,EAAA;AAAA,MACA;AAAA,KAAA,GAGAC,IAAAC,EAAA,IAAA,GAEAC,IAAAJ,EAAA,OAAA;AAAA,MAAA,CAAA,kBAAAZ,EAAA,aAAA,GAAAO,EAAA;AAAA,MACA,CAAA,kBAAAP,EAAA,WAAA,GAAA,CAAAQ,EAAA;AAAA,IACA,EAAA;AASA,WAAA;AAAA;AAAA,MAAA,wBAAAS;AAAA,MAEA,wBAAAC;AAAA;AAAA,MACA,gBAAAP;AAAA,MAGA,oBAAAK;AAAA;AAAA,MACA,eAbA,CAAAG,MAAA;AACA,QAAAZ,EAAA,YACAE,EAAAP,EAAA,OAAAiB,CAAA;AAAA,MACA;AAAA,MAaA,SAAAC,EAAAZ,CAAA;AAAA;AAAA,MACA,oBAAAM;AAAA,IAGA;AAAA,EACA;AAEA,CAAA;;;;;;;;;;;;;;;"}
@@ -1,12 +1,11 @@
1
1
  import { defineComponent as u, computed as a } from "vue";
2
- import { B as d, a as o } from "./button.98f2271d.js";
2
+ import { B as d, a as o } from "./button.f64585fc.js";
3
3
  import { n as p } from "./_plugin-vue2_normalizer.71e2aa87.js";
4
4
  import "../assets/button-actions.css";
5
5
  var c = /* @__PURE__ */ ((t) => (t.BUTTONS_END = "buttons-end", t.FILL_CONTAINER = "fill-container", t.SPACE_BETWEEN = "space-between", t.VERTICAL_STACK = "vertical-stack", t))(c || {}), l = /* @__PURE__ */ ((t) => (t.BUTTONS_START = "buttons-start", t))(l || {});
6
- const i = { ...c, ...l }, b = u({
6
+ const i = { ...c, ...l }, v = u({
7
7
  name: "bento-button-actions",
8
8
  components: { BentoButton: d },
9
- inheritAttrs: !1,
10
9
  props: {
11
10
  /**
12
11
  * List of actions that will be used to render the buttons.
@@ -78,7 +77,7 @@ const i = { ...c, ...l }, b = u({
78
77
  };
79
78
  }
80
79
  });
81
- var v = function() {
80
+ var b = function() {
82
81
  var e = this, s = e._self._c;
83
82
  return e._self._setupProxy, s("div", { staticClass: "b-button-actions" }, [s("div", { staticClass: "b-button-actions__container-wrapper", class: e.conditionalClasses, attrs: { role: "group" } }, e._l(e.reversedActionsList, function(n, r) {
84
83
  return s("div", { key: r, staticClass: "b-button-actions__button-wrapper" }, [s("bento-button", { attrs: { critical: n.critical, disabled: n.disabled, variant: n.variant || e.generateButtonVariantByIndex(r) }, on: { click: n.event }, scopedSlots: e._u([n.icon ? { key: "iconLeft", fn: function() {
@@ -86,20 +85,20 @@ var v = function() {
86
85
  }, proxy: !0 } : null], null, !0) }, [e._v(" " + e._s(n.title) + " ")])], 1);
87
86
  }), 0)]);
88
87
  }, f = [], m = /* @__PURE__ */ p(
89
- b,
90
88
  v,
89
+ b,
91
90
  f,
92
91
  !1,
93
92
  null,
94
- "e7b6b23b",
93
+ "41916e0b",
95
94
  null,
96
95
  null
97
96
  );
98
- const y = m.exports;
97
+ const A = m.exports;
99
98
  export {
100
- y as B,
99
+ A as B,
101
100
  c as a,
102
101
  l as b,
103
102
  i as c
104
103
  };
105
- //# sourceMappingURL=button-actions.c87eaee6.js.map
104
+ //# sourceMappingURL=button-actions.03751d96.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button-actions.03751d96.js","sources":["../../src/components/button/components/button-actions/button-actions.types.ts","../../src/components/button/components/button-actions/button-actions.vue"],"sourcesContent":["import type { VueNodeElement } from '@/types';\nimport type { BentoButtonVariant } from '@/components/button';\n\nexport interface BentoButtonActionObject {\n title: string;\n event: (event: Event) => void;\n icon?: VueNodeElement;\n disabled?: boolean;\n variant?: BentoButtonVariant;\n critical?: boolean;\n}\n\nexport type BentoButtonActionsList = Array<BentoButtonActionObject>;\n\nexport enum BentoButtonActionsLayoutBasic {\n BUTTONS_END = 'buttons-end',\n FILL_CONTAINER = 'fill-container',\n SPACE_BETWEEN = 'space-between',\n VERTICAL_STACK = 'vertical-stack',\n}\n\nexport enum BentoButtonActionsLayoutExtended {\n BUTTONS_START = 'buttons-start',\n}\n\nexport const BentoButtonActionsLayout = { ...BentoButtonActionsLayoutBasic, ...BentoButtonActionsLayoutExtended };\nexport type BentoButtonActionsLayout = BentoButtonActionsLayoutBasic | BentoButtonActionsLayoutExtended;\n","<template>\n <div class=\"b-button-actions\">\n <div class=\"b-button-actions__container-wrapper\" :class=\"conditionalClasses\" role=\"group\">\n <div v-for=\"(button, index) in reversedActionsList\" :key=\"index\" class=\"b-button-actions__button-wrapper\">\n <bento-button\n :critical=\"button.critical\"\n :disabled=\"button.disabled\"\n :variant=\"button.variant || generateButtonVariantByIndex(index)\"\n @click=\"button.event\"\n >\n <template v-if=\"button.icon\" #iconLeft>\n <component :is=\"button.icon\" :svg-title=\"button.title\"></component>\n </template>\n {{ button.title }}\n </bento-button>\n </div>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType } from 'vue';\n import { BentoButtonVariant } from '@/core/components/button/button.types';\n import BentoButton from '../../button.vue';\n import { BentoButtonActionsLayout, BentoButtonActionsList } from './button-actions.types';\n\n export default defineComponent({\n name: 'bento-button-actions',\n components: { BentoButton },\n props: {\n /**\n * List of actions that will be used to render the buttons.\n * First element in the list will be rendered as \"primary\".\n * All elements after the first will be rendered as \"secondary\".\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * `title`: Button's text.\n *\n * `event`: Event triggered when clicking the Button.\n *\n * `icon` (optional): Vue Icon from the library `@adyen/ui-assets-icons-16`.\n *\n * `disabled` (optional): Disables the action.\n *\n * `variant` (optional): Sets button's variant background color.\n *\n * `critical` (optional): Sets button red border adn color.\n *\n * ```\n * [{\n * title: 'Primary',\n * event: () => { ... },\n * icon: FourPeopleIcon\n * }, {\n * title: 'Secondary',\n * event: () => { ... }\n * disabled: true,\n * variant: BentoButtonVariant.PRIMARY,\n * critical: true\n * }]\n * ```\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n required: true,\n },\n\n /**\n * Defines the layout in which the button actions is presented.\n * It can be one of:\n *\n * @values BUTTONS_START\n * @values BUTTONS_END\n * @values FILL_CONTAINER\n * @values SPACE_BETWEEN\n * @values VERTICAL_STACK\n */\n layout: {\n type: String as PropType<BentoButtonActionsLayout>,\n default: BentoButtonActionsLayout.BUTTONS_END,\n validator: (layout: BentoButtonActionsLayout) =>\n Object.values(BentoButtonActionsLayout).includes(layout),\n },\n },\n setup(props) {\n const reversedActionsList = computed(() => props.actions.slice().reverse());\n const generateButtonVariantByIndex = actionIndex => {\n const lastActionIndex = props.actions.length - 1;\n return actionIndex === lastActionIndex ? BentoButtonVariant.PRIMARY : BentoButtonVariant.SECONDARY;\n };\n\n const conditionalClasses = computed(() => ({\n [`b-button-actions--${props.layout}`]: true,\n }));\n\n return {\n // Values\n conditionalClasses,\n reversedActionsList,\n\n // Methods\n generateButtonVariantByIndex,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./button-actions.scss\" />\n"],"names":["BentoButtonActionsLayoutBasic","BentoButtonActionsLayoutBasic2","BentoButtonActionsLayoutExtended","BentoButtonActionsLayoutExtended2","BentoButtonActionsLayout","_sfc_main","defineComponent","BentoButton","layout","props","reversedActionsList","computed","generateButtonVariantByIndex","actionIndex","lastActionIndex","BentoButtonVariant"],"mappings":";;;;AAcY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,cAAA,eACAA,EAAA,iBAAA,kBACAA,EAAA,gBAAA,iBACAA,EAAA,iBAAA,kBAJQA,IAAAD,KAAA,CAAA,CAAA,GAOAE,IAAA,kBAAAC,OACRA,EAAA,gBAAA,iBADQA,IAAAD,KAAA,CAAA,CAAA;AAIL,MAAAE,IAAA,EAAA,GAAAJ,GAAA,GAAAE,EAAA,GCCPG,IAAAC,EAAA;AAAA,EAAA,MAAA;AAAA,EACA,YAAA,EAAA,aAAAC,EAAA;AAAA,EACA,OAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IACA,SAAA;AAAA,MAmCA,MAAA;AAAA,MACA,UAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IACA,QAAA;AAAA,MAYA,MAAA;AAAA,MACA,SAAAH,EAAA;AAAA,MACA,WAAA,CAAAI,MAAA,OAAA,OAAAJ,CAAA,EAAA,SAAAI,CAAA;AAAA,IAEA;AAAA,EACA;AAAA,EACA,MAAAC,GAAA;AAEA,UAAAC,IAAAC,EAAA,MAAAF,EAAA,QAAA,MAAA,EAAA,QAAA,CAAA,GACAG,IAAA,CAAAC,MAAA;AACA,YAAAC,IAAAL,EAAA,QAAA,SAAA;AACA,aAAAI,MAAAC,IAAAC,EAAA,UAAAA,EAAA;AAAA,IAAA;AAOA,WAAA;AAAA;AAAA,MAAA,oBAJAJ,EAAA,OAAA;AAAA,QAAA,CAAA,qBAAAF,EAAA,QAAA,GAAA;AAAA,MACA,EAAA;AAAA,MAKA,qBAAAC;AAAA;AAAA,MACA,8BAAAE;AAAA,IAGA;AAAA,EACA;AAEA,CAAA;;;;;;;;;;;;;;;;;;;"}
@@ -1,14 +1,13 @@
1
1
  import { defineComponent as f, computed as o } from "vue";
2
- import { B as p, c as y, a as m } from "./index.3aedb3dd.js";
3
- import { h as v } from "./hasSlot.dceac207.js";
4
- import { BentoLink as g, BentoLinkVariant as h } from "../link.js";
5
- import { n as S } from "./_plugin-vue2_normalizer.71e2aa87.js";
2
+ import { B as p, a as y, b as m } from "./index.e1fcc9e0.js";
3
+ import { u as v } from "./use-has-slot.068222e6.js";
4
+ import { BentoLink as g, BentoLinkVariant as S } from "../link.js";
5
+ import { n as h } from "./_plugin-vue2_normalizer.71e2aa87.js";
6
6
  import "../assets/button.css";
7
7
  var s = /* @__PURE__ */ ((t) => (t.PRIMARY = "primary", t.SECONDARY = "secondary", t.TERTIARY = "tertiary", t))(s || {}), i = /* @__PURE__ */ ((t) => (t.CONDENSED = "condensed", t.DESTRUCTIVE = "critical", t.DISABLED = "disabled", t.ICON_ONLY = "icon-only", t))(i || {});
8
8
  const C = f({
9
9
  name: "bento-button",
10
10
  components: { BentoTypography: p },
11
- inheritAttrs: !1,
12
11
  props: {
13
12
  /**
14
13
  * Disables button functionality
@@ -69,7 +68,7 @@ const C = f({
69
68
  ...c.value,
70
69
  disabled: t.disabled,
71
70
  type: t.type
72
- } : { ...t.link, disableTypography: !0, variant: h.DEFAULT }
71
+ } : { ...t.link, disableTypography: !0, variant: S.DEFAULT }
73
72
  ), b = o(() => ({
74
73
  [`b-button--${t.variant}${t.critical ? `-${i.DESTRUCTIVE}` : ""}`]: !0
75
74
  })), _ = o(
@@ -102,13 +101,13 @@ var E = function() {
102
101
  return n._self._setupProxy, e(n.componentType, n._b({ tag: "component", staticClass: "b-button", class: n.conditionalClasses, on: { "!click": function(l) {
103
102
  return n.onClickButton.apply(null, arguments);
104
103
  } } }, "component", n.componentProps, !1), [n.hasSlot("iconLeft") ? e("span", { staticClass: "b-button__icon-left", attrs: { "data-testid": "icon-button-left" } }, [n._t("iconLeft")], 2) : n._e(), n.hasSlot("default") ? e("bento-typography", { staticClass: "b-button__label", attrs: { el: n.BentoTypographyElement.SPAN, variant: n.BentoTypographyVariant.BODY, stronger: "" } }, [n._t("default")], 2) : n._e(), n.hasSlot("iconRight") ? e("span", { staticClass: "b-button__icon-right", attrs: { "data-testid": "icon-button-right" } }, [n._t("iconRight")], 2) : n._e()], 1);
105
- }, T = [], D = /* @__PURE__ */ S(
104
+ }, T = [], D = /* @__PURE__ */ h(
106
105
  C,
107
106
  E,
108
107
  T,
109
108
  !1,
110
109
  null,
111
- "cb874f98",
110
+ "9b484955",
112
111
  null,
113
112
  null
114
113
  );
@@ -118,4 +117,4 @@ export {
118
117
  s as a,
119
118
  i as b
120
119
  };
121
- //# sourceMappingURL=button.98f2271d.js.map
120
+ //# sourceMappingURL=button.f64585fc.js.map