@saasquatch/mint-components 1.15.0-42 → 1.15.0-44
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-42af4b57.js → ShadowViewAddon-85d2eed4.js} +2 -2
- package/dist/cjs/{copy-text-view-af017955.js → copy-text-view-95cf4875.js} +14 -3
- package/dist/cjs/{global-b34bf5f2.js → global-2298fc8b.js} +73 -60
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-banking-info-form_17.cjs.entry.js +24 -7
- package/dist/cjs/sqm-big-stat_42.cjs.entry.js +11 -8
- package/dist/cjs/sqm-email-verification.cjs.entry.js +1 -1
- package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-invoice-table-view-deaf0385.js → sqm-invoice-table-view-90b2433f.js} +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-navigation-sidebar-item-view-06eb9721.js → sqm-navigation-sidebar-item-view-188bfc41.js} +5 -5
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +1 -1
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-email-verification-view-4100f28c.js → sqm-portal-email-verification-view-0a93a148.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-forgot-password-view-ba34601e.js → sqm-portal-forgot-password-view-7519a332.js} +7 -6
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +15 -7
- package/dist/cjs/sqm-portal-google-login.cjs.entry.js +3 -2
- package/dist/cjs/sqm-portal-login-view-bb50304c.js +58 -0
- package/dist/cjs/{sqm-portal-profile-view-1fc7fb29.js → sqm-portal-profile-view-44a83439.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +4 -23
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +21 -18
- package/dist/cjs/{usePortalLogin-bd975a79.js → usePortalLogin-e246988e.js} +0 -55
- package/dist/collection/components/sqm-instant-access-registration/sqm-instant-access-registration.js +1 -1
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.js +1 -1
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +3 -3
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.js +5 -5
- package/dist/collection/components/sqm-portal-forgot-password/PortalForgotPassword.stories.js +4 -4
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +7 -6
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +17 -10
- package/dist/collection/components/sqm-portal-login/PortalLogin.stories.js +2 -0
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +1 -1
- package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js +1 -0
- package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +1 -1
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +3 -22
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.js +2 -2
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +2 -2
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +1 -1
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +3 -3
- package/dist/collection/components/sqm-stencilbook/BrandSelector.js +4 -2
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +0 -2
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +3 -3
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +18 -1
- package/dist/collection/components/views/copy-text-view.js +14 -3
- package/dist/collection/global/styles.js +73 -60
- package/dist/collection/global/styles.ts +28 -12
- package/dist/esm/{ShadowViewAddon-173ce794.js → ShadowViewAddon-d59ef625.js} +2 -2
- package/dist/esm/{copy-text-view-38c7c3d5.js → copy-text-view-6dec9902.js} +14 -3
- package/dist/esm/{global-16971a34.js → global-2da1dcec.js} +73 -60
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-banking-info-form_17.entry.js +24 -7
- package/dist/esm/sqm-big-stat_42.entry.js +10 -7
- package/dist/esm/sqm-email-verification.entry.js +1 -1
- package/dist/esm/sqm-empty_4.entry.js +1 -1
- package/dist/esm/{sqm-invoice-table-view-e43241aa.js → sqm-invoice-table-view-df370e4a.js} +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm/{sqm-navigation-sidebar-item-view-48b224fa.js → sqm-navigation-sidebar-item-view-30c52ccd.js} +5 -5
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm/sqm-pagination_3.entry.js +2 -2
- package/dist/esm/{sqm-portal-email-verification-view-7ac99890.js → sqm-portal-email-verification-view-e38ec8cc.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
- package/dist/esm/{sqm-portal-forgot-password-view-2628bc62.js → sqm-portal-forgot-password-view-dc6b4f26.js} +7 -6
- package/dist/esm/sqm-portal-forgot-password.entry.js +15 -7
- package/dist/esm/sqm-portal-google-login.entry.js +2 -1
- package/dist/esm/sqm-portal-login-view-7670cd86.js +56 -0
- package/dist/esm/{sqm-portal-profile-view-c68753ea.js → sqm-portal-profile-view-e594d1ee.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +2 -2
- package/dist/esm/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm/sqm-rewards-table_9.entry.js +4 -23
- package/dist/esm/sqm-stencilbook.entry.js +21 -18
- package/dist/esm/{usePortalLogin-2b813acc.js → usePortalLogin-6b1951c6.js} +1 -55
- package/dist/esm-es5/{ShadowViewAddon-173ce794.js → ShadowViewAddon-d59ef625.js} +1 -1
- package/dist/esm-es5/copy-text-view-6dec9902.js +1 -0
- package/dist/esm-es5/{global-16971a34.js → global-2da1dcec.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_17.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_42.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/{sqm-invoice-table-view-e43241aa.js → sqm-invoice-table-view-df370e4a.js} +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-30c52ccd.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-7ac99890.js → sqm-portal-email-verification-view-e38ec8cc.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password-view-dc6b4f26.js +1 -0
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-google-login.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-login-view-7670cd86.js +1 -0
- package/dist/esm-es5/{sqm-portal-profile-view-c68753ea.js → sqm-portal-profile-view-e594d1ee.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/usePortalLogin-6b1951c6.js +1 -0
- package/dist/mint-components/global/styles.ts +28 -12
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-028d61de.entry.js → p-0019d57c.entry.js} +1 -1
- package/dist/mint-components/p-04cc08e7.system.entry.js +1 -0
- package/dist/mint-components/{p-1f6cfd37.js → p-097a255f.js} +1 -1
- package/dist/mint-components/p-16c55bb4.entry.js +205 -0
- package/dist/mint-components/p-1cd0e1e9.system.js +1 -0
- package/dist/mint-components/{p-4fc78f20.system.entry.js → p-232996b5.system.entry.js} +1 -1
- package/dist/mint-components/p-240bec23.js +1 -0
- package/dist/mint-components/{p-692e8ff2.system.entry.js → p-28aed7f7.system.entry.js} +1 -1
- package/dist/mint-components/{p-9daf835f.system.js → p-31b8f0ca.system.js} +1 -1
- package/dist/mint-components/{p-96d3900f.entry.js → p-4ce7e3b1.entry.js} +1 -1
- package/dist/mint-components/{p-cfa40c9b.system.entry.js → p-5125ec72.system.entry.js} +1 -1
- package/dist/mint-components/p-54212ad6.system.js +1 -0
- package/dist/mint-components/p-62d924e6.system.entry.js +1 -0
- package/dist/mint-components/{p-0d3e4788.entry.js → p-73069eba.entry.js} +1 -1
- package/dist/mint-components/{p-32e6850d.entry.js → p-761ee9ea.entry.js} +1 -1
- package/dist/mint-components/{p-e72c2b09.entry.js → p-7953c3da.entry.js} +1 -1
- package/dist/mint-components/{p-16dbd9cb.js → p-7aba33e1.js} +1 -1
- package/dist/mint-components/{p-27201067.system.js → p-7ae3ec51.system.js} +1 -1
- package/dist/mint-components/{p-1e07c5b4.system.js → p-7daa731c.system.js} +1 -1
- package/dist/mint-components/{p-3b7c875b.system.entry.js → p-7dac5a58.system.entry.js} +1 -1
- package/dist/mint-components/{p-29e61db2.entry.js → p-836d3ec7.entry.js} +2 -2
- package/dist/mint-components/p-92d706e7.entry.js +1 -0
- package/dist/mint-components/p-951ded9b.js +1 -0
- package/dist/mint-components/{p-968e5a9e.system.entry.js → p-9fcc7901.system.entry.js} +1 -1
- package/dist/mint-components/p-a121e5a1.system.entry.js +1 -0
- package/dist/mint-components/p-b0362941.js +1 -0
- package/dist/mint-components/{p-1238fbd0.js → p-b090bbd2.js} +1 -1
- package/dist/mint-components/p-b143d532.system.entry.js +1 -0
- package/dist/mint-components/p-b4eca678.js +1 -0
- package/dist/mint-components/{p-c9592908.system.entry.js → p-b6083f58.system.entry.js} +1 -1
- package/dist/mint-components/p-bd11230d.system.js +1 -0
- package/dist/mint-components/{p-2c637c26.system.js → p-bfe08ca4.system.js} +1 -1
- package/dist/mint-components/p-c53bd5bd.entry.js +9 -0
- package/dist/mint-components/{p-0a1666ef.system.entry.js → p-cc5f9775.system.entry.js} +1 -1
- package/dist/mint-components/p-cfce2cfa.system.js +1 -0
- package/dist/mint-components/{p-84f3732f.system.js → p-d49373b7.system.js} +1 -1
- package/dist/mint-components/{p-d63e5657.entry.js → p-d4e49019.entry.js} +2 -2
- package/dist/mint-components/{p-d533917f.system.entry.js → p-d7cbca3c.system.entry.js} +1 -1
- package/dist/mint-components/p-e05d092a.entry.js +1 -0
- package/dist/mint-components/{p-490864af.entry.js → p-e1e96de9.entry.js} +2 -2
- package/dist/mint-components/{p-d0de4b73.system.js → p-e53c3c6e.system.js} +1 -1
- package/dist/mint-components/{p-73b3e5a9.system.entry.js → p-e70d8201.system.entry.js} +1 -1
- package/dist/mint-components/p-f0368b8b.system.js +1 -0
- package/dist/mint-components/{p-c67034c1.entry.js → p-f2c48bc8.entry.js} +1 -1
- package/dist/mint-components/{p-2c227f02.js → p-f3558ef0.js} +1 -1
- package/dist/mint-components/{p-d2066cb0.js → p-f3a52eb6.js} +1 -1
- package/dist/mint-components/{p-88e3b87a.entry.js → p-f826665a.entry.js} +1 -1
- package/dist/mint-components/p-fa420231.js +1 -0
- package/dist/mint-components/{p-6b166700.system.entry.js → p-fad1752b.system.entry.js} +1 -1
- package/dist/types/components/sqm-instant-access-registration/sqm-instant-access-registration.d.ts +1 -1
- package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.d.ts +1 -1
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +3 -3
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.d.ts +0 -3
- package/dist/types/components/sqm-portal-login/PortalLogin.stories.d.ts +1 -0
- package/dist/types/components/sqm-referred-registration/sqm-referred-registration.d.ts +1 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.d.ts +2 -2
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +2 -2
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts +1 -1
- package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +3 -3
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +1 -1
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/shoelace/assets/icons/twitter-x.svg +4 -0
- package/dist/esm-es5/copy-text-view-38c7c3d5.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-48b224fa.js +0 -1
- package/dist/esm-es5/sqm-portal-forgot-password-view-2628bc62.js +0 -1
- package/dist/esm-es5/usePortalLogin-2b813acc.js +0 -1
- package/dist/mint-components/p-00673c96.js +0 -1
- package/dist/mint-components/p-0bf0409f.entry.js +0 -205
- package/dist/mint-components/p-34b652a9.system.js +0 -1
- package/dist/mint-components/p-492d810b.js +0 -1
- package/dist/mint-components/p-50bfb01f.system.entry.js +0 -1
- package/dist/mint-components/p-5cff2ac4.js +0 -1
- package/dist/mint-components/p-69e77f43.js +0 -1
- package/dist/mint-components/p-96c0860e.system.js +0 -1
- package/dist/mint-components/p-a09b2393.entry.js +0 -9
- package/dist/mint-components/p-a255bf0e.entry.js +0 -1
- package/dist/mint-components/p-be725c96.entry.js +0 -1
- package/dist/mint-components/p-db86c62e.system.entry.js +0 -1
- package/dist/mint-components/p-dbaab44b.system.js +0 -1
- package/dist/mint-components/p-dddac0ee.system.entry.js +0 -1
- package/dist/mint-components/p-f5a7697e.system.entry.js +0 -1
- package/dist/mint-components/p-f8df914b.system.js +0 -1
|
@@ -15,13 +15,14 @@ const vanillaStyle = `
|
|
|
15
15
|
}
|
|
16
16
|
`;
|
|
17
17
|
function PortalForgotPasswordView(props) {
|
|
18
|
-
const { states, callbacks, content
|
|
18
|
+
const { states, callbacks, content } = props;
|
|
19
19
|
const style = {
|
|
20
20
|
FormWrapper: {
|
|
21
21
|
...mixins.AuthWrapper,
|
|
22
|
-
background:
|
|
23
|
-
borderRadius:
|
|
24
|
-
border:
|
|
22
|
+
background: content.backgroundColor || "var(--sqm-portal-background)",
|
|
23
|
+
borderRadius: content.borderRadius || "var(--sqm-border-radius-normal)",
|
|
24
|
+
border: content.border ||
|
|
25
|
+
"var(--sqm-border-thickness) solid var(--sqm-border-color)",
|
|
25
26
|
},
|
|
26
27
|
Column: { ...mixins.AuthColumn },
|
|
27
28
|
ButtonsContainer: mixins.AuthButtonsContainer,
|
|
@@ -37,7 +38,7 @@ function PortalForgotPasswordView(props) {
|
|
|
37
38
|
index.h("style", { type: "text/css" },
|
|
38
39
|
vanillaStyle,
|
|
39
40
|
styleString),
|
|
40
|
-
index.h(sqmTextSpanView.TextSpanView, {
|
|
41
|
+
index.h(sqmTextSpanView.TextSpanView, { type: "h3" }, content.messageSlot),
|
|
41
42
|
index.h("sl-form", { class: sheet.classes.Column, "onSl-submit": callbacks.submit },
|
|
42
43
|
props.states.error && (index.h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
43
44
|
index.h("div", { part: "erroralert-text" }, props.states.error))),
|
|
@@ -46,7 +47,7 @@ function PortalForgotPasswordView(props) {
|
|
|
46
47
|
index.h("sl-input", { exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading, required: true }),
|
|
47
48
|
index.h("div", { class: sheet.classes.ButtonsContainer },
|
|
48
49
|
index.h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Reset Password"),
|
|
49
|
-
index.h("sl-button", { type: "
|
|
50
|
+
index.h("sl-button", { type: "secondary", exportparts: "base: secondarybutton-base", class: sheet.classes.SecondaryButton, disabled: states.loading, onClick: () => index_module.jn.push(states.loginPath) }, content.loginText)))));
|
|
50
51
|
}
|
|
51
52
|
|
|
52
53
|
exports.PortalForgotPasswordView = PortalForgotPasswordView;
|
|
@@ -10,7 +10,7 @@ const cjs = require('./cjs-1066ec21.js');
|
|
|
10
10
|
require('./JSS-8503a151.js');
|
|
11
11
|
require('./mixins-4761d472.js');
|
|
12
12
|
require('./sqm-text-span-view-7a61ae4c.js');
|
|
13
|
-
const sqmPortalForgotPasswordView = require('./sqm-portal-forgot-password-view-
|
|
13
|
+
const sqmPortalForgotPasswordView = require('./sqm-portal-forgot-password-view-7519a332.js');
|
|
14
14
|
|
|
15
15
|
function usePortalForgotPassword(props) {
|
|
16
16
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
@@ -107,12 +107,12 @@ const PortalForgotPassword = class {
|
|
|
107
107
|
* @uiName Border radius
|
|
108
108
|
* @uiWidget number
|
|
109
109
|
*/
|
|
110
|
-
this.borderRadius = "var(--sqm-border-radius-normal)";
|
|
110
|
+
this.borderRadius = "var(--sqm-border-radius-normal, 8px)";
|
|
111
111
|
/**
|
|
112
112
|
* @uiName Border style
|
|
113
113
|
* @uiWidget textArea
|
|
114
114
|
*/
|
|
115
|
-
this.border = "1px solid var(--sqm-border-color,
|
|
115
|
+
this.border = "1px solid var(--sqm-border-color, #eaeaea)";
|
|
116
116
|
stencilHooks_module.h$1(this);
|
|
117
117
|
}
|
|
118
118
|
disconnectedCallback() { }
|
|
@@ -121,19 +121,16 @@ const PortalForgotPassword = class {
|
|
|
121
121
|
? usePortalForgotPasswordDemo(this)
|
|
122
122
|
: usePortalForgotPassword(this);
|
|
123
123
|
const content = {
|
|
124
|
-
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.jn.push(states.loginPath) }, this.loginText))),
|
|
125
124
|
messageSlot: index.h("slot", { name: "messageSlot" }, this.headerText),
|
|
126
125
|
emailLabel: this.emailLabel,
|
|
127
126
|
submitLabel: this.submitLabel,
|
|
128
127
|
successAlertText: this.successAlertText,
|
|
129
128
|
loginText: this.loginText,
|
|
130
|
-
};
|
|
131
|
-
const styles = {
|
|
132
129
|
backgroundColor: this.backgroundColor,
|
|
133
130
|
borderRadius: this.borderRadius,
|
|
134
131
|
border: this.border,
|
|
135
132
|
};
|
|
136
|
-
return (index.h(sqmPortalForgotPasswordView.PortalForgotPasswordView, { states: states, callbacks: callbacks, content: content
|
|
133
|
+
return (index.h(sqmPortalForgotPasswordView.PortalForgotPasswordView, { states: states, callbacks: callbacks, content: content }));
|
|
137
134
|
}
|
|
138
135
|
};
|
|
139
136
|
function usePortalForgotPasswordDemo(props) {
|
|
@@ -142,6 +139,17 @@ function usePortalForgotPasswordDemo(props) {
|
|
|
142
139
|
callbacks: {
|
|
143
140
|
submit: async (_event) => { },
|
|
144
141
|
},
|
|
142
|
+
content: {
|
|
143
|
+
secondaryButton: (index.h("sl-button", { type: "secondary", exportparts: "base: secondarybutton-base", disabled: false, onClick: () => index_module.jn.push(props.loginPath) }, props.loginText)),
|
|
144
|
+
messageSlot: index.h("span", null, props.headerText),
|
|
145
|
+
emailLabel: props.emailLabel,
|
|
146
|
+
submitLabel: props.submitLabel,
|
|
147
|
+
successAlertText: props.successAlertText,
|
|
148
|
+
loginText: props.loginText,
|
|
149
|
+
backgroundColor: props.backgroundColor,
|
|
150
|
+
borderRadius: props.borderRadius,
|
|
151
|
+
border: props.border,
|
|
152
|
+
},
|
|
145
153
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
146
154
|
}
|
|
147
155
|
|
|
@@ -11,7 +11,8 @@ require('./utils-6847bc06.js');
|
|
|
11
11
|
const JSS = require('./JSS-8503a151.js');
|
|
12
12
|
require('./mixins-4761d472.js');
|
|
13
13
|
require('./sqm-text-span-view-7a61ae4c.js');
|
|
14
|
-
const
|
|
14
|
+
const sqmPortalLoginView = require('./sqm-portal-login-view-bb50304c.js');
|
|
15
|
+
const usePortalLogin = require('./usePortalLogin-e246988e.js');
|
|
15
16
|
|
|
16
17
|
const PortalGoogleLogin = class {
|
|
17
18
|
constructor(hostRef) {
|
|
@@ -100,7 +101,7 @@ const PortalGoogleLogin = class {
|
|
|
100
101
|
submitLabel: this.submitLabel,
|
|
101
102
|
pageLabel: this.pageLabel,
|
|
102
103
|
};
|
|
103
|
-
return (index.h(
|
|
104
|
+
return (index.h(sqmPortalLoginView.PortalLoginView, { states: states, callbacks: callbacks, content: content }));
|
|
104
105
|
}
|
|
105
106
|
};
|
|
106
107
|
function useLoginDemo(props) {
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('./index-a43a63b4.js');
|
|
4
|
+
const JSS = require('./JSS-8503a151.js');
|
|
5
|
+
const mixins = require('./mixins-4761d472.js');
|
|
6
|
+
const sqmTextSpanView = require('./sqm-text-span-view-7a61ae4c.js');
|
|
7
|
+
|
|
8
|
+
const style = {
|
|
9
|
+
Wrapper: mixins.AuthWrapper,
|
|
10
|
+
Column: mixins.AuthColumn,
|
|
11
|
+
ForgotButtonContainer: {
|
|
12
|
+
display: "inline",
|
|
13
|
+
cursor: "pointer",
|
|
14
|
+
"font-size": "13px",
|
|
15
|
+
"font-weight": "600",
|
|
16
|
+
color: "var(--sqm-text-subdued)",
|
|
17
|
+
margin: "0",
|
|
18
|
+
},
|
|
19
|
+
ButtonsContainer: {
|
|
20
|
+
...mixins.AuthButtonsContainer,
|
|
21
|
+
gap: "var(--sl-spacing-medium)",
|
|
22
|
+
"& > *": {
|
|
23
|
+
margin: "0 !important",
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
const vanillaStyle = `
|
|
28
|
+
:host {
|
|
29
|
+
display: block;
|
|
30
|
+
}
|
|
31
|
+
:host([hidden]): {
|
|
32
|
+
display: none;
|
|
33
|
+
}
|
|
34
|
+
`;
|
|
35
|
+
const sheet = JSS.createStyleSheet(style);
|
|
36
|
+
const styleString = sheet.toString();
|
|
37
|
+
function PortalLoginView(props) {
|
|
38
|
+
const { states, callbacks, content } = props;
|
|
39
|
+
return (index.h("div", { class: sheet.classes.Wrapper, part: "sqm-base" },
|
|
40
|
+
index.h("style", { type: "text/css" },
|
|
41
|
+
vanillaStyle,
|
|
42
|
+
styleString),
|
|
43
|
+
index.h(sqmTextSpanView.TextSpanView, { type: "h3" }, content.pageLabel),
|
|
44
|
+
index.h("sl-form", { class: sheet.classes.Column, "onSl-submit": callbacks.submit },
|
|
45
|
+
props.states.error && (index.h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
46
|
+
index.h("div", { part: "erroralert-text" }, props.states.error))),
|
|
47
|
+
index.h("sl-input", { exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading, required: true }),
|
|
48
|
+
index.h("div", null,
|
|
49
|
+
index.h("sl-input", { exportparts: "label: input-label, base: input-base", type: "password", name: "/password", label: content.passwordLabel || "Password", disabled: states.loading, required: true }),
|
|
50
|
+
index.h("div", { class: sheet.classes.ForgotButtonContainer }, content.forgotPasswordButton)),
|
|
51
|
+
index.h("div", { class: sheet.classes.ButtonsContainer },
|
|
52
|
+
index.h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Login"),
|
|
53
|
+
content.googleButton && index.h("sl-menu-divider", null),
|
|
54
|
+
content.googleButton,
|
|
55
|
+
content.secondaryButton))));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
exports.PortalLoginView = PortalLoginView;
|
package/dist/cjs/{sqm-portal-profile-view-1fc7fb29.js → sqm-portal-profile-view-44a83439.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const index = require('./index-a43a63b4.js');
|
|
4
|
-
const global = require('./global-
|
|
4
|
+
const global = require('./global-2298fc8b.js');
|
|
5
5
|
const JSS = require('./JSS-8503a151.js');
|
|
6
6
|
const sqmTextSpanView = require('./sqm-text-span-view-7a61ae4c.js');
|
|
7
7
|
|
|
@@ -4,13 +4,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-a43a63b4.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-62264802.js');
|
|
7
|
-
require('./global-
|
|
7
|
+
require('./global-2298fc8b.js');
|
|
8
8
|
const index_module = require('./index.module-39955732.js');
|
|
9
9
|
const cjs = require('./cjs-1066ec21.js');
|
|
10
10
|
const utils = require('./utils-6847bc06.js');
|
|
11
11
|
require('./JSS-8503a151.js');
|
|
12
12
|
require('./sqm-text-span-view-7a61ae4c.js');
|
|
13
|
-
const sqmPortalProfileView = require('./sqm-portal-profile-view-
|
|
13
|
+
const sqmPortalProfileView = require('./sqm-portal-profile-view-44a83439.js');
|
|
14
14
|
const utilities = require('./utilities-be3ce1f8.js');
|
|
15
15
|
|
|
16
16
|
const GET_USER = index_module.dist.gql `
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-a43a63b4.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-62264802.js');
|
|
7
|
-
const global = require('./global-
|
|
7
|
+
const global = require('./global-2298fc8b.js');
|
|
8
8
|
const index_module = require('./index.module-39955732.js');
|
|
9
9
|
const cjs = require('./cjs-1066ec21.js');
|
|
10
10
|
const utils = require('./utils-6847bc06.js');
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-a43a63b4.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-62264802.js');
|
|
7
|
-
const global = require('./global-
|
|
7
|
+
const global = require('./global-2298fc8b.js');
|
|
8
8
|
const index_module = require('./index.module-39955732.js');
|
|
9
9
|
const cjs = require('./cjs-1066ec21.js');
|
|
10
10
|
const utils = require('./utils-6847bc06.js');
|
|
@@ -983,21 +983,8 @@ const RewardTableStatusCell = class {
|
|
|
983
983
|
: rewardStatus === "DENIED"
|
|
984
984
|
? this.deniedText
|
|
985
985
|
: null;
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
// switch (badgeType) {
|
|
989
|
-
// case "primary":
|
|
990
|
-
// return sheet.classes.RedeemBadge;
|
|
991
|
-
// case "danger":
|
|
992
|
-
// return sheet.classes.DangerBadge;
|
|
993
|
-
// case "success":
|
|
994
|
-
// return sheet.classes.SuccessBadge;
|
|
995
|
-
// case "warning":
|
|
996
|
-
// case "info":
|
|
997
|
-
// return sheet.classes.WarningBadge;
|
|
998
|
-
// default:
|
|
999
|
-
// return sheet.classes.WarningBadge;
|
|
1000
|
-
// }
|
|
986
|
+
// AL: badgeType arg? TODO
|
|
987
|
+
const getBadgeCSSClass = (rewardStatus) => {
|
|
1001
988
|
switch (rewardStatus) {
|
|
1002
989
|
case "AVAILABLE":
|
|
1003
990
|
return sheet$1.classes.SuccessBadge;
|
|
@@ -1012,13 +999,7 @@ const RewardTableStatusCell = class {
|
|
|
1012
999
|
}
|
|
1013
1000
|
};
|
|
1014
1001
|
const badgeCSSClass = getBadgeCSSClass(badgeType);
|
|
1015
|
-
return (index.h("div", { style: { display: "contents" } }, index.h("style", { type: "text/css" }, styleString$1), index.h("sl-badge", { type: badgeType, pill: true,
|
|
1016
|
-
// class={
|
|
1017
|
-
// rewardStatus === "REDEEMED" || rewardStatus === "PAYOUT_APPROVED"
|
|
1018
|
-
// ? sheet.classes.RedeemBadge
|
|
1019
|
-
// : sheet.classes.Badge
|
|
1020
|
-
// }
|
|
1021
|
-
class: badgeCSSClass }, statusText), index.h("p", { class: sheet$1.classes.Date }, fraudStatusText ||
|
|
1002
|
+
return (index.h("div", { style: { display: "contents" } }, index.h("style", { type: "text/css" }, styleString$1), index.h("sl-badge", { type: badgeType, pill: true, class: badgeCSSClass }, statusText), index.h("p", { class: sheet$1.classes.Date }, fraudStatusText ||
|
|
1022
1003
|
pendingReasons ||
|
|
1023
1004
|
this.getPayoutStatusText(rewardStatus) ||
|
|
1024
1005
|
date)));
|
|
@@ -4,14 +4,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-a43a63b4.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-62264802.js');
|
|
7
|
-
require('./global-
|
|
7
|
+
require('./global-2298fc8b.js');
|
|
8
8
|
const index_module = require('./index.module-39955732.js');
|
|
9
9
|
require('./cjs-1066ec21.js');
|
|
10
10
|
require('./utils-6847bc06.js');
|
|
11
11
|
const JSS = require('./JSS-8503a151.js');
|
|
12
12
|
require('./useReferralCodes-a47dcbc2.js');
|
|
13
13
|
require('./mixins-4761d472.js');
|
|
14
|
-
const copyTextView = require('./copy-text-view-
|
|
14
|
+
const copyTextView = require('./copy-text-view-95cf4875.js');
|
|
15
15
|
const GenericTableView = require('./GenericTableView-107ade89.js');
|
|
16
16
|
require('./useChildElements-e5fa605c.js');
|
|
17
17
|
const luxon = require('./luxon-3b809948.js');
|
|
@@ -22,20 +22,21 @@ const emailRegistrationView = require('./email-registration-view-996fb438.js');
|
|
|
22
22
|
const sqmLeaderboardRankView = require('./sqm-leaderboard-rank-view-6a1e63de.js');
|
|
23
23
|
const sqmLogoutCurrentUserView = require('./sqm-logout-current-user-view-b61c8bdf.js');
|
|
24
24
|
const sqmNavigationSidebarView = require('./sqm-navigation-sidebar-view-50ee8796.js');
|
|
25
|
-
const sqmNavigationSidebarItemView = require('./sqm-navigation-sidebar-item-view-
|
|
26
|
-
const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-
|
|
27
|
-
const sqmPortalForgotPasswordView = require('./sqm-portal-forgot-password-view-
|
|
25
|
+
const sqmNavigationSidebarItemView = require('./sqm-navigation-sidebar-item-view-188bfc41.js');
|
|
26
|
+
const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-0a93a148.js');
|
|
27
|
+
const sqmPortalForgotPasswordView = require('./sqm-portal-forgot-password-view-7519a332.js');
|
|
28
|
+
const sqmPortalLoginView = require('./sqm-portal-login-view-bb50304c.js');
|
|
28
29
|
const sqmBaseRegistrationFormView = require('./sqm-base-registration-form-view-8847804c.js');
|
|
29
30
|
const sqmPortalRegistrationFormView = require('./sqm-portal-registration-form-view-5a96c2f5.js');
|
|
30
|
-
const sqmPortalProfileView = require('./sqm-portal-profile-view-
|
|
31
|
+
const sqmPortalProfileView = require('./sqm-portal-profile-view-44a83439.js');
|
|
31
32
|
require('./utilities-be3ce1f8.js');
|
|
32
33
|
const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-25eb2099.js');
|
|
33
34
|
const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-1c4e781f.js');
|
|
34
35
|
require('./ErrorView-5504c2b6.js');
|
|
35
36
|
const sqmQrCodeView = require('./sqm-qr-code-view-b18b42a8.js');
|
|
36
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
37
|
+
const ShadowViewAddon = require('./ShadowViewAddon-85d2eed4.js');
|
|
37
38
|
const sqmPortalContainerView = require('./sqm-portal-container-view-70eaf785.js');
|
|
38
|
-
const sqmInvoiceTableView = require('./sqm-invoice-table-view-
|
|
39
|
+
const sqmInvoiceTableView = require('./sqm-invoice-table-view-90b2433f.js');
|
|
39
40
|
|
|
40
41
|
/**
|
|
41
42
|
* lodash (Custom Build) <https://lodash.com/>
|
|
@@ -7402,6 +7403,7 @@ const googleProps = {
|
|
|
7402
7403
|
},
|
|
7403
7404
|
};
|
|
7404
7405
|
const Default$3 = () => (index.h("sqm-portal-login", { demoData: { ...defaultProps$2 } }));
|
|
7406
|
+
const Text = () => index.h(sqmPortalLoginView.PortalLoginView, Object.assign({}, defaultProps$2));
|
|
7405
7407
|
const IsGoogle = () => (index.h("sqm-portal-login", { demoData: { ...googleProps } }));
|
|
7406
7408
|
const LoginWithError = () => (index.h("sqm-portal-login", { demoData: { ...errorProps } }));
|
|
7407
7409
|
const LoginLoading = () => (index.h("sqm-portal-login", { demoData: { ...loadingProps } }));
|
|
@@ -7410,6 +7412,7 @@ const PortalLogin = /*#__PURE__*/Object.freeze({
|
|
|
7410
7412
|
__proto__: null,
|
|
7411
7413
|
'default': PortalLogin_stories,
|
|
7412
7414
|
Default: Default$3,
|
|
7415
|
+
Text: Text,
|
|
7413
7416
|
IsGoogle: IsGoogle,
|
|
7414
7417
|
LoginWithError: LoginWithError,
|
|
7415
7418
|
LoginLoading: LoginLoading
|
|
@@ -7551,6 +7554,7 @@ const PortalRegister = /*#__PURE__*/Object.freeze({
|
|
|
7551
7554
|
const PortalRegistrationForm_stories = {
|
|
7552
7555
|
title: "Components/Microsite Portal Register",
|
|
7553
7556
|
};
|
|
7557
|
+
// TODO: Figure out if we can delete this component and it's stories since we have a duplicate
|
|
7554
7558
|
const defaultProps$4 = {
|
|
7555
7559
|
states: {
|
|
7556
7560
|
error: "",
|
|
@@ -7656,7 +7660,7 @@ const TermsAndConditions$1 = () => (index.h(sqmPortalRegistrationFormView.Portal
|
|
|
7656
7660
|
index.h("a", { href: "https://example.com", target: "_blank" }, "Terms and Conditions"))),
|
|
7657
7661
|
} })));
|
|
7658
7662
|
|
|
7659
|
-
const
|
|
7663
|
+
const NewPortalRegistrationForm = /*#__PURE__*/Object.freeze({
|
|
7660
7664
|
__proto__: null,
|
|
7661
7665
|
'default': PortalRegistrationForm_stories,
|
|
7662
7666
|
Default: Default$5,
|
|
@@ -7687,7 +7691,7 @@ const defaultProps$5 = {
|
|
|
7687
7691
|
submit: async (e) => await e,
|
|
7688
7692
|
},
|
|
7689
7693
|
content: {
|
|
7690
|
-
|
|
7694
|
+
loginText: "Login",
|
|
7691
7695
|
messageSlot: "Enter your email below to receive a password reset link.",
|
|
7692
7696
|
},
|
|
7693
7697
|
};
|
|
@@ -7702,8 +7706,8 @@ const errorProps$3 = {
|
|
|
7702
7706
|
submit: async (e) => await e,
|
|
7703
7707
|
},
|
|
7704
7708
|
content: {
|
|
7705
|
-
secondaryButton: "Cancel",
|
|
7706
7709
|
messageSlot: "Enter your email below to receive a password reset link.",
|
|
7710
|
+
loginText: "Login",
|
|
7707
7711
|
},
|
|
7708
7712
|
};
|
|
7709
7713
|
const loadingProps$3 = {
|
|
@@ -7717,7 +7721,7 @@ const loadingProps$3 = {
|
|
|
7717
7721
|
submit: async (e) => await e,
|
|
7718
7722
|
},
|
|
7719
7723
|
content: {
|
|
7720
|
-
|
|
7724
|
+
loginText: "Login",
|
|
7721
7725
|
messageSlot: "Enter your email below to receive a password reset link.",
|
|
7722
7726
|
},
|
|
7723
7727
|
};
|
|
@@ -7732,7 +7736,7 @@ const successProps = {
|
|
|
7732
7736
|
submit: async (e) => await e,
|
|
7733
7737
|
},
|
|
7734
7738
|
content: {
|
|
7735
|
-
|
|
7739
|
+
loginText: "Login",
|
|
7736
7740
|
messageSlot: "Enter your email below to receive a password reset link.",
|
|
7737
7741
|
},
|
|
7738
7742
|
};
|
|
@@ -10355,7 +10359,7 @@ const LoginReadme = "# sqm-portal-login\n\n\n\n<!-- Auto Generated Below -->\n\n
|
|
|
10355
10359
|
|
|
10356
10360
|
const ReferralIframeReadme = "# sqm-referral-iframe\n\n\n\n<!-- Auto Generated Below -->\n\n\n## Properties\n\n| Property | Attribute | Description | Type | Default |\n| -------------- | --------------- | ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ | ----------- |\n| `demoData` | -- | | `{ states?: { content: { iframeSrc: string; iframeHeight: string; iframeWidth: string; }; }; data?: { shareCode: string; }; }` | `undefined` |\n| `iframeHeight` | `iframe-height` | Define the height of the iframe with any valid CSS height value. Example: 100px, 5rem, or auto. | `string` | `\"100%\"` |\n| `iframeSrc` | `iframe-src` | URL of iframe to display | `string` | `undefined` |\n| `iframeWidth` | `iframe-width` | Define the width of the iframe with any valid CSS width value. Example: 100px, 5rem, or auto. | `string` | `\"100%\"` |\n\n\n## Dependencies\n\n### Used by\n\n - [sqm-stencilbook](../sqm-stencilbook)\n\n### Graph\n```mermaid\ngraph TD;\n sqm-stencilbook --> sqm-referral-iframe\n style sqm-referral-iframe fill:#f9f,stroke:#333,stroke-width:4px\n```\n\n----------------------------------------------\n\n*Built with [StencilJS](https://stenciljs.com/)*\n";
|
|
10357
10361
|
|
|
10358
|
-
const ForgotPasswordReadme = "# sqm-portal-forgot-password\n\n\n\n<!-- Auto Generated Below -->\n\n\n## Properties\n\n| Property | Attribute | Description | Type
|
|
10362
|
+
const ForgotPasswordReadme = "# sqm-portal-forgot-password\n\n\n\n<!-- Auto Generated Below -->\n\n\n## Properties\n\n| Property | Attribute | Description | Type | Default |\n| --------------------- | ----------------------- | -------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ |\n| `backgroundColor` | `background-color` | | `string` | `\"var(--sqm-portal-background, #ffffff)\"` |\n| `border` | `border` | | `string` | `\"1px solid var(--sqm-border-color, #eaeaea)\"` |\n| `borderRadius` | `border-radius` | | `string` | `\"var(--sqm-border-radius-normal, 8px)\"` |\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; success: boolean; loginPath: string; }; content?: { messageSlot: any; emailLabel?: string; submitLabel?: string; successAlertText?: string; loginText?: string; backgroundColor?: string; borderRadius?: string; border?: string; textColor?: string; }; }` | `undefined` |\n| `emailLabel` | `email-label` | | `string` | `\"Email\"` |\n| `headerText` | `header-text` | | `string` | `\"Enter your email below to receive a password reset link.\"` |\n| `loginPath` | `login-path` | | `string` | `\"/login\"` |\n| `loginText` | `login-text` | | `string` | `\"Sign In\"` |\n| `networkErrorMessage` | `network-error-message` | Displayed when the forgot password action fails due to a network error. The participant can try refreshing the page. | `string` | `\"An error occurred while loading this page. Please refresh the page.\"` |\n| `redirectPath` | `redirect-path` | Redirect participants to this page after they verify their email. | `string` | `\"/resetPassword\"` |\n| `submitLabel` | `submit-label` | | `string` | `\"Request Password Reset\"` |\n| `successAlertText` | `success-alert-text` | | `string` | `\"If an account with that email exists, a password reset email will be sent.\"` |\n\n\n## Dependencies\n\n### Depends on\n\n- [sqm-form-message](../sqm-form-message)\n\n### Graph\n```mermaid\ngraph TD;\n sqm-portal-forgot-password --> sqm-form-message\n style sqm-portal-forgot-password fill:#f9f,stroke:#333,stroke-width:4px\n```\n\n----------------------------------------------\n\n*Built with [StencilJS](https://stenciljs.com/)*\n";
|
|
10359
10363
|
|
|
10360
10364
|
const RegisterReadme = "# sqm-portal-register\n\n\n\n<!-- Auto Generated Below -->\n\n\n## Properties\n\n| Property | Attribute | Description | Type | Default |\n| ------------------------------ | --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------- |\n| `confirmPassword` | `confirm-password` | | `boolean` | `false` |\n| `confirmPasswordLabel` | `confirm-password-label` | | `string` | `\"Confirm Password\"` |\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; confirmPassword: boolean; hideInputs: boolean; registrationFormState: RegistrationFormState; disablePasswordValidation?: boolean; loginPath: string; }; refs?: { formRef: any; }; content?: { formData?: VNode; terms?: VNode; passwordField?: VNode; secondaryButton?: VNode; emailLabel?: string; passwordLabel?: string; submitLabel?: string; pageLabel?: string; confirmPasswordLabel: string; requiredFieldErrorMessage: string; invalidEmailErrorMessage: string; meetsRequirementsText?: string; doesNotMeetRequirementsText?: string; minErrorText?: string; uppercaseErrorText?: string; lowercaseErrorText?: string; hasErrorText?: string; }; }` | `undefined` |\n| `disablePasswordValidation` | `disable-password-validation` | | `boolean` | `false` |\n| `doesNotMeetRequirementsText` | `does-not-meet-requirements-text` | | `string` | `\"Password must meet the following requirements:\"` |\n| `emailLabel` | `email-label` | | `string` | `\"Email\"` |\n| `hasErrorText` | `has-error-text` | | `string` | `\"contain at least 1 number or symbol\"` |\n| `hideInputs` | `hide-inputs` | Hides the email and password fields. Note: If you hide default inputs, you must add additional input fields. They must have the input name attributes \"email\" and \"password\" for this form to succeed. | `boolean` | `false` |\n| `invalidEmailErrorMessage` | `invalid-email-error-message` | The message to be displayed when the email used is invalid or blocked. | `string` | `\"Must be a valid email address\"` |\n| `loginLabel` | `login-label` | | `string` | `\"Sign in\"` |\n| `loginPath` | `login-path` | Redirect participants to this page after clicking the login button. | `string` | `\"/login\"` |\n| `lowercaseErrorText` | `lowercase-error-text` | | `string` | `\"contain at least 1 lowercase character\"` |\n| `meetsRequirementsText` | `meets-requirements-text` | | `string` | `\"Password has met all requirements\"` |\n| `minErrorText` | `min-error-text` | | `string` | `\"be a minimum of 8 characters\"` |\n| `networkErrorMessage` | `network-error-message` | The message to be displayed when a the form submission fails unexpectedly. | `string` | `\"Network request failed.\"` |\n| `nextPage` | `next-page` | Redirect participants to this page from their verification email | `string` | `\"/\"` |\n| `pageLabel` | `page-label` | | `string` | `\"Register\"` |\n| `passwordLabel` | `password-label` | | `string` | `\"Password\"` |\n| `passwordMismatchErrorMessage` | `password-mismatch-error-message` | The message to be displayed when password inputs do not match. | `string` | `\"Passwords do not match.\"` |\n| `redirectPath` | `redirect-path` | The page that participants are redirected to from the verification email. | `string` | `\"/verifyEmail\"` |\n| `requiredFieldErrorMessage` | `required-field-error-message` | The message to be displayed when a required field is not filled. | `string` | `\"Cannot be empty\"` |\n| `submitLabel` | `submit-label` | | `string` | `\"Register\"` |\n| `uppercaseErrorText` | `uppercase-error-text` | | `string` | `\"contain at least 1 uppercase character\"` |\n\n\n## Dependencies\n\n### Used by\n\n - [sqm-stencilbook](../sqm-stencilbook)\n\n### Depends on\n\n- [sqm-form-message](../sqm-form-message)\n- [sqm-password-field](../sqm-password-field)\n\n### Graph\n```mermaid\ngraph TD;\n sqm-portal-register --> sqm-form-message\n sqm-portal-register --> sqm-password-field\n sqm-stencilbook --> sqm-portal-register\n style sqm-portal-register fill:#f9f,stroke:#333,stroke-width:4px\n```\n\n----------------------------------------------\n\n*Built with [StencilJS](https://stenciljs.com/)*\n";
|
|
10361
10365
|
|
|
@@ -15875,7 +15879,7 @@ const CustomFontSize = () => {
|
|
|
15875
15879
|
index.h("p", null, "This is the text component")));
|
|
15876
15880
|
};
|
|
15877
15881
|
|
|
15878
|
-
const Text = /*#__PURE__*/Object.freeze({
|
|
15882
|
+
const Text$1 = /*#__PURE__*/Object.freeze({
|
|
15879
15883
|
__proto__: null,
|
|
15880
15884
|
'default': Text_stories,
|
|
15881
15885
|
PurpleText: PurpleText,
|
|
@@ -18554,17 +18558,16 @@ const stories = [
|
|
|
18554
18558
|
TaxFormSlots,
|
|
18555
18559
|
PayoutDetailsCard,
|
|
18556
18560
|
BankingInfoForm,
|
|
18557
|
-
|
|
18561
|
+
NewPortalRegistrationForm,
|
|
18558
18562
|
ChangeMarketing,
|
|
18559
18563
|
BaseRegistrationForm,
|
|
18560
|
-
PortalRegistrationForm,
|
|
18561
18564
|
PortalGoogleRegistrationFormStories,
|
|
18562
18565
|
WidgetEmailVerification,
|
|
18563
18566
|
WidgetCodeVerification,
|
|
18564
18567
|
PayoutButtonScroll,
|
|
18565
18568
|
PayoutStatusAlert,
|
|
18566
18569
|
QRCode,
|
|
18567
|
-
Text,
|
|
18570
|
+
Text$1,
|
|
18568
18571
|
];
|
|
18569
18572
|
const StencilStorybook = class {
|
|
18570
18573
|
constructor(hostRef) {
|
|
@@ -1,63 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-a43a63b4.js');
|
|
4
3
|
const stencilHooks_module = require('./stencil-hooks.module-62264802.js');
|
|
5
4
|
const index_module = require('./index.module-39955732.js');
|
|
6
5
|
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
7
6
|
const utils = require('./utils-6847bc06.js');
|
|
8
|
-
const JSS = require('./JSS-8503a151.js');
|
|
9
|
-
const mixins = require('./mixins-4761d472.js');
|
|
10
|
-
const sqmTextSpanView = require('./sqm-text-span-view-7a61ae4c.js');
|
|
11
|
-
|
|
12
|
-
const style = {
|
|
13
|
-
Wrapper: mixins.AuthWrapper,
|
|
14
|
-
Column: mixins.AuthColumn,
|
|
15
|
-
ForgotButtonContainer: {
|
|
16
|
-
display: "inline",
|
|
17
|
-
cursor: "pointer",
|
|
18
|
-
"font-size": "13px",
|
|
19
|
-
"font-weight": "600",
|
|
20
|
-
color: "var(--sqm-text-subdued)",
|
|
21
|
-
margin: "0",
|
|
22
|
-
},
|
|
23
|
-
ButtonsContainer: {
|
|
24
|
-
...mixins.AuthButtonsContainer,
|
|
25
|
-
gap: "var(--sl-spacing-medium)",
|
|
26
|
-
"& > *": {
|
|
27
|
-
margin: "0 !important",
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
const vanillaStyle = `
|
|
32
|
-
:host {
|
|
33
|
-
display: block;
|
|
34
|
-
}
|
|
35
|
-
:host([hidden]): {
|
|
36
|
-
display: none;
|
|
37
|
-
}
|
|
38
|
-
`;
|
|
39
|
-
const sheet = JSS.createStyleSheet(style);
|
|
40
|
-
const styleString = sheet.toString();
|
|
41
|
-
function PortalLoginView(props) {
|
|
42
|
-
const { states, callbacks, content } = props;
|
|
43
|
-
return (index.h("div", { class: sheet.classes.Wrapper, part: "sqm-base" },
|
|
44
|
-
index.h("style", { type: "text/css" },
|
|
45
|
-
vanillaStyle,
|
|
46
|
-
styleString),
|
|
47
|
-
index.h(sqmTextSpanView.TextSpanView, { type: "h3" }, content.pageLabel),
|
|
48
|
-
index.h("sl-form", { class: sheet.classes.Column, "onSl-submit": callbacks.submit },
|
|
49
|
-
props.states.error && (index.h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
50
|
-
index.h("div", { part: "erroralert-text" }, props.states.error))),
|
|
51
|
-
index.h("sl-input", { exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading, required: true }),
|
|
52
|
-
index.h("div", null,
|
|
53
|
-
index.h("sl-input", { exportparts: "label: input-label, base: input-base", type: "password", name: "/password", label: content.passwordLabel || "Password", disabled: states.loading, required: true }),
|
|
54
|
-
index.h("div", { class: sheet.classes.ForgotButtonContainer }, content.forgotPasswordButton)),
|
|
55
|
-
index.h("div", { class: sheet.classes.ButtonsContainer },
|
|
56
|
-
index.h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Login"),
|
|
57
|
-
content.googleButton && index.h("sl-menu-divider", null),
|
|
58
|
-
content.googleButton,
|
|
59
|
-
content.secondaryButton))));
|
|
60
|
-
}
|
|
61
7
|
|
|
62
8
|
function usePortalLogin(props) {
|
|
63
9
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
@@ -125,5 +71,4 @@ function usePortalLogin(props) {
|
|
|
125
71
|
};
|
|
126
72
|
}
|
|
127
73
|
|
|
128
|
-
exports.PortalLoginView = PortalLoginView;
|
|
129
74
|
exports.usePortalLogin = usePortalLogin;
|
|
@@ -9,7 +9,7 @@ import { useInstantAccessRegistration } from "./useInstantAccessRegistration";
|
|
|
9
9
|
* @validParents ["sqm-portal-container","div","sqm-hero","template", "sqb-program-section", "sqb-conditional-section"]
|
|
10
10
|
* @compatibility Built for instant access
|
|
11
11
|
* @exampleGroup Instant Access
|
|
12
|
-
* @example
|
|
12
|
+
* @example Advocate Registration - <sqm-instant-access-registration></sqm-instant-access-registration>
|
|
13
13
|
* @slots [{"name":"top","title":"Top Content"},{"name":"bottom","title":"Bottom Content"}]
|
|
14
14
|
*/
|
|
15
15
|
export class InstantAccessRegistration {
|
package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.js
CHANGED
|
@@ -5,7 +5,7 @@ import { useRequestRerender } from "../../../tables/re-render";
|
|
|
5
5
|
* @uiName Invoice Table Date Column
|
|
6
6
|
* @validParents ["sqm-invoice-table"]
|
|
7
7
|
* @exampleGroup Invoices
|
|
8
|
-
* @example
|
|
8
|
+
* @example Date Column - <sqm-invoice-table-date-column column-title="Date converted" date-shown="dateConverted"></sqm-invoice-table-date-column>
|
|
9
9
|
*/
|
|
10
10
|
export class InvoiceTableDateColumn {
|
|
11
11
|
constructor() {
|
|
@@ -11,9 +11,9 @@ import { useLeaderboard } from "./useLeaderboard";
|
|
|
11
11
|
* @slots [{"name":"empty", "title":"Empty State"}]
|
|
12
12
|
* @requiredFeatures ["LEADERBOARDS"]
|
|
13
13
|
* @exampleGroup Leaderboard
|
|
14
|
-
* @example Referral Started
|
|
15
|
-
* @example Referral Converted
|
|
16
|
-
* @example Points Earned
|
|
14
|
+
* @example Referral Started - <sqm-leaderboard usersheading="Referrer" rank-suffix="{rank, selectordinal, one {#st} two {#nd} few {#rd} other {#th}}" statsheading="Referrals" rank-type="rank" leaderboard-type="topStartedReferrers" rankheading="Rank" show-rank="true"><sqm-empty empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png" empty-state-header="View your rank in the leaderboard" empty-state-text="Be the first to refer a friend and reach the top of the leaderboard" ></sqm-empty></sqm-leaderboard>
|
|
15
|
+
* @example Referral Converted - <sqm-leaderboard usersheading="Referrer" rank-suffix="{rank, selectordinal, one {#st} two {#nd} few {#rd} other {#th}}" statsheading="Referrals" rank-type="rank" leaderboard-type="topConvertedReferrers" rankheading="Rank" show-rank="true"><sqm-empty empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png" empty-state-header="View your rank in the leaderboard" empty-state-text="Be the first to refer a friend and reach the top of the leaderboard" ></sqm-empty></sqm-leaderboard>
|
|
16
|
+
* @example Points Earned - <sqm-leaderboard usersheading="Name" rank-suffix="{rank, selectordinal, one {#st} two {#nd} few {#rd} other {#th}}" statsheading="Points" rank-type="rank" leaderboard-type="topPointEarners" rankheading="Rank" show-rank="true"><sqm-empty empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png" empty-state-header="View your rank in the leaderboard" empty-state-text="Be the first to refer a friend and reach the top of the leaderboard" ></sqm-empty></sqm-leaderboard>
|
|
17
17
|
* @example Anonymous Leaderboard - <div style="display: flex; align-items: flex-start; justify-content: center; width: 100%; gap: 50px;"><div style="display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; max-width: 30%;"><sqm-image width="70%" alignment="center" image-url="https://res.cloudinary.com/saasquatch-staging/image/upload/v1729728469/Leaderboard_image_z87lsm.png"></sqm-image><h2 style="margin: auto;">Top Performers</h2><p style="margin: 0; text-align: center;">The leaderboard highlights the top performers in real-time. Stay motivated, stay competitive!</p></div><sqm-leaderboard width="300px" usersheading="Referrer" rank-suffix="{rank, selectordinal, one {#st} two {#nd} few {#rd} other {#th}}" statsheading="Referrals" rank-type="rank" leaderboard-type="topStartedReferrers" rankheading="Rank" show-rank="true" hide-names="true" hide-viewer="true"><sqm-empty empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png" empty-state-header="View your rank in the leaderboard" empty-state-text="Be the first to refer a friend and reach the top of the leaderboard"></sqm-empty></sqm-leaderboard></div>
|
|
18
18
|
* @featureTooltip <div>Motivate your participants by gamifying your program. Contact <a href="mailto:saasquatch-support%40impact.com?subject=Next steps for Leaderboards feature&body=Hi Support Team, %0D%0A%0D%0A I am interested in learning more about how Leaderboards can support the growth of our referral program. Please connect me with a program strategy manager to discuss this feature further, and determine the next steps.%0D%0A%0D%0A%0D%0AThank you,%0D%0A[Add your name here]">Support</a> to upgrade your plan and add a leaderboard.</div>
|
|
19
19
|
*/
|