@saasquatch/mint-components 1.5.6-2 → 1.5.6-3
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/sqm-stencilbook.cjs.entry.js +2 -1
- package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +1 -1
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +1 -0
- package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank.js +3 -0
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer.js +1 -0
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +1 -0
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +1 -0
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +1 -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-stat-container/sqm-stat-container.js +1 -0
- package/dist/collection/components/sqm-tab/sqm-tab.js +2 -0
- package/dist/collection/components/sqm-tabs/Tabs.stories.js +2 -1
- package/dist/collection/components/sqm-tabs/sqm-tabs.js +4 -0
- package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +1 -0
- package/dist/collection/components/sqm-user-name/sqm-user-name.js +1 -0
- package/dist/esm/sqm-stencilbook.entry.js +2 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-c7b0f076.entry.js → p-37ea62c3.entry.js} +1 -1
- package/dist/mint-components/{p-5bef951d.system.entry.js → p-6e1ed926.system.entry.js} +1 -1
- package/dist/mint-components/p-94096609.system.js +1 -1
- package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +1 -1
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +1 -0
- package/dist/types/components/sqm-leaderboard-rank/sqm-leaderboard-rank.d.ts +3 -0
- package/dist/types/components/sqm-program-explainer/sqm-program-explainer.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +1 -0
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +1 -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-stat-container/sqm-stat-container.d.ts +1 -0
- package/dist/types/components/sqm-tab/sqm-tab.d.ts +2 -0
- package/dist/types/components/sqm-tabs/sqm-tabs.d.ts +4 -0
- package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +1 -0
- package/dist/types/components/sqm-user-name/sqm-user-name.d.ts +1 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/package.json +1 -1
|
@@ -12372,7 +12372,8 @@ const ManyTabs = () => (index.h("div", { style: { maxWidth: "700px", margin: "au
|
|
|
12372
12372
|
<sqm-tabs>
|
|
12373
12373
|
<sqm-tab header="General">This is the general tab</sqm-tab>
|
|
12374
12374
|
<sqm-tab header="Custom">This is the custom tab</sqm-tab>
|
|
12375
|
-
<sqm-tab header="Advanced">This is the advanced tab</sqm-tab>
|
|
12375
|
+
<sqm-tab header="Advanced">This is the advanced tab</sqm-tab>
|
|
12376
|
+
<sqm-tab header="General">This is the general tab</sqm-tab>
|
|
12376
12377
|
<sqm-tab header="Custom">This is the custom tab</sqm-tab>
|
|
12377
12378
|
<sqm-tab header="Advanced">This is the advanced tab</sqm-tab>
|
|
12378
12379
|
<sqm-tab header="General">This is the general tab</sqm-tab>
|
|
@@ -8,7 +8,7 @@ import { isDemo, useHost } from "@saasquatch/component-boilerplate";
|
|
|
8
8
|
*
|
|
9
9
|
* @uiName Big Stat
|
|
10
10
|
* @slots [{"name":"","title":"Stat Text"}]
|
|
11
|
-
* @example Points Balance -
|
|
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>
|
|
14
14
|
*/
|
|
@@ -7,6 +7,7 @@ import { LeaderboardView } from "./sqm-leaderboard-view";
|
|
|
7
7
|
import { useLeaderboard } from "./useLeaderboard";
|
|
8
8
|
/**
|
|
9
9
|
* @uiName Leaderboard
|
|
10
|
+
* @slot [{"name":"empty", title":"Empty State"}]
|
|
10
11
|
* @example Referral Converted Leaderboard - <sqm-leaderboard usersheading="Referrer" statsheading="Referrals" rankheading="Rank" rank-type="rowNumber" leaderboard-type="topConvertedReferrers" show-rank anonymous-user="Anonymous User"> <sqm-empty empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_leaderboard2.png" empty-state-header="View your rank in the leaderboard" empty-state-text="Be the first to refer a friend and reach the top of the leaderboard" > </sqm-empty></sqm-leaderboard>
|
|
11
12
|
* @example Referral Started Leaderboard - <sqm-leaderboard usersheading="Referrer" statsheading="Referrals" rankheading="Rank" rank-type="rowNumber" leaderboard-type="topStartedReferrers" show-rank anonymous-user="Anonymous User"> <sqm-empty empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_leaderboard2.png" empty-state-header="View your rank in the leaderboard" empty-state-text="Be the first to refer a friend and reach the top of the leaderboard" > </sqm-empty></sqm-leaderboard>
|
|
12
13
|
* @example Point Earners Leaderboard - <sqm-leaderboard usersheading="Users" statsheading="Points Earned" rankheading="Rank" rank-type="rowNumber" leaderboard-type="topPointEarners" show-rank anonymous-user="Anonymous User"> <sqm-empty empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_leaderboard2.png" empty-state-header="View your rank in the leaderboard" empty-state-text="Be the first to earn points and reach the top of the leaderboard" ></sqm-empty></sqm-leaderboard>
|
|
@@ -7,6 +7,9 @@ import deepmerge from "deepmerge";
|
|
|
7
7
|
import { intl } from "../../global/global";
|
|
8
8
|
/**
|
|
9
9
|
* @uiName Leaderboard Rank
|
|
10
|
+
* @example Referral Converted Leaderboard - <sqm-leaderboard-rank leaderboard-type="topConvertedReferrers" rank-type="rowNumber" rank-text="You are currently in {rank, selectordinal, one {#st} two {#nd} few {#rd} other {#th} } place!" unranked-text="You are currently unranked, refer a friend!"></sqm-leaderboard-rank>
|
|
11
|
+
* @example Referral Started Leaderboard - <sqm-leaderboard-rank leaderboard-type="topStartedReferrers" rank-type="rowNumber" rank-text="You are currently in {rank, selectordinal, one {#st} two {#nd} few {#rd} other {#th} } place!" unranked-text="You are currently unranked, refer a friend!"></sqm-leaderboard-rank>
|
|
12
|
+
* @example Point Earners Leaderboard - <sqm-leaderboard-rank rleaderboard-type="topPointEarners" ank-type="rowNumber" rank-text="You are currently in {rank, selectordinal, one {#st} two {#nd} few {#rd} other {#th} } place!" unranked-text="You are currently unranked, earn points!"></sqm-leaderboard-rank>
|
|
10
13
|
*/
|
|
11
14
|
export class LeaderboardRank {
|
|
12
15
|
constructor() {
|
|
@@ -4,6 +4,7 @@ import { getProps } from "../../utils/utils";
|
|
|
4
4
|
import { ProgramExplainerView } from "./sqm-program-explainer-view";
|
|
5
5
|
/**
|
|
6
6
|
* @uiName Program Explainer
|
|
7
|
+
* @slot [{"name":"", title":"Explainer", "validChildren":["sqm-program-explainer-step"]}]
|
|
7
8
|
* @examples Program Explainer - <sqm-program-explainer header="How it works"><sqm-program-explainer-step description="Complete tasks like uploading your first video or sharing videos with friends" 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>
|
|
8
9
|
*/
|
|
9
10
|
export class ProgramExplainer {
|
|
@@ -8,6 +8,7 @@ import { getProps } from "../../utils/utils";
|
|
|
8
8
|
import { demoRewardExchange } from "./RewardExchangeListData";
|
|
9
9
|
/**
|
|
10
10
|
* @uiName Reward Exchange
|
|
11
|
+
* @slot [{"name":"empty", title":"Empty State"}]
|
|
11
12
|
* @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>
|
|
12
13
|
*/
|
|
13
14
|
export class SqmRewardExchangeList {
|
|
@@ -7,6 +7,7 @@ import { getProps } from "../../utils/utils";
|
|
|
7
7
|
import deepmerge from "deepmerge";
|
|
8
8
|
/**
|
|
9
9
|
* @uiName Share Button
|
|
10
|
+
* @slot [{"name":"", "title":"Button Content"}]
|
|
10
11
|
* @uiOrder ["medium", "program-id", "*", "pill", "disabled", "hideicon"]
|
|
11
12
|
* @example Facebook Share Button - <sqm-share-button medium="facebook">Share on Facebook</sqm-share-button>
|
|
12
13
|
* @example Twitter Share Button - <sqm-share-button medium="twitter">Share via Tweet</sqm-share-button>
|
|
@@ -5,6 +5,7 @@ import { getProps } from "../../utils/utils";
|
|
|
5
5
|
/**
|
|
6
6
|
* @uiName Stat Container
|
|
7
7
|
* @slots [{"name":"","title":"Stats"}]
|
|
8
|
+
* @example Container with Three Stats - <sqm-stat-container space="xxx-large" display="flex"><sqm-big-stat flex-reverse="true" alignment="left" stat-type="/rewardBalance/CREDIT/POINT/value/global">Points Balance</sqm-big-stat><sqm-big-stat flex-reverse="true" alignment="left" stat-type="/integrationRewardsCountFiltered/AVAILABLE/global">Giftcards Earned</sqm-big-stat><sqm-big-stat flex-reverse="true" alignment="left" stat-type="/referralsCount">Referrals</sqm-big-stat></sqm-stat-container>
|
|
8
9
|
*/
|
|
9
10
|
export class StatContainer {
|
|
10
11
|
constructor() {
|
|
@@ -2,7 +2,9 @@ import { Component, h, Prop } from "@stencil/core";
|
|
|
2
2
|
import { TabView } from "./sqm-tab-view";
|
|
3
3
|
/**
|
|
4
4
|
* @uiName Tab
|
|
5
|
+
* @slot [{"name":"", "title":"Tab Content"}]
|
|
5
6
|
* @validParents ["sqm-tabs"]
|
|
7
|
+
* @example Tab - <sqm-tab header="Example">This is an example tab. Add your own content here.</sqm-tab>
|
|
6
8
|
*/
|
|
7
9
|
export class Tab {
|
|
8
10
|
render() {
|
|
@@ -17,7 +17,8 @@ export const ManyTabs = () => (h("div", { style: { maxWidth: "700px", margin: "a
|
|
|
17
17
|
<sqm-tabs>
|
|
18
18
|
<sqm-tab header="General">This is the general tab</sqm-tab>
|
|
19
19
|
<sqm-tab header="Custom">This is the custom tab</sqm-tab>
|
|
20
|
-
<sqm-tab header="Advanced">This is the advanced tab</sqm-tab>
|
|
20
|
+
<sqm-tab header="Advanced">This is the advanced tab</sqm-tab>
|
|
21
|
+
<sqm-tab header="General">This is the general tab</sqm-tab>
|
|
21
22
|
<sqm-tab header="Custom">This is the custom tab</sqm-tab>
|
|
22
23
|
<sqm-tab header="Advanced">This is the advanced tab</sqm-tab>
|
|
23
24
|
<sqm-tab header="General">This is the general tab</sqm-tab>
|
|
@@ -5,6 +5,10 @@ import { TabsView } from "./sqm-tabs-view";
|
|
|
5
5
|
import { useTabs } from "./useTabs";
|
|
6
6
|
/**
|
|
7
7
|
* @uiName Tab Group
|
|
8
|
+
* @slot [{"name":"", "title":"Tabs","validChildren":["sqm-tab"]}]
|
|
9
|
+
* @example Generic Tab Group - <sqm-tabs><sqm-tab header="Tab 1">This is the first tab</sqm-tab><sqm-tab header="Tab 2">This is the second tab</sqm-tab><sqm-tab header="Tab 3">This is the third tab</sqm-tab></sqm-tabs>
|
|
10
|
+
* @example Referral Tab Group - <sqm-tabs><sqm-tab header="Leaderboard"><sqm-leaderboard usersheading="Referrer" statsheading="Referrals" rankheading="Rank" rank-type="rowNumber" leaderboard-type="topStartedReferrers" show-rank anonymous-user="Anonymous User"><sqm-empty empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_leaderboard2.png" empty-state-header="View your rank in the leaderboard" empty-state-text="Be the first to refer a friend and reach the top of the leaderboard"></sqm-empty></sqm-leaderboard></sqm-tab><sqm-tab header="Referral history"><sqm-referral-table><sqm-referral-table-user-column column-title="User" anonymous-user="Anonymous User" deleted-user="Deleted User"></sqm-referral-table-user-column><sqm-referral-table-status-column column-title="Referral status" converted-status-text="Converted" in-progress-status-text="In Progress"></sqm-referral-table-status-column><sqm-referral-table-rewards-column column-title="Rewards" expiring-text="Expiring in" fuel-tank-text="Your code is" pending-for-text="{status} for {date}" reward-received-text="Reward received on" status-long-text="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} other {Not available} }" status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }"></sqm-referral-table-rewards-column><sqm-referral-table-date-column column-title="Date referred" date-shown="dateReferralStarted"></sqm-referral-table-date-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"></sqm-empty></sqm-referral-table></sqm-tab></sqm-tabs>
|
|
11
|
+
* @example Loyalty Tab Group - <sqm-tabs placement="top"> <sqm-tab header="Leaderboard"> <sqm-leaderboard usersheading="Users" statsheading="Points Earned" rankheading="Rank" rank-type="rowNumber" leaderboard-type="topPointEarners" show-rank anonymous-user="Anonymous User" > <sqm-empty empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_leaderboard2.png" empty-state-header="View your rank in the leaderboard" empty-state-text="Be the first to earn points and reach the top of the leaderboard" ></sqm-empty ></sqm-leaderboard> </sqm-tab> <sqm-tab header="Reward history"> <sqm-rewards-table ><sqm-rewards-table-reward-column available-text="{availableAmount} remaining" column-title="Reward" copy-text="Copied!" redeemed-text="{redeemedAmount} redeemed" > </sqm-rewards-table-reward-column> <sqm-rewards-table-source-column anonymous-user="Anonymous User" column-title="Source" deleted-user="Deleted User" referral-text="{rewardSource, select, FRIEND_SIGNUP {Referral to} REFERRED {Referred by} other {}}" reward-exchange-text="Reward Exchange" reward-source-text="{rewardSource, select, MANUAL {Manual} AUTOMATED {{programName}} other {}}" > </sqm-rewards-table-source-column><sqm-rewards-table-status-column column-title="Status" expiry-text="Expires on " status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }"></sqm-rewards-table-status-column><sqm-rewards-table-date-column column-title="Date received" date-shown="dateGiven"></sqm-rewards-table-date-column><sqm-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="Refer friends and complete tasks to view the details of your rewards"></sqm-empty></sqm-rewards-table></sqm-tab><sqm-tab header="Redeem"><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></sqm-tab></sqm-tabs>
|
|
8
12
|
*/
|
|
9
13
|
export class Tabs {
|
|
10
14
|
constructor() {
|
|
@@ -4,6 +4,7 @@ import { getProps } from "../../utils/utils";
|
|
|
4
4
|
import { PortalSectionView } from "./sqm-portal-section-view";
|
|
5
5
|
/**
|
|
6
6
|
* @uiName Titled Section
|
|
7
|
+
* @slot [{"name":"label", title":"Label"},{"name":"content", "title":"Content"}]
|
|
7
8
|
*/
|
|
8
9
|
export class TitledSection {
|
|
9
10
|
constructor() {
|
|
@@ -6,6 +6,7 @@ import { UserNameView } from "./sqm-user-name-view";
|
|
|
6
6
|
import { useUserName } from "./useUserName";
|
|
7
7
|
/**
|
|
8
8
|
* @uiName User Name
|
|
9
|
+
* @example User Name Display - <sqm-user-name fallback="Anonymous User"></sqm-user-name>
|
|
9
10
|
*/
|
|
10
11
|
export class UserName {
|
|
11
12
|
constructor() {
|
|
@@ -12368,7 +12368,8 @@ const ManyTabs = () => (h("div", { style: { maxWidth: "700px", margin: "auto" },
|
|
|
12368
12368
|
<sqm-tabs>
|
|
12369
12369
|
<sqm-tab header="General">This is the general tab</sqm-tab>
|
|
12370
12370
|
<sqm-tab header="Custom">This is the custom tab</sqm-tab>
|
|
12371
|
-
<sqm-tab header="Advanced">This is the advanced tab</sqm-tab>
|
|
12371
|
+
<sqm-tab header="Advanced">This is the advanced tab</sqm-tab>
|
|
12372
|
+
<sqm-tab header="General">This is the general tab</sqm-tab>
|
|
12372
12373
|
<sqm-tab header="Custom">This is the custom tab</sqm-tab>
|
|
12373
12374
|
<sqm-tab header="Advanced">This is the advanced tab</sqm-tab>
|
|
12374
12375
|
<sqm-tab header="General">This is the general tab</sqm-tab>
|