@salesforcedevs/dx-components 0.53.2 → 0.53.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/package.json +2 -2
- package/src/modules/dx/cardBlogPost/cardBlogPost.css +1 -1
- package/src/modules/dx/cardContent/cardContent.css +1 -1
- package/src/modules/dx/cardTrailheadModule/cardTrailheadModule.css +1 -1
- package/src/modules/dx/cardVideoPreview/cardVideoPreview.css +1 -1
- package/src/modules/dx/cardVideoPreview/cardVideoPreview.html +1 -0
- package/src/modules/dx/cardVideoPreview/cardVideoPreview.ts +1 -1
- package/src/modules/dx/section/section.css +1 -1
- package/src/modules/dx/section/section.ts +9 -9
- package/src/modules/dx/vimeoPlayer/vimeoPlayer.html +1 -1
- package/src/modules/helpers/card/card.css +21 -16
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/dx-components",
|
|
3
|
-
"version": "0.53.
|
|
3
|
+
"version": "0.53.5",
|
|
4
4
|
"description": "DX Lightning web components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"@types/lodash.get": "^4.4.6",
|
|
29
29
|
"@types/vimeo__player": "^2.16.2"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "57c0600131ffd0be710b781c677bef1b093dc9d8"
|
|
32
32
|
}
|
|
@@ -2,7 +2,7 @@ import { LightningElement, api } from "lwc";
|
|
|
2
2
|
|
|
3
3
|
export default class CardVideoPreview extends LightningElement {
|
|
4
4
|
@api body?: string | null = null;
|
|
5
|
-
@api datetime
|
|
5
|
+
@api datetime?: string;
|
|
6
6
|
@api featured?: boolean = false;
|
|
7
7
|
@api href!: string;
|
|
8
8
|
@api imgAlt?: string;
|
|
@@ -3,16 +3,16 @@ import cx from "classnames";
|
|
|
3
3
|
import { toDxColor } from "utils/css";
|
|
4
4
|
|
|
5
5
|
export default class Section extends LightningElement {
|
|
6
|
-
@api backgroundColor
|
|
7
|
-
@api dark
|
|
6
|
+
@api backgroundColor: string = "transparent";
|
|
7
|
+
@api dark: boolean = false;
|
|
8
8
|
@api headingLevel: "1" | "2" | "3" | "4" | "5" = "3";
|
|
9
|
-
@api label?: string
|
|
10
|
-
@api subtitle?: string
|
|
11
|
-
@api textAlign
|
|
12
|
-
@api title?: string
|
|
13
|
-
@api topGraphic
|
|
14
|
-
@api graphicOverlap
|
|
15
|
-
@api bottomGraphic
|
|
9
|
+
@api label?: string;
|
|
10
|
+
@api subtitle?: string;
|
|
11
|
+
@api textAlign: "center" | "left" = "left";
|
|
12
|
+
@api title?: string;
|
|
13
|
+
@api topGraphic: boolean = false;
|
|
14
|
+
@api graphicOverlap: boolean = false;
|
|
15
|
+
@api bottomGraphic: boolean = false;
|
|
16
16
|
|
|
17
17
|
private get style(): string {
|
|
18
18
|
return `--dx-c-section-background-color: ${toDxColor(
|
|
@@ -184,18 +184,6 @@ a.dx-card-base:hover dx-card-title {
|
|
|
184
184
|
|
|
185
185
|
/* Desktop Only */
|
|
186
186
|
@media screen and (min-width: 1024px) {
|
|
187
|
-
.dx-card-base_layout-horizontal .dx-card-base_borderless-image_link {
|
|
188
|
-
align-self: flex-start;
|
|
189
|
-
flex-shrink: 0;
|
|
190
|
-
width: 0;
|
|
191
|
-
height: unset;
|
|
192
|
-
margin-right: var(--dx-g-card-img-spacing);
|
|
193
|
-
margin-bottom: unset;
|
|
194
|
-
padding-top: unset;
|
|
195
|
-
padding-right: 45%;
|
|
196
|
-
padding-bottom: 22.5%;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
187
|
.dx-card-base_featured dx-card-title {
|
|
200
188
|
--dx-c-card-title-letter-spacing: -0.6px;
|
|
201
189
|
--dx-c-card-title-font-size: 32px;
|
|
@@ -216,6 +204,21 @@ a.dx-card-base:hover dx-card-title {
|
|
|
216
204
|
}
|
|
217
205
|
}
|
|
218
206
|
|
|
207
|
+
/* Tablet + Desktop Only */
|
|
208
|
+
@media screen and (min-width: 764px) {
|
|
209
|
+
.dx-card-base_layout-horizontal .dx-card-base_borderless-image_link {
|
|
210
|
+
align-self: flex-start;
|
|
211
|
+
flex-shrink: 0;
|
|
212
|
+
width: 0;
|
|
213
|
+
height: unset;
|
|
214
|
+
margin-right: var(--dx-g-card-img-spacing);
|
|
215
|
+
margin-bottom: unset;
|
|
216
|
+
padding-top: unset;
|
|
217
|
+
padding-right: 45%;
|
|
218
|
+
padding-bottom: 22.5%;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
219
222
|
/* Tablet */
|
|
220
223
|
@media screen and (max-width: 1024px) {
|
|
221
224
|
:host {
|
|
@@ -223,10 +226,6 @@ a.dx-card-base:hover dx-card-title {
|
|
|
223
226
|
--dx-g-card-img-spacing: 16px;
|
|
224
227
|
}
|
|
225
228
|
|
|
226
|
-
.dx-card-base_borderless-image {
|
|
227
|
-
min-height: unset;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
229
|
/* text resp */
|
|
231
230
|
.dx-text-body-2,
|
|
232
231
|
.dx-text-body-3 {
|
|
@@ -256,3 +255,9 @@ a.dx-card-base:hover dx-card-title {
|
|
|
256
255
|
font-size: var(--dx-g-text-sm);
|
|
257
256
|
}
|
|
258
257
|
}
|
|
258
|
+
|
|
259
|
+
@media screen and (max-width: 764px) {
|
|
260
|
+
.dx-card-base_borderless-image {
|
|
261
|
+
min-height: unset;
|
|
262
|
+
}
|
|
263
|
+
}
|