@salesforcedevs/docs-components 1.3.149-query-string-1 → 1.3.150-lwf-ref-alpha1
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/lwc.config.json
CHANGED
package/package.json
CHANGED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
h2 {
|
|
2
|
+
font-weight: bold;
|
|
3
|
+
font-size: 24px;
|
|
4
|
+
margin: 10px 0;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.component-image {
|
|
8
|
+
padding: 48px 40px;
|
|
9
|
+
display: flex;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
align-items: center;
|
|
12
|
+
border: 1px solid var(--foundation-gray-neutral-95, #f3f3f3);
|
|
13
|
+
min-height: 140px;
|
|
14
|
+
max-height: 480px;
|
|
15
|
+
flex: 1;
|
|
16
|
+
margin: 16px 0px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.small {
|
|
20
|
+
font-size: 12px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.item {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex: 1;
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
img{
|
|
31
|
+
max-width: 100%;
|
|
32
|
+
height: auto;
|
|
33
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="item">
|
|
3
|
+
<h2 if:true={title}>{title}</h2>
|
|
4
|
+
<p if:true={description}>
|
|
5
|
+
{description}
|
|
6
|
+
</p>
|
|
7
|
+
<p if:true={doDontLabel}>{doDontLabel}</p>
|
|
8
|
+
<div if:true={imageSrc} class="component-image">
|
|
9
|
+
<img src={imageSrc} />
|
|
10
|
+
</div>
|
|
11
|
+
<p if:true={note} class="small">{note}</p>
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { LightningElement, api } from "lwc";
|
|
2
|
+
|
|
3
|
+
class Component extends LightningElement {
|
|
4
|
+
@api title;
|
|
5
|
+
@api description;
|
|
6
|
+
@api imageSrc;
|
|
7
|
+
@api isDo;
|
|
8
|
+
@api note;
|
|
9
|
+
|
|
10
|
+
@api
|
|
11
|
+
get doDontLabel(): string {
|
|
12
|
+
//TODO: store a boolean value and refactor logic
|
|
13
|
+
if (this.isDo === "true") {
|
|
14
|
+
return "DO"
|
|
15
|
+
} else if (this.isDo === "false") {
|
|
16
|
+
return "DON'T"
|
|
17
|
+
}
|
|
18
|
+
return ""
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export default Component;
|