@saasquatch/mint-components 1.5.0-2 → 1.5.0-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/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-brand_31.cjs.entry.js +295 -121
- package/dist/cjs/sqm-program-explainer-step-view-98958ab1.js +64 -0
- package/dist/cjs/sqm-program-explainer-step.cjs.entry.js +3 -16
- package/dist/cjs/sqm-program-explainer-view-ba7ed24a.js +44 -0
- package/dist/cjs/sqm-program-explainer.cjs.entry.js +4 -33
- package/dist/collection/components/sqm-program-explainer/ProgramExplainer.stories.js +42 -29
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer-view.js +35 -28
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer.js +112 -5
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +35 -20
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +23 -46
- 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 +133 -87
- 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 +17 -4
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-brand_31.entry.js +295 -121
- package/dist/esm/sqm-program-explainer-step-view-64fc0c37.js +62 -0
- package/dist/esm/sqm-program-explainer-step.entry.js +3 -16
- package/dist/esm/sqm-program-explainer-view-68f0d242.js +42 -0
- package/dist/esm/sqm-program-explainer.entry.js +7 -36
- 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 +2 -2
- package/dist/esm-es5/sqm-program-explainer-step-view-64fc0c37.js +1 -0
- package/dist/esm-es5/sqm-program-explainer-step.entry.js +1 -1
- package/dist/esm-es5/sqm-program-explainer-view-68f0d242.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/mint-components.js +1 -1
- package/dist/mint-components/p-1435350e.system.js +1 -0
- package/dist/mint-components/p-16f5a7cb.system.js +1 -1
- package/dist/mint-components/p-259d31fc.entry.js +1 -0
- package/dist/mint-components/p-5cda79ed.system.entry.js +1 -0
- package/dist/mint-components/p-6d6be8bd.system.js +1 -0
- package/dist/mint-components/p-864f49d2.system.entry.js +1 -0
- package/dist/mint-components/p-8c4931a5.js +1 -0
- package/dist/mint-components/p-adcde089.system.entry.js +58 -0
- package/dist/mint-components/p-bf7fcf0c.js +1 -0
- package/dist/mint-components/{p-7300b0ae.entry.js → p-dd865aa8.entry.js} +15 -15
- package/dist/mint-components/p-f52bc20c.entry.js +1 -0
- package/dist/types/components/sqm-program-explainer/ProgramExplainer.stories.d.ts +3 -1
- 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 +23 -3
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +9 -12
- 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.d.ts +166 -19
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/sqm-program-explainer-step-view-0e66bea1.js +0 -49
- package/dist/esm/sqm-program-explainer-step-view-26920cf9.js +0 -47
- package/dist/esm-es5/sqm-program-explainer-step-view-26920cf9.js +0 -1
- package/dist/mint-components/p-1ea0804d.js +0 -1
- package/dist/mint-components/p-244f3d9b.system.entry.js +0 -1
- package/dist/mint-components/p-4fd17832.entry.js +0 -1
- package/dist/mint-components/p-9bda1dc4.system.entry.js +0 -1
- package/dist/mint-components/p-d12c666e.system.js +0 -1
- package/dist/mint-components/p-ded1509b.entry.js +0 -1
- package/dist/mint-components/p-f8c5f710.system.entry.js +0 -58
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('./index-b0129cd6.js');
|
|
4
|
+
const jssPresetDefault_esm = require('./jss-preset-default.esm-6304d24f.js');
|
|
5
|
+
|
|
6
|
+
function ProgramExplainerStepView(props) {
|
|
7
|
+
const style = {
|
|
8
|
+
Container: {
|
|
9
|
+
display: "flex",
|
|
10
|
+
flexDirection: "column",
|
|
11
|
+
width: "100%",
|
|
12
|
+
height: "444px",
|
|
13
|
+
color: props.color,
|
|
14
|
+
background: props.background,
|
|
15
|
+
padding: "24px",
|
|
16
|
+
"@media (max-width: 1024px)": {
|
|
17
|
+
flexDirection: "row",
|
|
18
|
+
width: "auto",
|
|
19
|
+
height: "auto",
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
Logo: {},
|
|
23
|
+
Text: {
|
|
24
|
+
"@media (max-width: 1024px)": {
|
|
25
|
+
marginLeft: "24px",
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
Title: {
|
|
29
|
+
fontSize: "16px",
|
|
30
|
+
fontWeight: "var(--sl-font-weight-bold)",
|
|
31
|
+
textTransform: "uppercase",
|
|
32
|
+
lineHeight: "24px",
|
|
33
|
+
marginTop: "24px",
|
|
34
|
+
"@media (max-width: 1024px)": {
|
|
35
|
+
margin: "0",
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
Description: {
|
|
39
|
+
fontSize: "16px",
|
|
40
|
+
lineHeight: "28px",
|
|
41
|
+
marginTop: "12px",
|
|
42
|
+
"@media (max-width: 1024px)": {
|
|
43
|
+
marginTop: "8px",
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
jssPresetDefault_esm.jss.setup(jssPresetDefault_esm.create());
|
|
48
|
+
const sheet = jssPresetDefault_esm.jss.createStyleSheet(style);
|
|
49
|
+
const styleString = sheet.toString();
|
|
50
|
+
return (index.h("div", { class: sheet.classes.Container },
|
|
51
|
+
index.h("style", { type: "text/css" }, styleString),
|
|
52
|
+
index.h("div", { class: sheet.classes.Logo },
|
|
53
|
+
index.h("div", { style: {
|
|
54
|
+
width: "64px",
|
|
55
|
+
height: "64px",
|
|
56
|
+
borderRadius: "100%",
|
|
57
|
+
background: "white",
|
|
58
|
+
} })),
|
|
59
|
+
index.h("div", { class: sheet.classes.Text },
|
|
60
|
+
index.h("div", { class: sheet.classes.Title }, props.title),
|
|
61
|
+
index.h("div", { class: sheet.classes.Description }, props.description))));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
exports.ProgramExplainerStepView = ProgramExplainerStepView;
|
|
@@ -6,8 +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
|
|
10
|
-
const sqmProgramExplainerStepView = require('./sqm-program-explainer-step-view-0e66bea1.js');
|
|
9
|
+
const sqmProgramExplainerStepView = require('./sqm-program-explainer-step-view-98958ab1.js');
|
|
11
10
|
|
|
12
11
|
const ProgramExplainerStep = class {
|
|
13
12
|
constructor(hostRef) {
|
|
@@ -16,20 +15,8 @@ const ProgramExplainerStep = class {
|
|
|
16
15
|
}
|
|
17
16
|
disconnectedCallback() { }
|
|
18
17
|
render() {
|
|
19
|
-
|
|
20
|
-
return index.h(sqmProgramExplainerStepView.ProgramExplainerStepView, Object.assign({}, props));
|
|
18
|
+
return index.h(sqmProgramExplainerStepView.ProgramExplainerStepView, Object.assign({}, utils.getProps(this)));
|
|
21
19
|
}
|
|
22
|
-
};
|
|
23
|
-
function useSidebarDemo(props) {
|
|
24
|
-
return cjs.cjs({
|
|
25
|
-
states: {
|
|
26
|
-
active: false,
|
|
27
|
-
},
|
|
28
|
-
data: {
|
|
29
|
-
label: props.label || "Dashboard",
|
|
30
|
-
icon: props.icon || "house",
|
|
31
|
-
},
|
|
32
|
-
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
33
|
-
}
|
|
20
|
+
};
|
|
34
21
|
|
|
35
22
|
exports.sqm_program_explainer_step = ProgramExplainerStep;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('./index-b0129cd6.js');
|
|
4
|
+
const jssPresetDefault_esm = require('./jss-preset-default.esm-6304d24f.js');
|
|
5
|
+
|
|
6
|
+
function ProgramExplainerView(props, children) {
|
|
7
|
+
const style = {
|
|
8
|
+
Container: {
|
|
9
|
+
display: "flex",
|
|
10
|
+
"@media (max-width: 1024px)": {
|
|
11
|
+
flexDirection: "column",
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
Card: {
|
|
15
|
+
padding: "24px",
|
|
16
|
+
color: props.color,
|
|
17
|
+
background: props.background,
|
|
18
|
+
},
|
|
19
|
+
Title: {
|
|
20
|
+
fontSize: "28px",
|
|
21
|
+
lineHeight: "36px",
|
|
22
|
+
fontWeight: "700",
|
|
23
|
+
},
|
|
24
|
+
Description: {
|
|
25
|
+
fontSize: "16px",
|
|
26
|
+
lineHeight: "28px",
|
|
27
|
+
fontWeight: "400",
|
|
28
|
+
marginTop: "8px",
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
jssPresetDefault_esm.jss.setup(jssPresetDefault_esm.create());
|
|
32
|
+
const sheet = jssPresetDefault_esm.jss.createStyleSheet(style);
|
|
33
|
+
const styleString = sheet.toString();
|
|
34
|
+
return (index.h("div", null,
|
|
35
|
+
index.h("style", { type: "text/css" }, styleString),
|
|
36
|
+
index.h("div", { class: sheet.classes.Card },
|
|
37
|
+
index.h("div", { class: sheet.classes.Title }, props.header)),
|
|
38
|
+
index.h("div", { class: sheet.classes.Container }, children),
|
|
39
|
+
index.h("div", { class: sheet.classes.Card },
|
|
40
|
+
index.h("div", { class: sheet.classes.Title }, props.title),
|
|
41
|
+
index.h("div", { class: sheet.classes.Description }, props.description))));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
exports.ProgramExplainerView = ProgramExplainerView;
|
|
@@ -4,38 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const _extends = require('./extends-0302d27d.js');
|
|
7
|
-
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
const style = {
|
|
11
|
-
ItemsContainer: {
|
|
12
|
-
"min-width": "290px",
|
|
13
|
-
"max-width": "320px",
|
|
14
|
-
"box-sizing": "border-box",
|
|
15
|
-
padding: "20px 15px",
|
|
16
|
-
...mixins.gap({ direction: "column", size: "4px" }),
|
|
17
|
-
},
|
|
18
|
-
};
|
|
19
|
-
const vanillaStyle = `
|
|
20
|
-
:host{
|
|
21
|
-
width: 30vw;
|
|
22
|
-
min-width: min-content;
|
|
23
|
-
max-width: 320px;
|
|
24
|
-
}
|
|
25
|
-
`;
|
|
26
|
-
jssPresetDefault_esm.jss.setup(jssPresetDefault_esm.create());
|
|
27
|
-
const sheet = jssPresetDefault_esm.jss.createStyleSheet(style);
|
|
28
|
-
const styleString = sheet.toString();
|
|
29
|
-
function ProgramExplainerView(
|
|
30
|
-
// @ts-ignore - Stencil requires props (even if empty)
|
|
31
|
-
props, children) {
|
|
32
|
-
return (index.h("div", null,
|
|
33
|
-
index.h("div", { class: sheet.classes.ItemsContainer },
|
|
34
|
-
index.h("style", { type: "text/css" },
|
|
35
|
-
vanillaStyle,
|
|
36
|
-
styleString),
|
|
37
|
-
children)));
|
|
38
|
-
}
|
|
7
|
+
require('./jss-preset-default.esm-6304d24f.js');
|
|
8
|
+
const utils = require('./utils-95e5317c.js');
|
|
9
|
+
const sqmProgramExplainerView = require('./sqm-program-explainer-view-ba7ed24a.js');
|
|
39
10
|
|
|
40
11
|
const ProgramExplainer = class {
|
|
41
12
|
constructor(hostRef) {
|
|
@@ -45,7 +16,7 @@ const ProgramExplainer = class {
|
|
|
45
16
|
}
|
|
46
17
|
disconnectedCallback() { }
|
|
47
18
|
render() {
|
|
48
|
-
return (index.h(ProgramExplainerView,
|
|
19
|
+
return (index.h(sqmProgramExplainerView.ProgramExplainerView, Object.assign({}, utils.getProps(this)), index.h("slot", null)));
|
|
49
20
|
}
|
|
50
21
|
};
|
|
51
22
|
|
|
@@ -1,33 +1,46 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { ProgramExplainerView } from "./sqm-program-explainer-view";
|
|
3
|
+
import { ProgramExplainerStepView } from "../sqm-program-explainer-step/sqm-program-explainer-step-view";
|
|
1
4
|
export default {
|
|
2
5
|
title: "Components/Program Explainer",
|
|
3
6
|
};
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
7
|
+
const props = {
|
|
8
|
+
header: "Klip Rewards",
|
|
9
|
+
title: "Earn rewards with our loyalty program",
|
|
10
|
+
description: "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.",
|
|
11
|
+
color: "black",
|
|
12
|
+
background: "#F3F0EC",
|
|
13
|
+
};
|
|
14
|
+
const steps1 = {
|
|
15
|
+
title: "Invite your friends to Klip",
|
|
16
|
+
description: "Earn up to $1200 in rewards for each referral",
|
|
17
|
+
color: "white",
|
|
18
|
+
background: "#5B3EDA",
|
|
19
|
+
};
|
|
20
|
+
const steps2 = {
|
|
21
|
+
title: "If your friend signs up for a Klip Business plan",
|
|
22
|
+
description: "Get a $50 VISA giftcard when they pay for their first month",
|
|
23
|
+
color: "black",
|
|
24
|
+
background: "#F3CC66",
|
|
25
|
+
};
|
|
26
|
+
const steps3 = {
|
|
27
|
+
title: "If your friend signs up for a Klip Enterprise plan",
|
|
28
|
+
description: "Get up to $1200 in rewards - a $200 VISA giftcard when our sales team qualifies them as a good fit for Klip, and a $1000 VISA giftcard when they become a paying customer",
|
|
29
|
+
color: "black",
|
|
30
|
+
background: "#D3CCF5",
|
|
31
|
+
};
|
|
32
|
+
export const OneStep = () => {
|
|
33
|
+
return (h(ProgramExplainerView, Object.assign({}, props),
|
|
34
|
+
h(ProgramExplainerStepView, Object.assign({}, steps1))));
|
|
35
|
+
};
|
|
36
|
+
export const TwoSteps = () => {
|
|
37
|
+
return (h(ProgramExplainerView, Object.assign({}, props),
|
|
38
|
+
h(ProgramExplainerStepView, Object.assign({}, steps1)),
|
|
39
|
+
h(ProgramExplainerStepView, Object.assign({}, steps2))));
|
|
40
|
+
};
|
|
41
|
+
export const ThreeSteps = () => {
|
|
42
|
+
return (h(ProgramExplainerView, Object.assign({}, props),
|
|
43
|
+
h(ProgramExplainerStepView, Object.assign({}, steps1)),
|
|
44
|
+
h(ProgramExplainerStepView, Object.assign({}, steps2)),
|
|
45
|
+
h(ProgramExplainerStepView, Object.assign({}, steps3))));
|
|
33
46
|
};
|
|
@@ -1,33 +1,40 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import jss from "jss";
|
|
3
3
|
import preset from "jss-preset-default";
|
|
4
|
-
|
|
5
|
-
const style = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
4
|
+
export function ProgramExplainerView(props, children) {
|
|
5
|
+
const style = {
|
|
6
|
+
Container: {
|
|
7
|
+
display: "flex",
|
|
8
|
+
"@media (max-width: 1024px)": {
|
|
9
|
+
flexDirection: "column",
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
Card: {
|
|
13
|
+
padding: "24px",
|
|
14
|
+
color: props.color,
|
|
15
|
+
background: props.background,
|
|
16
|
+
},
|
|
17
|
+
Title: {
|
|
18
|
+
fontSize: "28px",
|
|
19
|
+
lineHeight: "36px",
|
|
20
|
+
fontWeight: "700",
|
|
21
|
+
},
|
|
22
|
+
Description: {
|
|
23
|
+
fontSize: "16px",
|
|
24
|
+
lineHeight: "28px",
|
|
25
|
+
fontWeight: "400",
|
|
26
|
+
marginTop: "8px",
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
jss.setup(preset());
|
|
30
|
+
const sheet = jss.createStyleSheet(style);
|
|
31
|
+
const styleString = sheet.toString();
|
|
27
32
|
return (h("div", null,
|
|
28
|
-
h("
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
+
h("style", { type: "text/css" }, styleString),
|
|
34
|
+
h("div", { class: sheet.classes.Card },
|
|
35
|
+
h("div", { class: sheet.classes.Title }, props.header)),
|
|
36
|
+
h("div", { class: sheet.classes.Container }, children),
|
|
37
|
+
h("div", { class: sheet.classes.Card },
|
|
38
|
+
h("div", { class: sheet.classes.Title }, props.title),
|
|
39
|
+
h("div", { class: sheet.classes.Description }, props.description))));
|
|
33
40
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
2
|
-
import { Component, h, State } from "@stencil/core";
|
|
2
|
+
import { Component, h, Prop, State } from "@stencil/core";
|
|
3
|
+
import { getProps } from "../../utils/utils";
|
|
3
4
|
import { ProgramExplainerView } from "./sqm-program-explainer-view";
|
|
4
5
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* @uiName Navigation Sidebar
|
|
6
|
+
* @uiName Program Explainer
|
|
8
7
|
*/
|
|
9
8
|
export class ProgramExplainer {
|
|
10
9
|
constructor() {
|
|
@@ -13,11 +12,119 @@ export class ProgramExplainer {
|
|
|
13
12
|
}
|
|
14
13
|
disconnectedCallback() { }
|
|
15
14
|
render() {
|
|
16
|
-
return (h(ProgramExplainerView,
|
|
15
|
+
return (h(ProgramExplainerView, Object.assign({}, getProps(this)),
|
|
17
16
|
h("slot", null)));
|
|
18
17
|
}
|
|
19
18
|
static get is() { return "sqm-program-explainer"; }
|
|
20
19
|
static get encapsulation() { return "shadow"; }
|
|
20
|
+
static get properties() { return {
|
|
21
|
+
"header": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"mutable": false,
|
|
24
|
+
"complexType": {
|
|
25
|
+
"original": "string",
|
|
26
|
+
"resolved": "string",
|
|
27
|
+
"references": {}
|
|
28
|
+
},
|
|
29
|
+
"required": false,
|
|
30
|
+
"optional": false,
|
|
31
|
+
"docs": {
|
|
32
|
+
"tags": [{
|
|
33
|
+
"text": "Header",
|
|
34
|
+
"name": "uiName"
|
|
35
|
+
}],
|
|
36
|
+
"text": ""
|
|
37
|
+
},
|
|
38
|
+
"attribute": "header",
|
|
39
|
+
"reflect": false
|
|
40
|
+
},
|
|
41
|
+
"title": {
|
|
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": "Title",
|
|
54
|
+
"name": "uiName"
|
|
55
|
+
}],
|
|
56
|
+
"text": ""
|
|
57
|
+
},
|
|
58
|
+
"attribute": "title",
|
|
59
|
+
"reflect": false
|
|
60
|
+
},
|
|
61
|
+
"description": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"mutable": false,
|
|
64
|
+
"complexType": {
|
|
65
|
+
"original": "string",
|
|
66
|
+
"resolved": "string",
|
|
67
|
+
"references": {}
|
|
68
|
+
},
|
|
69
|
+
"required": false,
|
|
70
|
+
"optional": false,
|
|
71
|
+
"docs": {
|
|
72
|
+
"tags": [{
|
|
73
|
+
"text": "Description",
|
|
74
|
+
"name": "uiName"
|
|
75
|
+
}],
|
|
76
|
+
"text": ""
|
|
77
|
+
},
|
|
78
|
+
"attribute": "description",
|
|
79
|
+
"reflect": false
|
|
80
|
+
},
|
|
81
|
+
"color": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"mutable": false,
|
|
84
|
+
"complexType": {
|
|
85
|
+
"original": "string",
|
|
86
|
+
"resolved": "string",
|
|
87
|
+
"references": {}
|
|
88
|
+
},
|
|
89
|
+
"required": false,
|
|
90
|
+
"optional": false,
|
|
91
|
+
"docs": {
|
|
92
|
+
"tags": [{
|
|
93
|
+
"text": "Color",
|
|
94
|
+
"name": "uiName"
|
|
95
|
+
}, {
|
|
96
|
+
"text": "color",
|
|
97
|
+
"name": "uiWidget"
|
|
98
|
+
}],
|
|
99
|
+
"text": ""
|
|
100
|
+
},
|
|
101
|
+
"attribute": "color",
|
|
102
|
+
"reflect": false
|
|
103
|
+
},
|
|
104
|
+
"background": {
|
|
105
|
+
"type": "string",
|
|
106
|
+
"mutable": false,
|
|
107
|
+
"complexType": {
|
|
108
|
+
"original": "string",
|
|
109
|
+
"resolved": "string",
|
|
110
|
+
"references": {}
|
|
111
|
+
},
|
|
112
|
+
"required": false,
|
|
113
|
+
"optional": false,
|
|
114
|
+
"docs": {
|
|
115
|
+
"tags": [{
|
|
116
|
+
"text": "Background",
|
|
117
|
+
"name": "uiName"
|
|
118
|
+
}, {
|
|
119
|
+
"text": "color",
|
|
120
|
+
"name": "uiWidget"
|
|
121
|
+
}],
|
|
122
|
+
"text": ""
|
|
123
|
+
},
|
|
124
|
+
"attribute": "background",
|
|
125
|
+
"reflect": false
|
|
126
|
+
}
|
|
127
|
+
}; }
|
|
21
128
|
static get states() { return {
|
|
22
129
|
"ignored": {}
|
|
23
130
|
}; }
|
package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js
CHANGED
|
@@ -5,41 +5,56 @@ export function ProgramExplainerStepView(props) {
|
|
|
5
5
|
const style = {
|
|
6
6
|
Container: {
|
|
7
7
|
display: "flex",
|
|
8
|
+
flexDirection: "column",
|
|
8
9
|
width: "100%",
|
|
9
|
-
height: "
|
|
10
|
-
placeItems: "center",
|
|
11
|
-
placeContent: "center",
|
|
10
|
+
height: "444px",
|
|
12
11
|
color: props.color,
|
|
13
12
|
background: props.background,
|
|
13
|
+
padding: "24px",
|
|
14
|
+
"@media (max-width: 1024px)": {
|
|
15
|
+
flexDirection: "row",
|
|
16
|
+
width: "auto",
|
|
17
|
+
height: "auto",
|
|
18
|
+
},
|
|
14
19
|
},
|
|
15
|
-
Logo: {
|
|
16
|
-
margin: "var(--sl-spacing-x-large)",
|
|
17
|
-
},
|
|
20
|
+
Logo: {},
|
|
18
21
|
Text: {
|
|
19
|
-
|
|
22
|
+
"@media (max-width: 1024px)": {
|
|
23
|
+
marginLeft: "24px",
|
|
24
|
+
},
|
|
20
25
|
},
|
|
21
26
|
Title: {
|
|
27
|
+
fontSize: "16px",
|
|
28
|
+
fontWeight: "var(--sl-font-weight-bold)",
|
|
22
29
|
textTransform: "uppercase",
|
|
23
|
-
|
|
24
|
-
|
|
30
|
+
lineHeight: "24px",
|
|
31
|
+
marginTop: "24px",
|
|
32
|
+
"@media (max-width: 1024px)": {
|
|
33
|
+
margin: "0",
|
|
34
|
+
},
|
|
25
35
|
},
|
|
26
36
|
Description: {
|
|
27
|
-
fontSize: "
|
|
37
|
+
fontSize: "16px",
|
|
38
|
+
lineHeight: "28px",
|
|
39
|
+
marginTop: "12px",
|
|
40
|
+
"@media (max-width: 1024px)": {
|
|
41
|
+
marginTop: "8px",
|
|
42
|
+
},
|
|
28
43
|
},
|
|
29
44
|
};
|
|
30
45
|
jss.setup(preset());
|
|
31
46
|
const sheet = jss.createStyleSheet(style);
|
|
32
47
|
const styleString = sheet.toString();
|
|
33
|
-
return (h("div", {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
48
|
+
return (h("div", { class: sheet.classes.Container },
|
|
49
|
+
h("style", { type: "text/css" }, styleString),
|
|
50
|
+
h("div", { class: sheet.classes.Logo },
|
|
51
|
+
h("div", { style: {
|
|
52
|
+
width: "64px",
|
|
53
|
+
height: "64px",
|
|
54
|
+
borderRadius: "100%",
|
|
55
|
+
background: "white",
|
|
56
|
+
} })),
|
|
57
|
+
h("div", { class: sheet.classes.Text },
|
|
43
58
|
h("div", { class: sheet.classes.Title }, props.title),
|
|
44
59
|
h("div", { class: sheet.classes.Description }, props.description))));
|
|
45
60
|
}
|