@adyen/bento-vue3 1.88.1 → 1.89.2

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 (366) hide show
  1. package/dist/@types/components.d.ts +4 -0
  2. package/dist/@types/index.d.ts +722 -524
  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/ai-button.css +1 -1
  11. package/dist/assets/base-modal.css +1 -1
  12. package/dist/assets/button-actions.css +1 -1
  13. package/dist/assets/button.css +1 -1
  14. package/dist/assets/card.css +1 -1
  15. package/dist/assets/checkbox-input.css +1 -1
  16. package/dist/assets/data-grid-template.css +1 -1
  17. package/dist/assets/data-grid.css +1 -1
  18. package/dist/assets/dialog-page.css +1 -1
  19. package/dist/assets/file-uploader.css +1 -1
  20. package/dist/assets/filter-bar.css +1 -1
  21. package/dist/assets/index.css +1 -1
  22. package/dist/assets/inspector.css +1 -1
  23. package/dist/assets/list-item.css +1 -0
  24. package/dist/assets/modal-fullscreen.css +1 -1
  25. package/dist/assets/radio-input.css +1 -1
  26. package/dist/assets/selection-card-group.css +1 -1
  27. package/dist/assets/sidepanel.css +1 -1
  28. package/dist/assets/timeline-item.css +1 -1
  29. package/dist/assets/use-cached-selected-values.css +1 -1
  30. package/dist/button.js +3 -3
  31. package/dist/card.js +1 -1
  32. package/dist/checkbox.js +2 -2
  33. package/dist/chip.js +1 -1
  34. package/dist/chunks/{accordion-item.QQ06tTjt.js → accordion-item.BX1KrLMl.js} +6 -15
  35. package/dist/chunks/{accordion-item.QQ06tTjt.js.map → accordion-item.BX1KrLMl.js.map} +1 -1
  36. package/dist/chunks/{action-bar.BS2cJzG_.js → action-bar.DLMaIUWW.js} +8 -34
  37. package/dist/chunks/{action-bar.BS2cJzG_.js.map → action-bar.DLMaIUWW.js.map} +1 -1
  38. package/dist/chunks/{ai-button.XfeGC4-Q.js → ai-button.1YJdI-sw.js} +3 -3
  39. package/dist/chunks/{ai-button.XfeGC4-Q.js.map → ai-button.1YJdI-sw.js.map} +1 -1
  40. package/dist/chunks/{ai-tag.DVCW-_vD.js → ai-tag.DK63ExDc.js} +6 -15
  41. package/dist/chunks/{ai-tag.DVCW-_vD.js.map → ai-tag.DK63ExDc.js.map} +1 -1
  42. package/dist/chunks/{alert.CDWtu0Hu.js → alert.C_8-VNi_.js} +6 -24
  43. package/dist/chunks/{alert.CDWtu0Hu.js.map → alert.C_8-VNi_.js.map} +1 -1
  44. package/dist/chunks/anchor-scroller.NhjLDBZI.js +207 -0
  45. package/dist/chunks/{anchor-scroller.BctgW0se.js.map → anchor-scroller.NhjLDBZI.js.map} +1 -1
  46. package/dist/chunks/{base-button.CRYAiuzn.js → base-button.CvHl36Ue.js} +24 -27
  47. package/dist/chunks/{base-button.CRYAiuzn.js.map → base-button.CvHl36Ue.js.map} +1 -1
  48. package/dist/chunks/base-modal.C2-JyHC_.js +424 -0
  49. package/dist/chunks/{base-modal.gZAtk-xP.js.map → base-modal.C2-JyHC_.js.map} +1 -1
  50. package/dist/chunks/button-actions-with-menu.BQFAgAI2.js +85 -0
  51. package/dist/chunks/{button-actions-with-menu.Tba1ME79.js.map → button-actions-with-menu.BQFAgAI2.js.map} +1 -1
  52. package/dist/chunks/{button-actions.BYBpjNqy.js → button-actions.cMQWyZne.js} +511 -542
  53. package/dist/chunks/{button-actions.BYBpjNqy.js.map → button-actions.cMQWyZne.js.map} +1 -1
  54. package/dist/chunks/{button.C6t9_lzm.js → button.DWF7FSIw.js} +42 -45
  55. package/dist/chunks/{button.C6t9_lzm.js.map → button.DWF7FSIw.js.map} +1 -1
  56. package/dist/chunks/calendar.DcCqkSNJ.js +1201 -0
  57. package/dist/chunks/{calendar.vM3abC8y.js.map → calendar.DcCqkSNJ.js.map} +1 -1
  58. package/dist/chunks/{card.Cw63i7Ul.js → card.CoxQ_L0w.js} +9 -21
  59. package/dist/chunks/{card.Cw63i7Ul.js.map → card.CoxQ_L0w.js.map} +1 -1
  60. package/dist/chunks/{checkbox-group.ODQy-ICn.js → checkbox-group.96n9Cc3W.js} +5 -5
  61. package/dist/chunks/{checkbox-group.ODQy-ICn.js.map → checkbox-group.96n9Cc3W.js.map} +1 -1
  62. package/dist/chunks/{checkbox-input.BZjSoCQW.js → checkbox-input.CVFQCfZM.js} +44 -51
  63. package/dist/chunks/{checkbox-input.BZjSoCQW.js.map → checkbox-input.CVFQCfZM.js.map} +1 -1
  64. package/dist/chunks/{checkbox.C3Ewfygy.js → checkbox.C6ATh8f5.js} +85 -94
  65. package/dist/chunks/{checkbox.C3Ewfygy.js.map → checkbox.C6ATh8f5.js.map} +1 -1
  66. package/dist/chunks/chevron-right-small.BCinNiMt.js +29 -0
  67. package/dist/chunks/chevron-right-small.BCinNiMt.js.map +1 -0
  68. package/dist/chunks/{chip.CyW1V8RU.js → chip.CdgpQyXN.js} +6 -12
  69. package/dist/chunks/{chip.CyW1V8RU.js.map → chip.CdgpQyXN.js.map} +1 -1
  70. package/dist/chunks/click-outside.BPylIosK.js +20 -0
  71. package/dist/chunks/{click-outside.CDz_x8mN.js.map → click-outside.BPylIosK.js.map} +1 -1
  72. package/dist/chunks/{code-snippet.BaJU2I5_.js → code-snippet.DgAuuZF5.js} +9 -24
  73. package/dist/chunks/{code-snippet.BaJU2I5_.js.map → code-snippet.DgAuuZF5.js.map} +1 -1
  74. package/dist/chunks/{codemirror.D2BAltnu.js → codemirror.Bzus_EPG.js} +15 -15
  75. package/dist/chunks/{codemirror.D2BAltnu.js.map → codemirror.Bzus_EPG.js.map} +1 -1
  76. package/dist/chunks/constructNow.D9uRk678.js +8 -0
  77. package/dist/chunks/{constructNow.CIc7d13I.js.map → constructNow.D9uRk678.js.map} +1 -1
  78. package/dist/chunks/{controls-group.Bu5lNTyH.js → controls-group.C7hOE1F4.js} +3 -3
  79. package/dist/chunks/{controls-group.Bu5lNTyH.js.map → controls-group.C7hOE1F4.js.map} +1 -1
  80. package/dist/chunks/{copy.C_BCNHYQ.js → copy.C2kQ1PbI.js} +7 -19
  81. package/dist/chunks/{copy.C_BCNHYQ.js.map → copy.C2kQ1PbI.js.map} +1 -1
  82. package/dist/chunks/{country.DJts6kCv.js → country.CaGc08Ps.js} +3 -3
  83. package/dist/chunks/{country.DJts6kCv.js.map → country.CaGc08Ps.js.map} +1 -1
  84. package/dist/chunks/country.types.DjpMGz7a.js +19 -0
  85. package/dist/chunks/{country.types.BBQbWkTY.js.map → country.types.DjpMGz7a.js.map} +1 -1
  86. package/dist/chunks/{currency.Afx8MVdY.js → currency.DuTEzR_W.js} +40 -42
  87. package/dist/chunks/{currency.Afx8MVdY.js.map → currency.DuTEzR_W.js.map} +1 -1
  88. package/dist/chunks/dashboard-section.UafHRkMa.js +161 -0
  89. package/dist/chunks/{dashboard-section.CgoLquLP.js.map → dashboard-section.UafHRkMa.js.map} +1 -1
  90. package/dist/chunks/dashed-underline.CcDV2Aks.js +108 -0
  91. package/dist/chunks/{dashed-underline.wbRHATeE.js.map → dashed-underline.CcDV2Aks.js.map} +1 -1
  92. package/dist/chunks/data-grid-template.CnC4TQvk.js +135 -0
  93. package/dist/chunks/{data-grid-template.D40V1cmi.js.map → data-grid-template.CnC4TQvk.js.map} +1 -1
  94. package/dist/chunks/data-grid.BSIXLRm7.js +4014 -0
  95. package/dist/chunks/{data-grid.C2nCCbeC.js.map → data-grid.BSIXLRm7.js.map} +1 -1
  96. package/dist/chunks/date-picker.dlzZ_-5f.js +231 -0
  97. package/dist/chunks/{date-picker.D5B_SECc.js.map → date-picker.dlzZ_-5f.js.map} +1 -1
  98. package/dist/chunks/date-range-picker.DC6CK0As.js +995 -0
  99. package/dist/chunks/{date-range-picker.B0q7Z4df.js.map → date-range-picker.DC6CK0As.js.map} +1 -1
  100. package/dist/chunks/{date.BtB1HyWQ.js → date.R2Wz6o7J.js} +28 -28
  101. package/dist/chunks/{date.BtB1HyWQ.js.map → date.R2Wz6o7J.js.map} +1 -1
  102. package/dist/chunks/{de.BJvo6njq.js → de.DXrHnkLX.js} +18 -18
  103. package/dist/chunks/{de.BJvo6njq.js.map → de.DXrHnkLX.js.map} +1 -1
  104. package/dist/chunks/{dialog-page.C1KUI51V.js → dialog-page.COfKqjT-.js} +7 -13
  105. package/dist/chunks/{dialog-page.C1KUI51V.js.map → dialog-page.COfKqjT-.js.map} +1 -1
  106. package/dist/chunks/differenceInMonths.s_znQQpw.js +43 -0
  107. package/dist/chunks/{differenceInMonths.CIYECBxK.js.map → differenceInMonths.s_znQQpw.js.map} +1 -1
  108. package/dist/chunks/{directive.rXUeDb8p.js → directive.Dpivxq_t.js} +2 -2
  109. package/dist/chunks/{directive.rXUeDb8p.js.map → directive.Dpivxq_t.js.map} +1 -1
  110. package/dist/chunks/{dropdown-default-textbox.CskseEho.js → dropdown-default-textbox.bq9AlGzJ.js} +55 -64
  111. package/dist/chunks/{dropdown-default-textbox.CskseEho.js.map → dropdown-default-textbox.bq9AlGzJ.js.map} +1 -1
  112. package/dist/chunks/{dropdown-tag.Zj-exiup.js → dropdown-tag.Ysrac5GN.js} +82 -86
  113. package/dist/chunks/{dropdown-tag.Zj-exiup.js.map → dropdown-tag.Ysrac5GN.js.map} +1 -1
  114. package/dist/chunks/dropdown.MhmX1P9o.js +799 -0
  115. package/dist/chunks/{dropdown.CxjzXI-k.js.map → dropdown.MhmX1P9o.js.map} +1 -1
  116. package/dist/chunks/{empty-state.DqdPzU-g.js → empty-state.DT4sFyjB.js} +7 -14
  117. package/dist/chunks/{empty-state.DqdPzU-g.js.map → empty-state.DT4sFyjB.js.map} +1 -1
  118. package/dist/chunks/{en-GB.C3-QUpva.js → en-GB.CBpvhDYV.js} +2 -2
  119. package/dist/chunks/{en-GB.C3-QUpva.js.map → en-GB.CBpvhDYV.js.map} +1 -1
  120. package/dist/chunks/{en-US.YeSsZuOc.js → en-US.CCazFVNP.js} +30 -30
  121. package/dist/chunks/{en-US.YeSsZuOc.js.map → en-US.CCazFVNP.js.map} +1 -1
  122. package/dist/chunks/{error-message.oGiefI2-.js → error-message.DCgo8q20.js} +8 -20
  123. package/dist/chunks/{error-message.oGiefI2-.js.map → error-message.DCgo8q20.js.map} +1 -1
  124. package/dist/chunks/{es.DyUjjSL8.js → es.CoF2PB8b.js} +14 -14
  125. package/dist/chunks/{es.DyUjjSL8.js.map → es.CoF2PB8b.js.map} +1 -1
  126. package/dist/chunks/{file-uploader.BnmNI1O7.js → file-uploader.Bfd1uUMe.js} +575 -680
  127. package/dist/chunks/{file-uploader.BnmNI1O7.js.map → file-uploader.Bfd1uUMe.js.map} +1 -1
  128. package/dist/chunks/filter-bar.CkAjLQol.js +3675 -0
  129. package/dist/chunks/filter-bar.CkAjLQol.js.map +1 -0
  130. package/dist/chunks/fixed-scroller.DtkaGyMD.js +150 -0
  131. package/dist/chunks/{fixed-scroller.i1tmEmst.js.map → fixed-scroller.DtkaGyMD.js.map} +1 -1
  132. package/dist/chunks/{focus-trap.BxCwzLqN.js → focus-trap.BAiM_ywb.js} +70 -86
  133. package/dist/chunks/{focus-trap.BxCwzLqN.js.map → focus-trap.BAiM_ywb.js.map} +1 -1
  134. package/dist/chunks/{footer-actions.Ck6UztD8.js → footer-actions.BcYSsoUg.js} +3 -3
  135. package/dist/chunks/{footer-actions.Ck6UztD8.js.map → footer-actions.BcYSsoUg.js.map} +1 -1
  136. package/dist/chunks/{form-layout-title.CQfeGyVw.js → form-layout-title.DW5Kg1rh.js} +4 -6
  137. package/dist/chunks/{form-layout-title.CQfeGyVw.js.map → form-layout-title.DW5Kg1rh.js.map} +1 -1
  138. package/dist/chunks/{fr.JD_4GwS8.js → fr.CJXL-Ief.js} +16 -16
  139. package/dist/chunks/{fr.JD_4GwS8.js.map → fr.CJXL-Ief.js.map} +1 -1
  140. package/dist/chunks/{generate-uid.NJ8tVoha.js → generate-uid.DBWe4g6T.js} +15 -16
  141. package/dist/chunks/{generate-uid.NJ8tVoha.js.map → generate-uid.DBWe4g6T.js.map} +1 -1
  142. package/dist/chunks/get-slot-text.8Fbl1GOr.js +6 -0
  143. package/dist/chunks/{get-slot-text.CQRAP2_q.js.map → get-slot-text.8Fbl1GOr.js.map} +1 -1
  144. package/dist/chunks/{grid-layout.Vhv1_zFs.js → grid-layout.CCWNscU_.js} +11 -12
  145. package/dist/chunks/{grid-layout.Vhv1_zFs.js.map → grid-layout.CCWNscU_.js.map} +1 -1
  146. package/dist/chunks/{header-meta.lGt3HsyH.js → header-meta.Bym9AlQm.js} +84 -96
  147. package/dist/chunks/{header-meta.lGt3HsyH.js.map → header-meta.Bym9AlQm.js.map} +1 -1
  148. package/dist/chunks/{header-with-views.D_sy4I2A.js → header-with-views.Djba6iol.js} +1013 -1156
  149. package/dist/chunks/{header-with-views.D_sy4I2A.js.map → header-with-views.Djba6iol.js.map} +1 -1
  150. package/dist/chunks/{header.oXqwf2xN.js → header.o-7SyHtU.js} +4 -4
  151. package/dist/chunks/{header.oXqwf2xN.js.map → header.o-7SyHtU.js.map} +1 -1
  152. package/dist/chunks/{index.Dppy4qHk.js → index.DDwcHPb6.js} +12 -12
  153. package/dist/chunks/{index.Dppy4qHk.js.map → index.DDwcHPb6.js.map} +1 -1
  154. package/dist/chunks/{info-icon.DyPOv7Pi.js → info-icon.BUala_wq.js} +3 -3
  155. package/dist/chunks/{info-icon.DyPOv7Pi.js.map → info-icon.BUala_wq.js.map} +1 -1
  156. package/dist/chunks/input-field-password.DZytmp_p.js +346 -0
  157. package/dist/chunks/{input-field-password.C_h61CMn.js.map → input-field-password.DZytmp_p.js.map} +1 -1
  158. package/dist/chunks/{input-field-phone-number.KctRYA9p.js → input-field-phone-number.CxblrmaU.js} +720 -736
  159. package/dist/chunks/{input-field-phone-number.KctRYA9p.js.map → input-field-phone-number.CxblrmaU.js.map} +1 -1
  160. package/dist/chunks/{input-field.DPElUS0U.js → input-field.CfU0ZKtL.js} +42 -54
  161. package/dist/chunks/{input-field.DPElUS0U.js.map → input-field.CfU0ZKtL.js.map} +1 -1
  162. package/dist/chunks/{inspector.BjLhY3bE.js → inspector.B9k4tJWe.js} +9 -27
  163. package/dist/chunks/{inspector.BjLhY3bE.js.map → inspector.B9k4tJWe.js.map} +1 -1
  164. package/dist/chunks/isSameWeek.Dj6luS8h.js +14 -0
  165. package/dist/chunks/{isSameWeek.CzBCmu7d.js.map → isSameWeek.Dj6luS8h.js.map} +1 -1
  166. package/dist/chunks/{it.BlUnV-yA.js → it.20Y7h-bF.js} +8 -8
  167. package/dist/chunks/{it.BlUnV-yA.js.map → it.20Y7h-bF.js.map} +1 -1
  168. package/dist/chunks/{ja.nUwDmVf2.js → ja.DXlq0H98.js} +27 -27
  169. package/dist/chunks/{ja.nUwDmVf2.js.map → ja.DXlq0H98.js.map} +1 -1
  170. package/dist/chunks/layout-row.B5VJGEQH.js +99 -0
  171. package/dist/chunks/{layout-row.Da8nkm9z.js.map → layout-row.B5VJGEQH.js.map} +1 -1
  172. package/dist/chunks/link.D6D6YGsN.js +113 -0
  173. package/dist/chunks/{link.DTCn2EtX.js.map → link.D6D6YGsN.js.map} +1 -1
  174. package/dist/chunks/list-item.DO5uULke.js +128 -0
  175. package/dist/chunks/list-item.DO5uULke.js.map +1 -0
  176. package/dist/chunks/{listbox-option-tag.CoBUYwFG.js → listbox-option-tag.Cvplth7d.js} +2 -2
  177. package/dist/chunks/{listbox-option-tag.CoBUYwFG.js.map → listbox-option-tag.Cvplth7d.js.map} +1 -1
  178. package/dist/chunks/{modal-fullscreen.9ZDR_S29.js → modal-fullscreen.CuKVyTWb.js} +100 -108
  179. package/dist/chunks/{modal-fullscreen.9ZDR_S29.js.map → modal-fullscreen.CuKVyTWb.js.map} +1 -1
  180. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.B0IdwV0R.js → modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js} +134 -143
  181. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.B0IdwV0R.js.map → modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js.map} +1 -1
  182. package/dist/chunks/on-click-outside.ZUMLlxE_.js +90 -0
  183. package/dist/chunks/{on-click-outside.BW4rkhzG.js.map → on-click-outside.ZUMLlxE_.js.map} +1 -1
  184. package/dist/chunks/pagination.dpVc6Yt0.js +401 -0
  185. package/dist/chunks/pagination.dpVc6Yt0.js.map +1 -0
  186. package/dist/chunks/popover.types.D8tHtFl3.js +6 -0
  187. package/dist/chunks/{popover.types.DhALnOLQ.js.map → popover.types.D8tHtFl3.js.map} +1 -1
  188. package/dist/chunks/{popper-container.DAK7c9uS.js → popper-container.DMN8n5iC.js} +79 -86
  189. package/dist/chunks/{popper-container.DAK7c9uS.js.map → popper-container.DMN8n5iC.js.map} +1 -1
  190. package/dist/chunks/{promo-banner.aNwH6uQx.js → promo-banner.BzveHNOI.js} +7 -13
  191. package/dist/chunks/{promo-banner.aNwH6uQx.js.map → promo-banner.BzveHNOI.js.map} +1 -1
  192. package/dist/chunks/{pt-BR.BCU2Hj36.js → pt-BR.DmhmCzxE.js} +14 -14
  193. package/dist/chunks/{pt-BR.BCU2Hj36.js.map → pt-BR.DmhmCzxE.js.map} +1 -1
  194. package/dist/chunks/{radio-group.DEYzF6o7.js → radio-group.Cuiq4mxy.js} +46 -46
  195. package/dist/chunks/{radio-group.DEYzF6o7.js.map → radio-group.Cuiq4mxy.js.map} +1 -1
  196. package/dist/chunks/{rich-text-editor.DH1d5Zcp.js → rich-text-editor.DLMiT4f5.js} +1018 -1024
  197. package/dist/chunks/{rich-text-editor.DH1d5Zcp.js.map → rich-text-editor.DLMiT4f5.js.map} +1 -1
  198. package/dist/chunks/{search-bar.Dtzx88Pv.js → search-bar.CsFyP0_I.js} +6 -15
  199. package/dist/chunks/{search-bar.Dtzx88Pv.js.map → search-bar.CsFyP0_I.js.map} +1 -1
  200. package/dist/chunks/{secondary-nav.Zs7dBoJv.js → secondary-nav.CLBdq98c.js} +6 -12
  201. package/dist/chunks/{secondary-nav.Zs7dBoJv.js.map → secondary-nav.CLBdq98c.js.map} +1 -1
  202. package/dist/chunks/{segmented-control.Aqquod8g.js → segmented-control.KeQ5kuR1.js} +47 -51
  203. package/dist/chunks/{segmented-control.Aqquod8g.js.map → segmented-control.KeQ5kuR1.js.map} +1 -1
  204. package/dist/chunks/selection-card-group.XM11Kk-4.js +412 -0
  205. package/dist/chunks/{selection-card-group.C7IK2Vl5.js.map → selection-card-group.XM11Kk-4.js.map} +1 -1
  206. package/dist/chunks/{sidepanel.DaXPcTHm.js → sidepanel.b2QZ1Jsx.js} +64 -71
  207. package/dist/chunks/{sidepanel.DaXPcTHm.js.map → sidepanel.b2QZ1Jsx.js.map} +1 -1
  208. package/dist/chunks/startOfWeek.Cvmo-f5J.js +9 -0
  209. package/dist/chunks/{startOfWeek.CXhhX-R7.js.map → startOfWeek.Cvmo-f5J.js.map} +1 -1
  210. package/dist/chunks/status.H00BAmRx.js +42 -0
  211. package/dist/chunks/status.H00BAmRx.js.map +1 -0
  212. package/dist/chunks/status.types.Dx8MDhEH.js +5 -0
  213. package/dist/chunks/status.types.Dx8MDhEH.js.map +1 -0
  214. package/dist/chunks/{step.BV7MsrRF.js → step.BlwoLfdw.js} +56 -68
  215. package/dist/chunks/{step.BV7MsrRF.js.map → step.BlwoLfdw.js.map} +1 -1
  216. package/dist/chunks/{structured-list-item.DAIaUMCY.js → structured-list-item.e-8kRleh.js} +8 -14
  217. package/dist/chunks/{structured-list-item.DAIaUMCY.js.map → structured-list-item.e-8kRleh.js.map} +1 -1
  218. package/dist/chunks/{summary-grid.types.BZcZS_dW.js → summary-grid.types.CcvOC03H.js} +172 -179
  219. package/dist/chunks/{summary-grid.types.BZcZS_dW.js.map → summary-grid.types.CcvOC03H.js.map} +1 -1
  220. package/dist/chunks/tab.mR5uUSdp.js +265 -0
  221. package/dist/chunks/{tab.DRrnMCxe.js.map → tab.mR5uUSdp.js.map} +1 -1
  222. package/dist/chunks/{tag.CqWg6C3H.js → tag.DujMVFh-.js} +3 -3
  223. package/dist/chunks/{tag.CqWg6C3H.js.map → tag.DujMVFh-.js.map} +1 -1
  224. package/dist/chunks/textarea.CHV6Z8nt.js +247 -0
  225. package/dist/chunks/{textarea.CvI2InIB.js.map → textarea.CHV6Z8nt.js.map} +1 -1
  226. package/dist/chunks/timeline-item.CaGcRZbt.js +419 -0
  227. package/dist/chunks/timeline-item.CaGcRZbt.js.map +1 -0
  228. package/dist/chunks/{toast.Bbtq3Icj.js → toast.C2oehk9P.js} +72 -78
  229. package/dist/chunks/{toast.Bbtq3Icj.js.map → toast.C2oehk9P.js.map} +1 -1
  230. package/dist/chunks/{toggle.BupEBkIG.js → toggle.BQoprdX-.js} +5 -5
  231. package/dist/chunks/{toggle.BupEBkIG.js.map → toggle.BQoprdX-.js.map} +1 -1
  232. package/dist/chunks/tooltip.CbADa_4p.js +199 -0
  233. package/dist/chunks/{tooltip.Lwtlhv3u.js.map → tooltip.CbADa_4p.js.map} +1 -1
  234. package/dist/chunks/truncate.DmCXQmeb.js +8 -0
  235. package/dist/chunks/{truncate.BfIl_-71.js.map → truncate.DmCXQmeb.js.map} +1 -1
  236. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BL2QTKmV.js → tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js} +100 -124
  237. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BL2QTKmV.js.map → tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js.map} +1 -1
  238. package/dist/chunks/{use-bento-toast-controller.BFctDoMg.js → use-bento-toast-controller.D_NSnBxi.js} +2 -2
  239. package/dist/chunks/{use-bento-toast-controller.BFctDoMg.js.map → use-bento-toast-controller.D_NSnBxi.js.map} +1 -1
  240. package/dist/chunks/use-cached-selected-values.ClEJRFAd.js +1631 -0
  241. package/dist/chunks/{use-cached-selected-values.C4_X3vVj.js.map → use-cached-selected-values.ClEJRFAd.js.map} +1 -1
  242. package/dist/chunks/use-country-items.D_3LBe2I.js +30 -0
  243. package/dist/chunks/{use-country-items.BTzByPdQ.js.map → use-country-items.D_3LBe2I.js.map} +1 -1
  244. package/dist/chunks/use-country-phon-code.DoqTGkNr.js +287 -0
  245. package/dist/chunks/use-country-phon-code.DoqTGkNr.js.map +1 -0
  246. package/dist/chunks/use-date-input-formatter.CDRzd-hW.js +1629 -0
  247. package/dist/chunks/{use-date-input-formatter.dtbK-CEy.js.map → use-date-input-formatter.CDRzd-hW.js.map} +1 -1
  248. package/dist/chunks/use-default-slot-validator.BzHcrgmy.js +12 -0
  249. package/dist/chunks/{use-default-slot-validator.O02rzsob.js.map → use-default-slot-validator.BzHcrgmy.js.map} +1 -1
  250. package/dist/chunks/use-expandable-content-height.B5jjRvCz.js +16 -0
  251. package/dist/chunks/{use-expandable-content-height.GkjjbmPy.js.map → use-expandable-content-height.B5jjRvCz.js.map} +1 -1
  252. package/dist/chunks/use-has-slot.CyMiImRQ.js +14 -0
  253. package/dist/chunks/{use-has-slot.B7eQSabc.js.map → use-has-slot.CyMiImRQ.js.map} +1 -1
  254. package/dist/chunks/utils.DWmc2mUI.js +19 -0
  255. package/dist/chunks/{utils.BzUwtTXc.js.map → utils.DWmc2mUI.js.map} +1 -1
  256. package/dist/chunks/{zh-CN.ChYkuQAR.js → zh-CN.Ce34mXsX.js} +28 -28
  257. package/dist/chunks/{zh-CN.ChYkuQAR.js.map → zh-CN.Ce34mXsX.js.map} +1 -1
  258. package/dist/click-outside.js +1 -1
  259. package/dist/code-snippet.js +1 -1
  260. package/dist/country.js +3 -3
  261. package/dist/currency.js +1 -1
  262. package/dist/dashboard-template.js +1 -1
  263. package/dist/dashed-underline.js +1 -1
  264. package/dist/data-grid-template.js +1 -1
  265. package/dist/data-grid.js +1 -1
  266. package/dist/date-picker.js +2 -2
  267. package/dist/date-range-picker.js +2 -2
  268. package/dist/date.js +1 -1
  269. package/dist/draggable-handle.js +4 -28
  270. package/dist/draggable-handle.js.map +1 -1
  271. package/dist/dropdown.js +4 -4
  272. package/dist/empty-state.js +1 -1
  273. package/dist/file-uploader.js +1 -1
  274. package/dist/filter-bar.js +1 -1
  275. package/dist/focus-trap.js +1 -1
  276. package/dist/form-layout.js +1 -1
  277. package/dist/header-with-views.js +1 -1
  278. package/dist/header.js +1 -1
  279. package/dist/index.js +241 -241
  280. package/dist/index.js.map +1 -1
  281. package/dist/info-icon.js +1 -1
  282. package/dist/input-field-password.js +1 -1
  283. package/dist/input-field-phone-number.js +1 -1
  284. package/dist/input-field.js +1 -1
  285. package/dist/inspector.js +1 -1
  286. package/dist/internal.js +13 -13
  287. package/dist/layout.js +1 -1
  288. package/dist/link.js +1 -1
  289. package/dist/list.js +6 -0
  290. package/dist/list.js.map +1 -0
  291. package/dist/menu.js +1 -1
  292. package/dist/modal-fullscreen.js +1 -1
  293. package/dist/modal.js +2 -2
  294. package/dist/pagination.js +1 -1
  295. package/dist/popover.js +2 -2
  296. package/dist/popper-container.js +1 -1
  297. package/dist/promo-banner.js +1 -1
  298. package/dist/radio-group.js +1 -1
  299. package/dist/rich-text-editor.js +1 -1
  300. package/dist/search-bar.js +2 -2
  301. package/dist/secondary-nav.js +1 -1
  302. package/dist/segmented-control.js +1 -1
  303. package/dist/selection-card.js +1 -1
  304. package/dist/sidepanel.js +1 -1
  305. package/dist/status.js +4 -3
  306. package/dist/status.js.map +1 -1
  307. package/dist/stepper.js +1 -1
  308. package/dist/structured-list.js +1 -1
  309. package/dist/summary-grid.js +1 -1
  310. package/dist/tabs.js +1 -1
  311. package/dist/tag.js +1 -1
  312. package/dist/textarea.js +1 -1
  313. package/dist/timeline.js +1 -1
  314. package/dist/toast.js +1 -1
  315. package/dist/toggle.js +1 -1
  316. package/dist/tutorial.js +1 -1
  317. package/dist/use-form-v4.js +331 -341
  318. package/dist/use-form-v4.js.map +1 -1
  319. package/dist/web-types.json +1 -1
  320. package/package.json +7 -7
  321. package/dist/chunks/anchor-scroller.BctgW0se.js +0 -214
  322. package/dist/chunks/base-modal.gZAtk-xP.js +0 -443
  323. package/dist/chunks/button-actions-with-menu.Tba1ME79.js +0 -93
  324. package/dist/chunks/calendar.vM3abC8y.js +0 -1234
  325. package/dist/chunks/click-outside.CDz_x8mN.js +0 -23
  326. package/dist/chunks/constructNow.CIc7d13I.js +0 -8
  327. package/dist/chunks/country.types.BBQbWkTY.js +0 -773
  328. package/dist/chunks/dashboard-section.CgoLquLP.js +0 -165
  329. package/dist/chunks/dashed-underline.wbRHATeE.js +0 -114
  330. package/dist/chunks/data-grid-template.D40V1cmi.js +0 -144
  331. package/dist/chunks/data-grid.C2nCCbeC.js +0 -4368
  332. package/dist/chunks/date-picker.D5B_SECc.js +0 -251
  333. package/dist/chunks/date-range-picker.B0q7Z4df.js +0 -1084
  334. package/dist/chunks/differenceInMonths.CIYECBxK.js +0 -43
  335. package/dist/chunks/dropdown.CxjzXI-k.js +0 -837
  336. package/dist/chunks/filter-bar.DJ7O4zLX.js +0 -4036
  337. package/dist/chunks/filter-bar.DJ7O4zLX.js.map +0 -1
  338. package/dist/chunks/fixed-scroller.i1tmEmst.js +0 -161
  339. package/dist/chunks/get-slot-text.CQRAP2_q.js +0 -12
  340. package/dist/chunks/input-field-password.C_h61CMn.js +0 -402
  341. package/dist/chunks/isSameWeek.CzBCmu7d.js +0 -14
  342. package/dist/chunks/layout-row.Da8nkm9z.js +0 -100
  343. package/dist/chunks/link.DTCn2EtX.js +0 -116
  344. package/dist/chunks/on-click-outside.BW4rkhzG.js +0 -91
  345. package/dist/chunks/pagination.B32UgSoH.js +0 -488
  346. package/dist/chunks/pagination.B32UgSoH.js.map +0 -1
  347. package/dist/chunks/popover.types.DhALnOLQ.js +0 -6
  348. package/dist/chunks/selection-card-group.C7IK2Vl5.js +0 -417
  349. package/dist/chunks/startOfWeek.CXhhX-R7.js +0 -10
  350. package/dist/chunks/status.types.D3v3k-Q8.js +0 -44
  351. package/dist/chunks/status.types.D3v3k-Q8.js.map +0 -1
  352. package/dist/chunks/tab.DRrnMCxe.js +0 -273
  353. package/dist/chunks/textarea.CvI2InIB.js +0 -255
  354. package/dist/chunks/timeline-item.BooD99hL.js +0 -427
  355. package/dist/chunks/timeline-item.BooD99hL.js.map +0 -1
  356. package/dist/chunks/tooltip.Lwtlhv3u.js +0 -202
  357. package/dist/chunks/truncate.BfIl_-71.js +0 -8
  358. package/dist/chunks/use-cached-selected-values.C4_X3vVj.js +0 -1711
  359. package/dist/chunks/use-country-items.BTzByPdQ.js +0 -30
  360. package/dist/chunks/use-country-phon-code.Bui3zD6W.js +0 -5621
  361. package/dist/chunks/use-country-phon-code.Bui3zD6W.js.map +0 -1
  362. package/dist/chunks/use-date-input-formatter.dtbK-CEy.js +0 -1732
  363. package/dist/chunks/use-default-slot-validator.O02rzsob.js +0 -16
  364. package/dist/chunks/use-expandable-content-height.GkjjbmPy.js +0 -17
  365. package/dist/chunks/use-has-slot.B7eQSabc.js +0 -15
  366. package/dist/chunks/utils.BzUwtTXc.js +0 -21
@@ -1,273 +0,0 @@
1
- import { defineComponent as Y, ref as T, provide as O, watch as K, nextTick as D, computed as I, unref as f, onUnmounted as P, resolveComponent as L, openBlock as y, createElementBlock as g, createElementVNode as k, normalizeStyle as ee, normalizeClass as N, createVNode as F, withCtx as A, Fragment as te, renderList as ae, withDirectives as R, withKeys as ne, createTextVNode as V, toDisplayString as W, createBlock as se, createCommentVNode as $, vShow as S, renderSlot as j, toRefs as oe, inject as X } from "vue";
2
- import { B as ie } from "./typography.B3J6_tYk.js";
3
- import { g as re } from "./generate-uid.NJ8tVoha.js";
4
- import { T as z, a as G, E as le } from "./tabs.keys.B4qGhjp2.js";
5
- import { F as de } from "./fixed-scroller.i1tmEmst.js";
6
- import { _ as J } from "./_plugin-vue_export-helper.CHgC5LLL.js";
7
- import "../assets/tab.css";
8
- const U = (e, s) => {
9
- const a = e === 0 ? s.length - 1 : e - 1, r = s[a];
10
- return r.disabled || r.hidden ? U(a, s) : a;
11
- }, q = (e, s) => {
12
- const a = e === s.length - 1 ? 0 : e + 1, r = s[a];
13
- return r.disabled || r.hidden ? q(a, s) : a;
14
- };
15
- var x = /* @__PURE__ */ ((e) => (e.ACTIVE_TAB_INDEX = "update:active-tab-index", e))(x || {});
16
- const ce = Y({
17
- components: {
18
- BentoTypography: ie,
19
- FixedScroller: de
20
- },
21
- props: {
22
- /**
23
- * Sets the active tab by its index (0 being the first tab item).
24
- */
25
- activeTabIndex: { type: Number, default: 0 },
26
- /*
27
- * Renders the tab with a sticky positioning.
28
- */
29
- sticky: { type: Boolean, default: !1 },
30
- /**
31
- * Additional configurable options for tabs rendered with a sticky positioning.
32
- * It must be an object of type {@see BentoStickyTabsOption}
33
- * @property {Ref<number>} stickyOptions.top - Top position the tabs should take up when rendered as sticky.
34
- */
35
- stickyOptions: { type: Object, default: null }
36
- },
37
- emits: [x.ACTIVE_TAB_INDEX],
38
- setup(e, { emit: s }) {
39
- const a = T([]), r = T(null), m = T(), c = T(""), l = T(!1);
40
- let b;
41
- O(z, c);
42
- const u = (t) => () => {
43
- var o;
44
- a.value = (o = a.value) == null ? void 0 : o.filter(({ id: i }) => i !== t);
45
- };
46
- O(G, ({
47
- title: t,
48
- disabled: o,
49
- withNotificationIndicator: i,
50
- counter: v,
51
- hidden: B,
52
- setElementRef: Z
53
- }) => {
54
- const C = re("b-tab");
55
- return a.value.push({
56
- counter: v,
57
- disabled: o,
58
- hidden: B,
59
- id: C,
60
- title: t,
61
- withNotificationIndicator: i,
62
- setElementRef: Z
63
- }), { id: C, unregisterTab: u(C) };
64
- });
65
- const p = (t) => {
66
- if (t.code === "ArrowLeft" || t.code === "ArrowRight") {
67
- const o = a.value.find((v) => document.activeElement.id === v.id);
68
- let i = a.value.indexOf(o);
69
- t.code === "ArrowLeft" ? i = U(i, a.value) : t.code === "ArrowRight" && (i = q(i, a.value)), r.value.children[i].focus();
70
- }
71
- };
72
- K(
73
- [() => e.activeTabIndex, a],
74
- ([t, o]) => {
75
- D(() => {
76
- var v;
77
- const i = o[t];
78
- c.value = i && !i.disabled ? i.id : (v = a.value.find(({ disabled: B }) => !B)) == null ? void 0 : v.id;
79
- });
80
- },
81
- { immediate: !0 }
82
- );
83
- const n = (t) => {
84
- c.value = t;
85
- const o = a.value.findIndex(({ id: i }) => i === c.value);
86
- s(x.ACTIVE_TAB_INDEX, o);
87
- }, h = (t) => t ? "disabled" : !1, d = I(() => {
88
- var t;
89
- return (t = e.stickyOptions) != null && t.top ? f(e.stickyOptions.top) : 0;
90
- }), E = I(() => e.sticky && d.value > 0 ? !0 : l.value), w = () => {
91
- b && (b.disconnect(), b = null), l.value = !1;
92
- }, H = (t) => {
93
- e.sticky && d.value === 0 && (b = new IntersectionObserver(
94
- ([o]) => {
95
- l.value = o.intersectionRatio < 1;
96
- },
97
- { threshold: [1] }
98
- ), b.observe(t));
99
- };
100
- K(
101
- [() => e.sticky, m, d],
102
- ([t, o]) => {
103
- w(), t && o && D(() => H(o));
104
- },
105
- { immediate: !0 }
106
- ), P(() => {
107
- w();
108
- });
109
- const M = I(() => ({
110
- "b-tabs__tab-list-wrapper--sticky": e.sticky,
111
- "b-tabs__tab-list-wrapper--pinned": E.value
112
- })), Q = I(
113
- () => {
114
- var t;
115
- return (
116
- // This helps us detect when the tabs are pinned without calculations on the tabs positions because it makes the tabs intersect by 1 pixel with the element on top of it, which is getting aught by the intersection observer.
117
- // Followed this example: https://css-tricks.com/how-to-detect-when-a-sticky-element-gets-pinned/
118
- e.sticky ? {
119
- top: `${(((t = e.stickyOptions) == null ? void 0 : t.top) ?? 0) - 1}px`
120
- } : {}
121
- );
122
- }
123
- );
124
- return {
125
- tabs: a,
126
- tablist: r,
127
- tablistwrapper: m,
128
- activeTabId: c,
129
- tablistWrapperConditionalClasses: M,
130
- tablistWrapperStyles: Q,
131
- onKeydownTabsNavigation: p,
132
- handleTabChange: n,
133
- isDisabled: h
134
- };
135
- }
136
- }), be = { class: "b-tabs" }, ue = ["id", "aria-controls", "aria-hidden", "aria-selected", "tabindex", "disabled", "onClick", "onKeydown"], pe = { class: "b-tabs__tab-text" }, fe = {
137
- key: 1,
138
- class: "b-tabs__tab-notification-dot",
139
- "aria-hidden": "true"
140
- }, _e = {
141
- class: "b-tabs__tab-underline",
142
- "aria-hidden": "true"
143
- };
144
- function ve(e, s, a, r, m, c) {
145
- const l = L("bento-typography"), b = L("fixed-scroller");
146
- return y(), g("div", be, [
147
- k("div", {
148
- ref: "tablistwrapper",
149
- class: N(["b-tabs__tab-list-wrapper", e.tablistWrapperConditionalClasses]),
150
- style: ee(e.tablistWrapperStyles)
151
- }, [
152
- F(b, {
153
- condensed: "",
154
- "extra-padding-top": 2
155
- }, {
156
- default: A(() => [
157
- k("div", {
158
- ref: "tablist",
159
- class: "b-tabs__tab-list",
160
- role: "tablist",
161
- onKeydown: s[0] || (s[0] = (...u) => e.onKeydownTabsNavigation && e.onKeydownTabsNavigation(...u))
162
- }, [
163
- (y(!0), g(te, null, ae(e.tabs, ({
164
- counter: u,
165
- disabled: _,
166
- hidden: p,
167
- id: n,
168
- title: h,
169
- withNotificationIndicator: d,
170
- setElementRef: E
171
- }) => R((y(), g("button", {
172
- id: n,
173
- ref_for: !0,
174
- ref: E,
175
- key: n,
176
- role: "tab",
177
- type: "button",
178
- class: N(["b-tabs__tab", {
179
- "b-tabs__tab--active": e.activeTabId === n,
180
- "b-tabs__tab--disabled": _
181
- }]),
182
- "aria-controls": `${n}-tabpanel`,
183
- "aria-hidden": p ? "true" : "false",
184
- "aria-selected": e.activeTabId === n ? "true" : "false",
185
- tabindex: e.activeTabId === n && !_.value ? null : -1,
186
- disabled: e.isDisabled(_),
187
- onClick: (w) => e.handleTabChange(n),
188
- onKeydown: ne((w) => e.handleTabChange(n), ["enter", "space"])
189
- }, [
190
- k("span", pe, [
191
- F(l, {
192
- class: "b-tabs__tab-title",
193
- el: "span",
194
- variant: "body",
195
- stronger: ""
196
- }, {
197
- default: A(() => [
198
- V(W(h), 1)
199
- ]),
200
- _: 2
201
- }, 1024),
202
- u != null ? (y(), se(l, {
203
- key: 0,
204
- class: N(["b-tabs__tab-counter", {
205
- "b-tabs__tab-counter--active": e.activeTabId === n
206
- }]),
207
- el: "span",
208
- variant: "body",
209
- stronger: ""
210
- }, {
211
- default: A(() => [
212
- V(W(u), 1)
213
- ]),
214
- _: 2
215
- }, 1032, ["class"])) : $("", !0),
216
- d ? (y(), g("span", fe)) : $("", !0)
217
- ]),
218
- R(k("span", _e, null, 512), [
219
- [S, e.activeTabId === n]
220
- ])
221
- ], 42, ue)), [
222
- [S, !p]
223
- ])), 128))
224
- ], 544)
225
- ]),
226
- _: 1
227
- })
228
- ], 6),
229
- j(e.$slots, "default", {}, void 0, !0)
230
- ]);
231
- }
232
- const Be = /* @__PURE__ */ J(ce, [["render", ve], ["__scopeId", "data-v-c03b3f5b"]]), Te = ["id", "aria-labelledby"], ye = {
233
- name: "bento-tab"
234
- }, me = /* @__PURE__ */ Y({
235
- ...ye,
236
- props: {
237
- counter: { default: null },
238
- disabled: { type: Boolean, default: !1 },
239
- hidden: { type: Boolean, default: !1 },
240
- title: {},
241
- withNotificationIndicator: { type: Boolean, default: !1 },
242
- setElementRef: { type: Function, default: void 0 }
243
- },
244
- setup(e) {
245
- const s = e, { counter: a, disabled: r, hidden: m, withNotificationIndicator: c } = oe(s), l = T();
246
- O(le, (d) => {
247
- l.value = d;
248
- });
249
- const u = I(() => l.value ?? s.title), _ = X(G), p = X(z), { id: n, unregisterTab: h } = _({
250
- counter: a,
251
- disabled: r,
252
- hidden: m,
253
- title: u,
254
- withNotificationIndicator: c,
255
- setElementRef: s.setElementRef
256
- });
257
- return P(() => h()), (d, E) => R((y(), g("div", {
258
- id: `${f(n)}-tabpanel`,
259
- class: "b-tab",
260
- role: "tabpanel",
261
- "aria-labelledby": f(n)
262
- }, [
263
- f(p) === f(n) ? j(d.$slots, "default", { key: 0 }, void 0, !0) : $("", !0)
264
- ], 8, Te)), [
265
- [S, f(p) === f(n)]
266
- ]);
267
- }
268
- }), Ce = /* @__PURE__ */ J(me, [["__scopeId", "data-v-4d86994d"]]);
269
- export {
270
- Ce as B,
271
- Be as a
272
- };
273
- //# sourceMappingURL=tab.DRrnMCxe.js.map
@@ -1,255 +0,0 @@
1
- import { defineComponent as Le, useAttrs as Ee, toRefs as W, ref as u, toRef as xe, computed as s, watch as I, nextTick as Ce, onMounted as Re, onUnmounted as Ae, openBlock as d, createElementBlock as $, normalizeClass as E, createElementVNode as M, normalizeStyle as z, unref as l, createBlock as h, createCommentVNode as c, withCtx as x, createTextVNode as Y, toDisplayString as G, createVNode as S, withKeys as w } from "vue";
2
- import { B as Be } from "./button.C6t9_lzm.js";
3
- import { d as De, B as F } from "./typography.B3J6_tYk.js";
4
- import { C as ke } from "./cross-circle-fill-small.H1wH-vcZ.js";
5
- import { g as Ue } from "./generate-uid.NJ8tVoha.js";
6
- import { o as X } from "./resize.Bqks3WUm.js";
7
- import { u as Ie } from "./aria-label.CaUURpnB.js";
8
- import { u as Me } from "./index.B875RXHM.js";
9
- import { u as Se } from "./form-field.D_2g7vaP.js";
10
- import { u as we } from "./use-form-layout-loading.CWbjZiwP.js";
11
- import { B as Fe } from "./es6.C1DXQV6f.js";
12
- import { F as Oe, E as j } from "./error-message.oGiefI2-.js";
13
- import { _ as Pe } from "./_plugin-vue_export-helper.CHgC5LLL.js";
14
- import "../assets/textarea.css";
15
- var p = /* @__PURE__ */ ((t) => (t.CLEARABLE = "clearable", t.DISABLED = "disabled", t.ERROR = "error", t.READONLY = "readonly", t))(p || {}), n = /* @__PURE__ */ ((t) => (t.BLUR = "blur", t.CHANGE = "change", t.CLEAR = "clear", t.ESCAPE_PRESSED = "escape-pressed", t.FOCUS = "focus", t.INPUT = "input", t.UPDATE_MODEL_VALUE = "update:model-value", t.KEYDOWN = "keydown", t.KEYUP = "keyup", t))(n || {});
16
- const J = {
17
- "en-US": {
18
- clearText: "Clear text",
19
- textarea: "textarea",
20
- yourTextCanBenAtMost: "Your text can be at most {characterLimit} characters"
21
- }
22
- }, He = ["id", "value", "aria-label", "aria-invalid", "readonly", "required", "aria-required", "disabled", "placeholder"], Ke = {
23
- key: 0,
24
- class: "b-textarea__clear-button"
25
- }, Ne = parseFloat(Fe), Te = {
26
- i18n: { messages: J },
27
- name: "bento-textarea",
28
- model: { prop: "modelValue" }
29
- }, qe = /* @__PURE__ */ Le({
30
- ...Te,
31
- props: {
32
- ariaLabel: { default: void 0 },
33
- characterLimit: { default: void 0 },
34
- clearable: { type: Boolean, default: !1 },
35
- height: { default: null },
36
- resizable: { default: "both" },
37
- value: { default: "" },
38
- modelValue: { default: "" },
39
- description: { default: "" },
40
- disabled: { type: Boolean, default: !1 },
41
- errorMessage: { default: "" },
42
- label: { default: "" },
43
- optional: { type: Boolean, default: !1 },
44
- placeholder: { default: "" },
45
- readonly: { type: Boolean, default: !1 },
46
- required: { type: Boolean, default: !1 },
47
- tooltipText: { default: null }
48
- },
49
- setup(t, { expose: Q, emit: Z }) {
50
- const ee = Ee(), a = t, i = Z, { height: C } = W(a), O = Ue("textarea"), o = u(null), m = u(null), r = u(a.modelValue || a.value), f = 44, v = u(a.height || `${f}px`), P = u(0), R = u("100%"), A = u(!1);
51
- let y = null, g = null;
52
- const { t: H, n: K } = Me({ messages: J }), { isReadOnly: _ } = we(xe(a, "readonly")), { emitValue: N } = Se(i), ae = s(() => {
53
- var e;
54
- return `${K(((e = r == null ? void 0 : r.value) == null ? void 0 : e.length) ?? 0)} / ${K(a.characterLimit)}`;
55
- }), L = s(() => !C.value), B = s(
56
- () => a.characterLimit && r.value.length > a.characterLimit
57
- ), D = () => {
58
- if (o.value) {
59
- const e = Math.max(
60
- o.value.scrollHeight <= f ? f : o.value.scrollHeight + Ne * 2,
61
- P.value,
62
- f
63
- );
64
- v.value = `${e}px`;
65
- }
66
- };
67
- I(C, () => {
68
- L.value ? D() : v.value = C.value;
69
- }), I(
70
- () => [a.value, a.modelValue],
71
- () => {
72
- r.value = a.modelValue || a.value;
73
- },
74
- { immediate: !0 }
75
- ), I(
76
- () => r.value,
77
- async () => {
78
- if (L.value) {
79
- if (v.value = `${f}px`, !r.value)
80
- return;
81
- await Ce(), D();
82
- }
83
- },
84
- { immediate: !0 }
85
- );
86
- const T = s(() => !!a.errorMessage || B.value), te = s(() => ({
87
- [`b-textarea--${p.DISABLED}`]: a.disabled
88
- })), le = s(() => ({
89
- [`b-textarea__input--${p.CLEARABLE}`]: a.clearable,
90
- [`b-textarea__input--${p.READONLY}`]: _.value,
91
- [`b-textarea__input--${p.ERROR}`]: T.value,
92
- "b-textarea__input--dynamic-height": L.value
93
- })), oe = s(() => ({
94
- "b-textarea__label-box--no-label": !a.label
95
- })), re = s(() => ({
96
- [`b-textarea__label-item--${p.ERROR}`]: B.value
97
- })), se = s(() => H("yourTextCanBenAtMost", { characterLimit: a.characterLimit })), ie = u(ee["aria-label"]), { ariaLabel: ue, label: k } = W(a), ne = Ie({
98
- ariaLabel: ie.value,
99
- // TODO: take this line away when the aria-label props is removed
100
- label: ue,
101
- defaultFallback: k
102
- }), de = s(
103
- () => a.clearable && r.value && !a.disabled && !_.value
104
- ), U = () => {
105
- r.value = "", i(n.CLEAR), N("");
106
- }, ce = (e) => {
107
- e.stopImmediatePropagation(), !a.disabled && !_.value && (r.value = e.target.value, N(r.value));
108
- }, pe = () => {
109
- o.value.scrollTop = 0, i(n.BLUR);
110
- }, me = () => {
111
- o.value.focus(), i(n.FOCUS);
112
- }, fe = () => {
113
- i(n.CHANGE);
114
- }, ve = () => {
115
- i(n.ESCAPE_PRESSED);
116
- }, be = (e) => {
117
- e.stopPropagation(), i(n.KEYDOWN, e);
118
- }, he = (e) => {
119
- e.stopPropagation(), i(n.KEYUP, e);
120
- }, ye = () => {
121
- A.value = !0;
122
- }, ge = () => {
123
- A.value = !1;
124
- }, q = (e = !1) => {
125
- var V;
126
- const b = o.value.style.width;
127
- if (o.value.style.height && (A.value && (P.value = parseInt(o.value.style.height, 10)), v.value = o.value.style.height), e && !b)
128
- return;
129
- const _e = (V = m == null ? void 0 : m.value) == null ? void 0 : V.offsetWidth;
130
- !b || parseInt(b, 10) > _e ? R.value = "100%" : R.value = b;
131
- };
132
- return Q({
133
- focus: () => {
134
- o.value.focus();
135
- }
136
- }), Re(() => {
137
- y = X(o.value, () => {
138
- q(!0);
139
- }), g = X(m.value, () => {
140
- q();
141
- }), L.value && D(), a.value && De(
142
- 'BentoTextarea "value" property',
143
- `The use of "value" prop in "BentoTextarea" is no longer supported.
144
- Use the "v-model" or "model-value" property instead.`,
145
- "2.0.0"
146
- );
147
- }), Ae(() => {
148
- y == null || y.disconnect(), g == null || g.disconnect();
149
- }), (e, b) => (d(), $("div", {
150
- ref_key: "textareaComponent",
151
- ref: m,
152
- class: E(["b-textarea", te.value])
153
- }, [
154
- M("div", {
155
- style: z({ width: R.value })
156
- }, [
157
- M("div", {
158
- class: E(["b-textarea__label-box", oe.value])
159
- }, [
160
- l(k) ? (d(), h(l(Oe), {
161
- key: 0,
162
- for: l(O),
163
- label: l(k),
164
- "tooltip-text": e.tooltipText,
165
- optional: e.optional,
166
- required: e.required
167
- }, null, 8, ["for", "label", "tooltip-text", "optional", "required"])) : c("", !0),
168
- e.characterLimit ? (d(), h(l(F), {
169
- key: 1,
170
- el: "span",
171
- class: E(["b-textarea__label-item", re.value])
172
- }, {
173
- default: x(() => [
174
- Y(G(ae.value), 1)
175
- ]),
176
- _: 1
177
- }, 8, ["class"])) : c("", !0)
178
- ], 2),
179
- S(l(F), {
180
- el: "div",
181
- class: "b-textarea__input-box",
182
- "aria-disabled": e.disabled
183
- }, {
184
- default: x(() => [
185
- M("textarea", {
186
- id: l(O),
187
- ref_key: "textareaElement",
188
- ref: o,
189
- value: r.value,
190
- class: E(["b-textarea__input", le.value]),
191
- "aria-label": l(ne),
192
- "aria-invalid": T.value,
193
- readonly: l(_),
194
- required: e.required,
195
- "aria-required": e.required,
196
- disabled: e.disabled,
197
- placeholder: e.placeholder,
198
- style: z({ resize: e.resizable, height: v.value }),
199
- onBlur: pe,
200
- onChange: fe,
201
- onFocus: me,
202
- onInput: ce,
203
- onKeydown: [
204
- w(ve, ["esc"]),
205
- be
206
- ],
207
- onKeyup: he,
208
- onMousedown: ye,
209
- onMouseup: ge
210
- }, " ", 46, He),
211
- de.value ? (d(), $("div", Ke, [
212
- S(l(Be), {
213
- variant: "tertiary",
214
- disabled: e.disabled,
215
- onClick: U,
216
- onKeypress: w(U, ["enter"]),
217
- onKeyup: w(U, ["space"])
218
- }, {
219
- iconLeft: x(() => [
220
- S(l(ke), {
221
- "svg-title": l(H)("clearText")
222
- }, null, 8, ["svg-title"])
223
- ]),
224
- _: 1
225
- }, 8, ["disabled"])
226
- ])) : c("", !0)
227
- ]),
228
- _: 1
229
- }, 8, ["aria-disabled"]),
230
- B.value ? (d(), h(l(j), {
231
- key: 0,
232
- "error-message": se.value
233
- }, null, 8, ["error-message"])) : c("", !0),
234
- e.errorMessage ? (d(), h(l(j), {
235
- key: 1,
236
- "error-message": e.errorMessage
237
- }, null, 8, ["error-message"])) : c("", !0),
238
- e.description ? (d(), h(l(F), {
239
- key: 2,
240
- class: "b-textarea__description",
241
- el: "span"
242
- }, {
243
- default: x(() => [
244
- Y(G(e.description), 1)
245
- ]),
246
- _: 1
247
- })) : c("", !0)
248
- ], 4)
249
- ], 2));
250
- }
251
- }), la = /* @__PURE__ */ Pe(qe, [["__scopeId", "data-v-36a2792c"]]);
252
- export {
253
- la as B
254
- };
255
- //# sourceMappingURL=textarea.CvI2InIB.js.map