@saasquatch/mint-components 2.0.0-6 → 2.0.0-61

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 (76) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/mint-components.cjs.js +1 -1
  3. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +69 -29
  4. package/dist/cjs/{sqm-base-registration-form-view-8847804c.js → sqm-base-registration-form-view-7b95ae7a.js} +1 -0
  5. package/dist/cjs/sqm-big-stat_46.cjs.entry.js +5 -13
  6. package/dist/cjs/sqm-form-message.cjs.entry.js +6 -5
  7. package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +7 -6
  8. package/dist/cjs/sqm-stencilbook.cjs.entry.js +20 -2
  9. package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +1 -1
  10. package/dist/collection/components/sqm-base-registration/sqm-base-registration-form-view.js +1 -0
  11. package/dist/collection/components/sqm-form-message/FormMessage.stories.js +14 -0
  12. package/dist/collection/components/sqm-form-message/sqm-form-message.css +7 -0
  13. package/dist/collection/components/sqm-form-message/sqm-form-message.js +23 -4
  14. package/dist/collection/components/sqm-hero/sqm-hero.js +4 -4
  15. package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +2 -2
  16. package/dist/collection/components/sqm-portal-footer/sqm-portal-footer.js +1 -1
  17. package/dist/collection/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.js +7 -4
  18. package/dist/collection/components/sqm-portal-google-registration-form/usePortalGoogleRegistrationForm.js +4 -1
  19. package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +1 -1
  20. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +9 -41
  21. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +1 -1
  22. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +67 -26
  23. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +0 -1
  24. package/dist/esm/loader.js +1 -1
  25. package/dist/esm/mint-components.js +1 -1
  26. package/dist/esm/sqm-banking-info-form_10.entry.js +69 -29
  27. package/dist/esm/{sqm-base-registration-form-view-193f1721.js → sqm-base-registration-form-view-1a6bb4b4.js} +1 -0
  28. package/dist/esm/sqm-big-stat_46.entry.js +5 -13
  29. package/dist/esm/sqm-form-message.entry.js +6 -5
  30. package/dist/esm/sqm-portal-google-registration-form.entry.js +7 -6
  31. package/dist/esm/sqm-stencilbook.entry.js +20 -2
  32. package/dist/esm/sqm-tax-and-cash.entry.js +1 -1
  33. package/dist/esm-es5/loader.js +1 -1
  34. package/dist/esm-es5/mint-components.js +1 -1
  35. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  36. package/dist/esm-es5/{sqm-base-registration-form-view-193f1721.js → sqm-base-registration-form-view-1a6bb4b4.js} +1 -1
  37. package/dist/esm-es5/sqm-big-stat_46.entry.js +1 -1
  38. package/dist/esm-es5/sqm-form-message.entry.js +1 -1
  39. package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
  40. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  41. package/dist/esm-es5/sqm-tax-and-cash.entry.js +1 -1
  42. package/dist/mint-components/mint-components.esm.js +1 -1
  43. package/dist/mint-components/{p-ddf3c05e.js → p-1522a7d1.js} +1 -1
  44. package/dist/mint-components/{p-38b92bc5.entry.js → p-38263521.entry.js} +1 -1
  45. package/dist/mint-components/{p-402984b3.system.entry.js → p-43a9fb8e.system.entry.js} +1 -1
  46. package/dist/mint-components/{p-13e66b37.system.entry.js → p-454a6d05.system.entry.js} +1 -1
  47. package/dist/mint-components/p-478ad7c8.system.entry.js +1 -0
  48. package/dist/mint-components/{p-ec25aaa7.system.entry.js → p-69d8b4f2.system.entry.js} +1 -1
  49. package/dist/mint-components/{p-a0730259.entry.js → p-6b247deb.entry.js} +6 -6
  50. package/dist/mint-components/p-71a6e549.system.entry.js +1 -0
  51. package/dist/mint-components/{p-a44a912b.entry.js → p-75c569f7.entry.js} +1 -1
  52. package/dist/mint-components/{p-e110688b.entry.js → p-78daa639.entry.js} +1 -1
  53. package/dist/mint-components/p-8801b7f1.system.entry.js +1 -0
  54. package/dist/mint-components/p-967a9040.system.js +1 -1
  55. package/dist/mint-components/p-ac9138fd.entry.js +1 -0
  56. package/dist/mint-components/{p-be88596c.system.js → p-b21c5311.system.js} +1 -1
  57. package/dist/mint-components/p-c2ac14b7.entry.js +1 -0
  58. package/dist/types/components/sqm-base-registration/sqm-base-registration-form-view.d.ts +1 -0
  59. package/dist/types/components/sqm-form-message/FormMessage.stories.d.ts +4 -0
  60. package/dist/types/components/sqm-form-message/sqm-form-message.d.ts +1 -0
  61. package/dist/types/components/sqm-hero/sqm-hero.d.ts +4 -4
  62. package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +2 -2
  63. package/dist/types/components/sqm-portal-footer/sqm-portal-footer.d.ts +1 -1
  64. package/dist/types/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.d.ts +5 -0
  65. package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +1 -1
  66. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +4 -12
  67. package/dist/types/components.d.ts +18 -32
  68. package/docs/docs.docx +0 -0
  69. package/docs/raisins.json +1 -1
  70. package/grapesjs/grapesjs.js +1 -1
  71. package/package.json +1 -1
  72. package/dist/mint-components/p-3ea29bac.system.entry.js +0 -1
  73. package/dist/mint-components/p-43d9c1c5.system.entry.js +0 -1
  74. package/dist/mint-components/p-916a2045.system.entry.js +0 -1
  75. package/dist/mint-components/p-a597b136.entry.js +0 -1
  76. package/dist/mint-components/p-ea063d99.entry.js +0 -1
@@ -7,6 +7,11 @@ import { PortalRegistrationFormView, } from "../sqm-portal-registration-form/sqm
7
7
  import { usePortalRegistrationForm } from "../sqm-portal-registration-form/usePortalRegistrationForm";
8
8
  import { usePortalGoogleRegistrationForm } from "./usePortalGoogleRegistrationForm";
9
9
  import { createStyleSheet } from "../../styling/JSS";
10
+ /**
11
+ * @uiName Google Registration
12
+ * @canvasRenderer always-replace
13
+ * @slots [{"name":"formData","title":"Additional Fields"},{"name":"terms","title":"Terms And Conditions Fields"}]
14
+ */
10
15
  export class PortalGoogleRegistrationForm {
11
16
  constructor() {
12
17
  this.ignored = true;
@@ -194,9 +199,7 @@ export class PortalGoogleRegistrationForm {
194
199
  ...states,
195
200
  emailDisabled: true,
196
201
  hidePasswords: showRegistrationForm.mode === "google",
197
- }, callbacks: callbacks, content: {
198
- ...content,
199
- }, refs: refs }));
202
+ }, callbacks: callbacks, content: content, refs: refs }));
200
203
  }
201
204
  static get is() { return "sqm-portal-google-registration-form"; }
202
205
  static get encapsulation() { return "shadow"; }
@@ -871,7 +874,7 @@ function useGoogleDemo(props) {
871
874
  mode: "base",
872
875
  });
873
876
  return deepmerge({
874
- emailValidationError: true,
877
+ emailValidationError: false,
875
878
  handleEmailSubmit: () => setShowRegistrationForm({ mode: "manual" }),
876
879
  showRegistrationForm,
877
880
  handleGoogleInit: () => setShowRegistrationForm({ mode: "google" }),
@@ -13,9 +13,12 @@ export function usePortalGoogleRegistrationForm(props) {
13
13
  let formData = {};
14
14
  let errorMessage = null;
15
15
  formControls.forEach((control) => {
16
- if (!control.name || control.name !== "/email")
16
+ if (!control.name)
17
17
  return;
18
18
  jsonpointer.set(formData, control.name, control.value);
19
+ // only validate email field
20
+ if (control.name !== "/email")
21
+ return;
19
22
  if (control.required && !control.value)
20
23
  errorMessage = props.requiredFieldErrorMessage;
21
24
  if (typeof control.validationError === "function") {
@@ -4,7 +4,7 @@ import { getProps } from "../../utils/utils";
4
4
  import { PortalSectionView } from "./sqm-portal-section-view";
5
5
  /**
6
6
  * @uiName Titled Section
7
- * @validParents ["sqm-portal-container","div","sqm-divided-layout","template","sqm-hero","sqm-tab", "sqm-referred-registration", "sqb-program-section","sqb-conditional-section", "sqm-instant-access-registration", "sqm-referral-card"]
7
+ * @validParents ["sqm-portal-container","div","sqm-divided-layout","template","sqm-hero","sqm-tab", "sqm-referred-registration", "sqb-program-section","sqb-conditional-section", "sqm-instant-access-registration", "sqm-referral-card", "sqm-referred-registration"]
8
8
  * @validChildren ["div","sqm-portal-container","p","sqm-timeline","h1","h2","h3","h5","h4","sqm-qr-code","sqm-referral-code","sqm-referral-codes","sqm-share-code","sqm-share-link","sqm-text","span", "sqm-user-name"]
9
9
  * @slots [{"name":"label", "title":"Label"},{"name":"content", "title":"Content"}]
10
10
  * @exampleGroup Layout
@@ -112,18 +112,10 @@ export class PayoutStatusAlert {
112
112
  this.errorDescription = "There was an error with determining your payout status.";
113
113
  /**
114
114
  * @undocumented
115
- * @componentState { "title": "Information Required", "props": { "demoData": { "states": { "status": "INFORMATION_REQUIRED" } } }, "uiGroup": "Alert States" }
116
- * @componentState { "title": "Over W9 Threshold", "props": { "demoData": { "states": { "status": "OVER_W9_THRESHOLD", "enforceUsTaxComplianceOption": "CASH_ONLY_DEFER_W9" } } }, "uiGroup": "Alert States" }
117
- * @componentState { "title": "Over W9 Threshold - Hold", "props": { "demoData": { "states": { "status": "OVER_W9_THRESHOLD", "enforceUsTaxComplianceOption": "NONE" } } }, "uiGroup": "Alert States" }
118
- * @componentState { "title": "Verification Required", "props": { "demoData": { "states": { "status": "VERIFICATION:REQUIRED" } } }, "uiGroup": "Alert States" }
119
- * @componentState { "title": "Verification Internal", "props": { "demoData": { "states": { "status": "VERIFICATION:INTERNAL" } } }, "uiGroup": "Alert States" }
120
- * @componentState { "title": "Verification Review", "props": { "demoData": { "states": { "status": "VERIFICATION:REVIEW" } } }, "uiGroup": "Alert States" }
121
- * @componentState { "title": "Verification Failed", "props": { "demoData": { "states": { "status": "VERIFICATION:FAILED" } } }, "uiGroup": "Alert States" }
122
- * @componentState { "title": "Account Review", "props": { "demoData": { "states": { "status": "ACCOUNT_REVIEW" } } }, "uiGroup": "Alert States" }
123
- * @componentState { "title": "Hold", "props": { "demoData": { "states": { "status": "HOLD" } } }, "uiGroup": "Alert States" }
124
- * @componentState { "title": "Done - No Alert", "props": { "demoData": { "states": { "status": "DONE" } } }, "uiGroup": "Alert States" }
125
- * @componentState { "title": "Error State", "props": { "demoData": { "states": { "error": true } } }, "uiGroup": "Alert States" }
126
- * @componentState { "title": "Loading State", "props": { "demoData": { "states": { "loading": true } } }, "uiGroup": "Alert States" }
115
+ * @componentState { "title": "Payout Info Required", "props": { "states": { "status": "INFORMATION_REQUIRED" } }, "dependencies": ["sqm-payout-status-alert"] }
116
+ * @componentState { "title": "Verification Required", "props": { "states": { "status": "VERIFICATION:REQUIRED" } }, "dependencies": ["sqm-payout-status-alert"] }
117
+ * @componentState { "title": "Identity Verification", "props": { "states": { "status": "VERIFICATION:REVIEW" } }, "dependencies": ["sqm-payout-status-alert"] }
118
+ * @componentState { "title": "Account Hold", "props": { "states": { "status": "HOLD" } }, "dependencies": ["sqm-payout-status-alert"] }
127
119
  */
128
120
  this.stateController = "{}";
129
121
  withHooks(this);
@@ -660,40 +652,16 @@ export class PayoutStatusAlert {
660
652
  "text": undefined,
661
653
  "name": "undocumented"
662
654
  }, {
663
- "text": "{ \"title\": \"Information Required\", \"props\": { \"demoData\": { \"states\": { \"status\": \"INFORMATION_REQUIRED\" } } }, \"uiGroup\": \"Alert States\" }",
655
+ "text": "{ \"title\": \"Payout Info Required\", \"props\": { \"states\": { \"status\": \"INFORMATION_REQUIRED\" } }, \"dependencies\": [\"sqm-payout-status-alert\"] }",
664
656
  "name": "componentState"
665
657
  }, {
666
- "text": "{ \"title\": \"Over W9 Threshold\", \"props\": { \"demoData\": { \"states\": { \"status\": \"OVER_W9_THRESHOLD\", \"enforceUsTaxComplianceOption\": \"CASH_ONLY_DEFER_W9\" } } }, \"uiGroup\": \"Alert States\" }",
658
+ "text": "{ \"title\": \"Verification Required\", \"props\": { \"states\": { \"status\": \"VERIFICATION:REQUIRED\" } }, \"dependencies\": [\"sqm-payout-status-alert\"] }",
667
659
  "name": "componentState"
668
660
  }, {
669
- "text": "{ \"title\": \"Over W9 Threshold - Hold\", \"props\": { \"demoData\": { \"states\": { \"status\": \"OVER_W9_THRESHOLD\", \"enforceUsTaxComplianceOption\": \"NONE\" } } }, \"uiGroup\": \"Alert States\" }",
661
+ "text": "{ \"title\": \"Identity Verification\", \"props\": { \"states\": { \"status\": \"VERIFICATION:REVIEW\" } }, \"dependencies\": [\"sqm-payout-status-alert\"] }",
670
662
  "name": "componentState"
671
663
  }, {
672
- "text": "{ \"title\": \"Verification Required\", \"props\": { \"demoData\": { \"states\": { \"status\": \"VERIFICATION:REQUIRED\" } } }, \"uiGroup\": \"Alert States\" }",
673
- "name": "componentState"
674
- }, {
675
- "text": "{ \"title\": \"Verification Internal\", \"props\": { \"demoData\": { \"states\": { \"status\": \"VERIFICATION:INTERNAL\" } } }, \"uiGroup\": \"Alert States\" }",
676
- "name": "componentState"
677
- }, {
678
- "text": "{ \"title\": \"Verification Review\", \"props\": { \"demoData\": { \"states\": { \"status\": \"VERIFICATION:REVIEW\" } } }, \"uiGroup\": \"Alert States\" }",
679
- "name": "componentState"
680
- }, {
681
- "text": "{ \"title\": \"Verification Failed\", \"props\": { \"demoData\": { \"states\": { \"status\": \"VERIFICATION:FAILED\" } } }, \"uiGroup\": \"Alert States\" }",
682
- "name": "componentState"
683
- }, {
684
- "text": "{ \"title\": \"Account Review\", \"props\": { \"demoData\": { \"states\": { \"status\": \"ACCOUNT_REVIEW\" } } }, \"uiGroup\": \"Alert States\" }",
685
- "name": "componentState"
686
- }, {
687
- "text": "{ \"title\": \"Hold\", \"props\": { \"demoData\": { \"states\": { \"status\": \"HOLD\" } } }, \"uiGroup\": \"Alert States\" }",
688
- "name": "componentState"
689
- }, {
690
- "text": "{ \"title\": \"Done - No Alert\", \"props\": { \"demoData\": { \"states\": { \"status\": \"DONE\" } } }, \"uiGroup\": \"Alert States\" }",
691
- "name": "componentState"
692
- }, {
693
- "text": "{ \"title\": \"Error State\", \"props\": { \"demoData\": { \"states\": { \"error\": true } } }, \"uiGroup\": \"Alert States\" }",
694
- "name": "componentState"
695
- }, {
696
- "text": "{ \"title\": \"Loading State\", \"props\": { \"demoData\": { \"states\": { \"loading\": true } } }, \"uiGroup\": \"Alert States\" }",
664
+ "text": "{ \"title\": \"Account Hold\", \"props\": { \"states\": { \"status\": \"HOLD\" } }, \"dependencies\": [\"sqm-payout-status-alert\"] }",
697
665
  "name": "componentState"
698
666
  }],
699
667
  "text": ""
@@ -752,5 +720,5 @@ function useDemoPayoutStatusAlert(props) {
752
720
  onTermsClick: () => { },
753
721
  onClick: () => console.log("show"),
754
722
  },
755
- }, props.demoData || formatted || {}, { arrayMerge: (_, a) => a });
723
+ }, formatted || props.demoData || {}, { arrayMerge: (_, a) => a });
756
724
  }
@@ -1125,7 +1125,7 @@ export class TaxAndCashMonolith {
1125
1125
  case "/4":
1126
1126
  return (h("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
1127
1127
  case "/dashboard":
1128
- return (h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
1128
+ return (h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"), { stateController: props["sqm-tax-and-cash-dashboard_stateController"] || "{}" })));
1129
1129
  case "/error":
1130
1130
  return (h(ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: intl.formatMessage({
1131
1131
  id: "loadingErrorAlertDescription",
@@ -7,9 +7,6 @@ const style = {
7
7
  backgroundColor: "var(--sl-color-red-100)",
8
8
  borderTop: "none",
9
9
  },
10
- "& sl-icon::part(base)": {
11
- color: "var(--sl-color-danger-500)",
12
- },
13
10
  },
14
11
  WarningAlertContainer: {
15
12
  "&::part(base)": {
@@ -17,9 +14,6 @@ const style = {
17
14
  borderTop: "none",
18
15
  maxWidth: "600px",
19
16
  },
20
- "& sl-icon::part(base)": {
21
- color: "var(--sl-color-warning-500)",
22
- },
23
17
  },
24
18
  WarningHoldAlertContainer: {
25
19
  marginLeft: "-20px",
@@ -27,9 +21,10 @@ const style = {
27
21
  maxWidth: "850px",
28
22
  border: "none",
29
23
  backgroundColor: "transparent",
24
+ color: "var(--sqm-text)",
30
25
  },
31
26
  "& sl-icon::part(base)": {
32
- color: "var(--sl-color-warning-500)",
27
+ color: "var(--sqm-warning-color-icon)",
33
28
  },
34
29
  },
35
30
  ErrorHoldAlertContainer: {
@@ -38,9 +33,10 @@ const style = {
38
33
  maxWidth: "850px",
39
34
  border: "none",
40
35
  backgroundColor: "transparent",
36
+ color: "var(--sqm-text)",
41
37
  },
42
38
  "& sl-icon::part(base)": {
43
- color: "var(--sl-color-danger-500)",
39
+ color: "var(--sqm-danger-color-icon)",
44
40
  },
45
41
  },
46
42
  ExpiringSoonAlertContainer: {
@@ -63,7 +59,7 @@ const style = {
63
59
  display: "flex",
64
60
  gap: "var(--sl-spacing-x-small)",
65
61
  "&::part(base)": {
66
- color: "var(--sl-color-green-500)",
62
+ color: "var(--sqm-text)",
67
63
  },
68
64
  },
69
65
  IndirectTaxPreviewDetails: {
@@ -72,12 +68,13 @@ const style = {
72
68
  flexDirection: "column",
73
69
  lineHeight: "var(--sl-spacing-medium)",
74
70
  fontSize: "var(--sl-font-size-small)",
71
+ color: "var(--sqm-text-subdued)",
75
72
  },
76
73
  InvoiceTableContainer: {
77
74
  marginTop: "var(--sl-spacing-medium)",
78
75
  },
79
76
  NotRegisteredIndirectTaxText: {
80
- color: "var(--sl-color-gray-500)",
77
+ color: "var(--sqm-text-subdued)",
81
78
  },
82
79
  TaxDocumentsContainer: {
83
80
  marginTop: "var(--sl-spacing-xx-large)",
@@ -98,7 +95,6 @@ const style = {
98
95
  "& p": {
99
96
  margin: "0",
100
97
  paddingTop: "2px",
101
- color: "var(--sl-color-gray-500)",
102
98
  },
103
99
  },
104
100
  StatusAlert: {
@@ -133,7 +129,7 @@ const style = {
133
129
  },
134
130
  TaxDocSubtext: {
135
131
  margin: "0",
136
- color: "var(--sl-color-neutral-500)",
132
+ color: "var(--sqm-text-subdued)",
137
133
  lineHeight: "var(--sl-spacing-medium)",
138
134
  fontSize: "var(--sl-font-size-small)",
139
135
  marginLeft: "1px",
@@ -154,13 +150,13 @@ const style = {
154
150
  gap: "6px",
155
151
  },
156
152
  DescriptionText: {
157
- color: "var(--sl-color-gray-500)",
153
+ color: "var(--sqm-text-subdued)",
158
154
  fontSize: "var(--sl-font-size-x-small)",
159
155
  marginBottom: "none",
160
156
  maxWidth: "492px",
161
157
  },
162
158
  PageDescriptionText: {
163
- color: "var(--sl-color-neutral-500)",
159
+ color: "var(--sqm-text-subdued)",
164
160
  fontSize: "var(--sl-font-size-medium)",
165
161
  marginTop: "0",
166
162
  },
@@ -191,9 +187,53 @@ const style = {
191
187
  },
192
188
  },
193
189
  DialogButton: { margin: "auto", width: "100%" },
190
+ SuccessBadge: {
191
+ "&::part(base)": {
192
+ textAlign: "center",
193
+ whiteSpace: "pre-line",
194
+ background: "var(--sqm-success-color-icon)",
195
+ },
196
+ },
197
+ WarningBadge: {
198
+ "&::part(base)": {
199
+ textAlign: "center",
200
+ whiteSpace: "pre-line",
201
+ background: "var(--sqm-warning-color-icon)",
202
+ },
203
+ },
204
+ ErrorBadge: {
205
+ "&::part(base)": {
206
+ textAlign: "center",
207
+ whiteSpace: "pre-line",
208
+ background: "var(--sqm-danger-color-icon)",
209
+ },
210
+ },
211
+ SubduedText: {
212
+ color: "var(--sqm-text-subdued)",
213
+ },
194
214
  };
195
215
  const sheet = createStyleSheet(style);
196
216
  const styleString = sheet.toString();
217
+ const vanillaStyle = `
218
+ :host{
219
+ display: block;
220
+ }
221
+
222
+ sl-button[type="secondary"]::part(base) {
223
+ font-family: var(--sqm-primary-font);
224
+ background-color: var(--sqm-secondary-button-background);
225
+ color: var(--sqm-secondary-button-color);
226
+ border-color: var(--sqm-secondary-button-color-border);
227
+ border-radius: var(--sqm-secondary-button-radius);
228
+ }
229
+
230
+ sl-button[type="secondary"]::part(base):hover {
231
+ background-color: var(--sqm-secondary-button-background-hover);
232
+ color: var(--sqm-secondary-button-color-hover);
233
+ border-color: var(--sqm-secondary-button-border-color-hover);
234
+ }
235
+
236
+ `;
197
237
  export const TaxAndCashDashboardView = (props) => {
198
238
  var _a;
199
239
  const { states, text, callbacks, slots } = props;
@@ -210,7 +250,7 @@ export const TaxAndCashDashboardView = (props) => {
210
250
  termsAndConditions: (h("a", { target: "_blank", href: `https://terms.advocate.impact.com/PayoutTermsAndConditions.html` }, text.termsAndConditions)),
211
251
  }),
212
252
  button: (h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", onClick: callbacks.onNewFormClick }, text.w9RequiredButtonText)),
213
- alertType: "info",
253
+ alertType: "warning",
214
254
  icon: "info-circle",
215
255
  class: sheet.classes.WarningHoldAlertContainer,
216
256
  };
@@ -317,16 +357,16 @@ export const TaxAndCashDashboardView = (props) => {
317
357
  }
318
358
  const statusMap = {
319
359
  NOT_VERIFIED: (h("div", { class: sheet.classes.TaxFormDetailsContainer },
320
- h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
321
- h("p", null, intl.formatMessage({
360
+ h("sl-badge", { class: sheet.classes.WarningBadge, type: "warning", pill: true }, text.statusTextNotVerified),
361
+ h("p", { class: sheet.classes.SubduedText }, intl.formatMessage({
322
362
  id: `badgeTextAwaitingReview`,
323
363
  defaultMessage: text.badgeTextAwaitingReview,
324
364
  }, {
325
365
  dateSubmitted: states.dateSubmitted,
326
366
  })))),
327
367
  ACTIVE: (h("div", { class: sheet.classes.TaxFormDetailsContainer },
328
- h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
329
- h("p", null, intl.formatMessage({
368
+ h("sl-badge", { class: sheet.classes.SuccessBadge, type: "success", pill: true }, text.statusTextActive),
369
+ h("p", { class: sheet.classes.SubduedText }, intl.formatMessage({
330
370
  id: `badgeTextSubmittedOn`,
331
371
  defaultMessage: states.documentType === "W9"
332
372
  ? text.badgeTextSubmittedOn
@@ -335,8 +375,8 @@ export const TaxAndCashDashboardView = (props) => {
335
375
  dateSubmitted: states.dateSubmitted,
336
376
  })))),
337
377
  INACTIVE: (h("div", { class: sheet.classes.TaxFormDetailsContainer },
338
- h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
339
- h("p", null, text.invalidForm))),
378
+ h("sl-badge", { class: sheet.classes.ErrorBadge, type: "danger", pill: true }, text.statusTextNotActive),
379
+ h("p", { class: sheet.classes.SubduedText }, text.invalidForm))),
340
380
  undefined: (h("div", { class: sheet.classes.TaxFormDetailsContainer },
341
381
  h("sl-badge", { type: "danger", pill: true }, text.statusTextRequired),
342
382
  h("p", null, intl.formatMessage({
@@ -398,9 +438,11 @@ export const TaxAndCashDashboardView = (props) => {
398
438
  const alertInfo = getAlert(states.payoutStatus);
399
439
  return (h("div", null,
400
440
  h("div", null,
401
- h("style", { type: "text/css" }, styleString),
441
+ h("style", { type: "text/css" },
442
+ styleString,
443
+ vanillaStyle),
402
444
  states.loadingError && (h("div", null,
403
- h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true },
445
+ h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet.classes.ErrorAlertContainer },
404
446
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
405
447
  h("strong", null, text.error.loadingErrorAlertHeader),
406
448
  h("br", null),
@@ -420,8 +462,7 @@ export const TaxAndCashDashboardView = (props) => {
420
462
  }, {
421
463
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
422
464
  }))),
423
- alertInfo && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", name: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.alertType, open: true, class: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.class },
424
- h("sl-icon", { slot: "icon", name: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.icon }),
465
+ alertInfo && (h("sqm-form-message", { exportparts: "base: alert-base, icon:alert-icon", type: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.alertType, class: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.class, icon: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.icon, transparent: true },
425
466
  h("strong", null, alertInfo.header),
426
467
  h("p", { style: { margin: "0" } }, alertInfo.description),
427
468
  alertInfo.buttonText && (h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", loading: states.veriffLoading, onClick: () => callbacks.onVerifyClick() }, alertInfo.buttonText)),
@@ -436,7 +477,7 @@ export const TaxAndCashDashboardView = (props) => {
436
477
  h("div", { class: sheet.classes.BankingInformationContainer },
437
478
  slots.payoutDetailsCardSlot,
438
479
  !states.loading && (h("p", { class: sheet.classes.DescriptionText }, text.payoutFromImpact)),
439
- states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
480
+ states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, exportparts: "base: secondarybutton-base", type: "secondary", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
440
481
  (!states.noFormNeeded || states.status === "NOT_VERIFIED") && (h("div", { class: sheet.classes.TaxDocumentsContainer },
441
482
  h("div", null, states.loading ? (h("div", { class: sheet.classes.TaxSectionSkeletonContainer },
442
483
  h("sl-skeleton", { class: sheet.classes.SkeletonOne }),
@@ -1900,7 +1900,6 @@ export class TaxAndCashDashboard {
1900
1900
  }; }
1901
1901
  }
1902
1902
  function useDemoTaxAndCashDashboard(props) {
1903
- console.log("dashboard", { props });
1904
1903
  // @ts-ignore
1905
1904
  return deepmerge({
1906
1905
  states: {