@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
|
@@ -6,7 +6,7 @@ import { c as cjs } from './cjs-bdfb4486.js';
|
|
|
6
6
|
import './JSS-67b5cff8.js';
|
|
7
7
|
import './mixins-f750863a.js';
|
|
8
8
|
import './sqm-text-span-view-4c17b8c9.js';
|
|
9
|
-
import { P as PortalForgotPasswordView } from './sqm-portal-forgot-password-view-
|
|
9
|
+
import { P as PortalForgotPasswordView } from './sqm-portal-forgot-password-view-dc6b4f26.js';
|
|
10
10
|
|
|
11
11
|
function usePortalForgotPassword(props) {
|
|
12
12
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
@@ -103,12 +103,12 @@ const PortalForgotPassword = class {
|
|
|
103
103
|
* @uiName Border radius
|
|
104
104
|
* @uiWidget number
|
|
105
105
|
*/
|
|
106
|
-
this.borderRadius = "var(--sqm-border-radius-normal)";
|
|
106
|
+
this.borderRadius = "var(--sqm-border-radius-normal, 8px)";
|
|
107
107
|
/**
|
|
108
108
|
* @uiName Border style
|
|
109
109
|
* @uiWidget textArea
|
|
110
110
|
*/
|
|
111
|
-
this.border = "1px solid var(--sqm-border-color,
|
|
111
|
+
this.border = "1px solid var(--sqm-border-color, #eaeaea)";
|
|
112
112
|
h(this);
|
|
113
113
|
}
|
|
114
114
|
disconnectedCallback() { }
|
|
@@ -117,19 +117,16 @@ const PortalForgotPassword = class {
|
|
|
117
117
|
? usePortalForgotPasswordDemo(this)
|
|
118
118
|
: usePortalForgotPassword(this);
|
|
119
119
|
const content = {
|
|
120
|
-
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () => jn.push(states.loginPath) }, this.loginText))),
|
|
121
120
|
messageSlot: h$1("slot", { name: "messageSlot" }, this.headerText),
|
|
122
121
|
emailLabel: this.emailLabel,
|
|
123
122
|
submitLabel: this.submitLabel,
|
|
124
123
|
successAlertText: this.successAlertText,
|
|
125
124
|
loginText: this.loginText,
|
|
126
|
-
};
|
|
127
|
-
const styles = {
|
|
128
125
|
backgroundColor: this.backgroundColor,
|
|
129
126
|
borderRadius: this.borderRadius,
|
|
130
127
|
border: this.border,
|
|
131
128
|
};
|
|
132
|
-
return (h$1(PortalForgotPasswordView, { states: states, callbacks: callbacks, content: content
|
|
129
|
+
return (h$1(PortalForgotPasswordView, { states: states, callbacks: callbacks, content: content }));
|
|
133
130
|
}
|
|
134
131
|
};
|
|
135
132
|
function usePortalForgotPasswordDemo(props) {
|
|
@@ -138,6 +135,17 @@ function usePortalForgotPasswordDemo(props) {
|
|
|
138
135
|
callbacks: {
|
|
139
136
|
submit: async (_event) => { },
|
|
140
137
|
},
|
|
138
|
+
content: {
|
|
139
|
+
secondaryButton: (h$1("sl-button", { type: "secondary", exportparts: "base: secondarybutton-base", disabled: false, onClick: () => jn.push(props.loginPath) }, props.loginText)),
|
|
140
|
+
messageSlot: h$1("span", null, props.headerText),
|
|
141
|
+
emailLabel: props.emailLabel,
|
|
142
|
+
submitLabel: props.submitLabel,
|
|
143
|
+
successAlertText: props.successAlertText,
|
|
144
|
+
loginText: props.loginText,
|
|
145
|
+
backgroundColor: props.backgroundColor,
|
|
146
|
+
borderRadius: props.borderRadius,
|
|
147
|
+
border: props.border,
|
|
148
|
+
},
|
|
141
149
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
142
150
|
}
|
|
143
151
|
|
|
@@ -7,7 +7,8 @@ import './utils-334c1e34.js';
|
|
|
7
7
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
8
8
|
import './mixins-f750863a.js';
|
|
9
9
|
import './sqm-text-span-view-4c17b8c9.js';
|
|
10
|
-
import {
|
|
10
|
+
import { P as PortalLoginView } from './sqm-portal-login-view-7670cd86.js';
|
|
11
|
+
import { u as usePortalLogin } from './usePortalLogin-6b1951c6.js';
|
|
11
12
|
|
|
12
13
|
const PortalGoogleLogin = class {
|
|
13
14
|
constructor(hostRef) {
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { h } from './index-b3a06de8.js';
|
|
2
|
+
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
3
|
+
import { A as AuthWrapper, a as AuthColumn, b as AuthButtonsContainer } from './mixins-f750863a.js';
|
|
4
|
+
import { T as TextSpanView } from './sqm-text-span-view-4c17b8c9.js';
|
|
5
|
+
|
|
6
|
+
const style = {
|
|
7
|
+
Wrapper: AuthWrapper,
|
|
8
|
+
Column: AuthColumn,
|
|
9
|
+
ForgotButtonContainer: {
|
|
10
|
+
display: "inline",
|
|
11
|
+
cursor: "pointer",
|
|
12
|
+
"font-size": "13px",
|
|
13
|
+
"font-weight": "600",
|
|
14
|
+
color: "var(--sqm-text-subdued)",
|
|
15
|
+
margin: "0",
|
|
16
|
+
},
|
|
17
|
+
ButtonsContainer: {
|
|
18
|
+
...AuthButtonsContainer,
|
|
19
|
+
gap: "var(--sl-spacing-medium)",
|
|
20
|
+
"& > *": {
|
|
21
|
+
margin: "0 !important",
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
const vanillaStyle = `
|
|
26
|
+
:host {
|
|
27
|
+
display: block;
|
|
28
|
+
}
|
|
29
|
+
:host([hidden]): {
|
|
30
|
+
display: none;
|
|
31
|
+
}
|
|
32
|
+
`;
|
|
33
|
+
const sheet = createStyleSheet(style);
|
|
34
|
+
const styleString = sheet.toString();
|
|
35
|
+
function PortalLoginView(props) {
|
|
36
|
+
const { states, callbacks, content } = props;
|
|
37
|
+
return (h("div", { class: sheet.classes.Wrapper, part: "sqm-base" },
|
|
38
|
+
h("style", { type: "text/css" },
|
|
39
|
+
vanillaStyle,
|
|
40
|
+
styleString),
|
|
41
|
+
h(TextSpanView, { type: "h3" }, content.pageLabel),
|
|
42
|
+
h("sl-form", { class: sheet.classes.Column, "onSl-submit": callbacks.submit },
|
|
43
|
+
props.states.error && (h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
44
|
+
h("div", { part: "erroralert-text" }, props.states.error))),
|
|
45
|
+
h("sl-input", { exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading, required: true }),
|
|
46
|
+
h("div", null,
|
|
47
|
+
h("sl-input", { exportparts: "label: input-label, base: input-base", type: "password", name: "/password", label: content.passwordLabel || "Password", disabled: states.loading, required: true }),
|
|
48
|
+
h("div", { class: sheet.classes.ForgotButtonContainer }, content.forgotPasswordButton)),
|
|
49
|
+
h("div", { class: sheet.classes.ButtonsContainer },
|
|
50
|
+
h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Login"),
|
|
51
|
+
content.googleButton && h("sl-menu-divider", null),
|
|
52
|
+
content.googleButton,
|
|
53
|
+
content.secondaryButton))));
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export { PortalLoginView as P };
|
package/dist/esm/{sqm-portal-profile-view-c68753ea.js → sqm-portal-profile-view-e594d1ee.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from './index-b3a06de8.js';
|
|
2
|
-
import { i as intl } from './global-
|
|
2
|
+
import { i as intl } from './global-2da1dcec.js';
|
|
3
3
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
4
4
|
import { T as TextSpanView } from './sqm-text-span-view-4c17b8c9.js';
|
|
5
5
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-b3a06de8.js';
|
|
2
2
|
import { k as useState, f as useEffect, n as h } from './stencil-hooks.module-20ad2b5f.js';
|
|
3
|
-
import './global-
|
|
3
|
+
import './global-2da1dcec.js';
|
|
4
4
|
import { d as dist, J, w as wn, $ as $e, i as isDemo } from './index.module-d49ae5e7.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import { g as getProps } from './utils-334c1e34.js';
|
|
7
7
|
import './JSS-67b5cff8.js';
|
|
8
8
|
import './sqm-text-span-view-4c17b8c9.js';
|
|
9
|
-
import { P as PortalProfileView } from './sqm-portal-profile-view-
|
|
9
|
+
import { P as PortalProfileView } from './sqm-portal-profile-view-e594d1ee.js';
|
|
10
10
|
import { i as isEmpty } from './utilities-6341d9fd.js';
|
|
11
11
|
|
|
12
12
|
const GET_USER = dist.gql `
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, g as getElement, c as Host } from './index-b3a06de8.js';
|
|
2
2
|
import { n as h, j as useReducer, u as useMemo, f as useEffect } from './stencil-hooks.module-20ad2b5f.js';
|
|
3
|
-
import { i as intl } from './global-
|
|
3
|
+
import { i as intl } from './global-2da1dcec.js';
|
|
4
4
|
import { i as isDemo } from './index.module-d49ae5e7.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import { l as luxonLocale } from './utils-334c1e34.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as Host } from './index-b3a06de8.js';
|
|
2
2
|
import { b as browser, j as useReducer, f as useEffect, n as h$1, u as useMemo } from './stencil-hooks.module-20ad2b5f.js';
|
|
3
|
-
import { i as intl } from './global-
|
|
3
|
+
import { i as intl } from './global-2da1dcec.js';
|
|
4
4
|
import { d as dist, J, H, L, w as wn, R as Rn, i as isDemo } from './index.module-d49ae5e7.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import { l as luxonLocale } from './utils-334c1e34.js';
|
|
@@ -979,21 +979,8 @@ const RewardTableStatusCell = class {
|
|
|
979
979
|
: rewardStatus === "DENIED"
|
|
980
980
|
? this.deniedText
|
|
981
981
|
: null;
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
// switch (badgeType) {
|
|
985
|
-
// case "primary":
|
|
986
|
-
// return sheet.classes.RedeemBadge;
|
|
987
|
-
// case "danger":
|
|
988
|
-
// return sheet.classes.DangerBadge;
|
|
989
|
-
// case "success":
|
|
990
|
-
// return sheet.classes.SuccessBadge;
|
|
991
|
-
// case "warning":
|
|
992
|
-
// case "info":
|
|
993
|
-
// return sheet.classes.WarningBadge;
|
|
994
|
-
// default:
|
|
995
|
-
// return sheet.classes.WarningBadge;
|
|
996
|
-
// }
|
|
982
|
+
// AL: badgeType arg? TODO
|
|
983
|
+
const getBadgeCSSClass = (rewardStatus) => {
|
|
997
984
|
switch (rewardStatus) {
|
|
998
985
|
case "AVAILABLE":
|
|
999
986
|
return sheet$1.classes.SuccessBadge;
|
|
@@ -1008,13 +995,7 @@ const RewardTableStatusCell = class {
|
|
|
1008
995
|
}
|
|
1009
996
|
};
|
|
1010
997
|
const badgeCSSClass = getBadgeCSSClass(badgeType);
|
|
1011
|
-
return (h("div", { style: { display: "contents" } }, h("style", { type: "text/css" }, styleString$1), h("sl-badge", { type: badgeType, pill: true,
|
|
1012
|
-
// class={
|
|
1013
|
-
// rewardStatus === "REDEEMED" || rewardStatus === "PAYOUT_APPROVED"
|
|
1014
|
-
// ? sheet.classes.RedeemBadge
|
|
1015
|
-
// : sheet.classes.Badge
|
|
1016
|
-
// }
|
|
1017
|
-
class: badgeCSSClass }, statusText), h("p", { class: sheet$1.classes.Date }, fraudStatusText ||
|
|
998
|
+
return (h("div", { style: { display: "contents" } }, h("style", { type: "text/css" }, styleString$1), h("sl-badge", { type: badgeType, pill: true, class: badgeCSSClass }, statusText), h("p", { class: sheet$1.classes.Date }, fraudStatusText ||
|
|
1018
999
|
pendingReasons ||
|
|
1019
1000
|
this.getPayoutStatusText(rewardStatus) ||
|
|
1020
1001
|
date)));
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as Host } from './index-b3a06de8.js';
|
|
2
2
|
import { a as commonjsGlobal, u as useMemo, k as useState, f as useEffect, c as createCommonjsModule, n as h$1 } from './stencil-hooks.module-20ad2b5f.js';
|
|
3
|
-
import './global-
|
|
3
|
+
import './global-2da1dcec.js';
|
|
4
4
|
import { j as jn, k as kn, b as setUserIdentity, d as dist, X as Xe, p as setProgramId } from './index.module-d49ae5e7.js';
|
|
5
5
|
import './cjs-bdfb4486.js';
|
|
6
6
|
import './utils-334c1e34.js';
|
|
7
7
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
8
8
|
import './useReferralCodes-0b798295.js';
|
|
9
9
|
import './mixins-f750863a.js';
|
|
10
|
-
import { C as CopyTextView } from './copy-text-view-
|
|
10
|
+
import { C as CopyTextView } from './copy-text-view-6dec9902.js';
|
|
11
11
|
import { G as GenericTableView } from './GenericTableView-dd9be3ea.js';
|
|
12
12
|
import './useChildElements-0ca9a015.js';
|
|
13
13
|
import { l as luxon } from './luxon-793b7f13.js';
|
|
@@ -18,20 +18,21 @@ import { E as EmailRegistrationView } from './email-registration-view-db81655f.j
|
|
|
18
18
|
import { L as LeaderboardRankView } from './sqm-leaderboard-rank-view-18baae5b.js';
|
|
19
19
|
import { L as LogoutCurrentUserView } from './sqm-logout-current-user-view-f21e54e3.js';
|
|
20
20
|
import { N as NavigationSidebarView } from './sqm-navigation-sidebar-view-6c13798c.js';
|
|
21
|
-
import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-
|
|
22
|
-
import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-
|
|
23
|
-
import { P as PortalForgotPasswordView } from './sqm-portal-forgot-password-view-
|
|
21
|
+
import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-30c52ccd.js';
|
|
22
|
+
import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-e38ec8cc.js';
|
|
23
|
+
import { P as PortalForgotPasswordView } from './sqm-portal-forgot-password-view-dc6b4f26.js';
|
|
24
|
+
import { P as PortalLoginView } from './sqm-portal-login-view-7670cd86.js';
|
|
24
25
|
import { B as BaseRegistrationFormView } from './sqm-base-registration-form-view-193f1721.js';
|
|
25
26
|
import { P as PortalRegistrationFormView } from './sqm-portal-registration-form-view-8bdc3804.js';
|
|
26
|
-
import { P as PortalProfileView } from './sqm-portal-profile-view-
|
|
27
|
+
import { P as PortalProfileView } from './sqm-portal-profile-view-e594d1ee.js';
|
|
27
28
|
import './utilities-6341d9fd.js';
|
|
28
29
|
import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-abef7286.js';
|
|
29
30
|
import { P as PortalVerifyEmailView } from './sqm-portal-verify-email-view-33805220.js';
|
|
30
31
|
import './ErrorView-eaafd6f5.js';
|
|
31
32
|
import { Q as QrCodeView } from './sqm-qr-code-view-358607d1.js';
|
|
32
|
-
import { S as ShareButtonView, L as LeaderboardView, B as BigStatView, P as PortalFrameView, E as EditProfileView, u as useShareLink, a as useShareButton, b as useDemoBigStat, c as StatContainerView, d as PortalChangePasswordView, e as PortalRegisterView, C as ChangeMarktingView, T as TaskCardView, f as ProgressBarView, g as PoweredByImg$1, h as PortalFooterView, H as HeroView, R as ReferralIframeView, N as NameFieldsView, i as CheckboxFieldView, D as DropdownFieldView, I as InputFieldView, j as RewardExchangeView, r as rewardExchangeCustomErrorMsg, k as rewardExchangeLongText, l as rewardExchangeSelected, m as chooseAmountFixed, n as chooseAmountFixedNoDescription, o as chooseAmountVariable, p as chooseAmountVariableNoDescription, q as chooseAmountVariableDisabled, s as chooseAmountVariableUnavailable, t as confirmFixed, v as confirmVariable, w as redemptionError, x as queryError, y as success, z as successVariable, A as loading, F as empty$1, G as rewardExchange, J as CardFeedView, K as CouponCodeView, M as ProgressBar$2, O as ShadowViewAddon } from './ShadowViewAddon-
|
|
33
|
+
import { S as ShareButtonView, L as LeaderboardView, B as BigStatView, P as PortalFrameView, E as EditProfileView, u as useShareLink, a as useShareButton, b as useDemoBigStat, c as StatContainerView, d as PortalChangePasswordView, e as PortalRegisterView, C as ChangeMarktingView, T as TaskCardView, f as ProgressBarView, g as PoweredByImg$1, h as PortalFooterView, H as HeroView, R as ReferralIframeView, N as NameFieldsView, i as CheckboxFieldView, D as DropdownFieldView, I as InputFieldView, j as RewardExchangeView, r as rewardExchangeCustomErrorMsg, k as rewardExchangeLongText, l as rewardExchangeSelected, m as chooseAmountFixed, n as chooseAmountFixedNoDescription, o as chooseAmountVariable, p as chooseAmountVariableNoDescription, q as chooseAmountVariableDisabled, s as chooseAmountVariableUnavailable, t as confirmFixed, v as confirmVariable, w as redemptionError, x as queryError, y as success, z as successVariable, A as loading, F as empty$1, G as rewardExchange, J as CardFeedView, K as CouponCodeView, M as ProgressBar$2, O as ShadowViewAddon } from './ShadowViewAddon-d59ef625.js';
|
|
33
34
|
import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-f0b1ccfc.js';
|
|
34
|
-
import { O as OtherRegionSlotView, I as InvoiceTableView, T as TaxForm } from './sqm-invoice-table-view-
|
|
35
|
+
import { O as OtherRegionSlotView, I as InvoiceTableView, T as TaxForm } from './sqm-invoice-table-view-df370e4a.js';
|
|
35
36
|
|
|
36
37
|
/**
|
|
37
38
|
* lodash (Custom Build) <https://lodash.com/>
|
|
@@ -7398,6 +7399,7 @@ const googleProps = {
|
|
|
7398
7399
|
},
|
|
7399
7400
|
};
|
|
7400
7401
|
const Default$3 = () => (h("sqm-portal-login", { demoData: { ...defaultProps$2 } }));
|
|
7402
|
+
const Text = () => h(PortalLoginView, Object.assign({}, defaultProps$2));
|
|
7401
7403
|
const IsGoogle = () => (h("sqm-portal-login", { demoData: { ...googleProps } }));
|
|
7402
7404
|
const LoginWithError = () => (h("sqm-portal-login", { demoData: { ...errorProps } }));
|
|
7403
7405
|
const LoginLoading = () => (h("sqm-portal-login", { demoData: { ...loadingProps } }));
|
|
@@ -7406,6 +7408,7 @@ const PortalLogin = /*#__PURE__*/Object.freeze({
|
|
|
7406
7408
|
__proto__: null,
|
|
7407
7409
|
'default': PortalLogin_stories,
|
|
7408
7410
|
Default: Default$3,
|
|
7411
|
+
Text: Text,
|
|
7409
7412
|
IsGoogle: IsGoogle,
|
|
7410
7413
|
LoginWithError: LoginWithError,
|
|
7411
7414
|
LoginLoading: LoginLoading
|
|
@@ -7547,6 +7550,7 @@ const PortalRegister = /*#__PURE__*/Object.freeze({
|
|
|
7547
7550
|
const PortalRegistrationForm_stories = {
|
|
7548
7551
|
title: "Components/Microsite Portal Register",
|
|
7549
7552
|
};
|
|
7553
|
+
// TODO: Figure out if we can delete this component and it's stories since we have a duplicate
|
|
7550
7554
|
const defaultProps$4 = {
|
|
7551
7555
|
states: {
|
|
7552
7556
|
error: "",
|
|
@@ -7652,7 +7656,7 @@ const TermsAndConditions$1 = () => (h(PortalRegistrationFormView, Object.assign(
|
|
|
7652
7656
|
h("a", { href: "https://example.com", target: "_blank" }, "Terms and Conditions"))),
|
|
7653
7657
|
} })));
|
|
7654
7658
|
|
|
7655
|
-
const
|
|
7659
|
+
const NewPortalRegistrationForm = /*#__PURE__*/Object.freeze({
|
|
7656
7660
|
__proto__: null,
|
|
7657
7661
|
'default': PortalRegistrationForm_stories,
|
|
7658
7662
|
Default: Default$5,
|
|
@@ -7683,7 +7687,7 @@ const defaultProps$5 = {
|
|
|
7683
7687
|
submit: async (e) => await e,
|
|
7684
7688
|
},
|
|
7685
7689
|
content: {
|
|
7686
|
-
|
|
7690
|
+
loginText: "Login",
|
|
7687
7691
|
messageSlot: "Enter your email below to receive a password reset link.",
|
|
7688
7692
|
},
|
|
7689
7693
|
};
|
|
@@ -7698,8 +7702,8 @@ const errorProps$3 = {
|
|
|
7698
7702
|
submit: async (e) => await e,
|
|
7699
7703
|
},
|
|
7700
7704
|
content: {
|
|
7701
|
-
secondaryButton: "Cancel",
|
|
7702
7705
|
messageSlot: "Enter your email below to receive a password reset link.",
|
|
7706
|
+
loginText: "Login",
|
|
7703
7707
|
},
|
|
7704
7708
|
};
|
|
7705
7709
|
const loadingProps$3 = {
|
|
@@ -7713,7 +7717,7 @@ const loadingProps$3 = {
|
|
|
7713
7717
|
submit: async (e) => await e,
|
|
7714
7718
|
},
|
|
7715
7719
|
content: {
|
|
7716
|
-
|
|
7720
|
+
loginText: "Login",
|
|
7717
7721
|
messageSlot: "Enter your email below to receive a password reset link.",
|
|
7718
7722
|
},
|
|
7719
7723
|
};
|
|
@@ -7728,7 +7732,7 @@ const successProps = {
|
|
|
7728
7732
|
submit: async (e) => await e,
|
|
7729
7733
|
},
|
|
7730
7734
|
content: {
|
|
7731
|
-
|
|
7735
|
+
loginText: "Login",
|
|
7732
7736
|
messageSlot: "Enter your email below to receive a password reset link.",
|
|
7733
7737
|
},
|
|
7734
7738
|
};
|
|
@@ -10351,7 +10355,7 @@ const LoginReadme = "# sqm-portal-login\n\n\n\n<!-- Auto Generated Below -->\n\n
|
|
|
10351
10355
|
|
|
10352
10356
|
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";
|
|
10353
10357
|
|
|
10354
|
-
const ForgotPasswordReadme = "# sqm-portal-forgot-password\n\n\n\n<!-- Auto Generated Below -->\n\n\n## Properties\n\n| Property | Attribute | Description | Type
|
|
10358
|
+
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";
|
|
10355
10359
|
|
|
10356
10360
|
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";
|
|
10357
10361
|
|
|
@@ -15871,7 +15875,7 @@ const CustomFontSize = () => {
|
|
|
15871
15875
|
h("p", null, "This is the text component")));
|
|
15872
15876
|
};
|
|
15873
15877
|
|
|
15874
|
-
const Text = /*#__PURE__*/Object.freeze({
|
|
15878
|
+
const Text$1 = /*#__PURE__*/Object.freeze({
|
|
15875
15879
|
__proto__: null,
|
|
15876
15880
|
'default': Text_stories,
|
|
15877
15881
|
PurpleText: PurpleText,
|
|
@@ -18550,17 +18554,16 @@ const stories = [
|
|
|
18550
18554
|
TaxFormSlots,
|
|
18551
18555
|
PayoutDetailsCard,
|
|
18552
18556
|
BankingInfoForm,
|
|
18553
|
-
|
|
18557
|
+
NewPortalRegistrationForm,
|
|
18554
18558
|
ChangeMarketing,
|
|
18555
18559
|
BaseRegistrationForm,
|
|
18556
|
-
PortalRegistrationForm,
|
|
18557
18560
|
PortalGoogleRegistrationFormStories,
|
|
18558
18561
|
WidgetEmailVerification,
|
|
18559
18562
|
WidgetCodeVerification,
|
|
18560
18563
|
PayoutButtonScroll,
|
|
18561
18564
|
PayoutStatusAlert,
|
|
18562
18565
|
QRCode,
|
|
18563
|
-
Text,
|
|
18566
|
+
Text$1,
|
|
18564
18567
|
];
|
|
18565
18568
|
const StencilStorybook = class {
|
|
18566
18569
|
constructor(hostRef) {
|
|
@@ -1,61 +1,7 @@
|
|
|
1
|
-
import { h } from './index-b3a06de8.js';
|
|
2
1
|
import { k as useState } from './stencil-hooks.module-20ad2b5f.js';
|
|
3
2
|
import { e as je, h as hn, j as jn } from './index.module-d49ae5e7.js';
|
|
4
3
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
5
4
|
import { s as sanitizeUrlPath } from './utils-334c1e34.js';
|
|
6
|
-
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
7
|
-
import { A as AuthWrapper, a as AuthColumn, b as AuthButtonsContainer } from './mixins-f750863a.js';
|
|
8
|
-
import { T as TextSpanView } from './sqm-text-span-view-4c17b8c9.js';
|
|
9
|
-
|
|
10
|
-
const style = {
|
|
11
|
-
Wrapper: AuthWrapper,
|
|
12
|
-
Column: AuthColumn,
|
|
13
|
-
ForgotButtonContainer: {
|
|
14
|
-
display: "inline",
|
|
15
|
-
cursor: "pointer",
|
|
16
|
-
"font-size": "13px",
|
|
17
|
-
"font-weight": "600",
|
|
18
|
-
color: "var(--sqm-text-subdued)",
|
|
19
|
-
margin: "0",
|
|
20
|
-
},
|
|
21
|
-
ButtonsContainer: {
|
|
22
|
-
...AuthButtonsContainer,
|
|
23
|
-
gap: "var(--sl-spacing-medium)",
|
|
24
|
-
"& > *": {
|
|
25
|
-
margin: "0 !important",
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
};
|
|
29
|
-
const vanillaStyle = `
|
|
30
|
-
:host {
|
|
31
|
-
display: block;
|
|
32
|
-
}
|
|
33
|
-
:host([hidden]): {
|
|
34
|
-
display: none;
|
|
35
|
-
}
|
|
36
|
-
`;
|
|
37
|
-
const sheet = createStyleSheet(style);
|
|
38
|
-
const styleString = sheet.toString();
|
|
39
|
-
function PortalLoginView(props) {
|
|
40
|
-
const { states, callbacks, content } = props;
|
|
41
|
-
return (h("div", { class: sheet.classes.Wrapper, part: "sqm-base" },
|
|
42
|
-
h("style", { type: "text/css" },
|
|
43
|
-
vanillaStyle,
|
|
44
|
-
styleString),
|
|
45
|
-
h(TextSpanView, { type: "h3" }, content.pageLabel),
|
|
46
|
-
h("sl-form", { class: sheet.classes.Column, "onSl-submit": callbacks.submit },
|
|
47
|
-
props.states.error && (h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
48
|
-
h("div", { part: "erroralert-text" }, props.states.error))),
|
|
49
|
-
h("sl-input", { exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading, required: true }),
|
|
50
|
-
h("div", null,
|
|
51
|
-
h("sl-input", { exportparts: "label: input-label, base: input-base", type: "password", name: "/password", label: content.passwordLabel || "Password", disabled: states.loading, required: true }),
|
|
52
|
-
h("div", { class: sheet.classes.ForgotButtonContainer }, content.forgotPasswordButton)),
|
|
53
|
-
h("div", { class: sheet.classes.ButtonsContainer },
|
|
54
|
-
h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Login"),
|
|
55
|
-
content.googleButton && h("sl-menu-divider", null),
|
|
56
|
-
content.googleButton,
|
|
57
|
-
content.secondaryButton))));
|
|
58
|
-
}
|
|
59
5
|
|
|
60
6
|
function usePortalLogin(props) {
|
|
61
7
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
@@ -123,4 +69,4 @@ function usePortalLogin(props) {
|
|
|
123
69
|
};
|
|
124
70
|
}
|
|
125
71
|
|
|
126
|
-
export {
|
|
72
|
+
export { usePortalLogin as u };
|