@adyen/bento-vue2 1.27.0 → 1.28.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 (563) hide show
  1. package/dist/@types/components.d.ts +4 -0
  2. package/dist/@types/index.d.ts +403 -187
  3. package/dist/accordion.js +3 -101
  4. package/dist/accordion.js.map +1 -1
  5. package/dist/action-bar.js +2 -146
  6. package/dist/action-bar.js.map +1 -1
  7. package/dist/alert.js +5 -116
  8. package/dist/alert.js.map +1 -1
  9. package/dist/assets/{index9.css → accordion-item.css} +1 -1
  10. package/dist/assets/{index11.css → action-bar.css} +1 -1
  11. package/dist/assets/base-modal.css +1 -1
  12. package/dist/assets/button.css +1 -1
  13. package/dist/assets/{index4.css → card.css} +1 -1
  14. package/dist/assets/checkbox-input.css +1 -1
  15. package/dist/assets/{index47.css → dashboard-section.css} +1 -1
  16. package/dist/assets/dashed-underline.css +1 -0
  17. package/dist/assets/{index49.css → data-grid-template.css} +1 -1
  18. package/dist/assets/data-grid.css +1 -0
  19. package/dist/assets/dialog-page.css +1 -1
  20. package/dist/assets/dropdown-default-textbox.css +1 -1
  21. package/dist/assets/dropdown.css +1 -1
  22. package/dist/assets/filter-bar.css +1 -0
  23. package/dist/assets/listbox-option-tag.css +1 -1
  24. package/dist/assets/{index38.css → menu.css} +1 -1
  25. package/dist/assets/{index24.css → modal-fullscreen.css} +1 -1
  26. package/dist/assets/{index33.css → popover.css} +1 -1
  27. package/dist/assets/radio-input.css +1 -1
  28. package/dist/assets/segmented-control.css +1 -0
  29. package/dist/assets/selection-card-group.css +1 -0
  30. package/dist/assets/{index36.css → sidepanel.css} +1 -1
  31. package/dist/assets/status.css +1 -0
  32. package/dist/assets/toggle.css +1 -0
  33. package/dist/assets/tutorial.css +1 -0
  34. package/dist/avatar-image.js +1 -1
  35. package/dist/badge.js +22 -24
  36. package/dist/badge.js.map +1 -1
  37. package/dist/button.js +14 -94
  38. package/dist/button.js.map +1 -1
  39. package/dist/card.js +4 -114
  40. package/dist/card.js.map +1 -1
  41. package/dist/checkbox.js +8 -155
  42. package/dist/checkbox.js.map +1 -1
  43. package/dist/chunks/1-generic-use.CZhwP2Yc.js +5 -0
  44. package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +1 -0
  45. package/dist/chunks/1-generic-use.R6x8PEGA.js +5 -0
  46. package/dist/chunks/1-generic-use.R6x8PEGA.js.map +1 -0
  47. package/dist/chunks/2-generic-use.CNKjB4B7.js +5 -0
  48. package/dist/chunks/2-generic-use.CNKjB4B7.js.map +1 -0
  49. package/dist/chunks/2-generic-use.w0fUhovx.js +5 -0
  50. package/dist/chunks/2-generic-use.w0fUhovx.js.map +1 -0
  51. package/dist/chunks/3-generic-use.BLEzR04g.js +5 -0
  52. package/dist/chunks/3-generic-use.BLEzR04g.js.map +1 -0
  53. package/dist/chunks/3-generic-use.D3NFHgI4.js +5 -0
  54. package/dist/chunks/3-generic-use.D3NFHgI4.js.map +1 -0
  55. package/dist/chunks/4-generic-use.CULEpvgj.js +5 -0
  56. package/dist/chunks/4-generic-use.CULEpvgj.js.map +1 -0
  57. package/dist/chunks/4-generic-use.D82y3n39.js +5 -0
  58. package/dist/chunks/4-generic-use.D82y3n39.js.map +1 -0
  59. package/dist/chunks/_plugin-vue2_normalizer.CeySl7Fu.js +11 -0
  60. package/dist/chunks/_plugin-vue2_normalizer.CeySl7Fu.js.map +1 -0
  61. package/dist/chunks/accordion-item.DmnrjNzw.js +100 -0
  62. package/dist/chunks/accordion-item.DmnrjNzw.js.map +1 -0
  63. package/dist/chunks/action-bar.Bebh6PHI.js +147 -0
  64. package/dist/chunks/action-bar.Bebh6PHI.js.map +1 -0
  65. package/dist/chunks/adding-payment-methods.BJZLPxtM.js +5 -0
  66. package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +1 -0
  67. package/dist/chunks/adding-payment-methods.Dle8zt43.js +5 -0
  68. package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +1 -0
  69. package/dist/chunks/adyen-giving.Ffw_DlJK.js +5 -0
  70. package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +1 -0
  71. package/dist/chunks/adyen-giving.LiKHj_jY.js +5 -0
  72. package/dist/chunks/adyen-giving.LiKHj_jY.js.map +1 -0
  73. package/dist/chunks/alert.CJyTM4Az.js +96 -0
  74. package/dist/chunks/alert.CJyTM4Az.js.map +1 -0
  75. package/dist/chunks/{aria-label.ac9651a5.js → aria-label.CaUURpnB.js} +1 -1
  76. package/dist/chunks/{aria-label.ac9651a5.js.map → aria-label.CaUURpnB.js.map} +1 -1
  77. package/dist/chunks/{index.ccc7e8d7.js → avatar-image.DhlR-7Yg.js} +22 -24
  78. package/dist/chunks/avatar-image.DhlR-7Yg.js.map +1 -0
  79. package/dist/chunks/base-button.DER7_IsF.js +86 -0
  80. package/dist/chunks/{base-button.852204dc.js.map → base-button.DER7_IsF.js.map} +1 -1
  81. package/dist/chunks/{base-modal.4fb7528b.js → base-modal.C5I7bR0d.js} +42 -46
  82. package/dist/chunks/{base-modal.4fb7528b.js.map → base-modal.C5I7bR0d.js.map} +1 -1
  83. package/dist/chunks/{base-modal.keys.b08a6bdf.js → base-modal.keys.C2PQXcE2.js} +1 -1
  84. package/dist/chunks/{base-modal.keys.b08a6bdf.js.map → base-modal.keys.C2PQXcE2.js.map} +1 -1
  85. package/dist/chunks/{button-actions-with-menu.bf968959.js → button-actions-with-menu.f3yuLK-L.js} +25 -27
  86. package/dist/chunks/{button-actions-with-menu.bf968959.js.map → button-actions-with-menu.f3yuLK-L.js.map} +1 -1
  87. package/dist/chunks/{button-actions.87e589e3.js → button-actions.Bg9ey0p6.js} +29 -31
  88. package/dist/chunks/{button-actions.87e589e3.js.map → button-actions.Bg9ey0p6.js.map} +1 -1
  89. package/dist/chunks/{button.cb90b55c.js → button.DhAUh5JA.js} +22 -24
  90. package/dist/chunks/{button.cb90b55c.js.map → button.DhAUh5JA.js.map} +1 -1
  91. package/dist/chunks/{calendar.f02e0a5a.js → calendar.B69z8gjb.js} +287 -332
  92. package/dist/chunks/{calendar.f02e0a5a.js.map → calendar.B69z8gjb.js.map} +1 -1
  93. package/dist/chunks/card.70Xvba2C.js +115 -0
  94. package/dist/chunks/card.70Xvba2C.js.map +1 -0
  95. package/dist/chunks/checkbox-group.B-KdeRXC.js +152 -0
  96. package/dist/chunks/checkbox-group.B-KdeRXC.js.map +1 -0
  97. package/dist/chunks/{checkbox-input.1c3cc8ed.js → checkbox-input.DwDwI2BD.js} +27 -30
  98. package/dist/chunks/{checkbox-input.1c3cc8ed.js.map → checkbox-input.DwDwI2BD.js.map} +1 -1
  99. package/dist/chunks/{checkbox.9f9c978a.js → checkbox.Bi2RDBEZ.js} +21 -23
  100. package/dist/chunks/{checkbox.9f9c978a.js.map → checkbox.Bi2RDBEZ.js.map} +1 -1
  101. package/dist/chunks/checkmark-circle-fill.DVl6QSwm.js +24 -0
  102. package/dist/chunks/{checkmark-circle-fill.345311d2.js.map → checkmark-circle-fill.DVl6QSwm.js.map} +1 -1
  103. package/dist/chunks/{checkmark-small.520f01b1.js → checkmark-small.BtF8b2gE.js} +6 -8
  104. package/dist/chunks/{checkmark-small.520f01b1.js.map → checkmark-small.BtF8b2gE.js.map} +1 -1
  105. package/dist/chunks/{chevron-left.5edf02ac.js → chevron-left.CtnrsqUy.js} +13 -17
  106. package/dist/chunks/{chevron-left.5edf02ac.js.map → chevron-left.CtnrsqUy.js.map} +1 -1
  107. package/dist/chunks/{chevron-up.81185563.js → chevron-up.B2uWhZf7.js} +14 -18
  108. package/dist/chunks/{chevron-up.81185563.js.map → chevron-up.B2uWhZf7.js.map} +1 -1
  109. package/dist/chunks/click-outside.DABh6NLr.js +23 -0
  110. package/dist/chunks/click-outside.DABh6NLr.js.map +1 -0
  111. package/dist/chunks/code-snippet.C4IbjAhH.js +968 -0
  112. package/dist/chunks/code-snippet.C4IbjAhH.js.map +1 -0
  113. package/dist/chunks/{controls-group.121a307d.js → controls-group.cSRFiEVO.js} +17 -19
  114. package/dist/chunks/{controls-group.121a307d.js.map → controls-group.cSRFiEVO.js.map} +1 -1
  115. package/dist/chunks/{copy.6808b2dc.js → copy.BtFWFG3q.js} +15 -19
  116. package/dist/chunks/{copy.6808b2dc.js.map → copy.BtFWFG3q.js.map} +1 -1
  117. package/dist/chunks/country.KayLT0zy.js +93 -0
  118. package/dist/chunks/country.KayLT0zy.js.map +1 -0
  119. package/dist/chunks/{country.types.002caff2.js → country.types.Br0AjxGy.js} +5 -5
  120. package/dist/chunks/{country.types.002caff2.js.map → country.types.Br0AjxGy.js.map} +1 -1
  121. package/dist/chunks/{cross-circle-fill.27580c4b.js → cross-circle-fill.CnYH4R_h.js} +7 -9
  122. package/dist/chunks/{cross-circle-fill.27580c4b.js.map → cross-circle-fill.CnYH4R_h.js.map} +1 -1
  123. package/dist/chunks/{cross-small.e851e0de.js → cross-small.BLUwtRB-.js} +9 -11
  124. package/dist/chunks/{cross-small.e851e0de.js.map → cross-small.BLUwtRB-.js.map} +1 -1
  125. package/dist/chunks/{cross.04678d81.js → cross.CsUPDmaA.js} +9 -11
  126. package/dist/chunks/{cross.04678d81.js.map → cross.CsUPDmaA.js.map} +1 -1
  127. package/dist/chunks/currency.H7n7RQiX.js +113 -0
  128. package/dist/chunks/currency.H7n7RQiX.js.map +1 -0
  129. package/dist/chunks/dashboard-section.BcH-_en7.js +105 -0
  130. package/dist/chunks/dashboard-section.BcH-_en7.js.map +1 -0
  131. package/dist/chunks/dashed-underline.ChUlcFJR.js +59 -0
  132. package/dist/chunks/dashed-underline.ChUlcFJR.js.map +1 -0
  133. package/dist/chunks/data-grid-template.DqG5bNeD.js +66 -0
  134. package/dist/chunks/data-grid-template.DqG5bNeD.js.map +1 -0
  135. package/dist/chunks/{data-grid-template.keys.a819a991.js → data-grid-template.keys.2_AkxuNT.js} +1 -1
  136. package/dist/chunks/{data-grid-template.keys.a819a991.js.map → data-grid-template.keys.2_AkxuNT.js.map} +1 -1
  137. package/dist/chunks/data-grid.CvHAdmvs.js +2022 -0
  138. package/dist/chunks/data-grid.CvHAdmvs.js.map +1 -0
  139. package/dist/chunks/{date-input.9186a0bf.js → date-input.BqBdAO1E.js} +1 -1
  140. package/dist/chunks/{date-input.9186a0bf.js.map → date-input.BqBdAO1E.js.map} +1 -1
  141. package/dist/chunks/date-picker.ByP2Wpo0.js +196 -0
  142. package/dist/chunks/date-picker.ByP2Wpo0.js.map +1 -0
  143. package/dist/chunks/{index.854d6498.js → date-range-picker.DrnklTJ-.js} +113 -117
  144. package/dist/chunks/date-range-picker.DrnklTJ-.js.map +1 -0
  145. package/dist/chunks/{index.614a5138.js → date.DKjxxR6P.js} +44 -51
  146. package/dist/chunks/date.DKjxxR6P.js.map +1 -0
  147. package/dist/chunks/{debounce.b5ef6acf.js → debounce.DUTu11PS.js} +1 -1
  148. package/dist/chunks/{debounce.b5ef6acf.js.map → debounce.DUTu11PS.js.map} +1 -1
  149. package/dist/chunks/{dialog-page.7fd7d006.js → dialog-page.DAh0M4mT.js} +20 -24
  150. package/dist/chunks/{dialog-page.7fd7d006.js.map → dialog-page.DAh0M4mT.js.map} +1 -1
  151. package/dist/chunks/divider.BZfeYmB9.js +30 -0
  152. package/dist/chunks/divider.BZfeYmB9.js.map +1 -0
  153. package/dist/chunks/{dropdown-default-textbox.d0f17d96.js → dropdown-default-textbox.CKOkl_Qa.js} +30 -34
  154. package/dist/chunks/{dropdown-default-textbox.d0f17d96.js.map → dropdown-default-textbox.CKOkl_Qa.js.map} +1 -1
  155. package/dist/chunks/dropdown-tag.DCMKQy-E.js +214 -0
  156. package/dist/chunks/dropdown-tag.DCMKQy-E.js.map +1 -0
  157. package/dist/chunks/{dropdown.a8037bca.js → dropdown.yhhQCKve.js} +230 -240
  158. package/dist/chunks/dropdown.yhhQCKve.js.map +1 -0
  159. package/dist/chunks/empty-state.BqVOj4v1.js +151 -0
  160. package/dist/chunks/empty-state.BqVOj4v1.js.map +1 -0
  161. package/dist/chunks/error-message.BSxUoE3_.js +107 -0
  162. package/dist/chunks/{error-message.bdcc1020.js.map → error-message.BSxUoE3_.js.map} +1 -1
  163. package/dist/chunks/events.CMzGybJJ.js +47 -0
  164. package/dist/chunks/{events.f14a214b.js.map → events.CMzGybJJ.js.map} +1 -1
  165. package/dist/chunks/filter-bar.AhsOPMZ1.js +2119 -0
  166. package/dist/chunks/filter-bar.AhsOPMZ1.js.map +1 -0
  167. package/dist/chunks/{fixed-scroller.82ef6187.js → fixed-scroller.Bq1AgPnw.js} +18 -20
  168. package/dist/chunks/{fixed-scroller.82ef6187.js.map → fixed-scroller.Bq1AgPnw.js.map} +1 -1
  169. package/dist/chunks/{index.1deef79e.js → focus-trap.DSkLNO_i.js} +35 -37
  170. package/dist/chunks/focus-trap.DSkLNO_i.js.map +1 -0
  171. package/dist/chunks/{footer-actions.58d14a16.js → footer-actions.DqMRmlV_.js} +11 -13
  172. package/dist/chunks/{footer-actions.58d14a16.js.map → footer-actions.DqMRmlV_.js.map} +1 -1
  173. package/dist/chunks/form-layout-title.BzNU0B72.js +187 -0
  174. package/dist/chunks/form-layout-title.BzNU0B72.js.map +1 -0
  175. package/dist/chunks/{form-layout.types.a7a1438d.js → form-layout.types.D3EKzbE7.js} +1 -1
  176. package/dist/chunks/{form-layout.types.a7a1438d.js.map → form-layout.types.D3EKzbE7.js.map} +1 -1
  177. package/dist/chunks/{get-slot-text.99c3d860.js → get-slot-text.Cgn-E48s.js} +2 -2
  178. package/dist/chunks/{get-slot-text.99c3d860.js.map → get-slot-text.Cgn-E48s.js.map} +1 -1
  179. package/dist/chunks/{grid-layout.e0025286.js → grid-layout.HvTAa4to.js} +11 -13
  180. package/dist/chunks/{grid-layout.e0025286.js.map → grid-layout.HvTAa4to.js.map} +1 -1
  181. package/dist/chunks/header.DmKHCmXh.js +245 -0
  182. package/dist/chunks/header.DmKHCmXh.js.map +1 -0
  183. package/dist/chunks/{i18n.eb5b985b.js → i18n.BQkEbtPM.js} +2 -2
  184. package/dist/chunks/{i18n.eb5b985b.js.map → i18n.BQkEbtPM.js.map} +1 -1
  185. package/dist/chunks/image.B3uqhFjl.js +82 -0
  186. package/dist/chunks/image.B3uqhFjl.js.map +1 -0
  187. package/dist/chunks/{index.fdf12170.js → index.B_EJflcs.js} +2 -2
  188. package/dist/chunks/{index.fdf12170.js.map → index.B_EJflcs.js.map} +1 -1
  189. package/dist/chunks/{index.f55fdc32.js → index.B_UZQ6qF.js} +209 -243
  190. package/dist/chunks/{index.f55fdc32.js.map → index.B_UZQ6qF.js.map} +1 -1
  191. package/dist/chunks/{index.4c062058.js → index.Cl4_42j5.js} +1 -1
  192. package/dist/chunks/{index.4c062058.js.map → index.Cl4_42j5.js.map} +1 -1
  193. package/dist/chunks/{index.561786f6.js → index.OCPp3NST.js} +3 -3
  194. package/dist/chunks/{index.561786f6.js.map → index.OCPp3NST.js.map} +1 -1
  195. package/dist/chunks/{index.d80206ed.js → index.Z84QE0E2.js} +2 -2
  196. package/dist/chunks/{index.d80206ed.js.map → index.Z84QE0E2.js.map} +1 -1
  197. package/dist/chunks/{index.86453263.js → index.xqFSZOAb.js} +2 -2
  198. package/dist/chunks/{index.86453263.js.map → index.xqFSZOAb.js.map} +1 -1
  199. package/dist/chunks/info-icon.CLguYHRt.js +41 -0
  200. package/dist/chunks/info-icon.CLguYHRt.js.map +1 -0
  201. package/dist/chunks/{info.8b6328aa.js → info.CyeBsLgt.js} +9 -11
  202. package/dist/chunks/{info.8b6328aa.js.map → info.CyeBsLgt.js.map} +1 -1
  203. package/dist/chunks/input-field.BnlEPPYr.js +218 -0
  204. package/dist/chunks/input-field.BnlEPPYr.js.map +1 -0
  205. package/dist/chunks/internal-error.BLZodVBE.js +5 -0
  206. package/dist/chunks/internal-error.BLZodVBE.js.map +1 -0
  207. package/dist/chunks/internal-error.BmrwJFpR.js +5 -0
  208. package/dist/chunks/internal-error.BmrwJFpR.js.map +1 -0
  209. package/dist/chunks/{keyboard-navigation.bbc3d15c.js → keyboard-navigation.Clz1jOaA.js} +2 -2
  210. package/dist/chunks/{keyboard-navigation.bbc3d15c.js.map → keyboard-navigation.Clz1jOaA.js.map} +1 -1
  211. package/dist/chunks/{index.bd1d28d0.js → link.DJ1A53gF.js} +20 -24
  212. package/dist/chunks/link.DJ1A53gF.js.map +1 -0
  213. package/dist/chunks/listbox-option-tag.BDjsYOE1.js +75 -0
  214. package/dist/chunks/listbox-option-tag.BDjsYOE1.js.map +1 -0
  215. package/dist/chunks/{loading-button.692dbdc8.js → loading-button.CoF1IhEU.js} +32 -34
  216. package/dist/chunks/{loading-button.692dbdc8.js.map → loading-button.CoF1IhEU.js.map} +1 -1
  217. package/dist/chunks/loading-indicator.DXc7I1Lm.js +48 -0
  218. package/dist/chunks/loading-indicator.DXc7I1Lm.js.map +1 -0
  219. package/dist/chunks/{index.a48e7f99.js → menu.2TwUMlA9.js} +82 -94
  220. package/dist/chunks/menu.2TwUMlA9.js.map +1 -0
  221. package/dist/chunks/modal-fullscreen.BB_8EMNo.js +196 -0
  222. package/dist/chunks/modal-fullscreen.BB_8EMNo.js.map +1 -0
  223. package/dist/chunks/{modal-fullscreen.keys.b9f31632.js → modal-fullscreen.keys.CMba3hYp.js} +1 -1
  224. package/dist/chunks/{modal-fullscreen.keys.b9f31632.js.map → modal-fullscreen.keys.CMba3hYp.js.map} +1 -1
  225. package/dist/chunks/modal.DLwvcaRx.js +439 -0
  226. package/dist/chunks/modal.DLwvcaRx.js.map +1 -0
  227. package/dist/chunks/no-results-found.Bg_ZcEid.js +5 -0
  228. package/dist/chunks/no-results-found.Bg_ZcEid.js.map +1 -0
  229. package/dist/chunks/no-results-found.BqvYsBR6.js +5 -0
  230. package/dist/chunks/no-results-found.BqvYsBR6.js.map +1 -0
  231. package/dist/chunks/notifications-cleared.BMZk37uf.js +5 -0
  232. package/dist/chunks/notifications-cleared.BMZk37uf.js.map +1 -0
  233. package/dist/chunks/notifications-cleared.C7W9ZXY7.js +5 -0
  234. package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +1 -0
  235. package/dist/chunks/{on-click-outside.3e0c3e2a.js → on-click-outside.CcNG5w7_.js} +1 -1
  236. package/dist/chunks/{on-click-outside.3e0c3e2a.js.map → on-click-outside.CcNG5w7_.js.map} +1 -1
  237. package/dist/chunks/page-not-found.COJLPVaU.js +5 -0
  238. package/dist/chunks/page-not-found.COJLPVaU.js.map +1 -0
  239. package/dist/chunks/page-not-found.DWW6W-PZ.js +5 -0
  240. package/dist/chunks/page-not-found.DWW6W-PZ.js.map +1 -0
  241. package/dist/chunks/pagination.BXjbVe4Z.js +494 -0
  242. package/dist/chunks/pagination.BXjbVe4Z.js.map +1 -0
  243. package/dist/chunks/{payment-method.c55dd352.js → payment-method.D9Qx-s4V.js} +19 -21
  244. package/dist/chunks/{payment-method.c55dd352.js.map → payment-method.D9Qx-s4V.js.map} +1 -1
  245. package/dist/chunks/payment-method.types.CJKfZQN5.js +5 -0
  246. package/dist/chunks/payment-method.types.CJKfZQN5.js.map +1 -0
  247. package/dist/chunks/planned-maintenance.C61sWB9h.js +5 -0
  248. package/dist/chunks/planned-maintenance.C61sWB9h.js.map +1 -0
  249. package/dist/chunks/planned-maintenance.jmWYTdet.js +5 -0
  250. package/dist/chunks/planned-maintenance.jmWYTdet.js.map +1 -0
  251. package/dist/chunks/{index.0a30d358.js → popover.B8YH92W8.js} +31 -37
  252. package/dist/chunks/popover.B8YH92W8.js.map +1 -0
  253. package/dist/chunks/{index.c8621e8e.js → popper-container.Bt02N3o1.js} +12 -15
  254. package/dist/chunks/popper-container.Bt02N3o1.js.map +1 -0
  255. package/dist/chunks/radio-group.CPbBFTzB.js +211 -0
  256. package/dist/chunks/radio-group.CPbBFTzB.js.map +1 -0
  257. package/dist/chunks/{radio-input.c6550a9c.js → radio-input.BQcC0INR.js} +17 -19
  258. package/dist/chunks/radio-input.BQcC0INR.js.map +1 -0
  259. package/dist/chunks/referrals.BvtT-kQS.js +5 -0
  260. package/dist/chunks/referrals.BvtT-kQS.js.map +1 -0
  261. package/dist/chunks/referrals.aX8WZigH.js +5 -0
  262. package/dist/chunks/referrals.aX8WZigH.js.map +1 -0
  263. package/dist/chunks/{refresh.71a03998.js → refresh.BKI9WwKh.js} +7 -9
  264. package/dist/chunks/{refresh.71a03998.js.map → refresh.BKI9WwKh.js.map} +1 -1
  265. package/dist/chunks/{resize.a041304d.js → resize.Bqks3WUm.js} +1 -1
  266. package/dist/chunks/{resize.a041304d.js.map → resize.Bqks3WUm.js.map} +1 -1
  267. package/dist/chunks/search-bar.CsAgO-t5.js +89 -0
  268. package/dist/chunks/search-bar.CsAgO-t5.js.map +1 -0
  269. package/dist/chunks/{search.471270fe.js → search.CBKhp7zB.js} +10 -12
  270. package/dist/chunks/{search.471270fe.js.map → search.CBKhp7zB.js.map} +1 -1
  271. package/dist/chunks/secondary-nav.CNgpPxUU.js +97 -0
  272. package/dist/chunks/secondary-nav.CNgpPxUU.js.map +1 -0
  273. package/dist/chunks/segmented-control.DGjIC7Ab.js +111 -0
  274. package/dist/chunks/segmented-control.DGjIC7Ab.js.map +1 -0
  275. package/dist/chunks/segmented-control.types.BHRLV8KU.js +5 -0
  276. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -0
  277. package/dist/chunks/selection-card-group.DlOs8BkR.js +247 -0
  278. package/dist/chunks/selection-card-group.DlOs8BkR.js.map +1 -0
  279. package/dist/chunks/sidepanel.BBjm2QvZ.js +187 -0
  280. package/dist/chunks/sidepanel.BBjm2QvZ.js.map +1 -0
  281. package/dist/chunks/{sidepanel.keys.1ed8a57c.js → sidepanel.keys.R0DKQuYx.js} +1 -1
  282. package/dist/chunks/{sidepanel.keys.1ed8a57c.js.map → sidepanel.keys.R0DKQuYx.js.map} +1 -1
  283. package/dist/chunks/status.types.BhbOYpZx.js +36 -0
  284. package/dist/chunks/status.types.BhbOYpZx.js.map +1 -0
  285. package/dist/chunks/step.DY8Txb6a.js +234 -0
  286. package/dist/chunks/step.DY8Txb6a.js.map +1 -0
  287. package/dist/chunks/{index.3c69be27.js → structured-list-item.C9NTVDvT.js} +18 -22
  288. package/dist/chunks/structured-list-item.C9NTVDvT.js.map +1 -0
  289. package/dist/chunks/success.DhioLvPD.js +5 -0
  290. package/dist/chunks/success.DhioLvPD.js.map +1 -0
  291. package/dist/chunks/success.nNwxJRBS.js +5 -0
  292. package/dist/chunks/success.nNwxJRBS.js.map +1 -0
  293. package/dist/chunks/summary-grid-item-custom.CJpDnoPw.js +573 -0
  294. package/dist/chunks/summary-grid-item-custom.CJpDnoPw.js.map +1 -0
  295. package/dist/chunks/{summary-grid.keys.1d1028c2.js → summary-grid.keys.BBbFrFGF.js} +1 -1
  296. package/dist/chunks/{summary-grid.keys.1d1028c2.js.map → summary-grid.keys.BBbFrFGF.js.map} +1 -1
  297. package/dist/chunks/tabs.CE65f3E_.js +140 -0
  298. package/dist/chunks/tabs.CE65f3E_.js.map +1 -0
  299. package/dist/chunks/{tabs.keys.358742f2.js → tabs.keys.Bc2pSKRw.js} +1 -1
  300. package/dist/chunks/{tabs.keys.358742f2.js.map → tabs.keys.Bc2pSKRw.js.map} +1 -1
  301. package/dist/chunks/tag.bhKrZHTU.js +64 -0
  302. package/dist/chunks/tag.bhKrZHTU.js.map +1 -0
  303. package/dist/chunks/{teleport.84b0f20b.js → teleport.CQKBJZU5.js} +14 -16
  304. package/dist/chunks/{teleport.84b0f20b.js.map → teleport.CQKBJZU5.js.map} +1 -1
  305. package/dist/chunks/textarea.CcKbtQBs.js +208 -0
  306. package/dist/chunks/textarea.CcKbtQBs.js.map +1 -0
  307. package/dist/chunks/timeline-item.ScTrUBKC.js +364 -0
  308. package/dist/chunks/timeline-item.ScTrUBKC.js.map +1 -0
  309. package/dist/chunks/toast.0EYDj8o-.js +165 -0
  310. package/dist/chunks/toast.0EYDj8o-.js.map +1 -0
  311. package/dist/chunks/toggle-button.2U-vbQhk.js +83 -0
  312. package/dist/chunks/toggle-button.2U-vbQhk.js.map +1 -0
  313. package/dist/chunks/toggle.CiOVTWlk.js +121 -0
  314. package/dist/chunks/toggle.CiOVTWlk.js.map +1 -0
  315. package/dist/chunks/{tooltip.efddb5f3.js → tooltip.DR8rbIYw.js} +29 -32
  316. package/dist/chunks/tooltip.DR8rbIYw.js.map +1 -0
  317. package/dist/chunks/tutorial.DMm12L0S.js +335 -0
  318. package/dist/chunks/tutorial.DMm12L0S.js.map +1 -0
  319. package/dist/chunks/{index.e29a6907.js → typography.Bjtu3Gca.js} +30 -32
  320. package/dist/chunks/typography.Bjtu3Gca.js.map +1 -0
  321. package/dist/chunks/{unique-id.a2a2b458.js → unique-id.XFfoKuc2.js} +14 -20
  322. package/dist/chunks/{unique-id.a2a2b458.js.map → unique-id.XFfoKuc2.js.map} +1 -1
  323. package/dist/chunks/upload-files.5wQwbfkp.js +5 -0
  324. package/dist/chunks/upload-files.5wQwbfkp.js.map +1 -0
  325. package/dist/chunks/upload-files.jTQY6y2X.js +5 -0
  326. package/dist/chunks/upload-files.jTQY6y2X.js.map +1 -0
  327. package/dist/chunks/{use-bento-toast-controller.5dac1f3c.js → use-bento-toast-controller.BifdE4ak.js} +4 -4
  328. package/dist/chunks/{use-bento-toast-controller.5dac1f3c.js.map → use-bento-toast-controller.BifdE4ak.js.map} +1 -1
  329. package/dist/chunks/{use-cached-selected-values.98a9ed01.js → use-cached-selected-values.CVLzxvTi.js} +217 -237
  330. package/dist/chunks/{use-cached-selected-values.98a9ed01.js.map → use-cached-selected-values.CVLzxvTi.js.map} +1 -1
  331. package/dist/chunks/{use-click-outside.941d1600.js → use-click-outside.DbjR7Lh4.js} +2 -2
  332. package/dist/chunks/{use-click-outside.941d1600.js.map → use-click-outside.DbjR7Lh4.js.map} +1 -1
  333. package/dist/chunks/{use-country-items.6b7985bf.js → use-country-items.C25TI6tp.js} +4 -4
  334. package/dist/chunks/{use-country-items.6b7985bf.js.map → use-country-items.C25TI6tp.js.map} +1 -1
  335. package/dist/chunks/{use-default-slot-validator.b9bff4c6.js → use-default-slot-validator.BDn0wkYP.js} +2 -2
  336. package/dist/chunks/{use-default-slot-validator.b9bff4c6.js.map → use-default-slot-validator.BDn0wkYP.js.map} +1 -1
  337. package/dist/chunks/{use-expandable-content-height.62fc84e5.js → use-expandable-content-height.GkjjbmPy.js} +1 -1
  338. package/dist/chunks/{use-expandable-content-height.62fc84e5.js.map → use-expandable-content-height.GkjjbmPy.js.map} +1 -1
  339. package/dist/chunks/{use-form-layout-loading.d03e5d48.js → use-form-layout-loading.D3lALhtC.js} +2 -2
  340. package/dist/chunks/{use-form-layout-loading.d03e5d48.js.map → use-form-layout-loading.D3lALhtC.js.map} +1 -1
  341. package/dist/chunks/use-has-slot.C9lQZ6nz.js +6 -0
  342. package/dist/chunks/{use-has-slot.fbeb19ec.js.map → use-has-slot.C9lQZ6nz.js.map} +1 -1
  343. package/dist/chunks/warning-filled.CLKRzGMT.js +24 -0
  344. package/dist/chunks/warning-filled.CLKRzGMT.js.map +1 -0
  345. package/dist/chunks/wrong-environment.BOsyKdRI.js +5 -0
  346. package/dist/chunks/wrong-environment.BOsyKdRI.js.map +1 -0
  347. package/dist/chunks/wrong-environment.BiHTPtbJ.js +5 -0
  348. package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +1 -0
  349. package/dist/click-outside.js +2 -20
  350. package/dist/click-outside.js.map +1 -1
  351. package/dist/code-snippet.js +5 -2052
  352. package/dist/code-snippet.js.map +1 -1
  353. package/dist/country.js +8 -97
  354. package/dist/country.js.map +1 -1
  355. package/dist/currency.js +3 -112
  356. package/dist/currency.js.map +1 -1
  357. package/dist/dashboard-template.js +3 -106
  358. package/dist/dashboard-template.js.map +1 -1
  359. package/dist/dashed-underline.js +5 -0
  360. package/dist/dashed-underline.js.map +1 -0
  361. package/dist/data-grid-template.js +2 -65
  362. package/dist/data-grid-template.js.map +1 -1
  363. package/dist/data-grid.js +8 -1986
  364. package/dist/data-grid.js.map +1 -1
  365. package/dist/date-picker.js +5 -197
  366. package/dist/date-picker.js.map +1 -1
  367. package/dist/date-range-picker.js +2 -2
  368. package/dist/date.js +1 -1
  369. package/dist/divider.js +1 -1
  370. package/dist/dropdown.js +12 -227
  371. package/dist/dropdown.js.map +1 -1
  372. package/dist/empty-state.js +5 -143
  373. package/dist/empty-state.js.map +1 -1
  374. package/dist/filter-bar.js +5 -2156
  375. package/dist/filter-bar.js.map +1 -1
  376. package/dist/focus-trap.js +1 -1
  377. package/dist/form-layout.js +5 -192
  378. package/dist/form-layout.js.map +1 -1
  379. package/dist/header.js +2 -246
  380. package/dist/header.js.map +1 -1
  381. package/dist/image.js +4 -81
  382. package/dist/image.js.map +1 -1
  383. package/dist/index.js +270 -266
  384. package/dist/index.js.map +1 -1
  385. package/dist/info-icon.js +2 -40
  386. package/dist/info-icon.js.map +1 -1
  387. package/dist/input-field.js +7 -217
  388. package/dist/input-field.js.map +1 -1
  389. package/dist/internal.js +15 -15
  390. package/dist/link.js +1 -1
  391. package/dist/loading-indicator.js +3 -47
  392. package/dist/loading-indicator.js.map +1 -1
  393. package/dist/menu.js +1 -1
  394. package/dist/modal-fullscreen.js +3 -197
  395. package/dist/modal-fullscreen.js.map +1 -1
  396. package/dist/modal.js +11 -451
  397. package/dist/modal.js.map +1 -1
  398. package/dist/pagination.js +2 -507
  399. package/dist/pagination.js.map +1 -1
  400. package/dist/payment-method.js +4 -4
  401. package/dist/payment-method.js.map +1 -1
  402. package/dist/popover.js +1 -1
  403. package/dist/popper-container.js +1 -1
  404. package/dist/radio-group.js +6 -213
  405. package/dist/radio-group.js.map +1 -1
  406. package/dist/search-bar.js +6 -90
  407. package/dist/search-bar.js.map +1 -1
  408. package/dist/secondary-nav.js +2 -100
  409. package/dist/secondary-nav.js.map +1 -1
  410. package/dist/segmented-control.js +4 -214
  411. package/dist/segmented-control.js.map +1 -1
  412. package/dist/selection-card.js +4 -248
  413. package/dist/selection-card.js.map +1 -1
  414. package/dist/sidepanel.js +4 -189
  415. package/dist/sidepanel.js.map +1 -1
  416. package/dist/status.js +3 -40
  417. package/dist/status.js.map +1 -1
  418. package/dist/stepper.js +5 -237
  419. package/dist/stepper.js.map +1 -1
  420. package/dist/structured-list.js +1 -1
  421. package/dist/summary-grid.js +9 -584
  422. package/dist/summary-grid.js.map +1 -1
  423. package/dist/tabs.js +3 -141
  424. package/dist/tabs.js.map +1 -1
  425. package/dist/tag.js +3 -63
  426. package/dist/tag.js.map +1 -1
  427. package/dist/textarea.js +2 -209
  428. package/dist/textarea.js.map +1 -1
  429. package/dist/timeline.js +7 -367
  430. package/dist/timeline.js.map +1 -1
  431. package/dist/toast.js +2 -168
  432. package/dist/toast.js.map +1 -1
  433. package/dist/toggle.js +4 -120
  434. package/dist/toggle.js.map +1 -1
  435. package/dist/tutorial.js +2 -340
  436. package/dist/tutorial.js.map +1 -1
  437. package/dist/typography.js +1 -1
  438. package/dist/web-types.json +308 -194
  439. package/package.json +5 -7
  440. package/dist/assets/index15.css +0 -1
  441. package/dist/assets/index32.css +0 -1
  442. package/dist/assets/index34.css +0 -1
  443. package/dist/assets/index35.css +0 -1
  444. package/dist/assets/index45.css +0 -1
  445. package/dist/assets/index48.css +0 -1
  446. package/dist/assets/index6.css +0 -1
  447. package/dist/chunks/1-generic-use.3ea646cd.js +0 -5
  448. package/dist/chunks/1-generic-use.3ea646cd.js.map +0 -1
  449. package/dist/chunks/1-generic-use.ccca5813.js +0 -5
  450. package/dist/chunks/1-generic-use.ccca5813.js.map +0 -1
  451. package/dist/chunks/2-generic-use.443db127.js +0 -5
  452. package/dist/chunks/2-generic-use.443db127.js.map +0 -1
  453. package/dist/chunks/2-generic-use.d69d7c08.js +0 -5
  454. package/dist/chunks/2-generic-use.d69d7c08.js.map +0 -1
  455. package/dist/chunks/3-generic-use.9f74667f.js +0 -5
  456. package/dist/chunks/3-generic-use.9f74667f.js.map +0 -1
  457. package/dist/chunks/3-generic-use.fe7ae2ce.js +0 -5
  458. package/dist/chunks/3-generic-use.fe7ae2ce.js.map +0 -1
  459. package/dist/chunks/4-generic-use.0356f4a1.js +0 -5
  460. package/dist/chunks/4-generic-use.0356f4a1.js.map +0 -1
  461. package/dist/chunks/4-generic-use.cd04bad0.js +0 -5
  462. package/dist/chunks/4-generic-use.cd04bad0.js.map +0 -1
  463. package/dist/chunks/_plugin-vue2_normalizer.71e2aa87.js +0 -33
  464. package/dist/chunks/_plugin-vue2_normalizer.71e2aa87.js.map +0 -1
  465. package/dist/chunks/adding-payment-methods.d570e03e.js +0 -5
  466. package/dist/chunks/adding-payment-methods.d570e03e.js.map +0 -1
  467. package/dist/chunks/adding-payment-methods.e419d6c0.js +0 -5
  468. package/dist/chunks/adding-payment-methods.e419d6c0.js.map +0 -1
  469. package/dist/chunks/adyen-giving.480913b5.js +0 -5
  470. package/dist/chunks/adyen-giving.480913b5.js.map +0 -1
  471. package/dist/chunks/adyen-giving.54ed984c.js +0 -5
  472. package/dist/chunks/adyen-giving.54ed984c.js.map +0 -1
  473. package/dist/chunks/base-button.852204dc.js +0 -88
  474. package/dist/chunks/checkmark-circle-fill.345311d2.js +0 -26
  475. package/dist/chunks/dropdown.a8037bca.js.map +0 -1
  476. package/dist/chunks/error-message.bdcc1020.js +0 -111
  477. package/dist/chunks/events.f14a214b.js +0 -50
  478. package/dist/chunks/index.0a30d358.js.map +0 -1
  479. package/dist/chunks/index.1deef79e.js.map +0 -1
  480. package/dist/chunks/index.3c69be27.js.map +0 -1
  481. package/dist/chunks/index.614a5138.js.map +0 -1
  482. package/dist/chunks/index.854d6498.js.map +0 -1
  483. package/dist/chunks/index.939dd5cf.js +0 -32
  484. package/dist/chunks/index.939dd5cf.js.map +0 -1
  485. package/dist/chunks/index.a48e7f99.js.map +0 -1
  486. package/dist/chunks/index.bd1d28d0.js.map +0 -1
  487. package/dist/chunks/index.c8621e8e.js.map +0 -1
  488. package/dist/chunks/index.ccc7e8d7.js.map +0 -1
  489. package/dist/chunks/index.e29a6907.js.map +0 -1
  490. package/dist/chunks/internal-error.35cbb071.js +0 -5
  491. package/dist/chunks/internal-error.35cbb071.js.map +0 -1
  492. package/dist/chunks/internal-error.9a4823ed.js +0 -5
  493. package/dist/chunks/internal-error.9a4823ed.js.map +0 -1
  494. package/dist/chunks/listbox-option-tag.8708be60.js +0 -107
  495. package/dist/chunks/listbox-option-tag.8708be60.js.map +0 -1
  496. package/dist/chunks/no-results-found.58856d70.js +0 -5
  497. package/dist/chunks/no-results-found.58856d70.js.map +0 -1
  498. package/dist/chunks/no-results-found.cbb12f78.js +0 -5
  499. package/dist/chunks/no-results-found.cbb12f78.js.map +0 -1
  500. package/dist/chunks/notifications-cleared.71025c22.js +0 -5
  501. package/dist/chunks/notifications-cleared.71025c22.js.map +0 -1
  502. package/dist/chunks/notifications-cleared.c4f4bed4.js +0 -5
  503. package/dist/chunks/notifications-cleared.c4f4bed4.js.map +0 -1
  504. package/dist/chunks/page-not-found.a500440d.js +0 -5
  505. package/dist/chunks/page-not-found.a500440d.js.map +0 -1
  506. package/dist/chunks/page-not-found.d1a84ba7.js +0 -5
  507. package/dist/chunks/page-not-found.d1a84ba7.js.map +0 -1
  508. package/dist/chunks/planned-maintenance.7fa5ac16.js +0 -5
  509. package/dist/chunks/planned-maintenance.7fa5ac16.js.map +0 -1
  510. package/dist/chunks/planned-maintenance.cff01aed.js +0 -5
  511. package/dist/chunks/planned-maintenance.cff01aed.js.map +0 -1
  512. package/dist/chunks/radio-input.c6550a9c.js.map +0 -1
  513. package/dist/chunks/referrals.178ce0eb.js +0 -5
  514. package/dist/chunks/referrals.178ce0eb.js.map +0 -1
  515. package/dist/chunks/referrals.599047da.js +0 -5
  516. package/dist/chunks/referrals.599047da.js.map +0 -1
  517. package/dist/chunks/success.41981fe8.js +0 -5
  518. package/dist/chunks/success.41981fe8.js.map +0 -1
  519. package/dist/chunks/success.77fac78b.js +0 -5
  520. package/dist/chunks/success.77fac78b.js.map +0 -1
  521. package/dist/chunks/tooltip.efddb5f3.js.map +0 -1
  522. package/dist/chunks/upload-files.2708eca7.js +0 -5
  523. package/dist/chunks/upload-files.2708eca7.js.map +0 -1
  524. package/dist/chunks/upload-files.b4cd9f8b.js +0 -5
  525. package/dist/chunks/upload-files.b4cd9f8b.js.map +0 -1
  526. package/dist/chunks/use-has-slot.fbeb19ec.js +0 -6
  527. package/dist/chunks/wrong-environment.c73b0bc0.js +0 -5
  528. package/dist/chunks/wrong-environment.c73b0bc0.js.map +0 -1
  529. package/dist/chunks/wrong-environment.f890a237.js +0 -5
  530. package/dist/chunks/wrong-environment.f890a237.js.map +0 -1
  531. /package/dist/assets/{index.css → alert.css} +0 -0
  532. /package/dist/assets/{index2.css → avatar-image.css} +0 -0
  533. /package/dist/assets/{index8.css → badge.css} +0 -0
  534. /package/dist/assets/{index5.css → checkbox-group.css} +0 -0
  535. /package/dist/assets/{index10.css → code-snippet.css} +0 -0
  536. /package/dist/assets/{index7.css → country.css} +0 -0
  537. /package/dist/assets/{index13.css → date-picker.css} +0 -0
  538. /package/dist/assets/{index23.css → date-range-picker.css} +0 -0
  539. /package/dist/assets/{index16.css → divider.css} +0 -0
  540. /package/dist/assets/{index17.css → dropdown-tag.css} +0 -0
  541. /package/dist/assets/{index18.css → empty-state.css} +0 -0
  542. /package/dist/assets/{index27.css → focus-trap.css} +0 -0
  543. /package/dist/assets/{index19.css → form-layout-title.css} +0 -0
  544. /package/dist/assets/{index26.css → header.css} +0 -0
  545. /package/dist/assets/{index28.css → info-icon.css} +0 -0
  546. /package/dist/assets/{index44.css → input-field.css} +0 -0
  547. /package/dist/assets/{index29.css → link.css} +0 -0
  548. /package/dist/assets/{index30.css → loading-indicator.css} +0 -0
  549. /package/dist/assets/{index25.css → pagination.css} +0 -0
  550. /package/dist/assets/{index37.css → popper-container.css} +0 -0
  551. /package/dist/assets/{index40.css → radio-group.css} +0 -0
  552. /package/dist/assets/{index31.css → search-bar.css} +0 -0
  553. /package/dist/assets/{index39.css → secondary-nav.css} +0 -0
  554. /package/dist/assets/{index12.css → step.css} +0 -0
  555. /package/dist/assets/{index20.css → structured-list-item.css} +0 -0
  556. /package/dist/assets/{index21.css → summary-grid-item-custom.css} +0 -0
  557. /package/dist/assets/{index22.css → tabs.css} +0 -0
  558. /package/dist/assets/{index14.css → tag.css} +0 -0
  559. /package/dist/assets/{index41.css → textarea.css} +0 -0
  560. /package/dist/assets/{index42.css → timeline-item.css} +0 -0
  561. /package/dist/assets/{index43.css → toast.css} +0 -0
  562. /package/dist/assets/{index3.css → toggle-button.css} +0 -0
  563. /package/dist/assets/{index46.css → typography.css} +0 -0
@@ -0,0 +1,115 @@
1
+ import { defineComponent as T, useSlots as I, ref as C, watch as h, computed as n } from "vue";
2
+ import { B as H } from "./typography.Bjtu3Gca.js";
3
+ import { C as D, a as M } from "./chevron-up.B2uWhZf7.js";
4
+ import { u as U } from "./use-expandable-content-height.GkjjbmPy.js";
5
+ import { u as z } from "./use-has-slot.C9lQZ6nz.js";
6
+ import { g as R } from "./unique-id.XFfoKuc2.js";
7
+ import { u as O } from "./i18n.BQkEbtPM.js";
8
+ import { o as W } from "./resize.Bqks3WUm.js";
9
+ import { c as F, B as N } from "./button-actions.Bg9ey0p6.js";
10
+ import { n as P } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
11
+ import "../assets/card.css";
12
+ var f = /* @__PURE__ */ ((o) => (o.PRIMARY = "primary", o.SECONDARY = "secondary", o))(f || {}), c = /* @__PURE__ */ ((o) => (o.DEFAULT = "default", o.SMALL = "small", o))(c || {});
13
+ const Y = {
14
+ "en-US": {
15
+ showCardContent: "Show card content",
16
+ hideCardContent: "Hide card content"
17
+ }
18
+ }, j = {
19
+ i18n: { messages: Y },
20
+ name: "bento-card"
21
+ }, q = /* @__PURE__ */ T({
22
+ ...j,
23
+ props: {
24
+ actions: { default: null },
25
+ actionsLayout: { default: F.BUTTONS_END },
26
+ background: { default: f.PRIMARY },
27
+ closed: { type: Boolean, default: !1 },
28
+ disabled: { type: Boolean, default: !1 },
29
+ expandable: { type: Boolean, default: !1 },
30
+ titleSize: { default: c.DEFAULT }
31
+ },
32
+ emits: ["click", "expanded"],
33
+ setup(o, { emit: t }) {
34
+ const a = o, { t: e } = O(), s = I(), d = z(s), i = C(null), x = R("card"), r = C(!a.closed);
35
+ h(
36
+ () => a.closed,
37
+ (l) => {
38
+ r.value = !l;
39
+ }
40
+ );
41
+ const p = n(() => d("default") || d("description") || d("header")), g = n(() => d("default") || d("header")), b = n(
42
+ () => {
43
+ var l;
44
+ return (d("content") || ((l = a.actions) == null ? void 0 : l.length)) && (!a.expandable || a.expandable && r.value);
45
+ }
46
+ ), y = n(() => a.expandable && !a.disabled ? 0 : -1), v = n(() => ({
47
+ [`b-card--${a.background}`]: a.background,
48
+ "b-card--expandable": a.expandable,
49
+ "b-card--disabled": a.expandable && a.disabled
50
+ })), m = n(() => ({
51
+ "b-card__header--expandable": a.expandable,
52
+ "b-card__header--without-body": !a.expandable && !b.value
53
+ })), w = n(() => ({
54
+ "b-card__toggle--small-text": a.titleSize === c.SMALL
55
+ })), S = n(() => ({
56
+ "b-card__body--expandable": a.expandable && d("content"),
57
+ "b-card__body--without-header": !a.expandable && !p.value
58
+ })), k = n(() => ({
59
+ "b-card__content--without-header": !a.expandable && !p.value,
60
+ "b-card__content--expandable": a.expandable
61
+ })), B = n(() => {
62
+ const l = !a.expandable && a.actions && !d("content");
63
+ return {
64
+ "b-card__actions--without-content": l,
65
+ "b-card__actions--without-content-and-with-header": l && p.value
66
+ };
67
+ }), A = n(() => ({
68
+ "b-card__title-wrapper--truncated": d("header")
69
+ })), E = n(
70
+ () => ({
71
+ el: "div",
72
+ variant: a.titleSize === c.DEFAULT ? "title" : "body",
73
+ strongest: a.titleSize === c.SMALL,
74
+ wide: a.titleSize === c.SMALL
75
+ })
76
+ ), { updateContentHeight: _, contentHeight: u } = U(i, r), L = n(
77
+ () => a.expandable && u.value ? { "max-height": u.value } : {}
78
+ );
79
+ return h(
80
+ () => i.value,
81
+ () => {
82
+ let l = null;
83
+ !l && i.value && (l = W(i.value, () => {
84
+ i.value && _();
85
+ }));
86
+ }
87
+ ), { __sfc: !0, t: e, slots: s, hasSlot: d, props: a, emit: t, contentDiv: i, cardId: x, showContent: r, showHeader: p, showTitleWrapper: g, showCardBody: b, tabIndex: y, cardConditionalClasses: v, cardHeaderConditionalClasses: m, cardToggleConditionalClasses: w, cardBodyConditionalClasses: S, cardContentConditionalClasses: k, cardActionsConditionalClasses: B, cardTitleWrapperConditionalClasses: A, typography: E, updateContentHeight: _, contentHeight: u, contentMaxHeight: L, toggleExpansion: () => {
88
+ !a.disabled && a.expandable && (r.value = !r.value, t("expanded", r.value), _());
89
+ }, onClick: () => {
90
+ a.disabled || t("click");
91
+ }, BentoTypography: H, BentoButtonActions: N, ChevronDownIcon: D, ChevronUpIcon: M };
92
+ }
93
+ });
94
+ var G = function() {
95
+ var t = this, a = t._self._c, e = t._self._setupProxy;
96
+ return a("div", { staticClass: "b-card", class: e.cardConditionalClasses, attrs: { "data-testid": "card" }, on: { click: e.onClick } }, [e.hasSlot("image") ? a("div", { staticClass: "b-card__image" }, [t._t("image")], 2) : t._e(), e.showHeader ? a("div", { staticClass: "b-card__header", class: e.cardHeaderConditionalClasses, attrs: { tabindex: e.tabIndex, "aria-controls": t.expandable ? e.cardId : null, "aria-expanded": t.expandable ? `${e.showContent}` : null, role: t.expandable ? "button" : null }, on: { click: e.toggleExpansion, keypress: [function(s) {
97
+ return !s.type.indexOf("key") && t._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : e.toggleExpansion.apply(null, arguments);
98
+ }, function(s) {
99
+ return !s.type.indexOf("key") && t._k(s.keyCode, "space", 32, s.key, [" ", "Spacebar"]) ? null : e.toggleExpansion.apply(null, arguments);
100
+ }] } }, [a("div", { staticClass: "b-card__header-wrapper" }, [e.showTitleWrapper ? a("div", { staticClass: "b-card__header-slot-wrapper" }, [a("div", { staticClass: "b-card__title-wrapper", class: e.cardTitleWrapperConditionalClasses }, [t.expandable ? a("div", { staticClass: "b-card__toggle", class: e.cardToggleConditionalClasses }, [e.showContent ? a(e.ChevronUpIcon, { attrs: { "svg-title": e.t("hideCardContent"), "aria-hidden": "true" } }) : a(e.ChevronDownIcon, { attrs: { "svg-title": e.t("showCardContent"), "aria-hidden": "true" } })], 1) : t._e(), e.hasSlot("default") ? a(e.BentoTypography, t._b({ staticClass: "b-card__title" }, "bento-typography", e.typography, !1), [t._t("default")], 2) : t._e()], 1), e.hasSlot("header") ? [t._t("header")] : t._e()], 2) : t._e(), e.hasSlot("description") ? a(e.BentoTypography, { staticClass: "b-card__description", attrs: { el: "div", variant: "body" } }, [t._t("description")], 2) : t._e()], 1)]) : t._e(), a("Transition", { attrs: { name: "b-card__animation" } }, [e.showCardBody ? a("div", { staticClass: "b-card__wrapper", style: e.contentMaxHeight }, [a("div", { ref: "contentDiv", staticClass: "b-card__body", class: e.cardBodyConditionalClasses, attrs: { id: t.expandable ? e.cardId : null } }, [e.hasSlot("content") ? a("div", { staticClass: "b-card__content", class: e.cardContentConditionalClasses }, [t._t("content")], 2) : t._e(), t.actions ? a("div", { staticClass: "b-card__actions", class: e.cardActionsConditionalClasses }, [a(e.BentoButtonActions, { attrs: { actions: t.actions, layout: t.actionsLayout } })], 1) : t._e()])]) : t._e()])], 1);
101
+ }, J = [], K = /* @__PURE__ */ P(
102
+ q,
103
+ G,
104
+ J,
105
+ !1,
106
+ null,
107
+ "d9419ec6"
108
+ );
109
+ const la = K.exports;
110
+ export {
111
+ f as B,
112
+ c as a,
113
+ la as c
114
+ };
115
+ //# sourceMappingURL=card.70Xvba2C.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card.70Xvba2C.js","sources":["../../src/components/card/card.types.ts","../../src/components/card/card.vue"],"sourcesContent":["/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoCardBackground {\n PRIMARY = 'primary',\n SECONDARY = 'secondary',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\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 v-if=\"hasSlot('image')\" class=\"b-card__image\">\n <slot name=\"image\"></slot>\n </div>\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 v-if=\"hasSlot('description')\" class=\"b-card__description\" el=\"div\" variant=\"body\">\n <slot name=\"description\" />\n </bento-typography>\n </div>\n </div>\n\n <Transition name=\"b-card__animation\">\n <div v-if=\"showCardBody\" class=\"b-card__wrapper\" :style=\"contentMaxHeight\">\n <div\n :id=\"expandable ? cardId : null\"\n ref=\"contentDiv\"\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 </Transition>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, ref, useSlots, watch } from 'vue';\n\n // Components\n import { BentoTypography } 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 // Composables\n import { useExpandableContentHeight } from '@/composables/use-expandable-content-height/use-expandable-content-height';\n\n // Utils\n import { useHasSlot } from '@/composables';\n import { generateUid } from '@/utils/ts/unique-id';\n import { useI18n } from '@/utils/ts/i18n';\n import { observeSizeOfElement } from '@/utils/ts/resize';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const props = withDefaults(\n defineProps<{\n /**\n * List of actions that will be used to render the buttons.\n * First element in the list will be rendered as \"primary\".\n * All elements after the first will be rendered as \"secondary\".\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * `title`: Button's text.\n *\n * `event`: Event triggered when clicking the Button.\n *\n * `icon`: Vue Icon from the library `@adyen/ui-assets-icons-16`.\n *\n * ```\n * [{\n * title: 'Primary',\n * event: () => { ... },\n * icon: FourPeopleIcon\n * }, {\n * title: 'Secondary',\n * event: () => { ... }\n * }]\n * ```\n */\n actions?: BentoButtonActionsList;\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?: BentoButtonActionsLayout | `${BentoButtonActionsLayout}`;\n\n /**\n * Defines the color of card background\n */\n background?: BentoCardBackground | `${BentoCardBackground}`;\n\n /**\n * Sets the expandable card in a closed state\n */\n closed?: boolean;\n\n /**\n * Disables the expandable card\n */\n disabled?: boolean;\n\n /**\n * The whole content of the card will be expandable in accordion manner\n */\n expandable?: boolean;\n\n /**\n * Defines the title size of the card header\n */\n titleSize?: BentoCardTitleSize | `${BentoCardTitleSize}`;\n }>(),\n {\n actions: null,\n actionsLayout: BentoButtonActionsLayout.BUTTONS_END,\n background: BentoCardBackground.PRIMARY,\n closed: false,\n disabled: false,\n expandable: false,\n titleSize: BentoCardTitleSize.DEFAULT,\n }\n );\n\n const emit = defineEmits<{\n (e: 'click');\n (e: 'expanded', isExpanded: boolean);\n }>();\n\n const contentDiv = ref<HTMLDivElement>(null);\n\n const cardId = generateUid('card');\n const showContent = ref(!props.closed);\n watch(\n () => props.closed,\n value => {\n showContent.value = !value;\n }\n );\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': 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 () =>\n ({\n el: 'div',\n variant: props.titleSize === BentoCardTitleSize.DEFAULT ? 'title' : 'body',\n strongest: props.titleSize === BentoCardTitleSize.SMALL,\n wide: props.titleSize === BentoCardTitleSize.SMALL,\n } as InstanceType<typeof BentoTypography>['$props'])\n );\n\n // Toggle open and close logic and animation\n const { updateContentHeight, contentHeight } = useExpandableContentHeight(contentDiv, showContent);\n\n const contentMaxHeight = computed(() =>\n props.expandable && contentHeight.value ? { 'max-height': contentHeight.value } : {}\n );\n\n watch(\n () => contentDiv.value,\n () => {\n let observer: ResizeObserver | null = null;\n if (!observer && contentDiv.value) {\n observer = observeSizeOfElement(contentDiv.value, () => {\n if (contentDiv.value) {\n updateContentHeight();\n }\n });\n }\n }\n );\n\n const toggleExpansion = () => {\n if (!props.disabled && props.expandable) {\n showContent.value = !showContent.value;\n emit('expanded', showContent.value);\n updateContentHeight();\n }\n };\n\n const onClick = () => {\n if (!props.disabled) {\n emit('click');\n }\n };\n</script>\n\n<script lang=\"ts\">\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 {\n i18n: { messages },\n name: 'bento-card',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./card.scss\" />\n"],"names":["BentoCardBackground","BentoCardBackground2","BentoCardTitleSize","BentoCardTitleSize2","__default__","messages","t","useI18n","slots","useSlots","hasSlot","useHasSlot","contentDiv","ref","cardId","generateUid","showContent","props","watch","value","showHeader","computed","showTitleWrapper","showCardBody","_a","tabIndex","cardConditionalClasses","cardHeaderConditionalClasses","cardToggleConditionalClasses","cardBodyConditionalClasses","cardContentConditionalClasses","cardActionsConditionalClasses","isNotExpandableWithoutContent","cardTitleWrapperConditionalClasses","typography","updateContentHeight","contentHeight","useExpandableContentHeight","contentMaxHeight","observer","observeSizeOfElement","emit"],"mappings":"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"}
@@ -0,0 +1,152 @@
1
+ import { defineComponent as y, toRef as _, computed as l, watch as c, ref as v } from "vue";
2
+ import { B as E, a as n } from "./checkbox.Bi2RDBEZ.js";
3
+ import { g as x } from "./unique-id.XFfoKuc2.js";
4
+ import { d as k } from "./typography.Bjtu3Gca.js";
5
+ import { u as C } from "./use-form-layout-loading.D3lALhtC.js";
6
+ import { C as S } from "./controls-group.cSRFiEVO.js";
7
+ import { E as M } from "./error-message.BSxUoE3_.js";
8
+ import { n as I } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
9
+ import "../assets/checkbox-group.css";
10
+ var s = /* @__PURE__ */ ((r) => (r.HORIZONTAL = "horizontal", r.VERTICAL = "vertical", r))(s || {});
11
+ const p = "bento-checkbox-group", T = y({
12
+ name: p,
13
+ components: { BentoCheckbox: E, ControlsGroup: S, ErrorMessage: M },
14
+ model: { prop: "modelValue" },
15
+ props: {
16
+ /**
17
+ * Descriptive supporting text visbile underneath the label.
18
+ */
19
+ description: { type: String, default: null },
20
+ /**
21
+ * If set to true, renders all checkboxes in the group in a disabled state.
22
+ */
23
+ disabled: { type: Boolean, default: !1 },
24
+ /**
25
+ * Renders all checkboxes in an error state with an error message.
26
+ */
27
+ errorMessage: { type: String, default: null },
28
+ /**
29
+ * The form id the checkbox group is associated with. Defaults to null, as a checkbox group can also be used standalone.
30
+ */
31
+ formId: { type: String, default: null },
32
+ /**
33
+ * If set to true, renders all checkboxes in the group in an error state.
34
+ *
35
+ * @deprecated Use "errorMessage" prop instead
36
+ */
37
+ hasError: { type: Boolean, default: !1 },
38
+ /**
39
+ * Shows/hides the group label.
40
+ */
41
+ hideLabel: { type: Boolean, default: null },
42
+ /**
43
+ * The checkbox group's items.
44
+ */
45
+ items: { type: Array, required: !0 },
46
+ /**
47
+ * The name associated with the group. Required for accessibility purposes.
48
+ */
49
+ label: { type: String, required: !0 },
50
+ /**
51
+ * Determines the initially selected value of the group. Corresponds to the BentoCheckboxButtonItem's value.
52
+ * Defaults to no value selected.
53
+ */
54
+ modelValue: { type: Array, default: () => [] },
55
+ /**
56
+ * Indicates the field is optional.
57
+ */
58
+ optional: { type: Boolean, default: !1 },
59
+ /**
60
+ * If set to true, renders all checkboxes in the group in a readonly state.
61
+ */
62
+ readonly: { type: Boolean, default: !1 },
63
+ /**
64
+ * Indicates the field is required.
65
+ */
66
+ required: { type: Boolean, default: !1 },
67
+ /**
68
+ * Tooltip message.
69
+ */
70
+ tooltipText: { type: String, default: null },
71
+ /**
72
+ * The checkbox group's layout. It can be vertical or horizontal. Defaults to vertical.
73
+ */
74
+ variant: {
75
+ type: String,
76
+ default: s.VERTICAL,
77
+ validator: (r) => Object.values(s).includes(r)
78
+ }
79
+ },
80
+ emits: [n.UPDATE, n.INPUT],
81
+ setup(r, { emit: e, slots: a }) {
82
+ const o = x("error"), { isReadOnly: u } = C(_(r, "readonly")), f = l(
83
+ () => !r.disabled && !u.value && (!!r.errorMessage || r.hasError)
84
+ ), h = l(
85
+ () => !r.disabled && !u.value && !!r.errorMessage
86
+ ), m = l(() => ({
87
+ "b-checkbox-group__checkboxes--horizontal": r.variant === s.HORIZONTAL
88
+ })), i = (t) => !!a[t], b = l(() => i("content") && r.variant !== "vertical");
89
+ c(
90
+ b,
91
+ (t) => {
92
+ if (t)
93
+ throw new Error("The content slot is only available for the vertical checkbox group layout");
94
+ },
95
+ { immediate: !0 }
96
+ );
97
+ const d = v(r.modelValue);
98
+ c(
99
+ () => r.modelValue,
100
+ () => {
101
+ d.value = r.modelValue;
102
+ }
103
+ );
104
+ const g = (t) => {
105
+ d.value = t, e(n.UPDATE, t), e(n.INPUT, t);
106
+ };
107
+ return r.hasError && k(
108
+ 'BentoCheckboxGroup "hasError" property',
109
+ `Use the BentoCheckboxGroup "errorMessage" property instead to indicate that there is a modifier error.
110
+ Having the field as "undefined" will hide/remove the error.
111
+ <bento-checkbox-group errorMessage="Error message text" />`,
112
+ "2.0.0"
113
+ ), {
114
+ // Values
115
+ COMPONENT_NAME: p,
116
+ errorId: o,
117
+ isReadOnly: u,
118
+ shouldShowGroupError: f,
119
+ shouldShowGroupErrorMessage: h,
120
+ conditionalClasses: m,
121
+ inputValue: d,
122
+ hasContentSlot: i,
123
+ // Methods
124
+ onInput: g
125
+ };
126
+ }
127
+ });
128
+ var w = function() {
129
+ var e = this, a = e._self._c;
130
+ return e._self._setupProxy, a("div", { staticClass: "b-checkbox-group" }, [a("controls-group", { staticClass: "b-checkbox-group__checkboxes", class: e.conditionalClasses, attrs: { "aria-describedby": e.shouldShowGroupErrorMessage ? e.errorId : "", "component-name": e.COMPONENT_NAME, description: e.description, disabled: e.disabled, form: e.formId, "hide-label": e.hideLabel, label: e.label, optional: e.optional, required: e.required, "tooltip-text": e.tooltipText } }, e._l(e.items, function(o) {
131
+ return a("bento-checkbox", { key: o.value, attrs: { "model-value": e.inputValue, value: o.value, disabled: e.disabled || o.disabled, "has-error": e.shouldShowGroupError || o.hasError, "error-message": e.shouldShowGroupError ? null : o.errorMessage, readonly: e.isReadOnly || o.readonly, tag: o.tag }, on: { "update:model-value": e.onInput }, scopedSlots: e._u([{ key: "default", fn: function() {
132
+ return [e._v(e._s(o.label))];
133
+ }, proxy: !0 }, o.description ? { key: "description", fn: function() {
134
+ return [e._v(e._s(o.description))];
135
+ }, proxy: !0 } : null, e.hasContentSlot("content") ? { key: "content", fn: function() {
136
+ return [e._t("content", null, null, o)];
137
+ }, proxy: !0 } : null], null, !0) });
138
+ }), 1), e.shouldShowGroupErrorMessage ? a("error-message", { staticClass: "b-checkbox-group__error-message", attrs: { id: e.errorId, "error-message": e.errorMessage } }) : e._e()], 1);
139
+ }, B = [], O = /* @__PURE__ */ I(
140
+ T,
141
+ w,
142
+ B,
143
+ !1,
144
+ null,
145
+ "9e93a4d5"
146
+ );
147
+ const q = O.exports;
148
+ export {
149
+ s as B,
150
+ q as c
151
+ };
152
+ //# sourceMappingURL=checkbox-group.B-KdeRXC.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkbox-group.B-KdeRXC.js","sources":["../../src/components/checkbox/components/checkbox-group/checkbox-group.types.ts","../../src/components/checkbox/components/checkbox-group/checkbox-group.vue"],"sourcesContent":["import type { BentoCheckboxTag } from '@/components/checkbox';\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoCheckboxGroupVariant {\n HORIZONTAL = 'horizontal',\n VERTICAL = 'vertical',\n}\n\ninterface BentoCheckboxGroupItem {\n value: string | number;\n label: string;\n description?: string;\n disabled?: boolean;\n hasError?: boolean;\n errorMessage?: string;\n readonly?: boolean;\n tag?: BentoCheckboxTag;\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 :aria-describedby=\"shouldShowGroupErrorMessage ? errorId : ''\"\n :component-name=\"COMPONENT_NAME\"\n :class=\"conditionalClasses\"\n :description=\"description\"\n :disabled=\"disabled\"\n :form=\"formId\"\n :hide-label=\"hideLabel\"\n :label=\"label\"\n :optional=\"optional\"\n :required=\"required\"\n :tooltip-text=\"tooltipText\"\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=\"isReadOnly || item.readonly\"\n :tag=\"item.tag\"\n @update:model-value=\"onInput\"\n >\n <template #default>{{ item.label }}</template>\n <template v-if=\"item.description\" #description>{{ item.description }}</template>\n <template v-if=\"hasContentSlot('content')\" #content>\n <slot name=\"content\" v-bind=\"item\"></slot>\n </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, ref, toRef, watch } 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 import { useFormLayoutFieldLoading } from '@/composables/use-form-layout-loading/use-form-layout-loading';\n\n /**\n * The name of the component to be used in the Vue devtools and console warnings.\n */\n const COMPONENT_NAME = 'bento-checkbox-group';\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: COMPONENT_NAME,\n components: { BentoCheckbox, ControlsGroup, ErrorMessage },\n model: { prop: 'modelValue' },\n props: {\n /**\n * Descriptive supporting text visbile underneath the label.\n */\n description: { type: String, default: null },\n\n /**\n * If set to true, renders all checkboxes in the group in a disabled state.\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Renders all checkboxes in an error state with an error message.\n */\n errorMessage: { type: String, default: null },\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: { type: String, default: null },\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: { type: Boolean, default: false },\n\n /**\n * Shows/hides the group label.\n */\n hideLabel: { type: Boolean, default: null },\n\n /**\n * The checkbox group's items.\n */\n items: { type: Array as PropType<BentoCheckboxGroupItems>, required: true },\n\n /**\n * The name associated with the group. Required for accessibility purposes.\n */\n label: { type: String, 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: { type: Array<number | string | null>, default: () => [] },\n\n /**\n * Indicates the field is optional.\n */\n optional: { type: Boolean, default: false },\n\n /**\n * If set to true, renders all checkboxes in the group in a readonly state.\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * Indicates the field is required.\n */\n required: { type: Boolean, default: false },\n\n /**\n * Tooltip message.\n */\n tooltipText: { type: String, default: null },\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 | `${BentoCheckboxGroupVariant}`>,\n default: BentoCheckboxGroupVariant.VERTICAL,\n validator: (value: BentoCheckboxGroupVariant) =>\n Object.values(BentoCheckboxGroupVariant).includes(value),\n },\n },\n emits: [BentoCheckboxEvent.UPDATE, BentoCheckboxEvent.INPUT],\n setup(props, { emit, slots }) {\n const errorId = generateUid('error');\n const { isReadOnly } = useFormLayoutFieldLoading(toRef(props, 'readonly'));\n\n const shouldShowGroupError = computed(\n () => !props.disabled && !isReadOnly.value && (!!props.errorMessage || props.hasError)\n );\n const shouldShowGroupErrorMessage = computed(\n () => !props.disabled && !isReadOnly.value && !!props.errorMessage\n );\n\n const conditionalClasses = computed(() => ({\n 'b-checkbox-group__checkboxes--horizontal': props.variant === BentoCheckboxGroupVariant.HORIZONTAL,\n }));\n\n // Slots logic\n // Temporary, use-has-slots composable doesn't currently work for\n // vue3 named scoped slots\n const hasContentSlot = name => !!slots[name];\n const shouldShowSlotsError = computed(() => hasContentSlot('content') && props.variant !== 'vertical');\n\n watch(\n shouldShowSlotsError,\n newValue => {\n if (newValue) {\n throw new Error('The content slot is only available for the vertical checkbox group layout');\n }\n },\n { immediate: true }\n );\n\n const inputValue = ref(props.modelValue);\n watch(\n () => props.modelValue,\n () => {\n inputValue.value = props.modelValue;\n }\n );\n\n const onInput = value => {\n inputValue.value = value;\n emit(BentoCheckboxEvent.UPDATE, value);\n emit(BentoCheckboxEvent.INPUT, 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 COMPONENT_NAME,\n errorId,\n isReadOnly,\n shouldShowGroupError,\n shouldShowGroupErrorMessage,\n conditionalClasses,\n inputValue,\n hasContentSlot,\n\n // Methods\n onInput,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./checkbox-group.scss\" />\n"],"names":["BentoCheckboxGroupVariant","BentoCheckboxGroupVariant2","COMPONENT_NAME","_sfc_main","defineComponent","BentoCheckbox","ControlsGroup","ErrorMessage","value","BentoCheckboxEvent","props","emit","slots","errorId","generateUid","isReadOnly","useFormLayoutFieldLoading","toRef","shouldShowGroupError","computed","shouldShowGroupErrorMessage","conditionalClasses","hasContentSlot","name","shouldShowSlotsError","watch","newValue","inputValue","ref","onInput","deprecate"],"mappings":"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"}
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as g, toRefs as x, computed as r } from "vue";
2
- import { C as E } from "./checkmark-small.520f01b1.js";
3
- import { n as h } from "./_plugin-vue2_normalizer.71e2aa87.js";
2
+ import { C as E } from "./checkmark-small.BtF8b2gE.js";
3
+ import { n as h } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
4
4
  import "../assets/checkbox-input.css";
5
- var l = /* @__PURE__ */ ((n) => (n.UNCHECKED = "unchecked", n.DISABLED = "disabled", n.ERROR = "error", n.READONLY = "readonly", n))(l || {}), d = /* @__PURE__ */ ((n) => (n.UPDATE = "update:model-value", n))(d || {});
5
+ var s = /* @__PURE__ */ ((n) => (n.UNCHECKED = "unchecked", n.DISABLED = "disabled", n.ERROR = "error", n.READONLY = "readonly", n))(s || {}), u = /* @__PURE__ */ ((n) => (n.UPDATE = "update:model-value", n))(u || {});
6
6
  let v = 0;
7
7
  const D = {
8
8
  beforeCreate() {
@@ -18,15 +18,13 @@ var R = function() {
18
18
  A,
19
19
  !1,
20
20
  null,
21
- null,
22
- null,
23
21
  null
24
22
  );
25
- const S = $.exports, L = {
23
+ const L = $.exports, N = {
26
24
  name: "checkbox-input",
27
25
  inheritAttrs: !1
28
- }, w = /* @__PURE__ */ g({
29
- ...L,
26
+ }, S = /* @__PURE__ */ g({
27
+ ...N,
30
28
  props: {
31
29
  /**
32
30
  * The aria label associated to the input checkbox.
@@ -80,44 +78,43 @@ const S = $.exports, L = {
80
78
  },
81
79
  emits: ["update:model-value"],
82
80
  setup(n, { emit: e }) {
83
- const a = n, { disabled: t, indeterminate: m, modelValue: s, readonly: _, value: o } = x(a), b = r(() => ({
84
- [`b-checkbox-input--${l.DISABLED}`]: a.disabled,
85
- [`b-checkbox-input--${l.READONLY}`]: a.readonly
81
+ const a = n, { disabled: t, indeterminate: b, modelValue: l, readonly: _, value: o } = x(a), m = r(() => ({
82
+ [`b-checkbox-input--${s.DISABLED}`]: a.disabled,
83
+ [`b-checkbox-input--${s.READONLY}`]: a.readonly
86
84
  })), C = r(() => ({
87
- [`b-checkbox-input__outline--${l.UNCHECKED}`]: !p.value && !a.indeterminate,
88
- [`b-checkbox-input__outline--${l.ERROR}`]: a.hasError,
89
- [`b-checkbox-input__outline--${l.READONLY}`]: a.readonly
90
- })), u = r(() => Array.isArray(s.value)), p = r(() => u.value ? s.value.some((i) => i === o.value) : s.value), k = r(() => a.hasError && !a.disabled && !a.readonly);
91
- return { __sfc: !0, props: a, emit: e, disabled: t, indeterminate: m, modelValue: s, readonly: _, value: o, conditionalClasses: b, outlineConditionalClasses: C, isCheckboxGroup: u, isChecked: p, ariaInvalid: k, onClick: (i) => {
85
+ [`b-checkbox-input__outline--${s.UNCHECKED}`]: !f.value && !a.indeterminate,
86
+ [`b-checkbox-input__outline--${s.ERROR}`]: a.hasError,
87
+ [`b-checkbox-input__outline--${s.READONLY}`]: a.readonly
88
+ })), d = r(() => Array.isArray(l.value)), f = r(() => d.value ? l.value.some((i) => i === o.value) : l.value), k = r(() => a.hasError && !a.disabled && !a.readonly);
89
+ return { __sfc: !0, props: a, emit: e, disabled: t, indeterminate: b, modelValue: l, readonly: _, value: o, conditionalClasses: m, outlineConditionalClasses: C, isCheckboxGroup: d, isChecked: f, ariaInvalid: k, onClick: (i) => {
92
90
  _.value && i.preventDefault();
93
91
  }, onChange: (i) => {
94
92
  if (t.value)
95
93
  return;
96
94
  const y = i.target.checked;
97
- if (u.value) {
98
- const c = [...s.value], f = c.indexOf(o.value);
99
- f === -1 ? c.push(o.value) : c.splice(f, 1), e(d.UPDATE, c);
95
+ if (d.value) {
96
+ const c = [...l.value], p = c.indexOf(o.value);
97
+ p === -1 ? c.push(o.value) : c.splice(p, 1), e(u.UPDATE, c);
100
98
  } else
101
- e(d.UPDATE, y);
102
- }, CheckmarkSmallIcon: E, MinusSmallIcon: S };
99
+ e(u.UPDATE, y);
100
+ }, CheckmarkSmallIcon: E, MinusSmallIcon: L };
103
101
  }
104
102
  });
105
- var B = function() {
103
+ var w = function() {
106
104
  var e = this, a = e._self._c, t = e._self._setupProxy;
107
105
  return a("div", { staticClass: "b-checkbox-input", class: t.conditionalClasses }, [t.indeterminate ? a(t.MinusSmallIcon, { staticClass: "b-checkbox-input__icon", attrs: { "svg-title": "intermediate" } }) : t.isChecked ? a(t.CheckmarkSmallIcon, { staticClass: "b-checkbox-input__icon", attrs: { "svg-title": "checked" } }) : e._e(), a("input", { ref: "inputRef", staticClass: "b-checkbox-input__outline", class: t.outlineConditionalClasses, attrs: { id: e.id, role: "checkbox", type: "checkbox", "aria-label": e.ariaLabel, "aria-checked": t.isChecked, "aria-describedby": e.ariaDescribedby, "aria-invalid": t.ariaInvalid, disabled: t.disabled, "aria-readonly": t.readonly }, domProps: { checked: t.isChecked, indeterminate: t.indeterminate, value: t.value }, on: { click: t.onClick, change: t.onChange } })], 1);
108
- }, I = [], N = /* @__PURE__ */ h(
106
+ }, B = [], I = /* @__PURE__ */ h(
107
+ S,
109
108
  w,
110
109
  B,
111
- I,
112
110
  !1,
113
111
  null,
114
- "af982a96",
115
- null,
116
- null
112
+ "af982a96"
117
113
  );
118
- const M = N.exports;
114
+ const M = I.exports;
119
115
  export {
120
- l as C,
116
+ s as C,
117
+ L as N,
121
118
  M as a
122
119
  };
123
- //# sourceMappingURL=checkbox-input.1c3cc8ed.js.map
120
+ //# sourceMappingURL=checkbox-input.DwDwI2BD.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox-input.1c3cc8ed.js","sources":["../../src/components/internal/checkbox-input/checkbox-input.types.ts","../../../../node_modules/@adyen/ui-assets-icons-16/dist/vue/minus-small.vue","../../src/components/internal/checkbox-input/checkbox-input.vue"],"sourcesContent":["export type MultiCheckboxInputType = Array<string | number>;\nexport type CheckboxInputType = boolean | MultiCheckboxInputType;\n\nexport enum CheckboxInputState {\n UNCHECKED = 'unchecked',\n DISABLED = 'disabled',\n ERROR = 'error',\n READONLY = 'readonly',\n}\n\nexport enum CheckboxInputEvent {\n UPDATE = 'update:model-value',\n}\n\ninterface CheckboxInputGroupItem {\n value: string | number;\n disabled?: boolean;\n hasError?: boolean;\n errorMessage?: string;\n readonly?: boolean;\n}\n\nexport type CheckboxInputGroupItems = Array<CheckboxInputGroupItem>;\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#00112C\" d=\"M4.25 7.25H11.75V8.75H4.25V7.25Z\"/></svg>\n</template>\n<script>\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n<style>\n @import '../css/main.css';\n</style>\n","<template>\n <div class=\"b-checkbox-input\" :class=\"conditionalClasses\">\n <!-- Don't change order because it matters for CSS. Icons first -->\n <minus-small-icon v-if=\"indeterminate\" class=\"b-checkbox-input__icon\" svg-title=\"intermediate\" />\n <checkmark-small-icon v-else-if=\"isChecked\" class=\"b-checkbox-input__icon\" svg-title=\"checked\" />\n <input\n :id=\"id\"\n ref=\"inputRef\"\n role=\"checkbox\"\n type=\"checkbox\"\n class=\"b-checkbox-input__outline\"\n :class=\"outlineConditionalClasses\"\n :aria-label=\"ariaLabel\"\n :aria-checked=\"isChecked\"\n :aria-describedby=\"ariaDescribedby\"\n :aria-invalid=\"ariaInvalid\"\n :checked=\"isChecked\"\n :disabled=\"disabled\"\n :indeterminate.prop=\"indeterminate\"\n :value=\"value\"\n :aria-readonly=\"readonly\"\n @click=\"onClick\"\n @change=\"onChange\"\n />\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, PropType, toRefs } from 'vue';\n import {\n CheckboxInputEvent,\n CheckboxInputGroupItems,\n CheckboxInputState,\n CheckboxInputType,\n MultiCheckboxInputType,\n } from './checkbox-input.types';\n import CheckmarkSmallIcon from '@adyen/ui-assets-icons-16/vue/checkmark-small';\n import MinusSmallIcon from '@adyen/ui-assets-icons-16/vue/minus-small';\n\n const props = defineProps({\n /**\n * The aria label associated to the input checkbox.\n */\n ariaLabel: { type: String, default: '' },\n\n /**\n * An additional string that serves as description for the input checkbox (useful if the component shows a description).\n */\n ariaDescribedby: { type: String, default: '' },\n\n /**\n * Setting this property to true will disable the checkbox in your form.\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Setting this property to true will show the checkbox in error state.\n */\n hasError: { type: Boolean, default: false },\n\n /**\n * Sets the id of the checkbox. Required for accessibility purposes\n */\n id: { type: String, default: null },\n\n /**\n * The :indeterminate CSS pseudo-class represents any form element\n * whose state is indeterminate, such as checkboxes which have their HTML indeterminate attribute\n * set to true, radio buttons which are members of a group in which all radio buttons are unchecked,\n * and indeterminate <progress> elements. https://developer.mozilla.org/en-US/docs/Web/CSS/:indeterminate\n * This property lets you control the input.indeterminate native property.\n */\n indeterminate: { type: Boolean, default: false },\n\n /**\n * When handling a single checkbox with a singular state, use a boolean.\n *\n * When handling multiple checkboxes, use an array of keys.\n * These keys exist as a set \"value\" prop for each checkbox.\n */\n modelValue: {\n type: [Boolean, Array] as PropType<CheckboxInputType | CheckboxInputGroupItems>,\n default: false,\n },\n\n /**\n * Setting this property to true will set the checkbox to read only state.\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * The value of the component. The DOM API casts this to a string.\n * The browser uses \"on\" as the default value.\n *\n * In the case of multiple checkboxes this value is used as a unique key.\n */\n value: { type: [String, Number], default: null },\n });\n\n const emit = defineEmits<{\n /**\n * Emit that emits the input value\n */\n (e: 'update:model-value', value: boolean | Array<string | number>): void;\n }>();\n\n const { disabled, indeterminate, modelValue, readonly, value } = toRefs(props);\n\n const conditionalClasses = computed(() => ({\n [`b-checkbox-input--${CheckboxInputState.DISABLED}`]: props.disabled,\n [`b-checkbox-input--${CheckboxInputState.READONLY}`]: props.readonly,\n }));\n\n const outlineConditionalClasses = computed(() => ({\n [`b-checkbox-input__outline--${CheckboxInputState.UNCHECKED}`]: !isChecked.value && !props.indeterminate,\n [`b-checkbox-input__outline--${CheckboxInputState.ERROR}`]: props.hasError,\n [`b-checkbox-input__outline--${CheckboxInputState.READONLY}`]: props.readonly,\n }));\n\n const isCheckboxGroup = computed(() => Array.isArray(modelValue.value));\n\n const isChecked = computed(() => {\n if (!isCheckboxGroup.value) {\n return modelValue.value as boolean;\n }\n\n return (modelValue.value as MultiCheckboxInputType).some(item => item === value.value);\n });\n\n const ariaInvalid = computed(() => props.hasError && !props.disabled && !props.readonly);\n\n // readonly attr doesn't work with checkbox, so we need to manually ignore the click instead\n const onClick = (event: Event) => {\n if (readonly.value) {\n event.preventDefault();\n }\n };\n const onChange = (event: Event) => {\n if (disabled.value) {\n return;\n }\n\n const newValue: boolean = (event.target as HTMLInputElement).checked;\n\n if (isCheckboxGroup.value) {\n const newCheckedList = [...(modelValue.value as MultiCheckboxInputType)];\n const index = newCheckedList.indexOf(value.value);\n\n if (index === -1) {\n newCheckedList.push(value.value);\n } else {\n newCheckedList.splice(index, 1);\n }\n emit(CheckboxInputEvent.UPDATE, newCheckedList);\n } else {\n emit(CheckboxInputEvent.UPDATE, newValue);\n }\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * Internal component that renders a checkbox input (without label)\n *\n * @example\n * import { BentoCheckboxInput } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoCheckboxInput },\n * template: `\n * <label for=\"checkbox-id\">Your label</label>\n * <span id=\"description-id\">Description</span>\n * <bento-checkbox-input id=\"checkbox-id\" aria=label=\"Your label\" aria-describedby=\"description-id\" />\n * `\n * }\n */\n export default {\n name: 'checkbox-input',\n inheritAttrs: false,\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./checkbox-input.scss\" />\n"],"names":["CheckboxInputState","CheckboxInputState2","CheckboxInputEvent","CheckboxInputEvent2","uuid","_sfc_main$1","__default__","disabled","indeterminate","modelValue","readonly","value","toRefs","props","conditionalClasses","computed","outlineConditionalClasses","isChecked","isCheckboxGroup","item","ariaInvalid","event","newValue","newCheckedList","index","emit"],"mappings":";;;;AAGY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,YAAA,aACAA,EAAA,WAAA,YACAA,EAAA,QAAA,SACAA,EAAA,WAAA,YAJQA,IAAAD,KAAA,CAAA,CAAA,GAOAE,IAAA,kBAAAC,OACRA,EAAA,SAAA,sBADQA,IAAAD,KAAA,CAAA,CAAA;ACLZ,IAAAE,IAAA;AAEA,MAAAC,IAAA;AAAA,EACA,eAAA;AACA,SAAA,OAAAD,EAAA,SAAA,GACAA,KAAA;AAAA,EACA;AACA;;;;;;;;;;;;;;qBCoKIE,IAAA;AAAA,EAAe,MAAA;AAAA,EACL,cAAA;AAEV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAzEA,EAAA,UAAAC,GAAA,eAAAC,GAAA,YAAAC,GAAA,UAAAC,GAAA,OAAAC,EAAA,IAAAC,EAAAC,CAAA,GAEAC,IAAAC,EAAA,OAAA;AAAA,MAA2C,CAAA,qBAAAf,EAAA,UAAA,GAAAa,EAAA;AAAA,MACqB,CAAA,qBAAAb,EAAA,UAAA,GAAAa,EAAA;AAAA,IACA,EAAA,GAGhEG,IAAAD,EAAA,OAAA;AAAA,MAAkD,CAAA,8BAAAf,EAAA,WAAA,GAAA,CAAAiB,EAAA,SAAA,CAAAJ,EAAA;AAAA,MAC6C,CAAA,8BAAAb,EAAA,OAAA,GAAAa,EAAA;AAAA,MACzB,CAAA,8BAAAb,EAAA,UAAA,GAAAa,EAAA;AAAA,IACG,EAAA,GAGzEK,IAAAH,EAAA,MAAA,MAAA,QAAAN,EAAA,KAAA,CAAA,GAEAQ,IAAAF,EAAA,MACIG,EAAA,QAIAT,EAAA,MAAA,KAAA,CAAAU,MAAAA,MAAAR,EAAA,KAAA,IAHIF,EAAA,KAGiF,GAGzFW,IAAAL,EAAA,MAAAF,EAAA,YAAA,CAAAA,EAAA,YAAA,CAAAA,EAAA,QAAA;gOAGA,CAAAQ,MAAA;AACI,MAAAX,EAAA,SACIW,EAAA,eAAA;AAAA,IACJ,aAEJ,CAAAA,MAAA;AACI,UAAAd,EAAA;AACI;AAGJ,YAAAe,IAAAD,EAAA,OAAA;AAEA,UAAAH,EAAA,OAAA;AACI,cAAAK,IAAA,CAAA,GAAAd,EAAA,KAAA,GACAe,IAAAD,EAAA,QAAAZ,EAAA,KAAA;AAEA,QAAAa,MAAA,KACID,EAAA,KAAAZ,EAAA,KAAA,IAEAY,EAAA,OAAAC,GAAA,CAAA,GAEJC,EAAAvB,EAAA,QAAAqB,CAAA;AAAA;AAEA,QAAAE,EAAAvB,EAAA,QAAAoB,CAAA;AAAA,IACJ;;;;;;;;;;;;;;;;;","x_google_ignoreList":[1]}
1
+ {"version":3,"file":"checkbox-input.DwDwI2BD.js","sources":["../../src/components/internal/checkbox-input/checkbox-input.types.ts","../../../../node_modules/@adyen/ui-assets-icons-16/dist/vue/minus-small.vue","../../src/components/internal/checkbox-input/checkbox-input.vue"],"sourcesContent":["export type MultiCheckboxInputType = Array<string | number>;\nexport type CheckboxInputType = boolean | MultiCheckboxInputType;\n\nexport enum CheckboxInputState {\n UNCHECKED = 'unchecked',\n DISABLED = 'disabled',\n ERROR = 'error',\n READONLY = 'readonly',\n}\n\nexport enum CheckboxInputEvent {\n UPDATE = 'update:model-value',\n}\n\ninterface CheckboxInputGroupItem {\n value: string | number;\n disabled?: boolean;\n hasError?: boolean;\n errorMessage?: string;\n readonly?: boolean;\n}\n\nexport type CheckboxInputGroupItems = Array<CheckboxInputGroupItem>;\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#00112C\" d=\"M4.25 7.25H11.75V8.75H4.25V7.25Z\"/></svg>\n</template>\n<script>\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n<style>\n @import '../css/main.css';\n</style>\n","<template>\n <div class=\"b-checkbox-input\" :class=\"conditionalClasses\">\n <!-- Don't change order because it matters for CSS. Icons first -->\n <minus-small-icon v-if=\"indeterminate\" class=\"b-checkbox-input__icon\" svg-title=\"intermediate\" />\n <checkmark-small-icon v-else-if=\"isChecked\" class=\"b-checkbox-input__icon\" svg-title=\"checked\" />\n <input\n :id=\"id\"\n ref=\"inputRef\"\n role=\"checkbox\"\n type=\"checkbox\"\n class=\"b-checkbox-input__outline\"\n :class=\"outlineConditionalClasses\"\n :aria-label=\"ariaLabel\"\n :aria-checked=\"isChecked\"\n :aria-describedby=\"ariaDescribedby\"\n :aria-invalid=\"ariaInvalid\"\n :checked=\"isChecked\"\n :disabled=\"disabled\"\n :indeterminate.prop=\"indeterminate\"\n :value=\"value\"\n :aria-readonly=\"readonly\"\n @click=\"onClick\"\n @change=\"onChange\"\n />\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, PropType, toRefs } from 'vue';\n import {\n CheckboxInputEvent,\n CheckboxInputGroupItems,\n CheckboxInputState,\n CheckboxInputType,\n MultiCheckboxInputType,\n } from './checkbox-input.types';\n import CheckmarkSmallIcon from '@adyen/ui-assets-icons-16/vue/checkmark-small';\n import MinusSmallIcon from '@adyen/ui-assets-icons-16/vue/minus-small';\n\n const props = defineProps({\n /**\n * The aria label associated to the input checkbox.\n */\n ariaLabel: { type: String, default: '' },\n\n /**\n * An additional string that serves as description for the input checkbox (useful if the component shows a description).\n */\n ariaDescribedby: { type: String, default: '' },\n\n /**\n * Setting this property to true will disable the checkbox in your form.\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Setting this property to true will show the checkbox in error state.\n */\n hasError: { type: Boolean, default: false },\n\n /**\n * Sets the id of the checkbox. Required for accessibility purposes\n */\n id: { type: String, default: null },\n\n /**\n * The :indeterminate CSS pseudo-class represents any form element\n * whose state is indeterminate, such as checkboxes which have their HTML indeterminate attribute\n * set to true, radio buttons which are members of a group in which all radio buttons are unchecked,\n * and indeterminate <progress> elements. https://developer.mozilla.org/en-US/docs/Web/CSS/:indeterminate\n * This property lets you control the input.indeterminate native property.\n */\n indeterminate: { type: Boolean, default: false },\n\n /**\n * When handling a single checkbox with a singular state, use a boolean.\n *\n * When handling multiple checkboxes, use an array of keys.\n * These keys exist as a set \"value\" prop for each checkbox.\n */\n modelValue: {\n type: [Boolean, Array] as PropType<CheckboxInputType | CheckboxInputGroupItems>,\n default: false,\n },\n\n /**\n * Setting this property to true will set the checkbox to read only state.\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * The value of the component. The DOM API casts this to a string.\n * The browser uses \"on\" as the default value.\n *\n * In the case of multiple checkboxes this value is used as a unique key.\n */\n value: { type: [String, Number], default: null },\n });\n\n const emit = defineEmits<{\n /**\n * Emit that emits the input value\n */\n (e: 'update:model-value', value: boolean | Array<string | number>): void;\n }>();\n\n const { disabled, indeterminate, modelValue, readonly, value } = toRefs(props);\n\n const conditionalClasses = computed(() => ({\n [`b-checkbox-input--${CheckboxInputState.DISABLED}`]: props.disabled,\n [`b-checkbox-input--${CheckboxInputState.READONLY}`]: props.readonly,\n }));\n\n const outlineConditionalClasses = computed(() => ({\n [`b-checkbox-input__outline--${CheckboxInputState.UNCHECKED}`]: !isChecked.value && !props.indeterminate,\n [`b-checkbox-input__outline--${CheckboxInputState.ERROR}`]: props.hasError,\n [`b-checkbox-input__outline--${CheckboxInputState.READONLY}`]: props.readonly,\n }));\n\n const isCheckboxGroup = computed(() => Array.isArray(modelValue.value));\n\n const isChecked = computed(() => {\n if (!isCheckboxGroup.value) {\n return modelValue.value as boolean;\n }\n\n return (modelValue.value as MultiCheckboxInputType).some(item => item === value.value);\n });\n\n const ariaInvalid = computed(() => props.hasError && !props.disabled && !props.readonly);\n\n // readonly attr doesn't work with checkbox, so we need to manually ignore the click instead\n const onClick = (event: Event) => {\n if (readonly.value) {\n event.preventDefault();\n }\n };\n const onChange = (event: Event) => {\n if (disabled.value) {\n return;\n }\n\n const newValue: boolean = (event.target as HTMLInputElement).checked;\n\n if (isCheckboxGroup.value) {\n const newCheckedList = [...(modelValue.value as MultiCheckboxInputType)];\n const index = newCheckedList.indexOf(value.value);\n\n if (index === -1) {\n newCheckedList.push(value.value);\n } else {\n newCheckedList.splice(index, 1);\n }\n emit(CheckboxInputEvent.UPDATE, newCheckedList);\n } else {\n emit(CheckboxInputEvent.UPDATE, newValue);\n }\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * Internal component that renders a checkbox input (without label)\n *\n * @example\n * import { BentoCheckboxInput } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoCheckboxInput },\n * template: `\n * <label for=\"checkbox-id\">Your label</label>\n * <span id=\"description-id\">Description</span>\n * <bento-checkbox-input id=\"checkbox-id\" aria=label=\"Your label\" aria-describedby=\"description-id\" />\n * `\n * }\n */\n export default {\n name: 'checkbox-input',\n inheritAttrs: false,\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./checkbox-input.scss\" />\n"],"names":["CheckboxInputState","CheckboxInputState2","CheckboxInputEvent","CheckboxInputEvent2","uuid","_sfc_main$1","__default__","disabled","indeterminate","modelValue","readonly","value","toRefs","props","conditionalClasses","computed","outlineConditionalClasses","isChecked","isCheckboxGroup","item","ariaInvalid","event","newValue","newCheckedList","index","emit"],"mappings":";;;;AAGY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,YAAA,aACAA,EAAA,WAAA,YACAA,EAAA,QAAA,SACAA,EAAA,WAAA,YAJQA,IAAAD,KAAA,CAAA,CAAA,GAOAE,IAAA,kBAAAC,OACRA,EAAA,SAAA,sBADQA,IAAAD,KAAA,CAAA,CAAA;ACLZ,IAAAE,IAAA;AAEA,MAAAC,IAAA;AAAA,EACA,eAAA;AACA,SAAA,OAAAD,EAAA,SAAA,GACAA,KAAA;AAAA,EACA;AACA;;;;;;;;;;;;qBCoKIE,IAAA;AAAA,EAAe,MAAA;AAAA,EACL,cAAA;AAEV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAzEA,EAAA,UAAAC,GAAA,eAAAC,GAAA,YAAAC,GAAA,UAAAC,GAAA,OAAAC,EAAA,IAAAC,EAAAC,CAAA,GAEAC,IAAAC,EAAA,OAAA;AAAA,MAA2C,CAAA,qBAAAf,EAAA,QAAA,EAAA,GAAAa,EAAA;AAAA,MACqB,CAAA,qBAAAb,EAAA,QAAA,EAAA,GAAAa,EAAA;AAAA,IACA,EAAA,GAGhEG,IAAAD,EAAA,OAAA;AAAA,MAAkD,CAAA,8BAAAf,EAAA,SAAA,EAAA,GAAA,CAAAiB,EAAA,SAAA,CAAAJ,EAAA;AAAA,MAC6C,CAAA,8BAAAb,EAAA,KAAA,EAAA,GAAAa,EAAA;AAAA,MACzB,CAAA,8BAAAb,EAAA,QAAA,EAAA,GAAAa,EAAA;AAAA,IACG,EAAA,GAGzEK,IAAAH,EAAA,MAAA,MAAA,QAAAN,EAAA,KAAA,CAAA,GAEAQ,IAAAF,EAAA,MACIG,EAAA,QAIAT,EAAA,MAAA,KAAA,CAAAU,MAAAA,MAAAR,EAAA,KAAA,IAHIF,EAAA,KAGiF,GAGzFW,IAAAL,EAAA,MAAAF,EAAA,YAAA,CAAAA,EAAA,YAAA,CAAAA,EAAA,QAAA;gOAGA,CAAAQ,MAAA;AACI,MAAAX,EAAA,SACIW,EAAA,eAAA;AAAA,IACJ,aAEJ,CAAAA,MAAA;AACI,UAAAd,EAAA;AACI;AAGJ,YAAAe,IAAAD,EAAA,OAAA;AAEA,UAAAH,EAAA,OAAA;AACI,cAAAK,IAAA,CAAA,GAAAd,EAAA,KAAA,GACAe,IAAAD,EAAA,QAAAZ,EAAA,KAAA;AAEA,QAAAa,MAAA,KACID,EAAA,KAAAZ,EAAA,KAAA,IAEAY,EAAA,OAAAC,GAAA,CAAA,GAEJC,EAAAvB,EAAA,QAAAqB,CAAA;AAAA,MAA8C;AAE9C,QAAAE,EAAAvB,EAAA,QAAAoB,CAAA;AAAA,IACJ;;;;;;;;;;;;;;;","x_google_ignoreList":[1]}
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as $, toRefs as k, computed as o, ref as N } from "vue";
2
- import { B as w } from "./index.e29a6907.js";
3
- import { u as F } from "./use-default-slot-validator.b9bff4c6.js";
4
- import { u as R } from "./use-has-slot.fbeb19ec.js";
5
- import { g as C } from "./unique-id.a2a2b458.js";
6
- import { g as f } from "./get-slot-text.99c3d860.js";
7
- import { u as j } from "./i18n.eb5b985b.js";
8
- import { u as z } from "./aria-label.ac9651a5.js";
9
- import { BentoTag as H } from "../tag.js";
10
- import { a as O, C as A } from "./checkbox-input.1c3cc8ed.js";
11
- import { E as Y } from "./error-message.bdcc1020.js";
12
- import { n as J } from "./_plugin-vue2_normalizer.71e2aa87.js";
2
+ import { B as w } from "./typography.Bjtu3Gca.js";
3
+ import { u as F } from "./use-default-slot-validator.BDn0wkYP.js";
4
+ import { u as R } from "./use-has-slot.C9lQZ6nz.js";
5
+ import { g as C } from "./unique-id.XFfoKuc2.js";
6
+ import { g as f } from "./get-slot-text.Cgn-E48s.js";
7
+ import { u as j } from "./i18n.BQkEbtPM.js";
8
+ import { u as z } from "./aria-label.CaUURpnB.js";
9
+ import { B as H } from "./tag.bhKrZHTU.js";
10
+ import { a as O, C as B } from "./checkbox-input.DwDwI2BD.js";
11
+ import { E as Y } from "./error-message.BSxUoE3_.js";
12
+ import { n as J } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
13
13
  import "../assets/checkbox.css";
14
14
  var i = /* @__PURE__ */ ((a) => (a.UPDATE = "update:model-value", a.INPUT = "input", a))(i || {});
15
15
  const K = {
@@ -93,28 +93,28 @@ const K = {
93
93
  },
94
94
  emits: [i.UPDATE, i.INPUT],
95
95
  setup(a, { attrs: e, emit: t, slots: r }) {
96
- const { t: _ } = j(), m = C("description"), h = C("error"), d = R(r), { disabled: v, indeterminate: B, modelValue: b, readonly: E, value: I } = k(a), y = f(r)("default"), g = f(r)("description");
96
+ const { t: m } = j(), _ = C("description"), h = C("error"), d = R(r), { disabled: v, indeterminate: A, modelValue: b, readonly: E, value: I } = k(a), y = f(r)("default"), g = f(r)("description");
97
97
  F("bento-checkbox", r.default, r.description);
98
- const l = o(() => Array.isArray(b.value)), s = o(() => l.value ? b.value.some((u) => u === I.value) : b.value), n = o(() => B.value), x = o(
98
+ const l = o(() => Array.isArray(b.value)), s = o(() => l.value ? b.value.some((u) => u === I.value) : b.value), n = o(() => A.value), x = o(
99
99
  () => !a.disabled && !a.readonly && (a.hasError || !!a.errorMessage)
100
100
  ), S = o(() => !a.disabled && !a.readonly && !!a.errorMessage), c = o(() => d("content")), p = o(() => (n == null ? void 0 : n.value) || (s == null ? void 0 : s.value)), L = o(
101
101
  () => (c == null ? void 0 : c.value) && (l == null ? void 0 : l.value) && (p == null ? void 0 : p.value)
102
102
  ), D = o(
103
103
  () => n.value ? "mixed" : `${!!s.value}`
104
104
  ), T = o(
105
- () => `${S.value ? h : ""} ${y && g ? m : ""}`.trim() || null
105
+ () => `${S.value ? h : ""} ${y && g ? _ : ""}`.trim() || null
106
106
  ), M = N(e["aria-label"]), { ariaLabel: U } = k(a), q = z({
107
107
  ariaLabel: M.value,
108
108
  // TODO: take this line away when the aria-label props is removed
109
109
  label: U,
110
- defaultFallback: d("default") ? f(r)("default") : _("ariaLabelFallback")
110
+ defaultFallback: d("default") ? f(r)("default") : m("ariaLabelFallback")
111
111
  }), P = o(() => x.value), V = o(() => ({
112
- [`b-checkbox--${A.DISABLED}`]: v.value,
113
- [`b-checkbox--${A.READONLY}`]: E.value
112
+ [`b-checkbox--${B.DISABLED}`]: v.value,
113
+ [`b-checkbox--${B.READONLY}`]: E.value
114
114
  }));
115
115
  return {
116
116
  // Values
117
- descriptionId: m,
117
+ descriptionId: _,
118
118
  errorId: h,
119
119
  ariaChecked: D,
120
120
  ariaDescribedBy: T,
@@ -135,7 +135,7 @@ const K = {
135
135
  onChange: (u) => {
136
136
  v.value || (t(i.UPDATE, u), t(i.INPUT, u));
137
137
  },
138
- t: _
138
+ t: m
139
139
  };
140
140
  }
141
141
  });
@@ -148,13 +148,11 @@ var W = function() {
148
148
  X,
149
149
  !1,
150
150
  null,
151
- "e400ef17",
152
- null,
153
- null
151
+ "e400ef17"
154
152
  );
155
153
  const be = Z.exports;
156
154
  export {
157
155
  be as B,
158
156
  i as a
159
157
  };
160
- //# sourceMappingURL=checkbox.9f9c978a.js.map
158
+ //# sourceMappingURL=checkbox.Bi2RDBEZ.js.map