@saasquatch/mint-components 1.3.2-3 → 1.3.2-7
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-big-stat.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-divided-layout_27.cjs.entry.js → sqm-divided-layout_28.cjs.entry.js} +944 -369
- package/dist/cjs/{useDemoBigStat-17e61803.js → useDemoBigStat-051a69f7.js} +116 -20
- package/dist/collection/components/sqm-big-stat/BigStat.stories.js +8 -1
- package/dist/collection/components/sqm-big-stat/UseBigStat.stories.js +3 -0
- package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +1 -1
- package/dist/collection/components/sqm-big-stat/useBigStat.js +115 -20
- package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +1 -0
- package/dist/collection/components/sqm-reward-exchange-list/SVGs.js +5 -14
- package/dist/collection/components/sqm-reward-exchange-list/progressBar.js +5 -4
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +55 -43
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +2 -1
- package/dist/collection/components/sqm-reward-exchange-list/useRewardExchangeList.js +2 -1
- package/dist/collection/components/sqm-stencilbook/CucumberAddon.js +3 -1
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +4 -0
- package/dist/collection/components/sqm-task-card/SVGs.js +0 -6
- package/dist/collection/components/sqm-task-card/TaskCard.stories.js +74 -243
- package/dist/collection/components/sqm-task-card/UseTaskCard.stories.js +41 -0
- package/dist/collection/components/sqm-task-card/progress-bar/SVGs.js +7 -0
- package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +311 -0
- package/dist/collection/components/sqm-task-card/progress-bar/progress-bar.stories.js +53 -0
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +15 -309
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +108 -48
- package/dist/collection/stories/NewPortal.stories.js +15 -15
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-big-stat.entry.js +1 -1
- package/dist/esm/{sqm-divided-layout_27.entry.js → sqm-divided-layout_28.entry.js} +908 -334
- package/dist/esm/{useDemoBigStat-b71fe122.js → useDemoBigStat-95889548.js} +116 -20
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-big-stat.entry.js +1 -1
- package/dist/esm-es5/sqm-divided-layout_28.entry.js +1 -0
- package/dist/esm-es5/useDemoBigStat-95889548.js +1 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/p-0faf1857.system.js +1 -0
- package/dist/mint-components/{p-e22eed7b.entry.js → p-1d445125.entry.js} +1 -1
- package/dist/mint-components/p-32b27a5c.system.entry.js +1 -0
- package/dist/mint-components/p-91d39961.system.js +1 -1
- package/dist/mint-components/{p-c9c4f31b.system.entry.js → p-b2633117.system.entry.js} +1 -1
- package/dist/mint-components/p-b6e6be5e.js +235 -0
- package/dist/mint-components/p-f1953bd7.entry.js +288 -0
- package/dist/types/components/sqm-big-stat/UseBigStat.stories.d.ts +6 -0
- package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +1 -0
- package/dist/types/components/sqm-big-stat/useBigStat.d.ts +4 -1
- 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 +1 -0
- package/dist/types/components/sqm-task-card/SVGs.d.ts +0 -1
- package/dist/types/components/sqm-task-card/TaskCard.stories.d.ts +3 -1
- package/dist/types/components/sqm-task-card/UseTaskCard.stories.d.ts +10 -0
- package/dist/types/components/sqm-task-card/progress-bar/SVGs.d.ts +1 -0
- package/dist/types/components/sqm-task-card/progress-bar/progress-bar-view.d.ts +9 -0
- package/dist/types/components/sqm-task-card/progress-bar/progress-bar.stories.d.ts +12 -0
- package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +13 -22
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +25 -13
- package/dist/types/components.d.ts +48 -34
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/sqm-task-card-view-57066e67.js +0 -476
- package/dist/cjs/sqm-task-card.cjs.entry.js +0 -56
- package/dist/esm/sqm-task-card-view-2ee495af.js +0 -474
- package/dist/esm/sqm-task-card.entry.js +0 -52
- package/dist/esm-es5/sqm-divided-layout_27.entry.js +0 -1
- package/dist/esm-es5/sqm-task-card-view-2ee495af.js +0 -1
- package/dist/esm-es5/sqm-task-card.entry.js +0 -1
- package/dist/esm-es5/useDemoBigStat-b71fe122.js +0 -1
- package/dist/mint-components/p-1e248afc.system.entry.js +0 -1
- package/dist/mint-components/p-353b4413.system.js +0 -1
- package/dist/mint-components/p-405a9253.js +0 -227
- package/dist/mint-components/p-4cc79fb9.entry.js +0 -288
- package/dist/mint-components/p-8c605e30.system.entry.js +0 -1
- package/dist/mint-components/p-8f5e2af4.entry.js +0 -1
- package/dist/mint-components/p-e78a5a91.js +0 -1
- package/dist/mint-components/p-f87d8f53.system.js +0 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
+
import { CheckMark } from "./SVGs";
|
|
2
3
|
function Dot({ active, completed, incomplete, }) {
|
|
3
4
|
return (h("div", { style: {
|
|
4
5
|
flex: "0 0 0",
|
|
@@ -23,12 +24,12 @@ function Dot({ active, completed, incomplete, }) {
|
|
|
23
24
|
? "2px solid #E5E5E5"
|
|
24
25
|
: "none",
|
|
25
26
|
borderRadius: "50%",
|
|
26
|
-
width: completed ? "
|
|
27
|
-
height: completed ? "
|
|
28
|
-
margin: "-
|
|
27
|
+
width: completed ? "14px" : "10px",
|
|
28
|
+
height: completed ? "14px" : "10px",
|
|
29
|
+
margin: "-5px auto 0px",
|
|
29
30
|
zIndex: "1",
|
|
30
31
|
boxSizing: "content-box",
|
|
31
|
-
} })));
|
|
32
|
+
} }, completed && h(CheckMark, null))));
|
|
32
33
|
}
|
|
33
34
|
function ProgressLine({ incomplete = false, active = false }) {
|
|
34
35
|
return (h("div", { style: {
|
package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js
CHANGED
|
@@ -21,29 +21,33 @@ export function RewardExchangeView(props) {
|
|
|
21
21
|
},
|
|
22
22
|
},
|
|
23
23
|
Base: {
|
|
24
|
-
display: "
|
|
24
|
+
display: "flex",
|
|
25
25
|
cursor: "pointer",
|
|
26
26
|
textAlign: "center",
|
|
27
|
+
height: "120px",
|
|
27
28
|
"&::part(base)": {
|
|
28
29
|
width: "100%",
|
|
29
|
-
|
|
30
|
+
maxWidth: "350px",
|
|
30
31
|
display: "flex",
|
|
31
|
-
|
|
32
|
-
alignItems: "center",
|
|
32
|
+
margin: "0 auto",
|
|
33
33
|
},
|
|
34
34
|
"&::part(body)": {
|
|
35
|
-
padding:
|
|
35
|
+
padding: 0,
|
|
36
|
+
display: "flex",
|
|
37
|
+
width: "100%",
|
|
36
38
|
},
|
|
37
39
|
},
|
|
38
40
|
Drawer: {
|
|
39
41
|
"&::part(base)": {
|
|
40
42
|
minWidth: "400px",
|
|
43
|
+
maxWidth: "700px",
|
|
41
44
|
width: "50%",
|
|
42
45
|
margin: "0 auto",
|
|
43
46
|
right: "0",
|
|
44
47
|
},
|
|
45
48
|
"&::part(panel)": {
|
|
46
49
|
height: "85vh",
|
|
50
|
+
width: "100%",
|
|
47
51
|
},
|
|
48
52
|
},
|
|
49
53
|
FullImage: {
|
|
@@ -53,8 +57,9 @@ export function RewardExchangeView(props) {
|
|
|
53
57
|
},
|
|
54
58
|
PreviewImage: {
|
|
55
59
|
objectFit: "contain",
|
|
56
|
-
|
|
57
|
-
height: "
|
|
60
|
+
width: "120px",
|
|
61
|
+
height: "120px",
|
|
62
|
+
flex: 0.33,
|
|
58
63
|
},
|
|
59
64
|
InputBox: {
|
|
60
65
|
width: "100%",
|
|
@@ -69,8 +74,9 @@ export function RewardExchangeView(props) {
|
|
|
69
74
|
},
|
|
70
75
|
},
|
|
71
76
|
Buttons: {
|
|
72
|
-
|
|
77
|
+
marginLeft: "auto",
|
|
73
78
|
width: "100%",
|
|
79
|
+
maxWidth: "300px",
|
|
74
80
|
},
|
|
75
81
|
Button: {
|
|
76
82
|
margin: "10px 0",
|
|
@@ -104,8 +110,9 @@ export function RewardExchangeView(props) {
|
|
|
104
110
|
});
|
|
105
111
|
} }, (_b = item.steps) === null || _b === void 0 ? void 0 : _b.map((step) => (h("sl-menu-item", { value: step, disabled: !step.available },
|
|
106
112
|
step.prettyDestinationValue,
|
|
107
|
-
h("div", { slot: "suffix", style: { fontSize: "75%", float: "right" } },
|
|
108
|
-
|
|
113
|
+
h("div", { slot: "suffix", style: { fontSize: "75%", float: "right" } },
|
|
114
|
+
step.prettySourceValue,
|
|
115
|
+
step.unavailableReasonCode && (h("p", { style: { fontSize: "70%", color: "#F2994A" } }, step.unavailableReasonCode))))))));
|
|
109
116
|
}
|
|
110
117
|
function chooseReward() {
|
|
111
118
|
var _a;
|
|
@@ -113,41 +120,40 @@ export function RewardExchangeView(props) {
|
|
|
113
120
|
? "confirmation"
|
|
114
121
|
: "chooseAmount";
|
|
115
122
|
console.log({ nextStage, ruleType: selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.ruleType });
|
|
116
|
-
return
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
} }, (_a = data.exchangeList) === null || _a === void 0 ? void 0 :
|
|
124
|
-
_a.map((item) => {
|
|
123
|
+
return [
|
|
124
|
+
h("div", { style: {
|
|
125
|
+
display: "grid",
|
|
126
|
+
justifyContent: "center",
|
|
127
|
+
gap: "20px",
|
|
128
|
+
gridTemplateColumns: "repeat(auto-fill, minmax(220px, 1fr))",
|
|
129
|
+
} }, (_a = data.exchangeList) === null || _a === void 0 ? void 0 : _a.map((item) => {
|
|
125
130
|
const style = {
|
|
126
131
|
boxShadow: item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key) ? "0 1px 8px #87ceeb" : "none",
|
|
127
132
|
marginBottom: "10px 0",
|
|
128
133
|
flex: "1",
|
|
129
134
|
minWidth: "100%",
|
|
130
135
|
color: !item.available && "#eee",
|
|
131
|
-
"&:hover": {
|
|
132
|
-
boxShadow: !item.available && "none",
|
|
133
|
-
},
|
|
134
136
|
};
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
137
|
+
const amount = item.ruleType === "FIXED_GLOBAL_REWARD"
|
|
138
|
+
? item.prettySourceValue
|
|
139
|
+
: `${item.sourceMinValue} to ${item.sourceMaxValue} ${item.sourceUnit}`;
|
|
140
|
+
return (h("div", { key: item.key, class: item.available ? sheet.classes.CardContainer : "", style: style },
|
|
138
141
|
h("sl-card", { class: sheet.classes.Base, onClick: () => item.available &&
|
|
139
142
|
callbacks.setExchangeState({ selectedItem: item }) },
|
|
140
|
-
h("img", { class: sheet.classes.PreviewImage, src: (item === null || item === void 0 ? void 0 : item.imageUrl) || getAssetPath("./assets/Reward-icon.png") }),
|
|
141
|
-
h("p", { style: {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
143
|
+
(item === null || item === void 0 ? void 0 : item.imageUrl) && (h("img", { class: sheet.classes.PreviewImage, src: (item === null || item === void 0 ? void 0 : item.imageUrl) || getAssetPath("./assets/Reward-icon.png") })),
|
|
144
|
+
h("p", { style: { margin: "0", flex: "1", fontSize: "90%" } },
|
|
145
|
+
h("b", null, item.description),
|
|
146
|
+
h("p", { style: { margin: "0" } }, amount),
|
|
147
|
+
item.unavailableReasonCode && (h("p", { style: {
|
|
148
|
+
fontSize: "70%",
|
|
149
|
+
color: "#F2994A",
|
|
150
|
+
marginTop: "0",
|
|
151
|
+
} }, item.unavailableReasonCode))))));
|
|
152
|
+
})),
|
|
148
153
|
h("div", { class: sheet.classes.Buttons },
|
|
149
154
|
h("sl-button", { onClick: () => callbacks.setStage(nextStage), style: { display: "block" }, class: sheet.classes.Button, disabled: !states.selectedItem }, "Continue"),
|
|
150
|
-
h("a", { onClick: () => { var _a; return (_a = refs.drawerRef.current) === null || _a === void 0 ? void 0 : _a.hide(); }, style: { display: "block" }, class: sheet.classes.Button }, "Cancel"))
|
|
155
|
+
h("a", { onClick: () => { var _a; return (_a = refs.drawerRef.current) === null || _a === void 0 ? void 0 : _a.hide(); }, style: { display: "block" }, class: sheet.classes.Button }, "Cancel")),
|
|
156
|
+
];
|
|
151
157
|
}
|
|
152
158
|
function chooseAmount() {
|
|
153
159
|
const input = getInput();
|
|
@@ -167,14 +173,20 @@ export function RewardExchangeView(props) {
|
|
|
167
173
|
return (h("div", null,
|
|
168
174
|
h("h2", null, "Confirm and redeem"),
|
|
169
175
|
h("div", { style: { textAlign: "center" } },
|
|
170
|
-
h("p", null,
|
|
171
|
-
h("b", null, selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.sourceValue)),
|
|
172
176
|
h("p", null,
|
|
173
177
|
h("b", null, selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettySourceValue)),
|
|
174
178
|
h("p", null,
|
|
175
179
|
h(ExchangeArrows, null)),
|
|
176
|
-
h("
|
|
177
|
-
|
|
180
|
+
h("div", { class: sheet.classes.CardContainer, style: {
|
|
181
|
+
boxShadow: "none",
|
|
182
|
+
marginBottom: "10px",
|
|
183
|
+
flex: "1",
|
|
184
|
+
minWidth: "100%",
|
|
185
|
+
} },
|
|
186
|
+
h("sl-card", { class: sheet.classes.Base },
|
|
187
|
+
h("img", { class: sheet.classes.PreviewImage, src: (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.imageUrl) ||
|
|
188
|
+
getAssetPath("./assets/Reward-icon.png") }),
|
|
189
|
+
h("p", { style: { marginBottom: "0", flex: "1" } }, selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettyDestinationValue)))),
|
|
178
190
|
h("div", { class: sheet.classes.Buttons },
|
|
179
191
|
h("sl-button", { onClick: callbacks.exchangeReward, style: { display: "block" }, class: sheet.classes.Button }, "Redeem"),
|
|
180
192
|
h("a", { onClick: () => callbacks.setStage(previousStage), style: { display: "block" }, class: sheet.classes.Button }, "Back"))));
|
|
@@ -195,22 +207,22 @@ export function RewardExchangeView(props) {
|
|
|
195
207
|
const currentStage = stages[states.redeemStage];
|
|
196
208
|
function stageMap() {
|
|
197
209
|
const stageNumber = stageList.indexOf(states.redeemStage);
|
|
198
|
-
return (h("div", { style: { fontSize: "80%" } },
|
|
199
|
-
h(ProgressBar, { stageCount: 3, currentStage: stageNumber }),
|
|
210
|
+
return (h("div", { style: { fontSize: "80%", marginBottom: "20px" } },
|
|
200
211
|
h("div", { style: {
|
|
201
212
|
marginTop: "5px",
|
|
202
213
|
display: "flex",
|
|
203
214
|
justifyContent: "center",
|
|
204
215
|
textAlign: "center",
|
|
205
216
|
whiteSpace: "nowrap",
|
|
206
|
-
marginBottom: "
|
|
217
|
+
marginBottom: "6px",
|
|
207
218
|
} }, Object.keys(stageProgressList).map((stage) => {
|
|
208
219
|
if (stage === states.redeemStage)
|
|
209
220
|
return (h("b", { style: { flex: "1 1 0" } },
|
|
210
221
|
" ",
|
|
211
222
|
stageProgressList[stage]));
|
|
212
223
|
return h("i", { style: { flex: "1 1 0" } }, stageProgressList[stage]);
|
|
213
|
-
}))
|
|
224
|
+
})),
|
|
225
|
+
h(ProgressBar, { stageCount: 3, currentStage: stageNumber })));
|
|
214
226
|
}
|
|
215
227
|
const BackButton = () => {
|
|
216
228
|
if (states.redeemStage === "success")
|
|
@@ -239,5 +251,5 @@ export function RewardExchangeView(props) {
|
|
|
239
251
|
currentStage && currentStage(),
|
|
240
252
|
states.exchangeError &&
|
|
241
253
|
"Something went wrong. Please contact support or try again."),
|
|
242
|
-
h("sl-button", { onClick: () => callbacks.openDrawer() }, "Redeem Rewards"))));
|
|
254
|
+
h("sl-button", { loading: states.loading, onClick: () => callbacks.openDrawer() }, "Redeem Rewards"))));
|
|
243
255
|
}
|
|
@@ -63,7 +63,7 @@ export class SqmRewardExchangeList {
|
|
|
63
63
|
"mutable": false,
|
|
64
64
|
"complexType": {
|
|
65
65
|
"original": "DemoData<RewardExchangeViewProps>",
|
|
66
|
-
"resolved": "{ states?: { selectedItem: ExchangeItem; selectedStep: ExchangeStep; redeemStage: string; amount: number; exchangeError?: boolean; content: { text: any; }; }; data?: { exchangeList: any; }; refs?: { drawerRef: any; }; }",
|
|
66
|
+
"resolved": "{ states?: { selectedItem: ExchangeItem; selectedStep: ExchangeStep; redeemStage: string; amount: number; exchangeError?: boolean; loading: boolean; content: { text: any; }; }; data?: { exchangeList: any; }; refs?: { drawerRef: any; }; }",
|
|
67
67
|
"references": {
|
|
68
68
|
"DemoData": {
|
|
69
69
|
"location": "import",
|
|
@@ -103,6 +103,7 @@ function useRewardExchangeListDemo(props) {
|
|
|
103
103
|
amount: 0,
|
|
104
104
|
selectedStep: undefined,
|
|
105
105
|
exchangeError: false,
|
|
106
|
+
loading: false,
|
|
106
107
|
},
|
|
107
108
|
data: {
|
|
108
109
|
shareCode: "SHARECODE123",
|
|
@@ -69,7 +69,7 @@ export function useRewardExchangeList(props) {
|
|
|
69
69
|
const { selectedItem, selectedStep, redeemStage, amount, exchangeError } = exchangeState;
|
|
70
70
|
const user = useUserIdentity();
|
|
71
71
|
const [exchange, { data: exchangeResponse, errors }] = useMutation(EXCHANGE);
|
|
72
|
-
const { data } = useQuery(GET_EXCHANGE_LIST, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
72
|
+
const { data, loading } = useQuery(GET_EXCHANGE_LIST, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
73
73
|
useEffect(() => {
|
|
74
74
|
var _a, _b;
|
|
75
75
|
if ((_b = (_a = exchangeResponse === null || exchangeResponse === void 0 ? void 0 : exchangeResponse.exchangeReward) === null || _a === void 0 ? void 0 : _a.reward) === null || _b === void 0 ? void 0 : _b.id) {
|
|
@@ -178,6 +178,7 @@ export function useRewardExchangeList(props) {
|
|
|
178
178
|
amount,
|
|
179
179
|
selectedStep,
|
|
180
180
|
exchangeError,
|
|
181
|
+
loading,
|
|
181
182
|
},
|
|
182
183
|
data: {
|
|
183
184
|
exchangeList: (_b = (_a = data === null || data === void 0 ? void 0 : data.viewer) === null || _a === void 0 ? void 0 : _a.visibleRewardExchangeItems) === null || _b === void 0 ? void 0 : _b.data,
|
|
@@ -13,6 +13,8 @@ export const CucumberAddon = ({ story }, children) => {
|
|
|
13
13
|
// No scenario or invalid. Ignoring.
|
|
14
14
|
}
|
|
15
15
|
return (h("div", null,
|
|
16
|
-
|
|
16
|
+
h("details", null,
|
|
17
|
+
h("summary", null, "Specs"),
|
|
18
|
+
result && h("pre", { innerHTML: result.value })),
|
|
17
19
|
children));
|
|
18
20
|
};
|
|
@@ -16,6 +16,7 @@ import * as UseEditProfile from "../sqm-edit-profile/UseEditProfile.stories";
|
|
|
16
16
|
import * as UseLeaderboard from "../sqm-leaderboard/UseLeaderboard.stories";
|
|
17
17
|
import * as FormMessage from "../sqm-form-message/FormMessage.stories";
|
|
18
18
|
import * as UseRewardExchangeList from "../sqm-reward-exchange-list/UseRewardExchangeList.stories";
|
|
19
|
+
import * as UseTaskCard from "../sqm-task-card/UseTaskCard.stories";
|
|
19
20
|
import * as NewPortal from "../../stories/NewPortal.stories";
|
|
20
21
|
import * as SidebarItem from "../sqm-navigation-sidebar-item/SidebarItem.stories";
|
|
21
22
|
import * as NavigationSidebar from "../sqm-navigation-sidebar/NavigationSidebar.stories";
|
|
@@ -35,6 +36,7 @@ import * as ReferralTableRewardsCell from "../sqm-referral-table/ReferralTableRe
|
|
|
35
36
|
import * as UserName from "../sqm-user-name/UserName.stories";
|
|
36
37
|
import * as PasswordField from "../sqm-password-field/PasswordField.stories";
|
|
37
38
|
import * as TaskCard from "../sqm-task-card/TaskCard.stories";
|
|
39
|
+
import * as TaskCardProgressBar from "../sqm-task-card/progress-bar/progress-bar.stories";
|
|
38
40
|
import * as PortalTemplates from "../../stories/PortalTemplates.stories";
|
|
39
41
|
import * as ProgramMenu from "../sqm-program-menu/ProgramMenu.stories";
|
|
40
42
|
import * as PoweredByImg from "../../stories/PoweredByImg.stories";
|
|
@@ -79,6 +81,7 @@ const stories = [
|
|
|
79
81
|
UserName,
|
|
80
82
|
PasswordField,
|
|
81
83
|
TaskCard,
|
|
84
|
+
TaskCardProgressBar,
|
|
82
85
|
PortalTemplates,
|
|
83
86
|
ProgramMenu,
|
|
84
87
|
PoweredByImg,
|
|
@@ -87,6 +90,7 @@ const stories = [
|
|
|
87
90
|
ReferralIframe,
|
|
88
91
|
NameFields,
|
|
89
92
|
UseRewardExchangeList,
|
|
93
|
+
UseTaskCard,
|
|
90
94
|
];
|
|
91
95
|
/**
|
|
92
96
|
* For internal documentation
|
|
@@ -7,9 +7,3 @@ export const arrow_left_right = () => {
|
|
|
7
7
|
return (h("svg", { width: 11, height: 12, fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
8
8
|
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M10.265 2.789a.346.346 0 000-.489L8.066.101a.346.346 0 10-.489.489l1.61 1.609H2.073a.691.691 0 00-.69.691v1.728a.346.346 0 00.69 0V2.89h7.114L7.577 4.5a.346.346 0 10.49.488l2.198-2.2zM.101 9.21a.346.346 0 000 .489l2.2 2.199a.346.346 0 00.488-.489l-1.61-1.609h7.114c.382 0 .691-.31.691-.691V7.382a.346.346 0 00-.691 0V9.11H1.18L2.789 7.5a.346.346 0 10-.489-.488l-2.199 2.2z", fill: "currentColor" })));
|
|
9
9
|
};
|
|
10
|
-
export const gift = () => {
|
|
11
|
-
return (h("svg", { width: 16, height: 16, fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
12
|
-
h("path", { d: "M15 5H9v11h4.5a1 1 0 001-1V9h.5a1 1 0 001-1V6a1 1 0 00-1-1zM1.5 9v6a1 1 0 001 1H7V5H1a1 1 0 00-1 1v2a1 1 0 001 1h.5z", fill: "var(--sl-color-primary-200)" }),
|
|
13
|
-
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M1.5 9v1h13V9h-13z", fill: "var(--sl-color-primary-300)" }),
|
|
14
|
-
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M14 2.71c0 .886-1.33 2.227-2 2.29H9v11H7.002V5H4.588C3.212 4.702 2 3.645 2 2.52 2 1.426 2.476.558 3.342.183 4.169-.176 5.125.02 5.88.545c.927.643 1.447 1.851 1.919 2.947l.123.286.12-.272C8.51 2.45 9.045 1.243 9.94.596c.793-.573 1.801-.79 2.672-.397.9.405 1.388 1.336 1.388 2.51zM10.612 1.5c.48-.347 1.056-.41 1.548 0 .428.357.45.525.506.93l.01.07c0 .599-.516 1.5-1.032 1.5-.366 0-.653-.003-.922-.006-.49-.005-.92-.01-1.657.006.14-.272.252-.533.36-.782.285-.667.534-1.246 1.187-1.718zm-5.673 0c-.233-.161-.766-.09-.987.006-.183.08-.456.32-.456 1.015 0 .674 1.092 1.257 1.092 1.257S5.454 4 7.002 4c-.527-1.305-1.273-1.951-2.063-2.5z", fill: "var(--sl-color-primary-600)" })));
|
|
15
|
-
};
|