@saasquatch/mint-components 1.5.0-1 → 1.5.0-5
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-divided-layout_30.cjs.entry.js → sqm-brand_31.cjs.entry.js} +27105 -26694
- package/dist/cjs/sqm-program-explainer-step-view-6a01cda0.js +70 -0
- package/dist/cjs/sqm-program-explainer-step.cjs.entry.js +22 -0
- package/dist/cjs/sqm-program-explainer-view-8a4af972.js +45 -0
- package/dist/cjs/sqm-program-explainer.cjs.entry.js +23 -0
- package/dist/cjs/sqm-share-code.cjs.entry.js +19 -0
- package/dist/collection/collection-manifest.json +3 -0
- package/dist/collection/components/sqm-brand/SqmBrand.stories.js +93 -0
- package/dist/collection/components/sqm-brand/sqm-brand.js +97 -0
- package/dist/collection/components/sqm-program-explainer/ProgramExplainer.stories.js +49 -0
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer-view.js +41 -0
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer.js +131 -0
- package/dist/collection/components/sqm-program-explainer-step/ProgramExplainerStep.stories.js +22 -0
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +66 -0
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +123 -0
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +5 -3
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +38 -19
- package/dist/collection/components/sqm-reward-exchange-list/SVGs.js +3 -0
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +141 -103
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +349 -3
- package/dist/collection/components/sqm-reward-exchange-list/useRewardExchangeList.js +20 -13
- package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +0 -1
- package/dist/collection/components/sqm-share-code/useShareCode.js +20 -1
- package/dist/collection/components/sqm-share-link/useShareLink.js +20 -1
- package/dist/collection/components/sqm-stencilbook/AutoColor.js +32 -4
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +6 -0
- package/dist/collection/components/sqm-task-card/TaskCard.stories.js +15 -3
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +5 -6
- package/dist/collection/fonts/GoogleFonts.js +12 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/{sqm-divided-layout_30.entry.js → sqm-brand_31.entry.js} +27080 -26670
- package/dist/esm/sqm-program-explainer-step-view-41c1eecd.js +68 -0
- package/dist/esm/sqm-program-explainer-step.entry.js +18 -0
- package/dist/esm/sqm-program-explainer-view-098a64a9.js +43 -0
- package/dist/esm/sqm-program-explainer.entry.js +19 -0
- package/dist/esm/sqm-share-code.entry.js +20 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-brand_31.entry.js +58 -0
- package/dist/esm-es5/sqm-program-explainer-step-view-41c1eecd.js +1 -0
- package/dist/esm-es5/sqm-program-explainer-step.entry.js +1 -0
- package/dist/esm-es5/sqm-program-explainer-view-098a64a9.js +1 -0
- package/dist/esm-es5/sqm-program-explainer.entry.js +1 -0
- package/dist/esm-es5/sqm-share-code.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-10103ce2.system.js +1 -0
- package/dist/mint-components/p-1b5b5928.system.js +1 -0
- package/dist/mint-components/p-21df3f85.system.entry.js +1 -0
- package/dist/mint-components/p-29ee7d11.system.entry.js +1 -0
- package/dist/mint-components/p-748ad4f5.entry.js +1 -0
- package/dist/mint-components/p-760762d3.entry.js +13 -0
- package/dist/mint-components/p-7cec5098.entry.js +398 -0
- package/dist/mint-components/p-81786aa0.js +1 -0
- package/dist/mint-components/p-8ec5127e.system.entry.js +1 -0
- package/dist/mint-components/p-a4bd0778.system.entry.js +58 -0
- package/dist/mint-components/p-a88a08bb.system.js +1 -1
- package/dist/mint-components/p-ee684b5f.js +1 -0
- package/dist/mint-components/p-f5cfc52a.entry.js +1 -0
- package/dist/types/components/sqm-brand/SqmBrand.stories.d.ts +7 -0
- package/dist/types/components/sqm-brand/sqm-brand.d.ts +23 -0
- package/dist/types/components/sqm-program-explainer/ProgramExplainer.stories.d.ts +7 -0
- package/dist/types/components/sqm-program-explainer/sqm-program-explainer-view.d.ts +9 -0
- package/dist/types/components/sqm-program-explainer/sqm-program-explainer.d.ts +31 -0
- package/dist/types/components/sqm-program-explainer-step/ProgramExplainerStep.stories.d.ts +5 -0
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step-view.d.ts +8 -0
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +29 -0
- package/dist/types/components/sqm-reward-exchange-list/RewardExchangeList.stories.d.ts +2 -0
- package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +85 -0
- package/dist/types/components/sqm-reward-exchange-list/SVGs.d.ts +1 -0
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.d.ts +3 -0
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +53 -0
- package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +16 -0
- package/dist/types/components/sqm-stencilbook/AutoColor.d.ts +15 -0
- package/dist/types/components/sqm-task-card/TaskCard.stories.d.ts +1 -0
- package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +1 -1
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +1 -1
- package/dist/types/components.d.ts +253 -2
- package/dist/types/fonts/GoogleFonts.d.ts +9 -0
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/sqm-divided-layout_30.entry.js +0 -58
- package/dist/mint-components/p-0029a386.system.entry.js +0 -1
- package/dist/mint-components/p-03a6becf.entry.js +0 -9
- package/dist/mint-components/p-58ffe936.system.entry.js +0 -58
- package/dist/mint-components/p-88d9bd59.entry.js +0 -393
- package/dist/types/global/android.d.ts +0 -7
- package/dist/types/global/demo.d.ts +0 -1
- package/dist/types/stories/features.d.ts +0 -4
- package/dist/types/stories/templates.d.ts +0 -4
package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import jss from "jss";
|
|
3
|
+
import preset from "jss-preset-default";
|
|
4
|
+
export function ProgramExplainerStepView(props) {
|
|
5
|
+
const style = {
|
|
6
|
+
Container: {
|
|
7
|
+
display: "flex",
|
|
8
|
+
flexDirection: "column",
|
|
9
|
+
width: "100%",
|
|
10
|
+
height: "444px",
|
|
11
|
+
color: props.color,
|
|
12
|
+
background: props.background,
|
|
13
|
+
padding: "24px",
|
|
14
|
+
"@media (max-width: 1024px)": {
|
|
15
|
+
flexDirection: "row",
|
|
16
|
+
width: "auto",
|
|
17
|
+
height: "auto",
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
Logo: {},
|
|
21
|
+
Text: {
|
|
22
|
+
"@media (max-width: 1024px)": {
|
|
23
|
+
marginLeft: "24px",
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
Title: {
|
|
27
|
+
fontSize: "16px",
|
|
28
|
+
fontWeight: "var(--sl-font-weight-bold)",
|
|
29
|
+
textTransform: "uppercase",
|
|
30
|
+
lineHeight: "24px",
|
|
31
|
+
marginTop: "24px",
|
|
32
|
+
"@media (max-width: 1024px)": {
|
|
33
|
+
margin: "0",
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
Description: {
|
|
37
|
+
fontSize: "16px",
|
|
38
|
+
lineHeight: "28px",
|
|
39
|
+
marginTop: "12px",
|
|
40
|
+
"@media (max-width: 1024px)": {
|
|
41
|
+
marginTop: "8px",
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
jss.setup(preset());
|
|
46
|
+
const sheet = jss.createStyleSheet(style);
|
|
47
|
+
const styleString = sheet.toString();
|
|
48
|
+
console.log(props);
|
|
49
|
+
return (h("div", { class: sheet.classes.Container },
|
|
50
|
+
h("style", { type: "text/css" }, styleString),
|
|
51
|
+
h("div", { class: sheet.classes.Logo },
|
|
52
|
+
h("div", { style: {
|
|
53
|
+
width: "64px",
|
|
54
|
+
height: "64px",
|
|
55
|
+
borderRadius: "100%",
|
|
56
|
+
background: "#F4F5F7",
|
|
57
|
+
color: "var(--sl-color-primary-400)",
|
|
58
|
+
textAlign: "center",
|
|
59
|
+
lineHeight: "72px",
|
|
60
|
+
} },
|
|
61
|
+
h("div", { style: { fontSize: "26px" } },
|
|
62
|
+
h("sl-icon", { name: props.icon })))),
|
|
63
|
+
h("div", { class: sheet.classes.Text },
|
|
64
|
+
h("div", { class: sheet.classes.Title }, props.cardTitle),
|
|
65
|
+
h("div", { class: sheet.classes.Description }, props.description))));
|
|
66
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
2
|
+
import { Component, h, Prop } from "@stencil/core";
|
|
3
|
+
import { getProps } from "../../utils/utils";
|
|
4
|
+
import { ProgramExplainerStepView } from "./sqm-program-explainer-step-view";
|
|
5
|
+
/**
|
|
6
|
+
* @uiName Program Explainer Step
|
|
7
|
+
*/
|
|
8
|
+
export class ProgramExplainerStep {
|
|
9
|
+
constructor() {
|
|
10
|
+
withHooks(this);
|
|
11
|
+
}
|
|
12
|
+
disconnectedCallback() { }
|
|
13
|
+
render() {
|
|
14
|
+
return h(ProgramExplainerStepView, Object.assign({}, getProps(this)));
|
|
15
|
+
}
|
|
16
|
+
static get is() { return "sqm-program-explainer-step"; }
|
|
17
|
+
static get encapsulation() { return "shadow"; }
|
|
18
|
+
static get properties() { return {
|
|
19
|
+
"cardTitle": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"mutable": false,
|
|
22
|
+
"complexType": {
|
|
23
|
+
"original": "string",
|
|
24
|
+
"resolved": "string",
|
|
25
|
+
"references": {}
|
|
26
|
+
},
|
|
27
|
+
"required": false,
|
|
28
|
+
"optional": false,
|
|
29
|
+
"docs": {
|
|
30
|
+
"tags": [{
|
|
31
|
+
"text": "Title",
|
|
32
|
+
"name": "uiName"
|
|
33
|
+
}],
|
|
34
|
+
"text": ""
|
|
35
|
+
},
|
|
36
|
+
"attribute": "card-title",
|
|
37
|
+
"reflect": false
|
|
38
|
+
},
|
|
39
|
+
"description": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"mutable": false,
|
|
42
|
+
"complexType": {
|
|
43
|
+
"original": "string",
|
|
44
|
+
"resolved": "string",
|
|
45
|
+
"references": {}
|
|
46
|
+
},
|
|
47
|
+
"required": false,
|
|
48
|
+
"optional": false,
|
|
49
|
+
"docs": {
|
|
50
|
+
"tags": [{
|
|
51
|
+
"text": "Description",
|
|
52
|
+
"name": "uiName"
|
|
53
|
+
}],
|
|
54
|
+
"text": ""
|
|
55
|
+
},
|
|
56
|
+
"attribute": "description",
|
|
57
|
+
"reflect": false
|
|
58
|
+
},
|
|
59
|
+
"color": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"mutable": false,
|
|
62
|
+
"complexType": {
|
|
63
|
+
"original": "string",
|
|
64
|
+
"resolved": "string",
|
|
65
|
+
"references": {}
|
|
66
|
+
},
|
|
67
|
+
"required": false,
|
|
68
|
+
"optional": false,
|
|
69
|
+
"docs": {
|
|
70
|
+
"tags": [{
|
|
71
|
+
"text": "Color",
|
|
72
|
+
"name": "uiName"
|
|
73
|
+
}, {
|
|
74
|
+
"text": "color",
|
|
75
|
+
"name": "uiWidget"
|
|
76
|
+
}],
|
|
77
|
+
"text": ""
|
|
78
|
+
},
|
|
79
|
+
"attribute": "color",
|
|
80
|
+
"reflect": false
|
|
81
|
+
},
|
|
82
|
+
"background": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"mutable": false,
|
|
85
|
+
"complexType": {
|
|
86
|
+
"original": "string",
|
|
87
|
+
"resolved": "string",
|
|
88
|
+
"references": {}
|
|
89
|
+
},
|
|
90
|
+
"required": false,
|
|
91
|
+
"optional": false,
|
|
92
|
+
"docs": {
|
|
93
|
+
"tags": [{
|
|
94
|
+
"text": "Background",
|
|
95
|
+
"name": "uiName"
|
|
96
|
+
}],
|
|
97
|
+
"text": ""
|
|
98
|
+
},
|
|
99
|
+
"attribute": "background",
|
|
100
|
+
"reflect": false
|
|
101
|
+
},
|
|
102
|
+
"icon": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"mutable": false,
|
|
105
|
+
"complexType": {
|
|
106
|
+
"original": "string",
|
|
107
|
+
"resolved": "string",
|
|
108
|
+
"references": {}
|
|
109
|
+
},
|
|
110
|
+
"required": false,
|
|
111
|
+
"optional": false,
|
|
112
|
+
"docs": {
|
|
113
|
+
"tags": [{
|
|
114
|
+
"text": "Icon",
|
|
115
|
+
"name": "uiName"
|
|
116
|
+
}],
|
|
117
|
+
"text": ""
|
|
118
|
+
},
|
|
119
|
+
"attribute": "icon",
|
|
120
|
+
"reflect": false
|
|
121
|
+
}
|
|
122
|
+
}; }
|
|
123
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { RewardExchangeView } from "./sqm-reward-exchange-list-view";
|
|
2
|
+
import { RewardExchangeView, } from "./sqm-reward-exchange-list-view";
|
|
3
3
|
import * as Data from "./RewardExchangeListData";
|
|
4
4
|
import { Resizer } from "../sqm-stencilbook/Resizer";
|
|
5
5
|
export default {
|
|
6
6
|
title: "Components/Reward Exchange List",
|
|
7
7
|
};
|
|
8
8
|
const StoryBase = (props) => () => {
|
|
9
|
-
return h(Resizer, null,
|
|
10
|
-
h(RewardExchangeView, Object.assign({}, props)));
|
|
9
|
+
return (h(Resizer, null,
|
|
10
|
+
h(RewardExchangeView, Object.assign({}, props))));
|
|
11
11
|
};
|
|
12
12
|
export const ChooseReward = StoryBase(Data.rewardExchange);
|
|
13
13
|
export const ChooseRewardSelected = StoryBase(Data.rewardExchangeSelected);
|
|
@@ -17,4 +17,6 @@ export const Confirm = StoryBase(Data.confirmFixed);
|
|
|
17
17
|
export const ConfirmVariable = StoryBase(Data.confirmVariable);
|
|
18
18
|
export const Error = StoryBase(Data.error);
|
|
19
19
|
export const Success = StoryBase(Data.success);
|
|
20
|
+
export const SuccessVariable = StoryBase(Data.success2);
|
|
21
|
+
export const SuccessPromo = StoryBase(Data.success3);
|
|
20
22
|
export const Loading = StoryBase(Data.loading);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const baseResponse = (data, stage = "chooseReward", selectedItem = null, selectedStep = null, error = false, loading = false) => ({
|
|
1
|
+
const baseResponse = (data, stage = "chooseReward", selectedItem = null, selectedStep = null, error = false, loading = false, fueltank = null) => ({
|
|
2
2
|
states: {
|
|
3
3
|
content: {
|
|
4
4
|
text: {
|
|
@@ -11,15 +11,18 @@ const baseResponse = (data, stage = "chooseReward", selectedItem = null, selecte
|
|
|
11
11
|
loading: loading,
|
|
12
12
|
selectedItem: selectedItem,
|
|
13
13
|
selectedStep: selectedStep,
|
|
14
|
+
open: false,
|
|
14
15
|
},
|
|
15
16
|
data: {
|
|
16
17
|
exchangeList: data,
|
|
18
|
+
fuelTankCode: fueltank,
|
|
17
19
|
},
|
|
18
20
|
callbacks: {
|
|
19
21
|
exchangeReward: null,
|
|
20
22
|
resetState: null,
|
|
21
23
|
setStage: null,
|
|
22
24
|
setExchangeState: null,
|
|
25
|
+
copyFuelTankCode: null,
|
|
23
26
|
refs: null,
|
|
24
27
|
},
|
|
25
28
|
refs: null,
|
|
@@ -71,12 +74,12 @@ const description = (props) => ({
|
|
|
71
74
|
const fixedValue = (props) => ({
|
|
72
75
|
prettySourceValue: props,
|
|
73
76
|
});
|
|
74
|
-
const variableValue = (min, max,
|
|
77
|
+
const variableValue = (min, max, unit) => ({
|
|
75
78
|
ruleType: "VARIABLE_CREDIT_REWARD",
|
|
76
79
|
sourceMinValue: min,
|
|
77
|
-
prettySourceMinValue: min + " " +
|
|
80
|
+
prettySourceMinValue: min + " " + unit,
|
|
78
81
|
sourceMaxValue: max,
|
|
79
|
-
prettySourceMaxValue: max + " " +
|
|
82
|
+
prettySourceMaxValue: max + " " + unit,
|
|
80
83
|
});
|
|
81
84
|
const data = [
|
|
82
85
|
{
|
|
@@ -90,7 +93,7 @@ const data = [
|
|
|
90
93
|
...selected,
|
|
91
94
|
...name("Visa® Prepaid Card USD"),
|
|
92
95
|
...imageUrl("https://i.imgur.com/veHErQX.png"),
|
|
93
|
-
...variableValue(20, 80, "
|
|
96
|
+
...variableValue(20, 80, "Points"),
|
|
94
97
|
},
|
|
95
98
|
{
|
|
96
99
|
...baseReward,
|
|
@@ -108,7 +111,7 @@ const data = [
|
|
|
108
111
|
...baseReward,
|
|
109
112
|
...name("Variable amount of store credit"),
|
|
110
113
|
...imageUrl("https://i.imgur.com/Jn2fE0s.png"),
|
|
111
|
-
...variableValue(20, 100, "
|
|
114
|
+
...variableValue(20, 100, "Points"),
|
|
112
115
|
},
|
|
113
116
|
{
|
|
114
117
|
...baseReward,
|
|
@@ -120,9 +123,9 @@ const data = [
|
|
|
120
123
|
{
|
|
121
124
|
...baseReward,
|
|
122
125
|
...usTax,
|
|
123
|
-
...name("$1000 Store credit"),
|
|
126
|
+
...name("$1000 Store credit with a really super long name in the front page"),
|
|
124
127
|
...imageUrl("https://i.imgur.com/y9HSls1.png"),
|
|
125
|
-
...fixedValue("2000 SaaSquatch Points"),
|
|
128
|
+
...fixedValue("2000 SaaSquatch Long Points"),
|
|
126
129
|
},
|
|
127
130
|
{
|
|
128
131
|
...baseReward,
|
|
@@ -141,7 +144,7 @@ export const rewardExchangeSelected = {
|
|
|
141
144
|
...selected,
|
|
142
145
|
...name("Visa® Prepaid Card USD"),
|
|
143
146
|
...imageUrl("https://i.imgur.com/veHErQX.png"),
|
|
144
|
-
...variableValue(20, 80, "
|
|
147
|
+
...variableValue(20, 80, "Points"),
|
|
145
148
|
}),
|
|
146
149
|
};
|
|
147
150
|
const stepsData = (start, end, inc) => {
|
|
@@ -173,13 +176,13 @@ export const chooseAmountVariable = {
|
|
|
173
176
|
...baseReward,
|
|
174
177
|
...name("Visa® Prepaid Card USD"),
|
|
175
178
|
...imageUrl("https://i.imgur.com/veHErQX.png"),
|
|
176
|
-
...variableValue(20, 80, "
|
|
179
|
+
...variableValue(20, 80, "Points"),
|
|
177
180
|
steps: [
|
|
178
|
-
baseStep(20, "$", 40, "
|
|
179
|
-
baseStep(30, "$", 60, "
|
|
180
|
-
baseStep(40, "$", 80, "
|
|
181
|
-
baseStep(50, "$", 100, "
|
|
182
|
-
baseStep(60, "$", 120, "
|
|
181
|
+
baseStep(20, "$", 40, "Points"),
|
|
182
|
+
baseStep(30, "$", 60, "Points"),
|
|
183
|
+
baseStep(40, "$", 80, "Points"),
|
|
184
|
+
baseStep(50, "$", 100, "Points"),
|
|
185
|
+
baseStep(60, "$", 120, "Points"),
|
|
183
186
|
],
|
|
184
187
|
}),
|
|
185
188
|
};
|
|
@@ -204,16 +207,16 @@ export const confirmVariable = {
|
|
|
204
207
|
...baseReward,
|
|
205
208
|
...name("Visa® Prepaid Card USD"),
|
|
206
209
|
...imageUrl("https://i.imgur.com/veHErQX.png"),
|
|
207
|
-
...variableValue(20, 80, "
|
|
208
|
-
}, baseStep(20, "$", 40, "
|
|
210
|
+
...variableValue(20, 80, "Points"),
|
|
211
|
+
}, baseStep(20, "$", 40, "Points")),
|
|
209
212
|
};
|
|
210
213
|
export const error = {
|
|
211
214
|
...baseResponse(data, "confirmation", {
|
|
212
215
|
...baseReward,
|
|
213
216
|
...name("Visa® Prepaid Card USD"),
|
|
214
217
|
...imageUrl("https://i.imgur.com/veHErQX.png"),
|
|
215
|
-
...variableValue(20, 80, "
|
|
216
|
-
}, baseStep(20, "$", 40, "
|
|
218
|
+
...variableValue(20, 80, "Points"),
|
|
219
|
+
}, baseStep(20, "$", 40, "Points"), true),
|
|
217
220
|
};
|
|
218
221
|
export const success = {
|
|
219
222
|
...baseResponse(data, "success", {
|
|
@@ -223,6 +226,22 @@ export const success = {
|
|
|
223
226
|
...fixedValue("30 SaaSquatch Points"),
|
|
224
227
|
}),
|
|
225
228
|
};
|
|
229
|
+
export const success2 = {
|
|
230
|
+
...baseResponse(data, "success", {
|
|
231
|
+
...baseReward,
|
|
232
|
+
...name("Visa® Prepaid Card USD"),
|
|
233
|
+
...imageUrl("https://i.imgur.com/93BvEgH.png"),
|
|
234
|
+
...variableValue(20, 80, "Points"),
|
|
235
|
+
}, baseStep(20, "$", 40, "Points")),
|
|
236
|
+
};
|
|
237
|
+
export const success3 = {
|
|
238
|
+
...baseResponse(data, "success", {
|
|
239
|
+
...baseReward,
|
|
240
|
+
...name("A very exclusive gift box"),
|
|
241
|
+
...imageUrl("https://i.imgur.com/93BvEgH.png"),
|
|
242
|
+
...fixedValue("30 SaaSquatch Points"),
|
|
243
|
+
}, undefined, undefined, undefined, "4ah2-hh46-gk7r"),
|
|
244
|
+
};
|
|
226
245
|
export const loading = {
|
|
227
246
|
...baseResponse(null, "chooseReward", null, null, false, true),
|
|
228
247
|
};
|
|
@@ -5,6 +5,9 @@ export const ExchangeArrows = () => (h("svg", { width: 19, height: 15, fill: "no
|
|
|
5
5
|
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M5.125 14.783a.6.6 0 0 1-.851 0l-3.9-3.923a.6.6 0 1 1 .85-.846L4.1 12.905V1.52a.6.6 0 0 1 1.2 0v11.385l2.875-2.891a.6.6 0 1 1 .85.846l-3.9 3.923Zm9.6-13.686a.6.6 0 0 0-.851 0l-3.9 3.923a.6.6 0 0 0 .85.846L13.7 2.975V14.36a.6.6 0 1 0 1.2 0V2.975l2.875 2.891a.6.6 0 1 0 .85-.846l-3.9-3.923Z", fill: "#333" })));
|
|
6
6
|
export const CheckMark = () => (h("svg", { width: 12, height: 10, fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
7
7
|
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.58.23c.475.371.56 1.057.19 1.532L5.69 9.554a1.091 1.091 0 0 1-1.631.1L.32 5.915a1.09 1.09 0 1 1 1.542-1.542L4.73 7.239 10.049.42A1.09 1.09 0 0 1 11.58.23Z", fill: "#fff" })));
|
|
8
|
+
export const CheckmarkFilled = () => (h("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
9
|
+
h("path", { d: "M0 9C0 4.02944 4.02944 0 9 0C13.9706 0 18 4.02944 18 9C18 13.9706 13.9706 18 9 18C4.02944 18 0 13.9706 0 9Z", fill: "currentColor" }),
|
|
10
|
+
h("path", { d: "M5.68394 8.77046C5.28103 8.39273 4.64819 8.41315 4.27046 8.81606C3.89273 9.21897 3.91315 9.85181 4.31606 10.2295L5.68394 8.77046ZM7.66667 12L6.98273 12.7295C7.36738 13.0902 7.96595 13.0902 8.35061 12.7295L7.66667 12ZM13.6839 7.72954C14.0869 7.35181 14.1073 6.71897 13.7295 6.31606C13.3518 5.91315 12.719 5.89273 12.3161 6.27046L13.6839 7.72954ZM4.31606 10.2295L6.98273 12.7295L8.35061 11.2705L5.68394 8.77046L4.31606 10.2295ZM8.35061 12.7295L13.6839 7.72954L12.3161 6.27046L6.98273 11.2705L8.35061 12.7295Z", fill: "white" })));
|
|
8
11
|
export const Gift = () => (h("svg", { width: 156, height: 157, fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
9
12
|
h("path", { d: "M40.18 126h83.663a3 3 0 0 0 3-3V73.966a3 3 0 0 0-3-3H40.18a3 3 0 0 0-3 3V123a3 3 0 0 0 3 3Z", fill: "#FFD34F" }),
|
|
10
13
|
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M37.18 73.862v7.966h89.663v-7.966H37.18Z", fill: "#E9BB30" }),
|