@adyen/bento-vue2 1.34.0 → 1.35.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 (272) hide show
  1. package/dist/@types/index.d.ts +2 -2
  2. package/dist/accordion.js +1 -1
  3. package/dist/action-bar.js +1 -1
  4. package/dist/alert.js +1 -1
  5. package/dist/assets/accordion-item.css +1 -1
  6. package/dist/assets/action-bar.css +1 -1
  7. package/dist/assets/alert.css +1 -1
  8. package/dist/assets/avatar.css +1 -1
  9. package/dist/assets/base-modal.css +1 -1
  10. package/dist/assets/calendar.css +1 -1
  11. package/dist/assets/card.css +1 -1
  12. package/dist/assets/checkbox-input.css +1 -1
  13. package/dist/assets/checkbox.css +1 -1
  14. package/dist/assets/code-snippet.css +1 -1
  15. package/dist/assets/copy.css +1 -1
  16. package/dist/assets/currency.css +1 -0
  17. package/dist/assets/data-grid.css +1 -1
  18. package/dist/assets/date-range-picker.css +1 -1
  19. package/dist/assets/dialog-page.css +1 -1
  20. package/dist/assets/dropdown.css +1 -1
  21. package/dist/assets/error-message.css +1 -1
  22. package/dist/assets/filter-bar.css +1 -1
  23. package/dist/assets/header.css +1 -1
  24. package/dist/assets/inspector.css +1 -1
  25. package/dist/assets/link.css +1 -1
  26. package/dist/assets/loading-button.css +1 -1
  27. package/dist/assets/menu.css +1 -1
  28. package/dist/assets/modal-fullscreen.css +1 -1
  29. package/dist/assets/pagination.css +1 -1
  30. package/dist/assets/popover.css +1 -1
  31. package/dist/assets/sidepanel.css +1 -1
  32. package/dist/assets/step.css +1 -1
  33. package/dist/assets/structured-list-item.css +1 -1
  34. package/dist/assets/timeline-item.css +1 -1
  35. package/dist/assets/tutorial.css +1 -1
  36. package/dist/assets/use-cached-selected-values.css +1 -1
  37. package/dist/avatar.js +1 -1
  38. package/dist/button.js +4 -4
  39. package/dist/card.js +1 -1
  40. package/dist/checkbox.js +3 -3
  41. package/dist/chunks/accordion-item.C0EeQmpM.js +116 -0
  42. package/dist/chunks/accordion-item.C0EeQmpM.js.map +1 -0
  43. package/dist/chunks/{action-bar.CsRmYQ-k.js → action-bar.CTS-sRPZ.js} +52 -38
  44. package/dist/chunks/{action-bar.CsRmYQ-k.js.map → action-bar.CTS-sRPZ.js.map} +1 -1
  45. package/dist/chunks/{alert.DtT7BRdr.js → alert.BOAVcKqt.js} +30 -23
  46. package/dist/chunks/alert.BOAVcKqt.js.map +1 -0
  47. package/dist/chunks/{avatar.0ffdL8i0.js → avatar.qcWk9clF.js} +9 -9
  48. package/dist/chunks/avatar.qcWk9clF.js.map +1 -0
  49. package/dist/chunks/{base-modal.zHjXVjwU.js → base-modal.HSuNJt-7.js} +18 -12
  50. package/dist/chunks/{base-modal.zHjXVjwU.js.map → base-modal.HSuNJt-7.js.map} +1 -1
  51. package/dist/chunks/{button-actions-with-menu.B6Nb6Ohu.js → button-actions-with-menu.GyJNwaZ5.js} +4 -4
  52. package/dist/chunks/{button-actions-with-menu.B6Nb6Ohu.js.map → button-actions-with-menu.GyJNwaZ5.js.map} +1 -1
  53. package/dist/chunks/{button-actions.BQHr68sA.js → button-actions.fnn5w4Jz.js} +3 -3
  54. package/dist/chunks/{button-actions.BQHr68sA.js.map → button-actions.fnn5w4Jz.js.map} +1 -1
  55. package/dist/chunks/{button.79klAcOK.js → button.B1JELmx-.js} +2 -2
  56. package/dist/chunks/{button.79klAcOK.js.map → button.B1JELmx-.js.map} +1 -1
  57. package/dist/chunks/{calendar.CaTMWZUM.js → calendar.BBQUZ8xu.js} +230 -230
  58. package/dist/chunks/calendar.BBQUZ8xu.js.map +1 -0
  59. package/dist/chunks/card.DqxilNhb.js +123 -0
  60. package/dist/chunks/card.DqxilNhb.js.map +1 -0
  61. package/dist/chunks/{checkbox-group.D_mCZMPr.js → checkbox-group.CdMkjLu1.js} +4 -4
  62. package/dist/chunks/{checkbox-group.D_mCZMPr.js.map → checkbox-group.CdMkjLu1.js.map} +1 -1
  63. package/dist/chunks/{checkbox-input.BH7MGdMj.js → checkbox-input.Ce0AY_e_.js} +14 -13
  64. package/dist/chunks/checkbox-input.Ce0AY_e_.js.map +1 -0
  65. package/dist/chunks/{checkbox.CaX67eM_.js → checkbox.CVSzcaHk.js} +38 -28
  66. package/dist/chunks/{checkbox.CaX67eM_.js.map → checkbox.CVSzcaHk.js.map} +1 -1
  67. package/dist/chunks/{checkmark-circle-fill.DVl6QSwm.js → checkmark-circle-fill.By9RNf5T.js} +4 -4
  68. package/dist/chunks/{checkmark-circle-fill.DVl6QSwm.js.map → checkmark-circle-fill.By9RNf5T.js.map} +1 -1
  69. package/dist/chunks/{checkmark-small.BtF8b2gE.js → checkmark-small.C8T8ISN6.js} +4 -4
  70. package/dist/chunks/checkmark-small.C8T8ISN6.js.map +1 -0
  71. package/dist/chunks/{chevron-left.CtnrsqUy.js → chevron-left.CvIsaXjZ.js} +6 -6
  72. package/dist/chunks/chevron-left.CvIsaXjZ.js.map +1 -0
  73. package/dist/chunks/{chevron-up.B2uWhZf7.js → chevron-up.DqJmLciO.js} +6 -6
  74. package/dist/chunks/chevron-up.DqJmLciO.js.map +1 -0
  75. package/dist/chunks/{code-snippet.DgKK7fE8.js → code-snippet.BcZJFqdH.js} +45 -36
  76. package/dist/chunks/code-snippet.BcZJFqdH.js.map +1 -0
  77. package/dist/chunks/{controls-group.6aTaRWFI.js → controls-group.BES2y5Y7.js} +2 -2
  78. package/dist/chunks/{controls-group.6aTaRWFI.js.map → controls-group.BES2y5Y7.js.map} +1 -1
  79. package/dist/chunks/{copy.B1DYKX_q.js → copy.qAUSogPB.js} +35 -26
  80. package/dist/chunks/copy.qAUSogPB.js.map +1 -0
  81. package/dist/chunks/{cross-circle-fill-small.Oj6lPaDy.js → cross-circle-fill-small.YhLgeipP.js} +4 -4
  82. package/dist/chunks/cross-circle-fill-small.YhLgeipP.js.map +1 -0
  83. package/dist/chunks/{cross-circle-fill.CnYH4R_h.js → cross-circle-fill.BawVYNw7.js} +4 -4
  84. package/dist/chunks/{cross-circle-fill.CnYH4R_h.js.map → cross-circle-fill.BawVYNw7.js.map} +1 -1
  85. package/dist/chunks/{cross-small.BLUwtRB-.js → cross-small.CZqsjZDz.js} +4 -4
  86. package/dist/chunks/cross-small.CZqsjZDz.js.map +1 -0
  87. package/dist/chunks/{cross.CsUPDmaA.js → cross.CJ5EEL2c.js} +4 -4
  88. package/dist/chunks/{cross.CsUPDmaA.js.map → cross.CJ5EEL2c.js.map} +1 -1
  89. package/dist/chunks/{currency.D_2CN1OJ.js → currency.CbZqZrBz.js} +9 -8
  90. package/dist/chunks/{currency.D_2CN1OJ.js.map → currency.CbZqZrBz.js.map} +1 -1
  91. package/dist/chunks/{dashboard-section.DWfQGGwS.js → dashboard-section.QTsJqS-s.js} +3 -3
  92. package/dist/chunks/{dashboard-section.DWfQGGwS.js.map → dashboard-section.QTsJqS-s.js.map} +1 -1
  93. package/dist/chunks/{dashed-underline.C7gLtEqx.js → dashed-underline.BnBP41jp.js} +2 -2
  94. package/dist/chunks/{dashed-underline.C7gLtEqx.js.map → dashed-underline.BnBP41jp.js.map} +1 -1
  95. package/dist/chunks/{data-grid-template.2xocKVqX.js → data-grid-template.CY3uHWRY.js} +3 -3
  96. package/dist/chunks/{data-grid-template.2xocKVqX.js.map → data-grid-template.CY3uHWRY.js.map} +1 -1
  97. package/dist/chunks/{data-grid.CUn6MrZz.js → data-grid.CZjS7HUz.js} +483 -436
  98. package/dist/chunks/data-grid.CZjS7HUz.js.map +1 -0
  99. package/dist/chunks/{date-picker.C6_KbCYT.js → date-picker.C5uid7SP.js} +91 -83
  100. package/dist/chunks/date-picker.C5uid7SP.js.map +1 -0
  101. package/dist/chunks/{date-range-picker.DaTgBXP1.js → date-range-picker.R5v1ZX-X.js} +265 -243
  102. package/dist/chunks/date-range-picker.R5v1ZX-X.js.map +1 -0
  103. package/dist/chunks/{date.DaiTzNEZ.js → date.C0uwNQjg.js} +80 -80
  104. package/dist/chunks/{date.DaiTzNEZ.js.map → date.C0uwNQjg.js.map} +1 -1
  105. package/dist/chunks/{dialog-page.bmDDYmn9.js → dialog-page.j_L6c9ZP.js} +5 -4
  106. package/dist/chunks/dialog-page.j_L6c9ZP.js.map +1 -0
  107. package/dist/chunks/{dropdown-default-textbox.kQ3pHsZe.js → dropdown-default-textbox.BFx4TF5u.js} +4 -4
  108. package/dist/chunks/{dropdown-default-textbox.kQ3pHsZe.js.map → dropdown-default-textbox.BFx4TF5u.js.map} +1 -1
  109. package/dist/chunks/{dropdown-tag.pJ_sQbJN.js → dropdown-tag.B8A03Cck.js} +3 -3
  110. package/dist/chunks/{dropdown-tag.pJ_sQbJN.js.map → dropdown-tag.B8A03Cck.js.map} +1 -1
  111. package/dist/chunks/{dropdown.DpsQPLy-.js → dropdown.h_j0DsN2.js} +159 -139
  112. package/dist/chunks/dropdown.h_j0DsN2.js.map +1 -0
  113. package/dist/chunks/{empty-state.C2ba_wDp.js → empty-state.CaQuZx7L.js} +2 -2
  114. package/dist/chunks/{empty-state.C2ba_wDp.js.map → empty-state.CaQuZx7L.js.map} +1 -1
  115. package/dist/chunks/{error-message.BnFyGbR7.js → error-message.3tVTq0sW.js} +28 -14
  116. package/dist/chunks/{error-message.BnFyGbR7.js.map → error-message.3tVTq0sW.js.map} +1 -1
  117. package/dist/chunks/es6.BvpG4Oi6.js.map +1 -1
  118. package/dist/chunks/{expand.CwwKq7Uc.js → expand.C263WARj.js} +4 -4
  119. package/dist/chunks/{expand.CwwKq7Uc.js.map → expand.C263WARj.js.map} +1 -1
  120. package/dist/chunks/{filter-bar.DGBvcKsz.js → filter-bar.DgiUmFql.js} +605 -589
  121. package/dist/chunks/filter-bar.DgiUmFql.js.map +1 -0
  122. package/dist/chunks/{fixed-scroller.CQWDnydO.js → fixed-scroller.DcdAycgk.js} +3 -3
  123. package/dist/chunks/{fixed-scroller.CQWDnydO.js.map → fixed-scroller.DcdAycgk.js.map} +1 -1
  124. package/dist/chunks/{footer-actions.CwHY2-Ap.js → footer-actions.C1TgWA9J.js} +3 -3
  125. package/dist/chunks/{footer-actions.CwHY2-Ap.js.map → footer-actions.C1TgWA9J.js.map} +1 -1
  126. package/dist/chunks/{form-layout-title.CRsR3o2x.js → form-layout-title.DW8y285m.js} +2 -2
  127. package/dist/chunks/{form-layout-title.CRsR3o2x.js.map → form-layout-title.DW8y285m.js.map} +1 -1
  128. package/dist/chunks/{index.B_UZQ6qF.js → get-date-locale.BN8xEjY0.js} +855 -204
  129. package/dist/chunks/get-date-locale.BN8xEjY0.js.map +1 -0
  130. package/dist/chunks/{header.BmNDoXio.js → header.Nh_SoSJP.js} +80 -74
  131. package/dist/chunks/{header.BmNDoXio.js.map → header.Nh_SoSJP.js.map} +1 -1
  132. package/dist/chunks/{index.Z84QE0E2.js → index.CrhTVr5J.js} +2 -2
  133. package/dist/chunks/{index.Z84QE0E2.js.map → index.CrhTVr5J.js.map} +1 -1
  134. package/dist/chunks/{index.xqFSZOAb.js → index.DDnf1O9p.js} +2 -2
  135. package/dist/chunks/{index.xqFSZOAb.js.map → index.DDnf1O9p.js.map} +1 -1
  136. package/dist/chunks/{index.B_EJflcs.js → index.DPafeRJa.js} +2 -2
  137. package/dist/chunks/{index.B_EJflcs.js.map → index.DPafeRJa.js.map} +1 -1
  138. package/dist/chunks/{info-icon.DNn4oZsB.js → info-icon.bQl_RleE.js} +2 -2
  139. package/dist/chunks/{info-icon.DNn4oZsB.js.map → info-icon.bQl_RleE.js.map} +1 -1
  140. package/dist/chunks/{info.CyeBsLgt.js → info.D4SG-AIm.js} +4 -4
  141. package/dist/chunks/{info.CyeBsLgt.js.map → info.D4SG-AIm.js.map} +1 -1
  142. package/dist/chunks/{input-field.S5HIZtYA.js → input-field.nBUtoYwF.js} +3 -3
  143. package/dist/chunks/{input-field.S5HIZtYA.js.map → input-field.nBUtoYwF.js.map} +1 -1
  144. package/dist/chunks/{inspector.types.D6kCCKNk.js → inspector.types.DJTWyZ9x.js} +19 -11
  145. package/dist/chunks/{inspector.types.D6kCCKNk.js.map → inspector.types.DJTWyZ9x.js.map} +1 -1
  146. package/dist/chunks/{link.Xce4kDGy.js → link.BKxmPIV5.js} +4 -3
  147. package/dist/chunks/link.BKxmPIV5.js.map +1 -0
  148. package/dist/chunks/{loading-button.DDPZYO6r.js → loading-button.CsaWlmzb.js} +40 -26
  149. package/dist/chunks/loading-button.CsaWlmzb.js.map +1 -0
  150. package/dist/chunks/{menu.DSOJEn4v.js → menu.BhT5t7Ev.js} +7 -6
  151. package/dist/chunks/{menu.DSOJEn4v.js.map → menu.BhT5t7Ev.js.map} +1 -1
  152. package/dist/chunks/{modal-fullscreen.BQKE0bm0.js → modal-fullscreen.BlqMgvmn.js} +27 -21
  153. package/dist/chunks/{modal-fullscreen.BQKE0bm0.js.map → modal-fullscreen.BlqMgvmn.js.map} +1 -1
  154. package/dist/chunks/{modal.ClqkmzVZ.js → modal.DCtgRb44.js} +26 -20
  155. package/dist/chunks/modal.DCtgRb44.js.map +1 -0
  156. package/dist/chunks/{pagination.he0lQGAV.js → pagination.CM_9J0dZ.js} +6 -5
  157. package/dist/chunks/pagination.CM_9J0dZ.js.map +1 -0
  158. package/dist/chunks/{popover.UmNw_M-C.js → popover.DFWeWyxd.js} +4 -4
  159. package/dist/chunks/{popover.UmNw_M-C.js.map → popover.DFWeWyxd.js.map} +1 -1
  160. package/dist/chunks/{radio-group.D7cuMKzV.js → radio-group.o2Kroy4O.js} +3 -3
  161. package/dist/chunks/{radio-group.D7cuMKzV.js.map → radio-group.o2Kroy4O.js.map} +1 -1
  162. package/dist/chunks/{refresh.BKI9WwKh.js → refresh.Bc9FzGjJ.js} +4 -4
  163. package/dist/chunks/{refresh.BKI9WwKh.js.map → refresh.Bc9FzGjJ.js.map} +1 -1
  164. package/dist/chunks/{search-bar.BPyYb0WB.js → search-bar.BRlauT9L.js} +16 -8
  165. package/dist/chunks/{search-bar.BPyYb0WB.js.map → search-bar.BRlauT9L.js.map} +1 -1
  166. package/dist/chunks/{search.CBKhp7zB.js → search.pVu-JVAN.js} +4 -4
  167. package/dist/chunks/{search.CBKhp7zB.js.map → search.pVu-JVAN.js.map} +1 -1
  168. package/dist/chunks/{secondary-nav.CMUfpgQf.js → secondary-nav.lWetIbb8.js} +2 -2
  169. package/dist/chunks/{secondary-nav.CMUfpgQf.js.map → secondary-nav.lWetIbb8.js.map} +1 -1
  170. package/dist/chunks/{selection-card-group.DbMfzyTG.js → selection-card-group.BWZOX7l7.js} +4 -4
  171. package/dist/chunks/{selection-card-group.DbMfzyTG.js.map → selection-card-group.BWZOX7l7.js.map} +1 -1
  172. package/dist/chunks/{sidepanel.Ck6Ts9RR.js → sidepanel.B5CKqH1u.js} +25 -19
  173. package/dist/chunks/{sidepanel.Ck6Ts9RR.js.map → sidepanel.B5CKqH1u.js.map} +1 -1
  174. package/dist/chunks/{step.CjJtlBk6.js → step.vF0pNW-K.js} +7 -6
  175. package/dist/chunks/step.vF0pNW-K.js.map +1 -0
  176. package/dist/chunks/{structured-list-item.DpLscUX4.js → structured-list-item.IElHaBHs.js} +24 -18
  177. package/dist/chunks/{structured-list-item.DpLscUX4.js.map → structured-list-item.IElHaBHs.js.map} +1 -1
  178. package/dist/chunks/{summary-grid-item-custom.B7Re6OCf.js → summary-grid-item-custom.CMsS1kro.js} +3 -3
  179. package/dist/chunks/{summary-grid-item-custom.B7Re6OCf.js.map → summary-grid-item-custom.CMsS1kro.js.map} +1 -1
  180. package/dist/chunks/{tabs.D4ORafqH.js → tabs.D8Ni3Zfb.js} +2 -2
  181. package/dist/chunks/{tabs.D4ORafqH.js.map → tabs.D8Ni3Zfb.js.map} +1 -1
  182. package/dist/chunks/{textarea.BRMpTWKS.js → textarea.2RrKj5Mr.js} +4 -4
  183. package/dist/chunks/{textarea.BRMpTWKS.js.map → textarea.2RrKj5Mr.js.map} +1 -1
  184. package/dist/chunks/{timeline-item.jh7UnviR.js → timeline-item.fF0fFDb9.js} +58 -51
  185. package/dist/chunks/timeline-item.fF0fFDb9.js.map +1 -0
  186. package/dist/chunks/{toast.3LxCDPiT.js → toast.CMdDpqMg.js} +3 -3
  187. package/dist/chunks/{toast.3LxCDPiT.js.map → toast.CMdDpqMg.js.map} +1 -1
  188. package/dist/chunks/{toggle-button.bt3zBzdC.js → toggle-button.CGvkVs_H.js} +2 -2
  189. package/dist/chunks/{toggle-button.bt3zBzdC.js.map → toggle-button.CGvkVs_H.js.map} +1 -1
  190. package/dist/chunks/{toggle.CLgGH4Jr.js → toggle.yiNF7ndg.js} +2 -2
  191. package/dist/chunks/{toggle.CLgGH4Jr.js.map → toggle.yiNF7ndg.js.map} +1 -1
  192. package/dist/chunks/{tutorial.DERGsCkg.js → tutorial.D2msGkwn.js} +86 -73
  193. package/dist/chunks/tutorial.D2msGkwn.js.map +1 -0
  194. package/dist/chunks/{use-cached-selected-values.B39-iEp4.js → use-cached-selected-values.it4ENg3q.js} +62 -47
  195. package/dist/chunks/use-cached-selected-values.it4ENg3q.js.map +1 -0
  196. package/dist/chunks/{warning-filled.CLKRzGMT.js → warning-filled.Cd0kVWwa.js} +4 -4
  197. package/dist/chunks/{warning-filled.CLKRzGMT.js.map → warning-filled.Cd0kVWwa.js.map} +1 -1
  198. package/dist/code-snippet.js +1 -1
  199. package/dist/currency.js +1 -1
  200. package/dist/dashboard-template.js +1 -1
  201. package/dist/dashed-underline.js +1 -1
  202. package/dist/data-grid-template.js +1 -1
  203. package/dist/data-grid.js +1 -1
  204. package/dist/date-picker.js +2 -2
  205. package/dist/date-range-picker.js +2 -2
  206. package/dist/date.js +1 -1
  207. package/dist/dropdown.js +4 -4
  208. package/dist/empty-state.js +1 -1
  209. package/dist/filter-bar.js +1 -1
  210. package/dist/form-layout.js +1 -1
  211. package/dist/header.js +1 -1
  212. package/dist/index.js +54 -54
  213. package/dist/info-icon.js +1 -1
  214. package/dist/input-field.js +1 -1
  215. package/dist/inspector.js +1 -1
  216. package/dist/internal.js +7 -7
  217. package/dist/link.js +1 -1
  218. package/dist/menu.js +1 -1
  219. package/dist/modal-fullscreen.js +1 -1
  220. package/dist/modal.js +2 -2
  221. package/dist/pagination.js +1 -1
  222. package/dist/popover.js +1 -1
  223. package/dist/radio-group.js +1 -1
  224. package/dist/search-bar.js +2 -2
  225. package/dist/secondary-nav.js +1 -1
  226. package/dist/selection-card.js +1 -1
  227. package/dist/sidepanel.js +1 -1
  228. package/dist/stepper.js +1 -1
  229. package/dist/structured-list.js +1 -1
  230. package/dist/styles/bento.css +3 -0
  231. package/dist/styles/legacy.css +3 -0
  232. package/dist/styles/styleguide.css +3 -0
  233. package/dist/summary-grid.js +1 -1
  234. package/dist/tabs.js +1 -1
  235. package/dist/textarea.js +1 -1
  236. package/dist/timeline.js +1 -1
  237. package/dist/toast.js +1 -1
  238. package/dist/toggle.js +1 -1
  239. package/dist/tutorial.js +1 -1
  240. package/dist/web-types.json +1 -1
  241. package/package.json +4 -4
  242. package/dist/chunks/accordion-item.IMlV_Vik.js +0 -100
  243. package/dist/chunks/accordion-item.IMlV_Vik.js.map +0 -1
  244. package/dist/chunks/alert.DtT7BRdr.js.map +0 -1
  245. package/dist/chunks/avatar.0ffdL8i0.js.map +0 -1
  246. package/dist/chunks/calendar.CaTMWZUM.js.map +0 -1
  247. package/dist/chunks/card.ignL7-CH.js +0 -115
  248. package/dist/chunks/card.ignL7-CH.js.map +0 -1
  249. package/dist/chunks/checkbox-input.BH7MGdMj.js.map +0 -1
  250. package/dist/chunks/checkmark-small.BtF8b2gE.js.map +0 -1
  251. package/dist/chunks/chevron-left.CtnrsqUy.js.map +0 -1
  252. package/dist/chunks/chevron-up.B2uWhZf7.js.map +0 -1
  253. package/dist/chunks/code-snippet.DgKK7fE8.js.map +0 -1
  254. package/dist/chunks/copy.B1DYKX_q.js.map +0 -1
  255. package/dist/chunks/cross-circle-fill-small.Oj6lPaDy.js.map +0 -1
  256. package/dist/chunks/cross-small.BLUwtRB-.js.map +0 -1
  257. package/dist/chunks/data-grid.CUn6MrZz.js.map +0 -1
  258. package/dist/chunks/date-picker.C6_KbCYT.js.map +0 -1
  259. package/dist/chunks/date-range-picker.DaTgBXP1.js.map +0 -1
  260. package/dist/chunks/dialog-page.bmDDYmn9.js.map +0 -1
  261. package/dist/chunks/dropdown.DpsQPLy-.js.map +0 -1
  262. package/dist/chunks/filter-bar.DGBvcKsz.js.map +0 -1
  263. package/dist/chunks/index.B_UZQ6qF.js.map +0 -1
  264. package/dist/chunks/link.Xce4kDGy.js.map +0 -1
  265. package/dist/chunks/loading-button.DDPZYO6r.js.map +0 -1
  266. package/dist/chunks/modal.ClqkmzVZ.js.map +0 -1
  267. package/dist/chunks/pagination.he0lQGAV.js.map +0 -1
  268. package/dist/chunks/step.CjJtlBk6.js.map +0 -1
  269. package/dist/chunks/timeline-item.jh7UnviR.js.map +0 -1
  270. package/dist/chunks/tutorial.DERGsCkg.js.map +0 -1
  271. package/dist/chunks/use-cached-selected-values.B39-iEp4.js.map +0 -1
  272. /package/dist/assets/{cross.css → main.css} +0 -0
@@ -1,6 +1,7 @@
1
1
  import { defineComponent as g, toRefs as x, computed as r } from "vue";
2
- import { C as E } from "./checkmark-small.BtF8b2gE.js";
3
- import { n as h } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
2
+ import { C as E } from "./checkmark-small.C8T8ISN6.js";
3
+ /* empty css */
4
+ import { n as m } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
4
5
  import "../assets/checkbox-input.css";
5
6
  var s = /* @__PURE__ */ ((n) => (n.UNCHECKED = "unchecked", n.DISABLED = "disabled", n.ERROR = "error", n.READONLY = "readonly", n))(s || {}), u = /* @__PURE__ */ ((n) => (n.UPDATE = "update:model-value", n))(u || {});
6
7
  let v = 0;
@@ -12,7 +13,7 @@ const D = {
12
13
  var R = function() {
13
14
  var e = this, a = e._self._c;
14
15
  return a("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? a("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), a("path", { attrs: { fill: "#00112C", d: "M4.25 7.25H11.75V8.75H4.25V7.25Z" } })]);
15
- }, A = [], $ = /* @__PURE__ */ h(
16
+ }, A = [], $ = /* @__PURE__ */ m(
16
17
  D,
17
18
  R,
18
19
  A,
@@ -78,15 +79,15 @@ const L = $.exports, N = {
78
79
  },
79
80
  emits: ["update:model-value"],
80
81
  setup(n, { emit: e }) {
81
- const a = n, { disabled: t, indeterminate: m, modelValue: l, readonly: _, value: o } = x(a), b = r(() => ({
82
+ const a = n, { disabled: t, indeterminate: h, modelValue: l, readonly: _, value: o } = x(a), b = r(() => ({
82
83
  [`b-checkbox-input--${s.DISABLED}`]: a.disabled,
83
84
  [`b-checkbox-input--${s.READONLY}`]: a.readonly
84
85
  })), C = r(() => ({
85
- [`b-checkbox-input__outline--${s.UNCHECKED}`]: !f.value && !a.indeterminate,
86
+ [`b-checkbox-input__outline--${s.UNCHECKED}`]: !p.value && !a.indeterminate,
86
87
  [`b-checkbox-input__outline--${s.ERROR}`]: a.hasError,
87
88
  [`b-checkbox-input__outline--${s.READONLY}`]: a.readonly
88
- })), d = r(() => Array.isArray(l.value)), f = r(() => d.value ? l.value.some((i) => i === o.value) : l.value), k = r(() => a.hasError && !a.disabled && !a.readonly);
89
- return { __sfc: !0, props: a, emit: e, disabled: t, indeterminate: m, modelValue: l, readonly: _, value: o, conditionalClasses: b, outlineConditionalClasses: C, isCheckboxGroup: d, isChecked: f, ariaInvalid: k, onClick: (i) => {
89
+ })), d = r(() => Array.isArray(l.value)), p = r(() => d.value ? l.value.some((i) => i === o.value) : l.value), k = r(() => a.hasError && !a.disabled && !a.readonly);
90
+ return { __sfc: !0, props: a, emit: e, disabled: t, indeterminate: h, modelValue: l, readonly: _, value: o, conditionalClasses: b, outlineConditionalClasses: C, isCheckboxGroup: d, isChecked: p, ariaInvalid: k, onClick: (i) => {
90
91
  if (_.value) {
91
92
  i.preventDefault();
92
93
  return;
@@ -96,8 +97,8 @@ const L = $.exports, N = {
96
97
  return;
97
98
  const y = i.target.checked;
98
99
  if (d.value) {
99
- const c = [...l.value], p = c.indexOf(o.value);
100
- p === -1 ? c.push(o.value) : c.splice(p, 1), e(u.UPDATE, c);
100
+ const c = [...l.value], f = c.indexOf(o.value);
101
+ f === -1 ? c.push(o.value) : c.splice(f, 1), e(u.UPDATE, c);
101
102
  } else
102
103
  e(u.UPDATE, y);
103
104
  }, CheckmarkSmallIcon: E, MinusSmallIcon: L };
@@ -106,7 +107,7 @@ const L = $.exports, N = {
106
107
  var w = function() {
107
108
  var e = this, a = e._self._c, t = e._self._setupProxy;
108
109
  return a("div", { staticClass: "b-checkbox-input", class: t.conditionalClasses }, [t.indeterminate ? a(t.MinusSmallIcon, { staticClass: "b-checkbox-input__icon", attrs: { "svg-title": "intermediate" } }) : t.isChecked ? a(t.CheckmarkSmallIcon, { staticClass: "b-checkbox-input__icon", attrs: { "svg-title": "checked" } }) : e._e(), a("input", { ref: "inputRef", staticClass: "b-checkbox-input__outline", class: t.outlineConditionalClasses, attrs: { id: e.id, type: "checkbox", "aria-label": e.ariaLabel, "aria-checked": t.isChecked, "aria-describedby": e.ariaDescribedby, "aria-invalid": t.ariaInvalid, disabled: t.disabled, "aria-readonly": t.readonly }, domProps: { checked: t.isChecked, indeterminate: t.indeterminate, value: t.value }, on: { click: t.onClick, change: t.onChange } })], 1);
109
- }, B = [], I = /* @__PURE__ */ h(
110
+ }, B = [], I = /* @__PURE__ */ m(
110
111
  S,
111
112
  w,
112
113
  B,
@@ -114,10 +115,10 @@ var w = function() {
114
115
  null,
115
116
  "79592442"
116
117
  );
117
- const M = I.exports;
118
+ const T = I.exports;
118
119
  export {
119
120
  s as C,
120
121
  L as N,
121
- M as a
122
+ T as a
122
123
  };
123
- //# sourceMappingURL=checkbox-input.BH7MGdMj.js.map
124
+ //# sourceMappingURL=checkbox-input.Ce0AY_e_.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkbox-input.Ce0AY_e_.js","sources":["../../src/components/internal/checkbox-input/checkbox-input.types.ts","../../../../node_modules/.pnpm/@adyen+ui-assets-icons-16@6.0.2_vue@2.7.16/node_modules/@adyen/ui-assets-icons-16/dist/vue/minus-small.vue","../../src/components/internal/checkbox-input/checkbox-input.vue"],"sourcesContent":["export type MultiCheckboxInputType = Array<string | number>;\nexport type CheckboxInputType = boolean | MultiCheckboxInputType;\n\nexport enum CheckboxInputState {\n UNCHECKED = 'unchecked',\n DISABLED = 'disabled',\n ERROR = 'error',\n READONLY = 'readonly',\n}\n\nexport enum CheckboxInputEvent {\n UPDATE = 'update:model-value',\n}\n\ninterface CheckboxInputGroupItem {\n value: string | number;\n disabled?: boolean;\n hasError?: boolean;\n errorMessage?: string;\n readonly?: boolean;\n}\n\nexport type CheckboxInputGroupItems = Array<CheckboxInputGroupItem>;\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#00112C\" d=\"M4.25 7.25H11.75V8.75H4.25V7.25Z\"/></svg>\n</template>\n<script>\n import '../css/main.css';\n\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n","<template>\n <div class=\"b-checkbox-input\" :class=\"conditionalClasses\">\n <!-- Don't change order because it matters for CSS. Icons first -->\n <minus-small-icon v-if=\"indeterminate\" class=\"b-checkbox-input__icon\" svg-title=\"intermediate\" />\n <checkmark-small-icon v-else-if=\"isChecked\" class=\"b-checkbox-input__icon\" svg-title=\"checked\" />\n <input\n :id=\"id\"\n ref=\"inputRef\"\n type=\"checkbox\"\n class=\"b-checkbox-input__outline\"\n :class=\"outlineConditionalClasses\"\n :aria-label=\"ariaLabel\"\n :aria-checked=\"isChecked\"\n :aria-describedby=\"ariaDescribedby\"\n :aria-invalid=\"ariaInvalid\"\n :checked=\"isChecked\"\n :disabled=\"disabled\"\n :indeterminate.prop=\"indeterminate\"\n :value=\"value\"\n :aria-readonly=\"readonly\"\n @click=\"onClick\"\n @change=\"onChange\"\n />\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, PropType, toRefs } from 'vue';\n import {\n CheckboxInputEvent,\n CheckboxInputGroupItems,\n CheckboxInputState,\n CheckboxInputType,\n MultiCheckboxInputType,\n } from './checkbox-input.types';\n import CheckmarkSmallIcon from '@adyen/ui-assets-icons-16/vue/checkmark-small';\n import MinusSmallIcon from '@adyen/ui-assets-icons-16/vue/minus-small';\n\n const props = defineProps({\n /**\n * The aria label associated to the input checkbox.\n */\n ariaLabel: { type: String, default: '' },\n\n /**\n * An additional string that serves as description for the input checkbox (useful if the component shows a description).\n */\n ariaDescribedby: { type: String, default: '' },\n\n /**\n * Setting this property to true will disable the checkbox in your form.\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Setting this property to true will show the checkbox in error state.\n */\n hasError: { type: Boolean, default: false },\n\n /**\n * Sets the id of the checkbox. Required for accessibility purposes\n */\n id: { type: String, default: null },\n\n /**\n * The :indeterminate CSS pseudo-class represents any form element\n * whose state is indeterminate, such as checkboxes which have their HTML indeterminate attribute\n * set to true, radio buttons which are members of a group in which all radio buttons are unchecked,\n * and indeterminate <progress> elements. https://developer.mozilla.org/en-US/docs/Web/CSS/:indeterminate\n * This property lets you control the input.indeterminate native property.\n */\n indeterminate: { type: Boolean, default: false },\n\n /**\n * When handling a single checkbox with a singular state, use a boolean.\n *\n * When handling multiple checkboxes, use an array of keys.\n * These keys exist as a set \"value\" prop for each checkbox.\n */\n modelValue: {\n type: [Boolean, Array] as PropType<CheckboxInputType | CheckboxInputGroupItems>,\n default: false,\n },\n\n /**\n * Setting this property to true will set the checkbox to read only state.\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * The value of the component. The DOM API casts this to a string.\n * The browser uses \"on\" as the default value.\n *\n * In the case of multiple checkboxes this value is used as a unique key.\n */\n value: { type: [String, Number], default: null },\n });\n\n const emit = defineEmits([\"update:model-value\"]);\n\n const { disabled, indeterminate, modelValue, readonly, value } = toRefs(props);\n\n const conditionalClasses = computed(() => ({\n [`b-checkbox-input--${CheckboxInputState.DISABLED}`]: props.disabled,\n [`b-checkbox-input--${CheckboxInputState.READONLY}`]: props.readonly,\n }));\n\n const outlineConditionalClasses = computed(() => ({\n [`b-checkbox-input__outline--${CheckboxInputState.UNCHECKED}`]: !isChecked.value && !props.indeterminate,\n [`b-checkbox-input__outline--${CheckboxInputState.ERROR}`]: props.hasError,\n [`b-checkbox-input__outline--${CheckboxInputState.READONLY}`]: props.readonly,\n }));\n\n const isCheckboxGroup = computed(() => Array.isArray(modelValue.value));\n\n const isChecked = computed(() => {\n if (!isCheckboxGroup.value) {\n return modelValue.value as boolean;\n }\n\n return (modelValue.value as MultiCheckboxInputType).some(item => item === value.value);\n });\n\n const ariaInvalid = computed(() => props.hasError && !props.disabled && !props.readonly);\n\n // readonly attr doesn't work with checkbox, so we need to manually ignore the click instead\n const onClick = (event: Event) => {\n if (readonly.value) {\n event.preventDefault();\n return;\n }\n };\n const onChange = (event: Event) => {\n if (disabled.value) {\n return;\n }\n\n const newValue: boolean = (event.target as HTMLInputElement).checked;\n\n if (isCheckboxGroup.value) {\n const newCheckedList = [...(modelValue.value as MultiCheckboxInputType)];\n const index = newCheckedList.indexOf(value.value);\n\n if (index === -1) {\n newCheckedList.push(value.value);\n } else {\n newCheckedList.splice(index, 1);\n }\n emit(CheckboxInputEvent.UPDATE, newCheckedList);\n } else {\n emit(CheckboxInputEvent.UPDATE, newValue);\n }\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * Internal component that renders a checkbox input (without label)\n *\n * @example\n * import { BentoCheckboxInput } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoCheckboxInput },\n * template: `\n * <label for=\"checkbox-id\">Your label</label>\n * <span id=\"description-id\">Description</span>\n * <bento-checkbox-input id=\"checkbox-id\" aria=label=\"Your label\" aria-describedby=\"description-id\" />\n * `\n * }\n */\n export default {\n name: 'checkbox-input',\n inheritAttrs: false,\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./checkbox-input.scss\" />\n"],"names":["CheckboxInputState","CheckboxInputState2","CheckboxInputEvent","CheckboxInputEvent2","uuid","_sfc_main$1","__default__","disabled","indeterminate","modelValue","readonly","value","toRefs","props","conditionalClasses","computed","outlineConditionalClasses","isChecked","isCheckboxGroup","item","ariaInvalid","event","newValue","newCheckedList","index","emit"],"mappings":";;;;;AAGY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,YAAA,aACAA,EAAA,WAAA,YACAA,EAAA,QAAA,SACAA,EAAA,WAAA,YAJQA,IAAAD,KAAA,CAAA,CAAA,GAOAE,IAAA,kBAAAC,OACRA,EAAA,SAAA,sBADQA,IAAAD,KAAA,CAAA,CAAA;ACHZ,IAAAE,IAAA;AAEA,MAAAC,IAAA;AAAA,EACA,eAAA;AACA,SAAA,OAAAD,EAAA,SAAA,GACAA,KAAA;AAAA,EACA;AACA;;;;;;;;;;;;qBC6JIE,IAAA;AAAA,EAAe,MAAA;AAAA,EACL,cAAA;AAEV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA1EA,EAAA,UAAAC,GAAA,eAAAC,GAAA,YAAAC,GAAA,UAAAC,GAAA,OAAAC,EAAA,IAAAC,EAAAC,CAAA,GAEAC,IAAAC,EAAA,OAAA;AAAA,MAA2C,CAAA,qBAAAf,EAAA,QAAA,EAAA,GAAAa,EAAA;AAAA,MACqB,CAAA,qBAAAb,EAAA,QAAA,EAAA,GAAAa,EAAA;AAAA,IACA,EAAA,GAGhEG,IAAAD,EAAA,OAAA;AAAA,MAAkD,CAAA,8BAAAf,EAAA,SAAA,EAAA,GAAA,CAAAiB,EAAA,SAAA,CAAAJ,EAAA;AAAA,MAC6C,CAAA,8BAAAb,EAAA,KAAA,EAAA,GAAAa,EAAA;AAAA,MACzB,CAAA,8BAAAb,EAAA,QAAA,EAAA,GAAAa,EAAA;AAAA,IACG,EAAA,GAGzEK,IAAAH,EAAA,MAAA,MAAA,QAAAN,EAAA,KAAA,CAAA,GAEAQ,IAAAF,EAAA,MACIG,EAAA,QAIAT,EAAA,MAAA,KAAA,CAAAU,MAAAA,MAAAR,EAAA,KAAA,IAHIF,EAAA,KAGiF,GAGzFW,IAAAL,EAAA,MAAAF,EAAA,YAAA,CAAAA,EAAA,YAAA,CAAAA,EAAA,QAAA;gOAGA,CAAAQ,MAAA;AACI,UAAAX,EAAA,OAAA;AACI,QAAAW,EAAA,eAAA;AACA;AAAA,MAAA;AAAA,IACJ,aAEJ,CAAAA,MAAA;AACI,UAAAd,EAAA;AACI;AAGJ,YAAAe,IAAAD,EAAA,OAAA;AAEA,UAAAH,EAAA,OAAA;AACI,cAAAK,IAAA,CAAA,GAAAd,EAAA,KAAA,GACAe,IAAAD,EAAA,QAAAZ,EAAA,KAAA;AAEA,QAAAa,MAAA,KACID,EAAA,KAAAZ,EAAA,KAAA,IAEAY,EAAA,OAAAC,GAAA,CAAA,GAEJC,EAAAvB,EAAA,QAAAqB,CAAA;AAAA,MAA8C;AAE9C,QAAAE,EAAAvB,EAAA,QAAAoB,CAAA;AAAA,IACJ;;;;;;;;;;;;;;;","x_google_ignoreList":[1]}
@@ -1,22 +1,32 @@
1
1
  import { defineComponent as $, toRefs as k, computed as o, ref as N } from "vue";
2
2
  import { B as w } from "./typography.CqQaHXhq.js";
3
- import { u as F } from "./use-default-slot-validator.BDn0wkYP.js";
4
- import { u as R } from "./use-has-slot.C9lQZ6nz.js";
3
+ import { u as R } from "./use-default-slot-validator.BDn0wkYP.js";
4
+ import { u as j } from "./use-has-slot.C9lQZ6nz.js";
5
5
  import { g as C } from "./unique-id.XFfoKuc2.js";
6
6
  import { g as f } from "./get-slot-text.Cgn-E48s.js";
7
- import { u as j } from "./i18n.BQkEbtPM.js";
7
+ import { u as F } from "./i18n.BQkEbtPM.js";
8
8
  import { u as z } from "./aria-label.CaUURpnB.js";
9
9
  import { B as H } from "./tag.Bo_6RnVE.js";
10
- import { a as O, C as B } from "./checkbox-input.BH7MGdMj.js";
11
- import { E as Y } from "./error-message.BnFyGbR7.js";
12
- import { n as J } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
10
+ import { a as J, C as B } from "./checkbox-input.Ce0AY_e_.js";
11
+ import { E as O } from "./error-message.3tVTq0sW.js";
12
+ import { n as Y } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
13
13
  import "../assets/checkbox.css";
14
14
  var i = /* @__PURE__ */ ((a) => (a.UPDATE = "update:model-value", a.INPUT = "input", a))(i || {});
15
15
  const K = {
16
16
  "en-US": {
17
- ariaLabelFallback: "Checkbox",
17
+ checkbox: "Checkbox",
18
18
  optional: "optional",
19
19
  required: "required"
20
+ },
21
+ "pt-BR": {
22
+ checkbox: "Caixa de seleção",
23
+ optional: "opcional",
24
+ required: "obrigatório"
25
+ },
26
+ "ja-JP": {
27
+ checkbox: "チェックボックス",
28
+ optional: "任意",
29
+ required: "必須"
20
30
  }
21
31
  }, Q = $({
22
32
  name: "bento-checkbox",
@@ -24,8 +34,8 @@ const K = {
24
34
  components: {
25
35
  BentoTag: H,
26
36
  BentoTypography: w,
27
- CheckboxInput: O,
28
- ErrorMessage: Y
37
+ CheckboxInput: J,
38
+ ErrorMessage: O
29
39
  },
30
40
  model: { prop: "modelValue" },
31
41
  props: {
@@ -93,33 +103,33 @@ const K = {
93
103
  },
94
104
  emits: [i.UPDATE, i.INPUT],
95
105
  setup(a, { attrs: e, emit: t, slots: r }) {
96
- const { t: m } = j(), _ = C("description"), h = C("error"), d = R(r), { disabled: v, indeterminate: A, modelValue: b, readonly: E, value: I } = k(a), y = f(r)("default"), g = f(r)("description");
97
- F("bento-checkbox", r.default, r.description);
106
+ const { t: m } = F(), h = C("description"), _ = C("error"), d = j(r), { disabled: v, indeterminate: A, modelValue: b, readonly: E, value: I } = k(a), y = f(r)("default"), g = f(r)("description");
107
+ R("bento-checkbox", r.default, r.description);
98
108
  const l = o(() => Array.isArray(b.value)), s = o(() => l.value ? b.value.some((u) => u === I.value) : b.value), n = o(() => A.value), x = o(
99
109
  () => !a.disabled && !a.readonly && (a.hasError || !!a.errorMessage)
100
- ), S = o(() => !a.disabled && !a.readonly && !!a.errorMessage), c = o(() => d("content")), p = o(() => (n == null ? void 0 : n.value) || (s == null ? void 0 : s.value)), L = o(
110
+ ), S = o(() => !a.disabled && !a.readonly && !!a.errorMessage), c = o(() => d("content")), p = o(() => (n == null ? void 0 : n.value) || (s == null ? void 0 : s.value)), q = o(
101
111
  () => (c == null ? void 0 : c.value) && (l == null ? void 0 : l.value) && (p == null ? void 0 : p.value)
102
112
  ), D = o(
103
113
  () => n.value ? "mixed" : `${!!s.value}`
104
- ), T = o(
105
- () => `${S.value ? h : ""} ${y && g ? _ : ""}`.trim() || null
106
- ), M = N(e["aria-label"]), { ariaLabel: U } = k(a), q = z({
107
- ariaLabel: M.value,
114
+ ), L = o(
115
+ () => `${S.value ? _ : ""} ${y && g ? h : ""}`.trim() || null
116
+ ), T = N(e["aria-label"]), { ariaLabel: M } = k(a), P = z({
117
+ ariaLabel: T.value,
108
118
  // TODO: take this line away when the aria-label props is removed
109
- label: U,
110
- defaultFallback: d("default") ? f(r)("default") : m("ariaLabelFallback")
111
- }), P = o(() => x.value), V = o(() => ({
119
+ label: M,
120
+ defaultFallback: d("default") ? f(r)("default") : m("checkbox")
121
+ }), U = o(() => x.value), V = o(() => ({
112
122
  [`b-checkbox--${B.DISABLED}`]: v.value,
113
123
  [`b-checkbox--${B.READONLY}`]: E.value
114
124
  }));
115
125
  return {
116
126
  // Values
117
- descriptionId: _,
118
- errorId: h,
127
+ descriptionId: h,
128
+ errorId: _,
119
129
  ariaChecked: D,
120
- ariaDescribedBy: T,
121
- ariaInvalid: P,
122
- computedAriaLabel: q,
130
+ ariaDescribedBy: L,
131
+ ariaInvalid: U,
132
+ computedAriaLabel: P,
123
133
  conditionalClass: V,
124
134
  defaultSlotValue: y,
125
135
  descriptionSlotValue: g,
@@ -128,7 +138,7 @@ const K = {
128
138
  isIndeterminate: n,
129
139
  shouldShowError: x,
130
140
  shouldShowErrorMessage: S,
131
- contentSlotAvailable: L,
141
+ contentSlotAvailable: q,
132
142
  hasContentSlot: c,
133
143
  // Methods
134
144
  hasSlot: d,
@@ -142,17 +152,17 @@ const K = {
142
152
  var W = function() {
143
153
  var e = this, t = e._self._c;
144
154
  return e._self._setupProxy, t("label", { staticClass: "b-checkbox", class: e.conditionalClass }, [t("checkbox-input", e._b({ ref: "input", attrs: { "aria-label": e.computedAriaLabel, "aria-describedby": e.ariaDescribedBy, disabled: e.disabled, "has-error": e.shouldShowError, indeterminate: e.isIndeterminate, value: e.value, "model-value": e.modelValue, readonly: e.readonly }, on: { "update:model-value": e.onChange } }, "checkbox-input", e.$attrs, !1)), e.hasSlot("default") || e.shouldShowErrorMessage ? t("span", { staticClass: "b-checkbox__text" }, [e.hasSlot("default") ? t("bento-typography", { staticClass: "b-checkbox__label", attrs: { el: "span", variant: "body" } }, [t("span", [e._t("default")], 2), e.optional ? t("bento-typography", { staticClass: "b-checkbox__label-requirement", attrs: { el: "span" } }, [e._v("(" + e._s(e.t("optional")) + ")")]) : e.required ? t("bento-typography", { staticClass: "b-checkbox__label-requirement", attrs: { el: "span" } }, [e._v("(" + e._s(e.t("required")) + ")")]) : e._e(), e.tag ? t("bento-tag", e._b({ staticClass: "b-checkbox__label-tag" }, "bento-tag", e.tag, !1)) : e._e()], 1) : e._e(), e.hasSlot("default") && e.hasSlot("description") ? t("bento-typography", { staticClass: "b-checkbox__description", attrs: { id: e.descriptionId, el: "span", variant: "body" } }, [e._t("description")], 2) : e._e(), e.shouldShowErrorMessage ? t("error-message", { attrs: { id: e.errorId, "error-message": e.errorMessage } }) : e._e(), e.contentSlotAvailable ? t("bento-typography", { staticClass: "b-checkbox__content", attrs: { el: "span", variant: "body" } }, [e._t("content")], 2) : e._e()], 1) : e._e()], 1);
145
- }, X = [], Z = /* @__PURE__ */ J(
155
+ }, X = [], Z = /* @__PURE__ */ Y(
146
156
  Q,
147
157
  W,
148
158
  X,
149
159
  !1,
150
160
  null,
151
- "e400ef17"
161
+ "a911cfdc"
152
162
  );
153
163
  const be = Z.exports;
154
164
  export {
155
165
  be as B,
156
166
  i as a
157
167
  };
158
- //# sourceMappingURL=checkbox.CaX67eM_.js.map
168
+ //# sourceMappingURL=checkbox.CVSzcaHk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox.CaX67eM_.js","sources":["../../src/components/checkbox/checkbox.types.ts","../../src/components/checkbox/checkbox.vue"],"sourcesContent":["import type { BentoTag } from '@/components/tag';\nimport type { BentoCheckboxType, BentoMultiCheckboxType } from '../internal/checkbox-input';\nimport { BentoCheckboxState } from '../internal/checkbox-input';\n\nexport { BentoCheckboxState, BentoCheckboxType, BentoMultiCheckboxType };\n\nexport enum BentoCheckboxEvent {\n UPDATE = 'update:model-value',\n INPUT = 'input',\n}\n\nexport type BentoCheckboxTag = InstanceType<typeof BentoTag>['$props'];\n","<template>\n <label class=\"b-checkbox\" :class=\"conditionalClass\">\n <checkbox-input\n ref=\"input\"\n v-bind=\"$attrs\"\n :aria-label=\"computedAriaLabel\"\n :aria-describedby=\"ariaDescribedBy\"\n :disabled=\"disabled\"\n :has-error=\"shouldShowError\"\n :indeterminate=\"isIndeterminate\"\n :value=\"value\"\n :model-value=\"modelValue\"\n :readonly=\"readonly\"\n @update:model-value=\"onChange\"\n />\n <span v-if=\"hasSlot('default') || shouldShowErrorMessage\" class=\"b-checkbox__text\">\n <bento-typography v-if=\"hasSlot('default')\" class=\"b-checkbox__label\" el=\"span\" variant=\"body\">\n <span><slot /></span>\n <bento-typography v-if=\"optional\" class=\"b-checkbox__label-requirement\" el=\"span\"\n >({{ t('optional') }})</bento-typography\n >\n <bento-typography v-else-if=\"required\" class=\"b-checkbox__label-requirement\" el=\"span\"\n >({{ t('required') }})</bento-typography\n >\n <bento-tag v-if=\"tag\" class=\"b-checkbox__label-tag\" v-bind=\"tag\" />\n </bento-typography>\n <bento-typography\n v-if=\"hasSlot('default') && hasSlot('description')\"\n :id=\"descriptionId\"\n class=\"b-checkbox__description\"\n el=\"span\"\n variant=\"body\"\n >\n <slot name=\"description\"></slot>\n </bento-typography>\n <error-message v-if=\"shouldShowErrorMessage\" :id=\"errorId\" :error-message=\"errorMessage\" />\n\n <bento-typography v-if=\"contentSlotAvailable\" class=\"b-checkbox__content\" el=\"span\" variant=\"body\">\n <slot name=\"content\"></slot>\n </bento-typography>\n </span>\n </label>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType, ref, toRefs } from 'vue';\n import {\n BentoCheckboxEvent,\n BentoCheckboxState,\n BentoCheckboxTag,\n BentoCheckboxType,\n BentoMultiCheckboxType,\n } from './checkbox.types';\n import { BentoTypography } from '@/components/typography';\n import { CheckboxInput } from '@/components/internal/checkbox-input';\n import { ErrorMessage } from '@/components/internal/error-message';\n import type { HTMLAttributes } from 'vue/types/jsx';\n import { useDefaultSlotValidator, useHasSlot } from '@/composables';\n import { generateUid } from '@/utils/ts/unique-id';\n import { getSlotText } from '@/utils/ts/get-slot-text';\n import { useI18n } from '@/utils/ts/i18n';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n import { BentoTag } from '@/components/tag';\n import { BentoCheckboxGroupItems } from './components/checkbox-group/checkbox-group.types';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n /**\n * Checkboxes are used to make a binary choice about an option.\n * The label tag area is also clickable.\n *\n * @usage\n * import { BentoCheckbox } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoCheckbox },\n * template: `\n * <bento-checkbox>\n * Label text\n * <template #description>Sub label text</template>\n * </bento-checkbox>\n * `,\n * }\n */\n export default defineComponent({\n name: 'bento-checkbox',\n i18n: { messages },\n components: {\n BentoTag,\n BentoTypography,\n CheckboxInput,\n ErrorMessage,\n },\n model: { prop: 'modelValue' },\n props: {\n /**\n * @deprecated from version 2.0.0. Use the aria-label attribute instead.\n */\n /**\n * Accessible name for the radio button component. It is strongly recommended to pas this value in case this component is used without a label.\n */\n ariaLabel: { type: String, default: null },\n\n /**\n * Setting this property to true will disable the checkbox in your form.\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Renders the checkbox in an error state with an error message.\n */\n errorMessage: { type: String, default: null },\n\n /**\n * Setting this property to true will show the checkbox in error state.\n */\n hasError: { type: Boolean, default: false },\n\n /**\n * The :indeterminate CSS pseudo-class represents any form element\n * whose state is indeterminate, such as checkboxes which have their HTML indeterminate attribute\n * set to true, radio buttons which are members of a group in which all radio buttons are unchecked,\n * and indeterminate <progress> elements. https://developer.mozilla.org/en-US/docs/Web/CSS/:indeterminate\n * This property lets you control the input.indeterminate native property.\n */\n indeterminate: { type: Boolean, default: false },\n\n /**\n * When handling a single checkbox with a singular state, use a boolean.\n *\n * When handling multiple checkboxes, use an array of keys.\n * These keys exist as a set \"value\" prop for each checkbox.\n */\n modelValue: {\n type: [Boolean, Array] as PropType<BentoCheckboxType | BentoCheckboxGroupItems>,\n default: false,\n },\n\n /**\n * Highlights the checkbox is optional.\n */\n optional: { type: Boolean, default: false },\n\n /**\n * Setting this property to true will set the checkbox to read only state.\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * Highlights the checkbox is required.\n */\n required: { type: Boolean, default: false },\n\n /**\n * Sets the properties of the BentoTag component that is placed next to the label.\n * {@see BentoTag}\n */\n tag: { type: Object as PropType<BentoCheckboxTag>, default: undefined },\n\n /**\n * The value of the component. The DOM API casts this to a string.\n * The browser uses \"on\" as the default value.\n *\n * In the case of multiple checkboxes this value is used as a unique key.\n */\n value: { type: [String, Number], default: null },\n },\n emits: [BentoCheckboxEvent.UPDATE, BentoCheckboxEvent.INPUT],\n setup(props, { attrs, emit, slots }) {\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const descriptionId = generateUid('description');\n const errorId = generateUid('error');\n const hasSlot = useHasSlot(slots);\n\n const { disabled, indeterminate, modelValue, readonly, value } = toRefs(props);\n\n const defaultSlotValue = getSlotText(slots)('default');\n const descriptionSlotValue = getSlotText(slots)('description');\n\n useDefaultSlotValidator('bento-checkbox', slots.default, slots.description);\n\n const isCheckboxGroup = computed(() => Array.isArray(modelValue.value));\n const isChecked = computed(() => {\n if (!isCheckboxGroup.value) {\n return modelValue.value as boolean;\n }\n\n return (modelValue.value as BentoMultiCheckboxType).some(item => item === value.value);\n });\n const isIndeterminate = computed(() => indeterminate.value);\n\n const shouldShowError = computed(\n () => !props.disabled && !props.readonly && (props.hasError || !!props.errorMessage)\n );\n const shouldShowErrorMessage = computed(() => !props.disabled && !props.readonly && !!props.errorMessage);\n\n // Content slot logic\n const hasContentSlot = computed(() => hasSlot('content'));\n const isCheckedOrIntermediate = computed(() => isIndeterminate?.value || isChecked?.value);\n const contentSlotAvailable = computed(\n () => hasContentSlot?.value && isCheckboxGroup?.value && isCheckedOrIntermediate?.value\n );\n\n // ARIA fields\n const ariaChecked = computed<HTMLAttributes['aria-checked']>(() =>\n isIndeterminate.value ? 'mixed' : `${!!isChecked.value}`\n );\n\n const ariaDescribedBy = computed<HTMLAttributes['aria-describedby']>(\n () =>\n `${shouldShowErrorMessage.value ? errorId : ''} ${\n defaultSlotValue && descriptionSlotValue ? descriptionId : ''\n }`.trim() || null\n );\n\n const ariaLabelAttribute = ref(attrs['aria-label']);\n const { ariaLabel } = toRefs(props);\n const computedAriaLabel = useAriaLabel({\n ariaLabel: ariaLabelAttribute.value as string,\n // TODO: take this line away when the aria-label props is removed\n label: ariaLabel,\n defaultFallback: hasSlot('default')\n ? (getSlotText(slots)('default') as string)\n : t('ariaLabelFallback'),\n });\n\n const ariaInvalid = computed<HTMLAttributes['aria-invalid']>(() => shouldShowError.value);\n\n const conditionalClass = computed(() => ({\n [`b-checkbox--${BentoCheckboxState.DISABLED}`]: disabled.value,\n [`b-checkbox--${BentoCheckboxState.READONLY}`]: readonly.value,\n }));\n\n const onChange = (newValue: BentoCheckboxType | BentoCheckboxGroupItems) => {\n if (disabled.value) {\n return;\n }\n emit(BentoCheckboxEvent.UPDATE, newValue);\n emit(BentoCheckboxEvent.INPUT, newValue);\n };\n\n return {\n // Values\n descriptionId,\n errorId,\n ariaChecked,\n ariaDescribedBy,\n ariaInvalid,\n computedAriaLabel,\n conditionalClass,\n defaultSlotValue,\n descriptionSlotValue,\n isCheckboxGroup,\n isChecked,\n isIndeterminate,\n shouldShowError,\n shouldShowErrorMessage,\n contentSlotAvailable,\n hasContentSlot,\n\n // Methods\n hasSlot,\n onChange,\n\n t,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./checkbox.scss\" />\n"],"names":["BentoCheckboxEvent","BentoCheckboxEvent2","_sfc_main","defineComponent","messages","BentoTag","BentoTypography","CheckboxInput","ErrorMessage","props","attrs","emit","slots","t","useI18n","descriptionId","generateUid","errorId","hasSlot","useHasSlot","disabled","indeterminate","modelValue","readonly","value","toRefs","defaultSlotValue","getSlotText","descriptionSlotValue","useDefaultSlotValidator","isCheckboxGroup","computed","isChecked","item","isIndeterminate","shouldShowError","shouldShowErrorMessage","hasContentSlot","isCheckedOrIntermediate","contentSlotAvailable","ariaChecked","ariaDescribedBy","ariaLabelAttribute","ref","ariaLabel","computedAriaLabel","useAriaLabel","ariaInvalid","conditionalClass","CheckboxInputState","newValue"],"mappings":";;;;;;;;;;;;;AAMY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,SAAA,sBACAA,EAAA,QAAA,SAFQA,IAAAD,KAAA,CAAA,CAAA;;;;;;;GC+EZE,IAAAC,EAAA;AAAA,EAAA,MAAA;AAAA,EACA,MAAA,EAAA,UAAAC,EAAA;AAAA,EACA,YAAA;AAAA,IACA,UAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,eAAAC;AAAA,IACA,cAAAC;AAAA,EACA;AAAA,EACA,OAAA,EAAA,MAAA,aAAA;AAAA,EACA,OAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IACA,WAAA,EAAA,MA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,IAAAhB,EAAA,MAAAI,EAAA,KAAA,GAEAa,IAAAjB,EAAA,OAAA;AAAA,MAAA,CAAA,eAAAkB,EAAA,QAAA,EAAA,GAAA7B,EAAA;AAAA,MACA,CAAA,eAAA6B,EAAA,QAAA,EAAA,GAAA1B,EAAA;AAAA,IACA,EAAA;AAWA,WAAA;AAAA;AAAA,MAAA,eAAAR;AAAA,MAEA,SAAAE;AAAA,MACA,aAAAuB;AAAA,MACA,iBAAAC;AAAA,MACA,aAAAM;AAAA,MACA,mBAAAF;AAAA,MACA,kBAAAG;AAAA,MACA,kBAAAtB;AAAA,MACA,sBAAAE;AAAA,MACA,iBAAAE;AAAA,MACA,WAAAE;AAAA,MACA,iBAAAE;AAAA,MACA,iBAAAC;AAAA,MACA,wBAAAC;AAAA,MACA,sBAAAG;AAAA,MACA,gBAAAF;AAAA;AAAA,MACA,SAAAnB;AAAA,MAGA,UA5BA,CAAAgC,MAAA;AACA,QAAA9B,EAAA,UAGAT,EAAAX,EAAA,QAAAkD,CAAA,GACAvC,EAAAX,EAAA,OAAAkD,CAAA;AAAA,MAAA;AAAA,MAwBA,GAAArC;AAAA,IAEA;AAAA,EACA;AAEA,CAAA;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"checkbox.CVSzcaHk.js","sources":["../../src/components/checkbox/checkbox.types.ts","../../src/components/checkbox/checkbox.vue"],"sourcesContent":["import type { BentoTag } from '@/components/tag';\nimport type { BentoCheckboxType, BentoMultiCheckboxType } from '../internal/checkbox-input';\nimport { BentoCheckboxState } from '../internal/checkbox-input';\n\nexport { BentoCheckboxState, BentoCheckboxType, BentoMultiCheckboxType };\n\nexport enum BentoCheckboxEvent {\n UPDATE = 'update:model-value',\n INPUT = 'input',\n}\n\nexport type BentoCheckboxTag = InstanceType<typeof BentoTag>['$props'];\n","<template>\n <label class=\"b-checkbox\" :class=\"conditionalClass\">\n <checkbox-input\n ref=\"input\"\n v-bind=\"$attrs\"\n :aria-label=\"computedAriaLabel\"\n :aria-describedby=\"ariaDescribedBy\"\n :disabled=\"disabled\"\n :has-error=\"shouldShowError\"\n :indeterminate=\"isIndeterminate\"\n :value=\"value\"\n :model-value=\"modelValue\"\n :readonly=\"readonly\"\n @update:model-value=\"onChange\"\n />\n <span v-if=\"hasSlot('default') || shouldShowErrorMessage\" class=\"b-checkbox__text\">\n <bento-typography v-if=\"hasSlot('default')\" class=\"b-checkbox__label\" el=\"span\" variant=\"body\">\n <span><slot /></span>\n <bento-typography v-if=\"optional\" class=\"b-checkbox__label-requirement\" el=\"span\"\n >({{ t('optional') }})</bento-typography\n >\n <bento-typography v-else-if=\"required\" class=\"b-checkbox__label-requirement\" el=\"span\"\n >({{ t('required') }})</bento-typography\n >\n <bento-tag v-if=\"tag\" class=\"b-checkbox__label-tag\" v-bind=\"tag\" />\n </bento-typography>\n <bento-typography\n v-if=\"hasSlot('default') && hasSlot('description')\"\n :id=\"descriptionId\"\n class=\"b-checkbox__description\"\n el=\"span\"\n variant=\"body\"\n >\n <slot name=\"description\"></slot>\n </bento-typography>\n <error-message v-if=\"shouldShowErrorMessage\" :id=\"errorId\" :error-message=\"errorMessage\" />\n\n <bento-typography v-if=\"contentSlotAvailable\" class=\"b-checkbox__content\" el=\"span\" variant=\"body\">\n <slot name=\"content\"></slot>\n </bento-typography>\n </span>\n </label>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType, ref, toRefs } from 'vue';\n import {\n BentoCheckboxEvent,\n BentoCheckboxState,\n BentoCheckboxTag,\n BentoCheckboxType,\n BentoMultiCheckboxType,\n } from './checkbox.types';\n import { BentoTypography } from '@/components/typography';\n import { CheckboxInput } from '@/components/internal/checkbox-input';\n import { ErrorMessage } from '@/components/internal/error-message';\n import type { HTMLAttributes } from 'vue/types/jsx';\n import { useDefaultSlotValidator, useHasSlot } from '@/composables';\n import { generateUid } from '@/utils/ts/unique-id';\n import { getSlotText } from '@/utils/ts/get-slot-text';\n import { useI18n } from '@/utils/ts/i18n';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n import { BentoTag } from '@/components/tag';\n import { BentoCheckboxGroupItems } from './components/checkbox-group/checkbox-group.types';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n /**\n * Checkboxes are used to make a binary choice about an option.\n * The label tag area is also clickable.\n *\n * @usage\n * import { BentoCheckbox } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoCheckbox },\n * template: `\n * <bento-checkbox>\n * Label text\n * <template #description>Sub label text</template>\n * </bento-checkbox>\n * `,\n * }\n */\n export default defineComponent({\n name: 'bento-checkbox',\n i18n: { messages },\n components: {\n BentoTag,\n BentoTypography,\n CheckboxInput,\n ErrorMessage,\n },\n model: { prop: 'modelValue' },\n props: {\n /**\n * @deprecated from version 2.0.0. Use the aria-label attribute instead.\n */\n /**\n * Accessible name for the radio button component. It is strongly recommended to pas this value in case this component is used without a label.\n */\n ariaLabel: { type: String, default: null },\n\n /**\n * Setting this property to true will disable the checkbox in your form.\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Renders the checkbox in an error state with an error message.\n */\n errorMessage: { type: String, default: null },\n\n /**\n * Setting this property to true will show the checkbox in error state.\n */\n hasError: { type: Boolean, default: false },\n\n /**\n * The :indeterminate CSS pseudo-class represents any form element\n * whose state is indeterminate, such as checkboxes which have their HTML indeterminate attribute\n * set to true, radio buttons which are members of a group in which all radio buttons are unchecked,\n * and indeterminate <progress> elements. https://developer.mozilla.org/en-US/docs/Web/CSS/:indeterminate\n * This property lets you control the input.indeterminate native property.\n */\n indeterminate: { type: Boolean, default: false },\n\n /**\n * When handling a single checkbox with a singular state, use a boolean.\n *\n * When handling multiple checkboxes, use an array of keys.\n * These keys exist as a set \"value\" prop for each checkbox.\n */\n modelValue: {\n type: [Boolean, Array] as PropType<BentoCheckboxType | BentoCheckboxGroupItems>,\n default: false,\n },\n\n /**\n * Highlights the checkbox is optional.\n */\n optional: { type: Boolean, default: false },\n\n /**\n * Setting this property to true will set the checkbox to read only state.\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * Highlights the checkbox is required.\n */\n required: { type: Boolean, default: false },\n\n /**\n * Sets the properties of the BentoTag component that is placed next to the label.\n * {@see BentoTag}\n */\n tag: { type: Object as PropType<BentoCheckboxTag>, default: undefined },\n\n /**\n * The value of the component. The DOM API casts this to a string.\n * The browser uses \"on\" as the default value.\n *\n * In the case of multiple checkboxes this value is used as a unique key.\n */\n value: { type: [String, Number], default: null },\n },\n emits: [BentoCheckboxEvent.UPDATE, BentoCheckboxEvent.INPUT],\n setup(props, { attrs, emit, slots }) {\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const descriptionId = generateUid('description');\n const errorId = generateUid('error');\n const hasSlot = useHasSlot(slots);\n\n const { disabled, indeterminate, modelValue, readonly, value } = toRefs(props);\n\n const defaultSlotValue = getSlotText(slots)('default');\n const descriptionSlotValue = getSlotText(slots)('description');\n\n useDefaultSlotValidator('bento-checkbox', slots.default, slots.description);\n\n const isCheckboxGroup = computed(() => Array.isArray(modelValue.value));\n const isChecked = computed(() => {\n if (!isCheckboxGroup.value) {\n return modelValue.value as boolean;\n }\n\n return (modelValue.value as BentoMultiCheckboxType).some(item => item === value.value);\n });\n const isIndeterminate = computed(() => indeterminate.value);\n\n const shouldShowError = computed(\n () => !props.disabled && !props.readonly && (props.hasError || !!props.errorMessage)\n );\n const shouldShowErrorMessage = computed(() => !props.disabled && !props.readonly && !!props.errorMessage);\n\n // Content slot logic\n const hasContentSlot = computed(() => hasSlot('content'));\n const isCheckedOrIntermediate = computed(() => isIndeterminate?.value || isChecked?.value);\n const contentSlotAvailable = computed(\n () => hasContentSlot?.value && isCheckboxGroup?.value && isCheckedOrIntermediate?.value\n );\n\n // ARIA fields\n const ariaChecked = computed<HTMLAttributes['aria-checked']>(() =>\n isIndeterminate.value ? 'mixed' : `${!!isChecked.value}`\n );\n\n const ariaDescribedBy = computed<HTMLAttributes['aria-describedby']>(\n () =>\n `${shouldShowErrorMessage.value ? errorId : ''} ${\n defaultSlotValue && descriptionSlotValue ? descriptionId : ''\n }`.trim() || null\n );\n\n const ariaLabelAttribute = ref(attrs['aria-label']);\n const { ariaLabel } = toRefs(props);\n const computedAriaLabel = useAriaLabel({\n ariaLabel: ariaLabelAttribute.value as string,\n // TODO: take this line away when the aria-label props is removed\n label: ariaLabel,\n defaultFallback: hasSlot('default') ? (getSlotText(slots)('default') as string) : t('checkbox'),\n });\n\n const ariaInvalid = computed<HTMLAttributes['aria-invalid']>(() => shouldShowError.value);\n\n const conditionalClass = computed(() => ({\n [`b-checkbox--${BentoCheckboxState.DISABLED}`]: disabled.value,\n [`b-checkbox--${BentoCheckboxState.READONLY}`]: readonly.value,\n }));\n\n const onChange = (newValue: BentoCheckboxType | BentoCheckboxGroupItems) => {\n if (disabled.value) {\n return;\n }\n emit(BentoCheckboxEvent.UPDATE, newValue);\n emit(BentoCheckboxEvent.INPUT, newValue);\n };\n\n return {\n // Values\n descriptionId,\n errorId,\n ariaChecked,\n ariaDescribedBy,\n ariaInvalid,\n computedAriaLabel,\n conditionalClass,\n defaultSlotValue,\n descriptionSlotValue,\n isCheckboxGroup,\n isChecked,\n isIndeterminate,\n shouldShowError,\n shouldShowErrorMessage,\n contentSlotAvailable,\n hasContentSlot,\n\n // Methods\n hasSlot,\n onChange,\n\n t,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./checkbox.scss\" />\n"],"names":["BentoCheckboxEvent","BentoCheckboxEvent2","_sfc_main","defineComponent","messages","BentoTag","BentoTypography","CheckboxInput","ErrorMessage","props","attrs","emit","slots","t","useI18n","descriptionId","generateUid","errorId","hasSlot","useHasSlot","disabled","indeterminate","modelValue","readonly","value","toRefs","defaultSlotValue","getSlotText","descriptionSlotValue","useDefaultSlotValidator","isCheckboxGroup","computed","isChecked","item","isIndeterminate","shouldShowError","shouldShowErrorMessage","hasContentSlot","isCheckedOrIntermediate","contentSlotAvailable","ariaChecked","ariaDescribedBy","ariaLabelAttribute","ref","ariaLabel","computedAriaLabel","use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 +1,5 @@
1
+ /* empty css */
1
2
  import { n as r } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
2
- import "../assets/cross.css";
3
3
  let i = 0;
4
4
  const e = {
5
5
  beforeCreate() {
@@ -17,8 +17,8 @@ var a = function() {
17
17
  null,
18
18
  null
19
19
  );
20
- const o = c.exports;
20
+ const f = c.exports;
21
21
  export {
22
- o as C
22
+ f as C
23
23
  };
24
- //# sourceMappingURL=checkmark-circle-fill.DVl6QSwm.js.map
24
+ //# sourceMappingURL=checkmark-circle-fill.By9RNf5T.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"checkmark-circle-fill.DVl6QSwm.js","sources":["../../../../node_modules/.pnpm/@adyen+ui-assets-icons-16@4.1.0_vue@2.7.16/node_modules/@adyen/ui-assets-icons-16/dist/vue/checkmark-circle-fill.vue"],"sourcesContent":["\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><g :clip-path=\"'url(#uia-icons-16-checkmark_circle_fill__a' + uuid + ')'\"><path fill=\"#00112C\" d=\"M0.25 8C0.25 3.71979 3.71979 0.25 8 0.25C12.2802 0.25 15.75 3.71979 15.75 8C15.75 12.2802 12.2802 15.75 8 15.75C3.71979 15.75 0.25 12.2802 0.25 8ZM11.0001 4.93945L7.0001 8.93946L5.00011 6.93947L3.93945 8.00013L7.00011 11.0608L12.0608 6.00011L11.0001 4.93945Z\"/></g><defs><clipPath :id=\"'uia-icons-16-checkmark_circle_fill__a' + uuid\"><rect width=\"16\" height=\"16\" fill=\"#fff\"/></clipPath></defs></svg>\n</template>\n<script>\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n<style>\n @import '../css/main.css';\n</style>\n"],"names":["uuid","_sfc_main"],"mappings":";;AAKA,IAAAA,IAAA;AAEA,MAAAC,IAAA;AAAA,EACA,eAAA;AACA,SAAA,OAAAD,EAAA,SAAA,GACAA,KAAA;AAAA,EACA;AACA;;;;;;;;;;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"checkmark-circle-fill.By9RNf5T.js","sources":["../../../../node_modules/.pnpm/@adyen+ui-assets-icons-16@6.0.2_vue@2.7.16/node_modules/@adyen/ui-assets-icons-16/dist/vue/checkmark-circle-fill.vue"],"sourcesContent":["\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><g :clip-path=\"'url(#uia-icons-16-checkmark_circle_fill__a' + uuid + ')'\"><path fill=\"#00112C\" d=\"M0.25 8C0.25 3.71979 3.71979 0.25 8 0.25C12.2802 0.25 15.75 3.71979 15.75 8C15.75 12.2802 12.2802 15.75 8 15.75C3.71979 15.75 0.25 12.2802 0.25 8ZM11.0001 4.93945L7.0001 8.93946L5.00011 6.93947L3.93945 8.00013L7.00011 11.0608L12.0608 6.00011L11.0001 4.93945Z\"/></g><defs><clipPath :id=\"'uia-icons-16-checkmark_circle_fill__a' + uuid\"><rect width=\"16\" height=\"16\" fill=\"#fff\"/></clipPath></defs></svg>\n</template>\n<script>\n import '../css/main.css';\n\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n"],"names":["uuid","_sfc_main"],"mappings":";;AAOA,IAAAA,IAAA;AAEA,MAAAC,IAAA;AAAA,EACA,eAAA;AACA,SAAA,OAAAD,EAAA,SAAA,GACAA,KAAA;AAAA,EACA;AACA;;;;;;;;;;;;;","x_google_ignoreList":[0]}
@@ -1,5 +1,5 @@
1
+ /* empty css */
1
2
  import { n as r } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
2
- import "../assets/cross.css";
3
3
  let e = 0;
4
4
  const n = {
5
5
  beforeCreate() {
@@ -17,8 +17,8 @@ var a = function() {
17
17
  null,
18
18
  null
19
19
  );
20
- const c = l.exports;
20
+ const m = l.exports;
21
21
  export {
22
- c as C
22
+ m as C
23
23
  };
24
- //# sourceMappingURL=checkmark-small.BtF8b2gE.js.map
24
+ //# sourceMappingURL=checkmark-small.C8T8ISN6.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkmark-small.C8T8ISN6.js","sources":["../../../../node_modules/.pnpm/@adyen+ui-assets-icons-16@6.0.2_vue@2.7.16/node_modules/@adyen/ui-assets-icons-16/dist/vue/checkmark-small.vue"],"sourcesContent":["\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#00112C\" d=\"M12.0608 6.00011L11.0001 4.93945L7.00011 8.93945L5.00011 6.93945L3.93945 8.00011L7.00011 11.0608L12.0608 6.00011Z\"/></svg>\n</template>\n<script>\n import '../css/main.css';\n\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n"],"names":["uuid","_sfc_main"],"mappings":";;AAOA,IAAAA,IAAA;AAEA,MAAAC,IAAA;AAAA,EACA,eAAA;AACA,SAAA,OAAAD,EAAA,SAAA,GACAA,KAAA;AAAA,EACA;AACA;;;;;;;;;;;;;","x_google_ignoreList":[0]}
@@ -1,5 +1,5 @@
1
+ /* empty css */
1
2
  import { n } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
2
- import "../assets/cross.css";
3
3
  let e = 0;
4
4
  const a = {
5
5
  beforeCreate() {
@@ -17,7 +17,7 @@ var l = function() {
17
17
  null,
18
18
  null
19
19
  );
20
- const h = o.exports;
20
+ const m = o.exports;
21
21
  let r = 0;
22
22
  const c = {
23
23
  beforeCreate() {
@@ -35,9 +35,9 @@ var v = function() {
35
35
  null,
36
36
  null
37
37
  );
38
- const m = g.exports;
38
+ const d = g.exports;
39
39
  export {
40
- m as C,
41
- h as a
40
+ d as C,
41
+ m as a
42
42
  };
43
- //# sourceMappingURL=chevron-left.CtnrsqUy.js.map
43
+ //# sourceMappingURL=chevron-left.CvIsaXjZ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chevron-left.CvIsaXjZ.js","sources":["../../../../node_modules/.pnpm/@adyen+ui-assets-icons-16@6.0.2_vue@2.7.16/node_modules/@adyen/ui-assets-icons-16/dist/vue/chevron-right.vue","../../../../node_modules/.pnpm/@adyen+ui-assets-icons-16@6.0.2_vue@2.7.16/node_modules/@adyen/ui-assets-icons-16/dist/vue/chevron-left.vue"],"sourcesContent":["\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#00112C\" d=\"M4.43945 12.9999L9.43945 7.99988L4.43945 2.99988L5.50011 1.93922L11.5608 7.99988L5.50011 14.0605L4.43945 12.9999Z\"/></svg>\n</template>\n<script>\n import '../css/main.css';\n\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#00112C\" d=\"M11.5606 3.00011L6.56056 8.00011L11.5606 13.0001L10.4999 14.0608L4.43924 8.00011L10.4999 1.93945L11.5606 3.00011Z\"/></svg>\n</template>\n<script>\n import '../css/main.css';\n\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n"],"names":["uuid","_sfc_main"],"mappings":";;AAOA,IAAAA,IAAA;AAEA,MAAAC,IAAA;AAAA,EACA,eAAA;AACA,SAAA,OAAAD,EAAA,SAAA,GACAA,KAAA;AAAA,EACA;AACA;;;;;;;;;;;;;ACPA,IAAAA,IAAA;AAEA,MAAAC,IAAA;AAAA,EACA,eAAA;AACA,SAAA,OAAAD,EAAA,SAAA,GACAA,KAAA;AAAA,EACA;AACA;;;;;;;;;;;;;","x_google_ignoreList":[0,1]}
@@ -1,5 +1,5 @@
1
+ /* empty css */
1
2
  import { n } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
2
- import "../assets/cross.css";
3
3
  let e = 0;
4
4
  const i = {
5
5
  beforeCreate() {
@@ -17,7 +17,7 @@ var l = function() {
17
17
  null,
18
18
  null
19
19
  );
20
- const h = _.exports;
20
+ const m = _.exports;
21
21
  let r = 0;
22
22
  const c = {
23
23
  beforeCreate() {
@@ -35,9 +35,9 @@ var v = function() {
35
35
  null,
36
36
  null
37
37
  );
38
- const m = g.exports;
38
+ const d = g.exports;
39
39
  export {
40
- h as C,
41
- m as a
40
+ m as C,
41
+ d as a
42
42
  };
43
- //# sourceMappingURL=chevron-up.B2uWhZf7.js.map
43
+ //# sourceMappingURL=chevron-up.DqJmLciO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chevron-up.DqJmLciO.js","sources":["../../../../node_modules/.pnpm/@adyen+ui-assets-icons-16@6.0.2_vue@2.7.16/node_modules/@adyen/ui-assets-icons-16/dist/vue/chevron-down.vue","../../../../node_modules/.pnpm/@adyen+ui-assets-icons-16@6.0.2_vue@2.7.16/node_modules/@adyen/ui-assets-icons-16/dist/vue/chevron-up.vue"],"sourcesContent":["\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#00112C\" d=\"M2.99988 4.43923L7.99988 9.43923L12.9999 4.43923L14.0605 5.49989L7.99988 11.5605L1.93922 5.49989L2.99988 4.43923Z\"/></svg>\n</template>\n<script>\n import '../css/main.css';\n\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#00112C\" d=\"M12.9999 11.5605L7.99989 6.56055L2.99988 11.5605L1.93922 10.4999L7.99989 4.43923L14.0605 10.4999L12.9999 11.5605Z\"/></svg>\n</template>\n<script>\n import '../css/main.css';\n\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n"],"names":["uuid","_sfc_main"],"mappings":";;AAOA,IAAAA,IAAA;AAEA,MAAAC,IAAA;AAAA,EACA,eAAA;AACA,SAAA,OAAAD,EAAA,SAAA,GACAA,KAAA;AAAA,EACA;AACA;;;;;;;;;;;;;ACPA,IAAAA,IAAA;AAEA,MAAAC,IAAA;AAAA,EACA,eAAA;AACA,SAAA,OAAAD,EAAA,SAAA,GACAA,KAAA;AAAA,EACA;AACA;;;;;;;;;;;;;","x_google_ignoreList":[0,1]}
@@ -1,16 +1,16 @@
1
- import { defineComponent as j, ref as d, computed as l, shallowRef as x, onMounted as R, watch as J, watchEffect as V } from "vue";
2
- import { s as D, H as G, t as n, j as P, x as $, a as U, b as W, p as z, E as F, h as X, k as Y, i as K, c as L, d as N, l as q, e as Q, C as h } from "./codemirror.BlV6WO5w.js";
1
+ import { defineComponent as j, ref as d, computed as l, shallowRef as x, onMounted as R, watch as D, watchEffect as J } from "vue";
2
+ import { s as P, H as V, t as n, j as G, x as $, a as U, b as W, p as z, E as F, h as X, k as Y, i as K, c as L, d as N, l as q, e as Q, C as h } from "./codemirror.BlV6WO5w.js";
3
3
  import { B as Z, a as ee, b as te, c as ne } from "./es6.BvpG4Oi6.js";
4
- import { B as ae } from "./dropdown.DpsQPLy-.js";
5
- import { B as oe } from "./button.79klAcOK.js";
4
+ import { B as ae } from "./dropdown.h_j0DsN2.js";
5
+ import { B as oe } from "./button.B1JELmx-.js";
6
6
  import { B as se } from "./typography.CqQaHXhq.js";
7
7
  import { B as ie } from "./loading-indicator.DXc7I1Lm.js";
8
8
  import { u as le } from "./i18n.BQkEbtPM.js";
9
- import { E as re } from "./expand.CwwKq7Uc.js";
10
- import { h as ce } from "./base-modal.zHjXVjwU.js";
11
- import { C as de } from "./copy.B1DYKX_q.js";
12
- import { B as ue } from "./tooltip.BN6fOXzi.js";
13
- import { n as ge } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
9
+ import { E as re } from "./expand.C263WARj.js";
10
+ import { h as ce } from "./base-modal.HSuNJt-7.js";
11
+ import { C as de } from "./copy.qAUSogPB.js";
12
+ import { B as ge } from "./tooltip.BN6fOXzi.js";
13
+ import { n as ue } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
14
14
  import "../assets/code-snippet.css";
15
15
  const pe = {
16
16
  red: Z,
@@ -18,7 +18,7 @@ const pe = {
18
18
  green: te,
19
19
  blue: ne,
20
20
  invalid: "#ffffff"
21
- }, fe = (e, t) => G.define([
21
+ }, fe = (e, t) => V.define([
22
22
  {
23
23
  tag: n.keyword,
24
24
  color: e.red
@@ -85,10 +85,10 @@ const pe = {
85
85
  tag: n.invalid,
86
86
  color: e.invalid
87
87
  }
88
- ]), me = (e) => D(fe(pe, e));
89
- var u = /* @__PURE__ */ ((e) => (e.INLINE = "inline", e.SINGLELINE = "singleline", e.MULTILINE = "multiline", e))(u || {}), s = /* @__PURE__ */ ((e) => (e.JSON = "json", e.XML = "xml", e.JAVA = "java", e.JAVASCRIPT = "javascript", e.PYTHON = "python", e))(s || {}), r = /* @__PURE__ */ ((e) => (e.ACTION = "action", e.CHANGE = "change", e))(r || {});
88
+ ]), me = (e) => P(fe(pe, e));
89
+ var g = /* @__PURE__ */ ((e) => (e.INLINE = "inline", e.SINGLELINE = "singleline", e.MULTILINE = "multiline", e))(g || {}), s = /* @__PURE__ */ ((e) => (e.JSON = "json", e.XML = "xml", e.JAVA = "java", e.JAVASCRIPT = "javascript", e.PYTHON = "python", e))(s || {}), r = /* @__PURE__ */ ((e) => (e.ACTION = "action", e.CHANGE = "change", e))(r || {});
90
90
  const be = {
91
- [s.JSON]: P,
91
+ [s.JSON]: G,
92
92
  [s.XML]: $,
93
93
  [s.JAVASCRIPT]: U,
94
94
  [s.JAVA]: W,
@@ -111,8 +111,17 @@ ${_e(e, o)}`;
111
111
  }
112
112
  }, ye = {
113
113
  "en-US": {
114
- run: "Run",
115
- expand: "Expand"
114
+ expand: "Expand",
115
+ nothingToDisplay: "Nothing to display",
116
+ run: "Run"
117
+ },
118
+ "pt-BR": {
119
+ expand: "Expandir",
120
+ nothingToDisplay: "Nada para exibir"
121
+ },
122
+ "ja-JP": {
123
+ expand: "展開",
124
+ nothingToDisplay: "表示するものがありません"
116
125
  }
117
126
  }, Ce = j({
118
127
  i18n: { messages: ye },
@@ -126,15 +135,15 @@ ${_e(e, o)}`;
126
135
  BentoLoadingIndicator: ie,
127
136
  ExpandIcon: re
128
137
  },
129
- directives: { BentoTooltipDirective: ue },
138
+ directives: { BentoTooltipDirective: ge },
130
139
  props: {
131
140
  /**
132
141
  * Defines the variant of code-snippet
133
142
  */
134
143
  variant: {
135
144
  type: String,
136
- default: u.MULTILINE,
137
- validator: (e) => Object.values(u).includes(e)
145
+ default: g.MULTILINE,
146
+ validator: (e) => Object.values(g).includes(e)
138
147
  },
139
148
  /**
140
149
  * Language name for syntax highlighting rules
@@ -200,21 +209,21 @@ ${_e(e, o)}`;
200
209
  emits: [r.ACTION, r.CHANGE],
201
210
  setup(e, { emit: t }) {
202
211
  const { t: a } = le(), o = d(null), _ = [], c = () => {
203
- }, A = l(() => e.langLabel ?? e.lang.toUpperCase()), g = l(() => e.variant === u.INLINE), I = l(() => ({
204
- "b-code-snippet--inline": g.value,
205
- "b-code-snippet--scrollable": !g.value
206
- })), E = l(() => ({
212
+ }, A = l(() => e.langLabel ?? e.lang.toUpperCase()), u = l(() => e.variant === g.INLINE), I = l(() => ({
213
+ "b-code-snippet--inline": u.value,
214
+ "b-code-snippet--scrollable": !u.value
215
+ })), T = l(() => ({
207
216
  "b-code-snippet__code-area-content--editable": e.editable
208
- })), w = he(e.lang), v = x(), p = x(), T = new h(), B = new h(), S = new h(), i = d(null), f = d(0);
217
+ })), E = he(e.lang), v = x(), p = x(), w = new h(), B = new h(), S = new h(), i = d(null), f = d(0);
209
218
  R(async () => {
210
- const m = await w();
219
+ const m = await E();
211
220
  i.value = e.content;
212
221
  const M = ({ state: b }) => {
213
222
  i.value = b.doc.toString();
214
223
  }, y = [
215
224
  X(),
216
225
  Y.of([K, ve]),
217
- T.of(m()),
226
+ w.of(m()),
218
227
  B.of(me(e.lang)),
219
228
  S.of(L.readOnly.of(!e.editable)),
220
229
  N.updateListener.of((b) => M(b))
@@ -228,7 +237,7 @@ ${_e(e, o)}`;
228
237
  state: C,
229
238
  parent: v.value
230
239
  });
231
- }), J(
240
+ }), D(
232
241
  () => e.content,
233
242
  () => {
234
243
  if (e.content !== i.value) {
@@ -246,14 +255,14 @@ ${_e(e, o)}`;
246
255
  const k = l(() => a(e.actionableText)), O = () => {
247
256
  t(r.ACTION, i.value);
248
257
  };
249
- V(() => {
258
+ J(() => {
250
259
  i.value !== null && t(r.CHANGE, i.value);
251
260
  });
252
261
  const H = d(!1);
253
262
  return {
254
263
  // Values
255
264
  availableLanguages: _,
256
- codeAreaContentConditionalClasses: E,
265
+ codeAreaContentConditionalClasses: T,
257
266
  conditionalClasses: I,
258
267
  container: v,
259
268
  currentContents: i,
@@ -261,7 +270,7 @@ ${_e(e, o)}`;
261
270
  editor: p,
262
271
  selectedLanguage: o,
263
272
  showModal: H,
264
- isInlineVariant: g,
273
+ isInlineVariant: u,
265
274
  // Methods
266
275
  handleChangeLanguage: c,
267
276
  onActionClicked: O,
@@ -282,25 +291,25 @@ var xe = function() {
282
291
  }, proxy: !0 }], null, !1, 3789760120) }) : t._e(), t.actionable ? a("bento-button", { attrs: { variant: "primary", tertiary: "", condensed: "" }, on: { click: t.onActionClicked }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
283
292
  return [a("bento-typography", { staticClass: "b-code-snippet__action-button", attrs: { el: "span" } }, [t._v(" " + t._s(t.runText) + " ")])];
284
293
  }, proxy: !0 }], null, !1, 4293069853) }) : t._e()], 1)]), t.content || t.editable ? a("code", { staticClass: "b-code-snippet__code-area" }, [a("div", { ref: "container", staticClass: "b-code-snippet__code-area-content", class: t.codeAreaContentConditionalClasses })]) : a("section", [t._t("empty-state", function() {
285
- return [a("div", { staticClass: "b-code-snippet__empty-state" }, [t._v("Nothing to show")])];
294
+ return [a("div", { staticClass: "b-code-snippet__empty-state" }, [t._v(t._s(t.t("nothingToDisplay")))])];
286
295
  })], 2), t.expandable ? a("base-modal", { staticClass: "b-code-snippet__modal", attrs: { "hide-close-button": !0, "custom-padding": "0px", "is-dismissible": !0, "is-open": t.showModal, size: "large" }, on: { "close-modal": function(o) {
287
296
  t.showModal = !1;
288
297
  } }, scopedSlots: t._u([{ key: "content", fn: function() {
289
298
  return [a("bento-code-snippet", t._b({}, "bento-code-snippet", { ...t.$props, expandable: !1 }, !1))];
290
299
  }, proxy: !0 }], null, !1, 3343589027) }) : t._e()], 1);
291
- }, Le = [], Ne = /* @__PURE__ */ ge(
300
+ }, Le = [], Ne = /* @__PURE__ */ ue(
292
301
  Ce,
293
302
  xe,
294
303
  Le,
295
304
  !1,
296
305
  null,
297
- "1ef11dc9"
306
+ "10a1a4c8"
298
307
  );
299
- const Je = Ne.exports;
308
+ const De = Ne.exports;
300
309
  export {
301
- u as B,
310
+ g as B,
302
311
  s as a,
303
312
  r as b,
304
- Je as c
313
+ De as c
305
314
  };
306
- //# sourceMappingURL=code-snippet.DgKK7fE8.js.map
315
+ //# sourceMappingURL=code-snippet.BcZJFqdH.js.map