@saasquatch/mint-components 1.8.0-68 → 1.8.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 (32) hide show
  1. package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +7 -3
  2. package/dist/cjs/{sqm-invoice-table-view-4697fd3a.js → sqm-invoice-table-view-833b25e4.js} +34 -0
  3. package/dist/cjs/sqm-stencilbook.cjs.entry.js +1 -1
  4. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +4 -0
  5. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +5 -1
  6. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/ErrorView.js +30 -0
  7. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +2 -5
  8. package/dist/esm/sqm-banking-info-form_16.entry.js +7 -3
  9. package/dist/esm/{sqm-invoice-table-view-2dc9cc44.js → sqm-invoice-table-view-6eb9410d.js} +34 -1
  10. package/dist/esm/sqm-stencilbook.entry.js +1 -1
  11. package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
  12. package/dist/esm-es5/sqm-invoice-table-view-6eb9410d.js +1 -0
  13. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  14. package/dist/mint-components/mint-components.esm.js +1 -1
  15. package/dist/mint-components/{p-f3ec6d63.system.entry.js → p-0871d0eb.system.entry.js} +1 -1
  16. package/dist/mint-components/{p-039046ea.entry.js → p-09d9b820.entry.js} +1 -1
  17. package/dist/mint-components/p-4d0b4423.system.entry.js +1 -0
  18. package/dist/mint-components/p-54f31bbb.entry.js +148 -0
  19. package/dist/mint-components/p-c4fb6353.system.js +1 -0
  20. package/dist/mint-components/p-d5364cae.system.js +1 -1
  21. package/dist/mint-components/p-dae06a4a.js +1 -0
  22. package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +1 -0
  23. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/ErrorView.d.ts +6 -0
  24. package/docs/docs.docx +0 -0
  25. package/docs/picklesdoc--2024-01-15--11-20-00.xlsx +0 -0
  26. package/docs/picklesdoc--2024-01-15--11-24-04.xlsx +0 -0
  27. package/package.json +1 -1
  28. package/dist/esm-es5/sqm-invoice-table-view-2dc9cc44.js +0 -1
  29. package/dist/mint-components/p-15428a36.system.entry.js +0 -1
  30. package/dist/mint-components/p-40dec47f.entry.js +0 -148
  31. package/dist/mint-components/p-7505ab42.js +0 -1
  32. package/dist/mint-components/p-ca76e3fd.system.js +0 -1
@@ -16,7 +16,7 @@ const useChildElements = require('./useChildElements-3caf3e22.js');
16
16
  const luxon = require('./luxon-33ebaf57.js');
17
17
  const useReferralTable = require('./useReferralTable-ef23d978.js');
18
18
  const utils = require('./utils-6847bc06.js');
19
- const sqmInvoiceTableView = require('./sqm-invoice-table-view-4697fd3a.js');
19
+ const sqmInvoiceTableView = require('./sqm-invoice-table-view-833b25e4.js');
20
20
 
21
21
  const mockPaymentOptions = {
22
22
  CAD: [
@@ -3911,11 +3911,15 @@ const style$4 = {
3911
3911
  Alert: {
3912
3912
  "&::part(base)": {
3913
3913
  backgroundColor: "var(--sl-color-warning-100)",
3914
- border: "1px solid var(--sl-color-warning-300)",
3914
+ border: "1px solid var(--sl-color-warning-200)",
3915
3915
  padding: "0 16px",
3916
3916
  },
3917
+ "& sl-icon": {
3918
+ margin: 0,
3919
+ },
3917
3920
  "& sl-icon::part(base)": {
3918
3921
  color: "var(--sl-color-warning-500)",
3922
+ margin: 0,
3919
3923
  },
3920
3924
  },
3921
3925
  AlertContent: {
@@ -5194,7 +5198,7 @@ const TaxAndCashMonolith = class {
5194
5198
  case "/dashboard":
5195
5199
  return (index.h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
5196
5200
  case "/error":
5197
- return (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true }, index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }), index.h("strong", null, this.loadingErrorAlertHeader), index.h("br", null), this.loadingErrorAlertDescription));
5201
+ return (index.h(sqmInvoiceTableView.ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: this.loadingErrorAlertDescription }));
5198
5202
  }
5199
5203
  return index.h(sqmInvoiceTableView.LoadingView, null);
5200
5204
  }
@@ -121,6 +121,35 @@ const getIsRequiredErrorMessage = (fieldName, errorMessage) => {
121
121
  };
122
122
  //TODO: AL Add utils function for handling mapping of badge statuses to actual badge text in tax-and-cash-dashboard
123
123
 
124
+ const styles = {
125
+ Alert: {
126
+ "&::part(base)": {
127
+ backgroundColor: "var(--sl-color-danger-100)",
128
+ border: "1px solid var(--sl-color-danger-200)",
129
+ padding: "0 16px",
130
+ },
131
+ "& sl-icon": {
132
+ margin: 0,
133
+ },
134
+ "& sl-icon::part(base)": {
135
+ color: "var(--sl-color-danger-500)",
136
+ margin: 0,
137
+ },
138
+ },
139
+ };
140
+ const ErrorView = (props) => {
141
+ const sheet = JSS.createStyleSheet(styles);
142
+ const styleString = sheet.toString();
143
+ const { classes } = sheet;
144
+ return (index.h("div", null,
145
+ index.h("style", null, styleString),
146
+ index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: classes.Alert },
147
+ index.h("sl-icon", { slot: "icon", name: "exclamation-octagon", class: "Error" }),
148
+ index.h("strong", null, props.loadingErrorAlertHeader),
149
+ index.h("br", null),
150
+ props.loadingErrorAlertDescription)));
151
+ };
152
+
124
153
  const TaxForm_stories = {
125
154
  title: "Components/Tax Form",
126
155
  };
@@ -287,6 +316,9 @@ const docusignFormProps = {
287
316
  const GeneralLoadingView = () => {
288
317
  return index.h(LoadingView, null);
289
318
  };
319
+ const GeneralErrorView = () => {
320
+ return (index.h(ErrorView, { loadingErrorAlertHeader: "There was a problem loading your form", loadingErrorAlertDescription: "Please refresh the page and try again. If this problem continues, contact Support." }));
321
+ };
290
322
  // STEP ONE
291
323
  const StepOne = () => {
292
324
  return index.h("sqm-user-info-form", { demoData: stepOneProps });
@@ -1047,6 +1079,7 @@ const TaxForm = /*#__PURE__*/Object.freeze({
1047
1079
  __proto__: null,
1048
1080
  'default': TaxForm_stories,
1049
1081
  GeneralLoadingView: GeneralLoadingView,
1082
+ GeneralErrorView: GeneralErrorView,
1050
1083
  StepOne: StepOne,
1051
1084
  StepOneLoading: StepOneLoading,
1052
1085
  StepOneDisabled: StepOneDisabled,
@@ -1407,6 +1440,7 @@ function InvoiceTableView(props, children) {
1407
1440
  children))));
1408
1441
  }
1409
1442
 
1443
+ exports.ErrorView = ErrorView;
1410
1444
  exports.GeneralLoadingView = GeneralLoadingView;
1411
1445
  exports.INDIRECT_TAX_PROVINCES = INDIRECT_TAX_PROVINCES;
1412
1446
  exports.INDIRECT_TAX_SPAIN_REGIONS = INDIRECT_TAX_SPAIN_REGIONS;
@@ -30,7 +30,7 @@ const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-d63
30
30
  const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-1e6255e9.js');
31
31
  const ShadowViewAddon = require('./ShadowViewAddon-119ea8d4.js');
32
32
  const sqmPortalContainerView = require('./sqm-portal-container-view-e565003b.js');
33
- const sqmInvoiceTableView = require('./sqm-invoice-table-view-4697fd3a.js');
33
+ const sqmInvoiceTableView = require('./sqm-invoice-table-view-833b25e4.js');
34
34
 
35
35
  /**
36
36
  * lodash (Custom Build) <https://lodash.com/>
@@ -4,6 +4,7 @@ import LoadingView from "./sqm-tax-and-cash/LoadingView";
4
4
  // import sqmUserInfoSpecs from "./sqm-tax-document-step-1.feature";
5
5
  // import sqmIndirectTaxFormSpecs from "../sqm-indirect-tax-form/sqm-indirect-tax-form.feature";
6
6
  import { taxTypeToName } from "./utils";
7
+ import { ErrorView } from "./sqm-tax-and-cash/ErrorView";
7
8
  export default {
8
9
  title: "Components/Tax Form",
9
10
  };
@@ -170,6 +171,9 @@ const docusignFormProps = {
170
171
  export const GeneralLoadingView = () => {
171
172
  return h(LoadingView, null);
172
173
  };
174
+ export const GeneralErrorView = () => {
175
+ return (h(ErrorView, { loadingErrorAlertHeader: "There was a problem loading your form", loadingErrorAlertDescription: "Please refresh the page and try again. If this problem continues, contact Support." }));
176
+ };
173
177
  // STEP ONE
174
178
  export const StepOne = () => {
175
179
  return h("sqm-user-info-form", { demoData: stepOneProps });
@@ -87,11 +87,15 @@ const style = {
87
87
  Alert: {
88
88
  "&::part(base)": {
89
89
  backgroundColor: "var(--sl-color-warning-100)",
90
- border: "1px solid var(--sl-color-warning-300)",
90
+ border: "1px solid var(--sl-color-warning-200)",
91
91
  padding: "0 16px",
92
92
  },
93
+ "& sl-icon": {
94
+ margin: 0,
95
+ },
93
96
  "& sl-icon::part(base)": {
94
97
  color: "var(--sl-color-warning-500)",
98
+ margin: 0,
95
99
  },
96
100
  },
97
101
  AlertContent: {
@@ -0,0 +1,30 @@
1
+ import { h } from "@stencil/core";
2
+ import { createStyleSheet } from "../../../styling/JSS";
3
+ const styles = {
4
+ Alert: {
5
+ "&::part(base)": {
6
+ backgroundColor: "var(--sl-color-danger-100)",
7
+ border: "1px solid var(--sl-color-danger-200)",
8
+ padding: "0 16px",
9
+ },
10
+ "& sl-icon": {
11
+ margin: 0,
12
+ },
13
+ "& sl-icon::part(base)": {
14
+ color: "var(--sl-color-danger-500)",
15
+ margin: 0,
16
+ },
17
+ },
18
+ };
19
+ export const ErrorView = (props) => {
20
+ const sheet = createStyleSheet(styles);
21
+ const styleString = sheet.toString();
22
+ const { classes } = sheet;
23
+ return (h("div", null,
24
+ h("style", null, styleString),
25
+ h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: classes.Alert },
26
+ h("sl-icon", { slot: "icon", name: "exclamation-octagon", class: "Error" }),
27
+ h("strong", null, props.loadingErrorAlertHeader),
28
+ h("br", null),
29
+ props.loadingErrorAlertDescription)));
30
+ };
@@ -8,6 +8,7 @@ import { TAX_CONTEXT_NAMESPACE } from "./data";
8
8
  import { extractProps } from "./extractProps";
9
9
  import { useTaxAndCash } from "./useTaxAndCash";
10
10
  import { isDemo } from "@saasquatch/component-boilerplate";
11
+ import { ErrorView } from "./ErrorView";
11
12
  /**
12
13
  * @uiName Tax and Cash
13
14
  * @exampleGroup Tax and Cash
@@ -917,11 +918,7 @@ export class TaxAndCashMonolith {
917
918
  case "/dashboard":
918
919
  return (h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
919
920
  case "/error":
920
- return (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true },
921
- h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
922
- h("strong", null, this.loadingErrorAlertHeader),
923
- h("br", null),
924
- this.loadingErrorAlertDescription));
921
+ return (h(ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: this.loadingErrorAlertDescription }));
925
922
  }
926
923
  return h(LoadingView, null);
927
924
  }
@@ -12,7 +12,7 @@ import { u as useChildElements } from './useChildElements-b6d750df.js';
12
12
  import { l as luxon } from './luxon-01b10a1d.js';
13
13
  import { g as generateUserError } from './useReferralTable-9e95b558.js';
14
14
  import { g as getProps, l as luxonLocale } from './utils-334c1e34.js';
15
- import { t as taxTypeToName, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, O as OtherRegionSlotView, I as InvoiceTableView, L as LoadingView, v as vatLabels, N as NextPayout, G as GeneralLoadingView, g as getIsRequiredErrorMessage, o as objectIsFull } from './sqm-invoice-table-view-2dc9cc44.js';
15
+ import { t as taxTypeToName, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, O as OtherRegionSlotView, I as InvoiceTableView, E as ErrorView, L as LoadingView, v as vatLabels, N as NextPayout, G as GeneralLoadingView, g as getIsRequiredErrorMessage, o as objectIsFull } from './sqm-invoice-table-view-6eb9410d.js';
16
16
 
17
17
  const mockPaymentOptions = {
18
18
  CAD: [
@@ -3907,11 +3907,15 @@ const style$4 = {
3907
3907
  Alert: {
3908
3908
  "&::part(base)": {
3909
3909
  backgroundColor: "var(--sl-color-warning-100)",
3910
- border: "1px solid var(--sl-color-warning-300)",
3910
+ border: "1px solid var(--sl-color-warning-200)",
3911
3911
  padding: "0 16px",
3912
3912
  },
3913
+ "& sl-icon": {
3914
+ margin: 0,
3915
+ },
3913
3916
  "& sl-icon::part(base)": {
3914
3917
  color: "var(--sl-color-warning-500)",
3918
+ margin: 0,
3915
3919
  },
3916
3920
  },
3917
3921
  AlertContent: {
@@ -5190,7 +5194,7 @@ const TaxAndCashMonolith = class {
5190
5194
  case "/dashboard":
5191
5195
  return (h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
5192
5196
  case "/error":
5193
- return (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true }, h("sl-icon", { slot: "icon", name: "exclamation-octagon" }), h("strong", null, this.loadingErrorAlertHeader), h("br", null), this.loadingErrorAlertDescription));
5197
+ return (h(ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: this.loadingErrorAlertDescription }));
5194
5198
  }
5195
5199
  return h(LoadingView, null);
5196
5200
  }
@@ -119,6 +119,35 @@ const getIsRequiredErrorMessage = (fieldName, errorMessage) => {
119
119
  };
120
120
  //TODO: AL Add utils function for handling mapping of badge statuses to actual badge text in tax-and-cash-dashboard
121
121
 
122
+ const styles = {
123
+ Alert: {
124
+ "&::part(base)": {
125
+ backgroundColor: "var(--sl-color-danger-100)",
126
+ border: "1px solid var(--sl-color-danger-200)",
127
+ padding: "0 16px",
128
+ },
129
+ "& sl-icon": {
130
+ margin: 0,
131
+ },
132
+ "& sl-icon::part(base)": {
133
+ color: "var(--sl-color-danger-500)",
134
+ margin: 0,
135
+ },
136
+ },
137
+ };
138
+ const ErrorView = (props) => {
139
+ const sheet = createStyleSheet(styles);
140
+ const styleString = sheet.toString();
141
+ const { classes } = sheet;
142
+ return (h("div", null,
143
+ h("style", null, styleString),
144
+ h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: classes.Alert },
145
+ h("sl-icon", { slot: "icon", name: "exclamation-octagon", class: "Error" }),
146
+ h("strong", null, props.loadingErrorAlertHeader),
147
+ h("br", null),
148
+ props.loadingErrorAlertDescription)));
149
+ };
150
+
122
151
  const TaxForm_stories = {
123
152
  title: "Components/Tax Form",
124
153
  };
@@ -285,6 +314,9 @@ const docusignFormProps = {
285
314
  const GeneralLoadingView = () => {
286
315
  return h(LoadingView, null);
287
316
  };
317
+ const GeneralErrorView = () => {
318
+ return (h(ErrorView, { loadingErrorAlertHeader: "There was a problem loading your form", loadingErrorAlertDescription: "Please refresh the page and try again. If this problem continues, contact Support." }));
319
+ };
288
320
  // STEP ONE
289
321
  const StepOne = () => {
290
322
  return h("sqm-user-info-form", { demoData: stepOneProps });
@@ -1045,6 +1077,7 @@ const TaxForm = /*#__PURE__*/Object.freeze({
1045
1077
  __proto__: null,
1046
1078
  'default': TaxForm_stories,
1047
1079
  GeneralLoadingView: GeneralLoadingView,
1080
+ GeneralErrorView: GeneralErrorView,
1048
1081
  StepOne: StepOne,
1049
1082
  StepOneLoading: StepOneLoading,
1050
1083
  StepOneDisabled: StepOneDisabled,
@@ -1405,4 +1438,4 @@ function InvoiceTableView(props, children) {
1405
1438
  children))));
1406
1439
  }
1407
1440
 
1408
- export { GeneralLoadingView as G, InvoiceTableView as I, LoadingView as L, NextPayout as N, OtherRegionSlotView as O, PayoutDetailsCard as P, TaxForm as T, INDIRECT_TAX_SPAIN_REGIONS as a, INDIRECT_TAX_PROVINCES as b, getIsRequiredErrorMessage as g, objectIsFull as o, taxTypeToName as t, vatLabels as v };
1441
+ export { ErrorView as E, GeneralLoadingView as G, InvoiceTableView as I, LoadingView as L, NextPayout as N, OtherRegionSlotView as O, PayoutDetailsCard as P, TaxForm as T, INDIRECT_TAX_SPAIN_REGIONS as a, INDIRECT_TAX_PROVINCES as b, getIsRequiredErrorMessage as g, objectIsFull as o, taxTypeToName as t, vatLabels as v };
@@ -26,7 +26,7 @@ import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-e
26
26
  import { P as PortalVerifyEmailView } from './sqm-portal-verify-email-view-fb6875bb.js';
27
27
  import { S as ShareButtonView, L as LeaderboardView, C as CopyTextView, B as BigStatView, P as PortalFrameView, E as EditProfileView, u as useShareLink, a as useShareButton, b as useDemoBigStat, c as StatContainerView, d as PortalChangePasswordView, e as PortalLoginView, f as PortalRegisterView, T as TaskCardView, g as ProgressBarView, h as PoweredByImg$1, i as PortalFooterView, H as HeroView, R as ReferralIframeView, N as NameFieldsView, j as CheckboxFieldView, D as DropdownFieldView, I as InputFieldView, k as RewardExchangeView, r as rewardExchangeCustomErrorMsg, l as rewardExchangeLongText, m as rewardExchangeSelected, n as chooseAmountFixed, o as chooseAmountFixedNoDescription, p as chooseAmountVariable, q as chooseAmountVariableNoDescription, s as chooseAmountVariableDisabled, t as chooseAmountVariableUnavailable, v as confirmFixed, w as confirmVariable, x as redemptionError, y as queryError, z as success, A as successVariable, F as loading, G as empty$1, J as rewardExchange, K as CardFeedView, M as CouponCodeView, O as ProgressBar$2, Q as autoColorScaleCss, U as ShadowViewAddon } from './ShadowViewAddon-8ab7e840.js';
28
28
  import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-e42e3789.js';
29
- import { O as OtherRegionSlotView, I as InvoiceTableView, T as TaxForm, P as PayoutDetailsCard } from './sqm-invoice-table-view-2dc9cc44.js';
29
+ import { O as OtherRegionSlotView, I as InvoiceTableView, T as TaxForm, P as PayoutDetailsCard } from './sqm-invoice-table-view-6eb9410d.js';
30
30
 
31
31
  /**
32
32
  * lodash (Custom Build) <https://lodash.com/>