@saasquatch/mint-components 1.15.0-2 → 1.15.0-4
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-787391f7.js → ShadowViewAddon-9e7916d8.js} +16 -17
- package/dist/cjs/{global-e31dc4f5.js → global-0cf6d295.js} +4 -3
- 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 +2 -2
- package/dist/cjs/sqm-big-stat_41.cjs.entry.js +10 -8
- package/dist/cjs/sqm-email-verification.cjs.entry.js +1 -1
- package/dist/cjs/sqm-empty_4.cjs.entry.js +9 -8
- package/dist/cjs/{sqm-invoice-table-view-16ac73d0.js → sqm-invoice-table-view-dbf7a907.js} +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +1 -1
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-email-verification-view-7ebb426a.js → sqm-portal-email-verification-view-ab0fb983.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-33164798.js → sqm-portal-profile-view-e3026b53.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 +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +5 -5
- package/dist/collection/components/sqm-big-stat/sqm-big-stat-view.js +1 -2
- package/dist/collection/components/sqm-card-feed/sqm-card-feed.js +1 -1
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code-view.js +1 -1
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +1 -0
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +2 -0
- package/dist/collection/components/sqm-empty/sqm-empty-view.js +1 -1
- package/dist/collection/components/sqm-header-logo/sqm-header-logo.js +1 -0
- package/dist/collection/components/sqm-hero/sqm-hero.js +1 -0
- package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +2 -2
- package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +1 -0
- package/dist/collection/components/sqm-image/sqm-image.js +1 -0
- package/dist/collection/components/sqm-instant-access-registration/sqm-instant-access-registration.js +1 -0
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +2 -2
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +1 -0
- package/dist/collection/components/sqm-navigation-menu/sqm-navigation-menu.js +1 -0
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar.js +2 -0
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +1 -0
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer.js +1 -0
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +1 -0
- package/dist/collection/components/sqm-portal-logout/sqm-portal-logout.js +1 -0
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile.js +1 -0
- package/dist/collection/components/sqm-portal-protected-route/sqm-portal-protected-route.js +1 -0
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer-view.js +1 -1
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer.js +2 -0
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +3 -1
- package/dist/collection/components/sqm-program-menu/sqm-program-menu.js +1 -0
- package/dist/collection/components/sqm-qr-code/sqm-qr-code.js +1 -0
- package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +1 -1
- package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +3 -1
- package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +1 -0
- package/dist/collection/components/sqm-referral-codes/sqm-referral-codes-view.js +1 -1
- package/dist/collection/components/sqm-referral-codes/sqm-referral-codes.js +1 -0
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +2 -0
- package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +1 -0
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +2 -0
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +1 -0
- package/dist/collection/components/sqm-route/sqm-route.js +1 -0
- package/dist/collection/components/sqm-router/sqm-router.js +2 -0
- package/dist/collection/components/sqm-scroll/sqm-scroll.js +1 -0
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +1 -0
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +1 -0
- package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +1 -1
- package/dist/collection/components/sqm-tabs/sqm-tabs.js +2 -0
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +11 -11
- package/dist/collection/components/sqm-text/sqm-text.js +8 -6
- package/dist/collection/components/sqm-text-span/sqm-text-span.js +1 -0
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry-view.js +1 -1
- package/dist/collection/components/sqm-timeline/sqm-timeline.js +3 -1
- package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +2 -0
- package/dist/collection/global/styles.js +4 -3
- package/dist/collection/global/styles.ts +4 -3
- package/dist/esm/{ShadowViewAddon-cf230f50.js → ShadowViewAddon-e350d540.js} +16 -17
- package/dist/esm/{global-be1f9992.js → global-1d207c9e.js} +4 -3
- 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 +2 -2
- package/dist/esm/sqm-big-stat_41.entry.js +10 -8
- package/dist/esm/sqm-email-verification.entry.js +1 -1
- package/dist/esm/sqm-empty_4.entry.js +9 -8
- package/dist/esm/{sqm-invoice-table-view-2c726568.js → sqm-invoice-table-view-e0c9772a.js} +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm/sqm-pagination_3.entry.js +2 -2
- package/dist/esm/{sqm-portal-email-verification-view-35b4353b.js → sqm-portal-email-verification-view-6c8bad0b.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-93003974.js → sqm-portal-profile-view-cbdeec1f.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 +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +5 -5
- package/dist/esm-es5/ShadowViewAddon-e350d540.js +1 -0
- package/dist/esm-es5/{global-be1f9992.js → global-1d207c9e.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_41.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-2c726568.js → sqm-invoice-table-view-e0c9772a.js} +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-35b4353b.js → sqm-portal-email-verification-view-6c8bad0b.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-93003974.js → sqm-portal-profile-view-cbdeec1f.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/mint-components/global/styles.ts +4 -3
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/p-091e7ca2.system.entry.js +1 -0
- package/dist/mint-components/{p-cbbfac66.entry.js → p-15d77d0b.entry.js} +2 -2
- package/dist/mint-components/{p-b82e1935.system.entry.js → p-1673fae9.system.entry.js} +1 -1
- package/dist/mint-components/{p-693942df.entry.js → p-23379b5b.entry.js} +1 -1
- package/dist/mint-components/p-2bcd406c.system.js +1 -0
- package/dist/mint-components/{p-de8e9981.system.entry.js → p-342bc70c.system.entry.js} +1 -1
- package/dist/mint-components/{p-7846937e.entry.js → p-3a31cc83.entry.js} +2 -2
- package/dist/mint-components/{p-37996351.system.js → p-3ba1ab43.system.js} +1 -1
- package/dist/mint-components/{p-5cb7f9fc.system.entry.js → p-441b60ac.system.entry.js} +1 -1
- package/dist/mint-components/{p-bdb7d451.system.js → p-475245d1.system.js} +1 -1
- package/dist/mint-components/p-5bdafc7e.system.entry.js +1 -0
- package/dist/mint-components/{p-653f963f.entry.js → p-6a97b51d.entry.js} +2 -2
- package/dist/mint-components/{p-65069b66.js → p-6d4a313f.js} +1 -1
- package/dist/mint-components/{p-50c902ca.system.entry.js → p-6df88590.system.entry.js} +1 -1
- package/dist/mint-components/{p-b287833c.system.entry.js → p-709e1799.system.entry.js} +1 -1
- package/dist/mint-components/{p-fe2e2f4a.entry.js → p-716d0275.entry.js} +1 -1
- package/dist/mint-components/{p-5d7e308c.system.entry.js → p-904ebcf6.system.entry.js} +1 -1
- package/dist/mint-components/{p-10d17989.entry.js → p-9b894557.entry.js} +1 -1
- package/dist/mint-components/{p-21620f81.system.entry.js → p-9cb06082.system.entry.js} +1 -1
- package/dist/mint-components/{p-0d182dc1.system.js → p-9d3d4098.system.js} +1 -1
- package/dist/mint-components/p-9db71c84.entry.js +1 -0
- package/dist/mint-components/{p-ef6381d4.entry.js → p-b2bf509e.entry.js} +1 -1
- package/dist/mint-components/{p-a7746488.system.js → p-b33b7eb5.system.js} +1 -1
- package/dist/mint-components/{p-4e773bb1.system.entry.js → p-babcdb1f.system.entry.js} +1 -1
- package/dist/mint-components/{p-116baa69.entry.js → p-c3bfb9c3.entry.js} +11 -11
- package/dist/mint-components/{p-3f067fd5.js → p-c8147def.js} +1 -1
- package/dist/mint-components/{p-cd569259.system.js → p-d929b9d5.system.js} +1 -1
- package/dist/mint-components/{p-63a75798.js → p-e41aac34.js} +1 -1
- package/dist/mint-components/p-f1e72435.entry.js +33 -0
- package/dist/mint-components/p-f3e2098c.js +394 -0
- package/dist/mint-components/{p-1f089c3f.system.entry.js → p-f71ae358.system.entry.js} +1 -1
- package/dist/mint-components/{p-57eef0af.entry.js → p-f87ae19e.entry.js} +1 -1
- package/dist/mint-components/{p-bbcd824a.js → p-fbac722b.js} +1 -1
- package/dist/types/components/sqm-card-feed/sqm-card-feed.d.ts +1 -1
- package/dist/types/components/sqm-coupon-code/sqm-coupon-code.d.ts +1 -0
- package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +2 -0
- package/dist/types/components/sqm-header-logo/sqm-header-logo.d.ts +1 -0
- package/dist/types/components/sqm-hero/sqm-hero.d.ts +1 -0
- package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +1 -0
- package/dist/types/components/sqm-image/sqm-image.d.ts +1 -0
- package/dist/types/components/sqm-instant-access-registration/sqm-instant-access-registration.d.ts +1 -0
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +1 -0
- package/dist/types/components/sqm-navigation-menu/sqm-navigation-menu.d.ts +1 -0
- package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar.d.ts +2 -0
- package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password.d.ts +1 -0
- package/dist/types/components/sqm-portal-footer/sqm-portal-footer.d.ts +1 -0
- package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +1 -0
- package/dist/types/components/sqm-portal-logout/sqm-portal-logout.d.ts +1 -0
- package/dist/types/components/sqm-portal-profile/sqm-portal-profile.d.ts +1 -0
- package/dist/types/components/sqm-portal-protected-route/sqm-portal-protected-route.d.ts +1 -0
- package/dist/types/components/sqm-program-explainer/sqm-program-explainer.d.ts +2 -0
- package/dist/types/components/sqm-program-menu/sqm-program-menu.d.ts +1 -0
- package/dist/types/components/sqm-qr-code/sqm-qr-code.d.ts +1 -0
- package/dist/types/components/sqm-referral-card/sqm-referral-card.d.ts +3 -1
- package/dist/types/components/sqm-referral-code/sqm-referral-code.d.ts +1 -0
- package/dist/types/components/sqm-referral-codes/sqm-referral-codes.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +2 -0
- package/dist/types/components/sqm-referred-registration/sqm-referred-registration.d.ts +1 -0
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +2 -0
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +1 -0
- package/dist/types/components/sqm-route/sqm-route.d.ts +1 -0
- package/dist/types/components/sqm-router/sqm-router.d.ts +2 -0
- package/dist/types/components/sqm-scroll/sqm-scroll.d.ts +1 -0
- package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +1 -0
- package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +1 -0
- package/dist/types/components/sqm-stat-container/sqm-stat-container.d.ts +1 -1
- package/dist/types/components/sqm-tabs/sqm-tabs.d.ts +2 -0
- package/dist/types/components/sqm-text/sqm-text.d.ts +1 -0
- package/dist/types/components/sqm-text-span/sqm-text-span.d.ts +1 -0
- package/dist/types/components/sqm-timeline/sqm-timeline.d.ts +3 -1
- package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +2 -0
- package/dist/types/global/styles.d.ts +1 -1
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/ShadowViewAddon-cf230f50.js +0 -1
- package/dist/mint-components/p-562428ef.system.js +0 -1
- package/dist/mint-components/p-6cc141b9.js +0 -394
- package/dist/mint-components/p-cb7bdbe4.entry.js +0 -1
- package/dist/mint-components/p-daee25f9.system.entry.js +0 -1
- package/dist/mint-components/p-e5a5ae7f.system.entry.js +0 -1
- package/dist/mint-components/p-ff8b8067.entry.js +0 -33
|
@@ -3,6 +3,7 @@ import { getProps } from "../../utils/utils";
|
|
|
3
3
|
import { ImageView } from "./sqm-image-view";
|
|
4
4
|
/**
|
|
5
5
|
* @uiName Image
|
|
6
|
+
* @validParents ["sqm-brand","div","sqm-portal-container","sqm-divided-layout","sqm-titled-section", "sqb-program-section", "sqb-conditional-section"]
|
|
6
7
|
* @exampleGroup Common Components
|
|
7
8
|
* @example Image - <sqm-image image-url="https://res.cloudinary.com/saasquatch/image/upload/v1644000259/squatch-assets/tn47wOj.png" alignment="center"></sqm-image>
|
|
8
9
|
*/
|
|
@@ -6,6 +6,7 @@ import { EmailRegistrationView, } from "../views/email-registration-view";
|
|
|
6
6
|
import { useInstantAccessRegistration } from "./useInstantAccessRegistration";
|
|
7
7
|
/**
|
|
8
8
|
* @uiName Instant Access Registration
|
|
9
|
+
* @validParents ["sqm-portal-container","div","sqm-hero","template", "sqb-program-section", "sqb-conditional-section"]
|
|
9
10
|
* @compatibility Built for instant access
|
|
10
11
|
* @exampleGroup Instant Access
|
|
11
12
|
* @example Instant Access Registration - <sqm-instant-access-registration></sqm-instant-access-registration>
|
|
@@ -24,14 +24,14 @@ const style = {
|
|
|
24
24
|
"& .ellipses": {
|
|
25
25
|
textAlign: "left",
|
|
26
26
|
padding: "0",
|
|
27
|
-
color: "var(--
|
|
27
|
+
color: "var(--sqm-text)",
|
|
28
28
|
paddingLeft: "25%",
|
|
29
29
|
},
|
|
30
30
|
"& .highlight": {
|
|
31
31
|
background: "var(--sl-color-primary-50)",
|
|
32
32
|
},
|
|
33
33
|
"& td, th": {
|
|
34
|
-
color: "var(--
|
|
34
|
+
color: "var(--sqm-text)",
|
|
35
35
|
padding: "var(--sl-spacing-medium)",
|
|
36
36
|
},
|
|
37
37
|
"& .User": {
|
|
@@ -7,6 +7,7 @@ import { LeaderboardView } from "./sqm-leaderboard-view";
|
|
|
7
7
|
import { useLeaderboard } from "./useLeaderboard";
|
|
8
8
|
/**
|
|
9
9
|
* @uiName Leaderboard
|
|
10
|
+
* @validParents ["sqm-portal-container","div","sqm-hero","sqm-instant-access-registration","sqm-brand","sqb-program-section","sqb-conditional-section"]
|
|
10
11
|
* @slots [{"name":"empty", "title":"Empty State"}]
|
|
11
12
|
* @requiredFeatures ["LEADERBOARDS"]
|
|
12
13
|
* @exampleGroup Leaderboard
|
|
@@ -5,6 +5,8 @@ import { Component, h, State } from "@stencil/core";
|
|
|
5
5
|
import { NavigationSidebarView } from "./sqm-navigation-sidebar-view";
|
|
6
6
|
/**
|
|
7
7
|
* @uiName Microsite Sidebar
|
|
8
|
+
* @validParents ["div","sqm-divided-layout","template","sqm-portal-container","sqm-brand"]
|
|
9
|
+
* @validChildren ["sqm-navigation-sidebar-item"]
|
|
8
10
|
* @slots [{"name":"", "title":"Sidebar Content"}]
|
|
9
11
|
*/
|
|
10
12
|
export class NavigationSidebar {
|
|
@@ -7,6 +7,7 @@ import deepmerge from "deepmerge";
|
|
|
7
7
|
import { useState } from "@saasquatch/universal-hooks";
|
|
8
8
|
/**
|
|
9
9
|
* @uiName Microsite Password Change
|
|
10
|
+
* @validParents ["sqm-portal-container","div","sqm-divided-layout","sqm-brand"]
|
|
10
11
|
*/
|
|
11
12
|
export class PortalChangePassword {
|
|
12
13
|
constructor() {
|
|
@@ -7,6 +7,7 @@ import { usePortalLogin } from "./usePortalLogin";
|
|
|
7
7
|
import { createStyleSheet } from "../../styling/JSS";
|
|
8
8
|
/**
|
|
9
9
|
* @uiName Microsite Login
|
|
10
|
+
* @validParents ["sqm-portal-container","div","sqm-divided-layout","sqm-brand", "template"]
|
|
10
11
|
*/
|
|
11
12
|
export class PortalLogin {
|
|
12
13
|
constructor() {
|
|
@@ -4,6 +4,7 @@ import { Component, Prop, State } from "@stencil/core";
|
|
|
4
4
|
import { usePortalLogout } from "./usePortalLogout";
|
|
5
5
|
/**
|
|
6
6
|
* @uiName Microsite Logout
|
|
7
|
+
* @validParents ["sqm-portal-container","div","sqm-divided-layout","sqm-brand","template"]
|
|
7
8
|
* @compatibility Built for instant access
|
|
8
9
|
*/
|
|
9
10
|
export class PortalLogout {
|
|
@@ -7,6 +7,7 @@ import { isDemo } from "@saasquatch/component-boilerplate";
|
|
|
7
7
|
import deepmerge from "deepmerge";
|
|
8
8
|
/**
|
|
9
9
|
* @uiName Microsite Participant Profile
|
|
10
|
+
* @validParents ["sqm-portal-container","div","sqm-divided-layout","sqm-brand","template"]
|
|
10
11
|
*/
|
|
11
12
|
export class PortalProfile {
|
|
12
13
|
constructor() {
|
|
@@ -4,6 +4,7 @@ import { h, Component, Prop, State, Host } from "@stencil/core";
|
|
|
4
4
|
import { usePortalProtectedRoute } from "./usePortalProtectedRoute";
|
|
5
5
|
/**
|
|
6
6
|
* @uiName Microsite Protected Route
|
|
7
|
+
* @validParents ["sqm-portal-container","div","sqm-divided-layout","sqm-brand","template", "sqb-program-section", "sqb-conditional-section"]
|
|
7
8
|
* @slots [{"name":"","title":"Route Content"}]
|
|
8
9
|
*/
|
|
9
10
|
export class PortalProtectedRoute {
|
|
@@ -3,7 +3,7 @@ import { createStyleSheet } from "../../styling/JSS";
|
|
|
3
3
|
export function ProgramExplainerView(props, children) {
|
|
4
4
|
const style = {
|
|
5
5
|
Container: {
|
|
6
|
-
color: props.textColor || "var(--
|
|
6
|
+
color: props.textColor || "var(--sqm-text)",
|
|
7
7
|
background: props.backgroundColor || "",
|
|
8
8
|
},
|
|
9
9
|
Header: {
|
|
@@ -4,6 +4,8 @@ import { getProps } from "../../utils/utils";
|
|
|
4
4
|
import { ProgramExplainerView } from "./sqm-program-explainer-view";
|
|
5
5
|
/**
|
|
6
6
|
* @uiName Program Explainer
|
|
7
|
+
* @validParents ["sqm-portal-container","div","sqm-divided-layout","sqm-brand","template","sqb-program-section","sqb-conditional-section"]
|
|
8
|
+
* @validChildren ["sqm-program-explainer-step"]
|
|
7
9
|
* @exampleGroup Common Components
|
|
8
10
|
* @slots [{"name":"", "title":"Explainer", "validChildren":["sqm-program-explainer-step"]}]
|
|
9
11
|
* @example Program Explainer - <sqm-program-explainer header="How it works"><sqm-program-explainer-step description="Explore and use our product while earning points in the process!" header="Earn points" icon="cash-stack" text-color="#000000"></sqm-program-explainer-step><sqm-program-explainer-step description="Use your points and redeem rewards like one free month of Enterprise or a visa giftcard" header="Redeem rewards" icon="people" text-color="#000000"></sqm-program-explainer-step></sqm-program-explainer>
|
package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js
CHANGED
|
@@ -8,7 +8,7 @@ export function ProgramExplainerStepView(props) {
|
|
|
8
8
|
width: "100%",
|
|
9
9
|
padding: "var(--sl-spacing-x-large)",
|
|
10
10
|
lineHeight: "var(--sl-line-height-dense)",
|
|
11
|
-
color: props.textColor || "var(--
|
|
11
|
+
color: props.textColor || "var(--sqm-text)",
|
|
12
12
|
background: props.backgroundColor || "var(--sl-color-primary-50)",
|
|
13
13
|
"@media (max-width: 499px)": {
|
|
14
14
|
flexDirection: "row",
|
|
@@ -22,6 +22,7 @@ export function ProgramExplainerStepView(props) {
|
|
|
22
22
|
},
|
|
23
23
|
},
|
|
24
24
|
Header: {
|
|
25
|
+
color: props.textColor || "var(--sqm-text)",
|
|
25
26
|
fontSize: "var(--sl-font-size-large)",
|
|
26
27
|
fontWeight: "var(--sl-font-weight-bold)",
|
|
27
28
|
marginTop: "var(--sl-spacing-x-large)",
|
|
@@ -30,6 +31,7 @@ export function ProgramExplainerStepView(props) {
|
|
|
30
31
|
},
|
|
31
32
|
},
|
|
32
33
|
Description: {
|
|
34
|
+
color: props.textColor || "var(--sqm-text)",
|
|
33
35
|
fontSize: "var(--sl-font-size-medium)",
|
|
34
36
|
marginTop: "var(--sl-spacing-small)",
|
|
35
37
|
"@media (max-width: 499px)": {
|
|
@@ -4,6 +4,7 @@ import { useProgramMenu } from "./useProgramMenu";
|
|
|
4
4
|
import { getProps } from "../../utils/utils";
|
|
5
5
|
/**
|
|
6
6
|
* @uiName Microsite Program Menu
|
|
7
|
+
* @validParents ["sqm-portal-container","div","sqm-divided-layout","sqm-brand","template"]
|
|
7
8
|
* @slots [{"name":"","title":"Menu Content"}]
|
|
8
9
|
* @canvasRenderer always-replace
|
|
9
10
|
*/
|
|
@@ -7,6 +7,7 @@ import { QrCodeView } from "./sqm-qr-code-view";
|
|
|
7
7
|
import { useQRCode } from "./useQRCode";
|
|
8
8
|
/**
|
|
9
9
|
* @uiName QR Code
|
|
10
|
+
* @validParents ["sqm-portal-container","div","sqm-divided-layout","sqm-brand", "sqb-program-section", "sqb-conditional-section"]
|
|
10
11
|
* @exampleGroup Sharing
|
|
11
12
|
* @example QR Code - <sqm-qr-code></sqm-qr-code>
|
|
12
13
|
*/
|
|
@@ -3,7 +3,7 @@ import { createStyleSheet } from "../../styling/JSS";
|
|
|
3
3
|
const style = {
|
|
4
4
|
Container: {
|
|
5
5
|
borderRadius: "var(--sl-border-radius-large)",
|
|
6
|
-
color: "var(--
|
|
6
|
+
color: "var(--sqm-text)",
|
|
7
7
|
background: "var(--sl-color-neutral-0)",
|
|
8
8
|
display: "flex",
|
|
9
9
|
flexDirection: "column",
|
|
@@ -5,10 +5,12 @@ import { ReferralCardView } from "./sqm-referral-card-view";
|
|
|
5
5
|
import { useChildElements } from "../../tables/useChildElements";
|
|
6
6
|
/**
|
|
7
7
|
* @uiName Referral Card
|
|
8
|
+
* @validParents ["sqm-portal-container","div","sqm-divided-layout","sqm-brand","template","sqb-program-section","sqb-conditional-section"]
|
|
9
|
+
* @validChildren ["div","sqm-portal-container","p","sqm-timeline","h1","h2","h3","h5","h4","sqm-pagination","sqm-qr-code","sqm-referral-code","sqm-referral-codes","sqm-share-code","sqm-share-link","sqm-text","span"]
|
|
8
10
|
* @exampleGroup Referrals
|
|
9
11
|
* @slots [{"name":"left", "title":"Left Content"},{"name":"right", "title":"Right Content"},{"name":"header", "title":"Header Content"},{"name":"footer", "title":"Footer Content"}]
|
|
10
12
|
* @example Referral Card - <sqm-referral-card vertical-alignment="start"> <sqm-portal-container gap="large" slot="left" direction="column" display="grid" max-width="100%" padding="none" > <sqm-text >They’ll get a $50 credit towards a new account and you’ll get: </sqm-text> <sqm-timeline icon="circle"> <sqm-timeline-entry reward="$50" unit="visa giftcard" desc="Your friend purchases a Business plan" icon="circle" > </sqm-timeline-entry> <sqm-timeline-entry reward="$200" unit="visa giftcard" desc="Our sales team qualifies your friend as a good fit for our Enterprise plan" icon="circle" > </sqm-timeline-entry> <sqm-timeline-entry reward="$1000" unit="visa giftcard" desc="Your friend purchases an Enterprise plan" icon="circle" > </sqm-timeline-entry> </sqm-timeline> </sqm-portal-container> <sqm-portal-container gap="large" slot="right" direction="column" display="grid" max-width="100%" padding="none" > <sqm-text>Choose how you want to share: </sqm-text> <sqm-text> <sub>Your unique referral link:</sub> <sqm-share-link tooltip-text="Copied to Clipboard" tooltip-lifespan="1000" > </sqm-share-link> </sqm-text> <sqm-portal-container gap="x-small" direction="column" display="grid" max-width="100%" padding="none" > <sqm-share-button medium="email" icon-slot="prefix" size="medium" type="default" > Share via email </sqm-share-button> <sqm-share-button medium="linkedin" icon-slot="prefix" size="medium" type="default" > Share on LinkedIn </sqm-share-button> <sqm-share-button medium="twitter" icon-slot="prefix" size="medium" type="default" > Share on Twitter </sqm-share-button> </sqm-portal-container> </sqm-portal-container> </sqm-referral-card>
|
|
11
|
-
*/
|
|
13
|
+
* */
|
|
12
14
|
export class ReferralCard {
|
|
13
15
|
constructor() {
|
|
14
16
|
this.ignored = true;
|
|
@@ -7,6 +7,7 @@ import { CopyTextView } from "../views/copy-text-view";
|
|
|
7
7
|
import { useReferralCode } from "./useReferralCode";
|
|
8
8
|
/**
|
|
9
9
|
* @uiName Referral Code
|
|
10
|
+
* @validParents ["sqm-portal-container","div","sqm-divided-layout","sqm-brand","template","sqm-referral-card","span"]
|
|
10
11
|
* @exampleGroup Sharing
|
|
11
12
|
* @example Referral Code - <sqm-referral-code tooltip-text="Copied to Clipboard" tooltip-lifespan="1000" show-notification-text="true"></sqm-referral-code>
|
|
12
13
|
*/
|
|
@@ -7,6 +7,7 @@ import { ReferralCodesView, } from "./sqm-referral-codes-view";
|
|
|
7
7
|
import { useReferralCodes } from "./useReferralCodes";
|
|
8
8
|
/**
|
|
9
9
|
* @uiName Promo Codes
|
|
10
|
+
* @validParents ["sqm-portal-container","div","sqm-divided-layout","sqm-brand","template","sqm-referral-card","span","sqb-program-section","sqb-conditional-section"]
|
|
10
11
|
* @slots [{"name":"", "title":"Promo Codes Content"}]
|
|
11
12
|
* @exampleGroup Sharing
|
|
12
13
|
* @example Promo Codes - <sqm-referral-codes><sqm-pagination slot="pagination"></sqm-pagination><sqm-referral-code slot="shareCodes" show-notification-text="true"></sqm-referral-code><sqm-portal-container gap="small" slot="shareButtons"><sqm-share-button medium="email">Share via email</sqm-share-button><sqm-share-button medium="fbmessenger">Share on Facebook</sqm-share-button><sqm-share-button medium="whatsapp">Share on WhatsApp</sqm-share-button></sqm-portal-container></sqm-referral-codes>
|
|
@@ -10,6 +10,8 @@ import mockReferralData from "./mockReferralData";
|
|
|
10
10
|
import { tryMethod, useReferralTable } from "./useReferralTable";
|
|
11
11
|
/**
|
|
12
12
|
* @uiName Referral Table
|
|
13
|
+
* @validParents ["sqm-portal-container","div","sqm-divided-layout","sqm-brand","template","sqm-referral-card","span","sqm-tab","sqb-program-section","sqb-conditional-section"]
|
|
14
|
+
* @validChildren ["sqm-referral-table-column","sqm-referral-table-date-column","sqm-referral-table-rewards-column","sqm-referral-table-status-column","sqm-referral-table-user-column","sqm-empty"]
|
|
13
15
|
* @exampleGroup Referrals
|
|
14
16
|
* @slots [{"name":"", "title":"Table Row"},{"name":"empty", "title":"Empty"},{"name":"loading","title":"Loading"}]
|
|
15
17
|
* @example Referral Table - <sqm-referral-table per-page="4" hidden-columns="2" more-label="Next" prev-label="Prev" sm-breakpoint="599" md-breakpoint="799" > <sqm-referral-table-user-column column-title="Customer" anonymous-user="Anonymous User" deleted-user="Deleted User" ></sqm-referral-table-user-column> <sqm-referral-table-rewards-column column-title="Rewards" status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} PAYOUT_FAILED {Payout Failed} PAYOUT_CANCELLED {Payout Cancelled} PENDING_TAX_REVIEW {Pending} PENDING_NEW_TAX_FORM {Pending} PENDING_TAX_SUBMISSION {Pending} PENDING_PARTNER_CREATION {Pending} DENIED {Denied} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }" status-long-text="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Reward approved for payout and was scheduled for payment based on your settings.} PAYOUT_FAILED {Payout failed due to a fulfillment issue and is currently being retried.} PAYOUT_CANCELLED {If you think this is a mistake, contact our Support team.} 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} DENIED {Denied on} EXPIRED {Reward expired on} other {Not available} }" fuel-tank-text="Your code is" reward-received-text="Reward received on" expiring-text="Expiring in" pending-for-text="{status} for {date}" denied-help-text="Contact support if you think this is a mistake." ></sqm-referral-table-rewards-column> <sqm-referral-table-date-column column-title="Date converted" date-shown="dateConverted" ></sqm-referral-table-date-column> <sqm-referral-table-status-column column-title="Status" converted-status-text="Converted" in-progress-status-text="In Progress" pending-review-status-text="Pending" denied-status-text="Denied" pending-review-status-sub-text="Awaiting review" denied-status-sub-text="Detected self-referral" ></sqm-referral-table-status-column> <sqm-empty empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_referral2.png" empty-state-header="View your referral details" empty-state-text="Refer a friend to view the status of your referrals and rewards earned" slot="empty" ></sqm-empty> </sqm-referral-table>
|
|
@@ -6,6 +6,7 @@ import { useInstantAccessRegistration } from "../sqm-instant-access-registration
|
|
|
6
6
|
import { EmailRegistrationView, } from "../views/email-registration-view";
|
|
7
7
|
/**
|
|
8
8
|
* @uiName Instant Access Friend Registration
|
|
9
|
+
* @validParents ["sqm-portal-container","div","sqm-divided-layout","sqm-brand","template","sqm-hero","sqb-program-section","sqb-conditional-section"]
|
|
9
10
|
* @compatibility Built for instant access
|
|
10
11
|
* @exampleGroup Instant Access
|
|
11
12
|
* @example Instant Access Friend Registration - <sqm-referred-registration></sqm-referred-registration>
|
|
@@ -8,6 +8,8 @@ import { getProps } from "../../utils/utils";
|
|
|
8
8
|
import { demoRewardExchange } from "./RewardExchangeListData";
|
|
9
9
|
/**
|
|
10
10
|
* @uiName Reward Exchange
|
|
11
|
+
* @validParents ["sqm-portal-container","div","sqm-divided-layout","sqm-brand","template","sqm-hero","sqm-tab","sqb-program-section","sqb-conditional-section"]
|
|
12
|
+
* @validChildren ["sqm-empty"]
|
|
11
13
|
* @slots [{"name":"empty", "title":"Empty State"}]
|
|
12
14
|
* @exampleGroup Rewards
|
|
13
15
|
* @example Reward Exchange - <sqm-reward-exchange-list not-available-error="{unavailableReasonCode, select, US_TAX {US Tax limit} INSUFFICIENT_REDEEMABLE_CREDIT {{sourceValue} required} AVAILABILITY_PREDICATE {Not available} other {{unavailableReasonCode}} }" choose-reward-title="Rewards" choose-amount-title="Select" confirmation-title="Confirm" reward-title="Choose a reward" cancel-text="Cancel" back-text="Back" continue-text="Continue" continue-to-confirmation-text="Continue to confirmation" redeem-text="Redeem" redeem-title="Confirm and redeem" redemption-success-text="Redeemed {sourceValue} for {destinationValue}" source-amount-message="{ruleType, select, FIXED_GLOBAL_REWARD {{sourceValue}} other {{sourceMinValue} to {sourceMaxValue}}}" tooltip-text="Copied" done-text="Done" select-text="Select amount to receive" query-error="Unable to load reward exchange list. Please try again" redemption-error="An error occured trying to redeem this reward. Please try again" not-enough-error="Not enough {sourceUnit} to redeem for this reward" reward-redeemed-text="Reward redeemed" promo-code="Promo Code" skeleton-card-num=8 reward-name-title="Reward" reward-amount-title="Reward Amount" cost-title="Cost to Redeem"><sqm-empty empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_exchange2.png" empty-state-header="Redeem rewards" empty-state-text="Use your points to redeem rewards once they become available" slot="empty"></sqm-empty></sqm-reward-exchange-list>
|
|
@@ -10,6 +10,7 @@ import mockRewardData from "./mockRewardData";
|
|
|
10
10
|
import { tryMethod, useRewardsTable } from "./useRewardsTable";
|
|
11
11
|
/**
|
|
12
12
|
* @uiName Reward Table
|
|
13
|
+
* @validParents ["sqm-portal-container","div","sqm-divided-layout","sqm-brand","template","sqm-hero","sqm-tab","sqb-program-section","sqb-conditional-section"]
|
|
13
14
|
* @exampleGroup Rewards
|
|
14
15
|
* @slots [{"name":"", "title":"Table Row"},{"name":"empty", "title":"Empty"},{"name":"loading","title":"Loading"}]
|
|
15
16
|
* @example Reward Table - <sqm-rewards-table per-page="4" prev-label="Prev" more-label="Next" hidden-columns="0" sm-breakpoint="599" md-breakpoint="799" ><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> <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 ><sqm-rewards-table-reward-column column-title="Reward" redeemed-text="{redeemedAmount} redeemed" available-text="{availableAmount} remaining" copy-text="Copied!" ></sqm-rewards-table-reward-column ><sqm-rewards-table-date-column column-title="Date received" date-shown="dateGiven" ></sqm-rewards-table-date-column ><sqm-rewards-table-customer-note-column column-title="Note" ></sqm-rewards-table-customer-note-column ><sqm-empty slot="empty" empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_reward2.png" empty-state-header="View your rewards" empty-state-text="Complete program tasks to view the details of your rewards" ></sqm-empty ></sqm-rewards-table>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { h, Component, State, Prop, Host } from "@stencil/core";
|
|
2
2
|
/**
|
|
3
3
|
* @uiName Route
|
|
4
|
+
* @validParents ["sqm-portal-container","div","sqm-divided-layout","sqm-brand","template","sqm-hero","sqm-tab"]
|
|
4
5
|
* @slots [{"name":"","title":"Content"}]
|
|
5
6
|
*/
|
|
6
7
|
export class SqmRoute {
|
|
@@ -3,6 +3,8 @@ import { withHooks } from "@saasquatch/stencil-hooks";
|
|
|
3
3
|
import { useRouter } from "./useRouter";
|
|
4
4
|
/**
|
|
5
5
|
* @uiName Router
|
|
6
|
+
* @validParents ["sqm-portal-container","div","sqm-divided-layout","sqm-brand","template","sqm-hero","sqm-tab", "sqb-program-section", "sqb-conditional-section"]
|
|
7
|
+
* @validChildren ["sqm-route"]
|
|
6
8
|
* @slots [{"name":"","title":"Routes"}]
|
|
7
9
|
*/
|
|
8
10
|
export class SqmRouter {
|
|
@@ -4,6 +4,7 @@ import { useScroll } from "./useScroll";
|
|
|
4
4
|
import { createStyleSheet } from "../../styling/JSS";
|
|
5
5
|
/**
|
|
6
6
|
* @uiName Scroll Button
|
|
7
|
+
* @validParents ["sqm-portal-container","div","sqm-divided-layout","sqm-brand","template","sqm-hero","sqm-tab","sqb-program-section","sqb-conditional-section"]
|
|
7
8
|
* @slots [{"name":"", "title":"Button Content"}]
|
|
8
9
|
* @slotEditor richText
|
|
9
10
|
*/
|
|
@@ -7,6 +7,7 @@ import { getProps } from "../../utils/utils";
|
|
|
7
7
|
import deepmerge from "deepmerge";
|
|
8
8
|
/**
|
|
9
9
|
* @uiName Share Button
|
|
10
|
+
* @validParents ["sqm-portal-container","div","sqm-divided-layout","sqm-brand","template","sqm-hero","sqb-program-section","sqb-conditional-section"]
|
|
10
11
|
* @slots [{"name":"", "title":"Button Content"}]
|
|
11
12
|
* @slotEditor richText
|
|
12
13
|
* @uiOrder ["medium", "program-id", "*", "pill", "disabled", "hideicon"]
|
|
@@ -7,6 +7,7 @@ import { CopyTextView } from "../views/copy-text-view";
|
|
|
7
7
|
import { useShareCode } from "./useShareCode";
|
|
8
8
|
/**
|
|
9
9
|
* @uiName Share Code
|
|
10
|
+
* @validParents ["sqm-portal-container","div","sqm-divided-layout","sqm-brand","template","sqb-program-section","sqb-conditional-section"]
|
|
10
11
|
* @exampleGroup Sharing
|
|
11
12
|
* @example Share Code - <sqm-share-code tooltip-text="Copied to Clipboard" tooltip-lifespan="1000"></sqm-share-code>
|
|
12
13
|
*/
|
|
@@ -4,7 +4,7 @@ import { StatContainerView } from "./sqm-stat-container-view";
|
|
|
4
4
|
import { getProps } from "../../utils/utils";
|
|
5
5
|
/**
|
|
6
6
|
* @uiName Stat Container
|
|
7
|
-
* @validParents ["sqm-portal-container","div","sqm-divided-layout","sqm-brand","template","sqm-hero"]
|
|
7
|
+
* @validParents ["sqm-portal-container","div","sqm-divided-layout","sqm-brand","template","sqm-hero", "sqb-program-section", "sqb-conditional-section"]
|
|
8
8
|
* @validChildren ["sqm-big-stat"]
|
|
9
9
|
* @slots [{"name":"", "title":"Stats"}]
|
|
10
10
|
* @exampleGroup Statistics
|
|
@@ -5,6 +5,8 @@ import { TabsView } from "./sqm-tabs-view";
|
|
|
5
5
|
import { useTabs } from "./useTabs";
|
|
6
6
|
/**
|
|
7
7
|
* @uiName Tab Group
|
|
8
|
+
* @validParents ["sqm-portal-container","div","sqm-divided-layout","sqm-brand","template","sqb-program-section","sqb-conditional-section"]
|
|
9
|
+
* @validChildren ["sqm-tab"]
|
|
8
10
|
* @slots [{"name":"", "title":"Tabs","validChildren":["sqm-tab"]}]
|
|
9
11
|
* @exampleGroup Layout
|
|
10
12
|
* @canvasRenderer always-replace
|
|
@@ -19,19 +19,19 @@ const style = {
|
|
|
19
19
|
boxShadow: "1px 2px 4px rgba(211, 211, 211, 0.2)",
|
|
20
20
|
fontSize: "var(--sl-font-size-small)",
|
|
21
21
|
lineHeight: "var(--sl-line-height-dense)",
|
|
22
|
-
color: "var(--
|
|
22
|
+
color: "var(--sqm-text)",
|
|
23
23
|
},
|
|
24
24
|
"& .main.complete": {
|
|
25
25
|
background: "var(--sl-color-primary-50)",
|
|
26
26
|
borderColor: "var(--sl-color-primary-500)",
|
|
27
27
|
},
|
|
28
28
|
"& .main.expired": {
|
|
29
|
-
color: "var(--
|
|
29
|
+
color: "var(--sqm-text)",
|
|
30
30
|
background: "var(--sl-color-neutral-50)",
|
|
31
31
|
},
|
|
32
32
|
"& .title": {
|
|
33
33
|
fontSize: "var(--sl-font-size-medium)",
|
|
34
|
-
color: "var(--
|
|
34
|
+
color: "var(--sqm-text)",
|
|
35
35
|
},
|
|
36
36
|
"& .container": {
|
|
37
37
|
margin: "var(--sl-spacing-medium)",
|
|
@@ -92,7 +92,7 @@ const style = {
|
|
|
92
92
|
alignSelf: "center",
|
|
93
93
|
fontSize: "var(--sl-font-size-x-large)",
|
|
94
94
|
fontWeight: "var(--sl-font-weight-semibold)",
|
|
95
|
-
color: "var(--
|
|
95
|
+
color: "var(--sqm-text)",
|
|
96
96
|
lineHeight: "100%",
|
|
97
97
|
marginRight: "var(--sl-spacing-xx-small)",
|
|
98
98
|
},
|
|
@@ -100,7 +100,7 @@ const style = {
|
|
|
100
100
|
alignSelf: "end",
|
|
101
101
|
textTransform: "uppercase",
|
|
102
102
|
fontSize: "var(--sl-font-size-x-small)",
|
|
103
|
-
color: "var(--
|
|
103
|
+
color: "var(--sqm-text)",
|
|
104
104
|
lineHeight: "var(--sl-font-size-medium)",
|
|
105
105
|
marginRight: "var(--sl-spacing-xx-small)",
|
|
106
106
|
},
|
|
@@ -118,7 +118,7 @@ const style = {
|
|
|
118
118
|
color: "var(--sl-color-primary-300)",
|
|
119
119
|
},
|
|
120
120
|
"&[data-subdue] .neutral": {
|
|
121
|
-
color: "var(--
|
|
121
|
+
color: "var(--sqm-text)",
|
|
122
122
|
},
|
|
123
123
|
display: "flex",
|
|
124
124
|
"& .icon": {
|
|
@@ -130,7 +130,7 @@ const style = {
|
|
|
130
130
|
marginTop: "auto",
|
|
131
131
|
verticalAlign: "text-bottom",
|
|
132
132
|
fontSize: "var(--sl-font-size-x-small)",
|
|
133
|
-
color: "var(--
|
|
133
|
+
color: "var(--sqm-text)",
|
|
134
134
|
},
|
|
135
135
|
"& .success": {
|
|
136
136
|
color: "var(--sl-color-primary-500)",
|
|
@@ -140,19 +140,19 @@ const style = {
|
|
|
140
140
|
marginTop: "auto",
|
|
141
141
|
marginLeft: "auto",
|
|
142
142
|
"&::part(base)": {
|
|
143
|
-
color: "var(--
|
|
143
|
+
color: "var(--sqm-text)",
|
|
144
144
|
},
|
|
145
145
|
"&.disabled::part(base)": {
|
|
146
146
|
border: "1px solid var(--sl-color-primary-400)",
|
|
147
147
|
background: "var(--sl-color-primary-400)",
|
|
148
148
|
},
|
|
149
149
|
"&.neutral::part(base)": {
|
|
150
|
-
border: "1px solid var(--
|
|
151
|
-
background: "var(--
|
|
150
|
+
border: "1px solid var(--sqm-text)",
|
|
151
|
+
background: "var(--sqm-text)",
|
|
152
152
|
},
|
|
153
153
|
},
|
|
154
154
|
"& .neutral": {
|
|
155
|
-
color: "var(--
|
|
155
|
+
color: "var(--sqm-text)",
|
|
156
156
|
},
|
|
157
157
|
"& .datetime": {
|
|
158
158
|
display: "block",
|
|
@@ -3,52 +3,54 @@ import { withHooks } from "@saasquatch/stencil-hooks";
|
|
|
3
3
|
const vanillaStyle = `
|
|
4
4
|
sqm-text {
|
|
5
5
|
display: block;
|
|
6
|
+
color: var(--sqm-text);
|
|
6
7
|
}
|
|
7
8
|
|
|
8
9
|
sqm-text h1 {
|
|
9
10
|
font-size: var(--sl-font-size-xxx-large);
|
|
10
11
|
font-weight: var(--sl-font-weight-semibold);
|
|
11
|
-
color: var(--
|
|
12
|
+
color: var(--sqm-text);
|
|
12
13
|
margin: 0;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
sqm-text h2 {
|
|
16
17
|
font-size: var(--sl-font-size-xx-large);
|
|
17
18
|
font-weight: var(--sl-font-weight-semibold);
|
|
18
|
-
color: var(--
|
|
19
|
+
color: var(--sqm-text);
|
|
19
20
|
margin: 0;
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
sqm-text h3 {
|
|
23
24
|
font-size: var(--sl-font-size-x-large);
|
|
24
25
|
font-weight: var(--sl-font-weight-semibold);
|
|
25
|
-
color: var(--
|
|
26
|
+
color: var(--sqm-text);
|
|
26
27
|
margin: 0;
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
sqm-text h4 {
|
|
30
31
|
font-size: var(--sl-font-size-large);
|
|
31
32
|
font-weight: var(--sl-font-weight-bold);
|
|
32
|
-
color: var(--
|
|
33
|
+
color: var(--sqm-text);
|
|
33
34
|
margin: 0;
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
sqm-text p {
|
|
37
38
|
font-size: var(--sl-font-size-medium);
|
|
38
39
|
font-weight: var(--sl-font-weight-normal);
|
|
39
|
-
color: var(--
|
|
40
|
+
color: var(--sqm-text);
|
|
40
41
|
margin: 0;
|
|
41
42
|
}
|
|
42
43
|
|
|
43
44
|
sqm-text sub {
|
|
44
45
|
font-size: var(--sl-font-size-small);
|
|
45
46
|
font-weight: var(--sl-font-weight-normal);
|
|
46
|
-
color: var(--
|
|
47
|
+
color: var(--sqm-text);
|
|
47
48
|
margin: 0;
|
|
48
49
|
}
|
|
49
50
|
`;
|
|
50
51
|
/**
|
|
51
52
|
* @uiName Text
|
|
53
|
+
* @validParents ["sqm-portal-container","div","sqm-divided-layout","sqm-brand","template","sqm-hero","sqm-big-stat","span","sqm-text-span","sqb-program-section","sqb-conditional-section"]
|
|
52
54
|
* @slots [{"name":"", "title":"Text"}]
|
|
53
55
|
* @slotEditor richText
|
|
54
56
|
* @canvasRenderer always-replace
|
|
@@ -3,6 +3,7 @@ import { withHooks } from "@saasquatch/stencil-hooks";
|
|
|
3
3
|
import { TextSpanView } from "./sqm-text-span-view";
|
|
4
4
|
/**
|
|
5
5
|
* @uiName Text Span
|
|
6
|
+
* @validParents ["sqm-portal-container","div","sqm-divided-layout","sqm-brand","template","sqm-hero","sqm-big-stat","span","sqm-text-span","sqb-program-section","sqb-conditional-section"]
|
|
6
7
|
* @canvasRenderer always-replace
|
|
7
8
|
*/
|
|
8
9
|
export class Text {
|
|
@@ -3,7 +3,7 @@ import { createStyleSheet } from "../../styling/JSS";
|
|
|
3
3
|
import { Circle, Gift } from "./SVGs";
|
|
4
4
|
const style = {
|
|
5
5
|
TimelineReward: {
|
|
6
|
-
color: "var(--
|
|
6
|
+
color: "var(--sqm-text)",
|
|
7
7
|
lineHeight: "var(--sl-line-height-dense)",
|
|
8
8
|
"& .container": {
|
|
9
9
|
display: "flex",
|
|
@@ -3,10 +3,12 @@ import { Component, h, Prop, State } from "@stencil/core";
|
|
|
3
3
|
import { useChildElements } from "../../tables/useChildElements";
|
|
4
4
|
/**
|
|
5
5
|
* @uiName Program Timeline
|
|
6
|
+
* @validParents ["sqm-portal-container","div","sqm-divided-layout","sqm-brand","template","sqm-hero","sqm-tab","sqb-program-section","sqb-conditional-section"]
|
|
7
|
+
* @validChildren ["sqm-timeline-entry"]
|
|
6
8
|
* @slots [{"name":"","title":"Timeline","validChildren":["sqm-timeline-entry"]}]
|
|
7
9
|
* @exampleGroup Common Components
|
|
8
10
|
* @example Program Timeline - <sqm-timeline icon="circle"> <sqm-timeline-entry reward="$50" unit="visa giftcard" desc="You refer a friend" icon="circle" > </sqm-timeline-entry> <sqm-timeline-entry reward="$200" unit="visa giftcard" desc="Our sales team qualifies your friend as a good fit for our Enterprise plan" icon="circle" > </sqm-timeline-entry> <sqm-timeline-entry reward="$1000" unit="visa giftcard" desc="Your friend purchases an Enterprise plan" icon="circle" > </sqm-timeline-entry></sqm-timeline>
|
|
9
|
-
*/
|
|
11
|
+
*/
|
|
10
12
|
export class Timeline {
|
|
11
13
|
constructor() {
|
|
12
14
|
this.ignored = true;
|
|
@@ -4,6 +4,8 @@ import { getProps } from "../../utils/utils";
|
|
|
4
4
|
import { PortalSectionView } from "./sqm-portal-section-view";
|
|
5
5
|
/**
|
|
6
6
|
* @uiName Titled Section
|
|
7
|
+
* @validParents ["sqm-portal-container","div","sqm-divided-layout","sqm-brand","template","sqm-hero","sqm-tab"]
|
|
8
|
+
* @validChildren ["div","sqm-portal-container","p","sqm-timeline","h1","h2","h3","h5","h4","sqm-qr-code","sqm-referral-code","sqm-referral-codes","sqm-share-code","sqm-share-link","sqm-text","span"]
|
|
7
9
|
* @slots [{"name":"label", "title":"Label"},{"name":"content", "title":"Content"}]
|
|
8
10
|
* @exampleGroup Layout
|
|
9
11
|
* @example Titled Section - <sqm-titled-section text-align="center" label-margin="small" padding="none"><div slot="label"><h2>Section Label</h2></div><div slot="content"><p>Add your section content here!</p></div></sqm-titled-section>
|
|
@@ -584,6 +584,8 @@ html {
|
|
|
584
584
|
--widget-background-color: var(--sl-color-white);
|
|
585
585
|
--sqm-portal-main-width: 900px;
|
|
586
586
|
--sqm-max-width: 100%;
|
|
587
|
+
--sqm-text: var(--sl-color-neutral-800);
|
|
588
|
+
--sqm-text-subdued: var(--sl-color-neutral-500);
|
|
587
589
|
}
|
|
588
590
|
|
|
589
591
|
body {
|
|
@@ -591,7 +593,7 @@ body {
|
|
|
591
593
|
font-size: var(--sl-font-size-medium);
|
|
592
594
|
font-weight: var(--sl-font-weight-normal);
|
|
593
595
|
letter-spacing: var(--sl-letter-spacing-small);
|
|
594
|
-
color: var(--
|
|
596
|
+
color: var(--sqm-text);
|
|
595
597
|
line-height: var(--sl-line-height-normal);
|
|
596
598
|
margin: 0;
|
|
597
599
|
background-color: var(--sqm-portal-background);
|
|
@@ -623,7 +625,6 @@ h2, .Title {
|
|
|
623
625
|
}
|
|
624
626
|
.P {
|
|
625
627
|
font-size: var(--sl-font-size-small);
|
|
626
|
-
color: var(--sl-color-gray-800);
|
|
627
628
|
margin-top: 0px;
|
|
628
629
|
}
|
|
629
630
|
|
|
@@ -634,7 +635,7 @@ h2, .Title {
|
|
|
634
635
|
.Subtitle {
|
|
635
636
|
text-align: center;
|
|
636
637
|
margin-bottom: 0px;
|
|
637
|
-
color: var(--
|
|
638
|
+
color: var(--sqm-text-subdued);
|
|
638
639
|
}
|
|
639
640
|
.SupportText{
|
|
640
641
|
margin-top: var(--sl-spacing-small);
|