stripe-pwa-elements 2.0.2 → 3.0.0-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 (1470) hide show
  1. package/dist/cjs/{index-aec82bce.js → index-0cec7387.js} +616 -261
  2. package/dist/cjs/index-0cec7387.js.map +1 -0
  3. package/dist/cjs/index.cjs.js +2 -0
  4. package/dist/cjs/index.cjs.js.map +1 -0
  5. package/dist/cjs/ion-icon.cjs.entry.js +68 -43
  6. package/dist/cjs/ion-icon.cjs.entry.js.map +1 -0
  7. package/dist/cjs/loader.cjs.js +6 -3
  8. package/dist/cjs/loader.cjs.js.map +1 -0
  9. package/dist/cjs/stripe-elements.cjs.js +12 -3
  10. package/dist/cjs/stripe-elements.cjs.js.map +1 -0
  11. package/dist/cjs/stripe-payment-request-button.cjs.entry.js +26 -20
  12. package/dist/cjs/stripe-payment-request-button.cjs.entry.js.map +1 -0
  13. package/dist/cjs/stripe-payment-sheet.cjs.entry.js +11 -27
  14. package/dist/cjs/stripe-payment-sheet.cjs.entry.js.map +1 -0
  15. package/dist/cjs/stripe-payment_2.cjs.entry.js +768 -728
  16. package/dist/cjs/stripe-payment_2.cjs.entry.js.map +1 -0
  17. package/dist/cjs/{stripe.esm-648239f0.js → stripe.esm-603f3c17.js} +4 -2
  18. package/dist/cjs/stripe.esm-603f3c17.js.map +1 -0
  19. package/dist/collection/collection-manifest.json +2 -2
  20. package/dist/collection/components/stripe-element-modal/stripe-element-modal.css +1 -1
  21. package/dist/collection/components/stripe-element-modal/stripe-element-modal.js +115 -116
  22. package/dist/collection/components/stripe-element-modal/stripe-element-modal.js.map +1 -0
  23. package/dist/collection/components/stripe-element-modal/test/stripe-element-modal.e2e.js +10 -0
  24. package/dist/collection/components/stripe-element-modal/test/stripe-element-modal.e2e.js.map +1 -0
  25. package/dist/collection/components/stripe-element-modal/test/stripe-element-modal.spec.js +120 -0
  26. package/dist/collection/components/stripe-element-modal/test/stripe-element-modal.spec.js.map +1 -0
  27. package/dist/collection/components/stripe-payment-request-button/stripe-payment-request-button.js +342 -328
  28. package/dist/collection/components/stripe-payment-request-button/stripe-payment-request-button.js.map +1 -0
  29. package/dist/collection/components/stripe-payment-request-button/test/stripe-payment-request-button.e2e.js +10 -0
  30. package/dist/collection/components/stripe-payment-request-button/test/stripe-payment-request-button.e2e.js.map +1 -0
  31. package/dist/collection/components/stripe-payment-request-button/test/stripe-payment-request-button.spec.js +18 -0
  32. package/dist/collection/components/stripe-payment-request-button/test/stripe-payment-request-button.spec.js.map +1 -0
  33. package/dist/collection/components/stripe-payment-sheet/stripe-payment-sheet.css +1 -1
  34. package/dist/collection/components/stripe-payment-sheet/stripe-payment-sheet.js +483 -539
  35. package/dist/collection/components/stripe-payment-sheet/stripe-payment-sheet.js.map +1 -0
  36. package/dist/collection/components/stripe-payment-sheet/test/stripe-payment-sheet.e2e.js +10 -0
  37. package/dist/collection/components/stripe-payment-sheet/test/stripe-payment-sheet.e2e.js.map +1 -0
  38. package/dist/collection/components/stripe-payment-sheet/test/stripe-payment-sheet.spec.js +111 -0
  39. package/dist/collection/components/stripe-payment-sheet/test/stripe-payment-sheet.spec.js.map +1 -0
  40. package/dist/collection/components/stripe-payment-sheet-modal/stripe-payment-sheet-modal.js +393 -401
  41. package/dist/collection/components/stripe-payment-sheet-modal/stripe-payment-sheet-modal.js.map +1 -0
  42. package/dist/collection/components/stripe-payment-sheet-modal/test/stripe-payment-sheet-modal.e2e.js +10 -0
  43. package/dist/collection/components/stripe-payment-sheet-modal/test/stripe-payment-sheet-modal.e2e.js.map +1 -0
  44. package/dist/collection/components/stripe-payment-sheet-modal/test/stripe-payment-sheet-modal.spec.js +16 -0
  45. package/dist/collection/components/stripe-payment-sheet-modal/test/stripe-payment-sheet-modal.spec.js.map +1 -0
  46. package/dist/collection/index.js +1 -0
  47. package/dist/collection/index.js.map +1 -0
  48. package/dist/collection/interfaces.js +1 -0
  49. package/dist/collection/interfaces.js.map +1 -0
  50. package/dist/collection/utils/i18n.js +17 -0
  51. package/dist/collection/utils/i18n.js.map +1 -0
  52. package/dist/collection/utils/platform.js +1 -0
  53. package/dist/collection/utils/platform.js.map +1 -0
  54. package/dist/collection/utils/utils.js +1 -0
  55. package/dist/collection/utils/utils.js.map +1 -0
  56. package/dist/components/icon.js +360 -0
  57. package/dist/components/icon.js.map +1 -0
  58. package/dist/components/index.d.ts +27 -0
  59. package/dist/components/index.js +3 -0
  60. package/dist/components/index.js.map +1 -0
  61. package/dist/components/ion-icon.js +8 -0
  62. package/dist/components/ion-icon.js.map +1 -0
  63. package/dist/components/stripe-element-modal.js +75 -0
  64. package/dist/components/stripe-element-modal.js.map +1 -0
  65. package/dist/components/stripe-payment-request-button.d.ts +11 -0
  66. package/dist/components/stripe-payment-request-button.js +8 -0
  67. package/dist/components/stripe-payment-request-button.js.map +1 -0
  68. package/dist/components/stripe-payment-request-button2.js +337 -0
  69. package/dist/components/stripe-payment-request-button2.js.map +1 -0
  70. package/dist/components/stripe-payment-sheet.d.ts +11 -0
  71. package/dist/components/stripe-payment-sheet.js +153 -0
  72. package/dist/components/stripe-payment-sheet.js.map +1 -0
  73. package/dist/{custom-elements/index.js → components/stripe-payment-sheet2.js} +815 -1608
  74. package/dist/components/stripe-payment-sheet2.js.map +1 -0
  75. package/dist/components/stripe-payment.d.ts +11 -0
  76. package/dist/components/stripe-payment.js +8 -0
  77. package/dist/components/stripe-payment.js.map +1 -0
  78. package/dist/components/stripe-sheet.d.ts +11 -0
  79. package/dist/components/stripe-sheet.js +8 -0
  80. package/dist/components/stripe-sheet.js.map +1 -0
  81. package/dist/components/utils.js +105 -0
  82. package/dist/components/utils.js.map +1 -0
  83. package/dist/esm/{index-a7e5d6fd.js → index-58f9666b.js} +616 -262
  84. package/dist/esm/index-58f9666b.js.map +1 -0
  85. package/dist/esm/index.js +2 -0
  86. package/dist/esm/index.js.map +1 -0
  87. package/dist/esm/ion-icon.entry.js +68 -43
  88. package/dist/esm/ion-icon.entry.js.map +1 -0
  89. package/dist/esm/loader.js +6 -3
  90. package/dist/esm/loader.js.map +1 -0
  91. package/dist/esm/polyfills/css-shim.js +1 -1
  92. package/dist/esm/stripe-elements.js +9 -3
  93. package/dist/esm/stripe-elements.js.map +1 -0
  94. package/dist/esm/stripe-payment-request-button.entry.js +26 -20
  95. package/dist/esm/stripe-payment-request-button.entry.js.map +1 -0
  96. package/dist/esm/stripe-payment-sheet.entry.js +11 -27
  97. package/dist/esm/stripe-payment-sheet.entry.js.map +1 -0
  98. package/dist/esm/stripe-payment_2.entry.js +768 -728
  99. package/dist/esm/stripe-payment_2.entry.js.map +1 -0
  100. package/dist/esm/{stripe.esm-ea56157a.js → stripe.esm-bad47977.js} +4 -2
  101. package/dist/esm/stripe.esm-bad47977.js.map +1 -0
  102. package/dist/node_modules/ionicons/dist/collection/components/icon/icon.css +46 -4
  103. package/dist/stripe-elements/index.esm.js +2 -0
  104. package/dist/stripe-elements/index.esm.js.map +1 -0
  105. package/dist/stripe-elements/p-06c00b5c.entry.js +2 -0
  106. package/dist/stripe-elements/p-06c00b5c.entry.js.map +1 -0
  107. package/dist/stripe-elements/p-1b4515a4.js +3 -0
  108. package/dist/stripe-elements/p-1b4515a4.js.map +1 -0
  109. package/dist/stripe-elements/p-3458123a.entry.js +2 -0
  110. package/dist/stripe-elements/p-3458123a.entry.js.map +1 -0
  111. package/dist/stripe-elements/p-3a90ad5d.entry.js +2 -0
  112. package/dist/stripe-elements/p-3a90ad5d.entry.js.map +1 -0
  113. package/dist/stripe-elements/p-b10d8613.js +2 -0
  114. package/dist/stripe-elements/p-b10d8613.js.map +1 -0
  115. package/dist/stripe-elements/p-c5a2b2e8.entry.js +2 -0
  116. package/dist/stripe-elements/p-c5a2b2e8.entry.js.map +1 -0
  117. package/dist/stripe-elements/stripe-elements.esm.js +2 -1
  118. package/dist/stripe-elements/stripe-elements.esm.js.map +1 -0
  119. package/dist/stripe-elements/svg/accessibility-outline.svg +1 -1
  120. package/dist/stripe-elements/svg/accessibility-sharp.svg +1 -1
  121. package/dist/stripe-elements/svg/accessibility.svg +1 -1
  122. package/dist/stripe-elements/svg/add-circle-outline.svg +1 -1
  123. package/dist/stripe-elements/svg/add-circle-sharp.svg +1 -1
  124. package/dist/stripe-elements/svg/add-circle.svg +1 -1
  125. package/dist/stripe-elements/svg/add-outline.svg +1 -1
  126. package/dist/stripe-elements/svg/add-sharp.svg +1 -1
  127. package/dist/stripe-elements/svg/add.svg +1 -1
  128. package/dist/stripe-elements/svg/airplane-outline.svg +1 -1
  129. package/dist/stripe-elements/svg/airplane-sharp.svg +1 -1
  130. package/dist/stripe-elements/svg/airplane.svg +1 -1
  131. package/dist/stripe-elements/svg/alarm-outline.svg +1 -1
  132. package/dist/stripe-elements/svg/alarm-sharp.svg +1 -1
  133. package/dist/stripe-elements/svg/alarm.svg +1 -1
  134. package/dist/stripe-elements/svg/albums-outline.svg +1 -1
  135. package/dist/stripe-elements/svg/albums-sharp.svg +1 -1
  136. package/dist/stripe-elements/svg/albums.svg +1 -1
  137. package/dist/stripe-elements/svg/alert-circle-outline.svg +1 -1
  138. package/dist/stripe-elements/svg/alert-circle-sharp.svg +1 -1
  139. package/dist/stripe-elements/svg/alert-circle.svg +1 -1
  140. package/dist/stripe-elements/svg/alert-outline.svg +1 -1
  141. package/dist/stripe-elements/svg/alert-sharp.svg +1 -1
  142. package/dist/stripe-elements/svg/alert.svg +1 -1
  143. package/dist/stripe-elements/svg/american-football-outline.svg +1 -1
  144. package/dist/stripe-elements/svg/american-football-sharp.svg +1 -1
  145. package/dist/stripe-elements/svg/american-football.svg +1 -1
  146. package/dist/stripe-elements/svg/analytics-outline.svg +1 -1
  147. package/dist/stripe-elements/svg/analytics-sharp.svg +1 -1
  148. package/dist/stripe-elements/svg/analytics.svg +1 -1
  149. package/dist/stripe-elements/svg/aperture-outline.svg +1 -1
  150. package/dist/stripe-elements/svg/aperture-sharp.svg +1 -1
  151. package/dist/stripe-elements/svg/aperture.svg +1 -1
  152. package/dist/stripe-elements/svg/apps-outline.svg +1 -1
  153. package/dist/stripe-elements/svg/apps-sharp.svg +1 -1
  154. package/dist/stripe-elements/svg/apps.svg +1 -1
  155. package/dist/stripe-elements/svg/archive-outline.svg +1 -1
  156. package/dist/stripe-elements/svg/archive-sharp.svg +1 -1
  157. package/dist/stripe-elements/svg/archive.svg +1 -1
  158. package/dist/stripe-elements/svg/arrow-back-circle-outline.svg +1 -1
  159. package/dist/stripe-elements/svg/arrow-back-circle-sharp.svg +1 -1
  160. package/dist/stripe-elements/svg/arrow-back-circle.svg +1 -1
  161. package/dist/stripe-elements/svg/arrow-back-outline.svg +1 -1
  162. package/dist/stripe-elements/svg/arrow-back-sharp.svg +1 -1
  163. package/dist/stripe-elements/svg/arrow-back.svg +1 -1
  164. package/dist/stripe-elements/svg/arrow-down-circle-outline.svg +1 -1
  165. package/dist/stripe-elements/svg/arrow-down-circle-sharp.svg +1 -1
  166. package/dist/stripe-elements/svg/arrow-down-circle.svg +1 -1
  167. package/dist/stripe-elements/svg/arrow-down-outline.svg +1 -1
  168. package/dist/stripe-elements/svg/arrow-down-sharp.svg +1 -1
  169. package/dist/stripe-elements/svg/arrow-down.svg +1 -1
  170. package/dist/stripe-elements/svg/arrow-forward-circle-outline.svg +1 -1
  171. package/dist/stripe-elements/svg/arrow-forward-circle-sharp.svg +1 -1
  172. package/dist/stripe-elements/svg/arrow-forward-circle.svg +1 -1
  173. package/dist/stripe-elements/svg/arrow-forward-outline.svg +1 -1
  174. package/dist/stripe-elements/svg/arrow-forward-sharp.svg +1 -1
  175. package/dist/stripe-elements/svg/arrow-forward.svg +1 -1
  176. package/dist/stripe-elements/svg/arrow-redo-circle-outline.svg +1 -1
  177. package/dist/stripe-elements/svg/arrow-redo-circle-sharp.svg +1 -1
  178. package/dist/stripe-elements/svg/arrow-redo-circle.svg +1 -1
  179. package/dist/stripe-elements/svg/arrow-redo-outline.svg +1 -1
  180. package/dist/stripe-elements/svg/arrow-redo-sharp.svg +1 -1
  181. package/dist/stripe-elements/svg/arrow-redo.svg +1 -1
  182. package/dist/stripe-elements/svg/arrow-undo-circle-outline.svg +1 -1
  183. package/dist/stripe-elements/svg/arrow-undo-circle-sharp.svg +1 -1
  184. package/dist/stripe-elements/svg/arrow-undo-circle.svg +1 -1
  185. package/dist/stripe-elements/svg/arrow-undo-outline.svg +1 -1
  186. package/dist/stripe-elements/svg/arrow-undo-sharp.svg +1 -1
  187. package/dist/stripe-elements/svg/arrow-undo.svg +1 -1
  188. package/dist/stripe-elements/svg/arrow-up-circle-outline.svg +1 -1
  189. package/dist/stripe-elements/svg/arrow-up-circle-sharp.svg +1 -1
  190. package/dist/stripe-elements/svg/arrow-up-circle.svg +1 -1
  191. package/dist/stripe-elements/svg/arrow-up-outline.svg +1 -1
  192. package/dist/stripe-elements/svg/arrow-up-sharp.svg +1 -1
  193. package/dist/stripe-elements/svg/arrow-up.svg +1 -1
  194. package/dist/stripe-elements/svg/at-circle-outline.svg +1 -1
  195. package/dist/stripe-elements/svg/at-circle-sharp.svg +1 -1
  196. package/dist/stripe-elements/svg/at-circle.svg +1 -1
  197. package/dist/stripe-elements/svg/at-outline.svg +1 -1
  198. package/dist/stripe-elements/svg/at-sharp.svg +1 -1
  199. package/dist/stripe-elements/svg/at.svg +1 -1
  200. package/dist/stripe-elements/svg/attach-outline.svg +1 -1
  201. package/dist/stripe-elements/svg/attach-sharp.svg +1 -1
  202. package/dist/stripe-elements/svg/attach.svg +1 -1
  203. package/dist/stripe-elements/svg/backspace-outline.svg +1 -1
  204. package/dist/stripe-elements/svg/backspace-sharp.svg +1 -1
  205. package/dist/stripe-elements/svg/backspace.svg +1 -1
  206. package/dist/stripe-elements/svg/bag-add-outline.svg +1 -1
  207. package/dist/stripe-elements/svg/bag-add-sharp.svg +1 -1
  208. package/dist/stripe-elements/svg/bag-add.svg +1 -1
  209. package/dist/stripe-elements/svg/bag-check-outline.svg +1 -1
  210. package/dist/stripe-elements/svg/bag-check-sharp.svg +1 -1
  211. package/dist/stripe-elements/svg/bag-check.svg +1 -1
  212. package/dist/stripe-elements/svg/bag-handle-outline.svg +1 -1
  213. package/dist/stripe-elements/svg/bag-handle-sharp.svg +1 -1
  214. package/dist/stripe-elements/svg/bag-handle.svg +1 -1
  215. package/dist/stripe-elements/svg/bag-outline.svg +1 -1
  216. package/dist/stripe-elements/svg/bag-remove-outline.svg +1 -1
  217. package/dist/stripe-elements/svg/bag-remove-sharp.svg +1 -1
  218. package/dist/stripe-elements/svg/bag-remove.svg +1 -1
  219. package/dist/stripe-elements/svg/bag-sharp.svg +1 -1
  220. package/dist/stripe-elements/svg/bag.svg +1 -1
  221. package/dist/stripe-elements/svg/balloon-outline.svg +1 -1
  222. package/dist/stripe-elements/svg/balloon-sharp.svg +1 -1
  223. package/dist/stripe-elements/svg/balloon.svg +1 -1
  224. package/dist/stripe-elements/svg/ban-outline.svg +1 -1
  225. package/dist/stripe-elements/svg/ban-sharp.svg +1 -1
  226. package/dist/stripe-elements/svg/ban.svg +1 -1
  227. package/dist/stripe-elements/svg/bandage-outline.svg +1 -1
  228. package/dist/stripe-elements/svg/bandage-sharp.svg +1 -1
  229. package/dist/stripe-elements/svg/bandage.svg +1 -1
  230. package/dist/stripe-elements/svg/bar-chart-outline.svg +1 -1
  231. package/dist/stripe-elements/svg/bar-chart-sharp.svg +1 -1
  232. package/dist/stripe-elements/svg/bar-chart.svg +1 -1
  233. package/dist/stripe-elements/svg/barbell-outline.svg +1 -1
  234. package/dist/stripe-elements/svg/barbell-sharp.svg +1 -1
  235. package/dist/stripe-elements/svg/barbell.svg +1 -1
  236. package/dist/stripe-elements/svg/barcode-outline.svg +1 -1
  237. package/dist/stripe-elements/svg/barcode-sharp.svg +1 -1
  238. package/dist/stripe-elements/svg/barcode.svg +1 -1
  239. package/dist/stripe-elements/svg/baseball-outline.svg +1 -1
  240. package/dist/stripe-elements/svg/baseball-sharp.svg +1 -1
  241. package/dist/stripe-elements/svg/baseball.svg +1 -1
  242. package/dist/stripe-elements/svg/basket-outline.svg +1 -1
  243. package/dist/stripe-elements/svg/basket-sharp.svg +1 -1
  244. package/dist/stripe-elements/svg/basket.svg +1 -1
  245. package/dist/stripe-elements/svg/basketball-outline.svg +1 -1
  246. package/dist/stripe-elements/svg/basketball-sharp.svg +1 -1
  247. package/dist/stripe-elements/svg/basketball.svg +1 -1
  248. package/dist/stripe-elements/svg/battery-charging-outline.svg +1 -1
  249. package/dist/stripe-elements/svg/battery-charging-sharp.svg +1 -1
  250. package/dist/stripe-elements/svg/battery-charging.svg +1 -1
  251. package/dist/stripe-elements/svg/battery-dead-outline.svg +1 -1
  252. package/dist/stripe-elements/svg/battery-dead-sharp.svg +1 -1
  253. package/dist/stripe-elements/svg/battery-dead.svg +1 -1
  254. package/dist/stripe-elements/svg/battery-full-outline.svg +1 -1
  255. package/dist/stripe-elements/svg/battery-full-sharp.svg +1 -1
  256. package/dist/stripe-elements/svg/battery-full.svg +1 -1
  257. package/dist/stripe-elements/svg/battery-half-outline.svg +1 -1
  258. package/dist/stripe-elements/svg/battery-half-sharp.svg +1 -1
  259. package/dist/stripe-elements/svg/battery-half.svg +1 -1
  260. package/dist/stripe-elements/svg/beaker-outline.svg +1 -1
  261. package/dist/stripe-elements/svg/beaker-sharp.svg +1 -1
  262. package/dist/stripe-elements/svg/beaker.svg +1 -1
  263. package/dist/stripe-elements/svg/bed-outline.svg +1 -1
  264. package/dist/stripe-elements/svg/bed-sharp.svg +1 -1
  265. package/dist/stripe-elements/svg/bed.svg +1 -1
  266. package/dist/stripe-elements/svg/beer-outline.svg +1 -1
  267. package/dist/stripe-elements/svg/beer-sharp.svg +1 -1
  268. package/dist/stripe-elements/svg/beer.svg +1 -1
  269. package/dist/stripe-elements/svg/bicycle-outline.svg +1 -1
  270. package/dist/stripe-elements/svg/bicycle-sharp.svg +1 -1
  271. package/dist/stripe-elements/svg/bicycle.svg +1 -1
  272. package/dist/stripe-elements/svg/bluetooth-outline.svg +1 -1
  273. package/dist/stripe-elements/svg/bluetooth-sharp.svg +1 -1
  274. package/dist/stripe-elements/svg/bluetooth.svg +1 -1
  275. package/dist/stripe-elements/svg/boat-outline.svg +1 -1
  276. package/dist/stripe-elements/svg/boat-sharp.svg +1 -1
  277. package/dist/stripe-elements/svg/boat.svg +1 -1
  278. package/dist/stripe-elements/svg/body-outline.svg +1 -1
  279. package/dist/stripe-elements/svg/body-sharp.svg +1 -1
  280. package/dist/stripe-elements/svg/body.svg +1 -1
  281. package/dist/stripe-elements/svg/bonfire-outline.svg +1 -1
  282. package/dist/stripe-elements/svg/bonfire-sharp.svg +1 -1
  283. package/dist/stripe-elements/svg/bonfire.svg +1 -1
  284. package/dist/stripe-elements/svg/book-outline.svg +1 -1
  285. package/dist/stripe-elements/svg/book-sharp.svg +1 -1
  286. package/dist/stripe-elements/svg/book.svg +1 -1
  287. package/dist/stripe-elements/svg/bookmark-outline.svg +1 -1
  288. package/dist/stripe-elements/svg/bookmark-sharp.svg +1 -1
  289. package/dist/stripe-elements/svg/bookmark.svg +1 -1
  290. package/dist/stripe-elements/svg/bookmarks-outline.svg +1 -1
  291. package/dist/stripe-elements/svg/bookmarks-sharp.svg +1 -1
  292. package/dist/stripe-elements/svg/bookmarks.svg +1 -1
  293. package/dist/stripe-elements/svg/bowling-ball-outline.svg +1 -1
  294. package/dist/stripe-elements/svg/bowling-ball-sharp.svg +1 -1
  295. package/dist/stripe-elements/svg/bowling-ball.svg +1 -1
  296. package/dist/stripe-elements/svg/briefcase-outline.svg +1 -1
  297. package/dist/stripe-elements/svg/briefcase-sharp.svg +1 -1
  298. package/dist/stripe-elements/svg/briefcase.svg +1 -1
  299. package/dist/stripe-elements/svg/browsers-outline.svg +1 -1
  300. package/dist/stripe-elements/svg/browsers-sharp.svg +1 -1
  301. package/dist/stripe-elements/svg/browsers.svg +1 -1
  302. package/dist/stripe-elements/svg/brush-outline.svg +1 -1
  303. package/dist/stripe-elements/svg/brush-sharp.svg +1 -1
  304. package/dist/stripe-elements/svg/brush.svg +1 -1
  305. package/dist/stripe-elements/svg/bug-outline.svg +1 -1
  306. package/dist/stripe-elements/svg/bug-sharp.svg +1 -1
  307. package/dist/stripe-elements/svg/bug.svg +1 -1
  308. package/dist/stripe-elements/svg/build-outline.svg +1 -1
  309. package/dist/stripe-elements/svg/build-sharp.svg +1 -1
  310. package/dist/stripe-elements/svg/build.svg +1 -1
  311. package/dist/stripe-elements/svg/bulb-outline.svg +1 -1
  312. package/dist/stripe-elements/svg/bulb-sharp.svg +1 -1
  313. package/dist/stripe-elements/svg/bulb.svg +1 -1
  314. package/dist/stripe-elements/svg/bus-outline.svg +1 -1
  315. package/dist/stripe-elements/svg/bus-sharp.svg +1 -1
  316. package/dist/stripe-elements/svg/bus.svg +1 -1
  317. package/dist/stripe-elements/svg/business-outline.svg +1 -1
  318. package/dist/stripe-elements/svg/business-sharp.svg +1 -1
  319. package/dist/stripe-elements/svg/business.svg +1 -1
  320. package/dist/stripe-elements/svg/cafe-outline.svg +1 -1
  321. package/dist/stripe-elements/svg/cafe-sharp.svg +1 -1
  322. package/dist/stripe-elements/svg/cafe.svg +1 -1
  323. package/dist/stripe-elements/svg/calculator-outline.svg +1 -1
  324. package/dist/stripe-elements/svg/calculator-sharp.svg +1 -1
  325. package/dist/stripe-elements/svg/calculator.svg +1 -1
  326. package/dist/stripe-elements/svg/calendar-clear-outline.svg +1 -1
  327. package/dist/stripe-elements/svg/calendar-clear-sharp.svg +1 -1
  328. package/dist/stripe-elements/svg/calendar-clear.svg +1 -1
  329. package/dist/stripe-elements/svg/calendar-number-outline.svg +1 -1
  330. package/dist/stripe-elements/svg/calendar-number-sharp.svg +1 -1
  331. package/dist/stripe-elements/svg/calendar-number.svg +1 -1
  332. package/dist/stripe-elements/svg/calendar-outline.svg +1 -1
  333. package/dist/stripe-elements/svg/calendar-sharp.svg +1 -1
  334. package/dist/stripe-elements/svg/calendar.svg +1 -1
  335. package/dist/stripe-elements/svg/call-outline.svg +1 -1
  336. package/dist/stripe-elements/svg/call-sharp.svg +1 -1
  337. package/dist/stripe-elements/svg/call.svg +1 -1
  338. package/dist/stripe-elements/svg/camera-outline.svg +1 -1
  339. package/dist/stripe-elements/svg/camera-reverse-outline.svg +1 -1
  340. package/dist/stripe-elements/svg/camera-reverse-sharp.svg +1 -1
  341. package/dist/stripe-elements/svg/camera-reverse.svg +1 -1
  342. package/dist/stripe-elements/svg/camera-sharp.svg +1 -1
  343. package/dist/stripe-elements/svg/camera.svg +1 -1
  344. package/dist/stripe-elements/svg/car-outline.svg +1 -1
  345. package/dist/stripe-elements/svg/car-sharp.svg +1 -1
  346. package/dist/stripe-elements/svg/car-sport-outline.svg +1 -1
  347. package/dist/stripe-elements/svg/car-sport-sharp.svg +1 -1
  348. package/dist/stripe-elements/svg/car-sport.svg +1 -1
  349. package/dist/stripe-elements/svg/car.svg +1 -1
  350. package/dist/stripe-elements/svg/card-outline.svg +1 -1
  351. package/dist/stripe-elements/svg/card-sharp.svg +1 -1
  352. package/dist/stripe-elements/svg/card.svg +1 -1
  353. package/dist/stripe-elements/svg/caret-back-circle-outline.svg +1 -1
  354. package/dist/stripe-elements/svg/caret-back-circle-sharp.svg +1 -1
  355. package/dist/stripe-elements/svg/caret-back-circle.svg +1 -1
  356. package/dist/stripe-elements/svg/caret-back-outline.svg +1 -1
  357. package/dist/stripe-elements/svg/caret-back-sharp.svg +1 -1
  358. package/dist/stripe-elements/svg/caret-back.svg +1 -1
  359. package/dist/stripe-elements/svg/caret-down-circle-outline.svg +1 -1
  360. package/dist/stripe-elements/svg/caret-down-circle-sharp.svg +1 -1
  361. package/dist/stripe-elements/svg/caret-down-circle.svg +1 -1
  362. package/dist/stripe-elements/svg/caret-down-outline.svg +1 -1
  363. package/dist/stripe-elements/svg/caret-down-sharp.svg +1 -1
  364. package/dist/stripe-elements/svg/caret-down.svg +1 -1
  365. package/dist/stripe-elements/svg/caret-forward-circle-outline.svg +1 -1
  366. package/dist/stripe-elements/svg/caret-forward-circle-sharp.svg +1 -1
  367. package/dist/stripe-elements/svg/caret-forward-circle.svg +1 -1
  368. package/dist/stripe-elements/svg/caret-forward-outline.svg +1 -1
  369. package/dist/stripe-elements/svg/caret-forward-sharp.svg +1 -1
  370. package/dist/stripe-elements/svg/caret-forward.svg +1 -1
  371. package/dist/stripe-elements/svg/caret-up-circle-outline.svg +1 -1
  372. package/dist/stripe-elements/svg/caret-up-circle-sharp.svg +1 -1
  373. package/dist/stripe-elements/svg/caret-up-circle.svg +1 -1
  374. package/dist/stripe-elements/svg/caret-up-outline.svg +1 -1
  375. package/dist/stripe-elements/svg/caret-up-sharp.svg +1 -1
  376. package/dist/stripe-elements/svg/caret-up.svg +1 -1
  377. package/dist/stripe-elements/svg/cart-outline.svg +1 -1
  378. package/dist/stripe-elements/svg/cart-sharp.svg +1 -1
  379. package/dist/stripe-elements/svg/cart.svg +1 -1
  380. package/dist/stripe-elements/svg/cash-outline.svg +1 -1
  381. package/dist/stripe-elements/svg/cash-sharp.svg +1 -1
  382. package/dist/stripe-elements/svg/cash.svg +1 -1
  383. package/dist/stripe-elements/svg/cellular-outline.svg +1 -1
  384. package/dist/stripe-elements/svg/cellular-sharp.svg +1 -1
  385. package/dist/stripe-elements/svg/cellular.svg +1 -1
  386. package/dist/stripe-elements/svg/chatbox-ellipses-outline.svg +1 -1
  387. package/dist/stripe-elements/svg/chatbox-ellipses-sharp.svg +1 -1
  388. package/dist/stripe-elements/svg/chatbox-ellipses.svg +1 -1
  389. package/dist/stripe-elements/svg/chatbox-outline.svg +1 -1
  390. package/dist/stripe-elements/svg/chatbox-sharp.svg +1 -1
  391. package/dist/stripe-elements/svg/chatbox.svg +1 -1
  392. package/dist/stripe-elements/svg/chatbubble-ellipses-outline.svg +1 -1
  393. package/dist/stripe-elements/svg/chatbubble-ellipses-sharp.svg +1 -1
  394. package/dist/stripe-elements/svg/chatbubble-ellipses.svg +1 -1
  395. package/dist/stripe-elements/svg/chatbubble-outline.svg +1 -1
  396. package/dist/stripe-elements/svg/chatbubble-sharp.svg +1 -1
  397. package/dist/stripe-elements/svg/chatbubble.svg +1 -1
  398. package/dist/stripe-elements/svg/chatbubbles-outline.svg +1 -1
  399. package/dist/stripe-elements/svg/chatbubbles-sharp.svg +1 -1
  400. package/dist/stripe-elements/svg/chatbubbles.svg +1 -1
  401. package/dist/stripe-elements/svg/checkbox-outline.svg +1 -1
  402. package/dist/stripe-elements/svg/checkbox-sharp.svg +1 -1
  403. package/dist/stripe-elements/svg/checkbox.svg +1 -1
  404. package/dist/stripe-elements/svg/checkmark-circle-outline.svg +1 -1
  405. package/dist/stripe-elements/svg/checkmark-circle-sharp.svg +1 -1
  406. package/dist/stripe-elements/svg/checkmark-circle.svg +1 -1
  407. package/dist/stripe-elements/svg/checkmark-done-circle-outline.svg +1 -1
  408. package/dist/stripe-elements/svg/checkmark-done-circle-sharp.svg +1 -1
  409. package/dist/stripe-elements/svg/checkmark-done-circle.svg +1 -1
  410. package/dist/stripe-elements/svg/checkmark-done-outline.svg +1 -1
  411. package/dist/stripe-elements/svg/checkmark-done-sharp.svg +1 -1
  412. package/dist/stripe-elements/svg/checkmark-done.svg +1 -1
  413. package/dist/stripe-elements/svg/checkmark-outline.svg +1 -1
  414. package/dist/stripe-elements/svg/checkmark-sharp.svg +1 -1
  415. package/dist/stripe-elements/svg/checkmark.svg +1 -1
  416. package/dist/stripe-elements/svg/chevron-back-circle-outline.svg +1 -1
  417. package/dist/stripe-elements/svg/chevron-back-circle-sharp.svg +1 -1
  418. package/dist/stripe-elements/svg/chevron-back-circle.svg +1 -1
  419. package/dist/stripe-elements/svg/chevron-back-outline.svg +1 -1
  420. package/dist/stripe-elements/svg/chevron-back-sharp.svg +1 -1
  421. package/dist/stripe-elements/svg/chevron-back.svg +1 -1
  422. package/dist/stripe-elements/svg/chevron-collapse-outline.svg +1 -0
  423. package/dist/stripe-elements/svg/chevron-collapse-sharp.svg +1 -0
  424. package/dist/stripe-elements/svg/chevron-collapse.svg +1 -0
  425. package/dist/stripe-elements/svg/chevron-down-circle-outline.svg +1 -1
  426. package/dist/stripe-elements/svg/chevron-down-circle-sharp.svg +1 -1
  427. package/dist/stripe-elements/svg/chevron-down-circle.svg +1 -1
  428. package/dist/stripe-elements/svg/chevron-down-outline.svg +1 -1
  429. package/dist/stripe-elements/svg/chevron-down-sharp.svg +1 -1
  430. package/dist/stripe-elements/svg/chevron-down.svg +1 -1
  431. package/dist/stripe-elements/svg/chevron-expand-outline.svg +1 -0
  432. package/dist/stripe-elements/svg/chevron-expand-sharp.svg +1 -0
  433. package/dist/stripe-elements/svg/chevron-expand.svg +1 -0
  434. package/dist/stripe-elements/svg/chevron-forward-circle-outline.svg +1 -1
  435. package/dist/stripe-elements/svg/chevron-forward-circle-sharp.svg +1 -1
  436. package/dist/stripe-elements/svg/chevron-forward-circle.svg +1 -1
  437. package/dist/stripe-elements/svg/chevron-forward-outline.svg +1 -1
  438. package/dist/stripe-elements/svg/chevron-forward-sharp.svg +1 -1
  439. package/dist/stripe-elements/svg/chevron-forward.svg +1 -1
  440. package/dist/stripe-elements/svg/chevron-up-circle-outline.svg +1 -1
  441. package/dist/stripe-elements/svg/chevron-up-circle-sharp.svg +1 -1
  442. package/dist/stripe-elements/svg/chevron-up-circle.svg +1 -1
  443. package/dist/stripe-elements/svg/chevron-up-outline.svg +1 -1
  444. package/dist/stripe-elements/svg/chevron-up-sharp.svg +1 -1
  445. package/dist/stripe-elements/svg/chevron-up.svg +1 -1
  446. package/dist/stripe-elements/svg/clipboard-outline.svg +1 -1
  447. package/dist/stripe-elements/svg/clipboard-sharp.svg +1 -1
  448. package/dist/stripe-elements/svg/clipboard.svg +1 -1
  449. package/dist/stripe-elements/svg/close-circle-outline.svg +1 -1
  450. package/dist/stripe-elements/svg/close-circle-sharp.svg +1 -1
  451. package/dist/stripe-elements/svg/close-circle.svg +1 -1
  452. package/dist/stripe-elements/svg/close-outline.svg +1 -1
  453. package/dist/stripe-elements/svg/close-sharp.svg +1 -1
  454. package/dist/stripe-elements/svg/close.svg +1 -1
  455. package/dist/stripe-elements/svg/cloud-circle-outline.svg +1 -1
  456. package/dist/stripe-elements/svg/cloud-circle-sharp.svg +1 -1
  457. package/dist/stripe-elements/svg/cloud-circle.svg +1 -1
  458. package/dist/stripe-elements/svg/cloud-done-outline.svg +1 -1
  459. package/dist/stripe-elements/svg/cloud-done-sharp.svg +1 -1
  460. package/dist/stripe-elements/svg/cloud-done.svg +1 -1
  461. package/dist/stripe-elements/svg/cloud-download-outline.svg +1 -1
  462. package/dist/stripe-elements/svg/cloud-download-sharp.svg +1 -1
  463. package/dist/stripe-elements/svg/cloud-download.svg +1 -1
  464. package/dist/stripe-elements/svg/cloud-offline-outline.svg +1 -1
  465. package/dist/stripe-elements/svg/cloud-offline-sharp.svg +1 -1
  466. package/dist/stripe-elements/svg/cloud-offline.svg +1 -1
  467. package/dist/stripe-elements/svg/cloud-outline.svg +1 -1
  468. package/dist/stripe-elements/svg/cloud-sharp.svg +1 -1
  469. package/dist/stripe-elements/svg/cloud-upload-outline.svg +1 -1
  470. package/dist/stripe-elements/svg/cloud-upload-sharp.svg +1 -1
  471. package/dist/stripe-elements/svg/cloud-upload.svg +1 -1
  472. package/dist/stripe-elements/svg/cloud.svg +1 -1
  473. package/dist/stripe-elements/svg/cloudy-night-outline.svg +1 -1
  474. package/dist/stripe-elements/svg/cloudy-night-sharp.svg +1 -1
  475. package/dist/stripe-elements/svg/cloudy-night.svg +1 -1
  476. package/dist/stripe-elements/svg/cloudy-outline.svg +1 -1
  477. package/dist/stripe-elements/svg/cloudy-sharp.svg +1 -1
  478. package/dist/stripe-elements/svg/cloudy.svg +1 -1
  479. package/dist/stripe-elements/svg/code-download-outline.svg +1 -1
  480. package/dist/stripe-elements/svg/code-download-sharp.svg +1 -1
  481. package/dist/stripe-elements/svg/code-download.svg +1 -1
  482. package/dist/stripe-elements/svg/code-outline.svg +1 -1
  483. package/dist/stripe-elements/svg/code-sharp.svg +1 -1
  484. package/dist/stripe-elements/svg/code-slash-outline.svg +1 -1
  485. package/dist/stripe-elements/svg/code-slash-sharp.svg +1 -1
  486. package/dist/stripe-elements/svg/code-slash.svg +1 -1
  487. package/dist/stripe-elements/svg/code-working-outline.svg +1 -1
  488. package/dist/stripe-elements/svg/code-working-sharp.svg +1 -1
  489. package/dist/stripe-elements/svg/code-working.svg +1 -1
  490. package/dist/stripe-elements/svg/code.svg +1 -1
  491. package/dist/stripe-elements/svg/cog-outline.svg +1 -1
  492. package/dist/stripe-elements/svg/cog-sharp.svg +1 -1
  493. package/dist/stripe-elements/svg/cog.svg +1 -1
  494. package/dist/stripe-elements/svg/color-fill-outline.svg +1 -1
  495. package/dist/stripe-elements/svg/color-fill-sharp.svg +1 -1
  496. package/dist/stripe-elements/svg/color-fill.svg +1 -1
  497. package/dist/stripe-elements/svg/color-filter-outline.svg +1 -1
  498. package/dist/stripe-elements/svg/color-filter-sharp.svg +1 -1
  499. package/dist/stripe-elements/svg/color-filter.svg +1 -1
  500. package/dist/stripe-elements/svg/color-palette-outline.svg +1 -1
  501. package/dist/stripe-elements/svg/color-palette-sharp.svg +1 -1
  502. package/dist/stripe-elements/svg/color-palette.svg +1 -1
  503. package/dist/stripe-elements/svg/color-wand-outline.svg +1 -1
  504. package/dist/stripe-elements/svg/color-wand-sharp.svg +1 -1
  505. package/dist/stripe-elements/svg/color-wand.svg +1 -1
  506. package/dist/stripe-elements/svg/compass-outline.svg +1 -1
  507. package/dist/stripe-elements/svg/compass-sharp.svg +1 -1
  508. package/dist/stripe-elements/svg/compass.svg +1 -1
  509. package/dist/stripe-elements/svg/construct-outline.svg +1 -1
  510. package/dist/stripe-elements/svg/construct-sharp.svg +1 -1
  511. package/dist/stripe-elements/svg/construct.svg +1 -1
  512. package/dist/stripe-elements/svg/contract-outline.svg +1 -1
  513. package/dist/stripe-elements/svg/contract-sharp.svg +1 -1
  514. package/dist/stripe-elements/svg/contract.svg +1 -1
  515. package/dist/stripe-elements/svg/contrast-outline.svg +1 -1
  516. package/dist/stripe-elements/svg/contrast-sharp.svg +1 -1
  517. package/dist/stripe-elements/svg/contrast.svg +1 -1
  518. package/dist/stripe-elements/svg/copy-outline.svg +1 -1
  519. package/dist/stripe-elements/svg/copy-sharp.svg +1 -1
  520. package/dist/stripe-elements/svg/copy.svg +1 -1
  521. package/dist/stripe-elements/svg/create-outline.svg +1 -1
  522. package/dist/stripe-elements/svg/create-sharp.svg +1 -1
  523. package/dist/stripe-elements/svg/create.svg +1 -1
  524. package/dist/stripe-elements/svg/crop-outline.svg +1 -1
  525. package/dist/stripe-elements/svg/crop-sharp.svg +1 -1
  526. package/dist/stripe-elements/svg/crop.svg +1 -1
  527. package/dist/stripe-elements/svg/cube-outline.svg +1 -1
  528. package/dist/stripe-elements/svg/cube-sharp.svg +1 -1
  529. package/dist/stripe-elements/svg/cube.svg +1 -1
  530. package/dist/stripe-elements/svg/cut-outline.svg +1 -1
  531. package/dist/stripe-elements/svg/cut-sharp.svg +1 -1
  532. package/dist/stripe-elements/svg/cut.svg +1 -1
  533. package/dist/stripe-elements/svg/desktop-outline.svg +1 -1
  534. package/dist/stripe-elements/svg/desktop-sharp.svg +1 -1
  535. package/dist/stripe-elements/svg/desktop.svg +1 -1
  536. package/dist/stripe-elements/svg/diamond-outline.svg +1 -1
  537. package/dist/stripe-elements/svg/diamond-sharp.svg +1 -1
  538. package/dist/stripe-elements/svg/diamond.svg +1 -1
  539. package/dist/stripe-elements/svg/dice-outline.svg +1 -1
  540. package/dist/stripe-elements/svg/dice-sharp.svg +1 -1
  541. package/dist/stripe-elements/svg/dice.svg +1 -1
  542. package/dist/stripe-elements/svg/disc-outline.svg +1 -1
  543. package/dist/stripe-elements/svg/disc-sharp.svg +1 -1
  544. package/dist/stripe-elements/svg/disc.svg +1 -1
  545. package/dist/stripe-elements/svg/document-attach-outline.svg +1 -1
  546. package/dist/stripe-elements/svg/document-attach-sharp.svg +1 -1
  547. package/dist/stripe-elements/svg/document-attach.svg +1 -1
  548. package/dist/stripe-elements/svg/document-lock-outline.svg +1 -1
  549. package/dist/stripe-elements/svg/document-lock-sharp.svg +1 -1
  550. package/dist/stripe-elements/svg/document-lock.svg +1 -1
  551. package/dist/stripe-elements/svg/document-outline.svg +1 -1
  552. package/dist/stripe-elements/svg/document-sharp.svg +1 -1
  553. package/dist/stripe-elements/svg/document-text-outline.svg +1 -1
  554. package/dist/stripe-elements/svg/document-text-sharp.svg +1 -1
  555. package/dist/stripe-elements/svg/document-text.svg +1 -1
  556. package/dist/stripe-elements/svg/document.svg +1 -1
  557. package/dist/stripe-elements/svg/documents-outline.svg +1 -1
  558. package/dist/stripe-elements/svg/documents-sharp.svg +1 -1
  559. package/dist/stripe-elements/svg/documents.svg +1 -1
  560. package/dist/stripe-elements/svg/download-outline.svg +1 -1
  561. package/dist/stripe-elements/svg/download-sharp.svg +1 -1
  562. package/dist/stripe-elements/svg/download.svg +1 -1
  563. package/dist/stripe-elements/svg/duplicate-outline.svg +1 -1
  564. package/dist/stripe-elements/svg/duplicate-sharp.svg +1 -1
  565. package/dist/stripe-elements/svg/duplicate.svg +1 -1
  566. package/dist/stripe-elements/svg/ear-outline.svg +1 -1
  567. package/dist/stripe-elements/svg/ear-sharp.svg +1 -1
  568. package/dist/stripe-elements/svg/ear.svg +1 -1
  569. package/dist/stripe-elements/svg/earth-outline.svg +1 -1
  570. package/dist/stripe-elements/svg/earth-sharp.svg +1 -1
  571. package/dist/stripe-elements/svg/earth.svg +1 -1
  572. package/dist/stripe-elements/svg/easel-outline.svg +1 -1
  573. package/dist/stripe-elements/svg/easel-sharp.svg +1 -1
  574. package/dist/stripe-elements/svg/easel.svg +1 -1
  575. package/dist/stripe-elements/svg/egg-outline.svg +1 -1
  576. package/dist/stripe-elements/svg/egg-sharp.svg +1 -1
  577. package/dist/stripe-elements/svg/egg.svg +1 -1
  578. package/dist/stripe-elements/svg/ellipse-outline.svg +1 -1
  579. package/dist/stripe-elements/svg/ellipse-sharp.svg +1 -1
  580. package/dist/stripe-elements/svg/ellipse.svg +1 -1
  581. package/dist/stripe-elements/svg/ellipsis-horizontal-circle-outline.svg +1 -1
  582. package/dist/stripe-elements/svg/ellipsis-horizontal-circle-sharp.svg +1 -1
  583. package/dist/stripe-elements/svg/ellipsis-horizontal-circle.svg +1 -1
  584. package/dist/stripe-elements/svg/ellipsis-horizontal-outline.svg +1 -1
  585. package/dist/stripe-elements/svg/ellipsis-horizontal-sharp.svg +1 -1
  586. package/dist/stripe-elements/svg/ellipsis-horizontal.svg +1 -1
  587. package/dist/stripe-elements/svg/ellipsis-vertical-circle-outline.svg +1 -1
  588. package/dist/stripe-elements/svg/ellipsis-vertical-circle-sharp.svg +1 -1
  589. package/dist/stripe-elements/svg/ellipsis-vertical-circle.svg +1 -1
  590. package/dist/stripe-elements/svg/ellipsis-vertical-outline.svg +1 -1
  591. package/dist/stripe-elements/svg/ellipsis-vertical-sharp.svg +1 -1
  592. package/dist/stripe-elements/svg/ellipsis-vertical.svg +1 -1
  593. package/dist/stripe-elements/svg/enter-outline.svg +1 -1
  594. package/dist/stripe-elements/svg/enter-sharp.svg +1 -1
  595. package/dist/stripe-elements/svg/enter.svg +1 -1
  596. package/dist/stripe-elements/svg/exit-outline.svg +1 -1
  597. package/dist/stripe-elements/svg/exit-sharp.svg +1 -1
  598. package/dist/stripe-elements/svg/exit.svg +1 -1
  599. package/dist/stripe-elements/svg/expand-outline.svg +1 -1
  600. package/dist/stripe-elements/svg/expand-sharp.svg +1 -1
  601. package/dist/stripe-elements/svg/expand.svg +1 -1
  602. package/dist/stripe-elements/svg/extension-puzzle-outline.svg +1 -1
  603. package/dist/stripe-elements/svg/extension-puzzle-sharp.svg +1 -1
  604. package/dist/stripe-elements/svg/extension-puzzle.svg +1 -1
  605. package/dist/stripe-elements/svg/eye-off-outline.svg +1 -1
  606. package/dist/stripe-elements/svg/eye-off-sharp.svg +1 -1
  607. package/dist/stripe-elements/svg/eye-off.svg +1 -1
  608. package/dist/stripe-elements/svg/eye-outline.svg +1 -1
  609. package/dist/stripe-elements/svg/eye-sharp.svg +1 -1
  610. package/dist/stripe-elements/svg/eye.svg +1 -1
  611. package/dist/stripe-elements/svg/eyedrop-outline.svg +1 -1
  612. package/dist/stripe-elements/svg/eyedrop-sharp.svg +1 -1
  613. package/dist/stripe-elements/svg/eyedrop.svg +1 -1
  614. package/dist/stripe-elements/svg/fast-food-outline.svg +1 -1
  615. package/dist/stripe-elements/svg/fast-food-sharp.svg +1 -1
  616. package/dist/stripe-elements/svg/fast-food.svg +1 -1
  617. package/dist/stripe-elements/svg/female-outline.svg +1 -1
  618. package/dist/stripe-elements/svg/female-sharp.svg +1 -1
  619. package/dist/stripe-elements/svg/female.svg +1 -1
  620. package/dist/stripe-elements/svg/file-tray-full-outline.svg +1 -1
  621. package/dist/stripe-elements/svg/file-tray-full-sharp.svg +1 -1
  622. package/dist/stripe-elements/svg/file-tray-full.svg +1 -1
  623. package/dist/stripe-elements/svg/file-tray-outline.svg +1 -1
  624. package/dist/stripe-elements/svg/file-tray-sharp.svg +1 -1
  625. package/dist/stripe-elements/svg/file-tray-stacked-outline.svg +1 -1
  626. package/dist/stripe-elements/svg/file-tray-stacked-sharp.svg +1 -1
  627. package/dist/stripe-elements/svg/file-tray-stacked.svg +1 -1
  628. package/dist/stripe-elements/svg/file-tray.svg +1 -1
  629. package/dist/stripe-elements/svg/film-outline.svg +1 -1
  630. package/dist/stripe-elements/svg/film-sharp.svg +1 -1
  631. package/dist/stripe-elements/svg/film.svg +1 -1
  632. package/dist/stripe-elements/svg/filter-circle-outline.svg +1 -1
  633. package/dist/stripe-elements/svg/filter-circle-sharp.svg +1 -1
  634. package/dist/stripe-elements/svg/filter-circle.svg +1 -1
  635. package/dist/stripe-elements/svg/filter-outline.svg +1 -1
  636. package/dist/stripe-elements/svg/filter-sharp.svg +1 -1
  637. package/dist/stripe-elements/svg/filter.svg +1 -1
  638. package/dist/stripe-elements/svg/finger-print-outline.svg +1 -1
  639. package/dist/stripe-elements/svg/finger-print-sharp.svg +1 -1
  640. package/dist/stripe-elements/svg/finger-print.svg +1 -1
  641. package/dist/stripe-elements/svg/fish-outline.svg +1 -1
  642. package/dist/stripe-elements/svg/fish-sharp.svg +1 -1
  643. package/dist/stripe-elements/svg/fish.svg +1 -1
  644. package/dist/stripe-elements/svg/fitness-outline.svg +1 -1
  645. package/dist/stripe-elements/svg/fitness-sharp.svg +1 -1
  646. package/dist/stripe-elements/svg/fitness.svg +1 -1
  647. package/dist/stripe-elements/svg/flag-outline.svg +1 -1
  648. package/dist/stripe-elements/svg/flag-sharp.svg +1 -1
  649. package/dist/stripe-elements/svg/flag.svg +1 -1
  650. package/dist/stripe-elements/svg/flame-outline.svg +1 -1
  651. package/dist/stripe-elements/svg/flame-sharp.svg +1 -1
  652. package/dist/stripe-elements/svg/flame.svg +1 -1
  653. package/dist/stripe-elements/svg/flash-off-outline.svg +1 -1
  654. package/dist/stripe-elements/svg/flash-off-sharp.svg +1 -1
  655. package/dist/stripe-elements/svg/flash-off.svg +1 -1
  656. package/dist/stripe-elements/svg/flash-outline.svg +1 -1
  657. package/dist/stripe-elements/svg/flash-sharp.svg +1 -1
  658. package/dist/stripe-elements/svg/flash.svg +1 -1
  659. package/dist/stripe-elements/svg/flashlight-outline.svg +1 -1
  660. package/dist/stripe-elements/svg/flashlight-sharp.svg +1 -1
  661. package/dist/stripe-elements/svg/flashlight.svg +1 -1
  662. package/dist/stripe-elements/svg/flask-outline.svg +1 -1
  663. package/dist/stripe-elements/svg/flask-sharp.svg +1 -1
  664. package/dist/stripe-elements/svg/flask.svg +1 -1
  665. package/dist/stripe-elements/svg/flower-outline.svg +1 -1
  666. package/dist/stripe-elements/svg/flower-sharp.svg +1 -1
  667. package/dist/stripe-elements/svg/flower.svg +1 -1
  668. package/dist/stripe-elements/svg/folder-open-outline.svg +1 -1
  669. package/dist/stripe-elements/svg/folder-open-sharp.svg +1 -1
  670. package/dist/stripe-elements/svg/folder-open.svg +1 -1
  671. package/dist/stripe-elements/svg/folder-outline.svg +1 -1
  672. package/dist/stripe-elements/svg/folder-sharp.svg +1 -1
  673. package/dist/stripe-elements/svg/folder.svg +1 -1
  674. package/dist/stripe-elements/svg/football-outline.svg +1 -1
  675. package/dist/stripe-elements/svg/football-sharp.svg +1 -1
  676. package/dist/stripe-elements/svg/football.svg +1 -1
  677. package/dist/stripe-elements/svg/footsteps-outline.svg +1 -1
  678. package/dist/stripe-elements/svg/footsteps-sharp.svg +1 -1
  679. package/dist/stripe-elements/svg/footsteps.svg +1 -1
  680. package/dist/stripe-elements/svg/funnel-outline.svg +1 -1
  681. package/dist/stripe-elements/svg/funnel-sharp.svg +1 -1
  682. package/dist/stripe-elements/svg/funnel.svg +1 -1
  683. package/dist/stripe-elements/svg/game-controller-outline.svg +1 -1
  684. package/dist/stripe-elements/svg/game-controller-sharp.svg +1 -1
  685. package/dist/stripe-elements/svg/game-controller.svg +1 -1
  686. package/dist/stripe-elements/svg/gift-outline.svg +1 -1
  687. package/dist/stripe-elements/svg/gift-sharp.svg +1 -1
  688. package/dist/stripe-elements/svg/gift.svg +1 -1
  689. package/dist/stripe-elements/svg/git-branch-outline.svg +1 -1
  690. package/dist/stripe-elements/svg/git-branch-sharp.svg +1 -1
  691. package/dist/stripe-elements/svg/git-branch.svg +1 -1
  692. package/dist/stripe-elements/svg/git-commit-outline.svg +1 -1
  693. package/dist/stripe-elements/svg/git-commit-sharp.svg +1 -1
  694. package/dist/stripe-elements/svg/git-commit.svg +1 -1
  695. package/dist/stripe-elements/svg/git-compare-outline.svg +1 -1
  696. package/dist/stripe-elements/svg/git-compare-sharp.svg +1 -1
  697. package/dist/stripe-elements/svg/git-compare.svg +1 -1
  698. package/dist/stripe-elements/svg/git-merge-outline.svg +1 -1
  699. package/dist/stripe-elements/svg/git-merge-sharp.svg +1 -1
  700. package/dist/stripe-elements/svg/git-merge.svg +1 -1
  701. package/dist/stripe-elements/svg/git-network-outline.svg +1 -1
  702. package/dist/stripe-elements/svg/git-network-sharp.svg +1 -1
  703. package/dist/stripe-elements/svg/git-network.svg +1 -1
  704. package/dist/stripe-elements/svg/git-pull-request-outline.svg +1 -1
  705. package/dist/stripe-elements/svg/git-pull-request-sharp.svg +1 -1
  706. package/dist/stripe-elements/svg/git-pull-request.svg +1 -1
  707. package/dist/stripe-elements/svg/glasses-outline.svg +1 -1
  708. package/dist/stripe-elements/svg/glasses-sharp.svg +1 -1
  709. package/dist/stripe-elements/svg/glasses.svg +1 -1
  710. package/dist/stripe-elements/svg/globe-outline.svg +1 -1
  711. package/dist/stripe-elements/svg/globe-sharp.svg +1 -1
  712. package/dist/stripe-elements/svg/globe.svg +1 -1
  713. package/dist/stripe-elements/svg/golf-outline.svg +1 -1
  714. package/dist/stripe-elements/svg/golf-sharp.svg +1 -1
  715. package/dist/stripe-elements/svg/golf.svg +1 -1
  716. package/dist/stripe-elements/svg/grid-outline.svg +1 -1
  717. package/dist/stripe-elements/svg/grid-sharp.svg +1 -1
  718. package/dist/stripe-elements/svg/grid.svg +1 -1
  719. package/dist/stripe-elements/svg/hammer-outline.svg +1 -1
  720. package/dist/stripe-elements/svg/hammer-sharp.svg +1 -1
  721. package/dist/stripe-elements/svg/hammer.svg +1 -1
  722. package/dist/stripe-elements/svg/hand-left-outline.svg +1 -1
  723. package/dist/stripe-elements/svg/hand-left-sharp.svg +1 -1
  724. package/dist/stripe-elements/svg/hand-left.svg +1 -1
  725. package/dist/stripe-elements/svg/hand-right-outline.svg +1 -1
  726. package/dist/stripe-elements/svg/hand-right-sharp.svg +1 -1
  727. package/dist/stripe-elements/svg/hand-right.svg +1 -1
  728. package/dist/stripe-elements/svg/happy-outline.svg +1 -1
  729. package/dist/stripe-elements/svg/happy-sharp.svg +1 -1
  730. package/dist/stripe-elements/svg/happy.svg +1 -1
  731. package/dist/stripe-elements/svg/hardware-chip-outline.svg +1 -1
  732. package/dist/stripe-elements/svg/hardware-chip-sharp.svg +1 -1
  733. package/dist/stripe-elements/svg/hardware-chip.svg +1 -1
  734. package/dist/stripe-elements/svg/headset-outline.svg +1 -1
  735. package/dist/stripe-elements/svg/headset-sharp.svg +1 -1
  736. package/dist/stripe-elements/svg/headset.svg +1 -1
  737. package/dist/stripe-elements/svg/heart-circle-outline.svg +1 -1
  738. package/dist/stripe-elements/svg/heart-circle-sharp.svg +1 -1
  739. package/dist/stripe-elements/svg/heart-circle.svg +1 -1
  740. package/dist/stripe-elements/svg/heart-dislike-circle-outline.svg +1 -1
  741. package/dist/stripe-elements/svg/heart-dislike-circle-sharp.svg +1 -1
  742. package/dist/stripe-elements/svg/heart-dislike-circle.svg +1 -1
  743. package/dist/stripe-elements/svg/heart-dislike-outline.svg +1 -1
  744. package/dist/stripe-elements/svg/heart-dislike-sharp.svg +1 -1
  745. package/dist/stripe-elements/svg/heart-dislike.svg +1 -1
  746. package/dist/stripe-elements/svg/heart-half-outline.svg +1 -1
  747. package/dist/stripe-elements/svg/heart-half-sharp.svg +1 -1
  748. package/dist/stripe-elements/svg/heart-half.svg +1 -1
  749. package/dist/stripe-elements/svg/heart-outline.svg +1 -1
  750. package/dist/stripe-elements/svg/heart-sharp.svg +1 -1
  751. package/dist/stripe-elements/svg/heart.svg +1 -1
  752. package/dist/stripe-elements/svg/help-buoy-outline.svg +1 -1
  753. package/dist/stripe-elements/svg/help-buoy-sharp.svg +1 -1
  754. package/dist/stripe-elements/svg/help-buoy.svg +1 -1
  755. package/dist/stripe-elements/svg/help-circle-outline.svg +1 -1
  756. package/dist/stripe-elements/svg/help-circle-sharp.svg +1 -1
  757. package/dist/stripe-elements/svg/help-circle.svg +1 -1
  758. package/dist/stripe-elements/svg/help-outline.svg +1 -1
  759. package/dist/stripe-elements/svg/help-sharp.svg +1 -1
  760. package/dist/stripe-elements/svg/help.svg +1 -1
  761. package/dist/stripe-elements/svg/home-outline.svg +1 -1
  762. package/dist/stripe-elements/svg/home-sharp.svg +1 -1
  763. package/dist/stripe-elements/svg/home.svg +1 -1
  764. package/dist/stripe-elements/svg/hourglass-outline.svg +1 -1
  765. package/dist/stripe-elements/svg/hourglass-sharp.svg +1 -1
  766. package/dist/stripe-elements/svg/hourglass.svg +1 -1
  767. package/dist/stripe-elements/svg/ice-cream-outline.svg +1 -1
  768. package/dist/stripe-elements/svg/ice-cream-sharp.svg +1 -1
  769. package/dist/stripe-elements/svg/ice-cream.svg +1 -1
  770. package/dist/stripe-elements/svg/id-card-outline.svg +1 -1
  771. package/dist/stripe-elements/svg/id-card-sharp.svg +1 -1
  772. package/dist/stripe-elements/svg/id-card.svg +1 -1
  773. package/dist/stripe-elements/svg/image-outline.svg +1 -1
  774. package/dist/stripe-elements/svg/image-sharp.svg +1 -1
  775. package/dist/stripe-elements/svg/image.svg +1 -1
  776. package/dist/stripe-elements/svg/images-outline.svg +1 -1
  777. package/dist/stripe-elements/svg/images-sharp.svg +1 -1
  778. package/dist/stripe-elements/svg/images.svg +1 -1
  779. package/dist/stripe-elements/svg/infinite-outline.svg +1 -1
  780. package/dist/stripe-elements/svg/infinite-sharp.svg +1 -1
  781. package/dist/stripe-elements/svg/infinite.svg +1 -1
  782. package/dist/stripe-elements/svg/information-circle-outline.svg +1 -1
  783. package/dist/stripe-elements/svg/information-circle-sharp.svg +1 -1
  784. package/dist/stripe-elements/svg/information-circle.svg +1 -1
  785. package/dist/stripe-elements/svg/information-outline.svg +1 -1
  786. package/dist/stripe-elements/svg/information-sharp.svg +1 -1
  787. package/dist/stripe-elements/svg/information.svg +1 -1
  788. package/dist/stripe-elements/svg/invert-mode-outline.svg +1 -1
  789. package/dist/stripe-elements/svg/invert-mode-sharp.svg +1 -1
  790. package/dist/stripe-elements/svg/invert-mode.svg +1 -1
  791. package/dist/stripe-elements/svg/journal-outline.svg +1 -1
  792. package/dist/stripe-elements/svg/journal-sharp.svg +1 -1
  793. package/dist/stripe-elements/svg/journal.svg +1 -1
  794. package/dist/stripe-elements/svg/key-outline.svg +1 -1
  795. package/dist/stripe-elements/svg/key-sharp.svg +1 -1
  796. package/dist/stripe-elements/svg/key.svg +1 -1
  797. package/dist/stripe-elements/svg/keypad-outline.svg +1 -1
  798. package/dist/stripe-elements/svg/keypad-sharp.svg +1 -1
  799. package/dist/stripe-elements/svg/keypad.svg +1 -1
  800. package/dist/stripe-elements/svg/language-outline.svg +1 -1
  801. package/dist/stripe-elements/svg/language-sharp.svg +1 -1
  802. package/dist/stripe-elements/svg/language.svg +1 -1
  803. package/dist/stripe-elements/svg/laptop-outline.svg +1 -1
  804. package/dist/stripe-elements/svg/laptop-sharp.svg +1 -1
  805. package/dist/stripe-elements/svg/laptop.svg +1 -1
  806. package/dist/stripe-elements/svg/layers-outline.svg +1 -1
  807. package/dist/stripe-elements/svg/layers-sharp.svg +1 -1
  808. package/dist/stripe-elements/svg/layers.svg +1 -1
  809. package/dist/stripe-elements/svg/leaf-outline.svg +1 -1
  810. package/dist/stripe-elements/svg/leaf-sharp.svg +1 -1
  811. package/dist/stripe-elements/svg/leaf.svg +1 -1
  812. package/dist/stripe-elements/svg/library-outline.svg +1 -1
  813. package/dist/stripe-elements/svg/library-sharp.svg +1 -1
  814. package/dist/stripe-elements/svg/library.svg +1 -1
  815. package/dist/stripe-elements/svg/link-outline.svg +1 -1
  816. package/dist/stripe-elements/svg/link-sharp.svg +1 -1
  817. package/dist/stripe-elements/svg/link.svg +1 -1
  818. package/dist/stripe-elements/svg/list-circle-outline.svg +1 -1
  819. package/dist/stripe-elements/svg/list-circle-sharp.svg +1 -1
  820. package/dist/stripe-elements/svg/list-circle.svg +1 -1
  821. package/dist/stripe-elements/svg/list-outline.svg +1 -1
  822. package/dist/stripe-elements/svg/list-sharp.svg +1 -1
  823. package/dist/stripe-elements/svg/list.svg +1 -1
  824. package/dist/stripe-elements/svg/locate-outline.svg +1 -1
  825. package/dist/stripe-elements/svg/locate-sharp.svg +1 -1
  826. package/dist/stripe-elements/svg/locate.svg +1 -1
  827. package/dist/stripe-elements/svg/location-outline.svg +1 -1
  828. package/dist/stripe-elements/svg/location-sharp.svg +1 -1
  829. package/dist/stripe-elements/svg/location.svg +1 -1
  830. package/dist/stripe-elements/svg/lock-closed-outline.svg +1 -1
  831. package/dist/stripe-elements/svg/lock-closed-sharp.svg +1 -1
  832. package/dist/stripe-elements/svg/lock-closed.svg +1 -1
  833. package/dist/stripe-elements/svg/lock-open-outline.svg +1 -1
  834. package/dist/stripe-elements/svg/lock-open-sharp.svg +1 -1
  835. package/dist/stripe-elements/svg/lock-open.svg +1 -1
  836. package/dist/stripe-elements/svg/log-in-outline.svg +1 -1
  837. package/dist/stripe-elements/svg/log-in-sharp.svg +1 -1
  838. package/dist/stripe-elements/svg/log-in.svg +1 -1
  839. package/dist/stripe-elements/svg/log-out-outline.svg +1 -1
  840. package/dist/stripe-elements/svg/log-out-sharp.svg +1 -1
  841. package/dist/stripe-elements/svg/log-out.svg +1 -1
  842. package/dist/stripe-elements/svg/logo-alipay.svg +1 -1
  843. package/dist/stripe-elements/svg/logo-amazon.svg +1 -1
  844. package/dist/stripe-elements/svg/logo-amplify.svg +1 -1
  845. package/dist/stripe-elements/svg/logo-android.svg +1 -1
  846. package/dist/stripe-elements/svg/logo-angular.svg +1 -1
  847. package/dist/stripe-elements/svg/logo-apple-appstore.svg +1 -1
  848. package/dist/stripe-elements/svg/logo-apple-ar.svg +1 -1
  849. package/dist/stripe-elements/svg/logo-apple.svg +1 -1
  850. package/dist/stripe-elements/svg/logo-behance.svg +1 -1
  851. package/dist/stripe-elements/svg/logo-bitbucket.svg +1 -1
  852. package/dist/stripe-elements/svg/logo-bitcoin.svg +1 -1
  853. package/dist/stripe-elements/svg/logo-buffer.svg +1 -1
  854. package/dist/stripe-elements/svg/logo-capacitor.svg +1 -1
  855. package/dist/stripe-elements/svg/logo-chrome.svg +1 -1
  856. package/dist/stripe-elements/svg/logo-closed-captioning.svg +1 -1
  857. package/dist/stripe-elements/svg/logo-codepen.svg +1 -1
  858. package/dist/stripe-elements/svg/logo-css3.svg +1 -1
  859. package/dist/stripe-elements/svg/logo-designernews.svg +1 -1
  860. package/dist/stripe-elements/svg/logo-deviantart.svg +1 -1
  861. package/dist/stripe-elements/svg/logo-discord.svg +1 -1
  862. package/dist/stripe-elements/svg/logo-docker.svg +1 -1
  863. package/dist/stripe-elements/svg/logo-dribbble.svg +1 -1
  864. package/dist/stripe-elements/svg/logo-dropbox.svg +1 -1
  865. package/dist/stripe-elements/svg/logo-edge.svg +1 -1
  866. package/dist/stripe-elements/svg/logo-electron.svg +1 -1
  867. package/dist/stripe-elements/svg/logo-euro.svg +1 -1
  868. package/dist/stripe-elements/svg/logo-facebook.svg +1 -1
  869. package/dist/stripe-elements/svg/logo-figma.svg +1 -1
  870. package/dist/stripe-elements/svg/logo-firebase.svg +1 -1
  871. package/dist/stripe-elements/svg/logo-firefox.svg +1 -1
  872. package/dist/stripe-elements/svg/logo-flickr.svg +1 -1
  873. package/dist/stripe-elements/svg/logo-foursquare.svg +1 -1
  874. package/dist/stripe-elements/svg/logo-github.svg +1 -1
  875. package/dist/stripe-elements/svg/logo-gitlab.svg +1 -1
  876. package/dist/stripe-elements/svg/logo-google-playstore.svg +1 -1
  877. package/dist/stripe-elements/svg/logo-google.svg +1 -1
  878. package/dist/stripe-elements/svg/logo-hackernews.svg +1 -1
  879. package/dist/stripe-elements/svg/logo-html5.svg +1 -1
  880. package/dist/stripe-elements/svg/logo-instagram.svg +1 -1
  881. package/dist/stripe-elements/svg/logo-ionic.svg +1 -1
  882. package/dist/stripe-elements/svg/logo-ionitron.svg +1 -1
  883. package/dist/stripe-elements/svg/logo-javascript.svg +1 -1
  884. package/dist/stripe-elements/svg/logo-laravel.svg +1 -1
  885. package/dist/stripe-elements/svg/logo-linkedin.svg +1 -1
  886. package/dist/stripe-elements/svg/logo-markdown.svg +1 -1
  887. package/dist/stripe-elements/svg/logo-mastodon.svg +1 -1
  888. package/dist/stripe-elements/svg/logo-medium.svg +1 -1
  889. package/dist/stripe-elements/svg/logo-microsoft.svg +1 -1
  890. package/dist/stripe-elements/svg/logo-no-smoking.svg +1 -1
  891. package/dist/stripe-elements/svg/logo-nodejs.svg +1 -1
  892. package/dist/stripe-elements/svg/logo-npm.svg +1 -1
  893. package/dist/stripe-elements/svg/logo-octocat.svg +1 -1
  894. package/dist/stripe-elements/svg/logo-paypal.svg +1 -1
  895. package/dist/stripe-elements/svg/logo-pinterest.svg +1 -1
  896. package/dist/stripe-elements/svg/logo-playstation.svg +1 -1
  897. package/dist/stripe-elements/svg/logo-pwa.svg +1 -1
  898. package/dist/stripe-elements/svg/logo-python.svg +1 -1
  899. package/dist/stripe-elements/svg/logo-react.svg +1 -1
  900. package/dist/stripe-elements/svg/logo-reddit.svg +1 -1
  901. package/dist/stripe-elements/svg/logo-rss.svg +1 -1
  902. package/dist/stripe-elements/svg/logo-sass.svg +1 -1
  903. package/dist/stripe-elements/svg/logo-skype.svg +1 -1
  904. package/dist/stripe-elements/svg/logo-slack.svg +1 -1
  905. package/dist/stripe-elements/svg/logo-snapchat.svg +1 -1
  906. package/dist/stripe-elements/svg/logo-soundcloud.svg +1 -1
  907. package/dist/stripe-elements/svg/logo-stackoverflow.svg +1 -1
  908. package/dist/stripe-elements/svg/logo-steam.svg +1 -1
  909. package/dist/stripe-elements/svg/logo-stencil.svg +1 -1
  910. package/dist/stripe-elements/svg/logo-tableau.svg +1 -1
  911. package/dist/stripe-elements/svg/logo-tiktok.svg +1 -1
  912. package/dist/stripe-elements/svg/logo-tumblr.svg +1 -1
  913. package/dist/stripe-elements/svg/logo-tux.svg +1 -1
  914. package/dist/stripe-elements/svg/logo-twitch.svg +1 -1
  915. package/dist/stripe-elements/svg/logo-twitter.svg +1 -1
  916. package/dist/stripe-elements/svg/logo-usd.svg +1 -1
  917. package/dist/stripe-elements/svg/logo-venmo.svg +1 -1
  918. package/dist/stripe-elements/svg/logo-vercel.svg +1 -1
  919. package/dist/stripe-elements/svg/logo-vimeo.svg +1 -1
  920. package/dist/stripe-elements/svg/logo-vk.svg +1 -1
  921. package/dist/stripe-elements/svg/logo-vue.svg +1 -1
  922. package/dist/stripe-elements/svg/logo-web-component.svg +1 -1
  923. package/dist/stripe-elements/svg/logo-wechat.svg +1 -1
  924. package/dist/stripe-elements/svg/logo-whatsapp.svg +1 -1
  925. package/dist/stripe-elements/svg/logo-windows.svg +1 -1
  926. package/dist/stripe-elements/svg/logo-wordpress.svg +1 -1
  927. package/dist/stripe-elements/svg/logo-xbox.svg +1 -1
  928. package/dist/stripe-elements/svg/logo-xing.svg +1 -1
  929. package/dist/stripe-elements/svg/logo-yahoo.svg +1 -1
  930. package/dist/stripe-elements/svg/logo-yen.svg +1 -1
  931. package/dist/stripe-elements/svg/logo-youtube.svg +1 -1
  932. package/dist/stripe-elements/svg/magnet-outline.svg +1 -1
  933. package/dist/stripe-elements/svg/magnet-sharp.svg +1 -1
  934. package/dist/stripe-elements/svg/magnet.svg +1 -1
  935. package/dist/stripe-elements/svg/mail-open-outline.svg +1 -1
  936. package/dist/stripe-elements/svg/mail-open-sharp.svg +1 -1
  937. package/dist/stripe-elements/svg/mail-open.svg +1 -1
  938. package/dist/stripe-elements/svg/mail-outline.svg +1 -1
  939. package/dist/stripe-elements/svg/mail-sharp.svg +1 -1
  940. package/dist/stripe-elements/svg/mail-unread-outline.svg +1 -1
  941. package/dist/stripe-elements/svg/mail-unread-sharp.svg +1 -1
  942. package/dist/stripe-elements/svg/mail-unread.svg +1 -1
  943. package/dist/stripe-elements/svg/mail.svg +1 -1
  944. package/dist/stripe-elements/svg/male-female-outline.svg +1 -1
  945. package/dist/stripe-elements/svg/male-female-sharp.svg +1 -1
  946. package/dist/stripe-elements/svg/male-female.svg +1 -1
  947. package/dist/stripe-elements/svg/male-outline.svg +1 -1
  948. package/dist/stripe-elements/svg/male-sharp.svg +1 -1
  949. package/dist/stripe-elements/svg/male.svg +1 -1
  950. package/dist/stripe-elements/svg/man-outline.svg +1 -1
  951. package/dist/stripe-elements/svg/man-sharp.svg +1 -1
  952. package/dist/stripe-elements/svg/man.svg +1 -1
  953. package/dist/stripe-elements/svg/map-outline.svg +1 -1
  954. package/dist/stripe-elements/svg/map-sharp.svg +1 -1
  955. package/dist/stripe-elements/svg/map.svg +1 -1
  956. package/dist/stripe-elements/svg/medal-outline.svg +1 -1
  957. package/dist/stripe-elements/svg/medal-sharp.svg +1 -1
  958. package/dist/stripe-elements/svg/medal.svg +1 -1
  959. package/dist/stripe-elements/svg/medical-outline.svg +1 -1
  960. package/dist/stripe-elements/svg/medical-sharp.svg +1 -1
  961. package/dist/stripe-elements/svg/medical.svg +1 -1
  962. package/dist/stripe-elements/svg/medkit-outline.svg +1 -1
  963. package/dist/stripe-elements/svg/medkit-sharp.svg +1 -1
  964. package/dist/stripe-elements/svg/medkit.svg +1 -1
  965. package/dist/stripe-elements/svg/megaphone-outline.svg +1 -1
  966. package/dist/stripe-elements/svg/megaphone-sharp.svg +1 -1
  967. package/dist/stripe-elements/svg/megaphone.svg +1 -1
  968. package/dist/stripe-elements/svg/menu-outline.svg +1 -1
  969. package/dist/stripe-elements/svg/menu-sharp.svg +1 -1
  970. package/dist/stripe-elements/svg/menu.svg +1 -1
  971. package/dist/stripe-elements/svg/mic-circle-outline.svg +1 -1
  972. package/dist/stripe-elements/svg/mic-circle-sharp.svg +1 -1
  973. package/dist/stripe-elements/svg/mic-circle.svg +1 -1
  974. package/dist/stripe-elements/svg/mic-off-circle-outline.svg +1 -1
  975. package/dist/stripe-elements/svg/mic-off-circle-sharp.svg +1 -1
  976. package/dist/stripe-elements/svg/mic-off-circle.svg +1 -1
  977. package/dist/stripe-elements/svg/mic-off-outline.svg +1 -1
  978. package/dist/stripe-elements/svg/mic-off-sharp.svg +1 -1
  979. package/dist/stripe-elements/svg/mic-off.svg +1 -1
  980. package/dist/stripe-elements/svg/mic-outline.svg +1 -1
  981. package/dist/stripe-elements/svg/mic-sharp.svg +1 -1
  982. package/dist/stripe-elements/svg/mic.svg +1 -1
  983. package/dist/stripe-elements/svg/moon-outline.svg +1 -1
  984. package/dist/stripe-elements/svg/moon-sharp.svg +1 -1
  985. package/dist/stripe-elements/svg/moon.svg +1 -1
  986. package/dist/stripe-elements/svg/move-outline.svg +1 -1
  987. package/dist/stripe-elements/svg/move-sharp.svg +1 -1
  988. package/dist/stripe-elements/svg/move.svg +1 -1
  989. package/dist/stripe-elements/svg/musical-note-outline.svg +1 -1
  990. package/dist/stripe-elements/svg/musical-note-sharp.svg +1 -1
  991. package/dist/stripe-elements/svg/musical-note.svg +1 -1
  992. package/dist/stripe-elements/svg/musical-notes-outline.svg +1 -1
  993. package/dist/stripe-elements/svg/musical-notes-sharp.svg +1 -1
  994. package/dist/stripe-elements/svg/musical-notes.svg +1 -1
  995. package/dist/stripe-elements/svg/navigate-circle-outline.svg +1 -1
  996. package/dist/stripe-elements/svg/navigate-circle-sharp.svg +1 -1
  997. package/dist/stripe-elements/svg/navigate-circle.svg +1 -1
  998. package/dist/stripe-elements/svg/navigate-outline.svg +1 -1
  999. package/dist/stripe-elements/svg/navigate-sharp.svg +1 -1
  1000. package/dist/stripe-elements/svg/navigate.svg +1 -1
  1001. package/dist/stripe-elements/svg/newspaper-outline.svg +1 -1
  1002. package/dist/stripe-elements/svg/newspaper-sharp.svg +1 -1
  1003. package/dist/stripe-elements/svg/newspaper.svg +1 -1
  1004. package/dist/stripe-elements/svg/notifications-circle-outline.svg +1 -1
  1005. package/dist/stripe-elements/svg/notifications-circle-sharp.svg +1 -1
  1006. package/dist/stripe-elements/svg/notifications-circle.svg +1 -1
  1007. package/dist/stripe-elements/svg/notifications-off-circle-outline.svg +1 -1
  1008. package/dist/stripe-elements/svg/notifications-off-circle-sharp.svg +1 -1
  1009. package/dist/stripe-elements/svg/notifications-off-circle.svg +1 -1
  1010. package/dist/stripe-elements/svg/notifications-off-outline.svg +1 -1
  1011. package/dist/stripe-elements/svg/notifications-off-sharp.svg +1 -1
  1012. package/dist/stripe-elements/svg/notifications-off.svg +1 -1
  1013. package/dist/stripe-elements/svg/notifications-outline.svg +1 -1
  1014. package/dist/stripe-elements/svg/notifications-sharp.svg +1 -1
  1015. package/dist/stripe-elements/svg/notifications.svg +1 -1
  1016. package/dist/stripe-elements/svg/nuclear-outline.svg +1 -1
  1017. package/dist/stripe-elements/svg/nuclear-sharp.svg +1 -1
  1018. package/dist/stripe-elements/svg/nuclear.svg +1 -1
  1019. package/dist/stripe-elements/svg/nutrition-outline.svg +1 -1
  1020. package/dist/stripe-elements/svg/nutrition-sharp.svg +1 -1
  1021. package/dist/stripe-elements/svg/nutrition.svg +1 -1
  1022. package/dist/stripe-elements/svg/open-outline.svg +1 -1
  1023. package/dist/stripe-elements/svg/open-sharp.svg +1 -1
  1024. package/dist/stripe-elements/svg/open.svg +1 -1
  1025. package/dist/stripe-elements/svg/options-outline.svg +1 -1
  1026. package/dist/stripe-elements/svg/options-sharp.svg +1 -1
  1027. package/dist/stripe-elements/svg/options.svg +1 -1
  1028. package/dist/stripe-elements/svg/paper-plane-outline.svg +1 -1
  1029. package/dist/stripe-elements/svg/paper-plane-sharp.svg +1 -1
  1030. package/dist/stripe-elements/svg/paper-plane.svg +1 -1
  1031. package/dist/stripe-elements/svg/partly-sunny-outline.svg +1 -1
  1032. package/dist/stripe-elements/svg/partly-sunny-sharp.svg +1 -1
  1033. package/dist/stripe-elements/svg/partly-sunny.svg +1 -1
  1034. package/dist/stripe-elements/svg/pause-circle-outline.svg +1 -1
  1035. package/dist/stripe-elements/svg/pause-circle-sharp.svg +1 -1
  1036. package/dist/stripe-elements/svg/pause-circle.svg +1 -1
  1037. package/dist/stripe-elements/svg/pause-outline.svg +1 -1
  1038. package/dist/stripe-elements/svg/pause-sharp.svg +1 -1
  1039. package/dist/stripe-elements/svg/pause.svg +1 -1
  1040. package/dist/stripe-elements/svg/paw-outline.svg +1 -1
  1041. package/dist/stripe-elements/svg/paw-sharp.svg +1 -1
  1042. package/dist/stripe-elements/svg/paw.svg +1 -1
  1043. package/dist/stripe-elements/svg/pencil-outline.svg +1 -1
  1044. package/dist/stripe-elements/svg/pencil-sharp.svg +1 -1
  1045. package/dist/stripe-elements/svg/pencil.svg +1 -1
  1046. package/dist/stripe-elements/svg/people-circle-outline.svg +1 -1
  1047. package/dist/stripe-elements/svg/people-circle-sharp.svg +1 -1
  1048. package/dist/stripe-elements/svg/people-circle.svg +1 -1
  1049. package/dist/stripe-elements/svg/people-outline.svg +1 -1
  1050. package/dist/stripe-elements/svg/people-sharp.svg +1 -1
  1051. package/dist/stripe-elements/svg/people.svg +1 -1
  1052. package/dist/stripe-elements/svg/person-add-outline.svg +1 -1
  1053. package/dist/stripe-elements/svg/person-add-sharp.svg +1 -1
  1054. package/dist/stripe-elements/svg/person-add.svg +1 -1
  1055. package/dist/stripe-elements/svg/person-circle-outline.svg +1 -1
  1056. package/dist/stripe-elements/svg/person-circle-sharp.svg +1 -1
  1057. package/dist/stripe-elements/svg/person-circle.svg +1 -1
  1058. package/dist/stripe-elements/svg/person-outline.svg +1 -1
  1059. package/dist/stripe-elements/svg/person-remove-outline.svg +1 -1
  1060. package/dist/stripe-elements/svg/person-remove-sharp.svg +1 -1
  1061. package/dist/stripe-elements/svg/person-remove.svg +1 -1
  1062. package/dist/stripe-elements/svg/person-sharp.svg +1 -1
  1063. package/dist/stripe-elements/svg/person.svg +1 -1
  1064. package/dist/stripe-elements/svg/phone-landscape-outline.svg +1 -1
  1065. package/dist/stripe-elements/svg/phone-landscape-sharp.svg +1 -1
  1066. package/dist/stripe-elements/svg/phone-landscape.svg +1 -1
  1067. package/dist/stripe-elements/svg/phone-portrait-outline.svg +1 -1
  1068. package/dist/stripe-elements/svg/phone-portrait-sharp.svg +1 -1
  1069. package/dist/stripe-elements/svg/phone-portrait.svg +1 -1
  1070. package/dist/stripe-elements/svg/pie-chart-outline.svg +1 -1
  1071. package/dist/stripe-elements/svg/pie-chart-sharp.svg +1 -1
  1072. package/dist/stripe-elements/svg/pie-chart.svg +1 -1
  1073. package/dist/stripe-elements/svg/pin-outline.svg +1 -1
  1074. package/dist/stripe-elements/svg/pin-sharp.svg +1 -1
  1075. package/dist/stripe-elements/svg/pin.svg +1 -1
  1076. package/dist/stripe-elements/svg/pint-outline.svg +1 -1
  1077. package/dist/stripe-elements/svg/pint-sharp.svg +1 -1
  1078. package/dist/stripe-elements/svg/pint.svg +1 -1
  1079. package/dist/stripe-elements/svg/pizza-outline.svg +1 -1
  1080. package/dist/stripe-elements/svg/pizza-sharp.svg +1 -1
  1081. package/dist/stripe-elements/svg/pizza.svg +1 -1
  1082. package/dist/stripe-elements/svg/planet-outline.svg +1 -1
  1083. package/dist/stripe-elements/svg/planet-sharp.svg +1 -1
  1084. package/dist/stripe-elements/svg/planet.svg +1 -1
  1085. package/dist/stripe-elements/svg/play-back-circle-outline.svg +1 -1
  1086. package/dist/stripe-elements/svg/play-back-circle-sharp.svg +1 -1
  1087. package/dist/stripe-elements/svg/play-back-circle.svg +1 -1
  1088. package/dist/stripe-elements/svg/play-back-outline.svg +1 -1
  1089. package/dist/stripe-elements/svg/play-back-sharp.svg +1 -1
  1090. package/dist/stripe-elements/svg/play-back.svg +1 -1
  1091. package/dist/stripe-elements/svg/play-circle-outline.svg +1 -1
  1092. package/dist/stripe-elements/svg/play-circle-sharp.svg +1 -1
  1093. package/dist/stripe-elements/svg/play-circle.svg +1 -1
  1094. package/dist/stripe-elements/svg/play-forward-circle-outline.svg +1 -1
  1095. package/dist/stripe-elements/svg/play-forward-circle-sharp.svg +1 -1
  1096. package/dist/stripe-elements/svg/play-forward-circle.svg +1 -1
  1097. package/dist/stripe-elements/svg/play-forward-outline.svg +1 -1
  1098. package/dist/stripe-elements/svg/play-forward-sharp.svg +1 -1
  1099. package/dist/stripe-elements/svg/play-forward.svg +1 -1
  1100. package/dist/stripe-elements/svg/play-outline.svg +1 -1
  1101. package/dist/stripe-elements/svg/play-sharp.svg +1 -1
  1102. package/dist/stripe-elements/svg/play-skip-back-circle-outline.svg +1 -1
  1103. package/dist/stripe-elements/svg/play-skip-back-circle-sharp.svg +1 -1
  1104. package/dist/stripe-elements/svg/play-skip-back-circle.svg +1 -1
  1105. package/dist/stripe-elements/svg/play-skip-back-outline.svg +1 -1
  1106. package/dist/stripe-elements/svg/play-skip-back-sharp.svg +1 -1
  1107. package/dist/stripe-elements/svg/play-skip-back.svg +1 -1
  1108. package/dist/stripe-elements/svg/play-skip-forward-circle-outline.svg +1 -1
  1109. package/dist/stripe-elements/svg/play-skip-forward-circle-sharp.svg +1 -1
  1110. package/dist/stripe-elements/svg/play-skip-forward-circle.svg +1 -1
  1111. package/dist/stripe-elements/svg/play-skip-forward-outline.svg +1 -1
  1112. package/dist/stripe-elements/svg/play-skip-forward-sharp.svg +1 -1
  1113. package/dist/stripe-elements/svg/play-skip-forward.svg +1 -1
  1114. package/dist/stripe-elements/svg/play.svg +1 -1
  1115. package/dist/stripe-elements/svg/podium-outline.svg +1 -1
  1116. package/dist/stripe-elements/svg/podium-sharp.svg +1 -1
  1117. package/dist/stripe-elements/svg/podium.svg +1 -1
  1118. package/dist/stripe-elements/svg/power-outline.svg +1 -1
  1119. package/dist/stripe-elements/svg/power-sharp.svg +1 -1
  1120. package/dist/stripe-elements/svg/power.svg +1 -1
  1121. package/dist/stripe-elements/svg/pricetag-outline.svg +1 -1
  1122. package/dist/stripe-elements/svg/pricetag-sharp.svg +1 -1
  1123. package/dist/stripe-elements/svg/pricetag.svg +1 -1
  1124. package/dist/stripe-elements/svg/pricetags-outline.svg +1 -1
  1125. package/dist/stripe-elements/svg/pricetags-sharp.svg +1 -1
  1126. package/dist/stripe-elements/svg/pricetags.svg +1 -1
  1127. package/dist/stripe-elements/svg/print-outline.svg +1 -1
  1128. package/dist/stripe-elements/svg/print-sharp.svg +1 -1
  1129. package/dist/stripe-elements/svg/print.svg +1 -1
  1130. package/dist/stripe-elements/svg/prism-outline.svg +1 -1
  1131. package/dist/stripe-elements/svg/prism-sharp.svg +1 -1
  1132. package/dist/stripe-elements/svg/prism.svg +1 -1
  1133. package/dist/stripe-elements/svg/pulse-outline.svg +1 -1
  1134. package/dist/stripe-elements/svg/pulse-sharp.svg +1 -1
  1135. package/dist/stripe-elements/svg/pulse.svg +1 -1
  1136. package/dist/stripe-elements/svg/push-outline.svg +1 -1
  1137. package/dist/stripe-elements/svg/push-sharp.svg +1 -1
  1138. package/dist/stripe-elements/svg/push.svg +1 -1
  1139. package/dist/stripe-elements/svg/qr-code-outline.svg +1 -1
  1140. package/dist/stripe-elements/svg/qr-code-sharp.svg +1 -1
  1141. package/dist/stripe-elements/svg/qr-code.svg +1 -1
  1142. package/dist/stripe-elements/svg/radio-button-off-outline.svg +1 -1
  1143. package/dist/stripe-elements/svg/radio-button-off-sharp.svg +1 -1
  1144. package/dist/stripe-elements/svg/radio-button-off.svg +1 -1
  1145. package/dist/stripe-elements/svg/radio-button-on-outline.svg +1 -1
  1146. package/dist/stripe-elements/svg/radio-button-on-sharp.svg +1 -1
  1147. package/dist/stripe-elements/svg/radio-button-on.svg +1 -1
  1148. package/dist/stripe-elements/svg/radio-outline.svg +1 -1
  1149. package/dist/stripe-elements/svg/radio-sharp.svg +1 -1
  1150. package/dist/stripe-elements/svg/radio.svg +1 -1
  1151. package/dist/stripe-elements/svg/rainy-outline.svg +1 -1
  1152. package/dist/stripe-elements/svg/rainy-sharp.svg +1 -1
  1153. package/dist/stripe-elements/svg/rainy.svg +1 -1
  1154. package/dist/stripe-elements/svg/reader-outline.svg +1 -1
  1155. package/dist/stripe-elements/svg/reader-sharp.svg +1 -1
  1156. package/dist/stripe-elements/svg/reader.svg +1 -1
  1157. package/dist/stripe-elements/svg/receipt-outline.svg +1 -1
  1158. package/dist/stripe-elements/svg/receipt-sharp.svg +1 -1
  1159. package/dist/stripe-elements/svg/receipt.svg +1 -1
  1160. package/dist/stripe-elements/svg/recording-outline.svg +1 -1
  1161. package/dist/stripe-elements/svg/recording-sharp.svg +1 -1
  1162. package/dist/stripe-elements/svg/recording.svg +1 -1
  1163. package/dist/stripe-elements/svg/refresh-circle-outline.svg +1 -1
  1164. package/dist/stripe-elements/svg/refresh-circle-sharp.svg +1 -1
  1165. package/dist/stripe-elements/svg/refresh-circle.svg +1 -1
  1166. package/dist/stripe-elements/svg/refresh-outline.svg +1 -1
  1167. package/dist/stripe-elements/svg/refresh-sharp.svg +1 -1
  1168. package/dist/stripe-elements/svg/refresh.svg +1 -1
  1169. package/dist/stripe-elements/svg/reload-circle-outline.svg +1 -1
  1170. package/dist/stripe-elements/svg/reload-circle-sharp.svg +1 -1
  1171. package/dist/stripe-elements/svg/reload-circle.svg +1 -1
  1172. package/dist/stripe-elements/svg/reload-outline.svg +1 -1
  1173. package/dist/stripe-elements/svg/reload-sharp.svg +1 -1
  1174. package/dist/stripe-elements/svg/reload.svg +1 -1
  1175. package/dist/stripe-elements/svg/remove-circle-outline.svg +1 -1
  1176. package/dist/stripe-elements/svg/remove-circle-sharp.svg +1 -1
  1177. package/dist/stripe-elements/svg/remove-circle.svg +1 -1
  1178. package/dist/stripe-elements/svg/remove-outline.svg +1 -1
  1179. package/dist/stripe-elements/svg/remove-sharp.svg +1 -1
  1180. package/dist/stripe-elements/svg/remove.svg +1 -1
  1181. package/dist/stripe-elements/svg/reorder-four-outline.svg +1 -1
  1182. package/dist/stripe-elements/svg/reorder-four-sharp.svg +1 -1
  1183. package/dist/stripe-elements/svg/reorder-four.svg +1 -1
  1184. package/dist/stripe-elements/svg/reorder-three-outline.svg +1 -1
  1185. package/dist/stripe-elements/svg/reorder-three-sharp.svg +1 -1
  1186. package/dist/stripe-elements/svg/reorder-three.svg +1 -1
  1187. package/dist/stripe-elements/svg/reorder-two-outline.svg +1 -1
  1188. package/dist/stripe-elements/svg/reorder-two-sharp.svg +1 -1
  1189. package/dist/stripe-elements/svg/reorder-two.svg +1 -1
  1190. package/dist/stripe-elements/svg/repeat-outline.svg +1 -1
  1191. package/dist/stripe-elements/svg/repeat-sharp.svg +1 -1
  1192. package/dist/stripe-elements/svg/repeat.svg +1 -1
  1193. package/dist/stripe-elements/svg/resize-outline.svg +1 -1
  1194. package/dist/stripe-elements/svg/resize-sharp.svg +1 -1
  1195. package/dist/stripe-elements/svg/resize.svg +1 -1
  1196. package/dist/stripe-elements/svg/restaurant-outline.svg +1 -1
  1197. package/dist/stripe-elements/svg/restaurant-sharp.svg +1 -1
  1198. package/dist/stripe-elements/svg/restaurant.svg +1 -1
  1199. package/dist/stripe-elements/svg/return-down-back-outline.svg +1 -1
  1200. package/dist/stripe-elements/svg/return-down-back-sharp.svg +1 -1
  1201. package/dist/stripe-elements/svg/return-down-back.svg +1 -1
  1202. package/dist/stripe-elements/svg/return-down-forward-outline.svg +1 -1
  1203. package/dist/stripe-elements/svg/return-down-forward-sharp.svg +1 -1
  1204. package/dist/stripe-elements/svg/return-down-forward.svg +1 -1
  1205. package/dist/stripe-elements/svg/return-up-back-outline.svg +1 -1
  1206. package/dist/stripe-elements/svg/return-up-back-sharp.svg +1 -1
  1207. package/dist/stripe-elements/svg/return-up-back.svg +1 -1
  1208. package/dist/stripe-elements/svg/return-up-forward-outline.svg +1 -1
  1209. package/dist/stripe-elements/svg/return-up-forward-sharp.svg +1 -1
  1210. package/dist/stripe-elements/svg/return-up-forward.svg +1 -1
  1211. package/dist/stripe-elements/svg/ribbon-outline.svg +1 -1
  1212. package/dist/stripe-elements/svg/ribbon-sharp.svg +1 -1
  1213. package/dist/stripe-elements/svg/ribbon.svg +1 -1
  1214. package/dist/stripe-elements/svg/rocket-outline.svg +1 -1
  1215. package/dist/stripe-elements/svg/rocket-sharp.svg +1 -1
  1216. package/dist/stripe-elements/svg/rocket.svg +1 -1
  1217. package/dist/stripe-elements/svg/rose-outline.svg +1 -1
  1218. package/dist/stripe-elements/svg/rose-sharp.svg +1 -1
  1219. package/dist/stripe-elements/svg/rose.svg +1 -1
  1220. package/dist/stripe-elements/svg/sad-outline.svg +1 -1
  1221. package/dist/stripe-elements/svg/sad-sharp.svg +1 -1
  1222. package/dist/stripe-elements/svg/sad.svg +1 -1
  1223. package/dist/stripe-elements/svg/save-outline.svg +1 -1
  1224. package/dist/stripe-elements/svg/save-sharp.svg +1 -1
  1225. package/dist/stripe-elements/svg/save.svg +1 -1
  1226. package/dist/stripe-elements/svg/scale-outline.svg +1 -1
  1227. package/dist/stripe-elements/svg/scale-sharp.svg +1 -1
  1228. package/dist/stripe-elements/svg/scale.svg +1 -1
  1229. package/dist/stripe-elements/svg/scan-circle-outline.svg +1 -1
  1230. package/dist/stripe-elements/svg/scan-circle-sharp.svg +1 -1
  1231. package/dist/stripe-elements/svg/scan-circle.svg +1 -1
  1232. package/dist/stripe-elements/svg/scan-outline.svg +1 -1
  1233. package/dist/stripe-elements/svg/scan-sharp.svg +1 -1
  1234. package/dist/stripe-elements/svg/scan.svg +1 -1
  1235. package/dist/stripe-elements/svg/school-outline.svg +1 -1
  1236. package/dist/stripe-elements/svg/school-sharp.svg +1 -1
  1237. package/dist/stripe-elements/svg/school.svg +1 -1
  1238. package/dist/stripe-elements/svg/search-circle-outline.svg +1 -1
  1239. package/dist/stripe-elements/svg/search-circle-sharp.svg +1 -1
  1240. package/dist/stripe-elements/svg/search-circle.svg +1 -1
  1241. package/dist/stripe-elements/svg/search-outline.svg +1 -1
  1242. package/dist/stripe-elements/svg/search-sharp.svg +1 -1
  1243. package/dist/stripe-elements/svg/search.svg +1 -1
  1244. package/dist/stripe-elements/svg/send-outline.svg +1 -1
  1245. package/dist/stripe-elements/svg/send-sharp.svg +1 -1
  1246. package/dist/stripe-elements/svg/send.svg +1 -1
  1247. package/dist/stripe-elements/svg/server-outline.svg +1 -1
  1248. package/dist/stripe-elements/svg/server-sharp.svg +1 -1
  1249. package/dist/stripe-elements/svg/server.svg +1 -1
  1250. package/dist/stripe-elements/svg/settings-outline.svg +1 -1
  1251. package/dist/stripe-elements/svg/settings-sharp.svg +1 -1
  1252. package/dist/stripe-elements/svg/settings.svg +1 -1
  1253. package/dist/stripe-elements/svg/shapes-outline.svg +1 -1
  1254. package/dist/stripe-elements/svg/shapes-sharp.svg +1 -1
  1255. package/dist/stripe-elements/svg/shapes.svg +1 -1
  1256. package/dist/stripe-elements/svg/share-outline.svg +1 -1
  1257. package/dist/stripe-elements/svg/share-sharp.svg +1 -1
  1258. package/dist/stripe-elements/svg/share-social-outline.svg +1 -1
  1259. package/dist/stripe-elements/svg/share-social-sharp.svg +1 -1
  1260. package/dist/stripe-elements/svg/share-social.svg +1 -1
  1261. package/dist/stripe-elements/svg/share.svg +1 -1
  1262. package/dist/stripe-elements/svg/shield-checkmark-outline.svg +1 -1
  1263. package/dist/stripe-elements/svg/shield-checkmark-sharp.svg +1 -1
  1264. package/dist/stripe-elements/svg/shield-checkmark.svg +1 -1
  1265. package/dist/stripe-elements/svg/shield-half-outline.svg +1 -1
  1266. package/dist/stripe-elements/svg/shield-half-sharp.svg +1 -1
  1267. package/dist/stripe-elements/svg/shield-half.svg +1 -1
  1268. package/dist/stripe-elements/svg/shield-outline.svg +1 -1
  1269. package/dist/stripe-elements/svg/shield-sharp.svg +1 -1
  1270. package/dist/stripe-elements/svg/shield.svg +1 -1
  1271. package/dist/stripe-elements/svg/shirt-outline.svg +1 -1
  1272. package/dist/stripe-elements/svg/shirt-sharp.svg +1 -1
  1273. package/dist/stripe-elements/svg/shirt.svg +1 -1
  1274. package/dist/stripe-elements/svg/shuffle-outline.svg +1 -1
  1275. package/dist/stripe-elements/svg/shuffle-sharp.svg +1 -1
  1276. package/dist/stripe-elements/svg/shuffle.svg +1 -1
  1277. package/dist/stripe-elements/svg/skull-outline.svg +1 -1
  1278. package/dist/stripe-elements/svg/skull-sharp.svg +1 -1
  1279. package/dist/stripe-elements/svg/skull.svg +1 -1
  1280. package/dist/stripe-elements/svg/snow-outline.svg +1 -1
  1281. package/dist/stripe-elements/svg/snow-sharp.svg +1 -1
  1282. package/dist/stripe-elements/svg/snow.svg +1 -1
  1283. package/dist/stripe-elements/svg/sparkles-outline.svg +1 -1
  1284. package/dist/stripe-elements/svg/sparkles-sharp.svg +1 -1
  1285. package/dist/stripe-elements/svg/sparkles.svg +1 -1
  1286. package/dist/stripe-elements/svg/speedometer-outline.svg +1 -1
  1287. package/dist/stripe-elements/svg/speedometer-sharp.svg +1 -1
  1288. package/dist/stripe-elements/svg/speedometer.svg +1 -1
  1289. package/dist/stripe-elements/svg/square-outline.svg +1 -1
  1290. package/dist/stripe-elements/svg/square-sharp.svg +1 -1
  1291. package/dist/stripe-elements/svg/square.svg +1 -1
  1292. package/dist/stripe-elements/svg/star-half-outline.svg +1 -1
  1293. package/dist/stripe-elements/svg/star-half-sharp.svg +1 -1
  1294. package/dist/stripe-elements/svg/star-half.svg +1 -1
  1295. package/dist/stripe-elements/svg/star-outline.svg +1 -1
  1296. package/dist/stripe-elements/svg/star-sharp.svg +1 -1
  1297. package/dist/stripe-elements/svg/star.svg +1 -1
  1298. package/dist/stripe-elements/svg/stats-chart-outline.svg +1 -1
  1299. package/dist/stripe-elements/svg/stats-chart-sharp.svg +1 -1
  1300. package/dist/stripe-elements/svg/stats-chart.svg +1 -1
  1301. package/dist/stripe-elements/svg/stop-circle-outline.svg +1 -1
  1302. package/dist/stripe-elements/svg/stop-circle-sharp.svg +1 -1
  1303. package/dist/stripe-elements/svg/stop-circle.svg +1 -1
  1304. package/dist/stripe-elements/svg/stop-outline.svg +1 -1
  1305. package/dist/stripe-elements/svg/stop-sharp.svg +1 -1
  1306. package/dist/stripe-elements/svg/stop.svg +1 -1
  1307. package/dist/stripe-elements/svg/stopwatch-outline.svg +1 -1
  1308. package/dist/stripe-elements/svg/stopwatch-sharp.svg +1 -1
  1309. package/dist/stripe-elements/svg/stopwatch.svg +1 -1
  1310. package/dist/stripe-elements/svg/storefront-outline.svg +1 -1
  1311. package/dist/stripe-elements/svg/storefront-sharp.svg +1 -1
  1312. package/dist/stripe-elements/svg/storefront.svg +1 -1
  1313. package/dist/stripe-elements/svg/subway-outline.svg +1 -1
  1314. package/dist/stripe-elements/svg/subway-sharp.svg +1 -1
  1315. package/dist/stripe-elements/svg/subway.svg +1 -1
  1316. package/dist/stripe-elements/svg/sunny-outline.svg +1 -1
  1317. package/dist/stripe-elements/svg/sunny-sharp.svg +1 -1
  1318. package/dist/stripe-elements/svg/sunny.svg +1 -1
  1319. package/dist/stripe-elements/svg/swap-horizontal-outline.svg +1 -1
  1320. package/dist/stripe-elements/svg/swap-horizontal-sharp.svg +1 -1
  1321. package/dist/stripe-elements/svg/swap-horizontal.svg +1 -1
  1322. package/dist/stripe-elements/svg/swap-vertical-outline.svg +1 -1
  1323. package/dist/stripe-elements/svg/swap-vertical-sharp.svg +1 -1
  1324. package/dist/stripe-elements/svg/swap-vertical.svg +1 -1
  1325. package/dist/stripe-elements/svg/sync-circle-outline.svg +1 -1
  1326. package/dist/stripe-elements/svg/sync-circle-sharp.svg +1 -1
  1327. package/dist/stripe-elements/svg/sync-circle.svg +1 -1
  1328. package/dist/stripe-elements/svg/sync-outline.svg +1 -1
  1329. package/dist/stripe-elements/svg/sync-sharp.svg +1 -1
  1330. package/dist/stripe-elements/svg/sync.svg +1 -1
  1331. package/dist/stripe-elements/svg/tablet-landscape-outline.svg +1 -1
  1332. package/dist/stripe-elements/svg/tablet-landscape-sharp.svg +1 -1
  1333. package/dist/stripe-elements/svg/tablet-landscape.svg +1 -1
  1334. package/dist/stripe-elements/svg/tablet-portrait-outline.svg +1 -1
  1335. package/dist/stripe-elements/svg/tablet-portrait-sharp.svg +1 -1
  1336. package/dist/stripe-elements/svg/tablet-portrait.svg +1 -1
  1337. package/dist/stripe-elements/svg/telescope-outline.svg +1 -1
  1338. package/dist/stripe-elements/svg/telescope-sharp.svg +1 -1
  1339. package/dist/stripe-elements/svg/telescope.svg +1 -1
  1340. package/dist/stripe-elements/svg/tennisball-outline.svg +1 -1
  1341. package/dist/stripe-elements/svg/tennisball-sharp.svg +1 -1
  1342. package/dist/stripe-elements/svg/tennisball.svg +1 -1
  1343. package/dist/stripe-elements/svg/terminal-outline.svg +1 -1
  1344. package/dist/stripe-elements/svg/terminal-sharp.svg +1 -1
  1345. package/dist/stripe-elements/svg/terminal.svg +1 -1
  1346. package/dist/stripe-elements/svg/text-outline.svg +1 -1
  1347. package/dist/stripe-elements/svg/text-sharp.svg +1 -1
  1348. package/dist/stripe-elements/svg/text.svg +1 -1
  1349. package/dist/stripe-elements/svg/thermometer-outline.svg +1 -1
  1350. package/dist/stripe-elements/svg/thermometer-sharp.svg +1 -1
  1351. package/dist/stripe-elements/svg/thermometer.svg +1 -1
  1352. package/dist/stripe-elements/svg/thumbs-down-outline.svg +1 -1
  1353. package/dist/stripe-elements/svg/thumbs-down-sharp.svg +1 -1
  1354. package/dist/stripe-elements/svg/thumbs-down.svg +1 -1
  1355. package/dist/stripe-elements/svg/thumbs-up-outline.svg +1 -1
  1356. package/dist/stripe-elements/svg/thumbs-up-sharp.svg +1 -1
  1357. package/dist/stripe-elements/svg/thumbs-up.svg +1 -1
  1358. package/dist/stripe-elements/svg/thunderstorm-outline.svg +1 -1
  1359. package/dist/stripe-elements/svg/thunderstorm-sharp.svg +1 -1
  1360. package/dist/stripe-elements/svg/thunderstorm.svg +1 -1
  1361. package/dist/stripe-elements/svg/ticket-outline.svg +1 -1
  1362. package/dist/stripe-elements/svg/ticket-sharp.svg +1 -1
  1363. package/dist/stripe-elements/svg/ticket.svg +1 -1
  1364. package/dist/stripe-elements/svg/time-outline.svg +1 -1
  1365. package/dist/stripe-elements/svg/time-sharp.svg +1 -1
  1366. package/dist/stripe-elements/svg/time.svg +1 -1
  1367. package/dist/stripe-elements/svg/timer-outline.svg +1 -1
  1368. package/dist/stripe-elements/svg/timer-sharp.svg +1 -1
  1369. package/dist/stripe-elements/svg/timer.svg +1 -1
  1370. package/dist/stripe-elements/svg/today-outline.svg +1 -1
  1371. package/dist/stripe-elements/svg/today-sharp.svg +1 -1
  1372. package/dist/stripe-elements/svg/today.svg +1 -1
  1373. package/dist/stripe-elements/svg/toggle-outline.svg +1 -1
  1374. package/dist/stripe-elements/svg/toggle-sharp.svg +1 -1
  1375. package/dist/stripe-elements/svg/toggle.svg +1 -1
  1376. package/dist/stripe-elements/svg/trail-sign-outline.svg +1 -1
  1377. package/dist/stripe-elements/svg/trail-sign-sharp.svg +1 -1
  1378. package/dist/stripe-elements/svg/trail-sign.svg +1 -1
  1379. package/dist/stripe-elements/svg/train-outline.svg +1 -1
  1380. package/dist/stripe-elements/svg/train-sharp.svg +1 -1
  1381. package/dist/stripe-elements/svg/train.svg +1 -1
  1382. package/dist/stripe-elements/svg/transgender-outline.svg +1 -1
  1383. package/dist/stripe-elements/svg/transgender-sharp.svg +1 -1
  1384. package/dist/stripe-elements/svg/transgender.svg +1 -1
  1385. package/dist/stripe-elements/svg/trash-bin-outline.svg +1 -1
  1386. package/dist/stripe-elements/svg/trash-bin-sharp.svg +1 -1
  1387. package/dist/stripe-elements/svg/trash-bin.svg +1 -1
  1388. package/dist/stripe-elements/svg/trash-outline.svg +1 -1
  1389. package/dist/stripe-elements/svg/trash-sharp.svg +1 -1
  1390. package/dist/stripe-elements/svg/trash.svg +1 -1
  1391. package/dist/stripe-elements/svg/trending-down-outline.svg +1 -1
  1392. package/dist/stripe-elements/svg/trending-down-sharp.svg +1 -1
  1393. package/dist/stripe-elements/svg/trending-down.svg +1 -1
  1394. package/dist/stripe-elements/svg/trending-up-outline.svg +1 -1
  1395. package/dist/stripe-elements/svg/trending-up-sharp.svg +1 -1
  1396. package/dist/stripe-elements/svg/trending-up.svg +1 -1
  1397. package/dist/stripe-elements/svg/triangle-outline.svg +1 -1
  1398. package/dist/stripe-elements/svg/triangle-sharp.svg +1 -1
  1399. package/dist/stripe-elements/svg/triangle.svg +1 -1
  1400. package/dist/stripe-elements/svg/trophy-outline.svg +1 -1
  1401. package/dist/stripe-elements/svg/trophy-sharp.svg +1 -1
  1402. package/dist/stripe-elements/svg/trophy.svg +1 -1
  1403. package/dist/stripe-elements/svg/tv-outline.svg +1 -1
  1404. package/dist/stripe-elements/svg/tv-sharp.svg +1 -1
  1405. package/dist/stripe-elements/svg/tv.svg +1 -1
  1406. package/dist/stripe-elements/svg/umbrella-outline.svg +1 -1
  1407. package/dist/stripe-elements/svg/umbrella-sharp.svg +1 -1
  1408. package/dist/stripe-elements/svg/umbrella.svg +1 -1
  1409. package/dist/stripe-elements/svg/unlink-outline.svg +1 -1
  1410. package/dist/stripe-elements/svg/unlink-sharp.svg +1 -1
  1411. package/dist/stripe-elements/svg/unlink.svg +1 -1
  1412. package/dist/stripe-elements/svg/videocam-off-outline.svg +1 -1
  1413. package/dist/stripe-elements/svg/videocam-off-sharp.svg +1 -1
  1414. package/dist/stripe-elements/svg/videocam-off.svg +1 -1
  1415. package/dist/stripe-elements/svg/videocam-outline.svg +1 -1
  1416. package/dist/stripe-elements/svg/videocam-sharp.svg +1 -1
  1417. package/dist/stripe-elements/svg/videocam.svg +1 -1
  1418. package/dist/stripe-elements/svg/volume-high-outline.svg +1 -1
  1419. package/dist/stripe-elements/svg/volume-high-sharp.svg +1 -1
  1420. package/dist/stripe-elements/svg/volume-high.svg +1 -1
  1421. package/dist/stripe-elements/svg/volume-low-outline.svg +1 -1
  1422. package/dist/stripe-elements/svg/volume-low-sharp.svg +1 -1
  1423. package/dist/stripe-elements/svg/volume-low.svg +1 -1
  1424. package/dist/stripe-elements/svg/volume-medium-outline.svg +1 -1
  1425. package/dist/stripe-elements/svg/volume-medium-sharp.svg +1 -1
  1426. package/dist/stripe-elements/svg/volume-medium.svg +1 -1
  1427. package/dist/stripe-elements/svg/volume-mute-outline.svg +1 -1
  1428. package/dist/stripe-elements/svg/volume-mute-sharp.svg +1 -1
  1429. package/dist/stripe-elements/svg/volume-mute.svg +1 -1
  1430. package/dist/stripe-elements/svg/volume-off-outline.svg +1 -1
  1431. package/dist/stripe-elements/svg/volume-off-sharp.svg +1 -1
  1432. package/dist/stripe-elements/svg/volume-off.svg +1 -1
  1433. package/dist/stripe-elements/svg/walk-outline.svg +1 -1
  1434. package/dist/stripe-elements/svg/walk-sharp.svg +1 -1
  1435. package/dist/stripe-elements/svg/walk.svg +1 -1
  1436. package/dist/stripe-elements/svg/wallet-outline.svg +1 -1
  1437. package/dist/stripe-elements/svg/wallet-sharp.svg +1 -1
  1438. package/dist/stripe-elements/svg/wallet.svg +1 -1
  1439. package/dist/stripe-elements/svg/warning-outline.svg +1 -1
  1440. package/dist/stripe-elements/svg/warning-sharp.svg +1 -1
  1441. package/dist/stripe-elements/svg/warning.svg +1 -1
  1442. package/dist/stripe-elements/svg/watch-outline.svg +1 -1
  1443. package/dist/stripe-elements/svg/watch-sharp.svg +1 -1
  1444. package/dist/stripe-elements/svg/watch.svg +1 -1
  1445. package/dist/stripe-elements/svg/water-outline.svg +1 -1
  1446. package/dist/stripe-elements/svg/water-sharp.svg +1 -1
  1447. package/dist/stripe-elements/svg/water.svg +1 -1
  1448. package/dist/stripe-elements/svg/wifi-outline.svg +1 -1
  1449. package/dist/stripe-elements/svg/wifi-sharp.svg +1 -1
  1450. package/dist/stripe-elements/svg/wifi.svg +1 -1
  1451. package/dist/stripe-elements/svg/wine-outline.svg +1 -1
  1452. package/dist/stripe-elements/svg/wine-sharp.svg +1 -1
  1453. package/dist/stripe-elements/svg/wine.svg +1 -1
  1454. package/dist/stripe-elements/svg/woman-outline.svg +1 -1
  1455. package/dist/stripe-elements/svg/woman-sharp.svg +1 -1
  1456. package/dist/stripe-elements/svg/woman.svg +1 -1
  1457. package/dist/types/components.d.ts +3 -0
  1458. package/dist/types/interfaces.d.ts +12 -12
  1459. package/dist/types/stencil-public-runtime.d.ts +92 -19
  1460. package/dist/types/utils/platform.d.ts +1 -1
  1461. package/loader/index.d.ts +9 -0
  1462. package/loader/package.json +1 -0
  1463. package/package.json +24 -24
  1464. package/dist/custom-elements/index.d.ts +0 -63
  1465. package/dist/stripe-elements/p-3922cc8d.js +0 -2
  1466. package/dist/stripe-elements/p-50848f78.entry.js +0 -1
  1467. package/dist/stripe-elements/p-56a89bc1.js +0 -1
  1468. package/dist/stripe-elements/p-8e1243b3.entry.js +0 -1
  1469. package/dist/stripe-elements/p-9232a32e.entry.js +0 -1
  1470. package/dist/stripe-elements/p-cdf60a81.entry.js +0 -1
@@ -1,5 +1,13 @@
1
1
  const NAMESPACE = 'stripe-elements';
2
2
 
3
+ /**
4
+ * Virtual DOM patching algorithm based on Snabbdom by
5
+ * Simon Friis Vindum (@paldepind)
6
+ * Licensed under the MIT License
7
+ * https://github.com/snabbdom/snabbdom/blob/master/LICENSE
8
+ *
9
+ * Modified for Stencil's renderer and slot projection
10
+ */
3
11
  let scopeId;
4
12
  let contentRef;
5
13
  let hostTagName;
@@ -8,29 +16,10 @@ let checkSlotFallbackVisibility = false;
8
16
  let checkSlotRelocate = false;
9
17
  let isSvgMode = false;
10
18
  let queuePending = false;
11
- const win = typeof window !== 'undefined' ? window : {};
12
- const doc = win.document || { head: {} };
13
- const plt = {
14
- $flags$: 0,
15
- $resourcesUrl$: '',
16
- jmp: (h) => h(),
17
- raf: (h) => requestAnimationFrame(h),
18
- ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
19
- rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
20
- ce: (eventName, opts) => new CustomEvent(eventName, opts),
19
+ const getAssetPath = (path) => {
20
+ const assetUrl = new URL(path, plt.$resourcesUrl$);
21
+ return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
21
22
  };
22
- const promiseResolve = (v) => Promise.resolve(v);
23
- const supportsConstructibleStylesheets = /*@__PURE__*/ (() => {
24
- try {
25
- new CSSStyleSheet();
26
- return typeof new CSSStyleSheet().replace === 'function';
27
- }
28
- catch (e) { }
29
- return false;
30
- })()
31
- ;
32
- const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
33
- const XLINK_NS = 'http://www.w3.org/1999/xlink';
34
23
  const createTime = (fnName, tagName = '') => {
35
24
  {
36
25
  return () => {
@@ -45,71 +34,8 @@ const uniqueTime = (key, measureText) => {
45
34
  };
46
35
  }
47
36
  };
48
- const rootAppliedStyles = new WeakMap();
49
- const registerStyle = (scopeId, cssText, allowCS) => {
50
- let style = styles.get(scopeId);
51
- if (supportsConstructibleStylesheets && allowCS) {
52
- style = (style || new CSSStyleSheet());
53
- style.replace(cssText);
54
- }
55
- else {
56
- style = cssText;
57
- }
58
- styles.set(scopeId, style);
59
- };
60
- const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
61
- let scopeId = getScopeId(cmpMeta);
62
- const style = styles.get(scopeId);
63
- // if an element is NOT connected then getRootNode() will return the wrong root node
64
- // so the fallback is to always use the document for the root node in those cases
65
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
66
- if (style) {
67
- if (typeof style === 'string') {
68
- styleContainerNode = styleContainerNode.head || styleContainerNode;
69
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
70
- let styleElm;
71
- if (!appliedStyles) {
72
- rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
73
- }
74
- if (!appliedStyles.has(scopeId)) {
75
- {
76
- {
77
- styleElm = doc.createElement('style');
78
- styleElm.innerHTML = style;
79
- }
80
- styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
81
- }
82
- if (appliedStyles) {
83
- appliedStyles.add(scopeId);
84
- }
85
- }
86
- }
87
- else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
88
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
89
- }
90
- }
91
- return scopeId;
92
- };
93
- const attachStyles = (hostRef) => {
94
- const cmpMeta = hostRef.$cmpMeta$;
95
- const elm = hostRef.$hostElement$;
96
- const flags = cmpMeta.$flags$;
97
- const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
98
- const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
99
- if (flags & 10 /* needsScopedEncapsulation */) {
100
- // only required when we're NOT using native shadow dom (slot)
101
- // or this browser doesn't support native shadow dom
102
- // and this host element was NOT created with SSR
103
- // let's pick out the inner content for slot projection
104
- // create a node to represent where the original
105
- // content was first placed, which is useful later on
106
- // DOM WRITE!!
107
- elm['s-sc'] = scopeId;
108
- elm.classList.add(scopeId + '-h');
109
- }
110
- endAttachStyles();
111
- };
112
- const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
37
+ const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
38
+ const XLINK_NS = 'http://www.w3.org/1999/xlink';
113
39
  /**
114
40
  * Default style mode id
115
41
  */
@@ -119,11 +45,30 @@ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
119
45
  */
120
46
  const EMPTY_OBJ = {};
121
47
  const isDef = (v) => v != null;
48
+ /**
49
+ * Check whether a value is a 'complex type', defined here as an object or a
50
+ * function.
51
+ *
52
+ * @param o the value to check
53
+ * @returns whether it's a complex type or not
54
+ */
122
55
  const isComplexType = (o) => {
123
56
  // https://jsperf.com/typeof-fn-object/5
124
57
  o = typeof o;
125
58
  return o === 'object' || o === 'function';
126
59
  };
60
+ /**
61
+ * Helper method for querying a `meta` tag that contains a nonce value
62
+ * out of a DOM's head.
63
+ *
64
+ * @param doc The DOM containing the `head` to query against
65
+ * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
66
+ * exists or the tag has no content.
67
+ */
68
+ function queryNonceMetaTagContent(doc) {
69
+ var _a, _b, _c;
70
+ return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;
71
+ }
127
72
  /**
128
73
  * Production h() function based on Preact by
129
74
  * Jason Miller (@developit)
@@ -132,7 +77,6 @@ const isComplexType = (o) => {
132
77
  *
133
78
  * Modified for Stencil's compiler and vdom
134
79
  */
135
- // const stack: any[] = [];
136
80
  // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
137
81
  // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
138
82
  const h = (nodeName, vnodeData, ...children) => {
@@ -198,6 +142,14 @@ const h = (nodeName, vnodeData, ...children) => {
198
142
  }
199
143
  return vnode;
200
144
  };
145
+ /**
146
+ * A utility function for creating a virtual DOM node from a tag and some
147
+ * possible text content.
148
+ *
149
+ * @param tag the tag for this element
150
+ * @param text possible text content for the node
151
+ * @returns a newly-minted virtual DOM node
152
+ */
201
153
  const newVNode = (tag, text) => {
202
154
  const vnode = {
203
155
  $flags$: 0,
@@ -218,7 +170,160 @@ const newVNode = (tag, text) => {
218
170
  return vnode;
219
171
  };
220
172
  const Host = {};
173
+ /**
174
+ * Check whether a given node is a Host node or not
175
+ *
176
+ * @param node the virtual DOM node to check
177
+ * @returns whether it's a Host node or not
178
+ */
221
179
  const isHost = (node) => node && node.$tag$ === Host;
180
+ /**
181
+ * Parse a new property value for a given property type.
182
+ *
183
+ * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
184
+ * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
185
+ * 1. `any`, the type given to `propValue` in the function signature
186
+ * 2. the type stored from `propType`.
187
+ *
188
+ * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
189
+ *
190
+ * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
191
+ * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
192
+ * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
193
+ * ```tsx
194
+ * <my-cmp prop-val={0}></my-cmp>
195
+ * ```
196
+ *
197
+ * HTML prop values on the other hand, will always a string
198
+ *
199
+ * @param propValue the new value to coerce to some type
200
+ * @param propType the type of the prop, expressed as a binary number
201
+ * @returns the parsed/coerced value
202
+ */
203
+ const parsePropertyValue = (propValue, propType) => {
204
+ // ensure this value is of the correct prop type
205
+ if (propValue != null && !isComplexType(propValue)) {
206
+ if (propType & 4 /* MEMBER_FLAGS.Boolean */) {
207
+ // per the HTML spec, any string value means it is a boolean true value
208
+ // but we'll cheat here and say that the string "false" is the boolean false
209
+ return propValue === 'false' ? false : propValue === '' || !!propValue;
210
+ }
211
+ if (propType & 1 /* MEMBER_FLAGS.String */) {
212
+ // could have been passed as a number or boolean
213
+ // but we still want it as a string
214
+ return String(propValue);
215
+ }
216
+ // redundant return here for better minification
217
+ return propValue;
218
+ }
219
+ // not sure exactly what type we want
220
+ // so no need to change to a different type
221
+ return propValue;
222
+ };
223
+ const getElement = (ref) => (getHostRef(ref).$hostElement$ );
224
+ const createEvent = (ref, name, flags) => {
225
+ const elm = getElement(ref);
226
+ return {
227
+ emit: (detail) => {
228
+ return emitEvent(elm, name, {
229
+ bubbles: !!(flags & 4 /* EVENT_FLAGS.Bubbles */),
230
+ composed: !!(flags & 2 /* EVENT_FLAGS.Composed */),
231
+ cancelable: !!(flags & 1 /* EVENT_FLAGS.Cancellable */),
232
+ detail,
233
+ });
234
+ },
235
+ };
236
+ };
237
+ /**
238
+ * Helper function to create & dispatch a custom Event on a provided target
239
+ * @param elm the target of the Event
240
+ * @param name the name to give the custom Event
241
+ * @param opts options for configuring a custom Event
242
+ * @returns the custom Event
243
+ */
244
+ const emitEvent = (elm, name, opts) => {
245
+ const ev = plt.ce(name, opts);
246
+ elm.dispatchEvent(ev);
247
+ return ev;
248
+ };
249
+ const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
250
+ const registerStyle = (scopeId, cssText, allowCS) => {
251
+ let style = styles.get(scopeId);
252
+ if (supportsConstructableStylesheets && allowCS) {
253
+ style = (style || new CSSStyleSheet());
254
+ if (typeof style === 'string') {
255
+ style = cssText;
256
+ }
257
+ else {
258
+ style.replaceSync(cssText);
259
+ }
260
+ }
261
+ else {
262
+ style = cssText;
263
+ }
264
+ styles.set(scopeId, style);
265
+ };
266
+ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
267
+ var _a;
268
+ let scopeId = getScopeId(cmpMeta);
269
+ const style = styles.get(scopeId);
270
+ // if an element is NOT connected then getRootNode() will return the wrong root node
271
+ // so the fallback is to always use the document for the root node in those cases
272
+ styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
273
+ if (style) {
274
+ if (typeof style === 'string') {
275
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
276
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
277
+ let styleElm;
278
+ if (!appliedStyles) {
279
+ rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
280
+ }
281
+ if (!appliedStyles.has(scopeId)) {
282
+ {
283
+ // TODO(STENCIL-659): Remove code implementing the CSS variable shim
284
+ {
285
+ styleElm = doc.createElement('style');
286
+ styleElm.innerHTML = style;
287
+ }
288
+ // Apply CSP nonce to the style tag if it exists
289
+ const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
290
+ if (nonce != null) {
291
+ styleElm.setAttribute('nonce', nonce);
292
+ }
293
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
294
+ }
295
+ if (appliedStyles) {
296
+ appliedStyles.add(scopeId);
297
+ }
298
+ }
299
+ }
300
+ else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
301
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
302
+ }
303
+ }
304
+ return scopeId;
305
+ };
306
+ const attachStyles = (hostRef) => {
307
+ const cmpMeta = hostRef.$cmpMeta$;
308
+ const elm = hostRef.$hostElement$;
309
+ const flags = cmpMeta.$flags$;
310
+ const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
311
+ const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
312
+ // TODO(STENCIL-662): Remove code related to deprecated shadowDomShim field
313
+ if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
314
+ // only required when we're NOT using native shadow dom (slot)
315
+ // or this browser doesn't support native shadow dom
316
+ // and this host element was NOT created with SSR
317
+ // let's pick out the inner content for slot projection
318
+ // create a node to represent where the original
319
+ // content was first placed, which is useful later on
320
+ // DOM WRITE!!
321
+ elm['s-sc'] = scopeId;
322
+ elm.classList.add(scopeId + '-h');
323
+ }
324
+ endAttachStyles();
325
+ };
326
+ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
222
327
  /**
223
328
  * Production setAccessor() function based on Preact by
224
329
  * Jason Miller (@developit)
@@ -355,7 +460,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
355
460
  }
356
461
  }
357
462
  }
358
- else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
463
+ else if ((!isProp || flags & 4 /* VNODE_FLAGS.isHost */ || isSvg) && !isComplex) {
359
464
  newValue = newValue === true ? '' : newValue;
360
465
  if (xlink) {
361
466
  elm.setAttributeNS(XLINK_NS, memberName, newValue);
@@ -373,7 +478,7 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
373
478
  // if the element passed in is a shadow root, which is a document fragment
374
479
  // then we want to be adding attrs/props to the shadow root's "host" element
375
480
  // if it's not a shadow root, then we add attrs/props to the same element
376
- const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host
481
+ const elm = newVnode.$elm$.nodeType === 11 /* NODE_TYPE.DocumentFragment */ && newVnode.$elm$.host
377
482
  ? newVnode.$elm$.host
378
483
  : newVnode.$elm$;
379
484
  const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
@@ -391,6 +496,16 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
391
496
  setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
392
497
  }
393
498
  };
499
+ /**
500
+ * Create a DOM Node corresponding to one of the children of a given VNode.
501
+ *
502
+ * @param oldParentVNode the parent VNode from the previous render
503
+ * @param newParentVNode the parent VNode from the current render
504
+ * @param childIndex the index of the VNode, in the _new_ parent node's
505
+ * children, for which we will create a new DOM node
506
+ * @param parentElm the parent DOM node which our new node will be a child of
507
+ * @returns the newly created node
508
+ */
394
509
  const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
395
510
  // tslint:disable-next-line: prefer-const
396
511
  const newVNode = newParentVNode.$children$[childIndex];
@@ -408,23 +523,23 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
408
523
  }
409
524
  newVNode.$flags$ |= newVNode.$children$
410
525
  ? // slot element has fallback content
411
- 2 /* isSlotFallback */
526
+ 2 /* VNODE_FLAGS.isSlotFallback */
412
527
  : // slot element does not have fallback content
413
- 1 /* isSlotReference */;
528
+ 1 /* VNODE_FLAGS.isSlotReference */;
414
529
  }
415
530
  }
416
531
  if (newVNode.$text$ !== null) {
417
532
  // create text node
418
533
  elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
419
534
  }
420
- else if (newVNode.$flags$ & 1 /* isSlotReference */) {
535
+ else if (newVNode.$flags$ & 1 /* VNODE_FLAGS.isSlotReference */) {
421
536
  // create a slot reference node
422
537
  elm = newVNode.$elm$ =
423
538
  doc.createTextNode('');
424
539
  }
425
540
  else {
426
541
  // create element
427
- elm = newVNode.$elm$ = (doc.createElement(newVNode.$flags$ & 2 /* isSlotFallback */
542
+ elm = newVNode.$elm$ = (doc.createElement(newVNode.$flags$ & 2 /* VNODE_FLAGS.isSlotFallback */
428
543
  ? 'slot-fb'
429
544
  : newVNode.$tag$));
430
545
  // add css classes, attrs, props, listeners, etc.
@@ -450,7 +565,7 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
450
565
  }
451
566
  {
452
567
  elm['s-hn'] = hostTagName;
453
- if (newVNode.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
568
+ if (newVNode.$flags$ & (2 /* VNODE_FLAGS.isSlotFallback */ | 1 /* VNODE_FLAGS.isSlotReference */)) {
454
569
  // remember the content reference comment
455
570
  elm['s-sr'] = true;
456
571
  // remember the content reference comment
@@ -469,7 +584,7 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
469
584
  return elm;
470
585
  };
471
586
  const putBackInOriginalLocation = (parentElm, recursive) => {
472
- plt.$flags$ |= 1 /* isTmpDisconnected */;
587
+ plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
473
588
  const oldSlotChildNodes = parentElm.childNodes;
474
589
  for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) {
475
590
  const childNode = oldSlotChildNodes[i];
@@ -490,8 +605,23 @@ const putBackInOriginalLocation = (parentElm, recursive) => {
490
605
  putBackInOriginalLocation(childNode, recursive);
491
606
  }
492
607
  }
493
- plt.$flags$ &= ~1 /* isTmpDisconnected */;
608
+ plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
494
609
  };
610
+ /**
611
+ * Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
612
+ * add them to the DOM in the appropriate place.
613
+ *
614
+ * @param parentElm the DOM node which should be used as a parent for the new
615
+ * DOM nodes
616
+ * @param before a child of the `parentElm` which the new children should be
617
+ * inserted before (optional)
618
+ * @param parentVNode the parent virtual DOM node
619
+ * @param vnodes the new child virtual DOM nodes to produce DOM nodes for
620
+ * @param startIdx the index in the child virtual DOM nodes at which to start
621
+ * creating DOM nodes (inclusive)
622
+ * @param endIdx the index in the child virtual DOM nodes at which to stop
623
+ * creating DOM nodes (inclusive)
624
+ */
495
625
  const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
496
626
  let containerElm = ((parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
497
627
  let childNode;
@@ -508,30 +638,112 @@ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) =>
508
638
  }
509
639
  }
510
640
  };
511
- const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
512
- for (; startIdx <= endIdx; ++startIdx) {
513
- if ((vnode = vnodes[startIdx])) {
514
- elm = vnode.$elm$;
515
- callNodeRefs(vnode);
516
- {
517
- // we're removing this element
518
- // so it's possible we need to show slot fallback content now
519
- checkSlotFallbackVisibility = true;
520
- if (elm['s-ol']) {
521
- // remove the original location comment
522
- elm['s-ol'].remove();
523
- }
524
- else {
525
- // it's possible that child nodes of the node
526
- // that's being removed are slot nodes
527
- putBackInOriginalLocation(elm, true);
641
+ /**
642
+ * Remove the DOM elements corresponding to a list of {@link d.VNode} objects.
643
+ * This can be used to, for instance, clean up after a list of children which
644
+ * should no longer be shown.
645
+ *
646
+ * This function also handles some of Stencil's slot relocation logic.
647
+ *
648
+ * @param vnodes a list of virtual DOM nodes to remove
649
+ * @param startIdx the index at which to start removing nodes (inclusive)
650
+ * @param endIdx the index at which to stop removing nodes (inclusive)
651
+ */
652
+ const removeVnodes = (vnodes, startIdx, endIdx) => {
653
+ for (let index = startIdx; index <= endIdx; ++index) {
654
+ const vnode = vnodes[index];
655
+ if (vnode) {
656
+ const elm = vnode.$elm$;
657
+ nullifyVNodeRefs(vnode);
658
+ if (elm) {
659
+ {
660
+ // we're removing this element
661
+ // so it's possible we need to show slot fallback content now
662
+ checkSlotFallbackVisibility = true;
663
+ if (elm['s-ol']) {
664
+ // remove the original location comment
665
+ elm['s-ol'].remove();
666
+ }
667
+ else {
668
+ // it's possible that child nodes of the node
669
+ // that's being removed are slot nodes
670
+ putBackInOriginalLocation(elm, true);
671
+ }
528
672
  }
673
+ // remove the vnode's element from the dom
674
+ elm.remove();
529
675
  }
530
- // remove the vnode's element from the dom
531
- elm.remove();
532
676
  }
533
677
  }
534
678
  };
679
+ /**
680
+ * Reconcile the children of a new VNode with the children of an old VNode by
681
+ * traversing the two collections of children, identifying nodes that are
682
+ * conserved or changed, calling out to `patch` to make any necessary
683
+ * updates to the DOM, and rearranging DOM nodes as needed.
684
+ *
685
+ * The algorithm for reconciling children works by analyzing two 'windows' onto
686
+ * the two arrays of children (`oldCh` and `newCh`). We keep track of the
687
+ * 'windows' by storing start and end indices and references to the
688
+ * corresponding array entries. Initially the two 'windows' are basically equal
689
+ * to the entire array, but we progressively narrow the windows until there are
690
+ * no children left to update by doing the following:
691
+ *
692
+ * 1. Skip any `null` entries at the beginning or end of the two arrays, so
693
+ * that if we have an initial array like the following we'll end up dealing
694
+ * only with a window bounded by the highlighted elements:
695
+ *
696
+ * [null, null, VNode1 , ... , VNode2, null, null]
697
+ * ^^^^^^ ^^^^^^
698
+ *
699
+ * 2. Check to see if the elements at the head and tail positions are equal
700
+ * across the windows. This will basically detect elements which haven't
701
+ * been added, removed, or changed position, i.e. if you had the following
702
+ * VNode elements (represented as HTML):
703
+ *
704
+ * oldVNode: `<div><p><span>HEY</span></p></div>`
705
+ * newVNode: `<div><p><span>THERE</span></p></div>`
706
+ *
707
+ * Then when comparing the children of the `<div>` tag we check the equality
708
+ * of the VNodes corresponding to the `<p>` tags and, since they are the
709
+ * same tag in the same position, we'd be able to avoid completely
710
+ * re-rendering the subtree under them with a new DOM element and would just
711
+ * call out to `patch` to handle reconciling their children and so on.
712
+ *
713
+ * 3. Check, for both windows, to see if the element at the beginning of the
714
+ * window corresponds to the element at the end of the other window. This is
715
+ * a heuristic which will let us identify _some_ situations in which
716
+ * elements have changed position, for instance it _should_ detect that the
717
+ * children nodes themselves have not changed but merely moved in the
718
+ * following example:
719
+ *
720
+ * oldVNode: `<div><element-one /><element-two /></div>`
721
+ * newVNode: `<div><element-two /><element-one /></div>`
722
+ *
723
+ * If we find cases like this then we also need to move the concrete DOM
724
+ * elements corresponding to the moved children to write the re-order to the
725
+ * DOM.
726
+ *
727
+ * 4. Finally, if VNodes have the `key` attribute set on them we check for any
728
+ * nodes in the old children which have the same key as the first element in
729
+ * our window on the new children. If we find such a node we handle calling
730
+ * out to `patch`, moving relevant DOM nodes, and so on, in accordance with
731
+ * what we find.
732
+ *
733
+ * Finally, once we've narrowed our 'windows' to the point that either of them
734
+ * collapse (i.e. they have length 0) we then handle any remaining VNode
735
+ * insertion or deletion that needs to happen to get a DOM state that correctly
736
+ * reflects the new child VNodes. If, for instance, after our window on the old
737
+ * children has collapsed we still have more nodes on the new children that
738
+ * we haven't dealt with yet then we need to add them, or if the new children
739
+ * collapse but we still have unhandled _old_ children then we need to make
740
+ * sure the corresponding DOM nodes are removed.
741
+ *
742
+ * @param parentElm the node into which the parent VNode is rendered
743
+ * @param oldCh the old children of the parent node
744
+ * @param newVNode the new VNode which will replace the parent
745
+ * @param newCh the new children of the parent node
746
+ */
535
747
  const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
536
748
  let oldStartIdx = 0;
537
749
  let newStartIdx = 0;
@@ -547,7 +759,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
547
759
  let elmToMove;
548
760
  while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
549
761
  if (oldStartVnode == null) {
550
- // Vnode might have been moved left
762
+ // VNode might have been moved left
551
763
  oldStartVnode = oldCh[++oldStartIdx];
552
764
  }
553
765
  else if (oldEndVnode == null) {
@@ -560,37 +772,100 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
560
772
  newEndVnode = newCh[--newEndIdx];
561
773
  }
562
774
  else if (isSameVnode(oldStartVnode, newStartVnode)) {
775
+ // if the start nodes are the same then we should patch the new VNode
776
+ // onto the old one, and increment our `newStartIdx` and `oldStartIdx`
777
+ // indices to reflect that. We don't need to move any DOM Nodes around
778
+ // since things are matched up in order.
563
779
  patch(oldStartVnode, newStartVnode);
564
780
  oldStartVnode = oldCh[++oldStartIdx];
565
781
  newStartVnode = newCh[++newStartIdx];
566
782
  }
567
783
  else if (isSameVnode(oldEndVnode, newEndVnode)) {
784
+ // likewise, if the end nodes are the same we patch new onto old and
785
+ // decrement our end indices, and also likewise in this case we don't
786
+ // need to move any DOM Nodes.
568
787
  patch(oldEndVnode, newEndVnode);
569
788
  oldEndVnode = oldCh[--oldEndIdx];
570
789
  newEndVnode = newCh[--newEndIdx];
571
790
  }
572
791
  else if (isSameVnode(oldStartVnode, newEndVnode)) {
573
- // Vnode moved right
792
+ // case: "Vnode moved right"
793
+ //
794
+ // We've found that the last node in our window on the new children is
795
+ // the same VNode as the _first_ node in our window on the old children
796
+ // we're dealing with now. Visually, this is the layout of these two
797
+ // nodes:
798
+ //
799
+ // newCh: [..., newStartVnode , ... , newEndVnode , ...]
800
+ // ^^^^^^^^^^^
801
+ // oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
802
+ // ^^^^^^^^^^^^^
803
+ //
804
+ // In this situation we need to patch `newEndVnode` onto `oldStartVnode`
805
+ // and move the DOM element for `oldStartVnode`.
574
806
  if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
575
807
  putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
576
808
  }
577
809
  patch(oldStartVnode, newEndVnode);
810
+ // We need to move the element for `oldStartVnode` into a position which
811
+ // will be appropriate for `newEndVnode`. For this we can use
812
+ // `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
813
+ // sibling for `oldEndVnode.$elm$` then we want to move the DOM node for
814
+ // `oldStartVnode` between `oldEndVnode` and it's sibling, like so:
815
+ //
816
+ // <old-start-node />
817
+ // <some-intervening-node />
818
+ // <old-end-node />
819
+ // <!-- -> <-- `oldStartVnode.$elm$` should be inserted here
820
+ // <next-sibling />
821
+ //
822
+ // If instead `oldEndVnode.$elm$` has no sibling then we just want to put
823
+ // the node for `oldStartVnode` at the end of the children of
824
+ // `parentElm`. Luckily, `Node.nextSibling` will return `null` if there
825
+ // aren't any siblings, and passing `null` to `Node.insertBefore` will
826
+ // append it to the children of the parent element.
578
827
  parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
579
828
  oldStartVnode = oldCh[++oldStartIdx];
580
829
  newEndVnode = newCh[--newEndIdx];
581
830
  }
582
831
  else if (isSameVnode(oldEndVnode, newStartVnode)) {
583
- // Vnode moved left
832
+ // case: "Vnode moved left"
833
+ //
834
+ // We've found that the first node in our window on the new children is
835
+ // the same VNode as the _last_ node in our window on the old children.
836
+ // Visually, this is the layout of these two nodes:
837
+ //
838
+ // newCh: [..., newStartVnode , ... , newEndVnode , ...]
839
+ // ^^^^^^^^^^^^^
840
+ // oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
841
+ // ^^^^^^^^^^^
842
+ //
843
+ // In this situation we need to patch `newStartVnode` onto `oldEndVnode`
844
+ // (which will handle updating any changed attributes, reconciling their
845
+ // children etc) but we also need to move the DOM node to which
846
+ // `oldEndVnode` corresponds.
584
847
  if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
585
848
  putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
586
849
  }
587
850
  patch(oldEndVnode, newStartVnode);
851
+ // We've already checked above if `oldStartVnode` and `newStartVnode` are
852
+ // the same node, so since we're here we know that they are not. Thus we
853
+ // can move the element for `oldEndVnode` _before_ the element for
854
+ // `oldStartVnode`, leaving `oldStartVnode` to be reconciled in the
855
+ // future.
588
856
  parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
589
857
  oldEndVnode = oldCh[--oldEndIdx];
590
858
  newStartVnode = newCh[++newStartIdx];
591
859
  }
592
860
  else {
593
- // createKeyToOldIdx
861
+ // Here we do some checks to match up old and new nodes based on the
862
+ // `$key$` attribute, which is set by putting a `key="my-key"` attribute
863
+ // in the JSX for a DOM element in the implementation of a Stencil
864
+ // component.
865
+ //
866
+ // First we check to see if there are any nodes in the array of old
867
+ // children which have the same key as the first node in the new
868
+ // children.
594
869
  idxInOld = -1;
595
870
  {
596
871
  for (i = oldStartIdx; i <= oldEndIdx; ++i) {
@@ -601,23 +876,32 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
601
876
  }
602
877
  }
603
878
  if (idxInOld >= 0) {
879
+ // We found a node in the old children which matches up with the first
880
+ // node in the new children! So let's deal with that
604
881
  elmToMove = oldCh[idxInOld];
605
882
  if (elmToMove.$tag$ !== newStartVnode.$tag$) {
883
+ // the tag doesn't match so we'll need a new DOM element
606
884
  node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld, parentElm);
607
885
  }
608
886
  else {
609
887
  patch(elmToMove, newStartVnode);
888
+ // invalidate the matching old node so that we won't try to update it
889
+ // again later on
610
890
  oldCh[idxInOld] = undefined;
611
891
  node = elmToMove.$elm$;
612
892
  }
613
893
  newStartVnode = newCh[++newStartIdx];
614
894
  }
615
895
  else {
616
- // new element
896
+ // We either didn't find an element in the old children that matches
897
+ // the key of the first new child OR the build is not using `key`
898
+ // attributes at all. In either case we need to create a new element
899
+ // for the new node.
617
900
  node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx, parentElm);
618
901
  newStartVnode = newCh[++newStartIdx];
619
902
  }
620
903
  if (node) {
904
+ // if we created a new node then handle inserting it to the DOM
621
905
  {
622
906
  parentReferenceNode(oldStartVnode.$elm$).insertBefore(node, referenceNode(oldStartVnode.$elm$));
623
907
  }
@@ -625,21 +909,44 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
625
909
  }
626
910
  }
627
911
  if (oldStartIdx > oldEndIdx) {
912
+ // we have some more new nodes to add which don't match up with old nodes
628
913
  addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
629
914
  }
630
915
  else if (newStartIdx > newEndIdx) {
916
+ // there are nodes in the `oldCh` array which no longer correspond to nodes
917
+ // in the new array, so lets remove them (which entails cleaning up the
918
+ // relevant DOM nodes)
631
919
  removeVnodes(oldCh, oldStartIdx, oldEndIdx);
632
920
  }
633
921
  };
634
- const isSameVnode = (vnode1, vnode2) => {
922
+ /**
923
+ * Compare two VNodes to determine if they are the same
924
+ *
925
+ * **NB**: This function is an equality _heuristic_ based on the available
926
+ * information set on the two VNodes and can be misleading under certain
927
+ * circumstances. In particular, if the two nodes do not have `key` attrs
928
+ * (available under `$key$` on VNodes) then the function falls back on merely
929
+ * checking that they have the same tag.
930
+ *
931
+ * So, in other words, if `key` attrs are not set on VNodes which may be
932
+ * changing order within a `children` array or something along those lines then
933
+ * we could obtain a false negative and then have to do needless re-rendering
934
+ * (i.e. we'd say two VNodes aren't equal when in fact they should be).
935
+ *
936
+ * @param leftVNode the first VNode to check
937
+ * @param rightVNode the second VNode to check
938
+ * @returns whether they're equal or not
939
+ */
940
+ const isSameVnode = (leftVNode, rightVNode) => {
635
941
  // compare if two vnode to see if they're "technically" the same
636
942
  // need to have the same element tag, and same key to be the same
637
- if (vnode1.$tag$ === vnode2.$tag$) {
638
- if (vnode1.$tag$ === 'slot') {
639
- return vnode1.$name$ === vnode2.$name$;
943
+ if (leftVNode.$tag$ === rightVNode.$tag$) {
944
+ if (leftVNode.$tag$ === 'slot') {
945
+ return leftVNode.$name$ === rightVNode.$name$;
640
946
  }
947
+ // this will be set if components in the build have `key` attrs set on them
641
948
  {
642
- return vnode1.$key$ === vnode2.$key$;
949
+ return leftVNode.$key$ === rightVNode.$key$;
643
950
  }
644
951
  }
645
952
  return false;
@@ -652,6 +959,14 @@ const referenceNode = (node) => {
652
959
  return (node && node['s-ol']) || node;
653
960
  };
654
961
  const parentReferenceNode = (node) => (node['s-ol'] ? node['s-ol'] : node).parentNode;
962
+ /**
963
+ * Handle reconciling an outdated VNode with a new one which corresponds to
964
+ * it. This function handles flushing updates to the DOM and reconciling the
965
+ * children of the two nodes (if any).
966
+ *
967
+ * @param oldVNode an old VNode whose DOM element and children we want to update
968
+ * @param newVNode a new VNode representing an updated version of the old one
969
+ */
655
970
  const patch = (oldVNode, newVNode) => {
656
971
  const elm = (newVNode.$elm$ = oldVNode.$elm$);
657
972
  const oldChildren = oldVNode.$children$;
@@ -660,7 +975,6 @@ const patch = (oldVNode, newVNode) => {
660
975
  const text = newVNode.$text$;
661
976
  let defaultHolder;
662
977
  if (text === null) {
663
- // element node
664
978
  {
665
979
  if (tag === 'slot')
666
980
  ;
@@ -673,6 +987,7 @@ const patch = (oldVNode, newVNode) => {
673
987
  }
674
988
  if (oldChildren !== null && newChildren !== null) {
675
989
  // looks like there's child vnodes for both the old and new vnodes
990
+ // so we need to call `updateChildren` to reconcile them
676
991
  updateChildren(elm, oldChildren, newVNode, newChildren);
677
992
  }
678
993
  else if (newChildren !== null) {
@@ -710,7 +1025,7 @@ const updateFallbackSlotVisibility = (elm) => {
710
1025
  let nodeType;
711
1026
  for (i = 0, ilen = childNodes.length; i < ilen; i++) {
712
1027
  childNode = childNodes[i];
713
- if (childNode.nodeType === 1 /* ElementNode */) {
1028
+ if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
714
1029
  if (childNode['s-sr']) {
715
1030
  // this is a slot fallback node
716
1031
  // get the slot name for this slot reference node
@@ -722,7 +1037,7 @@ const updateFallbackSlotVisibility = (elm) => {
722
1037
  nodeType = childNodes[j].nodeType;
723
1038
  if (childNodes[j]['s-hn'] !== childNode['s-hn'] || slotNameAttr !== '') {
724
1039
  // this sibling node is from a different component OR is a named fallback slot node
725
- if (nodeType === 1 /* ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
1040
+ if (nodeType === 1 /* NODE_TYPE.ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
726
1041
  childNode.hidden = true;
727
1042
  break;
728
1043
  }
@@ -731,8 +1046,8 @@ const updateFallbackSlotVisibility = (elm) => {
731
1046
  // this is a default fallback slot node
732
1047
  // any element or text node (with content)
733
1048
  // should hide the default fallback slot node
734
- if (nodeType === 1 /* ElementNode */ ||
735
- (nodeType === 3 /* TextNode */ && childNodes[j].textContent.trim() !== '')) {
1049
+ if (nodeType === 1 /* NODE_TYPE.ElementNode */ ||
1050
+ (nodeType === 3 /* NODE_TYPE.TextNode */ && childNodes[j].textContent.trim() !== '')) {
736
1051
  childNode.hidden = true;
737
1052
  break;
738
1053
  }
@@ -810,13 +1125,13 @@ const relocateSlotContent = (elm) => {
810
1125
  }
811
1126
  }
812
1127
  }
813
- if (childNode.nodeType === 1 /* ElementNode */) {
1128
+ if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
814
1129
  relocateSlotContent(childNode);
815
1130
  }
816
1131
  }
817
1132
  };
818
1133
  const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => {
819
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1134
+ if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
820
1135
  if (nodeToRelocate.getAttribute('slot') === null && slotNameAttr === '') {
821
1136
  return true;
822
1137
  }
@@ -830,12 +1145,31 @@ const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => {
830
1145
  }
831
1146
  return slotNameAttr === '';
832
1147
  };
833
- const callNodeRefs = (vNode) => {
1148
+ /**
1149
+ * 'Nullify' any VDom `ref` callbacks on a VDom node or its children by
1150
+ * calling them with `null`. This signals that the DOM element corresponding to
1151
+ * the VDom node has been removed from the DOM.
1152
+ *
1153
+ * @param vNode a virtual DOM node
1154
+ */
1155
+ const nullifyVNodeRefs = (vNode) => {
834
1156
  {
835
1157
  vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
836
- vNode.$children$ && vNode.$children$.map(callNodeRefs);
1158
+ vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
837
1159
  }
838
1160
  };
1161
+ /**
1162
+ * The main entry point for Stencil's virtual DOM-based rendering engine
1163
+ *
1164
+ * Given a {@link d.HostRef} container and some virtual DOM nodes, this
1165
+ * function will handle creating a virtual DOM tree with a single root, patching
1166
+ * the current virtual DOM tree onto an old one (if any), dealing with slot
1167
+ * relocation, and reflecting attributes.
1168
+ *
1169
+ * @param hostRef data needed to root and render the virtual DOM tree, such as
1170
+ * the DOM node into which it should be rendered.
1171
+ * @param renderFnResults the virtual DOM nodes to be rendered
1172
+ */
839
1173
  const renderVdom = (hostRef, renderFnResults) => {
840
1174
  const hostElm = hostRef.$hostElement$;
841
1175
  const cmpMeta = hostRef.$cmpMeta$;
@@ -847,7 +1181,7 @@ const renderVdom = (hostRef, renderFnResults) => {
847
1181
  cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
848
1182
  }
849
1183
  rootVnode.$tag$ = null;
850
- rootVnode.$flags$ |= 4 /* isHost */;
1184
+ rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
851
1185
  hostRef.$vnode$ = rootVnode;
852
1186
  rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
853
1187
  {
@@ -855,7 +1189,7 @@ const renderVdom = (hostRef, renderFnResults) => {
855
1189
  }
856
1190
  {
857
1191
  contentRef = hostElm['s-cr'];
858
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
1192
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) !== 0;
859
1193
  // always reset
860
1194
  checkSlotFallbackVisibility = false;
861
1195
  }
@@ -864,7 +1198,7 @@ const renderVdom = (hostRef, renderFnResults) => {
864
1198
  {
865
1199
  // while we're moving nodes around existing nodes, temporarily disable
866
1200
  // the disconnectCallback from working
867
- plt.$flags$ |= 1 /* isTmpDisconnected */;
1201
+ plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
868
1202
  if (checkSlotRelocate) {
869
1203
  relocateSlotContent(rootVnode.$elm$);
870
1204
  let relocateData;
@@ -922,7 +1256,7 @@ const renderVdom = (hostRef, renderFnResults) => {
922
1256
  }
923
1257
  else {
924
1258
  // this node doesn't have a slot home to go to, so let's hide it
925
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1259
+ if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
926
1260
  nodeToRelocate.hidden = true;
927
1261
  }
928
1262
  }
@@ -933,37 +1267,11 @@ const renderVdom = (hostRef, renderFnResults) => {
933
1267
  }
934
1268
  // done moving nodes around
935
1269
  // allow the disconnect callback to work again
936
- plt.$flags$ &= ~1 /* isTmpDisconnected */;
1270
+ plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
937
1271
  // always reset
938
1272
  relocateNodes.length = 0;
939
1273
  }
940
1274
  };
941
- const getElement = (ref) => (getHostRef(ref).$hostElement$ );
942
- const createEvent = (ref, name, flags) => {
943
- const elm = getElement(ref);
944
- return {
945
- emit: (detail) => {
946
- return emitEvent(elm, name, {
947
- bubbles: !!(flags & 4 /* Bubbles */),
948
- composed: !!(flags & 2 /* Composed */),
949
- cancelable: !!(flags & 1 /* Cancellable */),
950
- detail,
951
- });
952
- },
953
- };
954
- };
955
- /**
956
- * Helper function to create & dispatch a custom Event on a provided target
957
- * @param elm the target of the Event
958
- * @param name the name to give the custom Event
959
- * @param opts options for configuring a custom Event
960
- * @returns the custom Event
961
- */
962
- const emitEvent = (elm, name, opts) => {
963
- const ev = plt.ce(name, opts);
964
- elm.dispatchEvent(ev);
965
- return ev;
966
- };
967
1275
  const attachToAncestor = (hostRef, ancestorComponent) => {
968
1276
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
969
1277
  ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
@@ -971,10 +1279,10 @@ const attachToAncestor = (hostRef, ancestorComponent) => {
971
1279
  };
972
1280
  const scheduleUpdate = (hostRef, isInitialLoad) => {
973
1281
  {
974
- hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
1282
+ hostRef.$flags$ |= 16 /* HOST_FLAGS.isQueuedForUpdate */;
975
1283
  }
976
- if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
977
- hostRef.$flags$ |= 512 /* needsRerender */;
1284
+ if (hostRef.$flags$ & 4 /* HOST_FLAGS.isWaitingForChildren */) {
1285
+ hostRef.$flags$ |= 512 /* HOST_FLAGS.needsRerender */;
978
1286
  return;
979
1287
  }
980
1288
  attachToAncestor(hostRef, hostRef.$ancestorComponent$);
@@ -984,25 +1292,74 @@ const scheduleUpdate = (hostRef, isInitialLoad) => {
984
1292
  const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
985
1293
  return writeTask(dispatch) ;
986
1294
  };
1295
+ /**
1296
+ * Dispatch initial-render and update lifecycle hooks, enqueuing calls to
1297
+ * component lifecycle methods like `componentWillLoad` as well as
1298
+ * {@link updateComponent}, which will kick off the virtual DOM re-render.
1299
+ *
1300
+ * @param hostRef a reference to a host DOM node
1301
+ * @param isInitialLoad whether we're on the initial load or not
1302
+ * @returns an empty Promise which is used to enqueue a series of operations for
1303
+ * the component
1304
+ */
987
1305
  const dispatchHooks = (hostRef, isInitialLoad) => {
988
1306
  const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
989
1307
  const instance = hostRef.$lazyInstance$ ;
990
- let promise;
1308
+ // We're going to use this variable together with `enqueue` to implement a
1309
+ // little promise-based queue. We start out with it `undefined`. When we add
1310
+ // the first function to the queue we'll set this variable to be that
1311
+ // function's return value. When we attempt to add subsequent values to the
1312
+ // queue we'll check that value and, if it was a `Promise`, we'll then chain
1313
+ // the new function off of that `Promise` using `.then()`. This will give our
1314
+ // queue two nice properties:
1315
+ //
1316
+ // 1. If all functions added to the queue are synchronous they'll be called
1317
+ // synchronously right away.
1318
+ // 2. If all functions added to the queue are asynchronous they'll all be
1319
+ // called in order after `dispatchHooks` exits.
1320
+ let maybePromise;
991
1321
  if (isInitialLoad) {
992
1322
  {
993
- promise = safeCall(instance, 'componentWillLoad');
1323
+ // If `componentWillLoad` returns a `Promise` then we want to wait on
1324
+ // whatever's going on in that `Promise` before we launch into
1325
+ // rendering the component, doing other lifecycle stuff, etc. So
1326
+ // in that case we assign the returned promise to the variable we
1327
+ // declared above to hold a possible 'queueing' Promise
1328
+ maybePromise = safeCall(instance, 'componentWillLoad');
994
1329
  }
995
1330
  }
996
1331
  else {
997
1332
  {
998
- promise = safeCall(instance, 'componentWillUpdate');
1333
+ // Like `componentWillLoad` above, we allow Stencil component
1334
+ // authors to return a `Promise` from this lifecycle callback, and
1335
+ // we specify that our runtime will wait for that `Promise` to
1336
+ // resolve before the component re-renders. So if the method
1337
+ // returns a `Promise` we need to keep it around!
1338
+ maybePromise = safeCall(instance, 'componentWillUpdate');
999
1339
  }
1000
1340
  }
1001
1341
  endSchedule();
1002
- return then(promise, () => updateComponent(hostRef, instance, isInitialLoad));
1342
+ return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
1003
1343
  };
1344
+ /**
1345
+ * This function uses a Promise to implement a simple first-in, first-out queue
1346
+ * of functions to be called.
1347
+ *
1348
+ * The queue is ordered on the basis of the first argument. If it's
1349
+ * `undefined`, then nothing is on the queue yet, so the provided function can
1350
+ * be called synchronously (although note that this function may return a
1351
+ * `Promise`). The idea is that then the return value of that enqueueing
1352
+ * operation is kept around, so that if it was a `Promise` then subsequent
1353
+ * functions can be enqueued by calling this function again with that `Promise`
1354
+ * as the first argument.
1355
+ *
1356
+ * @param maybePromise either a `Promise` which should resolve before the next function is called or an 'empty' sentinel
1357
+ * @param fn a function to enqueue
1358
+ * @returns either a `Promise` or the return value of the provided function
1359
+ */
1360
+ const enqueue = (maybePromise, fn) => maybePromise instanceof Promise ? maybePromise.then(fn) : fn();
1004
1361
  const updateComponent = async (hostRef, instance, isInitialLoad) => {
1005
- // updateComponent
1362
+ var _a;
1006
1363
  const elm = hostRef.$hostElement$;
1007
1364
  const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
1008
1365
  const rc = elm['s-rc'];
@@ -1024,14 +1381,14 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
1024
1381
  endRender();
1025
1382
  endUpdate();
1026
1383
  {
1027
- const childrenPromises = elm['s-p'];
1384
+ const childrenPromises = (_a = elm['s-p']) !== null && _a !== void 0 ? _a : [];
1028
1385
  const postUpdate = () => postUpdateComponent(hostRef);
1029
1386
  if (childrenPromises.length === 0) {
1030
1387
  postUpdate();
1031
1388
  }
1032
1389
  else {
1033
1390
  Promise.all(childrenPromises).then(postUpdate);
1034
- hostRef.$flags$ |= 4 /* isWaitingForChildren */;
1391
+ hostRef.$flags$ |= 4 /* HOST_FLAGS.isWaitingForChildren */;
1035
1392
  childrenPromises.length = 0;
1036
1393
  }
1037
1394
  }
@@ -1040,10 +1397,10 @@ const callRender = (hostRef, instance, elm) => {
1040
1397
  try {
1041
1398
  instance = instance.render() ;
1042
1399
  {
1043
- hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
1400
+ hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
1044
1401
  }
1045
1402
  {
1046
- hostRef.$flags$ |= 2 /* hasRendered */;
1403
+ hostRef.$flags$ |= 2 /* HOST_FLAGS.hasRendered */;
1047
1404
  }
1048
1405
  {
1049
1406
  {
@@ -1067,8 +1424,8 @@ const postUpdateComponent = (hostRef) => {
1067
1424
  const endPostUpdate = createTime('postUpdate', tagName);
1068
1425
  const instance = hostRef.$lazyInstance$ ;
1069
1426
  const ancestorComponent = hostRef.$ancestorComponent$;
1070
- if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
1071
- hostRef.$flags$ |= 64 /* hasLoadedComponent */;
1427
+ if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
1428
+ hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
1072
1429
  {
1073
1430
  // DOM WRITE!
1074
1431
  addHydratedFlag(elm);
@@ -1097,10 +1454,10 @@ const postUpdateComponent = (hostRef) => {
1097
1454
  hostRef.$onRenderResolve$();
1098
1455
  hostRef.$onRenderResolve$ = undefined;
1099
1456
  }
1100
- if (hostRef.$flags$ & 512 /* needsRerender */) {
1457
+ if (hostRef.$flags$ & 512 /* HOST_FLAGS.needsRerender */) {
1101
1458
  nextTick(() => scheduleUpdate(hostRef, false));
1102
1459
  }
1103
- hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
1460
+ hostRef.$flags$ &= ~(4 /* HOST_FLAGS.isWaitingForChildren */ | 512 /* HOST_FLAGS.needsRerender */);
1104
1461
  }
1105
1462
  // ( •_•)
1106
1463
  // ( •_•)>⌐■-■
@@ -1125,54 +1482,8 @@ const safeCall = (instance, method, arg) => {
1125
1482
  }
1126
1483
  return undefined;
1127
1484
  };
1128
- const then = (promise, thenFn) => {
1129
- return promise && promise.then ? promise.then(thenFn) : thenFn();
1130
- };
1131
1485
  const addHydratedFlag = (elm) => elm.classList.add('hydrated')
1132
1486
  ;
1133
- /**
1134
- * Parse a new property value for a given property type.
1135
- *
1136
- * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
1137
- * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
1138
- * 1. `any`, the type given to `propValue` in the function signature
1139
- * 2. the type stored from `propType`.
1140
- *
1141
- * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
1142
- *
1143
- * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
1144
- * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
1145
- * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
1146
- * ```tsx
1147
- * <my-cmp prop-val={0}></my-cmp>
1148
- * ```
1149
- *
1150
- * HTML prop values on the other hand, will always a string
1151
- *
1152
- * @param propValue the new value to coerce to some type
1153
- * @param propType the type of the prop, expressed as a binary number
1154
- * @returns the parsed/coerced value
1155
- */
1156
- const parsePropertyValue = (propValue, propType) => {
1157
- // ensure this value is of the correct prop type
1158
- if (propValue != null && !isComplexType(propValue)) {
1159
- if (propType & 4 /* Boolean */) {
1160
- // per the HTML spec, any string value means it is a boolean true value
1161
- // but we'll cheat here and say that the string "false" is the boolean false
1162
- return propValue === 'false' ? false : propValue === '' || !!propValue;
1163
- }
1164
- if (propType & 1 /* String */) {
1165
- // could have been passed as a number or boolean
1166
- // but we still want it as a string
1167
- return String(propValue);
1168
- }
1169
- // redundant return here for better minification
1170
- return propValue;
1171
- }
1172
- // not sure exactly what type we want
1173
- // so no need to change to a different type
1174
- return propValue;
1175
- };
1176
1487
  const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1177
1488
  const setValue = (ref, propName, newVal, cmpMeta) => {
1178
1489
  // check our new property value against our internal value
@@ -1185,13 +1496,13 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
1185
1496
  // explicitly check for NaN on both sides, as `NaN === NaN` is always false
1186
1497
  const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1187
1498
  const didValueChange = newVal !== oldVal && !areBothNaN;
1188
- if ((!(flags & 8 /* isConstructingInstance */) || oldVal === undefined) && didValueChange) {
1499
+ if ((!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) || oldVal === undefined) && didValueChange) {
1189
1500
  // gadzooks! the property's value has changed!!
1190
1501
  // set our new value!
1191
1502
  hostRef.$instanceValues$.set(propName, newVal);
1192
1503
  if (instance) {
1193
1504
  // get an array of method names of watch functions to call
1194
- if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
1505
+ if (cmpMeta.$watchers$ && flags & 128 /* HOST_FLAGS.isWatchReady */) {
1195
1506
  const watchMethods = cmpMeta.$watchers$[propName];
1196
1507
  if (watchMethods) {
1197
1508
  // this instance is watching for when this property changed
@@ -1206,7 +1517,7 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
1206
1517
  });
1207
1518
  }
1208
1519
  }
1209
- if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1520
+ if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
1210
1521
  // looks like this value actually changed, so we've got work to do!
1211
1522
  // but only if we've already rendered, otherwise just chill out
1212
1523
  // queue that we need to do an update, but don't worry about queuing
@@ -1216,6 +1527,16 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
1216
1527
  }
1217
1528
  }
1218
1529
  };
1530
+ /**
1531
+ * Attach a series of runtime constructs to a compiled Stencil component
1532
+ * constructor, including getters and setters for the `@Prop` and `@State`
1533
+ * decorators, callbacks for when attributes change, and so on.
1534
+ *
1535
+ * @param Cstr the constructor for a component that we need to process
1536
+ * @param cmpMeta metadata collected previously about the component
1537
+ * @param flags a number used to store a series of bit flags
1538
+ * @returns a reference to the same constructor passed in (but now mutated)
1539
+ */
1219
1540
  const proxyComponent = (Cstr, cmpMeta, flags) => {
1220
1541
  if (cmpMeta.$members$) {
1221
1542
  if (Cstr.watchers) {
@@ -1225,8 +1546,8 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1225
1546
  const members = Object.entries(cmpMeta.$members$);
1226
1547
  const prototype = Cstr.prototype;
1227
1548
  members.map(([memberName, [memberFlags]]) => {
1228
- if ((memberFlags & 31 /* Prop */ ||
1229
- ((flags & 2 /* proxyState */) && memberFlags & 32 /* State */))) {
1549
+ if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
1550
+ ((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
1230
1551
  // proxyComponent - prop
1231
1552
  Object.defineProperty(prototype, memberName, {
1232
1553
  get() {
@@ -1241,8 +1562,8 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1241
1562
  enumerable: true,
1242
1563
  });
1243
1564
  }
1244
- else if (flags & 1 /* isElementConstructor */ &&
1245
- memberFlags & 64 /* Method */) {
1565
+ else if (flags & 1 /* PROXY_FLAGS.isElementConstructor */ &&
1566
+ memberFlags & 64 /* MEMBER_FLAGS.Method */) {
1246
1567
  // proxyComponent - method
1247
1568
  Object.defineProperty(prototype, memberName, {
1248
1569
  value(...args) {
@@ -1252,7 +1573,7 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1252
1573
  });
1253
1574
  }
1254
1575
  });
1255
- if ((flags & 1 /* isElementConstructor */)) {
1576
+ if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
1256
1577
  const attrNameToPropName = new Map();
1257
1578
  prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
1258
1579
  plt.jmp(() => {
@@ -1308,11 +1629,11 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1308
1629
  // create an array of attributes to observe
1309
1630
  // and also create a map of html attribute name to js property name
1310
1631
  Cstr.observedAttributes = members
1311
- .filter(([_, m]) => m[0] & 15 /* HasAttribute */) // filter to only keep props that should match attributes
1632
+ .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */) // filter to only keep props that should match attributes
1312
1633
  .map(([propName, m]) => {
1313
1634
  const attrName = m[1] || propName;
1314
1635
  attrNameToPropName.set(attrName, propName);
1315
- if (m[0] & 512 /* ReflectAttr */) {
1636
+ if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
1316
1637
  cmpMeta.$attrsToReflect$.push([propName, attrName]);
1317
1638
  }
1318
1639
  return attrName;
@@ -1323,10 +1644,10 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1323
1644
  };
1324
1645
  const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
1325
1646
  // initializeComponent
1326
- if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1647
+ if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
1648
+ // Let the runtime know that the component has been initialized
1649
+ hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
1327
1650
  {
1328
- // we haven't initialized this element yet
1329
- hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1330
1651
  // lazy loaded components
1331
1652
  // request the component's implementation to be
1332
1653
  // wired up with the host element
@@ -1344,7 +1665,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1344
1665
  {
1345
1666
  cmpMeta.$watchers$ = Cstr.watchers;
1346
1667
  }
1347
- proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1668
+ proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
1348
1669
  Cstr.isProxied = true;
1349
1670
  }
1350
1671
  const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
@@ -1352,7 +1673,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1352
1673
  // but let's keep track of when we start and stop
1353
1674
  // so that the getters/setters don't incorrectly step on data
1354
1675
  {
1355
- hostRef.$flags$ |= 8 /* isConstructingInstance */;
1676
+ hostRef.$flags$ |= 8 /* HOST_FLAGS.isConstructingInstance */;
1356
1677
  }
1357
1678
  // construct the lazy-loaded component implementation
1358
1679
  // passing the hostRef is very important during
@@ -1365,10 +1686,10 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1365
1686
  consoleError(e);
1366
1687
  }
1367
1688
  {
1368
- hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1689
+ hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
1369
1690
  }
1370
1691
  {
1371
- hostRef.$flags$ |= 128 /* isWatchReady */;
1692
+ hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */;
1372
1693
  }
1373
1694
  endNewInstance();
1374
1695
  fireConnectedCallback(hostRef.$lazyInstance$);
@@ -1379,7 +1700,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1379
1700
  const scopeId = getScopeId(cmpMeta);
1380
1701
  if (!styles.has(scopeId)) {
1381
1702
  const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
1382
- registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
1703
+ registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */));
1383
1704
  endRegisterStyles();
1384
1705
  }
1385
1706
  }
@@ -1406,19 +1727,20 @@ const fireConnectedCallback = (instance) => {
1406
1727
  }
1407
1728
  };
1408
1729
  const connectedCallback = (elm) => {
1409
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1730
+ if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1410
1731
  const hostRef = getHostRef(elm);
1411
1732
  const cmpMeta = hostRef.$cmpMeta$;
1412
1733
  const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
1413
- if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
1734
+ if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
1414
1735
  // first time this component has connected
1415
- hostRef.$flags$ |= 1 /* hasConnected */;
1736
+ hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
1416
1737
  {
1417
1738
  // initUpdate
1418
1739
  // if the slot polyfill is required we'll need to put some nodes
1419
1740
  // in here to act as original content anchors as we move nodes around
1420
1741
  // host element has been connected to the DOM
1421
- if ((cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */))) {
1742
+ if ((// TODO(STENCIL-662): Remove code related to deprecated shadowDomShim field
1743
+ cmpMeta.$flags$ & (4 /* CMP_FLAGS.hasSlotRelocation */ | 8 /* CMP_FLAGS.needsShadowDomShim */))) {
1422
1744
  setContentReference(elm);
1423
1745
  }
1424
1746
  }
@@ -1441,7 +1763,7 @@ const connectedCallback = (elm) => {
1441
1763
  // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1442
1764
  if (cmpMeta.$members$) {
1443
1765
  Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1444
- if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
1766
+ if (memberFlags & 31 /* MEMBER_FLAGS.Prop */ && elm.hasOwnProperty(memberName)) {
1445
1767
  const value = elm[memberName];
1446
1768
  delete elm[memberName];
1447
1769
  elm[memberName] = value;
@@ -1471,7 +1793,7 @@ const setContentReference = (elm) => {
1471
1793
  elm.insertBefore(contentRefElm, elm.firstChild);
1472
1794
  };
1473
1795
  const disconnectedCallback = (elm) => {
1474
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1796
+ if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1475
1797
  const hostRef = getHostRef(elm);
1476
1798
  const instance = hostRef.$lazyInstance$ ;
1477
1799
  {
@@ -1480,6 +1802,7 @@ const disconnectedCallback = (elm) => {
1480
1802
  }
1481
1803
  };
1482
1804
  const bootstrapLazy = (lazyBundles, options = {}) => {
1805
+ var _a;
1483
1806
  const endBootstrap = createTime();
1484
1807
  const cmpTags = [];
1485
1808
  const exclude = options.exclude || [];
@@ -1517,7 +1840,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1517
1840
  super(self);
1518
1841
  self = this;
1519
1842
  registerHost(self, cmpMeta);
1520
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1843
+ if (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
1521
1844
  // this component is using shadow dom
1522
1845
  // and this browser supports shadow dom
1523
1846
  // add the read-only property "shadowRoot" to the host element
@@ -1552,13 +1875,18 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1552
1875
  cmpMeta.$lazyBundleId$ = lazyBundle[0];
1553
1876
  if (!exclude.includes(tagName) && !customElements.get(tagName)) {
1554
1877
  cmpTags.push(tagName);
1555
- customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
1878
+ customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */));
1556
1879
  }
1557
1880
  });
1558
1881
  });
1559
1882
  {
1560
1883
  visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
1561
1884
  visibilityStyle.setAttribute('data-styles', '');
1885
+ // Apply CSP nonce to the style tag if it exists
1886
+ const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
1887
+ if (nonce != null) {
1888
+ visibilityStyle.setAttribute('nonce', nonce);
1889
+ }
1562
1890
  head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
1563
1891
  }
1564
1892
  // Process deferred connectedCallbacks now all components have been registered
@@ -1574,11 +1902,14 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1574
1902
  // Fallback appLoad event
1575
1903
  endBootstrap();
1576
1904
  };
1577
- const getAssetPath = (path) => {
1578
- const assetUrl = new URL(path, plt.$resourcesUrl$);
1579
- return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
1580
- };
1581
- const hostRefs = new WeakMap();
1905
+ /**
1906
+ * Assigns the given value to the nonce property on the runtime platform object.
1907
+ * During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
1908
+ * @param nonce The value to be assigned to the platform nonce property.
1909
+ * @returns void
1910
+ */
1911
+ const setNonce = (nonce) => (plt.$nonce$ = nonce);
1912
+ const hostRefs = /*@__PURE__*/ new WeakMap();
1582
1913
  const getHostRef = (ref) => hostRefs.get(ref);
1583
1914
  const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
1584
1915
  const registerHost = (elm, cmpMeta) => {
@@ -1622,14 +1953,35 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1622
1953
  return importedModule[exportName];
1623
1954
  }, consoleError);
1624
1955
  };
1625
- const styles = new Map();
1956
+ const styles = /*@__PURE__*/ new Map();
1957
+ const win = typeof window !== 'undefined' ? window : {};
1958
+ const doc = win.document || { head: {} };
1959
+ const plt = {
1960
+ $flags$: 0,
1961
+ $resourcesUrl$: '',
1962
+ jmp: (h) => h(),
1963
+ raf: (h) => requestAnimationFrame(h),
1964
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
1965
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
1966
+ ce: (eventName, opts) => new CustomEvent(eventName, opts),
1967
+ };
1968
+ const promiseResolve = (v) => Promise.resolve(v);
1969
+ const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
1970
+ try {
1971
+ new CSSStyleSheet();
1972
+ return typeof new CSSStyleSheet().replaceSync === 'function';
1973
+ }
1974
+ catch (e) { }
1975
+ return false;
1976
+ })()
1977
+ ;
1626
1978
  const queueDomReads = [];
1627
1979
  const queueDomWrites = [];
1628
1980
  const queueTask = (queue, write) => (cb) => {
1629
1981
  queue.push(cb);
1630
1982
  if (!queuePending) {
1631
1983
  queuePending = true;
1632
- if (write && plt.$flags$ & 4 /* queueSync */) {
1984
+ if (write && plt.$flags$ & 4 /* PLATFORM_FLAGS.queueSync */) {
1633
1985
  nextTick(flush);
1634
1986
  }
1635
1987
  else {
@@ -1666,4 +2018,6 @@ const flush = () => {
1666
2018
  const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
1667
2019
  const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1668
2020
 
1669
- export { Host as H, getAssetPath as a, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r };
2021
+ export { Host as H, getAssetPath as a, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
2022
+
2023
+ //# sourceMappingURL=index-58f9666b.js.map