@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
package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.js
CHANGED
|
@@ -3,10 +3,10 @@ import { createStyleSheet } from "../../styling/JSS";
|
|
|
3
3
|
import { gap } from "../../global/mixins";
|
|
4
4
|
import { navigation } from "@saasquatch/component-boilerplate";
|
|
5
5
|
export function NavigationSidebarItemView(props) {
|
|
6
|
-
const { states, data } = props;
|
|
6
|
+
const { states, data, padding = "x-small" } = props;
|
|
7
7
|
const backgroundColor = props.backgroundColor || "var(--sqm-portal-background)";
|
|
8
|
-
const backgroundHoverColor = props.backgroundHoverColor || "var(--
|
|
9
|
-
const backgroundFocusedColor = props.backgroundFocusedColor || "var(--
|
|
8
|
+
const backgroundHoverColor = props.backgroundHoverColor || "var(--sqm-accent-color-background)";
|
|
9
|
+
const backgroundFocusedColor = props.backgroundFocusedColor || "var(--sqm-primary-color)";
|
|
10
10
|
const textFocusedColor = props.textFocusedColor || "var(--sqm-text)";
|
|
11
11
|
const style = {
|
|
12
12
|
ItemContainer: {
|
|
@@ -14,8 +14,8 @@ export function NavigationSidebarItemView(props) {
|
|
|
14
14
|
"background-color": `${states.active ? backgroundFocusedColor : backgroundColor}`,
|
|
15
15
|
borderRadius: props.borderRadius
|
|
16
16
|
? `${props.borderRadius}px`
|
|
17
|
-
: "var(--
|
|
18
|
-
padding: `var(--sl-spacing-${
|
|
17
|
+
: "var(--sqm-border-radius-normal)",
|
|
18
|
+
padding: `var(--sl-spacing-${padding})`,
|
|
19
19
|
"text-decoration": "none",
|
|
20
20
|
color: states.active
|
|
21
21
|
? textFocusedColor
|
package/dist/collection/components/sqm-portal-forgot-password/PortalForgotPassword.stories.js
CHANGED
|
@@ -18,7 +18,7 @@ const defaultProps = {
|
|
|
18
18
|
submit: async (e) => await e,
|
|
19
19
|
},
|
|
20
20
|
content: {
|
|
21
|
-
|
|
21
|
+
loginText: "Login",
|
|
22
22
|
messageSlot: "Enter your email below to receive a password reset link.",
|
|
23
23
|
},
|
|
24
24
|
};
|
|
@@ -33,8 +33,8 @@ const errorProps = {
|
|
|
33
33
|
submit: async (e) => await e,
|
|
34
34
|
},
|
|
35
35
|
content: {
|
|
36
|
-
secondaryButton: "Cancel",
|
|
37
36
|
messageSlot: "Enter your email below to receive a password reset link.",
|
|
37
|
+
loginText: "Login",
|
|
38
38
|
},
|
|
39
39
|
};
|
|
40
40
|
const loadingProps = {
|
|
@@ -48,7 +48,7 @@ const loadingProps = {
|
|
|
48
48
|
submit: async (e) => await e,
|
|
49
49
|
},
|
|
50
50
|
content: {
|
|
51
|
-
|
|
51
|
+
loginText: "Login",
|
|
52
52
|
messageSlot: "Enter your email below to receive a password reset link.",
|
|
53
53
|
},
|
|
54
54
|
};
|
|
@@ -63,7 +63,7 @@ const successProps = {
|
|
|
63
63
|
submit: async (e) => await e,
|
|
64
64
|
},
|
|
65
65
|
content: {
|
|
66
|
-
|
|
66
|
+
loginText: "Login",
|
|
67
67
|
messageSlot: "Enter your email below to receive a password reset link.",
|
|
68
68
|
},
|
|
69
69
|
};
|
package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js
CHANGED
|
@@ -12,13 +12,14 @@ const vanillaStyle = `
|
|
|
12
12
|
}
|
|
13
13
|
`;
|
|
14
14
|
export function PortalForgotPasswordView(props) {
|
|
15
|
-
const { states, callbacks, content
|
|
15
|
+
const { states, callbacks, content } = props;
|
|
16
16
|
const style = {
|
|
17
17
|
FormWrapper: {
|
|
18
18
|
...AuthWrapper,
|
|
19
|
-
background:
|
|
20
|
-
borderRadius:
|
|
21
|
-
border:
|
|
19
|
+
background: content.backgroundColor || "var(--sqm-portal-background)",
|
|
20
|
+
borderRadius: content.borderRadius || "var(--sqm-border-radius-normal)",
|
|
21
|
+
border: content.border ||
|
|
22
|
+
"var(--sqm-border-thickness) solid var(--sqm-border-color)",
|
|
22
23
|
},
|
|
23
24
|
Column: { ...AuthColumn },
|
|
24
25
|
ButtonsContainer: AuthButtonsContainer,
|
|
@@ -34,7 +35,7 @@ export function PortalForgotPasswordView(props) {
|
|
|
34
35
|
h("style", { type: "text/css" },
|
|
35
36
|
vanillaStyle,
|
|
36
37
|
styleString),
|
|
37
|
-
h(TextSpanView, {
|
|
38
|
+
h(TextSpanView, { type: "h3" }, content.messageSlot),
|
|
38
39
|
h("sl-form", { class: sheet.classes.Column, "onSl-submit": callbacks.submit },
|
|
39
40
|
props.states.error && (h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
40
41
|
h("div", { part: "erroralert-text" }, props.states.error))),
|
|
@@ -43,5 +44,5 @@ export function PortalForgotPasswordView(props) {
|
|
|
43
44
|
h("sl-input", { exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading, required: true }),
|
|
44
45
|
h("div", { class: sheet.classes.ButtonsContainer },
|
|
45
46
|
h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Reset Password"),
|
|
46
|
-
h("sl-button", { type: "
|
|
47
|
+
h("sl-button", { type: "secondary", exportparts: "base: secondarybutton-base", class: sheet.classes.SecondaryButton, disabled: states.loading, onClick: () => navigation.push(states.loginPath) }, content.loginText)))));
|
|
47
48
|
}
|
|
@@ -57,12 +57,12 @@ export class PortalForgotPassword {
|
|
|
57
57
|
* @uiName Border radius
|
|
58
58
|
* @uiWidget number
|
|
59
59
|
*/
|
|
60
|
-
this.borderRadius = "var(--sqm-border-radius-normal)";
|
|
60
|
+
this.borderRadius = "var(--sqm-border-radius-normal, 8px)";
|
|
61
61
|
/**
|
|
62
62
|
* @uiName Border style
|
|
63
63
|
* @uiWidget textArea
|
|
64
64
|
*/
|
|
65
|
-
this.border = "1px solid var(--sqm-border-color,
|
|
65
|
+
this.border = "1px solid var(--sqm-border-color, #eaeaea)";
|
|
66
66
|
withHooks(this);
|
|
67
67
|
}
|
|
68
68
|
disconnectedCallback() { }
|
|
@@ -71,20 +71,16 @@ export class PortalForgotPassword {
|
|
|
71
71
|
? usePortalForgotPasswordDemo(this)
|
|
72
72
|
: usePortalForgotPassword(this);
|
|
73
73
|
const content = {
|
|
74
|
-
secondaryButton: (h("slot", { name: "secondaryButton" },
|
|
75
|
-
h("sl-button", { type: "text", disabled: states.loading, onClick: () => navigation.push(states.loginPath) }, this.loginText))),
|
|
76
74
|
messageSlot: h("slot", { name: "messageSlot" }, this.headerText),
|
|
77
75
|
emailLabel: this.emailLabel,
|
|
78
76
|
submitLabel: this.submitLabel,
|
|
79
77
|
successAlertText: this.successAlertText,
|
|
80
78
|
loginText: this.loginText,
|
|
81
|
-
};
|
|
82
|
-
const styles = {
|
|
83
79
|
backgroundColor: this.backgroundColor,
|
|
84
80
|
borderRadius: this.borderRadius,
|
|
85
81
|
border: this.border,
|
|
86
82
|
};
|
|
87
|
-
return (h(PortalForgotPasswordView, { states: states, callbacks: callbacks, content: content
|
|
83
|
+
return (h(PortalForgotPasswordView, { states: states, callbacks: callbacks, content: content }));
|
|
88
84
|
}
|
|
89
85
|
static get is() { return "sqm-portal-forgot-password"; }
|
|
90
86
|
static get encapsulation() { return "shadow"; }
|
|
@@ -312,7 +308,7 @@ export class PortalForgotPassword {
|
|
|
312
308
|
},
|
|
313
309
|
"attribute": "border-radius",
|
|
314
310
|
"reflect": false,
|
|
315
|
-
"defaultValue": "\"var(--sqm-border-radius-normal)\""
|
|
311
|
+
"defaultValue": "\"var(--sqm-border-radius-normal, 8px)\""
|
|
316
312
|
},
|
|
317
313
|
"border": {
|
|
318
314
|
"type": "string",
|
|
@@ -336,14 +332,14 @@ export class PortalForgotPassword {
|
|
|
336
332
|
},
|
|
337
333
|
"attribute": "border",
|
|
338
334
|
"reflect": false,
|
|
339
|
-
"defaultValue": "\"1px solid var(--sqm-border-color,
|
|
335
|
+
"defaultValue": "\"1px solid var(--sqm-border-color, #eaeaea)\""
|
|
340
336
|
},
|
|
341
337
|
"demoData": {
|
|
342
338
|
"type": "unknown",
|
|
343
339
|
"mutable": false,
|
|
344
340
|
"complexType": {
|
|
345
341
|
"original": "DemoData<PortalForgotPasswordViewProps>",
|
|
346
|
-
"resolved": "{ states?: { error: string; loading: boolean; success: boolean; loginPath: string; }; content?: {
|
|
342
|
+
"resolved": "{ 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; }; }",
|
|
347
343
|
"references": {
|
|
348
344
|
"DemoData": {
|
|
349
345
|
"location": "import",
|
|
@@ -379,5 +375,16 @@ function usePortalForgotPasswordDemo(props) {
|
|
|
379
375
|
callbacks: {
|
|
380
376
|
submit: async (_event) => { },
|
|
381
377
|
},
|
|
378
|
+
content: {
|
|
379
|
+
secondaryButton: (h("sl-button", { type: "secondary", exportparts: "base: secondarybutton-base", disabled: false, onClick: () => navigation.push(props.loginPath) }, props.loginText)),
|
|
380
|
+
messageSlot: h("span", null, props.headerText),
|
|
381
|
+
emailLabel: props.emailLabel,
|
|
382
|
+
submitLabel: props.submitLabel,
|
|
383
|
+
successAlertText: props.successAlertText,
|
|
384
|
+
loginText: props.loginText,
|
|
385
|
+
backgroundColor: props.backgroundColor,
|
|
386
|
+
borderRadius: props.borderRadius,
|
|
387
|
+
border: props.border,
|
|
388
|
+
},
|
|
382
389
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
383
390
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
+
import { PortalLoginView } from "./sqm-portal-login-view";
|
|
2
3
|
export default {
|
|
3
4
|
title: "Components/Microsite Login",
|
|
4
5
|
};
|
|
@@ -58,6 +59,7 @@ const googleProps = {
|
|
|
58
59
|
},
|
|
59
60
|
};
|
|
60
61
|
export const Default = () => (h("sqm-portal-login", { demoData: { ...defaultProps } }));
|
|
62
|
+
export const Text = () => h(PortalLoginView, Object.assign({}, defaultProps));
|
|
61
63
|
export const IsGoogle = () => (h("sqm-portal-login", { demoData: { ...googleProps } }));
|
|
62
64
|
export const LoginWithError = () => (h("sqm-portal-login", { demoData: { ...errorProps } }));
|
|
63
65
|
export const LoginLoading = () => (h("sqm-portal-login", { demoData: { ...loadingProps } }));
|
|
@@ -87,7 +87,7 @@ export class PortalLogin {
|
|
|
87
87
|
googleButton: null,
|
|
88
88
|
secondaryButton: (h("slot", { name: "secondaryButton" },
|
|
89
89
|
h("style", null, styleString),
|
|
90
|
-
h("sl-button", { exportparts: "base:
|
|
90
|
+
h("sl-button", { exportparts: "base: secondarybutton-base", type: "text", disabled: states.loading, onClick: () => navigation.push(states.registerPath) }, this.registerLabel))),
|
|
91
91
|
emailLabel: this.emailLabel,
|
|
92
92
|
passwordLabel: this.passwordLabel,
|
|
93
93
|
submitLabel: this.submitLabel,
|
package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js
CHANGED
|
@@ -3,6 +3,7 @@ import { PortalRegistrationFormView, } from "./sqm-portal-registration-form-view
|
|
|
3
3
|
export default {
|
|
4
4
|
title: "Components/Microsite Portal Register",
|
|
5
5
|
};
|
|
6
|
+
// TODO: Figure out if we can delete this component and it's stories since we have a duplicate
|
|
6
7
|
const defaultProps = {
|
|
7
8
|
states: {
|
|
8
9
|
error: "",
|
|
@@ -9,7 +9,7 @@ import { EmailRegistrationView, } from "../views/email-registration-view";
|
|
|
9
9
|
* @validParents ["sqm-portal-container","div","sqm-divided-layout","sqm-brand","template","sqm-hero","sqb-program-section","sqb-conditional-section"]
|
|
10
10
|
* @compatibility Built for instant access
|
|
11
11
|
* @exampleGroup Instant Access
|
|
12
|
-
* @example
|
|
12
|
+
* @example Friend Registration - <sqm-referred-registration></sqm-referred-registration>
|
|
13
13
|
* @slots [{"name":"top","title":"Top Content"},{"name":"bottom","title":"Bottom Content"}]
|
|
14
14
|
*/
|
|
15
15
|
export class ReferredRegistration {
|
|
@@ -201,21 +201,8 @@ export class RewardTableStatusCell {
|
|
|
201
201
|
: rewardStatus === "DENIED"
|
|
202
202
|
? this.deniedText
|
|
203
203
|
: null;
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
// switch (badgeType) {
|
|
207
|
-
// case "primary":
|
|
208
|
-
// return sheet.classes.RedeemBadge;
|
|
209
|
-
// case "danger":
|
|
210
|
-
// return sheet.classes.DangerBadge;
|
|
211
|
-
// case "success":
|
|
212
|
-
// return sheet.classes.SuccessBadge;
|
|
213
|
-
// case "warning":
|
|
214
|
-
// case "info":
|
|
215
|
-
// return sheet.classes.WarningBadge;
|
|
216
|
-
// default:
|
|
217
|
-
// return sheet.classes.WarningBadge;
|
|
218
|
-
// }
|
|
204
|
+
// AL: badgeType arg? TODO
|
|
205
|
+
const getBadgeCSSClass = (rewardStatus) => {
|
|
219
206
|
switch (rewardStatus) {
|
|
220
207
|
case "AVAILABLE":
|
|
221
208
|
return sheet.classes.SuccessBadge;
|
|
@@ -232,13 +219,7 @@ export class RewardTableStatusCell {
|
|
|
232
219
|
const badgeCSSClass = getBadgeCSSClass(badgeType);
|
|
233
220
|
return (h("div", { style: { display: "contents" } },
|
|
234
221
|
h("style", { type: "text/css" }, styleString),
|
|
235
|
-
h("sl-badge", { type: badgeType, pill: true,
|
|
236
|
-
// class={
|
|
237
|
-
// rewardStatus === "REDEEMED" || rewardStatus === "PAYOUT_APPROVED"
|
|
238
|
-
// ? sheet.classes.RedeemBadge
|
|
239
|
-
// : sheet.classes.Badge
|
|
240
|
-
// }
|
|
241
|
-
class: badgeCSSClass }, statusText),
|
|
222
|
+
h("sl-badge", { type: badgeType, pill: true, class: badgeCSSClass }, statusText),
|
|
242
223
|
h("p", { class: sheet.classes.Date }, fraudStatusText ||
|
|
243
224
|
pendingReasons ||
|
|
244
225
|
this.getPayoutStatusText(rewardStatus) ||
|
package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.js
CHANGED
|
@@ -2,10 +2,10 @@ import { withHooks } from "@saasquatch/stencil-hooks";
|
|
|
2
2
|
import { Component, h, Host, Method, Prop } from "@stencil/core";
|
|
3
3
|
import { useRequestRerender } from "../../../tables/re-render";
|
|
4
4
|
/**
|
|
5
|
-
* @uiName
|
|
5
|
+
* @uiName Rewards Table Customer Note Column
|
|
6
6
|
* @validParents ["sqm-rewards-table"]
|
|
7
7
|
* @exampleGroup Rewards
|
|
8
|
-
* @example
|
|
8
|
+
* @example Customer Note Column - <sqm-rewards-table-customer-note-column column-title="Note"></sqm-rewards-table-customer-note-column>
|
|
9
9
|
*/
|
|
10
10
|
export class RewardTableCustomerNoteColumn {
|
|
11
11
|
constructor() {
|
package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js
CHANGED
|
@@ -2,10 +2,10 @@ import { withHooks } from "@saasquatch/stencil-hooks";
|
|
|
2
2
|
import { Component, h, Host, Method, Prop } from "@stencil/core";
|
|
3
3
|
import { useRequestRerender } from "../../../tables/re-render";
|
|
4
4
|
/**
|
|
5
|
-
* @uiName
|
|
5
|
+
* @uiName Rewards Table Source Column
|
|
6
6
|
* @validParents ["sqm-rewards-table"]
|
|
7
7
|
* @exampleGroup Rewards
|
|
8
|
-
* @example
|
|
8
|
+
* @example Source Column - <sqm-rewards-table-source-column column-title="Source" anonymous-user="Anonymous User" deleted-user="Deleted User" reward-exchange-text="Reward Exchange" referral-rext="{rewardSource, select, FRIEND_SIGNUP {Referral to} REFERRED {Referred by} other {}}" reward-source-text="{rewardSource, select, MANUAL {Manual} AUTOMATED {{programName}} other {}}"></sqm-rewards-table-source-column>
|
|
9
9
|
*/
|
|
10
10
|
export class RewardTableUserColumn {
|
|
11
11
|
constructor() {
|
package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js
CHANGED
|
@@ -5,7 +5,7 @@ import { useRequestRerender } from "../../../tables/re-render";
|
|
|
5
5
|
* @uiName Reward Table Status Column
|
|
6
6
|
* @validParents ["sqm-rewards-table"]
|
|
7
7
|
* @exampleGroup Rewards
|
|
8
|
-
* @example
|
|
8
|
+
* @example Status Column - <sqm-rewards-table-status-column column-title="Status" status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} PAYOUT_CANCELLED {Payout Cancelled} PAYOUT_FAILED {Payout Failed} EXPIRED {Expired} REDEEMED {Redeemed} DENIED {Denied} other {Not available} }" expiry-text="Expires on " pending-us-tax="W-9 required" pending-scheduled="Until" pending-unhandled="Fulfillment error" pending-review-text="Awaiting review" denied-text="Detected self-referral" pending-tax-review="Awaiting tax form review." pending-new-tax-form="Invalid tax form. Submit a new form to receive your rewards." pending-tax-submission="Submit your tax documents to receive your rewards." pending-partner-creation="Complete your tax and cash payout setup to receive your rewards." payout-failed="Payout failed due to a fulfillment issue and is current being retried." payout-cancelled="If you think this is a mistake, contact our Support team." payout-approved="Reward approved for payout and was scheduled for payment based on your settings." ></sqm-rewards-table-status-column>
|
|
9
9
|
*/
|
|
10
10
|
export class RewardTableStatusColumn {
|
|
11
11
|
constructor() {
|
|
@@ -15,12 +15,12 @@ import deepmerge from "deepmerge";
|
|
|
15
15
|
* @example Facebook Share Button - <sqm-share-button medium="facebook">Share on Facebook</sqm-share-button>
|
|
16
16
|
* @example X Share Button - <sqm-share-button medium="twitter">Share via X</sqm-share-button>
|
|
17
17
|
* @example Email Share Button - <sqm-share-button medium="email">Share via Email</sqm-share-button>
|
|
18
|
-
* @example
|
|
18
|
+
* @example Mobile Share Sheet Button - <sqm-share-button medium="direct">Share</sqm-share-button>
|
|
19
19
|
* @example LinkedIn Share Button - <sqm-share-button medium="linkedin">Share on LinkedIn</sqm-share-button>
|
|
20
20
|
* @example SMS Share Button - <sqm-share-button medium="sms">Text a friend</sqm-share-button>
|
|
21
|
-
* @example
|
|
21
|
+
* @example Messenger Share Button - <sqm-share-button medium="fbmessenger">Share via Messenger</sqm-share-button>
|
|
22
22
|
* @example WhatsApp Share Button - <sqm-share-button medium="whatsapp">Share via WhatsApp</sqm-share-button>
|
|
23
|
-
* @example
|
|
23
|
+
* @example LINE Share Button - <sqm-share-button medium="linemessenger">Share via Line Messenger</sqm-share-button>
|
|
24
24
|
* @example Pinterest Share Button - <sqm-share-button medium="pinterest">Share on Pinterest</sqm-share-button>
|
|
25
25
|
*/
|
|
26
26
|
export class ShareButton {
|
|
@@ -71,11 +71,12 @@ export class SqmBrandSelector {
|
|
|
71
71
|
max-width: 350px;
|
|
72
72
|
overflow: hidden;
|
|
73
73
|
padding: 10px;
|
|
74
|
-
position:
|
|
74
|
+
position: fixed;
|
|
75
75
|
bottom: 0;
|
|
76
76
|
right: 0;
|
|
77
77
|
z-index: 999999;
|
|
78
78
|
border: 1px solid #ccc;
|
|
79
|
+
margin: 10px;
|
|
79
80
|
}
|
|
80
81
|
|
|
81
82
|
.card-heading {
|
|
@@ -85,6 +86,7 @@ export class SqmBrandSelector {
|
|
|
85
86
|
padding-bottom: 10px;
|
|
86
87
|
color: black;
|
|
87
88
|
margin: 0;
|
|
89
|
+
font-size: 16px;
|
|
88
90
|
}
|
|
89
91
|
|
|
90
92
|
.segmented-control-container {
|
|
@@ -104,7 +106,7 @@ export class SqmBrandSelector {
|
|
|
104
106
|
align-items: center;
|
|
105
107
|
justify-content: center;
|
|
106
108
|
flex: 1;
|
|
107
|
-
padding:
|
|
109
|
+
padding: 0px 8px;
|
|
108
110
|
cursor: pointer;
|
|
109
111
|
transition: all 300ms ease-in-out;
|
|
110
112
|
border-radius: 9999px;
|
|
@@ -93,7 +93,6 @@ import * as PayoutButtonScroll from "../sqm-payout-button-scroll/PayoutButtonScr
|
|
|
93
93
|
import * as PayoutStatusAlert from "../tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories";
|
|
94
94
|
import * as ReferralCodes from "../sqm-referral-codes/ReferralCodes.stories";
|
|
95
95
|
import * as BaseRegistrationForm from "../sqm-base-registration/BaseRegistrationForm.stories";
|
|
96
|
-
import * as PortalRegistrationForm from "../sqm-portal-registration-form/PortalRegistrationForm.stories";
|
|
97
96
|
import * as PortalGoogleRegistrationFormStories from "../sqm-portal-google-registration-form/PortalGoogleRegistrationForm.stories";
|
|
98
97
|
import * as QRCode from "../sqm-qr-code/QRCode.stories";
|
|
99
98
|
import * as Text from "../sqm-text/Text.stories";
|
|
@@ -190,7 +189,6 @@ const stories = [
|
|
|
190
189
|
NewPortalRegistrationForm,
|
|
191
190
|
ChangeMarketing,
|
|
192
191
|
BaseRegistrationForm,
|
|
193
|
-
PortalRegistrationForm,
|
|
194
192
|
PortalGoogleRegistrationFormStories,
|
|
195
193
|
WidgetEmailVerification,
|
|
196
194
|
WidgetCodeVerification,
|
|
@@ -8,7 +8,7 @@ import { useWidgetVerification } from "./useWidgetVerification";
|
|
|
8
8
|
/**
|
|
9
9
|
* @uiName Widget Verification Flow
|
|
10
10
|
* @exampleGroup Widget Verification
|
|
11
|
-
* @example Widget Verification
|
|
11
|
+
* @example Widget Verification - <sqm-widget-verification></sqm-widget-verification>
|
|
12
12
|
*/
|
|
13
13
|
export class WidgetVerification {
|
|
14
14
|
constructor() {
|
package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js
CHANGED
|
@@ -106,20 +106,20 @@ const style = {
|
|
|
106
106
|
width: "16px",
|
|
107
107
|
height: "16px",
|
|
108
108
|
borderRadius: "50%",
|
|
109
|
-
background: "var(--
|
|
109
|
+
background: "var(--sqm-skeleton-background)",
|
|
110
110
|
},
|
|
111
111
|
SmallSkeleton: {
|
|
112
112
|
width: "100px",
|
|
113
113
|
height: "16px",
|
|
114
114
|
borderRadius: "50px",
|
|
115
|
-
background: "var(--
|
|
115
|
+
background: "var(--sqm-skeleton-background)",
|
|
116
116
|
},
|
|
117
117
|
LargeSkeleton: {
|
|
118
118
|
width: "100%",
|
|
119
119
|
maxWidth: "320px",
|
|
120
120
|
height: "40px",
|
|
121
121
|
borderRadius: "50px",
|
|
122
|
-
background: "var(--
|
|
122
|
+
background: "var(--sqm-skeleton-background)",
|
|
123
123
|
},
|
|
124
124
|
InfoWarningIcon: {
|
|
125
125
|
height: "26px",
|
|
@@ -123,6 +123,22 @@ const style = {
|
|
|
123
123
|
margin: 0,
|
|
124
124
|
},
|
|
125
125
|
},
|
|
126
|
+
SuccessBadge: {
|
|
127
|
+
"&::part(base)": {
|
|
128
|
+
textAlign: "center",
|
|
129
|
+
whiteSpace: "pre-line",
|
|
130
|
+
background: "var(--sqm-success-color-icon)",
|
|
131
|
+
color: "var(--sqm-success-color-text)",
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
PrimaryBadge: {
|
|
135
|
+
"&::part(base)": {
|
|
136
|
+
textAlign: "center",
|
|
137
|
+
whiteSpace: "pre-line",
|
|
138
|
+
background: "var(--sqm-informative-color-icon)",
|
|
139
|
+
color: "var(--sqm-informative-color-text)",
|
|
140
|
+
},
|
|
141
|
+
},
|
|
126
142
|
AlertContent: {
|
|
127
143
|
display: "flex",
|
|
128
144
|
alignItems: "flex-start",
|
|
@@ -150,13 +166,14 @@ export function PayoutDetailsCardView(props) {
|
|
|
150
166
|
};
|
|
151
167
|
const renderStatusBadge = (status, statusBadgeText) => {
|
|
152
168
|
const badgeType = status === "nextPayout" ? "success" : "primary";
|
|
169
|
+
const badgeClass = badgeType === "success" ? classes.SuccessBadge : classes.PrimaryBadge;
|
|
153
170
|
const statusText = intl.formatMessage({
|
|
154
171
|
id: "badgeText",
|
|
155
172
|
defaultMessage: statusBadgeText,
|
|
156
173
|
}, {
|
|
157
174
|
badgeText: status,
|
|
158
175
|
});
|
|
159
|
-
return (h("sl-badge", { pill: true,
|
|
176
|
+
return (h("sl-badge", { pill: true, class: badgeClass }, statusText));
|
|
160
177
|
};
|
|
161
178
|
const thresholdText = intl.formatMessage({
|
|
162
179
|
id: "thresholdText",
|
|
@@ -34,11 +34,22 @@ export function CopyTextView(props) {
|
|
|
34
34
|
color: props.textColor || "var(--sqm-text)",
|
|
35
35
|
},
|
|
36
36
|
"&::part(base)": {
|
|
37
|
+
"--sl-input-border-radius": "var(--sqm-border-radius-normal)",
|
|
38
|
+
"--sl-input-background-color": "var(--sl-color-white)",
|
|
39
|
+
"--sl-input-color": "var(--sqm-text)",
|
|
40
|
+
"--sl-input-border-color": "#D6D8F0",
|
|
41
|
+
"--sl-input-border-color-hover": "#999999",
|
|
42
|
+
"--sl-input-border-color-focus": "#999999",
|
|
43
|
+
"--sl-input-color-hover": "var(--sqm-input-color-hover)",
|
|
44
|
+
"--sl-input-color-focus": "var(--sqm-input-color-focus)",
|
|
45
|
+
"--sl-input-color-disabled": "var(--sqm-input-disabled-color)",
|
|
46
|
+
"--sl-input-background-color-focus": "var(--sqm-portal-background)",
|
|
47
|
+
"--sl-input-background-color-hover": "var(--sqm-portal-background)",
|
|
37
48
|
cursor: "pointer",
|
|
38
49
|
overflow: "visible",
|
|
39
|
-
borderRadius: `${props.borderRadius}px` || "var(--
|
|
40
|
-
background: props.backgroundColor || "var(--
|
|
41
|
-
border: `1px solid ${props.borderColor || "
|
|
50
|
+
borderRadius: `${props.borderRadius}px` || "var(--sqm-border-radius-normal)",
|
|
51
|
+
background: props.backgroundColor || "var(--sqm-portal-background)",
|
|
52
|
+
border: `1px solid ${props.borderColor || "#d4d4d8"}`,
|
|
42
53
|
},
|
|
43
54
|
width: "100%",
|
|
44
55
|
},
|