@saasquatch/mint-components 2.0.0-67 → 2.0.0-69

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 (184) hide show
  1. package/dist/cjs/{IndirectTaxDetailsView-e5f70b8b.js → IndirectTaxDetailsView-3e88d710.js} +2 -2
  2. package/dist/cjs/{ShadowViewAddon-cd5c186c.js → ShadowViewAddon-646dec73.js} +10 -4
  3. package/dist/cjs/{global-8bba5b3a.js → global-39cb0afc.js} +745 -2
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/mint-components.cjs.js +2 -2
  6. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +3 -3
  7. package/dist/cjs/{sqm-base-registration-form-view-7b95ae7a.js → sqm-base-registration-form-view-69a4b615.js} +9 -4
  8. package/dist/cjs/sqm-big-stat_47.cjs.entry.js +13 -6
  9. package/dist/cjs/sqm-code-verification.cjs.entry.js +1 -1
  10. package/dist/cjs/sqm-email-verification.cjs.entry.js +1 -1
  11. package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
  12. package/dist/cjs/{sqm-lead-checkbox-field-view-340acad0.js → sqm-lead-checkbox-field-view-f1c46d4b.js} +1 -1
  13. package/dist/cjs/sqm-lead-checkbox-field.cjs.entry.js +3 -3
  14. package/dist/cjs/{sqm-lead-input-field-view-06ed3632.js → sqm-lead-input-field-view-6d388092.js} +1 -1
  15. package/dist/cjs/sqm-lead-input-field.cjs.entry.js +3 -3
  16. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +1 -1
  17. package/dist/cjs/sqm-pagination_3.cjs.entry.js +1 -1
  18. package/dist/cjs/{sqm-portal-email-verification-view-5518eb0d.js → sqm-portal-email-verification-view-6b17e545.js} +1 -1
  19. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
  20. package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +25 -18
  21. package/dist/cjs/{sqm-portal-profile-view-615e6975.js → sqm-portal-profile-view-845367bb.js} +1 -1
  22. package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
  23. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
  24. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +1 -1
  25. package/dist/cjs/sqm-stencilbook.cjs.entry.js +14 -11
  26. package/dist/cjs/{useLeadFormState-fd0445f9.js → useLeadFormState-b355759b.js} +1 -1
  27. package/dist/cjs/{utils-83d125fa.js → utils-ac82f977.js} +1 -1
  28. package/dist/collection/components/sqm-base-registration/BaseRegistrationForm.stories.js +2 -2
  29. package/dist/collection/components/sqm-base-registration/sqm-base-registration-form-view.js +9 -4
  30. package/dist/collection/components/sqm-big-stat/useBigStat.js +7 -1
  31. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +1 -1
  32. package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field.js +1 -1
  33. package/dist/collection/components/sqm-input-field/sqm-input-field.js +1 -1
  34. package/dist/collection/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.js +1 -1
  35. package/dist/collection/components/sqm-name-fields/NameFields.stories.js +2 -0
  36. package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +2 -2
  37. package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +31 -1
  38. package/dist/collection/components/sqm-name-fields/useNameFields.js +1 -0
  39. package/dist/collection/components/sqm-password-field/sqm-password-field.js +2 -2
  40. package/dist/collection/components/sqm-portal-google-registration-form/PortalGoogleRegistrationForm.stories.js +1 -0
  41. package/dist/collection/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.js +4 -4
  42. package/dist/collection/components/sqm-portal-google-registration-form/usePortalGoogleRegistrationForm.js +22 -15
  43. package/dist/collection/components/sqm-task-card/sqm-task-card.js +2 -2
  44. package/dist/collection/global/global.js +14 -3
  45. package/dist/collection/global/styles.v1.js +733 -0
  46. package/dist/collection/global/styles.v1.ts +735 -0
  47. package/dist/esm/{IndirectTaxDetailsView-0a57b622.js → IndirectTaxDetailsView-e5d8767d.js} +2 -2
  48. package/dist/esm/{ShadowViewAddon-11ffa85d.js → ShadowViewAddon-5928ca9d.js} +10 -4
  49. package/dist/esm/{global-1099f20d.js → global-943536b9.js} +745 -2
  50. package/dist/esm/loader.js +2 -2
  51. package/dist/esm/mint-components.js +2 -2
  52. package/dist/esm/sqm-banking-info-form_10.entry.js +3 -3
  53. package/dist/esm/{sqm-base-registration-form-view-1a6bb4b4.js → sqm-base-registration-form-view-9e97d8b4.js} +9 -4
  54. package/dist/esm/sqm-big-stat_47.entry.js +13 -6
  55. package/dist/esm/sqm-code-verification.entry.js +1 -1
  56. package/dist/esm/sqm-email-verification.entry.js +1 -1
  57. package/dist/esm/sqm-empty_4.entry.js +1 -1
  58. package/dist/esm/{sqm-lead-checkbox-field-view-cbafee07.js → sqm-lead-checkbox-field-view-adcc49c0.js} +1 -1
  59. package/dist/esm/sqm-lead-checkbox-field.entry.js +3 -3
  60. package/dist/esm/{sqm-lead-input-field-view-f3775c28.js → sqm-lead-input-field-view-c0b5aed5.js} +1 -1
  61. package/dist/esm/sqm-lead-input-field.entry.js +3 -3
  62. package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
  63. package/dist/esm/sqm-pagination_3.entry.js +1 -1
  64. package/dist/esm/{sqm-portal-email-verification-view-7d86299c.js → sqm-portal-email-verification-view-8ceb6302.js} +1 -1
  65. package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
  66. package/dist/esm/sqm-portal-google-registration-form.entry.js +25 -18
  67. package/dist/esm/{sqm-portal-profile-view-3ed13e4d.js → sqm-portal-profile-view-2ec60449.js} +1 -1
  68. package/dist/esm/sqm-portal-profile.entry.js +2 -2
  69. package/dist/esm/sqm-referral-table_11.entry.js +1 -1
  70. package/dist/esm/sqm-rewards-table_9.entry.js +1 -1
  71. package/dist/esm/sqm-stencilbook.entry.js +14 -11
  72. package/dist/esm/{useLeadFormState-c379e5d7.js → useLeadFormState-9a652a42.js} +1 -1
  73. package/dist/esm/{utils-6122971b.js → utils-f27e62dc.js} +1 -1
  74. package/dist/esm-es5/{IndirectTaxDetailsView-0a57b622.js → IndirectTaxDetailsView-e5d8767d.js} +1 -1
  75. package/dist/esm-es5/{ShadowViewAddon-11ffa85d.js → ShadowViewAddon-5928ca9d.js} +1 -1
  76. package/dist/esm-es5/{global-1099f20d.js → global-943536b9.js} +4 -4
  77. package/dist/esm-es5/loader.js +1 -1
  78. package/dist/esm-es5/mint-components.js +1 -1
  79. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  80. package/dist/esm-es5/sqm-base-registration-form-view-9e97d8b4.js +1 -0
  81. package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -1
  82. package/dist/esm-es5/sqm-code-verification.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-lead-checkbox-field-view-cbafee07.js → sqm-lead-checkbox-field-view-adcc49c0.js} +1 -1
  86. package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
  87. package/dist/esm-es5/{sqm-lead-input-field-view-f3775c28.js → sqm-lead-input-field-view-c0b5aed5.js} +1 -1
  88. package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
  89. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  90. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  91. package/dist/esm-es5/{sqm-portal-email-verification-view-7d86299c.js → sqm-portal-email-verification-view-8ceb6302.js} +1 -1
  92. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  93. package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
  94. package/dist/esm-es5/{sqm-portal-profile-view-3ed13e4d.js → sqm-portal-profile-view-2ec60449.js} +1 -1
  95. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  96. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  97. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  98. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  99. package/dist/esm-es5/{useLeadFormState-c379e5d7.js → useLeadFormState-9a652a42.js} +1 -1
  100. package/dist/esm-es5/{utils-6122971b.js → utils-f27e62dc.js} +1 -1
  101. package/dist/mint-components/global/styles.v1.ts +735 -0
  102. package/dist/mint-components/mint-components.esm.js +1 -1
  103. package/dist/mint-components/mint-components.js +1 -1
  104. package/dist/mint-components/{p-4adf23e7.entry.js → p-06b4fa6a.entry.js} +3 -3
  105. package/dist/mint-components/{p-aa08457e.system.js → p-08b373b9.system.js} +1 -1
  106. package/dist/mint-components/{p-6445e926.system.entry.js → p-0ac84da5.system.entry.js} +1 -1
  107. package/dist/mint-components/{p-14e813a7.system.entry.js → p-0cb51ea1.system.entry.js} +1 -1
  108. package/dist/mint-components/{p-d2bb770d.system.entry.js → p-11927355.system.entry.js} +1 -1
  109. package/dist/mint-components/{p-a5c63310.entry.js → p-124af9d6.entry.js} +1 -1
  110. package/dist/mint-components/{p-d3120982.system.entry.js → p-19de8749.system.entry.js} +1 -1
  111. package/dist/mint-components/{p-4ce51b1c.system.entry.js → p-1e406d04.system.entry.js} +1 -1
  112. package/dist/mint-components/{p-010957a1.entry.js → p-20f8e7ca.entry.js} +1 -1
  113. package/dist/mint-components/{p-6d5bd95a.js → p-252465eb.js} +1 -1
  114. package/dist/mint-components/{p-aefaec37.entry.js → p-2fd2f22b.entry.js} +1 -1
  115. package/dist/mint-components/p-37ef2ce1.entry.js +1 -0
  116. package/dist/mint-components/{p-aa8c6332.js → p-38c4653d.js} +1 -1
  117. package/dist/mint-components/{p-511c87ce.system.entry.js → p-3fa99fea.system.entry.js} +1 -1
  118. package/dist/mint-components/p-51a6a779.js +1 -0
  119. package/dist/mint-components/{p-967a9040.system.js → p-53b49d27.system.js} +1 -1
  120. package/dist/mint-components/{p-f401ef19.system.entry.js → p-54c250de.system.entry.js} +1 -1
  121. package/dist/mint-components/{p-e658929b.js → p-58b668a0.js} +4 -4
  122. package/dist/mint-components/{p-60c14cec.entry.js → p-58f4bf7a.entry.js} +1 -1
  123. package/dist/mint-components/{p-4c811d12.entry.js → p-5a3e2966.entry.js} +1 -1
  124. package/dist/mint-components/{p-bec87ac9.system.entry.js → p-5bb24669.system.entry.js} +1 -1
  125. package/dist/mint-components/{p-c85f204b.system.js → p-6b55555b.system.js} +1 -1
  126. package/dist/mint-components/{p-f0eae4e6.system.js → p-6dd86003.system.js} +1 -1
  127. package/dist/mint-components/{p-16ac4d4f.entry.js → p-735c9185.entry.js} +1 -1
  128. package/dist/mint-components/p-80569911.system.js +1 -0
  129. package/dist/mint-components/{p-5d059c95.entry.js → p-8677688c.entry.js} +1 -1
  130. package/dist/mint-components/{p-a217cc8d.entry.js → p-8e913ce5.entry.js} +1 -1
  131. package/dist/mint-components/p-8ea16fb6.js +1233 -0
  132. package/dist/mint-components/{p-ed16b35a.js → p-946f8a2c.js} +1 -1
  133. package/dist/mint-components/{p-ea0bc627.entry.js → p-94ae86fc.entry.js} +1 -1
  134. package/dist/mint-components/p-95b6e903.entry.js +1 -0
  135. package/dist/mint-components/{p-56009bf0.system.entry.js → p-9f57e731.system.entry.js} +1 -1
  136. package/dist/mint-components/{p-00bc7211.js → p-a1b3f61a.js} +1 -1
  137. package/dist/mint-components/{p-74f43a08.system.js → p-a275725a.system.js} +1 -1
  138. package/dist/mint-components/{p-22a9114f.system.entry.js → p-a30d7069.system.entry.js} +1 -1
  139. package/dist/mint-components/{p-c994512c.system.js → p-b5fd4fb6.system.js} +1 -1
  140. package/dist/mint-components/{p-47c83656.entry.js → p-bef123be.entry.js} +1 -1
  141. package/dist/mint-components/{p-79a3344f.js → p-c44b3725.js} +1 -1
  142. package/dist/mint-components/p-c4f275db.system.entry.js +1 -0
  143. package/dist/mint-components/p-c5f92183.system.entry.js +1 -0
  144. package/dist/mint-components/{p-18720462.system.entry.js → p-c67ffd25.system.entry.js} +1 -1
  145. package/dist/mint-components/{p-60465a2d.system.js → p-c90fcb02.system.js} +1 -1
  146. package/dist/mint-components/{p-7a268047.js → p-d181b17c.js} +1 -1
  147. package/dist/mint-components/p-d69c0a32.system.entry.js +1 -0
  148. package/dist/mint-components/{p-6c006998.entry.js → p-db64c957.entry.js} +2 -2
  149. package/dist/mint-components/{p-4fed8672.js → p-dbb79392.js} +1 -1
  150. package/dist/mint-components/{p-6d9ce4e5.entry.js → p-e4017ba5.entry.js} +1 -1
  151. package/dist/mint-components/{p-ad4348c3.system.js → p-ee290b30.system.js} +1 -1
  152. package/dist/mint-components/{p-b377570a.system.js → p-ee3d2ae4.system.js} +1 -1
  153. package/dist/mint-components/{p-e0a724dd.system.js → p-f3ccba80.system.js} +19 -19
  154. package/dist/mint-components/{p-717b6730.system.entry.js → p-fc86ba65.system.entry.js} +1 -1
  155. package/dist/types/components/sqm-base-registration/sqm-base-registration-form-view.d.ts +2 -1
  156. package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +1 -1
  157. package/dist/types/components/sqm-dropdown-field/sqm-dropdown-field.d.ts +1 -1
  158. package/dist/types/components/sqm-input-field/sqm-input-field.d.ts +1 -1
  159. package/dist/types/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.d.ts +1 -1
  160. package/dist/types/components/sqm-name-fields/sqm-name-fields-view.d.ts +1 -0
  161. package/dist/types/components/sqm-name-fields/sqm-name-fields.d.ts +5 -0
  162. package/dist/types/components/sqm-name-fields/useNameFields.d.ts +1 -0
  163. package/dist/types/components/sqm-password-field/sqm-password-field.d.ts +1 -1
  164. package/dist/types/components/sqm-portal-google-registration-form/usePortalGoogleRegistrationForm.d.ts +2 -1
  165. package/dist/types/components.d.ts +10 -0
  166. package/dist/types/global/styles.v1.d.ts +2 -0
  167. package/docs/docs.docx +0 -0
  168. package/docs/raisins.json +1 -1
  169. package/grapesjs/grapesjs.js +1 -1
  170. package/package.json +2 -2
  171. package/dist/esm-es5/sqm-base-registration-form-view-1a6bb4b4.js +0 -1
  172. package/dist/mint-components/p-1522a7d1.js +0 -1
  173. package/dist/mint-components/p-71a6e549.system.entry.js +0 -1
  174. package/dist/mint-components/p-8b5b2acc.entry.js +0 -1
  175. package/dist/mint-components/p-b21c5311.system.js +0 -1
  176. package/dist/mint-components/p-c2ac14b7.entry.js +0 -1
  177. package/dist/mint-components/p-db1a0db1.js +0 -1233
  178. package/dist/mint-components/p-e9a596ad.system.entry.js +0 -1
  179. package/dist/mint-components/p-f66e02c7.system.entry.js +0 -1
  180. package/shoelace/assets/icons/twitter-x.svg +0 -4
  181. /package/dist/collection/global/{styles.js → styles.v2.js} +0 -0
  182. /package/dist/collection/global/{styles.ts → styles.v2.ts} +0 -0
  183. /package/dist/mint-components/global/{styles.ts → styles.v2.ts} +0 -0
  184. /package/dist/types/global/{styles.d.ts → styles.v2.d.ts} +0 -0
@@ -3,14 +3,14 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-a43a63b4.js');
6
- require('./global-8bba5b3a.js');
6
+ require('./global-39cb0afc.js');
7
7
  const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js');
8
8
  const index_module = require('./index.module-4f54e412.js');
9
9
  const cjs = require('./cjs-1066ec21.js');
10
10
  const utils = require('./utils-6847bc06.js');
11
11
  require('./JSS-8503a151.js');
12
- const useLeadFormState = require('./useLeadFormState-fd0445f9.js');
13
- const sqmLeadCheckboxFieldView = require('./sqm-lead-checkbox-field-view-340acad0.js');
12
+ const useLeadFormState = require('./useLeadFormState-b355759b.js');
13
+ const sqmLeadCheckboxFieldView = require('./sqm-lead-checkbox-field-view-f1c46d4b.js');
14
14
 
15
15
  function useLeadCheckboxField() {
16
16
  const leadFormState = domContextHooks_module.d(useLeadFormState.LEAD_FORM_STATE_CONTEXT);
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-a43a63b4.js');
4
- const global = require('./global-8bba5b3a.js');
4
+ const global = require('./global-39cb0afc.js');
5
5
  const JSS = require('./JSS-8503a151.js');
6
6
  const mixins = require('./mixins-4761d472.js');
7
7
 
@@ -3,15 +3,15 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-a43a63b4.js');
6
- require('./global-8bba5b3a.js');
6
+ require('./global-39cb0afc.js');
7
7
  const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js');
8
8
  const index_module = require('./index.module-4f54e412.js');
9
9
  const cjs = require('./cjs-1066ec21.js');
10
10
  const utils = require('./utils-6847bc06.js');
11
11
  require('./JSS-8503a151.js');
12
12
  require('./mixins-4761d472.js');
13
- const useLeadFormState = require('./useLeadFormState-fd0445f9.js');
14
- const sqmLeadInputFieldView = require('./sqm-lead-input-field-view-06ed3632.js');
13
+ const useLeadFormState = require('./useLeadFormState-b355759b.js');
14
+ const sqmLeadInputFieldView = require('./sqm-lead-input-field-view-6d388092.js');
15
15
 
16
16
  function useLeadInputField() {
17
17
  const leadFormState = domContextHooks_module.d(useLeadFormState.LEAD_FORM_STATE_CONTEXT);
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-a43a63b4.js');
6
- const global = require('./global-8bba5b3a.js');
6
+ const global = require('./global-39cb0afc.js');
7
7
  const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js');
8
8
  const index_module = require('./index.module-4f54e412.js');
9
9
  const cjs = require('./cjs-1066ec21.js');
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-a43a63b4.js');
6
- const global = require('./global-8bba5b3a.js');
6
+ const global = require('./global-39cb0afc.js');
7
7
  const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js');
8
8
  const index_module = require('./index.module-4f54e412.js');
9
9
  const cjs = require('./cjs-1066ec21.js');
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-a43a63b4.js');
4
- const global = require('./global-8bba5b3a.js');
4
+ const global = require('./global-39cb0afc.js');
5
5
  const JSS = require('./JSS-8503a151.js');
6
6
  const mixins = require('./mixins-4761d472.js');
7
7
  const sqmTextSpanView = require('./sqm-text-span-view-7a61ae4c.js');
@@ -3,14 +3,14 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-a43a63b4.js');
6
- require('./global-8bba5b3a.js');
6
+ require('./global-39cb0afc.js');
7
7
  const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js');
8
8
  const index_module = require('./index.module-4f54e412.js');
9
9
  const cjs = require('./cjs-1066ec21.js');
10
10
  require('./JSS-8503a151.js');
11
11
  require('./mixins-4761d472.js');
12
12
  require('./sqm-text-span-view-7a61ae4c.js');
13
- const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-5518eb0d.js');
13
+ const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-6b17e545.js');
14
14
 
15
15
  function usePortalEmailVerification(props) {
16
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
@@ -11,7 +11,7 @@ const JSS = require('./JSS-8503a151.js');
11
11
  require('./mixins-4761d472.js');
12
12
  require('./sqm-text-span-view-7a61ae4c.js');
13
13
  const useRegistrationFormState = require('./useRegistrationFormState-bbee6e7b.js');
14
- const sqmBaseRegistrationFormView = require('./sqm-base-registration-form-view-7b95ae7a.js');
14
+ const sqmBaseRegistrationFormView = require('./sqm-base-registration-form-view-69a4b615.js');
15
15
  const sqmPortalRegistrationFormView = require('./sqm-portal-registration-form-view-5a96c2f5.js');
16
16
  require('./AsYouType-6788393a.js');
17
17
  const usePortalRegistrationForm = require('./usePortalRegistrationForm-75b647fe.js');
@@ -75,7 +75,6 @@ function jwtDecode(token, options) {
75
75
  }
76
76
 
77
77
  function usePortalGoogleRegistrationForm(props) {
78
- const [emailValidationError, setEmailValidationError] = domContextHooks_module.useState(null);
79
78
  const [registrationFormState, setRegistrationFormState] = useRegistrationFormState.useRegistrationForm();
80
79
  const [showRegistrationForm, setShowRegistrationForm] = domContextHooks_module.useState({
81
80
  mode: "base",
@@ -83,33 +82,40 @@ function usePortalGoogleRegistrationForm(props) {
83
82
  const handleEmailSubmit = async (event) => {
84
83
  const formControls = event.target.getFormControls();
85
84
  let formData = {};
86
- let errorMessage = null;
85
+ let validationErrors = {};
87
86
  formControls.forEach((control) => {
88
87
  if (!control.name)
89
88
  return;
90
- jsonpointer.jsonpointer.set(formData, control.name, control.value);
91
- // only validate email field
92
- if (control.name !== "/email")
93
- return;
94
- if (control.required && !control.value)
95
- errorMessage = props.requiredFieldErrorMessage;
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
+ }
96
95
  if (typeof control.validationError === "function") {
97
96
  const validate = control.validationError;
98
97
  const validationError = validate({
99
98
  control,
100
- key: "email",
101
- value: control.value,
99
+ key,
100
+ value,
102
101
  });
103
102
  if (validationError)
104
- errorMessage = validationError;
103
+ jsonpointer.jsonpointer.set(validationErrors, key, validationError);
105
104
  }
106
105
  });
107
- if (errorMessage) {
108
- setEmailValidationError(errorMessage);
106
+ if (Object.keys(validationErrors).length) {
107
+ // early return for validation errors
108
+ setRegistrationFormState({
109
+ ...registrationFormState,
110
+ loading: false,
111
+ error: "",
112
+ validationErrors,
113
+ });
109
114
  return;
110
115
  }
111
116
  setRegistrationFormState({
112
117
  ...registrationFormState,
118
+ validationErrors: {},
113
119
  initialData: {
114
120
  ...registrationFormState === null || registrationFormState === void 0 ? void 0 : registrationFormState.initialData,
115
121
  ...formData,
@@ -139,8 +145,9 @@ function usePortalGoogleRegistrationForm(props) {
139
145
  }
140
146
  };
141
147
  return {
148
+ registrationFormState,
142
149
  showRegistrationForm,
143
- emailValidationError,
150
+ validationErrors: registrationFormState.validationErrors,
144
151
  handleGoogleInit,
145
152
  handleEmailSubmit,
146
153
  };
@@ -296,7 +303,7 @@ const PortalGoogleRegistrationForm = class {
296
303
  };
297
304
  const sheet = JSS.createStyleSheet(styles);
298
305
  const styleString = sheet.toString();
299
- const { handleGoogleInit, handleEmailSubmit, showRegistrationForm, emailValidationError, } = index_module.isDemo() ? useGoogleDemo(this) : usePortalGoogleRegistrationForm(this);
306
+ const { handleGoogleInit, handleEmailSubmit, showRegistrationForm, validationErrors, } = index_module.isDemo() ? useGoogleDemo(this) : usePortalGoogleRegistrationForm(this);
300
307
  const content = {
301
308
  formData: index.h("slot", { name: "formData" }),
302
309
  googleButton: (index.h("sqm-google-sign-in", { text: this.googleButtonText, onInitComplete: handleGoogleInit })),
@@ -321,7 +328,7 @@ const PortalGoogleRegistrationForm = class {
321
328
  };
322
329
  if (showRegistrationForm.mode === "base") {
323
330
  return (index.h(sqmBaseRegistrationFormView.BaseRegistrationFormView, { states: {
324
- error: emailValidationError,
331
+ validationErrors,
325
332
  }, callbacks: { handleEmailSubmit }, content: content }));
326
333
  }
327
334
  return (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, { states: {
@@ -364,7 +371,7 @@ function useGoogleDemo(props) {
364
371
  mode: "base",
365
372
  });
366
373
  return cjs.cjs({
367
- emailValidationError: false,
374
+ validationErrors: {},
368
375
  handleEmailSubmit: () => setShowRegistrationForm({ mode: "manual" }),
369
376
  showRegistrationForm,
370
377
  handleGoogleInit: () => setShowRegistrationForm({ mode: "google" }),
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-a43a63b4.js');
4
- const global = require('./global-8bba5b3a.js');
4
+ const global = require('./global-39cb0afc.js');
5
5
  const JSS = require('./JSS-8503a151.js');
6
6
  const sqmTextSpanView = require('./sqm-text-span-view-7a61ae4c.js');
7
7
 
@@ -3,14 +3,14 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-a43a63b4.js');
6
- require('./global-8bba5b3a.js');
6
+ require('./global-39cb0afc.js');
7
7
  const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js');
8
8
  const index_module = require('./index.module-4f54e412.js');
9
9
  const cjs = require('./cjs-1066ec21.js');
10
10
  const utils = require('./utils-6847bc06.js');
11
11
  require('./JSS-8503a151.js');
12
12
  require('./sqm-text-span-view-7a61ae4c.js');
13
- const sqmPortalProfileView = require('./sqm-portal-profile-view-615e6975.js');
13
+ const sqmPortalProfileView = require('./sqm-portal-profile-view-845367bb.js');
14
14
  const utilities = require('./utilities-9a0c5e91.js');
15
15
 
16
16
  const GET_USER = index_module.dist.gql `
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-a43a63b4.js');
6
- const global = require('./global-8bba5b3a.js');
6
+ const global = require('./global-39cb0afc.js');
7
7
  const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js');
8
8
  const index_module = require('./index.module-4f54e412.js');
9
9
  const cjs = require('./cjs-1066ec21.js');
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-a43a63b4.js');
6
- const global = require('./global-8bba5b3a.js');
6
+ const global = require('./global-39cb0afc.js');
7
7
  const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js');
8
8
  const index_module = require('./index.module-4f54e412.js');
9
9
  const cjs = require('./cjs-1066ec21.js');
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-a43a63b4.js');
6
- require('./global-8bba5b3a.js');
6
+ require('./global-39cb0afc.js');
7
7
  const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js');
8
8
  const index_module = require('./index.module-4f54e412.js');
9
9
  require('./cjs-1066ec21.js');
@@ -19,26 +19,26 @@ require('./sqm-text-span-view-7a61ae4c.js');
19
19
  const sqmCloseButtonView = require('./sqm-close-button-view-5e85ac51.js');
20
20
  require('./index-8c6255f5.js');
21
21
  const emailRegistrationView = require('./email-registration-view-ace50780.js');
22
- const sqmLeadCheckboxFieldView = require('./sqm-lead-checkbox-field-view-340acad0.js');
22
+ const sqmLeadCheckboxFieldView = require('./sqm-lead-checkbox-field-view-f1c46d4b.js');
23
23
  const sqmLeaderboardRankView = require('./sqm-leaderboard-rank-view-6a1e63de.js');
24
24
  const sqmLogoutCurrentUserView = require('./sqm-logout-current-user-view-b61c8bdf.js');
25
25
  const sqmNavigationSidebarView = require('./sqm-navigation-sidebar-view-de90ef03.js');
26
26
  const sqmNavigationSidebarItemView = require('./sqm-navigation-sidebar-item-view-4e88f774.js');
27
- const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-5518eb0d.js');
27
+ const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-6b17e545.js');
28
28
  const sqmPortalLoginView = require('./sqm-portal-login-view-bb50304c.js');
29
- const sqmBaseRegistrationFormView = require('./sqm-base-registration-form-view-7b95ae7a.js');
29
+ const sqmBaseRegistrationFormView = require('./sqm-base-registration-form-view-69a4b615.js');
30
30
  const sqmPortalRegistrationFormView = require('./sqm-portal-registration-form-view-5a96c2f5.js');
31
- const sqmPortalProfileView = require('./sqm-portal-profile-view-615e6975.js');
31
+ const sqmPortalProfileView = require('./sqm-portal-profile-view-845367bb.js');
32
32
  require('./utilities-9a0c5e91.js');
33
33
  const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-25eb2099.js');
34
34
  const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-1c4e781f.js');
35
35
  require('./ErrorView-3f91e5ab.js');
36
36
  const sqmQrCodeView = require('./sqm-qr-code-view-4ccf89da.js');
37
- const ShadowViewAddon = require('./ShadowViewAddon-cd5c186c.js');
37
+ const ShadowViewAddon = require('./ShadowViewAddon-646dec73.js');
38
38
  const sqmPortalContainerView = require('./sqm-portal-container-view-07e4343f.js');
39
- const IndirectTaxDetailsView = require('./IndirectTaxDetailsView-e5f70b8b.js');
40
- const utils = require('./utils-83d125fa.js');
41
- const sqmLeadInputFieldView = require('./sqm-lead-input-field-view-06ed3632.js');
39
+ const IndirectTaxDetailsView = require('./IndirectTaxDetailsView-3e88d710.js');
40
+ const utils = require('./utils-ac82f977.js');
41
+ const sqmLeadInputFieldView = require('./sqm-lead-input-field-view-6d388092.js');
42
42
 
43
43
  /**
44
44
  * lodash (Custom Build) <https://lodash.com/>
@@ -5044,7 +5044,7 @@ const BaseRegistrationForm_stories = {
5044
5044
  };
5045
5045
  const defaultProps = {
5046
5046
  states: {
5047
- error: "",
5047
+ validationErrors: {},
5048
5048
  },
5049
5049
  callbacks: {
5050
5050
  handleEmailSubmit: () => console.log("Submit!"),
@@ -5064,7 +5064,7 @@ const defaultProps = {
5064
5064
  const errorProps = {
5065
5065
  ...defaultProps,
5066
5066
  states: {
5067
- error: "Something went wrong. Please try again.",
5067
+ validationErrors: { error: "Something went wrong. Please try again." },
5068
5068
  },
5069
5069
  };
5070
5070
  const Default$1 = () => {
@@ -8250,6 +8250,7 @@ const NameFields_stories = {
8250
8250
  };
8251
8251
  const props = {
8252
8252
  states: {
8253
+ optional: false,
8253
8254
  registrationFormState: {
8254
8255
  validationErrors: undefined,
8255
8256
  },
@@ -8261,6 +8262,7 @@ const props = {
8261
8262
  };
8262
8263
  const errorProps$1 = {
8263
8264
  states: {
8265
+ optional: false,
8264
8266
  registrationFormState: {
8265
8267
  validationErrors: {
8266
8268
  firstName: "Cannot be empty",
@@ -9190,6 +9192,7 @@ const defaultProps$g = {
9190
9192
  formData: (index.h("div", null,
9191
9193
  " ",
9192
9194
  index.h(ShadowViewAddon.NameFieldsView, { states: {
9195
+ optional: false,
9193
9196
  registrationFormState: {
9194
9197
  validationErrors: undefined,
9195
9198
  disabled: true,
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-a43a63b4.js');
4
- const global = require('./global-8bba5b3a.js');
4
+ const global = require('./global-39cb0afc.js');
5
5
  const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js');
6
6
  const index_module = require('./index.module-4f54e412.js');
7
7
  const JSS = require('./JSS-8503a151.js');
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-a43a63b4.js');
4
- const global = require('./global-8bba5b3a.js');
4
+ const global = require('./global-39cb0afc.js');
5
5
  const JSS = require('./JSS-8503a151.js');
6
6
 
7
7
  const style = {
@@ -5,7 +5,7 @@ export default {
5
5
  };
6
6
  const defaultProps = {
7
7
  states: {
8
- error: "",
8
+ validationErrors: {},
9
9
  },
10
10
  callbacks: {
11
11
  handleEmailSubmit: () => console.log("Submit!"),
@@ -25,7 +25,7 @@ const defaultProps = {
25
25
  const errorProps = {
26
26
  ...defaultProps,
27
27
  states: {
28
- error: "Something went wrong. Please try again.",
28
+ validationErrors: { error: "Something went wrong. Please try again." },
29
29
  },
30
30
  };
31
31
  export const Default = () => {
@@ -37,6 +37,7 @@ sqm-portal-register {
37
37
  const sheet = createStyleSheet(style);
38
38
  const styleString = sheet.toString();
39
39
  export function BaseRegistrationFormView(props) {
40
+ var _a, _b;
40
41
  const { states, content, callbacks } = props;
41
42
  return (h("div", { class: sheet.classes.Wrapper },
42
43
  h("style", { type: "text/css" },
@@ -44,10 +45,8 @@ export function BaseRegistrationFormView(props) {
44
45
  styleString),
45
46
  h(TextSpanView, { type: "h3" }, content.pageLabel),
46
47
  h("sl-form", { class: sheet.classes.Column, "onSl-submit": callbacks.handleEmailSubmit, novalidate: true },
47
- states.error && (h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
48
- h("div", { part: "erroralert-text" }, props.states.error))),
49
48
  content.formData,
50
- h("sl-input", { exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", required: true, validationError: ({ value }) => {
49
+ h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", required: true, validationError: ({ value }) => {
51
50
  if (!value) {
52
51
  return content.requiredFieldErrorMessage;
53
52
  }
@@ -55,7 +54,13 @@ export function BaseRegistrationFormView(props) {
55
54
  if (!value.includes("@")) {
56
55
  return content.invalidEmailErrorMessage;
57
56
  }
58
- } }),
57
+ } }, (((_a = states === null || states === void 0 ? void 0 : states.validationErrors) === null || _a === void 0 ? void 0 : _a.email) ? {
58
+ class: sheet.classes.ErrorStyle,
59
+ helpText: ((_b = states === null || states === void 0 ? void 0 : states.validationErrors) === null || _b === void 0 ? void 0 : _b.email) ||
60
+ content.requiredFieldErrorMessage,
61
+ }
62
+ : []))),
63
+ content.terms,
59
64
  h("div", { class: sheet.classes.ButtonsContainer },
60
65
  h("sl-button", { submit: true, exportparts: "base: primarybutton-base", type: "primary", style: { margin: "0" } }, content.submitLabel || "Register"),
61
66
  h("sl-menu-divider", { style: { margin: "0" } }),
@@ -120,12 +120,18 @@ const referralsMonthQuery = (programId, status) => {
120
120
  });
121
121
  });
122
122
  };
123
- const referralsWeekQuery = (programId) => {
123
+ const referralsWeekQuery = (programId, status) => {
124
124
  const programFilter = programId === "classic"
125
125
  ? { programId_exists: false }
126
126
  : { programId_eq: programId };
127
+ const convertedFilter = status && status == "converted"
128
+ ? { dateConverted_exists: true }
129
+ : status && status == "started"
130
+ ? { dateConverted_exists: false }
131
+ : {};
127
132
  const filter = {
128
133
  ...programFilter,
134
+ ...convertedFilter,
129
135
  dateReferralStarted_timeframe: "this_week",
130
136
  };
131
137
  return debugQuery(gql `
@@ -8,7 +8,7 @@ import { CheckboxFieldView, } from "./sqm-checkbox-field-view";
8
8
  import { useCheckboxField } from "./useCheckboxField";
9
9
  /**
10
10
  * @uiName Form Checkbox Field
11
- * @validParents ["sqm-portal-register","sqm-portal-registration-form"]
11
+ * @validParents ["sqm-portal-register","sqm-portal-registration-form", "sqm-portal-google-registration-form"]
12
12
  * @exampleGroup Microsite Components
13
13
  * @example Form Checkbox Field - <sqm-checkbox-field checkbox-name="terms" checkbox-label="By signing up you agree to the {labelLink}" checkbox-label-link="https://example.com" checkbox-label-link-text="Terms and Conditions" error-message="Must be checked" ></sqm-checkbox-field>
14
14
  */
@@ -8,7 +8,7 @@ import { DropdownFieldView, } from "./sqm-dropdown-field-view";
8
8
  import { useDropdownField } from "./useDropdownField";
9
9
  /**
10
10
  * @uiName Form Dropdown Field
11
- * @validParents ["sqm-portal-register","sqm-portal-registration-form"]
11
+ * @validParents ["sqm-portal-register","sqm-portal-registration-form", "sqm-portal-google-registration-form"]
12
12
  * @slots [{"name":"", "title":"Drop Down Option"}]
13
13
  * @exampleGroup Microsite Components
14
14
  * @example Form Dropdown Field - <sqm-dropdown-field dropdown-label="Select an option" error-message="Select an option"><sl-menu-item value="option-1">Option 1</sl-menu-item><sl-menu-item value="option-2">Option 2</sl-menu-item><sl-menu-item value="option-3">Option 3</sl-menu-item></sqm-dropdown-field>
@@ -8,7 +8,7 @@ import { InputFieldView } from "./sqm-input-field-view";
8
8
  import { useInputField } from "./useInputField";
9
9
  /**
10
10
  * @uiName Form Input Field
11
- * @validParents ["sqm-portal-register","sqm-portal-registration-form"]
11
+ * @validParents ["sqm-portal-register","sqm-portal-registration-form", "sqm-portal-google-registration-form"]
12
12
  * @exampleGroup Microsite Components
13
13
  * @example Form Input Field - <sqm-input-field input-label="Field Label" field-type="text" error-message="Cannot be empty"></sqm-input-field>
14
14
  */
@@ -7,7 +7,7 @@ import { CheckboxFieldView, } from "../sqm-checkbox-field/sqm-checkbox-field-vie
7
7
  import { useCheckboxField } from "../sqm-checkbox-field/useCheckboxField";
8
8
  /**
9
9
  * @uiName Marketing Emails Checkbox Field
10
- * @validParents ["sqm-portal-register","sqm-portal-registration-form"]
10
+ * @validParents ["sqm-portal-register","sqm-portal-registration-form", "sqm-portal-google-registration-form"]
11
11
  * @requiredFeatures ["MARKETING_EMAILS"]
12
12
  */
13
13
  export class MarketingEmailsCheckbox {
@@ -9,6 +9,7 @@ export default {
9
9
  };
10
10
  const props = {
11
11
  states: {
12
+ optional: false,
12
13
  registrationFormState: {
13
14
  validationErrors: undefined,
14
15
  },
@@ -20,6 +21,7 @@ const props = {
20
21
  };
21
22
  const errorProps = {
22
23
  states: {
24
+ optional: false,
23
25
  registrationFormState: {
24
26
  validationErrors: {
25
27
  firstName: "Cannot be empty",
@@ -56,7 +56,7 @@ export function NameFieldsView(props) {
56
56
  h("style", { type: "text/css" },
57
57
  vanillaStyle,
58
58
  styleString),
59
- h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", name: "/firstName", type: "text", label: states.content.firstNameLabel, required: true, disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e.firstName) ? {
59
+ h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", name: "/firstName", type: "text", label: states.content.firstNameLabel, required: !states.optional, disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e.firstName) ? {
60
60
  value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g.firstName,
61
61
  }
62
62
  : {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) ? {
@@ -64,7 +64,7 @@ export function NameFieldsView(props) {
64
64
  helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) || "Cannot be empty",
65
65
  }
66
66
  : []))),
67
- h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", name: "/lastName", type: "text", label: states.content.lastNameLabel, required: true, disabled: ((_h = states.registrationFormState) === null || _h === void 0 ? void 0 : _h.loading) || ((_j = states.registrationFormState) === null || _j === void 0 ? void 0 : _j.disabled) }, (((_l = (_k = states.registrationFormState) === null || _k === void 0 ? void 0 : _k.initialData) === null || _l === void 0 ? void 0 : _l.lastName) ? {
67
+ h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", name: "/lastName", type: "text", label: states.content.lastNameLabel, required: !states.optional, disabled: ((_h = states.registrationFormState) === null || _h === void 0 ? void 0 : _h.loading) || ((_j = states.registrationFormState) === null || _j === void 0 ? void 0 : _j.disabled) }, (((_l = (_k = states.registrationFormState) === null || _k === void 0 ? void 0 : _k.initialData) === null || _l === void 0 ? void 0 : _l.lastName) ? {
68
68
  value: (_o = (_m = states.registrationFormState) === null || _m === void 0 ? void 0 : _m.initialData) === null || _o === void 0 ? void 0 : _o.lastName,
69
69
  }
70
70
  : {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.lastName) ? {
@@ -21,6 +21,11 @@ export class NameFields {
21
21
  * @uiName Last name label
22
22
  */
23
23
  this.lastNameLabel = "Last Name";
24
+ /**
25
+ * @uiName Optional
26
+ * @uiWidget
27
+ */
28
+ this.optional = false;
24
29
  withHooks(this);
25
30
  }
26
31
  disconnectedCallback() { }
@@ -73,12 +78,36 @@ export class NameFields {
73
78
  "reflect": false,
74
79
  "defaultValue": "\"Last Name\""
75
80
  },
81
+ "optional": {
82
+ "type": "boolean",
83
+ "mutable": false,
84
+ "complexType": {
85
+ "original": "boolean",
86
+ "resolved": "boolean",
87
+ "references": {}
88
+ },
89
+ "required": false,
90
+ "optional": false,
91
+ "docs": {
92
+ "tags": [{
93
+ "text": "Optional",
94
+ "name": "uiName"
95
+ }, {
96
+ "text": undefined,
97
+ "name": "uiWidget"
98
+ }],
99
+ "text": ""
100
+ },
101
+ "attribute": "optional",
102
+ "reflect": false,
103
+ "defaultValue": "false"
104
+ },
76
105
  "demoData": {
77
106
  "type": "unknown",
78
107
  "mutable": false,
79
108
  "complexType": {
80
109
  "original": "DemoData<NameFieldsViewProps>",
81
- "resolved": "{ states?: { registrationFormState?: RegistrationFormState; content: { firstNameLabel: string; lastNameLabel: string; }; }; }",
110
+ "resolved": "{ states?: { optional: boolean; registrationFormState?: RegistrationFormState; content: { firstNameLabel: string; lastNameLabel: string; }; }; }",
82
111
  "references": {
83
112
  "DemoData": {
84
113
  "location": "import",
@@ -111,6 +140,7 @@ export class NameFields {
111
140
  function useNameFieldsDemo(props) {
112
141
  return deepmerge({
113
142
  states: {
143
+ optional: props.optional,
114
144
  validationErrors: [],
115
145
  content: {
116
146
  firstNameLabel: props.firstNameLabel,
@@ -4,6 +4,7 @@ export function useNameFields(props) {
4
4
  const registrationFormState = useDomContext(REGISTRATION_FORM_STATE_CONTEXT);
5
5
  return {
6
6
  states: {
7
+ optional: props.optional,
7
8
  registrationFormState,
8
9
  content: {
9
10
  lastNameLabel: props.lastNameLabel,
@@ -3,13 +3,13 @@ import { withHooks } from "@saasquatch/stencil-hooks";
3
3
  import { useState } from "@saasquatch/universal-hooks";
4
4
  import { Component, h, Prop, State } from "@stencil/core";
5
5
  import deepmerge from "deepmerge";
6
+ import { getProps } from "../../utils/utils";
6
7
  import { validateNewPassword } from "./passwordValidation";
7
8
  import { PortalResetPasswordView, } from "./sqm-password-field-view";
8
9
  import { usePasswordField } from "./usePasswordField";
9
- import { getProps } from "../../utils/utils";
10
10
  /**
11
11
  * @uiName Form Password Field
12
- * @validParents ["sqm-portal-register","sqm-portal-registration-form"]
12
+ * @validParents ["sqm-portal-register","sqm-portal-registration-form", "sqm-portal-google-registration-form"]
13
13
  * @exampleGroup Microsite Components
14
14
  * @example Form Password Field - <sqm-password-field field-label="Password"></sqm-password-field>
15
15
  */
@@ -31,6 +31,7 @@ const defaultProps = {
31
31
  formData: (h("div", null,
32
32
  " ",
33
33
  h(NameFieldsView, { states: {
34
+ optional: false,
34
35
  registrationFormState: {
35
36
  validationErrors: undefined,
36
37
  disabled: true,