@adyen/bento-vue3 1.60.0 → 1.60.1

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 (581) hide show
  1. package/dist/@types/components.d.ts +201 -0
  2. package/dist/@types/index.d.ts +17835 -0
  3. package/dist/@types/use-form-v4.d.ts +86 -0
  4. package/dist/accordion.js +6 -0
  5. package/dist/accordion.js.map +1 -0
  6. package/dist/action-bar.js +5 -0
  7. package/dist/action-bar.js.map +1 -0
  8. package/dist/alert.js +8 -0
  9. package/dist/alert.js.map +1 -0
  10. package/dist/assets/accordion-item.css +1 -0
  11. package/dist/assets/action-bar.css +1 -0
  12. package/dist/assets/alert.css +1 -0
  13. package/dist/assets/avatar.css +1 -0
  14. package/dist/assets/base-button.css +1 -0
  15. package/dist/assets/base-modal.css +1 -0
  16. package/dist/assets/button-actions-with-menu.css +1 -0
  17. package/dist/assets/button-actions.css +1 -0
  18. package/dist/assets/button.css +1 -0
  19. package/dist/assets/calendar.css +1 -0
  20. package/dist/assets/card.css +1 -0
  21. package/dist/assets/checkbox-group.css +1 -0
  22. package/dist/assets/checkbox-input.css +1 -0
  23. package/dist/assets/checkbox.css +1 -0
  24. package/dist/assets/chip.css +1 -0
  25. package/dist/assets/code-snippet.css +1 -0
  26. package/dist/assets/controls-group.css +1 -0
  27. package/dist/assets/copy.css +1 -0
  28. package/dist/assets/country.css +1 -0
  29. package/dist/assets/currency.css +1 -0
  30. package/dist/assets/dashboard-section.css +1 -0
  31. package/dist/assets/dashed-underline.css +1 -0
  32. package/dist/assets/data-grid-template.css +1 -0
  33. package/dist/assets/data-grid.css +1 -0
  34. package/dist/assets/date-picker.css +1 -0
  35. package/dist/assets/date-range-picker.css +1 -0
  36. package/dist/assets/date.css +1 -0
  37. package/dist/assets/dialog-page.css +1 -0
  38. package/dist/assets/divider.css +1 -0
  39. package/dist/assets/dropdown-default-textbox.css +1 -0
  40. package/dist/assets/dropdown-tag.css +1 -0
  41. package/dist/assets/dropdown.css +1 -0
  42. package/dist/assets/empty-state.css +1 -0
  43. package/dist/assets/error-message.css +1 -0
  44. package/dist/assets/file-uploader.css +1 -0
  45. package/dist/assets/filter-bar.css +1 -0
  46. package/dist/assets/fixed-scroller.css +1 -0
  47. package/dist/assets/focus-trap.css +1 -0
  48. package/dist/assets/footer-actions.css +1 -0
  49. package/dist/assets/form-layout-title.css +1 -0
  50. package/dist/assets/grid-layout.css +1 -0
  51. package/dist/assets/header-with-views.css +1 -0
  52. package/dist/assets/header.css +1 -0
  53. package/dist/assets/info-icon-with-popover.css +1 -0
  54. package/dist/assets/info-icon.css +1 -0
  55. package/dist/assets/input-field-password.css +1 -0
  56. package/dist/assets/input-field-phone-number.css +1 -0
  57. package/dist/assets/input-field.css +1 -0
  58. package/dist/assets/inspector.css +1 -0
  59. package/dist/assets/layout-row.css +1 -0
  60. package/dist/assets/link.css +1 -0
  61. package/dist/assets/listbox-option-tag.css +1 -0
  62. package/dist/assets/loading-indicator.css +1 -0
  63. package/dist/assets/main.css +1 -0
  64. package/dist/assets/menu.css +1 -0
  65. package/dist/assets/modal-fullscreen.css +1 -0
  66. package/dist/assets/pagination.css +1 -0
  67. package/dist/assets/payment-method.css +1 -0
  68. package/dist/assets/popover.css +1 -0
  69. package/dist/assets/popper-container.css +1 -0
  70. package/dist/assets/promo-banner.css +1 -0
  71. package/dist/assets/radio-group.css +1 -0
  72. package/dist/assets/radio-input.css +1 -0
  73. package/dist/assets/rich-text-editor.css +1 -0
  74. package/dist/assets/search-bar.css +1 -0
  75. package/dist/assets/secondary-nav.css +1 -0
  76. package/dist/assets/segmented-control.css +1 -0
  77. package/dist/assets/selection-card-group.css +1 -0
  78. package/dist/assets/sidepanel.css +1 -0
  79. package/dist/assets/status.css +1 -0
  80. package/dist/assets/step.css +1 -0
  81. package/dist/assets/structured-list-item.css +1 -0
  82. package/dist/assets/summary-grid.css +1 -0
  83. package/dist/assets/tabs.css +1 -0
  84. package/dist/assets/tag.css +1 -0
  85. package/dist/assets/teleport.css +1 -0
  86. package/dist/assets/textarea.css +1 -0
  87. package/dist/assets/timeline-item.css +1 -0
  88. package/dist/assets/toast.css +1 -0
  89. package/dist/assets/toggle-button.css +1 -0
  90. package/dist/assets/toggle.css +1 -0
  91. package/dist/assets/tooltip.css +1 -0
  92. package/dist/assets/tutorial.css +1 -0
  93. package/dist/assets/typography.css +1 -0
  94. package/dist/assets/use-cached-selected-values.css +1 -0
  95. package/dist/avatar.js +5 -0
  96. package/dist/avatar.js.map +1 -0
  97. package/dist/button.js +16 -0
  98. package/dist/button.js.map +1 -0
  99. package/dist/card.js +7 -0
  100. package/dist/card.js.map +1 -0
  101. package/dist/checkbox.js +11 -0
  102. package/dist/checkbox.js.map +1 -0
  103. package/dist/chip.js +5 -0
  104. package/dist/chip.js.map +1 -0
  105. package/dist/chunks/1-generic-use.CZhwP2Yc.js +5 -0
  106. package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +1 -0
  107. package/dist/chunks/1-generic-use.R6x8PEGA.js +5 -0
  108. package/dist/chunks/1-generic-use.R6x8PEGA.js.map +1 -0
  109. package/dist/chunks/2-generic-use.CNKjB4B7.js +5 -0
  110. package/dist/chunks/2-generic-use.CNKjB4B7.js.map +1 -0
  111. package/dist/chunks/2-generic-use.w0fUhovx.js +5 -0
  112. package/dist/chunks/2-generic-use.w0fUhovx.js.map +1 -0
  113. package/dist/chunks/3-generic-use.BLEzR04g.js +5 -0
  114. package/dist/chunks/3-generic-use.BLEzR04g.js.map +1 -0
  115. package/dist/chunks/3-generic-use.D3NFHgI4.js +5 -0
  116. package/dist/chunks/3-generic-use.D3NFHgI4.js.map +1 -0
  117. package/dist/chunks/4-generic-use.CULEpvgj.js +5 -0
  118. package/dist/chunks/4-generic-use.CULEpvgj.js.map +1 -0
  119. package/dist/chunks/4-generic-use.D82y3n39.js +5 -0
  120. package/dist/chunks/4-generic-use.D82y3n39.js.map +1 -0
  121. package/dist/chunks/_commonjsHelpers.C6fGbg64.js +7 -0
  122. package/dist/chunks/_commonjsHelpers.C6fGbg64.js.map +1 -0
  123. package/dist/chunks/_plugin-vue_export-helper.CHgC5LLL.js +10 -0
  124. package/dist/chunks/_plugin-vue_export-helper.CHgC5LLL.js.map +1 -0
  125. package/dist/chunks/accordion-item.CihL7JaZ.js +142 -0
  126. package/dist/chunks/accordion-item.CihL7JaZ.js.map +1 -0
  127. package/dist/chunks/action-bar.BDF61iH-.js +203 -0
  128. package/dist/chunks/action-bar.BDF61iH-.js.map +1 -0
  129. package/dist/chunks/adding-payment-methods.BJZLPxtM.js +5 -0
  130. package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +1 -0
  131. package/dist/chunks/adding-payment-methods.Dle8zt43.js +5 -0
  132. package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +1 -0
  133. package/dist/chunks/adyen-giving.Ffw_DlJK.js +5 -0
  134. package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +1 -0
  135. package/dist/chunks/adyen-giving.LiKHj_jY.js +5 -0
  136. package/dist/chunks/adyen-giving.LiKHj_jY.js.map +1 -0
  137. package/dist/chunks/alert.CjegN2iG.js +169 -0
  138. package/dist/chunks/alert.CjegN2iG.js.map +1 -0
  139. package/dist/chunks/aria-label.CaUURpnB.js +13 -0
  140. package/dist/chunks/aria-label.CaUURpnB.js.map +1 -0
  141. package/dist/chunks/avatar.B0-9jC6H.js +94 -0
  142. package/dist/chunks/avatar.B0-9jC6H.js.map +1 -0
  143. package/dist/chunks/base-button.DdNFlbgH.js +115 -0
  144. package/dist/chunks/base-button.DdNFlbgH.js.map +1 -0
  145. package/dist/chunks/base-modal.D2tNbxw3.js +504 -0
  146. package/dist/chunks/base-modal.D2tNbxw3.js.map +1 -0
  147. package/dist/chunks/base-modal.keys.C2PQXcE2.js +5 -0
  148. package/dist/chunks/base-modal.keys.C2PQXcE2.js.map +1 -0
  149. package/dist/chunks/bin.CA6UQCNZ.js +37 -0
  150. package/dist/chunks/bin.CA6UQCNZ.js.map +1 -0
  151. package/dist/chunks/button-actions-with-menu.DG5t9zB7.js +174 -0
  152. package/dist/chunks/button-actions-with-menu.DG5t9zB7.js.map +1 -0
  153. package/dist/chunks/button-actions.1MReMMnL.js +264 -0
  154. package/dist/chunks/button-actions.1MReMMnL.js.map +1 -0
  155. package/dist/chunks/button.CVZJTZv0.js +120 -0
  156. package/dist/chunks/button.CVZJTZv0.js.map +1 -0
  157. package/dist/chunks/calendar.ugV5Vzqs.js +1290 -0
  158. package/dist/chunks/calendar.ugV5Vzqs.js.map +1 -0
  159. package/dist/chunks/card.dF_i6neN.js +213 -0
  160. package/dist/chunks/card.dF_i6neN.js.map +1 -0
  161. package/dist/chunks/checkbox-group.DtXPnGyr.js +192 -0
  162. package/dist/chunks/checkbox-group.DtXPnGyr.js.map +1 -0
  163. package/dist/chunks/checkbox-input.DVayucaL.js +168 -0
  164. package/dist/chunks/checkbox-input.DVayucaL.js.map +1 -0
  165. package/dist/chunks/checkbox.B-jC5L05.js +253 -0
  166. package/dist/chunks/checkbox.B-jC5L05.js.map +1 -0
  167. package/dist/chunks/checkmark-circle-fill.jicbqe7k.js +44 -0
  168. package/dist/chunks/checkmark-circle-fill.jicbqe7k.js.map +1 -0
  169. package/dist/chunks/checkmark-small.D7l69yBf.js +29 -0
  170. package/dist/chunks/checkmark-small.D7l69yBf.js.map +1 -0
  171. package/dist/chunks/chevron-left.BF63HtOH.js +52 -0
  172. package/dist/chunks/chevron-left.BF63HtOH.js.map +1 -0
  173. package/dist/chunks/chevron-up.-0oLlHmh.js +52 -0
  174. package/dist/chunks/chevron-up.-0oLlHmh.js.map +1 -0
  175. package/dist/chunks/chip.BVCzNGaI.js +71 -0
  176. package/dist/chunks/chip.BVCzNGaI.js.map +1 -0
  177. package/dist/chunks/click-outside.C1Ud8AA2.js +23 -0
  178. package/dist/chunks/click-outside.C1Ud8AA2.js.map +1 -0
  179. package/dist/chunks/code-snippet.iD36_pOw.js +334 -0
  180. package/dist/chunks/code-snippet.iD36_pOw.js.map +1 -0
  181. package/dist/chunks/codemirror.Zv80n3Z2.js +14628 -0
  182. package/dist/chunks/codemirror.Zv80n3Z2.js.map +1 -0
  183. package/dist/chunks/controls-group.BX2GxXvb.js +98 -0
  184. package/dist/chunks/controls-group.BX2GxXvb.js.map +1 -0
  185. package/dist/chunks/copy.jE0EciK8.js +156 -0
  186. package/dist/chunks/copy.jE0EciK8.js.map +1 -0
  187. package/dist/chunks/country.BhAcCmRx.js +99 -0
  188. package/dist/chunks/country.BhAcCmRx.js.map +1 -0
  189. package/dist/chunks/country.types.C0Q_hhgJ.js +269 -0
  190. package/dist/chunks/country.types.C0Q_hhgJ.js.map +1 -0
  191. package/dist/chunks/cross-circle-fill-small.mY6ihJcA.js +29 -0
  192. package/dist/chunks/cross-circle-fill-small.mY6ihJcA.js.map +1 -0
  193. package/dist/chunks/cross-circle-fill.B7YpDLTK.js +44 -0
  194. package/dist/chunks/cross-circle-fill.B7YpDLTK.js.map +1 -0
  195. package/dist/chunks/cross-small.CFrBIeYK.js +29 -0
  196. package/dist/chunks/cross-small.CFrBIeYK.js.map +1 -0
  197. package/dist/chunks/cross.CbLEjiVy.js +29 -0
  198. package/dist/chunks/cross.CbLEjiVy.js.map +1 -0
  199. package/dist/chunks/currency.DagWnTry.js +109 -0
  200. package/dist/chunks/currency.DagWnTry.js.map +1 -0
  201. package/dist/chunks/dashboard-section.Bq1abySA.js +165 -0
  202. package/dist/chunks/dashboard-section.Bq1abySA.js.map +1 -0
  203. package/dist/chunks/dashed-underline.DweJIpuJ.js +98 -0
  204. package/dist/chunks/dashed-underline.DweJIpuJ.js.map +1 -0
  205. package/dist/chunks/data-grid-template.UkERMC7S.js +143 -0
  206. package/dist/chunks/data-grid-template.UkERMC7S.js.map +1 -0
  207. package/dist/chunks/data-grid-template.keys.2_AkxuNT.js +5 -0
  208. package/dist/chunks/data-grid-template.keys.2_AkxuNT.js.map +1 -0
  209. package/dist/chunks/data-grid.o4emi6FA.js +3646 -0
  210. package/dist/chunks/data-grid.o4emi6FA.js.map +1 -0
  211. package/dist/chunks/date-input.BqBdAO1E.js +17 -0
  212. package/dist/chunks/date-input.BqBdAO1E.js.map +1 -0
  213. package/dist/chunks/date-picker.BPLtpBbX.js +315 -0
  214. package/dist/chunks/date-picker.BPLtpBbX.js.map +1 -0
  215. package/dist/chunks/date-range-picker.BYvj1y8T.js +1181 -0
  216. package/dist/chunks/date-range-picker.BYvj1y8T.js.map +1 -0
  217. package/dist/chunks/date.CKXySBQv.js +995 -0
  218. package/dist/chunks/date.CKXySBQv.js.map +1 -0
  219. package/dist/chunks/debounce.DUTu11PS.js +10 -0
  220. package/dist/chunks/debounce.DUTu11PS.js.map +1 -0
  221. package/dist/chunks/dialog-page.Cngbnn1Z.js +175 -0
  222. package/dist/chunks/dialog-page.Cngbnn1Z.js.map +1 -0
  223. package/dist/chunks/directive.Cbdox5VL.js +23 -0
  224. package/dist/chunks/directive.Cbdox5VL.js.map +1 -0
  225. package/dist/chunks/divider.qUOSAbU6.js +33 -0
  226. package/dist/chunks/divider.qUOSAbU6.js.map +1 -0
  227. package/dist/chunks/dot.BW-xtyjC.js +29 -0
  228. package/dist/chunks/dot.BW-xtyjC.js.map +1 -0
  229. package/dist/chunks/dropdown-default-textbox.BNhy-QDH.js +419 -0
  230. package/dist/chunks/dropdown-default-textbox.BNhy-QDH.js.map +1 -0
  231. package/dist/chunks/dropdown-tag.DxLOtAIw.js +202 -0
  232. package/dist/chunks/dropdown-tag.DxLOtAIw.js.map +1 -0
  233. package/dist/chunks/dropdown.FJu_m8Tw.js +936 -0
  234. package/dist/chunks/dropdown.FJu_m8Tw.js.map +1 -0
  235. package/dist/chunks/empty-state.BGWjUH6G.js +185 -0
  236. package/dist/chunks/empty-state.BGWjUH6G.js.map +1 -0
  237. package/dist/chunks/error-message.Cb9-ZwSV.js +158 -0
  238. package/dist/chunks/error-message.Cb9-ZwSV.js.map +1 -0
  239. package/dist/chunks/es6.n1ewaW31.js +11 -0
  240. package/dist/chunks/es6.n1ewaW31.js.map +1 -0
  241. package/dist/chunks/events.FNmSWp_P.js +52 -0
  242. package/dist/chunks/events.FNmSWp_P.js.map +1 -0
  243. package/dist/chunks/expand.DusW7F7p.js +33 -0
  244. package/dist/chunks/expand.DusW7F7p.js.map +1 -0
  245. package/dist/chunks/file-uploader.Bp8PDPHt.js +2280 -0
  246. package/dist/chunks/file-uploader.Bp8PDPHt.js.map +1 -0
  247. package/dist/chunks/filter-bar.BRB7BjbE.js +2976 -0
  248. package/dist/chunks/filter-bar.BRB7BjbE.js.map +1 -0
  249. package/dist/chunks/fixed-scroller.BjxA_R63.js +147 -0
  250. package/dist/chunks/fixed-scroller.BjxA_R63.js.map +1 -0
  251. package/dist/chunks/focus-trap.CljZgv9i.js +500 -0
  252. package/dist/chunks/focus-trap.CljZgv9i.js.map +1 -0
  253. package/dist/chunks/footer-actions.jRnnqdse.js +110 -0
  254. package/dist/chunks/footer-actions.jRnnqdse.js.map +1 -0
  255. package/dist/chunks/form-layout-title.CsmjzAje.js +206 -0
  256. package/dist/chunks/form-layout-title.CsmjzAje.js.map +1 -0
  257. package/dist/chunks/form-layout.types.D3EKzbE7.js +5 -0
  258. package/dist/chunks/form-layout.types.D3EKzbE7.js.map +1 -0
  259. package/dist/chunks/generate-uid.NJ8tVoha.js +32 -0
  260. package/dist/chunks/generate-uid.NJ8tVoha.js.map +1 -0
  261. package/dist/chunks/get-date-locale.BN8xEjY0.js +1735 -0
  262. package/dist/chunks/get-date-locale.BN8xEjY0.js.map +1 -0
  263. package/dist/chunks/get-slot-text.DQlZEsId.js +12 -0
  264. package/dist/chunks/get-slot-text.DQlZEsId.js.map +1 -0
  265. package/dist/chunks/grid-layout.BTLE3rac.js +114 -0
  266. package/dist/chunks/grid-layout.BTLE3rac.js.map +1 -0
  267. package/dist/chunks/header-with-views.DJSGKRhj.js +2362 -0
  268. package/dist/chunks/header-with-views.DJSGKRhj.js.map +1 -0
  269. package/dist/chunks/header.BBnN_HU9.js +253 -0
  270. package/dist/chunks/header.BBnN_HU9.js.map +1 -0
  271. package/dist/chunks/i18n.B6g5VX0q.js +3131 -0
  272. package/dist/chunks/i18n.B6g5VX0q.js.map +1 -0
  273. package/dist/chunks/image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js +47 -0
  274. package/dist/chunks/image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js.map +1 -0
  275. package/dist/chunks/index.BDuTpjD8.js +40 -0
  276. package/dist/chunks/index.BDuTpjD8.js.map +1 -0
  277. package/dist/chunks/index.BxBB1rsx.js +15 -0
  278. package/dist/chunks/index.BxBB1rsx.js.map +1 -0
  279. package/dist/chunks/index.CWuzEfiV.js +6 -0
  280. package/dist/chunks/index.CWuzEfiV.js.map +1 -0
  281. package/dist/chunks/index.DD7TppDb.js +10 -0
  282. package/dist/chunks/index.DD7TppDb.js.map +1 -0
  283. package/dist/chunks/index.FNUaPG4G.js +528 -0
  284. package/dist/chunks/index.FNUaPG4G.js.map +1 -0
  285. package/dist/chunks/info-icon-with-popover.D6WFtFFY.js +97 -0
  286. package/dist/chunks/info-icon-with-popover.D6WFtFFY.js.map +1 -0
  287. package/dist/chunks/info-icon.BYCwlUzk.js +45 -0
  288. package/dist/chunks/info-icon.BYCwlUzk.js.map +1 -0
  289. package/dist/chunks/info.HK3R7Drc.js +44 -0
  290. package/dist/chunks/info.HK3R7Drc.js.map +1 -0
  291. package/dist/chunks/input-field-password.CtK2VVqL.js +366 -0
  292. package/dist/chunks/input-field-password.CtK2VVqL.js.map +1 -0
  293. package/dist/chunks/input-field-phone-number.Cf5nQpfS.js +3106 -0
  294. package/dist/chunks/input-field-phone-number.Cf5nQpfS.js.map +1 -0
  295. package/dist/chunks/input-field.C94JL_Qv.js +298 -0
  296. package/dist/chunks/input-field.C94JL_Qv.js.map +1 -0
  297. package/dist/chunks/inspector.CxNXHV8C.js +200 -0
  298. package/dist/chunks/inspector.CxNXHV8C.js.map +1 -0
  299. package/dist/chunks/inspector.types.DyHwE18g.js +5 -0
  300. package/dist/chunks/inspector.types.DyHwE18g.js.map +1 -0
  301. package/dist/chunks/internal-error.BLZodVBE.js +5 -0
  302. package/dist/chunks/internal-error.BLZodVBE.js.map +1 -0
  303. package/dist/chunks/internal-error.BmrwJFpR.js +5 -0
  304. package/dist/chunks/internal-error.BmrwJFpR.js.map +1 -0
  305. package/dist/chunks/keyboard-navigation.CqgGzfZQ.js +66 -0
  306. package/dist/chunks/keyboard-navigation.CqgGzfZQ.js.map +1 -0
  307. package/dist/chunks/layout-row.CZNtHaXd.js +100 -0
  308. package/dist/chunks/layout-row.CZNtHaXd.js.map +1 -0
  309. package/dist/chunks/link.CTH1xj0i.js +116 -0
  310. package/dist/chunks/link.CTH1xj0i.js.map +1 -0
  311. package/dist/chunks/listbox-option-tag.DNBeYvNM.js +55 -0
  312. package/dist/chunks/listbox-option-tag.DNBeYvNM.js.map +1 -0
  313. package/dist/chunks/loading-indicator.DEepb9Wl.js +44 -0
  314. package/dist/chunks/loading-indicator.DEepb9Wl.js.map +1 -0
  315. package/dist/chunks/menu.BcXV6WhV.js +768 -0
  316. package/dist/chunks/menu.BcXV6WhV.js.map +1 -0
  317. package/dist/chunks/modal-fullscreen.D93NZCBg.js +270 -0
  318. package/dist/chunks/modal-fullscreen.D93NZCBg.js.map +1 -0
  319. package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js +5 -0
  320. package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js.map +1 -0
  321. package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.B3uzibmr.js +501 -0
  322. package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.B3uzibmr.js.map +1 -0
  323. package/dist/chunks/no-results-found.Bg_ZcEid.js +5 -0
  324. package/dist/chunks/no-results-found.Bg_ZcEid.js.map +1 -0
  325. package/dist/chunks/no-results-found.BqvYsBR6.js +5 -0
  326. package/dist/chunks/no-results-found.BqvYsBR6.js.map +1 -0
  327. package/dist/chunks/notifications-cleared.BMZk37uf.js +5 -0
  328. package/dist/chunks/notifications-cleared.BMZk37uf.js.map +1 -0
  329. package/dist/chunks/notifications-cleared.C7W9ZXY7.js +5 -0
  330. package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +1 -0
  331. package/dist/chunks/on-click-outside.D9aY9g8G.js +101 -0
  332. package/dist/chunks/on-click-outside.D9aY9g8G.js.map +1 -0
  333. package/dist/chunks/page-not-found.COJLPVaU.js +5 -0
  334. package/dist/chunks/page-not-found.COJLPVaU.js.map +1 -0
  335. package/dist/chunks/page-not-found.DWW6W-PZ.js +5 -0
  336. package/dist/chunks/page-not-found.DWW6W-PZ.js.map +1 -0
  337. package/dist/chunks/pagination.rrPdG7nK.js +461 -0
  338. package/dist/chunks/pagination.rrPdG7nK.js.map +1 -0
  339. package/dist/chunks/payment-method.eazefwm6.js +125 -0
  340. package/dist/chunks/payment-method.eazefwm6.js.map +1 -0
  341. package/dist/chunks/payment-method.types.BqtH7RM2.js +5 -0
  342. package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -0
  343. package/dist/chunks/planned-maintenance.C61sWB9h.js +5 -0
  344. package/dist/chunks/planned-maintenance.C61sWB9h.js.map +1 -0
  345. package/dist/chunks/planned-maintenance.jmWYTdet.js +5 -0
  346. package/dist/chunks/planned-maintenance.jmWYTdet.js.map +1 -0
  347. package/dist/chunks/popover.KFyR9BXF.js +350 -0
  348. package/dist/chunks/popover.KFyR9BXF.js.map +1 -0
  349. package/dist/chunks/popper-container.b5h4zYgT.js +1396 -0
  350. package/dist/chunks/popper-container.b5h4zYgT.js.map +1 -0
  351. package/dist/chunks/popper-container.types.BCZMbVFD.js +9 -0
  352. package/dist/chunks/popper-container.types.BCZMbVFD.js.map +1 -0
  353. package/dist/chunks/promo-banner.BfXfaCrf.js +126 -0
  354. package/dist/chunks/promo-banner.BfXfaCrf.js.map +1 -0
  355. package/dist/chunks/radio-group.Q8q8J7WW.js +321 -0
  356. package/dist/chunks/radio-group.Q8q8J7WW.js.map +1 -0
  357. package/dist/chunks/radio-input.DKfQGxtp.js +96 -0
  358. package/dist/chunks/radio-input.DKfQGxtp.js.map +1 -0
  359. package/dist/chunks/referrals.BvtT-kQS.js +5 -0
  360. package/dist/chunks/referrals.BvtT-kQS.js.map +1 -0
  361. package/dist/chunks/referrals.aX8WZigH.js +5 -0
  362. package/dist/chunks/referrals.aX8WZigH.js.map +1 -0
  363. package/dist/chunks/refresh.C20ROVDS.js +29 -0
  364. package/dist/chunks/refresh.C20ROVDS.js.map +1 -0
  365. package/dist/chunks/resize.Bqks3WUm.js +15 -0
  366. package/dist/chunks/resize.Bqks3WUm.js.map +1 -0
  367. package/dist/chunks/rich-text-editor.Ddt7IVXL.js +6221 -0
  368. package/dist/chunks/rich-text-editor.Ddt7IVXL.js.map +1 -0
  369. package/dist/chunks/search-bar.ZidZj4NE.js +114 -0
  370. package/dist/chunks/search-bar.ZidZj4NE.js.map +1 -0
  371. package/dist/chunks/search.CW_aTqip.js +44 -0
  372. package/dist/chunks/search.CW_aTqip.js.map +1 -0
  373. package/dist/chunks/secondary-nav.Cy2JAzoO.js +138 -0
  374. package/dist/chunks/secondary-nav.Cy2JAzoO.js.map +1 -0
  375. package/dist/chunks/segmented-control.CZpx9H-d.js +144 -0
  376. package/dist/chunks/segmented-control.CZpx9H-d.js.map +1 -0
  377. package/dist/chunks/segmented-control.types.BHRLV8KU.js +5 -0
  378. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -0
  379. package/dist/chunks/selection-card-group.B2EoXxux.js +474 -0
  380. package/dist/chunks/selection-card-group.B2EoXxux.js.map +1 -0
  381. package/dist/chunks/show.ByWWaogc.js +64 -0
  382. package/dist/chunks/show.ByWWaogc.js.map +1 -0
  383. package/dist/chunks/sidepanel.CNA3pTXy.js +254 -0
  384. package/dist/chunks/sidepanel.CNA3pTXy.js.map +1 -0
  385. package/dist/chunks/sidepanel.keys.R0DKQuYx.js +5 -0
  386. package/dist/chunks/sidepanel.keys.R0DKQuYx.js.map +1 -0
  387. package/dist/chunks/status.types.Bdv2zuuh.js +44 -0
  388. package/dist/chunks/status.types.Bdv2zuuh.js.map +1 -0
  389. package/dist/chunks/step.7l-t-eN9.js +264 -0
  390. package/dist/chunks/step.7l-t-eN9.js.map +1 -0
  391. package/dist/chunks/structured-list-item.CLpfMbkV.js +108 -0
  392. package/dist/chunks/structured-list-item.CLpfMbkV.js.map +1 -0
  393. package/dist/chunks/success.DhioLvPD.js +5 -0
  394. package/dist/chunks/success.DhioLvPD.js.map +1 -0
  395. package/dist/chunks/success.nNwxJRBS.js +5 -0
  396. package/dist/chunks/success.nNwxJRBS.js.map +1 -0
  397. package/dist/chunks/summary-grid.keys.CxTf_FOc.js +6 -0
  398. package/dist/chunks/summary-grid.keys.CxTf_FOc.js.map +1 -0
  399. package/dist/chunks/summary-grid.types.BcicwgZm.js +466 -0
  400. package/dist/chunks/summary-grid.types.BcicwgZm.js.map +1 -0
  401. package/dist/chunks/tabs.Bn4YIjoy.js +266 -0
  402. package/dist/chunks/tabs.Bn4YIjoy.js.map +1 -0
  403. package/dist/chunks/tabs.keys.Bc2pSKRw.js +7 -0
  404. package/dist/chunks/tabs.keys.Bc2pSKRw.js.map +1 -0
  405. package/dist/chunks/tag.DwnsmTVq.js +51 -0
  406. package/dist/chunks/tag.DwnsmTVq.js.map +1 -0
  407. package/dist/chunks/teleport.CfGWjxe2.js +129 -0
  408. package/dist/chunks/teleport.CfGWjxe2.js.map +1 -0
  409. package/dist/chunks/textarea.Dl5TFi8E.js +278 -0
  410. package/dist/chunks/textarea.Dl5TFi8E.js.map +1 -0
  411. package/dist/chunks/timeline-item.CcbL86D0.js +567 -0
  412. package/dist/chunks/timeline-item.CcbL86D0.js.map +1 -0
  413. package/dist/chunks/toast.Ae5ZoWHb.js +221 -0
  414. package/dist/chunks/toast.Ae5ZoWHb.js.map +1 -0
  415. package/dist/chunks/toggle-button.Dv1t15yj.js +80 -0
  416. package/dist/chunks/toggle-button.Dv1t15yj.js.map +1 -0
  417. package/dist/chunks/toggle.hoD_i2Ey.js +161 -0
  418. package/dist/chunks/toggle.hoD_i2Ey.js.map +1 -0
  419. package/dist/chunks/tooltip.D2o0d8Xf.js +205 -0
  420. package/dist/chunks/tooltip.D2o0d8Xf.js.map +1 -0
  421. package/dist/chunks/truncate.BfIl_-71.js +8 -0
  422. package/dist/chunks/truncate.BfIl_-71.js.map +1 -0
  423. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.Bcu-t4d8.js +423 -0
  424. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.Bcu-t4d8.js.map +1 -0
  425. package/dist/chunks/typography.DN5eC5ch.js +83 -0
  426. package/dist/chunks/typography.DN5eC5ch.js.map +1 -0
  427. package/dist/chunks/upload-files.5wQwbfkp.js +5 -0
  428. package/dist/chunks/upload-files.5wQwbfkp.js.map +1 -0
  429. package/dist/chunks/upload-files.jTQY6y2X.js +5 -0
  430. package/dist/chunks/upload-files.jTQY6y2X.js.map +1 -0
  431. package/dist/chunks/use-bento-toast-controller.D3LA1FCd.js +50 -0
  432. package/dist/chunks/use-bento-toast-controller.D3LA1FCd.js.map +1 -0
  433. package/dist/chunks/use-cached-selected-values.Ber7lUiH.js +1475 -0
  434. package/dist/chunks/use-cached-selected-values.Ber7lUiH.js.map +1 -0
  435. package/dist/chunks/use-click-outside.BnhTgpSt.js +14 -0
  436. package/dist/chunks/use-click-outside.BnhTgpSt.js.map +1 -0
  437. package/dist/chunks/use-country-items.4kZgVg_l.js +30 -0
  438. package/dist/chunks/use-country-items.4kZgVg_l.js.map +1 -0
  439. package/dist/chunks/use-country-phon-code.DVgE19zT.js +5610 -0
  440. package/dist/chunks/use-country-phon-code.DVgE19zT.js.map +1 -0
  441. package/dist/chunks/use-default-slot-validator.O02rzsob.js +16 -0
  442. package/dist/chunks/use-default-slot-validator.O02rzsob.js.map +1 -0
  443. package/dist/chunks/use-expandable-content-height.GkjjbmPy.js +17 -0
  444. package/dist/chunks/use-expandable-content-height.GkjjbmPy.js.map +1 -0
  445. package/dist/chunks/use-form-layout-loading.D3lALhtC.js +12 -0
  446. package/dist/chunks/use-form-layout-loading.D3lALhtC.js.map +1 -0
  447. package/dist/chunks/use-has-slot.B7eQSabc.js +15 -0
  448. package/dist/chunks/use-has-slot.B7eQSabc.js.map +1 -0
  449. package/dist/chunks/warning-filled.DmHh0nYG.js +29 -0
  450. package/dist/chunks/warning-filled.DmHh0nYG.js.map +1 -0
  451. package/dist/chunks/wrong-environment.BOsyKdRI.js +5 -0
  452. package/dist/chunks/wrong-environment.BOsyKdRI.js.map +1 -0
  453. package/dist/chunks/wrong-environment.BiHTPtbJ.js +5 -0
  454. package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +1 -0
  455. package/dist/click-outside.js +5 -0
  456. package/dist/click-outside.js.map +1 -0
  457. package/dist/code-snippet.js +8 -0
  458. package/dist/code-snippet.js.map +1 -0
  459. package/dist/country.js +12 -0
  460. package/dist/country.js.map +1 -0
  461. package/dist/currency.js +6 -0
  462. package/dist/currency.js.map +1 -0
  463. package/dist/dashboard-template.js +6 -0
  464. package/dist/dashboard-template.js.map +1 -0
  465. package/dist/dashed-underline.js +5 -0
  466. package/dist/dashed-underline.js.map +1 -0
  467. package/dist/data-grid-template.js +5 -0
  468. package/dist/data-grid-template.js.map +1 -0
  469. package/dist/data-grid.js +11 -0
  470. package/dist/data-grid.js.map +1 -0
  471. package/dist/date-picker.js +8 -0
  472. package/dist/date-picker.js.map +1 -0
  473. package/dist/date-range-picker.js +8 -0
  474. package/dist/date-range-picker.js.map +1 -0
  475. package/dist/date.js +6 -0
  476. package/dist/date.js.map +1 -0
  477. package/dist/divider.js +5 -0
  478. package/dist/divider.js.map +1 -0
  479. package/dist/dropdown.js +16 -0
  480. package/dist/dropdown.js.map +1 -0
  481. package/dist/empty-state.js +8 -0
  482. package/dist/empty-state.js.map +1 -0
  483. package/dist/file-uploader.js +5 -0
  484. package/dist/file-uploader.js.map +1 -0
  485. package/dist/filter-bar.js +8 -0
  486. package/dist/filter-bar.js.map +1 -0
  487. package/dist/focus-trap.js +5 -0
  488. package/dist/focus-trap.js.map +1 -0
  489. package/dist/fonts/fonts.css +2 -0
  490. package/dist/form-layout.js +8 -0
  491. package/dist/form-layout.js.map +1 -0
  492. package/dist/header-with-views.js +5 -0
  493. package/dist/header-with-views.js.map +1 -0
  494. package/dist/header.js +5 -0
  495. package/dist/header.js.map +1 -0
  496. package/dist/image.js +7 -0
  497. package/dist/image.js.map +1 -0
  498. package/dist/index.js +371 -0
  499. package/dist/index.js.map +1 -0
  500. package/dist/info-icon.js +5 -0
  501. package/dist/info-icon.js.map +1 -0
  502. package/dist/input-field-password.js +10 -0
  503. package/dist/input-field-password.js.map +1 -0
  504. package/dist/input-field-phone-number.js +5 -0
  505. package/dist/input-field-phone-number.js.map +1 -0
  506. package/dist/input-field.js +10 -0
  507. package/dist/input-field.js.map +1 -0
  508. package/dist/inspector.js +7 -0
  509. package/dist/inspector.js.map +1 -0
  510. package/dist/internal.js +43 -0
  511. package/dist/internal.js.map +1 -0
  512. package/dist/layout.js +6 -0
  513. package/dist/layout.js.map +1 -0
  514. package/dist/link.js +6 -0
  515. package/dist/link.js.map +1 -0
  516. package/dist/loading-indicator.js +6 -0
  517. package/dist/loading-indicator.js.map +1 -0
  518. package/dist/menu.js +6 -0
  519. package/dist/menu.js.map +1 -0
  520. package/dist/modal-fullscreen.js +6 -0
  521. package/dist/modal-fullscreen.js.map +1 -0
  522. package/dist/modal.js +14 -0
  523. package/dist/modal.js.map +1 -0
  524. package/dist/pagination.js +5 -0
  525. package/dist/pagination.js.map +1 -0
  526. package/dist/payment-method.js +7 -0
  527. package/dist/payment-method.js.map +1 -0
  528. package/dist/popover.js +6 -0
  529. package/dist/popover.js.map +1 -0
  530. package/dist/popper-container.js +10 -0
  531. package/dist/popper-container.js.map +1 -0
  532. package/dist/promo-banner.js +7 -0
  533. package/dist/promo-banner.js.map +1 -0
  534. package/dist/radio-group.js +9 -0
  535. package/dist/radio-group.js.map +1 -0
  536. package/dist/rich-text-editor.js +5 -0
  537. package/dist/rich-text-editor.js.map +1 -0
  538. package/dist/search-bar.js +9 -0
  539. package/dist/search-bar.js.map +1 -0
  540. package/dist/secondary-nav.js +5 -0
  541. package/dist/secondary-nav.js.map +1 -0
  542. package/dist/segmented-control.js +7 -0
  543. package/dist/segmented-control.js.map +1 -0
  544. package/dist/selection-card.js +7 -0
  545. package/dist/selection-card.js.map +1 -0
  546. package/dist/sidepanel.js +7 -0
  547. package/dist/sidepanel.js.map +1 -0
  548. package/dist/status.js +6 -0
  549. package/dist/status.js.map +1 -0
  550. package/dist/stepper.js +8 -0
  551. package/dist/stepper.js.map +1 -0
  552. package/dist/structured-list.js +6 -0
  553. package/dist/structured-list.js.map +1 -0
  554. package/dist/styles/bento-dark.css +2055 -0
  555. package/dist/styles/bento-light.css +2054 -0
  556. package/dist/styles/bento.css +2054 -0
  557. package/dist/styles/legacy.css +2209 -0
  558. package/dist/styles/styleguide.css +2109 -0
  559. package/dist/styles/utility.css +987 -0
  560. package/dist/summary-grid.js +12 -0
  561. package/dist/summary-grid.js.map +1 -0
  562. package/dist/tabs.js +6 -0
  563. package/dist/tabs.js.map +1 -0
  564. package/dist/tag.js +6 -0
  565. package/dist/tag.js.map +1 -0
  566. package/dist/textarea.js +5 -0
  567. package/dist/textarea.js.map +1 -0
  568. package/dist/timeline.js +10 -0
  569. package/dist/timeline.js.map +1 -0
  570. package/dist/toast.js +5 -0
  571. package/dist/toast.js.map +1 -0
  572. package/dist/toggle.js +7 -0
  573. package/dist/toggle.js.map +1 -0
  574. package/dist/tutorial.js +5 -0
  575. package/dist/tutorial.js.map +1 -0
  576. package/dist/typography.js +8 -0
  577. package/dist/typography.js.map +1 -0
  578. package/dist/use-form-v4.js +8300 -0
  579. package/dist/use-form-v4.js.map +1 -0
  580. package/dist/web-types.json +49 -0
  581. package/package.json +5 -5
@@ -0,0 +1,213 @@
1
+ import { defineComponent as K, useSlots as j, ref as S, watch as B, computed as n, createElementBlock as i, openBlock as d, normalizeClass as c, createCommentVNode as s, createVNode as L, unref as o, renderSlot as b, withKeys as A, createElementVNode as m, createBlock as _, mergeProps as J, withCtx as f, Transition as q, normalizeStyle as G } from "vue";
2
+ import { B as E } from "./typography.DN5eC5ch.js";
3
+ import { C as Q, a as X } from "./chevron-up.-0oLlHmh.js";
4
+ import { u as Z } from "./use-expandable-content-height.GkjjbmPy.js";
5
+ import { u as ee } from "./use-has-slot.B7eQSabc.js";
6
+ import { g as ae } from "./generate-uid.NJ8tVoha.js";
7
+ import { u as te } from "./i18n.B6g5VX0q.js";
8
+ import { o as oe } from "./resize.Bqks3WUm.js";
9
+ import { c as ne, B as de } from "./button-actions.1MReMMnL.js";
10
+ import { _ as se } from "./_plugin-vue_export-helper.CHgC5LLL.js";
11
+ import "../assets/card.css";
12
+ var T = /* @__PURE__ */ ((l) => (l.PRIMARY = "primary", l.SECONDARY = "secondary", l))(T || {}), p = /* @__PURE__ */ ((l) => (l.DEFAULT = "default", l.SMALL = "small", l))(p || {});
13
+ const D = {
14
+ "en-US": {
15
+ hideContent: "Hide content",
16
+ showContent: "Show content"
17
+ },
18
+ "ja-JP": {
19
+ hideContent: "コンテンツを非表示",
20
+ showContent: "コンテンツを表示"
21
+ },
22
+ "pt-BR": {
23
+ hideContent: "Ocultar conteúdo",
24
+ showContent: "Mostrar conteúdo"
25
+ }
26
+ }, le = {
27
+ key: 0,
28
+ class: "b-card__image"
29
+ }, re = ["tabindex", "aria-controls", "aria-expanded", "role"], ie = { class: "b-card__header-wrapper" }, ce = {
30
+ key: 0,
31
+ class: "b-card__header-slot-wrapper"
32
+ }, ue = ["id"], pe = {
33
+ i18n: { messages: D },
34
+ name: "bento-card"
35
+ }, be = /* @__PURE__ */ K({
36
+ ...pe,
37
+ props: {
38
+ actions: { default: null },
39
+ actionsLayout: { default: ne.BUTTONS_END },
40
+ background: { default: T.PRIMARY },
41
+ closed: { type: Boolean, default: !1 },
42
+ disabled: { type: Boolean, default: !1 },
43
+ expandable: { type: Boolean, default: !1 },
44
+ titleSize: { default: p.DEFAULT }
45
+ },
46
+ emits: ["click", "expanded"],
47
+ setup(l, { emit: H }) {
48
+ const { t: y } = te({ messages: D }), I = j(), t = ee(I), e = l, C = H, u = S(null), g = ae("card"), r = S(!e.closed);
49
+ B(
50
+ () => e.closed,
51
+ (a) => {
52
+ r.value = !a;
53
+ }
54
+ );
55
+ const v = n(() => t("default") || t("description") || t("header")), M = n(() => t("default") || t("header")), x = n(
56
+ () => {
57
+ var a;
58
+ return (t("content") || ((a = e.actions) == null ? void 0 : a.length)) && (!e.expandable || e.expandable && r.value);
59
+ }
60
+ ), z = n(() => e.expandable && !e.disabled ? 0 : -1), N = n(() => ({
61
+ [`b-card--${e.background}`]: e.background,
62
+ "b-card--expandable": e.expandable,
63
+ "b-card--disabled": e.expandable && e.disabled
64
+ })), U = n(() => ({
65
+ "b-card__header--expandable": e.expandable,
66
+ "b-card__header--without-body": !e.expandable && !x.value
67
+ })), $ = n(() => ({
68
+ "b-card__toggle--small-text": e.titleSize === p.SMALL
69
+ })), R = n(() => ({
70
+ "b-card__body--expandable": e.expandable && t("content"),
71
+ "b-card__body--without-header": !e.expandable && !v.value
72
+ })), O = n(() => ({
73
+ "b-card__content--without-header": !e.expandable && !v.value,
74
+ "b-card__content--expandable": e.expandable
75
+ })), P = n(() => {
76
+ const a = !e.expandable && e.actions && !t("content");
77
+ return {
78
+ "b-card__actions--without-content": a,
79
+ "b-card__actions--without-content-and-with-header": a && v.value
80
+ };
81
+ }), F = n(() => ({
82
+ "b-card__title-wrapper--truncated": t("header")
83
+ })), V = n(
84
+ () => ({
85
+ el: "div",
86
+ variant: e.titleSize === p.DEFAULT ? "title" : "body",
87
+ strongest: e.titleSize === p.SMALL,
88
+ wide: e.titleSize === p.SMALL
89
+ })
90
+ ), { updateContentHeight: w, contentHeight: k } = Z(u, r), W = n(
91
+ () => e.expandable && k.value ? { "max-height": k.value } : {}
92
+ );
93
+ B(
94
+ () => u.value,
95
+ () => {
96
+ let a = null;
97
+ !a && u.value && (a = oe(u.value, () => {
98
+ u.value && w();
99
+ }));
100
+ }
101
+ );
102
+ const h = () => {
103
+ !e.disabled && e.expandable && (r.value = !r.value, C("expanded", r.value), w());
104
+ }, Y = () => {
105
+ e.disabled || C("click");
106
+ };
107
+ return (a, ve) => (d(), i("div", {
108
+ class: c(["b-card", N.value]),
109
+ "data-testid": "card",
110
+ onClick: Y
111
+ }, [
112
+ o(t)("image") ? (d(), i("div", le, [
113
+ b(a.$slots, "image", {}, void 0, !0)
114
+ ])) : s("", !0),
115
+ v.value ? (d(), i("div", {
116
+ key: 1,
117
+ class: c(["b-card__header", U.value]),
118
+ tabindex: z.value,
119
+ "aria-controls": a.expandable ? o(g) : null,
120
+ "aria-expanded": a.expandable ? `${r.value}` : null,
121
+ role: a.expandable ? "button" : null,
122
+ onClick: h,
123
+ onKeypress: [
124
+ A(h, ["enter"]),
125
+ A(h, ["space"])
126
+ ]
127
+ }, [
128
+ m("div", ie, [
129
+ M.value ? (d(), i("div", ce, [
130
+ m("div", {
131
+ class: c(["b-card__title-wrapper", F.value])
132
+ }, [
133
+ a.expandable ? (d(), i("div", {
134
+ key: 0,
135
+ class: c(["b-card__toggle", $.value])
136
+ }, [
137
+ r.value ? (d(), _(o(Q), {
138
+ key: 0,
139
+ "svg-title": o(y)("hideContent"),
140
+ "aria-hidden": "true"
141
+ }, null, 8, ["svg-title"])) : (d(), _(o(X), {
142
+ key: 1,
143
+ "svg-title": o(y)("showContent"),
144
+ "aria-hidden": "true"
145
+ }, null, 8, ["svg-title"]))
146
+ ], 2)) : s("", !0),
147
+ o(t)("default") ? (d(), _(o(E), J({
148
+ key: 1,
149
+ class: "b-card__title"
150
+ }, V.value), {
151
+ default: f(() => [
152
+ b(a.$slots, "default", {}, void 0, !0)
153
+ ]),
154
+ _: 3
155
+ }, 16)) : s("", !0)
156
+ ], 2),
157
+ o(t)("header") ? b(a.$slots, "header", { key: 0 }, void 0, !0) : s("", !0)
158
+ ])) : s("", !0),
159
+ o(t)("description") ? (d(), _(o(E), {
160
+ key: 1,
161
+ class: "b-card__description",
162
+ el: "div",
163
+ variant: "body"
164
+ }, {
165
+ default: f(() => [
166
+ b(a.$slots, "description", {}, void 0, !0)
167
+ ]),
168
+ _: 3
169
+ })) : s("", !0)
170
+ ])
171
+ ], 42, re)) : s("", !0),
172
+ L(q, { name: "b-card__animation" }, {
173
+ default: f(() => [
174
+ x.value ? (d(), i("div", {
175
+ key: 0,
176
+ class: "b-card__wrapper",
177
+ style: G(W.value)
178
+ }, [
179
+ m("div", {
180
+ id: a.expandable ? o(g) : null,
181
+ ref_key: "contentDiv",
182
+ ref: u,
183
+ class: c(["b-card__body", R.value])
184
+ }, [
185
+ o(t)("content") ? (d(), i("div", {
186
+ key: 0,
187
+ class: c(["b-card__content", O.value])
188
+ }, [
189
+ b(a.$slots, "content", {}, void 0, !0)
190
+ ], 2)) : s("", !0),
191
+ a.actions ? (d(), i("div", {
192
+ key: 1,
193
+ class: c(["b-card__actions", P.value])
194
+ }, [
195
+ L(o(de), {
196
+ actions: a.actions,
197
+ layout: a.actionsLayout
198
+ }, null, 8, ["actions", "layout"])
199
+ ], 2)) : s("", !0)
200
+ ], 10, ue)
201
+ ], 4)) : s("", !0)
202
+ ]),
203
+ _: 3
204
+ })
205
+ ], 2));
206
+ }
207
+ }), Se = /* @__PURE__ */ se(be, [["__scopeId", "data-v-518b98d9"]]);
208
+ export {
209
+ T as B,
210
+ p as a,
211
+ Se as c
212
+ };
213
+ //# sourceMappingURL=card.dF_i6neN.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card.dF_i6neN.js","sources":["../../../vue2/src/components/card/card.types.ts","../../../vue2/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('hideContent')\" aria-hidden=\"true\" />\n <chevron-down-icon v-else :svg-title=\"t('showContent')\" 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 '@/core/utils/ts';\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=\"@/core/components/card/card.scss\" />\n"],"names":["BentoCardBackground","BentoCardBackground2","BentoCardTitleSize","BentoCardTitleSize2","__default__","messages","t","useI18n","slots","useSlots","hasSlot","useHasSlot","props","__props","emit","__emit","contentDiv","ref","cardId","generateUid","showContent","watch","value","showHeader","computed","showTitleWrapper","showCardBody","_a","tabIndex","cardConditionalClasses","cardHeaderConditionalClasses","cardToggleConditionalClasses","cardBodyConditionalClasses","cardContentConditionalClasses","cardActionsConditionalClasses","isNotExpandableWithoutContent","cardTitleWrapperConditionalClasses","typography","updateContentHeight","contentHeight","useExpandableContentHeight","contentMaxHeight","observer","observeSizeOfElement","toggleExpansion","onClick"],"mappings":"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"}
@@ -0,0 +1,192 @@
1
+ import { defineComponent as B, toRef as I, computed as l, watch as y, ref as T, resolveComponent as m, createElementBlock as v, openBlock as n, createVNode as N, createBlock as E, createCommentVNode as V, normalizeClass as w, withCtx as s, Fragment as O, renderList as A, createSlots as G, createTextVNode as k, toDisplayString as S, renderSlot as L, mergeProps as _ } from "vue";
2
+ import { a as d, B as U } from "./checkbox.B-jC5L05.js";
3
+ import { g as P } from "./generate-uid.NJ8tVoha.js";
4
+ import { d as R } from "./typography.DN5eC5ch.js";
5
+ import { u as q } from "./use-form-layout-loading.D3lALhtC.js";
6
+ import { E as $ } from "./error-message.Cb9-ZwSV.js";
7
+ import { C as z } from "./controls-group.BX2GxXvb.js";
8
+ import { _ as D } from "./_plugin-vue_export-helper.CHgC5LLL.js";
9
+ import "../assets/checkbox-group.css";
10
+ var i = /* @__PURE__ */ ((e) => (e.HORIZONTAL = "horizontal", e.VERTICAL = "vertical", e))(i || {});
11
+ const C = "bento-checkbox-group", F = B({
12
+ name: C,
13
+ components: { BentoCheckbox: U, ControlsGroup: z, ErrorMessage: $ },
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: i.VERTICAL,
77
+ validator: (e) => Object.values(i).includes(e)
78
+ }
79
+ },
80
+ emits: [d.UPDATE, d.INPUT],
81
+ setup(e, { emit: u, slots: b }) {
82
+ const f = P("error"), { isReadOnly: a } = q(I(e, "readonly")), g = l(
83
+ () => !e.disabled && !a.value && (!!e.errorMessage || e.hasError)
84
+ ), c = l(
85
+ () => !e.disabled && !a.value && !!e.errorMessage
86
+ ), p = l(() => ({
87
+ "b-checkbox-group__checkboxes--horizontal": e.variant === i.HORIZONTAL
88
+ })), t = (r) => !!b[r], o = l(() => t("content") && e.variant !== "vertical");
89
+ y(
90
+ o,
91
+ (r) => {
92
+ if (r)
93
+ throw new Error("The content slot is only available for the vertical checkbox group layout");
94
+ },
95
+ { immediate: !0 }
96
+ );
97
+ const h = T(e.modelValue);
98
+ y(
99
+ () => e.modelValue,
100
+ () => {
101
+ h.value = e.modelValue;
102
+ }
103
+ );
104
+ const M = (r) => {
105
+ h.value = r, u(d.UPDATE, r), u(d.INPUT, r);
106
+ };
107
+ return e.hasError && R(
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: C,
116
+ errorId: f,
117
+ isReadOnly: a,
118
+ shouldShowGroupError: g,
119
+ shouldShowGroupErrorMessage: c,
120
+ conditionalClasses: p,
121
+ inputValue: h,
122
+ hasContentSlot: t,
123
+ // Methods
124
+ onInput: M
125
+ };
126
+ }
127
+ }), H = { class: "b-checkbox-group" };
128
+ function Z(e, u, b, f, a, g) {
129
+ const c = m("bento-checkbox"), p = m("controls-group"), t = m("error-message");
130
+ return n(), v("div", H, [
131
+ N(p, {
132
+ class: w(["b-checkbox-group__checkboxes", e.conditionalClasses]),
133
+ "aria-describedby": e.shouldShowGroupErrorMessage ? e.errorId : "",
134
+ "component-name": e.COMPONENT_NAME,
135
+ description: e.description,
136
+ disabled: e.disabled,
137
+ form: e.formId,
138
+ "hide-label": e.hideLabel,
139
+ label: e.label,
140
+ optional: e.optional,
141
+ required: e.required,
142
+ "tooltip-text": e.tooltipText
143
+ }, {
144
+ default: s(() => [
145
+ (n(!0), v(O, null, A(e.items, (o) => (n(), E(c, {
146
+ key: o.value,
147
+ "model-value": e.inputValue,
148
+ value: o.value,
149
+ disabled: e.disabled || o.disabled,
150
+ "has-error": e.shouldShowGroupError || o.hasError,
151
+ "error-message": e.shouldShowGroupError ? null : o.errorMessage,
152
+ readonly: e.isReadOnly || o.readonly,
153
+ tag: o.tag,
154
+ "onUpdate:modelValue": e.onInput
155
+ }, G({
156
+ default: s(() => [
157
+ k(S(o.label), 1)
158
+ ]),
159
+ _: 2
160
+ }, [
161
+ o.description ? {
162
+ name: "description",
163
+ fn: s(() => [
164
+ k(S(o.description), 1)
165
+ ]),
166
+ key: "0"
167
+ } : void 0,
168
+ e.hasContentSlot("content") ? {
169
+ name: "content",
170
+ fn: s(() => [
171
+ L(e.$slots, "content", _({ ref_for: !0 }, o), void 0, !0)
172
+ ]),
173
+ key: "1"
174
+ } : void 0
175
+ ]), 1032, ["model-value", "value", "disabled", "has-error", "error-message", "readonly", "tag", "onUpdate:modelValue"]))), 128))
176
+ ]),
177
+ _: 3
178
+ }, 8, ["aria-describedby", "component-name", "class", "description", "disabled", "form", "hide-label", "label", "optional", "required", "tooltip-text"]),
179
+ e.shouldShowGroupErrorMessage ? (n(), E(t, {
180
+ key: 0,
181
+ id: e.errorId,
182
+ "error-message": e.errorMessage,
183
+ class: "b-checkbox-group__error-message"
184
+ }, null, 8, ["id", "error-message"])) : V("", !0)
185
+ ]);
186
+ }
187
+ const ee = /* @__PURE__ */ D(F, [["render", Z], ["__scopeId", "data-v-0b4123a9"]]);
188
+ export {
189
+ i as B,
190
+ ee as c
191
+ };
192
+ //# sourceMappingURL=checkbox-group.DtXPnGyr.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkbox-group.DtXPnGyr.js","sources":["../../../core/src/components/checkbox-group/checkbox-group.types.ts","../../../vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue"],"sourcesContent":["import type { BentoCheckboxTag } from '@/core/components/checkbox/checkbox.types';\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 {\n BentoCheckboxGroupItems,\n BentoCheckboxGroupVariant,\n } from '@/core/components/checkbox-group/checkbox-group.types';\n import BentoCheckbox from '@/components/checkbox/checkbox.vue';\n import { BentoCheckboxEvent } from '@/core/components/checkbox/checkbox.types';\n import { generateUid } from '@/core/utils/ts';\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=\"@/core/components/checkbox-group/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","openBlock","createElementBlock","_hoisted_1","_ctx","hideLabel","label","optional","required","Fragment","renderList","item","createBlock","_component_bento_checkbox","disabled","createSlots","withCtx","createTextVNode","toDisplayString","renderSlot","mergeProps","_component_error_message","createCommentVNode"],"mappings":"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"}
@@ -0,0 +1,168 @@
1
+ import { createElementBlock as m, openBlock as u, mergeProps as A, createCommentVNode as R, createElementVNode as w, toDisplayString as H, defineComponent as I, ref as K, computed as r, useAttrs as P, toRefs as T, normalizeClass as Y, createBlock as g, unref as s, withKeys as $, withModifiers as D } from "vue";
2
+ import { C as M } from "./checkmark-small.D7l69yBf.js";
3
+ /* empty css */
4
+ import { _ as B } from "./_plugin-vue_export-helper.CHgC5LLL.js";
5
+ import "../assets/checkbox-input.css";
6
+ var o = /* @__PURE__ */ ((e) => (e.UNCHECKED = "unchecked", e.DISABLED = "disabled", e.ERROR = "error", e.READONLY = "readonly", e))(o || {}), h = /* @__PURE__ */ ((e) => (e.UPDATE = "update:model-value", e))(h || {});
7
+ let x = 0;
8
+ const z = {
9
+ beforeCreate() {
10
+ this.uuid = x.toString(), x += 1;
11
+ }
12
+ }, G = { key: 0 };
13
+ function Z(e, d, t, b, c, y) {
14
+ return u(), m("svg", A({ role: "img" }, e.$attrs, {
15
+ class: "ui-assets-icons-16",
16
+ xmlns: "http://www.w3.org/2000/svg",
17
+ width: "16",
18
+ height: "16",
19
+ fill: "none"
20
+ }), [
21
+ e.$attrs["svg-title"] ? (u(), m("title", G, H(e.$attrs["svg-title"]), 1)) : R("", !0),
22
+ d[0] || (d[0] = w("path", {
23
+ fill: "#00112C",
24
+ d: "M4.25 7.25H11.75V8.75H4.25V7.25Z"
25
+ }, null, -1))
26
+ ], 16);
27
+ }
28
+ const j = /* @__PURE__ */ B(z, [["render", Z]]), q = ["id", "aria-label", "aria-checked", "aria-describedby", "aria-invalid", "checked", "disabled", ".indeterminate", "value", "aria-readonly"], F = {
29
+ name: "checkbox-input",
30
+ inheritAttrs: !1
31
+ }, J = /* @__PURE__ */ I({
32
+ ...F,
33
+ props: {
34
+ /**
35
+ * The aria label associated to the input checkbox.
36
+ */
37
+ ariaLabel: { type: String, default: "" },
38
+ /**
39
+ * An additional string that serves as description for the input checkbox (useful if the component shows a description).
40
+ */
41
+ ariaDescribedby: { type: String, default: "" },
42
+ /**
43
+ * Setting this property to true will disable the checkbox in your form.
44
+ */
45
+ disabled: { type: Boolean, default: !1 },
46
+ /**
47
+ * Setting this property to true will show the checkbox in error state.
48
+ */
49
+ hasError: { type: Boolean, default: !1 },
50
+ /**
51
+ * Sets the id of the checkbox. Required for accessibility purposes
52
+ */
53
+ id: { type: String, default: null },
54
+ /**
55
+ * The :indeterminate CSS pseudo-class represents any form element
56
+ * whose state is indeterminate, such as checkboxes which have their HTML indeterminate attribute
57
+ * set to true, radio buttons which are members of a group in which all radio buttons are unchecked,
58
+ * and indeterminate <progress> elements. https://developer.mozilla.org/en-US/docs/Web/CSS/:indeterminate
59
+ * This property lets you control the input.indeterminate native property.
60
+ */
61
+ indeterminate: { type: Boolean, default: !1 },
62
+ /**
63
+ * When handling a single checkbox with a singular state, use a boolean.
64
+ *
65
+ * When handling multiple checkboxes, use an array of keys.
66
+ * These keys exist as a set "value" prop for each checkbox.
67
+ */
68
+ modelValue: {
69
+ type: [Boolean, Array],
70
+ default: !1
71
+ },
72
+ /**
73
+ * Setting this property to true will set the checkbox to read only state.
74
+ */
75
+ readonly: { type: Boolean, default: !1 },
76
+ /**
77
+ * The value of the component. The DOM API casts this to a string.
78
+ * The browser uses "on" as the default value.
79
+ *
80
+ * In the case of multiple checkboxes this value is used as a unique key.
81
+ */
82
+ value: { type: [String, Number], default: null }
83
+ },
84
+ emits: ["update:model-value"],
85
+ setup(e, { emit: d }) {
86
+ const t = e, b = d, c = K(null), y = r(() => {
87
+ {
88
+ const { class: i, style: n, ...a } = P();
89
+ return a;
90
+ }
91
+ }), { disabled: k, indeterminate: _, modelValue: p, readonly: C, value: v } = T(t), N = r(() => ({
92
+ [`b-checkbox-input--${o.DISABLED}`]: t.disabled,
93
+ [`b-checkbox-input--${o.READONLY}`]: t.readonly
94
+ })), L = r(() => ({
95
+ [`b-checkbox-input__outline--${o.UNCHECKED}`]: !f.value && !t.indeterminate,
96
+ [`b-checkbox-input__outline--${o.ERROR}`]: t.hasError,
97
+ [`b-checkbox-input__outline--${o.READONLY}`]: t.readonly
98
+ })), E = r(() => Array.isArray(p.value)), f = r(() => E.value ? p.value.some((i) => i === v.value) : p.value), V = r(
99
+ () => t.indeterminate ? "mixed" : `${!!f.value}`
100
+ ), O = r(
101
+ () => t.hasError && !t.disabled && !t.readonly
102
+ ), S = (i) => {
103
+ if (C.value) {
104
+ i.preventDefault();
105
+ return;
106
+ }
107
+ }, U = (i) => {
108
+ if (k.value)
109
+ return;
110
+ const n = i.target.checked;
111
+ if (E.value) {
112
+ const a = [...p.value], l = a.indexOf(v.value);
113
+ l === -1 ? a.push(v.value) : a.splice(l, 1), b(h.UPDATE, a);
114
+ } else
115
+ b(h.UPDATE, n);
116
+ };
117
+ return (i, n) => (u(), m("div", {
118
+ class: Y(["b-checkbox-input", N.value])
119
+ }, [
120
+ s(_) ? (u(), g(s(j), {
121
+ key: 0,
122
+ class: "b-checkbox-input__icon",
123
+ "svg-title": "",
124
+ "aria-hidden": "true"
125
+ })) : f.value ? (u(), g(s(M), {
126
+ key: 1,
127
+ class: "b-checkbox-input__icon",
128
+ "svg-title": "",
129
+ "aria-hidden": "true"
130
+ })) : R("", !0),
131
+ w("input", A({
132
+ id: e.id,
133
+ ref_key: "inputRef",
134
+ ref: c
135
+ }, y.value, {
136
+ type: "checkbox",
137
+ class: ["b-checkbox-input__outline", L.value],
138
+ "aria-label": e.ariaLabel,
139
+ "aria-checked": V.value,
140
+ "aria-describedby": e.ariaDescribedby,
141
+ "aria-invalid": O.value,
142
+ checked: f.value,
143
+ disabled: s(k),
144
+ ".indeterminate": s(_),
145
+ value: s(v),
146
+ "aria-readonly": s(C),
147
+ onClick: S,
148
+ onChange: U,
149
+ onKeydown: [
150
+ n[0] || (n[0] = $(D((a) => {
151
+ var l;
152
+ return (l = c.value) == null ? void 0 : l.click();
153
+ }, ["prevent"]), ["space"])),
154
+ n[1] || (n[1] = $(D((a) => {
155
+ var l;
156
+ return (l = c.value) == null ? void 0 : l.click();
157
+ }, ["prevent"]), ["enter"]))
158
+ ]
159
+ }), null, 48, q)
160
+ ], 2));
161
+ }
162
+ }), te = /* @__PURE__ */ B(J, [["__scopeId", "data-v-7781bcee"]]);
163
+ export {
164
+ o as C,
165
+ j as N,
166
+ te as a
167
+ };
168
+ //# sourceMappingURL=checkbox-input.DVayucaL.js.map