@adyen/bento-vue3 1.81.0 → 1.82.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 (579) hide show
  1. package/dist/@types/components.d.ts +196 -0
  2. package/dist/@types/index.d.ts +17825 -0
  3. package/dist/@types/use-form-v4.d.ts +86 -0
  4. package/dist/accordion.js +6 -0
  5. package/dist/accordion.js.map +1 -0
  6. package/dist/action-bar.js +5 -0
  7. package/dist/action-bar.js.map +1 -0
  8. package/dist/alert.js +8 -0
  9. package/dist/alert.js.map +1 -0
  10. package/dist/assets/accordion-item.css +1 -0
  11. package/dist/assets/action-bar.css +1 -0
  12. package/dist/assets/ai-button.css +1 -0
  13. package/dist/assets/alert.css +1 -0
  14. package/dist/assets/avatar.css +1 -0
  15. package/dist/assets/base-button.css +1 -0
  16. package/dist/assets/base-modal.css +1 -0
  17. package/dist/assets/button-actions-with-menu.css +1 -0
  18. package/dist/assets/button-actions.css +1 -0
  19. package/dist/assets/button.css +1 -0
  20. package/dist/assets/calendar.css +1 -0
  21. package/dist/assets/card.css +1 -0
  22. package/dist/assets/checkbox-group.css +1 -0
  23. package/dist/assets/checkbox-input.css +1 -0
  24. package/dist/assets/checkbox.css +1 -0
  25. package/dist/assets/chip.css +1 -0
  26. package/dist/assets/code-snippet.css +1 -0
  27. package/dist/assets/controls-group.css +1 -0
  28. package/dist/assets/copy.css +1 -0
  29. package/dist/assets/country.css +1 -0
  30. package/dist/assets/currency.css +1 -0
  31. package/dist/assets/dashboard-section.css +1 -0
  32. package/dist/assets/dashed-underline.css +1 -0
  33. package/dist/assets/data-grid-template.css +1 -0
  34. package/dist/assets/data-grid.css +1 -0
  35. package/dist/assets/date-picker.css +1 -0
  36. package/dist/assets/date-range-picker.css +1 -0
  37. package/dist/assets/date.css +1 -0
  38. package/dist/assets/dialog-page.css +1 -0
  39. package/dist/assets/divider.css +1 -0
  40. package/dist/assets/dropdown-default-textbox.css +1 -0
  41. package/dist/assets/dropdown-tag.css +1 -0
  42. package/dist/assets/dropdown.css +1 -0
  43. package/dist/assets/empty-state.css +1 -0
  44. package/dist/assets/field-label.css +1 -0
  45. package/dist/assets/file-uploader.css +1 -0
  46. package/dist/assets/filter-bar.css +1 -0
  47. package/dist/assets/fixed-scroller.css +1 -0
  48. package/dist/assets/focus-trap.css +1 -0
  49. package/dist/assets/footer-actions.css +1 -0
  50. package/dist/assets/form-layout-title.css +1 -0
  51. package/dist/assets/grid-layout.css +1 -0
  52. package/dist/assets/header-meta.css +1 -0
  53. package/dist/assets/header-with-views.css +1 -0
  54. package/dist/assets/header.css +1 -0
  55. package/dist/assets/index.css +1 -0
  56. package/dist/assets/info-icon.css +1 -0
  57. package/dist/assets/input-field-password.css +1 -0
  58. package/dist/assets/input-field-phone-number.css +1 -0
  59. package/dist/assets/input-field.css +1 -0
  60. package/dist/assets/inspector.css +1 -0
  61. package/dist/assets/layout-row.css +1 -0
  62. package/dist/assets/link.css +1 -0
  63. package/dist/assets/listbox-option-tag.css +1 -0
  64. package/dist/assets/loading-indicator.css +1 -0
  65. package/dist/assets/main.css +1 -0
  66. package/dist/assets/modal-fullscreen.css +1 -0
  67. package/dist/assets/pagination.css +1 -0
  68. package/dist/assets/payment-method.css +1 -0
  69. package/dist/assets/popper-container.css +1 -0
  70. package/dist/assets/promo-banner.css +1 -0
  71. package/dist/assets/radio-group.css +1 -0
  72. package/dist/assets/radio-input.css +1 -0
  73. package/dist/assets/rich-text-editor.css +1 -0
  74. package/dist/assets/search-bar.css +1 -0
  75. package/dist/assets/secondary-nav.css +1 -0
  76. package/dist/assets/segmented-control.css +1 -0
  77. package/dist/assets/selection-card-group.css +1 -0
  78. package/dist/assets/sidepanel.css +1 -0
  79. package/dist/assets/status.css +1 -0
  80. package/dist/assets/step.css +1 -0
  81. package/dist/assets/structured-list-item.css +1 -0
  82. package/dist/assets/summary-grid.css +1 -0
  83. package/dist/assets/tab.css +1 -0
  84. package/dist/assets/tag.css +1 -0
  85. package/dist/assets/textarea.css +1 -0
  86. package/dist/assets/timeline-item.css +1 -0
  87. package/dist/assets/toast.css +1 -0
  88. package/dist/assets/toggle.css +1 -0
  89. package/dist/assets/tooltip.css +1 -0
  90. package/dist/assets/tutorial.css +1 -0
  91. package/dist/assets/typography.css +1 -0
  92. package/dist/assets/use-cached-selected-values.css +1 -0
  93. package/dist/avatar.js +5 -0
  94. package/dist/avatar.js.map +1 -0
  95. package/dist/button.js +18 -0
  96. package/dist/button.js.map +1 -0
  97. package/dist/card.js +7 -0
  98. package/dist/card.js.map +1 -0
  99. package/dist/checkbox.js +11 -0
  100. package/dist/checkbox.js.map +1 -0
  101. package/dist/chip.js +5 -0
  102. package/dist/chip.js.map +1 -0
  103. package/dist/chunks/1-generic-use.CZhwP2Yc.js +5 -0
  104. package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +1 -0
  105. package/dist/chunks/1-generic-use.R6x8PEGA.js +5 -0
  106. package/dist/chunks/1-generic-use.R6x8PEGA.js.map +1 -0
  107. package/dist/chunks/2-generic-use.CNKjB4B7.js +5 -0
  108. package/dist/chunks/2-generic-use.CNKjB4B7.js.map +1 -0
  109. package/dist/chunks/2-generic-use.w0fUhovx.js +5 -0
  110. package/dist/chunks/2-generic-use.w0fUhovx.js.map +1 -0
  111. package/dist/chunks/3-generic-use.BLEzR04g.js +5 -0
  112. package/dist/chunks/3-generic-use.BLEzR04g.js.map +1 -0
  113. package/dist/chunks/3-generic-use.D3NFHgI4.js +5 -0
  114. package/dist/chunks/3-generic-use.D3NFHgI4.js.map +1 -0
  115. package/dist/chunks/4-generic-use.CULEpvgj.js +5 -0
  116. package/dist/chunks/4-generic-use.CULEpvgj.js.map +1 -0
  117. package/dist/chunks/4-generic-use.D82y3n39.js +5 -0
  118. package/dist/chunks/4-generic-use.D82y3n39.js.map +1 -0
  119. package/dist/chunks/_plugin-vue_export-helper.CHgC5LLL.js +10 -0
  120. package/dist/chunks/_plugin-vue_export-helper.CHgC5LLL.js.map +1 -0
  121. package/dist/chunks/accordion-item.DHyAfeAu.js +143 -0
  122. package/dist/chunks/accordion-item.DHyAfeAu.js.map +1 -0
  123. package/dist/chunks/action-bar.BsLU4Bp3.js +202 -0
  124. package/dist/chunks/action-bar.BsLU4Bp3.js.map +1 -0
  125. package/dist/chunks/adding-payment-methods.BJZLPxtM.js +5 -0
  126. package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +1 -0
  127. package/dist/chunks/adding-payment-methods.Dle8zt43.js +5 -0
  128. package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +1 -0
  129. package/dist/chunks/adyen-giving.Ffw_DlJK.js +5 -0
  130. package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +1 -0
  131. package/dist/chunks/adyen-giving.LiKHj_jY.js +5 -0
  132. package/dist/chunks/adyen-giving.LiKHj_jY.js.map +1 -0
  133. package/dist/chunks/ai-button.DaRuea3x.js +93 -0
  134. package/dist/chunks/ai-button.DaRuea3x.js.map +1 -0
  135. package/dist/chunks/alert.C2pusd-_.js +171 -0
  136. package/dist/chunks/alert.C2pusd-_.js.map +1 -0
  137. package/dist/chunks/aria-label.CaUURpnB.js +13 -0
  138. package/dist/chunks/aria-label.CaUURpnB.js.map +1 -0
  139. package/dist/chunks/avatar.P2Fkz2I6.js +95 -0
  140. package/dist/chunks/avatar.P2Fkz2I6.js.map +1 -0
  141. package/dist/chunks/base-button.BSLpAs8A.js +114 -0
  142. package/dist/chunks/base-button.BSLpAs8A.js.map +1 -0
  143. package/dist/chunks/base-modal.Bt3mQ_5Y.js +441 -0
  144. package/dist/chunks/base-modal.Bt3mQ_5Y.js.map +1 -0
  145. package/dist/chunks/bin.DuHlEQBO.js +37 -0
  146. package/dist/chunks/bin.DuHlEQBO.js.map +1 -0
  147. package/dist/chunks/button-actions-with-menu.D2GU8abn.js +93 -0
  148. package/dist/chunks/button-actions-with-menu.D2GU8abn.js.map +1 -0
  149. package/dist/chunks/button-actions.CbEoQYUV.js +1367 -0
  150. package/dist/chunks/button-actions.CbEoQYUV.js.map +1 -0
  151. package/dist/chunks/button-actions.types.BptAXjD8.js +8 -0
  152. package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -0
  153. package/dist/chunks/button.DhcxX2GJ.js +131 -0
  154. package/dist/chunks/button.DhcxX2GJ.js.map +1 -0
  155. package/dist/chunks/calendar.CyJXcMz2.js +1962 -0
  156. package/dist/chunks/calendar.CyJXcMz2.js.map +1 -0
  157. package/dist/chunks/card.s3fBTh55.js +228 -0
  158. package/dist/chunks/card.s3fBTh55.js.map +1 -0
  159. package/dist/chunks/checkbox-group.tnj89uhH.js +177 -0
  160. package/dist/chunks/checkbox-group.tnj89uhH.js.map +1 -0
  161. package/dist/chunks/checkbox-input.BXNGT9U0.js +144 -0
  162. package/dist/chunks/checkbox-input.BXNGT9U0.js.map +1 -0
  163. package/dist/chunks/checkbox.Wqhh2aRA.js +257 -0
  164. package/dist/chunks/checkbox.Wqhh2aRA.js.map +1 -0
  165. package/dist/chunks/checkmark-circle-fill._6-d40ru.js +44 -0
  166. package/dist/chunks/checkmark-circle-fill._6-d40ru.js.map +1 -0
  167. package/dist/chunks/checkmark-small.x-gmK2Dt.js +29 -0
  168. package/dist/chunks/checkmark-small.x-gmK2Dt.js.map +1 -0
  169. package/dist/chunks/chevron-down.DCQ6ZLaq.js +29 -0
  170. package/dist/chunks/chevron-down.DCQ6ZLaq.js.map +1 -0
  171. package/dist/chunks/chevron-left.Cfn1uGLH.js +52 -0
  172. package/dist/chunks/chevron-left.Cfn1uGLH.js.map +1 -0
  173. package/dist/chunks/chevron-up.kfuLRpZb.js +29 -0
  174. package/dist/chunks/chevron-up.kfuLRpZb.js.map +1 -0
  175. package/dist/chunks/chip.CoV28mKv.js +71 -0
  176. package/dist/chunks/chip.CoV28mKv.js.map +1 -0
  177. package/dist/chunks/click-outside.C1Ud8AA2.js +23 -0
  178. package/dist/chunks/click-outside.C1Ud8AA2.js.map +1 -0
  179. package/dist/chunks/code-snippet.LRw3jGjV.js +343 -0
  180. package/dist/chunks/code-snippet.LRw3jGjV.js.map +1 -0
  181. package/dist/chunks/codemirror.Cy7iSLbd.js +14628 -0
  182. package/dist/chunks/codemirror.Cy7iSLbd.js.map +1 -0
  183. package/dist/chunks/constructNow.BhymNmy5.js +8 -0
  184. package/dist/chunks/constructNow.BhymNmy5.js.map +1 -0
  185. package/dist/chunks/controls-group.B2Qci77U.js +101 -0
  186. package/dist/chunks/controls-group.B2Qci77U.js.map +1 -0
  187. package/dist/chunks/copy.D5CBHqUB.js +117 -0
  188. package/dist/chunks/copy.D5CBHqUB.js.map +1 -0
  189. package/dist/chunks/country.D484ezGU.js +69 -0
  190. package/dist/chunks/country.D484ezGU.js.map +1 -0
  191. package/dist/chunks/country.types.C0Q_hhgJ.js +269 -0
  192. package/dist/chunks/country.types.C0Q_hhgJ.js.map +1 -0
  193. package/dist/chunks/cross-circle-fill-small.Dv5-PxwF.js +29 -0
  194. package/dist/chunks/cross-circle-fill-small.Dv5-PxwF.js.map +1 -0
  195. package/dist/chunks/cross-circle-fill.CYLL7jfC.js +44 -0
  196. package/dist/chunks/cross-circle-fill.CYLL7jfC.js.map +1 -0
  197. package/dist/chunks/cross-small.n1UO5wNB.js +29 -0
  198. package/dist/chunks/cross-small.n1UO5wNB.js.map +1 -0
  199. package/dist/chunks/cross.B92GxFTY.js +29 -0
  200. package/dist/chunks/cross.B92GxFTY.js.map +1 -0
  201. package/dist/chunks/currency.WmvQjX7l.js +116 -0
  202. package/dist/chunks/currency.WmvQjX7l.js.map +1 -0
  203. package/dist/chunks/dashboard-section.DlokD9Rf.js +165 -0
  204. package/dist/chunks/dashboard-section.DlokD9Rf.js.map +1 -0
  205. package/dist/chunks/dashed-underline.Dw1Iqk0l.js +114 -0
  206. package/dist/chunks/dashed-underline.Dw1Iqk0l.js.map +1 -0
  207. package/dist/chunks/data-grid-template.BwTVHbpB.js +144 -0
  208. package/dist/chunks/data-grid-template.BwTVHbpB.js.map +1 -0
  209. package/dist/chunks/data-grid-template.keys.VezYtHtM.js +5 -0
  210. package/dist/chunks/data-grid-template.keys.VezYtHtM.js.map +1 -0
  211. package/dist/chunks/data-grid.Be6Ao4He.js +4271 -0
  212. package/dist/chunks/data-grid.Be6Ao4He.js.map +1 -0
  213. package/dist/chunks/date-format.B8RU7D42.js +17 -0
  214. package/dist/chunks/date-format.B8RU7D42.js.map +1 -0
  215. package/dist/chunks/date-picker.CYBx1TS_.js +245 -0
  216. package/dist/chunks/date-picker.CYBx1TS_.js.map +1 -0
  217. package/dist/chunks/date-picker.types.Ckt7zxGy.js +5 -0
  218. package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -0
  219. package/dist/chunks/date-range-picker.BgEM0fyZ.js +1109 -0
  220. package/dist/chunks/date-range-picker.BgEM0fyZ.js.map +1 -0
  221. package/dist/chunks/date-range-picker.types.Ckt7zxGy.js +5 -0
  222. package/dist/chunks/date-range-picker.types.Ckt7zxGy.js.map +1 -0
  223. package/dist/chunks/date.DZvVL-uz.js +163 -0
  224. package/dist/chunks/date.DZvVL-uz.js.map +1 -0
  225. package/dist/chunks/debounce.DUTu11PS.js +10 -0
  226. package/dist/chunks/debounce.DUTu11PS.js.map +1 -0
  227. package/dist/chunks/delight.CDBAFnwC.js +5 -0
  228. package/dist/chunks/delight.CDBAFnwC.js.map +1 -0
  229. package/dist/chunks/delight.xKDCvvaS.js +5 -0
  230. package/dist/chunks/delight.xKDCvvaS.js.map +1 -0
  231. package/dist/chunks/dialog-page.BY6T1jYZ.js +175 -0
  232. package/dist/chunks/dialog-page.BY6T1jYZ.js.map +1 -0
  233. package/dist/chunks/differenceInMonths.Cab3nOsb.js +1590 -0
  234. package/dist/chunks/differenceInMonths.Cab3nOsb.js.map +1 -0
  235. package/dist/chunks/directive.Cbdox5VL.js +23 -0
  236. package/dist/chunks/directive.Cbdox5VL.js.map +1 -0
  237. package/dist/chunks/divider.Dho4_hQ7.js +33 -0
  238. package/dist/chunks/divider.Dho4_hQ7.js.map +1 -0
  239. package/dist/chunks/dot.ob6N-5Um.js +29 -0
  240. package/dist/chunks/dot.ob6N-5Um.js.map +1 -0
  241. package/dist/chunks/dropdown-default-textbox.CNrsjXUU.js +425 -0
  242. package/dist/chunks/dropdown-default-textbox.CNrsjXUU.js.map +1 -0
  243. package/dist/chunks/dropdown-tag.DmIHi3i-.js +301 -0
  244. package/dist/chunks/dropdown-tag.DmIHi3i-.js.map +1 -0
  245. package/dist/chunks/dropdown.Be6ses6k.js +833 -0
  246. package/dist/chunks/dropdown.Be6ses6k.js.map +1 -0
  247. package/dist/chunks/empty-state.Be6M8ivH.js +140 -0
  248. package/dist/chunks/empty-state.Be6M8ivH.js.map +1 -0
  249. package/dist/chunks/es6.MoTTyETW.js +12 -0
  250. package/dist/chunks/es6.MoTTyETW.js.map +1 -0
  251. package/dist/chunks/events.BQOQSSb7.js +44 -0
  252. package/dist/chunks/events.BQOQSSb7.js.map +1 -0
  253. package/dist/chunks/expand.C9IAqYYL.js +33 -0
  254. package/dist/chunks/expand.C9IAqYYL.js.map +1 -0
  255. package/dist/chunks/field-label.Cu6X9V0_.js +158 -0
  256. package/dist/chunks/field-label.Cu6X9V0_.js.map +1 -0
  257. package/dist/chunks/file-uploader.Bdhm4TVh.js +2299 -0
  258. package/dist/chunks/file-uploader.Bdhm4TVh.js.map +1 -0
  259. package/dist/chunks/filter-bar.CLNU1Ixm.js +3211 -0
  260. package/dist/chunks/filter-bar.CLNU1Ixm.js.map +1 -0
  261. package/dist/chunks/fixed-scroller.Dmg8r9QP.js +147 -0
  262. package/dist/chunks/fixed-scroller.Dmg8r9QP.js.map +1 -0
  263. package/dist/chunks/focus-trap.BaHvK7aT.js +1171 -0
  264. package/dist/chunks/focus-trap.BaHvK7aT.js.map +1 -0
  265. package/dist/chunks/footer-actions.C_EniPHo.js +110 -0
  266. package/dist/chunks/footer-actions.C_EniPHo.js.map +1 -0
  267. package/dist/chunks/form-field.D_2g7vaP.js +10 -0
  268. package/dist/chunks/form-field.D_2g7vaP.js.map +1 -0
  269. package/dist/chunks/form-layout-title.sxPU_lB_.js +214 -0
  270. package/dist/chunks/form-layout-title.sxPU_lB_.js.map +1 -0
  271. package/dist/chunks/form-layout.types.bZW9iR6_.js +5 -0
  272. package/dist/chunks/form-layout.types.bZW9iR6_.js.map +1 -0
  273. package/dist/chunks/generate-uid.NJ8tVoha.js +32 -0
  274. package/dist/chunks/generate-uid.NJ8tVoha.js.map +1 -0
  275. package/dist/chunks/get-slot-text.CQRAP2_q.js +12 -0
  276. package/dist/chunks/get-slot-text.CQRAP2_q.js.map +1 -0
  277. package/dist/chunks/getRoundingMethod.C3eaeGLR.js +10 -0
  278. package/dist/chunks/getRoundingMethod.C3eaeGLR.js.map +1 -0
  279. package/dist/chunks/getTimezoneOffsetInMilliseconds.B7sxiukN.js +484 -0
  280. package/dist/chunks/getTimezoneOffsetInMilliseconds.B7sxiukN.js.map +1 -0
  281. package/dist/chunks/grid-layout.DDaRNz4-.js +114 -0
  282. package/dist/chunks/grid-layout.DDaRNz4-.js.map +1 -0
  283. package/dist/chunks/header-meta.DMjERxW-.js +221 -0
  284. package/dist/chunks/header-meta.DMjERxW-.js.map +1 -0
  285. package/dist/chunks/header-with-views.CVgISUVn.js +2426 -0
  286. package/dist/chunks/header-with-views.CVgISUVn.js.map +1 -0
  287. package/dist/chunks/header.Dq5aBp9l.js +141 -0
  288. package/dist/chunks/header.Dq5aBp9l.js.map +1 -0
  289. package/dist/chunks/image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js +47 -0
  290. package/dist/chunks/image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js.map +1 -0
  291. package/dist/chunks/index.CWuzEfiV.js +6 -0
  292. package/dist/chunks/index.CWuzEfiV.js.map +1 -0
  293. package/dist/chunks/index.E60QniEu.js +592 -0
  294. package/dist/chunks/index.E60QniEu.js.map +1 -0
  295. package/dist/chunks/index.pdBj0KQU.js +15 -0
  296. package/dist/chunks/index.pdBj0KQU.js.map +1 -0
  297. package/dist/chunks/info-icon.C7RAAeQQ.js +35 -0
  298. package/dist/chunks/info-icon.C7RAAeQQ.js.map +1 -0
  299. package/dist/chunks/info.BKwey1HA.js +44 -0
  300. package/dist/chunks/info.BKwey1HA.js.map +1 -0
  301. package/dist/chunks/input-field-password.BhksIaXB.js +396 -0
  302. package/dist/chunks/input-field-password.BhksIaXB.js.map +1 -0
  303. package/dist/chunks/input-field-phone-number.jW5pH96y.js +3333 -0
  304. package/dist/chunks/input-field-phone-number.jW5pH96y.js.map +1 -0
  305. package/dist/chunks/input-field.CYBjHzVA.js +318 -0
  306. package/dist/chunks/input-field.CYBjHzVA.js.map +1 -0
  307. package/dist/chunks/inspector.BBhrSgO6.js +200 -0
  308. package/dist/chunks/inspector.BBhrSgO6.js.map +1 -0
  309. package/dist/chunks/inspector.types.DyHwE18g.js +5 -0
  310. package/dist/chunks/inspector.types.DyHwE18g.js.map +1 -0
  311. package/dist/chunks/internal-error.BLZodVBE.js +5 -0
  312. package/dist/chunks/internal-error.BLZodVBE.js.map +1 -0
  313. package/dist/chunks/internal-error.BmrwJFpR.js +5 -0
  314. package/dist/chunks/internal-error.BmrwJFpR.js.map +1 -0
  315. package/dist/chunks/keyboard-navigation.DWmhelVv.js +66 -0
  316. package/dist/chunks/keyboard-navigation.DWmhelVv.js.map +1 -0
  317. package/dist/chunks/layout-row.BxP9SxrL.js +100 -0
  318. package/dist/chunks/layout-row.BxP9SxrL.js.map +1 -0
  319. package/dist/chunks/link.cwPmWlsk.js +116 -0
  320. package/dist/chunks/link.cwPmWlsk.js.map +1 -0
  321. package/dist/chunks/listbox-option-tag.VRGb_04i.js +57 -0
  322. package/dist/chunks/listbox-option-tag.VRGb_04i.js.map +1 -0
  323. package/dist/chunks/loading-indicator.Db794TT5.js +33 -0
  324. package/dist/chunks/loading-indicator.Db794TT5.js.map +1 -0
  325. package/dist/chunks/minus-small.DYIyF5XW.js +32 -0
  326. package/dist/chunks/minus-small.DYIyF5XW.js.map +1 -0
  327. package/dist/chunks/modal-fullscreen.hOTnlB9T.js +285 -0
  328. package/dist/chunks/modal-fullscreen.hOTnlB9T.js.map +1 -0
  329. package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.DFCZG9Zc.js +501 -0
  330. package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.DFCZG9Zc.js.map +1 -0
  331. package/dist/chunks/no-results-found.Bg_ZcEid.js +5 -0
  332. package/dist/chunks/no-results-found.Bg_ZcEid.js.map +1 -0
  333. package/dist/chunks/no-results-found.BqvYsBR6.js +5 -0
  334. package/dist/chunks/no-results-found.BqvYsBR6.js.map +1 -0
  335. package/dist/chunks/notifications-cleared.BMZk37uf.js +5 -0
  336. package/dist/chunks/notifications-cleared.BMZk37uf.js.map +1 -0
  337. package/dist/chunks/notifications-cleared.C7W9ZXY7.js +5 -0
  338. package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +1 -0
  339. package/dist/chunks/on-click-outside.D9aY9g8G.js +101 -0
  340. package/dist/chunks/on-click-outside.D9aY9g8G.js.map +1 -0
  341. package/dist/chunks/page-not-found.COJLPVaU.js +5 -0
  342. package/dist/chunks/page-not-found.COJLPVaU.js.map +1 -0
  343. package/dist/chunks/page-not-found.DWW6W-PZ.js +5 -0
  344. package/dist/chunks/page-not-found.DWW6W-PZ.js.map +1 -0
  345. package/dist/chunks/pagination.Cj_FYHm-.js +461 -0
  346. package/dist/chunks/pagination.Cj_FYHm-.js.map +1 -0
  347. package/dist/chunks/payment-method.CExDsirg.js +128 -0
  348. package/dist/chunks/payment-method.CExDsirg.js.map +1 -0
  349. package/dist/chunks/payment-method.types.BqtH7RM2.js +5 -0
  350. package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -0
  351. package/dist/chunks/planned-maintenance.C61sWB9h.js +5 -0
  352. package/dist/chunks/planned-maintenance.C61sWB9h.js.map +1 -0
  353. package/dist/chunks/planned-maintenance.jmWYTdet.js +5 -0
  354. package/dist/chunks/planned-maintenance.jmWYTdet.js.map +1 -0
  355. package/dist/chunks/popover.types.DgfeurkF.js +6 -0
  356. package/dist/chunks/popover.types.DgfeurkF.js.map +1 -0
  357. package/dist/chunks/popper-container.I9gzp1NR.js +1413 -0
  358. package/dist/chunks/popper-container.I9gzp1NR.js.map +1 -0
  359. package/dist/chunks/promo-banner.B-TLTLEd.js +126 -0
  360. package/dist/chunks/promo-banner.B-TLTLEd.js.map +1 -0
  361. package/dist/chunks/radio-group.C0qJThJ2.js +278 -0
  362. package/dist/chunks/radio-group.C0qJThJ2.js.map +1 -0
  363. package/dist/chunks/radio-input.CBNE-AkM.js +95 -0
  364. package/dist/chunks/radio-input.CBNE-AkM.js.map +1 -0
  365. package/dist/chunks/referrals.BvtT-kQS.js +5 -0
  366. package/dist/chunks/referrals.BvtT-kQS.js.map +1 -0
  367. package/dist/chunks/referrals.aX8WZigH.js +5 -0
  368. package/dist/chunks/referrals.aX8WZigH.js.map +1 -0
  369. package/dist/chunks/refresh.BB4ouvz_.js +29 -0
  370. package/dist/chunks/refresh.BB4ouvz_.js.map +1 -0
  371. package/dist/chunks/resize.Bqks3WUm.js +15 -0
  372. package/dist/chunks/resize.Bqks3WUm.js.map +1 -0
  373. package/dist/chunks/rich-text-editor.CDcfVhGv.js +6224 -0
  374. package/dist/chunks/rich-text-editor.CDcfVhGv.js.map +1 -0
  375. package/dist/chunks/search-bar.CIi1zffn.js +116 -0
  376. package/dist/chunks/search-bar.CIi1zffn.js.map +1 -0
  377. package/dist/chunks/search.PczW-onY.js +44 -0
  378. package/dist/chunks/search.PczW-onY.js.map +1 -0
  379. package/dist/chunks/secondary-nav.C9ApoJ-J.js +138 -0
  380. package/dist/chunks/secondary-nav.C9ApoJ-J.js.map +1 -0
  381. package/dist/chunks/segmented-control.PlGfqyxH.js +145 -0
  382. package/dist/chunks/segmented-control.PlGfqyxH.js.map +1 -0
  383. package/dist/chunks/segmented-control.types.BHRLV8KU.js +5 -0
  384. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -0
  385. package/dist/chunks/selection-card-group.DjlLf4oi.js +415 -0
  386. package/dist/chunks/selection-card-group.DjlLf4oi.js.map +1 -0
  387. package/dist/chunks/show.CT4Augxb.js +64 -0
  388. package/dist/chunks/show.CT4Augxb.js.map +1 -0
  389. package/dist/chunks/sidepanel.CiyGOtAx.js +254 -0
  390. package/dist/chunks/sidepanel.CiyGOtAx.js.map +1 -0
  391. package/dist/chunks/status.types.-l2qJxLn.js +44 -0
  392. package/dist/chunks/status.types.-l2qJxLn.js.map +1 -0
  393. package/dist/chunks/step.rYLkDMZ0.js +267 -0
  394. package/dist/chunks/step.rYLkDMZ0.js.map +1 -0
  395. package/dist/chunks/structured-list-item.CsUD3M_V.js +111 -0
  396. package/dist/chunks/structured-list-item.CsUD3M_V.js.map +1 -0
  397. package/dist/chunks/success.DhioLvPD.js +5 -0
  398. package/dist/chunks/success.DhioLvPD.js.map +1 -0
  399. package/dist/chunks/success.nNwxJRBS.js +5 -0
  400. package/dist/chunks/success.nNwxJRBS.js.map +1 -0
  401. package/dist/chunks/summary-grid.keys.Xx-W5a2w.js +6 -0
  402. package/dist/chunks/summary-grid.keys.Xx-W5a2w.js.map +1 -0
  403. package/dist/chunks/summary-grid.types.BzPSYDUX.js +496 -0
  404. package/dist/chunks/summary-grid.types.BzPSYDUX.js.map +1 -0
  405. package/dist/chunks/tab.BAwuVDsV.js +252 -0
  406. package/dist/chunks/tab.BAwuVDsV.js.map +1 -0
  407. package/dist/chunks/tabs.keys.B4qGhjp2.js +7 -0
  408. package/dist/chunks/tabs.keys.B4qGhjp2.js.map +1 -0
  409. package/dist/chunks/tag.EDED27n5.js +57 -0
  410. package/dist/chunks/tag.EDED27n5.js.map +1 -0
  411. package/dist/chunks/textarea.7MePsezm.js +254 -0
  412. package/dist/chunks/textarea.7MePsezm.js.map +1 -0
  413. package/dist/chunks/timeline-item.D6SeOiVe.js +428 -0
  414. package/dist/chunks/timeline-item.D6SeOiVe.js.map +1 -0
  415. package/dist/chunks/toast.BFw86uEp.js +221 -0
  416. package/dist/chunks/toast.BFw86uEp.js.map +1 -0
  417. package/dist/chunks/toggle.BHCUjMpp.js +143 -0
  418. package/dist/chunks/toggle.BHCUjMpp.js.map +1 -0
  419. package/dist/chunks/tooltip.B76ucISL.js +202 -0
  420. package/dist/chunks/tooltip.B76ucISL.js.map +1 -0
  421. package/dist/chunks/truncate.BfIl_-71.js +8 -0
  422. package/dist/chunks/truncate.BfIl_-71.js.map +1 -0
  423. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.CyO3qbAU.js +421 -0
  424. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.CyO3qbAU.js.map +1 -0
  425. package/dist/chunks/typography.yBEME_Gu.js +83 -0
  426. package/dist/chunks/typography.yBEME_Gu.js.map +1 -0
  427. package/dist/chunks/upload-files.5wQwbfkp.js +5 -0
  428. package/dist/chunks/upload-files.5wQwbfkp.js.map +1 -0
  429. package/dist/chunks/upload-files.jTQY6y2X.js +5 -0
  430. package/dist/chunks/upload-files.jTQY6y2X.js.map +1 -0
  431. package/dist/chunks/use-bento-toast-controller.DK1PV3YW.js +50 -0
  432. package/dist/chunks/use-bento-toast-controller.DK1PV3YW.js.map +1 -0
  433. package/dist/chunks/use-cached-selected-values.DimYI3lv.js +1702 -0
  434. package/dist/chunks/use-cached-selected-values.DimYI3lv.js.map +1 -0
  435. package/dist/chunks/use-country-items.Dzbl2UsO.js +30 -0
  436. package/dist/chunks/use-country-items.Dzbl2UsO.js.map +1 -0
  437. package/dist/chunks/use-country-phon-code.Bui3zD6W.js +5621 -0
  438. package/dist/chunks/use-country-phon-code.Bui3zD6W.js.map +1 -0
  439. package/dist/chunks/use-default-slot-validator.O02rzsob.js +16 -0
  440. package/dist/chunks/use-default-slot-validator.O02rzsob.js.map +1 -0
  441. package/dist/chunks/use-expandable-content-height.GkjjbmPy.js +17 -0
  442. package/dist/chunks/use-expandable-content-height.GkjjbmPy.js.map +1 -0
  443. package/dist/chunks/use-form-layout-loading.CWbjZiwP.js +12 -0
  444. package/dist/chunks/use-form-layout-loading.CWbjZiwP.js.map +1 -0
  445. package/dist/chunks/use-has-slot.B7eQSabc.js +15 -0
  446. package/dist/chunks/use-has-slot.B7eQSabc.js.map +1 -0
  447. package/dist/chunks/warning-filled.BMGD0G-_.js +29 -0
  448. package/dist/chunks/warning-filled.BMGD0G-_.js.map +1 -0
  449. package/dist/chunks/wrong-environment.BOsyKdRI.js +5 -0
  450. package/dist/chunks/wrong-environment.BOsyKdRI.js.map +1 -0
  451. package/dist/chunks/wrong-environment.BiHTPtbJ.js +5 -0
  452. package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +1 -0
  453. package/dist/click-outside.js +5 -0
  454. package/dist/click-outside.js.map +1 -0
  455. package/dist/code-snippet.js +8 -0
  456. package/dist/code-snippet.js.map +1 -0
  457. package/dist/country.js +12 -0
  458. package/dist/country.js.map +1 -0
  459. package/dist/currency.js +6 -0
  460. package/dist/currency.js.map +1 -0
  461. package/dist/dashboard-template.js +6 -0
  462. package/dist/dashboard-template.js.map +1 -0
  463. package/dist/dashed-underline.js +5 -0
  464. package/dist/dashed-underline.js.map +1 -0
  465. package/dist/data-grid-template.js +5 -0
  466. package/dist/data-grid-template.js.map +1 -0
  467. package/dist/data-grid.js +13 -0
  468. package/dist/data-grid.js.map +1 -0
  469. package/dist/date-picker.js +10 -0
  470. package/dist/date-picker.js.map +1 -0
  471. package/dist/date-range-picker.js +10 -0
  472. package/dist/date-range-picker.js.map +1 -0
  473. package/dist/date.js +6 -0
  474. package/dist/date.js.map +1 -0
  475. package/dist/divider.js +5 -0
  476. package/dist/divider.js.map +1 -0
  477. package/dist/dropdown.js +16 -0
  478. package/dist/dropdown.js.map +1 -0
  479. package/dist/empty-state.js +8 -0
  480. package/dist/empty-state.js.map +1 -0
  481. package/dist/file-uploader.js +5 -0
  482. package/dist/file-uploader.js.map +1 -0
  483. package/dist/filter-bar.js +9 -0
  484. package/dist/filter-bar.js.map +1 -0
  485. package/dist/focus-trap.js +5 -0
  486. package/dist/focus-trap.js.map +1 -0
  487. package/dist/fonts/fonts.css +2 -0
  488. package/dist/form-layout.js +8 -0
  489. package/dist/form-layout.js.map +1 -0
  490. package/dist/header-with-views.js +5 -0
  491. package/dist/header-with-views.js.map +1 -0
  492. package/dist/header.js +5 -0
  493. package/dist/header.js.map +1 -0
  494. package/dist/image.js +7 -0
  495. package/dist/image.js.map +1 -0
  496. package/dist/index.js +439 -0
  497. package/dist/index.js.map +1 -0
  498. package/dist/info-icon.js +5 -0
  499. package/dist/info-icon.js.map +1 -0
  500. package/dist/input-field-password.js +10 -0
  501. package/dist/input-field-password.js.map +1 -0
  502. package/dist/input-field-phone-number.js +6 -0
  503. package/dist/input-field-phone-number.js.map +1 -0
  504. package/dist/input-field.js +10 -0
  505. package/dist/input-field.js.map +1 -0
  506. package/dist/inspector.js +7 -0
  507. package/dist/inspector.js.map +1 -0
  508. package/dist/internal.js +45 -0
  509. package/dist/internal.js.map +1 -0
  510. package/dist/layout.js +6 -0
  511. package/dist/layout.js.map +1 -0
  512. package/dist/link.js +6 -0
  513. package/dist/link.js.map +1 -0
  514. package/dist/loading-indicator.js +6 -0
  515. package/dist/loading-indicator.js.map +1 -0
  516. package/dist/menu.js +6 -0
  517. package/dist/menu.js.map +1 -0
  518. package/dist/modal-fullscreen.js +6 -0
  519. package/dist/modal-fullscreen.js.map +1 -0
  520. package/dist/modal.js +14 -0
  521. package/dist/modal.js.map +1 -0
  522. package/dist/pagination.js +5 -0
  523. package/dist/pagination.js.map +1 -0
  524. package/dist/payment-method.js +7 -0
  525. package/dist/payment-method.js.map +1 -0
  526. package/dist/popover.js +7 -0
  527. package/dist/popover.js.map +1 -0
  528. package/dist/popper-container.js +9 -0
  529. package/dist/popper-container.js.map +1 -0
  530. package/dist/promo-banner.js +7 -0
  531. package/dist/promo-banner.js.map +1 -0
  532. package/dist/radio-group.js +9 -0
  533. package/dist/radio-group.js.map +1 -0
  534. package/dist/rich-text-editor.js +5 -0
  535. package/dist/rich-text-editor.js.map +1 -0
  536. package/dist/search-bar.js +9 -0
  537. package/dist/search-bar.js.map +1 -0
  538. package/dist/secondary-nav.js +5 -0
  539. package/dist/secondary-nav.js.map +1 -0
  540. package/dist/segmented-control.js +7 -0
  541. package/dist/segmented-control.js.map +1 -0
  542. package/dist/selection-card.js +7 -0
  543. package/dist/selection-card.js.map +1 -0
  544. package/dist/sidepanel.js +7 -0
  545. package/dist/sidepanel.js.map +1 -0
  546. package/dist/status.js +6 -0
  547. package/dist/status.js.map +1 -0
  548. package/dist/stepper.js +8 -0
  549. package/dist/stepper.js.map +1 -0
  550. package/dist/structured-list.js +6 -0
  551. package/dist/structured-list.js.map +1 -0
  552. package/dist/styles/bento-dark.css +2133 -0
  553. package/dist/styles/bento-light.css +2132 -0
  554. package/dist/styles/bento.css +2132 -0
  555. package/dist/styles/legacy.css +2132 -0
  556. package/dist/styles/styleguide.css +2187 -0
  557. package/dist/styles/utility.css +1002 -0
  558. package/dist/summary-grid.js +12 -0
  559. package/dist/summary-grid.js.map +1 -0
  560. package/dist/tabs.js +6 -0
  561. package/dist/tabs.js.map +1 -0
  562. package/dist/tag.js +6 -0
  563. package/dist/tag.js.map +1 -0
  564. package/dist/textarea.js +5 -0
  565. package/dist/textarea.js.map +1 -0
  566. package/dist/timeline.js +10 -0
  567. package/dist/timeline.js.map +1 -0
  568. package/dist/toast.js +5 -0
  569. package/dist/toast.js.map +1 -0
  570. package/dist/toggle.js +7 -0
  571. package/dist/toggle.js.map +1 -0
  572. package/dist/tutorial.js +5 -0
  573. package/dist/tutorial.js.map +1 -0
  574. package/dist/typography.js +8 -0
  575. package/dist/typography.js.map +1 -0
  576. package/dist/use-form-v4.js +8300 -0
  577. package/dist/use-form-v4.js.map +1 -0
  578. package/dist/web-types.json +49 -0
  579. package/package.json +13 -12
@@ -0,0 +1,254 @@
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 u, renderSlot as O, createTextVNode as J, toDisplayString as Y, toRefs as M, ref as i, computed as b, 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.yBEME_Gu.js";
3
+ import { F as ee } from "./footer-actions.C_EniPHo.js";
4
+ import { D as te, B as se, b as ae, a as ie } from "./dialog-page.BY6T1jYZ.js";
5
+ import { _ as N } from "./_plugin-vue_export-helper.CHgC5LLL.js";
6
+ import { B as ne } from "./button.DhcxX2GJ.js";
7
+ import { B as oe } from "./focus-trap.BaHvK7aT.js";
8
+ import { C as le } from "./cross.B92GxFTY.js";
9
+ import { S as re } from "./button-actions.CbEoQYUV.js";
10
+ import { B as ue } from "./directive.Cbdox5VL.js";
11
+ import { u as ce } from "./index.pdBj0KQU.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
+ u(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
+ u(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
+ u(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-42613cdd"]]);
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 } = ce({ messages: G }), o = i(null), c = i([]), l = i([]), w = i(se.TRANSITION_LEVEL_DEEPER), d = i(!1), B = de("sidepanel"), g = i(!1), I = i(!1), L = b(() => ({
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 = b(() => 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
+ c.value = (r = c.value) == null ? void 0 : r.filter((C) => C !== a);
205
+ }, F = (a) => (c.value.push(a), { unregisterPage: x(a) });
206
+ return A(ae, {
207
+ activePage: h,
208
+ animation: w,
209
+ isAnimationActive: I,
210
+ isOpen: g,
211
+ pages: c,
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((C) => 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
+ u(t(ne), {
229
+ variant: "tertiary",
230
+ onClick: p
231
+ }, {
232
+ default: n(() => [
233
+ u(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(ue), V]
245
+ ])
246
+ ], 34));
247
+ }
248
+ }), ke = /* @__PURE__ */ N(Ae, [["__scopeId", "data-v-42a38803"]]);
249
+ export {
250
+ v as B,
251
+ ke as a,
252
+ Ge as s
253
+ };
254
+ //# sourceMappingURL=sidepanel.CiyGOtAx.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sidepanel.CiyGOtAx.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 { type PropType } from 'vue';\n\n import { type 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 type BentoDialogPageConfigData,\n type 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<Array<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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,44 @@
1
+ import { defineComponent as a, computed as l, createElementBlock as n, openBlock as c, createElementVNode as s, createVNode as _, normalizeClass as p, unref as d, withCtx as i, renderSlot as u } from "vue";
2
+ import { B as m } from "./typography.yBEME_Gu.js";
3
+ import { _ as b } from "./_plugin-vue_export-helper.CHgC5LLL.js";
4
+ import "../assets/status.css";
5
+ const f = {
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", f, [
20
+ s("div", v, [
21
+ s("span", {
22
+ class: p(["b-status__indicator", o.value]),
23
+ role: "presentation"
24
+ }, null, 2)
25
+ ]),
26
+ _(d(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__ */ b(h, [["__scopeId", "data-v-a34bebbc"]]);
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.-l2qJxLn.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"status.types.-l2qJxLn.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 { type 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;"}
@@ -0,0 +1,267 @@
1
+ import { defineComponent as K, ref as i, computed as s, watch as O, provide as U, readonly as ne, createElementBlock as T, openBlock as y, withDirectives as Z, createVNode as B, mergeProps as se, toHandlers as ae, unref as p, renderSlot as P, withCtx as g, createTextVNode as j, toDisplayString as G, useSlots as oe, inject as le, onMounted as ue, onBeforeUnmount as re, normalizeClass as ie, createBlock as F, Fragment as pe, createElementVNode as ce, vShow as ve } from "vue";
2
+ import { B as w } from "./typography.yBEME_Gu.js";
3
+ import { B as R, a as de } from "./keyboard-navigation.DWmhelVv.js";
4
+ import { u as me } from "./index.pdBj0KQU.js";
5
+ import { _ as M } from "./_plugin-vue_export-helper.CHgC5LLL.js";
6
+ import { B as be } from "./base-button.BSLpAs8A.js";
7
+ import { C as fe } from "./checkmark-small.x-gmK2Dt.js";
8
+ import { D as Se } from "./dot.ob6N-5Um.js";
9
+ import "../assets/step.css";
10
+ const _e = (t) => {
11
+ function c(v) {
12
+ return ({ detail: m }) => {
13
+ var l;
14
+ m.preventDefault();
15
+ const r = t.value.indexOf(document.activeElement);
16
+ r < 0 || (l = t.value[r + v]) == null || l.focus();
17
+ };
18
+ }
19
+ const u = c(-1), o = c(1);
20
+ return {
21
+ [R.ARROW_DOWN]: o,
22
+ [R.ARROW_RIGHT]: o,
23
+ [R.ARROW_UP]: u,
24
+ [R.ARROW_LEFT]: u
25
+ };
26
+ }, ye = (t) => {
27
+ const c = t.buttonElement.value.parentElement, u = c.parentElement;
28
+ return Array.from(u.children).indexOf(c);
29
+ }, q = (t) => ({ registerStep: (o) => {
30
+ const v = ye(o);
31
+ t.value.splice(v, 0, {
32
+ stepContent: o.stepContent,
33
+ buttonElement: o.buttonElement,
34
+ substeps: o.substeps
35
+ });
36
+ }, removeStep: (o) => {
37
+ t.value.splice(
38
+ t.value.findIndex((v) => v.buttonElement === o.buttonElement.value),
39
+ 1
40
+ );
41
+ } }), H = /* @__PURE__ */ Symbol("stepper state");
42
+ var W = /* @__PURE__ */ ((t) => (t.LINEAR = "linear", t.NON_LINEAR = "non-linear", t))(W || {}), z = /* @__PURE__ */ ((t) => (t.HORIZONTAL = "horizontal", t.VERTICAL = "vertical", t))(z || {});
43
+ const J = {
44
+ "en-US": {
45
+ step: "Step {currentIndex}/{totalSteps} {content}"
46
+ }
47
+ }, xe = { class: "b-stepper" }, ge = {
48
+ i18n: { messages: J },
49
+ name: "stepper"
50
+ }, Ee = /* @__PURE__ */ K({
51
+ ...ge,
52
+ props: {
53
+ /**
54
+ * Type of stepper; defines how the stepper should behave. Default: linear
55
+ * @values linear, non-linear
56
+ */
57
+ type: {
58
+ type: String,
59
+ default: "linear"
60
+ },
61
+ /**
62
+ * Stepper variant; defines how the stepper should be displayed. Default: vertical
63
+ * @values vertical, horizontal
64
+ */
65
+ variant: {
66
+ type: String,
67
+ default: "vertical"
68
+ },
69
+ /**
70
+ * Active step index
71
+ */
72
+ index: {
73
+ type: Number,
74
+ default: 0
75
+ }
76
+ },
77
+ emits: ["update:index"],
78
+ setup(t, { emit: c }) {
79
+ const u = t, o = c, { t: v, n: m } = me({ messages: J }), r = i([]), l = i(u.index), e = i(l.value), S = (n) => {
80
+ n > e.value && (e.value = n), l.value = n;
81
+ }, d = s(() => {
82
+ var n;
83
+ return (n = r.value[l.value]) == null ? void 0 : n.stepContent;
84
+ }), E = s(() => r.value.length), h = s(() => r.value.map(({ buttonElement: n }) => n)), b = s(() => u.variant === z.HORIZONTAL), x = s(
85
+ () => r.value.map(({ buttonElement: n, substeps: f }, D) => {
86
+ const C = l.value === D;
87
+ return !b.value && C ? [n].concat(f.map(($) => $.buttonElement)) : [n];
88
+ }).flat()
89
+ ), { registerStep: I, removeStep: k } = q(r), L = i({
90
+ activeStepIndex: l,
91
+ latestActiveStep: e,
92
+ steps: h,
93
+ type: u.type,
94
+ variant: u.variant,
95
+ navigateToStep: S,
96
+ registerStep: I,
97
+ removeStep: k
98
+ }), V = s(() => ({
99
+ "b-stepper__list--horizontal": b.value
100
+ }));
101
+ O(() => u.index, S), O(l, (n) => {
102
+ o("update:index", n);
103
+ });
104
+ const _ = _e(x);
105
+ return U(H, ne(L)), (n, f) => (y(), T("nav", xe, [
106
+ Z((y(), T("ol", se({
107
+ class: ["b-stepper__list", V.value]
108
+ }, ae(p(_), !0)), [
109
+ P(n.$slots, "default", {}, void 0, !0)
110
+ ], 16)), [
111
+ [p(de)]
112
+ ]),
113
+ B(p(w), {
114
+ el: "span",
115
+ variant: "body",
116
+ stronger: "",
117
+ class: "b-stepper__text-stepper"
118
+ }, {
119
+ default: g(() => [
120
+ j(G(p(v)("step", {
121
+ currentIndex: p(m)(l.value + 1),
122
+ totalSteps: p(m)(E.value),
123
+ content: d.value
124
+ })), 1)
125
+ ]),
126
+ _: 1
127
+ })
128
+ ]));
129
+ }
130
+ }), Ve = /* @__PURE__ */ M(Ee, [["__scopeId", "data-v-fe05ed7a"]]), Ie = {
131
+ ref: "substepList",
132
+ class: "b-step__substep-list"
133
+ }, Ce = {
134
+ name: "step"
135
+ }, Ae = /* @__PURE__ */ K({
136
+ ...Ce,
137
+ props: {
138
+ /**
139
+ * Completed status. Used on non-linear steppers to indicate if the step is completed.
140
+ */
141
+ completed: {
142
+ type: Boolean,
143
+ default: !1
144
+ },
145
+ /**
146
+ * Active substep index
147
+ */
148
+ substepIndex: {
149
+ type: Number,
150
+ default: 0
151
+ }
152
+ },
153
+ emits: ["update:substep-index"],
154
+ setup(t, { emit: c }) {
155
+ const u = oe(), o = t, v = c, m = i(null), r = i(null), l = i([]), e = le(H), S = s(() => {
156
+ var a;
157
+ return (a = m.value) == null ? void 0 : a.$el;
158
+ }), d = s(() => e == null ? void 0 : e.value.steps.indexOf(S.value)), E = s(() => {
159
+ var a;
160
+ return (a = r.value) == null ? void 0 : a.$el.textContent;
161
+ }), h = s(() => l.value.map(({ buttonElement: a }) => a)), b = i(o.substepIndex), x = i(b.value), I = (a) => {
162
+ a > x.value && (x.value = a), b.value = a;
163
+ }, { registerStep: k, removeStep: L } = q(l), V = i({
164
+ activeStepIndex: b,
165
+ latestActiveStep: x,
166
+ type: e.value.type,
167
+ variant: e.value.variant,
168
+ steps: h,
169
+ isParentStep: !0,
170
+ navigateToStep: I,
171
+ registerStep: k,
172
+ removeStep: L
173
+ });
174
+ U(H, V), O(() => o.substepIndex, I), O(b, (a) => {
175
+ v("update:substep-index", a);
176
+ }), ue(() => {
177
+ if (!e)
178
+ throw new Error(
179
+ "BentoStep components should only be used inside BentoStepper or other BentoStep components."
180
+ );
181
+ e.value.registerStep({
182
+ buttonElement: S,
183
+ stepContent: E,
184
+ substeps: l
185
+ });
186
+ }), re(() => {
187
+ e.value.removeStep({
188
+ buttonElement: S,
189
+ stepContent: E,
190
+ substeps: l
191
+ });
192
+ });
193
+ const _ = s(() => e.value.isParentStep), n = i(!1), f = s(() => (e == null ? void 0 : e.value.activeStepIndex) === d.value), D = s(
194
+ () => f.value && e.value.variant !== z.HORIZONTAL && !_.value && u.substeps
195
+ ), C = s(() => (e == null ? void 0 : e.value.type) === W.NON_LINEAR ? o.completed : (e == null ? void 0 : e.value.latestActiveStep) > d.value), A = s(
196
+ () => (e == null ? void 0 : e.value.type) === W.LINEAR && d.value > (e == null ? void 0 : e.value.latestActiveStep)
197
+ ), $ = () => {
198
+ A.value || e.value.navigateToStep(d.value);
199
+ }, Q = s(() => f.value ? "step" : "false"), X = s(() => A.value.toString()), Y = s(() => n.value || d.value === 0 && !_.value ? "0" : "-1"), ee = s(() => ({
200
+ "b-step--active": f.value,
201
+ "b-step--completed": C.value,
202
+ "b-step--substep": _.value
203
+ }));
204
+ return (a, N) => (y(), T("li", {
205
+ class: ie([ee.value, "b-step"])
206
+ }, [
207
+ B(p(be), {
208
+ ref_key: "buttonComponent",
209
+ ref: m,
210
+ "aria-current": Q.value,
211
+ "aria-disabled": X.value,
212
+ class: "b-step__button",
213
+ type: "button",
214
+ tabindex: Y.value,
215
+ disabled: A.value,
216
+ onClick: $,
217
+ onFocus: N[0] || (N[0] = (te) => n.value = !0),
218
+ onBlur: N[1] || (N[1] = (te) => n.value = !1)
219
+ }, {
220
+ iconLeft: g(() => [
221
+ B(p(w), {
222
+ el: "span",
223
+ variant: "body",
224
+ stronger: "",
225
+ class: "b-step__index",
226
+ "aria-hidden": "true"
227
+ }, {
228
+ default: g(() => [
229
+ C.value ? (y(), F(p(fe), { key: 0 })) : _.value ? (y(), F(p(Se), { key: 2 })) : (y(), T(pe, { key: 1 }, [
230
+ j(G(d.value + 1), 1)
231
+ ], 64))
232
+ ]),
233
+ _: 1
234
+ })
235
+ ]),
236
+ default: g(() => [
237
+ B(p(w), {
238
+ ref_key: "stepContent",
239
+ ref: r,
240
+ el: "span",
241
+ variant: "body",
242
+ stronger: f.value,
243
+ class: "b-step__content"
244
+ }, {
245
+ default: g(() => [
246
+ P(a.$slots, "default", {}, void 0, !0)
247
+ ]),
248
+ _: 3
249
+ }, 8, ["stronger"])
250
+ ]),
251
+ _: 3
252
+ }, 8, ["aria-current", "aria-disabled", "tabindex", "disabled"]),
253
+ Z(ce("ul", Ie, [
254
+ P(a.$slots, "substeps", {}, void 0, !0)
255
+ ], 512), [
256
+ [ve, D.value]
257
+ ])
258
+ ], 2));
259
+ }
260
+ }), De = /* @__PURE__ */ M(Ae, [["__scopeId", "data-v-945a4dde"]]);
261
+ export {
262
+ W as B,
263
+ De as a,
264
+ z as b,
265
+ Ve as s
266
+ };
267
+ //# sourceMappingURL=step.rYLkDMZ0.js.map