@saasquatch/mint-components 1.5.6-1 → 1.5.6-2
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/collection/components/sqm-big-stat/sqm-big-stat.js +1 -1
- package/dist/collection/components/sqm-brand/sqm-brand.js +1 -1
- package/dist/collection/components/sqm-card-feed/sqm-card-feed.js +1 -0
- package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +1 -0
- package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +2 -1
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +1 -0
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +10 -3
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +1 -0
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +1 -0
- package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +1 -0
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry.js +1 -0
- package/dist/collection/components/sqm-timeline/sqm-timeline.js +4 -2
- package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +1 -1
- package/dist/types/components/sqm-brand/sqm-brand.d.ts +1 -1
- package/dist/types/components/sqm-card-feed/sqm-card-feed.d.ts +1 -0
- package/dist/types/components/sqm-portal-container/sqm-portal-container.d.ts +1 -0
- package/dist/types/components/sqm-referral-card/sqm-referral-card.d.ts +2 -1
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +1 -0
- package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +10 -3
- package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +1 -0
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +1 -0
- package/dist/types/components/sqm-stat-container/sqm-stat-container.d.ts +1 -0
- package/dist/types/components/sqm-timeline/sqm-timeline-entry.d.ts +1 -0
- package/dist/types/components/sqm-timeline/sqm-timeline.d.ts +4 -2
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -2
|
@@ -7,7 +7,7 @@ import { isDemo, useHost } from "@saasquatch/component-boilerplate";
|
|
|
7
7
|
/**
|
|
8
8
|
*
|
|
9
9
|
* @uiName Big Stat
|
|
10
|
-
* @
|
|
10
|
+
* @slots [{"name":"","title":"Stat Text"}]
|
|
11
11
|
* @example Points Balance - <sqm-big-stat flex-reverse="true" alignment="left" stat-type="/rewardBalance/CREDIT/POINT/value/global">Points Balance</sqm-big-stat>
|
|
12
12
|
* @example GiftCards Earned - <sqm-big-stat flex-reverse="true" alignment="left" stat-type="/integrationRewardsCountFiltered/AVAILABLE/global">Giftcards Earned</sqm-big-stat>
|
|
13
13
|
* @example Referrals - <sqm-big-stat flex-reverse="true" alignment="left" stat-type="/referralsCount">Referrals</sqm-big-stat>
|
|
@@ -6,7 +6,7 @@ import { autoColorScaleCss } from "../sqm-stencilbook/AutoColor";
|
|
|
6
6
|
/**
|
|
7
7
|
*
|
|
8
8
|
* @uiName Brand Container
|
|
9
|
-
* @
|
|
9
|
+
* @slots [{"name":"","title":"Branded Content"}]
|
|
10
10
|
*/
|
|
11
11
|
export class BrandComponent {
|
|
12
12
|
constructor() {
|
|
@@ -4,7 +4,8 @@ import { getProps } from "../../utils/utils";
|
|
|
4
4
|
import { ReferralCardView } from "./sqm-referral-card-view";
|
|
5
5
|
/**
|
|
6
6
|
* @uiName Referral Card
|
|
7
|
-
* @
|
|
7
|
+
* @slots [{"name":"left","title":"Left Content"},{"name":"right","title":"Right Content"}]
|
|
8
|
+
* @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>
|
|
8
9
|
*/
|
|
9
10
|
export class ReferralCard {
|
|
10
11
|
constructor() {
|
|
@@ -8,6 +8,7 @@ import { getProps } from "../../utils/utils";
|
|
|
8
8
|
import { demoRewardExchange } from "./RewardExchangeListData";
|
|
9
9
|
/**
|
|
10
10
|
* @uiName Reward Exchange
|
|
11
|
+
* @example Reward Exchange - <sqm-reward-exchange-list back-text="Back" button-text="Exchange Rewards" cancel-text="Cancel" choose-amount-title="Select" choose-reward-title="Rewards" confirmation-title="Confirm" continue-text="Continue" continue-to-confirmation-text="Continue to confirmation" done-text="Done" reward-title="Choose a reward" not-available-error="{unavailableReasonCode, select, US_TAX {US Tax limit} INSUFFICIENT_REDEEMABLE_CREDIT {{sourceValue} required} AVAILABILITY_PREDICATE {Not available} other {{unavailableReasonCode}} }" not-enough-error="Not enough {sourceUnit} to redeem for this reward" query-error="Unable to load reward exchange list. Please try again" redeem-text="Redeem" redeem-title="Confirm and redeem" redemption-error="An error occured trying to redeem this reward. Please try again" redemption-success-text="Redeemed {sourceValue} for {destinationValue}" select-text="Select amount to receive" source-amount-message="{ruleType, select, FIXED_GLOBAL_REWARD {{sourceValue}} other {{sourceMinValue} to {sourceMaxValue}}}" tooltiptext="Copied" reward-name-title="Reward" reward-amount-title="Reward Amount" cost-title="Cost to Redeem" reward-redeemed-text="Reward redeemed" skeleton-card-num="8" promo-code="Promo Code" tooltip-text="Copied!"><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" > </sqm-empty></sqm-reward-exchange-list>
|
|
11
12
|
*/
|
|
12
13
|
export class SqmRewardExchangeList {
|
|
13
14
|
constructor() {
|
|
@@ -8,9 +8,16 @@ import deepmerge from "deepmerge";
|
|
|
8
8
|
/**
|
|
9
9
|
* @uiName Share Button
|
|
10
10
|
* @uiOrder ["medium", "program-id", "*", "pill", "disabled", "hideicon"]
|
|
11
|
-
* @example
|
|
12
|
-
* @example
|
|
13
|
-
* @example
|
|
11
|
+
* @example Facebook Share Button - <sqm-share-button medium="facebook">Share on Facebook</sqm-share-button>
|
|
12
|
+
* @example Twitter Share Button - <sqm-share-button medium="twitter">Share via Tweet</sqm-share-button>
|
|
13
|
+
* @example Email Share Button - <sqm-share-button medium="email">Share via Email</sqm-share-button>
|
|
14
|
+
* @example Web Share Sheet Share Button - <sqm-share-button medium="direct">Share</sqm-share-button>
|
|
15
|
+
* @example LinkedIn Share Button - <sqm-share-button medium="linkedin">Share on LinkedIn</sqm-share-button>
|
|
16
|
+
* @example SMS Share Button - <sqm-share-button medium="sms">Text a friend</sqm-share-button>
|
|
17
|
+
* @example Facebook Messenger Share Button - <sqm-share-button medium="fbmessenger">Share via Messenger</sqm-share-button>
|
|
18
|
+
* @example WhatsApp Share Button - <sqm-share-button medium="whatsapp">Share via WhatsApp</sqm-share-button>
|
|
19
|
+
* @example Line Messenger Share Button - <sqm-share-button medium="linemessenger">Share via Line Messenger</sqm-share-button>
|
|
20
|
+
* @example Pinterest Share Button - <sqm-share-button medium="pinterest">Share on Pinterest</sqm-share-button>
|
|
14
21
|
*/
|
|
15
22
|
export class ShareButton {
|
|
16
23
|
constructor() {
|
|
@@ -7,6 +7,7 @@ import { useShareCode } from "./useShareCode";
|
|
|
7
7
|
import deepmerge from "deepmerge";
|
|
8
8
|
/**
|
|
9
9
|
* @uiName Share Code
|
|
10
|
+
* @example Share Code - <sqm-share-code tooltip-text="Copied to Clipboard" tooltip-lifespan="1000"></sqm-share-code>
|
|
10
11
|
*/
|
|
11
12
|
export class ShareCode {
|
|
12
13
|
constructor() {
|
|
@@ -7,6 +7,7 @@ import { getProps } from "../../utils/utils";
|
|
|
7
7
|
import deepmerge from "deepmerge";
|
|
8
8
|
/**
|
|
9
9
|
* @uiName Share Link
|
|
10
|
+
* @example Share Link - <sqm-share-link tooltip-text="Copied to Clipboard" tooltip-lifespan="1000"></sqm-share-link>
|
|
10
11
|
*/
|
|
11
12
|
export class ShareLink {
|
|
12
13
|
constructor() {
|
|
@@ -6,6 +6,7 @@ import { TimelineEntryView } from "./sqm-timeline-entry-view";
|
|
|
6
6
|
/**
|
|
7
7
|
* @uiName Timeline Entry
|
|
8
8
|
* @validParents ["sqm-timeline"]
|
|
9
|
+
* @example Timeline Entry - <sqm-timeline-entry reward="$50" unit="visa giftcard" desc="You refer a friend" icon="circle" > </sqm-timeline-entry>
|
|
9
10
|
*/
|
|
10
11
|
export class TimelineReward {
|
|
11
12
|
constructor() {
|
|
@@ -2,8 +2,10 @@ import { withHooks } from "@saasquatch/stencil-hooks";
|
|
|
2
2
|
import { Component, h, Prop, State } from "@stencil/core";
|
|
3
3
|
import { useChildElements } from "../../tables/useChildElements";
|
|
4
4
|
/**
|
|
5
|
-
* @uiName Timeline
|
|
6
|
-
|
|
5
|
+
* @uiName Program Timeline
|
|
6
|
+
* @slots [{"name":"","title":"Timeline","validChildren":["sqm-timeline-entry"]}]
|
|
7
|
+
* @examples 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>
|
|
8
|
+
*/
|
|
7
9
|
export class Timeline {
|
|
8
10
|
constructor() {
|
|
9
11
|
this.ignored = true;
|
|
@@ -3,7 +3,7 @@ import { DemoData } from "../../global/demo";
|
|
|
3
3
|
/**
|
|
4
4
|
*
|
|
5
5
|
* @uiName Big Stat
|
|
6
|
-
* @
|
|
6
|
+
* @slots [{"name":"","title":"Stat Text"}]
|
|
7
7
|
* @example Points Balance - <sqm-big-stat flex-reverse="true" alignment="left" stat-type="/rewardBalance/CREDIT/POINT/value/global">Points Balance</sqm-big-stat>
|
|
8
8
|
* @example GiftCards Earned - <sqm-big-stat flex-reverse="true" alignment="left" stat-type="/integrationRewardsCountFiltered/AVAILABLE/global">Giftcards Earned</sqm-big-stat>
|
|
9
9
|
* @example Referrals - <sqm-big-stat flex-reverse="true" alignment="left" stat-type="/referralsCount">Referrals</sqm-big-stat>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @uiName Referral Card
|
|
3
|
-
* @
|
|
3
|
+
* @slots [{"name":"left","title":"Left Content"},{"name":"right","title":"Right Content"}]
|
|
4
|
+
* @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>
|
|
4
5
|
*/
|
|
5
6
|
export declare class ReferralCard {
|
|
6
7
|
ignored: boolean;
|
|
@@ -2,6 +2,7 @@ import { RewardExchangeViewProps } from "./sqm-reward-exchange-list-view";
|
|
|
2
2
|
import { DemoData } from "../../global/demo";
|
|
3
3
|
/**
|
|
4
4
|
* @uiName Reward Exchange
|
|
5
|
+
* @example Reward Exchange - <sqm-reward-exchange-list back-text="Back" button-text="Exchange Rewards" cancel-text="Cancel" choose-amount-title="Select" choose-reward-title="Rewards" confirmation-title="Confirm" continue-text="Continue" continue-to-confirmation-text="Continue to confirmation" done-text="Done" reward-title="Choose a reward" not-available-error="{unavailableReasonCode, select, US_TAX {US Tax limit} INSUFFICIENT_REDEEMABLE_CREDIT {{sourceValue} required} AVAILABILITY_PREDICATE {Not available} other {{unavailableReasonCode}} }" not-enough-error="Not enough {sourceUnit} to redeem for this reward" query-error="Unable to load reward exchange list. Please try again" redeem-text="Redeem" redeem-title="Confirm and redeem" redemption-error="An error occured trying to redeem this reward. Please try again" redemption-success-text="Redeemed {sourceValue} for {destinationValue}" select-text="Select amount to receive" source-amount-message="{ruleType, select, FIXED_GLOBAL_REWARD {{sourceValue}} other {{sourceMinValue} to {sourceMaxValue}}}" tooltiptext="Copied" reward-name-title="Reward" reward-amount-title="Reward Amount" cost-title="Cost to Redeem" reward-redeemed-text="Reward redeemed" skeleton-card-num="8" promo-code="Promo Code" tooltip-text="Copied!"><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" > </sqm-empty></sqm-reward-exchange-list>
|
|
5
6
|
*/
|
|
6
7
|
export declare class SqmRewardExchangeList {
|
|
7
8
|
ignored: boolean;
|
|
@@ -3,9 +3,16 @@ import { DemoData } from "../../global/demo";
|
|
|
3
3
|
/**
|
|
4
4
|
* @uiName Share Button
|
|
5
5
|
* @uiOrder ["medium", "program-id", "*", "pill", "disabled", "hideicon"]
|
|
6
|
-
* @example
|
|
7
|
-
* @example
|
|
8
|
-
* @example
|
|
6
|
+
* @example Facebook Share Button - <sqm-share-button medium="facebook">Share on Facebook</sqm-share-button>
|
|
7
|
+
* @example Twitter Share Button - <sqm-share-button medium="twitter">Share via Tweet</sqm-share-button>
|
|
8
|
+
* @example Email Share Button - <sqm-share-button medium="email">Share via Email</sqm-share-button>
|
|
9
|
+
* @example Web Share Sheet Share Button - <sqm-share-button medium="direct">Share</sqm-share-button>
|
|
10
|
+
* @example LinkedIn Share Button - <sqm-share-button medium="linkedin">Share on LinkedIn</sqm-share-button>
|
|
11
|
+
* @example SMS Share Button - <sqm-share-button medium="sms">Text a friend</sqm-share-button>
|
|
12
|
+
* @example Facebook Messenger Share Button - <sqm-share-button medium="fbmessenger">Share via Messenger</sqm-share-button>
|
|
13
|
+
* @example WhatsApp Share Button - <sqm-share-button medium="whatsapp">Share via WhatsApp</sqm-share-button>
|
|
14
|
+
* @example Line Messenger Share Button - <sqm-share-button medium="linemessenger">Share via Line Messenger</sqm-share-button>
|
|
15
|
+
* @example Pinterest Share Button - <sqm-share-button medium="pinterest">Share on Pinterest</sqm-share-button>
|
|
9
16
|
*/
|
|
10
17
|
export declare class ShareButton {
|
|
11
18
|
/**
|
|
@@ -2,6 +2,7 @@ import { ShareLinkViewProps } from "../sqm-share-link/sqm-share-link-view";
|
|
|
2
2
|
import { DemoData } from "../../global/demo";
|
|
3
3
|
/**
|
|
4
4
|
* @uiName Share Code
|
|
5
|
+
* @example Share Code - <sqm-share-code tooltip-text="Copied to Clipboard" tooltip-lifespan="1000"></sqm-share-code>
|
|
5
6
|
*/
|
|
6
7
|
export declare class ShareCode {
|
|
7
8
|
/**
|
|
@@ -2,6 +2,7 @@ import { ShareLinkViewProps } from "./sqm-share-link-view";
|
|
|
2
2
|
import { DemoData } from "../../global/demo";
|
|
3
3
|
/**
|
|
4
4
|
* @uiName Share Link
|
|
5
|
+
* @example Share Link - <sqm-share-link tooltip-text="Copied to Clipboard" tooltip-lifespan="1000"></sqm-share-link>
|
|
5
6
|
*/
|
|
6
7
|
export declare class ShareLink {
|
|
7
8
|
/**
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @uiName Timeline Entry
|
|
3
3
|
* @validParents ["sqm-timeline"]
|
|
4
|
+
* @example Timeline Entry - <sqm-timeline-entry reward="$50" unit="visa giftcard" desc="You refer a friend" icon="circle" > </sqm-timeline-entry>
|
|
4
5
|
*/
|
|
5
6
|
export declare class TimelineReward {
|
|
6
7
|
ignored: boolean;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @uiName Timeline
|
|
3
|
-
|
|
2
|
+
* @uiName Program Timeline
|
|
3
|
+
* @slots [{"name":"","title":"Timeline","validChildren":["sqm-timeline-entry"]}]
|
|
4
|
+
* @examples 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>
|
|
5
|
+
*/
|
|
4
6
|
export declare class Timeline {
|
|
5
7
|
ignored: boolean;
|
|
6
8
|
/**
|
package/docs/docs.docx
CHANGED
|
Binary file
|