@saasquatch/mint-components 2.0.8 → 2.0.9

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 (304) hide show
  1. package/dist/cjs/{ShadowViewAddon-ae3a32c3.js → ShadowViewAddon-31199cba.js} +230 -112
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mint-components.cjs.js +1 -1
  4. package/dist/cjs/{sqm-big-stat_47.cjs.entry.js → sqm-big-stat_49.cjs.entry.js} +552 -13
  5. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +1 -2
  6. package/dist/cjs/sqm-stencilbook.cjs.entry.js +108 -64
  7. package/dist/{esm/AsYouType-46f67d0d.js → cjs/usePortalRegistrationForm-8ed0d753.js} +215 -1
  8. package/dist/collection/components/sqm-portal-google-login/GoogleLoginForm.stories.js +37 -0
  9. package/dist/collection/components/sqm-portal-google-login/sqm-portal-google-login.js +2 -1
  10. package/dist/collection/components/sqm-portal-google-registration-form/PortalGoogleRegistrationForm.stories.js +1 -1
  11. package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +0 -25
  12. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +2 -0
  13. package/dist/esm/{ShadowViewAddon-78a1c35c.js → ShadowViewAddon-49bebd13.js} +234 -118
  14. package/dist/esm/{data-a581119a.js → data-f2f77358.js} +2 -2
  15. package/dist/esm/{global-58a69018.js → global-5d501632.js} +1 -1
  16. package/dist/esm/{index.module-c9811a48.js → index.module-234e8f5e.js} +1 -1
  17. package/dist/esm/loader.js +3 -3
  18. package/dist/esm/mint-components.js +3 -3
  19. package/dist/esm/{re-render-7e22fb0d.js → re-render-b56bc163.js} +1 -1
  20. package/dist/esm/sqm-banking-info-form_10.entry.js +8 -8
  21. package/dist/esm/{sqm-big-stat_47.entry.js → sqm-big-stat_49.entry.js} +559 -22
  22. package/dist/esm/sqm-close-button.entry.js +1 -1
  23. package/dist/esm/sqm-code-verification.entry.js +3 -3
  24. package/dist/esm/sqm-context-router.entry.js +1 -1
  25. package/dist/esm/sqm-email-verification.entry.js +3 -3
  26. package/dist/esm/sqm-empty_4.entry.js +2 -2
  27. package/dist/esm/sqm-google-sign-in.entry.js +1 -1
  28. package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
  29. package/dist/esm/sqm-instant-access-registration.entry.js +3 -3
  30. package/dist/esm/{sqm-lead-checkbox-field-view-81541e40.js → sqm-lead-checkbox-field-view-e461c8d6.js} +1 -1
  31. package/dist/esm/sqm-lead-checkbox-field.entry.js +4 -4
  32. package/dist/esm/{sqm-lead-input-field-view-d543d939.js → sqm-lead-input-field-view-9cf60eea.js} +1 -1
  33. package/dist/esm/sqm-lead-input-field.entry.js +4 -4
  34. package/dist/esm/sqm-leaderboard-rank.entry.js +2 -2
  35. package/dist/esm/sqm-logout-current-user.entry.js +1 -1
  36. package/dist/esm/{sqm-navigation-sidebar-item-view-5a452423.js → sqm-navigation-sidebar-item-view-3d1b3be4.js} +1 -1
  37. package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
  38. package/dist/esm/sqm-navigation-sidebar.entry.js +1 -1
  39. package/dist/esm/sqm-pagination_3.entry.js +3 -3
  40. package/dist/esm/sqm-password-field.entry.js +2 -2
  41. package/dist/esm/sqm-popup-container.entry.js +1 -1
  42. package/dist/esm/{sqm-portal-email-verification-view-5fb1a99e.js → sqm-portal-email-verification-view-ec6d9b7e.js} +1 -1
  43. package/dist/esm/sqm-portal-email-verification.entry.js +3 -3
  44. package/dist/esm/sqm-portal-logout.entry.js +1 -1
  45. package/dist/esm/{sqm-portal-profile-view-e3aef106.js → sqm-portal-profile-view-36eae0a3.js} +1 -1
  46. package/dist/esm/sqm-portal-profile.entry.js +4 -4
  47. package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
  48. package/dist/esm/sqm-portal-registration-form.entry.js +3 -4
  49. package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
  50. package/dist/esm/sqm-portal-verify-email.entry.js +1 -1
  51. package/dist/esm/sqm-qr-code.entry.js +2 -2
  52. package/dist/esm/sqm-referral-table_11.entry.js +5 -5
  53. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
  54. package/dist/esm/sqm-rewards-table_9.entry.js +5 -5
  55. package/dist/esm/sqm-stencilbook.entry.js +116 -72
  56. package/dist/esm/sqm-tab.entry.js +2 -2
  57. package/dist/esm/sqm-tabs.entry.js +3 -3
  58. package/dist/esm/{sqm-user-info-form-view-9a3048d9.js → sqm-user-info-form-view-0a8999d0.js} +2 -2
  59. package/dist/esm/sqm-widget-verification-controller.entry.js +1 -1
  60. package/dist/esm/sqm-widget-verification.entry.js +1 -1
  61. package/dist/esm/{useChildElements-3d872cef.js → useChildElements-daf489b1.js} +1 -1
  62. package/dist/esm/{useInstantAccessRegistration-dda1f52b.js → useInstantAccessRegistration-89e7dfc8.js} +2 -2
  63. package/dist/esm/{useLeadFormState-8d4b2620.js → useLeadFormState-d2f1c87d.js} +2 -2
  64. package/dist/esm/{usePayoutStatus-7404eb9d.js → usePayoutStatus-6be47a64.js} +1 -1
  65. package/dist/{cjs/AsYouType-6788393a.js → esm/usePortalRegistrationForm-fb06b600.js} +211 -2
  66. package/dist/esm/{useReferralCodes-c2e809cf.js → useReferralCodes-75d67509.js} +1 -1
  67. package/dist/esm/{useReferralTable-909ccb28.js → useReferralTable-8e0acee0.js} +3 -3
  68. package/dist/esm/{useRegistrationFormState-24d594ea.js → useRegistrationFormState-a9e156e6.js} +1 -1
  69. package/dist/esm/{useVerificationEmail-55e0e98f.js → useVerificationEmail-66b40965.js} +1 -1
  70. package/dist/esm/{utilities-72c07b09.js → utilities-e6f8716e.js} +1 -1
  71. package/dist/esm-es5/ShadowViewAddon-49bebd13.js +1 -0
  72. package/dist/esm-es5/{data-a581119a.js → data-f2f77358.js} +1 -1
  73. package/dist/esm-es5/{global-58a69018.js → global-5d501632.js} +1 -1
  74. package/dist/esm-es5/{index.module-c9811a48.js → index.module-234e8f5e.js} +1 -1
  75. package/dist/esm-es5/loader.js +1 -1
  76. package/dist/esm-es5/mint-components.js +1 -1
  77. package/dist/esm-es5/{re-render-7e22fb0d.js → re-render-b56bc163.js} +1 -1
  78. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  79. package/dist/esm-es5/sqm-big-stat_49.entry.js +1 -0
  80. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  81. package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
  82. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  83. package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
  84. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  85. package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
  86. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  87. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  88. package/dist/esm-es5/{sqm-lead-checkbox-field-view-81541e40.js → sqm-lead-checkbox-field-view-e461c8d6.js} +1 -1
  89. package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
  90. package/dist/esm-es5/{sqm-lead-input-field-view-d543d939.js → sqm-lead-input-field-view-9cf60eea.js} +1 -1
  91. package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
  92. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  93. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  94. package/dist/esm-es5/{sqm-navigation-sidebar-item-view-5a452423.js → sqm-navigation-sidebar-item-view-3d1b3be4.js} +1 -1
  95. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  96. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  97. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  98. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  99. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  100. package/dist/esm-es5/{sqm-portal-email-verification-view-5fb1a99e.js → sqm-portal-email-verification-view-ec6d9b7e.js} +1 -1
  101. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  102. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  103. package/dist/esm-es5/{sqm-portal-profile-view-e3aef106.js → sqm-portal-profile-view-36eae0a3.js} +1 -1
  104. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  105. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  106. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  107. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  108. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  109. package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
  110. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  111. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  112. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  113. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  114. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  115. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  116. package/dist/esm-es5/{sqm-user-info-form-view-9a3048d9.js → sqm-user-info-form-view-0a8999d0.js} +1 -1
  117. package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
  118. package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
  119. package/dist/esm-es5/{useChildElements-3d872cef.js → useChildElements-daf489b1.js} +1 -1
  120. package/dist/esm-es5/{useInstantAccessRegistration-dda1f52b.js → useInstantAccessRegistration-89e7dfc8.js} +1 -1
  121. package/dist/esm-es5/{useLeadFormState-8d4b2620.js → useLeadFormState-d2f1c87d.js} +1 -1
  122. package/dist/esm-es5/{usePayoutStatus-7404eb9d.js → usePayoutStatus-6be47a64.js} +1 -1
  123. package/dist/esm-es5/usePortalRegistrationForm-fb06b600.js +1 -0
  124. package/dist/esm-es5/{useReferralCodes-c2e809cf.js → useReferralCodes-75d67509.js} +1 -1
  125. package/dist/esm-es5/{useReferralTable-909ccb28.js → useReferralTable-8e0acee0.js} +1 -1
  126. package/dist/esm-es5/{useRegistrationFormState-24d594ea.js → useRegistrationFormState-a9e156e6.js} +1 -1
  127. package/dist/esm-es5/{useVerificationEmail-55e0e98f.js → useVerificationEmail-66b40965.js} +1 -1
  128. package/dist/esm-es5/{utilities-72c07b09.js → utilities-e6f8716e.js} +1 -1
  129. package/dist/mint-components/mint-components.esm.js +1 -1
  130. package/dist/mint-components/mint-components.js +1 -1
  131. package/dist/mint-components/{p-b00e8365.entry.js → p-01aa5c0d.entry.js} +1 -1
  132. package/dist/mint-components/{p-26a7051d.system.entry.js → p-04603078.system.entry.js} +1 -1
  133. package/dist/mint-components/{p-171310d9.system.js → p-08c49143.system.js} +1 -1
  134. package/dist/mint-components/{p-6076dbaf.entry.js → p-0b6b03fa.entry.js} +1 -1
  135. package/dist/mint-components/{p-1215518e.system.js → p-0ba04831.system.js} +1 -1
  136. package/dist/mint-components/{p-12e6cea7.entry.js → p-0bd7de3e.entry.js} +2 -2
  137. package/dist/mint-components/{p-988f236f.js → p-0e1f3ce2.js} +1 -1
  138. package/dist/mint-components/{p-49400aab.js → p-10ad4cec.js} +2 -2
  139. package/dist/mint-components/{p-9eba8408.js → p-177a4691.js} +1 -1
  140. package/dist/mint-components/p-1830bbfb.js +1 -0
  141. package/dist/mint-components/{p-5b7a896e.system.entry.js → p-234d0680.system.entry.js} +1 -1
  142. package/dist/mint-components/{p-a7e35f51.system.js → p-23c58c4f.system.js} +2 -2
  143. package/dist/mint-components/{p-17a0f310.system.js → p-23d089ee.system.js} +1 -1
  144. package/dist/mint-components/{p-1aa9136c.js → p-24e20ee2.js} +1 -1
  145. package/dist/mint-components/p-259285a8.system.entry.js +1 -0
  146. package/dist/mint-components/{p-40c33b6a.system.entry.js → p-26796f69.system.entry.js} +1 -1
  147. package/dist/mint-components/p-26fdb210.js +1 -0
  148. package/dist/mint-components/{p-6c82d60c.system.js → p-286aa5b9.system.js} +1 -1
  149. package/dist/mint-components/{p-9c79ab08.js → p-2ce4c7a3.js} +2 -2
  150. package/dist/mint-components/{p-4cc72a4e.system.js → p-2dcb0db6.system.js} +1 -1
  151. package/dist/mint-components/{p-c30ad421.js → p-323c6d02.js} +1 -1
  152. package/dist/mint-components/{p-720f03e2.system.js → p-33e1a29e.system.js} +1 -1
  153. package/dist/mint-components/{p-ba79655c.system.js → p-342921b9.system.js} +1 -1
  154. package/dist/mint-components/{p-a32afaaa.entry.js → p-3825831b.entry.js} +1 -1
  155. package/dist/mint-components/{p-2700136f.system.entry.js → p-38ed3cbd.system.entry.js} +1 -1
  156. package/dist/mint-components/{p-c95a437e.entry.js → p-3d02278d.entry.js} +1 -1
  157. package/dist/mint-components/{p-0c024cf0.system.entry.js → p-3d12a14b.system.entry.js} +1 -1
  158. package/dist/mint-components/{p-f5256738.system.entry.js → p-3ed269bf.system.entry.js} +1 -1
  159. package/dist/mint-components/{p-6a5df328.js → p-3fede0f7.js} +1 -1
  160. package/dist/mint-components/{p-625ca62f.entry.js → p-3ff0f231.entry.js} +1 -1
  161. package/dist/mint-components/{p-e1422b78.entry.js → p-4363a896.entry.js} +1 -1
  162. package/dist/mint-components/{p-f3613921.system.entry.js → p-476a8091.system.entry.js} +1 -1
  163. package/dist/mint-components/{p-7780cac1.system.entry.js → p-50eaba5b.system.entry.js} +1 -1
  164. package/dist/mint-components/{p-d09d3b8f.system.js → p-51e5a7da.system.js} +1 -1
  165. package/dist/mint-components/p-52398c8e.system.entry.js +1 -0
  166. package/dist/mint-components/{p-2ea3eea9.system.entry.js → p-527c0244.system.entry.js} +1 -1
  167. package/dist/mint-components/{p-72b914b9.system.entry.js → p-536a5aff.system.entry.js} +1 -1
  168. package/dist/mint-components/p-5784be79.system.entry.js +1 -0
  169. package/dist/mint-components/{p-e3b4e06a.system.entry.js → p-5af01051.system.entry.js} +1 -1
  170. package/dist/mint-components/{p-3b46fae5.entry.js → p-5d17b387.entry.js} +1 -1
  171. package/dist/mint-components/{p-d9780ae9.entry.js → p-5de55368.entry.js} +1 -1
  172. package/dist/mint-components/{p-78c754de.system.entry.js → p-612091c6.system.entry.js} +1 -1
  173. package/dist/mint-components/{p-c6e8086f.system.entry.js → p-62d018f0.system.entry.js} +1 -1
  174. package/dist/mint-components/{p-dc5bca55.entry.js → p-636a841f.entry.js} +1 -1
  175. package/dist/mint-components/{p-829cb9ed.system.entry.js → p-63a928e0.system.entry.js} +1 -1
  176. package/dist/mint-components/{p-f7e49c12.entry.js → p-65f79e43.entry.js} +1 -1
  177. package/dist/mint-components/{p-9d46f87f.system.entry.js → p-6a0440ed.system.entry.js} +1 -1
  178. package/dist/mint-components/{p-9ba07029.system.entry.js → p-702f3adb.system.entry.js} +1 -1
  179. package/dist/mint-components/{p-d399b343.system.entry.js → p-72321b06.system.entry.js} +1 -1
  180. package/dist/mint-components/p-72d6c425.system.js +1 -0
  181. package/dist/mint-components/{p-8afb47c5.system.entry.js → p-73aeefed.system.entry.js} +1 -1
  182. package/dist/mint-components/{p-0ec54f97.js → p-747479dc.js} +1 -1
  183. package/dist/mint-components/{p-101f0c41.entry.js → p-78fc0c3c.entry.js} +1 -1
  184. package/dist/mint-components/{p-71af93e3.js → p-7ab26f3d.js} +1 -1
  185. package/dist/mint-components/{p-0087ad39.system.js → p-825b39e0.system.js} +1 -1
  186. package/dist/mint-components/{p-8618e8f6.system.js → p-828d27ac.system.js} +1 -1
  187. package/dist/mint-components/{p-8d9fa981.system.js → p-844aaef2.system.js} +1 -1
  188. package/dist/mint-components/p-84911f08.system.js +1 -0
  189. package/dist/mint-components/{p-9491f5fb.system.entry.js → p-8752bcd1.system.entry.js} +1 -1
  190. package/dist/mint-components/{p-867b2baf.system.js → p-8901a533.system.js} +1 -1
  191. package/dist/mint-components/{p-5fbe6356.system.js → p-8bf8afb9.system.js} +1 -1
  192. package/dist/mint-components/{p-ac86903a.system.entry.js → p-8dda2a7f.system.entry.js} +1 -1
  193. package/dist/mint-components/{p-43ad51bc.entry.js → p-930f37bd.entry.js} +1 -1
  194. package/dist/mint-components/p-964b09f2.js +1 -0
  195. package/dist/mint-components/p-96749142.entry.js +273 -0
  196. package/dist/mint-components/{p-e174b704.system.js → p-96b16a48.system.js} +1 -1
  197. package/dist/mint-components/{p-ff0e1564.system.js → p-98e0a022.system.js} +1 -1
  198. package/dist/mint-components/{p-bf044217.js → p-9953648f.js} +1 -1
  199. package/dist/mint-components/p-9ad42a61.entry.js +1 -0
  200. package/dist/mint-components/{p-e19f0908.entry.js → p-9c4cac09.entry.js} +2 -2
  201. package/dist/mint-components/{p-f3c2074b.system.entry.js → p-9c80871f.system.entry.js} +1 -1
  202. package/dist/mint-components/{p-e8bda98a.system.entry.js → p-9d19a0f7.system.entry.js} +1 -1
  203. package/dist/mint-components/{p-8931d05e.entry.js → p-9da60671.entry.js} +1 -1
  204. package/dist/mint-components/p-9ef4172c.entry.js +1 -0
  205. package/dist/mint-components/p-a6e177d8.system.entry.js +1 -0
  206. package/dist/mint-components/{p-027c0b10.js → p-a82c8b60.js} +1 -1
  207. package/dist/mint-components/p-ab38b332.system.js +1 -0
  208. package/dist/mint-components/{p-58c79873.entry.js → p-ad550231.entry.js} +1 -1
  209. package/dist/mint-components/p-af123d2b.system.js +1 -0
  210. package/dist/mint-components/p-b08373f5.entry.js +9 -0
  211. package/dist/mint-components/{p-bb5d153f.system.js → p-b5559e34.system.js} +1 -1
  212. package/dist/mint-components/{p-dcc50d90.entry.js → p-bb476395.entry.js} +1 -1
  213. package/dist/mint-components/{p-bcac83f0.system.js → p-c09d2b35.system.js} +1 -1
  214. package/dist/mint-components/{p-deecffd0.system.entry.js → p-c16d9c80.system.entry.js} +1 -1
  215. package/dist/mint-components/p-c4e08253.js +13 -0
  216. package/dist/mint-components/{p-fcf8bdbc.system.entry.js → p-c7f34690.system.entry.js} +1 -1
  217. package/dist/mint-components/{p-29398c98.entry.js → p-c7f385d3.entry.js} +1 -1
  218. package/dist/mint-components/{p-ee92a728.system.entry.js → p-c8f2c3b8.system.entry.js} +1 -1
  219. package/dist/mint-components/{p-f6eae77c.js → p-cbeab288.js} +1 -1
  220. package/dist/mint-components/{p-a4e8eb33.entry.js → p-cbf3a928.entry.js} +1 -1
  221. package/dist/mint-components/{p-a974c549.js → p-cd3ba2b4.js} +1 -1
  222. package/dist/mint-components/p-d15947d0.js +448 -0
  223. package/dist/mint-components/{p-011c0990.system.entry.js → p-d170e29a.system.entry.js} +1 -1
  224. package/dist/mint-components/{p-7e323f2c.entry.js → p-d3f86ec6.entry.js} +1 -1
  225. package/dist/mint-components/p-d49de8ea.entry.js +11 -0
  226. package/dist/mint-components/{p-29ba2eaa.entry.js → p-d9f01878.entry.js} +1 -1
  227. package/dist/mint-components/{p-386ec00c.entry.js → p-de0566e1.entry.js} +1 -1
  228. package/dist/mint-components/{p-f5fff87e.js → p-e08b7435.js} +1 -1
  229. package/dist/mint-components/{p-36a1fa33.system.entry.js → p-e1a08323.system.entry.js} +1 -1
  230. package/dist/mint-components/{p-60ec0961.system.entry.js → p-e1a7d141.system.entry.js} +1 -1
  231. package/dist/mint-components/{p-a8c86cd8.system.entry.js → p-eacd3c8f.system.entry.js} +1 -1
  232. package/dist/mint-components/p-ebde83fc.entry.js +1 -0
  233. package/dist/mint-components/{p-621f3e30.entry.js → p-ec9027cf.entry.js} +1 -1
  234. package/dist/mint-components/{p-af69ee79.system.entry.js → p-ed7ab864.system.entry.js} +1 -1
  235. package/dist/mint-components/{p-088f082f.js → p-eff405e5.js} +1 -1
  236. package/dist/mint-components/{p-ee3a7577.entry.js → p-f08dd2a8.entry.js} +1 -1
  237. package/dist/mint-components/{p-0b9b1b36.system.entry.js → p-f237f96d.system.entry.js} +1 -1
  238. package/dist/mint-components/{p-ad3ebf4d.entry.js → p-f776cd83.entry.js} +1 -1
  239. package/dist/mint-components/p-f84706aa.entry.js +13 -0
  240. package/dist/mint-components/p-f862be0b.entry.js +1 -0
  241. package/dist/mint-components/{p-8de73da9.js → p-fb8927aa.js} +1 -1
  242. package/dist/mint-components/{p-30278955.entry.js → p-fc7d85c7.entry.js} +1 -1
  243. package/dist/mint-components/{p-75b8fd75.entry.js → p-fe14d2af.entry.js} +1 -1
  244. package/dist/types/components/sqm-portal-google-login/GoogleLoginForm.stories.d.ts +7 -0
  245. package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +0 -4
  246. package/dist/types/components.d.ts +0 -8
  247. package/docs/docs.docx +0 -0
  248. package/docs/raisins.json +1 -1
  249. package/grapesjs/grapesjs.js +1 -1
  250. package/package.json +1 -1
  251. package/dist/cjs/sqm-base-registration-form-view-69a4b615.js +0 -74
  252. package/dist/cjs/sqm-portal-google-login.cjs.entry.js +0 -130
  253. package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +0 -381
  254. package/dist/cjs/sqm-portal-login-view-bb50304c.js +0 -58
  255. package/dist/cjs/usePortalLogin-1c022d8d.js +0 -74
  256. package/dist/cjs/usePortalRegistrationForm-75b647fe.js +0 -215
  257. package/dist/esm/sqm-base-registration-form-view-9e97d8b4.js +0 -72
  258. package/dist/esm/sqm-portal-google-login.entry.js +0 -126
  259. package/dist/esm/sqm-portal-google-registration-form.entry.js +0 -377
  260. package/dist/esm/sqm-portal-login-view-7670cd86.js +0 -56
  261. package/dist/esm/usePortalLogin-f95bbc67.js +0 -72
  262. package/dist/esm/usePortalRegistrationForm-1eb3cd72.js +0 -213
  263. package/dist/esm-es5/AsYouType-46f67d0d.js +0 -1
  264. package/dist/esm-es5/ShadowViewAddon-78a1c35c.js +0 -1
  265. package/dist/esm-es5/sqm-base-registration-form-view-9e97d8b4.js +0 -1
  266. package/dist/esm-es5/sqm-big-stat_47.entry.js +0 -1
  267. package/dist/esm-es5/sqm-portal-google-login.entry.js +0 -1
  268. package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +0 -1
  269. package/dist/esm-es5/sqm-portal-login-view-7670cd86.js +0 -1
  270. package/dist/esm-es5/usePortalLogin-f95bbc67.js +0 -1
  271. package/dist/esm-es5/usePortalRegistrationForm-1eb3cd72.js +0 -1
  272. package/dist/mint-components/p-121cdc60.js +0 -1
  273. package/dist/mint-components/p-125a894f.js +0 -1
  274. package/dist/mint-components/p-1b79b186.entry.js +0 -11
  275. package/dist/mint-components/p-1cd0e1e9.system.js +0 -1
  276. package/dist/mint-components/p-20c40fdf.system.js +0 -1
  277. package/dist/mint-components/p-240bec23.js +0 -1
  278. package/dist/mint-components/p-28e23d75.system.entry.js +0 -1
  279. package/dist/mint-components/p-40752a0f.entry.js +0 -1
  280. package/dist/mint-components/p-44fc6029.js +0 -1
  281. package/dist/mint-components/p-513f5d80.js +0 -1
  282. package/dist/mint-components/p-51a6a779.js +0 -1
  283. package/dist/mint-components/p-537a3894.system.js +0 -1
  284. package/dist/mint-components/p-6559d0b2.entry.js +0 -273
  285. package/dist/mint-components/p-6a0ddee0.entry.js +0 -1
  286. package/dist/mint-components/p-74a39425.system.entry.js +0 -1
  287. package/dist/mint-components/p-80569911.system.js +0 -1
  288. package/dist/mint-components/p-92a54b0c.entry.js +0 -1
  289. package/dist/mint-components/p-947bacd1.system.js +0 -1
  290. package/dist/mint-components/p-95b6e903.entry.js +0 -1
  291. package/dist/mint-components/p-976ee669.js +0 -1
  292. package/dist/mint-components/p-97dc6863.js +0 -13
  293. package/dist/mint-components/p-9d362d44.system.js +0 -1
  294. package/dist/mint-components/p-a470e203.entry.js +0 -13
  295. package/dist/mint-components/p-b3510ca0.system.entry.js +0 -1
  296. package/dist/mint-components/p-bd093069.system.entry.js +0 -1
  297. package/dist/mint-components/p-cc8ca3ff.system.entry.js +0 -1
  298. package/dist/mint-components/p-d08bcd88.entry.js +0 -1
  299. package/dist/mint-components/p-d69c0a32.system.entry.js +0 -1
  300. package/dist/mint-components/p-d88d8ffe.entry.js +0 -1
  301. package/dist/mint-components/p-e115d0a2.entry.js +0 -9
  302. package/dist/mint-components/p-e3ee8c37.system.js +0 -1
  303. package/dist/mint-components/p-ee83de0e.js +0 -448
  304. package/dist/mint-components/p-f5820d03.system.js +0 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@saasquatch/mint-components",
3
3
  "title": "Mint Components",
4
- "version": "2.0.8",
4
+ "version": "2.0.9",
5
5
  "description": "A minimal design library with components for referral and loyalty experiences. Built with Shoelace components by Saasquatch.",
6
6
  "icon": "https://res.cloudinary.com/saasquatch/image/upload/v1652219900/squatch-assets/For_Mint.svg",
7
7
  "raisins": "docs/raisins.json",
@@ -1,74 +0,0 @@
1
- 'use strict';
2
-
3
- const index = require('./index-a43a63b4.js');
4
- const JSS = require('./JSS-8503a151.js');
5
- const mixins = require('./mixins-4761d472.js');
6
- const sqmTextSpanView = require('./sqm-text-span-view-7a61ae4c.js');
7
-
8
- const style = {
9
- Wrapper: mixins.AuthWrapper,
10
- Column: mixins.AuthColumn,
11
- HostBlock: mixins.HostBlock,
12
- ":host": {
13
- margin: "0 auto",
14
- width: "100%",
15
- },
16
- ButtonsContainer: {
17
- ...mixins.AuthButtonsContainer,
18
- gap: "var(--sl-spacing-medium)",
19
- "& > *": {
20
- margin: "0 !important",
21
- },
22
- },
23
- ErrorStyle: mixins.ErrorStyles,
24
- };
25
- const vanillaStyle = `
26
- sqm-portal-register {
27
- margin: 0 auto;
28
- width: 100%;
29
- display: block;
30
- }
31
-
32
- :host{
33
- display: block;
34
- }
35
-
36
- :host([hidden]) {
37
- display: none;
38
- }
39
- `;
40
- const sheet = JSS.createStyleSheet(style);
41
- const styleString = sheet.toString();
42
- function BaseRegistrationFormView(props) {
43
- var _a, _b;
44
- const { states, content, callbacks } = props;
45
- return (index.h("div", { class: sheet.classes.Wrapper },
46
- index.h("style", { type: "text/css" },
47
- vanillaStyle,
48
- styleString),
49
- index.h(sqmTextSpanView.TextSpanView, { type: "h3" }, content.pageLabel),
50
- index.h("sl-form", { class: sheet.classes.Column, "onSl-submit": callbacks.handleEmailSubmit, novalidate: true },
51
- content.formData,
52
- index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", required: true, validationError: ({ value }) => {
53
- if (!value) {
54
- return content.requiredFieldErrorMessage;
55
- }
56
- // this matches shoelace validation, but could be better
57
- if (!value.includes("@")) {
58
- return content.invalidEmailErrorMessage;
59
- }
60
- } }, (((_a = states === null || states === void 0 ? void 0 : states.validationErrors) === null || _a === void 0 ? void 0 : _a.email) ? {
61
- class: sheet.classes.ErrorStyle,
62
- helpText: ((_b = states === null || states === void 0 ? void 0 : states.validationErrors) === null || _b === void 0 ? void 0 : _b.email) ||
63
- content.requiredFieldErrorMessage,
64
- }
65
- : []))),
66
- content.terms,
67
- index.h("div", { class: sheet.classes.ButtonsContainer },
68
- index.h("sl-button", { submit: true, exportparts: "base: primarybutton-base", type: "primary", style: { margin: "0" } }, content.submitLabel || "Register"),
69
- index.h("sl-menu-divider", { style: { margin: "0" } }),
70
- content.googleButton,
71
- content.secondaryButton))));
72
- }
73
-
74
- exports.BaseRegistrationFormView = BaseRegistrationFormView;
@@ -1,130 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-a43a63b4.js');
6
- const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js');
7
- const index_module = require('./index.module-4f54e412.js');
8
- require('./jsonpointer-11327262.js');
9
- const cjs = require('./cjs-1066ec21.js');
10
- require('./utils-6847bc06.js');
11
- const JSS = require('./JSS-8503a151.js');
12
- require('./mixins-4761d472.js');
13
- require('./sqm-text-span-view-7a61ae4c.js');
14
- const sqmPortalLoginView = require('./sqm-portal-login-view-bb50304c.js');
15
- const usePortalLogin = require('./usePortalLogin-1c022d8d.js');
16
-
17
- const PortalGoogleLogin = class {
18
- constructor(hostRef) {
19
- index.registerInstance(this, hostRef);
20
- this.ignored = true;
21
- /**
22
- * Redirect participants to this page after they successfully login.
23
- *
24
- * @uiName Login redirect
25
- * @uiWidget pageSelect
26
- */
27
- this.nextPage = "/";
28
- /**
29
- * @uiName Email field label
30
- */
31
- this.emailLabel = "Email";
32
- /**
33
- * @uiName Password field label
34
- */
35
- this.passwordLabel = "Password";
36
- /**
37
- * @uiName Submit button text
38
- */
39
- this.submitLabel = "Sign In";
40
- /**
41
- * Redirect participants to this page to reset their password
42
- * @uiName Forgot password redirect
43
- * @uiWidget pageSelect
44
- */
45
- this.forgotPasswordPath = "/forgotPassword";
46
- /**
47
- * @uiName Forgot password text
48
- */
49
- this.forgotPasswordLabel = "Forgot Password?";
50
- /**
51
- * @uiName Register button text
52
- */
53
- this.registerLabel = "Register";
54
- /**
55
- * Redirect participants to this page to start registration.
56
- * @uiName Register button redirect
57
- * @uiWidget pageSelect
58
- */
59
- this.registerPath = "/register";
60
- /**
61
- * @uiName Heading label
62
- * @uiWidget textArea
63
- */
64
- this.pageLabel = "Sign in to your account";
65
- /**
66
- * @uiName Network error message
67
- * Displayed when the login fails due to a network error. The participant can try refreshing the page.
68
- */
69
- this.networkErrorMessage = "An error occurred while logging you in. Please refresh the page and try again.";
70
- /**
71
- * @uiName Google account error message
72
- * Displayed when user tries to sign in with Google account but has not registered.
73
- */
74
- this.googleUserNotRegisteredError = "Your Google account has not registered on our platform. Please complete the registration process with your Google account.";
75
- /**
76
- * @uiName Register CTA
77
- */
78
- this.registerCTA = "Don't have an account?";
79
- domContextHooks_module.h$1(this);
80
- }
81
- disconnectedCallback() { }
82
- render() {
83
- const { states, callbacks } = index_module.isDemo()
84
- ? useLoginDemo(this)
85
- : usePortalLogin.usePortalLogin(this);
86
- const styles = {
87
- RegisterButton: {
88
- "&::part(label)": {
89
- padding: "0",
90
- },
91
- },
92
- };
93
- const sheet = JSS.createStyleSheet(styles);
94
- const styleString = sheet.toString();
95
- const content = {
96
- forgotPasswordButton: (index.h("slot", { name: "forgotPassword" }, index.h("a", { onClick: () => index_module.jn.push(states.forgotPasswordPath) }, this.forgotPasswordLabel))),
97
- googleButton: (index.h("sqm-google-sign-in", { onInitComplete: callbacks.googleSubmit })),
98
- secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("style", null, styleString), index.h("span", null, this.registerCTA, " ", index.h("sl-button", { size: "large", type: "text", disabled: states.loading, onClick: () => index_module.jn.push(states.registerPath), className: sheet.classes.RegisterButton }, this.registerLabel)))),
99
- emailLabel: this.emailLabel,
100
- passwordLabel: this.passwordLabel,
101
- submitLabel: this.submitLabel,
102
- pageLabel: this.pageLabel,
103
- };
104
- return (index.h(sqmPortalLoginView.PortalLoginView, { states: states, callbacks: callbacks, content: content }));
105
- }
106
- };
107
- function useLoginDemo(props) {
108
- return cjs.cjs({
109
- states: {
110
- error: "",
111
- loading: false,
112
- forgotPasswordPath: "/forgotPassword",
113
- registerPath: "/register",
114
- showLoginForm: "manual",
115
- },
116
- callbacks: {
117
- googleSubmit: async () => {
118
- console.log("google submit");
119
- },
120
- submit: async (_event) => {
121
- console.log("submit");
122
- },
123
- },
124
- content: {
125
- googleButton: null,
126
- },
127
- }, props.demoData || {}, { arrayMerge: (_, a) => a });
128
- }
129
-
130
- exports.sqm_portal_google_login = PortalGoogleLogin;
@@ -1,381 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-a43a63b4.js');
6
- const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js');
7
- const index_module = require('./index.module-4f54e412.js');
8
- const jsonpointer = require('./jsonpointer-11327262.js');
9
- const cjs = require('./cjs-1066ec21.js');
10
- const JSS = require('./JSS-8503a151.js');
11
- require('./mixins-4761d472.js');
12
- require('./sqm-text-span-view-7a61ae4c.js');
13
- const useRegistrationFormState = require('./useRegistrationFormState-bbee6e7b.js');
14
- const sqmBaseRegistrationFormView = require('./sqm-base-registration-form-view-69a4b615.js');
15
- const sqmPortalRegistrationFormView = require('./sqm-portal-registration-form-view-5a96c2f5.js');
16
- require('./AsYouType-6788393a.js');
17
- const usePortalRegistrationForm = require('./usePortalRegistrationForm-75b647fe.js');
18
-
19
- class InvalidTokenError extends Error {
20
- }
21
- InvalidTokenError.prototype.name = "InvalidTokenError";
22
- function b64DecodeUnicode(str) {
23
- return decodeURIComponent(atob(str).replace(/(.)/g, (m, p) => {
24
- let code = p.charCodeAt(0).toString(16).toUpperCase();
25
- if (code.length < 2) {
26
- code = "0" + code;
27
- }
28
- return "%" + code;
29
- }));
30
- }
31
- function base64UrlDecode(str) {
32
- let output = str.replace(/-/g, "+").replace(/_/g, "/");
33
- switch (output.length % 4) {
34
- case 0:
35
- break;
36
- case 2:
37
- output += "==";
38
- break;
39
- case 3:
40
- output += "=";
41
- break;
42
- default:
43
- throw new Error("base64 string is not of the correct length");
44
- }
45
- try {
46
- return b64DecodeUnicode(output);
47
- }
48
- catch (err) {
49
- return atob(output);
50
- }
51
- }
52
- function jwtDecode(token, options) {
53
- if (typeof token !== "string") {
54
- throw new InvalidTokenError("Invalid token specified: must be a string");
55
- }
56
- options || (options = {});
57
- const pos = options.header === true ? 0 : 1;
58
- const part = token.split(".")[pos];
59
- if (typeof part !== "string") {
60
- throw new InvalidTokenError(`Invalid token specified: missing part #${pos + 1}`);
61
- }
62
- let decoded;
63
- try {
64
- decoded = base64UrlDecode(part);
65
- }
66
- catch (e) {
67
- throw new InvalidTokenError(`Invalid token specified: invalid base64 for part #${pos + 1} (${e.message})`);
68
- }
69
- try {
70
- return JSON.parse(decoded);
71
- }
72
- catch (e) {
73
- throw new InvalidTokenError(`Invalid token specified: invalid json for part #${pos + 1} (${e.message})`);
74
- }
75
- }
76
-
77
- function usePortalGoogleRegistrationForm(props) {
78
- const [registrationFormState, setRegistrationFormState] = useRegistrationFormState.useRegistrationForm();
79
- const [showRegistrationForm, setShowRegistrationForm] = domContextHooks_module.useState({
80
- mode: "base",
81
- });
82
- const handleEmailSubmit = async (event) => {
83
- const formControls = event.target.getFormControls();
84
- let formData = {};
85
- let validationErrors = {};
86
- formControls.forEach((control) => {
87
- if (!control.name)
88
- return;
89
- const key = control.name;
90
- const value = control.value;
91
- jsonpointer.jsonpointer.set(formData, key, value);
92
- if (control.required && !value) {
93
- jsonpointer.jsonpointer.set(validationErrors, key, props.requiredFieldErrorMessage);
94
- }
95
- if (typeof control.validationError === "function") {
96
- const validate = control.validationError;
97
- const validationError = validate({
98
- control,
99
- key,
100
- value,
101
- });
102
- if (validationError)
103
- jsonpointer.jsonpointer.set(validationErrors, key, validationError);
104
- }
105
- });
106
- if (Object.keys(validationErrors).length) {
107
- // early return for validation errors
108
- setRegistrationFormState({
109
- ...registrationFormState,
110
- loading: false,
111
- error: "",
112
- validationErrors,
113
- });
114
- return;
115
- }
116
- setRegistrationFormState({
117
- ...registrationFormState,
118
- validationErrors: {},
119
- initialData: {
120
- ...registrationFormState === null || registrationFormState === void 0 ? void 0 : registrationFormState.initialData,
121
- ...formData,
122
- },
123
- });
124
- setShowRegistrationForm({ mode: "manual" });
125
- };
126
- const handleGoogleInit = (event) => {
127
- var _a;
128
- if (!((_a = event.detail) === null || _a === void 0 ? void 0 : _a.credential))
129
- return;
130
- try {
131
- const res = jwtDecode(event.detail.credential);
132
- setRegistrationFormState({
133
- ...registrationFormState,
134
- _googleOAuthIdToken: event.detail.credential,
135
- initialData: {
136
- email: res.email,
137
- firstName: res.given_name,
138
- lastName: res.family_name,
139
- },
140
- });
141
- setShowRegistrationForm({ mode: "google" });
142
- }
143
- catch (e) {
144
- console.error("Failed to decode Google Sign In credential JWT:", e);
145
- }
146
- };
147
- return {
148
- registrationFormState,
149
- showRegistrationForm,
150
- validationErrors: registrationFormState.validationErrors,
151
- handleGoogleInit,
152
- handleEmailSubmit,
153
- };
154
- }
155
-
156
- const PortalGoogleRegistrationForm = class {
157
- constructor(hostRef) {
158
- index.registerInstance(this, hostRef);
159
- this.ignored = true;
160
- /**
161
- * Redirect participants to this page after they successfully register.
162
- *
163
- * @uiName Registration redirect
164
- * @uiWidget pageSelect
165
- */
166
- this.nextPage = "/";
167
- /**
168
- * Redirect participants to this page from their verification email
169
- *
170
- * @uiName Email verification redirect
171
- * @uiWidget pageSelect
172
- */
173
- this.redirectPath = "/verifyEmail";
174
- /**
175
- * @uiName Email field label
176
- */
177
- this.emailLabel = "Email";
178
- /**
179
- * @uiName Password field label
180
- */
181
- this.passwordLabel = "Password";
182
- /**
183
- * @uiName Submit button text
184
- */
185
- this.submitLabel = "Register";
186
- /**
187
- * @uiName Login button text
188
- */
189
- this.loginLabel = "Sign in";
190
- /**
191
- * @uiName Confirm password field label
192
- */
193
- this.confirmPasswordLabel = "Confirm Password";
194
- /**
195
- * @uiName Show confirm password field
196
- */
197
- this.confirmPassword = false;
198
- /**
199
- * @uiName Disable password validation
200
- */
201
- this.disablePasswordValidation = false;
202
- /**
203
- * Hides the email and password fields. Note: If you hide default inputs, you must add additional input fields. They must have the input name attributes "email" and "password" for this form to succeed.
204
- *
205
- * @uiName Hide default fields
206
- */
207
- this.hideInputs = false;
208
- /**
209
- * @uiName Header text
210
- */
211
- this.pageLabel = "Register";
212
- /**
213
- * Redirect participants to this page after clicking the login button.
214
- *
215
- * @uiName Login redirect
216
- * @uiWidget pageSelect
217
- */
218
- this.loginPath = "/login";
219
- /**
220
- * Login Call-to-action
221
- *
222
- * @uiName Login CTA
223
- */
224
- this.loginCTA = "Already have an account?";
225
- /**
226
- * The message to be displayed when a required field is not filled.
227
- *
228
- * @uiName Required field message
229
- * @uiWidget textArea
230
- */
231
- this.requiredFieldErrorMessage = "Cannot be empty";
232
- /**
233
- * The message to be displayed when a the form submission fails unexpectedly.
234
- *
235
- * @uiName Network error message
236
- * @uiWidget textArea
237
- */
238
- this.networkErrorMessage = "Network request failed.";
239
- /**
240
- * The message to be displayed when password inputs do not match.
241
- *
242
- * @uiName Password mismatch message
243
- * @uiWidget textArea
244
- */
245
- this.passwordMismatchErrorMessage = "Passwords do not match.";
246
- /**
247
- * The message to be displayed when the email used is invalid or blocked.
248
- *
249
- * @uiName Invalid email message
250
- * @uiWidget textArea
251
- */
252
- this.invalidEmailErrorMessage = "Must be a valid email address";
253
- /**
254
- * The message to be displayed when the registration form is disabled.
255
- *
256
- * @uiName Form disabled message
257
- * @uiWidget textArea
258
- */
259
- this.formDisabledErrorMessage = "The registration form is currently disabled.";
260
- /**
261
- * @uiName Password requirement met
262
- */
263
- this.meetsRequirementsText = "Password has met all requirements";
264
- /**
265
- * @uiName Password requirement failed
266
- */
267
- this.doesNotMeetRequirementsText = "Password must meet the following requirements:";
268
- /**
269
- * @uiName Minimum length text
270
- */
271
- this.minErrorText = "be a minimum of 8 characters";
272
- /**
273
- * @uiName Missing uppercase text
274
- */
275
- this.uppercaseErrorText = "contain at least 1 uppercase character";
276
- /**
277
- * @uiName Missing lowercase text
278
- */
279
- this.lowercaseErrorText = "contain at least 1 lowercase character";
280
- /**
281
- * @uiName Missing number or symbol text
282
- */
283
- this.hasErrorText = "contain at least 1 number or symbol";
284
- /**
285
- * Can be "signup_with", "signin_with", "continue_with", or "signin"
286
- *
287
- * @uiName Google button text
288
- */
289
- this.googleButtonText = "signup_with";
290
- domContextHooks_module.h$1(this);
291
- }
292
- disconnectedCallback() { }
293
- render() {
294
- const { states, callbacks, refs } = index_module.isDemo()
295
- ? useRegisterDemo(this)
296
- : usePortalRegistrationForm.usePortalRegistrationForm(this);
297
- const styles = {
298
- LoginButton: {
299
- "&::part(label)": {
300
- padding: "0",
301
- },
302
- },
303
- };
304
- const sheet = JSS.createStyleSheet(styles);
305
- const styleString = sheet.toString();
306
- const { handleGoogleInit, handleEmailSubmit, showRegistrationForm, validationErrors, } = index_module.isDemo() ? useGoogleDemo(this) : usePortalGoogleRegistrationForm(this);
307
- const content = {
308
- formData: index.h("slot", { name: "formData" }),
309
- googleButton: (index.h("sqm-google-sign-in", { text: this.googleButtonText, onInitComplete: handleGoogleInit })),
310
- secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("style", null, styleString), index.h("span", null, this.loginCTA, " ", index.h("sl-button", { size: "large", type: "text", disabled: states.loading, onClick: () => index_module.jn.push(states.loginPath), className: sheet.classes.LoginButton }, this.loginLabel), " "))),
311
- terms: index.h("slot", { name: "terms" }),
312
- emailLabel: this.emailLabel,
313
- passwordLabel: this.passwordLabel,
314
- submitLabel: this.submitLabel,
315
- pageLabel: this.pageLabel,
316
- confirmPasswordLabel: this.confirmPasswordLabel,
317
- networkErrorMessage: this.networkErrorMessage,
318
- passwordMismatchErrorMessage: this.passwordMismatchErrorMessage,
319
- invalidEmailErrorMessage: this.invalidEmailErrorMessage,
320
- formDisabledErrorMessage: this.formDisabledErrorMessage,
321
- requiredFieldErrorMessage: this.requiredFieldErrorMessage,
322
- meetsRequirementsText: this.meetsRequirementsText,
323
- doesNotMeetRequirementsText: this.doesNotMeetRequirementsText,
324
- minErrorText: this.minErrorText,
325
- uppercaseErrorText: this.uppercaseErrorText,
326
- lowercaseErrorText: this.lowercaseErrorText,
327
- hasErrorText: this.hasErrorText,
328
- };
329
- if (showRegistrationForm.mode === "base") {
330
- return (index.h(sqmBaseRegistrationFormView.BaseRegistrationFormView, { states: {
331
- validationErrors,
332
- }, callbacks: { handleEmailSubmit }, content: content }));
333
- }
334
- return (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, { states: {
335
- ...states,
336
- emailDisabled: true,
337
- hidePasswords: showRegistrationForm.mode === "google",
338
- }, callbacks: callbacks, content: content, refs: refs }));
339
- }
340
- };
341
- function useRegisterDemo(props) {
342
- return cjs.cjs({
343
- states: {
344
- error: "",
345
- loading: false,
346
- confirmPassword: props.confirmPassword,
347
- hideInputs: props.hideInputs || false,
348
- customPasswordField: false,
349
- loginPath: "/login",
350
- },
351
- callbacks: {
352
- handleGoogleInit: () => { },
353
- setShowRegistrationForm: () => { },
354
- submit: async (_event) => {
355
- console.log("submit");
356
- },
357
- inputFunction: () => { },
358
- },
359
- content: {
360
- pageLabel: "Register",
361
- formData: null,
362
- passwordField: null,
363
- },
364
- refs: {
365
- formRef: {},
366
- },
367
- }, props.demoData || {}, { arrayMerge: (_, a) => a });
368
- }
369
- function useGoogleDemo(props) {
370
- const [showRegistrationForm, setShowRegistrationForm] = domContextHooks_module.useState({
371
- mode: "base",
372
- });
373
- return cjs.cjs({
374
- validationErrors: {},
375
- handleEmailSubmit: () => setShowRegistrationForm({ mode: "manual" }),
376
- showRegistrationForm,
377
- handleGoogleInit: () => setShowRegistrationForm({ mode: "google" }),
378
- }, props.demoGoogleData || {}, { arrayMerge: (_, a) => a });
379
- }
380
-
381
- exports.sqm_portal_google_registration_form = PortalGoogleRegistrationForm;
@@ -1,58 +0,0 @@
1
- 'use strict';
2
-
3
- const index = require('./index-a43a63b4.js');
4
- const JSS = require('./JSS-8503a151.js');
5
- const mixins = require('./mixins-4761d472.js');
6
- const sqmTextSpanView = require('./sqm-text-span-view-7a61ae4c.js');
7
-
8
- const style = {
9
- Wrapper: mixins.AuthWrapper,
10
- Column: mixins.AuthColumn,
11
- ForgotButtonContainer: {
12
- display: "inline",
13
- cursor: "pointer",
14
- "font-size": "13px",
15
- "font-weight": "600",
16
- color: "var(--sqm-text-subdued)",
17
- margin: "0",
18
- },
19
- ButtonsContainer: {
20
- ...mixins.AuthButtonsContainer,
21
- gap: "var(--sl-spacing-medium)",
22
- "& > *": {
23
- margin: "0 !important",
24
- },
25
- },
26
- };
27
- const vanillaStyle = `
28
- :host {
29
- display: block;
30
- }
31
- :host([hidden]): {
32
- display: none;
33
- }
34
- `;
35
- const sheet = JSS.createStyleSheet(style);
36
- const styleString = sheet.toString();
37
- function PortalLoginView(props) {
38
- const { states, callbacks, content } = props;
39
- return (index.h("div", { class: sheet.classes.Wrapper, part: "sqm-base" },
40
- index.h("style", { type: "text/css" },
41
- vanillaStyle,
42
- styleString),
43
- index.h(sqmTextSpanView.TextSpanView, { type: "h3" }, content.pageLabel),
44
- index.h("sl-form", { class: sheet.classes.Column, "onSl-submit": callbacks.submit },
45
- props.states.error && (index.h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
46
- index.h("div", { part: "erroralert-text" }, props.states.error))),
47
- index.h("sl-input", { exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading, required: true }),
48
- index.h("div", null,
49
- index.h("sl-input", { exportparts: "label: input-label, base: input-base", type: "password", name: "/password", label: content.passwordLabel || "Password", disabled: states.loading, required: true }),
50
- index.h("div", { class: sheet.classes.ForgotButtonContainer }, content.forgotPasswordButton)),
51
- index.h("div", { class: sheet.classes.ButtonsContainer },
52
- index.h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Login"),
53
- content.googleButton && index.h("sl-menu-divider", null),
54
- content.googleButton,
55
- content.secondaryButton))));
56
- }
57
-
58
- exports.PortalLoginView = PortalLoginView;