@adyen/bento-vue3 1.59.0 → 1.60.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 (578) hide show
  1. package/package.json +10 -6
  2. package/dist/@types/components.d.ts +0 -201
  3. package/dist/@types/index.d.ts +0 -17796
  4. package/dist/accordion.js +0 -6
  5. package/dist/accordion.js.map +0 -1
  6. package/dist/action-bar.js +0 -5
  7. package/dist/action-bar.js.map +0 -1
  8. package/dist/alert.js +0 -8
  9. package/dist/alert.js.map +0 -1
  10. package/dist/assets/accordion-item.css +0 -1
  11. package/dist/assets/action-bar.css +0 -1
  12. package/dist/assets/alert.css +0 -1
  13. package/dist/assets/avatar.css +0 -1
  14. package/dist/assets/base-button.css +0 -1
  15. package/dist/assets/base-modal.css +0 -1
  16. package/dist/assets/button-actions-with-menu.css +0 -1
  17. package/dist/assets/button-actions.css +0 -1
  18. package/dist/assets/button.css +0 -1
  19. package/dist/assets/calendar.css +0 -1
  20. package/dist/assets/card.css +0 -1
  21. package/dist/assets/checkbox-group.css +0 -1
  22. package/dist/assets/checkbox-input.css +0 -1
  23. package/dist/assets/checkbox.css +0 -1
  24. package/dist/assets/chip.css +0 -1
  25. package/dist/assets/code-snippet.css +0 -1
  26. package/dist/assets/controls-group.css +0 -1
  27. package/dist/assets/copy.css +0 -1
  28. package/dist/assets/country.css +0 -1
  29. package/dist/assets/currency.css +0 -1
  30. package/dist/assets/dashboard-section.css +0 -1
  31. package/dist/assets/dashed-underline.css +0 -1
  32. package/dist/assets/data-grid-template.css +0 -1
  33. package/dist/assets/data-grid.css +0 -1
  34. package/dist/assets/date-picker.css +0 -1
  35. package/dist/assets/date-range-picker.css +0 -1
  36. package/dist/assets/date.css +0 -1
  37. package/dist/assets/dialog-page.css +0 -1
  38. package/dist/assets/divider.css +0 -1
  39. package/dist/assets/dropdown-default-textbox.css +0 -1
  40. package/dist/assets/dropdown-tag.css +0 -1
  41. package/dist/assets/dropdown.css +0 -1
  42. package/dist/assets/empty-state.css +0 -1
  43. package/dist/assets/error-message.css +0 -1
  44. package/dist/assets/file-uploader.css +0 -1
  45. package/dist/assets/filter-bar.css +0 -1
  46. package/dist/assets/fixed-scroller.css +0 -1
  47. package/dist/assets/focus-trap.css +0 -1
  48. package/dist/assets/footer-actions.css +0 -1
  49. package/dist/assets/form-layout-title.css +0 -1
  50. package/dist/assets/grid-layout.css +0 -1
  51. package/dist/assets/header-with-views.css +0 -1
  52. package/dist/assets/header.css +0 -1
  53. package/dist/assets/info-icon-with-popover.css +0 -1
  54. package/dist/assets/info-icon.css +0 -1
  55. package/dist/assets/input-field-password.css +0 -1
  56. package/dist/assets/input-field-phone-number.css +0 -1
  57. package/dist/assets/input-field.css +0 -1
  58. package/dist/assets/inspector.css +0 -1
  59. package/dist/assets/layout-row.css +0 -1
  60. package/dist/assets/link.css +0 -1
  61. package/dist/assets/listbox-option-tag.css +0 -1
  62. package/dist/assets/loading-indicator.css +0 -1
  63. package/dist/assets/main.css +0 -1
  64. package/dist/assets/menu.css +0 -1
  65. package/dist/assets/modal-fullscreen.css +0 -1
  66. package/dist/assets/pagination.css +0 -1
  67. package/dist/assets/payment-method.css +0 -1
  68. package/dist/assets/popover.css +0 -1
  69. package/dist/assets/popper-container.css +0 -1
  70. package/dist/assets/promo-banner.css +0 -1
  71. package/dist/assets/radio-group.css +0 -1
  72. package/dist/assets/radio-input.css +0 -1
  73. package/dist/assets/rich-text-editor.css +0 -1
  74. package/dist/assets/search-bar.css +0 -1
  75. package/dist/assets/secondary-nav.css +0 -1
  76. package/dist/assets/segmented-control.css +0 -1
  77. package/dist/assets/selection-card-group.css +0 -1
  78. package/dist/assets/sidepanel.css +0 -1
  79. package/dist/assets/status.css +0 -1
  80. package/dist/assets/step.css +0 -1
  81. package/dist/assets/structured-list-item.css +0 -1
  82. package/dist/assets/summary-grid.css +0 -1
  83. package/dist/assets/tabs.css +0 -1
  84. package/dist/assets/tag.css +0 -1
  85. package/dist/assets/teleport.css +0 -1
  86. package/dist/assets/textarea.css +0 -1
  87. package/dist/assets/timeline-item.css +0 -1
  88. package/dist/assets/toast.css +0 -1
  89. package/dist/assets/toggle-button.css +0 -1
  90. package/dist/assets/toggle.css +0 -1
  91. package/dist/assets/tooltip.css +0 -1
  92. package/dist/assets/tutorial.css +0 -1
  93. package/dist/assets/typography.css +0 -1
  94. package/dist/assets/use-cached-selected-values.css +0 -1
  95. package/dist/avatar.js +0 -5
  96. package/dist/avatar.js.map +0 -1
  97. package/dist/button.js +0 -16
  98. package/dist/button.js.map +0 -1
  99. package/dist/card.js +0 -7
  100. package/dist/card.js.map +0 -1
  101. package/dist/checkbox.js +0 -11
  102. package/dist/checkbox.js.map +0 -1
  103. package/dist/chip.js +0 -5
  104. package/dist/chip.js.map +0 -1
  105. package/dist/chunks/1-generic-use.CZhwP2Yc.js +0 -5
  106. package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +0 -1
  107. package/dist/chunks/1-generic-use.R6x8PEGA.js +0 -5
  108. package/dist/chunks/1-generic-use.R6x8PEGA.js.map +0 -1
  109. package/dist/chunks/2-generic-use.CNKjB4B7.js +0 -5
  110. package/dist/chunks/2-generic-use.CNKjB4B7.js.map +0 -1
  111. package/dist/chunks/2-generic-use.w0fUhovx.js +0 -5
  112. package/dist/chunks/2-generic-use.w0fUhovx.js.map +0 -1
  113. package/dist/chunks/3-generic-use.BLEzR04g.js +0 -5
  114. package/dist/chunks/3-generic-use.BLEzR04g.js.map +0 -1
  115. package/dist/chunks/3-generic-use.D3NFHgI4.js +0 -5
  116. package/dist/chunks/3-generic-use.D3NFHgI4.js.map +0 -1
  117. package/dist/chunks/4-generic-use.CULEpvgj.js +0 -5
  118. package/dist/chunks/4-generic-use.CULEpvgj.js.map +0 -1
  119. package/dist/chunks/4-generic-use.D82y3n39.js +0 -5
  120. package/dist/chunks/4-generic-use.D82y3n39.js.map +0 -1
  121. package/dist/chunks/_commonjsHelpers.C6fGbg64.js +0 -7
  122. package/dist/chunks/_commonjsHelpers.C6fGbg64.js.map +0 -1
  123. package/dist/chunks/_plugin-vue_export-helper.CHgC5LLL.js +0 -10
  124. package/dist/chunks/_plugin-vue_export-helper.CHgC5LLL.js.map +0 -1
  125. package/dist/chunks/accordion-item.CihL7JaZ.js +0 -142
  126. package/dist/chunks/accordion-item.CihL7JaZ.js.map +0 -1
  127. package/dist/chunks/action-bar.DHFGXPzd.js +0 -203
  128. package/dist/chunks/action-bar.DHFGXPzd.js.map +0 -1
  129. package/dist/chunks/adding-payment-methods.BJZLPxtM.js +0 -5
  130. package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +0 -1
  131. package/dist/chunks/adding-payment-methods.Dle8zt43.js +0 -5
  132. package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +0 -1
  133. package/dist/chunks/adyen-giving.Ffw_DlJK.js +0 -5
  134. package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +0 -1
  135. package/dist/chunks/adyen-giving.LiKHj_jY.js +0 -5
  136. package/dist/chunks/adyen-giving.LiKHj_jY.js.map +0 -1
  137. package/dist/chunks/alert.CjegN2iG.js +0 -169
  138. package/dist/chunks/alert.CjegN2iG.js.map +0 -1
  139. package/dist/chunks/aria-label.CaUURpnB.js +0 -13
  140. package/dist/chunks/aria-label.CaUURpnB.js.map +0 -1
  141. package/dist/chunks/avatar.B0-9jC6H.js +0 -94
  142. package/dist/chunks/avatar.B0-9jC6H.js.map +0 -1
  143. package/dist/chunks/base-button.DdNFlbgH.js +0 -115
  144. package/dist/chunks/base-button.DdNFlbgH.js.map +0 -1
  145. package/dist/chunks/base-modal.BXdrZf3U.js +0 -504
  146. package/dist/chunks/base-modal.BXdrZf3U.js.map +0 -1
  147. package/dist/chunks/base-modal.keys.C2PQXcE2.js +0 -5
  148. package/dist/chunks/base-modal.keys.C2PQXcE2.js.map +0 -1
  149. package/dist/chunks/bin.CA6UQCNZ.js +0 -37
  150. package/dist/chunks/bin.CA6UQCNZ.js.map +0 -1
  151. package/dist/chunks/button-actions-with-menu.DfnPv97A.js +0 -174
  152. package/dist/chunks/button-actions-with-menu.DfnPv97A.js.map +0 -1
  153. package/dist/chunks/button-actions.WnxN4KnV.js +0 -264
  154. package/dist/chunks/button-actions.WnxN4KnV.js.map +0 -1
  155. package/dist/chunks/button.CVZJTZv0.js +0 -120
  156. package/dist/chunks/button.CVZJTZv0.js.map +0 -1
  157. package/dist/chunks/calendar.BzN254pQ.js +0 -1288
  158. package/dist/chunks/calendar.BzN254pQ.js.map +0 -1
  159. package/dist/chunks/card.PFtc1o__.js +0 -213
  160. package/dist/chunks/card.PFtc1o__.js.map +0 -1
  161. package/dist/chunks/checkbox-group.Dsiyb1cX.js +0 -192
  162. package/dist/chunks/checkbox-group.Dsiyb1cX.js.map +0 -1
  163. package/dist/chunks/checkbox-input.DVayucaL.js +0 -168
  164. package/dist/chunks/checkbox-input.DVayucaL.js.map +0 -1
  165. package/dist/chunks/checkbox.DeNqOQ8F.js +0 -253
  166. package/dist/chunks/checkbox.DeNqOQ8F.js.map +0 -1
  167. package/dist/chunks/checkmark-circle-fill.jicbqe7k.js +0 -44
  168. package/dist/chunks/checkmark-circle-fill.jicbqe7k.js.map +0 -1
  169. package/dist/chunks/checkmark-small.D7l69yBf.js +0 -29
  170. package/dist/chunks/checkmark-small.D7l69yBf.js.map +0 -1
  171. package/dist/chunks/chevron-left.BF63HtOH.js +0 -52
  172. package/dist/chunks/chevron-left.BF63HtOH.js.map +0 -1
  173. package/dist/chunks/chevron-up.-0oLlHmh.js +0 -52
  174. package/dist/chunks/chevron-up.-0oLlHmh.js.map +0 -1
  175. package/dist/chunks/chip.BVCzNGaI.js +0 -71
  176. package/dist/chunks/chip.BVCzNGaI.js.map +0 -1
  177. package/dist/chunks/click-outside.C1Ud8AA2.js +0 -23
  178. package/dist/chunks/click-outside.C1Ud8AA2.js.map +0 -1
  179. package/dist/chunks/code-snippet.91V1hyL-.js +0 -334
  180. package/dist/chunks/code-snippet.91V1hyL-.js.map +0 -1
  181. package/dist/chunks/codemirror.Zv80n3Z2.js +0 -14628
  182. package/dist/chunks/codemirror.Zv80n3Z2.js.map +0 -1
  183. package/dist/chunks/controls-group.DzFmJYYp.js +0 -98
  184. package/dist/chunks/controls-group.DzFmJYYp.js.map +0 -1
  185. package/dist/chunks/copy.BNFlTYMb.js +0 -156
  186. package/dist/chunks/copy.BNFlTYMb.js.map +0 -1
  187. package/dist/chunks/country.BhAcCmRx.js +0 -99
  188. package/dist/chunks/country.BhAcCmRx.js.map +0 -1
  189. package/dist/chunks/country.types.C0Q_hhgJ.js +0 -269
  190. package/dist/chunks/country.types.C0Q_hhgJ.js.map +0 -1
  191. package/dist/chunks/cross-circle-fill-small.mY6ihJcA.js +0 -29
  192. package/dist/chunks/cross-circle-fill-small.mY6ihJcA.js.map +0 -1
  193. package/dist/chunks/cross-circle-fill.B7YpDLTK.js +0 -44
  194. package/dist/chunks/cross-circle-fill.B7YpDLTK.js.map +0 -1
  195. package/dist/chunks/cross-small.CFrBIeYK.js +0 -29
  196. package/dist/chunks/cross-small.CFrBIeYK.js.map +0 -1
  197. package/dist/chunks/cross.CbLEjiVy.js +0 -29
  198. package/dist/chunks/cross.CbLEjiVy.js.map +0 -1
  199. package/dist/chunks/currency.DagWnTry.js +0 -109
  200. package/dist/chunks/currency.DagWnTry.js.map +0 -1
  201. package/dist/chunks/dashboard-section.BTJ8h5Kd.js +0 -165
  202. package/dist/chunks/dashboard-section.BTJ8h5Kd.js.map +0 -1
  203. package/dist/chunks/dashed-underline.BpSS0BTl.js +0 -98
  204. package/dist/chunks/dashed-underline.BpSS0BTl.js.map +0 -1
  205. package/dist/chunks/data-grid-template.CnrbFvb3.js +0 -111
  206. package/dist/chunks/data-grid-template.CnrbFvb3.js.map +0 -1
  207. package/dist/chunks/data-grid-template.keys.2_AkxuNT.js +0 -5
  208. package/dist/chunks/data-grid-template.keys.2_AkxuNT.js.map +0 -1
  209. package/dist/chunks/data-grid.PAFw8voO.js +0 -3646
  210. package/dist/chunks/data-grid.PAFw8voO.js.map +0 -1
  211. package/dist/chunks/date-input.BqBdAO1E.js +0 -17
  212. package/dist/chunks/date-input.BqBdAO1E.js.map +0 -1
  213. package/dist/chunks/date-picker.CSn6F3aG.js +0 -315
  214. package/dist/chunks/date-picker.CSn6F3aG.js.map +0 -1
  215. package/dist/chunks/date-range-picker.ByQ_yM6z.js +0 -1170
  216. package/dist/chunks/date-range-picker.ByQ_yM6z.js.map +0 -1
  217. package/dist/chunks/date.CKXySBQv.js +0 -995
  218. package/dist/chunks/date.CKXySBQv.js.map +0 -1
  219. package/dist/chunks/debounce.DUTu11PS.js +0 -10
  220. package/dist/chunks/debounce.DUTu11PS.js.map +0 -1
  221. package/dist/chunks/dialog-page.C72BX6So.js +0 -175
  222. package/dist/chunks/dialog-page.C72BX6So.js.map +0 -1
  223. package/dist/chunks/directive.Cbdox5VL.js +0 -23
  224. package/dist/chunks/directive.Cbdox5VL.js.map +0 -1
  225. package/dist/chunks/divider.qUOSAbU6.js +0 -33
  226. package/dist/chunks/divider.qUOSAbU6.js.map +0 -1
  227. package/dist/chunks/dot.BW-xtyjC.js +0 -29
  228. package/dist/chunks/dot.BW-xtyjC.js.map +0 -1
  229. package/dist/chunks/dropdown-default-textbox.BNhy-QDH.js +0 -419
  230. package/dist/chunks/dropdown-default-textbox.BNhy-QDH.js.map +0 -1
  231. package/dist/chunks/dropdown-tag.D_oUoZBc.js +0 -202
  232. package/dist/chunks/dropdown-tag.D_oUoZBc.js.map +0 -1
  233. package/dist/chunks/dropdown.B8LbzSzW.js +0 -936
  234. package/dist/chunks/dropdown.B8LbzSzW.js.map +0 -1
  235. package/dist/chunks/empty-state.BGWjUH6G.js +0 -185
  236. package/dist/chunks/empty-state.BGWjUH6G.js.map +0 -1
  237. package/dist/chunks/error-message.BzDQxHUy.js +0 -158
  238. package/dist/chunks/error-message.BzDQxHUy.js.map +0 -1
  239. package/dist/chunks/es6.BA9GH7QZ.js +0 -11
  240. package/dist/chunks/es6.BA9GH7QZ.js.map +0 -1
  241. package/dist/chunks/events.FNmSWp_P.js +0 -52
  242. package/dist/chunks/events.FNmSWp_P.js.map +0 -1
  243. package/dist/chunks/expand.DusW7F7p.js +0 -33
  244. package/dist/chunks/expand.DusW7F7p.js.map +0 -1
  245. package/dist/chunks/file-uploader.HMZfzgaO.js +0 -2280
  246. package/dist/chunks/file-uploader.HMZfzgaO.js.map +0 -1
  247. package/dist/chunks/filter-bar.CKxLJDQE.js +0 -2976
  248. package/dist/chunks/filter-bar.CKxLJDQE.js.map +0 -1
  249. package/dist/chunks/fixed-scroller.BjxA_R63.js +0 -147
  250. package/dist/chunks/fixed-scroller.BjxA_R63.js.map +0 -1
  251. package/dist/chunks/focus-trap.BdrEB4Ld.js +0 -500
  252. package/dist/chunks/focus-trap.BdrEB4Ld.js.map +0 -1
  253. package/dist/chunks/footer-actions.DqKdjjjh.js +0 -110
  254. package/dist/chunks/footer-actions.DqKdjjjh.js.map +0 -1
  255. package/dist/chunks/form-layout-title.CsmjzAje.js +0 -206
  256. package/dist/chunks/form-layout-title.CsmjzAje.js.map +0 -1
  257. package/dist/chunks/form-layout.types.D3EKzbE7.js +0 -5
  258. package/dist/chunks/form-layout.types.D3EKzbE7.js.map +0 -1
  259. package/dist/chunks/generate-uid.NJ8tVoha.js +0 -32
  260. package/dist/chunks/generate-uid.NJ8tVoha.js.map +0 -1
  261. package/dist/chunks/get-date-locale.BN8xEjY0.js +0 -1735
  262. package/dist/chunks/get-date-locale.BN8xEjY0.js.map +0 -1
  263. package/dist/chunks/get-slot-text.DQlZEsId.js +0 -12
  264. package/dist/chunks/get-slot-text.DQlZEsId.js.map +0 -1
  265. package/dist/chunks/grid-layout.BTLE3rac.js +0 -114
  266. package/dist/chunks/grid-layout.BTLE3rac.js.map +0 -1
  267. package/dist/chunks/header-with-views.BVcLQi-H.js +0 -2354
  268. package/dist/chunks/header-with-views.BVcLQi-H.js.map +0 -1
  269. package/dist/chunks/header.CYPznLHg.js +0 -253
  270. package/dist/chunks/header.CYPznLHg.js.map +0 -1
  271. package/dist/chunks/i18n.B6g5VX0q.js +0 -3131
  272. package/dist/chunks/i18n.B6g5VX0q.js.map +0 -1
  273. package/dist/chunks/image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js +0 -47
  274. package/dist/chunks/image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js.map +0 -1
  275. package/dist/chunks/index.BDuTpjD8.js +0 -40
  276. package/dist/chunks/index.BDuTpjD8.js.map +0 -1
  277. package/dist/chunks/index.BxBB1rsx.js +0 -15
  278. package/dist/chunks/index.BxBB1rsx.js.map +0 -1
  279. package/dist/chunks/index.CVpo3mlK.js +0 -528
  280. package/dist/chunks/index.CVpo3mlK.js.map +0 -1
  281. package/dist/chunks/index.CWuzEfiV.js +0 -6
  282. package/dist/chunks/index.CWuzEfiV.js.map +0 -1
  283. package/dist/chunks/index.DD7TppDb.js +0 -10
  284. package/dist/chunks/index.DD7TppDb.js.map +0 -1
  285. package/dist/chunks/info-icon-with-popover.BUtJRYXy.js +0 -97
  286. package/dist/chunks/info-icon-with-popover.BUtJRYXy.js.map +0 -1
  287. package/dist/chunks/info-icon.MO6y9Dyv.js +0 -45
  288. package/dist/chunks/info-icon.MO6y9Dyv.js.map +0 -1
  289. package/dist/chunks/info.HK3R7Drc.js +0 -44
  290. package/dist/chunks/info.HK3R7Drc.js.map +0 -1
  291. package/dist/chunks/input-field-password.c6WXpF9U.js +0 -366
  292. package/dist/chunks/input-field-password.c6WXpF9U.js.map +0 -1
  293. package/dist/chunks/input-field-phone-number.DQxF-6wT.js +0 -3106
  294. package/dist/chunks/input-field-phone-number.DQxF-6wT.js.map +0 -1
  295. package/dist/chunks/input-field.BDEEGU2t.js +0 -298
  296. package/dist/chunks/input-field.BDEEGU2t.js.map +0 -1
  297. package/dist/chunks/inspector.types.BQnVv5HX.js +0 -187
  298. package/dist/chunks/inspector.types.BQnVv5HX.js.map +0 -1
  299. package/dist/chunks/internal-error.BLZodVBE.js +0 -5
  300. package/dist/chunks/internal-error.BLZodVBE.js.map +0 -1
  301. package/dist/chunks/internal-error.BmrwJFpR.js +0 -5
  302. package/dist/chunks/internal-error.BmrwJFpR.js.map +0 -1
  303. package/dist/chunks/keyboard-navigation.CqgGzfZQ.js +0 -66
  304. package/dist/chunks/keyboard-navigation.CqgGzfZQ.js.map +0 -1
  305. package/dist/chunks/layout-row.CRRLYA03.js +0 -100
  306. package/dist/chunks/layout-row.CRRLYA03.js.map +0 -1
  307. package/dist/chunks/link.CTH1xj0i.js +0 -116
  308. package/dist/chunks/link.CTH1xj0i.js.map +0 -1
  309. package/dist/chunks/listbox-option-tag.CTipR05e.js +0 -55
  310. package/dist/chunks/listbox-option-tag.CTipR05e.js.map +0 -1
  311. package/dist/chunks/loading-indicator.DEepb9Wl.js +0 -44
  312. package/dist/chunks/loading-indicator.DEepb9Wl.js.map +0 -1
  313. package/dist/chunks/menu.HVsIOPzt.js +0 -768
  314. package/dist/chunks/menu.HVsIOPzt.js.map +0 -1
  315. package/dist/chunks/modal-fullscreen.CN1dCmU-.js +0 -270
  316. package/dist/chunks/modal-fullscreen.CN1dCmU-.js.map +0 -1
  317. package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js +0 -5
  318. package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js.map +0 -1
  319. package/dist/chunks/modal.vue_vue_type_script_setup_true_lang._xN4vNxW.js +0 -501
  320. package/dist/chunks/modal.vue_vue_type_script_setup_true_lang._xN4vNxW.js.map +0 -1
  321. package/dist/chunks/no-results-found.Bg_ZcEid.js +0 -5
  322. package/dist/chunks/no-results-found.Bg_ZcEid.js.map +0 -1
  323. package/dist/chunks/no-results-found.BqvYsBR6.js +0 -5
  324. package/dist/chunks/no-results-found.BqvYsBR6.js.map +0 -1
  325. package/dist/chunks/notifications-cleared.BMZk37uf.js +0 -5
  326. package/dist/chunks/notifications-cleared.BMZk37uf.js.map +0 -1
  327. package/dist/chunks/notifications-cleared.C7W9ZXY7.js +0 -5
  328. package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +0 -1
  329. package/dist/chunks/on-click-outside.D9aY9g8G.js +0 -101
  330. package/dist/chunks/on-click-outside.D9aY9g8G.js.map +0 -1
  331. package/dist/chunks/page-not-found.COJLPVaU.js +0 -5
  332. package/dist/chunks/page-not-found.COJLPVaU.js.map +0 -1
  333. package/dist/chunks/page-not-found.DWW6W-PZ.js +0 -5
  334. package/dist/chunks/page-not-found.DWW6W-PZ.js.map +0 -1
  335. package/dist/chunks/pagination.Cv-jL5MP.js +0 -461
  336. package/dist/chunks/pagination.Cv-jL5MP.js.map +0 -1
  337. package/dist/chunks/payment-method.eazefwm6.js +0 -125
  338. package/dist/chunks/payment-method.eazefwm6.js.map +0 -1
  339. package/dist/chunks/payment-method.types.BqtH7RM2.js +0 -5
  340. package/dist/chunks/payment-method.types.BqtH7RM2.js.map +0 -1
  341. package/dist/chunks/planned-maintenance.C61sWB9h.js +0 -5
  342. package/dist/chunks/planned-maintenance.C61sWB9h.js.map +0 -1
  343. package/dist/chunks/planned-maintenance.jmWYTdet.js +0 -5
  344. package/dist/chunks/planned-maintenance.jmWYTdet.js.map +0 -1
  345. package/dist/chunks/popover.sXC1vaC4.js +0 -350
  346. package/dist/chunks/popover.sXC1vaC4.js.map +0 -1
  347. package/dist/chunks/popper-container.CWgM0skS.js +0 -1396
  348. package/dist/chunks/popper-container.CWgM0skS.js.map +0 -1
  349. package/dist/chunks/popper-container.types.BCZMbVFD.js +0 -9
  350. package/dist/chunks/popper-container.types.BCZMbVFD.js.map +0 -1
  351. package/dist/chunks/promo-banner.CoB1tBCC.js +0 -126
  352. package/dist/chunks/promo-banner.CoB1tBCC.js.map +0 -1
  353. package/dist/chunks/radio-group.BzLVfoL0.js +0 -321
  354. package/dist/chunks/radio-group.BzLVfoL0.js.map +0 -1
  355. package/dist/chunks/radio-input.DKfQGxtp.js +0 -96
  356. package/dist/chunks/radio-input.DKfQGxtp.js.map +0 -1
  357. package/dist/chunks/referrals.BvtT-kQS.js +0 -5
  358. package/dist/chunks/referrals.BvtT-kQS.js.map +0 -1
  359. package/dist/chunks/referrals.aX8WZigH.js +0 -5
  360. package/dist/chunks/referrals.aX8WZigH.js.map +0 -1
  361. package/dist/chunks/refresh.C20ROVDS.js +0 -29
  362. package/dist/chunks/refresh.C20ROVDS.js.map +0 -1
  363. package/dist/chunks/resize.Bqks3WUm.js +0 -15
  364. package/dist/chunks/resize.Bqks3WUm.js.map +0 -1
  365. package/dist/chunks/rich-text-editor.C5RIGjDX.js +0 -6221
  366. package/dist/chunks/rich-text-editor.C5RIGjDX.js.map +0 -1
  367. package/dist/chunks/search-bar.C8bAeztI.js +0 -114
  368. package/dist/chunks/search-bar.C8bAeztI.js.map +0 -1
  369. package/dist/chunks/search.CW_aTqip.js +0 -44
  370. package/dist/chunks/search.CW_aTqip.js.map +0 -1
  371. package/dist/chunks/secondary-nav.BZF_9ztn.js +0 -137
  372. package/dist/chunks/secondary-nav.BZF_9ztn.js.map +0 -1
  373. package/dist/chunks/segmented-control.types.BHRLV8KU.js +0 -5
  374. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +0 -1
  375. package/dist/chunks/segmented-control.u3a7Mssn.js +0 -144
  376. package/dist/chunks/segmented-control.u3a7Mssn.js.map +0 -1
  377. package/dist/chunks/selection-card-group.CSFQ-f8m.js +0 -474
  378. package/dist/chunks/selection-card-group.CSFQ-f8m.js.map +0 -1
  379. package/dist/chunks/show.ByWWaogc.js +0 -64
  380. package/dist/chunks/show.ByWWaogc.js.map +0 -1
  381. package/dist/chunks/sidepanel.keys.R0DKQuYx.js +0 -5
  382. package/dist/chunks/sidepanel.keys.R0DKQuYx.js.map +0 -1
  383. package/dist/chunks/sidepanel.kwEMG5ee.js +0 -254
  384. package/dist/chunks/sidepanel.kwEMG5ee.js.map +0 -1
  385. package/dist/chunks/status.types.Bdv2zuuh.js +0 -44
  386. package/dist/chunks/status.types.Bdv2zuuh.js.map +0 -1
  387. package/dist/chunks/step.7l-t-eN9.js +0 -264
  388. package/dist/chunks/step.7l-t-eN9.js.map +0 -1
  389. package/dist/chunks/structured-list-item.DLJp-ApS.js +0 -108
  390. package/dist/chunks/structured-list-item.DLJp-ApS.js.map +0 -1
  391. package/dist/chunks/success.DhioLvPD.js +0 -5
  392. package/dist/chunks/success.DhioLvPD.js.map +0 -1
  393. package/dist/chunks/success.nNwxJRBS.js +0 -5
  394. package/dist/chunks/success.nNwxJRBS.js.map +0 -1
  395. package/dist/chunks/summary-grid.keys.CxTf_FOc.js +0 -6
  396. package/dist/chunks/summary-grid.keys.CxTf_FOc.js.map +0 -1
  397. package/dist/chunks/summary-grid.types.DkyTeEAn.js +0 -466
  398. package/dist/chunks/summary-grid.types.DkyTeEAn.js.map +0 -1
  399. package/dist/chunks/tabs.Bn4YIjoy.js +0 -266
  400. package/dist/chunks/tabs.Bn4YIjoy.js.map +0 -1
  401. package/dist/chunks/tabs.keys.Bc2pSKRw.js +0 -7
  402. package/dist/chunks/tabs.keys.Bc2pSKRw.js.map +0 -1
  403. package/dist/chunks/tag.Me7nYLMe.js +0 -51
  404. package/dist/chunks/tag.Me7nYLMe.js.map +0 -1
  405. package/dist/chunks/teleport.CfGWjxe2.js +0 -129
  406. package/dist/chunks/teleport.CfGWjxe2.js.map +0 -1
  407. package/dist/chunks/textarea.BbSzCJ-3.js +0 -278
  408. package/dist/chunks/textarea.BbSzCJ-3.js.map +0 -1
  409. package/dist/chunks/timeline-item._h_dMFfm.js +0 -567
  410. package/dist/chunks/timeline-item._h_dMFfm.js.map +0 -1
  411. package/dist/chunks/toast.Ae5ZoWHb.js +0 -221
  412. package/dist/chunks/toast.Ae5ZoWHb.js.map +0 -1
  413. package/dist/chunks/toggle-button.Dv1t15yj.js +0 -80
  414. package/dist/chunks/toggle-button.Dv1t15yj.js.map +0 -1
  415. package/dist/chunks/toggle.hoD_i2Ey.js +0 -161
  416. package/dist/chunks/toggle.hoD_i2Ey.js.map +0 -1
  417. package/dist/chunks/tooltip.CGMSPub2.js +0 -205
  418. package/dist/chunks/tooltip.CGMSPub2.js.map +0 -1
  419. package/dist/chunks/truncate.BfIl_-71.js +0 -8
  420. package/dist/chunks/truncate.BfIl_-71.js.map +0 -1
  421. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.CysjLLSS.js +0 -423
  422. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.CysjLLSS.js.map +0 -1
  423. package/dist/chunks/typography.DN5eC5ch.js +0 -83
  424. package/dist/chunks/typography.DN5eC5ch.js.map +0 -1
  425. package/dist/chunks/upload-files.5wQwbfkp.js +0 -5
  426. package/dist/chunks/upload-files.5wQwbfkp.js.map +0 -1
  427. package/dist/chunks/upload-files.jTQY6y2X.js +0 -5
  428. package/dist/chunks/upload-files.jTQY6y2X.js.map +0 -1
  429. package/dist/chunks/use-bento-toast-controller.D3LA1FCd.js +0 -50
  430. package/dist/chunks/use-bento-toast-controller.D3LA1FCd.js.map +0 -1
  431. package/dist/chunks/use-cached-selected-values.Dk0UxwFJ.js +0 -1475
  432. package/dist/chunks/use-cached-selected-values.Dk0UxwFJ.js.map +0 -1
  433. package/dist/chunks/use-click-outside.BnhTgpSt.js +0 -14
  434. package/dist/chunks/use-click-outside.BnhTgpSt.js.map +0 -1
  435. package/dist/chunks/use-country-items.4kZgVg_l.js +0 -30
  436. package/dist/chunks/use-country-items.4kZgVg_l.js.map +0 -1
  437. package/dist/chunks/use-country-phon-code.DVgE19zT.js +0 -5610
  438. package/dist/chunks/use-country-phon-code.DVgE19zT.js.map +0 -1
  439. package/dist/chunks/use-default-slot-validator.O02rzsob.js +0 -16
  440. package/dist/chunks/use-default-slot-validator.O02rzsob.js.map +0 -1
  441. package/dist/chunks/use-expandable-content-height.GkjjbmPy.js +0 -17
  442. package/dist/chunks/use-expandable-content-height.GkjjbmPy.js.map +0 -1
  443. package/dist/chunks/use-form-layout-loading.D3lALhtC.js +0 -12
  444. package/dist/chunks/use-form-layout-loading.D3lALhtC.js.map +0 -1
  445. package/dist/chunks/use-has-slot.B7eQSabc.js +0 -15
  446. package/dist/chunks/use-has-slot.B7eQSabc.js.map +0 -1
  447. package/dist/chunks/warning-filled.DmHh0nYG.js +0 -29
  448. package/dist/chunks/warning-filled.DmHh0nYG.js.map +0 -1
  449. package/dist/chunks/wrong-environment.BOsyKdRI.js +0 -5
  450. package/dist/chunks/wrong-environment.BOsyKdRI.js.map +0 -1
  451. package/dist/chunks/wrong-environment.BiHTPtbJ.js +0 -5
  452. package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +0 -1
  453. package/dist/click-outside.js +0 -5
  454. package/dist/click-outside.js.map +0 -1
  455. package/dist/code-snippet.js +0 -8
  456. package/dist/code-snippet.js.map +0 -1
  457. package/dist/country.js +0 -12
  458. package/dist/country.js.map +0 -1
  459. package/dist/currency.js +0 -6
  460. package/dist/currency.js.map +0 -1
  461. package/dist/dashboard-template.js +0 -6
  462. package/dist/dashboard-template.js.map +0 -1
  463. package/dist/dashed-underline.js +0 -5
  464. package/dist/dashed-underline.js.map +0 -1
  465. package/dist/data-grid-template.js +0 -5
  466. package/dist/data-grid-template.js.map +0 -1
  467. package/dist/data-grid.js +0 -11
  468. package/dist/data-grid.js.map +0 -1
  469. package/dist/date-picker.js +0 -8
  470. package/dist/date-picker.js.map +0 -1
  471. package/dist/date-range-picker.js +0 -8
  472. package/dist/date-range-picker.js.map +0 -1
  473. package/dist/date.js +0 -6
  474. package/dist/date.js.map +0 -1
  475. package/dist/divider.js +0 -5
  476. package/dist/divider.js.map +0 -1
  477. package/dist/dropdown.js +0 -16
  478. package/dist/dropdown.js.map +0 -1
  479. package/dist/empty-state.js +0 -8
  480. package/dist/empty-state.js.map +0 -1
  481. package/dist/file-uploader.js +0 -5
  482. package/dist/file-uploader.js.map +0 -1
  483. package/dist/filter-bar.js +0 -8
  484. package/dist/filter-bar.js.map +0 -1
  485. package/dist/focus-trap.js +0 -5
  486. package/dist/focus-trap.js.map +0 -1
  487. package/dist/fonts/fonts.css +0 -2
  488. package/dist/form-layout.js +0 -8
  489. package/dist/form-layout.js.map +0 -1
  490. package/dist/header-with-views.js +0 -5
  491. package/dist/header-with-views.js.map +0 -1
  492. package/dist/header.js +0 -5
  493. package/dist/header.js.map +0 -1
  494. package/dist/image.js +0 -7
  495. package/dist/image.js.map +0 -1
  496. package/dist/index.js +0 -370
  497. package/dist/index.js.map +0 -1
  498. package/dist/info-icon.js +0 -5
  499. package/dist/info-icon.js.map +0 -1
  500. package/dist/input-field-password.js +0 -10
  501. package/dist/input-field-password.js.map +0 -1
  502. package/dist/input-field-phone-number.js +0 -5
  503. package/dist/input-field-phone-number.js.map +0 -1
  504. package/dist/input-field.js +0 -10
  505. package/dist/input-field.js.map +0 -1
  506. package/dist/inspector.js +0 -6
  507. package/dist/inspector.js.map +0 -1
  508. package/dist/internal.js +0 -43
  509. package/dist/internal.js.map +0 -1
  510. package/dist/layout.js +0 -6
  511. package/dist/layout.js.map +0 -1
  512. package/dist/link.js +0 -6
  513. package/dist/link.js.map +0 -1
  514. package/dist/loading-indicator.js +0 -6
  515. package/dist/loading-indicator.js.map +0 -1
  516. package/dist/menu.js +0 -6
  517. package/dist/menu.js.map +0 -1
  518. package/dist/modal-fullscreen.js +0 -6
  519. package/dist/modal-fullscreen.js.map +0 -1
  520. package/dist/modal.js +0 -14
  521. package/dist/modal.js.map +0 -1
  522. package/dist/pagination.js +0 -5
  523. package/dist/pagination.js.map +0 -1
  524. package/dist/payment-method.js +0 -7
  525. package/dist/payment-method.js.map +0 -1
  526. package/dist/popover.js +0 -6
  527. package/dist/popover.js.map +0 -1
  528. package/dist/popper-container.js +0 -10
  529. package/dist/popper-container.js.map +0 -1
  530. package/dist/promo-banner.js +0 -7
  531. package/dist/promo-banner.js.map +0 -1
  532. package/dist/radio-group.js +0 -9
  533. package/dist/radio-group.js.map +0 -1
  534. package/dist/rich-text-editor.js +0 -5
  535. package/dist/rich-text-editor.js.map +0 -1
  536. package/dist/search-bar.js +0 -9
  537. package/dist/search-bar.js.map +0 -1
  538. package/dist/secondary-nav.js +0 -5
  539. package/dist/secondary-nav.js.map +0 -1
  540. package/dist/segmented-control.js +0 -7
  541. package/dist/segmented-control.js.map +0 -1
  542. package/dist/selection-card.js +0 -7
  543. package/dist/selection-card.js.map +0 -1
  544. package/dist/sidepanel.js +0 -7
  545. package/dist/sidepanel.js.map +0 -1
  546. package/dist/status.js +0 -6
  547. package/dist/status.js.map +0 -1
  548. package/dist/stepper.js +0 -8
  549. package/dist/stepper.js.map +0 -1
  550. package/dist/structured-list.js +0 -6
  551. package/dist/structured-list.js.map +0 -1
  552. package/dist/styles/bento-dark.css +0 -2055
  553. package/dist/styles/bento-light.css +0 -2054
  554. package/dist/styles/bento.css +0 -2054
  555. package/dist/styles/legacy.css +0 -2209
  556. package/dist/styles/styleguide.css +0 -2109
  557. package/dist/styles/utility.css +0 -987
  558. package/dist/summary-grid.js +0 -12
  559. package/dist/summary-grid.js.map +0 -1
  560. package/dist/tabs.js +0 -6
  561. package/dist/tabs.js.map +0 -1
  562. package/dist/tag.js +0 -6
  563. package/dist/tag.js.map +0 -1
  564. package/dist/textarea.js +0 -5
  565. package/dist/textarea.js.map +0 -1
  566. package/dist/timeline.js +0 -10
  567. package/dist/timeline.js.map +0 -1
  568. package/dist/toast.js +0 -5
  569. package/dist/toast.js.map +0 -1
  570. package/dist/toggle.js +0 -7
  571. package/dist/toggle.js.map +0 -1
  572. package/dist/tutorial.js +0 -5
  573. package/dist/tutorial.js.map +0 -1
  574. package/dist/typography.js +0 -8
  575. package/dist/typography.js.map +0 -1
  576. package/dist/use-form-v4.js +0 -8300
  577. package/dist/use-form-v4.js.map +0 -1
  578. package/dist/web-types.json +0 -49
@@ -1,213 +0,0 @@
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.WnxN4KnV.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.PFtc1o__.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"card.PFtc1o__.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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A0B,IAAA;AACA,QAAA,CAAAA,KAAA1B,EAAA,UACI0B,IAAAC,GAAA3B,EAAA,OAAA,MAAA;AACI,UAAAA,EAAA,SACIsB,EAAA;AAAA,QACJ,CAAA;AAAA,MAER;AAAA,IACJ;AAGJ,UAAAM,IAAA,MAAA;AACI,MAAA,CAAAhC,EAAA,YAAAA,EAAA,eACIQ,EAAA,QAAA,CAAAA,EAAA,OACAN,EAAA,YAAAM,EAAA,KAAA,GACAkB,EAAA;AAAA,IACJ,GAGJO,IAAA,MAAA;AACI,MAAAjC,EAAA,YACIE,EAAA,OAAA;AAAA,IACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,192 +0,0 @@
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.DeNqOQ8F.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.BzDQxHUy.js";
7
- import { C as z } from "./controls-group.DzFmJYYp.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.Dsiyb1cX.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"checkbox-group.Dsiyb1cX.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":";;;;;;;;;AAKY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,aAAA,cACAA,EAAA,WAAA,YAFQA,IAAAD,KAAA,CAAA,CAAA;ACwDR,MAAAE,IAAA,wBAqBAC,IAAAC,EAAA;AAAA,EAA+B,MAAAF;AAAA,EACrB,YAAA,EAAA,eAAAG,GAAA,eAAAC,GAAA,cAAAC,EAAA;AAAA,EACmD,OAAA,EAAA,MAAA,aAAA;AAAA,EAC7B,OAAA;AAAA;AAAA;AAAA;AAAA,IACrB,aAAA,EAAA,MAAA,QAAA,SAAA,KAAA;AAAA;AAAA;AAAA;AAAA,IAIwC,UAAA,EAAA,MAAA,SAAA,SAAA,GAAA;AAAA;AAAA;AAAA;AAAA,IAKD,cAAA,EAAA,MAAA,QAAA,SAAA,KAAA;AAAA;AAAA;AAAA;AAAA,IAKE,QAAA,EAAA,MAAA,QAAA,SAAA,KAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAKN,UAAA,EAAA,MAAA,SAAA,SAAA,GAAA;AAAA;AAAA;AAAA;AAA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AA;AAAAA,IAIRc,EAAA,+BAAAH,EAAA,GAAAW,EAAAS,GAAA;AAAA,MAHc,KAAA;AAAA,MACX,IAAAjB,EAAA;AAAA,MACK,iBAAAA,EAAA;AAAA,MAvClB,OAAA;AAAA,IAAA,GAAA,MAAA,GAAA,CAAA,MAAA,eAAA,CAAA,KAAAkB,EAAA,IAAA,EAAA;AAAA;;;"}
@@ -1,168 +0,0 @@
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