@saasquatch/mint-components 1.15.5-3 → 1.15.5-5

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 (49) 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_17.cjs.entry.js +10 -4
  4. package/dist/cjs/sqm-big-stat_43.cjs.entry.js +11 -4
  5. package/dist/cjs/sqm-header-logo.cjs.entry.js +8 -1
  6. package/dist/cjs/{usePayoutStatus-fc4e609e.js → usePayoutStatus-7892433f.js} +9 -0
  7. package/dist/collection/components/sqm-header-logo/sqm-header-logo.js +73 -3
  8. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +6 -4
  9. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +26 -0
  10. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +9 -0
  11. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +10 -4
  12. package/dist/esm/loader.js +1 -1
  13. package/dist/esm/mint-components.js +1 -1
  14. package/dist/esm/sqm-banking-info-form_17.entry.js +11 -5
  15. package/dist/esm/sqm-big-stat_43.entry.js +12 -5
  16. package/dist/esm/sqm-header-logo.entry.js +8 -1
  17. package/dist/esm/{usePayoutStatus-b4bdbfa7.js → usePayoutStatus-c21ef382.js} +9 -0
  18. package/dist/esm-es5/loader.js +1 -1
  19. package/dist/esm-es5/mint-components.js +1 -1
  20. package/dist/esm-es5/sqm-banking-info-form_17.entry.js +1 -1
  21. package/dist/esm-es5/sqm-big-stat_43.entry.js +1 -1
  22. package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
  23. package/dist/esm-es5/{usePayoutStatus-b4bdbfa7.js → usePayoutStatus-c21ef382.js} +1 -1
  24. package/dist/mint-components/mint-components.esm.js +1 -1
  25. package/dist/mint-components/p-37996351.system.js +1 -1
  26. package/dist/mint-components/p-48552798.system.entry.js +1 -0
  27. package/dist/mint-components/p-498bbce7.system.entry.js +1 -0
  28. package/dist/mint-components/p-67035b70.system.entry.js +1 -0
  29. package/dist/mint-components/{p-93db61eb.system.js → p-aa595246.system.js} +2 -2
  30. package/dist/mint-components/{p-e3deed72.entry.js → p-bdbf26da.entry.js} +21 -21
  31. package/dist/mint-components/p-cb87eadd.entry.js +1 -0
  32. package/dist/mint-components/{p-e8981f26.entry.js → p-d289d251.entry.js} +9 -9
  33. package/dist/mint-components/{p-fde41ad1.js → p-d9da598f.js} +5 -5
  34. package/dist/types/components/sqm-header-logo/sqm-header-logo.d.ts +14 -1
  35. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +2 -0
  36. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +4 -0
  37. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +1 -0
  38. package/dist/types/components.d.ts +35 -1
  39. package/docs/docs.docx +0 -0
  40. package/grapesjs/grapesjs.js +1 -1
  41. package/package.json +1 -1
  42. package/dist/mint-components/p-50988798.system.entry.js +0 -1
  43. package/dist/mint-components/p-7dabdca6.system.entry.js +0 -1
  44. package/dist/mint-components/p-a4f494ee.system.entry.js +0 -1
  45. package/dist/mint-components/p-faba3198.entry.js +0 -1
  46. package/dist/types/global/android.d.ts +0 -7
  47. package/dist/types/global/demo.d.ts +0 -2
  48. package/dist/types/stories/features.d.ts +0 -4
  49. package/dist/types/stories/templates.d.ts +0 -4
@@ -5,6 +5,10 @@ import { Component, h, Host, Prop } from "@stencil/core";
5
5
  */
6
6
  export class HeroImage {
7
7
  constructor() {
8
+ /**
9
+ * @uiName Logo text
10
+ */
11
+ this.logoTextSize = "24px";
8
12
  /**
9
13
  * Page participants are navigated to after clicking the header logo.
10
14
  *
@@ -21,8 +25,10 @@ export class HeroImage {
21
25
  disconnectedCallback() { }
22
26
  render() {
23
27
  return (h(Host, null,
24
- h("a", { href: this.nextPage, part: "sqm-link" },
25
- h("img", { style: { height: `${this === null || this === void 0 ? void 0 : this.height}px` }, src: this === null || this === void 0 ? void 0 : this.imageUrl }))));
28
+ h("a", { href: this.nextPage, part: "sqm-link" }, this.imageUrl ? (h("img", { style: { height: `${this === null || this === void 0 ? void 0 : this.height}px` }, src: this === null || this === void 0 ? void 0 : this.imageUrl })) : (h("h3", { style: {
29
+ fontSize: this.logoTextSize,
30
+ color: this.logoTextColor || "inherit",
31
+ } }, this.logoText)))));
26
32
  }
27
33
  static get is() { return "sqm-header-logo"; }
28
34
  static get encapsulation() { return "shadow"; }
@@ -36,7 +42,7 @@ export class HeroImage {
36
42
  "references": {}
37
43
  },
38
44
  "required": false,
39
- "optional": false,
45
+ "optional": true,
40
46
  "docs": {
41
47
  "tags": [{
42
48
  "text": "ImageUpload",
@@ -53,6 +59,70 @@ export class HeroImage {
53
59
  "attribute": "image-url",
54
60
  "reflect": false
55
61
  },
62
+ "logoText": {
63
+ "type": "string",
64
+ "mutable": false,
65
+ "complexType": {
66
+ "original": "string",
67
+ "resolved": "string",
68
+ "references": {}
69
+ },
70
+ "required": false,
71
+ "optional": true,
72
+ "docs": {
73
+ "tags": [{
74
+ "text": "Logo text",
75
+ "name": "uiName"
76
+ }],
77
+ "text": ""
78
+ },
79
+ "attribute": "logo-text",
80
+ "reflect": false
81
+ },
82
+ "logoTextSize": {
83
+ "type": "string",
84
+ "mutable": false,
85
+ "complexType": {
86
+ "original": "string",
87
+ "resolved": "string",
88
+ "references": {}
89
+ },
90
+ "required": false,
91
+ "optional": true,
92
+ "docs": {
93
+ "tags": [{
94
+ "text": "Logo text",
95
+ "name": "uiName"
96
+ }],
97
+ "text": ""
98
+ },
99
+ "attribute": "logo-text-size",
100
+ "reflect": false,
101
+ "defaultValue": "\"24px\""
102
+ },
103
+ "logoTextColor": {
104
+ "type": "string",
105
+ "mutable": false,
106
+ "complexType": {
107
+ "original": "string",
108
+ "resolved": "string",
109
+ "references": {}
110
+ },
111
+ "required": false,
112
+ "optional": true,
113
+ "docs": {
114
+ "tags": [{
115
+ "text": "color",
116
+ "name": "uiWidget"
117
+ }, {
118
+ "text": "Logo text",
119
+ "name": "uiName"
120
+ }],
121
+ "text": ""
122
+ },
123
+ "attribute": "logo-text-color",
124
+ "reflect": false
125
+ },
56
126
  "nextPage": {
57
127
  "type": "string",
58
128
  "mutable": false,
@@ -1,4 +1,4 @@
1
- import { h } from "@stencil/core";
1
+ import { Fragment, h } from "@stencil/core";
2
2
  import { intl } from "../../../global/global";
3
3
  import { createStyleSheet } from "../../../styling/JSS";
4
4
  const style = {
@@ -253,7 +253,9 @@ export function PayoutStatusAlertView(props) {
253
253
  }, {
254
254
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
255
255
  }),
256
- buttonText: text.editPaymentInformationButton,
256
+ button: (h(Fragment, null,
257
+ h("sl-button", { disabled: states.loading, type: "default", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton),
258
+ h("sl-button", { disabled: states.loading, type: "default", onClick: callbacks.onNewFormClick }, text.newFormButton))),
257
259
  alertType: "warning",
258
260
  icon: "exclamation-triangle",
259
261
  class: sheet.classes.WarningAlertContainer,
@@ -291,8 +293,8 @@ export function PayoutStatusAlertView(props) {
291
293
  case "VERIFICATION:REQUIRED":
292
294
  return (h("sl-button", { type: "default", loading: states.veriffLoading, onClick: callbacks.onClick }, text.verificationRequiredButtonText));
293
295
  default:
294
- if (alertDetails.buttonText)
295
- return (h("sl-button", { type: "default", onClick: callbacks.onPaymentInfoClick }, alertDetails.buttonText));
296
+ if (alertDetails.button)
297
+ return alertDetails.button;
296
298
  return;
297
299
  }
298
300
  }
@@ -21,6 +21,10 @@ export class PayoutStatusAlert {
21
21
  * @uiName Edit payment info button label
22
22
  */
23
23
  this.editPaymentInformationButton = "Edit Payout Information";
24
+ /**
25
+ * @uiName Submit new tax form button label
26
+ */
27
+ this.newFormButton = "Submit new form";
24
28
  /**
25
29
  * @uiName Info required alert description
26
30
  */
@@ -218,6 +222,27 @@ export class PayoutStatusAlert {
218
222
  "reflect": false,
219
223
  "defaultValue": "\"Edit Payout Information\""
220
224
  },
225
+ "newFormButton": {
226
+ "type": "string",
227
+ "mutable": false,
228
+ "complexType": {
229
+ "original": "string",
230
+ "resolved": "string",
231
+ "references": {}
232
+ },
233
+ "required": false,
234
+ "optional": false,
235
+ "docs": {
236
+ "tags": [{
237
+ "text": "Submit new tax form button label",
238
+ "name": "uiName"
239
+ }],
240
+ "text": ""
241
+ },
242
+ "attribute": "new-form-button",
243
+ "reflect": false,
244
+ "defaultValue": "\"Submit new form\""
245
+ },
221
246
  "informationRequiredDescription": {
222
247
  "type": "string",
223
248
  "mutable": false,
@@ -999,6 +1024,7 @@ function useDemoPayoutStatusAlert(props) {
999
1024
  onTermsClick: () => { },
1000
1025
  onClick: () => console.log("show"),
1001
1026
  onPaymentInfoClick: () => { },
1027
+ onNewFormClick: () => { },
1002
1028
  },
1003
1029
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
1004
1030
  }
@@ -119,6 +119,14 @@ export function usePayoutStatus(props) {
119
119
  });
120
120
  setStep("/4");
121
121
  };
122
+ const onNewFormClick = () => {
123
+ setContext({
124
+ overrideNextStep: "/dashboard",
125
+ overrideBackStep: "/dashboard",
126
+ hideSteps: true,
127
+ });
128
+ setStep("/3");
129
+ };
122
130
  return {
123
131
  states: {
124
132
  loading,
@@ -133,6 +141,7 @@ export function usePayoutStatus(props) {
133
141
  onTermsClick,
134
142
  onClick: render,
135
143
  onPaymentInfoClick,
144
+ onNewFormClick,
136
145
  },
137
146
  };
138
147
  }
@@ -1,4 +1,4 @@
1
- import { h } from "@stencil/core";
1
+ import { Fragment, h } from "@stencil/core";
2
2
  import { intl } from "../../../global/global";
3
3
  import { createStyleSheet } from "../../../styling/JSS";
4
4
  const style = {
@@ -320,7 +320,9 @@ export const TaxAndCashDashboardView = (props) => {
320
320
  }, {
321
321
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
322
322
  }),
323
- button: (h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)),
323
+ button: (h(Fragment, null,
324
+ h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton),
325
+ h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onNewFormClick }, text.newFormButton))),
324
326
  alertType: "warning",
325
327
  icon: "exclamation-triangle",
326
328
  class: sheet.classes.WarningHoldAlertContainer,
@@ -334,7 +336,9 @@ export const TaxAndCashDashboardView = (props) => {
334
336
  }, {
335
337
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
336
338
  }),
337
- button: (h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)),
339
+ button: (h(Fragment, null,
340
+ h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton),
341
+ h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onNewFormClick }, text.newFormButton))),
338
342
  alertType: "warning",
339
343
  icon: "exclamation-triangle",
340
344
  class: sheet.classes.WarningHoldAlertContainer,
@@ -348,7 +352,9 @@ export const TaxAndCashDashboardView = (props) => {
348
352
  }, {
349
353
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
350
354
  }),
351
- button: (h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)),
355
+ button: (h(Fragment, null,
356
+ h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton),
357
+ h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onNewFormClick }, text.newFormButton))),
352
358
  alertType: "warning",
353
359
  icon: "exclamation-triangle",
354
360
  class: sheet.classes.WarningHoldAlertContainer,