@adyen/bento-vue2 1.89.2 → 1.90.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 (255) hide show
  1. package/dist/@types/components.d.ts +2 -0
  2. package/dist/@types/index.d.ts +198 -80
  3. package/dist/accordion.js +1 -1
  4. package/dist/action-bar.js +1 -1
  5. package/dist/ai-tag.js +1 -1
  6. package/dist/alert.js +1 -1
  7. package/dist/anchor-scroller.js +1 -1
  8. package/dist/assets/accordion-item.css +1 -1
  9. package/dist/assets/action-bar.css +1 -1
  10. package/dist/assets/base-modal.css +1 -1
  11. package/dist/assets/button-actions.css +1 -1
  12. package/dist/assets/card.css +1 -1
  13. package/dist/assets/data-grid.css +1 -1
  14. package/dist/assets/date-range-picker.css +1 -1
  15. package/dist/assets/dialog-page.css +1 -1
  16. package/dist/assets/file-uploader.css +1 -1
  17. package/dist/assets/input-time.css +1 -0
  18. package/dist/assets/inspector.css +1 -1
  19. package/dist/assets/modal-fullscreen.css +1 -1
  20. package/dist/assets/secondary-nav.css +1 -1
  21. package/dist/assets/sidepanel.css +1 -1
  22. package/dist/button.js +3 -3
  23. package/dist/card.js +1 -1
  24. package/dist/checkbox.js +2 -2
  25. package/dist/chip.js +1 -1
  26. package/dist/chunks/accordion-item.D0WVCLec.js +145 -0
  27. package/dist/chunks/{accordion-item.BZDSJamR.js.map → accordion-item.D0WVCLec.js.map} +1 -1
  28. package/dist/chunks/action-bar.B63qIiiH.js +334 -0
  29. package/dist/chunks/{action-bar.CYGUYI0V.js.map → action-bar.B63qIiiH.js.map} +1 -1
  30. package/dist/chunks/{ai-button.CR_ePQRR.js → ai-button.7L9bANlk.js} +2 -2
  31. package/dist/chunks/{ai-button.CR_ePQRR.js.map → ai-button.7L9bANlk.js.map} +1 -1
  32. package/dist/chunks/ai-tag.CCJCOdXu.js +110 -0
  33. package/dist/chunks/{ai-tag.Cjf38mjR.js.map → ai-tag.CCJCOdXu.js.map} +1 -1
  34. package/dist/chunks/alert.CXRb-Smf.js +160 -0
  35. package/dist/chunks/{alert.QVQ6Zjbm.js.map → alert.CXRb-Smf.js.map} +1 -1
  36. package/dist/chunks/{anchor-scroller.CjJ26PJS.js → anchor-scroller.DWaykZQj.js} +66 -39
  37. package/dist/chunks/{anchor-scroller.CjJ26PJS.js.map → anchor-scroller.DWaykZQj.js.map} +1 -1
  38. package/dist/chunks/{base-modal.DmWkavtf.js → base-modal.DpmeDmq-.js} +103 -66
  39. package/dist/chunks/{base-modal.DmWkavtf.js.map → base-modal.DpmeDmq-.js.map} +1 -1
  40. package/dist/chunks/{button-actions-with-menu.Bi_HXopk.js → button-actions-with-menu.ChTUOsZl.js} +2 -2
  41. package/dist/chunks/{button-actions-with-menu.Bi_HXopk.js.map → button-actions-with-menu.ChTUOsZl.js.map} +1 -1
  42. package/dist/chunks/{button-actions.BLk114As.js → button-actions.BmU1DngD.js} +221 -147
  43. package/dist/chunks/{button-actions.BLk114As.js.map → button-actions.BmU1DngD.js.map} +1 -1
  44. package/dist/chunks/{button.DxhJNOtr.js → button.C9b2AC9w.js} +2 -2
  45. package/dist/chunks/{button.DxhJNOtr.js.map → button.C9b2AC9w.js.map} +1 -1
  46. package/dist/chunks/{calendar.CXKhBF2f.js → calendar.uvIGF_jU.js} +283 -209
  47. package/dist/chunks/{calendar.CXKhBF2f.js.map → calendar.uvIGF_jU.js.map} +1 -1
  48. package/dist/chunks/card.WWUfBkqf.js +165 -0
  49. package/dist/chunks/{card.GjhsXOT0.js.map → card.WWUfBkqf.js.map} +1 -1
  50. package/dist/chunks/{checkbox-group.B2BjU3ZN.js → checkbox-group.CI0xDnql.js} +4 -4
  51. package/dist/chunks/{checkbox-group.B2BjU3ZN.js.map → checkbox-group.CI0xDnql.js.map} +1 -1
  52. package/dist/chunks/{checkbox.CIv8WgGp.js → checkbox.TsWA6O3Z.js} +93 -56
  53. package/dist/chunks/{checkbox.CIv8WgGp.js.map → checkbox.TsWA6O3Z.js.map} +1 -1
  54. package/dist/chunks/chip.BFY_-VCz.js +84 -0
  55. package/dist/chunks/{chip.DTpENaGC.js.map → chip.BFY_-VCz.js.map} +1 -1
  56. package/dist/chunks/{code-snippet.YIm2oO_o.js → code-snippet.4DX9iUV8.js} +133 -76
  57. package/dist/chunks/{code-snippet.YIm2oO_o.js.map → code-snippet.4DX9iUV8.js.map} +1 -1
  58. package/dist/chunks/{controls-group.CqotnNEF.js → controls-group.D_KE99mg.js} +2 -2
  59. package/dist/chunks/{controls-group.CqotnNEF.js.map → controls-group.D_KE99mg.js.map} +1 -1
  60. package/dist/chunks/copy.qqGYFbKJ.js +133 -0
  61. package/dist/chunks/{copy.BVGQcf22.js.map → copy.qqGYFbKJ.js.map} +1 -1
  62. package/dist/chunks/{country.D20NCLLG.js → country.BEwW8TQo.js} +3 -3
  63. package/dist/chunks/{country.D20NCLLG.js.map → country.BEwW8TQo.js.map} +1 -1
  64. package/dist/chunks/country.types.jjXwaoMl.js +2537 -0
  65. package/dist/chunks/country.types.jjXwaoMl.js.map +1 -0
  66. package/dist/chunks/{dashboard-section.BubZyu8i.js → dashboard-section.TWlLdQHG.js} +3 -3
  67. package/dist/chunks/{dashboard-section.BubZyu8i.js.map → dashboard-section.TWlLdQHG.js.map} +1 -1
  68. package/dist/chunks/{dashed-underline.pjYTS0m1.js → dashed-underline.CpDuQ3Fo.js} +3 -3
  69. package/dist/chunks/{dashed-underline.pjYTS0m1.js.map → dashed-underline.CpDuQ3Fo.js.map} +1 -1
  70. package/dist/chunks/{data-grid-template.D8RhngPj.js → data-grid-template.DZaE-kOS.js} +4 -4
  71. package/dist/chunks/{data-grid-template.D8RhngPj.js.map → data-grid-template.DZaE-kOS.js.map} +1 -1
  72. package/dist/chunks/data-grid.x6cEW0az.js +4069 -0
  73. package/dist/chunks/data-grid.x6cEW0az.js.map +1 -0
  74. package/dist/chunks/date-picker.Dln8ocL4.js +222 -0
  75. package/dist/chunks/{date-picker.CnazYcSX.js.map → date-picker.Dln8ocL4.js.map} +1 -1
  76. package/dist/chunks/date-range-picker.DPGy2h-9.js +1068 -0
  77. package/dist/chunks/date-range-picker.DPGy2h-9.js.map +1 -0
  78. package/dist/chunks/dialog-page.EdejG53a.js +143 -0
  79. package/dist/chunks/{dialog-page.oyG153fC.js.map → dialog-page.EdejG53a.js.map} +1 -1
  80. package/dist/chunks/{dropdown-default-textbox.Dvzg0StF.js → dropdown-default-textbox.CjhLIxVq.js} +63 -36
  81. package/dist/chunks/{dropdown-default-textbox.Dvzg0StF.js.map → dropdown-default-textbox.CjhLIxVq.js.map} +1 -1
  82. package/dist/chunks/{dropdown-tag.BRB-emd1.js → dropdown-tag.t3FlJUSy.js} +5 -5
  83. package/dist/chunks/{dropdown-tag.BRB-emd1.js.map → dropdown-tag.t3FlJUSy.js.map} +1 -1
  84. package/dist/chunks/{dropdown.Ct7uhPr6.js → dropdown.CvNI2V33.js} +329 -235
  85. package/dist/chunks/{dropdown.Ct7uhPr6.js.map → dropdown.CvNI2V33.js.map} +1 -1
  86. package/dist/chunks/{empty-state.D_Ac-XXH.js → empty-state.DMV23IZy.js} +2 -2
  87. package/dist/chunks/{empty-state.D_Ac-XXH.js.map → empty-state.DMV23IZy.js.map} +1 -1
  88. package/dist/chunks/error-message.BUNKRa_w.js +160 -0
  89. package/dist/chunks/{error-message.RxdStT3S.js.map → error-message.BUNKRa_w.js.map} +1 -1
  90. package/dist/chunks/{file-uploader.D5Rjsx4k.js → file-uploader.Cig5gDXT.js} +749 -468
  91. package/dist/chunks/{file-uploader.D5Rjsx4k.js.map → file-uploader.Cig5gDXT.js.map} +1 -1
  92. package/dist/chunks/{filter-bar.zD_ctViU.js → filter-bar.x445KK3y.js} +1301 -761
  93. package/dist/chunks/{filter-bar.zD_ctViU.js.map → filter-bar.x445KK3y.js.map} +1 -1
  94. package/dist/chunks/fixed-scroller.DR2E_No4.js +148 -0
  95. package/dist/chunks/{fixed-scroller.MerESbd_.js.map → fixed-scroller.DR2E_No4.js.map} +1 -1
  96. package/dist/chunks/{footer-actions.CiPj7hZG.js → footer-actions.CIkul1OD.js} +3 -3
  97. package/dist/chunks/{footer-actions.CiPj7hZG.js.map → footer-actions.CIkul1OD.js.map} +1 -1
  98. package/dist/chunks/{form-layout-title.Bw7VgOO5.js → form-layout-title.DR5M7GP3.js} +77 -48
  99. package/dist/chunks/{form-layout-title.Bw7VgOO5.js.map → form-layout-title.DR5M7GP3.js.map} +1 -1
  100. package/dist/chunks/{header-meta.Dq6TlNPw.js → header-meta.BC5fdpD1.js} +127 -73
  101. package/dist/chunks/{header-meta.Dq6TlNPw.js.map → header-meta.BC5fdpD1.js.map} +1 -1
  102. package/dist/chunks/{header-with-views.DaEhkSS8.js → header-with-views.-cvdi9-L.js} +1120 -679
  103. package/dist/chunks/{header-with-views.DaEhkSS8.js.map → header-with-views.-cvdi9-L.js.map} +1 -1
  104. package/dist/chunks/{header.DkC-KKWa.js → header.DtmZjxiU.js} +3 -3
  105. package/dist/chunks/{header.DkC-KKWa.js.map → header.DtmZjxiU.js.map} +1 -1
  106. package/dist/chunks/{info-icon.BF8KxU-k.js → info-icon.DCR42Kvm.js} +2 -2
  107. package/dist/chunks/{info-icon.BF8KxU-k.js.map → info-icon.DCR42Kvm.js.map} +1 -1
  108. package/dist/chunks/input-field-password.Bdlw4dzr.js +381 -0
  109. package/dist/chunks/{input-field-password.BKT1mYUw.js.map → input-field-password.Bdlw4dzr.js.map} +1 -1
  110. package/dist/chunks/{input-field-phone-number.BjRKjQOQ.js → input-field-phone-number.DPuWxBBz.js} +98 -71
  111. package/dist/chunks/{input-field-phone-number.BjRKjQOQ.js.map → input-field-phone-number.DPuWxBBz.js.map} +1 -1
  112. package/dist/chunks/input-field.DH25CU_G.js +207 -0
  113. package/dist/chunks/{input-field.m1PMwa4C.js.map → input-field.DH25CU_G.js.map} +1 -1
  114. package/dist/chunks/input-time.6eJ4-QdU.js +92 -0
  115. package/dist/chunks/input-time.6eJ4-QdU.js.map +1 -0
  116. package/dist/chunks/inspector.BzBPlz-5.js +172 -0
  117. package/dist/chunks/{inspector.Bnm0hl_D.js.map → inspector.BzBPlz-5.js.map} +1 -1
  118. package/dist/chunks/{link.MhoM3zQj.js → link.DB5g6d48.js} +56 -29
  119. package/dist/chunks/{link.MhoM3zQj.js.map → link.DB5g6d48.js.map} +1 -1
  120. package/dist/chunks/{list-item.BnzU1LIu.js → list-item.DqTHh8-Z.js} +2 -2
  121. package/dist/chunks/{list-item.BnzU1LIu.js.map → list-item.DqTHh8-Z.js.map} +1 -1
  122. package/dist/chunks/{listbox-option-tag.BhPVuAjJ.js → listbox-option-tag.CvbE-EuG.js} +2 -2
  123. package/dist/chunks/{listbox-option-tag.BhPVuAjJ.js.map → listbox-option-tag.CvbE-EuG.js.map} +1 -1
  124. package/dist/chunks/{modal-fullscreen.CXOq6_Cv.js → modal-fullscreen.CaxuXW-H.js} +63 -36
  125. package/dist/chunks/{modal-fullscreen.CXOq6_Cv.js.map → modal-fullscreen.CaxuXW-H.js.map} +1 -1
  126. package/dist/chunks/{modal.o0KddMiG.js → modal.Brif0vAy.js} +63 -36
  127. package/dist/chunks/{modal.o0KddMiG.js.map → modal.Brif0vAy.js.map} +1 -1
  128. package/dist/chunks/{pagination.ZISqB4M_.js → pagination.BmrU_sn_.js} +221 -99
  129. package/dist/chunks/{pagination.ZISqB4M_.js.map → pagination.BmrU_sn_.js.map} +1 -1
  130. package/dist/chunks/promo-banner.Dc_kK1x9.js +91 -0
  131. package/dist/chunks/{promo-banner.Db2kh2qK.js.map → promo-banner.Dc_kK1x9.js.map} +1 -1
  132. package/dist/chunks/{radio-group.DnMy7brs.js → radio-group.5oS-AeYN.js} +4 -4
  133. package/dist/chunks/{radio-group.DnMy7brs.js.map → radio-group.5oS-AeYN.js.map} +1 -1
  134. package/dist/chunks/{rich-text-editor.Cbv1DxXn.js → rich-text-editor.DSGTe8Zt.js} +1781 -1731
  135. package/dist/chunks/{rich-text-editor.Cbv1DxXn.js.map → rich-text-editor.DSGTe8Zt.js.map} +1 -1
  136. package/dist/chunks/search-bar.CNfoeLLt.js +126 -0
  137. package/dist/chunks/{search-bar.DPjYDhja.js.map → search-bar.CNfoeLLt.js.map} +1 -1
  138. package/dist/chunks/secondary-nav.IF5CgeIP.js +226 -0
  139. package/dist/chunks/secondary-nav.IF5CgeIP.js.map +1 -0
  140. package/dist/chunks/{segmented-control.BqIiX9hv.js → segmented-control.DDtjX-V5.js} +2 -2
  141. package/dist/chunks/{segmented-control.BqIiX9hv.js.map → segmented-control.DDtjX-V5.js.map} +1 -1
  142. package/dist/chunks/{selection-card-group.IPiouuot.js → selection-card-group.DZjFeQKR.js} +10 -10
  143. package/dist/chunks/{selection-card-group.IPiouuot.js.map → selection-card-group.DZjFeQKR.js.map} +1 -1
  144. package/dist/chunks/{sidepanel.BGMjjB3F.js → sidepanel.DZDXuyzg.js} +66 -39
  145. package/dist/chunks/{sidepanel.BGMjjB3F.js.map → sidepanel.DZDXuyzg.js.map} +1 -1
  146. package/dist/chunks/{step.QFER3tSj.js → step.TDm_ts1S.js} +92 -63
  147. package/dist/chunks/{step.QFER3tSj.js.map → step.TDm_ts1S.js.map} +1 -1
  148. package/dist/chunks/{structured-list-item.BDJKRC_8.js → structured-list-item.BBBtie1s.js} +58 -31
  149. package/dist/chunks/{structured-list-item.BDJKRC_8.js.map → structured-list-item.BBBtie1s.js.map} +1 -1
  150. package/dist/chunks/{summary-grid.types.CIkArZf5.js → summary-grid.types.CrPNQbX0.js} +5 -5
  151. package/dist/chunks/{summary-grid.types.CIkArZf5.js.map → summary-grid.types.CrPNQbX0.js.map} +1 -1
  152. package/dist/chunks/{tab.CaXF0dho.js → tab.CNIZyfZt.js} +2 -2
  153. package/dist/chunks/{tab.CaXF0dho.js.map → tab.CNIZyfZt.js.map} +1 -1
  154. package/dist/chunks/{tag.CocLKztJ.js → tag.D2xagTJv.js} +2 -2
  155. package/dist/chunks/{tag.CocLKztJ.js.map → tag.D2xagTJv.js.map} +1 -1
  156. package/dist/chunks/textarea.Bi53QF5Q.js +218 -0
  157. package/dist/chunks/{textarea.D4X6Ss9q.js.map → textarea.Bi53QF5Q.js.map} +1 -1
  158. package/dist/chunks/timeline-item.C6Bi0eam.js +322 -0
  159. package/dist/chunks/{timeline-item.C8BxWdy1.js.map → timeline-item.C6Bi0eam.js.map} +1 -1
  160. package/dist/chunks/{toast.BRI3G7TL.js → toast.d8vg71CB.js} +81 -54
  161. package/dist/chunks/{toast.BRI3G7TL.js.map → toast.d8vg71CB.js.map} +1 -1
  162. package/dist/chunks/{tooltip.CbsNGnhw.js → tooltip.BxtnF3is.js} +38 -36
  163. package/dist/chunks/tooltip.BxtnF3is.js.map +1 -0
  164. package/dist/chunks/{tutorial.BzV6bHQJ.js → tutorial.BCiZMLJE.js} +190 -103
  165. package/dist/chunks/{tutorial.BzV6bHQJ.js.map → tutorial.BCiZMLJE.js.map} +1 -1
  166. package/dist/chunks/{use-cached-selected-values.DqX2qsMC.js → use-cached-selected-values.Bn3Y8Iuq.js} +490 -359
  167. package/dist/chunks/{use-cached-selected-values.DqX2qsMC.js.map → use-cached-selected-values.Bn3Y8Iuq.js.map} +1 -1
  168. package/dist/chunks/{use-country-items.CI8C7MLU.js → use-country-items.B4j8pAvW.js} +3 -3
  169. package/dist/chunks/{use-country-items.CI8C7MLU.js.map → use-country-items.B4j8pAvW.js.map} +1 -1
  170. package/dist/chunks/use-country-phon-code.ByqnuIni.js +6386 -0
  171. package/dist/chunks/use-country-phon-code.ByqnuIni.js.map +1 -0
  172. package/dist/chunks/{use-date-input-formatter.BYaTO3vz.js → use-date-input-formatter.DRMt9yR2.js} +2 -2
  173. package/dist/chunks/{use-date-input-formatter.BYaTO3vz.js.map → use-date-input-formatter.DRMt9yR2.js.map} +1 -1
  174. package/dist/code-snippet.js +1 -1
  175. package/dist/country.js +3 -3
  176. package/dist/dashboard-template.js +1 -1
  177. package/dist/dashed-underline.js +1 -1
  178. package/dist/data-grid-template.js +1 -1
  179. package/dist/data-grid.js +1 -1
  180. package/dist/date-picker.js +2 -2
  181. package/dist/date-range-picker.js +2 -2
  182. package/dist/draggable-handle.js +160 -73
  183. package/dist/draggable-handle.js.map +1 -1
  184. package/dist/dropdown.js +4 -4
  185. package/dist/empty-state.js +1 -1
  186. package/dist/file-uploader.js +1 -1
  187. package/dist/filter-bar.js +1 -1
  188. package/dist/form-layout.js +1 -1
  189. package/dist/header-with-views.js +1 -1
  190. package/dist/header.js +1 -1
  191. package/dist/index.js +215 -213
  192. package/dist/index.js.map +1 -1
  193. package/dist/info-icon.js +1 -1
  194. package/dist/input-field-password.js +1 -1
  195. package/dist/input-field-phone-number.js +1 -1
  196. package/dist/input-field.js +1 -1
  197. package/dist/input-time.js +5 -0
  198. package/dist/input-time.js.map +1 -0
  199. package/dist/inspector.js +1 -1
  200. package/dist/internal.js +12 -12
  201. package/dist/link.js +1 -1
  202. package/dist/list.js +1 -1
  203. package/dist/menu.js +1 -1
  204. package/dist/modal-fullscreen.js +1 -1
  205. package/dist/modal.js +2 -2
  206. package/dist/pagination.js +1 -1
  207. package/dist/popover.js +1 -1
  208. package/dist/promo-banner.js +1 -1
  209. package/dist/radio-group.js +1 -1
  210. package/dist/rich-text-editor.js +1 -1
  211. package/dist/search-bar.js +2 -2
  212. package/dist/secondary-nav.js +1 -1
  213. package/dist/segmented-control.js +1 -1
  214. package/dist/selection-card.js +1 -1
  215. package/dist/sidepanel.js +1 -1
  216. package/dist/stepper.js +1 -1
  217. package/dist/structured-list.js +1 -1
  218. package/dist/summary-grid.js +1 -1
  219. package/dist/tabs.js +1 -1
  220. package/dist/tag.js +1 -1
  221. package/dist/textarea.js +1 -1
  222. package/dist/timeline.js +1 -1
  223. package/dist/toast.js +1 -1
  224. package/dist/tutorial.js +1 -1
  225. package/dist/web-types.json +198 -1
  226. package/package.json +9 -9
  227. package/dist/chunks/accordion-item.BZDSJamR.js +0 -108
  228. package/dist/chunks/action-bar.CYGUYI0V.js +0 -207
  229. package/dist/chunks/ai-tag.Cjf38mjR.js +0 -73
  230. package/dist/chunks/alert.QVQ6Zjbm.js +0 -93
  231. package/dist/chunks/card.GjhsXOT0.js +0 -128
  232. package/dist/chunks/chip.DTpENaGC.js +0 -57
  233. package/dist/chunks/copy.BVGQcf22.js +0 -86
  234. package/dist/chunks/country.types.DxKjyd0S.js +0 -20
  235. package/dist/chunks/country.types.DxKjyd0S.js.map +0 -1
  236. package/dist/chunks/data-grid.DJG8Ty0A.js +0 -3194
  237. package/dist/chunks/data-grid.DJG8Ty0A.js.map +0 -1
  238. package/dist/chunks/date-picker.CnazYcSX.js +0 -155
  239. package/dist/chunks/date-range-picker.Bf9pRNL7.js +0 -811
  240. package/dist/chunks/date-range-picker.Bf9pRNL7.js.map +0 -1
  241. package/dist/chunks/dialog-page.oyG153fC.js +0 -116
  242. package/dist/chunks/error-message.RxdStT3S.js +0 -106
  243. package/dist/chunks/fixed-scroller.MerESbd_.js +0 -111
  244. package/dist/chunks/input-field-password.BKT1mYUw.js +0 -234
  245. package/dist/chunks/input-field.m1PMwa4C.js +0 -170
  246. package/dist/chunks/inspector.Bnm0hl_D.js +0 -105
  247. package/dist/chunks/promo-banner.Db2kh2qK.js +0 -64
  248. package/dist/chunks/search-bar.DPjYDhja.js +0 -89
  249. package/dist/chunks/secondary-nav.CwJjkJkj.js +0 -112
  250. package/dist/chunks/secondary-nav.CwJjkJkj.js.map +0 -1
  251. package/dist/chunks/textarea.D4X6Ss9q.js +0 -169
  252. package/dist/chunks/timeline-item.C8BxWdy1.js +0 -238
  253. package/dist/chunks/tooltip.CbsNGnhw.js.map +0 -1
  254. package/dist/chunks/use-country-phon-code.C6orQNnM.js +0 -291
  255. package/dist/chunks/use-country-phon-code.C6orQNnM.js.map +0 -1
@@ -1,234 +0,0 @@
1
- import { defineComponent as ue, useAttrs as ce, ref as l, provide as pe, computed as u, watch as P } from "vue";
2
- import { B as ve } from "./button.DxhJNOtr.js";
3
- import { B as fe } from "./image.C2D2hKat.js";
4
- import { B as me } from "./input-field.m1PMwa4C.js";
5
- import { h as _e } from "./button-actions.BLk114As.js";
6
- import { d as he, B as be } from "./typography.C8lPlsbD.js";
7
- import { C as Ce } from "./checkmark-circle-fill.BttTCjrM.js";
8
- import { D as ge } from "./dot.BW9SneIk.js";
9
- import { S as ke, H as we } from "./show.B_mKPF6I.js";
10
- import { e as Le, w as ye } from "./index.CwzYJHw2.js";
11
- import { u as Re } from "./index.B6WW_F-J.js";
12
- import { g as Q } from "./generate-uid.NJ8tVoha.js";
13
- import { u as Ee } from "./form-field.D_2g7vaP.js";
14
- import { b as Ie } from "./dropdown.Ct7uhPr6.js";
15
- import { T as Te } from "./tooltip.CbsNGnhw.js";
16
- import { n as Ve } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
17
- import "../assets/input-field-password.css";
18
- var g = /* @__PURE__ */ ((o) => (o.TEXT = "text", o.PASSWORD = "password", o))(g || {}), _ = /* @__PURE__ */ ((o) => (o.MIN_LENGTH = "minLength", o.REQUIRE_LOWERCASE = "requireLowercase", o.REQUIRE_NUMERIC = "requireNumeric", o.REQUIRE_SPECIAL_CHARACTER = "requireSpecialCharacter", o.REQUIRE_UPPERCASE = "requireUppercase", o))(_ || {});
19
- const Pe = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='capslock'%3e%3cg%20id='Union'%3e%3cpath%20d='M13.75%205.63952L8%201.03952L2.25%205.63952V7.74999H4.75V11.75H11.25V7.74999H13.75V5.63952ZM6.25%206.24999H3.88809L8%202.96046L12.1119%206.24999H9.75V10.25H6.25V6.24999Z'%20fill='%2300112C'/%3e%3cpath%20d='M11.25%2014.75V13.25H4.75V14.75H11.25Z'%20fill='%2300112C'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
20
- function k(o) {
21
- return (o == null ? void 0 : o.toString()) ?? "";
22
- }
23
- function Oe(o, t = 12) {
24
- return k(o).length >= t;
25
- }
26
- function Se(o) {
27
- return /[a-z]/.test(k(o));
28
- }
29
- function Ue(o) {
30
- return /[A-Z]/.test(k(o));
31
- }
32
- function Ae(o) {
33
- return /\d/.test(k(o));
34
- }
35
- function Be(o) {
36
- return /[^a-zA-Z0-9]/.test(k(o));
37
- }
38
- const qe = {
39
- "en-US": { capsLockEnabled: "Caps lock on", hidePassword: "Hide", showPassword: "Show", validationChecked: "Checked", validationMinLength: "{numberOfCharacters} characters", validationRequireLowercase: "{numberOne} lowercase (a-z)", validationRequireNumeric: "{numberOne} numerical (0-9)", validationRequireSpecialCharacter: "{numberOne} special character", validationRequireUppercase: "{numberOne} uppercase (A-Z)", validationSuggestion: "Avoid using currency symbols or accented letters.", validationTitle: "Password must contain at least:", validationUnchecked: "Unchecked", validationValid: "Input is valid" },
40
- "ja-JP": { capsLockEnabled: "Caps lockオン", hidePassword: "非表示", showPassword: "表示", validationChecked: "チェック済み", validationMinLength: "{numberOfCharacters}文字", validationRequireLowercase: "{numberOne} 小文字(a-z)", validationRequireNumeric: "{numberOne} 数値 (0-9)", validationRequireSpecialCharacter: "{numberOne} 特殊文字", validationRequireUppercase: "{numberOne} 大文字 (A-Z)", validationSuggestion: "通貨記号やアクセント付き文字は使用しないでください。", validationTitle: "パスワードには少なくとも次のものを含める必要があります :", validationUnchecked: "チェックなし", validationValid: "入力は有効です" },
41
- "pt-BR": { capsLockEnabled: "Caps Lock ativado", hidePassword: "ocultar", showPassword: "Exibir", validationChecked: "Checado", validationMinLength: "{numberOfCharacters} caracteres", validationRequireLowercase: "{numberOne} minúscula (a-z)", validationRequireNumeric: "{numberOne} numérico (0-9)", validationRequireSpecialCharacter: "{numberOne} caractere especial", validationRequireUppercase: "{numberOne} maiúscula (A-Z)", validationSuggestion: "Evite usar símbolos de moeda e letras com acento.", validationTitle: "A senha deve conter pelo menos:", validationUnchecked: "Não verificado", validationValid: "A entrada é válida" }
42
- }, Z = 12, z = 500, X = 2e3, G = 2e3, Me = {
43
- i18n: { messages: qe },
44
- name: "bento-input-field-password",
45
- model: { prop: "modelValue" }
46
- }, Ne = /* @__PURE__ */ ue({
47
- ...Me,
48
- props: {
49
- description: { default: null },
50
- disabled: { type: Boolean, default: !1 },
51
- errorMessage: { default: null },
52
- label: { default: null },
53
- optional: { type: Boolean, default: !1 },
54
- placeholder: { default: "" },
55
- readonly: { type: Boolean, default: !1 },
56
- required: { type: Boolean, default: !1 },
57
- tooltipText: { default: null },
58
- condensed: { default: !1 },
59
- debounceTime: { default: z },
60
- disableValidation: { type: Boolean, default: !1 },
61
- value: { default: void 0 },
62
- modelValue: { default: void 0 },
63
- validation: { default: void 0 },
64
- withHint: { type: Boolean, default: !0 }
65
- },
66
- emits: ["blur", "focus", "input:valid", "input:error", "input", "update:model-value"],
67
- setup(o, { emit: t }) {
68
- const a = o, { t: e, n: d } = Re(), v = ce(), h = l(g.PASSWORD), c = l(a.modelValue ?? a.value), O = l(!1), S = l(!1), w = l([]), y = l({}), p = l(null), f = l(!1), U = l(null), A = l(null), J = l(null), R = l(!1);
69
- pe(Ie, "bento-input-field-password");
70
- const { focused: B } = Le(U), { emitValue: q } = Ee(t), K = Q("validationListId"), M = Q("validationPopoverId"), N = u(() => h.value === g.TEXT), Y = u(
71
- () => w.value.map(
72
- (i) => i ? "b-input-field-password__validation-list--valid" : "b-input-field-password__validation-list--invalid"
73
- )
74
- ), $ = u(
75
- () => p.value ? "b-input-field-password__input-tooltip--timed" : ""
76
- ), j = u(() => ({
77
- ariaHidden: !1,
78
- condensed: a.condensed,
79
- disabled: a.disabled,
80
- errorMessage: a.errorMessage,
81
- optional: a.optional,
82
- placeholder: a.placeholder,
83
- readonly: a.readonly,
84
- required: a.required,
85
- tooltipText: a.tooltipText,
86
- type: h.value,
87
- modelValue: c.value,
88
- "aria-haspopup": I.value ? "dialog" : !1,
89
- "aria-describedby": I.value ? M : "",
90
- ...v
91
- })), E = u(() => {
92
- var m, b, n, C, L, x;
93
- if (a.validation && !a.validation.extendDefaultValidation)
94
- return a.validation;
95
- const i = [
96
- {
97
- label: e("validationMinLength", { numberOfCharacters: d(Z) }),
98
- key: _.MIN_LENGTH,
99
- validate: Oe
100
- },
101
- {
102
- label: e("validationRequireLowercase", { numberOne: d(1) }),
103
- key: _.REQUIRE_LOWERCASE,
104
- validate: Se
105
- },
106
- {
107
- label: e("validationRequireUppercase", { numberOne: d(1) }),
108
- key: _.REQUIRE_UPPERCASE,
109
- validate: Ue
110
- },
111
- {
112
- label: e("validationRequireNumeric", { numberOne: d(1) }),
113
- key: _.REQUIRE_NUMERIC,
114
- validate: Ae
115
- },
116
- {
117
- label: e("validationRequireSpecialCharacter", { numberOne: d(1) }),
118
- key: _.REQUIRE_SPECIAL_CHARACTER,
119
- validate: Be
120
- }
121
- ];
122
- let s = i;
123
- if (a.validation) {
124
- const le = i.map((r) => r.key), V = (b = (m = a.validation) == null ? void 0 : m.list) == null ? void 0 : b.map((r) => r.key), re = ((C = (n = a.validation) == null ? void 0 : n.list) == null ? void 0 : C.filter((r) => !le.includes(r.key))) ?? [];
125
- s = [...i.map((r) => {
126
- var D, W;
127
- return V != null && V.includes(r.key) ? (W = (D = a.validation) == null ? void 0 : D.list) == null ? void 0 : W.find((de) => de.key === r.key) : r;
128
- }), ...re];
129
- }
130
- return {
131
- title: ((L = a.validation) == null ? void 0 : L.title) ?? e("validationTitle"),
132
- suggestion: ((x = a.validation) == null ? void 0 : x.suggestion) ?? e("validationSuggestion"),
133
- list: s
134
- };
135
- }), H = u(() => {
136
- var i, s;
137
- return (s = (i = E.value) == null ? void 0 : i.list) == null ? void 0 : s.filter((m) => !m.disabled);
138
- }), F = u(() => {
139
- var i;
140
- return (i = w.value) == null ? void 0 : i.some((s) => !s);
141
- }), I = u(
142
- () => {
143
- var i, s;
144
- return A.value && ((s = (i = E.value) == null ? void 0 : i.list) == null ? void 0 : s.length) > 0;
145
- }
146
- ), ee = (i) => {
147
- typeof i.getModifierState == "function" && (R.value = i.getModifierState("CapsLock"));
148
- }, ae = () => {
149
- N.value ? h.value = g.PASSWORD : h.value = g.TEXT;
150
- }, te = (i) => {
151
- a.disabled || (c.value = i, q(c.value));
152
- }, ie = () => {
153
- t("focus");
154
- }, oe = () => {
155
- t("blur");
156
- }, T = (i) => {
157
- var b;
158
- const s = (b = H.value) == null ? void 0 : b.map((n) => ({
159
- key: n.key,
160
- label: n.label,
161
- isValid: n.validate(i, ...n.additionalArgs ?? [])
162
- }));
163
- let m = 1;
164
- w.value = s == null ? void 0 : s.map((n) => n.isValid), y.value = s == null ? void 0 : s.filter((n) => !n.isValid).reduce((n, C) => {
165
- const L = C.key ?? `custom-rule-${m++}`;
166
- return {
167
- ...n,
168
- [L]: C.label
169
- };
170
- }, {});
171
- }, se = () => {
172
- f.value = !1, p.value = null;
173
- }, ne = () => {
174
- f.value = !0;
175
- };
176
- return P(
177
- () => [a.value, a.modelValue],
178
- () => {
179
- c.value = a.modelValue ?? a.value;
180
- }
181
- ), P(B, (i) => {
182
- i || (S.value = !0), a.disableValidation || (a.withHint && (O.value = i), T(c.value));
183
- }), P(R, (i) => {
184
- i ? (f.value = !0, p.value = setTimeout(() => {
185
- p.value = null, f.value = !1;
186
- }, G)) : (clearTimeout(p.value), p.value = null, f.value = !1);
187
- }), ye(
188
- c,
189
- (i) => {
190
- T(i), F.value ? t("input:error", y.value) : t("input:valid");
191
- },
192
- // wait for 0.5s before checking validity OR 2s of continuous typing
193
- { debounce: a.debounceTime, maxWait: X }
194
- ), a.value && he(
195
- 'BentoInputFieldPassword "value" property',
196
- `The use of "value" prop in "BentoInputFieldPassword" is no longer supported.
197
- Use the "v-model" or "model-value" property instead.`,
198
- "2.0.0"
199
- ), { __sfc: !0, MIN_PASSWORD_LENGTH: Z, DEBOUNCE_DURATION: z, DEBOUNCE_MAX_WAIT: X, TOOLTIP_TIMEOUT: G, t: e, n: d, props: a, emit: t, attrs: v, inputType: h, inputValue: c, isHintDisplayed: O, isTouched: S, passwordValidity: w, errorsList: y, capsLockTooltipTimeoutID: p, isTooltipDisplayed: f, inputFieldPasswordRef: U, inputFieldPasswordInputRef: A, inputFieldPasswordCapsLockIconRef: J, isCapsLockOn: R, focused: B, emitValue: q, validationListId: K, validationPopoverId: M, isPasswordReadable: N, passwordValidityConditionalClass: Y, tooltipConditionalClass: $, inputFieldArgs: j, computedValidations: E, computedValidationList: H, hasErrors: F, hasValidations: I, checkCapsLock: ee, toggleInputType: ae, onUpdateModelValue: te, onFocus: ie, onBlur: oe, checkValidity: T, handleCapsLockMouseLeave: se, handleCapsLockMouseEnter: ne, BentoButton: ve, BentoImage: fe, BentoInputField: me, BentoPopover: _e, BentoTypography: be, Tooltip: Te, CheckmarkCircleFillIcon: Ce, DotIcon: ge, HideIcon: we, ShowIcon: ke, CapsLockIcon: Pe };
200
- }
201
- });
202
- var He = function() {
203
- var t = this, a = t._self._c, e = t._self._setupProxy;
204
- return a("div", { ref: "inputFieldPasswordRef" }, [a(e.BentoInputField, t._b({ ref: "inputFieldPasswordInputRef", staticClass: "b-input-field-password__input", attrs: { spellcheck: "false" }, on: { blur: e.onBlur, focus: e.onFocus, "update:model-value": e.onUpdateModelValue, keydown: e.checkCapsLock, keyup: e.checkCapsLock }, scopedSlots: t._u([t.description ? { key: "description", fn: function() {
205
- return [t._t("description", function() {
206
- return [t._v(t._s(t.description))];
207
- })];
208
- }, proxy: !0 } : null, e.isCapsLockOn ? { key: "iconBefore", fn: function() {
209
- return [a("div", { staticClass: "b-input-field-password__caps-lock-indicator", on: { mouseenter: e.handleCapsLockMouseEnter, mouseleave: e.handleCapsLockMouseLeave } }, [a(e.BentoImage, { ref: "inputFieldPasswordCapsLockIconRef", attrs: { src: e.CapsLockIcon, alt: e.t("capsLockEnabled") } })], 1), e.inputFieldPasswordCapsLockIconRef ? a(e.Tooltip, { class: e.tooltipConditionalClass, attrs: { content: e.t("capsLockEnabled"), "disabled-focus-trap": !0, "fallback-position": ["top", "bottom"], "is-shown": e.isTooltipDisplayed, "target-element": e.inputFieldPasswordCapsLockIconRef } }) : t._e()];
210
- }, proxy: !0 } : null, t.disabled ? null : { key: "iconAfter", fn: function() {
211
- return [a(e.BentoButton, { attrs: { variant: "tertiary" }, on: { click: e.toggleInputType }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
212
- return [e.isPasswordReadable ? t._e() : a(e.ShowIcon, { attrs: { "svg-title": e.t("showPassword") } }), e.isPasswordReadable ? a(e.HideIcon, { attrs: { "svg-title": e.t("hidePassword") } }) : t._e()];
213
- }, proxy: !0 }], null, !1, 956294632) })];
214
- }, proxy: !0 }], null, !0) }, "bento-input-field", e.inputFieldArgs, !1), [t.label ? [t._v(t._s(t.label))] : [t._t("default")]], 2), e.hasValidations ? a(e.BentoPopover, { attrs: { open: e.isHintDisplayed, "target-element": e.inputFieldPasswordInputRef, "disable-focus-trap": !0, "aria-label": e.computedValidations.title, "aria-describedby": e.validationListId, position: "right-start" } }, [a("div", { attrs: { id: e.validationPopoverId } }, [e.computedValidations.title ? a(e.BentoTypography, { staticClass: "b-input-field-password__validation-title" }, [t._v(" " + t._s(e.computedValidations.title) + " ")]) : t._e(), e.hasErrors ? t._e() : a("p", { staticClass: "b-input-field-password__validation-status--valid", attrs: { role: "alert" } }, [t._v(" " + t._s(e.t("validationValid")) + " ")]), a("ul", { staticClass: "b-input-field-password__validation-list", attrs: { id: e.validationListId } }, t._l(e.computedValidationList, function(d, v) {
215
- return a("li", { key: v, class: e.passwordValidityConditionalClass[v], attrs: { "aria-live": "polite", "aria-atomic": "true" } }, [a("span", { staticClass: "b-input-field-password__validation-list-icon" }, [e.passwordValidity[v] ? a(e.CheckmarkCircleFillIcon, { attrs: { "svg-title": e.t("validationChecked") } }) : a(e.DotIcon, { attrs: { "svg-title": e.t("validationUnchecked") } })], 1), a(e.BentoTypography, { staticClass: "b-input-field-password__validation-list-text", attrs: { el: "span" } }, [t._v(" " + t._s(d.label) + " ")])], 1);
216
- }), 0), e.computedValidations.suggestion ? a(e.BentoTypography, { staticClass: "b-input-field-password__validation-suggestion" }, [t._v(" " + t._s(e.computedValidations.suggestion) + " ")]) : t._e()], 1)]) : t._e()], 1);
217
- }, Fe = [], xe = /* @__PURE__ */ Ve(
218
- Ne,
219
- He,
220
- Fe,
221
- !1,
222
- null,
223
- "57349ba0"
224
- );
225
- const na = xe.exports;
226
- export {
227
- Ae as a,
228
- Be as b,
229
- Ue as c,
230
- na as i,
231
- Oe as m,
232
- Se as r
233
- };
234
- //# sourceMappingURL=input-field-password.BKT1mYUw.js.map
@@ -1,170 +0,0 @@
1
- import { defineComponent as ie, useAttrs as de, useSlots as se, ref as f, provide as le, inject as x, toRef as ue, computed as n, toRefs as pe } from "vue";
2
- import { a as ce, I as fe, b as be, B as _e } from "./dropdown.Ct7uhPr6.js";
3
- import { p as E, d as T, B as me } from "./typography.C8lPlsbD.js";
4
- import { u as ye } from "./form-field.D_2g7vaP.js";
5
- import { g as b } from "./generate-uid.NJ8tVoha.js";
6
- import { g as $ } from "./get-slot-text.Bjb9dTSV.js";
7
- import { u as ve } from "./aria-label.CaUURpnB.js";
8
- import { u as he } from "./index.B6WW_F-J.js";
9
- import { u as we } from "./use-form-layout-loading.CWbjZiwP.js";
10
- import { u as De } from "./use-has-slot.C9lQZ6nz.js";
11
- import { F as Ee, E as Te } from "./error-message.RxdStT3S.js";
12
- import { n as Ae } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
13
- import "../assets/input-field.css";
14
- var s = /* @__PURE__ */ ((o) => (o.DEFAULT = "default", o.PAYMENT_METHOD = "payment-method", o.STATIC_VALUE = "static-value", o.DROPDOWN = "dropdown", o))(s || {}), d = /* @__PURE__ */ ((o) => (o.START = "start", o.END = "end", o))(d || {}), _ = /* @__PURE__ */ ((o) => (o.CONDENSED = "condensed", o.DISABLED = "disabled", o.READONLY = "readonly", o.ERROR = "error", o))(_ || {}), A = /* @__PURE__ */ ((o) => (o.SEARCH = "search", o.TEXT = "text", o.NUMBER = "number", o))(A || {}), Ie = /* @__PURE__ */ ((o) => (o.INPUT = "input", o.ESCAPE_PRESSED = "escape-pressed", o.UPDATE_DROPDOWN = "update:dropdown", o.DROPDOWN_INPUT = "dropdown-input", o.FOCUS = "focus", o.CHANGE = "change", o.BLUR = "blur", o.KEYDOWN = "keydown", o))(Ie || {});
15
- const Se = {
16
- "en-US": { ariaLabelDropdownFallback: "{inputLabel} Dropdown", ariaLabelFallback: "Input field" },
17
- "ja-JP": { ariaLabelDropdownFallback: "{inputLabel}ドロップダウン", ariaLabelFallback: "入力フィールド" },
18
- "pt-BR": { ariaLabelDropdownFallback: "Menu suspenso {inputLabel}", ariaLabelFallback: "Campo de entrada" }
19
- }, Le = {
20
- name: "bento-input-field",
21
- model: { prop: "modelValue" },
22
- i18n: { messages: Se }
23
- }, ge = /* @__PURE__ */ ie({
24
- ...Le,
25
- props: {
26
- description: { default: "" },
27
- disabled: { type: Boolean, default: !1 },
28
- errorMessage: { default: null },
29
- label: { default: "" },
30
- optional: { type: Boolean, default: !1 },
31
- placeholder: { default: "" },
32
- readonly: { type: Boolean, default: !1 },
33
- required: { type: Boolean, default: !1 },
34
- tooltipText: { default: null },
35
- ariaHidden: { type: Boolean, default: !0 },
36
- ariaLabel: { default: void 0 },
37
- condensed: { type: Boolean, default: !1 },
38
- dropdown: { default: void 0 },
39
- dropdownPosition: { default: d.START },
40
- error: { type: Boolean, default: !1 },
41
- modelValue: { default: void 0 },
42
- slashedZero: { type: Boolean, default: !1 },
43
- staticValue: { default: "" },
44
- staticValuePosition: { default: d.START },
45
- type: { default: A.TEXT },
46
- value: { default: void 0 },
47
- variant: { default: s.DEFAULT }
48
- },
49
- emits: ["blur", "click", "change", "dropdown-input", "escape-pressed", "focus", "keydown", "keyup", "input", "update:dropdown", "update:model-value"],
50
- setup(o, { expose: t, emit: a }) {
51
- const e = o, r = de(), l = se(), { emitValue: I } = ye(a), { t: m } = he(), S = De(l), L = f(null), g = f(null), H = b("input"), y = b("input-dropdown"), v = b("input-static-value"), N = b("input-description"), O = b("input-error"), h = f(!1);
52
- le(ce, !0);
53
- const Y = x(fe, f(void 0)), q = () => {
54
- h.value = !0, a("focus");
55
- }, W = () => {
56
- h.value = !1, a("blur");
57
- }, { isReadOnly: u } = we(ue(e, "readonly")), J = n(
58
- () => {
59
- var i;
60
- return u.value || ((i = e.dropdown) == null ? void 0 : i.readonly);
61
- }
62
- ), p = n(
63
- () => e.variant === s.STATIC_VALUE && !!l.staticValue
64
- ), K = n(() => e.variant === s.DEFAULT), j = n(() => e.variant === s.PAYMENT_METHOD), z = n(
65
- () => p.value && e.staticValuePosition === d.START
66
- ), X = n(
67
- () => p.value && e.staticValuePosition === d.END
68
- ), c = n(() => e.variant === s.DROPDOWN && !!e.dropdown), Z = n(
69
- () => c.value && e.dropdownPosition === d.START
70
- ), G = n(
71
- () => c.value && e.dropdownPosition === d.END
72
- ), w = n(
73
- () => !e.disabled && !u.value && (!!e.errorMessage || e.error)
74
- ), C = n(() => $(l)("default") || e.label), P = n(() => $(l)("description") || e.description), Q = n(() => c.value === !0 && p.value === !0 ? `${v} ${y}` : c.value === !0 ? `${y}` : p.value === !0 ? `${v}` : null), F = n(() => m("ariaLabelFallback")), B = n(
75
- () => m("ariaLabelDropdownFallback", { inputLabel: V.value })
76
- ), R = f(r["aria-label"]), { ariaLabel: k } = pe(e), V = ve({
77
- ariaLabel: R.value,
78
- // TODO: take this line away when the aria-label props is removed
79
- label: k,
80
- defaultFallback: C.value || F
81
- }), ee = n(
82
- () => `${P.value ? N : ""} ${w.value && e.errorMessage ? O : ""}`
83
- ), te = n(() => ({
84
- [`b-input-field--${_.CONDENSED}`]: e.condensed,
85
- [`b-input-field--${_.DISABLED}`]: e.disabled,
86
- [`b-input-field--${_.READONLY}`]: u.value,
87
- [`b-input-field--${_.ERROR}`]: w.value,
88
- "b-input-field--slashed-zero": e.slashedZero
89
- })), oe = n(() => ({
90
- "aria-label": B.value,
91
- ...e.dropdown
92
- })), ae = (i) => {
93
- const re = i.target.value;
94
- !e.disabled && !u.value && I(re);
95
- }, ne = (i) => {
96
- a("dropdown-input", i), a("update:dropdown", { ...e == null ? void 0 : e.dropdown, value: i });
97
- }, D = () => {
98
- L.value.focus();
99
- }, M = () => {
100
- e.variant === "dropdown" ? g.value.focus() : D();
101
- };
102
- t({
103
- focusInput: D,
104
- focus: M
105
- });
106
- const U = x(be, "");
107
- return !Object.values(A).includes(e.type) && !U && (e.type === "tel" ? E(
108
- `"bento-input-field" dropdown does not support the type '${e.type}', use "bento-input-field-phone-number" instead.`
109
- ) : e.type === "password" ? E(
110
- `"bento-input-field" dropdown does not support the type '${e.type}', use "bento-input-field-password" instead.`
111
- ) : E(`"bento-input-field" dropdown does not support the type '${e.type}'`)), e.error && T(
112
- 'BentoInputField "error" property',
113
- `Use the BentoInputField "errorMessage" property instead to indicate that there is a modifier error.
114
- Having the field as "undefined" will hide/remove the error.
115
- <bento-dropdown errorMessage="Error message text" />`,
116
- "2.0.0"
117
- ), S("defaultIconBefore") && T(
118
- 'BentoInputField "defaultIconBefore" slot',
119
- `Use the BentoInputField "iconBefore" slot instead to add an icon at the left side of the input field
120
- <bento-input-field>
121
- <template #iconBefore>
122
- <my-icon-goes-here />
123
- </template>
124
- </bento-input-field>`,
125
- "2.0.0"
126
- ), e.value && T(
127
- 'BentoInputField "value" property',
128
- `The use of "value" prop in "BentoInputField" is no longer supported.
129
- Use the "v-model" or "model-value" property instead.`,
130
- "2.0.0"
131
- ), { __sfc: !0, attrs: r, slots: l, props: e, emit: a, emitValue: I, t: m, hasSlot: S, inputFieldElement: L, inputDropdownElement: g, inputFieldId: H, dropdownId: y, staticValueId: v, descriptionId: N, errorId: O, isFocused: h, hint: Y, onFocus: q, onBlur: W, isReadOnly: u, isDropdownReadOnly: J, shouldShowStaticValue: p, isDefaultVariant: K, isPaymentMethodVariant: j, shouldDisplayStaticValueAtStart: z, shouldDisplayStaticValueAtEnd: X, shouldShowDropdown: c, shouldDisplayDropdownAtStart: Z, shouldDisplayDropdownAtEnd: G, shouldShowError: w, computedLabel: C, computedDescription: P, computedAriaOwns: Q, computedAriaLabelFallbackMessage: F, computedAriaLabelDropdowFallback: B, ariaLabelAttribute: R, ariaLabel: k, computedAriaLabel: V, computedAriaDescribedBy: ee, inputFieldConditionalClasses: te, inputFieldDropdownProps: oe, onInput: ae, onDropdownInput: ne, focusInput: D, focus: M, inputFieldParentComponent: U, BentoDropdown: _e, BentoTypography: me, ErrorMessage: Te, FieldLabel: Ee };
132
- }
133
- });
134
- var Ne = function() {
135
- var t = this, a = t._self._c, e = t._self._setupProxy;
136
- return a(e.BentoTypography, { staticClass: "b-input-field", class: e.inputFieldConditionalClasses, attrs: { "data-testid": "input-text-container", el: "div", variant: "body" } }, [e.hasSlot("default") || t.label ? a(e.FieldLabel, { attrs: { for: e.inputFieldId, "data-testid": "input-field-label", "tooltip-text": t.tooltipText, optional: t.optional, required: t.required, label: t.label }, on: { click: e.focusInput } }, [t._t("default")], 2) : t._e(), a("div", { staticClass: "b-input-field__input-box", attrs: { "data-testid": "input-box", "aria-disabled": t.disabled }, on: { click: e.focusInput } }, [e.isDefaultVariant && (e.hasSlot("defaultIconBefore") || e.hasSlot("iconBefore")) ? a("span", { staticClass: "b-input-field__icon-before", attrs: { "aria-hidden": t.ariaHidden ? "true" : void 0 } }, [e.hasSlot("iconBefore") ? t._t("iconBefore") : t._e(), e.hasSlot("defaultIconBefore") && !e.hasSlot("iconBefore") ? t._t("defaultIconBefore") : t._e()], 2) : t._e(), e.isPaymentMethodVariant && e.hasSlot("paymentMethod") ? a("span", { staticClass: "b-input-field__payment-method", attrs: { "aria-hidden": t.ariaHidden ? "true" : void 0 } }, [t._t("paymentMethod")], 2) : t._e(), e.shouldDisplayDropdownAtStart ? a("div", { staticClass: "b-input-field__dropdown b-input-field__dropdown--start", attrs: { id: e.dropdownId }, on: { click: function(r) {
137
- r.stopPropagation();
138
- } } }, [t.dropdown ? a(e.BentoDropdown, t._b({ ref: "inputDropdownElement", attrs: { disabled: t.disabled, readonly: e.isDropdownReadOnly }, on: { "update:model-value": e.onDropdownInput } }, "bento-dropdown", e.inputFieldDropdownProps, !1)) : t._e()], 1) : t._e(), e.shouldDisplayStaticValueAtStart ? a(e.BentoTypography, { staticClass: "b-input-field__static-value b-input-field__static-value--start", attrs: { id: e.staticValueId, el: "span", variant: "body" } }, [t._t("staticValue")], 2) : t._e(), a("div", { staticClass: "b-input-field__input-container" }, [a("input", t._b({ ref: "inputFieldElement", staticClass: "b-input-field__input", attrs: { id: e.inputFieldId, "aria-label": e.computedAriaLabel, "aria-describedby": e.computedAriaDescribedBy, "aria-owns": e.computedAriaOwns, "aria-invalid": e.shouldShowError, placeholder: t.placeholder, required: t.required, "aria-required": t.required, type: t.type, disabled: t.disabled, readonly: e.isReadOnly }, domProps: { value: t.modelValue ?? t.value }, on: { input: e.onInput, change: function(r) {
139
- return e.emit("change");
140
- }, focus: e.onFocus, blur: e.onBlur, keydown: [function(r) {
141
- return e.emit("keydown", r);
142
- }, function(r) {
143
- return !r.type.indexOf("key") && t._k(r.keyCode, "esc", 27, r.key, ["Esc", "Escape"]) ? null : e.emit("escape-pressed");
144
- }], keyup: function(r) {
145
- return e.emit("keyup", r);
146
- }, click: function(r) {
147
- return e.emit("click", r);
148
- } } }, "input", e.attrs, !1)), e.hint && e.isFocused && (t.modelValue || t.value) ? a(e.BentoTypography, { staticClass: "b-input-field__hint", attrs: { el: "span" } }, [t._v(" " + t._s(e.hint) + " ")]) : t._e()], 1), e.hasSlot("iconAfter") ? a("span", { staticClass: "b-input-field__icon-after", attrs: { "aria-hidden": t.ariaHidden ? "true" : void 0, "data-testid": "input-text__icon-after" } }, [t._t("iconAfter")], 2) : t._e(), e.shouldDisplayStaticValueAtEnd ? a(e.BentoTypography, { staticClass: "b-input-field__static-value b-input-field__static-value--end", attrs: { id: e.staticValueId, el: "span", variant: "body" } }, [t._t("staticValue")], 2) : t._e(), e.shouldDisplayDropdownAtEnd ? a("div", { staticClass: "b-input-field__dropdown b-input-field__dropdown--end", attrs: { id: e.dropdownId, "data-testid": "input-field-dropdown-container-end" }, on: { click: function(r) {
149
- r.stopPropagation();
150
- } } }, [t.dropdown ? a(e.BentoDropdown, t._b({ ref: "inputDropdownElement", attrs: { id: e.dropdownId, disabled: t.disabled, readonly: e.isDropdownReadOnly }, on: { "update:model-value": e.onDropdownInput } }, "bento-dropdown", e.inputFieldDropdownProps, !1)) : t._e()], 1) : t._e()], 1), e.shouldShowError && t.errorMessage ? a(e.ErrorMessage, { staticClass: "b-input-field__error-message", attrs: { id: e.errorId, "error-message": t.errorMessage } }) : t._e(), e.hasSlot("description") || t.description ? a("span", { staticClass: "b-input-field__description", attrs: { id: e.descriptionId }, on: { click: e.focusInput } }, [a(e.BentoTypography, { attrs: { el: "span", variant: "body" } }, [t._t("description", function() {
151
- return [t._v(" " + t._s(t.description) + " ")];
152
- }, { id: "description" })], 2)], 1) : t._e()], 1);
153
- }, Oe = [], Ce = /* @__PURE__ */ Ae(
154
- ge,
155
- Ne,
156
- Oe,
157
- !1,
158
- null,
159
- "4ddfa1f9"
160
- );
161
- const qe = Ce.exports;
162
- export {
163
- qe as B,
164
- d as a,
165
- Ie as b,
166
- _ as c,
167
- A as d,
168
- s as e
169
- };
170
- //# sourceMappingURL=input-field.m1PMwa4C.js.map
@@ -1,105 +0,0 @@
1
- import { ref as p, watch as T, defineComponent as F, computed as v, nextTick as L } from "vue";
2
- import { d as x, B as M } from "./typography.C8lPlsbD.js";
3
- import { B as k } from "./button.DxhJNOtr.js";
4
- import { B as A } from "./loading-indicator.PxbRzshH.js";
5
- import { B as I, s as O, g as H, a as w, f as D } from "./focus-trap.DRqjHzt6.js";
6
- import { E as P } from "./expand.Bbielaja.js";
7
- import { C as R } from "./cross.CC_B-vG-.js";
8
- import { g as z } from "./generate-uid.NJ8tVoha.js";
9
- import { u as N } from "./index.B6WW_F-J.js";
10
- import { a as V, b as $ } from "./index.CwzYJHw2.js";
11
- import { n as G } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
12
- import "../assets/inspector.css";
13
- function K(r) {
14
- const t = p([]), e = V();
15
- return T(e, (a) => {
16
- !r.value || !a || !r.value.contains(a) || (t.value.unshift(a), t.value.length > 3 && t.value.pop());
17
- }), {
18
- findValidFocusFallback: () => {
19
- for (const a of t.value)
20
- if (a && document.body.contains(a))
21
- return a;
22
- return null;
23
- }
24
- };
25
- }
26
- const Y = {
27
- "en-US": { close: "Close", expand: "Expand", inspector: "Inspector", returnToMainContent: "Return to main content (Ctrl+Shift+S)", returnToMainContentDescription: "You can use Ctrl + Shift + S to navigate between the inspector and page sections." },
28
- "ja-JP": { close: "閉じる", expand: "展開", inspector: "インスペクター", returnToMainContent: "メインコンテンツに戻る(Ctrl+Shift+S)", returnToMainContentDescription: "Ctrl + Shift + S を使用して、インスペクターとページセクション間を移動できます。" },
29
- "pt-BR": { close: "Fechar", expand: "Expandir", inspector: "Inspetor", returnToMainContent: "Voltar ao conteúdo principal (Ctrl+Shift+S)", returnToMainContentDescription: "Você pode usar Ctrl + Shift + S para navegar entre as seções do inspetor e da página." }
30
- }, U = { i18n: { messages: Y } }, X = /* @__PURE__ */ F({
31
- ...U,
32
- __name: "inspector",
33
- props: {
34
- activePage: { default: "" },
35
- expandable: { type: Boolean, default: !1 },
36
- isOpen: { type: Boolean, default: !1 },
37
- loading: { type: Boolean, default: !1 },
38
- size: { default: "small" },
39
- title: null,
40
- relativeLayout: { default: "push-content" },
41
- pageFocusAnchor: { default: null }
42
- },
43
- emits: ["update:is-open", "update:active-page", "expand"],
44
- setup(r, { emit: n }) {
45
- const t = r, { t: e } = N(), s = z("returnToMainContentDescription"), a = p(null), l = p(null), g = p(null), u = p(null), { width: m } = $(a), d = v(() => {
46
- const C = t.size === "small" ? 740 : 915;
47
- return m.value > 0 && m.value < C;
48
- }), c = v(() => t.pageFocusAnchor), y = v(() => ({
49
- [`b-inspector--${t.size}`]: !0,
50
- [`b-inspector--${t.relativeLayout}`]: !0,
51
- "b-inspector--is-compact": d.value
52
- })), S = v(() => `${e("inspector")}, ${t.title}`), { findValidFocusFallback: f } = K(g), b = async () => {
53
- t.isOpen ? (await L(), O(l.value, c.value)) : i(c.value ?? f());
54
- }, B = (o) => {
55
- if (d.value)
56
- return;
57
- const _ = o.shiftKey ? -1 : 1, C = H(_, l.value);
58
- w() === C && (o.preventDefault(), u.value = document.activeElement, i(c.value ?? f()), n("update:active-page", void 0));
59
- }, E = (o) => {
60
- const _ = o.shiftKey && o.ctrlKey && o.key === "S";
61
- t.isOpen && !d.value && _ && h();
62
- }, h = () => {
63
- D(l.value) ? (u.value = document.activeElement, i(c.value ?? f()), n("update:active-page", void 0)) : i(u.value);
64
- }, i = (o) => {
65
- o && (o == null || o.focus(), document.activeElement !== o && i(o.parentElement));
66
- };
67
- return T(
68
- () => t.activePage,
69
- () => {
70
- t.activePage && b();
71
- }
72
- ), t.activePage || x(
73
- 'BentoInspector "active-page" as optional',
74
- `Make sure to set the "active-page" prop and keep it in sync with "update:active-page".
75
- "active-page" prop will be required in the next version`,
76
- "2.0.0"
77
- ), { __sfc: !0, props: t, emit: n, t: e, returnToMainContentDescriptionId: s, wrapper: a, inspector: l, page: g, inspectorLastFocusedElement: u, wrapperWidth: m, isCompact: d, computedPageLastFocusedElement: c, conditionalClass: y, inspectorAriaLabel: S, findValidFocusFallback: f, setFocus: b, handleTabNavigation: B, handleSectionFocus: E, moveFocusBetweenSections: h, focusElement: i, BentoTypography: M, BentoButton: k, BentoLoadingIndicator: A, BentoFocusTrap: I, ExpandIcon: P, CrossIcon: R };
78
- }
79
- });
80
- var j = function() {
81
- var n = this, t = n._self._c, e = n._self._setupProxy;
82
- return t("div", { ref: "wrapper", staticClass: "b-inspector", class: e.conditionalClass, on: { keydown: e.handleSectionFocus } }, [t("div", { ref: "page", staticClass: "b-inspector__page-wrapper" }, [t("div", { staticClass: "b-inspector__page" }, [n._t("page")], 2)]), t("Transition", { attrs: { name: "b-inspector__animation", mode: "out-in" }, on: { "before-enter": e.setFocus, "after-leave": e.setFocus } }, [n.isOpen ? t("aside", { ref: "inspector", staticClass: "b-inspector__container-wrapper", attrs: { "aria-label": e.inspectorAriaLabel }, on: { keydown: function(s) {
83
- return !s.type.indexOf("key") && n._k(s.keyCode, "tab", 9, s.key, "Tab") ? null : e.handleTabNavigation.apply(null, arguments);
84
- } } }, [t(e.BentoFocusTrap, { attrs: { disabled: !e.isCompact } }, [t("div", { staticClass: "b-inspector__container" }, [t("div", { staticClass: "b-inspector__header" }, [e.isCompact ? n._e() : [t(e.BentoButton, { staticClass: "b-inspector__return-content", attrs: { variant: "secondary", condensed: "", "aria-describedby": e.returnToMainContentDescriptionId }, on: { click: e.moveFocusBetweenSections } }, [n._v(" " + n._s(e.t("returnToMainContent")) + " ")]), t("span", { staticClass: "b-inspector__return-content-description", attrs: { id: e.returnToMainContentDescriptionId } }, [n._v(n._s(e.t("returnToMainContentDescription")))])], t(e.BentoTypography, { staticClass: "b-inspector__title", attrs: { el: "h2", variant: "title" } }, [n._v(" " + n._s(n.title) + " ")]), t("div", { staticClass: "b-inspector__icons" }, [n.expandable ? t(e.BentoButton, { attrs: { variant: "tertiary" }, on: { click: function(s) {
85
- return e.emit("expand");
86
- } }, scopedSlots: n._u([{ key: "iconLeft", fn: function() {
87
- return [t(e.ExpandIcon, { attrs: { "svg-title": e.t("expand") } })];
88
- }, proxy: !0 }], null, !1, 1210869445) }) : n._e(), t(e.BentoButton, { attrs: { variant: "tertiary" }, on: { click: function(s) {
89
- return e.emit("update:is-open", !1);
90
- } }, scopedSlots: n._u([{ key: "iconLeft", fn: function() {
91
- return [t(e.CrossIcon, { attrs: { "svg-title": e.t("close") } })];
92
- }, proxy: !0 }], null, !1, 858730413) })], 1)], 2), t("div", { staticClass: "b-inspector__content" }, [n.loading ? t(e.BentoLoadingIndicator, { staticClass: "b-inspector__loading-indicator", attrs: { large: "" } }) : n._t("content")], 2)])])], 1) : n._e()])], 1);
93
- }, q = [], J = /* @__PURE__ */ G(
94
- X,
95
- j,
96
- q,
97
- !1,
98
- null,
99
- "62a28c4d"
100
- );
101
- const ct = J.exports;
102
- export {
103
- ct as B
104
- };
105
- //# sourceMappingURL=inspector.Bnm0hl_D.js.map
@@ -1,64 +0,0 @@
1
- import { defineComponent as v, ref as B, computed as o } from "vue";
2
- import { b as y } from "./index.CwzYJHw2.js";
3
- import { B as R } from "./button.DxhJNOtr.js";
4
- import { a as c, b as I, B as b } from "./image.C2D2hKat.js";
5
- import { B as T } from "./typography.C8lPlsbD.js";
6
- import { u as C } from "./index.B6WW_F-J.js";
7
- import { g as O } from "./generate-uid.NJ8tVoha.js";
8
- import { n as h } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
9
- import "../assets/promo-banner.css";
10
- var u = /* @__PURE__ */ ((s) => (s.BLUE = "blue", s.GREY = "grey", s.GREEN = "green", s))(u || {}), l = /* @__PURE__ */ ((s) => (s.HORIZONTAL = "horizontal", s.VERTICAL = "vertical", s))(l || {});
11
- const L = {
12
- "en-US": { dismiss: "Dismiss" },
13
- "ja-JP": { dismiss: "却下" },
14
- "pt-BR": { dismiss: "Descartar" }
15
- }, x = {
16
- i18n: { messages: L },
17
- name: "bento-promo-banner"
18
- }, k = /* @__PURE__ */ v({
19
- ...x,
20
- props: {
21
- actions: { default: null },
22
- color: { default: u.GREY },
23
- isDismissible: { type: Boolean, default: !0 },
24
- dismissButtonText: { default: null },
25
- image: null,
26
- layout: { default: l.HORIZONTAL },
27
- title: null
28
- },
29
- emits: ["dismiss"],
30
- setup(s, { emit: e }) {
31
- const n = s, { t: i } = C(), t = B(null), a = y(t), _ = O("promoBannerTitle"), m = o(() => n.image.aspectRatio === c.P16_9 ? 800 : n.image.aspectRatio === c.P2_1 ? 850 : n.image.aspectRatio === c.P1_1 ? 623 : 0), p = o(() => n.layout === l.HORIZONTAL && a.width.value <= m.value ? l.VERTICAL : n.layout), f = o(
32
- () => [`b-promo-banner--${p.value}`, `b-promo-banner--${n.color}`].join(" ")
33
- ), d = (r) => r.iconOnly && (r.iconLeft || r.iconRight || r.icon), g = o(() => n.dismissButtonText || i("dismiss"));
34
- return { __sfc: !0, t: i, props: n, emit: e, promoBannerRef: t, promoBannerSize: a, promoBannerTitleId: _, horizontalLayoutBreakpoint: m, bannerLayoutClass: p, bannerConditionalClass: f, isIconOnly: d, computedDismissButtonText: g, BentoButton: R, BentoImage: b, BentoImageObjectFit: I, BentoTypography: T };
35
- }
36
- });
37
- var E = function() {
38
- var e = this, n = e._self._c, i = e._self._setupProxy;
39
- return n("section", { ref: "promoBannerRef", staticClass: "b-promo-banner", class: i.bannerConditionalClass, attrs: { "aria-labelledby": i.promoBannerTitleId } }, [n("div", { staticClass: "b-promo-banner__content" }, [n("div", { staticClass: "b-promo-banner__content-header" }, [n(i.BentoTypography, { attrs: { id: i.promoBannerTitleId, variant: "title", large: "" } }, [e._v(" " + e._s(e.title) + " ")]), e._t("description")], 2), n("div", { staticClass: "b-promo-banner__content-actions" }, [e.actions ? e._l(e.actions, function(t, a) {
40
- return n(i.BentoButton, { key: a, attrs: { variant: t.variant, critical: t.critical, disabled: t.disabled, inverse: t.inverse, "icon-only": t.iconOnly, link: t.link }, on: { click: t.event }, scopedSlots: e._u([t.icon || t.iconLeft ? { key: "iconLeft", fn: function() {
41
- return [n(t.icon || t.iconLeft, { tag: "component", attrs: { "svg-title": t.title } })];
42
- }, proxy: !0 } : null, i.isIconOnly(t) ? null : { key: "default", fn: function() {
43
- return [e._v(" " + e._s(t.title) + " ")];
44
- }, proxy: !0 }, t.iconRight ? { key: "iconRight", fn: function() {
45
- return [n(t.iconRight, { tag: "component", attrs: { "svg-title": t.title } })];
46
- }, proxy: !0 } : null], null, !0) });
47
- }) : e._e(), e.isDismissible ? n(i.BentoButton, { attrs: { variant: "secondary" }, on: { click: function(t) {
48
- return i.emit("dismiss");
49
- } } }, [e._v(" " + e._s(i.computedDismissButtonText) + " ")]) : e._e()], 2)]), n("div", { staticClass: "b-promo-banner__image" }, [n(i.BentoImage, { staticClass: "b-promo-banner__image-item", attrs: { src: e.image.src, alt: e.image.alt ?? "", "aspect-ratio": e.image.aspectRatio, "object-fit": i.BentoImageObjectFit.CONTAIN } })], 1)]);
50
- }, A = [], D = /* @__PURE__ */ h(
51
- k,
52
- E,
53
- A,
54
- !1,
55
- null,
56
- "bb0ef392"
57
- );
58
- const Z = D.exports;
59
- export {
60
- u as B,
61
- l as a,
62
- Z as p
63
- };
64
- //# sourceMappingURL=promo-banner.Db2kh2qK.js.map