@saasquatch/mint-components 1.5.0-5 → 1.5.0-9
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/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/{sqm-brand_31.cjs.entry.js → sqm-brand_38.cjs.entry.js} +432 -3289
- package/dist/cjs/{sqm-program-explainer-step-view-6a01cda0.js → sqm-program-explainer-step-view-f8e1cd12.js} +19 -7
- package/dist/cjs/sqm-program-explainer-step.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-program-explainer-view-8a4af972.js → sqm-program-explainer-view-512737f3.js} +11 -5
- package/dist/cjs/sqm-program-explainer.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +9 -2
- package/dist/collection/components/sqm-brand/sqm-brand.js +2 -2
- package/dist/collection/components/sqm-program-explainer/ProgramExplainer.stories.js +5 -3
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer-view.js +11 -5
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer.js +57 -11
- package/dist/collection/components/sqm-program-explainer-step/ProgramExplainerStep.stories.js +0 -7
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +19 -7
- package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +1 -0
- package/dist/collection/components/sqm-referral-table/ReferralTableCell.stories.js +1 -0
- package/dist/collection/components/sqm-referral-table/ReferralTableRewardsCell.stories.js +1 -0
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +12 -0
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +2 -0
- package/dist/collection/components/sqm-rewards-table/UseRewardsTable.stories.js +4 -1
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-date-cell.js +43 -0
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-rewards-cell.js +161 -0
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +81 -0
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +84 -0
- package/dist/collection/components/sqm-rewards-table/columns/RewardTableColumn.js +1 -0
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js +130 -0
- package/dist/collection/components/sqm-rewards-table/{sqm-rewards-table-column.js → columns/sqm-rewards-table-reward-column.js} +5 -7
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +145 -0
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +117 -0
- package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +32 -6
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +1 -1
- package/dist/collection/components/sqm-stencilbook/AutoColor.js +40 -45
- package/dist/collection/components/sqm-stencilbook/Themes.js +4 -11
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/{sqm-brand_31.entry.js → sqm-brand_38.entry.js} +426 -3290
- package/dist/esm/{sqm-program-explainer-step-view-41c1eecd.js → sqm-program-explainer-step-view-987e4747.js} +19 -7
- package/dist/esm/sqm-program-explainer-step.entry.js +1 -1
- package/dist/esm/{sqm-program-explainer-view-098a64a9.js → sqm-program-explainer-view-c0cda03a.js} +11 -5
- package/dist/esm/sqm-program-explainer.entry.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-brand_38.entry.js +1 -0
- package/dist/esm-es5/sqm-program-explainer-step-view-987e4747.js +1 -0
- package/dist/esm-es5/sqm-program-explainer-step.entry.js +1 -1
- package/dist/esm-es5/sqm-program-explainer-view-c0cda03a.js +1 -0
- package/dist/esm-es5/sqm-program-explainer.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-f5cfc52a.entry.js → p-22e6aad3.entry.js} +1 -1
- package/dist/mint-components/p-2b2579e3.js +1 -0
- package/dist/mint-components/{p-748ad4f5.entry.js → p-2eadaa18.entry.js} +1 -1
- package/dist/mint-components/p-3137ca42.entry.js +372 -0
- package/dist/mint-components/p-33007a9d.system.entry.js +1 -0
- package/dist/mint-components/p-8c77a66a.system.js +1 -0
- package/dist/mint-components/p-900d4192.system.js +1 -0
- package/dist/mint-components/p-a731e752.js +1 -0
- package/dist/mint-components/p-a88a08bb.system.js +1 -1
- package/dist/mint-components/{p-8ec5127e.system.entry.js → p-c6e6c96c.system.entry.js} +1 -1
- package/dist/mint-components/{p-21df3f85.system.entry.js → p-d653e004.system.entry.js} +1 -1
- package/dist/types/components/sqm-brand/sqm-brand.d.ts +2 -2
- package/dist/types/components/sqm-program-explainer/sqm-program-explainer-view.d.ts +5 -3
- package/dist/types/components/sqm-program-explainer/sqm-program-explainer.d.ts +18 -8
- package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +132 -0
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-date-cell.d.ts +7 -0
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-rewards-cell.d.ts +5 -0
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.d.ts +4 -0
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +6 -0
- package/dist/types/components/sqm-rewards-table/columns/RewardTableColumn.d.ts +5 -0
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.d.ts +25 -0
- package/dist/types/components/sqm-rewards-table/{sqm-rewards-table-column.d.ts → columns/sqm-rewards-table-reward-column.d.ts} +2 -3
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +23 -0
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts +19 -0
- package/dist/types/components/sqm-rewards-table/useRewardsTable.d.ts +0 -33
- package/dist/types/components/sqm-stencilbook/AutoColor.d.ts +0 -8
- package/dist/types/components/sqm-stencilbook/Themes.d.ts +1 -1
- package/dist/types/components.d.ts +218 -30
- package/dist/types/global/android.d.ts +7 -0
- package/dist/types/global/demo.d.ts +1 -0
- package/dist/types/saasquatch.d.ts +34 -0
- package/dist/types/stories/features.d.ts +4 -0
- package/dist/types/stories/templates.d.ts +4 -0
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -3
- package/dist/esm-es5/sqm-brand_31.entry.js +0 -58
- package/dist/esm-es5/sqm-program-explainer-step-view-41c1eecd.js +0 -1
- package/dist/esm-es5/sqm-program-explainer-view-098a64a9.js +0 -1
- package/dist/mint-components/p-10103ce2.system.js +0 -1
- package/dist/mint-components/p-1b5b5928.system.js +0 -1
- package/dist/mint-components/p-7cec5098.entry.js +0 -398
- package/dist/mint-components/p-81786aa0.js +0 -1
- package/dist/mint-components/p-a4bd0778.system.entry.js +0 -58
- package/dist/mint-components/p-ee684b5f.js +0 -1
|
@@ -9,19 +9,19 @@ function ProgramExplainerStepView(props) {
|
|
|
9
9
|
display: "flex",
|
|
10
10
|
flexDirection: "column",
|
|
11
11
|
width: "100%",
|
|
12
|
-
|
|
12
|
+
minHeight: "444px",
|
|
13
13
|
color: props.color,
|
|
14
14
|
background: props.background,
|
|
15
15
|
padding: "24px",
|
|
16
|
-
"@media (max-width:
|
|
16
|
+
"@media (max-width: 768px)": {
|
|
17
17
|
flexDirection: "row",
|
|
18
18
|
width: "auto",
|
|
19
|
-
|
|
19
|
+
minHeight: "auto",
|
|
20
20
|
},
|
|
21
21
|
},
|
|
22
22
|
Logo: {},
|
|
23
23
|
Text: {
|
|
24
|
-
"@media (max-width:
|
|
24
|
+
"@media (max-width: 768px)": {
|
|
25
25
|
marginLeft: "24px",
|
|
26
26
|
},
|
|
27
27
|
},
|
|
@@ -31,7 +31,7 @@ function ProgramExplainerStepView(props) {
|
|
|
31
31
|
textTransform: "uppercase",
|
|
32
32
|
lineHeight: "24px",
|
|
33
33
|
marginTop: "24px",
|
|
34
|
-
"@media (max-width:
|
|
34
|
+
"@media (max-width: 768px)": {
|
|
35
35
|
margin: "0",
|
|
36
36
|
},
|
|
37
37
|
},
|
|
@@ -39,7 +39,7 @@ function ProgramExplainerStepView(props) {
|
|
|
39
39
|
fontSize: "16px",
|
|
40
40
|
lineHeight: "28px",
|
|
41
41
|
marginTop: "12px",
|
|
42
|
-
"@media (max-width:
|
|
42
|
+
"@media (max-width: 768px)": {
|
|
43
43
|
marginTop: "8px",
|
|
44
44
|
},
|
|
45
45
|
},
|
|
@@ -48,8 +48,20 @@ function ProgramExplainerStepView(props) {
|
|
|
48
48
|
const sheet = jssPresetDefault_esm.jss.createStyleSheet(style);
|
|
49
49
|
const styleString = sheet.toString();
|
|
50
50
|
console.log(props);
|
|
51
|
+
const vanillaStyle = `
|
|
52
|
+
:host{
|
|
53
|
+
display: flex;
|
|
54
|
+
width: 100%;
|
|
55
|
+
}
|
|
56
|
+
@media (max-width: 768px) {
|
|
57
|
+
:host{
|
|
58
|
+
display: block;
|
|
59
|
+
}
|
|
60
|
+
}`;
|
|
51
61
|
return (index.h("div", { class: sheet.classes.Container },
|
|
52
|
-
index.h("style", { type: "text/css" },
|
|
62
|
+
index.h("style", { type: "text/css" },
|
|
63
|
+
vanillaStyle,
|
|
64
|
+
styleString),
|
|
53
65
|
index.h("div", { class: sheet.classes.Logo },
|
|
54
66
|
index.h("div", { style: {
|
|
55
67
|
width: "64px",
|
|
@@ -6,7 +6,7 @@ const index = require('./index-b0129cd6.js');
|
|
|
6
6
|
const _extends = require('./extends-0302d27d.js');
|
|
7
7
|
require('./jss-preset-default.esm-6304d24f.js');
|
|
8
8
|
const utils = require('./utils-95e5317c.js');
|
|
9
|
-
const sqmProgramExplainerStepView = require('./sqm-program-explainer-step-view-
|
|
9
|
+
const sqmProgramExplainerStepView = require('./sqm-program-explainer-step-view-f8e1cd12.js');
|
|
10
10
|
|
|
11
11
|
const ProgramExplainerStep = class {
|
|
12
12
|
constructor(hostRef) {
|
package/dist/cjs/{sqm-program-explainer-view-8a4af972.js → sqm-program-explainer-view-512737f3.js}
RENAMED
|
@@ -7,14 +7,20 @@ function ProgramExplainerView(props, children) {
|
|
|
7
7
|
const style = {
|
|
8
8
|
Container: {
|
|
9
9
|
display: "flex",
|
|
10
|
-
|
|
10
|
+
flexDirection: "row",
|
|
11
|
+
"@media (max-width: 768px)": {
|
|
11
12
|
flexDirection: "column",
|
|
12
13
|
},
|
|
13
14
|
},
|
|
15
|
+
Header: {
|
|
16
|
+
padding: "24px",
|
|
17
|
+
color: props.headerColor,
|
|
18
|
+
background: props.headerBackground,
|
|
19
|
+
},
|
|
14
20
|
Card: {
|
|
15
21
|
padding: "24px",
|
|
16
|
-
color: props.
|
|
17
|
-
background: props.
|
|
22
|
+
color: props.cardColor,
|
|
23
|
+
background: props.cardBackground,
|
|
18
24
|
},
|
|
19
25
|
Title: {
|
|
20
26
|
fontSize: "28px",
|
|
@@ -34,12 +40,12 @@ function ProgramExplainerView(props, children) {
|
|
|
34
40
|
console.log(props);
|
|
35
41
|
return (index.h("div", null,
|
|
36
42
|
index.h("style", { type: "text/css" }, styleString),
|
|
37
|
-
index.h("div", { class: sheet.classes.
|
|
43
|
+
index.h("div", { class: sheet.classes.Header },
|
|
38
44
|
index.h("div", { class: sheet.classes.Title }, props.header)),
|
|
39
45
|
index.h("div", { class: sheet.classes.Container }, children),
|
|
40
46
|
index.h("div", { class: sheet.classes.Card },
|
|
41
47
|
index.h("div", { class: sheet.classes.Title }, props.cardTitle),
|
|
42
|
-
index.h("div", { class: sheet.classes.Description }, props.
|
|
48
|
+
index.h("div", { class: sheet.classes.Description }, props.cardDescription))));
|
|
43
49
|
}
|
|
44
50
|
|
|
45
51
|
exports.ProgramExplainerView = ProgramExplainerView;
|
|
@@ -6,7 +6,7 @@ const index = require('./index-b0129cd6.js');
|
|
|
6
6
|
const _extends = require('./extends-0302d27d.js');
|
|
7
7
|
require('./jss-preset-default.esm-6304d24f.js');
|
|
8
8
|
const utils = require('./utils-95e5317c.js');
|
|
9
|
-
const sqmProgramExplainerView = require('./sqm-program-explainer-view-
|
|
9
|
+
const sqmProgramExplainerView = require('./sqm-program-explainer-view-512737f3.js');
|
|
10
10
|
|
|
11
11
|
const ProgramExplainer = class {
|
|
12
12
|
constructor(hostRef) {
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
"./components/sqm-password-field/sqm-password-field.js",
|
|
4
4
|
"./components/sqm-referral-table/sqm-referral-table.js",
|
|
5
5
|
"./components/sqm-reward-exchange-list/sqm-reward-exchange-list.js",
|
|
6
|
-
"./components/sqm-rewards-table/sqm-rewards-table.js",
|
|
7
6
|
"./components/sqm-asset-card/sqm-asset-card.js",
|
|
8
7
|
"./components/sqm-big-stat/sqm-big-stat.js",
|
|
9
8
|
"./components/sqm-brand/sqm-brand.js",
|
|
@@ -47,7 +46,15 @@
|
|
|
47
46
|
"./components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js",
|
|
48
47
|
"./components/sqm-referral-table/columns/sqm-referral-table-status-column.js",
|
|
49
48
|
"./components/sqm-referral-table/columns/sqm-referral-table-user-column.js",
|
|
50
|
-
"./components/sqm-rewards-table/sqm-rewards-table
|
|
49
|
+
"./components/sqm-rewards-table/sqm-rewards-table.js",
|
|
50
|
+
"./components/sqm-rewards-table/cells/sqm-rewards-table-date-cell.js",
|
|
51
|
+
"./components/sqm-rewards-table/cells/sqm-rewards-table-rewards-cell.js",
|
|
52
|
+
"./components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js",
|
|
53
|
+
"./components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js",
|
|
54
|
+
"./components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js",
|
|
55
|
+
"./components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js",
|
|
56
|
+
"./components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js",
|
|
57
|
+
"./components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js",
|
|
51
58
|
"./components/sqm-route/sqm-route.js",
|
|
52
59
|
"./components/sqm-router/sqm-router.js",
|
|
53
60
|
"./components/sqm-share-button/sqm-share-button.js",
|
|
@@ -5,8 +5,8 @@ import { buildFontsCssUrl } from "../../fonts/GoogleFonts";
|
|
|
5
5
|
import { autoColorScaleCss } from "../sqm-stencilbook/AutoColor";
|
|
6
6
|
/**
|
|
7
7
|
*
|
|
8
|
-
* @uiName
|
|
9
|
-
* @slot the
|
|
8
|
+
* @uiName Brand Container
|
|
9
|
+
* @slot Controls the brand color and font of Mint Components wrapped by the container.
|
|
10
10
|
*/
|
|
11
11
|
export class BrandComponent {
|
|
12
12
|
constructor() {
|
|
@@ -6,10 +6,12 @@ export default {
|
|
|
6
6
|
};
|
|
7
7
|
const props = {
|
|
8
8
|
header: "Klip Rewards",
|
|
9
|
+
headerColor: "black",
|
|
10
|
+
headerBackground: "#F3F0EC",
|
|
9
11
|
cardTitle: "Earn rewards with our loyalty program",
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
cardDescription: "Earn points by completing tasks like uploading your first video or sharing videos with friends. Use your points to redeem rewards like one free month of Klip Enterprise or two plane tickets to anywhere in North America.",
|
|
13
|
+
cardColor: "black",
|
|
14
|
+
cardBackground: "var(--sl-color-primary-100)",
|
|
13
15
|
};
|
|
14
16
|
const steps1 = {
|
|
15
17
|
cardTitle: "Invite your friends to Klip",
|
|
@@ -5,14 +5,20 @@ export function ProgramExplainerView(props, children) {
|
|
|
5
5
|
const style = {
|
|
6
6
|
Container: {
|
|
7
7
|
display: "flex",
|
|
8
|
-
|
|
8
|
+
flexDirection: "row",
|
|
9
|
+
"@media (max-width: 768px)": {
|
|
9
10
|
flexDirection: "column",
|
|
10
11
|
},
|
|
11
12
|
},
|
|
13
|
+
Header: {
|
|
14
|
+
padding: "24px",
|
|
15
|
+
color: props.headerColor,
|
|
16
|
+
background: props.headerBackground,
|
|
17
|
+
},
|
|
12
18
|
Card: {
|
|
13
19
|
padding: "24px",
|
|
14
|
-
color: props.
|
|
15
|
-
background: props.
|
|
20
|
+
color: props.cardColor,
|
|
21
|
+
background: props.cardBackground,
|
|
16
22
|
},
|
|
17
23
|
Title: {
|
|
18
24
|
fontSize: "28px",
|
|
@@ -32,10 +38,10 @@ export function ProgramExplainerView(props, children) {
|
|
|
32
38
|
console.log(props);
|
|
33
39
|
return (h("div", null,
|
|
34
40
|
h("style", { type: "text/css" }, styleString),
|
|
35
|
-
h("div", { class: sheet.classes.
|
|
41
|
+
h("div", { class: sheet.classes.Header },
|
|
36
42
|
h("div", { class: sheet.classes.Title }, props.header)),
|
|
37
43
|
h("div", { class: sheet.classes.Container }, children),
|
|
38
44
|
h("div", { class: sheet.classes.Card },
|
|
39
45
|
h("div", { class: sheet.classes.Title }, props.cardTitle),
|
|
40
|
-
h("div", { class: sheet.classes.Description }, props.
|
|
46
|
+
h("div", { class: sheet.classes.Description }, props.cardDescription))));
|
|
41
47
|
}
|
|
@@ -30,7 +30,7 @@ export class ProgramExplainer {
|
|
|
30
30
|
"optional": false,
|
|
31
31
|
"docs": {
|
|
32
32
|
"tags": [{
|
|
33
|
-
"text": "Header",
|
|
33
|
+
"text": "Header Text",
|
|
34
34
|
"name": "uiName"
|
|
35
35
|
}],
|
|
36
36
|
"text": ""
|
|
@@ -38,6 +38,52 @@ export class ProgramExplainer {
|
|
|
38
38
|
"attribute": "header",
|
|
39
39
|
"reflect": false
|
|
40
40
|
},
|
|
41
|
+
"headerColor": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"mutable": false,
|
|
44
|
+
"complexType": {
|
|
45
|
+
"original": "string",
|
|
46
|
+
"resolved": "string",
|
|
47
|
+
"references": {}
|
|
48
|
+
},
|
|
49
|
+
"required": false,
|
|
50
|
+
"optional": false,
|
|
51
|
+
"docs": {
|
|
52
|
+
"tags": [{
|
|
53
|
+
"text": "Header Text Color",
|
|
54
|
+
"name": "uiName"
|
|
55
|
+
}, {
|
|
56
|
+
"text": "color",
|
|
57
|
+
"name": "uiWidget"
|
|
58
|
+
}],
|
|
59
|
+
"text": ""
|
|
60
|
+
},
|
|
61
|
+
"attribute": "header-color",
|
|
62
|
+
"reflect": false
|
|
63
|
+
},
|
|
64
|
+
"headerBackground": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"mutable": false,
|
|
67
|
+
"complexType": {
|
|
68
|
+
"original": "string",
|
|
69
|
+
"resolved": "string",
|
|
70
|
+
"references": {}
|
|
71
|
+
},
|
|
72
|
+
"required": false,
|
|
73
|
+
"optional": false,
|
|
74
|
+
"docs": {
|
|
75
|
+
"tags": [{
|
|
76
|
+
"text": "Header Background Color",
|
|
77
|
+
"name": "uiName"
|
|
78
|
+
}, {
|
|
79
|
+
"text": "color",
|
|
80
|
+
"name": "uiWidget"
|
|
81
|
+
}],
|
|
82
|
+
"text": ""
|
|
83
|
+
},
|
|
84
|
+
"attribute": "header-background",
|
|
85
|
+
"reflect": false
|
|
86
|
+
},
|
|
41
87
|
"cardTitle": {
|
|
42
88
|
"type": "string",
|
|
43
89
|
"mutable": false,
|
|
@@ -50,7 +96,7 @@ export class ProgramExplainer {
|
|
|
50
96
|
"optional": false,
|
|
51
97
|
"docs": {
|
|
52
98
|
"tags": [{
|
|
53
|
-
"text": "Title",
|
|
99
|
+
"text": "Card Title",
|
|
54
100
|
"name": "uiName"
|
|
55
101
|
}],
|
|
56
102
|
"text": ""
|
|
@@ -58,7 +104,7 @@ export class ProgramExplainer {
|
|
|
58
104
|
"attribute": "card-title",
|
|
59
105
|
"reflect": false
|
|
60
106
|
},
|
|
61
|
-
"
|
|
107
|
+
"cardDescription": {
|
|
62
108
|
"type": "string",
|
|
63
109
|
"mutable": false,
|
|
64
110
|
"complexType": {
|
|
@@ -70,15 +116,15 @@ export class ProgramExplainer {
|
|
|
70
116
|
"optional": false,
|
|
71
117
|
"docs": {
|
|
72
118
|
"tags": [{
|
|
73
|
-
"text": "Description",
|
|
119
|
+
"text": "Card Description",
|
|
74
120
|
"name": "uiName"
|
|
75
121
|
}],
|
|
76
122
|
"text": ""
|
|
77
123
|
},
|
|
78
|
-
"attribute": "description",
|
|
124
|
+
"attribute": "card-description",
|
|
79
125
|
"reflect": false
|
|
80
126
|
},
|
|
81
|
-
"
|
|
127
|
+
"cardColor": {
|
|
82
128
|
"type": "string",
|
|
83
129
|
"mutable": false,
|
|
84
130
|
"complexType": {
|
|
@@ -90,7 +136,7 @@ export class ProgramExplainer {
|
|
|
90
136
|
"optional": false,
|
|
91
137
|
"docs": {
|
|
92
138
|
"tags": [{
|
|
93
|
-
"text": "Color",
|
|
139
|
+
"text": "Card Text Color",
|
|
94
140
|
"name": "uiName"
|
|
95
141
|
}, {
|
|
96
142
|
"text": "color",
|
|
@@ -98,10 +144,10 @@ export class ProgramExplainer {
|
|
|
98
144
|
}],
|
|
99
145
|
"text": ""
|
|
100
146
|
},
|
|
101
|
-
"attribute": "color",
|
|
147
|
+
"attribute": "card-color",
|
|
102
148
|
"reflect": false
|
|
103
149
|
},
|
|
104
|
-
"
|
|
150
|
+
"cardBackground": {
|
|
105
151
|
"type": "string",
|
|
106
152
|
"mutable": false,
|
|
107
153
|
"complexType": {
|
|
@@ -113,7 +159,7 @@ export class ProgramExplainer {
|
|
|
113
159
|
"optional": false,
|
|
114
160
|
"docs": {
|
|
115
161
|
"tags": [{
|
|
116
|
-
"text": "Background",
|
|
162
|
+
"text": "Card Background Color",
|
|
117
163
|
"name": "uiName"
|
|
118
164
|
}, {
|
|
119
165
|
"text": "color",
|
|
@@ -121,7 +167,7 @@ export class ProgramExplainer {
|
|
|
121
167
|
}],
|
|
122
168
|
"text": ""
|
|
123
169
|
},
|
|
124
|
-
"attribute": "background",
|
|
170
|
+
"attribute": "card-background",
|
|
125
171
|
"reflect": false
|
|
126
172
|
}
|
|
127
173
|
}; }
|
package/dist/collection/components/sqm-program-explainer-step/ProgramExplainerStep.stories.js
CHANGED
|
@@ -13,10 +13,3 @@ export const Example1 = () => {
|
|
|
13
13
|
};
|
|
14
14
|
return h(ProgramExplainerStepView, Object.assign({}, props));
|
|
15
15
|
};
|
|
16
|
-
// export const ActiveItem = () => {
|
|
17
|
-
// const props = {
|
|
18
|
-
// title: "hello",
|
|
19
|
-
// description: "world",
|
|
20
|
-
// };
|
|
21
|
-
// return <ProgramExplainerStepView {...props} />;
|
|
22
|
-
// };
|
package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js
CHANGED
|
@@ -7,19 +7,19 @@ export function ProgramExplainerStepView(props) {
|
|
|
7
7
|
display: "flex",
|
|
8
8
|
flexDirection: "column",
|
|
9
9
|
width: "100%",
|
|
10
|
-
|
|
10
|
+
minHeight: "444px",
|
|
11
11
|
color: props.color,
|
|
12
12
|
background: props.background,
|
|
13
13
|
padding: "24px",
|
|
14
|
-
"@media (max-width:
|
|
14
|
+
"@media (max-width: 768px)": {
|
|
15
15
|
flexDirection: "row",
|
|
16
16
|
width: "auto",
|
|
17
|
-
|
|
17
|
+
minHeight: "auto",
|
|
18
18
|
},
|
|
19
19
|
},
|
|
20
20
|
Logo: {},
|
|
21
21
|
Text: {
|
|
22
|
-
"@media (max-width:
|
|
22
|
+
"@media (max-width: 768px)": {
|
|
23
23
|
marginLeft: "24px",
|
|
24
24
|
},
|
|
25
25
|
},
|
|
@@ -29,7 +29,7 @@ export function ProgramExplainerStepView(props) {
|
|
|
29
29
|
textTransform: "uppercase",
|
|
30
30
|
lineHeight: "24px",
|
|
31
31
|
marginTop: "24px",
|
|
32
|
-
"@media (max-width:
|
|
32
|
+
"@media (max-width: 768px)": {
|
|
33
33
|
margin: "0",
|
|
34
34
|
},
|
|
35
35
|
},
|
|
@@ -37,7 +37,7 @@ export function ProgramExplainerStepView(props) {
|
|
|
37
37
|
fontSize: "16px",
|
|
38
38
|
lineHeight: "28px",
|
|
39
39
|
marginTop: "12px",
|
|
40
|
-
"@media (max-width:
|
|
40
|
+
"@media (max-width: 768px)": {
|
|
41
41
|
marginTop: "8px",
|
|
42
42
|
},
|
|
43
43
|
},
|
|
@@ -46,8 +46,20 @@ export function ProgramExplainerStepView(props) {
|
|
|
46
46
|
const sheet = jss.createStyleSheet(style);
|
|
47
47
|
const styleString = sheet.toString();
|
|
48
48
|
console.log(props);
|
|
49
|
+
const vanillaStyle = `
|
|
50
|
+
:host{
|
|
51
|
+
display: flex;
|
|
52
|
+
width: 100%;
|
|
53
|
+
}
|
|
54
|
+
@media (max-width: 768px) {
|
|
55
|
+
:host{
|
|
56
|
+
display: block;
|
|
57
|
+
}
|
|
58
|
+
}`;
|
|
49
59
|
return (h("div", { class: sheet.classes.Container },
|
|
50
|
-
h("style", { type: "text/css" },
|
|
60
|
+
h("style", { type: "text/css" },
|
|
61
|
+
vanillaStyle,
|
|
62
|
+
styleString),
|
|
51
63
|
h("div", { class: sheet.classes.Logo },
|
|
52
64
|
h("div", { style: {
|
|
53
65
|
width: "64px",
|
|
@@ -2,6 +2,18 @@ const baseResponse = (data, stage = "chooseReward", selectedItem = null, selecte
|
|
|
2
2
|
states: {
|
|
3
3
|
content: {
|
|
4
4
|
text: {
|
|
5
|
+
continueText: "Continue",
|
|
6
|
+
cancelText: "Cancel",
|
|
7
|
+
continueToConfirmationText: "Continue to confirmation",
|
|
8
|
+
backText: "Back",
|
|
9
|
+
redeemText: "Redeem",
|
|
10
|
+
doneText: "Done",
|
|
11
|
+
chooseRewardTitle: "Choose reward",
|
|
12
|
+
chooseAmountTitle: "Amount",
|
|
13
|
+
confirmationTitle: "Confirm",
|
|
14
|
+
redeemTitle: "Confirm and redeem",
|
|
15
|
+
rewardRedeemedText: "Reward redeemed",
|
|
16
|
+
queryError: "An error occured trying to redeem this reward. Please try again.",
|
|
5
17
|
notAvailableError: "{unavailableReason, select, US_TAX {US Tax limit} INSUFFICIENT_REDEEMABLE_CREDIT {Not enough points} other {Not available} }",
|
|
6
18
|
},
|
|
7
19
|
},
|
package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js
CHANGED
|
@@ -308,6 +308,7 @@ export function RewardExchangeView(props) {
|
|
|
308
308
|
defaultMessage: (_b = (_a = states.content) === null || _a === void 0 ? void 0 : _a.text) === null || _b === void 0 ? void 0 : _b.notAvailableError,
|
|
309
309
|
}, {
|
|
310
310
|
unavailableReason: step.unavailableReasonCode,
|
|
311
|
+
sourceUnit: item.sourceUnit,
|
|
311
312
|
sourceValue: step.prettySourceValue || item.prettySourceMinValue,
|
|
312
313
|
}))))));
|
|
313
314
|
})));
|
|
@@ -370,6 +371,7 @@ export function RewardExchangeView(props) {
|
|
|
370
371
|
}, {
|
|
371
372
|
unavailableReason: item.unavailableReason ||
|
|
372
373
|
item.unavailableReasonCode,
|
|
374
|
+
sourceUnit: item.sourceUnit,
|
|
373
375
|
sourceValue: item.prettySourceValue ||
|
|
374
376
|
item.prettySourceMinValue,
|
|
375
377
|
}))))))));
|
|
@@ -49,5 +49,8 @@ export const RewardsTableNoProgram = createHookStory(() => {
|
|
|
49
49
|
ignored: true,
|
|
50
50
|
};
|
|
51
51
|
return (h("sqm-rewards-table", null,
|
|
52
|
-
h("sqm-rewards-table-column", null)
|
|
52
|
+
h("sqm-rewards-table-reward-column", null),
|
|
53
|
+
h("sqm-rewards-table-source-column", null),
|
|
54
|
+
h("sqm-rewards-table-status-column", null),
|
|
55
|
+
h("sqm-rewards-table-date-column", null)));
|
|
53
56
|
});
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
2
|
+
import { Component, h, Prop, State } from "@stencil/core";
|
|
3
|
+
import { DateTime } from "luxon";
|
|
4
|
+
import { TextSpanView } from "../../sqm-text-span/sqm-text-span-view";
|
|
5
|
+
export class RewardTableDateCell {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.ignored = true;
|
|
8
|
+
withHooks(this);
|
|
9
|
+
}
|
|
10
|
+
disconnectedCallback() { }
|
|
11
|
+
render() {
|
|
12
|
+
var _a;
|
|
13
|
+
// needs hook to use locale
|
|
14
|
+
const date = !this.date
|
|
15
|
+
? "-"
|
|
16
|
+
: (_a = DateTime.fromMillis(this.date)) === null || _a === void 0 ? void 0 : _a.toLocaleString(DateTime.DATE_MED);
|
|
17
|
+
return h(TextSpanView, { type: "p" }, date);
|
|
18
|
+
}
|
|
19
|
+
static get is() { return "sqm-rewards-table-date-cell"; }
|
|
20
|
+
static get encapsulation() { return "shadow"; }
|
|
21
|
+
static get properties() { return {
|
|
22
|
+
"date": {
|
|
23
|
+
"type": "number",
|
|
24
|
+
"mutable": false,
|
|
25
|
+
"complexType": {
|
|
26
|
+
"original": "number",
|
|
27
|
+
"resolved": "number",
|
|
28
|
+
"references": {}
|
|
29
|
+
},
|
|
30
|
+
"required": false,
|
|
31
|
+
"optional": false,
|
|
32
|
+
"docs": {
|
|
33
|
+
"tags": [],
|
|
34
|
+
"text": ""
|
|
35
|
+
},
|
|
36
|
+
"attribute": "date",
|
|
37
|
+
"reflect": false
|
|
38
|
+
}
|
|
39
|
+
}; }
|
|
40
|
+
static get states() { return {
|
|
41
|
+
"ignored": {}
|
|
42
|
+
}; }
|
|
43
|
+
}
|