@saasquatch/mint-components 1.12.0-9 → 1.12.1-1
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-040cffad.js → ShadowViewAddon-88821c64.js} +3 -6
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +79 -202
- package/dist/cjs/sqm-big-stat_39.cjs.entry.js +160 -281
- package/dist/cjs/{sqm-invoice-table-view-c58966f8.js → sqm-invoice-table-view-a9133a11.js} +0 -98
- package/dist/cjs/sqm-portal-registration-form-view-621348a6.js +85 -0
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +12 -81
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +323 -334
- package/dist/collection/collection-manifest.json +1 -6
- package/dist/collection/components/sqm-big-stat/useBigStat.js +3 -6
- 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 +160 -0
- package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js +5 -1
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +1 -1
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +3 -2
- package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js +6 -0
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +4 -8
- package/dist/collection/components/tax-and-cash/BankingForm.stories.js +0 -2
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +0 -96
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +1 -5
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +38 -101
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +2 -15
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/data.js +0 -7
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +8 -8
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +0 -22
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +9 -99
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +1 -8
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +11 -14
- package/dist/esm/{ShadowViewAddon-69b61037.js → ShadowViewAddon-65c8679e.js} +3 -6
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-banking-info-form_16.entry.js +79 -202
- package/dist/esm/sqm-big-stat_39.entry.js +159 -280
- package/dist/esm/{sqm-invoice-table-view-d1cfdaf4.js → sqm-invoice-table-view-71915a5e.js} +0 -98
- package/dist/esm/sqm-portal-registration-form-view-1d3066e1.js +83 -0
- package/dist/esm/sqm-portal-registration-form.entry.js +18 -87
- package/dist/esm/sqm-stencilbook.entry.js +323 -334
- package/dist/esm/stencil-hooks.module-ac12ca1c.js +1 -1
- package/dist/esm-es5/ShadowViewAddon-65c8679e.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-banking-info-form_16.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -1
- package/dist/esm-es5/sqm-invoice-table-view-71915a5e.js +1 -0
- package/dist/esm-es5/sqm-portal-registration-form-view-1d3066e1.js +1 -0
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/stencil-hooks.module-ac12ca1c.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-1279f7a3.system.entry.js +1 -0
- package/dist/mint-components/p-15a64357.entry.js +13 -0
- package/dist/mint-components/p-17f56865.entry.js +9 -0
- package/dist/mint-components/p-2a414b2e.system.js +2 -2
- package/dist/mint-components/p-3cb18382.system.js +1 -0
- package/dist/mint-components/p-40b1de58.js +1 -0
- package/dist/mint-components/p-4112e198.system.js +1 -0
- package/dist/mint-components/p-5cd917db.js +1 -0
- package/dist/mint-components/p-6792c8d8.system.entry.js +1 -0
- package/dist/mint-components/p-a02afa72.system.js +1 -0
- package/dist/mint-components/p-acd77a6e.entry.js +223 -0
- package/dist/mint-components/p-b3e97f8a.system.entry.js +1 -0
- package/dist/mint-components/{p-9eae245f.js → p-b651706a.js} +3 -6
- package/dist/mint-components/p-b8233366.entry.js +174 -0
- package/dist/mint-components/p-ca809fdd.system.js +1 -1
- package/dist/mint-components/p-cb38b9b0.system.entry.js +1 -0
- package/dist/mint-components/p-fd2c5407.js +2 -2
- 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 +34 -0
- 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/tax-and-cash/TaxForm.stories.d.ts +0 -2
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +0 -2
- package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/data.d.ts +0 -6
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +2 -2
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +0 -12
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +2 -19
- package/dist/types/components.d.ts +108 -625
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -2
- package/dist/cjs/extractProps-fd93ba62.js +0 -21
- package/dist/cjs/keys-cff24974.js +0 -11
- package/dist/cjs/sqm-code-verification.cjs.entry.js +0 -342
- package/dist/cjs/sqm-email-verification.cjs.entry.js +0 -283
- package/dist/cjs/sqm-scroll.cjs.entry.js +0 -109
- package/dist/cjs/sqm-widget-verification-internal.cjs.entry.js +0 -103
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +0 -210
- package/dist/cjs/usePayoutStatus-b9fb7399.js +0 -70
- package/dist/cjs/useVerificationEmail-6aacdb71.js +0 -169
- package/dist/collection/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.js +0 -8
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +0 -23
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll.js +0 -118
- package/dist/collection/components/sqm-payout-button-scroll/usePayoutButton.js +0 -44
- package/dist/collection/components/sqm-widget-verification/keys.js +0 -4
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.js +0 -36
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +0 -128
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +0 -301
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.js +0 -153
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.js +0 -42
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +0 -91
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.js +0 -226
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.js +0 -126
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-internal.js +0 -339
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +0 -557
- package/dist/collection/components/sqm-widget-verification/useVerificationEmail.js +0 -165
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js +0 -22
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +0 -131
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +0 -354
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +0 -65
- package/dist/esm/extractProps-ae1afbb3.js +0 -19
- package/dist/esm/keys-db1897ae.js +0 -6
- package/dist/esm/sqm-code-verification.entry.js +0 -338
- package/dist/esm/sqm-email-verification.entry.js +0 -279
- package/dist/esm/sqm-scroll.entry.js +0 -105
- package/dist/esm/sqm-widget-verification-internal.entry.js +0 -99
- package/dist/esm/sqm-widget-verification.entry.js +0 -206
- package/dist/esm/usePayoutStatus-1a635054.js +0 -67
- package/dist/esm/useVerificationEmail-c32696ba.js +0 -167
- package/dist/esm-es5/ShadowViewAddon-69b61037.js +0 -1
- package/dist/esm-es5/extractProps-ae1afbb3.js +0 -1
- package/dist/esm-es5/keys-db1897ae.js +0 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +0 -1
- package/dist/esm-es5/sqm-email-verification.entry.js +0 -1
- package/dist/esm-es5/sqm-invoice-table-view-d1cfdaf4.js +0 -1
- package/dist/esm-es5/sqm-scroll.entry.js +0 -1
- package/dist/esm-es5/sqm-widget-verification-internal.entry.js +0 -1
- package/dist/esm-es5/sqm-widget-verification.entry.js +0 -1
- package/dist/esm-es5/usePayoutStatus-1a635054.js +0 -1
- package/dist/esm-es5/useVerificationEmail-c32696ba.js +0 -1
- package/dist/mint-components/p-1712a9fd.entry.js +0 -11
- package/dist/mint-components/p-1e616d45.system.js +0 -1
- package/dist/mint-components/p-24092973.entry.js +0 -9
- package/dist/mint-components/p-26468242.js +0 -1
- package/dist/mint-components/p-331d060e.entry.js +0 -223
- package/dist/mint-components/p-3925bcd6.entry.js +0 -13
- package/dist/mint-components/p-39840341.js +0 -1
- package/dist/mint-components/p-4364001c.entry.js +0 -12
- package/dist/mint-components/p-4bd7a472.js +0 -1
- package/dist/mint-components/p-517224ef.js +0 -19
- package/dist/mint-components/p-5a23b560.system.entry.js +0 -1
- package/dist/mint-components/p-64491210.system.entry.js +0 -1
- package/dist/mint-components/p-8300d8c8.system.js +0 -1
- package/dist/mint-components/p-8bddb468.system.entry.js +0 -1
- package/dist/mint-components/p-9596e97c.system.entry.js +0 -1
- package/dist/mint-components/p-974070c4.system.entry.js +0 -1
- package/dist/mint-components/p-a85f57bb.entry.js +0 -1
- package/dist/mint-components/p-a8645c1b.system.js +0 -1
- package/dist/mint-components/p-b2a99637.system.js +0 -1
- package/dist/mint-components/p-b62faaa5.system.entry.js +0 -1
- package/dist/mint-components/p-c05e7b9f.entry.js +0 -195
- package/dist/mint-components/p-c510fb88.entry.js +0 -1
- package/dist/mint-components/p-c7057066.system.entry.js +0 -1
- package/dist/mint-components/p-d7806f31.js +0 -48
- package/dist/mint-components/p-e01ac27c.system.js +0 -1
- package/dist/mint-components/p-e45a8501.system.entry.js +0 -1
- package/dist/mint-components/p-e990dc21.system.js +0 -1
- package/dist/mint-components/p-ead27698.system.entry.js +0 -1
- package/dist/mint-components/p-f340214f.entry.js +0 -25
- package/dist/types/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.d.ts +0 -5
- package/dist/types/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.d.ts +0 -10
- package/dist/types/components/sqm-payout-button-scroll/sqm-payout-button-scroll.d.ts +0 -26
- package/dist/types/components/sqm-payout-button-scroll/usePayoutButton.d.ts +0 -7
- package/dist/types/components/sqm-widget-verification/keys.d.ts +0 -4
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.d.ts +0 -9
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.d.ts +0 -26
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.d.ts +0 -54
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.d.ts +0 -25
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.d.ts +0 -10
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.d.ts +0 -21
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.d.ts +0 -40
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.d.ts +0 -10
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification-internal.d.ts +0 -20
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +0 -87
- package/dist/types/components/sqm-widget-verification/useVerificationEmail.d.ts +0 -14
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.d.ts +0 -10
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +0 -30
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +0 -62
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +0 -21
|
@@ -26,11 +26,12 @@ const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-
|
|
|
26
26
|
const sqmPortalForgotPasswordView = require('./sqm-portal-forgot-password-view-969c49ed.js');
|
|
27
27
|
const sqmPortalProfileView = require('./sqm-portal-profile-view-d97086bc.js');
|
|
28
28
|
require('./utilities-f7de6c04.js');
|
|
29
|
+
const sqmPortalRegistrationFormView = require('./sqm-portal-registration-form-view-621348a6.js');
|
|
29
30
|
const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-96f329ed.js');
|
|
30
31
|
const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-7ffcc0d4.js');
|
|
31
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
32
|
+
const ShadowViewAddon = require('./ShadowViewAddon-88821c64.js');
|
|
32
33
|
const sqmPortalContainerView = require('./sqm-portal-container-view-990a85a3.js');
|
|
33
|
-
const sqmInvoiceTableView = require('./sqm-invoice-table-view-
|
|
34
|
+
const sqmInvoiceTableView = require('./sqm-invoice-table-view-a9133a11.js');
|
|
34
35
|
|
|
35
36
|
/**
|
|
36
37
|
* lodash (Custom Build) <https://lodash.com/>
|
|
@@ -7421,6 +7422,126 @@ const PortalRegister = /*#__PURE__*/Object.freeze({
|
|
|
7421
7422
|
TermsAndConditions: TermsAndConditions
|
|
7422
7423
|
});
|
|
7423
7424
|
|
|
7425
|
+
const PortalRegistrationForm_stories = {
|
|
7426
|
+
title: "Components/Microsite Register Form New",
|
|
7427
|
+
};
|
|
7428
|
+
const defaultProps$4 = {
|
|
7429
|
+
states: {
|
|
7430
|
+
error: "",
|
|
7431
|
+
loading: false,
|
|
7432
|
+
confirmPassword: true,
|
|
7433
|
+
hideInputs: false,
|
|
7434
|
+
loginPath: "/login",
|
|
7435
|
+
},
|
|
7436
|
+
callbacks: {
|
|
7437
|
+
submit: () => console.log("Submit!"),
|
|
7438
|
+
inputFunction: () => { },
|
|
7439
|
+
},
|
|
7440
|
+
refs: {
|
|
7441
|
+
formRef: {},
|
|
7442
|
+
},
|
|
7443
|
+
content: { pageLabel: "Register", confirmPasswordLabel: "Confirm Password" },
|
|
7444
|
+
};
|
|
7445
|
+
const errorProps$2 = {
|
|
7446
|
+
states: {
|
|
7447
|
+
error: "Something went wrong. Please try again.",
|
|
7448
|
+
loading: false,
|
|
7449
|
+
confirmPassword: true,
|
|
7450
|
+
hideInputs: false,
|
|
7451
|
+
loginPath: "/login",
|
|
7452
|
+
},
|
|
7453
|
+
callbacks: {
|
|
7454
|
+
submit: () => console.log("Submit!"),
|
|
7455
|
+
inputFunction: () => { },
|
|
7456
|
+
},
|
|
7457
|
+
refs: {
|
|
7458
|
+
formRef: {},
|
|
7459
|
+
},
|
|
7460
|
+
content: {
|
|
7461
|
+
pageLabel: "Register",
|
|
7462
|
+
confirmPasswordLabel: "Confirm Password",
|
|
7463
|
+
},
|
|
7464
|
+
};
|
|
7465
|
+
const loadingProps$2 = {
|
|
7466
|
+
states: {
|
|
7467
|
+
error: "",
|
|
7468
|
+
loading: true,
|
|
7469
|
+
confirmPassword: true,
|
|
7470
|
+
hideInputs: false,
|
|
7471
|
+
loginPath: "/login",
|
|
7472
|
+
},
|
|
7473
|
+
callbacks: {
|
|
7474
|
+
submit: () => console.log("Submit!"),
|
|
7475
|
+
inputFunction: () => { },
|
|
7476
|
+
},
|
|
7477
|
+
refs: {
|
|
7478
|
+
formRef: {},
|
|
7479
|
+
},
|
|
7480
|
+
content: { pageLabel: "Register", confirmPasswordLabel: "Confirm Password" },
|
|
7481
|
+
};
|
|
7482
|
+
const slottedProps$1 = {
|
|
7483
|
+
states: {
|
|
7484
|
+
error: "",
|
|
7485
|
+
loading: false,
|
|
7486
|
+
confirmPassword: true,
|
|
7487
|
+
hideInputs: false,
|
|
7488
|
+
loginPath: "/login",
|
|
7489
|
+
},
|
|
7490
|
+
callbacks: {
|
|
7491
|
+
submit: () => console.log("Submit!"),
|
|
7492
|
+
inputFunction: () => { },
|
|
7493
|
+
},
|
|
7494
|
+
refs: {
|
|
7495
|
+
formRef: {},
|
|
7496
|
+
},
|
|
7497
|
+
content: {
|
|
7498
|
+
pageLabel: "Register",
|
|
7499
|
+
confirmPasswordLabel: "Confirm Password",
|
|
7500
|
+
formData: (index.h("div", null,
|
|
7501
|
+
index.h("sl-input", { style: { marginBottom: "var(--sl-spacing-x-large)" }, exportparts: "label: input-label, base: input-base", label: "Slotted Input", required: true }),
|
|
7502
|
+
index.h("sl-input", { exportparts: "label: input-label, base: input-base", label: "Slotted Input 2", required: true }))),
|
|
7503
|
+
},
|
|
7504
|
+
};
|
|
7505
|
+
const Default$4 = () => index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, defaultProps$4));
|
|
7506
|
+
const RegisterWithError$1 = () => (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, errorProps$2)));
|
|
7507
|
+
const RegisterLoading$1 = () => (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, loadingProps$2)));
|
|
7508
|
+
const FieldsHidden$1 = () => {
|
|
7509
|
+
return (index.h("sqm-portal-register", { demoData: {
|
|
7510
|
+
states: {
|
|
7511
|
+
error: "",
|
|
7512
|
+
loading: true,
|
|
7513
|
+
registrationFormState: {},
|
|
7514
|
+
confirmPassword: true,
|
|
7515
|
+
hideInputs: true,
|
|
7516
|
+
loginPath: "/login",
|
|
7517
|
+
},
|
|
7518
|
+
} }));
|
|
7519
|
+
};
|
|
7520
|
+
const SlottedInputs$1 = () => (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, slottedProps$1)));
|
|
7521
|
+
const RegisterWithMarketingEmailsCheckbox = () => (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, defaultProps$4, { content: {
|
|
7522
|
+
...defaultProps$4.content,
|
|
7523
|
+
emailOptIn: (index.h("sqm-checkbox-field", { checkboxLabel: "I would like to receive marketing and promotional emails for this referral program" })),
|
|
7524
|
+
} })));
|
|
7525
|
+
const TermsAndConditions$1 = () => (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, defaultProps$4, { content: {
|
|
7526
|
+
...defaultProps$4.content,
|
|
7527
|
+
terms: (index.h("p", null,
|
|
7528
|
+
"By signing up you agree to the",
|
|
7529
|
+
" ",
|
|
7530
|
+
index.h("a", { href: "https://example.com", target: "_blank" }, "Terms and Conditions"))),
|
|
7531
|
+
} })));
|
|
7532
|
+
|
|
7533
|
+
const NewPortalRegistrationForm = /*#__PURE__*/Object.freeze({
|
|
7534
|
+
__proto__: null,
|
|
7535
|
+
'default': PortalRegistrationForm_stories,
|
|
7536
|
+
Default: Default$4,
|
|
7537
|
+
RegisterWithError: RegisterWithError$1,
|
|
7538
|
+
RegisterLoading: RegisterLoading$1,
|
|
7539
|
+
FieldsHidden: FieldsHidden$1,
|
|
7540
|
+
SlottedInputs: SlottedInputs$1,
|
|
7541
|
+
RegisterWithMarketingEmailsCheckbox: RegisterWithMarketingEmailsCheckbox,
|
|
7542
|
+
TermsAndConditions: TermsAndConditions$1
|
|
7543
|
+
});
|
|
7544
|
+
|
|
7424
7545
|
const scenario$6 = "@author:derek\n@owner:ian\nFeature: Forgot Password\n\n @motivating\n Scenario: Users can request to reset their password\n Given a user enters their email address\n And that email address is linked to a previously created account\n When they click \"Reset Password\"\n Then the button enters a loading state\n When the password reset email is sent\n Then a confirmation banner is shown stating a password reset email was sent\n\n @motivating\n Scenario: Users are notified if sending their password reset email fails\n Given a user enters their email address\n And that email address is linked to a previously created account\n When they click \"Reset Password\"\n Then the button enters a loading state\n When the password reset email fails to send\n Then the user does not receive a password reset email\n And an error banner is shown stating that they should try again\n\n @motivating\n @landmine\n Scenario: If the input email is not associated to an account a success banner is shown but an email is not be sent\n Given the user entered an email address that is not associated to an accoun\n When they click \"Reset Password\"\n Then the button enters a loading state\n But no email is sent\n And a success banner is shown stating a password reset email was sent if the given email was associated to an account\n\n @motivating\n Scenario: Users can resend password reset email\n Given a user had previously requested to reset their password\n When they enter their email address\n And that email address is linked to a previously created account\n And they click \"Reset Password\"\n Then the user receives a second password reset email\n And a success banner is shown stating that their email was sent\n\n @motivating\n Scenario Outline: The email link can be configured to redirect users to a specific base path but defaults to \"/resetPassword\"\n Given a user viewing the password reset component\n And the component <mayHave> \"redirect-path\" with <value>\n When they request a password reset email\n And they click the link in the email\n Then they are redirected to <redirectPath>\n Examples:\n | mayHave | value | redirectPath |\n | doesn't have | N/A | /resetPassword |\n | has | /resetMyPassword | /resetMyPassword |\n\n @minutia\n Scenario Outline: Navigation back to the login page can be customized but defaults to \"/login\"\n Given a user viewing the password reset component\n And the component <mayHave> \"login-path\" with <value>\n Then they see a \"Sign In\" text button\n When they click \"Sign In\"\n Then they are redirected to <redirectPath>\n Examples:\n | mayHave | value | redirectPath |\n | doesn't have | N/A | /login |\n | has | /signin | /signin |";
|
|
7425
7546
|
|
|
7426
7547
|
const PortalForgotPassword_stories = {
|
|
@@ -7429,7 +7550,7 @@ const PortalForgotPassword_stories = {
|
|
|
7429
7550
|
scenario: scenario$6,
|
|
7430
7551
|
},
|
|
7431
7552
|
};
|
|
7432
|
-
const defaultProps$
|
|
7553
|
+
const defaultProps$5 = {
|
|
7433
7554
|
states: {
|
|
7434
7555
|
error: "",
|
|
7435
7556
|
loading: false,
|
|
@@ -7444,7 +7565,7 @@ const defaultProps$4 = {
|
|
|
7444
7565
|
messageSlot: "Enter your email below to receive a password reset link.",
|
|
7445
7566
|
},
|
|
7446
7567
|
};
|
|
7447
|
-
const errorProps$
|
|
7568
|
+
const errorProps$3 = {
|
|
7448
7569
|
states: {
|
|
7449
7570
|
error: "Something went wrong. Please try again.",
|
|
7450
7571
|
loading: false,
|
|
@@ -7459,7 +7580,7 @@ const errorProps$2 = {
|
|
|
7459
7580
|
messageSlot: "Enter your email below to receive a password reset link.",
|
|
7460
7581
|
},
|
|
7461
7582
|
};
|
|
7462
|
-
const loadingProps$
|
|
7583
|
+
const loadingProps$3 = {
|
|
7463
7584
|
states: {
|
|
7464
7585
|
error: "",
|
|
7465
7586
|
loading: true,
|
|
@@ -7489,15 +7610,15 @@ const successProps = {
|
|
|
7489
7610
|
messageSlot: "Enter your email below to receive a password reset link.",
|
|
7490
7611
|
},
|
|
7491
7612
|
};
|
|
7492
|
-
const Default$
|
|
7493
|
-
const ForgotPasswordWithError = () => (index.h(sqmPortalForgotPasswordView.PortalForgotPasswordView, Object.assign({}, errorProps$
|
|
7494
|
-
const ForgotPasswordLoading = () => (index.h(sqmPortalForgotPasswordView.PortalForgotPasswordView, Object.assign({}, loadingProps$
|
|
7613
|
+
const Default$5 = () => index.h(sqmPortalForgotPasswordView.PortalForgotPasswordView, Object.assign({}, defaultProps$5));
|
|
7614
|
+
const ForgotPasswordWithError = () => (index.h(sqmPortalForgotPasswordView.PortalForgotPasswordView, Object.assign({}, errorProps$3)));
|
|
7615
|
+
const ForgotPasswordLoading = () => (index.h(sqmPortalForgotPasswordView.PortalForgotPasswordView, Object.assign({}, loadingProps$3)));
|
|
7495
7616
|
const ForgotPasswordSuccess = () => (index.h(sqmPortalForgotPasswordView.PortalForgotPasswordView, Object.assign({}, successProps)));
|
|
7496
7617
|
|
|
7497
7618
|
const PortalForgotPassword = /*#__PURE__*/Object.freeze({
|
|
7498
7619
|
__proto__: null,
|
|
7499
7620
|
'default': PortalForgotPassword_stories,
|
|
7500
|
-
Default: Default$
|
|
7621
|
+
Default: Default$5,
|
|
7501
7622
|
ForgotPasswordWithError: ForgotPasswordWithError,
|
|
7502
7623
|
ForgotPasswordLoading: ForgotPasswordLoading,
|
|
7503
7624
|
ForgotPasswordSuccess: ForgotPasswordSuccess
|
|
@@ -7530,12 +7651,12 @@ const defaultStates = {
|
|
|
7530
7651
|
loadingVerification: false,
|
|
7531
7652
|
countdown: 10,
|
|
7532
7653
|
};
|
|
7533
|
-
const defaultProps$
|
|
7654
|
+
const defaultProps$6 = {
|
|
7534
7655
|
states: defaultStates,
|
|
7535
7656
|
callbacks: defaultCallbacks,
|
|
7536
7657
|
content: defaultContent,
|
|
7537
7658
|
};
|
|
7538
|
-
const errorProps$
|
|
7659
|
+
const errorProps$4 = {
|
|
7539
7660
|
states: {
|
|
7540
7661
|
...defaultStates,
|
|
7541
7662
|
error: "Something went wrong. Please try again.",
|
|
@@ -7543,7 +7664,7 @@ const errorProps$3 = {
|
|
|
7543
7664
|
callbacks: defaultCallbacks,
|
|
7544
7665
|
content: defaultContent,
|
|
7545
7666
|
};
|
|
7546
|
-
const loadingProps$
|
|
7667
|
+
const loadingProps$4 = {
|
|
7547
7668
|
states: {
|
|
7548
7669
|
...defaultStates,
|
|
7549
7670
|
loading: true,
|
|
@@ -7568,16 +7689,16 @@ const loadingVerificationProps = {
|
|
|
7568
7689
|
callbacks: defaultCallbacks,
|
|
7569
7690
|
content: defaultContent,
|
|
7570
7691
|
};
|
|
7571
|
-
const Default$
|
|
7572
|
-
const EmailVerificationWithError = () => (index.h(sqmPortalEmailVerificationView.PortalEmailVerificationView, Object.assign({}, errorProps$
|
|
7573
|
-
const EmailVerificationLoading = () => (index.h(sqmPortalEmailVerificationView.PortalEmailVerificationView, Object.assign({}, loadingProps$
|
|
7692
|
+
const Default$6 = () => index.h(sqmPortalEmailVerificationView.PortalEmailVerificationView, Object.assign({}, defaultProps$6));
|
|
7693
|
+
const EmailVerificationWithError = () => (index.h(sqmPortalEmailVerificationView.PortalEmailVerificationView, Object.assign({}, errorProps$4)));
|
|
7694
|
+
const EmailVerificationLoading = () => (index.h(sqmPortalEmailVerificationView.PortalEmailVerificationView, Object.assign({}, loadingProps$4)));
|
|
7574
7695
|
const EmailVerificationCheckingVerification = () => (index.h(sqmPortalEmailVerificationView.PortalEmailVerificationView, Object.assign({}, loadingVerificationProps)));
|
|
7575
7696
|
const EmailVerificationSuccess = () => (index.h(sqmPortalEmailVerificationView.PortalEmailVerificationView, Object.assign({}, successProps$1)));
|
|
7576
7697
|
|
|
7577
7698
|
const PortalEmailVerification = /*#__PURE__*/Object.freeze({
|
|
7578
7699
|
__proto__: null,
|
|
7579
7700
|
'default': PortalEmailVerification_stories,
|
|
7580
|
-
Default: Default$
|
|
7701
|
+
Default: Default$6,
|
|
7581
7702
|
EmailVerificationWithError: EmailVerificationWithError,
|
|
7582
7703
|
EmailVerificationLoading: EmailVerificationLoading,
|
|
7583
7704
|
EmailVerificationCheckingVerification: EmailVerificationCheckingVerification,
|
|
@@ -7592,7 +7713,7 @@ const PortalResetPassword_stories = {
|
|
|
7592
7713
|
scenario: scenario$8,
|
|
7593
7714
|
},
|
|
7594
7715
|
};
|
|
7595
|
-
const defaultProps$
|
|
7716
|
+
const defaultProps$7 = {
|
|
7596
7717
|
states: {
|
|
7597
7718
|
error: "",
|
|
7598
7719
|
loading: false,
|
|
@@ -7638,7 +7759,7 @@ const defaultPropsNoConfirm = {
|
|
|
7638
7759
|
failed: () => console.log("failed"),
|
|
7639
7760
|
},
|
|
7640
7761
|
};
|
|
7641
|
-
const errorProps$
|
|
7762
|
+
const errorProps$5 = {
|
|
7642
7763
|
states: {
|
|
7643
7764
|
error: "Something went wrong. Please try again.",
|
|
7644
7765
|
loading: false,
|
|
@@ -7661,7 +7782,7 @@ const errorProps$4 = {
|
|
|
7661
7782
|
failed: () => console.log("failed"),
|
|
7662
7783
|
},
|
|
7663
7784
|
};
|
|
7664
|
-
const loadingProps$
|
|
7785
|
+
const loadingProps$5 = {
|
|
7665
7786
|
states: {
|
|
7666
7787
|
error: "",
|
|
7667
7788
|
loading: true,
|
|
@@ -7730,17 +7851,17 @@ const validatingCodeProps = {
|
|
|
7730
7851
|
failed: () => console.log("failed"),
|
|
7731
7852
|
},
|
|
7732
7853
|
};
|
|
7733
|
-
const Default$
|
|
7854
|
+
const Default$7 = () => index.h(sqmPortalResetPasswordView.PortalResetPasswordView, Object.assign({}, defaultProps$7));
|
|
7734
7855
|
const DefaultWithoutConfirmField = () => (index.h(sqmPortalResetPasswordView.PortalResetPasswordView, Object.assign({}, defaultPropsNoConfirm)));
|
|
7735
|
-
const ResetPasswordWithError = () => (index.h(sqmPortalResetPasswordView.PortalResetPasswordView, Object.assign({}, errorProps$
|
|
7736
|
-
const ResetPasswordLoading = () => (index.h(sqmPortalResetPasswordView.PortalResetPasswordView, Object.assign({}, loadingProps$
|
|
7856
|
+
const ResetPasswordWithError = () => (index.h(sqmPortalResetPasswordView.PortalResetPasswordView, Object.assign({}, errorProps$5)));
|
|
7857
|
+
const ResetPasswordLoading = () => (index.h(sqmPortalResetPasswordView.PortalResetPasswordView, Object.assign({}, loadingProps$5)));
|
|
7737
7858
|
const ResetPasswordSuccess = () => (index.h(sqmPortalResetPasswordView.PortalResetPasswordView, Object.assign({}, successProps$2)));
|
|
7738
7859
|
const CodeValidating = () => (index.h(sqmPortalResetPasswordView.PortalResetPasswordView, Object.assign({}, validatingCodeProps)));
|
|
7739
7860
|
|
|
7740
7861
|
const PortalResetPassword = /*#__PURE__*/Object.freeze({
|
|
7741
7862
|
__proto__: null,
|
|
7742
7863
|
'default': PortalResetPassword_stories,
|
|
7743
|
-
Default: Default$
|
|
7864
|
+
Default: Default$7,
|
|
7744
7865
|
DefaultWithoutConfirmField: DefaultWithoutConfirmField,
|
|
7745
7866
|
ResetPasswordWithError: ResetPasswordWithError,
|
|
7746
7867
|
ResetPasswordLoading: ResetPasswordLoading,
|
|
@@ -7756,7 +7877,7 @@ const PortalVerifyEmail_stories = {
|
|
|
7756
7877
|
scenario: scenario$9,
|
|
7757
7878
|
},
|
|
7758
7879
|
};
|
|
7759
|
-
const errorProps$
|
|
7880
|
+
const errorProps$6 = {
|
|
7760
7881
|
states: {
|
|
7761
7882
|
error: "Something went wrong. Please try again.",
|
|
7762
7883
|
loading: false,
|
|
@@ -7790,7 +7911,7 @@ const verifiedProps = {
|
|
|
7790
7911
|
},
|
|
7791
7912
|
content: {},
|
|
7792
7913
|
};
|
|
7793
|
-
const EmailVerificationWithError$1 = () => (index.h(sqmPortalVerifyEmailView.PortalVerifyEmailView, Object.assign({}, errorProps$
|
|
7914
|
+
const EmailVerificationWithError$1 = () => (index.h(sqmPortalVerifyEmailView.PortalVerifyEmailView, Object.assign({}, errorProps$6)));
|
|
7794
7915
|
const EmailVerificationSuccess$1 = () => (index.h(sqmPortalVerifyEmailView.PortalVerifyEmailView, Object.assign({}, verifiedProps)));
|
|
7795
7916
|
|
|
7796
7917
|
const PortalVerifyEmail = /*#__PURE__*/Object.freeze({
|
|
@@ -7803,7 +7924,7 @@ const PortalVerifyEmail = /*#__PURE__*/Object.freeze({
|
|
|
7803
7924
|
const AssetCard_stories = {
|
|
7804
7925
|
title: "Components/Asset Card",
|
|
7805
7926
|
};
|
|
7806
|
-
const Default$
|
|
7927
|
+
const Default$8 = () => {
|
|
7807
7928
|
const props = {
|
|
7808
7929
|
text: { titleText: "Marketing Banner" },
|
|
7809
7930
|
imgUrl: "https://res.cloudinary.com/saasquatch/image/upload/v1634255445/squatch-assets/Copy_of_saasquatch-logo-tree-large-horizontal.png",
|
|
@@ -7831,7 +7952,7 @@ const CardWithNoImg = () => {
|
|
|
7831
7952
|
const AssetCard = /*#__PURE__*/Object.freeze({
|
|
7832
7953
|
__proto__: null,
|
|
7833
7954
|
'default': AssetCard_stories,
|
|
7834
|
-
Default: Default$
|
|
7955
|
+
Default: Default$8,
|
|
7835
7956
|
CardWithLongText: CardWithLongText,
|
|
7836
7957
|
CardWithNoImg: CardWithNoImg
|
|
7837
7958
|
});
|
|
@@ -7920,7 +8041,7 @@ const ChangePassword_stories = {
|
|
|
7920
8041
|
scenario: scenario$a,
|
|
7921
8042
|
},
|
|
7922
8043
|
};
|
|
7923
|
-
const defaultProps$
|
|
8044
|
+
const defaultProps$8 = {
|
|
7924
8045
|
states: {
|
|
7925
8046
|
open: false,
|
|
7926
8047
|
loading: false,
|
|
@@ -7964,7 +8085,7 @@ const openProps = {
|
|
|
7964
8085
|
submit: (e) => console.log("Submit", e),
|
|
7965
8086
|
},
|
|
7966
8087
|
};
|
|
7967
|
-
const errorProps$
|
|
8088
|
+
const errorProps$7 = {
|
|
7968
8089
|
states: {
|
|
7969
8090
|
open: true,
|
|
7970
8091
|
loading: false,
|
|
@@ -8008,7 +8129,7 @@ const passwordErrorProps = {
|
|
|
8008
8129
|
submit: (e) => console.log("Submit", e),
|
|
8009
8130
|
},
|
|
8010
8131
|
};
|
|
8011
|
-
const loadingProps$
|
|
8132
|
+
const loadingProps$6 = {
|
|
8012
8133
|
states: {
|
|
8013
8134
|
open: true,
|
|
8014
8135
|
loading: true,
|
|
@@ -8052,17 +8173,17 @@ const successProps$3 = {
|
|
|
8052
8173
|
submit: (e) => console.log("Submit", e),
|
|
8053
8174
|
},
|
|
8054
8175
|
};
|
|
8055
|
-
const Default$
|
|
8176
|
+
const Default$9 = () => index.h(ShadowViewAddon.PortalChangePasswordView, Object.assign({}, defaultProps$8));
|
|
8056
8177
|
const Open = () => index.h(ShadowViewAddon.PortalChangePasswordView, Object.assign({}, openProps));
|
|
8057
|
-
const Error$2 = () => index.h(ShadowViewAddon.PortalChangePasswordView, Object.assign({}, errorProps$
|
|
8178
|
+
const Error$2 = () => index.h(ShadowViewAddon.PortalChangePasswordView, Object.assign({}, errorProps$7));
|
|
8058
8179
|
const PaswordError = () => (index.h(ShadowViewAddon.PortalChangePasswordView, Object.assign({}, passwordErrorProps)));
|
|
8059
|
-
const Loading$1 = () => index.h(ShadowViewAddon.PortalChangePasswordView, Object.assign({}, loadingProps$
|
|
8180
|
+
const Loading$1 = () => index.h(ShadowViewAddon.PortalChangePasswordView, Object.assign({}, loadingProps$6));
|
|
8060
8181
|
const Success = () => index.h(ShadowViewAddon.PortalChangePasswordView, Object.assign({}, successProps$3));
|
|
8061
8182
|
|
|
8062
8183
|
const ChangePassword = /*#__PURE__*/Object.freeze({
|
|
8063
8184
|
__proto__: null,
|
|
8064
8185
|
'default': ChangePassword_stories,
|
|
8065
|
-
Default: Default$
|
|
8186
|
+
Default: Default$9,
|
|
8066
8187
|
Open: Open,
|
|
8067
8188
|
Error: Error$2,
|
|
8068
8189
|
PaswordError: PaswordError,
|
|
@@ -8073,7 +8194,7 @@ const ChangePassword = /*#__PURE__*/Object.freeze({
|
|
|
8073
8194
|
const PortalProfile_stories = {
|
|
8074
8195
|
title: "Components/Microsite Profile",
|
|
8075
8196
|
};
|
|
8076
|
-
const defaultProps$
|
|
8197
|
+
const defaultProps$9 = {
|
|
8077
8198
|
states: {
|
|
8078
8199
|
success: false,
|
|
8079
8200
|
loading: false,
|
|
@@ -8145,7 +8266,7 @@ const noCountry = {
|
|
|
8145
8266
|
onChange: (e) => console.log(e),
|
|
8146
8267
|
},
|
|
8147
8268
|
};
|
|
8148
|
-
const loadingProps$
|
|
8269
|
+
const loadingProps$7 = {
|
|
8149
8270
|
states: {
|
|
8150
8271
|
success: false,
|
|
8151
8272
|
loading: true,
|
|
@@ -8217,7 +8338,7 @@ const disabledProps = {
|
|
|
8217
8338
|
onChange: (e) => console.log(e),
|
|
8218
8339
|
},
|
|
8219
8340
|
};
|
|
8220
|
-
const errorProps$
|
|
8341
|
+
const errorProps$8 = {
|
|
8221
8342
|
states: {
|
|
8222
8343
|
success: false,
|
|
8223
8344
|
loading: false,
|
|
@@ -8289,17 +8410,17 @@ const successProps$4 = {
|
|
|
8289
8410
|
onChange: (e) => console.log(e),
|
|
8290
8411
|
},
|
|
8291
8412
|
};
|
|
8292
|
-
const Default$
|
|
8413
|
+
const Default$a = () => index.h(sqmPortalProfileView.PortalProfileView, Object.assign({}, defaultProps$9));
|
|
8293
8414
|
const DefaultNoCountry = () => index.h(sqmPortalProfileView.PortalProfileView, Object.assign({}, noCountry));
|
|
8294
|
-
const Loading$2 = () => index.h(sqmPortalProfileView.PortalProfileView, Object.assign({}, loadingProps$
|
|
8415
|
+
const Loading$2 = () => index.h(sqmPortalProfileView.PortalProfileView, Object.assign({}, loadingProps$7));
|
|
8295
8416
|
const Disabled$1 = () => index.h(sqmPortalProfileView.PortalProfileView, Object.assign({}, disabledProps));
|
|
8296
|
-
const Error$3 = () => index.h(sqmPortalProfileView.PortalProfileView, Object.assign({}, errorProps$
|
|
8417
|
+
const Error$3 = () => index.h(sqmPortalProfileView.PortalProfileView, Object.assign({}, errorProps$8));
|
|
8297
8418
|
const Success$1 = () => index.h(sqmPortalProfileView.PortalProfileView, Object.assign({}, successProps$4));
|
|
8298
8419
|
|
|
8299
8420
|
const PortalProfile = /*#__PURE__*/Object.freeze({
|
|
8300
8421
|
__proto__: null,
|
|
8301
8422
|
'default': PortalProfile_stories,
|
|
8302
|
-
Default: Default$
|
|
8423
|
+
Default: Default$a,
|
|
8303
8424
|
DefaultNoCountry: DefaultNoCountry,
|
|
8304
8425
|
Loading: Loading$2,
|
|
8305
8426
|
Disabled: Disabled$1,
|
|
@@ -10259,7 +10380,7 @@ const ProgramMenu = /*#__PURE__*/Object.freeze({
|
|
|
10259
10380
|
const PoweredByImg_stories = {
|
|
10260
10381
|
title: "Powered By",
|
|
10261
10382
|
};
|
|
10262
|
-
const Default$
|
|
10383
|
+
const Default$b = () => {
|
|
10263
10384
|
return index.h(ShadowViewAddon.PoweredByImg, null);
|
|
10264
10385
|
};
|
|
10265
10386
|
const CustomColor = () => {
|
|
@@ -10272,7 +10393,7 @@ const CustomWidthAndHeight = () => {
|
|
|
10272
10393
|
const PoweredByImg = /*#__PURE__*/Object.freeze({
|
|
10273
10394
|
__proto__: null,
|
|
10274
10395
|
'default': PoweredByImg_stories,
|
|
10275
|
-
Default: Default$
|
|
10396
|
+
Default: Default$b,
|
|
10276
10397
|
CustomColor: CustomColor,
|
|
10277
10398
|
CustomWidthAndHeight: CustomWidthAndHeight
|
|
10278
10399
|
});
|
|
@@ -10285,7 +10406,7 @@ const PortalFooter_stories = {
|
|
|
10285
10406
|
scenario: scenario$f,
|
|
10286
10407
|
},
|
|
10287
10408
|
};
|
|
10288
|
-
const defaultProps$
|
|
10409
|
+
const defaultProps$a = {
|
|
10289
10410
|
supportEmail: "support@example.com",
|
|
10290
10411
|
supportText: "For program support, contact {email}",
|
|
10291
10412
|
hidePoweredBy: false,
|
|
@@ -10295,12 +10416,12 @@ const defaultProps$9 = {
|
|
|
10295
10416
|
paddingBottom: "large",
|
|
10296
10417
|
paddingLeft: "large",
|
|
10297
10418
|
};
|
|
10298
|
-
const DefaultFooter = () => index.h(ShadowViewAddon.PortalFooterView, Object.assign({}, defaultProps$
|
|
10299
|
-
const FooterWithTerms = () => (index.h(ShadowViewAddon.PortalFooterView, Object.assign({}, defaultProps$
|
|
10300
|
-
const FooterWithFAQ = () => (index.h(ShadowViewAddon.PortalFooterView, Object.assign({}, defaultProps$
|
|
10301
|
-
const FooterWithTermsAndFAQ = () => (index.h(ShadowViewAddon.PortalFooterView, Object.assign({}, defaultProps$
|
|
10302
|
-
const FooterNoPoweredBy = () => (index.h(ShadowViewAddon.PortalFooterView, Object.assign({}, defaultProps$
|
|
10303
|
-
const FooterNoSupportText = () => (index.h(ShadowViewAddon.PortalFooterView, Object.assign({}, defaultProps$
|
|
10419
|
+
const DefaultFooter = () => index.h(ShadowViewAddon.PortalFooterView, Object.assign({}, defaultProps$a));
|
|
10420
|
+
const FooterWithTerms = () => (index.h(ShadowViewAddon.PortalFooterView, Object.assign({}, defaultProps$a, { termsLink: "https://example.com", termsText: "Terms and Conditions" })));
|
|
10421
|
+
const FooterWithFAQ = () => (index.h(ShadowViewAddon.PortalFooterView, Object.assign({}, defaultProps$a, { faqLink: "https://example.com", faqText: "FAQ" })));
|
|
10422
|
+
const FooterWithTermsAndFAQ = () => (index.h(ShadowViewAddon.PortalFooterView, Object.assign({}, defaultProps$a, { termsLink: "https://example.com", termsText: "Terms and Conditions", faqLink: "https://example.com", faqText: "FAQ" })));
|
|
10423
|
+
const FooterNoPoweredBy = () => (index.h(ShadowViewAddon.PortalFooterView, Object.assign({}, defaultProps$a, { termsLink: "https://example.com", termsText: "Terms and Conditions", faqLink: "https://example.com", faqText: "FAQ", hidePoweredBy: true })));
|
|
10424
|
+
const FooterNoSupportText = () => (index.h(ShadowViewAddon.PortalFooterView, Object.assign({}, defaultProps$a, { termsLink: "https://example.com", termsText: "Terms and Conditions", faqLink: "https://example.com", faqText: "FAQ", hideSupportText: true })));
|
|
10304
10425
|
|
|
10305
10426
|
const PortalFooter = /*#__PURE__*/Object.freeze({
|
|
10306
10427
|
__proto__: null,
|
|
@@ -10582,7 +10703,7 @@ const props$1 = {
|
|
|
10582
10703
|
},
|
|
10583
10704
|
},
|
|
10584
10705
|
};
|
|
10585
|
-
const errorProps$
|
|
10706
|
+
const errorProps$9 = {
|
|
10586
10707
|
states: {
|
|
10587
10708
|
registrationFormState: {
|
|
10588
10709
|
validationErrors: {
|
|
@@ -10600,7 +10721,7 @@ const NameFields = () => {
|
|
|
10600
10721
|
return index.h(ShadowViewAddon.NameFieldsView, Object.assign({}, props$1));
|
|
10601
10722
|
};
|
|
10602
10723
|
const NameFieldsWithErrors = () => {
|
|
10603
|
-
return index.h(ShadowViewAddon.NameFieldsView, Object.assign({}, errorProps$
|
|
10724
|
+
return index.h(ShadowViewAddon.NameFieldsView, Object.assign({}, errorProps$9));
|
|
10604
10725
|
};
|
|
10605
10726
|
|
|
10606
10727
|
const NameFields$1 = /*#__PURE__*/Object.freeze({
|
|
@@ -10618,7 +10739,7 @@ const CheckboxField_stories = {
|
|
|
10618
10739
|
scenario: scenario$j,
|
|
10619
10740
|
},
|
|
10620
10741
|
};
|
|
10621
|
-
const defaultProps$
|
|
10742
|
+
const defaultProps$b = {
|
|
10622
10743
|
states: {
|
|
10623
10744
|
registrationFormState: {
|
|
10624
10745
|
validationErrors: {},
|
|
@@ -10659,35 +10780,35 @@ const defaultRegisterProps = {
|
|
|
10659
10780
|
invalidEmailErrorMessage: "Must be a valid email address",
|
|
10660
10781
|
},
|
|
10661
10782
|
};
|
|
10662
|
-
const Default$
|
|
10663
|
-
const DefaultChecked = createHookStory(() => (index.h(ShadowViewAddon.CheckboxFieldView, Object.assign({}, defaultProps$
|
|
10664
|
-
...defaultProps$
|
|
10783
|
+
const Default$c = createHookStory(() => (index.h(ShadowViewAddon.CheckboxFieldView, Object.assign({}, defaultProps$b))));
|
|
10784
|
+
const DefaultChecked = createHookStory(() => (index.h(ShadowViewAddon.CheckboxFieldView, Object.assign({}, defaultProps$b, { states: {
|
|
10785
|
+
...defaultProps$b.states,
|
|
10665
10786
|
checked: true,
|
|
10666
10787
|
} }))));
|
|
10667
|
-
const CustomLabel = createHookStory(() => (index.h(ShadowViewAddon.CheckboxFieldView, Object.assign({}, defaultProps$
|
|
10668
|
-
...defaultProps$
|
|
10788
|
+
const CustomLabel = createHookStory(() => (index.h(ShadowViewAddon.CheckboxFieldView, Object.assign({}, defaultProps$b, { content: {
|
|
10789
|
+
...defaultProps$b.content,
|
|
10669
10790
|
checkboxLabel: "I Agree",
|
|
10670
10791
|
} }))));
|
|
10671
|
-
const Error$4 = createHookStory(() => (index.h(ShadowViewAddon.CheckboxFieldView, Object.assign({}, defaultProps$
|
|
10672
|
-
...defaultProps$
|
|
10792
|
+
const Error$4 = createHookStory(() => (index.h(ShadowViewAddon.CheckboxFieldView, Object.assign({}, defaultProps$b, { states: {
|
|
10793
|
+
...defaultProps$b.states,
|
|
10673
10794
|
registrationFormState: {
|
|
10674
10795
|
validationErrors: {
|
|
10675
10796
|
agree: "Must be checked",
|
|
10676
10797
|
},
|
|
10677
10798
|
},
|
|
10678
10799
|
} }))));
|
|
10679
|
-
const CustomError = createHookStory(() => (index.h(ShadowViewAddon.CheckboxFieldView, Object.assign({}, defaultProps$
|
|
10680
|
-
...defaultProps$
|
|
10800
|
+
const CustomError = createHookStory(() => (index.h(ShadowViewAddon.CheckboxFieldView, Object.assign({}, defaultProps$b, { states: {
|
|
10801
|
+
...defaultProps$b.states,
|
|
10681
10802
|
registrationFormState: {
|
|
10682
10803
|
validationErrors: {
|
|
10683
10804
|
agree: "Must be checked",
|
|
10684
10805
|
},
|
|
10685
10806
|
},
|
|
10686
10807
|
}, content: {
|
|
10687
|
-
...defaultProps$
|
|
10808
|
+
...defaultProps$b.content,
|
|
10688
10809
|
errorMessage: "This checkbox must be checked to continue",
|
|
10689
10810
|
} }))));
|
|
10690
|
-
const TermsAndConditions$
|
|
10811
|
+
const TermsAndConditions$2 = createHookStory(() => (index.h(ShadowViewAddon.PortalRegisterView, Object.assign({}, defaultRegisterProps, {
|
|
10691
10812
|
//@ts-ignore
|
|
10692
10813
|
content: {
|
|
10693
10814
|
...defaultRegisterProps.content,
|
|
@@ -10714,16 +10835,34 @@ const TermsAndConditionsLongCustomLabel = createHookStory(() => (index.h(ShadowV
|
|
|
10714
10835
|
const CheckboxField = /*#__PURE__*/Object.freeze({
|
|
10715
10836
|
__proto__: null,
|
|
10716
10837
|
'default': CheckboxField_stories,
|
|
10717
|
-
Default: Default$
|
|
10838
|
+
Default: Default$c,
|
|
10718
10839
|
DefaultChecked: DefaultChecked,
|
|
10719
10840
|
CustomLabel: CustomLabel,
|
|
10720
10841
|
Error: Error$4,
|
|
10721
10842
|
CustomError: CustomError,
|
|
10722
|
-
TermsAndConditions: TermsAndConditions$
|
|
10843
|
+
TermsAndConditions: TermsAndConditions$2,
|
|
10723
10844
|
TermsAndConditionsCustomLabel: TermsAndConditionsCustomLabel,
|
|
10724
10845
|
TermsAndConditionsLongCustomLabel: TermsAndConditionsLongCustomLabel
|
|
10725
10846
|
});
|
|
10726
10847
|
|
|
10848
|
+
const scenario$k = "@owner:zach\n@author:zach\nFeature: Marketing Emails Checkbox\n\n A checkbox that is used to opt in for referral program marketing emails.\n\n Background: A user is on the portal registration page\n Given a user is viewing the \"/register\"\n And \"/register\" contains the registration form\n And the registration form has the following fields\n | fields |\n | first name |\n | last name |\n | email |\n | password |\n | Marketing Emails Checkbox |\n \n @motivating\n Scenario: Checkbox is optional by default\n Given the user is filling out the registration form\n And the name fields have valid input\n And the email field has valid input\n And the password field has valid input\n And the checkbox is not checked\n When they try to register\n Then the form is submitted\n And there is no error for the checkbox\n\n Scenario: The form field name is provided by default\n Given the customer has added a marketing emails checkbox to their registration form\n Then the field name is automatically set to \"marketing-emails\"\n And the name is configurable \n\n\n\n ";
|
|
10849
|
+
|
|
10850
|
+
const MarketingEmailsCheckbox_stories = {
|
|
10851
|
+
title: "Components/Marketing Emails Checkbox",
|
|
10852
|
+
parameters: {
|
|
10853
|
+
scenario: scenario$k,
|
|
10854
|
+
},
|
|
10855
|
+
};
|
|
10856
|
+
const Default$d = () => {
|
|
10857
|
+
return index.h("sqm-marketing-emails-checkbox", null);
|
|
10858
|
+
};
|
|
10859
|
+
|
|
10860
|
+
const MarketingEmailsCheckbox = /*#__PURE__*/Object.freeze({
|
|
10861
|
+
__proto__: null,
|
|
10862
|
+
'default': MarketingEmailsCheckbox_stories,
|
|
10863
|
+
Default: Default$d
|
|
10864
|
+
});
|
|
10865
|
+
|
|
10727
10866
|
const UseCheckboxField_stories = {
|
|
10728
10867
|
title: "Hooks / useCheckboxField",
|
|
10729
10868
|
parameters: {
|
|
@@ -10753,7 +10892,7 @@ function setupGraphQL$9() {
|
|
|
10753
10892
|
}, []);
|
|
10754
10893
|
return { id, accountId };
|
|
10755
10894
|
}
|
|
10756
|
-
const TermsAndConditions$
|
|
10895
|
+
const TermsAndConditions$3 = createHookStory(() => {
|
|
10757
10896
|
setupGraphQL$9();
|
|
10758
10897
|
return (index.h("sqm-portal-register", null,
|
|
10759
10898
|
index.h("div", { slot: "terms" },
|
|
@@ -10791,7 +10930,7 @@ const MissingName = createHookStory(() => {
|
|
|
10791
10930
|
const UseCheckboxField = /*#__PURE__*/Object.freeze({
|
|
10792
10931
|
__proto__: null,
|
|
10793
10932
|
'default': UseCheckboxField_stories,
|
|
10794
|
-
TermsAndConditions: TermsAndConditions$
|
|
10933
|
+
TermsAndConditions: TermsAndConditions$3,
|
|
10795
10934
|
TermsAndConditionsWithLabel: TermsAndConditionsWithLabel,
|
|
10796
10935
|
MultipleCheckboxes: MultipleCheckboxes,
|
|
10797
10936
|
OptionalCheckboxes: OptionalCheckboxes,
|
|
@@ -10801,7 +10940,7 @@ const UseCheckboxField = /*#__PURE__*/Object.freeze({
|
|
|
10801
10940
|
const DropdownField_stories = {
|
|
10802
10941
|
title: "Components/Dropdown Field",
|
|
10803
10942
|
};
|
|
10804
|
-
const defaultProps$
|
|
10943
|
+
const defaultProps$c = {
|
|
10805
10944
|
states: {
|
|
10806
10945
|
registrationFormState: {},
|
|
10807
10946
|
},
|
|
@@ -10816,24 +10955,24 @@ const defaultProps$b = {
|
|
|
10816
10955
|
],
|
|
10817
10956
|
},
|
|
10818
10957
|
};
|
|
10819
|
-
const Default$
|
|
10820
|
-
const CustomLabel$1 = createHookStory(() => (index.h(ShadowViewAddon.DropdownFieldView, Object.assign({}, defaultProps$
|
|
10821
|
-
...defaultProps$
|
|
10958
|
+
const Default$e = createHookStory(() => (index.h(ShadowViewAddon.DropdownFieldView, Object.assign({}, defaultProps$c))));
|
|
10959
|
+
const CustomLabel$1 = createHookStory(() => (index.h(ShadowViewAddon.DropdownFieldView, Object.assign({}, defaultProps$c, { content: {
|
|
10960
|
+
...defaultProps$c.content,
|
|
10822
10961
|
dropdownLabel: "Pick your favorite",
|
|
10823
10962
|
} }))));
|
|
10824
|
-
const Error$5 = createHookStory(() => (index.h(ShadowViewAddon.DropdownFieldView, Object.assign({}, defaultProps$
|
|
10825
|
-
...defaultProps$
|
|
10963
|
+
const Error$5 = createHookStory(() => (index.h(ShadowViewAddon.DropdownFieldView, Object.assign({}, defaultProps$c, { states: {
|
|
10964
|
+
...defaultProps$c.states,
|
|
10826
10965
|
registrationFormState: {
|
|
10827
10966
|
validationErrors: {
|
|
10828
10967
|
options: "Must select an option",
|
|
10829
10968
|
},
|
|
10830
10969
|
},
|
|
10831
10970
|
} }))));
|
|
10832
|
-
const CustomError$1 = createHookStory(() => (index.h(ShadowViewAddon.DropdownFieldView, Object.assign({}, defaultProps$
|
|
10833
|
-
...defaultProps$
|
|
10971
|
+
const CustomError$1 = createHookStory(() => (index.h(ShadowViewAddon.DropdownFieldView, Object.assign({}, defaultProps$c, { content: {
|
|
10972
|
+
...defaultProps$c.content,
|
|
10834
10973
|
errorMessage: "An option must be selected to continue",
|
|
10835
10974
|
}, states: {
|
|
10836
|
-
...defaultProps$
|
|
10975
|
+
...defaultProps$c.states,
|
|
10837
10976
|
registrationFormState: {
|
|
10838
10977
|
validationErrors: {
|
|
10839
10978
|
options: "Must select an option",
|
|
@@ -10844,7 +10983,7 @@ const CustomError$1 = createHookStory(() => (index.h(ShadowViewAddon.DropdownFie
|
|
|
10844
10983
|
const DropdownField = /*#__PURE__*/Object.freeze({
|
|
10845
10984
|
__proto__: null,
|
|
10846
10985
|
'default': DropdownField_stories,
|
|
10847
|
-
Default: Default$
|
|
10986
|
+
Default: Default$e,
|
|
10848
10987
|
CustomLabel: CustomLabel$1,
|
|
10849
10988
|
Error: Error$5,
|
|
10850
10989
|
CustomError: CustomError$1
|
|
@@ -10909,15 +11048,15 @@ const UseDropdownField = /*#__PURE__*/Object.freeze({
|
|
|
10909
11048
|
MissingName: MissingName$1
|
|
10910
11049
|
});
|
|
10911
11050
|
|
|
10912
|
-
const scenario$
|
|
11051
|
+
const scenario$l = "@author:derek\n@owner:derek\nFeature: Form Input Field\n\n This component is used as a custom registration field during registration. The field can be text,\n a date or phone number. A motivating use case is to ask for a users company name, this value would then be mapped\n through the Managed Identity Service and upserted on the user after registration.\n\n Background: A user exists and is viewing the hosted portal registration\n Given a user is viewing \"/register\"\n And \"/register\" contains the registration form\n And the registration form has a custom input field\n\n @motivating\n Scenario Outline: Input fields are required by default but can be optional\n Given the input has prop \"field-optional\" with <value>\n And the input is empty\n When the user tries to register\n Then the input <mayBe> highlighted in red\n And an error message <mayAppear> in red below\n And form submission <mayBe> blocked\n Examples:\n | value | mayBe | mayAppear |\n | false | is | appears |\n | | is | appears |\n | true | isn't | doesn't appear |\n\n @motivating\n Scenario: Input field labels are configurable\n Given the input has prop \"field-label\" with value \"My Custom Input\"\n When the user views the registration form\n Then they see the input field\n And it has label \"My Custom Input\" above the input\n\n @minutia\n Scenario Outline: The validation error message is configurable\n The error message string is evaluated as an ICU string, but currently is provided no context\n Given the input is required\n And it has prop \"error-message\" with <value>\n When the user tries to register\n But they haven't filled in the input\n Then they see <errorMessage> below\n Examples:\n | value | errorMessage |\n | | Cannot be empty |\n | My Custom Message | My Custom Message |\n\n @motivating\n Scenario: Form data attribute name is configurable\n Given the input has prop \"field-name\" with value \"myCustomField\"\n When the user types \"testing testing\" into the input\n And they register\n Then \"testing testing\" is submitted under \"myCustomField\" in the form data\n\n @motivating\n Scenario Outline: The input field is a text input by default\n Given the input <mayHave> prop \"field-type\" with <value>\n When the user views the input field\n Then it is a text input\n Examples:\n | mayHave | value |\n | has | text |\n | doesn't have | |\n\n @motivating\n Scenario: Date type inputs are supported\n Given the input has prop \"field-type\" \"date\"\n When the user views the input field\n Then they see \"mm/dd/yyyy\" as a placeholder\n And they see a calendar icon on the right\n When they start typing a date\n Then it maintains the \"mm/dd/yyyy\" format\n When they click the calendar icon\n Then a dropdown appears\n And they see a calendar\n When they select a date\n Then it is applied to the input\n\n @landmine\n Scenario: The clear text button in the date picker does not clear the date\n Due to an incompatibility between our shoelace version and the browser, the clear funtionality is not supported currently\n Given the input has prop \"field-type\" \"date\"\n And the user has entered a date\n When they click the calendar icon\n And click the 'clear' text button\n Then their selected date is not cleared\n\n @motivating\n Scenario: Phone number type inputs are supported\n Given the input has prop \"field-type\" with value \"tel\"\n When the user starts typing a phone number in the input\n Then it is formatted into the following form \"(XXX) XXX-XXXX\"\n When they pre-fix their phone number with a \"1\"\n Then it is formatted into the following form \"1 (XXX) XXX-XXXX\"\n\n @landmine\n Scenario: Telephone formatting is removed after 10 numbers\n Given a user using a phone number input field\n And they entered their 10 character phone number\n And it was not prefixed with a 1\n When they add another character\n Then the formatting is removed\n\n @landmine\n Scenario Outline: Input values are always recorded as strings in the form data\n Given the input has prop \"field-type\" with <value>\n And it has a \"field-name\"\n When the user inputs <formInput>\n And they register\n Then <formData> is recorded in the form data as a string\n Examples:\n | value | formInput | formData |\n | text | Hello there | Hello there |\n | date | 05/07/2021 | 2021-05-07 |\n | tel | (250) 234-9877 | (250) 234-9877 |\n\n @minutia\n Scenario Outline: The input field component fails fast if a field name isn't provided\n Given the input <mayHave> prop \"field-name\"\n And it <mayHavePropValue>\n When a user views the input\n Then an alert with an error message is displayed in place of the input\n And it has a details section\n When \"More details\" is clicked\n Then the following information is displayed\n | information |\n | component being used |\n | missing attribute(s) |\n Examples:\n | mayBeAnAttribute | mayHavePropValue |\n | doesn't have | N/A |\n | has | \"\" |\n | has | |";
|
|
10913
11052
|
|
|
10914
11053
|
const InputField_stories = {
|
|
10915
11054
|
title: "Components/Input Field",
|
|
10916
11055
|
parameters: {
|
|
10917
|
-
scenario: scenario$
|
|
11056
|
+
scenario: scenario$l,
|
|
10918
11057
|
},
|
|
10919
11058
|
};
|
|
10920
|
-
const defaultProps$
|
|
11059
|
+
const defaultProps$d = {
|
|
10921
11060
|
states: {
|
|
10922
11061
|
registrationFormState: {
|
|
10923
11062
|
validationErrors: {},
|
|
@@ -10954,21 +11093,21 @@ const defaultRegisterProps$1 = {
|
|
|
10954
11093
|
invalidEmailErrorMessage: "Must be a valid email address",
|
|
10955
11094
|
},
|
|
10956
11095
|
};
|
|
10957
|
-
const Default$
|
|
10958
|
-
const CustomLabel$2 = () => (index.h(ShadowViewAddon.InputFieldView, Object.assign({}, defaultProps$
|
|
10959
|
-
const Error$6 = () => (index.h(ShadowViewAddon.InputFieldView, Object.assign({}, defaultProps$
|
|
10960
|
-
...defaultProps$
|
|
11096
|
+
const Default$f = () => index.h(ShadowViewAddon.InputFieldView, Object.assign({}, defaultProps$d));
|
|
11097
|
+
const CustomLabel$2 = () => (index.h(ShadowViewAddon.InputFieldView, Object.assign({}, defaultProps$d, { content: { ...defaultProps$d.content, fieldLabel: "My Label" } })));
|
|
11098
|
+
const Error$6 = () => (index.h(ShadowViewAddon.InputFieldView, Object.assign({}, defaultProps$d, { states: {
|
|
11099
|
+
...defaultProps$d.states,
|
|
10961
11100
|
registrationFormState: {
|
|
10962
11101
|
validationErrors: {
|
|
10963
11102
|
field: "Cannot be empty",
|
|
10964
11103
|
},
|
|
10965
11104
|
},
|
|
10966
11105
|
} })));
|
|
10967
|
-
const CustomError$2 = () => (index.h(ShadowViewAddon.InputFieldView, Object.assign({}, defaultProps$
|
|
10968
|
-
...defaultProps$
|
|
11106
|
+
const CustomError$2 = () => (index.h(ShadowViewAddon.InputFieldView, Object.assign({}, defaultProps$d, { content: {
|
|
11107
|
+
...defaultProps$d.content,
|
|
10969
11108
|
errorMessage: "A value must be entered to continue",
|
|
10970
11109
|
}, states: {
|
|
10971
|
-
...defaultProps$
|
|
11110
|
+
...defaultProps$d.states,
|
|
10972
11111
|
registrationFormState: {
|
|
10973
11112
|
validationErrors: {
|
|
10974
11113
|
field: "Cannot be empty",
|
|
@@ -10976,27 +11115,27 @@ const CustomError$2 = () => (index.h(ShadowViewAddon.InputFieldView, Object.assi
|
|
|
10976
11115
|
},
|
|
10977
11116
|
} })));
|
|
10978
11117
|
const DateType = () => {
|
|
10979
|
-
return (index.h(ShadowViewAddon.InputFieldView, Object.assign({}, defaultProps$
|
|
10980
|
-
...defaultProps$
|
|
11118
|
+
return (index.h(ShadowViewAddon.InputFieldView, Object.assign({}, defaultProps$d, { content: {
|
|
11119
|
+
...defaultProps$d.content,
|
|
10981
11120
|
fieldLabel: "Date",
|
|
10982
11121
|
fieldType: "date",
|
|
10983
11122
|
} })));
|
|
10984
11123
|
};
|
|
10985
11124
|
const TelType = () => {
|
|
10986
|
-
return (index.h(ShadowViewAddon.InputFieldView, Object.assign({}, defaultProps$
|
|
10987
|
-
...defaultProps$
|
|
11125
|
+
return (index.h(ShadowViewAddon.InputFieldView, Object.assign({}, defaultProps$d, { content: {
|
|
11126
|
+
...defaultProps$d.content,
|
|
10988
11127
|
fieldLabel: "Phone Number",
|
|
10989
11128
|
fieldType: "tel",
|
|
10990
11129
|
} })));
|
|
10991
11130
|
};
|
|
10992
11131
|
const RegistrationField = () => (index.h(ShadowViewAddon.PortalRegisterView, Object.assign({}, defaultRegisterProps$1, { content: {
|
|
10993
11132
|
...defaultRegisterProps$1.content,
|
|
10994
|
-
formData: index.h(ShadowViewAddon.InputFieldView, Object.assign({}, defaultProps$
|
|
11133
|
+
formData: index.h(ShadowViewAddon.InputFieldView, Object.assign({}, defaultProps$d)),
|
|
10995
11134
|
} })));
|
|
10996
11135
|
const RegistrationFieldCustomLabel = () => (index.h(ShadowViewAddon.PortalRegisterView, Object.assign({}, defaultRegisterProps$1, { content: {
|
|
10997
11136
|
...defaultRegisterProps$1.content,
|
|
10998
|
-
formData: (index.h(ShadowViewAddon.InputFieldView, Object.assign({}, defaultProps$
|
|
10999
|
-
...defaultProps$
|
|
11137
|
+
formData: (index.h(ShadowViewAddon.InputFieldView, Object.assign({}, defaultProps$d, { content: {
|
|
11138
|
+
...defaultProps$d.content,
|
|
11000
11139
|
fieldLabel: "Data",
|
|
11001
11140
|
} }))),
|
|
11002
11141
|
} })));
|
|
@@ -11004,7 +11143,7 @@ const RegistrationFieldCustomLabel = () => (index.h(ShadowViewAddon.PortalRegist
|
|
|
11004
11143
|
const InputField = /*#__PURE__*/Object.freeze({
|
|
11005
11144
|
__proto__: null,
|
|
11006
11145
|
'default': InputField_stories,
|
|
11007
|
-
Default: Default$
|
|
11146
|
+
Default: Default$f,
|
|
11008
11147
|
CustomLabel: CustomLabel$2,
|
|
11009
11148
|
Error: Error$6,
|
|
11010
11149
|
CustomError: CustomError$2,
|
|
@@ -11017,7 +11156,7 @@ const InputField = /*#__PURE__*/Object.freeze({
|
|
|
11017
11156
|
const UseInputField_stories = {
|
|
11018
11157
|
title: "Hooks / useInputField",
|
|
11019
11158
|
parameters: {
|
|
11020
|
-
scenario: scenario$
|
|
11159
|
+
scenario: scenario$l,
|
|
11021
11160
|
},
|
|
11022
11161
|
};
|
|
11023
11162
|
function setupGraphQL$b() {
|
|
@@ -11099,12 +11238,12 @@ const UseInputField = /*#__PURE__*/Object.freeze({
|
|
|
11099
11238
|
MissingName: MissingName$2
|
|
11100
11239
|
});
|
|
11101
11240
|
|
|
11102
|
-
const scenario$l = "@author:derek\n@owner:derek\nFeature: Reward Exchange List\n\n The Reward Exchange List gives end users the power to exchange their rewards for other rewards.\n It populates a list from the reward exchange rules set up on a given tenant.\n\n Background:\n Given a tenant with reward exchange rules\n\n @motivating\n @ui\n Scenario: The empty state is shown if there are no visible exchanges\n Given a user with no visible exchanges\n When they view the reward exchange\n Then no exchange options are displayed\n And they see an image of a present\n And \"Redeem Rewards\" in bold\n And \"Use your points to redeem rewards once they become available\" below the bolded text\n And the pagination buttons are disabled\n\n @minutia\n @ui\n Scenario: A custom empty state can be provided\n Given a user with no visible exchanges\n And a custom empty state has been supplied in the \"empty\" slot\n When they view the reward exchange\n Then they see the custom empty state\n\n @motivating\n @ui\n Scenario: A Loading Skeleton is displayed when the reward exchange rules are loading\n Given a user\n When they load the reward exchange list\n Then they see a loading Skeleton\n And it has 8 skeleton cards\n When the reward exchange rules have loaded\n Then the skeleton is replaced with reward exchange options\n\n @motivating\n Scenario: An error banner appears when the reward exchange list fails to load\n Given a user trying to view the reward exchange list\n But it fails to load\n Then an error banner is displayed\n And it displays \"Unable to load reward exchange list. Please try again\"\n\n @motivating\n @ui\n Scenario: The exchange progress bar progresses through the exchange process\n Given a user who is eligible for the tenants reward exchange rules\n When they view the reward exchange list\n Then the process bar displays the following elements\n | elements |\n | Step 1 `Rewards` title in black |\n | Step 1 circle with green outline, white fill and number 1 in green |\n | Step 2 `Select` title in grey |\n | Step 2 circle with grey fill and number 2 in white |\n | Step 3 `Confirm` title in grey |\n | Step 3 circle with grey fill and number 3 in white |\n | lines between all steps are greyed out |\n When they continue to the selection page\n Then the progress bar displays the following elements\n | elements |\n | Step 1 `Rewards` title in black |\n | Step 1 circle with white checkmark and green fill |\n | Step 2 `Select` title in black |\n | Step 2 circle with green outline, white fill and number 2 in green |\n | Step 3 `Confirm` title in grey |\n | Step 3 circle with grey fill and number 3 in white |\n | Green line between step 1 and 2 |\n | Grey line between step 2 and 3 |\n When they continue to the confirmation page\n Then the progress bar displays the following elements\n | elements |\n | Step 1 `Rewards` title in black |\n | Step 1 circle with white checkmark and green fill |\n | Step 2 `Select` title in black |\n | Step 2 circle with white checkmark and green fill |\n | Step 3 `Confirm` title in black |\n | Step 3 circle with green outline, white fill and number 3 in green |\n | Green line between all steps |\n When they continue to the redemption page\n Then the progress bar displays the following elements\n | elements |\n | Step 1 `Rewards` title in black |\n | Step 1 circle with white checkmark and green fill |\n | Step 2 `Select` title in black |\n | Step 2 circle with white checkmark and green fill |\n | Step 3 `Confirm` title in black |\n | Step 3 circle with white checkmark and green fill |\n | Green line between all steps |\n\n @motivating\n Scenario: Users must choose a reward exchange option to continue to the selection page\n Given a user who is eligible for the tenants reward exchange rules\n When they view the reward exchange list\n Then the 'Continue' button is disabled\n When they select a reward exchange card\n Then the card is outlined in brand colour with a brand colour cirlcular check box icon in the top right\n And the continue button is no longer disabled\n When they click \"Continue\"\n Then they are brought to the selection page\n\n @motivating\n @ui\n Scenario: Reward exchange rule names and images are used in the reward exchange cards\n Given a tenant reward exchange rule\n And it has name \"My Visa Exchange Rule\"\n And it has an image\n When a user views the reward exchange list\n Then they see a exchange card with title \"My Visa Exchange Rule\"\n And the exchange image on the left hand side of the card\n\n @motivating\n Scenario Outline: Reward exchange source values are displayed on reward exchange cards\n Given a <type> reward exchange rule\n When a user views the reward exchange list\n Then they see <text> under the name on the exchange option cards\n And the pretty values are localized to a user locale\n Examples:\n | type | text |\n | FIXED_GLOBAL_REWARD | the exchange source pretty value |\n | STEPPED_FIXED_GLOBAL_REWARD | the exchange source min pretty value to the source max pretty value |\n | VARIABLE_GLOBAL_REWARD | the exchange source min pretty value to the source max pretty value |\n | VARIABLE_CREDIT_REWARD | the exchange source min pretty value to the source max pretty value |\n\n @motivating\n Scenario Outline: Reward exchange cards can display customized error messages\n Given a reward exchange rule\n And it has <availabilityPredicate>\n And the reward exchange list has prop \"not-available-error\" with <value>\n When the user views the reward exchange list\n Then the card for the reward exchange rule is disabled\n And <message> is displayed\n Examples:\n | availabilityPredicate | value | message |\n | 'champion' in user.segments ? \"NOT_CHAMPION\" : true | {unavailableReasonCode, select, NOT_CHAMPION {Sorry must be a champion!} other {unavailableReasonCode} } | Sorry must be a champion! |\n | user.customFields.purchaseCount < 10 ? \"MORE_PURCHASE\" : true | {unavailableReasonCode, select, MORE_PURCHASE {Complete 10 purchases to unlock} other {unavailableReasonCode} } | Complete 10 purchases to unlock |\n\n @motivating\n Scenario: Exchange options are disabled if they put a user over the W9 limit\n Given a user who is approaching their W9 limit\n And a reward exchange rule\n And its destination reward has a US taxable value that would put the user over their limit\n When they view the reward exchange list\n Then the reward exchange card is disabled\n And a \"US Tax Limit\" error message is displayed on to the right of a exclamation triangle icon\n And the text is orange\n And the icon is orange\n\n @motivating\n Scenario Outline: Exchange options are disabled if a users lacks enough credit to redeem\n Given a <type> reward exchange rule\n But the user lacks enough credit to exchange for it\n When they view the reward exchange list\n Then the reward exchange card is disabled\n And a <text> error message is displayed on to the right of a exclamation triangle icon\n And the text is orange\n And the icon is orange\n Examples:\n | type | text |\n | FIXED_GLOBAL_REWARD | {prettySourceValue} required |\n | STEPPED_FIXED_GLOBAL_REWARD | {prettySourceMinValue} required |\n | VARIABLE_GLOBAL_REWARD | {prettySourceMinValue} required |\n | VARIABLE_CREDIT_REWARD | {prettySourceMinValue} required |\n\n @motivating\n Scenario: Users can go back to the Rewards page from the Select page\n Given a user viewing the Select page\n Then they see a \"Cancel\" text button\n And a \"Continue to confirmation\" brand colour button in the bottom right corner\n When they click \"Cancel\"\n Then they return to the Rewards page\n\n @motivating\n Scenario: Users can go back to the Select Page from the Confirm page\n Given a user viewing the Confirm page\n Then they see a \"Back\" text button\n And a \"Redeem\" brand colour button in the bottom right corner\n When they click \"Back\"\n Then they return to the Select Page\n\n @motivating\n Scenario: Reward rules with visibility predicates that evaluates to false are not shown\n Given a tenant reward exchange rule with visibility predicates that evaluates to false\n When a user views the reward exchange list\n Then they do not see the card for that reward exchange rule\n\n @motivating\n Scenario Outline: Users can choose their reward option for variable rewards on the Select page\n Given a <type> exchange rule\n And it has the following fields\n | fields |\n | name |\n | description |\n | image |\n When a user views the reward exchange list\n And they progress to the Select page for this exchange\n Then they see the exchange rule image on the left hand side\n And on the right hand side they see the following in this order from top to bottom\n | elements |\n | exchange name |\n | exchange description |\n | select list with all exchange options using pretty values, destination reward above source reward |\n Examples:\n | type |\n | STEPPED_FIXED_GLOBAL_REWARD |\n | VARIABLE_GLOBAL_REWARD |\n | VARIABLE_CREDIT_REWARD |\n\n @motivating\n Scenario: Users who selected a fixed exchange rule see exchange information on the Select page\n Given a \"FIXED_GLOBAL_REWARD\" exchange rule\n And it has the following fields\n | fields |\n | name |\n | description |\n | image |\n When a user views the reward exchange list\n And they progress to the Select page for this exchange\n Then they see the exchange rule image on the left hand side\n And on the right hand side they see the following in this order from top to bottom\n | elements |\n | exchange name |\n | exchange source pretty value displayed in brand colour |\n | exchange description |\n\n @motivating\n Scenario Outline: Users selection variable rewards can only select rewards they are eligible to exchange for\n Given a <type> exchange rule\n When a user views the reward exchange list\n And they progress to the Select page for this exchange\n Then they see a drop down with all the reward exchange selections\n When they click on the drop down\n But they are not eligible for all of the exchanges options <dueToReason>\n Then the ineligble options are disabled\n And under the source value is <text>\n Examples:\n | type | dueToReason | text |\n | STEPPED_FIXED_GLOBAL_REWARD | due to insufficent source value | {prettySourceValue} required |\n | VARIABLE_GLOBAL_REWARD | due to insufficent source value | {prettySourceValue} required |\n | VARIABLE_CREDIT_REWARD | due to insufficent source value | {prettySourceValue} required |\n | STEPPED_FIXED_GLOBAL_REWARD | W9 | US Tax Limit |\n | VARIABLE_GLOBAL_REWARD | W9 | US Tax Limit |\n | VARIABLE_CREDIT_REWARD | W9 | US Tax Limit |\n\n @motivating\n Scenario Outline: The Confirm page allows users to view their exchange before committing\n Given a <type> exchange rule\n When a user views the reward exchange list\n And they select the exchange\n And they progress to Confirm page\n Then they see a row with title \"Reward\"\n And it contains the exchange name\n And it contains the exchange image\n And they <maySee> a row with title \"Reward Amount\"\n And it <mayContain> <amountTitle>\n And they see a row with title \"Cost to Redeem\"\n And it contains the source reward pretty value in bolded text\n Examples:\n | type | maySee | mayContain | amountTitle |\n | FIXED_GLOBAL_REWARD | don't | doesn't contain | N/A |\n | VARIABLE_GLOBAL_REWARD | see | contains | the pretty destination value |\n | STEPPED_FIXED_GLOBAL_REWARD | see | contains | the pretty destination value |\n | VARIABLE_CREDIT_REWARD | see | contains | the pretty destination value |\n\n @motivating\n Scenario: An error banner is displayed if an error occurs during redemeption\n Given a user has selected a reward to exchange\n And is on the confirmation page\n When they click \"Redeem\"\n But an error occurs\n Then an error banner appears\n And it contains details about the error\n And the reward exchange is not completed\n\n @motivating\n Scenario: Confetti is displayed when a reward exchange succeeds\n Given a user has selected a reward to exchange\n And they are on the confirmation page\n When they click \"Redeem\"\n And the exchange is successful\n Then they see confetti centered on the success page\n And they see text describing what they exchanged for their new reward\n And they see a \"Done\" brand colour button\n When they click \"Done\"\n Then they see the Rewards page\n\n @motivating\n Scenario: Fuel tank codes are shown when a reward exchange succeeds\n Given a user has selected to exchange for a fuel tank reward\n When they complete the reward exchange\n And are on the success page\n Then they see a textbox with their fuel tank code\n And a clipboard icon\n When they click the clipboard icon\n Then their fuel tank code is copied to their clipboard\n\n @motivating\n Scenario Outline: Users can exchange for any type of reward\n Given a <type> reward exchange rule for a <reward>\n And a user who has enough source credit to exchange for the reward\n When they go through the exchange flow\n And exchange for their reward\n Then their credit is exchanged for the <reward>\n Examples:\n | type | reward |\n | FIXED_GLOBAL_REWARD | gift card |\n | FIXED_GLOBAL_REWARD | fuel tank code |\n | FIXED_GLOBAL_REWARD | discount |\n | FIXED_GLOBAL_REWARD | credit reward |\n | STEPPED_FIXED_GLOBAL_REWARD | gift card |\n | STEPPED_FIXED_GLOBAL_REWARD | discount |\n | STEPPED_FIXED_GLOBAL_REWARD | credit reward |\n | VARIABLE_GLOBAL_REWARD | gift card |\n | VARIABLE_GLOBAL_REWARD | discount |\n | VARIABLE_GLOBAL_REWARD | credit reward |\n | VARIABLE_CREDIT_REWARD | credit reward |";
|
|
11241
|
+
const scenario$m = "@author:derek\n@owner:derek\nFeature: Reward Exchange List\n\n The Reward Exchange List gives end users the power to exchange their rewards for other rewards.\n It populates a list from the reward exchange rules set up on a given tenant.\n\n Background:\n Given a tenant with reward exchange rules\n\n @motivating\n @ui\n Scenario: The empty state is shown if there are no visible exchanges\n Given a user with no visible exchanges\n When they view the reward exchange\n Then no exchange options are displayed\n And they see an image of a present\n And \"Redeem Rewards\" in bold\n And \"Use your points to redeem rewards once they become available\" below the bolded text\n And the pagination buttons are disabled\n\n @minutia\n @ui\n Scenario: A custom empty state can be provided\n Given a user with no visible exchanges\n And a custom empty state has been supplied in the \"empty\" slot\n When they view the reward exchange\n Then they see the custom empty state\n\n @motivating\n @ui\n Scenario: A Loading Skeleton is displayed when the reward exchange rules are loading\n Given a user\n When they load the reward exchange list\n Then they see a loading Skeleton\n And it has 8 skeleton cards\n When the reward exchange rules have loaded\n Then the skeleton is replaced with reward exchange options\n\n @motivating\n Scenario: An error banner appears when the reward exchange list fails to load\n Given a user trying to view the reward exchange list\n But it fails to load\n Then an error banner is displayed\n And it displays \"Unable to load reward exchange list. Please try again\"\n\n @motivating\n @ui\n Scenario: The exchange progress bar progresses through the exchange process\n Given a user who is eligible for the tenants reward exchange rules\n When they view the reward exchange list\n Then the process bar displays the following elements\n | elements |\n | Step 1 `Rewards` title in black |\n | Step 1 circle with green outline, white fill and number 1 in green |\n | Step 2 `Select` title in grey |\n | Step 2 circle with grey fill and number 2 in white |\n | Step 3 `Confirm` title in grey |\n | Step 3 circle with grey fill and number 3 in white |\n | lines between all steps are greyed out |\n When they continue to the selection page\n Then the progress bar displays the following elements\n | elements |\n | Step 1 `Rewards` title in black |\n | Step 1 circle with white checkmark and green fill |\n | Step 2 `Select` title in black |\n | Step 2 circle with green outline, white fill and number 2 in green |\n | Step 3 `Confirm` title in grey |\n | Step 3 circle with grey fill and number 3 in white |\n | Green line between step 1 and 2 |\n | Grey line between step 2 and 3 |\n When they continue to the confirmation page\n Then the progress bar displays the following elements\n | elements |\n | Step 1 `Rewards` title in black |\n | Step 1 circle with white checkmark and green fill |\n | Step 2 `Select` title in black |\n | Step 2 circle with white checkmark and green fill |\n | Step 3 `Confirm` title in black |\n | Step 3 circle with green outline, white fill and number 3 in green |\n | Green line between all steps |\n When they continue to the redemption page\n Then the progress bar displays the following elements\n | elements |\n | Step 1 `Rewards` title in black |\n | Step 1 circle with white checkmark and green fill |\n | Step 2 `Select` title in black |\n | Step 2 circle with white checkmark and green fill |\n | Step 3 `Confirm` title in black |\n | Step 3 circle with white checkmark and green fill |\n | Green line between all steps |\n\n @motivating\n Scenario: Users must choose a reward exchange option to continue to the selection page\n Given a user who is eligible for the tenants reward exchange rules\n When they view the reward exchange list\n Then the 'Continue' button is disabled\n When they select a reward exchange card\n Then the card is outlined in brand colour with a brand colour cirlcular check box icon in the top right\n And the continue button is no longer disabled\n When they click \"Continue\"\n Then they are brought to the selection page\n\n @motivating\n @ui\n Scenario: Reward exchange rule names and images are used in the reward exchange cards\n Given a tenant reward exchange rule\n And it has name \"My Visa Exchange Rule\"\n And it has an image\n When a user views the reward exchange list\n Then they see a exchange card with title \"My Visa Exchange Rule\"\n And the exchange image on the left hand side of the card\n\n @motivating\n Scenario Outline: Reward exchange source values are displayed on reward exchange cards\n Given a <type> reward exchange rule\n When a user views the reward exchange list\n Then they see <text> under the name on the exchange option cards\n And the pretty values are localized to a user locale\n Examples:\n | type | text |\n | FIXED_GLOBAL_REWARD | the exchange source pretty value |\n | STEPPED_FIXED_GLOBAL_REWARD | the exchange source min pretty value to the source max pretty value |\n | VARIABLE_GLOBAL_REWARD | the exchange source min pretty value to the source max pretty value |\n | VARIABLE_CREDIT_REWARD | the exchange source min pretty value to the source max pretty value |\n\n @motivating\n Scenario Outline: Reward exchange cards can display customized error messages\n Given a reward exchange rule\n And it has <availabilityPredicate>\n And the reward exchange list has prop \"not-available-error\" with <value>\n When the user views the reward exchange list\n Then the card for the reward exchange rule is disabled\n And <message> is displayed\n Examples:\n | availabilityPredicate | value | message |\n | 'champion' in user.segments ? \"NOT_CHAMPION\" : true | {unavailableReasonCode, select, NOT_CHAMPION {Sorry must be a champion!} other {unavailableReasonCode} } | Sorry must be a champion! |\n | user.customFields.purchaseCount < 10 ? \"MORE_PURCHASE\" : true | {unavailableReasonCode, select, MORE_PURCHASE {Complete 10 purchases to unlock} other {unavailableReasonCode} } | Complete 10 purchases to unlock |\n\n @motivating\n Scenario: Exchange options are disabled if they put a user over the W9 limit\n Given a user who is approaching their W9 limit\n And a reward exchange rule\n And its destination reward has a US taxable value that would put the user over their limit\n When they view the reward exchange list\n Then the reward exchange card is disabled\n And a \"US Tax Limit\" error message is displayed on to the right of a exclamation triangle icon\n And the text is orange\n And the icon is orange\n\n @motivating\n Scenario Outline: Exchange options are disabled if a users lacks enough credit to redeem\n Given a <type> reward exchange rule\n But the user lacks enough credit to exchange for it\n When they view the reward exchange list\n Then the reward exchange card is disabled\n And a <text> error message is displayed on to the right of a exclamation triangle icon\n And the text is orange\n And the icon is orange\n Examples:\n | type | text |\n | FIXED_GLOBAL_REWARD | {prettySourceValue} required |\n | STEPPED_FIXED_GLOBAL_REWARD | {prettySourceMinValue} required |\n | VARIABLE_GLOBAL_REWARD | {prettySourceMinValue} required |\n | VARIABLE_CREDIT_REWARD | {prettySourceMinValue} required |\n\n @motivating\n Scenario: Users can go back to the Rewards page from the Select page\n Given a user viewing the Select page\n Then they see a \"Cancel\" text button\n And a \"Continue to confirmation\" brand colour button in the bottom right corner\n When they click \"Cancel\"\n Then they return to the Rewards page\n\n @motivating\n Scenario: Users can go back to the Select Page from the Confirm page\n Given a user viewing the Confirm page\n Then they see a \"Back\" text button\n And a \"Redeem\" brand colour button in the bottom right corner\n When they click \"Back\"\n Then they return to the Select Page\n\n @motivating\n Scenario: Reward rules with visibility predicates that evaluates to false are not shown\n Given a tenant reward exchange rule with visibility predicates that evaluates to false\n When a user views the reward exchange list\n Then they do not see the card for that reward exchange rule\n\n @motivating\n Scenario Outline: Users can choose their reward option for variable rewards on the Select page\n Given a <type> exchange rule\n And it has the following fields\n | fields |\n | name |\n | description |\n | image |\n When a user views the reward exchange list\n And they progress to the Select page for this exchange\n Then they see the exchange rule image on the left hand side\n And on the right hand side they see the following in this order from top to bottom\n | elements |\n | exchange name |\n | exchange description |\n | select list with all exchange options using pretty values, destination reward above source reward |\n Examples:\n | type |\n | STEPPED_FIXED_GLOBAL_REWARD |\n | VARIABLE_GLOBAL_REWARD |\n | VARIABLE_CREDIT_REWARD |\n\n @motivating\n Scenario: Users who selected a fixed exchange rule see exchange information on the Select page\n Given a \"FIXED_GLOBAL_REWARD\" exchange rule\n And it has the following fields\n | fields |\n | name |\n | description |\n | image |\n When a user views the reward exchange list\n And they progress to the Select page for this exchange\n Then they see the exchange rule image on the left hand side\n And on the right hand side they see the following in this order from top to bottom\n | elements |\n | exchange name |\n | exchange source pretty value displayed in brand colour |\n | exchange description |\n\n @motivating\n Scenario Outline: Users selection variable rewards can only select rewards they are eligible to exchange for\n Given a <type> exchange rule\n When a user views the reward exchange list\n And they progress to the Select page for this exchange\n Then they see a drop down with all the reward exchange selections\n When they click on the drop down\n But they are not eligible for all of the exchanges options <dueToReason>\n Then the ineligble options are disabled\n And under the source value is <text>\n Examples:\n | type | dueToReason | text |\n | STEPPED_FIXED_GLOBAL_REWARD | due to insufficent source value | {prettySourceValue} required |\n | VARIABLE_GLOBAL_REWARD | due to insufficent source value | {prettySourceValue} required |\n | VARIABLE_CREDIT_REWARD | due to insufficent source value | {prettySourceValue} required |\n | STEPPED_FIXED_GLOBAL_REWARD | W9 | US Tax Limit |\n | VARIABLE_GLOBAL_REWARD | W9 | US Tax Limit |\n | VARIABLE_CREDIT_REWARD | W9 | US Tax Limit |\n\n @motivating\n Scenario Outline: The Confirm page allows users to view their exchange before committing\n Given a <type> exchange rule\n When a user views the reward exchange list\n And they select the exchange\n And they progress to Confirm page\n Then they see a row with title \"Reward\"\n And it contains the exchange name\n And it contains the exchange image\n And they <maySee> a row with title \"Reward Amount\"\n And it <mayContain> <amountTitle>\n And they see a row with title \"Cost to Redeem\"\n And it contains the source reward pretty value in bolded text\n Examples:\n | type | maySee | mayContain | amountTitle |\n | FIXED_GLOBAL_REWARD | don't | doesn't contain | N/A |\n | VARIABLE_GLOBAL_REWARD | see | contains | the pretty destination value |\n | STEPPED_FIXED_GLOBAL_REWARD | see | contains | the pretty destination value |\n | VARIABLE_CREDIT_REWARD | see | contains | the pretty destination value |\n\n @motivating\n Scenario: An error banner is displayed if an error occurs during redemeption\n Given a user has selected a reward to exchange\n And is on the confirmation page\n When they click \"Redeem\"\n But an error occurs\n Then an error banner appears\n And it contains details about the error\n And the reward exchange is not completed\n\n @motivating\n Scenario: Confetti is displayed when a reward exchange succeeds\n Given a user has selected a reward to exchange\n And they are on the confirmation page\n When they click \"Redeem\"\n And the exchange is successful\n Then they see confetti centered on the success page\n And they see text describing what they exchanged for their new reward\n And they see a \"Done\" brand colour button\n When they click \"Done\"\n Then they see the Rewards page\n\n @motivating\n Scenario: Fuel tank codes are shown when a reward exchange succeeds\n Given a user has selected to exchange for a fuel tank reward\n When they complete the reward exchange\n And are on the success page\n Then they see a textbox with their fuel tank code\n And a clipboard icon\n When they click the clipboard icon\n Then their fuel tank code is copied to their clipboard\n\n @motivating\n Scenario Outline: Users can exchange for any type of reward\n Given a <type> reward exchange rule for a <reward>\n And a user who has enough source credit to exchange for the reward\n When they go through the exchange flow\n And exchange for their reward\n Then their credit is exchanged for the <reward>\n Examples:\n | type | reward |\n | FIXED_GLOBAL_REWARD | gift card |\n | FIXED_GLOBAL_REWARD | fuel tank code |\n | FIXED_GLOBAL_REWARD | discount |\n | FIXED_GLOBAL_REWARD | credit reward |\n | STEPPED_FIXED_GLOBAL_REWARD | gift card |\n | STEPPED_FIXED_GLOBAL_REWARD | discount |\n | STEPPED_FIXED_GLOBAL_REWARD | credit reward |\n | VARIABLE_GLOBAL_REWARD | gift card |\n | VARIABLE_GLOBAL_REWARD | discount |\n | VARIABLE_GLOBAL_REWARD | credit reward |\n | VARIABLE_CREDIT_REWARD | credit reward |";
|
|
11103
11242
|
|
|
11104
11243
|
const RewardExchangeList_stories = {
|
|
11105
11244
|
title: "Components/Reward Exchange List",
|
|
11106
11245
|
parameters: {
|
|
11107
|
-
scenario: scenario$
|
|
11246
|
+
scenario: scenario$m,
|
|
11108
11247
|
},
|
|
11109
11248
|
};
|
|
11110
11249
|
const StoryBase = (props) => () => {
|
|
@@ -11152,12 +11291,12 @@ const RewardExchangeList = /*#__PURE__*/Object.freeze({
|
|
|
11152
11291
|
Empty: Empty$2
|
|
11153
11292
|
});
|
|
11154
11293
|
|
|
11155
|
-
const scenario$
|
|
11294
|
+
const scenario$n = "@author:derek\n@owner:derek\nFeature: Program Explainer\n\n @motivating\n @ui\n Scenario Outline: The program explainer wraps program explainer steps and aligns them\n Given a program explainer component\n And it has <number> program explainer steps as components\n When a user views the program explainer\n Then they see <number> steps aligned horizontally\n And they have equal height/width\n And equal padding in between\n When they are viewed on a screen smaller than 500px\n Then the steps stack vertically with equal padding in between\n And they have equal width\n But height may vary\n Examples:\n | number |\n | 2 |\n | 3 |\n | 4 |\n\n @motivating\n @ui\n Scenario: The program explainer displays a section header\n Given a program explainer step with props\n | prop | value |\n | header | My Header |\n And it has program explainer steps as children\n When a user views the program explainer\n Then they see \"My Header\" centered above the explainer steps\n\n @motivating\n @ui\n Scenario: Colours are customizable\n Given a program explainer with props\n | prop | value |\n | text-color | purple |\n | background-color | grey |\n When a user views the program explainer\n Then the header is purple\n And the background between steos is grey\n";
|
|
11156
11295
|
|
|
11157
11296
|
const ProgramExplainer_stories = {
|
|
11158
11297
|
title: "Components/Program Explainer",
|
|
11159
11298
|
parameters: {
|
|
11160
|
-
scenario: scenario$
|
|
11299
|
+
scenario: scenario$n,
|
|
11161
11300
|
},
|
|
11162
11301
|
};
|
|
11163
11302
|
const OneStep = () => {
|
|
@@ -11213,12 +11352,12 @@ const ProgramExplainer = /*#__PURE__*/Object.freeze({
|
|
|
11213
11352
|
ProgramExplainerGeneric: ProgramExplainerGeneric
|
|
11214
11353
|
});
|
|
11215
11354
|
|
|
11216
|
-
const scenario$
|
|
11355
|
+
const scenario$o = "@author:derek\n@owner:derek\nFeature: Program Explainer Step\n\n @motivating\n @ui\n Scenario: The program explainer step displays a icon, header and description\n Given a program explainer step with props\n | prop | value |\n | header | My Header |\n | description | My program explainer description |\n | icon | person-plus-fill |\n When a user views the explainer step\n Then they see an person icon with a + in the top left hand corner\n And the icon is weight 300 brand colour\n And below they see \"My Header\" in large bold font\n And below they see \"My program explainer description\" in medium font\n And the step background colour is weight 50 brand colour\n\n @motivating\n @ui\n Scenario: The program explainer can display an image in place of an icon\n Given a program explainer\n And it has an \"image-url\" prop with a value of a valid url to an image\n When a user views the explainer step\n Then the image is displayed in place of an incon in the top left hand corner\n\n @motivating\n @ui\n Scenario: Colours are customizable\n Given a program explainer step with props\n | prop | value |\n | text-color | purple |\n | background-color | grey |\n When a user views the explainer step\n Then they see the step background is grey\n And the header text is purple\n And the description text is purple\n";
|
|
11217
11356
|
|
|
11218
11357
|
const ProgramExplainerStep_stories = {
|
|
11219
11358
|
title: "Components/Program Explainer Step",
|
|
11220
11359
|
parameters: {
|
|
11221
|
-
scenario: scenario$
|
|
11360
|
+
scenario: scenario$o,
|
|
11222
11361
|
},
|
|
11223
11362
|
};
|
|
11224
11363
|
const ProgramExplainerStep = () => {
|
|
@@ -11235,12 +11374,12 @@ const ProgramExplainerStep$1 = /*#__PURE__*/Object.freeze({
|
|
|
11235
11374
|
ProgramExplainerStepCustom: ProgramExplainerStepCustom
|
|
11236
11375
|
});
|
|
11237
11376
|
|
|
11238
|
-
const scenario$
|
|
11377
|
+
const scenario$p = "@author:derek\n@owner:logan\nFeature: Brand Configuration\n\n\t@motivating\n\tScenario: The brand components creates a colour pallet from a brand colour and applies it to children\n\t\tGiven a brand component with \"brand-color\" \"#4225c4\"\n\t\tAnd it is wrapping several mint components\n\t\tWhen a user views the children components\n\t\tThen the following css variables are set\n\t\t\t| variable | value |\n\t\t\t| --sl-color-primary-50 | hsla(251, 68%, 95%, 1) |\n\t\t\t| --sl-color-primary-100 | hsla(251, 68%, 86%, 1) |\n\t\t\t| --sl-color-primary-200 | hsla(251, 68%, 76%, 1) |\n\t\t\t| --sl-color-primary-300 | hsla(251, 68%, 66%, 1) |\n\t\t\t| --sl-color-primary-400 | hsla(251, 68%, 56%, 1) |\n\t\t\t| --sl-color-primary-500 | hsla(251, 68%, 46%, 1) |\n\t\t\t| --sl-color-primary-600 | hsla(251, 68%, 39%, 1) |\n\t\t\t| --sl-color-primary-700 | hsla(251, 68%, 32%, 1) |\n\t\t\t| --sl-color-primary-800 | hsla(251, 68%, 25%, 1) |\n\t\t\t| --sl-color-primary-900 | hsla(251, 68%, 18%, 1) |\n\t\t\t| --sl-color-primary-950 | hsla(251, 68%, 15%, 1) |\n\t\t\t| --sl-focus-ring-color-primary | var(--sl-color-primary-100) |\n\t\t\t| --sl-input-border-color-focus | var(--sl-color-primary-500) |\n\t\t\t| --sl-color-primary-hue | var(--sl-color-primary-500) |\n\t\tAnd they are applied to the children components\n\t\tBut they are not applied to any components outside of the brand component\n\t\tAnd they are not applied to any vanilla components\n\n\t@minutia\n\tScenario Outline: The brand colour can be hex, HSL or rgb\n\t\tGiven a brand component with \"brand-color\" <colour>\n\t\tAnd it is wrapping several mint components\n\t\tWhen a user views the children components\n\t\tThen the colour is used to create a brand palete\n\t\tAnd it is applied to the children components\n\t\tExamples:\n\t\t\t| colour |\n\t\t\t| #4225c4 |\n\t\t\t| rgb(66, 37, 196) |\n\t\t\t| hsl(251, 68%, 46%) |\n\t\t\t| hsla(251, 68%, 46%, 1) |\n\n\t@motivating\n\tScenario: The brand component can apply a brand font to children components\n\t\tGiven a brand component with \"brand-font\" \"Nunito Sans\"\n\t\tAnd it is wrapping several mint components\n\t\tWhen a user views the children components\n\t\tThen the following css variables are set\n\t\t\t| variable | value |\n\t\t\t| --sl-font-sans | \"Nunito Sans\", arial |\n\t\t\t| --sl-input-font-family | \"Nunito Sans\", arial |\n\t\t\t| --sl-tooltip-font-family | \"Nunito Sans\", arial |\n\t\t\t| font-family | \"Nunito Sans\", arial |\n\t\tAnd they are applied to the children components\n\t\tAnd the children component's text is \"Nunito Sans\"";
|
|
11239
11378
|
|
|
11240
11379
|
const SqmBrand_stories = {
|
|
11241
11380
|
title: "Components/Brand",
|
|
11242
11381
|
parameters: {
|
|
11243
|
-
scenario: scenario$
|
|
11382
|
+
scenario: scenario$p,
|
|
11244
11383
|
},
|
|
11245
11384
|
};
|
|
11246
11385
|
const SampleComponents = () => (index.h("div", { style: { padding: "10px", border: "5px solid #EEE" } },
|
|
@@ -11341,12 +11480,12 @@ const BrandStories = /*#__PURE__*/Object.freeze({
|
|
|
11341
11480
|
Fonts: Fonts
|
|
11342
11481
|
});
|
|
11343
11482
|
|
|
11344
|
-
const scenario$
|
|
11483
|
+
const scenario$q = "@author:kutay\n@owner:kutay\nFeature: Card Feed\n\n\tThe Card Feed component displays Task Card components in a grid layout.\n\n\tBackground: A user on the portal is viewing the widget\n\t\tGiven a user viewing the Card Feed component\n\n\t@motivating\n\tScenario: The Card Feed component displays Task Cards given as children slots\n\t\tGiven a Card Feed component\n\t\tAnd it is wrapping a number of task cards as children\n\t\tWhen the user views the Card Feed\n\t\tThen the task cards are displayed in a masonry layout\n\t\tWhen the card feed with grows or shrinks in width\n\t\tThen the number of columns adjust to the given width\n\n\t@motivating\n\t@ui\n\tScenario Outline: The Card Feed component can have a maximum width\n\t\tGiven a Card Feed component\n\t\tAnd it is wrapping a number of task cards as children\n\t\tAnd has prop \"width\" has a provided <value>\n\t\tThen the task cards are displayed in a masonry layout\n\t\tWhen the card feed with grows or shrinks in width\n\t\tThen the number of columns adjust to the given width\n\t\tAnd the task cards do not exceed <width>\n\t\tExamples:\n\t\t\t| value | width |\n\t\t\t| | 347px |\n\t\t\t| 200 | 200px |\n\t\t\t| 400 | 400px |\n\n\t@motivating\n\t@ui\n\tScenario Outline: The Card Feed component gap between task cards can be customized\n\t\tGiven a Card Feed component\n\t\tAnd it is wrapping a number of task cards as children\n\t\tAnd has prop \"gap\" has a provided <value>\n\t\tThen the task cards are displayed in a masonry layout\n\t\tAnd the gap between the columns is the <gap>\n\t\tExamples:\n\t\t\t| value | gap |\n\t\t\t| | 24px |\n\t\t\t| 20 | 20px |\n\t\t\t| 50 | 50px |";
|
|
11345
11484
|
|
|
11346
11485
|
const CardFeed_stories = {
|
|
11347
11486
|
title: "Components/Card Feed",
|
|
11348
11487
|
parameters: {
|
|
11349
|
-
scenario: scenario$
|
|
11488
|
+
scenario: scenario$q,
|
|
11350
11489
|
},
|
|
11351
11490
|
};
|
|
11352
11491
|
const oneAction$1 = {
|
|
@@ -11583,12 +11722,12 @@ const CardFeed = /*#__PURE__*/Object.freeze({
|
|
|
11583
11722
|
CardFeedGeneric: CardFeedGeneric
|
|
11584
11723
|
});
|
|
11585
11724
|
|
|
11586
|
-
const scenario$
|
|
11725
|
+
const scenario$r = "@author:kutay\n@owner:noah\nFeature: Portal Container\n\n\t@motivating\n\t@ui\n\tScenario: Horizontal content overflows, but does not stretch\n\t\tGiven there are two element in the container\n\t\tAnd the first is small\n\t\tAnd the second would stretch the container wider than it's parent\n\t\tThen the second one is clipped\n\t\tAnd the first one doesn't stretch\n\n\t@landmine\n\t@ui\n\tScenario: `max-width` is required for displaying as a row\n\t\tGiven I have `direction` to \"row\"\n\t\tAnd I have not set a `max-width`\n\t\tThen it displays as a column\n\n\t@motivating\n\t@ui\n\tScenario Outline: Content padding can be customized\n\t\tGiven prop \"padding\" has <value>\n\t\tThen <padding> is applied to content\n\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\n\t@motivating\n\t@ui\n\tScenario Outline: Gap between content elements can be customized\n\t\tGiven prop \"gap\" has <value>\n\t\tThen <gap> is applied to elements between content\n\n\t\tExamples:\n\t\t\t| value | gap |\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@minutia\n\t@ui\n\tScenario: Content can be center aligned in horizontal view\n\t\tGiven I have supplied the prop \"center\"\n\t\tThen the content is center aligned\n\n\t@minutia\n\t@ui\n\tScenario: Content in the last row can span full width with display in horizontal view\n\t\tGiven I have `display` to \"flex\"\n\t\tThen the content is full width on the last row\n\n\t@motivating\n\t@ui\n\tScenario Outline: Content can be aligned along the x-axis\n\t\tGiven prop \"justify-content\" has <value>\n\t\tThen content within the container is aligned <alignment>\n\n\t\tExamples:\n\t\t\t| value | alignment |\n\t\t\t| none | no alignment |\n\t\t\t| start | to the start |\n\t\t\t| center | to the center |\n\t\t\t| end | to the end |\n\t\t\t| space-between | with space between |\n\t\t\t| space-around | with space around |\n\t\t\t| space-evenly | with space evenly |\n\n\n\t@motivating\n\t@ui\n\tScenario Outline: Component background color can be customized\n\t\tGiven a user is viewing the Portal Container component\n\t\tThen the default value is \"#ffffff00\"\n\t\tWhen the prop \"background-color\" has <value>\n\t\tThen the background has color <backgroundColor>\n\t\tExamples:\n\t\t\t| value | backgroundColor |\n\t\t\t| empty (default value) | var(--sl-color-neutral-0) (#ffffff) |\n\t\t\t| aquamarine | #7fffd4 |\n";
|
|
11587
11726
|
|
|
11588
11727
|
const PortalContainer_stories = {
|
|
11589
11728
|
title: "Components/Microsite Container",
|
|
11590
11729
|
parameters: {
|
|
11591
|
-
scenario: scenario$
|
|
11730
|
+
scenario: scenario$r,
|
|
11592
11731
|
},
|
|
11593
11732
|
};
|
|
11594
11733
|
const TooWideColumn = () => (index.h("div", { style: { width: "200px", border: "1px dashed grey" } },
|
|
@@ -11756,11 +11895,11 @@ const scenario3 = "@author:derek @owner:derek\nFeature: Reward Table Status Colu
|
|
|
11756
11895
|
|
|
11757
11896
|
const scenario4 = "@author:derek @owner:derek\nFeature: Reward Table Source Column\n Shows the source of each reward\n\n @motivating @ui\n Scenario Outline: The title of the source column is configurable\n Given the \"column-title\" prop is set to <value>\n Then the source column is shown with <columnTitle>\n\n Examples:\n | value | columnTitle |\n | Source | |\n | My column title | My column title |\n\n @motivating @ui\n Scenario: The source column displays manual if the reward is caused by a manual action\n Given a user with a \"MANUAL\" reward\n When they view the rewards table\n Then the source of their reward is displayed as \"Manual\"\n\n @motivating @ui\n Scenario: The source column displays the program name if the reward is caused automatically by a program\n Given a user with a \"AUTOMATED\" program reward\n And the program has name \"Loyalty Program\"\n When they view the rewards table\n Then the source of their reward is displayed as \"Loyalty Program\"\n\n @motivating @ui\n Scenario Outline: The source column displays customizable reward exchange text with amount if the reward is caused by reward exchange\n Given the \"reward-exchange-text\" prop is <propValue>\n And a user with a \"MANUAL\" reward\n But it was created by a reward exchange\n Then they view the rewards table\n Then the source displays <exchangeText>\n And under it displays the following\n | prettyRedeemedCredit → prettyValue |\n\n Examples:\n | propValue | exchangeText |\n | | Reward Exchange |\n | Exchanged | Exchanged |\n\n @motivating @ui\n Scenario Outline: The source column displays customizable referral information if the reward is from a referral\n Given the \"reward-source-text\" prop is <propValue>\n And a user with a referral reward\n And that reward has <rewardSource>\n When they view the rewards table\n Then then source displays <referralText>\n And under it displays the full name of the <referralUser>\n\n Examples:\n | propValue | rewardSource | referralText | referralUser |\n | | REFERRED | Referred by | referrer user |\n | | FRIEND_SIGNUP | Referral to | referred user |\n | {rewardSource, select, FRIEND_SIGNUP {You Referred} REFERRED {Referred you} other {}} | REFERRED | Referred you | referrer user |\n | {rewardSource, select, FRIEND_SIGNUP {You Referred} REFERRED {Referred you} other {}} | FRIEND_SIGNUP | You Referred | referred user |\n\n @motivating @ui\n Scenario Outline: The source column displays the existing name for a referral if either the first name or last name does not exist\n Given a user with a referral reward\n And referral user exists\n And referral user has <name>\n But referral user has no <otherName>\n When they view the rewards table\n Then referral user's name is displayed as <name>\n\n Examples:\n | name | otherName |\n | first.name | last.name |\n | last.name | first.name |\n\n @motivating @ui\n Scenario Outline: The source column displays referral as \"Anonymous User\" if the referral user has no names\n Given a user with a referral reward\n And that reward has <rewardSource>\n And the <referralUser> has no first name\n And the <referralUser> has no last name\n When they view the rewards table\n Then then source displays <sourceText>\n And under it displays \"Anonymous User\"\n\n Examples:\n | rewardSource | referralUser | sourceText |\n | FRIEND_SIGNUP | referrer | Referral to |\n | REFERRED | referred user | Referred by |\n\n @motivating @ui\n Scenario Outline: The source column displays referral as \"Deleted User\" if the referral user is deleted in the system\n Given a user with a referral reward\n And that reward has <rewardSource>\n But <referral> user was deleted\n When they view the rewards table\n Then the source displays <sourceText>\n And under it displays \"Deleted User\"\n\n Examples:\n | rewardSource | referral | sourceText |\n | \"FRIEND_SIGNUP\" | referrer | Referral to |\n | \"REFERRED\" | referred | Referred by |\n# AL: TODO DELETED REFERRAL SPEC\n\n @motivating @ui\n Scenario Outline: The source column displays referral as \"Deleted referral\" if the referral user is deleted in the system\n Given a user with a referral reward\n And that reward has <rewardSource>\n But <referral> user was deleted\n When they view the rewards table\n Then the source displays <sourceText>\n And under it displays \"Deleted referral\"\n\n Examples:\n | rewardSource | referral | sourceText |\n | \"FRIEND_SIGNUP\" | referrer | Referral to |\n | \"REFERRED\" | referred | Referred by |\n\n @minutia @ui\n Scenario Outline: Name fallbacks for referral users without names are customizable\n Given <prop> with <value>\n And a user with a referral reward\n But the referral user <hadAction>\n When they view the rewards table\n Then the source displays <value> as the referral user\n\n Examples:\n | prop | value | hadAction |\n | deleted-user | Former Customer | was deleted |\n | anonymous-user | Nameless User | had first and last name deleted |\n\n @motivating\n Scenario Outline: Source text can be customized\n Given the \"reward-source-text\" prop is \"{rewardSource, select, MANUAL {Support} AUTOMATED {Loyalty Program} other {}}\"\n And a user with a <rewardSource> reward\n When they view the rewards table\n Then the source is <sourceText>\n\n Examples:\n | rewardSource | sourceText |\n | MANUAL | Support |\n | AUTOMATED | Loyalty Program |\n";
|
|
11758
11897
|
|
|
11759
|
-
const scenario$
|
|
11898
|
+
const scenario$s = scenario1 + scenario2 + scenario3 + scenario4;
|
|
11760
11899
|
const RewardsTableCell_stories = {
|
|
11761
11900
|
title: "Components/Rewards Table Cell",
|
|
11762
11901
|
parameters: {
|
|
11763
|
-
scenario: scenario$
|
|
11902
|
+
scenario: scenario$s,
|
|
11764
11903
|
},
|
|
11765
11904
|
};
|
|
11766
11905
|
const rewardsData$1 = {
|
|
@@ -12209,12 +12348,12 @@ const RewardsTableCell = /*#__PURE__*/Object.freeze({
|
|
|
12209
12348
|
EmptyCell: EmptyCell$2
|
|
12210
12349
|
});
|
|
12211
12350
|
|
|
12212
|
-
const scenario$
|
|
12351
|
+
const scenario$t = "@owner:sam\n@author:sam\nFeature: Rewards Table\n\n Shows a list of rewards as a table\n\n @motivating\n @ui\n Scenario: The empty state is shown if there are no rewards\n Given a user with rewards\n When they view the reward table\n Then no rewards are displayed\n And they see an image with a user icon\n And \"View your rewards\" in bold\n And \"See all the rewards you have earned from referring friends and completing tasks\" below the bolded text\n And the pagination buttons are disabled\n\n @minutia\n @ui\n Scenario: A custom empty state can be provided\n Given a user with no rewards\n And a custom empty state has been supplied in the \"empty\" slot\n When they view the reward table\n Then they see the custom empty state\n\n @minutia\n @ui\n Scenario: The loading state is shown while rewards are loading\n Given the table is loading\n Then the loading state is shown in the table\n And a custom loading state can be supplied in the \"loading\" slot\n And the pagination buttons are disabled\n\n @motivating\n @ui\n Scenario Outline: The table becomes paginated when the number of rewards exceeds the per page limit\n Given the user has <number of rewards>\n And the table is configured to show <page limit> rewards per page\n Then the table will have <number of pages> page(s)\n And pagination buttons will allow users to navigate between pages\n And the pagination button to go to the next page is disabled on the last page of rewards\n And the pagination button to go to the previous page is disabled on the first page of rewards\n Examples:\n | number of rewards | page limit | number of pages |\n | 0 | 4 | 1 |\n | 1 | 4 | 1 |\n | 3 | 4 | 1 |\n | 5 | 4 | 2 |\n | 42 | 4 | 11 |\n\n @motivating\n @ui\n Scenario: The table converts to a card view on tablet and mobile window sizes\n Given a user with rewards\n When they view the table\n And their window size is smaller than \"799px\"\n Then rewards are displayed as cards\n And they are in two columns\n When their window size is smaller than \"599px\"\n Then the rewards are displayed as cards in a singular column\n\n @motivating\n @ui\n Scenario: Table and Mobile beakpoints can be configured\n Given the reward table has been configured with the following props\n | prop | value |\n | smBreakpoint | 599 |\n | mdBreakpoint | 799 |\n And a user with rewards\n When they view the table\n And their window size is smaller than \"799px\"\n Then rewards are displayed as cards\n And they are in two columns\n When their window size is smaller than \"599px\"\n Then the rewards are displayed as cards in a singular column\n\n @motivating\n @ui\n Scenario Outline: By default the first column heading is hidden in mobile\n Given a reward table with 4 columns\n And prop \"hidden-columns\" with <hideColumnValue>\n And a user with rewards\n When they view the reward table\n And their window size is below the tablet breakpoint\n Then reward cards are displayed\n And the titles of <columnsArehidden> within the card\n Examples:\n | hideColumnValue | columnsArehidden |\n | | the first column |\n | 0,1,2 | the first, second and third columns |\n | 3 | the fourth column |\n\n @motivating\n Scenario: Only rewards which occured in the program specific by \"program-id\" are shown\n Given the table is configured with \"program-id\"\n Then only rewards from the program with \"program-id\" are shown\n\n @landmine\n Scenario: When a `classic` program Id is set then any reward without a programId is shown\n There is no easy way for the backend to filter for \"classic\" programs,\n thus we are filtering for rewards without programId's.\n\n Given the \"program-id\" of the table is set to \"classic\"\n Then rewards from classic programs are shown\n And manual rewards are shown\n\n @minutia\n @ui\n Scenario: Column heading can be hidden\n Given the table is configured with \"hide-labels\" set to \"true\"\n Then the table is displayed without column headings";
|
|
12213
12352
|
|
|
12214
12353
|
const RewardsTable_stories = {
|
|
12215
12354
|
title: "Components/Rewards Table",
|
|
12216
12355
|
parameters: {
|
|
12217
|
-
scenario: scenario$
|
|
12356
|
+
scenario: scenario$t,
|
|
12218
12357
|
},
|
|
12219
12358
|
};
|
|
12220
12359
|
const loadingElement$1 = (index.h("div", { slot: "loading", style: { display: "contents" } },
|
|
@@ -12526,12 +12665,12 @@ const UseReferralTable = /*#__PURE__*/Object.freeze({
|
|
|
12526
12665
|
ReferralTableFr: ReferralTableFr
|
|
12527
12666
|
});
|
|
12528
12667
|
|
|
12529
|
-
const scenario$t = "@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 |";
|
|
12668
|
+
const scenario$u = "@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 |";
|
|
12530
12669
|
|
|
12531
12670
|
const HeroImage_stories = {
|
|
12532
12671
|
title: "Components/Hero Image",
|
|
12533
12672
|
parameters: {
|
|
12534
|
-
scenario: scenario$
|
|
12673
|
+
scenario: scenario$u,
|
|
12535
12674
|
},
|
|
12536
12675
|
};
|
|
12537
12676
|
const OverlayHeader = () => {
|
|
@@ -12604,12 +12743,12 @@ const HeroImage = /*#__PURE__*/Object.freeze({
|
|
|
12604
12743
|
ColumnsCustomColors: ColumnsCustomColors
|
|
12605
12744
|
});
|
|
12606
12745
|
|
|
12607
|
-
const scenario$
|
|
12746
|
+
const scenario$v = "@author:kutay\n@owner:kutay\nFeature: Referral Card\n\n\tThe Referral Card component takes in two slots and displays them side by side.\n\n\tBackground: A user on the portal is viewing the widget\n\t\tGiven a user viewing the Referral Card component\n\n\t@motivating\n\t@ui\n\tScenario: Referral Card component displays provided content in left and right slots side by side\n\t\tGiven a Referral Card component\n\t\tAnd a slot with the name \"left\"\n\t\tAnd a slot with the name \"right\"\n\t\tWhen the user views the referral card\n\t\tThen the slot contents are displayed the card with equal width\n\t\tWhen the component is scaled down to 499px\n\t\tThen the column layout switches to row layout\n\t\tAnd the \"left\" slot content is displayed above the \"right\" slot content\n\n\t@minutia\n\t@ui\n\tScenario: Left or right column content spans the whole card if there is no content in the other column\n\t\tGiven a Referral Card component\n\t\tAnd there content in one column\n\t\tAnd there is no content in the other column\n\t\tThen the column with content spans 100% of the card width\n\t\tAnd the column with content respects the container's padding\n\t\tAnd the column without content has zero width\n\n\t@motivating\n\t@ui\n\tScenario Outline: Referral Card component content can be vertically aligned start, center, end\n\t\tGiven a Referral Card component\n\t\tAnd a slot with the name \"left\"\n\t\tAnd a slot with the name \"right\"\n\t\tAnd the prop \"vertical-alignment\" has <value>\n\t\tThen slots contents are displayed inside the card\n\t\tAnd slots are vertically aligned to <alignment> of the card\n\t\tExamples:\n\t\t\t| value | alignment |\n\t\t\t| start | the top |\n\t\t\t| center | the center |\n\t\t\t| end | the bottom |\n\t\t\t| N/A | the top |\n\n\t@ui\n\tScenario Outline: Container border can be toggled\n\t\tGiven a user is viewing the referral card component\n\t\tThen the default value for the prop \"include-border\" is \"true\"\n\t\tWhen \"include-border\" has <value>\n\t\tThen the referral card component's border <maybe> included\n\t\tExamples:\n\t\t\t| value | maybe |\n\t\t\t| true | is |\n\t\t\t| false | isn't |\n\t\t\t| empty (no value) | is |\n\n\t@motivating\n\t@ui\n\tScenario Outline: Component background color can be customized\n\t\tGiven a user is viewing the Referral Card component\n\t\tThen the default value is \"#ffffff\"\n\t\tWhen the prop \"background-color\" has <value>\n\t\tThen the background has color <backgroundColor>\n\t\tExamples:\n\t\t\t| value | backgroundColor |\n\t\t\t| empty (default value) | var(--sl-color-neutral-0) (#ffffff) |\n\t\t\t| aquamarine | #7fffd4 |\n\n\t@motivating\n\t@ui\n\tScenario Outline: Container padding can be customized\n\t\tGiven a user is looking at the component\n\t\tThen the default values for \"padding-top\", \"padding-bottom\", \"padding-left\", \"padding-right\" is \"large\"\n\t\tWhen prop \"padding-top\" has <value>\n\t\tThen <padding> is applied to content\n\t\tAnd the same applies to \"padding-bottom\", \"padding-left\", \"padding-right\"\n\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 |";
|
|
12608
12747
|
|
|
12609
12748
|
const ReferralCard_stories = {
|
|
12610
12749
|
title: "Components/Referral Card",
|
|
12611
12750
|
parameters: {
|
|
12612
|
-
scenario: scenario$
|
|
12751
|
+
scenario: scenario$v,
|
|
12613
12752
|
},
|
|
12614
12753
|
};
|
|
12615
12754
|
const media = (slot) => {
|
|
@@ -12742,11 +12881,11 @@ const scenarioTimeline = "@author:derek\n@owner:kutay\nFeature: Timeline\n\n
|
|
|
12742
12881
|
|
|
12743
12882
|
const scenarioTimelineEntry = "@author:derek\n@owner:kutay\nFeature: Timeline Entry\n\n @motivating\n @ui\n Scenario: Timeline entries have an icon, a reward and an entry desciption\n Given an timeline entry with the following props\n | prop | value |\n | unit | Visa Giftcard |\n | reward | 50$ |\n | desc | Earn a 50$ Visa Giftcard for each referral you make |\n When a user views the entry\n Then they see a gift icon\n And see \"$50 VISA GIFTCARRD\" to the right\n And \"$50\" is bolded with x-large font size\n And below they see \"Earn a 50$ Visa Giftcard for each referral you make\"\n\n @motivating\n @ui\n Scenario Outline: Icon can either be a gift or a brand colour cirle\n Given a timeline entry with \"icon\" <iconPropValue>\n When a user views the entry\n Then they see an <icon>\n Examples:\n | iconPropValue 1 | icon |\n | gift | gift |\n | circle | brand colour circle |\n | | gift |\n\n @motivating\n @ui\n Scenario: A timeline entry can display a line to connect it to another entry\n Given a timeline entry with \"line\" \"true\"\n When a user views the entry\n Then they see the entry\n But it has a brand colour line connecting it to the next timeline entry\n";
|
|
12744
12883
|
|
|
12745
|
-
const scenario$
|
|
12884
|
+
const scenario$w = scenarioTimeline + scenarioTimelineEntry;
|
|
12746
12885
|
const Timeline_stories = {
|
|
12747
12886
|
title: "Components/Timeline",
|
|
12748
12887
|
parameters: {
|
|
12749
|
-
scenario: scenario$
|
|
12888
|
+
scenario: scenario$w,
|
|
12750
12889
|
},
|
|
12751
12890
|
};
|
|
12752
12891
|
const TimelineWith1Reward = () => {
|
|
@@ -12819,12 +12958,12 @@ const Timeline = /*#__PURE__*/Object.freeze({
|
|
|
12819
12958
|
TimelineWith4Rewards: TimelineWith4Rewards
|
|
12820
12959
|
});
|
|
12821
12960
|
|
|
12822
|
-
const scenario$
|
|
12961
|
+
const scenario$x = "@author:kutay\n@owner:kutay\nFeature: Image\n\n\tBackground: A user on the portal is viewing the widget\n\t\tGiven a user viewing the image component\n\n\t@motivating\n\t@ui\n\tScenario: Image is displayed from URL\n\t\tGiven an Image component\n\t\tAnd prop \"image-url\" is provided with a valid image url\n\t\tThen the image is displayed\n\t\tAnd it is centered\n\n\t@motivating\n\t@ui\n\tScenario Outline: Images can be aligned left, center or right\n\t\tGiven an Image component\n\t\tAnd prop \"image-url\" is provided with a valid image url\n\t\tAnd prop \"align\" has <value>\n\t\tThen the image is displayed\n\t\tAnd it is aligned to the <value>\n\t\tExamples:\n\t\t\t| value |\n\t\t\t| left |\n\t\t\t| center |\n\t\t\t| right |\n\n\t@motivating\n\t@ui\n\tScenario: Image background can be assigned a color\n\t\tGiven an Image component\n\t\tAnd prop \"image-url\" is provided with a valid image url\n\t\tAnd prop \"background-color\" is provided a color\n\t\tThen the image is displayed\n\t\tAnd the background is the provided color\n\n\t@motivating\n\t@ui\n\tScenario: Image minimum height can be constrained\n\t\tGiven an Image component\n\t\tAnd prop \"image-url\" is provided\n\t\tAnd prop \"min-height\" is given a minimum value\n\t\tThen the image is displayed\n\t\tAnd the container size changes\n\t\tThen the image does not shrink below its minimum height";
|
|
12823
12962
|
|
|
12824
12963
|
const Image_stories = {
|
|
12825
12964
|
title: "Components/Image",
|
|
12826
12965
|
parameters: {
|
|
12827
|
-
scenario: scenario$
|
|
12966
|
+
scenario: scenario$x,
|
|
12828
12967
|
},
|
|
12829
12968
|
};
|
|
12830
12969
|
const Image = () => {
|
|
@@ -12857,12 +12996,12 @@ const Image$1 = /*#__PURE__*/Object.freeze({
|
|
|
12857
12996
|
MinimumHeight: MinimumHeight
|
|
12858
12997
|
});
|
|
12859
12998
|
|
|
12860
|
-
const scenario$
|
|
12999
|
+
const scenario$y = "@author:derek\n@owner:noah\nFeature: Titled Section\n\n Background: The titled section has a label and content\n Given a titled section\n And it has a label\n And it has content in the content slot\n\n @motivating\n @ui\n Scenario: Text alignment defaults to left align but can be configured\n Given the titled section has \"text-align\" <textAlignPropValue>\n When a user views the titled section\n Then the text in the label is <aligned>\n And the text in the content is <aligned>\n Examples:\n | textAlignPropValue | aligned |\n | center | center |\n | left | left |\n | right | right |\n | | left |\n\n @minutia\n @ui\n Scenario: Label margin is configurable\n Given the titled section has \"label-margin\" <marginPropValue>\n When a user views the titled section\n Then <marginPropValue> margin is between the label and content\n Examples:\n | marginPropValue | margin |\n | none | no |\n | xxx-small | xxx-small |\n | xx-small | xx-small |\n | x-small | x-small |\n | small | small |\n | medium | medium |\n | large | large |\n | x-large | x-large |\n | xx-large | xx-large |\n | xxx-large | xxx-large |\n | xxxx-large | xxxx-large |\n | | no |\n\n @minutia\n @ui\n Scenario Outline: Titled section padding is configurable\n Given the titled section has \"padding\" <paddingPropValue>\n When a user views the titled section\n Then <paddingPropValue> padding is applied around the titled section\n Examples:\n | paddingPropValue | padding |\n | none | no |\n | xxx-small | xxx-small |\n | xx-small | xx-small |\n | x-small | x-small |\n | small | small |\n | medium | medium |\n | large | large |\n | x-large | x-large |\n | xx-large | xx-large |\n | xxx-large | xxx-large |\n | xxxx-large | xxxx-large |\n | | no |";
|
|
12861
13000
|
|
|
12862
13001
|
const TitledSection_stories = {
|
|
12863
13002
|
title: "Components/Titled Section",
|
|
12864
13003
|
parameters: {
|
|
12865
|
-
scenario: scenario$
|
|
13004
|
+
scenario: scenario$y,
|
|
12866
13005
|
},
|
|
12867
13006
|
};
|
|
12868
13007
|
const AlignLeft = () => {
|
|
@@ -13258,12 +13397,12 @@ const Scroll = /*#__PURE__*/Object.freeze({
|
|
|
13258
13397
|
ShoelaceProps: ShoelaceProps
|
|
13259
13398
|
});
|
|
13260
13399
|
|
|
13261
|
-
const scenario$
|
|
13400
|
+
const scenario$z = "@author:Zach\n@owner:Zach\nFeature: Tabs\n\n The Tabs takes in the Tab component as children and maps through to display their header and content.\n\n Background: A user on the portal is viewing the widget\n Given a user viewing the Tabs component\n\n @motivating\n Scenario: Content inside the active tab is shown\n Given the header is set to <tabHeader>\n And the content inside is <tabContent>\n And the user has clicked <tabHeader>\n Then the <tabContent> is shown\n Examples:\n | tabHeader | tabContent |\n | Settings | This is the settings tab |\n | General | This is the general tab |\n | History | This is the history tab |\n\n @motivating\n @ui\n Scenario: The placement of the tabs is configurable\n Given The placement prop has been passed a valid <placement>\n Then tabs are placed on the <placementResult>\n Examples:\n | placement | placementResult |\n | | top of the content |\n | left | left hand side of the content |\n | right | right hand side of the content |\n | bottom | bottom of the content |\n\n\n @minutia\n @ui\n Scenario Outline: Tabs are setup to use the brand color\n Given the brand color is set to darkblue\n Then the text inside the active tab is darkblue\n And the underline of the active tab is darkblue\n\n @ui\n Scenario: Tabs are responsive\n Given the user is on a mobile device\n When there are more tabs than the horizontal space allows for\n Then clickable arrows appear on the left and right of the tabs\n And the tabs are scrollable\n\n @landmine\n Scenario: Program section cannot be used inside of tabs\n Given a tabs component\n And tab containing a program section with program-id \"test123\"\n And the program section wraps a component using program context\n When the tabs component is rendered\n Then the \"sq:program-id\" event listener for the program section is removed\n And the component does not use program-id \"test123\" to source its data\n And falls back to the global program id";
|
|
13262
13401
|
|
|
13263
13402
|
const Tabs_stories = {
|
|
13264
13403
|
title: "Components/Tabs",
|
|
13265
13404
|
parameters: {
|
|
13266
|
-
scenario: scenario$
|
|
13405
|
+
scenario: scenario$z,
|
|
13267
13406
|
},
|
|
13268
13407
|
};
|
|
13269
13408
|
const SimpleTabs = () => (index.h("div", { style: { maxWidth: "700px", margin: "auto" }, innerHTML: `
|
|
@@ -13763,12 +13902,12 @@ const Tabs = /*#__PURE__*/Object.freeze({
|
|
|
13763
13902
|
RightTabs: RightTabs
|
|
13764
13903
|
});
|
|
13765
13904
|
|
|
13766
|
-
const scenario$
|
|
13905
|
+
const scenario$A = "@author:johan\n@owner:johan\nFeature: Share Code\n\n The share code component is a box that allows users to see and copy their referral code for a given program\n\n Background: Environment\n Given there is a valid program ID in the environment\n And there is a valid user ID and account ID in the environment\n\n @motivating\n Scenario: A Users referral code can be copied to their clipboard\n Given tooltiptext is \"hello tooltip\"\n When the component renders\n Then there is a textbox with the user's share code\n When the clipboard icon is clicked\n Then the code is copied to clipboard\n And a tooltip will appear for ~1 second\n\n @minutia\n Scenario: Tooltip lifespan defaults to 2000\n Given the tooltip's lifespan is set to 2000\n And there is tooltip text\n When the component renders\n And the clipboard icon is clicked\n Then a tooltip will appear for ~2 seconds\n\n @minutia\n Scenario: Demo\n Given isDemo() returns true\n Then the share code is \"SHARECODE001\"\n And the component won't be interactive\n And the tooltip is hidden\n\n @minutia\n Scenario: Program ID can be sourced from prop\n Given the programId prop is set to \"program-a\"\n And window.widgetIdent.programId is set to \"program-b\"\n When the component renders\n Then the share code is for \"program-a\"\n\n @minutia\n Scenario: Program ID can be sourced from window\n Given the programId prop is unset\n And window.widgetIdent.programId is set to \"program-b\"\n When the component renders\n Then the share code is for \"program-b\"\n\n @minutia\n Scenario: An analytic event is fired when a user copies their code\n Given a user viewing the share code component\n And the component is rendered for \"program-a\"\n When they click to copy their code\n Then an \"USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT\" analytic event is fired\n And it is for \"program-a\"\n And it has share medium \"DIRECT\"\n\n\n @ui\n Scenario Outline: user can edit the alignment of the share code text\n Given a user is editing the share code component\n Then they see \"Align text\" props\n And the default value is \"left\"\n When they change the option to <option>\n Then they see the text in <position>\n Examples:\n | option | position |\n | left | left |\n | center | center |\n | right | right |\n\n @ui\n Scenario Outline: The position of the copy button can be changed\n Given a user is editing the share code component\n Then they see \"Style\" props\n And the default value is \"icon\"\n When they change the option to <option>\n Then they see the copy button in <position>\n Examples:\n | option | position |\n | button outside | outside the input, on the right |\n | button below | outside the input, below |\n | icon | inside the input as an icon |\n";
|
|
13767
13906
|
|
|
13768
13907
|
const ShareCode_stories = {
|
|
13769
13908
|
title: "Components/Share Code",
|
|
13770
13909
|
parameters: {
|
|
13771
|
-
scenario: scenario$
|
|
13910
|
+
scenario: scenario$A,
|
|
13772
13911
|
},
|
|
13773
13912
|
};
|
|
13774
13913
|
const ShareCode = () => {
|
|
@@ -13833,7 +13972,7 @@ const EmailRegistration_stories = {
|
|
|
13833
13972
|
// scenario,
|
|
13834
13973
|
},
|
|
13835
13974
|
};
|
|
13836
|
-
const defaultProps$
|
|
13975
|
+
const defaultProps$e = {
|
|
13837
13976
|
states: {
|
|
13838
13977
|
error: "",
|
|
13839
13978
|
loading: false,
|
|
@@ -13852,59 +13991,59 @@ const defaultProps$d = {
|
|
|
13852
13991
|
fraudErrorMessageTitle: "Looks like you tried referring yourself",
|
|
13853
13992
|
},
|
|
13854
13993
|
};
|
|
13855
|
-
const Default$
|
|
13994
|
+
const Default$g = () => index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, defaultProps$e));
|
|
13856
13995
|
const HasFirstNameLastName = () => (index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, {
|
|
13857
|
-
...defaultProps$
|
|
13996
|
+
...defaultProps$e,
|
|
13858
13997
|
content: {
|
|
13859
|
-
...defaultProps$
|
|
13998
|
+
...defaultProps$e.content,
|
|
13860
13999
|
includeName: true,
|
|
13861
14000
|
},
|
|
13862
14001
|
})));
|
|
13863
14002
|
const WithSlots = () => (index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, {
|
|
13864
|
-
...defaultProps$
|
|
14003
|
+
...defaultProps$e,
|
|
13865
14004
|
content: {
|
|
13866
|
-
...defaultProps$
|
|
14005
|
+
...defaultProps$e.content,
|
|
13867
14006
|
topSlot: index.h("div", null, "Hello this is the top slot"),
|
|
13868
14007
|
bottomSlot: index.h("div", null, "Hello this is the bottom slot"),
|
|
13869
14008
|
},
|
|
13870
14009
|
})));
|
|
13871
14010
|
const NoBorder$1 = () => (index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, {
|
|
13872
|
-
...defaultProps$
|
|
14011
|
+
...defaultProps$e,
|
|
13873
14012
|
content: {
|
|
13874
|
-
...defaultProps$
|
|
14013
|
+
...defaultProps$e.content,
|
|
13875
14014
|
hideBorder: true,
|
|
13876
14015
|
},
|
|
13877
14016
|
})));
|
|
13878
14017
|
const BackgroundColor$2 = () => (index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, {
|
|
13879
|
-
...defaultProps$
|
|
14018
|
+
...defaultProps$e,
|
|
13880
14019
|
content: {
|
|
13881
|
-
...defaultProps$
|
|
14020
|
+
...defaultProps$e.content,
|
|
13882
14021
|
backgroundColor: "aquamarine",
|
|
13883
14022
|
},
|
|
13884
14023
|
})));
|
|
13885
14024
|
const Loading$4 = () => (index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, {
|
|
13886
|
-
...defaultProps$
|
|
14025
|
+
...defaultProps$e,
|
|
13887
14026
|
states: {
|
|
13888
14027
|
error: "",
|
|
13889
14028
|
loading: true,
|
|
13890
14029
|
},
|
|
13891
14030
|
})));
|
|
13892
14031
|
const Error$8 = () => (index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, {
|
|
13893
|
-
...defaultProps$
|
|
14032
|
+
...defaultProps$e,
|
|
13894
14033
|
states: {
|
|
13895
14034
|
error: "Something went wrong. Please try again.",
|
|
13896
14035
|
loading: false,
|
|
13897
14036
|
},
|
|
13898
14037
|
})));
|
|
13899
14038
|
const FraudError = () => (index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, {
|
|
13900
|
-
...defaultProps$
|
|
14039
|
+
...defaultProps$e,
|
|
13901
14040
|
states: {
|
|
13902
14041
|
error: "FRAUD",
|
|
13903
14042
|
loading: false,
|
|
13904
14043
|
},
|
|
13905
14044
|
})));
|
|
13906
14045
|
const EmptyEmailError = () => (index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, {
|
|
13907
|
-
...defaultProps$
|
|
14046
|
+
...defaultProps$e,
|
|
13908
14047
|
states: {
|
|
13909
14048
|
error: "Something went wrong. Please try again.",
|
|
13910
14049
|
loading: false,
|
|
@@ -13917,7 +14056,7 @@ const EmptyEmailError = () => (index.h(emailRegistrationView.EmailRegistrationVi
|
|
|
13917
14056
|
const EmailRegistration = /*#__PURE__*/Object.freeze({
|
|
13918
14057
|
__proto__: null,
|
|
13919
14058
|
'default': EmailRegistration_stories,
|
|
13920
|
-
Default: Default$
|
|
14059
|
+
Default: Default$g,
|
|
13921
14060
|
HasFirstNameLastName: HasFirstNameLastName,
|
|
13922
14061
|
WithSlots: WithSlots,
|
|
13923
14062
|
NoBorder: NoBorder$1,
|
|
@@ -13928,15 +14067,15 @@ const EmailRegistration = /*#__PURE__*/Object.freeze({
|
|
|
13928
14067
|
EmptyEmailError: EmptyEmailError
|
|
13929
14068
|
});
|
|
13930
14069
|
|
|
13931
|
-
const scenario$
|
|
14070
|
+
const scenario$B = "@author:truman\n@owner:truman\nFeature: Coupon Code\n\n The coupon code component is a box that allows users to see and copy their coupon code for a given program\n\n @motivating\n Scenario: Component only fetches codes from current program\n Given a user has multiple rewards from various programs\n When the component is loaded\n Then it fetches the user's rewards from only the program associated with the widget\n\n @motivating\n Scenario: Component only looks at fueltank rewards\n Given a user has multiple rewards of different types\n When the component is loaded\n Then it filters the user's reward to only return FUELTANK rewards\n\n\n @motivating\n Scenario: The first (i.e. most recently received) reward is the reward that is displayed\n Given a user has at least one fueltank reward\n And the fueltank reward is available\n Then the coupon code component shows the first reward returned\n And this reward is the most recently received reward by the user\n\n @motivating\n Scenario Outline: Coupon code has multiple states depending on reward status\n Given a user has at least one fueltank reward\n And the reward has most recent status <status>\n And the dateScheduledFor field is <dateScheduledFor>\n Then the component's status is set to <componentStatus>\n And the <errorMessageTextProp> is displayed under the input field\n\n Examples:\n | status | dateScheduledFor | componentStatus | errorMessageTextProp |\n | AVAILABLE | null | AVAILABLE | N/A |\n | EXPIRED | null | EXPIRED | expiredErrorMessage |\n | REDEEMED | null | REDEEMED | redeemedMessage |\n | CANCELLED | null | CANCELLED | cancelledErrorMessage |\n | PENDING | null | EMPTY_TANK | fullfillmentErrorMessage |\n | PENDING | 123412341234 | PENDING | pendingErrorMessage |\n | null | null | ERROR | genericErrorMessage |\n\n Scenario Outline: Coupon code's error message text props are grouped\n Given an end user is viewing the coupon code component in the widget editor\n And they are looking at the component's properties\n Then they see <prop>\n And <prop> is grouped under \"Coupon code error\"\n Examples:\n | prop |\n | N/A |\n | expiredErrorMessage |\n | redeemedMessage |\n | cancelledErrorMessage |\n | fullfillmentErrorMessage |\n | pendingErrorMessage |\n | genericErrorMessage |\n\n @minutia\n Scenario: Tooltip lifespan defaults to 2000\n Given the tooltip's lifespan is set to 2000\n And there is tooltip text\n When the component renders\n And the clipboard icon is clicked\n Then a tooltip appears for ~2 seconds\n\n @ui\n Scenario: Component shows an error state when there is an error\n Given a user is viewing the coupon code component\n When there is an error in the coupon code\n Then in place of the coupon code is an alert banner\n And the alert banner gives information about the error to the user\n\n @ui\n Scenario: Component shows an loading state\n Given a user is viewing the coupon code component\n When the coupon code is loading in\n Then the text inside the input is \"Loading...\"\n And the coupon code input box has a gray background\n And the cursor is set to \"default\"\n And the user cannot copy the text\n\n @ui\n Scenario Outline: User can edit the alignment of the coupon code text\n Given a user is editing the coupon code component\n Then they see \"Align text\" props\n And the default value is \"left\"\n When they change the option to <option>\n Then they see the text in <position>\n Examples:\n | option | position |\n | left | left |\n | center | center |\n | right | right |\n\n @ui\n Scenario Outline: The position of the copy button can be changed\n Given a user is editing the coupon code component\n Then they see \"Style\" props\n And the default value is \"icon\"\n When they change the option to <option>\n Then they see the copy button in <position>\n Examples:\n | option | position |\n | button outside | outside the input, on the right |\n | button below | outside the input, below |\n | icon | inside the input as an icon |\n\n @minutia\n Scenario: ICU string converts to a date\n Given a user is viewing a live coupon code code component\n And the \"pendingErrorText\" has the \"{unpendDate}\" ICU string\n And the program is configured for rewards to be pending\n Then the user will see an info alert banner\n And the ICU string is converted to the unpend date\n";
|
|
13932
14071
|
|
|
13933
14072
|
const CouponCode_stories = {
|
|
13934
14073
|
title: "Components/Coupon Code",
|
|
13935
14074
|
parameters: {
|
|
13936
|
-
scenario: scenario$
|
|
14075
|
+
scenario: scenario$B,
|
|
13937
14076
|
},
|
|
13938
14077
|
};
|
|
13939
|
-
const defaultProps$
|
|
14078
|
+
const defaultProps$f = {
|
|
13940
14079
|
tooltiptext: "Copied to Clipboard",
|
|
13941
14080
|
copyString: "THANKSJANE125uv125",
|
|
13942
14081
|
open: false,
|
|
@@ -13961,43 +14100,43 @@ const TextAlignRight$2 = () => {
|
|
|
13961
14100
|
return index.h("sqm-coupon-code", { textAlign: "right" });
|
|
13962
14101
|
};
|
|
13963
14102
|
const CopyButton$2 = () => {
|
|
13964
|
-
return (index.h("sqm-coupon-code", Object.assign({}, defaultProps$
|
|
14103
|
+
return (index.h("sqm-coupon-code", Object.assign({}, defaultProps$f, { buttonStyle: "button-outside" })));
|
|
13965
14104
|
};
|
|
13966
14105
|
const CopyButtonCustomLabel = () => {
|
|
13967
|
-
return (index.h("sqm-coupon-code", Object.assign({}, defaultProps$
|
|
14106
|
+
return (index.h("sqm-coupon-code", Object.assign({}, defaultProps$f, { buttonStyle: "button-outside", "copy-button-label": "test long custom label" })));
|
|
13968
14107
|
};
|
|
13969
14108
|
const CopyButtonBelow$2 = () => {
|
|
13970
|
-
return (index.h("sqm-coupon-code", Object.assign({}, defaultProps$
|
|
14109
|
+
return (index.h("sqm-coupon-code", Object.assign({}, defaultProps$f, { buttonStyle: "button-below" })));
|
|
13971
14110
|
};
|
|
13972
14111
|
const CopyButtonBelowCustomLabel = () => {
|
|
13973
|
-
return (index.h("sqm-coupon-code", Object.assign({}, defaultProps$
|
|
14112
|
+
return (index.h("sqm-coupon-code", Object.assign({}, defaultProps$f, { buttonStyle: "button-below", "copy-button-label": "test long custom label" })));
|
|
13974
14113
|
};
|
|
13975
14114
|
const Loading$5 = () => {
|
|
13976
|
-
return index.h(ShadowViewAddon.CouponCodeView, Object.assign({}, defaultProps$
|
|
14115
|
+
return index.h(ShadowViewAddon.CouponCodeView, Object.assign({}, defaultProps$f, { loading: true }));
|
|
13977
14116
|
};
|
|
13978
14117
|
const CopyButtonLoading = () => {
|
|
13979
|
-
return (index.h(ShadowViewAddon.CouponCodeView, Object.assign({}, defaultProps$
|
|
14118
|
+
return (index.h(ShadowViewAddon.CouponCodeView, Object.assign({}, defaultProps$f, { buttonStyle: "button-outside", loading: true })));
|
|
13980
14119
|
};
|
|
13981
14120
|
const CopyButtonBelowLoading = () => {
|
|
13982
|
-
return (index.h(ShadowViewAddon.CouponCodeView, Object.assign({}, defaultProps$
|
|
14121
|
+
return (index.h(ShadowViewAddon.CouponCodeView, Object.assign({}, defaultProps$f, { buttonStyle: "button-below", loading: true })));
|
|
13983
14122
|
};
|
|
13984
14123
|
const ErrorGeneric = () => {
|
|
13985
|
-
return (index.h(ShadowViewAddon.CouponCodeView, Object.assign({}, defaultProps$
|
|
14124
|
+
return (index.h(ShadowViewAddon.CouponCodeView, Object.assign({}, defaultProps$f, { errorType: "warning", error: true, errorText: "We couldn't fetch your code. Please try again later or reach out to the Support team for help resolving this issue." })));
|
|
13986
14125
|
};
|
|
13987
14126
|
const ErrorPending = () => {
|
|
13988
|
-
return (index.h(ShadowViewAddon.CouponCodeView, Object.assign({}, defaultProps$
|
|
14127
|
+
return (index.h(ShadowViewAddon.CouponCodeView, Object.assign({}, defaultProps$f, { errorType: "info", error: true, errorText: "Your code will be available on April 24, 2023. Mark your calendar and come back then to redeem your reward!" })));
|
|
13989
14128
|
};
|
|
13990
14129
|
const ErrorFullfillment = () => {
|
|
13991
|
-
return (index.h(ShadowViewAddon.CouponCodeView, Object.assign({}, defaultProps$
|
|
14130
|
+
return (index.h(ShadowViewAddon.CouponCodeView, Object.assign({}, defaultProps$f, { errorType: "warning", error: true, errorText: "We couldn't fetch your code. Please try again later or reach out to the Support team for help resolving this issue." })));
|
|
13992
14131
|
};
|
|
13993
14132
|
const ErrorCancelled = () => {
|
|
13994
|
-
return (index.h(ShadowViewAddon.CouponCodeView, Object.assign({}, defaultProps$
|
|
14133
|
+
return (index.h(ShadowViewAddon.CouponCodeView, Object.assign({}, defaultProps$f, { errorType: "warning", error: true, errorText: "This code has been cancelled. Please reach out to the Support team for help resolving this issue." })));
|
|
13995
14134
|
};
|
|
13996
14135
|
const ErrorExpired = () => {
|
|
13997
|
-
return (index.h(ShadowViewAddon.CouponCodeView, Object.assign({}, defaultProps$
|
|
14136
|
+
return (index.h(ShadowViewAddon.CouponCodeView, Object.assign({}, defaultProps$f, { errorType: "warning", error: true, errorText: "Looks like this code has expired. Please reach out to the Support team for help resolving this issue." })));
|
|
13998
14137
|
};
|
|
13999
14138
|
const ErrorRedeemed = () => {
|
|
14000
|
-
return (index.h(ShadowViewAddon.CouponCodeView, Object.assign({}, defaultProps$
|
|
14139
|
+
return (index.h(ShadowViewAddon.CouponCodeView, Object.assign({}, defaultProps$f, { errorType: "success", error: true, errorText: "Looks like you\u2019ve already redeemed this code." })));
|
|
14001
14140
|
};
|
|
14002
14141
|
|
|
14003
14142
|
const CouponCode$1 = /*#__PURE__*/Object.freeze({
|
|
@@ -14023,55 +14162,55 @@ const CouponCode$1 = /*#__PURE__*/Object.freeze({
|
|
|
14023
14162
|
ErrorRedeemed: ErrorRedeemed
|
|
14024
14163
|
});
|
|
14025
14164
|
|
|
14026
|
-
const scenario$
|
|
14165
|
+
const scenario$C = "@author:noah\n@owner:noah\n\nFeature: Logout Current User\n\n Background:\n Given a user viewing an instant access widget\n\n @motivating\n @ui\n Scenario: A user on an instant access widget\n Given the user is identified\n And the user is logged in\n Then the component identifies the user by displaying their email in an ICU string\n And the users email displayed in the ICU string using hte \"{email}\" variable\n\n @motivating\n @ui\n Scenario: Users can switch who they are identified as through a link\n Given the user is identified\n And the user is logged in\n When the user clicks the link in the component\n Then the saved user identity is emptied\n And they are sent back to the registration form to re-identify themselves\n\n @minutia\n Scenario: Logout link empties the saved User Identity\n Given a valid user identity\n And the user is viewing the \"logged-in\" template\n When they click the logout link\n Then the user identity is set to \"undefined\"\n And the user is returned to the \"logged-out\" template";
|
|
14027
14166
|
|
|
14028
14167
|
const LogoutCurrentUser_stories = {
|
|
14029
14168
|
title: "Components/Logout Current User",
|
|
14030
14169
|
parameters: {
|
|
14031
|
-
scenario: scenario$
|
|
14170
|
+
scenario: scenario$C,
|
|
14032
14171
|
},
|
|
14033
14172
|
};
|
|
14034
|
-
const defaultProps$
|
|
14173
|
+
const defaultProps$g = {
|
|
14035
14174
|
filledInEmailText: "Currently showing referral data for noah.clarke@saasquatch.com",
|
|
14036
14175
|
onSwitchClick: () => console.log("clicked"),
|
|
14037
14176
|
switchUserText: "not you?",
|
|
14038
14177
|
loading: false,
|
|
14039
14178
|
emailErrorText: "Error fetching email",
|
|
14040
14179
|
};
|
|
14041
|
-
const Default$
|
|
14042
|
-
return index.h(sqmLogoutCurrentUserView.LogoutCurrentUserView, Object.assign({}, defaultProps$
|
|
14180
|
+
const Default$h = () => {
|
|
14181
|
+
return index.h(sqmLogoutCurrentUserView.LogoutCurrentUserView, Object.assign({}, defaultProps$g));
|
|
14043
14182
|
};
|
|
14044
14183
|
|
|
14045
14184
|
const LogoutCurrentUser = /*#__PURE__*/Object.freeze({
|
|
14046
14185
|
__proto__: null,
|
|
14047
14186
|
'default': LogoutCurrentUser_stories,
|
|
14048
|
-
Default: Default$
|
|
14187
|
+
Default: Default$h
|
|
14049
14188
|
});
|
|
14050
14189
|
|
|
14051
|
-
const scenario$
|
|
14190
|
+
const scenario$D = "@author:noah\n@owner:noah\n\nFeature: Link Button\n\n\t@ui\n\tScenario: Links can be opened in the same tab\n\t\tWhen a user clicks the button\n\t\tThen a link opens in the same tab\n\t\tAnd if the component is in an iFrame then the link is opened in the parent window not the iFrame\n\n\t@ui\n\tScenario: Links can be opened in a new tab\n\t\tWhen a user clicks the button\n\t\tThen a link opens in a new tab\n\t\tAnd if the component is in an iFrame then the link is still opened in a new tab\n\n\n\t@ui\n\tScenario: Props control the link and button text\n\t\tGiven the \"link\" prop is set to \"https://www.example.com\"\n\t\tAnd the \"buttonText\" prop is set to \"Click me!\"\n\t\tThen a button is shown with the text \"Click me!\"\n\t\tAnd when clicked the button opens https://www.example.com\n\n\t@ui\n\tScenario Outline: The button type can be set\n\t\tGiven the button type is set to <value>\n\t\tThen a <buttonType> is shown\n\t\tExamples:\n\t\t\t| value | buttonType |\n\t\t\t| <null> | primary |\n\t\t\t| default | default |\n\t\t\t| primary | primary |\n\t\t\t| success | success |\n\t\t\t| neutral | neutral |\n\t\t\t| warning | warning |\n\t\t\t| danger | danger |";
|
|
14052
14191
|
|
|
14053
14192
|
const LinkButton_stories = {
|
|
14054
14193
|
title: "Components/Link Button",
|
|
14055
14194
|
parameters: {
|
|
14056
|
-
scenario: scenario$
|
|
14195
|
+
scenario: scenario$D,
|
|
14057
14196
|
},
|
|
14058
14197
|
};
|
|
14059
|
-
const defaultProps$
|
|
14198
|
+
const defaultProps$h = {
|
|
14060
14199
|
link: "https://example.com",
|
|
14061
14200
|
openInNewTab: false,
|
|
14062
14201
|
buttonText: "Button Text",
|
|
14063
14202
|
};
|
|
14064
|
-
const Default$
|
|
14065
|
-
return index.h("sqm-link-button", Object.assign({}, defaultProps$
|
|
14203
|
+
const Default$i = () => {
|
|
14204
|
+
return index.h("sqm-link-button", Object.assign({}, defaultProps$h));
|
|
14066
14205
|
};
|
|
14067
14206
|
const OpenInNewTab = () => {
|
|
14068
|
-
return (index.h("sqm-link-button", Object.assign({}, { ...defaultProps$
|
|
14207
|
+
return (index.h("sqm-link-button", Object.assign({}, { ...defaultProps$h, openInNewTab: true })));
|
|
14069
14208
|
};
|
|
14070
14209
|
|
|
14071
14210
|
const LinkButton = /*#__PURE__*/Object.freeze({
|
|
14072
14211
|
__proto__: null,
|
|
14073
14212
|
'default': LinkButton_stories,
|
|
14074
|
-
Default: Default$
|
|
14213
|
+
Default: Default$i,
|
|
14075
14214
|
OpenInNewTab: OpenInNewTab
|
|
14076
14215
|
});
|
|
14077
14216
|
|
|
@@ -14081,7 +14220,7 @@ const CloseButton_stories = {
|
|
|
14081
14220
|
// scenario,
|
|
14082
14221
|
},
|
|
14083
14222
|
};
|
|
14084
|
-
const defaultProps$
|
|
14223
|
+
const defaultProps$i = {};
|
|
14085
14224
|
const containerStyles = {
|
|
14086
14225
|
position: "relative",
|
|
14087
14226
|
width: "500px",
|
|
@@ -14089,22 +14228,22 @@ const containerStyles = {
|
|
|
14089
14228
|
border: "1px solid black",
|
|
14090
14229
|
padding: "25px",
|
|
14091
14230
|
};
|
|
14092
|
-
const Default$
|
|
14093
|
-
return index.h(sqmCloseButtonView.CloseButtonView, Object.assign({}, defaultProps$
|
|
14231
|
+
const Default$j = () => {
|
|
14232
|
+
return index.h(sqmCloseButtonView.CloseButtonView, Object.assign({}, defaultProps$i));
|
|
14094
14233
|
};
|
|
14095
14234
|
const InAContainer = () => {
|
|
14096
14235
|
return (index.h("div", { style: containerStyles },
|
|
14097
|
-
index.h(sqmCloseButtonView.CloseButtonView, Object.assign({}, defaultProps$
|
|
14236
|
+
index.h(sqmCloseButtonView.CloseButtonView, Object.assign({}, defaultProps$i))));
|
|
14098
14237
|
};
|
|
14099
14238
|
const CustomColor$1 = () => {
|
|
14100
14239
|
return (index.h("div", { style: containerStyles },
|
|
14101
|
-
index.h(sqmCloseButtonView.CloseButtonView, Object.assign({}, { ...defaultProps$
|
|
14240
|
+
index.h(sqmCloseButtonView.CloseButtonView, Object.assign({}, { ...defaultProps$i, color: "blue" }))));
|
|
14102
14241
|
};
|
|
14103
14242
|
|
|
14104
14243
|
const CloseButton = /*#__PURE__*/Object.freeze({
|
|
14105
14244
|
__proto__: null,
|
|
14106
14245
|
'default': CloseButton_stories,
|
|
14107
|
-
Default: Default$
|
|
14246
|
+
Default: Default$j,
|
|
14108
14247
|
InAContainer: InAContainer,
|
|
14109
14248
|
CustomColor: CustomColor$1
|
|
14110
14249
|
});
|
|
@@ -14294,17 +14433,17 @@ const RadioCardView = ({ title, icon, description, selected, }) => {
|
|
|
14294
14433
|
const RadioCard_stories = {
|
|
14295
14434
|
title: "Components/Radio Card",
|
|
14296
14435
|
};
|
|
14297
|
-
const defaultProps$
|
|
14436
|
+
const defaultProps$j = {
|
|
14298
14437
|
selected: false,
|
|
14299
14438
|
title: "Card Title",
|
|
14300
14439
|
description: "Description text goes here",
|
|
14301
14440
|
icon: "apple",
|
|
14302
14441
|
};
|
|
14303
14442
|
const DefaultView$1 = () => {
|
|
14304
|
-
return index.h(RadioCardView, Object.assign({}, defaultProps$
|
|
14443
|
+
return index.h(RadioCardView, Object.assign({}, defaultProps$j));
|
|
14305
14444
|
};
|
|
14306
14445
|
const Selected = () => {
|
|
14307
|
-
return index.h(RadioCardView, Object.assign({}, defaultProps$
|
|
14446
|
+
return index.h(RadioCardView, Object.assign({}, defaultProps$j, { selected: true }));
|
|
14308
14447
|
};
|
|
14309
14448
|
|
|
14310
14449
|
const RadioCard = /*#__PURE__*/Object.freeze({
|
|
@@ -14317,13 +14456,13 @@ const RadioCard = /*#__PURE__*/Object.freeze({
|
|
|
14317
14456
|
const ProgressBar_stories = {
|
|
14318
14457
|
title: "Components/Progress Bar",
|
|
14319
14458
|
};
|
|
14320
|
-
const defaultProps$
|
|
14459
|
+
const defaultProps$k = {
|
|
14321
14460
|
progress: 2,
|
|
14322
14461
|
goal: 4,
|
|
14323
14462
|
steps: true,
|
|
14324
14463
|
};
|
|
14325
14464
|
const TaxAndPayoutsProgressBar = () => {
|
|
14326
|
-
return index.h(ShadowViewAddon.ProgressBar, Object.assign({}, defaultProps$
|
|
14465
|
+
return index.h(ShadowViewAddon.ProgressBar, Object.assign({}, defaultProps$k, { stageCount: 4, currentStage: 2 }));
|
|
14327
14466
|
};
|
|
14328
14467
|
|
|
14329
14468
|
const ProgressBar$1 = /*#__PURE__*/Object.freeze({
|
|
@@ -14395,7 +14534,6 @@ const BankingForm_stories = {
|
|
|
14395
14534
|
};
|
|
14396
14535
|
const bankingFormProps = {
|
|
14397
14536
|
states: {
|
|
14398
|
-
showVerification: false,
|
|
14399
14537
|
hideSteps: false,
|
|
14400
14538
|
disabled: false,
|
|
14401
14539
|
loading: false,
|
|
@@ -14412,7 +14550,6 @@ const bankingFormProps = {
|
|
|
14412
14550
|
loadingError: false,
|
|
14413
14551
|
},
|
|
14414
14552
|
callbacks: {
|
|
14415
|
-
onVerification: () => { },
|
|
14416
14553
|
onSubmit: async () => console.log("Submit"),
|
|
14417
14554
|
setPaymentMethodChecked: () => { },
|
|
14418
14555
|
setPaymentScheduleChecked: () => { },
|
|
@@ -14995,152 +15132,6 @@ const UseInvoiceTableCells = /*#__PURE__*/Object.freeze({
|
|
|
14995
15132
|
InvoiceTableDemoHook: InvoiceTableDemoHook
|
|
14996
15133
|
});
|
|
14997
15134
|
|
|
14998
|
-
const WidgetEmailVerification_stories = {
|
|
14999
|
-
title: "Components/Widget Email Verification",
|
|
15000
|
-
};
|
|
15001
|
-
const defaultProps$k = {
|
|
15002
|
-
email: "",
|
|
15003
|
-
error: false,
|
|
15004
|
-
loading: false,
|
|
15005
|
-
initialLoading: false,
|
|
15006
|
-
sendCodeError: false,
|
|
15007
|
-
};
|
|
15008
|
-
const Default$i = () => (index.h("sqm-email-verification", { demoData: {} }));
|
|
15009
|
-
const EmailIsPrefilled = () => (index.h("sqm-email-verification", { demoData: {
|
|
15010
|
-
states: {
|
|
15011
|
-
...defaultProps$k,
|
|
15012
|
-
email: "test@example.com",
|
|
15013
|
-
},
|
|
15014
|
-
} }));
|
|
15015
|
-
const Loading$7 = () => (index.h("sqm-email-verification", { demoData: {
|
|
15016
|
-
states: {
|
|
15017
|
-
...defaultProps$k,
|
|
15018
|
-
initialLoading: true,
|
|
15019
|
-
},
|
|
15020
|
-
} }));
|
|
15021
|
-
const SaveLoading = () => (index.h("sqm-email-verification", { demoData: {
|
|
15022
|
-
states: {
|
|
15023
|
-
...defaultProps$k,
|
|
15024
|
-
loading: true,
|
|
15025
|
-
},
|
|
15026
|
-
} }));
|
|
15027
|
-
const InvalidEmail = () => (index.h("sqm-email-verification", { demoData: {
|
|
15028
|
-
states: {
|
|
15029
|
-
...defaultProps$k,
|
|
15030
|
-
error: true,
|
|
15031
|
-
},
|
|
15032
|
-
} }));
|
|
15033
|
-
const SendCodeError = () => (index.h("sqm-email-verification", { demoData: {
|
|
15034
|
-
states: {
|
|
15035
|
-
...defaultProps$k,
|
|
15036
|
-
sendCodeError: true,
|
|
15037
|
-
},
|
|
15038
|
-
} }));
|
|
15039
|
-
|
|
15040
|
-
const WidgetEmailVerification = /*#__PURE__*/Object.freeze({
|
|
15041
|
-
__proto__: null,
|
|
15042
|
-
'default': WidgetEmailVerification_stories,
|
|
15043
|
-
Default: Default$i,
|
|
15044
|
-
EmailIsPrefilled: EmailIsPrefilled,
|
|
15045
|
-
Loading: Loading$7,
|
|
15046
|
-
SaveLoading: SaveLoading,
|
|
15047
|
-
InvalidEmail: InvalidEmail,
|
|
15048
|
-
SendCodeError: SendCodeError
|
|
15049
|
-
});
|
|
15050
|
-
|
|
15051
|
-
const WidgetCodeVerification_stories = {
|
|
15052
|
-
title: "Components/Widget Code Verification",
|
|
15053
|
-
};
|
|
15054
|
-
const defaultProps$l = {
|
|
15055
|
-
initialiseLoading: false,
|
|
15056
|
-
email: "testemail@example.com",
|
|
15057
|
-
loading: false,
|
|
15058
|
-
verifyFailed: false,
|
|
15059
|
-
emailResent: false,
|
|
15060
|
-
};
|
|
15061
|
-
const Default$j = () => (index.h("sqm-code-verification", { demoData: { states: defaultProps$l } }));
|
|
15062
|
-
const InitialLoading = () => (index.h("sqm-code-verification", { demoData: {
|
|
15063
|
-
states: {
|
|
15064
|
-
...defaultProps$l,
|
|
15065
|
-
initialiseLoading: true,
|
|
15066
|
-
},
|
|
15067
|
-
} }));
|
|
15068
|
-
const Loading$8 = () => (index.h("sqm-code-verification", { demoData: {
|
|
15069
|
-
states: {
|
|
15070
|
-
...defaultProps$l,
|
|
15071
|
-
loading: true,
|
|
15072
|
-
},
|
|
15073
|
-
} }));
|
|
15074
|
-
const CodeResent = () => (index.h("sqm-code-verification", { demoData: {
|
|
15075
|
-
states: {
|
|
15076
|
-
...defaultProps$l,
|
|
15077
|
-
emailResent: true,
|
|
15078
|
-
},
|
|
15079
|
-
} }));
|
|
15080
|
-
const VerificationFailed = () => (index.h("sqm-code-verification", { demoData: {
|
|
15081
|
-
states: {
|
|
15082
|
-
...defaultProps$l,
|
|
15083
|
-
verifyFailed: true,
|
|
15084
|
-
},
|
|
15085
|
-
} }));
|
|
15086
|
-
|
|
15087
|
-
const WidgetCodeVerification = /*#__PURE__*/Object.freeze({
|
|
15088
|
-
__proto__: null,
|
|
15089
|
-
'default': WidgetCodeVerification_stories,
|
|
15090
|
-
Default: Default$j,
|
|
15091
|
-
InitialLoading: InitialLoading,
|
|
15092
|
-
Loading: Loading$8,
|
|
15093
|
-
CodeResent: CodeResent,
|
|
15094
|
-
VerificationFailed: VerificationFailed
|
|
15095
|
-
});
|
|
15096
|
-
|
|
15097
|
-
const PayoutButtonScroll_stories = {
|
|
15098
|
-
title: "Components/Payout Scroll Button",
|
|
15099
|
-
};
|
|
15100
|
-
const defaultProps$m = {
|
|
15101
|
-
payoutSettingsComplete: true,
|
|
15102
|
-
};
|
|
15103
|
-
const CompletedTaxForm = () => (index.h("sqm-payout-button-scroll", { demoData: { states: { ...defaultProps$m, payoutSettingsComplete: true } } }));
|
|
15104
|
-
|
|
15105
|
-
const PayoutButtonScroll = /*#__PURE__*/Object.freeze({
|
|
15106
|
-
__proto__: null,
|
|
15107
|
-
'default': PayoutButtonScroll_stories,
|
|
15108
|
-
CompletedTaxForm: CompletedTaxForm
|
|
15109
|
-
});
|
|
15110
|
-
|
|
15111
|
-
const PayoutStatusAlert_stories = {
|
|
15112
|
-
title: "Components/Payout Status Alert",
|
|
15113
|
-
};
|
|
15114
|
-
const defaultProps$n = {
|
|
15115
|
-
error: false,
|
|
15116
|
-
status: "INFORMATION_REQUIRED",
|
|
15117
|
-
loading: false,
|
|
15118
|
-
showVerifyIdentity: false,
|
|
15119
|
-
};
|
|
15120
|
-
const InformationRequired = () => (index.h("sqm-payout-status-alert", { demoData: { states: defaultProps$n } }));
|
|
15121
|
-
const VerifyIdentity = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$n, status: "VERIFICATION_NEEDED" } } }));
|
|
15122
|
-
const VerifyIdentityOpen = () => (index.h("sqm-payout-status-alert", { demoData: {
|
|
15123
|
-
states: {
|
|
15124
|
-
...defaultProps$n,
|
|
15125
|
-
status: "VERIFICATION_NEEDED",
|
|
15126
|
-
showVerifyIdentity: true,
|
|
15127
|
-
},
|
|
15128
|
-
} }));
|
|
15129
|
-
const Hold = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$n, status: "HOLD" } } }));
|
|
15130
|
-
const Loading$9 = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$n, loading: true } } }));
|
|
15131
|
-
const Error$a = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$n, error: true } } }));
|
|
15132
|
-
|
|
15133
|
-
const PayoutStatusAlert = /*#__PURE__*/Object.freeze({
|
|
15134
|
-
__proto__: null,
|
|
15135
|
-
'default': PayoutStatusAlert_stories,
|
|
15136
|
-
InformationRequired: InformationRequired,
|
|
15137
|
-
VerifyIdentity: VerifyIdentity,
|
|
15138
|
-
VerifyIdentityOpen: VerifyIdentityOpen,
|
|
15139
|
-
Hold: Hold,
|
|
15140
|
-
Loading: Loading$9,
|
|
15141
|
-
Error: Error$a
|
|
15142
|
-
});
|
|
15143
|
-
|
|
15144
15135
|
/**
|
|
15145
15136
|
*
|
|
15146
15137
|
* Themes
|
|
@@ -17831,6 +17822,7 @@ const stories = [
|
|
|
17831
17822
|
ReferralIframe$1,
|
|
17832
17823
|
NameFields$1,
|
|
17833
17824
|
CheckboxField,
|
|
17825
|
+
MarketingEmailsCheckbox,
|
|
17834
17826
|
DropdownField,
|
|
17835
17827
|
InputField,
|
|
17836
17828
|
RewardExchangeList,
|
|
@@ -17864,10 +17856,7 @@ const stories = [
|
|
|
17864
17856
|
TaxFormSlots,
|
|
17865
17857
|
PayoutDetailsCard,
|
|
17866
17858
|
BankingInfoForm,
|
|
17867
|
-
|
|
17868
|
-
WidgetCodeVerification,
|
|
17869
|
-
PayoutButtonScroll,
|
|
17870
|
-
PayoutStatusAlert,
|
|
17859
|
+
NewPortalRegistrationForm,
|
|
17871
17860
|
];
|
|
17872
17861
|
const StencilStorybook = class {
|
|
17873
17862
|
constructor(hostRef) {
|