@saasquatch/mint-components 1.13.2 → 1.13.3
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/{ShadowViewAddon-cf0ee0a0.js → ShadowViewAddon-14a02da4.js} +133 -98
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/{sqm-big-stat_39.cjs.entry.js → sqm-big-stat_41.cjs.entry.js} +220 -2
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-registration-form-view-ebf355a6.js → sqm-portal-registration-form-view-637a4bf4.js} +1 -0
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +2 -1
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +469 -381
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/sqm-checkbox-field/CheckboxField.stories.js +1 -1
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +6 -15
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +5 -5
- package/dist/collection/components/sqm-marketing-emails-checkbox/MarketingEmailsCheckbox.stories.js +11 -0
- package/dist/collection/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.js +129 -0
- package/dist/collection/components/sqm-portal-change-marketing/ChangeMarketing.stories.js +54 -0
- package/dist/collection/components/sqm-portal-change-marketing/sqm-portal-change-marketing-view.js +47 -0
- package/dist/collection/components/sqm-portal-change-marketing/sqm-portal-change-marketing.js +217 -0
- package/dist/collection/components/sqm-portal-change-marketing/usePortalChangeMarketing.js +115 -0
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js +3 -3
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +3 -3
- package/dist/collection/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.js +2 -2
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +3 -3
- package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js +4 -0
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +1 -0
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +3 -2
- package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password.js +3 -3
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +3 -3
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +6 -0
- package/dist/esm/{ShadowViewAddon-fd07e6e1.js → ShadowViewAddon-23a6afab.js} +133 -99
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/{sqm-big-stat_39.entry.js → sqm-big-stat_41.entry.js} +219 -3
- package/dist/esm/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm/sqm-portal-google-registration-form.entry.js +1 -1
- package/dist/esm/{sqm-portal-registration-form-view-32c4b488.js → sqm-portal-registration-form-view-3c1f6000.js} +1 -0
- package/dist/esm/sqm-portal-registration-form.entry.js +2 -1
- package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +469 -381
- package/dist/esm-es5/ShadowViewAddon-23a6afab.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-big-stat_41.entry.js +1 -0
- package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-registration-form-view-32c4b488.js → sqm-portal-registration-form-view-3c1f6000.js} +1 -1
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-01010af0.entry.js +258 -0
- package/dist/mint-components/{p-079405ff.entry.js → p-0d2d0b6d.entry.js} +1 -1
- package/dist/mint-components/p-33ed6f1c.system.entry.js +1 -0
- package/dist/mint-components/p-37996351.system.js +1 -1
- package/dist/mint-components/p-38b5f028.system.entry.js +1 -0
- package/dist/mint-components/p-7e7cbccf.system.js +1 -0
- package/dist/mint-components/{p-e6045498.entry.js → p-7f80a9d7.entry.js} +1 -1
- package/dist/mint-components/{p-793d2130.js → p-91ab3da1.js} +1 -1
- package/dist/mint-components/{p-51d3cde7.system.entry.js → p-9386ad84.system.entry.js} +1 -1
- package/dist/mint-components/{p-54adee71.system.entry.js → p-9bfd9bed.system.entry.js} +1 -1
- package/dist/mint-components/p-d3d74266.js +394 -0
- package/dist/mint-components/{p-bb0f585c.system.js → p-e5d0375e.system.js} +1 -1
- package/dist/mint-components/p-f2cc6a6f.entry.js +9 -0
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field-view.d.ts +1 -1
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +4 -4
- package/dist/types/components/sqm-marketing-emails-checkbox/MarketingEmailsCheckbox.stories.d.ts +8 -0
- package/dist/types/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.d.ts +27 -0
- package/dist/types/components/sqm-portal-change-marketing/ChangeMarketing.stories.d.ts +8 -0
- package/dist/types/components/sqm-portal-change-marketing/sqm-portal-change-marketing-view.d.ts +28 -0
- package/dist/types/components/sqm-portal-change-marketing/sqm-portal-change-marketing.d.ts +39 -0
- package/dist/types/components/sqm-portal-change-marketing/usePortalChangeMarketing.d.ts +3 -0
- package/dist/types/components/sqm-portal-email-verification/sqm-portal-email-verification.d.ts +1 -1
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +1 -1
- package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +1 -1
- package/dist/types/components/sqm-portal-registration-form/PortalRegistrationForm.stories.d.ts +1 -0
- package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form-view.d.ts +1 -0
- package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form.d.ts +1 -1
- package/dist/types/components/sqm-portal-reset-password/sqm-portal-reset-password.d.ts +1 -1
- package/dist/types/components/sqm-portal-verify-email/sqm-portal-verify-email.d.ts +1 -1
- package/dist/types/components.d.ts +130 -13
- 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/esm-es5/ShadowViewAddon-fd07e6e1.js +0 -1
- package/dist/esm-es5/sqm-big-stat_39.entry.js +0 -1
- package/dist/mint-components/p-57e2c2fa.system.js +0 -1
- package/dist/mint-components/p-87d385d8.entry.js +0 -241
- package/dist/mint-components/p-abedbbf3.system.entry.js +0 -1
- package/dist/mint-components/p-bc83460e.system.entry.js +0 -1
- package/dist/mint-components/p-d12fc50f.js +0 -394
- package/dist/mint-components/p-da932ca2.entry.js +0 -9
- package/dist/types/global/android.d.ts +0 -7
- package/dist/types/global/demo.d.ts +0 -2
- package/dist/types/stories/features.d.ts +0 -4
- package/dist/types/stories/templates.d.ts +0 -4
package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js
CHANGED
|
@@ -46,8 +46,8 @@ export class PortalEmailVerification {
|
|
|
46
46
|
*/
|
|
47
47
|
this.verificationResentMessage = "Your verification email has been resent successfully";
|
|
48
48
|
/**
|
|
49
|
-
* @uiName Network error message
|
|
50
49
|
* Displayed when your verification email fails to send due to a network error. The participant can try refreshing the page.
|
|
50
|
+
* @uiName Network error message
|
|
51
51
|
*/
|
|
52
52
|
this.networkErrorMessage = "An error occurred while verifying your password. Please refresh the page.";
|
|
53
53
|
withHooks(this);
|
|
@@ -236,10 +236,10 @@ export class PortalEmailVerification {
|
|
|
236
236
|
"optional": false,
|
|
237
237
|
"docs": {
|
|
238
238
|
"tags": [{
|
|
239
|
-
"text": "Network error message
|
|
239
|
+
"text": "Network error message",
|
|
240
240
|
"name": "uiName"
|
|
241
241
|
}],
|
|
242
|
-
"text": ""
|
|
242
|
+
"text": "Displayed when your verification email fails to send due to a network error. The participant can try refreshing the page."
|
|
243
243
|
},
|
|
244
244
|
"attribute": "network-error-message",
|
|
245
245
|
"reflect": false,
|
|
@@ -40,8 +40,8 @@ export class PortalForgotPassword {
|
|
|
40
40
|
*/
|
|
41
41
|
this.loginText = "Sign In";
|
|
42
42
|
/**
|
|
43
|
-
* @uiName Network error message
|
|
44
43
|
* Displayed when the forgot password action fails due to a network error. The participant can try refreshing the page.
|
|
44
|
+
* @uiName Network error message
|
|
45
45
|
*/
|
|
46
46
|
this.networkErrorMessage = "An error occurred while loading this page. Please refresh the page.";
|
|
47
47
|
/**
|
|
@@ -215,10 +215,10 @@ export class PortalForgotPassword {
|
|
|
215
215
|
"optional": false,
|
|
216
216
|
"docs": {
|
|
217
217
|
"tags": [{
|
|
218
|
-
"text": "Network error message
|
|
218
|
+
"text": "Network error message",
|
|
219
219
|
"name": "uiName"
|
|
220
220
|
}],
|
|
221
|
-
"text": ""
|
|
221
|
+
"text": "Displayed when the forgot password action fails due to a network error. The participant can try refreshing the page."
|
|
222
222
|
},
|
|
223
223
|
"attribute": "network-error-message",
|
|
224
224
|
"reflect": false,
|
|
@@ -778,7 +778,7 @@ export class PortalGoogleRegistrationForm {
|
|
|
778
778
|
"mutable": false,
|
|
779
779
|
"complexType": {
|
|
780
780
|
"original": "DemoData<PortalRegistrationFormViewProps>",
|
|
781
|
-
"resolved": "{ states?: { error: string; loading: boolean; confirmPassword: boolean; hideInputs: boolean; hidePasswords?: boolean; registrationFormState?: RegistrationFormState; enablePasswordValidation?: boolean; loginPath: string; emailDisabled?: boolean; }; refs?: { formRef: any; }; content?: { formData?: VNode; terms?: VNode; passwordField?: VNode; secondaryButton?: VNode; emailLabel?: string; passwordLabel?: string; submitLabel?: string; pageLabel?: string; confirmPasswordLabel?: string; networkErrorMessage?: string; passwordMismatchErrorMessage?: string; invalidEmailErrorMessage?: string; formDisabledErrorMessage?: string; requiredFieldErrorMessage?: string; meetsRequirementsText?: string; doesNotMeetRequirementsText?: string; minErrorText?: string; uppercaseErrorText?: string; lowercaseErrorText?: string; hasErrorText?: string; }; }",
|
|
781
|
+
"resolved": "{ states?: { error: string; loading: boolean; confirmPassword: boolean; hideInputs: boolean; hidePasswords?: boolean; registrationFormState?: RegistrationFormState; enablePasswordValidation?: boolean; loginPath: string; emailDisabled?: boolean; }; refs?: { formRef: any; }; content?: { formData?: VNode; terms?: VNode; emailOptIn?: VNode; passwordField?: VNode; secondaryButton?: VNode; emailLabel?: string; passwordLabel?: string; submitLabel?: string; pageLabel?: string; confirmPasswordLabel?: string; networkErrorMessage?: string; passwordMismatchErrorMessage?: string; invalidEmailErrorMessage?: string; formDisabledErrorMessage?: string; requiredFieldErrorMessage?: string; meetsRequirementsText?: string; doesNotMeetRequirementsText?: string; minErrorText?: string; uppercaseErrorText?: string; lowercaseErrorText?: string; hasErrorText?: string; }; }",
|
|
782
782
|
"references": {
|
|
783
783
|
"DemoData": {
|
|
784
784
|
"location": "import",
|
|
@@ -808,7 +808,7 @@ export class PortalGoogleRegistrationForm {
|
|
|
808
808
|
"mutable": false,
|
|
809
809
|
"complexType": {
|
|
810
810
|
"original": "DemoData<PortalRegistrationFormViewProps>",
|
|
811
|
-
"resolved": "{ states?: { error: string; loading: boolean; confirmPassword: boolean; hideInputs: boolean; hidePasswords?: boolean; registrationFormState?: RegistrationFormState; enablePasswordValidation?: boolean; loginPath: string; emailDisabled?: boolean; }; refs?: { formRef: any; }; content?: { formData?: VNode; terms?: VNode; passwordField?: VNode; secondaryButton?: VNode; emailLabel?: string; passwordLabel?: string; submitLabel?: string; pageLabel?: string; confirmPasswordLabel?: string; networkErrorMessage?: string; passwordMismatchErrorMessage?: string; invalidEmailErrorMessage?: string; formDisabledErrorMessage?: string; requiredFieldErrorMessage?: string; meetsRequirementsText?: string; doesNotMeetRequirementsText?: string; minErrorText?: string; uppercaseErrorText?: string; lowercaseErrorText?: string; hasErrorText?: string; }; }",
|
|
811
|
+
"resolved": "{ states?: { error: string; loading: boolean; confirmPassword: boolean; hideInputs: boolean; hidePasswords?: boolean; registrationFormState?: RegistrationFormState; enablePasswordValidation?: boolean; loginPath: string; emailDisabled?: boolean; }; refs?: { formRef: any; }; content?: { formData?: VNode; terms?: VNode; emailOptIn?: VNode; passwordField?: VNode; secondaryButton?: VNode; emailLabel?: string; passwordLabel?: string; submitLabel?: string; pageLabel?: string; confirmPasswordLabel?: string; networkErrorMessage?: string; passwordMismatchErrorMessage?: string; invalidEmailErrorMessage?: string; formDisabledErrorMessage?: string; requiredFieldErrorMessage?: string; meetsRequirementsText?: string; doesNotMeetRequirementsText?: string; minErrorText?: string; uppercaseErrorText?: string; lowercaseErrorText?: string; hasErrorText?: string; }; }",
|
|
812
812
|
"references": {
|
|
813
813
|
"DemoData": {
|
|
814
814
|
"location": "import",
|
|
@@ -56,8 +56,8 @@ export class PortalLogin {
|
|
|
56
56
|
*/
|
|
57
57
|
this.pageLabel = "Sign in to your account";
|
|
58
58
|
/**
|
|
59
|
-
* @uiName Network error message
|
|
60
59
|
* Displayed when the login fails due to a network error. The participant can try refreshing the page.
|
|
60
|
+
* @uiName Network error message
|
|
61
61
|
*/
|
|
62
62
|
this.networkErrorMessage = "An error occurred while logging you in. Please refresh the page and try again.";
|
|
63
63
|
/**
|
|
@@ -310,10 +310,10 @@ export class PortalLogin {
|
|
|
310
310
|
"optional": false,
|
|
311
311
|
"docs": {
|
|
312
312
|
"tags": [{
|
|
313
|
-
"text": "Network error message
|
|
313
|
+
"text": "Network error message",
|
|
314
314
|
"name": "uiName"
|
|
315
315
|
}],
|
|
316
|
-
"text": ""
|
|
316
|
+
"text": "Displayed when the login fails due to a network error. The participant can try refreshing the page."
|
|
317
317
|
},
|
|
318
318
|
"attribute": "network-error-message",
|
|
319
319
|
"reflect": false,
|
package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js
CHANGED
|
@@ -96,6 +96,10 @@ export const FieldsHidden = () => {
|
|
|
96
96
|
} }));
|
|
97
97
|
};
|
|
98
98
|
export const SlottedInputs = () => (h(PortalRegistrationFormView, Object.assign({}, slottedProps)));
|
|
99
|
+
export const RegisterWithMarketingEmailsCheckbox = () => (h(PortalRegistrationFormView, Object.assign({}, defaultProps, { content: {
|
|
100
|
+
...defaultProps.content,
|
|
101
|
+
emailOptIn: (h("sqm-checkbox-field", { checkboxLabel: "I would like to receive marketing and promotional emails for this referral program" })),
|
|
102
|
+
} })));
|
|
99
103
|
export const TermsAndConditions = () => (h(PortalRegistrationFormView, Object.assign({}, defaultProps, { content: {
|
|
100
104
|
...defaultProps.content,
|
|
101
105
|
terms: (h("p", null,
|
package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js
CHANGED
|
@@ -75,6 +75,7 @@ export function PortalRegistrationFormView(props) {
|
|
|
75
75
|
helpText: ((_u = (_t = states.registrationFormState) === null || _t === void 0 ? void 0 : _t.validationErrors) === null || _u === void 0 ? void 0 : _u.confirmPassword) || content.requiredFieldErrorMessage,
|
|
76
76
|
}
|
|
77
77
|
: [])))),
|
|
78
|
+
content.emailOptIn,
|
|
78
79
|
content.terms,
|
|
79
80
|
h("div", { class: sheet.classes.ButtonsContainer },
|
|
80
81
|
h("sl-button", { submit: true, loading: states.loading, disabled: (_v = states.registrationFormState) === null || _v === void 0 ? void 0 : _v.disabled, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Register"),
|
package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js
CHANGED
|
@@ -6,7 +6,7 @@ import { PortalRegistrationFormView, } from "./sqm-portal-registration-form-view
|
|
|
6
6
|
import { usePortalRegistrationForm } from "./usePortalRegistrationForm";
|
|
7
7
|
/**
|
|
8
8
|
* @uiName Microsite Registration
|
|
9
|
-
* @slots [{"name":"formData","title":"Additional Fields"},{"name":"terms","title":"Terms And Conditions Fields"}]
|
|
9
|
+
* @slots [{"name":"formData","title":"Additional Fields"},{"name":"terms","title":"Terms And Conditions Fields"},{"name":"emailOptIn","title":"Email Opt-in Fields"}]
|
|
10
10
|
*/
|
|
11
11
|
export class PortalRegistrationForm {
|
|
12
12
|
constructor() {
|
|
@@ -141,6 +141,7 @@ export class PortalRegistrationForm {
|
|
|
141
141
|
secondaryButton: (h("slot", { name: "secondaryButton" },
|
|
142
142
|
h("sl-button", { type: "text", disabled: states.loading, onClick: () => navigation.push(states.loginPath) }, this.loginLabel))),
|
|
143
143
|
terms: h("slot", { name: "terms" }),
|
|
144
|
+
emailOptIn: h("slot", { name: "emailOptIn" }),
|
|
144
145
|
emailLabel: this.emailLabel,
|
|
145
146
|
passwordLabel: this.passwordLabel,
|
|
146
147
|
submitLabel: this.submitLabel,
|
|
@@ -698,7 +699,7 @@ export class PortalRegistrationForm {
|
|
|
698
699
|
"mutable": false,
|
|
699
700
|
"complexType": {
|
|
700
701
|
"original": "DemoData<PortalRegistrationFormViewProps>",
|
|
701
|
-
"resolved": "{ states?: { error: string; loading: boolean; confirmPassword: boolean; hideInputs: boolean; hidePasswords?: boolean; registrationFormState?: RegistrationFormState; enablePasswordValidation?: boolean; loginPath: string; emailDisabled?: boolean; }; refs?: { formRef: any; }; content?: { formData?: VNode; terms?: VNode; passwordField?: VNode; secondaryButton?: VNode; emailLabel?: string; passwordLabel?: string; submitLabel?: string; pageLabel?: string; confirmPasswordLabel?: string; networkErrorMessage?: string; passwordMismatchErrorMessage?: string; invalidEmailErrorMessage?: string; formDisabledErrorMessage?: string; requiredFieldErrorMessage?: string; meetsRequirementsText?: string; doesNotMeetRequirementsText?: string; minErrorText?: string; uppercaseErrorText?: string; lowercaseErrorText?: string; hasErrorText?: string; }; }",
|
|
702
|
+
"resolved": "{ states?: { error: string; loading: boolean; confirmPassword: boolean; hideInputs: boolean; hidePasswords?: boolean; registrationFormState?: RegistrationFormState; enablePasswordValidation?: boolean; loginPath: string; emailDisabled?: boolean; }; refs?: { formRef: any; }; content?: { formData?: VNode; terms?: VNode; emailOptIn?: VNode; passwordField?: VNode; secondaryButton?: VNode; emailLabel?: string; passwordLabel?: string; submitLabel?: string; pageLabel?: string; confirmPasswordLabel?: string; networkErrorMessage?: string; passwordMismatchErrorMessage?: string; invalidEmailErrorMessage?: string; formDisabledErrorMessage?: string; requiredFieldErrorMessage?: string; meetsRequirementsText?: string; doesNotMeetRequirementsText?: string; minErrorText?: string; uppercaseErrorText?: string; lowercaseErrorText?: string; hasErrorText?: string; }; }",
|
|
702
703
|
"references": {
|
|
703
704
|
"DemoData": {
|
|
704
705
|
"location": "import",
|
|
@@ -95,8 +95,8 @@ export class PortalResetPassword {
|
|
|
95
95
|
*/
|
|
96
96
|
this.resetSuccessText = "Your password has been reset and you are being redirected. If you are not redirected, please click Continue.";
|
|
97
97
|
/**
|
|
98
|
-
* @uiName Network error message
|
|
99
98
|
* Displayed when the password reset fails due to a network error. The participant can try refreshing the page.
|
|
99
|
+
* @uiName Network error message
|
|
100
100
|
*/
|
|
101
101
|
this.networkErrorMessage = "An error occurred while resetting your password. Please refresh the page and try again.";
|
|
102
102
|
withHooks(this);
|
|
@@ -510,10 +510,10 @@ export class PortalResetPassword {
|
|
|
510
510
|
"optional": false,
|
|
511
511
|
"docs": {
|
|
512
512
|
"tags": [{
|
|
513
|
-
"text": "Network error message
|
|
513
|
+
"text": "Network error message",
|
|
514
514
|
"name": "uiName"
|
|
515
515
|
}],
|
|
516
|
-
"text": ""
|
|
516
|
+
"text": "Displayed when the password reset fails due to a network error. The participant can try refreshing the page."
|
|
517
517
|
},
|
|
518
518
|
"attribute": "network-error-message",
|
|
519
519
|
"reflect": false,
|
|
@@ -45,8 +45,8 @@ export class PortalVerifyEmail {
|
|
|
45
45
|
*/
|
|
46
46
|
this.continueText = "Continue";
|
|
47
47
|
/**
|
|
48
|
-
* @uiName Network error message
|
|
49
48
|
* Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
|
|
49
|
+
* @uiName Network error message
|
|
50
50
|
*/
|
|
51
51
|
this.networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
|
|
52
52
|
withHooks(this);
|
|
@@ -214,10 +214,10 @@ export class PortalVerifyEmail {
|
|
|
214
214
|
"optional": false,
|
|
215
215
|
"docs": {
|
|
216
216
|
"tags": [{
|
|
217
|
-
"text": "Network error message
|
|
217
|
+
"text": "Network error message",
|
|
218
218
|
"name": "uiName"
|
|
219
219
|
}],
|
|
220
|
-
"text": ""
|
|
220
|
+
"text": "Displayed when the email verification fails due to a network error. The participant can try refreshing the page."
|
|
221
221
|
},
|
|
222
222
|
"attribute": "network-error-message",
|
|
223
223
|
"reflect": false,
|
|
@@ -26,6 +26,7 @@ import * as SidebarItem from "../sqm-navigation-sidebar-item/SidebarItem.stories
|
|
|
26
26
|
import * as NavigationSidebar from "../sqm-navigation-sidebar/NavigationSidebar.stories";
|
|
27
27
|
import * as PortalLogin from "../sqm-portal-login/PortalLogin.stories";
|
|
28
28
|
import * as PortalRegister from "../sqm-portal-register/PortalRegister.stories";
|
|
29
|
+
import * as NewPortalRegistrationForm from "../sqm-portal-registration-form/PortalRegistrationForm.stories";
|
|
29
30
|
import * as PortalForgotPassword from "../sqm-portal-forgot-password/PortalForgotPassword.stories";
|
|
30
31
|
import * as PortalEmailVerification from "../sqm-portal-email-verification/PortalEmailVerification.stories";
|
|
31
32
|
import * as PortalResetPassword from "../sqm-portal-reset-password/PortalResetPassword.stories";
|
|
@@ -33,6 +34,7 @@ import * as PortalVerifyEmail from "../sqm-portal-verify-email/PortalVerifyEmail
|
|
|
33
34
|
import * as AssetCard from "../sqm-asset-card/AssetCard.stories";
|
|
34
35
|
import * as DividedLayout from "../sqm-divided-layout/DividedLayout.stories";
|
|
35
36
|
import * as ChangePassword from "../sqm-portal-change-password/ChangePassword.stories";
|
|
37
|
+
import * as ChangeMarketing from "../sqm-portal-change-marketing/ChangeMarketing.stories";
|
|
36
38
|
import * as PortalProfile from "../sqm-portal-profile/PortalProfile.stories";
|
|
37
39
|
import * as ReferralTable from "../sqm-referral-table/ReferralTable.stories";
|
|
38
40
|
import * as ReferralTableCell from "../sqm-referral-table/ReferralTableCell.stories";
|
|
@@ -48,6 +50,7 @@ import * as Hero from "../sqm-hero/Hero.stories";
|
|
|
48
50
|
import * as ReferralIframe from "../sqm-referral-iframe/ReferralIframe.stories";
|
|
49
51
|
import * as NameFields from "../sqm-name-fields/NameFields.stories";
|
|
50
52
|
import * as CheckboxField from "../sqm-checkbox-field/CheckboxField.stories";
|
|
53
|
+
import * as MarketingEmailsCheckbox from "../sqm-marketing-emails-checkbox/MarketingEmailsCheckbox.stories";
|
|
51
54
|
import * as UseCheckboxField from "../sqm-checkbox-field/UseCheckboxField.stories";
|
|
52
55
|
import * as DropdownField from "../sqm-dropdown-field/DropdownField.stories";
|
|
53
56
|
import * as UseDropdownField from "../sqm-dropdown-field/UseDropdownField.stories";
|
|
@@ -149,6 +152,7 @@ const stories = [
|
|
|
149
152
|
ReferralIframe,
|
|
150
153
|
NameFields,
|
|
151
154
|
CheckboxField,
|
|
155
|
+
MarketingEmailsCheckbox,
|
|
152
156
|
DropdownField,
|
|
153
157
|
InputField,
|
|
154
158
|
RewardExchangeList,
|
|
@@ -184,6 +188,8 @@ const stories = [
|
|
|
184
188
|
TaxFormSlots,
|
|
185
189
|
PayoutDetailsCard,
|
|
186
190
|
BankingInfoForm,
|
|
191
|
+
NewPortalRegistrationForm,
|
|
192
|
+
ChangeMarketing,
|
|
187
193
|
BaseRegistrationForm,
|
|
188
194
|
PortalRegistrationForm,
|
|
189
195
|
PortalGoogleRegistrationFormStories,
|
|
@@ -1660,6 +1660,109 @@ function PortalRegisterView(props) {
|
|
|
1660
1660
|
}
|
|
1661
1661
|
|
|
1662
1662
|
const style$4 = {
|
|
1663
|
+
ErrorStyle: {
|
|
1664
|
+
"&::part(control)": {
|
|
1665
|
+
background: "var(--sl-color-danger-10)",
|
|
1666
|
+
borderColor: "var(--sl-color-danger-500)",
|
|
1667
|
+
outline: "var(--sl-color-danger-500)",
|
|
1668
|
+
},
|
|
1669
|
+
"&:host": {
|
|
1670
|
+
"--focus-ring": "0 0 0 var(--sl-focus-ring-width) red !important",
|
|
1671
|
+
},
|
|
1672
|
+
},
|
|
1673
|
+
ErrorMessageStyle: {
|
|
1674
|
+
margin: 0,
|
|
1675
|
+
marginTop: "5px",
|
|
1676
|
+
color: "var(--sl-color-danger-500)",
|
|
1677
|
+
fontSize: "var(--sl-input-help-text-font-size-medium)",
|
|
1678
|
+
fontFamily: "var(--sl-font-sans)",
|
|
1679
|
+
fontWeight: "var(--sl-font-weight-normal)",
|
|
1680
|
+
},
|
|
1681
|
+
FieldContainer: {
|
|
1682
|
+
"margin-bottom": "var(--sl-spacing-large)",
|
|
1683
|
+
},
|
|
1684
|
+
};
|
|
1685
|
+
const vanillaStyle$2 = `
|
|
1686
|
+
:host {
|
|
1687
|
+
margin: 0 auto;
|
|
1688
|
+
width: 100%;
|
|
1689
|
+
display: block;
|
|
1690
|
+
}
|
|
1691
|
+
sl-checkbox::part(label){
|
|
1692
|
+
font-size: var(--sl-input-label-font-size-small);
|
|
1693
|
+
font-weight: var(--sl-font-weight-normal);
|
|
1694
|
+
line-height: 20px;
|
|
1695
|
+
}
|
|
1696
|
+
sl-checkbox::part(base){
|
|
1697
|
+
align-items: start;
|
|
1698
|
+
}
|
|
1699
|
+
`;
|
|
1700
|
+
jss.setup(create());
|
|
1701
|
+
const sheet$4 = jss.createStyleSheet(style$4);
|
|
1702
|
+
const styleString$4 = sheet$4.toString();
|
|
1703
|
+
function CheckboxFieldView(props) {
|
|
1704
|
+
var _b, _c;
|
|
1705
|
+
const { states, content, callbacks } = props;
|
|
1706
|
+
return (h("div", { class: sheet$4.classes.FieldContainer, part: "sqm-base" },
|
|
1707
|
+
h("style", { type: "text/css" },
|
|
1708
|
+
vanillaStyle$2,
|
|
1709
|
+
styleString$4),
|
|
1710
|
+
h("sl-checkbox", Object.assign({ exportparts: "label: input-label, base: input-base", name: `/${content.checkboxName}`, checked: states.checked, "onSl-change": (e) => {
|
|
1711
|
+
e.target.value = e.target.checked;
|
|
1712
|
+
callbacks.setChecked(e.target.value);
|
|
1713
|
+
} }, (!content.checkboxOptional ? { required: false } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled), required: false }), intl.formatMessage({
|
|
1714
|
+
id: content.checkboxName + "-message",
|
|
1715
|
+
defaultMessage: content.checkboxLabel,
|
|
1716
|
+
}, {
|
|
1717
|
+
labelLink: (h("a", { href: content.checkboxLabelLink, target: "_blank" }, content.checkboxLabelLinkText || content.checkboxLabelLink)),
|
|
1718
|
+
}))));
|
|
1719
|
+
}
|
|
1720
|
+
|
|
1721
|
+
function ChangeMarktingView(props) {
|
|
1722
|
+
const { states, callbacks } = props;
|
|
1723
|
+
const { text, formState } = states;
|
|
1724
|
+
const { error } = formState;
|
|
1725
|
+
const style = {
|
|
1726
|
+
Container: {
|
|
1727
|
+
display: "flex",
|
|
1728
|
+
flexDirection: "column",
|
|
1729
|
+
gap: "var(--sl-spacing-x-small)",
|
|
1730
|
+
padding: "0 var(--sl-spacing-xxx-large) var(--sl-spacing-xxx-large)",
|
|
1731
|
+
},
|
|
1732
|
+
SubmitButton: { marginBottom: "var(--sl-spacing-medium)" },
|
|
1733
|
+
Error: {
|
|
1734
|
+
"&::part(erroralert-base)": {
|
|
1735
|
+
"margin-bottom": "15px",
|
|
1736
|
+
},
|
|
1737
|
+
},
|
|
1738
|
+
Success: {
|
|
1739
|
+
"&::part(successalert-base)": {
|
|
1740
|
+
"margin-bottom": "15px",
|
|
1741
|
+
},
|
|
1742
|
+
},
|
|
1743
|
+
};
|
|
1744
|
+
const sheet = createStyleSheet(style);
|
|
1745
|
+
const styleString = sheet.toString();
|
|
1746
|
+
return (h("div", { class: sheet.classes.Container, part: "sqm-base" },
|
|
1747
|
+
h("style", { type: "text/css" }, styleString),
|
|
1748
|
+
h(TextSpanView, Object.assign({}, { type: "h2" }), text.emailPreferencesHeader),
|
|
1749
|
+
h("sl-form", { "onSl-submit": callbacks.onSubmit },
|
|
1750
|
+
h(CheckboxFieldView, { states: {
|
|
1751
|
+
checked: states.formState.marketingEmailOptIn,
|
|
1752
|
+
}, content: {
|
|
1753
|
+
checkboxLabel: text.marketingCheckboxLabel,
|
|
1754
|
+
checkboxName: "marketingEmailOptIn",
|
|
1755
|
+
}, callbacks: {
|
|
1756
|
+
setChecked: callbacks.setChecked,
|
|
1757
|
+
} }),
|
|
1758
|
+
h("sl-button", { class: sheet.classes.SubmitButton, type: "primary", submit: true, loading: states.loading, disabled: states.submitDisabled }, text.submitChangeButtonText),
|
|
1759
|
+
error && (h("sqm-form-message", { class: sheet.classes.Error, type: "error", exportparts: "erroralert-icon" },
|
|
1760
|
+
h("div", { part: "erroralert-text" }, error))),
|
|
1761
|
+
states.success && (h("sqm-form-message", { class: sheet.classes.Success, type: "success", exportparts: "successalert-icon" },
|
|
1762
|
+
h("div", { part: "successalert-text" }, states.text.successMessage))))));
|
|
1763
|
+
}
|
|
1764
|
+
|
|
1765
|
+
const style$5 = {
|
|
1663
1766
|
Description: {
|
|
1664
1767
|
"& input[type=checkbox]": {
|
|
1665
1768
|
display: "none",
|
|
@@ -1698,13 +1801,13 @@ const style$4 = {
|
|
|
1698
1801
|
},
|
|
1699
1802
|
},
|
|
1700
1803
|
};
|
|
1701
|
-
const sheet$
|
|
1702
|
-
const styleString$
|
|
1804
|
+
const sheet$5 = createStyleSheet(style$5);
|
|
1805
|
+
const styleString$5 = sheet$5.toString();
|
|
1703
1806
|
function Details(props) {
|
|
1704
1807
|
const rid = Math.random().toString(36).slice(2);
|
|
1705
1808
|
return (h("div", { style: { opacity: props.opacity } },
|
|
1706
|
-
h("style", { type: "text/css" }, styleString$
|
|
1707
|
-
h("span", { class: sheet$
|
|
1809
|
+
h("style", { type: "text/css" }, styleString$5),
|
|
1810
|
+
h("span", { class: sheet$5.classes.Description },
|
|
1708
1811
|
h("input", { type: "checkbox", id: "details-" + rid }),
|
|
1709
1812
|
h("label", { class: "details", htmlFor: "details-" + rid },
|
|
1710
1813
|
h("sl-icon", { exportparts: "base: chevron-icon", name: "chevron-down" })),
|
|
@@ -1726,7 +1829,7 @@ const GreyGift = () => {
|
|
|
1726
1829
|
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M14 2.70949C14 3.59565 12.6694 4.93746 12 5H9V16H7.00179V5H4.58792C3.21247 4.70182 2 3.64537 2 2.52072C2 1.42474 2.47603 0.556701 3.34184 0.182041C4.16921 -0.175986 5.12452 0.0203328 5.87976 0.544666C6.80676 1.18825 7.32679 2.3963 7.79856 3.49226C7.83996 3.58845 7.88099 3.68378 7.9219 3.77778C7.96173 3.68865 8.00186 3.59793 8.0425 3.50608C8.50995 2.44948 9.04359 1.24325 9.9404 0.59563C10.7332 0.0231438 11.741 -0.193157 12.6121 0.198945C13.5129 0.604397 14 1.53453 14 2.70949ZM10.6123 1.5C11.0928 1.15305 11.668 1.09012 12.1597 1.5C12.5879 1.85694 12.6108 2.02497 12.6658 2.42926L12.6755 2.5C12.6755 3.09851 12.1597 4 11.6439 4C11.2785 4 10.9914 3.99691 10.7224 3.99402C10.2319 3.98875 9.80131 3.98412 9.06496 4C9.20533 3.72786 9.31743 3.46669 9.42434 3.21761C9.71026 2.55143 9.95907 1.97176 10.6123 1.5ZM4.93861 1.5C4.70607 1.33855 4.17281 1.4106 3.95166 1.5063C3.76894 1.58537 3.49602 1.82658 3.49602 2.52072C3.49602 3.19524 4.58792 3.77778 4.58792 3.77778C4.58792 3.77778 5.45441 4 7.00179 4C6.47506 2.69451 5.7289 2.04867 4.93861 1.5Z", fill: "#828282" })));
|
|
1727
1830
|
};
|
|
1728
1831
|
|
|
1729
|
-
const style$
|
|
1832
|
+
const style$6 = {
|
|
1730
1833
|
ProgressBar: {
|
|
1731
1834
|
"& .progress-bar": {
|
|
1732
1835
|
height: "0",
|
|
@@ -1838,14 +1941,14 @@ const style$5 = {
|
|
|
1838
1941
|
},
|
|
1839
1942
|
},
|
|
1840
1943
|
};
|
|
1841
|
-
const sheet$
|
|
1842
|
-
const styleString$
|
|
1944
|
+
const sheet$6 = createStyleSheet(style$6, { classNamePrefix: "sqm-prog-bar" });
|
|
1945
|
+
const styleString$6 = sheet$6.toString();
|
|
1843
1946
|
function ProgressBarView(props) {
|
|
1844
1947
|
const { progress = 0, goal = 1, steps = false, progressBarUnit = "", repeatable = false, complete = false, expired = false, finite = 0, opacity = "1", } = props;
|
|
1845
1948
|
let aggregate = buildProgressBar(repeatable, steps, props);
|
|
1846
1949
|
const { columns, items } = aggregate;
|
|
1847
|
-
return (h("div", { class: sheet$
|
|
1848
|
-
h("style", { type: "text/css" }, styleString$
|
|
1950
|
+
return (h("div", { class: sheet$6.classes.ProgressBar, "data-expired": expired, "data-complete": complete, "data-steps": steps, "data-done": goal <= progress, style: { opacity: opacity } },
|
|
1951
|
+
h("style", { type: "text/css" }, styleString$6),
|
|
1849
1952
|
h("div", { class: (!Boolean(finite) && progress >= 2 * goal) ||
|
|
1850
1953
|
(Boolean(finite) && progress > 2 * goal)
|
|
1851
1954
|
? "progress-bar repeatable-steps"
|
|
@@ -2136,7 +2239,7 @@ const arrow_left_right = () => {
|
|
|
2136
2239
|
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M10.265 2.789a.346.346 0 000-.489L8.066.101a.346.346 0 10-.489.489l1.61 1.609H2.073a.691.691 0 00-.69.691v1.728a.346.346 0 00.69 0V2.89h7.114L7.577 4.5a.346.346 0 10.49.488l2.198-2.2zM.101 9.21a.346.346 0 000 .489l2.2 2.199a.346.346 0 00.488-.489l-1.61-1.609h7.114c.382 0 .691-.31.691-.691V7.382a.346.346 0 00-.691 0V9.11H1.18L2.789 7.5a.346.346 0 10-.489-.488l-2.199 2.2z", fill: "currentColor" })));
|
|
2137
2240
|
};
|
|
2138
2241
|
|
|
2139
|
-
const style$
|
|
2242
|
+
const style$7 = {
|
|
2140
2243
|
TaskCard: {
|
|
2141
2244
|
display: "inline-block",
|
|
2142
2245
|
width: "100%",
|
|
@@ -2290,8 +2393,8 @@ const style$6 = {
|
|
|
2290
2393
|
},
|
|
2291
2394
|
},
|
|
2292
2395
|
};
|
|
2293
|
-
const sheet$
|
|
2294
|
-
const styleString$
|
|
2396
|
+
const sheet$7 = createStyleSheet(style$7);
|
|
2397
|
+
const styleString$7 = sheet$7.toString();
|
|
2295
2398
|
function TaskCardView(props) {
|
|
2296
2399
|
var _a, _b;
|
|
2297
2400
|
const { callbacks, states, content } = props;
|
|
@@ -2327,11 +2430,11 @@ function TaskCardView(props) {
|
|
|
2327
2430
|
}
|
|
2328
2431
|
|
|
2329
2432
|
`;
|
|
2330
|
-
return (h("div", { class: sheet$
|
|
2433
|
+
return (h("div", { class: sheet$7.classes.TaskCard, part: "sqm-base" },
|
|
2331
2434
|
h("style", { type: "text/css" },
|
|
2332
|
-
styleString$
|
|
2435
|
+
styleString$7,
|
|
2333
2436
|
vanillaStyle),
|
|
2334
|
-
!states.loading && taskNotStarted && (h("div", { class: sheet$
|
|
2437
|
+
!states.loading && taskNotStarted && (h("div", { class: sheet$7.classes.NotStarted },
|
|
2335
2438
|
h("span", { class: "icon" },
|
|
2336
2439
|
h("sl-icon", { name: "info-circle-fill" })),
|
|
2337
2440
|
intl.formatMessage({
|
|
@@ -2342,7 +2445,7 @@ function TaskCardView(props) {
|
|
|
2342
2445
|
.setLocale(luxonLocale(states.locale))
|
|
2343
2446
|
.toLocaleString(luxon.DateTime.DATETIME_MED),
|
|
2344
2447
|
}))),
|
|
2345
|
-
!states.loading && taskEnded && (h("div", { class: sheet$
|
|
2448
|
+
!states.loading && taskEnded && (h("div", { class: sheet$7.classes.Ended },
|
|
2346
2449
|
h("span", { class: "icon" },
|
|
2347
2450
|
h("sl-icon", { exportparts: "base: task-card-icon", name: "exclamation-triangle-fill" })),
|
|
2348
2451
|
intl.formatMessage({
|
|
@@ -2362,7 +2465,7 @@ function TaskCardView(props) {
|
|
|
2362
2465
|
? "main complete"
|
|
2363
2466
|
: "main" },
|
|
2364
2467
|
h("div", { class: "container", part: "sqm-card-container", "data-subdue": taskComplete || taskUnavailable },
|
|
2365
|
-
h("div", { class: sheet$
|
|
2468
|
+
h("div", { class: sheet$7.classes.Header, style: { opacity: taskComplete || taskUnavailable ? "0.45" : "1" } }, states.loading ? (h("sl-skeleton", { style: { width: "22%", margin: "0" } })) : (h("div", null,
|
|
2366
2469
|
showComplete && (h("span", { class: taskUnavailable ? "icon neutral" : "icon" }, taskComplete ? checkmark_filled$1 : checkmark_circle$1)),
|
|
2367
2470
|
h("span", { part: "sqm-value", class: "value" }, content.rewardAmount),
|
|
2368
2471
|
h("span", { part: "sqm-unit", class: "text" }, content.rewardUnit)))),
|
|
@@ -2378,7 +2481,7 @@ function TaskCardView(props) {
|
|
|
2378
2481
|
} }, content.cardTitle)),
|
|
2379
2482
|
states.loading ? (h("sl-skeleton", { style: { margin: "var(--sl-spacing-medium) 0" } })) : (content.description && (h(Details, Object.assign({}, props, { opacity: taskComplete || taskUnavailable ? "0.45" : "1" })))),
|
|
2380
2483
|
content.showProgressBar && states.loading ? (h("sl-skeleton", { style: { margin: "var(--sl-spacing-medium) 0" } })) : (content.showProgressBar && (h(ProgressBarView, Object.assign({}, props.content, props.states, { opacity: taskComplete || taskUnavailable ? "0.45" : "1", complete: taskComplete, expired: taskUnavailable })))),
|
|
2381
|
-
h("div", { class: sheet$
|
|
2484
|
+
h("div", { class: sheet$7.classes.Footer, "data-subdue": taskComplete || taskUnavailable }, states.loading ? (h("sl-skeleton", { style: { width: "25%", marginLeft: "auto" } })) : (h("div", { style: { display: "contents" } },
|
|
2382
2485
|
h("span", { class: "text" },
|
|
2383
2486
|
content.repeatable && (h("div", null,
|
|
2384
2487
|
h("span", { class: repetitions > 0
|
|
@@ -2449,7 +2552,7 @@ function PoweredByImg({ color = "#A6A6A6", width = 120, height = 16, }) {
|
|
|
2449
2552
|
h("path", { d: "M1661.53 157.54H1589.77C1590.42 169.37 1593.54 178.535 1599.13 185.035C1604.85 191.535 1612.65 194.785 1622.53 194.785C1628.51 194.785 1633.97 193.485 1638.91 190.885C1643.98 188.285 1647.95 184.645 1650.81 179.965L1657.24 186.4C1653.34 192.12 1648.4 196.475 1642.42 199.465C1636.57 202.455 1629.94 203.95 1622.53 203.95C1609.01 203.95 1598.35 199.465 1590.55 190.495C1582.88 181.525 1579.05 169.175 1579.05 153.445C1579.05 137.585 1582.82 125.17 1590.36 116.2C1597.9 107.1 1608.23 102.55 1621.36 102.55C1633.84 102.55 1643.66 106.84 1650.81 115.42C1657.96 124 1661.53 135.895 1661.53 151.105V157.54ZM1651.39 147.4C1651.39 136.48 1648.66 127.77 1643.2 121.27C1637.74 114.77 1630.46 111.52 1621.36 111.52C1611.74 111.52 1604.2 114.77 1598.74 121.27C1593.28 127.77 1590.29 137.065 1589.77 149.155H1651.39V147.4Z", fill: color })));
|
|
2450
2553
|
}
|
|
2451
2554
|
|
|
2452
|
-
const vanillaStyle$
|
|
2555
|
+
const vanillaStyle$3 = `
|
|
2453
2556
|
:host{
|
|
2454
2557
|
margin: 0 auto;
|
|
2455
2558
|
width: 100%;
|
|
@@ -2505,7 +2608,7 @@ function PortalFooterView(props) {
|
|
|
2505
2608
|
const styleString = sheet.toString();
|
|
2506
2609
|
return (h("div", { class: sheet.classes.Container, part: "sqm-base" },
|
|
2507
2610
|
h("style", { type: "text/css" },
|
|
2508
|
-
vanillaStyle$
|
|
2611
|
+
vanillaStyle$3,
|
|
2509
2612
|
styleString),
|
|
2510
2613
|
h("div", { class: sheet.classes.RowContainer },
|
|
2511
2614
|
props.faqLink && (h("a", { target: "_blank", href: props.faqLink }, props.faqText)),
|
|
@@ -2677,7 +2780,7 @@ function ReferralIframeView(props) {
|
|
|
2677
2780
|
h("iframe", { class: sheet.classes.IFrame, src: `${content.iframeSrc}?rsCode=${data.shareCode}` })));
|
|
2678
2781
|
}
|
|
2679
2782
|
|
|
2680
|
-
const style$
|
|
2783
|
+
const style$8 = {
|
|
2681
2784
|
ErrorStyle: ErrorStyles,
|
|
2682
2785
|
FieldsContainer: {
|
|
2683
2786
|
"& sl-input": {
|
|
@@ -2685,7 +2788,7 @@ const style$7 = {
|
|
|
2685
2788
|
},
|
|
2686
2789
|
},
|
|
2687
2790
|
};
|
|
2688
|
-
const vanillaStyle$
|
|
2791
|
+
const vanillaStyle$4 = `
|
|
2689
2792
|
:host {
|
|
2690
2793
|
margin: 0 auto;
|
|
2691
2794
|
width: 100%;
|
|
@@ -2697,21 +2800,21 @@ sl-input::part(label){
|
|
|
2697
2800
|
font-weight: var(--sl-font-weight-semibold);
|
|
2698
2801
|
}
|
|
2699
2802
|
`;
|
|
2700
|
-
const sheet$
|
|
2701
|
-
const styleString$
|
|
2803
|
+
const sheet$8 = createStyleSheet(style$8);
|
|
2804
|
+
const styleString$8 = sheet$8.toString();
|
|
2702
2805
|
function NameFieldsView(props) {
|
|
2703
2806
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
2704
2807
|
const { states } = props;
|
|
2705
2808
|
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2706
|
-
return (h("div", { class: sheet$
|
|
2809
|
+
return (h("div", { class: sheet$8.classes.FieldsContainer },
|
|
2707
2810
|
h("style", { type: "text/css" },
|
|
2708
|
-
vanillaStyle$
|
|
2709
|
-
styleString$
|
|
2811
|
+
vanillaStyle$4,
|
|
2812
|
+
styleString$8),
|
|
2710
2813
|
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", name: "/firstName", type: "text", label: states.content.firstNameLabel, required: true, disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e.firstName) ? {
|
|
2711
2814
|
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g.firstName,
|
|
2712
2815
|
}
|
|
2713
2816
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) ? {
|
|
2714
|
-
class: sheet$
|
|
2817
|
+
class: sheet$8.classes.ErrorStyle,
|
|
2715
2818
|
helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) || "Cannot be empty",
|
|
2716
2819
|
}
|
|
2717
2820
|
: []))),
|
|
@@ -2719,81 +2822,12 @@ function NameFieldsView(props) {
|
|
|
2719
2822
|
value: (_o = (_m = states.registrationFormState) === null || _m === void 0 ? void 0 : _m.initialData) === null || _o === void 0 ? void 0 : _o.lastName,
|
|
2720
2823
|
}
|
|
2721
2824
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.lastName) ? {
|
|
2722
|
-
class: sheet$
|
|
2825
|
+
class: sheet$8.classes.ErrorStyle,
|
|
2723
2826
|
helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.lastName) || "Cannot be empty",
|
|
2724
2827
|
}
|
|
2725
2828
|
: [])))));
|
|
2726
2829
|
}
|
|
2727
2830
|
|
|
2728
|
-
const style$8 = {
|
|
2729
|
-
ErrorStyle: {
|
|
2730
|
-
"&::part(control)": {
|
|
2731
|
-
background: "var(--sl-color-danger-10)",
|
|
2732
|
-
borderColor: "var(--sl-color-danger-500)",
|
|
2733
|
-
outline: "var(--sl-color-danger-500)",
|
|
2734
|
-
},
|
|
2735
|
-
"&:host": {
|
|
2736
|
-
"--focus-ring": "0 0 0 var(--sl-focus-ring-width) red !important",
|
|
2737
|
-
},
|
|
2738
|
-
},
|
|
2739
|
-
ErrorMessageStyle: {
|
|
2740
|
-
margin: 0,
|
|
2741
|
-
marginTop: "5px",
|
|
2742
|
-
color: "var(--sl-color-danger-500)",
|
|
2743
|
-
fontSize: "var(--sl-input-help-text-font-size-medium)",
|
|
2744
|
-
fontFamily: "var(--sl-font-sans)",
|
|
2745
|
-
fontWeight: "var(--sl-font-weight-normal)",
|
|
2746
|
-
},
|
|
2747
|
-
FieldContainer: {
|
|
2748
|
-
"margin-bottom": "var(--sl-spacing-large)",
|
|
2749
|
-
},
|
|
2750
|
-
};
|
|
2751
|
-
const vanillaStyle$4 = `
|
|
2752
|
-
:host {
|
|
2753
|
-
margin: 0 auto;
|
|
2754
|
-
width: 100%;
|
|
2755
|
-
display: block;
|
|
2756
|
-
}
|
|
2757
|
-
sl-checkbox::part(label){
|
|
2758
|
-
font-size: var(--sl-input-label-font-size-small);
|
|
2759
|
-
font-weight: var(--sl-font-weight-normal);
|
|
2760
|
-
line-height: 20px;
|
|
2761
|
-
}
|
|
2762
|
-
sl-checkbox::part(base){
|
|
2763
|
-
align-items: start;
|
|
2764
|
-
}
|
|
2765
|
-
`;
|
|
2766
|
-
jss.setup(create());
|
|
2767
|
-
const sheet$8 = jss.createStyleSheet(style$8);
|
|
2768
|
-
const styleString$8 = sheet$8.toString();
|
|
2769
|
-
function CheckboxFieldView(props) {
|
|
2770
|
-
var _a, _b, _c;
|
|
2771
|
-
const { states, content, callbacks } = props;
|
|
2772
|
-
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2773
|
-
return (h("div", { class: sheet$8.classes.FieldContainer, part: "sqm-base" },
|
|
2774
|
-
h("style", { type: "text/css" },
|
|
2775
|
-
vanillaStyle$4,
|
|
2776
|
-
styleString$8),
|
|
2777
|
-
h("sl-checkbox", Object.assign({ exportparts: "label: input-label, base: input-base", name: `/${content.checkboxName}`, checked: states.checked, "onSl-change": (e) => {
|
|
2778
|
-
e.target.value = e.target.checked;
|
|
2779
|
-
callbacks.setChecked(e.target.value);
|
|
2780
|
-
} }, (!content.checkboxOptional ? { required: true } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (!states.checked && (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.checkboxName])
|
|
2781
|
-
? {
|
|
2782
|
-
class: sheet$8.classes.ErrorStyle,
|
|
2783
|
-
}
|
|
2784
|
-
: [])),
|
|
2785
|
-
intl.formatMessage({
|
|
2786
|
-
id: content.checkboxName + "-message",
|
|
2787
|
-
defaultMessage: content.checkboxLabel,
|
|
2788
|
-
}, {
|
|
2789
|
-
labelLink: (h("a", { href: content.checkboxLabelLink, target: "_blank" }, content.checkboxLabelLinkText || content.checkboxLabelLink)),
|
|
2790
|
-
}),
|
|
2791
|
-
!states.checked && (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.checkboxName]) && (h("p", { class: sheet$8.classes.ErrorMessageStyle }, intl.formatMessage({
|
|
2792
|
-
id: `errorMessage-${content.checkboxName}`,
|
|
2793
|
-
defaultMessage: content.errorMessage,
|
|
2794
|
-
}))))));
|
|
2795
|
-
}
|
|
2796
|
-
|
|
2797
2831
|
const style$9 = {
|
|
2798
2832
|
ErrorStyle: {
|
|
2799
2833
|
"--sl-input-border-color": "var(--sl-color-danger-500)",
|
|
@@ -4094,4 +4128,4 @@ const ShadowViewAddon = ({ story }, children) => {
|
|
|
4094
4128
|
h(TagName, { "stencilbook-shadow-view": randomInt })));
|
|
4095
4129
|
};
|
|
4096
4130
|
|
|
4097
|
-
export {
|
|
4131
|
+
export { loading as A, BigStatView as B, ChangeMarktingView as C, DropdownFieldView as D, EditProfileView as E, empty as F, rewardExchange as G, HeroView as H, InputFieldView as I, CardFeedView as J, CouponCodeView as K, LeaderboardView as L, ProgressBar as M, NameFieldsView as N, autoColorScaleCss as O, PortalFrameView as P, ShadowViewAddon as Q, ReferralIframeView as R, ShareButtonView as S, TaskCardView as T, useBigStat as U, withShadowView as V, demoRewardExchange as W, useShareButton as a, useDemoBigStat as b, StatContainerView as c, PortalChangePasswordView as d, PortalRegisterView as e, ProgressBarView as f, PoweredByImg as g, PortalFooterView as h, CheckboxFieldView as i, RewardExchangeView as j, rewardExchangeLongText as k, rewardExchangeSelected as l, chooseAmountFixed as m, chooseAmountFixedNoDescription as n, chooseAmountVariable as o, chooseAmountVariableNoDescription as p, chooseAmountVariableDisabled as q, rewardExchangeCustomErrorMsg as r, chooseAmountVariableUnavailable as s, confirmFixed as t, useShareLink as u, confirmVariable as v, redemptionError as w, queryError as x, success as y, successVariable as z };
|