@adyen/bento-vue2 1.28.0 → 1.29.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 (585) hide show
  1. package/dist/@types/components.d.ts +4 -0
  2. package/dist/@types/index.d.ts +364 -107
  3. package/dist/accordion.js +101 -3
  4. package/dist/accordion.js.map +1 -1
  5. package/dist/action-bar.js +146 -2
  6. package/dist/action-bar.js.map +1 -1
  7. package/dist/alert.js +95 -3
  8. package/dist/alert.js.map +1 -1
  9. package/dist/assets/base-modal.css +1 -1
  10. package/dist/assets/button.css +1 -1
  11. package/dist/assets/checkbox-input.css +1 -1
  12. package/dist/assets/dialog-page.css +1 -1
  13. package/dist/assets/dropdown-default-textbox.css +1 -1
  14. package/dist/assets/dropdown.css +1 -1
  15. package/dist/assets/error-message.css +1 -1
  16. package/dist/assets/{data-grid.css → index11.css} +1 -1
  17. package/dist/assets/index14.css +1 -0
  18. package/dist/assets/index18.css +1 -0
  19. package/dist/assets/index19.css +1 -0
  20. package/dist/assets/{secondary-nav.css → index21.css} +1 -1
  21. package/dist/assets/index22.css +1 -0
  22. package/dist/assets/{action-bar.css → index23.css} +1 -1
  23. package/dist/assets/{sidepanel.css → index24.css} +1 -1
  24. package/dist/assets/index28.css +1 -0
  25. package/dist/assets/{accordion-item.css → index3.css} +1 -1
  26. package/dist/assets/index30.css +1 -0
  27. package/dist/assets/index33.css +1 -0
  28. package/dist/assets/{modal-fullscreen.css → index36.css} +1 -1
  29. package/dist/assets/{menu.css → index38.css} +1 -1
  30. package/dist/assets/index39.css +1 -0
  31. package/dist/assets/{popover.css → index40.css} +1 -1
  32. package/dist/assets/index42.css +1 -0
  33. package/dist/assets/index43.css +1 -0
  34. package/dist/assets/index45.css +1 -0
  35. package/dist/assets/{dashboard-section.css → index47.css} +1 -1
  36. package/dist/assets/index48.css +1 -0
  37. package/dist/assets/{card.css → index5.css} +1 -1
  38. package/dist/assets/index7.css +1 -0
  39. package/dist/assets/listbox-option-tag.css +1 -1
  40. package/dist/assets/loading-button.css +1 -1
  41. package/dist/assets/radio-input.css +1 -1
  42. package/dist/assets/segmented-control.css +1 -1
  43. package/dist/avatar.js +75 -0
  44. package/dist/avatar.js.map +1 -0
  45. package/dist/badge.js +24 -22
  46. package/dist/badge.js.map +1 -1
  47. package/dist/button.js +94 -14
  48. package/dist/button.js.map +1 -1
  49. package/dist/card.js +114 -4
  50. package/dist/card.js.map +1 -1
  51. package/dist/checkbox.js +155 -8
  52. package/dist/checkbox.js.map +1 -1
  53. package/dist/chunks/1-generic-use.3ea646cd.js +5 -0
  54. package/dist/chunks/1-generic-use.3ea646cd.js.map +1 -0
  55. package/dist/chunks/1-generic-use.ccca5813.js +5 -0
  56. package/dist/chunks/1-generic-use.ccca5813.js.map +1 -0
  57. package/dist/chunks/2-generic-use.443db127.js +5 -0
  58. package/dist/chunks/2-generic-use.443db127.js.map +1 -0
  59. package/dist/chunks/2-generic-use.d69d7c08.js +5 -0
  60. package/dist/chunks/2-generic-use.d69d7c08.js.map +1 -0
  61. package/dist/chunks/3-generic-use.9f74667f.js +5 -0
  62. package/dist/chunks/3-generic-use.9f74667f.js.map +1 -0
  63. package/dist/chunks/3-generic-use.fe7ae2ce.js +5 -0
  64. package/dist/chunks/3-generic-use.fe7ae2ce.js.map +1 -0
  65. package/dist/chunks/4-generic-use.0356f4a1.js +5 -0
  66. package/dist/chunks/4-generic-use.0356f4a1.js.map +1 -0
  67. package/dist/chunks/4-generic-use.cd04bad0.js +5 -0
  68. package/dist/chunks/4-generic-use.cd04bad0.js.map +1 -0
  69. package/dist/chunks/_plugin-vue2_normalizer.71e2aa87.js +33 -0
  70. package/dist/chunks/_plugin-vue2_normalizer.71e2aa87.js.map +1 -0
  71. package/dist/chunks/adding-payment-methods.d570e03e.js +5 -0
  72. package/dist/chunks/adding-payment-methods.d570e03e.js.map +1 -0
  73. package/dist/chunks/adding-payment-methods.e419d6c0.js +5 -0
  74. package/dist/chunks/adding-payment-methods.e419d6c0.js.map +1 -0
  75. package/dist/chunks/adyen-giving.480913b5.js +5 -0
  76. package/dist/chunks/adyen-giving.480913b5.js.map +1 -0
  77. package/dist/chunks/adyen-giving.54ed984c.js +5 -0
  78. package/dist/chunks/adyen-giving.54ed984c.js.map +1 -0
  79. package/dist/chunks/{aria-label.CaUURpnB.js → aria-label.ac9651a5.js} +1 -1
  80. package/dist/chunks/{aria-label.CaUURpnB.js.map → aria-label.ac9651a5.js.map} +1 -1
  81. package/dist/chunks/base-button.852204dc.js +88 -0
  82. package/dist/chunks/{base-button.DER7_IsF.js.map → base-button.852204dc.js.map} +1 -1
  83. package/dist/chunks/{base-modal.C5I7bR0d.js → base-modal.00322d31.js} +46 -42
  84. package/dist/chunks/{base-modal.C5I7bR0d.js.map → base-modal.00322d31.js.map} +1 -1
  85. package/dist/chunks/{base-modal.keys.C2PQXcE2.js → base-modal.keys.b08a6bdf.js} +1 -1
  86. package/dist/chunks/{base-modal.keys.C2PQXcE2.js.map → base-modal.keys.b08a6bdf.js.map} +1 -1
  87. package/dist/chunks/{button-actions-with-menu.f3yuLK-L.js → button-actions-with-menu.bc66bc0a.js} +27 -25
  88. package/dist/chunks/{button-actions-with-menu.f3yuLK-L.js.map → button-actions-with-menu.bc66bc0a.js.map} +1 -1
  89. package/dist/chunks/{button-actions.Bg9ey0p6.js → button-actions.430d7510.js} +31 -29
  90. package/dist/chunks/{button-actions.Bg9ey0p6.js.map → button-actions.430d7510.js.map} +1 -1
  91. package/dist/chunks/{button.DhAUh5JA.js → button.9184ade9.js} +24 -22
  92. package/dist/chunks/{button.DhAUh5JA.js.map → button.9184ade9.js.map} +1 -1
  93. package/dist/chunks/{calendar.B69z8gjb.js → calendar.bea81953.js} +332 -287
  94. package/dist/chunks/{calendar.B69z8gjb.js.map → calendar.bea81953.js.map} +1 -1
  95. package/dist/chunks/{checkbox-input.DwDwI2BD.js → checkbox-input.5ab6ebe7.js} +32 -28
  96. package/dist/chunks/{checkbox-input.DwDwI2BD.js.map → checkbox-input.5ab6ebe7.js.map} +1 -1
  97. package/dist/chunks/{checkbox.Bi2RDBEZ.js → checkbox.192e921e.js} +23 -21
  98. package/dist/chunks/{checkbox.Bi2RDBEZ.js.map → checkbox.192e921e.js.map} +1 -1
  99. package/dist/chunks/checkmark-circle-fill.382e27e2.js +26 -0
  100. package/dist/chunks/{checkmark-circle-fill.DVl6QSwm.js.map → checkmark-circle-fill.382e27e2.js.map} +1 -1
  101. package/dist/chunks/{checkmark-small.BtF8b2gE.js → checkmark-small.6f444bd7.js} +9 -7
  102. package/dist/chunks/{checkmark-small.BtF8b2gE.js.map → checkmark-small.6f444bd7.js.map} +1 -1
  103. package/dist/chunks/{chevron-left.CtnrsqUy.js → chevron-left.3cd9eeee.js} +18 -14
  104. package/dist/chunks/{chevron-left.CtnrsqUy.js.map → chevron-left.3cd9eeee.js.map} +1 -1
  105. package/dist/chunks/{chevron-up.B2uWhZf7.js → chevron-up.bade9c77.js} +19 -15
  106. package/dist/chunks/{chevron-up.B2uWhZf7.js.map → chevron-up.bade9c77.js.map} +1 -1
  107. package/dist/chunks/{controls-group.cSRFiEVO.js → controls-group.6b05fbb4.js} +19 -17
  108. package/dist/chunks/{controls-group.cSRFiEVO.js.map → controls-group.6b05fbb4.js.map} +1 -1
  109. package/dist/chunks/{copy.BtFWFG3q.js → copy.d5dd2b60.js} +19 -15
  110. package/dist/chunks/{copy.BtFWFG3q.js.map → copy.d5dd2b60.js.map} +1 -1
  111. package/dist/chunks/{country.types.Br0AjxGy.js → country.types.002caff2.js} +5 -5
  112. package/dist/chunks/{country.types.Br0AjxGy.js.map → country.types.002caff2.js.map} +1 -1
  113. package/dist/chunks/cross-circle-fill-small.b0310bd6.js +26 -0
  114. package/dist/chunks/cross-circle-fill-small.b0310bd6.js.map +1 -0
  115. package/dist/chunks/{cross-circle-fill.CnYH4R_h.js → cross-circle-fill.dd300d4c.js} +10 -8
  116. package/dist/chunks/{cross-circle-fill.CnYH4R_h.js.map → cross-circle-fill.dd300d4c.js.map} +1 -1
  117. package/dist/chunks/{cross-small.BLUwtRB-.js → cross-small.3bb94ec7.js} +12 -10
  118. package/dist/chunks/{cross-small.BLUwtRB-.js.map → cross-small.3bb94ec7.js.map} +1 -1
  119. package/dist/chunks/{cross.CsUPDmaA.js → cross.f47f6b7f.js} +12 -10
  120. package/dist/chunks/{cross.CsUPDmaA.js.map → cross.f47f6b7f.js.map} +1 -1
  121. package/dist/chunks/{data-grid-template.keys.2_AkxuNT.js → data-grid-template.keys.a819a991.js} +1 -1
  122. package/dist/chunks/{data-grid-template.keys.2_AkxuNT.js.map → data-grid-template.keys.a819a991.js.map} +1 -1
  123. package/dist/chunks/{date-input.BqBdAO1E.js → date-input.9186a0bf.js} +1 -1
  124. package/dist/chunks/{date-input.BqBdAO1E.js.map → date-input.9186a0bf.js.map} +1 -1
  125. package/dist/chunks/{debounce.DUTu11PS.js → debounce.b5ef6acf.js} +1 -1
  126. package/dist/chunks/{debounce.DUTu11PS.js.map → debounce.b5ef6acf.js.map} +1 -1
  127. package/dist/chunks/{dialog-page.DAh0M4mT.js → dialog-page.c663c657.js} +24 -20
  128. package/dist/chunks/{dialog-page.DAh0M4mT.js.map → dialog-page.c663c657.js.map} +1 -1
  129. package/dist/chunks/{dropdown-default-textbox.CKOkl_Qa.js → dropdown-default-textbox.346c40ea.js} +64 -51
  130. package/dist/chunks/dropdown-default-textbox.346c40ea.js.map +1 -0
  131. package/dist/chunks/{dropdown.yhhQCKve.js → dropdown.9bee6e1d.js} +248 -230
  132. package/dist/chunks/dropdown.9bee6e1d.js.map +1 -0
  133. package/dist/chunks/error-message.af88c25f.js +111 -0
  134. package/dist/chunks/{error-message.BSxUoE3_.js.map → error-message.af88c25f.js.map} +1 -1
  135. package/dist/chunks/es6.cf6b43e9.js +9 -0
  136. package/dist/chunks/es6.cf6b43e9.js.map +1 -0
  137. package/dist/chunks/events.f14a214b.js +50 -0
  138. package/dist/chunks/{events.CMzGybJJ.js.map → events.f14a214b.js.map} +1 -1
  139. package/dist/chunks/expand.d0ccfcfe.js +26 -0
  140. package/dist/chunks/expand.d0ccfcfe.js.map +1 -0
  141. package/dist/chunks/{fixed-scroller.Bq1AgPnw.js → fixed-scroller.5e51ffb3.js} +20 -18
  142. package/dist/chunks/{fixed-scroller.Bq1AgPnw.js.map → fixed-scroller.5e51ffb3.js.map} +1 -1
  143. package/dist/chunks/{footer-actions.DqMRmlV_.js → footer-actions.b4fe4fdb.js} +13 -11
  144. package/dist/chunks/{footer-actions.DqMRmlV_.js.map → footer-actions.b4fe4fdb.js.map} +1 -1
  145. package/dist/chunks/{form-layout.types.D3EKzbE7.js → form-layout.types.a7a1438d.js} +1 -1
  146. package/dist/chunks/{form-layout.types.D3EKzbE7.js.map → form-layout.types.a7a1438d.js.map} +1 -1
  147. package/dist/chunks/{get-slot-text.Cgn-E48s.js → get-slot-text.99c3d860.js} +2 -2
  148. package/dist/chunks/{get-slot-text.Cgn-E48s.js.map → get-slot-text.99c3d860.js.map} +1 -1
  149. package/dist/chunks/{grid-layout.HvTAa4to.js → grid-layout.e0025286.js} +13 -11
  150. package/dist/chunks/{grid-layout.HvTAa4to.js.map → grid-layout.e0025286.js.map} +1 -1
  151. package/dist/chunks/{i18n.BQkEbtPM.js → i18n.eb5b985b.js} +2 -2
  152. package/dist/chunks/{i18n.BQkEbtPM.js.map → i18n.eb5b985b.js.map} +1 -1
  153. package/dist/chunks/{structured-list-item.C9NTVDvT.js → index.1c8f9245.js} +22 -18
  154. package/dist/chunks/index.1c8f9245.js.map +1 -0
  155. package/dist/chunks/{popover.B8YH92W8.js → index.40b77741.js} +37 -31
  156. package/dist/chunks/index.40b77741.js.map +1 -0
  157. package/dist/chunks/index.4afa7b19.js +32 -0
  158. package/dist/chunks/index.4afa7b19.js.map +1 -0
  159. package/dist/chunks/{index.Cl4_42j5.js → index.4c062058.js} +1 -1
  160. package/dist/chunks/{index.Cl4_42j5.js.map → index.4c062058.js.map} +1 -1
  161. package/dist/chunks/{date.DKjxxR6P.js → index.614a5138.js} +51 -44
  162. package/dist/chunks/index.614a5138.js.map +1 -0
  163. package/dist/chunks/index.6584f75e.js +183 -0
  164. package/dist/chunks/{index.OCPp3NST.js.map → index.6584f75e.js.map} +1 -1
  165. package/dist/chunks/{index.xqFSZOAb.js → index.86453263.js} +2 -2
  166. package/dist/chunks/{index.xqFSZOAb.js.map → index.86453263.js.map} +1 -1
  167. package/dist/chunks/{menu.2TwUMlA9.js → index.8a037a95.js} +94 -82
  168. package/dist/chunks/index.8a037a95.js.map +1 -0
  169. package/dist/chunks/{focus-trap.DSkLNO_i.js → index.ba69cab6.js} +37 -35
  170. package/dist/chunks/index.ba69cab6.js.map +1 -0
  171. package/dist/chunks/{popper-container.Bt02N3o1.js → index.bad400d5.js} +436 -381
  172. package/dist/chunks/index.bad400d5.js.map +1 -0
  173. package/dist/chunks/{index.Z84QE0E2.js → index.d80206ed.js} +2 -2
  174. package/dist/chunks/{index.Z84QE0E2.js.map → index.d80206ed.js.map} +1 -1
  175. package/dist/chunks/{typography.Bjtu3Gca.js → index.e29a6907.js} +32 -30
  176. package/dist/chunks/index.e29a6907.js.map +1 -0
  177. package/dist/chunks/{link.DJ1A53gF.js → index.f46e4190.js} +24 -20
  178. package/dist/chunks/index.f46e4190.js.map +1 -0
  179. package/dist/chunks/{index.B_UZQ6qF.js → index.f55fdc32.js} +243 -209
  180. package/dist/chunks/{index.B_UZQ6qF.js.map → index.f55fdc32.js.map} +1 -1
  181. package/dist/chunks/{date-range-picker.DrnklTJ-.js → index.fc70e413.js} +117 -113
  182. package/dist/chunks/index.fc70e413.js.map +1 -0
  183. package/dist/chunks/{index.B_EJflcs.js → index.fdf12170.js} +2 -2
  184. package/dist/chunks/{index.B_EJflcs.js.map → index.fdf12170.js.map} +1 -1
  185. package/dist/chunks/{info.CyeBsLgt.js → info.a549470f.js} +12 -10
  186. package/dist/chunks/{info.CyeBsLgt.js.map → info.a549470f.js.map} +1 -1
  187. package/dist/chunks/internal-error.35cbb071.js +5 -0
  188. package/dist/chunks/internal-error.35cbb071.js.map +1 -0
  189. package/dist/chunks/internal-error.9a4823ed.js +5 -0
  190. package/dist/chunks/internal-error.9a4823ed.js.map +1 -0
  191. package/dist/chunks/{keyboard-navigation.Clz1jOaA.js → keyboard-navigation.bbc3d15c.js} +2 -2
  192. package/dist/chunks/{keyboard-navigation.Clz1jOaA.js.map → keyboard-navigation.bbc3d15c.js.map} +1 -1
  193. package/dist/chunks/listbox-option-tag.bac3121a.js +46 -0
  194. package/dist/chunks/listbox-option-tag.bac3121a.js.map +1 -0
  195. package/dist/chunks/loading-button.b5dca406.js +101 -0
  196. package/dist/chunks/loading-button.b5dca406.js.map +1 -0
  197. package/dist/chunks/{modal-fullscreen.keys.CMba3hYp.js → modal-fullscreen.keys.b9f31632.js} +1 -1
  198. package/dist/chunks/{modal-fullscreen.keys.CMba3hYp.js.map → modal-fullscreen.keys.b9f31632.js.map} +1 -1
  199. package/dist/chunks/no-results-found.58856d70.js +5 -0
  200. package/dist/chunks/no-results-found.58856d70.js.map +1 -0
  201. package/dist/chunks/no-results-found.cbb12f78.js +5 -0
  202. package/dist/chunks/no-results-found.cbb12f78.js.map +1 -0
  203. package/dist/chunks/notifications-cleared.71025c22.js +5 -0
  204. package/dist/chunks/notifications-cleared.71025c22.js.map +1 -0
  205. package/dist/chunks/notifications-cleared.c4f4bed4.js +5 -0
  206. package/dist/chunks/notifications-cleared.c4f4bed4.js.map +1 -0
  207. package/dist/chunks/{on-click-outside.CcNG5w7_.js → on-click-outside.3e0c3e2a.js} +1 -1
  208. package/dist/chunks/{on-click-outside.CcNG5w7_.js.map → on-click-outside.3e0c3e2a.js.map} +1 -1
  209. package/dist/chunks/page-not-found.a500440d.js +5 -0
  210. package/dist/chunks/page-not-found.a500440d.js.map +1 -0
  211. package/dist/chunks/page-not-found.d1a84ba7.js +5 -0
  212. package/dist/chunks/page-not-found.d1a84ba7.js.map +1 -0
  213. package/dist/chunks/{payment-method.D9Qx-s4V.js → payment-method.c55dd352.js} +21 -19
  214. package/dist/chunks/{payment-method.D9Qx-s4V.js.map → payment-method.c55dd352.js.map} +1 -1
  215. package/dist/chunks/planned-maintenance.7fa5ac16.js +5 -0
  216. package/dist/chunks/planned-maintenance.7fa5ac16.js.map +1 -0
  217. package/dist/chunks/planned-maintenance.cff01aed.js +5 -0
  218. package/dist/chunks/planned-maintenance.cff01aed.js.map +1 -0
  219. package/dist/chunks/{radio-input.BQcC0INR.js → radio-input.e34c0fa8.js} +17 -15
  220. package/dist/chunks/{radio-input.BQcC0INR.js.map → radio-input.e34c0fa8.js.map} +1 -1
  221. package/dist/chunks/referrals.178ce0eb.js +5 -0
  222. package/dist/chunks/referrals.178ce0eb.js.map +1 -0
  223. package/dist/chunks/referrals.599047da.js +5 -0
  224. package/dist/chunks/referrals.599047da.js.map +1 -0
  225. package/dist/chunks/{refresh.BKI9WwKh.js → refresh.2ef3d8a9.js} +10 -8
  226. package/dist/chunks/{refresh.BKI9WwKh.js.map → refresh.2ef3d8a9.js.map} +1 -1
  227. package/dist/chunks/{resize.Bqks3WUm.js → resize.a041304d.js} +1 -1
  228. package/dist/chunks/{resize.Bqks3WUm.js.map → resize.a041304d.js.map} +1 -1
  229. package/dist/chunks/{search.CBKhp7zB.js → search.83bba8e3.js} +13 -11
  230. package/dist/chunks/{search.CBKhp7zB.js.map → search.83bba8e3.js.map} +1 -1
  231. package/dist/chunks/{segmented-control.DGjIC7Ab.js → segmented-control.9f657859.js} +31 -27
  232. package/dist/chunks/{segmented-control.DGjIC7Ab.js.map → segmented-control.9f657859.js.map} +1 -1
  233. package/dist/chunks/{sidepanel.keys.R0DKQuYx.js → sidepanel.keys.1ed8a57c.js} +1 -1
  234. package/dist/chunks/{sidepanel.keys.R0DKQuYx.js.map → sidepanel.keys.1ed8a57c.js.map} +1 -1
  235. package/dist/chunks/success.41981fe8.js +5 -0
  236. package/dist/chunks/success.41981fe8.js.map +1 -0
  237. package/dist/chunks/success.77fac78b.js +5 -0
  238. package/dist/chunks/success.77fac78b.js.map +1 -0
  239. package/dist/chunks/{summary-grid.keys.BBbFrFGF.js → summary-grid.keys.1d1028c2.js} +1 -1
  240. package/dist/chunks/{summary-grid.keys.BBbFrFGF.js.map → summary-grid.keys.1d1028c2.js.map} +1 -1
  241. package/dist/chunks/{tabs.keys.Bc2pSKRw.js → tabs.keys.358742f2.js} +1 -1
  242. package/dist/chunks/{tabs.keys.Bc2pSKRw.js.map → tabs.keys.358742f2.js.map} +1 -1
  243. package/dist/chunks/{teleport.CQKBJZU5.js → teleport.84b0f20b.js} +16 -14
  244. package/dist/chunks/{teleport.CQKBJZU5.js.map → teleport.84b0f20b.js.map} +1 -1
  245. package/dist/chunks/{tooltip.DR8rbIYw.js → tooltip.77610390.js} +32 -29
  246. package/dist/chunks/{tooltip.DR8rbIYw.js.map → tooltip.77610390.js.map} +1 -1
  247. package/dist/chunks/{unique-id.XFfoKuc2.js → unique-id.a2a2b458.js} +20 -14
  248. package/dist/chunks/{unique-id.XFfoKuc2.js.map → unique-id.a2a2b458.js.map} +1 -1
  249. package/dist/chunks/upload-files.2708eca7.js +5 -0
  250. package/dist/chunks/upload-files.2708eca7.js.map +1 -0
  251. package/dist/chunks/upload-files.b4cd9f8b.js +5 -0
  252. package/dist/chunks/upload-files.b4cd9f8b.js.map +1 -0
  253. package/dist/chunks/{use-bento-toast-controller.BifdE4ak.js → use-bento-toast-controller.5dac1f3c.js} +4 -4
  254. package/dist/chunks/{use-bento-toast-controller.BifdE4ak.js.map → use-bento-toast-controller.5dac1f3c.js.map} +1 -1
  255. package/dist/chunks/{use-cached-selected-values.CVLzxvTi.js → use-cached-selected-values.148bfd7c.js} +237 -217
  256. package/dist/chunks/use-cached-selected-values.148bfd7c.js.map +1 -0
  257. package/dist/chunks/{use-click-outside.DbjR7Lh4.js → use-click-outside.941d1600.js} +2 -2
  258. package/dist/chunks/{use-click-outside.DbjR7Lh4.js.map → use-click-outside.941d1600.js.map} +1 -1
  259. package/dist/chunks/{use-country-items.C25TI6tp.js → use-country-items.6b7985bf.js} +4 -4
  260. package/dist/chunks/{use-country-items.C25TI6tp.js.map → use-country-items.6b7985bf.js.map} +1 -1
  261. package/dist/chunks/{use-default-slot-validator.BDn0wkYP.js → use-default-slot-validator.b9bff4c6.js} +2 -2
  262. package/dist/chunks/{use-default-slot-validator.BDn0wkYP.js.map → use-default-slot-validator.b9bff4c6.js.map} +1 -1
  263. package/dist/chunks/{use-expandable-content-height.GkjjbmPy.js → use-expandable-content-height.62fc84e5.js} +1 -1
  264. package/dist/chunks/{use-expandable-content-height.GkjjbmPy.js.map → use-expandable-content-height.62fc84e5.js.map} +1 -1
  265. package/dist/chunks/{use-form-layout-loading.D3lALhtC.js → use-form-layout-loading.d03e5d48.js} +2 -2
  266. package/dist/chunks/{use-form-layout-loading.D3lALhtC.js.map → use-form-layout-loading.d03e5d48.js.map} +1 -1
  267. package/dist/chunks/use-has-slot.fbeb19ec.js +6 -0
  268. package/dist/chunks/{use-has-slot.C9lQZ6nz.js.map → use-has-slot.fbeb19ec.js.map} +1 -1
  269. package/dist/chunks/{warning-filled.CLKRzGMT.js → warning-filled.1ced4163.js} +12 -10
  270. package/dist/chunks/{warning-filled.CLKRzGMT.js.map → warning-filled.1ced4163.js.map} +1 -1
  271. package/dist/chunks/wrong-environment.c73b0bc0.js +5 -0
  272. package/dist/chunks/wrong-environment.c73b0bc0.js.map +1 -0
  273. package/dist/chunks/wrong-environment.f890a237.js +5 -0
  274. package/dist/chunks/wrong-environment.f890a237.js.map +1 -0
  275. package/dist/click-outside.js +20 -2
  276. package/dist/click-outside.js.map +1 -1
  277. package/dist/code-snippet.js +2034 -5
  278. package/dist/code-snippet.js.map +1 -1
  279. package/dist/country.js +97 -8
  280. package/dist/country.js.map +1 -1
  281. package/dist/currency.js +112 -3
  282. package/dist/currency.js.map +1 -1
  283. package/dist/dashboard-template.js +106 -3
  284. package/dist/dashboard-template.js.map +1 -1
  285. package/dist/dashed-underline.js +58 -2
  286. package/dist/dashed-underline.js.map +1 -1
  287. package/dist/data-grid-template.js +65 -2
  288. package/dist/data-grid-template.js.map +1 -1
  289. package/dist/data-grid.js +2057 -8
  290. package/dist/data-grid.js.map +1 -1
  291. package/dist/date-picker.js +197 -5
  292. package/dist/date-picker.js.map +1 -1
  293. package/dist/date-range-picker.js +2 -2
  294. package/dist/date.js +1 -1
  295. package/dist/divider.js +1 -1
  296. package/dist/dropdown.js +228 -12
  297. package/dist/dropdown.js.map +1 -1
  298. package/dist/empty-state.js +143 -5
  299. package/dist/empty-state.js.map +1 -1
  300. package/dist/filter-bar.js +2164 -5
  301. package/dist/filter-bar.js.map +1 -1
  302. package/dist/focus-trap.js +1 -1
  303. package/dist/form-layout.js +192 -5
  304. package/dist/form-layout.js.map +1 -1
  305. package/dist/header.js +246 -2
  306. package/dist/header.js.map +1 -1
  307. package/dist/image.js +81 -4
  308. package/dist/image.js.map +1 -1
  309. package/dist/index.js +279 -274
  310. package/dist/index.js.map +1 -1
  311. package/dist/info-icon.js +40 -2
  312. package/dist/info-icon.js.map +1 -1
  313. package/dist/input-field.js +224 -7
  314. package/dist/input-field.js.map +1 -1
  315. package/dist/inspector.js +64 -0
  316. package/dist/inspector.js.map +1 -0
  317. package/dist/internal.js +29 -30
  318. package/dist/link.js +1 -1
  319. package/dist/loading-indicator.js +47 -3
  320. package/dist/loading-indicator.js.map +1 -1
  321. package/dist/menu.js +1 -1
  322. package/dist/modal-fullscreen.js +197 -3
  323. package/dist/modal-fullscreen.js.map +1 -1
  324. package/dist/modal.js +451 -11
  325. package/dist/modal.js.map +1 -1
  326. package/dist/pagination.js +507 -2
  327. package/dist/pagination.js.map +1 -1
  328. package/dist/payment-method.js +4 -4
  329. package/dist/payment-method.js.map +1 -1
  330. package/dist/popover.js +1 -1
  331. package/dist/popper-container.js +1 -1
  332. package/dist/radio-group.js +213 -6
  333. package/dist/radio-group.js.map +1 -1
  334. package/dist/search-bar.js +101 -6
  335. package/dist/search-bar.js.map +1 -1
  336. package/dist/secondary-nav.js +115 -2
  337. package/dist/secondary-nav.js.map +1 -1
  338. package/dist/segmented-control.js +4 -4
  339. package/dist/segmented-control.js.map +1 -1
  340. package/dist/selection-card.js +248 -4
  341. package/dist/selection-card.js.map +1 -1
  342. package/dist/sidepanel.js +189 -4
  343. package/dist/sidepanel.js.map +1 -1
  344. package/dist/status.js +35 -3
  345. package/dist/status.js.map +1 -1
  346. package/dist/stepper.js +237 -5
  347. package/dist/stepper.js.map +1 -1
  348. package/dist/structured-list.js +1 -1
  349. package/dist/summary-grid.js +584 -9
  350. package/dist/summary-grid.js.map +1 -1
  351. package/dist/tabs.js +141 -3
  352. package/dist/tabs.js.map +1 -1
  353. package/dist/tag.js +63 -3
  354. package/dist/tag.js.map +1 -1
  355. package/dist/textarea.js +190 -2
  356. package/dist/textarea.js.map +1 -1
  357. package/dist/timeline.js +369 -7
  358. package/dist/timeline.js.map +1 -1
  359. package/dist/toast.js +168 -2
  360. package/dist/toast.js.map +1 -1
  361. package/dist/toggle.js +120 -4
  362. package/dist/toggle.js.map +1 -1
  363. package/dist/tutorial.js +340 -2
  364. package/dist/tutorial.js.map +1 -1
  365. package/dist/typography.js +1 -1
  366. package/dist/web-types.json +142 -9
  367. package/package.json +3 -3
  368. package/dist/assets/avatar-image.css +0 -1
  369. package/dist/assets/code-snippet.css +0 -1
  370. package/dist/assets/filter-bar.css +0 -1
  371. package/dist/assets/input-field.css +0 -1
  372. package/dist/assets/radio-group.css +0 -1
  373. package/dist/assets/search-bar.css +0 -1
  374. package/dist/assets/selection-card-group.css +0 -1
  375. package/dist/assets/structured-list-item.css +0 -1
  376. package/dist/assets/textarea.css +0 -1
  377. package/dist/assets/timeline-item.css +0 -1
  378. package/dist/assets/toggle.css +0 -1
  379. package/dist/assets/tutorial.css +0 -1
  380. package/dist/avatar-image.js +0 -7
  381. package/dist/avatar-image.js.map +0 -1
  382. package/dist/chunks/1-generic-use.CZhwP2Yc.js +0 -5
  383. package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +0 -1
  384. package/dist/chunks/1-generic-use.R6x8PEGA.js +0 -5
  385. package/dist/chunks/1-generic-use.R6x8PEGA.js.map +0 -1
  386. package/dist/chunks/2-generic-use.CNKjB4B7.js +0 -5
  387. package/dist/chunks/2-generic-use.CNKjB4B7.js.map +0 -1
  388. package/dist/chunks/2-generic-use.w0fUhovx.js +0 -5
  389. package/dist/chunks/2-generic-use.w0fUhovx.js.map +0 -1
  390. package/dist/chunks/3-generic-use.BLEzR04g.js +0 -5
  391. package/dist/chunks/3-generic-use.BLEzR04g.js.map +0 -1
  392. package/dist/chunks/3-generic-use.D3NFHgI4.js +0 -5
  393. package/dist/chunks/3-generic-use.D3NFHgI4.js.map +0 -1
  394. package/dist/chunks/4-generic-use.CULEpvgj.js +0 -5
  395. package/dist/chunks/4-generic-use.CULEpvgj.js.map +0 -1
  396. package/dist/chunks/4-generic-use.D82y3n39.js +0 -5
  397. package/dist/chunks/4-generic-use.D82y3n39.js.map +0 -1
  398. package/dist/chunks/_plugin-vue2_normalizer.CeySl7Fu.js +0 -11
  399. package/dist/chunks/_plugin-vue2_normalizer.CeySl7Fu.js.map +0 -1
  400. package/dist/chunks/accordion-item.DmnrjNzw.js +0 -100
  401. package/dist/chunks/accordion-item.DmnrjNzw.js.map +0 -1
  402. package/dist/chunks/action-bar.Bebh6PHI.js +0 -147
  403. package/dist/chunks/action-bar.Bebh6PHI.js.map +0 -1
  404. package/dist/chunks/adding-payment-methods.BJZLPxtM.js +0 -5
  405. package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +0 -1
  406. package/dist/chunks/adding-payment-methods.Dle8zt43.js +0 -5
  407. package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +0 -1
  408. package/dist/chunks/adyen-giving.Ffw_DlJK.js +0 -5
  409. package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +0 -1
  410. package/dist/chunks/adyen-giving.LiKHj_jY.js +0 -5
  411. package/dist/chunks/adyen-giving.LiKHj_jY.js.map +0 -1
  412. package/dist/chunks/alert.CJyTM4Az.js +0 -96
  413. package/dist/chunks/alert.CJyTM4Az.js.map +0 -1
  414. package/dist/chunks/avatar-image.DhlR-7Yg.js +0 -47
  415. package/dist/chunks/avatar-image.DhlR-7Yg.js.map +0 -1
  416. package/dist/chunks/base-button.DER7_IsF.js +0 -86
  417. package/dist/chunks/card.70Xvba2C.js +0 -115
  418. package/dist/chunks/card.70Xvba2C.js.map +0 -1
  419. package/dist/chunks/checkbox-group.B-KdeRXC.js +0 -152
  420. package/dist/chunks/checkbox-group.B-KdeRXC.js.map +0 -1
  421. package/dist/chunks/checkmark-circle-fill.DVl6QSwm.js +0 -24
  422. package/dist/chunks/click-outside.DABh6NLr.js +0 -23
  423. package/dist/chunks/click-outside.DABh6NLr.js.map +0 -1
  424. package/dist/chunks/code-snippet.C4IbjAhH.js +0 -968
  425. package/dist/chunks/code-snippet.C4IbjAhH.js.map +0 -1
  426. package/dist/chunks/country.KayLT0zy.js +0 -93
  427. package/dist/chunks/country.KayLT0zy.js.map +0 -1
  428. package/dist/chunks/currency.H7n7RQiX.js +0 -113
  429. package/dist/chunks/currency.H7n7RQiX.js.map +0 -1
  430. package/dist/chunks/dashboard-section.BcH-_en7.js +0 -105
  431. package/dist/chunks/dashboard-section.BcH-_en7.js.map +0 -1
  432. package/dist/chunks/dashed-underline.ChUlcFJR.js +0 -59
  433. package/dist/chunks/dashed-underline.ChUlcFJR.js.map +0 -1
  434. package/dist/chunks/data-grid-template.DqG5bNeD.js +0 -66
  435. package/dist/chunks/data-grid-template.DqG5bNeD.js.map +0 -1
  436. package/dist/chunks/data-grid.CvHAdmvs.js +0 -2022
  437. package/dist/chunks/data-grid.CvHAdmvs.js.map +0 -1
  438. package/dist/chunks/date-picker.ByP2Wpo0.js +0 -196
  439. package/dist/chunks/date-picker.ByP2Wpo0.js.map +0 -1
  440. package/dist/chunks/date-range-picker.DrnklTJ-.js.map +0 -1
  441. package/dist/chunks/date.DKjxxR6P.js.map +0 -1
  442. package/dist/chunks/divider.BZfeYmB9.js +0 -30
  443. package/dist/chunks/divider.BZfeYmB9.js.map +0 -1
  444. package/dist/chunks/dropdown-default-textbox.CKOkl_Qa.js.map +0 -1
  445. package/dist/chunks/dropdown-tag.DCMKQy-E.js +0 -214
  446. package/dist/chunks/dropdown-tag.DCMKQy-E.js.map +0 -1
  447. package/dist/chunks/dropdown.yhhQCKve.js.map +0 -1
  448. package/dist/chunks/empty-state.BqVOj4v1.js +0 -151
  449. package/dist/chunks/empty-state.BqVOj4v1.js.map +0 -1
  450. package/dist/chunks/error-message.BSxUoE3_.js +0 -107
  451. package/dist/chunks/events.CMzGybJJ.js +0 -47
  452. package/dist/chunks/filter-bar.AhsOPMZ1.js +0 -2119
  453. package/dist/chunks/filter-bar.AhsOPMZ1.js.map +0 -1
  454. package/dist/chunks/focus-trap.DSkLNO_i.js.map +0 -1
  455. package/dist/chunks/form-layout-title.BzNU0B72.js +0 -187
  456. package/dist/chunks/form-layout-title.BzNU0B72.js.map +0 -1
  457. package/dist/chunks/header.DmKHCmXh.js +0 -245
  458. package/dist/chunks/header.DmKHCmXh.js.map +0 -1
  459. package/dist/chunks/image.B3uqhFjl.js +0 -82
  460. package/dist/chunks/image.B3uqhFjl.js.map +0 -1
  461. package/dist/chunks/index.OCPp3NST.js +0 -126
  462. package/dist/chunks/info-icon.CLguYHRt.js +0 -41
  463. package/dist/chunks/info-icon.CLguYHRt.js.map +0 -1
  464. package/dist/chunks/input-field.BnlEPPYr.js +0 -218
  465. package/dist/chunks/input-field.BnlEPPYr.js.map +0 -1
  466. package/dist/chunks/internal-error.BLZodVBE.js +0 -5
  467. package/dist/chunks/internal-error.BLZodVBE.js.map +0 -1
  468. package/dist/chunks/internal-error.BmrwJFpR.js +0 -5
  469. package/dist/chunks/internal-error.BmrwJFpR.js.map +0 -1
  470. package/dist/chunks/link.DJ1A53gF.js.map +0 -1
  471. package/dist/chunks/listbox-option-tag.BDjsYOE1.js +0 -75
  472. package/dist/chunks/listbox-option-tag.BDjsYOE1.js.map +0 -1
  473. package/dist/chunks/loading-button.CoF1IhEU.js +0 -97
  474. package/dist/chunks/loading-button.CoF1IhEU.js.map +0 -1
  475. package/dist/chunks/loading-indicator.DXc7I1Lm.js +0 -48
  476. package/dist/chunks/loading-indicator.DXc7I1Lm.js.map +0 -1
  477. package/dist/chunks/menu.2TwUMlA9.js.map +0 -1
  478. package/dist/chunks/modal-fullscreen.BB_8EMNo.js +0 -196
  479. package/dist/chunks/modal-fullscreen.BB_8EMNo.js.map +0 -1
  480. package/dist/chunks/modal.DLwvcaRx.js +0 -439
  481. package/dist/chunks/modal.DLwvcaRx.js.map +0 -1
  482. package/dist/chunks/no-results-found.Bg_ZcEid.js +0 -5
  483. package/dist/chunks/no-results-found.Bg_ZcEid.js.map +0 -1
  484. package/dist/chunks/no-results-found.BqvYsBR6.js +0 -5
  485. package/dist/chunks/no-results-found.BqvYsBR6.js.map +0 -1
  486. package/dist/chunks/notifications-cleared.BMZk37uf.js +0 -5
  487. package/dist/chunks/notifications-cleared.BMZk37uf.js.map +0 -1
  488. package/dist/chunks/notifications-cleared.C7W9ZXY7.js +0 -5
  489. package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +0 -1
  490. package/dist/chunks/page-not-found.COJLPVaU.js +0 -5
  491. package/dist/chunks/page-not-found.COJLPVaU.js.map +0 -1
  492. package/dist/chunks/page-not-found.DWW6W-PZ.js +0 -5
  493. package/dist/chunks/page-not-found.DWW6W-PZ.js.map +0 -1
  494. package/dist/chunks/pagination.BXjbVe4Z.js +0 -494
  495. package/dist/chunks/pagination.BXjbVe4Z.js.map +0 -1
  496. package/dist/chunks/payment-method.types.CJKfZQN5.js +0 -5
  497. package/dist/chunks/payment-method.types.CJKfZQN5.js.map +0 -1
  498. package/dist/chunks/planned-maintenance.C61sWB9h.js +0 -5
  499. package/dist/chunks/planned-maintenance.C61sWB9h.js.map +0 -1
  500. package/dist/chunks/planned-maintenance.jmWYTdet.js +0 -5
  501. package/dist/chunks/planned-maintenance.jmWYTdet.js.map +0 -1
  502. package/dist/chunks/popover.B8YH92W8.js.map +0 -1
  503. package/dist/chunks/popper-container.Bt02N3o1.js.map +0 -1
  504. package/dist/chunks/radio-group.CPbBFTzB.js +0 -211
  505. package/dist/chunks/radio-group.CPbBFTzB.js.map +0 -1
  506. package/dist/chunks/referrals.BvtT-kQS.js +0 -5
  507. package/dist/chunks/referrals.BvtT-kQS.js.map +0 -1
  508. package/dist/chunks/referrals.aX8WZigH.js +0 -5
  509. package/dist/chunks/referrals.aX8WZigH.js.map +0 -1
  510. package/dist/chunks/search-bar.CsAgO-t5.js +0 -89
  511. package/dist/chunks/search-bar.CsAgO-t5.js.map +0 -1
  512. package/dist/chunks/secondary-nav.CNgpPxUU.js +0 -97
  513. package/dist/chunks/secondary-nav.CNgpPxUU.js.map +0 -1
  514. package/dist/chunks/segmented-control.types.BHRLV8KU.js +0 -5
  515. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +0 -1
  516. package/dist/chunks/selection-card-group.DlOs8BkR.js +0 -247
  517. package/dist/chunks/selection-card-group.DlOs8BkR.js.map +0 -1
  518. package/dist/chunks/sidepanel.BBjm2QvZ.js +0 -187
  519. package/dist/chunks/sidepanel.BBjm2QvZ.js.map +0 -1
  520. package/dist/chunks/status.types.BhbOYpZx.js +0 -36
  521. package/dist/chunks/status.types.BhbOYpZx.js.map +0 -1
  522. package/dist/chunks/step.DY8Txb6a.js +0 -234
  523. package/dist/chunks/step.DY8Txb6a.js.map +0 -1
  524. package/dist/chunks/structured-list-item.C9NTVDvT.js.map +0 -1
  525. package/dist/chunks/success.DhioLvPD.js +0 -5
  526. package/dist/chunks/success.DhioLvPD.js.map +0 -1
  527. package/dist/chunks/success.nNwxJRBS.js +0 -5
  528. package/dist/chunks/success.nNwxJRBS.js.map +0 -1
  529. package/dist/chunks/summary-grid-item-custom.CJpDnoPw.js +0 -573
  530. package/dist/chunks/summary-grid-item-custom.CJpDnoPw.js.map +0 -1
  531. package/dist/chunks/tabs.CE65f3E_.js +0 -140
  532. package/dist/chunks/tabs.CE65f3E_.js.map +0 -1
  533. package/dist/chunks/tag.bhKrZHTU.js +0 -64
  534. package/dist/chunks/tag.bhKrZHTU.js.map +0 -1
  535. package/dist/chunks/textarea.CcKbtQBs.js +0 -208
  536. package/dist/chunks/textarea.CcKbtQBs.js.map +0 -1
  537. package/dist/chunks/timeline-item.ScTrUBKC.js +0 -364
  538. package/dist/chunks/timeline-item.ScTrUBKC.js.map +0 -1
  539. package/dist/chunks/toast.0EYDj8o-.js +0 -165
  540. package/dist/chunks/toast.0EYDj8o-.js.map +0 -1
  541. package/dist/chunks/toggle-button.2U-vbQhk.js +0 -83
  542. package/dist/chunks/toggle-button.2U-vbQhk.js.map +0 -1
  543. package/dist/chunks/toggle.CiOVTWlk.js +0 -121
  544. package/dist/chunks/toggle.CiOVTWlk.js.map +0 -1
  545. package/dist/chunks/tutorial.DMm12L0S.js +0 -335
  546. package/dist/chunks/tutorial.DMm12L0S.js.map +0 -1
  547. package/dist/chunks/typography.Bjtu3Gca.js.map +0 -1
  548. package/dist/chunks/upload-files.5wQwbfkp.js +0 -5
  549. package/dist/chunks/upload-files.5wQwbfkp.js.map +0 -1
  550. package/dist/chunks/upload-files.jTQY6y2X.js +0 -5
  551. package/dist/chunks/upload-files.jTQY6y2X.js.map +0 -1
  552. package/dist/chunks/use-cached-selected-values.CVLzxvTi.js.map +0 -1
  553. package/dist/chunks/use-has-slot.C9lQZ6nz.js +0 -6
  554. package/dist/chunks/wrong-environment.BOsyKdRI.js +0 -5
  555. package/dist/chunks/wrong-environment.BOsyKdRI.js.map +0 -1
  556. package/dist/chunks/wrong-environment.BiHTPtbJ.js +0 -5
  557. package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +0 -1
  558. /package/dist/assets/{badge.css → index.css} +0 -0
  559. /package/dist/assets/{tabs.css → index10.css} +0 -0
  560. /package/dist/assets/{date-picker.css → index12.css} +0 -0
  561. /package/dist/assets/{empty-state.css → index13.css} +0 -0
  562. /package/dist/assets/{focus-trap.css → index15.css} +0 -0
  563. /package/dist/assets/{form-layout-title.css → index16.css} +0 -0
  564. /package/dist/assets/{info-icon.css → index17.css} +0 -0
  565. /package/dist/assets/{dashed-underline.css → index2.css} +0 -0
  566. /package/dist/assets/{date-range-picker.css → index20.css} +0 -0
  567. /package/dist/assets/{status.css → index25.css} +0 -0
  568. /package/dist/assets/{step.css → index26.css} +0 -0
  569. /package/dist/assets/{link.css → index27.css} +0 -0
  570. /package/dist/assets/{alert.css → index29.css} +0 -0
  571. /package/dist/assets/{header.css → index31.css} +0 -0
  572. /package/dist/assets/{loading-indicator.css → index32.css} +0 -0
  573. /package/dist/assets/{dropdown-tag.css → index34.css} +0 -0
  574. /package/dist/assets/{popper-container.css → index35.css} +0 -0
  575. /package/dist/assets/{summary-grid-item-custom.css → index37.css} +0 -0
  576. /package/dist/assets/{toggle-button.css → index4.css} +0 -0
  577. /package/dist/assets/{tag.css → index41.css} +0 -0
  578. /package/dist/assets/{toast.css → index44.css} +0 -0
  579. /package/dist/assets/{typography.css → index46.css} +0 -0
  580. /package/dist/assets/{data-grid-template.css → index49.css} +0 -0
  581. /package/dist/assets/{pagination.css → index50.css} +0 -0
  582. /package/dist/assets/{checkbox-group.css → index6.css} +0 -0
  583. /package/dist/assets/{country.css → index8.css} +0 -0
  584. /package/dist/assets/{divider.css → index9.css} +0 -0
  585. /package/dist/assets/{cross.css → refresh.css} +0 -0
@@ -1,968 +0,0 @@
1
- import { defineComponent as oe, ref as L, computed as k, shallowRef as P, onMounted as re, watch as ie, watchEffect as se } from "vue";
2
- import { highlightActiveLine as le, keymap as ce, EditorView as J, lineNumbers as de } from "@codemirror/view";
3
- import { EditorSelection as ge, Compartment as j, EditorState as G } from "@codemirror/state";
4
- import { indentWithTab as ue, history as pe } from "@codemirror/commands";
5
- import { syntaxHighlighting as fe, HighlightStyle as me } from "@codemirror/language";
6
- import { B as he } from "./dropdown.yhhQCKve.js";
7
- import { B as be } from "./button.DhAUh5JA.js";
8
- import { B as ye } from "./typography.Bjtu3Gca.js";
9
- import { B as ve } from "./loading-indicator.DXc7I1Lm.js";
10
- import { u as _e } from "./i18n.BQkEbtPM.js";
11
- import { n as q } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
12
- import { h as Ne } from "./base-modal.C5I7bR0d.js";
13
- import { C as ke } from "./copy.BtFWFG3q.js";
14
- import { json as we } from "@codemirror/lang-json";
15
- import { xml as Ce } from "@codemirror/lang-xml";
16
- import { javascript as xe } from "@codemirror/lang-javascript";
17
- import { java as Le } from "@codemirror/lang-java";
18
- import { python as Ae } from "@codemirror/lang-python";
19
- import { B as Oe } from "./tooltip.DR8rbIYw.js";
20
- import "../assets/code-snippet.css";
21
- let Ie = 0;
22
- class l {
23
- /**
24
- Create a new node prop type.
25
- */
26
- constructor(e = {}) {
27
- this.id = Ie++, this.perNode = !!e.perNode, this.deserialize = e.deserialize || (() => {
28
- throw new Error("This node type doesn't define a deserialize function");
29
- });
30
- }
31
- /**
32
- This is meant to be used with
33
- [`NodeSet.extend`](#common.NodeSet.extend) or
34
- [`LRParser.configure`](#lr.ParserConfig.props) to compute
35
- prop values for each node type in the set. Takes a [match
36
- object](#common.NodeType^match) or function that returns undefined
37
- if the node type doesn't get this prop, and the prop's value if
38
- it does.
39
- */
40
- add(e) {
41
- if (this.perNode)
42
- throw new RangeError("Can't add per-node props to node types");
43
- return typeof e != "function" && (e = x.match(e)), (o) => {
44
- let r = e(o);
45
- return r === void 0 ? null : [this, r];
46
- };
47
- }
48
- }
49
- l.closedBy = new l({ deserialize: (t) => t.split(" ") });
50
- l.openedBy = new l({ deserialize: (t) => t.split(" ") });
51
- l.group = new l({ deserialize: (t) => t.split(" ") });
52
- l.isolate = new l({ deserialize: (t) => {
53
- if (t && t != "rtl" && t != "ltr" && t != "auto")
54
- throw new RangeError("Invalid value for isolate: " + t);
55
- return t || "auto";
56
- } });
57
- l.contextHash = new l({ perNode: !0 });
58
- l.lookAhead = new l({ perNode: !0 });
59
- l.mounted = new l({ perNode: !0 });
60
- const Ee = /* @__PURE__ */ Object.create(null);
61
- class x {
62
- /**
63
- @internal
64
- */
65
- constructor(e, o, r, s = 0) {
66
- this.name = e, this.props = o, this.id = r, this.flags = s;
67
- }
68
- /**
69
- Define a node type.
70
- */
71
- static define(e) {
72
- let o = e.props && e.props.length ? /* @__PURE__ */ Object.create(null) : Ee, r = (e.top ? 1 : 0) | (e.skipped ? 2 : 0) | (e.error ? 4 : 0) | (e.name == null ? 8 : 0), s = new x(e.name || "", o, e.id, r);
73
- if (e.props) {
74
- for (let i of e.props)
75
- if (Array.isArray(i) || (i = i(s)), i) {
76
- if (i[0].perNode)
77
- throw new RangeError("Can't store a per-node prop on a node type");
78
- o[i[0].id] = i[1];
79
- }
80
- }
81
- return s;
82
- }
83
- /**
84
- Retrieves a node prop for this type. Will return `undefined` if
85
- the prop isn't present on this node.
86
- */
87
- prop(e) {
88
- return this.props[e.id];
89
- }
90
- /**
91
- True when this is the top node of a grammar.
92
- */
93
- get isTop() {
94
- return (this.flags & 1) > 0;
95
- }
96
- /**
97
- True when this node is produced by a skip rule.
98
- */
99
- get isSkipped() {
100
- return (this.flags & 2) > 0;
101
- }
102
- /**
103
- Indicates whether this is an error node.
104
- */
105
- get isError() {
106
- return (this.flags & 4) > 0;
107
- }
108
- /**
109
- When true, this node type doesn't correspond to a user-declared
110
- named node, for example because it is used to cache repetition.
111
- */
112
- get isAnonymous() {
113
- return (this.flags & 8) > 0;
114
- }
115
- /**
116
- Returns true when this node's name or one of its
117
- [groups](#common.NodeProp^group) matches the given string.
118
- */
119
- is(e) {
120
- if (typeof e == "string") {
121
- if (this.name == e)
122
- return !0;
123
- let o = this.prop(l.group);
124
- return o ? o.indexOf(e) > -1 : !1;
125
- }
126
- return this.id == e;
127
- }
128
- /**
129
- Create a function from node types to arbitrary values by
130
- specifying an object whose property names are node or
131
- [group](#common.NodeProp^group) names. Often useful with
132
- [`NodeProp.add`](#common.NodeProp.add). You can put multiple
133
- names, separated by spaces, in a single property name to map
134
- multiple node names to a single value.
135
- */
136
- static match(e) {
137
- let o = /* @__PURE__ */ Object.create(null);
138
- for (let r in e)
139
- for (let s of r.split(" "))
140
- o[s] = e[r];
141
- return (r) => {
142
- for (let s = r.prop(l.group), i = -1; i < (s ? s.length : 0); i++) {
143
- let c = o[i < 0 ? r.name : s[i]];
144
- if (c)
145
- return c;
146
- }
147
- };
148
- }
149
- }
150
- x.none = new x(
151
- "",
152
- /* @__PURE__ */ Object.create(null),
153
- 0,
154
- 8
155
- /* NodeFlag.Anonymous */
156
- );
157
- var K;
158
- (function(t) {
159
- t[t.ExcludeBuffers = 1] = "ExcludeBuffers", t[t.IncludeAnonymous = 2] = "IncludeAnonymous", t[t.IgnoreMounts = 4] = "IgnoreMounts", t[t.IgnoreOverlays = 8] = "IgnoreOverlays";
160
- })(K || (K = {}));
161
- new l({ perNode: !0 });
162
- let Te = 0;
163
- class f {
164
- /**
165
- @internal
166
- */
167
- constructor(e, o, r) {
168
- this.set = e, this.base = o, this.modified = r, this.id = Te++;
169
- }
170
- /**
171
- Define a new tag. If `parent` is given, the tag is treated as a
172
- sub-tag of that parent, and
173
- [highlighters](#highlight.tagHighlighter) that don't mention
174
- this tag will try to fall back to the parent tag (or grandparent
175
- tag, etc).
176
- */
177
- static define(e) {
178
- if (e != null && e.base)
179
- throw new Error("Can not derive from a modified tag");
180
- let o = new f([], null, []);
181
- if (o.set.push(o), e)
182
- for (let r of e.set)
183
- o.set.push(r);
184
- return o;
185
- }
186
- /**
187
- Define a tag _modifier_, which is a function that, given a tag,
188
- will return a tag that is a subtag of the original. Applying the
189
- same modifier to a twice tag will return the same value (`m1(t1)
190
- == m1(t1)`) and applying multiple modifiers will, regardless or
191
- order, produce the same tag (`m1(m2(t1)) == m2(m1(t1))`).
192
-
193
- When multiple modifiers are applied to a given base tag, each
194
- smaller set of modifiers is registered as a parent, so that for
195
- example `m1(m2(m3(t1)))` is a subtype of `m1(m2(t1))`,
196
- `m1(m3(t1)`, and so on.
197
- */
198
- static defineModifier() {
199
- let e = new T();
200
- return (o) => o.modified.indexOf(e) > -1 ? o : T.get(o.base || o, o.modified.concat(e).sort((r, s) => r.id - s.id));
201
- }
202
- }
203
- let Be = 0;
204
- class T {
205
- constructor() {
206
- this.instances = [], this.id = Be++;
207
- }
208
- static get(e, o) {
209
- if (!o.length)
210
- return e;
211
- let r = o[0].instances.find((d) => d.base == e && Se(o, d.modified));
212
- if (r)
213
- return r;
214
- let s = [], i = new f(s, e, o);
215
- for (let d of o)
216
- d.instances.push(i);
217
- let c = He(o);
218
- for (let d of e.set)
219
- if (!d.modified.length)
220
- for (let _ of c)
221
- s.push(T.get(d, _));
222
- return i;
223
- }
224
- }
225
- function Se(t, e) {
226
- return t.length == e.length && t.every((o, r) => o == e[r]);
227
- }
228
- function He(t) {
229
- let e = [[]];
230
- for (let o = 0; o < t.length; o++)
231
- for (let r = 0, s = e.length; r < s; r++)
232
- e.push(e[r].concat(t[o]));
233
- return e.sort((o, r) => r.length - o.length);
234
- }
235
- new l();
236
- function Me(t, e) {
237
- let o = /* @__PURE__ */ Object.create(null);
238
- for (let i of t)
239
- if (!Array.isArray(i.tag))
240
- o[i.tag.id] = i.class;
241
- else
242
- for (let c of i.tag)
243
- o[c.id] = i.class;
244
- let { scope: r, all: s = null } = {};
245
- return {
246
- style: (i) => {
247
- let c = s;
248
- for (let d of i)
249
- for (let _ of d.set) {
250
- let N = o[_.id];
251
- if (N) {
252
- c = c ? c + " " + N : N;
253
- break;
254
- }
255
- }
256
- return c;
257
- },
258
- scope: r
259
- };
260
- }
261
- const a = f.define, A = a(), m = a(), U = a(m), F = a(m), h = a(), O = a(h), R = a(h), p = a(), v = a(p), g = a(), u = a(), V = a(), w = a(V), I = a(), n = {
262
- /**
263
- A comment.
264
- */
265
- comment: A,
266
- /**
267
- A line [comment](#highlight.tags.comment).
268
- */
269
- lineComment: a(A),
270
- /**
271
- A block [comment](#highlight.tags.comment).
272
- */
273
- blockComment: a(A),
274
- /**
275
- A documentation [comment](#highlight.tags.comment).
276
- */
277
- docComment: a(A),
278
- /**
279
- Any kind of identifier.
280
- */
281
- name: m,
282
- /**
283
- The [name](#highlight.tags.name) of a variable.
284
- */
285
- variableName: a(m),
286
- /**
287
- A type [name](#highlight.tags.name).
288
- */
289
- typeName: U,
290
- /**
291
- A tag name (subtag of [`typeName`](#highlight.tags.typeName)).
292
- */
293
- tagName: a(U),
294
- /**
295
- A property or field [name](#highlight.tags.name).
296
- */
297
- propertyName: F,
298
- /**
299
- An attribute name (subtag of [`propertyName`](#highlight.tags.propertyName)).
300
- */
301
- attributeName: a(F),
302
- /**
303
- The [name](#highlight.tags.name) of a class.
304
- */
305
- className: a(m),
306
- /**
307
- A label [name](#highlight.tags.name).
308
- */
309
- labelName: a(m),
310
- /**
311
- A namespace [name](#highlight.tags.name).
312
- */
313
- namespace: a(m),
314
- /**
315
- The [name](#highlight.tags.name) of a macro.
316
- */
317
- macroName: a(m),
318
- /**
319
- A literal value.
320
- */
321
- literal: h,
322
- /**
323
- A string [literal](#highlight.tags.literal).
324
- */
325
- string: O,
326
- /**
327
- A documentation [string](#highlight.tags.string).
328
- */
329
- docString: a(O),
330
- /**
331
- A character literal (subtag of [string](#highlight.tags.string)).
332
- */
333
- character: a(O),
334
- /**
335
- An attribute value (subtag of [string](#highlight.tags.string)).
336
- */
337
- attributeValue: a(O),
338
- /**
339
- A number [literal](#highlight.tags.literal).
340
- */
341
- number: R,
342
- /**
343
- An integer [number](#highlight.tags.number) literal.
344
- */
345
- integer: a(R),
346
- /**
347
- A floating-point [number](#highlight.tags.number) literal.
348
- */
349
- float: a(R),
350
- /**
351
- A boolean [literal](#highlight.tags.literal).
352
- */
353
- bool: a(h),
354
- /**
355
- Regular expression [literal](#highlight.tags.literal).
356
- */
357
- regexp: a(h),
358
- /**
359
- An escape [literal](#highlight.tags.literal), for example a
360
- backslash escape in a string.
361
- */
362
- escape: a(h),
363
- /**
364
- A color [literal](#highlight.tags.literal).
365
- */
366
- color: a(h),
367
- /**
368
- A URL [literal](#highlight.tags.literal).
369
- */
370
- url: a(h),
371
- /**
372
- A language keyword.
373
- */
374
- keyword: g,
375
- /**
376
- The [keyword](#highlight.tags.keyword) for the self or this
377
- object.
378
- */
379
- self: a(g),
380
- /**
381
- The [keyword](#highlight.tags.keyword) for null.
382
- */
383
- null: a(g),
384
- /**
385
- A [keyword](#highlight.tags.keyword) denoting some atomic value.
386
- */
387
- atom: a(g),
388
- /**
389
- A [keyword](#highlight.tags.keyword) that represents a unit.
390
- */
391
- unit: a(g),
392
- /**
393
- A modifier [keyword](#highlight.tags.keyword).
394
- */
395
- modifier: a(g),
396
- /**
397
- A [keyword](#highlight.tags.keyword) that acts as an operator.
398
- */
399
- operatorKeyword: a(g),
400
- /**
401
- A control-flow related [keyword](#highlight.tags.keyword).
402
- */
403
- controlKeyword: a(g),
404
- /**
405
- A [keyword](#highlight.tags.keyword) that defines something.
406
- */
407
- definitionKeyword: a(g),
408
- /**
409
- A [keyword](#highlight.tags.keyword) related to defining or
410
- interfacing with modules.
411
- */
412
- moduleKeyword: a(g),
413
- /**
414
- An operator.
415
- */
416
- operator: u,
417
- /**
418
- An [operator](#highlight.tags.operator) that dereferences something.
419
- */
420
- derefOperator: a(u),
421
- /**
422
- Arithmetic-related [operator](#highlight.tags.operator).
423
- */
424
- arithmeticOperator: a(u),
425
- /**
426
- Logical [operator](#highlight.tags.operator).
427
- */
428
- logicOperator: a(u),
429
- /**
430
- Bit [operator](#highlight.tags.operator).
431
- */
432
- bitwiseOperator: a(u),
433
- /**
434
- Comparison [operator](#highlight.tags.operator).
435
- */
436
- compareOperator: a(u),
437
- /**
438
- [Operator](#highlight.tags.operator) that updates its operand.
439
- */
440
- updateOperator: a(u),
441
- /**
442
- [Operator](#highlight.tags.operator) that defines something.
443
- */
444
- definitionOperator: a(u),
445
- /**
446
- Type-related [operator](#highlight.tags.operator).
447
- */
448
- typeOperator: a(u),
449
- /**
450
- Control-flow [operator](#highlight.tags.operator).
451
- */
452
- controlOperator: a(u),
453
- /**
454
- Program or markup punctuation.
455
- */
456
- punctuation: V,
457
- /**
458
- [Punctuation](#highlight.tags.punctuation) that separates
459
- things.
460
- */
461
- separator: a(V),
462
- /**
463
- Bracket-style [punctuation](#highlight.tags.punctuation).
464
- */
465
- bracket: w,
466
- /**
467
- Angle [brackets](#highlight.tags.bracket) (usually `<` and `>`
468
- tokens).
469
- */
470
- angleBracket: a(w),
471
- /**
472
- Square [brackets](#highlight.tags.bracket) (usually `[` and `]`
473
- tokens).
474
- */
475
- squareBracket: a(w),
476
- /**
477
- Parentheses (usually `(` and `)` tokens). Subtag of
478
- [bracket](#highlight.tags.bracket).
479
- */
480
- paren: a(w),
481
- /**
482
- Braces (usually `{` and `}` tokens). Subtag of
483
- [bracket](#highlight.tags.bracket).
484
- */
485
- brace: a(w),
486
- /**
487
- Content, for example plain text in XML or markup documents.
488
- */
489
- content: p,
490
- /**
491
- [Content](#highlight.tags.content) that represents a heading.
492
- */
493
- heading: v,
494
- /**
495
- A level 1 [heading](#highlight.tags.heading).
496
- */
497
- heading1: a(v),
498
- /**
499
- A level 2 [heading](#highlight.tags.heading).
500
- */
501
- heading2: a(v),
502
- /**
503
- A level 3 [heading](#highlight.tags.heading).
504
- */
505
- heading3: a(v),
506
- /**
507
- A level 4 [heading](#highlight.tags.heading).
508
- */
509
- heading4: a(v),
510
- /**
511
- A level 5 [heading](#highlight.tags.heading).
512
- */
513
- heading5: a(v),
514
- /**
515
- A level 6 [heading](#highlight.tags.heading).
516
- */
517
- heading6: a(v),
518
- /**
519
- A prose separator (such as a horizontal rule).
520
- */
521
- contentSeparator: a(p),
522
- /**
523
- [Content](#highlight.tags.content) that represents a list.
524
- */
525
- list: a(p),
526
- /**
527
- [Content](#highlight.tags.content) that represents a quote.
528
- */
529
- quote: a(p),
530
- /**
531
- [Content](#highlight.tags.content) that is emphasized.
532
- */
533
- emphasis: a(p),
534
- /**
535
- [Content](#highlight.tags.content) that is styled strong.
536
- */
537
- strong: a(p),
538
- /**
539
- [Content](#highlight.tags.content) that is part of a link.
540
- */
541
- link: a(p),
542
- /**
543
- [Content](#highlight.tags.content) that is styled as code or
544
- monospace.
545
- */
546
- monospace: a(p),
547
- /**
548
- [Content](#highlight.tags.content) that has a strike-through
549
- style.
550
- */
551
- strikethrough: a(p),
552
- /**
553
- Inserted text in a change-tracking format.
554
- */
555
- inserted: a(),
556
- /**
557
- Deleted text.
558
- */
559
- deleted: a(),
560
- /**
561
- Changed text.
562
- */
563
- changed: a(),
564
- /**
565
- An invalid or unsyntactic element.
566
- */
567
- invalid: a(),
568
- /**
569
- Metadata or meta-instruction.
570
- */
571
- meta: I,
572
- /**
573
- [Metadata](#highlight.tags.meta) that applies to the entire
574
- document.
575
- */
576
- documentMeta: a(I),
577
- /**
578
- [Metadata](#highlight.tags.meta) that annotates or adds
579
- attributes to a given syntactic element.
580
- */
581
- annotation: a(I),
582
- /**
583
- Processing instruction or preprocessor directive. Subtag of
584
- [meta](#highlight.tags.meta).
585
- */
586
- processingInstruction: a(I),
587
- /**
588
- [Modifier](#highlight.Tag^defineModifier) that indicates that a
589
- given element is being defined. Expected to be used with the
590
- various [name](#highlight.tags.name) tags.
591
- */
592
- definition: f.defineModifier(),
593
- /**
594
- [Modifier](#highlight.Tag^defineModifier) that indicates that
595
- something is constant. Mostly expected to be used with
596
- [variable names](#highlight.tags.variableName).
597
- */
598
- constant: f.defineModifier(),
599
- /**
600
- [Modifier](#highlight.Tag^defineModifier) used to indicate that
601
- a [variable](#highlight.tags.variableName) or [property
602
- name](#highlight.tags.propertyName) is being called or defined
603
- as a function.
604
- */
605
- function: f.defineModifier(),
606
- /**
607
- [Modifier](#highlight.Tag^defineModifier) that can be applied to
608
- [names](#highlight.tags.name) to indicate that they belong to
609
- the language's standard environment.
610
- */
611
- standard: f.defineModifier(),
612
- /**
613
- [Modifier](#highlight.Tag^defineModifier) that indicates a given
614
- [names](#highlight.tags.name) is local to some scope.
615
- */
616
- local: f.defineModifier(),
617
- /**
618
- A generic variant [modifier](#highlight.Tag^defineModifier) that
619
- can be used to tag language-specific alternative variants of
620
- some common tag. It is recommended for themes to define special
621
- forms of at least the [string](#highlight.tags.string) and
622
- [variable name](#highlight.tags.variableName) tags, since those
623
- come up a lot.
624
- */
625
- special: f.defineModifier()
626
- };
627
- Me([
628
- { tag: n.link, class: "tok-link" },
629
- { tag: n.heading, class: "tok-heading" },
630
- { tag: n.emphasis, class: "tok-emphasis" },
631
- { tag: n.strong, class: "tok-strong" },
632
- { tag: n.keyword, class: "tok-keyword" },
633
- { tag: n.atom, class: "tok-atom" },
634
- { tag: n.bool, class: "tok-bool" },
635
- { tag: n.url, class: "tok-url" },
636
- { tag: n.labelName, class: "tok-labelName" },
637
- { tag: n.inserted, class: "tok-inserted" },
638
- { tag: n.deleted, class: "tok-deleted" },
639
- { tag: n.literal, class: "tok-literal" },
640
- { tag: n.string, class: "tok-string" },
641
- { tag: n.number, class: "tok-number" },
642
- { tag: [n.regexp, n.escape, n.special(n.string)], class: "tok-string2" },
643
- { tag: n.variableName, class: "tok-variableName" },
644
- { tag: n.local(n.variableName), class: "tok-variableName tok-local" },
645
- { tag: n.definition(n.variableName), class: "tok-variableName tok-definition" },
646
- { tag: n.special(n.variableName), class: "tok-variableName2" },
647
- { tag: n.definition(n.propertyName), class: "tok-propertyName tok-definition" },
648
- { tag: n.typeName, class: "tok-typeName" },
649
- { tag: n.namespace, class: "tok-namespace" },
650
- { tag: n.className, class: "tok-className" },
651
- { tag: n.macroName, class: "tok-macroName" },
652
- { tag: n.propertyName, class: "tok-propertyName" },
653
- { tag: n.operator, class: "tok-operator" },
654
- { tag: n.comment, class: "tok-comment" },
655
- { tag: n.meta, class: "tok-meta" },
656
- { tag: n.invalid, class: "tok-invalid" },
657
- { tag: n.punctuation, class: "tok-punctuation" }
658
- ]);
659
- const je = "#c72727", Re = "#9b5700", Ve = "#067934", $e = "#0063d7", ze = {
660
- red: je,
661
- orange: Re,
662
- green: Ve,
663
- blue: $e,
664
- invalid: "#ffffff"
665
- }, De = (t) => me.define([
666
- {
667
- tag: n.keyword,
668
- color: t.red
669
- },
670
- {
671
- tag: [n.name, n.deleted, n.character, n.propertyName, n.macroName],
672
- color: t.green
673
- },
674
- {
675
- tag: [n.function(n.variableName), n.labelName],
676
- color: t.blue
677
- },
678
- {
679
- tag: [n.color, n.constant(n.name), n.standard(n.name)],
680
- color: t.red
681
- },
682
- {
683
- tag: [n.definition(n.name), n.separator],
684
- color: t.red
685
- },
686
- {
687
- tag: [n.typeName, n.className, n.number, n.changed, n.annotation, n.modifier, n.self, n.namespace],
688
- color: t.orange
689
- },
690
- {
691
- tag: [n.operator, n.operatorKeyword, n.url, n.escape, n.regexp, n.link, n.special(n.string)],
692
- color: t.blue
693
- },
694
- {
695
- tag: [n.meta, n.comment],
696
- color: t.orange
697
- },
698
- {
699
- tag: n.strong,
700
- fontWeight: "bold"
701
- },
702
- {
703
- tag: n.emphasis,
704
- fontStyle: "italic"
705
- },
706
- {
707
- tag: n.strikethrough,
708
- textDecoration: "line-through"
709
- },
710
- {
711
- tag: n.link,
712
- color: t.orange,
713
- textDecoration: "underline"
714
- },
715
- {
716
- tag: n.heading,
717
- fontWeight: "bold",
718
- color: t.blue
719
- },
720
- {
721
- tag: [n.atom, n.bool, n.special(n.variableName)],
722
- color: t.red
723
- },
724
- {
725
- tag: [n.processingInstruction, n.string, n.inserted],
726
- color: t.blue
727
- },
728
- {
729
- tag: n.invalid,
730
- color: t.invalid
731
- }
732
- ]), Pe = fe(De(ze));
733
- var E = /* @__PURE__ */ ((t) => (t.INLINE = "inline", t.SINGLELINE = "singleline", t.MULTILINE = "multiline", t))(E || {}), b = /* @__PURE__ */ ((t) => (t.JSON = "json", t.XML = "xml", t.JAVA = "java", t.JAVASCRIPT = "javascript", t.PYTHON = "python", t))(b || {}), C = /* @__PURE__ */ ((t) => (t.ACTION = "action", t.CHANGE = "change", t))(C || {});
734
- const Je = {
735
- [b.JSON]: we,
736
- [b.XML]: Ce,
737
- [b.JAVASCRIPT]: xe,
738
- [b.JAVA]: Le,
739
- [b.PYTHON]: Ae
740
- }, Ge = (t) => async () => Je[t], Ke = (t, e) => {
741
- const o = t.doc.lineAt(e.from), r = /^\s*/.exec(o.text);
742
- return r ? r[0] : "";
743
- }, Ue = {
744
- key: "Enter",
745
- run: ({ state: t, dispatch: e }) => {
746
- const o = t.changeByRange((r) => {
747
- const i = `
748
- ${Ke(t, r)}`;
749
- return {
750
- changes: { from: r.from, to: r.to, insert: i },
751
- range: ge.cursor(r.from + i.length)
752
- };
753
- });
754
- return e(t.update(o, { scrollIntoView: !0, userEvent: "input" })), !0;
755
- }
756
- };
757
- let W = 0;
758
- const Fe = {
759
- beforeCreate() {
760
- this.uuid = W.toString(), W += 1;
761
- }
762
- };
763
- var We = function() {
764
- var e = this, o = e._self._c;
765
- return o("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? o("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), o("path", { attrs: { fill: "#00112C", d: "M14.75 1.25V6.75H13.25V3.81083L10.0001 7.06072L8.93945 6.00006L12.1895 2.75H9.25V1.25H14.75Z" } }), o("path", { attrs: { fill: "#00112C", d: "M2.75 12.1895V9.25H1.25V14.75H6.75V13.25H3.81083L7.06072 10.0001L6.00006 8.93945L2.75 12.1895Z" } })]);
766
- }, qe = [], Xe = /* @__PURE__ */ q(
767
- Fe,
768
- We,
769
- qe,
770
- !1,
771
- null,
772
- null
773
- );
774
- const Ye = Xe.exports, Ze = {
775
- "en-US": {
776
- run: "Run",
777
- expand: "Expand"
778
- }
779
- }, Qe = oe({
780
- i18n: { messages: Ze },
781
- name: "bento-code-snippet",
782
- components: {
783
- BentoTypography: ye,
784
- BentoButton: be,
785
- BentoDropdown: he,
786
- Copy: ke,
787
- BaseModal: Ne,
788
- BentoLoadingIndicator: ve,
789
- ExpandIcon: Ye
790
- },
791
- directives: { BentoTooltipDirective: Oe },
792
- props: {
793
- /**
794
- * Defines the variant of code-snippet
795
- */
796
- variant: {
797
- type: String,
798
- default: E.MULTILINE,
799
- validator: (t) => Object.values(E).includes(t)
800
- },
801
- /**
802
- * Language name for syntax highlighting rules
803
- */
804
- lang: {
805
- type: String,
806
- default: b.JSON,
807
- validator: (t) => Object.values(b).includes(t)
808
- },
809
- /**
810
- * Label to show in the action-bar, describing the language
811
- */
812
- langLabel: {
813
- type: String,
814
- default: null
815
- },
816
- /**
817
- * The code content
818
- */
819
- content: {
820
- type: String,
821
- default: ""
822
- },
823
- /**
824
- * Allows editing of the code-snippet content by the user
825
- */
826
- editable: {
827
- type: Boolean,
828
- default: !1
829
- },
830
- /**
831
- * Displays a button that when clicked will emit an action event
832
- * Leaves to the parent component the logic of what to do with it
833
- */
834
- actionable: {
835
- type: Boolean,
836
- default: !1
837
- },
838
- /**
839
- * Displays a button that can expand the codeblock into a modal to easily
840
- * view large blocks of code.
841
- */
842
- expandable: {
843
- type: Boolean,
844
- default: !1
845
- },
846
- /**
847
- * Displays a button that when clicked will emit a run event
848
- * Leaves to the parent component the logic of what to do with it
849
- */
850
- actionableText: {
851
- type: String,
852
- default: "run"
853
- },
854
- /**
855
- * Toggles the loading indicator within the action bar
856
- */
857
- loading: {
858
- type: Boolean,
859
- default: !1
860
- }
861
- },
862
- emits: [C.ACTION, C.CHANGE],
863
- setup(t, { emit: e }) {
864
- const { t: o } = _e(), r = L(null), s = [], i = () => {
865
- }, c = k(() => t.langLabel ?? t.lang.toUpperCase()), d = k(() => t.variant === E.INLINE), _ = k(() => ({
866
- "b-code-snippet--inline": d.value,
867
- "b-code-snippet--scrollable": !d.value
868
- })), N = k(() => ({
869
- "b-code-snippet__code-area-content--editable": t.editable
870
- })), X = Ge(t.lang), $ = P(), B = P(), Y = new j(), Z = new j(), Q = new j(), y = L(null), S = L(0);
871
- re(async () => {
872
- const H = await X();
873
- y.value = t.content;
874
- const ae = ({ state: M }) => {
875
- y.value = M.doc.toString();
876
- }, z = [
877
- le(),
878
- ce.of([ue, Ue]),
879
- Y.of(H()),
880
- Z.of(Pe),
881
- Q.of(G.readOnly.of(!t.editable)),
882
- J.updateListener.of((M) => ae(M))
883
- ];
884
- t.variant === "multiline" && z.push([de(), pe()]);
885
- const D = G.create({
886
- doc: t.content,
887
- extensions: [...z]
888
- });
889
- S.value = D.doc.length, B.value = new J({
890
- state: D,
891
- parent: $.value
892
- });
893
- }), ie(
894
- () => t.content,
895
- () => {
896
- if (t.content !== y.value) {
897
- const H = t.content.length;
898
- B.value.dispatch({
899
- changes: {
900
- from: 0,
901
- to: S.value,
902
- insert: t.content
903
- }
904
- }), S.value = H;
905
- }
906
- }
907
- );
908
- const ee = k(() => o(t.actionableText)), te = () => {
909
- e(C.ACTION, y.value);
910
- };
911
- se(() => {
912
- y.value !== null && e(C.CHANGE, y.value);
913
- });
914
- const ne = L(!1);
915
- return {
916
- // Values
917
- availableLanguages: s,
918
- codeAreaContentConditionalClasses: N,
919
- conditionalClasses: _,
920
- container: $,
921
- currentContents: y,
922
- displayedLang: c,
923
- editor: B,
924
- selectedLanguage: r,
925
- showModal: ne,
926
- isInlineVariant: d,
927
- // Methods
928
- handleChangeLanguage: i,
929
- onActionClicked: te,
930
- runText: ee,
931
- // Translations
932
- t: o
933
- };
934
- }
935
- });
936
- var et = function() {
937
- var e = this, o = e._self._c;
938
- return e._self._setupProxy, o("div", { staticClass: "b-code-snippet", class: e.conditionalClasses }, [e.isInlineVariant ? e._e() : o("section", { staticClass: "b-code-snippet__action-bar" }, [o("div", { staticClass: "b-code-snippet__action-bar--start" }, [e.availableLanguages.length > 0 ? o("bento-dropdown", e._b({ staticClass: "b-code-snippet__language-picker", attrs: { disabled: e.availableLanguages.length === 1, items: e.availableLanguages }, on: { input: e.handleChangeLanguage }, model: { value: e.selectedLanguage, callback: function(r) {
939
- e.selectedLanguage = r;
940
- }, expression: "selectedLanguage" } }, "bento-dropdown", e.$props, !1)) : e._e(), o("bento-typography", { attrs: { el: "span", stronger: "" } }, [e._v(" " + e._s(e.displayedLang) + " ")])], 1), o("div", { staticClass: "b-code-snippet__action-bar--end" }, [e.loading ? o("bento-loading-indicator") : e._e(), e.currentContents !== null ? o("copy", { staticClass: "b-structured-list__icon", attrs: { text: e.currentContents } }) : e._e(), e.expandable ? o("bento-button", { attrs: { variant: "tertiary", condensed: "", "aria-label": e.t("expand") }, on: { click: function(r) {
941
- e.showModal = !0;
942
- } }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
943
- return [o("expand-icon")];
944
- }, proxy: !0 }], null, !1, 3789760120) }) : e._e(), e.actionable ? o("bento-button", { attrs: { variant: "primary", tertiary: "", condensed: "" }, on: { click: e.onActionClicked }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
945
- return [o("bento-typography", { staticClass: "b-code-snippet__action-button", attrs: { el: "span" } }, [e._v(" " + e._s(e.runText) + " ")])];
946
- }, proxy: !0 }], null, !1, 4293069853) }) : e._e()], 1)]), e.content || e.editable ? o("code", { staticClass: "b-code-snippet__code-area" }, [o("div", { ref: "container", staticClass: "b-code-snippet__code-area-content", class: e.codeAreaContentConditionalClasses })]) : o("section", [e._t("empty-state", function() {
947
- return [o("div", { staticClass: "b-code-snippet__empty-state" }, [e._v("Nothing to show")])];
948
- })], 2), e.expandable ? o("base-modal", { staticClass: "b-code-snippet__modal", attrs: { "hide-close-button": !0, "custom-padding": "0px", "is-dismissible": !0, "is-open": e.showModal, size: "large" }, on: { "close-modal": function(r) {
949
- e.showModal = !1;
950
- } }, scopedSlots: e._u([{ key: "content", fn: function() {
951
- return [o("bento-code-snippet", e._b({}, "bento-code-snippet", { ...e.$props, expandable: !1 }, !1))];
952
- }, proxy: !0 }], null, !1, 3343589027) }) : e._e()], 1);
953
- }, tt = [], nt = /* @__PURE__ */ q(
954
- Qe,
955
- et,
956
- tt,
957
- !1,
958
- null,
959
- "befa6cc9"
960
- );
961
- const kt = nt.exports;
962
- export {
963
- E as B,
964
- b as a,
965
- C as b,
966
- kt as c
967
- };
968
- //# sourceMappingURL=code-snippet.C4IbjAhH.js.map