@adyen/bento-vue3 1.59.0 → 1.60.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (578) hide show
  1. package/package.json +10 -6
  2. package/dist/@types/components.d.ts +0 -201
  3. package/dist/@types/index.d.ts +0 -17796
  4. package/dist/accordion.js +0 -6
  5. package/dist/accordion.js.map +0 -1
  6. package/dist/action-bar.js +0 -5
  7. package/dist/action-bar.js.map +0 -1
  8. package/dist/alert.js +0 -8
  9. package/dist/alert.js.map +0 -1
  10. package/dist/assets/accordion-item.css +0 -1
  11. package/dist/assets/action-bar.css +0 -1
  12. package/dist/assets/alert.css +0 -1
  13. package/dist/assets/avatar.css +0 -1
  14. package/dist/assets/base-button.css +0 -1
  15. package/dist/assets/base-modal.css +0 -1
  16. package/dist/assets/button-actions-with-menu.css +0 -1
  17. package/dist/assets/button-actions.css +0 -1
  18. package/dist/assets/button.css +0 -1
  19. package/dist/assets/calendar.css +0 -1
  20. package/dist/assets/card.css +0 -1
  21. package/dist/assets/checkbox-group.css +0 -1
  22. package/dist/assets/checkbox-input.css +0 -1
  23. package/dist/assets/checkbox.css +0 -1
  24. package/dist/assets/chip.css +0 -1
  25. package/dist/assets/code-snippet.css +0 -1
  26. package/dist/assets/controls-group.css +0 -1
  27. package/dist/assets/copy.css +0 -1
  28. package/dist/assets/country.css +0 -1
  29. package/dist/assets/currency.css +0 -1
  30. package/dist/assets/dashboard-section.css +0 -1
  31. package/dist/assets/dashed-underline.css +0 -1
  32. package/dist/assets/data-grid-template.css +0 -1
  33. package/dist/assets/data-grid.css +0 -1
  34. package/dist/assets/date-picker.css +0 -1
  35. package/dist/assets/date-range-picker.css +0 -1
  36. package/dist/assets/date.css +0 -1
  37. package/dist/assets/dialog-page.css +0 -1
  38. package/dist/assets/divider.css +0 -1
  39. package/dist/assets/dropdown-default-textbox.css +0 -1
  40. package/dist/assets/dropdown-tag.css +0 -1
  41. package/dist/assets/dropdown.css +0 -1
  42. package/dist/assets/empty-state.css +0 -1
  43. package/dist/assets/error-message.css +0 -1
  44. package/dist/assets/file-uploader.css +0 -1
  45. package/dist/assets/filter-bar.css +0 -1
  46. package/dist/assets/fixed-scroller.css +0 -1
  47. package/dist/assets/focus-trap.css +0 -1
  48. package/dist/assets/footer-actions.css +0 -1
  49. package/dist/assets/form-layout-title.css +0 -1
  50. package/dist/assets/grid-layout.css +0 -1
  51. package/dist/assets/header-with-views.css +0 -1
  52. package/dist/assets/header.css +0 -1
  53. package/dist/assets/info-icon-with-popover.css +0 -1
  54. package/dist/assets/info-icon.css +0 -1
  55. package/dist/assets/input-field-password.css +0 -1
  56. package/dist/assets/input-field-phone-number.css +0 -1
  57. package/dist/assets/input-field.css +0 -1
  58. package/dist/assets/inspector.css +0 -1
  59. package/dist/assets/layout-row.css +0 -1
  60. package/dist/assets/link.css +0 -1
  61. package/dist/assets/listbox-option-tag.css +0 -1
  62. package/dist/assets/loading-indicator.css +0 -1
  63. package/dist/assets/main.css +0 -1
  64. package/dist/assets/menu.css +0 -1
  65. package/dist/assets/modal-fullscreen.css +0 -1
  66. package/dist/assets/pagination.css +0 -1
  67. package/dist/assets/payment-method.css +0 -1
  68. package/dist/assets/popover.css +0 -1
  69. package/dist/assets/popper-container.css +0 -1
  70. package/dist/assets/promo-banner.css +0 -1
  71. package/dist/assets/radio-group.css +0 -1
  72. package/dist/assets/radio-input.css +0 -1
  73. package/dist/assets/rich-text-editor.css +0 -1
  74. package/dist/assets/search-bar.css +0 -1
  75. package/dist/assets/secondary-nav.css +0 -1
  76. package/dist/assets/segmented-control.css +0 -1
  77. package/dist/assets/selection-card-group.css +0 -1
  78. package/dist/assets/sidepanel.css +0 -1
  79. package/dist/assets/status.css +0 -1
  80. package/dist/assets/step.css +0 -1
  81. package/dist/assets/structured-list-item.css +0 -1
  82. package/dist/assets/summary-grid.css +0 -1
  83. package/dist/assets/tabs.css +0 -1
  84. package/dist/assets/tag.css +0 -1
  85. package/dist/assets/teleport.css +0 -1
  86. package/dist/assets/textarea.css +0 -1
  87. package/dist/assets/timeline-item.css +0 -1
  88. package/dist/assets/toast.css +0 -1
  89. package/dist/assets/toggle-button.css +0 -1
  90. package/dist/assets/toggle.css +0 -1
  91. package/dist/assets/tooltip.css +0 -1
  92. package/dist/assets/tutorial.css +0 -1
  93. package/dist/assets/typography.css +0 -1
  94. package/dist/assets/use-cached-selected-values.css +0 -1
  95. package/dist/avatar.js +0 -5
  96. package/dist/avatar.js.map +0 -1
  97. package/dist/button.js +0 -16
  98. package/dist/button.js.map +0 -1
  99. package/dist/card.js +0 -7
  100. package/dist/card.js.map +0 -1
  101. package/dist/checkbox.js +0 -11
  102. package/dist/checkbox.js.map +0 -1
  103. package/dist/chip.js +0 -5
  104. package/dist/chip.js.map +0 -1
  105. package/dist/chunks/1-generic-use.CZhwP2Yc.js +0 -5
  106. package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +0 -1
  107. package/dist/chunks/1-generic-use.R6x8PEGA.js +0 -5
  108. package/dist/chunks/1-generic-use.R6x8PEGA.js.map +0 -1
  109. package/dist/chunks/2-generic-use.CNKjB4B7.js +0 -5
  110. package/dist/chunks/2-generic-use.CNKjB4B7.js.map +0 -1
  111. package/dist/chunks/2-generic-use.w0fUhovx.js +0 -5
  112. package/dist/chunks/2-generic-use.w0fUhovx.js.map +0 -1
  113. package/dist/chunks/3-generic-use.BLEzR04g.js +0 -5
  114. package/dist/chunks/3-generic-use.BLEzR04g.js.map +0 -1
  115. package/dist/chunks/3-generic-use.D3NFHgI4.js +0 -5
  116. package/dist/chunks/3-generic-use.D3NFHgI4.js.map +0 -1
  117. package/dist/chunks/4-generic-use.CULEpvgj.js +0 -5
  118. package/dist/chunks/4-generic-use.CULEpvgj.js.map +0 -1
  119. package/dist/chunks/4-generic-use.D82y3n39.js +0 -5
  120. package/dist/chunks/4-generic-use.D82y3n39.js.map +0 -1
  121. package/dist/chunks/_commonjsHelpers.C6fGbg64.js +0 -7
  122. package/dist/chunks/_commonjsHelpers.C6fGbg64.js.map +0 -1
  123. package/dist/chunks/_plugin-vue_export-helper.CHgC5LLL.js +0 -10
  124. package/dist/chunks/_plugin-vue_export-helper.CHgC5LLL.js.map +0 -1
  125. package/dist/chunks/accordion-item.CihL7JaZ.js +0 -142
  126. package/dist/chunks/accordion-item.CihL7JaZ.js.map +0 -1
  127. package/dist/chunks/action-bar.DHFGXPzd.js +0 -203
  128. package/dist/chunks/action-bar.DHFGXPzd.js.map +0 -1
  129. package/dist/chunks/adding-payment-methods.BJZLPxtM.js +0 -5
  130. package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +0 -1
  131. package/dist/chunks/adding-payment-methods.Dle8zt43.js +0 -5
  132. package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +0 -1
  133. package/dist/chunks/adyen-giving.Ffw_DlJK.js +0 -5
  134. package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +0 -1
  135. package/dist/chunks/adyen-giving.LiKHj_jY.js +0 -5
  136. package/dist/chunks/adyen-giving.LiKHj_jY.js.map +0 -1
  137. package/dist/chunks/alert.CjegN2iG.js +0 -169
  138. package/dist/chunks/alert.CjegN2iG.js.map +0 -1
  139. package/dist/chunks/aria-label.CaUURpnB.js +0 -13
  140. package/dist/chunks/aria-label.CaUURpnB.js.map +0 -1
  141. package/dist/chunks/avatar.B0-9jC6H.js +0 -94
  142. package/dist/chunks/avatar.B0-9jC6H.js.map +0 -1
  143. package/dist/chunks/base-button.DdNFlbgH.js +0 -115
  144. package/dist/chunks/base-button.DdNFlbgH.js.map +0 -1
  145. package/dist/chunks/base-modal.BXdrZf3U.js +0 -504
  146. package/dist/chunks/base-modal.BXdrZf3U.js.map +0 -1
  147. package/dist/chunks/base-modal.keys.C2PQXcE2.js +0 -5
  148. package/dist/chunks/base-modal.keys.C2PQXcE2.js.map +0 -1
  149. package/dist/chunks/bin.CA6UQCNZ.js +0 -37
  150. package/dist/chunks/bin.CA6UQCNZ.js.map +0 -1
  151. package/dist/chunks/button-actions-with-menu.DfnPv97A.js +0 -174
  152. package/dist/chunks/button-actions-with-menu.DfnPv97A.js.map +0 -1
  153. package/dist/chunks/button-actions.WnxN4KnV.js +0 -264
  154. package/dist/chunks/button-actions.WnxN4KnV.js.map +0 -1
  155. package/dist/chunks/button.CVZJTZv0.js +0 -120
  156. package/dist/chunks/button.CVZJTZv0.js.map +0 -1
  157. package/dist/chunks/calendar.BzN254pQ.js +0 -1288
  158. package/dist/chunks/calendar.BzN254pQ.js.map +0 -1
  159. package/dist/chunks/card.PFtc1o__.js +0 -213
  160. package/dist/chunks/card.PFtc1o__.js.map +0 -1
  161. package/dist/chunks/checkbox-group.Dsiyb1cX.js +0 -192
  162. package/dist/chunks/checkbox-group.Dsiyb1cX.js.map +0 -1
  163. package/dist/chunks/checkbox-input.DVayucaL.js +0 -168
  164. package/dist/chunks/checkbox-input.DVayucaL.js.map +0 -1
  165. package/dist/chunks/checkbox.DeNqOQ8F.js +0 -253
  166. package/dist/chunks/checkbox.DeNqOQ8F.js.map +0 -1
  167. package/dist/chunks/checkmark-circle-fill.jicbqe7k.js +0 -44
  168. package/dist/chunks/checkmark-circle-fill.jicbqe7k.js.map +0 -1
  169. package/dist/chunks/checkmark-small.D7l69yBf.js +0 -29
  170. package/dist/chunks/checkmark-small.D7l69yBf.js.map +0 -1
  171. package/dist/chunks/chevron-left.BF63HtOH.js +0 -52
  172. package/dist/chunks/chevron-left.BF63HtOH.js.map +0 -1
  173. package/dist/chunks/chevron-up.-0oLlHmh.js +0 -52
  174. package/dist/chunks/chevron-up.-0oLlHmh.js.map +0 -1
  175. package/dist/chunks/chip.BVCzNGaI.js +0 -71
  176. package/dist/chunks/chip.BVCzNGaI.js.map +0 -1
  177. package/dist/chunks/click-outside.C1Ud8AA2.js +0 -23
  178. package/dist/chunks/click-outside.C1Ud8AA2.js.map +0 -1
  179. package/dist/chunks/code-snippet.91V1hyL-.js +0 -334
  180. package/dist/chunks/code-snippet.91V1hyL-.js.map +0 -1
  181. package/dist/chunks/codemirror.Zv80n3Z2.js +0 -14628
  182. package/dist/chunks/codemirror.Zv80n3Z2.js.map +0 -1
  183. package/dist/chunks/controls-group.DzFmJYYp.js +0 -98
  184. package/dist/chunks/controls-group.DzFmJYYp.js.map +0 -1
  185. package/dist/chunks/copy.BNFlTYMb.js +0 -156
  186. package/dist/chunks/copy.BNFlTYMb.js.map +0 -1
  187. package/dist/chunks/country.BhAcCmRx.js +0 -99
  188. package/dist/chunks/country.BhAcCmRx.js.map +0 -1
  189. package/dist/chunks/country.types.C0Q_hhgJ.js +0 -269
  190. package/dist/chunks/country.types.C0Q_hhgJ.js.map +0 -1
  191. package/dist/chunks/cross-circle-fill-small.mY6ihJcA.js +0 -29
  192. package/dist/chunks/cross-circle-fill-small.mY6ihJcA.js.map +0 -1
  193. package/dist/chunks/cross-circle-fill.B7YpDLTK.js +0 -44
  194. package/dist/chunks/cross-circle-fill.B7YpDLTK.js.map +0 -1
  195. package/dist/chunks/cross-small.CFrBIeYK.js +0 -29
  196. package/dist/chunks/cross-small.CFrBIeYK.js.map +0 -1
  197. package/dist/chunks/cross.CbLEjiVy.js +0 -29
  198. package/dist/chunks/cross.CbLEjiVy.js.map +0 -1
  199. package/dist/chunks/currency.DagWnTry.js +0 -109
  200. package/dist/chunks/currency.DagWnTry.js.map +0 -1
  201. package/dist/chunks/dashboard-section.BTJ8h5Kd.js +0 -165
  202. package/dist/chunks/dashboard-section.BTJ8h5Kd.js.map +0 -1
  203. package/dist/chunks/dashed-underline.BpSS0BTl.js +0 -98
  204. package/dist/chunks/dashed-underline.BpSS0BTl.js.map +0 -1
  205. package/dist/chunks/data-grid-template.CnrbFvb3.js +0 -111
  206. package/dist/chunks/data-grid-template.CnrbFvb3.js.map +0 -1
  207. package/dist/chunks/data-grid-template.keys.2_AkxuNT.js +0 -5
  208. package/dist/chunks/data-grid-template.keys.2_AkxuNT.js.map +0 -1
  209. package/dist/chunks/data-grid.PAFw8voO.js +0 -3646
  210. package/dist/chunks/data-grid.PAFw8voO.js.map +0 -1
  211. package/dist/chunks/date-input.BqBdAO1E.js +0 -17
  212. package/dist/chunks/date-input.BqBdAO1E.js.map +0 -1
  213. package/dist/chunks/date-picker.CSn6F3aG.js +0 -315
  214. package/dist/chunks/date-picker.CSn6F3aG.js.map +0 -1
  215. package/dist/chunks/date-range-picker.ByQ_yM6z.js +0 -1170
  216. package/dist/chunks/date-range-picker.ByQ_yM6z.js.map +0 -1
  217. package/dist/chunks/date.CKXySBQv.js +0 -995
  218. package/dist/chunks/date.CKXySBQv.js.map +0 -1
  219. package/dist/chunks/debounce.DUTu11PS.js +0 -10
  220. package/dist/chunks/debounce.DUTu11PS.js.map +0 -1
  221. package/dist/chunks/dialog-page.C72BX6So.js +0 -175
  222. package/dist/chunks/dialog-page.C72BX6So.js.map +0 -1
  223. package/dist/chunks/directive.Cbdox5VL.js +0 -23
  224. package/dist/chunks/directive.Cbdox5VL.js.map +0 -1
  225. package/dist/chunks/divider.qUOSAbU6.js +0 -33
  226. package/dist/chunks/divider.qUOSAbU6.js.map +0 -1
  227. package/dist/chunks/dot.BW-xtyjC.js +0 -29
  228. package/dist/chunks/dot.BW-xtyjC.js.map +0 -1
  229. package/dist/chunks/dropdown-default-textbox.BNhy-QDH.js +0 -419
  230. package/dist/chunks/dropdown-default-textbox.BNhy-QDH.js.map +0 -1
  231. package/dist/chunks/dropdown-tag.D_oUoZBc.js +0 -202
  232. package/dist/chunks/dropdown-tag.D_oUoZBc.js.map +0 -1
  233. package/dist/chunks/dropdown.B8LbzSzW.js +0 -936
  234. package/dist/chunks/dropdown.B8LbzSzW.js.map +0 -1
  235. package/dist/chunks/empty-state.BGWjUH6G.js +0 -185
  236. package/dist/chunks/empty-state.BGWjUH6G.js.map +0 -1
  237. package/dist/chunks/error-message.BzDQxHUy.js +0 -158
  238. package/dist/chunks/error-message.BzDQxHUy.js.map +0 -1
  239. package/dist/chunks/es6.BA9GH7QZ.js +0 -11
  240. package/dist/chunks/es6.BA9GH7QZ.js.map +0 -1
  241. package/dist/chunks/events.FNmSWp_P.js +0 -52
  242. package/dist/chunks/events.FNmSWp_P.js.map +0 -1
  243. package/dist/chunks/expand.DusW7F7p.js +0 -33
  244. package/dist/chunks/expand.DusW7F7p.js.map +0 -1
  245. package/dist/chunks/file-uploader.HMZfzgaO.js +0 -2280
  246. package/dist/chunks/file-uploader.HMZfzgaO.js.map +0 -1
  247. package/dist/chunks/filter-bar.CKxLJDQE.js +0 -2976
  248. package/dist/chunks/filter-bar.CKxLJDQE.js.map +0 -1
  249. package/dist/chunks/fixed-scroller.BjxA_R63.js +0 -147
  250. package/dist/chunks/fixed-scroller.BjxA_R63.js.map +0 -1
  251. package/dist/chunks/focus-trap.BdrEB4Ld.js +0 -500
  252. package/dist/chunks/focus-trap.BdrEB4Ld.js.map +0 -1
  253. package/dist/chunks/footer-actions.DqKdjjjh.js +0 -110
  254. package/dist/chunks/footer-actions.DqKdjjjh.js.map +0 -1
  255. package/dist/chunks/form-layout-title.CsmjzAje.js +0 -206
  256. package/dist/chunks/form-layout-title.CsmjzAje.js.map +0 -1
  257. package/dist/chunks/form-layout.types.D3EKzbE7.js +0 -5
  258. package/dist/chunks/form-layout.types.D3EKzbE7.js.map +0 -1
  259. package/dist/chunks/generate-uid.NJ8tVoha.js +0 -32
  260. package/dist/chunks/generate-uid.NJ8tVoha.js.map +0 -1
  261. package/dist/chunks/get-date-locale.BN8xEjY0.js +0 -1735
  262. package/dist/chunks/get-date-locale.BN8xEjY0.js.map +0 -1
  263. package/dist/chunks/get-slot-text.DQlZEsId.js +0 -12
  264. package/dist/chunks/get-slot-text.DQlZEsId.js.map +0 -1
  265. package/dist/chunks/grid-layout.BTLE3rac.js +0 -114
  266. package/dist/chunks/grid-layout.BTLE3rac.js.map +0 -1
  267. package/dist/chunks/header-with-views.BVcLQi-H.js +0 -2354
  268. package/dist/chunks/header-with-views.BVcLQi-H.js.map +0 -1
  269. package/dist/chunks/header.CYPznLHg.js +0 -253
  270. package/dist/chunks/header.CYPznLHg.js.map +0 -1
  271. package/dist/chunks/i18n.B6g5VX0q.js +0 -3131
  272. package/dist/chunks/i18n.B6g5VX0q.js.map +0 -1
  273. package/dist/chunks/image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js +0 -47
  274. package/dist/chunks/image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js.map +0 -1
  275. package/dist/chunks/index.BDuTpjD8.js +0 -40
  276. package/dist/chunks/index.BDuTpjD8.js.map +0 -1
  277. package/dist/chunks/index.BxBB1rsx.js +0 -15
  278. package/dist/chunks/index.BxBB1rsx.js.map +0 -1
  279. package/dist/chunks/index.CVpo3mlK.js +0 -528
  280. package/dist/chunks/index.CVpo3mlK.js.map +0 -1
  281. package/dist/chunks/index.CWuzEfiV.js +0 -6
  282. package/dist/chunks/index.CWuzEfiV.js.map +0 -1
  283. package/dist/chunks/index.DD7TppDb.js +0 -10
  284. package/dist/chunks/index.DD7TppDb.js.map +0 -1
  285. package/dist/chunks/info-icon-with-popover.BUtJRYXy.js +0 -97
  286. package/dist/chunks/info-icon-with-popover.BUtJRYXy.js.map +0 -1
  287. package/dist/chunks/info-icon.MO6y9Dyv.js +0 -45
  288. package/dist/chunks/info-icon.MO6y9Dyv.js.map +0 -1
  289. package/dist/chunks/info.HK3R7Drc.js +0 -44
  290. package/dist/chunks/info.HK3R7Drc.js.map +0 -1
  291. package/dist/chunks/input-field-password.c6WXpF9U.js +0 -366
  292. package/dist/chunks/input-field-password.c6WXpF9U.js.map +0 -1
  293. package/dist/chunks/input-field-phone-number.DQxF-6wT.js +0 -3106
  294. package/dist/chunks/input-field-phone-number.DQxF-6wT.js.map +0 -1
  295. package/dist/chunks/input-field.BDEEGU2t.js +0 -298
  296. package/dist/chunks/input-field.BDEEGU2t.js.map +0 -1
  297. package/dist/chunks/inspector.types.BQnVv5HX.js +0 -187
  298. package/dist/chunks/inspector.types.BQnVv5HX.js.map +0 -1
  299. package/dist/chunks/internal-error.BLZodVBE.js +0 -5
  300. package/dist/chunks/internal-error.BLZodVBE.js.map +0 -1
  301. package/dist/chunks/internal-error.BmrwJFpR.js +0 -5
  302. package/dist/chunks/internal-error.BmrwJFpR.js.map +0 -1
  303. package/dist/chunks/keyboard-navigation.CqgGzfZQ.js +0 -66
  304. package/dist/chunks/keyboard-navigation.CqgGzfZQ.js.map +0 -1
  305. package/dist/chunks/layout-row.CRRLYA03.js +0 -100
  306. package/dist/chunks/layout-row.CRRLYA03.js.map +0 -1
  307. package/dist/chunks/link.CTH1xj0i.js +0 -116
  308. package/dist/chunks/link.CTH1xj0i.js.map +0 -1
  309. package/dist/chunks/listbox-option-tag.CTipR05e.js +0 -55
  310. package/dist/chunks/listbox-option-tag.CTipR05e.js.map +0 -1
  311. package/dist/chunks/loading-indicator.DEepb9Wl.js +0 -44
  312. package/dist/chunks/loading-indicator.DEepb9Wl.js.map +0 -1
  313. package/dist/chunks/menu.HVsIOPzt.js +0 -768
  314. package/dist/chunks/menu.HVsIOPzt.js.map +0 -1
  315. package/dist/chunks/modal-fullscreen.CN1dCmU-.js +0 -270
  316. package/dist/chunks/modal-fullscreen.CN1dCmU-.js.map +0 -1
  317. package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js +0 -5
  318. package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js.map +0 -1
  319. package/dist/chunks/modal.vue_vue_type_script_setup_true_lang._xN4vNxW.js +0 -501
  320. package/dist/chunks/modal.vue_vue_type_script_setup_true_lang._xN4vNxW.js.map +0 -1
  321. package/dist/chunks/no-results-found.Bg_ZcEid.js +0 -5
  322. package/dist/chunks/no-results-found.Bg_ZcEid.js.map +0 -1
  323. package/dist/chunks/no-results-found.BqvYsBR6.js +0 -5
  324. package/dist/chunks/no-results-found.BqvYsBR6.js.map +0 -1
  325. package/dist/chunks/notifications-cleared.BMZk37uf.js +0 -5
  326. package/dist/chunks/notifications-cleared.BMZk37uf.js.map +0 -1
  327. package/dist/chunks/notifications-cleared.C7W9ZXY7.js +0 -5
  328. package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +0 -1
  329. package/dist/chunks/on-click-outside.D9aY9g8G.js +0 -101
  330. package/dist/chunks/on-click-outside.D9aY9g8G.js.map +0 -1
  331. package/dist/chunks/page-not-found.COJLPVaU.js +0 -5
  332. package/dist/chunks/page-not-found.COJLPVaU.js.map +0 -1
  333. package/dist/chunks/page-not-found.DWW6W-PZ.js +0 -5
  334. package/dist/chunks/page-not-found.DWW6W-PZ.js.map +0 -1
  335. package/dist/chunks/pagination.Cv-jL5MP.js +0 -461
  336. package/dist/chunks/pagination.Cv-jL5MP.js.map +0 -1
  337. package/dist/chunks/payment-method.eazefwm6.js +0 -125
  338. package/dist/chunks/payment-method.eazefwm6.js.map +0 -1
  339. package/dist/chunks/payment-method.types.BqtH7RM2.js +0 -5
  340. package/dist/chunks/payment-method.types.BqtH7RM2.js.map +0 -1
  341. package/dist/chunks/planned-maintenance.C61sWB9h.js +0 -5
  342. package/dist/chunks/planned-maintenance.C61sWB9h.js.map +0 -1
  343. package/dist/chunks/planned-maintenance.jmWYTdet.js +0 -5
  344. package/dist/chunks/planned-maintenance.jmWYTdet.js.map +0 -1
  345. package/dist/chunks/popover.sXC1vaC4.js +0 -350
  346. package/dist/chunks/popover.sXC1vaC4.js.map +0 -1
  347. package/dist/chunks/popper-container.CWgM0skS.js +0 -1396
  348. package/dist/chunks/popper-container.CWgM0skS.js.map +0 -1
  349. package/dist/chunks/popper-container.types.BCZMbVFD.js +0 -9
  350. package/dist/chunks/popper-container.types.BCZMbVFD.js.map +0 -1
  351. package/dist/chunks/promo-banner.CoB1tBCC.js +0 -126
  352. package/dist/chunks/promo-banner.CoB1tBCC.js.map +0 -1
  353. package/dist/chunks/radio-group.BzLVfoL0.js +0 -321
  354. package/dist/chunks/radio-group.BzLVfoL0.js.map +0 -1
  355. package/dist/chunks/radio-input.DKfQGxtp.js +0 -96
  356. package/dist/chunks/radio-input.DKfQGxtp.js.map +0 -1
  357. package/dist/chunks/referrals.BvtT-kQS.js +0 -5
  358. package/dist/chunks/referrals.BvtT-kQS.js.map +0 -1
  359. package/dist/chunks/referrals.aX8WZigH.js +0 -5
  360. package/dist/chunks/referrals.aX8WZigH.js.map +0 -1
  361. package/dist/chunks/refresh.C20ROVDS.js +0 -29
  362. package/dist/chunks/refresh.C20ROVDS.js.map +0 -1
  363. package/dist/chunks/resize.Bqks3WUm.js +0 -15
  364. package/dist/chunks/resize.Bqks3WUm.js.map +0 -1
  365. package/dist/chunks/rich-text-editor.C5RIGjDX.js +0 -6221
  366. package/dist/chunks/rich-text-editor.C5RIGjDX.js.map +0 -1
  367. package/dist/chunks/search-bar.C8bAeztI.js +0 -114
  368. package/dist/chunks/search-bar.C8bAeztI.js.map +0 -1
  369. package/dist/chunks/search.CW_aTqip.js +0 -44
  370. package/dist/chunks/search.CW_aTqip.js.map +0 -1
  371. package/dist/chunks/secondary-nav.BZF_9ztn.js +0 -137
  372. package/dist/chunks/secondary-nav.BZF_9ztn.js.map +0 -1
  373. package/dist/chunks/segmented-control.types.BHRLV8KU.js +0 -5
  374. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +0 -1
  375. package/dist/chunks/segmented-control.u3a7Mssn.js +0 -144
  376. package/dist/chunks/segmented-control.u3a7Mssn.js.map +0 -1
  377. package/dist/chunks/selection-card-group.CSFQ-f8m.js +0 -474
  378. package/dist/chunks/selection-card-group.CSFQ-f8m.js.map +0 -1
  379. package/dist/chunks/show.ByWWaogc.js +0 -64
  380. package/dist/chunks/show.ByWWaogc.js.map +0 -1
  381. package/dist/chunks/sidepanel.keys.R0DKQuYx.js +0 -5
  382. package/dist/chunks/sidepanel.keys.R0DKQuYx.js.map +0 -1
  383. package/dist/chunks/sidepanel.kwEMG5ee.js +0 -254
  384. package/dist/chunks/sidepanel.kwEMG5ee.js.map +0 -1
  385. package/dist/chunks/status.types.Bdv2zuuh.js +0 -44
  386. package/dist/chunks/status.types.Bdv2zuuh.js.map +0 -1
  387. package/dist/chunks/step.7l-t-eN9.js +0 -264
  388. package/dist/chunks/step.7l-t-eN9.js.map +0 -1
  389. package/dist/chunks/structured-list-item.DLJp-ApS.js +0 -108
  390. package/dist/chunks/structured-list-item.DLJp-ApS.js.map +0 -1
  391. package/dist/chunks/success.DhioLvPD.js +0 -5
  392. package/dist/chunks/success.DhioLvPD.js.map +0 -1
  393. package/dist/chunks/success.nNwxJRBS.js +0 -5
  394. package/dist/chunks/success.nNwxJRBS.js.map +0 -1
  395. package/dist/chunks/summary-grid.keys.CxTf_FOc.js +0 -6
  396. package/dist/chunks/summary-grid.keys.CxTf_FOc.js.map +0 -1
  397. package/dist/chunks/summary-grid.types.DkyTeEAn.js +0 -466
  398. package/dist/chunks/summary-grid.types.DkyTeEAn.js.map +0 -1
  399. package/dist/chunks/tabs.Bn4YIjoy.js +0 -266
  400. package/dist/chunks/tabs.Bn4YIjoy.js.map +0 -1
  401. package/dist/chunks/tabs.keys.Bc2pSKRw.js +0 -7
  402. package/dist/chunks/tabs.keys.Bc2pSKRw.js.map +0 -1
  403. package/dist/chunks/tag.Me7nYLMe.js +0 -51
  404. package/dist/chunks/tag.Me7nYLMe.js.map +0 -1
  405. package/dist/chunks/teleport.CfGWjxe2.js +0 -129
  406. package/dist/chunks/teleport.CfGWjxe2.js.map +0 -1
  407. package/dist/chunks/textarea.BbSzCJ-3.js +0 -278
  408. package/dist/chunks/textarea.BbSzCJ-3.js.map +0 -1
  409. package/dist/chunks/timeline-item._h_dMFfm.js +0 -567
  410. package/dist/chunks/timeline-item._h_dMFfm.js.map +0 -1
  411. package/dist/chunks/toast.Ae5ZoWHb.js +0 -221
  412. package/dist/chunks/toast.Ae5ZoWHb.js.map +0 -1
  413. package/dist/chunks/toggle-button.Dv1t15yj.js +0 -80
  414. package/dist/chunks/toggle-button.Dv1t15yj.js.map +0 -1
  415. package/dist/chunks/toggle.hoD_i2Ey.js +0 -161
  416. package/dist/chunks/toggle.hoD_i2Ey.js.map +0 -1
  417. package/dist/chunks/tooltip.CGMSPub2.js +0 -205
  418. package/dist/chunks/tooltip.CGMSPub2.js.map +0 -1
  419. package/dist/chunks/truncate.BfIl_-71.js +0 -8
  420. package/dist/chunks/truncate.BfIl_-71.js.map +0 -1
  421. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.CysjLLSS.js +0 -423
  422. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.CysjLLSS.js.map +0 -1
  423. package/dist/chunks/typography.DN5eC5ch.js +0 -83
  424. package/dist/chunks/typography.DN5eC5ch.js.map +0 -1
  425. package/dist/chunks/upload-files.5wQwbfkp.js +0 -5
  426. package/dist/chunks/upload-files.5wQwbfkp.js.map +0 -1
  427. package/dist/chunks/upload-files.jTQY6y2X.js +0 -5
  428. package/dist/chunks/upload-files.jTQY6y2X.js.map +0 -1
  429. package/dist/chunks/use-bento-toast-controller.D3LA1FCd.js +0 -50
  430. package/dist/chunks/use-bento-toast-controller.D3LA1FCd.js.map +0 -1
  431. package/dist/chunks/use-cached-selected-values.Dk0UxwFJ.js +0 -1475
  432. package/dist/chunks/use-cached-selected-values.Dk0UxwFJ.js.map +0 -1
  433. package/dist/chunks/use-click-outside.BnhTgpSt.js +0 -14
  434. package/dist/chunks/use-click-outside.BnhTgpSt.js.map +0 -1
  435. package/dist/chunks/use-country-items.4kZgVg_l.js +0 -30
  436. package/dist/chunks/use-country-items.4kZgVg_l.js.map +0 -1
  437. package/dist/chunks/use-country-phon-code.DVgE19zT.js +0 -5610
  438. package/dist/chunks/use-country-phon-code.DVgE19zT.js.map +0 -1
  439. package/dist/chunks/use-default-slot-validator.O02rzsob.js +0 -16
  440. package/dist/chunks/use-default-slot-validator.O02rzsob.js.map +0 -1
  441. package/dist/chunks/use-expandable-content-height.GkjjbmPy.js +0 -17
  442. package/dist/chunks/use-expandable-content-height.GkjjbmPy.js.map +0 -1
  443. package/dist/chunks/use-form-layout-loading.D3lALhtC.js +0 -12
  444. package/dist/chunks/use-form-layout-loading.D3lALhtC.js.map +0 -1
  445. package/dist/chunks/use-has-slot.B7eQSabc.js +0 -15
  446. package/dist/chunks/use-has-slot.B7eQSabc.js.map +0 -1
  447. package/dist/chunks/warning-filled.DmHh0nYG.js +0 -29
  448. package/dist/chunks/warning-filled.DmHh0nYG.js.map +0 -1
  449. package/dist/chunks/wrong-environment.BOsyKdRI.js +0 -5
  450. package/dist/chunks/wrong-environment.BOsyKdRI.js.map +0 -1
  451. package/dist/chunks/wrong-environment.BiHTPtbJ.js +0 -5
  452. package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +0 -1
  453. package/dist/click-outside.js +0 -5
  454. package/dist/click-outside.js.map +0 -1
  455. package/dist/code-snippet.js +0 -8
  456. package/dist/code-snippet.js.map +0 -1
  457. package/dist/country.js +0 -12
  458. package/dist/country.js.map +0 -1
  459. package/dist/currency.js +0 -6
  460. package/dist/currency.js.map +0 -1
  461. package/dist/dashboard-template.js +0 -6
  462. package/dist/dashboard-template.js.map +0 -1
  463. package/dist/dashed-underline.js +0 -5
  464. package/dist/dashed-underline.js.map +0 -1
  465. package/dist/data-grid-template.js +0 -5
  466. package/dist/data-grid-template.js.map +0 -1
  467. package/dist/data-grid.js +0 -11
  468. package/dist/data-grid.js.map +0 -1
  469. package/dist/date-picker.js +0 -8
  470. package/dist/date-picker.js.map +0 -1
  471. package/dist/date-range-picker.js +0 -8
  472. package/dist/date-range-picker.js.map +0 -1
  473. package/dist/date.js +0 -6
  474. package/dist/date.js.map +0 -1
  475. package/dist/divider.js +0 -5
  476. package/dist/divider.js.map +0 -1
  477. package/dist/dropdown.js +0 -16
  478. package/dist/dropdown.js.map +0 -1
  479. package/dist/empty-state.js +0 -8
  480. package/dist/empty-state.js.map +0 -1
  481. package/dist/file-uploader.js +0 -5
  482. package/dist/file-uploader.js.map +0 -1
  483. package/dist/filter-bar.js +0 -8
  484. package/dist/filter-bar.js.map +0 -1
  485. package/dist/focus-trap.js +0 -5
  486. package/dist/focus-trap.js.map +0 -1
  487. package/dist/fonts/fonts.css +0 -2
  488. package/dist/form-layout.js +0 -8
  489. package/dist/form-layout.js.map +0 -1
  490. package/dist/header-with-views.js +0 -5
  491. package/dist/header-with-views.js.map +0 -1
  492. package/dist/header.js +0 -5
  493. package/dist/header.js.map +0 -1
  494. package/dist/image.js +0 -7
  495. package/dist/image.js.map +0 -1
  496. package/dist/index.js +0 -370
  497. package/dist/index.js.map +0 -1
  498. package/dist/info-icon.js +0 -5
  499. package/dist/info-icon.js.map +0 -1
  500. package/dist/input-field-password.js +0 -10
  501. package/dist/input-field-password.js.map +0 -1
  502. package/dist/input-field-phone-number.js +0 -5
  503. package/dist/input-field-phone-number.js.map +0 -1
  504. package/dist/input-field.js +0 -10
  505. package/dist/input-field.js.map +0 -1
  506. package/dist/inspector.js +0 -6
  507. package/dist/inspector.js.map +0 -1
  508. package/dist/internal.js +0 -43
  509. package/dist/internal.js.map +0 -1
  510. package/dist/layout.js +0 -6
  511. package/dist/layout.js.map +0 -1
  512. package/dist/link.js +0 -6
  513. package/dist/link.js.map +0 -1
  514. package/dist/loading-indicator.js +0 -6
  515. package/dist/loading-indicator.js.map +0 -1
  516. package/dist/menu.js +0 -6
  517. package/dist/menu.js.map +0 -1
  518. package/dist/modal-fullscreen.js +0 -6
  519. package/dist/modal-fullscreen.js.map +0 -1
  520. package/dist/modal.js +0 -14
  521. package/dist/modal.js.map +0 -1
  522. package/dist/pagination.js +0 -5
  523. package/dist/pagination.js.map +0 -1
  524. package/dist/payment-method.js +0 -7
  525. package/dist/payment-method.js.map +0 -1
  526. package/dist/popover.js +0 -6
  527. package/dist/popover.js.map +0 -1
  528. package/dist/popper-container.js +0 -10
  529. package/dist/popper-container.js.map +0 -1
  530. package/dist/promo-banner.js +0 -7
  531. package/dist/promo-banner.js.map +0 -1
  532. package/dist/radio-group.js +0 -9
  533. package/dist/radio-group.js.map +0 -1
  534. package/dist/rich-text-editor.js +0 -5
  535. package/dist/rich-text-editor.js.map +0 -1
  536. package/dist/search-bar.js +0 -9
  537. package/dist/search-bar.js.map +0 -1
  538. package/dist/secondary-nav.js +0 -5
  539. package/dist/secondary-nav.js.map +0 -1
  540. package/dist/segmented-control.js +0 -7
  541. package/dist/segmented-control.js.map +0 -1
  542. package/dist/selection-card.js +0 -7
  543. package/dist/selection-card.js.map +0 -1
  544. package/dist/sidepanel.js +0 -7
  545. package/dist/sidepanel.js.map +0 -1
  546. package/dist/status.js +0 -6
  547. package/dist/status.js.map +0 -1
  548. package/dist/stepper.js +0 -8
  549. package/dist/stepper.js.map +0 -1
  550. package/dist/structured-list.js +0 -6
  551. package/dist/structured-list.js.map +0 -1
  552. package/dist/styles/bento-dark.css +0 -2055
  553. package/dist/styles/bento-light.css +0 -2054
  554. package/dist/styles/bento.css +0 -2054
  555. package/dist/styles/legacy.css +0 -2209
  556. package/dist/styles/styleguide.css +0 -2109
  557. package/dist/styles/utility.css +0 -987
  558. package/dist/summary-grid.js +0 -12
  559. package/dist/summary-grid.js.map +0 -1
  560. package/dist/tabs.js +0 -6
  561. package/dist/tabs.js.map +0 -1
  562. package/dist/tag.js +0 -6
  563. package/dist/tag.js.map +0 -1
  564. package/dist/textarea.js +0 -5
  565. package/dist/textarea.js.map +0 -1
  566. package/dist/timeline.js +0 -10
  567. package/dist/timeline.js.map +0 -1
  568. package/dist/toast.js +0 -5
  569. package/dist/toast.js.map +0 -1
  570. package/dist/toggle.js +0 -7
  571. package/dist/toggle.js.map +0 -1
  572. package/dist/tutorial.js +0 -5
  573. package/dist/tutorial.js.map +0 -1
  574. package/dist/typography.js +0 -8
  575. package/dist/typography.js.map +0 -1
  576. package/dist/use-form-v4.js +0 -8300
  577. package/dist/use-form-v4.js.map +0 -1
  578. package/dist/web-types.json +0 -49
@@ -1,254 +0,0 @@
1
- import { defineComponent as S, createBlock as T, openBlock as f, unref as t, createSlots as K, withCtx as n, createElementVNode as E, createVNode as c, renderSlot as O, createTextVNode as J, toDisplayString as Y, toRefs as M, ref as i, computed as C, watch as j, nextTick as z, provide as A, createElementBlock as D, withKeys as H, normalizeClass as q, withModifiers as Q, withDirectives as W, createCommentVNode as X } from "vue";
2
- import { B as y, d as Z } from "./typography.DN5eC5ch.js";
3
- import { F as ee } from "./footer-actions.DqKdjjjh.js";
4
- import { D as te, B as se, b as ae, a as ie } from "./dialog-page.C72BX6So.js";
5
- import { _ as N } from "./_plugin-vue_export-helper.CHgC5LLL.js";
6
- import { B as ne } from "./button.CVZJTZv0.js";
7
- import { B as oe } from "./focus-trap.BdrEB4Ld.js";
8
- import { C as le } from "./cross.CbLEjiVy.js";
9
- import { S as re } from "./sidepanel.keys.R0DKQuYx.js";
10
- import { B as ce } from "./directive.Cbdox5VL.js";
11
- import { u as ue } from "./i18n.B6g5VX0q.js";
12
- import { g as de } from "./generate-uid.NJ8tVoha.js";
13
- import "../assets/sidepanel.css";
14
- const pe = { class: "b-sidepanel-page__header" }, fe = { class: "b-sidepanel-page__content" }, ve = { class: "b-sidepanel-page__actions" }, me = {}, _e = /* @__PURE__ */ S({
15
- ...me,
16
- __name: "sidepanel-page",
17
- props: {
18
- /**
19
- * List of actions that will be used to render the buttons.
20
- * First element in the list will be rendered as "primary".
21
- * All elements after the first will be rendered as "secondary".
22
- *
23
- * ```
24
- * [{
25
- * title: 'Primary',
26
- * event: () => { ... },
27
- * icon: FourPeopleIcon
28
- * }, {
29
- * title: 'Secondary',
30
- * event: () => { ... }
31
- * }]
32
- * ```
33
- */
34
- actions: {
35
- type: Array,
36
- default: null
37
- },
38
- /**
39
- * Text label that is displayed left to the action buttons
40
- */
41
- actionsLabel: {
42
- type: String,
43
- default: null
44
- },
45
- /**
46
- * If passed - sets first button color to red
47
- */
48
- destructiveActions: {
49
- type: Boolean,
50
- default: !1
51
- },
52
- /**
53
- * Identifier of the page, used with activePage prop to handle sidepanel navigation
54
- */
55
- pageId: {
56
- type: String,
57
- default: void 0
58
- },
59
- /**
60
- * ID of the page for the back button to navigate to. Only use it to overwrite the default back behavior
61
- * Used when the back button should not take the user to the natural previous page
62
- * Set to `null` to hide back button in the page
63
- */
64
- previousPage: {
65
- type: String,
66
- default: void 0
67
- },
68
- /**
69
- * Title of the sidepanel page
70
- */
71
- title: {
72
- type: String,
73
- default: null
74
- }
75
- },
76
- setup(e) {
77
- return (m, s) => (f(), T(t(te), {
78
- class: "b-sidepanel-page",
79
- "page-id": e.pageId,
80
- "previous-page": e.previousPage
81
- }, K({
82
- header: n(() => [
83
- E("div", pe, [
84
- c(t(y), {
85
- class: "b-sidepanel-page__title",
86
- el: "h2",
87
- variant: "title"
88
- }, {
89
- default: n(() => [
90
- J(Y(e.title), 1)
91
- ]),
92
- _: 1
93
- })
94
- ])
95
- ]),
96
- content: n(() => [
97
- E("div", fe, [
98
- c(t(y), {
99
- el: "div",
100
- variant: "body"
101
- }, {
102
- default: n(() => [
103
- O(m.$slots, "default", {}, void 0, !0)
104
- ]),
105
- _: 3
106
- })
107
- ])
108
- ]),
109
- _: 2
110
- }, [
111
- e.actions && e.actions.length > 0 ? {
112
- name: "footer",
113
- fn: n(() => [
114
- E("div", ve, [
115
- c(t(ee), {
116
- actions: e.actions,
117
- "actions-label": e.actionsLabel,
118
- "destructive-actions": e.destructiveActions
119
- }, null, 8, ["actions", "actions-label", "destructive-actions"])
120
- ])
121
- ]),
122
- key: "0"
123
- } : void 0
124
- ]), 1032, ["page-id", "previous-page"]));
125
- }
126
- }), Ge = /* @__PURE__ */ N(_e, [["__scopeId", "data-v-b0fa716c"]]);
127
- var v = /* @__PURE__ */ ((e) => (e.UPDATE_ACTIVE_PAGE = "update:active-page", e.UPDATE_IS_OPEN = "update:is-open", e))(v || {});
128
- const G = {
129
- "en-US": {
130
- close: "Close"
131
- },
132
- "ja-JP": {
133
- close: "閉じる"
134
- },
135
- "pt-BR": {
136
- close: "Fechar"
137
- }
138
- }, ge = {
139
- key: 0,
140
- class: "b-sidepanel__close-button"
141
- }, Ee = {
142
- i18n: { messages: G }
143
- }, Ae = /* @__PURE__ */ S({
144
- ...Ee,
145
- __name: "sidepanel",
146
- props: {
147
- /**
148
- * The id of the current active page
149
- * Should be the same id as the BentoSidepanelPage to be displayed
150
- * If the component only has one page, it can be left null/undefined.
151
- */
152
- activePage: {
153
- type: String,
154
- default: null
155
- },
156
- /**
157
- * If set to true, it allows the sidepanel to be closed.
158
- * Shows close button when `true` and hides close button when `false`.
159
- *
160
- * _Note: This property will not set the visibility of the close button in v2.0.0_
161
- */
162
- isDismissible: {
163
- type: Boolean,
164
- default: !1
165
- },
166
- /**
167
- * Controls the sidepanel's state from the outside. Set it to true to open the sidepanel.
168
- */
169
- isOpen: {
170
- type: Boolean,
171
- default: null
172
- },
173
- /**
174
- * Controls the visibility of close button on the sidepanel.
175
- * Defaults to `true` when `isDismissible=false`, and `true` when `isDimissible=true`.
176
- *
177
- * _Note: This property will be set to `false` by default, independent of `isDismissible` in v2.0.0_
178
- */
179
- hideCloseButton: {
180
- type: Boolean,
181
- default: null
182
- }
183
- },
184
- setup(e, { emit: m }) {
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), I = i(!1), L = C(() => ({
186
- "b-sidepanel--hide": d.value,
187
- "b-sidepanel--animation": I.value
188
- })), U = () => {
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));
190
- }, p = () => {
191
- o.value.open && (d.value = !0);
192
- }, V = () => {
193
- s.isDismissible && p();
194
- }, R = C(() => s.hideCloseButton !== null ? s.hideCloseButton : !s.isDismissible);
195
- j(
196
- () => P.value,
197
- async () => {
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());
199
- },
200
- { immediate: !0 }
201
- );
202
- const $ = (a) => _(v.UPDATE_ACTIVE_PAGE, a), x = (a) => () => {
203
- var r;
204
- u.value = (r = u.value) == null ? void 0 : r.filter((b) => b !== a);
205
- }, F = (a) => (u.value.push(a), { unregisterPage: x(a) });
206
- return A(ae, {
207
- activePage: h,
208
- animation: w,
209
- isAnimationActive: I,
210
- isOpen: g,
211
- pages: u,
212
- previousPages: l,
213
- updatePage: $
214
- }), A(ie, F), A(re, B), !s.isDismissible && s.hideCloseButton === null && Z(
215
- 'BentoSidepanel "isDismissible" property’s behavior',
216
- 'BentoSidepanel "isDismissible" will no longer hide the close button. Use "hideCloseButton=true" instead.',
217
- "2.0.0"
218
- ), (a, r) => (f(), D("dialog", {
219
- ref_key: "sidepanel",
220
- ref: o,
221
- class: q(["b-sidepanel", L.value]),
222
- onAnimationend: U,
223
- onKeydown: r[0] || (r[0] = H(Q((b) => e.isDismissible && p, ["prevent"]), ["esc"]))
224
- }, [
225
- W((f(), T(t(oe), { id: t(B) }, {
226
- default: n(() => [
227
- R.value ? X("", !0) : (f(), D("div", ge, [
228
- c(t(ne), {
229
- variant: "tertiary",
230
- onClick: p
231
- }, {
232
- default: n(() => [
233
- c(t(le), {
234
- "svg-title": t(k)("close")
235
- }, null, 8, ["svg-title"])
236
- ]),
237
- _: 1
238
- })
239
- ])),
240
- O(a.$slots, "default", {}, void 0, !0)
241
- ]),
242
- _: 3
243
- }, 8, ["id"])), [
244
- [t(ce), V]
245
- ])
246
- ], 34));
247
- }
248
- }), ke = /* @__PURE__ */ N(Ae, [["__scopeId", "data-v-34efe8c7"]]);
249
- export {
250
- v as B,
251
- ke as a,
252
- Ge as s
253
- };
254
- //# sourceMappingURL=sidepanel.kwEMG5ee.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sidepanel.kwEMG5ee.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 '@/core/utils/ts';\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,EAAA,QAAA,IACAhB,EAAAN,EAAA,gBAAA,EAAA;AAAA,IACJ,GAGJ2B,IAAA,MAAA;AACI,MAAAd,EAAA,MAAA,SAGAM,EAAA,QAAA;AAAA,IAAkB,GAGtBS,IAAA,MAAA;AACI,MAAAxB,EAAA,iBACIuB,EAAA;AAAA,IACJ,GAIJE,IAAAJ,EAAA,MACIrB,EAAA,oBAAA,OACIA,EAAA,kBAGJ,CAAAA,EAAA,aAAc;AAIlB,IAAA0B;AAAA,MAAA,MAAArB,EAAA;AAAA,MACiB,YAAA;AAKT,QAFA,MAAAsB,EAAA,GAEAlB,EAAA,UAIAJ,EAAA,SACIa,EAAA,QAAA,IACAT,EAAA,MAAA,UAAA,GACAG,EAAA,MAAA,UACIA,EAAA,MAAA,KAAAR,EAAA,KAAA,KACJK,EAAA,MAAA,QAEAc,EAAA;AAAA,MACJ;AAAA,MACJ,EAAA,WAAA,GAAA;AAAA,IACkB;AAItB,UAAAK,IAAA,CAAAC,MAAA3B,EAAAN,EAAA,oBAAAiC,CAAA,GAGAC,IAAA,CAAAC,MAAA,MAAA;;AACI,MAAApB,EAAA,SAAAqB,IAAArB,EAAA,UAAA,gBAAAqB,EAAA,OAAA,CAAAC,MAAAA,MAAAF;AAAA,IAAqE,GAIzEG,IAAA,CAAAD,OACItB,EAAA,MAAA,KAAAsB,CAAA,GAEA,EAAA,gBAAAH,EAAAG,CAAA,EAAA;AAGJ,WAAAE,EAAAC,IAAA;AAAA,MAAqE,YAAAhC;AAAA,MACjE,WAAAS;AAAA,MACA,mBAAAM;AAAA,MACA,QAAAD;AAAA,MACQ,OAAAP;AAAA,MACR,eAAAC;AAAA,MACA,YAAAgB;AAAA,IACA,CAAA,GAEJO,EAAAE,IAAAH,CAAA,GAGAC,EAAAG,IAAAtB,CAAA,GAEA,CAAAhB,EAAA,iBAAAA,EAAA,oBAAA,QACIuC;AAAA,MAAA;AAAA,MACI;AAAA,MACA;AAAA,IACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,44 +0,0 @@
1
- import { defineComponent as a, computed as l, createElementBlock as n, openBlock as c, createElementVNode as s, createVNode as _, normalizeClass as d, unref as p, withCtx as i, renderSlot as u } from "vue";
2
- import { B as m } from "./typography.DN5eC5ch.js";
3
- import { _ as f } from "./_plugin-vue_export-helper.CHgC5LLL.js";
4
- import "../assets/status.css";
5
- const b = {
6
- class: "b-status",
7
- role: "status"
8
- }, v = { class: "b-status__indicator-wrapper" }, E = {
9
- name: "bento-status"
10
- }, h = /* @__PURE__ */ a({
11
- ...E,
12
- props: {
13
- variant: {}
14
- },
15
- setup(e) {
16
- const t = e, o = l(() => ({
17
- [`b-status__indicator--${t.variant}`]: !0
18
- }));
19
- return (r, g) => (c(), n("div", b, [
20
- s("div", v, [
21
- s("span", {
22
- class: d(["b-status__indicator", o.value]),
23
- role: "presentation"
24
- }, null, 2)
25
- ]),
26
- _(p(m), {
27
- class: "b-status__label",
28
- el: "span",
29
- variant: "body"
30
- }, {
31
- default: i(() => [
32
- u(r.$slots, "default", {}, void 0, !0)
33
- ]),
34
- _: 3
35
- })
36
- ]));
37
- }
38
- }), w = /* @__PURE__ */ f(h, [["__scopeId", "data-v-ffd48f8e"]]);
39
- var y = /* @__PURE__ */ ((e) => (e.BLUE = "blue", e.GREEN = "green", e.GREY = "grey", e.ORANGE = "orange", e.RED = "red", e.YELLOW = "yellow", e))(y || {});
40
- export {
41
- y as B,
42
- w as s
43
- };
44
- //# sourceMappingURL=status.types.Bdv2zuuh.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"status.types.Bdv2zuuh.js","sources":["../../../vue2/src/components/status/status.vue","../../../vue2/src/components/status/status.types.ts"],"sourcesContent":["<template>\n <div class=\"b-status\" role=\"status\">\n <div class=\"b-status__indicator-wrapper\">\n <span class=\"b-status__indicator\" :class=\"conditionalClass\" role=\"presentation\"></span>\n </div>\n <bento-typography class=\"b-status__label\" el=\"span\" variant=\"body\">\n <slot></slot>\n </bento-typography>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed } from 'vue';\n import { BentoTypography } from '@/components/typography';\n import { BentoStatusProps } from './status.types';\n\n const props = defineProps<BentoStatusProps>();\n\n const conditionalClass = computed(() => ({\n [`b-status__indicator--${props.variant}`]: true,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * A Status component is used to indicate a\n * passage of time or a particular step of a process.\n *\n * @example\n * import { BentoStatus } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoStatus },\n * template: `\n * <bento-status variant=\"red\">\n * 1 week ago\n * </bento-status>\n * `\n * }\n */\n export default {\n name: 'bento-status',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./status.scss\" />\n","/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoStatusVariant {\n BLUE = 'blue',\n GREEN = 'green',\n GREY = 'grey',\n ORANGE = 'orange',\n RED = 'red',\n YELLOW = 'yellow',\n}\n\nexport interface BentoStatusProps {\n /**\n * Defines the type and color of the Status\n */\n variant: BentoStatusVariant | `${BentoStatusVariant}`;\n}\n"],"names":["__default__","props","__props","conditionalClass","computed","BentoStatusVariant","BentoStatusVariant2"],"mappings":";;;;;;;iDAwCIA,IAAA;AAAA,EAAe,MAAA;AAEf;;;;;;AA1BA,UAAAC,IAAAC,GAEAC,IAAAC,EAAA,OAAA;AAAA,MAAyC,CAAA,wBAAAH,EAAA,OAAA,EAAA,GAAA;AAAA,IACM,EAAA;;;;;;;;;;;;;;;;;;;;;AChBvC,IAAAI,IAAA,kBAAAC,OACRA,EAAA,OAAA,QACAA,EAAA,QAAA,SACAA,EAAA,OAAA,QACAA,EAAA,SAAA,UACAA,EAAA,MAAA,OACAA,EAAA,SAAA,UANQA,IAAAD,KAAA,CAAA,CAAA;"}
@@ -1,264 +0,0 @@
1
- import { defineComponent as F, ref as i, computed as s, watch as O, provide as K, readonly as ne, createElementBlock as T, openBlock as _, withDirectives as U, createVNode as B, mergeProps as se, toHandlers as ae, unref as d, renderSlot as $, withCtx as E, createTextVNode as Z, toDisplayString as j, useSlots as oe, inject as le, onMounted as ue, onBeforeUnmount as re, normalizeClass as ie, createBlock as z, Fragment as pe, createElementVNode as ce, vShow as ve } from "vue";
2
- import { B as P } from "./typography.DN5eC5ch.js";
3
- import "./events.FNmSWp_P.js";
4
- import { B as R, a as de } from "./keyboard-navigation.CqgGzfZQ.js";
5
- import { u as me } from "./i18n.B6g5VX0q.js";
6
- import { _ as G } from "./_plugin-vue_export-helper.CHgC5LLL.js";
7
- import { B as be } from "./base-button.DdNFlbgH.js";
8
- import { C as fe } from "./checkmark-small.D7l69yBf.js";
9
- import { D as Se } from "./dot.BW-xtyjC.js";
10
- import "../assets/step.css";
11
- const _e = (t) => {
12
- function p(v) {
13
- return ({ detail: c }) => {
14
- var r;
15
- c.preventDefault();
16
- const u = t.value.indexOf(document.activeElement);
17
- u < 0 || (r = t.value[u + v]) == null || r.focus();
18
- };
19
- }
20
- const l = p(-1), o = p(1);
21
- return {
22
- [R.ARROW_DOWN]: o,
23
- [R.ARROW_RIGHT]: o,
24
- [R.ARROW_UP]: l,
25
- [R.ARROW_LEFT]: l
26
- };
27
- }, ye = (t) => {
28
- const p = t.buttonElement.value.parentElement, l = p.parentElement;
29
- return Array.from(l.children).indexOf(p);
30
- }, M = (t) => ({ registerStep: (o) => {
31
- const v = ye(o);
32
- t.value.splice(v, 0, {
33
- stepContent: o.stepContent,
34
- buttonElement: o.buttonElement,
35
- substeps: o.substeps
36
- });
37
- }, removeStep: (o) => {
38
- t.value.splice(
39
- t.value.findIndex((v) => v.buttonElement === o.buttonElement.value),
40
- 1
41
- );
42
- } }), w = Symbol("stepper state");
43
- var H = /* @__PURE__ */ ((t) => (t.LINEAR = "linear", t.NON_LINEAR = "non-linear", t))(H || {}), W = /* @__PURE__ */ ((t) => (t.HORIZONTAL = "horizontal", t.VERTICAL = "vertical", t))(W || {});
44
- const q = {
45
- "en-US": {
46
- step: "Step {currentIndex}/{totalSteps} {content}"
47
- }
48
- }, xe = { class: "b-stepper" }, ge = {
49
- i18n: { messages: q },
50
- name: "stepper"
51
- }, Ee = /* @__PURE__ */ F({
52
- ...ge,
53
- props: {
54
- /**
55
- * Type of stepper; defines how the stepper should behave. Default: linear
56
- * @values linear, non-linear
57
- */
58
- type: {
59
- type: String,
60
- default: "linear"
61
- },
62
- /**
63
- * Stepper variant; defines how the stepper should be displayed. Default: vertical
64
- * @values vertical, horizontal
65
- */
66
- variant: {
67
- type: String,
68
- default: "vertical"
69
- },
70
- /**
71
- * Active step index
72
- */
73
- index: {
74
- type: Number,
75
- default: 0
76
- }
77
- },
78
- emits: ["update:index"],
79
- setup(t, { emit: p }) {
80
- const l = t, o = p, { t: v } = me({ messages: q }), c = i([]), u = i(l.index), r = i(u.value), e = (n) => {
81
- n > r.value && (r.value = n), u.value = n;
82
- }, y = s(() => {
83
- var n;
84
- return (n = c.value[u.value]) == null ? void 0 : n.stepContent;
85
- }), m = s(() => c.value.length), I = s(() => c.value.map(({ buttonElement: n }) => n)), C = s(() => l.variant === W.HORIZONTAL), b = s(
86
- () => c.value.map(({ buttonElement: n, substeps: f }, S) => {
87
- const V = u.value === S;
88
- return !C.value && V ? [n].concat(f.map((g) => g.buttonElement)) : [n];
89
- }).flat()
90
- ), { registerStep: x, removeStep: A } = M(c), h = i({
91
- activeStepIndex: u,
92
- latestActiveStep: r,
93
- steps: I,
94
- type: l.type,
95
- variant: l.variant,
96
- navigateToStep: e,
97
- registerStep: x,
98
- removeStep: A
99
- }), k = s(() => ({
100
- "b-stepper__list--horizontal": C.value
101
- }));
102
- O(() => l.index, e), O(u, (n) => {
103
- o("update:index", n);
104
- });
105
- const L = _e(b);
106
- return K(w, ne(h)), (n, f) => (_(), T("nav", xe, [
107
- U((_(), T("ol", se({
108
- class: ["b-stepper__list", k.value]
109
- }, ae(d(L), !0)), [
110
- $(n.$slots, "default", {}, void 0, !0)
111
- ], 16)), [
112
- [d(de)]
113
- ]),
114
- B(d(P), {
115
- el: "span",
116
- variant: "body",
117
- stronger: "",
118
- class: "b-stepper__text-stepper"
119
- }, {
120
- default: E(() => [
121
- Z(j(d(v)("step", { currentIndex: u.value + 1, totalSteps: m.value, content: y.value })), 1)
122
- ]),
123
- _: 1
124
- })
125
- ]));
126
- }
127
- }), De = /* @__PURE__ */ G(Ee, [["__scopeId", "data-v-3daeb439"]]), Ie = {
128
- ref: "substepList",
129
- class: "b-step__substep-list"
130
- }, Ce = {
131
- name: "step"
132
- }, Ae = /* @__PURE__ */ F({
133
- ...Ce,
134
- props: {
135
- /**
136
- * Completed status. Used on non-linear steppers to indicate if the step is completed.
137
- */
138
- completed: {
139
- type: Boolean,
140
- default: !1
141
- },
142
- /**
143
- * Active substep index
144
- */
145
- substepIndex: {
146
- type: Number,
147
- default: 0
148
- }
149
- },
150
- emits: ["update:substep-index"],
151
- setup(t, { emit: p }) {
152
- const l = oe(), o = t, v = p, c = i(null), u = i(null), r = i([]), e = le(w), y = s(() => {
153
- var a;
154
- return (a = c.value) == null ? void 0 : a.$el;
155
- }), m = s(() => e == null ? void 0 : e.value.steps.indexOf(y.value)), I = s(() => {
156
- var a;
157
- return (a = u.value) == null ? void 0 : a.$el.textContent;
158
- }), C = s(() => r.value.map(({ buttonElement: a }) => a)), b = i(o.substepIndex), x = i(b.value), A = (a) => {
159
- a > x.value && (x.value = a), b.value = a;
160
- }, { registerStep: h, removeStep: k } = M(r), L = i({
161
- activeStepIndex: b,
162
- latestActiveStep: x,
163
- type: e.value.type,
164
- variant: e.value.variant,
165
- steps: C,
166
- isParentStep: !0,
167
- navigateToStep: A,
168
- registerStep: h,
169
- removeStep: k
170
- });
171
- K(w, L), O(() => o.substepIndex, A), O(b, (a) => {
172
- v("update:substep-index", a);
173
- }), ue(() => {
174
- if (!e)
175
- throw new Error(
176
- "BentoStep components should only be used inside BentoStepper or other BentoStep components."
177
- );
178
- e.value.registerStep({
179
- buttonElement: y,
180
- stepContent: I,
181
- substeps: r
182
- });
183
- }), re(() => {
184
- e.value.removeStep({
185
- buttonElement: y,
186
- stepContent: I,
187
- substeps: r
188
- });
189
- });
190
- const n = s(() => e.value.isParentStep), f = i(!1), S = s(() => (e == null ? void 0 : e.value.activeStepIndex) === m.value), V = s(
191
- () => S.value && e.value.variant !== W.HORIZONTAL && !n.value && l.substeps
192
- ), D = s(() => (e == null ? void 0 : e.value.type) === H.NON_LINEAR ? o.completed : (e == null ? void 0 : e.value.latestActiveStep) > m.value), g = s(
193
- () => (e == null ? void 0 : e.value.type) === H.LINEAR && m.value > (e == null ? void 0 : e.value.latestActiveStep)
194
- ), J = () => {
195
- g.value || e.value.navigateToStep(m.value);
196
- }, Q = s(() => S.value ? "step" : "false"), X = s(() => g.value.toString()), Y = s(() => f.value || m.value === 0 && !n.value ? "0" : "-1"), ee = s(() => ({
197
- "b-step--active": S.value,
198
- "b-step--completed": D.value,
199
- "b-step--substep": n.value
200
- }));
201
- return (a, N) => (_(), T("li", {
202
- class: ie([ee.value, "b-step"])
203
- }, [
204
- B(d(be), {
205
- ref_key: "buttonComponent",
206
- ref: c,
207
- "aria-current": Q.value,
208
- "aria-disabled": X.value,
209
- class: "b-step__button",
210
- type: "button",
211
- tabindex: Y.value,
212
- disabled: g.value,
213
- onClick: J,
214
- onFocus: N[0] || (N[0] = (te) => f.value = !0),
215
- onBlur: N[1] || (N[1] = (te) => f.value = !1)
216
- }, {
217
- iconLeft: E(() => [
218
- B(d(P), {
219
- el: "span",
220
- variant: "body",
221
- stronger: "",
222
- class: "b-step__index",
223
- "aria-hidden": "true"
224
- }, {
225
- default: E(() => [
226
- D.value ? (_(), z(d(fe), { key: 0 })) : n.value ? (_(), z(d(Se), { key: 2 })) : (_(), T(pe, { key: 1 }, [
227
- Z(j(m.value + 1), 1)
228
- ], 64))
229
- ]),
230
- _: 1
231
- })
232
- ]),
233
- default: E(() => [
234
- B(d(P), {
235
- ref_key: "stepContent",
236
- ref: u,
237
- el: "span",
238
- variant: "body",
239
- stronger: S.value,
240
- class: "b-step__content"
241
- }, {
242
- default: E(() => [
243
- $(a.$slots, "default", {}, void 0, !0)
244
- ]),
245
- _: 3
246
- }, 8, ["stronger"])
247
- ]),
248
- _: 3
249
- }, 8, ["aria-current", "aria-disabled", "tabindex", "disabled"]),
250
- U(ce("ul", Ie, [
251
- $(a.$slots, "substeps", {}, void 0, !0)
252
- ], 512), [
253
- [ve, V.value]
254
- ])
255
- ], 2));
256
- }
257
- }), $e = /* @__PURE__ */ G(Ae, [["__scopeId", "data-v-1968679e"]]);
258
- export {
259
- H as B,
260
- $e as a,
261
- W as b,
262
- De as s
263
- };
264
- //# sourceMappingURL=step.7l-t-eN9.js.map