@adyen/bento-vue3 1.34.0 → 1.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (282) hide show
  1. package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +1 -1
  2. package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +1 -1
  3. package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +1 -1
  4. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-config-settings/data-grid-config-settings.vue.d.ts +1 -1
  5. package/dist/@types/packages/vue2/src/components/dropdown/composables/use-display-value.d.ts +1 -1
  6. package/dist/@types/packages/vue2/src/components/dropdown/composables/use-display-value.types.d.ts +1 -0
  7. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-avatar-filter/select-avatar-filter.vue.d.ts +7 -7
  8. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +1 -1
  9. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-currency-filter/select-currency-filter.vue.d.ts +7 -7
  10. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-payment-method-filter/select-payment-method-filter.vue.d.ts +7 -7
  11. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +7 -7
  12. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/components/listbox-multi-select-category/listbox-multi-select-category.vue.d.ts +1 -1
  13. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/listbox-multi-select-options.vue.d.ts +2 -2
  14. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +3 -3
  15. package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +3 -3
  16. package/dist/@types/packages/vue2/src/utils/ts/get-date-locale/get-date-locale.d.ts +11 -0
  17. package/dist/accordion.js +1 -1
  18. package/dist/action-bar.js +1 -1
  19. package/dist/alert.js +1 -1
  20. package/dist/assets/accordion-item.css +1 -1
  21. package/dist/assets/action-bar.css +1 -1
  22. package/dist/assets/alert.css +1 -1
  23. package/dist/assets/avatar.css +1 -1
  24. package/dist/assets/base-modal.css +1 -1
  25. package/dist/assets/calendar.css +1 -1
  26. package/dist/assets/card.css +1 -1
  27. package/dist/assets/checkbox-input.css +1 -1
  28. package/dist/assets/checkbox.css +1 -1
  29. package/dist/assets/code-snippet.css +1 -1
  30. package/dist/assets/copy.css +1 -1
  31. package/dist/assets/currency.css +1 -0
  32. package/dist/assets/data-grid.css +1 -1
  33. package/dist/assets/date-range-picker.css +1 -1
  34. package/dist/assets/dialog-page.css +1 -1
  35. package/dist/assets/dropdown.css +1 -1
  36. package/dist/assets/error-message.css +1 -1
  37. package/dist/assets/filter-bar.css +1 -1
  38. package/dist/assets/header.css +1 -1
  39. package/dist/assets/inspector.css +1 -1
  40. package/dist/assets/loading-button.css +1 -1
  41. package/dist/assets/menu.css +1 -1
  42. package/dist/assets/modal-fullscreen.css +1 -1
  43. package/dist/assets/pagination.css +1 -1
  44. package/dist/assets/popover.css +1 -1
  45. package/dist/assets/sidepanel.css +1 -1
  46. package/dist/assets/step.css +1 -1
  47. package/dist/assets/structured-list-item.css +1 -1
  48. package/dist/assets/timeline-item.css +1 -1
  49. package/dist/assets/tutorial.css +1 -1
  50. package/dist/assets/use-cached-selected-values.css +1 -1
  51. package/dist/avatar.js +1 -1
  52. package/dist/button.js +2 -2
  53. package/dist/card.js +1 -1
  54. package/dist/checkbox.js +3 -3
  55. package/dist/chunks/accordion-item.4Cnn47v_.js +142 -0
  56. package/dist/chunks/accordion-item.4Cnn47v_.js.map +1 -0
  57. package/dist/chunks/{action-bar.DGQYYi8b.js → action-bar.BYMas_1s.js} +58 -44
  58. package/dist/chunks/{action-bar.DGQYYi8b.js.map → action-bar.BYMas_1s.js.map} +1 -1
  59. package/dist/chunks/{alert.Bz4tNKDH.js → alert.B_GZON9f.js} +30 -23
  60. package/dist/chunks/alert.B_GZON9f.js.map +1 -0
  61. package/dist/chunks/{avatar.mNlMngHQ.js → avatar.8erKxh8t.js} +13 -13
  62. package/dist/chunks/avatar.8erKxh8t.js.map +1 -0
  63. package/dist/chunks/{base-modal.Bl7DBkt0.js → base-modal.BbiSFAn1.js} +37 -31
  64. package/dist/chunks/{base-modal.Bl7DBkt0.js.map → base-modal.BbiSFAn1.js.map} +1 -1
  65. package/dist/chunks/{button-actions-with-menu.BLmcwr2f.js → button-actions-with-menu.0ypQxYbM.js} +4 -4
  66. package/dist/chunks/{button-actions-with-menu.BLmcwr2f.js.map → button-actions-with-menu.0ypQxYbM.js.map} +1 -1
  67. package/dist/chunks/{button-actions.hdK5IgrZ.js → button-actions.DcvU9vMt.js} +2 -2
  68. package/dist/chunks/{button-actions.hdK5IgrZ.js.map → button-actions.DcvU9vMt.js.map} +1 -1
  69. package/dist/chunks/{calendar.D--sOCBT.js → calendar.BPatBsD5.js} +148 -148
  70. package/dist/chunks/calendar.BPatBsD5.js.map +1 -0
  71. package/dist/chunks/{card.BvSoujBc.js → card.B7AyQI7f.js} +46 -38
  72. package/dist/chunks/card.B7AyQI7f.js.map +1 -0
  73. package/dist/chunks/{checkbox-group.CuLP3hPd.js → checkbox-group.BJM2i93S.js} +4 -4
  74. package/dist/chunks/{checkbox-group.CuLP3hPd.js.map → checkbox-group.BJM2i93S.js.map} +1 -1
  75. package/dist/chunks/{checkbox-input.JdcvpfTa.js → checkbox-input.YgPBRaZP.js} +12 -11
  76. package/dist/chunks/checkbox-input.YgPBRaZP.js.map +1 -0
  77. package/dist/chunks/{checkbox.DMMXn-h8.js → checkbox.BnYx06nC.js} +50 -40
  78. package/dist/chunks/{checkbox.DMMXn-h8.js.map → checkbox.BnYx06nC.js.map} +1 -1
  79. package/dist/chunks/{checkmark-circle-fill.ChV7Jy6r.js → checkmark-circle-fill.Bgdq29pu.js} +4 -4
  80. package/dist/chunks/checkmark-circle-fill.Bgdq29pu.js.map +1 -0
  81. package/dist/chunks/{checkmark-small.DEc2T64_.js → checkmark-small.4DMun1A_.js} +4 -4
  82. package/dist/chunks/checkmark-small.4DMun1A_.js.map +1 -0
  83. package/dist/chunks/{chevron-left.NvV5m76j.js → chevron-left.ChbQxOxi.js} +6 -6
  84. package/dist/chunks/chevron-left.ChbQxOxi.js.map +1 -0
  85. package/dist/chunks/{chevron-up.DQZG_BP3.js → chevron-up.zKonWHVc.js} +6 -6
  86. package/dist/chunks/chevron-up.zKonWHVc.js.map +1 -0
  87. package/dist/chunks/{code-snippet.BWM5w4CP.js → code-snippet.1duYqiRx.js} +98 -89
  88. package/dist/chunks/code-snippet.1duYqiRx.js.map +1 -0
  89. package/dist/chunks/{controls-group.BnZVHgQK.js → controls-group.DmroeX6Q.js} +2 -2
  90. package/dist/chunks/{controls-group.BnZVHgQK.js.map → controls-group.DmroeX6Q.js.map} +1 -1
  91. package/dist/chunks/{copy.h-wVGvID.js → copy.5y12_05v.js} +29 -20
  92. package/dist/chunks/copy.5y12_05v.js.map +1 -0
  93. package/dist/chunks/{cross-circle-fill-small.BXO78Wde.js → cross-circle-fill-small.2_Xjp4id.js} +4 -4
  94. package/dist/chunks/cross-circle-fill-small.2_Xjp4id.js.map +1 -0
  95. package/dist/chunks/{cross-circle-fill.DN5b3_eL.js → cross-circle-fill.CEUPgI5F.js} +4 -4
  96. package/dist/chunks/cross-circle-fill.CEUPgI5F.js.map +1 -0
  97. package/dist/chunks/{cross-small.CXWTuKA_.js → cross-small.DvCEQd10.js} +4 -4
  98. package/dist/chunks/cross-small.DvCEQd10.js.map +1 -0
  99. package/dist/chunks/{cross.OvPfvoqX.js → cross.CowwLfo4.js} +4 -4
  100. package/dist/chunks/cross.CowwLfo4.js.map +1 -0
  101. package/dist/chunks/{currency.CFJy6QYU.js → currency.BdtY-UIM.js} +3 -2
  102. package/dist/chunks/{currency.CFJy6QYU.js.map → currency.BdtY-UIM.js.map} +1 -1
  103. package/dist/chunks/{dashboard-section.BIH2wzgk.js → dashboard-section.BDkYN89r.js} +3 -3
  104. package/dist/chunks/{dashboard-section.BIH2wzgk.js.map → dashboard-section.BDkYN89r.js.map} +1 -1
  105. package/dist/chunks/{dashed-underline.CFJdLuJp.js → dashed-underline.CMKbg0Fq.js} +2 -2
  106. package/dist/chunks/{dashed-underline.CFJdLuJp.js.map → dashed-underline.CMKbg0Fq.js.map} +1 -1
  107. package/dist/chunks/{data-grid-template.21gqdYrs.js → data-grid-template.CydHXTmg.js} +3 -3
  108. package/dist/chunks/{data-grid-template.21gqdYrs.js.map → data-grid-template.CydHXTmg.js.map} +1 -1
  109. package/dist/chunks/{data-grid.DUwLxtW_.js → data-grid.CcGMljDl.js} +585 -538
  110. package/dist/chunks/data-grid.CcGMljDl.js.map +1 -0
  111. package/dist/chunks/{date-picker.21z_Sw4V.js → date-picker.BsXcXOgl.js} +99 -91
  112. package/dist/chunks/date-picker.BsXcXOgl.js.map +1 -0
  113. package/dist/chunks/{date-range-picker.K2TeW8aX.js → date-range-picker.BFm6Udzx.js} +338 -316
  114. package/dist/chunks/date-range-picker.BFm6Udzx.js.map +1 -0
  115. package/dist/chunks/{date.D8rQMzMG.js → date.CYUV4seY.js} +92 -92
  116. package/dist/chunks/{date.D8rQMzMG.js.map → date.CYUV4seY.js.map} +1 -1
  117. package/dist/chunks/{dialog-page.DALFn9KR.js → dialog-page.CjKMgUlz.js} +4 -3
  118. package/dist/chunks/dialog-page.CjKMgUlz.js.map +1 -0
  119. package/dist/chunks/{dropdown-default-textbox.Bu4bpNGU.js → dropdown-default-textbox.BopLaEkG.js} +4 -4
  120. package/dist/chunks/{dropdown-default-textbox.Bu4bpNGU.js.map → dropdown-default-textbox.BopLaEkG.js.map} +1 -1
  121. package/dist/chunks/{dropdown-tag.BNJnscD2.js → dropdown-tag.x3n5-YkA.js} +3 -3
  122. package/dist/chunks/{dropdown-tag.BNJnscD2.js.map → dropdown-tag.x3n5-YkA.js.map} +1 -1
  123. package/dist/chunks/{dropdown.ex87AZ7s.js → dropdown.BxvydNp0.js} +214 -194
  124. package/dist/chunks/dropdown.BxvydNp0.js.map +1 -0
  125. package/dist/chunks/{error-message.D2Y99KjT.js → error-message.CUZgtlDT.js} +44 -30
  126. package/dist/chunks/{error-message.D2Y99KjT.js.map → error-message.CUZgtlDT.js.map} +1 -1
  127. package/dist/chunks/es6.BvpG4Oi6.js.map +1 -1
  128. package/dist/chunks/{expand.CgwNEbbz.js → expand.B5tyMqaF.js} +4 -4
  129. package/dist/chunks/expand.B5tyMqaF.js.map +1 -0
  130. package/dist/chunks/{filter-bar.BAmG-yML.js → filter-bar.re1Tqyai.js} +728 -712
  131. package/dist/chunks/filter-bar.re1Tqyai.js.map +1 -0
  132. package/dist/chunks/{fixed-scroller.DwYB1pqo.js → fixed-scroller.Co0y0kWZ.js} +2 -2
  133. package/dist/chunks/{fixed-scroller.DwYB1pqo.js.map → fixed-scroller.Co0y0kWZ.js.map} +1 -1
  134. package/dist/chunks/{footer-actions.gtxofUAa.js → footer-actions.M83ZEElA.js} +2 -2
  135. package/dist/chunks/{footer-actions.gtxofUAa.js.map → footer-actions.M83ZEElA.js.map} +1 -1
  136. package/dist/chunks/{form-layout-title.Boi0QQZL.js → form-layout-title.ATi1W9uG.js} +2 -2
  137. package/dist/chunks/{form-layout-title.Boi0QQZL.js.map → form-layout-title.ATi1W9uG.js.map} +1 -1
  138. package/dist/chunks/{index.B_UZQ6qF.js → get-date-locale.BN8xEjY0.js} +855 -204
  139. package/dist/chunks/get-date-locale.BN8xEjY0.js.map +1 -0
  140. package/dist/chunks/{header.BMYhkrGT.js → header.CrNceSOd.js} +104 -98
  141. package/dist/chunks/{header.BMYhkrGT.js.map → header.CrNceSOd.js.map} +1 -1
  142. package/dist/chunks/{index.Z84QE0E2.js → index.CrhTVr5J.js} +2 -2
  143. package/dist/chunks/{index.Z84QE0E2.js.map → index.CrhTVr5J.js.map} +1 -1
  144. package/dist/chunks/{index.xqFSZOAb.js → index.DDnf1O9p.js} +2 -2
  145. package/dist/chunks/{index.xqFSZOAb.js.map → index.DDnf1O9p.js.map} +1 -1
  146. package/dist/chunks/{index.B_EJflcs.js → index.DPafeRJa.js} +2 -2
  147. package/dist/chunks/{index.B_EJflcs.js.map → index.DPafeRJa.js.map} +1 -1
  148. package/dist/chunks/{info-icon.DIu8FeJC.js → info-icon.CBiqUH3L.js} +2 -2
  149. package/dist/chunks/{info-icon.DIu8FeJC.js.map → info-icon.CBiqUH3L.js.map} +1 -1
  150. package/dist/chunks/{info.CIFBUqf-.js → info.D6XuLsYR.js} +4 -4
  151. package/dist/chunks/{info.CIFBUqf-.js.map → info.D6XuLsYR.js.map} +1 -1
  152. package/dist/chunks/{input-field.Dely7A8G.js → input-field.foJTqE5i.js} +3 -3
  153. package/dist/chunks/{input-field.Dely7A8G.js.map → input-field.foJTqE5i.js.map} +1 -1
  154. package/dist/chunks/{inspector.types.t2SPyhw3.js → inspector.types.X_7VgZmS.js} +44 -36
  155. package/dist/chunks/{inspector.types.t2SPyhw3.js.map → inspector.types.X_7VgZmS.js.map} +1 -1
  156. package/dist/chunks/link.2YS7haGc.js.map +1 -1
  157. package/dist/chunks/loading-button.BU536EK4.js +137 -0
  158. package/dist/chunks/loading-button.BU536EK4.js.map +1 -0
  159. package/dist/chunks/{menu.CLicp_2I.js → menu.CI4R2iw1.js} +6 -5
  160. package/dist/chunks/menu.CI4R2iw1.js.map +1 -0
  161. package/dist/chunks/{modal-fullscreen.Caqa7dDp.js → modal-fullscreen.B4sPrlfq.js} +37 -31
  162. package/dist/chunks/{modal-fullscreen.Caqa7dDp.js.map → modal-fullscreen.B4sPrlfq.js.map} +1 -1
  163. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.Dzmth-oW.js → modal.vue_vue_type_script_setup_true_lang.DuNQ8N4W.js} +31 -25
  164. package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.DuNQ8N4W.js.map +1 -0
  165. package/dist/chunks/{pagination.I5w8bpUS.js → pagination.-1ibfp5g.js} +5 -4
  166. package/dist/chunks/pagination.-1ibfp5g.js.map +1 -0
  167. package/dist/chunks/{popover.DQP3ce2x.js → popover.BN52L17t.js} +3 -3
  168. package/dist/chunks/{popover.DQP3ce2x.js.map → popover.BN52L17t.js.map} +1 -1
  169. package/dist/chunks/{radio-group.lOSBHghv.js → radio-group.RLUDLHPT.js} +3 -3
  170. package/dist/chunks/{radio-group.lOSBHghv.js.map → radio-group.RLUDLHPT.js.map} +1 -1
  171. package/dist/chunks/{refresh.DvQeGwUF.js → refresh.DPE_95xY.js} +4 -4
  172. package/dist/chunks/refresh.DPE_95xY.js.map +1 -0
  173. package/dist/chunks/{search-bar.GCRTgBUA.js → search-bar.CCWTGvJ6.js} +50 -42
  174. package/dist/chunks/{search-bar.GCRTgBUA.js.map → search-bar.CCWTGvJ6.js.map} +1 -1
  175. package/dist/chunks/{search.EnLryD8V.js → search.DJr0124y.js} +4 -4
  176. package/dist/chunks/{search.EnLryD8V.js.map → search.DJr0124y.js.map} +1 -1
  177. package/dist/chunks/{secondary-nav.CGH_6m7u.js → secondary-nav.D81GEGuc.js} +2 -2
  178. package/dist/chunks/{secondary-nav.CGH_6m7u.js.map → secondary-nav.D81GEGuc.js.map} +1 -1
  179. package/dist/chunks/{selection-card-group.BdTuPhEm.js → selection-card-group.3OexUu8G.js} +4 -4
  180. package/dist/chunks/{selection-card-group.BdTuPhEm.js.map → selection-card-group.3OexUu8G.js.map} +1 -1
  181. package/dist/chunks/{sidepanel.DA8nQepj.js → sidepanel.iEewXNIJ.js} +38 -32
  182. package/dist/chunks/{sidepanel.DA8nQepj.js.map → sidepanel.iEewXNIJ.js.map} +1 -1
  183. package/dist/chunks/{step.ClnCjesW.js → step.CyvTQbAk.js} +29 -28
  184. package/dist/chunks/step.CyvTQbAk.js.map +1 -0
  185. package/dist/chunks/{structured-list-item.Z-1ivOFu.js → structured-list-item.DZvCfZuG.js} +36 -30
  186. package/dist/chunks/{structured-list-item.Z-1ivOFu.js.map → structured-list-item.DZvCfZuG.js.map} +1 -1
  187. package/dist/chunks/{summary-grid-item-custom.Dq3IIEvH.js → summary-grid-item-custom.BRXtpB7y.js} +3 -3
  188. package/dist/chunks/{summary-grid-item-custom.Dq3IIEvH.js.map → summary-grid-item-custom.BRXtpB7y.js.map} +1 -1
  189. package/dist/chunks/{tabs.xY_6yqmE.js → tabs.BUPiNLbZ.js} +2 -2
  190. package/dist/chunks/{tabs.xY_6yqmE.js.map → tabs.BUPiNLbZ.js.map} +1 -1
  191. package/dist/chunks/{textarea.kYFGQFwd.js → textarea.Bk8-ivBT.js} +3 -3
  192. package/dist/chunks/{textarea.kYFGQFwd.js.map → textarea.Bk8-ivBT.js.map} +1 -1
  193. package/dist/chunks/{timeline-item.D-Yy2qQr.js → timeline-item.USmzRWfs.js} +84 -77
  194. package/dist/chunks/timeline-item.USmzRWfs.js.map +1 -0
  195. package/dist/chunks/{toast.CIVPmwmU.js → toast.BwPhzM1x.js} +2 -2
  196. package/dist/chunks/{toast.CIVPmwmU.js.map → toast.BwPhzM1x.js.map} +1 -1
  197. package/dist/chunks/{toggle.8t4flh_3.js → toggle.PLkyyLr1.js} +2 -2
  198. package/dist/chunks/{toggle.8t4flh_3.js.map → toggle.PLkyyLr1.js.map} +1 -1
  199. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.D-ZFDn95.js → tutorial.vue_vue_type_script_setup_true_lang.CoFRoKtq.js} +85 -72
  200. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.CoFRoKtq.js.map +1 -0
  201. package/dist/chunks/{use-cached-selected-values.ClVxNmUf.js → use-cached-selected-values.DditZmZy.js} +92 -77
  202. package/dist/chunks/use-cached-selected-values.DditZmZy.js.map +1 -0
  203. package/dist/chunks/{warning-filled.Dm_HhqzW.js → warning-filled.CKoabS8f.js} +4 -4
  204. package/dist/chunks/{warning-filled.Dm_HhqzW.js.map → warning-filled.CKoabS8f.js.map} +1 -1
  205. package/dist/code-snippet.js +1 -1
  206. package/dist/currency.js +1 -1
  207. package/dist/dashboard-template.js +1 -1
  208. package/dist/dashed-underline.js +1 -1
  209. package/dist/data-grid-template.js +1 -1
  210. package/dist/data-grid.js +1 -1
  211. package/dist/date-picker.js +2 -2
  212. package/dist/date-range-picker.js +2 -2
  213. package/dist/date.js +1 -1
  214. package/dist/dropdown.js +4 -4
  215. package/dist/filter-bar.js +1 -1
  216. package/dist/form-layout.js +1 -1
  217. package/dist/header.js +1 -1
  218. package/dist/index.js +50 -50
  219. package/dist/info-icon.js +1 -1
  220. package/dist/input-field.js +1 -1
  221. package/dist/inspector.js +1 -1
  222. package/dist/internal.js +7 -7
  223. package/dist/menu.js +1 -1
  224. package/dist/modal-fullscreen.js +1 -1
  225. package/dist/modal.js +2 -2
  226. package/dist/pagination.js +1 -1
  227. package/dist/popover.js +1 -1
  228. package/dist/radio-group.js +1 -1
  229. package/dist/search-bar.js +2 -2
  230. package/dist/secondary-nav.js +1 -1
  231. package/dist/selection-card.js +1 -1
  232. package/dist/sidepanel.js +1 -1
  233. package/dist/stepper.js +1 -1
  234. package/dist/structured-list.js +1 -1
  235. package/dist/styles/bento.css +3 -0
  236. package/dist/styles/legacy.css +3 -0
  237. package/dist/styles/styleguide.css +3 -0
  238. package/dist/summary-grid.js +1 -1
  239. package/dist/tabs.js +1 -1
  240. package/dist/textarea.js +1 -1
  241. package/dist/timeline.js +1 -1
  242. package/dist/toast.js +1 -1
  243. package/dist/toggle.js +1 -1
  244. package/dist/tutorial.js +1 -1
  245. package/dist/web-types.json +1 -1
  246. package/package.json +4 -4
  247. package/dist/chunks/accordion-item.CQ8DLt9l.js +0 -126
  248. package/dist/chunks/accordion-item.CQ8DLt9l.js.map +0 -1
  249. package/dist/chunks/alert.Bz4tNKDH.js.map +0 -1
  250. package/dist/chunks/avatar.mNlMngHQ.js.map +0 -1
  251. package/dist/chunks/calendar.D--sOCBT.js.map +0 -1
  252. package/dist/chunks/card.BvSoujBc.js.map +0 -1
  253. package/dist/chunks/checkbox-input.JdcvpfTa.js.map +0 -1
  254. package/dist/chunks/checkmark-circle-fill.ChV7Jy6r.js.map +0 -1
  255. package/dist/chunks/checkmark-small.DEc2T64_.js.map +0 -1
  256. package/dist/chunks/chevron-left.NvV5m76j.js.map +0 -1
  257. package/dist/chunks/chevron-up.DQZG_BP3.js.map +0 -1
  258. package/dist/chunks/code-snippet.BWM5w4CP.js.map +0 -1
  259. package/dist/chunks/copy.h-wVGvID.js.map +0 -1
  260. package/dist/chunks/cross-circle-fill-small.BXO78Wde.js.map +0 -1
  261. package/dist/chunks/cross-circle-fill.DN5b3_eL.js.map +0 -1
  262. package/dist/chunks/cross-small.CXWTuKA_.js.map +0 -1
  263. package/dist/chunks/cross.OvPfvoqX.js.map +0 -1
  264. package/dist/chunks/data-grid.DUwLxtW_.js.map +0 -1
  265. package/dist/chunks/date-picker.21z_Sw4V.js.map +0 -1
  266. package/dist/chunks/date-range-picker.K2TeW8aX.js.map +0 -1
  267. package/dist/chunks/dialog-page.DALFn9KR.js.map +0 -1
  268. package/dist/chunks/dropdown.ex87AZ7s.js.map +0 -1
  269. package/dist/chunks/expand.CgwNEbbz.js.map +0 -1
  270. package/dist/chunks/filter-bar.BAmG-yML.js.map +0 -1
  271. package/dist/chunks/index.B_UZQ6qF.js.map +0 -1
  272. package/dist/chunks/loading-button.Mx-oDIGy.js +0 -123
  273. package/dist/chunks/loading-button.Mx-oDIGy.js.map +0 -1
  274. package/dist/chunks/menu.CLicp_2I.js.map +0 -1
  275. package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.Dzmth-oW.js.map +0 -1
  276. package/dist/chunks/pagination.I5w8bpUS.js.map +0 -1
  277. package/dist/chunks/refresh.DvQeGwUF.js.map +0 -1
  278. package/dist/chunks/step.ClnCjesW.js.map +0 -1
  279. package/dist/chunks/timeline-item.D-Yy2qQr.js.map +0 -1
  280. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.D-ZFDn95.js.map +0 -1
  281. package/dist/chunks/use-cached-selected-values.ClVxNmUf.js.map +0 -1
  282. /package/dist/assets/{cross.css → main.css} +0 -0
@@ -1,14 +1,14 @@
1
- import { defineComponent as S, openBlock as f, createBlock as T, unref as t, createSlots as F, withCtx as n, createElementVNode as E, createVNode as u, createTextVNode as J, toDisplayString as Y, renderSlot as O, toRefs as M, ref as i, computed as C, watch as z, nextTick as H, provide as A, createElementBlock as D, normalizeClass as j, withKeys as q, withModifiers as Q, withDirectives as W, createCommentVNode as X } from "vue";
1
+ import { defineComponent as S, openBlock as f, createBlock as T, unref as t, createSlots as K, withCtx as n, createElementVNode as E, createVNode as c, createTextVNode as J, toDisplayString as Y, renderSlot as O, toRefs as M, ref as i, computed as C, watch as j, nextTick as z, provide as A, createElementBlock as D, normalizeClass as H, withKeys as q, withModifiers as Q, withDirectives as W, createCommentVNode as X } from "vue";
2
2
  import { B as y, d as Z } from "./typography.z9P0Ec3Q.js";
3
- import { F as ee } from "./footer-actions.gtxofUAa.js";
4
- import { D as te, B as se, b as ae, a as ie } from "./dialog-page.DALFn9KR.js";
3
+ import { F as ee } from "./footer-actions.M83ZEElA.js";
4
+ import { D as te, B as se, b as ae, a as ie } from "./dialog-page.CjKMgUlz.js";
5
5
  import { _ as N } from "./_plugin-vue_export-helper.CHgC5LLL.js";
6
6
  import { B as ne } from "./button.Br6CyG40.js";
7
7
  import { B as oe } from "./focus-trap.CwkbHfT8.js";
8
- import { C as le } from "./cross.OvPfvoqX.js";
8
+ import { C as le } from "./cross.CowwLfo4.js";
9
9
  import { S as re } from "./sidepanel.keys.R0DKQuYx.js";
10
- import { B as ue } from "./directive.O3yEdalv.js";
11
- import { u as ce } from "./i18n.DL9GT2-k.js";
10
+ import { B as ce } from "./directive.O3yEdalv.js";
11
+ import { u as ue } from "./i18n.DL9GT2-k.js";
12
12
  import { g as de } from "./unique-id.XFfoKuc2.js";
13
13
  import "../assets/sidepanel.css";
14
14
  const pe = { class: "b-sidepanel-page__header" }, fe = { class: "b-sidepanel-page__content" }, ve = { class: "b-sidepanel-page__actions" }, me = {}, _e = /* @__PURE__ */ S({
@@ -78,10 +78,10 @@ const pe = { class: "b-sidepanel-page__header" }, fe = { class: "b-sidepanel-pag
78
78
  class: "b-sidepanel-page",
79
79
  "page-id": e.pageId,
80
80
  "previous-page": e.previousPage
81
- }, F({
81
+ }, K({
82
82
  header: n(() => [
83
83
  E("div", pe, [
84
- u(t(y), {
84
+ c(t(y), {
85
85
  class: "b-sidepanel-page__title",
86
86
  el: "h2",
87
87
  variant: "title"
@@ -95,7 +95,7 @@ const pe = { class: "b-sidepanel-page__header" }, fe = { class: "b-sidepanel-pag
95
95
  ]),
96
96
  content: n(() => [
97
97
  E("div", fe, [
98
- u(t(y), {
98
+ c(t(y), {
99
99
  el: "div",
100
100
  variant: "body"
101
101
  }, {
@@ -112,7 +112,7 @@ const pe = { class: "b-sidepanel-page__header" }, fe = { class: "b-sidepanel-pag
112
112
  name: "footer",
113
113
  fn: n(() => [
114
114
  E("div", ve, [
115
- u(t(ee), {
115
+ c(t(ee), {
116
116
  actions: e.actions,
117
117
  "actions-label": e.actionsLabel,
118
118
  "destructive-actions": e.destructiveActions
@@ -128,6 +128,12 @@ var v = /* @__PURE__ */ ((e) => (e.UPDATE_ACTIVE_PAGE = "update:active-page", e.
128
128
  const G = {
129
129
  "en-US": {
130
130
  close: "Close"
131
+ },
132
+ "pt-BR": {
133
+ close: "Fechar"
134
+ },
135
+ "ja-JP": {
136
+ close: "閉じる"
131
137
  }
132
138
  }, ge = {
133
139
  key: 0,
@@ -176,55 +182,55 @@ const G = {
176
182
  }
177
183
  },
178
184
  setup(e, { emit: m }) {
179
- const s = e, _ = m, { activePage: b, isOpen: h } = M(s), { t: k } = ce({ messages: G }), o = i(null), c = i([]), l = i([]), w = i(se.TRANSITION_LEVEL_DEEPER), d = i(!1), I = de("sidepanel"), g = i(!1), P = i(!1), L = C(() => ({
185
+ const s = e, _ = m, { activePage: h, isOpen: P } = M(s), { t: k } = ue({ messages: G }), o = i(null), u = i([]), l = i([]), w = i(se.TRANSITION_LEVEL_DEEPER), d = i(!1), b = de("sidepanel"), g = i(!1), B = i(!1), L = C(() => ({
180
186
  "b-sidepanel--hide": d.value,
181
- "b-sidepanel--animation": P.value
187
+ "b-sidepanel--animation": B.value
182
188
  })), U = () => {
183
189
  d.value && (o.value.close(), l.value[0] && _(v.UPDATE_ACTIVE_PAGE, l.value[0]), l.value = [], d.value = !1, g.value = !1, _(v.UPDATE_IS_OPEN, !1));
184
190
  }, p = () => {
185
191
  o.value.open && (d.value = !0);
186
192
  }, V = () => {
187
193
  s.isDismissible && p();
188
- }, $ = C(() => s.hideCloseButton !== null ? s.hideCloseButton : !s.isDismissible);
189
- z(
190
- () => h.value,
194
+ }, R = C(() => s.hideCloseButton !== null ? s.hideCloseButton : !s.isDismissible);
195
+ j(
196
+ () => P.value,
191
197
  async () => {
192
- await H(), o.value && (h.value ? (g.value = !0, o.value.showModal(), l.value.length || l.value.push(b.value)) : o.value.open && p());
198
+ await z(), o.value && (P.value ? (g.value = !0, o.value.showModal(), l.value.length || l.value.push(h.value)) : o.value.open && p());
193
199
  },
194
200
  { immediate: !0 }
195
201
  );
196
- const x = (a) => _(v.UPDATE_ACTIVE_PAGE, a), K = (a) => () => {
202
+ const $ = (a) => _(v.UPDATE_ACTIVE_PAGE, a), x = (a) => () => {
197
203
  var r;
198
- c.value = (r = c.value) == null ? void 0 : r.filter((B) => B !== a);
199
- }, R = (a) => (c.value.push(a), { unregisterPage: K(a) });
204
+ u.value = (r = u.value) == null ? void 0 : r.filter((I) => I !== a);
205
+ }, F = (a) => (u.value.push(a), { unregisterPage: x(a) });
200
206
  return A(ae, {
201
- activePage: b,
207
+ activePage: h,
202
208
  animation: w,
203
- isAnimationActive: P,
209
+ isAnimationActive: B,
204
210
  isOpen: g,
205
- pages: c,
211
+ pages: u,
206
212
  previousPages: l,
207
- updatePage: x
208
- }), A(ie, R), A(re, I), !s.isDismissible && s.hideCloseButton === null && Z(
213
+ updatePage: $
214
+ }), A(ie, F), A(re, b), !s.isDismissible && s.hideCloseButton === null && Z(
209
215
  'BentoSidepanel "isDismissible" property’s behavior',
210
216
  'BentoSidepanel "isDismissible" will no longer hide the close button. Use "hideCloseButton=true" instead.',
211
217
  "2.0.0"
212
218
  ), (a, r) => (f(), D("dialog", {
213
219
  ref_key: "sidepanel",
214
220
  ref: o,
215
- class: j(["b-sidepanel", L.value]),
221
+ class: H(["b-sidepanel", L.value]),
216
222
  onAnimationend: U,
217
- onKeydown: r[0] || (r[0] = q(Q((B) => e.isDismissible && p, ["prevent"]), ["esc"]))
223
+ onKeydown: r[0] || (r[0] = q(Q((I) => e.isDismissible && p, ["prevent"]), ["esc"]))
218
224
  }, [
219
- W((f(), T(t(oe), { id: t(I) }, {
225
+ W((f(), T(t(oe), { id: t(b) }, {
220
226
  default: n(() => [
221
- $.value ? X("", !0) : (f(), D("div", ge, [
222
- u(t(ne), {
227
+ R.value ? X("", !0) : (f(), D("div", ge, [
228
+ c(t(ne), {
223
229
  variant: "tertiary",
224
230
  onClick: p
225
231
  }, {
226
232
  default: n(() => [
227
- u(t(le), {
233
+ c(t(le), {
228
234
  "svg-title": t(k)("close")
229
235
  }, null, 8, ["svg-title"])
230
236
  ]),
@@ -235,7 +241,7 @@ const G = {
235
241
  ]),
236
242
  _: 3
237
243
  }, 8, ["id"])), [
238
- [t(ue), V]
244
+ [t(ce), V]
239
245
  ])
240
246
  ], 34));
241
247
  }
@@ -245,4 +251,4 @@ export {
245
251
  ke as a,
246
252
  Ge as s
247
253
  };
248
- //# sourceMappingURL=sidepanel.DA8nQepj.js.map
254
+ //# sourceMappingURL=sidepanel.iEewXNIJ.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sidepanel.DA8nQepj.js","sources":["../../../vue2/src/components/sidepanel/components/sidepanel-page.vue","../../../vue2/src/components/sidepanel/sidepanel.types.ts","../../../vue2/src/components/sidepanel/sidepanel.vue"],"sourcesContent":["<template>\n <dialog-page class=\"b-sidepanel-page\" :page-id=\"pageId\" :previous-page=\"previousPage\">\n <template #header>\n <div class=\"b-sidepanel-page__header\">\n <bento-typography class=\"b-sidepanel-page__title\" el=\"h2\" variant=\"title\">\n {{ title }}\n </bento-typography>\n </div>\n </template>\n <template #content>\n <div class=\"b-sidepanel-page__content\">\n <bento-typography el=\"div\" variant=\"body\">\n <slot />\n </bento-typography>\n </div>\n </template>\n <template v-if=\"actions && actions.length > 0\" #footer>\n <div class=\"b-sidepanel-page__actions\">\n <footer-actions\n :actions=\"actions\"\n :actions-label=\"actionsLabel\"\n :destructive-actions=\"destructiveActions\"\n />\n </div>\n </template>\n </dialog-page>\n</template>\n\n<script setup lang=\"ts\">\n import { PropType } from 'vue';\n\n import { BentoButtonActionsList } from '@/components/button';\n import { BentoTypography } from '@/components/typography';\n import { FooterActions } from '@/components/internal/footer-actions';\n import { DialogPage } from '@/internal';\n\n defineProps({\n /**\n * List of actions that will be used to render the buttons.\n * First element in the list will be rendered as \"primary\".\n * All elements after the first will be rendered as \"secondary\".\n *\n * ```\n * [{\n * title: 'Primary',\n * event: () => { ... },\n * icon: FourPeopleIcon\n * }, {\n * title: 'Secondary',\n * event: () => { ... }\n * }]\n * ```\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n default: null,\n },\n\n /**\n * Text label that is displayed left to the action buttons\n */\n actionsLabel: {\n type: String,\n default: null,\n },\n\n /**\n * If passed - sets first button color to red\n */\n destructiveActions: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Identifier of the page, used with activePage prop to handle sidepanel navigation\n */\n pageId: {\n type: String,\n default: undefined,\n },\n\n /**\n * ID of the page for the back button to navigate to. Only use it to overwrite the default back behavior\n * Used when the back button should not take the user to the natural previous page\n * Set to `null` to hide back button in the page\n */\n previousPage: {\n type: String,\n default: undefined,\n },\n\n /**\n * Title of the sidepanel page\n */\n title: {\n type: String,\n default: null,\n },\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * SidepanelPage is used to render different pages of Sidepanel component\n *\n * @example\n * import { BentoSidepanel, BentoSidepanelPage } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoSidepanel, BentoSidepanelPage },\n * template: `\n * <bento-sidepanel active-page='step1' is-open='true'>\n * <bento-sidepanel-page\n * title='Step 1'\n * pageId='step1'\n * :actions=\"[\n * {\n * title: 'Next step',\n * event: () => {\n * activePage.value = 'step2';\n * },\n * }]\">\n * Step 1 info\n * </bento-sidepanel-page>\n * <bento-sidepanel-page\n * title='Step 2'\n * pageId='step2'\n * :actions=\"[\n * {\n * title: 'Save',\n * event: () => {},\n * }]\">\n * Step 2 info\n * </bento-sidepanel-page>\n * </bento-sidepanel>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./sidepanel-page.scss\" />\n","export enum BentoSidepanelEvent {\n UPDATE_ACTIVE_PAGE = 'update:active-page',\n UPDATE_IS_OPEN = 'update:is-open',\n}\n","<template>\n <dialog\n ref=\"sidepanel\"\n class=\"b-sidepanel\"\n :class=\"conditionalClasses\"\n @animationend=\"closeSidepanelAfterAnimation\"\n @keydown.esc.prevent=\"isDismissible && startCloseSidepanelAnimation\"\n >\n <bento-focus-trap :id=\"sidepanelId\" v-bento-click-outside-directive=\"closeSidepanelOnClickOutside\">\n <div v-if=\"!computedHideCloseButton\" class=\"b-sidepanel__close-button\">\n <bento-button variant=\"tertiary\" @click=\"startCloseSidepanelAnimation\">\n <cross-icon :svg-title=\"t('close')\" />\n </bento-button>\n </div>\n <slot />\n </bento-focus-trap>\n </dialog>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, nextTick, provide, ref, toRefs, watch } from 'vue';\n\n import { BentoButton } from '@/components/button';\n import { BentoFocusTrap } from '@/components/focus-trap';\n import CrossIcon from '@adyen/ui-assets-icons-16/vue/cross';\n\n import { BentoSidepanelEvent } from './sidepanel.types';\n import {\n BentoDialogPageAnimation,\n BentoDialogPageConfigData,\n BentoDialogPageRegisterPage,\n DIALOG_PAGE_CONFIG_INJECTION_KEY,\n DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY,\n } from '@/internal';\n\n import { SIDEPANEL_DIALOG_ID_INJECTION_KEY } from './sidepanel.keys';\n\n import { BentoClickOutsideDirective as vBentoClickOutsideDirective } from '@/directives/click-outside';\n\n import { useI18n } from '@/utils/ts/i18n';\n\n import messages from './messages.json';\n import { generateUid } from '@/utils/ts/unique-id';\n import { deprecate } from '@/utils/ts/deprecate';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const props = defineProps({\n /**\n * The id of the current active page\n * Should be the same id as the BentoSidepanelPage to be displayed\n * If the component only has one page, it can be left null/undefined.\n */\n activePage: {\n type: String,\n default: null,\n },\n\n /**\n * If set to true, it allows the sidepanel to be closed.\n * Shows close button when `true` and hides close button when `false`.\n *\n * _Note: This property will not set the visibility of the close button in v2.0.0_\n */\n isDismissible: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Controls the sidepanel's state from the outside. Set it to true to open the sidepanel.\n */\n isOpen: {\n type: Boolean,\n default: null,\n },\n\n /**\n * Controls the visibility of close button on the sidepanel.\n * Defaults to `true` when `isDismissible=false`, and `true` when `isDimissible=true`.\n *\n * _Note: This property will be set to `false` by default, independent of `isDismissible` in v2.0.0_\n */\n hideCloseButton: {\n type: Boolean,\n default: null,\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emits update event when page is changed internally\n */\n (e: BentoSidepanelEvent.UPDATE_ACTIVE_PAGE, page: string): void;\n /**\n * Emits close-sidepanel event when the sidepanel is closed\n */\n (e: BentoSidepanelEvent.UPDATE_IS_OPEN, isOpen: boolean): void;\n }>();\n\n // Refs\n const { activePage, isOpen } = toRefs(props);\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const sidepanel = ref(null);\n const pages = ref<string[]>([]);\n const previousPages = ref([]);\n const animation = ref(BentoDialogPageAnimation.TRANSITION_LEVEL_DEEPER);\n const isClosing = ref(false);\n const sidepanelId = generateUid('sidepanel');\n const internalIsOpen = ref(false);\n const isAnimationActive = ref(false);\n\n // Animation styling\n const conditionalClasses = computed(() => ({\n 'b-sidepanel--hide': isClosing.value,\n 'b-sidepanel--animation': isAnimationActive.value,\n }));\n\n // Handle closing and closing animation for dialog element\n const closeSidepanelAfterAnimation = () => {\n if (isClosing.value) {\n sidepanel.value.close();\n if (previousPages.value[0]) {\n emit(BentoSidepanelEvent.UPDATE_ACTIVE_PAGE, previousPages.value[0]);\n }\n previousPages.value = [];\n isClosing.value = false;\n internalIsOpen.value = false;\n emit(BentoSidepanelEvent.UPDATE_IS_OPEN, false);\n }\n };\n\n const startCloseSidepanelAnimation = () => {\n if (!sidepanel.value.open) {\n return;\n }\n isClosing.value = true;\n };\n\n const closeSidepanelOnClickOutside = () => {\n if (props.isDismissible) {\n startCloseSidepanelAnimation();\n }\n };\n\n // TODO: Remove in upcoming major. See properties `hideCloseButton` and `isDismissible`.\n const computedHideCloseButton = computed(() => {\n if (props.hideCloseButton !== null) {\n return props.hideCloseButton;\n }\n\n return !props.isDismissible;\n });\n\n // Watching isOpen prop to toggle open/close the dialog element\n watch(\n () => isOpen.value,\n async () => {\n // Wait for sidepanel ref to be created\n await nextTick();\n\n if (!sidepanel.value) {\n return;\n }\n\n if (isOpen.value) {\n internalIsOpen.value = true;\n sidepanel.value.showModal();\n if (!previousPages.value.length) {\n previousPages.value.push(activePage.value);\n }\n } else if (sidepanel.value.open) {\n startCloseSidepanelAnimation();\n }\n },\n { immediate: true }\n );\n\n // Pages\n const updatePage = page => emit(BentoSidepanelEvent.UPDATE_ACTIVE_PAGE, page);\n\n // unregister page if removed / destroyed\n const unregisterPage = (pageIdToRemove: string) => () => {\n pages.value = pages.value?.filter(pageId => pageId !== pageIdToRemove);\n };\n\n // Provide data and function to register page to subcomponent\n const registerPage: BentoDialogPageRegisterPage = pageId => {\n pages.value.push(pageId);\n\n return { unregisterPage: unregisterPage(pageId) };\n };\n\n provide<BentoDialogPageConfigData>(DIALOG_PAGE_CONFIG_INJECTION_KEY, {\n activePage,\n animation,\n isAnimationActive,\n isOpen: internalIsOpen,\n pages,\n previousPages,\n updatePage,\n });\n provide(DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY, registerPage);\n\n // Let's Children components know they are inside a SidePanel (dialog element)\n provide(SIDEPANEL_DIALOG_ID_INJECTION_KEY, sidepanelId);\n\n if (!props.isDismissible && props.hideCloseButton === null) {\n deprecate(\n 'BentoSidepanel \"isDismissible\" property’s behavior',\n 'BentoSidepanel \"isDismissible\" will no longer hide the close button. Use \"hideCloseButton=true\" instead.',\n '2.0.0'\n );\n }\n</script>\n\n<script lang=\"ts\">\n /**\n * Sidepanel component is a slide-in panel that should be used for presenting actions, settings or features that are directly associated with a specific task or interaction on the main screen.\n *\n * @example\n * import { BentoSidepanel, BentoSidepanelPage } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoSidepanel, BentoSidepanelPage },\n * template: `\n * <bento-sidepanel active-page='step1' is-open='true'>\n * <bento-sidepanel-page\n * title='Step 1'\n * pageId='step1'\n * :actions=\"[\n * {\n * title: 'Next step',\n * event: () => {\n * activePage.value = 'step2';\n * },\n * }]\">\n * Step 1 info\n * </bento-sidepanel-page>\n * <bento-sidepanel-page\n * title='Step 2'\n * pageId='step2'\n * :actions=\"[\n * {\n * title: 'Save',\n * event: () => {},\n * }]\">\n * Step 2 info\n * </bento-sidepanel-page>\n * </bento-sidepanel>\n * `\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n<style lang=\"scss\" scoped src=\"./sidepanel.scss\" />\n"],"names":["__default__$1","BentoSidepanelEvent","BentoSidepanelEvent2","__default__","messages","props","__props","emit","__emit","activePage","isOpen","toRefs","t","useI18n","sidepanel","ref","pages","previousPages","animation","BentoDialogPageAnimation","isClosing","sidepanelId","generateUid","internalIsOpen","isAnimationActive","conditionalClasses","computed","closeSidepanelAfterAnimation","startCloseSidepanelAnimation","closeSidepanelOnClickOutside","computedHideCloseButton","watch","nextTick","updatePage","page","unregisterPage","pageIdToRemove","_a","pageId","registerPage","provide","DIALOG_PAGE_CONFIG_INJECTION_KEY","DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY","SIDEPANEL_DIALOG_ID_INJECTION_KEY","deprecate"],"mappings":";;;;;;;;;;;;;4IA2IIA,KAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC3IQ,IAAAC,IAAA,kBAAAC,OACRA,EAAA,qBAAA,sBACAA,EAAA,iBAAA,kBAFQA,IAAAD,KAAA,CAAA,CAAA;;;;;;;;GC6PRE,KAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAhNA,UAAAC,IAAAC,GA0CAC,IAAAC,GAYA,EAAA,YAAAC,GAAA,QAAAC,EAAA,IAAAC,EAAAN,CAAA,GACA,EAAA,GAAAO,EAAA,IAAAC,GAAA,EAAA,UAAAT,EAAA,CAAA,GACAU,IAAAC,EAAA,IAAA,GACAC,IAAAD,EAAA,CAAA,CAAA,GACAE,IAAAF,EAAA,CAAA,CAAA,GACAG,IAAAH,EAAAI,GAAA,uBAAA,GACAC,IAAAL,EAAA,EAAA,GACAM,IAAAC,GAAA,WAAA,GACAC,IAAAR,EAAA,EAAA,GACAS,IAAAT,EAAA,EAAA,GAGAU,IAAAC,EAAA,OAAA;AAAA,MAA2C,qBAAAN,EAAA;AAAA,MACR,0BAAAI,EAAA;AAAA,IACa,EAAA,GAIhDG,IAAA,MAAA;AACI,MAAAP,EAAA,UACIN,EAAA,MAAA,MAAA,GACAG,EAAA,MAAA,CAAA,KACIV,EAAAN,EAAA,oBAAAgB,EAAA,MAAA,CAAA,CAAA,GAEJA,EAAA,QAAA,CAAA,GACAG,EAAA,QAAA,IACAG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;;;;;;;;"}
1
+ {"version":3,"file":"sidepanel.iEewXNIJ.js","sources":["../../../vue2/src/components/sidepanel/components/sidepanel-page.vue","../../../vue2/src/components/sidepanel/sidepanel.types.ts","../../../vue2/src/components/sidepanel/sidepanel.vue"],"sourcesContent":["<template>\n <dialog-page class=\"b-sidepanel-page\" :page-id=\"pageId\" :previous-page=\"previousPage\">\n <template #header>\n <div class=\"b-sidepanel-page__header\">\n <bento-typography class=\"b-sidepanel-page__title\" el=\"h2\" variant=\"title\">\n {{ title }}\n </bento-typography>\n </div>\n </template>\n <template #content>\n <div class=\"b-sidepanel-page__content\">\n <bento-typography el=\"div\" variant=\"body\">\n <slot />\n </bento-typography>\n </div>\n </template>\n <template v-if=\"actions && actions.length > 0\" #footer>\n <div class=\"b-sidepanel-page__actions\">\n <footer-actions\n :actions=\"actions\"\n :actions-label=\"actionsLabel\"\n :destructive-actions=\"destructiveActions\"\n />\n </div>\n </template>\n </dialog-page>\n</template>\n\n<script setup lang=\"ts\">\n import { PropType } from 'vue';\n\n import { BentoButtonActionsList } from '@/components/button';\n import { BentoTypography } from '@/components/typography';\n import { FooterActions } from '@/components/internal/footer-actions';\n import { DialogPage } from '@/internal';\n\n defineProps({\n /**\n * List of actions that will be used to render the buttons.\n * First element in the list will be rendered as \"primary\".\n * All elements after the first will be rendered as \"secondary\".\n *\n * ```\n * [{\n * title: 'Primary',\n * event: () => { ... },\n * icon: FourPeopleIcon\n * }, {\n * title: 'Secondary',\n * event: () => { ... }\n * }]\n * ```\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n default: null,\n },\n\n /**\n * Text label that is displayed left to the action buttons\n */\n actionsLabel: {\n type: String,\n default: null,\n },\n\n /**\n * If passed - sets first button color to red\n */\n destructiveActions: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Identifier of the page, used with activePage prop to handle sidepanel navigation\n */\n pageId: {\n type: String,\n default: undefined,\n },\n\n /**\n * ID of the page for the back button to navigate to. Only use it to overwrite the default back behavior\n * Used when the back button should not take the user to the natural previous page\n * Set to `null` to hide back button in the page\n */\n previousPage: {\n type: String,\n default: undefined,\n },\n\n /**\n * Title of the sidepanel page\n */\n title: {\n type: String,\n default: null,\n },\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * SidepanelPage is used to render different pages of Sidepanel component\n *\n * @example\n * import { BentoSidepanel, BentoSidepanelPage } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoSidepanel, BentoSidepanelPage },\n * template: `\n * <bento-sidepanel active-page='step1' is-open='true'>\n * <bento-sidepanel-page\n * title='Step 1'\n * pageId='step1'\n * :actions=\"[\n * {\n * title: 'Next step',\n * event: () => {\n * activePage.value = 'step2';\n * },\n * }]\">\n * Step 1 info\n * </bento-sidepanel-page>\n * <bento-sidepanel-page\n * title='Step 2'\n * pageId='step2'\n * :actions=\"[\n * {\n * title: 'Save',\n * event: () => {},\n * }]\">\n * Step 2 info\n * </bento-sidepanel-page>\n * </bento-sidepanel>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./sidepanel-page.scss\" />\n","export enum BentoSidepanelEvent {\n UPDATE_ACTIVE_PAGE = 'update:active-page',\n UPDATE_IS_OPEN = 'update:is-open',\n}\n","<template>\n <dialog\n ref=\"sidepanel\"\n class=\"b-sidepanel\"\n :class=\"conditionalClasses\"\n @animationend=\"closeSidepanelAfterAnimation\"\n @keydown.esc.prevent=\"isDismissible && startCloseSidepanelAnimation\"\n >\n <bento-focus-trap :id=\"sidepanelId\" v-bento-click-outside-directive=\"closeSidepanelOnClickOutside\">\n <div v-if=\"!computedHideCloseButton\" class=\"b-sidepanel__close-button\">\n <bento-button variant=\"tertiary\" @click=\"startCloseSidepanelAnimation\">\n <cross-icon :svg-title=\"t('close')\" />\n </bento-button>\n </div>\n <slot />\n </bento-focus-trap>\n </dialog>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, nextTick, provide, ref, toRefs, watch } from 'vue';\n\n import { BentoButton } from '@/components/button';\n import { BentoFocusTrap } from '@/components/focus-trap';\n import CrossIcon from '@adyen/ui-assets-icons-16/vue/cross';\n\n import { BentoSidepanelEvent } from './sidepanel.types';\n import {\n BentoDialogPageAnimation,\n BentoDialogPageConfigData,\n BentoDialogPageRegisterPage,\n DIALOG_PAGE_CONFIG_INJECTION_KEY,\n DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY,\n } from '@/internal';\n\n import { SIDEPANEL_DIALOG_ID_INJECTION_KEY } from './sidepanel.keys';\n\n import { BentoClickOutsideDirective as vBentoClickOutsideDirective } from '@/directives/click-outside';\n\n import { useI18n } from '@/utils/ts/i18n';\n\n import messages from './messages.json';\n import { generateUid } from '@/utils/ts/unique-id';\n import { deprecate } from '@/utils/ts/deprecate';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const props = defineProps({\n /**\n * The id of the current active page\n * Should be the same id as the BentoSidepanelPage to be displayed\n * If the component only has one page, it can be left null/undefined.\n */\n activePage: {\n type: String,\n default: null,\n },\n\n /**\n * If set to true, it allows the sidepanel to be closed.\n * Shows close button when `true` and hides close button when `false`.\n *\n * _Note: This property will not set the visibility of the close button in v2.0.0_\n */\n isDismissible: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Controls the sidepanel's state from the outside. Set it to true to open the sidepanel.\n */\n isOpen: {\n type: Boolean,\n default: null,\n },\n\n /**\n * Controls the visibility of close button on the sidepanel.\n * Defaults to `true` when `isDismissible=false`, and `true` when `isDimissible=true`.\n *\n * _Note: This property will be set to `false` by default, independent of `isDismissible` in v2.0.0_\n */\n hideCloseButton: {\n type: Boolean,\n default: null,\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emits update event when page is changed internally\n */\n (e: BentoSidepanelEvent.UPDATE_ACTIVE_PAGE, page: string): void;\n /**\n * Emits close-sidepanel event when the sidepanel is closed\n */\n (e: BentoSidepanelEvent.UPDATE_IS_OPEN, isOpen: boolean): void;\n }>();\n\n // Refs\n const { activePage, isOpen } = toRefs(props);\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const sidepanel = ref(null);\n const pages = ref<string[]>([]);\n const previousPages = ref([]);\n const animation = ref(BentoDialogPageAnimation.TRANSITION_LEVEL_DEEPER);\n const isClosing = ref(false);\n const sidepanelId = generateUid('sidepanel');\n const internalIsOpen = ref(false);\n const isAnimationActive = ref(false);\n\n // Animation styling\n const conditionalClasses = computed(() => ({\n 'b-sidepanel--hide': isClosing.value,\n 'b-sidepanel--animation': isAnimationActive.value,\n }));\n\n // Handle closing and closing animation for dialog element\n const closeSidepanelAfterAnimation = () => {\n if (isClosing.value) {\n sidepanel.value.close();\n if (previousPages.value[0]) {\n emit(BentoSidepanelEvent.UPDATE_ACTIVE_PAGE, previousPages.value[0]);\n }\n previousPages.value = [];\n isClosing.value = false;\n internalIsOpen.value = false;\n emit(BentoSidepanelEvent.UPDATE_IS_OPEN, false);\n }\n };\n\n const startCloseSidepanelAnimation = () => {\n if (!sidepanel.value.open) {\n return;\n }\n isClosing.value = true;\n };\n\n const closeSidepanelOnClickOutside = () => {\n if (props.isDismissible) {\n startCloseSidepanelAnimation();\n }\n };\n\n // TODO: Remove in upcoming major. See properties `hideCloseButton` and `isDismissible`.\n const computedHideCloseButton = computed(() => {\n if (props.hideCloseButton !== null) {\n return props.hideCloseButton;\n }\n\n return !props.isDismissible;\n });\n\n // Watching isOpen prop to toggle open/close the dialog element\n watch(\n () => isOpen.value,\n async () => {\n // Wait for sidepanel ref to be created\n await nextTick();\n\n if (!sidepanel.value) {\n return;\n }\n\n if (isOpen.value) {\n internalIsOpen.value = true;\n sidepanel.value.showModal();\n if (!previousPages.value.length) {\n previousPages.value.push(activePage.value);\n }\n } else if (sidepanel.value.open) {\n startCloseSidepanelAnimation();\n }\n },\n { immediate: true }\n );\n\n // Pages\n const updatePage = page => emit(BentoSidepanelEvent.UPDATE_ACTIVE_PAGE, page);\n\n // unregister page if removed / destroyed\n const unregisterPage = (pageIdToRemove: string) => () => {\n pages.value = pages.value?.filter(pageId => pageId !== pageIdToRemove);\n };\n\n // Provide data and function to register page to subcomponent\n const registerPage: BentoDialogPageRegisterPage = pageId => {\n pages.value.push(pageId);\n\n return { unregisterPage: unregisterPage(pageId) };\n };\n\n provide<BentoDialogPageConfigData>(DIALOG_PAGE_CONFIG_INJECTION_KEY, {\n activePage,\n animation,\n isAnimationActive,\n isOpen: internalIsOpen,\n pages,\n previousPages,\n updatePage,\n });\n provide(DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY, registerPage);\n\n // Let's Children components know they are inside a SidePanel (dialog element)\n provide(SIDEPANEL_DIALOG_ID_INJECTION_KEY, sidepanelId);\n\n if (!props.isDismissible && props.hideCloseButton === null) {\n deprecate(\n 'BentoSidepanel \"isDismissible\" property’s behavior',\n 'BentoSidepanel \"isDismissible\" will no longer hide the close button. Use \"hideCloseButton=true\" instead.',\n '2.0.0'\n );\n }\n</script>\n\n<script lang=\"ts\">\n /**\n * Sidepanel component is a slide-in panel that should be used for presenting actions, settings or features that are directly associated with a specific task or interaction on the main screen.\n *\n * @example\n * import { BentoSidepanel, BentoSidepanelPage } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoSidepanel, BentoSidepanelPage },\n * template: `\n * <bento-sidepanel active-page='step1' is-open='true'>\n * <bento-sidepanel-page\n * title='Step 1'\n * pageId='step1'\n * :actions=\"[\n * {\n * title: 'Next step',\n * event: () => {\n * activePage.value = 'step2';\n * },\n * }]\">\n * Step 1 info\n * </bento-sidepanel-page>\n * <bento-sidepanel-page\n * title='Step 2'\n * pageId='step2'\n * :actions=\"[\n * {\n * title: 'Save',\n * event: () => {},\n * }]\">\n * Step 2 info\n * </bento-sidepanel-page>\n * </bento-sidepanel>\n * `\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n<style lang=\"scss\" scoped src=\"./sidepanel.scss\" />\n"],"names":["__default__$1","BentoSidepanelEvent","BentoSidepanelEvent2","__default__","messages","props","__props","emit","__emit","activePage","isOpen","toRefs","t","useI18n","sidepanel","ref","pages","previousPages","animation","BentoDialogPageAnimation","isClosing","sidepanelId","generateUid","internalIsOpen","isAnimationActive","conditionalClasses","computed","closeSidepanelAfterAnimation","startCloseSidepanelAnimation","closeSidepanelOnClickOutside","computedHideCloseButton","watch","nextTick","updatePage","page","unregisterPage","pageIdToRemove","_a","pageId","registerPage","provide","DIALOG_PAGE_CONFIG_INJECTION_KEY","DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY","SIDEPANEL_DIALOG_ID_INJECTION_KEY","deprecate"],"mappings":";;;;;;;;;;;;;4IA2IIA,KAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC3IQ,IAAAC,IAAA,kBAAAC,OACRA,EAAA,qBAAA,sBACAA,EAAA,iBAAA,kBAFQA,IAAAD,KAAA,CAAA,CAAA;;;;;;;;;;;;;;GC6PRE,KAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAhNA,UAAAC,IAAAC,GA0CAC,IAAAC,GAYA,EAAA,YAAAC,GAAA,QAAAC,EAAA,IAAAC,EAAAN,CAAA,GACA,EAAA,GAAAO,EAAA,IAAAC,GAAA,EAAA,UAAAT,EAAA,CAAA,GACAU,IAAAC,EAAA,IAAA,GACAC,IAAAD,EAAA,CAAA,CAAA,GACAE,IAAAF,EAAA,CAAA,CAAA,GACAG,IAAAH,EAAAI,GAAA,uBAAA,GACAC,IAAAL,EAAA,EAAA,GACAM,IAAAC,GAAA,WAAA,GACAC,IAAAR,EAAA,EAAA,GACAS,IAAAT,EAAA,EAAA,GAGAU,IAAAC,EAAA,OAAA;AAAA,MAA2C,qBAAAN,EAAA;AAAA,MACR,0BAAAI,EAAA;AAAA,IACa,EAAA,GAIhDG,IAAA,MAAA;AACI,MAAAP,EAAA,UACIN,EAAA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AG,IAAAtB,CAAA,GAEA,CAAAhB,EAAA,iBAAAA,EAAA,oBAAA,QACIuC;AAAA,MAAA;AAAA,MACI;AAAA,MACA;AAAA,IACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,21 +1,22 @@
1
- import { defineComponent as U, ref as c, computed as n, watch as B, provide as M, readonly as oe, openBlock as b, createElementBlock as g, withDirectives as j, mergeProps as G, toHandlers as le, unref as d, renderSlot as L, createVNode as $, withCtx as E, createTextVNode as q, toDisplayString as W, createCommentVNode as ue, createElementVNode as J, useSlots as re, inject as ie, onMounted as pe, onBeforeUnmount as ce, normalizeClass as ve, createBlock as K, Fragment as de, vShow as me } from "vue";
1
+ import { defineComponent as U, ref as c, computed as n, watch as B, provide as M, readonly as oe, openBlock as b, createElementBlock as g, withDirectives as j, mergeProps as G, toHandlers as le, unref as d, renderSlot as L, createVNode as $, withCtx as E, createTextVNode as q, toDisplayString as W, createCommentVNode as re, createElementVNode as J, useSlots as ue, inject as ie, onMounted as pe, onBeforeUnmount as ce, normalizeClass as ve, createBlock as K, Fragment as de, vShow as me } from "vue";
2
2
  import { B as D } from "./typography.z9P0Ec3Q.js";
3
3
  import { B as R, a as be } from "./keyboard-navigation.Clz1jOaA.js";
4
4
  import { u as fe } from "./i18n.DL9GT2-k.js";
5
5
  import { _ as z } from "./_plugin-vue_export-helper.CHgC5LLL.js";
6
6
  import { B as Se } from "./base-button.BxUrydaP.js";
7
- import { C as _e } from "./checkmark-small.DEc2T64_.js";
7
+ import { C as _e } from "./checkmark-small.4DMun1A_.js";
8
+ /* empty css */
8
9
  import "../assets/step.css";
9
10
  const ge = (t) => {
10
- function u(v) {
11
+ function r(v) {
11
12
  return ({ detail: i }) => {
12
13
  var p;
13
14
  i.preventDefault();
14
- const r = t.value.indexOf(document.activeElement);
15
- r < 0 || (p = t.value[r + v]) == null || p.focus();
15
+ const u = t.value.indexOf(document.activeElement);
16
+ u < 0 || (p = t.value[u + v]) == null || p.focus();
16
17
  };
17
18
  }
18
- const l = u(-1), a = u(1);
19
+ const l = r(-1), a = r(1);
19
20
  return {
20
21
  [R.ARROW_DOWN]: a,
21
22
  [R.ARROW_RIGHT]: a,
@@ -23,8 +24,8 @@ const ge = (t) => {
23
24
  [R.ARROW_LEFT]: l
24
25
  };
25
26
  }, ye = (t) => {
26
- const u = t.buttonElement.value.parentElement, l = u.parentElement;
27
- return Array.from(l.children).indexOf(u);
27
+ const r = t.buttonElement.value.parentElement, l = r.parentElement;
28
+ return Array.from(l.children).indexOf(r);
28
29
  }, Q = (t) => ({ registerStep: (a) => {
29
30
  const v = ye(a);
30
31
  t.value.splice(v, 0, {
@@ -74,19 +75,19 @@ const X = {
74
75
  }
75
76
  },
76
77
  emits: ["update:index"],
77
- setup(t, { emit: u }) {
78
- const l = t, a = u, { t: v } = fe({ messages: X }), i = c([]), r = c(l.index), p = c(r.value), e = (s) => {
79
- s > p.value && (p.value = s), r.value = s;
78
+ setup(t, { emit: r }) {
79
+ const l = t, a = r, { t: v } = fe({ messages: X }), i = c([]), u = c(l.index), p = c(u.value), e = (s) => {
80
+ s > p.value && (p.value = s), u.value = s;
80
81
  }, y = n(() => {
81
82
  var s;
82
- return (s = i.value[r.value]) == null ? void 0 : s.stepContent;
83
+ return (s = i.value[u.value]) == null ? void 0 : s.stepContent;
83
84
  }), m = n(() => i.value.length), I = n(() => i.value.map(({ buttonElement: s }) => s)), N = n(() => l.variant === F.HORIZONTAL), f = n(
84
85
  () => i.value.map(({ buttonElement: s, substeps: S }, _) => {
85
- const V = r.value === _;
86
+ const V = u.value === _;
86
87
  return !N.value && V ? [s].concat(S.map((C) => C.buttonElement)) : [s];
87
88
  }).flat()
88
89
  ), { registerStep: x, removeStep: A } = Q(i), O = c({
89
- activeStepIndex: r,
90
+ activeStepIndex: u,
90
91
  latestActiveStep: p,
91
92
  steps: I,
92
93
  type: l.type,
@@ -97,7 +98,7 @@ const X = {
97
98
  }), T = n(() => ({
98
99
  "b-stepper__list--horizontal": N.value
99
100
  }));
100
- B(() => l.index, e), B(r, (s) => {
101
+ B(() => l.index, e), B(u, (s) => {
101
102
  a("update:index", s);
102
103
  });
103
104
  const k = ge(f);
@@ -116,20 +117,20 @@ const X = {
116
117
  class: "b-stepper__text-stepper"
117
118
  }, {
118
119
  default: E(() => [
119
- q(W(d(v)("step", { currentIndex: r.value + 1, totalSteps: m.value, content: y.value })), 1)
120
+ q(W(d(v)("step", { currentIndex: u.value + 1, totalSteps: m.value, content: y.value })), 1)
120
121
  ]),
121
122
  _: 1
122
123
  })
123
124
  ]));
124
125
  }
125
- }), Pe = /* @__PURE__ */ z(Ee, [["__scopeId", "data-v-3daeb439"]]);
126
+ }), He = /* @__PURE__ */ z(Ee, [["__scopeId", "data-v-3daeb439"]]);
126
127
  let Z = 0;
127
128
  const Ie = {
128
129
  beforeCreate() {
129
130
  this.uuid = Z.toString(), Z += 1;
130
131
  }
131
132
  }, Ne = { key: 0 };
132
- function Ae(t, u, l, a, v, i) {
133
+ function Ae(t, r, l, a, v, i) {
133
134
  return b(), g("svg", G({ role: "img" }, t.$attrs, {
134
135
  class: "ui-assets-icons-16",
135
136
  xmlns: "http://www.w3.org/2000/svg",
@@ -137,8 +138,8 @@ function Ae(t, u, l, a, v, i) {
137
138
  height: "16",
138
139
  fill: "none"
139
140
  }), [
140
- t.$attrs["svg-title"] ? (b(), g("title", Ne, W(t.$attrs["svg-title"]), 1)) : ue("", !0),
141
- u[0] || (u[0] = J("path", {
141
+ t.$attrs["svg-title"] ? (b(), g("title", Ne, W(t.$attrs["svg-title"]), 1)) : re("", !0),
142
+ r[0] || (r[0] = J("path", {
142
143
  fill: "#00112C",
143
144
  d: "M8 5.25C6.48122 5.25 5.25 6.48122 5.25 8C5.25 9.51878 6.48122 10.75 8 10.75C9.51878 10.75 10.75 9.51878 10.75 8C10.75 6.48122 9.51878 5.25 8 5.25Z"
144
145
  }, null, -1))
@@ -168,13 +169,13 @@ const he = /* @__PURE__ */ z(Ie, [["render", Ae]]), Re = {
168
169
  }
169
170
  },
170
171
  emits: ["update:substep-index"],
171
- setup(t, { emit: u }) {
172
- const l = re(), a = t, v = u, i = c(null), r = c(null), p = c([]), e = ie(P), y = n(() => {
172
+ setup(t, { emit: r }) {
173
+ const l = ue(), a = t, v = r, i = c(null), u = c(null), p = c([]), e = ie(P), y = n(() => {
173
174
  var o;
174
175
  return (o = i.value) == null ? void 0 : o.$el;
175
176
  }), m = n(() => e == null ? void 0 : e.value.steps.indexOf(y.value)), I = n(() => {
176
177
  var o;
177
- return (o = r.value) == null ? void 0 : o.$el.textContent;
178
+ return (o = u.value) == null ? void 0 : o.$el.textContent;
178
179
  }), N = n(() => p.value.map(({ buttonElement: o }) => o)), f = c(a.substepIndex), x = c(f.value), A = (o) => {
179
180
  o > x.value && (x.value = o), f.value = o;
180
181
  }, { registerStep: O, removeStep: T } = Q(p), k = c({
@@ -253,7 +254,7 @@ const he = /* @__PURE__ */ z(Ie, [["render", Ae]]), Re = {
253
254
  default: E(() => [
254
255
  $(d(D), {
255
256
  ref_key: "stepContent",
256
- ref: r,
257
+ ref: u,
257
258
  el: "span",
258
259
  variant: "body",
259
260
  stronger: _.value,
@@ -274,11 +275,11 @@ const he = /* @__PURE__ */ z(Ie, [["render", Ae]]), Re = {
274
275
  ])
275
276
  ], 2));
276
277
  }
277
- }), He = /* @__PURE__ */ z(Be, [["__scopeId", "data-v-1968679e"]]);
278
+ }), We = /* @__PURE__ */ z(Be, [["__scopeId", "data-v-1968679e"]]);
278
279
  export {
279
280
  H as B,
280
- He as a,
281
+ We as a,
281
282
  F as b,
282
- Pe as s
283
+ He as s
283
284
  };
284
- //# sourceMappingURL=step.ClnCjesW.js.map
285
+ //# sourceMappingURL=step.CyvTQbAk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"step.CyvTQbAk.js","sources":["../../../vue2/src/components/stepper/composables/use-keyboard-navigation/use-keyboard-navigation.ts","../../../vue2/src/components/stepper/composables/use-step-register/use-step-register.ts","../../../vue2/src/components/stepper/stepper.keys.ts","../../../vue2/src/components/stepper/stepper.types.ts","../../../vue2/src/components/stepper/stepper.vue","../../../../node_modules/.pnpm/@adyen+ui-assets-icons-16@6.0.2_vue@2.7.16/node_modules/@adyen/ui-assets-icons-16/dist/vue/dot.vue","../../../vue2/src/components/stepper/components/step/step.vue"],"sourcesContent":["import { Ref, UnwrapRef } from 'vue';\n\nimport { BentoKeyboardNavigationKeyDownEvent } from '@/types';\n\n/**\n * Returns keyboard navigation's event handlers to navigate through the steps\n *\n * @param steps the list of bento-steps DOM elements to focus on the navigation\n * @returns\n */\nexport const useKeyboardNavigation = (steps: Ref<UnwrapRef<HTMLButtonElement[]>>) => {\n // Returns the event handler that moves the focus on a given step offset\n function focusOnStep(indexOffset: number) {\n return ({ detail: event }) => {\n event.preventDefault();\n\n const currentIndex = steps.value.indexOf(document.activeElement as HTMLButtonElement);\n if (currentIndex < 0) {\n return;\n }\n\n steps.value[currentIndex + indexOffset]?.focus();\n };\n }\n\n const focusOnPreviousStep = focusOnStep(-1);\n const focusOnNextStep = focusOnStep(1);\n\n return {\n [BentoKeyboardNavigationKeyDownEvent.ARROW_DOWN]: focusOnNextStep,\n [BentoKeyboardNavigationKeyDownEvent.ARROW_RIGHT]: focusOnNextStep,\n [BentoKeyboardNavigationKeyDownEvent.ARROW_UP]: focusOnPreviousStep,\n [BentoKeyboardNavigationKeyDownEvent.ARROW_LEFT]: focusOnPreviousStep,\n };\n};\n","import type { Ref, UnwrapRef } from 'vue';\nimport type { BentoStepperStepExposeState } from '../../stepper.types';\n\n/**\n * Gets the position of a `bento-step` element within its `bento-stepper` parent.\n * @param stepState The `bento-step` state.\n * @returns The index of the element.\n */\nconst getStepPosition = (stepState: BentoStepperStepExposeState) => {\n // Button is wrapped by <li> element\n const listItemElement = (stepState.buttonElement as Ref<UnwrapRef<HTMLButtonElement>>).value.parentElement;\n const listElement = listItemElement.parentElement;\n return Array.from(listElement.children).indexOf(listItemElement);\n};\n\n/**\n * Provides methods to register/unregister `bento-step` elements to/from the `bento-stepper` step state.\n * These methods allow for tracking the child step elements, including their position in the DOM tree.\n * @param childrenSteps The `bento-stepper` (or `bento-step` if substeps) step state.\n */\nexport const useStepRegister = (childrenSteps: Ref<BentoStepperStepExposeState[]>) => {\n /**\n * Registers a step's HTML element in the stepper state.\n * Should be called by a `bento-step` when it is mounted.\n * @param stepState The `bento-step` state.\n */\n const registerStep = (stepState: BentoStepperStepExposeState) => {\n const position = getStepPosition(stepState);\n childrenSteps.value.splice(position, 0, {\n stepContent: stepState.stepContent as string,\n buttonElement: stepState.buttonElement as HTMLButtonElement,\n substeps: stepState.substeps as BentoStepperStepExposeState[],\n });\n };\n\n /**\n * Unregisters a step's HTML element in the stepper state.\n * Should be called by a `bento-step` before it is unmounted.\n * @param stepState The `bento-step` state.\n */\n const removeStep = (stepState: BentoStepperStepExposeState) => {\n childrenSteps.value.splice(\n childrenSteps.value.findIndex(step => step.buttonElement === stepState.buttonElement.value),\n 1\n );\n };\n\n return { registerStep, removeStep };\n};\n","export const STEPPER_STATE = Symbol('stepper state');\n","import type { ComputedRef, Ref, UnwrapRef } from 'vue';\n\nexport enum BentoStepperTypeOption {\n LINEAR = 'linear',\n NON_LINEAR = 'non-linear',\n}\n\nexport enum BentoStepperVariantOption {\n HORIZONTAL = 'horizontal',\n VERTICAL = 'vertical',\n}\n\nexport interface BentoStepperStepExposeState {\n buttonElement: HTMLButtonElement | Ref<UnwrapRef<HTMLButtonElement>>;\n substeps: BentoStepperStepExposeState[] | Ref<BentoStepperStepExposeState[]>;\n stepContent: string | ComputedRef<string>;\n}\n\nexport type BentoStepperState = Ref<{\n activeStepIndex: number;\n latestActiveStep: number;\n type: `${BentoStepperTypeOption}`;\n variant: `${BentoStepperVariantOption}`;\n steps: HTMLElement[];\n isParentStep?: boolean;\n navigateToStep: (index: number) => void;\n registerStep: (stepState: BentoStepperStepExposeState) => void;\n removeStep: (stepState: BentoStepperStepExposeState) => void;\n}>;\n","<template>\n <nav class=\"b-stepper\">\n <ol\n v-bento-keyboard-navigation-directive\n class=\"b-stepper__list\"\n :class=\"conditionalClasses\"\n v-on=\"keyboardNavigationListeners\"\n >\n <slot></slot>\n </ol>\n\n <bento-typography el=\"span\" variant=\"body\" stronger class=\"b-stepper__text-stepper\"\n >{{\n t('step', { currentIndex: activeStepIndex + 1, totalSteps: stepsAmount, content: currentStepContent })\n }}\n </bento-typography>\n </nav>\n</template>\n\n<script setup lang=\"ts\">\n import { BentoTypography } from '@/components/typography';\n\n import { computed, type DeepReadonly, PropType, provide, readonly, ref, watch } from 'vue';\n import { BentoKeyboardNavigationDirective as vBentoKeyboardNavigationDirective } from '@/directives';\n\n import { useKeyboardNavigation, useStepRegister } from './composables';\n import { useI18n } from '@/utils/ts/i18n';\n\n import { STEPPER_STATE } from './stepper.keys';\n import {\n BentoStepperState,\n BentoStepperStepExposeState,\n BentoStepperTypeOption,\n BentoStepperVariantOption,\n } from './stepper.types';\n\n import messages from './messages.json';\n\n const props = defineProps({\n /**\n * Type of stepper; defines how the stepper should behave. Default: linear\n * @values linear, non-linear\n */\n type: {\n type: String as PropType<`${BentoStepperTypeOption}`>,\n default: 'linear',\n },\n /**\n * Stepper variant; defines how the stepper should be displayed. Default: vertical\n * @values vertical, horizontal\n */\n variant: {\n type: String as PropType<`${BentoStepperVariantOption}`>,\n default: 'vertical',\n },\n /**\n * Active step index\n */\n index: {\n type: Number,\n default: 0,\n },\n });\n\n const emit = defineEmits<{\n /**\n * Event triggered when step is updated by the stepper\n */\n (e: 'update:index', index: number): void;\n }>();\n\n type MessageSchema = (typeof messages)['en-US'];\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const childrenSteps = ref<BentoStepperStepExposeState[]>([]);\n const activeStepIndex = ref(props.index);\n const latestActiveStep = ref(activeStepIndex.value);\n\n const navigateToStep = (index: number) => {\n // Stores latest active step index so users can navigate backwards and forwards on linear stepper\n if (index > latestActiveStep.value) {\n latestActiveStep.value = index;\n }\n activeStepIndex.value = index;\n };\n\n const currentStepContent = computed(() => childrenSteps.value[activeStepIndex.value]?.stepContent);\n const stepsAmount = computed(() => childrenSteps.value.length);\n const childrenStepsElements = computed(() => childrenSteps.value.map(({ buttonElement }) => buttonElement));\n const isHorizontalVariant = computed(() => props.variant === BentoStepperVariantOption.HORIZONTAL);\n\n // List of all visible steps nested on the stepper, including the substeps of the children steps\n // Flattening the steps on a single list makes the keyboard navigation easier to be handled\n const allVisibleStepsElements = computed(() =>\n childrenSteps.value\n .map(({ buttonElement, substeps }, index) => {\n const isStepActive = activeStepIndex.value === index;\n const isSubstepsVisible = !isHorizontalVariant.value && isStepActive;\n\n if (!isSubstepsVisible) {\n return [buttonElement];\n }\n\n return [buttonElement].concat(substeps.map(step => step.buttonElement));\n })\n .flat()\n );\n\n const { registerStep, removeStep } = useStepRegister(childrenSteps);\n\n const stepperState: BentoStepperState = ref({\n activeStepIndex,\n latestActiveStep,\n steps: childrenStepsElements,\n type: props.type,\n variant: props.variant,\n navigateToStep,\n registerStep,\n removeStep,\n });\n\n const conditionalClasses = computed(() => ({\n 'b-stepper__list--horizontal': isHorizontalVariant.value,\n }));\n\n watch(() => props.index, navigateToStep);\n watch(activeStepIndex, index => {\n emit('update:index', index);\n });\n\n const keyboardNavigationListeners = useKeyboardNavigation(allVisibleStepsElements);\n\n // Provides stepper state to BentoStep children components\n provide<DeepReadonly<BentoStepperState>>(STEPPER_STATE, readonly(stepperState));\n</script>\n\n<script lang=\"ts\">\n /**\n * Steppers break down complex processes into manageable steps to guide users through a sequential or multi-step process.\n *\n * @example\n * import { BentoStep, BentoStepper } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoStep, BentoStepper },\n * template: `\n * <bento-stepper :index=\"1\">\n * <bento-step>Step 1</bento-step>\n * <bento-step>Step 2</bento-step>\n * <bento-step>Step 3</bento-step>\n * </bento-stepper>\n * `\n * }\n */\n\n export default {\n i18n: { messages },\n name: 'stepper',\n };\n</script>\n\n<style scoped src=\"./stepper.scss\" />\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#00112C\" d=\"M8 5.25C6.48122 5.25 5.25 6.48122 5.25 8C5.25 9.51878 6.48122 10.75 8 10.75C9.51878 10.75 10.75 9.51878 10.75 8C10.75 6.48122 9.51878 5.25 8 5.25Z\"/></svg>\n</template>\n<script>\n import '../css/main.css';\n\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n","<template>\n <li :class=\"conditionalClasses\" class=\"b-step\">\n <base-button\n ref=\"buttonComponent\"\n :aria-current=\"ariaCurrentValue\"\n :aria-disabled=\"ariaDisabledValue\"\n class=\"b-step__button\"\n type=\"button\"\n :tabindex=\"tabIndexValue\"\n :disabled=\"isDisabled\"\n @click=\"navigateToStep\"\n @focus=\"isFocused = true\"\n @blur=\"isFocused = false\"\n >\n <template #iconLeft>\n <bento-typography el=\"span\" variant=\"body\" stronger class=\"b-step__index\" aria-hidden=\"true\">\n <checkmark-small-icon v-if=\"isCompleted\" />\n <template v-else-if=\"!isSubstep\">{{ index + 1 }}</template>\n <dot-icon v-else />\n </bento-typography>\n </template>\n\n <bento-typography ref=\"stepContent\" el=\"span\" variant=\"body\" :stronger=\"isActive\" class=\"b-step__content\">\n <slot></slot>\n </bento-typography>\n </base-button>\n\n <ul v-show=\"isSubstepsVisible\" ref=\"substepList\" class=\"b-step__substep-list\">\n <slot name=\"substeps\"></slot>\n </ul>\n </li>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, onBeforeUnmount, onMounted, provide, ref, useSlots, watch } from 'vue';\n import { BaseButton } from '@/components/internal/base-button';\n import { BentoTypography } from '@/components/typography';\n import CheckmarkSmallIcon from '@adyen/ui-assets-icons-16/vue/checkmark-small';\n import DotIcon from '@adyen/ui-assets-icons-16/vue/dot';\n\n import { useStepRegister } from '../../composables';\n import { STEPPER_STATE } from '../../stepper.keys';\n import {\n BentoStepperState,\n BentoStepperStepExposeState,\n BentoStepperTypeOption,\n BentoStepperVariantOption,\n } from '../../stepper.types';\n import { Booleanish } from '@/types';\n\n const slots = useSlots();\n\n const props = defineProps({\n /**\n * Completed status. Used on non-linear steppers to indicate if the step is completed.\n */\n completed: {\n type: Boolean,\n default: false,\n },\n /**\n * Active substep index\n */\n substepIndex: {\n type: Number,\n default: 0,\n },\n });\n\n const emit = defineEmits<{\n /**\n * Event triggered when substep is updated by the parent step\n */\n (e: 'update:substep-index', index: number): void;\n }>();\n\n // Element refs\n const buttonComponent = ref<InstanceType<typeof BaseButton> | null>(null);\n const stepContent = ref<InstanceType<typeof BentoTypography> | null>(null);\n const substeps = ref<BentoStepperStepExposeState[]>([]);\n\n // Injects parent BentoStepper state data\n const stepper = inject<BentoStepperState>(STEPPER_STATE);\n\n const buttonElement = computed(() => buttonComponent.value?.$el as HTMLButtonElement);\n const index = computed(() => stepper?.value.steps.indexOf(buttonElement.value));\n\n const stepContentValue = computed(() => stepContent.value?.$el.textContent);\n\n // Substep logic\n const substepsButtonElements = computed(() => substeps.value.map(({ buttonElement }) => buttonElement));\n\n const activeSubStepIndex = ref(props.substepIndex);\n const latestActiveSubStepIndex = ref(activeSubStepIndex.value);\n\n const navigateToSubstep = (value: number) => {\n if (value > latestActiveSubStepIndex.value) {\n latestActiveSubStepIndex.value = value;\n }\n\n activeSubStepIndex.value = value;\n };\n\n const { registerStep, removeStep } = useStepRegister(substeps);\n\n const stepState: BentoStepperState = ref({\n activeStepIndex: activeSubStepIndex,\n latestActiveStep: latestActiveSubStepIndex,\n type: stepper.value.type,\n variant: stepper.value.variant,\n steps: substepsButtonElements,\n isParentStep: true,\n navigateToStep: navigateToSubstep,\n registerStep,\n removeStep,\n });\n\n provide(STEPPER_STATE, stepState);\n\n watch(() => props.substepIndex, navigateToSubstep);\n watch(activeSubStepIndex, value => {\n emit('update:substep-index', value);\n });\n\n onMounted(() => {\n if (!stepper) {\n throw new Error(\n 'BentoStep components should only be used inside BentoStepper or other BentoStep components.'\n );\n }\n\n stepper.value.registerStep({\n buttonElement,\n stepContent: stepContentValue,\n substeps,\n });\n });\n\n onBeforeUnmount(() => {\n stepper.value.removeStep({\n buttonElement,\n stepContent: stepContentValue,\n substeps,\n });\n });\n\n // Step states\n const isSubstep = computed(() => stepper.value.isParentStep);\n const isFocused = ref(false);\n const isActive = computed(() => stepper?.value.activeStepIndex === index.value);\n const isSubstepsVisible = computed(\n () =>\n isActive.value &&\n stepper.value.variant !== BentoStepperVariantOption.HORIZONTAL &&\n !isSubstep.value &&\n slots.substeps\n );\n const isCompleted = computed(() => {\n if (stepper?.value.type === BentoStepperTypeOption.NON_LINEAR) {\n return props.completed;\n }\n\n return stepper?.value.latestActiveStep > index.value;\n });\n const isDisabled = computed(\n () => stepper?.value.type === BentoStepperTypeOption.LINEAR && index.value > stepper?.value.latestActiveStep\n );\n\n const navigateToStep = () => {\n if (isDisabled.value) {\n return;\n }\n\n stepper.value.navigateToStep(index.value);\n };\n\n // Styling and a11y\n const ariaCurrentValue = computed(() => (isActive.value ? 'step' : ('false' as Booleanish)));\n const ariaDisabledValue = computed(() => isDisabled.value.toString() as Booleanish);\n const tabIndexValue = computed(() => (isFocused.value || (index.value === 0 && !isSubstep.value) ? '0' : '-1'));\n\n const conditionalClasses = computed(() => ({\n 'b-step--active': isActive.value,\n 'b-step--completed': isCompleted.value,\n 'b-step--substep': isSubstep.value,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * Steps are components placed inside BentoSteppers to break down complex processes\n *\n * @example\n * import { BentoStep } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoStep },\n * template: `\n * <bento-stepper>\n * <bento-step>Step 1</bento-step>\n * <bento-step>\n * Step 2\n * <template #substeps>\n * <bento-step>Substep 1</bento-step>\n * <bento-step>Substep 2</bento-step>\n * </template>\n * </bento-step>\n * </bento-stepper>\n * `\n * }\n */\n\n export default {\n name: 'step',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./step.scss\" />\n"],"names":["useKeyboardNavigation","steps","focusOnStep","indexOffset","event","currentIndex","_a","focusOnPreviousStep","focusOnNextStep","BentoKeyboardNavigationKeyDownEvent","getStepPosition","stepState","listItemElement","listElement","useStepRegister","childrenSteps","position","step","STEPPER_STATE","BentoStepperTypeOption","BentoStepperTypeOption2","BentoStepperVariantOption","BentoStepperVariantOption2","__default__$1","messages","props","__props","emit","__emit","t","useI18n","ref","activeStepIndex","latestActiveStep","navigateToStep","index","currentStepContent","computed","stepsAmount","childrenStepsElements","buttonElement","isHorizontalVariant","allVisibleStepsElements","substeps","isStepActive","registerStep","removeStep","stepperState","conditionalClasses","watch","keyboardNavigationListeners","provide","readonly","uuid","openBlock","createElementBlock","mergeProps","_ctx","createCommentVNode","__default__","slots","useSlots","buttonComponent","stepContent","stepper","inject","stepContentValue","substepsButtonElements","buttonElement2","activeSubStepIndex","latestActiveSubStepIndex","navigateToSubstep","value","onMounted","onBeforeUnmount","isSubstep","isFocused","isActive","isSubstepsVisible","isCompleted","isDisabled","ariaCurrentValue","ariaDisabledValue","tabIndexValue"],"mappings":";;;;;;;;;AAUa,MAAAA,KAAA,CAAAC,MAAA;AAET,WAAAC,EAAAC,GAAA;AACI,WAAA,CAAA,EAAA,QAAAC,EAAA,MAAA;;AACI,MAAAA,EAAA,eAAA;AAEA,YAAAC,IAAAJ,EAAA,MAAA,QAAA,SAAA,aAAA;AACA,MAAAI,IAAA,MAIAC,IAAAL,EAAA,MAAAI,IAAAF,CAAA,MAAA,QAAAG,EAAA;AAAA,IAA+C;AAAA,EACnD;AAGJ,QAAAC,IAAAL,EAAA,EAAA,GACAM,IAAAN,EAAA,CAAA;AAEA,SAAA;AAAA,IAAO,CAAAO,EAAA,UAAA,GAAAD;AAAA,IAC+C,CAAAC,EAAA,WAAA,GAAAD;AAAA,IACC,CAAAC,EAAA,QAAA,GAA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AGhG9B,IAAA,MAAA;AACI,MAAA8C,EAAA,SAIAhB,EAAA,MAAA,eAAA7B,EAAA,KAAA;AAAA,IAAwC,GAI5C8C,KAAA5C,EAAA,MAAAwC,EAAA,QAAA,SAAA,OAAA,GACAK,KAAA7C,EAAA,MAAA2C,EAAA,MAAA,SAAA,CAAA,GACAG,KAAA9C,EAAA,MAAAuC,EAAA,SAAAzC,EAAA,UAAA,KAAA,CAAAwC,EAAA,QAAA,MAAA,IAAA,GAEA3B,KAAAX,EAAA,OAAA;AAAA,MAA2C,kBAAAwC,EAAA;AAAA,MACZ,qBAAAE,EAAA;AAAA,MACM,mBAAAJ,EAAA;AAAA,IACJ,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[5]}
@@ -1,31 +1,37 @@
1
- import { defineComponent as h, inject as p, computed as o, provide as D, openBlock as r, createElementBlock as v, renderSlot as S, ref as N, normalizeClass as _, createElementVNode as f, normalizeStyle as W, createVNode as y, unref as e, withCtx as b, createTextVNode as $, toDisplayString as g, createBlock as u, createCommentVNode as d, withDirectives as U } from "vue";
2
- import { _ as B } from "./_plugin-vue_export-helper.CHgC5LLL.js";
3
- import { B as V } from "./button.Br6CyG40.js";
4
- import { B as O } from "./info-icon.DIu8FeJC.js";
5
- import { B as R } from "./typography.z9P0Ec3Q.js";
6
- import { C as j } from "./copy.h-wVGvID.js";
7
- import { S as w } from "./search.EnLryD8V.js";
1
+ import { defineComponent as h, inject as p, computed as o, provide as D, openBlock as r, createElementBlock as v, renderSlot as B, ref as N, normalizeClass as _, createElementVNode as f, normalizeStyle as W, createVNode as y, unref as e, withCtx as b, createTextVNode as $, toDisplayString as g, createBlock as u, createCommentVNode as d, withDirectives as U } from "vue";
2
+ import { _ as S } from "./_plugin-vue_export-helper.CHgC5LLL.js";
3
+ import { B as R } from "./button.Br6CyG40.js";
4
+ import { B as V } from "./info-icon.CBiqUH3L.js";
5
+ import { B as j } from "./typography.z9P0Ec3Q.js";
6
+ import { C as O } from "./copy.5y12_05v.js";
7
+ import { S as w } from "./search.DJr0124y.js";
8
8
  import { u as A } from "./i18n.DL9GT2-k.js";
9
- import { B as x } from "./tooltip.DvsfWV0-.js";
9
+ import { B as J } from "./tooltip.DvsfWV0-.js";
10
10
  import "../assets/structured-list-item.css";
11
- const C = Symbol("structured list condensed style injection key"), I = Symbol("structured list labels width injection key"), z = ["25-75", "33-66", "42-58", "50-50"], F = { class: "b-structured-list" }, H = {}, J = /* @__PURE__ */ h({
12
- ...H,
11
+ const C = Symbol("structured list condensed style injection key"), I = Symbol("structured list labels width injection key"), x = ["25-75", "33-66", "42-58", "50-50"], z = { class: "b-structured-list" }, F = {}, H = /* @__PURE__ */ h({
12
+ ...F,
13
13
  __name: "structured-list",
14
14
  props: {
15
15
  labelsWidth: { default: null },
16
16
  layout: { default: "33-66" }
17
17
  },
18
18
  setup(n) {
19
- const s = n, i = p(C, !1), l = o(
20
- () => z.includes(s.layout) ? s.layout : "33-66"
21
- ), a = o(() => i ? "130px" : s.labelsWidth ? `${s.labelsWidth}px` : `${l.value.split("-")[0]}%`);
22
- return D(I, a), (c, m) => (r(), v("dl", F, [
23
- S(c.$slots, "default", {}, void 0, !0)
19
+ const s = n, c = p(C, !1), a = o(
20
+ () => x.includes(s.layout) ? s.layout : "33-66"
21
+ ), l = o(() => c ? "130px" : s.labelsWidth ? `${s.labelsWidth}px` : `${a.value.split("-")[0]}%`);
22
+ return D(I, l), (i, m) => (r(), v("dl", z, [
23
+ B(i.$slots, "default", {}, void 0, !0)
24
24
  ]));
25
25
  }
26
- }), ot = /* @__PURE__ */ B(J, [["__scopeId", "data-v-42e8c709"]]), T = {
26
+ }), ot = /* @__PURE__ */ S(H, [["__scopeId", "data-v-42e8c709"]]), T = {
27
27
  "en-US": {
28
28
  search: "Search"
29
+ },
30
+ "pt-BR": {
31
+ search: "Buscar"
32
+ },
33
+ "ja-JP": {
34
+ search: "検索"
29
35
  }
30
36
  }, K = {
31
37
  i18n: { messages: T }
@@ -41,25 +47,25 @@ const C = Symbol("structured list condensed style injection key"), I = Symbol("s
41
47
  truncate: { type: Boolean }
42
48
  },
43
49
  setup(n) {
44
- const s = "33%", i = n, { t: l } = A({ messages: T }), a = p(C, !1), c = p(I, N(s)), m = o(() => `flex-basis:${c.value}`), L = o(() => ({
45
- "b-structured-list-item--condensed": a
50
+ const s = "33%", c = n, { t: a } = A({ messages: T }), l = p(C, !1), i = p(I, N(s)), m = o(() => `flex-basis:${i.value}`), L = o(() => ({
51
+ "b-structured-list-item--condensed": l
46
52
  })), E = o(() => ({
47
- "b-structured-list-item__value--truncate": i.truncate
48
- })), k = o(() => a ? "caption" : "body");
49
- return (t, q) => (r(), v("div", {
53
+ "b-structured-list-item__value--truncate": c.truncate
54
+ })), k = o(() => l ? "caption" : "body");
55
+ return (t, P) => (r(), v("div", {
50
56
  class: _(["b-structured-list-item", L.value])
51
57
  }, [
52
58
  f("dt", {
53
59
  class: "b-structured-list-item__label",
54
60
  style: W(m.value)
55
61
  }, [
56
- y(e(R), { variant: k.value }, {
62
+ y(e(j), { variant: k.value }, {
57
63
  default: b(() => [
58
64
  $(g(t.label), 1)
59
65
  ]),
60
66
  _: 1
61
67
  }, 8, ["variant"]),
62
- t.labelInfo ? (r(), u(e(O), {
68
+ t.labelInfo ? (r(), u(e(V), {
63
69
  key: 0,
64
70
  class: "b-structured-list-item__icon",
65
71
  "tooltip-text": t.labelInfo
@@ -68,13 +74,13 @@ const C = Symbol("structured list condensed style injection key"), I = Symbol("s
68
74
  f("dd", {
69
75
  class: _(["b-structured-list-item__value", E.value])
70
76
  }, [
71
- S(t.$slots, "default", {}, void 0, !0),
72
- t.copy ? (r(), u(j, {
77
+ B(t.$slots, "default", {}, void 0, !0),
78
+ t.copy ? (r(), u(O, {
73
79
  key: 0,
74
80
  class: "b-structured-list-item__icon",
75
81
  text: t.copy
76
82
  }, null, 8, ["text"])) : d("", !0),
77
- t.search ? U((r(), u(e(V), {
83
+ t.search ? U((r(), u(e(R), {
78
84
  key: 1,
79
85
  class: "b-structured-list-item__icon",
80
86
  variant: "tertiary",
@@ -82,20 +88,20 @@ const C = Symbol("structured list condensed style injection key"), I = Symbol("s
82
88
  }, {
83
89
  iconLeft: b(() => [
84
90
  y(e(w), {
85
- "svg-title": e(l)("search")
91
+ "svg-title": e(a)("search")
86
92
  }, null, 8, ["svg-title"])
87
93
  ]),
88
94
  _: 1
89
95
  }, 8, ["onClick"])), [
90
- [e(x), t.searchTooltip ? t.searchTooltip : e(l)("search"), "top"]
96
+ [e(J), t.searchTooltip ? t.searchTooltip : e(a)("search"), "top"]
91
97
  ]) : d("", !0)
92
98
  ], 2)
93
99
  ], 2));
94
100
  }
95
- }), rt = /* @__PURE__ */ B(Y, [["__scopeId", "data-v-a401a9ff"]]);
101
+ }), rt = /* @__PURE__ */ S(Y, [["__scopeId", "data-v-a401a9ff"]]);
96
102
  export {
97
103
  ot as B,
98
104
  C as S,
99
105
  rt as a
100
106
  };
101
- //# sourceMappingURL=structured-list-item.Z-1ivOFu.js.map
107
+ //# sourceMappingURL=structured-list-item.DZvCfZuG.js.map