@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.
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +69 -29
- package/dist/cjs/{sqm-base-registration-form-view-8847804c.js → sqm-base-registration-form-view-7b95ae7a.js} +1 -0
- package/dist/cjs/sqm-big-stat_46.cjs.entry.js +5 -13
- package/dist/cjs/sqm-form-message.cjs.entry.js +6 -5
- package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +7 -6
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +20 -2
- package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +1 -1
- package/dist/collection/components/sqm-base-registration/sqm-base-registration-form-view.js +1 -0
- package/dist/collection/components/sqm-form-message/FormMessage.stories.js +14 -0
- package/dist/collection/components/sqm-form-message/sqm-form-message.css +7 -0
- package/dist/collection/components/sqm-form-message/sqm-form-message.js +23 -4
- package/dist/collection/components/sqm-hero/sqm-hero.js +4 -4
- package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +2 -2
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer.js +1 -1
- package/dist/collection/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.js +7 -4
- package/dist/collection/components/sqm-portal-google-registration-form/usePortalGoogleRegistrationForm.js +4 -1
- package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +9 -41
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +67 -26
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +0 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-banking-info-form_10.entry.js +69 -29
- package/dist/esm/{sqm-base-registration-form-view-193f1721.js → sqm-base-registration-form-view-1a6bb4b4.js} +1 -0
- package/dist/esm/sqm-big-stat_46.entry.js +5 -13
- package/dist/esm/sqm-form-message.entry.js +6 -5
- package/dist/esm/sqm-portal-google-registration-form.entry.js +7 -6
- package/dist/esm/sqm-stencilbook.entry.js +20 -2
- package/dist/esm/sqm-tax-and-cash.entry.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/{sqm-base-registration-form-view-193f1721.js → sqm-base-registration-form-view-1a6bb4b4.js} +1 -1
- package/dist/esm-es5/sqm-big-stat_46.entry.js +1 -1
- package/dist/esm-es5/sqm-form-message.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tax-and-cash.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-ddf3c05e.js → p-1522a7d1.js} +1 -1
- package/dist/mint-components/{p-38b92bc5.entry.js → p-38263521.entry.js} +1 -1
- package/dist/mint-components/{p-402984b3.system.entry.js → p-43a9fb8e.system.entry.js} +1 -1
- package/dist/mint-components/{p-13e66b37.system.entry.js → p-454a6d05.system.entry.js} +1 -1
- package/dist/mint-components/p-478ad7c8.system.entry.js +1 -0
- package/dist/mint-components/{p-ec25aaa7.system.entry.js → p-69d8b4f2.system.entry.js} +1 -1
- package/dist/mint-components/{p-a0730259.entry.js → p-6b247deb.entry.js} +6 -6
- package/dist/mint-components/p-71a6e549.system.entry.js +1 -0
- package/dist/mint-components/{p-a44a912b.entry.js → p-75c569f7.entry.js} +1 -1
- package/dist/mint-components/{p-e110688b.entry.js → p-78daa639.entry.js} +1 -1
- package/dist/mint-components/p-8801b7f1.system.entry.js +1 -0
- package/dist/mint-components/p-967a9040.system.js +1 -1
- package/dist/mint-components/p-ac9138fd.entry.js +1 -0
- package/dist/mint-components/{p-be88596c.system.js → p-b21c5311.system.js} +1 -1
- package/dist/mint-components/p-c2ac14b7.entry.js +1 -0
- package/dist/types/components/sqm-base-registration/sqm-base-registration-form-view.d.ts +1 -0
- package/dist/types/components/sqm-form-message/FormMessage.stories.d.ts +4 -0
- package/dist/types/components/sqm-form-message/sqm-form-message.d.ts +1 -0
- package/dist/types/components/sqm-hero/sqm-hero.d.ts +4 -4
- package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +2 -2
- package/dist/types/components/sqm-portal-footer/sqm-portal-footer.d.ts +1 -1
- package/dist/types/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.d.ts +5 -0
- package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +4 -12
- package/dist/types/components.d.ts +18 -32
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/mint-components/p-3ea29bac.system.entry.js +0 -1
- package/dist/mint-components/p-43d9c1c5.system.entry.js +0 -1
- package/dist/mint-components/p-916a2045.system.entry.js +0 -1
- package/dist/mint-components/p-a597b136.entry.js +0 -1
- package/dist/mint-components/p-ea063d99.entry.js +0 -1
|
@@ -3713,9 +3713,6 @@ const style$5 = {
|
|
|
3713
3713
|
backgroundColor: "var(--sl-color-red-100)",
|
|
3714
3714
|
borderTop: "none",
|
|
3715
3715
|
},
|
|
3716
|
-
"& sl-icon::part(base)": {
|
|
3717
|
-
color: "var(--sl-color-danger-500)",
|
|
3718
|
-
},
|
|
3719
3716
|
},
|
|
3720
3717
|
WarningAlertContainer: {
|
|
3721
3718
|
"&::part(base)": {
|
|
@@ -3723,9 +3720,6 @@ const style$5 = {
|
|
|
3723
3720
|
borderTop: "none",
|
|
3724
3721
|
maxWidth: "600px",
|
|
3725
3722
|
},
|
|
3726
|
-
"& sl-icon::part(base)": {
|
|
3727
|
-
color: "var(--sl-color-warning-500)",
|
|
3728
|
-
},
|
|
3729
3723
|
},
|
|
3730
3724
|
WarningHoldAlertContainer: {
|
|
3731
3725
|
marginLeft: "-20px",
|
|
@@ -3733,9 +3727,10 @@ const style$5 = {
|
|
|
3733
3727
|
maxWidth: "850px",
|
|
3734
3728
|
border: "none",
|
|
3735
3729
|
backgroundColor: "transparent",
|
|
3730
|
+
color: "var(--sqm-text)",
|
|
3736
3731
|
},
|
|
3737
3732
|
"& sl-icon::part(base)": {
|
|
3738
|
-
color: "var(--
|
|
3733
|
+
color: "var(--sqm-warning-color-icon)",
|
|
3739
3734
|
},
|
|
3740
3735
|
},
|
|
3741
3736
|
ErrorHoldAlertContainer: {
|
|
@@ -3744,9 +3739,10 @@ const style$5 = {
|
|
|
3744
3739
|
maxWidth: "850px",
|
|
3745
3740
|
border: "none",
|
|
3746
3741
|
backgroundColor: "transparent",
|
|
3742
|
+
color: "var(--sqm-text)",
|
|
3747
3743
|
},
|
|
3748
3744
|
"& sl-icon::part(base)": {
|
|
3749
|
-
color: "var(--
|
|
3745
|
+
color: "var(--sqm-danger-color-icon)",
|
|
3750
3746
|
},
|
|
3751
3747
|
},
|
|
3752
3748
|
ExpiringSoonAlertContainer: {
|
|
@@ -3769,7 +3765,7 @@ const style$5 = {
|
|
|
3769
3765
|
display: "flex",
|
|
3770
3766
|
gap: "var(--sl-spacing-x-small)",
|
|
3771
3767
|
"&::part(base)": {
|
|
3772
|
-
color: "var(--
|
|
3768
|
+
color: "var(--sqm-text)",
|
|
3773
3769
|
},
|
|
3774
3770
|
},
|
|
3775
3771
|
IndirectTaxPreviewDetails: {
|
|
@@ -3778,12 +3774,13 @@ const style$5 = {
|
|
|
3778
3774
|
flexDirection: "column",
|
|
3779
3775
|
lineHeight: "var(--sl-spacing-medium)",
|
|
3780
3776
|
fontSize: "var(--sl-font-size-small)",
|
|
3777
|
+
color: "var(--sqm-text-subdued)",
|
|
3781
3778
|
},
|
|
3782
3779
|
InvoiceTableContainer: {
|
|
3783
3780
|
marginTop: "var(--sl-spacing-medium)",
|
|
3784
3781
|
},
|
|
3785
3782
|
NotRegisteredIndirectTaxText: {
|
|
3786
|
-
color: "var(--
|
|
3783
|
+
color: "var(--sqm-text-subdued)",
|
|
3787
3784
|
},
|
|
3788
3785
|
TaxDocumentsContainer: {
|
|
3789
3786
|
marginTop: "var(--sl-spacing-xx-large)",
|
|
@@ -3804,7 +3801,6 @@ const style$5 = {
|
|
|
3804
3801
|
"& p": {
|
|
3805
3802
|
margin: "0",
|
|
3806
3803
|
paddingTop: "2px",
|
|
3807
|
-
color: "var(--sl-color-gray-500)",
|
|
3808
3804
|
},
|
|
3809
3805
|
},
|
|
3810
3806
|
StatusAlert: {
|
|
@@ -3839,7 +3835,7 @@ const style$5 = {
|
|
|
3839
3835
|
},
|
|
3840
3836
|
TaxDocSubtext: {
|
|
3841
3837
|
margin: "0",
|
|
3842
|
-
color: "var(--
|
|
3838
|
+
color: "var(--sqm-text-subdued)",
|
|
3843
3839
|
lineHeight: "var(--sl-spacing-medium)",
|
|
3844
3840
|
fontSize: "var(--sl-font-size-small)",
|
|
3845
3841
|
marginLeft: "1px",
|
|
@@ -3860,13 +3856,13 @@ const style$5 = {
|
|
|
3860
3856
|
gap: "6px",
|
|
3861
3857
|
},
|
|
3862
3858
|
DescriptionText: {
|
|
3863
|
-
color: "var(--
|
|
3859
|
+
color: "var(--sqm-text-subdued)",
|
|
3864
3860
|
fontSize: "var(--sl-font-size-x-small)",
|
|
3865
3861
|
marginBottom: "none",
|
|
3866
3862
|
maxWidth: "492px",
|
|
3867
3863
|
},
|
|
3868
3864
|
PageDescriptionText: {
|
|
3869
|
-
color: "var(--
|
|
3865
|
+
color: "var(--sqm-text-subdued)",
|
|
3870
3866
|
fontSize: "var(--sl-font-size-medium)",
|
|
3871
3867
|
marginTop: "0",
|
|
3872
3868
|
},
|
|
@@ -3897,9 +3893,53 @@ const style$5 = {
|
|
|
3897
3893
|
},
|
|
3898
3894
|
},
|
|
3899
3895
|
DialogButton: { margin: "auto", width: "100%" },
|
|
3896
|
+
SuccessBadge: {
|
|
3897
|
+
"&::part(base)": {
|
|
3898
|
+
textAlign: "center",
|
|
3899
|
+
whiteSpace: "pre-line",
|
|
3900
|
+
background: "var(--sqm-success-color-icon)",
|
|
3901
|
+
},
|
|
3902
|
+
},
|
|
3903
|
+
WarningBadge: {
|
|
3904
|
+
"&::part(base)": {
|
|
3905
|
+
textAlign: "center",
|
|
3906
|
+
whiteSpace: "pre-line",
|
|
3907
|
+
background: "var(--sqm-warning-color-icon)",
|
|
3908
|
+
},
|
|
3909
|
+
},
|
|
3910
|
+
ErrorBadge: {
|
|
3911
|
+
"&::part(base)": {
|
|
3912
|
+
textAlign: "center",
|
|
3913
|
+
whiteSpace: "pre-line",
|
|
3914
|
+
background: "var(--sqm-danger-color-icon)",
|
|
3915
|
+
},
|
|
3916
|
+
},
|
|
3917
|
+
SubduedText: {
|
|
3918
|
+
color: "var(--sqm-text-subdued)",
|
|
3919
|
+
},
|
|
3900
3920
|
};
|
|
3901
3921
|
const sheet$4 = JSS.createStyleSheet(style$5);
|
|
3902
3922
|
const styleString$4 = sheet$4.toString();
|
|
3923
|
+
const vanillaStyle$3 = `
|
|
3924
|
+
:host{
|
|
3925
|
+
display: block;
|
|
3926
|
+
}
|
|
3927
|
+
|
|
3928
|
+
sl-button[type="secondary"]::part(base) {
|
|
3929
|
+
font-family: var(--sqm-primary-font);
|
|
3930
|
+
background-color: var(--sqm-secondary-button-background);
|
|
3931
|
+
color: var(--sqm-secondary-button-color);
|
|
3932
|
+
border-color: var(--sqm-secondary-button-color-border);
|
|
3933
|
+
border-radius: var(--sqm-secondary-button-radius);
|
|
3934
|
+
}
|
|
3935
|
+
|
|
3936
|
+
sl-button[type="secondary"]::part(base):hover {
|
|
3937
|
+
background-color: var(--sqm-secondary-button-background-hover);
|
|
3938
|
+
color: var(--sqm-secondary-button-color-hover);
|
|
3939
|
+
border-color: var(--sqm-secondary-button-border-color-hover);
|
|
3940
|
+
}
|
|
3941
|
+
|
|
3942
|
+
`;
|
|
3903
3943
|
const TaxAndCashDashboardView = (props) => {
|
|
3904
3944
|
var _a;
|
|
3905
3945
|
const { states, text, callbacks, slots } = props;
|
|
@@ -3916,7 +3956,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3916
3956
|
termsAndConditions: (index.h("a", { target: "_blank", href: `https://terms.advocate.impact.com/PayoutTermsAndConditions.html` }, text.termsAndConditions)),
|
|
3917
3957
|
}),
|
|
3918
3958
|
button: (index.h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", onClick: callbacks.onNewFormClick }, text.w9RequiredButtonText)),
|
|
3919
|
-
alertType: "
|
|
3959
|
+
alertType: "warning",
|
|
3920
3960
|
icon: "info-circle",
|
|
3921
3961
|
class: sheet$4.classes.WarningHoldAlertContainer,
|
|
3922
3962
|
};
|
|
@@ -4023,16 +4063,16 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4023
4063
|
}
|
|
4024
4064
|
const statusMap = {
|
|
4025
4065
|
NOT_VERIFIED: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
4026
|
-
index.h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
|
|
4027
|
-
index.h("p",
|
|
4066
|
+
index.h("sl-badge", { class: sheet$4.classes.WarningBadge, type: "warning", pill: true }, text.statusTextNotVerified),
|
|
4067
|
+
index.h("p", { class: sheet$4.classes.SubduedText }, global.intl.formatMessage({
|
|
4028
4068
|
id: `badgeTextAwaitingReview`,
|
|
4029
4069
|
defaultMessage: text.badgeTextAwaitingReview,
|
|
4030
4070
|
}, {
|
|
4031
4071
|
dateSubmitted: states.dateSubmitted,
|
|
4032
4072
|
})))),
|
|
4033
4073
|
ACTIVE: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
4034
|
-
index.h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
|
|
4035
|
-
index.h("p",
|
|
4074
|
+
index.h("sl-badge", { class: sheet$4.classes.SuccessBadge, type: "success", pill: true }, text.statusTextActive),
|
|
4075
|
+
index.h("p", { class: sheet$4.classes.SubduedText }, global.intl.formatMessage({
|
|
4036
4076
|
id: `badgeTextSubmittedOn`,
|
|
4037
4077
|
defaultMessage: states.documentType === "W9"
|
|
4038
4078
|
? text.badgeTextSubmittedOn
|
|
@@ -4041,8 +4081,8 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4041
4081
|
dateSubmitted: states.dateSubmitted,
|
|
4042
4082
|
})))),
|
|
4043
4083
|
INACTIVE: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
4044
|
-
index.h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
|
|
4045
|
-
index.h("p",
|
|
4084
|
+
index.h("sl-badge", { class: sheet$4.classes.ErrorBadge, type: "danger", pill: true }, text.statusTextNotActive),
|
|
4085
|
+
index.h("p", { class: sheet$4.classes.SubduedText }, text.invalidForm))),
|
|
4046
4086
|
undefined: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
4047
4087
|
index.h("sl-badge", { type: "danger", pill: true }, text.statusTextRequired),
|
|
4048
4088
|
index.h("p", null, global.intl.formatMessage({
|
|
@@ -4104,9 +4144,11 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4104
4144
|
const alertInfo = getAlert(states.payoutStatus);
|
|
4105
4145
|
return (index.h("div", null,
|
|
4106
4146
|
index.h("div", null,
|
|
4107
|
-
index.h("style", { type: "text/css" },
|
|
4147
|
+
index.h("style", { type: "text/css" },
|
|
4148
|
+
styleString$4,
|
|
4149
|
+
vanillaStyle$3),
|
|
4108
4150
|
states.loadingError && (index.h("div", null,
|
|
4109
|
-
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true },
|
|
4151
|
+
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.ErrorAlertContainer },
|
|
4110
4152
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
4111
4153
|
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
4112
4154
|
index.h("br", null),
|
|
@@ -4126,8 +4168,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4126
4168
|
}, {
|
|
4127
4169
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
4128
4170
|
}))),
|
|
4129
|
-
alertInfo && (index.h("
|
|
4130
|
-
index.h("sl-icon", { slot: "icon", name: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.icon }),
|
|
4171
|
+
alertInfo && (index.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 },
|
|
4131
4172
|
index.h("strong", null, alertInfo.header),
|
|
4132
4173
|
index.h("p", { style: { margin: "0" } }, alertInfo.description),
|
|
4133
4174
|
alertInfo.buttonText && (index.h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", loading: states.veriffLoading, onClick: () => callbacks.onVerifyClick() }, alertInfo.buttonText)),
|
|
@@ -4142,7 +4183,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4142
4183
|
index.h("div", { class: sheet$4.classes.BankingInformationContainer },
|
|
4143
4184
|
slots.payoutDetailsCardSlot,
|
|
4144
4185
|
!states.loading && (index.h("p", { class: sheet$4.classes.DescriptionText }, text.payoutFromImpact)),
|
|
4145
|
-
states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "
|
|
4186
|
+
states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, exportparts: "base: secondarybutton-base", type: "secondary", class: sheet$4.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
|
|
4146
4187
|
(!states.noFormNeeded || states.status === "NOT_VERIFIED") && (index.h("div", { class: sheet$4.classes.TaxDocumentsContainer },
|
|
4147
4188
|
index.h("div", null, states.loading ? (index.h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
|
|
4148
4189
|
index.h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
|
|
@@ -4693,7 +4734,6 @@ const TaxAndCashDashboard = class {
|
|
|
4693
4734
|
}
|
|
4694
4735
|
};
|
|
4695
4736
|
function useDemoTaxAndCashDashboard(props) {
|
|
4696
|
-
console.log("dashboard", { props });
|
|
4697
4737
|
// @ts-ignore
|
|
4698
4738
|
return cjs.cjs({
|
|
4699
4739
|
states: {
|
|
@@ -5786,7 +5826,7 @@ const style$6 = {
|
|
|
5786
5826
|
};
|
|
5787
5827
|
const sheet$5 = JSS.createStyleSheet(style$6);
|
|
5788
5828
|
const styleString$5 = sheet$5.toString();
|
|
5789
|
-
const vanillaStyle$
|
|
5829
|
+
const vanillaStyle$4 = `
|
|
5790
5830
|
:host{
|
|
5791
5831
|
display: block;
|
|
5792
5832
|
}
|
|
@@ -5994,7 +6034,7 @@ const UserInfoFormView = (props) => {
|
|
|
5994
6034
|
return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
5995
6035
|
index.h("style", { type: "text/css" },
|
|
5996
6036
|
styleString$5,
|
|
5997
|
-
vanillaStyle$
|
|
6037
|
+
vanillaStyle$4),
|
|
5998
6038
|
states.loadingError && (index.h("div", null,
|
|
5999
6039
|
index.h("sqm-form-message", { type: "error" },
|
|
6000
6040
|
index.h("p", { part: "alert-title" }, text.error.loadingErrorAlertHeader),
|
|
@@ -49,6 +49,7 @@ function BaseRegistrationFormView(props) {
|
|
|
49
49
|
index.h("sl-form", { class: sheet.classes.Column, "onSl-submit": callbacks.handleEmailSubmit, novalidate: true },
|
|
50
50
|
states.error && (index.h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
51
51
|
index.h("div", { part: "erroralert-text" }, props.states.error))),
|
|
52
|
+
content.formData,
|
|
52
53
|
index.h("sl-input", { exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", required: true, validationError: ({ value }) => {
|
|
53
54
|
if (!value) {
|
|
54
55
|
return content.requiredFieldErrorMessage;
|
|
@@ -3186,18 +3186,10 @@ const PayoutStatusAlert = class {
|
|
|
3186
3186
|
this.errorDescription = "There was an error with determining your payout status.";
|
|
3187
3187
|
/**
|
|
3188
3188
|
* @undocumented
|
|
3189
|
-
* @componentState { "title": "
|
|
3190
|
-
* @componentState { "title": "
|
|
3191
|
-
* @componentState { "title": "
|
|
3192
|
-
* @componentState { "title": "
|
|
3193
|
-
* @componentState { "title": "Verification Internal", "props": { "demoData": { "states": { "status": "VERIFICATION:INTERNAL" } } }, "uiGroup": "Alert States" }
|
|
3194
|
-
* @componentState { "title": "Verification Review", "props": { "demoData": { "states": { "status": "VERIFICATION:REVIEW" } } }, "uiGroup": "Alert States" }
|
|
3195
|
-
* @componentState { "title": "Verification Failed", "props": { "demoData": { "states": { "status": "VERIFICATION:FAILED" } } }, "uiGroup": "Alert States" }
|
|
3196
|
-
* @componentState { "title": "Account Review", "props": { "demoData": { "states": { "status": "ACCOUNT_REVIEW" } } }, "uiGroup": "Alert States" }
|
|
3197
|
-
* @componentState { "title": "Hold", "props": { "demoData": { "states": { "status": "HOLD" } } }, "uiGroup": "Alert States" }
|
|
3198
|
-
* @componentState { "title": "Done - No Alert", "props": { "demoData": { "states": { "status": "DONE" } } }, "uiGroup": "Alert States" }
|
|
3199
|
-
* @componentState { "title": "Error State", "props": { "demoData": { "states": { "error": true } } }, "uiGroup": "Alert States" }
|
|
3200
|
-
* @componentState { "title": "Loading State", "props": { "demoData": { "states": { "loading": true } } }, "uiGroup": "Alert States" }
|
|
3189
|
+
* @componentState { "title": "Payout Info Required", "props": { "states": { "status": "INFORMATION_REQUIRED" } }, "dependencies": ["sqm-payout-status-alert"] }
|
|
3190
|
+
* @componentState { "title": "Verification Required", "props": { "states": { "status": "VERIFICATION:REQUIRED" } }, "dependencies": ["sqm-payout-status-alert"] }
|
|
3191
|
+
* @componentState { "title": "Identity Verification", "props": { "states": { "status": "VERIFICATION:REVIEW" } }, "dependencies": ["sqm-payout-status-alert"] }
|
|
3192
|
+
* @componentState { "title": "Account Hold", "props": { "states": { "status": "HOLD" } }, "dependencies": ["sqm-payout-status-alert"] }
|
|
3201
3193
|
*/
|
|
3202
3194
|
this.stateController = "{}";
|
|
3203
3195
|
domContextHooks_module.h$1(this);
|
|
@@ -3231,7 +3223,7 @@ function useDemoPayoutStatusAlert(props) {
|
|
|
3231
3223
|
onTermsClick: () => { },
|
|
3232
3224
|
onClick: () => console.log("show"),
|
|
3233
3225
|
},
|
|
3234
|
-
}, props.demoData ||
|
|
3226
|
+
}, formatted || props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
3235
3227
|
}
|
|
3236
3228
|
|
|
3237
3229
|
const GET_USER$1 = index_module.dist.gql `
|
|
@@ -5,27 +5,28 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-a43a63b4.js');
|
|
6
6
|
const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js');
|
|
7
7
|
|
|
8
|
-
const sqmFormMessageCss = "sl-alert::part(base){border:var(--sqm-border-thickness) solid;border-radius:var(--sqm-border-radius-normal);font-family:var(--sqm-primary-font)}.Error::part(base){color:var(--sqm-danger-color-text);background-color:var(--sqm-danger-color-background);border-color:var(--sqm-danger-color-border);font-size:14px}.Error #icon{color:var(--sqm-danger-color-icon);font-size:24px}.Warning::part(base){color:var(--sqm-warning-color-text);background-color:var(--sqm-warning-color-background);border-color:var(--sqm-warning-color-border)}.Warning #icon{color:var(--sqm-warning-color-icon);font-size:24px}.Success::part(base){color:var(--sqm-success-color-text);background-color:var(--sqm-success-color-background);border-color:var(--sqm-success-color-border)}.Success #icon{color:var(--sqm-success-color-icon);font-size:24px}.Info::part(base){color:var(--sqm-informative-color-text);background-color:var(--sqm-informative-color-background);border-color:var(--sqm-informative-color-border)}.Info #icon{color:var(--sqm-informative-color-icon);font-size:24px}::slotted(*){margin:0}::slotted(*[part=alert-title]){font-size:16px;font-weight:bold}::slotted(*[part=alert-description]),::slotted(*[part=erroralert-text]){font-size:14px}";
|
|
8
|
+
const sqmFormMessageCss = "sl-alert::part(base){border:var(--sqm-border-thickness) solid;border-radius:var(--sqm-border-radius-normal);font-family:var(--sqm-primary-font)}.Error::part(base){color:var(--sqm-danger-color-text);background-color:var(--sqm-danger-color-background);border-color:var(--sqm-danger-color-border);font-size:14px}.Error #icon{color:var(--sqm-danger-color-icon);font-size:24px}.Warning::part(base){color:var(--sqm-warning-color-text);background-color:var(--sqm-warning-color-background);border-color:var(--sqm-warning-color-border)}.Warning #icon{color:var(--sqm-warning-color-icon);font-size:24px}.Success::part(base){color:var(--sqm-success-color-text);background-color:var(--sqm-success-color-background);border-color:var(--sqm-success-color-border)}.Success #icon{color:var(--sqm-success-color-icon);font-size:24px}.Info::part(base){color:var(--sqm-informative-color-text);background-color:var(--sqm-informative-color-background);border-color:var(--sqm-informative-color-border)}.Info #icon{color:var(--sqm-informative-color-icon);font-size:24px}.Transparent::part(base){background-color:transparent;border:none;color:var(--sqm-text);margin-left:-20px}::slotted(*){margin:0}::slotted(*[part=alert-title]){font-size:16px;font-weight:bold}::slotted(*[part=alert-description]),::slotted(*[part=erroralert-text]){font-size:14px}";
|
|
9
9
|
|
|
10
10
|
const FormMessage = class {
|
|
11
11
|
constructor(hostRef) {
|
|
12
12
|
index.registerInstance(this, hostRef);
|
|
13
13
|
this.ignored = true;
|
|
14
|
+
this.transparent = false;
|
|
14
15
|
domContextHooks_module.h$1(this);
|
|
15
16
|
}
|
|
16
17
|
disconnectedCallback() { }
|
|
17
18
|
render() {
|
|
18
19
|
if (this.type === "error") {
|
|
19
|
-
return (index.h("sl-alert", { exportparts: "base: erroralert-base, icon:erroralert-icon", class:
|
|
20
|
+
return (index.h("sl-alert", { exportparts: "base: erroralert-base, icon:erroralert-icon", class: `Error ${this.transparent ? "Transparent" : ""}`, type: "danger", open: true }, index.h("sl-icon", { id: "icon", slot: "icon", name: `${this.icon ? this.icon : "exclamation-octagon"}` }), index.h("slot", null)));
|
|
20
21
|
}
|
|
21
22
|
else if (this.type === "info") {
|
|
22
|
-
return (index.h("sl-alert", { id: "icon", exportparts: "base: infoalert-base, icon:infoalert-icon", class:
|
|
23
|
+
return (index.h("sl-alert", { id: "icon", exportparts: "base: infoalert-base, icon:infoalert-icon", class: `Info ${this.transparent ? "Transparent" : ""}`, type: "info", open: true }, index.h("sl-icon", { id: "icon", slot: "icon", name: `${this.icon ? this.icon : "info-circle"}` }), index.h("slot", null)));
|
|
23
24
|
}
|
|
24
25
|
else if (this.type === "warning") {
|
|
25
|
-
return (index.h("sl-alert", { exportparts: "base: warningalert-base, icon:warningalert-icon", class:
|
|
26
|
+
return (index.h("sl-alert", { exportparts: "base: warningalert-base, icon:warningalert-icon", class: `Warning ${this.transparent ? "Transparent" : ""}`, type: "warning", open: true }, index.h("sl-icon", { id: "icon", slot: "icon", name: `${this.icon ? this.icon : "exclamation-triangle"}` }), index.h("slot", null)));
|
|
26
27
|
}
|
|
27
28
|
else {
|
|
28
|
-
return (index.h("sl-alert", { exportparts: "base: successalert-base, icon:successalert-icon", class:
|
|
29
|
+
return (index.h("sl-alert", { exportparts: "base: successalert-base, icon:successalert-icon", class: `Success ${this.transparent ? "Transparent" : ""}`, type: "success", open: true }, index.h("sl-icon", { id: "icon", slot: "icon", name: `${this.icon ? this.icon : "check2-circle"}` }), index.h("slot", null)));
|
|
29
30
|
}
|
|
30
31
|
}
|
|
31
32
|
};
|
|
@@ -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-
|
|
14
|
+
const sqmBaseRegistrationFormView = require('./sqm-base-registration-form-view-7b95ae7a.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');
|
|
@@ -85,9 +85,12 @@ function usePortalGoogleRegistrationForm(props) {
|
|
|
85
85
|
let formData = {};
|
|
86
86
|
let errorMessage = null;
|
|
87
87
|
formControls.forEach((control) => {
|
|
88
|
-
if (!control.name
|
|
88
|
+
if (!control.name)
|
|
89
89
|
return;
|
|
90
90
|
jsonpointer.jsonpointer.set(formData, control.name, control.value);
|
|
91
|
+
// only validate email field
|
|
92
|
+
if (control.name !== "/email")
|
|
93
|
+
return;
|
|
91
94
|
if (control.required && !control.value)
|
|
92
95
|
errorMessage = props.requiredFieldErrorMessage;
|
|
93
96
|
if (typeof control.validationError === "function") {
|
|
@@ -325,9 +328,7 @@ const PortalGoogleRegistrationForm = class {
|
|
|
325
328
|
...states,
|
|
326
329
|
emailDisabled: true,
|
|
327
330
|
hidePasswords: showRegistrationForm.mode === "google",
|
|
328
|
-
}, callbacks: callbacks, content:
|
|
329
|
-
...content,
|
|
330
|
-
}, refs: refs }));
|
|
331
|
+
}, callbacks: callbacks, content: content, refs: refs }));
|
|
331
332
|
}
|
|
332
333
|
};
|
|
333
334
|
function useRegisterDemo(props) {
|
|
@@ -363,7 +364,7 @@ function useGoogleDemo(props) {
|
|
|
363
364
|
mode: "base",
|
|
364
365
|
});
|
|
365
366
|
return cjs.cjs({
|
|
366
|
-
emailValidationError:
|
|
367
|
+
emailValidationError: false,
|
|
367
368
|
handleEmailSubmit: () => setShowRegistrationForm({ mode: "manual" }),
|
|
368
369
|
showRegistrationForm,
|
|
369
370
|
handleGoogleInit: () => setShowRegistrationForm({ mode: "google" }),
|
|
@@ -26,7 +26,7 @@ const sqmNavigationSidebarView = require('./sqm-navigation-sidebar-view-de90ef03
|
|
|
26
26
|
const sqmNavigationSidebarItemView = require('./sqm-navigation-sidebar-item-view-4e88f774.js');
|
|
27
27
|
const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-5518eb0d.js');
|
|
28
28
|
const sqmPortalLoginView = require('./sqm-portal-login-view-bb50304c.js');
|
|
29
|
-
const sqmBaseRegistrationFormView = require('./sqm-base-registration-form-view-
|
|
29
|
+
const sqmBaseRegistrationFormView = require('./sqm-base-registration-form-view-7b95ae7a.js');
|
|
30
30
|
const sqmPortalRegistrationFormView = require('./sqm-portal-registration-form-view-5a96c2f5.js');
|
|
31
31
|
const sqmPortalProfileView = require('./sqm-portal-profile-view-615e6975.js');
|
|
32
32
|
require('./utilities-9a0c5e91.js');
|
|
@@ -6432,6 +6432,20 @@ const InfoAlert = () => {
|
|
|
6432
6432
|
index.h("p", { part: "alert-title" }, "This is the title"),
|
|
6433
6433
|
index.h("p", { part: "alert-description" }, "This is the description")));
|
|
6434
6434
|
};
|
|
6435
|
+
const SuccessAlertTransparent = () => {
|
|
6436
|
+
return (index.h("sqm-form-message", { type: "success", transparent: true },
|
|
6437
|
+
index.h("p", { part: "alert-title" }, "This is the title"),
|
|
6438
|
+
index.h("p", { part: "alert-description" }, "This is the description")));
|
|
6439
|
+
};
|
|
6440
|
+
const ErrorAlertTransparent = () => (index.h("sqm-form-message", { type: "error", transparent: true },
|
|
6441
|
+
index.h("p", { part: "alert-title" }, "This is the title"),
|
|
6442
|
+
index.h("p", { part: "alert-description" }, "This is the description")));
|
|
6443
|
+
const WarningAlertTransparent = () => (index.h("sqm-form-message", { type: "warning", transparent: true },
|
|
6444
|
+
index.h("p", { part: "alert-title" }, "This is the title"),
|
|
6445
|
+
index.h("p", { part: "alert-description" }, "This is the description")));
|
|
6446
|
+
const InfoAlertTransparent = () => (index.h("sqm-form-message", { type: "info", transparent: true },
|
|
6447
|
+
index.h("p", { part: "alert-title" }, "This is the title"),
|
|
6448
|
+
index.h("p", { part: "alert-description" }, "This is the description")));
|
|
6435
6449
|
|
|
6436
6450
|
const FormMessage = /*#__PURE__*/Object.freeze({
|
|
6437
6451
|
__proto__: null,
|
|
@@ -6439,7 +6453,11 @@ const FormMessage = /*#__PURE__*/Object.freeze({
|
|
|
6439
6453
|
SuccessAlert: SuccessAlert,
|
|
6440
6454
|
ErrorAlert: ErrorAlert,
|
|
6441
6455
|
WarningAlert: WarningAlert,
|
|
6442
|
-
InfoAlert: InfoAlert
|
|
6456
|
+
InfoAlert: InfoAlert,
|
|
6457
|
+
SuccessAlertTransparent: SuccessAlertTransparent,
|
|
6458
|
+
ErrorAlertTransparent: ErrorAlertTransparent,
|
|
6459
|
+
WarningAlertTransparent: WarningAlertTransparent,
|
|
6460
|
+
InfoAlertTransparent: InfoAlertTransparent
|
|
6443
6461
|
});
|
|
6444
6462
|
|
|
6445
6463
|
const scenario$6 = "@author:kutay\n@owner:kutay\nFeature: Hero Image\n\n\tThe Hero Image component displays media images with a header, description and button using an overlay or a double column layout to offer an attrative widget page.\n\n\tBackground: A user on the portal is viewing the widget\n\t\tGiven a user viewing the Hero Image component\n\n\t@motivating\n\t@ui\n\tScenario: Overlay image displays header, description, and button with brand color\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"overlay\" |\n\t\tThen they see their image\n\t\tAnd the image has no padding\n\t\tAnd it has a brand colour overlay\n\t\tAnd \"Klip Rewards\" is displayed over top of the image in xxx-large font\n\t\tAnd below \"Refer friends or complete tasks while using Klip to earn rewards\" is displayed over top of the image in x-large font\n\t\tAnd below they see a brand coloured button with text \"Start earning\"\n\t\tAnd the text section has xxx-large padding\n\t\tWhen the component is scaled down to 599px\n\t\tThen the image is scaled to fit content\n\n\t@motivating\n\t@ui\n\tScenario Outline: Overlay image crop can be aligned left, center or right\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"overlay\" |\n\t\t\t| image-pos | <value> |\n\t\tThen the image with overlay is displayed\n\t\tWhen the component is scaled down to 599px\n\t\tThen the image is <alignment> to fit content\n\t\tExamples:\n\t\t\t| value | alignment |\n\t\t\t| left | left aligned |\n\t\t\t| center | centered |\n\t\t\t| right | right aligned |\n\t\t\t| N/A | centered |\n\n\t@motivating\n\t@ui\n\tScenario Outline: Overlay padding is configurable\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"overlay\" |\n\t\t\t| padding-text | <value> |\n\t\tThen the image with overlay is displayed\n\t\tAnd <padding> is applied around header, description and button\n\t\tExamples:\n\t\t\t| value | padding |\n\t\t\t| none | no padding |\n\t\t\t| xxx-small | xxx-small |\n\t\t\t| xx-small | xx-small |\n\t\t\t| x-small | x-small |\n\t\t\t| small | small |\n\t\t\t| medium | medium |\n\t\t\t| large | large |\n\t\t\t| x-large | x-large |\n\t\t\t| xx-large | xx-large |\n\t\t\t| xxx-large | xxx-large |\n\t\t\t| xxxx-large | xxxx-large |\n\t\t\t| N/A | no padding |\n\n\t@motivating\n\t@ui\n\tScenario Outline: Overlay color and background is configurable\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"overlay\" |\n\t\t\t| text-color | <textColor> |\n\t\t\t| overlay-color | <overlayColor> |\n\t\t\t| overlay-opacity | <overlayOpacity> |\n\t\tThen the image with overlay is displayed\n\t\tAnd the overlay is <overlayColor>\n\t\tAnd the overlay has <overlayOpacity>\n\t\tAnd the text is <textColor>\n\t\tExamples:\n\t\t\t| textColor | overlayColor | overlayOpacity |\n\t\t\t| #fffc4b | #ff7f7f | 0.9 |\n\t\t\t| #1d0314 | #4baa1a | 0 |\n\t\t\t| #211a27 | #aa481a | 1 |\n\n\t@motivating\n\t@ui\n\tScenario: Two-column layout displays an image on one side and on the other side a header, description, and button\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"columns\" |\n\t\tThen the image is displayed on the left\n\t\tAnd the following elements are displayed on the right\n\t\t\t| elements |\n\t\t\t| header |\n\t\t\t| description |\n\t\t\t| button |\n\t\tWhen the component is scaled down to 599px\n\t\tThen the two-column layout switches to a row layout\n\t\tAnd the image is displayed on top\n\t\tAnd the content is displayed below\n\n\t@motivating\n\t@ui\n\tScenario Outline: Image position is configurable for desktop and mobile\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"columns\" |\n\t\t\t| image-pos | <imagePos> |\n\t\t\t| image-mobile-pos | <imageMobilePos> |\n\t\tThen the image is displayed on the <imagePos>\n\t\tWhen the component is scaled down to 599px\n\t\tThen two-column layout switches to a row layout\n\t\tAnd image is displayed on the <imageMobilePos>\n\t\tExamples:\n\t\t\t| imagePos | imageMobilePos |\n\t\t\t| left | top |\n\t\t\t| right | bottom |\n\n\t@motivating\n\t@ui\n\tScenario Outline: Padding is configurable for the image and text of two column layouts\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"columns\" |\n\t\t\t| padding-text | <paddingText> |\n\t\t\t| padding-image | <paddingImage> |\n\t\tThen the two column layout is displayed\n\t\tAnd the image has padding <paddingImage>\n\t\tAnd the text has padding <paddingText>\n\t\tExamples:\n\t\t\t| paddingText | paddingImage |\n\t\t\t| xxx-small | xxx-small |\n\t\t\t| xx-small | xx-small |\n\t\t\t| x-small | x-small |\n\t\t\t| small | small |\n\t\t\t| medium | medium |\n\t\t\t| large | large |\n\t\t\t| x-large | x-large |\n\t\t\t| xx-large | xx-large |\n\t\t\t| xxx-large | xxx-large |\n\t\t\t| xxxx-large | xxxx-large |\n\t\t\t| none | none |\n\n\t@motivating\n\t@ui\n\tScenario Outline: Two-column layout image division percentage is configurable\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000248/squatch-assets/MVgOJn7.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"columns\" |\n\t\t\t| image-percentage | <percent> |\n\t\tThen the two column layout is displayed\n\t\tAnd the image takes up <percent> of the two-column layout\n\t\tAnd the text elements take up the remainder of the space\n\t\tExamples:\n\t\t\t| percent |\n\t\t\t| 25% |\n\t\t\t| 42% |\n\t\t\t| 66% |\n\n\t@motivating\n\t@ui\n\tScenario: Two-column layout text and background color is configurable\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"columns\" |\n\t\t\t| text-color | <textColor> |\n\t\t\t| background-color | <backgroundColor> |\n\t\tThen the two column layout is displayed\n\t\tAnd the text has color <textColor>\n\t\tAnd the background has color <backgroundColor>\n\t\tExamples:\n\t\t\t| textColor | backgroundColor |\n\t\t\t| #fffc4b | #ff7f7f |\n\t\t\t| #1d0314 | #4baa1a |\n\t\t\t| #211a27 | #aa481a |";
|
|
@@ -1283,7 +1283,7 @@ const TaxAndCashMonolith = class {
|
|
|
1283
1283
|
case "/4":
|
|
1284
1284
|
return (index.h("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
|
|
1285
1285
|
case "/dashboard":
|
|
1286
|
-
return (index.h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
|
|
1286
|
+
return (index.h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"), { stateController: props["sqm-tax-and-cash-dashboard_stateController"] || "{}" })));
|
|
1287
1287
|
case "/error":
|
|
1288
1288
|
return (index.h(ErrorView.ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: global.intl.formatMessage({
|
|
1289
1289
|
id: "loadingErrorAlertDescription",
|
|
@@ -46,6 +46,7 @@ export function BaseRegistrationFormView(props) {
|
|
|
46
46
|
h("sl-form", { class: sheet.classes.Column, "onSl-submit": callbacks.handleEmailSubmit, novalidate: true },
|
|
47
47
|
states.error && (h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
48
48
|
h("div", { part: "erroralert-text" }, props.states.error))),
|
|
49
|
+
content.formData,
|
|
49
50
|
h("sl-input", { exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", required: true, validationError: ({ value }) => {
|
|
50
51
|
if (!value) {
|
|
51
52
|
return content.requiredFieldErrorMessage;
|
|
@@ -22,3 +22,17 @@ export const InfoAlert = () => {
|
|
|
22
22
|
h("p", { part: "alert-title" }, "This is the title"),
|
|
23
23
|
h("p", { part: "alert-description" }, "This is the description")));
|
|
24
24
|
};
|
|
25
|
+
export const SuccessAlertTransparent = () => {
|
|
26
|
+
return (h("sqm-form-message", { type: "success", transparent: true },
|
|
27
|
+
h("p", { part: "alert-title" }, "This is the title"),
|
|
28
|
+
h("p", { part: "alert-description" }, "This is the description")));
|
|
29
|
+
};
|
|
30
|
+
export const ErrorAlertTransparent = () => (h("sqm-form-message", { type: "error", transparent: true },
|
|
31
|
+
h("p", { part: "alert-title" }, "This is the title"),
|
|
32
|
+
h("p", { part: "alert-description" }, "This is the description")));
|
|
33
|
+
export const WarningAlertTransparent = () => (h("sqm-form-message", { type: "warning", transparent: true },
|
|
34
|
+
h("p", { part: "alert-title" }, "This is the title"),
|
|
35
|
+
h("p", { part: "alert-description" }, "This is the description")));
|
|
36
|
+
export const InfoAlertTransparent = () => (h("sqm-form-message", { type: "info", transparent: true },
|
|
37
|
+
h("p", { part: "alert-title" }, "This is the title"),
|
|
38
|
+
h("p", { part: "alert-description" }, "This is the description")));
|
|
@@ -7,27 +7,28 @@ import { Component, h, Prop, State } from "@stencil/core";
|
|
|
7
7
|
export class FormMessage {
|
|
8
8
|
constructor() {
|
|
9
9
|
this.ignored = true;
|
|
10
|
+
this.transparent = false;
|
|
10
11
|
withHooks(this);
|
|
11
12
|
}
|
|
12
13
|
disconnectedCallback() { }
|
|
13
14
|
render() {
|
|
14
15
|
if (this.type === "error") {
|
|
15
|
-
return (h("sl-alert", { exportparts: "base: erroralert-base, icon:erroralert-icon", class:
|
|
16
|
+
return (h("sl-alert", { exportparts: "base: erroralert-base, icon:erroralert-icon", class: `Error ${this.transparent ? "Transparent" : ""}`, type: "danger", open: true },
|
|
16
17
|
h("sl-icon", { id: "icon", slot: "icon", name: `${this.icon ? this.icon : "exclamation-octagon"}` }),
|
|
17
18
|
h("slot", null)));
|
|
18
19
|
}
|
|
19
20
|
else if (this.type === "info") {
|
|
20
|
-
return (h("sl-alert", { id: "icon", exportparts: "base: infoalert-base, icon:infoalert-icon", class:
|
|
21
|
+
return (h("sl-alert", { id: "icon", exportparts: "base: infoalert-base, icon:infoalert-icon", class: `Info ${this.transparent ? "Transparent" : ""}`, type: "info", open: true },
|
|
21
22
|
h("sl-icon", { id: "icon", slot: "icon", name: `${this.icon ? this.icon : "info-circle"}` }),
|
|
22
23
|
h("slot", null)));
|
|
23
24
|
}
|
|
24
25
|
else if (this.type === "warning") {
|
|
25
|
-
return (h("sl-alert", { exportparts: "base: warningalert-base, icon:warningalert-icon", class:
|
|
26
|
+
return (h("sl-alert", { exportparts: "base: warningalert-base, icon:warningalert-icon", class: `Warning ${this.transparent ? "Transparent" : ""}`, type: "warning", open: true },
|
|
26
27
|
h("sl-icon", { id: "icon", slot: "icon", name: `${this.icon ? this.icon : "exclamation-triangle"}` }),
|
|
27
28
|
h("slot", null)));
|
|
28
29
|
}
|
|
29
30
|
else {
|
|
30
|
-
return (h("sl-alert", { exportparts: "base: successalert-base, icon:successalert-icon", class:
|
|
31
|
+
return (h("sl-alert", { exportparts: "base: successalert-base, icon:successalert-icon", class: `Success ${this.transparent ? "Transparent" : ""}`, type: "success", open: true },
|
|
31
32
|
h("sl-icon", { id: "icon", slot: "icon", name: `${this.icon ? this.icon : "check2-circle"}` }),
|
|
32
33
|
h("slot", null)));
|
|
33
34
|
}
|
|
@@ -80,6 +81,24 @@ export class FormMessage {
|
|
|
80
81
|
},
|
|
81
82
|
"attribute": "icon",
|
|
82
83
|
"reflect": false
|
|
84
|
+
},
|
|
85
|
+
"transparent": {
|
|
86
|
+
"type": "boolean",
|
|
87
|
+
"mutable": false,
|
|
88
|
+
"complexType": {
|
|
89
|
+
"original": "boolean",
|
|
90
|
+
"resolved": "boolean",
|
|
91
|
+
"references": {}
|
|
92
|
+
},
|
|
93
|
+
"required": false,
|
|
94
|
+
"optional": true,
|
|
95
|
+
"docs": {
|
|
96
|
+
"tags": [],
|
|
97
|
+
"text": ""
|
|
98
|
+
},
|
|
99
|
+
"attribute": "transparent",
|
|
100
|
+
"reflect": false,
|
|
101
|
+
"defaultValue": "false"
|
|
83
102
|
}
|
|
84
103
|
}; }
|
|
85
104
|
static get states() { return {
|
|
@@ -122,13 +122,13 @@ export class Hero {
|
|
|
122
122
|
"optional": true,
|
|
123
123
|
"docs": {
|
|
124
124
|
"tags": [{
|
|
125
|
-
"text": "
|
|
125
|
+
"text": "Splash image",
|
|
126
126
|
"name": "uiName"
|
|
127
127
|
}, {
|
|
128
128
|
"text": "Background",
|
|
129
129
|
"name": "uiWidget"
|
|
130
130
|
}],
|
|
131
|
-
"text": "
|
|
131
|
+
"text": "Splash image or background color (for use in the left column)"
|
|
132
132
|
},
|
|
133
133
|
"attribute": "background",
|
|
134
134
|
"reflect": false
|
|
@@ -172,13 +172,13 @@ export class Hero {
|
|
|
172
172
|
"optional": true,
|
|
173
173
|
"docs": {
|
|
174
174
|
"tags": [{
|
|
175
|
-
"text": "
|
|
175
|
+
"text": "Content background",
|
|
176
176
|
"name": "uiName"
|
|
177
177
|
}, {
|
|
178
178
|
"text": "Background",
|
|
179
179
|
"name": "uiWidget"
|
|
180
180
|
}],
|
|
181
|
-
"text": "
|
|
181
|
+
"text": "Content background color or image (for use in the right column)"
|
|
182
182
|
},
|
|
183
183
|
"attribute": "secondary-background",
|
|
184
184
|
"reflect": false
|
|
@@ -6,8 +6,8 @@ import { HeroImageView } from "./sqm-hero-image-view";
|
|
|
6
6
|
* @uiName Hero Image
|
|
7
7
|
* @validParents ["sqm-portal-container","sqm-brand", "div"]
|
|
8
8
|
* @exampleGroup Common Components
|
|
9
|
-
* @example Two Column Hero Image - <sqm-hero-image image-url="https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png" header="MyCompany Rewards" description="Refer a friend and earn up to $1200 in rewards" layout="columns" image-pos="right"
|
|
10
|
-
* @example Overlay Hero Image - <sqm-hero-image image-url="https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png" header="MyCompany Rewards" description="Refer a friend and earn up to $1200 in rewards" layout="overlay" image-pos="center"
|
|
9
|
+
* @example Two Column Hero Image - <sqm-hero-image image-url="https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png" header="MyCompany Rewards" description="Refer a friend and earn up to $1200 in rewards" layout="columns" image-pos="right"></sqm-hero-image>
|
|
10
|
+
* @example Overlay Hero Image - <sqm-hero-image image-url="https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png" header="MyCompany Rewards" description="Refer a friend and earn up to $1200 in rewards" layout="overlay" image-pos="center" button-link="https://www.example.com" button-new-tab button-text="Earn!" image-percentage="45" overlay-opacity=".5" padding-image="small" padding-text="xxxx-large"></sqm-hero-image>
|
|
11
11
|
*/
|
|
12
12
|
export class HeroImage {
|
|
13
13
|
constructor() {
|
|
@@ -4,7 +4,7 @@ import { getProps } from "../../utils/utils";
|
|
|
4
4
|
import { PortalFooterView } from "./sqm-portal-footer-view";
|
|
5
5
|
/**
|
|
6
6
|
* @uiName Footer
|
|
7
|
-
* @validParents ["div","sqm-brand","sqm-portal-container", "sqm-divided-layout", "sqm-referral-card", "sqm-instant-access-registration", "sqm-portal-frame"]
|
|
7
|
+
* @validParents ["div","sqm-brand","sqm-portal-container", "sqm-divided-layout", "sqm-referral-card", "sqm-instant-access-registration", "sqm-portal-frame", "sqm-referred-registration"]
|
|
8
8
|
*/
|
|
9
9
|
export class PortalFooter {
|
|
10
10
|
constructor() {
|