@salesforcedevs/dx-components 1.15.6 → 1.15.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/lwc.config.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/dx-components",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.7",
|
|
4
4
|
"description": "DX Lightning web components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"volta": {
|
|
47
47
|
"node": "20.19.0"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "0e6a8c379e28bf5c9aa26b73da537d48582430bf"
|
|
50
50
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@import "dxHelpers/reset";
|
|
2
|
+
@import "dxHelpers/text";
|
|
3
|
+
@import "dxHelpers/card";
|
|
4
|
+
|
|
5
|
+
.attribution-img {
|
|
6
|
+
border-radius: 5px;
|
|
7
|
+
max-width: 100%;
|
|
8
|
+
margin-bottom: 1em;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.testimonial-card-cta {
|
|
12
|
+
text-decoration: underline;
|
|
13
|
+
text-wrap: auto;
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
gap: 3px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.quote {
|
|
20
|
+
color: black;
|
|
21
|
+
font-size: 20px;
|
|
22
|
+
line-height: 28px;
|
|
23
|
+
font-weight: bold;
|
|
24
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class={className}>
|
|
3
|
+
<template if:true={quote}>
|
|
4
|
+
<img class="attribution-img" src={imgSrc} alt={attribution} />
|
|
5
|
+
<span class="dx-text-body-4 quote">{quote}</span>
|
|
6
|
+
<br />
|
|
7
|
+
<br />
|
|
8
|
+
<span class="dx-text-label-1-dark">{attribution}</span>
|
|
9
|
+
<br />
|
|
10
|
+
<span class="dx-text-body-4">{attributionTitle}</span>
|
|
11
|
+
</template>
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { LightningElement, api } from "lwc";
|
|
2
|
+
import cx from "classnames";
|
|
3
|
+
|
|
4
|
+
export default class CardTestimonial extends LightningElement {
|
|
5
|
+
@api imgSrc?: string;
|
|
6
|
+
@api quote!: string;
|
|
7
|
+
@api attribution!: string;
|
|
8
|
+
@api attributionTitle!: string;
|
|
9
|
+
|
|
10
|
+
private get className() {
|
|
11
|
+
return cx(
|
|
12
|
+
"card-testimonial",
|
|
13
|
+
"dx-card-base",
|
|
14
|
+
"dx-card-base_section-vertical"
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
}
|